@oncehub/ui-react 1.4.1 → 1.4.4-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui-react.es.js +401 -400
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +8 -8
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("*,: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: }::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-pointer-events-none{pointer-events:none}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-inset-y-0{top:0;bottom:0}.tw-left-\\[-9999px\\]{left:-9999px}.tw-right-0{right:0}.tw-mr-2{margin-right:.5rem}.tw-block{display:block}.tw-flex{display:flex}.tw-h-0{height:0px}.tw-h-10{height:2.5rem}.tw-h-20{height:5rem}.tw-h-5{height:1.25rem}.tw-h-full{height:100%}.tw-max-h-\\[200px\\]{max-height:200px}.tw-max-h-\\[210px\\]{max-height:210px}.tw-w-0{width:0px}.tw-w-5{width:1.25rem}.tw-w-full{width:100%}.tw-flex-shrink-0{flex-shrink:0}.tw-cursor-default{cursor:default}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-items-center{align-items:center}.tw-overflow-auto{overflow:auto}.tw-overflow-hidden{overflow:hidden}.tw-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-border-0{border-width:0px}.tw-border-x-0{border-left-width:0px;border-right-width:0px}.tw-border-b{border-bottom-width:1px}.tw-border-b-2{border-bottom-width:2px}.tw-border-b-\\[1px\\]{border-bottom-width:1px}.tw-border-t{border-top-width:1px}.tw-border-t-2{border-top-width:2px}.tw-border-solid{border-style:solid}.tw-border-b-\\[\\#006bb1\\]{--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}.tw-border-b-\\[\\#333333\\]{--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity))}.tw-border-t-transparent{border-top-color:transparent}.tw-bg-\\[\\#EEEEEE\\]{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}.tw-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw-py-1{padding-top:.25rem;padding-bottom:.25rem}.tw-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.tw-pb-2{padding-bottom:.5rem}.tw-pb-\\[10px\\]{padding-bottom:10px}.tw-pl-4{padding-left:1rem}.tw-pl-\\[10px\\]{padding-left:10px}.tw-pr-10{padding-right:2.5rem}.tw-pr-2{padding-right:.5rem}.tw-pr-4{padding-right:1rem}.tw-pr-8{padding-right:2rem}.tw-pt-2{padding-top:.5rem}.tw-pt-\\[10px\\]{padding-top:10px}.tw-text-left{text-align:left}.tw-text-base{font-size:1rem;line-height:1.5rem}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-leading-5{line-height:1.25rem}.tw-text-\\[\\#333333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.tw-text-\\[\\#A7A7A7\\]{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}.tw-placeholder-\\[\\#666666\\]::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.tw-opacity-0{opacity:0}.tw-opacity-100{opacity:1}.tw-shadow-\\[0_1px_6px_0_rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw-shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tw-duration-100{transition-duration:.1s}.tw-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.focus\\:tw-border-b-2:focus{border-bottom-width:2px}.focus\\:tw-border-t-2:focus{border-top-width:2px}.focus\\:tw-border-b-\\[\\#006bb1\\]:focus{--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}.focus\\:tw-py-\\[5px\\]:focus{padding-top:5px;padding-bottom:5px}.focus\\:tw-pb-\\[7px\\]:focus{padding-bottom:7px}.focus\\:tw-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:tw-ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:tw-ring-\\[0px\\]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-\\[0px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-\\[\\#DFDFDF\\]:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(223 223 223 / var(--tw-ring-opacity)) }.focus-visible\\:tw-ring-offset-2:focus-visible{--tw-ring-offset-width: 2px }.focus-visible\\:tw-ring-offset-\\[\\#DFDFDF\\]:focus-visible{--tw-ring-offset-color: #DFDFDF }@media (min-width: 640px){.sm\\:tw-text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:tw-rounded-md::-webkit-scrollbar-thumb{border-radius:.375rem}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:tw-bg-\\[\\#a9a9a9\\]::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:tw-w-\\[6px\\]::-webkit-scrollbar{width:6px}._button_1q2ge_1{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;border-style:solid;text-align:center;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._button_1q2ge_1:hover{text-decoration-line:underline}._button_1q2ge_1:focus{text-decoration-line:underline}._button_1q2ge_1:disabled{cursor:default}._button_1q2ge_1:hover:disabled{text-decoration-line:none}._primary_1q2ge_5{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-color:#006bb1}._primary_1q2ge_5:focus{outline-width:2px;outline-offset:3px}._primary_1q2ge_5:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._secondary_1q2ge_12:hover{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:focus{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity))}._secondary_1q2ge_12:disabled:hover{outline-width:0px}._secondary_1q2ge_12:disabled:focus{outline-width:0px}._small_1q2ge_19{min-height:35px;min-width:70px;padding:4px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._small_1q2ge_19._rounded_1q2ge_22{border-radius:18px}._medium_1q2ge_26{min-height:40px;min-width:74px;padding:7px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._medium_1q2ge_26._rounded_1q2ge_22{border-radius:20px}._large_1q2ge_33{min-height:44px;min-width:94px;padding-left:1.5rem;padding-right:1.5rem;padding-top:8px;padding-bottom:8px;font-size:1rem;line-height:1.5rem;line-height:24px}._large_1q2ge_33._rounded_1q2ge_22{border-radius:22px}._squared_1q2ge_40{border-radius:.25rem}._checkboxLayout_1jaci_1{display:inline-flex;width:100%;align-items:center;white-space:nowrap;vertical-align:middle}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4{display:flex;width:100%;cursor:pointer;align-items:baseline;gap:.5rem;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4>span{white-space:normal;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{position:relative;top:2px;display:inline-block;height:1rem;width:1rem;flex-shrink:0;cursor:pointer;white-space:nowrap;border-width:0px;vertical-align:middle;line-height:0;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-width:0px}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13{position:absolute;bottom:0;left:0;height:0px;width:0px;appearance:none;border-width:0px;padding:0;opacity:0;outline-width:0px}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19{opacity:1}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19 ._checkboxCheckMarkPath_1jaci_22{animation:.18s linear 0ms _checkboxUncheckedChecked_1jaci_1;stroke-dashoffset:0}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:disabled+._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16{position:absolute;inset:0;box-sizing:border-box;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity));background-color:transparent}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19{position:absolute;inset:0;width:100%}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19 ._checkboxCheckMarkPath_1jaci_22{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10:focus-visible ._checkboxFrame_1jaci_16{outline-style:solid;outline-width:2px;outline-offset:-1px;outline-color:#006bb1}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._visuallyHidden_1jaci_43{position:absolute;width:0px;height:0px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}._checkboxLayout_1jaci_1._checkboxDisabled_1jaci_53{pointer-events:none;cursor:default}._checkboxLayout_1jaci_1._checkboxDisabled_1jaci_53 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1._medium_1jaci_59 ._checkboxLabel_1jaci_4>span{width:calc(100% - 24px);font-size:.875rem;line-height:1.25rem}._checkboxLayout_1jaci_1._medium_1jaci_59 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{height:1rem;width:1rem}._checkboxLayout_1jaci_1._large_1jaci_65 ._checkboxLabel_1jaci_4>span{width:calc(100% - 28px);font-size:1rem;line-height:1.5rem}._checkboxLayout_1jaci_1._large_1jaci_65 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{top:4px;height:1.25rem;width:1.25rem}@keyframes _checkboxUncheckedChecked_1jaci_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._textInputWrapper_1i9m6_1{width:100%}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1{box-sizing:border-box;display:block;height:2.5rem;max-height:225px;width:100%;resize:none;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_o3j9t_1,._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4{position:relative;width:100%}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7{position:relative;height:2.5rem;width:100%}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7{box-sizing:border-box;display:block;height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.75rem;padding-top:.5rem;font-size:1rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._selectedValues_o3j9t_7._focused_o3j9t_13{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_o3j9t_1 ._listOptionsWrap_o3j9t_4 ._selectedValuesWrap_o3j9t_7 ._dropDownIcon_o3j9t_16{position:absolute;right:.5rem;top:50%;display:flex;height:100%;width:1.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;align-items:center;justify-content:center}._optionsListContainer_o3j9t_20{position:absolute;z-index:10;margin-top:0;max-height:293px;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:4rem;font-size:.875rem;line-height:1.25rem;line-height:22px;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._optionsListContainer_o3j9t_20:focus{outline:2px solid transparent;outline-offset:2px}._optionsListContainer_o3j9t_20._top_o3j9t_23{transform:translateY(calc(-100% - 40px))}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._searchInputWrap_o3j9t_29{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._searchInputWrap_o3j9t_29 ._searchInput_o3j9t_29{height:100%;width:100%;padding-top:.5rem;padding-bottom:.5rem;padding-left:10px;outline-style:solid;outline-width:1px;outline-offset:-2px;outline-color:#c8c8c8}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._optionsList_o3j9t_20{display:flex;height:38px;list-style-type:none;align-items:center;gap:.5rem;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._optionsList_o3j9t_20 span{display:block;width:calc(100% - 22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;line-height:22px}._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._optionsList_o3j9t_20:hover,._optionsListContainer_o3j9t_20 ._optionsListWrap_o3j9t_26 ._optionsList_o3j9t_20._focused_o3j9t_13{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}._optionsListContainer_o3j9t_20 ._btnContainer_o3j9t_47{position:absolute;left:0;right:0;display:flex;height:64px;width:100%;align-items:center;justify-content:flex-end;border-top-width:1px;border-style:solid;--tw-border-opacity: 1;border-top-color:rgb(200 200 200 / var(--tw-border-opacity));padding-left:18px;padding-right:18px}._optionsListContainer_o3j9t_20 ::-webkit-scrollbar{width:6px}._optionsListContainer_o3j9t_20 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._pseudoCheckbox_1tuhb_1{position:relative;box-sizing:border-box;height:1rem;width:1rem;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity))}._pseudoCheckbox_1tuhb_1 ._checkboxCheckMark_1tuhb_4{position:absolute;inset:0;width:100%}._pseudoCheckbox_1tuhb_1 ._checkboxCheckMark_1tuhb_4 ._checkboxCheckMarkPath_1tuhb_7{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12 ._checkboxCheckMark_1tuhb_4{opacity:1}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12 ._checkboxCheckMark_1tuhb_4 ._checkboxCheckMarkPath_1tuhb_7{animation:.18s linear 0ms _checkboxUncheckedChecked_1tuhb_1;stroke-dashoffset:0}._pseudoCheckbox_1tuhb_1._checkboxDisabled_1tuhb_22{pointer-events:none;cursor:default;--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}@keyframes _checkboxUncheckedChecked_1tuhb_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_owbxn_1{position:relative}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4{margin-right:-.75rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:8px 14px;text-align:center;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:hover,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:focus-visible,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li._selected_owbxn_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:hover,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:focus-visible{text-decoration-line:underline}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li._disabled_owbxn_16{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}._singleSelectWrapper_j8hf5_1{position:relative}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-height:44px;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-left:1.5rem;padding-right:1.5rem;padding-top:9px;padding-bottom:9px;text-align:center;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._selected_j8hf5_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible{text-decoration-line:underline}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16{position:absolute;right:0;top:0;display:inline-block;height:0px;width:0px;border-width:11px;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;border-right-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{position:absolute;left:0;top:-10px;height:10px;width:10px}@keyframes _tw-spin_j8hf5_1{to{transform:rotate(360deg)}}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{animation:_tw-spin_j8hf5_1 1s linear infinite;border-radius:50%;border-width:2px;border-style:solid;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: 1;border-right-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22{position:absolute;left:-1px;top:-9px}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22{display:block;animation:_fill_j8hf5_1 .4s ease-in-out .4s forwards,_scale_j8hf5_1 .3s ease-in-out .9s both;border-radius:50%;--tw-shadow: inset 0px 0px 0px transparent;--tw-shadow-colored: inset 0px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);stroke-miterlimit:10}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22 ._checkmarkCheck_j8hf5_29{transform-origin:50% 50%;animation:_stroke_j8hf5_1 .8s cubic-bezier(.5,0,.45,1) .2s forwards;stroke-dasharray:48;stroke-dashoffset:48}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._disabled_j8hf5_34{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}@keyframes _scale_j8hf5_1{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes _fill_j8hf5_1{to{box-shadow:inset 0 0 0 30px transparent}}@keyframes _stroke_j8hf5_1{to{stroke-dashoffset:0}}._scrollbarContainer_er2uj_1{overflow-y:scroll;scrollbar-color:#ccc transparent;scrollbar-width:thin}._scrollbarContainer_er2uj_1::-webkit-scrollbar{width:12px;scrollbar-width:thin}._scrollbarContainer_er2uj_1::-webkit-scrollbar-track{display:none}._scrollbarContainer_er2uj_1::-webkit-scrollbar-thumb{background-color:#ccc!important;scrollbar-color:#ccc;border:3px #fff solid;border-radius:15px}._textInputWrapper_gym4n_1{width:100%}._textInputWrapper_gym4n_1 ._textInput_gym4n_1{display:block;height:2.5rem;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1 ._textInput_gym4n_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode("*,: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: }::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-pointer-events-none{pointer-events:none}.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-inset-y-0{top:0;bottom:0}.tw-left-\\[-9999px\\]{left:-9999px}.tw-right-0{right:0}.tw-mr-2{margin-right:.5rem}.tw-block{display:block}.tw-flex{display:flex}.tw-h-0{height:0px}.tw-h-10{height:2.5rem}.tw-h-20{height:5rem}.tw-h-5{height:1.25rem}.tw-h-full{height:100%}.tw-max-h-\\[200px\\]{max-height:200px}.tw-max-h-\\[210px\\]{max-height:210px}.tw-w-0{width:0px}.tw-w-5{width:1.25rem}.tw-w-full{width:100%}.tw-flex-shrink-0{flex-shrink:0}.tw-cursor-default{cursor:default}.tw-cursor-pointer{cursor:pointer}.tw-select-none{user-select:none}.tw-items-center{align-items:center}.tw-overflow-auto{overflow:auto}.tw-overflow-hidden{overflow:hidden}.tw-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tw-border-0{border-width:0px}.tw-border-x-0{border-left-width:0px;border-right-width:0px}.tw-border-b{border-bottom-width:1px}.tw-border-b-2{border-bottom-width:2px}.tw-border-b-\\[1px\\]{border-bottom-width:1px}.tw-border-t{border-top-width:1px}.tw-border-t-2{border-top-width:2px}.tw-border-solid{border-style:solid}.tw-border-b-\\[\\#006bb1\\]{--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}.tw-border-b-\\[\\#333333\\]{--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity))}.tw-border-t-transparent{border-top-color:transparent}.tw-bg-\\[\\#EEEEEE\\]{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}.tw-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.tw-py-1{padding-top:.25rem;padding-bottom:.25rem}.tw-py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.tw-py-2{padding-top:.5rem;padding-bottom:.5rem}.tw-pb-2{padding-bottom:.5rem}.tw-pb-\\[10px\\]{padding-bottom:10px}.tw-pl-4{padding-left:1rem}.tw-pl-\\[10px\\]{padding-left:10px}.tw-pr-10{padding-right:2.5rem}.tw-pr-2{padding-right:.5rem}.tw-pr-4{padding-right:1rem}.tw-pr-8{padding-right:2rem}.tw-pt-2{padding-top:.5rem}.tw-pt-\\[10px\\]{padding-top:10px}.tw-text-left{text-align:left}.tw-text-base{font-size:1rem;line-height:1.5rem}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-leading-5{line-height:1.25rem}.tw-text-\\[\\#333333\\]{--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}.tw-text-\\[\\#A7A7A7\\]{--tw-text-opacity: 1;color:rgb(167 167 167 / var(--tw-text-opacity))}.tw-placeholder-\\[\\#666666\\]::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}.tw-opacity-0{opacity:0}.tw-opacity-100{opacity:1}.tw-shadow-\\[0_1px_6px_0_rgba\\(0\\,0\\,0\\,0\\.5\\)\\]{--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw-shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.tw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.tw-duration-100{transition-duration:.1s}.tw-ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.focus\\:tw-border-b-2:focus{border-bottom-width:2px}.focus\\:tw-border-t-2:focus{border-top-width:2px}.focus\\:tw-border-b-\\[\\#006bb1\\]:focus{--tw-border-opacity: 1;border-bottom-color:rgb(0 107 177 / var(--tw-border-opacity))}.focus\\:tw-py-\\[5px\\]:focus{padding-top:5px;padding-bottom:5px}.focus\\:tw-pb-\\[7px\\]:focus{padding-bottom:7px}.focus\\:tw-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:tw-ring-0:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:tw-ring-\\[0px\\]:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-\\[0px\\]:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:tw-ring-\\[\\#DFDFDF\\]:focus-visible{--tw-ring-opacity: 1;--tw-ring-color: rgb(223 223 223 / var(--tw-ring-opacity)) }.focus-visible\\:tw-ring-offset-2:focus-visible{--tw-ring-offset-width: 2px }.focus-visible\\:tw-ring-offset-\\[\\#DFDFDF\\]:focus-visible{--tw-ring-offset-color: #DFDFDF }@media (min-width: 640px){.sm\\:tw-text-sm{font-size:.875rem;line-height:1.25rem}}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:tw-rounded-md::-webkit-scrollbar-thumb{border-radius:.375rem}.\\[\\&\\:\\:-webkit-scrollbar-thumb\\]\\:tw-bg-\\[\\#a9a9a9\\]::-webkit-scrollbar-thumb{--tw-bg-opacity: 1;background-color:rgb(169 169 169 / var(--tw-bg-opacity))}.\\[\\&\\:\\:-webkit-scrollbar\\]\\:tw-w-\\[6px\\]::-webkit-scrollbar{width:6px}._button_1q2ge_1{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;justify-content:center;border-width:1px;border-style:solid;text-align:center;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._button_1q2ge_1:hover{text-decoration-line:underline}._button_1q2ge_1:focus{text-decoration-line:underline}._button_1q2ge_1:disabled{cursor:default}._button_1q2ge_1:hover:disabled{text-decoration-line:none}._primary_1q2ge_5{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity));font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity));outline-color:#006bb1}._primary_1q2ge_5:focus{outline-width:2px;outline-offset:3px}._primary_1q2ge_5:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(200 200 200 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}._secondary_1q2ge_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));font-weight:400;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._secondary_1q2ge_12:hover{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:focus{border-color:transparent;outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._secondary_1q2ge_12:disabled{--tw-border-opacity: 1;border-color:rgb(200 200 200 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(200 200 200 / var(--tw-text-opacity))}._secondary_1q2ge_12:disabled:hover{outline-width:0px}._secondary_1q2ge_12:disabled:focus{outline-width:0px}._small_1q2ge_19{min-height:35px;min-width:70px;padding:4px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._small_1q2ge_19._rounded_1q2ge_22{border-radius:18px}._medium_1q2ge_26{min-height:40px;min-width:74px;padding:7px 22px;font-size:.875rem;line-height:1.25rem;line-height:22px}._medium_1q2ge_26._rounded_1q2ge_22{border-radius:20px}._large_1q2ge_33{min-height:44px;min-width:94px;padding-left:1.5rem;padding-right:1.5rem;padding-top:8px;padding-bottom:8px;font-size:1rem;line-height:1.5rem;line-height:24px}._large_1q2ge_33._rounded_1q2ge_22{border-radius:22px}._squared_1q2ge_40{border-radius:.25rem}._checkboxLayout_1jaci_1{display:inline-flex;width:100%;align-items:center;white-space:nowrap;vertical-align:middle}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4{display:flex;width:100%;cursor:pointer;align-items:baseline;gap:.5rem;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4>span{white-space:normal;font-size:.875rem;line-height:1.25rem;line-height:22px;letter-spacing:0;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{position:relative;top:2px;display:inline-block;height:1rem;width:1rem;flex-shrink:0;cursor:pointer;white-space:nowrap;border-width:0px;vertical-align:middle;line-height:0;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);outline-width:0px}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13{position:absolute;bottom:0;left:0;height:0px;width:0px;appearance:none;border-width:0px;padding:0;opacity:0;outline-width:0px}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19{opacity:1}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:checked+._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19 ._checkboxCheckMarkPath_1jaci_22{animation:.18s linear 0ms _checkboxUncheckedChecked_1jaci_1;stroke-dashoffset:0}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxInput_1jaci_13:disabled+._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16{position:absolute;inset:0;box-sizing:border-box;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity));background-color:transparent}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19{position:absolute;inset:0;width:100%}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16 ._checkboxCheckMark_1jaci_19 ._checkboxCheckMarkPath_1jaci_22{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10:focus-visible ._checkboxFrame_1jaci_16{outline-style:solid;outline-width:2px;outline-offset:-1px;outline-color:#006bb1}._checkboxLayout_1jaci_1 ._checkboxLabel_1jaci_4 ._visuallyHidden_1jaci_43{position:absolute;width:0px;height:0px;margin:0;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}._checkboxLayout_1jaci_1._checkboxDisabled_1jaci_53{pointer-events:none;cursor:default}._checkboxLayout_1jaci_1._checkboxDisabled_1jaci_53 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10 ._checkboxFrame_1jaci_16{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}._checkboxLayout_1jaci_1._medium_1jaci_59 ._checkboxLabel_1jaci_4>span{width:calc(100% - 24px);font-size:.875rem;line-height:1.25rem}._checkboxLayout_1jaci_1._medium_1jaci_59 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{height:1rem;width:1rem}._checkboxLayout_1jaci_1._large_1jaci_65 ._checkboxLabel_1jaci_4>span{width:calc(100% - 28px);font-size:1rem;line-height:1.5rem}._checkboxLayout_1jaci_1._large_1jaci_65 ._checkboxLabel_1jaci_4 ._checkboxInnerContainer_1jaci_10{top:4px;height:1.25rem;width:1.25rem}@keyframes _checkboxUncheckedChecked_1jaci_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._textInputWrapper_1i9m6_1{width:100%}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1{box-sizing:border-box;display:block;height:2.5rem;max-height:225px;width:100%;resize:none;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_1i9m6_1 ._textInput_1i9m6_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_1if8o_1,._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4{position:relative;width:100%}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7{position:relative;height:2.5rem;width:100%}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7{box-sizing:border-box;display:block;height:100%;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-width:0px;border-bottom-width:1px;border-style:solid;--tw-border-opacity: 1;border-bottom-color:rgb(51 51 51 / var(--tw-border-opacity));padding-bottom:.5rem;padding-left:10px;padding-right:2.75rem;padding-top:.5rem;font-size:1rem;line-height:1rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity))}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7::placeholder{--tw-placeholder-opacity: 1;color:rgb(102 102 102 / var(--tw-placeholder-opacity))}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7:focus-within{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7:focus-visible{outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7._focused_1if8o_13{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px;outline:2px solid transparent;outline-offset:2px}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._selectedValues_1if8o_7._placeholder_1if8o_16{--tw-text-opacity: 1;color:rgb(102 102 102 / var(--tw-text-opacity))}._multiSelectContainer_1if8o_1 ._listOptionsWrap_1if8o_4 ._selectedValuesWrap_1if8o_7 ._dropDownIcon_1if8o_19{position:absolute;right:.5rem;top:50%;display:flex;height:100%;width:1.75rem;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));cursor:pointer;align-items:center;justify-content:center}._optionsListContainer_1if8o_23{position:absolute;z-index:10;margin-top:0;max-height:293px;width:100%;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-bottom:4rem;font-size:.875rem;line-height:1.25rem;line-height:22px;--tw-shadow: 0 1px 6px 0 rgba(0,0,0,.5);--tw-shadow-colored: 0 1px 6px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}._optionsListContainer_1if8o_23:focus{outline:2px solid transparent;outline-offset:2px}._optionsListContainer_1if8o_23._top_1if8o_26{transform:translateY(calc(-100% - 40px))}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29{max-height:225px;overflow:auto;padding-top:1rem;padding-bottom:1rem}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._searchInputWrap_1if8o_32{margin-bottom:.5rem;height:2.5rem;padding-left:10px;padding-right:10px}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._searchInputWrap_1if8o_32 ._searchInput_1if8o_32{height:100%;width:100%;padding-top:.5rem;padding-bottom:.5rem;padding-left:10px;outline-style:solid;outline-width:1px;outline-offset:-2px;outline-color:#c8c8c8}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ul{margin:0;padding:0}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._optionsList_1if8o_23{box-sizing:border-box;display:flex;height:38px;list-style-type:none;align-items:center;gap:.5rem;padding-left:10px;padding-right:10px;padding-top:.5rem;padding-bottom:.5rem}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._optionsList_1if8o_23 span{display:block;width:calc(100% - 22px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;line-height:1.25rem;line-height:22px}._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._optionsList_1if8o_23:hover,._optionsListContainer_1if8o_23 ._optionsListWrap_1if8o_29 ._optionsList_1if8o_23._focused_1if8o_13{--tw-bg-opacity: 1;background-color:rgb(238 238 238 / var(--tw-bg-opacity))}._optionsListContainer_1if8o_23 ._btnContainer_1if8o_53{position:absolute;left:0;right:0;box-sizing:border-box;display:flex;height:64px;width:100%;align-items:center;justify-content:flex-end;border-width:0px;border-top-width:1px;border-style:solid;--tw-border-opacity: 1;border-top-color:rgb(200 200 200 / var(--tw-border-opacity));padding-left:18px;padding-right:18px}._optionsListContainer_1if8o_23 ::-webkit-scrollbar{width:6px}._optionsListContainer_1if8o_23 ::-webkit-scrollbar-thumb{background-color:#a9a9a9;border-radius:6px}._pseudoCheckbox_1tuhb_1{position:relative;box-sizing:border-box;height:1rem;width:1rem;border-radius:3px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(156 156 156 / var(--tw-border-opacity))}._pseudoCheckbox_1tuhb_1 ._checkboxCheckMark_1tuhb_4{position:absolute;inset:0;width:100%}._pseudoCheckbox_1tuhb_1 ._checkboxCheckMark_1tuhb_4 ._checkboxCheckMarkPath_1tuhb_7{stroke-width:3px;stroke-dashoffset:23;stroke-dasharray:23}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12{--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(0 107 177 / var(--tw-bg-opacity))}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12 ._checkboxCheckMark_1tuhb_4{opacity:1}._pseudoCheckbox_1tuhb_1._checked_1tuhb_12 ._checkboxCheckMark_1tuhb_4 ._checkboxCheckMarkPath_1tuhb_7{animation:.18s linear 0ms _checkboxUncheckedChecked_1tuhb_1;stroke-dashoffset:0}._pseudoCheckbox_1tuhb_1._checkboxDisabled_1tuhb_22{pointer-events:none;cursor:default;--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(249 249 249 / var(--tw-bg-opacity))}@keyframes _checkboxUncheckedChecked_1tuhb_1{0%,50%{stroke-dashoffset:23}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}to{stroke-dashoffset:0}}._multiSelectContainer_owbxn_1{position:relative}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4{margin-right:-.75rem;display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding:8px 14px;text-align:center;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:hover,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:focus-visible,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li._selected_owbxn_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:hover,._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li:focus-visible{text-decoration-line:underline}._multiSelectContainer_owbxn_1 ._quickOptionsWrap_owbxn_4 li._disabled_owbxn_16{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}._singleSelectWrapper_j8hf5_1{position:relative}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4{display:flex;flex-direction:row;flex-wrap:wrap;gap:.75rem}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li{position:relative;box-sizing:border-box;display:inline-flex;min-height:44px;min-width:80px;cursor:pointer;list-style-type:none;align-items:center;word-break:break-all;border-radius:4px;border-width:1px;border-style:solid;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-left:1.5rem;padding-right:1.5rem;padding-top:9px;padding-bottom:9px;text-align:center;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 107 177 / var(--tw-text-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._selected_j8hf5_10{outline-style:solid;outline-width:2px;outline-offset:-2px;outline-color:#006bb1}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:hover,._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li:focus-visible{text-decoration-line:underline}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16{position:absolute;right:0;top:0;display:inline-block;height:0px;width:0px;border-width:11px;border-style:solid;border-bottom-color:transparent;border-left-color:transparent;border-right-color:rgb(0 107 177 / var(--tw-border-opacity));--tw-border-opacity: 1;border-top-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{position:absolute;left:0;top:-10px;height:10px;width:10px}@keyframes _tw-spin_j8hf5_1{to{transform:rotate(360deg)}}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._loader_j8hf5_19{animation:_tw-spin_j8hf5_1 1s linear infinite;border-radius:50%;border-width:2px;border-style:solid;border-color:rgb(255 255 255 / var(--tw-border-opacity));--tw-border-opacity: 1;border-right-color:rgb(0 107 177 / var(--tw-border-opacity))}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22{position:absolute;left:-1px;top:-9px}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22{display:block;animation:_fill_j8hf5_1 .4s ease-in-out .4s forwards,_scale_j8hf5_1 .3s ease-in-out .9s both;border-radius:50%;--tw-shadow: inset 0px 0px 0px transparent;--tw-shadow-colored: inset 0px 0px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);stroke-miterlimit:10}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li ._triangle_j8hf5_16 ._checkmarkWrap_j8hf5_22 ._checkmark_j8hf5_22 ._checkmarkCheck_j8hf5_29{transform-origin:50% 50%;animation:_stroke_j8hf5_1 .8s cubic-bezier(.5,0,.45,1) .2s forwards;stroke-dasharray:48;stroke-dashoffset:48}._singleSelectWrapper_j8hf5_1 ._quickOption_j8hf5_4 li._disabled_j8hf5_34{pointer-events:none!important;cursor:default!important;--tw-border-opacity: 1 !important;border-color:rgb(228 228 228 / var(--tw-border-opacity))!important;--tw-text-opacity: 1 !important;color:rgb(51 51 51 / var(--tw-text-opacity))!important;text-decoration-line:none!important;outline-width:0px!important}@keyframes _scale_j8hf5_1{0%,to{transform:none}50%{transform:scale3d(1.1,1.1,1)}}@keyframes _fill_j8hf5_1{to{box-shadow:inset 0 0 0 30px transparent}}@keyframes _stroke_j8hf5_1{to{stroke-dashoffset:0}}._scrollbarContainer_1vq1q_1{overflow-y:auto}._scrollbarContainer_1vq1q_1::-webkit-scrollbar{width:10px}._scrollbarContainer_1vq1q_1::-webkit-scrollbar-track{display:none}._scrollbarContainer_1vq1q_1::-webkit-scrollbar-thumb{background-color:#ccc!important;border:2px #fff solid;border-radius:15px}._scrollbarContainer_1vq1q_1{@supports not selector(::-webkit-scrollbar){scrollbar-width:thin;scrollbar-color:#ccc}}._textInputWrapper_gym4n_1{width:100%}._textInputWrapper_gym4n_1 ._textInput_gym4n_1{display:block;height:2.5rem;width:100%;border-width:0px;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(51 51 51 / var(--tw-border-opacity));padding-left:10px;padding-right:10px;padding-bottom:.5rem;padding-top:7px;font-size:1rem;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(51 51 51 / var(--tw-text-opacity));outline:2px solid transparent;outline-offset:2px}._textInputWrapper_gym4n_1 ._textInput_gym4n_1:focus{border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(0 107 177 / var(--tw-border-opacity));padding-bottom:7px}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
2
|
(function(fe,c){typeof exports=="object"&&typeof module<"u"?c(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],c):(fe=typeof globalThis<"u"?globalThis:fe||self,c(fe["ui-react"]={},fe.React,fe.ReactDOM))})(this,function(fe,c,Kt){"use strict";function bi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Qe=bi(c),Ws="";var vi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gt={exports:{}},mt={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var _n;function hi(){return _n||(_n=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),a=Symbol.iterator,d="@@iterator";function b(l){if(l===null||typeof l!="object")return null;var x=a&&l[a]||l[d];return typeof x=="function"?x:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(l){{for(var x=arguments.length,_=new Array(x>1?x-1:0),R=1;R<x;R++)_[R-1]=arguments[R];y("error",l,_)}}function y(l,x,_){{var R=w.ReactDebugCurrentFrame,Z=R.getStackAddendum();Z!==""&&(x+="%s",_=_.concat([Z]));var oe=_.map(function(G){return String(G)});oe.unshift("Warning: "+x),Function.prototype.apply.call(console[l],console,oe)}}var k=!1,A=!1,j=!1,z=!1,W=!1,P;P=Symbol.for("react.module.reference");function Y(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===u||W||l===i||l===m||l===h||z||l===f||k||A||j||typeof l=="object"&&l!==null&&(l.$$typeof===s||l.$$typeof===g||l.$$typeof===o||l.$$typeof===p||l.$$typeof===v||l.$$typeof===P||l.getModuleId!==void 0))}function le(l,x,_){var R=l.displayName;if(R)return R;var Z=x.displayName||x.name||"";return Z!==""?_+"("+Z+")":_}function te(l){return l.displayName||"Context"}function O(l){if(l==null)return null;if(typeof l.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case u:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case h:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case p:var x=l;return te(x)+".Consumer";case o:var _=l;return te(_._context)+".Provider";case v:return le(l,l.render,"ForwardRef");case g:var R=l.displayName||null;return R!==null?R:O(l.type)||"Memo";case s:{var Z=l,oe=Z._payload,G=Z._init;try{return O(G(oe))}catch{return null}}}return null}var Q=Object.assign,ne=0,de,U,ue,re,X,ve,pe;function se(){}se.__reactDisabledLog=!0;function C(){{if(ne===0){de=console.log,U=console.info,ue=console.warn,re=console.error,X=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var l={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}ne++}}function F(){{if(ne--,ne===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},l,{value:de}),info:Q({},l,{value:U}),warn:Q({},l,{value:ue}),error:Q({},l,{value:re}),group:Q({},l,{value:X}),groupCollapsed:Q({},l,{value:ve}),groupEnd:Q({},l,{value:pe})})}ne<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=w.ReactCurrentDispatcher,ge;function
|
|
18
|
+
*/var _n;function hi(){return _n||(_n=1,process.env.NODE_ENV!=="production"&&function(){var e=c,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),p=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),s=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),a=Symbol.iterator,d="@@iterator";function b(l){if(l===null||typeof l!="object")return null;var x=a&&l[a]||l[d];return typeof x=="function"?x:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(l){{for(var x=arguments.length,_=new Array(x>1?x-1:0),R=1;R<x;R++)_[R-1]=arguments[R];y("error",l,_)}}function y(l,x,_){{var R=w.ReactDebugCurrentFrame,Z=R.getStackAddendum();Z!==""&&(x+="%s",_=_.concat([Z]));var oe=_.map(function(G){return String(G)});oe.unshift("Warning: "+x),Function.prototype.apply.call(console[l],console,oe)}}var k=!1,A=!1,j=!1,z=!1,W=!1,P;P=Symbol.for("react.module.reference");function Y(l){return!!(typeof l=="string"||typeof l=="function"||l===r||l===u||W||l===i||l===m||l===h||z||l===f||k||A||j||typeof l=="object"&&l!==null&&(l.$$typeof===s||l.$$typeof===g||l.$$typeof===o||l.$$typeof===p||l.$$typeof===v||l.$$typeof===P||l.getModuleId!==void 0))}function le(l,x,_){var R=l.displayName;if(R)return R;var Z=x.displayName||x.name||"";return Z!==""?_+"("+Z+")":_}function te(l){return l.displayName||"Context"}function O(l){if(l==null)return null;if(typeof l.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case r:return"Fragment";case n:return"Portal";case u:return"Profiler";case i:return"StrictMode";case m:return"Suspense";case h:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case p:var x=l;return te(x)+".Consumer";case o:var _=l;return te(_._context)+".Provider";case v:return le(l,l.render,"ForwardRef");case g:var R=l.displayName||null;return R!==null?R:O(l.type)||"Memo";case s:{var Z=l,oe=Z._payload,G=Z._init;try{return O(G(oe))}catch{return null}}}return null}var Q=Object.assign,ne=0,de,U,ue,re,X,ve,pe;function se(){}se.__reactDisabledLog=!0;function C(){{if(ne===0){de=console.log,U=console.info,ue=console.warn,re=console.error,X=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var l={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}ne++}}function F(){{if(ne--,ne===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Q({},l,{value:de}),info:Q({},l,{value:U}),warn:Q({},l,{value:ue}),error:Q({},l,{value:re}),group:Q({},l,{value:X}),groupCollapsed:Q({},l,{value:ve}),groupEnd:Q({},l,{value:pe})})}ne<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=w.ReactCurrentDispatcher,ge;function _e(l,x,_){{if(ge===void 0)try{throw Error()}catch(Z){var R=Z.stack.trim().match(/\n( *(at )?)/);ge=R&&R[1]||""}return`
|
|
19
19
|
`+ge+l}}var at=!1,Ze;{var T=typeof WeakMap=="function"?WeakMap:Map;Ze=new T}function V(l,x){if(!l||at)return"";{var _=Ze.get(l);if(_!==void 0)return _}var R;at=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=B.current,B.current=null,C();try{if(x){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(et){R=et}Reflect.construct(l,[],G)}else{try{G.call()}catch(et){R=et}l.call(G.prototype)}}else{try{throw Error()}catch(et){R=et}l()}}catch(et){if(et&&R&&typeof et.stack=="string"){for(var q=et.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`),he=q.length-1,xe=
|
|
22
|
-
`+q[he].replace(" at new "," at ");return l.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",l.displayName)),typeof l=="function"&&Ze.set(l,Be),Be}while(he>=1&&xe>=0);break}}}finally{at=!1,B.current=oe,F(),Error.prepareStackTrace=Z}var vt=l?l.displayName||l.name:"",pi=vt?
|
|
20
|
+
`),Ie=R.stack.split(`
|
|
21
|
+
`),he=q.length-1,xe=Ie.length-1;he>=1&&xe>=0&&q[he]!==Ie[xe];)xe--;for(;he>=1&&xe>=0;he--,xe--)if(q[he]!==Ie[xe]){if(he!==1||xe!==1)do if(he--,xe--,xe<0||q[he]!==Ie[xe]){var Be=`
|
|
22
|
+
`+q[he].replace(" at new "," at ");return l.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",l.displayName)),typeof l=="function"&&Ze.set(l,Be),Be}while(he>=1&&xe>=0);break}}}finally{at=!1,B.current=oe,F(),Error.prepareStackTrace=Z}var vt=l?l.displayName||l.name:"",pi=vt?_e(vt):"";return typeof l=="function"&&Ze.set(l,pi),pi}function we(l,x,_){return V(l,!1)}function me(l){var x=l.prototype;return!!(x&&x.isReactComponent)}function Ne(l,x,_){if(l==null)return"";if(typeof l=="function")return V(l,me(l));if(typeof l=="string")return _e(l);switch(l){case m:return _e("Suspense");case h:return _e("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case v:return we(l.render);case g:return Ne(l.type,x,_);case s:{var R=l,Z=R._payload,oe=R._init;try{return Ne(oe(Z),x,_)}catch{}}}return""}var Le=Object.prototype.hasOwnProperty,We={},Ce=w.ReactDebugCurrentFrame;function $e(l){if(l){var x=l._owner,_=Ne(l.type,l._source,x?x.type:null);Ce.setExtraStackFrame(_)}else Ce.setExtraStackFrame(null)}function qt(l,x,_,R,Z){{var oe=Function.call.bind(Le);for(var G in l)if(oe(l,G)){var q=void 0;try{if(typeof l[G]!="function"){var Ie=Error((R||"React class")+": "+_+" type `"+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[G]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}q=l[G](x,G,R,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(he){q=he}q&&!(q instanceof Error)&&($e(Z),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",R||"React class",_,G,typeof q),$e(null)),q instanceof Error&&!(q.message in We)&&(We[q.message]=!0,$e(Z),E("Failed %s type: %s",_,q.message),$e(null))}}}var zt=Array.isArray;function Pe(l){return zt(l)}function st(l){{var x=typeof Symbol=="function"&&Symbol.toStringTag,_=x&&l[Symbol.toStringTag]||l.constructor.name||"Object";return _}}function pt(l){try{return H(l),!1}catch{return!0}}function H(l){return""+l}function J(l){if(pt(l))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",st(l)),H(l)}var N=w.ReactCurrentOwner,ie={key:!0,ref:!0,__self:!0,__source:!0},qe,De,K;K={};function D(l){if(Le.call(l,"ref")){var x=Object.getOwnPropertyDescriptor(l,"ref").get;if(x&&x.isReactWarning)return!1}return l.ref!==void 0}function Ve(l){if(Le.call(l,"key")){var x=Object.getOwnPropertyDescriptor(l,"key").get;if(x&&x.isReactWarning)return!1}return l.key!==void 0}function _t(l,x){if(typeof l.ref=="string"&&N.current&&x&&N.current.stateNode!==x){var _=O(N.current.type);K[_]||(E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',O(N.current.type),l.ref),K[_]=!0)}}function Yt(l,x){{var _=function(){qe||(qe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};_.isReactWarning=!0,Object.defineProperty(l,"key",{get:_,configurable:!0})}}function Cs(l,x){{var _=function(){De||(De=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",x))};_.isReactWarning=!0,Object.defineProperty(l,"ref",{get:_,configurable:!0})}}var Ps=function(l,x,_,R,Z,oe,G){var q={$$typeof:t,type:l,key:x,ref:_,props:G,_owner:oe};return q._store={},Object.defineProperty(q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(q,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(q,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(q.props),Object.freeze(q)),q};function Is(l,x,_,R,Z){{var oe,G={},q=null,Ie=null;_!==void 0&&(J(_),q=""+_),Ve(x)&&(J(x.key),q=""+x.key),D(x)&&(Ie=x.ref,_t(x,Z));for(oe in x)Le.call(x,oe)&&!ie.hasOwnProperty(oe)&&(G[oe]=x[oe]);if(l&&l.defaultProps){var he=l.defaultProps;for(oe in he)G[oe]===void 0&&(G[oe]=he[oe])}if(q||Ie){var xe=typeof l=="function"?l.displayName||l.name||"Unknown":l;q&&Yt(G,xe),Ie&&Cs(G,xe)}return Ps(l,q,Ie,Z,R,N.current,G)}}var Sn=w.ReactCurrentOwner,si=w.ReactDebugCurrentFrame;function bt(l){if(l){var x=l._owner,_=Ne(l.type,l._source,x?x.type:null);si.setExtraStackFrame(_)}else si.setExtraStackFrame(null)}var On;On=!1;function En(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function li(){{if(Sn.current){var l=O(Sn.current.type);if(l)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+l+"`."}return""}}function js(l){{if(l!==void 0){var x=l.fileName.replace(/^.*[\\\/]/,""),_=l.lineNumber;return`
|
|
25
25
|
|
|
26
26
|
Check your code at `+x+":"+_+"."}return""}}var ui={};function Fs(l){{var x=li();if(!x){var _=typeof l=="string"?l:l.displayName||l.name;_&&(x=`
|
|
27
27
|
|
|
28
|
-
Check the top-level render call using <`+_+">.")}return x}}function ci(l,x){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var _=Fs(x);if(ui[_])return;ui[_]=!0;var R="";l&&l._owner&&l._owner!==Sn.current&&(R=" It was passed a child from "+O(l._owner.type)+"."),bt(l),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,R),bt(null)}}function di(l,x){{if(typeof l!="object")return;if(Ce(l))for(var _=0;_<l.length;_++){var R=l[_];En(R)&&ci(R,x)}else if(En(l))l._store&&(l._store.validated=!0);else if(l){var Z=b(l);if(typeof Z=="function"&&Z!==l.entries)for(var oe=Z.call(l),G;!(G=oe.next()).done;)En(G.value)&&ci(G.value,x)}}}function Ls(l){{var x=l.type;if(x==null||typeof x=="string")return;var _;if(typeof x=="function")_=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===v||x.$$typeof===g))_=x.propTypes;else return;if(_){var R=O(x);qt(_,l.props,"prop",R,l)}else if(x.PropTypes!==void 0&&!On){On=!0;var Z=O(x);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function As(l){{for(var x=Object.keys(l.props),_=0;_<x.length;_++){var R=x[_];if(R!=="children"&&R!=="key"){bt(l),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),bt(null);break}}l.ref!==null&&(bt(l),E("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function fi(l,x,_,R,Z,oe){{var G=Y(l);if(!G){var q="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Pe=js(Z);Pe?q+=Pe:q+=li();var he;l===null?he="null":Ce(l)?he="array":l!==void 0&&l.$$typeof===t?(he="<"+(O(l.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof l,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var xe=Is(l,x,_,Z,oe);if(xe==null)return xe;if(G){var Be=x.children;if(Be!==void 0)if(R)if(Ce(Be)){for(var vt=0;vt<Be.length;vt++)di(Be[vt],l);Object.freeze&&Object.freeze(Be)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else di(Be,l)}return l===r?As(xe):Ls(xe),xe}}function Ns(l,x,_){return fi(l,x,_,!0)}function Ds(l,x,_){return fi(l,x,_,!1)}var Ms=Ds,Rs=Ns;ht.Fragment=r,ht.jsx=Ms,ht.jsxs=Rs}()),ht}process.env.NODE_ENV==="production"?Gt.exports=mi():Gt.exports=hi();var S=Gt.exports;const Ct={button:"_button_1q2ge_1",primary:"_primary_1q2ge_5",secondary:"_secondary_1q2ge_12",small:"_small_1q2ge_19",rounded:"_rounded_1q2ge_22",medium:"_medium_1q2ge_26",large:"_large_1q2ge_33",squared:"_squared_1q2ge_40"},tt=e=>{if(!e)throw new Error("Please provide a hex color code");if(!/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))throw new Error("Please provide a valid hex code");e=e.length===4?e.replace(/^#(.)(.)(.)$/,"#$1$1$2$2$3$3"):e;const r=e.substring(1),[i,u,o]=[0,2,4].map(v=>parseInt(r.substring(v,v+2),16));return(.2126*i+.7152*u+.0722*o)/255<.7?"dark":"light"};class Ue{static convert3HexTo6(t){return typeof t=="string"&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)&&t.length===4?t.replace(/^#(.)(.)(.)$/,"#$1$1$2$2$3$3"):t}}const Qt=c.forwardRef(({themeColor:e="",variant:t="primary",size:n="small",shape:r="rounded",children:i,className:u="",style:o={},disabled:p,...v},m)=>{let h={};if(e){const s=tt(e);if(e=Ue.convert3HexTo6(e),!p&&(s==="dark"||s==="light")){const f=t==="primary"?e:"#ffffff",a=t==="primary"?s==="dark"?"#ffffff":"#333333":s==="light"?"#333333":e,d=e==="#ffffff"?"#c8c8c8":e;h={backgroundColor:f,color:a,outlineColor:d,borderColor:d}}}const g=[Ct.button,Ct[t],Ct[n],Ct[r],u].filter(Boolean).join(" ");return S.jsx("button",{disabled:p,ref:m,style:{...h,...o},className:`${g}`,...v,children:i})});Qt.displayName="Button";const ze={checkboxLayout:"_checkboxLayout_1jaci_1",checkboxLabel:"_checkboxLabel_1jaci_4",checkboxInnerContainer:"_checkboxInnerContainer_1jaci_10",checkboxInput:"_checkboxInput_1jaci_13",checkboxFrame:"_checkboxFrame_1jaci_16",checkboxCheckMark:"_checkboxCheckMark_1jaci_19",checkboxCheckMarkPath:"_checkboxCheckMarkPath_1jaci_22",checkboxUncheckedChecked:"_checkboxUncheckedChecked_1jaci_1",visuallyHidden:"_visuallyHidden_1jaci_43",checkboxDisabled:"_checkboxDisabled_1jaci_53",medium:"_medium_1jaci_59",large:"_large_1jaci_65"},gi=()=>`checkbox_${Math.random().toString(36).substring(2,11)}`,Jt=c.forwardRef(({children:e,themeColor:t="",checkboxSize:n="medium",id:r=gi(),checked:i=!1,disabled:u=!1,className:o="",onChange:p,style:v={},tabIndex:m,...h},g)=>{const[s,f]=c.useState(i);let a={},d,b=u?"#9b9b9b":"#ffffff";if(t){const k=tt(t);if(t=Ue.convert3HexTo6(t),k==="dark"||k==="light"){switch(k){case"dark":b=u?s?"#9b9b9b":"#f9f9f9":"#ffffff";break;case"light":b=u?s?"#9b9b9b":"#f9f9f9":s?"#333333":"#ffffff";break;default:b="#9b9b9b";break}const A=u?"#f9f9f9":s?t:"#ffffff";d=u?"#e4e4e4":t=="#ffffff"?"#333333":t,s&&(a={backgroundColor:A,borderColor:d,outlineColor:d})}}const w=u?ze.checkboxDisabled:"",E=[ze.checkboxLayout,ze[n],w,o].filter(Boolean).join(" "),y=k=>{k.key!="Enter"&&(k.preventDefault(),p?.(k.target.checked),f(!s))};return S.jsx(S.Fragment,{children:S.jsx("div",{className:E,"data-testid":"checkbox",children:S.jsxs("label",{className:ze.checkboxLabel,htmlFor:r,onClick:k=>y(k),children:[S.jsxs("div",{className:ze.checkboxInnerContainer,tabIndex:m||u?-1:0,onKeyPress:k=>y(k),"data-testid":"checkbox-inner-container",children:[S.jsx("input",{className:ze.checkboxInput,onChange:k=>y(k),type:"checkbox",checked:s,disabled:u,id:r,ref:g,...h,tabIndex:-1,"data-testid":"checkbox-input"}),S.jsx("div",{className:ze.checkboxFrame,style:{...a,...v},"data-testid":"checkbox-frame",children:S.jsx("svg",{version:"1.1",focusable:"false",className:ze.checkboxCheckMark,viewBox:"0 0 24 24","data-testid":"check-mark-svg",children:S.jsx("path",{className:ze.checkboxCheckMarkPath,fill:"none",stroke:b,d:"M4.1,12.7 9,17.6 20.3,6.3"})})})]}),e&&S.jsx("span",{"data-testid":"checkbox-label",children:e}),S.jsx("div",{className:ze.visuallyHidden,"aria-live":"polite","aria-atomic":"true",children:s?"Checked":"Unchecked"})]})})})});Jt.displayName="Checkbox";const Cn={textInputWrapper:"_textInputWrapper_1i9m6_1",textInput:"_textInput_1i9m6_1"};var I={},Xt={exports:{}};(function(e,t){(function(n,r){var i="1.0.37",u="",o="?",p="function",v="undefined",m="object",h="string",g="major",s="model",f="name",a="type",d="vendor",b="version",w="architecture",E="console",y="mobile",k="tablet",A="smarttv",j="wearable",z="embedded",W=500,P="Amazon",Y="Apple",le="ASUS",te="BlackBerry",O="Browser",Q="Chrome",ne="Edge",de="Firefox",U="Google",ue="Huawei",re="LG",X="Microsoft",ve="Motorola",pe="Opera",se="Samsung",C="Sharp",F="Sony",B="Xiaomi",ge="Zebra",Te="Facebook",at="Chromium OS",Ze="Mac OS",T=function(H,J){var N={};for(var ie in H)J[ie]&&J[ie].length%2===0?N[ie]=J[ie].concat(H[ie]):N[ie]=H[ie];return N},V=function(H){for(var J={},N=0;N<H.length;N++)J[H[N].toUpperCase()]=H[N];return J},we=function(H,J){return typeof H===h?me(J).indexOf(me(H))!==-1:!1},me=function(H){return H.toLowerCase()},Ne=function(H){return typeof H===h?H.replace(/[^\d\.]/g,u).split(".")[0]:r},Le=function(H,J){if(typeof H===h)return H=H.replace(/^\s\s*/,u),typeof J===v?H:H.substring(0,W)},We=function(H,J){for(var N=0,ie,qe,De,K,D,Ve;N<J.length&&!D;){var _t=J[N],Yt=J[N+1];for(ie=qe=0;ie<_t.length&&!D&&_t[ie];)if(D=_t[ie++].exec(H),D)for(De=0;De<Yt.length;De++)Ve=D[++qe],K=Yt[De],typeof K===m&&K.length>0?K.length===2?typeof K[1]==p?this[K[0]]=K[1].call(this,Ve):this[K[0]]=K[1]:K.length===3?typeof K[1]===p&&!(K[1].exec&&K[1].test)?this[K[0]]=Ve?K[1].call(this,Ve,K[2]):r:this[K[0]]=Ve?Ve.replace(K[1],K[2]):r:K.length===4&&(this[K[0]]=Ve?K[3].call(this,Ve.replace(K[1],K[2])):r):this[K]=Ve||r;N+=2}},_e=function(H,J){for(var N in J)if(typeof J[N]===m&&J[N].length>0){for(var ie=0;ie<J[N].length;ie++)if(we(J[N][ie],H))return N===o?r:N}else if(we(J[N],H))return N===o?r:N;return H},$e={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},qt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},zt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,pe+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[f,pe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[f,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+O],b],[/\bfocus\/([\w\.]+)/i],[b,[f,de+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[b,[f,de]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+O],b],[/samsungbrowser\/([\w\.]+)/i],[b,[f,se+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,Te],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,Q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,Q+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,_e,$e]],[/(webkit|khtml)\/([\w\.]+)/i],[f,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,de+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,b],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,me]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,u,me]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,me]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,se],[a,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,se],[a,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,Y],[a,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,Y],[a,k]],[/(macintosh);/i],[s,[d,Y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,C],[a,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,ue],[a,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,ue],[a,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,B],[a,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,B],[a,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[a,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[a,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[a,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,ve],[a,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,ve],[a,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,re],[a,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,re],[a,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[a,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[a,y]],[/(pixel c)\b/i],[s,[d,U],[a,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,U],[a,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,F],[a,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,F],[a,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[a,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,P],[a,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,P],[a,y]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[a,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,te],[a,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,le],[a,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,le],[a,y]],[/(nexus 9)/i],[s,[d,"HTC"],[a,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[a,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[a,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[a,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[d,"Ulefone"],[a,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[a,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,s,[a,k]],[/(surface duo)/i],[s,[d,X],[a,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[a,y]],[/(u304aa)/i],[s,[d,"AT&T"],[a,y]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[a,y]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[a,k]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[a,k]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[a,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[a,k]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[a,k]],[/\b(k88) b/i],[s,[d,"ZTE"],[a,k]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[a,y]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[a,y]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[a,k]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[a,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[a,k]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[a,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[a,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[a,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[a,y]],[/\b(ph-1) /i],[s,[d,"Essential"],[a,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[a,k]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[a,k]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[a,k]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[a,k]],[/(sprint) (\w+)/i],[d,s,[a,y]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,X],[a,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,ge],[a,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,ge],[a,y]],[/smart-tv.+(samsung)/i],[d,[a,A]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,se],[a,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,re],[a,A]],[/(apple) ?tv/i],[d,[s,Y+" TV"],[a,A]],[/crkey/i],[[s,Q+"cast"],[d,U],[a,A]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,P],[a,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,C],[a,A]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,F],[a,A]],[/(mitv-\w{5}) bui/i],[s,[d,B],[a,A]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[a,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Le],[s,Le],[a,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[a,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[a,E]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[a,E]],[/(playstation [345portablevi]+)/i],[s,[d,F],[a,E]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,X],[a,E]],[/((pebble))app/i],[d,s,[a,j]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,Y],[a,j]],[/droid.+; (glass) \d/i],[s,[d,U],[a,j]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,ge],[a,j]],[/(quest( 2| pro)?)/i],[s,[d,Te],[a,j]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,z]],[/(aeobc)\b/i],[s,[d,P],[a,z]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[a,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[a,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,y]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,ne+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[b,_e,qt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,_e,qt],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,Ze],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,b],[/\(bb(10);/i],[b,[f,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,de+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,Q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,at],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},Ce=function(H,J){if(typeof H===m&&(J=H,H=r),!(this instanceof Ce))return new Ce(H,J).getResult();var N=typeof n!==v&&n.navigator?n.navigator:r,ie=H||(N&&N.userAgent?N.userAgent:u),qe=N&&N.userAgentData?N.userAgentData:r,De=J?T(zt,J):zt,K=N&&N.userAgent==ie;return this.getBrowser=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.browser),D[g]=Ne(D[b]),K&&N&&N.brave&&typeof N.brave.isBrave==p&&(D[f]="Brave"),D},this.getCPU=function(){var D={};return D[w]=r,We.call(D,ie,De.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[s]=r,D[a]=r,We.call(D,ie,De.device),K&&!D[a]&&qe&&qe.mobile&&(D[a]=y),K&&D[s]=="Macintosh"&&N&&typeof N.standalone!==v&&N.maxTouchPoints&&N.maxTouchPoints>2&&(D[s]="iPad",D[a]=k),D},this.getEngine=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.engine),D},this.getOS=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.os),K&&!D[f]&&qe&&qe.platform!="Unknown"&&(D[f]=qe.platform.replace(/chrome os/i,at).replace(/macos/i,Ze)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ie},this.setUA=function(D){return ie=typeof D===h&&D.length>W?Le(D,W):D,this},this.setUA(ie),this};Ce.VERSION=i,Ce.BROWSER=V([f,b,g]),Ce.CPU=V([w]),Ce.DEVICE=V([s,d,a,E,y,A,k,j,z]),Ce.ENGINE=Ce.OS=V([f,b]),e.exports&&(t=e.exports=Ce),t.UAParser=Ce;var st=typeof n!==v&&(n.jQuery||n.Zepto);if(st&&!st.ua){var pt=new Ce;st.ua=pt.getResult(),st.ua.get=function(){return pt.getUA()},st.ua.set=function(H){pt.setUA(H);var J=pt.getResult();for(var N in J)st.ua[N]=J[N]}}})(typeof window=="object"?window:vi)})(Xt,Xt.exports);var wi=Xt.exports;Object.defineProperty(I,"__esModule",{value:!0});function xi(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ke=c,ae=xi(ke),Pn=wi,nt=new Pn,Se=nt.getBrowser(),yi=nt.getCPU(),Ae=nt.getDevice(),Zt=nt.getEngine(),rt=nt.getOS(),gt=nt.getUA(),In=function(t){return nt.setUA(t)},wt=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new Pn(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},jn=Object.freeze({ClientUAInstance:nt,browser:Se,cpu:yi,device:Ae,engine:Zt,os:rt,ua:gt,setUa:In,parseUserAgent:wt});function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fn(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xt=function(t){return typeof t}:xt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(e)}function Si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oi(e,t,n){return t&&Ln(e.prototype,t),n&&Ln(e,n),e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(){return $t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function Ti(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},en(e)}function tn(e,t){return tn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tn(e,t)}function _i(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u<r.length;u++)i=r[u],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Me(e,t){if(e==null)return{};var n=_i(e,t),r,i;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(i=0;i<u.length;i++)r=u[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Pi(e,t){return Ii(e)||ji(e,t)||Fi(e,t)||Li()}function Ii(e){if(Array.isArray(e))return e}function ji(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,u=!1,o,p;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(v){u=!0,p=v}finally{try{!i&&n.return!=null&&n.return()}finally{if(u)throw p}}return r}}function Fi(e,t){if(e){if(typeof e=="string")return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return An(e,t)}}function An(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Li(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Oe={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Ie={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ut={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Ai={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Ni=function(t){switch(t){case Oe.Mobile:return{isMobile:!0};case Oe.Tablet:return{isTablet:!0};case Oe.SmartTv:return{isSmartTV:!0};case Oe.Console:return{isConsole:!0};case Oe.Wearable:return{isWearable:!0};case Oe.Browser:return{isBrowser:!0};case Oe.Embedded:return{isEmbedded:!0};default:return Ai}},Di=function(t){return In(t)},M=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},nn=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},rn=function(t){var n=nn();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Mi=function(t,n,r,i,u){return{isBrowser:t,browserMajorVersion:M(n.major),browserFullVersion:M(n.version),browserName:M(n.name),engineName:M(r.name),engineVersion:M(r.version),osName:M(i.name),osVersion:M(i.version),userAgent:M(u)}},Nn=function(t,n,r,i){return ki({},t,{vendor:M(n.vendor),model:M(n.model),os:M(r.name),osVersion:M(r.version),ua:M(i)})},Ri=function(t,n,r,i){return{isSmartTV:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Wi=function(t,n,r,i){return{isConsole:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Vi=function(t,n,r,i){return{isWearable:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Bi=function(t,n,r,i,u){return{isEmbedded:t,vendor:M(n.vendor),model:M(n.model),engineName:M(r.name),engineVersion:M(r.version),osName:M(i.name),osVersion:M(i.version),userAgent:M(u)}};function Ui(e){var t=e?wt(e):jn,n=t.device,r=t.browser,i=t.engine,u=t.os,o=t.ua,p=Ni(n.type),v=p.isBrowser,m=p.isMobile,h=p.isTablet,g=p.isSmartTV,s=p.isConsole,f=p.isWearable,a=p.isEmbedded;if(v)return Mi(v,r,i,u,o);if(g)return Ri(g,i,u,o);if(s)return Wi(s,i,u,o);if(m||h)return Nn(p,n,u,o);if(f)return Vi(f,i,u,o);if(a)return Bi(a,n,i,u,o)}var Dn=function(t){var n=t.type;return n===Oe.Mobile},Mn=function(t){var n=t.type;return n===Oe.Tablet},Rn=function(t){var n=t.type;return n===Oe.Mobile||n===Oe.Tablet},Wn=function(t){var n=t.type;return n===Oe.SmartTv},It=function(t){var n=t.type;return n===Oe.Browser},Vn=function(t){var n=t.type;return n===Oe.Wearable},Bn=function(t){var n=t.type;return n===Oe.Console},Un=function(t){var n=t.type;return n===Oe.Embedded},Hn=function(t){var n=t.vendor;return M(n)},qn=function(t){var n=t.model;return M(n)},zn=function(t){var n=t.type;return M(n,"browser")},Yn=function(t){var n=t.name;return n===ut.Android},Kn=function(t){var n=t.name;return n===ut.Windows},Gn=function(t){var n=t.name;return n===ut.MAC_OS},Qn=function(t){var n=t.name;return n===ut.WindowsPhone},Jn=function(t){var n=t.name;return n===ut.IOS},Xn=function(t){var n=t.version;return M(n)},Zn=function(t){var n=t.name;return M(n)},$n=function(t){var n=t.name;return n===Ie.Chrome},er=function(t){var n=t.name;return n===Ie.Firefox},tr=function(t){var n=t.name;return n===Ie.Chromium},jt=function(t){var n=t.name;return n===Ie.Edge},nr=function(t){var n=t.name;return n===Ie.Yandex},rr=function(t){var n=t.name;return n===Ie.Safari||n===Ie.MobileSafari},ir=function(t){var n=t.name;return n===Ie.MobileSafari},or=function(t){var n=t.name;return n===Ie.Opera},ar=function(t){var n=t.name;return n===Ie.InternetExplorer||n===Ie.Ie},sr=function(t){var n=t.name;return n===Ie.MIUI},lr=function(t){var n=t.name;return n===Ie.SamsungBrowser},ur=function(t){var n=t.version;return M(n)},cr=function(t){var n=t.major;return M(n)},dr=function(t){var n=t.name;return M(n)},fr=function(t){var n=t.name;return M(n)},pr=function(t){var n=t.version;return M(n)},br=function(){var t=nn(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},ct=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},vr=function(){var t=nn();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Ye=function(){return rn("iPad")},mr=function(){return rn("iPhone")},hr=function(){return rn("iPod")},gr=function(t){return M(t)};function wr(e){var t=e||jn,n=t.device,r=t.browser,i=t.os,u=t.engine,o=t.ua;return{isSmartTV:Wn(n),isConsole:Bn(n),isWearable:Vn(n),isEmbedded:Un(n),isMobileSafari:ir(r)||Ye(),isChromium:tr(r),isMobile:Rn(n)||Ye(),isMobileOnly:Dn(n),isTablet:Mn(n)||Ye(),isBrowser:It(n),isDesktop:It(n),isAndroid:Yn(i),isWinPhone:Qn(i),isIOS:Jn(i)||Ye(),isChrome:$n(r),isFirefox:er(r),isSafari:rr(r),isOpera:or(r),isIE:ar(r),osVersion:Xn(i),osName:Zn(i),fullBrowserVersion:ur(r),browserVersion:cr(r),browserName:dr(r),mobileVendor:Hn(n),mobileModel:qn(n),engineName:fr(u),engineVersion:pr(u),getUA:gr(o),isEdge:jt(r)||ct(o),isYandex:nr(r),deviceType:zn(n),isIOS13:vr(),isIPad13:Ye(),isIPhone13:mr(),isIPod13:hr(),isElectron:br(),isEdgeChromium:ct(o),isLegacyEdge:jt(r)&&!ct(o),isWindows:Kn(i),isMacOs:Gn(i),isMIUI:sr(r),isSamsungBrowser:lr(r)}}var xr=Wn(Ae),yr=Bn(Ae),kr=Vn(Ae),Hi=Un(Ae),qi=ir(Se)||Ye(),zi=tr(Se),Ft=Rn(Ae)||Ye(),Sr=Dn(Ae),Or=Mn(Ae)||Ye(),Er=It(Ae),Yi=It(Ae),Tr=Yn(rt),_r=Qn(rt),Cr=Jn(rt)||Ye(),Ki=$n(Se),Gi=er(Se),Qi=rr(Se),Ji=or(Se),Pr=ar(Se),Xi=Xn(rt),Zi=Zn(rt),$i=ur(Se),eo=cr(Se),to=dr(Se),no=Hn(Ae),ro=qn(Ae),io=fr(Zt),oo=pr(Zt),ao=gr(gt),so=jt(Se)||ct(gt),lo=nr(Se),uo=zn(Ae),co=vr(),fo=Ye(),po=mr(),bo=hr(),vo=br(),mo=ct(gt),ho=jt(Se)&&!ct(gt),go=Kn(rt),wo=Gn(rt),xo=sr(Se),yo=lr(Se),ko=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=wt(t),r=n.device,i=n.browser,u=n.os,o=n.engine,p=n.ua;return wr({device:r,browser:i,os:u,engine:o,ua:p})},So=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Tr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Oo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Er?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Eo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Pr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},To=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Cr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},_o=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Ft?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Co=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Or?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Po=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return _r?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Io=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=Me(t,["renderWithFragment","children","viewClassName","style"]);return Sr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},jo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return xr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Fo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return yr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Lo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return kr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Ao=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=t.condition,u=Me(t,["renderWithFragment","children","viewClassName","style","condition"]);return i?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",u,r):null};function No(e){return function(t){Ti(n,t);function n(r){var i;return Si(this,n),i=Ci(this,en(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(Pt(i)),i.onOrientationChange=i.onOrientationChange.bind(Pt(i)),i.onPageLoad=i.onPageLoad.bind(Pt(i)),i.state={isLandscape:!1,isPortrait:!1},i}return Oi(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":xt(window))!==void 0&&Ft&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ae.createElement(e,$t({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ae.Component)}function Do(){var e=ke.useState(function(){var u=window.innerWidth>window.innerHeight?90:0;return{isPortrait:u===0,isLandscape:u===90,orientation:u===0?"portrait":"landscape"}}),t=Pi(e,2),n=t[0],r=t[1],i=ke.useCallback(function(){var u=window.innerWidth>window.innerHeight?90:0,o={isPortrait:u===0,isLandscape:u===90,orientation:u===0?"portrait":"landscape"};n.orientation!==o.orientation&&r(o)},[n.orientation]);return ke.useEffect(function(){return(typeof window>"u"?"undefined":xt(window))!==void 0&&Ft&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function Ir(e){var t=e||window.navigator.userAgent;return wt(t)}function Mo(e){var t=e||window.navigator.userAgent,n=Ir(t),r=wr(n);return[r,n]}I.AndroidView=So,I.BrowserTypes=Ie,I.BrowserView=Oo,I.ConsoleView=Fo,I.CustomView=Ao,I.IEView=Eo,I.IOSView=To,I.MobileOnlyView=Io,I.MobileView=_o,I.OsTypes=ut,I.SmartTVView=jo,I.TabletView=Co,I.WearableView=Lo,I.WinPhoneView=Po,I.browserName=to,I.browserVersion=eo,I.deviceDetect=Ui,I.deviceType=uo,I.engineName=io,I.engineVersion=oo,I.fullBrowserVersion=$i,I.getSelectorsByUserAgent=ko,I.getUA=ao,I.isAndroid=Tr,I.isBrowser=Er,I.isChrome=Ki,I.isChromium=zi,I.isConsole=yr,I.isDesktop=Yi,I.isEdge=so,I.isEdgeChromium=mo,I.isElectron=vo,I.isEmbedded=Hi,I.isFirefox=Gi,I.isIE=Pr,I.isIOS=Cr,I.isIOS13=co,I.isIPad13=fo,I.isIPhone13=po,I.isIPod13=bo,I.isLegacyEdge=ho,I.isMIUI=xo,I.isMacOs=wo;var Ro=I.isMobile=Ft;I.isMobileOnly=Sr,I.isMobileSafari=qi,I.isOpera=Ji,I.isSafari=Qi,I.isSamsungBrowser=yo,I.isSmartTV=xr,I.isTablet=Or,I.isWearable=kr,I.isWinPhone=_r,I.isWindows=go,I.isYandex=lo,I.mobileModel=ro,I.mobileVendor=no,I.osName=Zi,I.osVersion=Xi,I.parseUserAgent=wt,I.setUserAgent=Di,I.useDeviceData=Ir,I.useDeviceSelectors=Mo,I.useMobileOrientation=Do,I.withOrientationChange=No;const Wo=c.memo(c.forwardRef(({themeColor:e="",onSubmit:t,style:n={},className:r="",onInput:i,onFocus:u,onBlur:o,...p},v)=>{const[m,h]=c.useState(!0),[g,s]=c.useState(!1);e=Ue.convert3HexTo6(e),c.useEffect(()=>{h(Ro)},[]);const f=y=>{!m&&y.key==="Enter"&&!y.shiftKey&&t&&(y.preventDefault(),t())},a=y=>{i?.(y),y.target.style.height="40px",y.target.style.height=2+y.target.scrollHeight+"px"};let d={};const b=[Cn.textInput,r].filter(Boolean).join(" "),w=()=>{s(!0)},E=()=>{s(!1)};return d={borderBottomColor:g?e!=="#ffffff"?e:"#c8c8c8":""},S.jsx("div",{className:Cn.textInputWrapper,children:S.jsx("textarea",{"data-testid":"textbox-input",ref:v,className:b,style:{...d,...n},onFocus:w,onBlur:E,onInput:y=>a(y),onKeyDown:f,...p})})})),je={multiSelectContainer:"_multiSelectContainer_o3j9t_1",listOptionsWrap:"_listOptionsWrap_o3j9t_4",selectedValuesWrap:"_selectedValuesWrap_o3j9t_7",selectedValues:"_selectedValues_o3j9t_7",focused:"_focused_o3j9t_13",dropDownIcon:"_dropDownIcon_o3j9t_16",optionsListContainer:"_optionsListContainer_o3j9t_20",top:"_top_o3j9t_23",optionsListWrap:"_optionsListWrap_o3j9t_26",searchInputWrap:"_searchInputWrap_o3j9t_29",searchInput:"_searchInput_o3j9t_29",optionsList:"_optionsList_o3j9t_20",btnContainer:"_btnContainer_o3j9t_47"},yt={pseudoCheckbox:"_pseudoCheckbox_1tuhb_1",checkboxCheckMark:"_checkboxCheckMark_1tuhb_4",checkboxCheckMarkPath:"_checkboxCheckMarkPath_1tuhb_7",checked:"_checked_1tuhb_12",checkboxUncheckedChecked:"_checkboxUncheckedChecked_1tuhb_1",checkboxDisabled:"_checkboxDisabled_1tuhb_22"},jr=({checked:e=!1,themeColor:t="",disabled:n=!1})=>{let r={},i="#006bb1",u=n?"#9b9b9b":"#ffffff";const o=n?yt.checkboxDisabled:"",p=e?yt.checked:"",v=[yt.pseudoCheckbox,p,o].filter(Boolean).join(" ");let m;if(t){const h=tt(t);t=Ue.convert3HexTo6(t),h==="dark"||h==="light"?(n?u=e?"#9b9b9b":"#f9f9f9":u=h=="light"?"#333333":"#ffffff",i=n?"#f9f9f9":e?t:"#ffffff",m=n?"#e4e4e4":t==="#ffffff"?"#333333":t,e&&(r={backgroundColor:i,borderColor:m,outlineColor:m})):u="#9b9b9b"}return S.jsx("div",{style:r,className:v,role:"checkbox","aria-checked":e,"aria-hidden":"true",tabIndex:-1,"data-testid":"checkbox-input",children:S.jsx("svg",{version:"1.1",focusable:"false",className:yt.checkboxCheckMark,viewBox:"0 0 24 24",children:S.jsx("path",{className:yt.checkboxCheckMarkPath,fill:"none",stroke:u,d:"M4.1,12.7 9,17.6 20.3,6.3"})})})};jr.displayName="Checkbox";const Vo=({options:e,checkedValue:t,onSelectionChange:n,maxOptions:r,themeColor:i,className:u="",style:o={}})=>{const p=c.useRef(e),[v,m]=c.useState(t),[h,g]=c.useState(""),[s,f]=c.useState(!1),[a,d]=c.useState(!1),b=c.useRef(null),w=c.useRef(null),E=c.useRef(null),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),[j,z]=c.useState(-1),W=c.useRef(0),P=c.useRef(0),[Y,le]=c.useState(!1);let te={};const[O,Q]=c.useState({left:0,top:0}),[ne,de]=c.useState(null),U=c.useRef(!1),ue=()=>{setTimeout(()=>{(b.current?.children[0]).focus()},0)};c.useEffect(()=>{const T=V=>{w.current&&!w.current.contains(V.target)&&(f(!1),g(""),ue())};return document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)}},[]);const re=()=>{W.current=window.innerHeight,P.current=document.body.scrollHeight,le(!0)};c.useEffect(()=>(re(),window.addEventListener("resize",re),()=>{window.addEventListener("resize",re)}),[]);const X=T=>{const V=document.getElementById("announcement");V&&(V.textContent=T,V.setAttribute("aria-live","assertive"),setTimeout(()=>{V.textContent="",V.setAttribute("aria-live","off")},1e3))};c.useEffect(()=>{const T=e.filter(V=>V.text.toLowerCase().includes(h.toLowerCase()));p.current=T},[e,h]);const ve=v.map(T=>{const V=e.find(we=>we.id===T);return V?.text!==null?V?.text:""}).filter(T=>T!=="").join(", "),pe=T=>{const V=e.find(we=>we.id===T);if(V&&!V.disabled&&(r===void 0||v.length<=r)){const me=v.includes(T)?v.filter(Le=>Le!==T):[...v,T];(r===void 0||me.length<=r)&&s&&(m(me),n(me),X(`${V?.text} ${me.includes(T)?"selected":"not selected"}`))}},se=T=>{F(),f(T),setTimeout(()=>{E.current?E.current?.focus():y.current?.focus(),X("use up and down arrow keys to navigate")},0)},C=()=>P.current-(W.current+window.scrollY),F=()=>{if(b.current){const T=b.current.getBoundingClientRect();setTimeout(()=>{const V=w?.current?.getBoundingClientRect(),we=C(),me=W.current-T.bottom;let Ne;if(V){const Le=T.height,We=T.top,_e=V.height,$e=_e>We+window.scrollY;We<_e&&($e||$e&&me<_e||we>_e||me>_e)||We>_e&&me>_e?Ne=T.y+Le:Ne=T.y-_e,Q({left:T.left,top:Ne??T.top})}},0)}};c.useEffect(()=>(window.addEventListener("scroll",F),window.addEventListener("resize",F),()=>{window.removeEventListener("scroll",F),window.removeEventListener("resize",F)}),[s]);const B=T=>{T.preventDefault(),T.key==="Shift"?U.current=!0:T.shiftKey&&U.current&&T.key==="Tab"||T.key==="Tab"?(setTimeout(()=>{E.current?E.current?.focus():y.current?.focus()},0),U.current=!1):T.key==="Escape"||T.key==="Enter"||T.key==="Space"||T.key===" "?(se(!1),ue()):U.current=!1},ge=T=>{const{key:V}=T;if(V==="Tab"||T.shiftKey&&V==="Tab")setTimeout(()=>{k.current?.focus()},0);else if(V==="ArrowDown"||V==="ArrowUp"){T.preventDefault(),setTimeout(()=>{y.current?.focus()},0);let we=j;if(V==="ArrowDown"?we=Math.min(j+1,p.current.length-1):V==="ArrowUp"&&(we=Math.max(j-1,0)),j===0&&T.key==="ArrowUp"?we=p.current.length-1:j===p.current.length-1&&T.key==="ArrowDown"&&(we=0),z(we),A.current&&we>=0){const me=A.current.querySelectorAll(`.${je.optionsList}`)[we],Ne=me.children[0].getAttribute("aria-checked"),Le=`${me.textContent} ${Ne==="true"?"selected":"not selected"} ${we+1} out of ${p.current.length}`;X(Le),me&&me.scrollIntoView({block:"nearest",inline:"nearest"})}}else V==="Enter"||V==="Space"||V===" "?j!==-1&&pe(p.current[j].id):V==="Escape"&&(se(!1),ue())};c.useEffect(()=>{ne&&clearTimeout(ne);const T=setTimeout(()=>{const V=p.current.length?`${p.current.length} results are available, use up and down arrow keys to navigate`:"No results available";s&&X(V)},500);de(T)},[h]);const Te=()=>{d(!0)},at=()=>{d(!1)};if(i){const T=tt(i);i=Ue.convert3HexTo6(i),(T==="dark"||T==="light")&&(te={borderBottomColor:i==="#ffffff"?"#c8c8c8":a||s?i:"#333333"})}const Ze=()=>{f(!1)};return S.jsx("div",{className:je.multiSelectContainer,children:S.jsxs("div",{className:je.listOptionsWrap,children:[S.jsxs("div",{className:`${u} ${je.selectedValuesWrap}`,ref:b,children:[S.jsx("div",{className:`${je.selectedValues} ${s?je.focused:""}`,onFocus:Te,onBlur:at,onClick:()=>se(!s),onKeyPress:T=>{(T.key===" "||T.code==="Space"||T.code==="Enter")&&(T.preventDefault(),se(!s))},tabIndex:0,"data-testid":"selected-input",style:{...te,...o},"aria-expanded":s,"aria-haspopup":"listbox","aria-multiselectable":"true","aria-autocomplete":"list",role:"combobox",children:ve}),S.jsx("span",{className:je.dropDownIcon,onClick:()=>se(!s),"data-testid":"arrow-button",children:S.jsx("svg",{width:"12px",height:"7px",viewBox:"0 0 12 7",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:S.jsx("g",{transform:"translate(-2360.000000, -295.000000)",fill:"#666666",children:S.jsx("g",{transform:"translate(2006.000000, 248.000000)",children:S.jsx("path",{d:"M358.027356,44.3431458 L358.027146,50.6581458 L364.343146,50.6589352 L364.343146,52.3431458 L358.027146,52.3421458 L358.027356,52.3431458 L356.343146,52.3431458 L356.343146,44.3431458 L358.027356,44.3431458 Z",transform:"translate(360.343146, 48.343146) scale(-1, -1) rotate(-225.000000) translate(-360.343146, -48.343146)"})})})})})})]}),S.jsx("div",{id:"announcement","aria-live":"assertive",role:"alert",className:"tw-pointer-events-none tw-h-0 tw-overflow-hidden tw-opacity-0"}),Y?Kt.createPortal(S.jsx(S.Fragment,{children:s&&b&&S.jsx("div",{onClick:Ze,style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsxs("div",{className:`${je.optionsListContainer}`,ref:w,onClick:T=>T.stopPropagation(),style:{opacity:O.left?1:0,width:b.current?b.current.clientWidth:"auto",left:O.left,top:O.top},children:[S.jsxs("div",{className:je.optionsListWrap,children:[e.length>=6&&S.jsx("div",{className:je.searchInputWrap,children:S.jsx("input",{type:"text",ref:E,placeholder:"Type to filter",className:je.searchInput,value:h,onChange:T=>g(T.target.value),"data-testid":"search-input",onKeyDown:T=>{ge(T)}})}),S.jsx("ul",{ref:A,role:"listbox",children:p.current.map((T,V)=>S.jsxs("li",{className:`${je.optionsList} ${V===j?je.focused:""}`,onClick:()=>pe(T.id),"aria-selected":V===j,role:"option",children:[S.jsx(jr,{themeColor:i,checked:v.includes(T.id),disabled:T.disabled||r!==void 0&&v.length>=r&&!v.includes(T.id)}),S.jsx("span",{children:T.text})]},T.id))})]}),S.jsxs("div",{className:je.btnContainer,children:[S.jsx("input",{ref:y,onKeyDown:T=>{ge(T)},className:"tw-absolute tw-left-[-9999px] tw-h-0 tw-w-0 tw-opacity-0"}),S.jsx(Qt,{themeColor:i,variant:"primary",size:"medium",onClick:()=>{f(!1),g(""),ue(),n(v)},"data-testid":"done-button",onKeyDown:T=>{B(T)},ref:k,children:"Done"})]})]})})}),document.body):null]})})},Lt={multiSelectContainer:"_multiSelectContainer_owbxn_1",quickOptionsWrap:"_quickOptionsWrap_owbxn_4",selected:"_selected_owbxn_10",disabled:"_disabled_owbxn_16"},Bo=({options:e,checkedValue:t,onSelectionChange:n,maxOptions:r,themeColor:i,className:u="",style:o={},id:p=""})=>{const[v,m]=c.useState(t),h=c.useRef({});let g={},s;const f=a=>{const d=e.find(k=>k.id===a);if(!d||d.disabled)return;h.current[a]?.click();const E=v.includes(a)?v.filter(k=>k!==a):[...v,a];(r===void 0||E.length<=r)&&(m(E),n(E))};if(i){s=tt(i),i=Ue.convert3HexTo6(i);const a=i==="#ffffff"?"#333333":i;(s==="dark"||s==="light")&&(g={outlineColor:a,borderColor:a,color:i==="#ffffff"||s==="light"?"#333333":i})}return S.jsx("div",{className:Lt.multiSelectContainer,role:"group",children:S.jsx("ul",{className:Lt.quickOptionsWrap,id:p,children:e.map(a=>S.jsx("li",{style:{...g,...o},className:`${u} ${a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id)?Lt.disabled:""} ${v.includes(a.id)?Lt.selected:""}`,tabIndex:a.disabled?-1:0,onClick:()=>f(a.id),onKeyPress:d=>{(d.key===" "||d.code==="Space")&&(d.preventDefault(),f(a.id))},"data-testid":"option-box",children:S.jsx(Jt,{id:a.id,checkboxSize:"large",tabIndex:-1,themeColor:i,ref:d=>{h.current[a.id]=d},checked:v.includes(a.id),disabled:a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id),children:S.jsx("span",{style:{color:i&&(i==="#ffffff"||s==="light")||a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id)?"#333333":i&&(i!=="#ffffff"||s!=="light")?i:"#006bb1"},children:a.text})})},a.id))})})},Ke={singleSelectWrapper:"_singleSelectWrapper_j8hf5_1",quickOption:"_quickOption_j8hf5_4",selected:"_selected_j8hf5_10",triangle:"_triangle_j8hf5_16",loader:"_loader_j8hf5_19","tw-spin":"_tw-spin_j8hf5_1",checkmarkWrap:"_checkmarkWrap_j8hf5_22",checkmark:"_checkmark_j8hf5_22",fill:"_fill_j8hf5_1",scale:"_scale_j8hf5_1",checkmarkCheck:"_checkmarkCheck_j8hf5_29",stroke:"_stroke_j8hf5_1",disabled:"_disabled_j8hf5_34"},Uo=({options:e,onSelect:t,selected:n,themeColor:r,className:i="",style:u={},showLoader:o=!1,id:p=""})=>{const[v,m]=c.useState(n);let h={},g={},s="#ffffff";const f=a=>{if(v?.id===a?.id){m(void 0),t(void 0);return}t(a),m(a)};if(r){const a=tt(r);r=Ue.convert3HexTo6(r);const d=r==="#ffffff"?"#333333":r;(a==="dark"||a==="light")&&(s=r==="#ffffff"||a==="dark"?"#ffffff":"#333333",h={outlineColor:d,borderColor:d,color:r==="#ffffff"||a==="light"?"#333333":r},g={borderRightColor:d,borderTopColor:d})}return S.jsx("div",{className:Ke.singleSelectWrapper,children:S.jsx("div",{className:Ke.quickOption,children:S.jsx("ul",{className:Ke.quickOption,role:"radiogroup",id:p,children:e.map(a=>S.jsxs("li",{tabIndex:a.disabled?-1:0,className:`${i} ${v?.id===a.id?Ke.selected:""} ${a.disabled?Ke.disabled:""}`,style:{...h,...u},onClick:()=>f(a),onKeyPress:d=>{(d.key===" "||d.code==="Space")&&(d.preventDefault(),f(a))},"data-testid":"checkbox-input",role:"radio","aria-checked":v?.id===a.id,children:[a.text,v?.id===a.id&&!a.disabled&&S.jsxs("div",{className:Ke.triangle,style:{...g},children:[o&&S.jsx("div",{className:Ke.loader,style:{borderRightColor:r??"#006bb1"}}),!o&&S.jsx("div",{className:Ke.checkmarkWrap,children:S.jsx("svg",{className:Ke.checkmark,xmlns:"http://www.w3.org/2000/svg",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:S.jsx("path",{className:Ke.checkmarkCheck,stroke:s,d:"M2.1 4.34286L4.12857 6.40001L8.9 1.60001",strokeWidth:"2"})})})]})]},a.id))})})})},Ho={scrollbarContainer:"_scrollbarContainer_er2uj_1"},Fr=c.forwardRef(({children:e,className:t="",style:n={},...r},i)=>{const u=[Ho.scrollbarContainer,t].filter(Boolean).join(" ");return S.jsx(S.Fragment,{children:S.jsx("div",{ref:i,style:{...n},className:u,...r,children:e})})});Fr.displayName="Scrollbar";var qo=Object.defineProperty,zo=(e,t,n)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,on=(e,t,n)=>(zo(e,typeof t!="symbol"?t+"":t,n),n);let Yo=class{constructor(){on(this,"current",this.detect()),on(this,"handoffState","pending"),on(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},lt=new Yo,be=(e,t)=>{lt.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function He(e){let t=c.useRef(e);return be(()=>{t.current=e},[e]),t}function kt(e,t){let[n,r]=c.useState(e),i=He(e);return be(()=>r(i.current),[i,r,...t]),n}function Ko(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ge(){let e=[],t={addEventListener(n,r,i,u){return n.addEventListener(r,i,u),t.add(()=>n.removeEventListener(r,i,u))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ko(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let u=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:u})})},group(n){let r=Ge();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Je(){let[e]=c.useState(Ge);return c.useEffect(()=>()=>e.dispose(),[e]),e}let L=function(e){let t=He(e);return c.useCallback((...n)=>t.current(...n),[t])};function Go(){let e=typeof document>"u";return"useSyncExternalStore"in Qe?(t=>t.useSyncExternalStore)(Qe)(()=>()=>{},()=>!1,()=>!e):!1}function an(){let e=Go(),[t,n]=Qe.useState(lt.isHandoffComplete);return t&<.isHandoffComplete===!1&&n(!1),Qe.useEffect(()=>{t!==!0&&n(!0)},[t]),Qe.useEffect(()=>lt.handoff(),[]),e?!1:t}var Lr;let Xe=(Lr=c.useId)!=null?Lr:function(){let e=an(),[t,n]=c.useState(e?()=>lt.nextId():null);return be(()=>{t===null&&n(lt.nextId())},[t]),t!=null?""+t:void 0};function ce(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ce),r}function At(e){return lt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ar=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Qo=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Qo||{}),Jo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Jo||{}),Xo=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Xo||{}),sn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sn||{});function Nr(e,t=0){var n;return e===((n=At(e))==null?void 0:n.body)?!1:ce(t,{0(){return e.matches(Ar)},1(){let r=e;for(;r!==null;){if(r.matches(Ar))return!0;r=r.parentElement}return!1}})}var Zo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Zo||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Dr(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),u=t(r);if(i===null||u===null)return 0;let o=i.compareDocumentPosition(u);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Nt(e,t,n){let r=He(t);c.useEffect(()=>{function i(u){r.current(u)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function $o(e,t,n){let r=He(t);c.useEffect(()=>{function i(u){r.current(u)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Mr(e,t,n=!0){let r=c.useRef(!1);c.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,p){if(!r.current||o.defaultPrevented)return;let v=p(o);if(v===null||!v.getRootNode().contains(v)||!v.isConnected)return;let m=function h(g){return typeof g=="function"?h(g()):Array.isArray(g)||g instanceof Set?g:[g]}(e);for(let h of m){if(h===null)continue;let g=h instanceof HTMLElement?h:h.current;if(g!=null&&g.contains(v)||o.composed&&o.composedPath().includes(g))return}return!Nr(v,sn.Loose)&&v.tabIndex!==-1&&o.preventDefault(),t(o,v)}let u=c.useRef(null);Nt("pointerdown",o=>{var p,v;r.current&&(u.current=((v=(p=o.composedPath)==null?void 0:p.call(o))==null?void 0:v[0])||o.target)},!0),Nt("mousedown",o=>{var p,v;r.current&&(u.current=((v=(p=o.composedPath)==null?void 0:p.call(o))==null?void 0:v[0])||o.target)},!0),Nt("click",o=>{u.current&&(i(o,()=>u.current),u.current=null)},!0),Nt("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),$o("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Rr(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Wr(e,t){let[n,r]=c.useState(()=>Rr(e));return be(()=>{r(Rr(e))},[e.type,e.as]),be(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let ea=Symbol();function Re(...e){let t=c.useRef(e);c.useEffect(()=>{t.current=e},[e]);let n=L(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[ea])?void 0:n}function ta({container:e,accept:t,walk:n,enabled:r=!0}){let i=c.useRef(t),u=c.useRef(n);c.useEffect(()=>{i.current=t,u.current=n},[t,n]),be(()=>{if(!e||!r)return;let o=At(e);if(!o)return;let p=i.current,v=u.current,m=Object.assign(g=>p(g),{acceptNode:p}),h=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m,!1);for(;h.nextNode();)v(h.currentNode)},[e,r,i,u])}function na(e){throw new Error("Unexpected object: "+e)}var $=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))($||{});function Vr(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,u=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((p,v,m)=>i!==-1&&m.length-v-1>=i?!1:!t.resolveDisabled(p));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,p)=>p<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(p=>!t.resolveDisabled(p));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:na(e)}})();return u===-1?r:u}function Dt(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var dt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dt||{}),it=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(it||{});function Fe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:u=!0,name:o}){let p=Br(t,e);if(u)return Mt(p,n,r,o);let v=i??0;if(v&2){let{static:m=!1,...h}=p;if(m)return Mt(h,n,r,o)}if(v&1){let{unmount:m=!0,...h}=p;return ce(m?0:1,{0(){return null},1(){return Mt({...h,hidden:!0,style:{display:"none"}},n,r,o)}})}return Mt(p,n,r,o)}function Mt(e,t={},n,r){let{as:i=n,children:u,refName:o="ref",...p}=ln(e,["unmount","static"]),v=e.ref!==void 0?{[o]:e.ref}:{},m=typeof u=="function"?u(t):u;"className"in p&&p.className&&typeof p.className=="function"&&(p.className=p.className(t));let h={};if(t){let g=!1,s=[];for(let[f,a]of Object.entries(t))typeof a=="boolean"&&(g=!0),a===!0&&s.push(f);g&&(h["data-headlessui-state"]=s.join(" "))}if(i===c.Fragment&&Object.keys(Rt(p)).length>0){if(!c.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(p).map(a=>` - ${a}`).join(`
|
|
28
|
+
Check the top-level render call using <`+_+">.")}return x}}function ci(l,x){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var _=Fs(x);if(ui[_])return;ui[_]=!0;var R="";l&&l._owner&&l._owner!==Sn.current&&(R=" It was passed a child from "+O(l._owner.type)+"."),bt(l),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',_,R),bt(null)}}function di(l,x){{if(typeof l!="object")return;if(Pe(l))for(var _=0;_<l.length;_++){var R=l[_];En(R)&&ci(R,x)}else if(En(l))l._store&&(l._store.validated=!0);else if(l){var Z=b(l);if(typeof Z=="function"&&Z!==l.entries)for(var oe=Z.call(l),G;!(G=oe.next()).done;)En(G.value)&&ci(G.value,x)}}}function Ls(l){{var x=l.type;if(x==null||typeof x=="string")return;var _;if(typeof x=="function")_=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===v||x.$$typeof===g))_=x.propTypes;else return;if(_){var R=O(x);qt(_,l.props,"prop",R,l)}else if(x.PropTypes!==void 0&&!On){On=!0;var Z=O(x);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function As(l){{for(var x=Object.keys(l.props),_=0;_<x.length;_++){var R=x[_];if(R!=="children"&&R!=="key"){bt(l),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),bt(null);break}}l.ref!==null&&(bt(l),E("Invalid attribute `ref` supplied to `React.Fragment`."),bt(null))}}function fi(l,x,_,R,Z,oe){{var G=Y(l);if(!G){var q="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=js(Z);Ie?q+=Ie:q+=li();var he;l===null?he="null":Pe(l)?he="array":l!==void 0&&l.$$typeof===t?(he="<"+(O(l.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):he=typeof l,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",he,q)}var xe=Is(l,x,_,Z,oe);if(xe==null)return xe;if(G){var Be=x.children;if(Be!==void 0)if(R)if(Pe(Be)){for(var vt=0;vt<Be.length;vt++)di(Be[vt],l);Object.freeze&&Object.freeze(Be)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else di(Be,l)}return l===r?As(xe):Ls(xe),xe}}function Ns(l,x,_){return fi(l,x,_,!0)}function Ds(l,x,_){return fi(l,x,_,!1)}var Ms=Ds,Rs=Ns;ht.Fragment=r,ht.jsx=Ms,ht.jsxs=Rs}()),ht}process.env.NODE_ENV==="production"?Gt.exports=mi():Gt.exports=hi();var S=Gt.exports;const Ct={button:"_button_1q2ge_1",primary:"_primary_1q2ge_5",secondary:"_secondary_1q2ge_12",small:"_small_1q2ge_19",rounded:"_rounded_1q2ge_22",medium:"_medium_1q2ge_26",large:"_large_1q2ge_33",squared:"_squared_1q2ge_40"},tt=e=>{if(!e)throw new Error("Please provide a hex color code");if(!/^#([A-Fa-f0-9]{3}){1,2}$/.test(e))throw new Error("Please provide a valid hex code");e=e.length===4?e.replace(/^#(.)(.)(.)$/,"#$1$1$2$2$3$3"):e;const r=e.substring(1),[i,u,o]=[0,2,4].map(v=>parseInt(r.substring(v,v+2),16));return(.2126*i+.7152*u+.0722*o)/255<.7?"dark":"light"};class Ue{static convert3HexTo6(t){return typeof t=="string"&&/^#(?:[0-9a-fA-F]{3}){1,2}$/.test(t)&&t.length===4?t.replace(/^#(.)(.)(.)$/,"#$1$1$2$2$3$3"):t}}const Qt=c.forwardRef(({themeColor:e="",variant:t="primary",size:n="small",shape:r="rounded",children:i,className:u="",style:o={},disabled:p,...v},m)=>{let h={};if(e){const s=tt(e);if(e=Ue.convert3HexTo6(e),!p&&(s==="dark"||s==="light")){const f=t==="primary"?e:"#ffffff",a=t==="primary"?s==="dark"?"#ffffff":"#333333":s==="light"?"#333333":e,d=e==="#ffffff"?"#c8c8c8":e;h={backgroundColor:f,color:a,outlineColor:d,borderColor:d}}}const g=[Ct.button,Ct[t],Ct[n],Ct[r],u].filter(Boolean).join(" ");return S.jsx("button",{disabled:p,ref:m,style:{...h,...o},className:`${g}`,...v,children:i})});Qt.displayName="Button";const ze={checkboxLayout:"_checkboxLayout_1jaci_1",checkboxLabel:"_checkboxLabel_1jaci_4",checkboxInnerContainer:"_checkboxInnerContainer_1jaci_10",checkboxInput:"_checkboxInput_1jaci_13",checkboxFrame:"_checkboxFrame_1jaci_16",checkboxCheckMark:"_checkboxCheckMark_1jaci_19",checkboxCheckMarkPath:"_checkboxCheckMarkPath_1jaci_22",checkboxUncheckedChecked:"_checkboxUncheckedChecked_1jaci_1",visuallyHidden:"_visuallyHidden_1jaci_43",checkboxDisabled:"_checkboxDisabled_1jaci_53",medium:"_medium_1jaci_59",large:"_large_1jaci_65"},gi=()=>`checkbox_${Math.random().toString(36).substring(2,11)}`,Jt=c.forwardRef(({children:e,themeColor:t="",checkboxSize:n="medium",id:r=gi(),checked:i=!1,disabled:u=!1,className:o="",onChange:p,style:v={},tabIndex:m,...h},g)=>{const[s,f]=c.useState(i);let a={},d,b=u?"#9b9b9b":"#ffffff";if(t){const k=tt(t);if(t=Ue.convert3HexTo6(t),k==="dark"||k==="light"){switch(k){case"dark":b=u?s?"#9b9b9b":"#f9f9f9":"#ffffff";break;case"light":b=u?s?"#9b9b9b":"#f9f9f9":s?"#333333":"#ffffff";break;default:b="#9b9b9b";break}const A=u?"#f9f9f9":s?t:"#ffffff";d=u?"#e4e4e4":t=="#ffffff"?"#333333":t,s&&(a={backgroundColor:A,borderColor:d,outlineColor:d})}}const w=u?ze.checkboxDisabled:"",E=[ze.checkboxLayout,ze[n],w,o].filter(Boolean).join(" "),y=k=>{k.key!="Enter"&&(k.preventDefault(),p?.(k.target.checked),f(!s))};return S.jsx(S.Fragment,{children:S.jsx("div",{className:E,"data-testid":"checkbox",children:S.jsxs("label",{className:ze.checkboxLabel,htmlFor:r,onClick:k=>y(k),children:[S.jsxs("div",{className:ze.checkboxInnerContainer,tabIndex:m||u?-1:0,onKeyPress:k=>y(k),"data-testid":"checkbox-inner-container",children:[S.jsx("input",{className:ze.checkboxInput,onChange:k=>y(k),type:"checkbox",checked:s,disabled:u,id:r,ref:g,...h,tabIndex:-1,"data-testid":"checkbox-input"}),S.jsx("div",{className:ze.checkboxFrame,style:{...a,...v},"data-testid":"checkbox-frame",children:S.jsx("svg",{version:"1.1",focusable:"false",className:ze.checkboxCheckMark,viewBox:"0 0 24 24","data-testid":"check-mark-svg",children:S.jsx("path",{className:ze.checkboxCheckMarkPath,fill:"none",stroke:b,d:"M4.1,12.7 9,17.6 20.3,6.3"})})})]}),e&&S.jsx("span",{"data-testid":"checkbox-label",children:e}),S.jsx("div",{className:ze.visuallyHidden,"aria-live":"polite","aria-atomic":"true",children:s?"Checked":"Unchecked"})]})})})});Jt.displayName="Checkbox";const Cn={textInputWrapper:"_textInputWrapper_1i9m6_1",textInput:"_textInput_1i9m6_1"};var I={},Xt={exports:{}};(function(e,t){(function(n,r){var i="1.0.37",u="",o="?",p="function",v="undefined",m="object",h="string",g="major",s="model",f="name",a="type",d="vendor",b="version",w="architecture",E="console",y="mobile",k="tablet",A="smarttv",j="wearable",z="embedded",W=500,P="Amazon",Y="Apple",le="ASUS",te="BlackBerry",O="Browser",Q="Chrome",ne="Edge",de="Firefox",U="Google",ue="Huawei",re="LG",X="Microsoft",ve="Motorola",pe="Opera",se="Samsung",C="Sharp",F="Sony",B="Xiaomi",ge="Zebra",_e="Facebook",at="Chromium OS",Ze="Mac OS",T=function(H,J){var N={};for(var ie in H)J[ie]&&J[ie].length%2===0?N[ie]=J[ie].concat(H[ie]):N[ie]=H[ie];return N},V=function(H){for(var J={},N=0;N<H.length;N++)J[H[N].toUpperCase()]=H[N];return J},we=function(H,J){return typeof H===h?me(J).indexOf(me(H))!==-1:!1},me=function(H){return H.toLowerCase()},Ne=function(H){return typeof H===h?H.replace(/[^\d\.]/g,u).split(".")[0]:r},Le=function(H,J){if(typeof H===h)return H=H.replace(/^\s\s*/,u),typeof J===v?H:H.substring(0,W)},We=function(H,J){for(var N=0,ie,qe,De,K,D,Ve;N<J.length&&!D;){var _t=J[N],Yt=J[N+1];for(ie=qe=0;ie<_t.length&&!D&&_t[ie];)if(D=_t[ie++].exec(H),D)for(De=0;De<Yt.length;De++)Ve=D[++qe],K=Yt[De],typeof K===m&&K.length>0?K.length===2?typeof K[1]==p?this[K[0]]=K[1].call(this,Ve):this[K[0]]=K[1]:K.length===3?typeof K[1]===p&&!(K[1].exec&&K[1].test)?this[K[0]]=Ve?K[1].call(this,Ve,K[2]):r:this[K[0]]=Ve?Ve.replace(K[1],K[2]):r:K.length===4&&(this[K[0]]=Ve?K[3].call(this,Ve.replace(K[1],K[2])):r):this[K]=Ve||r;N+=2}},Ce=function(H,J){for(var N in J)if(typeof J[N]===m&&J[N].length>0){for(var ie=0;ie<J[N].length;ie++)if(we(J[N][ie],H))return N===o?r:N}else if(we(J[N],H))return N===o?r:N;return H},$e={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},qt={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},zt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,b],[/opios[\/ ]+([\w\.]+)/i],[b,[f,pe+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[f,pe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[f,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[f,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[f,"Smart Lenovo "+O]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+O],b],[/\bfocus\/([\w\.]+)/i],[b,[f,de+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[f,pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[f,pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[f,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[b,[f,de]],[/\bqihu|(qi?ho?o?|360)browser/i],[[f,"360 "+O]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1 "+O],b],[/samsungbrowser\/([\w\.]+)/i],[b,[f,se+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[f,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,_e],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[f,Q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,Q+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[f,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[b,Ce,$e]],[/(webkit|khtml)\/([\w\.]+)/i],[f,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[f,de+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[f,b],[/(cobalt)\/([\w\.]+)/i],[f,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[w,"amd64"]],[/(ia32(?=;))/i],[[w,me]],[/((?:i[346]|x)86)[;\)]/i],[[w,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[w,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[w,"armhf"]],[/windows (ce|mobile); ppc;/i],[[w,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[w,/ower/,u,me]],[/(sun4\w)[;\)]/i],[[w,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[w,me]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[s,[d,se],[a,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,se],[a,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,Y],[a,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,Y],[a,k]],[/(macintosh);/i],[s,[d,Y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,C],[a,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,ue],[a,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,ue],[a,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,B],[a,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,B],[a,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[a,y]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[a,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[a,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[s,[d,ve],[a,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,ve],[a,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,re],[a,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,re],[a,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[a,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[a,y]],[/(pixel c)\b/i],[s,[d,U],[a,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,U],[a,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[s,[d,F],[a,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,F],[a,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[a,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,P],[a,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,P],[a,y]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[a,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,te],[a,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,le],[a,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,le],[a,y]],[/(nexus 9)/i],[s,[d,"HTC"],[a,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[a,y]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[a,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[a,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[d,"Ulefone"],[a,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[a,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,s,[a,k]],[/(surface duo)/i],[s,[d,X],[a,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[a,y]],[/(u304aa)/i],[s,[d,"AT&T"],[a,y]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[a,y]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[a,k]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[a,k]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[a,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[a,k]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[a,k]],[/\b(k88) b/i],[s,[d,"ZTE"],[a,k]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[a,y]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[a,y]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[a,k]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[a,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[a,k]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[a,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[a,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[a,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[a,y]],[/\b(ph-1) /i],[s,[d,"Essential"],[a,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[a,k]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[a,k]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[a,k]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[a,k]],[/(sprint) (\w+)/i],[d,s,[a,y]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,X],[a,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,ge],[a,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,ge],[a,y]],[/smart-tv.+(samsung)/i],[d,[a,A]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,se],[a,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,re],[a,A]],[/(apple) ?tv/i],[d,[s,Y+" TV"],[a,A]],[/crkey/i],[[s,Q+"cast"],[d,U],[a,A]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,P],[a,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,C],[a,A]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,F],[a,A]],[/(mitv-\w{5}) bui/i],[s,[d,B],[a,A]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[a,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Le],[s,Le],[a,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[a,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[a,E]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[a,E]],[/(playstation [345portablevi]+)/i],[s,[d,F],[a,E]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,X],[a,E]],[/((pebble))app/i],[d,s,[a,j]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,Y],[a,j]],[/droid.+; (glass) \d/i],[s,[d,U],[a,j]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,ge],[a,j]],[/(quest( 2| pro)?)/i],[s,[d,_e],[a,j]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,z]],[/(aeobc)\b/i],[s,[d,P],[a,z]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[a,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[a,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,y]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[f,ne+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[b,Ce,qt]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Ce,qt],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,Ze],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,b],[/\(bb(10);/i],[b,[f,te]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[f,de+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[f,Q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,at],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,b],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,b]]},Pe=function(H,J){if(typeof H===m&&(J=H,H=r),!(this instanceof Pe))return new Pe(H,J).getResult();var N=typeof n!==v&&n.navigator?n.navigator:r,ie=H||(N&&N.userAgent?N.userAgent:u),qe=N&&N.userAgentData?N.userAgentData:r,De=J?T(zt,J):zt,K=N&&N.userAgent==ie;return this.getBrowser=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.browser),D[g]=Ne(D[b]),K&&N&&N.brave&&typeof N.brave.isBrave==p&&(D[f]="Brave"),D},this.getCPU=function(){var D={};return D[w]=r,We.call(D,ie,De.cpu),D},this.getDevice=function(){var D={};return D[d]=r,D[s]=r,D[a]=r,We.call(D,ie,De.device),K&&!D[a]&&qe&&qe.mobile&&(D[a]=y),K&&D[s]=="Macintosh"&&N&&typeof N.standalone!==v&&N.maxTouchPoints&&N.maxTouchPoints>2&&(D[s]="iPad",D[a]=k),D},this.getEngine=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.engine),D},this.getOS=function(){var D={};return D[f]=r,D[b]=r,We.call(D,ie,De.os),K&&!D[f]&&qe&&qe.platform!="Unknown"&&(D[f]=qe.platform.replace(/chrome os/i,at).replace(/macos/i,Ze)),D},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ie},this.setUA=function(D){return ie=typeof D===h&&D.length>W?Le(D,W):D,this},this.setUA(ie),this};Pe.VERSION=i,Pe.BROWSER=V([f,b,g]),Pe.CPU=V([w]),Pe.DEVICE=V([s,d,a,E,y,A,k,j,z]),Pe.ENGINE=Pe.OS=V([f,b]),e.exports&&(t=e.exports=Pe),t.UAParser=Pe;var st=typeof n!==v&&(n.jQuery||n.Zepto);if(st&&!st.ua){var pt=new Pe;st.ua=pt.getResult(),st.ua.get=function(){return pt.getUA()},st.ua.set=function(H){pt.setUA(H);var J=pt.getResult();for(var N in J)st.ua[N]=J[N]}}})(typeof window=="object"?window:vi)})(Xt,Xt.exports);var wi=Xt.exports;Object.defineProperty(I,"__esModule",{value:!0});function xi(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ke=c,ae=xi(ke),Pn=wi,nt=new Pn,Se=nt.getBrowser(),yi=nt.getCPU(),Ae=nt.getDevice(),Zt=nt.getEngine(),rt=nt.getOS(),gt=nt.getUA(),In=function(t){return nt.setUA(t)},wt=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new Pn(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},jn=Object.freeze({ClientUAInstance:nt,browser:Se,cpu:yi,device:Ae,engine:Zt,os:rt,ua:gt,setUa:In,parseUserAgent:wt});function Fn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fn(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fn(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xt(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xt=function(t){return typeof t}:xt=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(e)}function Si(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oi(e,t,n){return t&&Ln(e.prototype,t),n&&Ln(e,n),e}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $t(){return $t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function Ti(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},en(e)}function tn(e,t){return tn=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},tn(e,t)}function _i(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,u;for(u=0;u<r.length;u++)i=r[u],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Me(e,t){if(e==null)return{};var n=_i(e,t),r,i;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(i=0;i<u.length;i++)r=u[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ci(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pt(e)}function Pi(e,t){return Ii(e)||ji(e,t)||Fi(e,t)||Li()}function Ii(e){if(Array.isArray(e))return e}function ji(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,u=!1,o,p;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(v){u=!0,p=v}finally{try{!i&&n.return!=null&&n.return()}finally{if(u)throw p}}return r}}function Fi(e,t){if(e){if(typeof e=="string")return An(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return An(e,t)}}function An(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Li(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Oe={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},je={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},ut={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},Ai={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},Ni=function(t){switch(t){case Oe.Mobile:return{isMobile:!0};case Oe.Tablet:return{isTablet:!0};case Oe.SmartTv:return{isSmartTV:!0};case Oe.Console:return{isConsole:!0};case Oe.Wearable:return{isWearable:!0};case Oe.Browser:return{isBrowser:!0};case Oe.Embedded:return{isEmbedded:!0};default:return Ai}},Di=function(t){return In(t)},M=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},nn=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},rn=function(t){var n=nn();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},Mi=function(t,n,r,i,u){return{isBrowser:t,browserMajorVersion:M(n.major),browserFullVersion:M(n.version),browserName:M(n.name),engineName:M(r.name),engineVersion:M(r.version),osName:M(i.name),osVersion:M(i.version),userAgent:M(u)}},Nn=function(t,n,r,i){return ki({},t,{vendor:M(n.vendor),model:M(n.model),os:M(r.name),osVersion:M(r.version),ua:M(i)})},Ri=function(t,n,r,i){return{isSmartTV:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Wi=function(t,n,r,i){return{isConsole:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Vi=function(t,n,r,i){return{isWearable:t,engineName:M(n.name),engineVersion:M(n.version),osName:M(r.name),osVersion:M(r.version),userAgent:M(i)}},Bi=function(t,n,r,i,u){return{isEmbedded:t,vendor:M(n.vendor),model:M(n.model),engineName:M(r.name),engineVersion:M(r.version),osName:M(i.name),osVersion:M(i.version),userAgent:M(u)}};function Ui(e){var t=e?wt(e):jn,n=t.device,r=t.browser,i=t.engine,u=t.os,o=t.ua,p=Ni(n.type),v=p.isBrowser,m=p.isMobile,h=p.isTablet,g=p.isSmartTV,s=p.isConsole,f=p.isWearable,a=p.isEmbedded;if(v)return Mi(v,r,i,u,o);if(g)return Ri(g,i,u,o);if(s)return Wi(s,i,u,o);if(m||h)return Nn(p,n,u,o);if(f)return Vi(f,i,u,o);if(a)return Bi(a,n,i,u,o)}var Dn=function(t){var n=t.type;return n===Oe.Mobile},Mn=function(t){var n=t.type;return n===Oe.Tablet},Rn=function(t){var n=t.type;return n===Oe.Mobile||n===Oe.Tablet},Wn=function(t){var n=t.type;return n===Oe.SmartTv},It=function(t){var n=t.type;return n===Oe.Browser},Vn=function(t){var n=t.type;return n===Oe.Wearable},Bn=function(t){var n=t.type;return n===Oe.Console},Un=function(t){var n=t.type;return n===Oe.Embedded},Hn=function(t){var n=t.vendor;return M(n)},qn=function(t){var n=t.model;return M(n)},zn=function(t){var n=t.type;return M(n,"browser")},Yn=function(t){var n=t.name;return n===ut.Android},Kn=function(t){var n=t.name;return n===ut.Windows},Gn=function(t){var n=t.name;return n===ut.MAC_OS},Qn=function(t){var n=t.name;return n===ut.WindowsPhone},Jn=function(t){var n=t.name;return n===ut.IOS},Xn=function(t){var n=t.version;return M(n)},Zn=function(t){var n=t.name;return M(n)},$n=function(t){var n=t.name;return n===je.Chrome},er=function(t){var n=t.name;return n===je.Firefox},tr=function(t){var n=t.name;return n===je.Chromium},jt=function(t){var n=t.name;return n===je.Edge},nr=function(t){var n=t.name;return n===je.Yandex},rr=function(t){var n=t.name;return n===je.Safari||n===je.MobileSafari},ir=function(t){var n=t.name;return n===je.MobileSafari},or=function(t){var n=t.name;return n===je.Opera},ar=function(t){var n=t.name;return n===je.InternetExplorer||n===je.Ie},sr=function(t){var n=t.name;return n===je.MIUI},lr=function(t){var n=t.name;return n===je.SamsungBrowser},ur=function(t){var n=t.version;return M(n)},cr=function(t){var n=t.major;return M(n)},dr=function(t){var n=t.name;return M(n)},fr=function(t){var n=t.name;return M(n)},pr=function(t){var n=t.version;return M(n)},br=function(){var t=nn(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},ct=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},vr=function(){var t=nn();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Ye=function(){return rn("iPad")},mr=function(){return rn("iPhone")},hr=function(){return rn("iPod")},gr=function(t){return M(t)};function wr(e){var t=e||jn,n=t.device,r=t.browser,i=t.os,u=t.engine,o=t.ua;return{isSmartTV:Wn(n),isConsole:Bn(n),isWearable:Vn(n),isEmbedded:Un(n),isMobileSafari:ir(r)||Ye(),isChromium:tr(r),isMobile:Rn(n)||Ye(),isMobileOnly:Dn(n),isTablet:Mn(n)||Ye(),isBrowser:It(n),isDesktop:It(n),isAndroid:Yn(i),isWinPhone:Qn(i),isIOS:Jn(i)||Ye(),isChrome:$n(r),isFirefox:er(r),isSafari:rr(r),isOpera:or(r),isIE:ar(r),osVersion:Xn(i),osName:Zn(i),fullBrowserVersion:ur(r),browserVersion:cr(r),browserName:dr(r),mobileVendor:Hn(n),mobileModel:qn(n),engineName:fr(u),engineVersion:pr(u),getUA:gr(o),isEdge:jt(r)||ct(o),isYandex:nr(r),deviceType:zn(n),isIOS13:vr(),isIPad13:Ye(),isIPhone13:mr(),isIPod13:hr(),isElectron:br(),isEdgeChromium:ct(o),isLegacyEdge:jt(r)&&!ct(o),isWindows:Kn(i),isMacOs:Gn(i),isMIUI:sr(r),isSamsungBrowser:lr(r)}}var xr=Wn(Ae),yr=Bn(Ae),kr=Vn(Ae),Hi=Un(Ae),qi=ir(Se)||Ye(),zi=tr(Se),Ft=Rn(Ae)||Ye(),Sr=Dn(Ae),Or=Mn(Ae)||Ye(),Er=It(Ae),Yi=It(Ae),Tr=Yn(rt),_r=Qn(rt),Cr=Jn(rt)||Ye(),Ki=$n(Se),Gi=er(Se),Qi=rr(Se),Ji=or(Se),Pr=ar(Se),Xi=Xn(rt),Zi=Zn(rt),$i=ur(Se),eo=cr(Se),to=dr(Se),no=Hn(Ae),ro=qn(Ae),io=fr(Zt),oo=pr(Zt),ao=gr(gt),so=jt(Se)||ct(gt),lo=nr(Se),uo=zn(Ae),co=vr(),fo=Ye(),po=mr(),bo=hr(),vo=br(),mo=ct(gt),ho=jt(Se)&&!ct(gt),go=Kn(rt),wo=Gn(rt),xo=sr(Se),yo=lr(Se),ko=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=wt(t),r=n.device,i=n.browser,u=n.os,o=n.engine,p=n.ua;return wr({device:r,browser:i,os:u,engine:o,ua:p})},So=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Tr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Oo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Er?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Eo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Pr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},To=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Cr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},_o=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Ft?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Co=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return Or?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Po=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return _r?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Io=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=Me(t,["renderWithFragment","children","viewClassName","style"]);return Sr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},jo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return xr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Fo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return yr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Lo=function(t){var n=t.renderWithFragment,r=t.children,i=Me(t,["renderWithFragment","children"]);return kr?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",i,r):null},Ao=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=t.condition,u=Me(t,["renderWithFragment","children","viewClassName","style","condition"]);return i?n?ae.createElement(ke.Fragment,null,r):ae.createElement("div",u,r):null};function No(e){return function(t){Ti(n,t);function n(r){var i;return Si(this,n),i=Ci(this,en(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(Pt(i)),i.onOrientationChange=i.onOrientationChange.bind(Pt(i)),i.onPageLoad=i.onPageLoad.bind(Pt(i)),i.state={isLandscape:!1,isPortrait:!1},i}return Oi(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":xt(window))!==void 0&&Ft&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ae.createElement(e,$t({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ae.Component)}function Do(){var e=ke.useState(function(){var u=window.innerWidth>window.innerHeight?90:0;return{isPortrait:u===0,isLandscape:u===90,orientation:u===0?"portrait":"landscape"}}),t=Pi(e,2),n=t[0],r=t[1],i=ke.useCallback(function(){var u=window.innerWidth>window.innerHeight?90:0,o={isPortrait:u===0,isLandscape:u===90,orientation:u===0?"portrait":"landscape"};n.orientation!==o.orientation&&r(o)},[n.orientation]);return ke.useEffect(function(){return(typeof window>"u"?"undefined":xt(window))!==void 0&&Ft&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function Ir(e){var t=e||window.navigator.userAgent;return wt(t)}function Mo(e){var t=e||window.navigator.userAgent,n=Ir(t),r=wr(n);return[r,n]}I.AndroidView=So,I.BrowserTypes=je,I.BrowserView=Oo,I.ConsoleView=Fo,I.CustomView=Ao,I.IEView=Eo,I.IOSView=To,I.MobileOnlyView=Io,I.MobileView=_o,I.OsTypes=ut,I.SmartTVView=jo,I.TabletView=Co,I.WearableView=Lo,I.WinPhoneView=Po,I.browserName=to,I.browserVersion=eo,I.deviceDetect=Ui,I.deviceType=uo,I.engineName=io,I.engineVersion=oo,I.fullBrowserVersion=$i,I.getSelectorsByUserAgent=ko,I.getUA=ao,I.isAndroid=Tr,I.isBrowser=Er,I.isChrome=Ki,I.isChromium=zi,I.isConsole=yr,I.isDesktop=Yi,I.isEdge=so,I.isEdgeChromium=mo,I.isElectron=vo,I.isEmbedded=Hi,I.isFirefox=Gi,I.isIE=Pr,I.isIOS=Cr,I.isIOS13=co,I.isIPad13=fo,I.isIPhone13=po,I.isIPod13=bo,I.isLegacyEdge=ho,I.isMIUI=xo,I.isMacOs=wo;var Ro=I.isMobile=Ft;I.isMobileOnly=Sr,I.isMobileSafari=qi,I.isOpera=Ji,I.isSafari=Qi,I.isSamsungBrowser=yo,I.isSmartTV=xr,I.isTablet=Or,I.isWearable=kr,I.isWinPhone=_r,I.isWindows=go,I.isYandex=lo,I.mobileModel=ro,I.mobileVendor=no,I.osName=Zi,I.osVersion=Xi,I.parseUserAgent=wt,I.setUserAgent=Di,I.useDeviceData=Ir,I.useDeviceSelectors=Mo,I.useMobileOrientation=Do,I.withOrientationChange=No;const Wo=c.memo(c.forwardRef(({themeColor:e="",onSubmit:t,style:n={},className:r="",onInput:i,onFocus:u,onBlur:o,...p},v)=>{const[m,h]=c.useState(!0),[g,s]=c.useState(!1);e=Ue.convert3HexTo6(e),c.useEffect(()=>{h(Ro)},[]);const f=y=>{!m&&y.key==="Enter"&&!y.shiftKey&&t&&(y.preventDefault(),t())},a=y=>{i?.(y),y.target.style.height="40px",y.target.style.height=2+y.target.scrollHeight+"px"};let d={};const b=[Cn.textInput,r].filter(Boolean).join(" "),w=()=>{s(!0)},E=()=>{s(!1)};return d={borderBottomColor:g?e!=="#ffffff"?e:"#c8c8c8":""},S.jsx("div",{className:Cn.textInputWrapper,children:S.jsx("textarea",{"data-testid":"textbox-input",ref:v,className:b,style:{...d,...n},onFocus:w,onBlur:E,onInput:y=>a(y),onKeyDown:f,...p})})})),Ee={multiSelectContainer:"_multiSelectContainer_1if8o_1",listOptionsWrap:"_listOptionsWrap_1if8o_4",selectedValuesWrap:"_selectedValuesWrap_1if8o_7",selectedValues:"_selectedValues_1if8o_7",focused:"_focused_1if8o_13",placeholder:"_placeholder_1if8o_16",dropDownIcon:"_dropDownIcon_1if8o_19",optionsListContainer:"_optionsListContainer_1if8o_23",top:"_top_1if8o_26",optionsListWrap:"_optionsListWrap_1if8o_29",searchInputWrap:"_searchInputWrap_1if8o_32",searchInput:"_searchInput_1if8o_32",optionsList:"_optionsList_1if8o_23",btnContainer:"_btnContainer_1if8o_53"},yt={pseudoCheckbox:"_pseudoCheckbox_1tuhb_1",checkboxCheckMark:"_checkboxCheckMark_1tuhb_4",checkboxCheckMarkPath:"_checkboxCheckMarkPath_1tuhb_7",checked:"_checked_1tuhb_12",checkboxUncheckedChecked:"_checkboxUncheckedChecked_1tuhb_1",checkboxDisabled:"_checkboxDisabled_1tuhb_22"},jr=({checked:e=!1,themeColor:t="",disabled:n=!1})=>{let r={},i="#006bb1",u=n?"#9b9b9b":"#ffffff";const o=n?yt.checkboxDisabled:"",p=e?yt.checked:"",v=[yt.pseudoCheckbox,p,o].filter(Boolean).join(" ");let m;if(t){const h=tt(t);t=Ue.convert3HexTo6(t),h==="dark"||h==="light"?(n?u=e?"#9b9b9b":"#f9f9f9":u=h=="light"?"#333333":"#ffffff",i=n?"#f9f9f9":e?t:"#ffffff",m=n?"#e4e4e4":t==="#ffffff"?"#333333":t,e&&(r={backgroundColor:i,borderColor:m,outlineColor:m})):u="#9b9b9b"}return S.jsx("div",{style:r,className:v,role:"checkbox","aria-checked":e,"aria-hidden":"true",tabIndex:-1,"data-testid":"checkbox-input",children:S.jsx("svg",{version:"1.1",focusable:"false",className:yt.checkboxCheckMark,viewBox:"0 0 24 24",children:S.jsx("path",{className:yt.checkboxCheckMarkPath,fill:"none",stroke:u,d:"M4.1,12.7 9,17.6 20.3,6.3"})})})};jr.displayName="Checkbox";const Vo=({options:e,checkedValue:t,onSelectionChange:n,maxOptions:r,themeColor:i,className:u="",style:o={}})=>{const p=c.useRef(e),[v,m]=c.useState(t),[h,g]=c.useState(""),[s,f]=c.useState(!1),[a,d]=c.useState(!1),b=c.useRef(null),w=c.useRef(null),E=c.useRef(null),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),[j,z]=c.useState(-1),W=c.useRef(0),P=c.useRef(0),[Y,le]=c.useState(!1);let te={};const[O,Q]=c.useState({left:0,top:0}),[ne,de]=c.useState(null),U=c.useRef(!1),ue=()=>{setTimeout(()=>{(b.current?.children[0]).focus()},0)};c.useEffect(()=>{const T=V=>{w.current&&!w.current.contains(V.target)&&(f(!1),g(""),ue())};return document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)}},[]);const re=()=>{W.current=window.innerHeight,P.current=document.body.scrollHeight,le(!0)};c.useEffect(()=>(re(),window.addEventListener("resize",re),()=>{window.addEventListener("resize",re)}),[]);const X=T=>{const V=document.getElementById("announcement");V&&(V.textContent=T,V.setAttribute("aria-live","assertive"),setTimeout(()=>{V.textContent="",V.setAttribute("aria-live","off")},1e3))};c.useEffect(()=>{const T=e.filter(V=>V.text.toLowerCase().includes(h.toLowerCase()));p.current=T},[e,h]);const ve=v.length>0?v.map(T=>{const V=e.find(we=>we.id===T);return V?.text!==null?V?.text:""}).filter(T=>T!=="").join(", "):"Select your option",pe=T=>{const V=e.find(we=>we.id===T);if(V&&!V.disabled&&(r===void 0||v.length<=r)){const me=v.includes(T)?v.filter(Le=>Le!==T):[...v,T];(r===void 0||me.length<=r)&&s&&(m(me),n(me),X(`${V?.text} ${me.includes(T)?"selected":"not selected"}`))}},se=T=>{F(),f(T),setTimeout(()=>{E.current?E.current?.focus():y.current?.focus(),X("use up and down arrow keys to navigate")},0)},C=()=>P.current-(W.current+window.scrollY),F=()=>{if(b.current){const T=b.current.getBoundingClientRect();setTimeout(()=>{const V=w?.current?.getBoundingClientRect(),we=C(),me=W.current-T.bottom;let Ne;if(V){const Le=T.height,We=T.top,Ce=V.height,$e=Ce>We+window.scrollY;We<Ce&&($e||$e&&me<Ce||we>Ce||me>Ce)||We>Ce&&me>Ce?Ne=T.y+Le:Ne=T.y-Ce,Q({left:T.left,top:Ne??T.top})}},0)}};c.useEffect(()=>(window.addEventListener("scroll",F),window.addEventListener("resize",F),()=>{window.removeEventListener("scroll",F),window.removeEventListener("resize",F)}),[s]);const B=T=>{T.preventDefault(),T.key==="Shift"?U.current=!0:T.shiftKey&&U.current&&T.key==="Tab"||T.key==="Tab"?(setTimeout(()=>{E.current?E.current?.focus():y.current?.focus()},0),U.current=!1):T.key==="Escape"||T.key==="Enter"||T.key==="Space"||T.key===" "?(se(!1),ue()):U.current=!1},ge=T=>{const{key:V}=T;if(V==="Tab"||T.shiftKey&&V==="Tab")setTimeout(()=>{k.current?.focus()},0);else if(V==="ArrowDown"||V==="ArrowUp"){T.preventDefault(),setTimeout(()=>{y.current?.focus()},0);let we=j;if(V==="ArrowDown"?we=Math.min(j+1,p.current.length-1):V==="ArrowUp"&&(we=Math.max(j-1,0)),j===0&&T.key==="ArrowUp"?we=p.current.length-1:j===p.current.length-1&&T.key==="ArrowDown"&&(we=0),z(we),A.current&&we>=0){const me=A.current.querySelectorAll(`.${Ee.optionsList}`)[we],Ne=me.children[0].getAttribute("aria-checked"),Le=`${me.textContent} ${Ne==="true"?"selected":"not selected"} ${we+1} out of ${p.current.length}`;X(Le),me&&me.scrollIntoView({block:"nearest",inline:"nearest"})}}else V==="Enter"||V==="Space"||V===" "?j!==-1&&pe(p.current[j].id):V==="Escape"&&(se(!1),ue())};c.useEffect(()=>{ne&&clearTimeout(ne);const T=setTimeout(()=>{const V=p.current.length?`${p.current.length} results are available, use up and down arrow keys to navigate`:"No results available";s&&X(V)},500);de(T)},[h]);const _e=()=>{d(!0)},at=()=>{d(!1)};if(i){const T=tt(i);i=Ue.convert3HexTo6(i),(T==="dark"||T==="light")&&(te={borderBottomColor:i==="#ffffff"?"#c8c8c8":a||s?i:"#333333"})}const Ze=()=>{f(!1)};return S.jsx("div",{className:Ee.multiSelectContainer,children:S.jsxs("div",{className:Ee.listOptionsWrap,children:[S.jsxs("div",{className:`${u} ${Ee.selectedValuesWrap}`,ref:b,children:[S.jsx("div",{className:`${Ee.selectedValues} ${s?Ee.focused:""} ${v.length===0?Ee.placeholder:""}`,onFocus:_e,onBlur:at,onClick:()=>se(!s),onKeyPress:T=>{(T.key===" "||T.code==="Space"||T.code==="Enter")&&(T.preventDefault(),se(!s))},tabIndex:0,"data-testid":"selected-input",style:{...te,...o},"aria-expanded":s,"aria-haspopup":"listbox","aria-multiselectable":"true","aria-autocomplete":"list",role:"combobox",children:ve}),S.jsx("span",{className:Ee.dropDownIcon,onClick:()=>se(!s),"data-testid":"arrow-button",children:S.jsx("svg",{width:"12px",height:"7px",viewBox:"0 0 12 7",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:S.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:S.jsx("g",{transform:"translate(-2360.000000, -295.000000)",fill:"#666666",children:S.jsx("g",{transform:"translate(2006.000000, 248.000000)",children:S.jsx("path",{d:"M358.027356,44.3431458 L358.027146,50.6581458 L364.343146,50.6589352 L364.343146,52.3431458 L358.027146,52.3421458 L358.027356,52.3431458 L356.343146,52.3431458 L356.343146,44.3431458 L358.027356,44.3431458 Z",transform:"translate(360.343146, 48.343146) scale(-1, -1) rotate(-225.000000) translate(-360.343146, -48.343146)"})})})})})})]}),S.jsx("div",{id:"announcement","aria-live":"assertive",role:"alert",className:"tw-pointer-events-none tw-h-0 tw-overflow-hidden tw-opacity-0"}),Y?Kt.createPortal(S.jsx(S.Fragment,{children:s&&b&&S.jsx("div",{onClick:Ze,style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsxs("div",{className:`${Ee.optionsListContainer}`,ref:w,onClick:T=>T.stopPropagation(),style:{opacity:O.left?1:0,width:b.current?b.current.clientWidth:"auto",left:O.left,top:O.top},children:[S.jsxs("div",{className:Ee.optionsListWrap,children:[e.length>=6&&S.jsx("div",{className:Ee.searchInputWrap,children:S.jsx("input",{type:"text",ref:E,placeholder:"Type to filter",className:Ee.searchInput,value:h,onChange:T=>g(T.target.value),"data-testid":"search-input",onKeyDown:T=>{ge(T)}})}),S.jsx("ul",{ref:A,role:"listbox",children:p.current.map((T,V)=>S.jsxs("li",{className:`${Ee.optionsList} ${V===j?Ee.focused:""}`,onClick:()=>pe(T.id),"aria-selected":V===j,role:"option",children:[S.jsx(jr,{themeColor:i,checked:v.includes(T.id),disabled:T.disabled||r!==void 0&&v.length>=r&&!v.includes(T.id)}),S.jsx("span",{children:T.text})]},T.id))})]}),S.jsxs("div",{className:Ee.btnContainer,children:[S.jsx("input",{ref:y,onKeyDown:T=>{ge(T)},className:"tw-absolute tw-left-[-9999px] tw-h-0 tw-w-0 tw-opacity-0"}),S.jsx(Qt,{themeColor:i,variant:"primary",size:"medium",onClick:()=>{f(!1),g(""),ue(),n(v)},"data-testid":"done-button",onKeyDown:T=>{B(T)},ref:k,children:"Done"})]})]})})}),document.body):null]})})},Lt={multiSelectContainer:"_multiSelectContainer_owbxn_1",quickOptionsWrap:"_quickOptionsWrap_owbxn_4",selected:"_selected_owbxn_10",disabled:"_disabled_owbxn_16"},Bo=({options:e,checkedValue:t,onSelectionChange:n,maxOptions:r,themeColor:i,className:u="",style:o={},id:p=""})=>{const[v,m]=c.useState(t),h=c.useRef({});let g={},s;const f=a=>{const d=e.find(k=>k.id===a);if(!d||d.disabled)return;h.current[a]?.click();const E=v.includes(a)?v.filter(k=>k!==a):[...v,a];(r===void 0||E.length<=r)&&(m(E),n(E))};if(i){s=tt(i),i=Ue.convert3HexTo6(i);const a=i==="#ffffff"?"#333333":i;(s==="dark"||s==="light")&&(g={outlineColor:a,borderColor:a,color:i==="#ffffff"||s==="light"?"#333333":i})}return S.jsx("div",{className:Lt.multiSelectContainer,role:"group",children:S.jsx("ul",{className:Lt.quickOptionsWrap,id:p,children:e.map(a=>S.jsx("li",{style:{...g,...o},className:`${u} ${a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id)?Lt.disabled:""} ${v.includes(a.id)?Lt.selected:""}`,tabIndex:a.disabled?-1:0,onClick:()=>f(a.id),onKeyPress:d=>{(d.key===" "||d.code==="Space")&&(d.preventDefault(),f(a.id))},"data-testid":"option-box",children:S.jsx(Jt,{id:a.id,checkboxSize:"large",tabIndex:-1,themeColor:i,ref:d=>{h.current[a.id]=d},checked:v.includes(a.id),disabled:a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id),children:S.jsx("span",{style:{color:i&&(i==="#ffffff"||s==="light")||a.disabled||r!==void 0&&v.length>=r&&!v.includes(a.id)?"#333333":i&&(i!=="#ffffff"||s!=="light")?i:"#006bb1"},children:a.text})})},a.id))})})},Ke={singleSelectWrapper:"_singleSelectWrapper_j8hf5_1",quickOption:"_quickOption_j8hf5_4",selected:"_selected_j8hf5_10",triangle:"_triangle_j8hf5_16",loader:"_loader_j8hf5_19","tw-spin":"_tw-spin_j8hf5_1",checkmarkWrap:"_checkmarkWrap_j8hf5_22",checkmark:"_checkmark_j8hf5_22",fill:"_fill_j8hf5_1",scale:"_scale_j8hf5_1",checkmarkCheck:"_checkmarkCheck_j8hf5_29",stroke:"_stroke_j8hf5_1",disabled:"_disabled_j8hf5_34"},Uo=({options:e,onSelect:t,selected:n,themeColor:r,className:i="",style:u={},showLoader:o=!1,id:p=""})=>{const[v,m]=c.useState(n);let h={},g={},s="#ffffff";const f=a=>{if(v?.id===a?.id){m(void 0),t(void 0);return}t(a),m(a)};if(r){const a=tt(r);r=Ue.convert3HexTo6(r);const d=r==="#ffffff"?"#333333":r;(a==="dark"||a==="light")&&(s=r==="#ffffff"||a==="dark"?"#ffffff":"#333333",h={outlineColor:d,borderColor:d,color:r==="#ffffff"||a==="light"?"#333333":r},g={borderRightColor:d,borderTopColor:d})}return S.jsx("div",{className:Ke.singleSelectWrapper,children:S.jsx("div",{className:Ke.quickOption,children:S.jsx("ul",{className:Ke.quickOption,role:"radiogroup",id:p,children:e.map(a=>S.jsxs("li",{tabIndex:a.disabled?-1:0,className:`${i} ${v?.id===a.id?Ke.selected:""} ${a.disabled?Ke.disabled:""}`,style:{...h,...u},onClick:()=>f(a),onKeyPress:d=>{(d.key===" "||d.code==="Space")&&(d.preventDefault(),f(a))},"data-testid":"checkbox-input",role:"radio","aria-checked":v?.id===a.id,children:[a.text,v?.id===a.id&&!a.disabled&&S.jsxs("div",{className:Ke.triangle,style:{...g},children:[o&&S.jsx("div",{className:Ke.loader,style:{borderRightColor:r??"#006bb1"}}),!o&&S.jsx("div",{className:Ke.checkmarkWrap,children:S.jsx("svg",{className:Ke.checkmark,xmlns:"http://www.w3.org/2000/svg",width:"11",height:"9",viewBox:"0 0 11 9",fill:"none",children:S.jsx("path",{className:Ke.checkmarkCheck,stroke:s,d:"M2.1 4.34286L4.12857 6.40001L8.9 1.60001",strokeWidth:"2"})})})]})]},a.id))})})})},Ho={scrollbarContainer:"_scrollbarContainer_1vq1q_1"},Fr=c.forwardRef(({children:e,className:t="",style:n={},...r},i)=>{const u=[Ho.scrollbarContainer,t].filter(Boolean).join(" ");return S.jsx(S.Fragment,{children:S.jsx("div",{ref:i,style:{...n},className:u,...r,children:e})})});Fr.displayName="Scrollbar";var qo=Object.defineProperty,zo=(e,t,n)=>t in e?qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,on=(e,t,n)=>(zo(e,typeof t!="symbol"?t+"":t,n),n);let Yo=class{constructor(){on(this,"current",this.detect()),on(this,"handoffState","pending"),on(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},lt=new Yo,be=(e,t)=>{lt.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function He(e){let t=c.useRef(e);return be(()=>{t.current=e},[e]),t}function kt(e,t){let[n,r]=c.useState(e),i=He(e);return be(()=>r(i.current),[i,r,...t]),n}function Ko(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ge(){let e=[],t={addEventListener(n,r,i,u){return n.addEventListener(r,i,u),t.add(()=>n.removeEventListener(r,i,u))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ko(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let u=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:u})})},group(n){let r=Ge();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Je(){let[e]=c.useState(Ge);return c.useEffect(()=>()=>e.dispose(),[e]),e}let L=function(e){let t=He(e);return c.useCallback((...n)=>t.current(...n),[t])};function Go(){let e=typeof document>"u";return"useSyncExternalStore"in Qe?(t=>t.useSyncExternalStore)(Qe)(()=>()=>{},()=>!1,()=>!e):!1}function an(){let e=Go(),[t,n]=Qe.useState(lt.isHandoffComplete);return t&<.isHandoffComplete===!1&&n(!1),Qe.useEffect(()=>{t!==!0&&n(!0)},[t]),Qe.useEffect(()=>lt.handoff(),[]),e?!1:t}var Lr;let Xe=(Lr=c.useId)!=null?Lr:function(){let e=an(),[t,n]=c.useState(e?()=>lt.nextId():null);return be(()=>{t===null&&n(lt.nextId())},[t]),t!=null?""+t:void 0};function ce(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ce),r}function At(e){return lt.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Ar=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Qo=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Qo||{}),Jo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Jo||{}),Xo=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Xo||{}),sn=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sn||{});function Nr(e,t=0){var n;return e===((n=At(e))==null?void 0:n.body)?!1:ce(t,{0(){return e.matches(Ar)},1(){let r=e;for(;r!==null;){if(r.matches(Ar))return!0;r=r.parentElement}return!1}})}var Zo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Zo||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Dr(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),u=t(r);if(i===null||u===null)return 0;let o=i.compareDocumentPosition(u);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Nt(e,t,n){let r=He(t);c.useEffect(()=>{function i(u){r.current(u)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function $o(e,t,n){let r=He(t);c.useEffect(()=>{function i(u){r.current(u)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function Mr(e,t,n=!0){let r=c.useRef(!1);c.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(o,p){if(!r.current||o.defaultPrevented)return;let v=p(o);if(v===null||!v.getRootNode().contains(v)||!v.isConnected)return;let m=function h(g){return typeof g=="function"?h(g()):Array.isArray(g)||g instanceof Set?g:[g]}(e);for(let h of m){if(h===null)continue;let g=h instanceof HTMLElement?h:h.current;if(g!=null&&g.contains(v)||o.composed&&o.composedPath().includes(g))return}return!Nr(v,sn.Loose)&&v.tabIndex!==-1&&o.preventDefault(),t(o,v)}let u=c.useRef(null);Nt("pointerdown",o=>{var p,v;r.current&&(u.current=((v=(p=o.composedPath)==null?void 0:p.call(o))==null?void 0:v[0])||o.target)},!0),Nt("mousedown",o=>{var p,v;r.current&&(u.current=((v=(p=o.composedPath)==null?void 0:p.call(o))==null?void 0:v[0])||o.target)},!0),Nt("click",o=>{u.current&&(i(o,()=>u.current),u.current=null)},!0),Nt("touchend",o=>i(o,()=>o.target instanceof HTMLElement?o.target:null),!0),$o("blur",o=>i(o,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Rr(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function Wr(e,t){let[n,r]=c.useState(()=>Rr(e));return be(()=>{r(Rr(e))},[e.type,e.as]),be(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let ea=Symbol();function Re(...e){let t=c.useRef(e);c.useEffect(()=>{t.current=e},[e]);let n=L(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||r?.[ea])?void 0:n}function ta({container:e,accept:t,walk:n,enabled:r=!0}){let i=c.useRef(t),u=c.useRef(n);c.useEffect(()=>{i.current=t,u.current=n},[t,n]),be(()=>{if(!e||!r)return;let o=At(e);if(!o)return;let p=i.current,v=u.current,m=Object.assign(g=>p(g),{acceptNode:p}),h=o.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,m,!1);for(;h.nextNode();)v(h.currentNode)},[e,r,i,u])}function na(e){throw new Error("Unexpected object: "+e)}var $=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))($||{});function Vr(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1,u=(()=>{switch(e.focus){case 0:return n.findIndex(o=>!t.resolveDisabled(o));case 1:{let o=n.slice().reverse().findIndex((p,v,m)=>i!==-1&&m.length-v-1>=i?!1:!t.resolveDisabled(p));return o===-1?o:n.length-1-o}case 2:return n.findIndex((o,p)=>p<=i?!1:!t.resolveDisabled(o));case 3:{let o=n.slice().reverse().findIndex(p=>!t.resolveDisabled(p));return o===-1?o:n.length-1-o}case 4:return n.findIndex(o=>t.resolveId(o)===e.id);case 5:return null;default:na(e)}})();return u===-1?r:u}function Dt(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var dt=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dt||{}),it=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(it||{});function Fe({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:u=!0,name:o}){let p=Br(t,e);if(u)return Mt(p,n,r,o);let v=i??0;if(v&2){let{static:m=!1,...h}=p;if(m)return Mt(h,n,r,o)}if(v&1){let{unmount:m=!0,...h}=p;return ce(m?0:1,{0(){return null},1(){return Mt({...h,hidden:!0,style:{display:"none"}},n,r,o)}})}return Mt(p,n,r,o)}function Mt(e,t={},n,r){let{as:i=n,children:u,refName:o="ref",...p}=ln(e,["unmount","static"]),v=e.ref!==void 0?{[o]:e.ref}:{},m=typeof u=="function"?u(t):u;"className"in p&&p.className&&typeof p.className=="function"&&(p.className=p.className(t));let h={};if(t){let g=!1,s=[];for(let[f,a]of Object.entries(t))typeof a=="boolean"&&(g=!0),a===!0&&s.push(f);g&&(h["data-headlessui-state"]=s.join(" "))}if(i===c.Fragment&&Object.keys(Rt(p)).length>0){if(!c.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(p).map(a=>` - ${a}`).join(`
|
|
30
30
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(a=>` - ${a}`).join(`
|
|
31
31
|
`)].join(`
|
|
32
|
-
`));let g=m.props,s=typeof g?.className=="function"?(...a)=>Dt(g?.className(...a),p.className):Dt(g?.className,p.className),f=s?{className:s}:{};return c.cloneElement(m,Object.assign({},Br(m.props,Rt(ln(p,["ref"]))),h,v,ra(m.ref,v.ref),f))}return c.createElement(i,Object.assign({},ln(p,["ref"]),i!==c.Fragment&&v,i!==c.Fragment&&h),m)}function ra(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Br(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...u){let o=n[r];for(let p of o){if((i instanceof Event||i?.nativeEvent instanceof Event)&&i.defaultPrevented)return;p(i,...u)}}});return t}function Ee(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Rt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ln(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ur(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&ia(n)?!1:r}function ia(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function un(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))qr(n,Hr(t,r),i);return n}function Hr(e,t){return e?e+"["+t+"]":t}function qr(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())qr(e,Hr(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):un(n,t,e)}let oa="div";var cn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cn||{});function aa(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Fe({ourProps:i,theirProps:r,slot:{},defaultTag:oa,name:"Hidden"})}let zr=Ee(aa),dn=c.createContext(null);dn.displayName="OpenClosedContext";var ye=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ye||{});function Wt(){return c.useContext(dn)}function fn({value:e,children:t}){return c.createElement(dn.Provider,{value:e},t)}var ee=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ee||{});function Yr(e,t,n){let[r,i]=c.useState(n),u=e!==void 0,o=c.useRef(u),p=c.useRef(!1),v=c.useRef(!1);return u&&!o.current&&!p.current?(p.current=!0,o.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&o.current&&!v.current&&(v.current=!0,o.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:r,L(m=>(u||i(m),t?.(m)))]}function Kr(e,t){let n=c.useRef([]),r=L(e);c.useEffect(()=>{let i=[...n.current];for(let[u,o]of t.entries())if(n.current[u]!==o){let p=r(t,i);return n.current=t,p}},[r,...t])}function Gr(e){return[e.screenX,e.screenY]}function Qr(){let e=c.useRef([-1,-1]);return{wasMoved(t){let n=Gr(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Gr(t)}}}function sa(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function la(){return/Android/gi.test(window.navigator.userAgent)}function ua(){return sa()||la()}function ca(...e){return c.useMemo(()=>At(...e),[...e])}var da=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(da||{}),fa=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(fa||{}),pa=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(pa||{}),ba=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ba||{});function pn(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Dr(t(e.options.slice()),u=>u.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let va={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:r}=e.dataRef.current,i=e.options.findIndex(u=>r(u.dataRef.current.value));i!==-1&&(n=i)}return{...e,comboboxState:0,activeOptionIndex:n}},2(e,t){var n,r,i,u;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let o=pn(e);if(o.activeOptionIndex===null){let v=o.options.findIndex(m=>!m.dataRef.current.disabled);v!==-1&&(o.activeOptionIndex=v)}let p=Vr(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});return{...e,...o,activeOptionIndex:p,activationTrigger:(u=t.trigger)!=null?u:1}},3:(e,t)=>{var n,r;let i={id:t.id,dataRef:t.dataRef},u=pn(e,p=>[...p,i]);e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.dataRef.current.value)&&(u.activeOptionIndex=u.options.indexOf(i));let o={...e,...u,activationTrigger:1};return(r=e.dataRef.current)!=null&&r.__demoMode&&e.dataRef.current.value===void 0&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=pn(e,r=>{let i=r.findIndex(u=>u.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},bn=c.createContext(null);bn.displayName="ComboboxActionsContext";function St(e){let t=c.useContext(bn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,St),n}return t}let vn=c.createContext(null);vn.displayName="ComboboxDataContext";function ft(e){let t=c.useContext(vn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ft),n}return t}function ma(e,t){return ce(t.type,va,e,t)}let ha=c.Fragment;function ga(e,t){let{value:n,defaultValue:r,onChange:i,form:u,name:o,by:p=(C,F)=>C===F,disabled:v=!1,__demoMode:m=!1,nullable:h=!1,multiple:g=!1,...s}=e,[f=g?[]:void 0,a]=Yr(n,i,r),[d,b]=c.useReducer(ma,{dataRef:c.createRef(),comboboxState:m?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),w=c.useRef(!1),E=c.useRef({static:!1,hold:!1}),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),j=c.useRef(null),z=L(typeof p=="string"?(C,F)=>{let B=p;return C?.[B]===F?.[B]}:p),W=c.useCallback(C=>ce(P.mode,{1:()=>f.some(F=>z(F,C)),0:()=>z(f,C)}),[f]),P=c.useMemo(()=>({...d,optionsPropsRef:E,labelRef:y,inputRef:k,buttonRef:A,optionsRef:j,value:f,defaultValue:r,disabled:v,mode:g?1:0,get activeOptionIndex(){if(w.current&&d.activeOptionIndex===null&&d.options.length>0){let C=d.options.findIndex(F=>!F.dataRef.current.disabled);if(C!==-1)return C}return d.activeOptionIndex},compare:z,isSelected:W,nullable:h,__demoMode:m}),[f,r,v,g,h,m,d]),Y=c.useRef(P.activeOptionIndex!==null?P.options[P.activeOptionIndex]:null);c.useEffect(()=>{let C=P.activeOptionIndex!==null?P.options[P.activeOptionIndex]:null;Y.current!==C&&(Y.current=C)}),be(()=>{d.dataRef.current=P},[P]),Mr([P.buttonRef,P.inputRef,P.optionsRef],()=>X.closeCombobox(),P.comboboxState===0);let le=c.useMemo(()=>({open:P.comboboxState===0,disabled:v,activeIndex:P.activeOptionIndex,activeOption:P.activeOptionIndex===null?null:P.options[P.activeOptionIndex].dataRef.current.value,value:f}),[P,v,f]),te=L(C=>{let F=P.options.find(B=>B.id===C);F&&re(F.dataRef.current.value)}),O=L(()=>{if(P.activeOptionIndex!==null){let{dataRef:C,id:F}=P.options[P.activeOptionIndex];re(C.current.value),X.goToOption($.Specific,F)}}),Q=L(()=>{b({type:0}),w.current=!0}),ne=L(()=>{b({type:1}),w.current=!1}),de=L((C,F,B)=>(w.current=!1,C===$.Specific?b({type:2,focus:$.Specific,id:F,trigger:B}):b({type:2,focus:C,trigger:B}))),U=L((C,F)=>(b({type:3,id:C,dataRef:F}),()=>{var B;((B=Y.current)==null?void 0:B.id)===C&&(w.current=!0),b({type:4,id:C})})),ue=L(C=>(b({type:5,id:C}),()=>b({type:5,id:null}))),re=L(C=>ce(P.mode,{0(){return a?.(C)},1(){let F=P.value.slice(),B=F.findIndex(ge=>z(ge,C));return B===-1?F.push(C):F.splice(B,1),a?.(F)}})),X=c.useMemo(()=>({onChange:re,registerOption:U,registerLabel:ue,goToOption:de,closeCombobox:ne,openCombobox:Q,selectActiveOption:O,selectOption:te}),[]),ve=t===null?{}:{ref:t},pe=c.useRef(null),se=Je();return c.useEffect(()=>{pe.current&&r!==void 0&&se.addEventListener(pe.current,"reset",()=>{a?.(r)})},[pe,a]),c.createElement(bn.Provider,{value:X},c.createElement(vn.Provider,{value:P},c.createElement(fn,{value:ce(P.comboboxState,{0:ye.Open,1:ye.Closed})},o!=null&&f!=null&&un({[o]:f}).map(([C,F],B)=>c.createElement(zr,{features:cn.Hidden,ref:B===0?ge=>{var Te;pe.current=(Te=ge?.closest("form"))!=null?Te:null}:void 0,...Rt({key:C,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:u,name:C,value:F})})),Fe({ourProps:ve,theirProps:s,slot:le,defaultTag:ha,name:"Combobox"}))))}let wa="input";function xa(e,t){var n,r,i,u;let o=Xe(),{id:p=`headlessui-combobox-input-${o}`,onChange:v,displayValue:m,type:h="text",...g}=e,s=ft("Combobox.Input"),f=St("Combobox.Input"),a=Re(s.inputRef,t),d=ca(s.inputRef),b=c.useRef(!1),w=Je(),E=L(()=>{f.onChange(null),s.optionsRef.current&&(s.optionsRef.current.scrollTop=0),f.goToOption($.Nothing)}),y=function(){var O;return typeof m=="function"&&s.value!==void 0?(O=m(s.value))!=null?O:"":typeof s.value=="string"?s.value:""}();Kr(([O,Q],[ne,de])=>{if(b.current)return;let U=s.inputRef.current;U&&((de===0&&Q===1||O!==ne)&&(U.value=O),requestAnimationFrame(()=>{if(b.current||!U||d?.activeElement!==U)return;let{selectionStart:ue,selectionEnd:re}=U;Math.abs((re??0)-(ue??0))===0&&ue===0&&U.setSelectionRange(U.value.length,U.value.length)}))},[y,s.comboboxState,d]),Kr(([O],[Q])=>{if(O===0&&Q===1){if(b.current)return;let ne=s.inputRef.current;if(!ne)return;let de=ne.value,{selectionStart:U,selectionEnd:ue,selectionDirection:re}=ne;ne.value="",ne.value=de,re!==null?ne.setSelectionRange(U,ue,re):ne.setSelectionRange(U,ue)}},[s.comboboxState]);let k=c.useRef(!1),A=L(()=>{k.current=!0}),j=L(()=>{w.nextFrame(()=>{k.current=!1})}),z=L(O=>{switch(b.current=!0,O.key){case ee.Enter:if(b.current=!1,s.comboboxState!==0||k.current)return;if(O.preventDefault(),O.stopPropagation(),s.activeOptionIndex===null){f.closeCombobox();return}f.selectActiveOption(),s.mode===0&&f.closeCombobox();break;case ee.ArrowDown:return b.current=!1,O.preventDefault(),O.stopPropagation(),ce(s.comboboxState,{0:()=>{f.goToOption($.Next)},1:()=>{f.openCombobox()}});case ee.ArrowUp:return b.current=!1,O.preventDefault(),O.stopPropagation(),ce(s.comboboxState,{0:()=>{f.goToOption($.Previous)},1:()=>{f.openCombobox(),w.nextFrame(()=>{s.value||f.goToOption($.Last)})}});case ee.Home:if(O.shiftKey)break;return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.First);case ee.PageUp:return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.First);case ee.End:if(O.shiftKey)break;return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.Last);case ee.PageDown:return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.Last);case ee.Escape:return b.current=!1,s.comboboxState!==0?void 0:(O.preventDefault(),s.optionsRef.current&&!s.optionsPropsRef.current.static&&O.stopPropagation(),s.nullable&&s.mode===0&&s.value===null&&E(),f.closeCombobox());case ee.Tab:if(b.current=!1,s.comboboxState!==0)return;s.mode===0&&f.selectActiveOption(),f.closeCombobox();break}}),W=L(O=>{v?.(O),s.nullable&&s.mode===0&&O.target.value===""&&E(),f.openCombobox()}),P=L(()=>{b.current=!1}),Y=kt(()=>{if(s.labelId)return[s.labelId].join(" ")},[s.labelId]),le=c.useMemo(()=>({open:s.comboboxState===0,disabled:s.disabled}),[s]),te={ref:a,id:p,role:"combobox",type:h,"aria-controls":(n=s.optionsRef.current)==null?void 0:n.id,"aria-expanded":s.comboboxState===0,"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-labelledby":Y,"aria-autocomplete":"list",defaultValue:(u=(i=e.defaultValue)!=null?i:s.defaultValue!==void 0?m?.(s.defaultValue):null)!=null?u:s.defaultValue,disabled:s.disabled,onCompositionStart:A,onCompositionEnd:j,onKeyDown:z,onChange:W,onBlur:P};return Fe({ourProps:te,theirProps:g,slot:le,defaultTag:wa,name:"Combobox.Input"})}let ya="button";function ka(e,t){var n;let r=ft("Combobox.Button"),i=St("Combobox.Button"),u=Re(r.buttonRef,t),o=Xe(),{id:p=`headlessui-combobox-button-${o}`,...v}=e,m=Je(),h=L(d=>{switch(d.key){case ee.ArrowDown:return d.preventDefault(),d.stopPropagation(),r.comboboxState===1&&i.openCombobox(),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case ee.ArrowUp:return d.preventDefault(),d.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),m.nextFrame(()=>{r.value||i.goToOption($.Last)})),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case ee.Escape:return r.comboboxState!==0?void 0:(d.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&d.stopPropagation(),i.closeCombobox(),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})}));default:return}}),g=L(d=>{if(Ur(d.currentTarget))return d.preventDefault();r.comboboxState===0?i.closeCombobox():(d.preventDefault(),i.openCombobox()),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})})}),s=kt(()=>{if(r.labelId)return[r.labelId,p].join(" ")},[r.labelId,p]),f=c.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),a={ref:u,id:p,type:Wr(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":s,disabled:r.disabled,onClick:g,onKeyDown:h};return Fe({ourProps:a,theirProps:v,slot:f,defaultTag:ya,name:"Combobox.Button"})}let Sa="label";function Oa(e,t){let n=Xe(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,u=ft("Combobox.Label"),o=St("Combobox.Label"),p=Re(u.labelRef,t);be(()=>o.registerLabel(r),[r]);let v=L(()=>{var h;return(h=u.inputRef.current)==null?void 0:h.focus({preventScroll:!0})}),m=c.useMemo(()=>({open:u.comboboxState===0,disabled:u.disabled}),[u]);return Fe({ourProps:{ref:p,id:r,onClick:v},theirProps:i,slot:m,defaultTag:Sa,name:"Combobox.Label"})}let Ea="ul",Ta=dt.RenderStrategy|dt.Static;function _a(e,t){let n=Xe(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...u}=e,o=ft("Combobox.Options"),p=Re(o.optionsRef,t),v=Wt(),m=(()=>v!==null?(v&ye.Open)===ye.Open:o.comboboxState===0)();be(()=>{var f;o.optionsPropsRef.current.static=(f=e.static)!=null?f:!1},[o.optionsPropsRef,e.static]),be(()=>{o.optionsPropsRef.current.hold=i},[o.optionsPropsRef,i]),ta({container:o.optionsRef.current,enabled:o.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let h=kt(()=>{var f,a;return(a=o.labelId)!=null?a:(f=o.buttonRef.current)==null?void 0:f.id},[o.labelId,o.buttonRef.current]),g=c.useMemo(()=>({open:o.comboboxState===0}),[o]),s={"aria-labelledby":h,role:"listbox","aria-multiselectable":o.mode===1?!0:void 0,id:r,ref:p};return Fe({ourProps:s,theirProps:u,slot:g,defaultTag:Ea,features:Ta,visible:m,name:"Combobox.Options"})}let Ca="li";function Pa(e,t){var n,r;let i=Xe(),{id:u=`headlessui-combobox-option-${i}`,disabled:o=!1,value:p,...v}=e,m=ft("Combobox.Option"),h=St("Combobox.Option"),g=m.activeOptionIndex!==null?m.options[m.activeOptionIndex].id===u:!1,s=m.isSelected(p),f=c.useRef(null),a=He({disabled:o,value:p,domRef:f,textValue:(r=(n=f.current)==null?void 0:n.textContent)==null?void 0:r.toLowerCase()}),d=Re(t,f),b=L(()=>h.selectOption(u));be(()=>h.registerOption(u,a),[a,u]);let w=c.useRef(!m.__demoMode);be(()=>{if(!m.__demoMode)return;let P=Ge();return P.requestAnimationFrame(()=>{w.current=!0}),P.dispose},[]),be(()=>{if(m.comboboxState!==0||!g||!w.current||m.activationTrigger===0)return;let P=Ge();return P.requestAnimationFrame(()=>{var Y,le;(le=(Y=f.current)==null?void 0:Y.scrollIntoView)==null||le.call(Y,{block:"nearest"})}),P.dispose},[f,g,m.comboboxState,m.activationTrigger,m.activeOptionIndex]);let E=L(P=>{if(o)return P.preventDefault();b(),m.mode===0&&h.closeCombobox(),ua()||requestAnimationFrame(()=>{var Y;return(Y=m.inputRef.current)==null?void 0:Y.focus()})}),y=L(()=>{if(o)return h.goToOption($.Nothing);h.goToOption($.Specific,u)}),k=Qr(),A=L(P=>k.update(P)),j=L(P=>{k.wasMoved(P)&&(o||g||h.goToOption($.Specific,u,0))}),z=L(P=>{k.wasMoved(P)&&(o||g&&(m.optionsPropsRef.current.hold||h.goToOption($.Nothing)))}),W=c.useMemo(()=>({active:g,selected:s,disabled:o}),[g,s,o]);return Fe({ourProps:{id:u,ref:d,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":s,disabled:void 0,onClick:E,onFocus:y,onPointerEnter:A,onMouseEnter:A,onPointerMove:j,onMouseMove:j,onPointerLeave:z,onMouseLeave:z},theirProps:v,slot:W,defaultTag:Ca,name:"Combobox.Option"})}let Ia=Ee(ga),ja=Ee(ka),Fa=Ee(xa),La=Ee(Oa),Aa=Ee(_a),Na=Ee(Pa),Ot=Object.assign(Ia,{Input:Fa,Button:ja,Label:La,Options:Aa,Option:Na});function mn(){let e=c.useRef(!1);return be(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Jr=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Xr(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let u=!1;for(let p of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))p.remove(),u=!0;let o=u?(n=i.innerText)!=null?n:"":r;return Jr.test(o)&&(o=o.replace(Jr,"")),o}function Da(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let u=document.getElementById(i);if(u){let o=u.getAttribute("aria-label");return typeof o=="string"?o.trim():Xr(u).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Xr(e).trim()}function Ma(e){let t=c.useRef(""),n=c.useRef("");return L(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let u=Da(r).trim().toLowerCase();return t.current=i,n.current=u,u})}var Ra=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ra||{}),Wa=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Wa||{}),Va=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Va||{}),Ba=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ba||{});function hn(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Dr(t(e.options.slice()),u=>u.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let Ua={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=hn(e),i=Vr(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var p;return!o.dataRef.current.disabled&&((p=o.dataRef.current.textValue)==null?void 0:p.startsWith(r))}),u=i?e.options.indexOf(i):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:u,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=hn(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=hn(e,r=>{let i=r.findIndex(u=>u.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},gn=c.createContext(null);gn.displayName="ListboxActionsContext";function Et(e){let t=c.useContext(gn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Et),n}return t}let wn=c.createContext(null);wn.displayName="ListboxDataContext";function Tt(e){let t=c.useContext(wn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Tt),n}return t}function Ha(e,t){return ce(t.type,Ua,e,t)}let qa=c.Fragment;function za(e,t){let{value:n,defaultValue:r,form:i,name:u,onChange:o,by:p=(C,F)=>C===F,disabled:v=!1,horizontal:m=!1,multiple:h=!1,...g}=e;const s=m?"horizontal":"vertical";let f=Re(t),[a=h?[]:void 0,d]=Yr(n,o,r),[b,w]=c.useReducer(Ha,{dataRef:c.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),E=c.useRef({static:!1,hold:!1}),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),j=L(typeof p=="string"?(C,F)=>{let B=p;return C?.[B]===F?.[B]}:p),z=c.useCallback(C=>ce(W.mode,{1:()=>a.some(F=>j(F,C)),0:()=>j(a,C)}),[a]),W=c.useMemo(()=>({...b,value:a,disabled:v,mode:h?1:0,orientation:s,compare:j,isSelected:z,optionsPropsRef:E,labelRef:y,buttonRef:k,optionsRef:A}),[a,v,h,b]);be(()=>{b.dataRef.current=W},[W]),Mr([W.buttonRef,W.optionsRef],(C,F)=>{var B;w({type:1}),Nr(F,sn.Loose)||(C.preventDefault(),(B=W.buttonRef.current)==null||B.focus())},W.listboxState===0);let P=c.useMemo(()=>({open:W.listboxState===0,disabled:v,value:a}),[W,v,a]),Y=L(C=>{let F=W.options.find(B=>B.id===C);F&&U(F.dataRef.current.value)}),le=L(()=>{if(W.activeOptionIndex!==null){let{dataRef:C,id:F}=W.options[W.activeOptionIndex];U(C.current.value),w({type:2,focus:$.Specific,id:F})}}),te=L(()=>w({type:0})),O=L(()=>w({type:1})),Q=L((C,F,B)=>C===$.Specific?w({type:2,focus:$.Specific,id:F,trigger:B}):w({type:2,focus:C,trigger:B})),ne=L((C,F)=>(w({type:5,id:C,dataRef:F}),()=>w({type:6,id:C}))),de=L(C=>(w({type:7,id:C}),()=>w({type:7,id:null}))),U=L(C=>ce(W.mode,{0(){return d?.(C)},1(){let F=W.value.slice(),B=F.findIndex(ge=>j(ge,C));return B===-1?F.push(C):F.splice(B,1),d?.(F)}})),ue=L(C=>w({type:3,value:C})),re=L(()=>w({type:4})),X=c.useMemo(()=>({onChange:U,registerOption:ne,registerLabel:de,goToOption:Q,closeListbox:O,openListbox:te,selectActiveOption:le,selectOption:Y,search:ue,clearSearch:re}),[]),ve={ref:f},pe=c.useRef(null),se=Je();return c.useEffect(()=>{pe.current&&r!==void 0&&se.addEventListener(pe.current,"reset",()=>{d?.(r)})},[pe,d]),c.createElement(gn.Provider,{value:X},c.createElement(wn.Provider,{value:W},c.createElement(fn,{value:ce(W.listboxState,{0:ye.Open,1:ye.Closed})},u!=null&&a!=null&&un({[u]:a}).map(([C,F],B)=>c.createElement(zr,{features:cn.Hidden,ref:B===0?ge=>{var Te;pe.current=(Te=ge?.closest("form"))!=null?Te:null}:void 0,...Rt({key:C,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:C,value:F})})),Fe({ourProps:ve,theirProps:g,slot:P,defaultTag:qa,name:"Listbox"}))))}let Ya="button";function Ka(e,t){var n;let r=Xe(),{id:i=`headlessui-listbox-button-${r}`,...u}=e,o=Tt("Listbox.Button"),p=Et("Listbox.Button"),v=Re(o.buttonRef,t),m=Je(),h=L(b=>{switch(b.key){case ee.Space:case ee.Enter:case ee.ArrowDown:b.preventDefault(),p.openListbox(),m.nextFrame(()=>{o.value||p.goToOption($.First)});break;case ee.ArrowUp:b.preventDefault(),p.openListbox(),m.nextFrame(()=>{o.value||p.goToOption($.Last)});break}}),g=L(b=>{switch(b.key){case ee.Space:b.preventDefault();break}}),s=L(b=>{if(Ur(b.currentTarget))return b.preventDefault();o.listboxState===0?(p.closeListbox(),m.nextFrame(()=>{var w;return(w=o.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})})):(b.preventDefault(),p.openListbox())}),f=kt(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),a=c.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),d={ref:v,id:i,type:Wr(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":f,disabled:o.disabled,onKeyDown:h,onKeyUp:g,onClick:s};return Fe({ourProps:d,theirProps:u,slot:a,defaultTag:Ya,name:"Listbox.Button"})}let Ga="label";function Qa(e,t){let n=Xe(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,u=Tt("Listbox.Label"),o=Et("Listbox.Label"),p=Re(u.labelRef,t);be(()=>o.registerLabel(r),[r]);let v=L(()=>{var h;return(h=u.buttonRef.current)==null?void 0:h.focus({preventScroll:!0})}),m=c.useMemo(()=>({open:u.listboxState===0,disabled:u.disabled}),[u]);return Fe({ourProps:{ref:p,id:r,onClick:v},theirProps:i,slot:m,defaultTag:Ga,name:"Listbox.Label"})}let Ja="ul",Xa=dt.RenderStrategy|dt.Static;function Za(e,t){var n;let r=Xe(),{id:i=`headlessui-listbox-options-${r}`,...u}=e,o=Tt("Listbox.Options"),p=Et("Listbox.Options"),v=Re(o.optionsRef,t),m=Je(),h=Je(),g=Wt(),s=(()=>g!==null?(g&ye.Open)===ye.Open:o.listboxState===0)();c.useEffect(()=>{var w;let E=o.optionsRef.current;E&&o.listboxState===0&&E!==((w=At(E))==null?void 0:w.activeElement)&&E.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let f=L(w=>{switch(h.dispose(),w.key){case ee.Space:if(o.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),p.search(w.key);case ee.Enter:if(w.preventDefault(),w.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:E}=o.options[o.activeOptionIndex];p.onChange(E.current.value)}o.mode===0&&(p.closeListbox(),Ge().nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})}));break;case ce(o.orientation,{vertical:ee.ArrowDown,horizontal:ee.ArrowRight}):return w.preventDefault(),w.stopPropagation(),p.goToOption($.Next);case ce(o.orientation,{vertical:ee.ArrowUp,horizontal:ee.ArrowLeft}):return w.preventDefault(),w.stopPropagation(),p.goToOption($.Previous);case ee.Home:case ee.PageUp:return w.preventDefault(),w.stopPropagation(),p.goToOption($.First);case ee.End:case ee.PageDown:return w.preventDefault(),w.stopPropagation(),p.goToOption($.Last);case ee.Escape:return w.preventDefault(),w.stopPropagation(),p.closeListbox(),m.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})});case ee.Tab:w.preventDefault(),w.stopPropagation();break;default:w.key.length===1&&(p.search(w.key),h.setTimeout(()=>p.clearSearch(),350));break}}),a=kt(()=>{var w,E,y;return(y=(w=o.labelRef.current)==null?void 0:w.id)!=null?y:(E=o.buttonRef.current)==null?void 0:E.id},[o.labelRef.current,o.buttonRef.current]),d=c.useMemo(()=>({open:o.listboxState===0}),[o]),b={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":a,"aria-orientation":o.orientation,id:i,onKeyDown:f,role:"listbox",tabIndex:0,ref:v};return Fe({ourProps:b,theirProps:u,slot:d,defaultTag:Ja,features:Xa,visible:s,name:"Listbox.Options"})}let $a="li";function es(e,t){let n=Xe(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:u,...o}=e,p=Tt("Listbox.Option"),v=Et("Listbox.Option"),m=p.activeOptionIndex!==null?p.options[p.activeOptionIndex].id===r:!1,h=p.isSelected(u),g=c.useRef(null),s=Ma(g),f=He({disabled:i,value:u,domRef:g,get textValue(){return s()}}),a=Re(t,g);be(()=>{if(p.listboxState!==0||!m||p.activationTrigger===0)return;let j=Ge();return j.requestAnimationFrame(()=>{var z,W;(W=(z=g.current)==null?void 0:z.scrollIntoView)==null||W.call(z,{block:"nearest"})}),j.dispose},[g,m,p.listboxState,p.activationTrigger,p.activeOptionIndex]),be(()=>v.registerOption(r,f),[f,r]);let d=L(j=>{if(i)return j.preventDefault();v.onChange(u),p.mode===0&&(v.closeListbox(),Ge().nextFrame(()=>{var z;return(z=p.buttonRef.current)==null?void 0:z.focus({preventScroll:!0})}))}),b=L(()=>{if(i)return v.goToOption($.Nothing);v.goToOption($.Specific,r)}),w=Qr(),E=L(j=>w.update(j)),y=L(j=>{w.wasMoved(j)&&(i||m||v.goToOption($.Specific,r,0))}),k=L(j=>{w.wasMoved(j)&&(i||m&&v.goToOption($.Nothing))}),A=c.useMemo(()=>({active:m,selected:h,disabled:i}),[m,h,i]);return Fe({ourProps:{id:r,ref:a,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:d,onFocus:b,onPointerEnter:E,onMouseEnter:E,onPointerMove:y,onMouseMove:y,onPointerLeave:k,onMouseLeave:k},theirProps:o,slot:A,defaultTag:$a,name:"Listbox.Option"})}let ts=Ee(za),ns=Ee(Ka),rs=Ee(Qa),is=Ee(Za),os=Ee(es),Vt=Object.assign(ts,{Button:ns,Label:rs,Options:is,Option:os});function as(e=0){let[t,n]=c.useState(e),r=mn(),i=c.useCallback(v=>{r.current&&n(m=>m|v)},[t,r]),u=c.useCallback(v=>!!(t&v),[t]),o=c.useCallback(v=>{r.current&&n(m=>m&~v)},[n,r]),p=c.useCallback(v=>{r.current&&n(m=>m^v)},[n]);return{flags:t,addFlag:i,hasFlag:u,removeFlag:o,toggleFlag:p}}function ss(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function xn(e,...t){e&&t.length>0&&e.classList.add(...t)}function yn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ls(e,t){let n=Ge();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[u,o]=[r,i].map(v=>{let[m=0]=v.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,g)=>g-h);return m}),p=u+o;if(p!==0){n.group(m=>{m.setTimeout(()=>{t(),m.dispose()},p),m.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&m.dispose()})});let v=n.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),v())})}else t();return n.add(()=>t()),n.dispose}function us(e,t,n,r){let i=n?"enter":"leave",u=Ge(),o=r!==void 0?ss(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let p=ce(i,{enter:()=>t.enter,leave:()=>t.leave}),v=ce(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=ce(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return yn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),xn(e,...t.base,...p,...m),u.nextFrame(()=>{yn(e,...t.base,...p,...m),xn(e,...t.base,...p,...v),ls(e,()=>(yn(e,...t.base,...p),xn(e,...t.base,...t.entered),o()))}),u.dispose}function cs({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:u}){let o=mn(),p=Je(),v=He(n);be(()=>{e&&(v.current="enter")},[e]),be(()=>{let m=Ge();p.add(m.dispose);let h=t.current;if(h&&v.current!=="idle"&&o.current)return m.dispose(),i.current(v.current),m.add(us(h,r.current,v.current==="enter",()=>{m.dispose(),u.current(v.current)})),m.dispose},[n])}function ot(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Bt=c.createContext(null);Bt.displayName="TransitionContext";var ds=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ds||{});function fs(){let e=c.useContext(Bt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ps(){let e=c.useContext(Ut);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ut=c.createContext(null);Ut.displayName="NestingContext";function Ht(e){return"children"in e?Ht(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Zr(e,t){let n=He(e),r=c.useRef([]),i=mn(),u=Je(),o=L((f,a=it.Hidden)=>{let d=r.current.findIndex(({el:b})=>b===f);d!==-1&&(ce(a,{[it.Unmount](){r.current.splice(d,1)},[it.Hidden](){r.current[d].state="hidden"}}),u.microTask(()=>{var b;!Ht(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),p=L(f=>{let a=r.current.find(({el:d})=>d===f);return a?a.state!=="visible"&&(a.state="visible"):r.current.push({el:f,state:"visible"}),()=>o(f,it.Unmount)}),v=c.useRef([]),m=c.useRef(Promise.resolve()),h=c.useRef({enter:[],leave:[],idle:[]}),g=L((f,a,d)=>{v.current.splice(0),t&&(t.chains.current[a]=t.chains.current[a].filter(([b])=>b!==f)),t?.chains.current[a].push([f,new Promise(b=>{v.current.push(b)})]),t?.chains.current[a].push([f,new Promise(b=>{Promise.all(h.current[a].map(([w,E])=>E)).then(()=>b())})]),a==="enter"?m.current=m.current.then(()=>t?.wait.current).then(()=>d(a)):d(a)}),s=L((f,a,d)=>{Promise.all(h.current[a].splice(0).map(([b,w])=>w)).then(()=>{var b;(b=v.current.shift())==null||b()}).then(()=>d(a))});return c.useMemo(()=>({children:r,register:p,unregister:o,onStart:g,onStop:s,wait:m,chains:h}),[p,o,r,g,s,h,m])}function bs(){}let vs=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $r(e){var t;let n={};for(let r of vs)n[r]=(t=e[r])!=null?t:bs;return n}function ms(e){let t=c.useRef($r(e));return c.useEffect(()=>{t.current=$r(e)},[e]),t}let hs="div",ei=dt.RenderStrategy;function gs(e,t){var n,r;let{beforeEnter:i,afterEnter:u,beforeLeave:o,afterLeave:p,enter:v,enterFrom:m,enterTo:h,entered:g,leave:s,leaveFrom:f,leaveTo:a,...d}=e,b=c.useRef(null),w=Re(b,t),E=(n=d.unmount)==null||n?it.Unmount:it.Hidden,{show:y,appear:k,initial:A}=fs(),[j,z]=c.useState(y?"visible":"hidden"),W=ps(),{register:P,unregister:Y}=W;c.useEffect(()=>P(b),[P,b]),c.useEffect(()=>{if(E===it.Hidden&&b.current){if(y&&j!=="visible"){z("visible");return}return ce(j,{hidden:()=>Y(b),visible:()=>P(b)})}},[j,b,P,Y,y,E]);let le=He({base:ot(d.className),enter:ot(v),enterFrom:ot(m),enterTo:ot(h),entered:ot(g),leave:ot(s),leaveFrom:ot(f),leaveTo:ot(a)}),te=ms({beforeEnter:i,afterEnter:u,beforeLeave:o,afterLeave:p}),O=an();c.useEffect(()=>{if(O&&j==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,j,O]);let Q=A&&!k,ne=k&&y&&A,de=(()=>!O||Q?"idle":y?"enter":"leave")(),U=as(0),ue=L(se=>ce(se,{enter:()=>{U.addFlag(ye.Opening),te.current.beforeEnter()},leave:()=>{U.addFlag(ye.Closing),te.current.beforeLeave()},idle:()=>{}})),re=L(se=>ce(se,{enter:()=>{U.removeFlag(ye.Opening),te.current.afterEnter()},leave:()=>{U.removeFlag(ye.Closing),te.current.afterLeave()},idle:()=>{}})),X=Zr(()=>{z("hidden"),Y(b)},W);cs({immediate:ne,container:b,classes:le,direction:de,onStart:He(se=>{X.onStart(b,se,ue)}),onStop:He(se=>{X.onStop(b,se,re),se==="leave"&&!Ht(X)&&(z("hidden"),Y(b))})});let ve=d,pe={ref:w};return ne?ve={...ve,className:Dt(d.className,...le.current.enter,...le.current.enterFrom)}:(ve.className=Dt(d.className,(r=b.current)==null?void 0:r.className),ve.className===""&&delete ve.className),c.createElement(Ut.Provider,{value:X},c.createElement(fn,{value:ce(j,{visible:ye.Open,hidden:ye.Closed})|U.flags},Fe({ourProps:pe,theirProps:ve,defaultTag:hs,features:ei,visible:j==="visible",name:"Transition.Child"})))}function ws(e,t){let{show:n,appear:r=!1,unmount:i=!0,...u}=e,o=c.useRef(null),p=Re(o,t);an();let v=Wt();if(n===void 0&&v!==null&&(n=(v&ye.Open)===ye.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,h]=c.useState(n?"visible":"hidden"),g=Zr(()=>{h("hidden")}),[s,f]=c.useState(!0),a=c.useRef([n]);be(()=>{s!==!1&&a.current[a.current.length-1]!==n&&(a.current.push(n),f(!1))},[a,n]);let d=c.useMemo(()=>({show:n,appear:r,initial:s}),[n,r,s]);c.useEffect(()=>{if(n)h("visible");else if(!Ht(g))h("hidden");else{let y=o.current;if(!y)return;let k=y.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&h("hidden")}},[n,g]);let b={unmount:i},w=L(()=>{var y;s&&f(!1),(y=e.beforeEnter)==null||y.call(e)}),E=L(()=>{var y;s&&f(!1),(y=e.beforeLeave)==null||y.call(e)});return c.createElement(Ut.Provider,{value:g},c.createElement(Bt.Provider,{value:d},Fe({ourProps:{...b,as:c.Fragment,children:c.createElement(ti,{ref:p,...b,...u,beforeEnter:w,beforeLeave:E})},theirProps:{},defaultTag:c.Fragment,features:ei,visible:m==="visible",name:"Transition"})))}function xs(e,t){let n=c.useContext(Bt)!==null,r=Wt()!==null;return c.createElement(c.Fragment,null,!n&&r?c.createElement(kn,{ref:t,...e}):c.createElement(ti,{ref:t,...e}))}let kn=Ee(ws),ti=Ee(gs),ys=Ee(xs),ni=Object.assign(kn,{Child:ys,Root:kn});function ks({title:e,titleId:t,...n},r){return Qe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?Qe.createElement("title",{id:t},e):null,Qe.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const ri=Qe.forwardRef(ks),Ss=({children:e,selected:t,onSelect:n,themeColor:r})=>{const[i,u]=c.useState(!1),[o,p]=c.useState(!1),v=c.useRef(null),m=c.useRef(null),[h,g]=c.useState({left:0,top:0}),s=c.useRef(0),f=c.useRef(0);let a="#333333";const d=A=>{n(A)},b=()=>{u(!0)},w=()=>{u(!1)},E=()=>{s.current=window.innerHeight,f.current=document.body.scrollHeight,p(!0)};c.useEffect(()=>(E(),window.addEventListener("resize",E),()=>{window.addEventListener("resize",E)}),[]);const y=()=>f.current-(s.current+window.scrollY),k=()=>{if(v.current){const A=v.current.getBoundingClientRect();setTimeout(()=>{const j=m?.current?.getBoundingClientRect(),z=y(),W=s.current-A.bottom;let P;if(j){const Y=A.height,le=A.top,te=j.height,O=te>le+window.scrollY;le<te&&(O||O&&W<te||z>te||W>te)||le>te&&W>te?P=A.y+Y:P=A.y-te,g({left:A.left,top:P??A.top})}},0)}};if(c.useEffect(()=>(window.addEventListener("scroll",k),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k),window.removeEventListener("resize",k)}),[]),r){r=Ue.convert3HexTo6(r);const A=tt(r);(A==="dark"||A==="light")&&(a=r==="#ffffff"?"#c8c8c8":r)}return S.jsx(Vt,{value:t,onChange:d,children:({open:A})=>S.jsxs("div",{className:"tw-relative",children:[S.jsx("div",{className:"tw-relative",ref:v,children:S.jsxs(Vt.Button,{"data-testid":"select-options",onFocus:b,onBlur:w,onClick:k,onKeyDown:j=>{(j.key===" "||j.code==="Space"||j.code==="Enter")&&k()},style:{borderBottomColor:r&&(i||A)?a:""},className:"tw-border-solid tw-border-x-0 tw-relative tw-h-10 tw-w-full tw-cursor-pointer tw-border-b tw-border-t tw-border-t-transparent tw-bg-white tw-py-1.5 tw-pl-[10px] tw-pr-8 tw-text-left tw-text-base tw-text-[#333333] focus:tw-border-b-2 focus:tw-border-t-2 focus:tw-border-b-[#006bb1] focus:tw-py-[5px] focus:tw-outline-none focus:tw-ring-0"+(A?" tw-border-b-2 tw-border-t-2 tw-border-b-[#006bb1]":" tw-border-b-[#333333]"),children:[t&&S.jsxs("span",{className:"tw-flex tw-items-center",children:[t.avatar&&S.jsx("img",{src:t.avatar,alt:"",className:"tw-mr-2 tw-h-5 tw-w-5 tw-flex-shrink-0"}),S.jsx("span",{className:"tw-block tw-truncate",children:t.label})]}),S.jsx("span",{className:"tw-pointer-events-none tw-absolute tw-inset-y-0 tw-right-0 tw-flex tw-items-center tw-pr-2",children:S.jsx(ri,{className:"tw-h-5 tw-w-5 tw-text-[#333333]","aria-hidden":"true"})})]})}),o?Kt.createPortal(S.jsx(S.Fragment,{children:A&&S.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsx("div",{ref:m,className:"tw-absolute",style:{opacity:h.left?1:0,width:v.current?v.current.clientWidth:"auto",left:h.left,top:h.top},children:e})})}),document.body):null]})})},Os=({children:e,setQuery:t})=>S.jsx(ni,{as:c.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",afterLeave:()=>t(""),children:S.jsx(Vt.Options,{className:"tw-max-h-[200px] tw-w-full tw-overflow-auto tw-bg-white tw-pb-[10px] tw-pt-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]",children:e})}),ii=c.forwardRef((e,t)=>S.jsx(Vt.Option,{ref:t,className:e.className,value:e.value,disabled:e.disable,children:e.children}));ii.displayName="SelectOption";const Es=({children:e,selected:t,onSelect:n,setQuery:r,disable:i,clearSearch:u=!1,themeColor:o})=>{const p=c.useRef(null),v=c.useRef(null),[m,h]=c.useState(!1),[g,s]=c.useState(!1),f=c.useRef(null),a=c.useRef(null),[d,b]=c.useState({left:0,top:0}),w=c.useRef(0),E=c.useRef(0);let y={};c.useEffect(()=>{p.current&&t&&(p.current.value=t.label||"")},[t]);const k=()=>{w.current=window.innerHeight,E.current=document.body.scrollHeight,s(!0)};c.useEffect(()=>(k(),window.addEventListener("resize",k),()=>{window.addEventListener("resize",k)}),[]);const A=()=>E.current-(w.current+window.scrollY),j=()=>{if(f.current){const O=f.current.getBoundingClientRect();setTimeout(()=>{const Q=a?.current?.getBoundingClientRect(),ne=A(),de=w.current-O.bottom;let U;if(Q){const ue=O.height,re=O.top,X=Q.height,ve=X>re+window.scrollY;re<X&&(ve||ve&&de<X||ne>X||de>X)||re>X&&de>X?U=O.y+ue:U=O.y-X,b({left:O.left,top:U??O.top})}},0)}};c.useEffect(()=>(window.addEventListener("scroll",j),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j),window.removeEventListener("resize",j)}),[]);const z=O=>{n(O),Y()},W=()=>{j(),h(!0),p.current&&t&&(p.current.value=t.label||""),p.current&&v.current&&(u&&(p.current.value="",r("")),v.current.click())},P=O=>(Y(),O?.label),Y=()=>{const O=p.current;O&&O.setSelectionRange(O.value.length,O.value.length)},le=()=>{h(!0)},te=()=>{h(!1)};if(o){const O=tt(o);o=Ue.convert3HexTo6(o),(O==="dark"||O==="light")&&(y={borderBottomColor:o==="#ffffff"?"#c8c8c8":m?o:"#333333"})}return S.jsx(Ot,{value:t,onChange:z,disabled:i,children:({open:O})=>S.jsxs("div",{className:"tw-relative ",children:[S.jsxs("div",{ref:f,className:`tw-relative tw-h-10 tw-w-full tw-cursor-default tw-overflow-hidden tw-bg-white tw-text-left focus:tw-outline-none focus-visible:tw-ring-1 focus-visible:tw-ring-[#DFDFDF] focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-[#DFDFDF] ${i?"tw-text-[#A7A7A7]":"tw-text-[#333333]"}`,children:[S.jsx(Ot.Input,{ref:p,"data-testid":"select-input",className:"tw-h-full tw-w-full tw-border-0 tw-border-b-[1px] tw-border-b-[#333333] tw-pb-2 tw-pl-[10px] tw-pr-10 tw-pt-2 tw-text-base tw-leading-5 tw-placeholder-[#666666] tw-shadow-none focus:tw-border-b-2 focus:tw-border-b-[#006bb1] focus:tw-pb-[7px] focus:tw-outline-none focus:tw-ring-[0px] focus-visible:tw-ring-[0px]",displayValue:P,onChange:Q=>{r(Q.target.value),j()},onClick:W,onFocus:le,onBlur:te,onKeyDown:Q=>{(Q.key===" "||Q.code==="Space")&&j()},style:{...y},placeholder:"Select your option",autoComplete:"off"}),S.jsx(Ot.Button,{className:"tw-absolute tw-inset-y-0 tw-right-0 tw-flex tw-items-center tw-pr-2","data-testid":"select-button",ref:v,onClick:j,children:S.jsx(ri,{className:`tw-h-5 tw-w-5 ${i?"tw-text-[#A7A7A7]":"tw-text-[#333333]"}`,"aria-hidden":"true"})})]}),g?Kt.createPortal(S.jsx(S.Fragment,{children:O&&S.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsx("div",{ref:a,className:"tw-absolute",style:{opacity:d.left?1:0,width:f.current?f.current.clientWidth:"auto",left:d.left,top:d.top},children:e})})}),document.body):null]})})},Ts=({children:e,setQuery:t})=>S.jsx(ni,{as:c.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",afterLeave:()=>t(""),children:S.jsx(Ot.Options,{className:"tw-max-h-[210px] tw-w-full tw-overflow-auto tw-bg-white tw-pb-[10px] tw-pt-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]",children:e})}),oi=c.forwardRef((e,t)=>S.jsx(Ot.Option,{ref:t,className:e.className,value:e.value,disabled:e.disable,children:e.children}));oi.displayName="AutoCompleteOption";const ai={textInputWrapper:"_textInputWrapper_gym4n_1",textInput:"_textInput_gym4n_1"},_s=c.memo(c.forwardRef(({themeColor:e="",style:t={},className:n="",onFocus:r,onBlur:i,...u},o)=>{const[p,v]=c.useState(!1);let m={};const h=[ai.textInput,n].filter(Boolean).join(" ");e=Ue.convert3HexTo6(e);const g=()=>{v(!0)},s=()=>{v(!1)};return m={borderBottomColor:p?e!=="#ffffff"?e:"#c8c8c8":""},S.jsx("div",{className:ai.textInputWrapper,children:S.jsx("input",{type:"text","data-testid":"textbox-input",ref:o,className:h,onFocus:g,onBlur:s,style:{...m,...t},...u})})}));fe.AutoComplete=Es,fe.AutoCompleteOption=oi,fe.AutoCompleteOptions=Ts,fe.Button=Qt,fe.Checkbox=Jt,fe.ColorsService=Ue,fe.MultiLineInput=Wo,fe.MultiSelect=Vo,fe.QuickMultiSelect=Bo,fe.QuickSelect=Uo,fe.Scrollbar=Fr,fe.Select=Ss,fe.SelectOption=ii,fe.SelectOptions=Os,fe.SingleLineInput=_s,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
|
32
|
+
`));let g=m.props,s=typeof g?.className=="function"?(...a)=>Dt(g?.className(...a),p.className):Dt(g?.className,p.className),f=s?{className:s}:{};return c.cloneElement(m,Object.assign({},Br(m.props,Rt(ln(p,["ref"]))),h,v,ra(m.ref,v.ref),f))}return c.createElement(i,Object.assign({},ln(p,["ref"]),i!==c.Fragment&&v,i!==c.Fragment&&h),m)}function ra(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Br(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...u){let o=n[r];for(let p of o){if((i instanceof Event||i?.nativeEvent instanceof Event)&&i.defaultPrevented)return;p(i,...u)}}});return t}function Te(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Rt(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ln(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ur(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&ia(n)?!1:r}function ia(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function un(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))qr(n,Hr(t,r),i);return n}function Hr(e,t){return e?e+"["+t+"]":t}function qr(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())qr(e,Hr(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):un(n,t,e)}let oa="div";var cn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(cn||{});function aa(e,t){let{features:n=1,...r}=e,i={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Fe({ourProps:i,theirProps:r,slot:{},defaultTag:oa,name:"Hidden"})}let zr=Te(aa),dn=c.createContext(null);dn.displayName="OpenClosedContext";var ye=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ye||{});function Wt(){return c.useContext(dn)}function fn({value:e,children:t}){return c.createElement(dn.Provider,{value:e},t)}var ee=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ee||{});function Yr(e,t,n){let[r,i]=c.useState(n),u=e!==void 0,o=c.useRef(u),p=c.useRef(!1),v=c.useRef(!1);return u&&!o.current&&!p.current?(p.current=!0,o.current=u,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!u&&o.current&&!v.current&&(v.current=!0,o.current=u,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[u?e:r,L(m=>(u||i(m),t?.(m)))]}function Kr(e,t){let n=c.useRef([]),r=L(e);c.useEffect(()=>{let i=[...n.current];for(let[u,o]of t.entries())if(n.current[u]!==o){let p=r(t,i);return n.current=t,p}},[r,...t])}function Gr(e){return[e.screenX,e.screenY]}function Qr(){let e=c.useRef([-1,-1]);return{wasMoved(t){let n=Gr(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Gr(t)}}}function sa(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function la(){return/Android/gi.test(window.navigator.userAgent)}function ua(){return sa()||la()}function ca(...e){return c.useMemo(()=>At(...e),[...e])}var da=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(da||{}),fa=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(fa||{}),pa=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(pa||{}),ba=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(ba||{});function pn(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Dr(t(e.options.slice()),u=>u.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let va={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;let n=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:r}=e.dataRef.current,i=e.options.findIndex(u=>r(u.dataRef.current.value));i!==-1&&(n=i)}return{...e,comboboxState:0,activeOptionIndex:n}},2(e,t){var n,r,i,u;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;let o=pn(e);if(o.activeOptionIndex===null){let v=o.options.findIndex(m=>!m.dataRef.current.disabled);v!==-1&&(o.activeOptionIndex=v)}let p=Vr(t,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:v=>v.id,resolveDisabled:v=>v.dataRef.current.disabled});return{...e,...o,activeOptionIndex:p,activationTrigger:(u=t.trigger)!=null?u:1}},3:(e,t)=>{var n,r;let i={id:t.id,dataRef:t.dataRef},u=pn(e,p=>[...p,i]);e.activeOptionIndex===null&&(n=e.dataRef.current)!=null&&n.isSelected(t.dataRef.current.value)&&(u.activeOptionIndex=u.options.indexOf(i));let o={...e,...u,activationTrigger:1};return(r=e.dataRef.current)!=null&&r.__demoMode&&e.dataRef.current.value===void 0&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=pn(e,r=>{let i=r.findIndex(u=>u.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},bn=c.createContext(null);bn.displayName="ComboboxActionsContext";function St(e){let t=c.useContext(bn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,St),n}return t}let vn=c.createContext(null);vn.displayName="ComboboxDataContext";function ft(e){let t=c.useContext(vn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ft),n}return t}function ma(e,t){return ce(t.type,va,e,t)}let ha=c.Fragment;function ga(e,t){let{value:n,defaultValue:r,onChange:i,form:u,name:o,by:p=(C,F)=>C===F,disabled:v=!1,__demoMode:m=!1,nullable:h=!1,multiple:g=!1,...s}=e,[f=g?[]:void 0,a]=Yr(n,i,r),[d,b]=c.useReducer(ma,{dataRef:c.createRef(),comboboxState:m?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),w=c.useRef(!1),E=c.useRef({static:!1,hold:!1}),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),j=c.useRef(null),z=L(typeof p=="string"?(C,F)=>{let B=p;return C?.[B]===F?.[B]}:p),W=c.useCallback(C=>ce(P.mode,{1:()=>f.some(F=>z(F,C)),0:()=>z(f,C)}),[f]),P=c.useMemo(()=>({...d,optionsPropsRef:E,labelRef:y,inputRef:k,buttonRef:A,optionsRef:j,value:f,defaultValue:r,disabled:v,mode:g?1:0,get activeOptionIndex(){if(w.current&&d.activeOptionIndex===null&&d.options.length>0){let C=d.options.findIndex(F=>!F.dataRef.current.disabled);if(C!==-1)return C}return d.activeOptionIndex},compare:z,isSelected:W,nullable:h,__demoMode:m}),[f,r,v,g,h,m,d]),Y=c.useRef(P.activeOptionIndex!==null?P.options[P.activeOptionIndex]:null);c.useEffect(()=>{let C=P.activeOptionIndex!==null?P.options[P.activeOptionIndex]:null;Y.current!==C&&(Y.current=C)}),be(()=>{d.dataRef.current=P},[P]),Mr([P.buttonRef,P.inputRef,P.optionsRef],()=>X.closeCombobox(),P.comboboxState===0);let le=c.useMemo(()=>({open:P.comboboxState===0,disabled:v,activeIndex:P.activeOptionIndex,activeOption:P.activeOptionIndex===null?null:P.options[P.activeOptionIndex].dataRef.current.value,value:f}),[P,v,f]),te=L(C=>{let F=P.options.find(B=>B.id===C);F&&re(F.dataRef.current.value)}),O=L(()=>{if(P.activeOptionIndex!==null){let{dataRef:C,id:F}=P.options[P.activeOptionIndex];re(C.current.value),X.goToOption($.Specific,F)}}),Q=L(()=>{b({type:0}),w.current=!0}),ne=L(()=>{b({type:1}),w.current=!1}),de=L((C,F,B)=>(w.current=!1,C===$.Specific?b({type:2,focus:$.Specific,id:F,trigger:B}):b({type:2,focus:C,trigger:B}))),U=L((C,F)=>(b({type:3,id:C,dataRef:F}),()=>{var B;((B=Y.current)==null?void 0:B.id)===C&&(w.current=!0),b({type:4,id:C})})),ue=L(C=>(b({type:5,id:C}),()=>b({type:5,id:null}))),re=L(C=>ce(P.mode,{0(){return a?.(C)},1(){let F=P.value.slice(),B=F.findIndex(ge=>z(ge,C));return B===-1?F.push(C):F.splice(B,1),a?.(F)}})),X=c.useMemo(()=>({onChange:re,registerOption:U,registerLabel:ue,goToOption:de,closeCombobox:ne,openCombobox:Q,selectActiveOption:O,selectOption:te}),[]),ve=t===null?{}:{ref:t},pe=c.useRef(null),se=Je();return c.useEffect(()=>{pe.current&&r!==void 0&&se.addEventListener(pe.current,"reset",()=>{a?.(r)})},[pe,a]),c.createElement(bn.Provider,{value:X},c.createElement(vn.Provider,{value:P},c.createElement(fn,{value:ce(P.comboboxState,{0:ye.Open,1:ye.Closed})},o!=null&&f!=null&&un({[o]:f}).map(([C,F],B)=>c.createElement(zr,{features:cn.Hidden,ref:B===0?ge=>{var _e;pe.current=(_e=ge?.closest("form"))!=null?_e:null}:void 0,...Rt({key:C,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:u,name:C,value:F})})),Fe({ourProps:ve,theirProps:s,slot:le,defaultTag:ha,name:"Combobox"}))))}let wa="input";function xa(e,t){var n,r,i,u;let o=Xe(),{id:p=`headlessui-combobox-input-${o}`,onChange:v,displayValue:m,type:h="text",...g}=e,s=ft("Combobox.Input"),f=St("Combobox.Input"),a=Re(s.inputRef,t),d=ca(s.inputRef),b=c.useRef(!1),w=Je(),E=L(()=>{f.onChange(null),s.optionsRef.current&&(s.optionsRef.current.scrollTop=0),f.goToOption($.Nothing)}),y=function(){var O;return typeof m=="function"&&s.value!==void 0?(O=m(s.value))!=null?O:"":typeof s.value=="string"?s.value:""}();Kr(([O,Q],[ne,de])=>{if(b.current)return;let U=s.inputRef.current;U&&((de===0&&Q===1||O!==ne)&&(U.value=O),requestAnimationFrame(()=>{if(b.current||!U||d?.activeElement!==U)return;let{selectionStart:ue,selectionEnd:re}=U;Math.abs((re??0)-(ue??0))===0&&ue===0&&U.setSelectionRange(U.value.length,U.value.length)}))},[y,s.comboboxState,d]),Kr(([O],[Q])=>{if(O===0&&Q===1){if(b.current)return;let ne=s.inputRef.current;if(!ne)return;let de=ne.value,{selectionStart:U,selectionEnd:ue,selectionDirection:re}=ne;ne.value="",ne.value=de,re!==null?ne.setSelectionRange(U,ue,re):ne.setSelectionRange(U,ue)}},[s.comboboxState]);let k=c.useRef(!1),A=L(()=>{k.current=!0}),j=L(()=>{w.nextFrame(()=>{k.current=!1})}),z=L(O=>{switch(b.current=!0,O.key){case ee.Enter:if(b.current=!1,s.comboboxState!==0||k.current)return;if(O.preventDefault(),O.stopPropagation(),s.activeOptionIndex===null){f.closeCombobox();return}f.selectActiveOption(),s.mode===0&&f.closeCombobox();break;case ee.ArrowDown:return b.current=!1,O.preventDefault(),O.stopPropagation(),ce(s.comboboxState,{0:()=>{f.goToOption($.Next)},1:()=>{f.openCombobox()}});case ee.ArrowUp:return b.current=!1,O.preventDefault(),O.stopPropagation(),ce(s.comboboxState,{0:()=>{f.goToOption($.Previous)},1:()=>{f.openCombobox(),w.nextFrame(()=>{s.value||f.goToOption($.Last)})}});case ee.Home:if(O.shiftKey)break;return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.First);case ee.PageUp:return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.First);case ee.End:if(O.shiftKey)break;return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.Last);case ee.PageDown:return b.current=!1,O.preventDefault(),O.stopPropagation(),f.goToOption($.Last);case ee.Escape:return b.current=!1,s.comboboxState!==0?void 0:(O.preventDefault(),s.optionsRef.current&&!s.optionsPropsRef.current.static&&O.stopPropagation(),s.nullable&&s.mode===0&&s.value===null&&E(),f.closeCombobox());case ee.Tab:if(b.current=!1,s.comboboxState!==0)return;s.mode===0&&f.selectActiveOption(),f.closeCombobox();break}}),W=L(O=>{v?.(O),s.nullable&&s.mode===0&&O.target.value===""&&E(),f.openCombobox()}),P=L(()=>{b.current=!1}),Y=kt(()=>{if(s.labelId)return[s.labelId].join(" ")},[s.labelId]),le=c.useMemo(()=>({open:s.comboboxState===0,disabled:s.disabled}),[s]),te={ref:a,id:p,role:"combobox",type:h,"aria-controls":(n=s.optionsRef.current)==null?void 0:n.id,"aria-expanded":s.comboboxState===0,"aria-activedescendant":s.activeOptionIndex===null||(r=s.options[s.activeOptionIndex])==null?void 0:r.id,"aria-labelledby":Y,"aria-autocomplete":"list",defaultValue:(u=(i=e.defaultValue)!=null?i:s.defaultValue!==void 0?m?.(s.defaultValue):null)!=null?u:s.defaultValue,disabled:s.disabled,onCompositionStart:A,onCompositionEnd:j,onKeyDown:z,onChange:W,onBlur:P};return Fe({ourProps:te,theirProps:g,slot:le,defaultTag:wa,name:"Combobox.Input"})}let ya="button";function ka(e,t){var n;let r=ft("Combobox.Button"),i=St("Combobox.Button"),u=Re(r.buttonRef,t),o=Xe(),{id:p=`headlessui-combobox-button-${o}`,...v}=e,m=Je(),h=L(d=>{switch(d.key){case ee.ArrowDown:return d.preventDefault(),d.stopPropagation(),r.comboboxState===1&&i.openCombobox(),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case ee.ArrowUp:return d.preventDefault(),d.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),m.nextFrame(()=>{r.value||i.goToOption($.Last)})),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})});case ee.Escape:return r.comboboxState!==0?void 0:(d.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&d.stopPropagation(),i.closeCombobox(),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})}));default:return}}),g=L(d=>{if(Ur(d.currentTarget))return d.preventDefault();r.comboboxState===0?i.closeCombobox():(d.preventDefault(),i.openCombobox()),m.nextFrame(()=>{var b;return(b=r.inputRef.current)==null?void 0:b.focus({preventScroll:!0})})}),s=kt(()=>{if(r.labelId)return[r.labelId,p].join(" ")},[r.labelId,p]),f=c.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),a={ref:u,id:p,type:Wr(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":s,disabled:r.disabled,onClick:g,onKeyDown:h};return Fe({ourProps:a,theirProps:v,slot:f,defaultTag:ya,name:"Combobox.Button"})}let Sa="label";function Oa(e,t){let n=Xe(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,u=ft("Combobox.Label"),o=St("Combobox.Label"),p=Re(u.labelRef,t);be(()=>o.registerLabel(r),[r]);let v=L(()=>{var h;return(h=u.inputRef.current)==null?void 0:h.focus({preventScroll:!0})}),m=c.useMemo(()=>({open:u.comboboxState===0,disabled:u.disabled}),[u]);return Fe({ourProps:{ref:p,id:r,onClick:v},theirProps:i,slot:m,defaultTag:Sa,name:"Combobox.Label"})}let Ea="ul",Ta=dt.RenderStrategy|dt.Static;function _a(e,t){let n=Xe(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...u}=e,o=ft("Combobox.Options"),p=Re(o.optionsRef,t),v=Wt(),m=(()=>v!==null?(v&ye.Open)===ye.Open:o.comboboxState===0)();be(()=>{var f;o.optionsPropsRef.current.static=(f=e.static)!=null?f:!1},[o.optionsPropsRef,e.static]),be(()=>{o.optionsPropsRef.current.hold=i},[o.optionsPropsRef,i]),ta({container:o.optionsRef.current,enabled:o.comboboxState===0,accept(f){return f.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});let h=kt(()=>{var f,a;return(a=o.labelId)!=null?a:(f=o.buttonRef.current)==null?void 0:f.id},[o.labelId,o.buttonRef.current]),g=c.useMemo(()=>({open:o.comboboxState===0}),[o]),s={"aria-labelledby":h,role:"listbox","aria-multiselectable":o.mode===1?!0:void 0,id:r,ref:p};return Fe({ourProps:s,theirProps:u,slot:g,defaultTag:Ea,features:Ta,visible:m,name:"Combobox.Options"})}let Ca="li";function Pa(e,t){var n,r;let i=Xe(),{id:u=`headlessui-combobox-option-${i}`,disabled:o=!1,value:p,...v}=e,m=ft("Combobox.Option"),h=St("Combobox.Option"),g=m.activeOptionIndex!==null?m.options[m.activeOptionIndex].id===u:!1,s=m.isSelected(p),f=c.useRef(null),a=He({disabled:o,value:p,domRef:f,textValue:(r=(n=f.current)==null?void 0:n.textContent)==null?void 0:r.toLowerCase()}),d=Re(t,f),b=L(()=>h.selectOption(u));be(()=>h.registerOption(u,a),[a,u]);let w=c.useRef(!m.__demoMode);be(()=>{if(!m.__demoMode)return;let P=Ge();return P.requestAnimationFrame(()=>{w.current=!0}),P.dispose},[]),be(()=>{if(m.comboboxState!==0||!g||!w.current||m.activationTrigger===0)return;let P=Ge();return P.requestAnimationFrame(()=>{var Y,le;(le=(Y=f.current)==null?void 0:Y.scrollIntoView)==null||le.call(Y,{block:"nearest"})}),P.dispose},[f,g,m.comboboxState,m.activationTrigger,m.activeOptionIndex]);let E=L(P=>{if(o)return P.preventDefault();b(),m.mode===0&&h.closeCombobox(),ua()||requestAnimationFrame(()=>{var Y;return(Y=m.inputRef.current)==null?void 0:Y.focus()})}),y=L(()=>{if(o)return h.goToOption($.Nothing);h.goToOption($.Specific,u)}),k=Qr(),A=L(P=>k.update(P)),j=L(P=>{k.wasMoved(P)&&(o||g||h.goToOption($.Specific,u,0))}),z=L(P=>{k.wasMoved(P)&&(o||g&&(m.optionsPropsRef.current.hold||h.goToOption($.Nothing)))}),W=c.useMemo(()=>({active:g,selected:s,disabled:o}),[g,s,o]);return Fe({ourProps:{id:u,ref:d,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":s,disabled:void 0,onClick:E,onFocus:y,onPointerEnter:A,onMouseEnter:A,onPointerMove:j,onMouseMove:j,onPointerLeave:z,onMouseLeave:z},theirProps:v,slot:W,defaultTag:Ca,name:"Combobox.Option"})}let Ia=Te(ga),ja=Te(ka),Fa=Te(xa),La=Te(Oa),Aa=Te(_a),Na=Te(Pa),Ot=Object.assign(Ia,{Input:Fa,Button:ja,Label:La,Options:Aa,Option:Na});function mn(){let e=c.useRef(!1);return be(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let Jr=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Xr(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let u=!1;for(let p of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))p.remove(),u=!0;let o=u?(n=i.innerText)!=null?n:"":r;return Jr.test(o)&&(o=o.replace(Jr,"")),o}function Da(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let u=document.getElementById(i);if(u){let o=u.getAttribute("aria-label");return typeof o=="string"?o.trim():Xr(u).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Xr(e).trim()}function Ma(e){let t=c.useRef(""),n=c.useRef("");return L(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let u=Da(r).trim().toLowerCase();return t.current=i,n.current=u,u})}var Ra=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ra||{}),Wa=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Wa||{}),Va=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Va||{}),Ba=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Ba||{});function hn(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Dr(t(e.options.slice()),u=>u.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let Ua={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.listboxState===1)return e;let r=hn(e),i=Vr(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:i,activationTrigger:(n=t.trigger)!=null?n:1}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(o=>{var p;return!o.dataRef.current.disabled&&((p=o.dataRef.current.textValue)==null?void 0:p.startsWith(r))}),u=i?e.options.indexOf(i):-1;return u===-1||u===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:u,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=hn(e,i=>[...i,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=hn(e,r=>{let i=r.findIndex(u=>u.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},gn=c.createContext(null);gn.displayName="ListboxActionsContext";function Et(e){let t=c.useContext(gn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Et),n}return t}let wn=c.createContext(null);wn.displayName="ListboxDataContext";function Tt(e){let t=c.useContext(wn);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Tt),n}return t}function Ha(e,t){return ce(t.type,Ua,e,t)}let qa=c.Fragment;function za(e,t){let{value:n,defaultValue:r,form:i,name:u,onChange:o,by:p=(C,F)=>C===F,disabled:v=!1,horizontal:m=!1,multiple:h=!1,...g}=e;const s=m?"horizontal":"vertical";let f=Re(t),[a=h?[]:void 0,d]=Yr(n,o,r),[b,w]=c.useReducer(Ha,{dataRef:c.createRef(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),E=c.useRef({static:!1,hold:!1}),y=c.useRef(null),k=c.useRef(null),A=c.useRef(null),j=L(typeof p=="string"?(C,F)=>{let B=p;return C?.[B]===F?.[B]}:p),z=c.useCallback(C=>ce(W.mode,{1:()=>a.some(F=>j(F,C)),0:()=>j(a,C)}),[a]),W=c.useMemo(()=>({...b,value:a,disabled:v,mode:h?1:0,orientation:s,compare:j,isSelected:z,optionsPropsRef:E,labelRef:y,buttonRef:k,optionsRef:A}),[a,v,h,b]);be(()=>{b.dataRef.current=W},[W]),Mr([W.buttonRef,W.optionsRef],(C,F)=>{var B;w({type:1}),Nr(F,sn.Loose)||(C.preventDefault(),(B=W.buttonRef.current)==null||B.focus())},W.listboxState===0);let P=c.useMemo(()=>({open:W.listboxState===0,disabled:v,value:a}),[W,v,a]),Y=L(C=>{let F=W.options.find(B=>B.id===C);F&&U(F.dataRef.current.value)}),le=L(()=>{if(W.activeOptionIndex!==null){let{dataRef:C,id:F}=W.options[W.activeOptionIndex];U(C.current.value),w({type:2,focus:$.Specific,id:F})}}),te=L(()=>w({type:0})),O=L(()=>w({type:1})),Q=L((C,F,B)=>C===$.Specific?w({type:2,focus:$.Specific,id:F,trigger:B}):w({type:2,focus:C,trigger:B})),ne=L((C,F)=>(w({type:5,id:C,dataRef:F}),()=>w({type:6,id:C}))),de=L(C=>(w({type:7,id:C}),()=>w({type:7,id:null}))),U=L(C=>ce(W.mode,{0(){return d?.(C)},1(){let F=W.value.slice(),B=F.findIndex(ge=>j(ge,C));return B===-1?F.push(C):F.splice(B,1),d?.(F)}})),ue=L(C=>w({type:3,value:C})),re=L(()=>w({type:4})),X=c.useMemo(()=>({onChange:U,registerOption:ne,registerLabel:de,goToOption:Q,closeListbox:O,openListbox:te,selectActiveOption:le,selectOption:Y,search:ue,clearSearch:re}),[]),ve={ref:f},pe=c.useRef(null),se=Je();return c.useEffect(()=>{pe.current&&r!==void 0&&se.addEventListener(pe.current,"reset",()=>{d?.(r)})},[pe,d]),c.createElement(gn.Provider,{value:X},c.createElement(wn.Provider,{value:W},c.createElement(fn,{value:ce(W.listboxState,{0:ye.Open,1:ye.Closed})},u!=null&&a!=null&&un({[u]:a}).map(([C,F],B)=>c.createElement(zr,{features:cn.Hidden,ref:B===0?ge=>{var _e;pe.current=(_e=ge?.closest("form"))!=null?_e:null}:void 0,...Rt({key:C,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:i,name:C,value:F})})),Fe({ourProps:ve,theirProps:g,slot:P,defaultTag:qa,name:"Listbox"}))))}let Ya="button";function Ka(e,t){var n;let r=Xe(),{id:i=`headlessui-listbox-button-${r}`,...u}=e,o=Tt("Listbox.Button"),p=Et("Listbox.Button"),v=Re(o.buttonRef,t),m=Je(),h=L(b=>{switch(b.key){case ee.Space:case ee.Enter:case ee.ArrowDown:b.preventDefault(),p.openListbox(),m.nextFrame(()=>{o.value||p.goToOption($.First)});break;case ee.ArrowUp:b.preventDefault(),p.openListbox(),m.nextFrame(()=>{o.value||p.goToOption($.Last)});break}}),g=L(b=>{switch(b.key){case ee.Space:b.preventDefault();break}}),s=L(b=>{if(Ur(b.currentTarget))return b.preventDefault();o.listboxState===0?(p.closeListbox(),m.nextFrame(()=>{var w;return(w=o.buttonRef.current)==null?void 0:w.focus({preventScroll:!0})})):(b.preventDefault(),p.openListbox())}),f=kt(()=>{if(o.labelId)return[o.labelId,i].join(" ")},[o.labelId,i]),a=c.useMemo(()=>({open:o.listboxState===0,disabled:o.disabled,value:o.value}),[o]),d={ref:v,id:i,type:Wr(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":(n=o.optionsRef.current)==null?void 0:n.id,"aria-expanded":o.listboxState===0,"aria-labelledby":f,disabled:o.disabled,onKeyDown:h,onKeyUp:g,onClick:s};return Fe({ourProps:d,theirProps:u,slot:a,defaultTag:Ya,name:"Listbox.Button"})}let Ga="label";function Qa(e,t){let n=Xe(),{id:r=`headlessui-listbox-label-${n}`,...i}=e,u=Tt("Listbox.Label"),o=Et("Listbox.Label"),p=Re(u.labelRef,t);be(()=>o.registerLabel(r),[r]);let v=L(()=>{var h;return(h=u.buttonRef.current)==null?void 0:h.focus({preventScroll:!0})}),m=c.useMemo(()=>({open:u.listboxState===0,disabled:u.disabled}),[u]);return Fe({ourProps:{ref:p,id:r,onClick:v},theirProps:i,slot:m,defaultTag:Ga,name:"Listbox.Label"})}let Ja="ul",Xa=dt.RenderStrategy|dt.Static;function Za(e,t){var n;let r=Xe(),{id:i=`headlessui-listbox-options-${r}`,...u}=e,o=Tt("Listbox.Options"),p=Et("Listbox.Options"),v=Re(o.optionsRef,t),m=Je(),h=Je(),g=Wt(),s=(()=>g!==null?(g&ye.Open)===ye.Open:o.listboxState===0)();c.useEffect(()=>{var w;let E=o.optionsRef.current;E&&o.listboxState===0&&E!==((w=At(E))==null?void 0:w.activeElement)&&E.focus({preventScroll:!0})},[o.listboxState,o.optionsRef]);let f=L(w=>{switch(h.dispose(),w.key){case ee.Space:if(o.searchQuery!=="")return w.preventDefault(),w.stopPropagation(),p.search(w.key);case ee.Enter:if(w.preventDefault(),w.stopPropagation(),o.activeOptionIndex!==null){let{dataRef:E}=o.options[o.activeOptionIndex];p.onChange(E.current.value)}o.mode===0&&(p.closeListbox(),Ge().nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})}));break;case ce(o.orientation,{vertical:ee.ArrowDown,horizontal:ee.ArrowRight}):return w.preventDefault(),w.stopPropagation(),p.goToOption($.Next);case ce(o.orientation,{vertical:ee.ArrowUp,horizontal:ee.ArrowLeft}):return w.preventDefault(),w.stopPropagation(),p.goToOption($.Previous);case ee.Home:case ee.PageUp:return w.preventDefault(),w.stopPropagation(),p.goToOption($.First);case ee.End:case ee.PageDown:return w.preventDefault(),w.stopPropagation(),p.goToOption($.Last);case ee.Escape:return w.preventDefault(),w.stopPropagation(),p.closeListbox(),m.nextFrame(()=>{var E;return(E=o.buttonRef.current)==null?void 0:E.focus({preventScroll:!0})});case ee.Tab:w.preventDefault(),w.stopPropagation();break;default:w.key.length===1&&(p.search(w.key),h.setTimeout(()=>p.clearSearch(),350));break}}),a=kt(()=>{var w,E,y;return(y=(w=o.labelRef.current)==null?void 0:w.id)!=null?y:(E=o.buttonRef.current)==null?void 0:E.id},[o.labelRef.current,o.buttonRef.current]),d=c.useMemo(()=>({open:o.listboxState===0}),[o]),b={"aria-activedescendant":o.activeOptionIndex===null||(n=o.options[o.activeOptionIndex])==null?void 0:n.id,"aria-multiselectable":o.mode===1?!0:void 0,"aria-labelledby":a,"aria-orientation":o.orientation,id:i,onKeyDown:f,role:"listbox",tabIndex:0,ref:v};return Fe({ourProps:b,theirProps:u,slot:d,defaultTag:Ja,features:Xa,visible:s,name:"Listbox.Options"})}let $a="li";function es(e,t){let n=Xe(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:u,...o}=e,p=Tt("Listbox.Option"),v=Et("Listbox.Option"),m=p.activeOptionIndex!==null?p.options[p.activeOptionIndex].id===r:!1,h=p.isSelected(u),g=c.useRef(null),s=Ma(g),f=He({disabled:i,value:u,domRef:g,get textValue(){return s()}}),a=Re(t,g);be(()=>{if(p.listboxState!==0||!m||p.activationTrigger===0)return;let j=Ge();return j.requestAnimationFrame(()=>{var z,W;(W=(z=g.current)==null?void 0:z.scrollIntoView)==null||W.call(z,{block:"nearest"})}),j.dispose},[g,m,p.listboxState,p.activationTrigger,p.activeOptionIndex]),be(()=>v.registerOption(r,f),[f,r]);let d=L(j=>{if(i)return j.preventDefault();v.onChange(u),p.mode===0&&(v.closeListbox(),Ge().nextFrame(()=>{var z;return(z=p.buttonRef.current)==null?void 0:z.focus({preventScroll:!0})}))}),b=L(()=>{if(i)return v.goToOption($.Nothing);v.goToOption($.Specific,r)}),w=Qr(),E=L(j=>w.update(j)),y=L(j=>{w.wasMoved(j)&&(i||m||v.goToOption($.Specific,r,0))}),k=L(j=>{w.wasMoved(j)&&(i||m&&v.goToOption($.Nothing))}),A=c.useMemo(()=>({active:m,selected:h,disabled:i}),[m,h,i]);return Fe({ourProps:{id:r,ref:a,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":h,disabled:void 0,onClick:d,onFocus:b,onPointerEnter:E,onMouseEnter:E,onPointerMove:y,onMouseMove:y,onPointerLeave:k,onMouseLeave:k},theirProps:o,slot:A,defaultTag:$a,name:"Listbox.Option"})}let ts=Te(za),ns=Te(Ka),rs=Te(Qa),is=Te(Za),os=Te(es),Vt=Object.assign(ts,{Button:ns,Label:rs,Options:is,Option:os});function as(e=0){let[t,n]=c.useState(e),r=mn(),i=c.useCallback(v=>{r.current&&n(m=>m|v)},[t,r]),u=c.useCallback(v=>!!(t&v),[t]),o=c.useCallback(v=>{r.current&&n(m=>m&~v)},[n,r]),p=c.useCallback(v=>{r.current&&n(m=>m^v)},[n]);return{flags:t,addFlag:i,hasFlag:u,removeFlag:o,toggleFlag:p}}function ss(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function xn(e,...t){e&&t.length>0&&e.classList.add(...t)}function yn(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ls(e,t){let n=Ge();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[u,o]=[r,i].map(v=>{let[m=0]=v.split(",").filter(Boolean).map(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,g)=>g-h);return m}),p=u+o;if(p!==0){n.group(m=>{m.setTimeout(()=>{t(),m.dispose()},p),m.addEventListener(e,"transitionrun",h=>{h.target===h.currentTarget&&m.dispose()})});let v=n.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),v())})}else t();return n.add(()=>t()),n.dispose}function us(e,t,n,r){let i=n?"enter":"leave",u=Ge(),o=r!==void 0?ss(r):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let p=ce(i,{enter:()=>t.enter,leave:()=>t.leave}),v=ce(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=ce(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return yn(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),xn(e,...t.base,...p,...m),u.nextFrame(()=>{yn(e,...t.base,...p,...m),xn(e,...t.base,...p,...v),ls(e,()=>(yn(e,...t.base,...p),xn(e,...t.base,...t.entered),o()))}),u.dispose}function cs({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:u}){let o=mn(),p=Je(),v=He(n);be(()=>{e&&(v.current="enter")},[e]),be(()=>{let m=Ge();p.add(m.dispose);let h=t.current;if(h&&v.current!=="idle"&&o.current)return m.dispose(),i.current(v.current),m.add(us(h,r.current,v.current==="enter",()=>{m.dispose(),u.current(v.current)})),m.dispose},[n])}function ot(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Bt=c.createContext(null);Bt.displayName="TransitionContext";var ds=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ds||{});function fs(){let e=c.useContext(Bt);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ps(){let e=c.useContext(Ut);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ut=c.createContext(null);Ut.displayName="NestingContext";function Ht(e){return"children"in e?Ht(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Zr(e,t){let n=He(e),r=c.useRef([]),i=mn(),u=Je(),o=L((f,a=it.Hidden)=>{let d=r.current.findIndex(({el:b})=>b===f);d!==-1&&(ce(a,{[it.Unmount](){r.current.splice(d,1)},[it.Hidden](){r.current[d].state="hidden"}}),u.microTask(()=>{var b;!Ht(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),p=L(f=>{let a=r.current.find(({el:d})=>d===f);return a?a.state!=="visible"&&(a.state="visible"):r.current.push({el:f,state:"visible"}),()=>o(f,it.Unmount)}),v=c.useRef([]),m=c.useRef(Promise.resolve()),h=c.useRef({enter:[],leave:[],idle:[]}),g=L((f,a,d)=>{v.current.splice(0),t&&(t.chains.current[a]=t.chains.current[a].filter(([b])=>b!==f)),t?.chains.current[a].push([f,new Promise(b=>{v.current.push(b)})]),t?.chains.current[a].push([f,new Promise(b=>{Promise.all(h.current[a].map(([w,E])=>E)).then(()=>b())})]),a==="enter"?m.current=m.current.then(()=>t?.wait.current).then(()=>d(a)):d(a)}),s=L((f,a,d)=>{Promise.all(h.current[a].splice(0).map(([b,w])=>w)).then(()=>{var b;(b=v.current.shift())==null||b()}).then(()=>d(a))});return c.useMemo(()=>({children:r,register:p,unregister:o,onStart:g,onStop:s,wait:m,chains:h}),[p,o,r,g,s,h,m])}function bs(){}let vs=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $r(e){var t;let n={};for(let r of vs)n[r]=(t=e[r])!=null?t:bs;return n}function ms(e){let t=c.useRef($r(e));return c.useEffect(()=>{t.current=$r(e)},[e]),t}let hs="div",ei=dt.RenderStrategy;function gs(e,t){var n,r;let{beforeEnter:i,afterEnter:u,beforeLeave:o,afterLeave:p,enter:v,enterFrom:m,enterTo:h,entered:g,leave:s,leaveFrom:f,leaveTo:a,...d}=e,b=c.useRef(null),w=Re(b,t),E=(n=d.unmount)==null||n?it.Unmount:it.Hidden,{show:y,appear:k,initial:A}=fs(),[j,z]=c.useState(y?"visible":"hidden"),W=ps(),{register:P,unregister:Y}=W;c.useEffect(()=>P(b),[P,b]),c.useEffect(()=>{if(E===it.Hidden&&b.current){if(y&&j!=="visible"){z("visible");return}return ce(j,{hidden:()=>Y(b),visible:()=>P(b)})}},[j,b,P,Y,y,E]);let le=He({base:ot(d.className),enter:ot(v),enterFrom:ot(m),enterTo:ot(h),entered:ot(g),leave:ot(s),leaveFrom:ot(f),leaveTo:ot(a)}),te=ms({beforeEnter:i,afterEnter:u,beforeLeave:o,afterLeave:p}),O=an();c.useEffect(()=>{if(O&&j==="visible"&&b.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[b,j,O]);let Q=A&&!k,ne=k&&y&&A,de=(()=>!O||Q?"idle":y?"enter":"leave")(),U=as(0),ue=L(se=>ce(se,{enter:()=>{U.addFlag(ye.Opening),te.current.beforeEnter()},leave:()=>{U.addFlag(ye.Closing),te.current.beforeLeave()},idle:()=>{}})),re=L(se=>ce(se,{enter:()=>{U.removeFlag(ye.Opening),te.current.afterEnter()},leave:()=>{U.removeFlag(ye.Closing),te.current.afterLeave()},idle:()=>{}})),X=Zr(()=>{z("hidden"),Y(b)},W);cs({immediate:ne,container:b,classes:le,direction:de,onStart:He(se=>{X.onStart(b,se,ue)}),onStop:He(se=>{X.onStop(b,se,re),se==="leave"&&!Ht(X)&&(z("hidden"),Y(b))})});let ve=d,pe={ref:w};return ne?ve={...ve,className:Dt(d.className,...le.current.enter,...le.current.enterFrom)}:(ve.className=Dt(d.className,(r=b.current)==null?void 0:r.className),ve.className===""&&delete ve.className),c.createElement(Ut.Provider,{value:X},c.createElement(fn,{value:ce(j,{visible:ye.Open,hidden:ye.Closed})|U.flags},Fe({ourProps:pe,theirProps:ve,defaultTag:hs,features:ei,visible:j==="visible",name:"Transition.Child"})))}function ws(e,t){let{show:n,appear:r=!1,unmount:i=!0,...u}=e,o=c.useRef(null),p=Re(o,t);an();let v=Wt();if(n===void 0&&v!==null&&(n=(v&ye.Open)===ye.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,h]=c.useState(n?"visible":"hidden"),g=Zr(()=>{h("hidden")}),[s,f]=c.useState(!0),a=c.useRef([n]);be(()=>{s!==!1&&a.current[a.current.length-1]!==n&&(a.current.push(n),f(!1))},[a,n]);let d=c.useMemo(()=>({show:n,appear:r,initial:s}),[n,r,s]);c.useEffect(()=>{if(n)h("visible");else if(!Ht(g))h("hidden");else{let y=o.current;if(!y)return;let k=y.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&h("hidden")}},[n,g]);let b={unmount:i},w=L(()=>{var y;s&&f(!1),(y=e.beforeEnter)==null||y.call(e)}),E=L(()=>{var y;s&&f(!1),(y=e.beforeLeave)==null||y.call(e)});return c.createElement(Ut.Provider,{value:g},c.createElement(Bt.Provider,{value:d},Fe({ourProps:{...b,as:c.Fragment,children:c.createElement(ti,{ref:p,...b,...u,beforeEnter:w,beforeLeave:E})},theirProps:{},defaultTag:c.Fragment,features:ei,visible:m==="visible",name:"Transition"})))}function xs(e,t){let n=c.useContext(Bt)!==null,r=Wt()!==null;return c.createElement(c.Fragment,null,!n&&r?c.createElement(kn,{ref:t,...e}):c.createElement(ti,{ref:t,...e}))}let kn=Te(ws),ti=Te(gs),ys=Te(xs),ni=Object.assign(kn,{Child:ys,Root:kn});function ks({title:e,titleId:t,...n},r){return Qe.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:r,"aria-labelledby":t},n),e?Qe.createElement("title",{id:t},e):null,Qe.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}const ri=Qe.forwardRef(ks),Ss=({children:e,selected:t,onSelect:n,themeColor:r})=>{const[i,u]=c.useState(!1),[o,p]=c.useState(!1),v=c.useRef(null),m=c.useRef(null),[h,g]=c.useState({left:0,top:0}),s=c.useRef(0),f=c.useRef(0);let a="#333333";const d=A=>{n(A)},b=()=>{u(!0)},w=()=>{u(!1)},E=()=>{s.current=window.innerHeight,f.current=document.body.scrollHeight,p(!0)};c.useEffect(()=>(E(),window.addEventListener("resize",E),()=>{window.addEventListener("resize",E)}),[]);const y=()=>f.current-(s.current+window.scrollY),k=()=>{if(v.current){const A=v.current.getBoundingClientRect();setTimeout(()=>{const j=m?.current?.getBoundingClientRect(),z=y(),W=s.current-A.bottom;let P;if(j){const Y=A.height,le=A.top,te=j.height,O=te>le+window.scrollY;le<te&&(O||O&&W<te||z>te||W>te)||le>te&&W>te?P=A.y+Y:P=A.y-te,g({left:A.left,top:P??A.top})}},0)}};if(c.useEffect(()=>(window.addEventListener("scroll",k),window.addEventListener("resize",k),()=>{window.removeEventListener("scroll",k),window.removeEventListener("resize",k)}),[]),r){r=Ue.convert3HexTo6(r);const A=tt(r);(A==="dark"||A==="light")&&(a=r==="#ffffff"?"#c8c8c8":r)}return S.jsx(Vt,{value:t,onChange:d,children:({open:A})=>S.jsxs("div",{className:"tw-relative",children:[S.jsx("div",{className:"tw-relative",ref:v,children:S.jsxs(Vt.Button,{"data-testid":"select-options",onFocus:b,onBlur:w,onClick:k,onKeyDown:j=>{(j.key===" "||j.code==="Space"||j.code==="Enter")&&k()},style:{borderBottomColor:r&&(i||A)?a:""},className:"tw-border-solid tw-border-x-0 tw-relative tw-h-10 tw-w-full tw-cursor-pointer tw-border-b tw-border-t tw-border-t-transparent tw-bg-white tw-py-1.5 tw-pl-[10px] tw-pr-8 tw-text-left tw-text-base tw-text-[#333333] focus:tw-border-b-2 focus:tw-border-t-2 focus:tw-border-b-[#006bb1] focus:tw-py-[5px] focus:tw-outline-none focus:tw-ring-0"+(A?" tw-border-b-2 tw-border-t-2 tw-border-b-[#006bb1]":" tw-border-b-[#333333]"),children:[t&&S.jsxs("span",{className:"tw-flex tw-items-center",children:[t.avatar&&S.jsx("img",{src:t.avatar,alt:"",className:"tw-mr-2 tw-h-5 tw-w-5 tw-flex-shrink-0"}),S.jsx("span",{className:"tw-block tw-truncate",children:t.label})]}),S.jsx("span",{className:"tw-pointer-events-none tw-absolute tw-inset-y-0 tw-right-0 tw-flex tw-items-center tw-pr-2",children:S.jsx(ri,{className:"tw-h-5 tw-w-5 tw-text-[#333333]","aria-hidden":"true"})})]})}),o?Kt.createPortal(S.jsx(S.Fragment,{children:A&&S.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsx("div",{ref:m,className:"tw-absolute",style:{opacity:h.left?1:0,width:v.current?v.current.clientWidth:"auto",left:h.left,top:h.top},children:e})})}),document.body):null]})})},Os=({children:e,setQuery:t})=>S.jsx(ni,{as:c.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",afterLeave:()=>t(""),children:S.jsx(Vt.Options,{className:"tw-max-h-[200px] tw-w-full tw-overflow-auto tw-bg-white tw-pb-[10px] tw-pt-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]",children:e})}),ii=c.forwardRef((e,t)=>S.jsx(Vt.Option,{ref:t,className:e.className,value:e.value,disabled:e.disable,children:e.children}));ii.displayName="SelectOption";const Es=({children:e,selected:t,onSelect:n,setQuery:r,disable:i,clearSearch:u=!1,themeColor:o})=>{const p=c.useRef(null),v=c.useRef(null),[m,h]=c.useState(!1),[g,s]=c.useState(!1),f=c.useRef(null),a=c.useRef(null),[d,b]=c.useState({left:0,top:0}),w=c.useRef(0),E=c.useRef(0);let y={};c.useEffect(()=>{p.current&&t&&(p.current.value=t.label||"")},[t]);const k=()=>{w.current=window.innerHeight,E.current=document.body.scrollHeight,s(!0)};c.useEffect(()=>(k(),window.addEventListener("resize",k),()=>{window.addEventListener("resize",k)}),[]);const A=()=>E.current-(w.current+window.scrollY),j=()=>{if(f.current){const O=f.current.getBoundingClientRect();setTimeout(()=>{const Q=a?.current?.getBoundingClientRect(),ne=A(),de=w.current-O.bottom;let U;if(Q){const ue=O.height,re=O.top,X=Q.height,ve=X>re+window.scrollY;re<X&&(ve||ve&&de<X||ne>X||de>X)||re>X&&de>X?U=O.y+ue:U=O.y-X,b({left:O.left,top:U??O.top})}},0)}};c.useEffect(()=>(window.addEventListener("scroll",j),window.addEventListener("resize",j),()=>{window.removeEventListener("scroll",j),window.removeEventListener("resize",j)}),[]);const z=O=>{n(O),Y()},W=()=>{j(),h(!0),p.current&&t&&(p.current.value=t.label||""),p.current&&v.current&&(u&&(p.current.value="",r("")),v.current.click())},P=O=>(Y(),O?.label),Y=()=>{const O=p.current;O&&O.setSelectionRange(O.value.length,O.value.length)},le=()=>{h(!0)},te=()=>{h(!1)};if(o){const O=tt(o);o=Ue.convert3HexTo6(o),(O==="dark"||O==="light")&&(y={borderBottomColor:o==="#ffffff"?"#c8c8c8":m?o:"#333333"})}return S.jsx(Ot,{value:t,onChange:z,disabled:i,children:({open:O})=>S.jsxs("div",{className:"tw-relative ",children:[S.jsxs("div",{ref:f,className:`tw-relative tw-h-10 tw-w-full tw-cursor-default tw-overflow-hidden tw-bg-white tw-text-left focus:tw-outline-none focus-visible:tw-ring-1 focus-visible:tw-ring-[#DFDFDF] focus-visible:tw-ring-offset-2 focus-visible:tw-ring-offset-[#DFDFDF] ${i?"tw-text-[#A7A7A7]":"tw-text-[#333333]"}`,children:[S.jsx(Ot.Input,{ref:p,"data-testid":"select-input",className:"tw-h-full tw-w-full tw-border-0 tw-border-b-[1px] tw-border-b-[#333333] tw-pb-2 tw-pl-[10px] tw-pr-10 tw-pt-2 tw-text-base tw-leading-5 tw-placeholder-[#666666] tw-shadow-none focus:tw-border-b-2 focus:tw-border-b-[#006bb1] focus:tw-pb-[7px] focus:tw-outline-none focus:tw-ring-[0px] focus-visible:tw-ring-[0px]",displayValue:P,onChange:Q=>{r(Q.target.value),j()},onClick:W,onFocus:le,onBlur:te,onKeyDown:Q=>{(Q.key===" "||Q.code==="Space")&&j()},style:{...y},placeholder:"Select your option",autoComplete:"off"}),S.jsx(Ot.Button,{className:"tw-absolute tw-inset-y-0 tw-right-0 tw-flex tw-items-center tw-pr-2","data-testid":"select-button",ref:v,onClick:j,children:S.jsx(ri,{className:`tw-h-5 tw-w-5 ${i?"tw-text-[#A7A7A7]":"tw-text-[#333333]"}`,"aria-hidden":"true"})})]}),g?Kt.createPortal(S.jsx(S.Fragment,{children:O&&S.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(255,255,255,0)",zIndex:1e3},children:S.jsx("div",{ref:a,className:"tw-absolute",style:{opacity:d.left?1:0,width:f.current?f.current.clientWidth:"auto",left:d.left,top:d.top},children:e})})}),document.body):null]})})},Ts=({children:e,setQuery:t})=>S.jsx(ni,{as:c.Fragment,leave:"tw-transition tw-ease-in tw-duration-100",leaveFrom:"tw-opacity-100",leaveTo:"tw-opacity-0",afterLeave:()=>t(""),children:S.jsx(Ot.Options,{className:"tw-max-h-[210px] tw-w-full tw-overflow-auto tw-bg-white tw-pb-[10px] tw-pt-[10px] tw-text-base tw-shadow-[0_1px_6px_0_rgba(0,0,0,0.5)] focus:tw-outline-none sm:tw-text-sm [&::-webkit-scrollbar-thumb]:tw-rounded-md [&::-webkit-scrollbar-thumb]:tw-bg-[#a9a9a9] [&::-webkit-scrollbar]:tw-w-[6px]",children:e})}),oi=c.forwardRef((e,t)=>S.jsx(Ot.Option,{ref:t,className:e.className,value:e.value,disabled:e.disable,children:e.children}));oi.displayName="AutoCompleteOption";const ai={textInputWrapper:"_textInputWrapper_gym4n_1",textInput:"_textInput_gym4n_1"},_s=c.memo(c.forwardRef(({themeColor:e="",style:t={},className:n="",onFocus:r,onBlur:i,...u},o)=>{const[p,v]=c.useState(!1);let m={};const h=[ai.textInput,n].filter(Boolean).join(" ");e=Ue.convert3HexTo6(e);const g=()=>{v(!0)},s=()=>{v(!1)};return m={borderBottomColor:p?e!=="#ffffff"?e:"#c8c8c8":""},S.jsx("div",{className:ai.textInputWrapper,children:S.jsx("input",{type:"text","data-testid":"textbox-input",ref:o,className:h,onFocus:g,onBlur:s,style:{...m,...t},...u})})}));fe.AutoComplete=Es,fe.AutoCompleteOption=oi,fe.AutoCompleteOptions=Ts,fe.Button=Qt,fe.Checkbox=Jt,fe.ColorsService=Ue,fe.MultiLineInput=Wo,fe.MultiSelect=Vo,fe.QuickMultiSelect=Bo,fe.QuickSelect=Uo,fe.Scrollbar=Fr,fe.Select=Ss,fe.SelectOption=ii,fe.SelectOptions=Os,fe.SingleLineInput=_s,Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"})});
|
|
33
33
|
//# sourceMappingURL=ui-react.umd.js.map
|