@flarehr/superhero-basic-profile 0.1.2215 → 0.1.2217

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.
Files changed (76) hide show
  1. package/dist/App.jsx +4 -0
  2. package/dist/Basic.Profile.Domain/AnalyticsEvent.jsx +102 -0
  3. package/dist/Basic.Profile.Domain/Audit.jsx +149 -0
  4. package/dist/Basic.Profile.Domain/Commands.jsx +68 -0
  5. package/dist/Basic.Profile.Domain/CommonTypes.jsx +194 -0
  6. package/dist/Basic.Profile.Domain/Config/Api/Admin/Read.jsx +58 -0
  7. package/dist/Basic.Profile.Domain/Config/Api/Admin/Write.jsx +23 -0
  8. package/dist/Basic.Profile.Domain/Config/Api/FlareAdminShell/Read.jsx +35 -0
  9. package/dist/Basic.Profile.Domain/Config/Commands.jsx +72 -0
  10. package/dist/Basic.Profile.Domain/Config/ConfigCommandHandler.jsx +197 -0
  11. package/dist/Basic.Profile.Domain/Config/Dto.jsx +181 -0
  12. package/dist/Basic.Profile.Domain/Config/Types.jsx +152 -0
  13. package/dist/Basic.Profile.Domain/DateTimeProvider.jsx +23 -0
  14. package/dist/Basic.Profile.Domain/DomainAggregates.jsx +801 -0
  15. package/dist/Basic.Profile.Domain/DomainPrimitives.jsx +426 -0
  16. package/dist/Basic.Profile.Domain/Dto/Aggregates.jsx +564 -0
  17. package/dist/Basic.Profile.Domain/Dto/AnalyticsEvent.jsx +157 -0
  18. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Common.jsx +102 -0
  19. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Read.jsx +85 -0
  20. package/dist/Basic.Profile.Domain/Dto/Api/Backend/Write.jsx +16 -0
  21. package/dist/Basic.Profile.Domain/Dto/Api/Common.jsx +427 -0
  22. package/dist/Basic.Profile.Domain/Dto/Api/External/Read.jsx +118 -0
  23. package/dist/Basic.Profile.Domain/Dto/Api/External/ReadV2.jsx +6 -0
  24. package/dist/Basic.Profile.Domain/Dto/Api/External/Write.jsx +184 -0
  25. package/dist/Basic.Profile.Domain/Dto/Api/External/WriteV2.jsx +439 -0
  26. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Read.jsx +38 -0
  27. package/dist/Basic.Profile.Domain/Dto/Api/FlareAdminShell/Write.jsx +199 -0
  28. package/dist/Basic.Profile.Domain/Dto/Api/Internal/Read.jsx +125 -0
  29. package/dist/Basic.Profile.Domain/Dto/Audit.jsx +121 -0
  30. package/dist/Basic.Profile.Domain/Dto/Commands.jsx +256 -0
  31. package/dist/Basic.Profile.Domain/Dto/Common.jsx +84 -0
  32. package/dist/Basic.Profile.Domain/Dto/Events.jsx +220 -0
  33. package/dist/Basic.Profile.Domain/Dto/Primitives.jsx +580 -0
  34. package/dist/Basic.Profile.Domain/Dto/ProfileCreationModels.jsx +324 -0
  35. package/dist/Basic.Profile.Domain/Dto/Validation.jsx +229 -0
  36. package/dist/Basic.Profile.Domain/Events.jsx +64 -0
  37. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Read.jsx +140 -0
  38. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Validation.jsx +499 -0
  39. package/dist/Basic.Profile.Domain/Import/Api/InternalApi/Write.jsx +51 -0
  40. package/dist/Basic.Profile.Domain/Import/Api/Read.jsx +154 -0
  41. package/dist/Basic.Profile.Domain/Import/CommonTypes.jsx +187 -0
  42. package/dist/Basic.Profile.Domain/Import/Dto.jsx +475 -0
  43. package/dist/Basic.Profile.Domain/Import/ImportCommandHandler.jsx +531 -0
  44. package/dist/Basic.Profile.Domain/Import/Types.jsx +405 -0
  45. package/dist/Basic.Profile.Domain/JwtPayload.jsx +44 -0
  46. package/dist/Basic.Profile.Domain/Metadata.jsx +257 -0
  47. package/dist/Basic.Profile.Domain/ProfileCommandHandler.jsx +261 -0
  48. package/dist/Basic.Profile.Domain/ProfileModels.jsx +59 -0
  49. package/dist/Basic.Profile.Domain/Utils.jsx +372 -0
  50. package/dist/Common/PreactCustomElement.jsx +8 -0
  51. package/dist/Common/Resources.jsx +20 -0
  52. package/dist/Common/Tailwind.jsx +8 -0
  53. package/dist/Common/Utils.jsx +18 -0
  54. package/dist/Directory/App.jsx +192 -0
  55. package/dist/Directory/BackendServices/Common.jsx +115 -0
  56. package/dist/Directory/BackendServices/ConfigService.jsx +168 -0
  57. package/dist/Directory/BackendServices/ImportService.jsx +137 -0
  58. package/dist/Directory/Common.jsx +93 -0
  59. package/dist/Directory/Config/Components.jsx +173 -0
  60. package/dist/Directory/Config/Types.jsx +187 -0
  61. package/dist/Directory/PastImports/PastImports.jsx +81 -0
  62. package/dist/Directory/ProfileImport/ProfileImport.jsx +284 -0
  63. package/dist/Directory/ProfileImport/Types.jsx +91 -0
  64. package/dist/Directory/TabNav.jsx +24 -0
  65. package/dist/Directory/Types.jsx +101 -0
  66. package/dist/Directory/User.jsx +117 -0
  67. package/dist/HeadlessUI/Dialog.jsx +66 -0
  68. package/dist/HeadlessUI/ModalDialog.jsx +74 -0
  69. package/dist/HeadlessUI/Switch.jsx +66 -0
  70. package/dist/HeadlessUI/Transition.jsx +66 -0
  71. package/package.json +1 -1
  72. package/dist/assets/delete.dcc7b157.svg +0 -5
  73. package/dist/assets/dialog-warning.cc77f3ba.svg +0 -5
  74. package/dist/assets/pencil.05fe6be6.svg +0 -5
  75. package/dist/index.html +0 -20
  76. package/dist/superhero-basic-profile.js +0 -50
@@ -1,50 +0,0 @@
1
- (function(){"use strict";var Ha=document.createElement("style");Ha.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(Ha);class er{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return en(this.value)}Equals(t){return t==null?!1:Je(this.value,t instanceof er?t.value:t)}CompareTo(t){return t==null?1:jt(this.value,t instanceof er?t.value:t)}}function re(e){if(e==null)throw new Error("Option has no value");return e instanceof er?e.value:e}function $t(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 La(e){return e!=null&&typeof e.GetHashCode=="function"}function Va(e){return e!=null&&typeof e.Dispose=="function"}function oe(e){Va(e)&&e.Dispose()}function He(){return null}function Ro(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=He()}"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 No(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 Ua(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Jd(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Yt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class qt{static id(t){return qt.idMap.has(t)||qt.idMap.set(t,++qt.count),qt.idMap.get(t)}}qt.idMap=new WeakMap,qt.count=0;function Hi(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 Yd(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ct(e);case"string":return Hi(e);default:return Ct(qt.id(e))}}function qd(e){return La(e)?e.GetHashCode():Yd(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]=en(e[r]);return tr(n)}function en(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 Hi(e);default:{if(La(e))return e.GetHashCode();if($t(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=>en(r));return tr(n)}else return Ct(qt.id(e))}}}function Li(e){return qd(e)}function Vi(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 za(e,t){return Vi(e,t,Je)}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]||!Je(e[n[o]],t[r[o]]))return!1;return!0}function Je(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Zd(e)?e.Equals(t):$t(e)?$t(t)&&za(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Ga(e,t)===0:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object&&np(e,t)}function Ga(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ua(e),r=t.getTime()+Ua(t)),n===r?0:n<r?-1:1}function Rn(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 Wa(e,t){return rp(e,t,jt)}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=jt(e[s],t[s]),i!==0)return i}return 0}function jt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Wd(e)?e.CompareTo(t):$t(e)?$t(t)?Wa(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Ga(e,t):-1:((n=Object.getPrototypeOf(e))===null||n===void 0?void 0:n.constructor)===Object?op(e,t):-1}function Ui(e,t,n){return e(t,n)>0?t:n}function j(e){const t={};for(const n of e)t[n[0]]=n[1];return t}const zi=Symbol("curried");function ee(e,t){if(t==null)return t;const n=re(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[zi]=n,r}function Za(e,t,n){return r=>t===1?n(...e.concat([r])):Za(e.concat([r]),t-1,n)}function nr(e,t,n){if(t!=null)if(zi in t){t=t[zi];for(let r=0;r<n.length;r++)t=t(n[r]);return t}else return Za(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 H{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=>en(n));return t.splice(0,0,Ct(this.tag)),tr(t)}Equals(t){return this===t?!0:Ro(this,t)&&this.tag===t.tag?za(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ro(this,t)?this.tag===t.tag?Wa(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=>en(n));return tr(t)}function up(e,t){if(e===t)return!0;if(Ro(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Je(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function fp(e,t){if(e===t)return 0;if(Ro(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=jt(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class te{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 Ye{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 Oo(e){return pp(e)||hp(e)?e:new Error(String(e))}const gn=Symbol("numeric");function Qa(e){return typeof e=="number"||(e==null?void 0:e[gn])}function mp(e,t){return typeof e=="number"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Gi(e,t){return typeof e=="number"?e*t:e[gn]().multiply(t)}function Po(e,t){return typeof e=="number"?e.toFixed(t):e[gn]().toFixed(t)}function Bo(e,t){return typeof e=="number"?e.toPrecision(t):e[gn]().toPrecision(t)}function $o(e,t){return typeof e=="number"?e.toExponential(t):e[gn]().toExponential(t)}function jo(e){return typeof e=="number"?(Number(e)>>>0).toString(16):e[gn]().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)},[gn](){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,Nn=1e6,Ka=1e6,yp=-29,bp=29,vp=!1,Lr="[big.js] ",On=Lr+"Invalid ",Ho=On+"decimal places",_p=On+"rounding mode",Xa=Lr+"Division by zero",Ht=void 0,Ap=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Ja(){function e(t){var n=this;if(!(n instanceof e))return t===Ht?Ja():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(On+"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(On+"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=wn(e,yn.DP+1,yn.RM),e}function wn(e,t,n,r){var o=e.c;if(n===Ht&&(n=yn.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]!==Ht))),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]!==Ht||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>Nn)throw Error(Ho);if(!i[0])throw Error(Xa);if(!o[0])return r.s=s,r.c=[r.e=0],r;var l,u,c,f,d,p=i.slice(),h=l=i.length,y=o.length,w=o.slice(0,l),b=w.length,_=r,k=_.c=[],R=0,$=a+(_.e=n.e-r.e)+1;for(_.s=s,s=$<0?0:$,p.unshift(0);b++<l;)w.push(0);do{for(c=0;c<10;c++){if(l!=(b=w.length))f=l>b?1:-1;else for(d=-1,f=0;++d<l;)if(i[d]!=w[d]){f=i[d]>w[d]?1:-1;break}if(f<0){for(u=b==l?i:p;b;){if(w[--b]<u[b]){for(d=b;d&&!w[--d];)w[d]=9;--w[d],w[b]+=10}w[b]-=u[b]}for(;!w[0];)w.shift()}else break}k[R++]=f?c:++c,w[0]&&f?w[b]=o[h]||0:w=[o[h]]}while((h++<y||w[0]!==Ht)&&s--);return!k[0]&&R!=1&&(k.shift(),_.e--,$--),R>$&&wn(_,$,t.RM,w[0]!==Ht),_},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(),f=s.e,d=a.c,p=a.e;if(!c[0]||!d[0])return d[0]?a.s=-u:c[0]?a=new i(s):a.s=1,a;if(l=f-p){for((o=l<0)?(l=-l,r=c):(p=f,r=d),r.reverse(),u=l;u--;)r.push(0);r.reverse()}else for(n=((o=c.length<d.length)?c:d).length,l=u=0;u<n;u++)if(c[u]!=d[u]){o=c[u]<d[u];break}if(o&&(r=c,c=d,d=r,a.s=-a.s),(u=(n=d.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>l;){if(c[--n]<d[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=d[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(Xa);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<-Ka||e>Ka)throw Error(On+"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>Nn)throw Error(On+"precision");return wn(new this.constructor(this),e,t)},X.round=function(e,t){if(e===Ht)e=0;else if(e!==~~e||e<-Nn||e>Nn)throw Error(Ho);return wn(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 wn(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!==Ht){if(e!==~~e||e<0||e>Nn)throw Error(Ho);for(n=wn(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!==Ht){if(e!==~~e||e<0||e>Nn)throw Error(Ho);for(n=wn(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!==Ht){if(e!==~~e||e<1||e>Nn)throw Error(On+"precision");for(n=wn(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 yn=Ja();new yn(0),new yn(1),new yn(-1),new yn("79228162514264337593543950335"),new yn("-79228162514264337593543950335");var Wi;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Wi||(Wi={}));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 Sp(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 kp(e,t){if(t&Wi.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||kp(i,t),!Sp(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 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 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 bt(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[gn]=function(){const e=this;return{multiply:t=>it(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 St(e){return(e&&e.__isLong__)===!0}var qa={},el={};function ir(e,t){var n,r,o;return t?(e>>>=0,(o=0<=e&&e<256)&&(r=el[e],r)?r:(n=ie(e,(e|0)<0?-1:0,!0),o&&(el[e]=n),n)):(e|=0,(o=-128<=e&&e<128)&&(r=qa[e],r)?r:(n=ie(e,e<0?-1:0,!1),o&&(qa[e]=n),n))}function kt(e,t){if(isNaN(e))return t?vn:Dt;if(t){if(e<0)return vn;if(e>=rl)return Np}else{if(e<=-ol)return wt;if(e+1>=ol)return Rp}return e<0?xe(kt(-e,t)):ie(e%sr|0,e/sr|0,t)}function ie(e,t,n){return new Et(e,t,n)}var Lo=Math.pow;function tl(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(tl(e.substring(1),t,n));for(var o=kt(Lo(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=kt(Lo(n,a));i=Bn(it(i,u),kt(l))}else i=it(i,o),i=Bn(i,kt(l))}return i.unsigned=t,i}function bn(e,t){return typeof e=="number"?kt(e,t):typeof e=="string"?tl(e,t):ie(e.low,e.high,typeof t=="boolean"?t:e.unsigned)}var nl=1<<16,Ip=1<<24,sr=nl*nl,rl=sr*sr,ol=rl/2,il=ir(Ip),Dt=ir(0),vn=ir(0,!0),Vr=ir(1),Mp=ir(1,!0),sl=ir(-1),Rp=ie(-1,2147483647,!1),Np=ie(-1,-1,!0),wt=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(Pn(e))return"0";if(yt(e))if(bt(e,wt)){var n=kt(t),r=tn(e,n),o=lr(it(r,n),e);return zr(r,t)+ar(o).toString(t)}else return"-"+zr(xe(e),t);for(var i=kt(Lo(t,6),e.unsigned),s=e,a="";;){var l=tn(s,i),u=ar(lr(s,it(l,i)))>>>0,c=u.toString(t);if(s=l,Pn(s))return c+a;for(;c.length<6;)c="0"+c;a=""+c+a}}function Pn(e){return e.high===0&&e.low===0}function yt(e){return!e.unsigned&&e.high<0}function al(e){return(e.low&1)===1}function bt(e,t){return St(t)||(t=bn(t)),e.unsigned!==t.unsigned&&e.high>>>31===1&&t.high>>>31===1?!1:e.high===t.high&&e.low===t.low}function ll(e,t){return Gr(e,t)<0}function Zi(e,t){return Gr(e,t)>0}function Op(e,t){return Gr(e,t)>=0}function Gr(e,t){if(St(t)||(t=bn(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(lr(e,t))?-1:1}function xe(e){return!e.unsigned&&bt(e,wt)?wt:Bn(Bp(e),Vr)}function Bn(e,t){St(t)||(t=bn(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,f=0,d=0,p=0;return p+=i+u,d+=p>>>16,p&=65535,d+=o+l,f+=d>>>16,d&=65535,f+=r+a,c+=f>>>16,f&=65535,c+=n+s,c&=65535,ie(d<<16|p,c<<16|f,e.unsigned)}function lr(e,t){return St(t)||(t=bn(t)),Bn(e,xe(t))}function it(e,t){if(Pn(e))return e.unsigned?vn:Dt;if(St(t)||(t=bn(t)),gt){var n=gt.mul(e.low,e.high,t.low,t.high);return ie(n,gt.get_high(),e.unsigned)}if(Pn(t))return e.unsigned?vn:Dt;if(bt(e,wt))return al(t)?wt:Dt;if(bt(t,wt))return al(e)?wt:Dt;if(yt(e))return yt(t)?it(xe(e),xe(t)):xe(it(xe(e),t));if(yt(t))return xe(it(e,xe(t)));if(ll(e,il)&&ll(t,il))return kt(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,f=0,d=0,p=0,h=0;return h+=s*c,p+=h>>>16,h&=65535,p+=i*c,d+=p>>>16,p&=65535,p+=s*u,d+=p>>>16,p&=65535,d+=o*c,f+=d>>>16,d&=65535,d+=i*u,f+=d>>>16,d&=65535,d+=s*l,f+=d>>>16,d&=65535,f+=r*c+o*u+i*l+s*a,f&=65535,ie(p<<16|h,f<<16|d,e.unsigned)}function tn(e,t){if(St(t)||(t=bn(t)),Pn(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(Pn(e))return e.unsigned?vn:Dt;var r,o,i;if(e.unsigned){if(t.unsigned||(t=Vp(t)),Zi(t,e))return vn;if(Zi(t,Lp(e,1)))return Mp;i=vn}else{if(bt(e,wt)){if(bt(t,Vr)||bt(t,sl))return wt;if(bt(t,wt))return Vr;var s=Hp(e,1);return r=jp(tn(s,t),1),bt(r,Dt)?yt(t)?Vr:sl:(o=lr(e,it(t,r)),i=Bn(r,tn(o,t)),i)}else if(bt(t,wt))return e.unsigned?vn:Dt;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=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:Lo(2,a-48),u=kt(r),c=it(u,t);yt(c)||Zi(c,o);)r-=l,u=kt(r,e.unsigned),c=it(u,t);Pn(u)&&(u=Vr),i=Bn(i,u),o=lr(o,c)}return i}function Pp(e,t){if(St(t)||(t=bn(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 lr(e,it(tn(e,t),t))}function Bp(e){return ie(~e.low,~e.high,e.unsigned)}function $p(e,t){return St(t)||(t=bn(t)),ie(e.low&t.low,e.high&t.high,e.unsigned)}function jp(e,t){return St(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 St(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(St(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 vt=Bn,_t=it,Lt=tn,Kp=Pp,Xp=xe,cr=$p,Vo=Gr,Ce=ie,Vt=ar,Jp=Ur;function he(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 Yp{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 ne(this)}GetHashCode(){return cl(this)}Equals(t){return Qi(this,t)}}function st(e){return e.generics!=null?e.generics:[]}function cl(e){const t=Hi(e.fullname),n=st(e).map(cl);return tr([t,...n])}function Qi(e,t){return e.fullname===""?t.fullname===""&&Vi(Qr(e),Qr(t),([n,r],[o,i])=>n===o&&Qi(r,i)):e.fullname===t.fullname&&Vi(st(e),st(t),Qi)}function Wr(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 qp(...e){return new V("",void 0,void 0,void 0,()=>e)}function ul(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 Yp(o,a,i[a],s))});return o}function Ki(e){return new V("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Uo(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"),fl=new V("System.Boolean");new V("System.SByte"),new V("System.Byte"),new V("System.Int16"),new V("System.UInt16");const Me=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 ne(e){const t=Zr(e);return t!=null?ne(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>ne(n)).join(",")+"]"}function dl(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 pl(e){return e.generics!=null&&e.generics.length>0}function Xi(e){return e.enumCases!=null&&e.enumCases.length>0}function hl(e){return e.generics==null?e:new V(e.fullname,e.generics.map(()=>t0))}function ml(e){var t;return(t=e.generics)===null||t===void 0?void 0:t[0]}function fr(e){if(Xi(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 gl(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 wl(e){if(Ji(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function yl(e){return e instanceof V?e.cases!=null:e instanceof H}function bl(e){return e instanceof V?e.fields!=null:e instanceof te}function Ji(e){return e.fullname.startsWith("System.Tuple")}function r0(e,t){const r=gl(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function vl(e){return e.fields==null?[]:e.fields}function o0(e,t){return e[t[0]]}function g_(e){return e}function i0(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 s0(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 a0(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 zo(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 l0(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 c0(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 u0(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 zo(i,"first");case"T":case"t":return zo(i,"second");case"O":case"o":return c0(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 f0(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?zo(e,"first"):e.toLocaleDateString();case"T":case"t":return n?zo(e,"second"):e.toLocaleTimeString();case"O":case"o":return l0(e,n);default:throw new Error("Unrecognized Date print format")}else return _l(e,t,n)}function Go(e,t,n){return e.offset!=null?u0(e,t):f0(e,t)}function qi(e,t){const n=new Date(e);return n.kind=(t==null?0:t)|0,n}function d0(){return qi(-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 p0(e,t=!1){const[n,r]=Al(e),o=r!=null?t&&r==="Z"?1:2:0;return qi(n.getTime(),o)}function h0(e,t){try{return t.contents=p0(e),!0}catch{return!1}}function m0(e){return e.kind===1?e:qi(e.getTime(),1)}function g0(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 es(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 w0(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 f=0;f<c;f++)a.push(arguments[f]);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=g0(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,y0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Cl(e,t){return mp(e,t)<0}function Ut(e){return{input:e,cont:v0(e)}}function El(e,t){return typeof t=="string"?e(t):t.cont(e)}function _n(e){return El(t=>t,e)}function Sl(e){return El(t=>{throw new Error(t)},e)}function b0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Qa(e))switch(o.toLowerCase()!=="x"&&(Cl(e,0)?(e=Gi(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=Po(e,r);break;case"g":case"G":e=r!=null?Bo(e,r):Bo(e);break;case"e":case"E":e=r!=null?$o(e,r):$o(e);break;case"x":e=jo(e);break;case"X":e=jo(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Go(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 kl(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,f,d,p]=l[0];let h=f;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+=b0(u,c,h,d,p),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):kl(e,a,l,s,o)}}function v0(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,"%")),kl(t,n,r))}}function _0(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(y0,(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(Qa(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a!=null?a:2,u=Po(u,a);break;case"g":case"G":u=a!=null?Bo(u,a):Bo(u);break;case"e":case"E":u=a!=null?$o(u,a):$o(u);break;case"p":case"P":a=a!=null?a:2,u=Po(Gi(u,100),a)+" %";break;case"d":case"D":u=a!=null?ts(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ts(jo(u),a,"0"):jo(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let c="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(f,d,p)=>{Cl(u,0)&&(u=Gi(u,-1),c="-"),p=p==null?"":p.substring(1),u=Po(u,Math.max(p.length,0));let[h,y]=u.split(".");y||(y="");const w=d.replace(/,/g,"").replace(/^#+/,"").length;h=ts(h,w,"0");const b=p.replace(/#+$/,"").length;if(b>y.length?y=x0(y,b,"0"):b<y.length&&(y=y.substring(0,b)+y.substring(b).replace(/0+$/,"")),d.indexOf(",")>0){const _=h.length%3,k=Math.floor(h.length/3);let R=_>0?h.substr(0,_)+(k>0?",":""):"";for(let $=0;$<k;$++)R+=h.substr(_+$*3,3)+($<k-1?",":"");h=R}return y.length>0?h+"."+y:h}),u=c+u}}else u instanceof Date?u=Go(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 A0(e){return typeof e!="string"||e.length===0}function rn(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 ts(e,t,n){return Xr(e,t,n)}function x0(e,t,n){return Xr(e,t,n,!0)}function C0(e,t,n){return e.replace(new RegExp(es(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(es),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 f=i?e.substring(u).trim():e.substring(u);(!o||f.length>0)&&s.push(f),l=!1}else{const f=i?e.substring(u,c.index).trim():e.substring(u,c.index);(!o||f.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(f)),u=a.lastIndex}}while(l);return s}function E0(e,...t){if(t.length===0)return e.trim();const n="["+es(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Tl="Collection was empty.",S0="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?[]:[re(e)]}function Wo(e,t){return e!=null?re(e):t}function D0(e,t){return e!=null?re(e):t()}function T0(e,t){return t!=null?ue(e(re(t))):void 0}function ns(e,t){return typeof e=="function"?new e(t):new Array(t)}function Zo(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function on(e,t,n){const r=t.length|0,o=ns(n,r);for(let i=0;i<=r-1;i++)o[i]=e(t[i]);return o}function F0(e,t){const n=ns(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=ns(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){return e.slice().reverse()}function R0(e,t){return t.find(e)}function N0(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(t[o]);if(i!=null){const s=re(i);r.push(s)}}return Je(n,He())?r:on(o=>o,r,n)}function Qo(e,t,n){return n.reduce(e,t)}function O0(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 P0(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class Tt extends te{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+rn("; ",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,f=u;if(Je(s.head,a.head)){o=c,i=f;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,f=u,d=jt(s.head,a.head)|0;if(d===0){o=c,i=f;continue e}else return d|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return $0(this)}[Symbol.iterator](){return No(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class B0{constructor(t){this.xs=t,this.it=this.xs,this.current=He()}"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=He()}Dispose(){}}function $0(e){return new B0(e)}function zt(){return new Tt(He(),void 0)}function Jr(e,t){return new Tt(e,t)}function Yr(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 Ko(e){if(e.tail!=null)return e.head;throw new Error(Tl+"\\nParameter name: list")}function An(e){const t=e.tail;if(t!=null)return t;throw new Error(Tl+"\\nParameter name: list")}function j0(){throw new Error(S0)}function qe(){return zt()}function at(e,t){return Jr(e,t)}function Ee(e){return Jr(e,zt())}function U(e){return Yr(e)}function H0(e){return Fl(e)}function D(e){return Ko(e)}function z(e){return An(e)}function qr(e){const t=Fl(e)|0,n=Zo(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Yr(a)){n[s]=Ko(a),o=s+1,i=An(a);continue e}break}})(0,e),n}function xn(e,t,n){let r=t,o=n;for(;!Yr(o);)r=e(r,D(o)),o=An(o);return r}function rs(e){return xn((t,n)=>Jr(n,t),zt(),e)}function Il(e,t){xn((n,r)=>{e(r)},void 0,t)}function le(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Jr(e[r],n);return n}function x(e){return le(e,zt())}function L0(e){let t,n;if($t(e))return x(e);if(e instanceof Tt)return e;{const r=zt();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 Tt(l,void 0),t.tail=n,n)}}finally{oe(i)}const s=o,a=zt();return s.tail=a,An(r)}}function Ml(e){const t=zt();let n=t;const r=s=>{n=xn((a,l)=>{const u=new Tt(l,void 0);return a.tail=u,u},n,s)};if($t(e))e.forEach(r);else if(e instanceof Tt)Il(r,e);else{const s=Le(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();)r(s["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{oe(s)}}const o=n,i=zt();return o.tail=i,An(t)}function Xo(e,t){return xn((n,r)=>Jr(r,n),t,rs(e))}function Jo(e,t){const n=zt(),r=xn((i,s)=>{const a=new Tt(e(s),void 0);return i.tail=a,a},n,t),o=zt();return r.tail=o,An(n)}function V0(e,t){return(r=>{e:for(;;){const o=r;if(Yr(o))return;{const i=e(Ko(o));if(i==null){r=An(o);continue e}else return i}}})(t)}function U0(e,t){return V0(n=>e(n)?ue(n):void 0,t)}function z0(e,t){const n=U0(e,t);return n==null?j0():re(n)}function G0(e,t){return((r,o)=>{e:for(;;){const i=r,s=o;if(Yr(s))return;if(e(Ko(s)))return i;r=i+1,o=An(s);continue e}})(0,t)}function os(e,t,n){return G0(r=>n.Equals(e,r),t)!=null}class g extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function sn(e,t){return t.tag===0?new g(0,[e(t.fields[0])]):new g(1,[t.fields[0]])}function W0(e,t){return t.tag===0?e(t.fields[0]):new g(1,[t.fields[0]])}class Rl extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Z0(e){return new Rl(0,[e])}function Q0(e){return new Rl(1,[e])}const $n={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function is(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 is(e,"_");case $n.SnakeCaseAllCaps:return is(e,"_").toUpperCase();case $n.KebabCase:return is(e,"-");case $n.None:default:return e}}function Cn(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 H){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 S extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ft extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Nl(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function Ol(e,t){switch(e.tag){case 2:return w0(Nl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Nl(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}$/,Pl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,J0=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Y0(e){function t(r){return r.replace(Pl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(X0.test(n))return E0(n,"{","}","(",")");if(Pl.test(n))return t(n);if(J0.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=Y0(e),!0}catch{return!1}}class Bl extends te{constructor(t,n){super(),this.bound=t|0,this.digits=n}}function $l(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*$l(n*n,~~(r/2))|0}}Ce(2013265921,0,!1),Ce(2013265921,0,!0),pr(29-1,e=>$l(2,e),Int32Array);function ss(e){return e.bound}function eo(e,t){return e.digits[t]}function as(e,t){return he(eo(e,t),!1,2)}function Yo(e,t,n){e.digits[t]=n|0}function ls(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,ls(_t(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,Gt=Ce(16777216,0,!1),gr=Ce(16777215,0,!1);Ce(16777215,0,!0);function Hn(e){return new Bl(e,new Int32Array(e))}function th(e){return new Bl(e.bound,I0(e.digits))}function Wt(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 jl=2,Hl=3;function to(e){const t=(e<0?0:e)|0;if(t<jn){const n=Hn(1);return n.digits[0]=t|0,Wt(n)}else{const n=Hn(jl);for(let r=0;r<=jl-1;r++)n.digits[r]=~~(t/hr(jn,r))%jn|0;return Wt(n)}}function nh(e){const t=Vo(e,Ce(0,0,!1))<0?Ce(0,0,!1):e,n=Hn(Hl);for(let r=0;r<=Hl-1;r++)n.digits[r]=~~Vt(Kp(Lt(t,ls(Gt,r)),Gt))|0;return Wt(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=to(1),ih=to(0);function et(e){return e.bound-1}function Ue(e){return e.bound===0}function Ll(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 f=(c<t?0:l[c-t])|0,d=(c<r?0:u[c-r])|0;if(f===d){i=l,s=u,a=c-1;continue e}else return f<d?-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 Vl(e,t){return ah(e,t)===-1}function lh(e,t){const n=Hn(2),r=_t(he(e,!1,2),he(t,!1,2));return Yo(n,0,~~Vt(cr(r,gr))),Yo(n,1,~~Vt(Lt(r,Gt))),Wt(n)}function Ul(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Vo(o,Ce(0,0,!1))>0){const s=vt(as(r,i),o);Yo(r,i,~~Vt(cr(s,gr))),e=r,t=Lt(s,Gt),n=i+1;continue e}break}}function zl(e,t){const n=ss(e)|0,r=Hn(n+1),o=he(t,!1,2);let i=Ce(0,0,!1);for(let s=0;s<=n-1;s++){const a=vt(vt(i,as(r,s)),_t(as(e,s),o));Yo(r,s,~~Vt(cr(a,gr))),i=Lt(a,Gt)}return Ul(r,i,n),Wt(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=he(e.digits[o],!1,2);let s=Ce(0,0,!1),a=o;for(let l=0;l<=t.bound-1;l++){const u=he(t.digits[l],!1,2),c=vt(vt(he(r[a],!1,2),s),_t(i,u));r[a]=~~Vt(cr(c,gr))|0,s=Lt(c,Gt),a=a+1|0}Ul(n,s,a)}return Wt(n)}function uh(e,t){const n=ss(e)===1,r=ss(t)===1;return n&&r?lh(eo(e,0),eo(t,0)):n?zl(t,eo(e,0)):r?zl(e,eo(t,0)):ch(e,t)}class fh extends te{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 lt(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=[lt(1,28,268435456,268435456),lt(2,26,67108864,134217728),lt(3,24,16777216,50331648),lt(4,22,4194304,16777216),lt(5,20,1048576,5242880),lt(6,18,262144,1572864),lt(7,16,65536,458752),lt(8,14,16384,131072),lt(9,12,4096,36864),lt(10,10,1024,10240),lt(11,8,256,2816),lt(12,6,64,768),lt(13,4,16,208)];pr(mr,e=>hr(2,e)-1,Int32Array),pr(mr,e=>hr(2,e),Int32Array),pr(mr,e=>ls(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=et(e)|0,i=e.digits,s=et(n)|0,a=n.digits,l=he(t,!1,2);let u=0,c=_t(l,he(a[0],!1,2));for(;Vo(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 f=~~Vt(cr(c,gr)),d=Lt(c,Gt);f<=i[u+r]?i[u+r]=i[u+r]-f|0:(i[u+r]=i[u+r]+(jn-f)|0,d=vt(d,Ce(1,0,!1))),u<s?c=vt(d,_t(l,he(a[u+1],!1,2))):c=d,u=u+1|0}Wt(e)}function mh(e,t,n,r){const o=et(e)|0,i=e.digits,s=et(n)|0,a=n.digits,l=he(t,!1,2);let u=0,c=_t(l,he(a[0],!1,2));for(;Vo(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 f=~~Vt(cr(c,gr)),d=Lt(c,Gt);f<jn-i[u+r]?i[u+r]=i[u+r]+f|0:(i[u+r]=f-(jn-i[u+r])|0,d=vt(d,Ce(1,0,!1))),u<s?c=vt(d,_t(l,he(a[u+1],!1,2))):c=d,u=u+1|0}Wt(e)}function gh(e,t,n){const r=et(t)|0,o=et(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]):~~Vt(Lt(vt(_t(he(s[o],!1,2),Gt),he(s[o-1],!1,2)),he(a[0],!1,2))):o===i+n?~~(s[o]/(a[i]+1)):~~Vt(Lt(vt(_t(he(s[o],!1,2),Gt),he(s[o-1],!1,2)),vt(he(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(et(e)<et(t))return[ih,e];{const n=th(e),r=Hn(et(e)-et(t)+1+1);let o=et(e);const i=et(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[Wt(r),Wt(n)]}}to(2);function cs(e){return to(e)}function yh(e){return nh(e)}function Gl(e){const t=et(e)|0,n=(i,s,a)=>{e:for(;;){const l=i,u=s,c=a;if(et(c)>t)return at([u,c],l);i=at([u,c],l),s=u+1,a=ph(c,c);continue e}},r=(i,s,a,l)=>{e:for(;;){const u=i,c=s,f=a,d=l;if(U(d)){const p=rh(f)|0;return u&&p===0?c:at(Yt(p),c)}else{const p=z(d),h=wh(f,D(d)[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,qe(),e,n(qe(),0,to(10)));return U(o)?"0":rn("",qr(o))}function bh(e){return e.bound<=1}function Wl(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":"-"+Gl(se(t));if(n===0)return"0";if(n===1)return Gl(se(t));throw new Error("signs should be +/- 1 or 0")}Equals(t){const n=this;return t instanceof ze&&Zl(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 us(e,t){return new ze(e,t)}ze.smallLim=4096,ze.smallPosTab=pr(ze.smallLim,cs,null),ze.one=ds(1),ze.two=ds(2),ze.zero=ds(0);function fs(e){return bh(e)&&Wl(e)<ze.smallLim?ze.smallPosTab[Wl(e)]:e}function Ln(e){return e.signInt}function se(e){return e.v}function Zl(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 Ll(se(e),se(t));case 1:return Ll(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 Vl(se(e),se(t));case 1:return Vl(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:Zl(e,t)?0:1}function Ah(e){return Ln(e)===0?1:Ln(e)+eh(se(e))|0}function ds(e){return e>=0?us(1,fs(cs(e))):e===-2147483648?us(-1,fs(yh(Xp(he(e,!1,2))))):us(-1,fs(cs(Fp(e))))}function Ql(){return ze.one}function xh(){return ze.two}function Kl(){return ze.zero}Kl(),Ql(),xh(),Kl(),Ql();function Xl(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 Xl(-621355968e5,0)}function Sh(e){const[t,n]=Al(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Xl(t.getTime(),r)}function kh(e,t){try{return t.contents=Sh(e),!0}catch{return!1}}function no(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 Jp(Lt(e,1e4))}function Th(e){return no(e/864e5)}function Fh(e){return no(e%864e5/36e5)}function Ih(e){return no(e%36e5/6e4)}function Mh(e){return no(e%6e4/1e3)}function Rh(e){return no(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.",Yl="The input sequence has an insufficient number of elements.",Hh="Reset is not supported on this enumerator.";function Lh(){throw new Error(Hh)}function ps(){throw new Error(jh)}function hs(){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{oe(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return No(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 qo(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{oe(a)}finally{n=void 0}}if(t!=null){const a=t;try{oe(a)}finally{t=void 0}}};return qo(()=>(r?o&&hs():ps(),i!=null?re(i):hs()),()=>{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 f=c;if(f["System.Collections.IEnumerator.MoveNext"]())i=ue(f["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{oe(f)}finally{n=void 0}}else{const f=u;f["System.Collections.IEnumerator.MoveNext"]()?n=(a=f["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return re(l)}},()=>{o||s()})}function Wh(e,t){return qo(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{oe(t)}finally{e()}})}function ql(e,t,n){let r=!1,o,i=ue(e());const s=()=>{if(i!=null){const l=re(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return qo(()=>(r||ps(),o!=null?re(o):hs()),()=>{if(r||(r=!0),i!=null){const l=re(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 qo(()=>{if(n!=null){const o=n[0];return n[1],o}else return ps()},()=>(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 En(e){return Qh("source",e),Le(e)}function B(e){return wr(()=>Le(e()))}function ec(e){return wr(()=>Gh(e))}function Kh(e,t){return wr(()=>Zh(e,t))}function ms(){return B(()=>new Array(0))}function O(e){return B(()=>F0(e,null))}function y_(e){return e}function Xh(e){return e instanceof Tt?qr(e):Array.from(e)}function xt(e){return $t(e)?x(e):e instanceof Tt?e:L0(e)}function Jh(e,t,n){return wr(()=>ql(e,t,n))}function tc(e,t,n){return wr(()=>{let r=-1;return ql(e,o=>(r=r+1|0,t(r,o)),n)})}function fe(e,t){return ec([e,t])}function Yh(e,t,n){const r=En(t);try{const o=En(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{oe(o)}}finally{oe(r)}}function yr(e,t,n){const r=En(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{oe(r)}}function ei(e,t,n){const r=En(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{oe(r)}}function gs(e,t){ei((n,r)=>{e(r)},void 0,t)}function Re(e,t){return Jh(()=>En(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ue(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function qh(e,t){return tc(()=>En(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ue(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function em(e){return B(()=>M0(Xh(e)))}function tm(e,t){return wr(()=>{const n=En(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Yl+"\\nParameter name: source");return Wh(()=>{},n)}catch(r){throw oe(n),r}})}function nm(e,t){return tc(()=>En(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(Yl+"\\nParameter name: source")}else return},n=>{oe(n)})}function nc(e,t){return B(()=>ec(Re(e,t)))}class rc{constructor(t,n){this.k=t,this.v=n}}function ro(e,t){return new rc(e,t)}function be(e){return e.k}function Ge(e){return e.v}class me extends rc{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function oo(e,t,n,r,o){return new me(e,t,n,r,o)}function Ne(e){return e.left}function Oe(e){return e.right}function Sn(e){return e.h}function b_(){}function oc(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){e=oc(n+1,Ne(o)),t=Oe(o);continue e}else return n+1|0}else return n|0}}function rm(e){return oc(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?ro(t,n):oo(t,n,e,r,l+1)}function ic(e,t,n,r){let o,i,s,a,l;const u=e;if(u!=null){const d=u;l=d instanceof me?Sn(d):1}else l=0;let c;const f=r;if(f!=null){const d=f;c=d instanceof me?Sn(d):1}else c=0;if(c>l+2){const d=re(r);if(d instanceof me)if(o=Ne(d),(o!=null?(i=o,i instanceof me?Sn(i):1):0)>l+1){const p=re(Ne(d));if(p instanceof me)return It(It(e,t,n,Ne(p)),be(p),Ge(p),It(Oe(p),be(d),Ge(d),Oe(d)));throw new Error("internal error: Map.rebalance")}else return It(It(e,t,n,Ne(d)),be(d),Ge(d),Oe(d));else throw new Error("internal error: Map.rebalance")}else if(l>c+2){const d=re(e);if(d instanceof me)if(s=Oe(d),(s!=null?(a=s,a instanceof me?Sn(a):1):0)>c+1){const p=re(Oe(d));if(p instanceof me)return It(It(Ne(d),be(d),Ge(d),Ne(p)),be(p),Ge(p),It(Oe(p),t,n,r));throw new Error("internal error: Map.rebalance")}else return It(Ne(d),be(d),Ge(d),It(Oe(d),t,n,r));else throw new Error("internal error: Map.rebalance")}else return It(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?ic(br(e,t,n,Ne(o)),be(o),Ge(o),Oe(o)):i===0?oo(t,n,Ne(o),Oe(o),Sn(o)):ic(Ne(o),be(o),Ge(o),br(e,t,n,Oe(o))):i<0?oo(t,n,void 0,r,2):i===0?ro(t,n):oo(t,n,r,void 0,2)}else return ro(t,n)}function sc(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?Ne(s):Oe(s);continue e}else return}else return}}function om(e,t,n){const r=sc(e,t,n);if(r==null)throw new Error;return re(r)}function im(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=Ne(s);continue e}else{if(a===0)return!0;e=r,t=o,n=Oe(s);continue e}else return a===0}else return!1}}function ac(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof me){ac(n,Ne(o)),n(be(o),Ge(o)),e=n,t=Oe(o);continue e}else n(be(o),Ge(o))}break}}function sm(e,t){ac(e,t)}function ws(e,t){if(t!=null){const n=t;if(n instanceof me){const r=ws(e,Ne(n)),o=e(be(n),Ge(n)),i=ws(e,Oe(n));return oo(be(n),o,r,i,Sn(n))}else return ro(be(n),e(be(n),Ge(n)))}else return void 0}function am(e,t){return ws(e,t)}function lm(e,t,n){let r=n;sm((o,i)=>{t[r]=[o,i],r=r+1|0},e)}function cm(e,t){return xn((n,r)=>br(e,r[0],r[1],n),void 0,t)}function um(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 fm(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 lc(e,t){if($t(t))return fm(e,t);if(t instanceof Tt)return cm(e,t);{const n=Le(t);try{return um(e,void 0,n)}finally{oe(n)}}}class dm extends te{constructor(t,n){super(),this.stack=t,this.started=n}}function cc(e){e:for(;;){const t=e;if(U(t))return qe();{const n=z(t),r=D(t);if(r!=null){const o=r;if(o instanceof me){e=le([Ne(o),ro(be(o),Ge(o)),Oe(o)],n);continue e}else return t}else{e=n;continue e}}}}function uc(e){return new dm(cc(Ee(e)),!1)}function pm(){throw new Error("enumeration not started")}function hm(){throw new Error("enumeration already finished")}function fc(e){if(e.started){const t=e.stack;if(U(t))return hm();if(D(t)!=null){const n=D(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 pm()}function mm(e){if(e.started){const t=e.stack;if(U(t))return!1;if(D(t)!=null){if(D(t)instanceof me)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=cc(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 dc(e){let t=uc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return fc(t)},"System.Collections.IEnumerator.get_Current"(){return fc(t)},"System.Collections.IEnumerator.MoveNext"(){return mm(t)},"System.Collections.IEnumerator.Reset"(){t=uc(e)},Dispose(){}}}class ti{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return vm(this)|0}Equals(t){const n=this;if(t instanceof ti){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 Je(a[0],l[0])&&Je(a[1],l[1])?i():!1}else return!0;else return!1};return i()}finally{oe(o)}}finally{oe(r)}}else return!1}toString(){return"map ["+rn("; ",Re(n=>_0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return dc(this.tree)}[Symbol.iterator](){return No(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return dc(this.tree)}CompareTo(t){const n=this;if(t instanceof ti)return Yh((r,o)=>{const i=n.comparer.Compare(r[0],o[0])|0;return(i!==0?i:jt(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 hc(n,t[0])&&Je(pc(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){lm(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ys(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ys(this)|0}get size(){return ys(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Re(n=>[n[0],n[1]],this)}get(t){return pc(this,t)}has(t){return hc(this,t)}keys(){return Re(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Re(n=>n[1],this)}forEach(t,n){const r=this;gs(o=>{nr(2,t,[o[1]])(o[0])(r)},r)}}function io(e,t){return new ti(e,t)}function gm(e){return io(e,void 0)}function wm(e,t,n){return io(e.comparer,br(e.comparer,t,n,e.tree))}function pc(e,t){return om(e.comparer,t,e.tree)}function ym(e,t){return io(e.comparer,am(t,e.tree))}function ys(e){return rm(e.tree)}function hc(e,t){return im(e.comparer,t,e.tree)}function bm(e,t){return sc(e.comparer,t,e.tree)}function vm(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{oe(r)}return n|0}function mc(e,t,n){return wm(n,e,t)}function gc(e,t){return bm(t,e)}function wc(e,t){return ym(t,e)}function _m(e,t){return io(t,lc(t,e))}function Am(e,t){return io(t,lc(t,e))}function bs(e){return gm(e)}class yc{constructor(t){this.k=t}}function ct(e){return new yc(e)}function I(e){return e.k}class G extends yc{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ut(e,t,n,r){return new G(e,t,n,r)}function q(e){return e.left}function J(e){return e.right}function vr(e){return e.h}function v_(){}function bc(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=n;if(o instanceof G){e=q(o),t=bc(J(o),r+1);continue e}else return r+1|0}else return r|0}}function xm(e){return bc(e,0)}function Mt(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?ct(t):ut(t,e,n,a+1)}function vc(e,t,n){let r,o,i,s,a;const l=e;if(l!=null){const f=l;a=f instanceof G?vr(f):1}else a=0;let u;const c=n;if(c!=null){const f=c;u=f instanceof G?vr(f):1}else u=0;if(u>a+2){const f=re(n);if(f instanceof G)if(r=q(f),(r!=null?(o=r,o instanceof G?vr(o):1):0)>a+1){const d=re(q(f));if(d instanceof G)return Mt(Mt(e,t,q(d)),I(d),Mt(J(d),I(f),J(f)));throw new Error("internal error: Set.rebalance")}else return Mt(Mt(e,t,q(f)),I(f),J(f));else throw new Error("internal error: Set.rebalance")}else if(a>u+2){const f=re(e);if(f instanceof G)if(i=J(f),(i!=null?(s=i,s instanceof G?vr(s):1):0)>u+1){const d=re(J(f));if(d instanceof G)return Mt(Mt(q(f),I(f),q(d)),I(d),Mt(J(d),t,n));throw new Error("internal error: Set.rebalance")}else return Mt(q(f),I(f),Mt(J(f),t,n));else throw new Error("internal error: Set.rebalance")}else return Mt(e,t,n)}function so(e,t,n){if(n!=null){const r=n,o=e.Compare(t,I(r))|0;if(r instanceof G)return o<0?vc(so(e,t,q(r)),I(r),J(r)):o===0?n:vc(q(r),I(r),so(e,t,J(r)));{const i=e.Compare(t,I(r))|0;return i<0?ut(t,void 0,n,2):i===0?n:ut(t,n,void 0,2)}}else return ct(t)}function _c(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=i,a=r.Compare(o,I(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=J(s);continue e}else return a===0}else return!1}}function Ac(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=r;if(o instanceof G){Ac(n,q(o)),n(I(o)),e=n,t=J(o);continue e}else n(I(o))}break}}class Cm extends te{constructor(t,n){super(),this.stack=t,this.started=n}}function xc(e){e:for(;;){const t=e;if(U(t))return qe();{const n=D(t),r=z(t);if(n!=null){const o=n;if(o instanceof G){e=le([q(o),ct(I(o)),J(o)],r);continue e}else return t}else{e=r;continue e}}}}function Cc(e){return new Cm(xc(Ee(e)),!1)}function Em(){throw new Error("Enumeration not started")}function Sm(){throw new Error("Enumeration already started")}function Ec(e){if(e.started){const t=e.stack;if(U(t))return Sm();if(D(t)!=null){const n=D(t);return I(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Em()}function km(e){if(e.started){const t=e.stack;if(U(t))return!1;if(D(t)!=null){if(D(t)instanceof G)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=xc(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=Cc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.get_Current"(){return Ec(t)},"System.Collections.IEnumerator.MoveNext"(){return km(t)},"System.Collections.IEnumerator.Reset"(){t=Cc(e)},Dispose(){}}}function Dm(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(D(i)!=null)if(D(o)!=null){const s=D(o),a=D(i);if(s instanceof G)if(q(s)==null)if(a instanceof G)if(q(a)==null){const l=r.Compare(I(s),I(a))|0;if(l!==0)return l|0;e=r,t=at(J(s),z(o)),n=at(J(a),z(i));continue e}else{let l,u,c,f,d;switch(U(o)?U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2:D(o)!=null?(l=0,u=z(o),c=D(o)):U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ut(I(c),void 0,J(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,ct(I(c))],u),n=i;continue e}case 1:if(d instanceof G){e=r,t=o,n=le([q(d),ut(I(d),void 0,J(d),0)],f);continue e}else{e=r,t=o,n=le([void 0,ct(I(d))],f);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(I(s),I(a))|0;if(l!==0)return l|0;e=r,t=at(J(s),z(o)),n=at(void 0,z(i));continue e}else{let l,u,c,f,d;switch(U(o)?U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2:D(o)!=null?(l=0,u=z(o),c=D(o)):U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ut(I(c),void 0,J(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,ct(I(c))],u),n=i;continue e}case 1:if(d instanceof G){e=r,t=o,n=le([q(d),ut(I(d),void 0,J(d),0)],f);continue e}else{e=r,t=o,n=le([void 0,ct(I(d))],f);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(I(s),I(a))|0;if(l!==0)return l|0;e=r,t=at(void 0,z(o)),n=at(J(a),z(i));continue e}else{let l,u,c,f,d;switch(U(o)?U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2:D(o)!=null?(l=0,u=z(o),c=D(o)):U(i)?l=2:D(i)!=null?(l=1,f=z(i),d=D(i)):l=2,l){case 0:if(c instanceof G){e=r,t=le([q(c),ut(I(c),void 0,J(c),0)],u),n=i;continue e}else{e=r,t=le([void 0,ct(I(c))],u),n=i;continue e}case 1:if(d instanceof G){e=r,t=o,n=le([q(d),ut(I(d),void 0,J(d),0)],f);continue e}else{e=r,t=o,n=le([void 0,ct(I(d))],f);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{const l=r.Compare(I(s),I(a))|0;if(l!==0)return l|0;e=r,t=z(o),n=z(i);continue e}}else{D(i);let s,a,l,u,c;switch(U(o)?U(i)?s=2:D(i)!=null?(s=1,u=z(i),c=D(i)):s=2:D(o)!=null?(s=0,a=z(o),l=D(o)):U(i)?s=2:D(i)!=null?(s=1,u=z(i),c=D(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ut(I(l),void 0,J(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,ct(I(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ut(I(c),void 0,J(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,ct(I(c))],u);continue e}case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else if(D(o)!=null){D(o);let s,a,l,u,c;switch(U(o)?U(i)?s=2:D(i)!=null?(s=1,u=z(i),c=D(i)):s=2:D(o)!=null?(s=0,a=z(o),l=D(o)):U(i)?s=2:D(i)!=null?(s=1,u=z(i),c=D(i)):s=2,s){case 0:if(l instanceof G){e=r,t=le([q(l),ut(I(l),void 0,J(l),0)],a),n=i;continue e}else{e=r,t=le([void 0,ct(I(l))],a),n=i;continue e}case 1:if(c instanceof G){e=r,t=o,n=le([q(c),ut(I(c),void 0,J(c),0)],u);continue e}else{e=r,t=o,n=le([void 0,ct(I(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 kc(e,t,n){return t==null?n==null?0:-1:n==null?1:Dm(e,Ee(t),Ee(n))|0}function Tm(e,t,n){let r=n;Ac(o=>{t[r]=o,r=r+1|0},e)}function Fm(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=so(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Im(e,t){return Qo((n,r)=>so(e,r,n),void 0,t)}function Mm(e,t){return xn((n,r)=>so(e,r,n),void 0,t)}function Rm(e,t){if($t(t))return Im(e,t);if(t instanceof Tt)return Mm(e,t);{const n=Le(t);try{return Fm(e,void 0,n)}finally{oe(n)}}}class vs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Pm(this)|0}Equals(t){const n=this;return t instanceof vs&&kc(ni(n),Zt(n),Zt(t))===0}toString(){return"set ["+rn("; ",Re(n=>Ve(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return kc(ni(n),Zt(n),Zt(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 _c(ni(n),t,Zt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tm(Zt(this),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}GetEnumerator(){return Sc(Zt(this))}[Symbol.iterator](){return No(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Sc(Zt(this))}get size(){return _s(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 Om(this,t)}keys(){return Re(n=>n,this)}values(){return Re(n=>n,this)}entries(){return Re(n=>[n,n],this)}forEach(t,n){const r=this;gs(o=>{nr(2,t,[o])(o)(r)},r)}}function Nm(e,t){return new vs(e,t)}function ni(e){return e.comparer}function Zt(e){return e.tree}function _s(e){return xm(Zt(e))}function Om(e,t){return _c(ni(e),t,Zt(e))}function Pm(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{oe(n)}return Math.abs(t)|0}function Bm(e,t){return Nm(t,Rm(t,e))}function ao(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
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 $m(e,t){const n=t.tag===2?ao(t.fields[0],t.fields[1],!0):t.tag===1?ao(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?ao(t.fields[0],t.fields[1],!0):t.tag===4?ao(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
- `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
-
10
- `+rn(`
11
-
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:ao(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Dc(e,t,n){let r;if(r=nr(1,t,[e])(n),r.tag===1){const i=r.fields[0];return new g(1,[$m(i[0],i[1])])}else return new g(0,[r.fields[0]])}function Vn(e,t){try{return Dc("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new g(1,["Given an invalid JSON: "+n.message]);throw n}}function Tc(e,t){return typeof t=="string"?new g(0,[t]):new g(1,[[e,new S(0,["a string",t])]])}function jm(e,t){if(typeof t=="string"){const n=t;return n.length===1?new g(0,[n[0]]):new g(1,[[e,new S(0,["a single character string",t])]])}else return new g(1,[[e,new S(0,["a char",t])]])}function Hm(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[q0(t,new Ye(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a guid",t])]])}else return new g(1,[[e,new S(0,["a guid",t])]])}function Lm(e,t){return t==null?new g(0,[void 0]):new g(1,[[e,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a|0})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(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 S(1,[n,i,"Value was either too large or too small for "+n])]]):new g(1,[[r,new S(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 Ye(()=>s,a=>{s=a})),s],i[0]?new g(0,[i[1]]):new g(1,[[r,new S(0,[n,o])]])}else return new g(1,[[r,new S(0,[n,o])]])};function Vm(e,t){return typeof t=="boolean"?new g(0,[t]):new g(1,[[e,new S(0,["a boolean",t])]])}function Um(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new S(0,["a float",t])]])}function zm(e,t){return typeof t=="number"?new g(0,[t]):new g(1,[[e,new S(0,["a float32",t])]])}function Gm(e,t){if(typeof t=="string"){let n,r=d0();return n=[h0(t,new Ye(()=>r,o=>{r=o})),r],n[0]?new g(0,[m0(n[1])]):new g(1,[[e,new S(0,["a datetime",t])]])}else return new g(1,[[e,new S(0,["a datetime",t])]])}function Wm(e,t){if(typeof t=="string"){let n,r=Eh();return n=[kh(t,new Ye(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new g(1,[[e,new S(0,["a datetime",t])]])}function Zm(e,t){if(typeof t=="string"){let n,r=0;return n=[Ph(t,new Ye(()=>r,o=>{r=o})),r],n[0]?new g(0,[n[1]]):new g(1,[[e,new S(0,["a timespan",t])]])}else return new g(1,[[e,new S(0,["a timespan",t])]])}function Pc(e,t,n,r){let o;const i=n+".["+Yt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,s[e]):new g(1,[[i,new S(5,["a longer array. Need index `"+Yt(e)+"` but there are only `"+(o=s.length,Yt(o))+"` entries",r])]])}else return new g(1,[[i,new S(0,["an array",r])]])}function Qm(e,t,n){return n==null?new g(0,[void 0]):sn(ue,e(t,n))}function Bc(e,t,n){if(Array.isArray(n)){let r=-1;return sn(rs,Qo((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Yt(r)+"]",i);return s.tag===0?new g(0,[at(s.fields[0],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[qe()]),n))}else return new g(1,[[t,new S(0,["a list",n])]])}function Km(e,t,n){if(Array.isArray(n)){let r=-1;return sn(em,Qo((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Yt(r)+"]",i);return s.tag===0?new g(0,[fe([s.fields[0]],o.fields[0])]):new g(1,[s.fields[0]])}else return o},new g(0,[[]]),n))}else return new g(1,[[t,new S(0,["a seq",n])]])}function $c(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Qo((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Yt(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,[Zo(new Array(o.length),0,o.length,null)]),o)}else return new g(1,[[t,new S(0,["an array",n])]])}function Xm(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(U(s))return new g(1,[[t,new S(7,[a])]]);{const l=Dc(t,ee(2,D(s)),n);if(l.tag===1){o=z(s),i=Xo(a,Ee(l.fields[0]));continue e}else return new g(0,[l.fields[0]])}}})(e,qe())}function Jm(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 Ym(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 qm(e,t){let n;const r=e;return n=o=>i=>Pc(0,r,o,i),o=>i=>jc(ee(3,s=>{let a;const l=t;return a=u=>c=>Pc(1,l,u,c),u=>c=>jc((f,d,p)=>Jm([s,f]),ee(2,a),u,c)}),ee(2,n),o,i)}function eg(e){return _m(e,{Compare:jt})}function tg(e){return Bm(e,{Compare:jt})}function ng(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?P0((r,o)=>{const i=r[0];return o.tag===0?sn(s=>at(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new g(0,[qe()])):new g(1,[[t,new S(0,["an object",n])]])}function rg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?ei((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,[at([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,[qe()]),Object.keys(r)):new g(1,[[n,new S(0,["an object",r])]])}function Hc(e,t,n,r){let o,i,s;const a=t.length+e|0;if(a!==r.length)return new g(1,[[n,new S(6,[(o=r.length|0,i=_n(Ut("Expected array of length %i but got %i")),s=i(a),s(o))])]]);{let l=new g(0,[qe()]);for(let u=e;u<=r.length-1;u++)if(l.tag===0){const c=l.fields[0];let f;f=_n(Ut("%s[%i]"))(n)(u);const h=t[u-e],y=r[u];l=sn(w=>at(w,c),h(f)(y))}return sn(rs,l)}}function Lc(e,t,n,r,o,i){const s=R0(a=>ur(a)===r,gl(n));if(s!=null){const a=s,l=on(u=>Rt(e,t,!1,u[1]),vl(a),null);return sn(u=>i0(a,qr(u)),l.length===0&&i.length<=1?new g(0,[qe()]):Hc(1,l,o,i))}else return new g(1,[[o,new S(6,["Cannot find case "+r+" in "+ne(n)])]])}function Vc(e,t,n,r){let o,i;const s=new Ye(He());let a;const l=ne(r);a=l===""?e:mc(l,s,e);let u;if(bl(r)){const c=on(f=>[Ol(t,ur(f)),Rt(a,t,!1,f[1])],Qr(r),null);u=f=>d=>sn(p=>s0(r,qr(p)),ng(c,f,d))}else if(yl(r))u=c=>f=>{if(typeof f=="string")return Lc(a,t,r,f,c,[]);if(Array.isArray(f)){const d=f;return W0(p=>Lc(a,t,r,p,c,d),Tc(c+"[0]",d[0]))}else return new g(1,[[c,new S(0,["a string or array",f])]])};else if(n)u=c=>f=>new g(1,[[c,new S(2,["an extra coder for "+ne(r),f])]]);else throw new Error((o=ne(r),i=_n(Ut(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
-
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`)),i(o)));return s.contents=u,u}function Rt(e,t,n,r){let o,i,s,a;const l=ne(r),u=gc(l,e);if(u==null)if(dl(r)){const c=Rt(e,t,!1,Zr(r));return f=>d=>$c(ee(2,c),f,d)}else if(Xi(r)){const c=ne(ml(r));if(c==="System.SByte")return f=>d=>{const p=r,h=f,y=d,w=Fc(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0]|0;return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,b.toString())]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};if(c==="System.Byte")return f=>d=>{const p=r,h=f,y=d,w=Ic(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0];return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,b.toString())]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};if(c==="System.Int16")return f=>d=>{const p=r,h=f,y=d,w=Mc(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0]|0;return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,Jd(b))]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};if(c==="System.UInt16")return f=>d=>{const p=r,h=f,y=d,w=Rc(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0];return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,b.toString())]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};if(c==="System.Int32")return f=>d=>{const p=r,h=f,y=d,w=Nc(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0]|0;return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,Yt(b))]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};if(c==="System.UInt32")return f=>d=>{const p=r,h=f,y=d,w=Oc(h)(y);if(w.tag===1)return new g(1,[w.fields[0]]);{const b=w.fields[0];return yr(b,fr(p),{Equals:(_,k)=>_===k,GetHashCode:Ct})?new g(0,[dr(p,b.toString())]):new g(1,[[h,new S(1,[ne(p),y,"Unkown value provided for the enum"])]])}};{const f=ne(r),p=Sl(Ut(`Cannot generate auto decoder for %s.
15
- Thoth.Json.Net only support the following enum types:
16
- - sbyte
17
- - byte
18
- - int16
19
- - uint16
20
- - int
21
- - uint32
22
- If you can't use one of these types, please pass an extra decoder.
23
- `))(f);return h=>p(h)}}else if(pl(r))if(Ji(r)){const c=on(f=>Rt(e,t,!1,f),wl(r),null);return f=>d=>Array.isArray(d)?sn(p=>a0(qr(p)),Hc(0,c,f,d)):new g(1,[[f,new S(0,["an array",d])]])}else{const c=ne(hl(r));if(c==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]")return o=Rt(e,t,!0,st(r)[0]),f=>d=>Qm(ee(2,o),f,d);if(c==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]")return i=Rt(e,t,!1,st(r)[0]),f=>d=>Bc(ee(2,i),f,d);if(c==="System.Collections.Generic.IEnumerable`1[System.Object]")return s=Rt(e,t,!1,st(r)[0]),f=>d=>Km(ee(2,s),f,d);if(c==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const f=Rt(e,t,!1,st(r)[0]),d=Rt(e,t,!1,st(r)[1]);let p;const h=x([y=>w=>rg(ee(2,f),ee(2,d),y,w),(a=qm(ee(2,f),ee(2,d)),y=>w=>Bc(ee(2,a),y,w))]);return p=y=>w=>Xm(h,y,w),y=>w=>Ym(eg,ee(2,p),y,w)}else if(c==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"){const f=Rt(e,t,!1,st(r)[0]);return d=>p=>{const h=$c(ee(2,f),d,p);return h.tag===0?new g(0,[tg(h.fields[0])]):new g(1,[h.fields[0]])}}else return Vc(e,t,n,r)}else return l==="System.Boolean"?c=>f=>Vm(c,f):l==="Microsoft.FSharp.Core.Unit"?c=>f=>Lm(c,f):l==="System.String"?c=>f=>Tc(c,f):l==="System.Char"?c=>f=>jm(c,f):l==="System.SByte"?Fc:l==="System.Byte"?Ic:l==="System.Int16"?Mc:l==="System.UInt16"?Rc:l==="System.Int32"?Nc:l==="System.UInt32"?Oc:l==="System.Double"?c=>f=>Um(c,f):l==="System.Single"?c=>f=>zm(c,f):l==="System.DateTime"?c=>f=>Gm(c,f):l==="System.DateTimeOffset"?c=>f=>Wm(c,f):l==="System.TimeSpan"?c=>f=>Zm(c,f):l==="System.Guid"?c=>f=>Hm(c,f):l==="System.Object"?c=>f=>new g(0,[f]):Vc(e,t,n,r);else{const c=u;return f=>d=>c.contents(f)(d)}}function og(e){return e!=null?wc((t,n)=>new Ye(n[1]),e.Coders):bs({Compare:Rn})}function Un(e,t,n){const r=Wo(t,new Ft(0,[]));return Rt(og(n),r,!1,e)}class ri extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessRole"]}}function ig(e){return new ri(0,[e])}const sg=new ri(0,["BasicProfile.ImportData"]),ag=new ri(0,["BasicProfile.AccessConfig"]),lg=new ri(0,["BasicProfile.EditConfig"]);function Uc(e){if(os(sg,e,{Equals:Je,GetHashCode:Li}))return ue(void 0)}function zc(e){if(os(ag,e,{Equals:Je,GetHashCode:Li}))return ue(void 0)}function As(e){if(os(lg,e,{Equals:Je,GetHashCode:Li}))return ue(void 0)}function cg(e){return As(e)!=null}class Gc extends te{constructor(t,n){super(),this.UserName=t,this.Roles=n}}function ug(e){let t;const n=Dl(e==null?"":e,["."],void 0,0);if(!O0((r,o)=>r===o,n,He())&&n.length===3){const r=n[1],o=atob(r);t=Vn(ee(2,Un(qp(["Name",At],["Roles",e0(At)]),new Ft(1,[]),void 0)),o)}else t=new g(1,["Failed to identify the user"]);if(t.tag===1)return new Gc(void 0,qe());{const r=t.fields[0];return new Gc(r.Name,x(on(ig,r.Roles,null)))}}class xs extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ImportId"]}}function fg(e){return new xs(0,[e.fields[0]+1])}function dg(e,t){return new xs(0,[Ui(Rn,e.fields[0],t.fields[0])])}(()=>{let e;const t=new xs(0,[0]);return e=n=>xn(dg,t,n),n=>fg(e(n))})();class pg extends te{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 hg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ActiveImportDto",[],pg,()=>[["ImportId",Me],["User",At],["Filename",At],["NumberOfRecords",Me],["CompletedSuccessfully",Me],["CompletedFailed",Me],["NextRow",Ki(Me)],["StartTime",Wr("System.DateTime")]])}class mg extends te{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 gg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportHistoryDto",[],mg,()=>[["ImportId",Me],["User",At],["Filename",At],["NumberOfRecords",Me],["Succeeded",Me],["Failed",Me],["StartTime",Wr("System.DateTime")],["StopTime",Wr("System.DateTime")]])}class Wc extends te{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zc(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.AccountImportsDto",[],Wc,()=>[["ActiveImport",Ki(hg())],["ImportHistory",Uo(gg())]])}new Wc(void 0,qe());class wg extends te{constructor(t,n){super(),this.Column=t,this.Message=n}}function yg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FieldError",[],wg,()=>[["Column",At],["Message",At]])}class bg extends te{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function vg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.RowValidationError",[],bg,()=>[["RowId",Me],["FieldErrors",Uo(yg())]])}class _g extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InvalidFileContentType","InvalidFileName","ExceedsMaxRows","FileFormatError","NoData","NoFile","MultipleFiles","RowValidationErrors","UnknownAccount","ImportInProgress"]}}function Ag(){return ul("Basic.Profile.Domain.Import.Api.Admin.Read.PostImportError",[],_g,()=>[[],[],[],[["Item",At]],[],[],[],[["Item",Uo(vg())]],[],[]])}class xg extends te{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 Cg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.ImportDto",[],xg,()=>[["ImportId",Me],["User",At],["Filename",At],["TotalRecordCount",Me],["SucceededRecordCount",Me],["FailedRecordCount",Me],["FailedRecords",Uo(Sg())],["RemainingRecordCount",Me],["StartTime",Wr("System.DateTime")],["StopTime",Ki(Wr("System.DateTime"))]])}class Eg extends te{constructor(t,n){super(),this.RowId=t|0,this.Reason=n}}function Sg(){return nn("Basic.Profile.Domain.Import.Api.Admin.Read.FailedImportRecordDto",[],Eg,()=>[["RowId",Me],["Reason",At]])}var lo,E,Qc,zn,Kc,Xc,Cs,Jc,oi={},Yc=[],kg=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ii=Array.isArray;function an(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?lo.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 co(e,s,r,o,null)}function co(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 Es(){return{current:null}}function de(e){return e.children}function Nt(e,t){this.props=e,this.context=t}function uo(e,t){if(t==null)return e.__?uo(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"?uo(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 Ss(e){(!e.__d&&(e.__d=!0)&&zn.push(e)&&!si.__r++||Kc!==E.debounceRendering)&&((Kc=E.debounceRendering)||Xc)(si)}function si(){var e,t,n,r,o,i,s,a;for(zn.sort(Cs);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=an({},i)).__v=i.__v+1,ks(a,i,o,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[s]:null,r,s==null?uo(i):s,i.__h),lu(r,i),i.__e!=s&&eu(i)),zn.length>t&&zn.sort(Cs));si.__r=0}function tu(e,t,n,r,o,i,s,a,l,u){var c,f,d,p,h,y,w,b=r&&r.__k||Yc,_=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"?co(null,p,null,null,p):ii(p)?co(de,{children:p},null,null,null):p.__b>0?co(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(d=b[c])===null||d&&p.key==d.key&&p.type===d.type)b[c]=void 0;else for(f=0;f<_;f++){if((d=b[f])&&p.key==d.key&&p.type===d.type){b[f]=void 0;break}d=null}ks(e,p,d=d||oi,o,i,s,a,l,u),h=p.__e,(f=p.ref)&&d.ref!=f&&(w||(w=[]),d.ref&&w.push(d.ref,null,p),w.push(f,p.__c||h,p)),h!=null?(y==null&&(y=h),typeof p.type=="function"&&p.__k===d.__k?p.__d=l=nu(p,l,e):l=ru(e,p,d,b,h,l),typeof n.type=="function"&&(n.__d=l)):l&&d.__e==l&&l.parentNode!=e&&(l=uo(d))}for(n.__e=y,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(w)for(c=0;c<w.length;c++)cu(w[c],w[++c],w[++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 ln(e,t){return t=t||[],e==null||typeof e=="boolean"||(ii(e)?e.some(function(n){ln(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 Dg(e,t,n,r,o){var i;for(i in n)i==="children"||i==="key"||i in t||ai(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]||ai(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"||kg.test(t)?n:n+"px"}function ai(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,f,d,p,h,y,w,b,_,k,R,$,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 Nt(w,_),c.constructor=M,c.render=Fg),b&&b.sub(c),c.props=w,c.state||(c.state={}),c.context=_,c.__n=r,f=c.__d=!0,c.__h=[],c._sb=[]),c.__s==null&&(c.__s=c.state),M.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=an({},c.__s)),an(c.__s,M.getDerivedStateFromProps(w,c.__s))),d=c.props,p=c.state,c.__v=t,f)M.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(M.getDerivedStateFromProps==null&&w!==d&&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)}),k=0;k<c._sb.length;k++)c.__h.push(c._sb[k]);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(d,p,h)})}if(c.context=_,c.props=w,c.__P=e,R=E.__r,$=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&&++$<25);c.state=c.__s,c.getChildContext!=null&&(r=an(an({},r),c.getChildContext())),f||c.getSnapshotBeforeUpdate==null||(h=c.getSnapshotBeforeUpdate(d,p)),tu(e,ii(N=u!=null&&u.type===de&&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=Tg(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 Tg(e,t,n,r,o,i,s,a){var l,u,c,f=n.props,d=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(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,a=!1}if(p===null)f===d||a&&e.data===d||(e.data=d);else{if(i=i&&lo.call(e.childNodes),u=(f=n.props||oi).dangerouslySetInnerHTML,c=d.dangerouslySetInnerHTML,!a){if(i!=null)for(f={},h=0;h<e.attributes.length;h++)f[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(Dg(e,d,f,o,a),c)t.__k=[];else if(tu(e,ii(h=t.props.children)?h:[h],t,n,r,o&&p!=="foreignObject",i,s,i?i[0]:n.__k&&uo(n,0),a),i!=null)for(h=i.length;h--;)i[h]!=null&&qc(i[h]);a||("value"in d&&(h=d.value)!==void 0&&(h!==e.value||p==="progress"&&!h||p==="option"&&h!==f.value)&&ai(e,"value",h,f.value,!1),"checked"in d&&(h=d.checked)!==void 0&&h!==e.checked&&ai(e,"checked",h,f.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 Fg(e,t,n){return this.constructor(e,n)}function kn(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(de,null,[e]),o||oi,oi,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?lo.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),lu(i,e)}function Ds(e,t){kn(e,t,Ds)}function Ts(e,t,n){var r,o,i,s,a=an({},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?lo.call(arguments,2):n),co(e.type,a,r||e.key,o||e.ref,null)}function ft(e,t){var n={__c:t="__cC"+Jc++,__: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,Ss(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}lo=Yc.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,Nt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=an({},this.state),typeof e=="function"&&(e=e(an({},n),this.props)),e&&an(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ss(this))},Nt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ss(this))},Nt.prototype.render=de,zn=[],Xc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Cs=function(e,t){return e.__v.__b-t.__v.__b},si.__r=0,Jc=0;var cn,Y,Fs,fu,_r=0,du=[],li=[],pu=E.__b,hu=E.__r,mu=E.diffed,gu=E.__c,wu=E.unmount;function Gn(e,t){E.__h&&E.__h(Y,e,_r||t),_r=0;var n=Y.__H||(Y.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:li}),n.__[e]}function Ae(e){return _r=1,fo(_u,e)}function fo(e,t,n){var r=Gn(cn++,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=Y,!Y.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(d){return d.__c});if(c.every(function(d){return!d.__N}))return!i||i.call(this,a,l,u);var f=!1;return c.forEach(function(d){if(d.__N){var p=d.__[0];d.__=d.__N,d.__N=void 0,p!==d.__[0]&&(f=!0)}}),!(!f&&r.__c.props===a)&&(!i||i.call(this,a,l,u))};Y.u=!0;var i=Y.shouldComponentUpdate,s=Y.componentWillUpdate;Y.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)},Y.shouldComponentUpdate=o}return r.__N||r.__}function W(e,t){var n=Gn(cn++,3);!E.__s&&Rs(n.__H,t)&&(n.__=e,n.i=t,Y.__H.__h.push(n))}function Ar(e,t){var n=Gn(cn++,4);!E.__s&&Rs(n.__H,t)&&(n.__=e,n.i=t,Y.__h.push(n))}function L(e){return _r=5,Q(function(){return{current:e}},[])}function Is(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(cn++,7);return Rs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function pe(e,t){return _r=8,Q(function(){return e},t)}function Pe(e){var t=Y.context[e.__c],n=Gn(cn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Y)),t.props.value):e.__}function yu(e,t){E.useDebugValue&&E.useDebugValue(t?t(e):e)}function Ig(e){var t=Gn(cn++,10),n=Ae();return t.__=e,Y.componentDidCatch||(Y.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function bu(){var e=Gn(cn++,11);if(!e.__){for(var t=Y.__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 Mg(){for(var e;e=du.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ci),e.__H.__h.forEach(Ms),e.__H.__h=[]}catch(t){e.__H.__h=[],E.__e(t,e.__v)}}E.__b=function(e){Y=null,pu&&pu(e)},E.__r=function(e){hu&&hu(e),cn=0;var t=(Y=e.__c).__H;t&&(Fs===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=li,n.__N=n.i=void 0})):(t.__h.forEach(ci),t.__h.forEach(Ms),t.__h=[],cn=0)),Fs=Y},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)||Rg)(Mg)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==li&&(n.__=n.__V),n.i=void 0,n.__V=li})),Fs=Y=null},E.__c=function(e,t){t.some(function(n){try{n.__h.forEach(ci),n.__h=n.__h.filter(function(r){return!r.__||Ms(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{ci(r)}catch(o){t=o}}),n.__H=void 0,t&&E.__e(t,n.__v))};var vu=typeof requestAnimationFrame=="function";function Rg(e){var t,n=function(){clearTimeout(r),vu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);vu&&(t=requestAnimationFrame(n))}function ci(e){var t=Y,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Y=t}function Ms(e){var t=Y;e.__c=e.__(),Y=t}function Rs(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 Ns(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 Os(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ui(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:Ns(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}(ui.prototype=new Nt).isPureReactComponent=!0,ui.prototype.shouldComponentUpdate=function(e,t){return Ns(this.props,e)||Ns(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 Ng=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fi(e){function t(n){var r=Au({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ng,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:ln(ln(e).map(t))},Su={map:Eu,forEach:Eu,count:function(e){return e?ln(e).length:0},only:function(e){var t=ln(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ln},Og=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)}Og(e,t,n,r)};var ku=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 po(){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),ku&&ku(e)},(po.prototype=new Nt).__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)},po.prototype.componentWillUnmount=function(){this.t=[]},po.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(de,null,e.fallback);return o&&(o.__h=null),[m(de,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 Pg(e){return this.getChildContext=function(){return e.context},e.children}function Bg(e){var t=this,n=e.i;t.componentWillUnmount=function(){kn(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)}}),kn(m(Pg,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ps(e,t){var n=m(Bg,{__v:e,i:t});return n.containerInfo=t,n}(xr.prototype=new Nt).__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=ln(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,$g=/^(?: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]/,jg=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Hg=/[A-Z0-9]/g,Lg=typeof document<"u",Vg=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=""),kn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ou(e,t,n){return Ds(e,t),typeof n=="function"&&n(),e?e.__c:null}Nt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Nt.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 Ug(){}function zg(){return this.cancelBubble}function Gg(){return this.defaultPrevented}E.event=function(e){return Pu&&(e=Pu(e)),e.persist=Ug,e.isPropagationStopped=zg,e.isDefaultPrevented=Gg,e.nativeEvent=e};var Bs,Wg={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||Lg&&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"||Vg(n.type)?a==="onfocus"?i="onfocusin":a==="onblur"?i="onfocusout":jg.test(i)?i=a:r.indexOf("-")===-1&&$g.test(i)?i=i.replace(Hg,"-$&").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=ln(n.children).forEach(function(l){l.props.selected=o.value.indexOf(l.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=ln(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",Wg)):(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),Bs=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),Bs=null};var Hu={ReactCurrentDispatcher:{current:{readContext:function(e){return Bs.__n[e.__c].props.value}}}},Zg="17.0.2";function Lu(e){return m.bind(null,e)}function di(e){return!!e&&e.$$typeof===Ru}function $s(e){return di(e)?Ts.apply(null,arguments):e}function Vu(e){return!!e.__k&&(kn(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=de;function js(e){e()}function Zu(e){return e}function Qu(){return[!1,js]}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,Os(o.__,t())||i({h:o})},[e,n,t]),W(function(){return Os(o.__,o.v())||i({h:o}),e(function(){Os(o.__,o.v())||i({h:o})})},[e]),n}var F={useState:Ae,useId:bu,useReducer:fo,useEffect:W,useLayoutEffect:Ar,useInsertionEffect:Ku,useTransition:Qu,useDeferredValue:Zu,useSyncExternalStore:Xu,startTransition:js,useRef:L,useImperativeHandle:Is,useMemo:Q,useCallback:pe,useContext:Pe,useDebugValue:yu,version:"17.0.2",Children:Su,render:Nu,hydrate:Ou,unmountComponentAtNode:Vu,createPortal:Ps,createElement:m,createContext:ft,createFactory:Lu,cloneElement:$s,createRef:Es,Fragment:de,isValidElement:di,findDOMNode:Uu,Component:Nt,PureComponent:ui,memo:xu,forwardRef:fi,flushSync:Gu,unstable_batchedUpdates:zu,StrictMode:Wu,Suspense:po,SuspenseList:xr,lazy:Iu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu};const Hs=Object.freeze(Object.defineProperty({__proto__:null,Children:Su,PureComponent:ui,StrictMode:Wu,Suspense:po,SuspenseList:xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Hu,cloneElement:$s,createFactory:Lu,createPortal:Ps,default:F,findDOMNode:Uu,flushSync:Gu,forwardRef:fi,hydrate:Ou,isValidElement:di,lazy:Iu,memo:xu,render:Nu,startTransition:js,unmountComponentAtNode:Vu,unstable_batchedUpdates:zu,useDeferredValue:Zu,useInsertionEffect:Ku,useSyncExternalStore:Xu,useTransition:Qu,version:Zg,Component:Nt,Fragment:de,createContext:ft,createElement:m,createRef:Es,useCallback:pe,useContext:Pe,useDebugValue:yu,useEffect:W,useErrorBoundary:Ig,useId:bu,useImperativeHandle:Is,useLayoutEffect:Ar,useMemo:Q,useReducer:fo,useRef:L,useState:Ae},Symbol.toStringTag,{value:"Module"})),Qg=(e,t)=>{W(()=>{const n=e();return()=>{n.Dispose()}},t)},C=F,Ju=Qg;function Ls(e){return{Dispose(){e()}}}function Yu(e){return C.useState(e)}function qu(e,t){Ju(e,t)}function Kg(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(){gs(i=>{oe(i)},k0(o))}}},[])}function ef(e,t){Ju(n=>(e(),Ls(()=>{})),t)}function tf(e){return C.useRef(e)}function ho(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 pi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,pi.prototype)}}class Vs{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Vs.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function un(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new pi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Oo(n))}});else try{e(t)}catch(n){t.onError(Oo(n))}}}function Xg(e,t){return un(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(Oo(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Jg(e){return un(t=>t.onSuccess(e))}class Yg{Bind(t,n){return Xg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return un(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 Jg(t)}ReturnFrom(t){return t}TryFinally(t,n){return un(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 un(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(Oo(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 un(t=>t.onSuccess(void 0))}}const v=new Yg;function Us(e){}function qg(e){const t=new nf(typeof e=="boolean"?e:!1);return typeof e=="number"&&setTimeout(()=>{t.cancel()},e),t}function ew(e){e.cancel()}const tw=new nf;function nw(e){return un(t=>{e({onSuccess:n=>t.onSuccess(Z0(n)),onError:n=>t.onSuccess(Q0(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function rw(e){return un(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ow(e){return un(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new pi)})})}function iw(e,t){return sw(e,t)}function rf(e,t){return iw(e,t)}function sw(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Vs;e({onSuccess:t||Us,onError:n||Us,onCancel:r||Us,cancelToken:o||tw,trampoline:i})}class Qt extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function aw(e,t){const n=ho(new Qt(0,[])),r=n[1];let o;const i=tf(qg()),s=tf(i.current);Kg(()=>Ls(()=>{ew(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 ef(()=>{rf(a,o.current)},t),n[0]}class We extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class lw{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function cw(e,t){t.Subscribe(new lw(e))}class uw{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 fw{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 uw}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 dw(e,t){console.error(ue(e),t)}function pw(e,t){let n,r=new fw(e);r.AutoReset=!1,n=r,cw(t,n.Elapsed()),n.Enabled=!0,n.Start()}function of(e,t){Il(n=>{n(e)},t)}function tt(){return qe()}function mo(e){return Ml(e)}function Ot(e){return Ee(t=>{t(e)})}function go(e,t,n,r){return Ee(o=>{e(v.Delay(()=>v.Bind(nw(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),v.Zero()})))})}function Cr(e){pw(0,t=>{rf(e)})}class Wn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Import","Configuration"]}}class hi extends H{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 zs extends te{constructor(t,n){super(),this.CurrentTab=t,this.AccountImports=n}}class wo extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetCurrentTab","FetchImports"]}}function hw(){return[new zs(new Wn(0,[new hi(0,[])]),new Qt(0,[])),Ot(new wo(1,[new We(0,[void 0])]))]}function mw(e,t,n){return t.tag===1?t.fields[0].tag===1?[new zs(n.CurrentTab,new Qt(2,[t.fields[0].fields[0]])),tt()]:[n,go(r=>{Cr(r)},e,void 0,r=>new wo(1,[new We(1,[r])]))]:[new zs(t.fields[0],n.AccountImports),tt()]}class Zn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class af extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header"]}}class Gs extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class yo extends te{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 H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class lf extends te{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 Sr(e){return new af(0,["Authorization",e])}const Qn=new yo("",new Zn(0,[]),qe(),!1,void 0,void 0,void 0,new Gs(0,[]));new lf(0,"","","",bs({Compare:Rn}),new Er(0,[""]));function uf(e,t){return A0(t)?[t]:Dl(t,[e],void 0,0)}function gw(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 kr(e){return new yo(e,Qn.method,Qn.headers,Qn.withCredentials,Qn.overridenMimeType,Qn.overridenResponseType,Qn.timeout,Qn.content)}function Dr(e,t){return new yo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Dn(e,t){return new yo(t.url,t.method,Xo(t.headers,Ee(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ff(e,t){return new yo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function Tr(e){return rw(t=>{const n=new XMLHttpRequest;n.open(gw(e.method),e.url),n.onreadystatechange=()=>{let l,u,c,f,d,p,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),c=n.status|0,f=n.responseType,d=(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=Am(N0(y=>{const w=x(uf(":",y));if(!U(w))return[D(w).toLocaleLowerCase(),rn(":",z(w)).trim()]},uf(`\r
24
- `,n.getAllResponseHeaders()),null),{Compare:Rn}),new lf(c,l,f,n.responseURL,h,d)))};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{oe(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 Tn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["AccessDenied","Serialization","Others"]}}class ww{constructor(t){this.accessToken=t}}function yw(e){return new ww(e)}function df(e,t){return v.Delay(()=>{let n,r,o;const i=Tr((n=Dr(new Zn(0,[]),kr(t)),r=Sr(`Bearer ${e.accessToken}`),Dn(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 Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))}})})}function pf(e,t,n){return v.Delay(()=>{let r,o,i,s,a;const l=Tr(ff(new Gs(1,[n]),(r=(o=Dr(new Zn(2,[]),kr(t)),i=Sr(`Bearer ${e.accessToken}`),Dn(i,o)),s=cf("application/json"),Dn(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 f=c.fields[0].statusCode|0;return f===200?v.Return(new g(0,[void 0])):f===403?v.Return(new g(1,[new Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))}})})}function hf(e,t){return v.Delay(()=>{let n,r,o,i,s;const a=Tr((n=(r=Dr(new Zn(4,[]),kr(t)),o=Sr(`Bearer ${e.accessToken}`),Dn(o,r)),i=cf("application/json"),Dn(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 Tn(0,[])])):v.Return(new g(1,[new Tn(2,[])]))}})})}class Ws extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Specific","Inherited","Default"]}}function bw(){return ul("Basic.Profile.Domain.Config.Api.Admin.Read.OwnershipDto",[],Ws,()=>[[],[],[]])}class Zs extends te{constructor(t,n){super(),this.AdminUserManagementEnabled=t,this.Ownership=n}}function mf(){return nn("Basic.Profile.Domain.Config.Api.Admin.Read.ConfigDto",[],Zs,()=>[["AdminUserManagementEnabled",fl],["Ownership",bw()]])}function vw(){return new Zs(!1,new Ws(2,[]))}function _w(e){return e}const gf=He();function mi(e){return Array.from(e)}function Aw(e){return Go(e,"O")}function xw(e){return Nh(e)}function Cw(){return He()}function Ew(e){return Go(e,"O")}function wf(e,t){return JSON.stringify(t,ee(2,void 0),ue(e))}function Sw(e){return t=>D0(T0(e,t),()=>gf)}function yf(e,t,n,r){let o,i;const s=new Ye(He());let a;const l=ne(r);a=l===""?e:mc(l,s,e);let u;if(bl(r)){const c=on(f=>{const d=Ol(t,ur(f)),p=fn(a,t,n,f[1]);return h=>y=>{const w=o0(h,f);return(!n||n&&w!=null)&&(y[d]=p(w)),y}},Qr(r),null);u=f=>ei((d,p)=>p(f)(d),{},c)}else if(yl(r))u=c=>{const f=r0(c,r),d=f[0],p=f[1],h=p.length|0;if(h===0)return ur(d);{const y=h|0,w=vl(d),b=Zo(new Array(y+1),0,y+1,null);b[0]=ur(d);for(let _=1;_<=y;_++){const k=fn(a,t,n,w[_-1][1]);b[_]=k(p[_-1])}return b}};else throw new Error((o=ne(r),i=_n(Ut(`Cannot generate auto encoder for %s. Please pass an extra encoder.
25
-
26
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`)),i(o)));return s.contents=u,u}function fn(e,t,n,r){const o=ne(r),i=gc(o,e);if(i==null)if(dl(r)){const s=fn(e,t,n,Zr(r));return a=>mi(Re(s,a))}else if(Xi(r)){const s=ne(ml(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=ne(r);return Sl(Ut(`Cannot generate auto encoder for %s.
27
- Thoth.Json.Net only support the following enum types:
28
- - sbyte
29
- - byte
30
- - int16
31
- - uint16
32
- - int
33
- - uint32
34
-
35
- If you can't use one of these types, please pass an extra encoder.
36
-
37
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
38
- `))(a)}}else if(pl(r))if(Ji(r)){const s=on(a=>fn(e,t,n,a),wl(r),null);return a=>mi(qh((l,u)=>s[l](u),a))}else{const s=ne(hl(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Kd(()=>Sw(fn(e,t,n,st(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]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=fn(e,t,n,st(r)[0]);return l=>mi(Re(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=st(r)[0],l=fn(e,t,n,st(r)[1]);if(ne(a)==="System.String"||ne(a)==="System.Guid")return u=>ei((c,f)=>{const d=f;return c[d[0]]=l(d[1]),c},{},u);{let u;return u=fn(e,t,n,a),f=>mi(Re(d=>{const p=d;return[u(p[0]),l(p[1])]},f))}}else return yf(e,t,n,r)}else return o==="System.Boolean"?s=>s:o==="Microsoft.FSharp.Core.Unit"?Cw:o==="System.String"?s=>s:o==="System.Char"?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"?Ew:o==="System.DateTimeOffset"?Aw:o==="System.TimeSpan"?xw:o==="System.Guid"?_w:o==="System.Object"?s=>s:yf(e,t,n,r);else{const s=i;return a=>s.contents(a)}}function kw(e){return e!=null?wc((t,n)=>new Ye(n[0]),e.Coders):bs({Compare:Rn})}function bf(e,t,n,r){const o=Wo(t,new Ft(0,[])),i=Wo(r,!0);return fn(kw(n),o,i,e)}class Dw extends te{constructor(t){super(),this.AdminUserManagementEnabled=t}}new Dw(!1);class vf extends te{constructor(t){super(),this.AdminUserManagementEnabled=t}}function _f(){return nn("Basic.Profile.Domain.Config.Api.Admin.Write.ConfigPutDto",[],vf,()=>[["AdminUserManagementEnabled",fl]])}class Tw{constructor(t,n){this.backendUrl=t,this.httpClient=yw(n)}}function Fw(e,t){return new Tw(e,t)}function Iw(e,t){let n;const r=df(e.httpClient,Qs(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(ee(2,Un(mf(),new Ft(1,[]),void 0)),i.fields[0]);return s=a.tag===1?new g(1,[new Tn(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 Mw(e,t,n){return v.Delay(()=>{const r=wf(0,bf(_f(),new Ft(1,[]),void 0,void 0)(n)),o=pf(e.httpClient,Qs(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 Rw(e,t){const n=hf(e.httpClient,Qs(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 Nw(e,t,n){let r;const o=df(e.httpClient,Ks(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(ee(2,Un(mf(),new Ft(1,[]),void 0)),s.fields[0]);return a=l.tag===1?new g(1,[new Tn(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 Ow(e,t,n,r){return v.Delay(()=>{const o=wf(0,bf(_f(),new Ft(1,[]),void 0,void 0)(r)),i=pf(e.httpClient,Ks(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 Pw(e,t,n){const r=hf(e.httpClient,Ks(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 Bw(e,t,n){return n==null?Iw(e,t):Nw(e,t,n)}function $w(e,t,n,r){return n==null?Mw(e,t,r):Ow(e,t,n,r)}function jw(e,t,n){return n==null?Rw(e,t):Pw(e,t,n)}function Qs(e,t){return`${e.backendUrl}/profiles/admin/partners/${t}/config`}function Ks(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 Xs extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["View","Edit"]}}function gi(e){return e.tag!==0}class Hw extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reset"]}}class Kt extends te{constructor(t,n,r,o){super(),this.Mode=t,this.CurrentConfirmationDialog=n,this.Config=r,this.Error=o}}function Js(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 vw()}}class Se extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetMode","Init","FetchConfig","SetAdminUserManagementEnabled","UpdateConfig","DeleteConfig","ShowResetConfirmationDialog","HideConfirmationDialog","CancelEdit"]}}function Lw(){return new Se(2,[new We(0,[void 0])])}function Vw(){return new Se(4,[new We(0,[void 0])])}function Uw(){return new Se(5,[new We(0,[void 0])])}const zw=[new Kt(new Xs(0,[]),void 0,new Qt(0,[]),void 0),Ot(new Se(1,[]))];function Gw(e,t,n,r,o){if(r.tag===0)return[new Kt(r.fields[0],o.CurrentConfirmationDialog,o.Config,o.Error),tt()];if(r.tag===2)return r.fields[0].tag===1?[new Kt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[r.fields[0].fields[0]]),o.Error),tt()]:[new Kt(o.Mode,o.CurrentConfirmationDialog,new Qt(1,[]),o.Error),go(i=>{Cr(i)},()=>Bw(n,e,t),void 0,i=>new Se(2,[new We(1,[i])]))];if(r.tag===3)return[new Kt(o.Mode,o.CurrentConfirmationDialog,new Qt(2,[new g(0,[new Zs(r.fields[0],Js(o).Ownership)])]),o.Error),tt()];if(r.tag===4){if(r.fields[0].tag===1)return r.fields[0].fields[0].tag===1?[new Kt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),tt()]:[o,Ot(new Se(1,[]))];{const i=new vf(Js(o).AdminUserManagementEnabled);return[o,go(s=>{Cr(s)},()=>$w(n,e,t,i),void 0,s=>new Se(4,[new We(1,[s])]))]}}else return r.tag===5?r.fields[0].tag===1?r.fields[0].fields[0].tag===1?[new Kt(o.Mode,o.CurrentConfirmationDialog,o.Config,r.fields[0].fields[0].fields[0]),tt()]:[o,Ot(new Se(1,[]))]:[o,mo([Ot(new Se(7,[])),go(i=>{Cr(i)},()=>jw(n,e,t),void 0,i=>new Se(5,[new We(1,[i])]))])]:r.tag===6?[new Kt(o.Mode,new Hw(0,[]),o.Config,o.Error),tt()]:r.tag===7?[new Kt(o.Mode,void 0,o.Config,o.Error),tt()]:r.tag===8?[o,Ot(new Se(1,[]))]:[new Kt(o.Mode,void 0,o.Config,void 0),mo([Ot(new Se(0,[new Xs(0,[])])),Ot(Lw())])]}const Ww=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"})),Qw=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,j(t))}function Kw(e){return Ys(Ww,e)}const Xw=Kw([["className","h-6 w-6 text-red-500"]]),Jw=Ys(Zw,[]),Yw=Ys(Qw,[]);var qw=Object.defineProperty,e1=(e,t,n)=>t in e?qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qs=(e,t,n)=>(e1(e,typeof t!="symbol"?t+"":t,n),n);class t1{constructor(){qs(this,"current",this.detect()),qs(this,"handoffState","pending"),qs(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 dn=new t1,nt=(e,t)=>{dn.isServer?W(e,t):Ar(e,t)};function pn(e){let t=L(e);return nt(()=>{t.current=e},[e]),t}function wi(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 wi(()=>{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 yi(){let[e]=Ae(Ir);return W(()=>()=>e.dispose(),[e]),e}let Z=function(e){let t=pn(e);return F.useCallback((...n)=>t.current(...n),[t])};function Mr(){let[e,t]=Ae(dn.isHandoffComplete);return e&&dn.isHandoffComplete===!1&&t(!1),W(()=>{e!==!0&&t(!0)},[e]),W(()=>dn.handoff(),[]),e}var Af;let Fn=(Af=F.useId)!=null?Af:function(){let e=Mr(),[t,n]=F.useState(e?()=>dn.nextId():null);return nt(()=>{t===null&&n(dn.nextId())},[t]),t!=null?""+t:void 0};function Be(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,Be),r}function xf(e){return dn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ea=["[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||{}),n1=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(n1||{});function r1(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ea)).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 o1(e,t=0){var n;return e===((n=xf(e))==null?void 0:n.body)?!1:Be(t,{[0](){return e.matches(ea)},[1](){let r=e;for(;r!==null;){if(r.matches(ea))return!0;r=r.parentElement}return!1}})}var i1=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(i1||{});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 s1=["textarea","input"].join(",");function a1(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,s1))!=null?n:!1}function l1(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 bi(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?l1(e):e:r1(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,f=s.length,d;do{if(c>=f||c+f<=0)return 0;let p=l+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=s[p],d==null||d.focus(u),c+=a}while(d!==i.activeElement);return t&6&&a1(d)&&d.select(),2}function Sf(e,t,n){let r=pn(t);W(()=>{function o(i){r.current(i)}return document.addEventListener(e,o,n),()=>document.removeEventListener(e,o,n)},[e,n])}function kf(e,t,n){let r=pn(t);W(()=>{function o(i){r.current(i)}return window.addEventListener(e,o,n),()=>window.removeEventListener(e,o,n)},[e,n])}function c1(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(f){return typeof f=="function"?c(f()):Array.isArray(f)||f instanceof Set?f:[f]}(e);for(let c of u){if(c===null)continue;let f=c instanceof HTMLElement?c:c.current;if(f!=null&&f.contains(l)||s.composed&&s.composedPath().includes(f))return}return!o1(l,Ef.Loose)&&l.tabIndex!==-1&&s.preventDefault(),t(s,l)}let i=L(null);Sf("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),Sf("click",s=>{i.current&&(o(s,()=>i.current),i.current=null)},!0),kf("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 u1(e,t){let[n,r]=Ae(()=>Df(e));return nt(()=>{r(Df(e))},[e.type,e.as]),nt(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let Tf=Symbol();function f1(e,t=!0){return Object.assign(e,{[Tf]: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[Tf]))?void 0:n}function ta(...e){return e.filter(Boolean).join(" ")}var vi=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(vi||{}),hn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(hn||{});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 _i(a,n,r,s);let l=o!=null?o:0;if(l&2){let{static:u=!1,...c}=a;if(u)return _i(c,n,r,s)}if(l&1){let{unmount:u=!0,...c}=a;return Be(u?0:1,{[0](){return null},[1](){return _i({...c,hidden:!0,style:{display:"none"}},n,r,s)}})}return _i(a,n,r,s)}function _i(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=ra(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 f=!1,d=[];for(let[p,h]of Object.entries(t))typeof h=="boolean"&&(f=!0),h===!0&&d.push(p);f&&(c["data-headlessui-state"]=d.join(" "))}if(o===de&&Object.keys(na(a)).length>0){if(!di(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(`
39
- `),"","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(`
40
- `)].join(`
41
- `));let f=u.props,d=typeof(f==null?void 0:f.className)=="function"?(...h)=>ta(f==null?void 0:f.className(...h),a.className):ta(f==null?void 0:f.className,a.className),p=d?{className:d}:{};return $s(u,Object.assign({},Ff(u.props,na(ra(a,["ref"]))),c,l,d1(u.ref,l.ref),p))}return m(o,Object.assign({},ra(a,["ref"]),o!==de&&l,o!==de&&c),u)}function d1(...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(fi(e),{displayName:(t=e.displayName)!=null?t:e.name})}function na(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function ra(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&&p1(n)?!1:r}function p1(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function h1(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 m1="div";var bo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bo||{});function g1(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:m1,name:"Hidden"})}let Ai=Qe(g1),oa=ft(null);oa.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 ia(){return Pe(oa)}function w1({value:e,children:t}){return F.createElement(oa.Provider,{value:e},t)}var xi=(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))(xi||{});function y1(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 sa(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 b1(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}var vo=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(vo||{});function v1(){let e=L(0);return kf("keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function _o(){let e=L(!1);return nt(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ao(...e){return Q(()=>xf(...e),[...e])}function Mf(e,t,n,r){let o=pn(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 _1(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,wi(()=>{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 A1="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 x1(e,t){let n=L(null),r=dt(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;Mr()||(s=1);let l=Ao(n);S1({ownerDocument:l},Boolean(s&16));let u=k1({ownerDocument:l,container:n,initialFocus:o},Boolean(s&2));D1({ownerDocument:l,container:n,containers:i,previousActiveElement:u},Boolean(s&8));let c=v1(),f=Z(y=>{let w=n.current;!w||(b=>b())(()=>{Be(c.current,{[vo.Forwards]:()=>{bi(w,Kn.First,{skipElements:[y.relatedTarget]})},[vo.Backwards]:()=>{bi(w,Kn.Last,{skipElements:[y.relatedTarget]})}})})}),d=yi(),p=L(!1),h={ref:r,onKeyDown(y){y.key=="Tab"&&(p.current=!0,d.requestAnimationFrame(()=>{p.current=!1}))},onBlur(y){let w=Nf(i);n.current instanceof HTMLElement&&w.add(n.current);let b=y.relatedTarget;b instanceof HTMLElement&&b.dataset.headlessuiFocusGuard!=="true"&&(Pf(w,b)||(p.current?bi(n.current,Be(c.current,{[vo.Forwards]:()=>Kn.Next,[vo.Backwards]:()=>Kn.Previous})|Kn.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&Xn(y.target)))}};return F.createElement(F.Fragment,null,Boolean(s&4)&&F.createElement(Ai,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:bo.Focusable}),Ze({ourProps:h,theirProps:a,defaultTag:A1,name:"FocusTrap"}),Boolean(s&4)&&F.createElement(Ai,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:f,features:bo.Focusable}))}let C1=Qe(x1),xo=Object.assign(C1,{features:Of}),In=[];_1(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&In[0]!==t.target&&(In.unshift(t.target),In=In.filter(n=>n!=null&&n.isConnected),In.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 E1(e=!0){let t=L(In.slice());return sa(([n],[r])=>{r===!0&&n===!1&&wi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=In.slice())},[e,In,t]),Z(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function S1({ownerDocument:e},t){let n=E1(t);sa(()=>{t||(e==null?void 0:e.activeElement)===(e==null?void 0:e.body)&&Xn(n())},[t]),Rf(()=>{t&&Xn(n())})}function k1({ownerDocument:e,container:t,initialFocus:n},r){let o=L(null),i=_o();return sa(()=>{if(!r)return;let s=t.current;s&&wi(()=>{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):bi(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 D1({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=_o();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=ft(!1);function T1(){return Pe(Bf)}function aa(e){return F.createElement(Bf.Provider,{value:e.force},e.children)}function F1(e){let t=T1(),n=Pe($f),r=Ao(e),[o,i]=Ae(()=>{if(!t&&n!==null||dn.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 I1=de;function M1(e,t){let n=e,r=L(null),o=dt(f1(c=>{r.current=c}),t),i=Ao(r),s=F1(r),[a]=Ae(()=>{var c;return dn.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Pe(la),u=Mr();return nt(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),nt(()=>{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:Ps(Ze({ourProps:{ref:o},theirProps:n,defaultTag:I1,name:"Portal"}),a):null}let R1=de,$f=ft(null);function N1(e,t){let{target:n,...r}=e,o={ref:dt(t)};return F.createElement($f.Provider,{value:n},Ze({ourProps:o,theirProps:r,defaultTag:R1,name:"Popover.Group"}))}let la=ft(null);function O1(){let e=Pe(la),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(la.Provider,{value:o},i)},[o])]}let P1=Qe(M1),B1=Qe(N1),ca=Object.assign(P1,{Group:B1}),jf=ft(null);function Hf(){let e=Pe(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 F.createElement(jf.Provider,{value:o},n.children)},[t])]}let $1="p";function j1(e,t){let n=Fn(),{id:r=`headlessui-description-${n}`,...o}=e,i=Hf(),s=dt(t);nt(()=>i.register(r),[r,i.register]);let a={ref:s,...i.props,id:r};return Ze({ourProps:a,theirProps:o,slot:i.slot||{},defaultTag:$1,name:i.name||"Description"})}let H1=Qe(j1),Vf=Object.assign(H1,{}),ua=ft(()=>{});ua.displayName="StackContext";var fa=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(fa||{});function L1(){return Pe(ua)}function V1({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=L1(),s=Z((...a)=>{t==null||t(...a),i(...a)});return nt(()=>{let a=o===void 0||o===!0;return a&&s(0,n,r),()=>{a&&s(1,n,r)}},[s,n,r,o]),F.createElement(ua.Provider,{value:s},e)}function U1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const z1=typeof Object.is=="function"?Object.is:U1,{useState:G1,useEffect:W1,useLayoutEffect:Z1,useDebugValue:Q1}=Hs;function K1(e,t,n){const r=t(),[{inst:o},i]=G1({inst:{value:r,getSnapshot:t}});return Z1(()=>{o.value=r,o.getSnapshot=t,da(o)&&i({inst:o})},[e,r,t]),W1(()=>(da(o)&&i({inst:o}),e(()=>{da(o)&&i({inst:o})})),[e]),Q1(r),r}function da(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!z1(n,r)}catch{return!0}}function X1(e,t,n){return t()}const J1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Y1=!J1,q1=Y1?X1:K1,ey="useSyncExternalStore"in Hs?(e=>e.useSyncExternalStore)(Hs):q1;function ty(e){return ey(e.subscribe,e.getSnapshot,e.getSnapshot)}function ny(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 ry(){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 oy(){if(!b1())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 iy(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function sy(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Jn=ny(()=>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:sy(n)},o=[oy(),ry(),iy()];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)}});Jn.subscribe(()=>{let e=Jn.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)&&Jn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Jn.dispatch("TEARDOWN",n)}});function ay(e,t,n){let r=ty(Jn),o=e?r.get(e):void 0,i=o?o.count>0:!1;return nt(()=>{if(!(!e||!t))return Jn.dispatch("PUSH",e,n),()=>Jn.dispatch("POP",e,n)},[t,e]),i}let pa=new Map,Co=new Map;function Uf(e,t=!0){nt(()=>{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=Co.get(r))!=null?s:1;if(a===1?Co.delete(r):Co.set(r,a-1),a!==1)return;let l=pa.get(r);l&&(l["aria-hidden"]===null?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",l["aria-hidden"]),r.inert=l.inert,pa.delete(r))}let i=(n=Co.get(r))!=null?n:0;return Co.set(r,i+1),i!==0||(pa.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),o},[e,t])}function ly({defaultContainers:e=[],portals:t}={}){let n=L(null),r=Ao(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(Ai,{features:bo.Hidden,ref:n})},[n])}}var cy=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(cy||{}),uy=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(uy||{});let fy={[0](e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Ci=ft(null);Ci.displayName="DialogContext";function Eo(e){let t=Pe(Ci);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Eo),n}return t}function dy(e,t,n=()=>[document.body]){ay(e,t,r=>{var o;return{containers:[...(o=r.containers)!=null?o:[],n]}})}function py(e,t){return Be(t.type,fy,e,t)}let hy="div",my=vi.RenderStrategy|vi.Static;function gy(e,t){var n;let r=Fn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...u}=e,[c,f]=Ae(0),d=ia();i===void 0&&d!==null&&(i=(d&pt.Open)===pt.Open);let p=L(null),h=dt(p,t),y=Ao(p),w=e.hasOwnProperty("open")||d!==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,[k,R]=fo(py,{titleId:null,descriptionId:null,panelRef:Es()}),$=Z(()=>s(!1)),P=Z(we=>R({type:0,id:we})),N=Mr()?l?!1:_===0:!1,M=c>1,ae=Pe(Ci)!==null,[De,Ke]=O1(),{resolveContainers:rt,mainTreeNodeRef:Te,MainTreeNode:ve}=ly({portals:De,defaultContainers:[(n=k.panelRef.current)!=null?n:p.current]}),ge=M?"parent":"leaf",Pr=d!==null?(d&pt.Closing)===pt.Closing:!1,Br=(()=>ae||Pr?!1:N)(),Jt=pe(()=>{var we,ot;return(ot=Array.from((we=y==null?void 0:y.querySelectorAll("body > *"))!=null?we:[]).find(Fe=>Fe.id==="headlessui-portal-root"?!1:Fe.contains(Te.current)&&Fe instanceof HTMLElement))!=null?ot:null},[Te]);Uf(Jt,Br);let _e=(()=>M?!0:N)(),Fo=pe(()=>{var we,ot;return(ot=Array.from((we=y==null?void 0:y.querySelectorAll("[data-headlessui-portal]"))!=null?we:[]).find(Fe=>Fe.contains(Te.current)&&Fe instanceof HTMLElement))!=null?ot:null},[Te]);Uf(Fo,_e);let ht=(()=>!(!N||M))();c1(rt,$,ht);let $r=(()=>!(M||_!==0))();Mf(y==null?void 0:y.defaultView,"keydown",we=>{$r&&(we.defaultPrevented||we.key===xi.Escape&&(we.preventDefault(),we.stopPropagation(),$()))});let Ni=(()=>!(Pr||_!==0||ae))();dy(y,Ni,rt),W(()=>{if(_!==0||!p.current)return;let we=new ResizeObserver(ot=>{for(let Fe of ot){let Bt=Fe.target.getBoundingClientRect();Bt.x===0&&Bt.y===0&&Bt.width===0&&Bt.height===0&&$()}});return we.observe(p.current),()=>we.disconnect()},[_,p,$]);let[Mn,Oi]=Lf(),mn=Q(()=>[{dialogState:_,close:$,setTitleId:P},k],[_,k,$,P]),Io=Q(()=>({open:_===0}),[_]),Pi={ref:h,id:o,role:"dialog","aria-modal":_===0?!0:void 0,"aria-labelledby":k.titleId,"aria-describedby":Mn};return F.createElement(V1,{type:"Dialog",enabled:_===0,element:p,onUpdate:Z((we,ot)=>{ot==="Dialog"&&Be(we,{[fa.Add]:()=>f(Fe=>Fe+1),[fa.Remove]:()=>f(Fe=>Fe-1)})})},F.createElement(aa,{force:!0},F.createElement(ca,null,F.createElement(Ci.Provider,{value:mn},F.createElement(ca.Group,{target:p},F.createElement(aa,{force:!1},F.createElement(Oi,{slot:Io,name:"Dialog.Description"},F.createElement(xo,{initialFocus:a,containers:rt,features:N?Be(ge,{parent:xo.features.RestoreFocus,leaf:xo.features.All&~xo.features.FocusLock}):xo.features.None},F.createElement(Ke,null,Ze({ourProps:Pi,theirProps:u,slot:Io,defaultTag:hy,features:my,visible:_===0,name:"Dialog"}))))))))),F.createElement(ve,null))}let wy="div";function yy(e,t){let n=Fn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Eo("Dialog.Overlay"),a=dt(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:wy,name:"Dialog.Overlay"})}let by="div";function vy(e,t){let n=Fn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Eo("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(aa,{force:!0},F.createElement(ca,null,Ze({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:by,name:"Dialog.Backdrop"})))}let _y="div";function Ay(e,t){let n=Fn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Eo("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:_y,name:"Dialog.Panel"})}let xy="h2";function Cy(e,t){let n=Fn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Eo("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:xy,name:"Dialog.Title"})}let Ey=Qe(gy),Sy=Qe(vy),ky=Qe(Ay),Dy=Qe(yy),Ty=Qe(Cy),ha=Object.assign(Ey,{Backdrop:Sy,Panel:ky,Overlay:Dy,Title:Ty,Description:Vf});function Fy(e=0){let[t,n]=Ae(e),r=_o(),o=pe(l=>{r.current&&n(u=>u|l)},[t,r]),i=pe(l=>Boolean(t&l),[t]),s=pe(l=>{r.current&&n(u=>u&~l)},[n,r]),a=pe(l=>{r.current&&n(u=>u^l)},[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}let zf=ft(null);function Gf(){let e=Pe(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 Iy(){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(zf.Provider,{value:o},n.children)},[t])]}let My="label";function Ry(e,t){let n=Fn(),{id:r=`headlessui-label-${n}`,passive:o=!1,...i}=e,s=Gf(),a=dt(t);nt(()=>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:My,name:s.name||"Label"})}let Ny=Qe(Ry),Oy=Object.assign(Ny,{}),ma=ft(null);ma.displayName="GroupContext";let Py=de;function By(e){var t;let[n,r]=Ae(null),[o,i]=Iy(),[s,a]=Lf(),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(f){n&&(f.currentTarget.tagName==="LABEL"&&f.preventDefault(),n.click(),n.focus({preventScroll:!0}))}}},F.createElement(ma.Provider,{value:l},Ze({ourProps:u,theirProps:c,defaultTag:Py,name:"Switch.Group"}))))}let $y="button";function jy(e,t){let n=Fn(),{id:r=`headlessui-switch-${n}`,checked:o,defaultChecked:i=!1,onChange:s,name:a,value:l,form:u,...c}=e,f=Pe(ma),d=L(null),p=dt(d,t,f===null?null:f.setSwitch),[h,y]=y1(o,s,i),w=Z(()=>y==null?void 0:y(!h)),b=Z(N=>{if(If(N.currentTarget))return N.preventDefault();N.preventDefault(),w()}),_=Z(N=>{N.key===xi.Space?(N.preventDefault(),w()):N.key===xi.Enter&&h1(N.currentTarget)}),k=Z(N=>N.preventDefault()),R=Q(()=>({checked:h}),[h]),$={id:r,ref:p,role:"switch",type:u1(e,d),tabIndex:0,"aria-checked":h,"aria-labelledby":f==null?void 0:f.labelledby,"aria-describedby":f==null?void 0:f.describedby,onClick:b,onKeyUp:_,onKeyPress:k},P=yi();return W(()=>{var N;let M=(N=d.current)==null?void 0:N.closest("form");M&&i!==void 0&&P.addEventListener(M,"reset",()=>{y(i)})},[d,y]),F.createElement(F.Fragment,null,a!=null&&h&&F.createElement(Ai,{features:bo.Hidden,...na({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:u,checked:h,name:a,value:l})}),Ze({ourProps:$,theirProps:c,slot:R,defaultTag:$y,name:"Switch"}))}let Hy=Qe(jy),Ly=By,ga=Object.assign(Hy,{Group:Ly,Label:Oy,Description:Vf});function Vy(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function wa(e,...t){e&&t.length>0&&e.classList.add(...t)}function ya(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Uy(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,f)=>f-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 zy(e,t,n,r){let o=n?"enter":"leave",i=Ir(),s=r!==void 0?Vy(r):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let a=Be(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Be(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),u=Be(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ya(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),wa(e,...a,...u),i.nextFrame(()=>{ya(e,...u),wa(e,...l),Uy(e,()=>(ya(e,...a),wa(e,...t.entered),s()))}),i.dispose}function Gy({container:e,direction:t,classes:n,onStart:r,onStop:o}){let i=_o(),s=yi(),a=pn(t);nt(()=>{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(zy(u,n.current,a.current==="enter",()=>{l.dispose(),o.current(a.current)})),l.dispose},[t])}function Yn(e=""){return e.split(" ").filter(t=>t.trim().length>1)}let Ei=ft(null);Ei.displayName="TransitionContext";var Wy=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Wy||{});function Zy(){let e=Pe(Ei);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Qy(){let e=Pe(Si);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Si=ft(null);Si.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=pn(e),r=L([]),o=_o(),i=yi(),s=Z((p,h=hn.Hidden)=>{let y=r.current.findIndex(({el:w})=>w===p);y!==-1&&(Be(h,{[hn.Unmount](){r.current.splice(y,1)},[hn.Hidden](){r.current[y].state="hidden"}}),i.microTask(()=>{var w;!ki(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,hn.Unmount)}),l=L([]),u=L(Promise.resolve()),c=L({enter:[],leave:[],idle:[]}),f=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)}),d=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:f,onStop:d,wait:u,chains:c}),[a,s,r,f,d,c,u])}function Ky(){}let Xy=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Zf(e){var t;let n={};for(let r of Xy)n[r]=(t=e[r])!=null?t:Ky;return n}function Jy(e){let t=L(Zf(e));return W(()=>{t.current=Zf(e)},[e]),t}let Yy="div",Qf=vi.RenderStrategy;function qy(e,t){let{beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i,enter:s,enterFrom:a,enterTo:l,entered:u,leave:c,leaveFrom:f,leaveTo:d,...p}=e,h=L(null),y=dt(h,t),w=p.unmount?hn.Unmount:hn.Hidden,{show:b,appear:_,initial:k}=Zy(),[R,$]=Ae(b?"visible":"hidden"),P=Qy(),{register:N,unregister:M}=P,ae=L(null);W(()=>N(h),[N,h]),W(()=>{if(w===hn.Hidden&&h.current){if(b&&R!=="visible"){$("visible");return}return Be(R,{hidden:()=>M(h),visible:()=>N(h)})}},[R,h,N,M,b,w]);let De=pn({enter:Yn(s),enterFrom:Yn(a),enterTo:Yn(l),entered:Yn(u),leave:Yn(c),leaveFrom:Yn(f),leaveTo:Yn(d)}),Ke=Jy({beforeEnter:n,afterEnter:r,beforeLeave:o,afterLeave:i}),rt=Mr();W(()=>{if(rt&&R==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,R,rt]);let Te=k&&!_,ve=(()=>!rt||Te||ae.current===b?"idle":b?"enter":"leave")(),ge=Fy(0),Pr=Z(ht=>Be(ht,{enter:()=>{ge.addFlag(pt.Opening),Ke.current.beforeEnter()},leave:()=>{ge.addFlag(pt.Closing),Ke.current.beforeLeave()},idle:()=>{}})),Br=Z(ht=>Be(ht,{enter:()=>{ge.removeFlag(pt.Opening),Ke.current.afterEnter()},leave:()=>{ge.removeFlag(pt.Closing),Ke.current.afterLeave()},idle:()=>{}})),Jt=Wf(()=>{$("hidden"),M(h)},P);Gy({container:h,classes:De,direction:ve,onStart:pn(ht=>{Jt.onStart(h,ht,Pr)}),onStop:pn(ht=>{Jt.onStop(h,ht,Br),ht==="leave"&&!ki(Jt)&&($("hidden"),M(h))})}),W(()=>{Te&&(w===hn.Hidden?ae.current=null:ae.current=b)},[b,Te,R]);let _e=p,Fo={ref:y};return _&&b&&k&&(_e={..._e,className:ta(p.className,...De.current.enter,...De.current.enterFrom)}),F.createElement(Si.Provider,{value:Jt},F.createElement(w1,{value:Be(R,{visible:pt.Open,hidden:pt.Closed})|ge.flags},Ze({ourProps:Fo,theirProps:_e,defaultTag:Yy,features:Qf,visible:R==="visible",name:"Transition.Child"})))}function eb(e,t){let{show:n,appear:r=!1,unmount:o,...i}=e,s=L(null),a=dt(s,t);Mr();let l=ia();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"),f=Wf(()=>{c("hidden")}),[d,p]=Ae(!0),h=L([n]);nt(()=>{d!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),p(!1))},[h,n]);let y=Q(()=>({show:n,appear:r,initial:d}),[n,r,d]);W(()=>{if(n)c("visible");else if(!ki(f))c("hidden");else{let k=s.current;if(!k)return;let R=k.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&c("hidden")}},[n,f]);let w={unmount:o},b=Z(()=>{var k;d&&p(!1),(k=e.beforeEnter)==null||k.call(e)}),_=Z(()=>{var k;d&&p(!1),(k=e.beforeLeave)==null||k.call(e)});return F.createElement(Si.Provider,{value:f},F.createElement(Ei.Provider,{value:y},Ze({ourProps:{...w,as:de,children:F.createElement(Kf,{ref:a,...w,...i,beforeEnter:b,beforeLeave:_})},theirProps:{},defaultTag:de,features:Qf,visible:u==="visible",name:"Transition"})))}function tb(e,t){let n=Pe(Ei)!==null,r=ia()!==null;return F.createElement(F.Fragment,null,!n&&r?F.createElement(ba,{ref:t,...e}):F.createElement(Kf,{ref:t,...e}))}let ba=Qe(eb),Kf=Qe(qy),nb=Qe(tb),Xf=Object.assign(ba,{Child:nb,Root:ba});class Di extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Checked","OnChange","ClassName","Children"]}}function rb(e){const t=Cn(e,1);return m(ga,t)}class Jf extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function ob(e){const t=Cn(e,1);return m(ga.Label,t)}class ib extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Children"]}}function sb(e){const t=Cn(e,1);return m(ga.Group,t)}class va extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","As","Show","Children"]}}function ab(e){const t=Cn(e,1);return m(Xf.Root,t)}class $e extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Appear","Show","ClassName","Enter","EnterFrom","EnterTo","Leave","LeaveFrom","LeaveTo","Children"]}}function Yf(e){const t=Cn(e,1);return m(Xf.Child,t)}class So extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function lb(e){const t=Cn(e,1);return m(ha,t)}class _a extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function cb(e){const t=Cn(e,1);return m(ha.Panel,t)}class Ti extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function ub(e){const t=Cn(e,1);return m(ha.Title,t)}class fb extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Primary","Warning"]}}class db extends te{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 pb(e){let t,n,r,o;return ab(x([new va(0,["1"]),new va(2,[e.show]),new va(3,[[lb(x([new So(1,["1"]),new So(0,["div"]),new So(2,["relative z-10"]),new So(4,[e.cancelButtonClick]),new So(5,[[Yf(x([new $e(0,["1"]),new $e(3,["fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"]),new $e(4,["ease-out duration-300"]),new $e(5,["opacity-0"]),new $e(6,["opacity-100"]),new $e(7,["ease-in duration-200"]),new $e(8,["opacity-100"]),new $e(9,["opacity-0"])])),m("div",j(x([["className","fixed inset-0 z-10 overflow-y-auto"],["key","2"],(t=[m("div",j(x([["key","1"],["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(n=[Yf(x([new $e(0,["1"]),new $e(4,["ease-out duration-300"]),new $e(5,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new $e(6,["opacity-100 translate-y-0 sm:scale-100"]),new $e(7,["ease-in duration-200"]),new $e(8,["opacity-100 translate-y-0 sm:scale-100"]),new $e(9,["opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"]),new $e(10,[[cb(x([new _a(0,["1"]),new _a(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 _a(2,[[m("div",j(x([["key","1"],["className","sm:flex sm:items-start"],(r=xt(B(()=>{let i,s;return fe((i=e.dialogIcon,i==null?ms():(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])})))),B(()=>{let a,l;return O(m("div",j(x([["key","2"],["className","mt-3 text-center sm:mt-0 sm:text-left"],(a=[ub(x([new Ti(1,["1"]),new Ti(0,["h3"]),new Ti(2,["text-lg font-medium leading-6 text-gray-900"]),new Ti(3,[[m("span",{children:e.title,key:"1"})]])])),m("div",j(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",j(x([["key","2"],["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(o=xt(B(()=>fe(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})),B(()=>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 hb(e,t,n,r){const o=jt(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=jt(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function mb(e,t,n,r,o){const i=hb(t,n,r,o);return B(()=>Kh(i,e))}function gb(e,t,n){return mb(e,t,n,0,(r,o)=>r+o)}class Rr extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class wb{constructor(t){this.state=new Rr(0,[Zo(new Array(Ui(Rn,t,10)),0,Ui(Rn,t,10),null),0])}}function yb(e){return new wb(e)}function bb(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 vb(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,[_b(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 _b(e,t,n){return Array.from(B(()=>fe(tm(t,n),B(()=>fe(nm(t,n),B(()=>nc(r=>O(He()),gb(0,1,n.length))))))))}class qf extends te{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=>tt(),n,ee(2,r=>{const o=nr(1,n,[r]);return i=>{o(i)}}),r=>{dw(r[0],r[1])},ee(2,r=>r))}function Ab(e,t){return new qf(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function xb(e,t){const n=t.init(e),r=n[0],o=yb(10);let i=!1,s=r;const a=u=>{let c;if(i)vb(o,u);else{i=!0;let f=ue(u);for(;f!=null;){const d=re(f);try{const p=t.update(d,s),h=p[0];t.setState(h,l),of(l,p[1]),s=h}catch(p){t.onError([(c=_n(Ut("Unable to process the message: %A")),c(d)),p])}f=bb(o)}i=!1}},l=nr(1,t.syncDispatch,[a]);t.setState(r,l),of(l,Xo((()=>{try{return t.subscribe(r)}catch(u){return t.onError(["Unable to subscribe:",u]),tt()}})(),n[1]))}class Cb{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Eb(){return new Cb}function Sb(e){return e.state}function kb(e){return e.hasDisposedOnce}function Db(e,t,n){e.state=ue(t),e.dispatcher=n;const r=e.listener;r!=null&&r(t)}function Tb(e,t){const n=e.dispatcher;n!=null&&n(t)}function Fb(e,t){e.listener==null&&(e.listener=t)}function Ib(e){const t=e.state;if(t!=null){const n=re(t);Va(n)&&oe(n)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}function td(e,t,n,r){xb(t,Ab((i,s)=>{Db(n,i,s)},e()));const o=Sb(n);if(o!=null)return re(o);throw new Error("Elmish program has not initialized")}function Mb(e,t,n){const r=Yu(Eb)[0],o=Yu(()=>td(e,t,r)),i=o[1];return qu(()=>(kb(r)&&i(td(e,t,r)),Ls(()=>{Ib(r)})),Wo(n,[])),Fb(r,i),[o[0],s=>{Tb(r,s)}]}function nd(e,t){return Mb(e,void 0,t)}function Rb(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 Nb extends te{constructor(t,n,r,o){super(),this.PartnerId=t,this.AccountId=n,this.ConfigService=r,this.EditAllowed=o}}function Ob(e){switch(e.Ownership.tag){case 2:return"(Default)";case 0:return"";default:return"(Inherited)"}}function Pb(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 He()}}function Bb(e,t){return m("h3",{className:"basis-1/4 text-lg font-semibold text-gray-900",children:t?"Admin Settings (*)":`Admin Settings ${Ob(e)}`})}function $b(e,t,n){let r;const o=e.EditAllowed&&!gi(t.Mode),i=o?"":"hidden",s=gi(t.Mode)?"":"hidden",a=o&&Je(Js(t).Ownership,new Ws(0,[]))?"":"hidden";return m("div",j(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(Vw())},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 Se(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 Se(0,[new Xs(1,[])]))},type:"button",children:C.Children.toArray([Jw])}),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 Se(6,[]))},type:"button",children:C.Children.toArray([Yw])})],["children",C.Children.toArray(Array.from(r))])])))}function jb(e,t,n,r){return sb(Ee(new ib(0,[[rb(x([new Di(0,[e]),new Di(1,[o=>{n&&r(o)}]),new Di(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 Di(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`})]])])),ob(x([new Jf(0,["ml-3"]),new Jf(1,[[m("span",{className:"text-sm leading-5 font-medium text-gray-900",children:t})]])]))]])))}function Hb(e,t){return e.CurrentConfirmationDialog==null?He():pb(new db(!0,"Reset User Management Configuration","Are you sure you want to reset the current user management configuration? This action cannot be undone.",Xw,"Reset",()=>{t(Uw())},new fb(1,[]),"Cancel",()=>{t(new Se(7,[]))}))}function Lb(e){let t,n,r;const o=rd(zw,(u,c)=>Gw(e.PartnerId,e.AccountId,e.ConfigService,u,c)),i=o[0],s=o[1],a=e.EditAllowed&&gi(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",j(x([["className","flex flex-col mt-5 w-full "],(t=[m("div",j(x([["className","flex flex-row"],(n=[Bb(c,gi(i.Mode)),$b(e,i,s)],["children",C.Children.toArray(Array.from(n))])]))),m("div",j(x([["className","mt-5"],(r=[jb(c.AdminUserManagementEnabled,"User Management",a,f=>{s(new Se(3,[f]))})],["children",C.Children.toArray(Array.from(r))])]))),Pb(i),Hb(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 Vb=`*,: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}}
42
- `,Aa=(()=>Ve(Vb))();function od(e){let t,n;const r=e.setCurrentTab,o=e.currentTab,i=e.tabs;return m("div",j(x([["className","border-b border-gray-200"],(t=[m("nav",j(x([["className","-mb-px flex space-x-8"],(n=xt(B(()=>Re(s=>m("a",{key:sf(s),className:rn(" ",xt(B(()=>fe(Je(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"),B(()=>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 H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Success","ImportError"]}}class Ub{constructor(t,n,r){this.accessToken=r,this.baseUrl=`${t}/profiles/admin/accounts/${n}/imports`}}function zb(e,t,n){return new Ub(e,t,n)}function sd(e,t){return v.Delay(()=>{let n,r,o,i;const s=Tr((n=Dr(new Zn(0,[]),kr(`${e.baseUrl}/${t}`)),r=Sr((o=_n(Ut("Bearer %s")),o(e.accessToken))),Dn(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(ee(2,Un(Cg(),new Ft(1,[]),void 0)),u.responseText);return v.Return(c)}else return v.Return(new g(1,["Failed to fetch import"]))}})})}function Gb(e){return v.Delay(()=>{let t,n,r,o;const i=Tr((t=Dr(new Zn(0,[]),kr(e.baseUrl)),n=Sr((r=_n(Ut("Bearer %s")),r(e.accessToken))),Dn(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(ee(2,Un(Zc(),new Ft(1,[]),void 0)),l.responseText);return v.Return(u)}else return v.Return(new g(1,["Failed to fetch account imports"]))}})})}function Wb(e,t){return v.Delay(()=>{let n,r,o,i;const s=Tr((n=ff(new Gs(3,[t]),Dr(new Zn(1,[]),kr(e.baseUrl))),r=Sr((o=_n(Ut("Bearer %s")),o(e.accessToken))),Dn(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 f;const d=Vn(ee(2,Un(Zc(),new Ft(1,[]),void 0)),u.responseText);return f=v.Return(d),v.Bind(f,p=>{let h;const y=p;return h=y.tag===1?new g(1,[y.fields[0]]):new g(0,[new id(0,[y.fields[0]])]),v.Return(h)})}else if(c===400){let f;const d=Vn(ee(2,Un(Ag(),new Ft(1,[]),void 0)),u.responseText);return f=v.Return(d),v.Bind(f,p=>{let h;const y=p;return h=y.tag===1?new g(1,[y.fields[0]]):new g(0,[new id(1,[y.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",j(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=aw(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 He();case 1:return ko(a.message);case 2:return ko(l);case 3:return m("div",j(x([["className","text-center"],(t=xt(B(()=>fe(O(m("p",{children:[`Import ID: ${u.ImportId}`]})),B(()=>fe(O(m("p",{children:[`Creator: ${u.User}`]})),B(()=>fe(O(m("p",{children:[`Filename: ${u.Filename}`]})),B(()=>fe(O(m("p",{children:[`Date started: ${Ve(u.StartTime)}`]})),B(()=>{let c;return fe((c=u.StopTime,c==null?O(He()):O(m("p",{children:[`Date completed: ${Ve(c)}`]}))),B(()=>fe(O(m("p",{children:[`Total rows: ${u.TotalRecordCount}`]})),B(()=>fe(O(m("p",{children:[`Succeeded rows: ${u.SucceededRecordCount}`]})),B(()=>fe(O(m("p",{children:[`Failed rows: ${u.FailedRecordCount}`]})),B(()=>{let f;return fe(u.FailedRecordCount>0?O(m("div",j(x([["className","mt-8"],(f=xt(B(()=>fe(O(m("p",{children:["The following profiles could not be created"]})),B(()=>Re(d=>m("li",{children:[`Row ${d.RowId}: ${d.Reason}`]}),u.FailedRecords))))),["children",C.Children.toArray(Array.from(f))])])))):ms(),B(()=>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:d=>{n()}}))))}))))))))})))))))))),["children",C.Children.toArray(Array.from(t))])])))}}class xa extends H{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,f=ho(new xa(0,[])),d=f[0],p=f[1];return d.tag===0?m("div",j(x([["className","-mx-4 -my-2 overflow-x-auto sm:-mx-6 lg:-mx-8"],(t=[m("div",j(x([["className","inline-block min-w-full py-2 align-middle sm:px-6 lg:px-8"],(n=[m("div",j(x([["className","overflow-hidden shadow ring-1 ring-black ring-opacity-5 sm:rounded-lg"],(r=[m("table",j(x([["className","min-w-full divide-y divide-gray-300"],(o=[m("thead",j(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",j(x([["className","divide-y divide-gray-200 bg-white"],(a=xt(B(()=>Re(h=>{let y;return m("tr",j(x([["key",h.ImportId],["className","cursor-pointer hover:bg-gray-50"],["onClick",w=>{p(new xa(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",j(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=[m(ad,{importId:d.fields[0],fetchImport:u,onDone:()=>{p(new xa(0,[]))}})],["children",C.Children.toArray(Array.from(l))])])))}const Qb="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",Kb="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==",Xb="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEA8ADwAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAA0ADQDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/GbaMngDkk9q+Gf22/8Agsro/wAGdZvvC/w6tbPxNr1qDFPqcr7tPtJOQVXaQZWXvghc8ZPIpv8AwWV/bdvPg54Qt/hv4ZufI1rxRavJqtyjYks7M/KEUjo0vzAnsqn+9x+Udf0R4U+FOHzDDxznOY81OXwQ2TS+1Lra+y67vRo5K9Zp8sT1j4l/t0fFz4t6g1xrXj7xExydsVpcmzhTPYJDtUflXL6X+0J480S5E1r408VQSK2/K6rP19fvVx9Ff0tRyfAUafsaVCEY9lGKX3WOTme59ifszf8ABZr4lfCPUY7XxjL/AMJ5oRwpW62xX1uPVJlHzfSQNn1FfqF+zr+0t4R/aj+H8HiLwjqcd5bsAtzbt8txYyd45U6qw9ehHIJBBr+fmvW/2MP2s9c/ZB+Mtn4g0yaR9LuCtvq9iTmK9tiRkEf31+8rDkEY6Fgfyfj7why/M8PPFZTTVLEJXSjpGfk0tE30atrvfdbUsQ07S2P3porP8JeKrDxz4W07WtLuI7zTdVto7u1njOVljdQykfUGiv47nCUJOElZrRo9A/C//goH8U5/i/8AtkfEDVZmzFb6tNptsAeBDbN5CEfUR7vqxrxuu2/aU8OTeEP2iPHml3AkE2n+IL+Al/vNtuHAP4jBz3zTPgRp3gvW/H8Wn+O7zVNM0TUInt11CywzadO2BHM6EHfGp+8owcZxzX+imWexweU0fYxbhCnGyirtpRVrLq7dN2eTLWWpxla3gXwLq3xL8XWGg6FYXGpatqcwgtraFdzSMf5AdSTwBya7T4hfsoeMvAnxktPBcemyavf6w6nR57EeZb6xC/KTQuOGQjknPy4OcYNek+OfGuj/ALE3hC/8E+DLyz1b4japF5HiTxRbNuXSkI+ewsn9e0ko5JBA9scVnkJwhDLrVKlRXjr7qj/PJ9Ir72/dWuxy9zO+L114V/Zb+HOofDvQ107xJ481ZfJ8U69tWa304Agmxsye4IxJKOSRge3z7SsxdizElicknvSV35bl/wBVptSk5zk7yk92/TZJbKK0SVvMTdz9hP8AgkF8av7Y/Yq0mxv5Gkk0C/udOiJbkRgrKo/DzcfQCivOf+CPnw0vNV/ZRu7xPOEd34guXXBOMCKBOPxU0V/FnHWX4GPEOMSlb95J2827v8Wz0acnyI8T/wCC2f7PFz8Ov2j4/HFvb/8AEn8bQqXkRcLHdwoqOp7ZZQre/wAx9a+La/oQ/aC+Avh/9pX4V6l4R8TW5m0/UFykiY820lGdk0ZIOHUng+5ByCRX4ufth/sG+Nv2OfFDQ6vayap4fmYiy1y1hb7LcDsr9fKkx1Rj9Cw5r918IPEDC4/L6eTYuajXpLlin9uK2t5paNb6XXW3NiKTT5lsZ3w//ba8efDX4PXng3Tb+H7HMkkNneyxCS+0mGXHnRW0p+aJJNoyB7kYJJryRnLsWYlmY5JPekor9jwuX4bDTnUoU1Fzd5NK133f9btvds57t7hVrQ9FuvEms2mn2MElzeX0yQQRIMtI7EBVH1JFP8PeHNQ8Xazb6dpVjealqF04jhtrWFpZZWPQKqgkn6V+p3/BMv8A4JZSfAnUbbx98QobafxUqB9M00fOukZHMjno02DgAZCepPT5vjLjTAcO4J4jEyTqNPkh1k/0Xd7Jedk7p03N2R9O/sdfAdf2av2bvCvg9mSS7020D3sijiS5kJklI9gzED2UUV6ZRX8E47GVcXiKmKru85ycm+7bu/xPTSsrIKqa5oNj4n0mew1Kztr+xulKTQXEQkjkU9QVPBoornjJxfNHRjPmf4t/8Ee/gj8Ur03UOi6l4VuGyZG0O88lJP8AtnIska/8BUV594J/4Ig/CG4vZpbrVfHl5HbS7fJk1G3VJB6Epbq35EUUV++cL8QZpPJeeeJqNq9m5yvv6nLUjHm2PqH4JfsofDv9nSDb4N8J6XosrLse5VTLcyD/AGpZCzn869Door8LxmMr4qq62Jm5ye7k22/m7s6kktEFFFFcoH//2Q==";var K={exports:{}},Jb="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Yb=Jb,qb=Yb;function ld(){}function cd(){}cd.resetWarningCache=ld;var ev=function(){function e(r,o,i,s,a,l){if(l!==qb){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=ev();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(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}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 tv=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 Do(e,t){var n=nv(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 nv(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=tv.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var rv=[".DS_Store","Thumbs.db"];function ov(e){return Nr(this,void 0,void 0,function(){return Or(this,function(t){return Fi(e)&&iv(e.dataTransfer)?[2,cv(e.dataTransfer,e.type)]:sv(e)?[2,av(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,lv(e)]:[2,[]]})})}function iv(e){return Fi(e)}function sv(e){return Fi(e)&&Fi(e.target)}function Fi(e){return typeof e=="object"&&e!==null}function av(e){return Ca(e.target.files).map(function(t){return Do(t)})}function lv(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 Do(r)})]}})})}function cv(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=Ca(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(uv))]):[3,2];case 1:return r=o.sent(),[2,dd(pd(r))];case 2:return[2,dd(Ca(e.files).map(function(i){return Do(i)}))]}})})}function dd(e){return e.filter(function(t){return rv.indexOf(t.name)===-1})}function Ca(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function uv(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=Do(t);return Promise.resolve(n)}function fv(e){return Nr(this,void 0,void 0,function(){return Or(this,function(t){return[2,e.isDirectory?md(e):dv(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(f){switch(f.label){case 0:if(a.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(o)];case 2:return l=f.sent(),n(l),[3,4];case 3:return u=f.sent(),r(u),[3,4];case 4:return[3,6];case 5:c=Promise.all(a.map(fv)),o.push(c),i(),f.label=6;case 6:return[2]}})})},function(a){r(a)})}i()})}function dv(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=Do(o,e.fullPath);n(i)},function(o){r(o)})})]})})}var pv=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 gv(e)||mv(e)||vd(e)||hv()}function hv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gv(e){if(Array.isArray(e))return Ea(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 To(e,t){return bv(e)||yv(e,t)||vd(e,t)||wv()}function wv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44
- 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 Ea(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 Ea(e,t)}}function Ea(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 yv(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 bv(e){if(Array.isArray(e))return e}var vv="file-invalid-type",_v="file-too-large",Av="file-too-small",xv="too-many-files",Cv=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:vv,message:"File type must be ".concat(n)}},_d=function(t){return{code:_v,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ad=function(t){return{code:Av,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Ev={code:xv,message:"Too many files"};function xd(e,t){var n=e.type==="application/x-moz-file"||pv(e,t);return[n,n?null:Cv(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 Sv(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=To(u,1),f=c[0],d=Cd(l,r,o),p=To(d,1),h=p[0],y=a?a(l):null;return f&&h&&!y})}function Ii(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Mi(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 kv(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Dv(e){return e.indexOf("Edge/")!==-1}function Tv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return kv(e)||Dv(e)}function Xt(){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!Ii(r)&&a&&a.apply(void 0,[r].concat(i)),Ii(r)})}}function Fv(){return"showOpenFilePicker"in window}function Iv(e){if(qn(e)){var t=Object.entries(e).filter(function(n){var r=To(n,2),o=r[0],i=r[1],s=!0;return Sd(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(kd))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var o=To(r,2),i=o[0],s=o[1];return yd(yd({},n),{},bd({},i,s))},{});return[{description:"Files",accept:t}]}return e}function Mv(e){if(qn(e))return Object.entries(e).reduce(function(t,n){var r=To(n,2),o=r[0],i=r[1];return[].concat(gd(t),[o],gd(i))},[]).filter(function(t){return Sd(t)||kd(t)}).join(",")}function Rv(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function Nv(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Sd(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function kd(e){return/^.*\.[\w]+$/.test(e)}var Ov=["children"],Pv=["open"],Bv=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],$v=["refKey","onChange","onClick"];function jv(e){return Vv(e)||Lv(e)||Dd(e)||Hv()}function Hv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vv(e){if(Array.isArray(e))return ka(e)}function Sa(e,t){return Gv(e)||zv(e,t)||Dd(e,t)||Uv()}function Uv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
- 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 zv(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}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){Da(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 Da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e,t){if(e==null)return{};var n=Wv(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 Wv(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 Ta=fi(function(e,t){var n=e.children,r=Ri(e,Ov),o=Id(r),i=o.open,s=Ri(o,Pv);return Is(t,function(){return{open:i}},[i]),F.createElement(de,null,n(ce(ce({},s),{},{open:i})))});Ta.displayName="Dropzone";var Fd={disabled:!1,getFilesFromEvent:ov,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};Ta.defaultProps=Fd,Ta.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 Fa={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,f=t.onDragOver,d=t.onDrop,p=t.onDropAccepted,h=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,_=t.autoFocus,k=t.preventDropOnDocument,R=t.noClick,$=t.noKeyboard,P=t.noDrag,N=t.noDragEventsBubbling,M=t.onError,ae=t.validator,De=Q(function(){return Mv(n)},[n]),Ke=Q(function(){return Iv(n)},[n]),rt=Q(function(){return typeof w=="function"?w:Md},[w]),Te=Q(function(){return typeof y=="function"?y:Md},[y]),ve=L(null),ge=L(null),Pr=fo(Zv,Fa),Br=Sa(Pr,2),Jt=Br[0],_e=Br[1],Fo=Jt.isFocused,ht=Jt.isFileDialogActive,$r=L(typeof window<"u"&&window.isSecureContext&&b&&Fv()),Ni=function(){!$r.current&&ht&&setTimeout(function(){if(ge.current){var T=ge.current.files;T.length||(_e({type:"closeDialog"}),Te())}},300)};W(function(){return window.addEventListener("focus",Ni,!1),function(){window.removeEventListener("focus",Ni,!1)}},[ge,ht,Te,$r]);var Mn=L([]),Oi=function(T){ve.current&&ve.current.contains(T.target)||(T.preventDefault(),Mn.current=[])};W(function(){return k&&(document.addEventListener("dragover",Ed,!1),document.addEventListener("drop",Oi,!1)),function(){k&&(document.removeEventListener("dragover",Ed),document.removeEventListener("drop",Oi))}},[ve,k]),W(function(){return!r&&_&&ve.current&&ve.current.focus(),function(){}},[ve,_,r]);var mn=pe(function(A){M?M(A):console.error(A)},[M]),Io=pe(function(A){A.preventDefault(),A.persist(),$i(A),Mn.current=[].concat(jv(Mn.current),[A.target]),Mi(A)&&Promise.resolve(o(A)).then(function(T){if(!(Ii(A)&&!N)){var ye=T.length,Ie=ye>0&&Sv({files:T,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(T){return mn(T)})},[o,u,mn,N,De,s,i,a,l,ae]),Pi=pe(function(A){A.preventDefault(),A.persist(),$i(A);var T=Mi(A);if(T&&A.dataTransfer)try{A.dataTransfer.dropEffect="copy"}catch{}return T&&f&&f(A),!1},[f,N]),we=pe(function(A){A.preventDefault(),A.persist(),$i(A);var T=Mn.current.filter(function(Ie){return ve.current&&ve.current.contains(Ie)}),ye=T.indexOf(A.target);ye!==-1&&T.splice(ye,1),Mn.current=T,!(T.length>0)&&(_e({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Mi(A)&&c&&c(A))},[ve,c,N]),ot=pe(function(A,T){var ye=[],Ie=[];A.forEach(function(mt){var Mo=xd(mt,De),Hr=Sa(Mo,2),Ra=Hr[0],Na=Hr[1],Oa=Cd(mt,s,i),ji=Sa(Oa,2),Pa=ji[0],Ba=ji[1],$a=ae?ae(mt):null;if(Ra&&Pa&&!$a)ye.push(mt);else{var ja=[Na,Ba];$a&&(ja=ja.concat($a)),Ie.push({file:mt,errors:ja.filter(function(m_){return m_})})}}),(!a&&ye.length>1||a&&l>=1&&ye.length>l)&&(ye.forEach(function(mt){Ie.push({file:mt,errors:[Ev]})}),ye.splice(0)),_e({acceptedFiles:ye,fileRejections:Ie,type:"setFiles"}),d&&d(ye,Ie,T),Ie.length>0&&h&&h(Ie,T),ye.length>0&&p&&p(ye,T)},[_e,a,De,s,i,l,d,p,h,ae]),Fe=pe(function(A){A.preventDefault(),A.persist(),$i(A),Mn.current=[],Mi(A)&&Promise.resolve(o(A)).then(function(T){Ii(A)&&!N||ot(T,A)}).catch(function(T){return mn(T)}),_e({type:"reset"})},[o,ot,mn,N]),Bt=pe(function(){if($r.current){_e({type:"openDialog"}),rt();var A={multiple:a,types:Ke};window.showOpenFilePicker(A).then(function(T){return o(T)}).then(function(T){ot(T,null),_e({type:"closeDialog"})}).catch(function(T){Rv(T)?(Te(T),_e({type:"closeDialog"})):Nv(T)?($r.current=!1,ge.current?(ge.current.value=null,ge.current.click()):mn(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."))):mn(T)});return}ge.current&&(_e({type:"openDialog"}),rt(),ge.current.value=null,ge.current.click())},[_e,rt,Te,b,ot,mn,Ke,a]),Ld=pe(function(A){!ve.current||!ve.current.isEqualNode(A.target)||(A.key===" "||A.key==="Enter"||A.keyCode===32||A.keyCode===13)&&(A.preventDefault(),Bt())},[ve,Bt]),Vd=pe(function(){_e({type:"focus"})},[]),Ud=pe(function(){_e({type:"blur"})},[]),zd=pe(function(){R||(Tv()?setTimeout(Bt,0):Bt())},[R,Bt]),jr=function(T){return r?null:T},Ma=function(T){return $?null:jr(T)},Bi=function(T){return P?null:jr(T)},$i=function(T){N&&T.stopPropagation()},d_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=A.refKey,ye=T===void 0?"ref":T,Ie=A.role,mt=A.onKeyDown,Mo=A.onFocus,Hr=A.onBlur,Ra=A.onClick,Na=A.onDragEnter,Oa=A.onDragOver,ji=A.onDragLeave,Pa=A.onDrop,Ba=Ri(A,Bv);return ce(ce(Da({onKeyDown:Ma(Xt(mt,Ld)),onFocus:Ma(Xt(Mo,Vd)),onBlur:Ma(Xt(Hr,Ud)),onClick:jr(Xt(Ra,zd)),onDragEnter:Bi(Xt(Na,Io)),onDragOver:Bi(Xt(Oa,Pi)),onDragLeave:Bi(Xt(ji,we)),onDrop:Bi(Xt(Pa,Fe)),role:typeof Ie=="string"&&Ie!==""?Ie:"presentation"},ye,ve),!r&&!$?{tabIndex:0}:{}),Ba)}},[ve,Ld,Vd,Ud,zd,Io,Pi,we,Fe,$,P,r]),p_=pe(function(A){A.stopPropagation()},[]),h_=Q(function(){return function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=A.refKey,ye=T===void 0?"ref":T,Ie=A.onChange,mt=A.onClick,Mo=Ri(A,$v),Hr=Da({accept:De,multiple:a,type:"file",style:{display:"none"},onChange:jr(Xt(Ie,Fe)),onClick:jr(Xt(mt,p_)),tabIndex:-1},ye,ge);return ce(ce({},Hr),Mo)}},[ge,n,a,Fe,r]);return ce(ce({},Jt),{},{isFocused:Fo&&!r,getRootProps:d_,getInputProps:h_,rootRef:ve,inputRef:ge,open:jr(Bt)})}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({},Fa),{},{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({},Fa);default:return e}}function Md(){}const Qv="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==",Kv="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 Xv=0;function ke(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:--Xv,__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 Jv({onCancel:e,onSubmit:t,onFileDrop:n}){const r=pe(f=>{const d=f[0];n(d,d.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(f=>ke("p",{children:f.path},f.path)),c=l.map(({file:f,errors:d})=>ke("li",{children:[f.path," - ",f.size," bytes",ke("ul",{children:d.map(p=>ke("li",{children:p.message},p.code))})]},f.path));return ke("div",{...o(),children:[ke("input",{...i(),name:"file"}),ke("img",{src:u.length?Kv:Qv,className:"mx-auto mb-2"}),l.length?ke("div",{className:"mb-2",children:[ke("div",{className:"mb-2 font-semibold",children:"Rejected files"}),ke("ul",{children:c})]}):ke(de,{}),u.length?ke(de,{children:[u,ke("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"}),ke("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"})]}):ke(de,{children:[ke("p",{className:"mb-6 text-gray-500",children:"Drag a file to upload"}),ke("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 Pt extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FileSelection","Validating","ValidationError","ImportInProgress","ImportComplete","UnexpectedError"]}}class Rd extends te{constructor(t){super(),this.View=t}}class je extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetView","CreateImport","FetchImports"]}}function Yv(){return[new Rd(new Pt(0,[])),tt()]}function qv(e,t,n,r){let o,i,s;return n.tag===1?n.fields[0].tag===1?[r,mo(Jo(Ot,n.fields[0].fields[0].tag===1?Ee(new je(0,[new Pt(5,[n.fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].tag===1?Ee(new je(0,[new Pt(2,[n.fields[0].fields[0].fields[0].fields[0]])])):n.fields[0].fields[0].fields[0].fields[0].ActiveImport==null?Ee(new je(0,[new Pt(5,["New import not active"])])):(o=n.fields[0].fields[0].fields[0].fields[0].ActiveImport,x([new je(0,[new Pt(3,[o])]),new je(2,[new We(0,[void 0])])]))))]:[r,mo(x([Ot(new je(0,[new Pt(1,[])])),go(a=>{Cr(a)},a=>Wb(t,a),n.fields[0].fields[0],a=>new je(1,[new We(1,[a])]))]))]:n.tag===2?n.fields[0].tag===1?[r,mo(Jo(Ot,(i=r.View,i.tag===3?n.fields[0].fields[0].ActiveImport!=null?(s=n.fields[0].fields[0].ActiveImport,x([new je(0,[new Pt(3,[s])]),new je(2,[new We(0,[void 0])])])):Ee(new je(0,[new Pt(4,[z0(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 je(0,[new Pt(3,[s])]),new je(2,[new We(0,[void 0])])])):Ee(new je(0,[new Pt(0,[])])))))]:(Cr(v.Delay(()=>v.Bind(ow(1e4),()=>(e(),v.Zero())))),[r,tt()]):[new Rd(n.fields[0]),tt()]}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=Qb,Pd=Kb,e_=Xb;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 t_(e){let t;const n=e.dispatch,r=ho(!1),o=r[1],i=ho(0),s=i[0]|0,a=ho(new FormData),l=a[0];return m("form",j(x([["key",s],(t=xt(B(()=>fe(O(m(Jv,{onCancel:()=>{i[1](s+1),a[1](new FormData)},onSubmit:()=>{o(!0)},onFileDrop:(u,c)=>{l.set("file",u,c)}})),B(()=>{let u,c,f,d,p,h,y;return r[0]?O((u=x([m("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),m("div",j(x([["className","fixed inset-0 z-10 overflow-y-auto"],(c=[m("div",j(x([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(f=[m("div",j(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"],(d=[(p=x([m("div",j(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",j(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 je(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(d))])])))],["children",C.Children.toArray(Array.from(f))])])))],["children",C.Children.toArray(Array.from(c))])])))]),m("div",{children:C.Children.toArray(Array.from(u))}))):ms()})))),["children",C.Children.toArray(Array.from(t))])])))}function n_(e){let t,n,r,o,i,s,a,l;const u=e.onDone,c=e.importService,f=e.dispatchFetchImports,d=e.accountImports,p=e.accountId,h=rd(Yv(),(b,_)=>qv(f,c,b,_)),y=h[1];ef(()=>{y(new je(2,[new We(1,[d])]))},[d]);const w=x([m("div",j(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.
47
- The file will be validated `,m("b",{children:["before"]}),` creating the profiles.
48
- If validation fails, the file will be rejected, and no profiles created.
49
- 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",j(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",j(x([["className","px-8 mt-10"],(a=[m("div",j(x([["className","border border-gray-300 w-full py-12 rounded text-center bg-white"],(l=xt(B(()=>{let b,_,k,R;const $=h[0].View;switch($.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=$.fields[0];return O((_=xt(B(()=>{const N=ae=>{let De;return m("p",j(x([["className","mt-6"],(De=["Download the full error report ",Bd(rn(`\r
50
- `,Ml(Xo(Ee(Ee("Row,Column,Error")),Jo(Ke=>Jo(rt=>rn(",",on(Te=>`"${Te}"`,on(Te=>C0(Te,'"','""'),[Yt(Ke.RowId),rt.Column,rt.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(H0(P.fields[0])<=10){const ae=xt(B(()=>fe(O(m("p",{className:"mb-3",children:"The file contains the following validation error(s)"})),B(()=>fe(nc(De=>Re(Ke=>m("li",{children:[`Row ${De.RowId}, Column ${Ke.Column}: ${Ke.Message}`]}),De.FieldErrors),P.fields[0]),B(()=>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 fe(O(m("img",{src:Od,className:"mx-auto"})),B(()=>fe(O(m("div",{className:"mt-2",children:C.Children.toArray([M])})),B(()=>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=>{y(new je(0,[new Pt(0,[])]))}}))))))})),m("div",{children:C.Children.toArray(Array.from(_))})))}case 3:{const P=$.fields[0];return O((k=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(k))})))}case 4:{const P=$.fields[0];return O((R=x([m("img",{src:e_,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($.fields[0]));default:return O(m(t_,{dispatch:y}))}})),["children",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(a))])])))]);return m("div",{children:C.Children.toArray(Array.from(w))})}function Ia(){return(Ia=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 r_(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 Ts(t,n)}function o_(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(r_,Ia({},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 f=r?m(jd,null,o):o;return m(r||n.nodeName.toLowerCase(),i,f)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ds:kn)(this._vdom,this._root)}function $d(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function i_(e,t,n){if(this._vdom){var r={};r[e]=n=n==null?void 0:n,r[$d(e)]=n,this._vdom=Ts(this._vdom,r),kn(this._vdom,this._root)}}function s_(){kn(this._vdom=null,this._root)}function jd(e,t){var n=this;return m("slot",Ia({},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 a_(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=o_,o.prototype.attributeChangedCallback=i_,o.prototype.disconnectedCallback=s_,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 l_(e,t){a_(e,t,void 0,{shadow:!0})}function c_(e){const t=[];Uc(e)!=null&&(t.push(new Wn(0,[new hi(0,[])])),t.push(new Wn(0,[new hi(1,[])])));let n;switch(As(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(Lb,new Nb(e.partnerId,e.accountId,Fw(e.backendUrl,e.accessToken),cg(t.Roles)))}function u_(e){let t,n;const r=ug(e.accessToken),o=e.accountId,i=r.Roles;let s;switch(o==null&&(zc(i)!=null||As(i)!=null)?s=0:s=1,s){case 0:{const a=x([m("style",{children:[Aa]}),m(od,{tabs:Ee(new Wn(1,[])),currentTab:new Wn(1,[]),setCurrentTab:l=>{}}),m("div",j(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=zb(e.backendUrl,l,e.accessToken),c=Rb(hw,(y,w)=>mw(()=>Gb(u),y,w)),f=c[0],d=c[1],p=c_(r.Roles),h=x([m("style",{children:[Aa]}),m(od,{tabs:p,currentTab:f.CurrentTab,setCurrentTab:y=>{d(new wo(0,[y]))}}),m("div",j(x([["className","mt-4"],(n=xt(B(()=>{const y=f.CurrentTab;if(y.tag===0){const w=f.AccountImports;let b,_,k,R;switch(w.tag===1?b=0:w.tag===3?(b=1,_=w.fields[0]):w.tag===2?w.fields[0].tag===0?(b=3,R=w.fields[0].fields[0]):(b=2,k=w.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(k));case 3:return y.fields[0].tag===1?O(m(Zb,{accountImports:R,fetchImport:$=>sd(u,$)})):O(m(n_,{accountId:l,accountImports:R,dispatchFetchImports:()=>{d(new wo(1,[new We(0,[void 0])]))},importService:u,onDone:()=>{d(new wo(0,[new Wn(0,[new hi(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:[Aa]}),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 f_(){l_(e=>m(u_,e),"superhero-profile-directory-app")}f_()})();