caplink-saas-ui-shared-component-library 0.3.6 → 0.3.8

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.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('*,: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;tab-size:4;font-family:var(--font-sans),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]){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::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[34px\\]{height:34px}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-\\[110px\\]{width:110px}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-\\[\\#E5E5F4\\]{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.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-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-\\[14px\\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#199652\\]{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.text-\\[\\#4657E1\\]{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.text-\\[\\#474772\\]{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-\\[\\#9292BA\\]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--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)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0: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(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\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#E5E5F4\\]:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:bg-\\[\\#E5E5F4\\]:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:text-\\[\\#9292BA\\]:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}')),document.head.appendChild(t)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
2
- (function(Ge,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],i):(Ge=typeof globalThis<"u"?globalThis:Ge||self,i(Ge["caplink-saas-ui-shared-component-library"]={},Ge.React,Ge.ReactDOM))})(this,function(Ge,i,gt){"use strict";var Rr=document.createElement("style");Rr.textContent=`*,: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;tab-size:4;font-family:var(--font-sans),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]){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::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[34px\\]{height:34px}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-\\[110px\\]{width:110px}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-\\[\\#E5E5F4\\]{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.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-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-\\[14px\\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#199652\\]{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.text-\\[\\#4657E1\\]{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.text-\\[\\#474772\\]{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-\\[\\#9292BA\\]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--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)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0: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(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\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#E5E5F4\\]:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:bg-\\[\\#E5E5F4\\]:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:text-\\[\\#9292BA\\]:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
3
- `,document.head.appendChild(Rr);function Hr(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=Hr(i),Wi=Hr(gt);var An={exports:{}},jt={};/**
2
+ (function(Ge,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],i):(Ge=typeof globalThis<"u"?globalThis:Ge||self,i(Ge["caplink-saas-ui-shared-component-library"]={},Ge.React,Ge.ReactDOM))})(this,function(Ge,i,gt){"use strict";var Hr=document.createElement("style");Hr.textContent=`*,: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;tab-size:4;font-family:var(--font-sans),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]){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::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root{--background: 0 0% 100%;--foreground: 240 10% 3.9%;--card: 0 0% 100%;--card-foreground: 240 10% 3.9%;--popover: 0 0% 100%;--popover-foreground: 240 10% 3.9%;--primary: 240 5.9% 10%;--primary-foreground: 0 0% 98%;--secondary: 240 4.8% 95.9%;--secondary-foreground: 240 5.9% 10%;--muted: 240 4.8% 95.9%;--muted-foreground: 240 3.8% 46.1%;--accent: 240 4.8% 95.9%;--accent-foreground: 240 5.9% 10%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 240 5.9% 90%;--input: 240 5.9% 90%;--ring: 240 5.9% 10%;--radius: .5rem}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));color:hsl(var(--foreground));font-feature-settings:"rlig" 1,"calt" 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: }.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.\\!visible{visibility:visible!important}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-0{left:-0px}.-left-0\\.5{left:-.125rem}.-right-\\[3px\\]{right:-3px}.-top-0{top:-0px}.-top-0\\.5{top:-.125rem}.-top-1{top:-.25rem}.-top-4{top:-1rem}.bottom-0{bottom:0}.left-0{left:0}.left-2{left:.5rem}.left-2\\.5{left:.625rem}.left-4{left:1rem}.right-0{right:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-0{top:0}.top-1\\/2{top:50%}.top-8{top:2rem}.top-\\[58px\\]{top:58px}.z-40{z-index:40}.z-50{z-index:50}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-\\[calc\\(28px\\+36px\\)\\]{margin-top:64px}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.flex{display:flex}.inline-flex{display:inline-flex}.h-0{height:0px}.h-0\\.5{height:.125rem}.h-10{height:2.5rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[34px\\]{height:34px}.h-\\[calc\\(100\\%-28px-28px\\)\\]{height:calc(100% - 56px)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-fit{height:fit-content}.h-full{height:100%}.h-px{height:1px}.max-h-96{max-height:24rem}.min-h-\\[24px\\]{min-height:24px}.min-h-\\[260px\\]{min-height:260px}.w-0{width:0px}.w-0\\.5{width:.125rem}.w-1{width:.25rem}.w-1\\.5{width:.375rem}.w-12{width:3rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-32{width:8rem}.w-4{width:1rem}.w-56{width:14rem}.w-9{width:2.25rem}.w-\\[110px\\]{width:110px}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[240px\\]{max-width:240px}.shrink-0{flex-shrink:0}.-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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-col-resize{cursor:col-resize}.cursor-default{cursor:default}.select-none{user-select:none}.resize-none{resize:none}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.overflow-hidden{overflow:hidden}.overflow-y-clip{overflow-y:clip}.overflow-x-scroll{overflow-x:scroll}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded-full{border-radius:9999px}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-t-md{border-top-left-radius:calc(var(--radius) - 2px);border-top-right-radius:calc(var(--radius) - 2px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-l{border-left-width:1px}.border-l-0{border-left-width:0px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-none{border-style:none}.border-\\[\\#E5E5F4\\]{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.border-input{border-color:hsl(var(--input))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\\[\\#0085FF\\]{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.bg-\\[\\#EAF5FF\\]{--tw-bg-opacity: 1;background-color:rgb(234 245 255 / var(--tw-bg-opacity))}.bg-\\[\\#F6F6F9\\]{--tw-bg-opacity: 1;background-color:rgb(246 246 249 / var(--tw-bg-opacity))}.bg-background{background-color:hsl(var(--background))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-muted{background-color:hsl(var(--muted))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-neutral-300{--tw-bg-opacity: 1;background-color:rgb(212 212 212 / var(--tw-bg-opacity))}.bg-neutral-400{--tw-bg-opacity: 1;background-color:rgb(163 163 163 / var(--tw-bg-opacity))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\\/25{background-color:#ffffff40}.fill-current{fill:currentColor}.p-1{padding:.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-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-8{padding-right:2rem}.pr-px{padding-right:1px}.text-left{text-align:left}.text-\\[10px\\]{font-size:10px}.text-\\[14px\\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tracking-widest{letter-spacing:.1em}.text-\\[\\#199652\\]{--tw-text-opacity: 1;color:rgb(25 150 82 / var(--tw-text-opacity))}.text-\\[\\#4657E1\\]{--tw-text-opacity: 1;color:rgb(70 87 225 / var(--tw-text-opacity))}.text-\\[\\#474772\\]{--tw-text-opacity: 1;color:rgb(71 71 114 / var(--tw-text-opacity))}.text-\\[\\#4A4A6A\\]{--tw-text-opacity: 1;color:rgb(74 74 106 / var(--tw-text-opacity))}.text-\\[\\#8E8EA9\\]{--tw-text-opacity: 1;color:rgb(142 142 169 / var(--tw-text-opacity))}.text-\\[\\#9292BA\\]{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity))}.text-current{color:currentColor}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.outline-\\[3px\\]{outline-width:3px}.outline-offset-2{outline-offset:2px}.outline-blue-500{outline-color:#3b82f6}.outline-sky-100{outline-color:#e0f2fe}.outline-sky-200{outline-color:#bae6fd}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.drop-shadow-md{--tw-drop-shadow: drop-shadow(0 4px 3px rgb(0 0 0 / .07)) drop-shadow(0 2px 2px rgb(0 0 0 / .06));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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.ease-linear{animation-timing-function:linear}*{font-family:Arial,Helvetica,sans-serif}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.hover\\:bg-\\[\\#8FD6FF\\]:hover{--tw-bg-opacity: 1;background-color:rgb(143 214 255 / var(--tw-bg-opacity))}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-md:hover{--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)}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-0: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(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\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.active\\:bg-\\[\\#0085FF\\]:active{--tw-bg-opacity: 1;background-color:rgb(0 133 255 / var(--tw-bg-opacity))}.active\\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-\\[\\#E5E5F4\\]:disabled{--tw-border-opacity: 1;border-color:rgb(229 229 244 / var(--tw-border-opacity))}.disabled\\:bg-\\[\\#E5E5F4\\]:disabled{--tw-bg-opacity: 1;background-color:rgb(229 229 244 / var(--tw-bg-opacity))}.disabled\\:text-\\[\\#9292BA\\]:disabled{--tw-text-opacity: 1;color:rgb(146 146 186 / var(--tw-text-opacity))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=closed\\]\\:transform-none[data-state=closed]{transform:none}.data-\\[side\\=bottom\\]\\:animate-none[data-side=bottom],.data-\\[state\\=closed\\]\\:animate-none[data-state=closed]{animation:none}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=closed\\]\\:transition-none[data-state=closed]{transition-property:none}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}
3
+ `,document.head.appendChild(Hr);function Ur(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=Ur(i),Hi=Ur(gt);var An={exports:{}},jt={};/**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
6
6
  *
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * This source code is licensed under the MIT license found in the
10
10
  * LICENSE file in the root directory of this source tree.
11
- */var Ur;function Ri(){if(Ur)return jt;Ur=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(c,l,d){var f,u={},m=null,v=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(v=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(u[f]=l[f]);if(c&&c.defaultProps)for(f in l=c.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:c,key:m,ref:v,props:u,_owner:o.current}}return jt.Fragment=n,jt.jsx=s,jt.jsxs=s,jt}var Lt={};/**
11
+ */var Kr;function Ui(){if(Kr)return jt;Kr=1;var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(c,l,d){var f,u={},m=null,h=null;d!==void 0&&(m=""+d),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(h=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(u[f]=l[f]);if(c&&c.defaultProps)for(f in l=c.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:t,type:c,key:m,ref:h,props:u,_owner:o.current}}return jt.Fragment=n,jt.jsx=s,jt.jsxs=s,jt}var Lt={};/**
12
12
  * @license React
13
13
  * react-jsx-runtime.development.js
14
14
  *
@@ -16,63 +16,63 @@
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var Kr;function Hi(){return Kr||(Kr=1,process.env.NODE_ENV!=="production"&&function(){var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),p=Symbol.iterator,h="@@iterator";function x(b){if(b===null||typeof b!="object")return null;var k=p&&b[p]||b[h];return typeof k=="function"?k:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var k=arguments.length,B=new Array(k>1?k-1:0),q=1;q<k;q++)B[q-1]=arguments[q];$("error",b,B)}}function $(b,k,B){{var q=g.ReactDebugCurrentFrame,ue=q.getStackAddendum();ue!==""&&(k+="%s",B=B.concat([ue]));var fe=B.map(function(ae){return String(ae)});fe.unshift("Warning: "+k),Function.prototype.apply.call(console[b],console,fe)}}var C=!1,E=!1,M=!1,T=!1,_=!1,z;z=Symbol.for("react.module.reference");function R(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===d||b===f||T||b===v||C||E||M||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===u||b.$$typeof===s||b.$$typeof===c||b.$$typeof===l||b.$$typeof===z||b.getModuleId!==void 0))}function L(b,k,B){var q=b.displayName;if(q)return q;var ue=k.displayName||k.name||"";return ue!==""?B+"("+ue+")":B}function P(b){return b.displayName||"Context"}function U(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case c:var k=b;return P(k)+".Consumer";case s:var B=b;return P(B._context)+".Provider";case l:return L(b,b.render,"ForwardRef");case u:var q=b.displayName||null;return q!==null?q:U(b.type)||"Memo";case m:{var ue=b,fe=ue._payload,ae=ue._init;try{return U(ae(fe))}catch{return null}}}return null}var F=Object.assign,H=0,I,O,N,S,V,W,X;function oe(){}oe.__reactDisabledLog=!0;function be(){{if(H===0){I=console.log,O=console.info,N=console.warn,S=console.error,V=console.group,W=console.groupCollapsed,X=console.groupEnd;var b={configurable:!0,enumerable:!0,value:oe,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}H++}}function ge(){{if(H--,H===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},b,{value:I}),info:F({},b,{value:O}),warn:F({},b,{value:N}),error:F({},b,{value:S}),group:F({},b,{value:V}),groupCollapsed:F({},b,{value:W}),groupEnd:F({},b,{value:X})})}H<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=g.ReactCurrentDispatcher,G;function ee(b,k,B){{if(G===void 0)try{throw Error()}catch(ue){var q=ue.stack.trim().match(/\n( *(at )?)/);G=q&&q[1]||""}return`
20
- `+G+b}}var ne=!1,te;{var ce=typeof WeakMap=="function"?WeakMap:Map;te=new ce}function ie(b,k){if(!b||ne)return"";{var B=te.get(b);if(B!==void 0)return B}var q;ne=!0;var ue=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var fe;fe=de.current,de.current=null,be();try{if(k){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(ke){q=ke}Reflect.construct(b,[],ae)}else{try{ae.call()}catch(ke){q=ke}b.call(ae.prototype)}}else{try{throw Error()}catch(ke){q=ke}b()}}catch(ke){if(ke&&q&&typeof ke.stack=="string"){for(var re=ke.stack.split(`
19
+ */var Gr;function Ki(){return Gr||(Gr=1,process.env.NODE_ENV!=="production"&&function(){var e=i,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,v="@@iterator";function y(b){if(b===null||typeof b!="object")return null;var k=p&&b[p]||b[v];return typeof k=="function"?k:null}var g=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function w(b){{for(var k=arguments.length,V=new Array(k>1?k-1:0),q=1;q<k;q++)V[q-1]=arguments[q];$("error",b,V)}}function $(b,k,V){{var q=g.ReactDebugCurrentFrame,de=q.getStackAddendum();de!==""&&(k+="%s",V=V.concat([de]));var ue=V.map(function(se){return String(se)});ue.unshift("Warning: "+k),Function.prototype.apply.call(console[b],console,ue)}}var C=!1,E=!1,M=!1,T=!1,_=!1,B;B=Symbol.for("react.module.reference");function K(b){return!!(typeof b=="string"||typeof b=="function"||b===r||b===a||_||b===o||b===d||b===f||T||b===h||C||E||M||typeof b=="object"&&b!==null&&(b.$$typeof===m||b.$$typeof===u||b.$$typeof===s||b.$$typeof===c||b.$$typeof===l||b.$$typeof===B||b.getModuleId!==void 0))}function A(b,k,V){var q=b.displayName;if(q)return q;var de=k.displayName||k.name||"";return de!==""?V+"("+de+")":V}function P(b){return b.displayName||"Context"}function G(b){if(b==null)return null;if(typeof b.tag=="number"&&w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof b=="function")return b.displayName||b.name||null;if(typeof b=="string")return b;switch(b){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof b=="object")switch(b.$$typeof){case c:var k=b;return P(k)+".Consumer";case s:var V=b;return P(V._context)+".Provider";case l:return A(b,b.render,"ForwardRef");case u:var q=b.displayName||null;return q!==null?q:G(b.type)||"Memo";case m:{var de=b,ue=de._payload,se=de._init;try{return G(se(ue))}catch{return null}}}return null}var z=Object.assign,R=0,I,O,N,S,F,W,X;function ae(){}ae.__reactDisabledLog=!0;function be(){{if(R===0){I=console.log,O=console.info,N=console.warn,S=console.error,F=console.group,W=console.groupCollapsed,X=console.groupEnd;var b={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:b,log:b,warn:b,error:b,group:b,groupCollapsed:b,groupEnd:b})}R++}}function ge(){{if(R--,R===0){var b={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},b,{value:I}),info:z({},b,{value:O}),warn:z({},b,{value:N}),error:z({},b,{value:S}),group:z({},b,{value:F}),groupCollapsed:z({},b,{value:W}),groupEnd:z({},b,{value:X})})}R<0&&w("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var pe=g.ReactCurrentDispatcher,U;function ee(b,k,V){{if(U===void 0)try{throw Error()}catch(de){var q=de.stack.trim().match(/\n( *(at )?)/);U=q&&q[1]||""}return`
20
+ `+U+b}}var te=!1,ne;{var ie=typeof WeakMap=="function"?WeakMap:Map;ne=new ie}function oe(b,k){if(!b||te)return"";{var V=ne.get(b);if(V!==void 0)return V}var q;te=!0;var de=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ue;ue=pe.current,pe.current=null,be();try{if(k){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ke){q=ke}Reflect.construct(b,[],se)}else{try{se.call()}catch(ke){q=ke}b.call(se.prototype)}}else{try{throw Error()}catch(ke){q=ke}b()}}catch(ke){if(ke&&q&&typeof ke.stack=="string"){for(var re=ke.stack.split(`
21
21
  `),Se=q.stack.split(`
22
22
  `),we=re.length-1,ye=Se.length-1;we>=1&&ye>=0&&re[we]!==Se[ye];)ye--;for(;we>=1&&ye>=0;we--,ye--)if(re[we]!==Se[ye]){if(we!==1||ye!==1)do if(we--,ye--,ye<0||re[we]!==Se[ye]){var Ie=`
23
- `+re[we].replace(" at new "," at ");return b.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",b.displayName)),typeof b=="function"&&te.set(b,Ie),Ie}while(we>=1&&ye>=0);break}}}finally{ne=!1,de.current=fe,ge(),Error.prepareStackTrace=ue}var Dt=b?b.displayName||b.name:"",vt=Dt?ee(Dt):"";return typeof b=="function"&&te.set(b,vt),vt}function $e(b,k,B){return ie(b,!1)}function Ce(b){var k=b.prototype;return!!(k&&k.isReactComponent)}function A(b,k,B){if(b==null)return"";if(typeof b=="function")return ie(b,Ce(b));if(typeof b=="string")return ee(b);switch(b){case d:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return $e(b.render);case u:return A(b.type,k,B);case m:{var q=b,ue=q._payload,fe=q._init;try{return A(fe(ue),k,B)}catch{}}}return""}var K=Object.prototype.hasOwnProperty,Z={},me=g.ReactDebugCurrentFrame;function xe(b){if(b){var k=b._owner,B=A(b.type,b._source,k?k.type:null);me.setExtraStackFrame(B)}else me.setExtraStackFrame(null)}function le(b,k,B,q,ue){{var fe=Function.call.bind(K);for(var ae in b)if(fe(b,ae)){var re=void 0;try{if(typeof b[ae]!="function"){var Se=Error((q||"React class")+": "+B+" type `"+ae+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[ae]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}re=b[ae](k,ae,q,B,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(xe(ue),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",B,ae,typeof re),xe(null)),re instanceof Error&&!(re.message in Z)&&(Z[re.message]=!0,xe(ue),w("Failed %s type: %s",B,re.message),xe(null))}}}var se=Array.isArray;function Ee(b){return se(b)}function ht(b){{var k=typeof Symbol=="function"&&Symbol.toStringTag,B=k&&b[Symbol.toStringTag]||b.constructor.name||"Object";return B}}function Lr(b){try{return Oi(b),!1}catch{return!0}}function Oi(b){return""+b}function Ii(b){if(Lr(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(b)),Oi(b)}var Jt=g.ReactCurrentOwner,Om={key:!0,ref:!0,__self:!0,__source:!0},Mi,Ai,Fr;Fr={};function Im(b){if(K.call(b,"ref")){var k=Object.getOwnPropertyDescriptor(b,"ref").get;if(k&&k.isReactWarning)return!1}return b.ref!==void 0}function Mm(b){if(K.call(b,"key")){var k=Object.getOwnPropertyDescriptor(b,"key").get;if(k&&k.isReactWarning)return!1}return b.key!==void 0}function Am(b,k){if(typeof b.ref=="string"&&Jt.current&&k&&Jt.current.stateNode!==k){var B=U(Jt.current.type);Fr[B]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',U(Jt.current.type),b.ref),Fr[B]=!0)}}function Dm(b,k){{var B=function(){Mi||(Mi=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};B.isReactWarning=!0,Object.defineProperty(b,"key",{get:B,configurable:!0})}}function jm(b,k){{var B=function(){Ai||(Ai=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};B.isReactWarning=!0,Object.defineProperty(b,"ref",{get:B,configurable:!0})}}var Lm=function(b,k,B,q,ue,fe,ae){var re={$$typeof:t,type:b,key:k,ref:B,props:ae,_owner:fe};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ue}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Fm(b,k,B,q,ue){{var fe,ae={},re=null,Se=null;B!==void 0&&(Ii(B),re=""+B),Mm(k)&&(Ii(k.key),re=""+k.key),Im(k)&&(Se=k.ref,Am(k,ue));for(fe in k)K.call(k,fe)&&!Om.hasOwnProperty(fe)&&(ae[fe]=k[fe]);if(b&&b.defaultProps){var we=b.defaultProps;for(fe in we)ae[fe]===void 0&&(ae[fe]=we[fe])}if(re||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;re&&Dm(ae,ye),Se&&jm(ae,ye)}return Lm(b,re,Se,ue,q,Jt.current,ae)}}var Vr=g.ReactCurrentOwner,Di=g.ReactDebugCurrentFrame;function At(b){if(b){var k=b._owner,B=A(b.type,b._source,k?k.type:null);Di.setExtraStackFrame(B)}else Di.setExtraStackFrame(null)}var Br;Br=!1;function zr(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function ji(){{if(Vr.current){var b=U(Vr.current.type);if(b)return`
23
+ `+re[we].replace(" at new "," at ");return b.displayName&&Ie.includes("<anonymous>")&&(Ie=Ie.replace("<anonymous>",b.displayName)),typeof b=="function"&&ne.set(b,Ie),Ie}while(we>=1&&ye>=0);break}}}finally{te=!1,pe.current=ue,ge(),Error.prepareStackTrace=de}var Dt=b?b.displayName||b.name:"",vt=Dt?ee(Dt):"";return typeof b=="function"&&ne.set(b,vt),vt}function $e(b,k,V){return oe(b,!1)}function Ce(b){var k=b.prototype;return!!(k&&k.isReactComponent)}function D(b,k,V){if(b==null)return"";if(typeof b=="function")return oe(b,Ce(b));if(typeof b=="string")return ee(b);switch(b){case d:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof b=="object")switch(b.$$typeof){case l:return $e(b.render);case u:return D(b.type,k,V);case m:{var q=b,de=q._payload,ue=q._init;try{return D(ue(de),k,V)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Z={},me=g.ReactDebugCurrentFrame;function xe(b){if(b){var k=b._owner,V=D(b.type,b._source,k?k.type:null);me.setExtraStackFrame(V)}else me.setExtraStackFrame(null)}function le(b,k,V,q,de){{var ue=Function.call.bind(H);for(var se in b)if(ue(b,se)){var re=void 0;try{if(typeof b[se]!="function"){var Se=Error((q||"React class")+": "+V+" type `"+se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof b[se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}re=b[se](k,se,q,V,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(we){re=we}re&&!(re instanceof Error)&&(xe(de),w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",q||"React class",V,se,typeof re),xe(null)),re instanceof Error&&!(re.message in Z)&&(Z[re.message]=!0,xe(de),w("Failed %s type: %s",V,re.message),xe(null))}}}var ce=Array.isArray;function Ee(b){return ce(b)}function ht(b){{var k=typeof Symbol=="function"&&Symbol.toStringTag,V=k&&b[Symbol.toStringTag]||b.constructor.name||"Object";return V}}function Fr(b){try{return Mi(b),!1}catch{return!0}}function Mi(b){return""+b}function Ai(b){if(Fr(b))return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(b)),Mi(b)}var Jt=g.ReactCurrentOwner,Im={key:!0,ref:!0,__self:!0,__source:!0},Di,ji,Vr;Vr={};function Mm(b){if(H.call(b,"ref")){var k=Object.getOwnPropertyDescriptor(b,"ref").get;if(k&&k.isReactWarning)return!1}return b.ref!==void 0}function Am(b){if(H.call(b,"key")){var k=Object.getOwnPropertyDescriptor(b,"key").get;if(k&&k.isReactWarning)return!1}return b.key!==void 0}function Dm(b,k){if(typeof b.ref=="string"&&Jt.current&&k&&Jt.current.stateNode!==k){var V=G(Jt.current.type);Vr[V]||(w('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',G(Jt.current.type),b.ref),Vr[V]=!0)}}function jm(b,k){{var V=function(){Di||(Di=!0,w("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};V.isReactWarning=!0,Object.defineProperty(b,"key",{get:V,configurable:!0})}}function Lm(b,k){{var V=function(){ji||(ji=!0,w("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",k))};V.isReactWarning=!0,Object.defineProperty(b,"ref",{get:V,configurable:!0})}}var Fm=function(b,k,V,q,de,ue,se){var re={$$typeof:t,type:b,key:k,ref:V,props:se,_owner:ue};return re._store={},Object.defineProperty(re._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(re,"_self",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.defineProperty(re,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(re.props),Object.freeze(re)),re};function Vm(b,k,V,q,de){{var ue,se={},re=null,Se=null;V!==void 0&&(Ai(V),re=""+V),Am(k)&&(Ai(k.key),re=""+k.key),Mm(k)&&(Se=k.ref,Dm(k,de));for(ue in k)H.call(k,ue)&&!Im.hasOwnProperty(ue)&&(se[ue]=k[ue]);if(b&&b.defaultProps){var we=b.defaultProps;for(ue in we)se[ue]===void 0&&(se[ue]=we[ue])}if(re||Se){var ye=typeof b=="function"?b.displayName||b.name||"Unknown":b;re&&jm(se,ye),Se&&Lm(se,ye)}return Fm(b,re,Se,de,q,Jt.current,se)}}var Br=g.ReactCurrentOwner,Li=g.ReactDebugCurrentFrame;function At(b){if(b){var k=b._owner,V=D(b.type,b._source,k?k.type:null);Li.setExtraStackFrame(V)}else Li.setExtraStackFrame(null)}var zr;zr=!1;function Wr(b){return typeof b=="object"&&b!==null&&b.$$typeof===t}function Fi(){{if(Br.current){var b=G(Br.current.type);if(b)return`
24
24
 
25
- Check the render method of \``+b+"`."}return""}}function Vm(b){return""}var Li={};function Bm(b){{var k=ji();if(!k){var B=typeof b=="string"?b:b.displayName||b.name;B&&(k=`
25
+ Check the render method of \``+b+"`."}return""}}function Bm(b){return""}var Vi={};function zm(b){{var k=Fi();if(!k){var V=typeof b=="string"?b:b.displayName||b.name;V&&(k=`
26
26
 
27
- Check the top-level render call using <`+B+">.")}return k}}function Fi(b,k){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var B=Bm(k);if(Li[B])return;Li[B]=!0;var q="";b&&b._owner&&b._owner!==Vr.current&&(q=" It was passed a child from "+U(b._owner.type)+"."),At(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',B,q),At(null)}}function Vi(b,k){{if(typeof b!="object")return;if(Ee(b))for(var B=0;B<b.length;B++){var q=b[B];zr(q)&&Fi(q,k)}else if(zr(b))b._store&&(b._store.validated=!0);else if(b){var ue=x(b);if(typeof ue=="function"&&ue!==b.entries)for(var fe=ue.call(b),ae;!(ae=fe.next()).done;)zr(ae.value)&&Fi(ae.value,k)}}}function zm(b){{var k=b.type;if(k==null||typeof k=="string")return;var B;if(typeof k=="function")B=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===l||k.$$typeof===u))B=k.propTypes;else return;if(B){var q=U(k);le(B,b.props,"prop",q,b)}else if(k.PropTypes!==void 0&&!Br){Br=!0;var ue=U(k);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ue||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Wm(b){{for(var k=Object.keys(b.props),B=0;B<k.length;B++){var q=k[B];if(q!=="children"&&q!=="key"){At(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),At(null);break}}b.ref!==null&&(At(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),At(null))}}var Bi={};function zi(b,k,B,q,ue,fe){{var ae=R(b);if(!ae){var re="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vm();Se?re+=Se:re+=ji();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(U(b.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var ye=Fm(b,k,B,ue,fe);if(ye==null)return ye;if(ae){var Ie=k.children;if(Ie!==void 0)if(q)if(Ee(Ie)){for(var Dt=0;Dt<Ie.length;Dt++)Vi(Ie[Dt],b);Object.freeze&&Object.freeze(Ie)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Vi(Ie,b)}if(K.call(k,"key")){var vt=U(b),ke=Object.keys(k).filter(function(Ym){return Ym!=="key"}),Wr=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Bi[vt+Wr]){var Gm=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+V+">.")}return k}}function Bi(b,k){{if(!b._store||b._store.validated||b.key!=null)return;b._store.validated=!0;var V=zm(k);if(Vi[V])return;Vi[V]=!0;var q="";b&&b._owner&&b._owner!==Br.current&&(q=" It was passed a child from "+G(b._owner.type)+"."),At(b),w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',V,q),At(null)}}function zi(b,k){{if(typeof b!="object")return;if(Ee(b))for(var V=0;V<b.length;V++){var q=b[V];Wr(q)&&Bi(q,k)}else if(Wr(b))b._store&&(b._store.validated=!0);else if(b){var de=y(b);if(typeof de=="function"&&de!==b.entries)for(var ue=de.call(b),se;!(se=ue.next()).done;)Wr(se.value)&&Bi(se.value,k)}}}function Wm(b){{var k=b.type;if(k==null||typeof k=="string")return;var V;if(typeof k=="function")V=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===l||k.$$typeof===u))V=k.propTypes;else return;if(V){var q=G(k);le(V,b.props,"prop",q,b)}else if(k.PropTypes!==void 0&&!zr){zr=!0;var de=G(k);w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Rm(b){{for(var k=Object.keys(b.props),V=0;V<k.length;V++){var q=k[V];if(q!=="children"&&q!=="key"){At(b),w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",q),At(null);break}}b.ref!==null&&(At(b),w("Invalid attribute `ref` supplied to `React.Fragment`."),At(null))}}var Wi={};function Ri(b,k,V,q,de,ue){{var se=K(b);if(!se){var re="";(b===void 0||typeof b=="object"&&b!==null&&Object.keys(b).length===0)&&(re+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Bm();Se?re+=Se:re+=Fi();var we;b===null?we="null":Ee(b)?we="array":b!==void 0&&b.$$typeof===t?(we="<"+(G(b.type)||"Unknown")+" />",re=" Did you accidentally export a JSX literal instead of a component?"):we=typeof b,w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",we,re)}var ye=Vm(b,k,V,de,ue);if(ye==null)return ye;if(se){var Ie=k.children;if(Ie!==void 0)if(q)if(Ee(Ie)){for(var Dt=0;Dt<Ie.length;Dt++)zi(Ie[Dt],b);Object.freeze&&Object.freeze(Ie)}else w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else zi(Ie,b)}if(H.call(k,"key")){var vt=G(b),ke=Object.keys(k).filter(function(Xm){return Xm!=="key"}),Rr=ke.length>0?"{key: someKey, "+ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Wi[vt+Rr]){var Ym=ke.length>0?"{"+ke.join(": ..., ")+": ...}":"{}";w(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,Wr,vt,Gm,vt),Bi[vt+Wr]=!0}}return b===r?Wm(ye):zm(ye),ye}}function Rm(b,k,B){return zi(b,k,B,!0)}function Hm(b,k,B){return zi(b,k,B,!1)}var Um=Hm,Km=Rm;Lt.Fragment=r,Lt.jsx=Um,Lt.jsxs=Km}()),Lt}process.env.NODE_ENV==="production"?An.exports=Ri():An.exports=Hi();var y=An.exports;function Gr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Gr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ui(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Gr(e))&&(r&&(r+=" "),r+=t);return r}const Dn="-";function Ki(e){const t=Yi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(s){const c=s.split(Dn);return c[0]===""&&c.length!==1&&c.shift(),Yr(c,t)||Gi(s)}function a(s,c){const l=n[s]||[];return c&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Yr(e,t){if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Yr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId}const Xr=/^\[(.+)\]$/;function Gi(e){if(Xr.test(e)){const t=Xr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function Yi(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return qi(Object.entries(e.classGroups),n).forEach(([a,s])=>{jn(s,r,a,t)}),r}function jn(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:qr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Xi(o)){jn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{jn(s,qr(t,a),n,r)})})}function qr(e,t){let n=e;return t.split(Dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Xi(e){return e.isThemeGetter}function qi(e,t){return t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,c])=>[t+s,c])):a);return[n,o]}):e}function Zi(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(a,s){n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}}const Zr="!";function Ji(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(s){const c=[];let l=0,d=0,f;for(let h=0;h<s.length;h++){let x=s[h];if(l===0){if(x===r&&(n||s.slice(h,h+o)===t)){c.push(s.slice(d,h)),d=h+o;continue}if(x==="/"){f=h;continue}}x==="["?l++:x==="]"&&l--}const u=c.length===0?s:s.substring(d),m=u.startsWith(Zr),v=m?u.substring(1):u,p=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:p}}}function Qi(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function es(e){return{cache:Zi(e.cacheSize),splitModifiers:Ji(e),...Ki(e)}}const ts=/\s+/;function ns(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(ts).map(s=>{const{modifiers:c,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}=n(s);let u=r(f?d.substring(0,f):d),m=!!f;if(!u){if(!f)return{isTailwindClass:!1,originalClassName:s};if(u=r(d),!u)return{isTailwindClass:!1,originalClassName:s};m=!1}const v=Qi(c).join(":");return{isTailwindClass:!0,modifierId:l?v+Zr:v,classGroupId:u,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:c,classGroupId:l,hasPostfixModifier:d}=s,f=c+l;return a.has(f)?!1:(a.add(f),o(l,d).forEach(u=>a.add(c+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function rs(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Jr(t))&&(r&&(r+=" "),r+=n);return r}function Jr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Jr(e[r]))&&(n&&(n+=" "),n+=t);return n}function os(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,u)=>u(f),e());return n=es(d),r=n.cache.get,o=n.cache.set,a=c,c(l)}function c(l){const d=r(l);if(d)return d;const f=ns(l,n);return o(l,f),f}return function(){return a(rs.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const Qr=/^\[(?:([a-z-]+):)?(.+)\]$/i,as=/^\d+\/\d+$/,is=new Set(["px","full","screen"]),ss=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cs=/\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$/,ls=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,ds=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,us=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Be(e){return it(e)||is.has(e)||as.test(e)}function Ye(e){return bt(e,"length",ws)}function it(e){return!!e&&!Number.isNaN(Number(e))}function Qt(e){return bt(e,"number",it)}function Ft(e){return!!e&&Number.isInteger(Number(e))}function fs(e){return e.endsWith("%")&&it(e.slice(0,-1))}function J(e){return Qr.test(e)}function Xe(e){return ss.test(e)}const ps=new Set(["length","size","percentage"]);function ms(e){return bt(e,ps,eo)}function hs(e){return bt(e,"position",eo)}const vs=new Set(["image","url"]);function gs(e){return bt(e,vs,ys)}function bs(e){return bt(e,"",xs)}function Vt(){return!0}function bt(e,t,n){const r=Qr.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ws(e){return cs.test(e)&&!ls.test(e)}function eo(){return!1}function xs(e){return ds.test(e)}function ys(e){return us.test(e)}function $s(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),s=he("borderSpacing"),c=he("borderWidth"),l=he("contrast"),d=he("grayscale"),f=he("hueRotate"),u=he("invert"),m=he("gap"),v=he("gradientColorStops"),p=he("gradientColorStopPositions"),h=he("inset"),x=he("margin"),g=he("opacity"),w=he("padding"),$=he("saturate"),C=he("scale"),E=he("sepia"),M=he("skew"),T=he("space"),_=he("translate"),z=()=>["auto","contain","none"],R=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",J,t],P=()=>[J,t],U=()=>["",Be,Ye],F=()=>["auto",it,J],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",J],V=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[it,Qt],X=()=>[it,J];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[Be,Ye],blur:["none","",Xe,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Xe,J],borderSpacing:P(),borderWidth:U(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[fs,Ye],inset:L(),margin:L(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:S(),skew:X(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Xe]}],"break-after":[{"break-after":V()}],"break-before":[{"break-before":V()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),J]}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ft,J]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Ft,J]}],"grid-cols":[{"grid-cols":[Vt]}],"col-start-end":[{col:["auto",{span:["full",Ft,J]},J]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Ft,J]},J]}],"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":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Xe]},Xe]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xe,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qt]}],"font-family":[{font:[Vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",it,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,Ye]}],"underline-offset":[{"underline-offset":["auto",Be,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),hs]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ms]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gs]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[v]}],"gradient-via":[{via:[v]}],"gradient-to":[{to:[v]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:I()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Be,J]}],"outline-w":[{outline:[Be,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Be,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xe,bs]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xe,J]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[$]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ft,J]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,Ye,Qt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Cs=os($s);function Q(...e){return Cs(Ui(e))}function to(e,t="600 12px Arial, Helvetica, sans-serif"){const n=document.createElement("canvas"),r=n.getContext("2d");if(r){r.font=t;const o=r.measureText(e);return n.remove(),o.width}return 0}function no(e){if(e<=0)return"";const t=65,n=(e-1)%26,r=Math.floor((e-1)/26);return no(r)+String.fromCharCode(t+n)}const Es=16,ro=8,oo=16;function en(e,t){let n=e;if(t){const{leftIcon:r=!0,paddingX:o=!0,rightIcon:a}=t;o&&(n+=Es),r&&(n+=oo+ro),a&&(n+=oo+ro)}return n}en(160);const qe=en(480),Ze=en(80),Ss=36,Bt=26,ao=["Decimal","Float","Integer","Percentage","Currency"];function _s(e){return e.map((t,n)=>{const r=to(t.name)||0;let o=en(r,{rightIcon:!0})+1;return o=o<Ze?Ze:o,o>qe&&(o=qe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:no(n+1),position:n,state:{...t.state,width:o}}})}function ks(e){try{return e.includes("/")?new Date(e.split("/").reverse().join("-")).toISOString().split("T")[0].replace("+",""):new Date(e).toISOString().split("T")[0].replace("+","")}catch{return null}}const Je=".",Qe=",",Ts=200;function Ps(e){const{value:t="",dataEditorType:n}=e;if(typeof t=="string"){if(n==="String")return t.length>200?t.substring(0,Ts):t;if(n==="Date")return ks(t)||"";if(n==="Boolean")return t==="true"?"true":"false";if(ao.includes(n)){const o=t.match(/\./g)?.length||0,a=t.match(/,/g)?.length||0;let s=t;if(a===1&&o===0&&(s=t.replace(Qe,Je)),a===0&&o===1&&(s=t),a===1&&o===1){const c=t.indexOf(Qe),l=t.indexOf(Je);c>l&&(s=t.replace(Je,"").replace(Qe,Je)),s=t.replace(Qe,"")}return a>1&&o===1&&(s=t.replaceAll(Qe,"")),o>1&&a===0&&(s=t.replaceAll(Je,"")),a>1&&o===0&&(s=t.replaceAll(Qe,"")),o>1&&a===1&&(s=t.replaceAll(Je,"").replace(Qe,Je)),a===0&&o===0&&(s=t),a>1&&o>1&&(s=t.replaceAll(Qe,"").replaceAll(Je,"")),Number(s)}}return t}function Ns(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Os(e){return e?.length}function Ln(e){const t=e?.[0];return t?t.length:0}function Fn(e){return{columns:Ln(e),rows:Os(e)}}function Is(e,t){return e.column===t.column&&e.row===t.row}function Ms(e,t){return t.row>=e.start.row&&t.column>=e.start.column&&t.row<=e.end.row&&t.column<=e.end.column}function Vn(e){const{matrix:t,pointRange:n}=e;return n.start.column===0&&n.end.column===Ln(t)}function As(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Vn({matrix:t,pointRange:n})}function Ds(e){let t=e;return e.endsWith(`
32
+ <%s key={someKey} {...props} />`,Rr,vt,Ym,vt),Wi[vt+Rr]=!0}}return b===r?Rm(ye):Wm(ye),ye}}function Hm(b,k,V){return Ri(b,k,V,!0)}function Um(b,k,V){return Ri(b,k,V,!1)}var Km=Um,Gm=Hm;Lt.Fragment=r,Lt.jsx=Km,Lt.jsxs=Gm}()),Lt}process.env.NODE_ENV==="production"?An.exports=Ui():An.exports=Ki();var x=An.exports;function Yr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yr(e))&&(r&&(r+=" "),r+=t);return r}const Dn="-";function Yi(e){const t=qi(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function o(s){const c=s.split(Dn);return c[0]===""&&c.length!==1&&c.shift(),Xr(c,t)||Xi(s)}function a(s,c){const l=n[s]||[];return c&&r[s]?[...l,...r[s]]:l}return{getClassGroupId:o,getConflictingClassGroupIds:a}}function Xr(e,t){if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Xr(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const a=e.join(Dn);return t.validators.find(({validator:s})=>s(a))?.classGroupId}const qr=/^\[(.+)\]$/;function Xi(e){if(qr.test(e)){const t=qr.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function qi(e){const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return Ji(Object.entries(e.classGroups),n).forEach(([a,s])=>{jn(s,r,a,t)}),r}function jn(e,t,n,r){e.forEach(o=>{if(typeof o=="string"){const a=o===""?t:Zr(t,o);a.classGroupId=n;return}if(typeof o=="function"){if(Zi(o)){jn(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([a,s])=>{jn(s,Zr(t,a),n,r)})})}function Zr(e,t){let n=e;return t.split(Dn).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n}function Zi(e){return e.isThemeGetter}function Ji(e,t){return t?e.map(([n,r])=>{const o=r.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([s,c])=>[t+s,c])):a);return[n,o]}):e}function Qi(e){if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;function o(a,s){n.set(a,s),t++,t>e&&(t=0,r=n,n=new Map)}return{get(a){let s=n.get(a);if(s!==void 0)return s;if((s=r.get(a))!==void 0)return o(a,s),s},set(a,s){n.has(a)?n.set(a,s):o(a,s)}}}const Jr="!";function es(e){const t=e.separator,n=t.length===1,r=t[0],o=t.length;return function(s){const c=[];let l=0,d=0,f;for(let v=0;v<s.length;v++){let y=s[v];if(l===0){if(y===r&&(n||s.slice(v,v+o)===t)){c.push(s.slice(d,v)),d=v+o;continue}if(y==="/"){f=v;continue}}y==="["?l++:y==="]"&&l--}const u=c.length===0?s:s.substring(d),m=u.startsWith(Jr),h=m?u.substring(1):u,p=f&&f>d?f-d:void 0;return{modifiers:c,hasImportantModifier:m,baseClassName:h,maybePostfixModifierPosition:p}}}function ts(e){if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t}function ns(e){return{cache:Qi(e.cacheSize),splitModifiers:es(e),...Yi(e)}}const rs=/\s+/;function os(e,t){const{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=new Set;return e.trim().split(rs).map(s=>{const{modifiers:c,hasImportantModifier:l,baseClassName:d,maybePostfixModifierPosition:f}=n(s);let u=r(f?d.substring(0,f):d),m=!!f;if(!u){if(!f)return{isTailwindClass:!1,originalClassName:s};if(u=r(d),!u)return{isTailwindClass:!1,originalClassName:s};m=!1}const h=ts(c).join(":");return{isTailwindClass:!0,modifierId:l?h+Jr:h,classGroupId:u,originalClassName:s,hasPostfixModifier:m}}).reverse().filter(s=>{if(!s.isTailwindClass)return!0;const{modifierId:c,classGroupId:l,hasPostfixModifier:d}=s,f=c+l;return a.has(f)?!1:(a.add(f),o(l,d).forEach(u=>a.add(c+u)),!0)}).reverse().map(s=>s.originalClassName).join(" ")}function as(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qr(t))&&(r&&(r+=" "),r+=n);return r}function Qr(e){if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qr(e[r]))&&(n&&(n+=" "),n+=t);return n}function is(e,...t){let n,r,o,a=s;function s(l){const d=t.reduce((f,u)=>u(f),e());return n=ns(d),r=n.cache.get,o=n.cache.set,a=c,c(l)}function c(l){const d=r(l);if(d)return d;const f=os(l,n);return o(l,f),f}return function(){return a(as.apply(null,arguments))}}function he(e){const t=n=>n[e]||[];return t.isThemeGetter=!0,t}const eo=/^\[(?:([a-z-]+):)?(.+)\]$/i,ss=/^\d+\/\d+$/,cs=new Set(["px","full","screen"]),ls=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ds=/\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$/,us=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,fs=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ps=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function Be(e){return it(e)||cs.has(e)||ss.test(e)}function Ye(e){return bt(e,"length",ys)}function it(e){return!!e&&!Number.isNaN(Number(e))}function Qt(e){return bt(e,"number",it)}function Ft(e){return!!e&&Number.isInteger(Number(e))}function ms(e){return e.endsWith("%")&&it(e.slice(0,-1))}function J(e){return eo.test(e)}function Xe(e){return ls.test(e)}const hs=new Set(["length","size","percentage"]);function vs(e){return bt(e,hs,to)}function gs(e){return bt(e,"position",to)}const bs=new Set(["image","url"]);function ws(e){return bt(e,bs,Cs)}function xs(e){return bt(e,"",$s)}function Vt(){return!0}function bt(e,t,n){const r=eo.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1}function ys(e){return ds.test(e)&&!us.test(e)}function to(){return!1}function $s(e){return fs.test(e)}function Cs(e){return ps.test(e)}function Es(){const e=he("colors"),t=he("spacing"),n=he("blur"),r=he("brightness"),o=he("borderColor"),a=he("borderRadius"),s=he("borderSpacing"),c=he("borderWidth"),l=he("contrast"),d=he("grayscale"),f=he("hueRotate"),u=he("invert"),m=he("gap"),h=he("gradientColorStops"),p=he("gradientColorStopPositions"),v=he("inset"),y=he("margin"),g=he("opacity"),w=he("padding"),$=he("saturate"),C=he("scale"),E=he("sepia"),M=he("skew"),T=he("space"),_=he("translate"),B=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto",J,t],P=()=>[J,t],G=()=>["",Be,Ye],z=()=>["auto",it,J],R=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],I=()=>["solid","dashed","dotted","double","none"],O=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],N=()=>["start","end","center","between","around","evenly","stretch"],S=()=>["","0",J],F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>[it,Qt],X=()=>[it,J];return{cacheSize:500,separator:":",theme:{colors:[Vt],spacing:[Be,Ye],blur:["none","",Xe,J],brightness:W(),borderColor:[e],borderRadius:["none","","full",Xe,J],borderSpacing:P(),borderWidth:G(),contrast:W(),grayscale:S(),hueRotate:X(),invert:S(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[ms,Ye],inset:A(),margin:A(),opacity:W(),padding:P(),saturate:W(),scale:W(),sepia:S(),skew:X(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",J]}],container:["container"],columns:[{columns:[Xe]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...R(),J]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[v]}],"inset-x":[{"inset-x":[v]}],"inset-y":[{"inset-y":[v]}],start:[{start:[v]}],end:[{end:[v]}],top:[{top:[v]}],right:[{right:[v]}],bottom:[{bottom:[v]}],left:[{left:[v]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ft,J]}],basis:[{basis:A()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",J]}],grow:[{grow:S()}],shrink:[{shrink:S()}],order:[{order:["first","last","none",Ft,J]}],"grid-cols":[{"grid-cols":[Vt]}],"col-start-end":[{col:["auto",{span:["full",Ft,J]},J]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[Vt]}],"row-start-end":[{row:["auto",{span:[Ft,J]},J]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",J]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",J]}],gap:[{gap:[m]}],"gap-x":[{"gap-x":[m]}],"gap-y":[{"gap-y":[m]}],"justify-content":[{justify:["normal",...N()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...N(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...N(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[w]}],px:[{px:[w]}],py:[{py:[w]}],ps:[{ps:[w]}],pe:[{pe:[w]}],pt:[{pt:[w]}],pr:[{pr:[w]}],pb:[{pb:[w]}],pl:[{pl:[w]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",J,t]}],"min-w":[{"min-w":[J,t,"min","max","fit"]}],"max-w":[{"max-w":[J,t,"none","full","min","max","fit","prose",{screen:[Xe]},Xe]}],h:[{h:[J,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[J,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[J,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Xe,Ye]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qt]}],"font-family":[{font:[Vt]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",J]}],"line-clamp":[{"line-clamp":["none",it,Qt]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Be,J]}],"list-image":[{"list-image":["none",J]}],"list-style-type":[{list:["none","disc","decimal",J]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Be,Ye]}],"underline-offset":[{"underline-offset":["auto",Be,J]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",J]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",J]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...R(),gs]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vs]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ws]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...I(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}],"divide-style":[{divide:I()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...I()]}],"outline-offset":[{"outline-offset":[Be,J]}],"outline-w":[{outline:[Be,Ye]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[Be,Ye]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Xe,xs]}],"shadow-color":[{shadow:[Vt]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...O(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":O()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Xe,J]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[u]}],saturate:[{saturate:[$]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[u]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[$]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",J]}],duration:[{duration:X()}],ease:[{ease:["linear","in","out","in-out",J]}],delay:[{delay:X()}],animate:[{animate:["none","spin","ping","pulse","bounce",J]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[Ft,J]}],"translate-x":[{"translate-x":[_]}],"translate-y":[{"translate-y":[_]}],"skew-x":[{"skew-x":[M]}],"skew-y":[{"skew-y":[M]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",J]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",J]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",J]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Be,Ye,Qt]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}const Ss=is(Es);function Q(...e){return Ss(Gi(e))}function no(e,t="600 12px Arial, Helvetica, sans-serif"){const n=document.createElement("canvas"),r=n.getContext("2d");if(r){r.font=t;const o=r.measureText(e);return n.remove(),o.width}return 0}function ro(e){if(e<=0)return"";const t=65,n=(e-1)%26,r=Math.floor((e-1)/26);return ro(r)+String.fromCharCode(t+n)}const _s=16,oo=8,ao=16;function en(e,t){let n=e;if(t){const{leftIcon:r=!0,paddingX:o=!0,rightIcon:a}=t;o&&(n+=_s),r&&(n+=ao+oo),a&&(n+=ao+oo)}return n}en(160);const qe=en(480),Ze=en(80),ks=36,Bt=26,io=["Decimal","Float","Integer","Percentage","Currency"];function Ts(e){return e.map((t,n)=>{const r=no(t.name)||0;let o=en(r,{rightIcon:!0})+1;return o=o<Ze?Ze:o,o>qe&&(o=qe),{...t,id:`spreadsheet__column__id__${t.id||t.name}`,alphabetLetter:ro(n+1),position:n,state:{...t.state,width:o}}})}function Ln({value:e,min:t,max:n}){const r=Number(e);if(e==="")return;let o=r;return typeof t=="number"&&r<t&&(o=t),typeof n=="number"&&r>n&&(o=n),o??""}function Ps(e){try{return e.includes("/")?new Date(e.split("/").reverse().join("-")).toISOString().split("T")[0].replace("+",""):new Date(e).toISOString().split("T")[0].replace("+","")}catch{return null}}const Je=".",Qe=",",Ns=200;function Os(e){const{value:t="",column:n}=e;if(n){const{dataEditorType:r,settings:o}=n;if(typeof t=="string"&&r){const a=io.includes(r),s=r==="String",c=r==="Date",l=r==="Boolean";if(s)return t.length>200?t.substring(0,Ns):t;if(c)return Ps(t)||"";if(l)return t==="true"?"true":"false";if(a){const d=t.match(/\./g)?.length||0,f=t.match(/,/g)?.length||0;let u=t;if(f===1&&d===0&&(u=t.replace(Qe,Je)),f===0&&d===1&&(u=t),f===1&&d===1){const m=t.indexOf(Qe),h=t.indexOf(Je);m>h&&(u=t.replace(Je,"").replace(Qe,Je)),u=t.replace(Qe,"")}if(f>1&&d===1&&(u=t.replaceAll(Qe,"")),d>1&&f===0&&(u=t.replaceAll(Je,"")),f>1&&d===0&&(u=t.replaceAll(Qe,"")),d>1&&f===1&&(u=t.replaceAll(Je,"").replace(Qe,Je)),f===0&&d===0&&(u=t),f>1&&d>1&&(u=t.replaceAll(Qe,"").replaceAll(Je,"")),o){const m=o.numeric?.min,h=o.numeric?.max,p=Ln({value:u,min:m,max:h});p&&(u=p.toString())}return Number(u)}}}return t}function Is(e,t){return new Array(e.rows).fill(void 0).map(()=>new Array(e.columns).fill(t))}function Ms(e){return e?.length}function Fn(e){const t=e?.[0];return t?t.length:0}function Vn(e){return{columns:Fn(e),rows:Ms(e)}}function As(e,t){return e.column===t.column&&e.row===t.row}function Ds(e,t){return t.row>=e.start.row&&t.column>=e.start.column&&t.row<=e.end.row&&t.column<=e.end.column}function Bn(e){const{matrix:t,pointRange:n}=e;return n.start.column===0&&n.end.column===Fn(t)}function js(e){const{matrix:t,pointRange:n,row:r}=e;return r>=n.start.row&&r<=n.end.row&&Bn({matrix:t,pointRange:n})}function Ls(e){let t=e;return e.endsWith(`
33
33
  `)&&(t=e.substring(0,e.length-1)),t.split(`
34
- `).map(n=>n.split(" ").map(r=>r.replaceAll("\r","")))}function js(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Fn(t),a=Fn(n),s=r.row+a.rows>o.rows,c=r.column+a.columns>o.columns,l=s?r.row+a.rows:o.rows,d=c?r.column+a.columns:o.columns,f=Ns({rows:l,columns:d});for(let u=0;u<o.rows;u+=1)for(let m=0;m<o.columns;m+=1)f[u][m]=t[u][m];for(let u=0;u<a.rows;u+=1)for(let m=0;m<a.columns;m+=1)f[u+r.row][m+r.column]=n[u][m];return f}let Bn;const io=i.createContext(null);function Ls(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[s,c]=i.useState(r),l=i.useMemo(()=>_s(n),[n]),d=i.useMemo(()=>Ln(s)||l.length,[s,l.length]),f=i.useMemo(()=>Fn(s),[s]),u=i.useMemo(()=>f.rows===0,[f.rows]),[m,v]=i.useState(l),[p,h]=i.useState(null),[x,g]=i.useState({height:0,width:0}),[w,$]=i.useState(!1),C=i.useCallback((N=2e3)=>{$(!0),Bn&&clearTimeout(Bn),Bn=setTimeout(()=>$(!1),N)},[]),E=i.useMemo(()=>!!(p&&Vn({matrix:s,pointRange:p})),[p,s]),M=i.useCallback(async N=>{const{state:S}=await navigator.permissions.query({name:"clipboard-read"});if(S==="denied"){console.log("denied");return}const V=await navigator.clipboard.readText(),W=Ds(V),be=js({mA:s,mB:W,point:N}).map(de=>de.map((G,ee)=>{const ne=m[ee]?.state?.readonly,te=de[ee];return ne?te:G})).map(de=>de.map((G,ee)=>Ps({value:G,dataEditorType:m[ee]?.dataEditorType}))).map(de=>de.slice(0,n.length)),ge=o?be.slice(0,s.length):be;c(ge),a?.(ge)},[m,s,n.length,o,a]),T=i.useCallback(N=>{const{data:S,point:V}=N,{column:W,row:X}=V,oe=structuredClone(s);oe[X][W]=S,c(oe),a?.(oe)},[s,a]),_=i.useCallback(()=>{if(p&&!o){const N=p.start.row,S=p.end.row,V=S-N+1;if(!E)return;const W=V>1?`Você irá excluir ${V} linhas, deseja continuar?
35
- Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja continuar?`;if(!confirm(W))return;const oe=s.filter((be,ge)=>ge<N||ge>S);h(null),c(oe),a?.(oe)}},[s,p,o,E,a]),z=i.useCallback((N,S)=>{if(p&&S&&S.shiftKey){const V=N<p.start.row?N:p.start.row,W=N<p.start.row?p.start.row:N;return h({start:{row:V,column:0},end:{row:W,column:d}})}h({start:{row:N,column:0},end:{row:N,column:d}})},[d,p]),R=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||h({start:N,end:N})},[p?.start.row,p?.start.column]),L=i.useCallback(N=>!!(p&&Ms(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:V}=N;let W=V;V>qe&&(W=qe),V<Ze&&(W=Ze),v(X=>X.map((oe,be)=>({...oe,state:{...oe.state,width:be===S?W:oe.state.width}})))},[]),U=i.useCallback(()=>{if(o)return;const N=[...structuredClone(s),new Array(d).fill(null).map((S,V)=>{const{dataEditorType:W}=m[V];return ao.includes(W)?0:W==="Boolean"?!1:""})];c(N),a?.(N),C()},[o,s,m,d,C,a]),F=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};h({start:N,end:S})},[f]),H=i.useCallback(N=>{const{columnId:S,visible:V}=N,W=X=>X.id!==S?X:{...X,state:{...X.state,visible:V}};v(X=>X.map(oe=>W(oe)))},[]),I=i.useCallback(()=>{v(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{c(r)},[r]),i.useEffect(()=>{v(N=>l.map((S,V)=>({...S,state:{visible:N[V].state.visible,width:N[V].state.width,readonly:S.state.readonly}})))},[l]),i.useEffect(()=>{if(!p||!Is(p.start,p.end))return;const N=()=>{M(p.start)};return window.addEventListener("paste",N),()=>window.removeEventListener("paste",N)},[M,p]);const O=i.useMemo(()=>({size:f,matrix:s,columns:m,emptySize:u,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:h,containerDimensions:x,setContainerDimensions:g,onPaste:M,onChange:T,onRemoveRow:_,onSelectRow:z,onSelectCell:R,isCellSelected:L,onInsertNewRow:U,onColumnResize:P,onSelectSpreadsheet:F,onColumnVisibilityChange:H,onRestoreColumnsVisibility:I}),[f,s,u,o,m,E,w,p,x,M,T,_,z,R,L,U,P,F,H,I]);return y.jsx(io.Provider,{value:O,children:t})}function je(){const e=i.useContext(io);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function Fs(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=je(),a=i.useRef(null);return i.useEffect(()=>{const s=a.current;if(!s)return;const c=new ResizeObserver(l=>{const d=l[0];if(d){const f=d.contentRect.width,u=d.contentRect.height;o({height:u,width:f})}});return c.observe(s),()=>{c.disconnect()}},[o]),y.jsx("div",{ref:a,className:Q("relative min-h-[260px] w-full border border-t-0 border-r-0",r.rows>=7?"border-b-0":"border-b",n),children:t})}function Vs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Bs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var zs=function(e,t){return typeof t=="boolean"?t:!e},so=function(e){return i.useReducer(zs,e)},Ws=["mousedown","touchstart"],co=function(e,t,n){n===void 0&&(n=Ws);var r=i.useRef(t);i.useEffect(function(){r.current=t},[t]),i.useEffect(function(){for(var o=function(l){var d=e.current;d&&!d.contains(l.target)&&r.current(l)},a=0,s=n;a<s.length;a++){var c=s[a];Vs(document,c,o)}return function(){for(var l=0,d=n;l<d.length;l++){var f=d[l];Bs(document,f,o)}}},[n,e])};function Rs(e){const{children:t,className:n}=e,{setPointRange:r}=je(),o=i.useRef(null);return co(o,()=>r(null)),y.jsx("div",{ref:o,className:Q("",n),children:t})}const lo={Matrix:Fs,Root:Rs};function Hs(e){const{className:t,...n}=e;return y.jsx("button",{draggable:!0,className:Q("h-9 w-1.5 cursor-col-resize rounded-sm bg-neutral-400 drop-shadow-md",t),...n,children:y.jsxs("div",{className:"relative",children:[y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2.5 h-3 w-1 rounded-full bg-neutral-300"}),y.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3 w-1 rounded-full bg-neutral-300"})]})})}function Us(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:s,alphabetLetter:c}=n,{matrix:l,pointRange:d,containerDimensions:f,onColumnResize:u}=je(),m=i.useRef(null),v=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,h]=i.useState(!1),[x,g]=i.useState(0),[w,$]=i.useState(0),C=i.useMemo(()=>p?w-x:0,[p,w,x]),E=i.useCallback(L=>{g(L.clientX),h(!0)},[]),M=i.useCallback(L=>{const P=m.current;if(!P)return;const U=L.clientX-x;let F=a+U;F>qe&&(F=qe),F<Ze&&(F=Ze),P.style.left=`${F}px`,$(L.clientX)},[x,a]),T=i.useCallback(L=>{const P=L.clientX-x,U=a+P;u({width:U,position:s}),h(!1)},[x,a,s,u]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(d&&!p){const{start:L,end:P}=d,U=Vn({matrix:l,pointRange:d}),F=s>=L.column&&s<=P.column;if(U)return`bg-[#0085FF] font-bold text-white ${t}`;if(F)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,d,s]),z=i.useCallback(()=>{let L=a+C;return L>qe&&(L=qe),L<Ze&&(L=Ze),`${L}px`},[a,C]),R=i.useMemo(()=>({onDragStart:E,onDrag:M,onDragEnd:T}),[E,M,T]);return i.useEffect(()=>{const L=m.current;L&&(L.style.left=`${a}px`)},[a]),r?y.jsxs("div",{style:{width:a},className:Q("relative flex h-7 w-32 shrink-0 items-center justify-center border border-t-0 border-l-0 text-[#8E8EA9] text-xs",_()),children:[y.jsx(Hs,{...R,className:Q("-right-[3px] -top-1 absolute z-50 opacity-0 hover:opacity-100",p&&"opacity-0")}),y.jsx("div",{ref:m,style:{height:v},className:Q("-top-4 pointer-events-none absolute z-50 h-full w-1.5 rounded-full bg-blue-400 shadow-lg outline outline-sky-100",p?"opacity-100":"opacity-0"),children:y.jsx("span",{className:"-translate-y-1/2 relative top-8 left-4 z-50 select-none rounded-md border bg-white p-1 font-semibold drop-shadow-md",children:z()})}),y.jsx("span",{children:o||c})]}):null}function et(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ks=["color"],zn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Ks);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Gs=["color"],uo=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Gs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Ys=["color"],Xs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Ys);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qs=["color"],Zs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,qs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Js=["color"],Qs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Js);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ec=["color"],tc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,ec);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),nc=["color"],rc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,nc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),oc=["color"],ac=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,oc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.94993 2.95002L3.94993 4.49998C3.94993 4.74851 3.74845 4.94998 3.49993 4.94998C3.2514 4.94998 3.04993 4.74851 3.04993 4.49998V2.50004C3.04993 2.45246 3.05731 2.40661 3.07099 2.36357C3.12878 2.18175 3.29897 2.05002 3.49993 2.05002H11.4999C11.6553 2.05002 11.7922 2.12872 11.8731 2.24842C11.9216 2.32024 11.9499 2.40682 11.9499 2.50002L11.9499 2.50004V4.49998C11.9499 4.74851 11.7485 4.94998 11.4999 4.94998C11.2514 4.94998 11.0499 4.74851 11.0499 4.49998V2.95002H8.04993V12.05H9.25428C9.50281 12.05 9.70428 12.2515 9.70428 12.5C9.70428 12.7486 9.50281 12.95 9.25428 12.95H5.75428C5.50575 12.95 5.30428 12.7486 5.30428 12.5C5.30428 12.2515 5.50575 12.05 5.75428 12.05H6.94993V2.95002H3.94993Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
34
+ `).map(n=>n.split(" ").map(r=>r.replaceAll("\r","")))}function Fs(e){const{mA:t,mB:n,point:r={column:0,row:0}}=e,o=Vn(t),a=Vn(n),s=r.row+a.rows>o.rows,c=r.column+a.columns>o.columns,l=s?r.row+a.rows:o.rows,d=c?r.column+a.columns:o.columns,f=Is({rows:l,columns:d});for(let u=0;u<o.rows;u+=1)for(let m=0;m<o.columns;m+=1)f[u][m]=t[u][m];for(let u=0;u<a.rows;u+=1)for(let m=0;m<a.columns;m+=1)f[u+r.row][m+r.column]=n[u][m];return f}let zn;const so=i.createContext(null);function Vs(e){const{children:t,startingColumns:n,matrix:r=[],staticRows:o,onMatrixChange:a}=e,[s,c]=i.useState(r),l=i.useMemo(()=>Ts(n),[n]),d=i.useMemo(()=>Fn(s)||l.length,[s,l.length]),f=i.useMemo(()=>Vn(s),[s]),u=i.useMemo(()=>f.rows===0,[f.rows]),[m,h]=i.useState(l),[p,v]=i.useState(null),[y,g]=i.useState({height:0,width:0}),[w,$]=i.useState(!1),C=i.useCallback((N=2e3)=>{$(!0),zn&&clearTimeout(zn),zn=setTimeout(()=>$(!1),N)},[]),E=i.useMemo(()=>!!(p&&Bn({matrix:s,pointRange:p})),[p,s]),M=i.useCallback(async N=>{const{state:S}=await navigator.permissions.query({name:"clipboard-read"});if(S==="denied"){console.log("denied");return}const F=await navigator.clipboard.readText(),W=Ls(F),ge=Fs({mA:s,mB:W,point:N}).map((U,ee)=>U.map((te,ne)=>{const ie=m[ne]?.state?.readonly,oe=s[ee]?s[ee][ne]:"";return ie?oe:te})).map(U=>U.map((ee,te)=>Os({value:ee,column:m[te]}))).map(U=>U.slice(0,n.length)),pe=o?ge.slice(0,s.length):ge;c(pe),a?.(pe)},[m,s,n.length,o,a]),T=i.useCallback(N=>{const{data:S,point:F}=N,{column:W,row:X}=F,ae=structuredClone(s);ae[X][W]=S,c(ae),a?.(ae)},[s,a]),_=i.useCallback(()=>{if(p&&!o){const N=p.start.row,S=p.end.row,F=S-N+1;if(!E)return;const W=F>1?`Você irá excluir ${F} linhas, deseja continuar?
35
+ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja continuar?`;if(!confirm(W))return;const ae=s.filter((be,ge)=>ge<N||ge>S);v(null),c(ae),a?.(ae)}},[s,p,o,E,a]),B=i.useCallback((N,S)=>{if(p&&S&&S.shiftKey){const F=N<p.start.row?N:p.start.row,W=N<p.start.row?p.start.row:N;return v({start:{row:F,column:0},end:{row:W,column:d}})}v({start:{row:N,column:0},end:{row:N,column:d}})},[d,p]),K=i.useCallback(N=>{N.row===p?.start.row&&N.column===p.start.column||v({start:N,end:N})},[p?.start.row,p?.start.column]),A=i.useCallback(N=>!!(p&&Ds(p,N)),[p]),P=i.useCallback(N=>{const{position:S,width:F}=N;let W=F;F>qe&&(W=qe),F<Ze&&(W=Ze),h(X=>X.map((ae,be)=>({...ae,state:{...ae.state,width:be===S?W:ae.state.width}})))},[]),G=i.useCallback(()=>{if(o)return;const N=[...structuredClone(s),new Array(d).fill(null).map((S,F)=>{const{dataEditorType:W}=m[F];return io.includes(W)?0:W==="Boolean"?!1:""})];c(N),a?.(N),C()},[o,s,m,d,C,a]),z=i.useCallback(()=>{const N={column:0,row:0},S={column:f.columns,row:f.rows-1};v({start:N,end:S})},[f]),R=i.useCallback(N=>{const{columnId:S,visible:F}=N,W=X=>X.id!==S?X:{...X,state:{...X.state,visible:F}};h(X=>X.map(ae=>W(ae)))},[]),I=i.useCallback(()=>{h(N=>N.map(S=>({...S,state:{...S.state,visible:!0}})))},[]);i.useEffect(()=>{c(r)},[r]),i.useEffect(()=>{h(N=>l.map((S,F)=>({...S,state:{visible:N[F].state.visible,width:N[F].state.width,readonly:S.state.readonly}})))},[l]),i.useEffect(()=>{if(!p||!As(p.start,p.end))return;const N=()=>{M(p.start)};return window.addEventListener("paste",N),()=>window.removeEventListener("paste",N)},[M,p]);const O=i.useMemo(()=>({size:f,matrix:s,columns:m,emptySize:u,staticRows:o,hasSomeEntireRow:E,highlightLastRow:w,pointRange:p,setPointRange:v,containerDimensions:y,setContainerDimensions:g,onPaste:M,onChange:T,onRemoveRow:_,onSelectRow:B,onSelectCell:K,isCellSelected:A,onInsertNewRow:G,onColumnResize:P,onSelectSpreadsheet:z,onColumnVisibilityChange:R,onRestoreColumnsVisibility:I}),[f,s,u,o,m,E,w,p,y,M,T,_,B,K,A,G,P,z,R,I]);return x.jsx(so.Provider,{value:O,children:t})}function je(){const e=i.useContext(so);if(!e)throw new Error("useSpreadsheet has to be used within <SpreadsheetContext.Provider>");return e}function Bs(e){const{children:t,className:n}=e,{size:r,setContainerDimensions:o}=je(),a=i.useRef(null);return i.useEffect(()=>{const s=a.current;if(!s)return;const c=new ResizeObserver(l=>{const d=l[0];if(d){const f=d.contentRect.width,u=d.contentRect.height;o({height:u,width:f})}});return c.observe(s),()=>{c.disconnect()}},[o]),x.jsx("div",{ref:a,className:Q("relative min-h-[260px] w-full border border-t-0 border-r-0",r.rows>=7?"border-b-0":"border-b",n),children:t})}function zs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function Ws(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var Rs=function(e,t){return typeof t=="boolean"?t:!e},co=function(e){return i.useReducer(Rs,e)},Hs=["mousedown","touchstart"],lo=function(e,t,n){n===void 0&&(n=Hs);var r=i.useRef(t);i.useEffect(function(){r.current=t},[t]),i.useEffect(function(){for(var o=function(l){var d=e.current;d&&!d.contains(l.target)&&r.current(l)},a=0,s=n;a<s.length;a++){var c=s[a];zs(document,c,o)}return function(){for(var l=0,d=n;l<d.length;l++){var f=d[l];Ws(document,f,o)}}},[n,e])};function Us(e){const{children:t,className:n}=e,{setPointRange:r}=je(),o=i.useRef(null);return lo(o,()=>r(null)),x.jsx("div",{ref:o,className:Q("",n),children:t})}const uo={Matrix:Bs,Root:Us};function Ks(e){const{className:t,...n}=e;return x.jsx("button",{draggable:!0,className:Q("h-9 w-1.5 cursor-col-resize rounded-sm bg-neutral-400 drop-shadow-md",t),...n,children:x.jsxs("div",{className:"relative",children:[x.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 right-2.5 h-3 w-1 rounded-full bg-neutral-300"}),x.jsx("span",{className:"-translate-y-1/2 absolute top-1/2 left-2.5 h-3 w-1 rounded-full bg-neutral-300"})]})})}function Gs(e){const{className:t,column:n,visible:r,children:o,width:a}=e,{position:s,alphabetLetter:c}=n,{matrix:l,pointRange:d,containerDimensions:f,onColumnResize:u}=je(),m=i.useRef(null),h=i.useMemo(()=>(f?.height||0)+32,[f?.height]),[p,v]=i.useState(!1),[y,g]=i.useState(0),[w,$]=i.useState(0),C=i.useMemo(()=>p?w-y:0,[p,w,y]),E=i.useCallback(A=>{g(A.clientX),v(!0)},[]),M=i.useCallback(A=>{const P=m.current;if(!P)return;const G=A.clientX-y;let z=a+G;z>qe&&(z=qe),z<Ze&&(z=Ze),P.style.left=`${z}px`,$(A.clientX)},[y,a]),T=i.useCallback(A=>{const P=A.clientX-y,G=a+P;u({width:G,position:s}),v(!1)},[y,a,s,u]),_=i.useCallback(()=>{if(p)return`bg-neutral-100 font-bold text-neutral-700 ${t}`;if(d&&!p){const{start:A,end:P}=d,G=Bn({matrix:l,pointRange:d}),z=s>=A.column&&s<=P.column;if(G)return`bg-[#0085FF] font-bold text-white ${t}`;if(z)return`bg-blue-100 font-bold text-blue-700 ${t}`}return t},[p,t,l,d,s]),B=i.useCallback(()=>{let A=a+C;return A>qe&&(A=qe),A<Ze&&(A=Ze),`${A}px`},[a,C]),K=i.useMemo(()=>({onDragStart:E,onDrag:M,onDragEnd:T}),[E,M,T]);return i.useEffect(()=>{const A=m.current;A&&(A.style.left=`${a}px`)},[a]),r?x.jsxs("div",{style:{width:a},className:Q("relative flex h-7 w-32 shrink-0 items-center justify-center border border-t-0 border-l-0 text-[#8E8EA9] text-xs",_()),children:[x.jsx(Ks,{...K,className:Q("-right-[3px] -top-1 absolute z-50 opacity-0 hover:opacity-100",p&&"opacity-0")}),x.jsx("div",{ref:m,style:{height:h},className:Q("-top-4 pointer-events-none absolute z-50 h-full w-1.5 rounded-full bg-blue-400 shadow-lg outline outline-sky-100",p?"opacity-100":"opacity-0"),children:x.jsx("span",{className:"-translate-y-1/2 relative top-8 left-4 z-50 select-none rounded-md border bg-white p-1 font-semibold drop-shadow-md",children:B()})}),x.jsx("span",{children:o||c})]}):null}function et(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Ys=["color"],Wn=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Ys);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Xs=["color"],fo=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Xs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),qs=["color"],Zs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,qs);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),Js=["color"],Qs=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,Js);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M6.1584 3.13508C6.35985 2.94621 6.67627 2.95642 6.86514 3.15788L10.6151 7.15788C10.7954 7.3502 10.7954 7.64949 10.6151 7.84182L6.86514 11.8418C6.67627 12.0433 6.35985 12.0535 6.1584 11.8646C5.95694 11.6757 5.94673 11.3593 6.1356 11.1579L9.565 7.49985L6.1356 3.84182C5.94673 3.64036 5.95694 3.32394 6.1584 3.13508Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ec=["color"],tc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,ec);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),nc=["color"],rc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,nc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z",fill:r}))}),oc=["color"],ac=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,oc);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))}),ic=["color"],sc=i.forwardRef(function(e,t){var n=e.color,r=n===void 0?"currentColor":n,o=et(e,ic);return i.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o,{ref:t}),i.createElement("path",{d:"M3.94993 2.95002L3.94993 4.49998C3.94993 4.74851 3.74845 4.94998 3.49993 4.94998C3.2514 4.94998 3.04993 4.74851 3.04993 4.49998V2.50004C3.04993 2.45246 3.05731 2.40661 3.07099 2.36357C3.12878 2.18175 3.29897 2.05002 3.49993 2.05002H11.4999C11.6553 2.05002 11.7922 2.12872 11.8731 2.24842C11.9216 2.32024 11.9499 2.40682 11.9499 2.50002L11.9499 2.50004V4.49998C11.9499 4.74851 11.7485 4.94998 11.4999 4.94998C11.2514 4.94998 11.0499 4.74851 11.0499 4.49998V2.95002H8.04993V12.05H9.25428C9.50281 12.05 9.70428 12.2515 9.70428 12.5C9.70428 12.7486 9.50281 12.95 9.25428 12.95H5.75428C5.50575 12.95 5.30428 12.7486 5.30428 12.5C5.30428 12.2515 5.50575 12.05 5.75428 12.05H6.94993V2.95002H3.94993Z",fill:r,fillRule:"evenodd",clipRule:"evenodd"}))});/**
36
36
  * @license lucide-react v0.376.0 - ISC
37
37
  *
38
38
  * This source code is licensed under the ISC license.
39
39
  * See the LICENSE file in the root directory of this source tree.
40
- */const ic=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fo=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
40
+ */const cc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),po=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
41
41
  * @license lucide-react v0.376.0 - ISC
42
42
  *
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
- */var sc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
45
+ */var lc={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
46
46
  * @license lucide-react v0.376.0 - ISC
47
47
  *
48
48
  * This source code is licensed under the ISC license.
49
49
  * See the LICENSE file in the root directory of this source tree.
50
- */const cc=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},l)=>i.createElement("svg",{ref:l,...sc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:fo("lucide",o),...c},[...s.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
50
+ */const dc=i.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:a,iconNode:s,...c},l)=>i.createElement("svg",{ref:l,...lc,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:po("lucide",o),...c},[...s.map(([d,f])=>i.createElement(d,f)),...Array.isArray(a)?a:[a]]));/**
51
51
  * @license lucide-react v0.376.0 - ISC
52
52
  *
53
53
  * This source code is licensed under the ISC license.
54
54
  * See the LICENSE file in the root directory of this source tree.
55
- */const Ne=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(cc,{ref:a,iconNode:t,className:fo(`lucide-${ic(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
55
+ */const Ne=(e,t)=>{const n=i.forwardRef(({className:r,...o},a)=>i.createElement(dc,{ref:a,iconNode:t,className:po(`lucide-${cc(e)}`,r),...o}));return n.displayName=`${e}`,n};/**
56
56
  * @license lucide-react v0.376.0 - ISC
57
57
  *
58
58
  * This source code is licensed under the ISC license.
59
59
  * See the LICENSE file in the root directory of this source tree.
60
- */const lc=Ne("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
60
+ */const mo=Ne("ArrowDownToLine",[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]]);/**
61
61
  * @license lucide-react v0.376.0 - ISC
62
62
  *
63
63
  * This source code is licensed under the ISC license.
64
64
  * See the LICENSE file in the root directory of this source tree.
65
- */const dc=Ne("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
65
+ */const uc=Ne("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
66
66
  * @license lucide-react v0.376.0 - ISC
67
67
  *
68
68
  * This source code is licensed under the ISC license.
69
69
  * See the LICENSE file in the root directory of this source tree.
70
- */const uc=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
70
+ */const fc=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
71
71
  * @license lucide-react v0.376.0 - ISC
72
72
  *
73
73
  * This source code is licensed under the ISC license.
74
74
  * See the LICENSE file in the root directory of this source tree.
75
- */const fc=Ne("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
75
+ */const ho=Ne("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
76
76
  * @license lucide-react v0.376.0 - ISC
77
77
  *
78
78
  * This source code is licensed under the ISC license.
@@ -87,7 +87,7 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
87
87
  *
88
88
  * This source code is licensed under the ISC license.
89
89
  * See the LICENSE file in the root directory of this source tree.
90
- */const po=Ne("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/**
90
+ */const vo=Ne("Divide",[["circle",{cx:"12",cy:"6",r:"1",key:"1bh7o1"}],["line",{x1:"5",x2:"19",y1:"12",y2:"12",key:"13b5wn"}],["circle",{cx:"12",cy:"18",r:"1",key:"lqb9t5"}]]);/**
91
91
  * @license lucide-react v0.376.0 - ISC
92
92
  *
93
93
  * This source code is licensed under the ISC license.
@@ -112,7 +112,7 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
112
112
  *
113
113
  * This source code is licensed under the ISC license.
114
114
  * See the LICENSE file in the root directory of this source tree.
115
- */const wc=Ne("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j.apply(this,arguments)}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function tn(...e){return t=>e.forEach(n=>xc(n,t))}function ve(...e){return i.useCallback(tn(...e),e)}function st(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];function d(u){const{scope:m,children:v,...p}=u,h=m?.[e][l]||c,x=i.useMemo(()=>p,Object.values(p));return i.createElement(h.Provider,{value:x},v)}function f(u,m){const v=m?.[e][l]||c,p=i.useContext(v);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,yc(o,...t)]}function yc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...c,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const ct=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find($c);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return i.createElement(Wn,j({},r,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(Wn,j({},r,{ref:t}),n)});ct.displayName="Slot";const Wn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...Cc(r,n.props),ref:t?tn(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Wn.displayName="SlotClone";const mo=({children:e})=>i.createElement(i.Fragment,null,e);function $c(e){return i.isValidElement(e)&&e.type===mo}function Cc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const pe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...s}=r,c=a?ct:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,j({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function ho(e,t){e&&gt.flushSync(()=>e.dispatchEvent(t))}function Me(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ec(e,t=globalThis?.document){const n=Me(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Rn="dismissableLayer.update",Sc="dismissableLayer.pointerDownOutside",_c="dismissableLayer.focusOutside";let vo;const kc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hn=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,f=i.useContext(kc),[u,m]=i.useState(null),v=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),h=ve(t,_=>m(_)),x=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(g),$=u?x.indexOf(u):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=w,M=Tc(_=>{const z=_.target,R=[...f.branches].some(L=>L.contains(z));!E||R||(a?.(_),c?.(_),_.defaultPrevented||l?.())},v),T=Pc(_=>{const z=_.target;[...f.branches].some(L=>L.contains(z))||(s?.(_),c?.(_),_.defaultPrevented||l?.())},v);return Ec(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},v),i.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(vo=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),go(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=vo)}},[u,v,r,f]),i.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),go())},[u,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Rn,_),()=>document.removeEventListener(Rn,_)},[]),i.createElement(pe.div,j({},d,{ref:h,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,M.onPointerDownCapture)}))});function Tc(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let d=function(){bo(Sc,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pc(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&bo(_c,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function go(){const e=new CustomEvent(Rn);document.dispatchEvent(e)}function bo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ho(o,a):o.dispatchEvent(a)}const _e=globalThis?.document?i.useLayoutEffect:()=>{},Nc=D.useId||(()=>{});let Oc=0;function wt(e){const[t,n]=D.useState(Nc());return _e(()=>{n(r=>r??String(Oc++))},[e]),t?`radix-${t}`:""}const Ic=["top","right","bottom","left"],Le=Math.min,Te=Math.max,nn=Math.round,rn=Math.floor,tt=e=>({x:e,y:e}),Mc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function Un(e,t,n){return Te(e,Le(t,n))}function ze(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Kn(e){return e==="x"?"y":"x"}function Gn(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Yn(e){return Kn(yt(e))}function Dc(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Yn(e),a=Gn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=on(s)),[s,on(s)]}function jc(e){const t=on(e);return[Xn(e),t,Xn(t)]}function Xn(e){return e.replace(/start|end/g,t=>Ac[t])}function Lc(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Fc(e,t,n,r){const o=xt(e);let a=Lc(We(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Xn)))),a}function on(e){return e.replace(/left|right|bottom|top/g,t=>Mc[t])}function Vc(e){return{top:0,right:0,bottom:0,left:0,...e}}function wo(e){return typeof e!="number"?Vc(e):{top:e,right:e,bottom:e,left:e}}function an(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function xo(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),s=Yn(t),c=Gn(s),l=We(t),d=a==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let v;switch(l){case"top":v={x:f,y:r.y-o.height};break;case"bottom":v={x:f,y:r.y+r.height};break;case"right":v={x:r.x+r.width,y:u};break;case"left":v={x:r.x-o.width,y:u};break;default:v={x:r.x,y:r.y}}switch(xt(t)){case"start":v[s]-=m*(n&&d?-1:1);break;case"end":v[s]+=m*(n&&d?-1:1);break}return v}const Bc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=xo(d,r,l),m=r,v={},p=0;for(let h=0;h<c.length;h++){const{name:x,fn:g}=c[h],{x:w,y:$,data:C,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:v,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,u=$??u,v={...v,[x]:{...v[x],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=xo(d,m,l)),h=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:v}};async function zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:v=0}=ze(t,e),p=wo(v),x=c[m?u==="floating"?"reference":"floating":u],g=an(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(x)))==null||n?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},E=an(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-E.top+p.top)/C.y,bottom:(E.bottom-g.bottom+p.bottom)/C.y,left:(g.left-E.left+p.left)/C.x,right:(E.right-g.right+p.right)/C.x}}const zc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:f=0}=ze(e,t)||{};if(d==null)return{};const u=wo(f),m={x:n,y:r},v=Yn(o),p=Gn(v),h=await s.getDimensions(d),x=v==="y",g=x?"top":"left",w=x?"bottom":"right",$=x?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[v]-m[v]-a.floating[p],E=m[v]-a.reference[v],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let T=M?M[$]:0;(!T||!await(s.isElement==null?void 0:s.isElement(M)))&&(T=c.floating[$]||a.floating[p]);const _=C/2-E/2,z=T/2-h[p]/2-1,R=Le(u[g],z),L=Le(u[w],z),P=R,U=T-h[p]-L,F=T/2-h[p]/2+_,H=Un(P,F,U),I=!l.arrow&&xt(o)!=null&&F!==H&&a.reference[p]/2-(F<P?R:L)-h[p]/2<0,O=I?F<P?F-P:F-U:0;return{[v]:m[v]+O,data:{[v]:H,centerOffset:F-H-O,...I&&{alignmentOffset:O}},reset:I}}}),Wc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...x}=ze(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=We(o),w=We(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!h?[on(c)]:jc(c));!m&&p!=="none"&&C.push(...Fc(c,h,p,$));const E=[c,...C],M=await zt(t,x),T=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&T.push(M[g]),u){const P=Dc(o,s,$);T.push(M[P[0]],M[P[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every(P=>P<=0)){var z,R;const P=(((z=a.flip)==null?void 0:z.index)||0)+1,U=E[P];if(U)return{data:{index:P,overflows:_},reset:{placement:U}};let F=(R=_.filter(H=>H.overflows[0]<=0).sort((H,I)=>H.overflows[1]-I.overflows[1])[0])==null?void 0:R.placement;if(!F)switch(v){case"bestFit":{var L;const H=(L=_.map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,N)=>O+N,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:L[0];H&&(F=H);break}case"initialPlacement":F=c;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function yo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function $o(e){return Ic.some(t=>e[t]>=0)}const Rc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ze(e,t);switch(r){case"referenceHidden":{const a=await zt(t,{...o,elementContext:"reference"}),s=yo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:$o(s)}}}case"escaped":{const a=await zt(t,{...o,altBoundary:!0}),s=yo(a,n.floating);return{data:{escapedOffsets:s,escaped:$o(s)}}}default:return{}}}}};async function Hc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=We(n),c=xt(n),l=yt(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,u=ze(t,e);let{mainAxis:m,crossAxis:v,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof p=="number"&&(v=c==="end"?p*-1:p),l?{x:v*f,y:m*d}:{x:m*d,y:v*f}}const Uc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Hc(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:x=>{let{x:g,y:w}=x;return{x:g,y:w}}},...l}=ze(e,t),d={x:n,y:r},f=await zt(t,l),u=yt(We(o)),m=Kn(u);let v=d[m],p=d[u];if(a){const x=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=v+f[x],$=v-f[g];v=Un(w,v,$)}if(s){const x=u==="y"?"top":"left",g=u==="y"?"bottom":"right",w=p+f[x],$=p-f[g];p=Un(w,p,$)}const h=c.fn({...t,[m]:v,[u]:p});return{...h,data:{x:h.x-n,y:h.y-r}}}}},Gc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=ze(e,t),f={x:n,y:r},u=yt(o),m=Kn(u);let v=f[m],p=f[u];const h=ze(c,t),x=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+x.mainAxis,E=a.reference[m]+a.reference[$]-x.mainAxis;v<C?v=C:v>E&&(v=E)}if(d){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(We(o)),E=a.reference[u]-a.floating[$]+(C&&((g=s.offset)==null?void 0:g[u])||0)+(C?0:x.crossAxis),M=a.reference[u]+a.reference[$]+(C?0:((w=s.offset)==null?void 0:w[u])||0)-(C?x.crossAxis:0);p<E?p=E:p>M&&(p=M)}return{[m]:v,[u]:p}}}},Yc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:s=()=>{},...c}=ze(e,t),l=await zt(t,c),d=We(n),f=xt(n),u=yt(n)==="y",{width:m,height:v}=r.floating;let p,h;d==="top"||d==="bottom"?(p=d,h=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=d,p=f==="end"?"top":"bottom");const x=v-l.top-l.bottom,g=m-l.left-l.right,w=Le(v-l[p],x),$=Le(m-l[h],g),C=!t.middlewareData.shift;let E=w,M=$;if(u?M=f||C?Le($,g):g:E=f||C?Le(w,x):x,C&&!f){const _=Te(l.left,0),z=Te(l.right,0),R=Te(l.top,0),L=Te(l.bottom,0);u?M=m-2*(_!==0||z!==0?_+z:Te(l.left,l.right)):E=v-2*(R!==0||L!==0?R+L:Te(l.top,l.bottom))}await s({...t,availableWidth:M,availableHeight:E});const T=await o.getDimensions(a.floating);return m!==T.width||v!==T.height?{reset:{rects:!0}}:{}}}};function $t(e){return Co(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(Co(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Co(e){return e instanceof Node||e instanceof Pe(e).Node}function Fe(e){return e instanceof Element||e instanceof Pe(e).Element}function Ve(e){return e instanceof HTMLElement||e instanceof Pe(e).HTMLElement}function Eo(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xc(e){return["table","td","th"].includes($t(e))}function qn(e){const t=Zn(),n=Ae(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function qc(e){let t=nt(e);for(;Ve(t)&&!Ct(t);){if(qn(t))return t;t=nt(t)}return null}function Zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ct(e){return["html","body","#document"].includes($t(e))}function Ae(e){return Pe(e).getComputedStyle(e)}function sn(e){return Fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if($t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Eo(e)&&e.host||Re(e);return Eo(t)?t.host:t}function So(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Wt(t)?t:So(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=So(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Pe(o);return a?t.concat(s,s.visualViewport||[],Wt(o)?o:[],s.frameElement&&n?Rt(s.frameElement):[]):t.concat(o,Rt(o,[],n))}function _o(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=nn(n)!==a||nn(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Jn(e){return Fe(e)?e:e.contextElement}function Et(e){const t=Jn(e);if(!Ve(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=_o(t);let s=(a?nn(n.width):n.width)/r,c=(a?nn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Zc=tt(0);function ko(e){const t=Pe(e);return!Zn()||!t.visualViewport?Zc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Jn(e);let s=tt(1);t&&(r?Fe(r)&&(s=Et(r)):s=Et(e));const c=Jc(a,n,r)?ko(a):tt(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(a){const m=Pe(a),v=r&&Fe(r)?Pe(r):r;let p=m,h=p.frameElement;for(;h&&r&&v!==p;){const x=Et(h),g=h.getBoundingClientRect(),w=Ae(h),$=g.left+(h.clientLeft+parseFloat(w.paddingLeft))*x.x,C=g.top+(h.clientTop+parseFloat(w.paddingTop))*x.y;l*=x.x,d*=x.y,f*=x.x,u*=x.y,l+=$,d+=C,p=Pe(h),h=p.frameElement}}return an({width:f,height:u,x:l,y:d})}const Qc=[":popover-open",":modal"];function Qn(e){return Qc.some(t=>{try{return e.matches(t)}catch{return!1}})}function el(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Re(r),c=t?Qn(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),u=Ve(r);if((u||!u&&!a)&&(($t(r)!=="body"||Wt(s))&&(l=sn(r)),Ve(r))){const m=lt(r);d=Et(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function tl(e){return Array.from(e.getClientRects())}function To(e){return lt(Re(e)).left+sn(e).scrollLeft}function nl(e){const t=Re(e),n=sn(e),r=e.ownerDocument.body,o=Te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+To(e);const c=-n.scrollTop;return Ae(r).direction==="rtl"&&(s+=Te(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function rl(e,t){const n=Pe(e),r=Re(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const d=Zn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function ol(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ve(e)?Et(e):tt(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:c,x:l,y:d}}function Po(e,t,n){let r;if(t==="viewport")r=rl(e,n);else if(t==="document")r=nl(Re(e));else if(Fe(t))r=ol(t,n);else{const o=ko(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return an(r)}function No(e,t){const n=nt(e);return n===t||!Fe(n)||Ct(n)?!1:Ae(n).position==="fixed"||No(n,t)}function al(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(c=>Fe(c)&&$t(c)!=="body"),o=null;const a=Ae(e).position==="fixed";let s=a?nt(e):e;for(;Fe(s)&&!Ct(s);){const c=Ae(s),l=qn(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wt(s)&&!l&&No(e,s))?r=r.filter(f=>f!==s):o=c,s=nt(s)}return t.set(e,r),r}function il(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Qn(t)?[]:al(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((d,f)=>{const u=Po(t,f,o);return d.top=Te(u.top,d.top),d.right=Le(u.right,d.right),d.bottom=Le(u.bottom,d.bottom),d.left=Te(u.left,d.left),d},Po(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sl(e){const{width:t,height:n}=_o(e);return{width:t,height:n}}function cl(e,t,n){const r=Ve(t),o=Re(t),a=n==="fixed",s=lt(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!a)if(($t(t)!=="body"||Wt(o))&&(c=sn(t)),r){const u=lt(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=To(o));const d=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;return{x:d,y:f,width:s.width,height:s.height}}function er(e){return Ae(e).position==="static"}function Oo(e,t){return!Ve(e)||Ae(e).position==="fixed"?null:t?t(e):e.offsetParent}function Io(e,t){const n=Pe(e);if(Qn(e))return n;if(!Ve(e)){let o=nt(e);for(;o&&!Ct(o);){if(Fe(o)&&!er(o))return o;o=nt(o)}return n}let r=Oo(e,t);for(;r&&Xc(r)&&er(r);)r=Oo(r,t);return r&&Ct(r)&&er(r)&&!qn(r)?n:r||qc(e)||n}const ll=async function(e){const t=this.getOffsetParent||Io,n=this.getDimensions,r=await n(e.floating);return{reference:cl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dl(e){return Ae(e).direction==="rtl"}const ul={convertOffsetParentRelativeRectToViewportRelativeRect:el,getDocumentElement:Re,getClippingRect:il,getOffsetParent:Io,getElementRects:ll,getClientRects:tl,getDimensions:sl,getScale:Et,isElement:Fe,isRTL:dl};function fl(e,t){let n=null,r;const o=Re(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:m}=e.getBoundingClientRect();if(c||t(),!u||!m)return;const v=rn(f),p=rn(o.clientWidth-(d+u)),h=rn(o.clientHeight-(f+m)),x=rn(d),w={rootMargin:-v+"px "+-p+"px "+-h+"px "+-x+"px",threshold:Te(0,Le(1,l))||1};let $=!0;function C(E){const M=E[0].intersectionRatio;if(M!==l){if(!$)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function pl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Jn(e),f=o||a?[...d?Rt(d):[],...Rt(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const u=d&&c?fl(d,n):null;let m=-1,v=null;s&&(v=new ResizeObserver(g=>{let[w]=g;w&&w.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=v)==null||$.observe(t)})),n()}),d&&!l&&v.observe(d),v.observe(t));let p,h=l?lt(e):null;l&&x();function x(){const g=lt(e);h&&(g.x!==h.x||g.y!==h.y||g.width!==h.width||g.height!==h.height)&&n(),h=g,p=requestAnimationFrame(x)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(g=v)==null||g.disconnect(),v=null,l&&cancelAnimationFrame(p)}}const ml=Uc,hl=Kc,vl=Wc,gl=Yc,bl=Rc,Mo=zc,wl=Gc,xl=(e,t,n)=>{const r=new Map,o={platform:ul,...n},a={...o.platform,_c:r};return Bc(e,t,{...o,platform:a})};var cn=typeof document<"u"?i.useLayoutEffect:i.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!ln(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Ao(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Do(e,t){const n=Ao(e);return Math.round(t*n)/n}function jo(e){const t=D.useRef(e);return cn(()=>{t.current=e}),t}function yl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,u]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,v]=D.useState(r);ln(m,r)||v(r);const[p,h]=D.useState(null),[x,g]=D.useState(null),w=D.useCallback(O=>{O!==M.current&&(M.current=O,h(O))},[]),$=D.useCallback(O=>{O!==T.current&&(T.current=O,g(O))},[]),C=a||p,E=s||x,M=D.useRef(null),T=D.useRef(null),_=D.useRef(f),z=l!=null,R=jo(l),L=jo(o),P=D.useCallback(()=>{if(!M.current||!T.current)return;const O={placement:t,strategy:n,middleware:m};L.current&&(O.platform=L.current),xl(M.current,T.current,O).then(N=>{const S={...N,isPositioned:!0};U.current&&!ln(_.current,S)&&(_.current=S,Wi.flushSync(()=>{u(S)}))})},[m,t,n,L]);cn(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[d]);const U=D.useRef(!1);cn(()=>(U.current=!0,()=>{U.current=!1}),[]),cn(()=>{if(C&&(M.current=C),E&&(T.current=E),C&&E){if(R.current)return R.current(C,E,P);P()}},[C,E,P,R,z]);const F=D.useMemo(()=>({reference:M,floating:T,setReference:w,setFloating:$}),[w,$]),H=D.useMemo(()=>({reference:C,floating:E}),[C,E]),I=D.useMemo(()=>{const O={position:n,left:0,top:0};if(!H.floating)return O;const N=Do(H.floating,f.x),S=Do(H.floating,f.y);return c?{...O,transform:"translate("+N+"px, "+S+"px)",...Ao(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,c,H.floating,f.x,f.y]);return D.useMemo(()=>({...f,update:P,refs:F,elements:H,floatingStyles:I}),[f,P,F,H,I])}const $l=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Mo({element:r.current,padding:o}).fn(n):{}:r?Mo({element:r,padding:o}).fn(n):{}}}},Cl=(e,t)=>({...ml(e),options:[e,t]}),El=(e,t)=>({...hl(e),options:[e,t]}),Sl=(e,t)=>({...wl(e),options:[e,t]}),_l=(e,t)=>({...vl(e),options:[e,t]}),kl=(e,t)=>({...gl(e),options:[e,t]}),Tl=(e,t)=>({...bl(e),options:[e,t]}),Pl=(e,t)=>({...$l(e),options:[e,t]}),Nl=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(pe.svg,j({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:i.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Ol(e){const[t,n]=i.useState(void 0);return _e(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Lo="Popper",[Fo,St]=st(Lo),[Il,Vo]=Fo(Lo),Ml=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Il,{scope:t,anchor:r,onAnchorChange:o},n)},Al="PopperAnchor",Dl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Vo(Al,n),s=i.useRef(null),c=ve(t,s);return i.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:i.createElement(pe.div,j({},o,{ref:c}))}),Bo="PopperContent",[jl,Ll]=Fo(Bo),Fl=i.forwardRef((e,t)=>{var n,r,o,a,s,c,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:m=0,align:v="center",alignOffset:p=0,arrowPadding:h=0,avoidCollisions:x=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:M,...T}=e,_=Vo(Bo,f),[z,R]=i.useState(null),L=ve(t,A=>R(A)),[P,U]=i.useState(null),F=Ol(P),H=(n=F?.width)!==null&&n!==void 0?n:0,I=(r=F?.height)!==null&&r!==void 0?r:0,O=u+(v!=="center"?"-"+v:""),N=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},S=Array.isArray(g)?g:[g],V=S.length>0,W={padding:N,boundary:S.filter(zl),altBoundary:V},{refs:X,floatingStyles:oe,placement:be,isPositioned:ge,middlewareData:de}=yl({strategy:"fixed",placement:O,whileElementsMounted:(...A)=>pl(...A,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[Cl({mainAxis:m+I,alignmentAxis:p}),x&&El({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Sl():void 0,...W}),x&&_l({...W}),kl({...W,apply:({elements:A,rects:K,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=K.reference,se=A.floating.style;se.setProperty("--radix-popper-available-width",`${Z}px`),se.setProperty("--radix-popper-available-height",`${me}px`),se.setProperty("--radix-popper-anchor-width",`${xe}px`),se.setProperty("--radix-popper-anchor-height",`${le}px`)}}),P&&Pl({element:P,padding:h}),Wl({arrowWidth:H,arrowHeight:I}),C&&Tl({strategy:"referenceHidden",...W})]}),[G,ee]=Wo(be),ne=Me(M);_e(()=>{ge&&ne?.()},[ge,ne]);const te=(o=de.arrow)===null||o===void 0?void 0:o.x,ce=(a=de.arrow)===null||a===void 0?void 0:a.y,ie=((s=de.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[$e,Ce]=i.useState();return _e(()=>{z&&Ce(window.getComputedStyle(z).zIndex)},[z]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:ge?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(c=de.transformOrigin)===null||c===void 0?void 0:c.x,(l=de.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(jl,{scope:f,placedSide:G,onArrowChange:U,arrowX:te,arrowY:ce,shouldHideArrow:ie},i.createElement(pe.div,j({"data-side":G,"data-align":ee},T,{ref:L,style:{...T.style,animation:ge?void 0:"none",opacity:(d=de.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))}),zo="PopperArrow",Vl={top:"bottom",right:"left",bottom:"top",left:"right"},Bl=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ll(zo,r),s=Vl[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},i.createElement(Nl,j({},o,{ref:n,style:{...o.style,display:"block"}})))});function zl(e){return e!==null}const Wl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,s;const{placement:c,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=u?0:e.arrowWidth,v=u?0:e.arrowHeight,[p,h]=Wo(c),x={start:"0%",center:"50%",end:"100%"}[h],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(s=d.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+v/2;let $="",C="";return p==="bottom"?($=u?x:`${g}px`,C=`${-v}px`):p==="top"?($=u?x:`${g}px`,C=`${l.floating.height+v}px`):p==="right"?($=`${-v}px`,C=u?x:`${w}px`):p==="left"&&($=`${l.floating.width+v}px`,C=u?x:`${w}px`),{data:{x:$,y:C}}}});function Wo(e){const[t,n="center"]=e.split("-");return[t,n]}const tr=Ml,nr=Dl,rr=Fl,Ro=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?gt.createPortal(i.createElement(pe.div,j({},o,{ref:t})),r):null});function Rl(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _t=e=>{const{present:t,children:n}=e,r=Hl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};_t.displayName="Presence";function Hl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Rl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=dn(r.current);a.current=c==="mounted"?d:"none"},[c]),_e(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,v=dn(d);e?l("MOUNT"):v==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){const d=u=>{const v=dn(r.current).includes(u.animationName);u.target===t&&v&&gt.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=dn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function dn(e){return e?.animationName||"none"}function Ht({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ul({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=Me(n),l=i.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&c(u)}else o(d)},[a,e,o,c]);return[s,l]}function Ul({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Me(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Ho=i.forwardRef((e,t)=>i.createElement(pe.span,j({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Kl=Ho,[un,Zm]=st("Tooltip",[St]),or=St(),Gl="TooltipProvider",Yl=700,ar="tooltip.open",[Xl,ir]=un(Gl),ql=e=>{const{__scopeTooltip:t,delayDuration:n=Yl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),i.createElement(Xl,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},sr="Tooltip",[Zl,fn]=un(sr),Jl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=ir(sr,e.__scopeTooltip),d=or(t),[f,u]=i.useState(null),m=wt(),v=i.useRef(0),p=s??l.disableHoverableContent,h=c??l.delayDuration,x=i.useRef(!1),[g=!1,w]=Ht({prop:r,defaultProp:o,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(ar))):l.onClose(),a?.(T)}}),$=i.useMemo(()=>g?x.current?"delayed-open":"instant-open":"closed",[g]),C=i.useCallback(()=>{window.clearTimeout(v.current),x.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(v.current),w(!1)},[w]),M=i.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{x.current=!0,w(!0)},h)},[h,w]);return i.useEffect(()=>()=>window.clearTimeout(v.current),[]),i.createElement(tr,d,i.createElement(Zl,{scope:t,contentId:m,open:g,stateAttribute:$,trigger:f,onTriggerChange:u,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?M():C()},[l.isOpenDelayed,M,C]),onTriggerLeave:i.useCallback(()=>{p?E():window.clearTimeout(v.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},Uo="TooltipTrigger",Ql=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(Uo,n),a=ir(Uo,n),s=or(n),c=i.useRef(null),l=ve(t,c,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),u=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),i.createElement(nr,j({asChild:!0},s),i.createElement(pe.button,j({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Y(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:Y(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})))}),ed="TooltipPortal",[Jm,td]=un(ed,{forceMount:void 0}),Ut="TooltipContent",nd=i.forwardRef((e,t)=>{const n=td(Ut,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=fn(Ut,e.__scopeTooltip);return i.createElement(_t,{present:r||s.open},s.disableHoverableContent?i.createElement(Ko,j({side:o},a,{ref:t})):i.createElement(rd,j({side:o},a,{ref:t})))}),rd=i.forwardRef((e,t)=>{const n=fn(Ut,e.__scopeTooltip),r=ir(Ut,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[s,c]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=i.useCallback(()=>{c(null),u(!1)},[u]),v=i.useCallback((p,h)=>{const x=p.currentTarget,g={x:p.clientX,y:p.clientY},w=ad(g,x.getBoundingClientRect()),$=id(g,w),C=sd(h.getBoundingClientRect()),E=ld([...$,...C]);c(E),u(!0)},[u]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=x=>v(x,f),h=x=>v(x,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",h),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",h)}}},[l,f,v,m]),i.useEffect(()=>{if(s){const p=h=>{const x=h.target,g={x:h.clientX,y:h.clientY},w=l?.contains(x)||f?.contains(x),$=!cd(g,s);w?m():$&&(m(),d())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,s,d,m]),i.createElement(Ko,j({},e,{ref:a}))}),[od,Qm]=un(sr,{isInside:!1}),Ko=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=fn(Ut,n),d=or(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(ar,f),()=>document.removeEventListener(ar,f)),[f]),i.useEffect(()=>{if(l.trigger){const u=m=>{const v=m.target;v!=null&&v.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:f},i.createElement(rr,j({"data-state":l.stateAttribute},d,c,{ref:t,style:{...c.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)"}}),i.createElement(mo,null,r),i.createElement(od,{scope:n,isInside:!0},i.createElement(Kl,{id:l.contentId,role:"tooltip"},o||r))))});function ad(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function id(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function sd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function ld(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dd(t)}function dd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const ud=ql,fd=Jl,pd=Ql,Go=nd,pn=ud,mn=fd,hn=pd,Kt=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(Go,{ref:r,sideOffset:t,className:Q("fade-in-0 zoom-in-95 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 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",e),...n}));Kt.displayName=Go.displayName;function md(e){return y.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[y.jsx("title",{children:"Integer"}),y.jsx("path",{d:"M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"})]})}function hd({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?y.jsxs("div",{className:"flex h-9 w-32 shrink-0 items-center gap-2 border border-t-0 border-l-0 bg-[#F6F6F9] px-2",style:{width:t,height:Ss},children:[y.jsxs("div",{className:"w-4 shrink-0 text-[#8E8EA9]",children:[o==="String"&&y.jsx(ac,{className:"h-4 w-4"}),o==="Date"&&y.jsx(dc,{className:"h-4 w-4"}),o==="Boolean"&&y.jsx(mc,{className:"h-4 w-4"}),o==="Select"&&y.jsx(gc,{className:"h-4 w-4"}),o==="Float"&&y.jsx(po,{className:"h-4 w-4"}),o==="Decimal"&&y.jsx(po,{className:"h-4 w-4"}),o==="Integer"&&y.jsx(md,{className:"h-4 w-4"}),o==="Currency"&&y.jsx(hc,{className:"h-4 w-4"}),o==="Percentage"&&y.jsx(wc,{className:"h-4 w-4"})]}),y.jsx("p",{title:r,className:"line-clamp-2 w-full break-words font-semibold text-[#4A4A6A] text-xs",children:r}),a?y.jsx(pn,{children:y.jsxs(mn,{delayDuration:100,children:[y.jsx(hn,{children:y.jsx(rc,{className:"h-4 w-4 text-[#4A4A6A]"})}),y.jsx(Kt,{className:"max-w-[240px]",children:y.jsx("p",{children:a})})]})}):y.jsx("div",{className:"w-4 shrink-0"})]}):null}function vd({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=je();return y.jsxs("button",{type:"button",disabled:t,className:Q("relative flex h-7 w-12 shrink-0 items-center justify-center border border-t border-l bg-white text-xs",e),onClick:n,children:[y.jsx("span",{className:"absolute top-0 right-0 h-full w-0.5 bg-gray-300"}),y.jsx("span",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-gray-300"})]})}function gd(){const{columns:e}=je();return y.jsxs("div",{children:[y.jsxs("div",{className:"relative flex items-center bg-white",children:[y.jsx(vd,{className:"border-t-0 border-l-0"}),e.map(t=>y.jsx(Us,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__indicator__key__${t.name}__${t.position}`))]}),y.jsxs("div",{className:"flex items-center",children:[y.jsx("div",{className:"h-9 w-12 shrink-0 cursor-default border border-t-0 border-l-0 bg-[#F6F6F9]"}),e.map(t=>y.jsx(hd,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function Yo(e,[t,n]){return Math.min(n,Math.max(t,e))}function cr(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:p,children:h}=v,x=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:x},h)},c=e+"CollectionSlot",l=i.forwardRef((v,p)=>{const{scope:h,children:x}=v,g=a(c,h),w=ve(p,g.collectionRef);return i.createElement(ct,{ref:w},x)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=i.forwardRef((v,p)=>{const{scope:h,children:x,...g}=v,w=i.useRef(null),$=ve(p,w),C=a(d,h);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(ct,{[f]:"",ref:$},x)});function m(v){const p=a(e+"CollectionConsumer",v);return i.useCallback(()=>{const x=p.collectionRef.current;if(!x)return[];const g=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,E)=>g.indexOf(C.ref.current)-g.indexOf(E.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},m,r]}const bd=i.createContext(void 0);function lr(e){const t=i.useContext(bd);return e||t||"ltr"}let dr=0;function Xo(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:qo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:qo()),dr++,()=>{dr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),dr--}},[])}function qo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ur="focusScope.autoFocusOnMount",fr="focusScope.autoFocusOnUnmount",Zo={bubbles:!1,cancelable:!0},Jo=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),d=Me(o),f=Me(a),u=i.useRef(null),m=ve(t,h=>l(h)),v=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let h=function($){if(v.paused||!c)return;const C=$.target;c.contains(C)?u.current=C:rt(u.current,{select:!0})},x=function($){if(v.paused||!c)return;const C=$.relatedTarget;C!==null&&(c.contains(C)||rt(u.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&rt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",x);const w=new MutationObserver(g);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",x),w.disconnect()}}},[r,c,v.paused]),i.useEffect(()=>{if(c){ta.add(v);const h=document.activeElement;if(!c.contains(h)){const g=new CustomEvent(ur,Zo);c.addEventListener(ur,d),c.dispatchEvent(g),g.defaultPrevented||(wd(Ed(Qo(c)),{select:!0}),document.activeElement===h&&rt(c))}return()=>{c.removeEventListener(ur,d),setTimeout(()=>{const g=new CustomEvent(fr,Zo);c.addEventListener(fr,f),c.dispatchEvent(g),g.defaultPrevented||rt(h??document.body,{select:!0}),c.removeEventListener(fr,f),ta.remove(v)},0)}}},[c,d,f,v]);const p=i.useCallback(h=>{if(!n&&!r||v.paused)return;const x=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,g=document.activeElement;if(x&&g){const w=h.currentTarget,[$,C]=xd(w);$&&C?!h.shiftKey&&g===C?(h.preventDefault(),n&&rt($,{select:!0})):h.shiftKey&&g===$&&(h.preventDefault(),n&&rt(C,{select:!0})):g===w&&h.preventDefault()}},[n,r,v.paused]);return i.createElement(pe.div,j({tabIndex:-1},s,{ref:m,onKeyDown:p}))});function wd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rt(r,{select:t}),document.activeElement!==n)return}function xd(e){const t=Qo(e),n=ea(t,e),r=ea(t.reverse(),e);return[n,r]}function Qo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ea(e,t){for(const n of e)if(!yd(n,{upTo:t}))return n}function yd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $d(e){return e instanceof HTMLInputElement&&"select"in e}function rt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$d(e)&&t&&e.select()}}const ta=Cd();function Cd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=na(e,t),e.unshift(t)},remove(t){var n;e=na(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function na(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ed(e){return e.filter(t=>t.tagName!=="A")}function Sd(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var _d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kt=new WeakMap,vn=new WeakMap,gn={},pr=0,ra=function(e){return e&&(e.host||ra(e.parentNode))},kd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ra(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Td=function(e,t,n,r){var o=kd(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],s=[],c=new Set,l=new Set(o),d=function(u){!u||c.has(u)||(c.add(u),d(u.parentNode))};o.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(c.has(m))f(m);else try{var v=m.getAttribute(r),p=v!==null&&v!=="false",h=(kt.get(m)||0)+1,x=(a.get(m)||0)+1;kt.set(m,h),a.set(m,x),s.push(m),h===1&&p&&vn.set(m,!0),x===1&&m.setAttribute(n,"true"),p||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return f(t),c.clear(),pr++,function(){s.forEach(function(u){var m=kt.get(u)-1,v=a.get(u)-1;kt.set(u,m),a.set(u,v),m||(vn.has(u)||u.removeAttribute(r),vn.delete(u)),v||u.removeAttribute(n)}),pr--,pr||(kt=new WeakMap,kt=new WeakMap,vn=new WeakMap,gn={})}},oa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Td(r,o,n,"aria-hidden")):function(){return null}},ot=function(){return ot=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ot.apply(this,arguments)};function Pd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Nd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var bn="right-scroll-bar-position",wn="width-before-scroll-bar",Od="with-scroll-bars-hidden",Id="--removed-body-scroll-bar-size";function mr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Md(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ad=typeof window<"u"?D.useLayoutEffect:D.useEffect,aa=new WeakMap;function Dd(e,t){var n=Md(null,function(r){return e.forEach(function(o){return mr(o,r)})});return Ad(function(){var r=aa.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||mr(c,null)}),a.forEach(function(c){o.has(c)||mr(c,s)})}aa.set(n,e)},[e]),n}var xn=function(){return xn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xn.apply(this,arguments)};function jd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function Ld(e){return e}function Fd(e,t){t===void 0&&(t=Ld);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Vd(e){e===void 0&&(e={});var t=Fd(null);return t.options=xn({async:!0,ssr:!1},e),t}var ia=function(e){var t=e.sideCar,n=jd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return D.createElement(r,xn({},n))};ia.isSideCarExport=!0;function Bd(e,t){return e.useMedium(t),ia}var sa=Vd(),hr=function(){},yn=D.forwardRef(function(e,t){var n=D.useRef(null),r=D.useState({onScrollCapture:hr,onWheelCapture:hr,onTouchMoveCapture:hr}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,v=e.noIsolation,p=e.inert,h=e.allowPinchZoom,x=e.as,g=x===void 0?"div":x,w=Pd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=Dd([n,t]),E=ot(ot({},w),o);return D.createElement(D.Fragment,null,f&&D.createElement($,{sideCar:sa,removeScrollBar:d,shards:u,noIsolation:v,inert:p,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),s?D.cloneElement(D.Children.only(c),ot(ot({},E),{ref:C})):D.createElement(g,ot({},E,{className:l,ref:C}),c))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yn.classNames={fullWidth:wn,zeroRight:bn};var zd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zd();return t&&e.setAttribute("nonce",t),e}function Rd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ud=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wd())&&(Rd(t,n),Hd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kd=function(){var e=Ud();return function(t,n){D.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ca=function(){var e=Kd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Gd={left:0,top:0,right:0,gap:0},vr=function(e){return parseInt(e||"",10)||0},Yd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[vr(n),vr(r),vr(o)]},Xd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gd;var t=Yd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qd=ca(),Tt="data-scroll-locked",Zd=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
115
+ */const wc=Ne("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L.apply(this,arguments)}function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xc(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function tn(...e){return t=>e.forEach(n=>xc(n,t))}function ve(...e){return i.useCallback(tn(...e),e)}function st(e,t=[]){let n=[];function r(a,s){const c=i.createContext(s),l=n.length;n=[...n,s];function d(u){const{scope:m,children:h,...p}=u,v=m?.[e][l]||c,y=i.useMemo(()=>p,Object.values(p));return i.createElement(v.Provider,{value:y},h)}function f(u,m){const h=m?.[e][l]||c,p=i.useContext(h);if(p)return p;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${a}\``)}return d.displayName=a+"Provider",[d,f]}const o=()=>{const a=n.map(s=>i.createContext(s));return function(c){const l=c?.[e]||a;return i.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,yc(o,...t)]}function yc(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const s=r.reduce((c,{useScope:l,scopeName:d})=>{const u=l(a)[`__scope${d}`];return{...c,...u}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}const ct=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),a=o.find($c);if(a){const s=a.props.children,c=o.map(l=>l===a?i.Children.count(s)>1?i.Children.only(null):i.isValidElement(s)?s.props.children:null:l);return i.createElement(Rn,L({},r,{ref:t}),i.isValidElement(s)?i.cloneElement(s,void 0,c):null)}return i.createElement(Rn,L({},r,{ref:t}),n)});ct.displayName="Slot";const Rn=i.forwardRef((e,t)=>{const{children:n,...r}=e;return i.isValidElement(n)?i.cloneElement(n,{...Cc(r,n.props),ref:t?tn(t,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});Rn.displayName="SlotClone";const go=({children:e})=>i.createElement(i.Fragment,null,e);function $c(e){return i.isValidElement(e)&&e.type===go}function Cc(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...c)=>{a(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...a}:r==="className"&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}const fe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:a,...s}=r,c=a?ct:t;return i.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),i.createElement(c,L({},s,{ref:o}))});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function bo(e,t){e&&gt.flushSync(()=>e.dispatchEvent(t))}function Me(e){const t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...n)=>{var r;return(r=t.current)===null||r===void 0?void 0:r.call(t,...n)},[])}function Ec(e,t=globalThis?.document){const n=Me(e);i.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r),()=>t.removeEventListener("keydown",r)},[n,t])}const Hn="dismissableLayer.update",Sc="dismissableLayer.pointerDownOutside",_c="dismissableLayer.focusOutside";let wo;const kc=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Un=i.forwardRef((e,t)=>{var n;const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:c,onDismiss:l,...d}=e,f=i.useContext(kc),[u,m]=i.useState(null),h=(n=u?.ownerDocument)!==null&&n!==void 0?n:globalThis?.document,[,p]=i.useState({}),v=ve(t,_=>m(_)),y=Array.from(f.layers),[g]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),w=y.indexOf(g),$=u?y.indexOf(u):-1,C=f.layersWithOutsidePointerEventsDisabled.size>0,E=$>=w,M=Tc(_=>{const B=_.target,K=[...f.branches].some(A=>A.contains(B));!E||K||(a?.(_),c?.(_),_.defaultPrevented||l?.())},h),T=Pc(_=>{const B=_.target;[...f.branches].some(A=>A.contains(B))||(s?.(_),c?.(_),_.defaultPrevented||l?.())},h);return Ec(_=>{$===f.layers.size-1&&(o?.(_),!_.defaultPrevented&&l&&(_.preventDefault(),l()))},h),i.useEffect(()=>{if(u)return r&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(wo=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),xo(),()=>{r&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=wo)}},[u,h,r,f]),i.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),xo())},[u,f]),i.useEffect(()=>{const _=()=>p({});return document.addEventListener(Hn,_),()=>document.removeEventListener(Hn,_)},[]),i.createElement(fe.div,L({},d,{ref:v,style:{pointerEvents:C?E?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,M.onPointerDownCapture)}))});function Tc(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{const a=c=>{if(c.target&&!r.current){let d=function(){yo(Sc,n,l,{discrete:!0})};const l={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Pc(e,t=globalThis?.document){const n=Me(e),r=i.useRef(!1);return i.useEffect(()=>{const o=a=>{a.target&&!r.current&&yo(_c,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xo(){const e=new CustomEvent(Hn);document.dispatchEvent(e)}function yo(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?bo(o,a):o.dispatchEvent(a)}const _e=globalThis?.document?i.useLayoutEffect:()=>{},Nc=j.useId||(()=>{});let Oc=0;function wt(e){const[t,n]=j.useState(Nc());return _e(()=>{n(r=>r??String(Oc++))},[e]),t?`radix-${t}`:""}const Ic=["top","right","bottom","left"],Le=Math.min,Te=Math.max,nn=Math.round,rn=Math.floor,tt=e=>({x:e,y:e}),Mc={left:"right",right:"left",bottom:"top",top:"bottom"},Ac={start:"end",end:"start"};function Kn(e,t,n){return Te(e,Le(t,n))}function ze(e,t){return typeof e=="function"?e(t):e}function We(e){return e.split("-")[0]}function xt(e){return e.split("-")[1]}function Gn(e){return e==="x"?"y":"x"}function Yn(e){return e==="y"?"height":"width"}function yt(e){return["top","bottom"].includes(We(e))?"y":"x"}function Xn(e){return Gn(yt(e))}function Dc(e,t,n){n===void 0&&(n=!1);const r=xt(e),o=Xn(e),a=Yn(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=on(s)),[s,on(s)]}function jc(e){const t=on(e);return[qn(e),t,qn(t)]}function qn(e){return e.replace(/start|end/g,t=>Ac[t])}function Lc(e,t,n){const r=["left","right"],o=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?a:s;default:return[]}}function Fc(e,t,n,r){const o=xt(e);let a=Lc(We(e),n==="start",r);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(qn)))),a}function on(e){return e.replace(/left|right|bottom|top/g,t=>Mc[t])}function Vc(e){return{top:0,right:0,bottom:0,left:0,...e}}function $o(e){return typeof e!="number"?Vc(e):{top:e,right:e,bottom:e,left:e}}function an(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Co(e,t,n){let{reference:r,floating:o}=e;const a=yt(t),s=Xn(t),c=Yn(s),l=We(t),d=a==="y",f=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,m=r[c]/2-o[c]/2;let h;switch(l){case"top":h={x:f,y:r.y-o.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:u};break;case"left":h={x:r.x-o.width,y:u};break;default:h={x:r.x,y:r.y}}switch(xt(t)){case"start":h[s]-=m*(n&&d?-1:1);break;case"end":h[s]+=m*(n&&d?-1:1);break}return h}const Bc=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:s}=n,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:f,y:u}=Co(d,r,l),m=r,h={},p=0;for(let v=0;v<c.length;v++){const{name:y,fn:g}=c[v],{x:w,y:$,data:C,reset:E}=await g({x:f,y:u,initialPlacement:r,placement:m,strategy:o,middlewareData:h,rects:d,platform:s,elements:{reference:e,floating:t}});f=w??f,u=$??u,h={...h,[y]:{...h[y],...C}},E&&p<=50&&(p++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:f,y:u}=Co(d,m,l)),v=-1)}return{x:f,y:u,placement:m,strategy:o,middlewareData:h}};async function zt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:a,rects:s,elements:c,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:u="floating",altBoundary:m=!1,padding:h=0}=ze(t,e),p=$o(h),y=c[m?u==="floating"?"reference":"floating":u],g=an(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:d,rootBoundary:f,strategy:l})),w=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},E=an(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:w,offsetParent:$,strategy:l}):w);return{top:(g.top-E.top+p.top)/C.y,bottom:(E.bottom-g.bottom+p.bottom)/C.y,left:(g.left-E.left+p.left)/C.x,right:(E.right-g.right+p.right)/C.x}}const zc=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:s,elements:c,middlewareData:l}=t,{element:d,padding:f=0}=ze(e,t)||{};if(d==null)return{};const u=$o(f),m={x:n,y:r},h=Xn(o),p=Yn(h),v=await s.getDimensions(d),y=h==="y",g=y?"top":"left",w=y?"bottom":"right",$=y?"clientHeight":"clientWidth",C=a.reference[p]+a.reference[h]-m[h]-a.floating[p],E=m[h]-a.reference[h],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let T=M?M[$]:0;(!T||!await(s.isElement==null?void 0:s.isElement(M)))&&(T=c.floating[$]||a.floating[p]);const _=C/2-E/2,B=T/2-v[p]/2-1,K=Le(u[g],B),A=Le(u[w],B),P=K,G=T-v[p]-A,z=T/2-v[p]/2+_,R=Kn(P,z,G),I=!l.arrow&&xt(o)!=null&&z!==R&&a.reference[p]/2-(z<P?K:A)-v[p]/2<0,O=I?z<P?z-P:z-G:0;return{[h]:m[h]+O,data:{[h]:R,centerOffset:z-R-O,...I&&{alignmentOffset:O}},reset:I}}}),Wc=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:s,initialPlacement:c,platform:l,elements:d}=t,{mainAxis:f=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:v=!0,...y}=ze(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const g=We(o),w=We(c)===c,$=await(l.isRTL==null?void 0:l.isRTL(d.floating)),C=m||(w||!v?[on(c)]:jc(c));!m&&p!=="none"&&C.push(...Fc(c,v,p,$));const E=[c,...C],M=await zt(t,y),T=[];let _=((r=a.flip)==null?void 0:r.overflows)||[];if(f&&T.push(M[g]),u){const P=Dc(o,s,$);T.push(M[P[0]],M[P[1]])}if(_=[..._,{placement:o,overflows:T}],!T.every(P=>P<=0)){var B,K;const P=(((B=a.flip)==null?void 0:B.index)||0)+1,G=E[P];if(G)return{data:{index:P,overflows:_},reset:{placement:G}};let z=(K=_.filter(R=>R.overflows[0]<=0).sort((R,I)=>R.overflows[1]-I.overflows[1])[0])==null?void 0:K.placement;if(!z)switch(h){case"bestFit":{var A;const R=(A=_.map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,N)=>O+N,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:A[0];R&&(z=R);break}case"initialPlacement":z=c;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function Eo(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function So(e){return Ic.some(t=>e[t]>=0)}const Rc=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=ze(e,t);switch(r){case"referenceHidden":{const a=await zt(t,{...o,elementContext:"reference"}),s=Eo(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:So(s)}}}case"escaped":{const a=await zt(t,{...o,altBoundary:!0}),s=Eo(a,n.floating);return{data:{escapedOffsets:s,escaped:So(s)}}}default:return{}}}}};async function Hc(e,t){const{placement:n,platform:r,elements:o}=e,a=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=We(n),c=xt(n),l=yt(n)==="y",d=["left","top"].includes(s)?-1:1,f=a&&l?-1:1,u=ze(t,e);let{mainAxis:m,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&typeof p=="number"&&(h=c==="end"?p*-1:p),l?{x:h*f,y:m*d}:{x:m*d,y:h*f}}const Uc=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:s,middlewareData:c}=t,l=await Hc(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},Kc=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:y=>{let{x:g,y:w}=y;return{x:g,y:w}}},...l}=ze(e,t),d={x:n,y:r},f=await zt(t,l),u=yt(We(o)),m=Gn(u);let h=d[m],p=d[u];if(a){const y=m==="y"?"top":"left",g=m==="y"?"bottom":"right",w=h+f[y],$=h-f[g];h=Kn(w,h,$)}if(s){const y=u==="y"?"top":"left",g=u==="y"?"bottom":"right",w=p+f[y],$=p-f[g];p=Kn(w,p,$)}const v=c.fn({...t,[m]:h,[u]:p});return{...v,data:{x:v.x-n,y:v.y-r}}}}},Gc=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:s}=t,{offset:c=0,mainAxis:l=!0,crossAxis:d=!0}=ze(e,t),f={x:n,y:r},u=yt(o),m=Gn(u);let h=f[m],p=f[u];const v=ze(c,t),y=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const $=m==="y"?"height":"width",C=a.reference[m]-a.floating[$]+y.mainAxis,E=a.reference[m]+a.reference[$]-y.mainAxis;h<C?h=C:h>E&&(h=E)}if(d){var g,w;const $=m==="y"?"width":"height",C=["top","left"].includes(We(o)),E=a.reference[u]-a.floating[$]+(C&&((g=s.offset)==null?void 0:g[u])||0)+(C?0:y.crossAxis),M=a.reference[u]+a.reference[$]+(C?0:((w=s.offset)==null?void 0:w[u])||0)-(C?y.crossAxis:0);p<E?p=E:p>M&&(p=M)}return{[m]:h,[u]:p}}}},Yc=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:a}=t,{apply:s=()=>{},...c}=ze(e,t),l=await zt(t,c),d=We(n),f=xt(n),u=yt(n)==="y",{width:m,height:h}=r.floating;let p,v;d==="top"||d==="bottom"?(p=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,p=f==="end"?"top":"bottom");const y=h-l.top-l.bottom,g=m-l.left-l.right,w=Le(h-l[p],y),$=Le(m-l[v],g),C=!t.middlewareData.shift;let E=w,M=$;if(u?M=f||C?Le($,g):g:E=f||C?Le(w,y):y,C&&!f){const _=Te(l.left,0),B=Te(l.right,0),K=Te(l.top,0),A=Te(l.bottom,0);u?M=m-2*(_!==0||B!==0?_+B:Te(l.left,l.right)):E=h-2*(K!==0||A!==0?K+A:Te(l.top,l.bottom))}await s({...t,availableWidth:M,availableHeight:E});const T=await o.getDimensions(a.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function $t(e){return _o(e)?(e.nodeName||"").toLowerCase():"#document"}function Pe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(_o(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _o(e){return e instanceof Node||e instanceof Pe(e).Node}function Fe(e){return e instanceof Element||e instanceof Pe(e).Element}function Ve(e){return e instanceof HTMLElement||e instanceof Pe(e).HTMLElement}function ko(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pe(e).ShadowRoot}function Wt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ae(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Xc(e){return["table","td","th"].includes($t(e))}function Zn(e){const t=Jn(),n=Ae(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function qc(e){let t=nt(e);for(;Ve(t)&&!Ct(t);){if(Zn(t))return t;t=nt(t)}return null}function Jn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ct(e){return["html","body","#document"].includes($t(e))}function Ae(e){return Pe(e).getComputedStyle(e)}function sn(e){return Fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function nt(e){if($t(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ko(e)&&e.host||Re(e);return ko(t)?t.host:t}function To(e){const t=nt(e);return Ct(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ve(t)&&Wt(t)?t:To(t)}function Rt(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=To(e),a=o===((r=e.ownerDocument)==null?void 0:r.body),s=Pe(o);return a?t.concat(s,s.visualViewport||[],Wt(o)?o:[],s.frameElement&&n?Rt(s.frameElement):[]):t.concat(o,Rt(o,[],n))}function Po(e){const t=Ae(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ve(e),a=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=nn(n)!==a||nn(r)!==s;return c&&(n=a,r=s),{width:n,height:r,$:c}}function Qn(e){return Fe(e)?e:e.contextElement}function Et(e){const t=Qn(e);if(!Ve(t))return tt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=Po(t);let s=(a?nn(n.width):n.width)/r,c=(a?nn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const Zc=tt(0);function No(e){const t=Pe(e);return!Jn()||!t.visualViewport?Zc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jc(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pe(e)?!1:t}function lt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),a=Qn(e);let s=tt(1);t&&(r?Fe(r)&&(s=Et(r)):s=Et(e));const c=Jc(a,n,r)?No(a):tt(0);let l=(o.left+c.x)/s.x,d=(o.top+c.y)/s.y,f=o.width/s.x,u=o.height/s.y;if(a){const m=Pe(a),h=r&&Fe(r)?Pe(r):r;let p=m,v=p.frameElement;for(;v&&r&&h!==p;){const y=Et(v),g=v.getBoundingClientRect(),w=Ae(v),$=g.left+(v.clientLeft+parseFloat(w.paddingLeft))*y.x,C=g.top+(v.clientTop+parseFloat(w.paddingTop))*y.y;l*=y.x,d*=y.y,f*=y.x,u*=y.y,l+=$,d+=C,p=Pe(v),v=p.frameElement}}return an({width:f,height:u,x:l,y:d})}const Qc=[":popover-open",":modal"];function er(e){return Qc.some(t=>{try{return e.matches(t)}catch{return!1}})}function el(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a=o==="fixed",s=Re(r),c=t?er(t.floating):!1;if(r===s||c&&a)return n;let l={scrollLeft:0,scrollTop:0},d=tt(1);const f=tt(0),u=Ve(r);if((u||!u&&!a)&&(($t(r)!=="body"||Wt(s))&&(l=sn(r)),Ve(r))){const m=lt(r);d=Et(r),f.x=m.x+r.clientLeft,f.y=m.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-l.scrollLeft*d.x+f.x,y:n.y*d.y-l.scrollTop*d.y+f.y}}function tl(e){return Array.from(e.getClientRects())}function Oo(e){return lt(Re(e)).left+sn(e).scrollLeft}function nl(e){const t=Re(e),n=sn(e),r=e.ownerDocument.body,o=Te(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Te(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Oo(e);const c=-n.scrollTop;return Ae(r).direction==="rtl"&&(s+=Te(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:s,y:c}}function rl(e,t){const n=Pe(e),r=Re(e),o=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,l=0;if(o){a=o.width,s=o.height;const d=Jn();(!d||d&&t==="fixed")&&(c=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:c,y:l}}function ol(e,t){const n=lt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Ve(e)?Et(e):tt(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,l=o*a.x,d=r*a.y;return{width:s,height:c,x:l,y:d}}function Io(e,t,n){let r;if(t==="viewport")r=rl(e,n);else if(t==="document")r=nl(Re(e));else if(Fe(t))r=ol(t,n);else{const o=No(e);r={...t,x:t.x-o.x,y:t.y-o.y}}return an(r)}function Mo(e,t){const n=nt(e);return n===t||!Fe(n)||Ct(n)?!1:Ae(n).position==="fixed"||Mo(n,t)}function al(e,t){const n=t.get(e);if(n)return n;let r=Rt(e,[],!1).filter(c=>Fe(c)&&$t(c)!=="body"),o=null;const a=Ae(e).position==="fixed";let s=a?nt(e):e;for(;Fe(s)&&!Ct(s);){const c=Ae(s),l=Zn(s);!l&&c.position==="fixed"&&(o=null),(a?!l&&!o:!l&&c.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Wt(s)&&!l&&Mo(e,s))?r=r.filter(f=>f!==s):o=c,s=nt(s)}return t.set(e,r),r}function il(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?er(t)?[]:al(t,this._c):[].concat(n),r],c=s[0],l=s.reduce((d,f)=>{const u=Io(t,f,o);return d.top=Te(u.top,d.top),d.right=Le(u.right,d.right),d.bottom=Le(u.bottom,d.bottom),d.left=Te(u.left,d.left),d},Io(t,c,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sl(e){const{width:t,height:n}=Po(e);return{width:t,height:n}}function cl(e,t,n){const r=Ve(t),o=Re(t),a=n==="fixed",s=lt(e,!0,a,t);let c={scrollLeft:0,scrollTop:0};const l=tt(0);if(r||!r&&!a)if(($t(t)!=="body"||Wt(o))&&(c=sn(t)),r){const u=lt(t,!0,a,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else o&&(l.x=Oo(o));const d=s.left+c.scrollLeft-l.x,f=s.top+c.scrollTop-l.y;return{x:d,y:f,width:s.width,height:s.height}}function tr(e){return Ae(e).position==="static"}function Ao(e,t){return!Ve(e)||Ae(e).position==="fixed"?null:t?t(e):e.offsetParent}function Do(e,t){const n=Pe(e);if(er(e))return n;if(!Ve(e)){let o=nt(e);for(;o&&!Ct(o);){if(Fe(o)&&!tr(o))return o;o=nt(o)}return n}let r=Ao(e,t);for(;r&&Xc(r)&&tr(r);)r=Ao(r,t);return r&&Ct(r)&&tr(r)&&!Zn(r)?n:r||qc(e)||n}const ll=async function(e){const t=this.getOffsetParent||Do,n=this.getDimensions,r=await n(e.floating);return{reference:cl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function dl(e){return Ae(e).direction==="rtl"}const ul={convertOffsetParentRelativeRectToViewportRelativeRect:el,getDocumentElement:Re,getClippingRect:il,getOffsetParent:Do,getElementRects:ll,getClientRects:tl,getDimensions:sl,getScale:Et,isElement:Fe,isRTL:dl};function fl(e,t){let n=null,r;const o=Re(e);function a(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,l){c===void 0&&(c=!1),l===void 0&&(l=1),a();const{left:d,top:f,width:u,height:m}=e.getBoundingClientRect();if(c||t(),!u||!m)return;const h=rn(f),p=rn(o.clientWidth-(d+u)),v=rn(o.clientHeight-(f+m)),y=rn(d),w={rootMargin:-h+"px "+-p+"px "+-v+"px "+-y+"px",threshold:Te(0,Le(1,l))||1};let $=!0;function C(E){const M=E[0].intersectionRatio;if(M!==l){if(!$)return s();M?s(!1,M):r=setTimeout(()=>{s(!1,1e-7)},1e3)}$=!1}try{n=new IntersectionObserver(C,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(e)}return s(!0),a}function pl(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,d=Qn(e),f=o||a?[...d?Rt(d):[],...Rt(t)]:[];f.forEach(g=>{o&&g.addEventListener("scroll",n,{passive:!0}),a&&g.addEventListener("resize",n)});const u=d&&c?fl(d,n):null;let m=-1,h=null;s&&(h=new ResizeObserver(g=>{let[w]=g;w&&w.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var $;($=h)==null||$.observe(t)})),n()}),d&&!l&&h.observe(d),h.observe(t));let p,v=l?lt(e):null;l&&y();function y(){const g=lt(e);v&&(g.x!==v.x||g.y!==v.y||g.width!==v.width||g.height!==v.height)&&n(),v=g,p=requestAnimationFrame(y)}return n(),()=>{var g;f.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),u?.(),(g=h)==null||g.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const ml=Uc,hl=Kc,vl=Wc,gl=Yc,bl=Rc,jo=zc,wl=Gc,xl=(e,t,n)=>{const r=new Map,o={platform:ul,...n},a={...o.platform,_c:r};return Bc(e,t,{...o,platform:a})};var cn=typeof document<"u"?i.useLayoutEffect:i.useEffect;function ln(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ln(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const a=o[r];if(!(a==="_owner"&&e.$$typeof)&&!ln(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Lo(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fo(e,t){const n=Lo(e);return Math.round(t*n)/n}function Vo(e){const t=j.useRef(e);return cn(()=>{t.current=e}),t}function yl(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:l,open:d}=e,[f,u]=j.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=j.useState(r);ln(m,r)||h(r);const[p,v]=j.useState(null),[y,g]=j.useState(null),w=j.useCallback(O=>{O!==M.current&&(M.current=O,v(O))},[]),$=j.useCallback(O=>{O!==T.current&&(T.current=O,g(O))},[]),C=a||p,E=s||y,M=j.useRef(null),T=j.useRef(null),_=j.useRef(f),B=l!=null,K=Vo(l),A=Vo(o),P=j.useCallback(()=>{if(!M.current||!T.current)return;const O={placement:t,strategy:n,middleware:m};A.current&&(O.platform=A.current),xl(M.current,T.current,O).then(N=>{const S={...N,isPositioned:!0};G.current&&!ln(_.current,S)&&(_.current=S,Hi.flushSync(()=>{u(S)}))})},[m,t,n,A]);cn(()=>{d===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,u(O=>({...O,isPositioned:!1})))},[d]);const G=j.useRef(!1);cn(()=>(G.current=!0,()=>{G.current=!1}),[]),cn(()=>{if(C&&(M.current=C),E&&(T.current=E),C&&E){if(K.current)return K.current(C,E,P);P()}},[C,E,P,K,B]);const z=j.useMemo(()=>({reference:M,floating:T,setReference:w,setFloating:$}),[w,$]),R=j.useMemo(()=>({reference:C,floating:E}),[C,E]),I=j.useMemo(()=>{const O={position:n,left:0,top:0};if(!R.floating)return O;const N=Fo(R.floating,f.x),S=Fo(R.floating,f.y);return c?{...O,transform:"translate("+N+"px, "+S+"px)",...Lo(R.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:S}},[n,c,R.floating,f.x,f.y]);return j.useMemo(()=>({...f,update:P,refs:z,elements:R,floatingStyles:I}),[f,P,z,R,I])}const $l=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?jo({element:r.current,padding:o}).fn(n):{}:r?jo({element:r,padding:o}).fn(n):{}}}},Cl=(e,t)=>({...ml(e),options:[e,t]}),El=(e,t)=>({...hl(e),options:[e,t]}),Sl=(e,t)=>({...wl(e),options:[e,t]}),_l=(e,t)=>({...vl(e),options:[e,t]}),kl=(e,t)=>({...gl(e),options:[e,t]}),Tl=(e,t)=>({...bl(e),options:[e,t]}),Pl=(e,t)=>({...$l(e),options:[e,t]}),Nl=i.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...a}=e;return i.createElement(fe.svg,L({},a,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:i.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Ol(e){const[t,n]=i.useState(void 0);return _e(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let s,c;if("borderBoxSize"in a){const l=a.borderBoxSize,d=Array.isArray(l)?l[0]:l;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}const Bo="Popper",[zo,St]=st(Bo),[Il,Wo]=zo(Bo),Ml=e=>{const{__scopePopper:t,children:n}=e,[r,o]=i.useState(null);return i.createElement(Il,{scope:t,anchor:r,onAnchorChange:o},n)},Al="PopperAnchor",Dl=i.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,a=Wo(Al,n),s=i.useRef(null),c=ve(t,s);return i.useEffect(()=>{a.onAnchorChange(r?.current||s.current)}),r?null:i.createElement(fe.div,L({},o,{ref:c}))}),Ro="PopperContent",[jl,Ll]=zo(Ro),Fl=i.forwardRef((e,t)=>{var n,r,o,a,s,c,l,d;const{__scopePopper:f,side:u="bottom",sideOffset:m=0,align:h="center",alignOffset:p=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:g=[],collisionPadding:w=0,sticky:$="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:M,...T}=e,_=Wo(Ro,f),[B,K]=i.useState(null),A=ve(t,D=>K(D)),[P,G]=i.useState(null),z=Ol(P),R=(n=z?.width)!==null&&n!==void 0?n:0,I=(r=z?.height)!==null&&r!==void 0?r:0,O=u+(h!=="center"?"-"+h:""),N=typeof w=="number"?w:{top:0,right:0,bottom:0,left:0,...w},S=Array.isArray(g)?g:[g],F=S.length>0,W={padding:N,boundary:S.filter(zl),altBoundary:F},{refs:X,floatingStyles:ae,placement:be,isPositioned:ge,middlewareData:pe}=yl({strategy:"fixed",placement:O,whileElementsMounted:(...D)=>pl(...D,{animationFrame:E==="always"}),elements:{reference:_.anchor},middleware:[Cl({mainAxis:m+I,alignmentAxis:p}),y&&El({mainAxis:!0,crossAxis:!1,limiter:$==="partial"?Sl():void 0,...W}),y&&_l({...W}),kl({...W,apply:({elements:D,rects:H,availableWidth:Z,availableHeight:me})=>{const{width:xe,height:le}=H.reference,ce=D.floating.style;ce.setProperty("--radix-popper-available-width",`${Z}px`),ce.setProperty("--radix-popper-available-height",`${me}px`),ce.setProperty("--radix-popper-anchor-width",`${xe}px`),ce.setProperty("--radix-popper-anchor-height",`${le}px`)}}),P&&Pl({element:P,padding:v}),Wl({arrowWidth:R,arrowHeight:I}),C&&Tl({strategy:"referenceHidden",...W})]}),[U,ee]=Uo(be),te=Me(M);_e(()=>{ge&&te?.()},[ge,te]);const ne=(o=pe.arrow)===null||o===void 0?void 0:o.x,ie=(a=pe.arrow)===null||a===void 0?void 0:a.y,oe=((s=pe.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[$e,Ce]=i.useState();return _e(()=>{B&&Ce(window.getComputedStyle(B).zIndex)},[B]),i.createElement("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...ae,transform:ge?ae.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$e,"--radix-popper-transform-origin":[(c=pe.transformOrigin)===null||c===void 0?void 0:c.x,(l=pe.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},i.createElement(jl,{scope:f,placedSide:U,onArrowChange:G,arrowX:ne,arrowY:ie,shouldHideArrow:oe},i.createElement(fe.div,L({"data-side":U,"data-align":ee},T,{ref:A,style:{...T.style,animation:ge?void 0:"none",opacity:(d=pe.hide)!==null&&d!==void 0&&d.referenceHidden?0:void 0}}))))}),Ho="PopperArrow",Vl={top:"bottom",right:"left",bottom:"top",left:"right"},Bl=i.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,a=Ll(Ho,r),s=Vl[a.placedSide];return i.createElement("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},i.createElement(Nl,L({},o,{ref:n,style:{...o.style,display:"block"}})))});function zl(e){return e!==null}const Wl=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,s;const{placement:c,rects:l,middlewareData:d}=t,u=((n=d.arrow)===null||n===void 0?void 0:n.centerOffset)!==0,m=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,v]=Uo(c),y={start:"0%",center:"50%",end:"100%"}[v],g=((r=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&r!==void 0?r:0)+m/2,w=((a=(s=d.arrow)===null||s===void 0?void 0:s.y)!==null&&a!==void 0?a:0)+h/2;let $="",C="";return p==="bottom"?($=u?y:`${g}px`,C=`${-h}px`):p==="top"?($=u?y:`${g}px`,C=`${l.floating.height+h}px`):p==="right"?($=`${-h}px`,C=u?y:`${w}px`):p==="left"&&($=`${l.floating.width+h}px`,C=u?y:`${w}px`),{data:{x:$,y:C}}}});function Uo(e){const[t,n="center"]=e.split("-");return[t,n]}const nr=Ml,rr=Dl,or=Fl,Ko=i.forwardRef((e,t)=>{var n;const{container:r=globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,...o}=e;return r?gt.createPortal(i.createElement(fe.div,L({},o,{ref:t})),r):null});function Rl(e,t){return i.useReducer((n,r)=>{const o=t[n][r];return o??n},e)}const _t=e=>{const{present:t,children:n}=e,r=Hl(t),o=typeof n=="function"?n({present:r.isPresent}):i.Children.only(n),a=ve(r.ref,o.ref);return typeof n=="function"||r.isPresent?i.cloneElement(o,{ref:a}):null};_t.displayName="Presence";function Hl(e){const[t,n]=i.useState(),r=i.useRef({}),o=i.useRef(e),a=i.useRef("none"),s=e?"mounted":"unmounted",[c,l]=Rl(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{const d=dn(r.current);a.current=c==="mounted"?d:"none"},[c]),_e(()=>{const d=r.current,f=o.current;if(f!==e){const m=a.current,h=dn(d);e?l("MOUNT"):h==="none"||d?.display==="none"?l("UNMOUNT"):l(f&&m!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),_e(()=>{if(t){const d=u=>{const h=dn(r.current).includes(u.animationName);u.target===t&&h&&gt.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===t&&(a.current=dn(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:i.useCallback(d=>{d&&(r.current=getComputedStyle(d)),n(d)},[])}}function dn(e){return e?.animationName||"none"}function Ht({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=Ul({defaultProp:t,onChange:n}),a=e!==void 0,s=a?e:r,c=Me(n),l=i.useCallback(d=>{if(a){const u=typeof d=="function"?d(e):d;u!==e&&c(u)}else o(d)},[a,e,o,c]);return[s,l]}function Ul({defaultProp:e,onChange:t}){const n=i.useState(e),[r]=n,o=i.useRef(r),a=Me(t);return i.useEffect(()=>{o.current!==r&&(a(r),o.current=r)},[r,o,a]),n}const Go=i.forwardRef((e,t)=>i.createElement(fe.span,L({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Kl=Go,[un,Jm]=st("Tooltip",[St]),ar=St(),Gl="TooltipProvider",Yl=700,ir="tooltip.open",[Xl,sr]=un(Gl),ql=e=>{const{__scopeTooltip:t,delayDuration:n=Yl,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:a}=e,[s,c]=i.useState(!0),l=i.useRef(!1),d=i.useRef(0);return i.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),i.createElement(Xl,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:i.useCallback(()=>{window.clearTimeout(d.current),c(!1)},[]),onClose:i.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>c(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:i.useCallback(f=>{l.current=f},[]),disableHoverableContent:o},a)},cr="Tooltip",[Zl,fn]=un(cr),Jl=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,l=sr(cr,e.__scopeTooltip),d=ar(t),[f,u]=i.useState(null),m=wt(),h=i.useRef(0),p=s??l.disableHoverableContent,v=c??l.delayDuration,y=i.useRef(!1),[g=!1,w]=Ht({prop:r,defaultProp:o,onChange:T=>{T?(l.onOpen(),document.dispatchEvent(new CustomEvent(ir))):l.onClose(),a?.(T)}}),$=i.useMemo(()=>g?y.current?"delayed-open":"instant-open":"closed",[g]),C=i.useCallback(()=>{window.clearTimeout(h.current),y.current=!1,w(!0)},[w]),E=i.useCallback(()=>{window.clearTimeout(h.current),w(!1)},[w]),M=i.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{y.current=!0,w(!0)},v)},[v,w]);return i.useEffect(()=>()=>window.clearTimeout(h.current),[]),i.createElement(nr,d,i.createElement(Zl,{scope:t,contentId:m,open:g,stateAttribute:$,trigger:f,onTriggerChange:u,onTriggerEnter:i.useCallback(()=>{l.isOpenDelayed?M():C()},[l.isOpenDelayed,M,C]),onTriggerLeave:i.useCallback(()=>{p?E():window.clearTimeout(h.current)},[E,p]),onOpen:C,onClose:E,disableHoverableContent:p},n))},Yo="TooltipTrigger",Ql=i.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fn(Yo,n),a=sr(Yo,n),s=ar(n),c=i.useRef(null),l=ve(t,c,o.onTriggerChange),d=i.useRef(!1),f=i.useRef(!1),u=i.useCallback(()=>d.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",u),[u]),i.createElement(rr,L({asChild:!0},s),i.createElement(fe.button,L({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:l,onPointerMove:Y(e.onPointerMove,m=>{m.pointerType!=="touch"&&!f.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:Y(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:Y(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",u,{once:!0})}),onFocus:Y(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:Y(e.onBlur,o.onClose),onClick:Y(e.onClick,o.onClose)})))}),ed="TooltipPortal",[Qm,td]=un(ed,{forceMount:void 0}),Ut="TooltipContent",nd=i.forwardRef((e,t)=>{const n=td(Ut,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...a}=e,s=fn(Ut,e.__scopeTooltip);return i.createElement(_t,{present:r||s.open},s.disableHoverableContent?i.createElement(Xo,L({side:o},a,{ref:t})):i.createElement(rd,L({side:o},a,{ref:t})))}),rd=i.forwardRef((e,t)=>{const n=fn(Ut,e.__scopeTooltip),r=sr(Ut,e.__scopeTooltip),o=i.useRef(null),a=ve(t,o),[s,c]=i.useState(null),{trigger:l,onClose:d}=n,f=o.current,{onPointerInTransitChange:u}=r,m=i.useCallback(()=>{c(null),u(!1)},[u]),h=i.useCallback((p,v)=>{const y=p.currentTarget,g={x:p.clientX,y:p.clientY},w=ad(g,y.getBoundingClientRect()),$=id(g,w),C=sd(v.getBoundingClientRect()),E=ld([...$,...C]);c(E),u(!0)},[u]);return i.useEffect(()=>()=>m(),[m]),i.useEffect(()=>{if(l&&f){const p=y=>h(y,f),v=y=>h(y,l);return l.addEventListener("pointerleave",p),f.addEventListener("pointerleave",v),()=>{l.removeEventListener("pointerleave",p),f.removeEventListener("pointerleave",v)}}},[l,f,h,m]),i.useEffect(()=>{if(s){const p=v=>{const y=v.target,g={x:v.clientX,y:v.clientY},w=l?.contains(y)||f?.contains(y),$=!cd(g,s);w?m():$&&(m(),d())};return document.addEventListener("pointermove",p),()=>document.removeEventListener("pointermove",p)}},[l,f,s,d,m]),i.createElement(Xo,L({},e,{ref:a}))}),[od,eh]=un(cr,{isInside:!1}),Xo=i.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,l=fn(Ut,n),d=ar(n),{onClose:f}=l;return i.useEffect(()=>(document.addEventListener(ir,f),()=>document.removeEventListener(ir,f)),[f]),i.useEffect(()=>{if(l.trigger){const u=m=>{const h=m.target;h!=null&&h.contains(l.trigger)&&f()};return window.addEventListener("scroll",u,{capture:!0}),()=>window.removeEventListener("scroll",u,{capture:!0})}},[l.trigger,f]),i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u=>u.preventDefault(),onDismiss:f},i.createElement(or,L({"data-state":l.stateAttribute},d,c,{ref:t,style:{...c.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)"}}),i.createElement(go,null,r),i.createElement(od,{scope:n,isInside:!0},i.createElement(Kl,{id:l.contentId,role:"tooltip"},o||r))))});function ad(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function id(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function sd(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function cd(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function ld(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),dd(t)}function dd(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(o.y-s.y)>=(a.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const ud=ql,fd=Jl,pd=Ql,qo=nd,pn=ud,mn=fd,hn=pd,Kt=j.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(qo,{ref:r,sideOffset:t,className:Q("fade-in-0 zoom-in-95 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 animate-in overflow-hidden rounded-md bg-primary px-3 py-1.5 text-primary-foreground text-xs data-[state=closed]:animate-out",e),...n}));Kt.displayName=qo.displayName;function md(e){return x.jsxs("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[x.jsx("title",{children:"Integer"}),x.jsx("path",{d:"M13.003 7.754a.75.75 0 0 1 .75-.75h5.232a.75.75 0 0 1 .53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 0 1 .755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 0 1-.53-1.28l2.643-2.644h-3.421a.75.75 0 0 1-.75-.75ZM7.88 15.215a1.4 1.4 0 0 0-1.446.83.75.75 0 0 1-1.37-.61 2.899 2.899 0 0 1 2.986-1.71c.589.06 1.139.323 1.557.743.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 0 1 0 1.5h-4a.75.75 0 0 1-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.071 1.071 0 0 0-.652-.298Zm.234-13.121a.75.75 0 0 1 .386.656V9h1.252a.75.75 0 0 1 0 1.5H5.75a.75.75 0 0 1 0-1.5H7V4.103l-.853.533a.749.749 0 1 1-.795-1.272l2-1.25a.749.749 0 0 1 .762-.02Z"})]})}function hd({column:e,width:t,visible:n}){const{name:r,dataEditorType:o,description:a}=e;return n?x.jsxs("div",{className:"flex h-9 w-32 shrink-0 items-center gap-2 border border-t-0 border-l-0 bg-[#F6F6F9] px-2",style:{width:t,height:ks},children:[x.jsxs("div",{className:"w-4 shrink-0 text-[#8E8EA9]",children:[o==="String"&&x.jsx(sc,{className:"h-4 w-4"}),o==="Date"&&x.jsx(uc,{className:"h-4 w-4"}),o==="Boolean"&&x.jsx(mc,{className:"h-4 w-4"}),o==="Select"&&x.jsx(gc,{className:"h-4 w-4"}),o==="Float"&&x.jsx(vo,{className:"h-4 w-4"}),o==="Decimal"&&x.jsx(vo,{className:"h-4 w-4"}),o==="Integer"&&x.jsx(md,{className:"h-4 w-4"}),o==="Currency"&&x.jsx(hc,{className:"h-4 w-4"}),o==="Percentage"&&x.jsx(wc,{className:"h-4 w-4"})]}),x.jsx("p",{title:r,className:"line-clamp-2 w-full break-words font-semibold text-[#4A4A6A] text-xs",children:r}),a?x.jsx(pn,{children:x.jsxs(mn,{delayDuration:100,children:[x.jsx(hn,{children:x.jsx(ac,{className:"h-4 w-4 text-[#4A4A6A]"})}),x.jsx(Kt,{className:"max-w-[240px]",children:x.jsx("p",{children:a})})]})}):x.jsx("div",{className:"w-4 shrink-0"})]}):null}function vd({className:e}){const{emptySize:t,onSelectSpreadsheet:n}=je();return x.jsxs("button",{type:"button",disabled:t,className:Q("relative flex h-7 w-12 shrink-0 items-center justify-center border border-t border-l bg-white text-xs",e),onClick:n,children:[x.jsx("span",{className:"absolute top-0 right-0 h-full w-0.5 bg-gray-300"}),x.jsx("span",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-gray-300"})]})}function gd(){const{columns:e}=je();return x.jsxs("div",{children:[x.jsxs("div",{className:"relative flex items-center bg-white",children:[x.jsx(vd,{className:"border-t-0 border-l-0"}),e.map(t=>x.jsx(Gs,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__indicator__key__${t.name}__${t.position}`))]}),x.jsxs("div",{className:"flex items-center",children:[x.jsx("div",{className:"h-9 w-12 shrink-0 cursor-default border border-t-0 border-l-0 bg-[#F6F6F9]"}),e.map(t=>x.jsx(hd,{column:t,width:e[t.position].state.width,visible:e[t.position].state.visible},`spreadsheet__column__header__key__${t.name}__${t.position}`))]})]})}function Zo(e,[t,n]){return Math.min(n,Math.max(t,e))}function lr(e){const t=e+"CollectionProvider",[n,r]=st(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:p,children:v}=h,y=i.useRef(null),g=i.useRef(new Map).current;return i.createElement(o,{scope:p,itemMap:g,collectionRef:y},v)},c=e+"CollectionSlot",l=i.forwardRef((h,p)=>{const{scope:v,children:y}=h,g=a(c,v),w=ve(p,g.collectionRef);return i.createElement(ct,{ref:w},y)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",u=i.forwardRef((h,p)=>{const{scope:v,children:y,...g}=h,w=i.useRef(null),$=ve(p,w),C=a(d,v);return i.useEffect(()=>(C.itemMap.set(w,{ref:w,...g}),()=>void C.itemMap.delete(w))),i.createElement(ct,{[f]:"",ref:$},y)});function m(h){const p=a(e+"CollectionConsumer",h);return i.useCallback(()=>{const y=p.collectionRef.current;if(!y)return[];const g=Array.from(y.querySelectorAll(`[${f}]`));return Array.from(p.itemMap.values()).sort((C,E)=>g.indexOf(C.ref.current)-g.indexOf(E.ref.current))},[p.collectionRef,p.itemMap])}return[{Provider:s,Slot:l,ItemSlot:u},m,r]}const bd=i.createContext(void 0);function dr(e){const t=i.useContext(bd);return e||t||"ltr"}let ur=0;function Jo(){i.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=n[0])!==null&&e!==void 0?e:Qo()),document.body.insertAdjacentElement("beforeend",(t=n[1])!==null&&t!==void 0?t:Qo()),ur++,()=>{ur===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),ur--}},[])}function Qo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const fr="focusScope.autoFocusOnMount",pr="focusScope.autoFocusOnUnmount",ea={bubbles:!1,cancelable:!0},ta=i.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[c,l]=i.useState(null),d=Me(o),f=Me(a),u=i.useRef(null),m=ve(t,v=>l(v)),h=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let v=function($){if(h.paused||!c)return;const C=$.target;c.contains(C)?u.current=C:rt(u.current,{select:!0})},y=function($){if(h.paused||!c)return;const C=$.relatedTarget;C!==null&&(c.contains(C)||rt(u.current,{select:!0}))},g=function($){if(document.activeElement===document.body)for(const E of $)E.removedNodes.length>0&&rt(c)};document.addEventListener("focusin",v),document.addEventListener("focusout",y);const w=new MutationObserver(g);return c&&w.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y),w.disconnect()}}},[r,c,h.paused]),i.useEffect(()=>{if(c){oa.add(h);const v=document.activeElement;if(!c.contains(v)){const g=new CustomEvent(fr,ea);c.addEventListener(fr,d),c.dispatchEvent(g),g.defaultPrevented||(wd(Ed(na(c)),{select:!0}),document.activeElement===v&&rt(c))}return()=>{c.removeEventListener(fr,d),setTimeout(()=>{const g=new CustomEvent(pr,ea);c.addEventListener(pr,f),c.dispatchEvent(g),g.defaultPrevented||rt(v??document.body,{select:!0}),c.removeEventListener(pr,f),oa.remove(h)},0)}}},[c,d,f,h]);const p=i.useCallback(v=>{if(!n&&!r||h.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,g=document.activeElement;if(y&&g){const w=v.currentTarget,[$,C]=xd(w);$&&C?!v.shiftKey&&g===C?(v.preventDefault(),n&&rt($,{select:!0})):v.shiftKey&&g===$&&(v.preventDefault(),n&&rt(C,{select:!0})):g===w&&v.preventDefault()}},[n,r,h.paused]);return i.createElement(fe.div,L({tabIndex:-1},s,{ref:m,onKeyDown:p}))});function wd(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rt(r,{select:t}),document.activeElement!==n)return}function xd(e){const t=na(e),n=ra(t,e),r=ra(t.reverse(),e);return[n,r]}function na(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ra(e,t){for(const n of e)if(!yd(n,{upTo:t}))return n}function yd(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $d(e){return e instanceof HTMLInputElement&&"select"in e}function rt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$d(e)&&t&&e.select()}}const oa=Cd();function Cd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=aa(e,t),e.unshift(t)},remove(t){var n;e=aa(e,t),(n=e[0])===null||n===void 0||n.resume()}}}function aa(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Ed(e){return e.filter(t=>t.tagName!=="A")}function Sd(e){const t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var _d=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},kt=new WeakMap,vn=new WeakMap,gn={},mr=0,ia=function(e){return e&&(e.host||ia(e.parentNode))},kd=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ia(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Td=function(e,t,n,r){var o=kd(t,Array.isArray(e)?e:[e]);gn[n]||(gn[n]=new WeakMap);var a=gn[n],s=[],c=new Set,l=new Set(o),d=function(u){!u||c.has(u)||(c.add(u),d(u.parentNode))};o.forEach(d);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(m){if(c.has(m))f(m);else try{var h=m.getAttribute(r),p=h!==null&&h!=="false",v=(kt.get(m)||0)+1,y=(a.get(m)||0)+1;kt.set(m,v),a.set(m,y),s.push(m),v===1&&p&&vn.set(m,!0),y===1&&m.setAttribute(n,"true"),p||m.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}})};return f(t),c.clear(),mr++,function(){s.forEach(function(u){var m=kt.get(u)-1,h=a.get(u)-1;kt.set(u,m),a.set(u,h),m||(vn.has(u)||u.removeAttribute(r),vn.delete(u)),h||u.removeAttribute(n)}),mr--,mr||(kt=new WeakMap,kt=new WeakMap,vn=new WeakMap,gn={})}},sa=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=_d(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Td(r,o,n,"aria-hidden")):function(){return null}},ot=function(){return ot=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},ot.apply(this,arguments)};function Pd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Nd(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,a;r<o;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var bn="right-scroll-bar-position",wn="width-before-scroll-bar",Od="with-scroll-bars-hidden",Id="--removed-body-scroll-bar-size";function hr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Md(e,t){var n=i.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Ad=typeof window<"u"?j.useLayoutEffect:j.useEffect,ca=new WeakMap;function Dd(e,t){var n=Md(null,function(r){return e.forEach(function(o){return hr(o,r)})});return Ad(function(){var r=ca.get(n);if(r){var o=new Set(r),a=new Set(e),s=n.current;o.forEach(function(c){a.has(c)||hr(c,null)}),a.forEach(function(c){o.has(c)||hr(c,s)})}ca.set(n,e)},[e]),n}var xn=function(){return xn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xn.apply(this,arguments)};function jd(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}typeof SuppressedError=="function"&&SuppressedError;function Ld(e){return e}function Fd(e,t){t===void 0&&(t=Ld);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(c){return a(c)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(a),s=n}var l=function(){var f=s;s=[],f.forEach(a)},d=function(){return Promise.resolve().then(l)};d(),n={push:function(f){s.push(f),d()},filter:function(f){return s=s.filter(f),n}}}};return o}function Vd(e){e===void 0&&(e={});var t=Fd(null);return t.options=xn({async:!0,ssr:!1},e),t}var la=function(e){var t=e.sideCar,n=jd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return j.createElement(r,xn({},n))};la.isSideCarExport=!0;function Bd(e,t){return e.useMedium(t),la}var da=Vd(),vr=function(){},yn=j.forwardRef(function(e,t){var n=j.useRef(null),r=j.useState({onScrollCapture:vr,onWheelCapture:vr,onTouchMoveCapture:vr}),o=r[0],a=r[1],s=e.forwardProps,c=e.children,l=e.className,d=e.removeScrollBar,f=e.enabled,u=e.shards,m=e.sideCar,h=e.noIsolation,p=e.inert,v=e.allowPinchZoom,y=e.as,g=y===void 0?"div":y,w=Pd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),$=m,C=Dd([n,t]),E=ot(ot({},w),o);return j.createElement(j.Fragment,null,f&&j.createElement($,{sideCar:da,removeScrollBar:d,shards:u,noIsolation:h,inert:p,setCallbacks:a,allowPinchZoom:!!v,lockRef:n}),s?j.cloneElement(j.Children.only(c),ot(ot({},E),{ref:C})):j.createElement(g,ot({},E,{className:l,ref:C}),c))});yn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},yn.classNames={fullWidth:wn,zeroRight:bn};var zd=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Wd(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=zd();return t&&e.setAttribute("nonce",t),e}function Rd(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Hd(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ud=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Wd())&&(Rd(t,n),Hd(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Kd=function(){var e=Ud();return function(t,n){j.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},ua=function(){var e=Kd(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Gd={left:0,top:0,right:0,gap:0},gr=function(e){return parseInt(e||"",10)||0},Yd=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[gr(n),gr(r),gr(o)]},Xd=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Gd;var t=Yd(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},qd=ua(),Tt="data-scroll-locked",Zd=function(e,t,n,r){var o=e.left,a=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
116
116
  .`.concat(Od,` {
117
117
  overflow: hidden `).concat(r,`;
118
118
  padding-right: `).concat(c,"px ").concat(r,`;
@@ -149,10 +149,10 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
149
149
  body[`).concat(Tt,`] {
150
150
  `).concat(Id,": ").concat(c,`px;
151
151
  }
152
- `)},la=function(){var e=parseInt(document.body.getAttribute(Tt)||"0",10);return isFinite(e)?e:0},Jd=function(){D.useEffect(function(){return document.body.setAttribute(Tt,(la()+1).toString()),function(){var e=la()-1;e<=0?document.body.removeAttribute(Tt):document.body.setAttribute(Tt,e.toString())}},[])},Qd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Jd();var a=D.useMemo(function(){return Xd(o)},[o]);return D.createElement(qd,{styles:Zd(a,!t,o,n?"":"!important")})},gr=!1;if(typeof window<"u")try{var $n=Object.defineProperty({},"passive",{get:function(){return gr=!0,!0}});window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{gr=!1}var Pt=gr?{passive:!1}:!1,eu=function(e){return e.tagName==="TEXTAREA"},da=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eu(e)&&n[t]==="visible")},tu=function(e){return da(e,"overflowY")},nu=function(e){return da(e,"overflowX")},ua=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=fa(e,n);if(r){var o=pa(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ru=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ou=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},fa=function(e,t){return e==="v"?tu(t):nu(t)},pa=function(e,t){return e==="v"?ru(t):ou(t)},au=function(e,t){return e==="h"&&t==="rtl"?-1:1},iu=function(e,t,n,r,o){var a=au(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),d=!1,f=s>0,u=0,m=0;do{var v=pa(e,c),p=v[0],h=v[1],x=v[2],g=h-x-a*p;(p||g)&&fa(e,c)&&(u+=g,m+=p),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(u===0||!o)||!f&&(m===0||!o))&&(d=!0),d},Cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ma=function(e){return[e.deltaX,e.deltaY]},ha=function(e){return e&&"current"in e?e.current:e},su=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cu=function(e){return`
152
+ `)},fa=function(){var e=parseInt(document.body.getAttribute(Tt)||"0",10);return isFinite(e)?e:0},Jd=function(){j.useEffect(function(){return document.body.setAttribute(Tt,(fa()+1).toString()),function(){var e=fa()-1;e<=0?document.body.removeAttribute(Tt):document.body.setAttribute(Tt,e.toString())}},[])},Qd=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Jd();var a=j.useMemo(function(){return Xd(o)},[o]);return j.createElement(qd,{styles:Zd(a,!t,o,n?"":"!important")})},br=!1;if(typeof window<"u")try{var $n=Object.defineProperty({},"passive",{get:function(){return br=!0,!0}});window.addEventListener("test",$n,$n),window.removeEventListener("test",$n,$n)}catch{br=!1}var Pt=br?{passive:!1}:!1,eu=function(e){return e.tagName==="TEXTAREA"},pa=function(e,t){var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eu(e)&&n[t]==="visible")},tu=function(e){return pa(e,"overflowY")},nu=function(e){return pa(e,"overflowX")},ma=function(e,t){var n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var r=ha(e,n);if(r){var o=va(e,n),a=o[1],s=o[2];if(a>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},ru=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},ou=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},ha=function(e,t){return e==="v"?tu(t):nu(t)},va=function(e,t){return e==="v"?ru(t):ou(t)},au=function(e,t){return e==="h"&&t==="rtl"?-1:1},iu=function(e,t,n,r,o){var a=au(e,window.getComputedStyle(t).direction),s=a*r,c=n.target,l=t.contains(c),d=!1,f=s>0,u=0,m=0;do{var h=va(e,c),p=h[0],v=h[1],y=h[2],g=v-y-a*p;(p||g)&&ha(e,c)&&(u+=g,m+=p),c=c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(f&&(u===0||!o)||!f&&(m===0||!o))&&(d=!0),d},Cn=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ga=function(e){return[e.deltaX,e.deltaY]},ba=function(e){return e&&"current"in e?e.current:e},su=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cu=function(e){return`
153
153
  .block-interactivity-`.concat(e,` {pointer-events: none;}
154
154
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
155
- `)},lu=0,Nt=[];function du(e){var t=D.useRef([]),n=D.useRef([0,0]),r=D.useRef(),o=D.useState(lu++)[0],a=D.useState(function(){return ca()})[0],s=D.useRef(e);D.useEffect(function(){s.current=e},[e]),D.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=Nd([e.lockRef.current],(e.shards||[]).map(ha),!0).filter(Boolean);return h.forEach(function(x){return x.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=D.useCallback(function(h,x){if("touches"in h&&h.touches.length===2)return!s.current.allowPinchZoom;var g=Cn(h),w=n.current,$="deltaX"in h?h.deltaX:w[0]-g[0],C="deltaY"in h?h.deltaY:w[1]-g[1],E,M=h.target,T=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in h&&T==="h"&&M.type==="range")return!1;var _=ua(T,M);if(!_)return!0;if(_?E=T:(E=T==="v"?"h":"v",_=ua(T,M)),!_)return!1;if(!r.current&&"changedTouches"in h&&($||C)&&(r.current=E),!E)return!0;var z=r.current||E;return iu(z,x,h,z==="h"?$:C,!0)},[]),l=D.useCallback(function(h){var x=h;if(!(!Nt.length||Nt[Nt.length-1]!==a)){var g="deltaY"in x?ma(x):Cn(x),w=t.current.filter(function(E){return E.name===x.type&&E.target===x.target&&su(E.delta,g)})[0];if(w&&w.should){x.cancelable&&x.preventDefault();return}if(!w){var $=(s.current.shards||[]).map(ha).filter(Boolean).filter(function(E){return E.contains(x.target)}),C=$.length>0?c(x,$[0]):!s.current.noIsolation;C&&x.cancelable&&x.preventDefault()}}},[]),d=D.useCallback(function(h,x,g,w){var $={name:h,delta:x,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=D.useCallback(function(h){n.current=Cn(h),r.current=void 0},[]),u=D.useCallback(function(h){d(h.type,ma(h),h.target,c(h,e.lockRef.current))},[]),m=D.useCallback(function(h){d(h.type,Cn(h),h.target,c(h,e.lockRef.current))},[]);D.useEffect(function(){return Nt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Pt),document.addEventListener("touchmove",l,Pt),document.addEventListener("touchstart",f,Pt),function(){Nt=Nt.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,Pt),document.removeEventListener("touchmove",l,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var v=e.removeScrollBar,p=e.inert;return D.createElement(D.Fragment,null,p?D.createElement(a,{styles:cu(o)}):null,v?D.createElement(Qd,{gapMode:"margin"}):null)}const uu=Bd(sa,du);var br=D.forwardRef(function(e,t){return D.createElement(yn,ot({},e,{ref:t,sideCar:uu}))});br.classNames=yn.classNames;const fu=[" ","Enter","ArrowUp","ArrowDown"],pu=[" ","Enter"],En="Select",[Sn,_n,mu]=cr(En),[Ot,eh]=st(En,[mu,St]),wr=St(),[hu,dt]=Ot(En),[vu,gu]=Ot(En),bu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:v}=e,p=wr(t),[h,x]=i.useState(null),[g,w]=i.useState(null),[$,C]=i.useState(!1),E=lr(d),[M=!1,T]=Ht({prop:r,defaultProp:o,onChange:a}),[_,z]=Ht({prop:s,defaultProp:c,onChange:l}),R=i.useRef(null),L=h?!!h.closest("form"):!0,[P,U]=i.useState(new Set),F=Array.from(P).map(H=>H.props.value).join(";");return i.createElement(tr,p,i.createElement(hu,{required:v,scope:t,trigger:h,onTriggerChange:x,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:z,open:M,onOpenChange:T,dir:E,triggerPointerDownPosRef:R,disabled:m},i.createElement(Sn.Provider,{scope:t},i.createElement(vu,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(H=>{U(I=>new Set(I).add(H))},[]),onNativeOptionRemove:i.useCallback(H=>{U(I=>{const O=new Set(I);return O.delete(H),O})},[])},n)),L?i.createElement(Ea,{key:F,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:_,onChange:H=>z(H.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},wu="SelectTrigger",xu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=wr(n),s=dt(wu,n),c=s.disabled||r,l=ve(t,s.onTriggerChange),d=_n(n),[f,u,m]=Sa(p=>{const h=d().filter(w=>!w.disabled),x=h.find(w=>w.value===s.value),g=_a(h,p,x);g!==void 0&&s.onValueChange(g.value)}),v=()=>{c||(s.onOpenChange(!0),m())};return i.createElement(nr,j({asChild:!0},a),i.createElement(pe.button,j({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":Ca(s.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const h=p.target;h.hasPointerCapture(p.pointerId)&&h.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(v(),s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const h=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(h&&p.key===" ")&&fu.includes(p.key)&&(v(),p.preventDefault())})})))}),yu="SelectValue",$u=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=dt(yu,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=ve(t,l.onValueNodeChange);return _e(()=>{d(f)},[d,f]),i.createElement(pe.span,j({},c,{ref:u,style:{pointerEvents:"none"}}),Ca(l.value)?i.createElement(i.Fragment,null,s):a)}),Cu=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(pe.span,j({"aria-hidden":!0},o,{ref:t}),r||"▼")}),Eu=e=>i.createElement(Ro,j({asChild:!0},e)),It="SelectContent",Su=i.forwardRef((e,t)=>{const n=dt(It,e.__scopeSelect),[r,o]=i.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gt.createPortal(i.createElement(va,{scope:e.__scopeSelect},i.createElement(Sn.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(_u,j({},e,{ref:t}))}),He=10,[va,ut]=Ot(It),_u=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x,...g}=e,w=dt(It,n),[$,C]=i.useState(null),[E,M]=i.useState(null),T=ve(t,G=>C(G)),[_,z]=i.useState(null),[R,L]=i.useState(null),P=_n(n),[U,F]=i.useState(!1),H=i.useRef(!1);i.useEffect(()=>{if($)return oa($)},[$]),Xo();const I=i.useCallback(G=>{const[ee,...ne]=P().map(ie=>ie.ref.current),[te]=ne.slice(-1),ce=document.activeElement;for(const ie of G)if(ie===ce||(ie?.scrollIntoView({block:"nearest"}),ie===ee&&E&&(E.scrollTop=0),ie===te&&E&&(E.scrollTop=E.scrollHeight),ie?.focus(),document.activeElement!==ce))return},[P,E]),O=i.useCallback(()=>I([_,$]),[I,_,$]);i.useEffect(()=>{U&&O()},[U,O]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let G={x:0,y:0};const ee=te=>{var ce,ie,$e,Ce;G={x:Math.abs(Math.round(te.pageX)-((ce=(ie=S.current)===null||ie===void 0?void 0:ie.x)!==null&&ce!==void 0?ce:0)),y:Math.abs(Math.round(te.pageY)-(($e=(Ce=S.current)===null||Ce===void 0?void 0:Ce.y)!==null&&$e!==void 0?$e:0))}},ne=te=>{G.x<=10&&G.y<=10?te.preventDefault():$.contains(te.target)||N(!1),document.removeEventListener("pointermove",ee),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",ne,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",ne,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const G=()=>N(!1);return window.addEventListener("blur",G),window.addEventListener("resize",G),()=>{window.removeEventListener("blur",G),window.removeEventListener("resize",G)}},[N]);const[V,W]=Sa(G=>{const ee=P().filter(ce=>!ce.disabled),ne=ee.find(ce=>ce.ref.current===document.activeElement),te=_a(ee,G,ne);te&&setTimeout(()=>te.ref.current.focus())}),X=i.useCallback((G,ee,ne)=>{const te=!H.current&&!ne;(w.value!==void 0&&w.value===ee||te)&&(z(G),te&&(H.current=!0))},[w.value]),oe=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((G,ee,ne)=>{const te=!H.current&&!ne;(w.value!==void 0&&w.value===ee||te)&&L(G)},[w.value]),ge=r==="popper"?ga:ku,de=ge===ga?{side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:v,sticky:p,hideWhenDetached:h,avoidCollisions:x}:{};return i.createElement(va,{scope:n,content:$,viewport:E,onViewportChange:M,itemRefCallback:X,selectedItem:_,onItemLeave:oe,itemTextRefCallback:be,focusSelectedItem:O,selectedItemText:R,position:r,isPositioned:U,searchRef:V},i.createElement(br,{as:ct,allowPinchZoom:!0},i.createElement(Jo,{asChild:!0,trapped:w.open,onMountAutoFocus:G=>{G.preventDefault()},onUnmountAutoFocus:Y(o,G=>{var ee;(ee=w.trigger)===null||ee===void 0||ee.focus({preventScroll:!0}),G.preventDefault()})},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:G=>G.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,j({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:G=>G.preventDefault()},g,de,{onPlaced:()=>F(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,G=>{const ee=G.ctrlKey||G.altKey||G.metaKey;if(G.key==="Tab"&&G.preventDefault(),!ee&&G.key.length===1&&W(G.key),["ArrowUp","ArrowDown","Home","End"].includes(G.key)){let te=P().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);if(["ArrowUp","End"].includes(G.key)&&(te=te.slice().reverse()),["ArrowUp","ArrowDown"].includes(G.key)){const ce=G.target,ie=te.indexOf(ce);te=te.slice(ie+1)}setTimeout(()=>I(te)),G.preventDefault()}})}))))))}),ku=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=dt(It,n),s=ut(It,n),[c,l]=i.useState(null),[d,f]=i.useState(null),u=ve(t,T=>f(T)),m=_n(n),v=i.useRef(!1),p=i.useRef(!0),{viewport:h,selectedItem:x,selectedItemText:g,focusSelectedItem:w}=s,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&h&&x&&g){const T=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),z=a.valueNode.getBoundingClientRect(),R=g.getBoundingClientRect();if(a.dir!=="rtl"){const ce=R.left-_.left,ie=z.left-ce,$e=T.left-ie,Ce=T.width+$e,A=Math.max(Ce,_.width),K=window.innerWidth-He,Z=Yo(ie,[He,K-A]);c.style.minWidth=Ce+"px",c.style.left=Z+"px"}else{const ce=_.right-R.right,ie=window.innerWidth-z.right-ce,$e=window.innerWidth-T.right-ie,Ce=T.width+$e,A=Math.max(Ce,_.width),K=window.innerWidth-He,Z=Yo(ie,[He,K-A]);c.style.minWidth=Ce+"px",c.style.right=Z+"px"}const L=m(),P=window.innerHeight-He*2,U=h.scrollHeight,F=window.getComputedStyle(d),H=parseInt(F.borderTopWidth,10),I=parseInt(F.paddingTop,10),O=parseInt(F.borderBottomWidth,10),N=parseInt(F.paddingBottom,10),S=H+I+U+N+O,V=Math.min(x.offsetHeight*5,S),W=window.getComputedStyle(h),X=parseInt(W.paddingTop,10),oe=parseInt(W.paddingBottom,10),be=T.top+T.height/2-He,ge=P-be,de=x.offsetHeight/2,G=x.offsetTop+de,ee=H+I+G,ne=S-ee;if(ee<=be){const ce=x===L[L.length-1].ref.current;c.style.bottom="0px";const ie=d.clientHeight-h.offsetTop-h.offsetHeight,$e=Math.max(ge,de+(ce?oe:0)+ie+O),Ce=ee+$e;c.style.height=Ce+"px"}else{const ce=x===L[0].ref.current;c.style.top="0px";const $e=Math.max(be,H+h.offsetTop+(ce?X:0)+de)+ne;c.style.height=$e+"px",h.scrollTop=ee-be+h.offsetTop}c.style.margin=`${He}px 0`,c.style.minHeight=V+"px",c.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,c,d,h,x,g,a.dir,r]);_e(()=>$(),[$]);const[C,E]=i.useState();_e(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const M=i.useCallback(T=>{T&&p.current===!0&&($(),w?.(),p.current=!1)},[$,w]);return i.createElement(Tu,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:v,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(pe.div,j({},o,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),ga=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=He,...a}=e,s=wr(n);return i.createElement(rr,j({},s,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[Tu,xr]=Ot(It,{}),ba="SelectViewport",Pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut(ba,n),a=xr(ba,n),s=ve(t,o.onViewportChange),c=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(Sn.Slot,{scope:n},i.createElement(pe.div,j({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Y(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const v=window.innerHeight-He*2,p=parseFloat(f.style.minHeight),h=parseFloat(f.style.height),x=Math.max(p,h);if(x<v){const g=x+m,w=Math.min(v,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})}))))}),Nu="SelectGroup",[th,Ou]=Ot(Nu),Iu="SelectLabel",Mu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ou(Iu,n);return i.createElement(pe.div,j({id:o.id},r,{ref:t}))}),yr="SelectItem",[Au,wa]=Ot(yr),Du=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=dt(yr,n),l=ut(yr,n),d=c.value===r,[f,u]=i.useState(a??""),[m,v]=i.useState(!1),p=ve(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,r,o)}),h=wt(),x=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Au,{scope:n,value:r,disabled:o,textId:h,isSelected:d,onItemTextChange:i.useCallback(g=>{u(w=>{var $;return w||(($=g?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(Sn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(pe.div,j({role:"option","aria-labelledby":h,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},s,{ref:p,onFocus:Y(s.onFocus,()=>v(!0)),onBlur:Y(s.onBlur,()=>v(!1)),onPointerUp:Y(s.onPointerUp,x),onPointerMove:Y(s.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(s.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(s.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(pu.includes(g.key)&&x(),g.key===" "&&g.preventDefault())})}))))}),kn="SelectItemText",ju=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=dt(kn,n),c=ut(kn,n),l=wa(kn,n),d=gu(kn,n),[f,u]=i.useState(null),m=ve(t,g=>u(g),l.onItemTextChange,g=>{var w;return(w=c.itemTextRefCallback)===null||w===void 0?void 0:w.call(c,g,l.value,l.disabled)}),v=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:h,onNativeOptionRemove:x}=d;return _e(()=>(h(p),()=>x(p)),[h,x,p]),i.createElement(i.Fragment,null,i.createElement(pe.span,j({id:l.textId},a,{ref:m})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gt.createPortal(a.children,s.valueNode):null)}),Lu="SelectItemIndicator",Fu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return wa(Lu,n).isSelected?i.createElement(pe.span,j({"aria-hidden":!0},r,{ref:t})):null}),xa="SelectScrollUpButton",Vu=i.forwardRef((e,t)=>{const n=ut(xa,e.__scopeSelect),r=xr(xa,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement($a,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}})):null}),ya="SelectScrollDownButton",Bu=i.forwardRef((e,t)=>{const n=ut(ya,e.__scopeSelect),r=xr(ya,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement($a,j({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}})):null}),$a=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=ut("SelectScrollButton",n),s=i.useRef(null),c=_n(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),_e(()=>{var d;const f=c().find(u=>u.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[c]),i.createElement(pe.div,j({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var d;(d=a.onItemLeave)===null||d===void 0||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),zu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(pe.div,j({"aria-hidden":!0},r,{ref:t}))});function Ca(e){return e===""||e===void 0}const Ea=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),s=Sd(n);return i.useEffect(()=>{const c=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const u=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(u)}},[s,n]),i.createElement(Ho,{asChild:!0},i.createElement("select",j({},r,{ref:a,defaultValue:n})))});Ea.displayName="BubbleSelect";function Sa(e){const t=Me(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function _a(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Wu(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ru=bu,ka=xu,Hu=$u,Uu=Cu,Ku=Eu,Ta=Su,Gu=Pu,Pa=Mu,Na=Du,Yu=ju,Xu=Fu,Oa=Vu,Ia=Bu,Ma=zu,Aa=Ru,Da=Hu,$r=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(ka,{ref:r,className:Q("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-px pl-3 text-sm shadow-sm ring-offset-background [&>span]:line-clamp-1 disabled:cursor-not-allowed placeholder:text-muted-foreground disabled:opacity-50 focus:outline-none focus:ring-1 focus:ring-ring",e),...n,children:[t,y.jsx(Uu,{asChild:!0,children:y.jsx(zn,{className:"h-4 w-4 opacity-50"})})]}));$r.displayName=ka.displayName;const ja=D.forwardRef(({className:e,...t},n)=>y.jsx(Oa,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Qs,{})}));ja.displayName=Oa.displayName;const La=D.forwardRef(({className:e,...t},n)=>y.jsx(Ia,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(Xs,{})}));La.displayName=Ia.displayName;const Cr=D.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>y.jsx(Ku,{children:y.jsxs(Ta,{ref:o,className:Q("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-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:n,...r,children:[y.jsx(ja,{}),y.jsx(Gu,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(La,{})]})}));Cr.displayName=Ta.displayName;const qu=D.forwardRef(({className:e,...t},n)=>y.jsx(Pa,{ref:n,className:Q("px-2 py-1.5 font-semibold text-sm",e),...t}));qu.displayName=Pa.displayName;const Tn=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs(Na,{ref:r,className:Q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Xu,{children:y.jsx(uo,{className:"h-4 w-4"})})}),y.jsx(Yu,{children:t})]}));Tn.displayName=Na.displayName;const Zu=D.forwardRef(({className:e,...t},n)=>y.jsx(Ma,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));Zu.displayName=Ma.displayName;function Ju(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:s,coordinates:c}=e,[l,d]=so(!0),f=i.useCallback(v=>{v.preventDefault(),o?.()},[o]),u=i.useCallback(()=>{l||(a?.("view"),d(!1))},[a,d,l]),m=i.useCallback(v=>{r?.({data:v}),u()},[r,u]);return y.jsxs(Aa,{value:n,open:l,onOpenChange:d,onValueChange:m,children:[y.jsx($r,{onBlur:u,onPaste:f,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${s.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Da,{placeholder:"Selecionar"})}),y.jsxs(Cr,{onBlur:u,children:[y.jsx(Tn,{className:"text-xs",value:"true","data-cypress":`table-cell-boolean-${s.id}-${c.row}-true`,children:"Sim"}),y.jsx(Tn,{className:"text-xs",value:"false","data-cypress":`table-cell-boolean-${s.id}-${c.row}-false`,children:"Não"})]})]})}function Qu(e){const{value:t,column:n,coordinates:r,mode:o}=e,s=t===""?"Selecionar":t==="true"?"Sim":"Não";return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:s}),y.jsx(zn,{className:"h-4 w-4 opacity-50"})]})}function ef(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:s,coordinates:c}=e,l=i.useCallback(d=>{d.preventDefault(),a?.()},[a]);return y.jsx("input",{type:"date",onBlur:r,onPaste:l,value:n,onChange:d=>o?.({data:d.target.value}),className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-date-${s.id}-${c.row}`,"aria-readonly":t==="readonly"})}function tf(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return y.jsx("div",{className:"flex h-full w-full items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:y.jsx("p",{className:"line-clamp-1 pl-1 text-xs",children:a})})}function nf(e){const[t,n]=i.useState(!1);return i.useEffect(()=>{const r=e.current;let o=!1;r&&(r.contains(document.activeElement)&&document.activeElement instanceof HTMLInputElement?o=!0:o=!1),n(o)},[e.current]),t}function Er(e){const t=nf(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function Fa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Gt;(function(e){e.event="event",e.props="prop"})(Gt||(Gt={}));function at(){}function rf(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(a,s){return a===t[s]})||(t=r,n=e.apply(void 0,r)),n}}function Yt(e){return!!(e||"").match(/\d/)}function Mt(e){return e==null}function of(e){return typeof e=="number"&&isNaN(e)}function Va(e){return Mt(e)||of(e)||typeof e=="number"&&!isFinite(e)}function Ba(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function af(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function sf(e,t,n){var r=af(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function cf(e){var t=i.useRef(e);t.current=e;var n=i.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function Sr(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),a=o[0],s=o[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function lf(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function za(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Wa(e,t){return Array(t+1).join(e)}function Ra(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(a=Number(a),!a)return n+o;o=o.replace(".","");var s=1+a,c=o.length;return s<0?o="0."+Wa("0",Math.abs(s))+o:s>=c?o=o+Wa("0",s-c):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function Ha(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=Sr(e),a=o.beforeDecimal,s=o.afterDecimal,c=o.hasNegation,l=parseFloat("0."+(s||"0")),d=s.length<=t?"0."+s:l.toFixed(t),f=d.split("."),u=a;a&&Number(f[0])&&(u=a.split("").reverse().reduce(function(h,x,g){return h.length>g?(Number(h[0])+Number(x)).toString()+h.substring(1,h.length):x+h},f[0]));var m=za(f[1]||"",t,n),v=c?"-":"",p=r?".":"";return""+v+u+p+m}function ft(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Ua=rf(function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}});function df(e,t,n){return Math.min(Math.max(e,t),n)}function _r(e){return Math.max(e.selectionStart,e.selectionEnd)}function uf(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ff(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function pf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function mf(e,t,n,r,o,a,s){s===void 0&&(s=pf);var c=o.findIndex(function(C){return C}),l=e.slice(0,c);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var d=n.length,f=e.length,u={},m=new Array(d),v=0;v<d;v++){m[v]=-1;for(var p=0,h=f;p<h;p++){var x=s({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:v,formattedValueIndex:p});if(x&&u[p]!==!0){m[v]=p,u[p]=!0;break}}}for(var g=r;g<d&&(m[g]===-1||!a(n[g]));)g++;var w=g===d||m[g]===-1?f:m[g];for(g=r-1;g>0&&m[g]===-1;)g--;var $=g===-1||m[g]===-1?0:m[g]+1;return $>w?w:r-$<w-r?$:w}function Ka(e,t,n,r){var o=e.length;if(t=df(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function hf(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Yt(e[n])||Yt(e[n-1]));return t}function Ga(e,t,n,r,o,a){a===void 0&&(a=at);var s=cf(function(p,h){var x,g;return Va(p)?(g="",x=""):typeof p=="number"||h?(g=typeof p=="number"?Ra(p):p,x=r(g)):(g=o(p,void 0),x=r(g)),{formattedValue:x,numAsString:g}}),c=i.useState(function(){return s(Mt(e)?t:e,n)}),l=c[0],d=c[1],f=function(p,h){p.formattedValue!==l.formattedValue&&d({formattedValue:p.formattedValue,numAsString:p.value}),a(p,h)},u=e,m=n;Mt(e)&&(u=l.numAsString,m=!0);var v=s(u,m);return i.useMemo(function(){d(v)},[v.formattedValue]),[l,f]}function vf(e){return e.replace(/[^0-9]/g,"")}function gf(e){return e}function bf(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,s=e.format;s===void 0&&(s=gf);var c=e.removeFormatting;c===void 0&&(c=vf);var l=e.defaultValue,d=e.valueIsNumericString,f=e.onValueChange,u=e.isAllowed,m=e.onChange;m===void 0&&(m=at);var v=e.onKeyDown;v===void 0&&(v=at);var p=e.onMouseUp;p===void 0&&(p=at);var h=e.onFocus;h===void 0&&(h=at);var x=e.onBlur;x===void 0&&(x=at);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=hf);var $=e.isValidInputCharacter;$===void 0&&($=Yt);var C=e.isCharacterSame,E=Fa(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),M=Ga(g,l,!!d,s,c,f),T=M[0],_=T.formattedValue,z=T.numAsString,R=M[1],L=i.useRef({formattedValue:_,numAsString:z}),P=function(A,K){L.current={formattedValue:A.formattedValue,numAsString:A.value},R(A,K)},U=i.useState(!1),F=U[0],H=U[1],I=i.useRef(null),O=i.useRef({setCaretTimeout:null,focusTimeout:null});i.useEffect(function(){return H(!0),function(){clearTimeout(O.current.setCaretTimeout),clearTimeout(O.current.focusTimeout)}},[]);var N=s,S=function(A,K){var Z=parseFloat(K);return{formattedValue:A,value:K,floatValue:isNaN(Z)?void 0:Z}},V=function(A,K,Z){A.selectionStart===0&&A.selectionEnd===A.value.length||(ft(A,K),O.current.setCaretTimeout=setTimeout(function(){A.value===Z&&A.selectionStart!==K&&ft(A,K)},0))},W=function(A,K,Z){return Ka(A,K,w(A),Z)},X=function(A,K,Z){var me=w(K),xe=mf(K,_,A,Z,me,$,C);return xe=Ka(K,xe,me),xe},oe=function(A){var K=A.formattedValue;K===void 0&&(K="");var Z=A.input,me=A.source,xe=A.event,le=A.numAsString,se;if(Z){var Ee=A.inputValue||Z.value,ht=_r(Z);Z.value=K,se=X(Ee,K,ht),se!==void 0&&V(Z,se,K)}K!==_&&P(S(K,le),{event:xe,source:me})};i.useEffect(function(){var A=L.current,K=A.formattedValue,Z=A.numAsString;_!==K&&(_!==z||K!==Z)&&P(S(_,z),{event:void 0,source:Gt.props})},[_,z]);var be=I.current?_r(I.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var A=I.current;if(_!==L.current.formattedValue&&A){var K=X(L.current.formattedValue,_,be);A.value=_,V(A,K,_)}},[_]);var de=function(A,K,Z){var me=Ua(_,A),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=c(A,xe),se=N(le);if(le=c(se,void 0),u&&!u(S(se,le))){var Ee=K.target,ht=_r(Ee),Lr=X(A,_,ht);return Ee.value=_,V(Ee,Lr,_),!1}return oe({formattedValue:se,numAsString:le,inputValue:A,event:K,source:Z,input:K.target}),!0},G=function(A){var K=A.target,Z=K.value,me=de(Z,A,Gt.event);me&&m(A)},ee=function(A){var K=A.target,Z=A.key,me=K.selectionStart,xe=K.selectionEnd,le=K.value;le===void 0&&(le="");var se;if(Z==="ArrowLeft"||Z==="Backspace"?se=Math.max(me-1,0):Z==="ArrowRight"?se=Math.min(me+1,le.length):Z==="Delete"&&(se=me),se===void 0||me!==xe){v(A);return}var Ee=se;if(Z==="ArrowLeft"||Z==="ArrowRight"){var ht=Z==="ArrowLeft"?"left":"right";Ee=W(le,se,ht),Ee!==se&&A.preventDefault()}else Z==="Delete"&&!$(le[se])?Ee=W(le,se,"right"):Z==="Backspace"&&!$(le[se])&&(Ee=W(le,se,"left"));Ee!==se&&V(K,Ee,le),A.isUnitTestRun&&V(K,Ee,le),v(A)},ne=function(A){var K=A.target,Z=function(){var me=K.selectionStart,xe=K.selectionEnd,le=K.value;if(le===void 0&&(le=""),me===xe){var se=W(le,me);se!==me&&V(K,se,le)}};Z(),requestAnimationFrame(function(){Z()}),p(A)},te=function(A){A.persist&&A.persist();var K=A.target,Z=A.currentTarget;I.current=K,O.current.focusTimeout=setTimeout(function(){var me=K.selectionStart,xe=K.selectionEnd,le=K.value;le===void 0&&(le="");var se=W(le,me);se!==me&&!(me===0&&xe===le.length)&&V(K,se,le),h(Object.assign(Object.assign({},A),{currentTarget:Z}))},0)},ce=function(A){I.current=null,clearTimeout(O.current.focusTimeout),clearTimeout(O.current.setCaretTimeout),x(A)},ie=F&&uf()?"numeric":void 0,$e=Object.assign({inputMode:ie},E,{type:t,value:_,onChange:G,onKeyDown:ee,onMouseUp:ne,onFocus:te,onBlur:ce});if(n==="text")return o?i.createElement(i.Fragment,null,o(_,E)||null):i.createElement("span",Object.assign({},E,{ref:a}),_);if(r){var Ce=r;return i.createElement(Ce,Object.assign({},$e,{ref:a}))}return i.createElement("input",Object.assign({},$e,{ref:a}))}function Ya(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var a=t.suffix;a===void 0&&(a="");var s=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var l=Pn(t),d=l.thousandSeparator,f=l.decimalSeparator,u=n!==0&&e.indexOf(".")!==-1||n&&r,m=Sr(e,s),v=m.beforeDecimal,p=m.afterDecimal,h=m.addNegation;return n!==void 0&&(p=za(p,n,!!r)),d&&(v=sf(v,d,c)),o&&(v=o+v),a&&(p=p+a),h&&(v="-"+v),e=v+(u&&f||"")+p,e}function Pn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function wf(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}function xf(e,t){return new RegExp("(^-)|[0-9]|"+Ba(e),"g")}function yf(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function $f(e,t,n){var r;t===void 0&&(t=ff(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var c=n.decimalScale,l=t.from,d=t.to,f=d.start,u=d.end,m=Pn(n),v=m.allowedDecimalSeparators,p=m.decimalSeparator,h=e[u]===p;if(Yt(e)&&(e===a||e===s)&&t.lastValue==="")return e;if(u-f===1&&v.indexOf(e[f])!==-1){var x=c===0?"":p;e=e.substring(0,f)+x+e.substring(f+1,e.length)}var g=function(O,N,S){var V=!1,W=!1;a.startsWith("-")?V=!1:O.startsWith("--")?(V=!1,W=!0):s.startsWith("-")&&O.length===s.length?V=!1:O[0]==="-"&&(V=!0);var X=V?1:0;return W&&(X=2),X&&(O=O.substring(X),N-=X,S-=X),{value:O,start:N,end:S,hasNegation:V}},w=g(e,f,u),$=w.hasNegation;r=w,e=r.value,f=r.start,u=r.end;var C=g(t.lastValue,l.start,l.end),E=C.start,M=C.end,T=C.value,_=e.substring(f,u);e.length&&T.length&&(E>T.length-s.length||M<a.length)&&!(_&&s.startsWith(_))&&(e=T);var z=0;e.startsWith(a)?z+=a.length:f<a.length&&(z=f),e=e.substring(z),u-=z;var R=e.length,L=e.length-s.length;e.endsWith(s)?R=L:(u>L||u>e.length-s.length)&&(R=u),e=e.substring(0,R),e=wf($?"-"+e:e,o),e=(e.match(xf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Ba(p),"g"),function(O,N){return N===P?".":""});var U=Sr(e,o),F=U.beforeDecimal,H=U.afterDecimal,I=U.addNegation;return d.end-d.start<l.end-l.start&&F===""&&h&&!parseFloat(H)&&(e=I?"-":""),e}function Cf(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";o.fill(!1,0,n.length+(a?1:0));var s=e.length;return o.fill(!1,s-r.length+1,s+1),o}function Ef(e){var t=Pn(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
155
+ `)},lu=0,Nt=[];function du(e){var t=j.useRef([]),n=j.useRef([0,0]),r=j.useRef(),o=j.useState(lu++)[0],a=j.useState(function(){return ua()})[0],s=j.useRef(e);j.useEffect(function(){s.current=e},[e]),j.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Nd([e.lockRef.current],(e.shards||[]).map(ba),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=j.useCallback(function(v,y){if("touches"in v&&v.touches.length===2)return!s.current.allowPinchZoom;var g=Cn(v),w=n.current,$="deltaX"in v?v.deltaX:w[0]-g[0],C="deltaY"in v?v.deltaY:w[1]-g[1],E,M=v.target,T=Math.abs($)>Math.abs(C)?"h":"v";if("touches"in v&&T==="h"&&M.type==="range")return!1;var _=ma(T,M);if(!_)return!0;if(_?E=T:(E=T==="v"?"h":"v",_=ma(T,M)),!_)return!1;if(!r.current&&"changedTouches"in v&&($||C)&&(r.current=E),!E)return!0;var B=r.current||E;return iu(B,y,v,B==="h"?$:C,!0)},[]),l=j.useCallback(function(v){var y=v;if(!(!Nt.length||Nt[Nt.length-1]!==a)){var g="deltaY"in y?ga(y):Cn(y),w=t.current.filter(function(E){return E.name===y.type&&E.target===y.target&&su(E.delta,g)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var $=(s.current.shards||[]).map(ba).filter(Boolean).filter(function(E){return E.contains(y.target)}),C=$.length>0?c(y,$[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),d=j.useCallback(function(v,y,g,w){var $={name:v,delta:y,target:g,should:w};t.current.push($),setTimeout(function(){t.current=t.current.filter(function(C){return C!==$})},1)},[]),f=j.useCallback(function(v){n.current=Cn(v),r.current=void 0},[]),u=j.useCallback(function(v){d(v.type,ga(v),v.target,c(v,e.lockRef.current))},[]),m=j.useCallback(function(v){d(v.type,Cn(v),v.target,c(v,e.lockRef.current))},[]);j.useEffect(function(){return Nt.push(a),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:m}),document.addEventListener("wheel",l,Pt),document.addEventListener("touchmove",l,Pt),document.addEventListener("touchstart",f,Pt),function(){Nt=Nt.filter(function(v){return v!==a}),document.removeEventListener("wheel",l,Pt),document.removeEventListener("touchmove",l,Pt),document.removeEventListener("touchstart",f,Pt)}},[]);var h=e.removeScrollBar,p=e.inert;return j.createElement(j.Fragment,null,p?j.createElement(a,{styles:cu(o)}):null,h?j.createElement(Qd,{gapMode:"margin"}):null)}const uu=Bd(da,du);var wr=j.forwardRef(function(e,t){return j.createElement(yn,ot({},e,{ref:t,sideCar:uu}))});wr.classNames=yn.classNames;const fu=[" ","Enter","ArrowUp","ArrowDown"],pu=[" ","Enter"],En="Select",[Sn,_n,mu]=lr(En),[Ot,th]=st(En,[mu,St]),xr=St(),[hu,dt]=Ot(En),[vu,gu]=Ot(En),bu=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:a,value:s,defaultValue:c,onValueChange:l,dir:d,name:f,autoComplete:u,disabled:m,required:h}=e,p=xr(t),[v,y]=i.useState(null),[g,w]=i.useState(null),[$,C]=i.useState(!1),E=dr(d),[M=!1,T]=Ht({prop:r,defaultProp:o,onChange:a}),[_,B]=Ht({prop:s,defaultProp:c,onChange:l}),K=i.useRef(null),A=v?!!v.closest("form"):!0,[P,G]=i.useState(new Set),z=Array.from(P).map(R=>R.props.value).join(";");return i.createElement(nr,p,i.createElement(hu,{required:h,scope:t,trigger:v,onTriggerChange:y,valueNode:g,onValueNodeChange:w,valueNodeHasChildren:$,onValueNodeHasChildrenChange:C,contentId:wt(),value:_,onValueChange:B,open:M,onOpenChange:T,dir:E,triggerPointerDownPosRef:K,disabled:m},i.createElement(Sn.Provider,{scope:t},i.createElement(vu,{scope:e.__scopeSelect,onNativeOptionAdd:i.useCallback(R=>{G(I=>new Set(I).add(R))},[]),onNativeOptionRemove:i.useCallback(R=>{G(I=>{const O=new Set(I);return O.delete(R),O})},[])},n)),A?i.createElement(ka,{key:z,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:u,value:_,onChange:R=>B(R.target.value),disabled:m},_===void 0?i.createElement("option",{value:""}):null,Array.from(P)):null))},wu="SelectTrigger",xu=i.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,a=xr(n),s=dt(wu,n),c=s.disabled||r,l=ve(t,s.onTriggerChange),d=_n(n),[f,u,m]=Ta(p=>{const v=d().filter(w=>!w.disabled),y=v.find(w=>w.value===s.value),g=Pa(v,p,y);g!==void 0&&s.onValueChange(g.value)}),h=()=>{c||(s.onOpenChange(!0),m())};return i.createElement(rr,L({asChild:!0},a),i.createElement(fe.button,L({type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":_a(s.value)?"":void 0},o,{ref:l,onClick:Y(o.onClick,p=>{p.currentTarget.focus()}),onPointerDown:Y(o.onPointerDown,p=>{const v=p.target;v.hasPointerCapture(p.pointerId)&&v.releasePointerCapture(p.pointerId),p.button===0&&p.ctrlKey===!1&&(h(),s.triggerPointerDownPosRef.current={x:Math.round(p.pageX),y:Math.round(p.pageY)},p.preventDefault())}),onKeyDown:Y(o.onKeyDown,p=>{const v=f.current!=="";!(p.ctrlKey||p.altKey||p.metaKey)&&p.key.length===1&&u(p.key),!(v&&p.key===" ")&&fu.includes(p.key)&&(h(),p.preventDefault())})})))}),yu="SelectValue",$u=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:a,placeholder:s="",...c}=e,l=dt(yu,n),{onValueNodeHasChildrenChange:d}=l,f=a!==void 0,u=ve(t,l.onValueNodeChange);return _e(()=>{d(f)},[d,f]),i.createElement(fe.span,L({},c,{ref:u,style:{pointerEvents:"none"}}),_a(l.value)?i.createElement(i.Fragment,null,s):a)}),Cu=i.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return i.createElement(fe.span,L({"aria-hidden":!0},o,{ref:t}),r||"▼")}),Eu=e=>i.createElement(Ko,L({asChild:!0},e)),It="SelectContent",Su=i.forwardRef((e,t)=>{const n=dt(It,e.__scopeSelect),[r,o]=i.useState();if(_e(()=>{o(new DocumentFragment)},[]),!n.open){const a=r;return a?gt.createPortal(i.createElement(wa,{scope:e.__scopeSelect},i.createElement(Sn.Slot,{scope:e.__scopeSelect},i.createElement("div",null,e.children))),a):null}return i.createElement(_u,L({},e,{ref:t}))}),He=10,[wa,ut]=Ot(It),_u=i.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:a,onPointerDownOutside:s,side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:y,...g}=e,w=dt(It,n),[$,C]=i.useState(null),[E,M]=i.useState(null),T=ve(t,U=>C(U)),[_,B]=i.useState(null),[K,A]=i.useState(null),P=_n(n),[G,z]=i.useState(!1),R=i.useRef(!1);i.useEffect(()=>{if($)return sa($)},[$]),Jo();const I=i.useCallback(U=>{const[ee,...te]=P().map(oe=>oe.ref.current),[ne]=te.slice(-1),ie=document.activeElement;for(const oe of U)if(oe===ie||(oe?.scrollIntoView({block:"nearest"}),oe===ee&&E&&(E.scrollTop=0),oe===ne&&E&&(E.scrollTop=E.scrollHeight),oe?.focus(),document.activeElement!==ie))return},[P,E]),O=i.useCallback(()=>I([_,$]),[I,_,$]);i.useEffect(()=>{G&&O()},[G,O]);const{onOpenChange:N,triggerPointerDownPosRef:S}=w;i.useEffect(()=>{if($){let U={x:0,y:0};const ee=ne=>{var ie,oe,$e,Ce;U={x:Math.abs(Math.round(ne.pageX)-((ie=(oe=S.current)===null||oe===void 0?void 0:oe.x)!==null&&ie!==void 0?ie:0)),y:Math.abs(Math.round(ne.pageY)-(($e=(Ce=S.current)===null||Ce===void 0?void 0:Ce.y)!==null&&$e!==void 0?$e:0))}},te=ne=>{U.x<=10&&U.y<=10?ne.preventDefault():$.contains(ne.target)||N(!1),document.removeEventListener("pointermove",ee),S.current=null};return S.current!==null&&(document.addEventListener("pointermove",ee),document.addEventListener("pointerup",te,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ee),document.removeEventListener("pointerup",te,{capture:!0})}}},[$,N,S]),i.useEffect(()=>{const U=()=>N(!1);return window.addEventListener("blur",U),window.addEventListener("resize",U),()=>{window.removeEventListener("blur",U),window.removeEventListener("resize",U)}},[N]);const[F,W]=Ta(U=>{const ee=P().filter(ie=>!ie.disabled),te=ee.find(ie=>ie.ref.current===document.activeElement),ne=Pa(ee,U,te);ne&&setTimeout(()=>ne.ref.current.focus())}),X=i.useCallback((U,ee,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===ee||ne)&&(B(U),ne&&(R.current=!0))},[w.value]),ae=i.useCallback(()=>$?.focus(),[$]),be=i.useCallback((U,ee,te)=>{const ne=!R.current&&!te;(w.value!==void 0&&w.value===ee||ne)&&A(U)},[w.value]),ge=r==="popper"?xa:ku,pe=ge===xa?{side:c,sideOffset:l,align:d,alignOffset:f,arrowPadding:u,collisionBoundary:m,collisionPadding:h,sticky:p,hideWhenDetached:v,avoidCollisions:y}:{};return i.createElement(wa,{scope:n,content:$,viewport:E,onViewportChange:M,itemRefCallback:X,selectedItem:_,onItemLeave:ae,itemTextRefCallback:be,focusSelectedItem:O,selectedItemText:K,position:r,isPositioned:G,searchRef:F},i.createElement(wr,{as:ct,allowPinchZoom:!0},i.createElement(ta,{asChild:!0,trapped:w.open,onMountAutoFocus:U=>{U.preventDefault()},onUnmountAutoFocus:Y(o,U=>{var ee;(ee=w.trigger)===null||ee===void 0||ee.focus({preventScroll:!0}),U.preventDefault()})},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:U=>U.preventDefault(),onDismiss:()=>w.onOpenChange(!1)},i.createElement(ge,L({role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:U=>U.preventDefault()},g,pe,{onPlaced:()=>z(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...g.style},onKeyDown:Y(g.onKeyDown,U=>{const ee=U.ctrlKey||U.altKey||U.metaKey;if(U.key==="Tab"&&U.preventDefault(),!ee&&U.key.length===1&&W(U.key),["ArrowUp","ArrowDown","Home","End"].includes(U.key)){let ne=P().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(U.key)&&(ne=ne.slice().reverse()),["ArrowUp","ArrowDown"].includes(U.key)){const ie=U.target,oe=ne.indexOf(ie);ne=ne.slice(oe+1)}setTimeout(()=>I(ne)),U.preventDefault()}})}))))))}),ku=i.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,a=dt(It,n),s=ut(It,n),[c,l]=i.useState(null),[d,f]=i.useState(null),u=ve(t,T=>f(T)),m=_n(n),h=i.useRef(!1),p=i.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:g,focusSelectedItem:w}=s,$=i.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&d&&v&&y&&g){const T=a.trigger.getBoundingClientRect(),_=d.getBoundingClientRect(),B=a.valueNode.getBoundingClientRect(),K=g.getBoundingClientRect();if(a.dir!=="rtl"){const ie=K.left-_.left,oe=B.left-ie,$e=T.left-oe,Ce=T.width+$e,D=Math.max(Ce,_.width),H=window.innerWidth-He,Z=Zo(oe,[He,H-D]);c.style.minWidth=Ce+"px",c.style.left=Z+"px"}else{const ie=_.right-K.right,oe=window.innerWidth-B.right-ie,$e=window.innerWidth-T.right-oe,Ce=T.width+$e,D=Math.max(Ce,_.width),H=window.innerWidth-He,Z=Zo(oe,[He,H-D]);c.style.minWidth=Ce+"px",c.style.right=Z+"px"}const A=m(),P=window.innerHeight-He*2,G=v.scrollHeight,z=window.getComputedStyle(d),R=parseInt(z.borderTopWidth,10),I=parseInt(z.paddingTop,10),O=parseInt(z.borderBottomWidth,10),N=parseInt(z.paddingBottom,10),S=R+I+G+N+O,F=Math.min(y.offsetHeight*5,S),W=window.getComputedStyle(v),X=parseInt(W.paddingTop,10),ae=parseInt(W.paddingBottom,10),be=T.top+T.height/2-He,ge=P-be,pe=y.offsetHeight/2,U=y.offsetTop+pe,ee=R+I+U,te=S-ee;if(ee<=be){const ie=y===A[A.length-1].ref.current;c.style.bottom="0px";const oe=d.clientHeight-v.offsetTop-v.offsetHeight,$e=Math.max(ge,pe+(ie?ae:0)+oe+O),Ce=ee+$e;c.style.height=Ce+"px"}else{const ie=y===A[0].ref.current;c.style.top="0px";const $e=Math.max(be,R+v.offsetTop+(ie?X:0)+pe)+te;c.style.height=$e+"px",v.scrollTop=ee-be+v.offsetTop}c.style.margin=`${He}px 0`,c.style.minHeight=F+"px",c.style.maxHeight=P+"px",r?.(),requestAnimationFrame(()=>h.current=!0)}},[m,a.trigger,a.valueNode,c,d,v,y,g,a.dir,r]);_e(()=>$(),[$]);const[C,E]=i.useState();_e(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);const M=i.useCallback(T=>{T&&p.current===!0&&($(),w?.(),p.current=!1)},[$,w]);return i.createElement(Tu,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:h,onScrollButtonChange:M},i.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:C}},i.createElement(fe.div,L({},o,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}}))))}),xa=i.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=He,...a}=e,s=xr(n);return i.createElement(or,L({},s,a,{ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[Tu,yr]=Ot(It,{}),ya="SelectViewport",Pu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ut(ya,n),a=yr(ya,n),s=ve(t,o.onViewportChange),c=i.useRef(0);return i.createElement(i.Fragment,null,i.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),i.createElement(Sn.Slot,{scope:n},i.createElement(fe.div,L({"data-radix-select-viewport":"",role:"presentation"},r,{ref:s,style:{position:"relative",flex:1,overflow:"auto",...r.style},onScroll:Y(r.onScroll,l=>{const d=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=a;if(u!=null&&u.current&&f){const m=Math.abs(c.current-d.scrollTop);if(m>0){const h=window.innerHeight-He*2,p=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),y=Math.max(p,v);if(y<h){const g=y+m,w=Math.min(h,g),$=g-w;f.style.height=w+"px",f.style.bottom==="0px"&&(d.scrollTop=$>0?$:0,f.style.justifyContent="flex-end")}}}c.current=d.scrollTop})}))))}),Nu="SelectGroup",[nh,Ou]=Ot(Nu),Iu="SelectLabel",Mu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Ou(Iu,n);return i.createElement(fe.div,L({id:o.id},r,{ref:t}))}),$r="SelectItem",[Au,$a]=Ot($r),Du=i.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:a,...s}=e,c=dt($r,n),l=ut($r,n),d=c.value===r,[f,u]=i.useState(a??""),[m,h]=i.useState(!1),p=ve(t,g=>{var w;return(w=l.itemRefCallback)===null||w===void 0?void 0:w.call(l,g,r,o)}),v=wt(),y=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return i.createElement(Au,{scope:n,value:r,disabled:o,textId:v,isSelected:d,onItemTextChange:i.useCallback(g=>{u(w=>{var $;return w||(($=g?.textContent)!==null&&$!==void 0?$:"").trim()})},[])},i.createElement(Sn.ItemSlot,{scope:n,value:r,disabled:o,textValue:f},i.createElement(fe.div,L({role:"option","aria-labelledby":v,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},s,{ref:p,onFocus:Y(s.onFocus,()=>h(!0)),onBlur:Y(s.onBlur,()=>h(!1)),onPointerUp:Y(s.onPointerUp,y),onPointerMove:Y(s.onPointerMove,g=>{if(o){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}else g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Y(s.onPointerLeave,g=>{if(g.currentTarget===document.activeElement){var w;(w=l.onItemLeave)===null||w===void 0||w.call(l)}}),onKeyDown:Y(s.onKeyDown,g=>{var w;((w=l.searchRef)===null||w===void 0?void 0:w.current)!==""&&g.key===" "||(pu.includes(g.key)&&y(),g.key===" "&&g.preventDefault())})}))))}),kn="SelectItemText",ju=i.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...a}=e,s=dt(kn,n),c=ut(kn,n),l=$a(kn,n),d=gu(kn,n),[f,u]=i.useState(null),m=ve(t,g=>u(g),l.onItemTextChange,g=>{var w;return(w=c.itemTextRefCallback)===null||w===void 0?void 0:w.call(c,g,l.value,l.disabled)}),h=f?.textContent,p=i.useMemo(()=>i.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},h),[l.disabled,l.value,h]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=d;return _e(()=>(v(p),()=>y(p)),[v,y,p]),i.createElement(i.Fragment,null,i.createElement(fe.span,L({id:l.textId},a,{ref:m})),l.isSelected&&s.valueNode&&!s.valueNodeHasChildren?gt.createPortal(a.children,s.valueNode):null)}),Lu="SelectItemIndicator",Fu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return $a(Lu,n).isSelected?i.createElement(fe.span,L({"aria-hidden":!0},r,{ref:t})):null}),Ca="SelectScrollUpButton",Vu=i.forwardRef((e,t)=>{const n=ut(Ca,e.__scopeSelect),r=yr(Ca,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollTop>0;a(d)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Sa,L({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop-l.offsetHeight)}})):null}),Ea="SelectScrollDownButton",Bu=i.forwardRef((e,t)=>{const n=ut(Ea,e.__scopeSelect),r=yr(Ea,e.__scopeSelect),[o,a]=i.useState(!1),s=ve(t,r.onScrollButtonChange);return _e(()=>{if(n.viewport&&n.isPositioned){let l=function(){const d=c.scrollHeight-c.clientHeight,f=Math.ceil(c.scrollTop)<d;a(f)};const c=n.viewport;return l(),c.addEventListener("scroll",l),()=>c.removeEventListener("scroll",l)}},[n.viewport,n.isPositioned]),o?i.createElement(Sa,L({},e,{ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:l}=n;c&&l&&(c.scrollTop=c.scrollTop+l.offsetHeight)}})):null}),Sa=i.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,a=ut("SelectScrollButton",n),s=i.useRef(null),c=_n(n),l=i.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return i.useEffect(()=>()=>l(),[l]),_e(()=>{var d;const f=c().find(u=>u.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[c]),i.createElement(fe.div,L({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerDown:Y(o.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:Y(o.onPointerMove,()=>{var d;(d=a.onItemLeave)===null||d===void 0||d.call(a),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:Y(o.onPointerLeave,()=>{l()})}))}),zu=i.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return i.createElement(fe.div,L({"aria-hidden":!0},r,{ref:t}))});function _a(e){return e===""||e===void 0}const ka=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=i.useRef(null),a=ve(t,o),s=Sd(n);return i.useEffect(()=>{const c=o.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(s!==n&&f){const u=new Event("change",{bubbles:!0});f.call(c,n),c.dispatchEvent(u)}},[s,n]),i.createElement(Go,{asChild:!0},i.createElement("select",L({},r,{ref:a,defaultValue:n})))});ka.displayName="BubbleSelect";function Ta(e){const t=Me(e),n=i.useRef(""),r=i.useRef(0),o=i.useCallback(s=>{const c=n.current+s;t(c),function l(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>l(""),1e3))}(c)},[t]),a=i.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return i.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function Pa(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Wu(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wu(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const Ru=bu,Na=xu,Hu=$u,Uu=Cu,Ku=Eu,Oa=Su,Gu=Pu,Ia=Mu,Ma=Du,Yu=ju,Xu=Fu,Aa=Vu,Da=Bu,ja=zu,La=Ru,Fa=Hu,Cr=j.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Na,{ref:r,className:Q("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent py-2 pr-px pl-3 text-sm shadow-sm ring-offset-background [&>span]:line-clamp-1 disabled:cursor-not-allowed placeholder:text-muted-foreground disabled:opacity-50 focus:outline-none focus:ring-1 focus:ring-ring",e),...n,children:[t,x.jsx(Uu,{asChild:!0,children:x.jsx(Wn,{className:"h-4 w-4 opacity-50"})})]}));Cr.displayName=Na.displayName;const Va=j.forwardRef(({className:e,...t},n)=>x.jsx(Aa,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(tc,{})}));Va.displayName=Aa.displayName;const Ba=j.forwardRef(({className:e,...t},n)=>x.jsx(Da,{ref:n,className:Q("flex cursor-default items-center justify-center py-1",e),...t,children:x.jsx(Zs,{})}));Ba.displayName=Da.displayName;const Er=j.forwardRef(({className:e,children:t,position:n="popper",...r},o)=>x.jsx(Ku,{children:x.jsxs(Oa,{ref:o,className:Q("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-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:n,...r,children:[x.jsx(Va,{}),x.jsx(Gu,{className:Q("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),x.jsx(Ba,{})]})}));Er.displayName=Oa.displayName;const qu=j.forwardRef(({className:e,...t},n)=>x.jsx(Ia,{ref:n,className:Q("px-2 py-1.5 font-semibold text-sm",e),...t}));qu.displayName=Ia.displayName;const Tn=j.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Ma,{ref:r,className:Q("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(Xu,{children:x.jsx(fo,{className:"h-4 w-4"})})}),x.jsx(Yu,{children:t})]}));Tn.displayName=Ma.displayName;const Zu=j.forwardRef(({className:e,...t},n)=>x.jsx(ja,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));Zu.displayName=ja.displayName;function Ju(e){const{mode:t,value:n,onChange:r,onPaste:o,setMode:a,column:s,coordinates:c}=e,[l,d]=co(!0),f=i.useCallback(h=>{h.preventDefault(),o?.()},[o]),u=i.useCallback(()=>{l||(a?.("view"),d(!1))},[a,d,l]),m=i.useCallback(h=>{r?.({data:h}),u()},[r,u]);return x.jsxs(La,{value:n,open:l,onOpenChange:d,onValueChange:m,children:[x.jsx(Cr,{onBlur:u,onPaste:f,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),autoFocus:!0,"data-cypress":`table-cell-boolean-${s.id}-${c.row}`,"aria-readonly":t==="readonly",children:x.jsx(Fa,{placeholder:"Selecionar"})}),x.jsxs(Er,{onBlur:u,children:[x.jsx(Tn,{className:"text-xs",value:"true","data-cypress":`table-cell-boolean-${s.id}-${c.row}-true`,children:"Sim"}),x.jsx(Tn,{className:"text-xs",value:"false","data-cypress":`table-cell-boolean-${s.id}-${c.row}-false`,children:"Não"})]})]})}function Qu(e){const{value:t,column:n,coordinates:r,mode:o}=e,s=t===""?"Selecionar":t==="true"?"Sim":"Não";return x.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","aria-readonly":o==="readonly","data-cypress":`table-cell-select-${n.id}-${r.row}`,children:[x.jsx("p",{className:"line-clamp-1 text-xs",children:s}),x.jsx(Wn,{className:"h-4 w-4 opacity-50"})]})}function ef(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,column:s,coordinates:c}=e,l=i.useCallback(d=>{d.preventDefault(),a?.()},[a]);return x.jsx("input",{type:"date",onBlur:r,onPaste:l,value:n,onChange:d=>o?.({data:d.target.value}),className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-date-${s.id}-${c.row}`,"aria-readonly":t==="readonly"})}function tf(e){const{value:t,column:n,coordinates:r,mode:o}=e,a=t||"dd/mm/yyyy";return x.jsx("div",{className:"flex h-full w-full items-center","data-cypress":`table-cell-date-${n.id}-${r.row}`,"aria-readonly":o==="readonly",children:x.jsx("p",{className:"line-clamp-1 pl-1 text-xs",children:a})})}function nf(e){const[t,n]=i.useState(!1);return i.useEffect(()=>{const r=e.current;let o=!1;r&&(r.contains(document.activeElement)&&document.activeElement instanceof HTMLInputElement?o=!0:o=!1),n(o)},[e.current]),t}function Sr(e){const t=nf(e);i.useEffect(()=>{t&&e.current?.select()},[t,e.current])}function za(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var Gt;(function(e){e.event="event",e.props="prop"})(Gt||(Gt={}));function at(){}function rf(e){var t,n=void 0;return function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t&&r.length===t.length&&r.every(function(a,s){return a===t[s]})||(t=r,n=e.apply(void 0,r)),n}}function Yt(e){return!!(e||"").match(/\d/)}function Mt(e){return e==null}function of(e){return typeof e=="number"&&isNaN(e)}function Wa(e){return Mt(e)||of(e)||typeof e=="number"&&!isFinite(e)}function Ra(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function af(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function sf(e,t,n){var r=af(n),o=e.search(/[1-9]/);return o=o===-1?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(r,"$1"+t)}function cf(e){var t=i.useRef(e);t.current=e;var n=i.useRef(function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];return t.current.apply(t,r)});return n.current}function _r(e,t){t===void 0&&(t=!0);var n=e[0]==="-",r=n&&t;e=e.replace("-","");var o=e.split("."),a=o[0],s=o[1]||"";return{beforeDecimal:a,afterDecimal:s,hasNegation:n,addNegation:r}}function lf(e){if(!e)return e;var t=e[0]==="-";t&&(e=e.substring(1,e.length));var n=e.split("."),r=n[0].replace(/^0+/,"")||"0",o=n[1]||"";return(t?"-":"")+r+(o?"."+o:"")}function Ha(e,t,n){for(var r="",o=n?"0":"",a=0;a<=t-1;a++)r+=e[a]||o;return r}function Ua(e,t){return Array(t+1).join(e)}function Ka(e){var t=e+"",n=t[0]==="-"?"-":"";n&&(t=t.substring(1));var r=t.split(/[eE]/g),o=r[0],a=r[1];if(a=Number(a),!a)return n+o;o=o.replace(".","");var s=1+a,c=o.length;return s<0?o="0."+Ua("0",Math.abs(s))+o:s>=c?o=o+Ua("0",s-c):o=(o.substring(0,s)||"0")+"."+o.substring(s),n+o}function Ga(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=_r(e),a=o.beforeDecimal,s=o.afterDecimal,c=o.hasNegation,l=parseFloat("0."+(s||"0")),d=s.length<=t?"0."+s:l.toFixed(t),f=d.split("."),u=a;a&&Number(f[0])&&(u=a.split("").reverse().reduce(function(v,y,g){return v.length>g?(Number(v[0])+Number(y)).toString()+v.substring(1,v.length):y+v},f[0]));var m=Ha(f[1]||"",t,n),h=c?"-":"",p=r?".":"";return""+h+u+p+m}function ft(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}var Ya=rf(function(e,t){for(var n=0,r=0,o=e.length,a=t.length;e[n]===t[n]&&n<o;)n++;for(;e[o-1-r]===t[a-1-r]&&a-r>n&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:a-r}}});function df(e,t,n){return Math.min(Math.max(e,t),n)}function kr(e){return Math.max(e.selectionStart,e.selectionEnd)}function uf(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function ff(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function pf(e){var t=e.currentValue,n=e.formattedValue,r=e.currentValueIndex,o=e.formattedValueIndex;return t[r]===n[o]}function mf(e,t,n,r,o,a,s){s===void 0&&(s=pf);var c=o.findIndex(function(C){return C}),l=e.slice(0,c);!t&&!n.startsWith(l)&&(t=l,n=l+n,r=r+l.length);for(var d=n.length,f=e.length,u={},m=new Array(d),h=0;h<d;h++){m[h]=-1;for(var p=0,v=f;p<v;p++){var y=s({currentValue:n,lastValue:t,formattedValue:e,currentValueIndex:h,formattedValueIndex:p});if(y&&u[p]!==!0){m[h]=p,u[p]=!0;break}}}for(var g=r;g<d&&(m[g]===-1||!a(n[g]));)g++;var w=g===d||m[g]===-1?f:m[g];for(g=r-1;g>0&&m[g]===-1;)g--;var $=g===-1||m[g]===-1?0:m[g]+1;return $>w?w:r-$<w-r?$:w}function Xa(e,t,n,r){var o=e.length;if(t=df(t,0,o),r==="left"){for(;t>=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function hf(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;n<r;n++)t[n]=!!(Yt(e[n])||Yt(e[n-1]));return t}function qa(e,t,n,r,o,a){a===void 0&&(a=at);var s=cf(function(p,v){var y,g;return Wa(p)?(g="",y=""):typeof p=="number"||v?(g=typeof p=="number"?Ka(p):p,y=r(g)):(g=o(p,void 0),y=r(g)),{formattedValue:y,numAsString:g}}),c=i.useState(function(){return s(Mt(e)?t:e,n)}),l=c[0],d=c[1],f=function(p,v){p.formattedValue!==l.formattedValue&&d({formattedValue:p.formattedValue,numAsString:p.value}),a(p,v)},u=e,m=n;Mt(e)&&(u=l.numAsString,m=!0);var h=s(u,m);return i.useMemo(function(){d(h)},[h.formattedValue]),[l,f]}function vf(e){return e.replace(/[^0-9]/g,"")}function gf(e){return e}function bf(e){var t=e.type;t===void 0&&(t="text");var n=e.displayType;n===void 0&&(n="input");var r=e.customInput,o=e.renderText,a=e.getInputRef,s=e.format;s===void 0&&(s=gf);var c=e.removeFormatting;c===void 0&&(c=vf);var l=e.defaultValue,d=e.valueIsNumericString,f=e.onValueChange,u=e.isAllowed,m=e.onChange;m===void 0&&(m=at);var h=e.onKeyDown;h===void 0&&(h=at);var p=e.onMouseUp;p===void 0&&(p=at);var v=e.onFocus;v===void 0&&(v=at);var y=e.onBlur;y===void 0&&(y=at);var g=e.value,w=e.getCaretBoundary;w===void 0&&(w=hf);var $=e.isValidInputCharacter;$===void 0&&($=Yt);var C=e.isCharacterSame,E=za(e,["type","displayType","customInput","renderText","getInputRef","format","removeFormatting","defaultValue","valueIsNumericString","onValueChange","isAllowed","onChange","onKeyDown","onMouseUp","onFocus","onBlur","value","getCaretBoundary","isValidInputCharacter","isCharacterSame"]),M=qa(g,l,!!d,s,c,f),T=M[0],_=T.formattedValue,B=T.numAsString,K=M[1],A=i.useRef({formattedValue:_,numAsString:B}),P=function(D,H){A.current={formattedValue:D.formattedValue,numAsString:D.value},K(D,H)},G=i.useState(!1),z=G[0],R=G[1],I=i.useRef(null),O=i.useRef({setCaretTimeout:null,focusTimeout:null});i.useEffect(function(){return R(!0),function(){clearTimeout(O.current.setCaretTimeout),clearTimeout(O.current.focusTimeout)}},[]);var N=s,S=function(D,H){var Z=parseFloat(H);return{formattedValue:D,value:H,floatValue:isNaN(Z)?void 0:Z}},F=function(D,H,Z){D.selectionStart===0&&D.selectionEnd===D.value.length||(ft(D,H),O.current.setCaretTimeout=setTimeout(function(){D.value===Z&&D.selectionStart!==H&&ft(D,H)},0))},W=function(D,H,Z){return Xa(D,H,w(D),Z)},X=function(D,H,Z){var me=w(H),xe=mf(H,_,D,Z,me,$,C);return xe=Xa(H,xe,me),xe},ae=function(D){var H=D.formattedValue;H===void 0&&(H="");var Z=D.input,me=D.source,xe=D.event,le=D.numAsString,ce;if(Z){var Ee=D.inputValue||Z.value,ht=kr(Z);Z.value=H,ce=X(Ee,H,ht),ce!==void 0&&F(Z,ce,H)}H!==_&&P(S(H,le),{event:xe,source:me})};i.useEffect(function(){var D=A.current,H=D.formattedValue,Z=D.numAsString;_!==H&&(_!==B||H!==Z)&&P(S(_,B),{event:void 0,source:Gt.props})},[_,B]);var be=I.current?kr(I.current):void 0,ge=typeof window<"u"?i.useLayoutEffect:i.useEffect;ge(function(){var D=I.current;if(_!==A.current.formattedValue&&D){var H=X(A.current.formattedValue,_,be);D.value=_,F(D,H,_)}},[_]);var pe=function(D,H,Z){var me=Ya(_,D),xe=Object.assign(Object.assign({},me),{lastValue:_}),le=c(D,xe),ce=N(le);if(le=c(ce,void 0),u&&!u(S(ce,le))){var Ee=H.target,ht=kr(Ee),Fr=X(D,_,ht);return Ee.value=_,F(Ee,Fr,_),!1}return ae({formattedValue:ce,numAsString:le,inputValue:D,event:H,source:Z,input:H.target}),!0},U=function(D){var H=D.target,Z=H.value,me=pe(Z,D,Gt.event);me&&m(D)},ee=function(D){var H=D.target,Z=D.key,me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var ce;if(Z==="ArrowLeft"||Z==="Backspace"?ce=Math.max(me-1,0):Z==="ArrowRight"?ce=Math.min(me+1,le.length):Z==="Delete"&&(ce=me),ce===void 0||me!==xe){h(D);return}var Ee=ce;if(Z==="ArrowLeft"||Z==="ArrowRight"){var ht=Z==="ArrowLeft"?"left":"right";Ee=W(le,ce,ht),Ee!==ce&&D.preventDefault()}else Z==="Delete"&&!$(le[ce])?Ee=W(le,ce,"right"):Z==="Backspace"&&!$(le[ce])&&(Ee=W(le,ce,"left"));Ee!==ce&&F(H,Ee,le),D.isUnitTestRun&&F(H,Ee,le),h(D)},te=function(D){var H=D.target,Z=function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;if(le===void 0&&(le=""),me===xe){var ce=W(le,me);ce!==me&&F(H,ce,le)}};Z(),requestAnimationFrame(function(){Z()}),p(D)},ne=function(D){D.persist&&D.persist();var H=D.target,Z=D.currentTarget;I.current=H,O.current.focusTimeout=setTimeout(function(){var me=H.selectionStart,xe=H.selectionEnd,le=H.value;le===void 0&&(le="");var ce=W(le,me);ce!==me&&!(me===0&&xe===le.length)&&F(H,ce,le),v(Object.assign(Object.assign({},D),{currentTarget:Z}))},0)},ie=function(D){I.current=null,clearTimeout(O.current.focusTimeout),clearTimeout(O.current.setCaretTimeout),y(D)},oe=z&&uf()?"numeric":void 0,$e=Object.assign({inputMode:oe},E,{type:t,value:_,onChange:U,onKeyDown:ee,onMouseUp:te,onFocus:ne,onBlur:ie});if(n==="text")return o?i.createElement(i.Fragment,null,o(_,E)||null):i.createElement("span",Object.assign({},E,{ref:a}),_);if(r){var Ce=r;return i.createElement(Ce,Object.assign({},$e,{ref:a}))}return i.createElement("input",Object.assign({},$e,{ref:a}))}function Za(e,t){var n=t.decimalScale,r=t.fixedDecimalScale,o=t.prefix;o===void 0&&(o="");var a=t.suffix;a===void 0&&(a="");var s=t.allowNegative,c=t.thousandsGroupStyle;if(c===void 0&&(c="thousand"),e===""||e==="-")return e;var l=Pn(t),d=l.thousandSeparator,f=l.decimalSeparator,u=n!==0&&e.indexOf(".")!==-1||n&&r,m=_r(e,s),h=m.beforeDecimal,p=m.afterDecimal,v=m.addNegation;return n!==void 0&&(p=Ha(p,n,!!r)),d&&(h=sf(h,d,c)),o&&(h=o+h),a&&(p=p+a),v&&(h="-"+h),e=h+(u&&f||"")+p,e}function Pn(e){var t=e.decimalSeparator;t===void 0&&(t=".");var n=e.thousandSeparator,r=e.allowedDecimalSeparators;return n===!0&&(n=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:n,allowedDecimalSeparators:r}}function wf(e,t){e===void 0&&(e="");var n=new RegExp("(-)"),r=new RegExp("(-)(.)*(-)"),o=n.test(e),a=r.test(e);return e=e.replace(/-/g,""),o&&!a&&t&&(e="-"+e),e}function xf(e,t){return new RegExp("(^-)|[0-9]|"+Ra(e),"g")}function yf(e,t,n){return e===""?!0:!t?.match(/\d/)&&!n?.match(/\d/)&&typeof e=="string"&&!isNaN(Number(e))}function $f(e,t,n){var r;t===void 0&&(t=ff(e));var o=n.allowNegative,a=n.prefix;a===void 0&&(a="");var s=n.suffix;s===void 0&&(s="");var c=n.decimalScale,l=t.from,d=t.to,f=d.start,u=d.end,m=Pn(n),h=m.allowedDecimalSeparators,p=m.decimalSeparator,v=e[u]===p;if(Yt(e)&&(e===a||e===s)&&t.lastValue==="")return e;if(u-f===1&&h.indexOf(e[f])!==-1){var y=c===0?"":p;e=e.substring(0,f)+y+e.substring(f+1,e.length)}var g=function(O,N,S){var F=!1,W=!1;a.startsWith("-")?F=!1:O.startsWith("--")?(F=!1,W=!0):s.startsWith("-")&&O.length===s.length?F=!1:O[0]==="-"&&(F=!0);var X=F?1:0;return W&&(X=2),X&&(O=O.substring(X),N-=X,S-=X),{value:O,start:N,end:S,hasNegation:F}},w=g(e,f,u),$=w.hasNegation;r=w,e=r.value,f=r.start,u=r.end;var C=g(t.lastValue,l.start,l.end),E=C.start,M=C.end,T=C.value,_=e.substring(f,u);e.length&&T.length&&(E>T.length-s.length||M<a.length)&&!(_&&s.startsWith(_))&&(e=T);var B=0;e.startsWith(a)?B+=a.length:f<a.length&&(B=f),e=e.substring(B),u-=B;var K=e.length,A=e.length-s.length;e.endsWith(s)?K=A:(u>A||u>e.length-s.length)&&(K=u),e=e.substring(0,K),e=wf($?"-"+e:e,o),e=(e.match(xf(p))||[]).join("");var P=e.indexOf(p);e=e.replace(new RegExp(Ra(p),"g"),function(O,N){return N===P?".":""});var G=_r(e,o),z=G.beforeDecimal,R=G.afterDecimal,I=G.addNegation;return d.end-d.start<l.end-l.start&&z===""&&v&&!parseFloat(R)&&(e=I?"-":""),e}function Cf(e,t){var n=t.prefix;n===void 0&&(n="");var r=t.suffix;r===void 0&&(r="");var o=Array.from({length:e.length+1}).map(function(){return!0}),a=e[0]==="-";o.fill(!1,0,n.length+(a?1:0));var s=e.length;return o.fill(!1,s-r.length+1,s+1),o}function Ef(e){var t=Pn(e),n=t.thousandSeparator,r=t.decimalSeparator,o=e.prefix;o===void 0&&(o="");var a=e.allowNegative;if(a===void 0&&(a=!0),n===r)throw new Error(`
156
156
  Decimal separator can't be same as thousand separator.
157
157
  thousandSeparator: `+n+` (thousandSeparator = {true} is same as thousandSeparator = ",")
158
158
  decimalSeparator: `+r+` (default value for decimalSeparator is .)
@@ -160,6 +160,6 @@ Linha N° ${N+1} até N° ${S+1}`:`Você irá excluir a linha N° ${N+1}, deseja
160
160
  Prefix can't start with '-' when allowNegative is true.
161
161
  prefix: `+o+`
162
162
  allowNegative: `+a+`
163
- `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Sf(e){e=Ef(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=at);var a=e.onBlur;a===void 0&&(a=at);var s=e.thousandSeparator,c=e.decimalScale,l=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,u=e.value,m=e.valueIsNumericString,v=e.onValueChange,p=Fa(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),h=Pn(e),x=h.decimalSeparator,g=h.allowedDecimalSeparators,w=function(I){return Ya(I,e)},$=function(I,O){return $f(I,O,e)},C=Mt(u)?f:u,E=m??yf(C,d,t);Mt(u)?Mt(f)||(E=E||typeof f=="number"):E=E||typeof u=="number";var M=function(I){return Va(I)?I:(typeof I=="number"&&(I=Ra(I)),E&&typeof c=="number"?Ha(I,c,!!l):I)},T=Ga(M(u),M(f),!!E,w,$,v),_=T[0],z=_.numAsString,R=_.formattedValue,L=T[1],P=function(I){var O=I.target,N=I.key,S=O.selectionStart,V=O.selectionEnd,W=O.value;if(W===void 0&&(W=""),S!==V){o(I);return}N==="Backspace"&&W[0]==="-"&&S===d.length+1&&n&&ft(O,1),c&&l&&(N==="Backspace"&&W[S-1]===x?(ft(O,S-1),I.preventDefault()):N==="Delete"&&W[S]===x&&I.preventDefault()),g?.includes(N)&&W[S]===x&&ft(O,S+1);var X=s===!0?",":s;N==="Backspace"&&W[S-1]===X&&ft(O,S-1),N==="Delete"&&W[S]===X&&ft(O,S+1),o(I)},U=function(I){var O=z;if(O.match(/\d/g)||(O=""),r||(O=lf(O)),l&&c&&(O=Ha(O,c,l)),O!==z){var N=Ya(O,e);L({formattedValue:N,value:O,floatValue:parseFloat(O)},{event:I,source:Gt.event})}a(I)},F=function(I){return I===x?!0:Yt(I)},H=function(I){var O=I.currentValue,N=I.lastValue,S=I.formattedValue,V=I.currentValueIndex,W=I.formattedValueIndex,X=O[V],oe=S[W],be=Ua(N,O),ge=be.to;return V>=ge.start&&V<ge.end&&g&&g.includes(X)&&oe===x?!0:X===oe};return Object.assign(Object.assign({},p),{value:R,valueIsNumericString:!1,isValidInputCharacter:F,isCharacterSame:H,onValueChange:L,format:w,removeFormatting:$,getCaretBoundary:function(I){return Cf(I,e)},onKeyDown:P,onBlur:U})}function _f(e){var t=Sf(e);return i.createElement(bf,Object.assign({},t))}function kf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:s,onClick:c,onPaste:l,settings:d,testid:f,value:u,disabled:m,dataCypress:v,tabIndex:p,...h}=e,x=".",g=",",w=Pf({dataEditorType:r,decimalScale:d?.numeric?.decimalScale}),$=d?.numeric?.allowNegative,C=d?.numeric?.min,E=d?.numeric?.max,M=r==="Currency"?"R$ ":"",T=r==="Percentage"?"%":"",[_,z]=i.useState(u),R=i.useCallback(P=>{const U=Number(P);if(P==="")return;let F=U;return typeof C=="number"&&U<C&&(F=C),typeof E=="number"&&U>E&&(F=E),F??""},[C,E]),L=i.useCallback(({value:P})=>{const U=R(P||"");s?.(U),z(U)},[s,R]);return i.useEffect(()=>{const P=R(u);z(P)},[u,R]),y.jsx(_f,{...h,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:M,suffix:T,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:c,decimalScale:w,onValueChange:L,allowNegative:$,decimalSeparator:g,thousandSeparator:x,className:Q("h-full w-full rounded-none bg-transparent pl-1 text-xs outline-none",n),disabled:m,"data-cypress":v,autoFocus:!0})}const Tf=2;function Pf(e){const{dataEditorType:t,decimalScale:n}=e;let r=n;return t==="Percentage"&&(n?r=n>2?n-Tf:0:r=0),n||(t==="Decimal"&&(r=2),t==="Float"&&(r=2),t==="Integer"&&(r=0),t==="Currency"&&(r=2)),r}const Xa=i.forwardRef(kf);function Nf(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:s,column:c,coordinates:l}=e,d=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),u=i.useCallback(()=>{r?.(),s?.("view")},[r,s]);return Er(d),y.jsx(Xa,{ref:d,dataEditorType:c.dataEditorType,value:n,onPaste:f,onBlur:u,onChange:m=>o?.({data:m}),settings:c.settings,dataCypress:`table-cell-numeric-${c.id}-${l.row}`,"aria-readonly":t==="readonly"})}function Of(e){const{mode:t,value:n,column:r,coordinates:o}=e;return y.jsx(Xa,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function If(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:s,coordinates:c,column:l}=e,[d,f]=so(!0),u=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{d||(s?.("view"),f(!1))},[s,f,d]),v=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return y.jsxs(Aa,{value:n,open:d,onOpenChange:f,onValueChange:v,children:[y.jsx($r,{onBlur:m,onPaste:u,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),"data-cypress":`table-cell-select-${l.id}-${c.row}`,"aria-readonly":t==="readonly",children:y.jsx(Da,{placeholder:"Selecionar"})}),y.jsx(Cr,{onBlur:m,children:a.map(({value:p,text:h})=>y.jsx(Tn,{"data-cypress":`table-cell-select-${l.id}-${c.row}-${p}`,className:"min-h-[24px] text-xs",value:p,children:h},p))})]})}function Mf(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,s=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),c=i.useMemo(()=>s?s.text:"Selecionar",[s]);return y.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[y.jsx("p",{className:"line-clamp-1 text-xs",children:c}),y.jsx(zn,{className:"h-4 w-4 opacity-50"})]})}function Af(e){e.selectionStart=e.selectionEnd=e.value.length}const Df="text/plain";function jf(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(Df):""}function Lf(e){return[" ",`
164
- `,"\r"].every(t=>!e.includes(t))}function qa(e,t){return to(e)>t-4}const Za=200;function Ff(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:s,setMode:c,column:l,selected:d,coordinates:f}=e,u=r,m=i.useRef(null),v=i.useRef(null),[p,h]=i.useState(0),x=i.useMemo(()=>qa(u,n),[u,n]),g=i.useCallback(()=>{const E=v.current;if(!E)return;const M=E.scrollHeight;E.style.height=`${M}px`,h(M)},[]),w=i.useCallback(E=>{const M=jf(E);Lf(M)||(E.preventDefault(),s?.()),g()},[s,g]),$=i.useCallback(()=>{o?.(),c?.("view")},[o,c]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),Er(m),Er(v),x?y.jsx("div",{style:{height:p||"fit-content"},className:Q("-left-0.5 -top-0.5 absolute z-40 h-fit w-fit border bg-white shadow-lg outline outline-2 outline-blue-500",d?"bg-blue-50":"bg-white"),children:y.jsx("div",{style:{height:p-1},className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:y.jsx("textarea",{ref:v,onBlur:$,onPaste:w,value:u,onChange:C,className:Q("h-fit resize-none break-all rounded-none bg-transparent py-1.5 pr-3 pl-1 text-xs outline-none"),onFocus:E=>Af(E.target),maxLength:Za,style:{width:n},"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})})}):y.jsx("input",{ref:m,onBlur:o,onPaste:w,value:u,maxLength:Za,onChange:C,className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function Vf(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:s}=e,c=n;return i.useMemo(()=>qa(c,o),[c,o])?y.jsx(pn,{delayDuration:0,children:y.jsxs(mn,{children:[y.jsx(hn,{className:"w-full",children:y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${s.row}`,children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",children:c})})}),y.jsx(Kt,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Bt,className:Q("h-fit w-full break-all rounded-none border bg-white pl-1 text-black shadow-lg","data-[state=closed]:transform-none data-[side=bottom]:animate-none data-[state=closed]:animate-none data-[state=closed]:transition-none",a?"bg-blue-50":"bg-white"),style:{width:o},children:y.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${s.row}`,children:c})})]})}):y.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","data-cypress":`table-cell-string-${r.id}-${s.row}`,"aria-readonly":t==="readonly",children:y.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",title:c,children:c})})}const Ue={Date:ef,Text:Ff,Boolean:Ju,Numeric:Nf,Select:If},Ke={Date:tf,Text:Vf,Boolean:Qu,Numeric:Of,Select:Mf},Bf=["Boolean","Select"];function zf(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:s,onPaste:c,onSelectCell:l}=je(),{dataEditorType:d,state:f,settings:u}=o[r.column],{readonly:m,visible:v}=f,[p,h]=i.useState(m?"readonly":"view"),x=i.useRef(null),g=i.useMemo(()=>o[r.column],[o,r.column]),w=i.useMemo(()=>a(r),[r,a]),$=i.useMemo(()=>u?.select?.items||[],[u?.select?.items]),C=i.useMemo(()=>({dataEditor:{coordinates:r,value:t,column:g,setMode:h,selected:w,mode:p,width:n,onPaste:()=>c(r),onChange:({data:R})=>s({data:R,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,c,s,r]),E=i.useMemo(()=>({Date:y.jsx(Ue.Date,{...C.dataEditor}),String:y.jsx(Ue.Text,{...C.dataEditor}),Currency:y.jsx(Ue.Numeric,{...C.dataEditor}),Decimal:y.jsx(Ue.Numeric,{...C.dataEditor}),Float:y.jsx(Ue.Numeric,{...C.dataEditor}),Integer:y.jsx(Ue.Numeric,{...C.dataEditor}),Percentage:y.jsx(Ue.Numeric,{...C.dataEditor}),Boolean:y.jsx(Ue.Boolean,{...C.dataEditor}),Select:y.jsx(Ue.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),M=i.useMemo(()=>({Date:y.jsx(Ke.Date,{...C.dataViewer}),String:y.jsx(Ke.Text,{...C.dataViewer}),Currency:y.jsx(Ke.Numeric,{...C.dataViewer}),Decimal:y.jsx(Ke.Numeric,{...C.dataViewer}),Float:y.jsx(Ke.Numeric,{...C.dataViewer}),Integer:y.jsx(Ke.Numeric,{...C.dataViewer}),Percentage:y.jsx(Ke.Numeric,{...C.dataViewer}),Boolean:y.jsx(Ke.Boolean,{...C.dataViewer}),Select:y.jsx(Ke.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),T=i.useMemo(()=>d?E[d]:null,[d,E]),_=i.useMemo(()=>d?M[d]:null,[d,M]),z=i.useCallback(()=>{Bf.includes(d)||h("view")},[d]);return i.useEffect(()=>{const R=L=>{const P=L.code==="Enter";P&&w&&p==="view"&&h("edit"),P&&w&&p==="edit"&&h("view")};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[w,p]),co(x,z),i.useEffect(()=>{h(m?"readonly":"view")},[m]),v?p==="readonly"?y.jsx("div",{onClick:()=>l(r),className:Q("flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent bg-[#F6F6F9]",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):p==="view"?y.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>h("edit"),className:Q("relative flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):y.jsx("div",{ref:x,"data-testid":"cell__testid",className:"relative h-7 w-32 shrink-0 border border-t-transparent border-l-transparent bg-[#EAF5FF] shadow-lg outline outline-2 outline-blue-500",style:{width:n,height:Bt,top:r.row===0?"4px":"0px"},children:y.jsx("div",{className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:T})}):y.jsx(i.Fragment,{})}function Wf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=je(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&As({matrix:r,pointRange:n,row:e})),[r,n,e]);return y.jsx("div",{className:Q("flex h-7 w-12 shrink-0 cursor-default select-none items-center justify-center border-r border-b text-[#8E8EA9] text-xs",o&&"bg-blue-100 font-bold text-blue-700",a&&"bg-[#0085FF] font-bold text-white"),onClick:s=>t(e,s),style:{height:Bt},children:e+1})}function Rf(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=je();return y.jsx("div",{className:"relative",children:n.map((o,a)=>y.jsxs("div",{className:Q("flex items-center transition-all ease-linear",a===n.length-1&&t&&"bg-blue-50"),children:[y.jsx(Wf,{row:a}),o.map((s,c)=>y.jsx(zf,{value:s,coordinates:{column:c,row:a},width:r[c].state.width},`spreadsheet__cell__key__${e}__${a}__${c}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Hf({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=je();return t?null:y.jsx("div",{className:Q("pointer-events-none mt-[calc(28px+36px)] flex h-[calc(100%-28px-28px)] w-full items-center justify-center",n&&"pointer-events-auto bg-white/25 backdrop-blur-sm",e),children:n&&y.jsxs("p",{className:"text-neutral-500",children:[y.jsx("span",{children:"Clique "}),y.jsx("button",{type:"button",onClick:r,className:"font-bold",children:"AQUI"}),y.jsx("span",{children:" para começar a preencher a tabela."})]})})}function Ja(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Ja(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Uf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ja(e))&&(r&&(r+=" "),r+=t);return r}const Qa=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ei=Uf,Kf=((e,t)=>n=>{var r;if(t?.variants==null)return ei(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n?.[d],u=a?.[d];if(f===null)return null;const m=Qa(f)||Qa(u);return o[d][m]}),c=n&&Object.entries(n).reduce((d,f)=>{let[u,m]=f;return m===void 0||(d[u]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:u,className:m,...v}=f;return Object.entries(v).every(p=>{let[h,x]=p;return Array.isArray(x)?x.includes({...a,...c}[h]):{...a,...c}[h]===x})?[...d,u,m]:d},[]);return ei(e,s,l,n?.class,n?.className)})("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Nn=D.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?ct:"button";return y.jsx(s,{className:Q(Kf({variant:t,size:n,className:e})),ref:a,...o})});Nn.displayName="Button";const kr="rovingFocusGroup.onEntryFocus",Gf={bubbles:!1,cancelable:!0},Tr="RovingFocusGroup",[Pr,ti,Yf]=cr(Tr),[Xf,ni]=st(Tr,[Yf]),[qf,Zf]=Xf(Tr),Jf=i.forwardRef((e,t)=>i.createElement(Pr.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Pr.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(Qf,j({},e,{ref:t}))))),Qf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=i.useRef(null),m=ve(t,u),v=lr(a),[p=null,h]=Ht({prop:s,defaultProp:c,onChange:l}),[x,g]=i.useState(!1),w=Me(d),$=ti(n),C=i.useRef(!1),[E,M]=i.useState(0);return i.useEffect(()=>{const T=u.current;if(T)return T.addEventListener(kr,w),()=>T.removeEventListener(kr,w)},[w]),i.createElement(qf,{scope:n,orientation:r,dir:v,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(T=>h(T),[h]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(T=>T+1),[]),onFocusableItemRemove:i.useCallback(()=>M(T=>T-1),[])},i.createElement(pe.div,j({tabIndex:x||E===0?-1:0,"data-orientation":r},f,{ref:m,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{C.current=!0}),onFocus:Y(e.onFocus,T=>{const _=!C.current;if(T.target===T.currentTarget&&_&&!x){const z=new CustomEvent(kr,Gf);if(T.currentTarget.dispatchEvent(z),!z.defaultPrevented){const R=$().filter(H=>H.focusable),L=R.find(H=>H.active),P=R.find(H=>H.id===p),F=[L,P,...R].filter(Boolean).map(H=>H.ref.current);ri(F)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),ep="RovingFocusGroupItem",tp=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,c=wt(),l=a||c,d=Zf(ep,n),f=d.currentTabStopId===l,u=ti(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=d;return i.useEffect(()=>{if(r)return m(),()=>v()},[r,m,v]),i.createElement(Pr.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(pe.span,j({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{ref:t,onMouseDown:Y(e.onMouseDown,p=>{r?d.onItemFocus(l):p.preventDefault()}),onFocus:Y(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:Y(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const h=op(p,d.orientation,d.dir);if(h!==void 0){p.preventDefault();let g=u().filter(w=>w.focusable).map(w=>w.ref.current);if(h==="last")g.reverse();else if(h==="prev"||h==="next"){h==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=d.loop?ap(g,w+1):g.slice(w+1)}setTimeout(()=>ri(g))}})})))}),np={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function op(e,t,n){const r=rp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return np[r]}function ri(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const ip=Jf,sp=tp,Nr=["Enter"," "],cp=["ArrowDown","PageUp","Home"],oi=["ArrowUp","PageDown","End"],lp=[...cp,...oi],dp={ltr:[...Nr,"ArrowRight"],rtl:[...Nr,"ArrowLeft"]},up={ltr:["ArrowLeft"],rtl:["ArrowRight"]},On="Menu",[Xt,fp,pp]=cr(On),[pt,ai]=st(On,[pp,St,ni]),Or=St(),ii=ni(),[mp,mt]=pt(On),[hp,qt]=pt(On),vp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=Or(t),[l,d]=i.useState(null),f=i.useRef(!1),u=Me(a),m=lr(o);return i.useEffect(()=>{const v=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(tr,c,i.createElement(mp,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},i.createElement(hp,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:s},r)))},si=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Or(n);return i.createElement(nr,j({},o,r,{ref:t}))}),ci="MenuPortal",[gp,li]=pt(ci,{forceMount:void 0}),bp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=mt(ci,t);return i.createElement(gp,{scope:t,forceMount:n},i.createElement(_t,{present:n||a.open},i.createElement(Ro,{asChild:!0,container:o},r)))},De="MenuContent",[wp,Ir]=pt(De),xp=i.forwardRef((e,t)=>{const n=li(De,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(De,e.__scopeMenu),s=qt(De,e.__scopeMenu);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},s.modal?i.createElement(yp,j({},o,{ref:t})):i.createElement($p,j({},o,{ref:t})))))}),yp=i.forwardRef((e,t)=>{const n=mt(De,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return oa(a)},[]),i.createElement(Mr,j({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),$p=i.forwardRef((e,t)=>{const n=mt(De,e.__scopeMenu);return i.createElement(Mr,j({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Mr=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v,disableOutsideScroll:p,...h}=e,x=mt(De,n),g=qt(De,n),w=Or(n),$=ii(n),C=fp(n),[E,M]=i.useState(null),T=i.useRef(null),_=ve(t,T,x.onContentChange),z=i.useRef(0),R=i.useRef(""),L=i.useRef(0),P=i.useRef(null),U=i.useRef("right"),F=i.useRef(0),H=p?br:i.Fragment,I=p?{as:ct,allowPinchZoom:!0}:void 0,O=S=>{var V,W;const X=R.current+S,oe=C().filter(ne=>!ne.disabled),be=document.activeElement,ge=(V=oe.find(ne=>ne.ref.current===be))===null||V===void 0?void 0:V.textValue,de=oe.map(ne=>ne.textValue),G=Fp(de,X,ge),ee=(W=oe.find(ne=>ne.textValue===G))===null||W===void 0?void 0:W.ref.current;(function ne(te){R.current=te,window.clearTimeout(z.current),te!==""&&(z.current=window.setTimeout(()=>ne(""),1e3))})(X),ee&&setTimeout(()=>ee.focus())};i.useEffect(()=>()=>window.clearTimeout(z.current),[]),Xo();const N=i.useCallback(S=>{var V,W;return U.current===((V=P.current)===null||V===void 0?void 0:V.side)&&Bp(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(wp,{scope:n,searchRef:R,onItemEnter:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),onItemLeave:i.useCallback(S=>{var V;N(S)||((V=T.current)===null||V===void 0||V.focus(),M(null))},[N]),onTriggerLeave:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),pointerGraceTimerRef:L,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(H,I,i.createElement(Jo,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var V;S.preventDefault(),(V=T.current)===null||V===void 0||V.focus()}),onUnmountAutoFocus:s},i.createElement(Hn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:v},i.createElement(ip,j({asChild:!0},$,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:Y(l,S=>{g.isUsingKeyboardRef.current||S.preventDefault()})}),i.createElement(rr,j({role:"menu","aria-orientation":"vertical","data-state":hi(x.open),"data-radix-menu-content":"",dir:g.dir},w,h,{ref:_,style:{outline:"none",...h.style},onKeyDown:Y(h.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,oe=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&oe&&O(S.key));const be=T.current;if(S.target!==be||!lp.includes(S.key))return;S.preventDefault();const de=C().filter(G=>!G.disabled).map(G=>G.ref.current);oi.includes(S.key)&&de.reverse(),jp(de)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(z.current),R.current="")}),onPointerMove:Y(e.onPointerMove,Zt(S=>{const V=S.target,W=F.current!==S.clientX;if(S.currentTarget.contains(V)&&W){const X=S.clientX>F.current?"right":"left";U.current=X,F.current=S.clientX}}))})))))))}),Cp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({},r,{ref:t}))}),Ar="MenuItem",di="menu.itemSelect",Dr=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=qt(Ar,e.__scopeMenu),c=Ir(Ar,e.__scopeMenu),l=ve(t,a),d=i.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(di,{bubbles:!0,cancelable:!0});u.addEventListener(di,v=>r?.(v),{once:!0}),ho(u,m),m.defaultPrevented?d.current=!1:s.onClose()}};return i.createElement(ui,j({},o,{ref:l,disabled:n,onClick:Y(e.onClick,f),onPointerDown:u=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,u),d.current=!0},onPointerUp:Y(e.onPointerUp,u=>{var m;d.current||(m=u.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Y(e.onKeyDown,u=>{const m=c.searchRef.current!=="";n||m&&u.key===" "||Nr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),ui=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Ir(Ar,n),c=ii(n),l=i.useRef(null),d=ve(t,l),[f,u]=i.useState(!1),[m,v]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var h;v(((h=p.textContent)!==null&&h!==void 0?h:"").trim())}},[a.children]),i.createElement(Xt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(sp,j({asChild:!0},c,{focusable:!r}),i.createElement(pe.div,j({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:d,onPointerMove:Y(e.onPointerMove,Zt(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,Zt(p=>s.onItemLeave(p))),onFocus:Y(e.onFocus,()=>u(!0)),onBlur:Y(e.onBlur,()=>u(!1))}))))}),Ep=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(pi,{scope:e.__scopeMenu,checked:n},i.createElement(Dr,j({role:"menuitemcheckbox","aria-checked":Mn(n)?"mixed":n},o,{ref:t,"data-state":jr(n),onSelect:Y(o.onSelect,()=>r?.(Mn(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Sp="MenuRadioGroup",[rh,_p]=pt(Sp,{value:void 0,onValueChange:()=>{}}),kp="MenuRadioItem",Tp=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=_p(kp,e.__scopeMenu),a=n===o.value;return i.createElement(pi,{scope:e.__scopeMenu,checked:a},i.createElement(Dr,j({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":jr(a),onSelect:Y(r.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})))}),fi="MenuItemIndicator",[pi,Pp]=pt(fi,{checked:!1}),Np=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Pp(fi,n);return i.createElement(_t,{present:r||Mn(a.checked)||a.checked===!0},i.createElement(pe.span,j({},o,{ref:t,"data-state":jr(a.checked)})))}),Op=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(pe.div,j({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Ip="MenuSub",[oh,mi]=pt(Ip),In="MenuSubTrigger",Mp=i.forwardRef((e,t)=>{const n=mt(In,e.__scopeMenu),r=qt(In,e.__scopeMenu),o=mi(In,e.__scopeMenu),a=Ir(In,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const u=c.current;return()=>{window.clearTimeout(u),l(null)}},[c,l]),i.createElement(si,j({asChild:!0},d),i.createElement(ui,j({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":hi(n.open)},e,{ref:tn(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,Zt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Zt(u=>{var m;f();const v=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(v){var p;const h=(p=n.content)===null||p===void 0?void 0:p.dataset.side,x=h==="right",g=x?-5:5,w=v[x?"left":"right"],$=v[x?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:v.top},{x:$,y:v.top},{x:$,y:v.bottom},{x:w,y:v.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,u=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&u.key===" ")&&dp[r.dir].includes(u.key)){var v;n.onOpenChange(!0),(v=n.content)===null||v===void 0||v.focus(),u.preventDefault()}})})))}),Ap="MenuSubContent",Dp=i.forwardRef((e,t)=>{const n=li(De,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(De,e.__scopeMenu),s=qt(De,e.__scopeMenu),c=mi(Ap,e.__scopeMenu),l=i.useRef(null),d=ve(t,l);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},i.createElement(Mr,j({id:c.contentId,"aria-labelledby":c.triggerId},o,{ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;s.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=up[s.dir].includes(f.key);if(u&&m){var v;a.onOpenChange(!1),(v=c.trigger)===null||v===void 0||v.focus(),f.preventDefault()}})})))))});function hi(e){return e?"open":"closed"}function Mn(e){return e==="indeterminate"}function jr(e){return Mn(e)?"indeterminate":e?"checked":"unchecked"}function jp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Lp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Fp(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Lp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Vp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Bp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Vp(n,t)}function Zt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const zp=vp,Wp=si,Rp=bp,Hp=xp,Up=Cp,Kp=Dr,Gp=Ep,Yp=Tp,Xp=Np,qp=Op,Zp=Mp,Jp=Dp,vi="DropdownMenu",[Qp,ah]=st(vi,[ai]),Oe=ai(),[em,gi]=Qp(vi),tm=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=Oe(t),d=i.useRef(null),[f=!1,u]=Ht({prop:o,defaultProp:a,onChange:s});return i.createElement(em,{scope:t,triggerId:wt(),triggerRef:d,contentId:wt(),open:f,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:c},i.createElement(zp,j({},l,{open:f,onOpenChange:u,dir:r,modal:c}),n))},nm="DropdownMenuTrigger",rm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=gi(nm,n),s=Oe(n);return i.createElement(Wp,j({asChild:!0},s),i.createElement(pe.button,j({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:tn(t,a.triggerRef),onPointerDown:Y(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:Y(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),om=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Oe(t);return i.createElement(Rp,j({},r,n))},am="DropdownMenuContent",im=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gi(am,n),a=Oe(n),s=i.useRef(!1);return i.createElement(Hp,j({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,c=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Up,j({},o,r,{ref:t}))}),cm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Kp,j({},o,r,{ref:t}))}),lm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Gp,j({},o,r,{ref:t}))}),dm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Yp,j({},o,r,{ref:t}))}),um=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Xp,j({},o,r,{ref:t}))}),fm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(qp,j({},o,r,{ref:t}))}),pm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Zp,j({},o,r,{ref:t}))}),mm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Jp,j({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),hm=tm,vm=rm,gm=om,bi=im,wi=sm,xi=cm,yi=lm,$i=dm,Ci=um,Ei=fm,Si=pm,_i=mm,bm=hm,wm=vm,xm=D.forwardRef(({className:e,inset:t,children:n,...r},o)=>y.jsxs(Si,{ref:o,className:Q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,y.jsx(Zs,{className:"ml-auto h-4 w-4"})]}));xm.displayName=Si.displayName;const ym=D.forwardRef(({className:e,...t},n)=>y.jsx(_i,{ref:n,className:Q("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 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}));ym.displayName=_i.displayName;const ki=D.forwardRef(({className:e,sideOffset:t=4,...n},r)=>y.jsx(gm,{children:y.jsx(bi,{ref:r,sideOffset:t,className:Q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=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 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}));ki.displayName=bi.displayName;const Ti=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(xi,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Ti.displayName=xi.displayName;const Pi=D.forwardRef(({className:e,children:t,checked:n,...r},o)=>y.jsxs(yi,{ref:o,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),checked:n,...r,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Ci,{children:y.jsx(uo,{className:"h-4 w-4"})})}),t]}));Pi.displayName=yi.displayName;const $m=D.forwardRef(({className:e,children:t,...n},r)=>y.jsxs($i,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[y.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:y.jsx(Ci,{children:y.jsx(tc,{className:"h-4 w-4 fill-current"})})}),t]}));$m.displayName=$i.displayName;const Cm=D.forwardRef(({className:e,inset:t,...n},r)=>y.jsx(wi,{ref:r,className:Q("px-2 py-1.5 font-semibold text-sm",t&&"pl-8",e),...n}));Cm.displayName=wi.displayName;const Em=D.forwardRef(({className:e,...t},n)=>y.jsx(Ei,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));Em.displayName=Ei.displayName;function Sm(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Add Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 6.667v6.666M6.667 10h6.666M6.5 17.5h7c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 001.092-1.092c.273-.535.273-1.235.273-2.635v-7c0-1.4 0-2.1-.273-2.635a2.5 2.5 0 00-1.092-1.093C15.6 2.5 14.9 2.5 13.5 2.5h-7c-1.4 0-2.1 0-2.635.272a2.5 2.5 0 00-1.093 1.093C2.5 4.4 2.5 5.1 2.5 6.5v7c0 1.4 0 2.1.272 2.635a2.5 2.5 0 001.093 1.092C4.4 17.5 5.1 17.5 6.5 17.5z"})]})}function _m(e){return y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[y.jsx("title",{children:"Remove Row"}),y.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M13.333 5v-.667c0-.933 0-1.4-.181-1.756a1.667 1.667 0 00-.729-.729c-.356-.181-.823-.181-1.756-.181H9.333c-.933 0-1.4 0-1.756.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756V5m1.666 4.583v4.167m3.334-4.167v4.167M2.5 5h15m-1.667 0v9.333c0 1.4 0 2.1-.272 2.635a2.5 2.5 0 01-1.093 1.093c-.534.272-1.235.272-2.635.272H8.167c-1.4 0-2.1 0-2.635-.272a2.5 2.5 0 01-1.093-1.093c-.272-.535-.272-1.235-.272-2.635V5"})]})}function km(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:s,onRestoreColumnsVisibility:c}=je(),l=i.useMemo(()=>r.filter(({state:v})=>v.visible),[r]),d=i.useMemo(()=>r.length===l.length,[r.length,l.length]),f="Exibindo todas as colunas",u=`Exibindo ${l.length} de ${r.length} colunas`,m=d?f:u;return y.jsxs("div",{className:"sticky top-0 z-50 flex w-full items-center justify-between rounded-t-md border bg-[#EAF5FF] px-4 py-2.5",children:[y.jsxs("div",{className:"flex items-center gap-6",children:[y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx(Nn,{disabled:n,size:"icon",variant:"ghost",onClick:o,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-add-new-row",children:y.jsx(Sm,{})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Inserir linha"})})]})}),y.jsx(pn,{delayDuration:25,children:y.jsxs(mn,{children:[y.jsx(hn,{asChild:!0,children:y.jsx(Nn,{disabled:n||t||!e,size:"icon",variant:"ghost",onClick:a,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-delete-selected-row",children:y.jsx(_m,{})})}),y.jsx(Kt,{children:y.jsx("p",{children:"Excluir linha(s)"})})]})})]}),y.jsx("div",{className:"flex items-center gap-4",children:y.jsxs(bm,{children:[y.jsx(wm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"w-56 bg-white",children:y.jsxs(Nn,{variant:"outline",className:"justify-between px-2",children:[y.jsx("span",{className:"text-xs",children:m}),y.jsx(uc,{className:"h-4 w-4"})]})}),y.jsxs(ki,{className:"w-56",children:[y.jsx(Ti,{onClick:c,className:"justify-between text-xs","data-cypress":"table-restore-columns",children:y.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:v,id:p,alphabetLetter:h,position:x,state:g})=>y.jsxs(Pi,{checked:g.visible,onCheckedChange:w=>s({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"justify-between text-xs","data-cypress":`table-hide-column-${p}`,children:[y.jsx("span",{children:v}),y.jsx("span",{className:"text-[10px] text-neutral-500",children:h})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${x}`))]})]})})]})}function Tm(e){const{className:t,...n}=e;return y.jsx(Ls,{...n,children:y.jsxs(lo.Root,{className:Q(t,"h-full"),children:[y.jsx(km,{}),y.jsxs(lo.Matrix,{className:"scrollbar-thin overflow-y-clip overflow-x-scroll",children:[y.jsx(Hf,{className:"absolute z-50"}),y.jsx(gd,{}),y.jsx(Rf,{})]})]})})}function Pm(e){const{fileName:t="Declaração de viabilidade - Esgoto.pdf",fileSizeInMb:n="8.15MB • Versão 1",onDownload:r,onClick:o,state:a,...s}=e,c=d=>{(a==="Idle"||a==="Finished")&&r(),o?.(d)},l=a==="Disabled";return y.jsxs("button",{className:Q("flex h-[34px] items-center gap-4 rounded-md border border-[#E5E5F4] px-4 text-[#474772] transition-all ease-linear hover:shadow-md","disabled:border-[#E5E5F4] disabled:bg-[#E5E5F4] disabled:text-[#9292BA] disabled:shadow-none"),type:"button",onClick:c,disabled:l,"aria-disabled":l,...s,children:[y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(vc,{className:"h-4 w-4 shrink-0"}),y.jsx("p",{className:"whitespace-nowrap font-bold text-[14px]",children:t}),y.jsx("p",{className:"whitespace-nowrap text-[10px]",children:n})]}),a==="Finished"&&y.jsx("div",{className:"flex w-[110px] items-center justify-end",children:y.jsx(pc,{className:"h-4 w-4 text-[#199652]"})}),a==="Loading"&&y.jsx("div",{className:"flex w-[110px] items-center justify-end",children:y.jsx(bc,{className:"h-4 w-4 shrink-0 animate-spin text-[#199652]"})}),a==="Disabled"&&y.jsx(Ni,{className:"text-[#9292BA]"}),a==="Idle"&&y.jsx(Ni,{className:"text-[#4657E1]"})]})}function Ni({className:e}){return y.jsxs("div",{className:Q("flex w-[110px] items-center",e),children:[y.jsx(fc,{className:"mr-1 h-4 w-4 shrink-0 text-current"}),y.jsx("p",{className:"mr-2 whitespace-nowrap font-bold text-[10px] text-current",children:"Novo Arquivo"}),y.jsx(lc,{className:"h-4 w-4"})]})}const Nm={Spreadsheet:Tm,FileUploader:Pm};Ge.CapLink=Nm,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
163
+ `),a=!1),Object.assign(Object.assign({},e),{allowNegative:a})}function Sf(e){e=Ef(e),e.decimalSeparator,e.allowedDecimalSeparators,e.thousandsGroupStyle;var t=e.suffix,n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=at);var a=e.onBlur;a===void 0&&(a=at);var s=e.thousandSeparator,c=e.decimalScale,l=e.fixedDecimalScale,d=e.prefix;d===void 0&&(d="");var f=e.defaultValue,u=e.value,m=e.valueIsNumericString,h=e.onValueChange,p=za(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),v=Pn(e),y=v.decimalSeparator,g=v.allowedDecimalSeparators,w=function(I){return Za(I,e)},$=function(I,O){return $f(I,O,e)},C=Mt(u)?f:u,E=m??yf(C,d,t);Mt(u)?Mt(f)||(E=E||typeof f=="number"):E=E||typeof u=="number";var M=function(I){return Wa(I)?I:(typeof I=="number"&&(I=Ka(I)),E&&typeof c=="number"?Ga(I,c,!!l):I)},T=qa(M(u),M(f),!!E,w,$,h),_=T[0],B=_.numAsString,K=_.formattedValue,A=T[1],P=function(I){var O=I.target,N=I.key,S=O.selectionStart,F=O.selectionEnd,W=O.value;if(W===void 0&&(W=""),S!==F){o(I);return}N==="Backspace"&&W[0]==="-"&&S===d.length+1&&n&&ft(O,1),c&&l&&(N==="Backspace"&&W[S-1]===y?(ft(O,S-1),I.preventDefault()):N==="Delete"&&W[S]===y&&I.preventDefault()),g?.includes(N)&&W[S]===y&&ft(O,S+1);var X=s===!0?",":s;N==="Backspace"&&W[S-1]===X&&ft(O,S-1),N==="Delete"&&W[S]===X&&ft(O,S+1),o(I)},G=function(I){var O=B;if(O.match(/\d/g)||(O=""),r||(O=lf(O)),l&&c&&(O=Ga(O,c,l)),O!==B){var N=Za(O,e);A({formattedValue:N,value:O,floatValue:parseFloat(O)},{event:I,source:Gt.event})}a(I)},z=function(I){return I===y?!0:Yt(I)},R=function(I){var O=I.currentValue,N=I.lastValue,S=I.formattedValue,F=I.currentValueIndex,W=I.formattedValueIndex,X=O[F],ae=S[W],be=Ya(N,O),ge=be.to;return F>=ge.start&&F<ge.end&&g&&g.includes(X)&&ae===y?!0:X===ae};return Object.assign(Object.assign({},p),{value:K,valueIsNumericString:!1,isValidInputCharacter:z,isCharacterSame:R,onValueChange:A,format:w,removeFormatting:$,getCaretBoundary:function(I){return Cf(I,e)},onKeyDown:P,onBlur:G})}function _f(e){var t=Sf(e);return i.createElement(bf,Object.assign({},t))}function kf(e,t){const{className:n,dataEditorType:r,onFocus:o,onBlur:a,onChange:s,onClick:c,onPaste:l,settings:d,testid:f,value:u,disabled:m,dataCypress:h,tabIndex:p,...v}=e,y=".",g=",",w=Pf({dataEditorType:r,decimalScale:d?.numeric?.decimalScale}),$=d?.numeric?.allowNegative,C=d?.numeric?.min,E=d?.numeric?.max,M=r==="Currency"?"R$ ":"",T=r==="Percentage"?"%":"",[_,B]=i.useState(u),K=i.useCallback(({value:A})=>{const P=Ln({value:A,min:C,max:E});s?.(P),B(P)},[s,C,E]);return i.useEffect(()=>{const A=Ln({value:u,min:C,max:E});B(A)},[u,C,E]),x.jsx(_f,{...v,getInputRef:t,tabIndex:p,value:_,onPaste:l,prefix:M,suffix:T,fixedDecimalScale:!0,onBlur:a,"data-testid":f,valueIsNumericString:!0,onFocus:o,onClick:c,decimalScale:w,onValueChange:K,allowNegative:$,decimalSeparator:g,thousandSeparator:y,className:Q("h-full w-full rounded-none bg-transparent pl-1 text-xs outline-none",n),disabled:m,"data-cypress":h,autoFocus:!0})}const Tf=2;function Pf(e){const{dataEditorType:t,decimalScale:n}=e;let r=n;return t==="Percentage"&&(n?r=n>2?n-Tf:0:r=0),n||(t==="Decimal"&&(r=2),t==="Float"&&(r=2),t==="Integer"&&(r=0),t==="Currency"&&(r=2)),r}const Ja=i.forwardRef(kf);function Nf(e){const{mode:t,value:n,onBlur:r,onChange:o,onPaste:a,setMode:s,column:c,coordinates:l}=e,d=i.useRef(null),f=i.useCallback(m=>{m.preventDefault(),a?.()},[a]),u=i.useCallback(()=>{r?.(),s?.("view")},[r,s]);return Sr(d),x.jsx(Ja,{ref:d,dataEditorType:c.dataEditorType,value:n,onPaste:f,onBlur:u,onChange:m=>o?.({data:m}),settings:c.settings,dataCypress:`table-cell-numeric-${c.id}-${l.row}`,"aria-readonly":t==="readonly"})}function Of(e){const{mode:t,value:n,column:r,coordinates:o}=e;return x.jsx(Ja,{dataEditorType:r.dataEditorType,value:n,settings:r.settings,disabled:!0,className:"pointer-events-none",dataCypress:`table-cell-numeric-${r.id}-${o.row}`,"aria-readonly":t==="readonly"})}function If(e){const{mode:t,value:n,onChange:r,onPaste:o,items:a,setMode:s,coordinates:c,column:l}=e,[d,f]=co(!0),u=i.useCallback(p=>{p.preventDefault(),o?.()},[o]),m=i.useCallback(()=>{d||(s?.("view"),f(!1))},[s,f,d]),h=i.useCallback(p=>{r?.({data:p}),m()},[r,m]);return x.jsxs(La,{value:n,open:d,onOpenChange:f,onValueChange:h,children:[x.jsx(Cr,{onBlur:m,onPaste:u,className:Q("h-full w-full rounded-none border-none pl-1 text-xs outline-none focus:ring-0"),"data-cypress":`table-cell-select-${l.id}-${c.row}`,"aria-readonly":t==="readonly",children:x.jsx(Fa,{placeholder:"Selecionar"})}),x.jsx(Er,{onBlur:m,children:a.map(({value:p,text:v})=>x.jsx(Tn,{"data-cypress":`table-cell-select-${l.id}-${c.row}-${p}`,className:"min-h-[24px] text-xs",value:p,children:v},p))})]})}function Mf(e){const{mode:t,value:n,items:r,coordinates:o,column:a}=e,s=i.useMemo(()=>r.find(l=>l.value===n),[r,n]),c=i.useMemo(()=>s?s.text:"Selecionar",[s]);return x.jsxs("div",{className:"flex h-full w-full items-center justify-between pr-px pl-1","data-cypress":`table-cell-select-${a.id}-${o.row}`,"aria-readonly":t==="readonly",children:[x.jsx("p",{className:"line-clamp-1 text-xs",children:c}),x.jsx(Wn,{className:"h-4 w-4 opacity-50"})]})}function Af(e){e.selectionStart=e.selectionEnd=e.value.length}const Df="text/plain";function jf(e){return window.clipboardData?.getData?window.clipboardData.getData("Text"):e.clipboardData?.getData?e.clipboardData.getData(Df):""}function Lf(e){return[" ",`
164
+ `,"\r"].every(t=>!e.includes(t))}function Qa(e,t){return no(e)>t-4}const ei=200;function Ff(e){const{mode:t,width:n,value:r,onBlur:o,onChange:a,onPaste:s,setMode:c,column:l,selected:d,coordinates:f}=e,u=r,m=i.useRef(null),h=i.useRef(null),[p,v]=i.useState(0),y=i.useMemo(()=>Qa(u,n),[u,n]),g=i.useCallback(()=>{const E=h.current;if(!E)return;const M=E.scrollHeight;E.style.height=`${M}px`,v(M)},[]),w=i.useCallback(E=>{const M=jf(E);Lf(M)||(E.preventDefault(),s?.()),g()},[s,g]),$=i.useCallback(()=>{o?.(),c?.("view")},[o,c]),C=i.useCallback(E=>{a?.({data:E.target.value}),g()},[g,a]);return i.useEffect(()=>{g()},[g]),Sr(m),Sr(h),y?x.jsx("div",{style:{height:p||"fit-content"},className:Q("-left-0.5 -top-0.5 absolute z-40 h-fit w-fit border bg-white shadow-lg outline outline-2 outline-blue-500",d?"bg-blue-50":"bg-white"),children:x.jsx("div",{style:{height:p-1},className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:x.jsx("textarea",{ref:h,onBlur:$,onPaste:w,value:u,onChange:C,className:Q("h-fit resize-none break-all rounded-none bg-transparent py-1.5 pr-3 pl-1 text-xs outline-none"),onFocus:E=>Af(E.target),maxLength:ei,style:{width:n},"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})})}):x.jsx("input",{ref:m,onBlur:o,onPaste:w,value:u,maxLength:ei,onChange:C,className:Q("h-full w-full bg-transparent pl-1 text-xs outline-none"),"data-cypress":`table-cell-string-${l.id}-${f.row}`,"aria-readonly":t==="readonly",autoFocus:!0})}function Vf(e){const{mode:t,value:n,column:r,width:o,selected:a,coordinates:s}=e,c=n;return i.useMemo(()=>Qa(c,o),[c,o])?x.jsx(pn,{delayDuration:0,children:x.jsxs(mn,{children:[x.jsx(hn,{className:"w-full",children:x.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","aria-readonly":t==="readonly","data-cypress":`table-cell-string-${r.id}-${s.row}`,children:x.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",children:c})})}),x.jsx(Kt,{align:"start",side:"bottom",alignOffset:-2,sideOffset:-Bt,className:Q("h-fit w-full break-all rounded-none border bg-white pl-1 text-black shadow-lg","data-[state=closed]:transform-none data-[side=bottom]:animate-none data-[state=closed]:animate-none data-[state=closed]:transition-none",a?"bg-blue-50":"bg-white"),style:{width:o},children:x.jsx("p",{"data-cypress":`table-cell-string-tooltip-${r.id}-${s.row}`,children:c})})]})}):x.jsx("div",{className:"flex h-full w-full items-center overflow-hidden","data-cypress":`table-cell-string-${r.id}-${s.row}`,"aria-readonly":t==="readonly",children:x.jsx("p",{className:"line-clamp-1 break-all pl-1 text-left text-xs",title:c,children:c})})}const Ue={Date:ef,Text:Ff,Boolean:Ju,Numeric:Nf,Select:If},Ke={Date:tf,Text:Vf,Boolean:Qu,Numeric:Of,Select:Mf},Bf=["Boolean","Select"];function zf(e){const{value:t,width:n,coordinates:r}=e,{columns:o,isCellSelected:a,onChange:s,onPaste:c,onSelectCell:l}=je(),{dataEditorType:d,state:f,settings:u}=o[r.column],{readonly:m,visible:h}=f,[p,v]=i.useState(m?"readonly":"view"),y=i.useRef(null),g=i.useMemo(()=>o[r.column],[o,r.column]),w=i.useMemo(()=>a(r),[r,a]),$=i.useMemo(()=>u?.select?.items||[],[u?.select?.items]),C=i.useMemo(()=>({dataEditor:{coordinates:r,value:t,column:g,setMode:v,selected:w,mode:p,width:n,onPaste:()=>c(r),onChange:({data:K})=>s({data:K,point:r})},dataViewer:{coordinates:r,value:t,column:g,width:n,selected:w,mode:p}}),[r,n,p,t,g,w,c,s,r]),E=i.useMemo(()=>({Date:x.jsx(Ue.Date,{...C.dataEditor}),String:x.jsx(Ue.Text,{...C.dataEditor}),Currency:x.jsx(Ue.Numeric,{...C.dataEditor}),Decimal:x.jsx(Ue.Numeric,{...C.dataEditor}),Float:x.jsx(Ue.Numeric,{...C.dataEditor}),Integer:x.jsx(Ue.Numeric,{...C.dataEditor}),Percentage:x.jsx(Ue.Numeric,{...C.dataEditor}),Boolean:x.jsx(Ue.Boolean,{...C.dataEditor}),Select:x.jsx(Ue.Select,{...C.dataEditor,items:$})}),[C.dataEditor,$]),M=i.useMemo(()=>({Date:x.jsx(Ke.Date,{...C.dataViewer}),String:x.jsx(Ke.Text,{...C.dataViewer}),Currency:x.jsx(Ke.Numeric,{...C.dataViewer}),Decimal:x.jsx(Ke.Numeric,{...C.dataViewer}),Float:x.jsx(Ke.Numeric,{...C.dataViewer}),Integer:x.jsx(Ke.Numeric,{...C.dataViewer}),Percentage:x.jsx(Ke.Numeric,{...C.dataViewer}),Boolean:x.jsx(Ke.Boolean,{...C.dataViewer}),Select:x.jsx(Ke.Select,{...C.dataViewer,items:$})}),[C.dataViewer,$]),T=i.useMemo(()=>d?E[d]:null,[d,E]),_=i.useMemo(()=>d?M[d]:null,[d,M]),B=i.useCallback(()=>{Bf.includes(d)||v("view")},[d]);return i.useEffect(()=>{const K=A=>{const P=A.code==="Enter";P&&w&&p==="view"&&v("edit"),P&&w&&p==="edit"&&v("view")};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[w,p]),lo(y,B),i.useEffect(()=>{v(m?"readonly":"view")},[m]),h?p==="readonly"?x.jsx("div",{onClick:()=>l(r),className:Q("flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent bg-[#F6F6F9]",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):p==="view"?x.jsx("div",{onClick:()=>l(r),onDoubleClick:()=>v("edit"),className:Q("relative flex h-7 shrink-0 cursor-default select-none border border-t-transparent border-l-transparent",w&&"bg-[#EAF5FF]"),style:{width:n,height:Bt},children:_}):x.jsx("div",{ref:y,"data-testid":"cell__testid",className:"relative h-7 w-32 shrink-0 border border-t-transparent border-l-transparent bg-[#EAF5FF] shadow-lg outline outline-2 outline-blue-500",style:{width:n,height:Bt,top:r.row===0?"4px":"0px"},children:x.jsx("div",{className:"h-full w-full outline outline-[3px] outline-sky-200 outline-offset-2",children:T})}):x.jsx(i.Fragment,{})}function Wf({row:e}){const{onSelectRow:t,pointRange:n,matrix:r}=je(),o=i.useMemo(()=>n&&e>=n.start.row&&e<=n.end.row,[n,e]),a=i.useMemo(()=>!!(n&&js({matrix:r,pointRange:n,row:e})),[r,n,e]);return x.jsx("div",{className:Q("flex h-7 w-12 shrink-0 cursor-default select-none items-center justify-center border-r border-b text-[#8E8EA9] text-xs",o&&"bg-blue-100 font-bold text-blue-700",a&&"bg-[#0085FF] font-bold text-white"),onClick:s=>t(e,s),style:{height:Bt},children:e+1})}function Rf(){const e=i.useId(),{highlightLastRow:t,matrix:n,columns:r}=je();return x.jsx("div",{className:"relative",children:n.map((o,a)=>x.jsxs("div",{className:Q("flex items-center transition-all ease-linear",a===n.length-1&&t&&"bg-blue-50"),children:[x.jsx(Wf,{row:a}),o.map((s,c)=>x.jsx(zf,{value:s,coordinates:{column:c,row:a},width:r[c].state.width},`spreadsheet__cell__key__${e}__${a}__${c}`))]},`spreadsheet__row__key__${e}__${a}}`))})}function Hf({className:e}){const{staticRows:t,emptySize:n,onInsertNewRow:r}=je();return t?null:x.jsx("div",{className:Q("pointer-events-none mt-[calc(28px+36px)] flex h-[calc(100%-28px-28px)] w-full items-center justify-center",n&&"pointer-events-auto bg-white/25 backdrop-blur-sm",e),children:n&&x.jsxs("p",{className:"text-neutral-500",children:[x.jsx("span",{children:"Clique "}),x.jsx("button",{type:"button",onClick:r,className:"font-bold",children:"AQUI"}),x.jsx("span",{children:" para começar a preencher a tabela."})]})})}function ti(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ti(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Uf(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ti(e))&&(r&&(r+=" "),r+=t);return r}const ni=e=>typeof e=="boolean"?"".concat(e):e===0?"0":e,ri=Uf,Kf=((e,t)=>n=>{var r;if(t?.variants==null)return ri(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,s=Object.keys(o).map(d=>{const f=n?.[d],u=a?.[d];if(f===null)return null;const m=ni(f)||ni(u);return o[d][m]}),c=n&&Object.entries(n).reduce((d,f)=>{let[u,m]=f;return m===void 0||(d[u]=m),d},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,f)=>{let{class:u,className:m,...h}=f;return Object.entries(h).every(p=>{let[v,y]=p;return Array.isArray(y)?y.includes({...a,...c}[v]):{...a,...c}[v]===y})?[...d,u,m]:d},[]);return ri(e,s,l,n?.class,n?.className)})("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Nn=j.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...o},a)=>{const s=r?ct:"button";return x.jsx(s,{className:Q(Kf({variant:t,size:n,className:e})),ref:a,...o})});Nn.displayName="Button";const Tr="rovingFocusGroup.onEntryFocus",Gf={bubbles:!1,cancelable:!0},Pr="RovingFocusGroup",[Nr,oi,Yf]=lr(Pr),[Xf,ai]=st(Pr,[Yf]),[qf,Zf]=Xf(Pr),Jf=i.forwardRef((e,t)=>i.createElement(Nr.Provider,{scope:e.__scopeRovingFocusGroup},i.createElement(Nr.Slot,{scope:e.__scopeRovingFocusGroup},i.createElement(Qf,L({},e,{ref:t}))))),Qf=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:l,onEntryFocus:d,...f}=e,u=i.useRef(null),m=ve(t,u),h=dr(a),[p=null,v]=Ht({prop:s,defaultProp:c,onChange:l}),[y,g]=i.useState(!1),w=Me(d),$=oi(n),C=i.useRef(!1),[E,M]=i.useState(0);return i.useEffect(()=>{const T=u.current;if(T)return T.addEventListener(Tr,w),()=>T.removeEventListener(Tr,w)},[w]),i.createElement(qf,{scope:n,orientation:r,dir:h,loop:o,currentTabStopId:p,onItemFocus:i.useCallback(T=>v(T),[v]),onItemShiftTab:i.useCallback(()=>g(!0),[]),onFocusableItemAdd:i.useCallback(()=>M(T=>T+1),[]),onFocusableItemRemove:i.useCallback(()=>M(T=>T-1),[])},i.createElement(fe.div,L({tabIndex:y||E===0?-1:0,"data-orientation":r},f,{ref:m,style:{outline:"none",...e.style},onMouseDown:Y(e.onMouseDown,()=>{C.current=!0}),onFocus:Y(e.onFocus,T=>{const _=!C.current;if(T.target===T.currentTarget&&_&&!y){const B=new CustomEvent(Tr,Gf);if(T.currentTarget.dispatchEvent(B),!B.defaultPrevented){const K=$().filter(R=>R.focusable),A=K.find(R=>R.active),P=K.find(R=>R.id===p),z=[A,P,...K].filter(Boolean).map(R=>R.ref.current);ii(z)}}C.current=!1}),onBlur:Y(e.onBlur,()=>g(!1))})))}),ep="RovingFocusGroupItem",tp=i.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,...s}=e,c=wt(),l=a||c,d=Zf(ep,n),f=d.currentTabStopId===l,u=oi(n),{onFocusableItemAdd:m,onFocusableItemRemove:h}=d;return i.useEffect(()=>{if(r)return m(),()=>h()},[r,m,h]),i.createElement(Nr.ItemSlot,{scope:n,id:l,focusable:r,active:o},i.createElement(fe.span,L({tabIndex:f?0:-1,"data-orientation":d.orientation},s,{ref:t,onMouseDown:Y(e.onMouseDown,p=>{r?d.onItemFocus(l):p.preventDefault()}),onFocus:Y(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:Y(e.onKeyDown,p=>{if(p.key==="Tab"&&p.shiftKey){d.onItemShiftTab();return}if(p.target!==p.currentTarget)return;const v=op(p,d.orientation,d.dir);if(v!==void 0){p.preventDefault();let g=u().filter(w=>w.focusable).map(w=>w.ref.current);if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const w=g.indexOf(p.currentTarget);g=d.loop?ap(g,w+1):g.slice(w+1)}setTimeout(()=>ii(g))}})})))}),np={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function rp(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function op(e,t,n){const r=rp(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return np[r]}function ii(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ap(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const ip=Jf,sp=tp,Or=["Enter"," "],cp=["ArrowDown","PageUp","Home"],si=["ArrowUp","PageDown","End"],lp=[...cp,...si],dp={ltr:[...Or,"ArrowRight"],rtl:[...Or,"ArrowLeft"]},up={ltr:["ArrowLeft"],rtl:["ArrowRight"]},On="Menu",[Xt,fp,pp]=lr(On),[pt,ci]=st(On,[pp,St,ai]),Ir=St(),li=ai(),[mp,mt]=pt(On),[hp,qt]=pt(On),vp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=Ir(t),[l,d]=i.useState(null),f=i.useRef(!1),u=Me(a),m=dr(o);return i.useEffect(()=>{const h=()=>{f.current=!0,document.addEventListener("pointerdown",p,{capture:!0,once:!0}),document.addEventListener("pointermove",p,{capture:!0,once:!0})},p=()=>f.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",p,{capture:!0}),document.removeEventListener("pointermove",p,{capture:!0})}},[]),i.createElement(nr,c,i.createElement(mp,{scope:t,open:n,onOpenChange:u,content:l,onContentChange:d},i.createElement(hp,{scope:t,onClose:i.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:f,dir:m,modal:s},r)))},di=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ir(n);return i.createElement(rr,L({},o,r,{ref:t}))}),ui="MenuPortal",[gp,fi]=pt(ui,{forceMount:void 0}),bp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=mt(ui,t);return i.createElement(gp,{scope:t,forceMount:n},i.createElement(_t,{present:n||a.open},i.createElement(Ko,{asChild:!0,container:o},r)))},De="MenuContent",[wp,Mr]=pt(De),xp=i.forwardRef((e,t)=>{const n=fi(De,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(De,e.__scopeMenu),s=qt(De,e.__scopeMenu);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},s.modal?i.createElement(yp,L({},o,{ref:t})):i.createElement($p,L({},o,{ref:t})))))}),yp=i.forwardRef((e,t)=>{const n=mt(De,e.__scopeMenu),r=i.useRef(null),o=ve(t,r);return i.useEffect(()=>{const a=r.current;if(a)return sa(a)},[]),i.createElement(Ar,L({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Y(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))}),$p=i.forwardRef((e,t)=>{const n=mt(De,e.__scopeMenu);return i.createElement(Ar,L({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))}),Ar=i.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h,disableOutsideScroll:p,...v}=e,y=mt(De,n),g=qt(De,n),w=Ir(n),$=li(n),C=fp(n),[E,M]=i.useState(null),T=i.useRef(null),_=ve(t,T,y.onContentChange),B=i.useRef(0),K=i.useRef(""),A=i.useRef(0),P=i.useRef(null),G=i.useRef("right"),z=i.useRef(0),R=p?wr:i.Fragment,I=p?{as:ct,allowPinchZoom:!0}:void 0,O=S=>{var F,W;const X=K.current+S,ae=C().filter(te=>!te.disabled),be=document.activeElement,ge=(F=ae.find(te=>te.ref.current===be))===null||F===void 0?void 0:F.textValue,pe=ae.map(te=>te.textValue),U=Fp(pe,X,ge),ee=(W=ae.find(te=>te.textValue===U))===null||W===void 0?void 0:W.ref.current;(function te(ne){K.current=ne,window.clearTimeout(B.current),ne!==""&&(B.current=window.setTimeout(()=>te(""),1e3))})(X),ee&&setTimeout(()=>ee.focus())};i.useEffect(()=>()=>window.clearTimeout(B.current),[]),Jo();const N=i.useCallback(S=>{var F,W;return G.current===((F=P.current)===null||F===void 0?void 0:F.side)&&Bp(S,(W=P.current)===null||W===void 0?void 0:W.area)},[]);return i.createElement(wp,{scope:n,searchRef:K,onItemEnter:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),onItemLeave:i.useCallback(S=>{var F;N(S)||((F=T.current)===null||F===void 0||F.focus(),M(null))},[N]),onTriggerLeave:i.useCallback(S=>{N(S)&&S.preventDefault()},[N]),pointerGraceTimerRef:A,onPointerGraceIntentChange:i.useCallback(S=>{P.current=S},[])},i.createElement(R,I,i.createElement(ta,{asChild:!0,trapped:o,onMountAutoFocus:Y(a,S=>{var F;S.preventDefault(),(F=T.current)===null||F===void 0||F.focus()}),onUnmountAutoFocus:s},i.createElement(Un,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:u,onInteractOutside:m,onDismiss:h},i.createElement(ip,L({asChild:!0},$,{dir:g.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:M,onEntryFocus:Y(l,S=>{g.isUsingKeyboardRef.current||S.preventDefault()})}),i.createElement(or,L({role:"menu","aria-orientation":"vertical","data-state":bi(y.open),"data-radix-menu-content":"",dir:g.dir},w,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:Y(v.onKeyDown,S=>{const W=S.target.closest("[data-radix-menu-content]")===S.currentTarget,X=S.ctrlKey||S.altKey||S.metaKey,ae=S.key.length===1;W&&(S.key==="Tab"&&S.preventDefault(),!X&&ae&&O(S.key));const be=T.current;if(S.target!==be||!lp.includes(S.key))return;S.preventDefault();const pe=C().filter(U=>!U.disabled).map(U=>U.ref.current);si.includes(S.key)&&pe.reverse(),jp(pe)}),onBlur:Y(e.onBlur,S=>{S.currentTarget.contains(S.target)||(window.clearTimeout(B.current),K.current="")}),onPointerMove:Y(e.onPointerMove,Zt(S=>{const F=S.target,W=z.current!==S.clientX;if(S.currentTarget.contains(F)&&W){const X=S.clientX>z.current?"right":"left";G.current=X,z.current=S.clientX}}))})))))))}),Cp=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,L({},r,{ref:t}))}),Dr="MenuItem",pi="menu.itemSelect",jr=i.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,a=i.useRef(null),s=qt(Dr,e.__scopeMenu),c=Mr(Dr,e.__scopeMenu),l=ve(t,a),d=i.useRef(!1),f=()=>{const u=a.current;if(!n&&u){const m=new CustomEvent(pi,{bubbles:!0,cancelable:!0});u.addEventListener(pi,h=>r?.(h),{once:!0}),bo(u,m),m.defaultPrevented?d.current=!1:s.onClose()}};return i.createElement(mi,L({},o,{ref:l,disabled:n,onClick:Y(e.onClick,f),onPointerDown:u=>{var m;(m=e.onPointerDown)===null||m===void 0||m.call(e,u),d.current=!0},onPointerUp:Y(e.onPointerUp,u=>{var m;d.current||(m=u.currentTarget)===null||m===void 0||m.click()}),onKeyDown:Y(e.onKeyDown,u=>{const m=c.searchRef.current!=="";n||m&&u.key===" "||Or.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),mi=i.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,s=Mr(Dr,n),c=li(n),l=i.useRef(null),d=ve(t,l),[f,u]=i.useState(!1),[m,h]=i.useState("");return i.useEffect(()=>{const p=l.current;if(p){var v;h(((v=p.textContent)!==null&&v!==void 0?v:"").trim())}},[a.children]),i.createElement(Xt.ItemSlot,{scope:n,disabled:r,textValue:o??m},i.createElement(sp,L({asChild:!0},c,{focusable:!r}),i.createElement(fe.div,L({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},a,{ref:d,onPointerMove:Y(e.onPointerMove,Zt(p=>{r?s.onItemLeave(p):(s.onItemEnter(p),p.defaultPrevented||p.currentTarget.focus())})),onPointerLeave:Y(e.onPointerLeave,Zt(p=>s.onItemLeave(p))),onFocus:Y(e.onFocus,()=>u(!0)),onBlur:Y(e.onBlur,()=>u(!1))}))))}),Ep=i.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return i.createElement(vi,{scope:e.__scopeMenu,checked:n},i.createElement(jr,L({role:"menuitemcheckbox","aria-checked":Mn(n)?"mixed":n},o,{ref:t,"data-state":Lr(n),onSelect:Y(o.onSelect,()=>r?.(Mn(n)?!0:!n),{checkForDefaultPrevented:!1})})))}),Sp="MenuRadioGroup",[oh,_p]=pt(Sp,{value:void 0,onValueChange:()=>{}}),kp="MenuRadioItem",Tp=i.forwardRef((e,t)=>{const{value:n,...r}=e,o=_p(kp,e.__scopeMenu),a=n===o.value;return i.createElement(vi,{scope:e.__scopeMenu,checked:a},i.createElement(jr,L({role:"menuitemradio","aria-checked":a},r,{ref:t,"data-state":Lr(a),onSelect:Y(r.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})))}),hi="MenuItemIndicator",[vi,Pp]=pt(hi,{checked:!1}),Np=i.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,a=Pp(hi,n);return i.createElement(_t,{present:r||Mn(a.checked)||a.checked===!0},i.createElement(fe.span,L({},o,{ref:t,"data-state":Lr(a.checked)})))}),Op=i.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return i.createElement(fe.div,L({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))}),Ip="MenuSub",[ah,gi]=pt(Ip),In="MenuSubTrigger",Mp=i.forwardRef((e,t)=>{const n=mt(In,e.__scopeMenu),r=qt(In,e.__scopeMenu),o=gi(In,e.__scopeMenu),a=Mr(In,e.__scopeMenu),s=i.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:l}=a,d={__scopeMenu:e.__scopeMenu},f=i.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return i.useEffect(()=>f,[f]),i.useEffect(()=>{const u=c.current;return()=>{window.clearTimeout(u),l(null)}},[c,l]),i.createElement(di,L({asChild:!0},d),i.createElement(mi,L({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":bi(n.open)},e,{ref:tn(t,o.onTriggerChange),onClick:u=>{var m;(m=e.onClick)===null||m===void 0||m.call(e,u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Y(e.onPointerMove,Zt(u=>{a.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),f()},100))})),onPointerLeave:Y(e.onPointerLeave,Zt(u=>{var m;f();const h=(m=n.content)===null||m===void 0?void 0:m.getBoundingClientRect();if(h){var p;const v=(p=n.content)===null||p===void 0?void 0:p.dataset.side,y=v==="right",g=y?-5:5,w=h[y?"left":"right"],$=h[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:h.top},{x:$,y:h.top},{x:$,y:h.bottom},{x:w,y:h.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(u),u.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:Y(e.onKeyDown,u=>{const m=a.searchRef.current!=="";if(!(e.disabled||m&&u.key===" ")&&dp[r.dir].includes(u.key)){var h;n.onOpenChange(!0),(h=n.content)===null||h===void 0||h.focus(),u.preventDefault()}})})))}),Ap="MenuSubContent",Dp=i.forwardRef((e,t)=>{const n=fi(De,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=mt(De,e.__scopeMenu),s=qt(De,e.__scopeMenu),c=gi(Ap,e.__scopeMenu),l=i.useRef(null),d=ve(t,l);return i.createElement(Xt.Provider,{scope:e.__scopeMenu},i.createElement(_t,{present:r||a.open},i.createElement(Xt.Slot,{scope:e.__scopeMenu},i.createElement(Ar,L({id:c.contentId,"aria-labelledby":c.triggerId},o,{ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var u;s.isUsingKeyboardRef.current&&((u=l.current)===null||u===void 0||u.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:Y(e.onFocusOutside,f=>{f.target!==c.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:Y(e.onEscapeKeyDown,f=>{s.onClose(),f.preventDefault()}),onKeyDown:Y(e.onKeyDown,f=>{const u=f.currentTarget.contains(f.target),m=up[s.dir].includes(f.key);if(u&&m){var h;a.onOpenChange(!1),(h=c.trigger)===null||h===void 0||h.focus(),f.preventDefault()}})})))))});function bi(e){return e?"open":"closed"}function Mn(e){return e==="indeterminate"}function Lr(e){return Mn(e)?"indeterminate":e?"checked":"unchecked"}function jp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Lp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Fp(e,t,n){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let s=Lp(e,Math.max(a,0));o.length===1&&(s=s.filter(d=>d!==n));const l=s.find(d=>d.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Vp(e,t){const{x:n,y:r}=e;let o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const c=t[a].x,l=t[a].y,d=t[s].x,f=t[s].y;l>r!=f>r&&n<(d-c)*(r-l)/(f-l)+c&&(o=!o)}return o}function Bp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Vp(n,t)}function Zt(e){return t=>t.pointerType==="mouse"?e(t):void 0}const zp=vp,Wp=di,Rp=bp,Hp=xp,Up=Cp,Kp=jr,Gp=Ep,Yp=Tp,Xp=Np,qp=Op,Zp=Mp,Jp=Dp,wi="DropdownMenu",[Qp,ih]=st(wi,[ci]),Oe=ci(),[em,xi]=Qp(wi),tm=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:s,modal:c=!0}=e,l=Oe(t),d=i.useRef(null),[f=!1,u]=Ht({prop:o,defaultProp:a,onChange:s});return i.createElement(em,{scope:t,triggerId:wt(),triggerRef:d,contentId:wt(),open:f,onOpenChange:u,onOpenToggle:i.useCallback(()=>u(m=>!m),[u]),modal:c},i.createElement(zp,L({},l,{open:f,onOpenChange:u,dir:r,modal:c}),n))},nm="DropdownMenuTrigger",rm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=xi(nm,n),s=Oe(n);return i.createElement(Wp,L({asChild:!0},s),i.createElement(fe.button,L({type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:tn(t,a.triggerRef),onPointerDown:Y(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(a.onOpenToggle(),a.open||c.preventDefault())}),onKeyDown:Y(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&a.onOpenToggle(),c.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})))}),om=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Oe(t);return i.createElement(Rp,L({},r,n))},am="DropdownMenuContent",im=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xi(am,n),a=Oe(n),s=i.useRef(!1);return i.createElement(Hp,L({id:o.contentId,"aria-labelledby":o.triggerId},a,r,{ref:t,onCloseAutoFocus:Y(e.onCloseAutoFocus,c=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:Y(e.onInteractOutside,c=>{const l=c.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0,f=l.button===2||d;(!o.modal||f)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),sm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Up,L({},o,r,{ref:t}))}),cm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Kp,L({},o,r,{ref:t}))}),lm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Gp,L({},o,r,{ref:t}))}),dm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Yp,L({},o,r,{ref:t}))}),um=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Xp,L({},o,r,{ref:t}))}),fm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(qp,L({},o,r,{ref:t}))}),pm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Zp,L({},o,r,{ref:t}))}),mm=i.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(n);return i.createElement(Jp,L({},o,r,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))}),hm=tm,vm=rm,gm=om,yi=im,$i=sm,Ci=cm,Ei=lm,Si=dm,_i=um,ki=fm,Ti=pm,Pi=mm,bm=hm,wm=vm,xm=j.forwardRef(({className:e,inset:t,children:n,...r},o)=>x.jsxs(Ti,{ref:o,className:Q("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...r,children:[n,x.jsx(Qs,{className:"ml-auto h-4 w-4"})]}));xm.displayName=Ti.displayName;const ym=j.forwardRef(({className:e,...t},n)=>x.jsx(Pi,{ref:n,className:Q("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 z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}));ym.displayName=Pi.displayName;const Ni=j.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(gm,{children:x.jsx(yi,{ref:r,sideOffset:t,className:Q("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=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 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})}));Ni.displayName=yi.displayName;const Oi=j.forwardRef(({className:e,inset:t,...n},r)=>x.jsx(Ci,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",t&&"pl-8",e),...n}));Oi.displayName=Ci.displayName;const Ii=j.forwardRef(({className:e,children:t,checked:n,...r},o)=>x.jsxs(Ei,{ref:o,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),checked:n,...r,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(_i,{children:x.jsx(fo,{className:"h-4 w-4"})})}),t]}));Ii.displayName=Ei.displayName;const $m=j.forwardRef(({className:e,children:t,...n},r)=>x.jsxs(Si,{ref:r,className:Q("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none transition-colors data-[disabled]:pointer-events-none focus:bg-accent focus:text-accent-foreground data-[disabled]:opacity-50",e),...n,children:[x.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:x.jsx(_i,{children:x.jsx(rc,{className:"h-4 w-4 fill-current"})})}),t]}));$m.displayName=Si.displayName;const Cm=j.forwardRef(({className:e,inset:t,...n},r)=>x.jsx($i,{ref:r,className:Q("px-2 py-1.5 font-semibold text-sm",t&&"pl-8",e),...n}));Cm.displayName=$i.displayName;const Em=j.forwardRef(({className:e,...t},n)=>x.jsx(ki,{ref:n,className:Q("-mx-1 my-1 h-px bg-muted",e),...t}));Em.displayName=ki.displayName;function Sm(e){return x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[x.jsx("title",{children:"Add Row"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 6.667v6.666M6.667 10h6.666M6.5 17.5h7c1.4 0 2.1 0 2.635-.273a2.5 2.5 0 001.092-1.092c.273-.535.273-1.235.273-2.635v-7c0-1.4 0-2.1-.273-2.635a2.5 2.5 0 00-1.092-1.093C15.6 2.5 14.9 2.5 13.5 2.5h-7c-1.4 0-2.1 0-2.635.272a2.5 2.5 0 00-1.093 1.093C2.5 4.4 2.5 5.1 2.5 6.5v7c0 1.4 0 2.1.272 2.635a2.5 2.5 0 001.093 1.092C4.4 17.5 5.1 17.5 6.5 17.5z"})]})}function _m(e){return x.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"none",viewBox:"0 0 20 20",...e,children:[x.jsx("title",{children:"Remove Row"}),x.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M13.333 5v-.667c0-.933 0-1.4-.181-1.756a1.667 1.667 0 00-.729-.729c-.356-.181-.823-.181-1.756-.181H9.333c-.933 0-1.4 0-1.756.181-.314.16-.569.415-.729.729-.181.356-.181.823-.181 1.756V5m1.666 4.583v4.167m3.334-4.167v4.167M2.5 5h15m-1.667 0v9.333c0 1.4 0 2.1-.272 2.635a2.5 2.5 0 01-1.093 1.093c-.534.272-1.235.272-2.635.272H8.167c-1.4 0-2.1 0-2.635-.272a2.5 2.5 0 01-1.093-1.093c-.272-.535-.272-1.235-.272-2.635V5"})]})}function km(){const{hasSomeEntireRow:e,emptySize:t,staticRows:n,columns:r,onInsertNewRow:o,onRemoveRow:a,onColumnVisibilityChange:s,onRestoreColumnsVisibility:c}=je(),l=i.useMemo(()=>r.filter(({state:h})=>h.visible),[r]),d=i.useMemo(()=>r.length===l.length,[r.length,l.length]),f="Exibindo todas as colunas",u=`Exibindo ${l.length} de ${r.length} colunas`,m=d?f:u;return x.jsxs("div",{className:"sticky top-0 z-50 flex w-full items-center justify-between rounded-t-md border bg-[#EAF5FF] px-4 py-2.5",children:[x.jsxs("div",{className:"flex items-center gap-6",children:[x.jsx(pn,{delayDuration:25,children:x.jsxs(mn,{children:[x.jsx(hn,{asChild:!0,children:x.jsx(Nn,{disabled:n,size:"icon",variant:"ghost",onClick:o,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-add-new-row",children:x.jsx(Sm,{})})}),x.jsx(Kt,{children:x.jsx("p",{children:"Inserir linha"})})]})}),x.jsx(pn,{delayDuration:25,children:x.jsxs(mn,{children:[x.jsx(hn,{asChild:!0,children:x.jsx(Nn,{disabled:n||t||!e,size:"icon",variant:"ghost",onClick:a,className:"text-[#4A4A6A] transition-none active:bg-[#0085FF] hover:bg-[#8FD6FF] active:text-white","data-cypress":"table-delete-selected-row",children:x.jsx(_m,{})})}),x.jsx(Kt,{children:x.jsx("p",{children:"Excluir linha(s)"})})]})})]}),x.jsx("div",{className:"flex items-center gap-4",children:x.jsxs(bm,{children:[x.jsx(wm,{"data-cypress":"table-hide-columns-button",asChild:!0,className:"w-56 bg-white",children:x.jsxs(Nn,{variant:"outline",className:"justify-between px-2",children:[x.jsx("span",{className:"text-xs",children:m}),x.jsx(fc,{className:"h-4 w-4"})]})}),x.jsxs(Ni,{className:"w-56",children:[x.jsx(Oi,{onClick:c,className:"justify-between text-xs","data-cypress":"table-restore-columns",children:x.jsx("span",{children:"Reexibir todas as colunas"})}),r.map(({name:h,id:p,alphabetLetter:v,position:y,state:g})=>x.jsxs(Ii,{checked:g.visible,onCheckedChange:w=>s({columnId:p,visible:w}),onSelect:w=>w.preventDefault(),className:"justify-between text-xs","data-cypress":`table-hide-column-${p}`,children:[x.jsx("span",{children:h}),x.jsx("span",{className:"text-[10px] text-neutral-500",children:v})]},`spreadsheet__column__dropdown_checkbox__key__${p}__${y}`))]})]})})]})}function Tm(e){const{className:t,...n}=e;return x.jsx(Vs,{...n,children:x.jsxs(uo.Root,{className:Q(t,"h-full"),children:[x.jsx(km,{}),x.jsxs(uo.Matrix,{className:"scrollbar-thin overflow-y-clip overflow-x-scroll",children:[x.jsx(Hf,{className:"absolute z-50"}),x.jsx(gd,{}),x.jsx(Rf,{})]})]})})}function Pm(e){const{fileName:t="Declaração de viabilidade - Esgoto.pdf",fileSizeInMb:n="8.15MB • Versão 1",onDownload:r,onClick:o,state:a,...s}=e,c=d=>{(a==="Idle"||a==="Finished")&&r(),o?.(d)},l=a==="Disabled";return x.jsxs("button",{className:Q("flex h-[34px] items-center gap-4 rounded-md border border-[#E5E5F4] px-4 text-[#474772] transition-all ease-linear hover:shadow-md","disabled:border-[#E5E5F4] disabled:bg-[#E5E5F4] disabled:text-[#9292BA] disabled:shadow-none"),type:"button",onClick:c,disabled:l,"aria-disabled":l,...s,children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(vc,{className:"h-4 w-4 shrink-0"}),x.jsx("p",{className:"whitespace-nowrap font-bold text-[14px]",children:t}),x.jsx("p",{className:"whitespace-nowrap text-[10px]",children:n})]}),a==="Finished"&&x.jsx("div",{className:"flex w-[110px] items-center justify-end",children:x.jsx(pc,{className:"h-4 w-4 text-[#199652]"})}),a==="Loading"&&x.jsx("div",{className:"flex w-[110px] items-center justify-end",children:x.jsx(bc,{className:"h-4 w-4 shrink-0 animate-spin text-[#199652]"})}),x.jsx(Nm,{state:a})]})}function Nm({state:e}){return e==="Disabled"?x.jsxs("div",{className:"flex w-[110px] items-center text-[#9292BA]",children:[x.jsx(ho,{className:"mr-1 h-4 w-4 shrink-0 text-current"}),x.jsx("p",{className:"mr-2 whitespace-nowrap font-bold text-[10px] text-current",children:"Novo Arquivo"}),x.jsx(mo,{className:"h-4 w-4 text-[#9292BA]"})]}):e==="Idle"?x.jsxs("div",{className:"flex w-[110px] items-center text-[#4657E1]",children:[x.jsx(ho,{className:"mr-1 h-4 w-4 shrink-0 text-current"}),x.jsx("p",{className:"mr-2 whitespace-nowrap font-bold text-[10px] text-current",children:"Novo Arquivo"}),x.jsx(mo,{className:"h-4 w-4 text-[#474772]"})]}):null}const Om={Spreadsheet:Tm,FileUploader:Pm};Ge.CapLink=Om,Object.defineProperty(Ge,Symbol.toStringTag,{value:"Module"})});
165
165
  //# sourceMappingURL=index.umd.js.map