@mystaline/mysta-lib 1.0.0-alpha.13 → 1.0.0-alpha.14
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/mysta-lib.es.js +2738 -2726
- package/mysta-lib.system.js +18 -18
- package/package.json +1 -1
package/mysta-lib.system.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
System.register(["react","react-dom"],function(ke,V1){"use strict";var Te,as,Ot,lt,ls,y,bl,mn,Je,Yn,_l,us,cs,fs,ds,Cl,Gr,Sl;return{setters:[qe=>{Te=qe.default,as=qe.createContext,Ot=qe.useState,lt=qe.useMemo,ls=qe.useContext,y=qe,bl=qe.useLayoutEffect,mn=qe.useEffect,Je=qe.useCallback,Yn=qe.forwardRef,_l=qe.useRef,us=qe.useImperativeHandle,cs=qe.memo,fs=qe.createElement,ds=qe.cloneElement,Cl=qe.isValidElement},qe=>{Gr=qe,Sl=qe.default}],execute:function(){var qe=document.createElement("style");qe.textContent=`html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.right-2{right:.5rem}.col-span-2{grid-column:span 2 / span 2}.m-3{margin:.75rem}.m-auto{margin:auto}.flex{display:flex}.grid{display:grid}.h-max{height:-moz-max-content;height:max-content}.min-h-\\[200px\\]{min-height:200px}.\\!w-0{width:0px!important}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\\[200px\\]{min-width:200px}.translate-x-8{--tw-translate-x: 2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--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))}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-y-2{row-gap:.5rem}.rounded{border-radius:.25rem}.border{border-width:1px}.p-1{padding:.25rem}.p-3{padding:.75rem}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes dialog-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes dialog-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes dialog-scaleIn{0%{transform:translate(-50%,-50%) scale(0)}to{transform:translate(-50%,-50%) scale(1)}}@keyframes dialog-scaleOut{0%{transform:translate(-50%,-50%) scale(1)}to{transform:translate(-50%,-50%) scale(0)}}.animate-dialog[data-state=open]{animation:dialog-fadeIn .15s ease-out,dialog-scaleIn .2s ease-out}.animate-dialog[data-state=closed]{animation:dialog-fadeOut .3s ease-in,dialog-scaleOut .2s ease-out}@keyframes dropdown-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes dropdown-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes dropdown-expand{0%{height:0}to{height:-moz-max-content;height:max-content}}@keyframes dropdown-collapse{0%{height:-moz-max-content;height:max-content}to{height:0}}.animate-dropdown[data-state=open]{animation:dropdown-fadeIn .15s ease-out,dropdown-expand .2s ease-out}.animate-dropdown[data-state=closed]{animation:dropdown-fadeOut .3s ease-in,dropdown-collapse .2s ease-out}.hover\\:\\!bg-white:hover{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!text-white:hover{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:\\!w-full{width:100%!important}.group:hover .group-hover\\:translate-x-2\\.5{--tw-translate-x: .625rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:translate-y-1{--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))}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(qe),ke("useComponentPreset",
|
|
1
|
+
System.register(["react","react-dom"],function(ke,V1){"use strict";var Te,as,Ot,lt,ls,y,_l,mn,Je,Yn,Cl,us,cs,fs,ds,Sl,Gr,El;return{setters:[qe=>{Te=qe.default,as=qe.createContext,Ot=qe.useState,lt=qe.useMemo,ls=qe.useContext,y=qe,_l=qe.useLayoutEffect,mn=qe.useEffect,Je=qe.useCallback,Yn=qe.forwardRef,Cl=qe.useRef,us=qe.useImperativeHandle,cs=qe.memo,fs=qe.createElement,ds=qe.cloneElement,Sl=qe.isValidElement},qe=>{Gr=qe,El=qe.default}],execute:function(){var qe=document.createElement("style");qe.textContent=`html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}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}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.bottom-2{bottom:.5rem}.right-2{right:.5rem}.col-span-2{grid-column:span 2 / span 2}.m-3{margin:.75rem}.m-auto{margin:auto}.flex{display:flex}.grid{display:grid}.h-max{height:-moz-max-content;height:max-content}.min-h-\\[200px\\]{min-height:200px}.\\!w-0{width:0px!important}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-\\[200px\\]{min-width:200px}.translate-x-8{--tw-translate-x: 2rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1{--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))}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-3{gap:.75rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-y-2{row-gap:.5rem}.rounded{border-radius:.25rem}.border{border-width:1px}.p-1{padding:.25rem}.p-3{padding:.75rem}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.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)}.ring-transparent{--tw-ring-color: transparent}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}@keyframes dialog-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes dialog-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes dialog-scaleIn{0%{transform:translate(-50%,-50%) scale(0)}to{transform:translate(-50%,-50%) scale(1)}}@keyframes dialog-scaleOut{0%{transform:translate(-50%,-50%) scale(1)}to{transform:translate(-50%,-50%) scale(0)}}.animate-dialog[data-state=open]{animation:dialog-fadeIn .15s ease-out,dialog-scaleIn .2s ease-out}.animate-dialog[data-state=closed]{animation:dialog-fadeOut .3s ease-in,dialog-scaleOut .2s ease-out}@keyframes dropdown-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes dropdown-fadeOut{0%{opacity:1}to{opacity:0}}@keyframes dropdown-expand{0%{height:0}to{height:-moz-max-content;height:max-content}}@keyframes dropdown-collapse{0%{height:-moz-max-content;height:max-content}to{height:0}}.animate-dropdown[data-state=open]{animation:dropdown-fadeIn .15s ease-out,dropdown-expand .2s ease-out}.animate-dropdown[data-state=closed]{animation:dropdown-fadeOut .3s ease-in,dropdown-collapse .2s ease-out}.hover\\:\\!bg-white:hover{--tw-bg-opacity: 1 !important;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))!important}.hover\\:\\!text-white:hover{--tw-text-opacity: 1 !important;color:rgb(255 255 255 / var(--tw-text-opacity, 1))!important}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\\:\\!w-full{width:100%!important}.group:hover .group-hover\\:translate-x-2\\.5{--tw-translate-x: .625rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:translate-y-1{--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))}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(qe),ke("useComponentPreset",Jt);const zh={primary:"text-white bg-primary-500 hover:bg-primary-600",secondary:"text-white bg-secondary-500 hover:bg-secondary-600",danger:"text-white bg-danger-500 hover:bg-danger-600",success:"text-white bg-success-500 hover:bg-success-600",warning:"text-white bg-warning-500 hover:bg-warning-600",info:"text-white bg-info-500 hover:bg-info-600"},Kh={primary:"text-primary-500 ring-primary-500 hover:bg-primary-50",secondary:"text-secondary-500 ring-secondary-500 hover:bg-secondary-50",danger:"text-danger-500 ring-danger-500 hover:bg-danger-50",success:"text-success-500 ring-success-500 hover:bg-success-50",warning:"text-warning-500 ring-warning-500 hover:bg-warning-50",info:"text-info-500 ring-info-500 hover:bg-info-50"},qh={primary:"text-primary-500 ring-transparent hover:bg-primary-50",secondary:"text-secondary-500 ring-transparent hover:bg-secondary-50",danger:"text-danger-500 ring-transparent hover:bg-danger-50",success:"text-success-500 ring-transparent hover:bg-success-50",warning:"text-warning-500 ring-transparent hover:bg-warning-50",info:"text-info-500 ring-transparent hover:bg-info-50"},Gh={primary:"!text-primary-500 hover:!text-white",secondary:"!text-secondary-500 hover:!text-white",danger:"!text-danger-500 hover:!text-white",success:"!text-success-500 hover:!text-white",warning:"!text-warning-500 hover:!text-white",info:"!text-info-500 hover:!text-white"},Yh={primary:"!bg-primary-500 hover:!bg-white",secondary:"!bg-secondary-500 hover:!bg-white",danger:"!bg-danger-500 hover:!bg-white",success:"!bg-success-500 hover:!bg-white",warning:"!bg-warning-500 hover:!bg-white",info:"!bg-info-500 hover:!bg-white"},Xh=ke("getSeverity",(n="primary",i)=>{const{outlined:r,text:s,color:a,background:u}=i??{};return s?qh[n]:r?Kh[n]:a?Gh[n]:u?Yh[n]:zh[n]});var Yr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Al={exports:{}},Ti={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@ System.register(["react","react-dom"],function(ke,V1){"use strict";var Te,as,Ot,
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var Zh=Te,Jh=Symbol.for("react.element"),Qh=Symbol.for("react.fragment"),ep=Object.prototype.hasOwnProperty,tp=Zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,np={key:!0,ref:!0,__self:!0,__source:!0};function Al(n,i,r){var s,a={},u=null,c=null;r!==void 0&&(u=""+r),i.key!==void 0&&(u=""+i.key),i.ref!==void 0&&(c=i.ref);for(s in i)ep.call(i,s)&&!np.hasOwnProperty(s)&&(a[s]=i[s]);if(n&&n.defaultProps)for(s in i=n.defaultProps,i)a[s]===void 0&&(a[s]=i[s]);return{$$typeof:Jh,type:n,key:u,ref:c,props:a,_owner:tp.current}}Ti.Fragment=Qh,Ti.jsx=Al,Ti.jsxs=Al,El.exports=Ti;var b=El.exports;const Rl=as(null),rp=ke("KanbanProvider",({children:n,onUpdate:i})=>{const[r,s]=Ot(null),[a,u]=Ot([]),c=lt(()=>({dragItem:r,setDragItem:s,cardElements:a,setCardElements:u,onUpdate:i}),[r,s,a,u,i]);return b.jsx(Rl.Provider,{value:c,children:n})}),ip=ke("useKanban",()=>{const n=ls(Rl);if(!n)throw new Error("useKanban must be used within a KanbanProvider");return n});function Pl(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Ol(...n){return i=>{let r=!1;const s=n.map(a=>{const u=Pl(a,i);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let a=0;a<s.length;a++){const u=s[a];typeof u=="function"?u():Pl(n[a],null)}}}}function We(...n){return y.useCallback(Ol(...n),n)}function vr(n){const i=op(n),r=y.forwardRef((s,a)=>{const{children:u,...c}=s,f=y.Children.toArray(u),p=f.find(ap);if(p){const v=p.props.children,m=f.map(w=>w===p?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:w);return b.jsx(i,{...c,ref:a,children:y.isValidElement(v)?y.cloneElement(v,void 0,m):null})}return b.jsx(i,{...c,ref:a,children:u})});return r.displayName=`${n}.Slot`,r}function op(n){const i=y.forwardRef((r,s)=>{const{children:a,...u}=r;if(y.isValidElement(a)){const c=up(a),f=lp(u,a.props);return a.type!==y.Fragment&&(f.ref=s?Ol(s,c):c),y.cloneElement(a,f)}return y.Children.count(a)>1?y.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Tl=Symbol("radix.slottable");function sp(n){const i=({children:r})=>b.jsx(b.Fragment,{children:r});return i.displayName=`${n}.Slottable`,i.__radixId=Tl,i}function ap(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Tl}function lp(n,i){const r={...i};for(const s in i){const a=n[s],u=i[s];/^on[A-Z]/.test(s)?a&&u?r[s]=(...f)=>{u(...f),a(...f)}:a&&(r[s]=a):s==="style"?r[s]={...a,...u}:s==="className"&&(r[s]=[a,u].filter(Boolean).join(" "))}return{...n,...r}}function up(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var cp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=cp.reduce((n,i)=>{const r=vr(`Primitive.${i}`),s=y.forwardRef((a,u)=>{const{asChild:c,...f}=a,p=c?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(p,{...f,ref:u})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{});function fp(n,i){n&&Gr.flushSync(()=>n.dispatchEvent(i))}var Il=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),dp="VisuallyHidden",Dl=y.forwardRef((n,i)=>b.jsx(Ie.span,{...n,ref:i,style:{...Il,...n.style}}));Dl.displayName=dp;var hp=Dl;function pp(n,i){const r=y.createContext(i),s=u=>{const{children:c,...f}=u,p=y.useMemo(()=>f,Object.values(f));return b.jsx(r.Provider,{value:p,children:c})};s.displayName=n+"Provider";function a(u){const c=y.useContext(r);if(c)return c;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,a]}function mr(n,i=[]){let r=[];function s(u,c){const f=y.createContext(c),p=r.length;r=[...r,c];const v=w=>{var A;const{scope:C,children:R,...D}=w,x=((A=C==null?void 0:C[n])==null?void 0:A[p])||f,E=y.useMemo(()=>D,Object.values(D));return b.jsx(x.Provider,{value:E,children:R})};v.displayName=u+"Provider";function m(w,C){var x;const R=((x=C==null?void 0:C[n])==null?void 0:x[p])||f,D=y.useContext(R);if(D)return D;if(c!==void 0)return c;throw new Error(`\`${w}\` must be used within \`${u}\``)}return[v,m]}const a=()=>{const u=r.map(c=>y.createContext(c));return function(f){const p=(f==null?void 0:f[n])||u;return y.useMemo(()=>({[`__scope${n}`]:{...f,[n]:p}}),[f,p])}};return a.scopeName=n,[s,gp(a,...i)]}function gp(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const c=s.reduce((f,{useScope:p,scopeName:v})=>{const w=p(u)[`__scope${v}`];return{...f,...w}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:c}),[c])}};return r.scopeName=i.scopeName,r}function vp(n){const i=n+"CollectionProvider",[r,s]=mr(i),[a,u]=r(i,{collectionRef:{current:null},itemMap:new Map}),c=x=>{const{scope:E,children:A}=x,O=Te.useRef(null),I=Te.useRef(new Map).current;return b.jsx(a,{scope:E,itemMap:I,collectionRef:O,children:A})};c.displayName=i;const f=n+"CollectionSlot",p=vr(f),v=Te.forwardRef((x,E)=>{const{scope:A,children:O}=x,I=u(f,A),F=We(E,I.collectionRef);return b.jsx(p,{ref:F,children:O})});v.displayName=f;const m=n+"CollectionItemSlot",w="data-radix-collection-item",C=vr(m),R=Te.forwardRef((x,E)=>{const{scope:A,children:O,...I}=x,F=Te.useRef(null),M=We(E,F),H=u(m,A);return Te.useEffect(()=>(H.itemMap.set(F,{ref:F,...I}),()=>void H.itemMap.delete(F))),b.jsx(C,{[w]:"",ref:M,children:O})});R.displayName=m;function D(x){const E=u(n+"CollectionConsumer",x);return Te.useCallback(()=>{const O=E.collectionRef.current;if(!O)return[];const I=Array.from(O.querySelectorAll(`[${w}]`));return Array.from(E.itemMap.values()).sort((H,B)=>I.indexOf(H.ref.current)-I.indexOf(B.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:c,Slot:v,ItemSlot:R},D,s]}function Ce(n,i,{checkForDefaultPrevented:r=!0}={}){return function(a){if(n==null||n(a),r===!1||!a.defaultPrevented)return i==null?void 0:i(a)}}var dt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},mp=y[" useInsertionEffect ".trim().toString()]||dt;function Xr({prop:n,defaultProp:i,onChange:r=()=>{},caller:s}){const[a,u,c]=yp({defaultProp:i,onChange:r}),f=n!==void 0,p=f?n:a;{const m=y.useRef(n!==void 0);y.useEffect(()=>{const w=m.current;w!==f&&console.warn(`${s} is changing from ${w?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,s])}const v=y.useCallback(m=>{var w;if(f){const C=wp(m)?m(n):m;C!==n&&((w=c.current)==null||w.call(c,C))}else u(m)},[f,n,u,c]);return[p,v]}function yp({defaultProp:n,onChange:i}){const[r,s]=y.useState(n),a=y.useRef(r),u=y.useRef(i);return mp(()=>{u.current=i},[i]),y.useEffect(()=>{var c;a.current!==r&&((c=u.current)==null||c.call(u,r),a.current=r)},[r,a]),[r,s,u]}function wp(n){return typeof n=="function"}function xp(n,i){return y.useReducer((r,s)=>i[r][s]??r,n)}var Xn=n=>{const{present:i,children:r}=n,s=bp(i),a=typeof r=="function"?r({present:s.isPresent}):y.Children.only(r),u=We(s.ref,_p(a));return typeof r=="function"||s.isPresent?y.cloneElement(a,{ref:u}):null};Xn.displayName="Presence";function bp(n){const[i,r]=y.useState(),s=y.useRef(null),a=y.useRef(n),u=y.useRef("none"),c=n?"mounted":"unmounted",[f,p]=xp(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const v=Ii(s.current);u.current=f==="mounted"?v:"none"},[f]),dt(()=>{const v=s.current,m=a.current;if(m!==n){const C=u.current,R=Ii(v);n?p("MOUNT"):R==="none"||(v==null?void 0:v.display)==="none"?p("UNMOUNT"):p(m&&C!==R?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,p]),dt(()=>{if(i){let v;const m=i.ownerDocument.defaultView??window,w=R=>{const x=Ii(s.current).includes(R.animationName);if(R.target===i&&x&&(p("ANIMATION_END"),!a.current)){const E=i.style.animationFillMode;i.style.animationFillMode="forwards",v=m.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=E)})}},C=R=>{R.target===i&&(u.current=Ii(s.current))};return i.addEventListener("animationstart",C),i.addEventListener("animationcancel",w),i.addEventListener("animationend",w),()=>{m.clearTimeout(v),i.removeEventListener("animationstart",C),i.removeEventListener("animationcancel",w),i.removeEventListener("animationend",w)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:y.useCallback(v=>{s.current=v?getComputedStyle(v):null,r(v)},[])}}function Ii(n){return(n==null?void 0:n.animationName)||"none"}function _p(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var Cp=y[" useId ".trim().toString()]||(()=>{}),Sp=0;function In(n){const[i,r]=y.useState(Cp());return dt(()=>{r(s=>s??String(Sp++))},[n]),i?`radix-${i}`:""}var Ep=y.createContext(void 0);function Ap(n){const i=y.useContext(Ep);return n||i||"ltr"}function Zn(n){const i=y.useRef(n);return y.useEffect(()=>{i.current=n}),y.useMemo(()=>(...r)=>{var s;return(s=i.current)==null?void 0:s.call(i,...r)},[])}function Rp(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n);y.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var Pp="DismissableLayer",hs="dismissableLayer.update",Op="dismissableLayer.pointerDownOutside",Tp="dismissableLayer.focusOutside",Nl,Ml=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zr=y.forwardRef((n,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...p}=n,v=y.useContext(Ml),[m,w]=y.useState(null),C=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,R]=y.useState({}),D=We(i,B=>w(B)),x=Array.from(v.layers),[E]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),A=x.indexOf(E),O=m?x.indexOf(m):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,F=O>=A,M=Np(B=>{const K=B.target,te=[...v.branches].some(he=>he.contains(K));!F||te||(a==null||a(B),c==null||c(B),B.defaultPrevented||f==null||f())},C),H=Mp(B=>{const K=B.target;[...v.branches].some(he=>he.contains(K))||(u==null||u(B),c==null||c(B),B.defaultPrevented||f==null||f())},C);return Rp(B=>{O===v.layers.size-1&&(s==null||s(B),!B.defaultPrevented&&f&&(B.preventDefault(),f()))},C),y.useEffect(()=>{if(m)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Nl=C.body.style.pointerEvents,C.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(m)),v.layers.add(m),Ll(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(C.body.style.pointerEvents=Nl)}},[m,C,r,v]),y.useEffect(()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),Ll())},[m,v]),y.useEffect(()=>{const B=()=>R({});return document.addEventListener(hs,B),()=>document.removeEventListener(hs,B)},[]),b.jsx(Ie.div,{...p,ref:D,style:{pointerEvents:I?F?"auto":"none":void 0,...n.style},onFocusCapture:Ce(n.onFocusCapture,H.onFocusCapture),onBlurCapture:Ce(n.onBlurCapture,H.onBlurCapture),onPointerDownCapture:Ce(n.onPointerDownCapture,M.onPointerDownCapture)})});Zr.displayName=Pp;var Ip="DismissableLayerBranch",Dp=y.forwardRef((n,i)=>{const r=y.useContext(Ml),s=y.useRef(null),a=We(i,s);return y.useEffect(()=>{const u=s.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),b.jsx(Ie.div,{...n,ref:a})});Dp.displayName=Ip;function Np(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n),s=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const u=f=>{if(f.target&&!s.current){let p=function(){Fl(Op,r,v,{discrete:!0})};const v={originalEvent:f};f.pointerType==="touch"?(i.removeEventListener("click",a.current),a.current=p,i.addEventListener("click",a.current,{once:!0})):p()}else i.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{i.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),i.removeEventListener("pointerdown",u),i.removeEventListener("click",a.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function Mp(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n),s=y.useRef(!1);return y.useEffect(()=>{const a=u=>{u.target&&!s.current&&Fl(Tp,r,{originalEvent:u},{discrete:!1})};return i.addEventListener("focusin",a),()=>i.removeEventListener("focusin",a)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ll(){const n=new CustomEvent(hs);document.dispatchEvent(n)}function Fl(n,i,r,{discrete:s}){const a=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});i&&a.addEventListener(n,i,{once:!0}),s?fp(a,u):a.dispatchEvent(u)}var ps="focusScope.autoFocusOnMount",gs="focusScope.autoFocusOnUnmount",kl={bubbles:!1,cancelable:!0},Lp="FocusScope",Di=y.forwardRef((n,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...c}=n,[f,p]=y.useState(null),v=Zn(a),m=Zn(u),w=y.useRef(null),C=We(i,x=>p(x)),R=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let x=function(I){if(R.paused||!f)return;const F=I.target;f.contains(F)?w.current=F:Dn(w.current,{select:!0})},E=function(I){if(R.paused||!f)return;const F=I.relatedTarget;F!==null&&(f.contains(F)||Dn(w.current,{select:!0}))},A=function(I){if(document.activeElement===document.body)for(const M of I)M.removedNodes.length>0&&Dn(f)};document.addEventListener("focusin",x),document.addEventListener("focusout",E);const O=new MutationObserver(A);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",E),O.disconnect()}}},[s,f,R.paused]),y.useEffect(()=>{if(f){Wl.add(R);const x=document.activeElement;if(!f.contains(x)){const A=new CustomEvent(ps,kl);f.addEventListener(ps,v),f.dispatchEvent(A),A.defaultPrevented||(Fp(jp(Bl(f)),{select:!0}),document.activeElement===x&&Dn(f))}return()=>{f.removeEventListener(ps,v),setTimeout(()=>{const A=new CustomEvent(gs,kl);f.addEventListener(gs,m),f.dispatchEvent(A),A.defaultPrevented||Dn(x??document.body,{select:!0}),f.removeEventListener(gs,m),Wl.remove(R)},0)}}},[f,v,m,R]);const D=y.useCallback(x=>{if(!r&&!s||R.paused)return;const E=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,A=document.activeElement;if(E&&A){const O=x.currentTarget,[I,F]=kp(O);I&&F?!x.shiftKey&&A===F?(x.preventDefault(),r&&Dn(I,{select:!0})):x.shiftKey&&A===I&&(x.preventDefault(),r&&Dn(F,{select:!0})):A===O&&x.preventDefault()}},[r,s,R.paused]);return b.jsx(Ie.div,{tabIndex:-1,...c,ref:C,onKeyDown:D})});Di.displayName=Lp;function Fp(n,{select:i=!1}={}){const r=document.activeElement;for(const s of n)if(Dn(s,{select:i}),document.activeElement!==r)return}function kp(n){const i=Bl(n),r=Vl(i,n),s=Vl(i.reverse(),n);return[r,s]}function Bl(n){const i=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function Vl(n,i){for(const r of n)if(!Bp(r,{upTo:i}))return r}function Bp(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Vp(n){return n instanceof HTMLInputElement&&"select"in n}function Dn(n,{select:i=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&Vp(n)&&i&&n.select()}}var Wl=Wp();function Wp(){let n=[];return{add(i){const r=n[0];i!==r&&(r==null||r.pause()),n=jl(n,i),n.unshift(i)},remove(i){var r;n=jl(n,i),(r=n[0])==null||r.resume()}}}function jl(n,i){const r=[...n],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function jp(n){return n.filter(i=>i.tagName!=="A")}var Up="Portal",Ni=y.forwardRef((n,i)=>{var f;const{container:r,...s}=n,[a,u]=y.useState(!1);dt(()=>u(!0),[]);const c=r||a&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Sl.createPortal(b.jsx(Ie.div,{...s,ref:i}),c):null});Ni.displayName=Up;var vs=0;function ms(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Ul()),document.body.insertAdjacentElement("beforeend",n[1]??Ul()),vs++,()=>{vs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),vs--}},[])}function Ul(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var an=function(){return an=Object.assign||function(i){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(i[u]=r[u])}return i},an.apply(this,arguments)};function $l(n,i){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(r[s[a]]=n[s[a]]);return r}function $p(n,i,r){if(r||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))}typeof SuppressedError=="function"&&SuppressedError;var Mi="right-scroll-bar-position",Li="width-before-scroll-bar",Hp="with-scroll-bars-hidden",zp="--removed-body-scroll-bar-size";function ys(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function Kp(n,i){var r=Ot(function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=i,r.facade}var qp=typeof window<"u"?y.useLayoutEffect:y.useEffect,Hl=new WeakMap;function Gp(n,i){var r=Kp(null,function(s){return n.forEach(function(a){return ys(a,s)})});return qp(function(){var s=Hl.get(r);if(s){var a=new Set(s),u=new Set(n),c=r.current;a.forEach(function(f){u.has(f)||ys(f,null)}),u.forEach(function(f){a.has(f)||ys(f,c)})}Hl.set(r,n)},[n]),r}function Yp(n){return n}function Xp(n,i){i===void 0&&(i=Yp);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(u){var c=i(u,s);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(s=!0;r.length;){var c=r;r=[],c.forEach(u)}r={push:function(f){return u(f)},filter:function(){return r}}},assignMedium:function(u){s=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(u),c=r}var p=function(){var m=c;c=[],m.forEach(u)},v=function(){return Promise.resolve().then(p)};v(),r={push:function(m){c.push(m),v()},filter:function(m){return c=c.filter(m),r}}}};return a}function Zp(n){n===void 0&&(n={});var i=Xp(null);return i.options=an({async:!0,ssr:!1},n),i}var zl=function(n){var i=n.sideCar,r=$l(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,an({},r))};zl.isSideCarExport=!0;function Jp(n,i){return n.useMedium(i),zl}var Kl=Zp(),ws=function(){},Fi=y.forwardRef(function(n,i){var r=y.useRef(null),s=y.useState({onScrollCapture:ws,onWheelCapture:ws,onTouchMoveCapture:ws}),a=s[0],u=s[1],c=n.forwardProps,f=n.children,p=n.className,v=n.removeScrollBar,m=n.enabled,w=n.shards,C=n.sideCar,R=n.noIsolation,D=n.inert,x=n.allowPinchZoom,E=n.as,A=E===void 0?"div":E,O=n.gapMode,I=$l(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=C,M=Gp([r,i]),H=an(an({},I),a);return y.createElement(y.Fragment,null,m&&y.createElement(F,{sideCar:Kl,removeScrollBar:v,shards:w,noIsolation:R,inert:D,setCallbacks:u,allowPinchZoom:!!x,lockRef:r,gapMode:O}),c?y.cloneElement(y.Children.only(f),an(an({},H),{ref:M})):y.createElement(A,an({},H,{className:p,ref:M}),f))});Fi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fi.classNames={fullWidth:Li,zeroRight:Mi};var Qp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eg(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=Qp();return i&&n.setAttribute("nonce",i),n}function tg(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function ng(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var rg=function(){var n=0,i=null;return{add:function(r){n==0&&(i=eg())&&(tg(i,r),ng(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},ig=function(){var n=rg();return function(i,r){y.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&r])}},ql=function(){var n=ig(),i=function(r){var s=r.styles,a=r.dynamic;return n(s,a),null};return i},og={left:0,top:0,right:0,gap:0},xs=function(n){return parseInt(n||"",10)||0},sg=function(n){var i=window.getComputedStyle(document.body),r=i[n==="padding"?"paddingLeft":"marginLeft"],s=i[n==="padding"?"paddingTop":"marginTop"],a=i[n==="padding"?"paddingRight":"marginRight"];return[xs(r),xs(s),xs(a)]},ag=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return og;var i=sg(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},lg=ql(),yr="data-scroll-locked",ug=function(n,i,r,s){var a=n.left,u=n.top,c=n.right,f=n.gap;return r===void 0&&(r="margin"),`
|
|
10
|
+
*/var Zh=Te,Jh=Symbol.for("react.element"),Qh=Symbol.for("react.fragment"),ep=Object.prototype.hasOwnProperty,tp=Zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,np={key:!0,ref:!0,__self:!0,__source:!0};function Rl(n,i,r){var s,a={},u=null,c=null;r!==void 0&&(u=""+r),i.key!==void 0&&(u=""+i.key),i.ref!==void 0&&(c=i.ref);for(s in i)ep.call(i,s)&&!np.hasOwnProperty(s)&&(a[s]=i[s]);if(n&&n.defaultProps)for(s in i=n.defaultProps,i)a[s]===void 0&&(a[s]=i[s]);return{$$typeof:Jh,type:n,key:u,ref:c,props:a,_owner:tp.current}}Ti.Fragment=Qh,Ti.jsx=Rl,Ti.jsxs=Rl,Al.exports=Ti;var b=Al.exports;const Pl=as(null),rp=ke("KanbanProvider",({children:n,onUpdate:i})=>{const[r,s]=Ot(null),[a,u]=Ot([]),c=lt(()=>({dragItem:r,setDragItem:s,cardElements:a,setCardElements:u,onUpdate:i}),[r,s,a,u,i]);return b.jsx(Pl.Provider,{value:c,children:n})}),ip=ke("useKanban",()=>{const n=ls(Pl);if(!n)throw new Error("useKanban must be used within a KanbanProvider");return n});function Ol(n,i){if(typeof n=="function")return n(i);n!=null&&(n.current=i)}function Tl(...n){return i=>{let r=!1;const s=n.map(a=>{const u=Ol(a,i);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let a=0;a<s.length;a++){const u=s[a];typeof u=="function"?u():Ol(n[a],null)}}}}function We(...n){return y.useCallback(Tl(...n),n)}function vr(n){const i=op(n),r=y.forwardRef((s,a)=>{const{children:u,...c}=s,f=y.Children.toArray(u),p=f.find(ap);if(p){const v=p.props.children,m=f.map(w=>w===p?y.Children.count(v)>1?y.Children.only(null):y.isValidElement(v)?v.props.children:null:w);return b.jsx(i,{...c,ref:a,children:y.isValidElement(v)?y.cloneElement(v,void 0,m):null})}return b.jsx(i,{...c,ref:a,children:u})});return r.displayName=`${n}.Slot`,r}function op(n){const i=y.forwardRef((r,s)=>{const{children:a,...u}=r;if(y.isValidElement(a)){const c=up(a),f=lp(u,a.props);return a.type!==y.Fragment&&(f.ref=s?Tl(s,c):c),y.cloneElement(a,f)}return y.Children.count(a)>1?y.Children.only(null):null});return i.displayName=`${n}.SlotClone`,i}var Il=Symbol("radix.slottable");function sp(n){const i=({children:r})=>b.jsx(b.Fragment,{children:r});return i.displayName=`${n}.Slottable`,i.__radixId=Il,i}function ap(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Il}function lp(n,i){const r={...i};for(const s in i){const a=n[s],u=i[s];/^on[A-Z]/.test(s)?a&&u?r[s]=(...f)=>{u(...f),a(...f)}:a&&(r[s]=a):s==="style"?r[s]={...a,...u}:s==="className"&&(r[s]=[a,u].filter(Boolean).join(" "))}return{...n,...r}}function up(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var cp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ie=cp.reduce((n,i)=>{const r=vr(`Primitive.${i}`),s=y.forwardRef((a,u)=>{const{asChild:c,...f}=a,p=c?r:i;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(p,{...f,ref:u})});return s.displayName=`Primitive.${i}`,{...n,[i]:s}},{});function fp(n,i){n&&Gr.flushSync(()=>n.dispatchEvent(i))}var Dl=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),dp="VisuallyHidden",Nl=y.forwardRef((n,i)=>b.jsx(Ie.span,{...n,ref:i,style:{...Dl,...n.style}}));Nl.displayName=dp;var hp=Nl;function pp(n,i){const r=y.createContext(i),s=u=>{const{children:c,...f}=u,p=y.useMemo(()=>f,Object.values(f));return b.jsx(r.Provider,{value:p,children:c})};s.displayName=n+"Provider";function a(u){const c=y.useContext(r);if(c)return c;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[s,a]}function mr(n,i=[]){let r=[];function s(u,c){const f=y.createContext(c),p=r.length;r=[...r,c];const v=w=>{var R;const{scope:_,children:A,...D}=w,x=((R=_==null?void 0:_[n])==null?void 0:R[p])||f,E=y.useMemo(()=>D,Object.values(D));return b.jsx(x.Provider,{value:E,children:A})};v.displayName=u+"Provider";function m(w,_){var x;const A=((x=_==null?void 0:_[n])==null?void 0:x[p])||f,D=y.useContext(A);if(D)return D;if(c!==void 0)return c;throw new Error(`\`${w}\` must be used within \`${u}\``)}return[v,m]}const a=()=>{const u=r.map(c=>y.createContext(c));return function(f){const p=(f==null?void 0:f[n])||u;return y.useMemo(()=>({[`__scope${n}`]:{...f,[n]:p}}),[f,p])}};return a.scopeName=n,[s,gp(a,...i)]}function gp(...n){const i=n[0];if(n.length===1)return i;const r=()=>{const s=n.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(u){const c=s.reduce((f,{useScope:p,scopeName:v})=>{const w=p(u)[`__scope${v}`];return{...f,...w}},{});return y.useMemo(()=>({[`__scope${i.scopeName}`]:c}),[c])}};return r.scopeName=i.scopeName,r}function vp(n){const i=n+"CollectionProvider",[r,s]=mr(i),[a,u]=r(i,{collectionRef:{current:null},itemMap:new Map}),c=x=>{const{scope:E,children:R}=x,O=Te.useRef(null),I=Te.useRef(new Map).current;return b.jsx(a,{scope:E,itemMap:I,collectionRef:O,children:R})};c.displayName=i;const f=n+"CollectionSlot",p=vr(f),v=Te.forwardRef((x,E)=>{const{scope:R,children:O}=x,I=u(f,R),k=We(E,I.collectionRef);return b.jsx(p,{ref:k,children:O})});v.displayName=f;const m=n+"CollectionItemSlot",w="data-radix-collection-item",_=vr(m),A=Te.forwardRef((x,E)=>{const{scope:R,children:O,...I}=x,k=Te.useRef(null),M=We(E,k),$=u(m,R);return Te.useEffect(()=>($.itemMap.set(k,{ref:k,...I}),()=>void $.itemMap.delete(k))),b.jsx(_,{[w]:"",ref:M,children:O})});A.displayName=m;function D(x){const E=u(n+"CollectionConsumer",x);return Te.useCallback(()=>{const O=E.collectionRef.current;if(!O)return[];const I=Array.from(O.querySelectorAll(`[${w}]`));return Array.from(E.itemMap.values()).sort(($,W)=>I.indexOf($.ref.current)-I.indexOf(W.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:c,Slot:v,ItemSlot:A},D,s]}function Ce(n,i,{checkForDefaultPrevented:r=!0}={}){return function(a){if(n==null||n(a),r===!1||!a.defaultPrevented)return i==null?void 0:i(a)}}var dt=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},mp=y[" useInsertionEffect ".trim().toString()]||dt;function Xr({prop:n,defaultProp:i,onChange:r=()=>{},caller:s}){const[a,u,c]=yp({defaultProp:i,onChange:r}),f=n!==void 0,p=f?n:a;{const m=y.useRef(n!==void 0);y.useEffect(()=>{const w=m.current;w!==f&&console.warn(`${s} is changing from ${w?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=f},[f,s])}const v=y.useCallback(m=>{var w;if(f){const _=wp(m)?m(n):m;_!==n&&((w=c.current)==null||w.call(c,_))}else u(m)},[f,n,u,c]);return[p,v]}function yp({defaultProp:n,onChange:i}){const[r,s]=y.useState(n),a=y.useRef(r),u=y.useRef(i);return mp(()=>{u.current=i},[i]),y.useEffect(()=>{var c;a.current!==r&&((c=u.current)==null||c.call(u,r),a.current=r)},[r,a]),[r,s,u]}function wp(n){return typeof n=="function"}function xp(n,i){return y.useReducer((r,s)=>i[r][s]??r,n)}var Xn=n=>{const{present:i,children:r}=n,s=bp(i),a=typeof r=="function"?r({present:s.isPresent}):y.Children.only(r),u=We(s.ref,_p(a));return typeof r=="function"||s.isPresent?y.cloneElement(a,{ref:u}):null};Xn.displayName="Presence";function bp(n){const[i,r]=y.useState(),s=y.useRef(null),a=y.useRef(n),u=y.useRef("none"),c=n?"mounted":"unmounted",[f,p]=xp(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const v=Ii(s.current);u.current=f==="mounted"?v:"none"},[f]),dt(()=>{const v=s.current,m=a.current;if(m!==n){const _=u.current,A=Ii(v);n?p("MOUNT"):A==="none"||(v==null?void 0:v.display)==="none"?p("UNMOUNT"):p(m&&_!==A?"ANIMATION_OUT":"UNMOUNT"),a.current=n}},[n,p]),dt(()=>{if(i){let v;const m=i.ownerDocument.defaultView??window,w=A=>{const x=Ii(s.current).includes(A.animationName);if(A.target===i&&x&&(p("ANIMATION_END"),!a.current)){const E=i.style.animationFillMode;i.style.animationFillMode="forwards",v=m.setTimeout(()=>{i.style.animationFillMode==="forwards"&&(i.style.animationFillMode=E)})}},_=A=>{A.target===i&&(u.current=Ii(s.current))};return i.addEventListener("animationstart",_),i.addEventListener("animationcancel",w),i.addEventListener("animationend",w),()=>{m.clearTimeout(v),i.removeEventListener("animationstart",_),i.removeEventListener("animationcancel",w),i.removeEventListener("animationend",w)}}else p("ANIMATION_END")},[i,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:y.useCallback(v=>{s.current=v?getComputedStyle(v):null,r(v)},[])}}function Ii(n){return(n==null?void 0:n.animationName)||"none"}function _p(n){var s,a;let i=(s=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:s.get,r=i&&"isReactWarning"in i&&i.isReactWarning;return r?n.ref:(i=(a=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:a.get,r=i&&"isReactWarning"in i&&i.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var Cp=y[" useId ".trim().toString()]||(()=>{}),Sp=0;function In(n){const[i,r]=y.useState(Cp());return dt(()=>{r(s=>s??String(Sp++))},[n]),i?`radix-${i}`:""}var Ep=y.createContext(void 0);function Ap(n){const i=y.useContext(Ep);return n||i||"ltr"}function Zn(n){const i=y.useRef(n);return y.useEffect(()=>{i.current=n}),y.useMemo(()=>(...r)=>{var s;return(s=i.current)==null?void 0:s.call(i,...r)},[])}function Rp(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n);y.useEffect(()=>{const s=a=>{a.key==="Escape"&&r(a)};return i.addEventListener("keydown",s,{capture:!0}),()=>i.removeEventListener("keydown",s,{capture:!0})},[r,i])}var Pp="DismissableLayer",hs="dismissableLayer.update",Op="dismissableLayer.pointerDownOutside",Tp="dismissableLayer.focusOutside",Ml,Ll=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Zr=y.forwardRef((n,i)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:u,onInteractOutside:c,onDismiss:f,...p}=n,v=y.useContext(Ll),[m,w]=y.useState(null),_=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=y.useState({}),D=We(i,W=>w(W)),x=Array.from(v.layers),[E]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),R=x.indexOf(E),O=m?x.indexOf(m):-1,I=v.layersWithOutsidePointerEventsDisabled.size>0,k=O>=R,M=Np(W=>{const q=W.target,K=[...v.branches].some(se=>se.contains(q));!k||K||(a==null||a(W),c==null||c(W),W.defaultPrevented||f==null||f())},_),$=Mp(W=>{const q=W.target;[...v.branches].some(se=>se.contains(q))||(u==null||u(W),c==null||c(W),W.defaultPrevented||f==null||f())},_);return Rp(W=>{O===v.layers.size-1&&(s==null||s(W),!W.defaultPrevented&&f&&(W.preventDefault(),f()))},_),y.useEffect(()=>{if(m)return r&&(v.layersWithOutsidePointerEventsDisabled.size===0&&(Ml=_.body.style.pointerEvents,_.body.style.pointerEvents="none"),v.layersWithOutsidePointerEventsDisabled.add(m)),v.layers.add(m),Fl(),()=>{r&&v.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=Ml)}},[m,_,r,v]),y.useEffect(()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),Fl())},[m,v]),y.useEffect(()=>{const W=()=>A({});return document.addEventListener(hs,W),()=>document.removeEventListener(hs,W)},[]),b.jsx(Ie.div,{...p,ref:D,style:{pointerEvents:I?k?"auto":"none":void 0,...n.style},onFocusCapture:Ce(n.onFocusCapture,$.onFocusCapture),onBlurCapture:Ce(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Ce(n.onPointerDownCapture,M.onPointerDownCapture)})});Zr.displayName=Pp;var Ip="DismissableLayerBranch",Dp=y.forwardRef((n,i)=>{const r=y.useContext(Ll),s=y.useRef(null),a=We(i,s);return y.useEffect(()=>{const u=s.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),b.jsx(Ie.div,{...n,ref:a})});Dp.displayName=Ip;function Np(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n),s=y.useRef(!1),a=y.useRef(()=>{});return y.useEffect(()=>{const u=f=>{if(f.target&&!s.current){let p=function(){kl(Op,r,v,{discrete:!0})};const v={originalEvent:f};f.pointerType==="touch"?(i.removeEventListener("click",a.current),a.current=p,i.addEventListener("click",a.current,{once:!0})):p()}else i.removeEventListener("click",a.current);s.current=!1},c=window.setTimeout(()=>{i.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(c),i.removeEventListener("pointerdown",u),i.removeEventListener("click",a.current)}},[i,r]),{onPointerDownCapture:()=>s.current=!0}}function Mp(n,i=globalThis==null?void 0:globalThis.document){const r=Zn(n),s=y.useRef(!1);return y.useEffect(()=>{const a=u=>{u.target&&!s.current&&kl(Tp,r,{originalEvent:u},{discrete:!1})};return i.addEventListener("focusin",a),()=>i.removeEventListener("focusin",a)},[i,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Fl(){const n=new CustomEvent(hs);document.dispatchEvent(n)}function kl(n,i,r,{discrete:s}){const a=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});i&&a.addEventListener(n,i,{once:!0}),s?fp(a,u):a.dispatchEvent(u)}var ps="focusScope.autoFocusOnMount",gs="focusScope.autoFocusOnUnmount",Bl={bubbles:!1,cancelable:!0},Lp="FocusScope",Di=y.forwardRef((n,i)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:a,onUnmountAutoFocus:u,...c}=n,[f,p]=y.useState(null),v=Zn(a),m=Zn(u),w=y.useRef(null),_=We(i,x=>p(x)),A=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(s){let x=function(I){if(A.paused||!f)return;const k=I.target;f.contains(k)?w.current=k:Dn(w.current,{select:!0})},E=function(I){if(A.paused||!f)return;const k=I.relatedTarget;k!==null&&(f.contains(k)||Dn(w.current,{select:!0}))},R=function(I){if(document.activeElement===document.body)for(const M of I)M.removedNodes.length>0&&Dn(f)};document.addEventListener("focusin",x),document.addEventListener("focusout",E);const O=new MutationObserver(R);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",E),O.disconnect()}}},[s,f,A.paused]),y.useEffect(()=>{if(f){jl.add(A);const x=document.activeElement;if(!f.contains(x)){const R=new CustomEvent(ps,Bl);f.addEventListener(ps,v),f.dispatchEvent(R),R.defaultPrevented||(Fp(jp(Vl(f)),{select:!0}),document.activeElement===x&&Dn(f))}return()=>{f.removeEventListener(ps,v),setTimeout(()=>{const R=new CustomEvent(gs,Bl);f.addEventListener(gs,m),f.dispatchEvent(R),R.defaultPrevented||Dn(x??document.body,{select:!0}),f.removeEventListener(gs,m),jl.remove(A)},0)}}},[f,v,m,A]);const D=y.useCallback(x=>{if(!r&&!s||A.paused)return;const E=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,R=document.activeElement;if(E&&R){const O=x.currentTarget,[I,k]=kp(O);I&&k?!x.shiftKey&&R===k?(x.preventDefault(),r&&Dn(I,{select:!0})):x.shiftKey&&R===I&&(x.preventDefault(),r&&Dn(k,{select:!0})):R===O&&x.preventDefault()}},[r,s,A.paused]);return b.jsx(Ie.div,{tabIndex:-1,...c,ref:_,onKeyDown:D})});Di.displayName=Lp;function Fp(n,{select:i=!1}={}){const r=document.activeElement;for(const s of n)if(Dn(s,{select:i}),document.activeElement!==r)return}function kp(n){const i=Vl(n),r=Wl(i,n),s=Wl(i.reverse(),n);return[r,s]}function Vl(n){const i=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const a=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||a?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)i.push(r.currentNode);return i}function Wl(n,i){for(const r of n)if(!Bp(r,{upTo:i}))return r}function Bp(n,{upTo:i}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(i!==void 0&&n===i)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function Vp(n){return n instanceof HTMLInputElement&&"select"in n}function Dn(n,{select:i=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&Vp(n)&&i&&n.select()}}var jl=Wp();function Wp(){let n=[];return{add(i){const r=n[0];i!==r&&(r==null||r.pause()),n=Ul(n,i),n.unshift(i)},remove(i){var r;n=Ul(n,i),(r=n[0])==null||r.resume()}}}function Ul(n,i){const r=[...n],s=r.indexOf(i);return s!==-1&&r.splice(s,1),r}function jp(n){return n.filter(i=>i.tagName!=="A")}var Up="Portal",Ni=y.forwardRef((n,i)=>{var f;const{container:r,...s}=n,[a,u]=y.useState(!1);dt(()=>u(!0),[]);const c=r||a&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?El.createPortal(b.jsx(Ie.div,{...s,ref:i}),c):null});Ni.displayName=Up;var vs=0;function ms(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??$l()),document.body.insertAdjacentElement("beforeend",n[1]??$l()),vs++,()=>{vs===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(i=>i.remove()),vs--}},[])}function $l(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var an=function(){return an=Object.assign||function(i){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(i[u]=r[u])}return i},an.apply(this,arguments)};function Hl(n,i){var r={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&i.indexOf(s)<0&&(r[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(n);a<s.length;a++)i.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(n,s[a])&&(r[s[a]]=n[s[a]]);return r}function $p(n,i,r){if(r||arguments.length===2)for(var s=0,a=i.length,u;s<a;s++)(u||!(s in i))&&(u||(u=Array.prototype.slice.call(i,0,s)),u[s]=i[s]);return n.concat(u||Array.prototype.slice.call(i))}typeof SuppressedError=="function"&&SuppressedError;var Mi="right-scroll-bar-position",Li="width-before-scroll-bar",Hp="with-scroll-bars-hidden",zp="--removed-body-scroll-bar-size";function ys(n,i){return typeof n=="function"?n(i):n&&(n.current=i),n}function Kp(n,i){var r=Ot(function(){return{value:n,callback:i,facade:{get current(){return r.value},set current(s){var a=r.value;a!==s&&(r.value=s,r.callback(s,a))}}}})[0];return r.callback=i,r.facade}var qp=typeof window<"u"?y.useLayoutEffect:y.useEffect,zl=new WeakMap;function Gp(n,i){var r=Kp(null,function(s){return n.forEach(function(a){return ys(a,s)})});return qp(function(){var s=zl.get(r);if(s){var a=new Set(s),u=new Set(n),c=r.current;a.forEach(function(f){u.has(f)||ys(f,null)}),u.forEach(function(f){a.has(f)||ys(f,c)})}zl.set(r,n)},[n]),r}function Yp(n){return n}function Xp(n,i){i===void 0&&(i=Yp);var r=[],s=!1,a={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(u){var c=i(u,s);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(u){for(s=!0;r.length;){var c=r;r=[],c.forEach(u)}r={push:function(f){return u(f)},filter:function(){return r}}},assignMedium:function(u){s=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(u),c=r}var p=function(){var m=c;c=[],m.forEach(u)},v=function(){return Promise.resolve().then(p)};v(),r={push:function(m){c.push(m),v()},filter:function(m){return c=c.filter(m),r}}}};return a}function Zp(n){n===void 0&&(n={});var i=Xp(null);return i.options=an({async:!0,ssr:!1},n),i}var Kl=function(n){var i=n.sideCar,r=Hl(n,["sideCar"]);if(!i)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=i.read();if(!s)throw new Error("Sidecar medium not found");return y.createElement(s,an({},r))};Kl.isSideCarExport=!0;function Jp(n,i){return n.useMedium(i),Kl}var ql=Zp(),ws=function(){},Fi=y.forwardRef(function(n,i){var r=y.useRef(null),s=y.useState({onScrollCapture:ws,onWheelCapture:ws,onTouchMoveCapture:ws}),a=s[0],u=s[1],c=n.forwardProps,f=n.children,p=n.className,v=n.removeScrollBar,m=n.enabled,w=n.shards,_=n.sideCar,A=n.noIsolation,D=n.inert,x=n.allowPinchZoom,E=n.as,R=E===void 0?"div":E,O=n.gapMode,I=Hl(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=_,M=Gp([r,i]),$=an(an({},I),a);return y.createElement(y.Fragment,null,m&&y.createElement(k,{sideCar:ql,removeScrollBar:v,shards:w,noIsolation:A,inert:D,setCallbacks:u,allowPinchZoom:!!x,lockRef:r,gapMode:O}),c?y.cloneElement(y.Children.only(f),an(an({},$),{ref:M})):y.createElement(R,an({},$,{className:p,ref:M}),f))});Fi.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Fi.classNames={fullWidth:Li,zeroRight:Mi};var Qp=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function eg(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var i=Qp();return i&&n.setAttribute("nonce",i),n}function tg(n,i){n.styleSheet?n.styleSheet.cssText=i:n.appendChild(document.createTextNode(i))}function ng(n){var i=document.head||document.getElementsByTagName("head")[0];i.appendChild(n)}var rg=function(){var n=0,i=null;return{add:function(r){n==0&&(i=eg())&&(tg(i,r),ng(i)),n++},remove:function(){n--,!n&&i&&(i.parentNode&&i.parentNode.removeChild(i),i=null)}}},ig=function(){var n=rg();return function(i,r){y.useEffect(function(){return n.add(i),function(){n.remove()}},[i&&r])}},Gl=function(){var n=ig(),i=function(r){var s=r.styles,a=r.dynamic;return n(s,a),null};return i},og={left:0,top:0,right:0,gap:0},xs=function(n){return parseInt(n||"",10)||0},sg=function(n){var i=window.getComputedStyle(document.body),r=i[n==="padding"?"paddingLeft":"marginLeft"],s=i[n==="padding"?"paddingTop":"marginTop"],a=i[n==="padding"?"paddingRight":"marginRight"];return[xs(r),xs(s),xs(a)]},ag=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return og;var i=sg(n),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:i[0],top:i[1],right:i[2],gap:Math.max(0,s-r+i[2]-i[0])}},lg=Gl(),yr="data-scroll-locked",ug=function(n,i,r,s){var a=n.left,u=n.top,c=n.right,f=n.gap;return r===void 0&&(r="margin"),`
|
|
11
11
|
.`.concat(Hp,` {
|
|
12
12
|
overflow: hidden `).concat(s,`;
|
|
13
13
|
padding-right: `).concat(f,"px ").concat(s,`;
|
|
@@ -44,37 +44,37 @@ System.register(["react","react-dom"],function(ke,V1){"use strict";var Te,as,Ot,
|
|
|
44
44
|
body[`).concat(yr,`] {
|
|
45
45
|
`).concat(zp,": ").concat(f,`px;
|
|
46
46
|
}
|
|
47
|
-
`)},
|
|
47
|
+
`)},Yl=function(){var n=parseInt(document.body.getAttribute(yr)||"0",10);return isFinite(n)?n:0},cg=function(){y.useEffect(function(){return document.body.setAttribute(yr,(Yl()+1).toString()),function(){var n=Yl()-1;n<=0?document.body.removeAttribute(yr):document.body.setAttribute(yr,n.toString())}},[])},fg=function(n){var i=n.noRelative,r=n.noImportant,s=n.gapMode,a=s===void 0?"margin":s;cg();var u=y.useMemo(function(){return ag(a)},[a]);return y.createElement(lg,{styles:ug(u,!i,a,r?"":"!important")})},bs=!1;if(typeof window<"u")try{var ki=Object.defineProperty({},"passive",{get:function(){return bs=!0,!0}});window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{bs=!1}var wr=bs?{passive:!1}:!1,dg=function(n){return n.tagName==="TEXTAREA"},Xl=function(n,i){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[i]!=="hidden"&&!(r.overflowY===r.overflowX&&!dg(n)&&r[i]==="visible")},hg=function(n){return Xl(n,"overflowY")},pg=function(n){return Xl(n,"overflowX")},Zl=function(n,i){var r=i.ownerDocument,s=i;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var a=Jl(n,s);if(a){var u=Ql(n,s),c=u[1],f=u[2];if(c>f)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},gg=function(n){var i=n.scrollTop,r=n.scrollHeight,s=n.clientHeight;return[i,r,s]},vg=function(n){var i=n.scrollLeft,r=n.scrollWidth,s=n.clientWidth;return[i,r,s]},Jl=function(n,i){return n==="v"?hg(i):pg(i)},Ql=function(n,i){return n==="v"?gg(i):vg(i)},mg=function(n,i){return n==="h"&&i==="rtl"?-1:1},yg=function(n,i,r,s,a){var u=mg(n,window.getComputedStyle(i).direction),c=u*s,f=r.target,p=i.contains(f),v=!1,m=c>0,w=0,_=0;do{var A=Ql(n,f),D=A[0],x=A[1],E=A[2],R=x-E-u*D;(D||R)&&Jl(n,f)&&(w+=R,_+=D),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!p&&f!==document.body||p&&(i.contains(f)||i===f));return(m&&Math.abs(w)<1||!m&&Math.abs(_)<1)&&(v=!0),v},Bi=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},eu=function(n){return[n.deltaX,n.deltaY]},tu=function(n){return n&&"current"in n?n.current:n},wg=function(n,i){return n[0]===i[0]&&n[1]===i[1]},xg=function(n){return`
|
|
48
48
|
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
49
49
|
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
50
|
-
`)},bg=0,xr=[];function _g(n){var i=y.useRef([]),r=y.useRef([0,0]),s=y.useRef(),a=y.useState(bg++)[0],u=y.useState(
|
|
50
|
+
`)},bg=0,xr=[];function _g(n){var i=y.useRef([]),r=y.useRef([0,0]),s=y.useRef(),a=y.useState(bg++)[0],u=y.useState(Gl)[0],c=y.useRef(n);y.useEffect(function(){c.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(a));var x=$p([n.lockRef.current],(n.shards||[]).map(tu),!0).filter(Boolean);return x.forEach(function(E){return E.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(a))})}}},[n.inert,n.lockRef.current,n.shards]);var f=y.useCallback(function(x,E){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!c.current.allowPinchZoom;var R=Bi(x),O=r.current,I="deltaX"in x?x.deltaX:O[0]-R[0],k="deltaY"in x?x.deltaY:O[1]-R[1],M,$=x.target,W=Math.abs(I)>Math.abs(k)?"h":"v";if("touches"in x&&W==="h"&&$.type==="range")return!1;var q=Zl(W,$);if(!q)return!0;if(q?M=W:(M=W==="v"?"h":"v",q=Zl(W,$)),!q)return!1;if(!s.current&&"changedTouches"in x&&(I||k)&&(s.current=M),!M)return!0;var K=s.current||M;return yg(K,E,x,K==="h"?I:k)},[]),p=y.useCallback(function(x){var E=x;if(!(!xr.length||xr[xr.length-1]!==u)){var R="deltaY"in E?eu(E):Bi(E),O=i.current.filter(function(M){return M.name===E.type&&(M.target===E.target||E.target===M.shadowParent)&&wg(M.delta,R)})[0];if(O&&O.should){E.cancelable&&E.preventDefault();return}if(!O){var I=(c.current.shards||[]).map(tu).filter(Boolean).filter(function(M){return M.contains(E.target)}),k=I.length>0?f(E,I[0]):!c.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),v=y.useCallback(function(x,E,R,O){var I={name:x,delta:E,target:R,should:O,shadowParent:Cg(R)};i.current.push(I),setTimeout(function(){i.current=i.current.filter(function(k){return k!==I})},1)},[]),m=y.useCallback(function(x){r.current=Bi(x),s.current=void 0},[]),w=y.useCallback(function(x){v(x.type,eu(x),x.target,f(x,n.lockRef.current))},[]),_=y.useCallback(function(x){v(x.type,Bi(x),x.target,f(x,n.lockRef.current))},[]);y.useEffect(function(){return xr.push(u),n.setCallbacks({onScrollCapture:w,onWheelCapture:w,onTouchMoveCapture:_}),document.addEventListener("wheel",p,wr),document.addEventListener("touchmove",p,wr),document.addEventListener("touchstart",m,wr),function(){xr=xr.filter(function(x){return x!==u}),document.removeEventListener("wheel",p,wr),document.removeEventListener("touchmove",p,wr),document.removeEventListener("touchstart",m,wr)}},[]);var A=n.removeScrollBar,D=n.inert;return y.createElement(y.Fragment,null,D?y.createElement(u,{styles:xg(a)}):null,A?y.createElement(fg,{gapMode:n.gapMode}):null)}function Cg(n){for(var i=null;n!==null;)n instanceof ShadowRoot&&(i=n.host,n=n.host),n=n.parentNode;return i}const Sg=Jp(ql,_g);var Vi=y.forwardRef(function(n,i){return y.createElement(Fi,an({},n,{ref:i,sideCar:Sg}))});Vi.classNames=Fi.classNames;var Eg=function(n){if(typeof document>"u")return null;var i=Array.isArray(n)?n[0]:n;return i.ownerDocument.body},br=new WeakMap,Wi=new WeakMap,ji={},_s=0,nu=function(n){return n&&(n.host||nu(n.parentNode))},Ag=function(n,i){return i.map(function(r){if(n.contains(r))return r;var s=nu(r);return s&&n.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},Rg=function(n,i,r,s){var a=Ag(i,Array.isArray(n)?n:[n]);ji[r]||(ji[r]=new WeakMap);var u=ji[r],c=[],f=new Set,p=new Set(a),v=function(w){!w||f.has(w)||(f.add(w),v(w.parentNode))};a.forEach(v);var m=function(w){!w||p.has(w)||Array.prototype.forEach.call(w.children,function(_){if(f.has(_))m(_);else try{var A=_.getAttribute(s),D=A!==null&&A!=="false",x=(br.get(_)||0)+1,E=(u.get(_)||0)+1;br.set(_,x),u.set(_,E),c.push(_),x===1&&D&&Wi.set(_,!0),E===1&&_.setAttribute(r,"true"),D||_.setAttribute(s,"true")}catch(R){console.error("aria-hidden: cannot operate on ",_,R)}})};return m(i),f.clear(),_s++,function(){c.forEach(function(w){var _=br.get(w)-1,A=u.get(w)-1;br.set(w,_),u.set(w,A),_||(Wi.has(w)||w.removeAttribute(s),Wi.delete(w)),A||w.removeAttribute(r)}),_s--,_s||(br=new WeakMap,br=new WeakMap,Wi=new WeakMap,ji={})}},Cs=function(n,i,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),a=Eg(n);return a?(s.push.apply(s,Array.from(a.querySelectorAll("[aria-live]"))),Rg(s,a,r,"aria-hidden")):function(){return null}},Ui="Dialog",[ru,W1]=mr(Ui),[Pg,Gt]=ru(Ui),iu=n=>{const{__scopeDialog:i,children:r,open:s,defaultOpen:a,onOpenChange:u,modal:c=!0}=n,f=y.useRef(null),p=y.useRef(null),[v,m]=Xr({prop:s,defaultProp:a??!1,onChange:u,caller:Ui});return b.jsx(Pg,{scope:i,triggerRef:f,contentRef:p,contentId:In(),titleId:In(),descriptionId:In(),open:v,onOpenChange:m,onOpenToggle:y.useCallback(()=>m(w=>!w),[m]),modal:c,children:r})};iu.displayName=Ui;var ou="DialogTrigger",Og=y.forwardRef((n,i)=>{const{__scopeDialog:r,...s}=n,a=Gt(ou,r),u=We(i,a.triggerRef);return b.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":As(a.open),...s,ref:u,onClick:Ce(n.onClick,a.onOpenToggle)})});Og.displayName=ou;var Ss="DialogPortal",[Tg,su]=ru(Ss,{forceMount:void 0}),au=n=>{const{__scopeDialog:i,forceMount:r,children:s,container:a}=n,u=Gt(Ss,i);return b.jsx(Tg,{scope:i,forceMount:r,children:y.Children.map(s,c=>b.jsx(Xn,{present:r||u.open,children:b.jsx(Ni,{asChild:!0,container:a,children:c})}))})};au.displayName=Ss;var $i="DialogOverlay",lu=y.forwardRef((n,i)=>{const r=su($i,n.__scopeDialog),{forceMount:s=r.forceMount,...a}=n,u=Gt($i,n.__scopeDialog);return u.modal?b.jsx(Xn,{present:s||u.open,children:b.jsx(Dg,{...a,ref:i})}):null});lu.displayName=$i;var Ig=vr("DialogOverlay.RemoveScroll"),Dg=y.forwardRef((n,i)=>{const{__scopeDialog:r,...s}=n,a=Gt($i,r);return b.jsx(Vi,{as:Ig,allowPinchZoom:!0,shards:[a.contentRef],children:b.jsx(Ie.div,{"data-state":As(a.open),...s,ref:i,style:{pointerEvents:"auto",...s.style}})})}),Jn="DialogContent",uu=y.forwardRef((n,i)=>{const r=su(Jn,n.__scopeDialog),{forceMount:s=r.forceMount,...a}=n,u=Gt(Jn,n.__scopeDialog);return b.jsx(Xn,{present:s||u.open,children:u.modal?b.jsx(Ng,{...a,ref:i}):b.jsx(Mg,{...a,ref:i})})});uu.displayName=Jn;var Ng=y.forwardRef((n,i)=>{const r=Gt(Jn,n.__scopeDialog),s=y.useRef(null),a=We(i,r.contentRef,s);return y.useEffect(()=>{const u=s.current;if(u)return Cs(u)},[]),b.jsx(cu,{...n,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(n.onCloseAutoFocus,u=>{var c;u.preventDefault(),(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:Ce(n.onPointerDownOutside,u=>{const c=u.detail.originalEvent,f=c.button===0&&c.ctrlKey===!0;(c.button===2||f)&&u.preventDefault()}),onFocusOutside:Ce(n.onFocusOutside,u=>u.preventDefault())})}),Mg=y.forwardRef((n,i)=>{const r=Gt(Jn,n.__scopeDialog),s=y.useRef(!1),a=y.useRef(!1);return b.jsx(cu,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=n.onCloseAutoFocus)==null||c.call(n,u),u.defaultPrevented||(s.current||(f=r.triggerRef.current)==null||f.focus(),u.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:u=>{var p,v;(p=n.onInteractOutside)==null||p.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=u.target;((v=r.triggerRef.current)==null?void 0:v.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.current&&u.preventDefault()}})}),cu=y.forwardRef((n,i)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:u,...c}=n,f=Gt(Jn,r),p=y.useRef(null),v=We(i,p);return ms(),b.jsxs(b.Fragment,{children:[b.jsx(Di,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:u,children:b.jsx(Zr,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":As(f.open),...c,ref:v,onDismiss:()=>f.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(kg,{titleId:f.titleId}),b.jsx(Vg,{contentRef:p,descriptionId:f.descriptionId})]})]})}),Es="DialogTitle",fu=y.forwardRef((n,i)=>{const{__scopeDialog:r,...s}=n,a=Gt(Es,r);return b.jsx(Ie.h2,{id:a.titleId,...s,ref:i})});fu.displayName=Es;var du="DialogDescription",Lg=y.forwardRef((n,i)=>{const{__scopeDialog:r,...s}=n,a=Gt(du,r);return b.jsx(Ie.p,{id:a.descriptionId,...s,ref:i})});Lg.displayName=du;var hu="DialogClose",Fg=y.forwardRef((n,i)=>{const{__scopeDialog:r,...s}=n,a=Gt(hu,r);return b.jsx(Ie.button,{type:"button",...s,ref:i,onClick:Ce(n.onClick,()=>a.onOpenChange(!1))})});Fg.displayName=hu;function As(n){return n?"open":"closed"}var pu="DialogTitleWarning",[j1,gu]=pp(pu,{contentName:Jn,titleName:Es,docsSlug:"dialog"}),kg=({titleId:n})=>{const i=gu(pu),r=`\`${i.contentName}\` requires a \`${i.titleName}\` for the component to be accessible for screen reader users.
|
|
51
51
|
|
|
52
52
|
If you want to hide the \`${i.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
53
53
|
|
|
54
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},Bg="DialogDescriptionWarning",Vg=({contentRef:n,descriptionId:i})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${pu(Bg).contentName}}.`;return y.useEffect(()=>{var u;const a=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");i&&a&&(document.getElementById(i)||console.warn(s))},[s,n,i]),null},Wg=ru,jg=su,Ug=au,$g=lu,Hg=cu;function zg(n){const i=y.useRef({value:n,previous:n});return y.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}function Kg(n){const[i,r]=y.useState(void 0);return dt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let c,f;if("borderBoxSize"in u){const p=u.borderBoxSize,v=Array.isArray(p)?p[0]:p;c=v.inlineSize,f=v.blockSize}else c=n.offsetWidth,f=n.offsetHeight;r({width:c,height:f})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),i}const qg=["top","right","bottom","left"],Nn=Math.min,Tt=Math.max,Hi=Math.round,zi=Math.floor,ln=n=>({x:n,y:n}),Gg={left:"right",right:"left",bottom:"top",top:"bottom"},Yg={start:"end",end:"start"};function Rs(n,i,r){return Tt(n,Nn(i,r))}function yn(n,i){return typeof n=="function"?n(i):n}function wn(n){return n.split("-")[0]}function _r(n){return n.split("-")[1]}function Ps(n){return n==="x"?"y":"x"}function Os(n){return n==="y"?"height":"width"}function Mn(n){return["top","bottom"].includes(wn(n))?"y":"x"}function Ts(n){return Ps(Mn(n))}function Xg(n,i,r){r===void 0&&(r=!1);const s=_r(n),a=Ts(n),u=Os(a);let c=a==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[u]>i.floating[u]&&(c=Ki(c)),[c,Ki(c)]}function Zg(n){const i=Ki(n);return[Is(n),i,Is(i)]}function Is(n){return n.replace(/start|end/g,i=>Yg[i])}function Jg(n,i,r){const s=["left","right"],a=["right","left"],u=["top","bottom"],c=["bottom","top"];switch(n){case"top":case"bottom":return r?i?a:s:i?s:a;case"left":case"right":return i?u:c;default:return[]}}function Qg(n,i,r,s){const a=_r(n);let u=Jg(wn(n),r==="start",s);return a&&(u=u.map(c=>c+"-"+a),i&&(u=u.concat(u.map(Is)))),u}function Ki(n){return n.replace(/left|right|bottom|top/g,i=>Gg[i])}function ev(n){return{top:0,right:0,bottom:0,left:0,...n}}function gu(n){return typeof n!="number"?ev(n):{top:n,right:n,bottom:n,left:n}}function qi(n){const{x:i,y:r,width:s,height:a}=n;return{width:s,height:a,top:r,left:i,right:i+s,bottom:r+a,x:i,y:r}}function vu(n,i,r){let{reference:s,floating:a}=n;const u=Mn(i),c=Ts(i),f=Os(c),p=wn(i),v=u==="y",m=s.x+s.width/2-a.width/2,w=s.y+s.height/2-a.height/2,C=s[f]/2-a[f]/2;let R;switch(p){case"top":R={x:m,y:s.y-a.height};break;case"bottom":R={x:m,y:s.y+s.height};break;case"right":R={x:s.x+s.width,y:w};break;case"left":R={x:s.x-a.width,y:w};break;default:R={x:s.x,y:s.y}}switch(_r(i)){case"start":R[c]-=C*(r&&v?-1:1);break;case"end":R[c]+=C*(r&&v?-1:1);break}return R}const tv=async(n,i,r)=>{const{placement:s="bottom",strategy:a="absolute",middleware:u=[],platform:c}=r,f=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(i));let v=await c.getElementRects({reference:n,floating:i,strategy:a}),{x:m,y:w}=vu(v,s,p),C=s,R={},D=0;for(let x=0;x<f.length;x++){const{name:E,fn:A}=f[x],{x:O,y:I,data:F,reset:M}=await A({x:m,y:w,initialPlacement:s,placement:C,strategy:a,middlewareData:R,rects:v,platform:c,elements:{reference:n,floating:i}});m=O??m,w=I??w,R={...R,[E]:{...R[E],...F}},M&&D<=50&&(D++,typeof M=="object"&&(M.placement&&(C=M.placement),M.rects&&(v=M.rects===!0?await c.getElementRects({reference:n,floating:i,strategy:a}):M.rects),{x:m,y:w}=vu(v,C,p)),x=-1)}return{x:m,y:w,placement:C,strategy:a,middlewareData:R}};async function Jr(n,i){var r;i===void 0&&(i={});const{x:s,y:a,platform:u,rects:c,elements:f,strategy:p}=n,{boundary:v="clippingAncestors",rootBoundary:m="viewport",elementContext:w="floating",altBoundary:C=!1,padding:R=0}=yn(i,n),D=gu(R),E=f[C?w==="floating"?"reference":"floating":w],A=qi(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(E)))==null||r?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:v,rootBoundary:m,strategy:p})),O=w==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,I=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),F=await(u.isElement==null?void 0:u.isElement(I))?await(u.getScale==null?void 0:u.getScale(I))||{x:1,y:1}:{x:1,y:1},M=qi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:I,strategy:p}):O);return{top:(A.top-M.top+D.top)/F.y,bottom:(M.bottom-A.bottom+D.bottom)/F.y,left:(A.left-M.left+D.left)/F.x,right:(M.right-A.right+D.right)/F.x}}const nv=n=>({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:a,rects:u,platform:c,elements:f,middlewareData:p}=i,{element:v,padding:m=0}=yn(n,i)||{};if(v==null)return{};const w=gu(m),C={x:r,y:s},R=Ts(a),D=Os(R),x=await c.getDimensions(v),E=R==="y",A=E?"top":"left",O=E?"bottom":"right",I=E?"clientHeight":"clientWidth",F=u.reference[D]+u.reference[R]-C[R]-u.floating[D],M=C[R]-u.reference[R],H=await(c.getOffsetParent==null?void 0:c.getOffsetParent(v));let B=H?H[I]:0;(!B||!await(c.isElement==null?void 0:c.isElement(H)))&&(B=f.floating[I]||u.floating[D]);const K=F/2-M/2,te=B/2-x[D]/2-1,he=Nn(w[A],te),fe=Nn(w[O],te),X=he,Z=B-x[D]-fe,re=B/2-x[D]/2+K,de=Rs(X,re,Z),se=!p.arrow&&_r(a)!=null&&re!==de&&u.reference[D]/2-(re<X?he:fe)-x[D]/2<0,ce=se?re<X?re-X:re-Z:0;return{[R]:C[R]+ce,data:{[R]:de,centerOffset:re-de-ce,...se&&{alignmentOffset:ce}},reset:se}}}),rv=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,s;const{placement:a,middlewareData:u,rects:c,initialPlacement:f,platform:p,elements:v}=i,{mainAxis:m=!0,crossAxis:w=!0,fallbackPlacements:C,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:x=!0,...E}=yn(n,i);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const A=wn(a),O=Mn(f),I=wn(f)===f,F=await(p.isRTL==null?void 0:p.isRTL(v.floating)),M=C||(I||!x?[Ki(f)]:Zg(f)),H=D!=="none";!C&&H&&M.push(...Qg(f,x,D,F));const B=[f,...M],K=await Jr(i,E),te=[];let he=((s=u.flip)==null?void 0:s.overflows)||[];if(m&&te.push(K[A]),w){const re=Xg(a,c,F);te.push(K[re[0]],K[re[1]])}if(he=[...he,{placement:a,overflows:te}],!te.every(re=>re<=0)){var fe,X;const re=(((fe=u.flip)==null?void 0:fe.index)||0)+1,de=B[re];if(de)return{data:{index:re,overflows:he},reset:{placement:de}};let se=(X=he.filter(ce=>ce.overflows[0]<=0).sort((ce,oe)=>ce.overflows[1]-oe.overflows[1])[0])==null?void 0:X.placement;if(!se)switch(R){case"bestFit":{var Z;const ce=(Z=he.filter(oe=>{if(H){const ye=Mn(oe.placement);return ye===O||ye==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ye=>ye>0).reduce((ye,Ne)=>ye+Ne,0)]).sort((oe,ye)=>oe[1]-ye[1])[0])==null?void 0:Z[0];ce&&(se=ce);break}case"initialPlacement":se=f;break}if(a!==se)return{reset:{placement:se}}}return{}}}};function mu(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function yu(n){return qg.some(i=>n[i]>=0)}const iv=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r}=i,{strategy:s="referenceHidden",...a}=yn(n,i);switch(s){case"referenceHidden":{const u=await Jr(i,{...a,elementContext:"reference"}),c=mu(u,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:yu(c)}}}case"escaped":{const u=await Jr(i,{...a,altBoundary:!0}),c=mu(u,r.floating);return{data:{escapedOffsets:c,escaped:yu(c)}}}default:return{}}}}};async function ov(n,i){const{placement:r,platform:s,elements:a}=n,u=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=wn(r),f=_r(r),p=Mn(r)==="y",v=["left","top"].includes(c)?-1:1,m=u&&p?-1:1,w=yn(i,n);let{mainAxis:C,crossAxis:R,alignmentAxis:D}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof D=="number"&&(R=f==="end"?D*-1:D),p?{x:R*m,y:C*v}:{x:C*v,y:R*m}}const sv=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,s;const{x:a,y:u,placement:c,middlewareData:f}=i,p=await ov(i,n);return c===((r=f.offset)==null?void 0:r.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:a+p.x,y:u+p.y,data:{...p,placement:c}}}}},av=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:s,placement:a}=i,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:E=>{let{x:A,y:O}=E;return{x:A,y:O}}},...p}=yn(n,i),v={x:r,y:s},m=await Jr(i,p),w=Mn(wn(a)),C=Ps(w);let R=v[C],D=v[w];if(u){const E=C==="y"?"top":"left",A=C==="y"?"bottom":"right",O=R+m[E],I=R-m[A];R=Rs(O,R,I)}if(c){const E=w==="y"?"top":"left",A=w==="y"?"bottom":"right",O=D+m[E],I=D-m[A];D=Rs(O,D,I)}const x=f.fn({...i,[C]:R,[w]:D});return{...x,data:{x:x.x-r,y:x.y-s,enabled:{[C]:u,[w]:c}}}}}},lv=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:r,y:s,placement:a,rects:u,middlewareData:c}=i,{offset:f=0,mainAxis:p=!0,crossAxis:v=!0}=yn(n,i),m={x:r,y:s},w=Mn(a),C=Ps(w);let R=m[C],D=m[w];const x=yn(f,i),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(p){const I=C==="y"?"height":"width",F=u.reference[C]-u.floating[I]+E.mainAxis,M=u.reference[C]+u.reference[I]-E.mainAxis;R<F?R=F:R>M&&(R=M)}if(v){var A,O;const I=C==="y"?"width":"height",F=["top","left"].includes(wn(a)),M=u.reference[w]-u.floating[I]+(F&&((A=c.offset)==null?void 0:A[w])||0)+(F?0:E.crossAxis),H=u.reference[w]+u.reference[I]+(F?0:((O=c.offset)==null?void 0:O[w])||0)-(F?E.crossAxis:0);D<M?D=M:D>H&&(D=H)}return{[C]:R,[w]:D}}}},uv=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var r,s;const{placement:a,rects:u,platform:c,elements:f}=i,{apply:p=()=>{},...v}=yn(n,i),m=await Jr(i,v),w=wn(a),C=_r(a),R=Mn(a)==="y",{width:D,height:x}=u.floating;let E,A;w==="top"||w==="bottom"?(E=w,A=C===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(A=w,E=C==="end"?"top":"bottom");const O=x-m.top-m.bottom,I=D-m.left-m.right,F=Nn(x-m[E],O),M=Nn(D-m[A],I),H=!i.middlewareData.shift;let B=F,K=M;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(K=I),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(B=O),H&&!C){const he=Tt(m.left,0),fe=Tt(m.right,0),X=Tt(m.top,0),Z=Tt(m.bottom,0);R?K=D-2*(he!==0||fe!==0?he+fe:Tt(m.left,m.right)):B=x-2*(X!==0||Z!==0?X+Z:Tt(m.top,m.bottom))}await p({...i,availableWidth:K,availableHeight:B});const te=await c.getDimensions(f.floating);return D!==te.width||x!==te.height?{reset:{rects:!0}}:{}}}};function Gi(){return typeof window<"u"}function Cr(n){return wu(n)?(n.nodeName||"").toLowerCase():"#document"}function It(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function un(n){var i;return(i=(wu(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function wu(n){return Gi()?n instanceof Node||n instanceof It(n).Node:!1}function Xt(n){return Gi()?n instanceof Element||n instanceof It(n).Element:!1}function cn(n){return Gi()?n instanceof HTMLElement||n instanceof It(n).HTMLElement:!1}function xu(n){return!Gi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof It(n).ShadowRoot}function Qr(n){const{overflow:i,overflowX:r,overflowY:s,display:a}=Zt(n);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!["inline","contents"].includes(a)}function cv(n){return["table","td","th"].includes(Cr(n))}function Yi(n){return[":popover-open",":modal"].some(i=>{try{return n.matches(i)}catch{return!1}})}function Ds(n){const i=Ns(),r=Xt(n)?Zt(n):n;return["transform","translate","scale","rotate","perspective"].some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(r.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(r.contain||"").includes(s))}function fv(n){let i=Ln(n);for(;cn(i)&&!Sr(i);){if(Ds(i))return i;if(Yi(i))return null;i=Ln(i)}return null}function Ns(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sr(n){return["html","body","#document"].includes(Cr(n))}function Zt(n){return It(n).getComputedStyle(n)}function Xi(n){return Xt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ln(n){if(Cr(n)==="html")return n;const i=n.assignedSlot||n.parentNode||xu(n)&&n.host||un(n);return xu(i)?i.host:i}function bu(n){const i=Ln(n);return Sr(i)?n.ownerDocument?n.ownerDocument.body:n.body:cn(i)&&Qr(i)?i:bu(i)}function ei(n,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const a=bu(n),u=a===((s=n.ownerDocument)==null?void 0:s.body),c=It(a);if(u){const f=Ms(c);return i.concat(c,c.visualViewport||[],Qr(a)?a:[],f&&r?ei(f):[])}return i.concat(a,ei(a,[],r))}function Ms(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function _u(n){const i=Zt(n);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const a=cn(n),u=a?n.offsetWidth:r,c=a?n.offsetHeight:s,f=Hi(r)!==u||Hi(s)!==c;return f&&(r=u,s=c),{width:r,height:s,$:f}}function Ls(n){return Xt(n)?n:n.contextElement}function Er(n){const i=Ls(n);if(!cn(i))return ln(1);const r=i.getBoundingClientRect(),{width:s,height:a,$:u}=_u(i);let c=(u?Hi(r.width):r.width)/s,f=(u?Hi(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const dv=ln(0);function Cu(n){const i=It(n);return!Ns()||!i.visualViewport?dv:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function hv(n,i,r){return i===void 0&&(i=!1),!r||i&&r!==It(n)?!1:i}function Qn(n,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const a=n.getBoundingClientRect(),u=Ls(n);let c=ln(1);i&&(s?Xt(s)&&(c=Er(s)):c=Er(n));const f=hv(u,r,s)?Cu(u):ln(0);let p=(a.left+f.x)/c.x,v=(a.top+f.y)/c.y,m=a.width/c.x,w=a.height/c.y;if(u){const C=It(u),R=s&&Xt(s)?It(s):s;let D=C,x=Ms(D);for(;x&&s&&R!==D;){const E=Er(x),A=x.getBoundingClientRect(),O=Zt(x),I=A.left+(x.clientLeft+parseFloat(O.paddingLeft))*E.x,F=A.top+(x.clientTop+parseFloat(O.paddingTop))*E.y;p*=E.x,v*=E.y,m*=E.x,w*=E.y,p+=I,v+=F,D=It(x),x=Ms(D)}}return qi({width:m,height:w,x:p,y:v})}function Fs(n,i){const r=Xi(n).scrollLeft;return i?i.left+r:Qn(un(n)).left+r}function Su(n,i,r){r===void 0&&(r=!1);const s=n.getBoundingClientRect(),a=s.left+i.scrollLeft-(r?0:Fs(n,s)),u=s.top+i.scrollTop;return{x:a,y:u}}function pv(n){let{elements:i,rect:r,offsetParent:s,strategy:a}=n;const u=a==="fixed",c=un(s),f=i?Yi(i.floating):!1;if(s===c||f&&u)return r;let p={scrollLeft:0,scrollTop:0},v=ln(1);const m=ln(0),w=cn(s);if((w||!w&&!u)&&((Cr(s)!=="body"||Qr(c))&&(p=Xi(s)),cn(s))){const R=Qn(s);v=Er(s),m.x=R.x+s.clientLeft,m.y=R.y+s.clientTop}const C=c&&!w&&!u?Su(c,p,!0):ln(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-p.scrollLeft*v.x+m.x+C.x,y:r.y*v.y-p.scrollTop*v.y+m.y+C.y}}function gv(n){return Array.from(n.getClientRects())}function vv(n){const i=un(n),r=Xi(n),s=n.ownerDocument.body,a=Tt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),u=Tt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let c=-r.scrollLeft+Fs(n);const f=-r.scrollTop;return Zt(s).direction==="rtl"&&(c+=Tt(i.clientWidth,s.clientWidth)-a),{width:a,height:u,x:c,y:f}}function mv(n,i){const r=It(n),s=un(n),a=r.visualViewport;let u=s.clientWidth,c=s.clientHeight,f=0,p=0;if(a){u=a.width,c=a.height;const v=Ns();(!v||v&&i==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:c,x:f,y:p}}function yv(n,i){const r=Qn(n,!0,i==="fixed"),s=r.top+n.clientTop,a=r.left+n.clientLeft,u=cn(n)?Er(n):ln(1),c=n.clientWidth*u.x,f=n.clientHeight*u.y,p=a*u.x,v=s*u.y;return{width:c,height:f,x:p,y:v}}function Eu(n,i,r){let s;if(i==="viewport")s=mv(n,r);else if(i==="document")s=vv(un(n));else if(Xt(i))s=yv(i,r);else{const a=Cu(n);s={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return qi(s)}function Au(n,i){const r=Ln(n);return r===i||!Xt(r)||Sr(r)?!1:Zt(r).position==="fixed"||Au(r,i)}function wv(n,i){const r=i.get(n);if(r)return r;let s=ei(n,[],!1).filter(f=>Xt(f)&&Cr(f)!=="body"),a=null;const u=Zt(n).position==="fixed";let c=u?Ln(n):n;for(;Xt(c)&&!Sr(c);){const f=Zt(c),p=Ds(c);!p&&f.position==="fixed"&&(a=null),(u?!p&&!a:!p&&f.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Qr(c)&&!p&&Au(n,c))?s=s.filter(m=>m!==c):a=f,c=Ln(c)}return i.set(n,s),s}function xv(n){let{element:i,boundary:r,rootBoundary:s,strategy:a}=n;const c=[...r==="clippingAncestors"?Yi(i)?[]:wv(i,this._c):[].concat(r),s],f=c[0],p=c.reduce((v,m)=>{const w=Eu(i,m,a);return v.top=Tt(w.top,v.top),v.right=Nn(w.right,v.right),v.bottom=Nn(w.bottom,v.bottom),v.left=Tt(w.left,v.left),v},Eu(i,f,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function bv(n){const{width:i,height:r}=_u(n);return{width:i,height:r}}function _v(n,i,r){const s=cn(i),a=un(i),u=r==="fixed",c=Qn(n,!0,u,i);let f={scrollLeft:0,scrollTop:0};const p=ln(0);if(s||!s&&!u)if((Cr(i)!=="body"||Qr(a))&&(f=Xi(i)),s){const C=Qn(i,!0,u,i);p.x=C.x+i.clientLeft,p.y=C.y+i.clientTop}else a&&(p.x=Fs(a));const v=a&&!s&&!u?Su(a,f):ln(0),m=c.left+f.scrollLeft-p.x-v.x,w=c.top+f.scrollTop-p.y-v.y;return{x:m,y:w,width:c.width,height:c.height}}function ks(n){return Zt(n).position==="static"}function Ru(n,i){if(!cn(n)||Zt(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return un(n)===r&&(r=r.ownerDocument.body),r}function Pu(n,i){const r=It(n);if(Yi(n))return r;if(!cn(n)){let a=Ln(n);for(;a&&!Sr(a);){if(Xt(a)&&!ks(a))return a;a=Ln(a)}return r}let s=Ru(n,i);for(;s&&cv(s)&&ks(s);)s=Ru(s,i);return s&&Sr(s)&&ks(s)&&!Ds(s)?r:s||fv(n)||r}const Cv=async function(n){const i=this.getOffsetParent||Pu,r=this.getDimensions,s=await r(n.floating);return{reference:_v(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Sv(n){return Zt(n).direction==="rtl"}const Ev={convertOffsetParentRelativeRectToViewportRelativeRect:pv,getDocumentElement:un,getClippingRect:xv,getOffsetParent:Pu,getElementRects:Cv,getClientRects:gv,getDimensions:bv,getScale:Er,isElement:Xt,isRTL:Sv};function Ou(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function Av(n,i){let r=null,s;const a=un(n);function u(){var f;clearTimeout(s),(f=r)==null||f.disconnect(),r=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),u();const v=n.getBoundingClientRect(),{left:m,top:w,width:C,height:R}=v;if(f||i(),!C||!R)return;const D=zi(w),x=zi(a.clientWidth-(m+C)),E=zi(a.clientHeight-(w+R)),A=zi(m),I={rootMargin:-D+"px "+-x+"px "+-E+"px "+-A+"px",threshold:Tt(0,Nn(1,p))||1};let F=!0;function M(H){const B=H[0].intersectionRatio;if(B!==p){if(!F)return c();B?c(!1,B):s=setTimeout(()=>{c(!1,1e-7)},1e3)}B===1&&!Ou(v,n.getBoundingClientRect())&&c(),F=!1}try{r=new IntersectionObserver(M,{...I,root:a.ownerDocument})}catch{r=new IntersectionObserver(M,I)}r.observe(n)}return c(!0),u}function Rv(n,i,r,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,v=Ls(n),m=a||u?[...v?ei(v):[],...ei(i)]:[];m.forEach(A=>{a&&A.addEventListener("scroll",r,{passive:!0}),u&&A.addEventListener("resize",r)});const w=v&&f?Av(v,r):null;let C=-1,R=null;c&&(R=new ResizeObserver(A=>{let[O]=A;O&&O.target===v&&R&&(R.unobserve(i),cancelAnimationFrame(C),C=requestAnimationFrame(()=>{var I;(I=R)==null||I.observe(i)})),r()}),v&&!p&&R.observe(v),R.observe(i));let D,x=p?Qn(n):null;p&&E();function E(){const A=Qn(n);x&&!Ou(x,A)&&r(),x=A,D=requestAnimationFrame(E)}return r(),()=>{var A;m.forEach(O=>{a&&O.removeEventListener("scroll",r),u&&O.removeEventListener("resize",r)}),w==null||w(),(A=R)==null||A.disconnect(),R=null,p&&cancelAnimationFrame(D)}}const Pv=sv,Ov=av,Tv=rv,Iv=uv,Dv=iv,Tu=nv,Nv=lv,Mv=(n,i,r)=>{const s=new Map,a={platform:Ev,...r},u={...a.platform,_c:s};return tv(n,i,{...a,platform:u})};var Zi=typeof document<"u"?bl:mn;function Ji(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,s,a;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!Ji(n[s],i[s]))return!1;return!0}if(a=Object.keys(n),r=a.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,a[s]))return!1;for(s=r;s--!==0;){const u=a[s];if(!(u==="_owner"&&n.$$typeof)&&!Ji(n[u],i[u]))return!1}return!0}return n!==n&&i!==i}function Iu(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Du(n,i){const r=Iu(n);return Math.round(i*r)/r}function Bs(n){const i=y.useRef(n);return Zi(()=>{i.current=n}),i}function Lv(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:a,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:p,open:v}=n,[m,w]=y.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[C,R]=y.useState(s);Ji(C,s)||R(s);const[D,x]=y.useState(null),[E,A]=y.useState(null),O=y.useCallback(oe=>{oe!==H.current&&(H.current=oe,x(oe))},[]),I=y.useCallback(oe=>{oe!==B.current&&(B.current=oe,A(oe))},[]),F=u||D,M=c||E,H=y.useRef(null),B=y.useRef(null),K=y.useRef(m),te=p!=null,he=Bs(p),fe=Bs(a),X=Bs(v),Z=y.useCallback(()=>{if(!H.current||!B.current)return;const oe={placement:i,strategy:r,middleware:C};fe.current&&(oe.platform=fe.current),Mv(H.current,B.current,oe).then(ye=>{const Ne={...ye,isPositioned:X.current!==!1};re.current&&!Ji(K.current,Ne)&&(K.current=Ne,Gr.flushSync(()=>{w(Ne)}))})},[C,i,r,fe,X]);Zi(()=>{v===!1&&K.current.isPositioned&&(K.current.isPositioned=!1,w(oe=>({...oe,isPositioned:!1})))},[v]);const re=y.useRef(!1);Zi(()=>(re.current=!0,()=>{re.current=!1}),[]),Zi(()=>{if(F&&(H.current=F),M&&(B.current=M),F&&M){if(he.current)return he.current(F,M,Z);Z()}},[F,M,Z,he,te]);const de=y.useMemo(()=>({reference:H,floating:B,setReference:O,setFloating:I}),[O,I]),se=y.useMemo(()=>({reference:F,floating:M}),[F,M]),ce=y.useMemo(()=>{const oe={position:r,left:0,top:0};if(!se.floating)return oe;const ye=Du(se.floating,m.x),Ne=Du(se.floating,m.y);return f?{...oe,transform:"translate("+ye+"px, "+Ne+"px)",...Iu(se.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:Ne}},[r,f,se.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:Z,refs:de,elements:se,floatingStyles:ce}),[m,Z,de,se,ce])}const Fv=n=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:a}=typeof n=="function"?n(r):n;return s&&i(s)?s.current!=null?Tu({element:s.current,padding:a}).fn(r):{}:s?Tu({element:s,padding:a}).fn(r):{}}}},kv=(n,i)=>({...Pv(n),options:[n,i]}),Bv=(n,i)=>({...Ov(n),options:[n,i]}),Vv=(n,i)=>({...Nv(n),options:[n,i]}),Wv=(n,i)=>({...Tv(n),options:[n,i]}),jv=(n,i)=>({...Iv(n),options:[n,i]}),Uv=(n,i)=>({...Dv(n),options:[n,i]}),$v=(n,i)=>({...Fv(n),options:[n,i]});var Hv="Arrow",Nu=y.forwardRef((n,i)=>{const{children:r,width:s=10,height:a=5,...u}=n;return b.jsx(Ie.svg,{...u,ref:i,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Nu.displayName=Hv;var zv=Nu,Vs="Popper",[Mu,Ar]=mr(Vs),[Kv,Lu]=Mu(Vs),Fu=n=>{const{__scopePopper:i,children:r}=n,[s,a]=y.useState(null);return b.jsx(Kv,{scope:i,anchor:s,onAnchorChange:a,children:r})};Fu.displayName=Vs;var ku="PopperAnchor",Bu=y.forwardRef((n,i)=>{const{__scopePopper:r,virtualRef:s,...a}=n,u=Lu(ku,r),c=y.useRef(null),f=We(i,c);return y.useEffect(()=>{u.onAnchorChange((s==null?void 0:s.current)||c.current)}),s?null:b.jsx(Ie.div,{...a,ref:f})});Bu.displayName=ku;var Ws="PopperContent",[qv,Gv]=Mu(Ws),Vu=y.forwardRef((n,i)=>{var ee,xe,Fe,Pe,be,Se;const{__scopePopper:r,side:s="bottom",sideOffset:a=0,align:u="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:C=!1,updatePositionStrategy:R="optimized",onPlaced:D,...x}=n,E=Lu(Ws,r),[A,O]=y.useState(null),I=We(i,ot=>O(ot)),[F,M]=y.useState(null),H=Kg(F),B=(H==null?void 0:H.width)??0,K=(H==null?void 0:H.height)??0,te=s+(u!=="center"?"-"+u:""),he=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(v)?v:[v],X=fe.length>0,Z={padding:he,boundary:fe.filter(Xv),altBoundary:X},{refs:re,floatingStyles:de,placement:se,isPositioned:ce,middlewareData:oe}=Lv({strategy:"fixed",placement:te,whileElementsMounted:(...ot)=>Rv(...ot,{animationFrame:R==="always"}),elements:{reference:E.anchor},middleware:[kv({mainAxis:a+K,alignmentAxis:c}),p&&Bv({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Vv():void 0,...Z}),p&&Wv({...Z}),jv({...Z,apply:({elements:ot,rects:Ue,availableWidth:Dt,availableHeight:hn})=>{const{width:st,height:Ir}=Ue.reference,Vn=ot.floating.style;Vn.setProperty("--radix-popper-available-width",`${Dt}px`),Vn.setProperty("--radix-popper-available-height",`${hn}px`),Vn.setProperty("--radix-popper-anchor-width",`${st}px`),Vn.setProperty("--radix-popper-anchor-height",`${Ir}px`)}}),F&&$v({element:F,padding:f}),Zv({arrowWidth:B,arrowHeight:K}),C&&Uv({strategy:"referenceHidden",...Z})]}),[ye,Ne]=Uu(se),Me=Zn(D);dt(()=>{ce&&(Me==null||Me())},[ce,Me]);const wt=(ee=oe.arrow)==null?void 0:ee.x,Wt=(xe=oe.arrow)==null?void 0:xe.y,Ct=((Fe=oe.arrow)==null?void 0:Fe.centerOffset)!==0,[it,pt]=y.useState();return dt(()=>{A&&pt(window.getComputedStyle(A).zIndex)},[A]),b.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:ce?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(Pe=oe.transformOrigin)==null?void 0:Pe.x,(be=oe.transformOrigin)==null?void 0:be.y].join(" "),...((Se=oe.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:b.jsx(qv,{scope:r,placedSide:ye,onArrowChange:M,arrowX:wt,arrowY:Wt,shouldHideArrow:Ct,children:b.jsx(Ie.div,{"data-side":ye,"data-align":Ne,...x,ref:I,style:{...x.style,animation:ce?void 0:"none"}})})})});Vu.displayName=Ws;var Wu="PopperArrow",Yv={top:"bottom",right:"left",bottom:"top",left:"right"},ju=y.forwardRef(function(i,r){const{__scopePopper:s,...a}=i,u=Gv(Wu,s),c=Yv[u.placedSide];return b.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:b.jsx(zv,{...a,ref:r,style:{...a.style,display:"block"}})})});ju.displayName=Wu;function Xv(n){return n!==null}var Zv=n=>({name:"transformOrigin",options:n,fn(i){var E,A,O;const{placement:r,rects:s,middlewareData:a}=i,c=((E=a.arrow)==null?void 0:E.centerOffset)!==0,f=c?0:n.arrowWidth,p=c?0:n.arrowHeight,[v,m]=Uu(r),w={start:"0%",center:"50%",end:"100%"}[m],C=(((A=a.arrow)==null?void 0:A.x)??0)+f/2,R=(((O=a.arrow)==null?void 0:O.y)??0)+p/2;let D="",x="";return v==="bottom"?(D=c?w:`${C}px`,x=`${-p}px`):v==="top"?(D=c?w:`${C}px`,x=`${s.floating.height+p}px`):v==="right"?(D=`${-p}px`,x=c?w:`${R}px`):v==="left"&&(D=`${s.floating.width+p}px`,x=c?w:`${R}px`),{data:{x:D,y:x}}}});function Uu(n){const[i,r="center"]=n.split("-");return[i,r]}var js=Fu,Qi=Bu,Us=Vu,$s=ju;function $u(n,[i,r]){return Math.min(r,Math.max(i,n))}var eo="Popover",[Hu,U1]=mr(eo,[Ar]),ti=Ar(),[Jv,er]=Hu(eo),zu=n=>{const{__scopePopover:i,children:r,open:s,defaultOpen:a,onOpenChange:u,modal:c=!1}=n,f=ti(i),p=y.useRef(null),[v,m]=y.useState(!1),[w,C]=Xr({prop:s,defaultProp:a??!1,onChange:u,caller:eo});return b.jsx(js,{...f,children:b.jsx(Jv,{scope:i,contentId:In(),triggerRef:p,open:w,onOpenChange:C,onOpenToggle:y.useCallback(()=>C(R=>!R),[C]),hasCustomAnchor:v,onCustomAnchorAdd:y.useCallback(()=>m(!0),[]),onCustomAnchorRemove:y.useCallback(()=>m(!1),[]),modal:c,children:r})})};zu.displayName=eo;var Ku="PopoverAnchor",Qv=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(Ku,r),u=ti(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:f}=a;return y.useEffect(()=>(c(),()=>f()),[c,f]),b.jsx(Qi,{...u,...s,ref:i})});Qv.displayName=Ku;var qu="PopoverTrigger",Gu=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(qu,r),u=ti(r),c=We(i,a.triggerRef),f=b.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ju(a.open),...s,ref:c,onClick:Ce(n.onClick,a.onOpenToggle)});return a.hasCustomAnchor?f:b.jsx(Qi,{asChild:!0,...u,children:f})});Gu.displayName=qu;var em="PopoverPortal",[$1,tm]=Hu(em,{forceMount:void 0}),Rr="PopoverContent",Yu=y.forwardRef((n,i)=>{const r=tm(Rr,n.__scopePopover),{forceMount:s=r.forceMount,...a}=n,u=er(Rr,n.__scopePopover);return b.jsx(Xn,{present:s||u.open,children:u.modal?b.jsx(rm,{...a,ref:i}):b.jsx(im,{...a,ref:i})})});Yu.displayName=Rr;var nm=vr("PopoverContent.RemoveScroll"),rm=y.forwardRef((n,i)=>{const r=er(Rr,n.__scopePopover),s=y.useRef(null),a=We(i,s),u=y.useRef(!1);return y.useEffect(()=>{const c=s.current;if(c)return Cs(c)},[]),b.jsx(Vi,{as:nm,allowPinchZoom:!0,children:b.jsx(Xu,{...n,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(n.onCloseAutoFocus,c=>{var f;c.preventDefault(),u.current||(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Ce(n.onPointerDownOutside,c=>{const f=c.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,v=f.button===2||p;u.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Ce(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),im=y.forwardRef((n,i)=>{const r=er(Rr,n.__scopePopover),s=y.useRef(!1),a=y.useRef(!1);return b.jsx(Xu,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=n.onCloseAutoFocus)==null||c.call(n,u),u.defaultPrevented||(s.current||(f=r.triggerRef.current)==null||f.focus(),u.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:u=>{var p,v;(p=n.onInteractOutside)==null||p.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=u.target;((v=r.triggerRef.current)==null?void 0:v.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.current&&u.preventDefault()}})}),Xu=y.forwardRef((n,i)=>{const{__scopePopover:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:m,...w}=n,C=er(Rr,r),R=ti(r);return ms(),b.jsx(Di,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:u,children:b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onDismiss:()=>C.onOpenChange(!1),children:b.jsx(Us,{"data-state":Ju(C.open),role:"dialog",id:C.contentId,...R,...w,ref:i,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Zu="PopoverClose",om=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(Zu,r);return b.jsx(Ie.button,{type:"button",...s,ref:i,onClick:Ce(n.onClick,()=>a.onOpenChange(!1))})});om.displayName=Zu;var sm="PopoverArrow",am=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=ti(r);return b.jsx($s,{...a,...s,ref:i})});am.displayName=sm;function Ju(n){return n?"open":"closed"}var lm=zu,Qu=Gu,ec=Yu,um=[" ","Enter","ArrowUp","ArrowDown"],cm=[" ","Enter"],tr="Select",[to,no,fm]=vp(tr),[Pr,H1]=mr(tr,[fm,Ar]),ro=Ar(),[dm,Fn]=Pr(tr),[hm,pm]=Pr(tr),tc=n=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:a,onOpenChange:u,value:c,defaultValue:f,onValueChange:p,dir:v,name:m,autoComplete:w,disabled:C,required:R,form:D}=n,x=ro(i),[E,A]=y.useState(null),[O,I]=y.useState(null),[F,M]=y.useState(!1),H=Ap(v),[B,K]=Xr({prop:s,defaultProp:a??!1,onChange:u,caller:tr}),[te,he]=Xr({prop:c,defaultProp:f,onChange:p,caller:tr}),fe=y.useRef(null),X=E?D||!!E.closest("form"):!0,[Z,re]=y.useState(new Set),de=Array.from(Z).map(se=>se.props.value).join(";");return b.jsx(js,{...x,children:b.jsxs(dm,{required:R,scope:i,trigger:E,onTriggerChange:A,valueNode:O,onValueNodeChange:I,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:In(),value:te,onValueChange:he,open:B,onOpenChange:K,dir:H,triggerPointerDownPosRef:fe,disabled:C,children:[b.jsx(to.Provider,{scope:i,children:b.jsx(hm,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(se=>{re(ce=>new Set(ce).add(se))},[]),onNativeOptionRemove:y.useCallback(se=>{re(ce=>{const oe=new Set(ce);return oe.delete(se),oe})},[]),children:r})}),X?b.jsxs(_c,{"aria-hidden":!0,required:R,tabIndex:-1,name:m,autoComplete:w,value:te,onChange:se=>he(se.target.value),disabled:C,form:D,children:[te===void 0?b.jsx("option",{value:""}):null,Array.from(Z)]},de):null]})})};tc.displayName=tr;var nc="SelectTrigger",rc=y.forwardRef((n,i)=>{const{__scopeSelect:r,disabled:s=!1,...a}=n,u=ro(r),c=Fn(nc,r),f=c.disabled||s,p=We(i,c.onTriggerChange),v=no(r),m=y.useRef("touch"),[w,C,R]=Sc(x=>{const E=v().filter(I=>!I.disabled),A=E.find(I=>I.value===c.value),O=Ec(E,x,A);O!==void 0&&c.onValueChange(O.value)}),D=x=>{f||(c.onOpenChange(!0),R()),x&&(c.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return b.jsx(Qi,{asChild:!0,...u,children:b.jsx(Ie.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Cc(c.value)?"":void 0,...a,ref:p,onClick:Ce(a.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&D(x)}),onPointerDown:Ce(a.onPointerDown,x=>{m.current=x.pointerType;const E=x.target;E.hasPointerCapture(x.pointerId)&&E.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(D(x),x.preventDefault())}),onKeyDown:Ce(a.onKeyDown,x=>{const E=w.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&C(x.key),!(E&&x.key===" ")&&um.includes(x.key)&&(D(),x.preventDefault())})})})});rc.displayName=nc;var ic="SelectValue",oc=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:a,children:u,placeholder:c="",...f}=n,p=Fn(ic,r),{onValueNodeHasChildrenChange:v}=p,m=u!==void 0,w=We(i,p.onValueNodeChange);return dt(()=>{v(m)},[v,m]),b.jsx(Ie.span,{...f,ref:w,style:{pointerEvents:"none"},children:Cc(p.value)?b.jsx(b.Fragment,{children:c}):u})});oc.displayName=ic;var gm="SelectIcon",sc=y.forwardRef((n,i)=>{const{__scopeSelect:r,children:s,...a}=n;return b.jsx(Ie.span,{"aria-hidden":!0,...a,ref:i,children:s||"▼"})});sc.displayName=gm;var vm="SelectPortal",ac=n=>b.jsx(Ni,{asChild:!0,...n});ac.displayName=vm;var nr="SelectContent",lc=y.forwardRef((n,i)=>{const r=Fn(nr,n.__scopeSelect),[s,a]=y.useState();if(dt(()=>{a(new DocumentFragment)},[]),!r.open){const u=s;return u?Gr.createPortal(b.jsx(uc,{scope:n.__scopeSelect,children:b.jsx(to.Slot,{scope:n.__scopeSelect,children:b.jsx("div",{children:n.children})})}),u):null}return b.jsx(cc,{...n,ref:i})});lc.displayName=nr;var Jt=10,[uc,kn]=Pr(nr),mm="SelectContentImpl",ym=vr("SelectContent.RemoveScroll"),cc=y.forwardRef((n,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:c,side:f,sideOffset:p,align:v,alignOffset:m,arrowPadding:w,collisionBoundary:C,collisionPadding:R,sticky:D,hideWhenDetached:x,avoidCollisions:E,...A}=n,O=Fn(nr,r),[I,F]=y.useState(null),[M,H]=y.useState(null),B=We(i,ee=>F(ee)),[K,te]=y.useState(null),[he,fe]=y.useState(null),X=no(r),[Z,re]=y.useState(!1),de=y.useRef(!1);y.useEffect(()=>{if(I)return Cs(I)},[I]),ms();const se=y.useCallback(ee=>{const[xe,...Fe]=X().map(Se=>Se.ref.current),[Pe]=Fe.slice(-1),be=document.activeElement;for(const Se of ee)if(Se===be||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===xe&&M&&(M.scrollTop=0),Se===Pe&&M&&(M.scrollTop=M.scrollHeight),Se==null||Se.focus(),document.activeElement!==be))return},[X,M]),ce=y.useCallback(()=>se([K,I]),[se,K,I]);y.useEffect(()=>{Z&&ce()},[Z,ce]);const{onOpenChange:oe,triggerPointerDownPosRef:ye}=O;y.useEffect(()=>{if(I){let ee={x:0,y:0};const xe=Pe=>{var be,Se;ee={x:Math.abs(Math.round(Pe.pageX)-(((be=ye.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(Pe.pageY)-(((Se=ye.current)==null?void 0:Se.y)??0))}},Fe=Pe=>{ee.x<=10&&ee.y<=10?Pe.preventDefault():I.contains(Pe.target)||oe(!1),document.removeEventListener("pointermove",xe),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Fe,{capture:!0})}}},[I,oe,ye]),y.useEffect(()=>{const ee=()=>oe(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[oe]);const[Ne,Me]=Sc(ee=>{const xe=X().filter(be=>!be.disabled),Fe=xe.find(be=>be.ref.current===document.activeElement),Pe=Ec(xe,ee,Fe);Pe&&setTimeout(()=>Pe.ref.current.focus())}),wt=y.useCallback((ee,xe,Fe)=>{const Pe=!de.current&&!Fe;(O.value!==void 0&&O.value===xe||Pe)&&(te(ee),Pe&&(de.current=!0))},[O.value]),Wt=y.useCallback(()=>I==null?void 0:I.focus(),[I]),Ct=y.useCallback((ee,xe,Fe)=>{const Pe=!de.current&&!Fe;(O.value!==void 0&&O.value===xe||Pe)&&fe(ee)},[O.value]),it=s==="popper"?Hs:fc,pt=it===Hs?{side:f,sideOffset:p,align:v,alignOffset:m,arrowPadding:w,collisionBoundary:C,collisionPadding:R,sticky:D,hideWhenDetached:x,avoidCollisions:E}:{};return b.jsx(uc,{scope:r,content:I,viewport:M,onViewportChange:H,itemRefCallback:wt,selectedItem:K,onItemLeave:Wt,itemTextRefCallback:Ct,focusSelectedItem:ce,selectedItemText:he,position:s,isPositioned:Z,searchRef:Ne,children:b.jsx(Vi,{as:ym,allowPinchZoom:!0,children:b.jsx(Di,{asChild:!0,trapped:O.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Ce(a,ee=>{var xe;(xe=O.trigger)==null||xe.focus({preventScroll:!0}),ee.preventDefault()}),children:b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:b.jsx(it,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:ee=>ee.preventDefault(),...A,...pt,onPlaced:()=>re(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Ce(A.onKeyDown,ee=>{const xe=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!xe&&ee.key.length===1&&Me(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Pe=X().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Pe=Pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const be=ee.target,Se=Pe.indexOf(be);Pe=Pe.slice(Se+1)}setTimeout(()=>se(Pe)),ee.preventDefault()}})})})})})})});cc.displayName=mm;var wm="SelectItemAlignedPosition",fc=y.forwardRef((n,i)=>{const{__scopeSelect:r,onPlaced:s,...a}=n,u=Fn(nr,r),c=kn(nr,r),[f,p]=y.useState(null),[v,m]=y.useState(null),w=We(i,B=>m(B)),C=no(r),R=y.useRef(!1),D=y.useRef(!0),{viewport:x,selectedItem:E,selectedItemText:A,focusSelectedItem:O}=c,I=y.useCallback(()=>{if(u.trigger&&u.valueNode&&f&&v&&x&&E&&A){const B=u.trigger.getBoundingClientRect(),K=v.getBoundingClientRect(),te=u.valueNode.getBoundingClientRect(),he=A.getBoundingClientRect();if(u.dir!=="rtl"){const be=he.left-K.left,Se=te.left-be,ot=B.left-Se,Ue=B.width+ot,Dt=Math.max(Ue,K.width),hn=window.innerWidth-Jt,st=$u(Se,[Jt,Math.max(Jt,hn-Dt)]);f.style.minWidth=Ue+"px",f.style.left=st+"px"}else{const be=K.right-he.right,Se=window.innerWidth-te.right-be,ot=window.innerWidth-B.right-Se,Ue=B.width+ot,Dt=Math.max(Ue,K.width),hn=window.innerWidth-Jt,st=$u(Se,[Jt,Math.max(Jt,hn-Dt)]);f.style.minWidth=Ue+"px",f.style.right=st+"px"}const fe=C(),X=window.innerHeight-Jt*2,Z=x.scrollHeight,re=window.getComputedStyle(v),de=parseInt(re.borderTopWidth,10),se=parseInt(re.paddingTop,10),ce=parseInt(re.borderBottomWidth,10),oe=parseInt(re.paddingBottom,10),ye=de+se+Z+oe+ce,Ne=Math.min(E.offsetHeight*5,ye),Me=window.getComputedStyle(x),wt=parseInt(Me.paddingTop,10),Wt=parseInt(Me.paddingBottom,10),Ct=B.top+B.height/2-Jt,it=X-Ct,pt=E.offsetHeight/2,ee=E.offsetTop+pt,xe=de+se+ee,Fe=ye-xe;if(xe<=Ct){const be=fe.length>0&&E===fe[fe.length-1].ref.current;f.style.bottom="0px";const Se=v.clientHeight-x.offsetTop-x.offsetHeight,ot=Math.max(it,pt+(be?Wt:0)+Se+ce),Ue=xe+ot;f.style.height=Ue+"px"}else{const be=fe.length>0&&E===fe[0].ref.current;f.style.top="0px";const ot=Math.max(Ct,de+x.offsetTop+(be?wt:0)+pt)+Fe;f.style.height=ot+"px",x.scrollTop=xe-Ct+x.offsetTop}f.style.margin=`${Jt}px 0`,f.style.minHeight=Ne+"px",f.style.maxHeight=X+"px",s==null||s(),requestAnimationFrame(()=>R.current=!0)}},[C,u.trigger,u.valueNode,f,v,x,E,A,u.dir,s]);dt(()=>I(),[I]);const[F,M]=y.useState();dt(()=>{v&&M(window.getComputedStyle(v).zIndex)},[v]);const H=y.useCallback(B=>{B&&D.current===!0&&(I(),O==null||O(),D.current=!1)},[I,O]);return b.jsx(bm,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:R,onScrollButtonChange:H,children:b.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:b.jsx(Ie.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});fc.displayName=wm;var xm="SelectPopperPosition",Hs=y.forwardRef((n,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:a=Jt,...u}=n,c=ro(r);return b.jsx(Us,{...c,...u,ref:i,align:s,collisionPadding:a,style:{boxSizing:"border-box",...u.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)"}})});Hs.displayName=xm;var[bm,zs]=Pr(nr,{}),Ks="SelectViewport",dc=y.forwardRef((n,i)=>{const{__scopeSelect:r,nonce:s,...a}=n,u=kn(Ks,r),c=zs(Ks,r),f=We(i,u.onViewportChange),p=y.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),b.jsx(to.Slot,{scope:r,children:b.jsx(Ie.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Ce(a.onScroll,v=>{const m=v.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:C}=c;if(C!=null&&C.current&&w){const R=Math.abs(p.current-m.scrollTop);if(R>0){const D=window.innerHeight-Jt*2,x=parseFloat(w.style.minHeight),E=parseFloat(w.style.height),A=Math.max(x,E);if(A<D){const O=A+R,I=Math.min(D,O),F=O-I;w.style.height=I+"px",w.style.bottom==="0px"&&(m.scrollTop=F>0?F:0,w.style.justifyContent="flex-end")}}}p.current=m.scrollTop})})})]})});dc.displayName=Ks;var hc="SelectGroup",[_m,Cm]=Pr(hc),Sm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=In();return b.jsx(_m,{scope:r,id:a,children:b.jsx(Ie.div,{role:"group","aria-labelledby":a,...s,ref:i})})});Sm.displayName=hc;var pc="SelectLabel",Em=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=Cm(pc,r);return b.jsx(Ie.div,{id:a.id,...s,ref:i})});Em.displayName=pc;var io="SelectItem",[Am,gc]=Pr(io),vc=y.forwardRef((n,i)=>{const{__scopeSelect:r,value:s,disabled:a=!1,textValue:u,...c}=n,f=Fn(io,r),p=kn(io,r),v=f.value===s,[m,w]=y.useState(u??""),[C,R]=y.useState(!1),D=We(i,O=>{var I;return(I=p.itemRefCallback)==null?void 0:I.call(p,O,s,a)}),x=In(),E=y.useRef("touch"),A=()=>{a||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")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 b.jsx(Am,{scope:r,value:s,disabled:a,textId:x,isSelected:v,onItemTextChange:y.useCallback(O=>{w(I=>I||((O==null?void 0:O.textContent)??"").trim())},[]),children:b.jsx(to.ItemSlot,{scope:r,value:s,disabled:a,textValue:m,children:b.jsx(Ie.div,{role:"option","aria-labelledby":x,"data-highlighted":C?"":void 0,"aria-selected":v&&C,"data-state":v?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:D,onFocus:Ce(c.onFocus,()=>R(!0)),onBlur:Ce(c.onBlur,()=>R(!1)),onClick:Ce(c.onClick,()=>{E.current!=="mouse"&&A()}),onPointerUp:Ce(c.onPointerUp,()=>{E.current==="mouse"&&A()}),onPointerDown:Ce(c.onPointerDown,O=>{E.current=O.pointerType}),onPointerMove:Ce(c.onPointerMove,O=>{var I;E.current=O.pointerType,a?(I=p.onItemLeave)==null||I.call(p):E.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(c.onPointerLeave,O=>{var I;O.currentTarget===document.activeElement&&((I=p.onItemLeave)==null||I.call(p))}),onKeyDown:Ce(c.onKeyDown,O=>{var F;((F=p.searchRef)==null?void 0:F.current)!==""&&O.key===" "||(cm.includes(O.key)&&A(),O.key===" "&&O.preventDefault())})})})})});vc.displayName=io;var ni="SelectItemText",mc=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:a,...u}=n,c=Fn(ni,r),f=kn(ni,r),p=gc(ni,r),v=pm(ni,r),[m,w]=y.useState(null),C=We(i,A=>w(A),p.onItemTextChange,A=>{var O;return(O=f.itemTextRefCallback)==null?void 0:O.call(f,A,p.value,p.disabled)}),R=m==null?void 0:m.textContent,D=y.useMemo(()=>b.jsx("option",{value:p.value,disabled:p.disabled,children:R},p.value),[p.disabled,p.value,R]),{onNativeOptionAdd:x,onNativeOptionRemove:E}=v;return dt(()=>(x(D),()=>E(D)),[x,E,D]),b.jsxs(b.Fragment,{children:[b.jsx(Ie.span,{id:p.textId,...u,ref:C}),p.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Gr.createPortal(u.children,c.valueNode):null]})});mc.displayName=ni;var yc="SelectItemIndicator",Rm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return gc(yc,r).isSelected?b.jsx(Ie.span,{"aria-hidden":!0,...s,ref:i}):null});Rm.displayName=yc;var qs="SelectScrollUpButton",wc=y.forwardRef((n,i)=>{const r=kn(qs,n.__scopeSelect),s=zs(qs,n.__scopeSelect),[a,u]=y.useState(!1),c=We(i,s.onScrollButtonChange);return dt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const v=p.scrollTop>0;u(v)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?b.jsx(bc,{...n,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});wc.displayName=qs;var Gs="SelectScrollDownButton",xc=y.forwardRef((n,i)=>{const r=kn(Gs,n.__scopeSelect),s=zs(Gs,n.__scopeSelect),[a,u]=y.useState(!1),c=We(i,s.onScrollButtonChange);return dt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const v=p.scrollHeight-p.clientHeight,m=Math.ceil(p.scrollTop)<v;u(m)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?b.jsx(bc,{...n,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});xc.displayName=Gs;var bc=y.forwardRef((n,i)=>{const{__scopeSelect:r,onAutoScroll:s,...a}=n,u=kn("SelectScrollButton",r),c=y.useRef(null),f=no(r),p=y.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return y.useEffect(()=>()=>p(),[p]),dt(()=>{var m;const v=f().find(w=>w.ref.current===document.activeElement);(m=v==null?void 0:v.ref.current)==null||m.scrollIntoView({block:"nearest"})},[f]),b.jsx(Ie.div,{"aria-hidden":!0,...a,ref:i,style:{flexShrink:0,...a.style},onPointerDown:Ce(a.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Ce(a.onPointerMove,()=>{var v;(v=u.onItemLeave)==null||v.call(u),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Ce(a.onPointerLeave,()=>{p()})})}),Pm="SelectSeparator",Om=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return b.jsx(Ie.div,{"aria-hidden":!0,...s,ref:i})});Om.displayName=Pm;var Ys="SelectArrow",Tm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=ro(r),u=Fn(Ys,r),c=kn(Ys,r);return u.open&&c.position==="popper"?b.jsx($s,{...a,...s,ref:i}):null});Tm.displayName=Ys;var Im="SelectBubbleInput",_c=y.forwardRef(({__scopeSelect:n,value:i,...r},s)=>{const a=y.useRef(null),u=We(s,a),c=zg(i);return y.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(p,"value").set;if(c!==i&&m){const w=new Event("change",{bubbles:!0});m.call(f,i),f.dispatchEvent(w)}},[c,i]),b.jsx(Ie.select,{...r,style:{...Il,...r.style},ref:u,defaultValue:i})});_c.displayName=Im;function Cc(n){return n===""||n===void 0}function Sc(n){const i=Zn(n),r=y.useRef(""),s=y.useRef(0),a=y.useCallback(c=>{const f=r.current+c;i(f),function p(v){r.current=v,window.clearTimeout(s.current),v!==""&&(s.current=window.setTimeout(()=>p(""),1e3))}(f)},[i]),u=y.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,a,u]}function Ec(n,i,r){const a=i.length>1&&Array.from(i).every(v=>v===i[0])?i[0]:i,u=r?n.indexOf(r):-1;let c=Dm(n,Math.max(u,0));a.length===1&&(c=c.filter(v=>v!==r));const p=c.find(v=>v.textValue.toLowerCase().startsWith(a.toLowerCase()));return p!==r?p:void 0}function Dm(n,i){return n.map((r,s)=>n[(i+s)%n.length])}var Nm=tc,Mm=rc,Lm=oc,Fm=sc,km=ac,Bm=lc,Vm=dc,Wm=vc,jm=mc,Um=wc,$m=xc,Hm="Separator",Ac="horizontal",zm=["horizontal","vertical"],Rc=y.forwardRef((n,i)=>{const{decorative:r,orientation:s=Ac,...a}=n,u=Km(s)?s:Ac,f=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return b.jsx(Ie.div,{"data-orientation":u,...f,...a,ref:i})});Rc.displayName=Hm;function Km(n){return zm.includes(n)}var qm=Rc,[oo,z1]=mr("Tooltip",[Ar]),so=Ar(),Pc="TooltipProvider",Gm=700,Xs="tooltip.open",[Ym,Zs]=oo(Pc),Oc=n=>{const{__scopeTooltip:i,delayDuration:r=Gm,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:u}=n,c=y.useRef(!0),f=y.useRef(!1),p=y.useRef(0);return y.useEffect(()=>{const v=p.current;return()=>window.clearTimeout(v)},[]),b.jsx(Ym,{scope:i,isOpenDelayedRef:c,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:y.useCallback(v=>{f.current=v},[]),disableHoverableContent:a,children:u})};Oc.displayName=Pc;var ri="Tooltip",[Xm,ii]=oo(ri),Tc=n=>{const{__scopeTooltip:i,children:r,open:s,defaultOpen:a,onOpenChange:u,disableHoverableContent:c,delayDuration:f}=n,p=Zs(ri,n.__scopeTooltip),v=so(i),[m,w]=y.useState(null),C=In(),R=y.useRef(0),D=c??p.disableHoverableContent,x=f??p.delayDuration,E=y.useRef(!1),[A,O]=Xr({prop:s,defaultProp:a??!1,onChange:B=>{B?(p.onOpen(),document.dispatchEvent(new CustomEvent(Xs))):p.onClose(),u==null||u(B)},caller:ri}),I=y.useMemo(()=>A?E.current?"delayed-open":"instant-open":"closed",[A]),F=y.useCallback(()=>{window.clearTimeout(R.current),R.current=0,E.current=!1,O(!0)},[O]),M=y.useCallback(()=>{window.clearTimeout(R.current),R.current=0,O(!1)},[O]),H=y.useCallback(()=>{window.clearTimeout(R.current),R.current=window.setTimeout(()=>{E.current=!0,O(!0),R.current=0},x)},[x,O]);return y.useEffect(()=>()=>{R.current&&(window.clearTimeout(R.current),R.current=0)},[]),b.jsx(js,{...v,children:b.jsx(Xm,{scope:i,contentId:C,open:A,stateAttribute:I,trigger:m,onTriggerChange:w,onTriggerEnter:y.useCallback(()=>{p.isOpenDelayedRef.current?H():F()},[p.isOpenDelayedRef,H,F]),onTriggerLeave:y.useCallback(()=>{D?M():(window.clearTimeout(R.current),R.current=0)},[M,D]),onOpen:F,onClose:M,disableHoverableContent:D,children:r})})};Tc.displayName=ri;var Js="TooltipTrigger",Ic=y.forwardRef((n,i)=>{const{__scopeTooltip:r,...s}=n,a=ii(Js,r),u=Zs(Js,r),c=so(r),f=y.useRef(null),p=We(i,f,a.onTriggerChange),v=y.useRef(!1),m=y.useRef(!1),w=y.useCallback(()=>v.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),b.jsx(Qi,{asChild:!0,...c,children:b.jsx(Ie.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:p,onPointerMove:Ce(n.onPointerMove,C=>{C.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ce(n.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Ce(n.onPointerDown,()=>{a.open&&a.onClose(),v.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:Ce(n.onFocus,()=>{v.current||a.onOpen()}),onBlur:Ce(n.onBlur,a.onClose),onClick:Ce(n.onClick,a.onClose)})})});Ic.displayName=Js;var Qs="TooltipPortal",[Zm,Jm]=oo(Qs,{forceMount:void 0}),Dc=n=>{const{__scopeTooltip:i,forceMount:r,children:s,container:a}=n,u=ii(Qs,i);return b.jsx(Zm,{scope:i,forceMount:r,children:b.jsx(Xn,{present:r||u.open,children:b.jsx(Ni,{asChild:!0,container:a,children:s})})})};Dc.displayName=Qs;var Or="TooltipContent",Nc=y.forwardRef((n,i)=>{const r=Jm(Or,n.__scopeTooltip),{forceMount:s=r.forceMount,side:a="top",...u}=n,c=ii(Or,n.__scopeTooltip);return b.jsx(Xn,{present:s||c.open,children:c.disableHoverableContent?b.jsx(Mc,{side:a,...u,ref:i}):b.jsx(Qm,{side:a,...u,ref:i})})}),Qm=y.forwardRef((n,i)=>{const r=ii(Or,n.__scopeTooltip),s=Zs(Or,n.__scopeTooltip),a=y.useRef(null),u=We(i,a),[c,f]=y.useState(null),{trigger:p,onClose:v}=r,m=a.current,{onPointerInTransitChange:w}=s,C=y.useCallback(()=>{f(null),w(!1)},[w]),R=y.useCallback((D,x)=>{const E=D.currentTarget,A={x:D.clientX,y:D.clientY},O=iy(A,E.getBoundingClientRect()),I=oy(A,O),F=sy(x.getBoundingClientRect()),M=ly([...I,...F]);f(M),w(!0)},[w]);return y.useEffect(()=>()=>C(),[C]),y.useEffect(()=>{if(p&&m){const D=E=>R(E,m),x=E=>R(E,p);return p.addEventListener("pointerleave",D),m.addEventListener("pointerleave",x),()=>{p.removeEventListener("pointerleave",D),m.removeEventListener("pointerleave",x)}}},[p,m,R,C]),y.useEffect(()=>{if(c){const D=x=>{const E=x.target,A={x:x.clientX,y:x.clientY},O=(p==null?void 0:p.contains(E))||(m==null?void 0:m.contains(E)),I=!ay(A,c);O?C():I&&(C(),v())};return document.addEventListener("pointermove",D),()=>document.removeEventListener("pointermove",D)}},[p,m,c,v,C]),b.jsx(Mc,{...n,ref:u})}),[ey,ty]=oo(ri,{isInside:!1}),ny=sp("TooltipContent"),Mc=y.forwardRef((n,i)=>{const{__scopeTooltip:r,children:s,"aria-label":a,onEscapeKeyDown:u,onPointerDownOutside:c,...f}=n,p=ii(Or,r),v=so(r),{onClose:m}=p;return y.useEffect(()=>(document.addEventListener(Xs,m),()=>document.removeEventListener(Xs,m)),[m]),y.useEffect(()=>{if(p.trigger){const w=C=>{const R=C.target;R!=null&&R.contains(p.trigger)&&m()};return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[p.trigger,m]),b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:w=>w.preventDefault(),onDismiss:m,children:b.jsxs(Us,{"data-state":p.stateAttribute,...v,...f,ref:i,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(ny,{children:s}),b.jsx(ey,{scope:r,isInside:!0,children:b.jsx(hp,{id:p.contentId,role:"tooltip",children:a||s})})]})})});Nc.displayName=Or;var Lc="TooltipArrow",ry=y.forwardRef((n,i)=>{const{__scopeTooltip:r,...s}=n,a=so(r);return ty(Lc,r).isInside?null:b.jsx($s,{...a,...s,ref:i})});ry.displayName=Lc;function iy(n,i){const r=Math.abs(i.top-n.y),s=Math.abs(i.bottom-n.y),a=Math.abs(i.right-n.x),u=Math.abs(i.left-n.x);switch(Math.min(r,s,a,u)){case u:return"left";case a:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function oy(n,i,r=5){const s=[];switch(i){case"top":s.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":s.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":s.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":s.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return s}function sy(n){const{top:i,right:r,bottom:s,left:a}=n;return[{x:a,y:i},{x:r,y:i},{x:r,y:s},{x:a,y:s}]}function ay(n,i){const{x:r,y:s}=n;let a=!1;for(let u=0,c=i.length-1;u<i.length;c=u++){const f=i[u],p=i[c],v=f.x,m=f.y,w=p.x,C=p.y;m>s!=C>s&&r<(w-v)*(s-m)/(C-m)+v&&(a=!a)}return a}function ly(n){const i=n.slice();return i.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),uy(i)}function uy(n){if(n.length<=1)return n.slice();const i=[];for(let s=0;s<n.length;s++){const a=n[s];for(;i.length>=2;){const u=i[i.length-1],c=i[i.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))i.pop();else break}i.push(a)}i.pop();const r=[];for(let s=n.length-1;s>=0;s--){const a=n[s];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),i.length===1&&r.length===1&&i[0].x===r[0].x&&i[0].y===r[0].y?i:i.concat(r)}var cy=Oc,fy=Tc,dy=Ic,hy=Dc,py=Nc;const Fc=as(null),K1=ke("MystaLibProvider",({configOptions:n,children:i})=>{const r=lt(()=>({preset:n.preset,locale:n.locale}),[n.preset,n.locale]);return b.jsx(Fc.Provider,{value:r,children:b.jsx(cy,{children:i})})}),gy=ke("useMystaLib",()=>{const n=ls(Fc);if(!n)throw new Error("useMystaLib must be used within a MystaLibProvider");return n});function kc(n){var i,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(i=0;i<a;i++)n[i]&&(r=kc(n[i]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function xn(){for(var n,i,r=0,s="",a=arguments.length;r<a;r++)(n=arguments[r])&&(i=kc(n))&&(s&&(s+=" "),s+=i);return s}function Qt(n,i){const{preset:r}=gy(),s=r==null?void 0:r[n];if(!s)return{};const a={};for(const u in s){const c=s[u],f=typeof c=="function"?c(i):c,{className:p,...v}=f??{};a[u]={className:xn(p),"data-mc-section":u,...v},u==="root"&&(a[u]["data-mc-name"]=n.toLowerCase())}return a}var oi=n=>n.type==="checkbox",rr=n=>n instanceof Date,mt=n=>n==null;const Bc=n=>typeof n=="object";var Ye=n=>!mt(n)&&!Array.isArray(n)&&Bc(n)&&!rr(n),vy=n=>Ye(n)&&n.target?oi(n.target)?n.target.checked:n.target.value:n,my=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,yy=(n,i)=>n.has(my(i)),wy=n=>{const i=n.constructor&&n.constructor.prototype;return Ye(i)&&i.hasOwnProperty("isPrototypeOf")},ea=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ht(n){let i;const r=Array.isArray(n),s=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)i=new Date(n);else if(n instanceof Set)i=new Set(n);else if(!(ea&&(n instanceof Blob||s))&&(r||Ye(n)))if(i=r?[]:{},!r&&!wy(n))i=n;else for(const a in n)n.hasOwnProperty(a)&&(i[a]=ht(n[a]));else return n;return i}var ao=n=>Array.isArray(n)?n.filter(Boolean):[],Qe=n=>n===void 0,ne=(n,i,r)=>{if(!i||!Ye(n))return r;const s=ao(i.split(/[,[\].]+?/)).reduce((a,u)=>mt(a)?a:a[u],n);return Qe(s)||s===n?Qe(n[i])?r:n[i]:s},fn=n=>typeof n=="boolean",ta=n=>/^\w*$/.test(n),Vc=n=>ao(n.replace(/["|']|\]/g,"").split(/\.|\[/)),je=(n,i,r)=>{let s=-1;const a=ta(i)?[i]:Vc(i),u=a.length,c=u-1;for(;++s<u;){const f=a[s];let p=r;if(s!==c){const v=n[f];p=Ye(v)||Array.isArray(v)?v:isNaN(+a[s+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;n[f]=p,n=n[f]}};const Wc={BLUR:"blur",FOCUS_OUT:"focusout"},en={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},jc=Te.createContext(null),xy=()=>Te.useContext(jc),by=n=>{const{children:i,...r}=n;return Te.createElement(jc.Provider,{value:r},i)};var _y=(n,i,r,s=!0)=>{const a={defaultValues:i._defaultValues};for(const u in n)Object.defineProperty(a,u,{get:()=>{const c=u;return i._proxyFormState[c]!==en.all&&(i._proxyFormState[c]=!s||en.all),n[c]}});return a},na=n=>mt(n)||!Bc(n);function Bn(n,i){if(na(n)||na(i))return n===i;if(rr(n)&&rr(i))return n.getTime()===i.getTime();const r=Object.keys(n),s=Object.keys(i);if(r.length!==s.length)return!1;for(const a of r){const u=n[a];if(!s.includes(a))return!1;if(a!=="ref"){const c=i[a];if(rr(u)&&rr(c)||Ye(u)&&Ye(c)||Array.isArray(u)&&Array.isArray(c)?!Bn(u,c):u!==c)return!1}}return!0}var dn=n=>typeof n=="string",Cy=(n,i,r,s,a)=>dn(n)?(s&&i.watch.add(n),ne(r,n,a)):Array.isArray(n)?n.map(u=>(s&&i.watch.add(u),ne(r,u))):(s&&(i.watchAll=!0),r),Sy=(n,i,r,s,a)=>i?{...r[n],types:{...r[n]&&r[n].types?r[n].types:{},[s]:a||!0}}:{},si=n=>Array.isArray(n)?n:[n],Uc=()=>{let n=[];return{get observers(){return n},next:a=>{for(const u of n)u.next&&u.next(a)},subscribe:a=>(n.push(a),{unsubscribe:()=>{n=n.filter(u=>u!==a)}}),unsubscribe:()=>{n=[]}}},yt=n=>Ye(n)&&!Object.keys(n).length,ra=n=>n.type==="file",tn=n=>typeof n=="function",lo=n=>{if(!ea)return!1;const i=n?n.ownerDocument:0;return n instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},$c=n=>n.type==="select-multiple",ia=n=>n.type==="radio",Ey=n=>ia(n)||oi(n),oa=n=>lo(n)&&n.isConnected;function Ay(n,i){const r=i.slice(0,-1).length;let s=0;for(;s<r;)n=Qe(n)?s++:n[i[s++]];return n}function Ry(n){for(const i in n)if(n.hasOwnProperty(i)&&!Qe(n[i]))return!1;return!0}function tt(n,i){const r=Array.isArray(i)?i:ta(i)?[i]:Vc(i),s=r.length===1?n:Ay(n,r),a=r.length-1,u=r[a];return s&&delete s[u],a!==0&&(Ye(s)&&yt(s)||Array.isArray(s)&&Ry(s))&&tt(n,r.slice(0,-1)),n}var Hc=n=>{for(const i in n)if(tn(n[i]))return!0;return!1};function uo(n,i={}){const r=Array.isArray(n);if(Ye(n)||r)for(const s in n)Array.isArray(n[s])||Ye(n[s])&&!Hc(n[s])?(i[s]=Array.isArray(n[s])?[]:{},uo(n[s],i[s])):mt(n[s])||(i[s]=!0);return i}function zc(n,i,r){const s=Array.isArray(n);if(Ye(n)||s)for(const a in n)Array.isArray(n[a])||Ye(n[a])&&!Hc(n[a])?Qe(i)||na(r[a])?r[a]=Array.isArray(n[a])?uo(n[a],[]):{...uo(n[a])}:zc(n[a],mt(i)?{}:i[a],r[a]):r[a]=!Bn(n[a],i[a]);return r}var ai=(n,i)=>zc(n,i,uo(i));const Kc={value:!1,isValid:!1},qc={value:!0,isValid:!0};var Gc=n=>{if(Array.isArray(n)){if(n.length>1){const i=n.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!Qe(n[0].attributes.value)?Qe(n[0].value)||n[0].value===""?qc:{value:n[0].value,isValid:!0}:qc:Kc}return Kc},Yc=(n,{valueAsNumber:i,valueAsDate:r,setValueAs:s})=>Qe(n)?n:i?n===""?NaN:n&&+n:r&&dn(n)?new Date(n):s?s(n):n;const Xc={isValid:!1,value:null};var Zc=n=>Array.isArray(n)?n.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Xc):Xc;function Jc(n){const i=n.ref;return ra(i)?i.files:ia(i)?Zc(n.refs).value:$c(i)?[...i.selectedOptions].map(({value:r})=>r):oi(i)?Gc(n.refs).value:Yc(Qe(i.value)?n.ref.value:i.value,n)}var Py=(n,i,r,s)=>{const a={};for(const u of n){const c=ne(i,u);c&&je(a,u,c._f)}return{criteriaMode:r,names:[...n],fields:a,shouldUseNativeValidation:s}},co=n=>n instanceof RegExp,li=n=>Qe(n)?n:co(n)?n.source:Ye(n)?co(n.value)?n.value.source:n.value:n,Qc=n=>({isOnSubmit:!n||n===en.onSubmit,isOnBlur:n===en.onBlur,isOnChange:n===en.onChange,isOnAll:n===en.all,isOnTouch:n===en.onTouched});const ef="AsyncFunction";var Oy=n=>!!n&&!!n.validate&&!!(tn(n.validate)&&n.validate.constructor.name===ef||Ye(n.validate)&&Object.values(n.validate).find(i=>i.constructor.name===ef)),Ty=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),tf=(n,i,r)=>!r&&(i.watchAll||i.watch.has(n)||[...i.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const ui=(n,i,r,s)=>{for(const a of r||Object.keys(n)){const u=ne(n,a);if(u){const{_f:c,...f}=u;if(c){if(c.refs&&c.refs[0]&&i(c.refs[0],a)&&!s)return!0;if(c.ref&&i(c.ref,c.name)&&!s)return!0;if(ui(f,i))break}else if(Ye(f)&&ui(f,i))break}}};function nf(n,i,r){const s=ne(n,r);if(s||ta(r))return{error:s,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),c=ne(i,u),f=ne(n,u);if(c&&!Array.isArray(c)&&r!==u)return{name:r};if(f&&f.type)return{name:u,error:f};a.pop()}return{name:r}}var Iy=(n,i,r,s)=>{r(n);const{name:a,...u}=n;return yt(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(c=>i[c]===(!s||en.all))},Dy=(n,i,r)=>!n||!i||n===i||si(n).some(s=>s&&(r?s===i:s.startsWith(i)||i.startsWith(s))),Ny=(n,i,r,s,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||n):(r?s.isOnBlur:a.isOnBlur)?!n:(r?s.isOnChange:a.isOnChange)?n:!0,My=(n,i)=>!ao(ne(n,i)).length&&tt(n,i),Ly=(n,i,r)=>{const s=si(ne(n,r));return je(s,"root",i[r]),je(n,r,s),n},fo=n=>dn(n);function rf(n,i,r="validate"){if(fo(n)||Array.isArray(n)&&n.every(fo)||fn(n)&&!n)return{type:r,message:fo(n)?n:"",ref:i}}var Tr=n=>Ye(n)&&!co(n)?n:{value:n,message:""},of=async(n,i,r,s,a,u)=>{const{ref:c,refs:f,required:p,maxLength:v,minLength:m,min:w,max:C,pattern:R,validate:D,name:x,valueAsNumber:E,mount:A}=n._f,O=ne(r,x);if(!A||i.has(x))return{};const I=f?f[0]:c,F=X=>{a&&I.reportValidity&&(I.setCustomValidity(fn(X)?"":X||""),I.reportValidity())},M={},H=ia(c),B=oi(c),K=H||B,te=(E||ra(c))&&Qe(c.value)&&Qe(O)||lo(c)&&c.value===""||O===""||Array.isArray(O)&&!O.length,he=Sy.bind(null,x,s,M),fe=(X,Z,re,de=bn.maxLength,se=bn.minLength)=>{const ce=X?Z:re;M[x]={type:X?de:se,message:ce,ref:c,...he(X?de:se,ce)}};if(u?!Array.isArray(O)||!O.length:p&&(!K&&(te||mt(O))||fn(O)&&!O||B&&!Gc(f).isValid||H&&!Zc(f).isValid)){const{value:X,message:Z}=fo(p)?{value:!!p,message:p}:Tr(p);if(X&&(M[x]={type:bn.required,message:Z,ref:I,...he(bn.required,Z)},!s))return F(Z),M}if(!te&&(!mt(w)||!mt(C))){let X,Z;const re=Tr(C),de=Tr(w);if(!mt(O)&&!isNaN(O)){const se=c.valueAsNumber||O&&+O;mt(re.value)||(X=se>re.value),mt(de.value)||(Z=se<de.value)}else{const se=c.valueAsDate||new Date(O),ce=Ne=>new Date(new Date().toDateString()+" "+Ne),oe=c.type=="time",ye=c.type=="week";dn(re.value)&&O&&(X=oe?ce(O)>ce(re.value):ye?O>re.value:se>new Date(re.value)),dn(de.value)&&O&&(Z=oe?ce(O)<ce(de.value):ye?O<de.value:se<new Date(de.value))}if((X||Z)&&(fe(!!X,re.message,de.message,bn.max,bn.min),!s))return F(M[x].message),M}if((v||m)&&!te&&(dn(O)||u&&Array.isArray(O))){const X=Tr(v),Z=Tr(m),re=!mt(X.value)&&O.length>+X.value,de=!mt(Z.value)&&O.length<+Z.value;if((re||de)&&(fe(re,X.message,Z.message),!s))return F(M[x].message),M}if(R&&!te&&dn(O)){const{value:X,message:Z}=Tr(R);if(co(X)&&!O.match(X)&&(M[x]={type:bn.pattern,message:Z,ref:c,...he(bn.pattern,Z)},!s))return F(Z),M}if(D){if(tn(D)){const X=await D(O,r),Z=rf(X,I);if(Z&&(M[x]={...Z,...he(bn.validate,Z.message)},!s))return F(Z.message),M}else if(Ye(D)){let X={};for(const Z in D){if(!yt(X)&&!s)break;const re=rf(await D[Z](O,r),I,Z);re&&(X={...re,...he(Z,re.message)},F(re.message),s&&(M[x]=X))}if(!yt(X)&&(M[x]={ref:I,...X},!s))return M}}return F(!0),M};const Fy={mode:en.onSubmit,reValidateMode:en.onChange,shouldFocusError:!0};function ky(n={}){let i={...Fy,...n},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:tn(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1};const s={};let a=Ye(i.defaultValues)||Ye(i.values)?ht(i.values||i.defaultValues)||{}:{},u=i.shouldUnregister?{}:ht(a),c={action:!1,mount:!1,watch:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,v=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let w={...m};const C={array:Uc(),state:Uc()},R=Qc(i.mode),D=Qc(i.reValidateMode),x=i.criteriaMode===en.all,E=S=>L=>{clearTimeout(v),v=setTimeout(S,L)},A=async S=>{if(!i.disabled&&(m.isValid||w.isValid||S)){const L=i.resolver?yt((await te()).errors):await fe(s,!0);L!==r.isValid&&C.state.next({isValid:L})}},O=(S,L)=>{!i.disabled&&(m.isValidating||m.validatingFields||w.isValidating||w.validatingFields)&&((S||Array.from(f.mount)).forEach(W=>{W&&(L?je(r.validatingFields,W,L):tt(r.validatingFields,W))}),C.state.next({validatingFields:r.validatingFields,isValidating:!yt(r.validatingFields)}))},I=(S,L=[],W,Y,q=!0,z=!0)=>{if(Y&&W&&!i.disabled){if(c.action=!0,z&&Array.isArray(ne(s,S))){const J=W(ne(s,S),Y.argA,Y.argB);q&&je(s,S,J)}if(z&&Array.isArray(ne(r.errors,S))){const J=W(ne(r.errors,S),Y.argA,Y.argB);q&&je(r.errors,S,J),My(r.errors,S)}if((m.touchedFields||w.touchedFields)&&z&&Array.isArray(ne(r.touchedFields,S))){const J=W(ne(r.touchedFields,S),Y.argA,Y.argB);q&&je(r.touchedFields,S,J)}(m.dirtyFields||w.dirtyFields)&&(r.dirtyFields=ai(a,u)),C.state.next({name:S,isDirty:Z(S,L),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else je(u,S,L)},F=(S,L)=>{je(r.errors,S,L),C.state.next({errors:r.errors})},M=S=>{r.errors=S,C.state.next({errors:r.errors,isValid:!1})},H=(S,L,W,Y)=>{const q=ne(s,S);if(q){const z=ne(u,S,Qe(W)?ne(a,S):W);Qe(z)||Y&&Y.defaultChecked||L?je(u,S,L?z:Jc(q._f)):se(S,z),c.mount&&A()}},B=(S,L,W,Y,q)=>{let z=!1,J=!1;const Ee={name:S};if(!i.disabled){if(!W||Y){(m.isDirty||w.isDirty)&&(J=r.isDirty,r.isDirty=Ee.isDirty=Z(),z=J!==Ee.isDirty);const He=Bn(ne(a,S),L);J=!!ne(r.dirtyFields,S),He?tt(r.dirtyFields,S):je(r.dirtyFields,S,!0),Ee.dirtyFields=r.dirtyFields,z=z||(m.dirtyFields||w.dirtyFields)&&J!==!He}if(W){const He=ne(r.touchedFields,S);He||(je(r.touchedFields,S,W),Ee.touchedFields=r.touchedFields,z=z||(m.touchedFields||w.touchedFields)&&He!==W)}z&&q&&C.state.next(Ee)}return z?Ee:{}},K=(S,L,W,Y)=>{const q=ne(r.errors,S),z=(m.isValid||w.isValid)&&fn(L)&&r.isValid!==L;if(i.delayError&&W?(p=E(()=>F(S,W)),p(i.delayError)):(clearTimeout(v),p=null,W?je(r.errors,S,W):tt(r.errors,S)),(W?!Bn(q,W):q)||!yt(Y)||z){const J={...Y,...z&&fn(L)?{isValid:L}:{},errors:r.errors,name:S};r={...r,...J},C.state.next(J)}},te=async S=>{O(S,!0);const L=await i.resolver(u,i.context,Py(S||f.mount,s,i.criteriaMode,i.shouldUseNativeValidation));return O(S),L},he=async S=>{const{errors:L}=await te(S);if(S)for(const W of S){const Y=ne(L,W);Y?je(r.errors,W,Y):tt(r.errors,W)}else r.errors=L;return L},fe=async(S,L,W={valid:!0})=>{for(const Y in S){const q=S[Y];if(q){const{_f:z,...J}=q;if(z){const Ee=f.array.has(z.name),He=q._f&&Oy(q._f);He&&m.validatingFields&&O([Y],!0);const et=await of(q,f.disabled,u,x,i.shouldUseNativeValidation&&!L,Ee);if(He&&m.validatingFields&&O([Y]),et[z.name]&&(W.valid=!1,L))break;!L&&(ne(et,z.name)?Ee?Ly(r.errors,et,z.name):je(r.errors,z.name,et[z.name]):tt(r.errors,z.name))}!yt(J)&&await fe(J,L,W)}}return W.valid},X=()=>{for(const S of f.unMount){const L=ne(s,S);L&&(L._f.refs?L._f.refs.every(W=>!oa(W)):!oa(L._f.ref))&&Fe(S)}f.unMount=new Set},Z=(S,L)=>!i.disabled&&(S&&L&&je(u,S,L),!Bn(wt(),a)),re=(S,L,W)=>Cy(S,f,{...c.mount?u:Qe(L)?a:dn(S)?{[S]:L}:L},W,L),de=S=>ao(ne(c.mount?u:a,S,i.shouldUnregister?ne(a,S,[]):[])),se=(S,L,W={})=>{const Y=ne(s,S);let q=L;if(Y){const z=Y._f;z&&(!z.disabled&&je(u,S,Yc(L,z)),q=lo(z.ref)&&mt(L)?"":L,$c(z.ref)?[...z.ref.options].forEach(J=>J.selected=q.includes(J.value)):z.refs?oi(z.ref)?z.refs.length>1?z.refs.forEach(J=>(!J.defaultChecked||!J.disabled)&&(J.checked=Array.isArray(q)?!!q.find(Ee=>Ee===J.value):q===J.value)):z.refs[0]&&(z.refs[0].checked=!!q):z.refs.forEach(J=>J.checked=J.value===q):ra(z.ref)?z.ref.value="":(z.ref.value=q,z.ref.type||C.state.next({name:S,values:ht(u)})))}(W.shouldDirty||W.shouldTouch)&&B(S,q,W.shouldTouch,W.shouldDirty,!0),W.shouldValidate&&Me(S)},ce=(S,L,W)=>{for(const Y in L){const q=L[Y],z=`${S}.${Y}`,J=ne(s,z);(f.array.has(S)||Ye(q)||J&&!J._f)&&!rr(q)?ce(z,q,W):se(z,q,W)}},oe=(S,L,W={})=>{const Y=ne(s,S),q=f.array.has(S),z=ht(L);je(u,S,z),q?(C.array.next({name:S,values:ht(u)}),(m.isDirty||m.dirtyFields||w.isDirty||w.dirtyFields)&&W.shouldDirty&&C.state.next({name:S,dirtyFields:ai(a,u),isDirty:Z(S,z)})):Y&&!Y._f&&!mt(z)?ce(S,z,W):se(S,z,W),tf(S,f)&&C.state.next({...r}),C.state.next({name:c.mount?S:void 0,values:ht(u)})},ye=async S=>{c.mount=!0;const L=S.target;let W=L.name,Y=!0;const q=ne(s,W),z=J=>{Y=Number.isNaN(J)||rr(J)&&isNaN(J.getTime())||Bn(J,ne(u,W,J))};if(q){let J,Ee;const He=L.type?Jc(q._f):vy(S),et=S.type===Wc.BLUR||S.type===Wc.FOCUS_OUT,di=!Ty(q._f)&&!i.resolver&&!ne(r.errors,W)&&!q._f.deps||Ny(et,ne(r.touchedFields,W),r.isSubmitted,D,R),or=tf(W,f,et);je(u,W,He),et?(q._f.onBlur&&q._f.onBlur(S),p&&p(0)):q._f.onChange&&q._f.onChange(S);const sr=B(W,He,et),hi=!yt(sr)||or;if(!et&&C.state.next({name:W,type:S.type,values:ht(u)}),di)return(m.isValid||w.isValid)&&(i.mode==="onBlur"?et&&A():et||A()),hi&&C.state.next({name:W,...or?{}:sr});if(!et&&or&&C.state.next({...r}),i.resolver){const{errors:Nr}=await te([W]);if(z(He),Y){const pi=nf(r.errors,s,W),yo=nf(Nr,s,pi.name||W);J=yo.error,W=yo.name,Ee=yt(Nr)}}else O([W],!0),J=(await of(q,f.disabled,u,x,i.shouldUseNativeValidation))[W],O([W]),z(He),Y&&(J?Ee=!1:(m.isValid||w.isValid)&&(Ee=await fe(s,!0)));Y&&(q._f.deps&&Me(q._f.deps),K(W,Ee,J,sr))}},Ne=(S,L)=>{if(ne(r.errors,L)&&S.focus)return S.focus(),1},Me=async(S,L={})=>{let W,Y;const q=si(S);if(i.resolver){const z=await he(Qe(S)?S:q);W=yt(z),Y=S?!q.some(J=>ne(z,J)):W}else S?(Y=(await Promise.all(q.map(async z=>{const J=ne(s,z);return await fe(J&&J._f?{[z]:J}:J)}))).every(Boolean),!(!Y&&!r.isValid)&&A()):Y=W=await fe(s);return C.state.next({...!dn(S)||(m.isValid||w.isValid)&&W!==r.isValid?{}:{name:S},...i.resolver||!S?{isValid:W}:{},errors:r.errors}),L.shouldFocus&&!Y&&ui(s,Ne,S?q:f.mount),Y},wt=S=>{const L={...c.mount?u:a};return Qe(S)?L:dn(S)?ne(L,S):S.map(W=>ne(L,W))},Wt=(S,L)=>({invalid:!!ne((L||r).errors,S),isDirty:!!ne((L||r).dirtyFields,S),error:ne((L||r).errors,S),isValidating:!!ne(r.validatingFields,S),isTouched:!!ne((L||r).touchedFields,S)}),Ct=S=>{S&&si(S).forEach(L=>tt(r.errors,L)),C.state.next({errors:S?r.errors:{}})},it=(S,L,W)=>{const Y=(ne(s,S,{_f:{}})._f||{}).ref,q=ne(r.errors,S)||{},{ref:z,message:J,type:Ee,...He}=q;je(r.errors,S,{...He,...L,ref:Y}),C.state.next({name:S,errors:r.errors,isValid:!1}),W&&W.shouldFocus&&Y&&Y.focus&&Y.focus()},pt=(S,L)=>tn(S)?C.state.subscribe({next:W=>S(re(void 0,L),W)}):re(S,L,!0),ee=S=>C.state.subscribe({next:L=>{Dy(S.name,L.name,S.exact)&&Iy(L,S.formState||m,Vn,S.reRenderRoot)&&S.callback({values:{...u},...r,...L})}}).unsubscribe,xe=S=>(c.mount=!0,w={...w,...S.formState},ee({...S,formState:w})),Fe=(S,L={})=>{for(const W of S?si(S):f.mount)f.mount.delete(W),f.array.delete(W),L.keepValue||(tt(s,W),tt(u,W)),!L.keepError&&tt(r.errors,W),!L.keepDirty&&tt(r.dirtyFields,W),!L.keepTouched&&tt(r.touchedFields,W),!L.keepIsValidating&&tt(r.validatingFields,W),!i.shouldUnregister&&!L.keepDefaultValue&&tt(a,W);C.state.next({values:ht(u)}),C.state.next({...r,...L.keepDirty?{isDirty:Z()}:{}}),!L.keepIsValid&&A()},Pe=({disabled:S,name:L})=>{(fn(S)&&c.mount||S||f.disabled.has(L))&&(S?f.disabled.add(L):f.disabled.delete(L))},be=(S,L={})=>{let W=ne(s,S);const Y=fn(L.disabled)||fn(i.disabled);return je(s,S,{...W||{},_f:{...W&&W._f?W._f:{ref:{name:S}},name:S,mount:!0,...L}}),f.mount.add(S),W?Pe({disabled:fn(L.disabled)?L.disabled:i.disabled,name:S}):H(S,!0,L.value),{...Y?{disabled:L.disabled||i.disabled}:{},...i.progressive?{required:!!L.required,min:li(L.min),max:li(L.max),minLength:li(L.minLength),maxLength:li(L.maxLength),pattern:li(L.pattern)}:{},name:S,onChange:ye,onBlur:ye,ref:q=>{if(q){be(S,L),W=ne(s,S);const z=Qe(q.value)&&q.querySelectorAll&&q.querySelectorAll("input,select,textarea")[0]||q,J=Ey(z),Ee=W._f.refs||[];if(J?Ee.find(He=>He===z):z===W._f.ref)return;je(s,S,{_f:{...W._f,...J?{refs:[...Ee.filter(oa),z,...Array.isArray(ne(a,S))?[{}]:[]],ref:{type:z.type,name:S}}:{ref:z}}}),H(S,!1,void 0,z)}else W=ne(s,S,{}),W._f&&(W._f.mount=!1),(i.shouldUnregister||L.shouldUnregister)&&!(yy(f.array,S)&&c.action)&&f.unMount.add(S)}}},Se=()=>i.shouldFocusError&&ui(s,Ne,f.mount),ot=S=>{fn(S)&&(C.state.next({disabled:S}),ui(s,(L,W)=>{const Y=ne(s,W);Y&&(L.disabled=Y._f.disabled||S,Array.isArray(Y._f.refs)&&Y._f.refs.forEach(q=>{q.disabled=Y._f.disabled||S}))},0,!1))},Ue=(S,L)=>async W=>{let Y;W&&(W.preventDefault&&W.preventDefault(),W.persist&&W.persist());let q=ht(u);if(C.state.next({isSubmitting:!0}),i.resolver){const{errors:z,values:J}=await te();r.errors=z,q=J}else await fe(s);if(f.disabled.size)for(const z of f.disabled)je(q,z,void 0);if(tt(r.errors,"root"),yt(r.errors)){C.state.next({errors:{}});try{await S(q,W)}catch(z){Y=z}}else L&&await L({...r.errors},W),Se(),setTimeout(Se);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:yt(r.errors)&&!Y,submitCount:r.submitCount+1,errors:r.errors}),Y)throw Y},Dt=(S,L={})=>{ne(s,S)&&(Qe(L.defaultValue)?oe(S,ht(ne(a,S))):(oe(S,L.defaultValue),je(a,S,ht(L.defaultValue))),L.keepTouched||tt(r.touchedFields,S),L.keepDirty||(tt(r.dirtyFields,S),r.isDirty=L.defaultValue?Z(S,ht(ne(a,S))):Z()),L.keepError||(tt(r.errors,S),m.isValid&&A()),C.state.next({...r}))},hn=(S,L={})=>{const W=S?ht(S):a,Y=ht(W),q=yt(S),z=q?a:Y;if(L.keepDefaultValues||(a=W),!L.keepValues){if(L.keepDirtyValues){const J=new Set([...f.mount,...Object.keys(ai(a,u))]);for(const Ee of Array.from(J))ne(r.dirtyFields,Ee)?je(z,Ee,ne(u,Ee)):oe(Ee,ne(z,Ee))}else{if(ea&&Qe(S))for(const J of f.mount){const Ee=ne(s,J);if(Ee&&Ee._f){const He=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(lo(He)){const et=He.closest("form");if(et){et.reset();break}}}}for(const J of f.mount)oe(J,ne(z,J))}u=ht(z),C.array.next({values:{...z}}),C.state.next({values:{...z}})}f={mount:L.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!m.isValid||!!L.keepIsValid||!!L.keepDirtyValues,c.watch=!!i.shouldUnregister,C.state.next({submitCount:L.keepSubmitCount?r.submitCount:0,isDirty:q?!1:L.keepDirty?r.isDirty:!!(L.keepDefaultValues&&!Bn(S,a)),isSubmitted:L.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:q?{}:L.keepDirtyValues?L.keepDefaultValues&&u?ai(a,u):r.dirtyFields:L.keepDefaultValues&&S?ai(a,S):L.keepDirty?r.dirtyFields:{},touchedFields:L.keepTouched?r.touchedFields:{},errors:L.keepErrors?r.errors:{},isSubmitSuccessful:L.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},st=(S,L)=>hn(tn(S)?S(u):S,L),Ir=(S,L={})=>{const W=ne(s,S),Y=W&&W._f;if(Y){const q=Y.refs?Y.refs[0]:Y.ref;q.focus&&(q.focus(),L.shouldSelect&&tn(q.select)&&q.select())}},Vn=S=>{r={...r,...S}},St={control:{register:be,unregister:Fe,getFieldState:Wt,handleSubmit:Ue,setError:it,_subscribe:ee,_runSchema:te,_getWatch:re,_getDirty:Z,_setValid:A,_setFieldArray:I,_setDisabledField:Pe,_setErrors:M,_getFieldArray:de,_reset:hn,_resetDefaultValues:()=>tn(i.defaultValues)&&i.defaultValues().then(S=>{st(S,i.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:ot,_subjects:C,_proxyFormState:m,get _fields(){return s},get _formValues(){return u},get _state(){return c},set _state(S){c=S},get _defaultValues(){return a},get _names(){return f},set _names(S){f=S},get _formState(){return r},get _options(){return i},set _options(S){i={...i,...S}}},subscribe:xe,trigger:Me,register:be,handleSubmit:Ue,watch:pt,setValue:oe,getValues:wt,reset:st,resetField:Dt,clearErrors:Ct,unregister:Fe,setError:it,setFocus:Ir,getFieldState:Wt};return{...St,formControl:St}}const By=typeof window<"u"?Te.useLayoutEffect:Te.useEffect;function Vy(n={}){const i=Te.useRef(void 0),r=Te.useRef(void 0),[s,a]=Te.useState({isDirty:!1,isValidating:!1,isLoading:tn(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:tn(n.defaultValues)?void 0:n.defaultValues});i.current||(i.current={...n.formControl?n.formControl:ky(n),formState:s},n.formControl&&n.defaultValues&&!tn(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions));const u=i.current.control;return u._options=n,By(()=>{const c=u._subscribe({formState:u._proxyFormState,callback:()=>a({...u._formState}),reRenderRoot:!0});return a(f=>({...f,isReady:!0})),u._formState.isReady=!0,c},[u]),Te.useEffect(()=>u._disableForm(n.disabled),[u,n.disabled]),Te.useEffect(()=>{n.mode&&(u._options.mode=n.mode),n.reValidateMode&&(u._options.reValidateMode=n.reValidateMode),n.errors&&!yt(n.errors)&&u._setErrors(n.errors)},[u,n.errors,n.mode,n.reValidateMode]),Te.useEffect(()=>{n.shouldUnregister&&u._subjects.state.next({values:u._getWatch()})},[u,n.shouldUnregister]),Te.useEffect(()=>{if(u._proxyFormState.isDirty){const c=u._getDirty();c!==s.isDirty&&u._subjects.state.next({isDirty:c})}},[u,s.isDirty]),Te.useEffect(()=>{n.values&&!Bn(n.values,r.current)?(u._reset(n.values,u._options.resetOptions),r.current=n.values,a(c=>({...c}))):u._resetDefaultValues()},[u,n.values]),Te.useEffect(()=>{u._state.mount||(u._setValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=_y(s,u),i.current}const Wy=ke("useEffectiveRegister",()=>{try{return xy()}catch{return null}}),ci=ke("useValidator",(n,i)=>{const r=Wy()??{register:void 0},{register:s,watch:a,...u}=r,c=lt(()=>({uppercase:v=>/[A-Z]/.test(v)?!0:"Password should contain an uppercase letter",lowercase:v=>/[a-z]/.test(v)?!0:"Password should contain a lowercase letter","special-character":v=>/[!@#$%^&*()_+{}[\]:;"'<>,.?/\\|`~-]/.test(v)?!0:"Password should contain a special character","alpha-numeric":v=>/[A-Za-z]/.test(v)&&/\d/.test(v)?!0:"Password should be alphanumeric"}),[]),f=Je(v=>{var m;return!!(n[v]||(m=n.customMessage)!=null&&m[v])},[n]),p=lt(()=>{var m,w,C,R,D,x,E,A;return s?{...f("required")&&{required:((m=n.customMessage)==null?void 0:m.required)??"This field is required"},...f("minLength")&&{minLength:{value:n.minLength??0,message:((w=n.customMessage)==null?void 0:w.minLength)??`Min. ${n.minLength} characters`}},...f("maxLength")&&{maxLength:{value:n.maxLength??1/0,message:((C=n.customMessage)==null?void 0:C.maxLength)??`Max. ${n.maxLength} characters`}},...f("min")&&{min:{value:n.min??0,message:((R=n.customMessage)==null?void 0:R.min)??`Value should not lesser than ${n.min}`}},...f("max")&&{max:{value:n.max??1/0,message:((D=n.customMessage)==null?void 0:D.max)??`Value should not greater than ${n.max}`}},...n.type==="email"&&{pattern:{value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:((x=n.customMessage)==null?void 0:x.pattern)??"Invalid email format"}},...n.type==="password"&&{validate:(E=n.passwordRequirements)==null?void 0:E.reduce((O,I)=>{const F=c[I];return F&&(O[I]=F),O},{})},...f("pattern")&&{pattern:{value:n.pattern??/.*/,message:((A=n.customMessage)==null?void 0:A.pattern)??"Invalid characters"}},...n.validate?{validate:n.validate}:{}}:void 0},[n,s,f,c]);if(p)return{...s(i,p),methods:{...u,watchedValue:a(i)}}});var sf={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},af=Te.createContext&&Te.createContext(sf),jy=["attr","size","title"];function Uy(n,i){if(n==null)return{};var r=$y(n,i),s,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(a=0;a<u.length;a++)s=u[a],!(i.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(r[s]=n[s])}return r}function $y(n,i){if(n==null)return{};var r={};for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){if(i.indexOf(s)>=0)continue;r[s]=n[s]}return r}function ho(){return ho=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},ho.apply(this,arguments)}function lf(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);i&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),r.push.apply(r,s)}return r}function po(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?lf(Object(r),!0).forEach(function(s){Hy(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):lf(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function Hy(n,i,r){return i=zy(i),i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function zy(n){var i=Ky(n,"string");return typeof i=="symbol"?i:i+""}function Ky(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function uf(n){return n&&n.map((i,r)=>Te.createElement(i.tag,po({key:r},i.attr),uf(i.child)))}function qy(n){return i=>Te.createElement(Gy,ho({attr:po({},n.attr)},i),uf(n.child))}function Gy(n){var i=r=>{var{attr:s,size:a,title:u}=n,c=Uy(n,jy),f=a||r.size||"1em",p;return r.className&&(p=r.className),n.className&&(p=(p?p+" ":"")+n.className),Te.createElement("svg",ho({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,c,{className:p,style:po(po({color:n.color||r.color},r.style),n.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&Te.createElement("title",null,u),n.children)};return af!==void 0?Te.createElement(af.Consumer,null,r=>i(r)):i(sf)}function Yy(n){return qy({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22c5.421 0 10-4.579 10-10h-2c0 4.337-3.663 8-8 8s-8-3.663-8-8c0-4.336 3.663-8 8-8V2C6.579 2 2 6.58 2 12c0 5.421 4.579 10 10 10z"},child:[]}]})(n)}const Xy=ke("Tooltip",n=>{const{content:i,children:r,hide:s,className:a,position:u}=n,c=Qt("Tooltip",{props:n})??{};return b.jsxs(fy,{delayDuration:0,open:s?!1:void 0,children:[b.jsx(dy,{asChild:!0,className:a,children:r}),b.jsx(hy,{children:b.jsx(py,{side:u,sideOffset:4,children:b.jsx("div",{...c.content,children:i})})})]})}),Vt=ke("Icon",Yn(({name:n,className:i,tooltip:r,tooltipPos:s,severity:a,...u},c)=>{const f=a?Xh(a,{color:!0}):"text-black";return b.jsx(Xy,{className:i,content:r,hide:!r,position:s??"right",children:b.jsx("i",{"aria-hidden":"true",className:xn("icon",`ic-${n}`,f),ref:c,...u})})}));Vt.displayName="Icon";const Zy=ke("Button",({icon:n,label:i,severity:r="primary",onClick:s=()=>{},disabled:a=!1,height:u=26,loading:c=!1,outlined:f=!1,text:p=!1,width:v="max-content",type:m="button"})=>{const w=Qt("Button",{context:{disabled:!!c||!!a},props:{height:u,width:v,label:i,outlined:f,text:p,severity:r}})??{},C=()=>{if(i)return b.jsx("span",{...w.label,children:i})},D=(()=>{var E;return!n&&!c?b.jsx("span",{...w.icon}):n&&!c?b.jsx(Vt,{name:n}):b.jsx(Yy,{className:xn((E=w.loadingIcon)==null?void 0:E.className)})})(),x=C();return b.jsxs("button",{...w.root,type:m,onClick:s,children:[D,x]})});let go;const Jy=new Uint8Array(16);function Qy(){if(!go&&(go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return go(Jy)}const ut=[];for(let n=0;n<256;++n)ut.push((n+256).toString(16).slice(1));function ew(n,i=0){return ut[n[i+0]]+ut[n[i+1]]+ut[n[i+2]]+ut[n[i+3]]+"-"+ut[n[i+4]]+ut[n[i+5]]+"-"+ut[n[i+6]]+ut[n[i+7]]+"-"+ut[n[i+8]]+ut[n[i+9]]+"-"+ut[n[i+10]]+ut[n[i+11]]+ut[n[i+12]]+ut[n[i+13]]+ut[n[i+14]]+ut[n[i+15]]}const cf={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sa(n,i,r){if(cf.randomUUID&&!n)return cf.randomUUID();n=n||{};const s=n.random||(n.rng||Qy)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,ew(s)}const tw=ke("Popover",n=>{const{children:i,closeOnBlur:r,content:s,triggerOnMouseOver:a=!1,alwaysRender:u,defaultVisibility:c=u,visible:f,onVisibleChange:p}=n,[v,m]=Ot(!1);mn(()=>{f!==null&&m(f),c!==null&&m(c),u&&m(u)},[f,m,c,u]);const w=Je(C=>{m(C==="in"),p==null||p(C==="in")},[m,p]);return b.jsx(lm,{defaultOpen:c,open:v,onOpenChange:m,children:a?b.jsx(Qu,{asChild:!0,onMouseOut:()=>w("out"),onMouseOver:()=>w("in"),children:b.jsxs("div",{className:"group w-max h-max relative m-auto",children:[i,b.jsx(ec,{align:"end",className:"absolute bottom-2 right-2",forceMount:u,tabIndex:void 0,onFocusOutside:C=>{r||C.preventDefault()},onMouseOut:()=>w("out"),onMouseOver:()=>w("in"),children:s})]})}):b.jsxs(b.Fragment,{children:[b.jsx(Qu,{asChild:!0,children:i}),b.jsx(ec,{align:"end",className:"absolute bottom-2 right-2",forceMount:u,tabIndex:void 0,onFocusOutside:C=>{r||C.preventDefault()},children:s})]})})}),nw=n=>b.jsx(qm,{...n}),ir=ke("Slot",({children:n,slots:i,name:r})=>r&&(i!=null&&i[r])?b.jsx(b.Fragment,{children:i[r]}):b.jsx(b.Fragment,{children:n})),ff=Yn((n,i)=>{const{header:r,content:s,footer:a,slots:u,size:c="xs",clickable:f=!1,draggable:p=!1,className:v,severity:m,groupId:w,onDrop:C=()=>{},onDragStart:R=()=>{},id:D,mode:x,orientation:E="horizontal",decorative:A=!1,useSeparator:O=!0,...I}=n,F=_l(null),M=Qt("Card",{props:{size:c,orientation:E,severity:m}})??{},H=Je(te=>{!p||x!=="kanban"||R({originalEvent:te,draggedGroupId:w,draggedId:D})},[p,x,w,D,R]),B=Je(te=>{!p||x!=="kanban"||C({originalEvent:te,destinationGroupId:w,destinationId:D})},[p,x,w,D,C]),K=Je(()=>({tabIndex:f?0:void 0,role:f?"button":void 0,type:f?"button":void 0,onClick:f?I.onClick:void 0,onKeyDown:f?I.onKeyDown:void 0,onDragStart:H,onDrop:B,onDragOver:te=>te.preventDefault()}),[f,H,B,I]);return us(i,()=>F.current,[]),b.jsxs("div",{...M.root,...I,...K(),className:xn(M.root.className,v),draggable:p,id:D,ref:F,children:[b.jsx(ir,{name:"header",slots:u,children:(r||(u==null?void 0:u.header))&&b.jsx("div",{...M.header,children:r})}),O&&b.jsx(nw,{...M.separator,decorative:A,orientation:E}),b.jsx(ir,{name:"content",slots:u,children:(s||(u==null?void 0:u.content))&&b.jsx("div",{...M.content,children:s})}),b.jsx(ir,{name:"footer",slots:u,children:(a||(u==null?void 0:u.footer))&&b.jsx("div",{...M.footer,children:a})})]})}),df=ke("Card",Yn((n,i)=>{const{mode:r="container",clickable:s,draggable:a,className:u,id:c,...f}=n,p=()=>b.jsx("div",{className:"flex gap-1 items-center translate-x-8 translate-y-1 !w-0 group-hover:!w-full group-hover:translate-x-2.5 group-hover:translate-y-1 transition-all duration-300 ease-in-out",children:r==="kanban"&&f.menus.map(m=>{const w=sa();return b.jsx(Vt,{className:xn("cursor-pointer hover:text-white",u),name:m.icon,severity:m.severity,onClick:C=>{m.command({originalEvent:C,cardId:c,groupId:f.groupId})}},w)})}),v=()=>b.jsx(ff,{...f,clickable:s||r==="kanban",content:"Cillum veniam aute elit consectetur officia deserunt sit laborum incididunt in anim ex. Magna nulla mollit ipsum labore incididunt mollit ad laborum velit ea amet pariatur. Ut culpa sunt eiusmod aliquip nulla ut quis est amet eiusmod cillum. Eu amet deserunt velit ad anim occaecat eiusmod.",draggable:a,header:"triggerOnMouseOver",id:c??sa(),mode:r,ref:i});return b.jsx(b.Fragment,{children:r==="kanban"?b.jsx(tw,{alwaysRender:!0,triggerOnMouseOver:!0,content:p(),children:v()}):b.jsx(b.Fragment,{children:v()})})}));ff.displayName="BaseCard",df.displayName="Card";var vo={exports:{}};/**
|
|
54
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${i.docsSlug}`;return y.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},Bg="DialogDescriptionWarning",Vg=({contentRef:n,descriptionId:i})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gu(Bg).contentName}}.`;return y.useEffect(()=>{var u;const a=(u=n.current)==null?void 0:u.getAttribute("aria-describedby");i&&a&&(document.getElementById(i)||console.warn(s))},[s,n,i]),null},Wg=iu,jg=au,Ug=lu,$g=uu,Hg=fu;function zg(n){const i=y.useRef({value:n,previous:n});return y.useMemo(()=>(i.current.value!==n&&(i.current.previous=i.current.value,i.current.value=n),i.current.previous),[n])}function Kg(n){const[i,r]=y.useState(void 0);return dt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const u=a[0];let c,f;if("borderBoxSize"in u){const p=u.borderBoxSize,v=Array.isArray(p)?p[0]:p;c=v.inlineSize,f=v.blockSize}else c=n.offsetWidth,f=n.offsetHeight;r({width:c,height:f})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else r(void 0)},[n]),i}const qg=["top","right","bottom","left"],Nn=Math.min,Tt=Math.max,Hi=Math.round,zi=Math.floor,ln=n=>({x:n,y:n}),Gg={left:"right",right:"left",bottom:"top",top:"bottom"},Yg={start:"end",end:"start"};function Rs(n,i,r){return Tt(n,Nn(i,r))}function yn(n,i){return typeof n=="function"?n(i):n}function wn(n){return n.split("-")[0]}function _r(n){return n.split("-")[1]}function Ps(n){return n==="x"?"y":"x"}function Os(n){return n==="y"?"height":"width"}function Mn(n){return["top","bottom"].includes(wn(n))?"y":"x"}function Ts(n){return Ps(Mn(n))}function Xg(n,i,r){r===void 0&&(r=!1);const s=_r(n),a=Ts(n),u=Os(a);let c=a==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return i.reference[u]>i.floating[u]&&(c=Ki(c)),[c,Ki(c)]}function Zg(n){const i=Ki(n);return[Is(n),i,Is(i)]}function Is(n){return n.replace(/start|end/g,i=>Yg[i])}function Jg(n,i,r){const s=["left","right"],a=["right","left"],u=["top","bottom"],c=["bottom","top"];switch(n){case"top":case"bottom":return r?i?a:s:i?s:a;case"left":case"right":return i?u:c;default:return[]}}function Qg(n,i,r,s){const a=_r(n);let u=Jg(wn(n),r==="start",s);return a&&(u=u.map(c=>c+"-"+a),i&&(u=u.concat(u.map(Is)))),u}function Ki(n){return n.replace(/left|right|bottom|top/g,i=>Gg[i])}function ev(n){return{top:0,right:0,bottom:0,left:0,...n}}function vu(n){return typeof n!="number"?ev(n):{top:n,right:n,bottom:n,left:n}}function qi(n){const{x:i,y:r,width:s,height:a}=n;return{width:s,height:a,top:r,left:i,right:i+s,bottom:r+a,x:i,y:r}}function mu(n,i,r){let{reference:s,floating:a}=n;const u=Mn(i),c=Ts(i),f=Os(c),p=wn(i),v=u==="y",m=s.x+s.width/2-a.width/2,w=s.y+s.height/2-a.height/2,_=s[f]/2-a[f]/2;let A;switch(p){case"top":A={x:m,y:s.y-a.height};break;case"bottom":A={x:m,y:s.y+s.height};break;case"right":A={x:s.x+s.width,y:w};break;case"left":A={x:s.x-a.width,y:w};break;default:A={x:s.x,y:s.y}}switch(_r(i)){case"start":A[c]-=_*(r&&v?-1:1);break;case"end":A[c]+=_*(r&&v?-1:1);break}return A}const tv=async(n,i,r)=>{const{placement:s="bottom",strategy:a="absolute",middleware:u=[],platform:c}=r,f=u.filter(Boolean),p=await(c.isRTL==null?void 0:c.isRTL(i));let v=await c.getElementRects({reference:n,floating:i,strategy:a}),{x:m,y:w}=mu(v,s,p),_=s,A={},D=0;for(let x=0;x<f.length;x++){const{name:E,fn:R}=f[x],{x:O,y:I,data:k,reset:M}=await R({x:m,y:w,initialPlacement:s,placement:_,strategy:a,middlewareData:A,rects:v,platform:c,elements:{reference:n,floating:i}});m=O??m,w=I??w,A={...A,[E]:{...A[E],...k}},M&&D<=50&&(D++,typeof M=="object"&&(M.placement&&(_=M.placement),M.rects&&(v=M.rects===!0?await c.getElementRects({reference:n,floating:i,strategy:a}):M.rects),{x:m,y:w}=mu(v,_,p)),x=-1)}return{x:m,y:w,placement:_,strategy:a,middlewareData:A}};async function Jr(n,i){var r;i===void 0&&(i={});const{x:s,y:a,platform:u,rects:c,elements:f,strategy:p}=n,{boundary:v="clippingAncestors",rootBoundary:m="viewport",elementContext:w="floating",altBoundary:_=!1,padding:A=0}=yn(i,n),D=vu(A),E=f[_?w==="floating"?"reference":"floating":w],R=qi(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(E)))==null||r?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:v,rootBoundary:m,strategy:p})),O=w==="floating"?{x:s,y:a,width:c.floating.width,height:c.floating.height}:c.reference,I=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),k=await(u.isElement==null?void 0:u.isElement(I))?await(u.getScale==null?void 0:u.getScale(I))||{x:1,y:1}:{x:1,y:1},M=qi(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:I,strategy:p}):O);return{top:(R.top-M.top+D.top)/k.y,bottom:(M.bottom-R.bottom+D.bottom)/k.y,left:(R.left-M.left+D.left)/k.x,right:(M.right-R.right+D.right)/k.x}}const nv=n=>({name:"arrow",options:n,async fn(i){const{x:r,y:s,placement:a,rects:u,platform:c,elements:f,middlewareData:p}=i,{element:v,padding:m=0}=yn(n,i)||{};if(v==null)return{};const w=vu(m),_={x:r,y:s},A=Ts(a),D=Os(A),x=await c.getDimensions(v),E=A==="y",R=E?"top":"left",O=E?"bottom":"right",I=E?"clientHeight":"clientWidth",k=u.reference[D]+u.reference[A]-_[A]-u.floating[D],M=_[A]-u.reference[A],$=await(c.getOffsetParent==null?void 0:c.getOffsetParent(v));let W=$?$[I]:0;(!W||!await(c.isElement==null?void 0:c.isElement($)))&&(W=f.floating[I]||u.floating[D]);const q=k/2-M/2,K=W/2-x[D]/2-1,se=Nn(w[R],K),fe=Nn(w[O],K),Z=se,J=W-x[D]-fe,re=W/2-x[D]/2+q,he=Rs(Z,re,J),ae=!p.arrow&&_r(a)!=null&&re!==he&&u.reference[D]/2-(re<Z?se:fe)-x[D]/2<0,de=ae?re<Z?re-Z:re-J:0;return{[A]:_[A]+de,data:{[A]:he,centerOffset:re-he-de,...ae&&{alignmentOffset:de}},reset:ae}}}),rv=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,s;const{placement:a,middlewareData:u,rects:c,initialPlacement:f,platform:p,elements:v}=i,{mainAxis:m=!0,crossAxis:w=!0,fallbackPlacements:_,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:x=!0,...E}=yn(n,i);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const R=wn(a),O=Mn(f),I=wn(f)===f,k=await(p.isRTL==null?void 0:p.isRTL(v.floating)),M=_||(I||!x?[Ki(f)]:Zg(f)),$=D!=="none";!_&&$&&M.push(...Qg(f,x,D,k));const W=[f,...M],q=await Jr(i,E),K=[];let se=((s=u.flip)==null?void 0:s.overflows)||[];if(m&&K.push(q[R]),w){const re=Xg(a,c,k);K.push(q[re[0]],q[re[1]])}if(se=[...se,{placement:a,overflows:K}],!K.every(re=>re<=0)){var fe,Z;const re=(((fe=u.flip)==null?void 0:fe.index)||0)+1,he=W[re];if(he)return{data:{index:re,overflows:se},reset:{placement:he}};let ae=(Z=se.filter(de=>de.overflows[0]<=0).sort((de,oe)=>de.overflows[1]-oe.overflows[1])[0])==null?void 0:Z.placement;if(!ae)switch(A){case"bestFit":{var J;const de=(J=se.filter(oe=>{if($){const ye=Mn(oe.placement);return ye===O||ye==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(ye=>ye>0).reduce((ye,Ne)=>ye+Ne,0)]).sort((oe,ye)=>oe[1]-ye[1])[0])==null?void 0:J[0];de&&(ae=de);break}case"initialPlacement":ae=f;break}if(a!==ae)return{reset:{placement:ae}}}return{}}}};function yu(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function wu(n){return qg.some(i=>n[i]>=0)}const iv=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r}=i,{strategy:s="referenceHidden",...a}=yn(n,i);switch(s){case"referenceHidden":{const u=await Jr(i,{...a,elementContext:"reference"}),c=yu(u,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:wu(c)}}}case"escaped":{const u=await Jr(i,{...a,altBoundary:!0}),c=yu(u,r.floating);return{data:{escapedOffsets:c,escaped:wu(c)}}}default:return{}}}}};async function ov(n,i){const{placement:r,platform:s,elements:a}=n,u=await(s.isRTL==null?void 0:s.isRTL(a.floating)),c=wn(r),f=_r(r),p=Mn(r)==="y",v=["left","top"].includes(c)?-1:1,m=u&&p?-1:1,w=yn(i,n);let{mainAxis:_,crossAxis:A,alignmentAxis:D}=typeof w=="number"?{mainAxis:w,crossAxis:0,alignmentAxis:null}:{mainAxis:w.mainAxis||0,crossAxis:w.crossAxis||0,alignmentAxis:w.alignmentAxis};return f&&typeof D=="number"&&(A=f==="end"?D*-1:D),p?{x:A*m,y:_*v}:{x:_*v,y:A*m}}const sv=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,s;const{x:a,y:u,placement:c,middlewareData:f}=i,p=await ov(i,n);return c===((r=f.offset)==null?void 0:r.placement)&&(s=f.arrow)!=null&&s.alignmentOffset?{}:{x:a+p.x,y:u+p.y,data:{...p,placement:c}}}}},av=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:s,placement:a}=i,{mainAxis:u=!0,crossAxis:c=!1,limiter:f={fn:E=>{let{x:R,y:O}=E;return{x:R,y:O}}},...p}=yn(n,i),v={x:r,y:s},m=await Jr(i,p),w=Mn(wn(a)),_=Ps(w);let A=v[_],D=v[w];if(u){const E=_==="y"?"top":"left",R=_==="y"?"bottom":"right",O=A+m[E],I=A-m[R];A=Rs(O,A,I)}if(c){const E=w==="y"?"top":"left",R=w==="y"?"bottom":"right",O=D+m[E],I=D-m[R];D=Rs(O,D,I)}const x=f.fn({...i,[_]:A,[w]:D});return{...x,data:{x:x.x-r,y:x.y-s,enabled:{[_]:u,[w]:c}}}}}},lv=function(n){return n===void 0&&(n={}),{options:n,fn(i){const{x:r,y:s,placement:a,rects:u,middlewareData:c}=i,{offset:f=0,mainAxis:p=!0,crossAxis:v=!0}=yn(n,i),m={x:r,y:s},w=Mn(a),_=Ps(w);let A=m[_],D=m[w];const x=yn(f,i),E=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(p){const I=_==="y"?"height":"width",k=u.reference[_]-u.floating[I]+E.mainAxis,M=u.reference[_]+u.reference[I]-E.mainAxis;A<k?A=k:A>M&&(A=M)}if(v){var R,O;const I=_==="y"?"width":"height",k=["top","left"].includes(wn(a)),M=u.reference[w]-u.floating[I]+(k&&((R=c.offset)==null?void 0:R[w])||0)+(k?0:E.crossAxis),$=u.reference[w]+u.reference[I]+(k?0:((O=c.offset)==null?void 0:O[w])||0)-(k?E.crossAxis:0);D<M?D=M:D>$&&(D=$)}return{[_]:A,[w]:D}}}},uv=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){var r,s;const{placement:a,rects:u,platform:c,elements:f}=i,{apply:p=()=>{},...v}=yn(n,i),m=await Jr(i,v),w=wn(a),_=_r(a),A=Mn(a)==="y",{width:D,height:x}=u.floating;let E,R;w==="top"||w==="bottom"?(E=w,R=_===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(R=w,E=_==="end"?"top":"bottom");const O=x-m.top-m.bottom,I=D-m.left-m.right,k=Nn(x-m[E],O),M=Nn(D-m[R],I),$=!i.middlewareData.shift;let W=k,q=M;if((r=i.middlewareData.shift)!=null&&r.enabled.x&&(q=I),(s=i.middlewareData.shift)!=null&&s.enabled.y&&(W=O),$&&!_){const se=Tt(m.left,0),fe=Tt(m.right,0),Z=Tt(m.top,0),J=Tt(m.bottom,0);A?q=D-2*(se!==0||fe!==0?se+fe:Tt(m.left,m.right)):W=x-2*(Z!==0||J!==0?Z+J:Tt(m.top,m.bottom))}await p({...i,availableWidth:q,availableHeight:W});const K=await c.getDimensions(f.floating);return D!==K.width||x!==K.height?{reset:{rects:!0}}:{}}}};function Gi(){return typeof window<"u"}function Cr(n){return xu(n)?(n.nodeName||"").toLowerCase():"#document"}function It(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function un(n){var i;return(i=(xu(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function xu(n){return Gi()?n instanceof Node||n instanceof It(n).Node:!1}function Yt(n){return Gi()?n instanceof Element||n instanceof It(n).Element:!1}function cn(n){return Gi()?n instanceof HTMLElement||n instanceof It(n).HTMLElement:!1}function bu(n){return!Gi()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof It(n).ShadowRoot}function Qr(n){const{overflow:i,overflowX:r,overflowY:s,display:a}=Xt(n);return/auto|scroll|overlay|hidden|clip/.test(i+s+r)&&!["inline","contents"].includes(a)}function cv(n){return["table","td","th"].includes(Cr(n))}function Yi(n){return[":popover-open",":modal"].some(i=>{try{return n.matches(i)}catch{return!1}})}function Ds(n){const i=Ns(),r=Yt(n)?Xt(n):n;return["transform","translate","scale","rotate","perspective"].some(s=>r[s]?r[s]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!i&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!i&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(r.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(r.contain||"").includes(s))}function fv(n){let i=Ln(n);for(;cn(i)&&!Sr(i);){if(Ds(i))return i;if(Yi(i))return null;i=Ln(i)}return null}function Ns(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Sr(n){return["html","body","#document"].includes(Cr(n))}function Xt(n){return It(n).getComputedStyle(n)}function Xi(n){return Yt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ln(n){if(Cr(n)==="html")return n;const i=n.assignedSlot||n.parentNode||bu(n)&&n.host||un(n);return bu(i)?i.host:i}function _u(n){const i=Ln(n);return Sr(i)?n.ownerDocument?n.ownerDocument.body:n.body:cn(i)&&Qr(i)?i:_u(i)}function ei(n,i,r){var s;i===void 0&&(i=[]),r===void 0&&(r=!0);const a=_u(n),u=a===((s=n.ownerDocument)==null?void 0:s.body),c=It(a);if(u){const f=Ms(c);return i.concat(c,c.visualViewport||[],Qr(a)?a:[],f&&r?ei(f):[])}return i.concat(a,ei(a,[],r))}function Ms(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Cu(n){const i=Xt(n);let r=parseFloat(i.width)||0,s=parseFloat(i.height)||0;const a=cn(n),u=a?n.offsetWidth:r,c=a?n.offsetHeight:s,f=Hi(r)!==u||Hi(s)!==c;return f&&(r=u,s=c),{width:r,height:s,$:f}}function Ls(n){return Yt(n)?n:n.contextElement}function Er(n){const i=Ls(n);if(!cn(i))return ln(1);const r=i.getBoundingClientRect(),{width:s,height:a,$:u}=Cu(i);let c=(u?Hi(r.width):r.width)/s,f=(u?Hi(r.height):r.height)/a;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const dv=ln(0);function Su(n){const i=It(n);return!Ns()||!i.visualViewport?dv:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function hv(n,i,r){return i===void 0&&(i=!1),!r||i&&r!==It(n)?!1:i}function Qn(n,i,r,s){i===void 0&&(i=!1),r===void 0&&(r=!1);const a=n.getBoundingClientRect(),u=Ls(n);let c=ln(1);i&&(s?Yt(s)&&(c=Er(s)):c=Er(n));const f=hv(u,r,s)?Su(u):ln(0);let p=(a.left+f.x)/c.x,v=(a.top+f.y)/c.y,m=a.width/c.x,w=a.height/c.y;if(u){const _=It(u),A=s&&Yt(s)?It(s):s;let D=_,x=Ms(D);for(;x&&s&&A!==D;){const E=Er(x),R=x.getBoundingClientRect(),O=Xt(x),I=R.left+(x.clientLeft+parseFloat(O.paddingLeft))*E.x,k=R.top+(x.clientTop+parseFloat(O.paddingTop))*E.y;p*=E.x,v*=E.y,m*=E.x,w*=E.y,p+=I,v+=k,D=It(x),x=Ms(D)}}return qi({width:m,height:w,x:p,y:v})}function Fs(n,i){const r=Xi(n).scrollLeft;return i?i.left+r:Qn(un(n)).left+r}function Eu(n,i,r){r===void 0&&(r=!1);const s=n.getBoundingClientRect(),a=s.left+i.scrollLeft-(r?0:Fs(n,s)),u=s.top+i.scrollTop;return{x:a,y:u}}function pv(n){let{elements:i,rect:r,offsetParent:s,strategy:a}=n;const u=a==="fixed",c=un(s),f=i?Yi(i.floating):!1;if(s===c||f&&u)return r;let p={scrollLeft:0,scrollTop:0},v=ln(1);const m=ln(0),w=cn(s);if((w||!w&&!u)&&((Cr(s)!=="body"||Qr(c))&&(p=Xi(s)),cn(s))){const A=Qn(s);v=Er(s),m.x=A.x+s.clientLeft,m.y=A.y+s.clientTop}const _=c&&!w&&!u?Eu(c,p,!0):ln(0);return{width:r.width*v.x,height:r.height*v.y,x:r.x*v.x-p.scrollLeft*v.x+m.x+_.x,y:r.y*v.y-p.scrollTop*v.y+m.y+_.y}}function gv(n){return Array.from(n.getClientRects())}function vv(n){const i=un(n),r=Xi(n),s=n.ownerDocument.body,a=Tt(i.scrollWidth,i.clientWidth,s.scrollWidth,s.clientWidth),u=Tt(i.scrollHeight,i.clientHeight,s.scrollHeight,s.clientHeight);let c=-r.scrollLeft+Fs(n);const f=-r.scrollTop;return Xt(s).direction==="rtl"&&(c+=Tt(i.clientWidth,s.clientWidth)-a),{width:a,height:u,x:c,y:f}}function mv(n,i){const r=It(n),s=un(n),a=r.visualViewport;let u=s.clientWidth,c=s.clientHeight,f=0,p=0;if(a){u=a.width,c=a.height;const v=Ns();(!v||v&&i==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:c,x:f,y:p}}function yv(n,i){const r=Qn(n,!0,i==="fixed"),s=r.top+n.clientTop,a=r.left+n.clientLeft,u=cn(n)?Er(n):ln(1),c=n.clientWidth*u.x,f=n.clientHeight*u.y,p=a*u.x,v=s*u.y;return{width:c,height:f,x:p,y:v}}function Au(n,i,r){let s;if(i==="viewport")s=mv(n,r);else if(i==="document")s=vv(un(n));else if(Yt(i))s=yv(i,r);else{const a=Su(n);s={x:i.x-a.x,y:i.y-a.y,width:i.width,height:i.height}}return qi(s)}function Ru(n,i){const r=Ln(n);return r===i||!Yt(r)||Sr(r)?!1:Xt(r).position==="fixed"||Ru(r,i)}function wv(n,i){const r=i.get(n);if(r)return r;let s=ei(n,[],!1).filter(f=>Yt(f)&&Cr(f)!=="body"),a=null;const u=Xt(n).position==="fixed";let c=u?Ln(n):n;for(;Yt(c)&&!Sr(c);){const f=Xt(c),p=Ds(c);!p&&f.position==="fixed"&&(a=null),(u?!p&&!a:!p&&f.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Qr(c)&&!p&&Ru(n,c))?s=s.filter(m=>m!==c):a=f,c=Ln(c)}return i.set(n,s),s}function xv(n){let{element:i,boundary:r,rootBoundary:s,strategy:a}=n;const c=[...r==="clippingAncestors"?Yi(i)?[]:wv(i,this._c):[].concat(r),s],f=c[0],p=c.reduce((v,m)=>{const w=Au(i,m,a);return v.top=Tt(w.top,v.top),v.right=Nn(w.right,v.right),v.bottom=Nn(w.bottom,v.bottom),v.left=Tt(w.left,v.left),v},Au(i,f,a));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function bv(n){const{width:i,height:r}=Cu(n);return{width:i,height:r}}function _v(n,i,r){const s=cn(i),a=un(i),u=r==="fixed",c=Qn(n,!0,u,i);let f={scrollLeft:0,scrollTop:0};const p=ln(0);if(s||!s&&!u)if((Cr(i)!=="body"||Qr(a))&&(f=Xi(i)),s){const _=Qn(i,!0,u,i);p.x=_.x+i.clientLeft,p.y=_.y+i.clientTop}else a&&(p.x=Fs(a));const v=a&&!s&&!u?Eu(a,f):ln(0),m=c.left+f.scrollLeft-p.x-v.x,w=c.top+f.scrollTop-p.y-v.y;return{x:m,y:w,width:c.width,height:c.height}}function ks(n){return Xt(n).position==="static"}function Pu(n,i){if(!cn(n)||Xt(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return un(n)===r&&(r=r.ownerDocument.body),r}function Ou(n,i){const r=It(n);if(Yi(n))return r;if(!cn(n)){let a=Ln(n);for(;a&&!Sr(a);){if(Yt(a)&&!ks(a))return a;a=Ln(a)}return r}let s=Pu(n,i);for(;s&&cv(s)&&ks(s);)s=Pu(s,i);return s&&Sr(s)&&ks(s)&&!Ds(s)?r:s||fv(n)||r}const Cv=async function(n){const i=this.getOffsetParent||Ou,r=this.getDimensions,s=await r(n.floating);return{reference:_v(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Sv(n){return Xt(n).direction==="rtl"}const Ev={convertOffsetParentRelativeRectToViewportRelativeRect:pv,getDocumentElement:un,getClippingRect:xv,getOffsetParent:Ou,getElementRects:Cv,getClientRects:gv,getDimensions:bv,getScale:Er,isElement:Yt,isRTL:Sv};function Tu(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function Av(n,i){let r=null,s;const a=un(n);function u(){var f;clearTimeout(s),(f=r)==null||f.disconnect(),r=null}function c(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),u();const v=n.getBoundingClientRect(),{left:m,top:w,width:_,height:A}=v;if(f||i(),!_||!A)return;const D=zi(w),x=zi(a.clientWidth-(m+_)),E=zi(a.clientHeight-(w+A)),R=zi(m),I={rootMargin:-D+"px "+-x+"px "+-E+"px "+-R+"px",threshold:Tt(0,Nn(1,p))||1};let k=!0;function M($){const W=$[0].intersectionRatio;if(W!==p){if(!k)return c();W?c(!1,W):s=setTimeout(()=>{c(!1,1e-7)},1e3)}W===1&&!Tu(v,n.getBoundingClientRect())&&c(),k=!1}try{r=new IntersectionObserver(M,{...I,root:a.ownerDocument})}catch{r=new IntersectionObserver(M,I)}r.observe(n)}return c(!0),u}function Rv(n,i,r,s){s===void 0&&(s={});const{ancestorScroll:a=!0,ancestorResize:u=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,v=Ls(n),m=a||u?[...v?ei(v):[],...ei(i)]:[];m.forEach(R=>{a&&R.addEventListener("scroll",r,{passive:!0}),u&&R.addEventListener("resize",r)});const w=v&&f?Av(v,r):null;let _=-1,A=null;c&&(A=new ResizeObserver(R=>{let[O]=R;O&&O.target===v&&A&&(A.unobserve(i),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var I;(I=A)==null||I.observe(i)})),r()}),v&&!p&&A.observe(v),A.observe(i));let D,x=p?Qn(n):null;p&&E();function E(){const R=Qn(n);x&&!Tu(x,R)&&r(),x=R,D=requestAnimationFrame(E)}return r(),()=>{var R;m.forEach(O=>{a&&O.removeEventListener("scroll",r),u&&O.removeEventListener("resize",r)}),w==null||w(),(R=A)==null||R.disconnect(),A=null,p&&cancelAnimationFrame(D)}}const Pv=sv,Ov=av,Tv=rv,Iv=uv,Dv=iv,Iu=nv,Nv=lv,Mv=(n,i,r)=>{const s=new Map,a={platform:Ev,...r},u={...a.platform,_c:s};return tv(n,i,{...a,platform:u})};var Zi=typeof document<"u"?_l:mn;function Ji(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,s,a;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(s=r;s--!==0;)if(!Ji(n[s],i[s]))return!1;return!0}if(a=Object.keys(n),r=a.length,r!==Object.keys(i).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(i,a[s]))return!1;for(s=r;s--!==0;){const u=a[s];if(!(u==="_owner"&&n.$$typeof)&&!Ji(n[u],i[u]))return!1}return!0}return n!==n&&i!==i}function Du(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Nu(n,i){const r=Du(n);return Math.round(i*r)/r}function Bs(n){const i=y.useRef(n);return Zi(()=>{i.current=n}),i}function Lv(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:s=[],platform:a,elements:{reference:u,floating:c}={},transform:f=!0,whileElementsMounted:p,open:v}=n,[m,w]=y.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[_,A]=y.useState(s);Ji(_,s)||A(s);const[D,x]=y.useState(null),[E,R]=y.useState(null),O=y.useCallback(oe=>{oe!==$.current&&($.current=oe,x(oe))},[]),I=y.useCallback(oe=>{oe!==W.current&&(W.current=oe,R(oe))},[]),k=u||D,M=c||E,$=y.useRef(null),W=y.useRef(null),q=y.useRef(m),K=p!=null,se=Bs(p),fe=Bs(a),Z=Bs(v),J=y.useCallback(()=>{if(!$.current||!W.current)return;const oe={placement:i,strategy:r,middleware:_};fe.current&&(oe.platform=fe.current),Mv($.current,W.current,oe).then(ye=>{const Ne={...ye,isPositioned:Z.current!==!1};re.current&&!Ji(q.current,Ne)&&(q.current=Ne,Gr.flushSync(()=>{w(Ne)}))})},[_,i,r,fe,Z]);Zi(()=>{v===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,w(oe=>({...oe,isPositioned:!1})))},[v]);const re=y.useRef(!1);Zi(()=>(re.current=!0,()=>{re.current=!1}),[]),Zi(()=>{if(k&&($.current=k),M&&(W.current=M),k&&M){if(se.current)return se.current(k,M,J);J()}},[k,M,J,se,K]);const he=y.useMemo(()=>({reference:$,floating:W,setReference:O,setFloating:I}),[O,I]),ae=y.useMemo(()=>({reference:k,floating:M}),[k,M]),de=y.useMemo(()=>{const oe={position:r,left:0,top:0};if(!ae.floating)return oe;const ye=Nu(ae.floating,m.x),Ne=Nu(ae.floating,m.y);return f?{...oe,transform:"translate("+ye+"px, "+Ne+"px)",...Du(ae.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ye,top:Ne}},[r,f,ae.floating,m.x,m.y]);return y.useMemo(()=>({...m,update:J,refs:he,elements:ae,floatingStyles:de}),[m,J,he,ae,de])}const Fv=n=>{function i(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:s,padding:a}=typeof n=="function"?n(r):n;return s&&i(s)?s.current!=null?Iu({element:s.current,padding:a}).fn(r):{}:s?Iu({element:s,padding:a}).fn(r):{}}}},kv=(n,i)=>({...Pv(n),options:[n,i]}),Bv=(n,i)=>({...Ov(n),options:[n,i]}),Vv=(n,i)=>({...Nv(n),options:[n,i]}),Wv=(n,i)=>({...Tv(n),options:[n,i]}),jv=(n,i)=>({...Iv(n),options:[n,i]}),Uv=(n,i)=>({...Dv(n),options:[n,i]}),$v=(n,i)=>({...Fv(n),options:[n,i]});var Hv="Arrow",Mu=y.forwardRef((n,i)=>{const{children:r,width:s=10,height:a=5,...u}=n;return b.jsx(Ie.svg,{...u,ref:i,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Mu.displayName=Hv;var zv=Mu,Vs="Popper",[Lu,Ar]=mr(Vs),[Kv,Fu]=Lu(Vs),ku=n=>{const{__scopePopper:i,children:r}=n,[s,a]=y.useState(null);return b.jsx(Kv,{scope:i,anchor:s,onAnchorChange:a,children:r})};ku.displayName=Vs;var Bu="PopperAnchor",Vu=y.forwardRef((n,i)=>{const{__scopePopper:r,virtualRef:s,...a}=n,u=Fu(Bu,r),c=y.useRef(null),f=We(i,c);return y.useEffect(()=>{u.onAnchorChange((s==null?void 0:s.current)||c.current)}),s?null:b.jsx(Ie.div,{...a,ref:f})});Vu.displayName=Bu;var Ws="PopperContent",[qv,Gv]=Lu(Ws),Wu=y.forwardRef((n,i)=>{var te,xe,Fe,Pe,be,Se;const{__scopePopper:r,side:s="bottom",sideOffset:a=0,align:u="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:v=[],collisionPadding:m=0,sticky:w="partial",hideWhenDetached:_=!1,updatePositionStrategy:A="optimized",onPlaced:D,...x}=n,E=Fu(Ws,r),[R,O]=y.useState(null),I=We(i,ot=>O(ot)),[k,M]=y.useState(null),$=Kg(k),W=($==null?void 0:$.width)??0,q=($==null?void 0:$.height)??0,K=s+(u!=="center"?"-"+u:""),se=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(v)?v:[v],Z=fe.length>0,J={padding:se,boundary:fe.filter(Xv),altBoundary:Z},{refs:re,floatingStyles:he,placement:ae,isPositioned:de,middlewareData:oe}=Lv({strategy:"fixed",placement:K,whileElementsMounted:(...ot)=>Rv(...ot,{animationFrame:A==="always"}),elements:{reference:E.anchor},middleware:[kv({mainAxis:a+q,alignmentAxis:c}),p&&Bv({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Vv():void 0,...J}),p&&Wv({...J}),jv({...J,apply:({elements:ot,rects:Ue,availableWidth:Dt,availableHeight:hn})=>{const{width:st,height:Ir}=Ue.reference,Vn=ot.floating.style;Vn.setProperty("--radix-popper-available-width",`${Dt}px`),Vn.setProperty("--radix-popper-available-height",`${hn}px`),Vn.setProperty("--radix-popper-anchor-width",`${st}px`),Vn.setProperty("--radix-popper-anchor-height",`${Ir}px`)}}),k&&$v({element:k,padding:f}),Zv({arrowWidth:W,arrowHeight:q}),_&&Uv({strategy:"referenceHidden",...J})]}),[ye,Ne]=$u(ae),Me=Zn(D);dt(()=>{de&&(Me==null||Me())},[de,Me]);const wt=(te=oe.arrow)==null?void 0:te.x,Vt=(xe=oe.arrow)==null?void 0:xe.y,Ct=((Fe=oe.arrow)==null?void 0:Fe.centerOffset)!==0,[it,pt]=y.useState();return dt(()=>{R&&pt(window.getComputedStyle(R).zIndex)},[R]),b.jsx("div",{ref:re.setFloating,"data-radix-popper-content-wrapper":"",style:{...he,transform:de?he.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:it,"--radix-popper-transform-origin":[(Pe=oe.transformOrigin)==null?void 0:Pe.x,(be=oe.transformOrigin)==null?void 0:be.y].join(" "),...((Se=oe.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:b.jsx(qv,{scope:r,placedSide:ye,onArrowChange:M,arrowX:wt,arrowY:Vt,shouldHideArrow:Ct,children:b.jsx(Ie.div,{"data-side":ye,"data-align":Ne,...x,ref:I,style:{...x.style,animation:de?void 0:"none"}})})})});Wu.displayName=Ws;var ju="PopperArrow",Yv={top:"bottom",right:"left",bottom:"top",left:"right"},Uu=y.forwardRef(function(i,r){const{__scopePopper:s,...a}=i,u=Gv(ju,s),c=Yv[u.placedSide];return b.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:b.jsx(zv,{...a,ref:r,style:{...a.style,display:"block"}})})});Uu.displayName=ju;function Xv(n){return n!==null}var Zv=n=>({name:"transformOrigin",options:n,fn(i){var E,R,O;const{placement:r,rects:s,middlewareData:a}=i,c=((E=a.arrow)==null?void 0:E.centerOffset)!==0,f=c?0:n.arrowWidth,p=c?0:n.arrowHeight,[v,m]=$u(r),w={start:"0%",center:"50%",end:"100%"}[m],_=(((R=a.arrow)==null?void 0:R.x)??0)+f/2,A=(((O=a.arrow)==null?void 0:O.y)??0)+p/2;let D="",x="";return v==="bottom"?(D=c?w:`${_}px`,x=`${-p}px`):v==="top"?(D=c?w:`${_}px`,x=`${s.floating.height+p}px`):v==="right"?(D=`${-p}px`,x=c?w:`${A}px`):v==="left"&&(D=`${s.floating.width+p}px`,x=c?w:`${A}px`),{data:{x:D,y:x}}}});function $u(n){const[i,r="center"]=n.split("-");return[i,r]}var js=ku,Qi=Vu,Us=Wu,$s=Uu;function Hu(n,[i,r]){return Math.min(r,Math.max(i,n))}var eo="Popover",[zu,U1]=mr(eo,[Ar]),ti=Ar(),[Jv,er]=zu(eo),Ku=n=>{const{__scopePopover:i,children:r,open:s,defaultOpen:a,onOpenChange:u,modal:c=!1}=n,f=ti(i),p=y.useRef(null),[v,m]=y.useState(!1),[w,_]=Xr({prop:s,defaultProp:a??!1,onChange:u,caller:eo});return b.jsx(js,{...f,children:b.jsx(Jv,{scope:i,contentId:In(),triggerRef:p,open:w,onOpenChange:_,onOpenToggle:y.useCallback(()=>_(A=>!A),[_]),hasCustomAnchor:v,onCustomAnchorAdd:y.useCallback(()=>m(!0),[]),onCustomAnchorRemove:y.useCallback(()=>m(!1),[]),modal:c,children:r})})};Ku.displayName=eo;var qu="PopoverAnchor",Qv=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(qu,r),u=ti(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:f}=a;return y.useEffect(()=>(c(),()=>f()),[c,f]),b.jsx(Qi,{...u,...s,ref:i})});Qv.displayName=qu;var Gu="PopoverTrigger",Yu=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(Gu,r),u=ti(r),c=We(i,a.triggerRef),f=b.jsx(Ie.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Qu(a.open),...s,ref:c,onClick:Ce(n.onClick,a.onOpenToggle)});return a.hasCustomAnchor?f:b.jsx(Qi,{asChild:!0,...u,children:f})});Yu.displayName=Gu;var em="PopoverPortal",[$1,tm]=zu(em,{forceMount:void 0}),Rr="PopoverContent",Xu=y.forwardRef((n,i)=>{const r=tm(Rr,n.__scopePopover),{forceMount:s=r.forceMount,...a}=n,u=er(Rr,n.__scopePopover);return b.jsx(Xn,{present:s||u.open,children:u.modal?b.jsx(rm,{...a,ref:i}):b.jsx(im,{...a,ref:i})})});Xu.displayName=Rr;var nm=vr("PopoverContent.RemoveScroll"),rm=y.forwardRef((n,i)=>{const r=er(Rr,n.__scopePopover),s=y.useRef(null),a=We(i,s),u=y.useRef(!1);return y.useEffect(()=>{const c=s.current;if(c)return Cs(c)},[]),b.jsx(Vi,{as:nm,allowPinchZoom:!0,children:b.jsx(Zu,{...n,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(n.onCloseAutoFocus,c=>{var f;c.preventDefault(),u.current||(f=r.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Ce(n.onPointerDownOutside,c=>{const f=c.detail.originalEvent,p=f.button===0&&f.ctrlKey===!0,v=f.button===2||p;u.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:Ce(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1})})})}),im=y.forwardRef((n,i)=>{const r=er(Rr,n.__scopePopover),s=y.useRef(!1),a=y.useRef(!1);return b.jsx(Zu,{...n,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var c,f;(c=n.onCloseAutoFocus)==null||c.call(n,u),u.defaultPrevented||(s.current||(f=r.triggerRef.current)==null||f.focus(),u.preventDefault()),s.current=!1,a.current=!1},onInteractOutside:u=>{var p,v;(p=n.onInteractOutside)==null||p.call(n,u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const c=u.target;((v=r.triggerRef.current)==null?void 0:v.contains(c))&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&a.current&&u.preventDefault()}})}),Zu=y.forwardRef((n,i)=>{const{__scopePopover:r,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onInteractOutside:m,...w}=n,_=er(Rr,r),A=ti(r);return ms(),b.jsx(Di,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:a,onUnmountAutoFocus:u,children:b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:c,onInteractOutside:m,onEscapeKeyDown:f,onPointerDownOutside:p,onFocusOutside:v,onDismiss:()=>_.onOpenChange(!1),children:b.jsx(Us,{"data-state":Qu(_.open),role:"dialog",id:_.contentId,...A,...w,ref:i,style:{...w.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Ju="PopoverClose",om=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=er(Ju,r);return b.jsx(Ie.button,{type:"button",...s,ref:i,onClick:Ce(n.onClick,()=>a.onOpenChange(!1))})});om.displayName=Ju;var sm="PopoverArrow",am=y.forwardRef((n,i)=>{const{__scopePopover:r,...s}=n,a=ti(r);return b.jsx($s,{...a,...s,ref:i})});am.displayName=sm;function Qu(n){return n?"open":"closed"}var lm=Ku,ec=Yu,tc=Xu,um=[" ","Enter","ArrowUp","ArrowDown"],cm=[" ","Enter"],tr="Select",[to,no,fm]=vp(tr),[Pr,H1]=mr(tr,[fm,Ar]),ro=Ar(),[dm,Fn]=Pr(tr),[hm,pm]=Pr(tr),nc=n=>{const{__scopeSelect:i,children:r,open:s,defaultOpen:a,onOpenChange:u,value:c,defaultValue:f,onValueChange:p,dir:v,name:m,autoComplete:w,disabled:_,required:A,form:D}=n,x=ro(i),[E,R]=y.useState(null),[O,I]=y.useState(null),[k,M]=y.useState(!1),$=Ap(v),[W,q]=Xr({prop:s,defaultProp:a??!1,onChange:u,caller:tr}),[K,se]=Xr({prop:c,defaultProp:f,onChange:p,caller:tr}),fe=y.useRef(null),Z=E?D||!!E.closest("form"):!0,[J,re]=y.useState(new Set),he=Array.from(J).map(ae=>ae.props.value).join(";");return b.jsx(js,{...x,children:b.jsxs(dm,{required:A,scope:i,trigger:E,onTriggerChange:R,valueNode:O,onValueNodeChange:I,valueNodeHasChildren:k,onValueNodeHasChildrenChange:M,contentId:In(),value:K,onValueChange:se,open:W,onOpenChange:q,dir:$,triggerPointerDownPosRef:fe,disabled:_,children:[b.jsx(to.Provider,{scope:i,children:b.jsx(hm,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(ae=>{re(de=>new Set(de).add(ae))},[]),onNativeOptionRemove:y.useCallback(ae=>{re(de=>{const oe=new Set(de);return oe.delete(ae),oe})},[]),children:r})}),Z?b.jsxs(Cc,{"aria-hidden":!0,required:A,tabIndex:-1,name:m,autoComplete:w,value:K,onChange:ae=>se(ae.target.value),disabled:_,form:D,children:[K===void 0?b.jsx("option",{value:""}):null,Array.from(J)]},he):null]})})};nc.displayName=tr;var rc="SelectTrigger",ic=y.forwardRef((n,i)=>{const{__scopeSelect:r,disabled:s=!1,...a}=n,u=ro(r),c=Fn(rc,r),f=c.disabled||s,p=We(i,c.onTriggerChange),v=no(r),m=y.useRef("touch"),[w,_,A]=Ec(x=>{const E=v().filter(I=>!I.disabled),R=E.find(I=>I.value===c.value),O=Ac(E,x,R);O!==void 0&&c.onValueChange(O.value)}),D=x=>{f||(c.onOpenChange(!0),A()),x&&(c.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return b.jsx(Qi,{asChild:!0,...u,children:b.jsx(Ie.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":Sc(c.value)?"":void 0,...a,ref:p,onClick:Ce(a.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&D(x)}),onPointerDown:Ce(a.onPointerDown,x=>{m.current=x.pointerType;const E=x.target;E.hasPointerCapture(x.pointerId)&&E.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(D(x),x.preventDefault())}),onKeyDown:Ce(a.onKeyDown,x=>{const E=w.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&_(x.key),!(E&&x.key===" ")&&um.includes(x.key)&&(D(),x.preventDefault())})})})});ic.displayName=rc;var oc="SelectValue",sc=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:a,children:u,placeholder:c="",...f}=n,p=Fn(oc,r),{onValueNodeHasChildrenChange:v}=p,m=u!==void 0,w=We(i,p.onValueNodeChange);return dt(()=>{v(m)},[v,m]),b.jsx(Ie.span,{...f,ref:w,style:{pointerEvents:"none"},children:Sc(p.value)?b.jsx(b.Fragment,{children:c}):u})});sc.displayName=oc;var gm="SelectIcon",ac=y.forwardRef((n,i)=>{const{__scopeSelect:r,children:s,...a}=n;return b.jsx(Ie.span,{"aria-hidden":!0,...a,ref:i,children:s||"▼"})});ac.displayName=gm;var vm="SelectPortal",lc=n=>b.jsx(Ni,{asChild:!0,...n});lc.displayName=vm;var nr="SelectContent",uc=y.forwardRef((n,i)=>{const r=Fn(nr,n.__scopeSelect),[s,a]=y.useState();if(dt(()=>{a(new DocumentFragment)},[]),!r.open){const u=s;return u?Gr.createPortal(b.jsx(cc,{scope:n.__scopeSelect,children:b.jsx(to.Slot,{scope:n.__scopeSelect,children:b.jsx("div",{children:n.children})})}),u):null}return b.jsx(fc,{...n,ref:i})});uc.displayName=nr;var Zt=10,[cc,kn]=Pr(nr),mm="SelectContentImpl",ym=vr("SelectContent.RemoveScroll"),fc=y.forwardRef((n,i)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:c,side:f,sideOffset:p,align:v,alignOffset:m,arrowPadding:w,collisionBoundary:_,collisionPadding:A,sticky:D,hideWhenDetached:x,avoidCollisions:E,...R}=n,O=Fn(nr,r),[I,k]=y.useState(null),[M,$]=y.useState(null),W=We(i,te=>k(te)),[q,K]=y.useState(null),[se,fe]=y.useState(null),Z=no(r),[J,re]=y.useState(!1),he=y.useRef(!1);y.useEffect(()=>{if(I)return Cs(I)},[I]),ms();const ae=y.useCallback(te=>{const[xe,...Fe]=Z().map(Se=>Se.ref.current),[Pe]=Fe.slice(-1),be=document.activeElement;for(const Se of te)if(Se===be||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===xe&&M&&(M.scrollTop=0),Se===Pe&&M&&(M.scrollTop=M.scrollHeight),Se==null||Se.focus(),document.activeElement!==be))return},[Z,M]),de=y.useCallback(()=>ae([q,I]),[ae,q,I]);y.useEffect(()=>{J&&de()},[J,de]);const{onOpenChange:oe,triggerPointerDownPosRef:ye}=O;y.useEffect(()=>{if(I){let te={x:0,y:0};const xe=Pe=>{var be,Se;te={x:Math.abs(Math.round(Pe.pageX)-(((be=ye.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(Pe.pageY)-(((Se=ye.current)==null?void 0:Se.y)??0))}},Fe=Pe=>{te.x<=10&&te.y<=10?Pe.preventDefault():I.contains(Pe.target)||oe(!1),document.removeEventListener("pointermove",xe),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Fe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Fe,{capture:!0})}}},[I,oe,ye]),y.useEffect(()=>{const te=()=>oe(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[oe]);const[Ne,Me]=Ec(te=>{const xe=Z().filter(be=>!be.disabled),Fe=xe.find(be=>be.ref.current===document.activeElement),Pe=Ac(xe,te,Fe);Pe&&setTimeout(()=>Pe.ref.current.focus())}),wt=y.useCallback((te,xe,Fe)=>{const Pe=!he.current&&!Fe;(O.value!==void 0&&O.value===xe||Pe)&&(K(te),Pe&&(he.current=!0))},[O.value]),Vt=y.useCallback(()=>I==null?void 0:I.focus(),[I]),Ct=y.useCallback((te,xe,Fe)=>{const Pe=!he.current&&!Fe;(O.value!==void 0&&O.value===xe||Pe)&&fe(te)},[O.value]),it=s==="popper"?Hs:dc,pt=it===Hs?{side:f,sideOffset:p,align:v,alignOffset:m,arrowPadding:w,collisionBoundary:_,collisionPadding:A,sticky:D,hideWhenDetached:x,avoidCollisions:E}:{};return b.jsx(cc,{scope:r,content:I,viewport:M,onViewportChange:$,itemRefCallback:wt,selectedItem:q,onItemLeave:Vt,itemTextRefCallback:Ct,focusSelectedItem:de,selectedItemText:se,position:s,isPositioned:J,searchRef:Ne,children:b.jsx(Vi,{as:ym,allowPinchZoom:!0,children:b.jsx(Di,{asChild:!0,trapped:O.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Ce(a,te=>{var xe;(xe=O.trigger)==null||xe.focus({preventScroll:!0}),te.preventDefault()}),children:b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>O.onOpenChange(!1),children:b.jsx(it,{role:"listbox",id:O.contentId,"data-state":O.open?"open":"closed",dir:O.dir,onContextMenu:te=>te.preventDefault(),...R,...pt,onPlaced:()=>re(!0),ref:W,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:Ce(R.onKeyDown,te=>{const xe=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!xe&&te.key.length===1&&Me(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let Pe=Z().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(te.key)&&(Pe=Pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const be=te.target,Se=Pe.indexOf(be);Pe=Pe.slice(Se+1)}setTimeout(()=>ae(Pe)),te.preventDefault()}})})})})})})});fc.displayName=mm;var wm="SelectItemAlignedPosition",dc=y.forwardRef((n,i)=>{const{__scopeSelect:r,onPlaced:s,...a}=n,u=Fn(nr,r),c=kn(nr,r),[f,p]=y.useState(null),[v,m]=y.useState(null),w=We(i,W=>m(W)),_=no(r),A=y.useRef(!1),D=y.useRef(!0),{viewport:x,selectedItem:E,selectedItemText:R,focusSelectedItem:O}=c,I=y.useCallback(()=>{if(u.trigger&&u.valueNode&&f&&v&&x&&E&&R){const W=u.trigger.getBoundingClientRect(),q=v.getBoundingClientRect(),K=u.valueNode.getBoundingClientRect(),se=R.getBoundingClientRect();if(u.dir!=="rtl"){const be=se.left-q.left,Se=K.left-be,ot=W.left-Se,Ue=W.width+ot,Dt=Math.max(Ue,q.width),hn=window.innerWidth-Zt,st=Hu(Se,[Zt,Math.max(Zt,hn-Dt)]);f.style.minWidth=Ue+"px",f.style.left=st+"px"}else{const be=q.right-se.right,Se=window.innerWidth-K.right-be,ot=window.innerWidth-W.right-Se,Ue=W.width+ot,Dt=Math.max(Ue,q.width),hn=window.innerWidth-Zt,st=Hu(Se,[Zt,Math.max(Zt,hn-Dt)]);f.style.minWidth=Ue+"px",f.style.right=st+"px"}const fe=_(),Z=window.innerHeight-Zt*2,J=x.scrollHeight,re=window.getComputedStyle(v),he=parseInt(re.borderTopWidth,10),ae=parseInt(re.paddingTop,10),de=parseInt(re.borderBottomWidth,10),oe=parseInt(re.paddingBottom,10),ye=he+ae+J+oe+de,Ne=Math.min(E.offsetHeight*5,ye),Me=window.getComputedStyle(x),wt=parseInt(Me.paddingTop,10),Vt=parseInt(Me.paddingBottom,10),Ct=W.top+W.height/2-Zt,it=Z-Ct,pt=E.offsetHeight/2,te=E.offsetTop+pt,xe=he+ae+te,Fe=ye-xe;if(xe<=Ct){const be=fe.length>0&&E===fe[fe.length-1].ref.current;f.style.bottom="0px";const Se=v.clientHeight-x.offsetTop-x.offsetHeight,ot=Math.max(it,pt+(be?Vt:0)+Se+de),Ue=xe+ot;f.style.height=Ue+"px"}else{const be=fe.length>0&&E===fe[0].ref.current;f.style.top="0px";const ot=Math.max(Ct,he+x.offsetTop+(be?wt:0)+pt)+Fe;f.style.height=ot+"px",x.scrollTop=xe-Ct+x.offsetTop}f.style.margin=`${Zt}px 0`,f.style.minHeight=Ne+"px",f.style.maxHeight=Z+"px",s==null||s(),requestAnimationFrame(()=>A.current=!0)}},[_,u.trigger,u.valueNode,f,v,x,E,R,u.dir,s]);dt(()=>I(),[I]);const[k,M]=y.useState();dt(()=>{v&&M(window.getComputedStyle(v).zIndex)},[v]);const $=y.useCallback(W=>{W&&D.current===!0&&(I(),O==null||O(),D.current=!1)},[I,O]);return b.jsx(bm,{scope:r,contentWrapper:f,shouldExpandOnScrollRef:A,onScrollButtonChange:$,children:b.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:b.jsx(Ie.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});dc.displayName=wm;var xm="SelectPopperPosition",Hs=y.forwardRef((n,i)=>{const{__scopeSelect:r,align:s="start",collisionPadding:a=Zt,...u}=n,c=ro(r);return b.jsx(Us,{...c,...u,ref:i,align:s,collisionPadding:a,style:{boxSizing:"border-box",...u.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)"}})});Hs.displayName=xm;var[bm,zs]=Pr(nr,{}),Ks="SelectViewport",hc=y.forwardRef((n,i)=>{const{__scopeSelect:r,nonce:s,...a}=n,u=kn(Ks,r),c=zs(Ks,r),f=We(i,u.onViewportChange),p=y.useRef(0);return b.jsxs(b.Fragment,{children:[b.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),b.jsx(to.Slot,{scope:r,children:b.jsx(Ie.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Ce(a.onScroll,v=>{const m=v.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:_}=c;if(_!=null&&_.current&&w){const A=Math.abs(p.current-m.scrollTop);if(A>0){const D=window.innerHeight-Zt*2,x=parseFloat(w.style.minHeight),E=parseFloat(w.style.height),R=Math.max(x,E);if(R<D){const O=R+A,I=Math.min(D,O),k=O-I;w.style.height=I+"px",w.style.bottom==="0px"&&(m.scrollTop=k>0?k:0,w.style.justifyContent="flex-end")}}}p.current=m.scrollTop})})})]})});hc.displayName=Ks;var pc="SelectGroup",[_m,Cm]=Pr(pc),Sm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=In();return b.jsx(_m,{scope:r,id:a,children:b.jsx(Ie.div,{role:"group","aria-labelledby":a,...s,ref:i})})});Sm.displayName=pc;var gc="SelectLabel",Em=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=Cm(gc,r);return b.jsx(Ie.div,{id:a.id,...s,ref:i})});Em.displayName=gc;var io="SelectItem",[Am,vc]=Pr(io),mc=y.forwardRef((n,i)=>{const{__scopeSelect:r,value:s,disabled:a=!1,textValue:u,...c}=n,f=Fn(io,r),p=kn(io,r),v=f.value===s,[m,w]=y.useState(u??""),[_,A]=y.useState(!1),D=We(i,O=>{var I;return(I=p.itemRefCallback)==null?void 0:I.call(p,O,s,a)}),x=In(),E=y.useRef("touch"),R=()=>{a||(f.onValueChange(s),f.onOpenChange(!1))};if(s==="")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 b.jsx(Am,{scope:r,value:s,disabled:a,textId:x,isSelected:v,onItemTextChange:y.useCallback(O=>{w(I=>I||((O==null?void 0:O.textContent)??"").trim())},[]),children:b.jsx(to.ItemSlot,{scope:r,value:s,disabled:a,textValue:m,children:b.jsx(Ie.div,{role:"option","aria-labelledby":x,"data-highlighted":_?"":void 0,"aria-selected":v&&_,"data-state":v?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...c,ref:D,onFocus:Ce(c.onFocus,()=>A(!0)),onBlur:Ce(c.onBlur,()=>A(!1)),onClick:Ce(c.onClick,()=>{E.current!=="mouse"&&R()}),onPointerUp:Ce(c.onPointerUp,()=>{E.current==="mouse"&&R()}),onPointerDown:Ce(c.onPointerDown,O=>{E.current=O.pointerType}),onPointerMove:Ce(c.onPointerMove,O=>{var I;E.current=O.pointerType,a?(I=p.onItemLeave)==null||I.call(p):E.current==="mouse"&&O.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(c.onPointerLeave,O=>{var I;O.currentTarget===document.activeElement&&((I=p.onItemLeave)==null||I.call(p))}),onKeyDown:Ce(c.onKeyDown,O=>{var k;((k=p.searchRef)==null?void 0:k.current)!==""&&O.key===" "||(cm.includes(O.key)&&R(),O.key===" "&&O.preventDefault())})})})})});mc.displayName=io;var ni="SelectItemText",yc=y.forwardRef((n,i)=>{const{__scopeSelect:r,className:s,style:a,...u}=n,c=Fn(ni,r),f=kn(ni,r),p=vc(ni,r),v=pm(ni,r),[m,w]=y.useState(null),_=We(i,R=>w(R),p.onItemTextChange,R=>{var O;return(O=f.itemTextRefCallback)==null?void 0:O.call(f,R,p.value,p.disabled)}),A=m==null?void 0:m.textContent,D=y.useMemo(()=>b.jsx("option",{value:p.value,disabled:p.disabled,children:A},p.value),[p.disabled,p.value,A]),{onNativeOptionAdd:x,onNativeOptionRemove:E}=v;return dt(()=>(x(D),()=>E(D)),[x,E,D]),b.jsxs(b.Fragment,{children:[b.jsx(Ie.span,{id:p.textId,...u,ref:_}),p.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Gr.createPortal(u.children,c.valueNode):null]})});yc.displayName=ni;var wc="SelectItemIndicator",Rm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return vc(wc,r).isSelected?b.jsx(Ie.span,{"aria-hidden":!0,...s,ref:i}):null});Rm.displayName=wc;var qs="SelectScrollUpButton",xc=y.forwardRef((n,i)=>{const r=kn(qs,n.__scopeSelect),s=zs(qs,n.__scopeSelect),[a,u]=y.useState(!1),c=We(i,s.onScrollButtonChange);return dt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const v=p.scrollTop>0;u(v)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?b.jsx(_c,{...n,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});xc.displayName=qs;var Gs="SelectScrollDownButton",bc=y.forwardRef((n,i)=>{const r=kn(Gs,n.__scopeSelect),s=zs(Gs,n.__scopeSelect),[a,u]=y.useState(!1),c=We(i,s.onScrollButtonChange);return dt(()=>{if(r.viewport&&r.isPositioned){let f=function(){const v=p.scrollHeight-p.clientHeight,m=Math.ceil(p.scrollTop)<v;u(m)};const p=r.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[r.viewport,r.isPositioned]),a?b.jsx(_c,{...n,ref:c,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=r;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});bc.displayName=Gs;var _c=y.forwardRef((n,i)=>{const{__scopeSelect:r,onAutoScroll:s,...a}=n,u=kn("SelectScrollButton",r),c=y.useRef(null),f=no(r),p=y.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return y.useEffect(()=>()=>p(),[p]),dt(()=>{var m;const v=f().find(w=>w.ref.current===document.activeElement);(m=v==null?void 0:v.ref.current)==null||m.scrollIntoView({block:"nearest"})},[f]),b.jsx(Ie.div,{"aria-hidden":!0,...a,ref:i,style:{flexShrink:0,...a.style},onPointerDown:Ce(a.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(s,50))}),onPointerMove:Ce(a.onPointerMove,()=>{var v;(v=u.onItemLeave)==null||v.call(u),c.current===null&&(c.current=window.setInterval(s,50))}),onPointerLeave:Ce(a.onPointerLeave,()=>{p()})})}),Pm="SelectSeparator",Om=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n;return b.jsx(Ie.div,{"aria-hidden":!0,...s,ref:i})});Om.displayName=Pm;var Ys="SelectArrow",Tm=y.forwardRef((n,i)=>{const{__scopeSelect:r,...s}=n,a=ro(r),u=Fn(Ys,r),c=kn(Ys,r);return u.open&&c.position==="popper"?b.jsx($s,{...a,...s,ref:i}):null});Tm.displayName=Ys;var Im="SelectBubbleInput",Cc=y.forwardRef(({__scopeSelect:n,value:i,...r},s)=>{const a=y.useRef(null),u=We(s,a),c=zg(i);return y.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(p,"value").set;if(c!==i&&m){const w=new Event("change",{bubbles:!0});m.call(f,i),f.dispatchEvent(w)}},[c,i]),b.jsx(Ie.select,{...r,style:{...Dl,...r.style},ref:u,defaultValue:i})});Cc.displayName=Im;function Sc(n){return n===""||n===void 0}function Ec(n){const i=Zn(n),r=y.useRef(""),s=y.useRef(0),a=y.useCallback(c=>{const f=r.current+c;i(f),function p(v){r.current=v,window.clearTimeout(s.current),v!==""&&(s.current=window.setTimeout(()=>p(""),1e3))}(f)},[i]),u=y.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,a,u]}function Ac(n,i,r){const a=i.length>1&&Array.from(i).every(v=>v===i[0])?i[0]:i,u=r?n.indexOf(r):-1;let c=Dm(n,Math.max(u,0));a.length===1&&(c=c.filter(v=>v!==r));const p=c.find(v=>v.textValue.toLowerCase().startsWith(a.toLowerCase()));return p!==r?p:void 0}function Dm(n,i){return n.map((r,s)=>n[(i+s)%n.length])}var Nm=nc,Mm=ic,Lm=sc,Fm=ac,km=lc,Bm=uc,Vm=hc,Wm=mc,jm=yc,Um=xc,$m=bc,Hm="Separator",Rc="horizontal",zm=["horizontal","vertical"],Pc=y.forwardRef((n,i)=>{const{decorative:r,orientation:s=Rc,...a}=n,u=Km(s)?s:Rc,f=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return b.jsx(Ie.div,{"data-orientation":u,...f,...a,ref:i})});Pc.displayName=Hm;function Km(n){return zm.includes(n)}var qm=Pc,[oo,z1]=mr("Tooltip",[Ar]),so=Ar(),Oc="TooltipProvider",Gm=700,Xs="tooltip.open",[Ym,Zs]=oo(Oc),Tc=n=>{const{__scopeTooltip:i,delayDuration:r=Gm,skipDelayDuration:s=300,disableHoverableContent:a=!1,children:u}=n,c=y.useRef(!0),f=y.useRef(!1),p=y.useRef(0);return y.useEffect(()=>{const v=p.current;return()=>window.clearTimeout(v)},[]),b.jsx(Ym,{scope:i,isOpenDelayedRef:c,delayDuration:r,onOpen:y.useCallback(()=>{window.clearTimeout(p.current),c.current=!1},[]),onClose:y.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>c.current=!0,s)},[s]),isPointerInTransitRef:f,onPointerInTransitChange:y.useCallback(v=>{f.current=v},[]),disableHoverableContent:a,children:u})};Tc.displayName=Oc;var ri="Tooltip",[Xm,ii]=oo(ri),Ic=n=>{const{__scopeTooltip:i,children:r,open:s,defaultOpen:a,onOpenChange:u,disableHoverableContent:c,delayDuration:f}=n,p=Zs(ri,n.__scopeTooltip),v=so(i),[m,w]=y.useState(null),_=In(),A=y.useRef(0),D=c??p.disableHoverableContent,x=f??p.delayDuration,E=y.useRef(!1),[R,O]=Xr({prop:s,defaultProp:a??!1,onChange:W=>{W?(p.onOpen(),document.dispatchEvent(new CustomEvent(Xs))):p.onClose(),u==null||u(W)},caller:ri}),I=y.useMemo(()=>R?E.current?"delayed-open":"instant-open":"closed",[R]),k=y.useCallback(()=>{window.clearTimeout(A.current),A.current=0,E.current=!1,O(!0)},[O]),M=y.useCallback(()=>{window.clearTimeout(A.current),A.current=0,O(!1)},[O]),$=y.useCallback(()=>{window.clearTimeout(A.current),A.current=window.setTimeout(()=>{E.current=!0,O(!0),A.current=0},x)},[x,O]);return y.useEffect(()=>()=>{A.current&&(window.clearTimeout(A.current),A.current=0)},[]),b.jsx(js,{...v,children:b.jsx(Xm,{scope:i,contentId:_,open:R,stateAttribute:I,trigger:m,onTriggerChange:w,onTriggerEnter:y.useCallback(()=>{p.isOpenDelayedRef.current?$():k()},[p.isOpenDelayedRef,$,k]),onTriggerLeave:y.useCallback(()=>{D?M():(window.clearTimeout(A.current),A.current=0)},[M,D]),onOpen:k,onClose:M,disableHoverableContent:D,children:r})})};Ic.displayName=ri;var Js="TooltipTrigger",Dc=y.forwardRef((n,i)=>{const{__scopeTooltip:r,...s}=n,a=ii(Js,r),u=Zs(Js,r),c=so(r),f=y.useRef(null),p=We(i,f,a.onTriggerChange),v=y.useRef(!1),m=y.useRef(!1),w=y.useCallback(()=>v.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",w),[w]),b.jsx(Qi,{asChild:!0,...c,children:b.jsx(Ie.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:p,onPointerMove:Ce(n.onPointerMove,_=>{_.pointerType!=="touch"&&!m.current&&!u.isPointerInTransitRef.current&&(a.onTriggerEnter(),m.current=!0)}),onPointerLeave:Ce(n.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:Ce(n.onPointerDown,()=>{a.open&&a.onClose(),v.current=!0,document.addEventListener("pointerup",w,{once:!0})}),onFocus:Ce(n.onFocus,()=>{v.current||a.onOpen()}),onBlur:Ce(n.onBlur,a.onClose),onClick:Ce(n.onClick,a.onClose)})})});Dc.displayName=Js;var Qs="TooltipPortal",[Zm,Jm]=oo(Qs,{forceMount:void 0}),Nc=n=>{const{__scopeTooltip:i,forceMount:r,children:s,container:a}=n,u=ii(Qs,i);return b.jsx(Zm,{scope:i,forceMount:r,children:b.jsx(Xn,{present:r||u.open,children:b.jsx(Ni,{asChild:!0,container:a,children:s})})})};Nc.displayName=Qs;var Or="TooltipContent",Mc=y.forwardRef((n,i)=>{const r=Jm(Or,n.__scopeTooltip),{forceMount:s=r.forceMount,side:a="top",...u}=n,c=ii(Or,n.__scopeTooltip);return b.jsx(Xn,{present:s||c.open,children:c.disableHoverableContent?b.jsx(Lc,{side:a,...u,ref:i}):b.jsx(Qm,{side:a,...u,ref:i})})}),Qm=y.forwardRef((n,i)=>{const r=ii(Or,n.__scopeTooltip),s=Zs(Or,n.__scopeTooltip),a=y.useRef(null),u=We(i,a),[c,f]=y.useState(null),{trigger:p,onClose:v}=r,m=a.current,{onPointerInTransitChange:w}=s,_=y.useCallback(()=>{f(null),w(!1)},[w]),A=y.useCallback((D,x)=>{const E=D.currentTarget,R={x:D.clientX,y:D.clientY},O=iy(R,E.getBoundingClientRect()),I=oy(R,O),k=sy(x.getBoundingClientRect()),M=ly([...I,...k]);f(M),w(!0)},[w]);return y.useEffect(()=>()=>_(),[_]),y.useEffect(()=>{if(p&&m){const D=E=>A(E,m),x=E=>A(E,p);return p.addEventListener("pointerleave",D),m.addEventListener("pointerleave",x),()=>{p.removeEventListener("pointerleave",D),m.removeEventListener("pointerleave",x)}}},[p,m,A,_]),y.useEffect(()=>{if(c){const D=x=>{const E=x.target,R={x:x.clientX,y:x.clientY},O=(p==null?void 0:p.contains(E))||(m==null?void 0:m.contains(E)),I=!ay(R,c);O?_():I&&(_(),v())};return document.addEventListener("pointermove",D),()=>document.removeEventListener("pointermove",D)}},[p,m,c,v,_]),b.jsx(Lc,{...n,ref:u})}),[ey,ty]=oo(ri,{isInside:!1}),ny=sp("TooltipContent"),Lc=y.forwardRef((n,i)=>{const{__scopeTooltip:r,children:s,"aria-label":a,onEscapeKeyDown:u,onPointerDownOutside:c,...f}=n,p=ii(Or,r),v=so(r),{onClose:m}=p;return y.useEffect(()=>(document.addEventListener(Xs,m),()=>document.removeEventListener(Xs,m)),[m]),y.useEffect(()=>{if(p.trigger){const w=_=>{const A=_.target;A!=null&&A.contains(p.trigger)&&m()};return window.addEventListener("scroll",w,{capture:!0}),()=>window.removeEventListener("scroll",w,{capture:!0})}},[p.trigger,m]),b.jsx(Zr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:w=>w.preventDefault(),onDismiss:m,children:b.jsxs(Us,{"data-state":p.stateAttribute,...v,...f,ref:i,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[b.jsx(ny,{children:s}),b.jsx(ey,{scope:r,isInside:!0,children:b.jsx(hp,{id:p.contentId,role:"tooltip",children:a||s})})]})})});Mc.displayName=Or;var Fc="TooltipArrow",ry=y.forwardRef((n,i)=>{const{__scopeTooltip:r,...s}=n,a=so(r);return ty(Fc,r).isInside?null:b.jsx($s,{...a,...s,ref:i})});ry.displayName=Fc;function iy(n,i){const r=Math.abs(i.top-n.y),s=Math.abs(i.bottom-n.y),a=Math.abs(i.right-n.x),u=Math.abs(i.left-n.x);switch(Math.min(r,s,a,u)){case u:return"left";case a:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function oy(n,i,r=5){const s=[];switch(i){case"top":s.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":s.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":s.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":s.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return s}function sy(n){const{top:i,right:r,bottom:s,left:a}=n;return[{x:a,y:i},{x:r,y:i},{x:r,y:s},{x:a,y:s}]}function ay(n,i){const{x:r,y:s}=n;let a=!1;for(let u=0,c=i.length-1;u<i.length;c=u++){const f=i[u],p=i[c],v=f.x,m=f.y,w=p.x,_=p.y;m>s!=_>s&&r<(w-v)*(s-m)/(_-m)+v&&(a=!a)}return a}function ly(n){const i=n.slice();return i.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),uy(i)}function uy(n){if(n.length<=1)return n.slice();const i=[];for(let s=0;s<n.length;s++){const a=n[s];for(;i.length>=2;){const u=i[i.length-1],c=i[i.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))i.pop();else break}i.push(a)}i.pop();const r=[];for(let s=n.length-1;s>=0;s--){const a=n[s];for(;r.length>=2;){const u=r[r.length-1],c=r[r.length-2];if((u.x-c.x)*(a.y-c.y)>=(u.y-c.y)*(a.x-c.x))r.pop();else break}r.push(a)}return r.pop(),i.length===1&&r.length===1&&i[0].x===r[0].x&&i[0].y===r[0].y?i:i.concat(r)}var cy=Tc,fy=Ic,dy=Dc,hy=Nc,py=Mc;const kc=as(null),K1=ke("MystaLibProvider",({configOptions:n,children:i})=>{const r=lt(()=>({preset:n.preset,locale:n.locale}),[n.preset,n.locale]);return b.jsx(kc.Provider,{value:r,children:b.jsx(cy,{children:i})})}),gy=ke("useMystaLib",()=>{const n=ls(kc);if(!n)throw new Error("useMystaLib must be used within a MystaLibProvider");return n});function Bc(n){var i,r,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(i=0;i<a;i++)n[i]&&(r=Bc(n[i]))&&(s&&(s+=" "),s+=r)}else for(r in n)n[r]&&(s&&(s+=" "),s+=r);return s}function xn(){for(var n,i,r=0,s="",a=arguments.length;r<a;r++)(n=arguments[r])&&(i=Bc(n))&&(s&&(s+=" "),s+=i);return s}function Jt(n,i){const{preset:r}=gy(),s=r==null?void 0:r[n];if(!s)return{};const a={};for(const u in s){const c=s[u],f=typeof c=="function"?c(i):c,{className:p,...v}=f??{};a[u]={className:xn(p),"data-mc-section":u,...v},u==="root"&&(a[u]["data-mc-name"]=n.toLowerCase())}return a}var oi=n=>n.type==="checkbox",rr=n=>n instanceof Date,mt=n=>n==null;const Vc=n=>typeof n=="object";var Ye=n=>!mt(n)&&!Array.isArray(n)&&Vc(n)&&!rr(n),vy=n=>Ye(n)&&n.target?oi(n.target)?n.target.checked:n.target.value:n,my=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,yy=(n,i)=>n.has(my(i)),wy=n=>{const i=n.constructor&&n.constructor.prototype;return Ye(i)&&i.hasOwnProperty("isPrototypeOf")},ea=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ht(n){let i;const r=Array.isArray(n),s=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)i=new Date(n);else if(n instanceof Set)i=new Set(n);else if(!(ea&&(n instanceof Blob||s))&&(r||Ye(n)))if(i=r?[]:{},!r&&!wy(n))i=n;else for(const a in n)n.hasOwnProperty(a)&&(i[a]=ht(n[a]));else return n;return i}var ao=n=>Array.isArray(n)?n.filter(Boolean):[],Qe=n=>n===void 0,ne=(n,i,r)=>{if(!i||!Ye(n))return r;const s=ao(i.split(/[,[\].]+?/)).reduce((a,u)=>mt(a)?a:a[u],n);return Qe(s)||s===n?Qe(n[i])?r:n[i]:s},fn=n=>typeof n=="boolean",ta=n=>/^\w*$/.test(n),Wc=n=>ao(n.replace(/["|']|\]/g,"").split(/\.|\[/)),je=(n,i,r)=>{let s=-1;const a=ta(i)?[i]:Wc(i),u=a.length,c=u-1;for(;++s<u;){const f=a[s];let p=r;if(s!==c){const v=n[f];p=Ye(v)||Array.isArray(v)?v:isNaN(+a[s+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;n[f]=p,n=n[f]}};const jc={BLUR:"blur",FOCUS_OUT:"focusout"},Qt={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},bn={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Uc=Te.createContext(null),xy=()=>Te.useContext(Uc),by=n=>{const{children:i,...r}=n;return Te.createElement(Uc.Provider,{value:r},i)};var _y=(n,i,r,s=!0)=>{const a={defaultValues:i._defaultValues};for(const u in n)Object.defineProperty(a,u,{get:()=>{const c=u;return i._proxyFormState[c]!==Qt.all&&(i._proxyFormState[c]=!s||Qt.all),n[c]}});return a},na=n=>mt(n)||!Vc(n);function Bn(n,i){if(na(n)||na(i))return n===i;if(rr(n)&&rr(i))return n.getTime()===i.getTime();const r=Object.keys(n),s=Object.keys(i);if(r.length!==s.length)return!1;for(const a of r){const u=n[a];if(!s.includes(a))return!1;if(a!=="ref"){const c=i[a];if(rr(u)&&rr(c)||Ye(u)&&Ye(c)||Array.isArray(u)&&Array.isArray(c)?!Bn(u,c):u!==c)return!1}}return!0}var dn=n=>typeof n=="string",Cy=(n,i,r,s,a)=>dn(n)?(s&&i.watch.add(n),ne(r,n,a)):Array.isArray(n)?n.map(u=>(s&&i.watch.add(u),ne(r,u))):(s&&(i.watchAll=!0),r),Sy=(n,i,r,s,a)=>i?{...r[n],types:{...r[n]&&r[n].types?r[n].types:{},[s]:a||!0}}:{},si=n=>Array.isArray(n)?n:[n],$c=()=>{let n=[];return{get observers(){return n},next:a=>{for(const u of n)u.next&&u.next(a)},subscribe:a=>(n.push(a),{unsubscribe:()=>{n=n.filter(u=>u!==a)}}),unsubscribe:()=>{n=[]}}},yt=n=>Ye(n)&&!Object.keys(n).length,ra=n=>n.type==="file",en=n=>typeof n=="function",lo=n=>{if(!ea)return!1;const i=n?n.ownerDocument:0;return n instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},Hc=n=>n.type==="select-multiple",ia=n=>n.type==="radio",Ey=n=>ia(n)||oi(n),oa=n=>lo(n)&&n.isConnected;function Ay(n,i){const r=i.slice(0,-1).length;let s=0;for(;s<r;)n=Qe(n)?s++:n[i[s++]];return n}function Ry(n){for(const i in n)if(n.hasOwnProperty(i)&&!Qe(n[i]))return!1;return!0}function tt(n,i){const r=Array.isArray(i)?i:ta(i)?[i]:Wc(i),s=r.length===1?n:Ay(n,r),a=r.length-1,u=r[a];return s&&delete s[u],a!==0&&(Ye(s)&&yt(s)||Array.isArray(s)&&Ry(s))&&tt(n,r.slice(0,-1)),n}var zc=n=>{for(const i in n)if(en(n[i]))return!0;return!1};function uo(n,i={}){const r=Array.isArray(n);if(Ye(n)||r)for(const s in n)Array.isArray(n[s])||Ye(n[s])&&!zc(n[s])?(i[s]=Array.isArray(n[s])?[]:{},uo(n[s],i[s])):mt(n[s])||(i[s]=!0);return i}function Kc(n,i,r){const s=Array.isArray(n);if(Ye(n)||s)for(const a in n)Array.isArray(n[a])||Ye(n[a])&&!zc(n[a])?Qe(i)||na(r[a])?r[a]=Array.isArray(n[a])?uo(n[a],[]):{...uo(n[a])}:Kc(n[a],mt(i)?{}:i[a],r[a]):r[a]=!Bn(n[a],i[a]);return r}var ai=(n,i)=>Kc(n,i,uo(i));const qc={value:!1,isValid:!1},Gc={value:!0,isValid:!0};var Yc=n=>{if(Array.isArray(n)){if(n.length>1){const i=n.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:i,isValid:!!i.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!Qe(n[0].attributes.value)?Qe(n[0].value)||n[0].value===""?Gc:{value:n[0].value,isValid:!0}:Gc:qc}return qc},Xc=(n,{valueAsNumber:i,valueAsDate:r,setValueAs:s})=>Qe(n)?n:i?n===""?NaN:n&&+n:r&&dn(n)?new Date(n):s?s(n):n;const Zc={isValid:!1,value:null};var Jc=n=>Array.isArray(n)?n.reduce((i,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:i,Zc):Zc;function Qc(n){const i=n.ref;return ra(i)?i.files:ia(i)?Jc(n.refs).value:Hc(i)?[...i.selectedOptions].map(({value:r})=>r):oi(i)?Yc(n.refs).value:Xc(Qe(i.value)?n.ref.value:i.value,n)}var Py=(n,i,r,s)=>{const a={};for(const u of n){const c=ne(i,u);c&&je(a,u,c._f)}return{criteriaMode:r,names:[...n],fields:a,shouldUseNativeValidation:s}},co=n=>n instanceof RegExp,li=n=>Qe(n)?n:co(n)?n.source:Ye(n)?co(n.value)?n.value.source:n.value:n,ef=n=>({isOnSubmit:!n||n===Qt.onSubmit,isOnBlur:n===Qt.onBlur,isOnChange:n===Qt.onChange,isOnAll:n===Qt.all,isOnTouch:n===Qt.onTouched});const tf="AsyncFunction";var Oy=n=>!!n&&!!n.validate&&!!(en(n.validate)&&n.validate.constructor.name===tf||Ye(n.validate)&&Object.values(n.validate).find(i=>i.constructor.name===tf)),Ty=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),nf=(n,i,r)=>!r&&(i.watchAll||i.watch.has(n)||[...i.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const ui=(n,i,r,s)=>{for(const a of r||Object.keys(n)){const u=ne(n,a);if(u){const{_f:c,...f}=u;if(c){if(c.refs&&c.refs[0]&&i(c.refs[0],a)&&!s)return!0;if(c.ref&&i(c.ref,c.name)&&!s)return!0;if(ui(f,i))break}else if(Ye(f)&&ui(f,i))break}}};function rf(n,i,r){const s=ne(n,r);if(s||ta(r))return{error:s,name:r};const a=r.split(".");for(;a.length;){const u=a.join("."),c=ne(i,u),f=ne(n,u);if(c&&!Array.isArray(c)&&r!==u)return{name:r};if(f&&f.type)return{name:u,error:f};a.pop()}return{name:r}}var Iy=(n,i,r,s)=>{r(n);const{name:a,...u}=n;return yt(u)||Object.keys(u).length>=Object.keys(i).length||Object.keys(u).find(c=>i[c]===(!s||Qt.all))},Dy=(n,i,r)=>!n||!i||n===i||si(n).some(s=>s&&(r?s===i:s.startsWith(i)||i.startsWith(s))),Ny=(n,i,r,s,a)=>a.isOnAll?!1:!r&&a.isOnTouch?!(i||n):(r?s.isOnBlur:a.isOnBlur)?!n:(r?s.isOnChange:a.isOnChange)?n:!0,My=(n,i)=>!ao(ne(n,i)).length&&tt(n,i),Ly=(n,i,r)=>{const s=si(ne(n,r));return je(s,"root",i[r]),je(n,r,s),n},fo=n=>dn(n);function of(n,i,r="validate"){if(fo(n)||Array.isArray(n)&&n.every(fo)||fn(n)&&!n)return{type:r,message:fo(n)?n:"",ref:i}}var Tr=n=>Ye(n)&&!co(n)?n:{value:n,message:""},sf=async(n,i,r,s,a,u)=>{const{ref:c,refs:f,required:p,maxLength:v,minLength:m,min:w,max:_,pattern:A,validate:D,name:x,valueAsNumber:E,mount:R}=n._f,O=ne(r,x);if(!R||i.has(x))return{};const I=f?f[0]:c,k=Z=>{a&&I.reportValidity&&(I.setCustomValidity(fn(Z)?"":Z||""),I.reportValidity())},M={},$=ia(c),W=oi(c),q=$||W,K=(E||ra(c))&&Qe(c.value)&&Qe(O)||lo(c)&&c.value===""||O===""||Array.isArray(O)&&!O.length,se=Sy.bind(null,x,s,M),fe=(Z,J,re,he=bn.maxLength,ae=bn.minLength)=>{const de=Z?J:re;M[x]={type:Z?he:ae,message:de,ref:c,...se(Z?he:ae,de)}};if(u?!Array.isArray(O)||!O.length:p&&(!q&&(K||mt(O))||fn(O)&&!O||W&&!Yc(f).isValid||$&&!Jc(f).isValid)){const{value:Z,message:J}=fo(p)?{value:!!p,message:p}:Tr(p);if(Z&&(M[x]={type:bn.required,message:J,ref:I,...se(bn.required,J)},!s))return k(J),M}if(!K&&(!mt(w)||!mt(_))){let Z,J;const re=Tr(_),he=Tr(w);if(!mt(O)&&!isNaN(O)){const ae=c.valueAsNumber||O&&+O;mt(re.value)||(Z=ae>re.value),mt(he.value)||(J=ae<he.value)}else{const ae=c.valueAsDate||new Date(O),de=Ne=>new Date(new Date().toDateString()+" "+Ne),oe=c.type=="time",ye=c.type=="week";dn(re.value)&&O&&(Z=oe?de(O)>de(re.value):ye?O>re.value:ae>new Date(re.value)),dn(he.value)&&O&&(J=oe?de(O)<de(he.value):ye?O<he.value:ae<new Date(he.value))}if((Z||J)&&(fe(!!Z,re.message,he.message,bn.max,bn.min),!s))return k(M[x].message),M}if((v||m)&&!K&&(dn(O)||u&&Array.isArray(O))){const Z=Tr(v),J=Tr(m),re=!mt(Z.value)&&O.length>+Z.value,he=!mt(J.value)&&O.length<+J.value;if((re||he)&&(fe(re,Z.message,J.message),!s))return k(M[x].message),M}if(A&&!K&&dn(O)){const{value:Z,message:J}=Tr(A);if(co(Z)&&!O.match(Z)&&(M[x]={type:bn.pattern,message:J,ref:c,...se(bn.pattern,J)},!s))return k(J),M}if(D){if(en(D)){const Z=await D(O,r),J=of(Z,I);if(J&&(M[x]={...J,...se(bn.validate,J.message)},!s))return k(J.message),M}else if(Ye(D)){let Z={};for(const J in D){if(!yt(Z)&&!s)break;const re=of(await D[J](O,r),I,J);re&&(Z={...re,...se(J,re.message)},k(re.message),s&&(M[x]=Z))}if(!yt(Z)&&(M[x]={ref:I,...Z},!s))return M}}return k(!0),M};const Fy={mode:Qt.onSubmit,reValidateMode:Qt.onChange,shouldFocusError:!0};function ky(n={}){let i={...Fy,...n},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:en(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1};const s={};let a=Ye(i.defaultValues)||Ye(i.values)?ht(i.values||i.defaultValues)||{}:{},u=i.shouldUnregister?{}:ht(a),c={action:!1,mount:!1,watch:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,v=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let w={...m};const _={array:$c(),state:$c()},A=ef(i.mode),D=ef(i.reValidateMode),x=i.criteriaMode===Qt.all,E=S=>L=>{clearTimeout(v),v=setTimeout(S,L)},R=async S=>{if(!i.disabled&&(m.isValid||w.isValid||S)){const L=i.resolver?yt((await K()).errors):await fe(s,!0);L!==r.isValid&&_.state.next({isValid:L})}},O=(S,L)=>{!i.disabled&&(m.isValidating||m.validatingFields||w.isValidating||w.validatingFields)&&((S||Array.from(f.mount)).forEach(V=>{V&&(L?je(r.validatingFields,V,L):tt(r.validatingFields,V))}),_.state.next({validatingFields:r.validatingFields,isValidating:!yt(r.validatingFields)}))},I=(S,L=[],V,X,G=!0,z=!0)=>{if(X&&V&&!i.disabled){if(c.action=!0,z&&Array.isArray(ne(s,S))){const Q=V(ne(s,S),X.argA,X.argB);G&&je(s,S,Q)}if(z&&Array.isArray(ne(r.errors,S))){const Q=V(ne(r.errors,S),X.argA,X.argB);G&&je(r.errors,S,Q),My(r.errors,S)}if((m.touchedFields||w.touchedFields)&&z&&Array.isArray(ne(r.touchedFields,S))){const Q=V(ne(r.touchedFields,S),X.argA,X.argB);G&&je(r.touchedFields,S,Q)}(m.dirtyFields||w.dirtyFields)&&(r.dirtyFields=ai(a,u)),_.state.next({name:S,isDirty:J(S,L),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else je(u,S,L)},k=(S,L)=>{je(r.errors,S,L),_.state.next({errors:r.errors})},M=S=>{r.errors=S,_.state.next({errors:r.errors,isValid:!1})},$=(S,L,V,X)=>{const G=ne(s,S);if(G){const z=ne(u,S,Qe(V)?ne(a,S):V);Qe(z)||X&&X.defaultChecked||L?je(u,S,L?z:Qc(G._f)):ae(S,z),c.mount&&R()}},W=(S,L,V,X,G)=>{let z=!1,Q=!1;const Ee={name:S};if(!i.disabled){if(!V||X){(m.isDirty||w.isDirty)&&(Q=r.isDirty,r.isDirty=Ee.isDirty=J(),z=Q!==Ee.isDirty);const He=Bn(ne(a,S),L);Q=!!ne(r.dirtyFields,S),He?tt(r.dirtyFields,S):je(r.dirtyFields,S,!0),Ee.dirtyFields=r.dirtyFields,z=z||(m.dirtyFields||w.dirtyFields)&&Q!==!He}if(V){const He=ne(r.touchedFields,S);He||(je(r.touchedFields,S,V),Ee.touchedFields=r.touchedFields,z=z||(m.touchedFields||w.touchedFields)&&He!==V)}z&&G&&_.state.next(Ee)}return z?Ee:{}},q=(S,L,V,X)=>{const G=ne(r.errors,S),z=(m.isValid||w.isValid)&&fn(L)&&r.isValid!==L;if(i.delayError&&V?(p=E(()=>k(S,V)),p(i.delayError)):(clearTimeout(v),p=null,V?je(r.errors,S,V):tt(r.errors,S)),(V?!Bn(G,V):G)||!yt(X)||z){const Q={...X,...z&&fn(L)?{isValid:L}:{},errors:r.errors,name:S};r={...r,...Q},_.state.next(Q)}},K=async S=>{O(S,!0);const L=await i.resolver(u,i.context,Py(S||f.mount,s,i.criteriaMode,i.shouldUseNativeValidation));return O(S),L},se=async S=>{const{errors:L}=await K(S);if(S)for(const V of S){const X=ne(L,V);X?je(r.errors,V,X):tt(r.errors,V)}else r.errors=L;return L},fe=async(S,L,V={valid:!0})=>{for(const X in S){const G=S[X];if(G){const{_f:z,...Q}=G;if(z){const Ee=f.array.has(z.name),He=G._f&&Oy(G._f);He&&m.validatingFields&&O([X],!0);const et=await sf(G,f.disabled,u,x,i.shouldUseNativeValidation&&!L,Ee);if(He&&m.validatingFields&&O([X]),et[z.name]&&(V.valid=!1,L))break;!L&&(ne(et,z.name)?Ee?Ly(r.errors,et,z.name):je(r.errors,z.name,et[z.name]):tt(r.errors,z.name))}!yt(Q)&&await fe(Q,L,V)}}return V.valid},Z=()=>{for(const S of f.unMount){const L=ne(s,S);L&&(L._f.refs?L._f.refs.every(V=>!oa(V)):!oa(L._f.ref))&&Fe(S)}f.unMount=new Set},J=(S,L)=>!i.disabled&&(S&&L&&je(u,S,L),!Bn(wt(),a)),re=(S,L,V)=>Cy(S,f,{...c.mount?u:Qe(L)?a:dn(S)?{[S]:L}:L},V,L),he=S=>ao(ne(c.mount?u:a,S,i.shouldUnregister?ne(a,S,[]):[])),ae=(S,L,V={})=>{const X=ne(s,S);let G=L;if(X){const z=X._f;z&&(!z.disabled&&je(u,S,Xc(L,z)),G=lo(z.ref)&&mt(L)?"":L,Hc(z.ref)?[...z.ref.options].forEach(Q=>Q.selected=G.includes(Q.value)):z.refs?oi(z.ref)?z.refs.length>1?z.refs.forEach(Q=>(!Q.defaultChecked||!Q.disabled)&&(Q.checked=Array.isArray(G)?!!G.find(Ee=>Ee===Q.value):G===Q.value)):z.refs[0]&&(z.refs[0].checked=!!G):z.refs.forEach(Q=>Q.checked=Q.value===G):ra(z.ref)?z.ref.value="":(z.ref.value=G,z.ref.type||_.state.next({name:S,values:ht(u)})))}(V.shouldDirty||V.shouldTouch)&&W(S,G,V.shouldTouch,V.shouldDirty,!0),V.shouldValidate&&Me(S)},de=(S,L,V)=>{for(const X in L){const G=L[X],z=`${S}.${X}`,Q=ne(s,z);(f.array.has(S)||Ye(G)||Q&&!Q._f)&&!rr(G)?de(z,G,V):ae(z,G,V)}},oe=(S,L,V={})=>{const X=ne(s,S),G=f.array.has(S),z=ht(L);je(u,S,z),G?(_.array.next({name:S,values:ht(u)}),(m.isDirty||m.dirtyFields||w.isDirty||w.dirtyFields)&&V.shouldDirty&&_.state.next({name:S,dirtyFields:ai(a,u),isDirty:J(S,z)})):X&&!X._f&&!mt(z)?de(S,z,V):ae(S,z,V),nf(S,f)&&_.state.next({...r}),_.state.next({name:c.mount?S:void 0,values:ht(u)})},ye=async S=>{c.mount=!0;const L=S.target;let V=L.name,X=!0;const G=ne(s,V),z=Q=>{X=Number.isNaN(Q)||rr(Q)&&isNaN(Q.getTime())||Bn(Q,ne(u,V,Q))};if(G){let Q,Ee;const He=L.type?Qc(G._f):vy(S),et=S.type===jc.BLUR||S.type===jc.FOCUS_OUT,di=!Ty(G._f)&&!i.resolver&&!ne(r.errors,V)&&!G._f.deps||Ny(et,ne(r.touchedFields,V),r.isSubmitted,D,A),or=nf(V,f,et);je(u,V,He),et?(G._f.onBlur&&G._f.onBlur(S),p&&p(0)):G._f.onChange&&G._f.onChange(S);const sr=W(V,He,et),hi=!yt(sr)||or;if(!et&&_.state.next({name:V,type:S.type,values:ht(u)}),di)return(m.isValid||w.isValid)&&(i.mode==="onBlur"?et&&R():et||R()),hi&&_.state.next({name:V,...or?{}:sr});if(!et&&or&&_.state.next({...r}),i.resolver){const{errors:Nr}=await K([V]);if(z(He),X){const pi=rf(r.errors,s,V),yo=rf(Nr,s,pi.name||V);Q=yo.error,V=yo.name,Ee=yt(Nr)}}else O([V],!0),Q=(await sf(G,f.disabled,u,x,i.shouldUseNativeValidation))[V],O([V]),z(He),X&&(Q?Ee=!1:(m.isValid||w.isValid)&&(Ee=await fe(s,!0)));X&&(G._f.deps&&Me(G._f.deps),q(V,Ee,Q,sr))}},Ne=(S,L)=>{if(ne(r.errors,L)&&S.focus)return S.focus(),1},Me=async(S,L={})=>{let V,X;const G=si(S);if(i.resolver){const z=await se(Qe(S)?S:G);V=yt(z),X=S?!G.some(Q=>ne(z,Q)):V}else S?(X=(await Promise.all(G.map(async z=>{const Q=ne(s,z);return await fe(Q&&Q._f?{[z]:Q}:Q)}))).every(Boolean),!(!X&&!r.isValid)&&R()):X=V=await fe(s);return _.state.next({...!dn(S)||(m.isValid||w.isValid)&&V!==r.isValid?{}:{name:S},...i.resolver||!S?{isValid:V}:{},errors:r.errors}),L.shouldFocus&&!X&&ui(s,Ne,S?G:f.mount),X},wt=S=>{const L={...c.mount?u:a};return Qe(S)?L:dn(S)?ne(L,S):S.map(V=>ne(L,V))},Vt=(S,L)=>({invalid:!!ne((L||r).errors,S),isDirty:!!ne((L||r).dirtyFields,S),error:ne((L||r).errors,S),isValidating:!!ne(r.validatingFields,S),isTouched:!!ne((L||r).touchedFields,S)}),Ct=S=>{S&&si(S).forEach(L=>tt(r.errors,L)),_.state.next({errors:S?r.errors:{}})},it=(S,L,V)=>{const X=(ne(s,S,{_f:{}})._f||{}).ref,G=ne(r.errors,S)||{},{ref:z,message:Q,type:Ee,...He}=G;je(r.errors,S,{...He,...L,ref:X}),_.state.next({name:S,errors:r.errors,isValid:!1}),V&&V.shouldFocus&&X&&X.focus&&X.focus()},pt=(S,L)=>en(S)?_.state.subscribe({next:V=>S(re(void 0,L),V)}):re(S,L,!0),te=S=>_.state.subscribe({next:L=>{Dy(S.name,L.name,S.exact)&&Iy(L,S.formState||m,Vn,S.reRenderRoot)&&S.callback({values:{...u},...r,...L})}}).unsubscribe,xe=S=>(c.mount=!0,w={...w,...S.formState},te({...S,formState:w})),Fe=(S,L={})=>{for(const V of S?si(S):f.mount)f.mount.delete(V),f.array.delete(V),L.keepValue||(tt(s,V),tt(u,V)),!L.keepError&&tt(r.errors,V),!L.keepDirty&&tt(r.dirtyFields,V),!L.keepTouched&&tt(r.touchedFields,V),!L.keepIsValidating&&tt(r.validatingFields,V),!i.shouldUnregister&&!L.keepDefaultValue&&tt(a,V);_.state.next({values:ht(u)}),_.state.next({...r,...L.keepDirty?{isDirty:J()}:{}}),!L.keepIsValid&&R()},Pe=({disabled:S,name:L})=>{(fn(S)&&c.mount||S||f.disabled.has(L))&&(S?f.disabled.add(L):f.disabled.delete(L))},be=(S,L={})=>{let V=ne(s,S);const X=fn(L.disabled)||fn(i.disabled);return je(s,S,{...V||{},_f:{...V&&V._f?V._f:{ref:{name:S}},name:S,mount:!0,...L}}),f.mount.add(S),V?Pe({disabled:fn(L.disabled)?L.disabled:i.disabled,name:S}):$(S,!0,L.value),{...X?{disabled:L.disabled||i.disabled}:{},...i.progressive?{required:!!L.required,min:li(L.min),max:li(L.max),minLength:li(L.minLength),maxLength:li(L.maxLength),pattern:li(L.pattern)}:{},name:S,onChange:ye,onBlur:ye,ref:G=>{if(G){be(S,L),V=ne(s,S);const z=Qe(G.value)&&G.querySelectorAll&&G.querySelectorAll("input,select,textarea")[0]||G,Q=Ey(z),Ee=V._f.refs||[];if(Q?Ee.find(He=>He===z):z===V._f.ref)return;je(s,S,{_f:{...V._f,...Q?{refs:[...Ee.filter(oa),z,...Array.isArray(ne(a,S))?[{}]:[]],ref:{type:z.type,name:S}}:{ref:z}}}),$(S,!1,void 0,z)}else V=ne(s,S,{}),V._f&&(V._f.mount=!1),(i.shouldUnregister||L.shouldUnregister)&&!(yy(f.array,S)&&c.action)&&f.unMount.add(S)}}},Se=()=>i.shouldFocusError&&ui(s,Ne,f.mount),ot=S=>{fn(S)&&(_.state.next({disabled:S}),ui(s,(L,V)=>{const X=ne(s,V);X&&(L.disabled=X._f.disabled||S,Array.isArray(X._f.refs)&&X._f.refs.forEach(G=>{G.disabled=X._f.disabled||S}))},0,!1))},Ue=(S,L)=>async V=>{let X;V&&(V.preventDefault&&V.preventDefault(),V.persist&&V.persist());let G=ht(u);if(_.state.next({isSubmitting:!0}),i.resolver){const{errors:z,values:Q}=await K();r.errors=z,G=Q}else await fe(s);if(f.disabled.size)for(const z of f.disabled)je(G,z,void 0);if(tt(r.errors,"root"),yt(r.errors)){_.state.next({errors:{}});try{await S(G,V)}catch(z){X=z}}else L&&await L({...r.errors},V),Se(),setTimeout(Se);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:yt(r.errors)&&!X,submitCount:r.submitCount+1,errors:r.errors}),X)throw X},Dt=(S,L={})=>{ne(s,S)&&(Qe(L.defaultValue)?oe(S,ht(ne(a,S))):(oe(S,L.defaultValue),je(a,S,ht(L.defaultValue))),L.keepTouched||tt(r.touchedFields,S),L.keepDirty||(tt(r.dirtyFields,S),r.isDirty=L.defaultValue?J(S,ht(ne(a,S))):J()),L.keepError||(tt(r.errors,S),m.isValid&&R()),_.state.next({...r}))},hn=(S,L={})=>{const V=S?ht(S):a,X=ht(V),G=yt(S),z=G?a:X;if(L.keepDefaultValues||(a=V),!L.keepValues){if(L.keepDirtyValues){const Q=new Set([...f.mount,...Object.keys(ai(a,u))]);for(const Ee of Array.from(Q))ne(r.dirtyFields,Ee)?je(z,Ee,ne(u,Ee)):oe(Ee,ne(z,Ee))}else{if(ea&&Qe(S))for(const Q of f.mount){const Ee=ne(s,Q);if(Ee&&Ee._f){const He=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(lo(He)){const et=He.closest("form");if(et){et.reset();break}}}}for(const Q of f.mount)oe(Q,ne(z,Q))}u=ht(z),_.array.next({values:{...z}}),_.state.next({values:{...z}})}f={mount:L.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!m.isValid||!!L.keepIsValid||!!L.keepDirtyValues,c.watch=!!i.shouldUnregister,_.state.next({submitCount:L.keepSubmitCount?r.submitCount:0,isDirty:G?!1:L.keepDirty?r.isDirty:!!(L.keepDefaultValues&&!Bn(S,a)),isSubmitted:L.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:G?{}:L.keepDirtyValues?L.keepDefaultValues&&u?ai(a,u):r.dirtyFields:L.keepDefaultValues&&S?ai(a,S):L.keepDirty?r.dirtyFields:{},touchedFields:L.keepTouched?r.touchedFields:{},errors:L.keepErrors?r.errors:{},isSubmitSuccessful:L.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},st=(S,L)=>hn(en(S)?S(u):S,L),Ir=(S,L={})=>{const V=ne(s,S),X=V&&V._f;if(X){const G=X.refs?X.refs[0]:X.ref;G.focus&&(G.focus(),L.shouldSelect&&en(G.select)&&G.select())}},Vn=S=>{r={...r,...S}},St={control:{register:be,unregister:Fe,getFieldState:Vt,handleSubmit:Ue,setError:it,_subscribe:te,_runSchema:K,_getWatch:re,_getDirty:J,_setValid:R,_setFieldArray:I,_setDisabledField:Pe,_setErrors:M,_getFieldArray:he,_reset:hn,_resetDefaultValues:()=>en(i.defaultValues)&&i.defaultValues().then(S=>{st(S,i.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:Z,_disableForm:ot,_subjects:_,_proxyFormState:m,get _fields(){return s},get _formValues(){return u},get _state(){return c},set _state(S){c=S},get _defaultValues(){return a},get _names(){return f},set _names(S){f=S},get _formState(){return r},get _options(){return i},set _options(S){i={...i,...S}}},subscribe:xe,trigger:Me,register:be,handleSubmit:Ue,watch:pt,setValue:oe,getValues:wt,reset:st,resetField:Dt,clearErrors:Ct,unregister:Fe,setError:it,setFocus:Ir,getFieldState:Vt};return{...St,formControl:St}}const By=typeof window<"u"?Te.useLayoutEffect:Te.useEffect;function Vy(n={}){const i=Te.useRef(void 0),r=Te.useRef(void 0),[s,a]=Te.useState({isDirty:!1,isValidating:!1,isLoading:en(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:en(n.defaultValues)?void 0:n.defaultValues});i.current||(i.current={...n.formControl?n.formControl:ky(n),formState:s},n.formControl&&n.defaultValues&&!en(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions));const u=i.current.control;return u._options=n,By(()=>{const c=u._subscribe({formState:u._proxyFormState,callback:()=>a({...u._formState}),reRenderRoot:!0});return a(f=>({...f,isReady:!0})),u._formState.isReady=!0,c},[u]),Te.useEffect(()=>u._disableForm(n.disabled),[u,n.disabled]),Te.useEffect(()=>{n.mode&&(u._options.mode=n.mode),n.reValidateMode&&(u._options.reValidateMode=n.reValidateMode),n.errors&&!yt(n.errors)&&u._setErrors(n.errors)},[u,n.errors,n.mode,n.reValidateMode]),Te.useEffect(()=>{n.shouldUnregister&&u._subjects.state.next({values:u._getWatch()})},[u,n.shouldUnregister]),Te.useEffect(()=>{if(u._proxyFormState.isDirty){const c=u._getDirty();c!==s.isDirty&&u._subjects.state.next({isDirty:c})}},[u,s.isDirty]),Te.useEffect(()=>{n.values&&!Bn(n.values,r.current)?(u._reset(n.values,u._options.resetOptions),r.current=n.values,a(c=>({...c}))):u._resetDefaultValues()},[u,n.values]),Te.useEffect(()=>{u._state.mount||(u._setValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),i.current.formState=_y(s,u),i.current}const Wy=ke("useEffectiveRegister",()=>{try{return xy()}catch{return null}}),ci=ke("useValidator",(n,i)=>{const r=Wy()??{register:void 0},{register:s,watch:a,...u}=r,c=lt(()=>({uppercase:v=>/[A-Z]/.test(v)?!0:"Password should contain an uppercase letter",lowercase:v=>/[a-z]/.test(v)?!0:"Password should contain a lowercase letter","special-character":v=>/[!@#$%^&*()_+{}[\]:;"'<>,.?/\\|`~-]/.test(v)?!0:"Password should contain a special character","alpha-numeric":v=>/[A-Za-z]/.test(v)&&/\d/.test(v)?!0:"Password should be alphanumeric"}),[]),f=Je(v=>{var m;return!!(n[v]||(m=n.customMessage)!=null&&m[v])},[n]),p=lt(()=>{var m,w,_,A,D,x,E,R;return s?{...f("required")&&{required:((m=n.customMessage)==null?void 0:m.required)??"This field is required"},...f("minLength")&&{minLength:{value:n.minLength??0,message:((w=n.customMessage)==null?void 0:w.minLength)??`Min. ${n.minLength} characters`}},...f("maxLength")&&{maxLength:{value:n.maxLength??1/0,message:((_=n.customMessage)==null?void 0:_.maxLength)??`Max. ${n.maxLength} characters`}},...f("min")&&{min:{value:n.min??0,message:((A=n.customMessage)==null?void 0:A.min)??`Value should not lesser than ${n.min}`}},...f("max")&&{max:{value:n.max??1/0,message:((D=n.customMessage)==null?void 0:D.max)??`Value should not greater than ${n.max}`}},...n.type==="email"&&{pattern:{value:/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/,message:((x=n.customMessage)==null?void 0:x.pattern)??"Invalid email format"}},...n.type==="password"&&{validate:(E=n.passwordRequirements)==null?void 0:E.reduce((O,I)=>{const k=c[I];return k&&(O[I]=k),O},{})},...f("pattern")&&{pattern:{value:n.pattern??/.*/,message:((R=n.customMessage)==null?void 0:R.pattern)??"Invalid characters"}},...n.validate?{validate:n.validate}:{}}:void 0},[n,s,f,c]);if(p)return{...s(i,p),methods:{...u,watchedValue:a(i)}}});var af={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},lf=Te.createContext&&Te.createContext(af),jy=["attr","size","title"];function Uy(n,i){if(n==null)return{};var r=$y(n,i),s,a;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(n);for(a=0;a<u.length;a++)s=u[a],!(i.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(r[s]=n[s])}return r}function $y(n,i){if(n==null)return{};var r={};for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)){if(i.indexOf(s)>=0)continue;r[s]=n[s]}return r}function ho(){return ho=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])}return n},ho.apply(this,arguments)}function uf(n,i){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);i&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),r.push.apply(r,s)}return r}function po(n){for(var i=1;i<arguments.length;i++){var r=arguments[i]!=null?arguments[i]:{};i%2?uf(Object(r),!0).forEach(function(s){Hy(n,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(r,s))})}return n}function Hy(n,i,r){return i=zy(i),i in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,n}function zy(n){var i=Ky(n,"string");return typeof i=="symbol"?i:i+""}function Ky(n,i){if(typeof n!="object"||!n)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var s=r.call(n,i);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(n)}function cf(n){return n&&n.map((i,r)=>Te.createElement(i.tag,po({key:r},i.attr),cf(i.child)))}function qy(n){return i=>Te.createElement(Gy,ho({attr:po({},n.attr)},i),cf(n.child))}function Gy(n){var i=r=>{var{attr:s,size:a,title:u}=n,c=Uy(n,jy),f=a||r.size||"1em",p;return r.className&&(p=r.className),n.className&&(p=(p?p+" ":"")+n.className),Te.createElement("svg",ho({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,s,c,{className:p,style:po(po({color:n.color||r.color},r.style),n.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&Te.createElement("title",null,u),n.children)};return lf!==void 0?Te.createElement(lf.Consumer,null,r=>i(r)):i(af)}function Yy(n){return qy({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22c5.421 0 10-4.579 10-10h-2c0 4.337-3.663 8-8 8s-8-3.663-8-8c0-4.336 3.663-8 8-8V2C6.579 2 2 6.58 2 12c0 5.421 4.579 10 10 10z"},child:[]}]})(n)}const Xy=ke("Tooltip",n=>{const{content:i,children:r,hide:s,className:a,position:u}=n,c=Jt("Tooltip",{props:n})??{};return b.jsxs(fy,{delayDuration:0,open:s?!1:void 0,children:[b.jsx(dy,{asChild:!0,className:a,children:r}),b.jsx(hy,{children:b.jsx(py,{side:u,sideOffset:4,children:b.jsx("div",{...c.content,children:i})})})]})}),tn=ke("Icon",Yn(({name:n,className:i,tooltip:r,tooltipPos:s,severity:a,...u},c)=>{const f=a?Xh(a,{color:!0}):"text-black";return b.jsx(Xy,{className:i,content:r,hide:!r,position:s??"right",children:b.jsx("i",{"aria-hidden":"true",className:xn("icon",`ic-${n}`,f),ref:c,...u})})})),Zy=ke("Button",({icon:n,label:i,severity:r="primary",onClick:s=()=>{},disabled:a=!1,height:u=26,loading:c=!1,outlined:f=!1,text:p=!1,width:v="max-content",type:m="button"})=>{const w=Jt("Button",{context:{disabled:!!c||!!a},props:{height:u,width:v,label:i,outlined:f,text:p,severity:r}})??{},_=()=>{if(i)return b.jsx("span",{...w.label,children:i})},D=(()=>{var E;return!n&&!c?b.jsx("span",{...w.icon}):n&&!c?b.jsx(tn,{name:n}):b.jsx(Yy,{className:xn((E=w.loadingIcon)==null?void 0:E.className)})})(),x=_();return b.jsxs("button",{...w.root,type:m,onClick:s,children:[D,x]})});let go;const Jy=new Uint8Array(16);function Qy(){if(!go&&(go=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!go))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return go(Jy)}const ut=[];for(let n=0;n<256;++n)ut.push((n+256).toString(16).slice(1));function ew(n,i=0){return ut[n[i+0]]+ut[n[i+1]]+ut[n[i+2]]+ut[n[i+3]]+"-"+ut[n[i+4]]+ut[n[i+5]]+"-"+ut[n[i+6]]+ut[n[i+7]]+"-"+ut[n[i+8]]+ut[n[i+9]]+"-"+ut[n[i+10]]+ut[n[i+11]]+ut[n[i+12]]+ut[n[i+13]]+ut[n[i+14]]+ut[n[i+15]]}const ff={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sa(n,i,r){if(ff.randomUUID&&!n)return ff.randomUUID();n=n||{};const s=n.random||(n.rng||Qy)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,ew(s)}const tw=ke("Popover",n=>{const{children:i,closeOnBlur:r,content:s,triggerOnMouseOver:a=!1,alwaysRender:u,defaultVisibility:c=u,visible:f,onVisibleChange:p}=n,[v,m]=Ot(!1);mn(()=>{f!==null&&m(f),c!==null&&m(c),u&&m(u)},[f,m,c,u]);const w=Je(_=>{m(_==="in"),p==null||p(_==="in")},[m,p]);return b.jsx(lm,{defaultOpen:c,open:v,onOpenChange:m,children:a?b.jsx(ec,{asChild:!0,onMouseOut:()=>w("out"),onMouseOver:()=>w("in"),children:b.jsxs("div",{className:"group w-max h-max relative m-auto",children:[i,b.jsx(tc,{align:"end",className:"absolute bottom-2 right-2",forceMount:u,tabIndex:void 0,onFocusOutside:_=>{r||_.preventDefault()},onMouseOut:()=>w("out"),onMouseOver:()=>w("in"),children:s})]})}):b.jsxs(b.Fragment,{children:[b.jsx(ec,{asChild:!0,children:i}),b.jsx(tc,{align:"end",className:"absolute bottom-2 right-2",forceMount:u,tabIndex:void 0,onFocusOutside:_=>{r||_.preventDefault()},children:s})]})})}),nw=n=>b.jsx(qm,{...n}),ir=ke("Slot",({children:n,slots:i,name:r})=>r&&(i!=null&&i[r])?b.jsx(b.Fragment,{children:i[r]}):b.jsx(b.Fragment,{children:n})),df=Yn((n,i)=>{const{header:r,content:s,footer:a,slots:u,size:c="xs",clickable:f=!1,draggable:p=!1,className:v,severity:m,groupId:w,onDrop:_=()=>{},onDragStart:A=()=>{},id:D,mode:x,orientation:E="horizontal",decorative:R=!1,useSeparator:O=!0,...I}=n,k=Cl(null),M=Jt("Card",{props:{size:c,orientation:E,severity:m}})??{},$=Je(K=>{!p||x!=="kanban"||A({originalEvent:K,draggedGroupId:w,draggedId:D})},[p,x,w,D,A]),W=Je(K=>{!p||x!=="kanban"||_({originalEvent:K,destinationGroupId:w,destinationId:D})},[p,x,w,D,_]),q=Je(()=>({tabIndex:f?0:void 0,role:f?"button":void 0,type:f?"button":void 0,onClick:f?I.onClick:void 0,onKeyDown:f?I.onKeyDown:void 0,onDragStart:$,onDrop:W,onDragOver:K=>K.preventDefault()}),[f,$,W,I]);return us(i,()=>k.current,[]),b.jsxs("div",{...M.root,...I,...q(),className:xn(M.root.className,v),draggable:p,id:D,ref:k,children:[b.jsx(ir,{name:"header",slots:u,children:(r||(u==null?void 0:u.header))&&b.jsx("div",{...M.header,children:r})}),O&&b.jsx(nw,{...M.separator,decorative:R,orientation:E}),b.jsx(ir,{name:"content",slots:u,children:(s||(u==null?void 0:u.content))&&b.jsx("div",{...M.content,children:s})}),b.jsx(ir,{name:"footer",slots:u,children:(a||(u==null?void 0:u.footer))&&b.jsx("div",{...M.footer,children:a})})]})}),hf=ke("Card",Yn((n,i)=>{const{mode:r="container",clickable:s,draggable:a,className:u,id:c,...f}=n,p=()=>b.jsx("div",{className:"flex gap-1 items-center translate-x-8 translate-y-1 !w-0 group-hover:!w-full group-hover:translate-x-2.5 group-hover:translate-y-1 transition-all duration-300 ease-in-out",children:r==="kanban"&&f.menus.map(m=>{const w=sa();return b.jsx(tn,{className:xn("cursor-pointer hover:text-white",u),name:m.icon,severity:m.severity,onClick:_=>{m.command({originalEvent:_,cardId:c,groupId:f.groupId})}},w)})}),v=()=>b.jsx(df,{...f,clickable:s||r==="kanban",content:"Cillum veniam aute elit consectetur officia deserunt sit laborum incididunt in anim ex. Magna nulla mollit ipsum labore incididunt mollit ad laborum velit ea amet pariatur. Ut culpa sunt eiusmod aliquip nulla ut quis est amet eiusmod cillum. Eu amet deserunt velit ad anim occaecat eiusmod.",draggable:a,header:"triggerOnMouseOver",id:c??sa(),mode:r,ref:i});return b.jsx(b.Fragment,{children:r==="kanban"?b.jsx(tw,{alwaysRender:!0,triggerOnMouseOver:!0,content:p(),children:v()}):b.jsx(b.Fragment,{children:v()})})}));df.displayName="BaseCard",hf.displayName="Card";var vo={exports:{}};/**
|
|
55
55
|
* @license
|
|
56
56
|
* Lodash <https://lodash.com/>
|
|
57
57
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
58
58
|
* Released under MIT license <https://lodash.com/license>
|
|
59
59
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
60
60
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
61
|
-
*/vo.exports,function(n,i){(function(){var r,s="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",w=1,C=2,R=4,D=1,x=2,E=1,A=2,O=4,I=8,F=16,M=32,H=64,B=128,K=256,te=512,he=30,fe="...",X=800,Z=16,re=1,de=2,se=3,ce=1/0,oe=9007199254740991,ye=17976931348623157e292,Ne=NaN,Me=4294967295,wt=Me-1,Wt=Me>>>1,Ct=[["ary",B],["bind",E],["bindKey",A],["curry",I],["curryRight",F],["flip",te],["partial",M],["partialRight",H],["rearg",K]],it="[object Arguments]",pt="[object Array]",ee="[object AsyncFunction]",xe="[object Boolean]",Fe="[object Date]",Pe="[object DOMException]",be="[object Error]",Se="[object Function]",ot="[object GeneratorFunction]",Ue="[object Map]",Dt="[object Number]",hn="[object Null]",st="[object Object]",Ir="[object Promise]",Vn="[object Proxy]",Dr="[object RegExp]",St="[object Set]",S="[object String]",L="[object Symbol]",W="[object Undefined]",Y="[object WeakMap]",q="[object WeakSet]",z="[object ArrayBuffer]",J="[object DataView]",Ee="[object Float32Array]",He="[object Float64Array]",et="[object Int8Array]",di="[object Int16Array]",or="[object Int32Array]",sr="[object Uint8Array]",hi="[object Uint8ClampedArray]",Nr="[object Uint16Array]",pi="[object Uint32Array]",yo=/\b__p \+= '';/g,aw=/\b(__p \+=) '' \+/g,lw=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vf=/&(?:amp|lt|gt|quot|#39);/g,mf=/[&<>"']/g,uw=RegExp(vf.source),cw=RegExp(mf.source),fw=/<%-([\s\S]+?)%>/g,dw=/<%([\s\S]+?)%>/g,yf=/<%=([\s\S]+?)%>/g,hw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pw=/^\w*$/,gw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ua=/[\\^$.*+?()[\]{}|]/g,vw=RegExp(ua.source),ca=/^\s+/,mw=/\s/,yw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ww=/\{\n\/\* \[wrapped with (.+)\] \*/,xw=/,? & /,bw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_w=/[()=,{}\[\]\/\s]/,Cw=/\\(\\)?/g,Sw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wf=/\w*$/,Ew=/^[-+]0x[0-9a-f]+$/i,Aw=/^0b[01]+$/i,Rw=/^\[object .+?Constructor\]$/,Pw=/^0o[0-7]+$/i,Ow=/^(?:0|[1-9]\d*)$/,Tw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Iw=/['\n\r\u2028\u2029\\]/g,xo="\\ud800-\\udfff",Dw="\\u0300-\\u036f",Nw="\\ufe20-\\ufe2f",Mw="\\u20d0-\\u20ff",xf=Dw+Nw+Mw,bf="\\u2700-\\u27bf",_f="a-z\\xdf-\\xf6\\xf8-\\xff",Lw="\\xac\\xb1\\xd7\\xf7",Fw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kw="\\u2000-\\u206f",Bw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cf="A-Z\\xc0-\\xd6\\xd8-\\xde",Sf="\\ufe0e\\ufe0f",Ef=Lw+Fw+kw+Bw,fa="['’]",Vw="["+xo+"]",Af="["+Ef+"]",bo="["+xf+"]",Rf="\\d+",Ww="["+bf+"]",Pf="["+_f+"]",Of="[^"+xo+Ef+Rf+bf+_f+Cf+"]",da="\\ud83c[\\udffb-\\udfff]",jw="(?:"+bo+"|"+da+")",Tf="[^"+xo+"]",ha="(?:\\ud83c[\\udde6-\\uddff]){2}",pa="[\\ud800-\\udbff][\\udc00-\\udfff]",Mr="["+Cf+"]",If="\\u200d",Df="(?:"+Pf+"|"+Of+")",Uw="(?:"+Mr+"|"+Of+")",Nf="(?:"+fa+"(?:d|ll|m|re|s|t|ve))?",Mf="(?:"+fa+"(?:D|LL|M|RE|S|T|VE))?",Lf=jw+"?",Ff="["+Sf+"]?",$w="(?:"+If+"(?:"+[Tf,ha,pa].join("|")+")"+Ff+Lf+")*",Hw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kf=Ff+Lf+$w,Kw="(?:"+[Ww,ha,pa].join("|")+")"+kf,qw="(?:"+[Tf+bo+"?",bo,ha,pa,Vw].join("|")+")",Gw=RegExp(fa,"g"),Yw=RegExp(bo,"g"),ga=RegExp(da+"(?="+da+")|"+qw+kf,"g"),Xw=RegExp([Mr+"?"+Pf+"+"+Nf+"(?="+[Af,Mr,"$"].join("|")+")",Uw+"+"+Mf+"(?="+[Af,Mr+Df,"$"].join("|")+")",Mr+"?"+Df+"+"+Nf,Mr+"+"+Mf,zw,Hw,Rf,Kw].join("|"),"g"),Zw=RegExp("["+If+xo+xf+Sf+"]"),Jw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ex=-1,$e={};$e[Ee]=$e[He]=$e[et]=$e[di]=$e[or]=$e[sr]=$e[hi]=$e[Nr]=$e[pi]=!0,$e[it]=$e[pt]=$e[z]=$e[xe]=$e[J]=$e[Fe]=$e[be]=$e[Se]=$e[Ue]=$e[Dt]=$e[st]=$e[Dr]=$e[St]=$e[S]=$e[Y]=!1;var Ve={};Ve[it]=Ve[pt]=Ve[z]=Ve[J]=Ve[xe]=Ve[Fe]=Ve[Ee]=Ve[He]=Ve[et]=Ve[di]=Ve[or]=Ve[Ue]=Ve[Dt]=Ve[st]=Ve[Dr]=Ve[St]=Ve[S]=Ve[L]=Ve[sr]=Ve[hi]=Ve[Nr]=Ve[pi]=!0,Ve[be]=Ve[Se]=Ve[Y]=!1;var tx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nx={"&":"&","<":"<",">":">",'"':""","'":"'"},rx={"&":"&","<":"<",">":">",""":'"',"'":"'"},ix={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ox=parseFloat,sx=parseInt,Bf=typeof Yr=="object"&&Yr&&Yr.Object===Object&&Yr,ax=typeof self=="object"&&self&&self.Object===Object&&self,ct=Bf||ax||Function("return this")(),va=i&&!i.nodeType&&i,ar=va&&!0&&n&&!n.nodeType&&n,Vf=ar&&ar.exports===va,ma=Vf&&Bf.process,jt=function(){try{var T=ar&&ar.require&&ar.require("util").types;return T||ma&&ma.binding&&ma.binding("util")}catch{}}(),Wf=jt&&jt.isArrayBuffer,jf=jt&&jt.isDate,Uf=jt&&jt.isMap,$f=jt&&jt.isRegExp,Hf=jt&&jt.isSet,zf=jt&&jt.isTypedArray;function Nt(T,V,k){switch(k.length){case 0:return T.call(V);case 1:return T.call(V,k[0]);case 2:return T.call(V,k[0],k[1]);case 3:return T.call(V,k[0],k[1],k[2])}return T.apply(V,k)}function lx(T,V,k,Q){for(var pe=-1,Oe=T==null?0:T.length;++pe<Oe;){var nt=T[pe];V(Q,nt,k(nt),T)}return Q}function Ut(T,V){for(var k=-1,Q=T==null?0:T.length;++k<Q&&V(T[k],k,T)!==!1;);return T}function ux(T,V){for(var k=T==null?0:T.length;k--&&V(T[k],k,T)!==!1;);return T}function Kf(T,V){for(var k=-1,Q=T==null?0:T.length;++k<Q;)if(!V(T[k],k,T))return!1;return!0}function Wn(T,V){for(var k=-1,Q=T==null?0:T.length,pe=0,Oe=[];++k<Q;){var nt=T[k];V(nt,k,T)&&(Oe[pe++]=nt)}return Oe}function _o(T,V){var k=T==null?0:T.length;return!!k&&Lr(T,V,0)>-1}function ya(T,V,k){for(var Q=-1,pe=T==null?0:T.length;++Q<pe;)if(k(V,T[Q]))return!0;return!1}function ze(T,V){for(var k=-1,Q=T==null?0:T.length,pe=Array(Q);++k<Q;)pe[k]=V(T[k],k,T);return pe}function jn(T,V){for(var k=-1,Q=V.length,pe=T.length;++k<Q;)T[pe+k]=V[k];return T}function wa(T,V,k,Q){var pe=-1,Oe=T==null?0:T.length;for(Q&&Oe&&(k=T[++pe]);++pe<Oe;)k=V(k,T[pe],pe,T);return k}function cx(T,V,k,Q){var pe=T==null?0:T.length;for(Q&&pe&&(k=T[--pe]);pe--;)k=V(k,T[pe],pe,T);return k}function xa(T,V){for(var k=-1,Q=T==null?0:T.length;++k<Q;)if(V(T[k],k,T))return!0;return!1}var fx=ba("length");function dx(T){return T.split("")}function hx(T){return T.match(bw)||[]}function qf(T,V,k){var Q;return k(T,function(pe,Oe,nt){if(V(pe,Oe,nt))return Q=Oe,!1}),Q}function Co(T,V,k,Q){for(var pe=T.length,Oe=k+(Q?1:-1);Q?Oe--:++Oe<pe;)if(V(T[Oe],Oe,T))return Oe;return-1}function Lr(T,V,k){return V===V?Ex(T,V,k):Co(T,Gf,k)}function px(T,V,k,Q){for(var pe=k-1,Oe=T.length;++pe<Oe;)if(Q(T[pe],V))return pe;return-1}function Gf(T){return T!==T}function Yf(T,V){var k=T==null?0:T.length;return k?Ca(T,V)/k:Ne}function ba(T){return function(V){return V==null?r:V[T]}}function _a(T){return function(V){return T==null?r:T[V]}}function Xf(T,V,k,Q,pe){return pe(T,function(Oe,nt,Be){k=Q?(Q=!1,Oe):V(k,Oe,nt,Be)}),k}function gx(T,V){var k=T.length;for(T.sort(V);k--;)T[k]=T[k].value;return T}function Ca(T,V){for(var k,Q=-1,pe=T.length;++Q<pe;){var Oe=V(T[Q]);Oe!==r&&(k=k===r?Oe:k+Oe)}return k}function Sa(T,V){for(var k=-1,Q=Array(T);++k<T;)Q[k]=V(k);return Q}function vx(T,V){return ze(V,function(k){return[k,T[k]]})}function Zf(T){return T&&T.slice(0,td(T)+1).replace(ca,"")}function Mt(T){return function(V){return T(V)}}function Ea(T,V){return ze(V,function(k){return T[k]})}function gi(T,V){return T.has(V)}function Jf(T,V){for(var k=-1,Q=T.length;++k<Q&&Lr(V,T[k],0)>-1;);return k}function Qf(T,V){for(var k=T.length;k--&&Lr(V,T[k],0)>-1;);return k}function mx(T,V){for(var k=T.length,Q=0;k--;)T[k]===V&&++Q;return Q}var yx=_a(tx),wx=_a(nx);function xx(T){return"\\"+ix[T]}function bx(T,V){return T==null?r:T[V]}function Fr(T){return Zw.test(T)}function _x(T){return Jw.test(T)}function Cx(T){for(var V,k=[];!(V=T.next()).done;)k.push(V.value);return k}function Aa(T){var V=-1,k=Array(T.size);return T.forEach(function(Q,pe){k[++V]=[pe,Q]}),k}function ed(T,V){return function(k){return T(V(k))}}function Un(T,V){for(var k=-1,Q=T.length,pe=0,Oe=[];++k<Q;){var nt=T[k];(nt===V||nt===m)&&(T[k]=m,Oe[pe++]=k)}return Oe}function So(T){var V=-1,k=Array(T.size);return T.forEach(function(Q){k[++V]=Q}),k}function Sx(T){var V=-1,k=Array(T.size);return T.forEach(function(Q){k[++V]=[Q,Q]}),k}function Ex(T,V,k){for(var Q=k-1,pe=T.length;++Q<pe;)if(T[Q]===V)return Q;return-1}function Ax(T,V,k){for(var Q=k+1;Q--;)if(T[Q]===V)return Q;return Q}function kr(T){return Fr(T)?Px(T):fx(T)}function nn(T){return Fr(T)?Ox(T):dx(T)}function td(T){for(var V=T.length;V--&&mw.test(T.charAt(V)););return V}var Rx=_a(rx);function Px(T){for(var V=ga.lastIndex=0;ga.test(T);)++V;return V}function Ox(T){return T.match(ga)||[]}function Tx(T){return T.match(Xw)||[]}var Ix=function T(V){V=V==null?ct:Br.defaults(ct.Object(),V,Br.pick(ct,Qw));var k=V.Array,Q=V.Date,pe=V.Error,Oe=V.Function,nt=V.Math,Be=V.Object,Ra=V.RegExp,Dx=V.String,$t=V.TypeError,Eo=k.prototype,Nx=Oe.prototype,Vr=Be.prototype,Ao=V["__core-js_shared__"],Ro=Nx.toString,Le=Vr.hasOwnProperty,Mx=0,nd=function(){var e=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Po=Vr.toString,Lx=Ro.call(Be),Fx=ct._,kx=Ra("^"+Ro.call(Le).replace(ua,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oo=Vf?V.Buffer:r,$n=V.Symbol,To=V.Uint8Array,rd=Oo?Oo.allocUnsafe:r,Io=ed(Be.getPrototypeOf,Be),id=Be.create,od=Vr.propertyIsEnumerable,Do=Eo.splice,sd=$n?$n.isConcatSpreadable:r,vi=$n?$n.iterator:r,lr=$n?$n.toStringTag:r,No=function(){try{var e=hr(Be,"defineProperty");return e({},"",{}),e}catch{}}(),Bx=V.clearTimeout!==ct.clearTimeout&&V.clearTimeout,Vx=Q&&Q.now!==ct.Date.now&&Q.now,Wx=V.setTimeout!==ct.setTimeout&&V.setTimeout,Mo=nt.ceil,Lo=nt.floor,Pa=Be.getOwnPropertySymbols,jx=Oo?Oo.isBuffer:r,ad=V.isFinite,Ux=Eo.join,$x=ed(Be.keys,Be),rt=nt.max,gt=nt.min,Hx=Q.now,zx=V.parseInt,ld=nt.random,Kx=Eo.reverse,Oa=hr(V,"DataView"),mi=hr(V,"Map"),Ta=hr(V,"Promise"),Wr=hr(V,"Set"),yi=hr(V,"WeakMap"),wi=hr(Be,"create"),Fo=yi&&new yi,jr={},qx=pr(Oa),Gx=pr(mi),Yx=pr(Ta),Xx=pr(Wr),Zx=pr(yi),ko=$n?$n.prototype:r,xi=ko?ko.valueOf:r,ud=ko?ko.toString:r;function h(e){if(Ge(e)&&!ge(e)&&!(e instanceof Ae)){if(e instanceof Ht)return e;if(Le.call(e,"__wrapped__"))return ch(e)}return new Ht(e)}var Ur=function(){function e(){}return function(t){if(!Ke(t))return{};if(id)return id(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Bo(){}function Ht(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:fw,evaluate:dw,interpolate:yf,variable:"",imports:{_:h}},h.prototype=Bo.prototype,h.prototype.constructor=h,Ht.prototype=Ur(Bo.prototype),Ht.prototype.constructor=Ht;function Ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Me,this.__views__=[]}function Jx(){var e=new Ae(this.__wrapped__);return e.__actions__=Et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Et(this.__views__),e}function Qx(){if(this.__filtered__){var e=new Ae(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function e0(){var e=this.__wrapped__.value(),t=this.__dir__,o=ge(e),l=t<0,d=o?e.length:0,g=db(0,d,this.__views__),_=g.start,P=g.end,N=P-_,j=l?P:_-1,U=this.__iteratees__,$=U.length,G=0,ie=gt(N,this.__takeCount__);if(!o||!l&&d==N&&ie==N)return Nd(e,this.__actions__);var le=[];e:for(;N--&&G<ie;){j+=t;for(var me=-1,ue=e[j];++me<$;){var _e=U[me],Re=_e.iteratee,kt=_e.type,_t=Re(ue);if(kt==de)ue=_t;else if(!_t){if(kt==re)continue e;break e}}le[G++]=ue}return le}Ae.prototype=Ur(Bo.prototype),Ae.prototype.constructor=Ae;function ur(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function t0(){this.__data__=wi?wi(null):{},this.size=0}function n0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function r0(e){var t=this.__data__;if(wi){var o=t[e];return o===p?r:o}return Le.call(t,e)?t[e]:r}function i0(e){var t=this.__data__;return wi?t[e]!==r:Le.call(t,e)}function o0(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=wi&&t===r?p:t,this}ur.prototype.clear=t0,ur.prototype.delete=n0,ur.prototype.get=r0,ur.prototype.has=i0,ur.prototype.set=o0;function _n(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function s0(){this.__data__=[],this.size=0}function a0(e){var t=this.__data__,o=Vo(t,e);if(o<0)return!1;var l=t.length-1;return o==l?t.pop():Do.call(t,o,1),--this.size,!0}function l0(e){var t=this.__data__,o=Vo(t,e);return o<0?r:t[o][1]}function u0(e){return Vo(this.__data__,e)>-1}function c0(e,t){var o=this.__data__,l=Vo(o,e);return l<0?(++this.size,o.push([e,t])):o[l][1]=t,this}_n.prototype.clear=s0,_n.prototype.delete=a0,_n.prototype.get=l0,_n.prototype.has=u0,_n.prototype.set=c0;function Cn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function f0(){this.size=0,this.__data__={hash:new ur,map:new(mi||_n),string:new ur}}function d0(e){var t=Zo(this,e).delete(e);return this.size-=t?1:0,t}function h0(e){return Zo(this,e).get(e)}function p0(e){return Zo(this,e).has(e)}function g0(e,t){var o=Zo(this,e),l=o.size;return o.set(e,t),this.size+=o.size==l?0:1,this}Cn.prototype.clear=f0,Cn.prototype.delete=d0,Cn.prototype.get=h0,Cn.prototype.has=p0,Cn.prototype.set=g0;function cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Cn;++t<o;)this.add(e[t])}function v0(e){return this.__data__.set(e,p),this}function m0(e){return this.__data__.has(e)}cr.prototype.add=cr.prototype.push=v0,cr.prototype.has=m0;function rn(e){var t=this.__data__=new _n(e);this.size=t.size}function y0(){this.__data__=new _n,this.size=0}function w0(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function x0(e){return this.__data__.get(e)}function b0(e){return this.__data__.has(e)}function _0(e,t){var o=this.__data__;if(o instanceof _n){var l=o.__data__;if(!mi||l.length<a-1)return l.push([e,t]),this.size=++o.size,this;o=this.__data__=new Cn(l)}return o.set(e,t),this.size=o.size,this}rn.prototype.clear=y0,rn.prototype.delete=w0,rn.prototype.get=x0,rn.prototype.has=b0,rn.prototype.set=_0;function cd(e,t){var o=ge(e),l=!o&&gr(e),d=!o&&!l&&Gn(e),g=!o&&!l&&!d&&Kr(e),_=o||l||d||g,P=_?Sa(e.length,Dx):[],N=P.length;for(var j in e)(t||Le.call(e,j))&&!(_&&(j=="length"||d&&(j=="offset"||j=="parent")||g&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Rn(j,N)))&&P.push(j);return P}function fd(e){var t=e.length;return t?e[ja(0,t-1)]:r}function C0(e,t){return Jo(Et(e),fr(t,0,e.length))}function S0(e){return Jo(Et(e))}function Ia(e,t,o){(o!==r&&!on(e[t],o)||o===r&&!(t in e))&&Sn(e,t,o)}function bi(e,t,o){var l=e[t];(!(Le.call(e,t)&&on(l,o))||o===r&&!(t in e))&&Sn(e,t,o)}function Vo(e,t){for(var o=e.length;o--;)if(on(e[o][0],t))return o;return-1}function E0(e,t,o,l){return Hn(e,function(d,g,_){t(l,d,o(d),_)}),l}function dd(e,t){return e&&gn(t,at(t),e)}function A0(e,t){return e&&gn(t,Rt(t),e)}function Sn(e,t,o){t=="__proto__"&&No?No(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Da(e,t){for(var o=-1,l=t.length,d=k(l),g=e==null;++o<l;)d[o]=g?r:dl(e,t[o]);return d}function fr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function zt(e,t,o,l,d,g){var _,P=t&w,N=t&C,j=t&R;if(o&&(_=d?o(e,l,d,g):o(e)),_!==r)return _;if(!Ke(e))return e;var U=ge(e);if(U){if(_=pb(e),!P)return Et(e,_)}else{var $=vt(e),G=$==Se||$==ot;if(Gn(e))return Fd(e,P);if($==st||$==it||G&&!d){if(_=N||G?{}:th(e),!P)return N?rb(e,A0(_,e)):nb(e,dd(_,e))}else{if(!Ve[$])return d?e:{};_=gb(e,$,P)}}g||(g=new rn);var ie=g.get(e);if(ie)return ie;g.set(e,_),Th(e)?e.forEach(function(ue){_.add(zt(ue,t,o,ue,e,g))}):Ph(e)&&e.forEach(function(ue,_e){_.set(_e,zt(ue,t,o,_e,e,g))});var le=j?N?Ja:Za:N?Rt:at,me=U?r:le(e);return Ut(me||e,function(ue,_e){me&&(_e=ue,ue=e[_e]),bi(_,_e,zt(ue,t,o,_e,e,g))}),_}function R0(e){var t=at(e);return function(o){return hd(o,e,t)}}function hd(e,t,o){var l=o.length;if(e==null)return!l;for(e=Be(e);l--;){var d=o[l],g=t[d],_=e[d];if(_===r&&!(d in e)||!g(_))return!1}return!0}function pd(e,t,o){if(typeof e!="function")throw new $t(c);return Pi(function(){e.apply(r,o)},t)}function _i(e,t,o,l){var d=-1,g=_o,_=!0,P=e.length,N=[],j=t.length;if(!P)return N;o&&(t=ze(t,Mt(o))),l?(g=ya,_=!1):t.length>=a&&(g=gi,_=!1,t=new cr(t));e:for(;++d<P;){var U=e[d],$=o==null?U:o(U);if(U=l||U!==0?U:0,_&&$===$){for(var G=j;G--;)if(t[G]===$)continue e;N.push(U)}else g(t,$,l)||N.push(U)}return N}var Hn=jd(pn),gd=jd(Ma,!0);function P0(e,t){var o=!0;return Hn(e,function(l,d,g){return o=!!t(l,d,g),o}),o}function Wo(e,t,o){for(var l=-1,d=e.length;++l<d;){var g=e[l],_=t(g);if(_!=null&&(P===r?_===_&&!Ft(_):o(_,P)))var P=_,N=g}return N}function O0(e,t,o,l){var d=e.length;for(o=ve(o),o<0&&(o=-o>d?0:d+o),l=l===r||l>d?d:ve(l),l<0&&(l+=d),l=o>l?0:Dh(l);o<l;)e[o++]=t;return e}function vd(e,t){var o=[];return Hn(e,function(l,d,g){t(l,d,g)&&o.push(l)}),o}function ft(e,t,o,l,d){var g=-1,_=e.length;for(o||(o=mb),d||(d=[]);++g<_;){var P=e[g];t>0&&o(P)?t>1?ft(P,t-1,o,l,d):jn(d,P):l||(d[d.length]=P)}return d}var Na=Ud(),md=Ud(!0);function pn(e,t){return e&&Na(e,t,at)}function Ma(e,t){return e&&md(e,t,at)}function jo(e,t){return Wn(t,function(o){return Pn(e[o])})}function dr(e,t){t=Kn(t,e);for(var o=0,l=t.length;e!=null&&o<l;)e=e[vn(t[o++])];return o&&o==l?e:r}function yd(e,t,o){var l=t(e);return ge(e)?l:jn(l,o(e))}function xt(e){return e==null?e===r?W:hn:lr&&lr in Be(e)?fb(e):Sb(e)}function La(e,t){return e>t}function T0(e,t){return e!=null&&Le.call(e,t)}function I0(e,t){return e!=null&&t in Be(e)}function D0(e,t,o){return e>=gt(t,o)&&e<rt(t,o)}function Fa(e,t,o){for(var l=o?ya:_o,d=e[0].length,g=e.length,_=g,P=k(g),N=1/0,j=[];_--;){var U=e[_];_&&t&&(U=ze(U,Mt(t))),N=gt(U.length,N),P[_]=!o&&(t||d>=120&&U.length>=120)?new cr(_&&U):r}U=e[0];var $=-1,G=P[0];e:for(;++$<d&&j.length<N;){var ie=U[$],le=t?t(ie):ie;if(ie=o||ie!==0?ie:0,!(G?gi(G,le):l(j,le,o))){for(_=g;--_;){var me=P[_];if(!(me?gi(me,le):l(e[_],le,o)))continue e}G&&G.push(le),j.push(ie)}}return j}function N0(e,t,o,l){return pn(e,function(d,g,_){t(l,o(d),g,_)}),l}function Ci(e,t,o){t=Kn(t,e),e=oh(e,t);var l=e==null?e:e[vn(qt(t))];return l==null?r:Nt(l,e,o)}function wd(e){return Ge(e)&&xt(e)==it}function M0(e){return Ge(e)&&xt(e)==z}function L0(e){return Ge(e)&&xt(e)==Fe}function Si(e,t,o,l,d){return e===t?!0:e==null||t==null||!Ge(e)&&!Ge(t)?e!==e&&t!==t:F0(e,t,o,l,Si,d)}function F0(e,t,o,l,d,g){var _=ge(e),P=ge(t),N=_?pt:vt(e),j=P?pt:vt(t);N=N==it?st:N,j=j==it?st:j;var U=N==st,$=j==st,G=N==j;if(G&&Gn(e)){if(!Gn(t))return!1;_=!0,U=!1}if(G&&!U)return g||(g=new rn),_||Kr(e)?Jd(e,t,o,l,d,g):ub(e,t,N,o,l,d,g);if(!(o&D)){var ie=U&&Le.call(e,"__wrapped__"),le=$&&Le.call(t,"__wrapped__");if(ie||le){var me=ie?e.value():e,ue=le?t.value():t;return g||(g=new rn),d(me,ue,o,l,g)}}return G?(g||(g=new rn),cb(e,t,o,l,d,g)):!1}function k0(e){return Ge(e)&&vt(e)==Ue}function ka(e,t,o,l){var d=o.length,g=d,_=!l;if(e==null)return!g;for(e=Be(e);d--;){var P=o[d];if(_&&P[2]?P[1]!==e[P[0]]:!(P[0]in e))return!1}for(;++d<g;){P=o[d];var N=P[0],j=e[N],U=P[1];if(_&&P[2]){if(j===r&&!(N in e))return!1}else{var $=new rn;if(l)var G=l(j,U,N,e,t,$);if(!(G===r?Si(U,j,D|x,l,$):G))return!1}}return!0}function xd(e){if(!Ke(e)||wb(e))return!1;var t=Pn(e)?kx:Rw;return t.test(pr(e))}function B0(e){return Ge(e)&&xt(e)==Dr}function V0(e){return Ge(e)&&vt(e)==St}function W0(e){return Ge(e)&&is(e.length)&&!!$e[xt(e)]}function bd(e){return typeof e=="function"?e:e==null?Pt:typeof e=="object"?ge(e)?Sd(e[0],e[1]):Cd(e):$h(e)}function Ba(e){if(!Ri(e))return $x(e);var t=[];for(var o in Be(e))Le.call(e,o)&&o!="constructor"&&t.push(o);return t}function j0(e){if(!Ke(e))return Cb(e);var t=Ri(e),o=[];for(var l in e)l=="constructor"&&(t||!Le.call(e,l))||o.push(l);return o}function Va(e,t){return e<t}function _d(e,t){var o=-1,l=At(e)?k(e.length):[];return Hn(e,function(d,g,_){l[++o]=t(d,g,_)}),l}function Cd(e){var t=el(e);return t.length==1&&t[0][2]?rh(t[0][0],t[0][1]):function(o){return o===e||ka(o,e,t)}}function Sd(e,t){return nl(e)&&nh(t)?rh(vn(e),t):function(o){var l=dl(o,e);return l===r&&l===t?hl(o,e):Si(t,l,D|x)}}function Uo(e,t,o,l,d){e!==t&&Na(t,function(g,_){if(d||(d=new rn),Ke(g))U0(e,t,_,o,Uo,l,d);else{var P=l?l(il(e,_),g,_+"",e,t,d):r;P===r&&(P=g),Ia(e,_,P)}},Rt)}function U0(e,t,o,l,d,g,_){var P=il(e,o),N=il(t,o),j=_.get(N);if(j){Ia(e,o,j);return}var U=g?g(P,N,o+"",e,t,_):r,$=U===r;if($){var G=ge(N),ie=!G&&Gn(N),le=!G&&!ie&&Kr(N);U=N,G||ie||le?ge(P)?U=P:Xe(P)?U=Et(P):ie?($=!1,U=Fd(N,!0)):le?($=!1,U=kd(N,!0)):U=[]:Oi(N)||gr(N)?(U=P,gr(P)?U=Nh(P):(!Ke(P)||Pn(P))&&(U=th(N))):$=!1}$&&(_.set(N,U),d(U,N,l,g,_),_.delete(N)),Ia(e,o,U)}function Ed(e,t){var o=e.length;if(o)return t+=t<0?o:0,Rn(t,o)?e[t]:r}function Ad(e,t,o){t.length?t=ze(t,function(g){return ge(g)?function(_){return dr(_,g.length===1?g[0]:g)}:g}):t=[Pt];var l=-1;t=ze(t,Mt(ae()));var d=_d(e,function(g,_,P){var N=ze(t,function(j){return j(g)});return{criteria:N,index:++l,value:g}});return gx(d,function(g,_){return tb(g,_,o)})}function $0(e,t){return Rd(e,t,function(o,l){return hl(e,l)})}function Rd(e,t,o){for(var l=-1,d=t.length,g={};++l<d;){var _=t[l],P=dr(e,_);o(P,_)&&Ei(g,Kn(_,e),P)}return g}function H0(e){return function(t){return dr(t,e)}}function Wa(e,t,o,l){var d=l?px:Lr,g=-1,_=t.length,P=e;for(e===t&&(t=Et(t)),o&&(P=ze(e,Mt(o)));++g<_;)for(var N=0,j=t[g],U=o?o(j):j;(N=d(P,U,N,l))>-1;)P!==e&&Do.call(P,N,1),Do.call(e,N,1);return e}function Pd(e,t){for(var o=e?t.length:0,l=o-1;o--;){var d=t[o];if(o==l||d!==g){var g=d;Rn(d)?Do.call(e,d,1):Ha(e,d)}}return e}function ja(e,t){return e+Lo(ld()*(t-e+1))}function z0(e,t,o,l){for(var d=-1,g=rt(Mo((t-e)/(o||1)),0),_=k(g);g--;)_[l?g:++d]=e,e+=o;return _}function Ua(e,t){var o="";if(!e||t<1||t>oe)return o;do t%2&&(o+=e),t=Lo(t/2),t&&(e+=e);while(t);return o}function we(e,t){return ol(ih(e,t,Pt),e+"")}function K0(e){return fd(qr(e))}function q0(e,t){var o=qr(e);return Jo(o,fr(t,0,o.length))}function Ei(e,t,o,l){if(!Ke(e))return e;t=Kn(t,e);for(var d=-1,g=t.length,_=g-1,P=e;P!=null&&++d<g;){var N=vn(t[d]),j=o;if(N==="__proto__"||N==="constructor"||N==="prototype")return e;if(d!=_){var U=P[N];j=l?l(U,N,P):r,j===r&&(j=Ke(U)?U:Rn(t[d+1])?[]:{})}bi(P,N,j),P=P[N]}return e}var Od=Fo?function(e,t){return Fo.set(e,t),e}:Pt,G0=No?function(e,t){return No(e,"toString",{configurable:!0,enumerable:!1,value:gl(t),writable:!0})}:Pt;function Y0(e){return Jo(qr(e))}function Kt(e,t,o){var l=-1,d=e.length;t<0&&(t=-t>d?0:d+t),o=o>d?d:o,o<0&&(o+=d),d=t>o?0:o-t>>>0,t>>>=0;for(var g=k(d);++l<d;)g[l]=e[l+t];return g}function X0(e,t){var o;return Hn(e,function(l,d,g){return o=t(l,d,g),!o}),!!o}function $o(e,t,o){var l=0,d=e==null?l:e.length;if(typeof t=="number"&&t===t&&d<=Wt){for(;l<d;){var g=l+d>>>1,_=e[g];_!==null&&!Ft(_)&&(o?_<=t:_<t)?l=g+1:d=g}return d}return $a(e,t,Pt,o)}function $a(e,t,o,l){var d=0,g=e==null?0:e.length;if(g===0)return 0;t=o(t);for(var _=t!==t,P=t===null,N=Ft(t),j=t===r;d<g;){var U=Lo((d+g)/2),$=o(e[U]),G=$!==r,ie=$===null,le=$===$,me=Ft($);if(_)var ue=l||le;else j?ue=le&&(l||G):P?ue=le&&G&&(l||!ie):N?ue=le&&G&&!ie&&(l||!me):ie||me?ue=!1:ue=l?$<=t:$<t;ue?d=U+1:g=U}return gt(g,wt)}function Td(e,t){for(var o=-1,l=e.length,d=0,g=[];++o<l;){var _=e[o],P=t?t(_):_;if(!o||!on(P,N)){var N=P;g[d++]=_===0?0:_}}return g}function Id(e){return typeof e=="number"?e:Ft(e)?Ne:+e}function Lt(e){if(typeof e=="string")return e;if(ge(e))return ze(e,Lt)+"";if(Ft(e))return ud?ud.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function zn(e,t,o){var l=-1,d=_o,g=e.length,_=!0,P=[],N=P;if(o)_=!1,d=ya;else if(g>=a){var j=t?null:ab(e);if(j)return So(j);_=!1,d=gi,N=new cr}else N=t?[]:P;e:for(;++l<g;){var U=e[l],$=t?t(U):U;if(U=o||U!==0?U:0,_&&$===$){for(var G=N.length;G--;)if(N[G]===$)continue e;t&&N.push($),P.push(U)}else d(N,$,o)||(N!==P&&N.push($),P.push(U))}return P}function Ha(e,t){return t=Kn(t,e),e=oh(e,t),e==null||delete e[vn(qt(t))]}function Dd(e,t,o,l){return Ei(e,t,o(dr(e,t)),l)}function Ho(e,t,o,l){for(var d=e.length,g=l?d:-1;(l?g--:++g<d)&&t(e[g],g,e););return o?Kt(e,l?0:g,l?g+1:d):Kt(e,l?g+1:0,l?d:g)}function Nd(e,t){var o=e;return o instanceof Ae&&(o=o.value()),wa(t,function(l,d){return d.func.apply(d.thisArg,jn([l],d.args))},o)}function za(e,t,o){var l=e.length;if(l<2)return l?zn(e[0]):[];for(var d=-1,g=k(l);++d<l;)for(var _=e[d],P=-1;++P<l;)P!=d&&(g[d]=_i(g[d]||_,e[P],t,o));return zn(ft(g,1),t,o)}function Md(e,t,o){for(var l=-1,d=e.length,g=t.length,_={};++l<d;){var P=l<g?t[l]:r;o(_,e[l],P)}return _}function Ka(e){return Xe(e)?e:[]}function qa(e){return typeof e=="function"?e:Pt}function Kn(e,t){return ge(e)?e:nl(e,t)?[e]:uh(De(e))}var Z0=we;function qn(e,t,o){var l=e.length;return o=o===r?l:o,!t&&o>=l?e:Kt(e,t,o)}var Ld=Bx||function(e){return ct.clearTimeout(e)};function Fd(e,t){if(t)return e.slice();var o=e.length,l=rd?rd(o):new e.constructor(o);return e.copy(l),l}function Ga(e){var t=new e.constructor(e.byteLength);return new To(t).set(new To(e)),t}function J0(e,t){var o=t?Ga(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Q0(e){var t=new e.constructor(e.source,wf.exec(e));return t.lastIndex=e.lastIndex,t}function eb(e){return xi?Be(xi.call(e)):{}}function kd(e,t){var o=t?Ga(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Bd(e,t){if(e!==t){var o=e!==r,l=e===null,d=e===e,g=Ft(e),_=t!==r,P=t===null,N=t===t,j=Ft(t);if(!P&&!j&&!g&&e>t||g&&_&&N&&!P&&!j||l&&_&&N||!o&&N||!d)return 1;if(!l&&!g&&!j&&e<t||j&&o&&d&&!l&&!g||P&&o&&d||!_&&d||!N)return-1}return 0}function tb(e,t,o){for(var l=-1,d=e.criteria,g=t.criteria,_=d.length,P=o.length;++l<_;){var N=Bd(d[l],g[l]);if(N){if(l>=P)return N;var j=o[l];return N*(j=="desc"?-1:1)}}return e.index-t.index}function Vd(e,t,o,l){for(var d=-1,g=e.length,_=o.length,P=-1,N=t.length,j=rt(g-_,0),U=k(N+j),$=!l;++P<N;)U[P]=t[P];for(;++d<_;)($||d<g)&&(U[o[d]]=e[d]);for(;j--;)U[P++]=e[d++];return U}function Wd(e,t,o,l){for(var d=-1,g=e.length,_=-1,P=o.length,N=-1,j=t.length,U=rt(g-P,0),$=k(U+j),G=!l;++d<U;)$[d]=e[d];for(var ie=d;++N<j;)$[ie+N]=t[N];for(;++_<P;)(G||d<g)&&($[ie+o[_]]=e[d++]);return $}function Et(e,t){var o=-1,l=e.length;for(t||(t=k(l));++o<l;)t[o]=e[o];return t}function gn(e,t,o,l){var d=!o;o||(o={});for(var g=-1,_=t.length;++g<_;){var P=t[g],N=l?l(o[P],e[P],P,o,e):r;N===r&&(N=e[P]),d?Sn(o,P,N):bi(o,P,N)}return o}function nb(e,t){return gn(e,tl(e),t)}function rb(e,t){return gn(e,Qd(e),t)}function zo(e,t){return function(o,l){var d=ge(o)?lx:E0,g=t?t():{};return d(o,e,ae(l,2),g)}}function $r(e){return we(function(t,o){var l=-1,d=o.length,g=d>1?o[d-1]:r,_=d>2?o[2]:r;for(g=e.length>3&&typeof g=="function"?(d--,g):r,_&&bt(o[0],o[1],_)&&(g=d<3?r:g,d=1),t=Be(t);++l<d;){var P=o[l];P&&e(t,P,l,g)}return t})}function jd(e,t){return function(o,l){if(o==null)return o;if(!At(o))return e(o,l);for(var d=o.length,g=t?d:-1,_=Be(o);(t?g--:++g<d)&&l(_[g],g,_)!==!1;);return o}}function Ud(e){return function(t,o,l){for(var d=-1,g=Be(t),_=l(t),P=_.length;P--;){var N=_[e?P:++d];if(o(g[N],N,g)===!1)break}return t}}function ib(e,t,o){var l=t&E,d=Ai(e);function g(){var _=this&&this!==ct&&this instanceof g?d:e;return _.apply(l?o:this,arguments)}return g}function $d(e){return function(t){t=De(t);var o=Fr(t)?nn(t):r,l=o?o[0]:t.charAt(0),d=o?qn(o,1).join(""):t.slice(1);return l[e]()+d}}function Hr(e){return function(t){return wa(jh(Wh(t).replace(Gw,"")),e,"")}}function Ai(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Ur(e.prototype),l=e.apply(o,t);return Ke(l)?l:o}}function ob(e,t,o){var l=Ai(e);function d(){for(var g=arguments.length,_=k(g),P=g,N=zr(d);P--;)_[P]=arguments[P];var j=g<3&&_[0]!==N&&_[g-1]!==N?[]:Un(_,N);if(g-=j.length,g<o)return Gd(e,t,Ko,d.placeholder,r,_,j,r,r,o-g);var U=this&&this!==ct&&this instanceof d?l:e;return Nt(U,this,_)}return d}function Hd(e){return function(t,o,l){var d=Be(t);if(!At(t)){var g=ae(o,3);t=at(t),o=function(P){return g(d[P],P,d)}}var _=e(t,o,l);return _>-1?d[g?t[_]:_]:r}}function zd(e){return An(function(t){var o=t.length,l=o,d=Ht.prototype.thru;for(e&&t.reverse();l--;){var g=t[l];if(typeof g!="function")throw new $t(c);if(d&&!_&&Xo(g)=="wrapper")var _=new Ht([],!0)}for(l=_?l:o;++l<o;){g=t[l];var P=Xo(g),N=P=="wrapper"?Qa(g):r;N&&rl(N[0])&&N[1]==(B|I|M|K)&&!N[4].length&&N[9]==1?_=_[Xo(N[0])].apply(_,N[3]):_=g.length==1&&rl(g)?_[P]():_.thru(g)}return function(){var j=arguments,U=j[0];if(_&&j.length==1&&ge(U))return _.plant(U).value();for(var $=0,G=o?t[$].apply(this,j):U;++$<o;)G=t[$].call(this,G);return G}})}function Ko(e,t,o,l,d,g,_,P,N,j){var U=t&B,$=t&E,G=t&A,ie=t&(I|F),le=t&te,me=G?r:Ai(e);function ue(){for(var _e=arguments.length,Re=k(_e),kt=_e;kt--;)Re[kt]=arguments[kt];if(ie)var _t=zr(ue),Bt=mx(Re,_t);if(l&&(Re=Vd(Re,l,d,ie)),g&&(Re=Wd(Re,g,_,ie)),_e-=Bt,ie&&_e<j){var Ze=Un(Re,_t);return Gd(e,t,Ko,ue.placeholder,o,Re,Ze,P,N,j-_e)}var sn=$?o:this,Tn=G?sn[e]:e;return _e=Re.length,P?Re=Eb(Re,P):le&&_e>1&&Re.reverse(),U&&N<_e&&(Re.length=N),this&&this!==ct&&this instanceof ue&&(Tn=me||Ai(Tn)),Tn.apply(sn,Re)}return ue}function Kd(e,t){return function(o,l){return N0(o,e,t(l),{})}}function qo(e,t){return function(o,l){var d;if(o===r&&l===r)return t;if(o!==r&&(d=o),l!==r){if(d===r)return l;typeof o=="string"||typeof l=="string"?(o=Lt(o),l=Lt(l)):(o=Id(o),l=Id(l)),d=e(o,l)}return d}}function Ya(e){return An(function(t){return t=ze(t,Mt(ae())),we(function(o){var l=this;return e(t,function(d){return Nt(d,l,o)})})})}function Go(e,t){t=t===r?" ":Lt(t);var o=t.length;if(o<2)return o?Ua(t,e):t;var l=Ua(t,Mo(e/kr(t)));return Fr(t)?qn(nn(l),0,e).join(""):l.slice(0,e)}function sb(e,t,o,l){var d=t&E,g=Ai(e);function _(){for(var P=-1,N=arguments.length,j=-1,U=l.length,$=k(U+N),G=this&&this!==ct&&this instanceof _?g:e;++j<U;)$[j]=l[j];for(;N--;)$[j++]=arguments[++P];return Nt(G,d?o:this,$)}return _}function qd(e){return function(t,o,l){return l&&typeof l!="number"&&bt(t,o,l)&&(o=l=r),t=On(t),o===r?(o=t,t=0):o=On(o),l=l===r?t<o?1:-1:On(l),z0(t,o,l,e)}}function Yo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Gt(t),o=Gt(o)),e(t,o)}}function Gd(e,t,o,l,d,g,_,P,N,j){var U=t&I,$=U?_:r,G=U?r:_,ie=U?g:r,le=U?r:g;t|=U?M:H,t&=~(U?H:M),t&O||(t&=-4);var me=[e,t,d,ie,$,le,G,P,N,j],ue=o.apply(r,me);return rl(e)&&sh(ue,me),ue.placeholder=l,ah(ue,e,t)}function Xa(e){var t=nt[e];return function(o,l){if(o=Gt(o),l=l==null?0:gt(ve(l),292),l&&ad(o)){var d=(De(o)+"e").split("e"),g=t(d[0]+"e"+(+d[1]+l));return d=(De(g)+"e").split("e"),+(d[0]+"e"+(+d[1]-l))}return t(o)}}var ab=Wr&&1/So(new Wr([,-0]))[1]==ce?function(e){return new Wr(e)}:yl;function Yd(e){return function(t){var o=vt(t);return o==Ue?Aa(t):o==St?Sx(t):vx(t,e(t))}}function En(e,t,o,l,d,g,_,P){var N=t&A;if(!N&&typeof e!="function")throw new $t(c);var j=l?l.length:0;if(j||(t&=-97,l=d=r),_=_===r?_:rt(ve(_),0),P=P===r?P:ve(P),j-=d?d.length:0,t&H){var U=l,$=d;l=d=r}var G=N?r:Qa(e),ie=[e,t,o,l,d,U,$,g,_,P];if(G&&_b(ie,G),e=ie[0],t=ie[1],o=ie[2],l=ie[3],d=ie[4],P=ie[9]=ie[9]===r?N?0:e.length:rt(ie[9]-j,0),!P&&t&(I|F)&&(t&=-25),!t||t==E)var le=ib(e,t,o);else t==I||t==F?le=ob(e,t,P):(t==M||t==(E|M))&&!d.length?le=sb(e,t,o,l):le=Ko.apply(r,ie);var me=G?Od:sh;return ah(me(le,ie),e,t)}function Xd(e,t,o,l){return e===r||on(e,Vr[o])&&!Le.call(l,o)?t:e}function Zd(e,t,o,l,d,g){return Ke(e)&&Ke(t)&&(g.set(t,e),Uo(e,t,r,Zd,g),g.delete(t)),e}function lb(e){return Oi(e)?r:e}function Jd(e,t,o,l,d,g){var _=o&D,P=e.length,N=t.length;if(P!=N&&!(_&&N>P))return!1;var j=g.get(e),U=g.get(t);if(j&&U)return j==t&&U==e;var $=-1,G=!0,ie=o&x?new cr:r;for(g.set(e,t),g.set(t,e);++$<P;){var le=e[$],me=t[$];if(l)var ue=_?l(me,le,$,t,e,g):l(le,me,$,e,t,g);if(ue!==r){if(ue)continue;G=!1;break}if(ie){if(!xa(t,function(_e,Re){if(!gi(ie,Re)&&(le===_e||d(le,_e,o,l,g)))return ie.push(Re)})){G=!1;break}}else if(!(le===me||d(le,me,o,l,g))){G=!1;break}}return g.delete(e),g.delete(t),G}function ub(e,t,o,l,d,g,_){switch(o){case J:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z:return!(e.byteLength!=t.byteLength||!g(new To(e),new To(t)));case xe:case Fe:case Dt:return on(+e,+t);case be:return e.name==t.name&&e.message==t.message;case Dr:case S:return e==t+"";case Ue:var P=Aa;case St:var N=l&D;if(P||(P=So),e.size!=t.size&&!N)return!1;var j=_.get(e);if(j)return j==t;l|=x,_.set(e,t);var U=Jd(P(e),P(t),l,d,g,_);return _.delete(e),U;case L:if(xi)return xi.call(e)==xi.call(t)}return!1}function cb(e,t,o,l,d,g){var _=o&D,P=Za(e),N=P.length,j=Za(t),U=j.length;if(N!=U&&!_)return!1;for(var $=N;$--;){var G=P[$];if(!(_?G in t:Le.call(t,G)))return!1}var ie=g.get(e),le=g.get(t);if(ie&&le)return ie==t&&le==e;var me=!0;g.set(e,t),g.set(t,e);for(var ue=_;++$<N;){G=P[$];var _e=e[G],Re=t[G];if(l)var kt=_?l(Re,_e,G,t,e,g):l(_e,Re,G,e,t,g);if(!(kt===r?_e===Re||d(_e,Re,o,l,g):kt)){me=!1;break}ue||(ue=G=="constructor")}if(me&&!ue){var _t=e.constructor,Bt=t.constructor;_t!=Bt&&"constructor"in e&&"constructor"in t&&!(typeof _t=="function"&&_t instanceof _t&&typeof Bt=="function"&&Bt instanceof Bt)&&(me=!1)}return g.delete(e),g.delete(t),me}function An(e){return ol(ih(e,r,hh),e+"")}function Za(e){return yd(e,at,tl)}function Ja(e){return yd(e,Rt,Qd)}var Qa=Fo?function(e){return Fo.get(e)}:yl;function Xo(e){for(var t=e.name+"",o=jr[t],l=Le.call(jr,t)?o.length:0;l--;){var d=o[l],g=d.func;if(g==null||g==e)return d.name}return t}function zr(e){var t=Le.call(h,"placeholder")?h:e;return t.placeholder}function ae(){var e=h.iteratee||vl;return e=e===vl?bd:e,arguments.length?e(arguments[0],arguments[1]):e}function Zo(e,t){var o=e.__data__;return yb(t)?o[typeof t=="string"?"string":"hash"]:o.map}function el(e){for(var t=at(e),o=t.length;o--;){var l=t[o],d=e[l];t[o]=[l,d,nh(d)]}return t}function hr(e,t){var o=bx(e,t);return xd(o)?o:r}function fb(e){var t=Le.call(e,lr),o=e[lr];try{e[lr]=r;var l=!0}catch{}var d=Po.call(e);return l&&(t?e[lr]=o:delete e[lr]),d}var tl=Pa?function(e){return e==null?[]:(e=Be(e),Wn(Pa(e),function(t){return od.call(e,t)}))}:wl,Qd=Pa?function(e){for(var t=[];e;)jn(t,tl(e)),e=Io(e);return t}:wl,vt=xt;(Oa&&vt(new Oa(new ArrayBuffer(1)))!=J||mi&&vt(new mi)!=Ue||Ta&&vt(Ta.resolve())!=Ir||Wr&&vt(new Wr)!=St||yi&&vt(new yi)!=Y)&&(vt=function(e){var t=xt(e),o=t==st?e.constructor:r,l=o?pr(o):"";if(l)switch(l){case qx:return J;case Gx:return Ue;case Yx:return Ir;case Xx:return St;case Zx:return Y}return t});function db(e,t,o){for(var l=-1,d=o.length;++l<d;){var g=o[l],_=g.size;switch(g.type){case"drop":e+=_;break;case"dropRight":t-=_;break;case"take":t=gt(t,e+_);break;case"takeRight":e=rt(e,t-_);break}}return{start:e,end:t}}function hb(e){var t=e.match(ww);return t?t[1].split(xw):[]}function eh(e,t,o){t=Kn(t,e);for(var l=-1,d=t.length,g=!1;++l<d;){var _=vn(t[l]);if(!(g=e!=null&&o(e,_)))break;e=e[_]}return g||++l!=d?g:(d=e==null?0:e.length,!!d&&is(d)&&Rn(_,d)&&(ge(e)||gr(e)))}function pb(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Le.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function th(e){return typeof e.constructor=="function"&&!Ri(e)?Ur(Io(e)):{}}function gb(e,t,o){var l=e.constructor;switch(t){case z:return Ga(e);case xe:case Fe:return new l(+e);case J:return J0(e,o);case Ee:case He:case et:case di:case or:case sr:case hi:case Nr:case pi:return kd(e,o);case Ue:return new l;case Dt:case S:return new l(e);case Dr:return Q0(e);case St:return new l;case L:return eb(e)}}function vb(e,t){var o=t.length;if(!o)return e;var l=o-1;return t[l]=(o>1?"& ":"")+t[l],t=t.join(o>2?", ":" "),e.replace(yw,`{
|
|
61
|
+
*/vo.exports,function(n,i){(function(){var r,s="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",w=1,_=2,A=4,D=1,x=2,E=1,R=2,O=4,I=8,k=16,M=32,$=64,W=128,q=256,K=512,se=30,fe="...",Z=800,J=16,re=1,he=2,ae=3,de=1/0,oe=9007199254740991,ye=17976931348623157e292,Ne=NaN,Me=4294967295,wt=Me-1,Vt=Me>>>1,Ct=[["ary",W],["bind",E],["bindKey",R],["curry",I],["curryRight",k],["flip",K],["partial",M],["partialRight",$],["rearg",q]],it="[object Arguments]",pt="[object Array]",te="[object AsyncFunction]",xe="[object Boolean]",Fe="[object Date]",Pe="[object DOMException]",be="[object Error]",Se="[object Function]",ot="[object GeneratorFunction]",Ue="[object Map]",Dt="[object Number]",hn="[object Null]",st="[object Object]",Ir="[object Promise]",Vn="[object Proxy]",Dr="[object RegExp]",St="[object Set]",S="[object String]",L="[object Symbol]",V="[object Undefined]",X="[object WeakMap]",G="[object WeakSet]",z="[object ArrayBuffer]",Q="[object DataView]",Ee="[object Float32Array]",He="[object Float64Array]",et="[object Int8Array]",di="[object Int16Array]",or="[object Int32Array]",sr="[object Uint8Array]",hi="[object Uint8ClampedArray]",Nr="[object Uint16Array]",pi="[object Uint32Array]",yo=/\b__p \+= '';/g,aw=/\b(__p \+=) '' \+/g,lw=/(__e\(.*?\)|\b__t\)) \+\n'';/g,vf=/&(?:amp|lt|gt|quot|#39);/g,mf=/[&<>"']/g,uw=RegExp(vf.source),cw=RegExp(mf.source),fw=/<%-([\s\S]+?)%>/g,dw=/<%([\s\S]+?)%>/g,yf=/<%=([\s\S]+?)%>/g,hw=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pw=/^\w*$/,gw=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ca=/[\\^$.*+?()[\]{}|]/g,vw=RegExp(ca.source),fa=/^\s+/,mw=/\s/,yw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ww=/\{\n\/\* \[wrapped with (.+)\] \*/,xw=/,? & /,bw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,_w=/[()=,{}\[\]\/\s]/,Cw=/\\(\\)?/g,Sw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wf=/\w*$/,Ew=/^[-+]0x[0-9a-f]+$/i,Aw=/^0b[01]+$/i,Rw=/^\[object .+?Constructor\]$/,Pw=/^0o[0-7]+$/i,Ow=/^(?:0|[1-9]\d*)$/,Tw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wo=/($^)/,Iw=/['\n\r\u2028\u2029\\]/g,xo="\\ud800-\\udfff",Dw="\\u0300-\\u036f",Nw="\\ufe20-\\ufe2f",Mw="\\u20d0-\\u20ff",xf=Dw+Nw+Mw,bf="\\u2700-\\u27bf",_f="a-z\\xdf-\\xf6\\xf8-\\xff",Lw="\\xac\\xb1\\xd7\\xf7",Fw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",kw="\\u2000-\\u206f",Bw=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cf="A-Z\\xc0-\\xd6\\xd8-\\xde",Sf="\\ufe0e\\ufe0f",Ef=Lw+Fw+kw+Bw,da="['’]",Vw="["+xo+"]",Af="["+Ef+"]",bo="["+xf+"]",Rf="\\d+",Ww="["+bf+"]",Pf="["+_f+"]",Of="[^"+xo+Ef+Rf+bf+_f+Cf+"]",ha="\\ud83c[\\udffb-\\udfff]",jw="(?:"+bo+"|"+ha+")",Tf="[^"+xo+"]",pa="(?:\\ud83c[\\udde6-\\uddff]){2}",ga="[\\ud800-\\udbff][\\udc00-\\udfff]",Mr="["+Cf+"]",If="\\u200d",Df="(?:"+Pf+"|"+Of+")",Uw="(?:"+Mr+"|"+Of+")",Nf="(?:"+da+"(?:d|ll|m|re|s|t|ve))?",Mf="(?:"+da+"(?:D|LL|M|RE|S|T|VE))?",Lf=jw+"?",Ff="["+Sf+"]?",$w="(?:"+If+"(?:"+[Tf,pa,ga].join("|")+")"+Ff+Lf+")*",Hw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",zw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kf=Ff+Lf+$w,Kw="(?:"+[Ww,pa,ga].join("|")+")"+kf,qw="(?:"+[Tf+bo+"?",bo,pa,ga,Vw].join("|")+")",Gw=RegExp(da,"g"),Yw=RegExp(bo,"g"),va=RegExp(ha+"(?="+ha+")|"+qw+kf,"g"),Xw=RegExp([Mr+"?"+Pf+"+"+Nf+"(?="+[Af,Mr,"$"].join("|")+")",Uw+"+"+Mf+"(?="+[Af,Mr+Df,"$"].join("|")+")",Mr+"?"+Df+"+"+Nf,Mr+"+"+Mf,zw,Hw,Rf,Kw].join("|"),"g"),Zw=RegExp("["+If+xo+xf+Sf+"]"),Jw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Qw=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ex=-1,$e={};$e[Ee]=$e[He]=$e[et]=$e[di]=$e[or]=$e[sr]=$e[hi]=$e[Nr]=$e[pi]=!0,$e[it]=$e[pt]=$e[z]=$e[xe]=$e[Q]=$e[Fe]=$e[be]=$e[Se]=$e[Ue]=$e[Dt]=$e[st]=$e[Dr]=$e[St]=$e[S]=$e[X]=!1;var Ve={};Ve[it]=Ve[pt]=Ve[z]=Ve[Q]=Ve[xe]=Ve[Fe]=Ve[Ee]=Ve[He]=Ve[et]=Ve[di]=Ve[or]=Ve[Ue]=Ve[Dt]=Ve[st]=Ve[Dr]=Ve[St]=Ve[S]=Ve[L]=Ve[sr]=Ve[hi]=Ve[Nr]=Ve[pi]=!0,Ve[be]=Ve[Se]=Ve[X]=!1;var tx={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nx={"&":"&","<":"<",">":">",'"':""","'":"'"},rx={"&":"&","<":"<",">":">",""":'"',"'":"'"},ix={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ox=parseFloat,sx=parseInt,Bf=typeof Yr=="object"&&Yr&&Yr.Object===Object&&Yr,ax=typeof self=="object"&&self&&self.Object===Object&&self,ct=Bf||ax||Function("return this")(),ma=i&&!i.nodeType&&i,ar=ma&&!0&&n&&!n.nodeType&&n,Vf=ar&&ar.exports===ma,ya=Vf&&Bf.process,Wt=function(){try{var T=ar&&ar.require&&ar.require("util").types;return T||ya&&ya.binding&&ya.binding("util")}catch{}}(),Wf=Wt&&Wt.isArrayBuffer,jf=Wt&&Wt.isDate,Uf=Wt&&Wt.isMap,$f=Wt&&Wt.isRegExp,Hf=Wt&&Wt.isSet,zf=Wt&&Wt.isTypedArray;function Nt(T,B,F){switch(F.length){case 0:return T.call(B);case 1:return T.call(B,F[0]);case 2:return T.call(B,F[0],F[1]);case 3:return T.call(B,F[0],F[1],F[2])}return T.apply(B,F)}function lx(T,B,F,ee){for(var pe=-1,Oe=T==null?0:T.length;++pe<Oe;){var nt=T[pe];B(ee,nt,F(nt),T)}return ee}function jt(T,B){for(var F=-1,ee=T==null?0:T.length;++F<ee&&B(T[F],F,T)!==!1;);return T}function ux(T,B){for(var F=T==null?0:T.length;F--&&B(T[F],F,T)!==!1;);return T}function Kf(T,B){for(var F=-1,ee=T==null?0:T.length;++F<ee;)if(!B(T[F],F,T))return!1;return!0}function Wn(T,B){for(var F=-1,ee=T==null?0:T.length,pe=0,Oe=[];++F<ee;){var nt=T[F];B(nt,F,T)&&(Oe[pe++]=nt)}return Oe}function _o(T,B){var F=T==null?0:T.length;return!!F&&Lr(T,B,0)>-1}function wa(T,B,F){for(var ee=-1,pe=T==null?0:T.length;++ee<pe;)if(F(B,T[ee]))return!0;return!1}function ze(T,B){for(var F=-1,ee=T==null?0:T.length,pe=Array(ee);++F<ee;)pe[F]=B(T[F],F,T);return pe}function jn(T,B){for(var F=-1,ee=B.length,pe=T.length;++F<ee;)T[pe+F]=B[F];return T}function xa(T,B,F,ee){var pe=-1,Oe=T==null?0:T.length;for(ee&&Oe&&(F=T[++pe]);++pe<Oe;)F=B(F,T[pe],pe,T);return F}function cx(T,B,F,ee){var pe=T==null?0:T.length;for(ee&&pe&&(F=T[--pe]);pe--;)F=B(F,T[pe],pe,T);return F}function ba(T,B){for(var F=-1,ee=T==null?0:T.length;++F<ee;)if(B(T[F],F,T))return!0;return!1}var fx=_a("length");function dx(T){return T.split("")}function hx(T){return T.match(bw)||[]}function qf(T,B,F){var ee;return F(T,function(pe,Oe,nt){if(B(pe,Oe,nt))return ee=Oe,!1}),ee}function Co(T,B,F,ee){for(var pe=T.length,Oe=F+(ee?1:-1);ee?Oe--:++Oe<pe;)if(B(T[Oe],Oe,T))return Oe;return-1}function Lr(T,B,F){return B===B?Ex(T,B,F):Co(T,Gf,F)}function px(T,B,F,ee){for(var pe=F-1,Oe=T.length;++pe<Oe;)if(ee(T[pe],B))return pe;return-1}function Gf(T){return T!==T}function Yf(T,B){var F=T==null?0:T.length;return F?Sa(T,B)/F:Ne}function _a(T){return function(B){return B==null?r:B[T]}}function Ca(T){return function(B){return T==null?r:T[B]}}function Xf(T,B,F,ee,pe){return pe(T,function(Oe,nt,Be){F=ee?(ee=!1,Oe):B(F,Oe,nt,Be)}),F}function gx(T,B){var F=T.length;for(T.sort(B);F--;)T[F]=T[F].value;return T}function Sa(T,B){for(var F,ee=-1,pe=T.length;++ee<pe;){var Oe=B(T[ee]);Oe!==r&&(F=F===r?Oe:F+Oe)}return F}function Ea(T,B){for(var F=-1,ee=Array(T);++F<T;)ee[F]=B(F);return ee}function vx(T,B){return ze(B,function(F){return[F,T[F]]})}function Zf(T){return T&&T.slice(0,td(T)+1).replace(fa,"")}function Mt(T){return function(B){return T(B)}}function Aa(T,B){return ze(B,function(F){return T[F]})}function gi(T,B){return T.has(B)}function Jf(T,B){for(var F=-1,ee=T.length;++F<ee&&Lr(B,T[F],0)>-1;);return F}function Qf(T,B){for(var F=T.length;F--&&Lr(B,T[F],0)>-1;);return F}function mx(T,B){for(var F=T.length,ee=0;F--;)T[F]===B&&++ee;return ee}var yx=Ca(tx),wx=Ca(nx);function xx(T){return"\\"+ix[T]}function bx(T,B){return T==null?r:T[B]}function Fr(T){return Zw.test(T)}function _x(T){return Jw.test(T)}function Cx(T){for(var B,F=[];!(B=T.next()).done;)F.push(B.value);return F}function Ra(T){var B=-1,F=Array(T.size);return T.forEach(function(ee,pe){F[++B]=[pe,ee]}),F}function ed(T,B){return function(F){return T(B(F))}}function Un(T,B){for(var F=-1,ee=T.length,pe=0,Oe=[];++F<ee;){var nt=T[F];(nt===B||nt===m)&&(T[F]=m,Oe[pe++]=F)}return Oe}function So(T){var B=-1,F=Array(T.size);return T.forEach(function(ee){F[++B]=ee}),F}function Sx(T){var B=-1,F=Array(T.size);return T.forEach(function(ee){F[++B]=[ee,ee]}),F}function Ex(T,B,F){for(var ee=F-1,pe=T.length;++ee<pe;)if(T[ee]===B)return ee;return-1}function Ax(T,B,F){for(var ee=F+1;ee--;)if(T[ee]===B)return ee;return ee}function kr(T){return Fr(T)?Px(T):fx(T)}function nn(T){return Fr(T)?Ox(T):dx(T)}function td(T){for(var B=T.length;B--&&mw.test(T.charAt(B)););return B}var Rx=Ca(rx);function Px(T){for(var B=va.lastIndex=0;va.test(T);)++B;return B}function Ox(T){return T.match(va)||[]}function Tx(T){return T.match(Xw)||[]}var Ix=function T(B){B=B==null?ct:Br.defaults(ct.Object(),B,Br.pick(ct,Qw));var F=B.Array,ee=B.Date,pe=B.Error,Oe=B.Function,nt=B.Math,Be=B.Object,Pa=B.RegExp,Dx=B.String,Ut=B.TypeError,Eo=F.prototype,Nx=Oe.prototype,Vr=Be.prototype,Ao=B["__core-js_shared__"],Ro=Nx.toString,Le=Vr.hasOwnProperty,Mx=0,nd=function(){var e=/[^.]+$/.exec(Ao&&Ao.keys&&Ao.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Po=Vr.toString,Lx=Ro.call(Be),Fx=ct._,kx=Pa("^"+Ro.call(Le).replace(ca,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oo=Vf?B.Buffer:r,$n=B.Symbol,To=B.Uint8Array,rd=Oo?Oo.allocUnsafe:r,Io=ed(Be.getPrototypeOf,Be),id=Be.create,od=Vr.propertyIsEnumerable,Do=Eo.splice,sd=$n?$n.isConcatSpreadable:r,vi=$n?$n.iterator:r,lr=$n?$n.toStringTag:r,No=function(){try{var e=hr(Be,"defineProperty");return e({},"",{}),e}catch{}}(),Bx=B.clearTimeout!==ct.clearTimeout&&B.clearTimeout,Vx=ee&&ee.now!==ct.Date.now&&ee.now,Wx=B.setTimeout!==ct.setTimeout&&B.setTimeout,Mo=nt.ceil,Lo=nt.floor,Oa=Be.getOwnPropertySymbols,jx=Oo?Oo.isBuffer:r,ad=B.isFinite,Ux=Eo.join,$x=ed(Be.keys,Be),rt=nt.max,gt=nt.min,Hx=ee.now,zx=B.parseInt,ld=nt.random,Kx=Eo.reverse,Ta=hr(B,"DataView"),mi=hr(B,"Map"),Ia=hr(B,"Promise"),Wr=hr(B,"Set"),yi=hr(B,"WeakMap"),wi=hr(Be,"create"),Fo=yi&&new yi,jr={},qx=pr(Ta),Gx=pr(mi),Yx=pr(Ia),Xx=pr(Wr),Zx=pr(yi),ko=$n?$n.prototype:r,xi=ko?ko.valueOf:r,ud=ko?ko.toString:r;function h(e){if(Ge(e)&&!ge(e)&&!(e instanceof Ae)){if(e instanceof $t)return e;if(Le.call(e,"__wrapped__"))return ch(e)}return new $t(e)}var Ur=function(){function e(){}return function(t){if(!Ke(t))return{};if(id)return id(t);e.prototype=t;var o=new e;return e.prototype=r,o}}();function Bo(){}function $t(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}h.templateSettings={escape:fw,evaluate:dw,interpolate:yf,variable:"",imports:{_:h}},h.prototype=Bo.prototype,h.prototype.constructor=h,$t.prototype=Ur(Bo.prototype),$t.prototype.constructor=$t;function Ae(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Me,this.__views__=[]}function Jx(){var e=new Ae(this.__wrapped__);return e.__actions__=Et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Et(this.__views__),e}function Qx(){if(this.__filtered__){var e=new Ae(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function e0(){var e=this.__wrapped__.value(),t=this.__dir__,o=ge(e),l=t<0,d=o?e.length:0,g=db(0,d,this.__views__),C=g.start,P=g.end,N=P-C,j=l?P:C-1,U=this.__iteratees__,H=U.length,Y=0,ie=gt(N,this.__takeCount__);if(!o||!l&&d==N&&ie==N)return Nd(e,this.__actions__);var ue=[];e:for(;N--&&Y<ie;){j+=t;for(var me=-1,ce=e[j];++me<H;){var _e=U[me],Re=_e.iteratee,kt=_e.type,_t=Re(ce);if(kt==he)ce=_t;else if(!_t){if(kt==re)continue e;break e}}ue[Y++]=ce}return ue}Ae.prototype=Ur(Bo.prototype),Ae.prototype.constructor=Ae;function ur(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function t0(){this.__data__=wi?wi(null):{},this.size=0}function n0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function r0(e){var t=this.__data__;if(wi){var o=t[e];return o===p?r:o}return Le.call(t,e)?t[e]:r}function i0(e){var t=this.__data__;return wi?t[e]!==r:Le.call(t,e)}function o0(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=wi&&t===r?p:t,this}ur.prototype.clear=t0,ur.prototype.delete=n0,ur.prototype.get=r0,ur.prototype.has=i0,ur.prototype.set=o0;function _n(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function s0(){this.__data__=[],this.size=0}function a0(e){var t=this.__data__,o=Vo(t,e);if(o<0)return!1;var l=t.length-1;return o==l?t.pop():Do.call(t,o,1),--this.size,!0}function l0(e){var t=this.__data__,o=Vo(t,e);return o<0?r:t[o][1]}function u0(e){return Vo(this.__data__,e)>-1}function c0(e,t){var o=this.__data__,l=Vo(o,e);return l<0?(++this.size,o.push([e,t])):o[l][1]=t,this}_n.prototype.clear=s0,_n.prototype.delete=a0,_n.prototype.get=l0,_n.prototype.has=u0,_n.prototype.set=c0;function Cn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var l=e[t];this.set(l[0],l[1])}}function f0(){this.size=0,this.__data__={hash:new ur,map:new(mi||_n),string:new ur}}function d0(e){var t=Zo(this,e).delete(e);return this.size-=t?1:0,t}function h0(e){return Zo(this,e).get(e)}function p0(e){return Zo(this,e).has(e)}function g0(e,t){var o=Zo(this,e),l=o.size;return o.set(e,t),this.size+=o.size==l?0:1,this}Cn.prototype.clear=f0,Cn.prototype.delete=d0,Cn.prototype.get=h0,Cn.prototype.has=p0,Cn.prototype.set=g0;function cr(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Cn;++t<o;)this.add(e[t])}function v0(e){return this.__data__.set(e,p),this}function m0(e){return this.__data__.has(e)}cr.prototype.add=cr.prototype.push=v0,cr.prototype.has=m0;function rn(e){var t=this.__data__=new _n(e);this.size=t.size}function y0(){this.__data__=new _n,this.size=0}function w0(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function x0(e){return this.__data__.get(e)}function b0(e){return this.__data__.has(e)}function _0(e,t){var o=this.__data__;if(o instanceof _n){var l=o.__data__;if(!mi||l.length<a-1)return l.push([e,t]),this.size=++o.size,this;o=this.__data__=new Cn(l)}return o.set(e,t),this.size=o.size,this}rn.prototype.clear=y0,rn.prototype.delete=w0,rn.prototype.get=x0,rn.prototype.has=b0,rn.prototype.set=_0;function cd(e,t){var o=ge(e),l=!o&&gr(e),d=!o&&!l&&Gn(e),g=!o&&!l&&!d&&Kr(e),C=o||l||d||g,P=C?Ea(e.length,Dx):[],N=P.length;for(var j in e)(t||Le.call(e,j))&&!(C&&(j=="length"||d&&(j=="offset"||j=="parent")||g&&(j=="buffer"||j=="byteLength"||j=="byteOffset")||Rn(j,N)))&&P.push(j);return P}function fd(e){var t=e.length;return t?e[Ua(0,t-1)]:r}function C0(e,t){return Jo(Et(e),fr(t,0,e.length))}function S0(e){return Jo(Et(e))}function Da(e,t,o){(o!==r&&!on(e[t],o)||o===r&&!(t in e))&&Sn(e,t,o)}function bi(e,t,o){var l=e[t];(!(Le.call(e,t)&&on(l,o))||o===r&&!(t in e))&&Sn(e,t,o)}function Vo(e,t){for(var o=e.length;o--;)if(on(e[o][0],t))return o;return-1}function E0(e,t,o,l){return Hn(e,function(d,g,C){t(l,d,o(d),C)}),l}function dd(e,t){return e&&gn(t,at(t),e)}function A0(e,t){return e&&gn(t,Rt(t),e)}function Sn(e,t,o){t=="__proto__"&&No?No(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Na(e,t){for(var o=-1,l=t.length,d=F(l),g=e==null;++o<l;)d[o]=g?r:hl(e,t[o]);return d}function fr(e,t,o){return e===e&&(o!==r&&(e=e<=o?e:o),t!==r&&(e=e>=t?e:t)),e}function Ht(e,t,o,l,d,g){var C,P=t&w,N=t&_,j=t&A;if(o&&(C=d?o(e,l,d,g):o(e)),C!==r)return C;if(!Ke(e))return e;var U=ge(e);if(U){if(C=pb(e),!P)return Et(e,C)}else{var H=vt(e),Y=H==Se||H==ot;if(Gn(e))return Fd(e,P);if(H==st||H==it||Y&&!d){if(C=N||Y?{}:th(e),!P)return N?rb(e,A0(C,e)):nb(e,dd(C,e))}else{if(!Ve[H])return d?e:{};C=gb(e,H,P)}}g||(g=new rn);var ie=g.get(e);if(ie)return ie;g.set(e,C),Th(e)?e.forEach(function(ce){C.add(Ht(ce,t,o,ce,e,g))}):Ph(e)&&e.forEach(function(ce,_e){C.set(_e,Ht(ce,t,o,_e,e,g))});var ue=j?N?Qa:Ja:N?Rt:at,me=U?r:ue(e);return jt(me||e,function(ce,_e){me&&(_e=ce,ce=e[_e]),bi(C,_e,Ht(ce,t,o,_e,e,g))}),C}function R0(e){var t=at(e);return function(o){return hd(o,e,t)}}function hd(e,t,o){var l=o.length;if(e==null)return!l;for(e=Be(e);l--;){var d=o[l],g=t[d],C=e[d];if(C===r&&!(d in e)||!g(C))return!1}return!0}function pd(e,t,o){if(typeof e!="function")throw new Ut(c);return Pi(function(){e.apply(r,o)},t)}function _i(e,t,o,l){var d=-1,g=_o,C=!0,P=e.length,N=[],j=t.length;if(!P)return N;o&&(t=ze(t,Mt(o))),l?(g=wa,C=!1):t.length>=a&&(g=gi,C=!1,t=new cr(t));e:for(;++d<P;){var U=e[d],H=o==null?U:o(U);if(U=l||U!==0?U:0,C&&H===H){for(var Y=j;Y--;)if(t[Y]===H)continue e;N.push(U)}else g(t,H,l)||N.push(U)}return N}var Hn=jd(pn),gd=jd(La,!0);function P0(e,t){var o=!0;return Hn(e,function(l,d,g){return o=!!t(l,d,g),o}),o}function Wo(e,t,o){for(var l=-1,d=e.length;++l<d;){var g=e[l],C=t(g);if(C!=null&&(P===r?C===C&&!Ft(C):o(C,P)))var P=C,N=g}return N}function O0(e,t,o,l){var d=e.length;for(o=ve(o),o<0&&(o=-o>d?0:d+o),l=l===r||l>d?d:ve(l),l<0&&(l+=d),l=o>l?0:Dh(l);o<l;)e[o++]=t;return e}function vd(e,t){var o=[];return Hn(e,function(l,d,g){t(l,d,g)&&o.push(l)}),o}function ft(e,t,o,l,d){var g=-1,C=e.length;for(o||(o=mb),d||(d=[]);++g<C;){var P=e[g];t>0&&o(P)?t>1?ft(P,t-1,o,l,d):jn(d,P):l||(d[d.length]=P)}return d}var Ma=Ud(),md=Ud(!0);function pn(e,t){return e&&Ma(e,t,at)}function La(e,t){return e&&md(e,t,at)}function jo(e,t){return Wn(t,function(o){return Pn(e[o])})}function dr(e,t){t=Kn(t,e);for(var o=0,l=t.length;e!=null&&o<l;)e=e[vn(t[o++])];return o&&o==l?e:r}function yd(e,t,o){var l=t(e);return ge(e)?l:jn(l,o(e))}function xt(e){return e==null?e===r?V:hn:lr&&lr in Be(e)?fb(e):Sb(e)}function Fa(e,t){return e>t}function T0(e,t){return e!=null&&Le.call(e,t)}function I0(e,t){return e!=null&&t in Be(e)}function D0(e,t,o){return e>=gt(t,o)&&e<rt(t,o)}function ka(e,t,o){for(var l=o?wa:_o,d=e[0].length,g=e.length,C=g,P=F(g),N=1/0,j=[];C--;){var U=e[C];C&&t&&(U=ze(U,Mt(t))),N=gt(U.length,N),P[C]=!o&&(t||d>=120&&U.length>=120)?new cr(C&&U):r}U=e[0];var H=-1,Y=P[0];e:for(;++H<d&&j.length<N;){var ie=U[H],ue=t?t(ie):ie;if(ie=o||ie!==0?ie:0,!(Y?gi(Y,ue):l(j,ue,o))){for(C=g;--C;){var me=P[C];if(!(me?gi(me,ue):l(e[C],ue,o)))continue e}Y&&Y.push(ue),j.push(ie)}}return j}function N0(e,t,o,l){return pn(e,function(d,g,C){t(l,o(d),g,C)}),l}function Ci(e,t,o){t=Kn(t,e),e=oh(e,t);var l=e==null?e:e[vn(Kt(t))];return l==null?r:Nt(l,e,o)}function wd(e){return Ge(e)&&xt(e)==it}function M0(e){return Ge(e)&&xt(e)==z}function L0(e){return Ge(e)&&xt(e)==Fe}function Si(e,t,o,l,d){return e===t?!0:e==null||t==null||!Ge(e)&&!Ge(t)?e!==e&&t!==t:F0(e,t,o,l,Si,d)}function F0(e,t,o,l,d,g){var C=ge(e),P=ge(t),N=C?pt:vt(e),j=P?pt:vt(t);N=N==it?st:N,j=j==it?st:j;var U=N==st,H=j==st,Y=N==j;if(Y&&Gn(e)){if(!Gn(t))return!1;C=!0,U=!1}if(Y&&!U)return g||(g=new rn),C||Kr(e)?Jd(e,t,o,l,d,g):ub(e,t,N,o,l,d,g);if(!(o&D)){var ie=U&&Le.call(e,"__wrapped__"),ue=H&&Le.call(t,"__wrapped__");if(ie||ue){var me=ie?e.value():e,ce=ue?t.value():t;return g||(g=new rn),d(me,ce,o,l,g)}}return Y?(g||(g=new rn),cb(e,t,o,l,d,g)):!1}function k0(e){return Ge(e)&&vt(e)==Ue}function Ba(e,t,o,l){var d=o.length,g=d,C=!l;if(e==null)return!g;for(e=Be(e);d--;){var P=o[d];if(C&&P[2]?P[1]!==e[P[0]]:!(P[0]in e))return!1}for(;++d<g;){P=o[d];var N=P[0],j=e[N],U=P[1];if(C&&P[2]){if(j===r&&!(N in e))return!1}else{var H=new rn;if(l)var Y=l(j,U,N,e,t,H);if(!(Y===r?Si(U,j,D|x,l,H):Y))return!1}}return!0}function xd(e){if(!Ke(e)||wb(e))return!1;var t=Pn(e)?kx:Rw;return t.test(pr(e))}function B0(e){return Ge(e)&&xt(e)==Dr}function V0(e){return Ge(e)&&vt(e)==St}function W0(e){return Ge(e)&&is(e.length)&&!!$e[xt(e)]}function bd(e){return typeof e=="function"?e:e==null?Pt:typeof e=="object"?ge(e)?Sd(e[0],e[1]):Cd(e):$h(e)}function Va(e){if(!Ri(e))return $x(e);var t=[];for(var o in Be(e))Le.call(e,o)&&o!="constructor"&&t.push(o);return t}function j0(e){if(!Ke(e))return Cb(e);var t=Ri(e),o=[];for(var l in e)l=="constructor"&&(t||!Le.call(e,l))||o.push(l);return o}function Wa(e,t){return e<t}function _d(e,t){var o=-1,l=At(e)?F(e.length):[];return Hn(e,function(d,g,C){l[++o]=t(d,g,C)}),l}function Cd(e){var t=tl(e);return t.length==1&&t[0][2]?rh(t[0][0],t[0][1]):function(o){return o===e||Ba(o,e,t)}}function Sd(e,t){return rl(e)&&nh(t)?rh(vn(e),t):function(o){var l=hl(o,e);return l===r&&l===t?pl(o,e):Si(t,l,D|x)}}function Uo(e,t,o,l,d){e!==t&&Ma(t,function(g,C){if(d||(d=new rn),Ke(g))U0(e,t,C,o,Uo,l,d);else{var P=l?l(ol(e,C),g,C+"",e,t,d):r;P===r&&(P=g),Da(e,C,P)}},Rt)}function U0(e,t,o,l,d,g,C){var P=ol(e,o),N=ol(t,o),j=C.get(N);if(j){Da(e,o,j);return}var U=g?g(P,N,o+"",e,t,C):r,H=U===r;if(H){var Y=ge(N),ie=!Y&&Gn(N),ue=!Y&&!ie&&Kr(N);U=N,Y||ie||ue?ge(P)?U=P:Xe(P)?U=Et(P):ie?(H=!1,U=Fd(N,!0)):ue?(H=!1,U=kd(N,!0)):U=[]:Oi(N)||gr(N)?(U=P,gr(P)?U=Nh(P):(!Ke(P)||Pn(P))&&(U=th(N))):H=!1}H&&(C.set(N,U),d(U,N,l,g,C),C.delete(N)),Da(e,o,U)}function Ed(e,t){var o=e.length;if(o)return t+=t<0?o:0,Rn(t,o)?e[t]:r}function Ad(e,t,o){t.length?t=ze(t,function(g){return ge(g)?function(C){return dr(C,g.length===1?g[0]:g)}:g}):t=[Pt];var l=-1;t=ze(t,Mt(le()));var d=_d(e,function(g,C,P){var N=ze(t,function(j){return j(g)});return{criteria:N,index:++l,value:g}});return gx(d,function(g,C){return tb(g,C,o)})}function $0(e,t){return Rd(e,t,function(o,l){return pl(e,l)})}function Rd(e,t,o){for(var l=-1,d=t.length,g={};++l<d;){var C=t[l],P=dr(e,C);o(P,C)&&Ei(g,Kn(C,e),P)}return g}function H0(e){return function(t){return dr(t,e)}}function ja(e,t,o,l){var d=l?px:Lr,g=-1,C=t.length,P=e;for(e===t&&(t=Et(t)),o&&(P=ze(e,Mt(o)));++g<C;)for(var N=0,j=t[g],U=o?o(j):j;(N=d(P,U,N,l))>-1;)P!==e&&Do.call(P,N,1),Do.call(e,N,1);return e}function Pd(e,t){for(var o=e?t.length:0,l=o-1;o--;){var d=t[o];if(o==l||d!==g){var g=d;Rn(d)?Do.call(e,d,1):za(e,d)}}return e}function Ua(e,t){return e+Lo(ld()*(t-e+1))}function z0(e,t,o,l){for(var d=-1,g=rt(Mo((t-e)/(o||1)),0),C=F(g);g--;)C[l?g:++d]=e,e+=o;return C}function $a(e,t){var o="";if(!e||t<1||t>oe)return o;do t%2&&(o+=e),t=Lo(t/2),t&&(e+=e);while(t);return o}function we(e,t){return sl(ih(e,t,Pt),e+"")}function K0(e){return fd(qr(e))}function q0(e,t){var o=qr(e);return Jo(o,fr(t,0,o.length))}function Ei(e,t,o,l){if(!Ke(e))return e;t=Kn(t,e);for(var d=-1,g=t.length,C=g-1,P=e;P!=null&&++d<g;){var N=vn(t[d]),j=o;if(N==="__proto__"||N==="constructor"||N==="prototype")return e;if(d!=C){var U=P[N];j=l?l(U,N,P):r,j===r&&(j=Ke(U)?U:Rn(t[d+1])?[]:{})}bi(P,N,j),P=P[N]}return e}var Od=Fo?function(e,t){return Fo.set(e,t),e}:Pt,G0=No?function(e,t){return No(e,"toString",{configurable:!0,enumerable:!1,value:vl(t),writable:!0})}:Pt;function Y0(e){return Jo(qr(e))}function zt(e,t,o){var l=-1,d=e.length;t<0&&(t=-t>d?0:d+t),o=o>d?d:o,o<0&&(o+=d),d=t>o?0:o-t>>>0,t>>>=0;for(var g=F(d);++l<d;)g[l]=e[l+t];return g}function X0(e,t){var o;return Hn(e,function(l,d,g){return o=t(l,d,g),!o}),!!o}function $o(e,t,o){var l=0,d=e==null?l:e.length;if(typeof t=="number"&&t===t&&d<=Vt){for(;l<d;){var g=l+d>>>1,C=e[g];C!==null&&!Ft(C)&&(o?C<=t:C<t)?l=g+1:d=g}return d}return Ha(e,t,Pt,o)}function Ha(e,t,o,l){var d=0,g=e==null?0:e.length;if(g===0)return 0;t=o(t);for(var C=t!==t,P=t===null,N=Ft(t),j=t===r;d<g;){var U=Lo((d+g)/2),H=o(e[U]),Y=H!==r,ie=H===null,ue=H===H,me=Ft(H);if(C)var ce=l||ue;else j?ce=ue&&(l||Y):P?ce=ue&&Y&&(l||!ie):N?ce=ue&&Y&&!ie&&(l||!me):ie||me?ce=!1:ce=l?H<=t:H<t;ce?d=U+1:g=U}return gt(g,wt)}function Td(e,t){for(var o=-1,l=e.length,d=0,g=[];++o<l;){var C=e[o],P=t?t(C):C;if(!o||!on(P,N)){var N=P;g[d++]=C===0?0:C}}return g}function Id(e){return typeof e=="number"?e:Ft(e)?Ne:+e}function Lt(e){if(typeof e=="string")return e;if(ge(e))return ze(e,Lt)+"";if(Ft(e))return ud?ud.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function zn(e,t,o){var l=-1,d=_o,g=e.length,C=!0,P=[],N=P;if(o)C=!1,d=wa;else if(g>=a){var j=t?null:ab(e);if(j)return So(j);C=!1,d=gi,N=new cr}else N=t?[]:P;e:for(;++l<g;){var U=e[l],H=t?t(U):U;if(U=o||U!==0?U:0,C&&H===H){for(var Y=N.length;Y--;)if(N[Y]===H)continue e;t&&N.push(H),P.push(U)}else d(N,H,o)||(N!==P&&N.push(H),P.push(U))}return P}function za(e,t){return t=Kn(t,e),e=oh(e,t),e==null||delete e[vn(Kt(t))]}function Dd(e,t,o,l){return Ei(e,t,o(dr(e,t)),l)}function Ho(e,t,o,l){for(var d=e.length,g=l?d:-1;(l?g--:++g<d)&&t(e[g],g,e););return o?zt(e,l?0:g,l?g+1:d):zt(e,l?g+1:0,l?d:g)}function Nd(e,t){var o=e;return o instanceof Ae&&(o=o.value()),xa(t,function(l,d){return d.func.apply(d.thisArg,jn([l],d.args))},o)}function Ka(e,t,o){var l=e.length;if(l<2)return l?zn(e[0]):[];for(var d=-1,g=F(l);++d<l;)for(var C=e[d],P=-1;++P<l;)P!=d&&(g[d]=_i(g[d]||C,e[P],t,o));return zn(ft(g,1),t,o)}function Md(e,t,o){for(var l=-1,d=e.length,g=t.length,C={};++l<d;){var P=l<g?t[l]:r;o(C,e[l],P)}return C}function qa(e){return Xe(e)?e:[]}function Ga(e){return typeof e=="function"?e:Pt}function Kn(e,t){return ge(e)?e:rl(e,t)?[e]:uh(De(e))}var Z0=we;function qn(e,t,o){var l=e.length;return o=o===r?l:o,!t&&o>=l?e:zt(e,t,o)}var Ld=Bx||function(e){return ct.clearTimeout(e)};function Fd(e,t){if(t)return e.slice();var o=e.length,l=rd?rd(o):new e.constructor(o);return e.copy(l),l}function Ya(e){var t=new e.constructor(e.byteLength);return new To(t).set(new To(e)),t}function J0(e,t){var o=t?Ya(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function Q0(e){var t=new e.constructor(e.source,wf.exec(e));return t.lastIndex=e.lastIndex,t}function eb(e){return xi?Be(xi.call(e)):{}}function kd(e,t){var o=t?Ya(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function Bd(e,t){if(e!==t){var o=e!==r,l=e===null,d=e===e,g=Ft(e),C=t!==r,P=t===null,N=t===t,j=Ft(t);if(!P&&!j&&!g&&e>t||g&&C&&N&&!P&&!j||l&&C&&N||!o&&N||!d)return 1;if(!l&&!g&&!j&&e<t||j&&o&&d&&!l&&!g||P&&o&&d||!C&&d||!N)return-1}return 0}function tb(e,t,o){for(var l=-1,d=e.criteria,g=t.criteria,C=d.length,P=o.length;++l<C;){var N=Bd(d[l],g[l]);if(N){if(l>=P)return N;var j=o[l];return N*(j=="desc"?-1:1)}}return e.index-t.index}function Vd(e,t,o,l){for(var d=-1,g=e.length,C=o.length,P=-1,N=t.length,j=rt(g-C,0),U=F(N+j),H=!l;++P<N;)U[P]=t[P];for(;++d<C;)(H||d<g)&&(U[o[d]]=e[d]);for(;j--;)U[P++]=e[d++];return U}function Wd(e,t,o,l){for(var d=-1,g=e.length,C=-1,P=o.length,N=-1,j=t.length,U=rt(g-P,0),H=F(U+j),Y=!l;++d<U;)H[d]=e[d];for(var ie=d;++N<j;)H[ie+N]=t[N];for(;++C<P;)(Y||d<g)&&(H[ie+o[C]]=e[d++]);return H}function Et(e,t){var o=-1,l=e.length;for(t||(t=F(l));++o<l;)t[o]=e[o];return t}function gn(e,t,o,l){var d=!o;o||(o={});for(var g=-1,C=t.length;++g<C;){var P=t[g],N=l?l(o[P],e[P],P,o,e):r;N===r&&(N=e[P]),d?Sn(o,P,N):bi(o,P,N)}return o}function nb(e,t){return gn(e,nl(e),t)}function rb(e,t){return gn(e,Qd(e),t)}function zo(e,t){return function(o,l){var d=ge(o)?lx:E0,g=t?t():{};return d(o,e,le(l,2),g)}}function $r(e){return we(function(t,o){var l=-1,d=o.length,g=d>1?o[d-1]:r,C=d>2?o[2]:r;for(g=e.length>3&&typeof g=="function"?(d--,g):r,C&&bt(o[0],o[1],C)&&(g=d<3?r:g,d=1),t=Be(t);++l<d;){var P=o[l];P&&e(t,P,l,g)}return t})}function jd(e,t){return function(o,l){if(o==null)return o;if(!At(o))return e(o,l);for(var d=o.length,g=t?d:-1,C=Be(o);(t?g--:++g<d)&&l(C[g],g,C)!==!1;);return o}}function Ud(e){return function(t,o,l){for(var d=-1,g=Be(t),C=l(t),P=C.length;P--;){var N=C[e?P:++d];if(o(g[N],N,g)===!1)break}return t}}function ib(e,t,o){var l=t&E,d=Ai(e);function g(){var C=this&&this!==ct&&this instanceof g?d:e;return C.apply(l?o:this,arguments)}return g}function $d(e){return function(t){t=De(t);var o=Fr(t)?nn(t):r,l=o?o[0]:t.charAt(0),d=o?qn(o,1).join(""):t.slice(1);return l[e]()+d}}function Hr(e){return function(t){return xa(jh(Wh(t).replace(Gw,"")),e,"")}}function Ai(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=Ur(e.prototype),l=e.apply(o,t);return Ke(l)?l:o}}function ob(e,t,o){var l=Ai(e);function d(){for(var g=arguments.length,C=F(g),P=g,N=zr(d);P--;)C[P]=arguments[P];var j=g<3&&C[0]!==N&&C[g-1]!==N?[]:Un(C,N);if(g-=j.length,g<o)return Gd(e,t,Ko,d.placeholder,r,C,j,r,r,o-g);var U=this&&this!==ct&&this instanceof d?l:e;return Nt(U,this,C)}return d}function Hd(e){return function(t,o,l){var d=Be(t);if(!At(t)){var g=le(o,3);t=at(t),o=function(P){return g(d[P],P,d)}}var C=e(t,o,l);return C>-1?d[g?t[C]:C]:r}}function zd(e){return An(function(t){var o=t.length,l=o,d=$t.prototype.thru;for(e&&t.reverse();l--;){var g=t[l];if(typeof g!="function")throw new Ut(c);if(d&&!C&&Xo(g)=="wrapper")var C=new $t([],!0)}for(l=C?l:o;++l<o;){g=t[l];var P=Xo(g),N=P=="wrapper"?el(g):r;N&&il(N[0])&&N[1]==(W|I|M|q)&&!N[4].length&&N[9]==1?C=C[Xo(N[0])].apply(C,N[3]):C=g.length==1&&il(g)?C[P]():C.thru(g)}return function(){var j=arguments,U=j[0];if(C&&j.length==1&&ge(U))return C.plant(U).value();for(var H=0,Y=o?t[H].apply(this,j):U;++H<o;)Y=t[H].call(this,Y);return Y}})}function Ko(e,t,o,l,d,g,C,P,N,j){var U=t&W,H=t&E,Y=t&R,ie=t&(I|k),ue=t&K,me=Y?r:Ai(e);function ce(){for(var _e=arguments.length,Re=F(_e),kt=_e;kt--;)Re[kt]=arguments[kt];if(ie)var _t=zr(ce),Bt=mx(Re,_t);if(l&&(Re=Vd(Re,l,d,ie)),g&&(Re=Wd(Re,g,C,ie)),_e-=Bt,ie&&_e<j){var Ze=Un(Re,_t);return Gd(e,t,Ko,ce.placeholder,o,Re,Ze,P,N,j-_e)}var sn=H?o:this,Tn=Y?sn[e]:e;return _e=Re.length,P?Re=Eb(Re,P):ue&&_e>1&&Re.reverse(),U&&N<_e&&(Re.length=N),this&&this!==ct&&this instanceof ce&&(Tn=me||Ai(Tn)),Tn.apply(sn,Re)}return ce}function Kd(e,t){return function(o,l){return N0(o,e,t(l),{})}}function qo(e,t){return function(o,l){var d;if(o===r&&l===r)return t;if(o!==r&&(d=o),l!==r){if(d===r)return l;typeof o=="string"||typeof l=="string"?(o=Lt(o),l=Lt(l)):(o=Id(o),l=Id(l)),d=e(o,l)}return d}}function Xa(e){return An(function(t){return t=ze(t,Mt(le())),we(function(o){var l=this;return e(t,function(d){return Nt(d,l,o)})})})}function Go(e,t){t=t===r?" ":Lt(t);var o=t.length;if(o<2)return o?$a(t,e):t;var l=$a(t,Mo(e/kr(t)));return Fr(t)?qn(nn(l),0,e).join(""):l.slice(0,e)}function sb(e,t,o,l){var d=t&E,g=Ai(e);function C(){for(var P=-1,N=arguments.length,j=-1,U=l.length,H=F(U+N),Y=this&&this!==ct&&this instanceof C?g:e;++j<U;)H[j]=l[j];for(;N--;)H[j++]=arguments[++P];return Nt(Y,d?o:this,H)}return C}function qd(e){return function(t,o,l){return l&&typeof l!="number"&&bt(t,o,l)&&(o=l=r),t=On(t),o===r?(o=t,t=0):o=On(o),l=l===r?t<o?1:-1:On(l),z0(t,o,l,e)}}function Yo(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=qt(t),o=qt(o)),e(t,o)}}function Gd(e,t,o,l,d,g,C,P,N,j){var U=t&I,H=U?C:r,Y=U?r:C,ie=U?g:r,ue=U?r:g;t|=U?M:$,t&=~(U?$:M),t&O||(t&=-4);var me=[e,t,d,ie,H,ue,Y,P,N,j],ce=o.apply(r,me);return il(e)&&sh(ce,me),ce.placeholder=l,ah(ce,e,t)}function Za(e){var t=nt[e];return function(o,l){if(o=qt(o),l=l==null?0:gt(ve(l),292),l&&ad(o)){var d=(De(o)+"e").split("e"),g=t(d[0]+"e"+(+d[1]+l));return d=(De(g)+"e").split("e"),+(d[0]+"e"+(+d[1]-l))}return t(o)}}var ab=Wr&&1/So(new Wr([,-0]))[1]==de?function(e){return new Wr(e)}:wl;function Yd(e){return function(t){var o=vt(t);return o==Ue?Ra(t):o==St?Sx(t):vx(t,e(t))}}function En(e,t,o,l,d,g,C,P){var N=t&R;if(!N&&typeof e!="function")throw new Ut(c);var j=l?l.length:0;if(j||(t&=-97,l=d=r),C=C===r?C:rt(ve(C),0),P=P===r?P:ve(P),j-=d?d.length:0,t&$){var U=l,H=d;l=d=r}var Y=N?r:el(e),ie=[e,t,o,l,d,U,H,g,C,P];if(Y&&_b(ie,Y),e=ie[0],t=ie[1],o=ie[2],l=ie[3],d=ie[4],P=ie[9]=ie[9]===r?N?0:e.length:rt(ie[9]-j,0),!P&&t&(I|k)&&(t&=-25),!t||t==E)var ue=ib(e,t,o);else t==I||t==k?ue=ob(e,t,P):(t==M||t==(E|M))&&!d.length?ue=sb(e,t,o,l):ue=Ko.apply(r,ie);var me=Y?Od:sh;return ah(me(ue,ie),e,t)}function Xd(e,t,o,l){return e===r||on(e,Vr[o])&&!Le.call(l,o)?t:e}function Zd(e,t,o,l,d,g){return Ke(e)&&Ke(t)&&(g.set(t,e),Uo(e,t,r,Zd,g),g.delete(t)),e}function lb(e){return Oi(e)?r:e}function Jd(e,t,o,l,d,g){var C=o&D,P=e.length,N=t.length;if(P!=N&&!(C&&N>P))return!1;var j=g.get(e),U=g.get(t);if(j&&U)return j==t&&U==e;var H=-1,Y=!0,ie=o&x?new cr:r;for(g.set(e,t),g.set(t,e);++H<P;){var ue=e[H],me=t[H];if(l)var ce=C?l(me,ue,H,t,e,g):l(ue,me,H,e,t,g);if(ce!==r){if(ce)continue;Y=!1;break}if(ie){if(!ba(t,function(_e,Re){if(!gi(ie,Re)&&(ue===_e||d(ue,_e,o,l,g)))return ie.push(Re)})){Y=!1;break}}else if(!(ue===me||d(ue,me,o,l,g))){Y=!1;break}}return g.delete(e),g.delete(t),Y}function ub(e,t,o,l,d,g,C){switch(o){case Q:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case z:return!(e.byteLength!=t.byteLength||!g(new To(e),new To(t)));case xe:case Fe:case Dt:return on(+e,+t);case be:return e.name==t.name&&e.message==t.message;case Dr:case S:return e==t+"";case Ue:var P=Ra;case St:var N=l&D;if(P||(P=So),e.size!=t.size&&!N)return!1;var j=C.get(e);if(j)return j==t;l|=x,C.set(e,t);var U=Jd(P(e),P(t),l,d,g,C);return C.delete(e),U;case L:if(xi)return xi.call(e)==xi.call(t)}return!1}function cb(e,t,o,l,d,g){var C=o&D,P=Ja(e),N=P.length,j=Ja(t),U=j.length;if(N!=U&&!C)return!1;for(var H=N;H--;){var Y=P[H];if(!(C?Y in t:Le.call(t,Y)))return!1}var ie=g.get(e),ue=g.get(t);if(ie&&ue)return ie==t&&ue==e;var me=!0;g.set(e,t),g.set(t,e);for(var ce=C;++H<N;){Y=P[H];var _e=e[Y],Re=t[Y];if(l)var kt=C?l(Re,_e,Y,t,e,g):l(_e,Re,Y,e,t,g);if(!(kt===r?_e===Re||d(_e,Re,o,l,g):kt)){me=!1;break}ce||(ce=Y=="constructor")}if(me&&!ce){var _t=e.constructor,Bt=t.constructor;_t!=Bt&&"constructor"in e&&"constructor"in t&&!(typeof _t=="function"&&_t instanceof _t&&typeof Bt=="function"&&Bt instanceof Bt)&&(me=!1)}return g.delete(e),g.delete(t),me}function An(e){return sl(ih(e,r,hh),e+"")}function Ja(e){return yd(e,at,nl)}function Qa(e){return yd(e,Rt,Qd)}var el=Fo?function(e){return Fo.get(e)}:wl;function Xo(e){for(var t=e.name+"",o=jr[t],l=Le.call(jr,t)?o.length:0;l--;){var d=o[l],g=d.func;if(g==null||g==e)return d.name}return t}function zr(e){var t=Le.call(h,"placeholder")?h:e;return t.placeholder}function le(){var e=h.iteratee||ml;return e=e===ml?bd:e,arguments.length?e(arguments[0],arguments[1]):e}function Zo(e,t){var o=e.__data__;return yb(t)?o[typeof t=="string"?"string":"hash"]:o.map}function tl(e){for(var t=at(e),o=t.length;o--;){var l=t[o],d=e[l];t[o]=[l,d,nh(d)]}return t}function hr(e,t){var o=bx(e,t);return xd(o)?o:r}function fb(e){var t=Le.call(e,lr),o=e[lr];try{e[lr]=r;var l=!0}catch{}var d=Po.call(e);return l&&(t?e[lr]=o:delete e[lr]),d}var nl=Oa?function(e){return e==null?[]:(e=Be(e),Wn(Oa(e),function(t){return od.call(e,t)}))}:xl,Qd=Oa?function(e){for(var t=[];e;)jn(t,nl(e)),e=Io(e);return t}:xl,vt=xt;(Ta&&vt(new Ta(new ArrayBuffer(1)))!=Q||mi&&vt(new mi)!=Ue||Ia&&vt(Ia.resolve())!=Ir||Wr&&vt(new Wr)!=St||yi&&vt(new yi)!=X)&&(vt=function(e){var t=xt(e),o=t==st?e.constructor:r,l=o?pr(o):"";if(l)switch(l){case qx:return Q;case Gx:return Ue;case Yx:return Ir;case Xx:return St;case Zx:return X}return t});function db(e,t,o){for(var l=-1,d=o.length;++l<d;){var g=o[l],C=g.size;switch(g.type){case"drop":e+=C;break;case"dropRight":t-=C;break;case"take":t=gt(t,e+C);break;case"takeRight":e=rt(e,t-C);break}}return{start:e,end:t}}function hb(e){var t=e.match(ww);return t?t[1].split(xw):[]}function eh(e,t,o){t=Kn(t,e);for(var l=-1,d=t.length,g=!1;++l<d;){var C=vn(t[l]);if(!(g=e!=null&&o(e,C)))break;e=e[C]}return g||++l!=d?g:(d=e==null?0:e.length,!!d&&is(d)&&Rn(C,d)&&(ge(e)||gr(e)))}function pb(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&Le.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function th(e){return typeof e.constructor=="function"&&!Ri(e)?Ur(Io(e)):{}}function gb(e,t,o){var l=e.constructor;switch(t){case z:return Ya(e);case xe:case Fe:return new l(+e);case Q:return J0(e,o);case Ee:case He:case et:case di:case or:case sr:case hi:case Nr:case pi:return kd(e,o);case Ue:return new l;case Dt:case S:return new l(e);case Dr:return Q0(e);case St:return new l;case L:return eb(e)}}function vb(e,t){var o=t.length;if(!o)return e;var l=o-1;return t[l]=(o>1?"& ":"")+t[l],t=t.join(o>2?", ":" "),e.replace(yw,`{
|
|
62
62
|
/* [wrapped with `+t+`] */
|
|
63
|
-
`)}function mb(e){return ge(e)||gr(e)||!!(sd&&e&&e[sd])}function Rn(e,t){var o=typeof e;return t=t??oe,!!t&&(o=="number"||o!="symbol"&&Ow.test(e))&&e>-1&&e%1==0&&e<t}function bt(e,t,o){if(!Ke(o))return!1;var l=typeof t;return(l=="number"?At(o)&&Rn(t,o.length):l=="string"&&t in o)?on(o[t],e):!1}function nl(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ft(e)?!0:pw.test(e)||!hw.test(e)||t!=null&&e in Be(t)}function yb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function rl(e){var t=Xo(e),o=h[t];if(typeof o!="function"||!(t in Ae.prototype))return!1;if(e===o)return!0;var l=Qa(o);return!!l&&e===l[0]}function wb(e){return!!nd&&nd in e}var xb=Ao?Pn:xl;function Ri(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Vr;return e===o}function nh(e){return e===e&&!Ke(e)}function rh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in Be(o))}}function bb(e){var t=ns(e,function(l){return o.size===v&&o.clear(),l}),o=t.cache;return t}function _b(e,t){var o=e[1],l=t[1],d=o|l,g=d<(E|A|B),_=l==B&&o==I||l==B&&o==K&&e[7].length<=t[8]||l==(B|K)&&t[7].length<=t[8]&&o==I;if(!(g||_))return e;l&E&&(e[2]=t[2],d|=o&E?0:O);var P=t[3];if(P){var N=e[3];e[3]=N?Vd(N,P,t[4]):P,e[4]=N?Un(e[3],m):t[4]}return P=t[5],P&&(N=e[5],e[5]=N?Wd(N,P,t[6]):P,e[6]=N?Un(e[5],m):t[6]),P=t[7],P&&(e[7]=P),l&B&&(e[8]=e[8]==null?t[8]:gt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=d,e}function Cb(e){var t=[];if(e!=null)for(var o in Be(e))t.push(o);return t}function Sb(e){return Po.call(e)}function ih(e,t,o){return t=rt(t===r?e.length-1:t,0),function(){for(var l=arguments,d=-1,g=rt(l.length-t,0),_=k(g);++d<g;)_[d]=l[t+d];d=-1;for(var P=k(t+1);++d<t;)P[d]=l[d];return P[t]=o(_),Nt(e,this,P)}}function oh(e,t){return t.length<2?e:dr(e,Kt(t,0,-1))}function Eb(e,t){for(var o=e.length,l=gt(t.length,o),d=Et(e);l--;){var g=t[l];e[l]=Rn(g,o)?d[g]:r}return e}function il(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var sh=lh(Od),Pi=Wx||function(e,t){return ct.setTimeout(e,t)},ol=lh(G0);function ah(e,t,o){var l=t+"";return ol(e,vb(l,Ab(hb(l),o)))}function lh(e){var t=0,o=0;return function(){var l=Hx(),d=Z-(l-o);if(o=l,d>0){if(++t>=X)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Jo(e,t){var o=-1,l=e.length,d=l-1;for(t=t===r?l:t;++o<t;){var g=ja(o,d),_=e[g];e[g]=e[o],e[o]=_}return e.length=t,e}var uh=bb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gw,function(o,l,d,g){t.push(d?g.replace(Cw,"$1"):l||o)}),t});function vn(e){if(typeof e=="string"||Ft(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pr(e){if(e!=null){try{return Ro.call(e)}catch{}try{return e+""}catch{}}return""}function Ab(e,t){return Ut(Ct,function(o){var l="_."+o[0];t&o[1]&&!_o(e,l)&&e.push(l)}),e.sort()}function ch(e){if(e instanceof Ae)return e.clone();var t=new Ht(e.__wrapped__,e.__chain__);return t.__actions__=Et(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Rb(e,t,o){(o?bt(e,t,o):t===r)?t=1:t=rt(ve(t),0);var l=e==null?0:e.length;if(!l||t<1)return[];for(var d=0,g=0,_=k(Mo(l/t));d<l;)_[g++]=Kt(e,d,d+=t);return _}function Pb(e){for(var t=-1,o=e==null?0:e.length,l=0,d=[];++t<o;){var g=e[t];g&&(d[l++]=g)}return d}function Ob(){var e=arguments.length;if(!e)return[];for(var t=k(e-1),o=arguments[0],l=e;l--;)t[l-1]=arguments[l];return jn(ge(o)?Et(o):[o],ft(t,1))}var Tb=we(function(e,t){return Xe(e)?_i(e,ft(t,1,Xe,!0)):[]}),Ib=we(function(e,t){var o=qt(t);return Xe(o)&&(o=r),Xe(e)?_i(e,ft(t,1,Xe,!0),ae(o,2)):[]}),Db=we(function(e,t){var o=qt(t);return Xe(o)&&(o=r),Xe(e)?_i(e,ft(t,1,Xe,!0),r,o):[]});function Nb(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),Kt(e,t<0?0:t,l)):[]}function Mb(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),t=l-t,Kt(e,0,t<0?0:t)):[]}function Lb(e,t){return e&&e.length?Ho(e,ae(t,3),!0,!0):[]}function Fb(e,t){return e&&e.length?Ho(e,ae(t,3),!0):[]}function kb(e,t,o,l){var d=e==null?0:e.length;return d?(o&&typeof o!="number"&&bt(e,t,o)&&(o=0,l=d),O0(e,t,o,l)):[]}function fh(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=o==null?0:ve(o);return d<0&&(d=rt(l+d,0)),Co(e,ae(t,3),d)}function dh(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=l-1;return o!==r&&(d=ve(o),d=o<0?rt(l+d,0):gt(d,l-1)),Co(e,ae(t,3),d,!0)}function hh(e){var t=e==null?0:e.length;return t?ft(e,1):[]}function Bb(e){var t=e==null?0:e.length;return t?ft(e,ce):[]}function Vb(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ve(t),ft(e,t)):[]}function Wb(e){for(var t=-1,o=e==null?0:e.length,l={};++t<o;){var d=e[t];l[d[0]]=d[1]}return l}function ph(e){return e&&e.length?e[0]:r}function jb(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=o==null?0:ve(o);return d<0&&(d=rt(l+d,0)),Lr(e,t,d)}function Ub(e){var t=e==null?0:e.length;return t?Kt(e,0,-1):[]}var $b=we(function(e){var t=ze(e,Ka);return t.length&&t[0]===e[0]?Fa(t):[]}),Hb=we(function(e){var t=qt(e),o=ze(e,Ka);return t===qt(o)?t=r:o.pop(),o.length&&o[0]===e[0]?Fa(o,ae(t,2)):[]}),zb=we(function(e){var t=qt(e),o=ze(e,Ka);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?Fa(o,r,t):[]});function Kb(e,t){return e==null?"":Ux.call(e,t)}function qt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function qb(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=l;return o!==r&&(d=ve(o),d=d<0?rt(l+d,0):gt(d,l-1)),t===t?Ax(e,t,d):Co(e,Gf,d,!0)}function Gb(e,t){return e&&e.length?Ed(e,ve(t)):r}var Yb=we(gh);function gh(e,t){return e&&e.length&&t&&t.length?Wa(e,t):e}function Xb(e,t,o){return e&&e.length&&t&&t.length?Wa(e,t,ae(o,2)):e}function Zb(e,t,o){return e&&e.length&&t&&t.length?Wa(e,t,r,o):e}var Jb=An(function(e,t){var o=e==null?0:e.length,l=Da(e,t);return Pd(e,ze(t,function(d){return Rn(d,o)?+d:d}).sort(Bd)),l});function Qb(e,t){var o=[];if(!(e&&e.length))return o;var l=-1,d=[],g=e.length;for(t=ae(t,3);++l<g;){var _=e[l];t(_,l,e)&&(o.push(_),d.push(l))}return Pd(e,d),o}function sl(e){return e==null?e:Kx.call(e)}function e_(e,t,o){var l=e==null?0:e.length;return l?(o&&typeof o!="number"&&bt(e,t,o)?(t=0,o=l):(t=t==null?0:ve(t),o=o===r?l:ve(o)),Kt(e,t,o)):[]}function t_(e,t){return $o(e,t)}function n_(e,t,o){return $a(e,t,ae(o,2))}function r_(e,t){var o=e==null?0:e.length;if(o){var l=$o(e,t);if(l<o&&on(e[l],t))return l}return-1}function i_(e,t){return $o(e,t,!0)}function o_(e,t,o){return $a(e,t,ae(o,2),!0)}function s_(e,t){var o=e==null?0:e.length;if(o){var l=$o(e,t,!0)-1;if(on(e[l],t))return l}return-1}function a_(e){return e&&e.length?Td(e):[]}function l_(e,t){return e&&e.length?Td(e,ae(t,2)):[]}function u_(e){var t=e==null?0:e.length;return t?Kt(e,1,t):[]}function c_(e,t,o){return e&&e.length?(t=o||t===r?1:ve(t),Kt(e,0,t<0?0:t)):[]}function f_(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),t=l-t,Kt(e,t<0?0:t,l)):[]}function d_(e,t){return e&&e.length?Ho(e,ae(t,3),!1,!0):[]}function h_(e,t){return e&&e.length?Ho(e,ae(t,3)):[]}var p_=we(function(e){return zn(ft(e,1,Xe,!0))}),g_=we(function(e){var t=qt(e);return Xe(t)&&(t=r),zn(ft(e,1,Xe,!0),ae(t,2))}),v_=we(function(e){var t=qt(e);return t=typeof t=="function"?t:r,zn(ft(e,1,Xe,!0),r,t)});function m_(e){return e&&e.length?zn(e):[]}function y_(e,t){return e&&e.length?zn(e,ae(t,2)):[]}function w_(e,t){return t=typeof t=="function"?t:r,e&&e.length?zn(e,r,t):[]}function al(e){if(!(e&&e.length))return[];var t=0;return e=Wn(e,function(o){if(Xe(o))return t=rt(o.length,t),!0}),Sa(t,function(o){return ze(e,ba(o))})}function vh(e,t){if(!(e&&e.length))return[];var o=al(e);return t==null?o:ze(o,function(l){return Nt(t,r,l)})}var x_=we(function(e,t){return Xe(e)?_i(e,t):[]}),b_=we(function(e){return za(Wn(e,Xe))}),__=we(function(e){var t=qt(e);return Xe(t)&&(t=r),za(Wn(e,Xe),ae(t,2))}),C_=we(function(e){var t=qt(e);return t=typeof t=="function"?t:r,za(Wn(e,Xe),r,t)}),S_=we(al);function E_(e,t){return Md(e||[],t||[],bi)}function A_(e,t){return Md(e||[],t||[],Ei)}var R_=we(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,vh(e,o)});function mh(e){var t=h(e);return t.__chain__=!0,t}function P_(e,t){return t(e),e}function Qo(e,t){return t(e)}var O_=An(function(e){var t=e.length,o=t?e[0]:0,l=this.__wrapped__,d=function(g){return Da(g,e)};return t>1||this.__actions__.length||!(l instanceof Ae)||!Rn(o)?this.thru(d):(l=l.slice(o,+o+(t?1:0)),l.__actions__.push({func:Qo,args:[d],thisArg:r}),new Ht(l,this.__chain__).thru(function(g){return t&&!g.length&&g.push(r),g}))});function T_(){return mh(this)}function I_(){return new Ht(this.value(),this.__chain__)}function D_(){this.__values__===r&&(this.__values__=Ih(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function N_(){return this}function M_(e){for(var t,o=this;o instanceof Bo;){var l=ch(o);l.__index__=0,l.__values__=r,t?d.__wrapped__=l:t=l;var d=l;o=o.__wrapped__}return d.__wrapped__=e,t}function L_(){var e=this.__wrapped__;if(e instanceof Ae){var t=e;return this.__actions__.length&&(t=new Ae(this)),t=t.reverse(),t.__actions__.push({func:Qo,args:[sl],thisArg:r}),new Ht(t,this.__chain__)}return this.thru(sl)}function F_(){return Nd(this.__wrapped__,this.__actions__)}var k_=zo(function(e,t,o){Le.call(e,o)?++e[o]:Sn(e,o,1)});function B_(e,t,o){var l=ge(e)?Kf:P0;return o&&bt(e,t,o)&&(t=r),l(e,ae(t,3))}function V_(e,t){var o=ge(e)?Wn:vd;return o(e,ae(t,3))}var W_=Hd(fh),j_=Hd(dh);function U_(e,t){return ft(es(e,t),1)}function $_(e,t){return ft(es(e,t),ce)}function H_(e,t,o){return o=o===r?1:ve(o),ft(es(e,t),o)}function yh(e,t){var o=ge(e)?Ut:Hn;return o(e,ae(t,3))}function wh(e,t){var o=ge(e)?ux:gd;return o(e,ae(t,3))}var z_=zo(function(e,t,o){Le.call(e,o)?e[o].push(t):Sn(e,o,[t])});function K_(e,t,o,l){e=At(e)?e:qr(e),o=o&&!l?ve(o):0;var d=e.length;return o<0&&(o=rt(d+o,0)),os(e)?o<=d&&e.indexOf(t,o)>-1:!!d&&Lr(e,t,o)>-1}var q_=we(function(e,t,o){var l=-1,d=typeof t=="function",g=At(e)?k(e.length):[];return Hn(e,function(_){g[++l]=d?Nt(t,_,o):Ci(_,t,o)}),g}),G_=zo(function(e,t,o){Sn(e,o,t)});function es(e,t){var o=ge(e)?ze:_d;return o(e,ae(t,3))}function Y_(e,t,o,l){return e==null?[]:(ge(t)||(t=t==null?[]:[t]),o=l?r:o,ge(o)||(o=o==null?[]:[o]),Ad(e,t,o))}var X_=zo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function Z_(e,t,o){var l=ge(e)?wa:Xf,d=arguments.length<3;return l(e,ae(t,4),o,d,Hn)}function J_(e,t,o){var l=ge(e)?cx:Xf,d=arguments.length<3;return l(e,ae(t,4),o,d,gd)}function Q_(e,t){var o=ge(e)?Wn:vd;return o(e,rs(ae(t,3)))}function eC(e){var t=ge(e)?fd:K0;return t(e)}function tC(e,t,o){(o?bt(e,t,o):t===r)?t=1:t=ve(t);var l=ge(e)?C0:q0;return l(e,t)}function nC(e){var t=ge(e)?S0:Y0;return t(e)}function rC(e){if(e==null)return 0;if(At(e))return os(e)?kr(e):e.length;var t=vt(e);return t==Ue||t==St?e.size:Ba(e).length}function iC(e,t,o){var l=ge(e)?xa:X0;return o&&bt(e,t,o)&&(t=r),l(e,ae(t,3))}var oC=we(function(e,t){if(e==null)return[];var o=t.length;return o>1&&bt(e,t[0],t[1])?t=[]:o>2&&bt(t[0],t[1],t[2])&&(t=[t[0]]),Ad(e,ft(t,1),[])}),ts=Vx||function(){return ct.Date.now()};function sC(e,t){if(typeof t!="function")throw new $t(c);return e=ve(e),function(){if(--e<1)return t.apply(this,arguments)}}function xh(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,En(e,B,r,r,r,r,t)}function bh(e,t){var o;if(typeof t!="function")throw new $t(c);return e=ve(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var ll=we(function(e,t,o){var l=E;if(o.length){var d=Un(o,zr(ll));l|=M}return En(e,l,t,o,d)}),_h=we(function(e,t,o){var l=E|A;if(o.length){var d=Un(o,zr(_h));l|=M}return En(t,l,e,o,d)});function Ch(e,t,o){t=o?r:t;var l=En(e,I,r,r,r,r,r,t);return l.placeholder=Ch.placeholder,l}function Sh(e,t,o){t=o?r:t;var l=En(e,F,r,r,r,r,r,t);return l.placeholder=Sh.placeholder,l}function Eh(e,t,o){var l,d,g,_,P,N,j=0,U=!1,$=!1,G=!0;if(typeof e!="function")throw new $t(c);t=Gt(t)||0,Ke(o)&&(U=!!o.leading,$="maxWait"in o,g=$?rt(Gt(o.maxWait)||0,t):g,G="trailing"in o?!!o.trailing:G);function ie(Ze){var sn=l,Tn=d;return l=d=r,j=Ze,_=e.apply(Tn,sn),_}function le(Ze){return j=Ze,P=Pi(_e,t),U?ie(Ze):_}function me(Ze){var sn=Ze-N,Tn=Ze-j,Hh=t-sn;return $?gt(Hh,g-Tn):Hh}function ue(Ze){var sn=Ze-N,Tn=Ze-j;return N===r||sn>=t||sn<0||$&&Tn>=g}function _e(){var Ze=ts();if(ue(Ze))return Re(Ze);P=Pi(_e,me(Ze))}function Re(Ze){return P=r,G&&l?ie(Ze):(l=d=r,_)}function kt(){P!==r&&Ld(P),j=0,l=N=d=P=r}function _t(){return P===r?_:Re(ts())}function Bt(){var Ze=ts(),sn=ue(Ze);if(l=arguments,d=this,N=Ze,sn){if(P===r)return le(N);if($)return Ld(P),P=Pi(_e,t),ie(N)}return P===r&&(P=Pi(_e,t)),_}return Bt.cancel=kt,Bt.flush=_t,Bt}var aC=we(function(e,t){return pd(e,1,t)}),lC=we(function(e,t,o){return pd(e,Gt(t)||0,o)});function uC(e){return En(e,te)}function ns(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new $t(c);var o=function(){var l=arguments,d=t?t.apply(this,l):l[0],g=o.cache;if(g.has(d))return g.get(d);var _=e.apply(this,l);return o.cache=g.set(d,_)||g,_};return o.cache=new(ns.Cache||Cn),o}ns.Cache=Cn;function rs(e){if(typeof e!="function")throw new $t(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cC(e){return bh(2,e)}var fC=Z0(function(e,t){t=t.length==1&&ge(t[0])?ze(t[0],Mt(ae())):ze(ft(t,1),Mt(ae()));var o=t.length;return we(function(l){for(var d=-1,g=gt(l.length,o);++d<g;)l[d]=t[d].call(this,l[d]);return Nt(e,this,l)})}),ul=we(function(e,t){var o=Un(t,zr(ul));return En(e,M,r,t,o)}),Ah=we(function(e,t){var o=Un(t,zr(Ah));return En(e,H,r,t,o)}),dC=An(function(e,t){return En(e,K,r,r,r,t)});function hC(e,t){if(typeof e!="function")throw new $t(c);return t=t===r?t:ve(t),we(e,t)}function pC(e,t){if(typeof e!="function")throw new $t(c);return t=t==null?0:rt(ve(t),0),we(function(o){var l=o[t],d=qn(o,0,t);return l&&jn(d,l),Nt(e,this,d)})}function gC(e,t,o){var l=!0,d=!0;if(typeof e!="function")throw new $t(c);return Ke(o)&&(l="leading"in o?!!o.leading:l,d="trailing"in o?!!o.trailing:d),Eh(e,t,{leading:l,maxWait:t,trailing:d})}function vC(e){return xh(e,1)}function mC(e,t){return ul(qa(t),e)}function yC(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function wC(e){return zt(e,R)}function xC(e,t){return t=typeof t=="function"?t:r,zt(e,R,t)}function bC(e){return zt(e,w|R)}function _C(e,t){return t=typeof t=="function"?t:r,zt(e,w|R,t)}function CC(e,t){return t==null||hd(e,t,at(t))}function on(e,t){return e===t||e!==e&&t!==t}var SC=Yo(La),EC=Yo(function(e,t){return e>=t}),gr=wd(function(){return arguments}())?wd:function(e){return Ge(e)&&Le.call(e,"callee")&&!od.call(e,"callee")},ge=k.isArray,AC=Wf?Mt(Wf):M0;function At(e){return e!=null&&is(e.length)&&!Pn(e)}function Xe(e){return Ge(e)&&At(e)}function RC(e){return e===!0||e===!1||Ge(e)&&xt(e)==xe}var Gn=jx||xl,PC=jf?Mt(jf):L0;function OC(e){return Ge(e)&&e.nodeType===1&&!Oi(e)}function TC(e){if(e==null)return!0;if(At(e)&&(ge(e)||typeof e=="string"||typeof e.splice=="function"||Gn(e)||Kr(e)||gr(e)))return!e.length;var t=vt(e);if(t==Ue||t==St)return!e.size;if(Ri(e))return!Ba(e).length;for(var o in e)if(Le.call(e,o))return!1;return!0}function IC(e,t){return Si(e,t)}function DC(e,t,o){o=typeof o=="function"?o:r;var l=o?o(e,t):r;return l===r?Si(e,t,r,o):!!l}function cl(e){if(!Ge(e))return!1;var t=xt(e);return t==be||t==Pe||typeof e.message=="string"&&typeof e.name=="string"&&!Oi(e)}function NC(e){return typeof e=="number"&&ad(e)}function Pn(e){if(!Ke(e))return!1;var t=xt(e);return t==Se||t==ot||t==ee||t==Vn}function Rh(e){return typeof e=="number"&&e==ve(e)}function is(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oe}function Ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ge(e){return e!=null&&typeof e=="object"}var Ph=Uf?Mt(Uf):k0;function MC(e,t){return e===t||ka(e,t,el(t))}function LC(e,t,o){return o=typeof o=="function"?o:r,ka(e,t,el(t),o)}function FC(e){return Oh(e)&&e!=+e}function kC(e){if(xb(e))throw new pe(u);return xd(e)}function BC(e){return e===null}function VC(e){return e==null}function Oh(e){return typeof e=="number"||Ge(e)&&xt(e)==Dt}function Oi(e){if(!Ge(e)||xt(e)!=st)return!1;var t=Io(e);if(t===null)return!0;var o=Le.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Ro.call(o)==Lx}var fl=$f?Mt($f):B0;function WC(e){return Rh(e)&&e>=-9007199254740991&&e<=oe}var Th=Hf?Mt(Hf):V0;function os(e){return typeof e=="string"||!ge(e)&&Ge(e)&&xt(e)==S}function Ft(e){return typeof e=="symbol"||Ge(e)&&xt(e)==L}var Kr=zf?Mt(zf):W0;function jC(e){return e===r}function UC(e){return Ge(e)&&vt(e)==Y}function $C(e){return Ge(e)&&xt(e)==q}var HC=Yo(Va),zC=Yo(function(e,t){return e<=t});function Ih(e){if(!e)return[];if(At(e))return os(e)?nn(e):Et(e);if(vi&&e[vi])return Cx(e[vi]());var t=vt(e),o=t==Ue?Aa:t==St?So:qr;return o(e)}function On(e){if(!e)return e===0?e:0;if(e=Gt(e),e===ce||e===-1/0){var t=e<0?-1:1;return t*ye}return e===e?e:0}function ve(e){var t=On(e),o=t%1;return t===t?o?t-o:t:0}function Dh(e){return e?fr(ve(e),0,Me):0}function Gt(e){if(typeof e=="number")return e;if(Ft(e))return Ne;if(Ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zf(e);var o=Aw.test(e);return o||Pw.test(e)?sx(e.slice(2),o?2:8):Ew.test(e)?Ne:+e}function Nh(e){return gn(e,Rt(e))}function KC(e){return e?fr(ve(e),-9007199254740991,oe):e===0?e:0}function De(e){return e==null?"":Lt(e)}var qC=$r(function(e,t){if(Ri(t)||At(t)){gn(t,at(t),e);return}for(var o in t)Le.call(t,o)&&bi(e,o,t[o])}),Mh=$r(function(e,t){gn(t,Rt(t),e)}),ss=$r(function(e,t,o,l){gn(t,Rt(t),e,l)}),GC=$r(function(e,t,o,l){gn(t,at(t),e,l)}),YC=An(Da);function XC(e,t){var o=Ur(e);return t==null?o:dd(o,t)}var ZC=we(function(e,t){e=Be(e);var o=-1,l=t.length,d=l>2?t[2]:r;for(d&&bt(t[0],t[1],d)&&(l=1);++o<l;)for(var g=t[o],_=Rt(g),P=-1,N=_.length;++P<N;){var j=_[P],U=e[j];(U===r||on(U,Vr[j])&&!Le.call(e,j))&&(e[j]=g[j])}return e}),JC=we(function(e){return e.push(r,Zd),Nt(Lh,r,e)});function QC(e,t){return qf(e,ae(t,3),pn)}function eS(e,t){return qf(e,ae(t,3),Ma)}function tS(e,t){return e==null?e:Na(e,ae(t,3),Rt)}function nS(e,t){return e==null?e:md(e,ae(t,3),Rt)}function rS(e,t){return e&&pn(e,ae(t,3))}function iS(e,t){return e&&Ma(e,ae(t,3))}function oS(e){return e==null?[]:jo(e,at(e))}function sS(e){return e==null?[]:jo(e,Rt(e))}function dl(e,t,o){var l=e==null?r:dr(e,t);return l===r?o:l}function aS(e,t){return e!=null&&eh(e,t,T0)}function hl(e,t){return e!=null&&eh(e,t,I0)}var lS=Kd(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Po.call(t)),e[t]=o},gl(Pt)),uS=Kd(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Po.call(t)),Le.call(e,t)?e[t].push(o):e[t]=[o]},ae),cS=we(Ci);function at(e){return At(e)?cd(e):Ba(e)}function Rt(e){return At(e)?cd(e,!0):j0(e)}function fS(e,t){var o={};return t=ae(t,3),pn(e,function(l,d,g){Sn(o,t(l,d,g),l)}),o}function dS(e,t){var o={};return t=ae(t,3),pn(e,function(l,d,g){Sn(o,d,t(l,d,g))}),o}var hS=$r(function(e,t,o){Uo(e,t,o)}),Lh=$r(function(e,t,o,l){Uo(e,t,o,l)}),pS=An(function(e,t){var o={};if(e==null)return o;var l=!1;t=ze(t,function(g){return g=Kn(g,e),l||(l=g.length>1),g}),gn(e,Ja(e),o),l&&(o=zt(o,w|C|R,lb));for(var d=t.length;d--;)Ha(o,t[d]);return o});function gS(e,t){return Fh(e,rs(ae(t)))}var vS=An(function(e,t){return e==null?{}:$0(e,t)});function Fh(e,t){if(e==null)return{};var o=ze(Ja(e),function(l){return[l]});return t=ae(t),Rd(e,o,function(l,d){return t(l,d[0])})}function mS(e,t,o){t=Kn(t,e);var l=-1,d=t.length;for(d||(d=1,e=r);++l<d;){var g=e==null?r:e[vn(t[l])];g===r&&(l=d,g=o),e=Pn(g)?g.call(e):g}return e}function yS(e,t,o){return e==null?e:Ei(e,t,o)}function wS(e,t,o,l){return l=typeof l=="function"?l:r,e==null?e:Ei(e,t,o,l)}var kh=Yd(at),Bh=Yd(Rt);function xS(e,t,o){var l=ge(e),d=l||Gn(e)||Kr(e);if(t=ae(t,4),o==null){var g=e&&e.constructor;d?o=l?new g:[]:Ke(e)?o=Pn(g)?Ur(Io(e)):{}:o={}}return(d?Ut:pn)(e,function(_,P,N){return t(o,_,P,N)}),o}function bS(e,t){return e==null?!0:Ha(e,t)}function _S(e,t,o){return e==null?e:Dd(e,t,qa(o))}function CS(e,t,o,l){return l=typeof l=="function"?l:r,e==null?e:Dd(e,t,qa(o),l)}function qr(e){return e==null?[]:Ea(e,at(e))}function SS(e){return e==null?[]:Ea(e,Rt(e))}function ES(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=Gt(o),o=o===o?o:0),t!==r&&(t=Gt(t),t=t===t?t:0),fr(Gt(e),t,o)}function AS(e,t,o){return t=On(t),o===r?(o=t,t=0):o=On(o),e=Gt(e),D0(e,t,o)}function RS(e,t,o){if(o&&typeof o!="boolean"&&bt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=On(e),t===r?(t=e,e=0):t=On(t)),e>t){var l=e;e=t,t=l}if(o||e%1||t%1){var d=ld();return gt(e+d*(t-e+ox("1e-"+((d+"").length-1))),t)}return ja(e,t)}var PS=Hr(function(e,t,o){return t=t.toLowerCase(),e+(o?Vh(t):t)});function Vh(e){return pl(De(e).toLowerCase())}function Wh(e){return e=De(e),e&&e.replace(Tw,yx).replace(Yw,"")}function OS(e,t,o){e=De(e),t=Lt(t);var l=e.length;o=o===r?l:fr(ve(o),0,l);var d=o;return o-=t.length,o>=0&&e.slice(o,d)==t}function TS(e){return e=De(e),e&&cw.test(e)?e.replace(mf,wx):e}function IS(e){return e=De(e),e&&vw.test(e)?e.replace(ua,"\\$&"):e}var DS=Hr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),NS=Hr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),MS=$d("toLowerCase");function LS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;if(!t||l>=t)return e;var d=(t-l)/2;return Go(Lo(d),o)+e+Go(Mo(d),o)}function FS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;return t&&l<t?e+Go(t-l,o):e}function kS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;return t&&l<t?Go(t-l,o)+e:e}function BS(e,t,o){return o||t==null?t=0:t&&(t=+t),zx(De(e).replace(ca,""),t||0)}function VS(e,t,o){return(o?bt(e,t,o):t===r)?t=1:t=ve(t),Ua(De(e),t)}function WS(){var e=arguments,t=De(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var jS=Hr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function US(e,t,o){return o&&typeof o!="number"&&bt(e,t,o)&&(t=o=r),o=o===r?Me:o>>>0,o?(e=De(e),e&&(typeof t=="string"||t!=null&&!fl(t))&&(t=Lt(t),!t&&Fr(e))?qn(nn(e),0,o):e.split(t,o)):[]}var $S=Hr(function(e,t,o){return e+(o?" ":"")+pl(t)});function HS(e,t,o){return e=De(e),o=o==null?0:fr(ve(o),0,e.length),t=Lt(t),e.slice(o,o+t.length)==t}function zS(e,t,o){var l=h.templateSettings;o&&bt(e,t,o)&&(t=r),e=De(e),t=ss({},t,l,Xd);var d=ss({},t.imports,l.imports,Xd),g=at(d),_=Ea(d,g),P,N,j=0,U=t.interpolate||wo,$="__p += '",G=Ra((t.escape||wo).source+"|"+U.source+"|"+(U===yf?Sw:wo).source+"|"+(t.evaluate||wo).source+"|$","g"),ie="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ex+"]")+`
|
|
64
|
-
`;e.replace(
|
|
63
|
+
`)}function mb(e){return ge(e)||gr(e)||!!(sd&&e&&e[sd])}function Rn(e,t){var o=typeof e;return t=t??oe,!!t&&(o=="number"||o!="symbol"&&Ow.test(e))&&e>-1&&e%1==0&&e<t}function bt(e,t,o){if(!Ke(o))return!1;var l=typeof t;return(l=="number"?At(o)&&Rn(t,o.length):l=="string"&&t in o)?on(o[t],e):!1}function rl(e,t){if(ge(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ft(e)?!0:pw.test(e)||!hw.test(e)||t!=null&&e in Be(t)}function yb(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function il(e){var t=Xo(e),o=h[t];if(typeof o!="function"||!(t in Ae.prototype))return!1;if(e===o)return!0;var l=el(o);return!!l&&e===l[0]}function wb(e){return!!nd&&nd in e}var xb=Ao?Pn:bl;function Ri(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Vr;return e===o}function nh(e){return e===e&&!Ke(e)}function rh(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==r||e in Be(o))}}function bb(e){var t=ns(e,function(l){return o.size===v&&o.clear(),l}),o=t.cache;return t}function _b(e,t){var o=e[1],l=t[1],d=o|l,g=d<(E|R|W),C=l==W&&o==I||l==W&&o==q&&e[7].length<=t[8]||l==(W|q)&&t[7].length<=t[8]&&o==I;if(!(g||C))return e;l&E&&(e[2]=t[2],d|=o&E?0:O);var P=t[3];if(P){var N=e[3];e[3]=N?Vd(N,P,t[4]):P,e[4]=N?Un(e[3],m):t[4]}return P=t[5],P&&(N=e[5],e[5]=N?Wd(N,P,t[6]):P,e[6]=N?Un(e[5],m):t[6]),P=t[7],P&&(e[7]=P),l&W&&(e[8]=e[8]==null?t[8]:gt(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=d,e}function Cb(e){var t=[];if(e!=null)for(var o in Be(e))t.push(o);return t}function Sb(e){return Po.call(e)}function ih(e,t,o){return t=rt(t===r?e.length-1:t,0),function(){for(var l=arguments,d=-1,g=rt(l.length-t,0),C=F(g);++d<g;)C[d]=l[t+d];d=-1;for(var P=F(t+1);++d<t;)P[d]=l[d];return P[t]=o(C),Nt(e,this,P)}}function oh(e,t){return t.length<2?e:dr(e,zt(t,0,-1))}function Eb(e,t){for(var o=e.length,l=gt(t.length,o),d=Et(e);l--;){var g=t[l];e[l]=Rn(g,o)?d[g]:r}return e}function ol(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var sh=lh(Od),Pi=Wx||function(e,t){return ct.setTimeout(e,t)},sl=lh(G0);function ah(e,t,o){var l=t+"";return sl(e,vb(l,Ab(hb(l),o)))}function lh(e){var t=0,o=0;return function(){var l=Hx(),d=J-(l-o);if(o=l,d>0){if(++t>=Z)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Jo(e,t){var o=-1,l=e.length,d=l-1;for(t=t===r?l:t;++o<t;){var g=Ua(o,d),C=e[g];e[g]=e[o],e[o]=C}return e.length=t,e}var uh=bb(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gw,function(o,l,d,g){t.push(d?g.replace(Cw,"$1"):l||o)}),t});function vn(e){if(typeof e=="string"||Ft(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function pr(e){if(e!=null){try{return Ro.call(e)}catch{}try{return e+""}catch{}}return""}function Ab(e,t){return jt(Ct,function(o){var l="_."+o[0];t&o[1]&&!_o(e,l)&&e.push(l)}),e.sort()}function ch(e){if(e instanceof Ae)return e.clone();var t=new $t(e.__wrapped__,e.__chain__);return t.__actions__=Et(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Rb(e,t,o){(o?bt(e,t,o):t===r)?t=1:t=rt(ve(t),0);var l=e==null?0:e.length;if(!l||t<1)return[];for(var d=0,g=0,C=F(Mo(l/t));d<l;)C[g++]=zt(e,d,d+=t);return C}function Pb(e){for(var t=-1,o=e==null?0:e.length,l=0,d=[];++t<o;){var g=e[t];g&&(d[l++]=g)}return d}function Ob(){var e=arguments.length;if(!e)return[];for(var t=F(e-1),o=arguments[0],l=e;l--;)t[l-1]=arguments[l];return jn(ge(o)?Et(o):[o],ft(t,1))}var Tb=we(function(e,t){return Xe(e)?_i(e,ft(t,1,Xe,!0)):[]}),Ib=we(function(e,t){var o=Kt(t);return Xe(o)&&(o=r),Xe(e)?_i(e,ft(t,1,Xe,!0),le(o,2)):[]}),Db=we(function(e,t){var o=Kt(t);return Xe(o)&&(o=r),Xe(e)?_i(e,ft(t,1,Xe,!0),r,o):[]});function Nb(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),zt(e,t<0?0:t,l)):[]}function Mb(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),t=l-t,zt(e,0,t<0?0:t)):[]}function Lb(e,t){return e&&e.length?Ho(e,le(t,3),!0,!0):[]}function Fb(e,t){return e&&e.length?Ho(e,le(t,3),!0):[]}function kb(e,t,o,l){var d=e==null?0:e.length;return d?(o&&typeof o!="number"&&bt(e,t,o)&&(o=0,l=d),O0(e,t,o,l)):[]}function fh(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=o==null?0:ve(o);return d<0&&(d=rt(l+d,0)),Co(e,le(t,3),d)}function dh(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=l-1;return o!==r&&(d=ve(o),d=o<0?rt(l+d,0):gt(d,l-1)),Co(e,le(t,3),d,!0)}function hh(e){var t=e==null?0:e.length;return t?ft(e,1):[]}function Bb(e){var t=e==null?0:e.length;return t?ft(e,de):[]}function Vb(e,t){var o=e==null?0:e.length;return o?(t=t===r?1:ve(t),ft(e,t)):[]}function Wb(e){for(var t=-1,o=e==null?0:e.length,l={};++t<o;){var d=e[t];l[d[0]]=d[1]}return l}function ph(e){return e&&e.length?e[0]:r}function jb(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=o==null?0:ve(o);return d<0&&(d=rt(l+d,0)),Lr(e,t,d)}function Ub(e){var t=e==null?0:e.length;return t?zt(e,0,-1):[]}var $b=we(function(e){var t=ze(e,qa);return t.length&&t[0]===e[0]?ka(t):[]}),Hb=we(function(e){var t=Kt(e),o=ze(e,qa);return t===Kt(o)?t=r:o.pop(),o.length&&o[0]===e[0]?ka(o,le(t,2)):[]}),zb=we(function(e){var t=Kt(e),o=ze(e,qa);return t=typeof t=="function"?t:r,t&&o.pop(),o.length&&o[0]===e[0]?ka(o,r,t):[]});function Kb(e,t){return e==null?"":Ux.call(e,t)}function Kt(e){var t=e==null?0:e.length;return t?e[t-1]:r}function qb(e,t,o){var l=e==null?0:e.length;if(!l)return-1;var d=l;return o!==r&&(d=ve(o),d=d<0?rt(l+d,0):gt(d,l-1)),t===t?Ax(e,t,d):Co(e,Gf,d,!0)}function Gb(e,t){return e&&e.length?Ed(e,ve(t)):r}var Yb=we(gh);function gh(e,t){return e&&e.length&&t&&t.length?ja(e,t):e}function Xb(e,t,o){return e&&e.length&&t&&t.length?ja(e,t,le(o,2)):e}function Zb(e,t,o){return e&&e.length&&t&&t.length?ja(e,t,r,o):e}var Jb=An(function(e,t){var o=e==null?0:e.length,l=Na(e,t);return Pd(e,ze(t,function(d){return Rn(d,o)?+d:d}).sort(Bd)),l});function Qb(e,t){var o=[];if(!(e&&e.length))return o;var l=-1,d=[],g=e.length;for(t=le(t,3);++l<g;){var C=e[l];t(C,l,e)&&(o.push(C),d.push(l))}return Pd(e,d),o}function al(e){return e==null?e:Kx.call(e)}function e_(e,t,o){var l=e==null?0:e.length;return l?(o&&typeof o!="number"&&bt(e,t,o)?(t=0,o=l):(t=t==null?0:ve(t),o=o===r?l:ve(o)),zt(e,t,o)):[]}function t_(e,t){return $o(e,t)}function n_(e,t,o){return Ha(e,t,le(o,2))}function r_(e,t){var o=e==null?0:e.length;if(o){var l=$o(e,t);if(l<o&&on(e[l],t))return l}return-1}function i_(e,t){return $o(e,t,!0)}function o_(e,t,o){return Ha(e,t,le(o,2),!0)}function s_(e,t){var o=e==null?0:e.length;if(o){var l=$o(e,t,!0)-1;if(on(e[l],t))return l}return-1}function a_(e){return e&&e.length?Td(e):[]}function l_(e,t){return e&&e.length?Td(e,le(t,2)):[]}function u_(e){var t=e==null?0:e.length;return t?zt(e,1,t):[]}function c_(e,t,o){return e&&e.length?(t=o||t===r?1:ve(t),zt(e,0,t<0?0:t)):[]}function f_(e,t,o){var l=e==null?0:e.length;return l?(t=o||t===r?1:ve(t),t=l-t,zt(e,t<0?0:t,l)):[]}function d_(e,t){return e&&e.length?Ho(e,le(t,3),!1,!0):[]}function h_(e,t){return e&&e.length?Ho(e,le(t,3)):[]}var p_=we(function(e){return zn(ft(e,1,Xe,!0))}),g_=we(function(e){var t=Kt(e);return Xe(t)&&(t=r),zn(ft(e,1,Xe,!0),le(t,2))}),v_=we(function(e){var t=Kt(e);return t=typeof t=="function"?t:r,zn(ft(e,1,Xe,!0),r,t)});function m_(e){return e&&e.length?zn(e):[]}function y_(e,t){return e&&e.length?zn(e,le(t,2)):[]}function w_(e,t){return t=typeof t=="function"?t:r,e&&e.length?zn(e,r,t):[]}function ll(e){if(!(e&&e.length))return[];var t=0;return e=Wn(e,function(o){if(Xe(o))return t=rt(o.length,t),!0}),Ea(t,function(o){return ze(e,_a(o))})}function vh(e,t){if(!(e&&e.length))return[];var o=ll(e);return t==null?o:ze(o,function(l){return Nt(t,r,l)})}var x_=we(function(e,t){return Xe(e)?_i(e,t):[]}),b_=we(function(e){return Ka(Wn(e,Xe))}),__=we(function(e){var t=Kt(e);return Xe(t)&&(t=r),Ka(Wn(e,Xe),le(t,2))}),C_=we(function(e){var t=Kt(e);return t=typeof t=="function"?t:r,Ka(Wn(e,Xe),r,t)}),S_=we(ll);function E_(e,t){return Md(e||[],t||[],bi)}function A_(e,t){return Md(e||[],t||[],Ei)}var R_=we(function(e){var t=e.length,o=t>1?e[t-1]:r;return o=typeof o=="function"?(e.pop(),o):r,vh(e,o)});function mh(e){var t=h(e);return t.__chain__=!0,t}function P_(e,t){return t(e),e}function Qo(e,t){return t(e)}var O_=An(function(e){var t=e.length,o=t?e[0]:0,l=this.__wrapped__,d=function(g){return Na(g,e)};return t>1||this.__actions__.length||!(l instanceof Ae)||!Rn(o)?this.thru(d):(l=l.slice(o,+o+(t?1:0)),l.__actions__.push({func:Qo,args:[d],thisArg:r}),new $t(l,this.__chain__).thru(function(g){return t&&!g.length&&g.push(r),g}))});function T_(){return mh(this)}function I_(){return new $t(this.value(),this.__chain__)}function D_(){this.__values__===r&&(this.__values__=Ih(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function N_(){return this}function M_(e){for(var t,o=this;o instanceof Bo;){var l=ch(o);l.__index__=0,l.__values__=r,t?d.__wrapped__=l:t=l;var d=l;o=o.__wrapped__}return d.__wrapped__=e,t}function L_(){var e=this.__wrapped__;if(e instanceof Ae){var t=e;return this.__actions__.length&&(t=new Ae(this)),t=t.reverse(),t.__actions__.push({func:Qo,args:[al],thisArg:r}),new $t(t,this.__chain__)}return this.thru(al)}function F_(){return Nd(this.__wrapped__,this.__actions__)}var k_=zo(function(e,t,o){Le.call(e,o)?++e[o]:Sn(e,o,1)});function B_(e,t,o){var l=ge(e)?Kf:P0;return o&&bt(e,t,o)&&(t=r),l(e,le(t,3))}function V_(e,t){var o=ge(e)?Wn:vd;return o(e,le(t,3))}var W_=Hd(fh),j_=Hd(dh);function U_(e,t){return ft(es(e,t),1)}function $_(e,t){return ft(es(e,t),de)}function H_(e,t,o){return o=o===r?1:ve(o),ft(es(e,t),o)}function yh(e,t){var o=ge(e)?jt:Hn;return o(e,le(t,3))}function wh(e,t){var o=ge(e)?ux:gd;return o(e,le(t,3))}var z_=zo(function(e,t,o){Le.call(e,o)?e[o].push(t):Sn(e,o,[t])});function K_(e,t,o,l){e=At(e)?e:qr(e),o=o&&!l?ve(o):0;var d=e.length;return o<0&&(o=rt(d+o,0)),os(e)?o<=d&&e.indexOf(t,o)>-1:!!d&&Lr(e,t,o)>-1}var q_=we(function(e,t,o){var l=-1,d=typeof t=="function",g=At(e)?F(e.length):[];return Hn(e,function(C){g[++l]=d?Nt(t,C,o):Ci(C,t,o)}),g}),G_=zo(function(e,t,o){Sn(e,o,t)});function es(e,t){var o=ge(e)?ze:_d;return o(e,le(t,3))}function Y_(e,t,o,l){return e==null?[]:(ge(t)||(t=t==null?[]:[t]),o=l?r:o,ge(o)||(o=o==null?[]:[o]),Ad(e,t,o))}var X_=zo(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function Z_(e,t,o){var l=ge(e)?xa:Xf,d=arguments.length<3;return l(e,le(t,4),o,d,Hn)}function J_(e,t,o){var l=ge(e)?cx:Xf,d=arguments.length<3;return l(e,le(t,4),o,d,gd)}function Q_(e,t){var o=ge(e)?Wn:vd;return o(e,rs(le(t,3)))}function eC(e){var t=ge(e)?fd:K0;return t(e)}function tC(e,t,o){(o?bt(e,t,o):t===r)?t=1:t=ve(t);var l=ge(e)?C0:q0;return l(e,t)}function nC(e){var t=ge(e)?S0:Y0;return t(e)}function rC(e){if(e==null)return 0;if(At(e))return os(e)?kr(e):e.length;var t=vt(e);return t==Ue||t==St?e.size:Va(e).length}function iC(e,t,o){var l=ge(e)?ba:X0;return o&&bt(e,t,o)&&(t=r),l(e,le(t,3))}var oC=we(function(e,t){if(e==null)return[];var o=t.length;return o>1&&bt(e,t[0],t[1])?t=[]:o>2&&bt(t[0],t[1],t[2])&&(t=[t[0]]),Ad(e,ft(t,1),[])}),ts=Vx||function(){return ct.Date.now()};function sC(e,t){if(typeof t!="function")throw new Ut(c);return e=ve(e),function(){if(--e<1)return t.apply(this,arguments)}}function xh(e,t,o){return t=o?r:t,t=e&&t==null?e.length:t,En(e,W,r,r,r,r,t)}function bh(e,t){var o;if(typeof t!="function")throw new Ut(c);return e=ve(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=r),o}}var ul=we(function(e,t,o){var l=E;if(o.length){var d=Un(o,zr(ul));l|=M}return En(e,l,t,o,d)}),_h=we(function(e,t,o){var l=E|R;if(o.length){var d=Un(o,zr(_h));l|=M}return En(t,l,e,o,d)});function Ch(e,t,o){t=o?r:t;var l=En(e,I,r,r,r,r,r,t);return l.placeholder=Ch.placeholder,l}function Sh(e,t,o){t=o?r:t;var l=En(e,k,r,r,r,r,r,t);return l.placeholder=Sh.placeholder,l}function Eh(e,t,o){var l,d,g,C,P,N,j=0,U=!1,H=!1,Y=!0;if(typeof e!="function")throw new Ut(c);t=qt(t)||0,Ke(o)&&(U=!!o.leading,H="maxWait"in o,g=H?rt(qt(o.maxWait)||0,t):g,Y="trailing"in o?!!o.trailing:Y);function ie(Ze){var sn=l,Tn=d;return l=d=r,j=Ze,C=e.apply(Tn,sn),C}function ue(Ze){return j=Ze,P=Pi(_e,t),U?ie(Ze):C}function me(Ze){var sn=Ze-N,Tn=Ze-j,Hh=t-sn;return H?gt(Hh,g-Tn):Hh}function ce(Ze){var sn=Ze-N,Tn=Ze-j;return N===r||sn>=t||sn<0||H&&Tn>=g}function _e(){var Ze=ts();if(ce(Ze))return Re(Ze);P=Pi(_e,me(Ze))}function Re(Ze){return P=r,Y&&l?ie(Ze):(l=d=r,C)}function kt(){P!==r&&Ld(P),j=0,l=N=d=P=r}function _t(){return P===r?C:Re(ts())}function Bt(){var Ze=ts(),sn=ce(Ze);if(l=arguments,d=this,N=Ze,sn){if(P===r)return ue(N);if(H)return Ld(P),P=Pi(_e,t),ie(N)}return P===r&&(P=Pi(_e,t)),C}return Bt.cancel=kt,Bt.flush=_t,Bt}var aC=we(function(e,t){return pd(e,1,t)}),lC=we(function(e,t,o){return pd(e,qt(t)||0,o)});function uC(e){return En(e,K)}function ns(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ut(c);var o=function(){var l=arguments,d=t?t.apply(this,l):l[0],g=o.cache;if(g.has(d))return g.get(d);var C=e.apply(this,l);return o.cache=g.set(d,C)||g,C};return o.cache=new(ns.Cache||Cn),o}ns.Cache=Cn;function rs(e){if(typeof e!="function")throw new Ut(c);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function cC(e){return bh(2,e)}var fC=Z0(function(e,t){t=t.length==1&&ge(t[0])?ze(t[0],Mt(le())):ze(ft(t,1),Mt(le()));var o=t.length;return we(function(l){for(var d=-1,g=gt(l.length,o);++d<g;)l[d]=t[d].call(this,l[d]);return Nt(e,this,l)})}),cl=we(function(e,t){var o=Un(t,zr(cl));return En(e,M,r,t,o)}),Ah=we(function(e,t){var o=Un(t,zr(Ah));return En(e,$,r,t,o)}),dC=An(function(e,t){return En(e,q,r,r,r,t)});function hC(e,t){if(typeof e!="function")throw new Ut(c);return t=t===r?t:ve(t),we(e,t)}function pC(e,t){if(typeof e!="function")throw new Ut(c);return t=t==null?0:rt(ve(t),0),we(function(o){var l=o[t],d=qn(o,0,t);return l&&jn(d,l),Nt(e,this,d)})}function gC(e,t,o){var l=!0,d=!0;if(typeof e!="function")throw new Ut(c);return Ke(o)&&(l="leading"in o?!!o.leading:l,d="trailing"in o?!!o.trailing:d),Eh(e,t,{leading:l,maxWait:t,trailing:d})}function vC(e){return xh(e,1)}function mC(e,t){return cl(Ga(t),e)}function yC(){if(!arguments.length)return[];var e=arguments[0];return ge(e)?e:[e]}function wC(e){return Ht(e,A)}function xC(e,t){return t=typeof t=="function"?t:r,Ht(e,A,t)}function bC(e){return Ht(e,w|A)}function _C(e,t){return t=typeof t=="function"?t:r,Ht(e,w|A,t)}function CC(e,t){return t==null||hd(e,t,at(t))}function on(e,t){return e===t||e!==e&&t!==t}var SC=Yo(Fa),EC=Yo(function(e,t){return e>=t}),gr=wd(function(){return arguments}())?wd:function(e){return Ge(e)&&Le.call(e,"callee")&&!od.call(e,"callee")},ge=F.isArray,AC=Wf?Mt(Wf):M0;function At(e){return e!=null&&is(e.length)&&!Pn(e)}function Xe(e){return Ge(e)&&At(e)}function RC(e){return e===!0||e===!1||Ge(e)&&xt(e)==xe}var Gn=jx||bl,PC=jf?Mt(jf):L0;function OC(e){return Ge(e)&&e.nodeType===1&&!Oi(e)}function TC(e){if(e==null)return!0;if(At(e)&&(ge(e)||typeof e=="string"||typeof e.splice=="function"||Gn(e)||Kr(e)||gr(e)))return!e.length;var t=vt(e);if(t==Ue||t==St)return!e.size;if(Ri(e))return!Va(e).length;for(var o in e)if(Le.call(e,o))return!1;return!0}function IC(e,t){return Si(e,t)}function DC(e,t,o){o=typeof o=="function"?o:r;var l=o?o(e,t):r;return l===r?Si(e,t,r,o):!!l}function fl(e){if(!Ge(e))return!1;var t=xt(e);return t==be||t==Pe||typeof e.message=="string"&&typeof e.name=="string"&&!Oi(e)}function NC(e){return typeof e=="number"&&ad(e)}function Pn(e){if(!Ke(e))return!1;var t=xt(e);return t==Se||t==ot||t==te||t==Vn}function Rh(e){return typeof e=="number"&&e==ve(e)}function is(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=oe}function Ke(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ge(e){return e!=null&&typeof e=="object"}var Ph=Uf?Mt(Uf):k0;function MC(e,t){return e===t||Ba(e,t,tl(t))}function LC(e,t,o){return o=typeof o=="function"?o:r,Ba(e,t,tl(t),o)}function FC(e){return Oh(e)&&e!=+e}function kC(e){if(xb(e))throw new pe(u);return xd(e)}function BC(e){return e===null}function VC(e){return e==null}function Oh(e){return typeof e=="number"||Ge(e)&&xt(e)==Dt}function Oi(e){if(!Ge(e)||xt(e)!=st)return!1;var t=Io(e);if(t===null)return!0;var o=Le.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Ro.call(o)==Lx}var dl=$f?Mt($f):B0;function WC(e){return Rh(e)&&e>=-9007199254740991&&e<=oe}var Th=Hf?Mt(Hf):V0;function os(e){return typeof e=="string"||!ge(e)&&Ge(e)&&xt(e)==S}function Ft(e){return typeof e=="symbol"||Ge(e)&&xt(e)==L}var Kr=zf?Mt(zf):W0;function jC(e){return e===r}function UC(e){return Ge(e)&&vt(e)==X}function $C(e){return Ge(e)&&xt(e)==G}var HC=Yo(Wa),zC=Yo(function(e,t){return e<=t});function Ih(e){if(!e)return[];if(At(e))return os(e)?nn(e):Et(e);if(vi&&e[vi])return Cx(e[vi]());var t=vt(e),o=t==Ue?Ra:t==St?So:qr;return o(e)}function On(e){if(!e)return e===0?e:0;if(e=qt(e),e===de||e===-1/0){var t=e<0?-1:1;return t*ye}return e===e?e:0}function ve(e){var t=On(e),o=t%1;return t===t?o?t-o:t:0}function Dh(e){return e?fr(ve(e),0,Me):0}function qt(e){if(typeof e=="number")return e;if(Ft(e))return Ne;if(Ke(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ke(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Zf(e);var o=Aw.test(e);return o||Pw.test(e)?sx(e.slice(2),o?2:8):Ew.test(e)?Ne:+e}function Nh(e){return gn(e,Rt(e))}function KC(e){return e?fr(ve(e),-9007199254740991,oe):e===0?e:0}function De(e){return e==null?"":Lt(e)}var qC=$r(function(e,t){if(Ri(t)||At(t)){gn(t,at(t),e);return}for(var o in t)Le.call(t,o)&&bi(e,o,t[o])}),Mh=$r(function(e,t){gn(t,Rt(t),e)}),ss=$r(function(e,t,o,l){gn(t,Rt(t),e,l)}),GC=$r(function(e,t,o,l){gn(t,at(t),e,l)}),YC=An(Na);function XC(e,t){var o=Ur(e);return t==null?o:dd(o,t)}var ZC=we(function(e,t){e=Be(e);var o=-1,l=t.length,d=l>2?t[2]:r;for(d&&bt(t[0],t[1],d)&&(l=1);++o<l;)for(var g=t[o],C=Rt(g),P=-1,N=C.length;++P<N;){var j=C[P],U=e[j];(U===r||on(U,Vr[j])&&!Le.call(e,j))&&(e[j]=g[j])}return e}),JC=we(function(e){return e.push(r,Zd),Nt(Lh,r,e)});function QC(e,t){return qf(e,le(t,3),pn)}function eS(e,t){return qf(e,le(t,3),La)}function tS(e,t){return e==null?e:Ma(e,le(t,3),Rt)}function nS(e,t){return e==null?e:md(e,le(t,3),Rt)}function rS(e,t){return e&&pn(e,le(t,3))}function iS(e,t){return e&&La(e,le(t,3))}function oS(e){return e==null?[]:jo(e,at(e))}function sS(e){return e==null?[]:jo(e,Rt(e))}function hl(e,t,o){var l=e==null?r:dr(e,t);return l===r?o:l}function aS(e,t){return e!=null&&eh(e,t,T0)}function pl(e,t){return e!=null&&eh(e,t,I0)}var lS=Kd(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Po.call(t)),e[t]=o},vl(Pt)),uS=Kd(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Po.call(t)),Le.call(e,t)?e[t].push(o):e[t]=[o]},le),cS=we(Ci);function at(e){return At(e)?cd(e):Va(e)}function Rt(e){return At(e)?cd(e,!0):j0(e)}function fS(e,t){var o={};return t=le(t,3),pn(e,function(l,d,g){Sn(o,t(l,d,g),l)}),o}function dS(e,t){var o={};return t=le(t,3),pn(e,function(l,d,g){Sn(o,d,t(l,d,g))}),o}var hS=$r(function(e,t,o){Uo(e,t,o)}),Lh=$r(function(e,t,o,l){Uo(e,t,o,l)}),pS=An(function(e,t){var o={};if(e==null)return o;var l=!1;t=ze(t,function(g){return g=Kn(g,e),l||(l=g.length>1),g}),gn(e,Qa(e),o),l&&(o=Ht(o,w|_|A,lb));for(var d=t.length;d--;)za(o,t[d]);return o});function gS(e,t){return Fh(e,rs(le(t)))}var vS=An(function(e,t){return e==null?{}:$0(e,t)});function Fh(e,t){if(e==null)return{};var o=ze(Qa(e),function(l){return[l]});return t=le(t),Rd(e,o,function(l,d){return t(l,d[0])})}function mS(e,t,o){t=Kn(t,e);var l=-1,d=t.length;for(d||(d=1,e=r);++l<d;){var g=e==null?r:e[vn(t[l])];g===r&&(l=d,g=o),e=Pn(g)?g.call(e):g}return e}function yS(e,t,o){return e==null?e:Ei(e,t,o)}function wS(e,t,o,l){return l=typeof l=="function"?l:r,e==null?e:Ei(e,t,o,l)}var kh=Yd(at),Bh=Yd(Rt);function xS(e,t,o){var l=ge(e),d=l||Gn(e)||Kr(e);if(t=le(t,4),o==null){var g=e&&e.constructor;d?o=l?new g:[]:Ke(e)?o=Pn(g)?Ur(Io(e)):{}:o={}}return(d?jt:pn)(e,function(C,P,N){return t(o,C,P,N)}),o}function bS(e,t){return e==null?!0:za(e,t)}function _S(e,t,o){return e==null?e:Dd(e,t,Ga(o))}function CS(e,t,o,l){return l=typeof l=="function"?l:r,e==null?e:Dd(e,t,Ga(o),l)}function qr(e){return e==null?[]:Aa(e,at(e))}function SS(e){return e==null?[]:Aa(e,Rt(e))}function ES(e,t,o){return o===r&&(o=t,t=r),o!==r&&(o=qt(o),o=o===o?o:0),t!==r&&(t=qt(t),t=t===t?t:0),fr(qt(e),t,o)}function AS(e,t,o){return t=On(t),o===r?(o=t,t=0):o=On(o),e=qt(e),D0(e,t,o)}function RS(e,t,o){if(o&&typeof o!="boolean"&&bt(e,t,o)&&(t=o=r),o===r&&(typeof t=="boolean"?(o=t,t=r):typeof e=="boolean"&&(o=e,e=r)),e===r&&t===r?(e=0,t=1):(e=On(e),t===r?(t=e,e=0):t=On(t)),e>t){var l=e;e=t,t=l}if(o||e%1||t%1){var d=ld();return gt(e+d*(t-e+ox("1e-"+((d+"").length-1))),t)}return Ua(e,t)}var PS=Hr(function(e,t,o){return t=t.toLowerCase(),e+(o?Vh(t):t)});function Vh(e){return gl(De(e).toLowerCase())}function Wh(e){return e=De(e),e&&e.replace(Tw,yx).replace(Yw,"")}function OS(e,t,o){e=De(e),t=Lt(t);var l=e.length;o=o===r?l:fr(ve(o),0,l);var d=o;return o-=t.length,o>=0&&e.slice(o,d)==t}function TS(e){return e=De(e),e&&cw.test(e)?e.replace(mf,wx):e}function IS(e){return e=De(e),e&&vw.test(e)?e.replace(ca,"\\$&"):e}var DS=Hr(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),NS=Hr(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),MS=$d("toLowerCase");function LS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;if(!t||l>=t)return e;var d=(t-l)/2;return Go(Lo(d),o)+e+Go(Mo(d),o)}function FS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;return t&&l<t?e+Go(t-l,o):e}function kS(e,t,o){e=De(e),t=ve(t);var l=t?kr(e):0;return t&&l<t?Go(t-l,o)+e:e}function BS(e,t,o){return o||t==null?t=0:t&&(t=+t),zx(De(e).replace(fa,""),t||0)}function VS(e,t,o){return(o?bt(e,t,o):t===r)?t=1:t=ve(t),$a(De(e),t)}function WS(){var e=arguments,t=De(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var jS=Hr(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function US(e,t,o){return o&&typeof o!="number"&&bt(e,t,o)&&(t=o=r),o=o===r?Me:o>>>0,o?(e=De(e),e&&(typeof t=="string"||t!=null&&!dl(t))&&(t=Lt(t),!t&&Fr(e))?qn(nn(e),0,o):e.split(t,o)):[]}var $S=Hr(function(e,t,o){return e+(o?" ":"")+gl(t)});function HS(e,t,o){return e=De(e),o=o==null?0:fr(ve(o),0,e.length),t=Lt(t),e.slice(o,o+t.length)==t}function zS(e,t,o){var l=h.templateSettings;o&&bt(e,t,o)&&(t=r),e=De(e),t=ss({},t,l,Xd);var d=ss({},t.imports,l.imports,Xd),g=at(d),C=Aa(d,g),P,N,j=0,U=t.interpolate||wo,H="__p += '",Y=Pa((t.escape||wo).source+"|"+U.source+"|"+(U===yf?Sw:wo).source+"|"+(t.evaluate||wo).source+"|$","g"),ie="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ex+"]")+`
|
|
64
|
+
`;e.replace(Y,function(ce,_e,Re,kt,_t,Bt){return Re||(Re=kt),H+=e.slice(j,Bt).replace(Iw,xx),_e&&(P=!0,H+=`' +
|
|
65
65
|
__e(`+_e+`) +
|
|
66
|
-
'`),_t&&(N=!0
|
|
66
|
+
'`),_t&&(N=!0,H+=`';
|
|
67
67
|
`+_t+`;
|
|
68
|
-
__p += '`),Re&&(
|
|
68
|
+
__p += '`),Re&&(H+=`' +
|
|
69
69
|
((__t = (`+Re+`)) == null ? '' : __t) +
|
|
70
|
-
'`),j=Bt+
|
|
71
|
-
`;var
|
|
72
|
-
|
|
70
|
+
'`),j=Bt+ce.length,ce}),H+=`';
|
|
71
|
+
`;var ue=Le.call(t,"variable")&&t.variable;if(!ue)H=`with (obj) {
|
|
72
|
+
`+H+`
|
|
73
73
|
}
|
|
74
|
-
`;else if(_w.test(
|
|
75
|
-
`+(
|
|
74
|
+
`;else if(_w.test(ue))throw new pe(f);H=(N?H.replace(yo,""):H).replace(aw,"$1").replace(lw,"$1;"),H="function("+(ue||"obj")+`) {
|
|
75
|
+
`+(ue?"":`obj || (obj = {});
|
|
76
76
|
`)+"var __t, __p = ''"+(P?", __e = _.escape":"")+(N?`, __j = Array.prototype.join;
|
|
77
77
|
function print() { __p += __j.call(arguments, '') }
|
|
78
78
|
`:`;
|
|
79
|
-
`)
|
|
80
|
-
}`;var me=Uh(function(){return Oe(g,ie+"return "+$).apply(r,_)});if(me.source=$,cl(me))throw me;return me}function KS(e){return De(e).toLowerCase()}function qS(e){return De(e).toUpperCase()}function GS(e,t,o){if(e=De(e),e&&(o||t===r))return Zf(e);if(!e||!(t=Lt(t)))return e;var l=nn(e),d=nn(t),g=Jf(l,d),_=Qf(l,d)+1;return qn(l,g,_).join("")}function YS(e,t,o){if(e=De(e),e&&(o||t===r))return e.slice(0,td(e)+1);if(!e||!(t=Lt(t)))return e;var l=nn(e),d=Qf(l,nn(t))+1;return qn(l,0,d).join("")}function XS(e,t,o){if(e=De(e),e&&(o||t===r))return e.replace(ca,"");if(!e||!(t=Lt(t)))return e;var l=nn(e),d=Jf(l,nn(t));return qn(l,d).join("")}function ZS(e,t){var o=he,l=fe;if(Ke(t)){var d="separator"in t?t.separator:d;o="length"in t?ve(t.length):o,l="omission"in t?Lt(t.omission):l}e=De(e);var g=e.length;if(Fr(e)){var _=nn(e);g=_.length}if(o>=g)return e;var P=o-kr(l);if(P<1)return l;var N=_?qn(_,0,P).join(""):e.slice(0,P);if(d===r)return N+l;if(_&&(P+=N.length-P),fl(d)){if(e.slice(P).search(d)){var j,U=N;for(d.global||(d=Ra(d.source,De(wf.exec(d))+"g")),d.lastIndex=0;j=d.exec(U);)var $=j.index;N=N.slice(0,$===r?P:$)}}else if(e.indexOf(Lt(d),P)!=P){var G=N.lastIndexOf(d);G>-1&&(N=N.slice(0,G))}return N+l}function JS(e){return e=De(e),e&&uw.test(e)?e.replace(vf,Rx):e}var QS=Hr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),pl=$d("toUpperCase");function jh(e,t,o){return e=De(e),t=o?r:t,t===r?_x(e)?Tx(e):hx(e):e.match(t)||[]}var Uh=we(function(e,t){try{return Nt(e,r,t)}catch(o){return cl(o)?o:new pe(o)}}),e1=An(function(e,t){return Ut(t,function(o){o=vn(o),Sn(e,o,ll(e[o],e))}),e});function t1(e){var t=e==null?0:e.length,o=ae();return e=t?ze(e,function(l){if(typeof l[1]!="function")throw new $t(c);return[o(l[0]),l[1]]}):[],we(function(l){for(var d=-1;++d<t;){var g=e[d];if(Nt(g[0],this,l))return Nt(g[1],this,l)}})}function n1(e){return R0(zt(e,w))}function gl(e){return function(){return e}}function r1(e,t){return e==null||e!==e?t:e}var i1=zd(),o1=zd(!0);function Pt(e){return e}function vl(e){return bd(typeof e=="function"?e:zt(e,w))}function s1(e){return Cd(zt(e,w))}function a1(e,t){return Sd(e,zt(t,w))}var l1=we(function(e,t){return function(o){return Ci(o,e,t)}}),u1=we(function(e,t){return function(o){return Ci(e,o,t)}});function ml(e,t,o){var l=at(t),d=jo(t,l);o==null&&!(Ke(t)&&(d.length||!l.length))&&(o=t,t=e,e=this,d=jo(t,at(t)));var g=!(Ke(o)&&"chain"in o)||!!o.chain,_=Pn(e);return Ut(d,function(P){var N=t[P];e[P]=N,_&&(e.prototype[P]=function(){var j=this.__chain__;if(g||j){var U=e(this.__wrapped__),$=U.__actions__=Et(this.__actions__);return $.push({func:N,args:arguments,thisArg:e}),U.__chain__=j,U}return N.apply(e,jn([this.value()],arguments))})}),e}function c1(){return ct._===this&&(ct._=Fx),this}function yl(){}function f1(e){return e=ve(e),we(function(t){return Ed(t,e)})}var d1=Ya(ze),h1=Ya(Kf),p1=Ya(xa);function $h(e){return nl(e)?ba(vn(e)):H0(e)}function g1(e){return function(t){return e==null?r:dr(e,t)}}var v1=qd(),m1=qd(!0);function wl(){return[]}function xl(){return!1}function y1(){return{}}function w1(){return""}function x1(){return!0}function b1(e,t){if(e=ve(e),e<1||e>oe)return[];var o=Me,l=gt(e,Me);t=ae(t),e-=Me;for(var d=Sa(l,t);++o<e;)t(o);return d}function _1(e){return ge(e)?ze(e,vn):Ft(e)?[e]:Et(uh(De(e)))}function C1(e){var t=++Mx;return De(e)+t}var S1=qo(function(e,t){return e+t},0),E1=Xa("ceil"),A1=qo(function(e,t){return e/t},1),R1=Xa("floor");function P1(e){return e&&e.length?Wo(e,Pt,La):r}function O1(e,t){return e&&e.length?Wo(e,ae(t,2),La):r}function T1(e){return Yf(e,Pt)}function I1(e,t){return Yf(e,ae(t,2))}function D1(e){return e&&e.length?Wo(e,Pt,Va):r}function N1(e,t){return e&&e.length?Wo(e,ae(t,2),Va):r}var M1=qo(function(e,t){return e*t},1),L1=Xa("round"),F1=qo(function(e,t){return e-t},0);function k1(e){return e&&e.length?Ca(e,Pt):0}function B1(e,t){return e&&e.length?Ca(e,ae(t,2)):0}return h.after=sC,h.ary=xh,h.assign=qC,h.assignIn=Mh,h.assignInWith=ss,h.assignWith=GC,h.at=YC,h.before=bh,h.bind=ll,h.bindAll=e1,h.bindKey=_h,h.castArray=yC,h.chain=mh,h.chunk=Rb,h.compact=Pb,h.concat=Ob,h.cond=t1,h.conforms=n1,h.constant=gl,h.countBy=k_,h.create=XC,h.curry=Ch,h.curryRight=Sh,h.debounce=Eh,h.defaults=ZC,h.defaultsDeep=JC,h.defer=aC,h.delay=lC,h.difference=Tb,h.differenceBy=Ib,h.differenceWith=Db,h.drop=Nb,h.dropRight=Mb,h.dropRightWhile=Lb,h.dropWhile=Fb,h.fill=kb,h.filter=V_,h.flatMap=U_,h.flatMapDeep=$_,h.flatMapDepth=H_,h.flatten=hh,h.flattenDeep=Bb,h.flattenDepth=Vb,h.flip=uC,h.flow=i1,h.flowRight=o1,h.fromPairs=Wb,h.functions=oS,h.functionsIn=sS,h.groupBy=z_,h.initial=Ub,h.intersection=$b,h.intersectionBy=Hb,h.intersectionWith=zb,h.invert=lS,h.invertBy=uS,h.invokeMap=q_,h.iteratee=vl,h.keyBy=G_,h.keys=at,h.keysIn=Rt,h.map=es,h.mapKeys=fS,h.mapValues=dS,h.matches=s1,h.matchesProperty=a1,h.memoize=ns,h.merge=hS,h.mergeWith=Lh,h.method=l1,h.methodOf=u1,h.mixin=ml,h.negate=rs,h.nthArg=f1,h.omit=pS,h.omitBy=gS,h.once=cC,h.orderBy=Y_,h.over=d1,h.overArgs=fC,h.overEvery=h1,h.overSome=p1,h.partial=ul,h.partialRight=Ah,h.partition=X_,h.pick=vS,h.pickBy=Fh,h.property=$h,h.propertyOf=g1,h.pull=Yb,h.pullAll=gh,h.pullAllBy=Xb,h.pullAllWith=Zb,h.pullAt=Jb,h.range=v1,h.rangeRight=m1,h.rearg=dC,h.reject=Q_,h.remove=Qb,h.rest=hC,h.reverse=sl,h.sampleSize=tC,h.set=yS,h.setWith=wS,h.shuffle=nC,h.slice=e_,h.sortBy=oC,h.sortedUniq=a_,h.sortedUniqBy=l_,h.split=US,h.spread=pC,h.tail=u_,h.take=c_,h.takeRight=f_,h.takeRightWhile=d_,h.takeWhile=h_,h.tap=P_,h.throttle=gC,h.thru=Qo,h.toArray=Ih,h.toPairs=kh,h.toPairsIn=Bh,h.toPath=_1,h.toPlainObject=Nh,h.transform=xS,h.unary=vC,h.union=p_,h.unionBy=g_,h.unionWith=v_,h.uniq=m_,h.uniqBy=y_,h.uniqWith=w_,h.unset=bS,h.unzip=al,h.unzipWith=vh,h.update=_S,h.updateWith=CS,h.values=qr,h.valuesIn=SS,h.without=x_,h.words=jh,h.wrap=mC,h.xor=b_,h.xorBy=__,h.xorWith=C_,h.zip=S_,h.zipObject=E_,h.zipObjectDeep=A_,h.zipWith=R_,h.entries=kh,h.entriesIn=Bh,h.extend=Mh,h.extendWith=ss,ml(h,h),h.add=S1,h.attempt=Uh,h.camelCase=PS,h.capitalize=Vh,h.ceil=E1,h.clamp=ES,h.clone=wC,h.cloneDeep=bC,h.cloneDeepWith=_C,h.cloneWith=xC,h.conformsTo=CC,h.deburr=Wh,h.defaultTo=r1,h.divide=A1,h.endsWith=OS,h.eq=on,h.escape=TS,h.escapeRegExp=IS,h.every=B_,h.find=W_,h.findIndex=fh,h.findKey=QC,h.findLast=j_,h.findLastIndex=dh,h.findLastKey=eS,h.floor=R1,h.forEach=yh,h.forEachRight=wh,h.forIn=tS,h.forInRight=nS,h.forOwn=rS,h.forOwnRight=iS,h.get=dl,h.gt=SC,h.gte=EC,h.has=aS,h.hasIn=hl,h.head=ph,h.identity=Pt,h.includes=K_,h.indexOf=jb,h.inRange=AS,h.invoke=cS,h.isArguments=gr,h.isArray=ge,h.isArrayBuffer=AC,h.isArrayLike=At,h.isArrayLikeObject=Xe,h.isBoolean=RC,h.isBuffer=Gn,h.isDate=PC,h.isElement=OC,h.isEmpty=TC,h.isEqual=IC,h.isEqualWith=DC,h.isError=cl,h.isFinite=NC,h.isFunction=Pn,h.isInteger=Rh,h.isLength=is,h.isMap=Ph,h.isMatch=MC,h.isMatchWith=LC,h.isNaN=FC,h.isNative=kC,h.isNil=VC,h.isNull=BC,h.isNumber=Oh,h.isObject=Ke,h.isObjectLike=Ge,h.isPlainObject=Oi,h.isRegExp=fl,h.isSafeInteger=WC,h.isSet=Th,h.isString=os,h.isSymbol=Ft,h.isTypedArray=Kr,h.isUndefined=jC,h.isWeakMap=UC,h.isWeakSet=$C,h.join=Kb,h.kebabCase=DS,h.last=qt,h.lastIndexOf=qb,h.lowerCase=NS,h.lowerFirst=MS,h.lt=HC,h.lte=zC,h.max=P1,h.maxBy=O1,h.mean=T1,h.meanBy=I1,h.min=D1,h.minBy=N1,h.stubArray=wl,h.stubFalse=xl,h.stubObject=y1,h.stubString=w1,h.stubTrue=x1,h.multiply=M1,h.nth=Gb,h.noConflict=c1,h.noop=yl,h.now=ts,h.pad=LS,h.padEnd=FS,h.padStart=kS,h.parseInt=BS,h.random=RS,h.reduce=Z_,h.reduceRight=J_,h.repeat=VS,h.replace=WS,h.result=mS,h.round=L1,h.runInContext=T,h.sample=eC,h.size=rC,h.snakeCase=jS,h.some=iC,h.sortedIndex=t_,h.sortedIndexBy=n_,h.sortedIndexOf=r_,h.sortedLastIndex=i_,h.sortedLastIndexBy=o_,h.sortedLastIndexOf=s_,h.startCase=$S,h.startsWith=HS,h.subtract=F1,h.sum=k1,h.sumBy=B1,h.template=zS,h.times=b1,h.toFinite=On,h.toInteger=ve,h.toLength=Dh,h.toLower=KS,h.toNumber=Gt,h.toSafeInteger=KC,h.toString=De,h.toUpper=qS,h.trim=GS,h.trimEnd=YS,h.trimStart=XS,h.truncate=ZS,h.unescape=JS,h.uniqueId=C1,h.upperCase=QS,h.upperFirst=pl,h.each=yh,h.eachRight=wh,h.first=ph,ml(h,function(){var e={};return pn(h,function(t,o){Le.call(h.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),h.VERSION=s,Ut(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),Ut(["drop","take"],function(e,t){Ae.prototype[e]=function(o){o=o===r?1:rt(ve(o),0);var l=this.__filtered__&&!t?new Ae(this):this.clone();return l.__filtered__?l.__takeCount__=gt(o,l.__takeCount__):l.__views__.push({size:gt(o,Me),type:e+(l.__dir__<0?"Right":"")}),l},Ae.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Ut(["filter","map","takeWhile"],function(e,t){var o=t+1,l=o==re||o==se;Ae.prototype[e]=function(d){var g=this.clone();return g.__iteratees__.push({iteratee:ae(d,3),type:o}),g.__filtered__=g.__filtered__||l,g}}),Ut(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ae.prototype[e]=function(){return this[o](1).value()[0]}}),Ut(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ae.prototype[e]=function(){return this.__filtered__?new Ae(this):this[o](1)}}),Ae.prototype.compact=function(){return this.filter(Pt)},Ae.prototype.find=function(e){return this.filter(e).head()},Ae.prototype.findLast=function(e){return this.reverse().find(e)},Ae.prototype.invokeMap=we(function(e,t){return typeof e=="function"?new Ae(this):this.map(function(o){return Ci(o,e,t)})}),Ae.prototype.reject=function(e){return this.filter(rs(ae(e)))},Ae.prototype.slice=function(e,t){e=ve(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ae(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=ve(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ae.prototype.toArray=function(){return this.take(Me)},pn(Ae.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),d=h[l?"take"+(t=="last"?"Right":""):t],g=l||/^find/.test(t);d&&(h.prototype[t]=function(){var _=this.__wrapped__,P=l?[1]:arguments,N=_ instanceof Ae,j=P[0],U=N||ge(_),$=function(_e){var Re=d.apply(h,jn([_e],P));return l&&G?Re[0]:Re};U&&o&&typeof j=="function"&&j.length!=1&&(N=U=!1);var G=this.__chain__,ie=!!this.__actions__.length,le=g&&!G,me=N&&!ie;if(!g&&U){_=me?_:new Ae(this);var ue=e.apply(_,P);return ue.__actions__.push({func:Qo,args:[$],thisArg:r}),new Ht(ue,G)}return le&&me?e.apply(this,P):(ue=this.thru($),le?l?ue.value()[0]:ue.value():ue)})}),Ut(["pop","push","shift","sort","splice","unshift"],function(e){var t=Eo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var d=arguments;if(l&&!this.__chain__){var g=this.value();return t.apply(ge(g)?g:[],d)}return this[o](function(_){return t.apply(ge(_)?_:[],d)})}}),pn(Ae.prototype,function(e,t){var o=h[t];if(o){var l=o.name+"";Le.call(jr,l)||(jr[l]=[]),jr[l].push({name:t,func:o})}}),jr[Ko(r,A).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=Jx,Ae.prototype.reverse=Qx,Ae.prototype.value=e0,h.prototype.at=O_,h.prototype.chain=T_,h.prototype.commit=I_,h.prototype.next=D_,h.prototype.plant=M_,h.prototype.reverse=L_,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=F_,h.prototype.first=h.prototype.head,vi&&(h.prototype[vi]=N_),h},Br=Ix();ar?((ar.exports=Br)._=Br,va._=Br):ct._=Br}).call(Yr)}(vo,vo.exports);var aa=vo.exports;const fi=({children:n,className:i,context:r,fieldName:s,info:a,label:u,required:c,errors:f,hideRequiredMark:p=!1,onClick:v})=>{var D,x,E;const m=Qt("FieldWrapper",{context:r})??{},w=()=>u&&b.jsxs("label",{...m.labelContainer,htmlFor:s,children:[b.jsx("span",{...m.label,children:u}),c&&!p&&b.jsx("span",{...m.required,children:"*"}),a&&b.jsx(Vt,{...m.info,name:"info",tooltip:a})]}),R=v?{onClick:v,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),v())},role:"button"}:{};return b.jsxs("div",{...m.root,...R,children:[!(r!=null&&r.containerless)&&w(),b.jsxs("div",{...m.field,className:xn([(D=m.field)==null?void 0:D.className,i]),children:[n,(r==null?void 0:r.containerless)&&w()]}),typeof((x=f[s])==null?void 0:x.message)=="string"&&b.jsx("small",{...m.errorMessage,children:(E=f[s])==null?void 0:E.message})]})},la=(n,i,r)=>i==null?void 0:i(r),rw=ke("Checkbox",cs(n=>{const{onChange:i=()=>{},label:r,disabled:s,mode:a="binary",info:u,fieldName:c=r??"checkbox",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,C]=Ot({}),R=a==="value"?n.optionValue:void 0,D=!!R&&a==="value",{methods:x}=ci(lt(()=>({validate:K=>v&&(D&&(!Array.isArray(K)||K.length===0)||a==="binary"&&K!==!0||a==="tristate"&&K==null)?"This field is required":la(a,m,K)}),[m,a,D,v]),c)??{},{setValue:E=(K,te)=>{C({[K]:te})},watchedValue:A=w[c],trigger:O=K=>(m==null?void 0:m(w[K]))===!0,formState:{errors:I={}}={}}=x??{},F=lt(()=>D?Array.isArray(A)&&A.some(K=>aa.isEqual(K,R)):A,[D,R,A]),M=Qt("Checkbox",{props:{label:r},context:{checked:F,partialChecked:A===!1&&a==="tristate",tristate:a==="tristate",disabled:s}})??{};mn(()=>{A===void 0&&E(c,a==="value"?[]:a==="tristate"?null:!1)},[p,A]);const H=Je(async()=>{let K=A;D?Array.isArray(A)?Array.isArray(A)&&A.some(te=>aa.isEqual(te,R))?K=A.filter(te=>!aa.isEqual(te,R)):A&&(K=[...A,R]):K=[R]:a==="tristate"?A===null?K=!0:A===!0?K=!1:A===!1&&(K=null):a==="binary"&&(K=!A),E(c,K),la(a,i,K),await O(c)},[E,i,A,a,O,D,R,c]),B=Je(()=>F===!0?b.jsx(Vt,{...M.icon,name:"check-4"}):F===!1&&a==="tristate"?b.jsx(Vt,{...M.icon,name:"minus-4"}):null,[F]);return b.jsxs(fi,{fieldName:c,required:v,errors:I,label:r,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!I[c],disabled:s,containerless:!0,borderless:!0},onClick:H,children:[b.jsx("div",{...M.box,children:B()}),b.jsx("input",{...M.input,disabled:s,name:c,type:"checkbox"})]})}));rw.displayName="Checkbox";const hf=ke("Dialog",cs(n=>{const{children:i,defaultVisibility:r=!1,visible:s=!1,onVisibleChange:a,header:u,size:c="sm",modal:f=!0,closeOnBlur:p=!0,closeOnEscape:v=!0,useCloseIcon:m=!0,containerClass:w,headerClass:C,contentClass:R,slots:D}=n,x=Qt("Dialog",{props:{size:c},context:{open:s}})??{};return b.jsx(Wg,{defaultOpen:r,modal:f,open:s,onOpenChange:a,children:b.jsxs(jg,{children:[b.jsx(Ug,{...x.overlay}),b.jsxs($g,{className:xn(x.container.className,w),onEscapeKeyDown:E=>{v||E.preventDefault()},onPointerDownOutside:E=>{p||E.preventDefault()},children:[b.jsx(Hg,{asChild:!0,children:b.jsx("div",{className:xn(x.header.className,C),children:b.jsxs(ir,{name:"header",slots:D,children:[b.jsx("span",{children:u}),m&&b.jsx("div",{...x.iconContainer,children:b.jsx(Vt,{className:"cursor-pointer",name:"x",onClick:()=>a(!1)})})]})})}),b.jsx(ir,{name:"content",slots:D,children:b.jsx("div",{className:xn(x.content.className,R),children:i})}),b.jsx(ir,{name:"footer",slots:D})]})]})})}));hf.displayName="Dialog";const X1=ke("DialogForm",Yn((n,i)=>{const{children:r,defaultVisibility:s=!1,visible:a=!1,onVisibleChange:u,header:c,size:f="lg",modal:p=!0,closeOnBlur:v=!0,closeOnEscape:m=!0,closeOnSubmit:w=!0,useCloseIcon:C=!0,containerClass:R,headerClass:D,contentClass:x,slots:E,defaultValues:A,onError:O,onSubmit:I,resetOnSubmit:F,buttonsConfig:M}=n,H={visible:a,onVisibleChange:u,defaultVisibility:s,header:c,size:f,modal:p,closeOnBlur:v,closeOnEscape:m,useCloseIcon:C,containerClass:R,contentClass:x,headerClass:D,slots:{header:E==null?void 0:E.header}},B={defaultValues:A,onError:O,onSubmit:I,resetOnSubmit:F,buttonsConfig:M,slots:{footer:E==null?void 0:E.formFooter}},K=te=>{I(te),w&&u(!1)};return b.jsx(hf,{...H,children:b.jsx(sw,{...B,ref:i,onSubmit:K,children:r})})})),iw=n=>{const{label:i,value:r}=n;return b.jsx(Wm,{value:r,children:b.jsx(jm,{children:i})})},pf=(n,i,r)=>i==null?void 0:i(r),Z1=ke("Dropdown",n=>{const{onChange:i=()=>{},label:r,disabled:s,options:a,placeholder:u=`Select ${r??"item"}`,mode:c="single",info:f,fieldName:p=r??"dropdown",hideRequiredMark:v=!1,required:m,customValidation:w}=n,[C,R]=Ot({}),D=lt(()=>({watchedValue:C[p],setValue:(B,K)=>{R({[B]:K})},formState:{errors:{}},trigger:B=>(w==null?void 0:w(C[B]))===!0}),[C,w,p]),{methods:x,ref:E}=ci(lt(()=>({validate:B=>m&&(c==="multi"&&(!Array.isArray(B)||B.length===0)||c==="single"&&B==null)?"This field is required":pf(c,w,B)}),[w,c,m]),p),{setValue:A,watchedValue:O,formState:{errors:I={}}}=x??D,F=Qt("Dropdown",{props:{label:r}})??{};mn(()=>{const B=c==="multi"?JSON.stringify([]):null;O||A(p,B)},[]);const M=lt(()=>a.map(B=>({...B,value:JSON.stringify(B.value)})),[a]),H=Je(B=>{const K=JSON.parse(B);A(p,K),pf(c,i,K)},[A,p,c,i]);return b.jsx(fi,{fieldName:p,required:m,label:r,info:f,errors:I,hideRequiredMark:v,className:"flex items-center gap-1",context:{invalid:!!(I!=null&&I[p]),disabled:s},children:b.jsxs(Nm,{...F.root,value:O==null?"":JSON.stringify(O),onValueChange:H,children:[b.jsxs(Mm,{...F.trigger,name:p,children:[b.jsx(Lm,{placeholder:u}),b.jsx(Fm,{...F.icon,asChild:!0,children:b.jsx(Vt,{name:"chevron-down"})})]}),b.jsx(km,{children:b.jsxs(Bm,{...F.content,position:"popper",ref:E,sideOffset:4,children:[b.jsx(Um,{asChild:!0,children:b.jsx(Vt,{className:"w-full",name:"chevron-up"})}),b.jsx(Vm,{className:"p-1 w-full",children:M.map(B=>fs(iw,{...B,key:JSON.stringify(B)}))}),b.jsx($m,{asChild:!0,children:b.jsx(Vt,{className:"w-full",name:"chevron-down"})})]})})]})})}),ow=Yn((n,i)=>{const{children:r,resetOnSubmit:s,onSubmit:a,onError:u,buttonsConfig:c,slots:f,formKey:p,defaultValues:v,setFormKey:m}=n,w=Vy({defaultValues:v}),{handleSubmit:C,reset:R,resetField:D,getValues:x,setValue:E,setError:A,clearErrors:O,watch:I,formState:{errors:F,isDirty:M,dirtyFields:H}}=w,B=fe=>{a(fe),s&&R()},K=()=>{R(v),m(p+1)},te=()=>Array.isArray(r)?r.map((fe,X)=>ds(fe,{key:fe.key??X})):Cl(r)?ds(r):r,he=()=>{const fe=new Set;return c.map(({type:X,label:Z,severity:re,style:de})=>{if(!fe.has(X))return fe.add(X),b.jsx(Zy,{label:Z,outlined:de==="outlined",severity:re,text:de==="text",type:X==="submit"?"submit":"button",onClick:()=>X==="reset"?K():void 0},X)})};return us(i,()=>({resetField:D,reset:R,getValues:x,setValue:E,setError:A,clearErrors:O,errors:F,watch:I,isDirty:M,dirtyFields:H}),[D,R,x,E,A,O,F,I,M,H]),b.jsx(by,{...w,children:b.jsx("form",{onSubmit:C(B,u),children:b.jsxs("div",{className:"grid grid-cols-2 gap-x-2 gap-y-2",children:[te(),b.jsx(ir,{name:"footer",slots:f,children:b.jsx("div",{className:"col-span-2 gap-1 flex justify-end w-full",children:he()})})]})})})}),sw=ke("Form",Yn(({children:n,defaultValues:i,resetOnSubmit:r=!0,onSubmit:s,onError:a,buttonsConfig:u=[],slots:c},f)=>{const[p,v]=Ot(0),m=()=>{const w={back:{type:"back",label:"Cancel",severity:"secondary",style:"text"},reset:{type:"reset",label:"Clear",severity:"primary",style:"text"},"submit-raw":{type:"submit-raw",label:"Save",severity:"success",style:"outlined"},submit:{type:"submit",label:"Submit",severity:"success",style:"fill"}};return u.map(({type:C,label:R,severity:D,style:x})=>{const{label:E,severity:A,style:O}=w[C];return{type:C,label:R??E,severity:D??A,style:x??O}})};return b.jsx(ow,{formKey:p,setFormKey:v,buttonsConfig:m(),defaultValues:i,ref:f,resetOnSubmit:r,slots:c,onError:a,onSubmit:s,children:n})})),mo=n=>{const{onChange:i=()=>{},onInput:r=()=>{},onBlur:s=()=>{},onKeydown:a=()=>{},label:u,disabled:c,info:f,fieldName:p=u??"baseinput",placeholder:v=u?`Input ${u.toLowerCase()}`:"",type:m="text",hideRequiredMark:w=!1,value:C,required:R,customMessage:D,min:x,max:E,minLength:A,maxLength:O,pattern:I,passwordRequirements:F,customValidation:M,preventInputOnError:H}=n,B=lt(()=>p,[p]),[K,te]=Ot({}),[he,fe]=Ot({}),[X,Z]=Ot(!1),re=lt(()=>({watchedValue:K[p],setValue:(ee,xe)=>{te({[ee]:xe})},formState:{errors:he},trigger:ee=>(M==null?void 0:M(K[ee]))===!0}),[he,K,M,p]),de=Qt("BaseInput",{props:{label:u,type:m}})??{},{ref:se,methods:ce,...oe}=ci({type:m,required:R,max:E,min:x,maxLength:O,minLength:A,pattern:I,validate:M,customMessage:D,passwordRequirements:F},B)??{ref:void 0},{setValue:ye,watchedValue:Ne,trigger:Me,formState:{errors:wt={}}}=ce??re;mn(()=>{C!=null&&C!==Ne&&ye(B,C)},[C,B,ye,Ne]);const Wt=Je(async ee=>{var Pe;const xe=Ne;ye(B,ee.target.value);const Fe=await Me(B);if(H&&((Pe=wt[B])==null?void 0:Pe.type)!=="required")if(Fe)ce||fe({[B]:C});else{ye(B,xe);return}i(ee.target.value)},[Ne,ye,Me,H,i,wt,B,C,ce]),Ct=Je(async ee=>{await Me(B),s(ee.target.value)},[Me,s,B]),it=Je(async ee=>{r(ee.currentTarget.value)},[r]),pt=Je(ee=>{m==="number"&&["e","E","+","-"].includes(ee.key)&&ee.preventDefault(),a(ee.key)},[m,a]);return b.jsxs(fi,{required:R,info:f,label:u,errors:wt,hideRequiredMark:w,fieldName:B,context:{invalid:!!wt[B],disabled:c},children:[b.jsx("input",{ref:se,...oe,...de.input,autoComplete:"off",disabled:c,name:B,placeholder:v,type:X&&m==="password"?"text":m,onBlur:Ct,onChange:Wt,onInput:it,onKeyDown:pt}),m==="password"&&b.jsx(Vt,{...de.eyetoggle,name:X?"eye-off":"eye-on",onClick:()=>Z(!X)})]})},eE=ke("InputEmail",n=>b.jsx(mo,{...n,type:"email"})),tE=ke("InputNumber",n=>b.jsx(mo,{...n,type:"number"})),nE=ke("InputPassword",n=>b.jsx(mo,{...n,type:"password"})),rE=ke("InputText",n=>b.jsx(mo,{...n,type:"text"})),iE=ke("KanbanBoard",({children:n,className:i,onUpdate:r=()=>{}})=>b.jsx(rp,{onUpdate:r,children:b.jsx("div",{className:i,children:n})})),oE=ke("KanbanColumn",n=>{const{data:i=[],groupId:r,onDrop:s=()=>{},onDragStart:a=()=>{},...u}=n,{dragItem:c,setDragItem:f,cardElements:p,setCardElements:v,onUpdate:m}=ip(),w=lt(()=>i.map(A=>({...A,id:A.id??sa(),groupId:r})),[i,r]);mn(()=>{if(i.length>0){const A=new Set(w.map(O=>O.id));v(O=>[...O.filter(F=>!A.has(F.id)),...w])}},[w,i.length,v]);const C=Je(A=>{const{draggedGroupId:O,draggedId:I}=A;a(A),f({id:I,groupId:O})},[a,f]),R=Je(A=>{if(A.originalEvent.stopPropagation(),s(A),!c||c.id===A.destinationId)return;const O=p.findIndex(F=>F.id===A.destinationId),I=p.findIndex(F=>F.id===c.id);v(F=>{if(O===-1||I===-1)return F;const M=[...F],[H]=M.splice(I,1);return M.splice(O,0,{...H,groupId:r}),m({groupId:r,id:c.id,index:M.filter(B=>B.groupId===r).findIndex(B=>B.id===c.id)}),M})},[c,p,r,s,m,v]),D=Je(A=>{if(A.preventDefault(),s({originalEvent:A,destinationGroupId:r,destinationId:c.id}),!c||c.groupId===r)return;const O=p.find(I=>I.id===c.id);v(I=>[...I.filter(F=>F.id!==O.id),{...O,groupId:r}]),m({groupId:r,id:c.id,index:p.filter(I=>I.groupId===r).length})},[c,p,r,s,m,v]),x=Je(()=>({tabIndex:0,role:"button",type:"button",onClick:u.onClick,onKeyDown:u.onKeyDown,onDragOver:A=>A.preventDefault(),onDrop:D}),[u,D]),E=Je(()=>p.filter(A=>A.groupId===r).map(A=>fs(df,{...A,clickable:!0,draggable:!0,groupId:r,id:A.id,key:A.id,mode:"kanban",onDragStart:C,onDrop:R})),[p,C,R,r]);return b.jsx("div",{...u,className:"flex flex-col h-max gap-3 m-3 p-3 border border-secondary-800 min-h-[200px] min-w-[200px]",id:r,...x(),children:E()})}),gf=(n,i,r)=>i==null?void 0:i(r),sE=ke("RadioButton",n=>{const{onChange:i=()=>{},label:r,disabled:s,optionValue:a,info:u,fieldName:c=r??"radio",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,C]=Ot({}),R=lt(()=>({watchedValue:w[c],setValue:(M,H)=>{C({[M]:H})},formState:{errors:{}},trigger:M=>gf(typeof a,m,w[M])===!0}),[w,c,a,m]),{methods:D}=ci(lt(()=>({validate:M=>v&&M==null?"This field is required":gf(typeof a,m,M)}),[m,a,v]),c)??{},{setValue:x,watchedValue:E,formState:{errors:A={}}}=D??R,O=E===a,I=Qt("RadioButton",{props:{label:r},context:{checked:O,disabled:s}})??{};mn(()=>{E||x(c,typeof a=="string"?"":!1)},[p,E]);const F=Je(()=>{const M=a;if(x(c,M),typeof a=="string")return(i==null?void 0:i(M))??!0;if(typeof a=="boolean")return(i==null?void 0:i(M))??!0},[a,x,c,i]);return b.jsxs(fi,{fieldName:c,required:v,label:r,errors:A,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!A[c],disabled:s,containerless:!0},onClick:F,children:[b.jsx("div",{...I.box}),O&&b.jsx("div",{...I.innerBox}),b.jsx("input",{...I.input,disabled:s,name:c,type:"radio",onChange:()=>{}})]})}),aE=ke("ToggleSwitch",n=>{const{onChange:i=()=>{},label:r,disabled:s,mode:a="binary",info:u,fieldName:c=r??"checkbox",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,C]=Ot({}),R=lt(()=>({watchedValue:w[c],setValue:(H,B)=>{C({[H]:B})},formState:{errors:{}},trigger:H=>(m==null?void 0:m(w[H]))===!0}),[w,m,c]),{methods:D}=ci(lt(()=>({validate:H=>v&&(a==="binary"&&H!==!0||a==="tristate"&&H==null)?"This field is required":la(a,m,H)}),[m,a,v]),c)??{},{setValue:x,watchedValue:E,formState:{errors:A={}}}=D??R,I=Qt("ToggleSwitch",{props:{label:r},context:{checked:E,partialChecked:E===!1&&a==="tristate",tristate:a==="tristate",disabled:s}})??{};mn(()=>{E===void 0&&x(c,a==="tristate"?null:!1)},[p,E]);const F=Je(()=>{let H=E;a==="tristate"?E===null?H=!0:E===!0?H=!1:E===!1&&(H=null):a==="binary"&&(H=!E),x(c,H),i(H)},[x,i,E,c,a]),M=()=>b.jsx("div",{...I.iconContainer,children:b.jsx(Vt,{name:"circle-fill",...I.icon})});return b.jsxs(fi,{fieldName:c,required:v,label:r,errors:A,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!A[c],disabled:s,borderless:!0},onClick:F,children:[b.jsx("div",{...I.box,children:M()}),b.jsx("input",{...I.input,disabled:s,name:c,type:"checkbox",onChange:()=>{}})]})})}}});
|
|
79
|
+
`)+H+`return __p
|
|
80
|
+
}`;var me=Uh(function(){return Oe(g,ie+"return "+H).apply(r,C)});if(me.source=H,fl(me))throw me;return me}function KS(e){return De(e).toLowerCase()}function qS(e){return De(e).toUpperCase()}function GS(e,t,o){if(e=De(e),e&&(o||t===r))return Zf(e);if(!e||!(t=Lt(t)))return e;var l=nn(e),d=nn(t),g=Jf(l,d),C=Qf(l,d)+1;return qn(l,g,C).join("")}function YS(e,t,o){if(e=De(e),e&&(o||t===r))return e.slice(0,td(e)+1);if(!e||!(t=Lt(t)))return e;var l=nn(e),d=Qf(l,nn(t))+1;return qn(l,0,d).join("")}function XS(e,t,o){if(e=De(e),e&&(o||t===r))return e.replace(fa,"");if(!e||!(t=Lt(t)))return e;var l=nn(e),d=Jf(l,nn(t));return qn(l,d).join("")}function ZS(e,t){var o=se,l=fe;if(Ke(t)){var d="separator"in t?t.separator:d;o="length"in t?ve(t.length):o,l="omission"in t?Lt(t.omission):l}e=De(e);var g=e.length;if(Fr(e)){var C=nn(e);g=C.length}if(o>=g)return e;var P=o-kr(l);if(P<1)return l;var N=C?qn(C,0,P).join(""):e.slice(0,P);if(d===r)return N+l;if(C&&(P+=N.length-P),dl(d)){if(e.slice(P).search(d)){var j,U=N;for(d.global||(d=Pa(d.source,De(wf.exec(d))+"g")),d.lastIndex=0;j=d.exec(U);)var H=j.index;N=N.slice(0,H===r?P:H)}}else if(e.indexOf(Lt(d),P)!=P){var Y=N.lastIndexOf(d);Y>-1&&(N=N.slice(0,Y))}return N+l}function JS(e){return e=De(e),e&&uw.test(e)?e.replace(vf,Rx):e}var QS=Hr(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),gl=$d("toUpperCase");function jh(e,t,o){return e=De(e),t=o?r:t,t===r?_x(e)?Tx(e):hx(e):e.match(t)||[]}var Uh=we(function(e,t){try{return Nt(e,r,t)}catch(o){return fl(o)?o:new pe(o)}}),e1=An(function(e,t){return jt(t,function(o){o=vn(o),Sn(e,o,ul(e[o],e))}),e});function t1(e){var t=e==null?0:e.length,o=le();return e=t?ze(e,function(l){if(typeof l[1]!="function")throw new Ut(c);return[o(l[0]),l[1]]}):[],we(function(l){for(var d=-1;++d<t;){var g=e[d];if(Nt(g[0],this,l))return Nt(g[1],this,l)}})}function n1(e){return R0(Ht(e,w))}function vl(e){return function(){return e}}function r1(e,t){return e==null||e!==e?t:e}var i1=zd(),o1=zd(!0);function Pt(e){return e}function ml(e){return bd(typeof e=="function"?e:Ht(e,w))}function s1(e){return Cd(Ht(e,w))}function a1(e,t){return Sd(e,Ht(t,w))}var l1=we(function(e,t){return function(o){return Ci(o,e,t)}}),u1=we(function(e,t){return function(o){return Ci(e,o,t)}});function yl(e,t,o){var l=at(t),d=jo(t,l);o==null&&!(Ke(t)&&(d.length||!l.length))&&(o=t,t=e,e=this,d=jo(t,at(t)));var g=!(Ke(o)&&"chain"in o)||!!o.chain,C=Pn(e);return jt(d,function(P){var N=t[P];e[P]=N,C&&(e.prototype[P]=function(){var j=this.__chain__;if(g||j){var U=e(this.__wrapped__),H=U.__actions__=Et(this.__actions__);return H.push({func:N,args:arguments,thisArg:e}),U.__chain__=j,U}return N.apply(e,jn([this.value()],arguments))})}),e}function c1(){return ct._===this&&(ct._=Fx),this}function wl(){}function f1(e){return e=ve(e),we(function(t){return Ed(t,e)})}var d1=Xa(ze),h1=Xa(Kf),p1=Xa(ba);function $h(e){return rl(e)?_a(vn(e)):H0(e)}function g1(e){return function(t){return e==null?r:dr(e,t)}}var v1=qd(),m1=qd(!0);function xl(){return[]}function bl(){return!1}function y1(){return{}}function w1(){return""}function x1(){return!0}function b1(e,t){if(e=ve(e),e<1||e>oe)return[];var o=Me,l=gt(e,Me);t=le(t),e-=Me;for(var d=Ea(l,t);++o<e;)t(o);return d}function _1(e){return ge(e)?ze(e,vn):Ft(e)?[e]:Et(uh(De(e)))}function C1(e){var t=++Mx;return De(e)+t}var S1=qo(function(e,t){return e+t},0),E1=Za("ceil"),A1=qo(function(e,t){return e/t},1),R1=Za("floor");function P1(e){return e&&e.length?Wo(e,Pt,Fa):r}function O1(e,t){return e&&e.length?Wo(e,le(t,2),Fa):r}function T1(e){return Yf(e,Pt)}function I1(e,t){return Yf(e,le(t,2))}function D1(e){return e&&e.length?Wo(e,Pt,Wa):r}function N1(e,t){return e&&e.length?Wo(e,le(t,2),Wa):r}var M1=qo(function(e,t){return e*t},1),L1=Za("round"),F1=qo(function(e,t){return e-t},0);function k1(e){return e&&e.length?Sa(e,Pt):0}function B1(e,t){return e&&e.length?Sa(e,le(t,2)):0}return h.after=sC,h.ary=xh,h.assign=qC,h.assignIn=Mh,h.assignInWith=ss,h.assignWith=GC,h.at=YC,h.before=bh,h.bind=ul,h.bindAll=e1,h.bindKey=_h,h.castArray=yC,h.chain=mh,h.chunk=Rb,h.compact=Pb,h.concat=Ob,h.cond=t1,h.conforms=n1,h.constant=vl,h.countBy=k_,h.create=XC,h.curry=Ch,h.curryRight=Sh,h.debounce=Eh,h.defaults=ZC,h.defaultsDeep=JC,h.defer=aC,h.delay=lC,h.difference=Tb,h.differenceBy=Ib,h.differenceWith=Db,h.drop=Nb,h.dropRight=Mb,h.dropRightWhile=Lb,h.dropWhile=Fb,h.fill=kb,h.filter=V_,h.flatMap=U_,h.flatMapDeep=$_,h.flatMapDepth=H_,h.flatten=hh,h.flattenDeep=Bb,h.flattenDepth=Vb,h.flip=uC,h.flow=i1,h.flowRight=o1,h.fromPairs=Wb,h.functions=oS,h.functionsIn=sS,h.groupBy=z_,h.initial=Ub,h.intersection=$b,h.intersectionBy=Hb,h.intersectionWith=zb,h.invert=lS,h.invertBy=uS,h.invokeMap=q_,h.iteratee=ml,h.keyBy=G_,h.keys=at,h.keysIn=Rt,h.map=es,h.mapKeys=fS,h.mapValues=dS,h.matches=s1,h.matchesProperty=a1,h.memoize=ns,h.merge=hS,h.mergeWith=Lh,h.method=l1,h.methodOf=u1,h.mixin=yl,h.negate=rs,h.nthArg=f1,h.omit=pS,h.omitBy=gS,h.once=cC,h.orderBy=Y_,h.over=d1,h.overArgs=fC,h.overEvery=h1,h.overSome=p1,h.partial=cl,h.partialRight=Ah,h.partition=X_,h.pick=vS,h.pickBy=Fh,h.property=$h,h.propertyOf=g1,h.pull=Yb,h.pullAll=gh,h.pullAllBy=Xb,h.pullAllWith=Zb,h.pullAt=Jb,h.range=v1,h.rangeRight=m1,h.rearg=dC,h.reject=Q_,h.remove=Qb,h.rest=hC,h.reverse=al,h.sampleSize=tC,h.set=yS,h.setWith=wS,h.shuffle=nC,h.slice=e_,h.sortBy=oC,h.sortedUniq=a_,h.sortedUniqBy=l_,h.split=US,h.spread=pC,h.tail=u_,h.take=c_,h.takeRight=f_,h.takeRightWhile=d_,h.takeWhile=h_,h.tap=P_,h.throttle=gC,h.thru=Qo,h.toArray=Ih,h.toPairs=kh,h.toPairsIn=Bh,h.toPath=_1,h.toPlainObject=Nh,h.transform=xS,h.unary=vC,h.union=p_,h.unionBy=g_,h.unionWith=v_,h.uniq=m_,h.uniqBy=y_,h.uniqWith=w_,h.unset=bS,h.unzip=ll,h.unzipWith=vh,h.update=_S,h.updateWith=CS,h.values=qr,h.valuesIn=SS,h.without=x_,h.words=jh,h.wrap=mC,h.xor=b_,h.xorBy=__,h.xorWith=C_,h.zip=S_,h.zipObject=E_,h.zipObjectDeep=A_,h.zipWith=R_,h.entries=kh,h.entriesIn=Bh,h.extend=Mh,h.extendWith=ss,yl(h,h),h.add=S1,h.attempt=Uh,h.camelCase=PS,h.capitalize=Vh,h.ceil=E1,h.clamp=ES,h.clone=wC,h.cloneDeep=bC,h.cloneDeepWith=_C,h.cloneWith=xC,h.conformsTo=CC,h.deburr=Wh,h.defaultTo=r1,h.divide=A1,h.endsWith=OS,h.eq=on,h.escape=TS,h.escapeRegExp=IS,h.every=B_,h.find=W_,h.findIndex=fh,h.findKey=QC,h.findLast=j_,h.findLastIndex=dh,h.findLastKey=eS,h.floor=R1,h.forEach=yh,h.forEachRight=wh,h.forIn=tS,h.forInRight=nS,h.forOwn=rS,h.forOwnRight=iS,h.get=hl,h.gt=SC,h.gte=EC,h.has=aS,h.hasIn=pl,h.head=ph,h.identity=Pt,h.includes=K_,h.indexOf=jb,h.inRange=AS,h.invoke=cS,h.isArguments=gr,h.isArray=ge,h.isArrayBuffer=AC,h.isArrayLike=At,h.isArrayLikeObject=Xe,h.isBoolean=RC,h.isBuffer=Gn,h.isDate=PC,h.isElement=OC,h.isEmpty=TC,h.isEqual=IC,h.isEqualWith=DC,h.isError=fl,h.isFinite=NC,h.isFunction=Pn,h.isInteger=Rh,h.isLength=is,h.isMap=Ph,h.isMatch=MC,h.isMatchWith=LC,h.isNaN=FC,h.isNative=kC,h.isNil=VC,h.isNull=BC,h.isNumber=Oh,h.isObject=Ke,h.isObjectLike=Ge,h.isPlainObject=Oi,h.isRegExp=dl,h.isSafeInteger=WC,h.isSet=Th,h.isString=os,h.isSymbol=Ft,h.isTypedArray=Kr,h.isUndefined=jC,h.isWeakMap=UC,h.isWeakSet=$C,h.join=Kb,h.kebabCase=DS,h.last=Kt,h.lastIndexOf=qb,h.lowerCase=NS,h.lowerFirst=MS,h.lt=HC,h.lte=zC,h.max=P1,h.maxBy=O1,h.mean=T1,h.meanBy=I1,h.min=D1,h.minBy=N1,h.stubArray=xl,h.stubFalse=bl,h.stubObject=y1,h.stubString=w1,h.stubTrue=x1,h.multiply=M1,h.nth=Gb,h.noConflict=c1,h.noop=wl,h.now=ts,h.pad=LS,h.padEnd=FS,h.padStart=kS,h.parseInt=BS,h.random=RS,h.reduce=Z_,h.reduceRight=J_,h.repeat=VS,h.replace=WS,h.result=mS,h.round=L1,h.runInContext=T,h.sample=eC,h.size=rC,h.snakeCase=jS,h.some=iC,h.sortedIndex=t_,h.sortedIndexBy=n_,h.sortedIndexOf=r_,h.sortedLastIndex=i_,h.sortedLastIndexBy=o_,h.sortedLastIndexOf=s_,h.startCase=$S,h.startsWith=HS,h.subtract=F1,h.sum=k1,h.sumBy=B1,h.template=zS,h.times=b1,h.toFinite=On,h.toInteger=ve,h.toLength=Dh,h.toLower=KS,h.toNumber=qt,h.toSafeInteger=KC,h.toString=De,h.toUpper=qS,h.trim=GS,h.trimEnd=YS,h.trimStart=XS,h.truncate=ZS,h.unescape=JS,h.uniqueId=C1,h.upperCase=QS,h.upperFirst=gl,h.each=yh,h.eachRight=wh,h.first=ph,yl(h,function(){var e={};return pn(h,function(t,o){Le.call(h.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),h.VERSION=s,jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){h[e].placeholder=h}),jt(["drop","take"],function(e,t){Ae.prototype[e]=function(o){o=o===r?1:rt(ve(o),0);var l=this.__filtered__&&!t?new Ae(this):this.clone();return l.__filtered__?l.__takeCount__=gt(o,l.__takeCount__):l.__views__.push({size:gt(o,Me),type:e+(l.__dir__<0?"Right":"")}),l},Ae.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),jt(["filter","map","takeWhile"],function(e,t){var o=t+1,l=o==re||o==ae;Ae.prototype[e]=function(d){var g=this.clone();return g.__iteratees__.push({iteratee:le(d,3),type:o}),g.__filtered__=g.__filtered__||l,g}}),jt(["head","last"],function(e,t){var o="take"+(t?"Right":"");Ae.prototype[e]=function(){return this[o](1).value()[0]}}),jt(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");Ae.prototype[e]=function(){return this.__filtered__?new Ae(this):this[o](1)}}),Ae.prototype.compact=function(){return this.filter(Pt)},Ae.prototype.find=function(e){return this.filter(e).head()},Ae.prototype.findLast=function(e){return this.reverse().find(e)},Ae.prototype.invokeMap=we(function(e,t){return typeof e=="function"?new Ae(this):this.map(function(o){return Ci(o,e,t)})}),Ae.prototype.reject=function(e){return this.filter(rs(le(e)))},Ae.prototype.slice=function(e,t){e=ve(e);var o=this;return o.__filtered__&&(e>0||t<0)?new Ae(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==r&&(t=ve(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},Ae.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ae.prototype.toArray=function(){return this.take(Me)},pn(Ae.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),l=/^(?:head|last)$/.test(t),d=h[l?"take"+(t=="last"?"Right":""):t],g=l||/^find/.test(t);d&&(h.prototype[t]=function(){var C=this.__wrapped__,P=l?[1]:arguments,N=C instanceof Ae,j=P[0],U=N||ge(C),H=function(_e){var Re=d.apply(h,jn([_e],P));return l&&Y?Re[0]:Re};U&&o&&typeof j=="function"&&j.length!=1&&(N=U=!1);var Y=this.__chain__,ie=!!this.__actions__.length,ue=g&&!Y,me=N&&!ie;if(!g&&U){C=me?C:new Ae(this);var ce=e.apply(C,P);return ce.__actions__.push({func:Qo,args:[H],thisArg:r}),new $t(ce,Y)}return ue&&me?e.apply(this,P):(ce=this.thru(H),ue?l?ce.value()[0]:ce.value():ce)})}),jt(["pop","push","shift","sort","splice","unshift"],function(e){var t=Eo[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",l=/^(?:pop|shift)$/.test(e);h.prototype[e]=function(){var d=arguments;if(l&&!this.__chain__){var g=this.value();return t.apply(ge(g)?g:[],d)}return this[o](function(C){return t.apply(ge(C)?C:[],d)})}}),pn(Ae.prototype,function(e,t){var o=h[t];if(o){var l=o.name+"";Le.call(jr,l)||(jr[l]=[]),jr[l].push({name:t,func:o})}}),jr[Ko(r,R).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=Jx,Ae.prototype.reverse=Qx,Ae.prototype.value=e0,h.prototype.at=O_,h.prototype.chain=T_,h.prototype.commit=I_,h.prototype.next=D_,h.prototype.plant=M_,h.prototype.reverse=L_,h.prototype.toJSON=h.prototype.valueOf=h.prototype.value=F_,h.prototype.first=h.prototype.head,vi&&(h.prototype[vi]=N_),h},Br=Ix();ar?((ar.exports=Br)._=Br,ma._=Br):ct._=Br}).call(Yr)}(vo,vo.exports);var aa=vo.exports;const fi=({children:n,className:i,context:r,fieldName:s,info:a,label:u,required:c,errors:f,hideRequiredMark:p=!1,onClick:v})=>{var D,x,E;const m=Jt("FieldWrapper",{context:r})??{},w=()=>u&&b.jsxs("label",{...m.labelContainer,htmlFor:s,children:[b.jsx("span",{...m.label,children:u}),c&&!p&&b.jsx("span",{...m.required,children:"*"}),a&&b.jsx(tn,{...m.info,name:"info",tooltip:a})]}),A=v?{onClick:v,onKeyDown:R=>{(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),v())},role:"button"}:{};return b.jsxs("div",{...m.root,...A,children:[!(r!=null&&r.containerless)&&w(),b.jsxs("div",{...m.field,className:xn([(D=m.field)==null?void 0:D.className,i]),children:[n,(r==null?void 0:r.containerless)&&w()]}),typeof((x=f[s])==null?void 0:x.message)=="string"&&b.jsx("small",{...m.errorMessage,children:(E=f[s])==null?void 0:E.message})]})},la=(n,i,r)=>i==null?void 0:i(r),rw=ke("Checkbox",cs(n=>{const{onChange:i=()=>{},label:r,disabled:s,mode:a="binary",info:u,fieldName:c=r??"checkbox",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,_]=Ot({}),A=a==="value"?n.optionValue:void 0,D=!!A&&a==="value",{methods:x}=ci(lt(()=>({validate:q=>v&&(D&&(!Array.isArray(q)||q.length===0)||a==="binary"&&q!==!0||a==="tristate"&&q==null)?"This field is required":la(a,m,q)}),[m,a,D,v]),c)??{},{setValue:E=(q,K)=>{_({[q]:K})},watchedValue:R=w[c],trigger:O=q=>(m==null?void 0:m(w[q]))===!0,formState:{errors:I={}}={}}=x??{},k=lt(()=>D?Array.isArray(R)&&R.some(q=>aa.isEqual(q,A)):R,[D,A,R]),M=Jt("Checkbox",{props:{label:r},context:{checked:k,partialChecked:R===!1&&a==="tristate",tristate:a==="tristate",disabled:s}})??{};mn(()=>{R===void 0&&E(c,p??(a==="value"?[]:a==="tristate"?null:!1))},[p,R]);const $=Je(async()=>{let q=R;D?Array.isArray(R)?Array.isArray(R)&&R.some(K=>aa.isEqual(K,A))?q=R.filter(K=>!aa.isEqual(K,A)):R&&(q=[...R,A]):q=[A]:a==="tristate"?R===null?q=!0:R===!0?q=!1:R===!1&&(q=null):a==="binary"&&(q=!R),E(c,q),la(a,i,q),await O(c)},[E,i,R,a,O,D,A,c]),W=Je(()=>k===!0?b.jsx(tn,{...M.icon,name:"check-4"}):k===!1&&a==="tristate"?b.jsx(tn,{...M.icon,name:"minus-4"}):null,[k]);return b.jsxs(fi,{fieldName:c,required:v,errors:I,label:r,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!I[c],disabled:s,containerless:!0,borderless:!0},onClick:$,children:[b.jsx("div",{...M.box,children:W()}),b.jsx("input",{...M.input,disabled:s,name:c,type:"checkbox"})]})}));rw.displayName="Checkbox";const pf=ke("Dialog",cs(n=>{const{children:i,defaultVisibility:r=!1,visible:s=!1,onVisibleChange:a,header:u,size:c="sm",modal:f=!0,closeOnBlur:p=!0,closeOnEscape:v=!0,useCloseIcon:m=!0,containerClass:w,headerClass:_,contentClass:A,slots:D}=n,x=Jt("Dialog",{props:{size:c},context:{open:s}})??{};return b.jsx(Wg,{defaultOpen:r,modal:f,open:s,onOpenChange:a,children:b.jsxs(jg,{children:[b.jsx(Ug,{...x.overlay}),b.jsxs($g,{className:xn(x.container.className,w),onEscapeKeyDown:E=>{v||E.preventDefault()},onPointerDownOutside:E=>{p||E.preventDefault()},children:[b.jsx(Hg,{asChild:!0,children:b.jsx("div",{className:xn(x.header.className,_),children:b.jsxs(ir,{name:"header",slots:D,children:[b.jsx("span",{children:u}),m&&b.jsx("div",{...x.iconContainer,children:b.jsx(tn,{className:"cursor-pointer",name:"x",onClick:()=>a(!1)})})]})})}),b.jsx(ir,{name:"content",slots:D,children:b.jsx("div",{className:xn(x.content.className,A),children:i})}),b.jsx(ir,{name:"footer",slots:D})]})]})})}));pf.displayName="Dialog";const X1=ke("DialogForm",Yn((n,i)=>{const{children:r,defaultVisibility:s=!1,visible:a=!1,onVisibleChange:u,header:c,size:f="lg",modal:p=!0,closeOnBlur:v=!0,closeOnEscape:m=!0,closeOnSubmit:w=!0,useCloseIcon:_=!0,containerClass:A,headerClass:D,contentClass:x,slots:E,defaultValues:R,onError:O,onSubmit:I,resetOnSubmit:k,buttonsConfig:M}=n,$={visible:a,onVisibleChange:u,defaultVisibility:s,header:c,size:f,modal:p,closeOnBlur:v,closeOnEscape:m,useCloseIcon:_,containerClass:A,contentClass:x,headerClass:D,slots:{header:E==null?void 0:E.header}},W={defaultValues:R,onError:O,onSubmit:I,resetOnSubmit:k,buttonsConfig:M,slots:{footer:E==null?void 0:E.formFooter}},q=K=>{I(K),w&&u(!1)};return b.jsx(pf,{...$,children:b.jsx(sw,{...W,ref:i,onSubmit:q,children:r})})})),iw=n=>{const{label:i,value:r}=n;return b.jsx(Wm,{value:r,children:b.jsx(jm,{children:i})})},ua=(n,i,r)=>i==null?void 0:i(r),Z1=ke("Dropdown",n=>{const{onChange:i=()=>{},label:r,disabled:s,options:a,placeholder:u=`Select ${r??"item"}`,mode:c="single",info:f,value:p,fieldName:v=r??"dropdown",hideRequiredMark:m=!1,required:w,customValidation:_}=n,[A,D]=Ot({}),x=lt(()=>({watchedValue:A[v],setValue:(K,se)=>{D(fe=>{if(c==="multi"){const Z=fe[K],J=Array.isArray(Z)?Z:[];return{[K]:[...J,se]}}return{[K]:se}})},formState:{errors:{}},trigger:K=>ua(c,_,A[K])===!0}),[A,_,c,v]),{methods:E,ref:R}=ci(lt(()=>({validate:K=>w&&(c==="multi"&&(!Array.isArray(K)||K.length===0)||c==="single"&&K==null)?"This field is required":ua(c,_,K)}),[_,c,w]),v),{setValue:O,watchedValue:I,trigger:k,formState:{errors:M={}}}=E??x,$=Jt("Dropdown",{props:{label:r}})??{};mn(()=>{const K=c==="multi"?JSON.stringify([]):null;I||O(v,p??K)},[p,I]);const W=lt(()=>a.map(K=>({...K,value:JSON.stringify(K.value)})),[a]),q=Je(async K=>{const se=JSON.parse(K);O(v,se),ua(c,i,se),await k(v)},[O,v,k,c,i]);return b.jsx(fi,{fieldName:v,required:w,label:r,info:f,errors:M,hideRequiredMark:m,className:"flex items-center gap-1",context:{invalid:!!(M!=null&&M[v]),disabled:s},children:b.jsxs(Nm,{...$.root,value:I==null?"":JSON.stringify(I),onValueChange:q,children:[b.jsxs(Mm,{...$.trigger,name:v,children:[b.jsx(Lm,{placeholder:u}),b.jsx(Fm,{...$.icon,asChild:!0,children:b.jsx(tn,{name:"chevron-down"})})]}),b.jsx(km,{children:b.jsxs(Bm,{...$.content,position:"popper",ref:R,sideOffset:4,children:[b.jsx(Um,{asChild:!0,children:b.jsx(tn,{className:"w-full",name:"chevron-up"})}),b.jsx(Vm,{className:"p-1 w-full",children:W.map(K=>fs(iw,{...K,key:JSON.stringify(K)}))}),b.jsx($m,{asChild:!0,children:b.jsx(tn,{className:"w-full",name:"chevron-down"})})]})})]})})}),ow=Yn((n,i)=>{const{children:r,resetOnSubmit:s,onSubmit:a,onError:u,buttonsConfig:c,slots:f,formKey:p,defaultValues:v,setFormKey:m}=n,w=Vy({defaultValues:v}),{handleSubmit:_,reset:A,resetField:D,getValues:x,setValue:E,setError:R,clearErrors:O,watch:I,formState:{errors:k,isDirty:M,dirtyFields:$}}=w,W=fe=>{a(fe),s&&A()},q=()=>{A(v),m(p+1)},K=()=>Array.isArray(r)?r.map((fe,Z)=>ds(fe,{key:fe.key??Z})):Sl(r)?ds(r):r,se=()=>{const fe=new Set;return c.map(({type:Z,label:J,severity:re,style:he})=>{if(!fe.has(Z))return fe.add(Z),b.jsx(Zy,{label:J,outlined:he==="outlined",severity:re,text:he==="text",type:Z==="submit"?"submit":"button",onClick:()=>Z==="reset"?q():void 0},Z)})};return us(i,()=>({resetField:D,reset:A,getValues:x,setValue:E,setError:R,clearErrors:O,errors:k,watch:I,isDirty:M,dirtyFields:$}),[D,A,x,E,R,O,k,I,M,$]),b.jsx(by,{...w,children:b.jsx("form",{onSubmit:_(W,u),children:b.jsxs("div",{className:"grid grid-cols-2 gap-x-2 gap-y-2",children:[K(),b.jsx(ir,{name:"footer",slots:f,children:b.jsx("div",{className:"col-span-2 gap-1 flex justify-end w-full",children:se()})})]})})})}),sw=ke("Form",Yn(({children:n,defaultValues:i,resetOnSubmit:r=!0,onSubmit:s,onError:a,buttonsConfig:u=[],slots:c},f)=>{const[p,v]=Ot(0),m=()=>{const w={back:{type:"back",label:"Cancel",severity:"secondary",style:"text"},reset:{type:"reset",label:"Clear",severity:"primary",style:"text"},"submit-raw":{type:"submit-raw",label:"Save",severity:"success",style:"outlined"},submit:{type:"submit",label:"Submit",severity:"success",style:"fill"}};return u.map(({type:_,label:A,severity:D,style:x})=>{const{label:E,severity:R,style:O}=w[_];return{type:_,label:A??E,severity:D??R,style:x??O}})};return b.jsx(ow,{formKey:p,setFormKey:v,buttonsConfig:m(),defaultValues:i,ref:f,resetOnSubmit:r,slots:c,onError:a,onSubmit:s,children:n})})),mo=n=>{const{onChange:i=()=>{},onInput:r=()=>{},onBlur:s=()=>{},onKeydown:a=()=>{},label:u,disabled:c,info:f,fieldName:p=u??"baseinput",placeholder:v=u?`Input ${u.toLowerCase()}`:"",type:m="text",hideRequiredMark:w=!1,value:_,required:A,customMessage:D,min:x,max:E,minLength:R,maxLength:O,pattern:I,passwordRequirements:k,customValidation:M,preventInputOnError:$}=n,W=lt(()=>p,[p]),[q,K]=Ot({}),[se,fe]=Ot({}),[Z,J]=Ot(!1),re=lt(()=>({watchedValue:q[p],setValue:(te,xe)=>{K({[te]:xe})},formState:{errors:se},trigger:te=>(M==null?void 0:M(q[te]))===!0}),[se,q,M,p]),he=Jt("BaseInput",{props:{label:u,type:m}})??{},{ref:ae,methods:de,...oe}=ci({type:m,required:A,max:E,min:x,maxLength:O,minLength:R,pattern:I,validate:M,customMessage:D,passwordRequirements:k},W)??{ref:void 0},{setValue:ye,watchedValue:Ne,trigger:Me,formState:{errors:wt={}}}=de??re;mn(()=>{_!=null&&_!==Ne&&ye(W,_)},[_,W,ye,Ne]);const Vt=Je(async te=>{var Pe;const xe=Ne;ye(W,te.target.value);const Fe=await Me(W);if($&&((Pe=wt[W])==null?void 0:Pe.type)!=="required")if(Fe)de||fe({[W]:_});else{ye(W,xe);return}i(te.target.value)},[Ne,ye,Me,$,i,wt,W,_,de]),Ct=Je(async te=>{await Me(W),s(te.target.value)},[Me,s,W]),it=Je(async te=>{r(te.currentTarget.value)},[r]),pt=Je(te=>{m==="number"&&["e","E","+","-"].includes(te.key)&&te.preventDefault(),a(te.key)},[m,a]);return b.jsxs(fi,{required:A,info:f,label:u,errors:wt,hideRequiredMark:w,fieldName:W,context:{invalid:!!wt[W],disabled:c},children:[b.jsx("input",{ref:ae,...oe,...he.input,autoComplete:"off",disabled:c,name:W,placeholder:v,type:Z&&m==="password"?"text":m,onBlur:Ct,onChange:Vt,onInput:it,onKeyDown:pt}),m==="password"&&b.jsx(tn,{...he.eyetoggle,name:Z?"eye-off":"eye-on",onClick:()=>J(!Z)})]})},eE=ke("InputEmail",n=>b.jsx(mo,{...n,type:"email"})),tE=ke("InputNumber",n=>b.jsx(mo,{...n,type:"number"})),nE=ke("InputPassword",n=>b.jsx(mo,{...n,type:"password"})),rE=ke("InputText",n=>b.jsx(mo,{...n,type:"text"})),iE=ke("KanbanBoard",({children:n,className:i,onUpdate:r=()=>{}})=>b.jsx(rp,{onUpdate:r,children:b.jsx("div",{className:i,children:n})})),oE=ke("KanbanColumn",n=>{const{data:i=[],groupId:r,onDrop:s=()=>{},onDragStart:a=()=>{},...u}=n,{dragItem:c,setDragItem:f,cardElements:p,setCardElements:v,onUpdate:m}=ip(),w=lt(()=>i.map(R=>({...R,id:R.id??sa(),groupId:r})),[i,r]);mn(()=>{if(i.length>0){const R=new Set(w.map(O=>O.id));v(O=>[...O.filter(k=>!R.has(k.id)),...w])}},[w,i.length,v]);const _=Je(R=>{const{draggedGroupId:O,draggedId:I}=R;a(R),f({id:I,groupId:O})},[a,f]),A=Je(R=>{if(R.originalEvent.stopPropagation(),s(R),!c||c.id===R.destinationId)return;const O=p.findIndex(k=>k.id===R.destinationId),I=p.findIndex(k=>k.id===c.id);v(k=>{if(O===-1||I===-1)return k;const M=[...k],[$]=M.splice(I,1);return M.splice(O,0,{...$,groupId:r}),m({groupId:r,id:c.id,index:M.filter(W=>W.groupId===r).findIndex(W=>W.id===c.id)}),M})},[c,p,r,s,m,v]),D=Je(R=>{if(R.preventDefault(),s({originalEvent:R,destinationGroupId:r,destinationId:c.id}),!c||c.groupId===r)return;const O=p.find(I=>I.id===c.id);v(I=>[...I.filter(k=>k.id!==O.id),{...O,groupId:r}]),m({groupId:r,id:c.id,index:p.filter(I=>I.groupId===r).length})},[c,p,r,s,m,v]),x=Je(()=>({tabIndex:0,role:"button",type:"button",onClick:u.onClick,onKeyDown:u.onKeyDown,onDragOver:R=>R.preventDefault(),onDrop:D}),[u,D]),E=Je(()=>p.filter(R=>R.groupId===r).map(R=>fs(hf,{...R,clickable:!0,draggable:!0,groupId:r,id:R.id,key:R.id,mode:"kanban",onDragStart:_,onDrop:A})),[p,_,A,r]);return b.jsx("div",{...u,className:"flex flex-col h-max gap-3 m-3 p-3 border border-secondary-800 min-h-[200px] min-w-[200px]",id:r,...x(),children:E()})}),gf=(n,i,r)=>i==null?void 0:i(r),sE=ke("RadioButton",n=>{const{onChange:i=()=>{},label:r,disabled:s,optionValue:a,info:u,fieldName:c=r??"radio",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,_]=Ot({}),A=lt(()=>({watchedValue:w[c],setValue:(M,$)=>{_({[M]:$})},formState:{errors:{}},trigger:M=>gf(typeof a,m,w[M])===!0}),[w,c,a,m]),{methods:D}=ci(lt(()=>({validate:M=>v&&M==null?"This field is required":gf(typeof a,m,M)}),[m,a,v]),c)??{},{setValue:x,watchedValue:E,formState:{errors:R={}}}=D??A,O=E===a,I=Jt("RadioButton",{props:{label:r},context:{checked:O,disabled:s}})??{};mn(()=>{E||x(c,p??(typeof a=="string"?"":!1))},[p,E]);const k=Je(()=>{const M=a;if(x(c,M),typeof a=="string")return(i==null?void 0:i(M))??!0;if(typeof a=="boolean")return(i==null?void 0:i(M))??!0},[a,x,c,i]);return b.jsxs(fi,{fieldName:c,required:v,label:r,errors:R,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!R[c],disabled:s,containerless:!0},onClick:k,children:[b.jsx("div",{...I.box}),O&&b.jsx("div",{...I.innerBox}),b.jsx("input",{...I.input,disabled:s,name:c,type:"radio",onChange:()=>{}})]})}),aE=ke("ToggleSwitch",n=>{const{onChange:i=()=>{},label:r,disabled:s,mode:a="binary",info:u,fieldName:c=r??"checkbox",hideRequiredMark:f=!1,value:p,required:v,customValidation:m}=n,[w,_]=Ot({}),A=lt(()=>({watchedValue:w[c],setValue:($,W)=>{_({[$]:W})},formState:{errors:{}},trigger:$=>(m==null?void 0:m(w[$]))===!0}),[w,m,c]),{methods:D}=ci(lt(()=>({validate:$=>v&&(a==="binary"&&$!==!0||a==="tristate"&&$==null)?"This field is required":la(a,m,$)}),[m,a,v]),c)??{},{setValue:x,watchedValue:E,formState:{errors:R={}}}=D??A,I=Jt("ToggleSwitch",{props:{label:r},context:{checked:E,partialChecked:E===!1&&a==="tristate",tristate:a==="tristate",disabled:s}})??{};mn(()=>{E===void 0&&x(c,p??(a==="tristate"?null:!1))},[p,E]);const k=Je(()=>{let $=E;a==="tristate"?E===null?$=!0:E===!0?$=!1:E===!1&&($=null):a==="binary"&&($=!E),x(c,$),i($)},[x,i,E,c,a]),M=()=>b.jsx("div",{...I.iconContainer,children:b.jsx(tn,{name:"circle-fill",...I.icon})});return b.jsxs(fi,{fieldName:c,required:v,label:r,errors:R,info:u,hideRequiredMark:f,className:"flex items-center gap-1",context:{invalid:!!R[c],disabled:s,borderless:!0},onClick:k,children:[b.jsx("div",{...I.box,children:M()}),b.jsx("input",{...I.input,disabled:s,name:c,type:"checkbox",onChange:()=>{}})]})})}}});
|