@flarehr/superhero-import-app 0.12.8 → 0.13.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/superhero-import-app.js +15 -15
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
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-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,St,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 ye(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)&&St.push(e)&&!Ln.__r++||ni!==O.debounceRendering)&&((ni=O.debounceRendering)||ri)(Ln)}function Ln(){var e,t,n,r,o,i,s,a;for(St.sort(Rr);e=St.shift();)e.__d&&(t=St.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)),St.length>t&&St.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(ye,{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,S,T,te,Y,ue,q,Pe,j=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 j=="function")try{if(y=t.props,S=(f=j.contextType)&&r[f.__c],T=f?S?S.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:("prototype"in j&&j.prototype.render?t.__c=c=new j(y,T):(t.__c=c=new qe(y,T),c.constructor=j,c.render=Ll),S&&S.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),j.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ct({},c.__s)),ct(c.__s,j.getDerivedStateFromProps(y,c.__s))),p=c.props,g=c.state,c.__v=t,m)j.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(j.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(Be){Be&&(Be.__=t)}),te=0;te<c._sb.length;te++)c.__h.push(c._sb[te]);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,Y=O.__r,ue=0,"prototype"in j&&j.prototype.render){for(c.state=c.__s,c.__d=!1,Y&&Y(t),f=c.render(c.props,c.state,c.context),q=0;q<c._sb.length;q++)c.__h.push(c._sb[q]);c._sb=[]}else do c.__d=!1,Y&&Y(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++ue<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(Pe=f!=null&&f.type===ye&&f.key==null?f.props.children:f)?Pe:[Pe],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(Be){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(Be,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,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="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==!!S&&(S?p.localName===S:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),i=null,a=!1}if(S===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,S==="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]||S==="progress"&&!g||S==="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(ye,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=ye,St=[],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,$,Ur,mi,Ht=0,gi=[],Gn=[],J=O,wi=J.__b,_i=J.__r,yi=J.diffed,bi=J.__c,Ai=J.unmount,vi=J.__;function kt(e,t){J.__h&&J.__h($,e,Ht||t),Ht=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Gn}),n.__[e]}function Ut(e){return Ht=1,yn(Ci,e)}function yn(e,t,n){var r=kt(ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ci(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=$,!$.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))};$.u=!0;var i=$.shouldComponentUpdate,s=$.componentWillUpdate;$.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)},$.shouldComponentUpdate=o}return r.__N||r.__}function bt(e,t){var n=kt(ft++,3);!J.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,$.__H.__h.push(n))}function Vt(e,t){var n=kt(ft++,4);!J.__s&&Wr(n.__H,t)&&(n.__=e,n.i=t,$.__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 ge(e,t){return Ht=8,Ze(function(){return e},t)}function Vr(e){var t=$.context[e.__c],n=kt(ft++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub($)),t.props.value):e.__}function Lr(e,t){J.useDebugValue&&J.useDebugValue(t?t(e):e)}function zl(e){var t=kt(ft++,10),n=Ut();return t.__=e,$.componentDidCatch||($.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=$.__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=[],J.__e(t,e.__v)}}J.__b=function(e){$=null,wi&&wi(e)},J.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),vi&&vi(e,t)},J.__r=function(e){_i&&_i(e),ft=0;var t=($=e.__c).__H;t&&(Ur===$?(t.__h=[],$.__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.diffed=function(e){yi&&yi(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(gi.push(t)!==1&&mi===J.requestAnimationFrame||((mi=J.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=$=null},J.__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=[],J.__e(r,n.__v)}}),bi&&bi(e,t)},J.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&&J.__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=$,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),$=t}function Gr(e){var t=$;e.__c=e.__(),$=t}function Wr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ci(e,t){return typeof t=="function"?t(e):t}function Si(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=Si({},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=Si({},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(ye,null,e.fallback);return o&&(o.__u&=-33),[d(ye,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:ge,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===ye}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=ye;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:ge,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:ye,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:ye,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:ge,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 Z(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 W(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 st(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,Ee)}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]||!Ee(e[n[o]],t[r[o]]))return!1;return!0}function Ee(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,He)}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=He(e[s],t[s]),i!==0)return i}return 0}function He(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 L(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Xn.set(t,e),t}function Ue(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+=se(r);else if(t===100){n+="; ...";break}else n+="; "+se(r);t++}return n+"]"}function se(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+" = "+se(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=
|
|
4
|
-
`)+" }"}function Sc(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(!Ee(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=He(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Q{toJSON(){return xc(this)}toString(){return Cc(this)}GetHashCode(){return Sc(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 be{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 fe(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 be(e,t,n,r)}function Ve(e,t,n,r){return new be(e,t,n,void 0,r)}function uo(...e){return new be("",void 0,void 0,void 0,()=>e)}function xn(e,t,n,r){const o=new be(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 be("Microsoft.FSharp.Core.FSharpOption`1",[e])}function at(e){return new be("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Fc(e){return new be("[]",[e])}const Oc=new be("System.Object"),ae=new be("System.String"),Nc=new be("System.Boolean"),le=new be("System.Int32");function fo(e){if(Array.isArray(e))return e[0];if(e instanceof be){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 fe(e){const t=ir(e);return t!=null?fe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>fe(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 be(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 be?e.cases!=null:e instanceof ee}function zc(e){return e instanceof be?e.fields!=null:e instanceof Q}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 De(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?Cn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=De(t,r,"d"),r+=o,o){case 1:i+=ms(s);break;case 2:i+=W(ms(s),2);break;case 3:i+=Zc[_s(s)];break;case 4:i+=Jc[_s(s)];break}break;case"f":if(o=De(t,r,"f"),r+=o,o<=3){const w=10**(3-o);i+=W(Math.floor(cr(s)/w),o)}else o<=7&&(i+=(""+cr(s)).padEnd(o,"0"));break;case"F":if(o=De(t,r,"F"),r+=o,o<=3){const w=10**(3-o),y=Math.floor(cr(s)/w);y!=0&&(i+=W(y,o))}else if(o<=7){const w=cr(s);w!=0&&(i+=W(w,3))}break;case"g":o=De(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=De(t,r,"h"),r+=o,o){case 1:i+=lr(s)%12;break;case 2:i+=W(lr(s)%12,2);break}break;case"H":switch(o=De(t,r,"H"),r+=o,o){case 1:i+=lr(s);break;case 2:i+=W(lr(s),2);break}break;case"K":switch(o=De(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=De(t,r,"m"),r+=o,o){case 1:i+=gs(s);break;case 2:i+=W(gs(s),2);break}break;case"M":switch(o=De(t,r,"M"),r+=o,o){case 1:i+=ur(s);break;case 2:i+=W(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=De(t,r,"s"),r+=o,o){case 1:i+=ws(s);break;case 2:i+=W(ws(s),2);break}break;case"t":switch(o=De(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=De(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=W(s.getFullYear()%100,2);break;case 3:i+=W(s.getFullYear(),3);break;case 4:i+=W(s.getFullYear(),4);break;case 5:i+=W(s.getFullYear(),5);break}break;case"z":o=De(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}${W(f,2)}`;break;default:i+=`${l}${W(f,2)}:${W(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?"-":"+")+W(n,2)+":"+W(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 W(e.getFullYear(),4)+"-"+W(e.getMonth()+1,2)+"-"+W(e.getDate(),2)+"T"+W(e.getHours(),2)+":"+W(e.getMinutes(),2)+":"+W(e.getSeconds(),2)+"."+W(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 Cn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ou(){return Cn(-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 Cn(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:Cn(e.getTime(),1)}function lu(e){return e.kind===2?e:Cn(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 Sn=/(^|[^%])%([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 Te(e){return{input:e,cont:mu(e)}}function As(e,t){return typeof t=="string"?e(t):t.cont(e)}function Le(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=se(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=>{Sn.lastIndex=0;const n=[],r=[];let o=0,i=Sn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Sn.lastIndex,Sn.lastIndex-=1,i=Sn.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 S=g.length%3,T=Math.floor(g.length/3);let te=S>0?g.substr(0,S)+(T>0?",":""):"";for(let Y=0;Y<T;Y++)te+=g.substr(S+Y*3,3)+(Y<T-1?",":"");g=te}return _.length>0?g+"."+_:g}),l=f+l}}else l instanceof Date?l=ps(l,u||s):l=se(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 Re(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:Ee(this.value,t instanceof Zt?t.value:t)}CompareTo(t){return t==null?1:He(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 Me(e){return e==null||e instanceof Zt?new Zt(e):e}function Cs(e,t){return e!=null?b(e):t}function bu(e,t){return t!=null?Me(e(b(t))):void 0}function Au(e,t,n){return t!=null&&n!=null?e(b(t),b(n)):void 0}const Ss="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(de(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 Cu(e,t){return t.find(e)}function Su(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(de(o,t));if(i!=null){const s=b(i);r.push(s)}}return Ee(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 de(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 Ae extends Q{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Re("; ",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(Ee(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=He(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 ce(){return new Ae(At(),void 0)}function kn(e,t){return new Ae(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(Ss+"\\nParameter name: list")}function ze(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ss+"\\nParameter name: list")}function pe(){return ce()}function Ge(e,t){return kn(e,t)}function z(e){return kn(e,ce())}function P(e){return In(e)}function Dn(e){return Ds(e)}function k(e){return dr(e)}function N(e){return ze(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=ze(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=ze(o);return r}function _o(e){return Ye((t,n)=>kn(n,t),ce(),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 K(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=kn(de(r,e),n);return n}function x(e){return K(e,ce())}function Tu(e){let t,n;if(Je(e))return x(e);if(e instanceof Ae)return e;{const r=ce();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 Ae(u,void 0),t.tail=n,n)}}finally{Z(i)}const s=o,a=ce();return s.tail=a,ze(r)}}function Ru(e){const t=ce();let n=t;const r=s=>{n=Ye((a,u)=>{const l=new Ae(u,void 0);return a.tail=l,l},n,s)};if(Je(e))e.forEach(r);else if(e instanceof Ae)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{Z(s)}}const o=n,i=ce();return o.tail=i,ze(t)}function Rn(e,t){return Ye((n,r)=>kn(r,n),t,_o(e))}function xt(e,t){const n=ce(),r=Ye((i,s)=>{const a=new Ae(e(s),void 0);return i.tail=a,a},n,t),o=ce();return r.tail=o,ze(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=ze(o);continue e}else return i}}})(t)}function Fu(e,t){return Mu(n=>e(n)?Me(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=ze(s);continue e}})(0,t)}function Nu(e,t){const n=ce(),r=Ye((i,s)=>{if(e(s)){const a=new Ae(s,void 0);return i.tail=a,a}else return i},n,t),o=ce();return r.tail=o,ze(n)}function Pu(e,t){const n=ce(),r=ce(),o=n,i=Ye((u,l)=>{let f,c;const m=u[0],p=u[1];return e(l)?[(f=new Ae(l,void 0),m.tail=f,f),p]:[m,(c=new Ae(l,void 0),p.tail=c,c)]},[o,r],t),s=ce();i[0].tail=s;const a=ce();return i[1].tail=a,[ze(o),ze(r)]}function Bu(e,t){const n=ce(),r=Ye((i,s)=>{const a=e(s);if(a==null)return i;{const u=new Ae(b(a),void 0);return i.tail=u,u}},n,t),o=ce();return r.tail=o,ze(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 ee{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 ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Dt extends ee{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+se(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Z(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{Z(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{Z(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=Me(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{Z(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{Z(t)}finally{}})}function js(e,t,n){let r=!1,o,i=Me(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 Ae?Jt(e):Array.from(e)}function et(e){return Je(e)?x(e):e instanceof Ae?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 H(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{Z(o)}}finally{Z(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{Z(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{Z(r)}}function Us(e,t){Hs((n,r)=>{e(r)},void 0,t)}function tt(e,t){return bf(()=>Tt(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Me(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Z(n)})}function xf(e){return M(()=>xu(yf(e)))}function Cf(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 Z(n),r}})}function Sf(e,t){return Af(()=>Tt(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return Me(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Bs+"\\nParameter name: source")}else return},n=>{Z(n)})}function Fn(e,t){return M(()=>$s(tt(e,t)))}class Vs{constructor(t,n){this.k=t,this.v=n}}function hr(e,t){return new Vs(e,t)}function ve(e){return e.k}function Fe(e){return e.v}class ie 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 ie(e,t,n,r,o)}function xe(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 ie){const i=o;e=Ls(n+1,xe(i)),t=Ce(i);continue e}else return n+1|0}else return n|0}}function Ef(e){return Ls(0,e)}function nt(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=b(a);s=c instanceof ie?(o=c,Rt(o)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof ie?(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 ie?(o=w,Rt(o)):1}else m=0;let g;const _=r;if(_!=null){const w=b(_);g=w instanceof ie?(i=w,Rt(i)):1}else g=0;if(g>m+2){const w=b(r);if(w instanceof ie){const y=w;if(s=xe(y),(s!=null?(a=b(s),a instanceof ie?(u=a,Rt(u)):1):0)>m+1){const S=b(xe(y));if(S instanceof ie){const T=S;return nt(nt(e,t,n,xe(T)),ve(T),Fe(T),nt(Ce(T),ve(y),Fe(y),Ce(y)))}else throw new Error("internal error: Map.rebalance")}else return nt(nt(e,t,n,xe(y)),ve(y),Fe(y),Ce(y))}else throw new Error("internal error: Map.rebalance")}else if(m>g+2){const w=b(e);if(w instanceof ie){const y=w;if(l=Ce(y),(l!=null?(f=b(l),f instanceof ie?(c=f,Rt(c)):1):0)>g+1){const S=b(Ce(y));if(S instanceof ie){const T=S;return nt(nt(xe(y),ve(y),Fe(y),xe(T)),ve(T),Fe(T),nt(Ce(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return nt(xe(y),ve(y),Fe(y),nt(Ce(y),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return nt(e,t,n,r)}function en(e,t,n,r){if(r!=null){const o=b(r),i=e.Compare(t,ve(o))|0;if(o instanceof ie){const s=o;return i<0?zs(en(e,t,n,xe(s)),ve(s),Fe(s),Ce(s)):i===0?mr(t,n,xe(s),Ce(s),Rt(s)):zs(xe(s),ve(s),Fe(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,ve(s))|0;if(a===0)return Me(Fe(s));if(s instanceof ie){const u=s;e=r,t=o,n=a<0?xe(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,ve(s))|0;if(s instanceof ie){const u=s;if(a<0){e=r,t=o,n=xe(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 ie){const i=o;Ws(n,xe(i)),n(ve(i),Fe(i)),e=n,t=Ce(i);continue e}else n(ve(o),Fe(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=de(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 Ae)return Rf(e,t);{const n=ne(t);try{return Mf(e,void 0,n)}finally{Z(n)}}}class Of extends Q{constructor(t,n){super(),this.stack=t,this.started=n}}function qs(e){e:for(;;){const t=e;if(P(t))return pe();{const n=N(t),r=k(t);if(r!=null){const o=b(r);if(o instanceof ie){const i=o;e=K([xe(i),hr(ve(i),Fe(i)),Ce(i)],n);continue e}else return t}else{e=n;continue e}}}}function Zs(e){return new Of(qs(z(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 ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ve(n),Fe(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 ie)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 Ee(u[0],l[0])&&Ee(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{Z(i)}}finally{Z(o)}}else return!1}toString(){return"map ["+Re("; ",tt(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:He(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])&&Ee(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 tt(n=>[n[0],n[1]],this)}get(t){return Xs(this,t)}has(t){return Ys(this,t)}keys(){return tt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return tt(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{Z(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 Oe(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 Ne(e,t,n,r){return new B(e,t,n,r)}function G(e){return e.left}function U(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=G(i),t=na(U(i),r+1);continue e}else return r+1|0}else return r|0}}function Wf(e){return na(e,0)}function rt(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?Oe(t):Ne(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=G(w),(i!=null?(s=b(i),s instanceof B?(a=s,tn(a)):1):0)>c+1){const y=b(G(w));if(y instanceof B){const S=y;return rt(rt(e,t,G(S)),F(S),rt(U(S),F(w),U(w)))}else throw new Error("internal error: Set.rebalance")}else return rt(rt(e,t,G(w)),F(w),U(w))}else throw new Error("internal error: Set.rebalance")}else if(c>p+2){const _=b(e);if(_ instanceof B){const w=_;if(u=U(w),(u!=null?(l=b(u),l instanceof B?(f=l,tn(f)):1):0)>p+1){const y=b(U(w));if(y instanceof B){const S=y;return rt(rt(G(w),F(w),G(S)),F(S),rt(U(S),t,n))}else throw new Error("internal error: Set.rebalance")}else return rt(G(w),F(w),rt(U(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return rt(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,G(i)),F(i),U(i)):o===0?n:ra(G(i),F(i),nn(e,t,U(i)))}else{const i=e.Compare(t,F(r))|0;return i<0?Ne(t,void 0,n,2):i===0?n:Ne(t,n,void 0,2)}}else return Oe(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=G(u);continue e}else{if(a===0)return!0;e=r,t=o,n=U(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,G(i)),n(F(i)),e=n,t=U(i);continue e}else n(F(o))}break}}class Qf extends Q{constructor(t,n){super(),this.stack=t,this.started=n}}function sa(e){e:for(;;){const t=e;if(P(t))return pe();{const n=k(t),r=N(t);if(n!=null){const o=b(n);if(o instanceof B){const i=o;e=K([G(i),Oe(F(i)),U(i)],r);continue e}else return t}else{e=r;continue e}}}}function aa(e){return new Qf(sa(z(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(G(u)==null)if(a instanceof B){const l=a;if(G(l)==null){const f=r.Compare(F(u),F(l))|0;if(f!==0)return f|0;e=r,t=Ge(U(u),N(o)),n=Ge(U(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=K([G(_),Ne(F(_),void 0,U(_),0)],c),n=i;continue e}else{e=r,t=K([void 0,Oe(F(m))],c),n=i;continue e}case 1:if(g instanceof B){const _=g;e=r,t=o,n=K([G(_),Ne(F(_),void 0,U(_),0)],p);continue e}else{e=r,t=o,n=K([void 0,Oe(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=Ge(U(u),N(o)),n=Ge(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=K([G(g),Ne(F(g),void 0,U(g),0)],f),n=i;continue e}else{e=r,t=K([void 0,Oe(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=K([G(g),Ne(F(g),void 0,U(g),0)],m);continue e}else{e=r,t=o,n=K([void 0,Oe(F(p))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof B){const u=a;if(G(u)==null){const l=r.Compare(F(s),F(u))|0;if(l!==0)return l|0;e=r,t=Ge(void 0,N(o)),n=Ge(U(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=K([G(g),Ne(F(g),void 0,U(g),0)],f),n=i;continue e}else{e=r,t=K([void 0,Oe(F(c))],f),n=i;continue e}case 1:if(p instanceof B){const g=p;e=r,t=o,n=K([G(g),Ne(F(g),void 0,U(g),0)],m);continue e}else{e=r,t=o,n=K([void 0,Oe(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=K([G(c),Ne(F(c),void 0,U(c),0)],a),n=i;continue e}else{e=r,t=K([void 0,Oe(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=K([G(c),Ne(F(c),void 0,U(c),0)],l);continue e}else{e=r,t=o,n=K([void 0,Oe(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=K([G(c),Ne(F(c),void 0,U(c),0)],a),n=i;continue e}else{e=r,t=K([void 0,Oe(F(u))],a),n=i;continue e}case 1:if(f instanceof B){const c=f;e=r,t=o,n=K([G(c),Ne(F(c),void 0,U(c),0)],l);continue e}else{e=r,t=o,n=K([void 0,Oe(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,z(t),z(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 Ae)return td(e,t);{const n=ne(t);try{return Yf(e,void 0,n)}finally{Z(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),ot(r),ot(n))===0)}toString(){return"set ["+Re("; ",tt(n=>se(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return ua(rn(n),ot(n),ot(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,ot(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Xf(ot(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Co(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Co(this)|0}GetEnumerator(){return ca(ot(this))}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(ot(this))}get size(){return Co(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 tt(n=>n,this)}values(){return tt(n=>n,this)}entries(){return tt(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 ot(e){return e.tree}function nd(e){return _r(e,void 0)}function rd(e,t){return _r(rn(e),nn(rn(e),t,ot(e)))}function Co(e){return Wf(ot(e))}function da(e,t){return oa(rn(e),t,ot(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{Z(n)}return Math.abs(t)|0}function So(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 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,St,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)&&St.push(e)&&!Ln.__r++||ni!==O.debounceRendering)&&((ni=O.debounceRendering)||ri)(Ln)}function Ln(){var e,t,n,r,o,i,s,a;for(St.sort(Rr);e=St.shift();)e.__d&&(t=St.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)),St.length>t&&St.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,S,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,S=(f=te.contextType)&&r[f.__c],T=f?S?S.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),S&&S.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,S=t.type;if(S==="svg"?o="http://www.w3.org/2000/svg":S==="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==!!S&&(S?p.localName===S:p.nodeType===3)){e=p,i[l]=null;break}}if(e==null){if(S===null)return document.createTextNode(y);e=document.createElementNS(o,S,y.is&&y),i=null,a=!1}if(S===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,S==="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]||S==="progress"&&!g||S==="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,St=[],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(Ci,e)}function yn(e,t,n){var r=kt(ft++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ci(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 Ci(e,t){return typeof t=="function"?t(e):t}function Si(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=Si({},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=Si({},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 Cc(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+ae(n)).join(`
|
|
4
|
+
`)+" }"}function Sc(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 Cc(this)}GetHashCode(){return Sc(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?Cn(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 Cn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function ou(){return Cn(-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 Cn(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:Cn(e.getTime(),1)}function lu(e){return e.kind===2?e:Cn(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 Sn=/(^|[^%])%([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=>{Sn.lastIndex=0;const n=[],r=[];let o=0,i=Sn.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Sn.lastIndex,Sn.lastIndex-=1,i=Sn.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 S=g.length%3,T=Math.floor(g.length/3);let ee=S>0?g.substr(0,S)+(T>0?",":""):"";for(let Q=0;Q<T;Q++)ee+=g.substr(S+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 Cs(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 Ss="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 Cu(e,t){return t.find(e)}function Su(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(Ss+"\\nParameter name: list")}function Le(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ss+"\\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 Cf(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 Sf(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 Ce(e){return e.left}function Se(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,Ce(i)),t=Se(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=Ce(y),(s!=null?(a=b(s),a instanceof se?(u=a,Rt(u)):1):0)>m+1){const S=b(Ce(y));if(S instanceof se){const T=S;return tt(tt(e,t,n,Ce(T)),xe(T),Oe(T),tt(Se(T),xe(y),Oe(y),Se(y)))}else throw new Error("internal error: Map.rebalance")}else return tt(tt(e,t,n,Ce(y)),xe(y),Oe(y),Se(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=Se(y),(l!=null?(f=b(l),f instanceof se?(c=f,Rt(c)):1):0)>g+1){const S=b(Se(y));if(S instanceof se){const T=S;return tt(tt(Ce(y),xe(y),Oe(y),Ce(T)),xe(T),Oe(T),tt(Se(T),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return tt(Ce(y),xe(y),Oe(y),tt(Se(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,Ce(s)),xe(s),Oe(s),Se(s)):i===0?mr(t,n,Ce(s),Se(s),Rt(s)):zs(Ce(s),xe(s),Oe(s),en(e,t,n,Se(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?Ce(u):Se(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=Ce(u);continue e}else{if(a===0)return!0;e=r,t=o,n=Se(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,Ce(i)),n(xe(i),Oe(i)),e=n,t=Se(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([Ce(i),hr(xe(i),Oe(i)),Se(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 S=y;return nt(nt(e,t,L(S)),F(S),nt(H(S),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 S=y;return nt(nt(L(w),F(w),L(S)),F(S),nt(H(S),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 Co(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Co(this)|0}GetEnumerator(){return ca(rt(this))}[Symbol.iterator](){return Jn(ne(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ca(rt(this))}get size(){return Co(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 Co(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 So(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?`
|
|
5
5
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
6
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
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]+`.
|
|
8
8
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
9
9
|
|
|
10
|
-
`+
|
|
10
|
+
`+Me(`
|
|
11
11
|
|
|
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+".["+
|
|
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 Ca(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 Cd(e,t){let n;const r=e;return n=o=>i=>Aa(0,r,o,i),o=>i=>Ca(ao(s=>{let a;const u=t;return a=l=>f=>Aa(1,u,l,f),l=>f=>Ca((c,m,p)=>vd([s,c]),V(a),l,f)}),V(n),o,i)}function Sd(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 Sa(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=Cu(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()]):Sa(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.
|
|
13
13
|
|
|
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
|
|
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:(S,T)=>S===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:(S,T)=>S===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:(S,T)=>S===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:(S,T)=>S===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:(S,T)=>S===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:(S,T)=>S===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.
|
|
15
15
|
Thoth.Json.Net only support the following enum types:
|
|
16
16
|
- sbyte
|
|
17
17
|
- byte
|
|
@@ -20,8 +20,8 @@ Thoth.Json.Net only support the following enum types:
|
|
|
20
20
|
- int
|
|
21
21
|
- uint32
|
|
22
22
|
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=>it(e,t,!1,c),Vc(r));return c=>m=>Array.isArray(m)?wt(p=>qc(Jt(p)),Sa(0,f,c,m)):new h(1,[[c,new E(0,["an array",m])]])}else switch(fe(jc(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=it(e,t,!0,de(0,ht(r))),c=>m=>yd(L(o),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=it(e,t,!1,de(0,ht(r))),c=>m=>va(L(i),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=it(e,t,!1,de(0,ht(r))),c=>m=>bd(L(s),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=it(e,t,!1,de(0,ht(r))),m=it(e,t,!1,de(1,ht(r)));let p;const g=x([_=>w=>Id(L(c),L(m),_,w),(a=Cd(L(c),L(m)),_=>w=>va(L(a),_,w))]);return p=_=>w=>Ad(g,_,w),_=>w=>xd(Sd,L(p),_,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=it(e,t,!1,de(0,ht(r)));return m=>p=>{const g=xa(L(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=Cs(t,new Dt(0,[]));return it(Dd(),r,!1,e)}class Eo extends ee{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 Q{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function Ia(e){return Ts(Rd,e.Roles,{Equals:Ee,GetHashCode:os})}function Da(e){return Ts(Md,e.Roles,{Equals:Ee,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=de(1,n),o=atob(r);t=on(L(sn(uo(["Name",ae],["Roles",Fc(ae)]),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 ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function ko(){return xn("Import.Domain.AdminApi.Read.ImportStageDto",[],Nd,()=>[[],[]])}class Pd extends Q{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bd(){return Ve("Import.Domain.AdminApi.Read.FailedRowInfoDto",[],Pd,()=>[["RowId",le],["Reason",ae]])}class jd extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function $d(){return xn("Import.Domain.AdminApi.Read.BenefitsRequestTypeDto",[],jd,()=>[[],[]])}class Hd extends Q{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function Ud(){return Ve("Import.Domain.AdminApi.Read.BenefitsRequestInfoDto",[],Hd,()=>[["User",ae],["ProfileCount",le],["RequestType",$d()],["RequestedAt",mt("System.DateTime")]])}class Vd extends Q{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 Ve("Import.Domain.AdminApi.Read.RunningStageDto",[],Vd,()=>[["Stage",ko()],["InputRowCount",le],["StartTime",mt("System.DateTime")],["SucceededRowCount",Gt(le)],["FailedRowCount",Gt(le)],["RemainingRowCount",Gt(le)]])}class zd extends Q{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 Ve("Import.Domain.AdminApi.Read.CompletedStageDto",[],zd,()=>[["Stage",ko()],["InputRowCount",le],["SucceededRowCount",le],["FailedRowCount",le],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Gd extends Q{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 Ve("Import.Domain.AdminApi.Read.ActiveImportDto",[],Gd,()=>[["ImportId",le],["User",ae],["Filename",ae],["NumberOfRecords",le],["CurrentStage",Gt(Ld())],["CompletedStages",at(Ta())],["StartTime",mt("System.DateTime")]])}class Wd extends Q{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 Ve("Import.Domain.AdminApi.Read.PastImportDto",[],Wd,()=>[["ImportId",le],["User",ae],["Filename",ae],["NumberOfRecords",le],["CompletedStages",at(Ta())],["BenefitsRequests",at(Ud())],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class Fa extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Active","Complete"]}}function Qd(){return xn("Import.Domain.AdminApi.Read.ImportStatusDto",[],Fa,()=>[[["Item",Ra()]],[["Item",Ma()]]])}class qd extends Q{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zd(){return Ve("Import.Domain.AdminApi.Read.AccountImportsDto",[],qd,()=>[["ActiveImport",Gt(Ra())],["ImportHistory",at(Ma())]])}class Jd extends Q{constructor(t,n){super(),this.Column=t,this.Message=n}}function Kd(){return Ve("Import.Domain.AdminApi.Read.FieldError",[],Jd,()=>[["Column",ae],["Message",ae]])}class Xd extends Q{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Yd(){return Ve("Import.Domain.AdminApi.Read.RowValidationError",[],Xd,()=>[["RowId",le],["FieldErrors",at(Kd())]])}class ep extends ee{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.Domain.AdminApi.Read.ApiError",[],ep,()=>[[],[],[],[],[],[],[["Item",ae]],[],[],[],[["Item",at(Yd())]],[],[],[],[],[["Item",uo(["Message",ae])]],[["Item",uo(["Message",ae])]]])}class np extends Q{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 Ve("Import.Domain.AdminApi.Read.CompletedStageDetailsDto",[],np,()=>[["Stage",ko()],["FailedRows",at(Bd())],["TotalRowCount",le],["SucceededRowCount",le],["FailedRowCount",le],["StartTime",mt("System.DateTime")],["StopTime",mt("System.DateTime")]])}class op extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MaxLength","Pattern","AllowedValues"]}}function ip(){return xn("Import.Domain.AdminApi.Read.ValidationRule",[],op,()=>[[["Item",le]],[["Item",ae]],[["Item",at(ae)]]])}class sp extends Q{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 Ve("Import.Domain.AdminApi.Read.ColumnDefinitionDto",[],sp,()=>[["DisplayName",ae],["PropName",ae],["Description",Gt(ae)],["Required",Nc],["ValidationRules",at(ip())]])}class lp extends Q{constructor(t){super(),this.ColumnsInfo=t}}function cp(){return Ve("Import.Domain.AdminApi.Read.ImportSchemaDto",[],lp,()=>[["ColumnsInfo",at(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 ee{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 Ct extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Cp extends ee{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Na extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Nn extends Q{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 ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Pa extends Q{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 Cp("Authorization",e)}const Ft=new Nn("",new Ct(0,[]),pe(),!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 Sp(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,z(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(Sp(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(Su(_=>{const w=x(Ba(":",_));if(!P(w))return[k(w).toLocaleLowerCase(),Re(":",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{Z(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(Me(a.fields[0]));break}case 3:{n.send(Me(a.fields[0]));break}case 2:{n.send(Me(a.fields[0]));break}default:n.send()}})}class Ro extends ee{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 Ct(0,[]),Ot(`${e.backendUrl}/import/admin/schema`)),Pt(Mt(Le(Te("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(L(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 Ct(0,[]),Ot(`${e.baseUrl}/${t}/status`)),Pt(Mt(Le(Te("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(L(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 Ct(0,[]),Ot(`${e.baseUrl}/${t}/stages/${n}`)),Pt(Mt(Le(Te("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(L(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 Ct(0,[]),Ot(e.baseUrl)),Pt(Mt(Le(Te("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(L(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 Ct(1,[]),Ot(e.baseUrl))),Pt(Mt(Le(Te("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 202:return A.Return(new h(0,[void 0]));case 400:{let l,f;const c=on(L(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 Ct(2,[]),Ot(`${e.baseUrl}/${t}/benefits/invite-all`)),Pt(Mt(Le(Te("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 Ct(2,[]),Ot(`${e.baseUrl}/${t}/benefits/uninvite-all`)),Pt(Mt(Le(Te("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(Me(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 ke(){return pe()}function Pn(e,t,n,r){return z(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 we extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class We extends ee{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 Q{constructor(t,n){super(),this.AccountId=t,this.PartnerId=n}}class Ie extends ee{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","FileSelection","Validating","ValidationError","ImportInProgress","UnexpectedError"]}}class jn extends Q{constructor(t,n){super(),this.PastImports=t,this.ImportSummary=n}}class _e extends Q{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 ee{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 _e(e,new We(0,[]),t,new Ie(0,[]),new jn(pe(),void 0)),z(n=>{n(new re(4,[new we(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 _e(n.User,new We(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()];if(t.fields[0].fields[0].fields[0]==null)return[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(1,[]),n.ImportHistoryTabState),ke()];{const s=t.fields[0].fields[0].fields[0];let a;const u=s.ActiveImport;if(u==null)a=[new Ie(1,[]),ke()];else{const l=u;a=[new Ie(4,[new Fa(0,[l])]),z(f=>{f(new re(6,[new we(0,[l.ImportId])]))})]}return[new _e(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 we(1,[s])]))];case 6:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new We(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),(i=n.ActiveImportTabState,i.tag===4&&i.fields[0].tag===0?z(s=>{s(new re(6,[new we(0,[i.fields[0].fields[0].ImportId])]))}):ke())]:t.fields[0].fields[0].fields[0].tag===1?[new _e(n.User,new We(1,[]),n.AccountInfo,new Ie(1,[]),new jn(n.ImportHistoryTabState.PastImports,t.fields[0].fields[0].fields[0].fields[0])),z(s=>{s(new re(4,[new we(0,[void 0])]))})]:[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(4,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),z(s=>{s(new re(6,[new we(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 we(1,[s])]))];case 1:return[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(1,[]),n.ImportHistoryTabState),ke()];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 We(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[new _e(n.User,new We(0,[]),n.AccountInfo,new Ie(3,[t.fields[0].fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,z(s=>{s(new re(4,[new we(0,[void 0])]))})]:[new _e(n.User,n.CurrentTab,n.AccountInfo,new Ie(2,[]),n.ImportHistoryTabState),Pn(s=>{Bn(s)},s=>Fp(e,s),t.fields[0].fields[0],s=>new re(5,[new we(1,[s])]))];case 2:return[new _e(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,t.fields[0])),ke()];case 3:return[new _e(n.User,new We(1,[]),n.AccountInfo,n.ActiveImportTabState,new jn(n.ImportHistoryTabState.PastImports,void 0)),ke()];case 7:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new We(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,z(s=>{s(new re(4,[new we(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Op(e,s),t.fields[0].fields[0],s=>new re(7,[new we(1,[s])]))];case 8:return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new _e(n.User,new We(0,[]),n.AccountInfo,new Ie(5,[t.fields[0].fields[0].fields[0]]),n.ImportHistoryTabState),ke()]:[n,z(s=>{s(new re(4,[new we(0,[void 0])]))})]:[n,Pn(s=>{Bn(s)},s=>Np(e,s),t.fields[0].fields[0],s=>new re(8,[new we(1,[s])]))];default:return[new _e(n.User,t.fields[0],n.AccountInfo,n.ActiveImportTabState,n.ImportHistoryTabState),ke()]}}function Qp(){return pe()}function Fo(e){return Re("/",e)}function qp(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Fo(t),n])}function Ha(e,t,n){try{Z(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[pe(),sd({Compare:He}),pe()]}function Xp(e,t,n,r,o){return So(e,r)?[Ge(e,n),r,o]:[n,id(e,r),Ge([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=pe();function Va(e,t){const n=ad(xt(s=>s[0],e),{Compare:He}),r=Yp(t),o=r[1],i=r[0];if(n.Equals(o))return[i,pe(),e,pe()];{const s=Pu(a=>So(a[0],o),e);return[i,s[1],s[0],Nu(a=>!So(a[0],n),r[2])]}}function th(e,t,n,r){const o=He(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=He(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 ee{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]),Me(de(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(()=>H(Cf(t,n),M(()=>H(Sf(t,n),M(()=>Fn(r=>R(At()),rh(0,1,n.length))))))))}class Oo extends Q{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,L(r=>{const o=Ue(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=Ue(e)(s.init),u=Yn(t)(Ue(s.update)),l=Yn(n)(Ue(s.view)),f=Yn(r)(Ue(s.setState));return new Oo(a,L(u),Ue(o)(s.subscribe),L(l),L(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=Ue(e)(p),_=()=>{let w,y=La(u);for(;!m&&y!=null;){const S=b(y);if(a[0](S))Jp(n.onError,c),a[1](f),m=!0;else{const T=n.update(S,f),te=T[0],Y=n.subscribe(te);n.setState(te,g),ja(ue=>{n.onError([Le(Te("Error handling the message: %A"))(S),ue])},g,T[1]),f=te,c=(w=Va(c,Y),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([Le(Te("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(L(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);/**
|
|
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)),Sa(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=Cd(V(c),V(m)),_=>w=>va(V(a),_,w))]);return p=_=>w=>Ad(g,_,w),_=>w=>xd(Sd,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=Cs(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.Domain.AdminApi.Read.ImportStageDto",[],Nd,()=>[[],[]])}class Pd extends G{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bd(){return Ue("Import.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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.Domain.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 Ct extends Y{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Cp 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 Cp("Authorization",e)}const Ft=new Nn("",new Ct(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 Sp(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(Sp(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(Su(_=>{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 Ct(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 Ct(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 Ct(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 Ct(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 Ct(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 202: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 Ct(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 Ct(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 So(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=>So(a[0],o),e);return[i,s[1],s[0],Nu(a=>!So(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(()=>$(Cf(t,n),M(()=>$(Sf(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 S=b(y);if(a[0](S))Jp(n.onError,c),a[1](f),m=!0;else{const T=n.update(S,f),ee=T[0],Q=n.subscribe(ee);n.setState(ee,g),ja(X=>{n.onError([Ve(Re("Error handling the message: %A"))(S),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);/**
|
|
25
25
|
* @license React
|
|
26
26
|
* use-sync-external-store-shim.production.min.js
|
|
27
27
|
*
|
|
@@ -29,14 +29,14 @@ If you can't use one of these types, please pass an extra decoder.
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* 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 Ch(e,t){return t()}var Sh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ch:xh;Ga.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Sh,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=
|
|
33
|
-
`,Rn(z("Row,Reason"),xt(s=>Re(",",gt(a=>`"${a}"`,gt(a=>xs(a,'"','""'),[st(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=Re(",",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 we(0,[n])]))},(n,r)=>{e(new re(7,[new we(0,[n])]))},(n,r)=>{e(new re(8,[new we(0,[n])]))})}const Ph=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qa=se(Ph),C=no;function Bh(e){return Re(", ",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:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),d("tbody",I(x([["className","divide-y divide-gray-200 bg-white"],(a=et(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",Ue(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:se(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",C.Children.toArray(Array.from(c))])]))))},l))),["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.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,S=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(z((a=[(u=z(d("b",{children:[y]})),d("p",{children:C.Children.toArray(Array.from(u))}))],["children",C.Children.toArray(Array.from(a))])))),d("div",I(x([["className","mt-2 text-left"],(l=[d("p",{children:[w]})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.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",C.Children.toArray(Array.from(f))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]);return d("div",{children:C.Children.toArray(Array.from(S))})}class Uh extends Q{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=C.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(z((t=et(M(()=>H(R(d("p",{children:[`Import ID: ${i.ImportId}`]})),M(()=>H(R(d("p",{children:[`Creator: ${i.User}`]})),M(()=>H(R(d("p",{children:[`Filename: ${i.Filename}`]})),M(()=>H(R(d("p",{children:[`Date started: ${se(i.StartTime)}`]})),M(()=>H(R(d("p",{children:[`Date completed: ${se(i.StopTime)}`]})),M(()=>H(R(d("p",{children:[`Total rows: ${i.NumberOfRecords}`]})),M(()=>{let p,g;return H(Ia(s)?H(R(d("div",I(z((p=[d("button",I(x([["type","button"],["children",Dn(c)===0?"Send Benefits Invites":"Resend Benefits Invites"],(g="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",g]),["onClick",_=>{u(l("Send invites to Flare Benefits",f,"Send Invites",Ue(o.SendInvites)(i.ImportId)))}]])))],["children",C.Children.toArray(Array.from(p))]))))),M(()=>{let _,w;return Dn(c)>0?R(d("div",I(z((_=[d("button",I(x([["type","button"],["children","Revoke Benefits Invites"],(w="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",w]),["onClick",y=>{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",Ue(o.RevokeInvites)(i.ImportId)))}]])))],["children",C.Children.toArray(Array.from(_))]))))):Mn()})):Mn(),M(()=>{let _,w,y,S,T,te;return H((_=a[0],_==null?R(At()):(w=_.Title,y=_.Text,S=_.OnConfirm,T=_.OnCancel,te=_.ActionName,R(d(Hh,{title:w,text:y,actionName:te,onConfirm:S,onCancel:T})))),M(()=>{let Y;return H(R(d("div",I(x([["className","mt-4"],(Y=et(M(()=>{let ue;return H(R((ue=z(d("b",{children:["Completed stages"]})),d("p",{children:C.Children.toArray(Array.from(ue))}))),M(()=>Fn(q=>{let Pe;const j=Mo(q.Stage);return R(d("div",I(x([["className","mt-4"],(Pe=et(M(()=>H(R(d("p",{children:[`Stage: ${j}`]})),M(()=>H(R(d("p",{children:[`Row count: ${q.InputRowCount}`]})),M(()=>H(R(d("p",{children:[`Successful count: ${q.SucceededRowCount}`]})),M(()=>H(R(d("p",{children:[`Failed count: ${q.FailedRowCount}`]})),M(()=>H(R(d("p",{children:[`Date started: ${se(q.StartTime)}`]})),M(()=>H(R(d("p",{children:[`Date completed: ${se(q.StopTime)}`]})),M(()=>{let Be;return q.FailedRowCount>0?R(d("button",I(x([["type","button"],["children","Download Errors"],(Be="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",Be]),["onClick",Yn(o.DownloadStageFailures)(i.ImportId)(j)]])))):Mn()})))))))))))))),["children",C.Children.toArray(Array.from(Pe))])]))))},i.CompletedStages)))})),["children",C.Children.toArray(Array.from(Y))])])))),M(()=>{let ue,q,Pe;return Dn(c)>0?R(d("div",I(x([["className","mt-4"],(ue=[(q=z(d("b",{children:["Invite Log"]})),d("p",{children:C.Children.toArray(Array.from(q))})),d("div",I(x([["className","mt-4"],(Pe=et(M(()=>Fn(j=>j.RequestType.tag===1?R(d("p",{children:[`${j.User} revoked invites of ${j.ProfileCount} users at ${se(j.RequestedAt)}`]})):R(d("p",{children:[`${j.User} sent invites to ${j.ProfileCount} users at ${se(j.RequestedAt)}`]})),c))),["children",C.Children.toArray(Array.from(Pe))])])))],["children",C.Children.toArray(Array.from(ue))])])))):Mn()}))}))}))})))))))))))))),["children",C.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",C.Children.toArray(Array.from(n))])])))];return d(ye,{},...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 V=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.
|
|
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 Ch(e,t){return t()}var Sh=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Ch:xh;Ga.useSyncExternalStore=cn.useSyncExternalStore!==void 0?cn.useSyncExternalStore:Sh,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),C=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:C.Children.toArray(Array.from(s))}))],["children",C.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",C.Children.toArray(Array.from(c))])]))))},l))),["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.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,S=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:C.Children.toArray(Array.from(u))}))],["children",C.Children.toArray(Array.from(a))])))),d("div",I(x([["className","mt-2 text-left"],(l=[d("p",{children:[w]})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.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",C.Children.toArray(Array.from(f))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]);return d("div",{children:C.Children.toArray(Array.from(S))})}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=C.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",C.Children.toArray(Array.from(p))]))))):Mn(),M(()=>{let g,_,w,y,S,T;return $((g=a[0],g==null?R(At()):(_=g.Title,w=g.Text,y=g.OnConfirm,S=g.OnCancel,T=g.ActionName,R(d(Hh,{title:_,text:w,actionName:T,onConfirm:y,onCancel:S})))),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:C.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",C.Children.toArray(Array.from(oe))])]))))},i.CompletedStages)))})),["children",C.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:C.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",C.Children.toArray(Array.from(oe))])])))],["children",C.Children.toArray(Array.from(Q))])])))):Mn()}))}))}))})))))))))))))),["children",C.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",C.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
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
|
|
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 Cm(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 Sm(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
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 X(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(ye,null,n(X(X({},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:V.func,accept:V.objectOf(V.arrayOf(V.string)),multiple:V.bool,preventDropOnDocument:V.bool,noClick:V.bool,noKeyboard:V.bool,noDrag:V.bool,noDragEventsBubbling:V.bool,minSize:V.number,maxSize:V.number,maxFiles:V.number,disabled:V.bool,getFilesFromEvent:V.func,onFileDialogCancel:V.func,onFileDialogOpen:V.func,useFsAccessApi:V.bool,autoFocus:V.bool,onDragEnter:V.func,onDragLeave:V.func,onDragOver:V.func,onDrop:V.func,onDropAccepted:V.func,onDropRejected:V.func,onError:V.func,validator:V.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=X(X({},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,S=t.autoFocus,T=t.preventDropOnDocument,te=t.noClick,Y=t.noKeyboard,ue=t.noDrag,q=t.noDragEventsBubbling,Pe=t.onError,j=t.validator,Be=Ze(function(){return Sm(n)},[n]),kl=Ze(function(){return Cm(n)},[n]),zo=Ze(function(){return typeof w=="function"?w:vl},[w]),Cr=Ze(function(){return typeof _=="function"?_:vl},[_]),Se=It(null),Qe=It(null),h0=yn(Hm,Vo),Il=jo(h0,2),Go=Il[0],je=Il[1],m0=Go.isFocused,Dl=Go.isFileDialogActive,Sr=It(typeof window<"u"&&window.isSecureContext&&y&&xm()),Tl=function(){!Sr.current&&Dl&&setTimeout(function(){if(Qe.current){var D=Qe.current.files;D.length||(je({type:"closeDialog"}),Cr())}},300)};bt(function(){return window.addEventListener("focus",Tl,!1),function(){window.removeEventListener("focus",Tl,!1)}},[Qe,Dl,Cr,Sr]);var dn=It([]),Rl=function(D){Se.current&&Se.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))}},[Se,T]),bt(function(){return!r&&S&&Se.current&&Se.current.focus(),function(){}},[Se,S,r]);var $t=ge(function(v){Pe?Pe(v):console.error(v)},[Pe]),Ml=ge(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)&&!q)){var oe=D.length,me=oe>0&&ym({files:D,accept:Be,minSize:s,maxSize:i,multiple:a,maxFiles:u,validator:j}),$e=oe>0&&!me;je({isDragAccept:me,isDragReject:$e,isDragActive:!0,type:"setDraggedFiles"}),l&&l(v)}}).catch(function(D){return $t(D)})},[o,l,$t,q,Be,s,i,a,u,j]),Fl=ge(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,q]),Ol=ge(function(v){v.preventDefault(),v.persist(),Dr(v);var D=dn.current.filter(function(me){return Se.current&&Se.current.contains(me)}),oe=D.indexOf(v.target);oe!==-1&&D.splice(oe,1),dn.current=D,!(D.length>0)&&(je({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),vr(v)&&f&&f(v))},[Se,f,q]),Er=ge(function(v,D){var oe=[],me=[];v.forEach(function($e){var Un=pl($e,Be),mn=jo(Un,2),Qo=mn[0],qo=mn[1],Zo=hl($e,s,i),Tr=jo(Zo,2),Jo=Tr[0],Ko=Tr[1],Xo=j?j($e):null;if(Qo&&Jo&&!Xo)oe.push($e);else{var Yo=[qo,Ko];Xo&&(Yo=Yo.concat(Xo)),me.push({file:$e,errors:Yo.filter(function(y0){return y0})})}}),(!a&&oe.length>1||a&&u>=1&&oe.length>u)&&(oe.forEach(function($e){me.push({file:$e,errors:[_m]})}),oe.splice(0)),je({acceptedFiles:oe,fileRejections:me,type:"setFiles"}),m&&m(oe,me,D),me.length>0&&g&&g(me,D),oe.length>0&&p&&p(oe,D)},[je,a,Be,s,i,u,m,p,g,j]),kr=ge(function(v){v.preventDefault(),v.persist(),Dr(v),dn.current=[],vr(v)&&Promise.resolve(o(v)).then(function(D){Ar(v)&&!q||Er(D,v)}).catch(function(D){return $t(D)}),je({type:"reset"})},[o,Er,$t,q]),pn=ge(function(){if(Sr.current){je({type:"openDialog"}),zo();var v={multiple:a,types:kl};window.showOpenFilePicker(v).then(function(D){return o(D)}).then(function(D){Er(D,null),je({type:"closeDialog"})}).catch(function(D){Em(D)?(Cr(D),je({type:"closeDialog"})):km(D)?(Sr.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&&(je({type:"openDialog"}),zo(),Qe.current.value=null,Qe.current.click())},[je,zo,Cr,y,Er,$t,kl,a]),Nl=ge(function(v){!Se.current||!Se.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),pn())},[Se,pn]),Pl=ge(function(){je({type:"focus"})},[]),Bl=ge(function(){je({type:"blur"})},[]),jl=ge(function(){te||(vm()?setTimeout(pn,0):pn())},[te,pn]),hn=function(D){return r?null:D},Wo=function(D){return Y?null:hn(D)},Ir=function(D){return ue?null:hn(D)},Dr=function(D){q&&D.stopPropagation()},g0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,oe=D===void 0?"ref":D,me=v.role,$e=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 X(X(Ho({onKeyDown:Wo(lt($e,Nl)),onFocus:Wo(lt(Un,Pl)),onBlur:Wo(lt(mn,Bl)),onClick:hn(lt(Qo,jl)),onDragEnter:Ir(lt(qo,Ml)),onDragOver:Ir(lt(Zo,Fl)),onDragLeave:Ir(lt(Tr,Ol)),onDrop:Ir(lt(Jo,kr)),role:typeof me=="string"&&me!==""?me:"presentation"},oe,Se),!r&&!Y?{tabIndex:0}:{}),Ko)}},[Se,Nl,Pl,Bl,jl,Ml,Fl,Ol,kr,Y,ue,r]),w0=ge(function(v){v.stopPropagation()},[]),_0=Ze(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=v.refKey,oe=D===void 0?"ref":D,me=v.onChange,$e=v.onClick,Un=xr(v,Rm),mn=Ho({accept:Be,multiple:a,type:"file",style:{display:"none"},onChange:hn(lt(me,kr)),onClick:hn(lt($e,w0)),tabIndex:-1},oe,Qe);return X(X({},mn),Un)}},[Qe,n,a,kr,r]);return X(X({},Go),{},{isFocused:m0&&!r,getRootProps:g0,getInputProps:_0,rootRef:Se,inputRef:Qe,open:hn(pn)})}function Hm(e,t){switch(t.type){case"focus":return X(X({},e),{},{isFocused:!0});case"blur":return X(X({},e),{},{isFocused:!1});case"openDialog":return X(X({},Vo),{},{isFileDialogActive:!0});case"closeDialog":return X(X({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return X(X({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return X(X({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return X({},Vo);default:return e}}function vl(){}const Um="data:image/jpeg;base64,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",Vm="data:image/jpeg;base64,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";var Lm=0;function he(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=ge(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=>he("p",{children:c.path},c.path)),f=u.map(({file:c,errors:m})=>he("li",{children:[c.path," - ",c.size," bytes",he("ul",{children:m.map(p=>he("li",{children:p.message},p.code))})]},c.path));return he("div",{...o(),children:[he("input",{...i(),name:"file"}),he("img",{src:l.length?Vm:Um,className:"mx-auto mb-2"}),u.length?he("div",{className:"mb-2",children:[he("div",{className:"mb-2 font-semibold",children:"Rejected files"}),he("ul",{children:f})]}):he(ye,{}),l.length?he(ye,{children:[l,he("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"}),he("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"})]}):he(ye,{children:[he("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),he("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=C.useState(!1),r=n[1],o=C.useState(0),i=o[0]|0;let s;const a=new FormData;s=C.useState(a);const u=s[0],l=C.useState("profiles");return d("form",I(x([["key",i],(t=et(M(()=>H(R(d("label",{for:"importStages"})),M(()=>{let f;return H(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",C.Children.toArray(Array.from(f))]),["onChange",c=>{l[1](c.target.value)}]])))),M(()=>H(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,S,T,te,Y;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",C.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"],(S=[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",Ue(e.RequestStartImport)((te=go(l[0],[","],void 0,0),(()=>{for(let ue=0;ue<=te.length-1;ue++){const q=de(ue,te);u.append("importStages",q)}})(),u))]]))),d("button",I(x([["type","button"],(Y="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",Y]),["children","Cancel"],["onClick",ue=>{r(!1)}]])))],["children",C.Children.toArray(Array.from(S))])])))]),d("div",{children:C.Children.toArray(Array.from(w))}))],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(p))])])))],["children",C.Children.toArray(Array.from(m))])])))]),d("div",{children:C.Children.toArray(Array.from(c))}))):Mn()}))))})))),["children",C.Children.toArray(Array.from(t))])])))}const xl="data:image/jpeg;base64,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",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:C.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 Cl(e,t){let n;return d("p",I(x([["className","mt-6"],(n=["Download the full error report ",Jm(Re(`\r
|
|
38
|
-
`,Ru(Rn(
|
|
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,S=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 Sm(n)},[n]),kl=Ze(function(){return Cm(n)},[n]),zo=Ze(function(){return typeof w=="function"?w:vl},[w]),Cr=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,Sr=It(typeof window<"u"&&window.isSecureContext&&y&&xm()),Tl=function(){!Sr.current&&Dl&&setTimeout(function(){if(Qe.current){var D=Qe.current.files;D.length||(Be({type:"closeDialog"}),Cr())}},300)};bt(function(){return window.addEventListener("focus",Tl,!1),function(){window.removeEventListener("focus",Tl,!1)}},[Qe,Dl,Cr,Sr]);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&&S&&Ee.current&&Ee.current.focus(),function(){}},[Ee,S,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(Sr.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)?(Cr(D),Be({type:"closeDialog"})):km(D)?(Sr.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,Cr,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,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",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=C.useState(!1),r=n[1],o=C.useState(0),i=o[0]|0;let s;const a=new FormData;s=C.useState(a);const u=s[0],l=C.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",C.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,S,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",C.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"],(S=[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",C.Children.toArray(Array.from(S))])])))]),d("div",{children:C.Children.toArray(Array.from(w))}))],["children",C.Children.toArray(Array.from(_))])])))],["children",C.Children.toArray(Array.from(p))])])))],["children",C.Children.toArray(Array.from(m))])])))]),d("div",{children:C.Children.toArray(Array.from(c))}))):Mn()}))))})))),["children",C.Children.toArray(Array.from(t))])])))}const xl="data:image/jpeg;base64,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",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:C.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 Cl(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",C.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(Cl(e,t.fields[0]))))))));return d("div",{children:C.Children.toArray(Array.from(n))})}else{const n=x([d("p",{children:["The file contains more than 10 validation errors"]}),Cl(e,t.fields[0])]);return d("div",{children:C.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:C.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:C.Children.toArray(Array.from(o))})}const Ym="data:image/jpeg;base64,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";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:C.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=Cs(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:C.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",C.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.
|
|
39
39
|
Optionally include employment info.
|
|
40
40
|
The file will be validated `,r),d("b",{children:["before"]}),(o=` creating the profiles.
|
|
41
41
|
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:C.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:C.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",C.Children.toArray(Array.from(s))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.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=
|
|
42
|
+
You'll get an error report to fix the information before re-uploading.`,o)]),d("p",{children:C.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:C.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",C.Children.toArray(Array.from(s))])])))]),d("div",{children:C.Children.toArray(Array.from(i))}))],["children",C.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",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(l))])])))]);return d("div",{children:C.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",C.Children.toArray(Array.from(n))])])))],["children",C.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:C.Children.toArray(Array.from(u))})))})),["children",C.Children.toArray(Array.from(r))])])))]);return d("div",{children:C.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[Sl(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 Sl(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[Sl(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:C.Children.toArray(Array.from(u))})}}}d0(e=>d(p0,e),"superhero-import-app")})();
|