@flarehr/superhero-basic-profile 3.88.79 → 3.90.81
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-basic-profile.js +19 -19
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
(function(){"use strict";var za=document.createElement("style");za.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;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))}.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}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-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}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@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(
|
|
3
|
-
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function
|
|
4
|
-
`)+" }"}function mp(e){const t=Object.values(e).map(n=>en(n));return rr(t)}function gp(e,t){if(e===t)return!0;if(Oo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ye(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function wp(e,t){if(e===t)return 0;if(Oo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=$t(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ee{toJSON(){return pp(this)}toString(){return hp(this)}GetHashCode(){return mp(this)}Equals(t){return gp(this,t)}CompareTo(t){return wp(this,t)}}class Je{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 yp{constructor(t){this.message=t}}function bp(e){return e instanceof yp||e instanceof Error}function vp(e){return e instanceof Promise}function Bo(e){return bp(e)||vp(e)?e:new Error(String(e))}const yn=Symbol("numeric");function Ja(e){return typeof e=="number"||(e==null?void 0:e[yn])}function _p(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Zi(e,t){return typeof e=="number"?e*t:e[yn]().multiply(t)}function $o(e,t){return typeof e=="number"?e.toFixed(t):e[yn]().toFixed(t)}function jo(e,t){return typeof e=="number"?e.toPrecision(t):e[yn]().toPrecision(t)}function Ho(e,t){return typeof e=="number"?e.toExponential(t):e[yn]().toExponential(t)}function Lo(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[yn]().toHex()}var X={GetHashCode(){return rr([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[yn](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Ap=28,xp=1,On=1e6,qa=1e6,Cp=-29,Ep=29,kp=!1,zr="[big.js] ",Pn=zr+"Invalid ",Vo=Pn+"decimal places",Sp=Pn+"rounding mode",el=zr+"Division by zero",jt=void 0,Dp=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function tl(){function e(t){var n=this;if(!(n instanceof e))return t===jt?tl():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),Fp(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(Pn+"number");t=t===0&&1/t<0?"-0":String(t)}Tp(n,t)}n.constructor=e}return e.prototype=X,e.DP=Ap,e.RM=xp,e.NE=Cp,e.PE=Ep,e.strict=kp,e}function Fp(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Tp(e,t){var n,r,o;if(!Dp.test(t))throw Error(Pn+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=bn(e,vn.DP+1,vn.RM),e}function bn(e,t,n,r){var o=e.c;if(n===jt&&(n=vn.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(Sp);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==jt))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,a)=>a>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==jt||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function ir(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}X.abs=function(){var e=new this.constructor(this);return e.s=1,e},X.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=r.s,l=o.s,u=r.e,c=o.e;if(!i[0]||!s[0])return i[0]?a:s[0]?-l:0;if(a!=l)return a;if(t=a<0,u!=c)return u>c^t?1:-1;for(l=Math.max(i.length,s.length),a=0;a<l;a++)if(u=a<i.length?i[a]:0,c=a<s.length?s[a]:0,u!=c)return u>c^t?1:-1;return 0},X.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>On)throw Error(Vo);if(!i[0])throw Error(el);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,u,c,d,f,p=i.slice(),h=l=i.length,y=o.length,w=o.slice(0,l),b=w.length,_=r,I=_.c=[],R=0,B=a+(_.e=n.e-r.e)+1;for(_.s=s,s=B<0?0:B,p.unshift(0);b++<l;)w.push(0);do{for(c=0;c<10;c++){if(l!=(b=w.length))d=l>b?1:-1;else for(f=-1,d=0;++f<l;)if(i[f]!=w[f]){d=i[f]>w[f]?1:-1;break}if(d<0){for(u=b==l?i:p;b;){if(w[--b]<u[b]){for(f=b;f&&!w[--f];)w[f]=9;--w[f],w[b]+=10}w[b]-=u[b]}for(;!w[0];)w.shift()}else break}I[R++]=d?c:++c,w[0]&&d?w[b]=o[h]||0:w=[o[h]]}while((h++<y||w[0]!==jt)&&s--);return!I[0]&&R!=1&&(I.shift(),_.e--,B--),R>B&&bn(_,B,t.RM,w[0]!==jt),_},X.eq=function(e){return this.cmp(e)===0},X.gt=function(e){return this.cmp(e)>0},X.gte=function(e){return this.cmp(e)>-1},X.lt=function(e){return this.cmp(e)<0},X.lte=function(e){return this.cmp(e)<1},X.minus=X.sub=function(a){var t,n,r,o,i=this.constructor,s=new i(this),a=new i(a),l=s.s,u=a.s;if(l!=u)return a.s=-u,s.plus(a);var c=s.c.slice(),d=s.e,f=a.c,p=a.e;if(!c[0]||!f[0])return f[0]?a.s=-u:c[0]?a=new i(s):a.s=1,a;if(l=d-p){for((o=l<0)?(l=-l,r=c):(p=d,r=f),r.reverse(),u=l;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,l=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,a.s=-a.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>l;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;c[--u]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(a.s=1,c=[p=0]),a.c=c,a.e=p,a},X.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(el);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))},X.plus=X.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var a=i.e,l=i.c,u=s.e,c=s.c;if(!l[0]||!c[0])return c[0]||(l[0]?s=new o(i):s.s=i.s),s;if(l=l.slice(),t=a-u){for(t>0?(u=a,r=c):(t=-t,r=l),r.reverse();t--;)r.push(0);r.reverse()}for(l.length-c.length<0&&(r=c,c=l,l=r),t=c.length,n=0;t;l[t]%=10)n=(l[--t]=l[t]+c[t]+n)/10|0;for(n&&(l.unshift(n),++u),t=l.length;l[--t]===0;)l.pop();return s.c=l,s.e=u,s},X.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-qa||e>qa)throw Error(Pn+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r},X.prec=function(e,t){if(e!==~~e||e<1||e>On)throw Error(Pn+"precision");return bn(new this.constructor(this),e,t)},X.round=function(e,t){if(e===jt)e=0;else if(e!==~~e||e<-On||e>On)throw Error(Vo);return bn(new this.constructor(this),e+this.e+1,t)},X.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(zr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=a.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return bn(e,(r.DP-=4)+e.e+1,r.RM)},X.times=X.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=i.length,l=s.length,u=r.e,c=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=u+c,a<l&&(t=i,i=s,s=t,c=a,a=l,l=c),t=new Array(c=a+l);c--;)t[c]=0;for(u=l;u--;){for(l=0,c=a+u;c>u;)l=t[c]+s[u]*i[c-u-1]+l,t[c--]=l%10,l=l/10|0;t[c]=l}for(l?++o.e:t.shift(),u=t.length;!t[--u];)t.pop();return o.c=t,o},X.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==jt){if(e!==~~e||e<0||e>On)throw Error(Vo);for(n=bn(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return ir(n,!0,!!r)},X.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==jt){if(e!==~~e||e<0||e>On)throw Error(Vo);for(n=bn(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return ir(n,!1,!!r)},X.toJSON=X.toString=function(){var e=this,t=e.constructor;return ir(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},X.toNumber=function(){var e=Number(ir(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(zr+"Imprecise conversion");return e},X.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==jt){if(e!==~~e||e<1||e>On)throw Error(Pn+"precision");for(n=bn(new r(n),e,t);n.c.length<e;)n.c.push(0)}return ir(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},X.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(zr+"valueOf disallowed");return ir(e,e.e<=t.NE||e.e>=t.PE,!0)};var vn=tl();new vn(0),new vn(1),new vn(-1),new vn("79228162514264337593543950335"),new vn("-79228162514264337593543950335");var Qi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Qi||(Qi={}));function Ip(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function nl(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 Mp(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 Rp(e,t){if(t&Qi.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 Np(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||Rp(i,t),!Mp(n).test(s))return Ip(o,n)}return null}function Op(e,t,n,r,o){const i=Np(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=nl(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,c]=nl(n,r);if(s>=u&&s<=c)return s}}throw new Error("Input string was not in a correct format.")}function sr(e,t,n,r,o){try{return o.contents=Op(e,t,n,r),!0}catch{return!1}}function Pp(e){return e===-2147483648?e:-e}var gt=null;try{gt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function kt(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}kt.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},kt.prototype.Equals=function(e){return bt(this,e)},kt.prototype.CompareTo=function(e){return Qr(this,e)},kt.prototype.toString=function(e){return Zr(this,e)},kt.prototype.toJSON=function(){return Zr(this)},kt.prototype[yn]=function(){const e=this;return{multiply:t=>ot(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>Zr(e.unsigned?e:Jp(Kp(e),!0),16)}},kt.prototype.__isLong__,Object.defineProperty(kt.prototype,"__isLong__",{value:!0});function St(e){return(e&&e.__isLong__)===!0}var rl={},ol={};function ar(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=ol[e],r)?r:(n=ie(e,(e|0)<0?-1:0,!0),o&&(ol[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=rl[e],r)?r:(n=ie(e,e<0?-1:0,!1),o&&(rl[e]=n),n))}function Dt(e,t){if(isNaN(e))return t?An:Ft;if(t){if(e<0)return An;if(e>=al)return Hp}else{if(e<=-ll)return wt;if(e+1>=ll)return jp}return e<0?xe(Dt(-e,t)):ie(e%lr|0,e/lr|0,t)}function ie(e,t,n){return new kt(e,t,n)}var Uo=Math.pow;function il(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Ft;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return xe(il(e.substring(1),t,n));for(var o=Dt(Uo(n,8)),i=Ft,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+a),n);if(a<8){var u=Dt(Uo(n,a));i=$n(ot(i,u),Dt(l))}else i=ot(i,o),i=$n(i,Dt(l))}return i.unsigned=t,i}function _n(e,t){return typeof e=="number"?Dt(e,t):typeof e=="string"?il(e,t):ie(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var sl=1<<16,Bp=1<<24,lr=sl*sl,al=lr*lr,ll=al/2,cl=ar(Bp),Ft=ar(0),An=ar(0,!0),Gr=ar(1),$p=ar(1,!0),ul=ar(-1),jp=ie(-1,2147483647,!1),Hp=ie(-1,-1,!0),wt=ie(0,-2147483648,!1);function cr(e){return e.unsigned?e.low>>>0:e.low}function Wr(e){return e.unsigned?(e.high>>>0)*lr+(e.low>>>0):e.high*lr+(e.low>>>0)}function Zr(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Bn(e))return"0";if(yt(e))if(bt(e,wt)){var n=Dt(t),r=tn(e,n),o=ur(ot(r,n),e);return Zr(r,t)+cr(o).toString(t)}else return"-"+Zr(xe(e),t);for(var i=Dt(Uo(t,6),e.unsigned),s=e,a="";;){var l=tn(s,i),u=cr(ur(s,ot(l,i)))>>>0,c=u.toString(t);if(s=l,Bn(s))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function Bn(e){return e.high===0&&e.low===0}function yt(e){return!e.unsigned&&e.high<0}function fl(e){return(e.low&1)===1}function bt(e,t){return St(t)||(t=_n(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function dl(e,t){return Qr(e,t)<0}function Ki(e,t){return Qr(e,t)>0}function Lp(e,t){return Qr(e,t)>=0}function Qr(e,t){if(St(t)||(t=_n(t)),bt(e,t))return 0;var n=yt(e),r=yt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:yt(ur(e,t))?-1:1}function xe(e){return!e.unsigned&&bt(e,wt)?wt:$n(Up(e),Gr)}function $n(e,t){St(t)||(t=_n(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,a=t.high&65535,l=t.low>>>16,u=t.low&65535,c=0,d=0,f=0,p=0;return p+=i+u,f+=p>>>16,p&=65535,f+=o+l,d+=f>>>16,f&=65535,d+=r+a,c+=d>>>16,d&=65535,c+=n+s,c&=65535,ie(f<<16|p,c<<16|d,e.unsigned)}function ur(e,t){return St(t)||(t=_n(t)),$n(e,xe(t))}function ot(e,t){if(Bn(e))return e.unsigned?An:Ft;if(St(t)||(t=_n(t)),gt){var n=gt.mul(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}if(Bn(t))return e.unsigned?An:Ft;if(bt(e,wt))return fl(t)?wt:Ft;if(bt(t,wt))return fl(e)?wt:Ft;if(yt(e))return yt(t)?ot(xe(e),xe(t)):xe(ot(xe(e),t));if(yt(t))return xe(ot(e,xe(t)));if(dl(e,cl)&&dl(t,cl))return Dt(Wr(e)*Wr(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,a=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,d=0,f=0,p=0,h=0;return h+=s*c,p+=h>>>16,h&=65535,p+=i*c,f+=p>>>16,p&=65535,p+=s*u,f+=p>>>16,p&=65535,f+=o*c,d+=f>>>16,f&=65535,f+=i*u,d+=f>>>16,f&=65535,f+=s*l,d+=f>>>16,f&=65535,d+=r*c+o*u+i*l+s*a,d&=65535,ie(p<<16|h,d<<16|f,e.unsigned)}function tn(e,t){if(St(t)||(t=_n(t)),Bn(t))throw Error("division by zero");if(gt){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?gt.div_u:gt.div_s)(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}if(Bn(e))return e.unsigned?An:Ft;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Qp(t)),Ki(t,e))return An;if(Ki(t,Zp(e,1)))return $p;i=An}else{if(bt(e,wt)){if(bt(t,Gr)||bt(t,ul))return wt;if(bt(t,wt))return Gr;var s=Wp(e,1);return r=Gp(tn(s,t),1),bt(r,Ft)?yt(t)?Gr:ul:(o=ur(e,ot(t,r)),i=$n(r,tn(o,t)),i)}else if(bt(t,wt))return e.unsigned?An:Ft;if(yt(e))return yt(t)?tn(xe(e),xe(t)):xe(tn(xe(e),t));if(yt(t))return xe(tn(e,xe(t)));i=Ft}for(o=e;Lp(o,t);){r=Math.max(1,Math.floor(Wr(o)/Wr(t)));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:Uo(2,a-48),u=Dt(r),c=ot(u,t);yt(c)||Ki(c,o);)r-=l,u=Dt(r,e.unsigned),c=ot(u,t);Bn(u)&&(u=Gr),i=$n(i,u),o=ur(o,c)}return i}function Vp(e,t){if(St(t)||(t=_n(t)),gt){var n=(e.unsigned?gt.rem_u:gt.rem_s)(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}return ur(e,ot(tn(e,t),t))}function Up(e){return ie(~e.low,~e.high,e.unsigned)}function zp(e,t){return St(t)||(t=_n(t)),ie(e.low&t.low,e.high&t.high,e.unsigned)}function Gp(e,t){return St(t)&&(t=cr(t)),(t&=63)===0?e:t<32?ie(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ie(0,e.low<<t-32,e.unsigned)}function Wp(e,t){return St(t)&&(t=cr(t)),(t&=63)===0?e:t<32?ie(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ie(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Zp(e,t){if(St(t)&&(t=cr(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return ie(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return ie(t===32?n:n>>>t-32,0,e.unsigned)}function Qp(e){return e.unsigned?e:ie(e.low,e.high,!0)}function Kp(e,t){return t?Xp(e):Yp(e)}function Xp(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function Yp(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function Jp(e,t,n){return n?qp(e,t):e0(e,t)}function qp(e,t){return new kt(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function e0(e,t){return new kt(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const vt=$n,_t=ot,Ht=tn,t0=Vp,n0=xe,fr=zp,zo=Qr,Ce=ie,Lt=cr,r0=Wr;function pe(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return ie(r,o>>31,t)}class o0{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class V{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 te(this)}GetHashCode(){return pl(this)}Equals(t){return Xi(this,t)}}function At(e){return e.generics!=null?e.generics:[]}function pl(e){const t=Vi(e.fullname),n=At(e).map(pl);return rr([t,...n])}function Xi(e,t){return e.fullname===""?t.fullname===""&&zi(Yr(e),Yr(t),([n,r],[o,i])=>n===o&&Xi(r,i)):e.fullname===t.fullname&&zi(At(e),At(t),Xi)}function Kr(e,t,n,r){return new V(e,t,n,r)}function nn(e,t,n,r){return new V(e,t,n,void 0,r)}function i0(...e){return new V("",void 0,void 0,void 0,()=>e)}function hl(e,t,n,r){const o=new V(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new o0(o,a,i[a],s))});return o}function Yi(e){return new V("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Go(e){return new V("Microsoft.FSharp.Collections.FSharpList`1",[e])}function s0(e){return new V("[]",[e])}const a0=new V("System.Object");new V("Microsoft.FSharp.Core.Unit"),new V("System.Char");const xt=new V("System.String"),ml=new V("System.Boolean");new V("System.SByte"),new V("System.Byte"),new V("System.Int16"),new V("System.UInt16");const Re=new V("System.Int32");new V("System.UInt32"),new V("System.Int64"),new V("System.UInt64"),new V("System.Int128"),new V("System.UInt128"),new V("System.IntPtr"),new V("System.UIntPtr"),new V("System.Half"),new V("System.Single"),new V("System.Double"),new V("System.Decimal"),new V("System.Numerics.BigInteger");function dr(e){if(Array.isArray(e))return e[0];if(e instanceof V){const t=Xr(e);if(t!=null)return dr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function te(e){const t=Xr(e);return t!=null?te(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>te(n)).join(",")+"]"}function gl(e){return Xr(e)!=null}function Xr(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function wl(e){return e.generics!=null&&e.generics.length>0}function Ji(e){return e.enumCases!=null&&e.enumCases.length>0}function yl(e){return e.generics==null?e:new V(e.fullname,e.generics.map(()=>a0))}function bl(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function pr(e){if(Ji(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function l0(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 hr(e,t){const n=parseInt(t,10);return l0(e,isNaN(n)?t:n)[1]}function vl(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Yr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function _l(e){if(qi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Al(e){return e instanceof V?e.cases!=null:e instanceof j}function xl(e){return e instanceof V?e.fields!=null:e instanceof ee}function qi(e){return e.fullname.startsWith("System.Tuple")}function c0(e,t){const r=vl(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Cl(e){return e.fields==null?[]:e.fields}function u0(e,t){return e[t[0]]}function k_(e){return e}function El(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function f0(e,t){const n=Yr(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 d0(e,t){return e}function es(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Xe(n,2)+":"+Xe(r,2)}function Wo(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 p0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?es(e.getTimezoneOffset()*-6e4):"")}}function h0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+es(t)}function kl(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:Xe(o,r.length)})}function m0(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+es((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return Wo(i,"first");case"T":case"t":return Wo(i,"second");case"O":case"o":return h0(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return kl(i,t,!0)}function g0(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?Wo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Wo(e,"second"):e.toLocaleTimeString();case"O":case"o":return p0(e,n);default:throw new Error("Unrecognized Date print format")}else return kl(e,t,n)}function Zo(e,t,n){return e.offset!=null?m0(e,t):g0(e,t)}function ts(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function w0(){return ts(-621355968e5,0)}function Sl(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(":");s=parseInt(a[0],10)*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(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 y0(e,t=!1){const[n,r]=Sl(e),o=r!=null?t&&r==="Z"?1:2:0;return ts(n.getTime(),o)}function b0(e,t){try{return t.contents=y0(e),!0}catch{return!1}}function v0(e){return e.kind===1?e:ts(e.getTime(),1)}function _0(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function ns(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Dl(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 A0(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let c=u?l-3:l-2;for(let d=0;d<c;d++)a.push(arguments[d]);a.index=arguments[c++],a.input=arguments[c++],u&&(a.groups=arguments[c]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=_0(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,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),l=Dl(e,a),u=Dl.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const Jr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,x0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Fl(e,t){return _p(e,t)<0}function rn(e){return{input:e,cont:E0(e)}}function Tl(e,t){return typeof t=="string"?e(t):t.cont(e)}function jn(e){return Tl(t=>t,e)}function Il(e){return Tl(t=>{throw new Error(t)},e)}function C0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Ja(e))switch(o.toLowerCase()!=="x"&&(Fl(e,0)?(e=Zi(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!=null?r:6,e=$o(e,r);break;case"g":case"G":e=r!=null?jo(e,r):jo(e);break;case"e":case"E":e=r!=null?Ho(e,r):Ho(e);break;case"x":e=Lo(e);break;case"X":e=Lo(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Zo(e):e=Ve(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,l=a||!s?" ":"0";l==="0"?(e=qr(e,n-i.length,l,a),e=i+e):e=qr(i+e,n,l,a)}return e}function Ml(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,c,d,f,p]=l[0];let h=d;if(o>=0)h=o,o=-1;else if(h==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=C0(u,c,h,f,p),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Ml(e,a,l,s,o)}}function E0(e){return t=>{Jr.lastIndex=0;const n=[],r=[];let o=0,i=Jr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Jr.lastIndex,Jr.lastIndex-=1,i=Jr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ml(t,n,r))}}function k0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(x0,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Ja(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a!=null?a:2,u=$o(u,a);break;case"g":case"G":u=a!=null?jo(u,a):jo(u);break;case"e":case"E":u=a!=null?Ho(u,a):Ho(u);break;case"p":case"P":a=a!=null?a:2,u=$o(Zi(u,100),a)+" %";break;case"d":case"D":u=a!=null?rs(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?rs(Lo(u),a,"0"):Lo(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let c="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{Fl(u,0)&&(u=Zi(u,-1),c="-"),p=p==null?"":p.substring(1),u=$o(u,Math.max(p.length,0));let[h,y]=u.split(".");y||(y="");const w=f.replace(/,/g,"").replace(/^#+/,"").length;h=rs(h,w,"0");const b=p.replace(/#+$/,"").length;if(b>y.length?y=D0(y,b,"0"):b<y.length&&(y=y.substring(0,b)+y.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const _=h.length%3,I=Math.floor(h.length/3);let R=_>0?h.substr(0,_)+(I>0?",":""):"";for(let B=0;B<I;B++)R+=h.substr(_+B*3,3)+(B<I-1?",":"");h=R}return y.length>0?h+"."+y:h}),u=c+u}}else u instanceof Date?u=Zo(u,l||s):u=Ve(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=qr(String(u),Math.abs(i)," ",i<0)),u})}function S0(e){return typeof e!="string"||e.length===0}function on(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qr(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 rs(e,t,n){return qr(e,t,n)}function D0(e,t,n){return qr(e,t,n,!0)}function F0(e,t,n){return e.replace(new RegExp(ns(t),"g"),n)}function Rl(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(c=>c).map(ns),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const c=a.exec(e);if(c===null){const d=i?e.substring(u).trim():e.substring(u);(!o||d.length>0)&&s.push(d),l=!1}else{const d=i?e.substring(u,c.index).trim():e.substring(u,c.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function T0(e,...t){if(t.length===0)return e.trim();const n="["+ns(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Nl="Collection was empty.",I0="An index satisfying the predicate was not found in the collection.";function ue(e){return e==null||e instanceof nr?new nr(e):e}function M0(e){return e==null?[]:[ne(e)]}function Qo(e,t){return e!=null?ne(e):t}function R0(e,t){return e!=null?ne(e):t()}function N0(e,t){return t!=null?ue(e(ne(t))):void 0}function os(e,t){return typeof e=="function"?new e(t):new Array(t)}function O0(){throw new Error("Arrays had different lengths")}function Ko(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function sn(e,t,n){const r=t.length|0,o=os(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function P0(e,t){const n=os(t,1);return n[0]=e,n}function mr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=os(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function B0(e){return e.slice()}function $0(e,t){return t.find(e)}function j0(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=ne(i);r.push(s)}}return Ye(n,Me())?r:sn(o=>o,r,n)}function is(e,t,n){return n.reduce(e,t)}function H0(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function L0(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function V0(e,t,n,r){let o=r;t.length!==n.length&&O0();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function U0(e,t,n,r){return V0((o,i,s,a)=>e(i,s,a),t,n,r)}class Vt extends ee{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+on("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u;if(Ye(s.head,a.head)){o=c,i=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const c=u;if(s>18)return a|0;r=s+1,o=(a<<1)+en(l.head)+631*s,i=c;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,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u,f=$t(s.head,a.head)|0;if(f===0){o=c,i=d;continue e}else return f|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return G0(this)}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class z0{constructor(t){this.xs=t,this.it=this.xs,this.current=Me()}"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=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=Me()}Dispose(){}}function G0(e){return new z0(e)}function Ut(){return new Vt(Me(),void 0)}function eo(e,t){return new Vt(e,t)}function to(e){return e.tail==null}function Ol(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function Xo(e){if(e.tail!=null)return e.head;throw new Error(Nl+"\\nParameter name: list")}function xn(e){const t=e.tail;if(t!=null)return t;throw new Error(Nl+"\\nParameter name: list")}function W0(){throw new Error(I0)}function it(){return Ut()}function st(e,t){return eo(e,t)}function Ee(e){return eo(e,Ut())}function U(e){return to(e)}function Z0(e){return Ol(e)}function S(e){return Xo(e)}function z(e){return xn(e)}function Yo(e){const t=Ol(e)|0,n=Ko(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!to(a)){n[s]=Xo(a),o=s+1,i=xn(a);continue e}break}})(0,e),n}function Cn(e,t,n){let r=t,o=n;for(;!to(o);)r=e(r,S(o)),o=xn(o);return r}function Pl(e){return Cn((t,n)=>eo(n,t),Ut(),e)}function Bl(e,t){Cn((n,r)=>{e(r)},void 0,t)}function le(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=eo(e[r],n);return n}function x(e){return le(e,Ut())}function Q0(e){let t,n;if(Bt(e))return x(e);if(e instanceof Vt)return e;{const r=Ut();let o=r;const i=Le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Vt(l,void 0),t.tail=n,n)}}finally{re(i)}const s=o,a=Ut();return s.tail=a,xn(r)}}function $l(e){const t=Ut();let n=t;const r=s=>{n=Cn((a,l)=>{const u=new Vt(l,void 0);return a.tail=u,u},n,s)};if(Bt(e))e.forEach(r);else if(e instanceof Vt)Bl(r,e);else{const s=Le(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{re(s)}}const o=n,i=Ut();return o.tail=i,xn(t)}function Jo(e,t){return Cn((n,r)=>eo(r,n),t,Pl(e))}function qo(e,t){const n=Ut(),r=Cn((i,s)=>{const a=new Vt(e(s),void 0);return i.tail=a,a},n,t),o=Ut();return r.tail=o,xn(n)}function K0(e,t){return(r=>{e:for(;;){const o=r;if(to(o))return;{const i=e(Xo(o));if(i==null){r=xn(o);continue e}else return i}}})(t)}function X0(e,t){return K0(n=>e(n)?ue(n):void 0,t)}function Y0(e,t){const n=X0(e,t);return n==null?W0():ne(n)}function J0(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(to(s))return;if(e(Xo(s)))return i;r=i+1,o=xn(s);continue e}})(0,t)}function ss(e,t,n){return J0(r=>n.Equals(e,r),t)!=null}class g extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function an(e,t){return t.tag===0?new g(0,[e(t.fields[0])]):new g(1,[t.fields[0]])}function as(e,t){return t.tag===0?new g(0,[t.fields[0]]):new g(1,[e(t.fields[0])])}class jl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function q0(e){return new jl(0,[e])}function eh(e){return new jl(1,[e])}const Hn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ls(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function th(e,t){switch(t){case Hn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Hn.SnakeCase:return ls(e,"_");case Hn.SnakeCaseAllCaps:return ls(e,"_").toUpperCase();case Hn.KebabCase:return ls(e,"-");case Hn.None:default:return e}}function En(e,t=Hn.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=th(s,a),n[s]=l}for(let s of e){let a=Hn.None;if(s==null&&o(s),s instanceof j){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Hl(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Ll(e,t){switch(e.tag){case 2:return A0(Hl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Hl(t)}}const nh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Vl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,rh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function oh(e){function t(r){return r.replace(Vl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(nh.test(n))return T0(n,"{","}","(",")");if(Vl.test(n))return t(n);if(rh.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 ih(e,t){try{return t.contents=oh(e),!0}catch{return!1}}class Ul extends ee{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function zl(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*zl(n*n,~~(r/2))|0}}Ce(2013265921,0,!1),Ce(2013265921,0,!0),mr(29-1,e=>zl(2,e),Int32Array);function cs(e){return e.bound}function no(e,t){return e.digits[t]}function us(e,t){return pe(no(e,t),!1,2)}function ei(e,t,n){e.digits[t]=n|0}function fs(e,t){e:for(;;){const n=e,r=t;if(r===0)return Ce(1,0,!1);if(r%2===0){e=_t(n,n),t=~~(r/2);continue e}else return _t(n,fs(_t(n,n),~~(r/2)))}}function gr(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*gr(n*n,~~(r/2))|0}}function sh(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const wr=24,Ln=16777216,zt=Ce(16777216,0,!1),yr=Ce(16777215,0,!1);Ce(16777215,0,!0);function Vn(e){return new Ul(e,new Int32Array(e))}function ah(e){return new Ul(e.bound,B0(e.digits))}function Gt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Gl=2,Wl=3;function ro(e){const t=(e<0?0:e)|0;if(t<Ln){const n=Vn(1);return n.digits[0]=t|0,Gt(n)}else{const n=Vn(Gl);for(let r=0;r<=Gl-1;r++)n.digits[r]=~~(t/gr(Ln,r))%Ln|0;return Gt(n)}}function lh(e){const t=zo(e,Ce(0,0,!1))<0?Ce(0,0,!1):e,n=Vn(Wl);for(let r=0;r<=Wl-1;r++)n.digits[r]=~~Lt(t0(Ht(t,fs(zt,r)),zt))|0;return Gt(n)}function ch(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+Ln*t|0;return t|0}}const uh=ro(1),fh=ro(0);function qe(e){return e.bound-1}function Ue(e){return e.bound===0}function Zl(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return!0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function dh(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(c===-1)return 0;{const d=(c<t?0:l[c-t])|0,f=(c<r?0:u[c-r])|0;if(d===f){i=l,s=u,a=c-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function ph(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return 0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return s[l]<a[l]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function Ql(e,t){return ph(e,t)===-1}function hh(e,t){const n=Vn(2),r=_t(pe(e,!1,2),pe(t,!1,2));return ei(n,0,~~Lt(fr(r,yr))),ei(n,1,~~Lt(Ht(r,zt))),Gt(n)}function Kl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(zo(o,Ce(0,0,!1))>0){const s=vt(us(r,i),o);ei(r,i,~~Lt(fr(s,yr))),e=r,t=Ht(s,zt),n=i+1;continue e}break}}function Xl(e,t){const n=cs(e)|0,r=Vn(n+1),o=pe(t,!1,2);let i=Ce(0,0,!1);for(let s=0;s<=n-1;s++){const a=vt(vt(i,us(r,s)),_t(us(e,s),o));ei(r,s,~~Lt(fr(a,yr))),i=Ht(a,zt)}return Kl(r,i,n),Gt(r)}function mh(e,t){const n=Vn(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=pe(e.digits[o],!1,2);let s=Ce(0,0,!1),a=o;for(let l=0;l<=t.bound-1;l++){const u=pe(t.digits[l],!1,2),c=vt(vt(pe(r[a],!1,2),s),_t(i,u));r[a]=~~Lt(fr(c,yr))|0,s=Ht(c,zt),a=a+1|0}Kl(n,s,a)}return Gt(n)}function gh(e,t){const n=cs(e)===1,r=cs(t)===1;return n&&r?hh(no(e,0),no(t,0)):n?Xl(t,no(e,0)):r?Xl(e,no(t,0)):mh(e,t)}class wh extends ee{constructor(t,n,r,o,i,s,a){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=a}}function at(e,t,n,r){return new wh(e,gr(2,e),t,n,r,~~(wr/e),mr(~~(wr/e),o=>gr(2,e*o),Int32Array))}const yh=[at(1,28,268435456,268435456),at(2,26,67108864,134217728),at(3,24,16777216,50331648),at(4,22,4194304,16777216),at(5,20,1048576,5242880),at(6,18,262144,1572864),at(7,16,65536,458752),at(8,14,16384,131072),at(9,12,4096,36864),at(10,10,1024,10240),at(11,8,256,2816),at(12,6,64,768),at(13,4,16,208)];mr(wr,e=>gr(2,e)-1,Int32Array),mr(wr,e=>gr(2,e),Int32Array),mr(wr,e=>fs(Ce(2,0,!1),e),null),~~(yh[0].bigN/wr);function bh(e,t){return gh(e,t)}function vh(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=_t(l,pe(a[0],!1,2));for(;zo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Lt(fr(c,yr)),f=Ht(c,zt);d<=i[u+r]?i[u+r]=i[u+r]-d|0:(i[u+r]=i[u+r]+(Ln-d)|0,f=vt(f,Ce(1,0,!1))),u<s?c=vt(f,_t(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}Gt(e)}function _h(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=_t(l,pe(a[0],!1,2));for(;zo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Lt(fr(c,yr)),f=Ht(c,zt);d<Ln-i[u+r]?i[u+r]=i[u+r]+d|0:(i[u+r]=d-(Ln-i[u+r])|0,f=vt(f,Ce(1,0,!1))),u<s?c=vt(f,_t(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}Gt(e)}function Ah(e,t,n){const r=qe(t)|0,o=qe(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,a=t.digits,l=(i===0?o===n?~~(s[n]/a[0]):~~Lt(Ht(vt(_t(pe(s[o],!1,2),zt),pe(s[o-1],!1,2)),pe(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Lt(Ht(vt(_t(pe(s[o],!1,2),zt),pe(s[o-1],!1,2)),vt(pe(a[i],!1,2),Ce(1,0,!1)))))|0;return l===0?dh(t,n,e,0)!==1?1:0:l|0}}function xh(e,t){if(Ue(t))throw new Error;if(qe(e)<qe(t))return[fh,e];{const n=ah(e),r=Vn(qe(e)-qe(t)+1+1);let o=qe(e);const i=qe(t)|0;let s=o-i,a=!1;for(;!a;){const l=Ah(n,t,s)|0;l>0?(vh(n,l,t,s),_h(r,l,uh,s)):(a=l===0&&s===0,a||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[Gt(r),Gt(n)]}}ro(2);function ds(e){return ro(e)}function Ch(e){return lh(e)}function Yl(e){const t=qe(e)|0,n=(i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(qe(c)>t)return st([u,c],l);i=st([u,c],l),s=u+1,a=bh(c,c);continue e}},r=(i,s,a,l)=>{e:for(;;){const u=i,c=s,d=a,f=l;if(U(f)){const p=ch(d)|0;return u&&p===0?c:st(wn(p),c)}else{const p=z(f),h=xh(d,S(f)[1]),y=h[1],w=h[0];if(u&&Ue(w)){i=u,s=c,a=y,l=p;continue e}else{i=u,s=r(!1,c,y,p),a=w,l=p;continue e}}}},o=r(!0,it(),e,n(it(),0,ro(10)));return U(o)?"0":on("",Yo(o))}function Eh(e){return e.bound<=1}function Jl(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class ze{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Un(t)|0;if(n===-1)return Ue(se(t))?"0":"-"+Yl(se(t));if(n===0)return"0";if(n===1)return Yl(se(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof ze&&ql(n,t)}GetHashCode(){return Dh(this)|0}toJSON(){return Ve(this)}CompareTo(t){const n=this;if(t instanceof ze)return Sh(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function ps(e,t){return new ze(e,t)}ze.smallLim=4096,ze.smallPosTab=mr(ze.smallLim,ds,null),ze.one=ms(1),ze.two=ms(2),ze.zero=ms(0);function hs(e){return Eh(e)&&Jl(e)<ze.smallLim?ze.smallPosTab[Jl(e)]:e}function Un(e){return e.signInt}function se(e){return e.v}function ql(e,t){const n=Un(e)|0,r=Un(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Zl(se(e),se(t));case 1:return Zl(se(e),se(t));case 2:return Ue(se(e))?Ue(se(t)):!1;case 3:return Ue(se(e))?Ue(se(t)):!1;case 4:return!0;case 5:return Ue(se(t));case 6:return Ue(se(t));case 7:return Ue(se(e));case 8:return Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function kh(e,t){const n=Un(e)|0,r=Un(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ql(se(e),se(t));case 1:return Ql(se(t),se(e));case 2:return!1;case 3:return Ue(se(e))?!Ue(se(t)):!0;case 4:return!1;case 5:return!Ue(se(t));case 6:return!1;case 7:return!1;case 8:return!Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Sh(e,t){return kh(e,t)?-1:ql(e,t)?0:1}function Dh(e){return Un(e)===0?1:Un(e)+sh(se(e))|0}function ms(e){return e>=0?ps(1,hs(ds(e))):e===-2147483648?ps(-1,hs(Ch(n0(pe(e,!1,2))))):ps(-1,hs(ds(Pp(e))))}function ec(){return ze.one}function Fh(){return ze.two}function tc(){return ze.zero}tc(),ec(),Fh(),tc(),ec();function nc(e,t){Th(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function Th(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 Ih(){return nc(-621355968e5,0)}function Mh(e){const[t,n]=Sl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return nc(t.getTime(),r)}function Rh(e,t){try{return t.contents=Mh(e),!0}catch{return!1}}function oo(e){return e<0?Math.ceil(e):Math.floor(e)}function rc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Nh(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 Nh(e){return r0(Ht(e,1e4))}function Oh(e){return oo(e/864e5)}function Ph(e){return oo(e%864e5/36e5)}function Bh(e){return oo(e%36e5/6e4)}function $h(e){return oo(e%6e4/1e3)}function jh(e){return oo(e%1e3)}function Hh(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Oh(e)),o=Math.abs(Ph(e)),i=Math.abs(Bh(e)),s=Math.abs($h(e)),a=Math.abs(jh(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:Xe(o,2)}:${Xe(i,2)}:${Xe(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Xe(a,3):"."+np(a,3,7)}`}function Lh(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 rc(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,l=+r[4],u=+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*rc(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Vh(e,t){try{return t.contents=Lh(e),!0}catch{return!1}}function Uh(e){throw new Error(e)}const zh="Enumeration already finished.",Gh="Enumeration has not started. Call MoveNext.",oc="The input sequence has an insufficient number of elements.",Wh="Reset is not supported on this enumerator.";function Zh(){throw new Error(Wh)}function gs(){throw new Error(Gh)}function ws(){throw new Error(zh)}class Qh{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Le(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Ve(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{re(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Kh(e){return new Qh(e)}class Xh{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"(){Zh()}Dispose(){this.dispose()}}function ti(e,t,n){return new Xh(e,t,n)}function Yh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=n;try{re(a)}finally{n=void 0}}if(t!=null){const a=t;try{re(a)}finally{t=void 0}}};return ti(()=>(r?o&&ws():gs(),i!=null?ne(i):ws()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,c=n;if(u!=null)if(c!=null){const d=c;if(d["System.Collections.IEnumerator.MoveNext"]())i=ue(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{re(d)}finally{n=void 0}}else{const d=u;d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return ne(l)}},()=>{o||s()})}function Jh(e,t){return ti(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{re(t)}finally{e()}})}function ic(e,t,n){let r=!1,o,i=ue(e());const s=()=>{if(i!=null){const l=ne(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return ti(()=>(r||gs(),o!=null?ne(o):ws()),()=>{if(r||(r=!0),i!=null){const l=ne(i);let u;try{u=t(l)}catch(c){throw a(),c}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function qh(e,t){let n,r=t;return ti(()=>{if(n!=null){const o=n[0];return n[1],o}else return gs()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function em(e,t){t==null&&Uh(e)}function br(e){return Kh(e)}function kn(e){return em("source",e),Le(e)}function H(e){return br(()=>Le(e()))}function sc(e){return br(()=>Yh(e))}function tm(e,t){return br(()=>qh(e,t))}function ys(){return H(()=>new Array(0))}function O(e){return H(()=>P0(e,null))}function Ct(e){return Bt(e)?x(e):e instanceof Vt?e:Q0(e)}function nm(e,t,n){return br(()=>ic(e,t,n))}function ac(e,t,n){return br(()=>{let r=-1;return ic(e,o=>(r=r+1|0,t(r,o)),n)})}function he(e,t){return sc([e,t])}function rm(e,t,n){const r=kn(t);try{const o=kn(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{re(o)}}finally{re(r)}}function vr(e,t,n){const r=kn(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{re(r)}}function ni(e,t,n){const r=kn(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{re(r)}}function bs(e,t){ni((n,r)=>{e(r)},void 0,t)}function Ne(e,t){return nm(()=>kn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ue(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function om(e,t){return ac(()=>kn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ue(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function im(e,t){return br(()=>{const n=kn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(oc+"\\nParameter name: source");return Jh(()=>{},n)}catch(r){throw re(n),r}})}function sm(e,t){return ac(()=>kn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ue(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(oc+"\\nParameter name: source")}else return},n=>{re(n)})}function lc(e,t){return H(()=>sc(Ne(e,t)))}class cc{constructor(t,n){this.k=t,this.v=n}}function io(e,t){return new cc(e,t)}function be(e){return e.k}function Ge(e){return e.v}class me extends cc{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function so(e,t,n,r,o){return new me(e,t,n,r,o)}function Oe(e){return e.left}function Pe(e){return e.right}function Sn(e){return e.h}function D_(){}function uc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){e=uc(n+1,Oe(o)),t=Pe(o);continue e}else return n+1|0}else return n|0}}function am(e){return uc(0,e)}function It(e,t,n,r){let o;const i=e;if(i!=null){const u=i;o=u instanceof me?Sn(u):1}else o=0;let s;const a=r;if(a!=null){const u=a;s=u instanceof me?Sn(u):1}else s=0;const l=(o<s?s:o)|0;return l===0?io(t,n):so(t,n,e,r,l+1)}function fc(e,t,n,r){let o,i,s,a,l;const u=e;if(u!=null){const f=u;l=f instanceof me?Sn(f):1}else l=0;let c;const d=r;if(d!=null){const f=d;c=f instanceof me?Sn(f):1}else c=0;if(c>l+2){const f=ne(r);if(f instanceof me)if(o=Oe(f),(o!=null?(i=o,i instanceof me?Sn(i):1):0)>l+1){const p=ne(Oe(f));if(p instanceof me)return It(It(e,t,n,Oe(p)),be(p),Ge(p),It(Pe(p),be(f),Ge(f),Pe(f)));throw new Error("internal error: Map.rebalance")}else return It(It(e,t,n,Oe(f)),be(f),Ge(f),Pe(f));else throw new Error("internal error: Map.rebalance")}else if(l>c+2){const f=ne(e);if(f instanceof me)if(s=Pe(f),(s!=null?(a=s,a instanceof me?Sn(a):1):0)>c+1){const p=ne(Pe(f));if(p instanceof me)return It(It(Oe(f),be(f),Ge(f),Oe(p)),be(p),Ge(p),It(Pe(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return It(Oe(f),be(f),Ge(f),It(Pe(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return It(e,t,n,r)}function _r(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,be(o))|0;return o instanceof me?i<0?fc(_r(e,t,n,Oe(o)),be(o),Ge(o),Pe(o)):i===0?so(t,n,Oe(o),Pe(o),Sn(o)):fc(Oe(o),be(o),Ge(o),_r(e,t,n,Pe(o))):i<0?so(t,n,void 0,r,2):i===0?io(t,n):so(t,n,r,void 0,2)}else return io(t,n)}function dc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(a===0)return ue(Ge(s));if(s instanceof me){e=r,t=o,n=a<0?Oe(s):Pe(s);continue e}else return}else return}}function lm(e,t,n){const r=dc(e,t,n);if(r==null)throw new Error;return ne(r)}function cm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(s instanceof me)if(a<0){e=r,t=o,n=Oe(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Pe(s);continue e}else return a===0}else return!1}}function pc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){pc(n,Oe(o)),n(be(o),Ge(o)),e=n,t=Pe(o);continue e}else n(be(o),Ge(o))}break}}function um(e,t){pc(e,t)}function vs(e,t){if(t!=null){const n=t;if(n instanceof me){const r=vs(e,Oe(n)),o=e(be(n),Ge(n)),i=vs(e,Pe(n));return so(be(n),o,r,i,Sn(n))}else return io(be(n),e(be(n),Ge(n)))}else return void 0}function fm(e,t){return vs(e,t)}function dm(e,t,n){let r=n;um((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function pm(e,t){return Cn((n,r)=>_r(e,r[0],r[1],n),void 0,t)}function hm(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=_r(r,s[0],s[1],o),n=i;continue e}else return o}}function mm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=_r(e,o[0],o[1],n)}return n}function hc(e,t){if(Bt(t))return mm(e,t);if(t instanceof Vt)return pm(e,t);{const n=Le(t);try{return hm(e,void 0,n)}finally{re(n)}}}class gm extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function mc(e){e:for(;;){const t=e;if(U(t))return it();{const n=z(t),r=S(t);if(r!=null){const o=r;if(o instanceof me){e=le([Oe(o),io(be(o),Ge(o)),Pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function gc(e){return new gm(mc(Ee(e)),!1)}function wm(){throw new Error("enumeration not started")}function ym(){throw new Error("enumeration already finished")}function wc(e){if(e.started){const t=e.stack;if(U(t))return ym();if(S(t)!=null){const n=S(t);if(n instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ge(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return wm()}function bm(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=mc(z(t)),!U(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function yc(e){let t=gc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return wc(t)},"System.Collections.IEnumerator.get_Current"(){return wc(t)},"System.Collections.IEnumerator.MoveNext"(){return bm(t)},"System.Collections.IEnumerator.Reset"(){t=gc(e)},Dispose(){}}}class ri{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cm(this)|0}Equals(t){const n=this;if(t instanceof ri){const r=Le(n);try{const o=Le(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ye(a[0],l[0])&&Ye(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{re(o)}}finally{re(r)}}else return!1}toString(){return"map ["+on("; ",Ne(n=>k0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return yc(this.tree)}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return yc(this.tree)}CompareTo(t){const n=this;if(t instanceof ri)return rm((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:$t(r[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return vc(n,t[0])&&Ye(bc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){dm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return _s(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return _s(this)|0}get size(){return _s(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ne(n=>[n[0],n[1]],this)}get(t){return bc(this,t)}has(t){return vc(this,t)}keys(){return Ne(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ne(n=>n[1],this)}forEach(t,n){const r=this;bs(o=>{or(2,t,[o[1]])(o[0])(r)},r)}}function ao(e,t){return new ri(e,t)}function vm(e){return ao(e,void 0)}function _m(e,t,n){return ao(e.comparer,_r(e.comparer,t,n,e.tree))}function bc(e,t){return lm(e.comparer,t,e.tree)}function Am(e,t){return ao(e.comparer,fm(t,e.tree))}function _s(e){return am(e.tree)}function vc(e,t){return cm(e.comparer,t,e.tree)}function xm(e,t){return dc(e.comparer,t,e.tree)}function Cm(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,en(o[0]))|0,n=t(n,en(o[1]))|0}}finally{re(r)}return n|0}function _c(e,t,n){return _m(n,e,t)}function Ac(e,t){return xm(t,e)}function xc(e,t){return Am(t,e)}function Em(e,t){return ao(t,hc(t,e))}function km(e,t){return ao(t,hc(t,e))}function As(e){return vm(e)}class Cc{constructor(t){this.k=t}}function lt(e){return new Cc(e)}function T(e){return e.k}class G extends Cc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ct(e,t,n,r){return new G(e,t,n,r)}function q(e){return e.left}function Y(e){return e.right}function Ar(e){return e.h}function F_(){}function Ec(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof G){e=q(o),t=Ec(Y(o),r+1);continue e}else return r+1|0}else return r|0}}function Sm(e){return Ec(e,0)}function Mt(e,t,n){let r;const o=e;if(o!=null){const l=o;r=l instanceof G?Ar(l):1}else r=0;let i;const s=n;if(s!=null){const l=s;i=l instanceof G?Ar(l):1}else i=0;const a=(r<i?i:r)|0;return a===0?lt(t):ct(t,e,n,a+1)}function kc(e,t,n){let r,o,i,s,a;const l=e;if(l!=null){const d=l;a=d instanceof G?Ar(d):1}else a=0;let u;const c=n;if(c!=null){const d=c;u=d instanceof G?Ar(d):1}else u=0;if(u>a+2){const d=ne(n);if(d instanceof G)if(r=q(d),(r!=null?(o=r,o instanceof G?Ar(o):1):0)>a+1){const f=ne(q(d));if(f instanceof G)return Mt(Mt(e,t,q(f)),T(f),Mt(Y(f),T(d),Y(d)));throw new Error("internal error: Set.rebalance")}else return Mt(Mt(e,t,q(d)),T(d),Y(d));else throw new Error("internal error: Set.rebalance")}else if(a>u+2){const d=ne(e);if(d instanceof G)if(i=Y(d),(i!=null?(s=i,s instanceof G?Ar(s):1):0)>u+1){const f=ne(Y(d));if(f instanceof G)return Mt(Mt(q(d),T(d),q(f)),T(f),Mt(Y(f),t,n));throw new Error("internal error: Set.rebalance")}else return Mt(q(d),T(d),Mt(Y(d),t,n));else throw new Error("internal error: Set.rebalance")}else return Mt(e,t,n)}function lo(e,t,n){if(n!=null){const r=n,o=e.Compare(t,T(r))|0;if(r instanceof G)return o<0?kc(lo(e,t,q(r)),T(r),Y(r)):o===0?n:kc(q(r),T(r),lo(e,t,Y(r)));{const i=e.Compare(t,T(r))|0;return i<0?ct(t,void 0,n,2):i===0?n:ct(t,n,void 0,2)}}else return lt(t)}function Sc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,T(s))|0;if(s instanceof G)if(a<0){e=r,t=o,n=q(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Y(s);continue e}else return a===0}else return!1}}function Dc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof G){Dc(n,q(o)),n(T(o)),e=n,t=Y(o);continue e}else n(T(o))}break}}class Dm extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function Fc(e){e:for(;;){const t=e;if(U(t))return it();{const n=S(t),r=z(t);if(n!=null){const o=n;if(o instanceof G){e=le([q(o),lt(T(o)),Y(o)],r);continue e}else return t}else{e=r;continue e}}}}function Tc(e){return new Dm(Fc(Ee(e)),!1)}function Fm(){throw new Error("Enumeration not started")}function Tm(){throw new Error("Enumeration already started")}function Ic(e){if(e.started){const t=e.stack;if(U(t))return Tm();if(S(t)!=null){const n=S(t);return T(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Fm()}function Im(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Fc(z(t)),!U(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function Mc(e){let t=Tc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.get_Current"(){return Ic(t)},"System.Collections.IEnumerator.MoveNext"(){return Im(t)},"System.Collections.IEnumerator.Reset"(){t=Tc(e)},Dispose(){}}}function Mm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(U(o))return U(i)?0:-1;if(U(i))return 1;if(S(i)!=null)if(S(o)!=null){const s=S(o),a=S(i);if(s instanceof G)if(q(s)==null)if(a instanceof G)if(q(a)==null){const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(void 0,z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(a instanceof G)if(q(a)==null){const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=st(void 0,z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(T(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(T(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(T(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(T(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(T(s),T(a))|0;if(l!==0)return l|0;e=r,t=z(o),n=z(i);continue e}}else{S(i);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(T(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(T(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(T(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(T(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(S(o)!=null){S(o);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(T(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(T(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(T(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(T(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=z(o),n=z(i);continue e}break}}function Rc(e,t,n){return t==null?n==null?0:-1:n==null?1:Mm(e,Ee(t),Ee(n))|0}function Rm(e,t,n){let r=n;Dc(o=>{t[r]=o,r=r+1|0},e)}function Nm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=lo(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Om(e,t){return is((n,r)=>lo(e,r,n),void 0,t)}function Pm(e,t){return Cn((n,r)=>lo(e,r,n),void 0,t)}function Bm(e,t){if(Bt(t))return Om(e,t);if(t instanceof Vt)return Pm(e,t);{const n=Le(t);try{return Nm(e,void 0,n)}finally{re(n)}}}class xs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Hm(this)|0}Equals(t){const n=this;return t instanceof xs&&Rc(oi(n),Wt(n),Wt(t))===0}toString(){return"set ["+on("; ",Ne(n=>Ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Rc(oi(n),Wt(n),Wt(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 Sc(oi(n),t,Wt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Rm(Wt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Cs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Cs(this)|0}GetEnumerator(){return Mc(Wt(this))}[Symbol.iterator](){return Po(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Mc(Wt(this))}get size(){return Cs(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 jm(this,t)}keys(){return Ne(n=>n,this)}values(){return Ne(n=>n,this)}entries(){return Ne(n=>[n,n],this)}forEach(t,n){const r=this;bs(o=>{or(2,t,[o])(o)(r)},r)}}function $m(e,t){return new xs(e,t)}function oi(e){return e.comparer}function Wt(e){return e.tree}function Cs(e){return Sm(Wt(e))}function jm(e,t){return Sc(oi(e),t,Wt(e))}function Hm(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+en(r)+631|0}}finally{re(n)}return Math.abs(t)|0}function Lm(e,t){return $m(t,Bm(t,e))}function co(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
1
|
+
(function(){"use strict";var ja=document.createElement("style");ja.textContent=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;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))}.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}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-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}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@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(ja);class er{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Jt(this.value)}Equals(t){return t==null?!1:Ye(this.value,t instanceof er?t.value:t)}CompareTo(t){return t==null?1:Bt(this.value,t instanceof er?t.value:t)}}function ne(e){if(e==null)throw new Error("Option has no value");return e instanceof er?e.value:e}function Pt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Gd(e){return e!=null&&typeof e.GetEnumerator=="function"}function Wd(e){return e!=null&&typeof e.CompareTo=="function"}function Zd(e){return e!=null&&typeof e.Equals=="function"}function Ha(e){return e!=null&&typeof e.GetHashCode=="function"}function La(e){return e!=null&&typeof e.Dispose=="function"}function re(e){La(e)&&e.Dispose()}function Me(){return null}function Mo(e,t){var n,r;return((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===((r=Object.getPrototypeOf(t))===null||r===void 0?void 0:r.constructor)}class Qd{constructor(t){this.iter=t,this.current=Me()}"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 Le(e){return Gd(e)?e.GetEnumerator():new Qd(e[Symbol.iterator]())}function Ro(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class Kd{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Xe(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function Xd(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function Va(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Yd(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function hn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Yt{static id(t){return Yt.idMap.has(t)||Yt.idMap.set(t,++Yt.count),Yt.idMap.get(t)}}Yt.idMap=new WeakMap,Yt.count=0;function ji(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ct(e){return e*2654435761|0}function tr(e){return e.length===0?0:e.reduce((t,n)=>(t<<5)+t^n)}function Jd(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ct(e);case"string":return ji(e);default:return Ct(Yt.id(e))}}function qd(e){return Ha(e)?e.GetHashCode():Jd(e)}function ep(e){return e.getTime()}function tp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Jt(e[r]);return tr(n)}function Jt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ct(e);case"string":return ji(e);default:{if(Ha(e))return e.GetHashCode();if(Pt(e))return tp(e);if(e instanceof Date)return ep(e);if(((t=Object.getPrototypeOf(e))===null||t===void 0?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Jt(r));return tr(n)}else return Ct(Yt.id(e))}}}function Hi(e){return qd(e)}function Li(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 Ua(e,t){return Li(e,t,Ye)}function np(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]||!Ye(e[n[o]],t[r[o]]))return!1;return!0}function Ye(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Zd(e)?e.Equals(t):Pt(e)?Pt(t)&&Ua(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&za(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&np(e,t)}function za(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Va(e),r=t.getTime()+Va(t)),n===r?0:n<r?-1:1}function In(e,t){return e===t?0:e<t?-1:1}function rp(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 Ga(e,t){return rp(e,t,Bt)}function op(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=Bt(e[s],t[s]),i!==0)return i}return 0}function Bt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Wd(e)?e.CompareTo(t):Pt(e)?Pt(t)?Ga(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?za(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?op(e,t):-1}function Vi(e,t,n){return e(t,n)>0?t:n}function $(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const Ui=Symbol("curried");function oe(e,t){if(t==null)return t;const n=ne(t);if(n.length>1)return n;const r=(...o)=>{let i=n;for(let s=0;s<e;s++)i=i(o[s]);return i};return r[Ui]=n,r}function Wa(e,t,n){return r=>t===1?n(...e.concat([r])):Wa(e.concat([r]),t-1,n)}function nr(e,t,n){if(t!=null)if(Ui in t){t=t[Ui];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return Wa(n,e,t)}function ip(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ve(r);else if(t===100){n+="; ...";break}else n+="; "+Ve(r);t++}return n+"]"}function Ve(e,t=0){var n,r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ip(e);{const o=(n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+Ve(s,t+1)).join(`
|
|
3
|
+
`)+" }":(r=o==null?void 0:o.name)!==null&&r!==void 0?r:""}}return String(e)}function sp(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ve(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Ve(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class j{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return sp(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Jt(n));return t.splice(0,0,Ct(this.tag)),tr(t)}Equals(t){return this===t?!0:Mo(this,t)&&this.tag===t.tag?Ua(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Mo(this,t)?this.tag===t.tag?Ga(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function ap(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function lp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ve(n)).join(`
|
|
4
|
+
`)+" }"}function cp(e){const t=Object.values(e).map(n=>Jt(n));return tr(t)}function up(e,t){if(e===t)return!0;if(Mo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ye(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function fp(e,t){if(e===t)return 0;if(Mo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=Bt(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ee{toJSON(){return ap(this)}toString(){return lp(this)}GetHashCode(){return cp(this)}Equals(t){return up(this,t)}CompareTo(t){return fp(this,t)}}class Je{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 dp{constructor(t){this.message=t}}function pp(e){return e instanceof dp||e instanceof Error}function hp(e){return e instanceof Promise}function No(e){return pp(e)||hp(e)?e:new Error(String(e))}const mn=Symbol("numeric");function Za(e){return typeof e=="number"||(e==null?void 0:e[mn])}function mp(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function zi(e,t){return typeof e=="number"?e*t:e[mn]().multiply(t)}function Oo(e,t){return typeof e=="number"?e.toFixed(t):e[mn]().toFixed(t)}function Po(e,t){return typeof e=="number"?e.toPrecision(t):e[mn]().toPrecision(t)}function Bo(e,t){return typeof e=="number"?e.toExponential(t):e[mn]().toExponential(t)}function $o(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[mn]().toHex()}var X={GetHashCode(){return tr([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[mn](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},gp=28,wp=1,Mn=1e6,Qa=1e6,yp=-29,bp=29,vp=!1,Lr="[big.js] ",Rn=Lr+"Invalid ",jo=Rn+"decimal places",_p=Rn+"rounding mode",Ka=Lr+"Division by zero",$t=void 0,Ap=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Xa(){function e(t){var n=this;if(!(n instanceof e))return t===$t?Xa():new e(t);if(t instanceof e)n.s=t.s,n.e=t.e,n.c=t.c.slice(),xp(n);else{if(typeof t!="string"){if(e.strict===!0)throw TypeError(Rn+"number");t=t===0&&1/t<0?"-0":String(t)}Cp(n,t)}n.constructor=e}return e.prototype=X,e.DP=gp,e.RM=wp,e.NE=yp,e.PE=bp,e.strict=vp,e}function xp(e){if(e.c.length>1&&!e.c[0]){let t=e.c.findIndex(n=>n);e.c=e.c.slice(t),e.e=e.e-t}}function Cp(e,t){var n,r,o;if(!Ap.test(t))throw Error(Rn+"number");for(e.s=t.charAt(0)=="-"?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&t.charAt(r)=="0";)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=gn(e,wn.DP+1,wn.RM),e}function gn(e,t,n,r){var o=e.c;if(n===$t&&(n=wn.RM),n!==0&&n!==1&&n!==2&&n!==3)throw Error(_p);if(t<1)r=n===3&&(r||!!o[0])||t===0&&(n===1&&o[0]>=5||n===2&&(o[0]>5||o[0]===5&&(r||o[1]!==$t))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((s,a)=>a>=t&&s>0)<0;if(r=n===1&&o[t]>=5||n===2&&(o[t]>5||o[t]===5&&(r||o[t+1]!==$t||o[t-1]&1))||n===3&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function rr(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}X.abs=function(){var e=new this.constructor(this);return e.s=1,e},X.cmp=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=r.s,l=o.s,u=r.e,c=o.e;if(!i[0]||!s[0])return i[0]?a:s[0]?-l:0;if(a!=l)return a;if(t=a<0,u!=c)return u>c^t?1:-1;for(l=Math.max(i.length,s.length),a=0;a<l;a++)if(u=a<i.length?i[a]:0,c=a<s.length?s[a]:0,u!=c)return u>c^t?1:-1;return 0},X.div=function(r){var t=this.constructor,n=new t(this),r=new t(r),o=n.c,i=r.c,s=n.s==r.s?1:-1,a=t.DP;if(a!==~~a||a<0||a>Mn)throw Error(jo);if(!i[0])throw Error(Ka);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,u,c,d,f,p=i.slice(),h=l=i.length,w=o.length,y=o.slice(0,l),b=y.length,_=r,I=_.c=[],R=0,B=a+(_.e=n.e-r.e)+1;for(_.s=s,s=B<0?0:B,p.unshift(0);b++<l;)y.push(0);do{for(c=0;c<10;c++){if(l!=(b=y.length))d=l>b?1:-1;else for(f=-1,d=0;++f<l;)if(i[f]!=y[f]){d=i[f]>y[f]?1:-1;break}if(d<0){for(u=b==l?i:p;b;){if(y[--b]<u[b]){for(f=b;f&&!y[--f];)y[f]=9;--y[f],y[b]+=10}y[b]-=u[b]}for(;!y[0];)y.shift()}else break}I[R++]=d?c:++c,y[0]&&d?y[b]=o[h]||0:y=[o[h]]}while((h++<w||y[0]!==$t)&&s--);return!I[0]&&R!=1&&(I.shift(),_.e--,B--),R>B&&gn(_,B,t.RM,y[0]!==$t),_},X.eq=function(e){return this.cmp(e)===0},X.gt=function(e){return this.cmp(e)>0},X.gte=function(e){return this.cmp(e)>-1},X.lt=function(e){return this.cmp(e)<0},X.lte=function(e){return this.cmp(e)<1},X.minus=X.sub=function(a){var t,n,r,o,i=this.constructor,s=new i(this),a=new i(a),l=s.s,u=a.s;if(l!=u)return a.s=-u,s.plus(a);var c=s.c.slice(),d=s.e,f=a.c,p=a.e;if(!c[0]||!f[0])return f[0]?a.s=-u:c[0]?a=new i(s):a.s=1,a;if(l=d-p){for((o=l<0)?(l=-l,r=c):(p=d,r=f),r.reverse(),u=l;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<f.length)?c:f).length,l=u=0;u<n;u++)if(c[u]!=f[u]){o=c[u]<f[u];break}if(o&&(r=c,c=f,f=r,a.s=-a.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>l;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;c[--u]===0;)c.pop();for(;c[0]===0;)c.shift(),--p;return c[0]||(a.s=1,c=[p=0]),a.c=c,a.e=p,a},X.mod=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.s,s=o.s;if(!o.c[0])throw Error(Ka);return r.s=o.s=1,t=o.cmp(r)==1,r.s=i,o.s=s,t?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(o),n.DP=i,n.RM=s,this.minus(r.times(o)))},X.plus=X.add=function(s){var t,n,r,o=this.constructor,i=new o(this),s=new o(s);if(i.s!=s.s)return s.s=-s.s,i.minus(s);var a=i.e,l=i.c,u=s.e,c=s.c;if(!l[0]||!c[0])return c[0]||(l[0]?s=new o(i):s.s=i.s),s;if(l=l.slice(),t=a-u){for(t>0?(u=a,r=c):(t=-t,r=l),r.reverse();t--;)r.push(0);r.reverse()}for(l.length-c.length<0&&(r=c,c=l,l=r),t=c.length,n=0;t;l[t]%=10)n=(l[--t]=l[t]+c[t]+n)/10|0;for(n&&(l.unshift(n),++u),t=l.length;l[--t]===0;)l.pop();return s.c=l,s.e=u,s},X.pow=function(e){var t=this.constructor,n=new t(this),r=new t("1"),o=new t("1"),i=e<0;if(e!==~~e||e<-Qa||e>Qa)throw Error(Rn+"exponent");for(i&&(e=-e);e&1&&(r=r.times(n)),e>>=1,!!e;)n=n.times(n);return i?o.div(r):r},X.prec=function(e,t){if(e!==~~e||e<1||e>Mn)throw Error(Rn+"precision");return gn(new this.constructor(this),e,t)},X.round=function(e,t){if(e===$t)e=0;else if(e!==~~e||e<-Mn||e>Mn)throw Error(jo);return gn(new this.constructor(this),e+this.e+1,t)},X.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,a=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Lr+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(t=o.c.join(""),t.length+s&1||(t+="0"),i=Math.sqrt(t),s=((s+1)/2|0)-(s<0||s&1),e=new r((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i+""),s=e.e+(r.DP+=4);do n=e,e=a.times(n.plus(o.div(n)));while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return gn(e,(r.DP-=4)+e.e+1,r.RM)},X.times=X.mul=function(o){var t,n=this.constructor,r=new n(this),o=new n(o),i=r.c,s=o.c,a=i.length,l=s.length,u=r.e,c=o.e;if(o.s=r.s==o.s?1:-1,!i[0]||!s[0])return o.c=[o.e=0],o;for(o.e=u+c,a<l&&(t=i,i=s,s=t,c=a,a=l,l=c),t=new Array(c=a+l);c--;)t[c]=0;for(u=l;u--;){for(l=0,c=a+u;c>u;)l=t[c]+s[u]*i[c-u-1]+l,t[c--]=l%10,l=l/10|0;t[c]=l}for(l?++o.e:t.shift(),u=t.length;!t[--u];)t.pop();return o.c=t,o},X.toExponential=function(e,t){var n=this,r=n.c[0];if(e!==$t){if(e!==~~e||e<0||e>Mn)throw Error(jo);for(n=gn(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return rr(n,!0,!!r)},X.toFixed=function(e,t){var n=this,r=n.c[0];if(e!==$t){if(e!==~~e||e<0||e>Mn)throw Error(jo);for(n=gn(new n.constructor(n),e+n.e+1,t),e=e+n.e+1;n.c.length<e;)n.c.push(0)}return rr(n,!1,!!r)},X.toJSON=X.toString=function(){var e=this,t=e.constructor;return rr(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},X.toNumber=function(){var e=Number(rr(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(Lr+"Imprecise conversion");return e},X.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(e!==$t){if(e!==~~e||e<1||e>Mn)throw Error(Rn+"precision");for(n=gn(new r(n),e,t);n.c.length<e;)n.c.push(0)}return rr(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},X.valueOf=function(){var e=this,t=e.constructor;if(t.strict===!0)throw Error(Lr+"valueOf disallowed");return rr(e,e.e<=t.NE||e.e>=t.PE,!0)};var wn=Xa();new wn(0),new wn(1),new wn(-1),new wn("79228162514264337593543950335"),new wn("-79228162514264337593543950335");var Gi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Gi||(Gi={}));function Ep(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Ya(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 kp(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 Sp(e,t){if(t&Gi.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 Dp(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||Sp(i,t),!kp(n).test(s))return Ep(o,n)}return null}function Tp(e,t,n,r,o){const i=Dp(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=Ya(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,c]=Ya(n,r);if(s>=u&&s<=c)return s}}throw new Error("Input string was not in a correct format.")}function or(e,t,n,r,o){try{return o.contents=Tp(e,t,n,r),!0}catch{return!1}}function Fp(e){return e===-2147483648?e:-e}var mt=null;try{mt=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function Et(e,t,n){this.low=e|0,this.high=t|0,this.unsigned=!!n}Et.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Et.prototype.Equals=function(e){return yt(this,e)},Et.prototype.CompareTo=function(e){return Gr(this,e)},Et.prototype.toString=function(e){return zr(this,e)},Et.prototype.toJSON=function(){return zr(this)},Et.prototype[mn]=function(){const e=this;return{multiply:t=>ot(e,t),toPrecision:t=>String(e)+0 .toPrecision(t).substr(1),toExponential:t=>String(e)+0 .toExponential(t).substr(1),toFixed:t=>String(e)+0 .toFixed(t).substr(1),toHex:()=>zr(e.unsigned?e:Wp(Up(e),!0),16)}},Et.prototype.__isLong__,Object.defineProperty(Et.prototype,"__isLong__",{value:!0});function kt(e){return(e&&e.__isLong__)===!0}var Ja={},qa={};function ir(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=qa[e],r)?r:(n=ie(e,(e|0)<0?-1:0,!0),o&&(qa[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=Ja[e],r)?r:(n=ie(e,e<0?-1:0,!1),o&&(Ja[e]=n),n))}function St(e,t){if(isNaN(e))return t?bn:Dt;if(t){if(e<0)return bn;if(e>=nl)return Np}else{if(e<=-rl)return gt;if(e+1>=rl)return Rp}return e<0?xe(St(-e,t)):ie(e%sr|0,e/sr|0,t)}function ie(e,t,n){return new Et(e,t,n)}var Ho=Math.pow;function el(e,t,n){if(e.length===0)throw Error("empty string");if(e==="NaN"||e==="Infinity"||e==="+Infinity"||e==="-Infinity")return Dt;if(typeof t=="number"?(n=t,t=!1):t=!!t,n=n||10,n<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(r===0)return xe(el(e.substring(1),t,n));for(var o=St(Ho(n,8)),i=Dt,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+a),n);if(a<8){var u=St(Ho(n,a));i=On(ot(i,u),St(l))}else i=ot(i,o),i=On(i,St(l))}return i.unsigned=t,i}function yn(e,t){return typeof e=="number"?St(e,t):typeof e=="string"?el(e,t):ie(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var tl=1<<16,Ip=1<<24,sr=tl*tl,nl=sr*sr,rl=nl/2,ol=ir(Ip),Dt=ir(0),bn=ir(0,!0),Vr=ir(1),Mp=ir(1,!0),il=ir(-1),Rp=ie(-1,2147483647,!1),Np=ie(-1,-1,!0),gt=ie(0,-2147483648,!1);function ar(e){return e.unsigned?e.low>>>0:e.low}function Ur(e){return e.unsigned?(e.high>>>0)*sr+(e.low>>>0):e.high*sr+(e.low>>>0)}function zr(e,t){if(t=t||10,t<2||36<t)throw RangeError("radix");if(Nn(e))return"0";if(wt(e))if(yt(e,gt)){var n=St(t),r=qt(e,n),o=lr(ot(r,n),e);return zr(r,t)+ar(o).toString(t)}else return"-"+zr(xe(e),t);for(var i=St(Ho(t,6),e.unsigned),s=e,a="";;){var l=qt(s,i),u=ar(lr(s,ot(l,i)))>>>0,c=u.toString(t);if(s=l,Nn(s))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function Nn(e){return e.high===0&&e.low===0}function wt(e){return!e.unsigned&&e.high<0}function sl(e){return(e.low&1)===1}function yt(e,t){return kt(t)||(t=yn(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function al(e,t){return Gr(e,t)<0}function Wi(e,t){return Gr(e,t)>0}function Op(e,t){return Gr(e,t)>=0}function Gr(e,t){if(kt(t)||(t=yn(t)),yt(e,t))return 0;var n=wt(e),r=wt(t);return n&&!r?-1:!n&&r?1:e.unsigned?t.high>>>0>e.high>>>0||t.high===e.high&&t.low>>>0>e.low>>>0?-1:1:wt(lr(e,t))?-1:1}function xe(e){return!e.unsigned&&yt(e,gt)?gt:On(Bp(e),Vr)}function On(e,t){kt(t)||(t=yn(t));var n=e.high>>>16,r=e.high&65535,o=e.low>>>16,i=e.low&65535,s=t.high>>>16,a=t.high&65535,l=t.low>>>16,u=t.low&65535,c=0,d=0,f=0,p=0;return p+=i+u,f+=p>>>16,p&=65535,f+=o+l,d+=f>>>16,f&=65535,d+=r+a,c+=d>>>16,d&=65535,c+=n+s,c&=65535,ie(f<<16|p,c<<16|d,e.unsigned)}function lr(e,t){return kt(t)||(t=yn(t)),On(e,xe(t))}function ot(e,t){if(Nn(e))return e.unsigned?bn:Dt;if(kt(t)||(t=yn(t)),mt){var n=mt.mul(e.low,e.high,t.low,t.high);return ie(n,mt.get_high(),e.unsigned)}if(Nn(t))return e.unsigned?bn:Dt;if(yt(e,gt))return sl(t)?gt:Dt;if(yt(t,gt))return sl(e)?gt:Dt;if(wt(e))return wt(t)?ot(xe(e),xe(t)):xe(ot(xe(e),t));if(wt(t))return xe(ot(e,xe(t)));if(al(e,ol)&&al(t,ol))return St(Ur(e)*Ur(t),e.unsigned);var r=e.high>>>16,o=e.high&65535,i=e.low>>>16,s=e.low&65535,a=t.high>>>16,l=t.high&65535,u=t.low>>>16,c=t.low&65535,d=0,f=0,p=0,h=0;return h+=s*c,p+=h>>>16,h&=65535,p+=i*c,f+=p>>>16,p&=65535,p+=s*u,f+=p>>>16,p&=65535,f+=o*c,d+=f>>>16,f&=65535,f+=i*u,d+=f>>>16,f&=65535,f+=s*l,d+=f>>>16,f&=65535,d+=r*c+o*u+i*l+s*a,d&=65535,ie(p<<16|h,d<<16|f,e.unsigned)}function qt(e,t){if(kt(t)||(t=yn(t)),Nn(t))throw Error("division by zero");if(mt){if(!e.unsigned&&e.high===-2147483648&&t.low===-1&&t.high===-1)return e;var n=(e.unsigned?mt.div_u:mt.div_s)(e.low,e.high,t.low,t.high);return ie(n,mt.get_high(),e.unsigned)}if(Nn(e))return e.unsigned?bn:Dt;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Vp(t)),Wi(t,e))return bn;if(Wi(t,Lp(e,1)))return Mp;i=bn}else{if(yt(e,gt)){if(yt(t,Vr)||yt(t,il))return gt;if(yt(t,gt))return Vr;var s=Hp(e,1);return r=jp(qt(s,t),1),yt(r,Dt)?wt(t)?Vr:il:(o=lr(e,ot(t,r)),i=On(r,qt(o,t)),i)}else if(yt(t,gt))return e.unsigned?bn:Dt;if(wt(e))return wt(t)?qt(xe(e),xe(t)):xe(qt(xe(e),t));if(wt(t))return xe(qt(e,xe(t)));i=Dt}for(o=e;Op(o,t);){r=Math.max(1,Math.floor(Ur(o)/Ur(t)));for(var a=Math.ceil(Math.log(r)/Math.LN2),l=a<=48?1:Ho(2,a-48),u=St(r),c=ot(u,t);wt(c)||Wi(c,o);)r-=l,u=St(r,e.unsigned),c=ot(u,t);Nn(u)&&(u=Vr),i=On(i,u),o=lr(o,c)}return i}function Pp(e,t){if(kt(t)||(t=yn(t)),mt){var n=(e.unsigned?mt.rem_u:mt.rem_s)(e.low,e.high,t.low,t.high);return ie(n,mt.get_high(),e.unsigned)}return lr(e,ot(qt(e,t),t))}function Bp(e){return ie(~e.low,~e.high,e.unsigned)}function $p(e,t){return kt(t)||(t=yn(t)),ie(e.low&t.low,e.high&t.high,e.unsigned)}function jp(e,t){return kt(t)&&(t=ar(t)),(t&=63)===0?e:t<32?ie(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ie(0,e.low<<t-32,e.unsigned)}function Hp(e,t){return kt(t)&&(t=ar(t)),(t&=63)===0?e:t<32?ie(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ie(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function Lp(e,t){if(kt(t)&&(t=ar(t)),t&=63,t===0)return e;var n=e.high;if(t<32){var r=e.low;return ie(r>>>t|n<<32-t,n>>>t,e.unsigned)}else return ie(t===32?n:n>>>t-32,0,e.unsigned)}function Vp(e){return e.unsigned?e:ie(e.low,e.high,!0)}function Up(e,t){return t?zp(e):Gp(e)}function zp(e){var t=e.high,n=e.low;return[n&255,n>>>8&255,n>>>16&255,n>>>24,t&255,t>>>8&255,t>>>16&255,t>>>24]}function Gp(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,t&255,n>>>24,n>>>16&255,n>>>8&255,n&255]}function Wp(e,t,n){return n?Zp(e,t):Qp(e,t)}function Zp(e,t){return new Et(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}function Qp(e,t){return new Et(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}const bt=On,vt=ot,jt=qt,Kp=Pp,Xp=xe,cr=$p,Lo=Gr,Ce=ie,Ht=ar,Yp=Ur;function pe(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0;break}return ie(r,o>>31,t)}class Jp{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class V{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 te(this)}GetHashCode(){return ll(this)}Equals(t){return Zi(this,t)}}function _t(e){return e.generics!=null?e.generics:[]}function ll(e){const t=ji(e.fullname),n=_t(e).map(ll);return tr([t,...n])}function Zi(e,t){return e.fullname===""?t.fullname===""&&Li(Qr(e),Qr(t),([n,r],[o,i])=>n===o&&Zi(r,i)):e.fullname===t.fullname&&Li(_t(e),_t(t),Zi)}function Wr(e,t,n,r){return new V(e,t,n,r)}function en(e,t,n,r){return new V(e,t,n,void 0,r)}function qp(...e){return new V("",void 0,void 0,void 0,()=>e)}function cl(e,t,n,r){const o=new V(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new Jp(o,a,i[a],s))});return o}function Qi(e){return new V("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Vo(e){return new V("Microsoft.FSharp.Collections.FSharpList`1",[e])}function e0(e){return new V("[]",[e])}const t0=new V("System.Object");new V("Microsoft.FSharp.Core.Unit"),new V("System.Char");const At=new V("System.String"),ul=new V("System.Boolean");new V("System.SByte"),new V("System.Byte"),new V("System.Int16"),new V("System.UInt16");const Re=new V("System.Int32");new V("System.UInt32"),new V("System.Int64"),new V("System.UInt64"),new V("System.Int128"),new V("System.UInt128"),new V("System.IntPtr"),new V("System.UIntPtr"),new V("System.Half"),new V("System.Single"),new V("System.Double"),new V("System.Decimal"),new V("System.Numerics.BigInteger");function ur(e){if(Array.isArray(e))return e[0];if(e instanceof V){const t=Zr(e);if(t!=null)return ur(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function te(e){const t=Zr(e);return t!=null?te(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>te(n)).join(",")+"]"}function fl(e){return Zr(e)!=null}function Zr(e){var t;return e.fullname==="[]"&&((t=e.generics)===null||t===void 0?void 0:t.length)===1?e.generics[0]:void 0}function dl(e){return e.generics!=null&&e.generics.length>0}function Ki(e){return e.enumCases!=null&&e.enumCases.length>0}function pl(e){return e.generics==null?e:new V(e.fullname,e.generics.map(()=>t0))}function hl(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function fr(e){if(Ki(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function n0(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 dr(e,t){const n=parseInt(t,10);return n0(e,isNaN(n)?t:n)[1]}function ml(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Qr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function gl(e){if(Xi(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function wl(e){return e instanceof V?e.cases!=null:e instanceof j}function yl(e){return e instanceof V?e.fields!=null:e instanceof ee}function Xi(e){return e.fullname.startsWith("System.Tuple")}function r0(e,t){const r=ml(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function bl(e){return e.fields==null?[]:e.fields}function o0(e,t){return e[t[0]]}function p_(e){return e}function vl(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);return e.declaringType.construct!=null?new e.declaringType.construct(e.tag,t):{}}function i0(e,t){const n=Qr(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 s0(e,t){return e}function Yi(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Xe(n,2)+":"+Xe(r,2)}function Uo(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 a0(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Xe(e.getFullYear(),4)+"-"+Xe(e.getMonth()+1,2)+"-"+Xe(e.getDate(),2)+"T"+Xe(e.getHours(),2)+":"+Xe(e.getMinutes(),2)+":"+Xe(e.getSeconds(),2)+"."+Xe(e.getMilliseconds(),3)+(n?Yi(e.getTimezoneOffset()*-6e4):"")}}function l0(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Yi(t)}function _l(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const i=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?i%100:i;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const s=n?e.getUTCHours():e.getHours();o=s>12?s%12:s;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:Xe(o,r.length)})}function c0(e,t){var n,r,o;const i=new Date(e.getTime()+((n=e.offset)!==null&&n!==void 0?n:0));if(typeof t!="string")return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Yi((r=e.offset)!==null&&r!==void 0?r:0);if(t.length===1)switch(t){case"D":case"d":return Uo(i,"first");case"T":case"t":return Uo(i,"second");case"O":case"o":return l0(i,(o=e.offset)!==null&&o!==void 0?o:0);default:throw new Error("Unrecognized Date print format")}else return _l(i,t,!0)}function u0(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?Uo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Uo(e,"second"):e.toLocaleTimeString();case"O":case"o":return a0(e,n);default:throw new Error("Unrecognized Date print format")}else return _l(e,t,n)}function zo(e,t,n){return e.offset!=null?c0(e,t):u0(e,t)}function Ji(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function f0(){return Ji(-621355968e5,0)}function Al(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(":");s=parseInt(a[0],10)*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(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 d0(e,t=!1){const[n,r]=Al(e),o=r!=null?t&&r==="Z"?1:2:0;return Ji(n.getTime(),o)}function p0(e,t){try{return t.contents=d0(e),!0}catch{return!1}}function h0(e){return e.kind===1?e:Ji(e.getTime(),1)}function m0(e,t=0){if((t&-284)!==0)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function qi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function xl(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 g0(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let c=u?l-3:l-2;for(let d=0;d<c;d++)a.push(arguments[d]);a.index=arguments[c++],a.input=arguments[c++],u&&(a.groups=arguments[c]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=m0(t,r!=null?r:0),t=s,r=void 0}if(typeof n=="function")return r=r==null?-1:r,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),l=xl(e,a),u=xl.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const Kr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,w0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Cl(e,t){return mp(e,t)<0}function tn(e){return{input:e,cont:b0(e)}}function El(e,t){return typeof t=="string"?e(t):t.cont(e)}function Pn(e){return El(t=>t,e)}function kl(e){return El(t=>{throw new Error(t)},e)}function y0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Za(e))switch(o.toLowerCase()!=="x"&&(Cl(e,0)?(e=zi(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!=null?r:6,e=Oo(e,r);break;case"g":case"G":e=r!=null?Po(e,r):Po(e);break;case"e":case"E":e=r!=null?Bo(e,r):Bo(e);break;case"x":e=$o(e);break;case"X":e=$o(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=zo(e):e=Ve(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,l=a||!s?" ":"0";l==="0"?(e=Xr(e,n-i.length,l,a),e=i+e):e=Xr(i+e,n,l,a)}return e}function Sl(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,c,d,f,p]=l[0];let h=d;if(o>=0)h=o,o=-1;else if(h==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=y0(u,c,h,f,p),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Sl(e,a,l,s,o)}}function b0(e){return t=>{Kr.lastIndex=0;const n=[],r=[];let o=0,i=Kr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Kr.lastIndex,Kr.lastIndex-=1,i=Kr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Sl(t,n,r))}}function v0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(w0,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Za(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a!=null?a:2,u=Oo(u,a);break;case"g":case"G":u=a!=null?Po(u,a):Po(u);break;case"e":case"E":u=a!=null?Bo(u,a):Bo(u);break;case"p":case"P":a=a!=null?a:2,u=Oo(zi(u,100),a)+" %";break;case"d":case"D":u=a!=null?es(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?es($o(u),a,"0"):$o(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let c="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,f,p)=>{Cl(u,0)&&(u=zi(u,-1),c="-"),p=p==null?"":p.substring(1),u=Oo(u,Math.max(p.length,0));let[h,w]=u.split(".");w||(w="");const y=f.replace(/,/g,"").replace(/^#+/,"").length;h=es(h,y,"0");const b=p.replace(/#+$/,"").length;if(b>w.length?w=A0(w,b,"0"):b<w.length&&(w=w.substring(0,b)+w.substring(b).replace(/0+$/,"")),f.indexOf(",")>0){const _=h.length%3,I=Math.floor(h.length/3);let R=_>0?h.substr(0,_)+(I>0?",":""):"";for(let B=0;B<I;B++)R+=h.substr(_+B*3,3)+(B<I-1?",":"");h=R}return w.length>0?h+"."+w:h}),u=c+u}}else u instanceof Date?u=zo(u,l||s):u=Ve(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=Xr(String(u),Math.abs(i)," ",i<0)),u})}function _0(e){return typeof e!="string"||e.length===0}function nn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Xr(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 es(e,t,n){return Xr(e,t,n)}function A0(e,t,n){return Xr(e,t,n,!0)}function x0(e,t,n){return e.replace(new RegExp(qi(t),"g"),n)}function Dl(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(c=>c).map(qi),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const c=a.exec(e);if(c===null){const d=i?e.substring(u).trim():e.substring(u);(!o||d.length>0)&&s.push(d),l=!1}else{const d=i?e.substring(u,c.index).trim():e.substring(u,c.index);(!o||d.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function C0(e,...t){if(t.length===0)return e.trim();const n="["+qi(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Tl="Collection was empty.",E0="An index satisfying the predicate was not found in the collection.";function ue(e){return e==null||e instanceof er?new er(e):e}function k0(e){return e==null?[]:[ne(e)]}function Go(e,t){return e!=null?ne(e):t}function S0(e,t){return e!=null?ne(e):t()}function D0(e,t){return t!=null?ue(e(ne(t))):void 0}function ts(e,t){return typeof e=="function"?new e(t):new Array(t)}function T0(){throw new Error("Arrays had different lengths")}function Wo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function rn(e,t,n){const r=t.length|0,o=ts(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function F0(e,t){const n=ts(t,1);return n[0]=e,n}function pr(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=ts(n,e);for(let o=0;o<=e-1;o++)r[o]=t(o);return r}function I0(e){return e.slice()}function M0(e,t){return t.find(e)}function R0(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=ne(i);r.push(s)}}return Ye(n,Me())?r:rn(o=>o,r,n)}function ns(e,t,n){return n.reduce(e,t)}function N0(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,o=!0;const i=t.length|0,s=n.length|0;if(i>s)return!1;if(i<s)return!1;for(;r<i&&o;)o=e(t[r],n[r]),r=r+1|0;return o}}function O0(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}function P0(e,t,n,r){let o=r;t.length!==n.length&&T0();const i=t.length|0;for(let s=1;s<=i;s++)o=e(s-1,t[i-s],n[i-s],o);return o}function B0(e,t,n,r){return P0((o,i,s,a)=>e(i,s,a),t,n,r)}class Lt extends ee{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+nn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u;if(Ye(s.head,a.head)){o=c,i=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const c=u;if(s>18)return a|0;r=s+1,o=(a<<1)+Jt(l.head)+631*s,i=c;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,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const c=l,d=u,f=Bt(s.head,a.head)|0;if(f===0){o=c,i=d;continue e}else return f|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return j0(this)}[Symbol.iterator](){return Ro(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class $0{constructor(t){this.xs=t,this.it=this.xs,this.current=Me()}"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=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=Me()}Dispose(){}}function j0(e){return new $0(e)}function Vt(){return new Lt(Me(),void 0)}function Yr(e,t){return new Lt(e,t)}function Jr(e){return e.tail==null}function Fl(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=s;continue e}else return o|0}})(0,e)|0}function Zo(e){if(e.tail!=null)return e.head;throw new Error(Tl+"\\nParameter name: list")}function vn(e){const t=e.tail;if(t!=null)return t;throw new Error(Tl+"\\nParameter name: list")}function H0(){throw new Error(E0)}function it(){return Vt()}function st(e,t){return Yr(e,t)}function Ee(e){return Yr(e,Vt())}function U(e){return Jr(e)}function L0(e){return Fl(e)}function S(e){return Zo(e)}function z(e){return vn(e)}function Qo(e){const t=Fl(e)|0,n=Wo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Jr(a)){n[s]=Zo(a),o=s+1,i=vn(a);continue e}break}})(0,e),n}function _n(e,t,n){let r=t,o=n;for(;!Jr(o);)r=e(r,S(o)),o=vn(o);return r}function Il(e){return _n((t,n)=>Yr(n,t),Vt(),e)}function Ml(e,t){_n((n,r)=>{e(r)},void 0,t)}function le(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Yr(e[r],n);return n}function x(e){return le(e,Vt())}function V0(e){let t,n;if(Pt(e))return x(e);if(e instanceof Lt)return e;{const r=Vt();let o=r;const i=Le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new Lt(l,void 0),t.tail=n,n)}}finally{re(i)}const s=o,a=Vt();return s.tail=a,vn(r)}}function Rl(e){const t=Vt();let n=t;const r=s=>{n=_n((a,l)=>{const u=new Lt(l,void 0);return a.tail=u,u},n,s)};if(Pt(e))e.forEach(r);else if(e instanceof Lt)Ml(r,e);else{const s=Le(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{re(s)}}const o=n,i=Vt();return o.tail=i,vn(t)}function Ko(e,t){return _n((n,r)=>Yr(r,n),t,Il(e))}function Xo(e,t){const n=Vt(),r=_n((i,s)=>{const a=new Lt(e(s),void 0);return i.tail=a,a},n,t),o=Vt();return r.tail=o,vn(n)}function U0(e,t){return(r=>{e:for(;;){const o=r;if(Jr(o))return;{const i=e(Zo(o));if(i==null){r=vn(o);continue e}else return i}}})(t)}function z0(e,t){return U0(n=>e(n)?ue(n):void 0,t)}function G0(e,t){const n=z0(e,t);return n==null?H0():ne(n)}function W0(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Jr(s))return;if(e(Zo(s)))return i;r=i+1,o=vn(s);continue e}})(0,t)}function rs(e,t,n){return W0(r=>n.Equals(e,r),t)!=null}class g extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Bn(e,t){return t.tag===0?new g(0,[e(t.fields[0])]):new g(1,[t.fields[0]])}class Nl extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Z0(e){return new Nl(0,[e])}function Q0(e){return new Nl(1,[e])}const $n={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function os(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function K0(e,t){switch(t){case $n.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case $n.SnakeCase:return os(e,"_");case $n.SnakeCaseAllCaps:return os(e,"_").toUpperCase();case $n.KebabCase:return os(e,"-");case $n.None:default:return e}}function An(e,t=$n.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=K0(s,a),n[s]=l}for(let s of e){let a=$n.None;if(s==null&&o(s),s instanceof j){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}class k extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ol(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Pl(e,t){switch(e.tag){case 2:return g0(Ol(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ol(t)}}const X0=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Bl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Y0=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function J0(e){function t(r){return r.replace(Bl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(X0.test(n))return C0(n,"{","}","(",")");if(Bl.test(n))return t(n);if(Y0.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 q0(e,t){try{return t.contents=J0(e),!0}catch{return!1}}class $l extends ee{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function jl(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*jl(n*n,~~(r/2))|0}}Ce(2013265921,0,!1),Ce(2013265921,0,!0),pr(29-1,e=>jl(2,e),Int32Array);function is(e){return e.bound}function qr(e,t){return e.digits[t]}function ss(e,t){return pe(qr(e,t),!1,2)}function Yo(e,t,n){e.digits[t]=n|0}function as(e,t){e:for(;;){const n=e,r=t;if(r===0)return Ce(1,0,!1);if(r%2===0){e=vt(n,n),t=~~(r/2);continue e}else return vt(n,as(vt(n,n),~~(r/2)))}}function hr(e,t){e:for(;;){const n=e,r=t;if(r===0)return 1;if(r%2===0){e=n*n,t=~~(r/2);continue e}else return n*hr(n*n,~~(r/2))|0}}function eh(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return t|0}const mr=24,jn=16777216,Ut=Ce(16777216,0,!1),gr=Ce(16777215,0,!1);Ce(16777215,0,!0);function Hn(e){return new $l(e,new Int32Array(e))}function th(e){return new $l(e.bound,I0(e.digits))}function zt(e){const n=((r,o)=>{e:for(;;){const i=r,s=o;if(s===-1||i[s]!==0)return s+1|0;r=i,o=s-1;continue e}})(e.digits,e.bound-1)|0;return e.bound=n|0,e}const Hl=2,Ll=3;function eo(e){const t=(e<0?0:e)|0;if(t<jn){const n=Hn(1);return n.digits[0]=t|0,zt(n)}else{const n=Hn(Hl);for(let r=0;r<=Hl-1;r++)n.digits[r]=~~(t/hr(jn,r))%jn|0;return zt(n)}}function nh(e){const t=Lo(e,Ce(0,0,!1))<0?Ce(0,0,!1):e,n=Hn(Ll);for(let r=0;r<=Ll-1;r++)n.digits[r]=~~Ht(Kp(jt(t,as(Ut,r)),Ut))|0;return zt(n)}function rh(e){if(e.bound===1)return e.digits[0]|0;{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+jn*t|0;return t|0}}const oh=eo(1),ih=eo(0);function qe(e){return e.bound-1}function Ue(e){return e.bound===0}function Vl(e,t){return e.bound===t.bound?((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return!0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return!1}})(e.digits,t.digits,e.bound-1):!1}function sh(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:((i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(c===-1)return 0;{const d=(c<t?0:l[c-t])|0,f=(c<r?0:u[c-r])|0;if(d===f){i=l,s=u,a=c-1;continue e}else return d<f?-1:1}}})(e.digits,n.digits,e.bound+t-1)|0}function ah(e,t){return e.bound<t.bound?-1:e.bound>t.bound?1:((r,o,i)=>{e:for(;;){const s=r,a=o,l=i;if(l===-1)return 0;if(s[l]===a[l]){r=s,o=a,i=l-1;continue e}else return s[l]<a[l]?-1:1}})(e.digits,t.digits,e.bound-1)|0}function Ul(e,t){return ah(e,t)===-1}function lh(e,t){const n=Hn(2),r=vt(pe(e,!1,2),pe(t,!1,2));return Yo(n,0,~~Ht(cr(r,gr))),Yo(n,1,~~Ht(jt(r,Ut))),zt(n)}function zl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Lo(o,Ce(0,0,!1))>0){const s=bt(ss(r,i),o);Yo(r,i,~~Ht(cr(s,gr))),e=r,t=jt(s,Ut),n=i+1;continue e}break}}function Gl(e,t){const n=is(e)|0,r=Hn(n+1),o=pe(t,!1,2);let i=Ce(0,0,!1);for(let s=0;s<=n-1;s++){const a=bt(bt(i,ss(r,s)),vt(ss(e,s),o));Yo(r,s,~~Ht(cr(a,gr))),i=jt(a,Ut)}return zl(r,i,n),zt(r)}function ch(e,t){const n=Hn(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=pe(e.digits[o],!1,2);let s=Ce(0,0,!1),a=o;for(let l=0;l<=t.bound-1;l++){const u=pe(t.digits[l],!1,2),c=bt(bt(pe(r[a],!1,2),s),vt(i,u));r[a]=~~Ht(cr(c,gr))|0,s=jt(c,Ut),a=a+1|0}zl(n,s,a)}return zt(n)}function uh(e,t){const n=is(e)===1,r=is(t)===1;return n&&r?lh(qr(e,0),qr(t,0)):n?Gl(t,qr(e,0)):r?Gl(e,qr(t,0)):ch(e,t)}class fh extends ee{constructor(t,n,r,o,i,s,a){super(),this.bigL=t|0,this.twoToBigL=n|0,this.k=r|0,this.bigK=o|0,this.bigN=i|0,this.split=s|0,this.splits=a}}function at(e,t,n,r){return new fh(e,hr(2,e),t,n,r,~~(mr/e),pr(~~(mr/e),o=>hr(2,e*o),Int32Array))}const dh=[at(1,28,268435456,268435456),at(2,26,67108864,134217728),at(3,24,16777216,50331648),at(4,22,4194304,16777216),at(5,20,1048576,5242880),at(6,18,262144,1572864),at(7,16,65536,458752),at(8,14,16384,131072),at(9,12,4096,36864),at(10,10,1024,10240),at(11,8,256,2816),at(12,6,64,768),at(13,4,16,208)];pr(mr,e=>hr(2,e)-1,Int32Array),pr(mr,e=>hr(2,e),Int32Array),pr(mr,e=>as(Ce(2,0,!1),e),null),~~(dh[0].bigN/mr);function ph(e,t){return uh(e,t)}function hh(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=vt(l,pe(a[0],!1,2));for(;Lo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Ht(cr(c,gr)),f=jt(c,Ut);d<=i[u+r]?i[u+r]=i[u+r]-d|0:(i[u+r]=i[u+r]+(jn-d)|0,f=bt(f,Ce(1,0,!1))),u<s?c=bt(f,vt(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}zt(e)}function mh(e,t,n,r){const o=qe(e)|0,i=e.digits,s=qe(n)|0,a=n.digits,l=pe(t,!1,2);let u=0,c=vt(l,pe(a[0],!1,2));for(;Lo(c,Ce(0,0,!1))>0||u<s;){if(u>o)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let d=~~Ht(cr(c,gr)),f=jt(c,Ut);d<jn-i[u+r]?i[u+r]=i[u+r]+d|0:(i[u+r]=d-(jn-i[u+r])|0,f=bt(f,Ce(1,0,!1))),u<s?c=bt(f,vt(l,pe(a[u+1],!1,2))):c=f,u=u+1|0}zt(e)}function gh(e,t,n){const r=qe(t)|0,o=qe(e)|0,i=r|0;if(o<i+n)return 0;{const s=e.digits,a=t.digits,l=(i===0?o===n?~~(s[n]/a[0]):~~Ht(jt(bt(vt(pe(s[o],!1,2),Ut),pe(s[o-1],!1,2)),pe(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Ht(jt(bt(vt(pe(s[o],!1,2),Ut),pe(s[o-1],!1,2)),bt(pe(a[i],!1,2),Ce(1,0,!1)))))|0;return l===0?sh(t,n,e,0)!==1?1:0:l|0}}function wh(e,t){if(Ue(t))throw new Error;if(qe(e)<qe(t))return[ih,e];{const n=th(e),r=Hn(qe(e)-qe(t)+1+1);let o=qe(e);const i=qe(t)|0;let s=o-i,a=!1;for(;!a;){const l=gh(n,t,s)|0;l>0?(hh(n,l,t,s),mh(r,l,oh,s)):(a=l===0&&s===0,a||(o===i+s?s=s-1|0:(s=s-1|0,o=o-1|0)))}return[zt(r),zt(n)]}}eo(2);function ls(e){return eo(e)}function yh(e){return nh(e)}function Wl(e){const t=qe(e)|0,n=(i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(qe(c)>t)return st([u,c],l);i=st([u,c],l),s=u+1,a=ph(c,c);continue e}},r=(i,s,a,l)=>{e:for(;;){const u=i,c=s,d=a,f=l;if(U(f)){const p=rh(d)|0;return u&&p===0?c:st(hn(p),c)}else{const p=z(f),h=wh(d,S(f)[1]),w=h[1],y=h[0];if(u&&Ue(y)){i=u,s=c,a=w,l=p;continue e}else{i=u,s=r(!1,c,w,p),a=y,l=p;continue e}}}},o=r(!0,it(),e,n(it(),0,eo(10)));return U(o)?"0":nn("",Qo(o))}function bh(e){return e.bound<=1}function Zl(e){const t=e,n=0;return n<t.bound?t.digits[n]|0:0}class ze{constructor(t,n){this.signInt=t|0,this.v=n}toString(){const t=this,n=Ln(t)|0;if(n===-1)return Ue(se(t))?"0":"-"+Wl(se(t));if(n===0)return"0";if(n===1)return Wl(se(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof ze&&Ql(n,t)}GetHashCode(){return Ah(this)|0}toJSON(){return Ve(this)}CompareTo(t){const n=this;if(t instanceof ze)return _h(n,t)|0;throw new Error("the objects are not comparable\\nParameter name: obj")}}function cs(e,t){return new ze(e,t)}ze.smallLim=4096,ze.smallPosTab=pr(ze.smallLim,ls,null),ze.one=fs(1),ze.two=fs(2),ze.zero=fs(0);function us(e){return bh(e)&&Zl(e)<ze.smallLim?ze.smallPosTab[Zl(e)]:e}function Ln(e){return e.signInt}function se(e){return e.v}function Ql(e,t){const n=Ln(e)|0,r=Ln(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Vl(se(e),se(t));case 1:return Vl(se(e),se(t));case 2:return Ue(se(e))?Ue(se(t)):!1;case 3:return Ue(se(e))?Ue(se(t)):!1;case 4:return!0;case 5:return Ue(se(t));case 6:return Ue(se(t));case 7:return Ue(se(e));case 8:return Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function vh(e,t){const n=Ln(e)|0,r=Ln(t)|0;let o;switch(n===-1?r===-1?o=1:r===0?o=8:r===1?o=3:o=9:n===0?r===-1?o=6:r===0?o=4:r===1?o=5:o=9:n===1?r===-1?o=2:r===0?o=7:r===1?o=0:o=9:o=9,o){case 0:return Ul(se(e),se(t));case 1:return Ul(se(t),se(e));case 2:return!1;case 3:return Ue(se(e))?!Ue(se(t)):!0;case 4:return!1;case 5:return!Ue(se(t));case 6:return!1;case 7:return!1;case 8:return!Ue(se(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function _h(e,t){return vh(e,t)?-1:Ql(e,t)?0:1}function Ah(e){return Ln(e)===0?1:Ln(e)+eh(se(e))|0}function fs(e){return e>=0?cs(1,us(ls(e))):e===-2147483648?cs(-1,us(yh(Xp(pe(e,!1,2))))):cs(-1,us(ls(Fp(e))))}function Kl(){return ze.one}function xh(){return ze.two}function Xl(){return ze.zero}Xl(),Kl(),xh(),Xl(),Kl();function Yl(e,t){Ch(t);const n=new Date(e);return n.offset=t!=null?t:new Date().getTimezoneOffset()*-6e4,n}function Ch(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 Eh(){return Yl(-621355968e5,0)}function kh(e){const[t,n]=Al(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Yl(t.getTime(),r)}function Sh(e,t){try{return t.contents=kh(e),!0}catch{return!1}}function to(e){return e<0?Math.ceil(e):Math.floor(e)}function Jl(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Dh(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 Dh(e){return Yp(jt(e,1e4))}function Th(e){return to(e/864e5)}function Fh(e){return to(e%864e5/36e5)}function Ih(e){return to(e%36e5/6e4)}function Mh(e){return to(e%6e4/1e3)}function Rh(e){return to(e%1e3)}function Nh(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Th(e)),o=Math.abs(Fh(e)),i=Math.abs(Ih(e)),s=Math.abs(Mh(e)),a=Math.abs(Rh(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:Xe(o,2)}:${Xe(i,2)}:${Xe(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+Xe(a,3):"."+Xd(a,3,7)}`}function Oh(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 Jl(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,l=+r[4],u=+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*Jl(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Ph(e,t){try{return t.contents=Oh(e),!0}catch{return!1}}function Bh(e){throw new Error(e)}const $h="Enumeration already finished.",jh="Enumeration has not started. Call MoveNext.",ql="The input sequence has an insufficient number of elements.",Hh="Reset is not supported on this enumerator.";function Lh(){throw new Error(Hh)}function ds(){throw new Error(jh)}function ps(){throw new Error($h)}class Vh{constructor(t){this.f=t}toString(){const t=this,n=4;let r=0,o="seq [";const i=Le(t);try{for(;r<n&&i["System.Collections.IEnumerator.MoveNext"]();)r>0&&(o=o+"; "),o=o+Ve(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=r+1|0;return r===n&&(o=o+"; ..."),o+"]"}finally{re(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ro(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Uh(e){return new Vh(e)}class zh{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"(){Lh()}Dispose(){this.dispose()}}function Jo(e,t,n){return new zh(e,t,n)}function Gh(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=n;try{re(a)}finally{n=void 0}}if(t!=null){const a=t;try{re(a)}finally{t=void 0}}};return Jo(()=>(r?o&&ps():ds(),i!=null?ne(i):ps()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,c=n;if(u!=null)if(c!=null){const d=c;if(d["System.Collections.IEnumerator.MoveNext"]())i=ue(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{re(d)}finally{n=void 0}}else{const d=u;d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return ne(l)}},()=>{o||s()})}function Wh(e,t){return Jo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{re(t)}finally{e()}})}function ec(e,t,n){let r=!1,o,i=ue(e());const s=()=>{if(i!=null){const l=ne(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Jo(()=>(r||ds(),o!=null?ne(o):ps()),()=>{if(r||(r=!0),i!=null){const l=ne(i);let u;try{u=t(l)}catch(c){throw a(),c}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function Zh(e,t){let n,r=t;return Jo(()=>{if(n!=null){const o=n[0];return n[1],o}else return ds()},()=>(n=e(r),n!=null?(n[0],r=n[1],!0):!1),()=>{})}function Qh(e,t){t==null&&Bh(e)}function wr(e){return Uh(e)}function xn(e){return Qh("source",e),Le(e)}function H(e){return wr(()=>Le(e()))}function tc(e){return wr(()=>Gh(e))}function Kh(e,t){return wr(()=>Zh(e,t))}function hs(){return H(()=>new Array(0))}function O(e){return H(()=>F0(e,null))}function xt(e){return Pt(e)?x(e):e instanceof Lt?e:V0(e)}function Xh(e,t,n){return wr(()=>ec(e,t,n))}function nc(e,t,n){return wr(()=>{let r=-1;return ec(e,o=>(r=r+1|0,t(r,o)),n)})}function he(e,t){return tc([e,t])}function Yh(e,t,n){const r=xn(t);try{const o=xn(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{re(o)}}finally{re(r)}}function yr(e,t,n){const r=xn(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{re(r)}}function qo(e,t,n){const r=xn(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{re(r)}}function ms(e,t){qo((n,r)=>{e(r)},void 0,t)}function Ne(e,t){return Xh(()=>xn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ue(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function Jh(e,t){return nc(()=>xn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ue(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{re(n)})}function qh(e,t){return wr(()=>{const n=xn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ql+"\\nParameter name: source");return Wh(()=>{},n)}catch(r){throw re(n),r}})}function em(e,t){return nc(()=>xn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ue(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ql+"\\nParameter name: source")}else return},n=>{re(n)})}function rc(e,t){return H(()=>tc(Ne(e,t)))}class oc{constructor(t,n){this.k=t,this.v=n}}function no(e,t){return new oc(e,t)}function be(e){return e.k}function Ge(e){return e.v}class me extends oc{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function ro(e,t,n,r,o){return new me(e,t,n,r,o)}function Oe(e){return e.left}function Pe(e){return e.right}function Cn(e){return e.h}function m_(){}function ic(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){e=ic(n+1,Oe(o)),t=Pe(o);continue e}else return n+1|0}else return n|0}}function tm(e){return ic(0,e)}function Ft(e,t,n,r){let o;const i=e;if(i!=null){const u=i;o=u instanceof me?Cn(u):1}else o=0;let s;const a=r;if(a!=null){const u=a;s=u instanceof me?Cn(u):1}else s=0;const l=(o<s?s:o)|0;return l===0?no(t,n):ro(t,n,e,r,l+1)}function sc(e,t,n,r){let o,i,s,a,l;const u=e;if(u!=null){const f=u;l=f instanceof me?Cn(f):1}else l=0;let c;const d=r;if(d!=null){const f=d;c=f instanceof me?Cn(f):1}else c=0;if(c>l+2){const f=ne(r);if(f instanceof me)if(o=Oe(f),(o!=null?(i=o,i instanceof me?Cn(i):1):0)>l+1){const p=ne(Oe(f));if(p instanceof me)return Ft(Ft(e,t,n,Oe(p)),be(p),Ge(p),Ft(Pe(p),be(f),Ge(f),Pe(f)));throw new Error("internal error: Map.rebalance")}else return Ft(Ft(e,t,n,Oe(f)),be(f),Ge(f),Pe(f));else throw new Error("internal error: Map.rebalance")}else if(l>c+2){const f=ne(e);if(f instanceof me)if(s=Pe(f),(s!=null?(a=s,a instanceof me?Cn(a):1):0)>c+1){const p=ne(Pe(f));if(p instanceof me)return Ft(Ft(Oe(f),be(f),Ge(f),Oe(p)),be(p),Ge(p),Ft(Pe(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return Ft(Oe(f),be(f),Ge(f),Ft(Pe(f),t,n,r));else throw new Error("internal error: Map.rebalance")}else return Ft(e,t,n,r)}function br(e,t,n,r){if(r!=null){const o=r,i=e.Compare(t,be(o))|0;return o instanceof me?i<0?sc(br(e,t,n,Oe(o)),be(o),Ge(o),Pe(o)):i===0?ro(t,n,Oe(o),Pe(o),Cn(o)):sc(Oe(o),be(o),Ge(o),br(e,t,n,Pe(o))):i<0?ro(t,n,void 0,r,2):i===0?no(t,n):ro(t,n,r,void 0,2)}else return no(t,n)}function ac(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(a===0)return ue(Ge(s));if(s instanceof me){e=r,t=o,n=a<0?Oe(s):Pe(s);continue e}else return}else return}}function nm(e,t,n){const r=ac(e,t,n);if(r==null)throw new Error;return ne(r)}function rm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,be(s))|0;if(s instanceof me)if(a<0){e=r,t=o,n=Oe(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Pe(s);continue e}else return a===0}else return!1}}function lc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){lc(n,Oe(o)),n(be(o),Ge(o)),e=n,t=Pe(o);continue e}else n(be(o),Ge(o))}break}}function om(e,t){lc(e,t)}function gs(e,t){if(t!=null){const n=t;if(n instanceof me){const r=gs(e,Oe(n)),o=e(be(n),Ge(n)),i=gs(e,Pe(n));return ro(be(n),o,r,i,Cn(n))}else return no(be(n),e(be(n),Ge(n)))}else return void 0}function im(e,t){return gs(e,t)}function sm(e,t,n){let r=n;om((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function am(e,t){return _n((n,r)=>br(e,r[0],r[1],n),void 0,t)}function lm(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=br(r,s[0],s[1],o),n=i;continue e}else return o}}function cm(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=br(e,o[0],o[1],n)}return n}function cc(e,t){if(Pt(t))return cm(e,t);if(t instanceof Lt)return am(e,t);{const n=Le(t);try{return lm(e,void 0,n)}finally{re(n)}}}class um extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function uc(e){e:for(;;){const t=e;if(U(t))return it();{const n=z(t),r=S(t);if(r!=null){const o=r;if(o instanceof me){e=le([Oe(o),no(be(o),Ge(o)),Pe(o)],n);continue e}else return t}else{e=n;continue e}}}}function fc(e){return new um(uc(Ee(e)),!1)}function fm(){throw new Error("enumeration not started")}function dm(){throw new Error("enumeration already finished")}function dc(e){if(e.started){const t=e.stack;if(U(t))return dm();if(S(t)!=null){const n=S(t);if(n instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for current");return[be(n),Ge(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return fm()}function pm(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=uc(z(t)),!U(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function pc(e){let t=fc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return dc(t)},"System.Collections.IEnumerator.get_Current"(){return dc(t)},"System.Collections.IEnumerator.MoveNext"(){return pm(t)},"System.Collections.IEnumerator.Reset"(){t=fc(e)},Dispose(){}}}class ei{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ym(this)|0}Equals(t){const n=this;if(t instanceof ei){const r=Le(n);try{const o=Le(t);try{const i=()=>{const s=r["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ye(a[0],l[0])&&Ye(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{re(o)}}finally{re(r)}}else return!1}toString(){return"map ["+nn("; ",Ne(n=>v0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return pc(this.tree)}[Symbol.iterator](){return Ro(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return pc(this.tree)}CompareTo(t){const n=this;if(t instanceof ei)return Yh((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:Bt(r[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return mc(n,t[0])&&Ye(hc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ws(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ws(this)|0}get size(){return ws(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ne(n=>[n[0],n[1]],this)}get(t){return hc(this,t)}has(t){return mc(this,t)}keys(){return Ne(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ne(n=>n[1],this)}forEach(t,n){const r=this;ms(o=>{nr(2,t,[o[1]])(o[0])(r)},r)}}function oo(e,t){return new ei(e,t)}function hm(e){return oo(e,void 0)}function mm(e,t,n){return oo(e.comparer,br(e.comparer,t,n,e.tree))}function hc(e,t){return nm(e.comparer,t,e.tree)}function gm(e,t){return oo(e.comparer,im(t,e.tree))}function ws(e){return tm(e.tree)}function mc(e,t){return rm(e.comparer,t,e.tree)}function wm(e,t){return ac(e.comparer,t,e.tree)}function ym(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Jt(o[0]))|0,n=t(n,Jt(o[1]))|0}}finally{re(r)}return n|0}function gc(e,t,n){return mm(n,e,t)}function wc(e,t){return wm(t,e)}function yc(e,t){return gm(t,e)}function bm(e,t){return oo(t,cc(t,e))}function vm(e,t){return oo(t,cc(t,e))}function ys(e){return hm(e)}class bc{constructor(t){this.k=t}}function lt(e){return new bc(e)}function F(e){return e.k}class G extends bc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ct(e,t,n,r){return new G(e,t,n,r)}function q(e){return e.left}function Y(e){return e.right}function vr(e){return e.h}function g_(){}function vc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof G){e=q(o),t=vc(Y(o),r+1);continue e}else return r+1|0}else return r|0}}function _m(e){return vc(e,0)}function It(e,t,n){let r;const o=e;if(o!=null){const l=o;r=l instanceof G?vr(l):1}else r=0;let i;const s=n;if(s!=null){const l=s;i=l instanceof G?vr(l):1}else i=0;const a=(r<i?i:r)|0;return a===0?lt(t):ct(t,e,n,a+1)}function _c(e,t,n){let r,o,i,s,a;const l=e;if(l!=null){const d=l;a=d instanceof G?vr(d):1}else a=0;let u;const c=n;if(c!=null){const d=c;u=d instanceof G?vr(d):1}else u=0;if(u>a+2){const d=ne(n);if(d instanceof G)if(r=q(d),(r!=null?(o=r,o instanceof G?vr(o):1):0)>a+1){const f=ne(q(d));if(f instanceof G)return It(It(e,t,q(f)),F(f),It(Y(f),F(d),Y(d)));throw new Error("internal error: Set.rebalance")}else return It(It(e,t,q(d)),F(d),Y(d));else throw new Error("internal error: Set.rebalance")}else if(a>u+2){const d=ne(e);if(d instanceof G)if(i=Y(d),(i!=null?(s=i,s instanceof G?vr(s):1):0)>u+1){const f=ne(Y(d));if(f instanceof G)return It(It(q(d),F(d),q(f)),F(f),It(Y(f),t,n));throw new Error("internal error: Set.rebalance")}else return It(q(d),F(d),It(Y(d),t,n));else throw new Error("internal error: Set.rebalance")}else return It(e,t,n)}function io(e,t,n){if(n!=null){const r=n,o=e.Compare(t,F(r))|0;if(r instanceof G)return o<0?_c(io(e,t,q(r)),F(r),Y(r)):o===0?n:_c(q(r),F(r),io(e,t,Y(r)));{const i=e.Compare(t,F(r))|0;return i<0?ct(t,void 0,n,2):i===0?n:ct(t,n,void 0,2)}}else return lt(t)}function Ac(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,F(s))|0;if(s instanceof G)if(a<0){e=r,t=o,n=q(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Y(s);continue e}else return a===0}else return!1}}function xc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof G){xc(n,q(o)),n(F(o)),e=n,t=Y(o);continue e}else n(F(o))}break}}class Am extends ee{constructor(t,n){super(),this.stack=t,this.started=n}}function Cc(e){e:for(;;){const t=e;if(U(t))return it();{const n=S(t),r=z(t);if(n!=null){const o=n;if(o instanceof G){e=le([q(o),lt(F(o)),Y(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ec(e){return new Am(Cc(Ee(e)),!1)}function xm(){throw new Error("Enumeration not started")}function Cm(){throw new Error("Enumeration already started")}function kc(e){if(e.started){const t=e.stack;if(U(t))return Cm();if(S(t)!=null){const n=S(t);return F(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return xm()}function Em(e){if(e.started){const t=e.stack;if(U(t))return!1;if(S(t)!=null){if(S(t)instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Cc(z(t)),!U(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!U(e.stack)}function Sc(e){let t=Ec(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return kc(t)},"System.Collections.IEnumerator.get_Current"(){return kc(t)},"System.Collections.IEnumerator.MoveNext"(){return Em(t)},"System.Collections.IEnumerator.Reset"(){t=Ec(e)},Dispose(){}}}function km(e,t,n){e:for(;;){const r=e,o=t,i=n;if(U(o))return U(i)?0:-1;if(U(i))return 1;if(S(i)!=null)if(S(o)!=null){const s=S(o),a=S(i);if(s instanceof G)if(q(s)==null)if(a instanceof G)if(q(a)==null){const l=r.Compare(F(s),F(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(F(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(F(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(F(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(F(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(F(s),F(a))|0;if(l!==0)return l|0;e=r,t=st(Y(s),z(o)),n=st(void 0,z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(F(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(F(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(F(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(F(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(a instanceof G)if(q(a)==null){const l=r.Compare(F(s),F(a))|0;if(l!==0)return l|0;e=r,t=st(void 0,z(o)),n=st(Y(a),z(i));continue e}else{let l,u,c,d,f;switch(U(o)?U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2:S(o)!=null?(l=0,u=z(o),c=S(o)):U(i)?l=2:S(i)!=null?(l=1,d=z(i),f=S(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ct(F(c),void 0,Y(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,lt(F(c))],u),n=i;continue e}case 1:if(f instanceof G){e=r,t=o,n=le([q(f),ct(F(f),void 0,Y(f),0)],d);continue e}else{e=r,t=o,n=le([void 0,lt(F(f))],d);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(F(s),F(a))|0;if(l!==0)return l|0;e=r,t=z(o),n=z(i);continue e}}else{S(i);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(F(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(F(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(F(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(F(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(S(o)!=null){S(o);let s,a,l,u,c;switch(U(o)?U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2:S(o)!=null?(s=0,a=z(o),l=S(o)):U(i)?s=2:S(i)!=null?(s=1,u=z(i),c=S(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ct(F(l),void 0,Y(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,lt(F(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ct(F(c),void 0,Y(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,lt(F(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=z(o),n=z(i);continue e}break}}function Dc(e,t,n){return t==null?n==null?0:-1:n==null?1:km(e,Ee(t),Ee(n))|0}function Sm(e,t,n){let r=n;xc(o=>{t[r]=o,r=r+1|0},e)}function Dm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=io(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Tm(e,t){return ns((n,r)=>io(e,r,n),void 0,t)}function Fm(e,t){return _n((n,r)=>io(e,r,n),void 0,t)}function Im(e,t){if(Pt(t))return Tm(e,t);if(t instanceof Lt)return Fm(e,t);{const n=Le(t);try{return Dm(e,void 0,n)}finally{re(n)}}}class bs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Nm(this)|0}Equals(t){const n=this;return t instanceof bs&&Dc(ti(n),Gt(n),Gt(t))===0}toString(){return"set ["+nn("; ",Ne(n=>Ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Dc(ti(n),Gt(n),Gt(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 Ac(ti(n),t,Gt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Sm(Gt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return vs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return vs(this)|0}GetEnumerator(){return Sc(Gt(this))}[Symbol.iterator](){return Ro(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Sc(Gt(this))}get size(){return vs(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 Rm(this,t)}keys(){return Ne(n=>n,this)}values(){return Ne(n=>n,this)}entries(){return Ne(n=>[n,n],this)}forEach(t,n){const r=this;ms(o=>{nr(2,t,[o])(o)(r)},r)}}function Mm(e,t){return new bs(e,t)}function ti(e){return e.comparer}function Gt(e){return e.tree}function vs(e){return _m(Gt(e))}function Rm(e,t){return Ac(ti(e),t,Gt(e))}function Nm(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Jt(r)+631|0}}finally{re(n)}return Math.abs(t)|0}function Om(e,t){return Mm(t,Im(t,e))}function so(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
|
-
`:" ")}}function
|
|
7
|
-
Reason: `+t.fields[2]:t.tag===3?
|
|
6
|
+
`:" ")}}function Pm(e,t){const n=t.tag===2?so(t.fields[0],t.fields[1],!0):t.tag===1?so(t.fields[0],t.fields[1],!1)+`
|
|
7
|
+
Reason: `+t.fields[2]:t.tag===3?so(t.fields[0],t.fields[1],!0):t.tag===4?so(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
|
+
`+nn(`
|
|
11
11
|
|
|
12
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:co(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Nc(e,t,n){let r;if(r=or(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new g(1,[Vm(i[0],i[1])])}else return new g(0,[r.fields[0]])}function zn(e,t){try{return Nc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function Um(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new k(0,["a string",t])]])}function zm(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ih(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a guid",t])]])}else return new g(1,[[e,new k(0,["a guid",t])]])}function Gm(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new k(0,["null",t])]])}const Oc=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new g(0,[(i+128&255)-128]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,8,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Pc=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new g(0,[i&255]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,8,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Bc=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new g(0,[(i+32768&65535)-32768]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,16,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},$c=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new g(0,[i&65535]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,16,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},jc=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new g(0,[~~i]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!1,32,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Hc=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new g(0,[i>>>0]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[sr(o,511,!0,32,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])};function Wm(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new k(0,["a boolean",t])]])}function Zm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float",t])]])}function Qm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float32",t])]])}function Km(e,t){if(typeof t=="string"){let n,r=w0();return n=[b0(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[v0(n[1])]):new g(1,[[e,new k(0,["a datetime",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function Xm(e,t){if(typeof t=="string"){let n,r=Ih();return n=[Rh(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function Ym(e,t){if(typeof t=="string"){let n,r=0;return n=[Vh(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a timespan",t])]])}else return new g(1,[[e,new k(0,["a timespan",t])]])}function Lc(e,t,n,r){let o;const i=n+".["+wn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new g(1,[[i,new k(5,["a longer array. Need index `"+wn(e)+"` but there are only `"+(o=s.length,wn(o))+"` entries",r])]])}else return new g(1,[[i,new k(0,["an array",r])]])}function Jm(e,t,n){return n==null?new g(0,[void 0]):an(ue,e(t,n))}function Vc(e,t,n){if(Array.isArray(n)){let r=-1;return an(Pl,is((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+wn(r)+"]",i);return s.tag===0?new g(0,[st(s.fields[0],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[it()]),n))}else return new g(1,[[t,new k(0,["a list",n])]])}function Uc(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return is((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+wn(r)+"]",s);return l.tag===0?(a[r]=l.fields[0],new g(0,[a])):new g(1,[l.fields[0]])}else return i},new g(0,[Ko(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new k(0,["an array",n])]])}function qm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(U(s))return new g(1,[[t,new k(7,[a])]]);{const l=Nc(t,oe(2,S(s)),n);if(l.tag===1){o=z(s),i=Jo(a,Ee(l.fields[0]));continue e}else return new g(0,[l.fields[0]])}}})(e,it())}function eg(e,t,n){return new g(0,[e])}function zc(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new g(1,[o.fields[0]])}function tg(e,t,n,r){const o=t(n,r);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[e(o.fields[0])])}function ng(e,t){let n;const r=e;return n=o=>i=>Lc(0,r,o,i),o=>i=>zc(oe(3,s=>{let a;const l=t;return a=u=>c=>Lc(1,l,u,c),u=>c=>zc((d,f,p)=>eg([s,d]),oe(2,a),u,c)}),oe(2,n),o,i)}function rg(e){return Em(e,{Compare:$t})}function og(e){return Lm(e,{Compare:$t})}function ig(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?L0((r,o)=>{const i=r[0];return o.tag===0?an(s=>st(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new g(0,[it()])):new g(1,[[t,new k(0,["an object",n])]])}function sg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ni((o,i)=>{if(o.tag===0){let s;if(s=or(1,e,[n])(i),s.tag===0){const l=t(n+"."+i,r[i]);return l.tag===0?new g(0,[st([s.fields[0],l.fields[0]],o.fields[0])]):new g(1,[l.fields[0]])}else return new g(1,[s.fields[0]])}else return o},new g(0,[it()]),Object.keys(r)):new g(1,[[n,new k(0,["an object",r])]])}function Gc(e,t,n,r){let o,i,s,a,l;return t.length!==r.length?new g(1,[[n,new k(6,[(o=t.length|0,i=r.length|0,s=jn(rn("Expected %i %s but got %i")),a=s(o),l=a(e),l(i))])]]):U0((u,c,d)=>d.tag===0?an(f=>st(f,d.fields[0]),c(n)(u)):d,r,t,new g(0,[it()]))}function Wc(e,t,n,r,o,i){const s=$0(a=>dr(a)===r,vl(n));if(s!=null){const a=s;return i.length===0?new g(0,[El(a,[])]):an(l=>El(a,Yo(l)),Gc("union fields",sn(l=>Zt(e,t,!1,l[1]),Cl(a),null),o,i))}else return new g(1,[[o,new k(6,["Cannot find case "+r+" in "+te(n)])]])}function Zc(e,t,n,r){let o,i;const s=new Je(Me());let a;const l=te(r);a=_c(l,s,e);let u;if(xl(r)){const c=sn(d=>[Ll(t,dr(d)),Zt(a,t,!1,d[1])],Yr(r),null);u=d=>f=>an(p=>f0(r,Yo(p)),ig(c,d,f))}else if(Al(r))u=c=>d=>{if(typeof d=="string")return Wc(a,t,r,d,c,[]);if(Array.isArray(d)){const f=d;return Wc(a,t,r,f[0],c,f.slice(1,f.length))}else return new g(1,[[c,new k(0,["a string or array",d])]])};else if(n)u=c=>d=>new g(1,[[c,new k(2,["an extra coder for "+te(r),d])]]);else throw new Error((o=te(r),i=jn(rn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=u,u}function Zt(e,t,n,r){let o,i,s;const a=te(r),l=Ac(a,e);if(l==null)if(gl(r)){const u=Zt(e,t,!1,Xr(r));return c=>d=>Uc(oe(2,u),c,d)}else if(Ji(r)){const u=te(bl(r));if(u==="System.SByte")return c=>d=>{const f=r,p=c,h=d,y=Oc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Byte")return c=>d=>{const f=r,p=c,h=d,y=Pc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int16")return c=>d=>{const f=r,p=c,h=d,y=Bc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,rp(w))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt16")return c=>d=>{const f=r,p=c,h=d,y=$c(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int32")return c=>d=>{const f=r,p=c,h=d,y=jc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0]|0;return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,wn(w))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt32")return c=>d=>{const f=r,p=c,h=d,y=Hc(p)(h);if(y.tag===1)return new g(1,[y.fields[0]]);{const w=y.fields[0];return vr(w,pr(f),{Equals:(b,_)=>b===_,GetHashCode:Et})?new g(0,[hr(f,w.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};{const c=te(r),f=Il(rn(`Cannot generate auto decoder for %s.
|
|
12
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:so(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Tc(e,t,n){let r;if(r=nr(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new g(1,[Pm(i[0],i[1])])}else return new g(0,[r.fields[0]])}function Vn(e,t){try{return Tc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function Bm(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new k(0,["a string",t])]])}function $m(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[q0(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a guid",t])]])}else return new g(1,[[e,new k(0,["a guid",t])]])}function jm(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new k(0,["null",t])]])}const Fc=e=>t=>{const n="a sbyte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new g(0,[(i+128&255)-128]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!1,8,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Ic=e=>t=>{const n="a byte",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new g(0,[i&255]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!0,8,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Mc=e=>t=>{const n="an int16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new g(0,[(i+32768&65535)-32768]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!1,16,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Rc=e=>t=>{const n="an uint16",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new g(0,[i&65535]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!0,16,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Nc=e=>t=>{const n="an int",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new g(0,[~~i]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!1,32,new Je(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])},Oc=e=>t=>{const n="an uint32",r=e,o=t;if(typeof o=="number"){const i=o;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new g(0,[i>>>0]):new g(1,[[r,new k(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new k(1,[n,i,"Value is not an integral value"])]])}else if(typeof o=="string"){let i,s=0;return i=[or(o,511,!0,32,new Je(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new k(0,[n,o])]])}else return new g(1,[[r,new k(0,[n,o])]])};function Hm(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new k(0,["a boolean",t])]])}function Lm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float",t])]])}function Vm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new k(0,["a float32",t])]])}function Um(e,t){if(typeof t=="string"){let n,r=f0();return n=[p0(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[h0(n[1])]):new g(1,[[e,new k(0,["a datetime",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function zm(e,t){if(typeof t=="string"){let n,r=Eh();return n=[Sh(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new k(0,["a datetime",t])]])}function Gm(e,t){if(typeof t=="string"){let n,r=0;return n=[Ph(t,new Je(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new k(0,["a timespan",t])]])}else return new g(1,[[e,new k(0,["a timespan",t])]])}function Pc(e,t,n,r){let o;const i=n+".["+hn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new g(1,[[i,new k(5,["a longer array. Need index `"+hn(e)+"` but there are only `"+(o=s.length,hn(o))+"` entries",r])]])}else return new g(1,[[i,new k(0,["an array",r])]])}function Wm(e,t,n){return n==null?new g(0,[void 0]):Bn(ue,e(t,n))}function Bc(e,t,n){if(Array.isArray(n)){let r=-1;return Bn(Il,ns((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+hn(r)+"]",i);return s.tag===0?new g(0,[st(s.fields[0],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[it()]),n))}else return new g(1,[[t,new k(0,["a list",n])]])}function $c(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return ns((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+hn(r)+"]",s);return l.tag===0?(a[r]=l.fields[0],new g(0,[a])):new g(1,[l.fields[0]])}else return i},new g(0,[Wo(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new k(0,["an array",n])]])}function Zm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(U(s))return new g(1,[[t,new k(7,[a])]]);{const l=Tc(t,oe(2,S(s)),n);if(l.tag===1){o=z(s),i=Ko(a,Ee(l.fields[0]));continue e}else return new g(0,[l.fields[0]])}}})(e,it())}function Qm(e,t,n){return new g(0,[e])}function jc(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new g(1,[o.fields[0]])}function Km(e,t,n,r){const o=t(n,r);return o.tag===1?new g(1,[o.fields[0]]):new g(0,[e(o.fields[0])])}function Xm(e,t){let n;const r=e;return n=o=>i=>Pc(0,r,o,i),o=>i=>jc(oe(3,s=>{let a;const l=t;return a=u=>c=>Pc(1,l,u,c),u=>c=>jc((d,f,p)=>Qm([s,d]),oe(2,a),u,c)}),oe(2,n),o,i)}function Ym(e){return bm(e,{Compare:Bt})}function Jm(e){return Om(e,{Compare:Bt})}function qm(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?O0((r,o)=>{const i=r[0];return o.tag===0?Bn(s=>st(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new g(0,[it()])):new g(1,[[t,new k(0,["an object",n])]])}function eg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?qo((o,i)=>{if(o.tag===0){let s;if(s=nr(1,e,[n])(i),s.tag===0){const l=t(n+"."+i,r[i]);return l.tag===0?new g(0,[st([s.fields[0],l.fields[0]],o.fields[0])]):new g(1,[l.fields[0]])}else return new g(1,[s.fields[0]])}else return o},new g(0,[it()]),Object.keys(r)):new g(1,[[n,new k(0,["an object",r])]])}function Hc(e,t,n,r){let o,i,s,a,l;return t.length!==r.length?new g(1,[[n,new k(6,[(o=t.length|0,i=r.length|0,s=Pn(tn("Expected %i %s but got %i")),a=s(o),l=a(e),l(i))])]]):B0((u,c,d)=>d.tag===0?Bn(f=>st(f,d.fields[0]),c(n)(u)):d,r,t,new g(0,[it()]))}function Lc(e,t,n,r,o,i){const s=M0(a=>ur(a)===r,ml(n));if(s!=null){const a=s;return i.length===0?new g(0,[vl(a,[])]):Bn(l=>vl(a,Qo(l)),Hc("union fields",rn(l=>Wt(e,t,!1,l[1]),bl(a),null),o,i))}else return new g(1,[[o,new k(6,["Cannot find case "+r+" in "+te(n)])]])}function Vc(e,t,n,r){let o,i;const s=new Je(Me());let a;const l=te(r);a=gc(l,s,e);let u;if(yl(r)){const c=rn(d=>[Pl(t,ur(d)),Wt(a,t,!1,d[1])],Qr(r),null);u=d=>f=>Bn(p=>i0(r,Qo(p)),qm(c,d,f))}else if(wl(r))u=c=>d=>{if(typeof d=="string")return Lc(a,t,r,d,c,[]);if(Array.isArray(d)){const f=d;return Lc(a,t,r,f[0],c,f.slice(1,f.length))}else return new g(1,[[c,new k(0,["a string or array",d])]])};else if(n)u=c=>d=>new g(1,[[c,new k(2,["an extra coder for "+te(r),d])]]);else throw new Error((o=te(r),i=Pn(tn("Cannot generate auto decoder for %s. Please pass an extra decoder.")),i(o)));return s.contents=u,u}function Wt(e,t,n,r){let o,i,s;const a=te(r),l=wc(a,e);if(l==null)if(fl(r)){const u=Wt(e,t,!1,Zr(r));return c=>d=>$c(oe(2,u),c,d)}else if(Ki(r)){const u=te(hl(r));if(u==="System.SByte")return c=>d=>{const f=r,p=c,h=d,w=Fc(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0]|0;return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,y.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Byte")return c=>d=>{const f=r,p=c,h=d,w=Ic(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0];return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,y.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int16")return c=>d=>{const f=r,p=c,h=d,w=Mc(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0]|0;return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,Yd(y))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt16")return c=>d=>{const f=r,p=c,h=d,w=Rc(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0];return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,y.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.Int32")return c=>d=>{const f=r,p=c,h=d,w=Nc(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0]|0;return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,hn(y))]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};if(u==="System.UInt32")return c=>d=>{const f=r,p=c,h=d,w=Oc(p)(h);if(w.tag===1)return new g(1,[w.fields[0]]);{const y=w.fields[0];return yr(y,fr(f),{Equals:(b,_)=>b===_,GetHashCode:Ct})?new g(0,[dr(f,y.toString())]):new g(1,[[p,new k(1,[te(f),h,"Unkown value provided for the enum"])]])}};{const c=te(r),f=kl(tn(`Cannot generate auto decoder for %s.
|
|
13
13
|
Thoth.Json.Net only support the folluwing enum types:
|
|
14
14
|
- sbyte
|
|
15
15
|
- byte
|
|
@@ -18,8 +18,8 @@ Thoth.Json.Net only support the folluwing enum types:
|
|
|
18
18
|
- int
|
|
19
19
|
- uint32
|
|
20
20
|
If you can't use one of these types, please pass an extra decoder.
|
|
21
|
-
`))(c);return p=>f(p)}}else if(wl(r))if(qi(r)){const u=sn(c=>Zt(e,t,!1,c),_l(r),null);return c=>d=>Array.isArray(d)?an(f=>d0(Yo(f)),Gc("tuple elements",u,c,d)):new g(1,[[c,new k(0,["an array",d])]])}else{const u=te(yl(r));if(u==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=Zt(e,t,!0,At(r)[0]),c=>d=>Jm(oe(2,o),c,d);if(u==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=Zt(e,t,!1,At(r)[0]),c=>d=>Vc(oe(2,i),c,d);if(u==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const c=Zt(e,t,!1,At(r)[0]),d=Zt(e,t,!1,At(r)[1]);let f;const p=x([h=>y=>sg(oe(2,c),oe(2,d),h,y),(s=ng(oe(2,c),oe(2,d)),h=>y=>Vc(oe(2,s),h,y))]);return f=h=>y=>qm(p,h,y),h=>y=>tg(rg,oe(2,f),h,y)}else if(u==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const c=Zt(e,t,!1,At(r)[0]);return d=>f=>{const p=Uc(oe(2,c),d,f);return p.tag===0?new g(0,[og(p.fields[0])]):new g(1,[p.fields[0]])}}else return Zc(e,t,n,r)}else return a==="System.Boolean"?u=>c=>Wm(u,c):a==="Microsoft.FSharp.Core.Unit"?u=>c=>Gm(u,c):a==="System.String"?u=>c=>Um(u,c):a==="System.SByte"?Oc:a==="System.Byte"?Pc:a==="System.Int16"?Bc:a==="System.UInt16"?$c:a==="System.Int32"?jc:a==="System.UInt32"?Hc:a==="System.Double"?u=>c=>Zm(u,c):a==="System.Single"?u=>c=>Qm(u,c):a==="System.DateTime"?u=>c=>Km(u,c):a==="System.DateTimeOffset"?u=>c=>Xm(u,c):a==="System.TimeSpan"?u=>c=>Ym(u,c):a==="System.Guid"?u=>c=>zm(u,c):a==="System.Object"?u=>c=>new g(0,[c]):Zc(e,t,n,r);else{const u=l;return c=>d=>u.contents(c)(d)}}function ag(e){return e!=null?xc((t,n)=>new Je(n[1]),e.Coders):As({Compare:Nn})}function Gn(e,t,n){const r=Qo(t,new Tt(0,[]));return Zt(ag(n),r,!1,e)}class ii extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function lg(e){return new ii(0,[e])}const cg=new ii(0,["BasicProfile.ImportData"]),ug=new ii(0,["BasicProfile.AccessConfig"]),fg=new ii(0,["BasicProfile.EditConfig"]);function Qc(e){if(ss(cg,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function Kc(e){if(ss(ug,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function Es(e){if(ss(fg,e,{Equals:Ye,GetHashCode:Ui}))return ue(void 0)}function dg(e){return Es(e)!=null}class Xc extends ee{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function pg(e){let t;const n=Rl(e==null?"":e,["."],void 0,0);if(!H0((r,o)=>r===o,n,Me())&&n.length===3){const r=n[1],o=atob(r);t=zn(oe(2,Gn(i0(["Name",xt],["Roles",s0(xt)]),new Tt(1,[]),void 0)),o)}else t=new g(1,["Failed to identify the user"]);if(t.tag===1)return new Xc(void 0,it());{const r=t.fields[0];return new Xc(r.Name,x(sn(lg,r.Roles,null)))}}class Yc{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 si extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,si.prototype)}}class ks{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>ks.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ln(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new si);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Bo(n))}});else try{e(t)}catch(n){t.onError(Bo(n))}}}function hg(e,t){return ln(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Bo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function mg(e){return ln(t=>t.onSuccess(e))}class gg{Bind(t,n){return hg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ln(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 mg(t)}ReturnFrom(t){return t}TryFinally(t,n){return ln(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 ln(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Bo(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 ln(t=>t.onSuccess(void 0))}}const v=new gg;function wg(e,t,n){return n.tag===1?t(n.fields[0]):e(n.fields[0])}class yg{constructor(){}}function bg(){return new yg}function vg(e,t){return new g(0,[t])}const _g=bg();class Ss extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function Ag(e){return new Ss(0,[e.fields[0]+1])}function xg(e,t){return new Ss(0,[Gi(Nn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new Ss(0,[0]);return e=n=>Cn(xg,t,n),n=>Ag(e(n))})();class Cg extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=a,this.StartTime=l}}function Eg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],Cg,()=>[["ImportId",Re],["User",xt],["Filename",xt],["NumberOfRecords",Re],["CompletedSuccessfully",Re],["CompletedFailed",Re],["NextRow",Yi(Re)],["StartTime",Kr("System.DateTime")]])}class kg extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=a,this.StopTime=l}}function Sg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],kg,()=>[["ImportId",Re],["User",xt],["Filename",xt],["NumberOfRecords",Re],["Succeeded",Re],["Failed",Re],["StartTime",Kr("System.DateTime")],["StopTime",Kr("System.DateTime")]])}class Jc extends ee{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function qc(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Jc,()=>[["ActiveImport",Yi(Eg())],["ImportHistory",Go(Sg())]])}new Jc(void 0,it());class Dg extends ee{constructor(t,n){super(),this.Column=t,this.Message=n}}function Fg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],Dg,()=>[["Column",xt],["Message",xt]])}class Tg extends ee{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function Ig(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],Tg,()=>[["RowId",Re],["FieldErrors",Go(Fg())]])}class Mg extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function Rg(){return hl("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],Mg,()=>[[],[],[],[["Item",xt]],[],[],[],[["Item",Go(Ig())]],[],[]])}class Ng extends ee{constructor(t,n,r,o,i,s,a,l,u,c){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=a,this.RemainingRecordCount=l|0,this.StartTime=u,this.StopTime=c}}function Og(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],Ng,()=>[["ImportId",Re],["User",xt],["Filename",xt],["TotalRecordCount",Re],["SucceededRecordCount",Re],["FailedRecordCount",Re],["FailedRecords",Go(Bg())],["RemainingRecordCount",Re],["StartTime",Kr("System.DateTime")],["StopTime",Yi(Kr("System.DateTime"))]])}class Pg extends ee{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Bg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],Pg,()=>[["RowId",Re],["Reason",xt]])}var uo,E,eu,Wn,tu,nu,Ds,ru,ai={},ou=[],$g=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,li=Array.isArray;function cn(e,t){for(var n in t)e[n]=t[n];return e}function iu(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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?uo.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 fo(e,s,r,o,null)}function fo(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,__h:null,constructor:void 0,__v:o==null?++eu:o};return o==null&&E.vnode!=null&&E.vnode(i),i}function Fs(){return{current:null}}function fe(e){return e.children}function Rt(e,t){this.props=e,this.context=t}function po(e,t){if(t==null)return e.__?po(e.__,e.__.__k.indexOf(e)+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"?po(e):null}function su(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 su(e)}}function Ts(e){(!e.__d&&(e.__d=!0)&&Wn.push(e)&&!ci.__r++||tu!==E.debounceRendering)&&((tu=E.debounceRendering)||nu)(ci)}function ci(){var e,t,n,r,o,i,s,a;for(Wn.sort(Ds);e=Wn.shift();)e.__d&&(t=Wn.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],(o=cn({},i)).__v=i.__v+1,Is(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?po(i):s,i.__h),hu(r,i),i.__e!=s&&su(i)),Wn.length>t&&Wn.sort(Ds));ci.__r=0}function au(e,t,n,r,o,i,s,a,l,u){var c,d,f,p,h,y,w,b=r&&r.__k||ou,_=b.length;for(n.__k=[],c=0;c<t.length;c++)if((p=n.__k[c]=(p=t[c])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?fo(null,p,null,null,p):li(p)?fo(fe,{children:p},null,null,null):p.__b>0?fo(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[c])===null||f&&p.key==f.key&&p.type===f.type)b[c]=void 0;else for(d=0;d<_;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}Is(e,p,f=f||ai,o,i,s,a,l,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(w||(w=[]),f.ref&&w.push(f.ref,null,p),w.push(d,p.__c||h,p)),h!=null?(y==null&&(y=h),typeof p.type=="function"&&p.__k===f.__k?p.__d=l=lu(p,l,e):l=cu(e,p,f,b,h,l),typeof n.type=="function"&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=po(f))}for(n.__e=y,c=_;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=uu(r).nextSibling),gu(b[c],b[c]));if(w)for(c=0;c<w.length;c++)mu(w[c],w[++c],w[++c])}function lu(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?lu(r,t,n):cu(n,r,r,o,r.__e,t));return t}function un(e,t){return t=t||[],e==null||typeof e=="boolean"||(li(e)?e.some(function(n){un(n,t)}):t.push(e)),t}function cu(e,t,n,r,o,i){var s,a,l;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function uu(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=uu(n)))return r}return null}function jg(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||ui(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||ui(e,i,t[i],n[i],r)}function fu(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||$g.test(t)?n:n+"px"}function ui(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||fu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?pu:du,i):e.removeEventListener(t,i?pu:du,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function du(e){return this.l[e.type+!1](E.event?E.event(e):e)}function pu(e){return this.l[e.type+!0](E.event?E.event(e):e)}function Is(e,t,n,r,o,i,s,a,l){var u,c,d,f,p,h,y,w,b,_,I,R,B,P,N,M=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=E.__b)&&u(t);try{e:if(typeof M=="function"){if(w=t.props,b=(u=M.contextType)&&r[u.__c],_=u?b?b.props.value:u.__:r,n.__c?y=(c=t.__c=n.__c).__=c.__E:("prototype"in M&&M.prototype.render?t.__c=c=new M(w,_):(t.__c=c=new Rt(w,_),c.constructor=M,c.render=Lg),b&&b.sub(c),c.props=w,c.state||(c.state={}),c.context=_,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=cn({},c.__s)),cn(c.__s,M.getDerivedStateFromProps(w,c.__s))),f=c.props,p=c.state,c.__v=t,d)M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(M.getDerivedStateFromProps==null&&w!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(w,_),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,_)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=w,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ae){ae&&(ae.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(w,c.__s,_),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,h)})}if(c.context=_,c.props=w,c.__P=e,R=E.__r,B=0,"prototype"in M&&M.prototype.render){for(c.state=c.__s,c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[]}else do c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++B<25);c.state=c.__s,c.getChildContext!=null&&(r=cn(cn({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(h=c.getSnapshotBeforeUpdate(f,p)),au(e,li(N=u!=null&&u.type===fe&&u.key==null?u.props.children:u)?N:[N],t,n,r,o,i,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),y&&(c.__E=c.__=null),c.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hg(n.__e,t,n,r,o,i,s,l);(u=E.diffed)&&u(t)}catch(ae){t.__v=null,(l||i!=null)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),E.__e(ae,t,n)}}function hu(e,t){E.__c&&E.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){E.__e(r,n.__v)}})}function Hg(e,t,n,r,o,i,s,a){var l,u,c,d=n.props,f=t.props,p=t.type,h=0;if(p==="svg"&&(o=!0),i!=null){for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,i[h]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,a=!1}if(p===null)d===f||a&&e.data===f||(e.data=f);else{if(i=i&&uo.call(e.childNodes),u=(d=n.props||ai).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!a){if(i!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(jg(e,f,d,o,a),c)t.__k=[];else if(au(e,li(h=t.props.children)?h:[h],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&po(n,0),a),i!=null)for(h=i.length;h--;)i[h]!=null&&iu(i[h]);a||("value"in f&&(h=f.value)!==void 0&&(h!==e.value||p==="progress"&&!h||p==="option"&&h!==d.value)&&ui(e,"value",h,d.value,!1),"checked"in f&&(h=f.checked)!==void 0&&h!==e.checked&&ui(e,"checked",h,d.checked,!1))}return e}function mu(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){E.__e(r,n)}}function gu(e,t,n){var r,o;if(E.unmount&&E.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||mu(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){E.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&gu(r[o],t,n||typeof e.type!="function");n||e.__e==null||iu(e.__e),e.__=e.__e=e.__d=void 0}function Lg(e,t,n){return this.constructor(e,n)}function Dn(e,t,n){var r,o,i;E.__&&E.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],Is(t,e=(!r&&n||t).__k=m(fe,null,[e]),o||ai,ai,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?uo.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),hu(i,e)}function Ms(e,t){Dn(e,t,Ms)}function Rs(e,t,n){var r,o,i,s,a=cn({},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?uo.call(arguments,2):n),fo(e.type,a,r||e.key,o||e.ref,null)}function ut(e,t){var n={__c:t="__cC"+ru++,__: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,Ts(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}uo=ou.slice,E={__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}},eu=0,Rt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=cn({},this.state),typeof e=="function"&&(e=e(cn({},n),this.props)),e&&cn(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ts(this))},Rt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ts(this))},Rt.prototype.render=fe,Wn=[],nu=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ds=function(e,t){return e.__v.__b-t.__v.__b},ci.__r=0,ru=0;var fn,J,Ns,wu,xr=0,yu=[],fi=[],bu=E.__b,vu=E.__r,_u=E.diffed,Au=E.__c,xu=E.unmount;function Zn(e,t){E.__h&&E.__h(J,e,xr||t),xr=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:fi}),n.__[e]}function Ae(e){return xr=1,ho(Su,e)}function ho(e,t,n){var r=Zn(fn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Su(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(f){return f.__c});if(c.every(function(f){return!f.__N}))return!i||i.call(this,a,l,u);var d=!1;return c.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};J.u=!0;var i=J.shouldComponentUpdate,s=J.componentWillUpdate;J.componentWillUpdate=function(a,l,u){if(this.__e){var c=i;i=void 0,o(a,l,u),i=c}s&&s.call(this,a,l,u)},J.shouldComponentUpdate=o}return r.__N||r.__}function W(e,t){var n=Zn(fn++,3);!E.__s&&Bs(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Cr(e,t){var n=Zn(fn++,4);!E.__s&&Bs(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function L(e){return xr=5,Q(function(){return{current:e}},[])}function Os(e,t,n){xr=6,Cr(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 Q(e,t){var n=Zn(fn++,7);return Bs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return xr=8,Q(function(){return e},t)}function Be(e){var t=J.context[e.__c],n=Zn(fn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function Cu(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Vg(e){var t=Zn(fn++,10),n=Ae();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 Eu(){var e=Zn(fn++,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 Ug(){for(var e;e=yu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(di),e.__H.__h.forEach(Ps),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){J=null,bu&&bu(e)},E.__r=function(e){vu&&vu(e),fn=0;var t=(J=e.__c).__H;t&&(Ns===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=fi,n.__N=n.i=void 0})):(t.__h.forEach(di),t.__h.forEach(Ps),t.__h=[],fn=0)),Ns=J},E.diffed=function(e){_u&&_u(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(yu.push(t)!==1&&wu===E.requestAnimationFrame||((wu=E.requestAnimationFrame)||zg)(Ug)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==fi&&(n.__=n.__V),n.i=void 0,n.__V=fi})),Ns=J=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(di),n.__h=n.__h.filter(function(r){return!r.__||Ps(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],E.__e(r,n.__v)}}),Au&&Au(e,t)},E.unmount=function(e){xu&&xu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{di(r)}catch(o){t=o}}),n.__H=void 0,t&&E.__e(t,n.__v))};var ku=typeof requestAnimationFrame=="function";function zg(e){var t,n=function(){clearTimeout(r),ku&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ku&&(t=requestAnimationFrame(n))}function di(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function Ps(e){var t=J;e.__c=e.__(),J=t}function Bs(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Su(e,t){return typeof t=="function"?t(e):t}function Du(e,t){for(var n in t)e[n]=t[n];return e}function $s(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 js(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function pi(e){this.props=e}function Fu(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:$s(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(pi.prototype=new Rt).isPureReactComponent=!0,pi.prototype.shouldComponentUpdate=function(e,t){return $s(this.props,e)||$s(this.state,t)};var Tu=E.__b;E.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tu&&Tu(e)};var Gg=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function hi(e){function t(n){var r=Du({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Gg,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Iu=function(e,t){return e==null?null:un(un(e).map(t))},Mu={map:Iu,forEach:Iu,count:function(e){return e?un(e).length:0},only:function(e){var t=un(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:un},Wg=E.__e;E.__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)}Wg(e,t,n,r)};var Ru=E.unmount;function Nu(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=Du({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Nu(r,t,n)})),e}function Ou(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ou(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function mo(){this.__u=0,this.t=null,this.__b=null}function Pu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Bu(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 m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function Er(){this.u=null,this.o=null}E.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Ru&&Ru(e)},(mo.prototype=new Rt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Pu(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]=Ou(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},mo.prototype.componentWillUnmount=function(){this.t=[]},mo.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]=Nu(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(fe,null,e.fallback);return o&&(o.__h=null),[m(fe,null,t.__a?null:e.children),o]};var $u=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 Zg(e){return this.getChildContext=function(){return e.context},e.children}function Qg(e){var t=this,n=e.i;t.componentWillUnmount=function(){Dn(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(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)}}),Dn(m(Zg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Hs(e,t){var n=m(Qg,{__v:e,i:t});return n.containerInfo=t,n}(Er.prototype=new Rt).__a=function(e){var t=this,n=Pu(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),$u(t,e,r)):o()};n?n(i):i()}},Er.prototype.render=function(e){this.u=null,this.o=new Map;var t=un(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},Er.prototype.componentDidUpdate=Er.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){$u(e,n,t)})};var ju=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Kg=/^(?: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]/,Xg=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yg=/[A-Z0-9]/g,Jg=typeof document<"u",qg=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Hu(e,t,n){return t.__k==null&&(t.textContent=""),Dn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Lu(e,t,n){return Ms(e,t),typeof n=="function"&&n(),e?e.__c:null}Rt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Rt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Vu=E.event;function ew(){}function tw(){return this.cancelBubble}function nw(){return this.defaultPrevented}E.event=function(e){return Vu&&(e=Vu(e)),e.persist=ew,e.isPropagationStopped=tw,e.isDefaultPrevented=nw,e.nativeEvent=e};var Ls,rw={enumerable:!1,configurable:!0,get:function(){return this.class}},Uu=E.vnode;E.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||Jg&&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==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||qg(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Xg.test(i)?i=a:r.indexOf("-")===-1&&Kg.test(i)?i=i.replace(Yg,"-$&").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=un(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=un(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",rw)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ju,Uu&&Uu(e)};var zu=E.__r;E.__r=function(e){zu&&zu(e),Ls=e.__c};var Gu=E.diffed;E.diffed=function(e){Gu&&Gu(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),Ls=null};var Wu={ReactCurrentDispatcher:{current:{readContext:function(e){return Ls.__n[e.__c].props.value}}}},ow="17.0.2";function Zu(e){return m.bind(null,e)}function mi(e){return!!e&&e.$$typeof===ju}function Vs(e){return mi(e)?Rs.apply(null,arguments):e}function Qu(e){return!!e.__k&&(Dn(null,e),!0)}function Ku(e){return e&&(e.base||e.nodeType===1&&e)||null}var Xu=function(e,t){return e(t)},Yu=function(e,t){return e(t)},Ju=fe;function Us(e){e()}function qu(e){return e}function ef(){return[!1,Us]}var tf=Cr;function nf(e,t){var n=t(),r=Ae({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Cr(function(){o.__=n,o.v=t,js(o.__,t())||i({h:o})},[e,n,t]),W(function(){return js(o.__,o.v())||i({h:o}),e(function(){js(o.__,o.v())||i({h:o})})},[e]),n}var F={useState:Ae,useId:Eu,useReducer:ho,useEffect:W,useLayoutEffect:Cr,useInsertionEffect:tf,useTransition:ef,useDeferredValue:qu,useSyncExternalStore:nf,startTransition:Us,useRef:L,useImperativeHandle:Os,useMemo:Q,useCallback:de,useContext:Be,useDebugValue:Cu,version:"17.0.2",Children:Mu,render:Hu,hydrate:Lu,unmountComponentAtNode:Qu,createPortal:Hs,createElement:m,createContext:ut,createFactory:Zu,cloneElement:Vs,createRef:Fs,Fragment:fe,isValidElement:mi,findDOMNode:Ku,Component:Rt,PureComponent:pi,memo:Fu,forwardRef:hi,flushSync:Yu,unstable_batchedUpdates:Xu,StrictMode:Ju,Suspense:mo,SuspenseList:Er,lazy:Bu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wu};const zs=Object.freeze(Object.defineProperty({__proto__:null,Children:Mu,PureComponent:pi,StrictMode:Ju,Suspense:mo,SuspenseList:Er,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wu,cloneElement:Vs,createFactory:Zu,createPortal:Hs,default:F,findDOMNode:Ku,flushSync:Yu,forwardRef:hi,hydrate:Lu,isValidElement:mi,lazy:Bu,memo:Fu,render:Hu,startTransition:Us,unmountComponentAtNode:Qu,unstable_batchedUpdates:Xu,useDeferredValue:qu,useInsertionEffect:tf,useSyncExternalStore:nf,useTransition:ef,version:ow,Component:Rt,Fragment:fe,createContext:ut,createElement:m,createRef:Fs,useCallback:de,useContext:Be,useDebugValue:Cu,useEffect:W,useErrorBoundary:Vg,useId:Eu,useImperativeHandle:Os,useLayoutEffect:Cr,useMemo:Q,useReducer:ho,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),iw=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},C=F,rf=iw;function Gs(e){return{Dispose(){e()}}}function of(e){return C.useState(e)}function sf(e,t){rf(e,t)}function sw(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),sf(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ue(e()),o=r.current?t.current:void 0),{Dispose(){bs(i=>{re(i)},M0(o))}}},[])}function af(e,t){rf(n=>(e(),Gs(()=>{})),t)}function lf(e){return C.useRef(e)}function go(e){return C.useState(e)}function Ws(e){}function aw(e){const t=new Yc(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function lw(e){e.cancel()}const cw=new Yc;function uw(e){return ln(t=>{e({onSuccess:n=>t.onSuccess(q0(n)),onError:n=>t.onSuccess(eh(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function fw(e){return ln(t=>e([t.onSuccess,t.onError,t.onCancel]))}function dw(e){return ln(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new si)})})}function pw(e,t){return hw(e,t)}function cf(e,t){return pw(e,t)}function hw(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new ks;e({onSuccess:t||Ws,onError:n||Ws,onCancel:r||Ws,cancelToken:o||cw,trampoline:i})}class Qt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function mw(e,t){const n=go(new Qt(0,[])),r=n[1];let o;const i=lf(aw()),s=lf(i.current);sw(()=>Gs(()=>{lw(i.current)})),o=s;const a=v.Delay(()=>v.TryWith(v.Delay(()=>(r(new Qt(1,[])),v.Bind(e,l=>(r(new Qt(2,[l])),v.Zero())))),l=>(r(new Qt(3,[l])),v.Zero())));return af(()=>{cf(a,o.current)},t),n[0]}class We extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class gw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function ww(e,t){t.Subscribe(new gw(e))}class yw{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class bw{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 yw}Elapsed(){return this._elapsed}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 vw(e,t){console.error(ue(e),t)}function _w(e,t){let n,r=new bw(e);r.AutoReset=!1,n=r,ww(t,n.Elapsed()),n.Enabled=!0,n.Start()}function uf(e,t){Bl(n=>{n(e)},t)}function et(){return it()}function wo(e){return $l(e)}function Nt(e){return Ee(t=>{t(e)})}function yo(e,t,n,r){return Ee(o=>{e(v.Delay(()=>v.Bind(uw(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function kr(e){_w(0,t=>{cf(e)})}class Qn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Import","Configuration"]}}class gi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function ff(e){return e.tag===1?"Configuration":e.fields[0].tag===1?"Past Imports":"Profile Import"}class Zs extends ee{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class bo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}function Aw(){return[new Zs(new Qn(0,[new gi(0,[])]),new Qt(0,[])),Nt(new bo(1,[new We(0,[void 0])]))]}function xw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Zs(n.CurrentTab,new Qt(2,[t.fields[0].fields[0]])),et()]:[n,yo(r=>{kr(r)},e,void 0,r=>new bo(1,[new We(1,[r])]))]:[new Zs(t.fields[0],n.AccountImports),et()]}class Cw{constructor(){}}function Ew(){return new Cw}function Qs(e,t){const n=vg(_g,t);return v.Return(n)}function Kt(e,t){return v.Delay(t)}const ft=Ew();class Kn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class df extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Ks extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class vo extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Sr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class pf extends ee{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 hf(e){return new df(0,["Content-Type",e])}function Dr(e){return new df(0,["Authorization",e])}const Xn=new vo("",new Kn(0,[]),it(),!1,void 0,void 0,void 0,new Ks(0,[]));new pf(0,"","","",As({Compare:Nn}),new Sr(0,[""]));function mf(e,t){return S0(t)?[t]:Rl(t,[e],void 0,0)}function kw(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 Fr(e){return new vo(e,Xn.method,Xn.headers,Xn.withCredentials,Xn.overridenMimeType,Xn.overridenResponseType,Xn.timeout,Xn.content)}function Tr(e,t){return new vo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Fn(e,t){return new vo(t.url,t.method,Jo(t.headers,Ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function gf(e,t){return new vo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Ir(e){return fw(t=>{const n=new XMLHttpRequest;n.open(kw(e.method),e.url),n.onreadystatechange=()=>{let l,u,c,d,f,p,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),c=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new Sr(0,[n.responseText]):p==="text"?new Sr(0,[n.responseText]):p==="arraybuffer"?new Sr(2,[n.response]):p==="blob"?new Sr(1,[n.response]):new Sr(3,[n.response])),h=km(j0(y=>{const w=x(mf(":",y));if(!U(w))return[S(w).toLocaleLowerCase(),on(":",z(w)).trim()]},mf(`\r
|
|
22
|
-
`,n.getAllResponseHeaders()),null),{Compare:
|
|
21
|
+
`))(c);return p=>f(p)}}else if(dl(r))if(Xi(r)){const u=rn(c=>Wt(e,t,!1,c),gl(r),null);return c=>d=>Array.isArray(d)?Bn(f=>s0(Qo(f)),Hc("tuple elements",u,c,d)):new g(1,[[c,new k(0,["an array",d])]])}else{const u=te(pl(r));if(u==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=Wt(e,t,!0,_t(r)[0]),c=>d=>Wm(oe(2,o),c,d);if(u==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=Wt(e,t,!1,_t(r)[0]),c=>d=>Bc(oe(2,i),c,d);if(u==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const c=Wt(e,t,!1,_t(r)[0]),d=Wt(e,t,!1,_t(r)[1]);let f;const p=x([h=>w=>eg(oe(2,c),oe(2,d),h,w),(s=Xm(oe(2,c),oe(2,d)),h=>w=>Bc(oe(2,s),h,w))]);return f=h=>w=>Zm(p,h,w),h=>w=>Km(Ym,oe(2,f),h,w)}else if(u==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const c=Wt(e,t,!1,_t(r)[0]);return d=>f=>{const p=$c(oe(2,c),d,f);return p.tag===0?new g(0,[Jm(p.fields[0])]):new g(1,[p.fields[0]])}}else return Vc(e,t,n,r)}else return a==="System.Boolean"?u=>c=>Hm(u,c):a==="Microsoft.FSharp.Core.Unit"?u=>c=>jm(u,c):a==="System.String"?u=>c=>Bm(u,c):a==="System.SByte"?Fc:a==="System.Byte"?Ic:a==="System.Int16"?Mc:a==="System.UInt16"?Rc:a==="System.Int32"?Nc:a==="System.UInt32"?Oc:a==="System.Double"?u=>c=>Lm(u,c):a==="System.Single"?u=>c=>Vm(u,c):a==="System.DateTime"?u=>c=>Um(u,c):a==="System.DateTimeOffset"?u=>c=>zm(u,c):a==="System.TimeSpan"?u=>c=>Gm(u,c):a==="System.Guid"?u=>c=>$m(u,c):a==="System.Object"?u=>c=>new g(0,[c]):Vc(e,t,n,r);else{const u=l;return c=>d=>u.contents(c)(d)}}function tg(e){return e!=null?yc((t,n)=>new Je(n[1]),e.Coders):ys({Compare:In})}function Un(e,t,n){const r=Go(t,new Tt(0,[]));return Wt(tg(n),r,!1,e)}class ni extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function ng(e){return new ni(0,[e])}const rg=new ni(0,["BasicProfile.ImportData"]),og=new ni(0,["BasicProfile.AccessConfig"]),ig=new ni(0,["BasicProfile.EditConfig"]);function Uc(e){if(rs(rg,e,{Equals:Ye,GetHashCode:Hi}))return ue(void 0)}function zc(e){if(rs(og,e,{Equals:Ye,GetHashCode:Hi}))return ue(void 0)}function _s(e){if(rs(ig,e,{Equals:Ye,GetHashCode:Hi}))return ue(void 0)}function sg(e){return _s(e)!=null}class Gc extends ee{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function ag(e){let t;const n=Dl(e==null?"":e,["."],void 0,0);if(!N0((r,o)=>r===o,n,Me())&&n.length===3){const r=n[1],o=atob(r);t=Vn(oe(2,Un(qp(["Name",At],["Roles",e0(At)]),new Tt(1,[]),void 0)),o)}else t=new g(1,["Failed to identify the user"]);if(t.tag===1)return new Gc(void 0,it());{const r=t.fields[0];return new Gc(r.Name,x(rn(ng,r.Roles,null)))}}class As extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function lg(e){return new As(0,[e.fields[0]+1])}function cg(e,t){return new As(0,[Vi(In,e.fields[0],t.fields[0])])}(()=>{let e;const t=new As(0,[0]);return e=n=>_n(cg,t,n),n=>lg(e(n))})();class ug extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedSuccessfully=i|0,this.CompletedFailed=s|0,this.NextRow=a,this.StartTime=l}}function fg(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],ug,()=>[["ImportId",Re],["User",At],["Filename",At],["NumberOfRecords",Re],["CompletedSuccessfully",Re],["CompletedFailed",Re],["NextRow",Qi(Re)],["StartTime",Wr("System.DateTime")]])}class dg extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.Succeeded=i|0,this.Failed=s|0,this.StartTime=a,this.StopTime=l}}function pg(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],dg,()=>[["ImportId",Re],["User",At],["Filename",At],["NumberOfRecords",Re],["Succeeded",Re],["Failed",Re],["StartTime",Wr("System.DateTime")],["StopTime",Wr("System.DateTime")]])}class Wc extends ee{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zc(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Wc,()=>[["ActiveImport",Qi(fg())],["ImportHistory",Vo(pg())]])}new Wc(void 0,it());class hg extends ee{constructor(t,n){super(),this.Column=t,this.Message=n}}function mg(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],hg,()=>[["Column",At],["Message",At]])}class gg extends ee{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function wg(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],gg,()=>[["RowId",Re],["FieldErrors",Vo(mg())]])}class yg extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function bg(){return cl("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],yg,()=>[[],[],[],[["Item",At]],[],[],[],[["Item",Vo(wg())]],[],[]])}class vg extends ee{constructor(t,n,r,o,i,s,a,l,u,c){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.TotalRecordCount=o|0,this.SucceededRecordCount=i|0,this.FailedRecordCount=s|0,this.FailedRecords=a,this.RemainingRecordCount=l|0,this.StartTime=u,this.StopTime=c}}function _g(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],vg,()=>[["ImportId",Re],["User",At],["Filename",At],["TotalRecordCount",Re],["SucceededRecordCount",Re],["FailedRecordCount",Re],["FailedRecords",Vo(xg())],["RemainingRecordCount",Re],["StartTime",Wr("System.DateTime")],["StopTime",Qi(Wr("System.DateTime"))]])}class Ag extends ee{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function xg(){return en("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],Ag,()=>[["RowId",Re],["Reason",At]])}var ao,E,Qc,zn,Kc,Xc,xs,Yc,ri={},Jc=[],Cg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,oi=Array.isArray;function on(e,t){for(var n in t)e[n]=t[n];return e}function qc(e){var t=e.parentNode;t&&t.removeChild(e)}function m(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?ao.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 lo(e,s,r,o,null)}function lo(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,__h:null,constructor:void 0,__v:o==null?++Qc:o};return o==null&&E.vnode!=null&&E.vnode(i),i}function Cs(){return{current:null}}function fe(e){return e.children}function Mt(e,t){this.props=e,this.context=t}function co(e,t){if(t==null)return e.__?co(e.__,e.__.__k.indexOf(e)+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"?co(e):null}function eu(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 eu(e)}}function Es(e){(!e.__d&&(e.__d=!0)&&zn.push(e)&&!ii.__r++||Kc!==E.debounceRendering)&&((Kc=E.debounceRendering)||Xc)(ii)}function ii(){var e,t,n,r,o,i,s,a;for(zn.sort(xs);e=zn.shift();)e.__d&&(t=zn.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],(o=on({},i)).__v=i.__v+1,ks(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?co(i):s,i.__h),lu(r,i),i.__e!=s&&eu(i)),zn.length>t&&zn.sort(xs));ii.__r=0}function tu(e,t,n,r,o,i,s,a,l,u){var c,d,f,p,h,w,y,b=r&&r.__k||Jc,_=b.length;for(n.__k=[],c=0;c<t.length;c++)if((p=n.__k[c]=(p=t[c])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?lo(null,p,null,null,p):oi(p)?lo(fe,{children:p},null,null,null):p.__b>0?lo(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(f=b[c])===null||f&&p.key==f.key&&p.type===f.type)b[c]=void 0;else for(d=0;d<_;d++){if((f=b[d])&&p.key==f.key&&p.type===f.type){b[d]=void 0;break}f=null}ks(e,p,f=f||ri,o,i,s,a,l,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(y||(y=[]),f.ref&&y.push(f.ref,null,p),y.push(d,p.__c||h,p)),h!=null?(w==null&&(w=h),typeof p.type=="function"&&p.__k===f.__k?p.__d=l=nu(p,l,e):l=ru(e,p,f,b,h,l),typeof n.type=="function"&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=co(f))}for(n.__e=w,c=_;c--;)b[c]!=null&&(typeof n.type=="function"&&b[c].__e!=null&&b[c].__e==n.__d&&(n.__d=ou(r).nextSibling),uu(b[c],b[c]));if(y)for(c=0;c<y.length;c++)cu(y[c],y[++c],y[++c])}function nu(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t=typeof r.type=="function"?nu(r,t,n):ru(n,r,r,o,r.__e,t));return t}function sn(e,t){return t=t||[],e==null||typeof e=="boolean"||(oi(e)?e.some(function(n){sn(n,t)}):t.push(e)),t}function ru(e,t,n,r,o,i){var s,a,l;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||o!=i||o.parentNode==null)e:if(i==null||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;e.insertBefore(o,i),s=i}return s!==void 0?s:o.nextSibling}function ou(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=ou(n)))return r}return null}function Eg(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||si(e,i,null,n[i],r);for(i in t)o&&typeof t[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||n[i]===t[i]||si(e,i,t[i],n[i],r)}function iu(e,t,n){t[0]==="-"?e.setProperty(t,n==null?"":n):e[t]=n==null?"":typeof n!="number"||Cg.test(t)?n:n+"px"}function si(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||iu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||iu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?au:su,i):e.removeEventListener(t,i?au:su,i);else if(t!=="dangerouslySetInnerHTML"){if(o)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 in e)try{e[t]=n==null?"":n;break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function su(e){return this.l[e.type+!1](E.event?E.event(e):e)}function au(e){return this.l[e.type+!0](E.event?E.event(e):e)}function ks(e,t,n,r,o,i,s,a,l){var u,c,d,f,p,h,w,y,b,_,I,R,B,P,N,M=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=E.__b)&&u(t);try{e:if(typeof M=="function"){if(y=t.props,b=(u=M.contextType)&&r[u.__c],_=u?b?b.props.value:u.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:("prototype"in M&&M.prototype.render?t.__c=c=new M(y,_):(t.__c=c=new Mt(y,_),c.constructor=M,c.render=Sg),b&&b.sub(c),c.props=y,c.state||(c.state={}),c.context=_,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=on({},c.__s)),on(c.__s,M.getDerivedStateFromProps(y,c.__s))),f=c.props,p=c.state,c.__v=t,d)M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(M.getDerivedStateFromProps==null&&y!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(y,_),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(y,c.__s,_)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=y,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(ae){ae&&(ae.__=t)}),I=0;I<c._sb.length;I++)c.__h.push(c._sb[I]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(y,c.__s,_),c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,p,h)})}if(c.context=_,c.props=y,c.__P=e,R=E.__r,B=0,"prototype"in M&&M.prototype.render){for(c.state=c.__s,c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),P=0;P<c._sb.length;P++)c.__h.push(c._sb[P]);c._sb=[]}else do c.__d=!1,R&&R(t),u=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++B<25);c.state=c.__s,c.getChildContext!=null&&(r=on(on({},r),c.getChildContext())),d||c.getSnapshotBeforeUpdate==null||(h=c.getSnapshotBeforeUpdate(f,p)),tu(e,oi(N=u!=null&&u.type===fe&&u.key==null?u.props.children:u)?N:[N],t,n,r,o,i,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),w&&(c.__E=c.__=null),c.__e=!1}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=kg(n.__e,t,n,r,o,i,s,l);(u=E.diffed)&&u(t)}catch(ae){t.__v=null,(l||i!=null)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),E.__e(ae,t,n)}}function lu(e,t){E.__c&&E.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){E.__e(r,n.__v)}})}function kg(e,t,n,r,o,i,s,a){var l,u,c,d=n.props,f=t.props,p=t.type,h=0;if(p==="svg"&&(o=!0),i!=null){for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!p&&(p?l.localName===p:l.nodeType===3)){e=l,i[h]=null;break}}if(e==null){if(p===null)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,a=!1}if(p===null)d===f||a&&e.data===f||(e.data=f);else{if(i=i&&ao.call(e.childNodes),u=(d=n.props||ri).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!a){if(i!=null)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(Eg(e,f,d,o,a),c)t.__k=[];else if(tu(e,oi(h=t.props.children)?h:[h],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&co(n,0),a),i!=null)for(h=i.length;h--;)i[h]!=null&&qc(i[h]);a||("value"in f&&(h=f.value)!==void 0&&(h!==e.value||p==="progress"&&!h||p==="option"&&h!==d.value)&&si(e,"value",h,d.value,!1),"checked"in f&&(h=f.checked)!==void 0&&h!==e.checked&&si(e,"checked",h,d.checked,!1))}return e}function cu(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){E.__e(r,n)}}function uu(e,t,n){var r,o;if(E.unmount&&E.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||cu(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){E.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&uu(r[o],t,n||typeof e.type!="function");n||e.__e==null||qc(e.__e),e.__=e.__e=e.__d=void 0}function Sg(e,t,n){return this.constructor(e,n)}function En(e,t,n){var r,o,i;E.__&&E.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],ks(t,e=(!r&&n||t).__k=m(fe,null,[e]),o||ri,ri,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?ao.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),lu(i,e)}function Ss(e,t){En(e,t,Ss)}function Ds(e,t,n){var r,o,i,s,a=on({},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?ao.call(arguments,2):n),lo(e.type,a,r||e.key,o||e.ref,null)}function ut(e,t){var n={__c:t="__cC"+Yc++,__: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,Es(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}ao=Jc.slice,E={__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}},Qc=0,Mt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=on({},this.state),typeof e=="function"&&(e=e(on({},n),this.props)),e&&on(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Es(this))},Mt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Es(this))},Mt.prototype.render=fe,zn=[],Xc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,xs=function(e,t){return e.__v.__b-t.__v.__b},ii.__r=0,Yc=0;var an,J,Ts,fu,_r=0,du=[],ai=[],pu=E.__b,hu=E.__r,mu=E.diffed,gu=E.__c,wu=E.unmount;function Gn(e,t){E.__h&&E.__h(J,e,_r||t),_r=0;var n=J.__H||(J.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ai}),n.__[e]}function Ae(e){return _r=1,uo(_u,e)}function uo(e,t,n){var r=Gn(an++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):_u(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=J,!J.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(f){return f.__c});if(c.every(function(f){return!f.__N}))return!i||i.call(this,a,l,u);var d=!1;return c.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};J.u=!0;var i=J.shouldComponentUpdate,s=J.componentWillUpdate;J.componentWillUpdate=function(a,l,u){if(this.__e){var c=i;i=void 0,o(a,l,u),i=c}s&&s.call(this,a,l,u)},J.shouldComponentUpdate=o}return r.__N||r.__}function W(e,t){var n=Gn(an++,3);!E.__s&&Ms(n.__H,t)&&(n.__=e,n.i=t,J.__H.__h.push(n))}function Ar(e,t){var n=Gn(an++,4);!E.__s&&Ms(n.__H,t)&&(n.__=e,n.i=t,J.__h.push(n))}function L(e){return _r=5,Q(function(){return{current:e}},[])}function Fs(e,t,n){_r=6,Ar(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 Q(e,t){var n=Gn(an++,7);return Ms(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function de(e,t){return _r=8,Q(function(){return e},t)}function Be(e){var t=J.context[e.__c],n=Gn(an++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(J)),t.props.value):e.__}function yu(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Dg(e){var t=Gn(an++,10),n=Ae();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 bu(){var e=Gn(an++,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 Tg(){for(var e;e=du.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(li),e.__H.__h.forEach(Is),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){J=null,pu&&pu(e)},E.__r=function(e){hu&&hu(e),an=0;var t=(J=e.__c).__H;t&&(Ts===J?(t.__h=[],J.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ai,n.__N=n.i=void 0})):(t.__h.forEach(li),t.__h.forEach(Is),t.__h=[],an=0)),Ts=J},E.diffed=function(e){mu&&mu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(du.push(t)!==1&&fu===E.requestAnimationFrame||((fu=E.requestAnimationFrame)||Fg)(Tg)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ai&&(n.__=n.__V),n.i=void 0,n.__V=ai})),Ts=J=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(li),n.__h=n.__h.filter(function(r){return!r.__||Is(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],E.__e(r,n.__v)}}),gu&&gu(e,t)},E.unmount=function(e){wu&&wu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{li(r)}catch(o){t=o}}),n.__H=void 0,t&&E.__e(t,n.__v))};var vu=typeof requestAnimationFrame=="function";function Fg(e){var t,n=function(){clearTimeout(r),vu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);vu&&(t=requestAnimationFrame(n))}function li(e){var t=J,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),J=t}function Is(e){var t=J;e.__c=e.__(),J=t}function Ms(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function _u(e,t){return typeof t=="function"?t(e):t}function Au(e,t){for(var n in t)e[n]=t[n];return e}function Rs(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 Ns(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ci(e){this.props=e}function xu(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:Rs(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ci.prototype=new Mt).isPureReactComponent=!0,ci.prototype.shouldComponentUpdate=function(e,t){return Rs(this.props,e)||Rs(this.state,t)};var Cu=E.__b;E.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cu&&Cu(e)};var Ig=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ui(e){function t(n){var r=Au({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ig,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Eu=function(e,t){return e==null?null:sn(sn(e).map(t))},ku={map:Eu,forEach:Eu,count:function(e){return e?sn(e).length:0},only:function(e){var t=sn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:sn},Mg=E.__e;E.__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)}Mg(e,t,n,r)};var Su=E.unmount;function Du(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=Au({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Du(r,t,n)})),e}function Tu(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Tu(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function fo(){this.__u=0,this.t=null,this.__b=null}function Fu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Iu(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 m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function xr(){this.u=null,this.o=null}E.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Su&&Su(e)},(fo.prototype=new Mt).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=Fu(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]=Tu(u,u.__c.__P,u.__c.__O)}var c;for(r.setState({__a:r.__b=null});c=r.t.pop();)c.forceUpdate()}},l=t.__h===!0;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},fo.prototype.componentWillUnmount=function(){this.t=[]},fo.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]=Du(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(fe,null,e.fallback);return o&&(o.__h=null),[m(fe,null,t.__a?null:e.children),o]};var Mu=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 Rg(e){return this.getChildContext=function(){return e.context},e.children}function Ng(e){var t=this,n=e.i;t.componentWillUnmount=function(){En(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(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)}}),En(m(Rg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Os(e,t){var n=m(Ng,{__v:e,i:t});return n.containerInfo=t,n}(xr.prototype=new Mt).__a=function(e){var t=this,n=Fu(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Mu(t,e,r)):o()};n?n(i):i()}},xr.prototype.render=function(e){this.u=null,this.o=new Map;var t=sn(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},xr.prototype.componentDidUpdate=xr.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Mu(e,n,t)})};var Ru=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Og=/^(?: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]/,Pg=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Bg=/[A-Z0-9]/g,$g=typeof document<"u",jg=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Nu(e,t,n){return t.__k==null&&(t.textContent=""),En(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ou(e,t,n){return Ss(e,t),typeof n=="function"&&n(),e?e.__c:null}Mt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Mt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Pu=E.event;function Hg(){}function Lg(){return this.cancelBubble}function Vg(){return this.defaultPrevented}E.event=function(e){return Pu&&(e=Pu(e)),e.persist=Hg,e.isPropagationStopped=Lg,e.isDefaultPrevented=Vg,e.nativeEvent=e};var Ps,Ug={enumerable:!1,configurable:!0,get:function(){return this.class}},Bu=E.vnode;E.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||$g&&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==="ondoubleclick"?i="ondblclick":a!=="onchange"||r!=="input"&&r!=="textarea"||jg(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":Pg.test(i)?i=a:r.indexOf("-")===-1&&Og.test(i)?i=i.replace(Bg,"-$&").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=sn(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=sn(n.children).forEach(function(l){l.props.selected=o.multiple?o.defaultValue.indexOf(l.props.value)!=-1:o.defaultValue==l.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Ug)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ru,Bu&&Bu(e)};var $u=E.__r;E.__r=function(e){$u&&$u(e),Ps=e.__c};var ju=E.diffed;E.diffed=function(e){ju&&ju(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),Ps=null};var Hu={ReactCurrentDispatcher:{current:{readContext:function(e){return Ps.__n[e.__c].props.value}}}},zg="17.0.2";function Lu(e){return m.bind(null,e)}function fi(e){return!!e&&e.$$typeof===Ru}function Bs(e){return fi(e)?Ds.apply(null,arguments):e}function Vu(e){return!!e.__k&&(En(null,e),!0)}function Uu(e){return e&&(e.base||e.nodeType===1&&e)||null}var zu=function(e,t){return e(t)},Gu=function(e,t){return e(t)},Wu=fe;function $s(e){e()}function Zu(e){return e}function Qu(){return[!1,$s]}var Ku=Ar;function Xu(e,t){var n=t(),r=Ae({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Ar(function(){o.__=n,o.v=t,Ns(o.__,t())||i({h:o})},[e,n,t]),W(function(){return Ns(o.__,o.v())||i({h:o}),e(function(){Ns(o.__,o.v())||i({h:o})})},[e]),n}var T={useState:Ae,useId:bu,useReducer:uo,useEffect:W,useLayoutEffect:Ar,useInsertionEffect:Ku,useTransition:Qu,useDeferredValue:Zu,useSyncExternalStore:Xu,startTransition:$s,useRef:L,useImperativeHandle:Fs,useMemo:Q,useCallback:de,useContext:Be,useDebugValue:yu,version:"17.0.2",Children:ku,render:Nu,hydrate:Ou,unmountComponentAtNode:Vu,createPortal:Os,createElement:m,createContext:ut,createFactory:Lu,cloneElement:Bs,createRef:Cs,Fragment:fe,isValidElement:fi,findDOMNode:Uu,Component:Mt,PureComponent:ci,memo:xu,forwardRef:ui,flushSync:Gu,unstable_batchedUpdates:zu,StrictMode:Wu,Suspense:fo,SuspenseList:xr,lazy:Iu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu};const js=Object.freeze(Object.defineProperty({__proto__:null,Children:ku,PureComponent:ci,StrictMode:Wu,Suspense:fo,SuspenseList:xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu,cloneElement:Bs,createFactory:Lu,createPortal:Os,default:T,findDOMNode:Uu,flushSync:Gu,forwardRef:ui,hydrate:Ou,isValidElement:fi,lazy:Iu,memo:xu,render:Nu,startTransition:$s,unmountComponentAtNode:Vu,unstable_batchedUpdates:zu,useDeferredValue:Zu,useInsertionEffect:Ku,useSyncExternalStore:Xu,useTransition:Qu,version:zg,Component:Mt,Fragment:fe,createContext:ut,createElement:m,createRef:Cs,useCallback:de,useContext:Be,useDebugValue:yu,useEffect:W,useErrorBoundary:Dg,useId:bu,useImperativeHandle:Fs,useLayoutEffect:Ar,useMemo:Q,useReducer:uo,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),Gg=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},C=T,Yu=Gg;function Hs(e){return{Dispose(){e()}}}function Ju(e){return C.useState(e)}function qu(e,t){Yu(e,t)}function Wg(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),qu(()=>{let o;return n.current?o=void 0:(n.current=!0,t.current=ue(e()),o=r.current?t.current:void 0),{Dispose(){ms(i=>{re(i)},k0(o))}}},[])}function ef(e,t){Yu(n=>(e(),Hs(()=>{})),t)}function tf(e){return C.useRef(e)}function po(e){return C.useState(e)}class nf{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 di extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,di.prototype)}}class Ls{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ls.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function ln(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new di);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(No(n))}});else try{e(t)}catch(n){t.onError(No(n))}}}function Zg(e,t){return ln(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(No(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Qg(e){return ln(t=>t.onSuccess(e))}class Kg{Bind(t,n){return Zg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return ln(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 Qg(t)}ReturnFrom(t){return t}TryFinally(t,n){return ln(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 ln(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(No(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 ln(t=>t.onSuccess(void 0))}}const v=new Kg;function Vs(e){}function Xg(e){const t=new nf(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function Yg(e){e.cancel()}const Jg=new nf;function qg(e){return ln(t=>{e({onSuccess:n=>t.onSuccess(Z0(n)),onError:n=>t.onSuccess(Q0(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ew(e){return ln(t=>e([t.onSuccess,t.onError,t.onCancel]))}function tw(e){return ln(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new di)})})}function nw(e,t){return rw(e,t)}function rf(e,t){return nw(e,t)}function rw(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Ls;e({onSuccess:t||Vs,onError:n||Vs,onCancel:r||Vs,cancelToken:o||Jg,trampoline:i})}class Zt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ow(e,t){const n=po(new Zt(0,[])),r=n[1];let o;const i=tf(Xg()),s=tf(i.current);Wg(()=>Hs(()=>{Yg(i.current)})),o=s;const a=v.Delay(()=>v.TryWith(v.Delay(()=>(r(new Zt(1,[])),v.Bind(e,l=>(r(new Zt(2,[l])),v.Zero())))),l=>(r(new Zt(3,[l])),v.Zero())));return ef(()=>{rf(a,o.current)},t),n[0]}class We extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class iw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function sw(e,t){t.Subscribe(new iw(e))}class aw{constructor(){this.delegates=[]}Add(t){this._addHandler(t)}get Publish(){return this}Trigger(t,n){let r,o;n===void 0?(r=null,o=t):(r=t,o=n),this.delegates.forEach(i=>i.length===1?i(o):i(r,o))}AddHandler(t){this._addHandler(t)}RemoveHandler(t){this._removeHandler(t)}Subscribe(t){const n=typeof t=="function"?t:t.OnNext;return this._addHandler(n),{Dispose:()=>{this._removeHandler(n)}}}_addHandler(t){this.delegates.push(t)}_removeHandler(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}}class lw{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 aw}Elapsed(){return this._elapsed}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 cw(e,t){console.error(ue(e),t)}function uw(e,t){let n,r=new lw(e);r.AutoReset=!1,n=r,sw(t,n.Elapsed()),n.Enabled=!0,n.Start()}function of(e,t){Ml(n=>{n(e)},t)}function et(){return it()}function ho(e){return Rl(e)}function Rt(e){return Ee(t=>{t(e)})}function mo(e,t,n,r){return Ee(o=>{e(v.Delay(()=>v.Bind(qg(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function Cr(e){uw(0,t=>{rf(e)})}class Wn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Import","Configuration"]}}class pi extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ProfileImport","PastImports"]}}function sf(e){return e.tag===1?"Configuration":e.fields[0].tag===1?"Past Imports":"Profile Import"}class Us extends ee{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class go extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}function fw(){return[new Us(new Wn(0,[new pi(0,[])]),new Zt(0,[])),Rt(new go(1,[new We(0,[void 0])]))]}function dw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new Us(n.CurrentTab,new Zt(2,[t.fields[0].fields[0]])),et()]:[n,mo(r=>{Cr(r)},e,void 0,r=>new go(1,[new We(1,[r])]))]:[new Us(t.fields[0],n.AccountImports),et()]}class Zn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class af extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class zs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class wo extends ee{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Er extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class lf extends ee{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 cf(e){return new af(0,["Content-Type",e])}function kr(e){return new af(0,["Authorization",e])}const Qn=new wo("",new Zn(0,[]),it(),!1,void 0,void 0,void 0,new zs(0,[]));new lf(0,"","","",ys({Compare:In}),new Er(0,[""]));function uf(e,t){return _0(t)?[t]:Dl(t,[e],void 0,0)}function pw(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 Sr(e){return new wo(e,Qn.method,Qn.headers,Qn.withCredentials,Qn.overridenMimeType,Qn.overridenResponseType,Qn.timeout,Qn.content)}function Dr(e,t){return new wo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function kn(e,t){return new wo(t.url,t.method,Ko(t.headers,Ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ff(e,t){return new wo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Tr(e){return ew(t=>{const n=new XMLHttpRequest;n.open(pw(e.method),e.url),n.onreadystatechange=()=>{let l,u,c,d,f,p,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),c=n.status|0,d=n.responseType,f=(p=n.responseType,p===""?new Er(0,[n.responseText]):p==="text"?new Er(0,[n.responseText]):p==="arraybuffer"?new Er(2,[n.response]):p==="blob"?new Er(1,[n.response]):new Er(3,[n.response])),h=vm(R0(w=>{const y=x(uf(":",w));if(!U(y))return[S(y).toLocaleLowerCase(),nn(":",z(y)).trim()]},uf(`\r
|
|
22
|
+
`,n.getAllResponseHeaders()),null),{Compare:In}),new lf(c,l,d,n.responseURL,h,f)))};const r=Le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{re(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;i==null||(i.tag===1?n.responseType="blob":i.tag===2?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(ue(a.fields[0]));break}case 3:{n.send(ue(a.fields[0]));break}case 2:{n.send(ue(a.fields[0]));break}default:n.send()}})}class Sn extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class hw{constructor(t){this.accessToken=t}}function mw(e){return new hw(e)}function df(e,t){return v.Delay(()=>{let n,r,o;const i=Tr((n=Dr(new Zn(0,[]),Sr(t)),r=kr(`Bearer ${e.accessToken}`),kn(r,n)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Bind(o,s=>{const a=s;if(a.tag===1)return v.Return(new g(1,[a.fields[0]]));{const l=a.fields[0],u=l.statusCode|0;return u===200?v.Return(new g(0,[l.responseText])):u===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))}})})}function pf(e,t,n){return v.Delay(()=>{let r,o,i,s,a;const l=Tr(ff(new zs(1,[n]),(r=(o=Dr(new Zn(2,[]),Sr(t)),i=kr(`Bearer ${e.accessToken}`),kn(i,o)),s=cf("application/json"),kn(s,r))));return a=v.Bind(l,u=>v.Return(new g(0,[u]))),v.Bind(a,u=>{const c=u;if(c.tag===1)return v.Return(new g(1,[c.fields[0]]));{const d=c.fields[0].statusCode|0;return d===200?v.Return(new g(0,[void 0])):d===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))}})})}function hf(e,t){return v.Delay(()=>{let n,r,o,i,s;const a=Tr((n=(r=Dr(new Zn(4,[]),Sr(t)),o=kr(`Bearer ${e.accessToken}`),kn(o,r)),i=cf("application/json"),kn(i,n)));return s=v.Bind(a,l=>v.Return(new g(0,[l]))),v.Bind(s,l=>{const u=l;if(u.tag===1)return v.Return(new g(1,[u.fields[0]]));{const c=u.fields[0].statusCode|0;return c===200?v.Return(new g(0,[void 0])):c===403?v.Return(new g(1,[new Sn(0,[])])):v.Return(new g(1,[new Sn(2,[])]))}})})}class Gs extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function gw(){return cl("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],Gs,()=>[[],[],[]])}class Ws extends ee{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function mf(){return en("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],Ws,()=>[["AdminUserManagementEnabled",ul],["Ownership",gw()]])}function ww(){return new Ws(!1,new Gs(2,[]))}function yw(e){return e}const gf=Me();function hi(e){return Array.from(e)}function bw(e){return zo(e,"O")}function vw(e){return Nh(e)}function _w(){return Me()}function Aw(e){return zo(e,"O")}function wf(e,t){return JSON.stringify(t,oe(2,Me()),ue(e))}function xw(e){return t=>S0(D0(e,t),()=>gf)}function yf(e,t,n,r){let o,i;const s=new Je(Me());let a;const l=te(r);a=gc(l,s,e);let u;if(yl(r)){const c=rn(d=>{const f=Pl(t,ur(d)),p=cn(a,t,n,d[1]);return h=>w=>{const y=o0(h,d);return(!n||n&&y!=null)&&(w[f]=p(y)),w}},Qr(r),null);u=d=>qo((f,p)=>p(d)(f),{},c)}else if(wl(r))u=c=>{const d=r0(c,r),f=d[0],p=d[1],h=p.length|0;if(h===0)return ur(f);{const w=h|0,y=bl(f),b=Wo(new Array(w+1),0,w+1,null);b[0]=ur(f);for(let _=1;_<=w;_++){const I=cn(a,t,n,y[_-1][1]);b[_]=I(p[_-1])}return b}};else throw new Error((o=te(r),i=Pn(tn("Cannot generate auto encoder for %s. Please pass an extra encoder.")),i(o)));return s.contents=u,u}function cn(e,t,n,r){const o=te(r),i=wc(o,e);if(i==null)if(fl(r)){const s=cn(e,t,n,Zr(r));return a=>hi(Ne(s,a))}else if(Ki(r)){const s=te(hl(r));if(s==="System.SByte")return a=>a;if(s==="System.Byte")return a=>a;if(s==="System.Int16")return a=>a;if(s==="System.UInt16")return a=>a;if(s==="System.Int32")return a=>a;if(s==="System.UInt32")return a=>a;{const a=te(r);return kl(tn(`Cannot generate auto encoder for %s.
|
|
23
23
|
Thoth.Json.Net only support the folluwing enum types:
|
|
24
24
|
- sbyte
|
|
25
25
|
- byte
|
|
@@ -28,16 +28,16 @@ Thoth.Json.Net only support the folluwing enum types:
|
|
|
28
28
|
- int
|
|
29
29
|
- uint32
|
|
30
30
|
If you can't use one of these types, please pass an extra encoder.
|
|
31
|
-
`))(a)}}else if(wl(r))if(qi(r)){const s=sn(a=>dn(e,t,n,a),_l(r),null);return a=>wi(om((l,u)=>s[l](u),a))}else{const s=te(yl(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new tp(()=>Pw(dn(e,t,n,At(r)[0])));return l=>l==null?Af:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=dn(e,t,n,At(r)[0]);return l=>wi(Ne(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=At(r)[0],l=dn(e,t,n,At(r)[1]);if(te(a)==="System.String"||te(a)==="System.Guid")return u=>ni((c,d)=>{const f=d;return c[f[0]]=l(f[1]),c},{},u);{let u;return u=dn(e,t,n,a),d=>wi(Ne(f=>{const p=f;return[u(p[0]),l(p[1])]},d))}}else return Cf(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?Nw:o==="System.String"?s=>s:o==="System.SByte"?s=>s:o==="System.Byte"?s=>s:o==="System.Int16"?s=>s:o==="System.UInt16"?s=>s:o==="System.Int32"?s=>s:o==="System.UInt32"?s=>s:o==="System.Double"?s=>s:o==="System.Single"?s=>s:o==="System.DateTime"?Ow:o==="System.DateTimeOffset"?Mw:o==="System.TimeSpan"?Rw:o==="System.Guid"?Iw:o==="System.Object"?s=>s:Cf(e,t,n,r);else{const s=i;return a=>s.contents(a)}}function Bw(e){return e!=null?xc((t,n)=>new Je(n[0]),e.Coders):As({Compare:Nn})}function Ef(e,t,n,r){const o=Qo(t,new Tt(0,[])),i=Qo(r,!0);return dn(Bw(n),o,i,e)}class $w extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}new $w(!1);class kf extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}function Sf(){return nn("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],kf,()=>[["AdminUserManagementEnabled",ml]])}class jw{constructor(t,n){this.backendUrl=t,this.httpClient=Dw(n)}}function Hw(e,t){return new jw(e,t)}function Lw(e,t){return Mr(n=>Rr(e,"Failed to fetch partner's config",n),vf(n=>Kt(ft,()=>{const r=as(o=>new Tn(1,[o]),zn(oe(2,Gn(_f(),new Tt(1,[]),void 0)),n));return v.Return(r)}),wf(e.httpClient,Js(e,t))))}function Vw(e,t,n){return Kt(ft,()=>{const r=xf(0,Ef(Sf(),new Tt(1,[]),void 0,void 0)(n));return Mr(o=>Rr(e,"Failed to update partner's config",o),yf(e.httpClient,Js(e,t),r))})}function Uw(e,t){return Mr(n=>Rr(e,"Failed to delete partner's config",n),bf(e.httpClient,Js(e,t)))}function zw(e,t,n){return Mr(r=>Rr(e,"Failed to fetch account's config",r),vf(r=>Kt(ft,()=>{const o=as(i=>new Tn(1,[i]),zn(oe(2,Gn(_f(),new Tt(1,[]),void 0)),r));return v.Return(o)}),wf(e.httpClient,qs(e,t,n))))}function Gw(e,t,n,r){return Kt(ft,()=>{const o=xf(0,Ef(Sf(),new Tt(1,[]),void 0,void 0)(r));return Mr(i=>Rr(e,"Failed to update account's config",i),yf(e.httpClient,qs(e,t,n),o))})}function Ww(e,t,n){return Mr(r=>Rr(e,"Failed to delete account's config",r),bf(e.httpClient,qs(e,t,n)))}function Zw(e,t,n){return n==null?Lw(e,t):zw(e,t,n)}function Qw(e,t,n,r){return n==null?Vw(e,t,r):Gw(e,t,n,r)}function Kw(e,t,n){return n==null?Uw(e,t):Ww(e,t,n)}function Js(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function qs(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function Rr(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class ea extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function yi(e){return e.tag!==0}class Xw extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reset"]}}class Xt extends ee{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function ta(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;case 1:return Tw()}}class ke extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function Yw(){return new ke(2,[new We(0,[void 0])])}function Jw(){return new ke(4,[new We(0,[void 0])])}function qw(){return new ke(5,[new We(0,[void 0])])}const e1=[new Xt(new ea(0,[]),void 0,new Qt(0,[]),void 0),Nt(new ke(1,[]))];function t1(e,t,n,r,o){if(r.tag===0)return[new Xt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),et()];if(r.tag===2)return r.fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[r.fields[0].fields[0]]),o.Error),et()]:[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(1,[]),o.Error),yo(i=>{kr(i)},()=>Zw(n,e,t),void 0,i=>new ke(2,[new We(1,[i])]))];if(r.tag===3)return[new Xt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[new g(0,[new Ys(r.fields[0],ta(o).Ownership)])]),o.Error),et()];if(r.tag===4){if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Nt(new ke(1,[]))];{const i=new kf(ta(o).AdminUserManagementEnabled);return[o,yo(s=>{kr(s)},()=>Qw(n,e,t,i),void 0,s=>new ke(4,[new We(1,[s])]))]}}else return r.tag===5?r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new Xt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Nt(new ke(1,[]))]:[o,wo([Nt(new ke(7,[])),yo(i=>{kr(i)},()=>Kw(n,e,t),void 0,i=>new ke(5,[new We(1,[i])]))])]:r.tag===6?[new Xt(o.Mode,new Xw(0,[]),o.Config,o.Error),et()]:r.tag===7?[new Xt(o.Mode,void 0,o.Config,o.Error),et()]:r.tag===8?[o,Nt(new ke(1,[]))]:[new Xt(o.Mode,void 0,o.Config,void 0),wo([Nt(new ke(0,[new ea(0,[])])),Nt(Yw())])]}const n1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),r1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})),o1=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}));function na(e,t){return C.createElement(e,$(t))}function i1(e){return na(n1,e)}const s1=i1([["className","h-6 w-6 text-red-500"]]),a1=na(r1,[]),l1=na(o1,[]);var c1=Object.defineProperty,u1=(e,t,n)=>t in e?c1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ra=(e,t,n)=>(u1(e,typeof t!="symbol"?t+"":t,n),n);class f1{constructor(){ra(this,"current",this.detect()),ra(this,"handoffState","pending"),ra(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}}let pn=new f1,tt=(e,t)=>{pn.isServer?W(e,t):Cr(e,t)};function hn(e){let t=L(e);return tt(()=>{t.current=e},[e]),t}function bi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Nr(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return bi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Nr();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function vi(){let[e]=Ae(Nr);return W(()=>()=>e.dispose(),[e]),e}let Z=function(e){let t=hn(e);return F.useCallback((...n)=>t.current(...n),[t])};function Or(){let[e,t]=Ae(pn.isHandoffComplete);return e&&pn.isHandoffComplete===!1&&t(!1),W(()=>{e!==!0&&t(!0)},[e]),W(()=>pn.handoff(),[]),e}var Df;let In=(Df=F.useId)!=null?Df:function(){let e=Or(),[t,n]=F.useState(e?()=>pn.nextId():null);return tt(()=>{t===null&&n(pn.nextId())},[t]),t!=null?""+t:void 0};function $e(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$e),r}function Ff(e){return pn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let oa=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Yn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Yn||{}),Tf=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Tf||{}),d1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(d1||{});function p1(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(oa)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var If=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(If||{});function h1(e,t=0){var n;return e===((n=Ff(e))==null?void 0:n.body)?!1:$e(t,{[0](){return e.matches(oa)},[1](){let r=e;for(;r!==null;){if(r.matches(oa))return!0;r=r.parentElement}return!1}})}var m1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(m1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Jn(e){e==null||e.focus({preventScroll:!0})}let g1=["textarea","input"].join(",");function w1(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,g1))!=null?n:!1}function y1(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function _i(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?y1(e):e:p1(e);o.length>0&&s.length>1&&(s=s.filter(p=>!o.includes(p))),r=r!=null?r:i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,d=s.length,f;do{if(c>=d||c+d<=0)return 0;let p=l+c;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}f=s[p],f==null||f.focus(u),c+=a}while(f!==i.activeElement);return t&6&&w1(f)&&f.select(),2}function Mf(e,t,n){let r=hn(t);W(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Rf(e,t,n){let r=hn(t);W(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function b1(e,t,n=!0){let r=L(!1);W(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l))return;let u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(l)||s.composed&&s.composedPath().includes(d))return}return!h1(l,If.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=L(null);Mf("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),Mf("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),Rf("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Nf(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function v1(e,t){let[n,r]=Ae(()=>Nf(e));return tt(()=>{r(Nf(e))},[e.type,e.as]),tt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Of=Symbol();function _1(e,t=!0){return Object.assign(e,{[Of]:t})}function dt(...e){let t=L(e);W(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Of]))?void 0:n}function ia(...e){return e.filter(Boolean).join(" ")}var Ai=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ai||{}),mn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(mn||{});function Ze({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=Pf(t,e);if(i)return xi(a,n,r,s);let l=o!=null?o:0;if(l&2){let{static:u=!1,...c}=a;if(u)return xi(c,n,r,s)}if(l&1){let{unmount:u=!0,...c}=a;return $e(u?0:1,{[0](){return null},[1](){return xi({...c,hidden:!0,style:{display:"none"}},n,r,s)}})}return xi(a,n,r,s)}function xi(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=aa(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let c={};if(t){let d=!1,f=[];for(let[p,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&f.push(p);d&&(c["data-headlessui-state"]=f.join(" "))}if(o===fe&&Object.keys(sa(a)).length>0){if(!mi(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(h=>` - ${h}`).join(`
|
|
31
|
+
`))(a)}}else if(dl(r))if(Xi(r)){const s=rn(a=>cn(e,t,n,a),gl(r),null);return a=>hi(Jh((l,u)=>s[l](u),a))}else{const s=te(pl(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Kd(()=>xw(cn(e,t,n,_t(r)[0])));return l=>l==null?gf:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const a=cn(e,t,n,_t(r)[0]);return l=>hi(Ne(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=_t(r)[0],l=cn(e,t,n,_t(r)[1]);if(te(a)==="System.String"||te(a)==="System.Guid")return u=>qo((c,d)=>{const f=d;return c[f[0]]=l(f[1]),c},{},u);{let u;return u=cn(e,t,n,a),d=>hi(Ne(f=>{const p=f;return[u(p[0]),l(p[1])]},d))}}else return yf(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?_w:o==="System.String"?s=>s:o==="System.SByte"?s=>s:o==="System.Byte"?s=>s:o==="System.Int16"?s=>s:o==="System.UInt16"?s=>s:o==="System.Int32"?s=>s:o==="System.UInt32"?s=>s:o==="System.Double"?s=>s:o==="System.Single"?s=>s:o==="System.DateTime"?Aw:o==="System.DateTimeOffset"?bw:o==="System.TimeSpan"?vw:o==="System.Guid"?yw:o==="System.Object"?s=>s:yf(e,t,n,r);else{const s=i;return a=>s.contents(a)}}function Cw(e){return e!=null?yc((t,n)=>new Je(n[0]),e.Coders):ys({Compare:In})}function bf(e,t,n,r){const o=Go(t,new Tt(0,[])),i=Go(r,!0);return cn(Cw(n),o,i,e)}class Ew extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}new Ew(!1);class vf extends ee{constructor(t){super(),this.AdminUserManagementEnabled=t}}function _f(){return en("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],vf,()=>[["AdminUserManagementEnabled",ul]])}class kw{constructor(t,n){this.backendUrl=t,this.httpClient=mw(n)}}function Sw(e,t){return new kw(e,t)}function Dw(e,t){let n;const r=df(e.httpClient,Zs(e,t));return n=v.Bind(r,o=>{const i=o;return i.tag===1?v.Return(new g(1,[i.fields[0]])):v.Delay(()=>{let s;const a=Vn(oe(2,Un(mf(),new Tt(1,[]),void 0)),i.fields[0]);return s=a.tag===1?new g(1,[new Sn(1,[a.fields[0]])]):new g(0,[a.fields[0]]),v.Return(s)})}),v.Bind(n,o=>{let i;const s=o;return i=s.tag===1?new g(1,[Fr(e,"Failed to fetch partner's config",s.fields[0])]):new g(0,[s.fields[0]]),v.Return(i)})}function Tw(e,t,n){return v.Delay(()=>{const r=wf(0,bf(_f(),new Tt(1,[]),void 0,void 0)(n)),o=pf(e.httpClient,Zs(e,t),r);return v.Bind(o,i=>{let s;const a=i;return s=a.tag===1?new g(1,[Fr(e,"Failed to update partner's config",a.fields[0])]):new g(0,[a.fields[0]]),v.Return(s)})})}function Fw(e,t){const n=hf(e.httpClient,Zs(e,t));return v.Bind(n,r=>{let o;const i=r;return o=i.tag===1?new g(1,[Fr(e,"Failed to delete partner's config",i.fields[0])]):new g(0,[i.fields[0]]),v.Return(o)})}function Iw(e,t,n){let r;const o=df(e.httpClient,Qs(e,t,n));return r=v.Bind(o,i=>{const s=i;return s.tag===1?v.Return(new g(1,[s.fields[0]])):v.Delay(()=>{let a;const l=Vn(oe(2,Un(mf(),new Tt(1,[]),void 0)),s.fields[0]);return a=l.tag===1?new g(1,[new Sn(1,[l.fields[0]])]):new g(0,[l.fields[0]]),v.Return(a)})}),v.Bind(r,i=>{let s;const a=i;return s=a.tag===1?new g(1,[Fr(e,"Failed to fetch account's config",a.fields[0])]):new g(0,[a.fields[0]]),v.Return(s)})}function Mw(e,t,n,r){return v.Delay(()=>{const o=wf(0,bf(_f(),new Tt(1,[]),void 0,void 0)(r)),i=pf(e.httpClient,Qs(e,t,n),o);return v.Bind(i,s=>{let a;const l=s;return a=l.tag===1?new g(1,[Fr(e,"Failed to update account's config",l.fields[0])]):new g(0,[l.fields[0]]),v.Return(a)})})}function Rw(e,t,n){const r=hf(e.httpClient,Qs(e,t,n));return v.Bind(r,o=>{let i;const s=o;return i=s.tag===1?new g(1,[Fr(e,"Failed to delete account's config",s.fields[0])]):new g(0,[s.fields[0]]),v.Return(i)})}function Nw(e,t,n){return n==null?Dw(e,t):Iw(e,t,n)}function Ow(e,t,n,r){return n==null?Tw(e,t,r):Mw(e,t,n,r)}function Pw(e,t,n){return n==null?Fw(e,t):Rw(e,t,n)}function Zs(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function Qs(e,t,n){return`${e.backendUrl}/profiles/admin/partners/${t}/accounts/${n}/config`}function Fr(e,t,n){switch(n.tag){case 1:return n.fields[0];case 2:return t;default:return"Access is denied"}}class Ks extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function mi(e){return e.tag!==0}class Bw extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reset"]}}class Qt extends ee{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function Xs(e){const t=e.Config;let n,r;switch(t.tag===2&&t.fields[0].tag===0?(n=0,r=t.fields[0].fields[0]):n=1,n){case 0:return r;case 1:return ww()}}class ke extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function $w(){return new ke(2,[new We(0,[void 0])])}function jw(){return new ke(4,[new We(0,[void 0])])}function Hw(){return new ke(5,[new We(0,[void 0])])}const Lw=[new Qt(new Ks(0,[]),void 0,new Zt(0,[]),void 0),Rt(new ke(1,[]))];function Vw(e,t,n,r,o){if(r.tag===0)return[new Qt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),et()];if(r.tag===2)return r.fields[0].tag===1?[new Qt(o.Mode,o.CurrentConfirmationDialog,new Zt(2,[r.fields[0].fields[0]]),o.Error),et()]:[new Qt(o.Mode,o.CurrentConfirmationDialog,new Zt(1,[]),o.Error),mo(i=>{Cr(i)},()=>Nw(n,e,t),void 0,i=>new ke(2,[new We(1,[i])]))];if(r.tag===3)return[new Qt(o.Mode,o.CurrentConfirmationDialog,new Zt(2,[new g(0,[new Ws(r.fields[0],Xs(o).Ownership)])]),o.Error),et()];if(r.tag===4){if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new Qt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Rt(new ke(1,[]))];{const i=new vf(Xs(o).AdminUserManagementEnabled);return[o,mo(s=>{Cr(s)},()=>Ow(n,e,t,i),void 0,s=>new ke(4,[new We(1,[s])]))]}}else return r.tag===5?r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new Qt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),et()]:[o,Rt(new ke(1,[]))]:[o,ho([Rt(new ke(7,[])),mo(i=>{Cr(i)},()=>Pw(n,e,t),void 0,i=>new ke(5,[new We(1,[i])]))])]:r.tag===6?[new Qt(o.Mode,new Bw(0,[]),o.Config,o.Error),et()]:r.tag===7?[new Qt(o.Mode,void 0,o.Config,o.Error),et()]:r.tag===8?[o,Rt(new ke(1,[]))]:[new Qt(o.Mode,void 0,o.Config,void 0),ho([Rt(new ke(0,[new Ks(0,[])])),Rt($w())])]}const Uw=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",iconType:2,className:"h-6 w-6 text-red-600",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})),zw=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})),Gw=e=>m("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"w-6 h-6",...e},m("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"}));function Ys(e,t){return C.createElement(e,$(t))}function Ww(e){return Ys(Uw,e)}const Zw=Ww([["className","h-6 w-6 text-red-500"]]),Qw=Ys(zw,[]),Kw=Ys(Gw,[]);var Xw=Object.defineProperty,Yw=(e,t,n)=>t in e?Xw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Js=(e,t,n)=>(Yw(e,typeof t!="symbol"?t+"":t,n),n);class Jw{constructor(){Js(this,"current",this.detect()),Js(this,"handoffState","pending"),Js(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}}let un=new Jw,tt=(e,t)=>{un.isServer?W(e,t):Ar(e,t)};function fn(e){let t=L(e);return tt(()=>{t.current=e},[e]),t}function gi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ir(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return gi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=Ir();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function wi(){let[e]=Ae(Ir);return W(()=>()=>e.dispose(),[e]),e}let Z=function(e){let t=fn(e);return T.useCallback((...n)=>t.current(...n),[t])};function Mr(){let[e,t]=Ae(un.isHandoffComplete);return e&&un.isHandoffComplete===!1&&t(!1),W(()=>{e!==!0&&t(!0)},[e]),W(()=>un.handoff(),[]),e}var Af;let Dn=(Af=T.useId)!=null?Af:function(){let e=Mr(),[t,n]=T.useState(e?()=>un.nextId():null);return tt(()=>{t===null&&n(un.nextId())},[t]),t!=null?""+t:void 0};function $e(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,$e),r}function xf(e){return un.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let qs=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Kn=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Kn||{}),Cf=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Cf||{}),qw=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(qw||{});function e1(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(qs)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ef=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ef||{});function t1(e,t=0){var n;return e===((n=xf(e))==null?void 0:n.body)?!1:$e(t,{[0](){return e.matches(qs)},[1](){let r=e;for(;r!==null;){if(r.matches(qs))return!0;r=r.parentElement}return!1}})}var n1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(n1||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Xn(e){e==null||e.focus({preventScroll:!0})}let r1=["textarea","input"].join(",");function o1(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,r1))!=null?n:!1}function i1(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function yi(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?i1(e):e:e1(e);o.length>0&&s.length>1&&(s=s.filter(p=>!o.includes(p))),r=r!=null?r:i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,d=s.length,f;do{if(c>=d||c+d<=0)return 0;let p=l+c;if(t&16)p=(p+d)%d;else{if(p<0)return 3;if(p>=d)return 1}f=s[p],f==null||f.focus(u),c+=a}while(f!==i.activeElement);return t&6&&o1(f)&&f.select(),2}function kf(e,t,n){let r=fn(t);W(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function Sf(e,t,n){let r=fn(t);W(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function s1(e,t,n=!0){let r=L(!1);W(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function o(s,a){if(!r.current||s.defaultPrevented)return;let l=a(s);if(l===null||!l.getRootNode().contains(l))return;let u=function c(d){return typeof d=="function"?c(d()):Array.isArray(d)||d instanceof Set?d:[d]}(e);for(let c of u){if(c===null)continue;let d=c instanceof HTMLElement?c:c.current;if(d!=null&&d.contains(l)||s.composed&&s.composedPath().includes(d))return}return!t1(l,Ef.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=L(null);kf("mousedown",s=>{var a,l;r.current&&(i.current=((l=(a=s.composedPath)==null?void 0:a.call(s))==null?void 0:l[0])||s.target)},!0),kf("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),Sf("blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Df(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function a1(e,t){let[n,r]=Ae(()=>Df(e));return tt(()=>{r(Df(e))},[e.type,e.as]),tt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Tf=Symbol();function l1(e,t=!0){return Object.assign(e,{[Tf]:t})}function ft(...e){let t=L(e);W(()=>{t.current=e},[e]);let n=Z(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Tf]))?void 0:n}function ea(...e){return e.filter(Boolean).join(" ")}var bi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(bi||{}),dn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(dn||{});function Ze({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=Ff(t,e);if(i)return vi(a,n,r,s);let l=o!=null?o:0;if(l&2){let{static:u=!1,...c}=a;if(u)return vi(c,n,r,s)}if(l&1){let{unmount:u=!0,...c}=a;return $e(u?0:1,{[0](){return null},[1](){return vi({...c,hidden:!0,style:{display:"none"}},n,r,s)}})}return vi(a,n,r,s)}function vi(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=na(e,["unmount","static"]),l=e.ref!==void 0?{[s]:e.ref}:{},u=typeof i=="function"?i(t):i;"className"in a&&a.className&&typeof a.className=="function"&&(a.className=a.className(t));let c={};if(t){let d=!1,f=[];for(let[p,h]of Object.entries(t))typeof h=="boolean"&&(d=!0),h===!0&&f.push(p);d&&(c["data-headlessui-state"]=f.join(" "))}if(o===fe&&Object.keys(ta(a)).length>0){if(!fi(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(a).map(h=>` - ${h}`).join(`
|
|
32
32
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(h=>` - ${h}`).join(`
|
|
33
33
|
`)].join(`
|
|
34
|
-
`));let d=u.props,f=typeof(d==null?void 0:d.className)=="function"?(...h)=>ia(d==null?void 0:d.className(...h),a.className):ia(d==null?void 0:d.className,a.className),p=f?{className:f}:{};return Vs(u,Object.assign({},Pf(u.props,sa(aa(a,["ref"]))),c,l,A1(u.ref,l.ref),p))}return m(o,Object.assign({},aa(a,["ref"]),o!==fe&&l,o!==fe&&c),u)}function A1(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Pf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Qe(e){var t;return Object.assign(hi(e),{displayName:(t=e.displayName)!=null?t:e.name})}function sa(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function aa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Bf(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&x1(n)?!1:r}function x1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function C1(e){var t;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let r of n.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let E1="div";var _o=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_o||{});function k1(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Ze({ourProps:o,theirProps:r,slot:{},defaultTag:E1,name:"Hidden"})}let Ci=Qe(k1),la=ut(null);la.displayName="OpenClosedContext";var pt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(pt||{});function ca(){return Be(la)}function S1({value:e,children:t}){return F.createElement(la.Provider,{value:e},t)}var Ei=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ei||{});function D1(e,t,n){let[r,o]=Ae(n),i=e!==void 0,s=L(i),a=L(!1),l=L(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,Z(u=>(i||o(u),t==null?void 0:t(u)))]}function ua(e,t){let n=L([]),r=Z(e);W(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function F1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var Ao=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ao||{});function T1(){let e=L(0);return Rf("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function xo(){let e=L(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Co(...e){return Q(()=>Ff(...e),[...e])}function $f(e,t,n,r){let o=hn(n);W(()=>{e=e!=null?e:window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function I1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function jf(e){let t=Z(e),n=L(!1);W(()=>(n.current=!1,()=>{n.current=!0,bi(()=>{n.current&&t()})}),[t])}function Hf(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let M1="div";var Lf=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Lf||{});function R1(e,t){let n=L(null),r=dt(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Or()||(s=1);let l=Co(n);P1({ownerDocument:l},Boolean(s&16));let u=B1({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));$1({ownerDocument:l,container:n,containers:i,previousActiveElement:u},Boolean(s&8));let c=T1(),d=Z(y=>{let w=n.current;!w||(b=>b())(()=>{$e(c.current,{[Ao.Forwards]:()=>{_i(w,Yn.First,{skipElements:[y.relatedTarget]})},[Ao.Backwards]:()=>{_i(w,Yn.Last,{skipElements:[y.relatedTarget]})}})})}),f=vi(),p=L(!1),h={ref:r,onKeyDown(y){y.key=="Tab"&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(y){let w=Hf(i);n.current instanceof HTMLElement&&w.add(n.current);let b=y.relatedTarget;b instanceof HTMLElement&&b.dataset.headlessuiFocusGuard!=="true"&&(Vf(w,b)||(p.current?_i(n.current,$e(c.current,{[Ao.Forwards]:()=>Yn.Next,[Ao.Backwards]:()=>Yn.Previous})|Yn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&Jn(y.target)))}};return F.createElement(F.Fragment,null,Boolean(s&4)&&F.createElement(Ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_o.Focusable}),Ze({ourProps:h,theirProps:a,defaultTag:M1,name:"FocusTrap"}),Boolean(s&4)&&F.createElement(Ci,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:_o.Focusable}))}let N1=Qe(R1),Eo=Object.assign(N1,{features:Lf}),Mn=[];I1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Mn[0]!==t.target&&(Mn.unshift(t.target),Mn=Mn.filter(n=>n!=null&&n.isConnected),Mn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function O1(e=!0){let t=L(Mn.slice());return ua(([n],[r])=>{r===!0&&n===!1&&bi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Mn.slice())},[e,Mn,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function P1({ownerDocument:e},t){let n=O1(t);ua(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Jn(n())},[t]),jf(()=>{t&&Jn(n())})}function B1({ownerDocument:e,container:t,initialFocus:n},r){let o=L(null),i=xo();return ua(()=>{if(!r)return;let s=t.current;s&&bi(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Jn(n.current):_i(s,Yn.First)===Tf.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function $1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=xo();$f(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=Hf(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?Vf(a,u)?(r.current=u,Jn(u)):(s.preventDefault(),s.stopPropagation(),Jn(l)):Jn(r.current)},!0)}function Vf(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Uf=ut(!1);function j1(){return Be(Uf)}function fa(e){return F.createElement(Uf.Provider,{value:e.force},e.children)}function H1(e){let t=j1(),n=Be(zf),r=Co(e),[o,i]=Ae(()=>{if(!t&&n!==null||pn.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return W(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),W(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let L1=fe;function V1(e,t){let n=e,r=L(null),o=dt(_1(c=>{r.current=c}),t),i=Co(r),s=H1(r),[a]=Ae(()=>{var c;return pn.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Be(da),u=Or();return tt(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),tt(()=>{if(a&&l)return l.register(a)},[l,a]),jf(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))}),u?!s||!a?null:Hs(Ze({ourProps:{ref:o},theirProps:n,defaultTag:L1,name:"Portal"}),a):null}let U1=fe,zf=ut(null);function z1(e,t){let{target:n,...r}=e,o={ref:dt(t)};return F.createElement(zf.Provider,{value:n},Ze({ourProps:o,theirProps:r,defaultTag:U1,name:"Popover.Group"}))}let da=ut(null);function G1(){let e=Be(da),t=L([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=Q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Q(()=>function({children:i}){return F.createElement(da.Provider,{value:o},i)},[o])]}let W1=Qe(V1),Z1=Qe(z1),pa=Object.assign(W1,{Group:Z1}),Gf=ut(null);function Wf(){let e=Be(Gf);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Wf),t}return e}function Zf(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return F.createElement(Gf.Provider,{value:o},n.children)},[t])]}let Q1="p";function K1(e,t){let n=In(),{id:r=`headlessui-description-${n}`,...o}=e,i=Wf(),s=dt(t);tt(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return Ze({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:Q1,name:i.name||"Description"})}let X1=Qe(K1),Qf=Object.assign(X1,{}),ha=ut(()=>{});ha.displayName="StackContext";var ma=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ma||{});function Y1(){return Be(ha)}function J1({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=Y1(),s=Z((...a)=>{t==null||t(...a),i(...a)});return tt(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),F.createElement(ha.Provider,{value:s},e)}function q1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const ey=typeof Object.is=="function"?Object.is:q1,{useState:ty,useEffect:ny,useLayoutEffect:ry,useDebugValue:oy}=zs;function iy(e,t,n){const r=t(),[{inst:o},i]=ty({inst:{value:r,getSnapshot:t}});return ry(()=>{o.value=r,o.getSnapshot=t,ga(o)&&i({inst:o})},[e,r,t]),ny(()=>(ga(o)&&i({inst:o}),e(()=>{ga(o)&&i({inst:o})})),[e]),oy(r),r}function ga(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ey(n,r)}catch{return!0}}function sy(e,t,n){return t()}const ay=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ly=!ay,cy=ly?sy:iy,uy="useSyncExternalStore"in zs?(e=>e.useSyncExternalStore)(zs):cy;function fy(e){return uy(e.subscribe,e.getSnapshot,e.getSnapshot)}function dy(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function py(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function hy(){if(!F1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(s){return r.containers.flatMap(a=>a()).some(a=>a.contains(s))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function my(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function gy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let qn=dy(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Nr(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:gy(n)},o=[hy(),py(),my()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});qn.subscribe(()=>{let e=qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&qn.dispatch("TEARDOWN",n)}});function wy(e,t,n){let r=fy(qn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return tt(()=>{if(!(!e||!t))return qn.dispatch("PUSH",e,n),()=>qn.dispatch("POP",e,n)},[t,e]),i}let wa=new Map,ko=new Map;function Kf(e,t=!0){tt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=ko.get(r))!=null?s:1;if(a===1?ko.delete(r):ko.set(r,a-1),a!==1)return;let l=wa.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,wa.delete(r))}let i=(n=ko.get(r))!=null?n:0;return ko.set(r,i+1),i!==0||(wa.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function yy({defaultContainers:e=[],portals:t}={}){let n=L(null),r=Co(n),o=Z(()=>{var i;let s=[];for(let a of e)a!==null&&(a instanceof HTMLElement?s.push(a):"current"in a&&a.current instanceof HTMLElement&&s.push(a.current));if(t!=null&&t.current)for(let a of t.current)s.push(a);for(let a of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(n.current)||s.some(l=>a.contains(l))||s.push(a));return s});return{resolveContainers:o,contains:Z(i=>o().some(s=>s.contains(i))),mainTreeNodeRef:n,MainTreeNode:Q(()=>function(){return F.createElement(Ci,{features:_o.Hidden,ref:n})},[n])}}var by=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(by||{}),vy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(vy||{});let _y={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},ki=ut(null);ki.displayName="DialogContext";function So(e){let t=Be(ki);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,So),n}return t}function Ay(e,t,n=()=>[document.body]){wy(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function xy(e,t){return $e(t.type,_y,e,t)}let Cy="div",Ey=Ai.RenderStrategy|Ai.Static;function ky(e,t){var n;let r=In(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[c,d]=Ae(0),f=ca();i===void 0&&f!==null&&(i=(f&pt.Open)===pt.Open);let p=L(null),h=dt(p,t),y=Co(p),w=e.hasOwnProperty("open")||f!==null,b=e.hasOwnProperty("onClose");if(!w&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!w)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let _=i?0:1,[I,R]=ho(xy,{titleId:null,descriptionId:null,panelRef:Fs()}),B=Z(()=>s(!1)),P=Z(we=>R({type:0,id:we})),N=Or()?l?!1:_===0:!1,M=c>1,ae=Be(ki)!==null,[De,Ke]=G1(),{resolveContainers:nt,mainTreeNodeRef:Fe,MainTreeNode:ve}=yy({portals:De,defaultContainers:[(n=I.panelRef.current)!=null?n:p.current]}),ge=M?"parent":"leaf",jr=f!==null?(f&pt.Closing)===pt.Closing:!1,Hr=(()=>ae||jr?!1:N)(),Jt=de(()=>{var we,rt;return(rt=Array.from((we=y==null?void 0:y.querySelectorAll("body > *"))!=null?we:[]).find(Te=>Te.id==="headlessui-portal-root"?!1:Te.contains(Fe.current)&&Te instanceof HTMLElement))!=null?rt:null},[Fe]);Kf(Jt,Hr);let _e=(()=>M?!0:N)(),Mo=de(()=>{var we,rt;return(rt=Array.from((we=y==null?void 0:y.querySelectorAll("[data-headlessui-portal]"))!=null?we:[]).find(Te=>Te.contains(Fe.current)&&Te instanceof HTMLElement))!=null?rt:null},[Fe]);Kf(Mo,_e);let ht=(()=>!(!N||M))();b1(nt,B,ht);let Lr=(()=>!(M||_!==0))();$f(y==null?void 0:y.defaultView,"keydown",we=>{Lr&&(we.defaultPrevented||we.key===Ei.Escape&&(we.preventDefault(),we.stopPropagation(),B()))});let Pi=(()=>!(jr||_!==0||ae))();Ay(y,Pi,nt),W(()=>{if(_!==0||!p.current)return;let we=new ResizeObserver(rt=>{for(let Te of rt){let Pt=Te.target.getBoundingClientRect();Pt.x===0&&Pt.y===0&&Pt.width===0&&Pt.height===0&&B()}});return we.observe(p.current),()=>we.disconnect()},[_,p,B]);let[Rn,Bi]=Zf(),gn=Q(()=>[{dialogState:_,close:B,setTitleId:P},I],[_,I,B,P]),Ro=Q(()=>({open:_===0}),[_]),$i={ref:h,id:o,role:"dialog","aria-modal":_===0?!0:void 0,"aria-labelledby":I.titleId,"aria-describedby":Rn};return F.createElement(J1,{type:"Dialog",enabled:_===0,element:p,onUpdate:Z((we,rt)=>{rt==="Dialog"&&$e(we,{[ma.Add]:()=>d(Te=>Te+1),[ma.Remove]:()=>d(Te=>Te-1)})})},F.createElement(fa,{force:!0},F.createElement(pa,null,F.createElement(ki.Provider,{value:gn},F.createElement(pa.Group,{target:p},F.createElement(fa,{force:!1},F.createElement(Bi,{slot:Ro,name:"Dialog.Description"},F.createElement(Eo,{initialFocus:a,containers:nt,features:N?$e(ge,{parent:Eo.features.RestoreFocus,leaf:Eo.features.All&~Eo.features.FocusLock}):Eo.features.None},F.createElement(Ke,null,Ze({ourProps:$i,theirProps:u,slot:Ro,defaultTag:Cy,features:Ey,visible:_===0,name:"Dialog"}))))))))),F.createElement(ve,null))}let Sy="div";function Dy(e,t){let n=In(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=So("Dialog.Overlay"),a=dt(t),l=Z(c=>{if(c.target===c.currentTarget){if(Bf(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),s()}}),u=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:Sy,name:"Dialog.Overlay"})}let Fy="div";function Ty(e,t){let n=In(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=So("Dialog.Backdrop"),a=dt(t);W(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=Q(()=>({open:i===0}),[i]);return F.createElement(fa,{force:!0},F.createElement(pa,null,Ze({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:Fy,name:"Dialog.Backdrop"})))}let Iy="div";function My(e,t){let n=In(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=So("Dialog.Panel"),a=dt(t,s.panelRef),l=Q(()=>({open:i===0}),[i]),u=Z(c=>{c.stopPropagation()});return Ze({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:Iy,name:"Dialog.Panel"})}let Ry="h2";function Ny(e,t){let n=In(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=So("Dialog.Title"),a=dt(t);W(()=>(s(r),()=>s(null)),[r,s]);let l=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:Ry,name:"Dialog.Title"})}let Oy=Qe(ky),Py=Qe(Ty),By=Qe(My),$y=Qe(Dy),jy=Qe(Ny),ya=Object.assign(Oy,{Backdrop:Py,Panel:By,Overlay:$y,Title:jy,Description:Qf});function Hy(e=0){let[t,n]=Ae(e),r=xo(),o=de(l=>{r.current&&n(u=>u|l)},[t,r]),i=de(l=>Boolean(t&l),[t]),s=de(l=>{r.current&&n(u=>u&~l)},[n,r]),a=de(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let Xf=ut(null);function Yf(){let e=Be(Xf);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Yf),t}return e}function Ly(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return F.createElement(Xf.Provider,{value:o},n.children)},[t])]}let Vy="label";function Uy(e,t){let n=In(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Yf(),a=dt(t);tt(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),Ze({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:Vy,name:s.name||"Label"})}let zy=Qe(Uy),Gy=Object.assign(zy,{}),ba=ut(null);ba.displayName="GroupContext";let Wy=fe;function Zy(e){var t;let[n,r]=Ae(null),[o,i]=Ly(),[s,a]=Zf(),l=Q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},c=e;return F.createElement(a,{name:"Switch.Description"},F.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(d){n&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},F.createElement(ba.Provider,{value:l},Ze({ourProps:u,theirProps:c,defaultTag:Wy,name:"Switch.Group"}))))}let Qy="button";function Ky(e,t){let n=In(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...c}=e,d=Be(ba),f=L(null),p=dt(f,t,d===null?null:d.setSwitch),[h,y]=D1(o,s,i),w=Z(()=>y==null?void 0:y(!h)),b=Z(N=>{if(Bf(N.currentTarget))return N.preventDefault();N.preventDefault(),w()}),_=Z(N=>{N.key===Ei.Space?(N.preventDefault(),w()):N.key===Ei.Enter&&C1(N.currentTarget)}),I=Z(N=>N.preventDefault()),R=Q(()=>({checked:h}),[h]),B={id:r,ref:p,role:"switch",type:v1(e,f),tabIndex:0,"aria-checked":h,"aria-labelledby":d==null?void 0:d.labelledby,"aria-describedby":d==null?void 0:d.describedby,onClick:b,onKeyUp:_,onKeyPress:I},P=vi();return W(()=>{var N;let M=(N=f.current)==null?void 0:N.closest("form");M&&i!==void 0&&P.addEventListener(M,"reset",()=>{y(i)})},[f,y]),F.createElement(F.Fragment,null,a!=null&&h&&F.createElement(Ci,{features:_o.Hidden,...sa({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:h,name:a,value:l})}),Ze({ourProps:B,theirProps:c,slot:R,defaultTag:Qy,name:"Switch"}))}let Xy=Qe(Ky),Yy=Zy,va=Object.assign(Xy,{Group:Yy,Label:Gy,Description:Qf});function Jy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function _a(e,...t){e&&t.length>0&&e.classList.add(...t)}function Aa(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qy(e,t){let n=Nr();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function eb(e,t,n,r){let o=n?"enter":"leave",i=Nr(),s=r!==void 0?Jy(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=$e(o,{enter:()=>t.enter,leave:()=>t.leave}),l=$e(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=$e(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Aa(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),_a(e,...a,...u),i.nextFrame(()=>{Aa(e,...u),_a(e,...l),qy(e,()=>(Aa(e,...a),_a(e,...t.entered),s()))}),i.dispose}function tb({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=xo(),s=vi(),a=hn(t);tt(()=>{let l=Nr();s.add(l.dispose);let u=e.current;if(u&&a.current!=="idle"&&i.current)return l.dispose(),r.current(a.current),l.add(eb(u,n.current,a.current==="enter",()=>{l.dispose(),o.current(a.current)})),l.dispose},[t])}function er(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Si=ut(null);Si.displayName="TransitionContext";var nb=(e=>(e.Visible="visible",e.Hidden="hidden",e))(nb||{});function rb(){let e=Be(Si);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ob(){let e=Be(Di);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Di=ut(null);Di.displayName="NestingContext";function Fi(e){return"children"in e?Fi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Jf(e,t){let n=hn(e),r=L([]),o=xo(),i=vi(),s=Z((p,h=mn.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&($e(h,{[mn.Unmount](){r.current.splice(y,1)},[mn.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var w;!Fi(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=Z(p=>{let h=r.current.find(({el:y})=>y===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>s(p,mn.Unmount)}),l=L([]),u=L(Promise.resolve()),c=L({enter:[],leave:[],idle:[]}),d=Z((p,h,y)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(c.current[h].map(([b,_])=>_)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(h)):y(h)}),f=Z((p,h,y)=>{Promise.all(c.current[h].splice(0).map(([w,b])=>b)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>y(h))});return Q(()=>({children:r,register:a,unregister:s,onStart:d,onStop:f,wait:u,chains:c}),[a,s,r,d,f,c,u])}function ib(){}let sb=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qf(e){var t;let n={};for(let r of sb)n[r]=(t=e[r])!=null?t:ib;return n}function ab(e){let t=L(qf(e));return W(()=>{t.current=qf(e)},[e]),t}let lb="div",ed=Ai.RenderStrategy;function cb(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:f,...p}=e,h=L(null),y=dt(h,t),w=p.unmount?mn.Unmount:mn.Hidden,{show:b,appear:_,initial:I}=rb(),[R,B]=Ae(b?"visible":"hidden"),P=ob(),{register:N,unregister:M}=P,ae=L(null);W(()=>N(h),[N,h]),W(()=>{if(w===mn.Hidden&&h.current){if(b&&R!=="visible"){B("visible");return}return $e(R,{hidden:()=>M(h),visible:()=>N(h)})}},[R,h,N,M,b,w]);let De=hn({enter:er(s),enterFrom:er(a),enterTo:er(l),entered:er(u),leave:er(c),leaveFrom:er(d),leaveTo:er(f)}),Ke=ab({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),nt=Or();W(()=>{if(nt&&R==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,R,nt]);let Fe=I&&!_,ve=(()=>!nt||Fe||ae.current===b?"idle":b?"enter":"leave")(),ge=Hy(0),jr=Z(ht=>$e(ht,{enter:()=>{ge.addFlag(pt.Opening),Ke.current.beforeEnter()},leave:()=>{ge.addFlag(pt.Closing),Ke.current.beforeLeave()},idle:()=>{}})),Hr=Z(ht=>$e(ht,{enter:()=>{ge.removeFlag(pt.Opening),Ke.current.afterEnter()},leave:()=>{ge.removeFlag(pt.Closing),Ke.current.afterLeave()},idle:()=>{}})),Jt=Jf(()=>{B("hidden"),M(h)},P);tb({container:h,classes:De,direction:ve,onStart:hn(ht=>{Jt.onStart(h,ht,jr)}),onStop:hn(ht=>{Jt.onStop(h,ht,Hr),ht==="leave"&&!Fi(Jt)&&(B("hidden"),M(h))})}),W(()=>{Fe&&(w===mn.Hidden?ae.current=null:ae.current=b)},[b,Fe,R]);let _e=p,Mo={ref:y};return _&&b&&I&&(_e={..._e,className:ia(p.className,...De.current.enter,...De.current.enterFrom)}),F.createElement(Di.Provider,{value:Jt},F.createElement(S1,{value:$e(R,{visible:pt.Open,hidden:pt.Closed})|ge.flags},Ze({ourProps:Mo,theirProps:_e,defaultTag:lb,features:ed,visible:R==="visible",name:"Transition.Child"})))}function ub(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=L(null),a=dt(s,t);Or();let l=ca();if(n===void 0&&l!==null&&(n=(l&pt.Open)===pt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=Ae(n?"visible":"hidden"),d=Jf(()=>{c("hidden")}),[f,p]=Ae(!0),h=L([n]);tt(()=>{f!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let y=Q(()=>({show:n,appear:r,initial:f}),[n,r,f]);W(()=>{if(n)c("visible");else if(!Fi(d))c("hidden");else{let I=s.current;if(!I)return;let R=I.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&c("hidden")}},[n,d]);let w={unmount:o},b=Z(()=>{var I;f&&p(!1),(I=e.beforeEnter)==null||I.call(e)}),_=Z(()=>{var I;f&&p(!1),(I=e.beforeLeave)==null||I.call(e)});return F.createElement(Di.Provider,{value:d},F.createElement(Si.Provider,{value:y},Ze({ourProps:{...w,as:fe,children:F.createElement(td,{ref:a,...w,...i,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:fe,features:ed,visible:u==="visible",name:"Transition"})))}function fb(e,t){let n=Be(Si)!==null,r=ca()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(xa,{ref:t,...e}):F.createElement(td,{ref:t,...e}))}let xa=Qe(ub),td=Qe(cb),db=Qe(fb),nd=Object.assign(xa,{Child:db,Root:xa});class Ti extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function pb(e){const t=En(e,1);return m(va,t)}class rd extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function hb(e){const t=En(e,1);return m(va.Label,t)}class mb extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Children"]}}function gb(e){const t=En(e,1);return m(va.Group,t)}class Ca extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function wb(e){const t=En(e,1);return m(nd.Root,t)}class je extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function od(e){const t=En(e,1);return m(nd.Child,t)}class Do extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function yb(e){const t=En(e,1);return m(ya,t)}class Ea extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function bb(e){const t=En(e,1);return m(ya.Panel,t)}class Ii extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function vb(e){const t=En(e,1);return m(ya.Title,t)}class _b extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class Ab extends ee{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function xb(e){let t,n,r,o;return wb(x([new Ca(0,["1"]),new Ca(2,[e.show]),new Ca(3,[[yb(x([new Do(1,["1"]),new Do(0,["div"]),new Do(2,["relative z-10"]),new Do(4,[e.cancelButtonClick]),new Do(5,[[od(x([new je(0,["1"]),new je(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0"]),new je(6,["opacity-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100"]),new je(9,["opacity-0"])])),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[m("div",$(x([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[od(x([new je(0,["1"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(6,["opacity-100 translate-y-0 sm:scale-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100 translate-y-0 sm:scale-100"]),new je(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(10,[[bb(x([new Ea(0,["1"]),new Ea(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Ea(2,[[m("div",$(x([["key","1"],["className","sm:flex sm:items-start"],(r=Ct(H(()=>{let i,s;return he((i=e.dialogIcon,i==null?ys():(s=i,O(m("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:C.Children.toArray([s])})))),H(()=>{let a,l;return O(m("div",$(x([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(a=[vb(x([new Ii(1,["1"]),new Ii(0,["h3"]),new Ii(2,["text-lg font-medium leading-6 text-gray-900"]),new Ii(3,[[m("span",{children:e.title,key:"1"})]])])),m("div",$(x([["className","mt-2"],["key","2"],(l=[m("p",{className:"text-sm text-gray-500",children:e.message})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])]))))}))})),["children",C.Children.toArray(Array.from(r))])]))),m("div",$(x([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=Ct(H(()=>he(O(m("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),H(()=>O(m("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:i=>{e.cancelButtonClick()},children:e.cancelButtonText})))))),["children",C.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]])]))]])]))}function Cb(e,t,n,r){const o=$t(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=$t(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function Eb(e,t,n,r,o){const i=Cb(t,n,r,o);return H(()=>tm(i,e))}function kb(e,t,n){return Eb(e,t,n,0,(r,o)=>r+o)}class Pr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Sb{constructor(t){this.state=new Pr(0,[Ko(new Array(Gi(Nn,t,10)),0,Gi(Nn,t,10),null),0])}}function Db(e){return new Sb(e)}function Fb(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 Pr(0,[o,n]):e.state=new Pr(1,[o,n,i]),ue(o[r])}else return}function Tb(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];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new Pr(1,[Ib(e,o,i),i.length,0]):e.state=new Pr(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Pr(1,[o,i,r])}}function Ib(e,t,n){return Array.from(H(()=>he(im(t,n),H(()=>he(sm(t,n),H(()=>lc(r=>O(Me()),kb(0,1,n.length))))))))}class id extends ee{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.syncDispatch=a}}function sd(e,t,n){return new id(e,t,r=>et(),n,oe(2,r=>{const o=or(1,n,[r]);return i=>{o(i)}}),r=>{vw(r[0],r[1])},oe(2,r=>r))}function Mb(e,t){return new id(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function Rb(e,t){const n=t.init(e),r=n[0],o=Db(10);let i=!1,s=r;const a=u=>{let c;if(i)Tb(o,u);else{i=!0;let d=ue(u);for(;d!=null;){const f=ne(d);try{const p=t.update(f,s),h=p[0];t.setState(h,l),uf(l,p[1]),s=h}catch(p){t.onError([(c=jn(rn("Unable to process the message: %A")),c(f)),p])}d=Fb(o)}i=!1}},l=or(1,t.syncDispatch,[a]);t.setState(r,l),uf(l,Jo((()=>{try{return t.subscribe(r)}catch(u){return t.onError(["Unable to subscribe:",u]),et()}})(),n[1]))}class Nb{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Ob(){return new Nb}function Pb(e){return e.state}function Bb(e){return e.hasDisposedOnce}function $b(e,t,n){e.state=ue(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function jb(e,t){const n=e.dispatcher;n!=null&&n(t)}function Hb(e,t){e.listener==null&&(e.listener=t)}function Lb(e){const t=e.state;if(t!=null){const n=ne(t);Wa(n)&&re(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function ad(e,t,n,r){Rb(t,Mb((i,s)=>{$b(n,i,s)},e()));const o=Pb(n);if(o!=null)return ne(o);throw new Error("Elmish program has not initialized")}function Vb(e,t,n){const r=of(Ob)[0],o=of(()=>ad(e,t,r)),i=o[1];return sf(()=>(Bb(r)&&i(ad(e,t,r)),Gs(()=>{Lb(r)})),Qo(n,[])),Hb(r,i),[o[0],s=>{jb(r,s)}]}function ld(e,t){return Vb(e,void 0,t)}function Ub(e,t,n){return ld(()=>sd(e,t,(r,o)=>{}),n)}function cd(e,t,n){return ld(()=>sd(()=>e,t,(r,o)=>{}),n)}class zb extends ee{constructor(t,n,r,o){super(),this.PartnerId=t,this.AccountId=n,this.ConfigService=r,this.EditAllowed=o}}function Gb(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Wb(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return m("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});case 1:return Me()}}function Zb(e,t){return m("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Gb(e)}`})}function Qb(e,t,n){let r;const o=e.EditAllowed&&!yi(t.Mode),i=o?"":"hidden",s=yi(t.Mode)?"":"hidden",a=o&&Ye(ta(t).Ownership,new Xs(0,[]))?"":"hidden";return m("div",$(x([["className","flex flex-row space-x-2 basis-3/4"],(r=[m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:l=>{n(Jw())},type:"button",children:"Save"}),m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:l=>{n(new ke(8,[]))},type:"button",children:"Cancel"}),m("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:l=>{n(new ke(0,[new ea(1,[])]))},type:"button",children:C.Children.toArray([a1])}),m("button",{className:`${a} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:l=>{n(new ke(6,[]))},type:"button",children:C.Children.toArray([l1])})],["children",C.Children.toArray(Array.from(r))])])))}function Kb(e,t,n,r){return gb(Ee(new mb(0,[[pb(x([new Ti(0,[e]),new Ti(1,[o=>{n&&r(o)}]),new Ti(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Ti(3,[[m("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),hb(x([new rd(0,["ml-3"]),new rd(1,[[m("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))]])))}function Xb(e,t){return e.CurrentConfirmationDialog==null?Me():xb(new Ab(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",s1,"Reset",()=>{t(qw())},new _b(1,[]),"Cancel",()=>{t(new ke(7,[]))}))}function Yb(e){let t,n,r;const o=cd(e1,(u,c)=>t1(e.PartnerId,e.AccountId,e.ConfigService,u,c)),i=o[0],s=o[1],a=e.EditAllowed&&yi(i.Mode),l=i.Config;switch(l.tag){case 1:return m("div",{children:["Please wait"]});case 3:return m("div",{children:["Something went wrong. Please try again"]});case 2:{const u=l.fields[0];if(u.tag===0){const c=u.fields[0];return m("div",$(x([["className","flex flex-col mt-5 w-full "],(t=[m("div",$(x([["className","flex flex-row"],(n=[Zb(c,yi(i.Mode)),Qb(e,i,s)],["children",C.Children.toArray(Array.from(n))])]))),m("div",$(x([["className","mt-5"],(r=[Kb(c.AdminUserManagementEnabled,"User Management",a,d=>{s(new ke(3,[d]))})],["children",C.Children.toArray(Array.from(r))])]))),Wb(i),Xb(i,s)],["children",C.Children.toArray(Array.from(t))])])))}else return m("div",{children:[`${u.fields[0]}`]})}default:return m("div",{children:["Please wait"]})}}const Jb=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;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))}.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}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-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}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
35
|
-
`,ka=(()=>Ve(Jb))();function ud(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return m("div",$(x([["className","border-b border-gray-200"],(t=[m("nav",$(x([["className","-mb-px flex space-x-8"],(n=Ct(H(()=>Ne(s=>m("a",{key:ff(s),className:on(" ",Ct(H(()=>he(Ye(o,s)?O("border-indigo-500 text-indigo-600"):O("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),H(()=>O("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:a=>{r(s)},children:ff(s)}),i))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class fd extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class qb{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function ev(e,t,n){return new qb(e,t,n)}function dd(e,t){return Kt(ft,()=>{let n,r,o,i;const s=Ir((n=Tr(new Kn(0,[]),Fr(`${e.baseUrl}/${t}`)),r=Dr((o=jn(rn("Bearer %s")),o(e.accessToken))),Fn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Delay(()=>v.Bind(i,a=>{let l,u;const c=a;return c.tag===1?v.Return(new g(1,[c.fields[0]])):v.ReturnFrom((l=c.fields[0],l.statusCode===200?(u=zn(oe(2,Gn(Og(),new Tt(1,[]),void 0)),l.responseText),v.Return(u)):v.Return(new g(1,["Failed to fetch import"]))))}))})}function tv(e){return Kt(ft,()=>{let t,n,r,o;const i=Ir((t=Tr(new Kn(0,[]),Fr(e.baseUrl)),n=Dr((r=jn(rn("Bearer %s")),r(e.accessToken))),Fn(n,t)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Delay(()=>v.Bind(o,s=>{let a,l;const u=s;return u.tag===1?v.Return(new g(1,[u.fields[0]])):v.ReturnFrom((a=u.fields[0],a.statusCode===200?(l=zn(oe(2,Gn(qc(),new Tt(1,[]),void 0)),a.responseText),v.Return(l)):v.Return(new g(1,["Failed to fetch account imports"]))))}))})}function nv(e,t){return Kt(ft,()=>{let n,r,o,i;const s=Ir((n=gf(new Ks(3,[t]),Tr(new Kn(1,[]),Fr(e.baseUrl))),r=Dr((o=jn(rn("Bearer %s")),o(e.accessToken))),Fn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Delay(()=>v.Bind(i,a=>{let l,u,c,d,f,p;const h=a;return h.tag===1?v.Return(new g(1,[h.fields[0]])):v.ReturnFrom((l=h.fields[0],u=l.statusCode|0,u===200?(c=(d=zn(oe(2,Gn(qc(),new Tt(1,[]),void 0)),l.responseText),v.Return(d)),v.Bind(c,y=>{const w=an(b=>new fd(0,[b]),y);return v.Return(w)})):u===400?(f=(p=zn(oe(2,Gn(Rg(),new Tt(1,[]),void 0)),l.responseText),v.Return(p)),v.Bind(f,y=>{const w=an(b=>new fd(1,[b]),y);return v.Return(w)})):v.Return(new g(1,["Failed to create account import"]))))}))})}function Fo(e){let t;return m("div",$(x([["className","text-center"],(t=[m("p",{children:["Oops, something went wrong."]}),m("p",{children:[`Error: ${e}.`]}),m("p",{children:["Please refresh the page and try again."]}),m("button",{className:"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",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",C.Children.toArray(Array.from(t))])])))}function pd(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=mw(r(o),[]);let s,a,l,u;switch(i.tag===1?s=0:i.tag===3?(s=1,a=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,u=i.fields[0].fields[0]):(s=2,l=i.fields[0].fields[0]):s=0,s){case 0:return Me();case 1:return Fo(a.message);case 2:return Fo(l);case 3:return m("div",$(x([["className","text-center"],(t=Ct(H(()=>he(O(m("p",{children:[`Import ID: ${u.ImportId}`]})),H(()=>he(O(m("p",{children:[`Creator: ${u.User}`]})),H(()=>he(O(m("p",{children:[`Filename: ${u.Filename}`]})),H(()=>he(O(m("p",{children:[`Date started: ${Ve(u.StartTime)}`]})),H(()=>{let c;return he((c=u.StopTime,c==null?O(Me()):O(m("p",{children:[`Date completed: ${Ve(c)}`]}))),H(()=>he(O(m("p",{children:[`Total rows: ${u.TotalRecordCount}`]})),H(()=>he(O(m("p",{children:[`Succeeded rows: ${u.SucceededRecordCount}`]})),H(()=>he(O(m("p",{children:[`Failed rows: ${u.FailedRecordCount}`]})),H(()=>{let d;return he(u.FailedRecordCount>0?O(m("div",$(x([["className","mt-8"],(d=Ct(H(()=>he(O(m("p",{children:["The following profiles could not be created"]})),H(()=>Ne(f=>m("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),u.FailedRecords))))),["children",C.Children.toArray(Array.from(d))])])))):ys(),H(()=>O(m("button",{type:"button",children:"Done",className:"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",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Sa extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function rv(e){let t,n,r,o,i,s,a,l;const u=e.fetchImport,c=e.accountImports,d=go(new Sa(0,[])),f=d[0],p=d[1];return f.tag===0?m("div",$(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",$(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",$(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",$(x([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",$(x([["className","bg-gray-100"],(i=[(s=x([m("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"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),m("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),m("tbody",$(x([["className","divide-y divide-gray-200 bg-white"],(a=Ct(H(()=>Ne(h=>{let y;return m("tr",$(x([["key",h.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new Sa(1,[h.ImportId]))}],(y=[m("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:h.ImportId}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ve(h.StartTime)}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.User}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.Succeeded})],["children",C.Children.toArray(Array.from(y))])])))},c.ImportHistory))),["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))])]))):m("div",$(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=[m(pd,{importId:f.fields[0],fetchImport:u,onDone:()=>{p(new Sa(0,[]))}})],["children",C.Children.toArray(Array.from(l))])])))}const ov="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",iv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",sv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";var K={exports:{}},av="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lv=av,cv=lv;function hd(){}function md(){}md.resetWarningCache=hd;var uv=function(){function e(r,o,i,s,a,l){if(l!==cv){var u=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 u.name="Invariant Violation",u}}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:md,resetWarningCache:hd};return n.PropTypes=n,n};K.exports=uv();function Br(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(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function $r(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(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function gd(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 wd(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 fv=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 To(e,t){var n=dv(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 dv(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=fv.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var pv=[".DS_Store","Thumbs.db"];function hv(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return Mi(e)&&mv(e.dataTransfer)?[2,bv(e.dataTransfer,e.type)]:gv(e)?[2,wv(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,yv(e)]:[2,[]]})})}function mv(e){return Mi(e)}function gv(e){return Mi(e)&&Mi(e.target)}function Mi(e){return typeof e=="object"&&e!==null}function wv(e){return Da(e.target.files).map(function(t){return To(t)})}function yv(e){return Br(this,void 0,void 0,function(){var t;return $r(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 To(r)})]}})})}function bv(e,t){return Br(this,void 0,void 0,function(){var n,r;return $r(this,function(o){switch(o.label){case 0:return e.items?(n=Da(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(vv))]):[3,2];case 1:return r=o.sent(),[2,yd(bd(r))];case 2:return[2,yd(Da(e.files).map(function(i){return To(i)}))]}})})}function yd(e){return e.filter(function(t){return pv.indexOf(t.name)===-1})}function Da(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function vv(e){if(typeof e.webkitGetAsEntry!="function")return vd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?_d(t):vd(e)}function bd(e){return e.reduce(function(t,n){return wd(wd([],gd(t),!1),gd(Array.isArray(n)?bd(n):[n]),!1)},[])}function vd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=To(t);return Promise.resolve(n)}function _v(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return[2,e.isDirectory?_d(e):Av(e)]})})}function _d(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return Br(s,void 0,void 0,function(){var l,u,c;return $r(this,function(d){switch(d.label){case 0:if(a.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=d.sent(),n(l),[3,4];case 3:return u=d.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(_v)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function Av(e){return Br(this,void 0,void 0,function(){return $r(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=To(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var xv=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 Ad(e){return kv(e)||Ev(e)||kd(e)||Cv()}function Cv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
37
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
38
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
39
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nd(e,t){if(!!e){if(typeof e=="string")return Ia(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 Ia(e,t)}}function Ia(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 e_(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(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function t_(e){if(Array.isArray(e))return e}function Od(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Od(Object(n),!0).forEach(function(r){Ma(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ma(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e,t){if(e==null)return{};var n=n_(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 n_(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 Ra=hi(function(e,t){var n=e.children,r=Oi(e,Gv),o=Bd(r),i=o.open,s=Oi(o,Wv);return Os(t,function(){return{open:i}},[i]),F.createElement(fe,null,n(ce(ce({},s),{},{open:i})))});Ra.displayName="Dropzone";var Pd={disabled:!1,getFilesFromEvent:hv,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};Ra.defaultProps=Pd,Ra.propTypes={children:K.exports.func,accept:K.exports.objectOf(K.exports.arrayOf(K.exports.string)),multiple:K.exports.bool,preventDropOnDocument:K.exports.bool,noClick:K.exports.bool,noKeyboard:K.exports.bool,noDrag:K.exports.bool,noDragEventsBubbling:K.exports.bool,minSize:K.exports.number,maxSize:K.exports.number,maxFiles:K.exports.number,disabled:K.exports.bool,getFilesFromEvent:K.exports.func,onFileDialogCancel:K.exports.func,onFileDialogOpen:K.exports.func,useFsAccessApi:K.exports.bool,autoFocus:K.exports.bool,onDragEnter:K.exports.func,onDragLeave:K.exports.func,onDragOver:K.exports.func,onDrop:K.exports.func,onDropAccepted:K.exports.func,onDropRejected:K.exports.func,onError:K.exports.func,validator:K.exports.func};var Na={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Bd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ce(ce({},Pd),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,_=t.autoFocus,I=t.preventDropOnDocument,R=t.noClick,B=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ae=t.validator,De=Q(function(){return Vv(n)},[n]),Ke=Q(function(){return Lv(n)},[n]),nt=Q(function(){return typeof w=="function"?w:$d},[w]),Fe=Q(function(){return typeof y=="function"?y:$d},[y]),ve=L(null),ge=L(null),jr=ho(r_,Na),Hr=Ta(jr,2),Jt=Hr[0],_e=Hr[1],Mo=Jt.isFocused,ht=Jt.isFileDialogActive,Lr=L(typeof window<"u"&&window.isSecureContext&&b&&Hv()),Pi=function(){!Lr.current&&ht&&setTimeout(function(){if(ge.current){var D=ge.current.files;D.length||(_e({type:"closeDialog"}),Fe())}},300)};W(function(){return window.addEventListener("focus",Pi,!1),function(){window.removeEventListener("focus",Pi,!1)}},[ge,ht,Fe,Lr]);var Rn=L([]),Bi=function(D){ve.current&&ve.current.contains(D.target)||(D.preventDefault(),Rn.current=[])};W(function(){return I&&(document.addEventListener("dragover",Id,!1),document.addEventListener("drop",Bi,!1)),function(){I&&(document.removeEventListener("dragover",Id),document.removeEventListener("drop",Bi))}},[ve,I]),W(function(){return!r&&_&&ve.current&&ve.current.focus(),function(){}},[ve,_,r]);var gn=de(function(A){M?M(A):console.error(A)},[M]),Ro=de(function(A){A.preventDefault(),A.persist(),Hi(A),Rn.current=[].concat(Kv(Rn.current),[A.target]),Ni(A)&&Promise.resolve(o(A)).then(function(D){if(!(Ri(A)&&!N)){var ye=D.length,Ie=ye>0&&Pv({files:D,accept:De,minSize:s,maxSize:i,multiple:a,maxFiles:l,validator:ae}),mt=ye>0&&!Ie;_e({isDragAccept:Ie,isDragReject:mt,isDragActive:!0,type:"setDraggedFiles"}),u&&u(A)}}).catch(function(D){return gn(D)})},[o,u,gn,N,De,s,i,a,l,ae]),$i=de(function(A){A.preventDefault(),A.persist(),Hi(A);var D=Ni(A);if(D&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return D&&d&&d(A),!1},[d,N]),we=de(function(A){A.preventDefault(),A.persist(),Hi(A);var D=Rn.current.filter(function(Ie){return ve.current&&ve.current.contains(Ie)}),ye=D.indexOf(A.target);ye!==-1&&D.splice(ye,1),Rn.current=D,!(D.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ni(A)&&c&&c(A))},[ve,c,N]),rt=de(function(A,D){var ye=[],Ie=[];A.forEach(function(mt){var No=Fd(mt,De),Ur=Ta(No,2),Ba=Ur[0],$a=Ur[1],ja=Td(mt,s,i),Li=Ta(ja,2),Ha=Li[0],La=Li[1],Va=ae?ae(mt):null;if(Ba&&Ha&&!Va)ye.push(mt);else{var Ua=[$a,La];Va&&(Ua=Ua.concat(Va)),Ie.push({file:mt,errors:Ua.filter(function(E_){return E_})})}}),(!a&&ye.length>1||a&&l>=1&&ye.length>l)&&(ye.forEach(function(mt){Ie.push({file:mt,errors:[Ov]})}),ye.splice(0)),_e({acceptedFiles:ye,fileRejections:Ie,type:"setFiles"}),f&&f(ye,Ie,D),Ie.length>0&&h&&h(Ie,D),ye.length>0&&p&&p(ye,D)},[_e,a,De,s,i,l,f,p,h,ae]),Te=de(function(A){A.preventDefault(),A.persist(),Hi(A),Rn.current=[],Ni(A)&&Promise.resolve(o(A)).then(function(D){Ri(A)&&!N||rt(D,A)}).catch(function(D){return gn(D)}),_e({type:"reset"})},[o,rt,gn,N]),Pt=de(function(){if(Lr.current){_e({type:"openDialog"}),nt();var A={multiple:a,types:Ke};window.showOpenFilePicker(A).then(function(D){return o(D)}).then(function(D){rt(D,null),_e({type:"closeDialog"})}).catch(function(D){Uv(D)?(Fe(D),_e({type:"closeDialog"})):zv(D)?(Lr.current=!1,ge.current?(ge.current.value=null,ge.current.click()):gn(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."))):gn(D)});return}ge.current&&(_e({type:"openDialog"}),nt(),ge.current.value=null,ge.current.click())},[_e,nt,Fe,b,rt,gn,Ke,a]),Zd=de(function(A){!ve.current||!ve.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),Pt())},[ve,Pt]),Qd=de(function(){_e({type:"focus"})},[]),Kd=de(function(){_e({type:"blur"})},[]),Xd=de(function(){R||(jv()?setTimeout(Pt,0):Pt())},[R,Pt]),Vr=function(D){return r?null:D},Pa=function(D){return B?null:Vr(D)},ji=function(D){return P?null:Vr(D)},Hi=function(D){N&&D.stopPropagation()},A_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.role,mt=A.onKeyDown,No=A.onFocus,Ur=A.onBlur,Ba=A.onClick,$a=A.onDragEnter,ja=A.onDragOver,Li=A.onDragLeave,Ha=A.onDrop,La=Oi(A,Zv);return ce(ce(Ma({onKeyDown:Pa(Yt(mt,Zd)),onFocus:Pa(Yt(No,Qd)),onBlur:Pa(Yt(Ur,Kd)),onClick:Vr(Yt(Ba,Xd)),onDragEnter:ji(Yt($a,Ro)),onDragOver:ji(Yt(ja,$i)),onDragLeave:ji(Yt(Li,we)),onDrop:ji(Yt(Ha,Te)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},ye,ve),!r&&!B?{tabIndex:0}:{}),La)}},[ve,Zd,Qd,Kd,Xd,Ro,$i,we,Te,B,P,r]),x_=de(function(A){A.stopPropagation()},[]),C_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.onChange,mt=A.onClick,No=Oi(A,Qv),Ur=Ma({accept:De,multiple:a,type:"file",style:{display:"none"},onChange:Vr(Yt(Ie,Te)),onClick:Vr(Yt(mt,x_)),tabIndex:-1},ye,ge);return ce(ce({},Ur),No)}},[ge,n,a,Te,r]);return ce(ce({},Jt),{},{isFocused:Mo&&!r,getRootProps:A_,getInputProps:C_,rootRef:ve,inputRef:ge,open:Vr(Pt)})}function r_(e,t){switch(t.type){case"focus":return ce(ce({},e),{},{isFocused:!0});case"blur":return ce(ce({},e),{},{isFocused:!1});case"openDialog":return ce(ce({},Na),{},{isFileDialogActive:!0});case"closeDialog":return ce(ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ce(ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ce(ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ce({},Na);default:return e}}function $d(){}const o_="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",i_="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 s_=0;function Se(e,t,n,r,o,i){var s,a,l={};for(a in t)a=="ref"?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--s_,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return E.vnode&&E.vnode(u),u}function a_({onCancel:e,onSubmit:t,onFileDrop:n}){const r=de(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:l}=Bd({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),u=a.map(d=>Se("p",{children:d.path},d.path)),c=l.map(({file:d,errors:f})=>Se("li",{children:[d.path," - ",d.size," bytes",Se("ul",{children:f.map(p=>Se("li",{children:p.message},p.code))})]},d.path));return Se("div",{...o(),children:[Se("input",{...i(),name:"file"}),Se("img",{src:u.length?i_:o_,className:"mx-auto mb-2"}),l.length?Se("div",{className:"mb-2",children:[Se("div",{className:"mb-2 font-semibold",children:"Rejected files"}),Se("ul",{children:c})]}):Se(fe,{}),u.length?Se(fe,{children:[u,Se("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"}),Se("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"})]}):Se(fe,{children:[Se("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),Se("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"})]})]})}class Ot extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class jd extends ee{constructor(t){super(),this.View=t}}class He extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function l_(){return[new jd(new Ot(0,[])),et()]}function c_(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,wo(qo(Nt,n.fields[0].fields[0].tag===1?Ee(new He(0,[new Ot(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Ee(new He(0,[new Ot(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Ee(new He(0,[new Ot(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[o])]),new He(2,[new We(0,[void 0])])]))))]:[r,wo(x([Nt(new He(0,[new Ot(1,[])])),yo(a=>{kr(a)},a=>nv(t,a),n.fields[0].fields[0],a=>new He(1,[new We(1,[a])]))]))]:n.tag===2?n.fields[0].tag===1?[r,wo(qo(Nt,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Ot(4,[Y0(a=>a.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Ot(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Ot(0,[])])))))]:(kr(v.Delay(()=>v.Bind(dw(1e4),()=>(e(),v.Zero())))),[r,et()]):[new jd(n.fields[0]),et()]}const Hd={Csv:"First Name,Middle Name,Last Name,Email,Mobile Number,External ID,Title,Gender,DoB,Address Line 1,Address Line 2,City,State,PostCode,CountryCode",Filename:"ProfileImportCsvTemplate.csv"},Ld=ov,Vd=iv,u_=sv;function Ud(e,t,n){let r;return m("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 f_(e){let t;const n=e.dispatch,r=go(!1),o=r[1],i=go(0),s=i[0]|0,a=go(new FormData),l=a[0];return m("form",$(x([["key",s],(t=Ct(H(()=>he(O(m(a_,{onCancel:()=>{i[1](s+1),a[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(u,c)=>{l.set("file",u,c)}})),H(()=>{let u,c,d,f,p,h,y;return r[0]?O((u=x([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],(c=[m("div",$(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[m("div",$(x([["className","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"],(f=[(p=x([m("div",$(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(h=[m("img",{src:Ld,className:"mx-auto"}),m("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),m("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(h))])]))),m("div",$(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(y=[m("button",{type:"button",className:"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",children:"I confirm",onClick:w=>{n(new He(1,[new We(0,[l])]))}}),m("button",{type:"button",className:"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",children:"Cancel",onClick:w=>{o(!1)}})],["children",C.Children.toArray(Array.from(y))])])))]),m("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(c))])])))]),m("div",{children:C.Children.toArray(Array.from(u))}))):ys()})))),["children",C.Children.toArray(Array.from(t))])])))}function d_(e){let t,n,r,o,i,s,a,l;const u=e.onDone,c=e.importService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,h=cd(l_(),(b,_)=>c_(d,c,b,_)),y=h[1];af(()=>{y(new He(2,[new We(1,[f])]))},[f]);const w=x([m("div",$(x([["className","space-y-6"],(t=[(n=x([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
34
|
+
`));let d=u.props,f=typeof(d==null?void 0:d.className)=="function"?(...h)=>ea(d==null?void 0:d.className(...h),a.className):ea(d==null?void 0:d.className,a.className),p=f?{className:f}:{};return Bs(u,Object.assign({},Ff(u.props,ta(na(a,["ref"]))),c,l,c1(u.ref,l.ref),p))}return m(o,Object.assign({},na(a,["ref"]),o!==fe&&l,o!==fe&&c),u)}function c1(...e){return{ref:e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}}function Ff(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function Qe(e){var t;return Object.assign(ui(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ta(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function na(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function If(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&u1(n)?!1:r}function u1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function f1(e){var t;let n=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(n){for(let r of n.elements)if(r.tagName==="INPUT"&&r.type==="submit"||r.tagName==="BUTTON"&&r.type==="submit"||r.nodeName==="INPUT"&&r.type==="image"){r.click();return}}}let d1="div";var yo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(yo||{});function p1(e,t){let{features:n=1,...r}=e,o={ref:t,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return Ze({ourProps:o,theirProps:r,slot:{},defaultTag:d1,name:"Hidden"})}let _i=Qe(p1),ra=ut(null);ra.displayName="OpenClosedContext";var dt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(dt||{});function oa(){return Be(ra)}function h1({value:e,children:t}){return T.createElement(ra.Provider,{value:e},t)}var Ai=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ai||{});function m1(e,t,n){let[r,o]=Ae(n),i=e!==void 0,s=L(i),a=L(!1),l=L(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,Z(u=>(i||o(u),t==null?void 0:t(u)))]}function ia(e,t){let n=L([]),r=Z(e);W(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function g1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var bo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(bo||{});function w1(){let e=L(0);return Sf("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function vo(){let e=L(!1);return tt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function _o(...e){return Q(()=>xf(...e),[...e])}function Mf(e,t,n,r){let o=fn(n);W(()=>{e=e!=null?e:window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function y1(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}function Rf(e){let t=Z(e),n=L(!1);W(()=>(n.current=!1,()=>{n.current=!0,gi(()=>{n.current&&t()})}),[t])}function Nf(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let b1="div";var Of=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Of||{});function v1(e,t){let n=L(null),r=ft(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Mr()||(s=1);let l=_o(n);x1({ownerDocument:l},Boolean(s&16));let u=C1({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));E1({ownerDocument:l,container:n,containers:i,previousActiveElement:u},Boolean(s&8));let c=w1(),d=Z(w=>{let y=n.current;!y||(b=>b())(()=>{$e(c.current,{[bo.Forwards]:()=>{yi(y,Kn.First,{skipElements:[w.relatedTarget]})},[bo.Backwards]:()=>{yi(y,Kn.Last,{skipElements:[w.relatedTarget]})}})})}),f=wi(),p=L(!1),h={ref:r,onKeyDown(w){w.key=="Tab"&&(p.current=!0,f.requestAnimationFrame(()=>{p.current=!1}))},onBlur(w){let y=Nf(i);n.current instanceof HTMLElement&&y.add(n.current);let b=w.relatedTarget;b instanceof HTMLElement&&b.dataset.headlessuiFocusGuard!=="true"&&(Pf(y,b)||(p.current?yi(n.current,$e(c.current,{[bo.Forwards]:()=>Kn.Next,[bo.Backwards]:()=>Kn.Previous})|Kn.WrapAround,{relativeTo:w.target}):w.target instanceof HTMLElement&&Xn(w.target)))}};return T.createElement(T.Fragment,null,Boolean(s&4)&&T.createElement(_i,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:yo.Focusable}),Ze({ourProps:h,theirProps:a,defaultTag:b1,name:"FocusTrap"}),Boolean(s&4)&&T.createElement(_i,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:yo.Focusable}))}let _1=Qe(v1),Ao=Object.assign(_1,{features:Of}),Tn=[];y1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&Tn[0]!==t.target&&(Tn.unshift(t.target),Tn=Tn.filter(n=>n!=null&&n.isConnected),Tn.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function A1(e=!0){let t=L(Tn.slice());return ia(([n],[r])=>{r===!0&&n===!1&&gi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Tn.slice())},[e,Tn,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function x1({ownerDocument:e},t){let n=A1(t);ia(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Xn(n())},[t]),Rf(()=>{t&&Xn(n())})}function C1({ownerDocument:e,container:t,initialFocus:n},r){let o=L(null),i=vo();return ia(()=>{if(!r)return;let s=t.current;s&&gi(()=>{if(!i.current)return;let a=e==null?void 0:e.activeElement;if(n!=null&&n.current){if((n==null?void 0:n.current)===a){o.current=a;return}}else if(s.contains(a)){o.current=a;return}n!=null&&n.current?Xn(n.current):yi(s,Kn.First)===Cf.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=e==null?void 0:e.activeElement})},[r]),o}function E1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=vo();Mf(e==null?void 0:e.defaultView,"focus",s=>{if(!o||!i.current)return;let a=Nf(n);t.current instanceof HTMLElement&&a.add(t.current);let l=r.current;if(!l)return;let u=s.target;u&&u instanceof HTMLElement?Pf(a,u)?(r.current=u,Xn(u)):(s.preventDefault(),s.stopPropagation(),Xn(l)):Xn(r.current)},!0)}function Pf(e,t){for(let n of e)if(n.contains(t))return!0;return!1}let Bf=ut(!1);function k1(){return Be(Bf)}function sa(e){return T.createElement(Bf.Provider,{value:e.force},e.children)}function S1(e){let t=k1(),n=Be($f),r=_o(e),[o,i]=Ae(()=>{if(!t&&n!==null||un.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return W(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),W(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let D1=fe;function T1(e,t){let n=e,r=L(null),o=ft(l1(c=>{r.current=c}),t),i=_o(r),s=S1(r),[a]=Ae(()=>{var c;return un.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Be(aa),u=Mr();return tt(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),tt(()=>{if(a&&l)return l.register(a)},[l,a]),Rf(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))}),u?!s||!a?null:Os(Ze({ourProps:{ref:o},theirProps:n,defaultTag:D1,name:"Portal"}),a):null}let F1=fe,$f=ut(null);function I1(e,t){let{target:n,...r}=e,o={ref:ft(t)};return T.createElement($f.Provider,{value:n},Ze({ourProps:o,theirProps:r,defaultTag:F1,name:"Popover.Group"}))}let aa=ut(null);function M1(){let e=Be(aa),t=L([]),n=Z(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=Z(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=Q(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Q(()=>function({children:i}){return T.createElement(aa.Provider,{value:o},i)},[o])]}let R1=Qe(T1),N1=Qe(I1),la=Object.assign(R1,{Group:N1}),jf=ut(null);function Hf(){let e=Be(jf);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Hf),t}return e}function Lf(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return T.createElement(jf.Provider,{value:o},n.children)},[t])]}let O1="p";function P1(e,t){let n=Dn(),{id:r=`headlessui-description-${n}`,...o}=e,i=Hf(),s=ft(t);tt(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return Ze({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:O1,name:i.name||"Description"})}let B1=Qe(P1),Vf=Object.assign(B1,{}),ca=ut(()=>{});ca.displayName="StackContext";var ua=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(ua||{});function $1(){return Be(ca)}function j1({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=$1(),s=Z((...a)=>{t==null||t(...a),i(...a)});return tt(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),T.createElement(ca.Provider,{value:s},e)}function H1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const L1=typeof Object.is=="function"?Object.is:H1,{useState:V1,useEffect:U1,useLayoutEffect:z1,useDebugValue:G1}=js;function W1(e,t,n){const r=t(),[{inst:o},i]=V1({inst:{value:r,getSnapshot:t}});return z1(()=>{o.value=r,o.getSnapshot=t,fa(o)&&i({inst:o})},[e,r,t]),U1(()=>(fa(o)&&i({inst:o}),e(()=>{fa(o)&&i({inst:o})})),[e]),G1(r),r}function fa(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!L1(n,r)}catch{return!0}}function Z1(e,t,n){return t()}const Q1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",K1=!Q1,X1=K1?Z1:W1,Y1="useSyncExternalStore"in js?(e=>e.useSyncExternalStore)(js):X1;function J1(e){return Y1(e.subscribe,e.getSnapshot,e.getSnapshot)}function q1(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function ey(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=((n=t.defaultView)!=null?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function ty(){if(!g1())return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(s){return r.containers.flatMap(a=>a()).some(a=>a.contains(s))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let i=null;n.addEventListener(t,"click",s=>{if(s.target instanceof HTMLElement)try{let a=s.target.closest("a");if(!a)return;let{hash:l}=new URL(a.href),u=t.querySelector(l);u&&!o(u)&&(i=u)}catch{}},!0),n.addEventListener(t,"touchmove",s=>{s.target instanceof HTMLElement&&!o(s.target)&&s.preventDefault()},{passive:!1}),n.add(()=>{window.scrollTo(0,window.pageYOffset+e),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})}}}function ny(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ry(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yn=q1(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ir(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ry(n)},o=[ty(),ey(),ny()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Yn.subscribe(()=>{let e=Yn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&Yn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Yn.dispatch("TEARDOWN",n)}});function oy(e,t,n){let r=J1(Yn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return tt(()=>{if(!(!e||!t))return Yn.dispatch("PUSH",e,n),()=>Yn.dispatch("POP",e,n)},[t,e]),i}let da=new Map,xo=new Map;function Uf(e,t=!0){tt(()=>{var n;if(!t)return;let r=typeof e=="function"?e():e.current;if(!r)return;function o(){var s;if(!r)return;let a=(s=xo.get(r))!=null?s:1;if(a===1?xo.delete(r):xo.set(r,a-1),a!==1)return;let l=da.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,da.delete(r))}let i=(n=xo.get(r))!=null?n:0;return xo.set(r,i+1),i!==0||(da.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function iy({defaultContainers:e=[],portals:t}={}){let n=L(null),r=_o(n),o=Z(()=>{var i;let s=[];for(let a of e)a!==null&&(a instanceof HTMLElement?s.push(a):"current"in a&&a.current instanceof HTMLElement&&s.push(a.current));if(t!=null&&t.current)for(let a of t.current)s.push(a);for(let a of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])a!==document.body&&a!==document.head&&a instanceof HTMLElement&&a.id!=="headlessui-portal-root"&&(a.contains(n.current)||s.some(l=>a.contains(l))||s.push(a));return s});return{resolveContainers:o,contains:Z(i=>o().some(s=>s.contains(i))),mainTreeNodeRef:n,MainTreeNode:Q(()=>function(){return T.createElement(_i,{features:yo.Hidden,ref:n})},[n])}}var sy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(sy||{}),ay=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(ay||{});let ly={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},xi=ut(null);xi.displayName="DialogContext";function Co(e){let t=Be(xi);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Co),n}return t}function cy(e,t,n=()=>[document.body]){oy(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function uy(e,t){return $e(t.type,ly,e,t)}let fy="div",dy=bi.RenderStrategy|bi.Static;function py(e,t){var n;let r=Dn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[c,d]=Ae(0),f=oa();i===void 0&&f!==null&&(i=(f&dt.Open)===dt.Open);let p=L(null),h=ft(p,t),w=_o(p),y=e.hasOwnProperty("open")||f!==null,b=e.hasOwnProperty("onClose");if(!y&&!b)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!b)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(typeof i!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if(typeof s!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let _=i?0:1,[I,R]=uo(uy,{titleId:null,descriptionId:null,panelRef:Cs()}),B=Z(()=>s(!1)),P=Z(we=>R({type:0,id:we})),N=Mr()?l?!1:_===0:!1,M=c>1,ae=Be(xi)!==null,[De,Ke]=M1(),{resolveContainers:nt,mainTreeNodeRef:Te,MainTreeNode:ve}=iy({portals:De,defaultContainers:[(n=I.panelRef.current)!=null?n:p.current]}),ge=M?"parent":"leaf",Pr=f!==null?(f&dt.Closing)===dt.Closing:!1,Br=(()=>ae||Pr?!1:N)(),Xt=de(()=>{var we,rt;return(rt=Array.from((we=w==null?void 0:w.querySelectorAll("body > *"))!=null?we:[]).find(Fe=>Fe.id==="headlessui-portal-root"?!1:Fe.contains(Te.current)&&Fe instanceof HTMLElement))!=null?rt:null},[Te]);Uf(Xt,Br);let _e=(()=>M?!0:N)(),To=de(()=>{var we,rt;return(rt=Array.from((we=w==null?void 0:w.querySelectorAll("[data-headlessui-portal]"))!=null?we:[]).find(Fe=>Fe.contains(Te.current)&&Fe instanceof HTMLElement))!=null?rt:null},[Te]);Uf(To,_e);let pt=(()=>!(!N||M))();s1(nt,B,pt);let $r=(()=>!(M||_!==0))();Mf(w==null?void 0:w.defaultView,"keydown",we=>{$r&&(we.defaultPrevented||we.key===Ai.Escape&&(we.preventDefault(),we.stopPropagation(),B()))});let Ri=(()=>!(Pr||_!==0||ae))();cy(w,Ri,nt),W(()=>{if(_!==0||!p.current)return;let we=new ResizeObserver(rt=>{for(let Fe of rt){let Ot=Fe.target.getBoundingClientRect();Ot.x===0&&Ot.y===0&&Ot.width===0&&Ot.height===0&&B()}});return we.observe(p.current),()=>we.disconnect()},[_,p,B]);let[Fn,Ni]=Lf(),pn=Q(()=>[{dialogState:_,close:B,setTitleId:P},I],[_,I,B,P]),Fo=Q(()=>({open:_===0}),[_]),Oi={ref:h,id:o,role:"dialog","aria-modal":_===0?!0:void 0,"aria-labelledby":I.titleId,"aria-describedby":Fn};return T.createElement(j1,{type:"Dialog",enabled:_===0,element:p,onUpdate:Z((we,rt)=>{rt==="Dialog"&&$e(we,{[ua.Add]:()=>d(Fe=>Fe+1),[ua.Remove]:()=>d(Fe=>Fe-1)})})},T.createElement(sa,{force:!0},T.createElement(la,null,T.createElement(xi.Provider,{value:pn},T.createElement(la.Group,{target:p},T.createElement(sa,{force:!1},T.createElement(Ni,{slot:Fo,name:"Dialog.Description"},T.createElement(Ao,{initialFocus:a,containers:nt,features:N?$e(ge,{parent:Ao.features.RestoreFocus,leaf:Ao.features.All&~Ao.features.FocusLock}):Ao.features.None},T.createElement(Ke,null,Ze({ourProps:Oi,theirProps:u,slot:Fo,defaultTag:fy,features:dy,visible:_===0,name:"Dialog"}))))))))),T.createElement(ve,null))}let hy="div";function my(e,t){let n=Dn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Co("Dialog.Overlay"),a=ft(t),l=Z(c=>{if(c.target===c.currentTarget){if(If(c.currentTarget))return c.preventDefault();c.preventDefault(),c.stopPropagation(),s()}}),u=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:l},theirProps:o,slot:u,defaultTag:hy,name:"Dialog.Overlay"})}let gy="div";function wy(e,t){let n=Dn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Co("Dialog.Backdrop"),a=ft(t);W(()=>{if(s.panelRef.current===null)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[s.panelRef]);let l=Q(()=>({open:i===0}),[i]);return T.createElement(sa,{force:!0},T.createElement(la,null,Ze({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:gy,name:"Dialog.Backdrop"})))}let yy="div";function by(e,t){let n=Dn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Co("Dialog.Panel"),a=ft(t,s.panelRef),l=Q(()=>({open:i===0}),[i]),u=Z(c=>{c.stopPropagation()});return Ze({ourProps:{ref:a,id:r,onClick:u},theirProps:o,slot:l,defaultTag:yy,name:"Dialog.Panel"})}let vy="h2";function _y(e,t){let n=Dn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Co("Dialog.Title"),a=ft(t);W(()=>(s(r),()=>s(null)),[r,s]);let l=Q(()=>({open:i===0}),[i]);return Ze({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:vy,name:"Dialog.Title"})}let Ay=Qe(py),xy=Qe(wy),Cy=Qe(by),Ey=Qe(my),ky=Qe(_y),pa=Object.assign(Ay,{Backdrop:xy,Panel:Cy,Overlay:Ey,Title:ky,Description:Vf});function Sy(e=0){let[t,n]=Ae(e),r=vo(),o=de(l=>{r.current&&n(u=>u|l)},[t,r]),i=de(l=>Boolean(t&l),[t]),s=de(l=>{r.current&&n(u=>u&~l)},[n,r]),a=de(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let zf=ut(null);function Gf(){let e=Be(zf);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Gf),t}return e}function Dy(){let[e,t]=Ae([]);return[e.length>0?e.join(" "):void 0,Q(()=>function(n){let r=Z(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=Q(()=>({register:r,slot:n.slot,name:n.name,props:n.props}),[r,n.slot,n.name,n.props]);return T.createElement(zf.Provider,{value:o},n.children)},[t])]}let Ty="label";function Fy(e,t){let n=Dn(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Gf(),a=ft(t);tt(()=>s.register(r),[r,s.register]);let l={ref:a,...s.props,id:r};return o&&("onClick"in l&&(delete l.htmlFor,delete l.onClick),"onClick"in i&&delete i.onClick),Ze({ourProps:l,theirProps:i,slot:s.slot||{},defaultTag:Ty,name:s.name||"Label"})}let Iy=Qe(Fy),My=Object.assign(Iy,{}),ha=ut(null);ha.displayName="GroupContext";let Ry=fe;function Ny(e){var t;let[n,r]=Ae(null),[o,i]=Dy(),[s,a]=Lf(),l=Q(()=>({switch:n,setSwitch:r,labelledby:o,describedby:s}),[n,r,o,s]),u={},c=e;return T.createElement(a,{name:"Switch.Description"},T.createElement(i,{name:"Switch.Label",props:{htmlFor:(t=l.switch)==null?void 0:t.id,onClick(d){n&&(d.currentTarget.tagName==="LABEL"&&d.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},T.createElement(ha.Provider,{value:l},Ze({ourProps:u,theirProps:c,defaultTag:Ry,name:"Switch.Group"}))))}let Oy="button";function Py(e,t){let n=Dn(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...c}=e,d=Be(ha),f=L(null),p=ft(f,t,d===null?null:d.setSwitch),[h,w]=m1(o,s,i),y=Z(()=>w==null?void 0:w(!h)),b=Z(N=>{if(If(N.currentTarget))return N.preventDefault();N.preventDefault(),y()}),_=Z(N=>{N.key===Ai.Space?(N.preventDefault(),y()):N.key===Ai.Enter&&f1(N.currentTarget)}),I=Z(N=>N.preventDefault()),R=Q(()=>({checked:h}),[h]),B={id:r,ref:p,role:"switch",type:a1(e,f),tabIndex:0,"aria-checked":h,"aria-labelledby":d==null?void 0:d.labelledby,"aria-describedby":d==null?void 0:d.describedby,onClick:b,onKeyUp:_,onKeyPress:I},P=wi();return W(()=>{var N;let M=(N=f.current)==null?void 0:N.closest("form");M&&i!==void 0&&P.addEventListener(M,"reset",()=>{w(i)})},[f,w]),T.createElement(T.Fragment,null,a!=null&&h&&T.createElement(_i,{features:yo.Hidden,...ta({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:h,name:a,value:l})}),Ze({ourProps:B,theirProps:c,slot:R,defaultTag:Oy,name:"Switch"}))}let By=Qe(Py),$y=Ny,ma=Object.assign(By,{Group:$y,Label:My,Description:Vf});function jy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function ga(e,...t){e&&t.length>0&&e.classList.add(...t)}function wa(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Hy(e,t){let n=Ir();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,s]=[r,o].map(l=>{let[u=0]=l.split(",").filter(Boolean).map(c=>c.includes("ms")?parseFloat(c):parseFloat(c)*1e3).sort((c,d)=>d-c);return u}),a=i+s;if(a!==0){n.group(u=>{u.setTimeout(()=>{t(),u.dispose()},a),u.addEventListener(e,"transitionrun",c=>{c.target===c.currentTarget&&u.dispose()})});let l=n.addEventListener(e,"transitionend",u=>{u.target===u.currentTarget&&(t(),l())})}else t();return n.add(()=>t()),n.dispose}function Ly(e,t,n,r){let o=n?"enter":"leave",i=Ir(),s=r!==void 0?jy(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=$e(o,{enter:()=>t.enter,leave:()=>t.leave}),l=$e(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=$e(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return wa(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ga(e,...a,...u),i.nextFrame(()=>{wa(e,...u),ga(e,...l),Hy(e,()=>(wa(e,...a),ga(e,...t.entered),s()))}),i.dispose}function Vy({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=vo(),s=wi(),a=fn(t);tt(()=>{let l=Ir();s.add(l.dispose);let u=e.current;if(u&&a.current!=="idle"&&i.current)return l.dispose(),r.current(a.current),l.add(Ly(u,n.current,a.current==="enter",()=>{l.dispose(),o.current(a.current)})),l.dispose},[t])}function Jn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Ci=ut(null);Ci.displayName="TransitionContext";var Uy=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Uy||{});function zy(){let e=Be(Ci);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Gy(){let e=Be(Ei);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ei=ut(null);Ei.displayName="NestingContext";function ki(e){return"children"in e?ki(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Wf(e,t){let n=fn(e),r=L([]),o=vo(),i=wi(),s=Z((p,h=dn.Hidden)=>{let w=r.current.findIndex(({el:y})=>y===p);w!==-1&&($e(h,{[dn.Unmount](){r.current.splice(w,1)},[dn.Hidden](){r.current[w].state="hidden"}}),i.microTask(()=>{var y;!ki(r)&&o.current&&((y=n.current)==null||y.call(n))}))}),a=Z(p=>{let h=r.current.find(({el:w})=>w===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>s(p,dn.Unmount)}),l=L([]),u=L(Promise.resolve()),c=L({enter:[],leave:[],idle:[]}),d=Z((p,h,w)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([y])=>y!==p)),t==null||t.chains.current[h].push([p,new Promise(y=>{l.current.push(y)})]),t==null||t.chains.current[h].push([p,new Promise(y=>{Promise.all(c.current[h].map(([b,_])=>_)).then(()=>y())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(h)):w(h)}),f=Z((p,h,w)=>{Promise.all(c.current[h].splice(0).map(([y,b])=>b)).then(()=>{var y;(y=l.current.shift())==null||y()}).then(()=>w(h))});return Q(()=>({children:r,register:a,unregister:s,onStart:d,onStop:f,wait:u,chains:c}),[a,s,r,d,f,c,u])}function Wy(){}let Zy=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Zf(e){var t;let n={};for(let r of Zy)n[r]=(t=e[r])!=null?t:Wy;return n}function Qy(e){let t=L(Zf(e));return W(()=>{t.current=Zf(e)},[e]),t}let Ky="div",Qf=bi.RenderStrategy;function Xy(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:l,entered:u,leave:c,leaveFrom:d,leaveTo:f,...p}=e,h=L(null),w=ft(h,t),y=p.unmount?dn.Unmount:dn.Hidden,{show:b,appear:_,initial:I}=zy(),[R,B]=Ae(b?"visible":"hidden"),P=Gy(),{register:N,unregister:M}=P,ae=L(null);W(()=>N(h),[N,h]),W(()=>{if(y===dn.Hidden&&h.current){if(b&&R!=="visible"){B("visible");return}return $e(R,{hidden:()=>M(h),visible:()=>N(h)})}},[R,h,N,M,b,y]);let De=fn({enter:Jn(s),enterFrom:Jn(a),enterTo:Jn(l),entered:Jn(u),leave:Jn(c),leaveFrom:Jn(d),leaveTo:Jn(f)}),Ke=Qy({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),nt=Mr();W(()=>{if(nt&&R==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,R,nt]);let Te=I&&!_,ve=(()=>!nt||Te||ae.current===b?"idle":b?"enter":"leave")(),ge=Sy(0),Pr=Z(pt=>$e(pt,{enter:()=>{ge.addFlag(dt.Opening),Ke.current.beforeEnter()},leave:()=>{ge.addFlag(dt.Closing),Ke.current.beforeLeave()},idle:()=>{}})),Br=Z(pt=>$e(pt,{enter:()=>{ge.removeFlag(dt.Opening),Ke.current.afterEnter()},leave:()=>{ge.removeFlag(dt.Closing),Ke.current.afterLeave()},idle:()=>{}})),Xt=Wf(()=>{B("hidden"),M(h)},P);Vy({container:h,classes:De,direction:ve,onStart:fn(pt=>{Xt.onStart(h,pt,Pr)}),onStop:fn(pt=>{Xt.onStop(h,pt,Br),pt==="leave"&&!ki(Xt)&&(B("hidden"),M(h))})}),W(()=>{Te&&(y===dn.Hidden?ae.current=null:ae.current=b)},[b,Te,R]);let _e=p,To={ref:w};return _&&b&&I&&(_e={..._e,className:ea(p.className,...De.current.enter,...De.current.enterFrom)}),T.createElement(Ei.Provider,{value:Xt},T.createElement(h1,{value:$e(R,{visible:dt.Open,hidden:dt.Closed})|ge.flags},Ze({ourProps:To,theirProps:_e,defaultTag:Ky,features:Qf,visible:R==="visible",name:"Transition.Child"})))}function Yy(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=L(null),a=ft(s,t);Mr();let l=oa();if(n===void 0&&l!==null&&(n=(l&dt.Open)===dt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=Ae(n?"visible":"hidden"),d=Wf(()=>{c("hidden")}),[f,p]=Ae(!0),h=L([n]);tt(()=>{f!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let w=Q(()=>({show:n,appear:r,initial:f}),[n,r,f]);W(()=>{if(n)c("visible");else if(!ki(d))c("hidden");else{let I=s.current;if(!I)return;let R=I.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&c("hidden")}},[n,d]);let y={unmount:o},b=Z(()=>{var I;f&&p(!1),(I=e.beforeEnter)==null||I.call(e)}),_=Z(()=>{var I;f&&p(!1),(I=e.beforeLeave)==null||I.call(e)});return T.createElement(Ei.Provider,{value:d},T.createElement(Ci.Provider,{value:w},Ze({ourProps:{...y,as:fe,children:T.createElement(Kf,{ref:a,...y,...i,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:fe,features:Qf,visible:u==="visible",name:"Transition"})))}function Jy(e,t){let n=Be(Ci)!==null,r=oa()!==null;return T.createElement(T.Fragment,null,!n&&r?T.createElement(ya,{ref:t,...e}):T.createElement(Kf,{ref:t,...e}))}let ya=Qe(Yy),Kf=Qe(Xy),qy=Qe(Jy),Xf=Object.assign(ya,{Child:qy,Root:ya});class Si extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function eb(e){const t=An(e,1);return m(ma,t)}class Yf extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function tb(e){const t=An(e,1);return m(ma.Label,t)}class nb extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Children"]}}function rb(e){const t=An(e,1);return m(ma.Group,t)}class ba extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function ob(e){const t=An(e,1);return m(Xf.Root,t)}class je extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Jf(e){const t=An(e,1);return m(Xf.Child,t)}class Eo extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function ib(e){const t=An(e,1);return m(pa,t)}class va extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function sb(e){const t=An(e,1);return m(pa.Panel,t)}class Di extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function ab(e){const t=An(e,1);return m(pa.Title,t)}class lb extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class cb extends ee{constructor(t,n,r,o,i,s,a,l,u){super(),this.show=t,this.title=n,this.message=r,this.dialogIcon=o,this.okButtonText=i,this.okButtonClick=s,this.okButtonThem=a,this.cancelButtonText=l,this.cancelButtonClick=u}}function ub(e){let t,n,r,o;return ob(x([new ba(0,["1"]),new ba(2,[e.show]),new ba(3,[[ib(x([new Eo(1,["1"]),new Eo(0,["div"]),new Eo(2,["relative z-10"]),new Eo(4,[e.cancelButtonClick]),new Eo(5,[[Jf(x([new je(0,["1"]),new je(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0"]),new je(6,["opacity-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100"]),new je(9,["opacity-0"])])),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[m("div",$(x([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Jf(x([new je(0,["1"]),new je(4,["ease-out duration-300"]),new je(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(6,["opacity-100 translate-y-0 sm:scale-100"]),new je(7,["ease-in duration-200"]),new je(8,["opacity-100 translate-y-0 sm:scale-100"]),new je(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new je(10,[[sb(x([new va(0,["1"]),new va(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new va(2,[[m("div",$(x([["key","1"],["className","sm:flex sm:items-start"],(r=xt(H(()=>{let i,s;return he((i=e.dialogIcon,i==null?hs():(s=i,O(m("div",{key:"1",className:"mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center sm:mx-0 sm:h-10 sm:w-10 sm:mr-4 rounded-full bg-red-100",children:C.Children.toArray([s])})))),H(()=>{let a,l;return O(m("div",$(x([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(a=[ab(x([new Di(1,["1"]),new Di(0,["h3"]),new Di(2,["text-lg font-medium leading-6 text-gray-900"]),new Di(3,[[m("span",{children:e.title,key:"1"})]])])),m("div",$(x([["className","mt-2"],["key","2"],(l=[m("p",{className:"text-sm text-gray-500",children:e.message})],["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])]))))}))})),["children",C.Children.toArray(Array.from(r))])]))),m("div",$(x([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=xt(H(()=>he(O(m("button",{key:"Ok",type:"button",className:e.okButtonThem.tag===1?"inline-flex w-full justify-center rounded-md border border-transparent bg-red-600 px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm":"inline-flex w-full justify-center rounded-md border border-transparent bg-white px-4 py-2 text-base font-medium text-white shadow-sm hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-gray-300 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",onClick:i=>{e.okButtonClick()},children:e.okButtonText})),H(()=>O(m("button",{key:"Cancel",type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-gray-300 bg-white px-4 py-2 text-base font-medium text-gray-700 shadow-sm hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-gray-200 focus:ring-offset-2 sm:mt-0 sm:w-auto sm:text-sm",onClick:i=>{e.cancelButtonClick()},children:e.cancelButtonText})))))),["children",C.Children.toArray(Array.from(o))])])))]])]))]])]))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))]])]))]])]))}function fb(e,t,n,r){const o=Bt(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=Bt(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function db(e,t,n,r,o){const i=fb(t,n,r,o);return H(()=>Kh(i,e))}function pb(e,t,n){return db(e,t,n,0,(r,o)=>r+o)}class Rr extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class hb{constructor(t){this.state=new Rr(0,[Wo(new Array(Vi(In,t,10)),0,Vi(In,t,10),null),0])}}function mb(e){return new hb(e)}function gb(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 Rr(0,[o,n]):e.state=new Rr(1,[o,n,i]),ue(o[r])}else return}function wb(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];i[r]=t;const s=(r+1)%i.length|0;s===o?e.state=new Rr(1,[yb(e,o,i),i.length,0]):e.state=new Rr(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Rr(1,[o,i,r])}}function yb(e,t,n){return Array.from(H(()=>he(qh(t,n),H(()=>he(em(t,n),H(()=>rc(r=>O(Me()),pb(0,1,n.length))))))))}class qf extends ee{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.syncDispatch=a}}function ed(e,t,n){return new qf(e,t,r=>et(),n,oe(2,r=>{const o=nr(1,n,[r]);return i=>{o(i)}}),r=>{cw(r[0],r[1])},oe(2,r=>r))}function bb(e,t){return new qf(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function vb(e,t){const n=t.init(e),r=n[0],o=mb(10);let i=!1,s=r;const a=u=>{let c;if(i)wb(o,u);else{i=!0;let d=ue(u);for(;d!=null;){const f=ne(d);try{const p=t.update(f,s),h=p[0];t.setState(h,l),of(l,p[1]),s=h}catch(p){t.onError([(c=Pn(tn("Unable to process the message: %A")),c(f)),p])}d=gb(o)}i=!1}},l=nr(1,t.syncDispatch,[a]);t.setState(r,l),of(l,Ko((()=>{try{return t.subscribe(r)}catch(u){return t.onError(["Unable to subscribe:",u]),et()}})(),n[1]))}class _b{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Ab(){return new _b}function xb(e){return e.state}function Cb(e){return e.hasDisposedOnce}function Eb(e,t,n){e.state=ue(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function kb(e,t){const n=e.dispatcher;n!=null&&n(t)}function Sb(e,t){e.listener==null&&(e.listener=t)}function Db(e){const t=e.state;if(t!=null){const n=ne(t);La(n)&&re(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function td(e,t,n,r){vb(t,bb((i,s)=>{Eb(n,i,s)},e()));const o=xb(n);if(o!=null)return ne(o);throw new Error("Elmish program has not initialized")}function Tb(e,t,n){const r=Ju(Ab)[0],o=Ju(()=>td(e,t,r)),i=o[1];return qu(()=>(Cb(r)&&i(td(e,t,r)),Hs(()=>{Db(r)})),Go(n,[])),Sb(r,i),[o[0],s=>{kb(r,s)}]}function nd(e,t){return Tb(e,void 0,t)}function Fb(e,t,n){return nd(()=>ed(e,t,(r,o)=>{}),n)}function rd(e,t,n){return nd(()=>ed(()=>e,t,(r,o)=>{}),n)}class Ib extends ee{constructor(t,n,r,o){super(),this.PartnerId=t,this.AccountId=n,this.ConfigService=r,this.EditAllowed=o}}function Mb(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Rb(e){const t=e.Error;let n,r;switch(t!=null&&e.Mode.tag===1?(n=0,r=t):n=1,n){case 0:return m("h1",{className:"basis-1/4 text-lg font-semibold text-red-500",children:`${r}. Please cancel edit or try again`});case 1:return Me()}}function Nb(e,t){return m("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Mb(e)}`})}function Ob(e,t,n){let r;const o=e.EditAllowed&&!mi(t.Mode),i=o?"":"hidden",s=mi(t.Mode)?"":"hidden",a=o&&Ye(Xs(t).Ownership,new Gs(0,[]))?"":"hidden";return m("div",$(x([["className","flex flex-row space-x-2 basis-3/4"],(r=[m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700`,onClick:l=>{n(jw())},type:"button",children:"Save"}),m("button",{className:`${s} inline-flex justify-center rounded-md border border-transparent py-2 px-4 shadow-sm focus:outline-none focus:ring-indigo-500 focus:ring-2 focus:ring-offset-2 text-sm font-medium border-gray-300 bg-white text-gray-700 hover:bg-gray-50 focus:ring-gray-300`,onClick:l=>{n(new ke(8,[]))},type:"button",children:"Cancel"}),m("button",{className:`${i} inline-flex items-center rounded border border-transparent bg-indigo-600 px-2.5 py-1.5 mr-2 text-xs font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none`,onClick:l=>{n(new ke(0,[new Ks(1,[])]))},type:"button",children:C.Children.toArray([Qw])}),m("button",{className:`${a} inline-flex items-center rounded border border-transparent bg-red-600 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm hover:bg-red-700 focus:outline-none`,onClick:l=>{n(new ke(6,[]))},type:"button",children:C.Children.toArray([Kw])})],["children",C.Children.toArray(Array.from(r))])])))}function Pb(e,t,n,r){return rb(Ee(new nb(0,[[eb(x([new Si(0,[e]),new Si(1,[o=>{n&&r(o)}]),new Si(2,[`${e?"bg-gray-900":"bg-gray-300"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary-600 focus:ring-offset-2`]),new Si(3,[[m("span",{className:`${e?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out`})]])])),tb(x([new Yf(0,["ml-3"]),new Yf(1,[[m("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))]])))}function Bb(e,t){return e.CurrentConfirmationDialog==null?Me():ub(new cb(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",Zw,"Reset",()=>{t(Hw())},new lb(1,[]),"Cancel",()=>{t(new ke(7,[]))}))}function $b(e){let t,n,r;const o=rd(Lw,(u,c)=>Vw(e.PartnerId,e.AccountId,e.ConfigService,u,c)),i=o[0],s=o[1],a=e.EditAllowed&&mi(i.Mode),l=i.Config;switch(l.tag){case 1:return m("div",{children:["Please wait"]});case 3:return m("div",{children:["Something went wrong. Please try again"]});case 2:{const u=l.fields[0];if(u.tag===0){const c=u.fields[0];return m("div",$(x([["className","flex flex-col mt-5 w-full "],(t=[m("div",$(x([["className","flex flex-row"],(n=[Nb(c,mi(i.Mode)),Ob(e,i,s)],["children",C.Children.toArray(Array.from(n))])]))),m("div",$(x([["className","mt-5"],(r=[Pb(c.AdminUserManagementEnabled,"User Management",a,d=>{s(new ke(3,[d]))})],["children",C.Children.toArray(Array.from(r))])]))),Rb(i),Bb(i,s)],["children",C.Children.toArray(Array.from(t))])])))}else return m("div",{children:[`${u.fields[0]}`]})}default:return m("div",{children:["Please wait"]})}}const jb=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{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,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}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-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-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[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}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],[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,[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}::-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]{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")}[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")}[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}[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: }::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: }.pointer-events-none{pointer-events:none}.static{position:static}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:0px}.z-10{z-index:10}.-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-3{margin-left:.75rem}.ml-6{margin-left:1.5rem}.mr-2{margin-right:.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}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-12{height:3rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.min-h-full{min-height:100%}.w-11{width:2.75rem}.w-12{width:3rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.min-w-full{min-width:100%}.flex-shrink-0{flex-shrink:0}.basis-1\\/4{flex-basis:25%}.basis-3\\/4{flex-basis:75%}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-5{--tw-translate-x: 1.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y: 1rem;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))}.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}.list-outside{list-style-position:outside}.list-disc{list-style-type:disc}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.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))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.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-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / 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-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.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-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-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}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / 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-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.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)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.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}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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-500:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity))}.hover\\:bg-red-700:hover{--tw-bg-opacity: 1;background-color:rgb(185 28 28 / var(--tw-bg-opacity))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\\:ring-indigo-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.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}@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\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:mr-4{margin-right:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:mt-5{margin-top:1.25rem}.sm\\:mt-6{margin-top:1.5rem}.sm\\:flex{display:flex}.sm\\:grid{display:grid}.sm\\:h-10{height:2.5rem}.sm\\:w-10{width:2.5rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:grid-flow-row-dense{grid-auto-flow:row dense}.sm\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.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}.sm\\:text-left{text-align:left}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1024px){.lg\\:-mx-8{margin-left:-2rem;margin-right:-2rem}.lg\\:px-8{padding-left:2rem;padding-right:2rem}}
|
|
35
|
+
`,_a=(()=>Ve(jb))();function od(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return m("div",$(x([["className","border-b border-gray-200"],(t=[m("nav",$(x([["className","-mb-px flex space-x-8"],(n=xt(H(()=>Ne(s=>m("a",{key:sf(s),className:nn(" ",xt(H(()=>he(Ye(o,s)?O("border-indigo-500 text-indigo-600"):O("border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 cursor-pointer"),H(()=>O("whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium")))))),onClick:a=>{r(s)},children:sf(s)}),i))),["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class id extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class Hb{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function Lb(e,t,n){return new Hb(e,t,n)}function sd(e,t){return v.Delay(()=>{let n,r,o,i;const s=Tr((n=Dr(new Zn(0,[]),Sr(`${e.baseUrl}/${t}`)),r=kr((o=Pn(tn("Bearer %s")),o(e.accessToken))),kn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Bind(i,a=>{const l=a;if(l.tag===1)return v.Return(new g(1,[l.fields[0]]));{const u=l.fields[0];if(u.statusCode===200){const c=Vn(oe(2,Un(_g(),new Tt(1,[]),void 0)),u.responseText);return v.Return(c)}else return v.Return(new g(1,["Failed to fetch import"]))}})})}function Vb(e){return v.Delay(()=>{let t,n,r,o;const i=Tr((t=Dr(new Zn(0,[]),Sr(e.baseUrl)),n=kr((r=Pn(tn("Bearer %s")),r(e.accessToken))),kn(n,t)));return o=v.Bind(i,s=>v.Return(new g(0,[s]))),v.Bind(o,s=>{const a=s;if(a.tag===1)return v.Return(new g(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){const u=Vn(oe(2,Un(Zc(),new Tt(1,[]),void 0)),l.responseText);return v.Return(u)}else return v.Return(new g(1,["Failed to fetch account imports"]))}})})}function Ub(e,t){return v.Delay(()=>{let n,r,o,i;const s=Tr((n=ff(new zs(3,[t]),Dr(new Zn(1,[]),Sr(e.baseUrl))),r=kr((o=Pn(tn("Bearer %s")),o(e.accessToken))),kn(r,n)));return i=v.Bind(s,a=>v.Return(new g(0,[a]))),v.Bind(i,a=>{const l=a;if(l.tag===1)return v.Return(new g(1,[l.fields[0]]));{const u=l.fields[0],c=u.statusCode|0;if(c===200){let d;const f=Vn(oe(2,Un(Zc(),new Tt(1,[]),void 0)),u.responseText);return d=v.Return(f),v.Bind(d,p=>{let h;const w=p;return h=w.tag===1?new g(1,[w.fields[0]]):new g(0,[new id(0,[w.fields[0]])]),v.Return(h)})}else if(c===400){let d;const f=Vn(oe(2,Un(bg(),new Tt(1,[]),void 0)),u.responseText);return d=v.Return(f),v.Bind(d,p=>{let h;const w=p;return h=w.tag===1?new g(1,[w.fields[0]]):new g(0,[new id(1,[w.fields[0]])]),v.Return(h)})}else return v.Return(new g(1,["Failed to create account import"]))}})})}function ko(e){let t;return m("div",$(x([["className","text-center"],(t=[m("p",{children:["Oops, something went wrong."]}),m("p",{children:[`Error: ${e}.`]}),m("p",{children:["Please refresh the page and try again."]}),m("button",{className:"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",onClick:n=>{window.location.reload()},children:"Refresh"})],["children",C.Children.toArray(Array.from(t))])])))}function ad(e){let t;const n=e.onDone,r=e.fetchImport,o=e.importId,i=ow(r(o),[]);let s,a,l,u;switch(i.tag===1?s=0:i.tag===3?(s=1,a=i.fields[0]):i.tag===2?i.fields[0].tag===0?(s=3,u=i.fields[0].fields[0]):(s=2,l=i.fields[0].fields[0]):s=0,s){case 0:return Me();case 1:return ko(a.message);case 2:return ko(l);case 3:return m("div",$(x([["className","text-center"],(t=xt(H(()=>he(O(m("p",{children:[`Import ID: ${u.ImportId}`]})),H(()=>he(O(m("p",{children:[`Creator: ${u.User}`]})),H(()=>he(O(m("p",{children:[`Filename: ${u.Filename}`]})),H(()=>he(O(m("p",{children:[`Date started: ${Ve(u.StartTime)}`]})),H(()=>{let c;return he((c=u.StopTime,c==null?O(Me()):O(m("p",{children:[`Date completed: ${Ve(c)}`]}))),H(()=>he(O(m("p",{children:[`Total rows: ${u.TotalRecordCount}`]})),H(()=>he(O(m("p",{children:[`Succeeded rows: ${u.SucceededRecordCount}`]})),H(()=>he(O(m("p",{children:[`Failed rows: ${u.FailedRecordCount}`]})),H(()=>{let d;return he(u.FailedRecordCount>0?O(m("div",$(x([["className","mt-8"],(d=xt(H(()=>he(O(m("p",{children:["The following profiles could not be created"]})),H(()=>Ne(f=>m("li",{children:[`Row ${f.RowId}: ${f.Reason}`]}),u.FailedRecords))))),["children",C.Children.toArray(Array.from(d))])])))):hs(),H(()=>O(m("button",{type:"button",children:"Done",className:"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",onClick:f=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class Aa extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HistoryTable","ImportSummary"]}}function zb(e){let t,n,r,o,i,s,a,l;const u=e.fetchImport,c=e.accountImports,d=po(new Aa(0,[])),f=d[0],p=d[1];return f.tag===0?m("div",$(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",$(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",$(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",$(x([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",$(x([["className","bg-gray-100"],(i=[(s=x([m("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"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"Date"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"User"}),m("th",{scope:"col",className:"px-3 py-3.5 text-left text-sm font-semibold text-gray-900",children:"# of Profiles"})]),m("tr",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(i))])]))),m("tbody",$(x([["className","divide-y divide-gray-200 bg-white"],(a=xt(H(()=>Ne(h=>{let w;return m("tr",$(x([["key",h.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",y=>{p(new Aa(1,[h.ImportId]))}],(w=[m("td",{className:"whitespace-nowrap py-4 pl-4 pr-3 text-sm text-gray-500 sm:pl-6",children:h.ImportId}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:Ve(h.StartTime)}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.User}),m("td",{className:"whitespace-nowrap px-3 py-4 text-sm text-gray-500",children:h.Succeeded})],["children",C.Children.toArray(Array.from(w))])])))},c.ImportHistory))),["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))])]))):m("div",$(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=[m(ad,{importId:f.fields[0],fetchImport:u,onDone:()=>{p(new Aa(0,[]))}})],["children",C.Children.toArray(Array.from(l))])])))}const Gb="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",Wb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9+2cIpZiFVRkk9q+MP2pf+Cqb6d42k+H/AMFdFbx740kYwNdQRNcWlrJnaQir/rWU9TkID1J5FT/8FXP2l9a0TTtD+DvgZnfxl8RHWCZonKyW1qzbAAQcqZGyM9lV/Xj139if9iTw1+xv8OIbGxgt73xJeRq2rauYx5t1JjlUJ5WIHO1fxPJNfomU5Zl2U5dDOs5p+1nVv7Gjeykk7OpUa15b6KP2rdjGUnJ8sT5n079gf9pX9oqKLUviT8Xrrwybj95/Z1hMzNb5/hKwFIgR6At9av3X/BIHx94dXz/Dvx88UR3i8r9oE8aZ/wCAzH+VfetFTLxOzxO1D2dOHSEaVNRS7WcW/vY/YxPz2vfjJ+01/wAE7pUuvH8MPxU+HqgLJfwOHmsh6mTaJFP/AF1DIegYGs/9p3/gt9bXKeH7P4VwzQtcSQ3GrX+pWgzbpuBe3RGyC2OGfoAfl55HuP8AwVI8OfGr4gfDGHw18L9IjvdF1eGRNcmt7lI75lyMQqrEfIwzkqST0OB1/JT4i/s9+OvhIW/4Sbwj4g0WNDgy3VjIkX/feNv61+xcB5HkHEdKnmebU6KxF2uSnJJSWydSleyle7VrJ6Nroc9WUoe7G9j+gvR9RXV9ItbtMbLqFJlx6MAf60V5z+xd46X4k/smfDvWAxeS50C0SYnvLHGI5P8Ax9Gor+Z8wwssNiqmGlvCUov5Nr9Dsi7q58m/sg6Qn7Sf/BVz4teOtVLXcPgGR9P0pWxtiYO1tEwHtHFMf9589a/QCvIv2a/2NvDf7MHjHxxrWh3ep3dx441D7dcC7dWFsMswiQgAlQ0jnLZOCAScZPrtfRcaZ1QzHHxlg2/Y06dOEE1ayjBJq3+LmIpxaWoUUUV8iaBSOiyoysoZWGCCMgilrI8f66vhfwJrWpSSeSmn2M9yZP7gSNmz+GKunBzmoR3bsBo2NrBY2kcFtHDDBCNiRxKFSMDjAA4GPSivz3/4Jd6Z4w+JH7Pur6xHreuSLd+JLtwWu3OSY4Sep7sSfqTRX2OdcJ08vx1XBVMTFuDs3ZrX72ZxqXV7HZ/t1/8ABUHxV+xj+0kvhlfC+ka5oFxpsF9C0k0kFwdxdXG8ZXhkP8J7U/4W/wDBdH4W+LFji8SaP4k8J3TY3OYlvrVf+BxkOf8Av2K8f/4L4eBZD8Rvh5rVvDJJJqVncaeAi7mkeORGAAHJP7zp714v8Gfgxq37BfxX8J+OvjH8MdU1TwtdQrPbnAZdPnJBRpU5XzUxnypCp5z1XFfsmS8F8L5jwxhsZWo/7TOErKE+WdSUG01FSfK27a6HPKpNTaWx+zGj6tBr2kWt9asz215Ck8TFSpZGAZSQeRwRweasV5D8Iv29PhH8bLOFtF8daCl1MAfsV9crZ3Sn08uUqWI/2cj3rvfEfxc8K+DtKN9q3ibw/pdmq7vPutQihjx67mYCv55xWU43D1/YVqM4yv8AC4tP8lf7jqUk1dHQ18gf8FfP2lJPh78GIPhzoEjTeL/iMy2MdvET5yWjPtcgD/nof3Y9dzelUf2lP+Cw/hPwos3h/wCFtrP8QfGF2Tb2bWsDvZRyngHgbpsH+GPg/wB4VF+w7+wd4ru/i1N8aPjZcf2l46u2EunafIwcaZ8uA7j7qsqnCIvCYz16ffZBw7/YnLn3EEeSMPep0paTqzXw+7uoJ2cpNbaJO5nKfN7sD339in9nuL9mD9mrwz4R+Vr61t/tOoyD/lpdynfL+AY7R/soKK9Vor86zDHVsZiamLxDvOpJyb827s1SsrIxfFPw50HxvqmkX2saTYald6BcG706W4hEjWcpUqXTPQ4P8u4FX9d0Gx8UaTcafqVnbX9jdIY5re4iEkcqnqCp4NFFY+3qWiuZ+7trtrfTtrrp1GfNHxY/4I+/BD4mXE11DoepeF7qTLO+iXphUn2jkEka/wDAVFeaeD/+CI/wjuvEDi41jx5cw20mfKfULZVlA7MVtw2D/skH3oor974T4gzSpk7nPE1G0nZucm1+Jy1Irm2PqP4JfsffDX9nUI3g/wAI6XpN0i7ftZVp7puMHMshZ+frivSqKK/CsdjcRiqzrYqpKcn1k3J/e7s6kktEFFFFcgH/2Q==",Zb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";var K={exports:{}},Qb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Kb=Qb,Xb=Kb;function ld(){}function cd(){}cd.resetWarningCache=ld;var Yb=function(){function e(r,o,i,s,a,l){if(l!==Xb){var u=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 u.name="Invariant Violation",u}}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:cd,resetWarningCache:ld};return n.PropTypes=n,n};K.exports=Yb();function Nr(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(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):o(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function Or(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(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ud(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 fd(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 Jb=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 So(e,t){var n=qb(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 qb(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=Jb.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var ev=[".DS_Store","Thumbs.db"];function tv(e){return Nr(this,void 0,void 0,function(){return Or(this,function(t){return Ti(e)&&nv(e.dataTransfer)?[2,sv(e.dataTransfer,e.type)]:rv(e)?[2,ov(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,iv(e)]:[2,[]]})})}function nv(e){return Ti(e)}function rv(e){return Ti(e)&&Ti(e.target)}function Ti(e){return typeof e=="object"&&e!==null}function ov(e){return xa(e.target.files).map(function(t){return So(t)})}function iv(e){return Nr(this,void 0,void 0,function(){var t;return Or(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 So(r)})]}})})}function sv(e,t){return Nr(this,void 0,void 0,function(){var n,r;return Or(this,function(o){switch(o.label){case 0:return e.items?(n=xa(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(av))]):[3,2];case 1:return r=o.sent(),[2,dd(pd(r))];case 2:return[2,dd(xa(e.files).map(function(i){return So(i)}))]}})})}function dd(e){return e.filter(function(t){return ev.indexOf(t.name)===-1})}function xa(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function av(e){if(typeof e.webkitGetAsEntry!="function")return hd(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?md(t):hd(e)}function pd(e){return e.reduce(function(t,n){return fd(fd([],ud(t),!1),ud(Array.isArray(n)?pd(n):[n]),!1)},[])}function hd(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=So(t);return Promise.resolve(n)}function lv(e){return Nr(this,void 0,void 0,function(){return Or(this,function(t){return[2,e.isDirectory?md(e):cv(e)]})})}function md(e){var t=e.createReader();return new Promise(function(n,r){var o=[];function i(){var s=this;t.readEntries(function(a){return Nr(s,void 0,void 0,function(){var l,u,c;return Or(this,function(d){switch(d.label){case 0:if(a.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=d.sent(),n(l),[3,4];case 3:return u=d.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(lv)),o.push(c),i(),d.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function cv(e){return Nr(this,void 0,void 0,function(){return Or(this,function(t){return[2,new Promise(function(n,r){e.file(function(o){var i=So(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var uv=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 gd(e){return pv(e)||dv(e)||vd(e)||fv()}function fv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pv(e){if(Array.isArray(e))return Ca(e)}function wd(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 yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wd(Object(n),!0).forEach(function(r){bd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(e,t){return gv(e)||mv(e,t)||vd(e,t)||hv()}function hv(){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 vd(e,t){if(!!e){if(typeof e=="string")return Ca(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 Ca(e,t)}}function Ca(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 mv(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(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function gv(e){if(Array.isArray(e))return e}var wv="file-invalid-type",yv="file-too-large",bv="file-too-small",vv="too-many-files",_v=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:wv,message:"File type must be ".concat(n)}},_d=function(t){return{code:yv,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ad=function(t){return{code:bv,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Av={code:vv,message:"Too many files"};function xd(e,t){var n=e.type==="application/x-moz-file"||uv(e,t);return[n,n?null:_v(t)]}function Cd(e,t,n){if(qn(e.size))if(qn(t)&&qn(n)){if(e.size>n)return[!1,_d(n)];if(e.size<t)return[!1,Ad(t)]}else{if(qn(t)&&e.size<t)return[!1,Ad(t)];if(qn(n)&&e.size>n)return[!1,_d(n)]}return[!0,null]}function qn(e){return e!=null}function xv(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(l){var u=xd(l,n),c=Do(u,1),d=c[0],f=Cd(l,r,o),p=Do(f,1),h=p[0],w=a?a(l):null;return d&&h&&!w})}function Fi(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Ii(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 Ed(e){e.preventDefault()}function Cv(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ev(e){return e.indexOf("Edge/")!==-1}function kv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Cv(e)||Ev(e)}function Kt(){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!Fi(r)&&a&&a.apply(void 0,[r].concat(i)),Fi(r)})}}function Sv(){return"showOpenFilePicker"in window}function Dv(e){if(qn(e)){var t=Object.entries(e).filter(function(n){var r=Do(n,2),o=r[0],i=r[1],s=!0;return kd(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(Sd))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=Do(r,2),i=o[0],s=o[1];return yd(yd({},n),{},bd({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Tv(e){if(qn(e))return Object.entries(e).reduce(function(t,n){var r=Do(n,2),o=r[0],i=r[1];return[].concat(gd(t),[o],gd(i))},[]).filter(function(t){return kd(t)||Sd(t)}).join(",")}function Fv(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Iv(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function kd(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Sd(e){return/^.*\.[\w]+$/.test(e)}var Mv=["children"],Rv=["open"],Nv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Ov=["refKey","onChange","onClick"];function Pv(e){return jv(e)||$v(e)||Dd(e)||Bv()}function Bv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
38
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $v(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jv(e){if(Array.isArray(e))return ka(e)}function Ea(e,t){return Vv(e)||Lv(e,t)||Dd(e,t)||Hv()}function Hv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
39
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dd(e,t){if(!!e){if(typeof e=="string")return ka(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 ka(e,t)}}function ka(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 Lv(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(l){i=!0,a=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw a}}return r}}function Vv(e){if(Array.isArray(e))return e}function Td(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 ce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Td(Object(n),!0).forEach(function(r){Sa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Td(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){if(e==null)return{};var n=Uv(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 Uv(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 Da=ui(function(e,t){var n=e.children,r=Mi(e,Mv),o=Id(r),i=o.open,s=Mi(o,Rv);return Fs(t,function(){return{open:i}},[i]),T.createElement(fe,null,n(ce(ce({},s),{},{open:i})))});Da.displayName="Dropzone";var Fd={disabled:!1,getFilesFromEvent:tv,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};Da.defaultProps=Fd,Da.propTypes={children:K.exports.func,accept:K.exports.objectOf(K.exports.arrayOf(K.exports.string)),multiple:K.exports.bool,preventDropOnDocument:K.exports.bool,noClick:K.exports.bool,noKeyboard:K.exports.bool,noDrag:K.exports.bool,noDragEventsBubbling:K.exports.bool,minSize:K.exports.number,maxSize:K.exports.number,maxFiles:K.exports.number,disabled:K.exports.bool,getFilesFromEvent:K.exports.func,onFileDialogCancel:K.exports.func,onFileDialogOpen:K.exports.func,useFsAccessApi:K.exports.bool,autoFocus:K.exports.bool,onDragEnter:K.exports.func,onDragLeave:K.exports.func,onDragOver:K.exports.func,onDrop:K.exports.func,onDropAccepted:K.exports.func,onDropRejected:K.exports.func,onError:K.exports.func,validator:K.exports.func};var Ta={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Id(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ce(ce({},Fd),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,s=t.minSize,a=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,d=t.onDragOver,f=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,w=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,_=t.autoFocus,I=t.preventDropOnDocument,R=t.noClick,B=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ae=t.validator,De=Q(function(){return Tv(n)},[n]),Ke=Q(function(){return Dv(n)},[n]),nt=Q(function(){return typeof y=="function"?y:Md},[y]),Te=Q(function(){return typeof w=="function"?w:Md},[w]),ve=L(null),ge=L(null),Pr=uo(zv,Ta),Br=Ea(Pr,2),Xt=Br[0],_e=Br[1],To=Xt.isFocused,pt=Xt.isFileDialogActive,$r=L(typeof window<"u"&&window.isSecureContext&&b&&Sv()),Ri=function(){!$r.current&&pt&&setTimeout(function(){if(ge.current){var D=ge.current.files;D.length||(_e({type:"closeDialog"}),Te())}},300)};W(function(){return window.addEventListener("focus",Ri,!1),function(){window.removeEventListener("focus",Ri,!1)}},[ge,pt,Te,$r]);var Fn=L([]),Ni=function(D){ve.current&&ve.current.contains(D.target)||(D.preventDefault(),Fn.current=[])};W(function(){return I&&(document.addEventListener("dragover",Ed,!1),document.addEventListener("drop",Ni,!1)),function(){I&&(document.removeEventListener("dragover",Ed),document.removeEventListener("drop",Ni))}},[ve,I]),W(function(){return!r&&_&&ve.current&&ve.current.focus(),function(){}},[ve,_,r]);var pn=de(function(A){M?M(A):console.error(A)},[M]),Fo=de(function(A){A.preventDefault(),A.persist(),Bi(A),Fn.current=[].concat(Pv(Fn.current),[A.target]),Ii(A)&&Promise.resolve(o(A)).then(function(D){if(!(Fi(A)&&!N)){var ye=D.length,Ie=ye>0&&xv({files:D,accept:De,minSize:s,maxSize:i,multiple:a,maxFiles:l,validator:ae}),ht=ye>0&&!Ie;_e({isDragAccept:Ie,isDragReject:ht,isDragActive:!0,type:"setDraggedFiles"}),u&&u(A)}}).catch(function(D){return pn(D)})},[o,u,pn,N,De,s,i,a,l,ae]),Oi=de(function(A){A.preventDefault(),A.persist(),Bi(A);var D=Ii(A);if(D&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return D&&d&&d(A),!1},[d,N]),we=de(function(A){A.preventDefault(),A.persist(),Bi(A);var D=Fn.current.filter(function(Ie){return ve.current&&ve.current.contains(Ie)}),ye=D.indexOf(A.target);ye!==-1&&D.splice(ye,1),Fn.current=D,!(D.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Ii(A)&&c&&c(A))},[ve,c,N]),rt=de(function(A,D){var ye=[],Ie=[];A.forEach(function(ht){var Io=xd(ht,De),Hr=Ea(Io,2),Ma=Hr[0],Ra=Hr[1],Na=Cd(ht,s,i),$i=Ea(Na,2),Oa=$i[0],Pa=$i[1],Ba=ae?ae(ht):null;if(Ma&&Oa&&!Ba)ye.push(ht);else{var $a=[Ra,Pa];Ba&&($a=$a.concat(Ba)),Ie.push({file:ht,errors:$a.filter(function(d_){return d_})})}}),(!a&&ye.length>1||a&&l>=1&&ye.length>l)&&(ye.forEach(function(ht){Ie.push({file:ht,errors:[Av]})}),ye.splice(0)),_e({acceptedFiles:ye,fileRejections:Ie,type:"setFiles"}),f&&f(ye,Ie,D),Ie.length>0&&h&&h(Ie,D),ye.length>0&&p&&p(ye,D)},[_e,a,De,s,i,l,f,p,h,ae]),Fe=de(function(A){A.preventDefault(),A.persist(),Bi(A),Fn.current=[],Ii(A)&&Promise.resolve(o(A)).then(function(D){Fi(A)&&!N||rt(D,A)}).catch(function(D){return pn(D)}),_e({type:"reset"})},[o,rt,pn,N]),Ot=de(function(){if($r.current){_e({type:"openDialog"}),nt();var A={multiple:a,types:Ke};window.showOpenFilePicker(A).then(function(D){return o(D)}).then(function(D){rt(D,null),_e({type:"closeDialog"})}).catch(function(D){Fv(D)?(Te(D),_e({type:"closeDialog"})):Iv(D)?($r.current=!1,ge.current?(ge.current.value=null,ge.current.click()):pn(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."))):pn(D)});return}ge.current&&(_e({type:"openDialog"}),nt(),ge.current.value=null,ge.current.click())},[_e,nt,Te,b,rt,pn,Ke,a]),Ld=de(function(A){!ve.current||!ve.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),Ot())},[ve,Ot]),Vd=de(function(){_e({type:"focus"})},[]),Ud=de(function(){_e({type:"blur"})},[]),zd=de(function(){R||(kv()?setTimeout(Ot,0):Ot())},[R,Ot]),jr=function(D){return r?null:D},Ia=function(D){return B?null:jr(D)},Pi=function(D){return P?null:jr(D)},Bi=function(D){N&&D.stopPropagation()},c_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.role,ht=A.onKeyDown,Io=A.onFocus,Hr=A.onBlur,Ma=A.onClick,Ra=A.onDragEnter,Na=A.onDragOver,$i=A.onDragLeave,Oa=A.onDrop,Pa=Mi(A,Nv);return ce(ce(Sa({onKeyDown:Ia(Kt(ht,Ld)),onFocus:Ia(Kt(Io,Vd)),onBlur:Ia(Kt(Hr,Ud)),onClick:jr(Kt(Ma,zd)),onDragEnter:Pi(Kt(Ra,Fo)),onDragOver:Pi(Kt(Na,Oi)),onDragLeave:Pi(Kt($i,we)),onDrop:Pi(Kt(Oa,Fe)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},ye,ve),!r&&!B?{tabIndex:0}:{}),Pa)}},[ve,Ld,Vd,Ud,zd,Fo,Oi,we,Fe,B,P,r]),u_=de(function(A){A.stopPropagation()},[]),f_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},D=A.refKey,ye=D===void 0?"ref":D,Ie=A.onChange,ht=A.onClick,Io=Mi(A,Ov),Hr=Sa({accept:De,multiple:a,type:"file",style:{display:"none"},onChange:jr(Kt(Ie,Fe)),onClick:jr(Kt(ht,u_)),tabIndex:-1},ye,ge);return ce(ce({},Hr),Io)}},[ge,n,a,Fe,r]);return ce(ce({},Xt),{},{isFocused:To&&!r,getRootProps:c_,getInputProps:f_,rootRef:ve,inputRef:ge,open:jr(Ot)})}function zv(e,t){switch(t.type){case"focus":return ce(ce({},e),{},{isFocused:!0});case"blur":return ce(ce({},e),{},{isFocused:!1});case"openDialog":return ce(ce({},Ta),{},{isFileDialogActive:!0});case"closeDialog":return ce(ce({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ce(ce({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ce(ce({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ce({},Ta);default:return e}}function Md(){}const Gv="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA6AEEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDuvit4r1LVfibr9xcX1zNNJqExLNIf75rB/tm8/wCfqf8A7+GtD4jn/iv9c/6/pv8A0M1j19NHax85LcsJrt9E6st3cKyncCJG4xX6Zf8ABLL9pm8+M3wwv9D16+F1rmgTYRnbM01swG1j6kNuHHbFfmJ95a7H4GfG/Wf2fviDD4i0WRkuo43idd3yyqwxgjnI6Hn0rDEUPaU7dTooVvZyP22VstS1+YX/AA9s+ICgfubfPr8vP/jtH/D234hf88bf/wAd/wDia8xYGqej9cp9Wfp9SKNtfmF/w9t+IP8Azxt/zX/4mrnh/wD4K6eN7fXLR7yzt7i0WVRNGHVd6kjPO2plg6iVwjjKb0R+mVFcP/wuOD/n3k/OisfZy7G/tIn4z/Eb/kf9c/6/pv8A0M1j1sfEb/kf9c/6/pv/AEM1j19FE+fluJXcfAT9n3xF+0Z4zXR9AgUMozPdzErBajtubHUngDqazPhD8OH+LHxC0/RF1Cz0tbli0t3dSBI4I1BZmJPoAcDvX0l4B+MXhn4WeP8Awn8NfhrcyX2mX2t20uta1IuHv3DjEcfogxye9Y1qrjdRWprSpptOWx4b+0X+zB4n/Zk8TR6fr8MM0NwC1vfWxLW9we4DY4Ydwea85FfZ3xw+M+heJvjl43+FvxBka38MXmprcadqkYzJo9yUXDH1jJPPpn8vmP46fCT/AIUx4+k0qPVrDXLOaIXNnfWkgdLiFs4Jx91uOQaKNSUrKe5VanFNuDOOPFPtlxdQ8/8ALQE+/I60zvUlt/x8w/76/wAxW0trGMXqj9a99FNorlsdx+VfxG/5H/XP+v6b/wBDNY9bHxHOPH2ue99N/wChmseuqOxwS3DJHRmX3U4+td3+zAc/tF+DP+wvb4x/viuEPSu6/Ze/5OK8F/8AYXt//QxU1PgbLpS99I6H9u3j9rbxn/19r/6LWvJCWP3mZuf4jnFeuft2/wDJ2fjT/r8X/wBFrXkdFH4EFb42B5p1sf8ASYuv+sX+YptOtTm6i/31/mKuXwkxeqP1qooorkudnMfl58dPDlx4P+MnibTbqOSOa11OcYddpYbzhvxGPzrls1+qH7fngTQ9R8C3WoXGi6TPfhUxcyWkbTD/AIGRn9a+H18L6btH/Eusen/Pun+FXQrc8bmFalySseHE8VLpupXGkX8N1a3E1rdW7B4pon2SRsOhDDoRXtw8L6Zn/kHWP/gOn+FB8LaZj/kG2P8A4Dp/hW/NpYyS1ueLa1rt74k1Wa+1K8uL+9uDuluJ5TJJKegJY8mq26vcv+EX0zH/ACDbH/wHT/Cj/hF9M/6B1j/4Dp/hRzBY8NzWl4J8N3XjPxfpuk2MfmXWoXUUEagZySwA6elewf8ACL6Z/wBA6x/8B0/wr7G/4J5eAdCi8IRagui6St+s7bbkWcYmHPZ8Z/Wsa9Xljc0o0+aaR7F/wq+b+89Feh729TRXje2n3PW9jE//2Q==",Wv="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 Zv=0;function Se(e,t,n,r,o,i){var s,a,l={};for(a in t)a=="ref"?s=t[a]:l[a]=t[a];var u={type:e,props:l,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Zv,__source:o,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(a in s)l[a]===void 0&&(l[a]=s[a]);return E.vnode&&E.vnode(u),u}function Qv({onCancel:e,onSubmit:t,onFileDrop:n}){const r=de(d=>{const f=d[0];n(f,f.path)},[]),{getRootProps:o,getInputProps:i,open:s,acceptedFiles:a,fileRejections:l}=Id({onDrop:r,accept:{"text/csv":[".csv"]},maxFiles:1,noClick:!0,noKeyboard:!0,multiple:!1,maxSize:4e6}),u=a.map(d=>Se("p",{children:d.path},d.path)),c=l.map(({file:d,errors:f})=>Se("li",{children:[d.path," - ",d.size," bytes",Se("ul",{children:f.map(p=>Se("li",{children:p.message},p.code))})]},d.path));return Se("div",{...o(),children:[Se("input",{...i(),name:"file"}),Se("img",{src:u.length?Wv:Gv,className:"mx-auto mb-2"}),l.length?Se("div",{className:"mb-2",children:[Se("div",{className:"mb-2 font-semibold",children:"Rejected files"}),Se("ul",{children:c})]}):Se(fe,{}),u.length?Se(fe,{children:[u,Se("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"}),Se("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"})]}):Se(fe,{children:[Se("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),Se("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"})]})]})}class Nt extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class Rd extends ee{constructor(t){super(),this.View=t}}class He extends j{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function Kv(){return[new Rd(new Nt(0,[])),et()]}function Xv(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,ho(Xo(Rt,n.fields[0].fields[0].tag===1?Ee(new He(0,[new Nt(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Ee(new He(0,[new Nt(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Ee(new He(0,[new Nt(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,x([new He(0,[new Nt(3,[o])]),new He(2,[new We(0,[void 0])])]))))]:[r,ho(x([Rt(new He(0,[new Nt(1,[])])),mo(a=>{Cr(a)},a=>Ub(t,a),n.fields[0].fields[0],a=>new He(1,[new We(1,[a])]))]))]:n.tag===2?n.fields[0].tag===1?[r,ho(Xo(Rt,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Nt(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Nt(4,[G0(a=>a.ImportId===i.fields[0].ImportId,n.fields[0].fields[0].ImportHistory)])])):n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new He(0,[new Nt(3,[s])]),new He(2,[new We(0,[void 0])])])):Ee(new He(0,[new Nt(0,[])])))))]:(Cr(v.Delay(()=>v.Bind(tw(1e4),()=>(e(),v.Zero())))),[r,et()]):[new Rd(n.fields[0]),et()]}const Nd={Csv:"First Name,Middle Name,Last Name,Email,Mobile Number,External ID,Title,Gender,DoB,Address Line 1,Address Line 2,City,State,PostCode,CountryCode",Filename:"ProfileImportCsvTemplate.csv"},Od=Gb,Pd=Wb,Yv=Zb;function Bd(e,t,n){let r;return m("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 Jv(e){let t;const n=e.dispatch,r=po(!1),o=r[1],i=po(0),s=i[0]|0,a=po(new FormData),l=a[0];return m("form",$(x([["key",s],(t=xt(H(()=>he(O(m(Qv,{onCancel:()=>{i[1](s+1),a[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(u,c)=>{l.set("file",u,c)}})),H(()=>{let u,c,d,f,p,h,w;return r[0]?O((u=x([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",$(x([["className","fixed inset-0 z-10 overflow-y-auto"],(c=[m("div",$(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(d=[m("div",$(x([["className","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"],(f=[(p=x([m("div",$(x([["className","mt-3 text-center sm:mt-5 space-y-6"],(h=[m("img",{src:Od,className:"mx-auto"}),m("p",{children:["Please check and confirm this file is being uploaded to the correct account."]}),m("p",{children:["Uploading files to the wrong account can cause a security breach."]})],["children",C.Children.toArray(Array.from(h))])]))),m("div",$(x([["className","mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3"],(w=[m("button",{type:"button",className:"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",children:"I confirm",onClick:y=>{n(new He(1,[new We(0,[l])]))}}),m("button",{type:"button",className:"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",children:"Cancel",onClick:y=>{o(!1)}})],["children",C.Children.toArray(Array.from(w))])])))]),m("div",{children:C.Children.toArray(Array.from(p))}))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(d))])])))],["children",C.Children.toArray(Array.from(c))])])))]),m("div",{children:C.Children.toArray(Array.from(u))}))):hs()})))),["children",C.Children.toArray(Array.from(t))])])))}function qv(e){let t,n,r,o,i,s,a,l;const u=e.onDone,c=e.importService,d=e.dispatchFetchImports,f=e.accountImports,p=e.accountId,h=rd(Kv(),(b,_)=>Xv(d,c,b,_)),w=h[1];ef(()=>{w(new He(2,[new We(1,[f])]))},[f]);const y=x([m("div",$(x([["className","space-y-6"],(t=[(n=x([`Upload a CSV file with required information (first name, last name, email) to create new partial profiles.
|
|
40
40
|
The file will be validated `,m("b",{children:["before"]}),` creating the profiles.
|
|
41
41
|
If validation fails, the file will be rejected, and no profiles created.
|
|
42
|
-
You'll get an error report to fix the information before re-uploading.`]),m("p",{children:C.Children.toArray(Array.from(n))})),m("p",{children:"This feature doesn't update existing profiles in the account."}),(r=x([m("span",{children:["Not sure how to get started?"]}),m("ul",$(x([["className","ml-6 list-disc list-outside"],(o=[(i=x([
|
|
43
|
-
|
|
42
|
+
You'll get an error report to fix the information before re-uploading.`]),m("p",{children:C.Children.toArray(Array.from(n))})),m("p",{children:"This feature doesn't update existing profiles in the account."}),(r=x([m("span",{children:["Not sure how to get started?"]}),m("ul",$(x([["className","ml-6 list-disc list-outside"],(o=[(i=x([Bd(Nd.Csv,Nd.Filename,"Download")," a blank CSV template"]),m("li",{children:C.Children.toArray(Array.from(i))})),(s=x([m("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"]),m("li",{children:C.Children.toArray(Array.from(s))}))],["children",C.Children.toArray(Array.from(o))])])))]),m("div",{children:C.Children.toArray(Array.from(r))}))],["children",C.Children.toArray(Array.from(t))])]))),m("div",$(x([["className","px-8 mt-10"],(a=[m("div",$(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=xt(H(()=>{let b,_,I,R;const B=h[0].View;switch(B.tag){case 1:return O((b=x([m("img",{src:Pd,className:"mx-auto animate-spin"}),m("p",{className:"mt-2",children:"Validating data"})]),m("div",{children:C.Children.toArray(Array.from(b))})));case 2:{const P=B.fields[0];return O((_=xt(H(()=>{const N=ae=>{let De;return m("p",$(x([["className","mt-6"],(De=["Download the full error report ",Bd(nn(`\r
|
|
43
|
+
`,Rl(Ko(Ee(Ee("Row,Column,Error")),Xo(Ke=>Xo(nt=>nn(",",rn(Te=>`"${Te}"`,rn(Te=>x0(Te,'"','""'),[hn(Ke.RowId),nt.Column,nt.Message],null),null)),Ke.FieldErrors),ae)))),`${p}_validation_errors.csv`,"here"),"."],["children",C.Children.toArray(Array.from(De))])])))};let M;if(P.tag===1)M=m("p",{children:["Invalid file name"]});else if(P.tag===2)M=m("p",{children:["CSV exceeds max row limit"]});else if(P.tag===3)M=m("p",{children:[P.fields[0]]});else if(P.tag===4)M=m("p",{children:["CSV does not contain any data"]});else if(P.tag===5)M=m("p",{children:["File not uploaded, ensure a file is selected"]});else if(P.tag===6)M=m("p",{children:["Only a single file is allowed"]});else if(P.tag===8)M=m("p",{children:["Unknown account"]});else if(P.tag===7)if(L0(P.fields[0])<=10){const ae=xt(H(()=>he(O(m("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),H(()=>he(rc(De=>Ne(Ke=>m("li",{children:[`Row ${De.RowId}, Column ${Ke.Column}: ${Ke.Message}`]}),De.FieldErrors),P.fields[0]),H(()=>O(N(P.fields[0]))))))));M=m("div",{children:C.Children.toArray(Array.from(ae))})}else{const ae=x([m("p",{children:["The file contains more than 10 validation errors"]}),N(P.fields[0])]);M=m("div",{children:C.Children.toArray(Array.from(ae))})}else M=P.tag===9?m("p",{children:["An import is already in progress"]}):m("p",{children:["Invalid file type"]});return he(O(m("img",{src:Od,className:"mx-auto"})),H(()=>he(O(m("div",{className:"mt-2",children:C.Children.toArray([M])})),H(()=>O(m("button",{type:"button",children:"Upload another file",className:"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",onClick:ae=>{w(new He(0,[new Nt(0,[])]))}}))))))})),m("div",{children:C.Children.toArray(Array.from(_))})))}case 3:{const P=B.fields[0];return O((I=x([m("img",{src:Pd,className:"mx-auto animate-spin"}),m("p",{className:"mt-2 mb-6",children:"Creating profiles"}),m("p",{children:[`Creator: ${P.User}`]}),m("p",{children:[`Filename: ${P.Filename}`]}),m("p",{children:[`Rows processed: ${P.CompletedSuccessfully+P.CompletedFailed}`]}),m("p",{children:[`Total rows: ${P.NumberOfRecords}`]})]),m("div",{children:C.Children.toArray(Array.from(I))})))}case 4:{const P=B.fields[0];return O((R=x([m("img",{src:Yv,className:"mx-auto"}),m("p",{className:"mt-2 mb-6",children:`${P.Succeeded} Profiles successfully created`}),m(ad,{importId:P.ImportId,fetchImport:N=>sd(c,N),onDone:u})]),m("div",{children:C.Children.toArray(Array.from(R))})))}case 5:return O(ko(B.fields[0]));default:return O(m(Jv,{dispatch:w}))}})),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])])))]);return m("div",{children:C.Children.toArray(Array.from(y))})}function Fa(){return(Fa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function e_(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,["context","children"]);return Ds(t,n)}function t_(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(e_,Fa({},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,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[$d(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),c=l[s].slot;c?i[c]=m(jd,{name:c},u):o[s]=u}var d=r?m(jd,null,o):o;return m(r||n.nodeName.toLowerCase(),i,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ss:En)(this._vdom,this._root)}function $d(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function n_(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[$d(e)]=n,this._vdom=Ds(this._vdom,r),En(this._vdom,this._root)}}function r_(){En(this._vdom=null,this._root)}function jd(e,t){var n=this;return m("slot",Fa({},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 o_(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=r&&r.shadow?i.attachShadow({mode:"open"}):i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=t_,o.prototype.attributeChangedCallback=n_,o.prototype.disconnectedCallback=r_,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||e.tagName||e.displayName||e.name,o)}function i_(e,t){o_(e,t,void 0,{shadow:!0})}function s_(e){const t=[];Uc(e)!=null&&(t.push(new Wn(0,[new pi(0,[])])),t.push(new Wn(0,[new pi(1,[])])));let n;switch(_s(e)!=null||zc(e)!=null?n=0:n=1,n){case 0:{t.push(new Wn(1,[]));break}}return x(t.slice())}function Hd(e,t){return m($b,new Ib(e.partnerId,e.accountId,Sw(e.backendUrl,e.accessToken),sg(t.Roles)))}function a_(e){let t,n;const r=ag(e.accessToken),o=e.accountId,i=r.Roles;let s;switch(o==null&&(zc(i)!=null||_s(i)!=null)?s=0:s=1,s){case 0:{const a=x([m("style",{children:[_a]}),m(od,{tabs:Ee(new Wn(1,[])),currentTab:new Wn(1,[]),setCurrentTab:l=>{}}),m("div",$(x([["className","mt-4"],(t=[Hd(e,r)],["children",C.Children.toArray(Array.from(t))])])))]);return m("div",{children:C.Children.toArray(Array.from(a))})}case 1:{let a,l;switch(o!=null&&Uc(i)!=null?(a=0,l=o):a=1,a){case 0:{const u=Lb(e.backendUrl,l,e.accessToken),c=Fb(fw,(w,y)=>dw(()=>Vb(u),w,y)),d=c[0],f=c[1],p=s_(r.Roles),h=x([m("style",{children:[_a]}),m(od,{tabs:p,currentTab:d.CurrentTab,setCurrentTab:w=>{f(new go(0,[w]))}}),m("div",$(x([["className","mt-4"],(n=xt(H(()=>{const w=d.CurrentTab;if(w.tag===0){const y=d.AccountImports;let b,_,I,R;switch(y.tag===1?b=0:y.tag===3?(b=1,_=y.fields[0]):y.tag===2?y.fields[0].tag===0?(b=3,R=y.fields[0].fields[0]):(b=2,I=y.fields[0].fields[0]):b=0,b){case 0:return O(m("div",{children:["Please wait..."]}));case 1:return O(ko(_.message));case 2:return O(ko(I));case 3:return w.fields[0].tag===1?O(m(zb,{accountImports:R,fetchImport:B=>sd(u,B)})):O(m(qv,{accountId:l,accountImports:R,dispatchFetchImports:()=>{f(new go(1,[new We(0,[void 0])]))},importService:u,onDone:()=>{f(new go(0,[new Wn(0,[new pi(1,[])])]))}}))}}else return O(Hd(e,r))})),["children",C.Children.toArray(Array.from(n))])])))]);return m("div",{children:C.Children.toArray(Array.from(h))})}case 1:{const u=x([m("style",{children:[_a]}),m("div",{children:"You do not have the appropriate permissions to view or do the imports."})]);return m("div",{children:C.Children.toArray(Array.from(u))})}}}}}function l_(){i_(e=>m(a_,e),"superhero-profile-directory-app")}l_()})();
|