@flarehr/superhero-import-app 0.44.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,16 @@
1
- (function(){"use strict";var ei=document.createElement("style");ei.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.z-10{z-index:10}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-3{margin-right:.75rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.min-h-full{min-height:100%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.justify-center{justify-content:center}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-75{--tw-bg-opacity: .75}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pr-3{padding-right:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-sm{font-size:.875rem;line-height:1.25rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
2
- `,document.head.appendChild(ei);var gn,O,ti,Ct,ni,ri,Rr,Mr,Fr,Or,oi,wn={},ii=[],$l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vn=Array.isArray;function ct(e,t){for(var n in t)e[n]=t[n];return e}function si(e){var t=e.parentNode;t&&t.removeChild(e)}function d(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?gn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return _n(e,s,r,o,null)}function _n(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++ti,__i:-1,__u:0};return o==null&&O.vnode!=null&&O.vnode(i),i}function ai(){return{current:null}}function be(e){return e.children}function qe(e,t){this.props=e,this.context=t}function Et(e,t){if(t==null)return e.__?Et(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Et(e):null}function li(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return li(e)}}function Nr(e){(!e.__d&&(e.__d=!0)&&Ct.push(e)&&!Ln.__r++||ni!==O.debounceRendering)&&((ni=O.debounceRendering)||ri)(Ln)}function Ln(){var e,t,n,r,o,i,s,a;for(Ct.sort(Rr);e=Ct.shift();)e.__d&&(t=Ct.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=ct({},o)).__v=o.__v+1,O.vnode&&O.vnode(r),Pr(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Et(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,pi(s,r,a),r.__e!=i&&li(r)),Ct.length>t&&Ct.sort(Rr));Ln.__r=0}function ci(e,t,n,r,o,i,s,a,u,l,f){var c,m,p,g,_,w=r&&r.__k||ii,y=t.length;for(n.__d=u,Hl(n,t,w),u=n.__d,c=0;c<y;c++)(p=n.__k[c])!=null&&typeof p!="boolean"&&typeof p!="function"&&(m=p.__i===-1?wn:w[p.__i]||wn,p.__i=c,Pr(e,p,m,o,i,s,a,u,l,f),g=p.__e,p.ref&&m.ref!=p.ref&&(m.ref&&Br(m.ref,null,p),f.push(p.ref,p.__c||g,p)),_==null&&g!=null&&(_=g),65536&p.__u||m.__k===p.__k?(u&&!u.isConnected&&(u=Et(m)),u=ui(p,u,e)):typeof p.type=="function"&&p.__d!==void 0?u=p.__d:g&&(u=g.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=u,n.__e=_}function Hl(e,t,n){var r,o,i,s,a,u=t.length,l=n.length,f=l,c=0;for(e.__k=[],r=0;r<u;r++)s=r+c,(o=e.__k[r]=(o=t[r])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?_n(null,o,null,null,null):Vn(o)?_n(be,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?_n(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,a=Ul(o,n,s,f),o.__i=a,i=null,a!==-1&&(f--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a===s+1?c++:a>s?f>u-s?c+=a-s:c--:a<s?a==s-1&&(c=a-s):c=0,a!==r+c&&(o.__u|=65536))):(i=n[s])&&i.key==null&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i,!1),n[s]=null,f--);if(f)for(r=0;r<l;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Et(i)),jr(i,i))}function ui(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=ui(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function ut(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vn(e)?e.some(function(n){ut(n,t)}):t.push(e)),t}function Ul(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,u=t[n];if(u===null||u&&o==u.key&&i===u.type&&!(131072&u.__u))return n;if(r>(u!=null&&!(131072&u.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((u=t[s])&&!(131072&u.__u)&&o==u.key&&i===u.type)return s;s--}if(a<t.length){if((u=t[a])&&!(131072&u.__u)&&o==u.key&&i===u.type)return a;a++}}return-1}function fi(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||$l.test(t)?n:n+"px"}function zn(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||fi(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fi(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Mr,e.addEventListener(t,i?Or:Fr,i)):e.removeEventListener(t,i?Or:Fr,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function di(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Mr++;else if(t.t<n.u)return;return n(O.event?O.event(t):t)}}}function Pr(e,t,n,r,o,i,s,a,u,l){var f,c,m,p,g,_,w,y,C,T,ee,Q,X,oe,fe,te=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),i=[a=t.__e=n.__e]),(f=O.__b)&&f(t);e:if(typeof te=="function")try{if(y=t.props,C=(f=te.contextType)&&r[f.__c],T=f?C?C.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:("prototype"in te&&te.prototype.render?t.__c=c=new te(y,T):(t.__c=c=new qe(y,T),c.constructor=te,c.render=Ll),C&&C.sub(c),c.props=y,c.state||(c.state={}),c.context=T,c.__n=r,m=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),te.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ct({},c.__s)),ct(c.__s,te.getDerivedStateFromProps(y,c.__s))),p=c.props,g=c.state,c.__v=t,m)te.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(te.getDerivedStateFromProps==null&&y!==p&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,T),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,T)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(lt){lt&&(lt.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,T),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(p,g,_)})}if(c.context=T,c.props=y,c.__P=e,c.__e=!1,Q=O.__r,X=0,"prototype"in te&&te.prototype.render){for(c.state=c.__s,c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),oe=0;oe<c._sb.length;oe++)c.__h.push(c._sb[oe]);c._sb=[]}else do c.__d=!1,Q&&Q(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++X<25);c.state=c.__s,c.getChildContext!=null&&(r=ct(ct({},r),c.getChildContext())),m||c.getSnapshotBeforeUpdate==null||(_=c.getSnapshotBeforeUpdate(p,g)),ci(e,Vn(fe=f!=null&&f.type===be&&f.key==null?f.props.children:f)?fe:[fe],t,n,r,o,i,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(lt){t.__v=null,u||i!=null?(t.__e=a,t.__u|=u?160:32,i[i.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),O.__e(lt,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vl(n.__e,t,n,r,o,i,s,u,l);(f=O.diffed)&&f(t)}function pi(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Br(n[r],n[++r],n[++r]);O.__c&&O.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){O.__e(i,o.__v)}})}function Vl(e,t,n,r,o,i,s,a,u){var l,f,c,m,p,g,_,w=n.props,y=t.props,C=t.type;if(C==="svg"?o="http://www.w3.org/2000/svg":C==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!C&&(C?p.localName===C:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(C===null)return document.createTextNode(y);e=document.createElementNS(o,C,y.is&&y),i=null,a=!1}if(C===null)w===y||a&&e.data===y||(e.data=y);else{if(i=i&&gn.call(e.childNodes),w=n.props||wn,!a&&i!=null)for(w={},l=0;l<e.attributes.length;l++)w[(p=e.attributes[l]).name]=p.value;for(l in w)if(p=w[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=p;else if(l!=="key"&&!(l in y)){if(l=="value"&&"defaultValue"in y||l=="checked"&&"defaultChecked"in y)continue;zn(e,l,null,p,o)}}for(l in y)p=y[l],l=="children"?m=p:l=="dangerouslySetInnerHTML"?f=p:l=="value"?g=p:l=="checked"?_=p:l==="key"||a&&typeof p!="function"||w[l]===p||zn(e,l,p,w[l],o);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ci(e,Vn(m)?m:[m],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Et(n,0),a,u),i!=null)for(l=i.length;l--;)i[l]!=null&&si(i[l]);a||(l="value",g!==void 0&&(g!==e[l]||C==="progress"&&!g||C==="option"&&g!==w[l])&&zn(e,l,g,w[l],o),l="checked",_!==void 0&&_!==e[l]&&zn(e,l,_,w[l],o))}return e}function Br(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){O.__e(r,n)}}function jr(e,t,n){var r,o;if(O.unmount&&O.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Br(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){O.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jr(r[o],t,n||typeof e.type!="function");n||e.__e==null||si(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ll(e,t,n){return this.constructor(e,n)}function yt(e,t,n){var r,o,i,s;O.__&&O.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],Pr(t,e=(!r&&n||t).__k=d(be,null,[e]),o||wn,wn,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?gn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),pi(i,e,s)}function $r(e,t){yt(e,t,$r)}function Hr(e,t,n){var r,o,i,s,a=ct({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?gn.call(arguments,2):n),_n(e.type,a,r||e.key,o||e.ref,null)}function hi(e,t){var n={__c:t="__cC"+oi++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=[],(i={})[t]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.some(function(a){a.__e=!0,Nr(a)})},this.sub=function(s){o.push(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o.splice(o.indexOf(s),1),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}gn=ii.slice,O={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},ti=0,qe.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ct({},this.state),typeof e=="function"&&(e=e(ct({},n),this.props)),e&&ct(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Nr(this))},qe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Nr(this))},qe.prototype.render=be,Ct=[],ri=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Rr=function(e,t){return e.__v.__b-t.__v.__b},Ln.__r=0,Mr=0,Fr=di(!1),Or=di(!0),oi=0;var ft,j,Ur,mi,Ht=0,gi=[],Gn=[],Z=O,wi=Z.__b,_i=Z.__r,yi=Z.diffed,bi=Z.__c,Ai=Z.unmount,vi=Z.__;function kt(e,t){Z.__h&&Z.__h(j,e,Ht||t),Ht=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Gn}),n.__[e]}function Ut(e){return Ht=1,yn(Si,e)}function yn(e,t,n){var r=kt(ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Si(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.u)){var o=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(m){return!!m.__c});if(f.every(function(m){return!m.__N}))return!i||i.call(this,a,u,l);var c=!1;return f.forEach(function(m){if(m.__N){var p=m.__[0];m.__=m.__N,m.__N=void 0,p!==m.__[0]&&(c=!0)}}),!(!c&&r.__c.props===a)&&(!i||i.call(this,a,u,l))};j.u=!0;var i=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=i;i=void 0,o(a,u,l),i=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=o}return r.__N||r.__}function bt(e,t){var n=kt(ft++,3);!Z.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,j.__H.__h.push(n))}function Vt(e,t){var n=kt(ft++,4);!Z.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,j.__h.push(n))}function It(e){return Ht=5,Ze(function(){return{current:e}},[])}function Wn(e,t,n){Ht=6,Vt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Ze(e,t){var n=kt(ft++,7);return Wr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function we(e,t){return Ht=8,Ze(function(){return e},t)}function Vr(e){var t=j.context[e.__c],n=kt(ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function Lr(e,t){Z.useDebugValue&&Z.useDebugValue(t?t(e):e)}function zl(e){var t=kt(ft++,10),n=Ut();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function zr(){var e=kt(ft++,11);if(!e.__){for(var t=j.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Gl(){for(var e;e=gi.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qn),e.__H.__h.forEach(Gr),e.__H.__h=[]}catch(t){e.__H.__h=[],Z.__e(t,e.__v)}}Z.__b=function(e){j=null,wi&&wi(e)},Z.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),vi&&vi(e,t)},Z.__r=function(e){_i&&_i(e),ft=0;var t=(j=e.__c).__H;t&&(Ur===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Gn,n.__N=n.i=void 0})):(t.__h.forEach(Qn),t.__h.forEach(Gr),t.__h=[],ft=0)),Ur=j},Z.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gi.push(t)!==1&&mi===Z.requestAnimationFrame||((mi=Z.requestAnimationFrame)||Wl)(Gl)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Gn&&(n.__=n.__V),n.i=void 0,n.__V=Gn})),Ur=j=null},Z.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qn),n.__h=n.__h.filter(function(r){return!r.__||Gr(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],Z.__e(r,n.__v)}}),bi&&bi(e,t)},Z.unmount=function(e){Ai&&Ai(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qn(r)}catch(o){t=o}}),n.__H=void 0,t&&Z.__e(t,n.__v))};var xi=typeof requestAnimationFrame=="function";function Wl(e){var t,n=function(){clearTimeout(r),xi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xi&&(t=requestAnimationFrame(n))}function Qn(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function Gr(e){var t=j;e.__c=e.__(),j=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Si(e,t){return typeof t=="function"?t(e):t}function Ci(e,t){for(var n in t)e[n]=t[n];return e}function Qr(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function qn(e,t){this.props=e,this.context=t}function Ei(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Qr(this.props,o)}function r(o){return this.shouldComponentUpdate=n,d(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new qe).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return Qr(this.props,e)||Qr(this.state,t)};var ki=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ki&&ki(e)};var Ql=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function qr(e){function t(n){var r=Ci({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ql,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ii=function(e,t){return e==null?null:ut(ut(e).map(t))},Di={map:Ii,forEach:Ii,count:function(e){return e?ut(e).length:0},only:function(e){var t=ut(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ut},ql=O.__e;O.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}ql(e,t,n,r)};var Ti=O.unmount;function Ri(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ci({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ri(r,t,n)})),e}function Mi(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Mi(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function bn(){this.__u=0,this.t=null,this.__b=null}function Fi(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oi(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return d(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Lt(){this.u=null,this.o=null}O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ti&&Ti(e)},(bn.prototype=new qe).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fi(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Mi(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},bn.prototype.componentWillUnmount=function(){this.t=[]},bn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ri(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&d(be,null,e.fallback);return o&&(o.__u&=-33),[d(be,null,t.__a?null:e.children),o]};var Ni=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Zl(e){return this.getChildContext=function(){return e.context},e.children}function Jl(e){var t=this,n=e.i;t.componentWillUnmount=function(){yt(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),yt(d(Zl,{context:t.context},e.__v),t.l)}function Pi(e,t){var n=d(Jl,{__v:e,i:t});return n.containerInfo=t,n}(Lt.prototype=new qe).__a=function(e){var t=this,n=Fi(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ni(t,e,r)):o()};n?n(i):i()}},Lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ut(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Lt.prototype.componentDidUpdate=Lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ni(e,n,t)})};var Bi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kl=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xl=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yl=/[A-Z0-9]/g,ec=typeof document<"u",tc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function ji(e,t,n){return t.__k==null&&(t.textContent=""),yt(e,t),typeof n=="function"&&n(),e?e.__c:null}function $i(e,t,n){return $r(e,t),typeof n=="function"&&n(),e?e.__c:null}qe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(qe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hi=O.event;function nc(){}function rc(){return this.cancelBubble}function oc(){return this.defaultPrevented}O.event=function(e){return Hi&&(e=Hi(e)),e.persist=nc,e.isPropagationStopped=rc,e.isDefaultPrevented=oc,e.nativeEvent=e};var Zr,ic={enumerable:!1,configurable:!0,get:function(){return this.class}},Ui=O.vnode;O.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var i in n){var s=n[i];if(!(i==="value"&&"defaultValue"in n&&s==null||ec&&i==="children"&&r==="noscript"||i==="class"||i==="className")){var a=i.toLowerCase();i==="defaultValue"&&"value"in n&&n.value==null?i="value":i==="download"&&s===!0?s="":a==="translate"&&s==="no"?s=!1:a==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||tc(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Xl.test(i)?i=a:r.indexOf("-")===-1&&Kl.test(i)?i=i.replace(Yl,"-$&").toLowerCase():s===null&&(s=void 0):a=i="oninput",a==="oninput"&&o[i=a]&&(i="oninputCapture"),o[i]=s}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ut(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ic)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Bi,Ui&&Ui(e)};var Vi=O.__r;O.__r=function(e){Vi&&Vi(e),Zr=e.__c};var Li=O.diffed;O.diffed=function(e){Li&&Li(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Zr=null};var zi={ReactCurrentDispatcher:{current:{readContext:function(e){return Zr.__n[e.__c].props.value},useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useId:zr,useImperativeHandle:Wn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Ze,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr}}},sc="17.0.2";function Gi(e){return d.bind(null,e)}function An(e){return!!e&&e.$$typeof===Bi}function Wi(e){return An(e)&&e.type===be}function Qi(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function qi(e){return An(e)?Hr.apply(null,arguments):e}function Zi(e){return!!e.__k&&(yt(null,e),!0)}function Ji(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ki=function(e,t){return e(t)},Xi=function(e,t){return e(t)},Yi=be;function Jr(e){e()}function Kr(e){return e}function Xr(){return[!1,Jr]}var Yr=Vt,es=An;function eo(e,t){var n=t(),r=Ut({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Vt(function(){o.__=n,o.v=t,to(o)&&i({h:o})},[e,n,t]),bt(function(){return to(o)&&i({h:o}),e(function(){to(o)&&i({h:o})})},[e]),n}function to(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var no={useState:Ut,useId:zr,useReducer:yn,useEffect:bt,useLayoutEffect:Vt,useInsertionEffect:Yr,useTransition:Xr,useDeferredValue:Kr,useSyncExternalStore:eo,startTransition:Jr,useRef:It,useImperativeHandle:Wn,useMemo:Ze,useCallback:we,useContext:Vr,useDebugValue:Lr,version:"17.0.2",Children:Di,render:ji,hydrate:$i,unmountComponentAtNode:Zi,createPortal:Pi,createElement:d,createContext:hi,createFactory:Gi,cloneElement:qi,createRef:ai,Fragment:be,isValidElement:An,isElement:es,isFragment:Wi,isMemo:Qi,findDOMNode:Ji,Component:qe,PureComponent:qn,memo:Ei,forwardRef:qr,flushSync:Xi,unstable_batchedUpdates:Ki,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,lazy:Oi,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi};const ac=Object.freeze(Object.defineProperty({__proto__:null,Children:Di,Component:qe,Fragment:be,PureComponent:qn,StrictMode:Yi,Suspense:bn,SuspenseList:Lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zi,cloneElement:qi,createContext:hi,createElement:d,createFactory:Gi,createPortal:Pi,createRef:ai,default:no,findDOMNode:Ji,flushSync:Xi,forwardRef:qr,hydrate:$i,isElement:es,isFragment:Wi,isMemo:Qi,isValidElement:An,lazy:Oi,memo:Ei,render:ji,startTransition:Jr,unmountComponentAtNode:Zi,unstable_batchedUpdates:Ki,useCallback:we,useContext:Vr,useDebugValue:Lr,useDeferredValue:Kr,useEffect:bt,useErrorBoundary:zl,useId:zr,useImperativeHandle:Wn,useInsertionEffect:Yr,useLayoutEffect:Vt,useMemo:Ze,useReducer:yn,useRef:It,useState:Ut,useSyncExternalStore:eo,useTransition:Xr,version:sc},Symbol.toStringTag,{value:"Module"}));function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function lc(e){return e!=null&&typeof e.GetEnumerator=="function"}function cc(e){return e!=null&&typeof e.CompareTo=="function"}function uc(e){return e!=null&&typeof e.Equals=="function"}function ts(e){return e!=null&&typeof e.GetHashCode=="function"}function ro(e){return e!=null&&typeof e.Dispose=="function"}function q(e){ro(e)&&e.Dispose()}function At(){return null}function Zn(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class fc{constructor(t){this.iter=t,this.current=At()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function ne(e){return lc(e)?e.GetEnumerator():new fc(e[Symbol.iterator]())}function Jn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function z(e,t){return e.toString(10).padStart(t,"0")}function ns(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function dc(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function it(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class dt{static id(t){return dt.idMap.has(t)||dt.idMap.set(t,++dt.count),dt.idMap.get(t)}}dt.idMap=new WeakMap,dt.count=0;function Kn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ke(e){return e*2654435761|0}function rs(e){return Kn(e.toString(32))}function vn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function pc(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return rs(e);case"string":return Kn(e);default:return Ke(dt.id(e))}}function hc(e){return ts(e)?e.GetHashCode():pc(e)}function mc(e){return e.getTime()}function gc(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=pt(e[r]);return vn(n)}function pt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ke(e);case"bigint":return rs(e);case"string":return Kn(e);default:{if(ts(e))return e.GetHashCode();if(Je(e))return gc(e);if(e instanceof Date)return mc(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>pt(r));return vn(n)}else return Ke(dt.id(e))}}}function os(e){return hc(e)}function oo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function is(e,t){return oo(e,t,ke)}function wc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!ke(e[n[o]],t[r[o]]))return!1;return!0}function ke(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:uc(e)?e.Equals(t):Je(e)?Je(t)&&is(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&io(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&wc(e,t)}function io(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+ns(e),r=t.getTime()+ns(t)),n===r?0:n<r?-1:1}function so(e,t){return e===t?0:e<t?-1:1}function _c(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function ss(e,t){return _c(e,t,$e)}function yc(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=$e(e[s],t[s]),i!==0)return i}return 0}function $e(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:cc(e)?e.CompareTo(t):Je(e)?Je(t)?ss(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?io(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yc(e,t):-1}function I(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function bc(e){Je(e)?e.splice(0):e.clear()}const Xn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Xn.set(t,e),t}function He(e){return Xn.get(e)??(t=>n=>e(t,n))}function ao(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Xn.set(t,e),t}function Yn(e){return Xn.get(e)??(t=>n=>r=>e(t,n,r))}function Ac(e){let t=0,n="[";for(const r of e){if(t===0)n+=ae(r);else if(t===100){n+="; ...";break}else n+="; "+ae(r);t++}return n+"]"}function ae(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Ac(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+ae(i,t+1)).join(`
3
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function vc(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=ae(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>ae(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class Y{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return vc(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>pt(n));return t.splice(0,0,Ke(this.tag)),vn(t)}Equals(t){return this===t?!0:Zn(this,t)&&this.tag===t.tag?is(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Zn(this,t)?this.tag===t.tag?ss(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function xc(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Sc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ae(n)).join(`
4
- `)+" }"}function Cc(e){const t=Object.values(e).map(n=>pt(n));return vn(t)}function Ec(e,t){if(e===t)return!0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ke(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function kc(e,t){if(e===t)return 0;if(Zn(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=$e(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class G{toJSON(){return xc(this)}toString(){return Sc(this)}GetHashCode(){return Cc(this)}Equals(t){return Ec(this,t)}CompareTo(t){return kc(this,t)}}class Xe{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Ic{constructor(t){this.message=t}}function Dc(e){return e instanceof Ic||e instanceof Error}function Tc(e){return e instanceof Promise}function er(e){return Dc(e)||Tc(e)?e:new Error(String(e))}const zt=Symbol("numeric");function as(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[zt])}function Rc(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function lo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[zt]().multiply(t)}function tr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[zt]().toFixed(t)}function nr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[zt]().toPrecision(t)}function rr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[zt]().toExponential(t)}function or(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[zt]().toHex()}class Mc{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Ae{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return de(this)}GetHashCode(){return ls(this)}Equals(t){return co(this,t)}}function ht(e){return e.generics!=null?e.generics:[]}function ls(e){const t=Kn(e.fullname),n=ht(e).map(ls);return vn([t,...n])}function co(e,t){return e.fullname===""?t.fullname===""&&oo(sr(e),sr(t),([n,r],[o,i])=>n===o&&co(r,i)):e.fullname===t.fullname&&oo(ht(e),ht(t),co)}function mt(e,t,n,r){return new Ae(e,t,n,r)}function Ue(e,t,n,r){return new Ae(e,t,n,void 0,r)}function uo(...e){return new Ae("",void 0,void 0,void 0,()=>e)}function xn(e,t,n,r){const o=new Ae(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Mc(o,a,i[a],s))});return o}function Gt(e){return new Ae("Microsoft.FSharp.Core.FSharpOption`1",[e])}function st(e){return new Ae("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Fc(e){return new Ae("[]",[e])}const Oc=new Ae("System.Object"),le=new Ae("System.String"),Nc=new Ae("System.Boolean"),ce=new Ae("System.Int32");function fo(e){if(Array.isArray(e))return e[0];if(e instanceof Ae){const t=ir(e);if(t!=null)return fo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function de(e){const t=ir(e);return t!=null?de(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>de(n)).join(",")+"]"}function Pc(e){return ir(e)!=null}function ir(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Bc(e){return e.generics!=null&&e.generics.length>0}function cs(e){return e.enumCases!=null&&e.enumCases.length>0}function jc(e){return e.generics==null?e:new Ae(e.fullname,e.generics.map(()=>Oc))}function $c(e){var t;return(t=e.generics)==null?void 0:t[0]}function Wt(e){if(cs(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Hc(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function Qt(e,t){const n=parseInt(t,10);return Hc(e,isNaN(n)?t:n)[1]}function Uc(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function sr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Vc(e){if(us(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Lc(e){return e instanceof Ae?e.cases!=null:e instanceof Y}function zc(e){return e instanceof Ae?e.fields!=null:e instanceof G}function us(e){return e.fullname.startsWith("System.Tuple")}function Gc(e){return e.fields==null?[]:e.fields}function Wc(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Qc(e,t){const n=sr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function qc(e,t){return e}const Zc=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Jc=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Kc=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Xc=["January","February","March","April","May","June","July","August","September","October","November","December"];function Te(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function fs(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Yc(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function po(e,t,n){let r=0,o=0,i="";const s=n?Sn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=Te(t,r,"d"),r+=o,o){case 1:i+=ms(s);break;case 2:i+=z(ms(s),2);break;case 3:i+=Zc[_s(s)];break;case 4:i+=Jc[_s(s)];break}break;case"f":if(o=Te(t,r,"f"),r+=o,o<=3){const w=10**(3-o);i+=z(Math.floor(cr(s)/w),o)}else o<=7&&(i+=(""+cr(s)).padEnd(o,"0"));break;case"F":if(o=Te(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(cr(s)/w);y!=0&&(i+=z(y,o))}else if(o<=7){const w=cr(s);w!=0&&(i+=z(w,3))}break;case"g":o=Te(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=Te(t,r,"h"),r+=o,o){case 1:i+=lr(s)%12;break;case 2:i+=z(lr(s)%12,2);break}break;case"H":switch(o=Te(t,r,"H"),r+=o,o){case 1:i+=lr(s);break;case 2:i+=z(lr(s),2);break}break;case"K":switch(o=Te(t,r,"K"),r+=o,o){case 1:switch(ds(s)){case 1:i+="Z";break;case 2:i+=qt(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=Te(t,r,"m"),r+=o,o){case 1:i+=gs(s);break;case 2:i+=z(gs(s),2);break}break;case"M":switch(o=Te(t,r,"M"),r+=o,o){case 1:i+=ur(s);break;case 2:i+=z(ur(s),2);break;case 3:i+=Kc[ur(s)-1];break;case 4:i+=Xc[ur(s)-1];break}break;case"s":switch(o=Te(t,r,"s"),r+=o,o){case 1:i+=ws(s);break;case 2:i+=z(ws(s),2);break}break;case"t":switch(o=Te(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=Te(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=z(s.getFullYear()%100,2);break;case 3:i+=z(s.getFullYear(),3);break;case 4:i+=z(s.getFullYear(),4);break;case 5:i+=z(s.getFullYear(),5);break}break;case"z":o=Te(t,r,"z"),r+=o;let u="";switch(ds(s)){case 1:u="+00:00";break;case 2:u=qt(s.getTimezoneOffset()*-6e4);break;case 0:u=qt(lu(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(o){case 1:i+=`${l}${f}`;break;case 2:i+=`${l}${z(f,2)}`;break;default:i+=`${l}${z(f,2)}:${z(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[m,p]=Yc(t,r);i+=m,r+=p;break;case"%":const g=fs(t,r);if(g>=0&&g!==37)r+=2,i+=po(s,String.fromCharCode(g),n);else throw new Error("Invalid format string");break;case"\\":const _=fs(t,r);if(_>=0)r+=2,i+=String.fromCharCode(_);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function ds(e){return e.kind||0}function qt(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+z(n,2)+":"+z(r,2)}function ar(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function eu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return z(e.getFullYear(),4)+"-"+z(e.getMonth()+1,2)+"-"+z(e.getDate(),2)+"T"+z(e.getHours(),2)+":"+z(e.getMinutes(),2)+":"+z(e.getSeconds(),2)+"."+z(e.getMilliseconds(),3)+(n?qt(e.getTimezoneOffset()*-6e4):"")}}function tu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+qt(t)}function nu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+qt(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ar(n,"first");case"T":case"t":return ar(n,"second");case"O":case"o":return tu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return po(n,t,!0)}function ru(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?ar(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ar(e,"second"):e.toLocaleTimeString();case"O":case"o":return eu(e,n);default:throw new Error("Unrecognized Date print format")}else return po(e,t,n)}function ps(e,t,n){return e.offset!=null?nu(e,t):ru(e,t)}function Sn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ou(){return Sn(-621355968e5,1)}function hs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function iu(e,t=!1){const[n,r]=hs(e),o=r!=null?t&&r==="Z"?1:2:0;return Sn(n.getTime(),o)}function su(e,t){try{return t.contents=iu(e),!0}catch{return!1}}function au(e){return e.kind===1?e:Sn(e.getTime(),1)}function lu(e){return e.kind===2?e:Sn(e.getTime(),2)}function ms(e){return e.kind===1?e.getUTCDate():e.getDate()}function lr(e){return e.kind===1?e.getUTCHours():e.getHours()}function cr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function gs(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ur(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ws(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function _s(e){return e.kind===1?e.getUTCDay():e.getDay()}const cu=io;function uu(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ho(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ys(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function fu(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=uu(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),u=ys(e,a),l=ys.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}else return t.replace(e,n)}const Cn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,du=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function bs(e,t){return Rc(e,t)<0}function Re(e){return{input:e,cont:mu(e)}}function As(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ve(e){return As(t=>t,e)}function pu(e){return As(t=>{throw new Error(t)},e)}function hu(e,t,n,r,o){let i="";if(t=t||"",o=o||"",as(e))switch(o.toLowerCase()!=="x"&&(bs(e,0)?(e=lo(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=tr(e,r);break;case"g":case"G":e=r!=null?nr(e,r):nr(e);break;case"e":case"E":e=r!=null?rr(e,r):rr(e);break;case"x":e=or(e);break;case"X":e=or(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=ps(e):e=ae(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=En(e,n-i.length,u,a),e=i+e):e=En(i+e,n,u,a)}return e}function vs(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of i){const[,,f,c,m,p]=u[0];let g=c;if(o>=0)g=o,o=-1;else if(g==="*"){if(l<0)throw new Error("Non-negative number required");o=l;continue}s+=a[0],s+=hu(l,f,g,m,p),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):vs(e,a,u,s,o)}}function mu(e){return t=>{Cn.lastIndex=0;const n=[],r=[];let o=0,i=Cn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Cn.lastIndex,Cn.lastIndex-=1,i=Cn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),vs(t,n,r))}}function gu(e,...t){let n;return n=e,n.replace(du,(r,o,i,s,a,u)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[o];if(as(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=tr(l,a);break;case"g":case"G":l=a!=null?nr(l,a):nr(l);break;case"e":case"E":l=a!=null?rr(l,a):rr(l);break;case"p":case"P":a=a??2,l=tr(lo(l,100),a)+" %";break;case"d":case"D":l=a!=null?mo(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?mo(or(l),a,"0"):or(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,m,p)=>{bs(l,0)&&(l=lo(l,-1),f="-"),p=p==null?"":p.substring(1),l=tr(l,Math.max(p.length,0));let[g,_]=l.split(".");_||(_="");const w=m.replace(/,/g,"").replace(/^#+/,"").length;g=mo(g,w,"0");const y=p.replace(/#+$/,"").length;if(y>_.length?_=_u(_,y,"0"):y<_.length&&(_=_.substring(0,y)+_.substring(y).replace(/0+$/,"")),m.indexOf(",")>0){const C=g.length%3,T=Math.floor(g.length/3);let ee=C>0?g.substr(0,C)+(T>0?",":""):"";for(let Q=0;Q<T;Q++)ee+=g.substr(C+Q*3,3)+(Q<T-1?",":"");g=ee}return _.length>0?g+"."+_:g}),l=f+l}}else l instanceof Date?l=ps(l,u||s):l=ae(l);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(l=En(String(l),Math.abs(i)," ",i<0)),l})}function wu(e){return typeof e!="string"||e.length===0}function Me(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function En(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function mo(e,t,n){return En(e,t,n)}function _u(e,t,n){return En(e,t,n,!0)}function xs(e,t,n){return e.replace(new RegExp(ho(t),"g"),n)}function go(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(f=>f).map(ho),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=i?e.substring(l).trim():e.substring(l);(!o||c.length>0)&&s.push(c),u=!1}else{const c=i?e.substring(l,f.index).trim():e.substring(l,f.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function yu(e,...t){if(t.length===0)return e.trim();const n="["+ho(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Zt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return pt(this.value)}Equals(t){return t==null?!1:ke(this.value,t instanceof Zt?t.value:t)}CompareTo(t){return t==null?1:$e(this.value,t instanceof Zt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Fe(e){return e==null||e instanceof Zt?new Zt(e):e}function Ss(e,t){return e!=null?b(e):t}function bu(e,t){return t!=null?Fe(e(b(t))):void 0}function Au(e,t,n){return t!=null&&n!=null?e(b(t),b(n)):void 0}const Cs="Collection was empty.";function Es(e,t){return new Array(t)}function ks(e,t){return e>t?e:t}function wo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function gt(e,t,n){const r=t.length|0,o=Es(n,r);for(let i=0;i<=r-1;i++)vt(o,i,e(pe(i,t)));return o}function vu(e,t){const n=Es(t,1);return vt(n,0,e),n}function xu(e){return e.slice().reverse()}function Su(e,t){return t.find(e)}function Cu(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(pe(o,t));if(i!=null){const s=b(i);r.push(s)}}return ke(n,At())?r:gt(o=>o,r,n)}function fr(e,t,n){const r=e;return n.reduce(r,t)}function Eu(e,t,n){return t==null}function pe(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function vt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Is(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class ve extends G{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Me("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(ke(s.head,a.head)){o=f,i=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,u=i,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,o=(a<<1)+pt(u.head)+631*s,i=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),m=$e(s.head,a.head)|0;if(m===0){o=f,i=c;continue e}else return m|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return Iu(this)}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ne(this)}}class ku{constructor(t){this.xs=t,this.it=this.xs,this.current=At()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=b(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=At()}Dispose(){}}function Iu(e){return new ku(e)}function ue(){return new ve(At(),void 0)}function kn(e,t){return new ve(e,t)}function In(e){return e.tail==null}function Ds(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=b(s);continue e}else return o|0}})(0,e)|0}function dr(e){if(e.tail!=null)return e.head;throw new Error(Cs+"\\nParameter name: list")}function Le(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Cs+"\\nParameter name: list")}function he(){return ue()}function ze(e,t){return kn(e,t)}function W(e){return kn(e,ue())}function P(e){return In(e)}function Dn(e){return Ds(e)}function k(e){return dr(e)}function N(e){return Le(e)}function Jt(e){const t=Ds(e)|0,n=wo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!In(a)){vt(n,s,dr(a)),o=s+1,i=Le(a);continue e}break}})(0,e),n}function Ye(e,t,n){let r=t,o=n;for(;!In(o);)r=e(r,k(o)),o=Le(o);return r}function _o(e){return Ye((t,n)=>kn(n,t),ue(),e)}function Du(e,t,n){return Is(e,Jt(t),n)}function Tn(e,t){Ye((n,r)=>{e(r)},void 0,t)}function J(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=kn(pe(r,e),n);return n}function x(e){return J(e,ue())}function Tu(e){let t,n;if(Je(e))return x(e);if(e instanceof ve)return e;{const r=ue();let o=r;const i=ne(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new ve(u,void 0),t.tail=n,n)}}finally{q(i)}const s=o,a=ue();return s.tail=a,Le(r)}}function Ru(e){const t=ue();let n=t;const r=s=>{n=Ye((a,u)=>{const l=new ve(u,void 0);return a.tail=l,l},n,s)};if(Je(e))e.forEach(r);else if(e instanceof ve)Tn(r,e);else{const s=ne(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{q(s)}}const o=n,i=ue();return o.tail=i,Le(t)}function Rn(e,t){return Ye((n,r)=>kn(r,n),t,_o(e))}function xt(e,t){const n=ue(),r=Ye((i,s)=>{const a=new ve(e(s),void 0);return i.tail=a,a},n,t),o=ue();return r.tail=o,Le(n)}function Mu(e,t){return(r=>{e:for(;;){const o=r;if(In(o))return;{const i=e(dr(o));if(i==null){r=Le(o);continue e}else return i}}})(t)}function Fu(e,t){return Mu(n=>e(n)?Fe(n):void 0,t)}function Ou(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(In(s))return;if(e(dr(s)))return i;r=i+1,o=Le(s);continue e}})(0,t)}function Nu(e,t){const n=ue(),r=Ye((i,s)=>{if(e(s)){const a=new ve(s,void 0);return i.tail=a,a}else return i},n,t),o=ue();return r.tail=o,Le(n)}function Pu(e,t){const n=ue(),r=ue(),o=n,i=Ye((u,l)=>{let f,c;const m=u[0],p=u[1];return e(l)?[(f=new ve(l,void 0),m.tail=f,f),p]:[m,(c=new ve(l,void 0),p.tail=c,c)]},[o,r],t),s=ue();i[0].tail=s;const a=ue();return i[1].tail=a,[Le(o),Le(r)]}function Bu(e,t){const n=ue(),r=Ye((i,s)=>{const a=e(s);if(a==null)return i;{const u=new ve(b(a),void 0);return i.tail=u,u}},n,t),o=ue();return r.tail=o,Le(n)}function Ts(e,t,n){return Ou(r=>n.Equals(e,r),t)!=null}function ju(e,t){const n=Jt(t);return n.sort(e),x(n)}function $u(e,t,n){return ju((r,o)=>n.Compare(e(r),e(o))*-1,t)}function Hu(e){return new h(0,[e])}function Rs(e){return new h(1,[e])}class h extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function wt(e,t){return t.tag===0?Hu(e(t.fields[0])):Rs(t.fields[0])}function Uu(e,t){return t.tag===0?e(t.fields[0]):Rs(t.fields[0])}class E extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Dt extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ms(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Vu(e,t){switch(e.tag){case 2:return fu(Ms(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ms(t)}}const Lu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Fs=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,zu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Gu(e){function t(r){return r.replace(Fs,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Lu.test(n))return yu(n,"{","}","(",")");if(Fs.test(n))return t(n);if(zu.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Wu(e,t){try{return t.contents=Gu(e),!0}catch{return!1}}var yo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(yo||(yo={}));function Qu(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Os(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function qu(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Zu(e,t){if(t&yo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function Ju(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||Zu(i,t),!qu(n).test(s))return Qu(o,n)}return null}function Ku(e,t,n,r,o){const i=Ju(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,u]=Os(!0,r);!n&&i.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=Os(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Kt(e,t,n,r,o){try{return o.contents=Ku(e,t,n,r),!0}catch{return!1}}function Ns(e,t){Xu(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Xu(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Yu(){return Ns(-621355968e5,0)}function ef(e){const[t,n]=hs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ns(t.getTime(),r)}function tf(e,t){try{return t.contents=ef(e),!0}catch{return!1}}function Ps(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return nf(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function nf(e){return Number(BigInt(e)/10000n)}function rf(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ps(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Ps(o,u,l,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function of(e,t){try{return t.contents=rf(e),!0}catch{return!1}}function sf(e){throw new Error(e)}const af="Enumeration already finished.",lf="Enumeration has not started. Call MoveNext.",Bs="The input sequence has an insufficient number of elements.",cf="Reset is not supported on this enumerator.";function uf(){throw new Error(cf)}function bo(){throw new Error(lf)}function Ao(){throw new Error(af)}class ff{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=ne(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+ae(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{q(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function df(e){return new ff(e)}class pf{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){uf()}Dispose(){this.dispose()}}function pr(e,t,n){return new pf(e,t,n)}function hf(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=b(n);try{q(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{q(a)}finally{t=void 0}}};return pr(()=>(r?o&&Ao():bo(),i!=null?b(i):Ao()),()=>{let a;if(r||(r=!0),o)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())i=Fe(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{q(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),ne(a)):(s(),u=!1)}else t=ne(e)}return b(u)}},()=>{o||s()})}function mf(e,t){return pr(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{q(t)}finally{}})}function js(e,t,n){let r=!1,o,i=Fe(e());const s=()=>{if(i!=null){const u=b(i);try{n(u)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return pr(()=>(r||bo(),o!=null?b(o):Ao()),()=>{if(r||(r=!0),i!=null){const u=b(i);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(o=l,!0):(a(),!1)}else return!1},s)}function gf(e,t){let n,r=t;return pr(()=>{if(n!=null){const o=b(n)[0];return b(n)[1],o}else return bo()},()=>(n=e(r),n!=null?(b(n)[0],r=b(n)[1],!0):!1),()=>{})}function wf(e,t){t==null&&sf(e)}function Xt(e){return df(e)}function Tt(e){return wf("source",e),ne(e)}function M(e){return Xt(()=>ne(e()))}function $s(e){return Xt(()=>hf(e))}function _f(e,t){return Xt(()=>gf(e,t))}function Mn(){return M(()=>new Array(0))}function R(e){return M(()=>vu(e))}function b0(e){return e}function yf(e){return e instanceof ve?Jt(e):Array.from(e)}function Ge(e){return Je(e)?x(e):e instanceof ve?e:Tu(e)}function bf(e,t,n){return Xt(()=>js(e,t,n))}function Af(e,t,n){return Xt(()=>{let r=-1;return js(e,o=>(r=r+1|0,t(r,o)),n)})}function $(e,t){return $s([e,t])}function vf(e,t,n){const r=Tt(t);try{const o=Tt(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{q(o)}}finally{q(r)}}function Yt(e,t,n){const r=Tt(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function Hs(e,t,n){const r=Tt(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{q(r)}}function Us(e,t){Hs((n,r)=>{e(r)},void 0,t)}function et(e,t){return bf(()=>Tt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Fe(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{q(n)})}function xf(e){return M(()=>xu(yf(e)))}function Sf(e,t){return Xt(()=>{const n=Tt(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Bs+"\\nParameter name: source");return mf(()=>{},n)}catch(r){throw q(n),r}})}function Cf(e,t){return Af(()=>Tt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Fe(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bs+"\\nParameter name: source")}else return},n=>{q(n)})}function Fn(e,t){return M(()=>$s(et(e,t)))}class Vs{constructor(t,n){this.k=t,this.v=n}}function hr(e,t){return new Vs(e,t)}function xe(e){return e.k}function Oe(e){return e.v}class se extends Vs{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function mr(e,t,n,r,o){return new se(e,t,n,r,o)}function Se(e){return e.left}function Ce(e){return e.right}function Rt(e){return e.h}function A0(){}function Ls(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof se){const i=o;e=Ls(n+1,Se(i)),t=Ce(i);continue e}else return n+1|0}else return n|0}}function Ef(e){return Ls(0,e)}function tt(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof se?(o=c,Rt(o)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof se?(i=c,Rt(i)):1}else u=0;const f=(s<u?u:s)|0;return f===0?hr(t,n):mr(t,n,e,r,f+1)}function zs(e,t,n,r){let o,i,s,a,u,l,f,c,m;const p=e;if(p!=null){const w=b(p);m=w instanceof se?(o=w,Rt(o)):1}else m=0;let g;const _=r;if(_!=null){const w=b(_);g=w instanceof se?(i=w,Rt(i)):1}else g=0;if(g>m+2){const w=b(r);if(w instanceof se){const y=w;if(s=Se(y),(s!=null?(a=b(s),a instanceof se?(u=a,Rt(u)):1):0)>m+1){const C=b(Se(y));if(C instanceof se){const T=C;return tt(tt(e,t,n,Se(T)),xe(T),Oe(T),tt(Ce(T),xe(y),Oe(y),Ce(y)))}else throw new Error("internal error: Map.rebalance")}else return tt(tt(e,t,n,Se(y)),xe(y),Oe(y),Ce(y))}else throw new Error("internal error: Map.rebalance")}else if(m>g+2){const w=b(e);if(w instanceof se){const y=w;if(l=Ce(y),(l!=null?(f=b(l),f instanceof se?(c=f,Rt(c)):1):0)>g+1){const C=b(Ce(y));if(C instanceof se){const T=C;return tt(tt(Se(y),xe(y),Oe(y),Se(T)),xe(T),Oe(T),tt(Ce(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return tt(Se(y),xe(y),Oe(y),tt(Ce(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return tt(e,t,n,r)}function en(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,xe(o))|0;if(o instanceof se){const s=o;return i<0?zs(en(e,t,n,Se(s)),xe(s),Oe(s),Ce(s)):i===0?mr(t,n,Se(s),Ce(s),Rt(s)):zs(Se(s),xe(s),Oe(s),en(e,t,n,Ce(s)))}else return i<0?mr(t,n,void 0,r,2):i===0?hr(t,n):mr(t,n,r,void 0,2)}else return hr(t,n)}function Gs(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,xe(s))|0;if(a===0)return Fe(Oe(s));if(s instanceof se){const u=s;e=r,t=o,n=a<0?Se(u):Ce(u);continue e}else return}else return}}function kf(e,t,n){const r=Gs(e,t,n);if(r==null)throw new Error;return b(r)}function If(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,xe(s))|0;if(s instanceof se){const u=s;if(a<0){e=r,t=o,n=Se(u);continue e}else{if(a===0)return!0;e=r,t=o,n=Ce(u);continue e}}else return a===0}else return!1}}function Ws(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof se){const i=o;Ws(n,Se(i)),n(xe(i),Oe(i)),e=n,t=Ce(i);continue e}else n(xe(o),Oe(o))}break}}function Df(e,t){Ws(e,t)}function Tf(e,t,n){let r=n;Df((o,i)=>{vt(t,r,[o,i]),r=r+1|0},e)}function Rf(e,t){return Ye((n,r)=>en(e,r[0],r[1],n),void 0,t)}function Mf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=en(r,s[0],s[1],o),n=i;continue e}else return o}}function Ff(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=pe(r,t);n=en(e,o[0],o[1],n)}return n}function Qs(e,t){if(Je(t))return Ff(e,t);if(t instanceof ve)return Rf(e,t);{const n=ne(t);try{return Mf(e,void 0,n)}finally{q(n)}}}class Of extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function qs(e){e:for(;;){const t=e;if(P(t))return he();{const n=N(t),r=k(t);if(r!=null){const o=b(r);if(o instanceof se){const i=o;e=J([Se(i),hr(xe(i),Oe(i)),Ce(i)],n);continue e}else return t}else{e=n;continue e}}}}function Zs(e){return new Of(qs(W(e)),!1)}function Nf(){throw new Error("enumeration not started")}function Pf(){throw new Error("enumeration already finished")}function Js(e){if(e.started){const t=e.stack;if(P(t))return Pf();if(k(t)!=null){const n=b(k(t));if(n instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for current");return[xe(n),Oe(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Nf()}function Bf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof se)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=qs(N(t)),!P(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function Ks(e){let t=Zs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Js(t)},"System.Collections.IEnumerator.get_Current"(){return Js(t)},"System.Collections.IEnumerator.MoveNext"(){return Bf(t)},"System.Collections.IEnumerator.Reset"(){t=Zs(e)},Dispose(){}}}class gr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Uf(this)|0}Equals(t){const n=this;if(t instanceof gr){const r=t,o=ne(n);try{const i=ne(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"](),l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return ke(u[0],l[0])&&ke(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{q(i)}}finally{q(o)}}else return!1}toString(){return"map ["+Me("; ",et(n=>gu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ks(this.tree)}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(this.tree)}CompareTo(t){const n=this;if(t instanceof gr)return vf((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:$e(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ys(n,t[0])&&ke(Xs(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tf(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vo(this)|0}get size(){return vo(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return et(n=>[n[0],n[1]],this)}get(t){return Xs(this,t)}has(t){return Ys(this,t)}keys(){return et(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return et(n=>n[1],this)}forEach(t,n){const r=this;Us(o=>{t(o[1],o[0],r)},r)}}function wr(e,t){return new gr(e,t)}function jf(e){return wr(e,void 0)}function $f(e,t,n){return wr(e.comparer,en(e.comparer,t,n,e.tree))}function Xs(e,t){return kf(e.comparer,t,e.tree)}function vo(e){return Ef(e.tree)}function Ys(e,t){return If(e.comparer,t,e.tree)}function Hf(e,t){return Gs(e.comparer,t,e.tree)}function Uf(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=ne(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,pt(o[0]))|0,n=t(n,pt(o[1]))|0}}finally{q(r)}return n|0}function Vf(e,t,n){return $f(n,e,t)}function Lf(e,t){return Hf(t,e)}function zf(e,t){return wr(t,Qs(t,e))}function Gf(e,t){return wr(t,Qs(t,e))}function ea(e){return jf(e)}class ta{constructor(t){this.k=t}}function Ne(e){return new ta(e)}function F(e){return e.k}class B extends ta{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function Pe(e,t,n,r){return new B(e,t,n,r)}function L(e){return e.left}function H(e){return e.right}function tn(e){return e.h}function v0(){}function na(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=L(i),t=na(H(i),r+1);continue e}else return r+1|0}else return r|0}}function Wf(e){return na(e,0)}function nt(e,t,n){let r,o,i;const s=e;if(s!=null){const f=b(s);i=f instanceof B?(r=f,tn(r)):1}else i=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof B?(o=f,tn(o)):1}else a=0;const l=(i<a?a:i)|0;return l===0?Ne(t):Pe(t,e,n,l+1)}function ra(e,t,n){let r,o,i,s,a,u,l,f,c;const m=e;if(m!=null){const _=b(m);c=_ instanceof B?(r=_,tn(r)):1}else c=0;let p;const g=n;if(g!=null){const _=b(g);p=_ instanceof B?(o=_,tn(o)):1}else p=0;if(p>c+2){const _=b(n);if(_ instanceof B){const w=_;if(i=L(w),(i!=null?(s=b(i),s instanceof B?(a=s,tn(a)):1):0)>c+1){const y=b(L(w));if(y instanceof B){const C=y;return nt(nt(e,t,L(C)),F(C),nt(H(C),F(w),H(w)))}else throw new Error("internal error: Set.rebalance")}else return nt(nt(e,t,L(w)),F(w),H(w))}else throw new Error("internal error: Set.rebalance")}else if(c>p+2){const _=b(e);if(_ instanceof B){const w=_;if(u=H(w),(u!=null?(l=b(u),l instanceof B?(f=l,tn(f)):1):0)>p+1){const y=b(H(w));if(y instanceof B){const C=y;return nt(nt(L(w),F(w),L(C)),F(C),nt(H(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return nt(L(w),F(w),nt(H(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return nt(e,t,n)}function nn(e,t,n){if(n!=null){const r=b(n),o=e.Compare(t,F(r))|0;if(r instanceof B){const i=r;return o<0?ra(nn(e,t,L(i)),F(i),H(i)):o===0?n:ra(L(i),F(i),nn(e,t,H(i)))}else{const i=e.Compare(t,F(r))|0;return i<0?Pe(t,void 0,n,2):i===0?n:Pe(t,n,void 0,2)}}else return Ne(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=b(i),a=r.Compare(o,F(s))|0;if(s instanceof B){const u=s;if(a<0){e=r,t=o,n=L(u);continue e}else{if(a===0)return!0;e=r,t=o,n=H(u);continue e}}else return a===0}else return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=b(r);if(o instanceof B){const i=o;ia(n,L(i)),n(F(i)),e=n,t=H(i);continue e}else n(F(o))}break}}class Qf extends G{constructor(t,n){super(),this.stack=t,this.started=n}}function sa(e){e:for(;;){const t=e;if(P(t))return he();{const n=k(t),r=N(t);if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=J([L(i),Ne(F(i)),H(i)],r);continue e}else return t}else{e=r;continue e}}}}function aa(e){return new Qf(sa(W(e)),!1)}function qf(){throw new Error("Enumeration not started")}function Zf(){throw new Error("Enumeration already started")}function la(e){if(e.started){const t=e.stack;if(P(t))return Zf();if(k(t)!=null){const n=b(k(t));return F(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return qf()}function Jf(e){if(e.started){const t=e.stack;if(P(t))return!1;if(k(t)!=null){if(b(k(t))instanceof B)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sa(N(t)),!P(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!P(e.stack)}function ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return la(t)},"System.Collections.IEnumerator.get_Current"(){return la(t)},"System.Collections.IEnumerator.MoveNext"(){return Jf(t)},"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function Kf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(P(o))return P(i)?0:-1;if(P(i))return 1;if(k(i)!=null)if(k(o)!=null){const s=b(k(o)),a=b(k(i));if(s instanceof B){const u=s;if(L(u)==null)if(a instanceof B){const l=a;if(L(l)==null){const f=r.Compare(F(u),F(l))|0;if(f!==0)return f|0;e=r,t=ze(H(u),N(o)),n=ze(H(l),N(i));continue e}else{let f,c,m,p,g;switch(P(o)?P(i)?f=2:k(i)!=null?(f=1,p=N(i),g=b(k(i))):f=2:k(o)!=null?(f=0,c=N(o),m=b(k(o))):P(i)?f=2:k(i)!=null?(f=1,p=N(i),g=b(k(i))):f=2,f){case 0:if(m instanceof B){const _=m;e=r,t=J([L(_),Pe(F(_),void 0,H(_),0)],c),n=i;continue e}else{e=r,t=J([void 0,Ne(F(m))],c),n=i;continue e}case 1:if(g instanceof B){const _=g;e=r,t=o,n=J([L(_),Pe(F(_),void 0,H(_),0)],p);continue e}else{e=r,t=o,n=J([void 0,Ne(F(g))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(F(u),F(a))|0;if(l!==0)return l|0;e=r,t=ze(H(u),N(o)),n=ze(void 0,N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=J([L(g),Pe(F(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=J([void 0,Ne(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=J([L(g),Pe(F(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=J([void 0,Ne(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof B){const u=a;if(L(u)==null){const l=r.Compare(F(s),F(u))|0;if(l!==0)return l|0;e=r,t=ze(void 0,N(o)),n=ze(H(u),N(i));continue e}else{let l,f,c,m,p;switch(P(o)?P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2:k(o)!=null?(l=0,f=N(o),c=b(k(o))):P(i)?l=2:k(i)!=null?(l=1,m=N(i),p=b(k(i))):l=2,l){case 0:if(c instanceof B){const g=c;e=r,t=J([L(g),Pe(F(g),void 0,H(g),0)],f),n=i;continue e}else{e=r,t=J([void 0,Ne(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=J([L(g),Pe(F(g),void 0,H(g),0)],m);continue e}else{e=r,t=o,n=J([void 0,Ne(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(F(s),F(a))|0;if(u!==0)return u|0;e=r,t=N(o),n=N(i);continue e}}else{b(k(i));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=J([L(c),Pe(F(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Ne(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=J([L(c),Pe(F(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=J([void 0,Ne(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(k(o)!=null){b(k(o));let s,a,u,l,f;switch(P(o)?P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2:k(o)!=null?(s=0,a=N(o),u=b(k(o))):P(i)?s=2:k(i)!=null?(s=1,l=N(i),f=b(k(i))):s=2,s){case 0:if(u instanceof B){const c=u;e=r,t=J([L(c),Pe(F(c),void 0,H(c),0)],a),n=i;continue e}else{e=r,t=J([void 0,Ne(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=J([L(c),Pe(F(c),void 0,H(c),0)],l);continue e}else{e=r,t=o,n=J([void 0,Ne(F(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=N(o),n=N(i);continue e}}}function ua(e,t,n){return t==null?n==null?0:-1:n==null?1:Kf(e,W(t),W(n))|0}function Xf(e,t,n){let r=n;ia(o=>{vt(t,r,o),r=r+1|0},e)}function Yf(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=nn(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function ed(e,t){return fr((n,r)=>nn(e,r,n),void 0,t)}function td(e,t){return Ye((n,r)=>nn(e,r,n),void 0,t)}function fa(e,t){if(Je(t))return ed(e,t);if(t instanceof ve)return td(e,t);{const n=ne(t);try{return Yf(e,void 0,n)}finally{q(n)}}}class xo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return od(this)|0}Equals(t){let n;const r=this;return t instanceof xo&&(n=t,ua(rn(r),rt(r),rt(n))===0)}toString(){return"set ["+Me("; ",et(n=>ae(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ua(rn(n),rt(n),rt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return oa(rn(n),t,rt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Xf(rt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return So(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return So(this)|0}GetEnumerator(){return ca(rt(this))}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(rt(this))}get size(){return So(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return da(this,t)}keys(){return et(n=>n,this)}values(){return et(n=>n,this)}entries(){return et(n=>[n,n],this)}forEach(t,n){const r=this;Us(o=>{t(o,o,r)},r)}}function _r(e,t){return new xo(e,t)}function rn(e){return e.comparer}function rt(e){return e.tree}function nd(e){return _r(e,void 0)}function rd(e,t){return _r(rn(e),nn(rn(e),t,rt(e)))}function So(e){return Wf(rt(e))}function da(e,t){return oa(rn(e),t,rt(e))}function od(e){let t=0;const n=ne(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+pt(r)+631|0}}finally{q(n)}return Math.abs(t)|0}function Co(e,t){return da(t,e)}function id(e,t){return rd(t,e)}function sd(e){return nd(e)}function ad(e,t){return _r(t,fa(t,e))}function ld(e,t){return _r(t,fa(t,e))}function On(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ (function(){"use strict";var br,H,ds,Tn,ps,fs,ms,hs,yo,xo,bo,gs,_r={},ws=[],Xd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ar=Array.isArray;function jt(e,t){for(var n in t)e[n]=t[n];return e}function _o(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function p(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?br.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Cr(e,a,r,i,null)}function Cr(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ds,__i:-1,__u:0};return i==null&&H.vnode!=null&&H.vnode(o),o}function Ao(){return{current:null}}function J(e){return e.children}function vt(e,t){this.props=e,this.context=t}function qn(e,t){if(t==null)return e.__?qn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?qn(e):null}function vs(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return vs(e)}}function Co(e){(!e.__d&&(e.__d=!0)&&Tn.push(e)&&!ni.__r++||ps!=H.debounceRendering)&&((ps=H.debounceRendering)||fs)(ni)}function ni(){for(var e,t,n,r,i,o,a,s=1;Tn.length;)Tn.length>s&&Tn.sort(ms),e=Tn.shift(),s=Tn.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],a=[],t.__P&&((n=jt({},r)).__v=r.__v+1,H.vnode&&H.vnode(n),ko(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??qn(r),!!(32&r.__u),a),n.__v=r.__v,n.__.__k[n.__i]=n,As(o,n,a),n.__e!=i&&vs(n)));ni.__r=0}function ys(e,t,n,r,i,o,a,s,l,c,d){var u,m,f,h,v,g,b=r&&r.__k||ws,C=t.length;for(l=Yd(n,t,b,l,C),u=0;u<C;u++)(f=n.__k[u])!=null&&(m=f.__i==-1?_r:b[f.__i]||_r,f.__i=u,g=ko(e,f,m,i,o,a,s,l,c,d),h=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&So(m.ref,null,f),d.push(f.ref,f.__c||h,f)),v==null&&h!=null&&(v=h),4&f.__u||m.__k===f.__k?l=xs(f,l,e):typeof f.type=="function"&&g!==void 0?l=g:h&&(l=h.nextSibling),f.__u&=-7);return n.__e=v,l}function Yd(e,t,n,r,i){var o,a,s,l,c,d=n.length,u=d,m=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+m,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Cr(null,a,null,null,null):Ar(a)?Cr(J,{children:a},null,null,null):a.constructor==null&&a.__b>0?Cr(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=ep(a,n,l,u))!=-1&&(u--,(s=n[c])&&(s.__u|=2)),s==null||s.__v==null?(c==-1&&(i>d?m--:i<d&&m++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?m--:c==l+1?m++:(c>l?m--:m++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=n[o])!=null&&(2&s.__u)==0&&(s.__e==r&&(r=qn(s)),ks(s,s));return r}function xs(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=xs(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=qn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Gt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ar(e)?e.some(function(n){Gt(n,t)}):t.push(e)),t}function ep(e,t,n,r){var i,o,a=e.key,s=e.type,l=t[n];if(l===null&&e.key==null||l&&a==l.key&&s==l.type&&(2&l.__u)==0)return n;if(r>(l!=null&&(2&l.__u)==0?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&(2&l.__u)==0&&a==l.key&&s==l.type)return i;i--}if(o<t.length){if((l=t[o])&&(2&l.__u)==0&&a==l.key&&s==l.type)return o;o++}}return-1}function bs(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Xd.test(t)?n:n+"px"}function ri(e,t,n,r,i){var o,a;e:if(t=="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||bs(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||bs(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(hs,"$1")),a=t.toLowerCase(),t=a in e||t=="onFocusOut"||t=="onFocusIn"?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=yo,e.addEventListener(t,o?bo:xo,o)):e.removeEventListener(t,o?bo:xo,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function _s(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=yo++;else if(t.t<n.u)return;return n(H.event?H.event(t):t)}}}function ko(e,t,n,r,i,o,a,s,l,c){var d,u,m,f,h,v,g,b,C,E,R,M,j,z,ce,Se,ue,ve=t.type;if(t.constructor!=null)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(d=H.__b)&&d(t);e:if(typeof ve=="function")try{if(b=t.props,C="prototype"in ve&&ve.prototype.render,E=(d=ve.contextType)&&r[d.__c],R=d?E?E.props.value:d.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:(C?t.__c=u=new ve(b,R):(t.__c=u=new vt(b,R),u.constructor=ve,u.render=np),E&&E.sub(u),u.props=b,u.state||(u.state={}),u.context=R,u.__n=r,m=u.__d=!0,u.__h=[],u._sb=[]),C&&u.__s==null&&(u.__s=u.state),C&&ve.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=jt({},u.__s)),jt(u.__s,ve.getDerivedStateFromProps(b,u.__s))),f=u.props,h=u.state,u.__v=t,m)C&&ve.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),C&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(C&&ve.getDerivedStateFromProps==null&&b!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(b,R),!u.__e&&u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(b,u.__s,R)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(u.props=b,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Ze){Ze&&(Ze.__=t)}),M=0;M<u._sb.length;M++)u.__h.push(u._sb[M]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(b,u.__s,R),C&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,v)})}if(u.context=R,u.props=b,u.__P=e,u.__e=!1,j=H.__r,z=0,C){for(u.state=u.__s,u.__d=!1,j&&j(t),d=u.render(u.props,u.state,u.context),ce=0;ce<u._sb.length;ce++)u.__h.push(u._sb[ce]);u._sb=[]}else do u.__d=!1,j&&j(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++z<25);u.state=u.__s,u.getChildContext!=null&&(r=jt(jt({},r),u.getChildContext())),C&&!m&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,h)),Se=d,d!=null&&d.type===J&&d.key==null&&(Se=Cs(d.props.children)),s=ys(e,Ar(Se)?Se:[Se],t,n,r,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),g&&(u.__E=u.__=null)}catch(Ze){if(t.__v=null,l||o!=null)if(Ze.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(ue=o.length;ue--;)_o(o[ue]);else t.__e=n.__e,t.__k=n.__k;H.__e(Ze,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):s=t.__e=tp(n.__e,t,n,r,i,o,a,l,c);return(d=H.diffed)&&d(t),128&t.__u?void 0:s}function As(e,t,n){for(var r=0;r<n.length;r++)So(n[r],n[++r],n[++r]);H.__c&&H.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){H.__e(o,i.__v)}})}function Cs(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Ar(e)?e.map(Cs):jt({},e)}function tp(e,t,n,r,i,o,a,s,l){var c,d,u,m,f,h,v,g=n.props,b=t.props,C=t.type;if(C=="svg"?i="http://www.w3.org/2000/svg":C=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!C&&(C?f.localName==C:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(C==null)return document.createTextNode(b);e=document.createElementNS(i,C,b.is&&b),s&&(H.__m&&H.__m(t,o),s=!1),o=null}if(C==null)g===b||s&&e.data==b||(e.data=b);else{if(o=o&&br.call(e.childNodes),g=n.props||_r,!s&&o!=null)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)if(f=g[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in b)){if(c=="value"&&"defaultValue"in b||c=="checked"&&"defaultChecked"in b)continue;ri(e,c,null,f,i)}}for(c in b)f=b[c],c=="children"?m=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?v=f:s&&typeof f!="function"||g[c]===f||ri(e,c,f,g[c],i);if(d)s||u&&(d.__html==u.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),ys(t.type=="template"?e.content:e,Ar(m)?m:[m],t,n,r,C=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&qn(n,0),s,l),o!=null)for(c=o.length;c--;)_o(o[c]);s||(c="value",C=="progress"&&h==null?e.removeAttribute("value"):h!=null&&(h!==e[c]||C=="progress"&&!h||C=="option"&&h!=g[c])&&ri(e,c,h,g[c],i),c="checked",v!=null&&v!=e[c]&&ri(e,c,v,g[c],i))}return e}function So(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){H.__e(i,n)}}function ks(e,t,n){var r,i;if(H.unmount&&H.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||So(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){H.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ks(r[i],t,n||typeof e.type!="function");n||_o(e.__e),e.__c=e.__=e.__e=void 0}function np(e,t,n){return this.constructor(e,n)}function dn(e,t,n){var r,i,o,a;t==document&&(t=document.documentElement),H.__&&H.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],a=[],ko(t,e=(!r&&n||t).__k=p(J,null,[e]),i||_r,_r,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?br.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),As(o,e,a)}function Eo(e,t){dn(e,t,Eo)}function To(e,t,n){var r,i,o,a,s=jt({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!=null?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?br.call(arguments,2):n),Cr(e.type,s,r||e.key,i||e.ref,null)}function nt(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(a){a.__e=!0,Co(a)})},this.sub=function(o){r.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),a&&a.call(o)}}),n.children}return t.__c="__cC"+gs++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}br=ws.slice,H={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},ds=0,vt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},n),this.props)),e&&jt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Co(this))},vt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Co(this))},vt.prototype.render=J,Tn=[],fs=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ms=function(e,t){return e.__v.__b-t.__v.__b},ni.__r=0,hs=/(PointerCapture)$|Capture$/i,yo=0,xo=_s(!1),bo=_s(!0),gs=0;var Qt,X,Do,Ss,Wn=0,Es=[],de=H,Ts=de.__b,Ds=de.__r,Is=de.diffed,Rs=de.__c,Fs=de.unmount,Ms=de.__;function Dn(e,t){de.__h&&de.__h(X,e,Wn||t),Wn=0;var n=X.__H||(X.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return Wn=1,Gn(Ns,e)}function Gn(e,t,n){var r=Dn(Qt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ns(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],c=r.t(l,s);l!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=X,!X.__f)){var i=function(s,l,c){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(m){return!!m.__c});if(d.every(function(m){return!m.__N}))return!o||o.call(this,s,l,c);var u=r.__c.props!==s;return d.forEach(function(m){if(m.__N){var f=m.__[0];m.__=m.__N,m.__N=void 0,f!==m.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};X.__f=!0;var o=X.shouldComponentUpdate,a=X.componentWillUpdate;X.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},X.shouldComponentUpdate=i}return r.__N||r.__}function pe(e,t){var n=Dn(Qt++,3);!de.__s&&Fo(n.__H,t)&&(n.__=e,n.u=t,X.__H.__h.push(n))}function In(e,t){var n=Dn(Qt++,4);!de.__s&&Fo(n.__H,t)&&(n.__=e,n.u=t,X.__h.push(n))}function U(e){return Wn=5,se(function(){return{current:e}},[])}function ii(e,t,n){Wn=6,In(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function se(e,t){var n=Dn(Qt++,7);return Fo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ne(e,t){return Wn=8,se(function(){return e},t)}function Be(e){var t=X.context[e.__c],n=Dn(Qt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(X)),t.props.value):e.__}function Io(e,t){de.useDebugValue&&de.useDebugValue(t?t(e):e)}function rp(e){var t=Dn(Qt++,10),n=ye();return t.__=e,X.componentDidCatch||(X.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function pn(){var e=Dn(Qt++,11);if(!e.__){for(var t=X.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function ip(){for(var e;e=Es.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(oi),e.__H.__h.forEach(Ro),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}de.__b=function(e){X=null,Ts&&Ts(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ms&&Ms(e,t)},de.__r=function(e){Ds&&Ds(e),Qt=0;var t=(X=e.__c).__H;t&&(Do===X?(t.__h=[],X.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(oi),t.__h.forEach(Ro),t.__h=[],Qt=0)),Do=X},de.diffed=function(e){Is&&Is(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Es.push(t)!==1&&Ss===de.requestAnimationFrame||((Ss=de.requestAnimationFrame)||op)(ip)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Do=X=null},de.__c=function(e,t){t.some(function(n){try{n.__h.forEach(oi),n.__h=n.__h.filter(function(r){return!r.__||Ro(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],de.__e(r,n.__v)}}),Rs&&Rs(e,t)},de.unmount=function(e){Fs&&Fs(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{oi(r)}catch(i){t=i}}),n.__H=void 0,t&&de.__e(t,n.__v))};var js=typeof requestAnimationFrame=="function";function op(e){var t,n=function(){clearTimeout(r),js&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);js&&(t=requestAnimationFrame(n))}function oi(e){var t=X,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),X=t}function Ro(e){var t=X;e.__c=e.__(),X=t}function Fo(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ns(e,t){return typeof t=="function"?t(e):t}function $s(e,t){for(var n in t)e[n]=t[n];return e}function Mo(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function ai(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return In(function(){i.__=n,i.u=t,jo(i)&&o({t:i})},[e,n,t]),pe(function(){return jo(i)&&o({t:i}),e(function(){jo(i)&&o({t:i})})},[e]),n}function jo(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function No(e){e()}function $o(e){return e}function Oo(){return[!1,No]}var Po=In;function si(e,t){this.props=e,this.context=t}function Os(e,t){function n(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Mo(this.props,i)}function r(i){return this.shouldComponentUpdate=n,p(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(si.prototype=new vt).isPureReactComponent=!0,si.prototype.shouldComponentUpdate=function(e,t){return Mo(this.props,e)||Mo(this.state,t)};var Ps=H.__b;H.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ps&&Ps(e)};var ap=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function li(e){function t(n){var r=$s({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=ap,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Bs=function(e,t){return e==null?null:Gt(Gt(e).map(t))},Hs={map:Bs,forEach:Bs,count:function(e){return e?Gt(e).length:0},only:function(e){var t=Gt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Gt},sp=H.__e;H.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}sp(e,t,n,r)};var Ls=H.unmount;function zs(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=$s({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return zs(r,t,n)})),e}function Us(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Us(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function kr(){this.__u=0,this.o=null,this.__b=null}function Vs(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function qs(e){var t,n,r;function i(o){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return p(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Qn(){this.i=null,this.l=null}H.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ls&&Ls(e)},(kr.prototype=new vt).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Vs(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Us(l,l.__c.__P,l.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.o.pop();)c.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},kr.prototype.componentWillUnmount=function(){this.o=[]},kr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=zs(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&p(J,null,e.fallback);return i&&(i.__u&=-33),[p(J,null,t.__a?null:e.children),i]};var Ws=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function lp(e){return this.getChildContext=function(){return e.context},e.children}function cp(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){dn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}dn(p(lp,{context:t.context},e.__v),t.v)}function Bo(e,t){var n=p(cp,{__v:e,h:t});return n.containerInfo=t,n}(Qn.prototype=new vt).__a=function(e){var t=this,n=Vs(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ws(t,e,r)):i()};n?n(o):o()}},Qn.prototype.render=function(e){this.i=null,this.l=new Map;var t=Gt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Qn.prototype.componentDidUpdate=Qn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ws(e,n,t)})};var Gs=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,up=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,dp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pp=/[A-Z0-9]/g,fp=typeof document<"u",mp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Qs(e,t,n){return t.__k==null&&(t.textContent=""),dn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ks(e,t,n){return Eo(e,t),typeof n=="function"&&n(),e?e.__c:null}vt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(vt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Zs=H.event;function hp(){}function gp(){return this.cancelBubble}function wp(){return this.defaultPrevented}H.event=function(e){return Zs&&(e=Zs(e)),e.persist=hp,e.isPropagationStopped=gp,e.isDefaultPrevented=wp,e.nativeEvent=e};var Ho,vp={enumerable:!1,configurable:!0,get:function(){return this.class}},Js=H.vnode;H.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||fp&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||mp(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":dp.test(a)&&(a=l):l=a="oninput":o&&up.test(a)?a=a.replace(pp,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Gt(n.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Gt(n.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",vp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Gs,Js&&Js(e)};var Xs=H.__r;H.__r=function(e){Xs&&Xs(e),Ho=e.__c};var Ys=H.diffed;H.diffed=function(e){Ys&&Ys(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Ho=null};var el={ReactCurrentDispatcher:{current:{readContext:function(e){return Ho.__n[e.__c].props.value},useCallback:ne,useContext:Be,useDebugValue:Io,useDeferredValue:$o,useEffect:pe,useId:pn,useImperativeHandle:ii,useInsertionEffect:Po,useLayoutEffect:In,useMemo:se,useReducer:Gn,useRef:U,useState:ye,useSyncExternalStore:ai,useTransition:Oo}}},yp="18.3.1";function tl(e){return p.bind(null,e)}function Kn(e){return!!e&&e.$$typeof===Gs}function nl(e){return Kn(e)&&e.type===J}function rl(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Lo(e){return Kn(e)?To.apply(null,arguments):e}function il(e){return!!e.__k&&(dn(null,e),!0)}function ol(e){return e&&(e.base||e.nodeType===1&&e)||null}var al=function(e,t){return e(t)},sl=function(e,t){return e(t)},ll=J,cl=Kn,$={useState:ye,useId:pn,useReducer:Gn,useEffect:pe,useLayoutEffect:In,useInsertionEffect:Po,useTransition:Oo,useDeferredValue:$o,useSyncExternalStore:ai,startTransition:No,useRef:U,useImperativeHandle:ii,useMemo:se,useCallback:ne,useContext:Be,useDebugValue:Io,version:"18.3.1",Children:Hs,render:Qs,hydrate:Ks,unmountComponentAtNode:il,createPortal:Bo,createElement:p,createContext:nt,createFactory:tl,cloneElement:Lo,createRef:Ao,Fragment:J,isValidElement:Kn,isElement:cl,isFragment:nl,isMemo:rl,findDOMNode:ol,Component:vt,PureComponent:si,memo:Os,forwardRef:li,flushSync:sl,unstable_batchedUpdates:al,StrictMode:ll,Suspense:kr,SuspenseList:Qn,lazy:qs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el};const zo=Object.freeze(Object.defineProperty({__proto__:null,Children:Hs,Component:vt,Fragment:J,PureComponent:si,StrictMode:ll,Suspense:kr,SuspenseList:Qn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:el,cloneElement:Lo,createContext:nt,createElement:p,createFactory:tl,createPortal:Bo,createRef:Ao,default:$,findDOMNode:ol,flushSync:sl,forwardRef:li,hydrate:Ks,isElement:cl,isFragment:nl,isMemo:rl,isValidElement:Kn,lazy:qs,memo:Os,render:Qs,startTransition:No,unmountComponentAtNode:il,unstable_batchedUpdates:al,useCallback:ne,useContext:Be,useDebugValue:Io,useDeferredValue:$o,useEffect:pe,useErrorBoundary:rp,useId:pn,useImperativeHandle:ii,useInsertionEffect:Po,useLayoutEffect:In,useMemo:se,useReducer:Gn,useRef:U,useState:ye,useSyncExternalStore:ai,useTransition:Oo,version:yp},Symbol.toStringTag,{value:"Module"}));function yt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function xp(e){return e!=null&&typeof e.GetEnumerator=="function"}function bp(e){return e!=null&&typeof e.CompareTo=="function"}function _p(e){return e!=null&&typeof e.Equals=="function"}function ul(e){return e!=null&&typeof e.GetHashCode=="function"}function Uo(e){return e!=null&&typeof e.Dispose=="function"}function oe(e){Uo(e)&&e.Dispose()}function ct(){return null}function ci(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class Ap{constructor(t){this.iter=t,this.current=ct()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function xe(e){return xp(e)?e.GetEnumerator():new Ap(e[Symbol.iterator]())}function ui(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Cp{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Q(e,t){return e.toString(10).padStart(t,"0")}function kp(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function dl(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Sp(e,t){return e=e,e.toString(t)}function Nt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Kt{static id(t){return Kt.idMap.has(t)||Kt.idMap.set(t,++Kt.count),Kt.idMap.get(t)}}Kt.idMap=new WeakMap,Kt.count=0;function di(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function xt(e){return e*2654435761|0}function pl(e){return di(e.toString(32))}function Sr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function Ep(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return xt(e);case"bigint":return pl(e);case"string":return di(e);default:return xt(Kt.id(e))}}function Tp(e){return ul(e)?e.GetHashCode():Ep(e)}function Dp(e){return e.getTime()}function Ip(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Zt(e[r]);return Sr(n)}function Zt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return xt(e);case"bigint":return pl(e);case"string":return di(e);default:{if(ul(e))return e.GetHashCode();if(yt(e))return Ip(e);if(e instanceof Date)return Dp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Zt(r));return Sr(n)}else return xt(Kt.id(e))}}}function pi(e){return Tp(e)}function Vo(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function fl(e,t){return Vo(e,t,we)}function Rp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!we(e[n[i]],t[r[i]]))return!1;return!0}function we(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:_p(e)?e.Equals(t):yt(e)?yt(t)&&fl(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&qo(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Rp(e,t)}function qo(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+dl(e),r=t.getTime()+dl(t)),n===r?0:n<r?-1:1}function fi(e,t){return e===t?0:e<t?-1:1}function Fp(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function ml(e,t){return Fp(e,t,ut)}function Mp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const a=n[i];if(a!==r[i])return a<r[i]?-1:1;if(o=ut(e[a],t[a]),o!==0)return o}return 0}function ut(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:bp(e)?e.CompareTo(t):yt(e)?yt(t)?ml(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?qo(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Mp(e,t):-1}function _(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function jp(e){yt(e)?e.splice(0):e.clear()}const mi=new WeakMap;function K(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return mi.set(t,e),t}function He(e){return mi.get(e)??(t=>n=>e(t,n))}function Wo(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return mi.set(t,e),t}function hi(e){return mi.get(e)??(t=>n=>r=>e(t,n,r))}function Np(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ee(r);else if(t===100){n+="; ...";break}else n+="; "+Ee(r);t++}return n+"]"}function Ee(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Np(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Ee(o,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function $p(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ee(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ee(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class L{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return $p(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Zt(n));return t.splice(0,0,xt(this.tag)),Sr(t)}Equals(t){return this===t?!0:ci(this,t)&&this.tag===t.tag?fl(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ci(this,t)?this.tag===t.tag?ml(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Op(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Pp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ee(n)).join(`
3
+ `)+" }"}function Bp(e){const t=Object.values(e).map(n=>Zt(n));return Sr(t)}function Hp(e,t){if(e===t)return!0;if(ci(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!we(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Lp(e,t){if(e===t)return 0;if(ci(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ut(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Z{toJSON(){return Op(this)}toString(){return Pp(this)}GetHashCode(){return Bp(this)}Equals(t){return Hp(this,t)}CompareTo(t){return Lp(this,t)}}class dt{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class zp{constructor(t){this.message=t}}function Up(e){return e instanceof zp||e instanceof Error}function Vp(e){return e instanceof Promise}function gi(e){return Up(e)||Vp(e)?e:new Error(String(e))}const Zn=Symbol("numeric");function hl(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zn])}function qp(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Go(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zn]().multiply(t)}function wi(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zn]().toFixed(t)}function vi(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zn]().toPrecision(t)}function yi(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zn]().toExponential(t)}function xi(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zn]().toHex()}class Wp{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Le{constructor(t,n,r,i,o,a,s){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=a,this.enumCases=s}toString(){return ae(this)}GetHashCode(){return gl(this)}Equals(t){return Qo(this,t)}}function rt(e){return e.generics!=null?e.generics:[]}function gl(e){const t=di(e.fullname),n=rt(e).map(gl);return Sr([t,...n])}function Qo(e,t){return e.fullname===""?t.fullname===""&&Vo(Tr(e),Tr(t),([n,r],[i,o])=>n===i&&Qo(r,o)):e.fullname===t.fullname&&Vo(rt(e),rt(t),Qo)}function bt(e,t,n,r){return new Le(e,t,n,r)}function Je(e,t,n,r){return new Le(e,t,n,void 0,r)}function bi(...e){return new Le("",void 0,void 0,void 0,()=>e)}function fn(e,t,n,r){const i=new Le(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((a,s)=>new Wp(i,s,o[s],a))});return i}function Jn(e){return new Le("Microsoft.FSharp.Core.FSharpOption`1",[e])}function $t(e){return new Le("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Gp(e){return new Le("[]",[e])}const Qp=new Le("System.Object"),Ce=new Le("System.String"),Ko=new Le("System.Boolean"),Te=new Le("System.Int32");function Xn(e){if(Array.isArray(e))return e[0];if(e instanceof Le){const t=Er(e);if(t!=null)return Xn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function ae(e){const t=Er(e);return t!=null?ae(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ae(n)).join(",")+"]"}function wl(e){return Er(e)!=null}function Er(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function vl(e){return e.generics!=null&&e.generics.length>0}function Zo(e){return e.enumCases!=null&&e.enumCases.length>0}function yl(e){return e.generics==null?e:new Le(e.fullname,e.generics.map(()=>Qp))}function xl(e){var t;return(t=e.generics)==null?void 0:t[0]}function Yn(e){if(Zo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Kp(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function er(e,t){const n=parseInt(t,10);return Kp(e,isNaN(n)?t:n)[1]}function bl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Tr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function _l(e){if(Jo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Al(e){return e instanceof Le?e.cases!=null:e instanceof L}function Cl(e){return e instanceof Le?e.fields!=null:e instanceof Z}function Jo(e){return e.fullname.startsWith("System.Tuple")}function Zp(e,t){const r=bl(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function kl(e){return e.fields==null?[]:e.fields}function Jp(e,t){return e[t[0]]}function Bb(e){return e}function Xp(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function Yp(e,t){const n=Tr(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],a)=>(r[i]=t[a],r),{})}function ef(e,t){return e}const tf=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],nf=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],rf=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],of=["January","February","March","April","May","June","July","August","September","October","November","December"];function it(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Sl(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function af(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const a=e[t];if(a===r){o=!0;break}else if(a==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=a}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Xo(e,t,n){let r=0,i=0,o="";const a=n?Ir(e.getTime(),1):e;for(;r<t.length;){const s=t[r];switch(s){case"d":switch(i=it(t,r,"d"),r+=i,i){case 1:o+=Dl(a);break;case 2:o+=Q(Dl(a),2);break;case 3:o+=tf[Fl(a)];break;case 4:o+=nf[Fl(a)];break}break;case"f":if(i=it(t,r,"f"),r+=i,i<=3){const g=10**(3-i);o+=Q(Math.floor(Ci(a)/g),i)}else i<=7&&(o+=(""+Ci(a)).padEnd(i,"0"));break;case"F":if(i=it(t,r,"F"),r+=i,i<=3){const g=10**(3-i),b=Math.floor(Ci(a)/g);b!=0&&(o+=Q(b,i))}else if(i<=7){const g=Ci(a);g!=0&&(o+=Q(g,3))}break;case"g":i=it(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=it(t,r,"h"),r+=i,i){case 1:o+=Ai(a)%12;break;case 2:o+=Q(Ai(a)%12,2);break}break;case"H":switch(i=it(t,r,"H"),r+=i,i){case 1:o+=Ai(a);break;case 2:o+=Q(Ai(a),2);break}break;case"K":switch(i=it(t,r,"K"),r+=i,i){case 1:switch(El(a)){case 1:o+="Z";break;case 2:o+=tr(a.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=it(t,r,"m"),r+=i,i){case 1:o+=Il(a);break;case 2:o+=Q(Il(a),2);break}break;case"M":switch(i=it(t,r,"M"),r+=i,i){case 1:o+=ki(a);break;case 2:o+=Q(ki(a),2);break;case 3:o+=rf[ki(a)-1];break;case 4:o+=of[ki(a)-1];break}break;case"s":switch(i=it(t,r,"s"),r+=i,i){case 1:o+=Rl(a);break;case 2:o+=Q(Rl(a),2);break}break;case"t":switch(i=it(t,r,"t"),r+=i,i){case 1:o+=a.getHours()<12?"A":"P";break;case 2:o+=a.getHours()<12?"AM":"PM";break}break;case"y":switch(i=it(t,r,"y"),r+=i,i){case 1:o+=a.getFullYear()%100;break;case 2:o+=Q(a.getFullYear()%100,2);break;case 3:o+=Q(a.getFullYear(),3);break;case 4:o+=Q(a.getFullYear(),4);break;case 5:o+=Q(a.getFullYear(),5);break}break;case"z":i=it(t,r,"z"),r+=i;let l="";switch(El(a)){case 1:l="+00:00";break;case 2:l=tr(a.getTimezoneOffset()*-6e4);break;case 0:l=tr(hf(a).getTimezoneOffset()*-6e4);break}const c=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),u=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${c}${d}`;break;case 2:o+=`${c}${Q(d,2)}`;break;default:o+=`${c}${Q(d,2)}:${Q(u,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[m,f]=af(t,r);o+=m,r+=f;break;case"%":const h=Sl(t,r);if(h>=0&&h!==37)r+=2,o+=Xo(a,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const v=Sl(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=s;break}}return o}function El(e){return e.kind||0}function tr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Q(n,2)+":"+Q(r,2)}function _i(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function sf(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Q(e.getFullYear(),4)+"-"+Q(e.getMonth()+1,2)+"-"+Q(e.getDate(),2)+"T"+Q(e.getHours(),2)+":"+Q(e.getMinutes(),2)+":"+Q(e.getSeconds(),2)+"."+Q(e.getMilliseconds(),3)+(n?tr(e.getTimezoneOffset()*-6e4):"")}}function lf(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+tr(t)}function cf(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+tr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return _i(n,"first");case"T":case"t":return _i(n,"second");case"O":case"o":return lf(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Xo(n,t,!0)}function uf(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?_i(e,"first"):e.toLocaleDateString();case"T":case"t":return n?_i(e,"second"):e.toLocaleTimeString();case"O":case"o":return sf(e,n);default:throw new Error("Unrecognized Date print format")}else return Xo(e,t,n)}function Dr(e,t,n){return e.offset!=null?cf(e,t):uf(e,t)}function Ir(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function df(){return Ir(-621355968e5,1)}function Tl(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,a=0;if(i[2]!=null){const s=i[2].split(":"),l=parseInt(s[0],10);a=l*3600+parseInt(s[1]||"0",10)*60+parseFloat(s[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(a+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const s=new Date;o=new Date(s.getUTCFullYear()+"/"+(s.getUTCMonth()+1)+"/"+s.getUTCDate())}if(i[4]==="Z")r="Z";else{let s=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(s*=-1),r=s,a-=s*60}}else if(i[1]!=null)o=new Date(i[1]);else{const s=new Date;o=new Date(s.getFullYear()+"/"+(s.getMonth()+1)+"/"+s.getDate())}n=new Date(o.getTime()+a*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function pf(e,t=!1){const[n,r]=Tl(e),i=r!=null?t&&r==="Z"?1:2:0;return Ir(n.getTime(),i)}function ff(e,t){try{return t.contents=pf(e),!0}catch{return!1}}function mf(e){return e.kind===1?e:Ir(e.getTime(),1)}function hf(e){return e.kind===2?e:Ir(e.getTime(),2)}function Dl(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ai(e){return e.kind===1?e.getUTCHours():e.getHours()}function Ci(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Il(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ki(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Rl(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Fl(e){return e.kind===1?e.getUTCDay():e.getDay()}const gf=qo;function wf(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Si(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ml(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function vf(e,t,n,r,i=0){function o(){let a=arguments[0];if(r){r--;const s=[],l=arguments.length,c=typeof arguments[l-1]!="string";let d=c?l-3:l-2;for(let u=0;u<d;u++)s.push(arguments[u]);s.index=arguments[d++],s.input=arguments[d++],c&&(s.groups=arguments[d]),a=n(s)}return a}if(typeof e=="string"){const a=e;e=wf(t,r??0),t=a,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,a=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let a;const s=t.substring(i),l=Ml(e,s),c=Ml.length>r?(a=l[r-1],s.substring(0,a.index+a[0].length)):s;return t.substring(0,i)+c.replace(e,n)+t.substring(i+c.length)}else return t.replace(e,n)}const Rr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Fr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,yf=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function jl(e,t){return qp(e,t)<0}function ze(e){return{input:e,cont:bf(e)}}function xf(e,t){let n=0,r=0,i="";Fr.lastIndex=0;let o=Fr.exec(e);for(;o;){const a=o.index+(o[1]||"").length;i+=e.substring(r,a).replace(/%%/g,"%");const[,,s,l,c,d]=o;r=Fr.lastIndex,i+=Ol(t[n++],s,l,c,d),Fr.lastIndex=r-1,o=Fr.exec(e)}return i+=e.substring(r).replace(/%%/g,"%"),i}function Nl(e,t){return typeof t=="string"?e(t):t.cont(e)}function Xe(e){return Nl(t=>t,e)}function $l(e){return Nl(t=>{throw new Error(t)},e)}function Ol(e,t,n,r,i){let o="";if(t=t||"",i=i||"",hl(e))switch(i.toLowerCase()!=="x"&&(jl(e,0)?(e=Go(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=wi(e,r);break;case"g":case"G":e=r!=null?vi(e,r):vi(e);break;case"e":case"E":e=r!=null?yi(e,r):yi(e);break;case"x":e=xi(e);break;case"X":e=xi(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Dr(e):e=Ee(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const a=t.indexOf("0")>=0,s=t.indexOf("-")>=0,l=s||!a?" ":"0";l==="0"?(e=Mr(e,n-o.length,l,s),e=o+e):e=Mr(o+e,n,l,s)}return e}function Pl(e,t,n,r="",i=-1){return(...o)=>{let a=r;const s=t.slice(),l=n.slice();for(const c of o){const[,,d,u,m,f]=l[0];let h=u;if(i>=0)h=i,i=-1;else if(h==="*"){if(c<0)throw new Error("Non-negative number required");i=c;continue}a+=s[0],a+=Ol(c,d,h,m,f),s.splice(0,1),l.splice(0,1)}return l.length===0?(a+=s[0],e(a)):Pl(e,s,l,a,i)}}function bf(e){return t=>{Rr.lastIndex=0;const n=[],r=[];let i=0,o=Rr.exec(e);for(;o;){const a=o.index+(o[1]||"").length;n.push(e.substring(i,a).replace(/%%/g,"%")),r.push(o),i=Rr.lastIndex,Rr.lastIndex-=1,o=Rr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Pl(t,n,r))}}function _f(e,...t){let n;return n=e,n.replace(yf,(r,i,o,a,s,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[i];if(hl(c))switch(s=s==null?null:parseInt(s,10),a){case"f":case"F":s=s??2,c=wi(c,s);break;case"g":case"G":c=s!=null?vi(c,s):vi(c);break;case"e":case"E":c=s!=null?yi(c,s):yi(c);break;case"p":case"P":s=s??2,c=wi(Go(c,100),s)+" %";break;case"d":case"D":c=s!=null?Yo(String(c),s,"0"):String(c);break;case"x":case"X":c=s!=null?Yo(xi(c),s,"0"):xi(c),a==="X"&&(c=c.toUpperCase());break;default:if(l){let d="";c=l.replace(/([0#,]+)(\.[0#]+)?/,(u,m,f)=>{jl(c,0)&&(c=Go(c,-1),d="-"),f=f==null?"":f.substring(1),c=wi(c,Math.max(f.length,0));let[h,v]=c.split(".");v||(v="");const g=m.replace(/,/g,"").replace(/^#+/,"").length;h=Yo(h,g,"0");const b=f.replace(/#+$/,"").length;if(b>v.length?v=Cf(v,b,"0"):b<v.length&&(v=v.substring(0,b)+v.substring(b).replace(/0+$/,"")),m.indexOf(",")>0){const C=h.length%3,E=Math.floor(h.length/3);let R=C>0?h.substr(0,C)+(E>0?",":""):"";for(let M=0;M<E;M++)R+=h.substr(C+M*3,3)+(M<E-1?",":"");h=R}return v.length>0?h+"."+v:h}),c=d+c}}else c instanceof Date?c=Dr(c,l||a):c=Ee(c);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(c=Mr(String(c),Math.abs(o)," ",o<0)),c})}function Af(e){return typeof e!="string"||e.length===0}function Ue(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Mr(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Yo(e,t,n){return Mr(e,t,n)}function Cf(e,t,n){return Mr(e,t,n,!0)}function Bl(e,t,n){return e.replace(new RegExp(Si(t),"g"),n)}function ea(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Si),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let l=!0,c=0;do{const d=s.exec(e);if(d===null){const u=o?e.substring(c).trim():e.substring(c);(!i||u.length>0)&&a.push(u),l=!1}else{const u=o?e.substring(c,d.index).trim():e.substring(c,d.index);(!i||u.length>0)&&(n!=null&&a.length+1===n?(a.push(o?e.substring(c).trim():e.substring(c)),l=!1):a.push(u)),c=s.lastIndex}}while(l);return a}function kf(e,...t){if(t.length===0)return e.trim();const n="["+Si(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function Sf(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Si(t.join(""))+"]+$"),"")}class nr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Zt(this.value)}Equals(t){return t==null?!1:we(this.value,t instanceof nr?t.value:t)}CompareTo(t){return t==null?1:ut(this.value,t instanceof nr?t.value:t)}}function k(e){if(e==null)throw new Error("Option has no value");return e instanceof nr?e.value:e}function Ve(e){return e==null||e instanceof nr?new nr(e):e}function Ei(e,t){return e!=null?k(e):t}function Ef(e,t){return e!=null?k(e):t()}function Hl(e,t){return t!=null?Ve(e(k(t))):void 0}function Tf(e,t,n){return t!=null&&n!=null?e(k(t),k(n)):void 0}const Ll="Collection was empty.";function zl(e,t){return new Array(t)}function Ul(e,t){return e>t?e:t}function Ti(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function _t(e,t,n){const r=t.length|0,i=zl(n,r);for(let o=0;o<=r-1;o++)Ot(i,o,e(le(o,t)));return i}function Df(e,t){const n=zl(t,1);return Ot(n,0,e),n}function If(e){return e.slice().reverse()}function Rf(e,t){return t.find(e)}function Ff(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(le(i,t));if(o!=null){const a=k(o);r.push(a)}}return we(n,ct())?r:_t(i=>i,r,n)}function Di(e,t,n){const r=e;return n.reduce(r,t)}function Mf(e,t,n){return t==null}function le(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Ot(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Vl(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class qe extends Z{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Ue("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,c=s.tail;if(l!=null)if(c!=null){const d=k(l),u=k(c);if(we(a.head,s.head)){i=d,o=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const a=r,s=i,l=o,c=l.tail;if(c!=null){const d=k(c);if(a>18)return s|0;r=a+1,i=(s<<1)+Zt(l.head)+631*a,o=d;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,c=s.tail;if(l!=null)if(c!=null){const d=k(l),u=k(c),m=ut(a.head,s.head)|0;if(m===0){i=d,o=u;continue e}else return m|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Nf(this)}[Symbol.iterator](){return ui(xe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return xe(this)}}class jf{constructor(t){this.xs=t,this.it=this.xs,this.current=ct()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=k(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ct()}Dispose(){}}function Nf(e){return new jf(e)}function De(){return new qe(ct(),void 0)}function jr(e,t){return new qe(e,t)}function Nr(e){return e.tail==null}function ql(e){return((n,r)=>{e:for(;;){const i=n,a=r.tail;if(a!=null){n=i+1,r=k(a);continue e}else return i|0}})(0,e)|0}function Ii(e){if(e.tail!=null)return e.head;throw new Error(Ll+"\\nParameter name: list")}function pt(e){const t=e.tail;if(t!=null)return k(t);throw new Error(Ll+"\\nParameter name: list")}function Ie(){return De()}function ft(e,t){return jr(e,t)}function P(e){return jr(e,De())}function q(e){return Nr(e)}function $r(e){return ql(e)}function F(e){return Ii(e)}function W(e){return pt(e)}function rr(e){const t=ql(e)|0,n=Ti(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const a=i,s=o;if(!Nr(s)){Ot(n,a,Ii(s)),i=a+1,o=pt(s);continue e}break}})(0,e),n}function At(e,t,n){let r=t,i=n;for(;!Nr(i);)r=e(r,F(i)),i=pt(i);return r}function ta(e){return At((t,n)=>jr(n,t),De(),e)}function $f(e,t,n){return Vl(e,rr(t),n)}function Or(e,t){At((n,r)=>{e(r)},void 0,t)}function fe(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=jr(le(r,e),n);return n}function y(e){return fe(e,De())}function Of(e){let t,n;if(yt(e))return y(e);if(e instanceof qe)return e;{const r=De();let i=r;const o=xe(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new qe(l,void 0),t.tail=n,n)}}finally{oe(o)}const a=i,s=De();return a.tail=s,pt(r)}}function Pf(e){const t=De();let n=t;const r=a=>{n=At((s,l)=>{const c=new qe(l,void 0);return s.tail=c,c},n,a)};if(yt(e))e.forEach(r);else if(e instanceof qe)Or(r,e);else{const a=xe(e);try{for(;a["System.Collections.IEnumerator.MoveNext"]();)r(a["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{oe(a)}}const i=n,o=De();return i.tail=o,pt(t)}function Pr(e,t){return At((n,r)=>jr(r,n),t,ta(e))}function Jt(e,t){const n=De(),r=At((o,a)=>{const s=new qe(e(a),void 0);return o.tail=s,s},n,t),i=De();return r.tail=i,pt(n)}function Bf(e,t){return(r=>{e:for(;;){const i=r;if(Nr(i))return;{const o=e(Ii(i));if(o==null){r=pt(i);continue e}else return o}}})(t)}function Hf(e,t){return Bf(n=>e(n)?Ve(n):void 0,t)}function Lf(e,t){return((r,i)=>{e:for(;;){const o=r,a=i;if(Nr(a))return;if(e(Ii(a)))return o;r=o+1,i=pt(a);continue e}})(0,t)}function zf(e,t){const n=De(),r=At((o,a)=>{if(e(a)){const s=new qe(a,void 0);return o.tail=s,s}else return o},n,t),i=De();return r.tail=i,pt(n)}function Uf(e,t){const n=De(),r=De(),i=n,o=At((l,c)=>{let d,u;const m=l[0],f=l[1];return e(c)?[(d=new qe(c,void 0),m.tail=d,d),f]:[m,(u=new qe(c,void 0),f.tail=u,u)]},[i,r],t),a=De();o[0].tail=a;const s=De();return o[1].tail=s,[pt(i),pt(r)]}function Vf(e,t){const n=De(),r=At((o,a)=>{const s=e(a);if(s==null)return o;{const l=new qe(k(s),void 0);return o.tail=l,l}},n,t),i=De();return r.tail=i,pt(n)}function Ri(e,t,n){return Lf(r=>n.Equals(e,r),t)!=null}function qf(e,t){const n=rr(t);return n.sort(e),y(n)}function Wf(e,t,n){return qf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Gf(e){return new w(0,[e])}function Wl(e){return new w(1,[e])}class w extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Xt(e,t){return t.tag===0?Gf(e(t.fields[0])):Wl(t.fields[0])}function Qf(e,t){return t.tag===0?e(t.fields[0]):Wl(t.fields[0])}const Rn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function na(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Kf(e,t){switch(t){case Rn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Rn.SnakeCase:return na(e,"_");case Rn.SnakeCaseAllCaps:return na(e,"_").toUpperCase();case Rn.KebabCase:return na(e,"-");case Rn.None:default:return e}}function ir(e,t=Rn.None){const n={},r=t;function i(a){throw new Error("Cannot infer key and value of "+String(a))}function o(a,s,l){a=Kf(a,s),n[a]=l}for(let a of e){let s=Rn.None;if(a==null&&i(a),a instanceof L){const l=a.cases()[a.tag];a=a.fields.length===0?l:[l].concat(a.fields),s=r}if(Array.isArray(a))switch(a.length){case 0:i(a);break;case 1:o(a[0],s,!0);break;case 2:const l=a[1];o(a[0],s,l);break;default:o(a[0],s,a.slice(1))}else typeof a=="string"?o(a,s,!0):i(a)}return n}class I extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ct extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Gl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ql(e,t){switch(e.tag){case 2:return vf(Gl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Gl(t)}}const Zf=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Kl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Jf=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Xf(e){function t(r){return r.replace(Kl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Zf.test(n))return kf(n,"{","}","(",")");if(Kl.test(n))return t(n);if(Jf.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Yf(e,t){try{return t.contents=Xf(e),!0}catch{return!1}}var ra;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(ra||(ra={}));function em(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Zl(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function tm(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function nm(e,t){if(t&ra.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function rm(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,a]=i;if(n=n||nm(o,t),!tm(n).test(a))return em(i,n)}return null}function im(e,t,n,r,i){const o=rm(e,t,i);if(o!=null){let a=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(a)){const[s,l]=Zl(!0,r);!n&&o.radix!==10&&a>=s&&a<=l&&(a=a<<32-r>>32-r);const[c,d]=Zl(n,r);if(a>=c&&a<=d)return a}}throw new Error(`The input string ${e} was not in a correct format.`)}function or(e,t,n,r,i){try{return i.contents=im(e,t,n,r),!0}catch{return!1}}function Jl(e,t){om(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function om(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function am(){return Jl(-621355968e5,0)}function sm(e){const[t,n]=Tl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Jl(t.getTime(),r)}function lm(e,t){try{return t.contents=sm(e),!0}catch{return!1}}function Br(e){return e<0?Math.ceil(e):Math.floor(e)}function Xl(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return cm(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function cm(e){return Number(BigInt(e)/10000n)}function um(e){return Br(e/864e5)}function dm(e){return Br(e%864e5/36e5)}function pm(e){return Br(e%36e5/6e4)}function fm(e){return Br(e%6e4/1e3)}function mm(e){return Br(e%1e3)}function hm(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(um(e)),i=Math.abs(dm(e)),o=Math.abs(pm(e)),a=Math.abs(fm(e)),s=Math.abs(mm(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:Q(i,2)}:${Q(o,2)}:${Q(a,2)}${s===0&&(t==="c"||t==="g")?"":t==="g"?"."+Q(s,3):"."+kp(s,3,7)}`}function gm(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Xl(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,a=0;const s=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],c=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(a=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return s*Xl(i,l,c,a,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function wm(e,t){try{return t.contents=gm(e),!0}catch{return!1}}function vm(e){throw new Error(e)}const ym="Enumeration already finished.",xm="Enumeration has not started. Call MoveNext.",Yl="The input sequence has an insufficient number of elements.",bm="Reset is not supported on this enumerator.";function _m(){throw new Error(bm)}function ia(){throw new Error(xm)}function oa(){throw new Error(ym)}class Am{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=xe(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ee(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{oe(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return ui(xe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Cm(e){return new Am(e)}class km{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){_m()}Dispose(){this.dispose()}}function Fi(e,t,n){return new km(e,t,n)}function Sm(e){let t,n,r=!1,i=!1,o;const a=()=>{if(i=!0,n!=null){const s=k(n);try{oe(s)}finally{n=void 0}}if(t!=null){const s=k(t);try{oe(s)}finally{t=void 0}}};return Fi(()=>(r?i&&oa():ia(),o!=null?k(o):oa()),()=>{let s;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const c=t,d=n;if(c!=null)if(d!=null){const u=k(d);if(u["System.Collections.IEnumerator.MoveNext"]())o=Ve(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{oe(u)}finally{n=void 0}}else{const u=k(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(s=u["System.Collections.Generic.IEnumerator`1.get_Current"](),xe(s)):(a(),l=!1)}else t=xe(e)}return k(l)}},()=>{i||a()})}function Em(e,t){return Fi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{oe(t)}finally{}})}function ec(e,t,n){let r=!1,i,o=Ve(e());const a=()=>{if(o!=null){const l=k(o);try{n(l)}finally{o=void 0}}},s=()=>{try{a()}finally{i=void 0}};return Fi(()=>(r||ia(),i!=null?k(i):oa()),()=>{if(r||(r=!0),o!=null){const l=k(o);let c;try{c=t(l)}catch(d){throw s(),d}return c!=null?(i=c,!0):(s(),!1)}else return!1},a)}function Tm(e,t){let n,r=t;return Fi(()=>{if(n!=null){const i=k(n)[0];return k(n)[1],i}else return ia()},()=>(n=e(r),n!=null?(k(n)[0],r=k(n)[1],!0):!1),()=>{})}function Dm(e,t){t==null&&vm(e)}function ar(e){return Cm(e)}function mn(e){return Dm("source",e),xe(e)}function T(e){return ar(()=>xe(e()))}function tc(e){return ar(()=>Sm(e))}function Im(e,t){return ar(()=>Tm(e,t))}function hn(){return T(()=>new Array(0))}function S(e){return T(()=>Df(e))}function Hb(e){return e}function Rm(e){return e instanceof qe?rr(e):Array.from(e)}function me(e){return yt(e)?y(e):e instanceof qe?e:Of(e)}function Fm(e,t,n){return ar(()=>ec(e,t,n))}function nc(e,t,n){return ar(()=>{let r=-1;return ec(e,i=>(r=r+1|0,t(r,i)),n)})}function B(e,t){return tc([e,t])}function Mm(e,t,n){const r=mn(t);try{const i=mn(n);try{let o=0,a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&a&&s;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:a?1:s?-1:0)|0}finally{oe(i)}}finally{oe(r)}}function sr(e,t,n){const r=mn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function Mi(e,t,n){const r=mn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function rc(e,t){Mi((n,r)=>{e(r)},void 0,t)}function Ye(e,t){return Fm(()=>mn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ve(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function jm(e,t){return nc(()=>mn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ve(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function Nm(e){return T(()=>If(Rm(e)))}function $m(e,t){return ar(()=>{const n=mn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Yl+"\\nParameter name: source");return Em(()=>{},n)}catch(r){throw oe(n),r}})}function Om(e,t){return nc(()=>mn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Ve(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Yl+"\\nParameter name: source")}else return},n=>{oe(n)})}function Hr(e,t){return T(()=>tc(Ye(e,t)))}class ic{constructor(t,n){this.k=t,this.v=n}}function ji(e,t){return new ic(e,t)}function We(e){return e.k}function ot(e){return e.v}class ke extends ic{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Ni(e,t,n,r,i){return new ke(e,t,n,r,i)}function Ge(e){return e.left}function Qe(e){return e.right}function Fn(e){return e.h}function Lb(){}function oc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=k(r);if(i instanceof ke){const o=i;e=oc(n+1,Ge(o)),t=Qe(o);continue e}else return n+1|0}else return n|0}}function Pm(e){return oc(0,e)}function kt(e,t,n,r){let i,o,a;const s=e;if(s!=null){const u=k(s);a=u instanceof ke?(i=u,Fn(i)):1}else a=0;let l;const c=r;if(c!=null){const u=k(c);l=u instanceof ke?(o=u,Fn(o)):1}else l=0;const d=(a<l?l:a)|0;return d===0?ji(t,n):Ni(t,n,e,r,d+1)}function ac(e,t,n,r){let i,o,a,s,l,c,d,u,m;const f=e;if(f!=null){const g=k(f);m=g instanceof ke?(i=g,Fn(i)):1}else m=0;let h;const v=r;if(v!=null){const g=k(v);h=g instanceof ke?(o=g,Fn(o)):1}else h=0;if(h>m+2){const g=k(r);if(g instanceof ke){const b=g;if(a=Ge(b),(a!=null?(s=k(a),s instanceof ke?(l=s,Fn(l)):1):0)>m+1){const C=k(Ge(b));if(C instanceof ke){const E=C;return kt(kt(e,t,n,Ge(E)),We(E),ot(E),kt(Qe(E),We(b),ot(b),Qe(b)))}else throw new Error("internal error: Map.rebalance")}else return kt(kt(e,t,n,Ge(b)),We(b),ot(b),Qe(b))}else throw new Error("internal error: Map.rebalance")}else if(m>h+2){const g=k(e);if(g instanceof ke){const b=g;if(c=Qe(b),(c!=null?(d=k(c),d instanceof ke?(u=d,Fn(u)):1):0)>h+1){const C=k(Qe(b));if(C instanceof ke){const E=C;return kt(kt(Ge(b),We(b),ot(b),Ge(E)),We(E),ot(E),kt(Qe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return kt(Ge(b),We(b),ot(b),kt(Qe(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return kt(e,t,n,r)}function lr(e,t,n,r){if(r!=null){const i=k(r),o=e.Compare(t,We(i))|0;if(i instanceof ke){const a=i;return o<0?ac(lr(e,t,n,Ge(a)),We(a),ot(a),Qe(a)):o===0?Ni(t,n,Ge(a),Qe(a),Fn(a)):ac(Ge(a),We(a),ot(a),lr(e,t,n,Qe(a)))}else return o<0?Ni(t,n,void 0,r,2):o===0?ji(t,n):Ni(t,n,r,void 0,2)}else return ji(t,n)}function sc(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=k(o),s=r.Compare(i,We(a))|0;if(s===0)return Ve(ot(a));if(a instanceof ke){const l=a;e=r,t=i,n=s<0?Ge(l):Qe(l);continue e}else return}else return}}function Bm(e,t,n){const r=sc(e,t,n);if(r==null)throw new Error;return k(r)}function Hm(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=k(o),s=r.Compare(i,We(a))|0;if(a instanceof ke){const l=a;if(s<0){e=r,t=i,n=Ge(l);continue e}else{if(s===0)return!0;e=r,t=i,n=Qe(l);continue e}}else return s===0}else return!1}}function lc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=k(r);if(i instanceof ke){const o=i;lc(n,Ge(o)),n(We(o),ot(o)),e=n,t=Qe(o);continue e}else n(We(i),ot(i))}break}}function Lm(e,t){lc(e,t)}function zm(e,t,n){let r=n;Lm((i,o)=>{Ot(t,r,[i,o]),r=r+1|0},e)}function Um(e,t){return At((n,r)=>lr(e,r[0],r[1],n),void 0,t)}function Vm(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=lr(r,a[0],a[1],i),n=o;continue e}else return i}}function qm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=le(r,t);n=lr(e,i[0],i[1],n)}return n}function cc(e,t){if(yt(t))return qm(e,t);if(t instanceof qe)return Um(e,t);{const n=xe(t);try{return Vm(e,void 0,n)}finally{oe(n)}}}class Wm extends Z{constructor(t,n){super(),this.stack=t,this.started=n}}function uc(e){e:for(;;){const t=e;if(q(t))return Ie();{const n=W(t),r=F(t);if(r!=null){const i=k(r);if(i instanceof ke){const o=i;e=fe([Ge(o),ji(We(o),ot(o)),Qe(o)],n);continue e}else return t}else{e=n;continue e}}}}function dc(e){return new Wm(uc(P(e)),!1)}function Gm(){throw new Error("enumeration not started")}function Qm(){throw new Error("enumeration already finished")}function pc(e){if(e.started){const t=e.stack;if(q(t))return Qm();if(F(t)!=null){const n=k(F(t));if(n instanceof ke)throw new Error("Please report error: Map iterator, unexpected stack for current");return[We(n),ot(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Gm()}function Km(e){if(e.started){const t=e.stack;if(q(t))return!1;if(F(t)!=null){if(k(F(t))instanceof ke)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=uc(W(t)),!q(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!q(e.stack)}function fc(e){let t=dc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return pc(t)},"System.Collections.IEnumerator.get_Current"(){return pc(t)},"System.Collections.IEnumerator.MoveNext"(){return Km(t)},"System.Collections.IEnumerator.Reset"(){t=dc(e)},Dispose(){}}}class $i{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ym(this)|0}Equals(t){const n=this;if(t instanceof $i){const r=t,i=xe(n);try{const o=xe(r);try{const a=()=>{const s=i["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),c=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return we(l[0],c[0])&&we(l[1],c[1])?a():!1}else return!0;else return!1};return a()}finally{oe(o)}}finally{oe(i)}}else return!1}toString(){return"map ["+Ue("; ",Ye(n=>_f("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return fc(this.tree)}[Symbol.iterator](){return ui(xe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return fc(this.tree)}CompareTo(t){const n=this;if(t instanceof $i)return Mm((i,o)=>{const a=n.comparer.Compare(i[0],o[0])|0;return(a!==0?a:ut(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return hc(n,t[0])&&we(mc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){zm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return aa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return aa(this)|0}get size(){return aa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ye(n=>[n[0],n[1]],this)}get(t){return mc(this,t)}has(t){return hc(this,t)}keys(){return Ye(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ye(n=>n[1],this)}forEach(t,n){const r=this;rc(i=>{t(i[1],i[0],r)},r)}}function Oi(e,t){return new $i(e,t)}function Zm(e){return Oi(e,void 0)}function Jm(e,t,n){return Oi(e.comparer,lr(e.comparer,t,n,e.tree))}function mc(e,t){return Bm(e.comparer,t,e.tree)}function aa(e){return Pm(e.tree)}function hc(e,t){return Hm(e.comparer,t,e.tree)}function Xm(e,t){return sc(e.comparer,t,e.tree)}function Ym(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Zt(i[0]))|0,n=t(n,Zt(i[1]))|0}}finally{oe(r)}return n|0}function gc(e,t,n){return Jm(n,e,t)}function wc(e,t){return Xm(t,e)}function eh(e,t){return Oi(t,cc(t,e))}function th(e,t){return Oi(t,cc(t,e))}function sa(e){return Zm(e)}class vc{constructor(t){this.k=t}}function at(e){return new vc(e)}function O(e){return e.k}class G extends vc{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function st(e,t,n,r){return new G(e,t,n,r)}function re(e){return e.left}function Y(e){return e.right}function cr(e){return e.h}function zb(){}function yc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=k(n);if(i instanceof G){const o=i;e=re(o),t=yc(Y(o),r+1);continue e}else return r+1|0}else return r|0}}function nh(e){return yc(e,0)}function St(e,t,n){let r,i,o;const a=e;if(a!=null){const d=k(a);o=d instanceof G?(r=d,cr(r)):1}else o=0;let s;const l=n;if(l!=null){const d=k(l);s=d instanceof G?(i=d,cr(i)):1}else s=0;const c=(o<s?s:o)|0;return c===0?at(t):st(t,e,n,c+1)}function xc(e,t,n){let r,i,o,a,s,l,c,d,u;const m=e;if(m!=null){const v=k(m);u=v instanceof G?(r=v,cr(r)):1}else u=0;let f;const h=n;if(h!=null){const v=k(h);f=v instanceof G?(i=v,cr(i)):1}else f=0;if(f>u+2){const v=k(n);if(v instanceof G){const g=v;if(o=re(g),(o!=null?(a=k(o),a instanceof G?(s=a,cr(s)):1):0)>u+1){const b=k(re(g));if(b instanceof G){const C=b;return St(St(e,t,re(C)),O(C),St(Y(C),O(g),Y(g)))}else throw new Error("internal error: Set.rebalance")}else return St(St(e,t,re(g)),O(g),Y(g))}else throw new Error("internal error: Set.rebalance")}else if(u>f+2){const v=k(e);if(v instanceof G){const g=v;if(l=Y(g),(l!=null?(c=k(l),c instanceof G?(d=c,cr(d)):1):0)>f+1){const b=k(Y(g));if(b instanceof G){const C=b;return St(St(re(g),O(g),re(C)),O(C),St(Y(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return St(re(g),O(g),St(Y(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return St(e,t,n)}function ur(e,t,n){if(n!=null){const r=k(n),i=e.Compare(t,O(r))|0;if(r instanceof G){const o=r;return i<0?xc(ur(e,t,re(o)),O(o),Y(o)):i===0?n:xc(re(o),O(o),ur(e,t,Y(o)))}else{const o=e.Compare(t,O(r))|0;return o<0?st(t,void 0,n,2):o===0?n:st(t,n,void 0,2)}}else return at(t)}function bc(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=k(o),s=r.Compare(i,O(a))|0;if(a instanceof G){const l=a;if(s<0){e=r,t=i,n=re(l);continue e}else{if(s===0)return!0;e=r,t=i,n=Y(l);continue e}}else return s===0}else return!1}}function _c(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=k(r);if(i instanceof G){const o=i;_c(n,re(o)),n(O(o)),e=n,t=Y(o);continue e}else n(O(i))}break}}class rh extends Z{constructor(t,n){super(),this.stack=t,this.started=n}}function Ac(e){e:for(;;){const t=e;if(q(t))return Ie();{const n=F(t),r=W(t);if(n!=null){const i=k(n);if(i instanceof G){const o=i;e=fe([re(o),at(O(o)),Y(o)],r);continue e}else return t}else{e=r;continue e}}}}function Cc(e){return new rh(Ac(P(e)),!1)}function ih(){throw new Error("Enumeration not started")}function oh(){throw new Error("Enumeration already started")}function kc(e){if(e.started){const t=e.stack;if(q(t))return oh();if(F(t)!=null){const n=k(F(t));return O(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ih()}function ah(e){if(e.started){const t=e.stack;if(q(t))return!1;if(F(t)!=null){if(k(F(t))instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ac(W(t)),!q(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!q(e.stack)}function Sc(e){let t=Cc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return kc(t)},"System.Collections.IEnumerator.get_Current"(){return kc(t)},"System.Collections.IEnumerator.MoveNext"(){return ah(t)},"System.Collections.IEnumerator.Reset"(){t=Cc(e)},Dispose(){}}}function sh(e,t,n){e:for(;;){const r=e,i=t,o=n;if(q(i))return q(o)?0:-1;if(q(o))return 1;if(F(o)!=null)if(F(i)!=null){const a=k(F(i)),s=k(F(o));if(a instanceof G){const l=a;if(re(l)==null)if(s instanceof G){const c=s;if(re(c)==null){const d=r.Compare(O(l),O(c))|0;if(d!==0)return d|0;e=r,t=ft(Y(l),W(i)),n=ft(Y(c),W(o));continue e}else{let d,u,m,f,h;switch(q(i)?q(o)?d=2:F(o)!=null?(d=1,f=W(o),h=k(F(o))):d=2:F(i)!=null?(d=0,u=W(i),m=k(F(i))):q(o)?d=2:F(o)!=null?(d=1,f=W(o),h=k(F(o))):d=2,d){case 0:if(m instanceof G){const v=m;e=r,t=fe([re(v),st(O(v),void 0,Y(v),0)],u),n=o;continue e}else{e=r,t=fe([void 0,at(O(m))],u),n=o;continue e}case 1:if(h instanceof G){const v=h;e=r,t=i,n=fe([re(v),st(O(v),void 0,Y(v),0)],f);continue e}else{e=r,t=i,n=fe([void 0,at(O(h))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(O(l),O(s))|0;if(c!==0)return c|0;e=r,t=ft(Y(l),W(i)),n=ft(void 0,W(o));continue e}else{let c,d,u,m,f;switch(q(i)?q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=k(F(o))):c=2:F(i)!=null?(c=0,d=W(i),u=k(F(i))):q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=k(F(o))):c=2,c){case 0:if(u instanceof G){const h=u;e=r,t=fe([re(h),st(O(h),void 0,Y(h),0)],d),n=o;continue e}else{e=r,t=fe([void 0,at(O(u))],d),n=o;continue e}case 1:if(f instanceof G){const h=f;e=r,t=i,n=fe([re(h),st(O(h),void 0,Y(h),0)],m);continue e}else{e=r,t=i,n=fe([void 0,at(O(f))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(s instanceof G){const l=s;if(re(l)==null){const c=r.Compare(O(a),O(l))|0;if(c!==0)return c|0;e=r,t=ft(void 0,W(i)),n=ft(Y(l),W(o));continue e}else{let c,d,u,m,f;switch(q(i)?q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=k(F(o))):c=2:F(i)!=null?(c=0,d=W(i),u=k(F(i))):q(o)?c=2:F(o)!=null?(c=1,m=W(o),f=k(F(o))):c=2,c){case 0:if(u instanceof G){const h=u;e=r,t=fe([re(h),st(O(h),void 0,Y(h),0)],d),n=o;continue e}else{e=r,t=fe([void 0,at(O(u))],d),n=o;continue e}case 1:if(f instanceof G){const h=f;e=r,t=i,n=fe([re(h),st(O(h),void 0,Y(h),0)],m);continue e}else{e=r,t=i,n=fe([void 0,at(O(f))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(O(a),O(s))|0;if(l!==0)return l|0;e=r,t=W(i),n=W(o);continue e}}else{k(F(o));let a,s,l,c,d;switch(q(i)?q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=k(F(o))):a=2:F(i)!=null?(a=0,s=W(i),l=k(F(i))):q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=k(F(o))):a=2,a){case 0:if(l instanceof G){const u=l;e=r,t=fe([re(u),st(O(u),void 0,Y(u),0)],s),n=o;continue e}else{e=r,t=fe([void 0,at(O(l))],s),n=o;continue e}case 1:if(d instanceof G){const u=d;e=r,t=i,n=fe([re(u),st(O(u),void 0,Y(u),0)],c);continue e}else{e=r,t=i,n=fe([void 0,at(O(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(F(i)!=null){k(F(i));let a,s,l,c,d;switch(q(i)?q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=k(F(o))):a=2:F(i)!=null?(a=0,s=W(i),l=k(F(i))):q(o)?a=2:F(o)!=null?(a=1,c=W(o),d=k(F(o))):a=2,a){case 0:if(l instanceof G){const u=l;e=r,t=fe([re(u),st(O(u),void 0,Y(u),0)],s),n=o;continue e}else{e=r,t=fe([void 0,at(O(l))],s),n=o;continue e}case 1:if(d instanceof G){const u=d;e=r,t=i,n=fe([re(u),st(O(u),void 0,Y(u),0)],c);continue e}else{e=r,t=i,n=fe([void 0,at(O(d))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=W(i),n=W(o);continue e}}}function Ec(e,t,n){return t==null?n==null?0:-1:n==null?1:sh(e,P(t),P(n))|0}function lh(e,t,n){let r=n;_c(i=>{Ot(t,r,i),r=r+1|0},e)}function ch(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ur(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function uh(e,t){return Di((n,r)=>ur(e,r,n),void 0,t)}function dh(e,t){return At((n,r)=>ur(e,r,n),void 0,t)}function Tc(e,t){if(yt(t))return uh(e,t);if(t instanceof qe)return dh(e,t);{const n=xe(t);try{return ch(e,void 0,n)}finally{oe(n)}}}class la{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return mh(this)|0}Equals(t){let n;const r=this;return t instanceof la&&(n=t,Ec(dr(r),Et(r),Et(n))===0)}toString(){return"set ["+Ue("; ",Ye(n=>Ee(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ec(dr(n),Et(n),Et(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return bc(dr(n),t,Et(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){lh(Et(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ca(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ca(this)|0}GetEnumerator(){return Sc(Et(this))}[Symbol.iterator](){return ui(xe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Sc(Et(this))}get size(){return ca(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Dc(this,t)}keys(){return Ye(n=>n,this)}values(){return Ye(n=>n,this)}entries(){return Ye(n=>[n,n],this)}forEach(t,n){const r=this;rc(i=>{t(i,i,r)},r)}}function Pi(e,t){return new la(e,t)}function dr(e){return e.comparer}function Et(e){return e.tree}function ph(e){return Pi(e,void 0)}function fh(e,t){return Pi(dr(e),ur(dr(e),t,Et(e)))}function ca(e){return nh(Et(e))}function Dc(e,t){return bc(dr(e),t,Et(e))}function mh(e){let t=0;const n=xe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Zt(r)+631|0}}finally{oe(n)}return Math.abs(t)|0}function ua(e,t){return Dc(t,e)}function hh(e,t){return fh(t,e)}function gh(e){return ph(e)}function wh(e,t){return Pi(t,Tc(t,e))}function vh(e,t){return Pi(t,Tc(t,e))}function Lr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
4
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
- `:" ")}}function cd(e,t){const n=t.tag===2?On(t.fields[0],t.fields[1],!0):t.tag===1?On(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?On(t.fields[0],t.fields[1],!0):t.tag===4?On(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
5
+ `:" ")}}function yh(e,t){const n=t.tag===2?Lr(t.fields[0],t.fields[1],!0):t.tag===1?Lr(t.fields[0],t.fields[1],!1)+`
6
+ Reason: `+t.fields[2]:t.tag===3?Lr(t.fields[0],t.fields[1],!0):t.tag===4?Lr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
7
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
8
 
10
- `+Me(`
9
+ `+Ue(`
11
10
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:On(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function pa(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new h(1,[cd(o[0],o[1])])}else return new h(0,[r.fields[0]])}function on(e,t){try{return pa("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new h(1,["Given an invalid JSON: "+n.message]);throw n}}function ha(e,t){return typeof t=="string"?new h(0,[t]):new h(1,[[e,new E(0,["a string",t])]])}function ud(e,t){if(typeof t=="string"){const n=t;return n.length===1?new h(0,[n[0]]):new h(1,[[e,new E(0,["a single character string",t])]])}else return new h(1,[[e,new E(0,["a char",t])]])}function fd(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Wu(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a guid",t])]])}else return new h(1,[[e,new E(0,["a guid",t])]])}function dd(e,t){return t==null?new h(0,[void 0]):new h(1,[[e,new E(0,["null",t])]])}const ma=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new h(0,[(o+128&255)-128]):new h(1,[[n,new E(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new h(1,[[n,new E(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,8,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a sbyte",r])]])}else return new h(1,[[n,new E(0,["a sbyte",r])]])},ga=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new h(0,[o&255]):new h(1,[[n,new E(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new h(1,[[n,new E(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,8,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["a byte",r])]])}else return new h(1,[[n,new E(0,["a byte",r])]])},wa=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new h(0,[(o+32768&65535)-32768]):new h(1,[[n,new E(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new h(1,[[n,new E(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,16,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int16",r])]])}else return new h(1,[[n,new E(0,["an int16",r])]])},_a=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new h(0,[o&65535]):new h(1,[[n,new E(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new h(1,[[n,new E(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,16,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint16",r])]])}else return new h(1,[[n,new E(0,["an uint16",r])]])},ya=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new h(0,[~~o]):new h(1,[[n,new E(1,["an int",o,"Value was either too large or too small for an int"])]]):new h(1,[[n,new E(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!1,32,new Xe(()=>i,s=>{i=s|0})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an int",r])]])}else return new h(1,[[n,new E(0,["an int",r])]])},ba=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new h(0,[o>>>0]):new h(1,[[n,new E(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new h(1,[[n,new E(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Kt(r,511,!0,32,new Xe(()=>i,s=>{i=s})),i],o[0]?new h(0,[o[1]]):new h(1,[[n,new E(0,["an uint32",r])]])}else return new h(1,[[n,new E(0,["an uint32",r])]])};function pd(e,t){return typeof t=="boolean"?new h(0,[t]):new h(1,[[e,new E(0,["a boolean",t])]])}function hd(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float",t])]])}function md(e,t){return typeof t=="number"?new h(0,[t]):new h(1,[[e,new E(0,["a float32",t])]])}function gd(e,t){if(typeof t=="string"){let n,r=ou();return n=[su(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[au(n[1])]):new h(1,[[e,new E(0,["a datetime",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function wd(e,t){if(typeof t=="string"){let n,r=Yu();return n=[tf(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a datetimeoffset",t])]])}else return new h(1,[[e,new E(0,["a datetime",t])]])}function _d(e,t){if(typeof t=="string"){let n,r=0;return n=[of(t,new Xe(()=>r,o=>{r=o})),r],n[0]?new h(0,[n[1]]):new h(1,[[e,new E(0,["a timespan",t])]])}else return new h(1,[[e,new E(0,["a timespan",t])]])}function Aa(e,t,n,r){let o;const i=n+".["+it(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,pe(e,s)):new h(1,[[i,new E(5,["a longer array. Need index `"+it(e)+"` but there are only `"+(o=s.length,it(o))+"` entries",r])]])}else return new h(1,[[i,new E(0,["an array",r])]])}function yd(e,t,n){return n==null?new h(0,[void 0]):wt(Fe,e(t,n))}function va(e,t,n){if(Array.isArray(n)){let r=-1;return wt(_o,fr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+it(r)+"]",i);return s.tag===0?new h(0,[ze(s.fields[0],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[he()]),n))}else return new h(1,[[t,new E(0,["a list",n])]])}function bd(e,t,n){if(Array.isArray(n)){let r=-1;return wt(xf,fr((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+it(r)+"]",i);return s.tag===0?new h(0,[$([s.fields[0]],o.fields[0])]):new h(1,[s.fields[0]])}else return o},new h(0,[[]]),n))}else return new h(1,[[t,new E(0,["a seq",n])]])}function xa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return fr((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],u=e(t+".["+it(r)+"]",s);return u.tag===0?(vt(a,r,u.fields[0]),new h(0,[a])):new h(1,[u.fields[0]])}else return i},new h(0,[wo(new Array(o.length),0,o.length,null)]),o)}else return new h(1,[[t,new E(0,["an array",n])]])}function Ad(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(P(s))return new h(1,[[t,new E(7,[a])]]);{const u=pa(t,V(k(s)),n);if(u.tag===1){o=N(s),i=Rn(a,W(u.fields[0]));continue e}else return new h(0,[u.fields[0]])}}})(e,he())}function vd(e,t,n){return new h(0,[e])}function Sa(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new h(1,[o.fields[0]])}function xd(e,t,n,r){const o=t(n,r);return o.tag===1?new h(1,[o.fields[0]]):new h(0,[e(o.fields[0])])}function Sd(e,t){let n;const r=e;return n=o=>i=>Aa(0,r,o,i),o=>i=>Sa(ao(s=>{let a;const u=t;return a=l=>f=>Aa(1,u,l,f),l=>f=>Sa((c,m,p)=>vd([s,c]),V(a),l,f)}),V(n),o,i)}function Cd(e){return zf(e,{Compare:$e})}function Ed(e){return ld(e,{Compare:$e})}function kd(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Is((r,o)=>{const i=r[0];return o.tag===0?wt(s=>ze(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new h(0,[he()])):new h(1,[[t,new E(0,["an object",n])]])}function Id(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Hs((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new h(0,[ze([s.fields[0],a.fields[0]],o.fields[0])]):new h(1,[a.fields[0]])}else return new h(1,[s.fields[0]])}else return o},new h(0,[he()]),Object.keys(r)):new h(1,[[n,new E(0,["an object",r])]])}function Ca(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new h(1,[[n,new E(6,[(o=r.length|0,Ve(Re("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new h(0,[he()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const u=s.fields[0],l=Ve(Re("%s[%i]"))(n)(a),f=pe(a-e,t),c=pe(a,r);s=wt(m=>ze(m,u),f(l)(c))}return wt(_o,s)}}function Ea(e,t,n,r,o,i){const s=Su(a=>fo(a)===r,Uc(n));if(s!=null){const a=s,u=gt(l=>ot(e,t,!1,l[1]),Gc(a));return wt(l=>Wc(a,Jt(l)),u.length===0&&i.length<=1?new h(0,[he()]):Ca(1,u,o,i))}else return new h(1,[[o,new E(6,["Cannot find case "+r+" in "+de(n)])]])}function ka(e,t,n,r){let o;const i=new Xe(At());let s;const a=de(r);s=a===""?e:Vf(a,i,e);let u;if(zc(r)){const l=gt(f=>[Vu(t,fo(f)),ot(s,t,!1,f[1])],sr(r));u=f=>c=>wt(m=>Qc(r,Jt(m)),kd(l,f,c))}else if(Lc(r))u=l=>f=>{if(typeof f=="string")return Ea(s,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Uu(m=>Ea(s,t,r,m,l,c),ha(l+"[0]",pe(0,c)))}else return new h(1,[[l,new E(0,["a string or array",f])]])};else if(n)u=l=>f=>new h(1,[[l,new E(2,["an extra coder for "+de(r),f])]]);else throw new Error((o=de(r),Ve(Re(`Cannot generate auto decoder for %s. Please pass an extra decoder.
11
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Lr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ic(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new w(1,[yh(i[0],i[1])])}else return new w(0,[r.fields[0]])}function gn(e,t){try{return Ic("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new w(1,["Given an invalid JSON: "+n.message]);throw n}}function Rc(e,t){return typeof t=="string"?new w(0,[t]):new w(1,[[e,new I(0,["a string",t])]])}function xh(e,t){if(typeof t=="string"){const n=t;return n.length===1?new w(0,[n[0]]):new w(1,[[e,new I(0,["a single character string",t])]])}else return new w(1,[[e,new I(0,["a char",t])]])}function bh(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Yf(t,new dt(()=>r,i=>{r=i})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new I(0,["a guid",t])]])}else return new w(1,[[e,new I(0,["a guid",t])]])}function _h(e,t){return t==null?new w(0,[void 0]):new w(1,[[e,new I(0,["null",t])]])}const Fc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new w(0,[(i+128&255)-128]):new w(1,[[n,new I(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new w(1,[[n,new I(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!1,8,new dt(()=>o,a=>{o=a|0})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["a sbyte",r])]])}else return new w(1,[[n,new I(0,["a sbyte",r])]])},Mc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new w(0,[i&255]):new w(1,[[n,new I(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new w(1,[[n,new I(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!0,8,new dt(()=>o,a=>{o=a})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["a byte",r])]])}else return new w(1,[[n,new I(0,["a byte",r])]])},jc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new w(0,[(i+32768&65535)-32768]):new w(1,[[n,new I(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new w(1,[[n,new I(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!1,16,new dt(()=>o,a=>{o=a|0})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["an int16",r])]])}else return new w(1,[[n,new I(0,["an int16",r])]])},Nc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new w(0,[i&65535]):new w(1,[[n,new I(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new w(1,[[n,new I(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!0,16,new dt(()=>o,a=>{o=a})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["an uint16",r])]])}else return new w(1,[[n,new I(0,["an uint16",r])]])},$c=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new w(0,[~~i]):new w(1,[[n,new I(1,["an int",i,"Value was either too large or too small for an int"])]]):new w(1,[[n,new I(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!1,32,new dt(()=>o,a=>{o=a|0})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["an int",r])]])}else return new w(1,[[n,new I(0,["an int",r])]])},Oc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new w(0,[i>>>0]):new w(1,[[n,new I(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new w(1,[[n,new I(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[or(r,511,!0,32,new dt(()=>o,a=>{o=a})),o],i[0]?new w(0,[i[1]]):new w(1,[[n,new I(0,["an uint32",r])]])}else return new w(1,[[n,new I(0,["an uint32",r])]])};function Ah(e,t){return typeof t=="boolean"?new w(0,[t]):new w(1,[[e,new I(0,["a boolean",t])]])}function Ch(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new I(0,["a float",t])]])}function kh(e,t){return typeof t=="number"?new w(0,[t]):new w(1,[[e,new I(0,["a float32",t])]])}function Sh(e,t){if(typeof t=="string"){let n,r=df();return n=[ff(t,new dt(()=>r,i=>{r=i})),r],n[0]?new w(0,[mf(n[1])]):new w(1,[[e,new I(0,["a datetime",t])]])}else return new w(1,[[e,new I(0,["a datetime",t])]])}function Eh(e,t){if(typeof t=="string"){let n,r=am();return n=[lm(t,new dt(()=>r,i=>{r=i})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new I(0,["a datetimeoffset",t])]])}else return new w(1,[[e,new I(0,["a datetime",t])]])}function Th(e,t){if(typeof t=="string"){let n,r=0;return n=[wm(t,new dt(()=>r,i=>{r=i})),r],n[0]?new w(0,[n[1]]):new w(1,[[e,new I(0,["a timespan",t])]])}else return new w(1,[[e,new I(0,["a timespan",t])]])}function Pc(e,t,n,r){let i;const o=n+".["+Nt(e)+"]";if(Array.isArray(r)){const a=r;return e<a.length?t(o,le(e,a)):new w(1,[[o,new I(5,["a longer array. Need index `"+Nt(e)+"` but there are only `"+(i=a.length,Nt(i))+"` entries",r])]])}else return new w(1,[[o,new I(0,["an array",r])]])}function Dh(e,t,n){return n==null?new w(0,[void 0]):Xt(Ve,e(t,n))}function Bc(e,t,n){if(Array.isArray(n)){let r=-1;return Xt(ta,Di((i,o)=>{if(r=r+1|0,i.tag===0){const a=e(t+".["+Nt(r)+"]",o);return a.tag===0?new w(0,[ft(a.fields[0],i.fields[0])]):new w(1,[a.fields[0]])}else return i},new w(0,[Ie()]),n))}else return new w(1,[[t,new I(0,["a list",n])]])}function Ih(e,t,n){if(Array.isArray(n)){let r=-1;return Xt(Nm,Di((i,o)=>{if(r=r+1|0,i.tag===0){const a=e(t+".["+Nt(r)+"]",o);return a.tag===0?new w(0,[B([a.fields[0]],i.fields[0])]):new w(1,[a.fields[0]])}else return i},new w(0,[[]]),n))}else return new w(1,[[t,new I(0,["a seq",n])]])}function Hc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Di((o,a)=>{if(r=r+1|0,o.tag===0){const s=o.fields[0],l=e(t+".["+Nt(r)+"]",a);return l.tag===0?(Ot(s,r,l.fields[0]),new w(0,[s])):new w(1,[l.fields[0]])}else return o},new w(0,[Ti(new Array(i.length),0,i.length,null)]),i)}else return new w(1,[[t,new I(0,["an array",n])]])}function Rh(e,t,n){return((i,o)=>{e:for(;;){const a=i,s=o;if(q(a))return new w(1,[[t,new I(7,[s])]]);{const l=Ic(t,K(F(a)),n);if(l.tag===1){i=W(a),o=Pr(s,P(l.fields[0]));continue e}else return new w(0,[l.fields[0]])}}})(e,Ie())}function Fh(e,t,n){return new w(0,[e])}function Lc(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new w(1,[i.fields[0]])}function Mh(e,t,n,r){const i=t(n,r);return i.tag===1?new w(1,[i.fields[0]]):new w(0,[e(i.fields[0])])}function jh(e,t){let n;const r=e;return n=i=>o=>Pc(0,r,i,o),i=>o=>Lc(Wo(a=>{let s;const l=t;return s=c=>d=>Pc(1,l,c,d),c=>d=>Lc((u,m,f)=>Fh([a,u]),K(s),c,d)}),K(n),i,o)}function Nh(e){return eh(e,{Compare:ut})}function $h(e){return vh(e,{Compare:ut})}function Oh(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Vl((r,i)=>{const o=r[0];return i.tag===0?Xt(a=>ft(a,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new w(0,[Ie()])):new w(1,[[t,new I(0,["an object",n])]])}function Ph(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Mi((i,o)=>{if(i.tag===0){const a=e(n,o);if(a.tag===0){const s=t(n+"."+o,r[o]);return s.tag===0?new w(0,[ft([a.fields[0],s.fields[0]],i.fields[0])]):new w(1,[s.fields[0]])}else return new w(1,[a.fields[0]])}else return i},new w(0,[Ie()]),Object.keys(r)):new w(1,[[n,new I(0,["an object",r])]])}function zc(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new w(1,[[n,new I(6,[(i=r.length|0,Xe(ze("Expected array of length %i but got %i"))(o)(i))])]]);{let a=new w(0,[Ie()]);for(let s=e;s<=r.length-1;s++)if(a.tag===0){const l=a.fields[0],c=Xe(ze("%s[%i]"))(n)(s),d=le(s-e,t),u=le(s,r);a=Xt(m=>ft(m,l),d(c)(u))}return Xt(ta,a)}}function Uc(e,t,n,r,i,o){const a=Rf(s=>Xn(s)===r,bl(n));if(a!=null){const s=a,l=_t(c=>Tt(e,t,!1,c[1]),kl(s));return Xt(c=>Xp(s,rr(c)),l.length===0&&o.length<=1?new w(0,[Ie()]):zc(1,l,i,o))}else return new w(1,[[i,new I(6,["Cannot find case "+r+" in "+ae(n)])]])}function Vc(e,t,n,r){let i;const o=new dt(ct());let a;const s=ae(r);a=s===""?e:gc(s,o,e);let l;if(Cl(r)){const c=_t(d=>[Ql(t,Xn(d)),Tt(a,t,!1,d[1])],Tr(r));l=d=>u=>Xt(m=>Yp(r,rr(m)),Oh(c,d,u))}else if(Al(r))l=c=>d=>{if(typeof d=="string")return Uc(a,t,r,d,c,[]);if(Array.isArray(d)){const u=d;return Qf(m=>Uc(a,t,r,m,c,u),Rc(c+"[0]",le(0,u)))}else return new w(1,[[c,new I(0,["a string or array",d])]])};else if(n)l=c=>d=>new w(1,[[c,new I(2,["an extra coder for "+ae(r),d])]]);else throw new Error((i=ae(r),Xe(ze(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
12
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=u,u}function ot(e,t,n,r){let o,i,s,a;const u=de(r),l=Lf(u,e);if(l==null)if(Pc(r)){const f=ot(e,t,!1,ir(r));return c=>m=>xa(V(f),c,m)}else if(cs(r))switch(de($c(r))){case"System.SByte":return c=>m=>{const p=r,g=c,_=m,w=ma(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>m=>{const p=r,g=c,_=m,w=ga(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>m=>{const p=r,g=c,_=m,w=wa(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,dc(y))]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>m=>{const p=r,g=c,_=m,w=_a(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>m=>{const p=r,g=c,_=m,w=ya(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0]|0;return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,it(y))]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>m=>{const p=r,g=c,_=m,w=ba(g)(_);if(w.tag===1)return new h(1,[w.fields[0]]);{const y=w.fields[0];return Yt(y,Wt(p),{Equals:(C,T)=>C===T,GetHashCode:Ke})?new h(0,[Qt(p,y.toString())]):new h(1,[[g,new E(1,[de(p),_,"Unkown value provided for the enum"])]])}};default:{const c=de(r),m=pu(Re(`Cannot generate auto decoder for %s.
13
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Tt(e,t,n,r){let i,o,a,s;const l=ae(r),c=wc(l,e);if(c==null)if(wl(r)){const d=Tt(e,t,!1,Er(r));return u=>m=>Hc(K(d),u,m)}else if(Zo(r))switch(ae(xl(r))){case"System.SByte":return u=>m=>{const f=r,h=u,v=m,g=Fc(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0]|0;return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,b.toString())]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>m=>{const f=r,h=u,v=m,g=Mc(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0];return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,b.toString())]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>m=>{const f=r,h=u,v=m,g=jc(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0]|0;return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,Sp(b))]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>m=>{const f=r,h=u,v=m,g=Nc(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0];return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,b.toString())]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>m=>{const f=r,h=u,v=m,g=$c(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0]|0;return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,Nt(b))]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>m=>{const f=r,h=u,v=m,g=Oc(h)(v);if(g.tag===1)return new w(1,[g.fields[0]]);{const b=g.fields[0];return sr(b,Yn(f),{Equals:(C,E)=>C===E,GetHashCode:xt})?new w(0,[er(f,b.toString())]):new w(1,[[h,new I(1,[ae(f),v,"Unkown value provided for the enum"])]])}};default:{const u=ae(r),m=$l(ze(`Cannot generate auto decoder for %s.
15
14
  Thoth.Json.Net only support the following enum types:
16
15
  - sbyte
17
16
  - byte
@@ -20,23 +19,49 @@ Thoth.Json.Net only support the following enum types:
20
19
  - int
21
20
  - uint32
22
21
  If you can't use one of these types, please pass an extra decoder.
23
- `))(c);return p=>m(p)}}else if(Bc(r))if(us(r)){const f=gt(c=>ot(e,t,!1,c),Vc(r));return c=>m=>Array.isArray(m)?wt(p=>qc(Jt(p)),Ca(0,f,c,m)):new h(1,[[c,new E(0,["an array",m])]])}else switch(de(jc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=ot(e,t,!0,pe(0,ht(r))),c=>m=>yd(V(o),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=ot(e,t,!1,pe(0,ht(r))),c=>m=>va(V(i),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=ot(e,t,!1,pe(0,ht(r))),c=>m=>bd(V(s),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=ot(e,t,!1,pe(0,ht(r))),m=ot(e,t,!1,pe(1,ht(r)));let p;const g=x([_=>w=>Id(V(c),V(m),_,w),(a=Sd(V(c),V(m)),_=>w=>va(V(a),_,w))]);return p=_=>w=>Ad(g,_,w),_=>w=>xd(Cd,V(p),_,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=ot(e,t,!1,pe(0,ht(r)));return m=>p=>{const g=xa(V(c),m,p);return g.tag===0?new h(0,[Ed(g.fields[0])]):new h(1,[g.fields[0]])}}default:return ka(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>pd(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>dd(f,c);case"System.String":return f=>c=>ha(f,c);case"System.Char":return f=>c=>ud(f,c);case"System.SByte":return ma;case"System.Byte":return ga;case"System.Int16":return wa;case"System.UInt16":return _a;case"System.Int32":return ya;case"System.UInt32":return ba;case"System.Double":return f=>c=>hd(f,c);case"System.Single":return f=>c=>md(f,c);case"System.DateTime":return f=>c=>gd(f,c);case"System.DateTimeOffset":return f=>c=>wd(f,c);case"System.TimeSpan":return f=>c=>_d(f,c);case"System.Guid":return f=>c=>fd(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return ka(e,t,n,r)}else{const f=l;return c=>m=>f.contents(c)(m)}}function Dd(e){return ea({Compare:so})}function sn(e,t,n){const r=Ss(t,new Dt(0,[]));return ot(Dd(),r,!1,e)}class Eo extends Y{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Td(e){return new Eo(e)}const Rd=new Eo("Import.RunInvites"),Md=new Eo("Import.RunImports");class Fd extends G{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Ia(e){return Ts(Rd,e.Roles,{Equals:ke,GetHashCode:os})}function Da(e){return Ts(Md,e.Roles,{Equals:ke,GetHashCode:os})}function Od(e){let t;const n=go(e??"",["."],void 0,0);if(!Eu((r,o)=>r===o,n)&&n.length===3){const r=pe(1,n),o=atob(r);t=on(V(sn(uo(["Name",le],["Roles",Fc(le)]),new Dt(1,[]))),o)}else t=new h(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new Fd(r.Name,x(gt(Td,r.Roles)))}}class Nd extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function ko(){return xn("Import.Dto.Shared.AdminApi.Read.ImportStageDto",[],Nd,()=>[[],[]])}class Pd extends G{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bd(){return Ue("Import.Dto.Shared.AdminApi.Read.FailedRowInfoDto",[],Pd,()=>[["RowId",ce],["Reason",le]])}class jd extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function $d(){return xn("Import.Dto.Shared.AdminApi.Read.BenefitsRequestTypeDto",[],jd,()=>[[],[]])}class Hd extends G{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Ud(){return Ue("Import.Dto.Shared.AdminApi.Read.BenefitsRequestInfoDto",[],Hd,()=>[["User",le],["ProfileCount",ce],["RequestType",$d()],["RequestedAt",mt("System.DateTime")]])}class Vd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function Ld(){return Ue("Import.Dto.Shared.AdminApi.Read.RunningStageDto",[],Vd,()=>[["Stage",ko()],["InputRowCount",ce],["StartTime",mt("System.DateTime")],["SucceededRowCount",Gt(ce)],["FailedRowCount",Gt(ce)],["RemainingRowCount",Gt(ce)]])}class zd extends G{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function Ta(){return Ue("Import.Dto.Shared.AdminApi.Read.CompletedStageDto",[],zd,()=>[["Stage",ko()],["InputRowCount",ce],["SucceededRowCount",ce],["FailedRowCount",ce],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Gd extends G{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function Ra(){return Ue("Import.Dto.Shared.AdminApi.Read.ActiveImportDto",[],Gd,()=>[["ImportId",ce],["User",le],["Filename",le],["NumberOfRecords",ce],["CurrentStage",Gt(Ld())],["CompletedStages",st(Ta())],["StartTime",mt("System.DateTime")]])}class Wd extends G{constructor(t,n,r,o,i,s,a,u){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=u}}function Ma(){return Ue("Import.Dto.Shared.AdminApi.Read.PastImportDto",[],Wd,()=>[["ImportId",ce],["User",le],["Filename",le],["NumberOfRecords",ce],["CompletedStages",st(Ta())],["BenefitsRequests",st(Ud())],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Fa extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Qd(){return xn("Import.Dto.Shared.AdminApi.Read.ImportStatusDto",[],Fa,()=>[[["Item",Ra()]],[["Item",Ma()]]])}class qd extends G{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zd(){return Ue("Import.Dto.Shared.AdminApi.Read.AccountImportsDto",[],qd,()=>[["ActiveImport",Gt(Ra())],["ImportHistory",st(Ma())]])}class Jd extends G{constructor(t,n){super(),this.Column=t,this.Message=n}}function Kd(){return Ue("Import.Dto.Shared.AdminApi.Read.FieldError",[],Jd,()=>[["Column",le],["Message",le]])}class Xd extends G{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Yd(){return Ue("Import.Dto.Shared.AdminApi.Read.RowValidationError",[],Xd,()=>[["RowId",ce],["FieldErrors",st(Kd())]])}class ep extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function tp(){return xn("Import.Dto.Shared.AdminApi.Read.ApiError",[],ep,()=>[[],[],[],[],[],[],[["Item",le]],[],[],[],[["Item",st(Yd())]],[],[],[],[],[["Item",uo(["Message",le])]],[["Item",uo(["Message",le])]]])}class np extends G{constructor(t,n,r,o,i,s,a){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=o|0,this.FailedRowCount=i|0,this.StartTime=s,this.StopTime=a}}function rp(){return Ue("Import.Dto.Shared.AdminApi.Read.CompletedStageDetailsDto",[],np,()=>[["Stage",ko()],["FailedRows",st(Bd())],["TotalRowCount",ce],["SucceededRowCount",ce],["FailedRowCount",ce],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class op extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function ip(){return xn("Import.Dto.Shared.AdminApi.Read.ValidationRule",[],op,()=>[[["Item",ce]],[["Item",le]],[["Item",st(le)]]])}class sp extends G{constructor(t,n,r,o,i){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=o,this.ValidationRules=i}}function ap(){return Ue("Import.Dto.Shared.AdminApi.Read.ColumnDefinitionDto",[],sp,()=>[["DisplayName",le],["PropName",le],["Description",Gt(le)],["Required",Nc],["ValidationRules",st(ip())]])}class lp extends G{constructor(t){super(),this.ColumnsInfo=t}}function cp(){return Ue("Import.Dto.Shared.AdminApi.Read.ImportSchemaDto",[],lp,()=>[["ColumnsInfo",st(ap())]])}class up{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class yr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,yr.prototype)}}class Io{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Io.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function _t(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new yr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(er(n))}});else try{e(t)}catch(n){t.onError(er(n))}}}function fp(e,t){return _t(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(er(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function dp(e){return _t(t=>t.onSuccess(e))}class pp{Bind(t,n){return fp(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return _t(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return dp(t)}ReturnFrom(t){return t}TryFinally(t,n){return _t(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return _t(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(er(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return _t(t=>t.onSuccess(void 0))}}const A=new pp;function hp(e){return new Oa(0,[e])}function mp(e){return new Oa(1,[e])}class Oa extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function gp(e){return hp(e)}function wp(e){return mp(e)}function Do(e){}const _p=new up;function yp(e){return _t(t=>{e({onSuccess:n=>t.onSuccess(gp(n)),onError:n=>t.onSuccess(wp(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function bp(e){return _t(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Ap(e){return _t(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new yr)})})}function vp(e,t){return xp(e,t)}function To(e,t){return vp(e,t)}function xp(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Io;e({onSuccess:t||Do,onError:Do,onCancel:Do,cancelToken:o||_p,trampoline:i})}class St extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Sp extends Y{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Na extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Nn extends G{constructor(t,n,r,o,i,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=u}}class an extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Pa extends G{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function Mt(e){return new Sp("Authorization",e)}const Ft=new Nn("",new St(0,[]),he(),!1,void 0,void 0,void 0,new Na(0,[]));new Pa(0,"","","",ea({Compare:so}),new an(0,[""]));function Ba(e,t){return wu(t)?new Array(0):go(t,[e],void 0,0)}function Cp(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Ot(e){return new Nn(e,Ft.method,Ft.headers,Ft.withCredentials,Ft.overridenMimeType,Ft.overridenResponseType,Ft.timeout,Ft.content)}function Nt(e,t){return new Nn(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Pt(e,t){return new Nn(t.url,t.method,Rn(t.headers,W(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ep(e,t){return new Nn(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Bt(e){return bp(t=>{const n=new XMLHttpRequest;n.open(Cp(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,m,p,g;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,m=(p=n.responseType,p===""?new an(0,[n.responseText]):p==="text"?new an(0,[n.responseText]):p==="arraybuffer"?new an(2,[n.response]):p==="blob"?new an(1,[n.response]):new an(3,[n.response])),g=Gf(Cu(_=>{const w=x(Ba(":",_));if(!P(w))return[k(w).toLocaleLowerCase(),Me(":",N(w)).trim()]},Ba(`\r
24
- `,n.getAllResponseHeaders())),{Compare:so}),new Pa(f,u,c,n.responseURL,g,m)))};const r=ne(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{q(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const u=o;n.overrideMimeType(u)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Fe(a.fields[0]));break}case 3:{n.send(Fe(a.fields[0]));break}case 2:{n.send(Fe(a.fields[0]));break}default:n.send()}})}class Ro extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class kp{constructor(t,n,r,o){this.backendUrl=t,this.accessToken=o,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function Ip(e,t,n,r){return new kp(e,t,n,r)}function Dp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new St(0,[]),Ot(`${e.backendUrl}/import/admin/schema`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];if(s.statusCode===200){const a=on(V(sn(cp(),new Dt(1,[]))),s.responseText);return A.Return(a)}else return A.Return(new h(1,["Failed to get import schema"]))}})})}function Tp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(0,[]),Ot(`${e.baseUrl}/${t}/status`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];if(a.statusCode===200){const u=on(V(sn(Qd(),new Dt(1,[]))),a.responseText);return A.Return(u)}else return A.Return(new h(1,["Failed to get import status"]))}})})}function Rp(e,t,n){return A.Delay(()=>{let r,o;const i=Bt((r=Nt(new St(0,[]),Ot(`${e.baseUrl}/${t}/stages/${n}`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),r)));return o=A.Bind(i,s=>A.Return(new h(0,[s]))),A.Bind(o,s=>{const a=s;if(a.tag===1)return A.Return(new h(1,[a.fields[0]]));{const u=a.fields[0];if(u.statusCode===200){const l=on(V(sn(rp(),new Dt(1,[]))),u.responseText);return A.Return(l)}else return A.Return(new h(1,["Failed to get import stage details"]))}})})}function Mp(e){return A.Delay(()=>{let t,n;const r=Bt((t=Nt(new St(0,[]),Ot(e.baseUrl)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,o=>A.Return(new h(0,[o]))),A.Bind(n,o=>{const i=o;if(i.tag===1)return A.Return(new h(1,[i.fields[0]]));{const s=i.fields[0];switch(s.statusCode|0){case 200:{let u;const l=on(V(sn(Zd(),new Dt(1,[]))),s.responseText);return u=l.tag===1?new h(1,[l.fields[0]]):new h(0,[l.fields[0]]),A.Return(u)}case 404:return A.Return(new h(0,[void 0]));default:return A.Return(new h(1,["Failed to get account imports"]))}}})})}function Fp(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Ep(new Na(3,[t]),Nt(new St(1,[]),Ot(e.baseUrl))),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;if(s.tag===1)return A.Return(new h(1,[s.fields[0]]));{const a=s.fields[0];switch(a.statusCode|0){case 201:return A.Return(new h(0,[void 0]));case 400:{let l,f;const c=on(V(sn(tp(),new Dt(1,[]))),a.responseText);return f=c.tag===1?new h(1,[new Ro(1,[c.fields[0]])]):new h(0,[c.fields[0]]),l=A.Return(f),A.Bind(l,m=>{const p=m;return p.tag===1?A.Return(new h(1,[p.fields[0]])):A.Return(new h(1,[new Ro(0,[p.fields[0]])]))})}default:return A.Return(new h(1,[new Ro(1,["Failed to start import"])]))}}})})}function Op(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(2,[]),Ot(`${e.baseUrl}/${t}/benefits/invite-all`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to send invites"]))})})}function Np(e,t){return A.Delay(()=>{let n,r;const o=Bt((n=Nt(new St(2,[]),Ot(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Pt(Mt(Ve(Re("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(o,i=>A.Return(new h(0,[i]))),A.Bind(r,i=>{const s=i;return s.tag===1?A.Return(new h(1,[s.fields[0]])):s.fields[0].statusCode===202?A.Return(new h(0,[void 0])):A.Return(new h(1,["Failed to revoke invites"]))})})}class Pp{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Bp(e,t){t.Subscribe(new Pp(e))}class jp{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Hp(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}class $p extends jp{}function Hp(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class Up{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new $p}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Vp(e,t){console.error(Fe(e),t)}function Lp(e,t){let n,r=new Up(e);r.AutoReset=!1,n=r,Bp(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ja(e,t,n){Tn(r=>{try{r(t)}catch(o){e(o)}},n)}function Ie(){return he()}function Pn(e,t,n,r){return W(o=>{e(A.Delay(()=>A.Bind(yp(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),A.Zero()})))})}function Bn(e){Lp(1,t=>{To(e)})}function Mo(e){return e.tag===1?"tax":"profiles"}class _e extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class We extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports"]}}function $a(e){return e.tag===1?"Past Imports":"Active Import"}class zp extends G{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class De extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class jn extends G{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}class ye extends G{constructor(t,n,r,o,i){super(),this.User=t,this.CurrentTab=n,this.AccountInfo=r,this.ActiveImportTabState=o,this.ImportHistoryTabState=i}}class re extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus","SendInvites","RevokeInvites"]}}function Gp(e,t){return[new ye(e,new We(0,[]),t,new De(0,[]),new jn(he(),void 0)),W(n=>{n(new re(4,[new _e(0,[void 0])]))})]}function Wp(e,t,n){let r,o,i;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()];if(t.fields[0].fields[0].fields[0]==null)return[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(1,[]),n.ImportHistoryTabState),Ie()];{const s=t.fields[0].fields[0].fields[0];let a;const u=s.ActiveImport;if(u==null)a=[new De(1,[]),Ie()];else{const l=u;a=[new De(4,[new Fa(0,[l])]),W(f=>{f(new re(6,[new _e(0,[l.ImportId])]))})]}return[new ye(n.User,n.CurrentTab,n.AccountInfo,a[0],new jn(s.ImportHistory,(r=n.ImportHistoryTabState.ImportSummary,r==null?void 0:(o=r,Fu(l=>l.ImportId===o.ImportId,s.ImportHistory))))),a[1]]}}else return[n,Pn(s=>{Bn(s)},()=>Mp(e),t.fields[0].fields[0],s=>new re(4,[new _e(1,[s])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(i=n.ActiveImportTabState,i.tag===4&&i.fields[0].tag===0?W(s=>{s(new re(6,[new _e(0,[i.fields[0].fields[0].ImportId])]))}):Ie())]:t.fields[0].fields[0].fields[0].tag===1?[new ye(n.User,new We(1,[]),n.AccountInfo,new De(1,[]),new jn(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),W(s=>{s(new re(6,[new _e(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,Pn(s=>{Bn(s)},s=>A.Delay(()=>A.Bind(Ap(1e4),()=>A.ReturnFrom(Tp(e,s)))),t.fields[0].fields[0],s=>new re(6,[new _e(1,[s])]))];case 1:return[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(1,[]),n.ImportHistoryTabState),Ie()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[new ye(n.User,new We(0,[]),n.AccountInfo,new De(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[new ye(n.User,n.CurrentTab,n.AccountInfo,new De(2,[]),n.ImportHistoryTabState),Pn(s=>{Bn(s)},s=>Fp(e,s),t.fields[0].fields[0],s=>new re(5,[new _e(1,[s])]))];case 2:return[new ye(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,t.fields[0])),Ie()];case 3:return[new ye(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,void 0)),Ie()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Op(e,s),t.fields[0].fields[0],s=>new re(7,[new _e(1,[s])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new ye(n.User,new We(0,[]),n.AccountInfo,new De(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),Ie()]:[n,W(s=>{s(new re(4,[new _e(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Np(e,s),t.fields[0].fields[0],s=>new re(8,[new _e(1,[s])]))];default:return[new ye(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),Ie()]}}function Qp(){return he()}function Fo(e){return Me("/",e)}function qp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Fo(t),n])}function Ha(e,t,n){try{q(n)}catch(r){e(["Error stopping subscription: "+Fo(t),r])}}function Zp(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Fo(n),o]);return}}function Jp(e,t){Tn(n=>{Ha(e,n[0],n[1])},t)}function Ua(e,t,n,r,o,i){return Tn(s=>{qp(e,s)},n),Tn(s=>{Ha(e,s[0],s[1])},r),Rn(o,Bu(s=>Zp(e,t,s[0],s[1]),i))}function Kp(){return[he(),sd({Compare:$e}),he()]}function Xp(e,t,n,r,o){return Co(e,r)?[ze(e,n),r,o]:[n,id(e,r),ze([e,t],o)]}function Yp(e){return Du((t,n)=>Xp(t[0],t[1],n[0],n[1],n[2]),e,Kp())}const eh=he();function Va(e,t){const n=ad(xt(s=>s[0],e),{Compare:$e}),r=Yp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,he(),e,he()];{const s=Pu(a=>Co(a[0],o),e);return[i,s[1],s[0],Nu(a=>!Co(a[0],n),r[2])]}}function th(e,t,n,r){const o=$e(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=$e(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function nh(e,t,n,r,o){const i=th(t,n,r,o);return M(()=>_f(i,e))}function rh(e,t,n){return nh(e,t,n,0,(r,o)=>r+o)}class ln extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class oh{constructor(t){this.state=new ln(0,[wo(new Array(ks(t,10)),0,ks(t,10),null),0])}}function ih(e){return new oh(e)}function La(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new ln(0,[o,n]):e.state=new ln(1,[o,n,i]),Fe(pe(r,o))}else return}function sh(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];vt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new ln(1,[ah(e,o,i),i.length,0]):e.state=new ln(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];vt(o,r,t);const i=(r+1)%o.length|0;e.state=new ln(1,[o,i,r])}}function ah(e,t,n){return Array.from(M(()=>$(Sf(t,n),M(()=>$(Cf(t,n),M(()=>Fn(r=>R(At()),rh(0,1,n.length))))))))}class Oo extends G{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function lh(e,t,n){return new Oo(e,t,r=>Qp(),n,V(r=>{const o=He(n)(r);return i=>{o(i)}}),r=>{Vp(r[0],r[1])},[r=>!1,r=>{}])}function ch(e,t){return new Oo(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function uh(e){return e.init}function fh(e,t,n,r,o,i,s){const a=He(e)(s.init),u=Yn(t)(He(s.update)),l=Yn(n)(He(s.view)),f=Yn(r)(He(s.setState));return new Oo(a,V(u),He(o)(s.subscribe),V(l),V(f),s.onError,i(s.termination))}function dh(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,u=ih(10);let l=!1,f=i,c=eh,m=!1;const p=w=>{m||(sh(u,w),l||(l=!0,_(),l=!1))},g=He(e)(p),_=()=>{let w,y=La(u);for(;!m&&y!=null;){const C=b(y);if(a[0](C))Jp(n.onError,c),a[1](f),m=!0;else{const T=n.update(C,f),ee=T[0],Q=n.subscribe(ee);n.setState(ee,g),ja(X=>{n.onError([Ve(Re("Error handling the message: %A"))(C),X])},g,T[1]),f=ee,c=(w=Va(c,Q),Ua(n.onError,g,w[0],w[1],w[2],w[3])),y=La(u)}}};l=!0,n.setState(i,g),ja(w=>{n.onError([Ve(Re("Error intitializing:")),w])},g,o[1]),c=(r=Va(c,s),Ua(n.onError,g,r[0],r[1],r[2],r[3])),_(),l=!1}function ph(e,t){dh(V(n=>n),e,t)}function hh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mh(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var za={exports:{}},Ga={};const gh=mh(ac);/**
22
+ `))(u);return f=>m(f)}}else if(vl(r))if(Jo(r)){const d=_t(u=>Tt(e,t,!1,u),_l(r));return u=>m=>Array.isArray(m)?Xt(f=>ef(rr(f)),zc(0,d,u,m)):new w(1,[[u,new I(0,["an array",m])]])}else switch(ae(yl(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Tt(e,t,!0,le(0,rt(r))),u=>m=>Dh(K(i),u,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Tt(e,t,!1,le(0,rt(r))),u=>m=>Bc(K(o),u,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return a=Tt(e,t,!1,le(0,rt(r))),u=>m=>Ih(K(a),u,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Tt(e,t,!1,le(0,rt(r))),m=Tt(e,t,!1,le(1,rt(r)));let f;const h=y([v=>g=>Ph(K(u),K(m),v,g),(s=jh(K(u),K(m)),v=>g=>Bc(K(s),v,g))]);return f=v=>g=>Rh(h,v,g),v=>g=>Mh(Nh,K(f),v,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Tt(e,t,!1,le(0,rt(r)));return m=>f=>{const h=Hc(K(u),m,f);return h.tag===0?new w(0,[$h(h.fields[0])]):new w(1,[h.fields[0]])}}default:return Vc(e,t,n,r)}else switch(l){case"System.Boolean":return d=>u=>Ah(d,u);case"Microsoft.FSharp.Core.Unit":return d=>u=>_h(d,u);case"System.String":return d=>u=>Rc(d,u);case"System.Char":return d=>u=>xh(d,u);case"System.SByte":return Fc;case"System.Byte":return Mc;case"System.Int16":return jc;case"System.UInt16":return Nc;case"System.Int32":return $c;case"System.UInt32":return Oc;case"System.Double":return d=>u=>Ch(d,u);case"System.Single":return d=>u=>kh(d,u);case"System.DateTime":return d=>u=>Sh(d,u);case"System.DateTimeOffset":return d=>u=>Eh(d,u);case"System.TimeSpan":return d=>u=>Th(d,u);case"System.Guid":return d=>u=>bh(d,u);case"System.Object":return d=>u=>new w(0,[u]);default:return Vc(e,t,n,r)}else{const d=c;return u=>m=>d.contents(u)(m)}}function Bh(e){return sa({Compare:fi})}function wn(e,t,n){const r=Ei(t,new Ct(0,[]));return Tt(Bh(),r,!1,e)}class zr extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AccessRole"]}}function Hh(e){return new zr(e)}const Lh=new zr("Import.RunInvites"),zh=new zr("Import.RunImports"),qc=new zr("Import.ConfigureSCIM"),Uh=new zr("Import.ConfigureSSO");class Vh extends Z{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Wc(e){return Ri(Lh,e.Roles,{Equals:we,GetHashCode:pi})}function Gc(e){return Ri(zh,e.Roles,{Equals:we,GetHashCode:pi})}function qh(e){return Ri(qc,e.Roles,{Equals:we,GetHashCode:pi})}function Wh(e){return Ri(Uh,e.Roles,{Equals:we,GetHashCode:pi})}function Gh(e){let t;const n=ea(e??"",["."],void 0,0);if(!Mf((r,i)=>r===i,n)&&n.length===3){const r=le(1,n),i=atob(r);t=gn(K(wn(bi(["Name",Ce],["Roles",Gp(Ce)]),new Ct(1,[]))),i)}else t=new w(1,["Failed to identify the user"]);if(t.tag!==1){const r=t.fields[0];return new Vh(r.Name,y(_t(Hh,r.Roles)))}}class Qh extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function da(){return fn("Import.Dto.Shared.AdminApi.Read.ImportStageDto",[],Qh,()=>[[],[]])}class Kh extends Z{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Zh(){return Je("Import.Dto.Shared.AdminApi.Read.FailedRowInfoDto",[],Kh,()=>[["RowId",Te],["Reason",Ce]])}class Jh extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Xh(){return fn("Import.Dto.Shared.AdminApi.Read.BenefitsRequestTypeDto",[],Jh,()=>[[],[]])}class Yh extends Z{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function eg(){return Je("Import.Dto.Shared.AdminApi.Read.BenefitsRequestInfoDto",[],Yh,()=>[["User",Ce],["ProfileCount",Te],["RequestType",Xh()],["RequestedAt",bt("System.DateTime")]])}class tg extends Z{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=a}}function ng(){return Je("Import.Dto.Shared.AdminApi.Read.RunningStageDto",[],tg,()=>[["Stage",da()],["InputRowCount",Te],["StartTime",bt("System.DateTime")],["SucceededRowCount",Jn(Te)],["FailedRowCount",Jn(Te)],["RemainingRowCount",Jn(Te)]])}class rg extends Z{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=a}}function Qc(){return Je("Import.Dto.Shared.AdminApi.Read.CompletedStageDto",[],rg,()=>[["Stage",da()],["InputRowCount",Te],["SucceededRowCount",Te],["FailedRowCount",Te],["StartTime",bt("System.DateTime")],["StopTime",bt("System.DateTime")]])}class ig extends Z{constructor(t,n,r,i,o,a,s){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=a,this.StartTime=s}}function Kc(){return Je("Import.Dto.Shared.AdminApi.Read.ActiveImportDto",[],ig,()=>[["ImportId",Te],["User",Ce],["Filename",Ce],["NumberOfRecords",Te],["CurrentStage",Jn(ng())],["CompletedStages",$t(Qc())],["StartTime",bt("System.DateTime")]])}class og extends Z{constructor(t,n,r,i,o,a,s,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=a,this.StartTime=s,this.StopTime=l}}function Zc(){return Je("Import.Dto.Shared.AdminApi.Read.PastImportDto",[],og,()=>[["ImportId",Te],["User",Ce],["Filename",Ce],["NumberOfRecords",Te],["CompletedStages",$t(Qc())],["BenefitsRequests",$t(eg())],["StartTime",bt("System.DateTime")],["StopTime",bt("System.DateTime")]])}class Jc extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function ag(){return fn("Import.Dto.Shared.AdminApi.Read.ImportStatusDto",[],Jc,()=>[[["Item",Kc()]],[["Item",Zc()]]])}class sg extends Z{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function lg(){return Je("Import.Dto.Shared.AdminApi.Read.AccountImportsDto",[],sg,()=>[["ActiveImport",Jn(Kc())],["ImportHistory",$t(Zc())]])}class cg extends Z{constructor(t,n){super(),this.Column=t,this.Message=n}}function ug(){return Je("Import.Dto.Shared.AdminApi.Read.FieldError",[],cg,()=>[["Column",Ce],["Message",Ce]])}class dg extends Z{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function pg(){return Je("Import.Dto.Shared.AdminApi.Read.RowValidationError",[],dg,()=>[["RowId",Te],["FieldErrors",$t(ug())]])}class fg extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidImportStages","InvalidImportStage","StageNotCompleted","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress","BadInternalRequestPayload","DuplicateRowId","InternalApiDeserializationError","InternalApiClientError"]}}function mg(){return fn("Import.Dto.Shared.AdminApi.Read.ApiError",[],fg,()=>[[],[],[],[],[],[],[["Item",Ce]],[],[],[],[["Item",$t(pg())]],[],[],[],[],[["Item",bi(["Message",Ce])]],[["Item",bi(["Message",Ce])]]])}class hg extends Z{constructor(t,n,r,i,o,a,s){super(),this.Stage=t,this.FailedRows=n,this.TotalRowCount=r|0,this.SucceededRowCount=i|0,this.FailedRowCount=o|0,this.StartTime=a,this.StopTime=s}}function gg(){return Je("Import.Dto.Shared.AdminApi.Read.CompletedStageDetailsDto",[],hg,()=>[["Stage",da()],["FailedRows",$t(Zh())],["TotalRowCount",Te],["SucceededRowCount",Te],["FailedRowCount",Te],["StartTime",bt("System.DateTime")],["StopTime",bt("System.DateTime")]])}class wg extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function vg(){return fn("Import.Dto.Shared.AdminApi.Read.ValidationRule",[],wg,()=>[[["Item",Te]],[["Item",Ce]],[["Item",$t(Ce)]]])}class yg extends Z{constructor(t,n,r,i,o){super(),this.DisplayName=t,this.PropName=n,this.Description=r,this.Required=i,this.ValidationRules=o}}function xg(){return Je("Import.Dto.Shared.AdminApi.Read.ColumnDefinitionDto",[],yg,()=>[["DisplayName",Ce],["PropName",Ce],["Description",Jn(Ce)],["Required",Ko],["ValidationRules",$t(vg())]])}class bg extends Z{constructor(t){super(),this.ColumnsInfo=t}}function _g(){return Je("Import.Dto.Shared.AdminApi.Read.ImportSchemaDto",[],bg,()=>[["ColumnsInfo",$t(xg())]])}let Xc=class extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}};function Ag(){return fn("Import.Dto.Shared.AdminApi.Read.ScimProviderDto",[],Xc,()=>[[["Item",bi(["TokenExpiresAt",bt("System.DateTime")],["TokenIsExpired",Ko])]]])}class Yc extends Z{constructor(t,n){super(),this.ScimProvider=t,this.Enabled=n}}function Cg(){return Je("Import.Dto.Shared.AdminApi.Read.ScimConfigDto",[],Yc,()=>[["ScimProvider",Ag()],["Enabled",Ko]])}class kg extends L{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraIdToken"]}}function Sg(){return fn("Import.Dto.Shared.AdminApi.Read.ScimProviderAuth",[],kg,()=>[[["Item",Tg()]]])}class Eg extends Z{constructor(t,n){super(),this.Token=t,this.TokenExpiresAt=n}}function Tg(){return Je("Import.Dto.Shared.AdminApi.Read.EntraIdTokenPayload",[],Eg,()=>[["Token",Ce],["TokenExpiresAt",bt("System.DateTime")]])}class Dg{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Bi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Bi.prototype)}}class pa{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>pa.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Yt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Bi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(gi(n))}});else try{e(t)}catch(n){t.onError(gi(n))}}}function Ig(e,t){return Yt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(gi(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Rg(e){return Yt(t=>t.onSuccess(e))}class Fg{Bind(t,n){return Ig(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Yt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Rg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Yt(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Yt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(gi(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Yt(t=>t.onSuccess(void 0))}}const A=new Fg;function Mg(e){return new eu(0,[e])}function jg(e){return new eu(1,[e])}class eu extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Ng(e){return Mg(e)}function $g(e){return jg(e)}function fa(e){}const Og=new Dg;function Pg(e){return Yt(t=>{e({onSuccess:n=>t.onSuccess(Ng(n)),onError:n=>t.onSuccess($g(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Bg(e){return Yt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ma(e){return Yt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Bi)})})}function Hg(e,t){return Lg(e,t)}function Hi(e,t){return Hg(e,t)}function Lg(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new pa;e({onSuccess:t||fa,onError:fa,onCancel:fa,cancelToken:i||Og,trampoline:o})}class Dt extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class zg extends L{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class ha extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ur extends Z{constructor(t,n,r,i,o,a,s,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=a,this.timeout=s,this.content=l}}class pr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class tu extends Z{constructor(t,n,r,i,o,a){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=a}}function Pt(e){return new zg("Authorization",e)}const Mn=new Ur("",new Dt(0,[]),Ie(),!1,void 0,void 0,void 0,new ha(0,[]));new tu(0,"","","",sa({Compare:fi}),new pr(0,[""]));function nu(e,t){return Af(t)?new Array(0):ea(t,[e],void 0,0)}function Ug(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Bt(e){return new Ur(e,Mn.method,Mn.headers,Mn.withCredentials,Mn.overridenMimeType,Mn.overridenResponseType,Mn.timeout,Mn.content)}function Ht(e,t){return new Ur(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Lt(e,t){return new Ur(t.url,t.method,Pr(t.headers,P(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ru(e,t){return new Ur(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function vn(e){return Bg(t=>{const n=new XMLHttpRequest;n.open(Ug(e.method),e.url),n.onreadystatechange=()=>{let l,c,d,u,m,f,h;n.readyState===4&&t[0]((l=(c=n.responseType,c===""||c==="text"?n.responseText:""),d=n.status|0,u=n.responseType,m=(f=n.responseType,f===""?new pr(0,[n.responseText]):f==="text"?new pr(0,[n.responseText]):f==="arraybuffer"?new pr(2,[n.response]):f==="blob"?new pr(1,[n.response]):new pr(3,[n.response])),h=th(Ff(v=>{const g=y(nu(":",v));if(!q(g))return[F(g).toLocaleLowerCase(),Ue(":",W(g)).trim()]},nu(`\r
23
+ `,n.getAllResponseHeaders())),{Compare:fi}),new tu(d,l,u,n.responseURL,h,m)))};const r=xe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{oe(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const a=e.timeout;if(a!=null){const l=a|0;n.timeout=l|0}const s=e.content;switch(s.tag){case 1:{n.send(Ve(s.fields[0]));break}case 3:{n.send(Ve(s.fields[0]));break}case 2:{n.send(Ve(s.fields[0]));break}default:n.send()}})}class ga extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadRequest","OtherError"]}}class Vg{constructor(t,n,r,i){this.backendUrl=t,this.accessToken=i,this.baseUrl=`${this.backendUrl}/import/admin/partners/${n}/accounts/${r}/imports`}}function qg(e,t,n,r){return new Vg(e,t,n,r)}function Wg(e){return A.Delay(()=>{let t,n;const r=vn((t=Ht(new Dt(0,[]),Bt(`${e.backendUrl}/import/admin/schema`)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,i=>A.Return(new w(0,[i]))),A.Bind(n,i=>{const o=i;if(o.tag===1)return A.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===200){const s=gn(K(wn(_g(),new Ct(1,[]))),a.responseText);return A.Return(s)}else return A.Return(new w(1,["Failed to get import schema"]))}})})}function Gg(e,t){return A.Delay(()=>{let n,r;const i=vn((n=Ht(new Dt(0,[]),Bt(`${e.baseUrl}/${t}/status`)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(i,o=>A.Return(new w(0,[o]))),A.Bind(r,o=>{const a=o;if(a.tag===1)return A.Return(new w(1,[a.fields[0]]));{const s=a.fields[0];if(s.statusCode===200){const l=gn(K(wn(ag(),new Ct(1,[]))),s.responseText);return A.Return(l)}else return A.Return(new w(1,["Failed to get import status"]))}})})}function Qg(e,t,n){return A.Delay(()=>{let r,i;const o=vn((r=Ht(new Dt(0,[]),Bt(`${e.baseUrl}/${t}/stages/${n}`)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),r)));return i=A.Bind(o,a=>A.Return(new w(0,[a]))),A.Bind(i,a=>{const s=a;if(s.tag===1)return A.Return(new w(1,[s.fields[0]]));{const l=s.fields[0];if(l.statusCode===200){const c=gn(K(wn(gg(),new Ct(1,[]))),l.responseText);return A.Return(c)}else return A.Return(new w(1,["Failed to get import stage details"]))}})})}function Kg(e){return A.Delay(()=>{let t,n;const r=vn((t=Ht(new Dt(0,[]),Bt(e.baseUrl)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),t)));return n=A.Bind(r,i=>A.Return(new w(0,[i]))),A.Bind(n,i=>{const o=i;if(o.tag===1)return A.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];switch(a.statusCode|0){case 200:{let l;const c=gn(K(wn(lg(),new Ct(1,[]))),a.responseText);return l=c.tag===1?new w(1,[c.fields[0]]):new w(0,[c.fields[0]]),A.Return(l)}case 404:return A.Return(new w(0,[void 0]));default:return A.Return(new w(1,["Failed to get account imports"]))}}})})}function Zg(e,t){return A.Delay(()=>{let n,r;const i=vn((n=ru(new ha(3,[t]),Ht(new Dt(1,[]),Bt(e.baseUrl))),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(i,o=>A.Return(new w(0,[o]))),A.Bind(r,o=>{const a=o;if(a.tag===1)return A.Return(new w(1,[a.fields[0]]));{const s=a.fields[0];switch(s.statusCode|0){case 201:return A.Return(new w(0,[void 0]));case 400:{let c,d;const u=gn(K(wn(mg(),new Ct(1,[]))),s.responseText);return d=u.tag===1?new w(1,[new ga(1,[u.fields[0]])]):new w(0,[u.fields[0]]),c=A.Return(d),A.Bind(c,m=>{const f=m;return f.tag===1?A.Return(new w(1,[f.fields[0]])):A.Return(new w(1,[new ga(0,[f.fields[0]])]))})}default:return A.Return(new w(1,[new ga(1,["Failed to start import"])]))}}})})}function Jg(e,t){return A.Delay(()=>{let n,r;const i=vn((n=Ht(new Dt(2,[]),Bt(`${e.baseUrl}/${t}/benefits/invite-all`)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(i,o=>A.Return(new w(0,[o]))),A.Bind(r,o=>{const a=o;return a.tag===1?A.Return(new w(1,[a.fields[0]])):a.fields[0].statusCode===202?A.Return(new w(0,[void 0])):A.Return(new w(1,["Failed to send invites"]))})})}function Xg(e,t){return A.Delay(()=>{let n,r;const i=vn((n=Ht(new Dt(2,[]),Bt(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Lt(Pt(Xe(ze("Bearer %s"))(e.accessToken)),n)));return r=A.Bind(i,o=>A.Return(new w(0,[o]))),A.Bind(r,o=>{const a=o;return a.tag===1?A.Return(new w(1,[a.fields[0]])):a.fields[0].statusCode===202?A.Return(new w(0,[void 0])):A.Return(new w(1,["Failed to revoke invites"]))})})}class Yg{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function e0(e,t){t.Subscribe(new Yg(e))}class t0{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return r0(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let n0=class extends t0{};function r0(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class i0{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new n0}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function o0(e,t){console.error(Ve(e),t)}function a0(e,t){let n,r=new i0(e);r.AutoReset=!1,n=r,e0(t,n.Elapsed()),n.Enabled=!0,n.Start()}function iu(e,t,n){Or(r=>{try{r(t)}catch(i){e(i)}},n)}function ie(){return Ie()}function en(e,t,n,r){return P(i=>{e(A.Delay(()=>A.Bind(Pg(t(n)),o=>{const a=o;return a.tag===0&&i(r(a.fields[0])),A.Zero()})))})}function tn(e){a0(1,t=>{Hi(e)})}function wa(e){return e.tag===1?"tax":"profiles"}class je extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Ne extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ActiveImport","PastImports","ScimConfiguration","SsoConfiguration"]}}function ou(e){switch(e.tag){case 1:return"Past Imports";case 2:return"SCIM Configuration";case 3:return"SSO Configuration";default:return"Active Import"}}class s0 extends Z{constructor(t,n,r,i){super(),this.AccountId=t,this.PartnerId=n,this.BackendUrl=r,this.AccessToken=i}}class et extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class Vr extends Z{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}let $e=class extends Z{constructor(t,n,r,i,o){super(),this.User=t,this.CurrentTab=n,this.ConnectionContext=r,this.ActiveImportTabState=i,this.ImportHistoryTabState=o}},be=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","SelectFile","ShowImportSummary","ShowImportHistory","GetImports","StartImport","GetImportStatus","SendInvites","RevokeInvites"]}};function l0(e,t){let n;return[new $e(e,(n=e.Roles,q(n)?new Ne(0,[]):q(W(n))?we(F(n),qc)?new Ne(2,[]):new Ne(0,[]):new Ne(0,[])),t,new et(0,[]),new Vr(Ie(),void 0)),P(r=>{r(new be(4,[new je(0,[void 0])]))})]}function c0(e,t,n){let r,i,o;switch(t.tag){case 4:if(t.fields[0].tag===1){if(t.fields[0].fields[0].tag===1)return[new $e(n.User,n.CurrentTab,n.ConnectionContext,new et(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ie()];if(t.fields[0].fields[0].fields[0]==null)return[new $e(n.User,n.CurrentTab,n.ConnectionContext,new et(1,[]),n.ImportHistoryTabState),ie()];{const a=t.fields[0].fields[0].fields[0];let s;const l=a.ActiveImport;if(l==null)s=[new et(1,[]),ie()];else{const c=l;s=[new et(4,[new Jc(0,[c])]),P(d=>{d(new be(6,[new je(0,[c.ImportId])]))})]}return[new $e(n.User,n.CurrentTab,n.ConnectionContext,s[0],new Vr(a.ImportHistory,(r=n.ImportHistoryTabState.ImportSummary,r==null?void 0:(i=r,Hf(c=>c.ImportId===i.ImportId,a.ImportHistory))))),s[1]]}}else return[n,en(a=>{tn(a)},()=>Kg(e),t.fields[0].fields[0],a=>new be(4,[new je(1,[a])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Ne(0,[]),n.ConnectionContext,new et(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(o=n.ActiveImportTabState,o.tag===4&&o.fields[0].tag===0?P(a=>{a(new be(6,[new je(0,[o.fields[0].fields[0].ImportId])]))}):ie())]:t.fields[0].fields[0].fields[0].tag===1?[new $e(n.User,new Ne(1,[]),n.ConnectionContext,new et(1,[]),new Vr(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),P(a=>{a(new be(4,[new je(0,[void 0])]))})]:[new $e(n.User,n.CurrentTab,n.ConnectionContext,new et(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),P(a=>{a(new be(6,[new je(0,[t.fields[0].fields[0].fields[0].fields[0].ImportId])]))})]:[n,en(a=>{tn(a)},a=>A.Delay(()=>A.Bind(ma(1e4),()=>A.ReturnFrom(Gg(e,a)))),t.fields[0].fields[0],a=>new be(6,[new je(1,[a])]))];case 1:return[new $e(n.User,n.CurrentTab,n.ConnectionContext,new et(1,[]),n.ImportHistoryTabState),ie()];case 5:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?t.fields[0].fields[0].fields[0].tag===1?[new $e(n.User,new Ne(0,[]),n.ConnectionContext,new et(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ie()]:[new $e(n.User,new Ne(0,[]),n.ConnectionContext,new et(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ie()]:[n,P(a=>{a(new be(4,[new je(0,[void 0])]))})]:[new $e(n.User,n.CurrentTab,n.ConnectionContext,new et(2,[]),n.ImportHistoryTabState),en(a=>{tn(a)},a=>Zg(e,a),t.fields[0].fields[0],a=>new be(5,[new je(1,[a])]))];case 2:return[new $e(n.User,new Ne(1,[]),n.ConnectionContext,n.ActiveImportTabState,new Vr(n.ImportHistoryTabState.PastImports,t.fields[0])),ie()];case 3:return[new $e(n.User,new Ne(1,[]),n.ConnectionContext,n.ActiveImportTabState,new Vr(n.ImportHistoryTabState.PastImports,void 0)),ie()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Ne(0,[]),n.ConnectionContext,new et(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ie()]:[n,P(a=>{a(new be(4,[new je(0,[void 0])]))})]:[n,en(a=>{tn(a)},a=>Jg(e,a),t.fields[0].fields[0],a=>new be(7,[new je(1,[a])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new $e(n.User,new Ne(0,[]),n.ConnectionContext,new et(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ie()]:[n,P(a=>{a(new be(4,[new je(0,[void 0])]))})]:[n,en(a=>{tn(a)},a=>Xg(e,a),t.fields[0].fields[0],a=>new be(8,[new je(1,[a])]))];default:return[new $e(n.User,t.fields[0],n.ConnectionContext,n.ActiveImportTabState,n.ImportHistoryTabState),ie()]}}const u0=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--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);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=checkbox]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.bottom-full{bottom:100%}.left-\\[1px\\]{left:1px}.left-\\[6px\\]{left:6px}.right-0{right:0}.top-0{top:0}.top-\\[1px\\]{top:1px}.top-\\[6px\\]{top:6px}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-4{margin-left:-1rem;margin-right:-1rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-auto{margin-left:auto;margin-right:auto}.-mb-px{margin-bottom:-1px}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mr-3{margin-right:.75rem}.mr-6{margin-right:1.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-12{width:3rem;height:3rem}.h-0{height:0px}.h-1\\.5{height:.375rem}.h-2{height:.5rem}.h-3{height:.75rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-1\\.5{width:.375rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-6{width:1.5rem}.w-\\[480px\\]{width:480px}.w-\\[512px\\]{width:512px}.w-full{width:100%}.w-screen{width:100vw}.min-w-20{min-width:5rem}.min-w-\\[180px\\]{min-width:180px}.min-w-\\[280px\\]{min-width:280px}.min-w-full{min-width:100%}.max-w-\\[480px\\]{max-width:480px}.max-w-\\[720px\\]{max-width:720px}.flex-1{flex:1 1 0%}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[15px\\]{border-radius:15px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-indigo-600{--tw-border-opacity: 1;border-color:rgb(79 70 229 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-black\\/30{background-color:#0000004d}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-emerald-400{--tw-bg-opacity: 1;background-color:rgb(52 211 153 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-300\\/20{background-color:#d1d5db33}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-gray-950{--tw-bg-opacity: 1;background-color:rgb(3 7 18 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-opacity-75{--tw-bg-opacity: .75}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[17px\\]{padding-left:17px;padding-right:17px}.px-px{padding-left:1px;padding-right:1px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-\\[11px\\]{padding-left:11px}.pl-\\[15px\\]{padding-left:15px}.pr-12{padding-right:3rem}.pr-2\\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pr-\\[13px\\]{padding-right:13px}.pr-\\[17px\\]{padding-right:17px}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.font-inter{font-family:Inter,sans-serif}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-\\[18px\\]{line-height:18px}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.text-\\[\\#2e66f7\\]{--tw-text-opacity: 1;color:rgb(46 102 247 / var(--tw-text-opacity, 1))}.text-\\[\\#686f7d\\]{--tw-text-opacity: 1;color:rgb(104 111 125 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-0{opacity:0}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.outline-1{outline-width:1px}.outline-2{outline-width:2px}.outline-offset-\\[-0\\.50px\\]{outline-offset:-.5px}.outline-offset-\\[-1px\\]{outline-offset:-1px}.outline-gray-100{outline-color:#f3f4f6}.outline-gray-200{outline-color:#e5e7eb}.outline-gray-300{outline-color:#d1d5db}.outline-gray-400{outline-color:#9ca3af}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-200:hover{--tw-bg-opacity: 1;background-color:rgb(199 210 254 / var(--tw-bg-opacity, 1))}.hover\\:bg-indigo-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:#4f46e5}.focus-visible\\:outline-red-600:focus-visible{outline-color:#dc2626}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-indigo-500:disabled{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:text-indigo-600:disabled{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:#e5e7eb}@media (min-width: 640px){.sm\\:col-start-1{grid-column-start:1}.sm\\:col-start-2{grid-column-start:2}.sm\\:-mx-6{margin-left:-1.5rem;margin-right:-1.5rem}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:grid{display:grid}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:items-center{align-items:center}.sm\\:gap-3{gap:.75rem}.sm\\:rounded-lg{border-radius:.5rem}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:pl-6{padding-left:1.5rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}`,qr=Ee(u0);function au(e,t){return A.Delay(()=>{const n=document.createElement("a");let r;const i=new Blob([e],{type:"text/csv;charset=utf-8;"});return r=window.URL.createObjectURL(i),n.setAttribute("href",r),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),A.Zero()})}function Li(e,t,n){return A.Delay(()=>A.Bind(vn(n),r=>{let i,o;const a=r,s=a.statusCode|0;return i=s|0,i>=200&&i<=299?A.Return(a):(o=s|0,(o===412||o===425||o===429?!0:o>=500)&&e>=1?A.Bind(ma(t),()=>A.ReturnFrom(Li(e-1,t,n))):A.Return(a))}))}function d0(e){return e}const su=ct();function zi(e){return Array.from(e)}function p0(e){return Dr(e,"O")}function f0(e){return hm(e)}function m0(){return ct()}function h0(e){return Dr(e,"O")}function g0(e,t){return JSON.stringify(t,void 0,Ve(e))}function w0(e){return t=>Ef(Hl(e,t),()=>su)}function lu(e,t,n,r){let i;const o=new dt(ct());let a;const s=ae(r);a=s===""?e:gc(s,o,e);let l;if(Cl(r)){const c=_t(d=>{const u=Ql(t,Xn(d)),m=nn(a,t,n,d[1]);return f=>h=>{const v=Jp(f,d);return(!n||n&&v!=null)&&(h[u]=m(v)),h}},Tr(r));l=d=>Mi((u,m)=>m(d)(u),{},c)}else if(Al(r))l=c=>{const d=Zp(c,r),u=d[0],m=d[1],f=m.length|0;if(f===0)return Xn(u);{const h=f|0,v=kl(u),g=Ti(new Array(h+1),0,h+1,null);Ot(g,0,Xn(u));for(let b=1;b<=h;b++){const C=nn(a,t,n,le(b-1,v)[1]);Ot(g,b,C(le(b-1,m)))}return g}};else throw new Error((i=ae(r),Xe(ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
24
+
25
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function nn(e,t,n,r){const i=ae(r),o=wc(i,e);if(o==null)if(wl(r)){const a=nn(e,t,n,Er(r));return s=>zi(Ye(a,s))}else if(Zo(r))switch(ae(xl(r))){case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;default:{const s=ae(r);return $l(ze(`Cannot generate auto encoder for %s.
26
+ Thoth.Json.Net only support the following enum types:
27
+ - sbyte
28
+ - byte
29
+ - int16
30
+ - uint16
31
+ - int
32
+ - uint32
33
+
34
+ If you can't use one of these types, please pass an extra encoder.
35
+
36
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
37
+ `))(s)}}else if(vl(r))if(Jo(r)){const a=_t(s=>nn(e,t,n,s),_l(r));return s=>zi(jm((l,c)=>le(l,a)(c),s))}else{const a=ae(yl(r));if(a==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const s=new Cp(()=>w0(nn(e,t,n,le(0,rt(r)))));return l=>l==null?su:s.Value(l)}else if(a==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||a==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||a==="System.Collections.Generic.IEnumerable`1[System.Object]"){const s=nn(e,t,n,le(0,rt(r)));return l=>zi(Ye(s,l))}else if(a==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const s=le(0,rt(r)),l=nn(e,t,n,le(1,rt(r)));if(ae(s)==="System.String"||ae(s)==="System.Guid")return c=>Mi((d,u)=>{const m=u;return d[m[0]]=l(m[1]),d},{},c);{let c;return c=nn(e,t,n,s),u=>zi(Ye(m=>{const f=m;return[c(f[0]),l(f[1])]},u))}}else return lu(e,t,n,r)}else switch(i){case"System.Boolean":return a=>a;case"Microsoft.FSharp.Core.Unit":return m0;case"System.String":return a=>a;case"System.Char":return a=>a;case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;case"System.Double":return a=>a;case"System.Single":return a=>a;case"System.DateTime":return h0;case"System.DateTimeOffset":return p0;case"System.TimeSpan":return f0;case"System.Guid":return d0;case"System.Object":return a=>a;default:return lu(e,t,n,r)}else{const a=o;return s=>a.contents(s)}}function v0(e){return sa({Compare:fi})}function y0(e,t,n,r){const i=Ei(t,new Ct(0,[])),o=Ei(r,!0);return nn(v0(),i,o,e)}class cu extends L{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["EntraId"]}}function x0(){return fn("Import.Dto.Shared.AdminApi.Write.ScimProviderDto",[],cu,()=>[[]])}class b0{constructor(t,n,r,i){this.accessToken=i,this.baseUrl=`${Sf(t,"/")}/import/admin/partners/${n}/accounts/${r}/scim`}}function _0(e,t,n,r){return new b0(e,t,n,r)}function uu(e){return()=>A.Delay(()=>{let t,n;const r=Li(3,3e3,(t=Ht(new Dt(0,[]),Bt(`${e.baseUrl}/config`)),Lt(Pt(`Bearer ${e.accessToken}`),t)));return n=A.Bind(r,i=>A.Return(new w(0,[i]))),A.Bind(n,i=>{const o=i;if(o.tag===1)return A.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];switch(a.statusCode|0){case 200:{let l,c;const d=gn(K(wn(Cg(),new Ct(1,[]))),a.responseText);return c=d.tag===1?new w(1,[d.fields[0]]):new w(0,[d.fields[0]]),l=c.tag===1?new w(1,["Failed to parse SCIM configuration"]):new w(0,[c.fields[0]]),A.Return(l)}case 401:case 403:return A.Return(new w(1,["Unauthorized access to SCIM configuration"]));case 404:return A.Return(new w(0,[void 0]));default:return A.Return(new w(1,["Failed to load SCIM configuration"]))}}})})}function A0(e){return()=>A.Delay(()=>{let t,n;const r=Li(3,3e3,ru(new ha(1,[g0(0,y0(x0(),new Ct(1,[]),void 0,void 0)(new cu))]),(t=Ht(new Dt(2,[]),Bt(`${e.baseUrl}/config`)),Lt(Pt(`Bearer ${e.accessToken}`),t))));return n=A.Bind(r,i=>A.Return(new w(0,[i]))),A.Bind(n,i=>{const o=i;if(o.tag===1)return A.Return(new w(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===200){const s=gn(K(wn(Sg(),new Ct(1,[]))),a.responseText);return A.Return(s)}else return A.Return(new w(1,["Failed to update SCIM configuration"]))}})})}function C0(e){return()=>A.Delay(()=>{let t,n;const r=Li(3,3e3,(t=Ht(new Dt(4,[]),Bt(`${e.baseUrl}/config`)),Lt(Pt(`Bearer ${e.accessToken}`),t)));return n=A.Bind(r,i=>A.Return(new w(0,[i]))),A.Bind(n,i=>{const o=i;return o.tag===1?A.Return(new w(1,[o.fields[0]])):o.fields[0].statusCode===200?A.Return(new w(0,[void 0])):A.Return(new w(1,["Failed to revoke SCIM token"]))})})}function k0(){return Ie()}function va(e){return Ue("/",e)}function S0(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+va(t),n])}function du(e,t,n){try{oe(n)}catch(r){e(["Error stopping subscription: "+va(t),r])}}function E0(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+va(n),i]);return}}function T0(e,t){Or(n=>{du(e,n[0],n[1])},t)}function pu(e,t,n,r,i,o){return Or(a=>{S0(e,a)},n),Or(a=>{du(e,a[0],a[1])},r),Pr(i,Vf(a=>E0(e,t,a[0],a[1]),o))}function D0(){return[Ie(),gh({Compare:ut}),Ie()]}function I0(e,t,n,r,i){return ua(e,r)?[ft(e,n),r,i]:[n,hh(e,r),ft([e,t],i)]}function R0(e){return $f((t,n)=>I0(t[0],t[1],n[0],n[1],n[2]),e,D0())}const F0=Ie();function fu(e,t){const n=wh(Jt(a=>a[0],e),{Compare:ut}),r=R0(t),i=r[1],o=r[0];if(n.Equals(i))return[o,Ie(),e,Ie()];{const a=Uf(s=>ua(s[0],i),e);return[o,a[1],a[0],zf(s=>!ua(s[0],n),r[2])]}}function M0(e,t,n,r){const i=ut(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return a=>{const s=ut(a,t)|0;return o&&s<=0||!o&&s>=0?[a,r(a,e)]:void 0}}function j0(e,t,n,r,i){const o=M0(t,n,r,i);return T(()=>Im(o,e))}function N0(e,t,n){return j0(e,t,n,0,(r,i)=>r+i)}class fr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class $0{constructor(t){this.state=new fr(0,[Ti(new Array(Ul(t,10)),0,Ul(t,10),null),0])}}function O0(e){return new $0(e)}function mu(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new fr(0,[i,n]):e.state=new fr(1,[i,n,o]),Ve(le(r,i))}else return}function P0(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];Ot(o,r,t);const a=(r+1)%o.length|0;a===i?e.state=new fr(1,[B0(e,i,o),o.length,0]):e.state=new fr(1,[o,a,i])}else{const r=n.fields[1]|0,i=n.fields[0];Ot(i,r,t);const o=(r+1)%i.length|0;e.state=new fr(1,[i,o,r])}}function B0(e,t,n){return Array.from(T(()=>B($m(t,n),T(()=>B(Om(t,n),T(()=>Hr(r=>S(ct()),N0(0,1,n.length))))))))}class ya extends Z{constructor(t,n,r,i,o,a,s){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=a,this.termination=s}}function xa(e,t,n){return new ya(e,t,r=>k0(),n,K(r=>{const i=He(n)(r);return o=>{i(o)}}),r=>{o0(r[0],r[1])},[r=>!1,r=>{}])}function H0(e,t){return new ya(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function L0(e){return e.init}function z0(e,t,n,r,i,o,a){const s=He(e)(a.init),l=hi(t)(He(a.update)),c=hi(n)(He(a.view)),d=hi(r)(He(a.setState));return new ya(s,K(l),He(i)(a.subscribe),K(c),K(d),a.onError,o(a.termination))}function U0(e,t,n){let r;const i=n.init(t),o=i[0],a=n.subscribe(o),s=n.termination,l=O0(10);let c=!1,d=o,u=F0,m=!1;const f=g=>{m||(P0(l,g),c||(c=!0,v(),c=!1))},h=He(e)(f),v=()=>{let g,b=mu(l);for(;!m&&b!=null;){const C=k(b);if(s[0](C))T0(n.onError,u),s[1](d),m=!0;else{const E=n.update(C,d),R=E[0],M=n.subscribe(R);n.setState(R,h),iu(j=>{n.onError([Xe(ze("Error handling the message: %A"))(C),j])},h,E[1]),d=R,u=(g=fu(u,M),pu(n.onError,h,g[0],g[1],g[2],g[3])),b=mu(l)}}};c=!0,n.setState(o,h),iu(g=>{n.onError([Xe(ze("Error intitializing:")),g])},h,i[1]),u=(r=fu(u,a),pu(n.onError,h,r[0],r[1],r[2],r[3])),v(),c=!1}function V0(e,t){U0(K(n=>n),e,t)}function hu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function q0(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ba={exports:{}},_a={};const gu=q0(zo);/**
38
+ * @license React
39
+ * use-sync-external-store-shim.production.js
40
+ *
41
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
42
+ *
43
+ * This source code is licensed under the MIT license found in the
44
+ * LICENSE file in the root directory of this source tree.
45
+ */var wu;function W0(){if(wu)return _a;wu=1;var e=gu;function t(u,m){return u===m&&(u!==0||1/u===1/m)||u!==u&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(u,m){var f=m(),h=r({inst:{value:f,getSnapshot:m}}),v=h[0].inst,g=h[1];return o(function(){v.value=f,v.getSnapshot=m,l(v)&&g({inst:v})},[u,f,m]),i(function(){return l(v)&&g({inst:v}),u(function(){l(v)&&g({inst:v})})},[u]),a(f),f}function l(u){var m=u.getSnapshot;u=u.value;try{var f=m();return!n(u,f)}catch{return!0}}function c(u,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return _a.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,_a}var vu;function G0(){return vu||(vu=1,ba.exports=W0()),ba.exports}var Q0=G0();class K0{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let a;const s=L0(i)(this.arg);let l=s[0],c=s[1];a=[[l,d=>{const u=this.finalDispatch;u==null?o.push(d):u(d)},!1,o],c],this.state=a[0],this.cmd=a[1],this.subscribe=d=>{let u=!1;const m=Uo(this.state[0]);return V0(this.arg,H0((f,h)=>{const v=this.state;this.finalDispatch=h,this.state=[f,v[1],!0,o],f!==v[0]&&d()},z0((f,h)=>{const v=this.cmd;return this.cmd=ie(),[this.state[0],v]},(f,h,v)=>f(h)(this.state[0]),Wo(f=>f),Wo(f=>f),K(f=>f),f=>[h=>f[0](h)?!0:m&&u,h=>{const v=h;Uo(v)?oe(v):f[1](h)}],i))),()=>{u=!0}}}}function yu(e,t,n){return new K0(e,t,n)}function Z0(e){return e.state}function J0(e){return e.subscribe}function X0(e,t,n){return we(e.arg,t)?!we(e.dependencies,n):!0}function Aa(e,t,n){const r=ye(()=>yu(e,t,n)),i=r[0];X0(i,t,n)&&r[1](yu(e,t,n));const o=Q0.useSyncExternalStore(J0(i),()=>Z0(i)),a=o[2],s=o[3],l=o[1];return pe(()=>{if(a&&s.length>0){let c=xe(s);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const d=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{oe(c)}jp(s)}},[a,s]),[o[0],l]}class Y0 extends Z{constructor(t,n,r,i,o,a,s,l,c){super(),this.SetCurrentTab=t,this.SelectFile=n,this.ShowImportSummary=r,this.ShowImportHistory=i,this.DownloadStageFailures=o,this.DownloadSchema=a,this.RequestStartImport=s,this.SendInvites=l,this.RevokeInvites=c}}function ew(e,t,n){return A.Delay(()=>A.Bind(Qg(n,e,t),r=>{const i=r;if(i.tag===1)return A.Return(void 0);{const o=Ue(`\r
46
+ `,Pr(P("Row,Reason"),Jt(a=>Ue(",",_t(s=>`"${s}"`,_t(s=>Bl(s,'"','""'),[Nt(a.RowId),a.Reason]))),i.fields[0].FailedRows)));return A.Bind(au(o,`${t}_stage_failed_rows.csv`),()=>A.Return(void 0))}}))}function tw(e){return A.Delay(()=>A.Bind(Wg(e),t=>{const n=t;if(n.tag===1)return A.Return(void 0);{const r=Ue(",",Jt(i=>i.DisplayName,n.fields[0].ColumnsInfo));return A.Bind(au(r,"schema.csv"),()=>A.Return(void 0))}}))}function nw(e,t){return new Y0((n,r)=>{e(new be(0,[n]))},n=>{e(new be(1,[]))},(n,r)=>{e(new be(2,[n]))},n=>{e(new be(3,[]))},(n,r,i)=>{Hi(ew(n,r,t))},n=>{Hi(tw(t))},(n,r)=>{e(new be(5,[new je(0,[n])]))},(n,r)=>{e(new be(7,[new je(0,[n])]))},(n,r)=>{e(new be(8,[new je(0,[n])]))})}const x=$;function rw(e){return Ue(", ",Jt(wa,Jt(t=>t.Stage,e.CompletedStages)))}function iw(e){let t,n,r,i,o,a,s;const l=e.userActions,c=e.pastImports;return p("div",_(y([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[p("div",_(y([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[p("div",_(y([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[p("table",_(y([["className","min-w-full divide-y divide-gray-300"],(i=[p("thead",_(y([["className","bg-gray-100"],(o=[(a=y([p("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"}),p("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Has errors"})]),p("tr",{children:x.Children.toArray(Array.from(a))}))],["children",x.Children.toArray(Array.from(o))])]))),p("tbody",_(y([["className","divide-y divide-gray-200 bg-white"],(s=me(T(()=>Hr(d=>{let u;const m=rw(d),f=$r(d.BenefitsRequests)>0?"Yes":"No",h=At((v,g)=>v+g,0,Jt(v=>v.FailedRowCount,d.CompletedStages))>0?"Yes":"No";return S(p("tr",_(y([["key",d.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",He(l.ShowImportSummary)(d)],(u=[p("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:d.ImportId}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ee(d.StartTime)}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:d.User}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:d.NumberOfRecords}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f}),p("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h})],["children",x.Children.toArray(Array.from(u))])]))))},c))),["children",x.Children.toArray(Array.from(s))])])))],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}const ow="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='4'%20fill='url(%23paint0_linear_764_3086)'/%3e%3cpath%20d='M29%2011L17%2023'%20stroke='%232563EB'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29%2011L22%2031L17%2023L9%2018L29%2011Z'%20stroke='%23111827'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_764_3086'%20x1='40'%20y1='5.71311e-06'%20x2='4.50001'%20y2='35.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D6E2FC'/%3e%3cstop%20offset='1'%20stop-color='%23D6E2FC'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function aw(e){let t,n,r,i,o,a,s,l,c,d,u,m;const f=e.onCancel,h=e.onConfirm,v=e.actionName,g=e.text,b=e.title,C=y([p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),p("div",_(y([["className","fixed inset-0 z-10 overflow-y-auto"],(t=[p("div",_(y([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[p("div",_(y([(r="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",r]),(i=[(o=y([p("div",_(y([["className","mt-3 text-center sm:mt-5 space-y-6"],(a=[p("img",{src:ow,className:"mx-auto"}),p("div",_(P((s=[(l=P(p("b",{children:[b]})),p("p",{children:x.Children.toArray(Array.from(l))}))],["children",x.Children.toArray(Array.from(s))])))),p("div",_(y([["className","mt-2 text-left"],(c=[p("p",{children:[g]})],["children",x.Children.toArray(Array.from(c))])])))],["children",x.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(d=[p("button",_(y([["type","button"],(u="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",u]),["children",v],["onClick",h]]))),p("button",_(y([["type","button"],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",m]),["children","Cancel"],["onClick",f]])))],["children",x.Children.toArray(Array.from(d))])])))]),p("div",{children:x.Children.toArray(Array.from(o))}))],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))]);return p("div",{children:x.Children.toArray(Array.from(C))})}class sw extends Z{constructor(t,n,r,i,o){super(),this.Title=t,this.Text=n,this.ActionName=r,this.OnConfirm=i,this.OnCancel=o}}function xu(e){let t,n,r;const i=e.userActions,o=e.import,a=e.user,s=x.useState(void 0),l=s[1],c=(f,h,v,g)=>new sw(f,h,v,b=>{g(b),l(void 0)},b=>{l(void 0)}),d="All profiles will receive an invite to workplace benefits in this import. You can't undo this action",u=Wf(f=>f.RequestedAt,o.BenefitsRequests,{Compare:gf}),m=[p("div",_(P((t=me(T(()=>B(S(p("p",{children:[`Import ID: ${o.ImportId}`]})),T(()=>B(S(p("p",{children:[`Creator: ${o.User}`]})),T(()=>B(S(p("p",{children:[`Filename: ${o.Filename}`]})),T(()=>B(S(p("p",{children:[`Date started: ${Ee(o.StartTime)}`]})),T(()=>B(S(p("p",{children:[`Date completed: ${Ee(o.StopTime)}`]})),T(()=>B(S(p("p",{children:[`Total rows: ${o.NumberOfRecords}`]})),T(()=>{let f;return B(Wc(a)?S(p("div",_(P((f=me(T(()=>{let h;return B(S(p("button",_(y([["type","button"],["children",$r(u)===0?"Send Benefits Invites":"Resend Benefits Invites"],(h="mt-4 mr-3 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",h]),["onClick",v=>{l(c("Send invites to Flare Benefits",d,"Send Invites",He(i.SendInvites)(o.ImportId)))}]])))),T(()=>{let v;return $r(u)>0?S(p("button",_(y([["type","button"],["children","Revoke Benefits Invites"],(v="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",v]),["onClick",g=>{l(c("Revoke invites to Flare Benefits","All invites to workplace benefits in this import will be revoked. You can't undo this action","Revoke Invites",He(i.RevokeInvites)(o.ImportId)))}]])))):hn()}))})),["children",x.Children.toArray(Array.from(f))]))))):hn(),T(()=>{let h,v,g,b,C,E;return B((h=s[0],h==null?S(ct()):(v=h.Title,g=h.Text,b=h.OnConfirm,C=h.OnCancel,E=h.ActionName,S(p(aw,{title:v,text:g,actionName:E,onConfirm:b,onCancel:C})))),T(()=>{let R;return B(S(p("div",_(y([["className","mt-4"],(R=me(T(()=>{let M;return B(S((M=P(p("b",{children:["Completed stages"]})),p("p",{children:x.Children.toArray(Array.from(M))}))),T(()=>Hr(j=>{let z;const ce=wa(j.Stage);return S(p("div",_(y([["className","mt-4"],(z=me(T(()=>B(S(p("p",{children:[`Stage: ${ce}`]})),T(()=>B(S(p("p",{children:[`Row count: ${j.InputRowCount}`]})),T(()=>B(S(p("p",{children:[`Successful count: ${j.SucceededRowCount}`]})),T(()=>B(S(p("p",{children:[`Failed count: ${j.FailedRowCount}`]})),T(()=>B(S(p("p",{children:[`Date started: ${Ee(j.StartTime)}`]})),T(()=>B(S(p("p",{children:[`Date completed: ${Ee(j.StopTime)}`]})),T(()=>{let Se;return j.FailedRowCount>0?S(p("button",_(y([["type","button"],["children","Download Errors"],(Se="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",Se]),["onClick",hi(i.DownloadStageFailures)(o.ImportId)(ce)]])))):hn()})))))))))))))),["children",x.Children.toArray(Array.from(z))])]))))},o.CompletedStages)))})),["children",x.Children.toArray(Array.from(R))])])))),T(()=>{let M,j,z;return $r(u)>0?S(p("div",_(y([["className","mt-4"],(M=[(j=P(p("b",{children:["Invite Log"]})),p("p",{children:x.Children.toArray(Array.from(j))})),p("div",_(y([["className","mt-4"],(z=me(T(()=>Hr(ce=>ce.RequestType.tag===1?S(p("p",{children:[`${ce.User} revoked invites of ${ce.ProfileCount} users at ${Ee(ce.RequestedAt)}`]})):S(p("p",{children:[`${ce.User} sent invites to ${ce.ProfileCount} users at ${Ee(ce.RequestedAt)}`]})),u))),["children",x.Children.toArray(Array.from(z))])])))],["children",x.Children.toArray(Array.from(M))])])))):hn()}))}))}))})))))))))))))),["children",x.Children.toArray(Array.from(t))])))),p("div",_(y([["className","text-center"],(n=[p("button",_(y([["type","button"],["children","Close"],(r="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",i.ShowImportHistory]])))],["children",x.Children.toArray(Array.from(n))])])))];return p(J,{},...m)}function lw(e){const t=e.userActions,n=e.state,r=e.user,i=n.ImportSummary;return i==null?p(iw,{pastImports:n.PastImports,userActions:t}):p(xu,{user:r,import:i,userActions:t})}class cw extends Z{constructor(t){super(),this.Value=t}}class mr extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoConfig","HasConfig"]}}class yn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Closed","CreatingAndManagingTheToken","KeepingTheTokenSecure","TroubleshootingTheToken"]}}class rn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoDialog","GeneratingFreshToken","FreshTokenGenerated","FreshTokenGenerationFailed","ConfirmRevokeToken","ConfirmRegenerateToken"]}}let It=class extends Z{constructor(t,n,r){super(),this.Config=t,this.TokenDialog=n,this.InfoPanel=r}},mt=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetConfig","SetInfoPanel","RequestToGenerateFreshToken","GenerateFreshToken","TokenGenerated","DismissTokenWindow","RequestToRevokeToken","RevokeToken","TokenRevoked"]}};function uw(e,t){return[new It(e,new rn(0,[]),new yn(0,[])),ie()]}function dw(e,t,n){switch(t.tag){case 1:return[new It(n.Config,n.TokenDialog,t.fields[0]),ie()];case 2:return[new It(n.Config,new rn(5,[]),n.InfoPanel),ie()];case 3:return[new It(n.Config,new rn(1,[]),n.InfoPanel),en(r=>{tn(r)},A0(e),void 0,r=>new mt(4,[r]))];case 4:return t.fields[0].tag===1?[new It(n.Config,new rn(3,[t.fields[0].fields[0]]),n.InfoPanel),ie()]:[new It(new mr(1,[new Yc(new Xc({TokenExpiresAt:t.fields[0].fields[0].fields[0].TokenExpiresAt,TokenIsExpired:!1}),!0)]),new rn(2,[new cw(t.fields[0].fields[0].fields[0].Token)]),n.InfoPanel),ie()];case 5:return[new It(n.Config,new rn(0,[]),n.InfoPanel),ie()];case 6:return[new It(n.Config,new rn(4,[]),n.InfoPanel),ie()];case 7:return[new It(n.Config,new rn(0,[]),n.InfoPanel),en(r=>{tn(r)},C0(e),void 0,r=>new mt(8,[r]))];case 8:return t.fields[0].tag===1?[new It(n.Config,new rn(3,[Xe(xf("Failed to revoke token: %A%P()",[t.fields[0].fields[0]]))]),n.InfoPanel),ie()]:[n,en(r=>{tn(r)},uu(e),void 0,r=>r.tag===1?new mt(0,[new mr(0,[])]):r.fields[0]==null?new mt(0,[new mr(0,[])]):new mt(0,[new mr(1,[r.fields[0]])]))];default:return[new It(t.fields[0],n.TokenDialog,n.InfoPanel),ie()]}}var pw=Object.defineProperty,fw=(e,t,n)=>t in e?pw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ca=(e,t,n)=>(fw(e,typeof t!="symbol"?t+"":t,n),n);let mw=class{constructor(){Ca(this,"current",this.detect()),Ca(this,"handoffState","pending"),Ca(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"}},jn=new mw;function Ui(e){var t,n;return jn.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function Vi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function on(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},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 Vi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=on();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||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 ka(){let[e]=ye(on);return pe(()=>()=>e.dispose(),[e]),e}let Oe=(e,t)=>{jn.isServer?pe(e,t):In(e,t)};function Nn(e){let t=U(e);return Oe(()=>{t.current=e},[e]),t}let ee=function(e){let t=Nn(e);return $.useCallback((...n)=>t.current(...n),[t])},hw=nt(void 0);function gw(){return Be(hw)}function Sa(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function an(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,an),r}var qi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(qi||{}),xn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(xn||{});function ht(){let e=vw();return ne(t=>ww({mergeRefs:e,...t}),[e])}function ww({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??yw;let l=bu(t,e);if(o)return Wi(l,n,r,a,s);let c=i??0;if(c&2){let{static:d=!1,...u}=l;if(d)return Wi(u,n,r,a,s)}if(c&1){let{unmount:d=!0,...u}=l;return an(d?0:1,{0(){return null},1(){return Wi({...u,hidden:!0,style:{display:"none"}},n,r,a,s)}})}return Wi(l,n,r,a,s)}function Wi(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Ea(e,["unmount","static"]),c=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let u={};if(t){let m=!1,f=[];for(let[h,v]of Object.entries(t))typeof v=="boolean"&&(m=!0),v===!0&&f.push(h.replace(/([A-Z])/g,g=>`-${g.toLowerCase()}`));if(m){u["data-headlessui-state"]=f.join(" ");for(let h of f)u[`data-${h}`]=""}}if(o===J&&(Object.keys($n(l)).length>0||Object.keys($n(u)).length>0))if(!Kn(d)||Array.isArray(d)&&d.length>1){if(Object.keys($n(l)).length>0)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($n(l)).concat(Object.keys($n(u))).map(m=>` - ${m}`).join(`
47
+ `),"","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(m=>` - ${m}`).join(`
48
+ `)].join(`
49
+ `))}else{let m=d.props,f=m==null?void 0:m.className,h=typeof f=="function"?(...b)=>Sa(f(...b),l.className):Sa(f,l.className),v=h?{className:h}:{},g=bu(d.props,$n(Ea(l,["ref"])));for(let b in u)b in g&&delete u[b];return Lo(d,Object.assign({},g,u,c,{ref:i(xw(d),c.ref)},v))}return p(o,Object.assign({},Ea(l,["ref"]),o!==J&&c,o!==J&&u),d)}function vw(){let e=U([]),t=ne(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function yw(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function bu(...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"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let a=n[r];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function tt(e){var t;return Object.assign(li(e),{displayName:(t=e.displayName)!=null?t:e.name})}function $n(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Ea(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function xw(e){return $.version.split(".")[0]>="19"?e.props.ref:e.ref}let bw="span";var Gi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Gi||{});function _w(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!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",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return ht()({ourProps:o,theirProps:i,slot:{},defaultTag:bw,name:"Hidden"})}let Ta=tt(_w);function _u(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function bn(e){return _u(e)&&"tagName"in e}function On(e){return bn(e)&&"accessKey"in e}function _n(e){return bn(e)&&"tabIndex"in e}function Aw(e){return bn(e)&&"style"in e}function Cw(e){return On(e)&&e.nodeName==="IFRAME"}function kw(e){return On(e)&&e.nodeName==="INPUT"}let Au=Symbol();function Sw(e,t=!0){return Object.assign(e,{[Au]:t})}function zt(...e){let t=U(e);pe(()=>{t.current=e},[e]);let n=ee(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Au]))?void 0:n}let Da=nt(null);Da.displayName="DescriptionContext";function Cu(){let e=Be(Da);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Cu),t}return e}function Ew(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,se(()=>function(n){let r=ee(o=>(t(a=>[...a,o]),()=>t(a=>{let s=a.slice(),l=s.indexOf(o);return l!==-1&&s.splice(l,1),s}))),i=se(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return $.createElement(Da.Provider,{value:i},n.children)},[t])]}let Tw="p";function Dw(e,t){let n=pn(),r=gw(),{id:i=`headlessui-description-${n}`,...o}=e,a=Cu(),s=zt(t);Oe(()=>a.register(i),[i,a.register]);let l=r||!1,c=se(()=>({...a.slot,disabled:l}),[a.slot,l]),d={ref:s,...a.props,id:i};return ht()({ourProps:d,theirProps:o,slot:c,defaultTag:Tw,name:a.name||"Description"})}let Iw=tt(Dw),Rw=Object.assign(Iw,{});var ku=(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))(ku||{});let Fw=nt(()=>{});function Mw({value:e,children:t}){return $.createElement(Fw.Provider,{value:e},t)}let Su=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var jw=Object.defineProperty,Nw=(e,t,n)=>t in e?jw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$w=(e,t,n)=>(Nw(e,t+"",n),n),Eu=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},gt=(e,t,n)=>(Eu(e,t,"read from private field"),n?n.call(e):t.get(e)),Ia=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Tu=(e,t,n,r)=>(Eu(e,t,"write to private field"),t.set(e,n),n),Ut,Wr,Gr;let Ow=class{constructor(t){Ia(this,Ut,{}),Ia(this,Wr,new Su(()=>new Set)),Ia(this,Gr,new Set),$w(this,"disposables",on()),Tu(this,Ut,t)}dispose(){this.disposables.dispose()}get state(){return gt(this,Ut)}subscribe(t,n){let r={selector:t,callback:n,current:t(gt(this,Ut))};return gt(this,Gr).add(r),this.disposables.add(()=>{gt(this,Gr).delete(r)})}on(t,n){return gt(this,Wr).get(t).add(n),this.disposables.add(()=>{gt(this,Wr).get(t).delete(n)})}send(t){let n=this.reduce(gt(this,Ut),t);if(n!==gt(this,Ut)){Tu(this,Ut,n);for(let r of gt(this,Gr)){let i=r.selector(gt(this,Ut));Du(r.current,i)||(r.current=i,r.callback(i))}for(let r of gt(this,Wr).get(t.type))r(gt(this,Ut),t)}}};Ut=new WeakMap,Wr=new WeakMap,Gr=new WeakMap;function Du(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:Ra(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:Ra(e.entries(),t.entries()):Iu(e)&&Iu(t)?Ra(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function Ra(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function Iu(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var Pw=Object.defineProperty,Bw=(e,t,n)=>t in e?Pw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ru=(e,t,n)=>(Bw(e,typeof t!="symbol"?t+"":t,n),n),Hw=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Hw||{});let Lw={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(i!==-1){let o=e.stack.slice();return o.splice(i,1),o.push(n),r=o,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}},zw=class Jd extends Ow{constructor(){super(...arguments),Ru(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),Ru(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new Jd({stack:[]})}reduce(t,n){return an(n.type,Lw,t,n)}};const Fu=new Su(()=>zw.new());var Fa={exports:{}},Ma={};/**
25
50
  * @license React
26
- * use-sync-external-store-shim.production.min.js
51
+ * use-sync-external-store-with-selector.production.js
27
52
  *
28
- * Copyright (c) Facebook, Inc. and its affiliates.
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
29
54
  *
30
55
  * This source code is licensed under the MIT license found in the
31
56
  * LICENSE file in the root directory of this source tree.
32
- */var cn=gh;function wh(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _h=typeof Object.is=="function"?Object.is:wh,yh=cn.useState,bh=cn.useEffect,Ah=cn.useLayoutEffect,vh=cn.useDebugValue;function xh(e,t){var n=t(),r=yh({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Ah(function(){o.value=n,o.getSnapshot=t,No(o)&&i({inst:o})},[e,n,t]),bh(function(){return No(o)&&i({inst:o}),e(function(){No(o)&&i({inst:o})})},[e]),vh(n),n}function No(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!_h(e,n)}catch{return!0}}function Sh(e,t){return t()}var Ch=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Sh:xh;Ga.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Ch,za.exports=Ga;var Eh=za.exports;class kh{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=uh(o)(this.arg);let u=a[0],l=a[1];s=[[u,f=>{const c=this.finalDispatch;c==null?i.push(f):c(f)},!1,i],l],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let c=!1;const m=ro(this.state[0]);return ph(this.arg,ch((p,g)=>{const _=this.state;this.finalDispatch=g,this.state=[p,_[1],!0,i],p!==_[0]&&f()},fh((p,g)=>{const _=this.cmd;return this.cmd=Ie(),[this.state[0],_]},(p,g,_)=>p(g)(this.state[0]),ao(p=>p),ao(p=>p),V(p=>p),p=>[g=>p[0](g)?!0:m&&c,g=>{const _=g;ro(_)?q(_):p[1](g)}],o))),()=>{c=!0}}}}function Wa(e,t,n){return new kh(e,t,n)}function Ih(e){return e.state}function Dh(e){return e.subscribe}function Th(e,t,n){return ke(e.arg,t)?!ke(e.dependencies,n):!0}function Rh(e,t,n){const r=Ut(()=>Wa(e,t,n)),o=r[0];Th(o,t,n)&&r[1](Wa(e,t,n));const i=Eh.useSyncExternalStore(Dh(o),()=>Ih(o)),s=i[2],a=i[3],u=i[1];return bt(()=>{if(s&&a.length>0){let l=ne(a);try{for(;l["System.Collections.IEnumerator.MoveNext"]();){const f=l["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{u(f)})}}finally{q(l)}bc(a)}},[s,a]),[i[0],u]}function Qa(e,t){return A.Delay(()=>{const n=document.createElement("a");let r;const o=new Blob([e],{type:"text/csv;charset=utf-8;"});return r=window.URL.createObjectURL(o),n.setAttribute("href",r),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n),A.Zero()})}class Mh extends G{constructor(t,n,r,o,i,s,a,u,l){super(),this.SetCurrentTab=t,this.SelectFile=n,this.ShowImportSummary=r,this.ShowImportHistory=o,this.DownloadStageFailures=i,this.DownloadSchema=s,this.RequestStartImport=a,this.SendInvites=u,this.RevokeInvites=l}}function Fh(e,t,n){return A.Delay(()=>A.Bind(Rp(n,e,t),r=>{const o=r;if(o.tag===1)return A.Return(void 0);{const i=Me(`\r
33
- `,Rn(W("Row,Reason"),xt(s=>Me(",",gt(a=>`"${a}"`,gt(a=>xs(a,'"','""'),[it(s.RowId),s.Reason]))),o.fields[0].FailedRows)));return A.Bind(Qa(i,`${t}_stage_failed_rows.csv`),()=>A.Return(void 0))}}))}function Oh(e){return A.Delay(()=>A.Bind(Dp(e),t=>{const n=t;if(n.tag===1)return A.Return(void 0);{const r=Me(",",xt(o=>o.DisplayName,n.fields[0].ColumnsInfo));return A.Bind(Qa(r,"schema.csv"),()=>A.Return(void 0))}}))}function Nh(e,t){return new Mh((n,r)=>{e(new re(0,[n]))},n=>{e(new re(1,[]))},(n,r)=>{e(new re(2,[n]))},n=>{e(new re(3,[]))},(n,r,o)=>{To(Fh(n,r,t))},n=>{To(Oh(t))},(n,r)=>{e(new re(5,[new _e(0,[n])]))},(n,r)=>{e(new re(7,[new _e(0,[n])]))},(n,r)=>{e(new re(8,[new _e(0,[n])]))})}const Ph=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qa=ae(Ph),S=no;function Bh(e){return Me(", ",xt(Mo,xt(t=>t.Stage,e.CompletedStages)))}function jh(e){let t,n,r,o,i,s,a;const u=e.userActions,l=e.pastImports;return d("div",I(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[d("div",I(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[d("div",I(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[d("table",I(x([["className","min-w-full divide-y divide-gray-300"],(o=[d("thead",I(x([["className","bg-gray-100"],(i=[(s=x([d("th",{scope:"col",className:"py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6",children:"Import ID"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Records"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Stages"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Invites sent"}),d("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Has errors"})]),d("tr",{children:S.Children.toArray(Array.from(s))}))],["children",S.Children.toArray(Array.from(i))])]))),d("tbody",I(x([["className","divide-y divide-gray-200 bg-white"],(a=Ge(M(()=>Fn(f=>{let c;const m=Bh(f),p=Dn(f.BenefitsRequests)>0?"Yes":"No",g=Ye((_,w)=>_+w,0,xt(_=>_.FailedRowCount,f.CompletedStages))>0?"Yes":"No";return R(d("tr",I(x([["key",f.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",He(u.ShowImportSummary)(f)],(c=[d("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:f.ImportId}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:ae(f.StartTime)}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.User}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:f.NumberOfRecords}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:m}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:p}),d("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:g})],["children",S.Children.toArray(Array.from(c))])]))))},l))),["children",S.Children.toArray(Array.from(a))])])))],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(r))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}const $h="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='40'%20height='40'%20rx='4'%20fill='url(%23paint0_linear_764_3086)'/%3e%3cpath%20d='M29%2011L17%2023'%20stroke='%232563EB'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29%2011L22%2031L17%2023L9%2018L29%2011Z'%20stroke='%23111827'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_764_3086'%20x1='40'%20y1='5.71311e-06'%20x2='4.50001'%20y2='35.5'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23D6E2FC'/%3e%3cstop%20offset='1'%20stop-color='%23D6E2FC'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function Hh(e){let t,n,r,o,i,s,a,u,l,f,c,m;const p=e.onCancel,g=e.onConfirm,_=e.actionName,w=e.text,y=e.title,C=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(t=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[d("div",I(x([(r="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",r]),(o=[(i=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(s=[d("img",{src:$h,className:"mx-auto"}),d("div",I(W((a=[(u=W(d("b",{children:[y]})),d("p",{children:S.Children.toArray(Array.from(u))}))],["children",S.Children.toArray(Array.from(a))])))),d("div",I(x([["className","mt-2 text-left"],(l=[d("p",{children:[w]})],["children",S.Children.toArray(Array.from(l))])])))],["children",S.Children.toArray(Array.from(s))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(f=[d("button",I(x([["type","button"],(c="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",c]),["children",_],["onClick",g]]))),d("button",I(x([["type","button"],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",m]),["children","Cancel"],["onClick",p]])))],["children",S.Children.toArray(Array.from(f))])])))]),d("div",{children:S.Children.toArray(Array.from(i))}))],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))]);return d("div",{children:S.Children.toArray(Array.from(C))})}class Uh extends G{constructor(t,n,r,o,i){super(),this.Title=t,this.Text=n,this.ActionName=r,this.OnConfirm=o,this.OnCancel=i}}function Za(e){let t,n,r;const o=e.userActions,i=e.import,s=e.user,a=S.useState(void 0),u=a[1],l=(p,g,_,w)=>new Uh(p,g,_,y=>{w(y),u(void 0)},y=>{u(void 0)}),f="All profiles will receive an invite to workplace benefits in this import. You can't undo this action",c=$u(p=>p.RequestedAt,i.BenefitsRequests,{Compare:cu}),m=[d("div",I(W((t=Ge(M(()=>$(R(d("p",{children:[`Import ID: ${i.ImportId}`]})),M(()=>$(R(d("p",{children:[`Creator: ${i.User}`]})),M(()=>$(R(d("p",{children:[`Filename: ${i.Filename}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ae(i.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ae(i.StopTime)}`]})),M(()=>$(R(d("p",{children:[`Total rows: ${i.NumberOfRecords}`]})),M(()=>{let p;return $(Ia(s)?R(d("div",I(W((p=Ge(M(()=>{let g;return $(R(d("button",I(x([["type","button"],["children",Dn(c)===0?"Send Benefits Invites":"Resend Benefits Invites"],(g="mt-4 mr-3 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",g]),["onClick",_=>{u(l("Send invites to Flare Benefits",f,"Send Invites",He(o.SendInvites)(i.ImportId)))}]])))),M(()=>{let _;return Dn(c)>0?R(d("button",I(x([["type","button"],["children","Revoke Benefits Invites"],(_="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",_]),["onClick",w=>{u(l("Revoke invites to Flare Benefits","All invites to workplace benefits in this import will be revoked. You can't undo this action","Revoke Invites",He(o.RevokeInvites)(i.ImportId)))}]])))):Mn()}))})),["children",S.Children.toArray(Array.from(p))]))))):Mn(),M(()=>{let g,_,w,y,C,T;return $((g=a[0],g==null?R(At()):(_=g.Title,w=g.Text,y=g.OnConfirm,C=g.OnCancel,T=g.ActionName,R(d(Hh,{title:_,text:w,actionName:T,onConfirm:y,onCancel:C})))),M(()=>{let ee;return $(R(d("div",I(x([["className","mt-4"],(ee=Ge(M(()=>{let Q;return $(R((Q=W(d("b",{children:["Completed stages"]})),d("p",{children:S.Children.toArray(Array.from(Q))}))),M(()=>Fn(X=>{let oe;const fe=Mo(X.Stage);return R(d("div",I(x([["className","mt-4"],(oe=Ge(M(()=>$(R(d("p",{children:[`Stage: ${fe}`]})),M(()=>$(R(d("p",{children:[`Row count: ${X.InputRowCount}`]})),M(()=>$(R(d("p",{children:[`Successful count: ${X.SucceededRowCount}`]})),M(()=>$(R(d("p",{children:[`Failed count: ${X.FailedRowCount}`]})),M(()=>$(R(d("p",{children:[`Date started: ${ae(X.StartTime)}`]})),M(()=>$(R(d("p",{children:[`Date completed: ${ae(X.StopTime)}`]})),M(()=>{let te;return X.FailedRowCount>0?R(d("button",I(x([["type","button"],["children","Download Errors"],(te="mt-4 rounded-md bg-transparent border border-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-indigo-600 shadow-sm hover:bg-indigo-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-indigo-600",["className",te]),["onClick",Yn(o.DownloadStageFailures)(i.ImportId)(fe)]])))):Mn()})))))))))))))),["children",S.Children.toArray(Array.from(oe))])]))))},i.CompletedStages)))})),["children",S.Children.toArray(Array.from(ee))])])))),M(()=>{let Q,X,oe;return Dn(c)>0?R(d("div",I(x([["className","mt-4"],(Q=[(X=W(d("b",{children:["Invite Log"]})),d("p",{children:S.Children.toArray(Array.from(X))})),d("div",I(x([["className","mt-4"],(oe=Ge(M(()=>Fn(fe=>fe.RequestType.tag===1?R(d("p",{children:[`${fe.User} revoked invites of ${fe.ProfileCount} users at ${ae(fe.RequestedAt)}`]})):R(d("p",{children:[`${fe.User} sent invites to ${fe.ProfileCount} users at ${ae(fe.RequestedAt)}`]})),c))),["children",S.Children.toArray(Array.from(oe))])])))],["children",S.Children.toArray(Array.from(Q))])])))):Mn()}))}))}))})))))))))))))),["children",S.Children.toArray(Array.from(t))])))),d("div",I(x([["className","text-center"],(n=[d("button",I(x([["type","button"],["children","Close"],(r="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",r]),["onClick",o.ShowImportHistory]])))],["children",S.Children.toArray(Array.from(n))])])))];return d(be,{},...m)}function Vh(e){const t=e.userActions,n=e.state,r=e.user,o=n.ImportSummary;return o==null?d(jh,{pastImports:n.PastImports,userActions:t}):d(Za,{user:r,import:o,userActions:t})}const Ja="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var Ka={exports:{}},Lh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",zh=Lh,Gh=zh;function Xa(){}function Ya(){}Ya.resetWarningCache=Xa;var Wh=function(){function e(r,o,i,s,a,u){if(u!==Gh){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ya,resetWarningCache:Xa};return n.PropTypes=n,n};Ka.exports=Wh();var Qh=Ka.exports;const U=hh(Qh);function un(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(f){try{l(r.next(f))}catch(c){s(c)}}function u(f){try{l(r.throw(f))}catch(c){s(c)}}function l(f){f.done?i(f.value):o(f.value).then(a,u)}l((r=r.apply(e,t||[])).next())})}function fn(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(f){return u([l,f])}}function u(l){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,l[0]&&(n=0)),n;)try{if(r=1,o&&(i=l[0]&2?o.return:l[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,l[1])).done)return i;switch(o=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,o=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(f){l=[6,f],o=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function el(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function tl(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var qh=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function $n(e,t){var n=Zh(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Zh(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=qh.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var Jh=[".DS_Store","Thumbs.db"];function Kh(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return br(e)&&Xh(e.dataTransfer)?[2,nm(e.dataTransfer,e.type)]:Yh(e)?[2,em(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,tm(e)]:[2,[]]})})}function Xh(e){return br(e)}function Yh(e){return br(e)&&br(e.target)}function br(e){return typeof e=="object"&&e!==null}function em(e){return Po(e.target.files).map(function(t){return $n(t)})}function tm(e){return un(this,void 0,void 0,function(){var t;return fn(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return $n(r)})]}})})}function nm(e,t){return un(this,void 0,void 0,function(){var n,r;return fn(this,function(o){switch(o.label){case 0:return e.items?(n=Po(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(rm))]):[3,2];case 1:return r=o.sent(),[2,nl(rl(r))];case 2:return[2,nl(Po(e.files).map(function(i){return $n(i)}))]}})})}function nl(e){return e.filter(function(t){return Jh.indexOf(t.name)===-1})}function Po(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function rm(e){if(typeof e.webkitGetAsEntry!="function")return ol(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?il(t):ol(e)}function rl(e){return e.reduce(function(t,n){return tl(tl([],el(t),!1),el(Array.isArray(n)?rl(n):[n]),!1)},[])}function ol(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=$n(t);return Promise.resolve(n)}function om(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,e.isDirectory?il(e):im(e)]})})}function il(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return un(s,void 0,void 0,function(){var u,l,f;return fn(this,function(c){switch(c.label){case 0:if(a.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return u=c.sent(),n(u),[3,4];case 3:return l=c.sent(),r(l),[3,4];case 4:return[3,6];case 5:f=Promise.all(a.map(om)),o.push(f),i(),c.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function im(e){return un(this,void 0,void 0,function(){return fn(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=$n(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var sm=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(s){var a=s.trim().toLowerCase();return a.charAt(0)==="."?r.toLowerCase().endsWith(a):a.endsWith("/*")?i===a.replace(/\/.*$/,""):o===a})}return!0};function sl(e){return cm(e)||lm(e)||ul(e)||am()}function am(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
34
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cm(e){if(Array.isArray(e))return Bo(e)}function al(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ll(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?al(Object(n),!0).forEach(function(r){cl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):al(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hn(e,t){return dm(e)||fm(e,t)||ul(e,t)||um()}function um(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
35
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ul(e,t){if(e){if(typeof e=="string")return Bo(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 Bo(e,t)}}function Bo(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 fm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function dm(e){if(Array.isArray(e))return e}var pm="file-invalid-type",hm="file-too-large",mm="file-too-small",gm="too-many-files",wm=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:pm,message:"File type must be ".concat(n)}},fl=function(t){return{code:hm,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},dl=function(t){return{code:mm,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},_m={code:gm,message:"Too many files"};function pl(e,t){var n=e.type==="application/x-moz-file"||sm(e,t);return[n,n?null:wm(t)]}function hl(e,t,n){if(jt(e.size))if(jt(t)&&jt(n)){if(e.size>n)return[!1,fl(n)];if(e.size<t)return[!1,dl(t)]}else{if(jt(t)&&e.size<t)return[!1,dl(t)];if(jt(n)&&e.size>n)return[!1,fl(n)]}return[!0,null]}function jt(e){return e!=null}function ym(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,s=e.maxFiles,a=e.validator;return!i&&t.length>1||i&&s>=1&&t.length>s?!1:t.every(function(u){var l=pl(u,n),f=Hn(l,1),c=f[0],m=hl(u,r,o),p=Hn(m,1),g=p[0],_=a?a(u):null;return c&&g&&!_})}function Ar(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function vr(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ml(e){e.preventDefault()}function bm(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Am(e){return e.indexOf("Edge/")!==-1}function vm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return bm(e)||Am(e)}function at(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return t.some(function(a){return!Ar(r)&&a&&a.apply(void 0,[r].concat(i)),Ar(r)})}}function xm(){return"showOpenFilePicker"in window}function Sm(e){if(jt(e)){var t=Object.entries(e).filter(function(n){var r=Hn(n,2),o=r[0],i=r[1],s=!0;return gl(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(i)||!i.every(wl))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Hn(r,2),i=o[0],s=o[1];return ll(ll({},n),{},cl({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Cm(e){if(jt(e))return Object.entries(e).reduce(function(t,n){var r=Hn(n,2),o=r[0],i=r[1];return[].concat(sl(t),[o],sl(i))},[]).filter(function(t){return gl(t)||wl(t)}).join(",")}function Em(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function km(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function gl(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function wl(e){return/^.*\.[\w]+$/.test(e)}var Im=["children"],Dm=["open"],Tm=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Rm=["refKey","onChange","onClick"];function Mm(e){return Nm(e)||Om(e)||_l(e)||Fm()}function Fm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
36
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Om(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nm(e){if(Array.isArray(e))return $o(e)}function jo(e,t){return jm(e)||Bm(e,t)||_l(e,t)||Pm()}function Pm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _l(e,t){if(e){if(typeof e=="string")return $o(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 $o(e,t)}}function $o(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 Bm(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,s,a;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,a=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function jm(e){if(Array.isArray(e))return e}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yl(Object(n),!0).forEach(function(r){Ho(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xr(e,t){if(e==null)return{};var n=$m(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $m(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Uo=qr(function(e,t){var n=e.children,r=xr(e,Im),o=Al(r),i=o.open,s=xr(o,Dm);return Wn(t,function(){return{open:i}},[i]),no.createElement(be,null,n(K(K({},s),{},{open:i})))});Uo.displayName="Dropzone";var bl={disabled:!1,getFilesFromEvent:Kh,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Uo.defaultProps=bl,Uo.propTypes={children:U.func,accept:U.objectOf(U.arrayOf(U.string)),multiple:U.bool,preventDropOnDocument:U.bool,noClick:U.bool,noKeyboard:U.bool,noDrag:U.bool,noDragEventsBubbling:U.bool,minSize:U.number,maxSize:U.number,maxFiles:U.number,disabled:U.bool,getFilesFromEvent:U.func,onFileDialogCancel:U.func,onFileDialogOpen:U.func,useFsAccessApi:U.bool,autoFocus:U.bool,onDragEnter:U.func,onDragLeave:U.func,onDragOver:U.func,onDrop:U.func,onDropAccepted:U.func,onDropRejected:U.func,onError:U.func,validator:U.func};var Vo={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Al(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=K(K({},bl),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,u=t.maxFiles,l=t.onDragEnter,f=t.onDragLeave,c=t.onDragOver,m=t.onDrop,p=t.onDropAccepted,g=t.onDropRejected,_=t.onFileDialogCancel,w=t.onFileDialogOpen,y=t.useFsAccessApi,C=t.autoFocus,T=t.preventDropOnDocument,ee=t.noClick,Q=t.noKeyboard,X=t.noDrag,oe=t.noDragEventsBubbling,fe=t.onError,te=t.validator,lt=Ze(function(){return Cm(n)},[n]),kl=Ze(function(){return Sm(n)},[n]),zo=Ze(function(){return typeof w=="function"?w:vl},[w]),Sr=Ze(function(){return typeof _=="function"?_:vl},[_]),Ee=It(null),Qe=It(null),h0=yn(Hm,Vo),Il=jo(h0,2),Go=Il[0],Be=Il[1],m0=Go.isFocused,Dl=Go.isFileDialogActive,Cr=It(typeof window<"u"&&window.isSecureContext&&y&&xm()),Tl=function(){!Cr.current&&Dl&&setTimeout(function(){if(Qe.current){var D=Qe.current.files;D.length||(Be({type:"closeDialog"}),Sr())}},300)};bt(function(){return window.addEventListener("focus",Tl,!1),function(){window.removeEventListener("focus",Tl,!1)}},[Qe,Dl,Sr,Cr]);var dn=It([]),Rl=function(D){Ee.current&&Ee.current.contains(D.target)||(D.preventDefault(),dn.current=[])};bt(function(){return T&&(document.addEventListener("dragover",ml,!1),document.addEventListener("drop",Rl,!1)),function(){T&&(document.removeEventListener("dragover",ml),document.removeEventListener("drop",Rl))}},[Ee,T]),bt(function(){return!r&&C&&Ee.current&&Ee.current.focus(),function(){}},[Ee,C,r]);var $t=we(function(v){fe?fe(v):console.error(v)},[fe]),Ml=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[].concat(Mm(dn.current),[v.target]),vr(v)&&Promise.resolve(o(v)).then(function(D){if(!(Ar(v)&&!oe)){var ie=D.length,ge=ie>0&&ym({files:D,accept:lt,minSize:s,maxSize:i,multiple:a,maxFiles:u,validator:te}),je=ie>0&&!ge;Be({isDragAccept:ge,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),l&&l(v)}}).catch(function(D){return $t(D)})},[o,l,$t,oe,lt,s,i,a,u,te]),Fl=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=vr(v);if(D&&v.dataTransfer)try{v.dataTransfer.dropEffect="copy"}catch{}return D&&c&&c(v),!1},[c,oe]),Ol=we(function(v){v.preventDefault(),v.persist(),Dr(v);var D=dn.current.filter(function(ge){return Ee.current&&Ee.current.contains(ge)}),ie=D.indexOf(v.target);ie!==-1&&D.splice(ie,1),dn.current=D,!(D.length>0)&&(Be({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(v)&&f&&f(v))},[Ee,f,oe]),Er=we(function(v,D){var ie=[],ge=[];v.forEach(function(je){var Un=pl(je,lt),mn=jo(Un,2),Qo=mn[0],qo=mn[1],Zo=hl(je,s,i),Tr=jo(Zo,2),Jo=Tr[0],Ko=Tr[1],Xo=te?te(je):null;if(Qo&&Jo&&!Xo)ie.push(je);else{var Yo=[qo,Ko];Xo&&(Yo=Yo.concat(Xo)),ge.push({file:je,errors:Yo.filter(function(y0){return y0})})}}),(!a&&ie.length>1||a&&u>=1&&ie.length>u)&&(ie.forEach(function(je){ge.push({file:je,errors:[_m]})}),ie.splice(0)),Be({acceptedFiles:ie,fileRejections:ge,type:"setFiles"}),m&&m(ie,ge,D),ge.length>0&&g&&g(ge,D),ie.length>0&&p&&p(ie,D)},[Be,a,lt,s,i,u,m,p,g,te]),kr=we(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[],vr(v)&&Promise.resolve(o(v)).then(function(D){Ar(v)&&!oe||Er(D,v)}).catch(function(D){return $t(D)}),Be({type:"reset"})},[o,Er,$t,oe]),pn=we(function(){if(Cr.current){Be({type:"openDialog"}),zo();var v={multiple:a,types:kl};window.showOpenFilePicker(v).then(function(D){return o(D)}).then(function(D){Er(D,null),Be({type:"closeDialog"})}).catch(function(D){Em(D)?(Sr(D),Be({type:"closeDialog"})):km(D)?(Cr.current=!1,Qe.current?(Qe.current.value=null,Qe.current.click()):$t(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):$t(D)});return}Qe.current&&(Be({type:"openDialog"}),zo(),Qe.current.value=null,Qe.current.click())},[Be,zo,Sr,y,Er,$t,kl,a]),Nl=we(function(v){!Ee.current||!Ee.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),pn())},[Ee,pn]),Pl=we(function(){Be({type:"focus"})},[]),Bl=we(function(){Be({type:"blur"})},[]),jl=we(function(){ee||(vm()?setTimeout(pn,0):pn())},[ee,pn]),hn=function(D){return r?null:D},Wo=function(D){return Q?null:hn(D)},Ir=function(D){return X?null:hn(D)},Dr=function(D){oe&&D.stopPropagation()},g0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,ie=D===void 0?"ref":D,ge=v.role,je=v.onKeyDown,Un=v.onFocus,mn=v.onBlur,Qo=v.onClick,qo=v.onDragEnter,Zo=v.onDragOver,Tr=v.onDragLeave,Jo=v.onDrop,Ko=xr(v,Tm);return K(K(Ho({onKeyDown:Wo(at(je,Nl)),onFocus:Wo(at(Un,Pl)),onBlur:Wo(at(mn,Bl)),onClick:hn(at(Qo,jl)),onDragEnter:Ir(at(qo,Ml)),onDragOver:Ir(at(Zo,Fl)),onDragLeave:Ir(at(Tr,Ol)),onDrop:Ir(at(Jo,kr)),role:typeof ge=="string"&&ge!==""?ge:"presentation"},ie,Ee),!r&&!Q?{tabIndex:0}:{}),Ko)}},[Ee,Nl,Pl,Bl,jl,Ml,Fl,Ol,kr,Q,X,r]),w0=we(function(v){v.stopPropagation()},[]),_0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,ie=D===void 0?"ref":D,ge=v.onChange,je=v.onClick,Un=xr(v,Rm),mn=Ho({accept:lt,multiple:a,type:"file",style:{display:"none"},onChange:hn(at(ge,kr)),onClick:hn(at(je,w0)),tabIndex:-1},ie,Qe);return K(K({},mn),Un)}},[Qe,n,a,kr,r]);return K(K({},Go),{},{isFocused:m0&&!r,getRootProps:g0,getInputProps:_0,rootRef:Ee,inputRef:Qe,open:hn(pn)})}function Hm(e,t){switch(t.type){case"focus":return K(K({},e),{},{isFocused:!0});case"blur":return K(K({},e),{},{isFocused:!1});case"openDialog":return K(K({},Vo),{},{isFileDialogActive:!0});case"closeDialog":return K(K({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return K(K({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return K(K({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return K({},Vo);default:return e}}function vl(){}const Um="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",Vm="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA7AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2T4//ABv8Yav8bfFkk3ibXAU1a5iRY72SNERJWVVCqQAAABxXH/8AC2vFX/QzeIP/AAYzf/FVN8a/+Sy+Lv8AsNXn/o965mvpYxVlofPSk7s6D/hbXir/AKGbxB/4MZv/AIqv0d/4Jc/tXzfGr4bS+FdevGuvEnhlBsllbdJeWhOFYnuyEhSfTaTya/MKus+B/wAZtY+APxN0zxTocire6c+TG+fLuYzw8TgdVYceo6jkA1liKCqQstzWhWcJ3ex+3lFfnD/w+j8b/wDQp+Ff++rj/wCLo/4fR+N/+hT8K/8AfVx/8XXl/Ua3Y9L65S7n6PUV+cP/AA+j8b/9Cn4V/wC+rj/4un23/BaXxmtwhm8IeGJIgw3qkk6sw7gEscH3wfpR9Rrdg+uUu5+jdFfJv/D1vQP+hb1D/v8AL/hRWX1ap2NPrFPufnf8a/8Aksvi7/sNXn/o965mum+Nf/JZfF3/AGGrz/0e9czXvx2R4ct2FaXhvwdq3jG6aHSdL1DVJl+8lrbvMV+u0HFdJ+zv8HZ/j18X9H8MxTfZYr12e6ucZFtAil5JD9FU9e+K9Z+J/wC29cfDxm8J/B2GPwZ4V0t/JF5DCn9oas6/KZ5ZCCfmPIHXGPoJlN35Y7lRirc0tjw3xb8MPEngJVbWtB1bSlc4Vrq1eJWPoCRisKvr39in9oH4l/Hv4h/8Iv4k1bTPFXg24iKavF4kMbxpC3B2ORvMh6KASPpjIv8A/BUH9nrwr8APhl8PbHwnp0NnZveag8sobzJbhnWAgu55bAXAyeAKy+sNTVOS1NHRvD2kdj4zooorpOc9QooornOg5X41/wDJZfF3/YavP/R71zNdN8a/+Sy+Lv8AsNXn/o965mto7Ixluz1b9j74Z+Lvi18ULzR/BetR6HrM2k3BMsjlFnhOxZIiQD94Nnp2pvx4/Y08ffs46el94o0+xt7GaTyoriLUIJBM3oqbvMPr93gcmpP2NP2gLX9mb4wSeKrq1kvlt9NuYI7dDtM0jgBAT2G7BJ9Aa9Y+J/xn+G37dkFjqXjHxFqXw38X6fF5DExSahpNwnYogO6Mnvj8d3WsJSnGpe3u+htGMHT394+UEdo3DKxVlOQQcEV6n8Y/hfqvgL4KeA9W1jxFeXdz4uWe+i0iZnb7FChVI5eSfvgnHA6Hriu38N/D74G/BS5/tjxB40m+JV1ZkPbaLpFlJbW88gOR5ssnVOBkAD8eleTfHf42ar8fPiHda9qmyEMogs7SLiGwt1z5cKDsqg/iST3q1JykrbEcqitdzjaKKK2Mj1Ciiiuc6DK/ad8H33gT9oPxhp2oQtDcJq1xLhhjckjmRGHsVYH8a4Sv16/bC/Zy8D/E/wANSa1rnhywvdXtlEaXg3Qzleys6FSwHYNkDJxivlr/AIZS8Af9C+n/AIF3H/xdY0cZFx1RpVwslLRnxVRX2r/wyl4A/wChfT/wLuP/AIuj/hlLwB/0L6f+Bdx/8XWv1qPmZ/V5HxVRX2r/AMMpeAP+hfT/AMC7j/4uj/hlLwB/0L6f+Bdx/wDF0fWo+YfV5HxVUlnZy6hdxW8EbTTTuI40UZZ2JwAB6k19o/8ADKXgD/oX0/8AAu4/+Lr3H9jr9lD4d6NrEmuQ+F7F9U02QNazzvJP5DcYZVdioYdQ2Mg8gionjIxV7FQwspO1z54/4YD8ff8APg//AH7NFfpTRXn/AF2Z6H1SB//Z";var Lm=0;function me(e,t,n,r,o,i){t||(t={});var s,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?s=t[a]:u[a]=t[a];var l={type:e,props:u,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--Lm,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)u[a]===void 0&&(u[a]=s[a]);return O.vnode&&O.vnode(l),l}function zm({onCancel:e,onSubmit:t,onFileDrop:n}){const r=we(c=>{const m=c[0];n(m,m.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:u}=Al({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),l=a.map(c=>me("p",{children:c.path},c.path)),f=u.map(({file:c,errors:m})=>me("li",{children:[c.path," - ",c.size," bytes",me("ul",{children:m.map(p=>me("li",{children:p.message},p.code))})]},c.path));return me("div",{...o(),children:[me("input",{...i(),name:"file"}),me("img",{src:l.length?Vm:Um,className:"mx-auto mb-2"}),u.length?me("div",{className:"mb-2",children:[me("div",{className:"mb-2 font-semibold",children:"Rejected files"}),me("ul",{children:f})]}):me(be,{}),l.length?me(be,{children:[l,me("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),me("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):me(be,{children:[me("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),me("button",{type:"button",onClick:s,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const Gm=Ja;function Wm(e){let t;const n=S.useState(!1),r=n[1],o=S.useState(0),i=o[0]|0;let s;const a=new FormData;s=S.useState(a);const u=s[0],l=S.useState("profiles");return d("form",I(x([["key",i],(t=Ge(M(()=>$(R(d("label",{for:"importStages"})),M(()=>{let f;return $(R(d("select",I(x([["className","m-2"],["name","importStages"],["id","importStages"],(f=[d("option",{children:"Profiles",value:"profiles"}),d("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",S.Children.toArray(Array.from(f))]),["onChange",c=>{l[1](c.target.value)}]])))),M(()=>$(R(d(zm,{onCancel:()=>{o[1](i+1),s[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(c,m)=>{u.set("file",c,m)}})),M(()=>{let c,m,p,g,_,w,y,C,T,ee,Q;return n[0]?R((c=x([d("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),d("div",I(x([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[d("div",I(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(p=[d("div",I(x([(g="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",g]),(_=[(w=x([d("div",I(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(y=[d("img",{src:Gm,className:"mx-auto"}),d("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),d("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",S.Children.toArray(Array.from(y))])]))),d("div",I(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(C=[d("button",I(x([["type","button"],(T="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",T]),["children","I confirm"],["onClick",He(e.RequestStartImport)((ee=go(l[0],[","],void 0,0),(()=>{for(let X=0;X<=ee.length-1;X++){const oe=pe(X,ee);u.append("importStages",oe)}})(),u))]]))),d("button",I(x([["type","button"],(Q="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",Q]),["children","Cancel"],["onClick",X=>{r(!1)}]])))],["children",S.Children.toArray(Array.from(C))])])))]),d("div",{children:S.Children.toArray(Array.from(w))}))],["children",S.Children.toArray(Array.from(_))])])))],["children",S.Children.toArray(Array.from(p))])])))],["children",S.Children.toArray(Array.from(m))])])))]),d("div",{children:S.Children.toArray(Array.from(c))}))):Mn()}))))})))),["children",S.Children.toArray(Array.from(t))])])))}const xl="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",Qm=xl;function qm(){const e=x([d("img",{src:Qm,className:"mx-auto animate-spin"}),d("p",{className:"mt-2",children:"Validating data"})]);return d("div",{children:S.Children.toArray(Array.from(e))})}const Zm=Ja;function Jm(e,t,n){let r;return d("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function Sl(e,t){let n;return d("p",I(x([["className","mt-6"],(n=["Download the full error report ",Jm(Me(`\r
38
- `,Ru(Rn(W(W("Row,Column,Error")),xt(r=>xt(o=>Me(",",gt(i=>`"${i}"`,gt(i=>xs(i,'"','""'),[it(r.RowId),o.Column,o.Message]))),r.FieldErrors),t)))),`${e}_validation_errors.csv`,"here"),"."],["children",S.Children.toArray(Array.from(n))])])))}function Km(e,t){switch(t.tag){case 15:return d("p",{children:["Internal API deserialization error"]});case 16:return d("p",{children:["Internal API client error"]});case 0:return d("p",{children:["Invalid file type"]});case 4:return d("p",{children:["Invalid file name"]});case 5:return d("p",{children:["CSV exceeds max row limit"]});case 14:return d("p",{children:["Duplicate row id"]});case 6:return d("p",{children:[t.fields[0]]});case 7:return d("p",{children:["CSV does not contain any data"]});case 8:return d("p",{children:["File not uploaded, ensure a file is selected"]});case 9:return d("p",{children:["Only a single file is allowed"]});case 11:return d("p",{children:["Unknown account"]});case 10:if(Dn(t.fields[0])<=10){const n=Ge(M(()=>$(R(d("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),M(()=>$(Fn(r=>et(o=>d("li",{children:[`Row ${r.RowId}, Column ${o.Column}: ${o.Message}`]}),r.FieldErrors),t.fields[0]),M(()=>R(Sl(e,t.fields[0]))))))));return d("div",{children:S.Children.toArray(Array.from(n))})}else{const n=x([d("p",{children:["The file contains more than 10 validation errors"]}),Sl(e,t.fields[0])]);return d("div",{children:S.Children.toArray(Array.from(n))})}case 12:return d("p",{children:["An import is already in progress"]});case 3:return d("p",{children:["Stage not completed"]});case 2:return d("p",{children:["Invalid import stage"]});case 1:return d("p",{children:["Invalid import stages"]});default:return d("p",{children:["Bad internal request payload"]})}}function Xm(e){const t=e.userActions,n=e.accountId,r=e.error,o=Ge(M(()=>{const i=Km(n,r);return $(R(d("img",{src:Zm,className:"mx-auto"})),M(()=>$(R(d("div",{className:"mt-2",children:S.Children.toArray([i])})),M(()=>{let s;return R(d("button",I(x([["type","button"],["children","Upload another file"],(s="mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",s]),["onClick",t.SelectFile]]))))}))))}));return d("div",{children:S.Children.toArray(Array.from(o))})}const Ym="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";function e0(e){const t=e.userActions,n=e.import,r=e.user,o=x([d("img",{src:Ym,className:"mx-auto"}),d("p",{className:"mt-2 mb-6",children:"Import has finished"}),d(Za,{user:r,import:n,userActions:t})]);return d("div",{children:S.Children.toArray(Array.from(o))})}const t0=xl;function n0(e){const t=e.CurrentStage;if(t==null)return d("p",{children:["No running stage. Please wait..."]});{const n=t,r=Mo(n.Stage),o=Ss(bu(it,Au((s,a)=>s+a,n.SucceededRowCount,n.FailedRowCount)),"Working..."),i=x([d("img",{src:t0,className:"mx-auto animate-spin"}),d("p",{className:"mt-2 mb-6",children:`Running stage: ${r}`}),d("p",{children:[`Creator: ${e.User}`]}),d("p",{children:[`Filename: ${e.Filename}`]}),d("p",{children:[`Rows processed: ${o}`]}),d("p",{children:[`Total rows: ${e.NumberOfRecords}`]})]);return d("div",{children:S.Children.toArray(Array.from(i))})}}function r0(e){let t,n;const r=e.errorText;return d("div",I(x([["className","text-center"],(t=[d("p",{children:["Oops, something went wrong."]}),d("p",{children:[`Error: ${r}.`]}),d("p",{children:["Please refresh the page and try again."]}),d("button",I(x([(n="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",n]),["onClick",o=>{window.location.reload()}],["children","Refresh"]])))],["children",S.Children.toArray(Array.from(t))])])))}function o0(e){let t,n,r,o,i,s,a,u,l,f;const c=e.userActions,m=e.accountId,p=e.tabState,g=e.user,_=x([d("div",I(x([["className","space-y-6"],(t=[(n=x([(r=`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
57
+ */var Mu;function Uw(){if(Mu)return Ma;Mu=1;var e=gu;function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return Ma.useSyncExternalStoreWithSelector=function(l,c,d,u,m){var f=i(null);if(f.current===null){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=a(function(){function g(M){if(!b){if(b=!0,C=M,M=u(M),m!==void 0&&h.hasValue){var j=h.value;if(m(j,M))return E=j}return E=M}if(j=E,n(C,M))return j;var z=u(M);return m!==void 0&&m(j,z)?(C=M,j):(C=M,E=z)}var b=!1,C,E,R=d===void 0?null:d;return[function(){return g(c())},R===null?void 0:function(){return g(R())}]},[c,d,u,m]);var v=r(l,f[0],f[1]);return o(function(){h.hasValue=!0,h.value=v},[v]),s(v),v},Ma}var ju;function Vw(){return ju||(ju=1,Fa.exports=Uw()),Fa.exports}var qw=Vw();function Nu(e,t,n=Du){return qw.useSyncExternalStoreWithSelector(ee(r=>e.subscribe(Ww,r)),ee(()=>e.state),ee(()=>e.state),ee(t),n)}function Ww(e){return e}function Qr(e,t){let n=pn(),r=Fu.get(t),[i,o]=Nu(r,ne(a=>[r.selectors.isTop(a,n),r.selectors.inStack(a,n)],[r,n]));return Oe(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?o?i:!0:!1}let ja=new Map,Kr=new Map;function $u(e){var t;let n=(t=Kr.get(e))!=null?t:0;return Kr.set(e,n+1),n!==0?()=>Ou(e):(ja.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Ou(e))}function Ou(e){var t;let n=(t=Kr.get(e))!=null?t:1;if(n===1?Kr.delete(e):Kr.set(e,n-1),n!==1)return;let r=ja.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ja.delete(e))}function Gw(e,{allowed:t,disallowed:n}={}){let r=Qr(e,"inert-others");Oe(()=>{var i,o;if(!r)return;let a=on();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&a.add($u(l));let s=(o=t==null?void 0:t())!=null?o:[];for(let l of s){if(!l)continue;let c=Ui(l);if(!c)continue;let d=l.parentElement;for(;d&&d!==c.body;){for(let u of d.children)s.some(m=>u.contains(m))||a.add($u(u));d=d.parentElement}}return a.dispose},[r,t,n])}function Qw(e,t,n){let r=Nn(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});pe(()=>{if(!e)return;let i=t===null?null:On(t)?t:t.current;if(!i)return;let o=on();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}return()=>o.dispose()},[t,r,e])}let Qi=["[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(","),Kw=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var sn=(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[e.AutoFocus=64]="AutoFocus",e))(sn||{}),Na=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Na||{}),Zw=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Zw||{});function Jw(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Qi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Xw(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Kw)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Pu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Pu||{});function Yw(e,t=0){var n;return e===((n=Ui(e))==null?void 0:n.body)?!1:an(t,{0(){return e.matches(Qi)},1(){let r=e;for(;r!==null;){if(r.matches(Qi))return!0;r=r.parentElement}return!1}})}var ev=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ev||{});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 ln(e){e==null||e.focus({preventScroll:!0})}let tv=["textarea","input"].join(",");function nv(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,tv))!=null?n:!1}function rv(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Zr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?rv(e):e:t&64?Xw(e):Jw(e);i.length>0&&a.length>1&&(a=a.filter(f=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===f:h===f))),r=r??o.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=t&32?{preventScroll:!0}:{},d=0,u=a.length,m;do{if(d>=u||d+u<=0)return 0;let f=l+d;if(t&16)f=(f+u)%u;else{if(f<0)return 3;if(f>=u)return 1}m=a[f],m==null||m.focus(c),d+=s}while(m!==o.activeElement);return t&6&&nv(m)&&m.select(),2}function Bu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function iv(){return/Android/gi.test(window.navigator.userAgent)}function Hu(){return Bu()||iv()}function Ki(e,t,n,r){let i=Nn(n);pe(()=>{if(!e)return;function o(a){i.current(a)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Lu(e,t,n,r){let i=Nn(n);pe(()=>{if(!e)return;function o(a){i.current(a)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const zu=30;function ov(e,t,n){let r=Nn(n),i=ne(function(s,l){if(s.defaultPrevented)return;let c=l(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let d=function u(m){return typeof m=="function"?u(m()):Array.isArray(m)||m instanceof Set?m:[m]}(t);for(let u of d)if(u!==null&&(u.contains(c)||s.composed&&s.composedPath().includes(u)))return;return!Yw(c,Pu.Loose)&&c.tabIndex!==-1&&s.preventDefault(),r.current(s,c)},[r,t]),o=U(null);Ki(e,"pointerdown",s=>{var l,c;Hu()||(o.current=((c=(l=s.composedPath)==null?void 0:l.call(s))==null?void 0:c[0])||s.target)},!0),Ki(e,"pointerup",s=>{if(Hu()||!o.current)return;let l=o.current;return o.current=null,i(s,()=>l)},!0);let a=U({x:0,y:0});Ki(e,"touchstart",s=>{a.current.x=s.touches[0].clientX,a.current.y=s.touches[0].clientY},!0),Ki(e,"touchend",s=>{let l={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(l.x-a.current.x)>=zu||Math.abs(l.y-a.current.y)>=zu))return i(s,()=>_n(s.target)?s.target:null)},!0),Lu(e,"blur",s=>i(s,()=>Cw(window.document.activeElement)?window.document.activeElement:null),!0)}function Zi(...e){return se(()=>Ui(...e),[...e])}function Uu(e,t,n,r){let i=Nn(n);pe(()=>{e=e??window;function o(a){i.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function av(e){return ai(e.subscribe,e.getSnapshot,e.getSnapshot)}function sv(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let a=t[i].call(n,...o);a&&(n=a,r.forEach(s=>s()))}}}function lv(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function cv(){return Bu()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=on();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(_n(s.target))try{let l=s.target.closest("a");if(!l)return;let{hash:c}=new URL(l.href),d=e.querySelector(c);_n(d)&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(_n(s.target)&&Aw(s.target))if(r(s.target)){let l=s.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(_n(s.target)){if(kw(s.target))return;if(r(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;o!==l&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function uv(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function dv(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Pn=sv(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:on(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:dv(n)},i=[cv(),lv(),uv()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Pn.subscribe(()=>{let e=Pn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Pn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Pn.dispatch("TEARDOWN",n)}});function pv(e,t,n=()=>({containers:[]})){let r=av(Pn),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Oe(()=>{if(!(!t||!e))return Pn.dispatch("PUSH",t,n),()=>Pn.dispatch("POP",t,n)},[e,t]),o}function fv(e,t,n=()=>[document.body]){let r=Qr(e,"scroll-lock");pv(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function mv(e=0){let[t,n]=ye(e),r=ne(l=>n(l),[t]),i=ne(l=>n(c=>c|l),[t]),o=ne(l=>(t&l)===l,[t]),a=ne(l=>n(c=>c&~l),[n]),s=ne(l=>n(c=>c^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}var hv={},Vu,qu;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Vu=process==null?void 0:hv)==null?void 0:Vu.NODE_ENV)==="test"&&typeof((qu=Element==null?void 0:Element.prototype)==null?void 0:qu.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
58
+ `)),[]});var gv=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(gv||{});function wv(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function vv(e,t,n,r){let[i,o]=ye(n),{hasFlag:a,addFlag:s,removeFlag:l}=mv(e&&i?3:0),c=U(!1),d=U(!1),u=ka();return Oe(()=>{var m;if(e){if(n&&o(!0),!t){n&&s(3);return}return(m=r==null?void 0:r.start)==null||m.call(r,n),yv(t,{inFlight:c,prepare(){d.current?d.current=!1:d.current=c.current,c.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var f;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),(f=r==null?void 0:r.end)==null||f.call(r,n))}})}},[e,n,t,u]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function yv(e,{prepare:t,run:n,done:r,inFlight:i}){let o=on();return bv(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(xv(e,r))})}),o.dispose}function xv(e,t){var n,r;let i=on();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(s=>s instanceof CSSTransition))!=null?r:[];return a.length===0?(t(),i.dispose):(Promise.allSettled(a.map(s=>s.finished)).then(()=>{o||t()}),i.dispose)}function bv(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function $a(e,t){let n=U([]),r=ee(e);pe(()=>{let i=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let s=r(t,i);return n.current=t,s}},[r,...t])}let Ji=nt(null);Ji.displayName="OpenClosedContext";var Rt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rt||{});function Xi(){return Be(Ji)}function _v({value:e,children:t}){return $.createElement(Ji.Provider,{value:e},t)}function Av({children:e}){return $.createElement(Ji.Provider,{value:null},e)}function Cv(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let An=[];Cv(()=>{function e(t){if(!_n(t.target)||t.target===document.body||An[0]===t.target)return;let n=t.target;n=n.closest(Qi),An.unshift(n??t.target),An=An.filter(r=>r!=null&&r.isConnected),An.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Wu(e){let t=ee(e),n=U(!1);pe(()=>(n.current=!1,()=>{n.current=!0,Vi(()=>{n.current&&t()})}),[t])}function kv(){let e=typeof document>"u";return"useSyncExternalStore"in zo?(t=>t.useSyncExternalStore)(zo)(()=>()=>{},()=>!1,()=>!e):!1}function Jr(){let e=kv(),[t,n]=ye(jn.isHandoffComplete);return t&&jn.isHandoffComplete===!1&&n(!1),pe(()=>{t!==!0&&n(!0)},[t]),pe(()=>jn.handoff(),[]),e?!1:t}let Gu=nt(!1);function Sv(){return Be(Gu)}function Qu(e){return $.createElement(Gu.Provider,{value:e.force},e.children)}function Ev(e){let t=Sv(),n=Be(Zu),[r,i]=ye(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(jn.isServer)return null;let a=e==null?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(e===null)return null;let s=e.createElement("div");return s.setAttribute("id","headlessui-portal-root"),e.body.appendChild(s)});return pe(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),pe(()=>{t||n!==null&&i(n.current)},[n,i,t]),r}let Ku=J,Tv=tt(function(e,t){let{ownerDocument:n=null,...r}=e,i=U(null),o=zt(Sw(f=>{i.current=f}),t),a=Zi(i),s=n??a,l=Ev(s),[c]=ye(()=>{var f;return jn.isServer?null:(f=s==null?void 0:s.createElement("div"))!=null?f:null}),d=Be(Oa),u=Jr();Oe(()=>{!l||!c||l.contains(c)||(c.setAttribute("data-headlessui-portal",""),l.appendChild(c))},[l,c]),Oe(()=>{if(c&&d)return d.register(c)},[d,c]),Wu(()=>{var f;!l||!c||(_u(c)&&l.contains(c)&&l.removeChild(c),l.childNodes.length<=0&&((f=l.parentElement)==null||f.removeChild(l)))});let m=ht();return u?!l||!c?null:Bo(m({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:Ku,name:"Portal"}),c):null});function Dv(e,t){let n=zt(t),{enabled:r=!0,ownerDocument:i,...o}=e,a=ht();return r?$.createElement(Tv,{...o,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:Ku,name:"Portal"})}let Iv=J,Zu=nt(null);function Rv(e,t){let{target:n,...r}=e,i={ref:zt(t)},o=ht();return $.createElement(Zu.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Iv,name:"Popover.Group"}))}let Oa=nt(null);function Fv(){let e=Be(Oa),t=U([]),n=ee(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ee(o=>{let a=t.current.indexOf(o);a!==-1&&t.current.splice(a,1),e&&e.unregister(o)}),i=se(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,se(()=>function({children:o}){return $.createElement(Oa.Provider,{value:i},o)},[i])]}let Mv=tt(Dv),Ju=tt(Rv),jv=Object.assign(Mv,{Group:Ju});function Nv(e,t=typeof document<"u"?document.defaultView:null,n){let r=Qr(e,"escape");Uu(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===ku.Escape&&n(i))})}function $v(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return Oe(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Ov({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Zi(n),i=ee(()=>{var o,a;let s=[];for(let l of e)l!==null&&(bn(l)?s.push(l):"current"in l&&bn(l.current)&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&bn(l)&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((a=n==null?void 0:n.getRootNode())==null?void 0:a.host))||s.some(c=>l.contains(c))||s.push(l));return s});return{resolveContainers:i,contains:ee(o=>i().some(a=>a.contains(o)))}}let Xu=nt(null);function Yu({children:e,node:t}){let[n,r]=ye(null),i=ed(t??n);return $.createElement(Xu.Provider,{value:i},e,i===null&&$.createElement(Ta,{features:Gi.Hidden,ref:o=>{var a,s;if(o){for(let l of(s=(a=Ui(o))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&bn(l)&&l!=null&&l.contains(o)){r(l);break}}}}))}function ed(e=null){var t;return(t=Be(Xu))!=null?t:e}function Pa(){let e=U(!1);return Oe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var Xr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Xr||{});function Pv(){let e=U(0);return Lu(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function td(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)bn(n.current)&&t.add(n.current);return t}let Bv="div";var Bn=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Bn||{});function Hv(e,t){let n=U(null),r=zt(n,t),{initialFocus:i,initialFocusFallback:o,containers:a,features:s=15,...l}=e;Jr()||(s=0);let c=Zi(n);Vv(s,{ownerDocument:c});let d=qv(s,{ownerDocument:c,container:n,initialFocus:i,initialFocusFallback:o});Wv(s,{ownerDocument:c,container:n,containers:a,previousActiveElement:d});let u=Pv(),m=ee(C=>{if(!On(n.current))return;let E=n.current;(R=>R())(()=>{an(u.current,{[Xr.Forwards]:()=>{Zr(E,sn.First,{skipElements:[C.relatedTarget,o]})},[Xr.Backwards]:()=>{Zr(E,sn.Last,{skipElements:[C.relatedTarget,o]})}})})}),f=Qr(!!(s&2),"focus-trap#tab-lock"),h=ka(),v=U(!1),g={ref:r,onKeyDown(C){C.key=="Tab"&&(v.current=!0,h.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(s&4))return;let E=td(a);On(n.current)&&E.add(n.current);let R=C.relatedTarget;_n(R)&&R.dataset.headlessuiFocusGuard!=="true"&&(nd(E,R)||(v.current?Zr(n.current,an(u.current,{[Xr.Forwards]:()=>sn.Next,[Xr.Backwards]:()=>sn.Previous})|sn.WrapAround,{relativeTo:C.target}):_n(C.target)&&ln(C.target)))}},b=ht();return $.createElement($.Fragment,null,f&&$.createElement(Ta,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Gi.Focusable}),b({ourProps:g,theirProps:l,defaultTag:Bv,name:"FocusTrap"}),f&&$.createElement(Ta,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:Gi.Focusable}))}let Lv=tt(Hv),zv=Object.assign(Lv,{features:Bn});function Uv(e=!0){let t=U(An.slice());return $a(([n],[r])=>{r===!0&&n===!1&&Vi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=An.slice())},[e,An,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Vv(e,{ownerDocument:t}){let n=!!(e&8),r=Uv(n);$a(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&ln(r())},[n]),Wu(()=>{n&&ln(r())})}function qv(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=U(null),a=Qr(!!(e&1),"focus-trap#initial-focus"),s=Pa();return $a(()=>{if(e===0)return;if(!a){i!=null&&i.current&&ln(i.current);return}let l=n.current;l&&Vi(()=>{if(!s.current)return;let c=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===c){o.current=c;return}}else if(l.contains(c)){o.current=c;return}if(r!=null&&r.current)ln(r.current);else{if(e&16){if(Zr(l,sn.First|sn.AutoFocus)!==Na.Error)return}else if(Zr(l,sn.First)!==Na.Error)return;if(i!=null&&i.current&&(ln(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,a,e]),o}function Wv(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=Pa(),a=!!(e&4);Uu(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!o.current)return;let l=td(r);On(n.current)&&l.add(n.current);let c=i.current;if(!c)return;let d=s.target;On(d)?nd(l,d)?(i.current=d,ln(d)):(s.preventDefault(),s.stopPropagation(),ln(c)):ln(i.current)},!0)}function nd(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function rd(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:od)!==J||$.Children.count(e.children)===1}let Yi=nt(null);Yi.displayName="TransitionContext";var Gv=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Gv||{});function Qv(){let e=Be(Yi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Kv(){let e=Be(eo);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let eo=nt(null);eo.displayName="NestingContext";function to(e){return"children"in e?to(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function id(e,t){let n=Nn(e),r=U([]),i=Pa(),o=ka(),a=ee((f,h=xn.Hidden)=>{let v=r.current.findIndex(({el:g})=>g===f);v!==-1&&(an(h,{[xn.Unmount](){r.current.splice(v,1)},[xn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var g;!to(r)&&i.current&&((g=n.current)==null||g.call(n))}))}),s=ee(f=>{let h=r.current.find(({el:v})=>v===f);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:f,state:"visible"}),()=>a(f,xn.Unmount)}),l=U([]),c=U(Promise.resolve()),d=U({enter:[],leave:[]}),u=ee((f,h,v)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([g])=>g!==f)),t==null||t.chains.current[h].push([f,new Promise(g=>{l.current.push(g)})]),t==null||t.chains.current[h].push([f,new Promise(g=>{Promise.all(d.current[h].map(([b,C])=>C)).then(()=>g())})]),h==="enter"?c.current=c.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(h)):v(h)}),m=ee((f,h,v)=>{Promise.all(d.current[h].splice(0).map(([g,b])=>b)).then(()=>{var g;(g=l.current.shift())==null||g()}).then(()=>v(h))});return se(()=>({children:r,register:s,unregister:a,onStart:u,onStop:m,wait:c,chains:d}),[s,a,r,u,m,d,c])}let od=J,ad=qi.RenderStrategy;function Zv(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:d,enterTo:u,entered:m,leave:f,leaveFrom:h,leaveTo:v,...g}=e,[b,C]=ye(null),E=U(null),R=rd(e),M=zt(...R?[E,t,C]:t===null?[]:[t]),j=(n=g.unmount)==null||n?xn.Unmount:xn.Hidden,{show:z,appear:ce,initial:Se}=Qv(),[ue,ve]=ye(z?"visible":"hidden"),Ze=Kv(),{register:Pe,unregister:ge}=Ze;Oe(()=>Pe(E),[Pe,E]),Oe(()=>{if(j===xn.Hidden&&E.current){if(z&&ue!=="visible"){ve("visible");return}return an(ue,{hidden:()=>ge(E),visible:()=>Pe(E)})}},[ue,E,Pe,ge,z,j]);let Re=Jr();Oe(()=>{if(R&&Re&&ue==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,ue,Re,R]);let ei=Se&&!ce,Un=ce&&z&&Se,Wt=U(!1),_e=id(()=>{Wt.current||(ve("hidden"),ge(E))},Ze),gr=ee(wr=>{Wt.current=!0;let Vn=wr?"enter":"leave";_e.onStart(E,Vn,En=>{En==="enter"?o==null||o():En==="leave"&&(s==null||s())})}),Ft=ee(wr=>{let Vn=wr?"enter":"leave";Wt.current=!1,_e.onStop(E,Vn,En=>{En==="enter"?a==null||a():En==="leave"&&(l==null||l())}),Vn==="leave"&&!to(_e)&&(ve("hidden"),ge(E))});pe(()=>{R&&i||(gr(z),Ft(z))},[z,R,i]);let kn=!(!i||!R||!Re||ei),[,V]=vv(kn,b,z,{start:gr,end:Ft}),Mt=$n({ref:M,className:((r=Sa(g.className,Un&&c,Un&&d,V.enter&&c,V.enter&&V.closed&&d,V.enter&&!V.closed&&u,V.leave&&f,V.leave&&!V.closed&&h,V.leave&&V.closed&&v,!V.transition&&z&&m))==null?void 0:r.trim())||void 0,...wv(V)}),Sn=0;ue==="visible"&&(Sn|=Rt.Open),ue==="hidden"&&(Sn|=Rt.Closed),z&&ue==="hidden"&&(Sn|=Rt.Opening),!z&&ue==="visible"&&(Sn|=Rt.Closing);let un=ht();return $.createElement(eo.Provider,{value:_e},$.createElement(_v,{value:Sn},un({ourProps:Mt,theirProps:g,defaultTag:od,features:ad,visible:ue==="visible",name:"Transition.Child"})))}function Jv(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=U(null),s=rd(e),l=zt(...s?[a,t]:t===null?[]:[t]);Jr();let c=Xi();if(n===void 0&&c!==null&&(n=(c&Rt.Open)===Rt.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=ye(n?"visible":"hidden"),m=id(()=>{n||u("hidden")}),[f,h]=ye(!0),v=U([n]);Oe(()=>{f!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),h(!1))},[v,n]);let g=se(()=>({show:n,appear:r,initial:f}),[n,r,f]);Oe(()=>{n?u("visible"):!to(m)&&a.current!==null&&u("hidden")},[n,m]);let b={unmount:i},C=ee(()=>{var M;f&&h(!1),(M=e.beforeEnter)==null||M.call(e)}),E=ee(()=>{var M;f&&h(!1),(M=e.beforeLeave)==null||M.call(e)}),R=ht();return $.createElement(eo.Provider,{value:m},$.createElement(Yi.Provider,{value:g},R({ourProps:{...b,as:J,children:$.createElement(sd,{ref:l,...b,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:J,features:ad,visible:d==="visible",name:"Transition"})))}function Xv(e,t){let n=Be(Yi)!==null,r=Xi()!==null;return $.createElement($.Fragment,null,!n&&r?$.createElement(Ba,{ref:t,...e}):$.createElement(sd,{ref:t,...e}))}let Ba=tt(Jv),sd=tt(Zv),Ha=tt(Xv),ld=Object.assign(Ba,{Child:Ha,Root:Ba});var Yv=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yv||{}),ey=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ey||{});let ty={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},La=nt(null);La.displayName="DialogContext";function no(e){let t=Be(La);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,no),n}return t}function ny(e,t){return an(t.type,ty,e,t)}let cd=tt(function(e,t){let n=pn(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:d=!1,...u}=e,m=U(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(m.current||(m.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let f=Xi();i===void 0&&f!==null&&(i=(f&Rt.Open)===Rt.Open);let h=U(null),v=zt(h,t),g=Zi(h),b=i?0:1,[C,E]=Gn(ny,{titleId:null,descriptionId:null,panelRef:Ao()}),R=ee(()=>o(!1)),M=ee(V=>E({type:0,id:V})),j=Jr()?b===0:!1,[z,ce]=Fv(),Se={get current(){var V;return(V=C.panelRef.current)!=null?V:h.current}},ue=ed(),{resolveContainers:ve}=Ov({mainTreeNode:ue,portals:z,defaultContainers:[Se]}),Ze=f!==null?(f&Rt.Closing)===Rt.Closing:!1;Gw(c||Ze?!1:j,{allowed:ee(()=>{var V,Mt;return[(Mt=(V=h.current)==null?void 0:V.closest("[data-headlessui-portal]"))!=null?Mt:null]}),disallowed:ee(()=>{var V;return[(V=ue==null?void 0:ue.closest("body > *:not(#headlessui-portal-root)"))!=null?V:null]})});let Pe=Fu.get(null);Oe(()=>{if(j)return Pe.actions.push(r),()=>Pe.actions.pop(r)},[Pe,r,j]);let ge=Nu(Pe,ne(V=>Pe.selectors.isTop(V,r),[Pe,r]));ov(ge,ve,V=>{V.preventDefault(),R()}),Nv(ge,g==null?void 0:g.defaultView,V=>{V.preventDefault(),V.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),R()}),fv(c||Ze?!1:j,g,ve),Qw(j,h,R);let[Re,ei]=Ew(),Un=se(()=>[{dialogState:b,close:R,setTitleId:M,unmount:d},C],[b,C,R,M,d]),Wt=se(()=>({open:b===0}),[b]),_e={ref:v,id:r,role:s,tabIndex:-1,"aria-modal":c?void 0:b===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":Re,unmount:d},gr=!$v(),Ft=Bn.None;j&&!c&&(Ft|=Bn.RestoreFocus,Ft|=Bn.TabLock,l&&(Ft|=Bn.AutoFocus),gr&&(Ft|=Bn.InitialFocus));let kn=ht();return $.createElement(Av,null,$.createElement(Qu,{force:!0},$.createElement(jv,null,$.createElement(La.Provider,{value:Un},$.createElement(Ju,{target:h},$.createElement(Qu,{force:!1},$.createElement(ei,{slot:Wt},$.createElement(ce,null,$.createElement(zv,{initialFocus:a,initialFocusFallback:h,containers:ve,features:Ft},$.createElement(Mw,{value:R},kn({ourProps:_e,theirProps:u,slot:Wt,defaultTag:ry,features:iy,visible:b===0,name:"Dialog"})))))))))))}),ry="div",iy=qi.RenderStrategy|qi.Static;function oy(e,t){let{transition:n=!1,open:r,...i}=e,o=Xi(),a=e.hasOwnProperty("open")||o!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?$.createElement(Yu,null,$.createElement(ld,{show:r,transition:n,unmount:i.unmount},$.createElement(cd,{ref:t,...i}))):$.createElement(Yu,null,$.createElement(cd,{ref:t,open:r,...i}))}let ay="div";function sy(e,t){let n=pn(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:a,unmount:s},l]=no("Dialog.Panel"),c=zt(t,l.panelRef),d=se(()=>({open:a===0}),[a]),u=ee(g=>{g.stopPropagation()}),m={ref:c,id:r,onClick:u},f=i?Ha:J,h=i?{unmount:s}:{},v=ht();return $.createElement(f,{...h},v({ourProps:m,theirProps:o,slot:d,defaultTag:ay,name:"Dialog.Panel"}))}let ly="div";function cy(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=no("Dialog.Backdrop"),a=se(()=>({open:i===0}),[i]),s={ref:t,"aria-hidden":!0},l=n?Ha:J,c=n?{unmount:o}:{},d=ht();return $.createElement(l,{...c},d({ourProps:s,theirProps:r,slot:a,defaultTag:ly,name:"Dialog.Backdrop"}))}let uy="h2";function dy(e,t){let n=pn(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=no("Dialog.Title"),s=zt(t);pe(()=>(a(r),()=>a(null)),[r,a]);let l=se(()=>({open:o===0}),[o]),c={ref:s,id:r};return ht()({ourProps:c,theirProps:i,slot:l,defaultTag:uy,name:"Dialog.Title"})}let py=tt(oy),fy=tt(sy),my=tt(cy),hy=tt(dy),za=Object.assign(py,{Panel:fy,Title:hy,Description:Rw}),Ke=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function ro(e){return p(za,ir(e,1))}class Cn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children","Transition"]}}function io(e){return p(za.Panel,ir(e,1))}class gy extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children","Text"]}}function wy(e){return p(za.Title,ir(e,1))}class Hn extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Transition"]}}function oo(e){return p(my,ir(e,1))}const vy=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M10 5V10M10 10V15M10 10H15M10 10L5 10",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yy=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25706 3.09882C9.02167 1.73952 10.9788 1.73952 11.7434 3.09882L17.3237 13.0194C18.0736 14.3526 17.1102 15.9999 15.5805 15.9999H4.4199C2.89025 15.9999 1.92682 14.3526 2.67675 13.0194L8.25706 3.09882ZM11.0001 13C11.0001 13.5523 10.5524 14 10.0001 14C9.44784 14 9.00012 13.5523 9.00012 13C9.00012 12.4477 9.44784 12 10.0001 12C10.5524 12 11.0001 12.4477 11.0001 13ZM10.0001 5C9.44784 5 9.00012 5.44772 9.00012 6V9C9.00012 9.55228 9.44784 10 10.0001 10C10.5524 10 11.0001 9.55228 11.0001 9V6C11.0001 5.44772 10.5524 5 10.0001 5Z",fill:"#FBBF24"})),xy=e=>p("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M6 18L18 6M6 6L18 18",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),by=e=>p("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M12.6665 4.66667L12.0883 12.7617C12.0385 13.4594 11.4579 14 10.7583 14H5.24133C4.54181 14 3.96122 13.4594 3.91138 12.7617L3.33317 4.66667M6.6665 7.33333V11.3333M9.33317 7.33333V11.3333M9.99984 4.66667V2.66667C9.99984 2.29848 9.70136 2 9.33317 2H6.6665C6.29831 2 5.99984 2.29848 5.99984 2.66667V4.66667M2.6665 4.66667H13.3332",stroke:"#686F7D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_y=e=>p("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M2.6665 2.66666V5.99999H3.05418M13.2919 7.33332C12.9638 4.70245 10.7196 2.66666 7.99984 2.66666C5.76159 2.66666 3.84536 4.04544 3.05418 5.99999M3.05418 5.99999H5.99984M13.3332 13.3333V9.99999H12.9455M12.9455 9.99999C12.1543 11.9545 10.2381 13.3333 7.99984 13.3333C5.28009 13.3333 3.03583 11.2975 2.70777 8.66666M12.9455 9.99999H9.99984",stroke:"#686F7D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ud=e=>p("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("path",{d:"M13 7H15C16.105 7 17 7.895 17 9V15C17 16.105 16.105 17 15 17H9C7.895 17 7 16.105 7 15V13",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),p("path",{d:"M11 3H5C3.89543 3 3 3.89543 3 5V11C3 12.1046 3.89543 13 5 13H11C12.1046 13 13 12.1046 13 11V5C13 3.89543 12.1046 3 11 3Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ay=e=>p("svg",{viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",...e},p("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})),Cy=e=>p("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},p("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_6476_2284)"}),p("g",{clipPath:"url(#clip0_6476_2284)"},p("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77464 18.5963 9.49318 18.9222 9.29687C19.2482 9.10056 19.6215 8.99683 20.002 8.99683C20.3825 8.99683 20.7559 9.10056 21.0818 9.29687C21.4078 9.49318 21.6741 9.77464 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6265 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9114 29.2672 30.0022 28.908 30H11.092C10.7332 30.0015 10.3801 29.9102 10.0671 29.7349C9.75404 29.5596 9.49169 29.3063 9.30555 28.9995C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),p("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),p("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),p("defs",null,p("linearGradient",{id:"paint0_linear_6476_2284",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},p("stop",{stopColor:"#FECACA"}),p("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),p("clipPath",{id:"clip0_6476_2284"},p("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"}))));function cn(e,t){return x.createElement(e,_(t))}function ky(e){return cn(vy,e)}function dd(e){return cn(yy,e)}function Sy(e){return cn(xy,e)}function Ey(e){return cn(by,e)}function Ty(e){return cn(_y,e)}function Dy(e){return cn(ud,me(T(()=>B(S(["style",{color:"#2e66f7"}]),T(()=>e)))))}function Iy(e){return cn(ud,me(T(()=>B(S(["style",{color:"#FFFFFF"}]),T(()=>e)))))}function Ry(e){return cn(Ay,me(T(()=>B(S(["style",{color:"#e7000b"}]),T(()=>e)))))}function Fy(e){return cn(Cy,e)}function pd(e){return p("div",{className:"justify-start text-base leading-normal font-semibold text-black",children:e})}function My(e){let t;return p("div",_(y([["className","inline-flex items-start justify-start self-stretch pr-12"],(t=[p("div",{className:"flex-1 justify-start text-sm font-normal text-gray-500",children:e})],["children",x.Children.toArray(Array.from(t))])])))}function wt(e,t){let n,r,i,o;return p("div",_(y([["className","inline-flex flex-col items-center justify-start self-stretch pb-8"],(n=[p("div",_(y([["className","flex flex-col items-center justify-start gap-2 self-stretch"],(r=[p("div",_(y([["className","inline-flex items-center justify-start gap-6 self-stretch"],(i=[p("div",{className:"flex-1 justify-start text-sm font-semibold text-black",children:e})],["children",x.Children.toArray(Array.from(i))])]))),p("div",_(y([["className","self-stretch flex flex-col justify-start items-start gap-3"],(o=Jt(My,t),["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])])))}function Ua(e,t,n,r){let i,o,a,s;return ro(y([new Ke(3,[e]),new Ke(4,[t]),new Ke(5,[[p("style",{children:[qr]}),oo(P(new Hn(2,["fixed inset-0 bg-gray-500/50"]))),p("div",_(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto font-inter"],(i=[io(P(new Cn(2,[[p("div",_(y([["className","flex flex-col mt-6 mb-6 px-6 gap-6"],(o=[p("div",_(y([["className","flex flex-row justify-between"],(a=[p("span",{className:"text-gray-900 font-semibold text-lg",children:n}),p("button",_(y([["onClick",l=>{t()}],["type","button"],["className","text-gray-600"],(s=[Sy([])],["children",x.Children.toArray(Array.from(s))])])))],["children",x.Children.toArray(Array.from(a))])]))),p("div",{children:x.Children.toArray(Array.from(r))})],["children",x.Children.toArray(Array.from(o))])])))]])))],["children",x.Children.toArray(Array.from(i))])])))]])]))}function jy(e,t){let n,r,i,o;return Ua(e,t,"Creating and managing the token",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start gap-3"],(n=[pd("Creating tokens"),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(r=[wt("How many tokens can I create?",P("You can have one active token per customer at a time. To create a new token, you must first Regenerate the existing one.")),wt("Why can I only see the token once?",P("For security, tokens are shown only when created. This prevents unauthorized access to previously generated tokens.")),wt("What if I forget to copy the token?",P("You'll need to Regenerate the token to generate a new one. The previous token cannot be retrieved or viewed again."))],["children",x.Children.toArray(Array.from(r))])])))],["children",x.Children.toArray(Array.from(n))])]))),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start gap-3"],(i=[pd("Managing tokens"),p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(o=[wt("What happens when the token expires?",P("User syncing stops immediately. Create a new token and work with the customer to update their external system (like Entra ID) to restore syncing.")),wt("What happens if I regenerate my token?",P("The current token becomes invalid instantly. You must work with the customer to update their external system with the new token to maintain syncing.")),wt("What if the customer loses access to their external system?",P("You can Regenerate the token here, but the customer will still need external system access to enter the new token and restore syncing."))],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(i))])])))])}function Ny(e,t){let n;return Ua(e,t,"Keeping the token secure",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(n=[wt("Can I share this token with my team?",y(["Only share with team members who need it to help your customer set up their system. Use secure methods like MYOB’s PrivateBin - never email or message tokens.","Once your customer has received the token, delete all files that reference the token from your machine, then delete or allow the PrivateBin to expire."])),wt("What can someone do with the customer’s token?",P("They can create, update, and deactivate users in your customer’s system.")),wt("What happens if my customer informs me that the token was compromised?",P("Revoke the token immediately if you or the customer suspects compromise.")),wt("Is the customer’s token secure?",P("Yes, tokens are encrypted in our system."))],["children",x.Children.toArray(Array.from(n))])])))])}function $y(e,t){let n;return Ua(e,t,"Troubleshooting the token",[p("div",_(y([["className","self-stretch inline-flex flex-col justify-start items-start"],(n=[wt("My customer’s users aren't syncing. What's wrong?",P("Check if the token expired or verify your customer’s external system configuration. Regenerate the token if sync issues persist.")),wt("My customer’s getting authentication errors. What should I do?",P("Their token may be expired or incorrectly configured. Regenerate the token and work with them to update their external system settings."))],["children",x.Children.toArray(Array.from(n))])])))])}function Oy(e){let t,n,r,i,o,a,s;return p("div",_(y([["className","relative transform overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left"],(t=[(n=y([p("div",_(y([["className","mx-auto flex size-12 items-center justify-center rounded-full bg-red-100"],(r=[Ry([])],["children",x.Children.toArray(Array.from(r))])]))),p("div",_(y([["className","mt-3 text-center sm:mt-5"],(i=[p("h3",{className:"text-base font-semibold text-gray-900",id:"dialog-title",children:"Token Revocation Failed"}),p("div",_(y([["className","mt-2"],(o=[p("p",{className:"text-sm text-gray-500",children:"There was an issue revoking the token. Please try again."}),p("p",{className:"text-sm text-gray-500",children:"If the problem persists, contact support."})],["children",x.Children.toArray(Array.from(o))])])))],["children",x.Children.toArray(Array.from(i))])])))]),p("div",{children:x.Children.toArray(Array.from(n))})),p("div",_(y([["className","mt-5 sm:mt-6"],(a=[p("button",_(y([(s="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-red-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-red-600",["className",s]),["children","Close"],["onClick",l=>{e()}]])))],["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(t))])])))}function Py(e,t){let n;return ro(y([new Ke(3,[t]),new Ke(4,[e]),new Ke(2,["relative z-50"]),new Ke(5,[[p("style",{children:[qr]}),oo(y([new Hn(3,[!0]),new Hn(2,["fixed inset-0 bg-black/30 duration-300 ease-out data-closed:opacity-0"])])),p("div",_(y([["className","fixed inset-0 flex w-screen items-center justify-center font-inter"],(n=[io(y([new Cn(3,[!0]),new Cn(1,["max-w-[480px] relative bg-white rounded-lg shadow-xl inline-flex flex-col justify-start items-start overflow-hidden"]),new Cn(2,[[Oy(e)]])]))],["children",x.Children.toArray(Array.from(n))])])))]])]))}function By(e){let t,n;return p("button",_(y([(t="flex items-center justify-center overflow-hidden rounded-md bg-white px-4 py-2 shadow-sm border border-solid border-gray-300",["className",t]),["onClick",r=>{e()}],(n=[p("div",{className:"justify-start font-inter text-sm font-medium text-gray-700",children:"Cancel"})],["children",x.Children.toArray(Array.from(n))])])))}function Hy(e,t){let n;return p("button",_(y([["className","flex min-w-20 items-center justify-center overflow-hidden rounded-md bg-red-600 px-3 py-2 shadow-sm"],["onClick",r=>{t()}],(n=[p("div",{className:"justify-start text-center font-inter text-sm font-medium text-white",children:e})],["children",x.Children.toArray(Array.from(n))])])))}function Ly(e){return p("div",{className:"justify-start self-stretch font-inter text-lg leading-normal font-bold text-gray-900",children:e})}function zy(e){return p("div",{className:"justify-start self-stretch font-inter text-sm leading-tight font-normal text-gray-500",children:e})}function fd(e,t,n,r,i,o){let a,s,l,c,d,u;return ro(y([new Ke(3,[r]),new Ke(4,[e]),new Ke(2,["relative z-50"]),new Ke(5,[[p("style",{children:[qr]}),oo(y([new Hn(3,[!0]),new Hn(2,["fixed inset-0 bg-black/30 duration-300 ease-out data-closed:opacity-0"])])),p("div",_(y([["className","fixed inset-0 flex w-screen items-center justify-center font-inter"],(a=[io(P(new Cn(2,[[p("div",_(y([(s="inline-flex w-[512px] items-start justify-start gap-4 overflow-hidden rounded-lg bg-white p-6 shadow-xl",["className",s]),(l=[Fy([]),p("div",_(y([["className","inline-flex flex-1 flex-col items-start justify-start gap-4"],(c=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(d=[Ly(i),zy(o)],["children",x.Children.toArray(Array.from(d))])]))),p("div",_(y([["className","inline-flex items-center justify-end gap-3 self-stretch"],(u=[By(e),Hy(t,n)],["children",x.Children.toArray(Array.from(u))])])))],["children",x.Children.toArray(Array.from(c))])])))],["children",x.Children.toArray(Array.from(l))])])))]])))],["children",x.Children.toArray(Array.from(a))])])))]])]))}function Uy(e,t,n){return fd(e,"Revoke token",t,n,"Are you sure you want to revoke this secret token?","This token will become invalid instantly and your customer’s users will stop syncing.")}function Vy(e,t,n){return fd(e,"Regenerate token",t,n,"Are you sure you want to regenerate this secret token?","Your customer’s users will stop syncing until they update their systems with the new token.")}let Vt=class extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}};function qy(e){return p(ld,ir(e,1))}function md(e){let t;const n=e.child,r=e.valueToCopy,i=x.useState(!1),o=i[0],a=i[1],s=[o];return x.useEffect(()=>{Hi(A.Delay(()=>o?A.Bind(ma(500),()=>(a(!1),A.Zero())):A.Zero()))},s),p("div",_(y([["className","relative flex flex-col items-center"],(t=[qy(y([new Vt(1,["div"]),new Vt(4,["absolute bottom-full mb-1 justify-center inline-flex items-center justify-center rounded-[10px] bg-gray-950 px-2.5 py-1"]),new Vt(3,[o]),new Vt(5,["transition-opacity ease-in duration-100"]),new Vt(6,["opacity-0"]),new Vt(7,["opacity-90"]),new Vt(8,["transition-opacity ease-out duration-500"]),new Vt(9,["opacity-90"]),new Vt(10,["opacity-0"]),new Vt(11,[[p("div",{className:"justify-start text-center font-inter text-xs leading-none font-medium text-white",children:"Copied to clipboard!"})]])])),p("div",{onClick:l=>{navigator.clipboard.writeText(r),a(!0)},children:x.Children.toArray([n])})],["children",x.Children.toArray(Array.from(t))])])))}const Wy=p("div",_(y([["className","w-full inline-flex flex-col items-start justify-start gap-2 border-b border-gray-200 bg-white px-6 pt-6 pb-4"],(()=>{const e=[p("div",{className:"justify-start self-stretch text-xl leading-normal font-bold text-gray-900",children:"Secret token generated"})];return["children",x.Children.toArray(Array.from(e))]})()])));function Gy(e){let t,n;return p("div",_(y([(t="inline-flex items-center justify-center gap-2.5 self-stretch rounded-[5px] bg-gray-50 p-3 outline outline-1 outline-offset-[-1px] outline-gray-200",["className",t]),(n=[p("div",{className:"flex-1 justify-start text-xs leading-[18px] font-normal text-[#686f7d] break-all",children:e})],["children",x.Children.toArray(Array.from(n))])])))}function Qy(e){let t,n,r,i,o,a,s,l,c,d,u,m,f;return p("div",_(y([["className","inline-flex flex-col items-start justify-start self-stretch"],(t=[p("div",_(y([["className","flex flex-col items-start justify-start gap-6 self-stretch"],(n=[p("div",_(y([["className","justify-start self-stretch"],(r=[p("span",_(y([["className","text-sm font-normal text-gray-700"],(i=[(o="Your secret token has been generated. Treat this token like a password. Anyone with this token can manage users in the customer’s system. ",o),""],["children",x.Children.toArray(Array.from(i))])]))),p("span",{className:"text-sm font-semibold text-gray-700",children:"Never share it in emails, chat, or screenshots."})],["children",x.Children.toArray(Array.from(r))])]))),p("div",_(y([["className","flex min-w-[180px] flex-col items-start justify-start gap-2 self-stretch"],(a=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(s=[p("div",_(y([["className","inline-flex items-baseline justify-start gap-2.5 self-stretch px-px"],(l=[p("div",{className:"flex-1 justify-start text-sm font-medium text-gray-700",children:"Secret token"})],["children",x.Children.toArray(Array.from(l))])]))),Gy(e)],["children",x.Children.toArray(Array.from(s))])]))),(c=p("button",_(y([["className","inline-flex items-center justify-start gap-1"],(d=[p("div",_(y([["className","flex items-center justify-start"],(u=[p("div",{className:"justify-start text-sm font-medium text-[#2e66f7]",children:"Copy to clipboard"})],["children",x.Children.toArray(Array.from(u))])]))),Dy([])],["children",x.Children.toArray(Array.from(d))])]))),p(md,{valueToCopy:e,child:c}))],["children",x.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-3 self-stretch rounded-md bg-amber-50 p-4"],(m=[dd([]),p("div",_(y([["className","inline-flex flex-1 flex-col items-start justify-start gap-2"],(f=[p("div",{className:"justify-start self-stretch text-sm font-medium text-amber-800",children:"Important: This token will only be shown once"}),p("div",{className:"justify-start self-stretch text-sm font-normal text-amber-700",children:"Copy it now and store it safely - you won't be able to see it again."})],["children",x.Children.toArray(Array.from(f))])])))],["children",x.Children.toArray(Array.from(m))])])))],["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])])))}function Ky(e,t){let n,r,i,o,a,s,l;return p("div",_(y([(n="inline-flex items-center justify-end gap-3 self-stretch border-t border-gray-200 bg-white px-6 pt-4 pb-6",["className",n]),(r=[p("button",_(y([(i="flex items-center justify-center overflow-hidden rounded-md bg-white px-[17px] py-[9px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",i]),["onClick",c=>{t()}],(o=[p("div",{className:"justify-start text-sm font-medium text-gray-700",children:"Close"})],["children",x.Children.toArray(Array.from(o))])]))),(a=p("button",_(y([(s="flex items-center justify-center gap-2 overflow-hidden rounded-md bg-blue-700 py-[9px] pr-[17px] pl-[15px] shadow-sm",["className",s]),(l=[Iy([]),p("div",{className:"justify-start text-sm font-medium text-white",children:"Copy token to clipboard"})],["children",x.Children.toArray(Array.from(l))])]))),p(md,{valueToCopy:e,child:a}))],["children",x.Children.toArray(Array.from(r))])])))}function Zy(e,t,n){let r,i;return ro(y([new Ke(3,[n]),new Ke(4,[t]),new Ke(2,["relative z-50"]),new Ke(5,[[p("style",{children:[qr]}),oo(y([new Hn(3,[!0]),new Hn(2,["fixed inset-0 bg-black/30 duration-300 ease-out data-closed:opacity-0"])])),p("div",_(y([["className","fixed inset-0 flex w-screen items-center justify-center font-inter"],(r=[io(y([new Cn(3,[!0]),new Cn(1,["w-full max-w-[480px] relative bg-white rounded-lg shadow-xl inline-flex flex-col justify-start items-start overflow-hidden"]),new Cn(2,[[wy(P(new gy(3,[[Wy]]))),p("div",_(y([["className","self-stretch px-6 pt-6 pb-6 inline-flex flex-col justify-start items-start gap-2"],(i=[Qy(e)],["children",x.Children.toArray(Array.from(i))])]))),Ky(e,t)]])]))],["children",x.Children.toArray(Array.from(r))])])))]])]))}function Jy(e,t,n){let r,i,o,a,s,l,c,d,u,m,f,h,v,g,b,C,E;const R=n.ScimProvider.fields[0];E=[R.TokenExpiresAt,!R.TokenIsExpired];const M=E[1];return p("div",_(y([(r="inline-flex w-full max-w-[480px] min-w-[280px] flex-col items-start justify-start gap-4 overflow-hidden rounded-lg bg-white p-6 shadow-sm",["className",r]),(i=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(o=[p("div",_(y([["className","inline-flex items-center justify-center gap-2.5 self-stretch"],(a=[p("div",{className:"flex-1 justify-start text-base leading-tight font-bold text-gray-900",children:"SCIM secret token"}),p("div",_(y([["className","flex items-start justify-start"],(s=[p("div",_(y([["className","flex items-center justify-center gap-1.5 rounded bg-gray-100 py-1 pr-2.5 pl-2"],(l=[p("div",_(y([["className","relative h-2 w-2"],(c=[p("div",{className:Ue(" ",me(T(()=>B(S("absolute top-[1px] left-[1px] h-1.5 w-1.5 rounded-full"),T(()=>n.Enabled?S(M?"bg-emerald-400":"bg-red-400"):S("bg-red-400"))))))})],["children",x.Children.toArray(Array.from(c))])]))),p("div",_(me(T(()=>B(S(["className","justify-start text-center text-xs leading-none font-medium text-gray-800"]),T(()=>n.Enabled?S(M?["children","Active"]:["children","Expired"]):S(["children","Revoked"])))))))],["children",x.Children.toArray(Array.from(l))])])))],["children",x.Children.toArray(Array.from(s))])])))],["children",x.Children.toArray(Array.from(a))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-2 self-stretch"],(d=me(T(()=>{const j=Dr(E[0],"dd MMMM yyyy HH:mm tt");return S(p("div",_(me(T(()=>B(S(["className","justify-start text-sm leading-tight font-normal tracking-tight text-[#686f7d]"]),T(()=>n.Enabled?S(M?["children",`Expires ${j}`]:["children",`Token Expired ${j}`]):S(["children","Token revoked"]))))))))})),["children",x.Children.toArray(Array.from(d))])])))],["children",x.Children.toArray(Array.from(o))])]))),p("div",{className:"h-0 self-stretch outline outline-1 outline-offset-[-0.50px] outline-gray-100"}),p("div",_(y([["className","flex min-w-[180px] flex-col items-start justify-start gap-2 self-stretch"],(u=[p("div",_(y([["className","flex flex-col items-start justify-start gap-2 self-stretch"],(m=[p("div",_(y([(f="inline-flex items-center justify-center gap-2.5 self-stretch overflow-hidden rounded-[5px] bg-gray-50 p-3 outline outline-1 outline-offset-[-1px] outline-gray-200",["className",f]),(h=[p("div",{className:"flex-1 justify-start text-xs leading-[18px] font-normal text-[#686f7d]",children:"****************"})],["children",x.Children.toArray(Array.from(h))])])))],["children",x.Children.toArray(Array.from(m))])])))],["children",x.Children.toArray(Array.from(u))])]))),p("div",_(y([["className","inline-flex items-start justify-start gap-2"],(v=[p("button",_(y([["className",Ue(" ",["flex items-center justify-center gap-2 overflow-hidden rounded-md bg-white py-[9px] pr-[13px] pl-[11px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300","disabled:opacity-50 disabled:cursor-not-allowed disabled:text-gray-500 disabled:outline-gray-200"])],["disabled",n.Enabled?!M:!0],["onClick",j=>{t()}],(g=[Ey([]),p("div",{className:"justify-start text-sm leading-none font-medium text-gray-700",children:"Revoke"})],["children",x.Children.toArray(Array.from(g))])]))),p("button",_(y([(b="flex items-center justify-center gap-2 overflow-hidden rounded-md bg-white py-[9px] pr-[13px] pl-[11px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",b]),["onClick",j=>{e()}],(C=[Ty([]),p("div",{className:"justify-start text-sm leading-none font-medium text-gray-700",children:"Regenerate"})],["children",x.Children.toArray(Array.from(C))])])))],["children",x.Children.toArray(Array.from(v))])])))],["children",x.Children.toArray(Array.from(i))])])))}function Xy(e){let t,n,r,i,o,a;return p("div",_(y([(t="inline-flex w-full max-w-[480px] flex-col items-start justify-start gap-4 overflow-hidden p-6 bg-gray-300/20 rounded-lg font-inter",["className",t]),(n=[p("div",{className:"justify-start self-stretch text-base font-bold text-black",children:"No secret token exists yet"}),p("div",_(y([["className","inline-flex items-start justify-start gap-3 self-stretch rounded-md bg-amber-50 p-4"],(r=[dd([]),p("div",_(y([["className","inline-flex flex-1 flex-col items-start justify-start gap-2"],(i=[p("div",{className:"justify-start self-stretch text-sm font-medium leading-5 text-amber-800",children:"You'll only see this token once after clicking ‘Generate token’"}),p("div",{className:"justify-start self-stretch text-sm font-normal leading-5 text-amber-700",children:"Make sure you're ready to copy and save it immediately."})],["children",x.Children.toArray(Array.from(i))])])))],["children",x.Children.toArray(Array.from(r))])]))),p("div",_(y([(o="inline-flex items-center justify-center gap-2 overflow-hidden rounded-md bg-blue-700 py-[9px] pl-[15px] pr-[17px] shadow-sm",["className",o]),(a=[ky([]),p("button",{className:"justify-start text-sm font-medium leading-tight text-white",children:"Generate token",onClick:s=>{e()}})],["children",x.Children.toArray(Array.from(a))])])))],["children",x.Children.toArray(Array.from(n))])])))}const Yy=p("div",{className:"justify-start self-stretch text-xl leading-normal font-semibold text-gray-900",children:"User provisioning"}),ex=p("div",_(y([["className","justify-start self-stretch text-sm font-normal text-gray-700"],["children","Generate and share a secret token with your customer to enable automated user provisioning from their identity providers."]])));function Va(e,t){let n,r;return p("button",_(y([(n="inline-flex min-w-20 items-center justify-center overflow-hidden rounded-[15px] bg-white px-[13px] py-[7px] shadow-sm outline outline-1 outline-offset-[-1px] outline-gray-300",["className",n]),["onClick",i=>{e()}],(r=[p("div",{className:"justify-start text-gray-600 text-xs font-medium leading-none",children:t})],["children",x.Children.toArray(Array.from(r))])])))}function tx(e){let t;return p("div",_(y([["className","inline-flex justify-start items-start gap-2"],(t=[Va(He(e)(new yn(1,[])),"Creating and managing the token"),Va(He(e)(new yn(2,[])),"Keeping the token secure"),Va(He(e)(new yn(3,[])),"Troubleshooting the token")],["children",x.Children.toArray(Array.from(t))])])))}function nx(e,t){return y([jy(we(e,new yn(1,[])),t),Ny(we(e,new yn(2,[])),t),$y(we(e,new yn(3,[])),t)])}function rx(e,t,n,r){switch(r.tag){case 3:return Py(n,!0);case 5:return Vy(n,e,!0);case 4:return Uy(n,t,!0);case 1:case 0:return ct();default:return Zy(r.fields[0].Value,n,!0)}}function ix(e){let t;const n=e.config,r=e.scimConfigService,i=Aa(()=>xa(()=>uw(n),(l,c)=>dw(r,l,c),(l,c)=>{}),void 0,void 0),o=i[0],a=i[1],s=l=>{a(new mt(3,[]))};return p("div",_(y([["className","inline-flex flex-col items-start justify-start gap-8 self-stretch font-inter"],(t=me(T(()=>B(S(rx(s,()=>{a(new mt(7,[]))},()=>{a(new mt(5,[]))},o.TokenDialog)),T(()=>B(nx(o.InfoPanel,()=>{a(new mt(1,[new yn(0,[])]))}),T(()=>{let l;return S(p("div",_(y([["className","flex w-full max-w-[720px] flex-col items-start justify-start gap-6"],(l=me(T(()=>{let c;return B(S(p("div",_(y([["className","flex flex-col items-start justify-start gap-3 self-stretch"],(c=[p("div",{className:"flex flex-col items-start justify-start gap-2 self-stretch",children:x.Children.toArray([Yy,ex])}),tx((d,u)=>{a(new mt(1,[d]))})],["children",x.Children.toArray(Array.from(c))])])))),T(()=>{const d=o.Config;return d.tag===1?S(Jy(()=>{a(new mt(2,[]))},()=>{a(new mt(6,[]))},d.fields[0])):S(Xy(s))}))})),["children",x.Children.toArray(Array.from(l))])]))))})))))),["children",x.Children.toArray(Array.from(t))])])))}class ao extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Failed"]}}class hd extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialise","LoadedConfig"]}}function ox(){return[new ao(0,[]),P(e=>{e(new hd(0,[]))})]}function ax(e,t,n){return t.tag===1?t.fields[0].tag===1?[new ao(2,[t.fields[0].fields[0]]),ie()]:t.fields[0].fields[0]!=null?[new ao(1,[new mr(1,[t.fields[0].fields[0]])]),ie()]:[new ao(1,[new mr(0,[])]),ie()]:[n,en(r=>{tn(r)},e,void 0,r=>new hd(1,[r]))]}function sx(e){let t,n;const r=e.scimConfigService,i=(t=(n=uu(r),o=>a=>ax(n,o,a)),Aa(()=>xa(ox,K(t),(o,a)=>{}),void 0,void 0))[0];switch(i.tag){case 2:return p("div",{children:i.fields[0]});case 1:return p(ix,{scimConfigService:r,config:i.fields[0]});default:return p("div",{children:"Loading SCIM configuration..."})}}class so extends L{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","partner-id","account-id"]}}function lx(e){const t=T(()=>B(S(new so(1,[e.AccessToken])),T(()=>B(S(new so(0,[e.BackendUrl])),T(()=>B(S(new so(2,[e.PartnerId])),T(()=>S(new so(3,[e.AccountId])))))))));return p("superhero-identity-sso-config",ir(t,1))}const gd="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAAxADcDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz/wCKH7XPxUvfiT4glb4keOYy+o3B2Ra5cxxr+8bhVVwFA9AMCsL/AIav+KX/AEUrx/8A+FDd/wDxyuY+In/JQNd/7CFx/wCjGrHr6WMY22PmXKV9z6y/4J2/8FK/GX7P/wC01o994w8XeIvEHhHVz/ZurQapqU12lvFIwxOgkZtrRsFbIxldw71+8Vlew6lZw3FvIk0FwgkjkQ5V1IyCD6EHNfy11754I/4Ki/Hz4c+ENN0HR/iTrFrpOj2yWlnA1vbTeREg2ogZ42YhVAAyTgADtXJisH7R80NDswuM9muWep/Q5RX8/H/D3j9o7/oqGq/+ANn/APGaP+HvH7R3/RUNV/8AAGz/APjNcv8AZ1Tujq/tGn2Z/QPRX4//APBLf/gpb8aPjF+2Hofhvxd4zuPEWh6ja3jTWtzaQIN0dvJIpDRopBDKO9FctahKnLlZ1Ua8akeZH5//ABE/5KBrv/YQuP8A0Y1Y9bHxE/5KBrv/AGELj/0Y1Y9fQx2PnQr74/b28C+G9A/4JT/s76xpvh/Q9P1jWIoftt/bWMUN1eFbYg+ZIqhn55+YnmvgevvX9vPUvtP/AASP/ZhXP3hcr/3wpWsK3xQ9f0Oij8M/T9UfBVFFFdBzn1D/AMEcv+T+/Cn/AF6ah/6SS0Uf8Ecv+T+/Cn/XpqH/AKSS0V5GO/ifI9fA/wAP5nzt8RP+Sga7/wBhC4/9GNWPXdftL/C7W/g38d/FXh/xBYXGn6jZ6lOSk0ZTzEMjFJF9VZcEEcEGuFr1Y7Hky0dmFe8fHf8AaX8RfEv9jv4S+BdQ8H3Wj6D4La8/s3W38zy9aLvlwu5AnyE4O1mx3xXg9enfE79rvxp8XfgV4N+HetXVlL4b8C7hpaR2qxzKCMAO45bA4H15zSlG7TKjKyZ5jRRRVkH1D/wRy/5P78Kf9emof+kktFdX/wAENvg3rvxC/bVsdbsbOY6L4bsbp9Rvdh8m3MsDxRoT03MzcDrhWPaivHx8l7T5HsYGL9n8z2z/AIOK/wDkevCX/YNT/wBHT1+Y9FFd+D/hI4cZ/FYUUUV0nKFFFFAH7r/8ERP+TJ7D/r7b/wBASiiivncR/El6n0WH/hx9D//Z";var cx=0;function Me(e,t,n,r,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--cx,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return H.vnode&&H.vnode(c),c}var qa={exports:{}},Wa,wd;function ux(){if(wd)return Wa;wd=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Wa=e,Wa}var Ga,vd;function dx(){if(vd)return Ga;vd=1;var e=ux();function t(){}function n(){}return n.resetWarningCache=t,Ga=function(){function r(a,s,l,c,d,u){if(u!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ga}var yd;function px(){return yd||(yd=1,qa.exports=dx()()),qa.exports}var fx=px();const te=hu(fx);function Ln(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(d){try{c(r.next(d))}catch(u){a(u)}}function l(d){try{c(r.throw(d))}catch(u){a(u)}}function c(d){d.done?o(d.value):i(d.value).then(s,l)}c((r=r.apply(e,t||[])).next())})}typeof SuppressedError=="function"&&SuppressedError;const mx=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function hr(e,t,n){const r=hx(e),{webkitRelativePath:i}=e,o=typeof t=="string"?t:typeof i=="string"&&i.length>0?i:`./${e.name}`;return typeof r.path!="string"&&xd(r,"path",o),xd(r,"relativePath",o),r}function hx(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),i=mx.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}function xd(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const gx=[".DS_Store","Thumbs.db"];function wx(e){return Ln(this,void 0,void 0,function*(){return lo(e)&&vx(e.dataTransfer)?_x(e.dataTransfer,e.type):yx(e)?xx(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?bx(e):[]})}function vx(e){return lo(e)}function yx(e){return lo(e)&&lo(e.target)}function lo(e){return typeof e=="object"&&e!==null}function xx(e){return Qa(e.target.files).map(t=>hr(t))}function bx(e){return Ln(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>hr(n))})}function _x(e,t){return Ln(this,void 0,void 0,function*(){if(e.items){const n=Qa(e.items).filter(i=>i.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(Ax));return bd(_d(r))}return bd(Qa(e.files).map(n=>hr(n)))})}function bd(e){return e.filter(t=>gx.indexOf(t.name)===-1)}function Qa(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function Ax(e){if(typeof e.webkitGetAsEntry!="function")return Ad(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Cd(t):Ad(e,t)}function _d(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?_d(n):[n]],[])}function Ad(e,t){return Ln(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const o=yield e.getAsFileSystemHandle();if(o===null)throw new Error(`${e} is not a File`);if(o!==void 0){const a=yield o.getFile();return a.handle=o,hr(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return hr(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function Cx(e){return Ln(this,void 0,void 0,function*(){return e.isDirectory?Cd(e):kx(e)})}function Cd(e){const t=e.createReader();return new Promise((n,r)=>{const i=[];function o(){t.readEntries(a=>Ln(this,void 0,void 0,function*(){if(a.length){const s=Promise.all(a.map(Cx));i.push(s),o()}else try{const s=yield Promise.all(i);n(s)}catch(s){r(s)}}),a=>{r(a)})}o()})}function kx(e){return Ln(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const i=hr(r,e.fullPath);t(i)},r=>{n(r)})})})}var co={},kd;function Sx(){return kd||(kd=1,co.__esModule=!0,co.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0}),co}var Ex=Sx();const Ka=hu(Ex);function Sd(e){return Ix(e)||Dx(e)||Id(e)||Tx()}function Tx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dx(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ix(e){if(Array.isArray(e))return Za(e)}function Ed(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 Td(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ed(Object(n),!0).forEach(function(r){Dd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ed(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yr(e,t){return Mx(e)||Fx(e,t)||Id(e,t)||Rx()}function Rx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Id(e,t){if(e){if(typeof e=="string")return Za(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 Za(e,t)}}function Za(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 Fx(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function Mx(e){if(Array.isArray(e))return e}var jx=typeof Ka=="function"?Ka:Ka.default,Nx="file-invalid-type",$x="file-too-large",Ox="file-too-small",Px="too-many-files",Bx=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:Nx,message:"File type must be ".concat(r)}},Rd=function(t){return{code:$x,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Fd=function(t){return{code:Ox,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Hx={code:Px,message:"Too many files"};function Md(e,t){var n=e.type==="application/x-moz-file"||jx(e,t);return[n,n?null:Bx(t)]}function jd(e,t,n){if(zn(e.size))if(zn(t)&&zn(n)){if(e.size>n)return[!1,Rd(n)];if(e.size<t)return[!1,Fd(t)]}else{if(zn(t)&&e.size<t)return[!1,Fd(t)];if(zn(n)&&e.size>n)return[!1,Rd(n)]}return[!0,null]}function zn(e){return e!=null}function Lx(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var c=Md(l,n),d=Yr(c,1),u=d[0],m=jd(l,r,i),f=Yr(m,1),h=f[0],v=s?s(l):null;return u&&h&&!v})}function uo(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function po(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Nd(e){e.preventDefault()}function zx(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ux(e){return e.indexOf("Edge/")!==-1}function Vx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return zx(e)||Ux(e)}function qt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!uo(r)&&s&&s.apply(void 0,[r].concat(o)),uo(r)})}}function qx(){return"showOpenFilePicker"in window}function Wx(e){if(zn(e)){var t=Object.entries(e).filter(function(n){var r=Yr(n,2),i=r[0],o=r[1],a=!0;return $d(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(Od))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=Yr(r,2),o=i[0],a=i[1];return Td(Td({},n),{},Dd({},o,a))},{});return[{description:"Files",accept:t}]}return e}function Gx(e){if(zn(e))return Object.entries(e).reduce(function(t,n){var r=Yr(n,2),i=r[0],o=r[1];return[].concat(Sd(t),[i],Sd(o))},[]).filter(function(t){return $d(t)||Od(t)}).join(",")}function Qx(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Kx(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function $d(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Od(e){return/^.*\.[\w]+$/.test(e)}var Zx=["children"],Jx=["open"],Xx=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Yx=["refKey","onChange","onClick"];function eb(e){return rb(e)||nb(e)||Pd(e)||tb()}function tb(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nb(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rb(e){if(Array.isArray(e))return Xa(e)}function Ja(e,t){return ab(e)||ob(e,t)||Pd(e,t)||ib()}function ib(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pd(e,t){if(e){if(typeof e=="string")return Xa(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 Xa(e,t)}}function Xa(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 ob(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function ab(e){if(Array.isArray(e))return e}function Bd(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 he(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bd(Object(n),!0).forEach(function(r){Ya(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fo(e,t){if(e==null)return{};var n=sb(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sb(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var es=li(function(e,t){var n=e.children,r=fo(e,Zx),i=Ld(r),o=i.open,a=fo(i,Jx);return ii(t,function(){return{open:o}},[o]),$.createElement(J,null,n(he(he({},a),{},{open:o})))});es.displayName="Dropzone";var Hd={disabled:!1,getFilesFromEvent:wx,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};es.defaultProps=Hd,es.propTypes={children:te.func,accept:te.objectOf(te.arrayOf(te.string)),multiple:te.bool,preventDropOnDocument:te.bool,noClick:te.bool,noKeyboard:te.bool,noDrag:te.bool,noDragEventsBubbling:te.bool,minSize:te.number,maxSize:te.number,maxFiles:te.number,disabled:te.bool,getFilesFromEvent:te.func,onFileDialogCancel:te.func,onFileDialogOpen:te.func,useFsAccessApi:te.bool,autoFocus:te.bool,onDragEnter:te.func,onDragLeave:te.func,onDragOver:te.func,onDrop:te.func,onDropAccepted:te.func,onDropRejected:te.func,onError:te.func,validator:te.func};var ts={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Ld(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=he(he({},Hd),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,c=t.onDragEnter,d=t.onDragLeave,u=t.onDragOver,m=t.onDrop,f=t.onDropAccepted,h=t.onDropRejected,v=t.onFileDialogCancel,g=t.onFileDialogOpen,b=t.useFsAccessApi,C=t.autoFocus,E=t.preventDropOnDocument,R=t.noClick,M=t.noKeyboard,j=t.noDrag,z=t.noDragEventsBubbling,ce=t.onError,Se=t.validator,ue=se(function(){return Gx(n)},[n]),ve=se(function(){return Wx(n)},[n]),Ze=se(function(){return typeof g=="function"?g:zd},[g]),Pe=se(function(){return typeof v=="function"?v:zd},[v]),ge=U(null),Re=U(null),ei=Gn(lb,ts),Un=Ja(ei,2),Wt=Un[0],_e=Un[1],gr=Wt.isFocused,Ft=Wt.isFileDialogActive,kn=U(typeof window<"u"&&window.isSecureContext&&b&&qx()),V=function(){!kn.current&&Ft&&setTimeout(function(){if(Re.current){var N=Re.current.files;N.length||(_e({type:"closeDialog"}),Pe())}},300)};pe(function(){return window.addEventListener("focus",V,!1),function(){window.removeEventListener("focus",V,!1)}},[Re,Ft,Pe,kn]);var Mt=U([]),Sn=function(N){ge.current&&ge.current.contains(N.target)||(N.preventDefault(),Mt.current=[])};pe(function(){return E&&(document.addEventListener("dragover",Nd,!1),document.addEventListener("drop",Sn,!1)),function(){E&&(document.removeEventListener("dragover",Nd),document.removeEventListener("drop",Sn))}},[ge,E]),pe(function(){return!r&&C&&ge.current&&ge.current.focus(),function(){}},[ge,C,r]);var un=ne(function(D){ce?ce(D):console.error(D)},[ce]),wr=ne(function(D){D.preventDefault(),D.persist(),wo(D),Mt.current=[].concat(eb(Mt.current),[D.target]),po(D)&&Promise.resolve(i(D)).then(function(N){if(!(uo(D)&&!z)){var Ae=N.length,Fe=Ae>0&&Lx({files:N,accept:ue,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:Se}),lt=Ae>0&&!Fe;_e({isDragAccept:Fe,isDragReject:lt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(D)}}).catch(function(N){return un(N)})},[i,c,un,z,ue,a,o,s,l,Se]),Vn=ne(function(D){D.preventDefault(),D.persist(),wo(D);var N=po(D);if(N&&D.dataTransfer)try{D.dataTransfer.dropEffect="copy"}catch{}return N&&u&&u(D),!1},[u,z]),En=ne(function(D){D.preventDefault(),D.persist(),wo(D);var N=Mt.current.filter(function(Fe){return ge.current&&ge.current.contains(Fe)}),Ae=N.indexOf(D.target);Ae!==-1&&N.splice(Ae,1),Mt.current=N,!(N.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),po(D)&&d&&d(D))},[ge,d,z]),mo=ne(function(D,N){var Ae=[],Fe=[];D.forEach(function(lt){var ti=Md(lt,ue),xr=Ja(ti,2),is=xr[0],os=xr[1],as=jd(lt,a,o),vo=Ja(as,2),ss=vo[0],ls=vo[1],cs=Se?Se(lt):null;if(is&&ss&&!cs)Ae.push(lt);else{var us=[os,ls];cs&&(us=us.concat(cs)),Fe.push({file:lt,errors:us.filter(function(Pb){return Pb})})}}),(!s&&Ae.length>1||s&&l>=1&&Ae.length>l)&&(Ae.forEach(function(lt){Fe.push({file:lt,errors:[Hx]})}),Ae.splice(0)),_e({acceptedFiles:Ae,fileRejections:Fe,isDragReject:Fe.length>0,type:"setFiles"}),m&&m(Ae,Fe,N),Fe.length>0&&h&&h(Fe,N),Ae.length>0&&f&&f(Ae,N)},[_e,s,ue,a,o,l,m,f,h,Se]),ho=ne(function(D){D.preventDefault(),D.persist(),wo(D),Mt.current=[],po(D)&&Promise.resolve(i(D)).then(function(N){uo(D)&&!z||mo(N,D)}).catch(function(N){return un(N)}),_e({type:"reset"})},[i,mo,un,z]),vr=ne(function(){if(kn.current){_e({type:"openDialog"}),Ze();var D={multiple:s,types:ve};window.showOpenFilePicker(D).then(function(N){return i(N)}).then(function(N){mo(N,null),_e({type:"closeDialog"})}).catch(function(N){Qx(N)?(Pe(N),_e({type:"closeDialog"})):Kx(N)?(kn.current=!1,Re.current?(Re.current.value=null,Re.current.click()):un(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):un(N)});return}Re.current&&(_e({type:"openDialog"}),Ze(),Re.current.value=null,Re.current.click())},[_e,Ze,Pe,b,mo,un,ve,s]),Gd=ne(function(D){!ge.current||!ge.current.isEqualNode(D.target)||(D.key===" "||D.key==="Enter"||D.keyCode===32||D.keyCode===13)&&(D.preventDefault(),vr())},[ge,vr]),Qd=ne(function(){_e({type:"focus"})},[]),Kd=ne(function(){_e({type:"blur"})},[]),Zd=ne(function(){R||(Vx()?setTimeout(vr,0):vr())},[R,vr]),yr=function(N){return r?null:N},rs=function(N){return M?null:yr(N)},go=function(N){return j?null:yr(N)},wo=function(N){z&&N.stopPropagation()},Nb=se(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=D.refKey,Ae=N===void 0?"ref":N,Fe=D.role,lt=D.onKeyDown,ti=D.onFocus,xr=D.onBlur,is=D.onClick,os=D.onDragEnter,as=D.onDragOver,vo=D.onDragLeave,ss=D.onDrop,ls=fo(D,Xx);return he(he(Ya({onKeyDown:rs(qt(lt,Gd)),onFocus:rs(qt(ti,Qd)),onBlur:rs(qt(xr,Kd)),onClick:yr(qt(is,Zd)),onDragEnter:go(qt(os,wr)),onDragOver:go(qt(as,Vn)),onDragLeave:go(qt(vo,En)),onDrop:go(qt(ss,ho)),role:typeof Fe=="string"&&Fe!==""?Fe:"presentation"},Ae,ge),!r&&!M?{tabIndex:0}:{}),ls)}},[ge,Gd,Qd,Kd,Zd,wr,Vn,En,ho,M,j,r]),$b=ne(function(D){D.stopPropagation()},[]),Ob=se(function(){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=D.refKey,Ae=N===void 0?"ref":N,Fe=D.onChange,lt=D.onClick,ti=fo(D,Yx),xr=Ya({accept:ue,multiple:s,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:yr(qt(Fe,ho)),onClick:yr(qt(lt,$b)),tabIndex:-1},Ae,Re);return he(he({},xr),ti)}},[Re,n,s,ho,r]);return he(he({},Wt),{},{isFocused:gr&&!r,getRootProps:Nb,getInputProps:Ob,rootRef:ge,inputRef:Re,open:yr(vr)})}function lb(e,t){switch(t.type){case"focus":return he(he({},e),{},{isFocused:!0});case"blur":return he(he({},e),{},{isFocused:!1});case"openDialog":return he(he({},ts),{},{isFileDialogActive:!0});case"closeDialog":return he(he({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return he(he({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return he(he({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return he({},ts);default:return e}}function zd(){}const cb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",ub="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA7AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2T4//ABv8Yav8bfFkk3ibXAU1a5iRY72SNERJWVVCqQAAABxXH/8AC2vFX/QzeIP/AAYzf/FVN8a/+Sy+Lv8AsNXn/o965mvpYxVlofPSk7s6D/hbXir/AKGbxB/4MZv/AIqv0d/4Jc/tXzfGr4bS+FdevGuvEnhlBsllbdJeWhOFYnuyEhSfTaTya/MKus+B/wAZtY+APxN0zxTocire6c+TG+fLuYzw8TgdVYceo6jkA1liKCqQstzWhWcJ3ex+3lFfnD/w+j8b/wDQp+Ff++rj/wCLo/4fR+N/+hT8K/8AfVx/8XXl/Ua3Y9L65S7n6PUV+cP/AA+j8b/9Cn4V/wC+rj/4un23/BaXxmtwhm8IeGJIgw3qkk6sw7gEscH3wfpR9Rrdg+uUu5+jdFfJv/D1vQP+hb1D/v8AL/hRWX1ap2NPrFPufnf8a/8Aksvi7/sNXn/o965mum+Nf/JZfF3/AGGrz/0e9czXvx2R4ct2FaXhvwdq3jG6aHSdL1DVJl+8lrbvMV+u0HFdJ+zv8HZ/j18X9H8MxTfZYr12e6ucZFtAil5JD9FU9e+K9Z+J/wC29cfDxm8J/B2GPwZ4V0t/JF5DCn9oas6/KZ5ZCCfmPIHXGPoJlN35Y7lRirc0tjw3xb8MPEngJVbWtB1bSlc4Vrq1eJWPoCRisKvr39in9oH4l/Hv4h/8Iv4k1bTPFXg24iKavF4kMbxpC3B2ORvMh6KASPpjIv8A/BUH9nrwr8APhl8PbHwnp0NnZveag8sobzJbhnWAgu55bAXAyeAKy+sNTVOS1NHRvD2kdj4zooorpOc9QooornOg5X41/wDJZfF3/YavP/R71zNdN8a/+Sy+Lv8AsNXn/o965mto7Ixluz1b9j74Z+Lvi18ULzR/BetR6HrM2k3BMsjlFnhOxZIiQD94Nnp2pvx4/Y08ffs46el94o0+xt7GaTyoriLUIJBM3oqbvMPr93gcmpP2NP2gLX9mb4wSeKrq1kvlt9NuYI7dDtM0jgBAT2G7BJ9Aa9Y+J/xn+G37dkFjqXjHxFqXw38X6fF5DExSahpNwnYogO6Mnvj8d3WsJSnGpe3u+htGMHT394+UEdo3DKxVlOQQcEV6n8Y/hfqvgL4KeA9W1jxFeXdz4uWe+i0iZnb7FChVI5eSfvgnHA6Hriu38N/D74G/BS5/tjxB40m+JV1ZkPbaLpFlJbW88gOR5ssnVOBkAD8eleTfHf42ar8fPiHda9qmyEMogs7SLiGwt1z5cKDsqg/iST3q1JykrbEcqitdzjaKKK2Mj1Ciiiuc6DK/ad8H33gT9oPxhp2oQtDcJq1xLhhjckjmRGHsVYH8a4Sv16/bC/Zy8D/E/wANSa1rnhywvdXtlEaXg3Qzleys6FSwHYNkDJxivlr/AIZS8Af9C+n/AIF3H/xdY0cZFx1RpVwslLRnxVRX2r/wyl4A/wChfT/wLuP/AIuj/hlLwB/0L6f+Bdx/8XWv1qPmZ/V5HxVRX2r/AMMpeAP+hfT/AMC7j/4uj/hlLwB/0L6f+Bdx/wDF0fWo+YfV5HxVUlnZy6hdxW8EbTTTuI40UZZ2JwAB6k19o/8ADKXgD/oX0/8AAu4/+Lr3H9jr9lD4d6NrEmuQ+F7F9U02QNazzvJP5DcYZVdioYdQ2Mg8gionjIxV7FQwspO1z54/4YD8ff8APg//AH7NFfpTRXn/AF2Z6H1SB//Z";function db({onCancel:e,onSubmit:t,onFileDrop:n}){const r=ne(u=>{const m=u[0];n(m,m.path)},[]),{getRootProps:i,getInputProps:o,open:a,acceptedFiles:s,fileRejections:l}=Ld({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),c=s.map(u=>Me("p",{children:u.path},u.path)),d=l.map(({file:u,errors:m})=>Me("li",{children:[u.path," - ",u.size," bytes",Me("ul",{children:m.map(f=>Me("li",{children:f.message},f.code))})]},u.path));return Me("div",{...i(),children:[Me("input",{...o(),name:"file"}),Me("img",{src:c.length?ub:cb,className:"mx-auto mb-2"}),l.length?Me("div",{className:"mb-2",children:[Me("div",{className:"mb-2 font-semibold",children:"Rejected files"}),Me("ul",{children:d})]}):Me(J,{}),c.length?Me(J,{children:[c,Me("button",{type:"reset",onClick:e,className:"mt-6 mr-6 rounded-md bg-white px-3.5 py-2.5 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50",children:"Cancel"}),Me("button",{type:"button",onClick:t,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Import file"})]}):Me(J,{children:[Me("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),Me("button",{type:"button",onClick:a,className:"rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",children:"Browse"})]})]})}const pb=gd;function fb(e){let t;const n=x.useState(!1),r=n[1],i=x.useState(0),o=i[0]|0;let a;const s=new FormData;a=x.useState(s);const l=a[0],c=x.useState("profiles");return p("form",_(y([["key",o],(t=me(T(()=>B(S(p("label",{for:"importStages"})),T(()=>{let d;return B(S(p("select",_(y([["className","m-2"],["name","importStages"],["id","importStages"],(d=[p("option",{children:"Profiles",value:"profiles"}),p("option",{children:"Profiles and Tax",value:"profiles,tax"})],["children",x.Children.toArray(Array.from(d))]),["onChange",u=>{c[1](u.target.value)}]])))),T(()=>B(S(p(db,{onCancel:()=>{i[1](o+1),a[1](new FormData)},onSubmit:()=>{r(!0)},onFileDrop:(u,m)=>{l.set("file",u,m)}})),T(()=>{let u,m,f,h,v,g,b,C,E,R,M;return n[0]?S((u=y([p("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),p("div",_(y([["className","fixed inset-0 z-10 overflow-y-auto"],(m=[p("div",_(y([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(f=[p("div",_(y([(h="relative overflow-hidden rounded-lg bg-white px-4 pb-4 pt-5 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6",["className",h]),(v=[(g=y([p("div",_(y([["className","mt-3 text-center sm:mt-5 space-y-6"],(b=[p("img",{src:pb,className:"mx-auto"}),p("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),p("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",x.Children.toArray(Array.from(b))])]))),p("div",_(y([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(C=[p("button",_(y([["type","button"],(E="inline-flex w-full justify-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 sm:col-start-2",["className",E]),["children","I confirm"],["onClick",He(e.RequestStartImport)((R=ea(c[0],[","],void 0,0),(()=>{for(let j=0;j<=R.length-1;j++){const z=le(j,R);l.append("importStages",z)}})(),l))]]))),p("button",_(y([["type","button"],(M="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 sm:col-start-1 sm:mt-0",["className",M]),["children","Cancel"],["onClick",j=>{r(!1)}]])))],["children",x.Children.toArray(Array.from(C))])])))]),p("div",{children:x.Children.toArray(Array.from(g))}))],["children",x.Children.toArray(Array.from(v))])])))],["children",x.Children.toArray(Array.from(f))])])))],["children",x.Children.toArray(Array.from(m))])])))]),p("div",{children:x.Children.toArray(Array.from(u))}))):hn()}))))})))),["children",x.Children.toArray(Array.from(t))])])))}const Ud="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",mb=Ud;function hb(){const e=y([p("img",{src:mb,className:"mx-auto animate-spin"}),p("p",{className:"mt-2",children:"Validating data"})]);return p("div",{children:x.Children.toArray(Array.from(e))})}const gb=gd;function wb(e,t,n){let r;return p("a",{className:"font-medium text-blue-600 underline cursor-pointer",href:(r=new Blob([e],{type:"text/csv;charset=utf-8;"}),window.URL.createObjectURL(r)),download:t,children:n})}function Vd(e,t){let n;return p("p",_(y([["className","mt-6"],(n=["Download the full error report ",wb(Ue(`\r
63
+ `,Pf(Pr(P(P("Row,Column,Error")),Jt(r=>Jt(i=>Ue(",",_t(o=>`"${o}"`,_t(o=>Bl(o,'"','""'),[Nt(r.RowId),i.Column,i.Message]))),r.FieldErrors),t)))),`${e}_validation_errors.csv`,"here"),"."],["children",x.Children.toArray(Array.from(n))])])))}function vb(e,t){switch(t.tag){case 15:return p("p",{children:["Internal API deserialization error"]});case 16:return p("p",{children:["Internal API client error"]});case 0:return p("p",{children:["Invalid file type"]});case 4:return p("p",{children:["Invalid file name"]});case 5:return p("p",{children:["CSV exceeds max row limit"]});case 14:return p("p",{children:["Duplicate row id"]});case 6:return p("p",{children:[t.fields[0]]});case 7:return p("p",{children:["CSV does not contain any data"]});case 8:return p("p",{children:["File not uploaded, ensure a file is selected"]});case 9:return p("p",{children:["Only a single file is allowed"]});case 11:return p("p",{children:["Unknown account"]});case 10:if($r(t.fields[0])<=10){const n=me(T(()=>B(S(p("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),T(()=>B(Hr(r=>Ye(i=>p("li",{children:[`Row ${r.RowId}, Column ${i.Column}: ${i.Message}`]}),r.FieldErrors),t.fields[0]),T(()=>S(Vd(e,t.fields[0]))))))));return p("div",{children:x.Children.toArray(Array.from(n))})}else{const n=y([p("p",{children:["The file contains more than 10 validation errors"]}),Vd(e,t.fields[0])]);return p("div",{children:x.Children.toArray(Array.from(n))})}case 12:return p("p",{children:["An import is already in progress"]});case 3:return p("p",{children:["Stage not completed"]});case 2:return p("p",{children:["Invalid import stage"]});case 1:return p("p",{children:["Invalid import stages"]});default:return p("p",{children:["Bad internal request payload"]})}}function yb(e){const t=e.userActions,n=e.accountId,r=e.error,i=me(T(()=>{const o=vb(n,r);return B(S(p("img",{src:gb,className:"mx-auto"})),T(()=>B(S(p("div",{className:"mt-2",children:x.Children.toArray([o])})),T(()=>{let a;return S(p("button",_(y([["type","button"],["children","Upload another file"],(a="mt-8 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",a]),["onClick",t.SelectFile]]))))}))))}));return p("div",{children:x.Children.toArray(Array.from(i))})}const xb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";function bb(e){const t=e.userActions,n=e.import,r=e.user,i=y([p("img",{src:xb,className:"mx-auto"}),p("p",{className:"mt-2 mb-6",children:"Import has finished"}),p(xu,{user:r,import:n,userActions:t})]);return p("div",{children:x.Children.toArray(Array.from(i))})}const _b=Ud;function Ab(e){const t=e.CurrentStage;if(t==null)return p("p",{children:["No running stage. Please wait..."]});{const n=t,r=wa(n.Stage),i=Ei(Hl(Nt,Tf((a,s)=>a+s,n.SucceededRowCount,n.FailedRowCount)),"Working..."),o=y([p("img",{src:_b,className:"mx-auto animate-spin"}),p("p",{className:"mt-2 mb-6",children:`Running stage: ${r}`}),p("p",{children:[`Creator: ${e.User}`]}),p("p",{children:[`Filename: ${e.Filename}`]}),p("p",{children:[`Rows processed: ${i}`]}),p("p",{children:[`Total rows: ${e.NumberOfRecords}`]})]);return p("div",{children:x.Children.toArray(Array.from(o))})}}function Cb(e){let t,n;const r=e.errorText;return p("div",_(y([["className","text-center"],(t=[p("p",{children:["Oops, something went wrong."]}),p("p",{children:[`Error: ${r}.`]}),p("p",{children:["Please refresh the page and try again."]}),p("button",_(y([(n="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",n]),["onClick",i=>{window.location.reload()}],["children","Refresh"]])))],["children",x.Children.toArray(Array.from(t))])])))}function kb(e){let t,n,r,i,o,a,s,l,c,d;const u=e.userActions,m=e.accountId,f=e.tabState,h=e.user,v=y([p("div",_(y([["className","space-y-6"],(t=[(n=y([(r=`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
39
64
  Optionally include employment info.
40
- The file will be validated `,r),d("b",{children:["before"]}),(o=` creating the profiles.
65
+ The file will be validated `,r),p("b",{children:["before"]}),(i=` creating the profiles.
41
66
  If validation fails, the file will be rejected, and no profiles or tax records created.
42
- You'll get an error report to fix the information before re-uploading.`,o)]),d("p",{children:S.Children.toArray(Array.from(n))})),d("p",{children:"This feature doesn't update existing profiles or tax information in the account."}),(i=x([d("span",{children:["Not sure how to get started?"]}),d("ul",I(x([["className","ml-6 list-disc list-outside"],(s=[(a=x([d("a",{className:"cursor-pointer font-medium text-blue-600 underline",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),d("li",{children:S.Children.toArray(Array.from(a))})),d("button",I(x([["type","button"],["children","Download Template"],(u="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",u]),["onClick",c.DownloadSchema]])))],["children",S.Children.toArray(Array.from(s))])])))]),d("div",{children:S.Children.toArray(Array.from(i))}))],["children",S.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","px-8 mt-10"],(l=[d("div",I(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(f=Ge(M(()=>{switch(p.tag){case 1:return Da(g)?R(d(Wm,c)):R(d("div",{children:["You are not authorised to run imports"]}));case 2:return R(d(qm,null));case 3:return R(d(Xm,{error:p.fields[0],accountId:m,userActions:c}));case 4:{const w=p.fields[0];return w.tag===1?R(d(e0,{user:g,import:w.fields[0],userActions:c})):R(d(n0,w.fields[0]))}case 5:return R(d(r0,{errorText:p.fields[0]}));default:return R(d("div",{children:["Please wait..."]}))}})),["children",S.Children.toArray(Array.from(f))])])))],["children",S.Children.toArray(Array.from(l))])])))]);return d("div",{children:S.Children.toArray(Array.from(_))})}function i0(e){let t,n,r;const o=e.userActions,i=e.state,s=e.tabs,a=x([d("style",{children:[qa]}),d("div",I(x([["className","border-b border-gray-200"],(t=[d("nav",I(x([["className","-mb-px flex space-x-8"],(n=Ge(M(()=>et(u=>d("button",{type:"button",key:$a(u),disabled:ke(i.CurrentTab,u),className:Me(" ",["border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium","disabled:border-indigo-500 disabled:text-indigo-600"]),onClick:He(o.SetCurrentTab)(u),children:$a(u)}),s))),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])]))),d("div",I(x([["className","mt-4"],(r=Ge(M(()=>{let u;return i.CurrentTab.tag===1?R(d(Vh,{user:i.User,state:i.ImportHistoryTabState,userActions:o})):R((u=W(d(o0,{user:i.User,tabState:i.ActiveImportTabState,accountId:i.AccountInfo.AccountId,userActions:o})),d("div",{children:S.Children.toArray(Array.from(u))})))})),["children",S.Children.toArray(Array.from(r))])])))]);return d("div",{children:S.Children.toArray(Array.from(a))})}function Lo(){return(Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var s0=["context","children"];function a0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},u=Object.keys(r);for(s=0;s<u.length;s++)o.indexOf(i=u[s])>=0||(a[i]=r[i]);return a}(e,s0);return Hr(t,n)}function l0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=d(a0,Lo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,u=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Cl(a[s].name)]=a[s].value);for(s=u.length;s--;){var l=t(u[s],null),f=u[s].slot;f?i[f]=d(El,{name:f},l):o[s]=l}var c=r?d(El,null,o):o;return d(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?$r:yt)(this._vdom,this._root)}function Cl(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function c0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Cl(e)]=n,this._vdom=Hr(this._vdom,r),yt(this._vdom,this._root)}}function u0(){yt(this._vdom=null,this._root)}function El(e,t){var n=this;return d("slot",Lo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function f0(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=l0,o.prototype.attributeChangedCallback=c0,o.prototype.disconnectedCallback=u0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t,o)}function d0(e,t){f0(e,t)}function p0(e){let t;const n=Od(e.accessToken),r=e.accountId,o=e.partnerId,i=new zp(r,o);let s,a;switch(n!=null?(t=n,(Ia(t)?!0:Da(t))?(s=0,a=n):s=1):s=1,s){case 0:{const u=Ip(e.backendUrl,o,r,e.accessToken);let l;const f=Gp(a,i);l=Rh(()=>lh(()=>f,(m,p)=>Wp(u,m,p),(m,p)=>{}),void 0,void 0);const c=Nh(l[1],u);return d(i0,{tabs:x([new We(0,[]),new We(1,[])]),state:l[0],userActions:c})}default:{const u=x([d("style",{children:[qa]}),d("div",{children:"You do not have the appropriate permissions to view or perform an import."})]);return d("div",{children:S.Children.toArray(Array.from(u))})}}}d0(e=>d(p0,e),"superhero-import-app")})();
67
+ You'll get an error report to fix the information before re-uploading.`,i)]),p("p",{children:x.Children.toArray(Array.from(n))})),p("p",{children:"This feature doesn't update existing profiles or tax information in the account."}),(o=y([p("span",{children:["Not sure how to get started?"]}),p("ul",_(y([["className","ml-6 list-disc list-outside"],(a=[(s=y([p("a",{className:"cursor-pointer font-medium text-blue-600 underline",children:"Read the guide",target:"_blank",rel:"noreferrer",href:"https://coda.io/d/Network-Partners_duJlEDaJduS/How-to-import-existing-employees_suumX#_lu5Lq"})," to using the CSV importer"]),p("li",{children:x.Children.toArray(Array.from(s))})),p("button",_(y([["type","button"],["children","Download Template"],(l="mt-4 rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600",["className",l]),["onClick",u.DownloadSchema]])))],["children",x.Children.toArray(Array.from(a))])])))]),p("div",{children:x.Children.toArray(Array.from(o))}))],["children",x.Children.toArray(Array.from(t))])]))),p("div",_(y([["className","px-8 mt-10"],(c=[p("div",_(y([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(d=me(T(()=>{switch(f.tag){case 1:return Gc(h)?S(p(fb,u)):S(p("div",{children:["You are not authorised to run imports"]}));case 2:return S(p(hb,null));case 3:return S(p(yb,{error:f.fields[0],accountId:m,userActions:u}));case 4:{const g=f.fields[0];return g.tag===1?S(p(bb,{user:h,import:g.fields[0],userActions:u})):S(p(Ab,g.fields[0]))}case 5:return S(p(Cb,{errorText:f.fields[0]}));default:return S(p("div",{children:["Please wait..."]}))}})),["children",x.Children.toArray(Array.from(d))])])))],["children",x.Children.toArray(Array.from(c))])])))]);return p("div",{children:x.Children.toArray(Array.from(v))})}function Sb(e){let t,n,r;const i=e.scimConfigurationService,o=e.userActions,a=e.state,s=e.tabs,l=y([p("div",_(y([["className","border-b border-gray-200"],(t=[p("nav",_(y([["className","-mb-px flex space-x-8"],(n=me(T(()=>Ye(c=>p("button",{key:ou(c),disabled:we(a.CurrentTab,c),className:Ue(" ",["border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700","whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium","disabled:border-indigo-500 disabled:text-indigo-600"]),onClick:He(o.SetCurrentTab)(c),children:ou(c)}),s))),["children",x.Children.toArray(Array.from(n))])])))],["children",x.Children.toArray(Array.from(t))])]))),p("div",_(y([["className","mt-4"],(r=me(T(()=>{let c;const d=a.CurrentTab;return d.tag===1?S(p(lw,{user:a.User,state:a.ImportHistoryTabState,userActions:o})):d.tag===2?S(p(sx,{scimConfigService:i})):d.tag===3?S(p(lx,a.ConnectionContext)):S((c=P(p(kb,{user:a.User,tabState:a.ActiveImportTabState,accountId:a.ConnectionContext.AccountId,userActions:o})),p("div",{children:x.Children.toArray(Array.from(c))})))})),["children",x.Children.toArray(Array.from(r))])])))]);return p("div",{children:x.Children.toArray(Array.from(l))})}function ns(){return(ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Eb=["context","children"];function Tb(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)i.indexOf(o=l[a])>=0||(s[o]=r[o]);return s}(e,Eb);return To(t,n)}function Db(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Tb,ns({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},a=0,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(o[s[a].name]=s[a].value,o[qd(s[a].name)]=s[a].value);for(a=l.length;a--;){var c=t(l[a],null),d=l[a].slot;d?o[d]=p(Wd,{name:d},c):i[a]=c}var u=r?p(Wd,null,i):i;return p(r||n.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Eo:dn)(this._vdom,this._root)}function qd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Ib(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[qd(e)]=n,this._vdom=To(this._vdom,r),dn(this._vdom,this._root)}}function Rb(){dn(this._vdom=null,this._root)}function Wd(e,t){var n=this;return p("slot",ns({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Fb(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Db,i.prototype.attributeChangedCallback=Ib,i.prototype.disconnectedCallback=Rb,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(a){this._vdom?this.attributeChangedCallback(o,null,a):(this._props||(this._props={}),this._props[o]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,a)}})}),customElements.define(t,i)}function Mb(e,t){Fb(e,t)}function jb(e){let t;const n=Gh(e.accessToken),r=new s0(e.accountId,e.partnerId,e.backendUrl,e.accessToken),i=[p("style",{children:[qr]}),p("div",_(P((t=me(T(()=>{let o,a;switch(n!=null?we(n.Roles,Ie())?o=1:(o=0,a=n):o=1,o){case 0:{const s=qg(r.BackendUrl,r.PartnerId,r.AccountId,r.AccessToken),l=_0(r.BackendUrl,r.PartnerId,r.AccountId,r.AccessToken);let c;const d=l0(a,r);c=Aa(()=>xa(()=>d,(f,h)=>c0(s,f,h),(f,h)=>{}),void 0,void 0);const u=me(T(()=>B(Wc(a)||Gc(a)?B(S(new Ne(0,[])),T(()=>S(new Ne(1,[])))):hn(),T(()=>B(qh(a)?S(new Ne(2,[])):hn(),T(()=>Wh(a)?S(new Ne(3,[])):hn())))))),m=nw(c[1],s);return S(p(Sb,{tabs:u,state:c[0],userActions:m,scimConfigurationService:l}))}default:return S(p("div",{children:"You do not have the appropriate permissions to view or perform an import."}))}})),["children",x.Children.toArray(Array.from(t))]))))];return p(J,{},...i)}Mb(e=>p(jb,e),"superhero-import-app")})();