@flarehr/tfn-declaration-app 2.13.19 → 2.15.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),d=new URL(n(184),n.b),f=new URL(n(421),n.b),$=s()(o()),p=u()(l),h=u()(c),m=u()(d),w=u()(f);$.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;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;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}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-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+p+");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]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+h+")}[type=radio]:checked{background-image:url("+m+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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-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:rgba(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: }::-webkit-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-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:rgba(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-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:rgba(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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-none{flex:none}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-bold{font-weight:700}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.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-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-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)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,(()=>{var e,t,r,o,i,s,a={},u=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function f(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return $(t,a,o,i,null)}function $(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null==s&&null!=t.vnode&&t.vnode(a),a}function p(e){return e.children}function h(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function g(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!y.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=c({},o)).__v=o.__v+1,k(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?m(o):i,o.__h),I(n,o),o.__e!=i&&w(o)))}))}function b(e,t,n,r,o,i,s,l,c,d){var f,h,w,g,y,b,x,S=r&&r.__k||u,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(g=n.__k[f]=null==(g=t[f])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?$(null,g,null,null,g):Array.isArray(g)?$(p,{children:g},null,null,null):g.__b>0?$(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(w=S[f])||w&&g.key==w.key&&g.type===w.type)S[f]=void 0;else for(h=0;h<C;h++){if((w=S[h])&&g.key==w.key&&g.type===w.type){S[h]=void 0;break}w=null}k(e,g,w=w||a,o,i,s,l,c,d),y=g.__e,(h=g.ref)&&w.ref!=h&&(x||(x=[]),w.ref&&x.push(w.ref,null,g),x.push(h,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===w.__k?g.__d=c=v(g,c,e):c=_(e,g,w,S,y,c),"function"==typeof n.type&&(n.__d=c)):c&&w.__e==c&&c.parentNode!=e&&(c=m(w))}for(n.__e=b,f=C;f--;)null!=S[f]&&("function"==typeof n.type&&null!=S[f].__e&&S[f].__e==n.__d&&(n.__d=m(r,f+1)),R(S[f],S[f]));if(x)for(f=0;f<x.length;f++)N(x[f],x[++f],x[++f])}function v(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?v(r,t,n):_(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function _(e,t,n,r,o,i){var s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function C(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])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?E:T,i):e.removeEventListener(t,i?E:T,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function T(e){this.l[e.type+!1](t.event?t.event(e):e)}function E(e){this.l[e.type+!0](t.event?t.event(e):e)}function k(e,n,r,o,i,s,a,u,l){var d,f,$,m,w,g,y,v,x,_,S,C,T,E=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(l=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(d=t.__b)&&d(n);try{e:if("function"==typeof E){if(v=n.props,x=(d=E.contextType)&&o[d.__c],_=d?x?x.props.value:d.__:o,r.__c?y=(f=n.__c=r.__c).__=f.__E:("prototype"in E&&E.prototype.render?n.__c=f=new E(v,_):(n.__c=f=new h(v,_),f.constructor=E,f.render=D),x&&x.sub(f),f.props=v,f.state||(f.state={}),f.context=_,f.__n=o,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=c({},f.__s)),c(f.__s,E.getDerivedStateFromProps(v,f.__s))),m=f.props,w=f.state,$)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&v!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,_)||n.__v===r.__v){f.props=v,f.state=f.__s,n.__v!==r.__v&&(f.__d=!1),f.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(v,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,w,g)}))}if(f.context=_,f.props=v,f.__v=n,f.__P=e,S=t.__r,C=0,"prototype"in E&&E.prototype.render)f.state=f.__s,f.__d=!1,S&&S(n),d=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(n),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(o=c(c({},o),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(m,w)),T=null!=d&&d.type===p&&null==d.key?d.props.children:d,b(e,Array.isArray(T)?T:[T],n,r,o,i,s,a,u,l),f.base=n.__e,n.__h=null,f.__h.length&&a.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=A(r.__e,n,r,o,i,s,a,l);(d=t.diffed)&&d(n)}catch(e){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function I(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function A(t,n,r,o,i,s,u,l){var c,f,$,p=r.props,h=n.props,w=n.type,g=0;if("svg"===w&&(i=!0),null!=s)for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!w&&(w?c.localName===w:3===c.nodeType)){t=c,s[g]=null;break}if(null==t){if(null===w)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,h.is&&h),s=null,l=!1}if(null===w)p===h||l&&t.data===h||(t.data=h);else{if(s=s&&e.call(t.childNodes),f=(p=r.props||a).dangerouslySetInnerHTML,$=h.dangerouslySetInnerHTML,!l){if(null!=s)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;($||f)&&($&&(f&&$.__html==f.__html||$.__html===t.innerHTML)||(t.innerHTML=$&&$.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||C(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||C(e,i,t[i],n[i],r)}(t,h,p,i,l),$)n.__k=[];else if(g=n.props.children,b(t,Array.isArray(g)?g:[g],n,r,o,i&&"foreignObject"!==w,s,u,s?s[0]:r.__k&&m(r,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&d(s[g]);l||("value"in h&&void 0!==(g=h.value)&&(g!==t.value||"progress"===w&&!g||"option"===w&&g!==p.value)&&C(t,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==t.checked&&C(t,"checked",g,p.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function R(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&R(o[i],n,"function"!=typeof e.type);r||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function M(n,r,o){var i,s,u;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],k(r,n=(!i&&o||r).__k=f(p,null,[n]),s||a,a,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:s?s.__e:r.firstChild,i),I(u,n)}function O(e,t){M(e,t,O)}function P(t,n,r){var o,i,s,a=c({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),$(t.type,a,o||t.key,i||t.ref,null)}function B(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}e=u.slice,t={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},r=0,h.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},n),this.props)),e&&c(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},h.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},h.prototype.render=p,o=[],y.__r=0,s=0;var G,L,F,V,U=0,H=[],j=[],z=t.__b,W=t.__r,Y=t.diffed,q=t.__c,K=t.unmount;function Z(e,n){t.__h&&t.__h(L,e,U||n),U=0;var r=L.__H||(L.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:j}),r.__[e]}function J(e){return U=1,X(ce,e)}function X(e,t,n){var r=Z(G++,2);return r.t=e,r.__c||(r.__=[n?n(t):ce(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function Q(e,n){var r=Z(G++,3);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,L.__H.__h.push(r))}function ee(e,n){var r=Z(G++,4);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,L.__h.push(r))}function te(e){return U=5,ne((function(){return{current:e}}),[])}function ne(e,t){var n=Z(G++,7);return le(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function re(e,t){return U=8,ne((function(){return e}),t)}function oe(e){var t=L.context[e.__c],n=Z(G++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(L)),t.props.value):e.__}function ie(){for(var e;e=H.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){L=null,z&&z(e)},t.__r=function(e){W&&W(e),G=0;var t=(L=e.__c).__H;t&&(F===L?(t.__h=[],L.__h=[],t.__.forEach((function(e){e.__V=j,e.u=void 0}))):(t.__h.forEach(ae),t.__h.forEach(ue),t.__h=[])),F=L},t.diffed=function(e){Y&&Y(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==H.push(n)&&V===t.requestAnimationFrame||((V=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);se&&(t=requestAnimationFrame(n))})(ie)),n.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==j&&(e.__=e.__V),e.u=void 0,e.__V=j}))),F=L=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),q&&q(e,n)},t.unmount=function(e){K&&K(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{ae(e)}catch(e){n=e}})),n&&t.__e(n,r.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var t=L,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),L=t}function ue(e){var t=L;e.__c=e.__(),L=t}function le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ce(e,t){return"function"==typeof t?t(e):t}function de(e,t){for(var n in t)e[n]=t[n];return e}function fe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $e(e){this.props=e}($e.prototype=new h).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return fe(this.props,e)||fe(this.state,t)};var pe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pe&&pe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function me(e){function t(t){var n=de({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=he,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var we=function(e,t){return null==e?null:x(x(e).map(t))},ge={map:we,forEach:we,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},ye=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ye(e,t,n,r)};var be=t.unmount;function ve(){this.__u=0,this.t=null,this.__b=null}function xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _e(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),be&&be(e)},(ve.prototype=new h).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=xe(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 e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ve.prototype.componentWillUnmount=function(){this.t=[]},ve.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=de({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&f(p,null,e.fallback);return o&&(o.__h=null),[f(p,null,t.__a?null:e.children),o]};var Se=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Ce(e){return this.getChildContext=function(){return e.context},e.children}function Te(e){var t=this,n=e.i;t.componentWillUnmount=function(){M(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(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),M(f(Ce,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(_e.prototype=new h).__a=function(e){var t=this,n=xe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Se(t,e,r)):o()};n?n(i):i()}},_e.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},_e.prototype.componentDidUpdate=_e.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Se(e,n,t)}))};var Ee="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ie="undefined"!=typeof document,Ae=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ne(e,t,n){return null==t.__k&&(t.textContent=""),M(e,t),"function"==typeof n&&n(),e?e.__c:null}h.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(h.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Re=t.event;function De(){}function Me(){return this.cancelBubble}function Oe(){return this.defaultPrevented}t.event=function(e){return Re&&(e=Re(e)),e.persist=De,e.isPropagationStopped=Me,e.isDefaultPrevented=Oe,e.nativeEvent=e};var Pe,Be={configurable:!0,get:function(){return this.class}},Ge=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];Ie&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Ae(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Ee,Ge&&Ge(e)};var Le=t.__r;t.__r=function(e){Le&&Le(e),Pe=e.__c};var Fe={ReactCurrentDispatcher:{current:{readContext:function(e){return Pe.__n[e.__c].props.value}}}};function Ve(e){return!!e&&e.$$typeof===Ee}function Ue(e){return Ve(e)?P.apply(null,arguments):e}function He(e){e()}const je={useState:J,useReducer:X,useEffect:Q,useLayoutEffect:ee,useInsertionEffect:ee,useTransition:function(){return[!1,He]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=J(t),r=n[0],o=n[1];return Q((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:He,useRef:te,useImperativeHandle:function(e,t,n){U=6,ee((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ne,useCallback:re,useContext:oe,useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:ge,render:Ne,hydrate:function(e,t,n){return O(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(M(null,e),!0)},createPortal:function(e,t){var n=f(Te,{__v:e,i:t});return n.containerInfo=t,n},createElement:f,createContext:B,createFactory:function(e){return f.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:p,isValidElement:Ve,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:h,PureComponent:$e,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:fe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,f(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:me,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:p,Suspense:ve,SuspenseList:_e,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return f(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Fe};function ze(){return f("div",{},"Please wait...")}function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function qe(e){Ye(e)&&e.Dispose()}function Ke(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Ze{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Je(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Ze(e[Symbol.iterator]())}function Xe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class Qe{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function et(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function tt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function nt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class rt{static id(e){return rt.idMap.has(e)||rt.idMap.set(e,++rt.count),rt.idMap.get(e)}}function ot(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function it(e){return 2654435761*e|0}function st(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function at(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return it(e);case"string":return ot(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=at(e[r]);return st(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>at(e)));return st(t)}return it(rt.id(e))}}function ut(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 lt(e,t){return ut(e,t,ct)}function ct(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):We(e)?We(t)&<(e,t):e instanceof Date?t instanceof Date&&0===dt(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!ct(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function dt(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+tt(e),r=t.getTime()+tt(t)),n===r?0:n<r?-1:1}function ft(e,t){return e===t?0:e<t?-1:1}function $t(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,pt)}function pt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?$t(e,t):-1:e instanceof Date?t instanceof Date?dt(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(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=pt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function ht(e,t,n){return e(t,n)>0?t:n}function mt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}rt.idMap=new WeakMap,rt.count=0;const wt=Symbol("curried");function gt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[wt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t){return null==t||1===t.length?t:wt in t?t[wt]:yt([],e,t)}function vt(e,t,n){if(null!=t){if(wt in t){t=t[wt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function xt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function _t(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function St(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function Ct(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+xt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return St(i,t,!0);switch(t){case"D":case"d":return _t(i,"first");case"T":case"t":return _t(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+xt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return St(e,t,n);switch(t){case"D":case"d":return n?_t(e,"first"):e.toLocaleDateString();case"T":case"t":return n?_t(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return et(e.getFullYear(),4)+"-"+et(e.getMonth()+1,2)+"-"+et(e.getDate(),2)+"T"+et(e.getHours(),2)+":"+et(e.getMinutes(),2)+":"+et(e.getSeconds(),2)+"."+et(e.getMilliseconds(),3)+(t?xt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Tt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Et(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function kt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Et(e),o=null!=r?t&&"Z"===r?1:2:0;return Tt(n.getTime(),o)}(e),!0}catch(e){return!1}}const It=Symbol("numeric");function At(e){return"number"==typeof e||(null==e?void 0:e[It])}function Nt(e,t){return"number"==typeof e?e*t:e[It]().multiply(t)}function Rt(e,t){return"number"==typeof e?e.toFixed(t):e[It]().toFixed(t)}function Dt(e,t){return"number"==typeof e?e.toPrecision(t):e[It]().toPrecision(t)}function Mt(e,t){return"number"==typeof e?e.toExponential(t):e[It]().toExponential(t)}function Ot(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[It]().toHex()}function Pt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Bt(e,t,n=0){if(null==t)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(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Gt(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=Gt(r);else{if(100===t){n+="; ...";break}n+="; "+Gt(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+Gt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Lt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Gt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Gt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>at(e)));return e.splice(0,0,it(this.tag)),st(e)}Equals(e){return this===e||!!Ke(this,e)&&this.tag===e.tag&<(this.fields,e.fields)}CompareTo(e){return this===e?0:Ke(this,e)?this.tag===e.tag?$t(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Ft{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+Gt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>at(e)));return st(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ct(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Vt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Ut{constructor(e){this.message=e}}function Ht(e){return function(e){return e instanceof Ut||e instanceof Error}(e)?e:new Error(String(e))}const jt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,zt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Wt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Yt(e){return{input:e,cont:(t=e,e=>{jt.lastIndex=0;const n=[],r=[];let o=0,i=jt.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=jt.lastIndex,jt.lastIndex-=1,i=jt.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Xt(e,n,r))})};var t}function qt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Kt(e){return qt((e=>e),e)}function Zt(e){return qt((e=>{throw new Error(e)}),e)}function Jt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",At(e))switch("x"!==o.toLowerCase()&&(Wt(e,0)?(e=Nt(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Rt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Dt(e,r):Dt(e);break;case"e":case"E":e=null!=r?Mt(e,r):Mt(e);break;case"x":e=Ot(e);break;case"X":e=Ot(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Ct(e):Gt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=nn(e,n-i.length,s,o)):nn(i+e,n,s,o)}return e}function Xt(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Jt(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):Xt(e,a,u,s,o)}}function Qt(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function en(e){return"string"!=typeof e||/^\s*$/.test(e)}function tn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function nn(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function rn(e,t,n){return nn(e,t,n)}function on(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(Pt),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function sn(e,t){return t.split("").filter((t=>e(t))).join("")}function an(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}var un=n(118);const ln="Collection was empty.";class cn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return at(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof cn?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof cn?e.value:e)}}function dn(e){return null==e||e instanceof cn?new cn(e):e}function fn(e){if(null==e)throw new Error("Option has no value");return e instanceof cn?e.value:e}function $n(e){return null==e?void 0:e}function pn(e){return null==e?null:fn(e)}function hn(e){return null==e?[]:[fn(e)]}function mn(e,t){return null!=e?fn(e):t}function wn(e,t){return null!=t?dn(e(fn(t))):void 0}function gn(e,t){return null!=t?e(fn(t)):void 0}function yn(e,t){return"function"==typeof e?new e(t):new Array(t)}function bn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function vn(e,t,n){const r=0|t.length,o=yn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function xn(e,t,n){return function(e,t,n,r,o){const i=0|mn(n,0),s=0|mn(wn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function _n(e,t,n){return n.reduce(e,t)}function Sn(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;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}}class Cn extends Ft{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+tn("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(ct(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+at(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|pt(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Tn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class Tn{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function En(){return new Cn(null,void 0)}function kn(e,t){return new Cn(e,t)}function In(e){return null==e.tail}function An(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Nn(e){if(null!=e.tail)return e.head;throw new Error(ln+"\\nParameter name: list")}function Rn(e){const t=e.tail;if(null!=t)return t;throw new Error(ln+"\\nParameter name: list")}function Dn(){return En()}function Mn(e,t){return kn(e,t)}function On(e){return kn(e,En())}function Pn(e){return In(e)}function Bn(e){return Nn(e)}function Gn(e){return Rn(e)}function Ln(e){const t=0|An(e),n=bn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(In(o))break;n[r]=Nn(o),e=r+1,t=Rn(o)}})(0,e),n}function Fn(e,t,n){let r=t,o=n;for(;!In(o);)r=e(r,Nn(o)),o=Rn(o);return r}function Vn(e){return Fn(((e,t)=>kn(t,e)),En(),e)}function Un(e,t){Fn(((t,n)=>{e(n)}),void 0,t)}function Hn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=kn(e[t],n);return n}function jn(e){return Hn(e,En())}function zn(e,t){return Fn(((e,t)=>kn(t,e)),t,Vn(e))}function Wn(e,t){const n=En(),r=Fn(((t,n)=>{const r=new Cn(e(n),void 0);return t.tail=r,r}),n,t),o=En();return r.tail=o,Rn(n)}const Yn=je,qn=Gt(un.Z),Kn=f("svg",mt(jn([["className",tn(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=On(f("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),Zn=f("svg",mt(jn([["className",tn(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=On(f("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),Jn=f("svg",mt(jn([["className",tn(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=On(f("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),Xn=f("svg",mt(jn([["className",tn(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=On(f("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),Qn=f("svg",mt(jn([["className",tn(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=On(f("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),er=f("svg",mt(jn([["className",tn(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=On(f("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),tr=f("svg",mt(jn([["className",tn(" ",["h-5","w-5","text-amber-400","flex-none"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=On(f("path",{"fill-rule":"evenodd",d:"M8.25706 3.09858C9.02167 1.73928 10.9788 1.73928 11.7434 3.09858L17.3237 13.0191C18.0736 14.3523 17.1102 15.9996 15.5805 15.9996H4.4199C2.89025 15.9996 1.92682 14.3523 2.67675 13.0191L8.25706 3.09858ZM11.0001 12.9998C11.0001 13.552 10.5524 13.9998 10.0001 13.9998C9.44784 13.9998 9.00012 13.552 9.00012 12.9998C9.00012 12.4475 9.44784 11.9998 10.0001 11.9998C10.5524 11.9998 11.0001 12.4475 11.0001 12.9998ZM10.0001 4.99976C9.44784 4.99976 9.00012 5.44747 9.00012 5.99976V8.99976C9.00012 9.55204 9.44784 9.99976 10.0001 9.99976C10.5524 9.99976 11.0001 9.55204 11.0001 8.99976V5.99976C11.0001 5.44747 10.5524 4.99976 10.0001 4.99976Z",clipRule:"evenodd"}));return["children",Yn.Children.toArray(Array.from(e))]})()]))),nr=jn(["flex","flex-col","align-center"]);function rr(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const or="Enumeration already finished.",ir="Enumeration has not started. Call MoveNext.",sr="The input sequence has an insufficient number of elements.";function ar(){throw new Error(ir)}function ur(){throw new Error(or)}class lr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Je(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Gt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{qe(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class cr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function dr(e,t,n){return new cr(e,t,n)}function fr(e,t,n){let r,o=!1,i=dn(e());const s=()=>{if(null!=i){const e=fn(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return dr((()=>(o||ar(),null!=r?fn(r):ur())),(()=>{if(o||(o=!0),null!=i){const e=fn(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function $r(e){return function(e){return new lr(e)}(e)}function pr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function hr(e){return $r((()=>Je(e())))}function mr(e){return $r((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{qe(e)}finally{n=void 0}}if(null!=t){const e=t;try{qe(e)}finally{t=void 0}}};return dr((()=>(o?i&&ur():ar(),null!=r?fn(r):ur())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=dn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{qe(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(a)):(s(),o=!1)}else t=Je(e)}return fn(o)}}),(()=>{i||s()}))}(e)))}function wr(){return hr((()=>new Array(0)))}function gr(e){return hr((()=>function(e,t){const n=yn(void 0,1);return n[0]=e,n}(e)))}function yr(e){return e instanceof Cn?Ln(e):Array.from(e)}function br(e){return We(e)?jn(e):e instanceof Cn?e:function(e){let t,n;if(We(e))return jn(e);if(e instanceof Cn)return e;{const r=En();let o=r;const i=Je(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Cn(e,void 0),t.tail=n,o=n}}finally{qe(i)}const s=o,a=En();return s.tail=a,Rn(r)}}(e)}function vr(e,t,n){return $r((()=>fr(e,t,n)))}function xr(e,t,n){return $r((()=>{let r=-1;return fr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function _r(e,t){return mr([e,t])}function Sr(e,t,n){const r=pr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function Cr(e,t){return function(e,t){return vr((()=>pr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{qe(e)}))}((t=>e(t)?dn(t):void 0),t)}function Tr(e,t,n){const r=pr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function Er(e,t){Tr(((t,n)=>{e(n)}),void 0,t)}function kr(e,t){return vr((()=>pr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?dn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))}class Ir{constructor(e,t){this.cleanup=e,this.res=t}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function Ar(e){return hr((()=>function(e){return e.slice().reverse()}(yr(e))))}function Nr(e,t){return $r((()=>{const n=pr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(sr+"\\nParameter name: source");return function(e,t){return dr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{qe(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw qe(n),e}}))}function Rr(e,t){return hr((()=>mr(kr(e,t))))}const Dr=(e,t)=>{Q((()=>{const t=e();return()=>{t.Dispose()}}),t)},Mr=e=>{ee((()=>{const t=e();return()=>{t.Dispose()}}))};function Or(e){return{Dispose(){e()}}}function Pr(e){return Yn.useState(e)}function Br(e){var t;t=e,Q((()=>{const e=t();return()=>{e.Dispose()}}))}function Gr(e,t){Dr(e,t)}function Lr(e,t){Dr((t=>(e(),Or((()=>{})))),t)}function Fr(e){return Yn.useRef(e)}function Vr(e,t){const n=mn(t,[]);return Yn.useMemo(e,n)}function Ur(e){const t=Fr(e),n=function(e,n){const r=mn([],[]);return Yn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},Mr((e=>(r(),Or((()=>{}))))),n}function Hr(e){return Yn.useState(e)}class jr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class zr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,zr.prototype)}}class Wr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Wr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Yr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new zr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Ht(e))}}));else try{e(t)}catch(e){t.onError(Ht(e))}}}const qr=new class{Bind(e,t){return function(e,t){return Yr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Ht(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Yr((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Yr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Yr((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Yr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Ht(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Yr((e=>e.onSuccess(void 0)))}};function Kr(e){}function Zr(e){const t=new jr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Jr(e){e.cancel()}const Xr=new jr;function Qr(e){return Yr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new zr)}))}))}function eo(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Wr;e({onSuccess:t||Kr,onError:n||Kr,onCancel:r||Kr,cancelToken:o||Xr,trampoline:i})}(e,t)}(e,t)}class to extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function no(e,t){const n=Fr(Zr());return Gr((()=>Or((()=>{Jr(n.current)}))),[]),Ur((r=>{var o;null!=(o=n.current)&&o.isCancelled||eo(qr.Delay((()=>qr.TryWith(qr.Delay((()=>(t(new to(1)),qr.Bind(e(r),(e=>(t(new to(2,e)),qr.Zero())))))),(e=>(t(new to(3,e)),qr.Zero()))))),n.current)}))}class ro extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class oo extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class io extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class so extends Ft{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class ao extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class uo extends Ft{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class lo{constructor(e,t){this.k=e,this.v=t}}function co(e,t){return new lo(e,t)}function fo(e){return e.k}function $o(e){return e.v}class po extends lo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ho(e,t,n,r,o){return new po(e,t,n,r,o)}function mo(e){return e.left}function wo(e){return e.right}function go(e){return e.h}function yo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof po){e=yo(n+1,mo(r)),t=wo(r);continue e}return n+1|0}return 0|n}}function bo(e){return yo(0,e)}function vo(e,t,n,r){let o,i;o=null!=e?e instanceof po?go(e):1:0,i=null!=r?r instanceof po?go(r):1:0;const s=0|(o<i?i:o);return 0===s?co(t,n):ho(t,n,e,r,s+1)}function xo(e,t,n,r){let o,i,s,a,u,l;if(u=null!=e?e instanceof po?go(e):1:0,l=null!=r?r instanceof po?go(r):1:0,l>u+2){const s=fn(r);if(s instanceof po){if(o=mo(s),(null!=o?(i=o,i instanceof po?go(i):1):0)>u+1){const r=fn(mo(s));if(r instanceof po)return vo(vo(e,t,n,mo(r)),fo(r),$o(r),vo(wo(r),fo(s),$o(s),wo(s)));throw new Error("internal error: Map.rebalance")}return vo(vo(e,t,n,mo(s)),fo(s),$o(s),wo(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=fn(e);if(o instanceof po){if(s=wo(o),(null!=s?(a=s,a instanceof po?go(a):1):0)>l+1){const e=fn(wo(o));if(e instanceof po)return vo(vo(mo(o),fo(o),$o(o),mo(e)),fo(e),$o(e),vo(wo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return vo(mo(o),fo(o),$o(o),vo(wo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return vo(e,t,n,r)}function _o(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,fo(o));return o instanceof po?i<0?xo(_o(e,t,n,mo(o)),fo(o),$o(o),wo(o)):0===i?ho(t,n,mo(o),wo(o),go(o)):xo(mo(o),fo(o),$o(o),_o(e,t,n,wo(o))):i<0?ho(t,n,void 0,r,2):0===i?co(t,n):ho(t,n,r,void 0,2)}return co(t,n)}function So(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,fo(i));if(0===s)return dn($o(i));if(i instanceof po){e=r,t=o,n=s<0?mo(i):wo(i);continue e}return}return}}function Co(e,t,n,r,o){return t(n,r)?_o(e,n,r,o):o}function To(e,t,n,r){e:for(;;){const o=e,i=t,s=r;if(null!=n){const a=n;if(a instanceof po){const u=To(o,i,mo(a),s),l=Co(o,i,fo(a),$o(a),u);e=o,t=i,n=wo(a),r=l;continue e}return Co(o,i,fo(a),$o(a),s)}return s}}function Eo(e,t,n){return To(e,t,n,void 0)}function ko(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof po){ko(n,mo(r)),n(fo(r),$o(r)),e=n,t=wo(r);continue e}n(fo(r),$o(r))}break}}function Io(e,t){ko(e,t)}function Ao(e,t){if(null!=t){const n=t;if(n instanceof po){const t=Ao(e,mo(n)),r=e(fo(n),$o(n)),o=Ao(e,wo(n));return ho(fo(n),r,t,o,go(n))}return co(fo(n),e(fo(n),$o(n)))}}function No(e,t){return Ao(e,t)}function Ro(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=_o(e,o[0],o[1],n)}return n}class Do extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function Mo(e){e:for(;;){const t=e;if(Pn(t))return Dn();{const n=Gn(t),r=Bn(t);if(null!=r){const o=r;if(o instanceof po){e=Hn([mo(o),co(fo(o),$o(o)),wo(o)],n);continue e}return t}e=n;continue e}}}function Oo(e){return new Do(Mo(On(e)),!1)}function Po(e){if(e.started){const t=e.stack;if(Pn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Bn(t)){const e=Bn(t);if(e instanceof po)throw new Error("Please report error: Map iterator, unexpected stack for current");return[fo(e),$o(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Bo(e){let t=Oo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Po(t),"System.Collections.IEnumerator.get_Current":()=>Po(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Pn(t))return!1;if(null!=Bn(t)){if(Bn(t)instanceof po)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Mo(Gn(t)),!Pn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Pn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Oo(e)},Dispose(){}}}class Go{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,at(e[0])),n=0|t(n,at(e[1]))}}finally{qe(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Go))return!1;{const t=Je(this);try{const n=Je(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ct(r[0],o[0])||!ct(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(n)}}finally{qe(t)}}}toString(){return"map ["+tn("; ",kr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(zt,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[n];if(At(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Rt(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Dt(a,i):Dt(a);break;case"e":case"E":a=null!=i?Mt(a,i):Mt(a);break;case"p":case"P":i=null!=i?i:2,a=Rt(Nt(a,100),i)+" %";break;case"d":case"D":a=null!=i?rn(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?rn(Ot(a),i,"0"):Ot(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Wt(a,0)&&(a=Nt(a,-1),e="-"),r=null==r?"":r.substring(1),a=Rt(a,Math.max(r.length,0));let[o,i]=a.split(".");i||(i=""),o=rn(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return nn(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),a=e+a}}else a=a instanceof Date?Ct(a,s||o):Gt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=nn(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Bo(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Bo(this.tree)}CompareTo(e){const t=this;if(e instanceof Go)return 0|function(e,t,n){const r=pr(t);try{const t=pr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{qe(t)}}finally{qe(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:pt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Ho(this,e[0])&&ct(Vo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Io(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Uo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Uo(this)}get size(){return 0|Uo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return kr((e=>[e[0],e[1]]),this)}get(e){return Vo(this,e)}has(e){return Ho(this,e)}keys(){return kr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return kr((e=>e[1]),this)}forEach(e,t){const n=this;Er((t=>{e(t[1],t[0],n)}),n)}}function Lo(e,t){return new Go(e,t)}function Fo(e){const t=rr();return Lo(t,function(e,t){if(We(t))return Ro(e,t);if(t instanceof Cn)return function(e,t){return Fn(((t,n)=>_o(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=_o(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{qe(n)}}}(t,e))}function Vo(e,t){return function(e,t,n){const r=So(e,t,n);if(null==r)throw new Error;return fn(r)}(e.comparer,t,e.tree)}function Uo(e){return bo(e.tree)}function Ho(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,fo(i));if(i instanceof po){if(s<0){e=r,t=o,n=mo(i);continue e}if(0===s)return!0;e=r,t=o,n=wo(i);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function jo(e,t,n){return function(e,t,n){return Lo(e.comparer,_o(e.comparer,t,n,e.tree))}(n,e,t)}function zo(e,t){return function(e,t){return So(e.comparer,t,e.tree)}(t,e)}function Wo(e,t){return function(e,t){return Lo(e.comparer,No(t,e.tree))}(t,e)}function Yo(e){return Fo(e)}function qo(){return Go.empty}Go.empty=Lo(rr(),void 0);const Ko=new so("",new ro(0),Dn(),!1,void 0,void 0,void 0,new io(0));function Zo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:on(t,[e],null,0);var n}function Jo(e){return new so(e,Ko.method,Ko.headers,Ko.withCredentials,Ko.overridenMimeType,Ko.overridenResponseType,Ko.timeout,Ko.content)}function Xo(e,t){return new so(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Qo(e,t){return new so(t.url,t.method,zn(t.headers,On(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ei(e){return function(e){return Yr((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new ao(0,n.responseText):new ao("arraybuffer"===a?2:"blob"===a?1:3,n.response),new uo(o,e,i,function(e){const t=rr();return Lo(t,Ro(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=fn(o);r.push(e)}}return r}((e=>{const t=jn(Zo(":",e));return Pn(t)?void 0:[Bn(t).toLocaleLowerCase(),tn(":",Gn(t)).trim()]}),Zo("\r\n",n.getAllResponseHeaders()))),s)))};const r=Je(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(dn(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(dn(a[1].fields[0])):n.send(dn(void 0))}))}new uo(0,"","",qo(),new ao(0,""));class ti extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function ni(e,t){return 0===t.tag?new ti(0,e(t.fields[0])):new ti(1,t.fields[0])}class ri extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class oi extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ii{constructor(){this.cache=new Map([])}}function si(){return new ii}function ai(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ui(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=Bt(e,s),u=Bt.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(ai(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ai(t)}}si(),si();const li=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ci=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,di=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function fi(e,t){try{return t.contents=function(e){function t(e){return e.replace(ci,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(li.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Pt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(ci.test(n))return t(n);if(di.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var $i;function pi(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 hi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&$i.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=pi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=pi(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function mi(e,t,n,r,o){try{return o.contents=hi(e,t,n,r),!0}catch(e){return!1}}function wi(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function gi(e,t){try{return t.contents=function(e){const[t,n]=Et(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return wi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}($i||($i={}));var yi=null;try{yi=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(u){}function bi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function vi(e){return!0===(e&&e.__isLong__)}bi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},bi.prototype.Equals=function(e){return qi(this,e)},bi.prototype.CompareTo=function(e){return Xi(this,e)},bi.prototype.toString=function(e){return ji(this,e)},bi.prototype.toJSON=function(){return ji(this)},bi.prototype[It]=function(){const e=this;return{multiply:t=>ns(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:()=>{return ji(e.unsigned?e:function(e,t,n){return n?function(e,t){return new bi(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new bi(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},bi.prototype.__isLong__,Object.defineProperty(bi.prototype,"__isLong__",{value:!0});var xi={},_i={};function Si(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=_i[e])?r:(n=Ti(e,(0|e)<0?-1:0,!0),o&&(_i[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=xi[e])?r:(n=Ti(e,e<0?-1:0,!1),o&&(xi[e]=n),n)}function Ci(e,t){if(isNaN(e))return t?Oi:Mi;if(t){if(e<0)return Oi;if(e>=Ni)return Fi}else{if(e<=-Ri)return Vi;if(e+1>=Ri)return Li}return e<0?Qi(Ci(-e,t)):Ti(e%Ai|0,e/Ai|0,t)}function Ti(e,t,n){return new bi(e,t,n)}var Ei=Math.pow;function ki(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Mi;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return Qi(ki(e.substring(1),t,n));for(var o=Ci(Ei(n,8)),i=Mi,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=es(a<8?ns(i,Ci(Ei(n,a))):i=ns(i,o),Ci(u))}return i.unsigned=t,i}function Ii(e,t){return"number"==typeof e?Ci(e,t):"string"==typeof e?ki(e,t):Ti(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ai=4294967296,Ni=Ai*Ai,Ri=Ni/2,Di=Si(1<<24),Mi=Si(0),Oi=Si(0,!0),Pi=Si(1),Bi=Si(1,!0),Gi=Si(-1),Li=Ti(-1,2147483647,!1),Fi=Ti(-1,-1,!0),Vi=Ti(0,-2147483648,!1);function Ui(e){return e.unsigned?e.low>>>0:e.low}function Hi(e){return e.unsigned?(e.high>>>0)*Ai+(e.low>>>0):e.high*Ai+(e.low>>>0)}function ji(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(zi(e))return"0";if(Wi(e)){if(qi(e,Vi)){var n=Ci(t),r=rs(e,n),o=ts(ns(r,n),e);return ji(r,t)+Ui(o).toString(t)}return"-"+ji(Qi(e),t)}for(var i=Ci(Ei(t,6),e.unsigned),s=e,a="";;){var u=rs(s,i),l=(Ui(ts(s,ns(u,i)))>>>0).toString(t);if(zi(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function zi(e){return 0===e.high&&0===e.low}function Wi(e){return!e.unsigned&&e.high<0}function Yi(e){return 1==(1&e.low)}function qi(e,t){return vi(t)||(t=Ii(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Ki(e,t){return Xi(e,t)<0}function Zi(e,t){return Xi(e,t)>0}function Ji(e,t){return Xi(e,t)>=0}function Xi(e,t){if(vi(t)||(t=Ii(t)),qi(e,t))return 0;var n=Wi(e),r=Wi(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:Wi(ts(e,t))?-1:1}function Qi(e){return!e.unsigned&&qi(e,Vi)?Vi:es(function(e){return Ti(~e.low,~e.high,e.unsigned)}(e),Pi)}function es(e,t){vi(t)||(t=Ii(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,d=0,f=0;return d+=(f+=i+(65535&t.low))>>>16,c+=(d+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,Ti((d&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function ts(e,t){return vi(t)||(t=Ii(t)),es(e,Qi(t))}function ns(e,t){if(zi(e))return e.unsigned?Oi:Mi;if(vi(t)||(t=Ii(t)),yi)return Ti(yi.mul(e.low,e.high,t.low,t.high),yi.get_high(),e.unsigned);if(zi(t))return e.unsigned?Oi:Mi;if(qi(e,Vi))return Yi(t)?Vi:Mi;if(qi(t,Vi))return Yi(e)?Vi:Mi;if(Wi(e))return Wi(t)?ns(Qi(e),Qi(t)):Qi(ns(Qi(e),t));if(Wi(t))return Qi(ns(e,Qi(t)));if(Ki(e,Di)&&Ki(t,Di))return Ci(Hi(e)*Hi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,d=0,f=0,$=0;return f+=($+=i*l)>>>16,d+=(f+=o*l)>>>16,f&=65535,d+=(f+=i*u)>>>16,c+=(d+=r*l)>>>16,d&=65535,c+=(d+=o*u)>>>16,d&=65535,c+=(d+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,Ti((f&=65535)<<16|($&=65535),(c&=65535)<<16|(d&=65535),e.unsigned)}function rs(e,t){if(vi(t)||(t=Ii(t)),zi(t))throw Error("division by zero");var n,r,o;if(yi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ti((e.unsigned?yi.div_u:yi.div_s)(e.low,e.high,t.low,t.high),yi.get_high(),e.unsigned):e;if(zi(e))return e.unsigned?Oi:Mi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ti(e.low,e.high,!0)}(t)),Zi(t,e))return Oi;if(Zi(t,function(e,t){if(vi(t)&&(t=Ui(t)),0==(t&=63))return e;var n=e.high;return t<32?Ti(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ti(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Bi;o=Oi}else{if(qi(e,Vi))return qi(t,Pi)||qi(t,Gi)?Vi:qi(t,Vi)?Pi:qi(n=function(e,t){return vi(t)&&(t=Ui(t)),0==(t&=63)?e:t<32?Ti(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ti(0,e.low<<t-32,e.unsigned)}(rs(function(e,t){return vi(t)&&(t=Ui(t)),0==(t&=63)?e:t<32?Ti(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ti(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Mi)?Wi(t)?Pi:Gi:o=es(n,rs(r=ts(e,ns(t,n)),t));if(qi(t,Vi))return e.unsigned?Oi:Mi;if(Wi(e))return Wi(t)?rs(Qi(e),Qi(t)):Qi(rs(Qi(e),t));if(Wi(t))return Qi(rs(e,Qi(t)));o=Mi}for(r=e;Ji(r,t);){n=Math.max(1,Math.floor(Hi(r)/Hi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ei(2,i-48),a=Ci(n),u=ns(a,t);Wi(u)||Zi(u,r);)u=ns(a=Ci(n-=s,e.unsigned),t);zi(a)&&(a=Pi),o=es(o,a),r=ts(r,u)}return o}const os=rs,is=Hi;function ss(e){return e<0?Math.ceil(e):Math.floor(e)}function as(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return is(os(arguments[0],1e4));case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function us(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return as(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*as(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class ls{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class cs{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Cs(this)}GetHashCode(){return fs(this)}Equals(e){return $s(this,e)}}function ds(e){return null!=e.generics?e.generics:[]}function fs(e){return st([ot(e.fullname),...ds(e).map(fs)])}function $s(e,t){return""===e.fullname?""===t.fullname&&ut(Os(e),Os(t),(([e,t],[n,r])=>e===n&&$s(t,r))):e.fullname===t.fullname&&ut(ds(e),ds(t),$s)}function ps(e,t,n,r){return new cs(e,t,n,void 0,r)}function hs(...e){return new cs("",void 0,void 0,void 0,(()=>e))}function ms(e,t,n,r){const o=new cs(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ls(o,n,e[n],t)))}));return o}function ws(e){return new cs("Microsoft.FSharp.Core.FSharpOption`1",[e])}function gs(e){return new cs("Microsoft.FSharp.Collections.FSharpList`1",[e])}function ys(e,t,n){return new cs(e,[t],void 0,void 0,void 0,void 0,n)}const bs=new cs("System.Object"),vs=(new cs("Microsoft.FSharp.Core.Unit"),new cs("System.Char"),new cs("System.String")),xs=new cs("System.Boolean"),_s=(new cs("System.SByte"),new cs("System.Byte"),new cs("System.Int16"),new cs("System.UInt16"),new cs("System.Int32"));function Ss(e){if(Array.isArray(e))return e[0];if(e instanceof cs){const t=Es(e);if(null!=t)return Ss(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Cs(e){const t=Es(e);return null!=t?Cs(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Cs(e))).join(",")+"]"}function Ts(e){return null!=Es(e)}function Es(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ks(e){return null!=e.generics&&e.generics.length>0}function Is(e){return null!=e.enumCases&&e.enumCases.length>0}function As(e){return null==e.generics?e:new cs(e.fullname,e.generics.map((()=>bs)))}function Ns(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Rs(e){if(Is(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ds(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Ms(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Os(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ps(e){if(Ls(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Bs(e){return e instanceof cs?null!=e.cases:e instanceof Lt}function Gs(e){return e instanceof cs?null!=e.fields:e instanceof Ft}function Ls(e){return e.fullname.startsWith("System.Tuple")}function Fs(e){return null==e.fields?[]:e.fields}new cs("System.UInt32"),new cs("System.Single"),new cs("System.Double"),new cs("System.Decimal");class Vs{constructor(e){this.k=e}}function Us(e){return new Vs(e)}function Hs(e){return e.k}class js extends Vs{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function zs(e,t,n,r){return new js(e,t,n,r)}function Ws(e){return e.left}function Ys(e){return e.right}function qs(e){return e.h}function Ks(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof js){e=Ws(r),t=Ks(Ys(r),n+1);continue e}return n+1|0}return 0|n}}function Zs(e){return Ks(e,0)}function Js(e,t,n){let r,o;r=null!=e?e instanceof js?qs(e):1:0,o=null!=n?n instanceof js?qs(n):1:0;const i=0|(r<o?o:r);return 0===i?Us(t):zs(t,e,n,i+1)}function Xs(e,t,n){let r,o,i,s,a,u;if(a=null!=e?e instanceof js?qs(e):1:0,u=null!=n?n instanceof js?qs(n):1:0,u>a+2){const i=fn(n);if(i instanceof js){if(r=Ws(i),(null!=r?(o=r,o instanceof js?qs(o):1):0)>a+1){const n=fn(Ws(i));if(n instanceof js)return Js(Js(e,t,Ws(n)),Hs(n),Js(Ys(n),Hs(i),Ys(i)));throw new Error("internal error: Set.rebalance")}return Js(Js(e,t,Ws(i)),Hs(i),Ys(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=fn(e);if(r instanceof js){if(i=Ys(r),(null!=i?(s=i,s instanceof js?qs(s):1):0)>u+1){const e=fn(Ys(r));if(e instanceof js)return Js(Js(Ws(r),Hs(r),Ws(e)),Hs(e),Js(Ys(e),t,n));throw new Error("internal error: Set.rebalance")}return Js(Ws(r),Hs(r),Js(Ys(r),t,n))}throw new Error("internal error: Set.rebalance")}return Js(e,t,n)}function Qs(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Hs(r));if(r instanceof js)return o<0?Xs(Qs(e,t,Ws(r)),Hs(r),Ys(r)):0===o?n:Xs(Ws(r),Hs(r),Qs(e,t,Ys(r)));{const o=0|e.Compare(t,Hs(r));return o<0?zs(t,void 0,n,2):0===o?n:zs(t,n,void 0,2)}}return Us(t)}function ea(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Hs(i));if(i instanceof js){if(s<0){e=r,t=o,n=Ws(i);continue e}if(0===s)return!0;e=r,t=o,n=Ys(i);continue e}return 0===s}return!1}}function ta(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof js){ta(n,Ws(r)),n(Hs(r)),e=n,t=Ys(r);continue e}n(Hs(r))}break}}class na extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function ra(e){e:for(;;){const t=e;if(Pn(t))return Dn();{const n=Bn(t),r=Gn(t);if(null!=n){const o=n;if(o instanceof js){e=Hn([Ws(o),Us(Hs(o)),Ys(o)],r);continue e}return t}e=r;continue e}}}function oa(e){return new na(ra(On(e)),!1)}function ia(e){if(e.started){const t=e.stack;if(Pn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Bn(t))return Hs(Bn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function sa(e){let t=oa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ia(t),"System.Collections.IEnumerator.get_Current":()=>ia(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Pn(t))return!1;if(null!=Bn(t)){if(Bn(t)instanceof js)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ra(Gn(t)),!Pn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Pn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=oa(e)},Dispose(){}}}function aa(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Pn(s[0]))return Pn(s[1])?0:-1;if(Pn(s[1]))return 1;if(null!=Bn(s[1]))if(null!=Bn(s[0])){const a=Bn(s[0]),u=Bn(s[1]);if(a instanceof js)if(null==Ws(a)){if(!(u instanceof js)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Mn(Ys(a),Gn(s[0])),n=Mn(void 0,Gn(s[1]));continue e}if(null==Ws(u)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Mn(Ys(a),Gn(s[0])),n=Mn(Ys(u),Gn(s[1]));continue e}{const s=[o,i];let a,u,l,c,d;switch(Pn(s[0])?Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2:null!=Bn(s[0])?(a=0,u=Gn(s[0]),l=Bn(s[0])):Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=Hn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=Hn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=Hn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=Hn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,d;switch(Pn(s[0])?Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2:null!=Bn(s[0])?(a=0,u=Gn(s[0]),l=Bn(s[0])):Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=Hn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=Hn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=Hn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=Hn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof js)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Gn(s[0]),n=Gn(s[1]);continue e}if(null==Ws(u)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Mn(void 0,Gn(s[0])),n=Mn(Ys(u),Gn(s[1]));continue e}{const s=[o,i];let a,u,l,c,d;switch(Pn(s[0])?Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2:null!=Bn(s[0])?(a=0,u=Gn(s[0]),l=Bn(s[0])):Pn(s[1])?a=2:null!=Bn(s[1])?(a=1,c=Gn(s[1]),d=Bn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=Hn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=Hn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=Hn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=Hn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Bn(s[1]);const a=[o,i];let u,l,c,d,f;switch(Pn(a[0])?Pn(a[1])?u=2:null!=Bn(a[1])?(u=1,d=Gn(a[1]),f=Bn(a[1])):u=2:null!=Bn(a[0])?(u=0,l=Gn(a[0]),c=Bn(a[0])):Pn(a[1])?u=2:null!=Bn(a[1])?(u=1,d=Gn(a[1]),f=Bn(a[1])):u=2,u){case 0:if(c instanceof js){e=r,t=Hn([Ws(c),zs(Hs(c),void 0,Ys(c),0)],l),n=i;continue e}e=r,t=Hn([void 0,Us(Hs(c))],l),n=i;continue e;case 1:if(f instanceof js){e=r,t=o,n=Hn([Ws(f),zs(Hs(f),void 0,Ys(f),0)],d);continue e}e=r,t=o,n=Hn([void 0,Us(Hs(f))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Bn(s[0])){e=r,t=Gn(s[0]),n=Gn(s[1]);continue e}{Bn(s[0]);const a=[o,i];let u,l,c,d,f;switch(Pn(a[0])?Pn(a[1])?u=2:null!=Bn(a[1])?(u=1,d=Gn(a[1]),f=Bn(a[1])):u=2:null!=Bn(a[0])?(u=0,l=Gn(a[0]),c=Bn(a[0])):Pn(a[1])?u=2:null!=Bn(a[1])?(u=1,d=Gn(a[1]),f=Bn(a[1])):u=2,u){case 0:if(c instanceof js){e=r,t=Hn([Ws(c),zs(Hs(c),void 0,Ys(c),0)],l),n=i;continue e}e=r,t=Hn([void 0,Us(Hs(c))],l),n=i;continue e;case 1:if(f instanceof js){e=r,t=o,n=Hn([Ws(f),zs(Hs(f),void 0,Ys(f),0)],d);continue e}e=r,t=o,n=Hn([void 0,Us(Hs(f))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,On(t),On(n))}function ua(e,t,n){let r=n;ta((e=>{t[r]=e,r=r+1|0}),e)}function la(e,t){if(We(t))return function(e,t){return _n(((t,n)=>Qs(e,n,t)),void 0,t)}(e,t);if(t instanceof Cn)return function(e,t){return Fn(((t,n)=>Qs(e,n,t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Qs(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{qe(n)}}}class ca{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|at(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{qe(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ca&&0===aa(da(this),fa(this),fa(e))}toString(){return"set ["+tn("; ",kr((e=>Gt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|aa(da(this),fa(this),fa(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ea(da(this),e,fa(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ua(fa(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|$a(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|$a(this)}GetEnumerator(){return sa(fa(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return sa(fa(this))}get size(){return 0|$a(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ea(da(e),t,fa(e))}(this,e)}keys(){return kr((e=>e),this)}values(){return kr((e=>e),this)}entries(){return kr((e=>[e,e]),this)}forEach(e,t){const n=this;Er((t=>{e(t,t,n)}),n)}}function da(e){return e.comparer}function fa(e){return e.tree}function $a(e){return Zs(fa(e))}function pa(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function ha(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ti(1,function(e,t){const n=2===t.tag?pa(t.fields[0],t.fields[1],!0):1===t.tag?pa(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?pa(t.fields[0],t.fields[1],!0):4===t.tag?pa(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+tn("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:pa(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new ti(0,r.fields[0])}function ma(e,t){return"string"==typeof t?new ti(0,t):new ti(1,[e,new ri(0,"a string",t)])}const wa=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new ti(0,(e+128&255)-128):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!1,8,new Vt((()=>t),(e=>{t=0|e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])},ga=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new ti(0,255&e):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!0,8,new Vt((()=>t),(e=>{t=e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])},ya=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new ti(0,(e+32768&65535)-32768):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!1,16,new Vt((()=>t),(e=>{t=0|e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])},ba=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new ti(0,65535&e):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!0,16,new Vt((()=>t),(e=>{t=e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])},va=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new ti(0,~~e):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!1,32,new Vt((()=>t),(e=>{t=0|e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])},xa=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new ti(0,e>>>0):new ti(1,[r,new ri(1,n,e,"Value was either too large or too small for "+n)]):new ti(1,[r,new ri(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[mi(o,511,!0,32,new Vt((()=>t),(e=>{t=e}))),t],e[0]?new ti(0,e[1]):new ti(1,[r,new ri(0,n,o)])}return new ti(1,[r,new ri(0,n,o)])};function _a(e,t,n,r){let o;const i=n+".["+nt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ti(1,[i,new ri(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new ti(1,[i,new ri(0,"an array",r)])}function Sa(e,t,n){if(Array.isArray(n)){let r=-1;return ni(Vn,_n(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new ti(0,Mn(i.fields[0],n.fields[0])):new ti(1,i.fields[0])}return n}),new ti(0,Dn()),n))}return new ti(1,[t,new ri(0,"a list",n)])}function Ca(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return _n(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+nt(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ti(0,i)):new ti(1,s.fields[0])}return n}),new ti(0,bn(new Array(o.length),0,o.length,null)),o)}return new ti(1,[t,new ri(0,"an array",n)])}function Ta(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ti(1,o.fields[0])}function Ea(e,t){let n;const r=e;return n=e=>t=>_a(0,r,e,t),e=>r=>Ta(gt(3,(e=>{let n;const r=t;return n=e=>t=>_a(1,r,e,t),t=>r=>Ta(((t,n,r)=>new ti(0,[e,t])),gt(2,n),t,r)})),gt(2,n),e,r)}function ka(e){return Yo(e)}function Ia(e){return function(e,t){return new ca(e,t)}(t={Compare:pt},la(t,e));var t}function Aa(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new ti(1,[n,new ri(6,(o=0|r.length,Kt(Yt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new ti(0,Dn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],a=Kt(Yt("%s[%i]"))(n)(i),u=t[i-e],l=r[i];o=ni((e=>Mn(e,s)),u(a)(l))}return ni(Vn,o)}}function Na(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ss(e)===r))}(0,Ms(n));if(null!=s){const n=s,r=vn((n=>Da(e,t,!1,n[1])),Fs(n));return ni((e=>function(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 null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}(n,Ln(e))),0===r.length&&i.length<=1?new ti(0,Dn()):Aa(1,r,o,i))}return new ti(1,[o,new ri(6,"Cannot find case "+r+" in "+Cs(n))])}function Ra(e,t,n,r){const o=new Vt(null);let i;const s=Cs(r);let a;if(i=""===s?e:jo(s,o,e),Gs(r)){const e=vn((e=>[ui(t,Ss(e)),Da(i,t,!1,e[1])]),Os(r));a=t=>n=>ni((e=>function(e,t){const n=Os(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,Ln(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ti(1,[t,new ri(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(gt(2,(e=>{const r=e[0];return o=>0===o.tag?ni((e=>Mn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new ti(0,Dn()))}(e,t,n))}else if(Bs(r))a=e=>n=>{if("string"==typeof n)return Na(i,t,r,n,e,[]);if(Array.isArray(n)){const a=n;return o=n=>Na(i,t,r,n,e,a),0===(s=ma(e+"[0]",a[0])).tag?o(s.fields[0]):new ti(1,s.fields[0])}return new ti(1,[e,new ri(0,"a string or array",n)]);var o,s};else{if(!n){let e;const t=Cs(r);throw e=Kt(Yt("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}a=e=>t=>new ti(1,[e,new ri(2,"an extra coder for "+Cs(r),t)])}return o.contents=a,a}function Da(e,t,n,r){let o,i,s,a;const u=Cs(r),l=zo(u,e);if(null==l){if(Ts(r)){const n=Da(e,t,!1,Es(r));return e=>t=>Ca(gt(2,n),e,t)}if(Is(r)){const e=Cs(Ns(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=wa(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,e.toString())):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=ga(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,e.toString())):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=ya(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,e.toString(a))):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=ba(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,e.toString())):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=va(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,nt(e))):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=xa(o)(i);if(1===s.tag)return new ti(1,s.fields[0]);{const e=s.fields[0];return Sr(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new ti(0,Ds(n,e.toString())):new ti(1,[o,new ri(1,Cs(n),i,"Unkown value provided for the enum")])}};{const e=Cs(r),t=Zt(Yt("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(ks(r)){if(Ls(r)){const n=vn((n=>Da(e,t,!1,n)),Ps(r));return e=>t=>Array.isArray(t)?ni((e=>Ln(e)),Aa(0,n,e,t)):new ti(1,[e,new ri(0,"an array",t)])}{const u=Cs(As(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Da(e,t,!0,ds(r)[0]),e=>t=>{return n=gt(2,o),r=e,null==(i=t)?new ti(0,void 0):ni(dn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Da(e,t,!1,ds(r)[0]),e=>t=>Sa(gt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return s=Da(e,t,!1,ds(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return ni(Ar,_n(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new ti(0,_r([i.fields[0]],n.fields[0])):new ti(1,i.fields[0])}return n}),new ti(0,[]),n))}return new ti(1,[t,new ri(0,"a seq",n)])}(gt(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Da(e,t,!1,ds(r)[0]),o=Da(e,t,!1,ds(r)[1]);let i;const s=jn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ti(1,[n,new ri(0,"an object",r)]):Tr(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new ti(0,Mn([s.fields[0],e.fields[0]],o.fields[0])):new ti(1,e.fields[0])}return new ti(1,s.fields[0])}return o}),new ti(0,Dn()),Object.keys(r))}(gt(2,n),gt(2,o),e,t),(a=Ea(gt(2,n),gt(2,o)),e=>t=>Sa(gt(2,a),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Pn(o))return new ti(1,[n,new ri(7,i)]);{const s=ha(n,gt(2,Bn(o)),r);if(1===s.tag){e=Gn(o),t=zn(i,On(s.fields[0]));continue e}return new ti(0,s.fields[0])}}})(s,Dn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new ti(1,o.fields[0]):new ti(0,e(o.fields[0]))}(ka,gt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Da(e,t,!1,ds(r)[0]);return e=>t=>{const r=Ca(gt(2,n),e,t);return 0===r.tag?new ti(0,Ia(r.fields[0])):new ti(1,r.fields[0])}}return Ra(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ti(0,r):new ti(1,[n,new ri(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new ti(0,void 0):new ti(1,[n,new ri(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>ma(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new ti(0,n[0]):new ti(1,[e,new ri(0,"a single character string",t)])}return new ti(1,[e,new ri(0,"a char",t)])}(e,t):"System.SByte"===u?wa:"System.Byte"===u?ga:"System.Int16"===u?ya:"System.UInt16"===u?ba:"System.Int32"===u?va:"System.UInt32"===u?xa:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new ti(0,r):new ti(1,[n,new ri(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new ti(0,r):new ti(1,[n,new ri(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=Tt(-621355968e5,0);return r=[kt(t,new Vt((()=>o),(e=>{o=e}))),o],r[0]?new ti(0,1===(n=r[1]).kind?n:Tt(n.getTime(),1)):new ti(1,[e,new ri(0,"a datetime",t)])}var n;return new ti(1,[e,new ri(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=wi(-621355968e5,0);return n=[gi(t,new Vt((()=>r),(e=>{r=e}))),r],n[0]?new ti(0,n[1]):new ti(1,[e,new ri(0,"a datetimeoffset",t)])}return new ti(1,[e,new ri(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[us(t,new Vt((()=>r),(e=>{r=e}))),r],n[0]?new ti(0,n[1]):new ti(1,[e,new ri(0,"a timespan",t)])}return new ti(1,[e,new ri(0,"a timespan",t)])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[fi(t,new Vt((()=>r),(e=>{r=e}))),r],n[0]?new ti(0,n[1]):new ti(1,[e,new ri(0,"a guid",t)])}return new ti(1,[e,new ri(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new ti(0,e):Ra(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Ma=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$R$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1E(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν$(.çђ$,ɪ⇜ɜ*B$-'%A%($-S*(''$$--$*$8(6˓CC:'n'$$Z*'0c%$$$.%1+ӹM,⌚łT&4'+Ưध(0&,*-%$%$'ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&/|*/7/'[+-)K+A%%q$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ፮$A£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const Oa=e=>function(e,t){const n=1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return Ma(n)}(e,0);return 0!=(256&n)}(e);const Pa={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Ba(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Ga(e,t=Pa.None){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case Pa.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Pa.SnakeCase:return Ba(e,"_");case Pa.SnakeCaseAllCaps:return Ba(e,"_").toUpperCase();case Pa.KebabCase:return Ba(e,"-");case Pa.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Pa.None;if(null==t&&o(t),t instanceof Lt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function La(e,t){return!t.has(e)&&(t.add(e),!0)}function Fa(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Va{constructor(e,t){const n=new Vt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();za(n.contents,e)}}finally{qe(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(mr(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){za(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ha(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Wa(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Tr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ja(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Ya(this,e)}get size(){return 0|ja(this)}add(e){return za(this,e),this}clear(){Ha(this)}delete(e){return Ya(this,e)}has(e){return Wa(this,e)}keys(){return kr((e=>e),this)}values(){return kr((e=>e),this)}entries(){return kr((e=>[e,e]),this)}forEach(e,t){const n=this;Er((t=>{e(t,t,n)}),n)}}function Ua(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new Vt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Ha(e){e.hashMap.clear()}function ja(e){let t=0,n=Je(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{qe(n)}return 0|t}function za(e,t){const n=Ua(e,t);return n[0]?!(n[2]>-1)&&(Fa(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Wa(e,t){const n=Ua(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Ya(e,t){const n=Ua(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Fa(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class qa extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}const Ka=Yo([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class Za extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ja extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}function Xa(e){let t;const n=function(e){const t=function(e){const t=zo(e,Ka);return null==t?void 0:new qa(e,t)}(e),n=Kt(Yt("Country code:%A is not accepted"))(e),r=t;return null==r?new ti(1,n):new ti(0,r)}(e);return 1===n.tag?new ti(1,n.fields[0]):new ti(0,(t=n.fields[0],new Ja(t.Code,t.Name)))}class Qa extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const eu=new Qa(2,{HomeCountry:void 0});function tu(e){return new Qa(2,{HomeCountry:e})}class nu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class ru extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class ou extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class iu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function su(e){return e.fields[0]}function au(e){const t=function(e){const t=sn(Oa,e),n=t===e?new ti(0,void 0):new ti(1,"TFN must contain digits only");if(1===n.tag)return new ti(1,n.fields[0]);{const e=9===t.length?new ti(0,void 0):new ti(1,"TFN must be 9 digits");if(1===e.tag)return new ti(1,e.fields[0]);{const e=function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=yn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),vn((e=>hi(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11==0?new ti(0,void 0):new ti(1,"TFN is not valid");return 1===e.tag?new ti(1,e.fields[0]):new ti(0,t)}}}(e);if(1===t.tag)return new ti(1,t.fields[0]);{const e=t.fields[0],r=function(e){if(We(e))return 0===e.length;if(e instanceof Cn)return Pn(e);{const t=pr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{qe(t)}}}((n={Equals:(e,t)=>e===t,GetHashCode:ot},yr(function(e,t,n){return hr((()=>{const r=new Va(e,n);return Cr((e=>La(e,r)),t)}))}(["0"],e.split(""),n))))?new ti(1,"TFN must not contain all zeros"):new ti(0,void 0);return 1===r.tag?new ti(1,r.fields[0]):new ti(0,e)}var n}class uu extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Ft{constructor(e){super(),this.Unused=e}}(void 0);class lu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function cu(){return ms("Dto.Dto.ResidencyStatusV2Dto",[],lu,(()=>[[],[],[["Item",hs(["HomeCountry",ws(ps("Dto.Dto.CountryDto",[],uu,(()=>[["Code",vs],["Name",vs]])))])]]]))}function du(e){let t,n;switch(e.tag){case 1:return new ti(0,new Qa(1));case 2:return mn((t=e.fields[0].HomeCountry,null==t?void 0:(n=Xa(t.Code),1===n.tag?new ti(1,n.fields[0]):new ti(0,tu(n.fields[0])))),new ti(0,eu));default:return new ti(0,new Qa(0))}}function fu(e){switch(e){case 0:return new ti(0,new nu(0));case 1:return new ti(0,new nu(1));case 2:return new ti(0,new nu(2));case 3:return new ti(0,new nu(3));case 4:return new ti(0,new nu(4));default:return new ti(1,"Invalid EmploymentBasis")}}function $u(e){switch(e){case 0:return new ti(0,new Za(0));case 1:return new ti(0,new Za(1));case 2:return new ti(0,new Za(2));case 3:return new ti(0,new Za(3));case 4:return new ti(0,new Za(4));default:return new ti(1,"Invalid DebtSupport")}}function pu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const hu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Pn(i)){const e=r;return 1===e.tag?new ti(1,e.fields[0]):new ti(0,Vn(e.fields[0]))}{let s;const a=o(Bn(i));if(1===a.tag)s=new ti(1,a.fields[0]);else{const e=r;s=1===e.tag?new ti(1,e.fields[0]):new ti(0,Mn(a.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,t=o,n=Gn(i);continue e}}}(new ti(0,Dn()),e,t)}($u,(t={Equals:(e,t)=>e===t,GetHashCode:it},br(function(e,t){return hr((()=>{const n=new Va([],t);return Cr((e=>La(e,n)),e)}))}(e,t))));var t},mu=e=>Wn(pu,e);function wu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class gu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function yu(){return ms("Dto.Dto.ProvidedTfnInformationDto",[],gu,(()=>[[["Item",vs]],[["Item",ys("Dto.Dto.ExemptionReasonDto",_s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class bu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class vu extends Ft{constructor(e,t,n,r,o,i,s){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class xu extends Ft{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=0|t}}class _u extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class Su extends Ft{constructor(e,t){super(),this.Meta=e,this.Info=t}}class Cu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Tu(){return ms("Dto.Commands.ResidencyStatusV2Dto",[],Cu,(()=>[[],[],[["Item",ps("Dto.Commands.WorkingHolidayPayload",[],Eu,(()=>[["HomeCountry",ps("Dto.Commands.CountryCode",[],ku,(()=>[["Code",vs]]))]]))]]]))}class Eu extends Ft{constructor(e){super(),this.HomeCountry=e}}class ku extends Ft{constructor(e){super(),this.Code=e}}class Iu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CreateOrUpdate","Update","ProvideFullTfnDeclaration","Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}class Au extends Ft{constructor(e,t,n,r,o,i,s){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Nu extends Ft{constructor(e,t,n,r,o,i,s){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Ru extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted","Truncated"]}}function Du(e){return e}const Mu=null;function Ou(e){return Array.from(e)}function Pu(e){return Ct(e,"O")}function Bu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return ss(e/864e5)}(e)),o=Math.abs(function(e){return ss(e%864e5/36e5)}(e)),i=Math.abs(function(e){return ss(e%36e5/6e4)}(e)),s=Math.abs(function(e){return ss(e%6e4/1e3)}(e)),a=Math.abs(function(e){return ss(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:et(o,2)}:${et(i,2)}:${et(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+et(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e)}function Gu(){return null}function Lu(e){return Ct(e,"O")}function Fu(e,t,n,r){const o=new Vt(null);let i;const s=Cs(r);let a;if(i=""===s?e:jo(s,o,e),Gs(r)){const e=vn((e=>{const r=ui(t,Ss(e)),o=Vu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),Os(r));a=t=>Tr(((e,n)=>n(t)(e)),{},e)}else{if(!Bs(r)){let e;const t=Cs(r);throw e=Kt(Yt("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}a=e=>{const o=function(e,t){const n=Ms(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return Ss(s);{const e=0|u,r=Fs(s),o=bn(new Array(e+1),0,e+1,null);o[0]=Ss(s);for(let s=1;s<=e;s++){const e=Vu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=a,a}function Vu(e,t,n,r){const o=Cs(r),i=zo(o,e);if(null==i){if(Ts(r)){const o=Vu(e,t,n,Es(r));return e=>Ou(kr(o,e))}if(Is(r)){const e=Cs(Ns(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Cs(r);return Zt(Yt("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(ks(r)){if(Ls(r)){const o=vn((r=>Vu(e,t,n,r)),Ps(r));return e=>{return Ou((t=(e,t)=>o[e](t),n=e,xr((()=>pr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?dn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))));var t,n}}{const o=Cs(As(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Vu(e,t,n,ds(r)[0]),e=>{return n=()=>Mu,null!=(t=wn(o,e))?fn(t):n();var t,n};var o}));return e=>null==e?Mu:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=Vu(e,t,n,ds(r)[0]);return e=>Ou(kr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ds(r)[0],i=Vu(e,t,n,ds(r)[1]);if("System.String"===Cs(o)||"System.Guid"===Cs(o))return e=>Tr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Vu(e,t,n,o);return r=s,e=>Ou(kr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Fu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Gu:"System.String"===o?e=>e:"System.Char"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Lu:"System.DateTimeOffset"===o?Pu:"System.TimeSpan"===o?Bu:"System.Guid"===o?Du:"System.Object"===o?e=>e:Fu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Uu(e){return Kt(Yt("%s/tfn-declaration/backend"))(e)}function Hu(e,t){return qr.Delay((()=>{const n=Qo(function(e){return new oo(0,"Authorization",e)}(Kt(Yt("Bearer %s"))(e)),t);let r;const o=ei(n);return r=qr.Bind(o,(e=>qr.Return(new ti(0,e)))),qr.Bind(r,(e=>{const t=e;if(1===t.tag)return qr.Return(new ti(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ei(n);return qr.Bind(e,(e=>qr.Return(new ti(0,e))))}return qr.Return(new ti(0,e))}}))}))}const ju=e=>function(e,t){try{return ha("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ti(1,"Given an invalid JSON: "+e.message);throw e}}(gt(2,function(e,t,n){const r=mn(t,new oi(0));return Da(function(e){return null!=e?Wo(((e,t)=>new Vt(t[1])),e.Coders):qo()}(void 0),r,!1,e)}(ps("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Su,(()=>[["Meta",hs(["AccountId",vs])],["Info",ws(ms("Dto.BackendApiModels.Read.Information",[],_u,(()=>[[["Item",ps("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],vu,(()=>[["TfnInformation",ms("Dto.BackendApiModels.Read.TfnInformation",[],bu,(()=>[[["Item",vs]],[["Item",ys("Dto.Dto.ExemptionReasonDto",_s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",ws(vs)],["ResidencyStatus",ys("Dto.Dto.ResidencyStatusDto",_s,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",cu()],["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",xs],["HasDebtSupport",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",ps("Dto.BackendApiModels.Read.EmploymentInfo",[],xu,(()=>[["ResidencyStatusV2",ws(cu())],["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]]))]]])))]])),new oi(1))),e);function zu(e,t){return qr.Delay((()=>{const n=Hu(e,Xo(new ro(0),Jo(Uu(t))));return qr.Bind(n,(e=>{const t=e;if(1===t.tag)return qr.Return(new ti(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=ju(e.responseText);return qr.Return(t)}return qr.Return(new ti(1,"Unexpected response from backend"))}}))}))}function Wu(e,t,n){return qr.Delay((()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=qr.Delay((()=>qr.Return(new ti(0,s))));break;case 1:r=zu(t,n)}return qr.Bind(r,(r=>{const o=r;if(1===o.tag)return qr.Return(new ti(1,o.fields[0]));{const r=o.fields[0];let i;const s=function(e,t){let n,r,o;const i=e.TfnInformation.Value;if(o=null==i?new ti(1,"missing TFN info"):new ti(0,i),1===o.tag)return new ti(1,o.fields[0]);{const i=o.fields[0];let s;const a=e.PreviousSurname.Value;let u,l;s=null==a?void 0:su(a);const c=e.ResidencyStatus.Value;if(null==c)l=void 0;else{const e=function(e){switch(e.tag){case 1:return new ti(0,new Cu(1));case 2:{let t;const n=e.fields[0].HomeCountry;return t=null==n?new ti(1,"Home country should be specified for WorkingHolidayMaker"):new ti(0,n),1===t.tag?new ti(1,t.fields[0]):new ti(0,new Cu(2,new Eu(new ku(t.fields[0].Code))))}default:return new ti(0,new Cu(0))}}(c);l=1===e.tag?void 0:e.fields[0]}if(u=null==l?new ti(1,"missing residency status"):new ti(0,l),1===u.tag)return new ti(1,u.fields[0]);{const o=u.fields[0];let a,l;const c=e.EmploymentBasisRadioButtonGroup.Value;if(l=null==c?void 0:function(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}(c),a=null==l?new ti(1,"missing employment basis"):new ti(0,l),1===a.tag)return new ti(1,a.fields[0]);{const u=a.fields[0];let l,c;const d=e.ClaimTaxFreeThreshold.Selected;if(c=null==d?void 0:(n=d,!(1===n.tag)),l=null==c?new ti(1,"missing is tax-free threshold claimed"):new ti(0,c),1===l.tag)return new ti(1,l.fields[0]);{const n=l.fields[0],a=mn((r=e.DebtSupportCheckboxGroup.Value,null==r?void 0:mu(r)),Dn()),c=()=>0===i.tag?new ti(1,"New TFN declaration cannot have a truncated TFN"):1===i.fields[0].tag?new ti(0,new gu(1,wu(i.fields[0].fields[0]))):new ti(0,new gu(0,i.fields[0].fields[0].fields[0])),d=t.Info;if(null!=d){if(0===d.tag)return new ti(0,On(new Iu(1,new Nu(t.Meta.AccountId,0===i.tag?new Ru(2,i.fields[0]):1===i.fields[0].tag?new Ru(1,wu(i.fields[0].fields[0])):new Ru(0,i.fields[0].fields[0].fields[0]),s,o,u,n,a))));{const e=c();return 1===e.tag?new ti(1,e.fields[0]):new ti(0,On(new Iu(2,{EmploymentBasis:u,HasDebtSupport:a,IsTaxFreeThresholdClaimed:n,PreviousSurname:s,ResidencyStatus:o,TfnInformation:e.fields[0]})))}}{const e=c();return 1===e.tag?new ti(1,e.fields[0]):new ti(0,On(new Iu(0,new Au(t.Meta.AccountId,e.fields[0],s,o,u,n,a))))}}}}}}(e,r);return i=qr.Return(s),qr.Bind(i,(e=>{let o;const i=e;if(1===i.tag)return qr.Return(new ti(1,i.fields[0]));{const e=i.fields[0];if(Pn(e))return qr.Return(new ti(0,r));{const r=Hu(t,(s=new io(1,function(e,t){return JSON.stringify(t,gt(2,void 0),dn(e))}(0,function(e,t,n,r){const o=mn(t,new oi(0)),i=mn(void 0,!0);return Vu(function(e){return null!=e?Wo(((e,t)=>new Vt(t[0])),e.Coders):qo()}(void 0),o,i,e)}(gs(ms("Dto.Commands.TfnDeclarationCommandDto",[],Iu,(()=>[[["Item",ps("Dto.Commands.TfnDeclarationDetailsDto",[],Au,(()=>[["AccountId",vs],["TfnInformation",yu()],["PreviousSurname",ws(vs)],["ResidencyStatus",Tu()],["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",xs],["HasDebtSupport",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",ps("Dto.Commands.UpdateTfnDeclarationDetailsDto",[],Nu,(()=>[["AccountId",vs],["TfnInformation",ms("Dto.Commands.UpdateProvidedTfnInformationDto",[],Ru,(()=>[[["Item",vs]],[["Item",ys("Dto.Dto.ExemptionReasonDto",_s,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]],[["Item",vs]]]))],["PreviousSurname",ws(vs)],["ResidencyStatus",Tu()],["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",xs],["HasDebtSupport",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",hs(["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",xs],["PreviousSurname",ws(vs)],["ResidencyStatus",Tu()],["TfnInformation",yu()])]],[["Item",hs(["AccountId",vs],["EmploymentBasis",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",xs],["PreviousSurname",ws(vs)],["ResidencyStatus",Tu()],["TfnInformation",yu()])]],[["Item",yu()]],[["Item",ws(vs)]],[["Item",Tu()]],[["Item",ys("Dto.Dto.EmploymentBasisDto",_s,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",xs]],[["Item",gs(ys("Dto.Dto.DebtSupportDto",_s,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new oi(1))(e))),a=Xo(new ro(2),Jo(Uu(n))),o=new so(a.url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,a.timeout,s),Qo(new oo(0,"Content-Type","application/json"),o)));return qr.Bind(r,(e=>{const t=e;if(1===t.tag)return qr.Return(new ti(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=ju(e.responseText);return qr.Return(t)}return qr.Return(new ti(1,"Unexpected response from backend"))}}))}}var s,a}))}}))}))}class Yu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function qu(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Ku(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Zu(e){return e.tag,e.fields[0]}function Ju(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=Zr();var u;return u=()=>{!function(e,t){eo(qr.Delay((()=>qr.Bind(Qr(5e3),(()=>(e(),qr.Zero()))))),t)}(i,a)},Lr(u,[]),f("div",mt(jn([["className",tn(" ",["rounded-md","p-4","my-4",Ku(s)])],["data-testid","alert"],(t=[f("div",mt(jn([["className",tn(" ",["flex"])],(n=[f("p",{className:tn(" ",["text-sm","pr-2",qu(s)]),children:Zu(s)}),f("div",mt(jn([["className",tn(" ",["ml-auto"])],(r=[f("div",mt(jn([["className",tn(" ",["-mx-1.5","-my-1.5"])],(o=[f("button",{type:"button",className:tn(" ",br(hr((()=>_r(gr("inline-flex"),hr((()=>_r(gr("rounded-md"),hr((()=>_r(gr("p-1.5"),hr((()=>_r(gr("focus:outline-none"),hr((()=>_r(gr("focus:ring-2"),hr((()=>_r(gr("focus:ring-offset-2"),hr((()=>function(e){switch(e.tag){case 0:return jn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return jn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return jn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:Yn.Children.toArray([Qn]),onClick:e=>{Jr(a),i()}})],["children",Yn.Children.toArray(Array.from(o))])])))],["children",Yn.Children.toArray(Array.from(r))])])))],["children",Yn.Children.toArray(Array.from(n))])])))],["children",Yn.Children.toArray(Array.from(t))])])))}function Xu(e,t,n){Un((n=>{try{n(t)}catch(t){e(t)}}),n)}function Qu(){return Dn()}function el(e,t){return Wn((t=>n=>{t((t=>{n(e(t))}))}),t)}function tl(e){return On((t=>{t(e)}))}function nl(e,t,n,r){return On((o=>{e(t).then((e=>o(n(e)))).catch((e=>o(r(e))))}))}function rl(e,t,n,r,o){const i=function(e,t,n,r){const o=0|pt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|pt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return hr((()=>{return t=i,n=e,$r((()=>function(e,t){let n,r=t;return dr((()=>{if(null!=n){const e=n[0];return n[1],e}return ar()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class ol extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class il{constructor(e){this.state=new ol(0,bn(new Array(ht(ft,e,10)),0,ht(ft,e,10),null),0)}}function sl(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new ol(0,o,n):new ol(1,o,n,i),dn(o[r])}}class al extends Ft{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function ul(e,t,n){return new al(e,t,(e=>Qu()),n,gt(2,(e=>{const t=vt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(dn(t),n)}),gt(2,(e=>e)))}function ll(e,t){return new al(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function cl(e,t){const n=t.init(e),r=n[0],o=new il(10);let i=!1,s=r;const a=vt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new ol(1,(r=s,o=a,Array.from(hr((()=>_r(Nr(r,o),hr((()=>{return _r((e=r,t=o,xr((()=>pr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return dn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(sr+"\\nParameter name: source")}}),(e=>{qe(e)}))),hr((()=>Rr((e=>gr(null)),rl(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new ol(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new ol(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=dn(e);for(;null!=n;){const e=fn(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Xu((n=>{t.onError([Kt(Yt("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Kt(Yt("Unable to process the message: %A"))(e),n])}n=sl(o)}i=!1}}]);t.setState(r,a),Xu((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=En();let n=t;const r=e=>{n=Fn(((e,t)=>{const n=new Cn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof Cn)Un(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{qe(t)}}const o=n,i=En();return o.tail=i,Rn(t)}(jn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Qu()}})(),n[1]])))}class dl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function fl(){return new dl}function $l(e,t,n,r){cl(t,ll(((e,t)=>{!function(e,t,n){e.state=dn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),e()));const o=function(e){return e.state}(n);if(null!=o)return fn(o);throw new Error("Elmish program has not initialized")}function pl(e,t){return function(e,t,n){const r=Pr(fl)[0],o=Pr((()=>$l(e,t,r))),i=o[1];return Gr((()=>(function(e){return e.hasDisposedOnce}(r)&&i($l(e,t,r)),Or((()=>{!function(e){const t=e.state;if(null!=t){const e=fn(t);Ye(e)&&qe(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),mn(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function hl(e,t,n){return pl((()=>ul((()=>e),t,((e,t)=>{}))),n)}class ml extends Ft{constructor(e,t){super(),this.Value=e,this.Meta=t}}function wl(){return new ml(void 0,{Valid:!1})}function gl(e){return new ml(e,{Valid:!0})}function yl(e){return new ml(e,{Valid:!1})}function bl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function vl(e){switch(e){case"HELP":return new Za(0);case"VETStudentLoan":return new Za(1);case"FinancialSupplement":return new Za(2);case"StudentStartUpLoan":return new Za(3);case"TradeSupportLoan":return new Za(4);default:return}}function xl(e){switch(e){case"FullTime":return new nu(0);case"PartTime":return new nu(1);case"LabourHire":return new nu(2);case"SuperIncomeStream":return new nu(3);case"Casual":return new nu(4);default:return}}function _l(e){return f("p",{className:tn(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function Sl(e){let t;return f("div",mt(jn([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[tr,f("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Yn.Children.toArray(Array.from(t))])])))}class Cl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Tl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class El extends Ft{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function kl(e){return new El(e,{Touched:!1})}function Il(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new El(e.fields[0],t.Meta):t:new El(e.fields[0],{Touched:!0})}function Al(e){const t=ct(e.Parent.State.Selected,e.Selection)?br(hr((()=>_r(null!=e.Parent.Disable?gr("bg-gray-50"):gr("bg-white"),hr((()=>_r(gr("border-gray-200"),hr((()=>_r(gr("shadow-sm"),hr((()=>null!=e.Parent.Disable?gr("text-gray-400"):gr("text-gray-900"))))))))))))):br(hr((()=>_r(gr("shadow-none"),hr((()=>null!=e.Parent.Disable?gr("text-gray-400"):gr("text-gray-700")))))));return f("button",{className:tn(" ",br(hr((()=>_r(gr("relative"),hr((()=>_r(gr("w-1/2"),hr((()=>_r(gr("border-gray-200"),hr((()=>_r(gr("rounded-md"),hr((()=>_r(gr("shadow-sm"),hr((()=>_r(gr("py-2"),hr((()=>_r(gr("text-sm"),hr((()=>_r(gr("font-medium"),hr((()=>_r(gr("whitespace-nowrap"),hr((()=>_r(gr("focus:outline-none"),hr((()=>_r(gr("focus:ring-inset"),hr((()=>_r(gr("focus:ring-1"),hr((()=>_r(gr("focus:ring-primary-focus"),hr((()=>_r(gr("focus:z-10"),hr((()=>_r(gr("w-auto"),hr((()=>_r(gr("px-8"),hr((()=>_r(ct(e.Parent.Disable,e.Selection)?gr("disabled:cursor-not-allowed"):wr(),hr((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Tl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Gt(e.Selection)})}function Nl(e){let t;return f("div",mt(jn([["className",tn(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Al({Parent:e,Selection:new Cl(0)}),Al({Parent:e,Selection:new Cl(1)})],["children",Yn.Children.toArray(Array.from(t))])])))}class Rl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Dl extends Ft{constructor(e){super(),this.Selected=e}}function Ml(e){let t;const n=hl((r=e.InitialValue,[new Dl(r),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new Dl(e.fields[0])}(t);return e(new ml(r.Selected,{Valid:null!=r.Selected})),[r,Qu()]}(e.OnUpdate,t)));var r;return f("div",mt(jn([["className",tn(" ",["space-y-2","mt-2"])],(t=br(hr((()=>Rr((t=>{let r,o;const i=t[0];return gr(f("label",mt(jn([["className",tn(" ",["flex","items-start"])],(r=[f("input",{className:tn(" ",["focus:ring-primary-focus","block","mt-0.5","mb-0.5","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:pn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Rl(0,i))}}),f("label",mt(jn([["className",tn(" ",["ml-3","block","text-sm"])],["for",i],(o=br(hr((()=>_r(gr(f("span",{className:tn(" ",["block","text-gray-900"]),children:t[1]})),hr((()=>{const e=t[2];if(null==e)return gr(null);{const t=e;return gr(f("span",{className:tn(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Yn.Children.toArray(Array.from(o))])])))],["children",Yn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Yn.Children.toArray(Array.from(t))])])))}class Ol extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Pl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Bl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Gl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Ll extends Ft{constructor(e,t,n,r,o){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r,this.TfnInputTouched=o}}function Fl(e){let t;const n=e.EditingState;if(1===n.tag){const e=n.fields[0];return new ml((t=e.Value,null==t?void 0:new Bl(1,t)),e.Meta)}return new ml(new Bl(0,pn(e.TruncatedTfn)),{Valid:!0})}const Vl=e=>!(1===au(e).tag);function Ul(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Ll(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Gl(1,new ml(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Ll(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Gl(1,new ml(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Ll(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Gl(1,new ml(n.Value,{Valid:Vl(t)})),e.TfnInputTouched)}}return e}function Hl(e){const t=e.EditingState;if(1!==t.tag)return"";{const e=t.fields[0].Value;let n,r;switch(null!=e&&0===e.tag?(n=0,r=e.fields[0]):n=1,n){case 0:return r.fields[0];case 1:return""}}}function jl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function zl(e){let t,n,r,o;const i=hl(function(e){let t,n,r;return[Ul(new Ll(kl(null!=e&&1===e.tag&&1===e.fields[0].tag?new Cl(1):new Cl(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Gl(1,wl()):1===e.tag?(r=e.fields[0],new Gl(1,new ml(r,{Valid:!1}))):new Gl(0),!1)),Qu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Ll(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Pl(0,new ru(0,n)),o=Vl(n);return t.EditingState.tag,new Ll(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Gl(1,new ml(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0];let r,o;const i=n.Value;return o=null==i?void 0:function(e){switch(e){case"Under18AndBelowTaxThreshold":return new ou(0);case"Pending":return new ou(1);case"Pensioner":return new ou(2);default:return}}(i),r=null==o?void 0:new Pl(1,o),t.EditingState.tag,new Ll(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Gl(1,new ml(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Ll(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Gl(0),t.TfnInputTouched):new Ll(t.YesNoButtonGroup,t.TruncatedTfn,new Yu(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Gl(1,wl()),!1);case 5:return Ul(new Ll(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState,t.TfnInputTouched));default:{const n=e.fields[0];let r,o,i;switch(n.tag,o=0,i=n.fields[0],o){case 0:{const e=[i,t.EditingState];if(1===e[0].tag)if(1===e[1].tag){const n=e[1].fields[0].Value;let o;switch(o=null!=n&&1===n.tag?0:1,o){case 0:r=t.EditingState;break;case 1:r=new Gl(1,wl())}}else r=new Gl(1,wl());else if(1===e[1].tag){const n=[e[1].fields[0].Value,t.TruncatedTfn];let o;switch(o=null!=n[0]&&0===n[0].tag?0:null!=n[1]?1:2,o){case 0:r=t.EditingState;break;case 1:r=new Gl(0);break;case 2:r=new Gl(1,wl())}}else r=new Gl(0);break}}return new Ll(Il(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(Fl(r)),[r,Qu()]}(e.OnUpdate,t,n))),s=i[0],a=i[1],u=null==s.TruncatedTfn?null:f("div",mt(On((t=[f("button",mt(jn([["className",tn(" ",["relative","inline-flex","items-center","space-x-2","px-3","sm:py-2","py-3","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=br(hr((()=>ct(s.EditingState,new Gl(0))?_r(gr(Kn),hr((()=>gr(f("span",{children:["Edit"]}))))):_r(gr(Zn),hr((()=>gr(f("span",{children:["Cancel"]})))))))),["children",Yn.Children.toArray(Array.from(n))]),["onClick",e=>{a(new Ol(4))}]])))],["children",Yn.Children.toArray(Array.from(t))]))));return f("div",mt(jn([["className",tn(" ",nr)],(r=[_l("Do you have your Tax File Number (TFN)?"),f(Nl,{Disable:void 0,Dispatch:e=>{a(new Ol(0,e))},State:s.YesNoButtonGroup}),f("div",mt(jn([["className",tn(" ",["mt-4"])],(o=br(hr((()=>{let e,t,n,r,o,i;return _r((e=s.YesNoButtonGroup.Selected,null!=e?1===e.tag?gr(f(Ml,(t=Wn((e=>[Gt(e[0]),e[1],e[2]]),jn([[new ou(1),"My TFN is pending",void 0],[new ou(0),"I'm under 18 and don't have a TFN",void 0],[new ou(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=Fl(s).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Gt(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{a(new Ol(3,e))},ValueLabelPairs:t}))):(o=[s.TruncatedTfn,s.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],_r(gr(_l("Enter your TFN")),hr((()=>{let e,t,n;return gr(f("div",mt(jn([["className",tn(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[f("div",mt(jn([["className","relative flex items-stretch flex-grow"],(t=[f("input",mt(jn([["className",tn(" ",["focus:ring-primary-focus","focus:border-primary-focus","bg-gray-50","focus:z-20","relative","block","w-full","rounded-none","rounded-l-md","pl-3","sm:text-sm","text-base","border","border-gray-300","text-gray-500"])],["disabled",!0],(n=`*** *** *${i}`,["ref",e=>{null==e||ct(e.value,n)||(e.value=n)}])])))],["children",Yn.Children.toArray(Array.from(t))])]))),u],["children",Yn.Children.toArray(Array.from(e))])]))))})))):_r(gr(_l("Enter your TFN")),hr((()=>{let e;return gr(f("div",mt(jn([["className",tn(" ",["mt-1"])],(e=br(hr((()=>{let e,t;return _r(gr(f("div",mt(jn([["className",tn(" ",["relative","flex","items-stretch","flex-grow"])],(e=[f("input",mt(jn([["className",tn(" ",br(hr((()=>_r(gr("block"),hr((()=>_r(gr("w-full"),hr((()=>_r(gr("focus:outline-none"),hr((()=>_r(gr("text-base"),hr((()=>_r(gr("focus:z-20"),hr((()=>_r(gr("relative"),hr((()=>_r(gr("sm:text-sm"),hr((()=>_r(gr("rounded-md"),hr((()=>_r(gr("border-gray-300"),hr((()=>_r(gr("focus:ring-primary-focus"),hr((()=>_r(gr("focus:border-primary-focus"),hr((()=>_r(gr("block"),hr((()=>_r(gr("w-full"),hr((()=>_r(null==s.TruncatedTfn?gr("rounded-md"):gr("rounded-none rounded-l-md"),hr((()=>jl(s)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:wr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{a(new Ol(1,sn(Oa,e.target.value)))}],(t=Hl(s),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{a(new Ol(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Yn.Children.toArray(Array.from(e))])])))),hr((()=>jl(s)?gr(f("div",{className:tn(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):wr())))}))),["children",Yn.Children.toArray(Array.from(e))])]))))})))):gr(null)),hr((()=>{let e;return gr((e=br(hr((()=>{const e=s.CurrentAlert;return gr(null==e?null:f(Ju,{alert:e,hideAlert:()=>{a(new Ol(5))}}))}))),f("div",{children:Yn.Children.toArray(Array.from(e))})))})))}))),["children",Yn.Children.toArray(Array.from(o))])])))],["children",Yn.Children.toArray(Array.from(r))])])))}let Wl="undefined"!=typeof window?ee:Q;function Yl(e){let t=te(e);return Wl((()=>{t.current=e}),[e]),t}function ql(e,t){let[n,r]=J(e),o=Yl(e);return Wl((()=>r(o.current)),[o,r,...t]),n}function Kl(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function Zl(){let[e]=J(Kl);return Q((()=>()=>e.dispose()),[e]),e}let Jl=function(e){let t=Yl(e);return je.useCallback(((...e)=>t.current(...e)),[t])},Xl={serverHandoffComplete:!1};var Ql;let ec=0;function tc(){return++ec}let nc=null!=(Ql=je.useId)?Ql:function(){let e=function(){let[e,t]=J(Xl.serverHandoffComplete);return Q((()=>{!0!==e&&t(!0)}),[e]),Q((()=>{!1===Xl.serverHandoffComplete&&(Xl.serverHandoffComplete=!0)}),[]),e}(),[t,n]=je.useState(e?tc:null);return Wl((()=>{null===t&&n(tc())}),[t]),null!=t?""+t:void 0};function rc(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,rc),r}function oc(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ic=["[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 sc=(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))(sc||{}),ac=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ac||{}),uc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(uc||{}),lc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(lc||{});function cc(e,t,n){let r=Yl(t);Q((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function dc(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function fc(e,t){let[n,r]=J((()=>dc(e)));return Wl((()=>{r(dc(e))}),[e.type,e.as]),Wl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let $c=Symbol();function pc(...e){let t=te(e);Q((()=>{t.current=e}),[e]);let n=Jl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[$c])))?void 0:n}var hc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(hc||{});var mc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(mc||{}),wc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(wc||{});function gc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=bc(t,e);if(i)return yc(a,n,r,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=a;if(e)return yc(t,n,r,s)}if(1&u){let{unmount:e=!0,...t}=a;return rc(e?0:1,{0:()=>null,1:()=>yc({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return yc(a,n,r,s)}function yc(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=_c(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof i?i(t):i;a.className&&"function"==typeof a.className&&(a.className=a.className(t));let c={};if(o===p&&Object.keys(xc(a)).length>0){if(!Ve(l)||Array.isArray(l)&&l.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((e=>` - ${e}`)).join("\n"),"","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((e=>` - ${e}`)).join("\n")].join("\n"));return Ue(l,Object.assign({},bc(l.props,xc(_c(a,["ref"]))),c,u))}return f(o,Object.assign({},_c(a,["ref"]),o!==p&&u,o!==p&&c),l)}function bc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function vc(e){var t;return Object.assign(me(e),{displayName:null!=(t=e.displayName)?t:e.name})}function xc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function _c(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Sc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Tc(n,Cc(t,r),o);return n}function Cc(e,t){return e?e+"["+t+"]":t}function Tc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Tc(e,Cc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Sc(n,t,e)}var Ec=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ec||{});let kc=vc((function(e,t){let{features:n=1,...r}=e;return gc({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),Ic=B(null);Ic.displayName="OpenClosedContext";var Ac=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ac||{});function Nc({value:e,children:t}){return je.createElement(Ic.Provider,{value:e},t)}var Rc=(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))(Rc||{}),Dc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Dc||{}),Mc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Mc||{}),Oc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Oc||{}),Pc=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(Pc||{});function Bc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Gc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Bc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Bc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=Bc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Lc=B(null);function Fc(e){let t=oe(Lc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fc),t}return t}Lc.displayName="ComboboxActionsContext";let Vc=B(null);function Uc(e){let t=oe(Vc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Uc),t}return t}function Hc(e,t){return rc(t.type,Gc,e,t)}Vc.displayName="ComboboxDataContext";let jc=p,zc=vc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:s=!1,nullable:a=!1,multiple:u=!1,...l}=e,[c,d]=X(Hc,{dataRef:{current:null},comboboxState:s?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),f=te(!1),$=te({static:!1,hold:!1}),p=te({displayValue:void 0}),h=te(null),m=te(null),w=te(null),g=te(null),y=Jl(((e,t)=>e===t)),b=re((e=>rc(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=ne((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:w,optionsRef:g,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(f.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:a,__demoMode:s})),[r,i,u,a,s,c]);Wl((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=te(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),s=o(n);if(null!==s&&s.ownerDocument.documentElement.contains(s)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(s))return}return!function(e,t=0){var n;return e!==(null==(n=oc(e))?void 0:n.body)&&rc(t,{0:()=>e.matches(ic),1(){let t=e;for(;null!==t;){if(t.matches(ic))return!0;t=t.parentElement}return!1}})}(s,lc.Loose)&&-1!==s.tabIndex&&n.preventDefault(),t(n,s)}}Q((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),cc("click",(e=>o(e,(e=>e.target))),!0),cc("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>d({type:1})),0===v.comboboxState);let x=ne((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=re((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=Jl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Jl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),d({type:2,focus:hc.Specific,id:t})}})),T=Jl((()=>{d({type:0}),f.current=!0})),E=Jl((()=>{d({type:1}),f.current=!1})),k=Jl(((e,t,n)=>(f.current=!1,e===hc.Specific?d({type:2,focus:hc.Specific,id:t,trigger:n}):d({type:2,focus:e,trigger:n})))),I=Jl(((e,t)=>(d({type:3,id:e,dataRef:t}),()=>d({type:4,id:e})))),A=Jl((e=>rc(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=ne((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:E,openCombobox:T,selectActiveOption:C,selectOption:S})),[]);Wl((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Wl(_,[_]);let R=null===t?{}:{ref:t};return je.createElement(Lc.Provider,{value:N},je.createElement(Vc.Provider,{value:v},je.createElement(Nc,{value:rc(v.comboboxState,{0:Ac.Open,1:Ac.Closed})},null!=n&&null!=r&&Sc({[n]:r}).map((([e,t])=>je.createElement(kc,{features:Ec.Hidden,...xc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),gc({ourProps:R,theirProps:l,slot:x,defaultTag:jc,name:"Combobox"}))))})),Wc=vc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:s,type:a="text",...u}=e,l=Uc("Combobox.Input"),c=Fc("Combobox.Input"),d=pc(l.inputRef,t),f=l.inputPropsRef,$=`headlessui-combobox-input-${nc()}`,p=Zl();Wl((()=>{f.current.displayValue=s}),[s,f]);let h=Jl((e=>{switch(e.key){case Rc.Backspace:case Rc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(hc.Nothing))}));break;case Rc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case Rc.ArrowDown:return e.preventDefault(),e.stopPropagation(),rc(l.comboboxState,{0:()=>{c.goToOption(hc.Next)},1:()=>{c.openCombobox()}});case Rc.ArrowUp:return e.preventDefault(),e.stopPropagation(),rc(l.comboboxState,{0:()=>{c.goToOption(hc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(hc.Last)}))}});case Rc.Home:case Rc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(hc.First);case Rc.End:case Rc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(hc.Last);case Rc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Rc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Jl((e=>{c.openCombobox(),null==i||i(e)})),w=ql((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=ne((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return gc({ourProps:{ref:d,id:$,role:"combobox",type:a,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Yc=vc((function(e,t){var n;let r=Uc("Combobox.Button"),o=Fc("Combobox.Button"),i=pc(r.buttonRef,t),s=`headlessui-combobox-button-${nc()}`,a=Zl(),u=Jl((e=>{switch(e.key){case Rc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Rc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),a.nextFrame((()=>{r.value||o.goToOption(hc.Last)}))),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Rc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=Jl((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=ql((()=>{if(r.labelRef.current)return[r.labelRef.current.id,s].join(" ")}),[r.labelRef.current,s]),d=ne((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),f=e;return gc({ourProps:{ref:i,id:s,type:fc(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:f,slot:d,defaultTag:"button",name:"Combobox.Button"})})),qc=vc((function(e,t){let n=Uc("Combobox.Label"),r=`headlessui-combobox-label-${nc()}`;return gc({ourProps:{ref:pc(n.labelRef,t),id:r,onClick:Jl((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:ne((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),Kc=mc.RenderStrategy|mc.Static,Zc=vc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Uc("Combobox.Options"),s=pc(i.optionsRef,t),a=`headlessui-combobox-options-${nc()}`,u=oe(Ic),l=null!==u?u===Ac.Open:0===i.comboboxState;Wl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Wl((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=te(t),i=te(n);Q((()=>{o.current=t,i.current=n}),[t,n]),Wl((()=>{if(!e||!r)return;let t=oc(e);if(!t)return;let n=o.current,s=i.current,a=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a,!1);for(;u.nextNode();)s(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=ql((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),d=ne((()=>({open:0===i.comboboxState})),[i]);return gc({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:a,ref:s},theirProps:o,slot:d,defaultTag:"ul",features:Kc,visible:l,name:"Combobox.Options"})})),Jc=vc((function(e,t){var n,r;let{disabled:o=!1,value:i,...s}=e,a=Uc("Combobox.Option"),u=Fc("Combobox.Option"),l=`headlessui-combobox-option-${nc()}`,c=null!==a.activeOptionIndex&&a.options[a.activeOptionIndex].id===l,d=a.isSelected(i),f=te(null),$=Yl({disabled:o,value:i,domRef:f,textValue:null==(r=null==(n=f.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=pc(t,f),h=Jl((()=>u.selectOption(l)));Wl((()=>u.registerOption(l,$)),[$,l]);let m=te(!a.__demoMode);Wl((()=>{if(!a.__demoMode)return;let e=Kl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Wl((()=>{if(0!==a.comboboxState||!c||!m.current||0===a.activationTrigger)return;let e=Kl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,c,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let w=Jl((e=>{var t;if(o)return e.preventDefault();h(),0===a.mode&&(u.closeCombobox(),null==(t=a.inputRef.current)||t.focus({preventScroll:!0}))})),g=Jl((()=>{if(o)return u.goToOption(hc.Nothing);u.goToOption(hc.Specific,l)})),y=Jl((()=>{o||c||u.goToOption(hc.Specific,l,0)})),b=Jl((()=>{o||!c||a.optionsPropsRef.current.hold||u.goToOption(hc.Nothing)})),v=ne((()=>({active:c,selected:d,disabled:o})),[c,d,o]);return gc({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===d||void 0,disabled:void 0,onClick:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:s,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Xc=Object.assign(zc,{Input:Wc,Button:Yc,Label:qc,Options:Zc,Option:Jc});class Qc extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class ed extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function td(e){const t=Ga(e,1);return f(Xc.Input,t)}class nd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function rd(e,t){const n=Ga(e,1);return f(Xc.Options,n,...t)}class od extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function id(e){const t=Ga(e,1);return f(Xc.Button,t)}class sd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class ad extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class ud extends Ft{constructor(e){super(),this.ResidencyStatus=e}}function ld(e){return function(e){let t,n;switch(null==e?t=2:1===e.tag?t=0:2===e.tag?(t=1,n=e.fields[0]):t=0,t){case 0:return!0;case 1:return null!=n.HomeCountry;case 2:return!1}}(e)?gl(e):yl(e)}function cd(e){return new ud(ld(e.ResidencyStatus.Value))}function dd(e,t,n){let r,o;const i=Hr(""),s=e=>{let t,n;return mn((n=Xa(e),t=1===n.tag?void 0:n.fields[0],null==t?void 0:t.Name),"")};let a;const u=$n(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:a=t;break;case 1:d=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Pt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},a=function(e,t){return Lo(e.comparer,Eo(e.comparer,t,e.tree))}(t,d)}var d;return function(e){const t=Ga(e,1);return f(Xc,t)}(jn([new Qc(0,s(e)),new Qc(1,n),new Qc(2,[f("div",mt(jn([["className","relative mt-1"],(r=[f("div",mt(jn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[td(jn([new ed(0,s(e)),new ed(2,"block w-full pr-10 focus:outline-none text-base sm:text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new ed(1,(e=>{i[1](e.target.value)})),new ed(3,"off")])),id(jn([new od(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new od(1,[er])]))],["children",Yn.Children.toArray(Array.from(o))])]))),rd(On(new nd(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),br(hr((()=>_r(0===Uo(a)?gr(f("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Yn.Children.toArray(["Nothing found"])})):wr(),hr((()=>Rr((e=>{const t=e,n=t[0];return gr(function(e){const t=Ga(e,1);return f(Xc.Option,t)}(jn([new sd(0,n),new sd(1,n),new sd(2,"relative cursor-default select-none"),new sd(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[f("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),a))))))))],["children",Yn.Children.toArray(Array.from(r))])])))])]))}function fd(e){let t;const n=hl((r=e.InitialValue,[cd(new ud(yl(r))),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n;if(1===e.tag){let t;const n=Xa(mn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],cd(new ud(yl(null==t?eu:tu(t))))}return cd(new ud(yl((n=e.fields[0].Value,null==n?void 0:function(e){switch(e){case"AustralianResidentForTaxPurposes":return new Qa(0);case"ForeignResidentForTaxPurposes":return new Qa(1);case"WorkingHolidayMaker":return eu;default:return}}(n)))))}(t);return e(r.ResidencyStatus),[r,Qu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return f("div",mt(On((t=br(hr((()=>_r(gr(_l("Are you an Australian resident for tax purposes or a working holiday maker?")),hr((()=>{let e,t;return _r(gr(f(Ml,(e=Wn((e=>[bl(e[0]),e[1],e[2]]),jn([[new Qa(0),"Australian resident for tax purposes",void 0],[new Qa(1),"Foreign resident",void 0],[new Qa(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:(t=o.ResidencyStatus.Value,null==t?void 0:bl(t)),Name:"ResidencyStatus",OnUpdate:e=>{i(new ad(0,e))},ValueLabelPairs:e}))),hr((()=>{let e,t;const n=o.ResidencyStatus.Value;let r,s;switch(null!=n&&2===n.tag?(r=0,s=n.fields[0]):r=1,r){case 0:return gr(f("div",mt(jn([["className",tn(" ",["mt-4"])],(e=[_l("Your home country where your visa was issued"),dd(mn((t=s.HomeCountry,null==t?void 0:t.Code),""),Ka,(e=>{i(new ad(1,gl(e)))}))],["children",Yn.Children.toArray(Array.from(e))])]))));case 1:return gr(null)}})))})))))),["children",Yn.Children.toArray(Array.from(t))]))))}class $d extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class pd extends Ft{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}function hd(e){switch(e.tag){case 1:case 2:case 4:default:return gl(e);case 3:return wl()}}function md(e,t){let n;if(0===t.tag){const r=t.fields[0];let o;const i=r.TfnInformation;if(1===i.tag){const e=function(e){switch(e){case 0:return new ti(0,new ou(0));case 1:return new ti(0,new ou(1));case 2:return new ti(0,new ou(2));default:return new ti(1,"Invalid ExemptionReason")}}(i.fields[0]);o=1===e.tag?new ti(1,e.fields[0]):new ti(0,new Bl(1,new Pl(1,e.fields[0])))}else o=new ti(0,new Bl(0,i.fields[0]));if(1===o.tag)return new ti(1,o.fields[0]);{const t=du(r.ResidencyStatusV2);if(1===t.tag)return new ti(1,t.fields[0]);{const i=t.fields[0],s=1===i.tag||2===i.tag?new Cl(1):r.IsTaxFreeThresholdClaimed?new Cl(0):new Cl(1),a=hu(r.HasDebtSupport);if(1===a.tag)return new ti(1,a.fields[0]);{const t=a.fields[0],u=fu(r.EmploymentBasis);return 1===u.tag?new ti(1,u.fields[0]):new ti(0,new pd(e.PreExistingTfnDec,e.CurrentAlert,gl(o.fields[0]),gl((n=r.PreviousSurname,null==n?void 0:new iu(0,n))),ld(i),kl(s),Pn(t)?gl(void 0):gl(t),hd(u.fields[0])))}}}}{const n=t.fields[0];let r,o;const i=n.ResidencyStatusV2;if(o=null==i?void 0:du(i),null!=o){const e=o;r=1===e.tag?new ti(1,e.fields[0]):new ti(0,e.fields[0])}else r=new ti(0,void 0);if(1===r.tag)return new ti(1,r.fields[0]);{const t=fu(n.EmploymentBasis);return 1===t.tag?new ti(1,t.fields[0]):new ti(0,new pd(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,ld(r.fields[0]),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,hd(t.fields[0])))}}}class wd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function gd(){const e=on(document.URL,["/"],null,0),t=xn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=xn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[$n(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new ti(0,new wd(2,r[0]));case 1:return new ti(0,new wd(0));case 2:return new ti(0,new wd(1));case 3:return new ti(1,"Could not determine the embed mode")}}class yd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function bd(e){return Gt(e)}function vd(e,t){let n;switch(e.tag){case 1:return[new pd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 2:{const r=e.fields[0];return[new pd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?Qu():1===n.tag?tl(new $d(3,new Tl(1,new Cl(1),!1))):2===n.tag?tl(new $d(3,new Tl(1,new Cl(1),!0))):tl(new $d(3,new Tl(1,new Cl(0),!1))))]}case 3:return[new pd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,Il(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 4:return[new pd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Qu()];case 5:{const n=gn(xl,e.fields[0].Value);return[new pd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new ml(n,{Valid:null!=n})),Qu()]}case 6:{const n=e.fields[0],r=new pd(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=tl(new $d(7,new Yu(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=$n(document.getElementById("external-loading-page-container"));Er((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),hn(n))}();const i=tl(new $d(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=wn((e=>md(r,e)),n.fields[0].fields[0].Info);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new pd(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 8:return[new pd(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 9:return[new pd(new to(2,new ti(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 10:return function(){const e=gd();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",dn(Dn()))}(),[t,Qu()];default:return[new pd(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()]}}class xd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class _d extends Ft{constructor(e,t){super(),this.Text=e,this.Meta=t}}class Sd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function Cd(e){let t;const n=hl(function(e,t){const n=mn(e,"");return[new _d(n,{Touched:!1,Valid:t(n)}),Qu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new _d(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new _d(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new ml(o.Text,{Valid:o.Meta.Valid})),[o,Qu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return f("div",mt(jn([["className",tn(" ",zn(e.AdditionalWrapperClasses,On("z-10")))],(t=br(hr((()=>_r(gr(f("input",mt(br(hr((()=>_r(gr(["className",tn(" ",zn(e.AdditionalInputClasses,zn(jn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),br(hr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:wr()))))))]),hr((()=>_r(gr(["type","text"]),hr((()=>_r(gr(["onChange",t=>{const n=t.target.value;o(new xd(0,1===e.InputType.tag?n:sn(Oa,n)))}]),hr((()=>{let t;return _r(gr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),hr((()=>_r(gr(["onBlur",e=>{o(new xd(1))}]),hr((()=>_r(ct(e.InputType,new Sd(0))?gr(["inputMode","numeric"]):wr(),hr((()=>gr(["data-testid",e.TestId]))))))))))}))))))))))))))),hr((()=>!r.Meta.Valid&&r.Meta.Touched?gr(f("div",{className:tn(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):wr())))))),["children",Yn.Children.toArray(Array.from(t))])])))}class Td extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Ed extends Ft{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function kd(e){return!en(e)}function Id(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Ed(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!1})):1===t.tag?new Ed(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!0})):new Ed(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:mn(wn((e=>kd(e.fields[0])),e.Data.Value),!1)}))}function Ad(e){let t;const n=hl((r=e.InitialValue,[Id(new Ed(kl(new Cl(null==r?1:0)),new ml(r,{Valid:!1}))),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Id(1===e.tag?(n=e.fields[0],new Ed(t.YesNoButtonGroup,new ml(wn((e=>new iu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new ml(void 0,t.Data.Meta):t.Data,new Ed(Il(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Qu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return f("div",mt(jn([["className",tn(" ",nr)],(t=br(hr((()=>_r(gr(_l("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),hr((()=>_r(gr(f(Nl,{Disable:void 0,Dispatch:e=>{i(new Td(0,e))},State:o.YesNoButtonGroup})),hr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return gr(f("div",mt(jn([["className",tn(" ",["mt-4"])],(e=[_l("Enter your previous surname"),f(Cd,{AdditionalInputClasses:jn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:On("mt-1"),InitialValue:wn(su,o.Data.Value),InputType:new Sd(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Td(1,e))},TestId:"surname-input",Validator:kd})],["children",Yn.Children.toArray(Array.from(e))])]))));case 1:return gr(null)}}))))))))),["children",Yn.Children.toArray(Array.from(t))])])))}const Nd=jn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),Rd=jn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Dd=jn(["text-sm","text-primary-base","leading-3","font-medium"]),Md=jn(["ml-6","flex","items-center"]),Od=jn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function Pd(e){let t,n,r,o;const i=e.content,s=e.title,a=Hr(!0),u=a[0];return f("div",mt(jn([["className",tn(" ",Nd)],(t=[(n=On(f("button",mt(jn([["type","button"],["className",tn(" ",Rd)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[f("span",{className:tn(" ",Dd),children:s}),f("span",mt(jn([["className",tn(" ",Md)],(o=br(hr((()=>gr(u?Xn:Jn)))),["children",Yn.Children.toArray(Array.from(o))])])))],["children",Yn.Children.toArray(Array.from(r))])])))),f("h3",{children:Yn.Children.toArray(Array.from(n))})),f("div",{className:tn(" ",zn(Od,br(hr((()=>u?gr("hidden"):wr()))))),children:Yn.Children.toArray([i])})],["children",Yn.Children.toArray(Array.from(t))])])))}class Bd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Gd extends Ft{constructor(e){super(),this.Selected=e}}function Ld(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(In(o))return;if(e(Nn(o)))return r;t=r+1,n=Rn(o)}})(0,t)}((t=>e===t),t.Selected)}function Fd(e,t,n){const r=function(e,t){const n=e.fields[0];return Ld(n,t)?new Gd(function(e,t){const n=En(),r=Fn(((t,n)=>{if(e(n)){const e=new Cn(n,void 0);return t.tail=e,e}return t}),n,t),o=En();return r.tail=o,Rn(n)}((e=>n!==e),t.Selected)):new Gd(zn(On(n),t.Selected))}(t,n);return e(r.Selected),[r,Qu()]}function Vd(e){let t;const n=hl((r=e.InitialValue,[new Gd(r),Qu()]),((t,n)=>Fd(e.OnUpdate,t,n)));var r;return f("fieldset",mt(jn([["className",tn(" ",["space-y-2","mt-2"])],(t=br(hr((()=>Rr((e=>{let t,r,o;const i=e[0];return gr(f("div",mt(jn([["className",tn(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Bd(0,i))}],(t=[f("div",mt(jn([["className",tn(" ",["flex","items-center","h-5"])],(r=[f("input",{className:tn(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Ld(i,n[0])})],["children",Yn.Children.toArray(Array.from(r))])]))),f("div",mt(jn([["className",tn(" ",["ml-3","text-sm"])],(o=[f("label",{className:tn(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Yn.Children.toArray(Array.from(o))])])))],["children",Yn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Yn.Children.toArray(Array.from(t))])])))}class Ud extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Hd extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class jd extends Ft{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function zd(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new jd(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new jd(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!0}),e.DisableReason):new jd(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,An(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function Wd(e){let t;const n=hl(function(e,t,n){let r;const o=e.Value;let i,s;switch(i=null==o||Pn(o)?0:1,i){case 0:r=new Cl(1);break;case 1:r=new Cl(0)}const a=[t,n];let u;switch(u=null!=a[0]?null!=a[1]?1===a[1].tag?function(e){let t;switch(t=1===e.tag&&1===e.fields[0].tag?1:0,t){case 0:return!0;case 1:return!1}}(a[0])?3:1:2===a[1].tag?2:3:3:null!=a[1]?1===a[1].tag?0:2===a[1].tag?2:3:3,u){case 0:case 1:s=new Hd(0);break;case 2:s=new Hd(1);break;case 3:s=void 0}const l=null==s?Qu():tl(new Ud(0,new Tl(1,new Cl(1),!0)));return[zd(new jd(kl(r),e,s)),l]}(e.InitialValue,e.TfnInfo,e.ResidencyStatus),((t,n)=>function(e,t,n){const r=function(e,t){let n,r;return zd(1===e.tag?new jd(t.YesNoButtonGroup,gl(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?gl(void 0):t.Data,new jd(Il(n,t.YesNoButtonGroup),r,t.DisableReason)))}(t,n);return e(r.Data),[r,Qu()]}(e.OnUpdate,t,n)),[e.TfnInfo,e.ResidencyStatus]),r=n[0],o=n[1];return f("div",mt(jn([["className",tn(" ",nr)],(t=br(hr((()=>_r(gr(_l("Do you have any outstanding study and training support loans?")),hr((()=>_r(gr(f(Nl,{Disable:wn((e=>new Cl(0)),r.DisableReason),Dispatch:e=>{o(new Ud(0,e))},State:r.YesNoButtonGroup})),hr((()=>{let t;return _r((t=r.DisableReason,null!=t?1===t.tag?gr(Sl("Working holiday makers are ineligible for study and training support loans.")):gr(Sl("You must provide your TFN to declare any outstanding study and training support loans.")):gr(null)),hr((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let s;switch(s=null!=i&&0===i.tag?0:1,s){case 0:return gr(f("div",mt(jn([["className",tn(" ",["mt-4"])],(t=[f(Vd,(n=Wn((e=>[Gt(e[0]),e[1]]),jn([[new Za(0),"Higher Education Loan Program (HELP)"],[new Za(1),"VET Student Loan (VSL)"],[new Za(2),"Financial Supplement (FS)"],[new Za(3),"Student Start-up Loan (SSL)"],[new Za(4),"Trade Support Loan (TSL)"]])),{InitialValue:mn(wn((e=>Wn(Gt,e)),e.InitialValue.Value),Dn()),OnUpdate:e=>{o(new Ud(1,function(e,t){const n=En(),r=Fn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new Cn(fn(r),void 0);return t.tail=e,e}}),n,t),o=En();return r.tail=o,Rn(n)}(vl,e)))},ValueLabelPairs:n}))],["children",Yn.Children.toArray(Array.from(t))])]))));case 1:return gr(null)}})))}))))))))),["children",Yn.Children.toArray(Array.from(t))])])))}function Yd(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid&&e.DebtSupportCheckboxGroup.Meta.Valid)&&!ct(t,new to(1))}function qd(){return f("hr",{className:tn(" ",["my-8"])})}const Kd=f("div",mt(jn([["className",tn(" ",["space-y-2"])],(()=>{const e=[f("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),f("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),f("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",Yn.Children.toArray(Array.from(e))]})()]))),Zd=f("div",mt(jn([["className",tn(" ",["space-y-2"])],(()=>{const e=[f("p",{children:["If you are an Australian resident for tax purposes and this is your main job, you can claim the tax-free threshold. This means that you pay no tax on the first $18,200 of your income."]}),f("p",{children:["You are also eligible to claim the threshold if you are a foreign resident in receipt of an Australian Government pension or allowance. This is classified as an Australian resident for tax purposes."]}),f("p",{children:["Foreign residents and working holiday makers are ineligible to claim the threshold."]})];return["children",Yn.Children.toArray(Array.from(e))]})()])));function Jd(e){const t=e.backendUrl,n=e.accessToken,r=hl([new pd(new to(0),void 0,wl(),gl(void 0),gl(new Qa(0)),kl(new Cl(0)),gl(void 0),gl(new nu(0))),Qu()],vd),o=r[0],i=r[1];Lr(no((()=>zu(n,t)),(e=>{i(new $d(6,e))})),[]);const s=Hr(new to(0)),a=s[0],u=no((()=>function(e,t,n,r){let o;const i=Wu(e,t,n);return o=qr.Bind(i,(e=>{let t;const n=e;return 1===n.tag||r(new Yu(0,"Your tax declaration has been saved.")),t=n,qr.Return(t)})),qr.Bind(o,(e=>{let t;const n=e;return 1===n.tag&&r(new Yu(1,"There was an error saving your tax declaration. Please try saving again.")),t=n,qr.Return(t)}))}(o,n,t,(e=>{i(new $d(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(eo(qr.Delay((()=>qr.Bind(Qr(400),(()=>(function(){let e;const t=gd();var n;0===t.tag&&(0===t.fields[0].tag?Er((e=>{window.parent.location.href=e}),hn((n=new yd(0),$n(sessionStorage.getItem(bd(n)))))):1===t.fields[0].tag?Er((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),hn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),qr.Zero())))))),i(new $d(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return f("div",{children:["Please wait..."]});default:{const e=br(hr((()=>{let e,t;return _r((e=o.CurrentAlert,null==e?gr(null):(t=e,gr(f(Ju,{alert:t,hideAlert:()=>{i(new $d(8))}})))),hr((()=>_r(gr(f("h3",{className:tn(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),hr((()=>_r(gr(f(zl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new $d(0,e))}})),hr((()=>_r(gr(qd()),hr((()=>_r(gr(f(Ad,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new $d(1,e))}})),hr((()=>_r(gr(qd()),hr((()=>_r(gr(f(fd,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new $d(2,e))}})),hr((()=>_r(gr(f(Pd,{title:"About residency",content:Kd})),hr((()=>_r(gr(qd()),hr((()=>{let e,t;return _r(gr(f("div",mt(jn([["className",tn(" ",nr)],(e=[_l("Would you like to claim the tax-free threshold from this employer?"),f(Nl,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new Cl(0)),Dispatch:e=>{i(new $d(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Yn.Children.toArray(Array.from(e))])])))),hr((()=>{let e;return _r((e=o.ResidencyStatus.Value,null!=e?2===e.tag?gr(Sl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?gr(Sl("Foreign residents are ineligible to claim the tax-free threshold.")):gr(null):gr(null)),hr((()=>_r(gr(f(Pd,{title:"About the tax-free threshold",content:Zd})),hr((()=>_r(gr(qd()),hr((()=>_r(gr(f(Wd,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new $d(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),hr((()=>_r(gr(qd()),hr((()=>_r(gr(_l("On what basis are you paid?")),hr((()=>_r(gr(f("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),hr((()=>{let e,t;return _r(gr(f(Ml,(e=Wn((e=>[Gt(e[0]),e[1],e[2]]),jn([[new nu(0),"Full-time",void 0],[new nu(1),"Part-time",void 0],[new nu(2),"Labour Hire",void 0],[new nu(4),"Casual",void 0]])),{InitialValue:(t=o.EmploymentBasisRadioButtonGroup.Value,null==t?void 0:Gt(t)),Name:"EmploymentBasis",OnUpdate:e=>{i(new $d(5,e))},ValueLabelPairs:e}))),hr((()=>_r(gr(qd()),hr((()=>_r(gr(f("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"By clicking ‘Save and continue’ you declare that the information you have provided is true and correct."})),hr((()=>{let e;return gr(f("div",mt(jn([["className",tn(" ",["text-center"])],(e=[f("button",{className:tn(" ",["w-full","max-w-320","px-10","py-2","mt-8","mb-10","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus","disabled:bg-gray-100","disabled:text-gray-400","disabled:border-gray-300","disabled:cursor-not-allowed"]),type:"button",disabled:!Yd(o,a),onClick:e=>{Yd(o,a)&&u()},children:"Save and continue","data-testid":"continue-button"})],["children",Yn.Children.toArray(Array.from(e))])]))))})))))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return f("form",{children:Yn.Children.toArray(Array.from(e))})}}}const Xd=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function Qd(e){return wn((e=>e.passive&&!Xd?{capture:e.capture,once:e.once,passive:!1}:e),e)}function ef(e){return gn((e=>e.capture?{capture:!0}:void 0),e)}function tf(e,t){return 0===t.indexOf(e)?t:void 0}function nf(e,t){return Qt(t,e)?t:void 0}function rf(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=tf("/",e),null!=t?(n=t,"#"+n):(r=tf("#/",e),null!=r?(o=r,o):(i=tf("#",e),null!=i?(s=i,"#/"+an(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=tf("/",e),null!=t?(n=t,n):"/"+e}}(t)(tn("/",Wn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function of(e,t){return function(e,t){let n,r;const o=En();let i=o,s=t;for(;!In(s);){let t=e(Nn(s));for(;!In(t);)n=i,r=new Cn(Nn(t),void 0),n.tail=r,i=r,t=Rn(t);s=Rn(s)}const a=i,u=En();return a.tail=u,Rn(o)}((e=>{if(en(e))return Dn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Pt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Dn();if(null!=tf("?",t))return On(t);{const e=t.split("?");if(Sn(((e,t)=>e===t),e,null)||1!==e.length){if(Sn(((e,t)=>e===t),e,null)||2!==e.length)return Dn();if(""===e[1]){const t=e[0];return On(decodeURIComponent(t))}{const t=e[0],n=e[1];return jn([decodeURIComponent(t),"?"+n])}}{const t=e[0];return On(decodeURIComponent(t))}}}}),jn(on(null!=tf("#",e)?an(e,1,e.length-1):1!==t||null==nf("#",e)&&null==nf("#/",e)?e:"",["/"],null,0)))}const sf=function(e,t,n,r){const o=Yn.memo(e,gt(2,mn(bt(2,n),null)));return Er((t=>{e.displayName=t}),hn(t)),e=>{const t=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e);return Yn.createElement(o,t)}}((e=>{const t=Ur((t=>{const n=mn(e.onUrlChanged,(e=>{}));!function(e,t,n){t(of(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(mn(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=Vr((()=>Qd(r)),[r]),i=Vr((()=>ef(r)),[r]),s=Vr((()=>e=>{n(e)}),[n]);Br(Ur((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Or((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}else{const e="popstate",n=t,r=void 0,o=Vr((()=>Qd(r)),[r]),i=Vr((()=>ef(r)),[r]),s=Vr((()=>e=>{n(e)}),[n]);Br(Ur((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Or((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=Vr((()=>Qd(o)),[o]),s=Vr((()=>ef(o)),[o]),a=Vr((()=>e=>{r(e)}),[r]);Br(Ur((()=>{if(null==i)window.addEventListener(n,a);else{const e=i;window.addEventListener(n,a,e)}return Or((()=>{if(null==s)window.removeEventListener(n,a);else{const e=s;window.removeEventListener(n,a,e)}}))})));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class af extends Ft{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class uf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class lf extends Ft{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class cf extends h{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}class df extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Token"]}}class ff extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["QueryString"]}}class $f extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function pf(e){let t,n,r;switch(Pn(e)?t=0:"oidc"===Bn(e)?Pn(Gn(e))?t=3:"callback"===Bn(Gn(e))?Pn(Gn(Gn(e)))?t=3:Pn(Gn(Gn(Gn(e))))?(t=1,n=Bn(Gn(Gn(e)))):t=3:"silent-refresh"===Bn(Gn(e))?Pn(Gn(Gn(e)))?t=3:Pn(Gn(Gn(Gn(e))))?(t=2,r=Bn(Gn(Gn(e)))):t=3:t=3:t=3,t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new $f(0);{const e=n;return Er((e=>{!function(e,t){sessionStorage.setItem(bd(e),t)}(new yd(0),e)}),hn(t.get("success-redirection-url"))),new $f(1,new df(0,e))}}case 1:return new $f(2,new ff(0,n));case 2:return new $f(3,new ff(0,r));case 3:return new $f(4)}}class hf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class mf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class wf extends Ft{constructor(e){super(),this.AccessToken=e}}function gf(e){return new wf(e.access_token)}class yf extends Ft{constructor(e){super(),this.Auth=e}}class bf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}const vf=document.querySelector("#tfn-declaration-app"),xf=vf.getAttribute("data-identity-url"),_f=vf.getAttribute("data-backend-url"),Sf=(()=>{const e={};return e.store=dn(window.sessionStorage),e})();function Cf(){return new UserManager(function(){const e=function(e){return Qt(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=xf,t.client_id="apollo-tfn-declaration-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=dn(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(Sf),t}())}function Tf(e){return e.length>0?an(e,1):e}function Ef(e){return Cf().signinRedirect(dn({extraQueryParams:{irt:e.fields[0]}}))}function kf(e){return Cf().signinRedirectCallback(Tf(e.fields[0]))}function If(e){return Cf().signinSilentCallback(Tf(e.fields[0]))}function Af(){return Cf().getUser()}var Nf;!function(e){cl(void 0,e)}(("tfn-declaration-app",Nf=ul((function(){const e=pf(of(window.location.hash,1)),t=function(){const e=pf(of(window.location.hash,1));return[new yf(new hf(0)),1===e.tag?tl(new bf(1,new mf(0),e.fields[0])):2===e.tag?tl(new bf(2,new mf(0),e.fields[0])):3===e.tag?tl(new bf(3,new mf(0),e.fields[0])):tl(new bf(0,new mf(0)))]}();return[new af(e,t[0]),el((e=>new uf(1,e)),t[1])]}),(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new yf(new hf(2,new ti(1,e))),Qu()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Kt(Yt("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,Qu()]:[new yf(new hf(1)),(o=Ef,i=e.fields[1],s=t=>new bf(1,new mf(1,new ti(1,t.message)),e.fields[1]),On((e=>{o(i).catch((t=>{e(s(t))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Kt(Yt("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new yf(new hf(2,new ti(0,gf(e.fields[0].fields[0].fields[0])))),(r=e=>{!function(e,t,n){history.pushState(void 0,"",rf(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(On(""))},On(r))]:[new yf(new hf(1)),nl(kf,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new bf(2,new mf(1,new ti(0,t)),e.fields[1]))),(t=>new bf(2,new mf(1,new ti(1,t.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Kt(Yt("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new yf(new hf(2,new ti(0,gf(e.fields[0].fields[0].fields[0])))),Qu()]:[t,nl(If,e.fields[1],(t=>new bf(3,new mf(1,new ti(0,t)),e.fields[1])),(t=>new bf(3,new mf(1,new ti(1,t.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Kt(Yt("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new yf(new hf(2,new ti(0,gf(e.fields[0].fields[0].fields[0])))),Qu()]:[new yf(new hf(1)),nl(Af,void 0,(e=>new bf(0,new mf(1,new ti(0,e)))),(e=>new bf(0,new mf(1,new ti(1,e.message)))))];var r,o,i,s}(e.fields[0],t.Auth);return[new af(t.CurrentPage,n[0]),el((e=>new uf(1,e)),n[1])]}return[new af(pf(e.fields[0]),t.Auth),Qu()]}),((e,t)=>function(e,t,n){let r,o,i;switch(t.CurrentPage.tag){case 1:case 2:case 3:i=ze();break;case 4:i=f("h1",{},"Not found");break;default:{const n=t.Auth.Auth;i=2===n.tag?1===n.fields[0].tag?f("h1",{},"Unauthorised"):f("div",mt(jn([["className",tn(" ",["font-inter","max-w-560","mx-auto"])],(r=[f("style",{children:[qn]}),f(Jd,{accessToken:n.fields[0].fields[0].AccessToken,backendUrl:e})],["children",Yn.Children.toArray(Array.from(r))])]))):ze()}}return sf(mt(jn([["onUrlChanged",e=>{n(new uf(0,e))}],(o=On(f("div",{children:Yn.Children.toArray([i])})),["application",f(p,{},...o)])])))}(_f,e,t))),function(e,t,n){return ll(((r,o)=>{Ne(e((e=>t=>e===t),function(e){return bt(2,e.view)}(n),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){const o=new lf(n,(()=>t(n,r)),e);return f(cf,o)}(gt(2,e),gt(2,t),n,r)),"tfn-declaration-app",Nf)))})()})();
|
|
1
|
+
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),d=new URL(n(184),n.b),f=new URL(n(421),n.b),$=s()(o()),p=u()(l),h=u()(c),m=u()(d),w=u()(f);$.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;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;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}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,pre,samp{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{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-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,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--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);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}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-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+p+");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]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--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);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+h+")}[type=radio]:checked{background-image:url("+m+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--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-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:rgba(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: }::-webkit-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-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:rgba(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-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:rgba(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: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-none{flex:none}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-bold{font-weight:700}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.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-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-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)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1: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(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},184:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle cx=%278%27 cy=%278%27 r=%273%27/%3E%3C/svg%3E"},254:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg viewBox=%270 0 16 16%27 fill=%27%23fff%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z%27/%3E%3C/svg%3E"},421:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 16 16%27%3E%3Cpath stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27M4 8h8%27/%3E%3C/svg%3E"},578:e=>{e.exports="data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3E%3Cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27m6 8 4 4 4-4%27/%3E%3C/svg%3E"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,n),i.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.b=document.baseURI||self.location.href,(()=>{var e,t,r,o,i,s,a={},u=[],l=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function c(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function f(t,n,r){var o,i,s,a={};for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];if(arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===a[s]&&(a[s]=t.defaultProps[s]);return $(t,a,o,i,null)}function $(e,n,o,i,s){var a={type:e,props:n,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==s?++r:s};return null==s&&null!=t.vnode&&t.vnode(a),a}function p(e){return e.children}function h(e,t){this.props=e,this.context=t}function m(e,t){if(null==t)return e.__?m(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?m(e):null}function w(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return w(e)}}function g(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!y.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||setTimeout)(y)}function y(){for(var e;y.__r=o.length;)e=o.sort((function(e,t){return e.__v.__b-t.__v.__b})),o=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=c({},o)).__v=o.__v+1,k(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?m(o):i,o.__h),I(n,o),o.__e!=i&&w(o)))}))}function b(e,t,n,r,o,i,s,l,c,d){var f,h,w,g,y,b,x,S=r&&r.__k||u,C=S.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(g=n.__k[f]=null==(g=t[f])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?$(null,g,null,null,g):Array.isArray(g)?$(p,{children:g},null,null,null):g.__b>0?$(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(w=S[f])||w&&g.key==w.key&&g.type===w.type)S[f]=void 0;else for(h=0;h<C;h++){if((w=S[h])&&g.key==w.key&&g.type===w.type){S[h]=void 0;break}w=null}k(e,g,w=w||a,o,i,s,l,c,d),y=g.__e,(h=g.ref)&&w.ref!=h&&(x||(x=[]),w.ref&&x.push(w.ref,null,g),x.push(h,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===w.__k?g.__d=c=v(g,c,e):c=_(e,g,w,S,y,c),"function"==typeof n.type&&(n.__d=c)):c&&w.__e==c&&c.parentNode!=e&&(c=m(w))}for(n.__e=b,f=C;f--;)null!=S[f]&&("function"==typeof n.type&&null!=S[f].__e&&S[f].__e==n.__d&&(n.__d=m(r,f+1)),R(S[f],S[f]));if(x)for(f=0;f<x.length;f++)N(x[f],x[++f],x[++f])}function v(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?v(r,t,n):_(n,r,r,o,r.__e,t));return t}function x(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){x(e,t)})):t.push(e)),t}function _(e,t,n,r,o,i){var s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function S(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||l.test(t)?n:n+"px"}function C(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||S(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])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?T:E,i):e.removeEventListener(t,i?T:E,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null!=n&&(!1!==n||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,n):e.removeAttribute(t))}}function E(e){this.l[e.type+!1](t.event?t.event(e):e)}function T(e){this.l[e.type+!0](t.event?t.event(e):e)}function k(e,n,r,o,i,s,a,u,l){var d,f,$,m,w,g,y,v,x,_,S,C,E,T=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(l=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(d=t.__b)&&d(n);try{e:if("function"==typeof T){if(v=n.props,x=(d=T.contextType)&&o[d.__c],_=d?x?x.props.value:d.__:o,r.__c?y=(f=n.__c=r.__c).__=f.__E:("prototype"in T&&T.prototype.render?n.__c=f=new T(v,_):(n.__c=f=new h(v,_),f.constructor=T,f.render=M),x&&x.sub(f),f.props=v,f.state||(f.state={}),f.context=_,f.__n=o,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=c({},f.__s)),c(f.__s,T.getDerivedStateFromProps(v,f.__s))),m=f.props,w=f.state,$)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&v!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(v,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(v,f.__s,_)||n.__v===r.__v){f.props=v,f.state=f.__s,n.__v!==r.__v&&(f.__d=!1),f.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(e){e&&(e.__=n)})),f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(v,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(m,w,g)}))}if(f.context=_,f.props=v,f.__v=n,f.__P=e,S=t.__r,C=0,"prototype"in T&&T.prototype.render)f.state=f.__s,f.__d=!1,S&&S(n),d=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(n),d=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(o=c(c({},o),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(m,w)),E=null!=d&&d.type===p&&null==d.key?d.props.children:d,b(e,Array.isArray(E)?E:[E],n,r,o,i,s,a,u,l),f.base=n.__e,n.__h=null,f.__h.length&&a.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==s&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=A(r.__e,n,r,o,i,s,a,l);(d=t.diffed)&&d(n)}catch(e){n.__v=null,(l||null!=s)&&(n.__e=u,n.__h=!!l,s[s.indexOf(u)]=null),t.__e(e,n,r)}}function I(e,n){t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){t.__e(e,n.__v)}}))}function A(t,n,r,o,i,s,u,l){var c,f,$,p=r.props,h=n.props,w=n.type,g=0;if("svg"===w&&(i=!0),null!=s)for(;g<s.length;g++)if((c=s[g])&&"setAttribute"in c==!!w&&(w?c.localName===w:3===c.nodeType)){t=c,s[g]=null;break}if(null==t){if(null===w)return document.createTextNode(h);t=i?document.createElementNS("http://www.w3.org/2000/svg",w):document.createElement(w,h.is&&h),s=null,l=!1}if(null===w)p===h||l&&t.data===h||(t.data=h);else{if(s=s&&e.call(t.childNodes),f=(p=r.props||a).dangerouslySetInnerHTML,$=h.dangerouslySetInnerHTML,!l){if(null!=s)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;($||f)&&($&&(f&&$.__html==f.__html||$.__html===t.innerHTML)||(t.innerHTML=$&&$.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||C(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||C(e,i,t[i],n[i],r)}(t,h,p,i,l),$)n.__k=[];else if(g=n.props.children,b(t,Array.isArray(g)?g:[g],n,r,o,i&&"foreignObject"!==w,s,u,s?s[0]:r.__k&&m(r,0),l),null!=s)for(g=s.length;g--;)null!=s[g]&&d(s[g]);l||("value"in h&&void 0!==(g=h.value)&&(g!==t.value||"progress"===w&&!g||"option"===w&&g!==p.value)&&C(t,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==t.checked&&C(t,"checked",g,p.checked,!1))}return t}function N(e,n,r){try{"function"==typeof e?e(n):e.current=n}catch(e){t.__e(e,r)}}function R(e,n,r){var o,i;if(t.unmount&&t.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,n)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){t.__e(e,n)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&R(o[i],n,"function"!=typeof e.type);r||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function O(n,r,o){var i,s,u;t.__&&t.__(n,r),s=(i="function"==typeof o)?null:o&&o.__k||r.__k,u=[],k(r,n=(!i&&o||r).__k=f(p,null,[n]),s||a,a,void 0!==r.ownerSVGElement,!i&&o?[o]:s?null:r.firstChild?e.call(r.childNodes):null,u,!i&&o?o:s?s.__e:r.firstChild,i),I(u,n)}function D(e,t){O(e,t,D)}function P(t,n,r){var o,i,s,a=c({},t.props);for(s in n)"key"==s?o=n[s]:"ref"==s?i=n[s]:a[s]=n[s];return arguments.length>2&&(a.children=arguments.length>3?e.call(arguments,2):r),$(t.type,a,o||t.key,i||t.ref,null)}function G(e,t){var n={__c:t="__cC"+s++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}e=u.slice,t={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},r=0,h.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=c({},this.state),"function"==typeof e&&(e=e(c({},n),this.props)),e&&c(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),g(this))},h.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),g(this))},h.prototype.render=p,o=[],y.__r=0,s=0;var B,F,L,V,U=0,H=[],j=[],z=t.__b,W=t.__r,Y=t.diffed,q=t.__c,K=t.unmount;function Z(e,n){t.__h&&t.__h(F,e,U||n),U=0;var r=F.__H||(F.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:j}),r.__[e]}function J(e){return U=1,X(ce,e)}function X(e,t,n){var r=Z(B++,2);return r.t=e,r.__c||(r.__=[n?n(t):ce(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=F),r.__}function Q(e,n){var r=Z(B++,3);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,F.__H.__h.push(r))}function ee(e,n){var r=Z(B++,4);!t.__s&&le(r.__H,n)&&(r.__=e,r.u=n,F.__h.push(r))}function te(e){return U=5,ne((function(){return{current:e}}),[])}function ne(e,t){var n=Z(B++,7);return le(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function re(e,t){return U=8,ne((function(){return e}),t)}function oe(e){var t=F.context[e.__c],n=Z(B++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(F)),t.props.value):e.__}function ie(){for(var e;e=H.shift();)if(e.__P)try{e.__H.__h.forEach(ae),e.__H.__h.forEach(ue),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}}t.__b=function(e){F=null,z&&z(e)},t.__r=function(e){W&&W(e),B=0;var t=(F=e.__c).__H;t&&(L===F?(t.__h=[],F.__h=[],t.__.forEach((function(e){e.__V=j,e.u=void 0}))):(t.__h.forEach(ae),t.__h.forEach(ue),t.__h=[])),L=F},t.diffed=function(e){Y&&Y(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==H.push(n)&&V===t.requestAnimationFrame||((V=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),se&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);se&&(t=requestAnimationFrame(n))})(ie)),n.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==j&&(e.__=e.__V),e.u=void 0,e.__V=j}))),L=F=null},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(ae),e.__h=e.__h.filter((function(e){return!e.__||ue(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),q&&q(e,n)},t.unmount=function(e){K&&K(e);var n,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{ae(e)}catch(e){n=e}})),n&&t.__e(n,r.__v))};var se="function"==typeof requestAnimationFrame;function ae(e){var t=F,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),F=t}function ue(e){var t=F;e.__c=e.__(),F=t}function le(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ce(e,t){return"function"==typeof t?t(e):t}function de(e,t){for(var n in t)e[n]=t[n];return e}function fe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $e(e){this.props=e}($e.prototype=new h).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return fe(this.props,e)||fe(this.state,t)};var pe=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pe&&pe(e)};var he="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function me(e){function t(t){var n=de({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=he,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var we=function(e,t){return null==e?null:x(x(e).map(t))},ge={map:we,forEach:we,count:function(e){return e?x(e).length:0},only:function(e){var t=x(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:x},ye=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ye(e,t,n,r)};var be=t.unmount;function ve(){this.__u=0,this.t=null,this.__b=null}function xe(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function _e(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),be&&be(e)},(ve.prototype=new h).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=xe(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 e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ve.prototype.componentWillUnmount=function(){this.t=[]},ve.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]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=de({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&f(p,null,e.fallback);return o&&(o.__h=null),[f(p,null,t.__a?null:e.children),o]};var Se=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 Ce(e){return this.getChildContext=function(){return e.context},e.children}function Ee(e){var t=this,n=e.i;t.componentWillUnmount=function(){O(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(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),O(f(Ce,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(_e.prototype=new h).__a=function(e){var t=this,n=xe(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Se(t,e,r)):o()};n?n(i):i()}},_e.prototype.render=function(e){this.u=null,this.o=new Map;var t=x(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},_e.prototype.componentDidUpdate=_e.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Se(e,n,t)}))};var Te="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ke=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ie="undefined"!=typeof document,Ae=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};function Ne(e,t,n){return null==t.__k&&(t.textContent=""),O(e,t),"function"==typeof n&&n(),e?e.__c:null}h.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(h.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Re=t.event;function Me(){}function Oe(){return this.cancelBubble}function De(){return this.defaultPrevented}t.event=function(e){return Re&&(e=Re(e)),e.persist=Me,e.isPropagationStopped=Oe,e.isDefaultPrevented=De,e.nativeEvent=e};var Pe,Ge={configurable:!0,get:function(){return this.class}},Be=t.vnode;t.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];Ie&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Ae(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&ke.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=x(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=x(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Ge.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Ge))}e.$$typeof=Te,Be&&Be(e)};var Fe=t.__r;t.__r=function(e){Fe&&Fe(e),Pe=e.__c};var Le={ReactCurrentDispatcher:{current:{readContext:function(e){return Pe.__n[e.__c].props.value}}}};function Ve(e){return!!e&&e.$$typeof===Te}function Ue(e){return Ve(e)?P.apply(null,arguments):e}function He(e){e()}const je={useState:J,useReducer:X,useEffect:Q,useLayoutEffect:ee,useInsertionEffect:ee,useTransition:function(){return[!1,He]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=J(t),r=n[0],o=n[1];return Q((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:He,useRef:te,useImperativeHandle:function(e,t,n){U=6,ee((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ne,useCallback:re,useContext:oe,useDebugValue:function(e,n){t.useDebugValue&&t.useDebugValue(n?n(e):e)},version:"17.0.2",Children:ge,render:Ne,hydrate:function(e,t,n){return D(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(O(null,e),!0)},createPortal:function(e,t){var n=f(Ee,{__v:e,i:t});return n.containerInfo=t,n},createElement:f,createContext:G,createFactory:function(e){return f.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:p,isValidElement:Ve,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:h,PureComponent:$e,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:fe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,f(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:me,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:p,Suspense:ve,SuspenseList:_e,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return f(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Le};function ze(){return f("div",{},"Please wait...")}function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return"function"==typeof e.GetHashCode}function qe(e){return null!=e&&"function"==typeof e.Dispose}function Ke(e){qe(e)&&e.Dispose()}function Ze(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Je{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Xe(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Je(e[Symbol.iterator]())}function Qe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class et{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function tt(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function nt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function rt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class ot{static id(e){return ot.idMap.has(e)||ot.idMap.set(e,++ot.count),ot.idMap.get(e)}}function it(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function st(e){return 2654435761*e|0}function at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function ut(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return st(e);case"string":return it(e);default:if(Ye(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return at(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>ut(e)));return at(t)}return st(ot.id(e))}}function lt(e){return null==e?0:Ye(e)?e.GetHashCode():st(ot.id(e))}function ct(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(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 dt(e,t){return ct(e,t,ft)}function ft(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):We(e)?We(t)&&dt(e,t):e instanceof Date?t instanceof Date&&0===$t(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(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]||!ft(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function $t(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+nt(e),r=t.getTime()+nt(t)),n===r?0:n<r?-1:1}function pt(e,t){return e===t?0:e<t?-1:1}function ht(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)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]),0!==o)return o;return 0}(e,t,mt)}function mt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?ht(e,t):-1:e instanceof Date?t instanceof Date?$t(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(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=mt(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function wt(e,t,n){return e(t,n)>0?t:n}function gt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}ot.idMap=new WeakMap,ot.count=0;const yt=Symbol("curried");function bt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[yt]=t,n}function vt(e,t,n){return r=>1===t?n(...e.concat([r])):vt(e.concat([r]),t-1,n)}function xt(e,t){return null==t||1===t.length?t:yt in t?t[yt]:vt([],e,t)}function _t(e,t,n){if(null!=t){if(yt in t){t=t[yt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return vt(n,e,t)}}function St(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+tt(~~(e/36e5),2)+":"+tt(n,2)}function Ct(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Et(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function Tt(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+St(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Et(i,t,!0);switch(t){case"D":case"d":return Ct(i,"first");case"T":case"t":return Ct(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+St(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Et(e,t,n);switch(t){case"D":case"d":return n?Ct(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Ct(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return tt(e.getFullYear(),4)+"-"+tt(e.getMonth()+1,2)+"-"+tt(e.getDate(),2)+"T"+tt(e.getHours(),2)+":"+tt(e.getMinutes(),2)+":"+tt(e.getSeconds(),2)+"."+tt(e.getMilliseconds(),3)+(t?St(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function kt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function It(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===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(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function At(e,t){try{return t.contents=function(e,t=!1){const[n,r]=It(e),o=null!=r?t&&"Z"===r?1:2:0;return kt(n.getTime(),o)}(e),!0}catch(e){return!1}}const Nt=Symbol("numeric");function Rt(e){return"number"==typeof e||(null==e?void 0:e[Nt])}function Mt(e,t){return"number"==typeof e?e*t:e[Nt]().multiply(t)}function Ot(e,t){return"number"==typeof e?e.toFixed(t):e[Nt]().toFixed(t)}function Dt(e,t){return"number"==typeof e?e.toPrecision(t):e[Nt]().toPrecision(t)}function Pt(e,t){return"number"==typeof e?e.toExponential(t):e[Nt]().toExponential(t)}function Gt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[Nt]().toHex()}function Bt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ft(e,t,n=0){if(null==t)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(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Lt(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=Lt(r);else{if(100===t){n+="; ...";break}n+="; "+Lt(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+Lt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Vt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Lt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Lt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>ut(e)));return e.splice(0,0,st(this.tag)),at(e)}Equals(e){return this===e||!!Ze(this,e)&&this.tag===e.tag&&dt(this.fields,e.fields)}CompareTo(e){return this===e?0:Ze(this,e)?this.tag===e.tag?ht(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Ut{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+Lt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>ut(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ze(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ft(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Ze(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=mt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Ht{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class jt{constructor(e){this.message=e}}function zt(e){return function(e){return e instanceof jt||e instanceof Error}(e)?e:new Error(String(e))}const Wt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Yt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function qt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Kt(e){return{input:e,cont:(t=e,e=>{Wt.lastIndex=0;const n=[],r=[];let o=0,i=Wt.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Wt.lastIndex,Wt.lastIndex-=1,i=Wt.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),en(e,n,r))})};var t}function Zt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Jt(e){return Zt((e=>e),e)}function Xt(e){return Zt((e=>{throw new Error(e)}),e)}function Qt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Rt(e))switch("x"!==o.toLowerCase()&&(qt(e,0)?(e=Mt(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Ot(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Dt(e,r):Dt(e);break;case"e":case"E":e=null!=r?Pt(e,r):Pt(e);break;case"x":e=Gt(e);break;case"X":e=Gt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Tt(e):Lt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=on(e,n-i.length,s,o)):on(i+e,n,s,o)}return e}function en(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Qt(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):en(e,a,u,s,o)}}function tn(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}function nn(e){return"string"!=typeof e||/^\s*$/.test(e)}function rn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function on(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function sn(e,t,n){return on(e,t,n)}function an(e,t,n,r){if(r="number"==typeof r?r:0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];const o=1==(1&r),i=2==(2&r);t=(t=t||[]).filter((e=>e)).map(Bt),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function un(e,t){return t.split("").filter((t=>e(t))).join("")}function ln(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}var cn=n(118);const dn="Collection was empty.";class fn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(e){return null!=e&&ft(this.value,e instanceof fn?e.value:e)}CompareTo(e){return null==e?1:mt(this.value,e instanceof fn?e.value:e)}}function $n(e){return null==e||e instanceof fn?new fn(e):e}function pn(e){if(null==e)throw new Error("Option has no value");return e instanceof fn?e.value:e}function hn(e){return null==e?void 0:e}function mn(e){return null==e?null:pn(e)}function wn(e){return null==e?[]:[pn(e)]}function gn(e,t){return null!=e?pn(e):t}function yn(e,t){return null!=t?$n(e(pn(t))):void 0}function bn(e,t){return null!=t?e(pn(t)):void 0}function vn(e,t){return"function"==typeof e?new e(t):new Array(t)}function xn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function _n(e,t,n){const r=0|t.length,o=vn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Sn(e,t,n){return function(e,t,n,r,o){const i=0|gn(n,0),s=0|gn(yn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function Cn(e,t,n){return n.reduce(e,t)}function En(e,t,n){if(null==t)return null==n;if(null==n)return!1;{let r=0,o=!0;const i=0|t.length,s=0|n.length;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}}class Tn extends Ut{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+rn("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(ft(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+ut(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|mt(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new kn(this)}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Xe(this)}}class kn{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function In(){return new Tn(null,void 0)}function An(e,t){return new Tn(e,t)}function Nn(e){return null==e.tail}function Rn(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Mn(e){if(null!=e.tail)return e.head;throw new Error(dn+"\\nParameter name: list")}function On(e){const t=e.tail;if(null!=t)return t;throw new Error(dn+"\\nParameter name: list")}function Dn(){return In()}function Pn(e,t){return An(e,t)}function Gn(e){return An(e,In())}function Bn(e){return Nn(e)}function Fn(e){return Mn(e)}function Ln(e){return On(e)}function Vn(e){const t=0|Rn(e),n=xn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Nn(o))break;n[r]=Mn(o),e=r+1,t=On(o)}})(0,e),n}function Un(e,t,n){let r=t,o=n;for(;!Nn(o);)r=e(r,Mn(o)),o=On(o);return r}function Hn(e){return Un(((e,t)=>An(t,e)),In(),e)}function jn(e,t){Un(((t,n)=>{e(n)}),void 0,t)}function zn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=An(e[t],n);return n}function Wn(e){return zn(e,In())}function Yn(e,t){return Un(((e,t)=>An(t,e)),t,Hn(e))}function qn(e,t){const n=In(),r=Un(((t,n)=>{const r=new Tn(e(n),void 0);return t.tail=r,r}),n,t),o=In();return r.tail=o,On(n)}const Kn=je,Zn=Lt(cn.Z),Jn=f("svg",gt(Wn([["className",rn(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Gn(f("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),Xn=f("svg",gt(Wn([["className",rn(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Gn(f("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),Qn=f("svg",gt(Wn([["className",rn(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Gn(f("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),er=f("svg",gt(Wn([["className",rn(" ",["h-6","w-6","text-gray-400","group-hover:text-primary-hover"])],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],["fill","none"],["stroke","currentColor"],["strokeWidth",2],(()=>{const e=Gn(f("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),tr=f("svg",gt(Wn([["className",rn(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Gn(f("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),nr=f("svg",gt(Wn([["className",rn(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Gn(f("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),rr=f("svg",gt(Wn([["className",rn(" ",["h-5","w-5","text-amber-400","flex-none"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Gn(f("path",{"fill-rule":"evenodd",d:"M8.25706 3.09858C9.02167 1.73928 10.9788 1.73928 11.7434 3.09858L17.3237 13.0191C18.0736 14.3523 17.1102 15.9996 15.5805 15.9996H4.4199C2.89025 15.9996 1.92682 14.3523 2.67675 13.0191L8.25706 3.09858ZM11.0001 12.9998C11.0001 13.552 10.5524 13.9998 10.0001 13.9998C9.44784 13.9998 9.00012 13.552 9.00012 12.9998C9.00012 12.4475 9.44784 11.9998 10.0001 11.9998C10.5524 11.9998 11.0001 12.4475 11.0001 12.9998ZM10.0001 4.99976C9.44784 4.99976 9.00012 5.44747 9.00012 5.99976V8.99976C9.00012 9.55204 9.44784 9.99976 10.0001 9.99976C10.5524 9.99976 11.0001 9.55204 11.0001 8.99976V5.99976C11.0001 5.44747 10.5524 4.99976 10.0001 4.99976Z",clipRule:"evenodd"}));return["children",Kn.Children.toArray(Array.from(e))]})()]))),or=Wn(["flex","flex-col","align-center"]);function ir(){return e=mt,{Compare:(t,n)=>e(t,n)};var e}const sr="Enumeration already finished.",ar="Enumeration has not started. Call MoveNext.",ur="The input sequence has an insufficient number of elements.";function lr(){throw new Error(ar)}function cr(){throw new Error(sr)}class dr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Xe(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Lt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ke(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class fr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"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"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function $r(e,t,n){return new fr(e,t,n)}function pr(e,t,n){let r,o=!1,i=$n(e());const s=()=>{if(null!=i){const e=pn(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return $r((()=>(o||lr(),null!=r?pn(r):cr())),(()=>{if(o||(o=!0),null!=i){const e=pn(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function hr(e){return function(e){return new dr(e)}(e)}function mr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Xe(e);var t}function wr(e){return hr((()=>Xe(e())))}function gr(e){return hr((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{Ke(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ke(e)}finally{t=void 0}}};return $r((()=>(o?i&&cr():lr(),null!=r?pn(r):cr())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=$n(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ke(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Xe(a)):(s(),o=!1)}else t=Xe(e)}return pn(o)}}),(()=>{i||s()}))}(e)))}function yr(){return wr((()=>new Array(0)))}function br(e){return wr((()=>function(e,t){const n=vn(void 0,1);return n[0]=e,n}(e)))}function vr(e){return e instanceof Tn?Vn(e):Array.from(e)}function xr(e){return We(e)?Wn(e):e instanceof Tn?e:function(e){let t,n;if(We(e))return Wn(e);if(e instanceof Tn)return e;{const r=In();let o=r;const i=Xe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Tn(e,void 0),t.tail=n,o=n}}finally{Ke(i)}const s=o,a=In();return s.tail=a,On(r)}}(e)}function _r(e,t,n){return hr((()=>pr(e,t,n)))}function Sr(e,t,n){return hr((()=>{let r=-1;return pr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Cr(e,t){return gr([e,t])}function Er(e,t,n){const r=mr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{Ke(r)}}function Tr(e,t){return function(e,t){return _r((()=>mr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{Ke(e)}))}((t=>e(t)?$n(t):void 0),t)}function kr(e,t,n){const r=mr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{Ke(r)}}function Ir(e,t){kr(((t,n)=>{e(n)}),void 0,t)}function Ar(e,t){return _r((()=>mr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?$n(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))}class Nr{constructor(e,t){this.cleanup=e,this.res=t}Dispose(){this.cleanup()}GetEnumerator(){return getEnumerator(this.res)}[Symbol.iterator](){return toIterator(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return getEnumerator(this.res)}}function Rr(e){return wr((()=>function(e){return e.slice().reverse()}(vr(e))))}function Mr(e,t){return hr((()=>{const n=mr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ur+"\\nParameter name: source");return function(e,t){return $r((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ke(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ke(n),e}}))}function Or(e,t){return wr((()=>gr(Ar(e,t))))}const Dr=(e,t)=>{Q((()=>{const t=e();return()=>{t.Dispose()}}),t)},Pr=e=>{ee((()=>{const t=e();return()=>{t.Dispose()}}))};function Gr(e){return{Dispose(){e()}}}function Br(e){return Kn.useState(e)}function Fr(e){var t;t=e,Q((()=>{const e=t();return()=>{e.Dispose()}}))}function Lr(e,t){Dr(e,t)}function Vr(e,t){Dr((t=>(e(),Gr((()=>{})))),t)}function Ur(e){return Kn.useRef(e)}function Hr(e,t){const n=gn(t,[]);return Kn.useMemo(e,n)}function jr(e){const t=Ur(e),n=function(e,n){const r=gn([],[]);return Kn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},Pr((e=>(r(),Gr((()=>{}))))),n}function zr(e){return Kn.useState(e)}class Wr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class Yr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Yr.prototype)}}class qr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>qr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Kr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Yr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(zt(e))}}));else try{e(t)}catch(e){t.onError(zt(e))}}}const Zr=new class{Bind(e,t){return function(e,t){return Kr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(zt(e))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})}))}(e,t)}Combine(e,t){return this.Bind(e,(()=>t))}Delay(e){return Kr((t=>e()(t)))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While((()=>!r.done),this.Delay((()=>{const e=t(r.value);return r=n.next(),e})))}Return(e){return function(e){return Kr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Kr((n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})}))}TryWith(e,t){return Kr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(zt(e))}}})}))}Using(e,t){return this.TryFinally(t(e),(()=>e.Dispose()))}While(e,t){return e()?this.Bind(t,(()=>this.While(e,t))):this.Return(void 0)}Zero(){return Kr((e=>e.onSuccess(void 0)))}};function Jr(e){}function Xr(e){const t=new Wr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Qr(e){e.cancel()}const eo=new Wr;function to(e){return Kr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Yr)}))}))}function no(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new qr;e({onSuccess:t||Jr,onError:n||Jr,onCancel:r||Jr,cancelToken:o||eo,trampoline:i})}(e,t)}(e,t)}class ro extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function oo(e,t){const n=Ur(Xr());return Lr((()=>Gr((()=>{Qr(n.current)}))),[]),jr((r=>{var o;null!=(o=n.current)&&o.isCancelled||no(Zr.Delay((()=>Zr.TryWith(Zr.Delay((()=>(t(new ro(1)),Zr.Bind(e(r),(e=>(t(new ro(2,e)),Zr.Zero())))))),(e=>(t(new ro(3,e)),Zr.Zero()))))),n.current)}))}class io extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class so extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ao extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class uo extends Ut{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class lo extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class co extends Ut{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class fo{constructor(e,t){this.k=e,this.v=t}}function $o(e,t){return new fo(e,t)}function po(e){return e.k}function ho(e){return e.v}class mo extends fo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function wo(e,t,n,r,o){return new mo(e,t,n,r,o)}function go(e){return e.left}function yo(e){return e.right}function bo(e){return e.h}function vo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof mo){e=vo(n+1,go(r)),t=yo(r);continue e}return n+1|0}return 0|n}}function xo(e){return vo(0,e)}function _o(e,t,n,r){let o,i;o=null!=e?e instanceof mo?bo(e):1:0,i=null!=r?r instanceof mo?bo(r):1:0;const s=0|(o<i?i:o);return 0===s?$o(t,n):wo(t,n,e,r,s+1)}function So(e,t,n,r){let o,i,s,a,u,l;if(u=null!=e?e instanceof mo?bo(e):1:0,l=null!=r?r instanceof mo?bo(r):1:0,l>u+2){const s=pn(r);if(s instanceof mo){if(o=go(s),(null!=o?(i=o,i instanceof mo?bo(i):1):0)>u+1){const r=pn(go(s));if(r instanceof mo)return _o(_o(e,t,n,go(r)),po(r),ho(r),_o(yo(r),po(s),ho(s),yo(s)));throw new Error("internal error: Map.rebalance")}return _o(_o(e,t,n,go(s)),po(s),ho(s),yo(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=pn(e);if(o instanceof mo){if(s=yo(o),(null!=s?(a=s,a instanceof mo?bo(a):1):0)>l+1){const e=pn(yo(o));if(e instanceof mo)return _o(_o(go(o),po(o),ho(o),go(e)),po(e),ho(e),_o(yo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return _o(go(o),po(o),ho(o),_o(yo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return _o(e,t,n,r)}function Co(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,po(o));return o instanceof mo?i<0?So(Co(e,t,n,go(o)),po(o),ho(o),yo(o)):0===i?wo(t,n,go(o),yo(o),bo(o)):So(go(o),po(o),ho(o),Co(e,t,n,yo(o))):i<0?wo(t,n,void 0,r,2):0===i?$o(t,n):wo(t,n,r,void 0,2)}return $o(t,n)}function Eo(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,po(i));if(0===s)return $n(ho(i));if(i instanceof mo){e=r,t=o,n=s<0?go(i):yo(i);continue e}return}return}}function To(e,t,n,r,o){return t(n,r)?Co(e,n,r,o):o}function ko(e,t,n,r){e:for(;;){const o=e,i=t,s=r;if(null!=n){const a=n;if(a instanceof mo){const u=ko(o,i,go(a),s),l=To(o,i,po(a),ho(a),u);e=o,t=i,n=yo(a),r=l;continue e}return To(o,i,po(a),ho(a),s)}return s}}function Io(e,t,n){return ko(e,t,n,void 0)}function Ao(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof mo){Ao(n,go(r)),n(po(r),ho(r)),e=n,t=yo(r);continue e}n(po(r),ho(r))}break}}function No(e,t){Ao(e,t)}function Ro(e,t){if(null!=t){const n=t;if(n instanceof mo){const t=Ro(e,go(n)),r=e(po(n),ho(n)),o=Ro(e,yo(n));return wo(po(n),r,t,o,bo(n))}return $o(po(n),e(po(n),ho(n)))}}function Mo(e,t){return Ro(e,t)}function Oo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Co(e,o[0],o[1],n)}return n}class Do extends Ut{constructor(e,t){super(),this.stack=e,this.started=t}}function Po(e){e:for(;;){const t=e;if(Bn(t))return Dn();{const n=Ln(t),r=Fn(t);if(null!=r){const o=r;if(o instanceof mo){e=zn([go(o),$o(po(o),ho(o)),yo(o)],n);continue e}return t}e=n;continue e}}}function Go(e){return new Do(Po(Gn(e)),!1)}function Bo(e){if(e.started){const t=e.stack;if(Bn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Fn(t)){const e=Fn(t);if(e instanceof mo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[po(e),ho(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Fo(e){let t=Go(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Bo(t),"System.Collections.IEnumerator.get_Current":()=>Bo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Bn(t))return!1;if(null!=Fn(t)){if(Fn(t)instanceof mo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Po(Ln(t)),!Bn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Bn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Go(e)},Dispose(){}}}class Lo{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,ut(e[0])),n=0|t(n,ut(e[1]))}}finally{Ke(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Lo))return!1;{const t=Xe(this);try{const n=Xe(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ft(r[0],o[0])||!ft(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ke(n)}}finally{Ke(t)}}}toString(){return"map ["+rn("; ",Ar((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Yt,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[n];if(Rt(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ot(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Dt(a,i):Dt(a);break;case"e":case"E":a=null!=i?Pt(a,i):Pt(a);break;case"p":case"P":i=null!=i?i:2,a=Ot(Mt(a,100),i)+" %";break;case"d":case"D":a=null!=i?sn(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?sn(Gt(a),i,"0"):Gt(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{qt(a,0)&&(a=Mt(a,-1),e="-"),r=null==r?"":r.substring(1),a=Ot(a,Math.max(r.length,0));let[o,i]=a.split(".");i||(i=""),o=sn(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return on(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),a=e+a}}else a=a instanceof Date?Tt(a,s||o):Lt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=on(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Fo(this.tree)}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Fo(this.tree)}CompareTo(e){const t=this;if(e instanceof Lo)return 0|function(e,t,n){const r=mr(t);try{const t=mr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{Ke(t)}}finally{Ke(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:mt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){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"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return zo(this,e[0])&&ft(Ho(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;No(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|jo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|jo(this)}get size(){return 0|jo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ar((e=>[e[0],e[1]]),this)}get(e){return Ho(this,e)}has(e){return zo(this,e)}keys(){return Ar((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Ar((e=>e[1]),this)}forEach(e,t){const n=this;Ir((t=>{e(t[1],t[0],n)}),n)}}function Vo(e,t){return new Lo(e,t)}function Uo(e){const t=ir();return Vo(t,function(e,t){if(We(t))return Oo(e,t);if(t instanceof Tn)return function(e,t){return Un(((t,n)=>Co(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Xe(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Co(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{Ke(n)}}}(t,e))}function Ho(e,t){return function(e,t,n){const r=Eo(e,t,n);if(null==r)throw new Error;return pn(r)}(e.comparer,t,e.tree)}function jo(e){return xo(e.tree)}function zo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,po(i));if(i instanceof mo){if(s<0){e=r,t=o,n=go(i);continue e}if(0===s)return!0;e=r,t=o,n=yo(i);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Wo(e,t,n){return function(e,t,n){return Vo(e.comparer,Co(e.comparer,t,n,e.tree))}(n,e,t)}function Yo(e,t){return function(e,t){return Eo(e.comparer,t,e.tree)}(t,e)}function qo(e,t){return function(e,t){return Vo(e.comparer,Mo(t,e.tree))}(t,e)}function Ko(e){return Uo(e)}function Zo(){return Lo.empty}Lo.empty=Vo(ir(),void 0);const Jo=new uo("",new io(0),Dn(),!1,void 0,void 0,void 0,new ao(0));function Xo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:an(t,[e],null,0);var n}function Qo(e){return new uo(e,Jo.method,Jo.headers,Jo.withCredentials,Jo.overridenMimeType,Jo.overridenResponseType,Jo.timeout,Jo.content)}function ei(e,t){return new uo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ti(e,t){return new uo(t.url,t.method,Yn(t.headers,Gn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ni(e){return function(e){return Kr((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(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"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new lo(0,n.responseText):new lo("arraybuffer"===a?2:"blob"===a?1:3,n.response),new co(o,e,i,function(e){const t=ir();return Vo(t,Oo(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=pn(o);r.push(e)}}return r}((e=>{const t=Wn(Xo(":",e));return Bn(t)?void 0:[Fn(t).toLocaleLowerCase(),rn(":",Ln(t)).trim()]}),Xo("\r\n",n.getAllResponseHeaders()))),s)))};const r=Xe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{Ke(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send($n(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send($n(a[1].fields[0])):n.send($n(void 0))}))}new co(0,"","",Zo(),new lo(0,""));class ri extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function oi(e,t){return 0===t.tag?new ri(0,e(t.fields[0])):new ri(1,t.fields[0])}class ii extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class si extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ai{constructor(){this.cache=new Map([])}}function ui(){return new ai}function li(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ci(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=Ft(e,s),u=Ft.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(li(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return li(t)}}ui(),ui();const di=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,$i=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function pi(e,t){try{return t.contents=function(e){function t(e){return e.replace(fi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(di.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Bt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(fi.test(n))return t(n);if($i.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var hi;function mi(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 wi(e,t,n,r,o){const i=function(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;n=n||function(e,t){if(t&hi.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}}(e,t);const i=function(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.")}}(n);if(!i.test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=mi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=mi(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function gi(e,t,n,r,o){try{return o.contents=wi(e,t,n,r),!0}catch(e){return!1}}function yi(e,t){!function(e){if(null!=e&&0!==e){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.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function bi(e,t){try{return t.contents=function(e){const[t,n]=It(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return yi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(hi||(hi={}));var vi=null;try{vi=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(u){}function xi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function _i(e){return!0===(e&&e.__isLong__)}xi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},xi.prototype.Equals=function(e){return Zi(this,e)},xi.prototype.CompareTo=function(e){return es(this,e)},xi.prototype.toString=function(e){return Wi(this,e)},xi.prototype.toJSON=function(){return Wi(this)},xi.prototype[Nt]=function(){const e=this;return{multiply:t=>os(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:()=>{return Wi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new xi(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}(e,t):function(e,t){return new xi(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}(e,t)}((t=e,n?function(e){var t=e.high,n=e.low;return[255&n,n>>>8&255,n>>>16&255,n>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]}(t):function(e){var t=e.high,n=e.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,n>>>24,n>>>16&255,n>>>8&255,255&n]}(t)),!0),16);var t,n}}},xi.prototype.__isLong__,Object.defineProperty(xi.prototype,"__isLong__",{value:!0});var Si={},Ci={};function Ei(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ci[e])?r:(n=ki(e,(0|e)<0?-1:0,!0),o&&(Ci[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Si[e])?r:(n=ki(e,e<0?-1:0,!1),o&&(Si[e]=n),n)}function Ti(e,t){if(isNaN(e))return t?Gi:Pi;if(t){if(e<0)return Gi;if(e>=Mi)return Ui}else{if(e<=-Oi)return Hi;if(e+1>=Oi)return Vi}return e<0?ts(Ti(-e,t)):ki(e%Ri|0,e/Ri|0,t)}function ki(e,t,n){return new xi(e,t,n)}var Ii=Math.pow;function Ai(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Pi;if("number"==typeof t?(n=t,t=!1):t=!!t,(n=n||10)<2||36<n)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return ts(Ai(e.substring(1),t,n));for(var o=Ti(Ii(n,8)),i=Pi,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=ns(a<8?os(i,Ti(Ii(n,a))):i=os(i,o),Ti(u))}return i.unsigned=t,i}function Ni(e,t){return"number"==typeof e?Ti(e,t):"string"==typeof e?Ai(e,t):ki(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ri=4294967296,Mi=Ri*Ri,Oi=Mi/2,Di=Ei(1<<24),Pi=Ei(0),Gi=Ei(0,!0),Bi=Ei(1),Fi=Ei(1,!0),Li=Ei(-1),Vi=ki(-1,2147483647,!1),Ui=ki(-1,-1,!0),Hi=ki(0,-2147483648,!1);function ji(e){return e.unsigned?e.low>>>0:e.low}function zi(e){return e.unsigned?(e.high>>>0)*Ri+(e.low>>>0):e.high*Ri+(e.low>>>0)}function Wi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Yi(e))return"0";if(qi(e)){if(Zi(e,Hi)){var n=Ti(t),r=is(e,n),o=rs(os(r,n),e);return Wi(r,t)+ji(o).toString(t)}return"-"+Wi(ts(e),t)}for(var i=Ti(Ii(t,6),e.unsigned),s=e,a="";;){var u=is(s,i),l=(ji(rs(s,os(u,i)))>>>0).toString(t);if(Yi(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function Yi(e){return 0===e.high&&0===e.low}function qi(e){return!e.unsigned&&e.high<0}function Ki(e){return 1==(1&e.low)}function Zi(e,t){return _i(t)||(t=Ni(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Ji(e,t){return es(e,t)<0}function Xi(e,t){return es(e,t)>0}function Qi(e,t){return es(e,t)>=0}function es(e,t){if(_i(t)||(t=Ni(t)),Zi(e,t))return 0;var n=qi(e),r=qi(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:qi(rs(e,t))?-1:1}function ts(e){return!e.unsigned&&Zi(e,Hi)?Hi:ns(function(e){return ki(~e.low,~e.high,e.unsigned)}(e),Bi)}function ns(e,t){_i(t)||(t=Ni(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,d=0,f=0;return d+=(f+=i+(65535&t.low))>>>16,c+=(d+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,ki((d&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function rs(e,t){return _i(t)||(t=Ni(t)),ns(e,ts(t))}function os(e,t){if(Yi(e))return e.unsigned?Gi:Pi;if(_i(t)||(t=Ni(t)),vi)return ki(vi.mul(e.low,e.high,t.low,t.high),vi.get_high(),e.unsigned);if(Yi(t))return e.unsigned?Gi:Pi;if(Zi(e,Hi))return Ki(t)?Hi:Pi;if(Zi(t,Hi))return Ki(e)?Hi:Pi;if(qi(e))return qi(t)?os(ts(e),ts(t)):ts(os(ts(e),t));if(qi(t))return ts(os(e,ts(t)));if(Ji(e,Di)&&Ji(t,Di))return Ti(zi(e)*zi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,d=0,f=0,$=0;return f+=($+=i*l)>>>16,d+=(f+=o*l)>>>16,f&=65535,d+=(f+=i*u)>>>16,c+=(d+=r*l)>>>16,d&=65535,c+=(d+=o*u)>>>16,d&=65535,c+=(d+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,ki((f&=65535)<<16|($&=65535),(c&=65535)<<16|(d&=65535),e.unsigned)}function is(e,t){if(_i(t)||(t=Ni(t)),Yi(t))throw Error("division by zero");var n,r,o;if(vi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?ki((e.unsigned?vi.div_u:vi.div_s)(e.low,e.high,t.low,t.high),vi.get_high(),e.unsigned):e;if(Yi(e))return e.unsigned?Gi:Pi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:ki(e.low,e.high,!0)}(t)),Xi(t,e))return Gi;if(Xi(t,function(e,t){if(_i(t)&&(t=ji(t)),0==(t&=63))return e;var n=e.high;return t<32?ki(e.low>>>t|n<<32-t,n>>>t,e.unsigned):ki(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Fi;o=Gi}else{if(Zi(e,Hi))return Zi(t,Bi)||Zi(t,Li)?Hi:Zi(t,Hi)?Bi:Zi(n=function(e,t){return _i(t)&&(t=ji(t)),0==(t&=63)?e:t<32?ki(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):ki(0,e.low<<t-32,e.unsigned)}(is(function(e,t){return _i(t)&&(t=ji(t)),0==(t&=63)?e:t<32?ki(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):ki(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Pi)?qi(t)?Bi:Li:o=ns(n,is(r=rs(e,os(t,n)),t));if(Zi(t,Hi))return e.unsigned?Gi:Pi;if(qi(e))return qi(t)?is(ts(e),ts(t)):ts(is(ts(e),t));if(qi(t))return ts(is(e,ts(t)));o=Pi}for(r=e;Qi(r,t);){n=Math.max(1,Math.floor(zi(r)/zi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ii(2,i-48),a=Ti(n),u=os(a,t);qi(u)||Xi(u,r);)u=os(a=Ti(n-=s,e.unsigned),t);Yi(a)&&(a=Bi),o=ns(o,a),r=rs(r,u)}return o}const ss=is,as=zi;function us(e){return e<0?Math.ceil(e):Math.floor(e)}function ls(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return as(ss(arguments[0],1e4));case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*t+6e4*n+1e3*r+o}function cs(e,t){try{return t.contents=function(e){const t=e.search("\\."),n=e.search("\\:");if(-1===t&&-1===n){const t=parseInt(e,0);if(isNaN(t))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ls(t,0,0,0,0)}if(n>0){const t=/^(-?)((\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(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ls(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class ds{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class fs{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return Cs(this)}GetHashCode(){return ps(this)}Equals(e){return hs(this,e)}}function $s(e){return null!=e.generics?e.generics:[]}function ps(e){return at([it(e.fullname),...$s(e).map(ps)])}function hs(e,t){return""===e.fullname?""===t.fullname&&ct(Ds(e),Ds(t),(([e,t],[n,r])=>e===n&&hs(t,r))):e.fullname===t.fullname&&ct($s(e),$s(t),hs)}function ms(e,t,n,r){return new fs(e,t,n,void 0,r)}function ws(...e){return new fs("",void 0,void 0,void 0,(()=>e))}function gs(e,t,n,r){const o=new fs(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ds(o,n,e[n],t)))}));return o}function ys(e){return new fs("Microsoft.FSharp.Core.FSharpOption`1",[e])}function bs(e){return new fs("Microsoft.FSharp.Collections.FSharpList`1",[e])}const vs=new fs("System.Object"),xs=(new fs("Microsoft.FSharp.Core.Unit"),new fs("System.Char"),new fs("System.String")),_s=new fs("System.Boolean");function Ss(e){if(Array.isArray(e))return e[0];if(e instanceof fs){const t=Ts(e);if(null!=t)return Ss(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Cs(e){const t=Ts(e);return null!=t?Cs(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Cs(e))).join(",")+"]"}function Es(e){return null!=Ts(e)}function Ts(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ks(e){return null!=e.generics&&e.generics.length>0}function Is(e){return null!=e.enumCases&&e.enumCases.length>0}function As(e){return null==e.generics?e:new fs(e.fullname,e.generics.map((()=>vs)))}function Ns(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Rs(e){if(Is(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ms(e,t){const n=parseInt(t,10);return function(e,t){if(null!=e.enumCases){if("string"==typeof t){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}throw new Error(`${e.fullname} is not an enum type`)}(e,isNaN(n)?t:n)[1]}function Os(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ds(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ps(e){if(Fs(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Gs(e){return e instanceof fs?null!=e.cases:e instanceof Vt}function Bs(e){return e instanceof fs?null!=e.fields:e instanceof Ut}function Fs(e){return e.fullname.startsWith("System.Tuple")}function Ls(e){return null==e.fields?[]:e.fields}new fs("System.SByte"),new fs("System.Byte"),new fs("System.Int16"),new fs("System.UInt16"),new fs("System.Int32"),new fs("System.UInt32"),new fs("System.Single"),new fs("System.Double"),new fs("System.Decimal");class Vs{constructor(e){this.k=e}}function Us(e){return new Vs(e)}function Hs(e){return e.k}class js extends Vs{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function zs(e,t,n,r){return new js(e,t,n,r)}function Ws(e){return e.left}function Ys(e){return e.right}function qs(e){return e.h}function Ks(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof js){e=Ws(r),t=Ks(Ys(r),n+1);continue e}return n+1|0}return 0|n}}function Zs(e){return Ks(e,0)}function Js(e,t,n){let r,o;r=null!=e?e instanceof js?qs(e):1:0,o=null!=n?n instanceof js?qs(n):1:0;const i=0|(r<o?o:r);return 0===i?Us(t):zs(t,e,n,i+1)}function Xs(e,t,n){let r,o,i,s,a,u;if(a=null!=e?e instanceof js?qs(e):1:0,u=null!=n?n instanceof js?qs(n):1:0,u>a+2){const i=pn(n);if(i instanceof js){if(r=Ws(i),(null!=r?(o=r,o instanceof js?qs(o):1):0)>a+1){const n=pn(Ws(i));if(n instanceof js)return Js(Js(e,t,Ws(n)),Hs(n),Js(Ys(n),Hs(i),Ys(i)));throw new Error("internal error: Set.rebalance")}return Js(Js(e,t,Ws(i)),Hs(i),Ys(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=pn(e);if(r instanceof js){if(i=Ys(r),(null!=i?(s=i,s instanceof js?qs(s):1):0)>u+1){const e=pn(Ys(r));if(e instanceof js)return Js(Js(Ws(r),Hs(r),Ws(e)),Hs(e),Js(Ys(e),t,n));throw new Error("internal error: Set.rebalance")}return Js(Ws(r),Hs(r),Js(Ys(r),t,n))}throw new Error("internal error: Set.rebalance")}return Js(e,t,n)}function Qs(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Hs(r));if(r instanceof js)return o<0?Xs(Qs(e,t,Ws(r)),Hs(r),Ys(r)):0===o?n:Xs(Ws(r),Hs(r),Qs(e,t,Ys(r)));{const o=0|e.Compare(t,Hs(r));return o<0?zs(t,void 0,n,2):0===o?n:zs(t,n,void 0,2)}}return Us(t)}function ea(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,s=0|r.Compare(o,Hs(i));if(i instanceof js){if(s<0){e=r,t=o,n=Ws(i);continue e}if(0===s)return!0;e=r,t=o,n=Ys(i);continue e}return 0===s}return!1}}function ta(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof js){ta(n,Ws(r)),n(Hs(r)),e=n,t=Ys(r);continue e}n(Hs(r))}break}}class na extends Ut{constructor(e,t){super(),this.stack=e,this.started=t}}function ra(e){e:for(;;){const t=e;if(Bn(t))return Dn();{const n=Fn(t),r=Ln(t);if(null!=n){const o=n;if(o instanceof js){e=zn([Ws(o),Us(Hs(o)),Ys(o)],r);continue e}return t}e=r;continue e}}}function oa(e){return new na(ra(Gn(e)),!1)}function ia(e){if(e.started){const t=e.stack;if(Bn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Fn(t))return Hs(Fn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function sa(e){let t=oa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ia(t),"System.Collections.IEnumerator.get_Current":()=>ia(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Bn(t))return!1;if(null!=Fn(t)){if(Fn(t)instanceof js)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ra(Ln(t)),!Bn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Bn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=oa(e)},Dispose(){}}}function aa(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(Bn(s[0]))return Bn(s[1])?0:-1;if(Bn(s[1]))return 1;if(null!=Fn(s[1]))if(null!=Fn(s[0])){const a=Fn(s[0]),u=Fn(s[1]);if(a instanceof js)if(null==Ws(a)){if(!(u instanceof js)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Pn(Ys(a),Ln(s[0])),n=Pn(void 0,Ln(s[1]));continue e}if(null==Ws(u)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Pn(Ys(a),Ln(s[0])),n=Pn(Ys(u),Ln(s[1]));continue e}{const s=[o,i];let a,u,l,c,d;switch(Bn(s[0])?Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2:null!=Fn(s[0])?(a=0,u=Ln(s[0]),l=Fn(s[0])):Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=zn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=zn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=zn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=zn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,d;switch(Bn(s[0])?Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2:null!=Fn(s[0])?(a=0,u=Ln(s[0]),l=Fn(s[0])):Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=zn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=zn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=zn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=zn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof js)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Ln(s[0]),n=Ln(s[1]);continue e}if(null==Ws(u)){const o=0|r.Compare(Hs(a),Hs(u));if(0!==o)return 0|o;e=r,t=Pn(void 0,Ln(s[0])),n=Pn(Ys(u),Ln(s[1]));continue e}{const s=[o,i];let a,u,l,c,d;switch(Bn(s[0])?Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2:null!=Fn(s[0])?(a=0,u=Ln(s[0]),l=Fn(s[0])):Bn(s[1])?a=2:null!=Fn(s[1])?(a=1,c=Ln(s[1]),d=Fn(s[1])):a=2,a){case 0:if(l instanceof js){e=r,t=zn([Ws(l),zs(Hs(l),void 0,Ys(l),0)],u),n=i;continue e}e=r,t=zn([void 0,Us(Hs(l))],u),n=i;continue e;case 1:if(d instanceof js){e=r,t=o,n=zn([Ws(d),zs(Hs(d),void 0,Ys(d),0)],c);continue e}e=r,t=o,n=zn([void 0,Us(Hs(d))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Fn(s[1]);const a=[o,i];let u,l,c,d,f;switch(Bn(a[0])?Bn(a[1])?u=2:null!=Fn(a[1])?(u=1,d=Ln(a[1]),f=Fn(a[1])):u=2:null!=Fn(a[0])?(u=0,l=Ln(a[0]),c=Fn(a[0])):Bn(a[1])?u=2:null!=Fn(a[1])?(u=1,d=Ln(a[1]),f=Fn(a[1])):u=2,u){case 0:if(c instanceof js){e=r,t=zn([Ws(c),zs(Hs(c),void 0,Ys(c),0)],l),n=i;continue e}e=r,t=zn([void 0,Us(Hs(c))],l),n=i;continue e;case 1:if(f instanceof js){e=r,t=o,n=zn([Ws(f),zs(Hs(f),void 0,Ys(f),0)],d);continue e}e=r,t=o,n=zn([void 0,Us(Hs(f))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Fn(s[0])){e=r,t=Ln(s[0]),n=Ln(s[1]);continue e}{Fn(s[0]);const a=[o,i];let u,l,c,d,f;switch(Bn(a[0])?Bn(a[1])?u=2:null!=Fn(a[1])?(u=1,d=Ln(a[1]),f=Fn(a[1])):u=2:null!=Fn(a[0])?(u=0,l=Ln(a[0]),c=Fn(a[0])):Bn(a[1])?u=2:null!=Fn(a[1])?(u=1,d=Ln(a[1]),f=Fn(a[1])):u=2,u){case 0:if(c instanceof js){e=r,t=zn([Ws(c),zs(Hs(c),void 0,Ys(c),0)],l),n=i;continue e}e=r,t=zn([void 0,Us(Hs(c))],l),n=i;continue e;case 1:if(f instanceof js){e=r,t=o,n=zn([Ws(f),zs(Hs(f),void 0,Ys(f),0)],d);continue e}e=r,t=o,n=zn([void 0,Us(Hs(f))],d);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Gn(t),Gn(n))}function ua(e,t,n){let r=n;ta((e=>{t[r]=e,r=r+1|0}),e)}function la(e,t){if(We(t))return function(e,t){return Cn(((t,n)=>Qs(e,n,t)),void 0,t)}(e,t);if(t instanceof Tn)return function(e,t){return Un(((t,n)=>Qs(e,n,t)),void 0,t)}(e,t);{const n=Xe(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Qs(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ke(n)}}}class ca{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|ut(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ke(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ca&&0===aa(da(this),fa(this),fa(e))}toString(){return"set ["+rn("; ",Ar((e=>Lt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|aa(da(this),fa(this),fa(e))}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return ea(da(this),e,fa(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ua(fa(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|$a(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|$a(this)}GetEnumerator(){return sa(fa(this))}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return sa(fa(this))}get size(){return 0|$a(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,t){return ea(da(e),t,fa(e))}(this,e)}keys(){return Ar((e=>e),this)}values(){return Ar((e=>e),this)}entries(){return Ar((e=>[e,e]),this)}forEach(e,t){const n=this;Ir((t=>{e(t,t,n)}),n)}}function da(e){return e.comparer}function fa(e){return e.tree}function $a(e){return Zs(fa(e))}function pa(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?"\n":" ")+JSON.stringify(t,null,4)}catch(t){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?"\n":" ")}}function ha(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new ri(1,function(e,t){const n=2===t.tag?pa(t.fields[0],t.fields[1],!0):1===t.tag?pa(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?pa(t.fields[0],t.fields[1],!0):4===t.tag?pa(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+rn("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:pa(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new ri(0,r.fields[0])}function ma(e,t){return"string"==typeof t?new ri(0,t):new ri(1,[e,new ii(0,"a string",t)])}const wa=e=>t=>{const n="a sbyte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new ri(0,(e+128&255)-128):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!1,8,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])},ga=e=>t=>{const n="a byte",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new ri(0,255&e):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!0,8,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])},ya=e=>t=>{const n="an int16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new ri(0,(e+32768&65535)-32768):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!1,16,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])},ba=e=>t=>{const n="an uint16",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new ri(0,65535&e):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!0,16,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])},va=e=>t=>{const n="an int",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new ri(0,~~e):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!1,32,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])},xa=e=>t=>{const n="an uint32",r=e,o=t;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new ri(0,e>>>0):new ri(1,[r,new ii(1,n,e,"Value was either too large or too small for "+n)]):new ri(1,[r,new ii(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[gi(o,511,!0,32,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new ri(0,e[1]):new ri(1,[r,new ii(0,n,o)])}return new ri(1,[r,new ii(0,n,o)])};function _a(e,t,n,r){let o;const i=n+".["+rt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new ri(1,[i,new ii(5,"a longer array. Need index `"+rt(e)+"` but there are only `"+(o=n.length,rt(o)+"` entries"),r)])}return new ri(1,[i,new ii(0,"an array",r)])}function Sa(e,t,n){if(Array.isArray(n)){let r=-1;return oi(Hn,Cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+rt(r)+"]",o);return 0===i.tag?new ri(0,Pn(i.fields[0],n.fields[0])):new ri(1,i.fields[0])}return n}),new ri(0,Dn()),n))}return new ri(1,[t,new ii(0,"a list",n)])}function Ca(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+rt(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new ri(0,i)):new ri(1,s.fields[0])}return n}),new ri(0,xn(new Array(o.length),0,o.length,null)),o)}return new ri(1,[t,new ii(0,"an array",n)])}function Ea(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new ri(1,o.fields[0])}function Ta(e,t){let n;const r=e;return n=e=>t=>_a(0,r,e,t),e=>r=>Ea(bt(3,(e=>{let n;const r=t;return n=e=>t=>_a(1,r,e,t),t=>r=>Ea(((t,n,r)=>new ri(0,[e,t])),bt(2,n),t,r)})),bt(2,n),e,r)}function ka(e){return Ko(e)}function Ia(e){return function(e,t){return new ca(e,t)}(t={Compare:mt},la(t,e));var t}function Aa(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new ri(1,[n,new ii(6,(o=0|r.length,Jt(Kt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new ri(0,Dn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],a=Jt(Kt("%s[%i]"))(n)(i),u=t[i-e],l=r[i];o=oi((e=>Pn(e,s)),u(a)(l))}return oi(Hn,o)}}function Na(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ss(e)===r))}(0,Os(n));if(null!=s){const n=s,r=_n((n=>Ma(e,t,!1,n[1])),Ls(n));return oi((e=>function(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 null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...t):{}}(n,Vn(e))),0===r.length&&i.length<=1?new ri(0,Dn()):Aa(1,r,o,i))}return new ri(1,[o,new ii(6,"Cannot find case "+r+" in "+Cs(n))])}function Ra(e,t,n,r){const o=new Ht(null);let i;const s=Cs(r);let a;if(i=""===s?e:Wo(s,o,e),Bs(r)){const e=_n((e=>[ci(t,Ss(e)),Ma(i,t,!1,e[1])]),Ds(r));a=t=>n=>oi((e=>function(e,t){const n=Ds(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return null!=e.construct?new e.construct(...t):n.reduce(((e,[n,r],o)=>(e[n]=t[o],e)),{})}(r,Vn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new ri(1,[t,new ii(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(bt(2,(e=>{const r=e[0];return o=>0===o.tag?oi((e=>Pn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new ri(0,Dn()))}(e,t,n))}else if(Gs(r))a=e=>n=>{if("string"==typeof n)return Na(i,t,r,n,e,[]);if(Array.isArray(n)){const a=n;return o=n=>Na(i,t,r,n,e,a),0===(s=ma(e+"[0]",a[0])).tag?o(s.fields[0]):new ri(1,s.fields[0])}return new ri(1,[e,new ii(0,"a string or array",n)]);var o,s};else{if(!n){let e;const t=Cs(r);throw e=Jt(Kt("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}a=e=>t=>new ri(1,[e,new ii(2,"an extra coder for "+Cs(r),t)])}return o.contents=a,a}function Ma(e,t,n,r){let o,i,s,a;const u=Cs(r),l=Yo(u,e);if(null==l){if(Es(r)){const n=Ma(e,t,!1,Ts(r));return e=>t=>Ca(bt(2,n),e,t)}if(Is(r)){const e=Cs(Ns(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=wa(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,e.toString())):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=ga(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,e.toString())):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=ya(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,e.toString(a))):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=ba(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,e.toString())):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=va(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,rt(e))):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=xa(o)(i);if(1===s.tag)return new ri(1,s.fields[0]);{const e=s.fields[0];return Er(e,Rs(n),{Equals:(e,t)=>e===t,GetHashCode:st})?new ri(0,Ms(n,e.toString())):new ri(1,[o,new ii(1,Cs(n),i,"Unkown value provided for the enum")])}};{const e=Cs(r),t=Xt(Kt("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(ks(r)){if(Fs(r)){const n=_n((n=>Ma(e,t,!1,n)),Ps(r));return e=>t=>Array.isArray(t)?oi((e=>Vn(e)),Aa(0,n,e,t)):new ri(1,[e,new ii(0,"an array",t)])}{const u=Cs(As(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Ma(e,t,!0,$s(r)[0]),e=>t=>{return n=bt(2,o),r=e,null==(i=t)?new ri(0,void 0):oi($n,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Ma(e,t,!1,$s(r)[0]),e=>t=>Sa(bt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return s=Ma(e,t,!1,$s(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return oi(Rr,Cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+rt(r)+"]",o);return 0===i.tag?new ri(0,Cr([i.fields[0]],n.fields[0])):new ri(1,i.fields[0])}return n}),new ri(0,[]),n))}return new ri(1,[t,new ii(0,"a seq",n)])}(bt(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Ma(e,t,!1,$s(r)[0]),o=Ma(e,t,!1,$s(r)[1]);let i;const s=Wn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new ri(1,[n,new ii(0,"an object",r)]):kr(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new ri(0,Pn([s.fields[0],e.fields[0]],o.fields[0])):new ri(1,e.fields[0])}return new ri(1,s.fields[0])}return o}),new ri(0,Dn()),Object.keys(r))}(bt(2,n),bt(2,o),e,t),(a=Ta(bt(2,n),bt(2,o)),e=>t=>Sa(bt(2,a),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Bn(o))return new ri(1,[n,new ii(7,i)]);{const s=ha(n,bt(2,Fn(o)),r);if(1===s.tag){e=Ln(o),t=Yn(i,Gn(s.fields[0]));continue e}return new ri(0,s.fields[0])}}})(s,Dn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new ri(1,o.fields[0]):new ri(0,e(o.fields[0]))}(ka,bt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Ma(e,t,!1,$s(r)[0]);return e=>t=>{const r=Ca(bt(2,n),e,t);return 0===r.tag?new ri(0,Ia(r.fields[0])):new ri(1,r.fields[0])}}return Ra(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new ri(0,r):new ri(1,[n,new ii(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new ri(0,void 0):new ri(1,[n,new ii(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>ma(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new ri(0,n[0]):new ri(1,[e,new ii(0,"a single character string",t)])}return new ri(1,[e,new ii(0,"a char",t)])}(e,t):"System.SByte"===u?wa:"System.Byte"===u?ga:"System.Int16"===u?ya:"System.UInt16"===u?ba:"System.Int32"===u?va:"System.UInt32"===u?xa:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new ri(0,r):new ri(1,[n,new ii(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new ri(0,r):new ri(1,[n,new ii(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=kt(-621355968e5,0);return r=[At(t,new Ht((()=>o),(e=>{o=e}))),o],r[0]?new ri(0,1===(n=r[1]).kind?n:kt(n.getTime(),1)):new ri(1,[e,new ii(0,"a datetime",t)])}var n;return new ri(1,[e,new ii(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=yi(-621355968e5,0);return n=[bi(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new ri(0,n[1]):new ri(1,[e,new ii(0,"a datetimeoffset",t)])}return new ri(1,[e,new ii(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[cs(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new ri(0,n[1]):new ri(1,[e,new ii(0,"a timespan",t)])}return new ri(1,[e,new ii(0,"a timespan",t)])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[pi(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new ri(0,n[1]):new ri(1,[e,new ii(0,"a guid",t)])}return new ri(1,[e,new ii(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new ri(0,e):Ra(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Oa=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$R$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1E(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν$(.çђ$,ɪ⇜ɜ*B$-'%A%($-S*(''$$--$*$8(6˓CC:'n'$$Z*'0c%$$$.%1+ӹM,⌚łT&4'+Ưध(0&,*-%$%$'ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&/|*/7/'[+-)K+A%%q$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ፮$A£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const Da=e=>function(e,t){const n=1<<function(e,t){const n=function(e,t){if(t>=0&&t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}(e,t);return Oa(n)}(e,0);return 0!=(256&n)}(e);const Pa={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Ga(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Ba(e,t=Pa.None){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case Pa.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Pa.SnakeCase:return Ga(e,"_");case Pa.SnakeCaseAllCaps:return Ga(e,"_").toUpperCase();case Pa.KebabCase:return Ga(e,"-");case Pa.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Pa.None;if(null==t&&o(t),t instanceof Vt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function Fa(e,t){return!t.has(e)&&(t.add(e),!0)}function La(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Va{constructor(e,t){const n=new Ht(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();za(n.contents,e)}}finally{Ke(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Xe(this)}GetEnumerator(){return Xe(gr(this.hashMap.values()))}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){za(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ha(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Wa(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},kr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ja(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Ya(this,e)}get size(){return 0|ja(this)}add(e){return za(this,e),this}clear(){Ha(this)}delete(e){return Ya(this,e)}has(e){return Wa(this,e)}keys(){return Ar((e=>e),this)}values(){return Ar((e=>e),this)}entries(){return Ar((e=>[e,e]),this)}forEach(e,t){const n=this;Ir((t=>{e(t,t,n)}),n)}}function Ua(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new Ht((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Ha(e){e.hashMap.clear()}function ja(e){let t=0,n=Xe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ke(n)}return 0|t}function za(e,t){const n=Ua(e,t);return n[0]?!(n[2]>-1)&&(La(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Wa(e,t){const n=Ua(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Ya(e,t){const n=Ua(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return La(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class qa extends Ut{constructor(e,t){super(),this.Code=e,this.Name=t}}const Ka=Ko([["AFG","Afghanistan"],["ALA","Aland Islands"],["ALB","Albania"],["DZA","Algeria"],["ASM","American Samoa"],["AND","Andorra"],["AGO","Angola"],["AIA","Anguilla"],["ATA","Antarctica"],["ATG","Antigua and Barbuda"],["ARG","Argentina"],["ARM","Armenia"],["ABW","Aruba"],["AUT","Austria"],["AZE","Azerbaijan"],["BHS","Bahamas"],["BHR","Bahrain"],["BGD","Bangladesh"],["BRB","Barbados"],["BLR","Belarus"],["BEL","Belgium"],["BLZ","Belize"],["BEN","Benin"],["BMU","Bermuda"],["BTN","Bhutan"],["BOL","Bolivia"],["BES","Bonaire Saint Eustatius, and Saba Islands"],["BIH","Bosnia and Herzegovina"],["BWA","Botswana"],["BVT","Bouvet Island"],["BRA","Brazil"],["IOT","British Indian Ocean Territory"],["VGB","British Virgin Islands"],["BRN","Brunei Darussalam"],["BGR","Bulgaria"],["BFA","Burkina Faso"],["BDI","Burundi"],["KHM","Cambodia"],["CMR","Cameroon"],["CAN","Canada"],["CPV","Cabo Verde"],["CYM","Cayman Islands"],["CAF","Central African Republic"],["TCD","Chad"],["CHL","Chile"],["CHN","China"],["CXR","Christmas Island"],["CCK","Cocos (Keeling) Islands"],["COL","Colombia"],["COM","Comoros"],["COD","Congo, Democratic Republic of (was Zaire)"],["COG","Congo, Republic of"],["COK","Cook Islands"],["CRI","Costa Rica"],["CIV","Cote D'Ivoire (Ivory Coast)"],["HRV","Croatia (Hrvatska)"],["CUB","Cuba"],["CUW","Curacao"],["CYP","Cyprus"],["CZE","Czech Republic"],["DNK","Denmark"],["DJI","Djibouti"],["DMA","Dominica"],["DOM","Dominican Republic"],["ECU","Ecuador"],["EGY","Egypt"],["SLV","El Salvador"],["GNQ","Equatorial Guinea"],["ERI","Eritrea"],["EST","Estonia"],["SWZ","eSwatini"],["ETH","Ethiopia"],["FLK","Falkland Islands (Malvinas)"],["FRO","Faroe Islands"],["FJI","Fiji"],["FIN","Finland"],["FRA","France"],["GUF","French Guiana"],["PYF","French Polynesia"],["ATF","French Southern Territories"],["GAB","Gabon"],["GMB","Gambia"],["GEO","Georgia"],["DEU","Germany"],["GHA","Ghana"],["GIB","Gibraltar"],["GRC","Greece"],["GRL","Greenland"],["GRD","Grenada"],["GLP","Guadeloupe"],["GUM","Guam"],["GTM","Guatemala"],["GGY","Guernsey"],["GIN","Guinea"],["GNB","Guinea-Bissau"],["GUY","Guyana"],["HTI","Haiti"],["HMD","Heard and McDonald Islands"],["VAT","Holy See (Vatican City State)"],["HND","Honduras"],["HKG","Hong Kong"],["HRV","Hrvatska (Croatia)"],["HUN","Hungary"],["ISL","Iceland"],["IND","India"],["IDN","Indonesia"],["IRN","Iran"],["IRQ","Iraq"],["IRL","Ireland"],["IMN","Isle of Man, The"],["ISR","Israel"],["ITA","Italy"],["CIV","Ivory Coast (Cote D'Ivoire)"],["JAM","Jamaica"],["JPN","Japan"],["JEY","Jersey"],["JOR","Jordan"],["KAZ","Kazakhstan"],["KEN","Kenya"],["KIR","Kiribati"],["PRK","Korea, Democratic People's Republic of (North Korea)"],["KOR","Korea, Republic of (South Korea)"],["KWT","Kuwait"],["KGZ","Kyrgyzstan"],["LAO","Laos"],["LVA","Latvia"],["LBN","Lebanon"],["LSO","Lesotho"],["LBR","Liberia"],["LBY","Libya"],["LIE","Liechtenstein"],["LTU","Lithuania"],["LUX","Luxembourg"],["MAC","Macau"],["MKD","North Macedonia, Republic of"],["MDG","Madagascar"],["MWI","Malawi"],["MYS","Malaysia"],["MDV","Maldives"],["MLI","Mali"],["MLT","Malta"],["MHL","Marshall Islands"],["MTQ","Martinique"],["MRT","Mauritania"],["MUS","Mauritius"],["MYT","Mayotte"],["MEX","Mexico"],["FSM","Micronesia, Federated States of"],["MDA","Moldova"],["MCO","Monaco"],["MNG","Mongolia"],["MNE","Montenegro"],["MSR","Montserrat"],["MAR","Morocco"],["MOZ","Mozambique"],["MMR","Myanmar (was Burma)"],["NAM","Namibia"],["NRU","Nauru"],["NPL","Nepal"],["NLD","Netherlands"],["NCL","New Caledonia"],["NZL","New Zealand"],["NIC","Nicaragua"],["NER","Niger"],["NGA","Nigeria"],["NIU","Niue"],["NFK","Norfolk Island"],["MNP","Northern Mariana Islands"],["PRK","North Korea (Korea, Democratic People's Republic of)"],["NOR","Norway"],["OMN","Oman"],["PAK","Pakistan"],["PLW","Palau"],["PSE","Palestinian Territories"],["PAN","Panama"],["PNG","Papua New Guinea"],["PRY","Paraguay"],["PER","Peru"],["PHL","Philippines"],["PCN","Pitcairn Island"],["POL","Poland"],["PRT","Portugal"],["PRI","Puerto Rico"],["QAT","Qatar"],["REU","Reunion"],["ROU","Romania"],["RUS","Russian Federation"],["RWA","Rwanda"],["BLM","Saint Barthelemy"],["SHN","Saint Helena"],["KNA","Saint Kitts and Nevis"],["LCA","Saint Lucia"],["SXM","Saint Maarten (Dutch part)"],["MAF","Saint Martin (French part)"],["SPM","Saint Pierre and Miquelon"],["VCT","Saint Vincent and the Grenadines"],["WSM","Samoa"],["SMR","San Marino"],["STP","Sao Tome and Principe"],["SAU","Saudi Arabia"],["SEN","Senegal"],["SRB","Serbia"],["SYC","Seychelles"],["SLE","Sierra Leone"],["SGP","Singapore"],["SVK","Slovakia (Slovak Republic)"],["SVN","Slovenia"],["SLB","Solomon Islands"],["SOM","Somalia"],["ZAF","South Africa"],["SGS","South Georgia and the South Sandwich Islands"],["KOR","South Korea (Korea, Republic of)"],["SSD","South Sudan"],["ESP","Spain"],["LKA","Sri Lanka"],["SDN","Sudan"],["SUR","Suriname"],["SJM","Svalbard and Jan Mayen Islands"],["SWE","Sweden"],["CHE","Switzerland"],["SYR","Syria"],["TWN","Taiwan"],["TJK","Tajikistan"],["TZA","Tanzania"],["THA","Thailand"],["TLS","Timor-Leste"],["TGO","Togo"],["TKL","Tokelau"],["TON","Tonga"],["TTO","Trinidad and Tobago"],["TUN","Tunisia"],["TUR","Turkey"],["TKM","Turkmenistan"],["TCA","Turks and Caicos Islands"],["TUV","Tuvalu"],["UGA","Uganda"],["UKR","Ukraine"],["ARE","United Arab Emirates"],["GBR","United Kingdom"],["USA","United States"],["UMI","United States Minor Outlying Islands"],["VIR","United States Virgin Islands"],["URY","Uruguay"],["UZB","Uzbekistan"],["VUT","Vanuatu"],["VAT","Vatican City State (Holy See)"],["VEN","Venezuela"],["VNM","Vietnam"],["WLF","Wallis and Futuna"],["ESH","Western Sahara"],["YEM","Yemen"],["ZMB","Zambia"],["ZWE","Zimbabwe"]]);class Za extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ja extends Ut{constructor(e,t){super(),this.Code=e,this.Name=t}}function Xa(e){let t;const n=function(e){const t=function(e){const t=Yo(e,Ka);return null==t?void 0:new qa(e,t)}(e),n=Jt(Kt("Country code:%A is not accepted"))(e),r=t;return null==r?new ri(1,n):new ri(0,r)}(e);return 1===n.tag?new ri(1,n.fields[0]):new ri(0,(t=n.fields[0],new Ja(t.Code,t.Name)))}class Qa extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const eu=new Qa(2,{HomeCountry:void 0});function tu(e){return new Qa(2,{HomeCountry:e})}class nu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class ru extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class ou extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class iu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function su(e){return e.fields[0]}function au(e){const t=function(e){const t=un(Da,e),n=t===e?new ri(0,void 0):new ri(1,"TFN must contain digits only");if(1===n.tag)return new ri(1,n.fields[0]);{const e=9===t.length?new ri(0,void 0):new ri(1,"TFN must be 9 digits");if(1===e.tag)return new ri(1,e.fields[0]);{const e=function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=vn(r,t.length);for(let r=0;r<=t.length-1;r++)o[r]=e(t[r],n[r]);return o}(((e,t)=>e*t),_n((e=>wi(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11==0?new ri(0,void 0):new ri(1,"TFN is not valid");return 1===e.tag?new ri(1,e.fields[0]):new ri(0,t)}}}(e);if(1===t.tag)return new ri(1,t.fields[0]);{const e=t.fields[0],r=function(e){if(We(e))return 0===e.length;if(e instanceof Tn)return Bn(e);{const t=mr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ke(t)}}}((n={Equals:(e,t)=>e===t,GetHashCode:it},vr(function(e,t,n){return wr((()=>{const r=new Va(e,n);return Tr((e=>Fa(e,r)),t)}))}(["0"],e.split(""),n))))?new ri(1,"TFN must not contain all zeros"):new ri(0,void 0);return 1===r.tag?new ri(1,r.fields[0]):new ri(0,e)}var n}class uu extends Ut{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Ut{constructor(e){super(),this.Unused=e}}(void 0);class lu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class cu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function du(){return gs("Dto.Dto.ResidencyStatusV2Dto",[],cu,(()=>[[],[],[["Item",ws(["HomeCountry",ys(ms("Dto.Dto.CountryDto",[],uu,(()=>[["Code",xs],["Name",xs]])))])]]]))}function fu(e){let t,n;switch(e.tag){case 1:return new ri(0,new Qa(1));case 2:return gn((t=e.fields[0].HomeCountry,null==t?void 0:(n=Xa(t.Code),1===n.tag?new ri(1,n.fields[0]):new ri(0,tu(n.fields[0])))),new ri(0,eu));default:return new ri(0,new Qa(0))}}class $u extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}function pu(){return gs("Dto.Dto.EmploymentBasisDto",[],$u,(()=>[[],[],[],[],[]]))}function hu(e){switch(e.tag){case 1:return new ri(0,new nu(1));case 2:return new ri(0,new nu(2));case 3:return new ri(0,new nu(3));case 4:return new ri(0,new nu(4));default:return new ri(0,new nu(0))}}class mu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}function wu(){return gs("Dto.Dto.DebtSupportDto",[],mu,(()=>[[],[],[],[],[]]))}function gu(e){switch(e.tag){case 1:return new ri(0,new Za(1));case 2:return new ri(0,new Za(2));case 3:return new ri(0,new Za(3));case 4:return new ri(0,new Za(4));default:return new ri(0,new Za(0))}}function yu(e){switch(e.tag){case 1:return new mu(1);case 2:return new mu(2);case 3:return new mu(3);case 4:return new mu(4);default:return new mu(0)}}const bu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Bn(i)){const e=r;return 1===e.tag?new ri(1,e.fields[0]):new ri(0,Hn(e.fields[0]))}{let s;const a=o(Fn(i));if(1===a.tag)s=new ri(1,a.fields[0]);else{const e=r;s=1===e.tag?new ri(1,e.fields[0]):new ri(0,Pn(a.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,t=o,n=Ln(i);continue e}}}(new ri(0,Dn()),e,t)}(gu,xr((t=e,n={Equals:ft,GetHashCode:lt},wr((()=>{const e=new Va([],n);return Tr((t=>Fa(t,e)),t)})))));var t,n},vu=e=>qn(yu,e);class xu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}function _u(){return gs("Dto.Dto.ExemptionReasonDto",[],xu,(()=>[[],[],[]]))}function Su(e){switch(e.tag){case 1:return new xu(1);case 2:return new xu(2);default:return new xu(0)}}class Cu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function Eu(){return gs("Dto.Dto.ProvidedTfnInformationDto",[],Cu,(()=>[[["Item",xs]],[["Item",_u()]]]))}class Tu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class ku extends Ut{constructor(e,t,n,r,o,i,s){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=n,this.ResidencyStatusV2=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Iu extends Ut{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=t}}class Au extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class Nu extends Ut{constructor(e,t){super(),this.Meta=e,this.Info=t}}class Ru extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Mu(){return gs("Dto.Commands.ResidencyStatusV2Dto",[],Ru,(()=>[[],[],[["Item",ms("Dto.Commands.WorkingHolidayPayload",[],Ou,(()=>[["HomeCountry",ms("Dto.Commands.CountryCode",[],Du,(()=>[["Code",xs]]))]]))]]]))}class Ou extends Ut{constructor(e){super(),this.HomeCountry=e}}class Du extends Ut{constructor(e){super(),this.Code=e}}class Pu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CreateOrUpdate","Update","ProvideFullTfnDeclaration","Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}class Gu extends Ut{constructor(e,t,n,r,o,i,s){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Bu extends Ut{constructor(e,t,n,r,o,i,s){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class Fu extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted","Truncated"]}}function Lu(e){return e}const Vu=null;function Uu(e){return Array.from(e)}function Hu(e){return Tt(e,"O")}function ju(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return us(e/864e5)}(e)),o=Math.abs(function(e){return us(e%864e5/36e5)}(e)),i=Math.abs(function(e){return us(e%36e5/6e4)}(e)),s=Math.abs(function(e){return us(e%6e4/1e3)}(e)),a=Math.abs(function(e){return us(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:tt(o,2)}:${tt(i,2)}:${tt(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+tt(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e)}function zu(){return null}function Wu(e){return Tt(e,"O")}function Yu(e,t,n,r){const o=new Ht(null);let i;const s=Cs(r);let a;if(i=""===s?e:Wo(s,o,e),Bs(r)){const e=_n((e=>{const r=ci(t,Ss(e)),o=qu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),Ds(r));a=t=>kr(((e,n)=>n(t)(e)),{},e)}else{if(!Gs(r)){let e;const t=Cs(r);throw e=Jt(Kt("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}a=e=>{const o=function(e,t){const n=Os(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return Ss(s);{const e=0|u,r=Ls(s),o=xn(new Array(e+1),0,e+1,null);o[0]=Ss(s);for(let s=1;s<=e;s++){const e=qu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=a,a}function qu(e,t,n,r){const o=Cs(r),i=Yo(o,e);if(null==i){if(Es(r)){const o=qu(e,t,n,Ts(r));return e=>Uu(Ar(o,e))}if(Is(r)){const e=Cs(Ns(r));if("System.SByte"===e)return e=>e;if("System.Byte"===e)return e=>e;if("System.Int16"===e)return e=>e;if("System.UInt16"===e)return e=>e;if("System.Int32"===e)return e=>e;if("System.UInt32"===e)return e=>e;{const e=Cs(r);return Xt(Kt("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(ks(r)){if(Fs(r)){const o=_n((r=>qu(e,t,n,r)),Ps(r));return e=>{return Uu((t=(e,t)=>o[e](t),n=e,Sr((()=>mr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?$n(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))));var t,n}}{const o=Cs(As(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new et((()=>{return o=qu(e,t,n,$s(r)[0]),e=>{return n=()=>Vu,null!=(t=yn(o,e))?pn(t):n();var t,n};var o}));return e=>null==e?Vu:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=qu(e,t,n,$s(r)[0]);return e=>Uu(Ar(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=$s(r)[0],i=qu(e,t,n,$s(r)[1]);if("System.String"===Cs(o)||"System.Guid"===Cs(o))return e=>kr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=qu(e,t,n,o);return r=s,e=>Uu(Ar((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Yu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?zu:"System.String"===o?e=>e:"System.Char"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Wu:"System.DateTimeOffset"===o?Hu:"System.TimeSpan"===o?ju:"System.Guid"===o?Lu:"System.Object"===o?e=>e:Yu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Ku(e){return Jt(Kt("%s/tfn-declaration/backend"))(e)}function Zu(e,t){return Zr.Delay((()=>{const n=ti(function(e){return new so(0,"Authorization",e)}(Jt(Kt("Bearer %s"))(e)),t);let r;const o=ni(n);return r=Zr.Bind(o,(e=>Zr.Return(new ri(0,e)))),Zr.Bind(r,(e=>{const t=e;if(1===t.tag)return Zr.Return(new ri(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ni(n);return Zr.Bind(e,(e=>Zr.Return(new ri(0,e))))}return Zr.Return(new ri(0,e))}}))}))}const Ju=e=>function(e,t){try{return ha("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new ri(1,"Given an invalid JSON: "+e.message);throw e}}(bt(2,function(e,t,n){const r=gn(t,new si(0));return Ma(function(e){return null!=e?qo(((e,t)=>new Ht(t[1])),e.Coders):Zo()}(void 0),r,!1,e)}(ms("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Nu,(()=>[["Meta",ws(["AccountId",xs])],["Info",ys(gs("Dto.BackendApiModels.Read.Information",[],Au,(()=>[[["Item",ms("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],ku,(()=>[["TfnInformation",gs("Dto.BackendApiModels.Read.TfnInformation",[],Tu,(()=>[[["Item",xs]],[["Item",_u()]]]))],["PreviousSurname",ys(xs)],["ResidencyStatus",gs("Dto.Dto.ResidencyStatusDto",[],lu,(()=>[[],[],[]]))],["ResidencyStatusV2",du()],["EmploymentBasis",pu()],["IsTaxFreeThresholdClaimed",_s],["HasDebtSupport",bs(wu())]]))]],[["Item",ms("Dto.BackendApiModels.Read.EmploymentInfo",[],Iu,(()=>[["ResidencyStatusV2",ys(du())],["EmploymentBasis",pu()]]))]]])))]])),new si(1))),e);function Xu(e,t){return Zr.Delay((()=>{const n=Zu(e,ei(new io(0),Qo(Ku(t))));return Zr.Bind(n,(e=>{const t=e;if(1===t.tag)return Zr.Return(new ri(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Ju(e.responseText);return Zr.Return(t)}return Zr.Return(new ri(1,"Unexpected response from backend"))}}))}))}function Qu(e,t){let n,r,o;const i=e.TfnInformation.Value;if(o=null==i?new ri(1,"missing TFN info"):new ri(0,i),1===o.tag)return new ri(1,o.fields[0]);{const i=o.fields[0];let s;const a=e.PreviousSurname.Value;let u,l;s=null==a?void 0:su(a);const c=e.ResidencyStatus.Value;if(null==c)l=void 0;else{const e=function(e){switch(e.tag){case 1:return new ri(0,new Ru(1));case 2:{let t;const n=e.fields[0].HomeCountry;return t=null==n?new ri(1,"Home country should be specified for WorkingHolidayMaker"):new ri(0,n),1===t.tag?new ri(1,t.fields[0]):new ri(0,new Ru(2,new Ou(new Du(t.fields[0].Code))))}default:return new ri(0,new Ru(0))}}(c);l=1===e.tag?void 0:e.fields[0]}if(u=null==l?new ri(1,"missing residency status"):new ri(0,l),1===u.tag)return new ri(1,u.fields[0]);{const o=u.fields[0];let a,l;const c=e.EmploymentBasisRadioButtonGroup.Value;if(l=null==c?void 0:function(e){switch(e.tag){case 1:return new $u(1);case 2:return new $u(2);case 3:return new $u(3);case 4:return new $u(4);default:return new $u(0)}}(c),a=null==l?new ri(1,"missing employment basis"):new ri(0,l),1===a.tag)return new ri(1,a.fields[0]);{const u=a.fields[0];let l,c;const d=e.ClaimTaxFreeThreshold.Selected;if(c=null==d?void 0:(n=d,!(1===n.tag)),l=null==c?new ri(1,"missing is tax-free threshold claimed"):new ri(0,c),1===l.tag)return new ri(1,l.fields[0]);{const n=l.fields[0],a=gn((r=e.DebtSupportCheckboxGroup.Value,null==r?void 0:vu(r)),Dn()),c=()=>0===i.tag?new ri(1,"New TFN declaration cannot have a truncated TFN"):1===i.fields[0].tag?new ri(0,new Cu(1,Su(i.fields[0].fields[0]))):new ri(0,new Cu(0,i.fields[0].fields[0].fields[0])),d=t.Info;if(null!=d){if(0===d.tag)return new ri(0,Gn(new Pu(1,new Bu(t.Meta.AccountId,0===i.tag?new Fu(2,i.fields[0]):1===i.fields[0].tag?new Fu(1,Su(i.fields[0].fields[0])):new Fu(0,i.fields[0].fields[0].fields[0]),s,o,u,n,a))));{const e=c();return 1===e.tag?new ri(1,e.fields[0]):new ri(0,Gn(new Pu(2,{EmploymentBasis:u,HasDebtSupport:a,IsTaxFreeThresholdClaimed:n,PreviousSurname:s,ResidencyStatus:o,TfnInformation:e.fields[0]})))}}{const e=c();return 1===e.tag?new ri(1,e.fields[0]):new ri(0,Gn(new Pu(0,new Gu(t.Meta.AccountId,e.fields[0],s,o,u,n,a))))}}}}}}function el(e,t,n){return Zr.Delay((()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=Zr.Delay((()=>Zr.Return(new ri(0,s))));break;case 1:r=Xu(t,n)}return Zr.Bind(r,(r=>{const o=r;if(1===o.tag)return Zr.Return(new ri(1,o.fields[0]));{const r=o.fields[0];let i;const s=Qu(e,r);return i=Zr.Return(s),Zr.Bind(i,(e=>{let o;const i=e;if(1===i.tag)return Zr.Return(new ri(1,i.fields[0]));{const e=i.fields[0];if(Bn(e))return Zr.Return(new ri(0,r));{const r=Zu(t,(s=new ao(1,function(e,t){return JSON.stringify(t,bt(2,void 0),$n(e))}(0,function(e,t,n,r){const o=gn(t,new si(0)),i=gn(void 0,!0);return qu(function(e){return null!=e?qo(((e,t)=>new Ht(t[0])),e.Coders):Zo()}(void 0),o,i,e)}(bs(gs("Dto.Commands.TfnDeclarationCommandDto",[],Pu,(()=>[[["Item",ms("Dto.Commands.TfnDeclarationDetailsDto",[],Gu,(()=>[["AccountId",xs],["TfnInformation",Eu()],["PreviousSurname",ys(xs)],["ResidencyStatus",Mu()],["EmploymentBasis",pu()],["IsTaxFreeThresholdClaimed",_s],["HasDebtSupport",bs(wu())]]))]],[["Item",ms("Dto.Commands.UpdateTfnDeclarationDetailsDto",[],Bu,(()=>[["AccountId",xs],["TfnInformation",gs("Dto.Commands.UpdateProvidedTfnInformationDto",[],Fu,(()=>[[["Item",xs]],[["Item",_u()]],[["Item",xs]]]))],["PreviousSurname",ys(xs)],["ResidencyStatus",Mu()],["EmploymentBasis",pu()],["IsTaxFreeThresholdClaimed",_s],["HasDebtSupport",bs(wu())]]))]],[["Item",ws(["EmploymentBasis",pu()],["HasDebtSupport",bs(wu())],["IsTaxFreeThresholdClaimed",_s],["PreviousSurname",ys(xs)],["ResidencyStatus",Mu()],["TfnInformation",Eu()])]],[["Item",ws(["AccountId",xs],["EmploymentBasis",pu()],["HasDebtSupport",bs(wu())],["IsTaxFreeThresholdClaimed",_s],["PreviousSurname",ys(xs)],["ResidencyStatus",Mu()],["TfnInformation",Eu()])]],[["Item",Eu()]],[["Item",ys(xs)]],[["Item",Mu()]],[["Item",pu()]],[["Item",_s]],[["Item",bs(wu())]]]))),new si(1))(e))),a=ei(new io(2),Qo(Ku(n))),o=new uo(a.url,a.method,a.headers,a.withCredentials,a.overridenMimeType,a.overridenResponseType,a.timeout,s),ti(new so(0,"Content-Type","application/json"),o)));return Zr.Bind(r,(e=>{const t=e;if(1===t.tag)return Zr.Return(new ri(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Ju(e.responseText);return Zr.Return(t)}return Zr.Return(new ri(1,"Unexpected response from backend"))}}))}}var s,a}))}}))}))}class tl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function nl(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function rl(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function ol(e){return e.tag,e.fields[0]}function il(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=Xr();var u;return u=()=>{!function(e,t){no(Zr.Delay((()=>Zr.Bind(to(5e3),(()=>(e(),Zr.Zero()))))),t)}(i,a)},Vr(u,[]),f("div",gt(Wn([["className",rn(" ",["rounded-md","p-4","my-4",rl(s)])],["data-testid","alert"],(t=[f("div",gt(Wn([["className",rn(" ",["flex"])],(n=[f("p",{className:rn(" ",["text-sm","pr-2",nl(s)]),children:ol(s)}),f("div",gt(Wn([["className",rn(" ",["ml-auto"])],(r=[f("div",gt(Wn([["className",rn(" ",["-mx-1.5","-my-1.5"])],(o=[f("button",{type:"button",className:rn(" ",xr(wr((()=>Cr(br("inline-flex"),wr((()=>Cr(br("rounded-md"),wr((()=>Cr(br("p-1.5"),wr((()=>Cr(br("focus:outline-none"),wr((()=>Cr(br("focus:ring-2"),wr((()=>Cr(br("focus:ring-offset-2"),wr((()=>function(e){switch(e.tag){case 0:return Wn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Wn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Wn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:Kn.Children.toArray([tr]),onClick:e=>{Qr(a),i()}})],["children",Kn.Children.toArray(Array.from(o))])])))],["children",Kn.Children.toArray(Array.from(r))])])))],["children",Kn.Children.toArray(Array.from(n))])])))],["children",Kn.Children.toArray(Array.from(t))])])))}function sl(e,t,n){jn((n=>{try{n(t)}catch(t){e(t)}}),n)}function al(){return Dn()}function ul(e,t){return qn((t=>n=>{t((t=>{n(e(t))}))}),t)}function ll(e){return Gn((t=>{t(e)}))}function cl(e,t,n,r){return Gn((o=>{e(t).then((e=>o(n(e)))).catch((e=>o(r(e))))}))}function dl(e,t,n,r,o){const i=function(e,t,n,r){const o=0|mt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|mt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return wr((()=>{return t=i,n=e,hr((()=>function(e,t){let n,r=t;return $r((()=>{if(null!=n){const e=n[0];return n[1],e}return lr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class fl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class $l{constructor(e){this.state=new fl(0,xn(new Array(wt(pt,e,10)),0,wt(pt,e,10),null),0)}}function pl(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new fl(0,o,n):new fl(1,o,n,i),$n(o[r])}}class hl extends Ut{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function ml(e,t,n){return new hl(e,t,(e=>al()),n,bt(2,(e=>{const t=_t(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error($n(t),n)}),bt(2,(e=>e)))}function wl(e,t){return new hl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.syncDispatch)}function gl(e,t){const n=t.init(e),r=n[0],o=new $l(10);let i=!1,s=r;const a=_t(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new fl(1,(r=s,o=a,Array.from(wr((()=>Cr(Mr(r,o),wr((()=>{return Cr((e=r,t=o,Sr((()=>mr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return $n(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ur+"\\nParameter name: source")}}),(e=>{Ke(e)}))),wr((()=>Or((e=>br(null)),dl(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new fl(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new fl(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=$n(e);for(;null!=n;){const e=pn(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),sl((n=>{t.onError([Jt(Kt("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Jt(Kt("Unable to process the message: %A"))(e),n])}n=pl(o)}i=!1}}]);t.setState(r,a),sl((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=In();let n=t;const r=e=>{n=Un(((e,t)=>{const n=new Tn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof Tn)jn(r,e);else{const t=Xe(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ke(t)}}const o=n,i=In();return o.tail=i,On(t)}(Wn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),al()}})(),n[1]])))}class yl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function bl(){return new yl}function vl(e,t,n,r){gl(t,wl(((e,t)=>{!function(e,t,n){e.state=$n(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),e()));const o=function(e){return e.state}(n);if(null!=o)return pn(o);throw new Error("Elmish program has not initialized")}function xl(e,t){return function(e,t,n){const r=Br(bl)[0],o=Br((()=>vl(e,t,r))),i=o[1];return Lr((()=>(function(e){return e.hasDisposedOnce}(r)&&i(vl(e,t,r)),Gr((()=>{!function(e){const t=e.state;if(null!=t){const e=pn(t);qe(e)&&Ke(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),gn(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,i),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function _l(e,t,n){return xl((()=>ml((()=>e),t,((e,t)=>{}))),n)}class Sl extends Ut{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Cl(){return new Sl(void 0,{Valid:!1})}function El(e){return new Sl(e,{Valid:!0})}function Tl(e){return new Sl(e,{Valid:!1})}function kl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function Il(e){switch(e){case"HELP":return new Za(0);case"VETStudentLoan":return new Za(1);case"FinancialSupplement":return new Za(2);case"StudentStartUpLoan":return new Za(3);case"TradeSupportLoan":return new Za(4);default:return}}function Al(e){switch(e){case"FullTime":return new nu(0);case"PartTime":return new nu(1);case"LabourHire":return new nu(2);case"SuperIncomeStream":return new nu(3);case"Casual":return new nu(4);default:return}}function Nl(e){return f("p",{className:rn(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function Rl(e){let t;return f("div",gt(Wn([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[rr,f("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Kn.Children.toArray(Array.from(t))])])))}class Ml extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Ol extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class Dl extends Ut{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Pl(e){return new Dl(e,{Touched:!1})}function Gl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new Dl(e.fields[0],t.Meta):t:new Dl(e.fields[0],{Touched:!0})}function Bl(e){const t=ft(e.Parent.State.Selected,e.Selection)?xr(wr((()=>Cr(null!=e.Parent.Disable?br("bg-gray-50"):br("bg-white"),wr((()=>Cr(br("border-gray-200"),wr((()=>Cr(br("shadow-sm"),wr((()=>null!=e.Parent.Disable?br("text-gray-400"):br("text-gray-900"))))))))))))):xr(wr((()=>Cr(br("shadow-none"),wr((()=>null!=e.Parent.Disable?br("text-gray-400"):br("text-gray-700")))))));return f("button",{className:rn(" ",xr(wr((()=>Cr(br("relative"),wr((()=>Cr(br("w-1/2"),wr((()=>Cr(br("border-gray-200"),wr((()=>Cr(br("rounded-md"),wr((()=>Cr(br("shadow-sm"),wr((()=>Cr(br("py-2"),wr((()=>Cr(br("text-sm"),wr((()=>Cr(br("font-medium"),wr((()=>Cr(br("whitespace-nowrap"),wr((()=>Cr(br("focus:outline-none"),wr((()=>Cr(br("focus:ring-inset"),wr((()=>Cr(br("focus:ring-1"),wr((()=>Cr(br("focus:ring-primary-focus"),wr((()=>Cr(br("focus:z-10"),wr((()=>Cr(br("w-auto"),wr((()=>Cr(br("px-8"),wr((()=>Cr(ft(e.Parent.Disable,e.Selection)?br("disabled:cursor-not-allowed"):yr(),wr((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Ol(0,e.Selection))},disabled:ft(e.Parent.Disable,e.Selection),children:Lt(e.Selection)})}function Fl(e){let t;return f("div",gt(Wn([["className",rn(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Bl({Parent:e,Selection:new Ml(0)}),Bl({Parent:e,Selection:new Ml(1)})],["children",Kn.Children.toArray(Array.from(t))])])))}class Ll extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Vl extends Ut{constructor(e){super(),this.Selected=e}}function Ul(e){let t;const n=_l((r=e.InitialValue,[new Vl(r),al()]),((t,n)=>function(e,t,n){const r=function(e,t){return new Vl(e.fields[0])}(t);return e(new Sl(r.Selected,{Valid:null!=r.Selected})),[r,al()]}(e.OnUpdate,t)));var r;return f("div",gt(Wn([["className",rn(" ",["space-y-2","mt-2"])],(t=xr(wr((()=>Or((t=>{let r,o;const i=t[0];return br(f("label",gt(Wn([["className",rn(" ",["flex","items-start"])],(r=[f("input",{className:rn(" ",["focus:ring-primary-focus","block","mt-0.5","mb-0.5","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:mn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Ll(0,i))}}),f("label",gt(Wn([["className",rn(" ",["ml-3","block","text-sm"])],["for",i],(o=xr(wr((()=>Cr(br(f("span",{className:rn(" ",["block","text-gray-900"]),children:t[1]})),wr((()=>{const e=t[2];if(null==e)return br(null);{const t=e;return br(f("span",{className:rn(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Kn.Children.toArray(Array.from(o))])])))],["children",Kn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Kn.Children.toArray(Array.from(t))])])))}class Hl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class jl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class zl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Wl extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Yl extends Ut{constructor(e,t,n,r,o){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r,this.TfnInputTouched=o}}function ql(e){let t;const n=e.EditingState;if(1===n.tag){const e=n.fields[0];return new Sl((t=e.Value,null==t?void 0:new zl(1,t)),e.Meta)}return new Sl(new zl(0,mn(e.TruncatedTfn)),{Valid:!0})}const Kl=e=>!(1===au(e).tag);function Zl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Yl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Wl(1,new Sl(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Yl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Wl(1,new Sl(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Yl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Wl(1,new Sl(n.Value,{Valid:Kl(t)})),e.TfnInputTouched)}}return e}function Jl(e){const t=e.EditingState;if(1!==t.tag)return"";{const e=t.fields[0].Value;let n,r;switch(null!=e&&0===e.tag?(n=0,r=e.fields[0]):n=1,n){case 0:return r.fields[0];case 1:return""}}}function Xl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Ql(e){let t,n,r,o;const i=_l(function(e){let t,n,r;return[Zl(new Yl(Pl(null!=e&&1===e.tag&&1===e.fields[0].tag?new Ml(1):new Ml(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Wl(1,Cl()):1===e.tag?(r=e.fields[0],new Wl(1,new Sl(r,{Valid:!1}))):new Wl(0),!1)),al()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Yl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new jl(0,new ru(0,n)),o=Kl(n);return t.EditingState.tag,new Yl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Wl(1,new Sl(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0];let r,o;const i=n.Value;return o=null==i?void 0:function(e){switch(e){case"Under18AndBelowTaxThreshold":return new ou(0);case"Pending":return new ou(1);case"Pensioner":return new ou(2);default:return}}(i),r=null==o?void 0:new jl(1,o),t.EditingState.tag,new Yl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Wl(1,new Sl(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Yl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Wl(0),t.TfnInputTouched):new Yl(t.YesNoButtonGroup,t.TruncatedTfn,new tl(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Wl(1,Cl()),!1);case 5:return Zl(new Yl(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState,t.TfnInputTouched));default:{const n=e.fields[0];let r,o,i;switch(n.tag,o=0,i=n.fields[0],o){case 0:{const e=[i,t.EditingState];if(1===e[0].tag)if(1===e[1].tag){const n=e[1].fields[0].Value;let o;switch(o=null!=n&&1===n.tag?0:1,o){case 0:r=t.EditingState;break;case 1:r=new Wl(1,Cl())}}else r=new Wl(1,Cl());else if(1===e[1].tag){const n=[e[1].fields[0].Value,t.TruncatedTfn];let o;switch(o=null!=n[0]&&0===n[0].tag?0:null!=n[1]?1:2,o){case 0:r=t.EditingState;break;case 1:r=new Wl(0);break;case 2:r=new Wl(1,Cl())}}else r=new Wl(0);break}}return new Yl(Gl(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(ql(r)),[r,al()]}(e.OnUpdate,t,n))),s=i[0],a=i[1],u=null==s.TruncatedTfn?null:f("div",gt(Gn((t=[f("button",gt(Wn([["className",rn(" ",["relative","inline-flex","items-center","space-x-2","px-3","sm:py-2","py-3","border","border-gray-300","text-sm","font-medium","rounded-r-md","text-gray-700","bg-gray-50","hover:bg-gray-100","focus:outline-none","focus:ring-1","focus:ring-primary-focus","focus:border-primary-focus","focus:z-20","-ml-px"])],["type","button"],(n=xr(wr((()=>ft(s.EditingState,new Wl(0))?Cr(br(Jn),wr((()=>br(f("span",{children:["Edit"]}))))):Cr(br(Xn),wr((()=>br(f("span",{children:["Cancel"]})))))))),["children",Kn.Children.toArray(Array.from(n))]),["onClick",e=>{a(new Hl(4))}]])))],["children",Kn.Children.toArray(Array.from(t))]))));return f("div",gt(Wn([["className",rn(" ",or)],(r=[Nl("Do you have your Tax File Number (TFN)?"),f(Fl,{Disable:void 0,Dispatch:e=>{a(new Hl(0,e))},State:s.YesNoButtonGroup}),f("div",gt(Wn([["className",rn(" ",["mt-4"])],(o=xr(wr((()=>{let e,t,n,r,o,i;return Cr((e=s.YesNoButtonGroup.Selected,null!=e?1===e.tag?br(f(Ul,(t=qn((e=>[Lt(e[0]),e[1],e[2]]),Wn([[new xu(1),"My TFN is pending",void 0],[new xu(0),"I'm under 18 and don't have a TFN",void 0],[new xu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=ql(s).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Lt(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{a(new Hl(3,e))},ValueLabelPairs:t}))):(o=[s.TruncatedTfn,s.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],Cr(br(Nl("Enter your TFN")),wr((()=>{let e,t,n;return br(f("div",gt(Wn([["className",rn(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[f("div",gt(Wn([["className","relative flex items-stretch flex-grow"],(t=[f("input",gt(Wn([["className",rn(" ",["focus:ring-primary-focus","focus:border-primary-focus","bg-gray-50","focus:z-20","relative","block","w-full","rounded-none","rounded-l-md","pl-3","sm:text-sm","text-base","border","border-gray-300","text-gray-500"])],["disabled",!0],(n=`*** *** *${i}`,["ref",e=>{null==e||ft(e.value,n)||(e.value=n)}])])))],["children",Kn.Children.toArray(Array.from(t))])]))),u],["children",Kn.Children.toArray(Array.from(e))])]))))})))):Cr(br(Nl("Enter your TFN")),wr((()=>{let e;return br(f("div",gt(Wn([["className",rn(" ",["mt-1"])],(e=xr(wr((()=>{let e,t;return Cr(br(f("div",gt(Wn([["className",rn(" ",["relative","flex","items-stretch","flex-grow"])],(e=[f("input",gt(Wn([["className",rn(" ",xr(wr((()=>Cr(br("block"),wr((()=>Cr(br("w-full"),wr((()=>Cr(br("focus:outline-none"),wr((()=>Cr(br("text-base"),wr((()=>Cr(br("focus:z-20"),wr((()=>Cr(br("relative"),wr((()=>Cr(br("sm:text-sm"),wr((()=>Cr(br("rounded-md"),wr((()=>Cr(br("border-gray-300"),wr((()=>Cr(br("focus:ring-primary-focus"),wr((()=>Cr(br("focus:border-primary-focus"),wr((()=>Cr(br("block"),wr((()=>Cr(br("w-full"),wr((()=>Cr(null==s.TruncatedTfn?br("rounded-md"):br("rounded-none rounded-l-md"),wr((()=>Xl(s)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:yr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{a(new Hl(1,un(Da,e.target.value)))}],(t=Jl(s),["ref",e=>{null==e||ft(e.value,t)||(e.value=t)}]),["onBlur",e=>{a(new Hl(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Kn.Children.toArray(Array.from(e))])])))),wr((()=>Xl(s)?br(f("div",{className:rn(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):yr())))}))),["children",Kn.Children.toArray(Array.from(e))])]))))})))):br(null)),wr((()=>{let e;return br((e=xr(wr((()=>{const e=s.CurrentAlert;return br(null==e?null:f(il,{alert:e,hideAlert:()=>{a(new Hl(5))}}))}))),f("div",{children:Kn.Children.toArray(Array.from(e))})))})))}))),["children",Kn.Children.toArray(Array.from(o))])])))],["children",Kn.Children.toArray(Array.from(r))])])))}let ec="undefined"!=typeof window?ee:Q;function tc(e){let t=te(e);return ec((()=>{t.current=e}),[e]),t}function nc(e,t){let[n,r]=J(e),o=tc(e);return ec((()=>r(o.current)),[o,r,...t]),n}function rc(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function oc(){let[e]=J(rc);return Q((()=>()=>e.dispose()),[e]),e}let ic=function(e){let t=tc(e);return je.useCallback(((...e)=>t.current(...e)),[t])},sc={serverHandoffComplete:!1};var ac;let uc=0;function lc(){return++uc}let cc=null!=(ac=je.useId)?ac:function(){let e=function(){let[e,t]=J(sc.serverHandoffComplete);return Q((()=>{!0!==e&&t(!0)}),[e]),Q((()=>{!1===sc.serverHandoffComplete&&(sc.serverHandoffComplete=!0)}),[]),e}(),[t,n]=je.useState(e?lc:null);return ec((()=>{null===t&&n(lc())}),[t]),null!=t?""+t:void 0};function dc(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,dc),r}function fc(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let $c=["[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 pc=(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))(pc||{}),hc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(hc||{}),mc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(mc||{}),wc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wc||{});function gc(e,t,n){let r=tc(t);Q((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function yc(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function bc(e,t){let[n,r]=J((()=>yc(e)));return ec((()=>{r(yc(e))}),[e.type,e.as]),ec((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let vc=Symbol();function xc(...e){let t=te(e);Q((()=>{t.current=e}),[e]);let n=ic((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[vc])))?void 0:n}var _c=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(_c||{});var Sc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Sc||{}),Cc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Cc||{});function Ec({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=kc(t,e);if(i)return Tc(a,n,r,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=a;if(e)return Tc(t,n,r,s)}if(1&u){let{unmount:e=!0,...t}=a;return dc(e?0:1,{0:()=>null,1:()=>Tc({...t,hidden:!0,style:{display:"none"}},n,r,s)})}return Tc(a,n,r,s)}function Tc(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=Nc(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},l="function"==typeof i?i(t):i;a.className&&"function"==typeof a.className&&(a.className=a.className(t));let c={};if(o===p&&Object.keys(Ac(a)).length>0){if(!Ve(l)||Array.isArray(l)&&l.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((e=>` - ${e}`)).join("\n"),"","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((e=>` - ${e}`)).join("\n")].join("\n"));return Ue(l,Object.assign({},kc(l.props,Ac(Nc(a,["ref"]))),c,u))}return f(o,Object.assign({},Nc(a,["ref"]),o!==p&&u,o!==p&&c),l)}function kc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function Ic(e){var t;return Object.assign(me(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ac(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Nc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Rc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Oc(n,Mc(t,r),o);return n}function Mc(e,t){return e?e+"["+t+"]":t}function Oc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Oc(e,Mc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):Rc(n,t,e)}var Dc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Dc||{});let Pc=Ic((function(e,t){let{features:n=1,...r}=e;return Ec({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),Gc=G(null);Gc.displayName="OpenClosedContext";var Bc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bc||{});function Fc({value:e,children:t}){return je.createElement(Gc.Provider,{value:e},t)}var Lc=(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))(Lc||{}),Vc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Vc||{}),Uc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Uc||{}),Hc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Hc||{}),jc=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(jc||{});function zc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Wc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=zc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=zc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=zc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Yc=G(null);function qc(e){let t=oe(Yc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qc),t}return t}Yc.displayName="ComboboxActionsContext";let Kc=G(null);function Zc(e){let t=oe(Kc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zc),t}return t}function Jc(e,t){return dc(t.type,Wc,e,t)}Kc.displayName="ComboboxDataContext";let Xc=p,Qc=Ic((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:s=!1,nullable:a=!1,multiple:u=!1,...l}=e,[c,d]=X(Jc,{dataRef:{current:null},comboboxState:s?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),f=te(!1),$=te({static:!1,hold:!1}),p=te({displayValue:void 0}),h=te(null),m=te(null),w=te(null),g=te(null),y=ic(((e,t)=>e===t)),b=re((e=>dc(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=ne((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:w,optionsRef:g,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(f.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:a,__demoMode:s})),[r,i,u,a,s,c]);ec((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=te(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),s=o(n);if(null!==s&&s.ownerDocument.documentElement.contains(s)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(s))return}return!function(e,t=0){var n;return e!==(null==(n=fc(e))?void 0:n.body)&&dc(t,{0:()=>e.matches($c),1(){let t=e;for(;null!==t;){if(t.matches($c))return!0;t=t.parentElement}return!1}})}(s,wc.Loose)&&-1!==s.tabIndex&&n.preventDefault(),t(n,s)}}Q((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),gc("click",(e=>o(e,(e=>e.target))),!0),gc("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>d({type:1})),0===v.comboboxState);let x=ne((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=re((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=ic((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=ic((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),d({type:2,focus:_c.Specific,id:t})}})),E=ic((()=>{d({type:0}),f.current=!0})),T=ic((()=>{d({type:1}),f.current=!1})),k=ic(((e,t,n)=>(f.current=!1,e===_c.Specific?d({type:2,focus:_c.Specific,id:t,trigger:n}):d({type:2,focus:e,trigger:n})))),I=ic(((e,t)=>(d({type:3,id:e,dataRef:t}),()=>d({type:4,id:e})))),A=ic((e=>dc(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=ne((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:T,openCombobox:E,selectActiveOption:C,selectOption:S})),[]);ec((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),ec(_,[_]);let R=null===t?{}:{ref:t};return je.createElement(Yc.Provider,{value:N},je.createElement(Kc.Provider,{value:v},je.createElement(Fc,{value:dc(v.comboboxState,{0:Bc.Open,1:Bc.Closed})},null!=n&&null!=r&&Rc({[n]:r}).map((([e,t])=>je.createElement(Pc,{features:Dc.Hidden,...Ac({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Ec({ourProps:R,theirProps:l,slot:x,defaultTag:Xc,name:"Combobox"}))))})),ed=Ic((function(e,t){var n,r;let{value:o,onChange:i,displayValue:s,type:a="text",...u}=e,l=Zc("Combobox.Input"),c=qc("Combobox.Input"),d=xc(l.inputRef,t),f=l.inputPropsRef,$=`headlessui-combobox-input-${cc()}`,p=oc();ec((()=>{f.current.displayValue=s}),[s,f]);let h=ic((e=>{switch(e.key){case Lc.Backspace:case Lc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(_c.Nothing))}));break;case Lc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case Lc.ArrowDown:return e.preventDefault(),e.stopPropagation(),dc(l.comboboxState,{0:()=>{c.goToOption(_c.Next)},1:()=>{c.openCombobox()}});case Lc.ArrowUp:return e.preventDefault(),e.stopPropagation(),dc(l.comboboxState,{0:()=>{c.goToOption(_c.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(_c.Last)}))}});case Lc.Home:case Lc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(_c.First);case Lc.End:case Lc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(_c.Last);case Lc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Lc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=ic((e=>{c.openCombobox(),null==i||i(e)})),w=nc((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=ne((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return Ec({ourProps:{ref:d,id:$,role:"combobox",type:a,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),td=Ic((function(e,t){var n;let r=Zc("Combobox.Button"),o=qc("Combobox.Button"),i=xc(r.buttonRef,t),s=`headlessui-combobox-button-${cc()}`,a=oc(),u=ic((e=>{switch(e.key){case Lc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Lc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),a.nextFrame((()=>{r.value||o.goToOption(_c.Last)}))),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Lc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=ic((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),a.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=nc((()=>{if(r.labelRef.current)return[r.labelRef.current.id,s].join(" ")}),[r.labelRef.current,s]),d=ne((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),f=e;return Ec({ourProps:{ref:i,id:s,type:bc(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:f,slot:d,defaultTag:"button",name:"Combobox.Button"})})),nd=Ic((function(e,t){let n=Zc("Combobox.Label"),r=`headlessui-combobox-label-${cc()}`;return Ec({ourProps:{ref:xc(n.labelRef,t),id:r,onClick:ic((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:ne((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),rd=Sc.RenderStrategy|Sc.Static,od=Ic((function(e,t){var n;let{hold:r=!1,...o}=e,i=Zc("Combobox.Options"),s=xc(i.optionsRef,t),a=`headlessui-combobox-options-${cc()}`,u=oe(Gc),l=null!==u?u===Bc.Open:0===i.comboboxState;ec((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),ec((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=te(t),i=te(n);Q((()=>{o.current=t,i.current=n}),[t,n]),ec((()=>{if(!e||!r)return;let t=fc(e);if(!t)return;let n=o.current,s=i.current,a=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,a,!1);for(;u.nextNode();)s(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=nc((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),d=ne((()=>({open:0===i.comboboxState})),[i]);return Ec({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:a,ref:s},theirProps:o,slot:d,defaultTag:"ul",features:rd,visible:l,name:"Combobox.Options"})})),id=Ic((function(e,t){var n,r;let{disabled:o=!1,value:i,...s}=e,a=Zc("Combobox.Option"),u=qc("Combobox.Option"),l=`headlessui-combobox-option-${cc()}`,c=null!==a.activeOptionIndex&&a.options[a.activeOptionIndex].id===l,d=a.isSelected(i),f=te(null),$=tc({disabled:o,value:i,domRef:f,textValue:null==(r=null==(n=f.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=xc(t,f),h=ic((()=>u.selectOption(l)));ec((()=>u.registerOption(l,$)),[$,l]);let m=te(!a.__demoMode);ec((()=>{if(!a.__demoMode)return;let e=rc();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),ec((()=>{if(0!==a.comboboxState||!c||!m.current||0===a.activationTrigger)return;let e=rc();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[f,c,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let w=ic((e=>{var t;if(o)return e.preventDefault();h(),0===a.mode&&(u.closeCombobox(),null==(t=a.inputRef.current)||t.focus({preventScroll:!0}))})),g=ic((()=>{if(o)return u.goToOption(_c.Nothing);u.goToOption(_c.Specific,l)})),y=ic((()=>{o||c||u.goToOption(_c.Specific,l,0)})),b=ic((()=>{o||!c||a.optionsPropsRef.current.hold||u.goToOption(_c.Nothing)})),v=ne((()=>({active:c,selected:d,disabled:o})),[c,d,o]);return Ec({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===d||void 0,disabled:void 0,onClick:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:s,slot:v,defaultTag:"li",name:"Combobox.Option"})})),sd=Object.assign(Qc,{Input:ed,Button:td,Label:nd,Options:od,Option:id});class ad extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class ud extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function ld(e){const t=Ba(e,1);return f(sd.Input,t)}class cd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function dd(e,t){const n=Ba(e,1);return f(sd.Options,n,...t)}class fd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function $d(e){const t=Ba(e,1);return f(sd.Button,t)}class pd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class hd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class md extends Ut{constructor(e){super(),this.ResidencyStatus=e}}function wd(e){return function(e){let t,n;switch(null==e?t=2:1===e.tag?t=0:2===e.tag?(t=1,n=e.fields[0]):t=0,t){case 0:return!0;case 1:return null!=n.HomeCountry;case 2:return!1}}(e)?El(e):Tl(e)}function gd(e){return new md(wd(e.ResidencyStatus.Value))}function yd(e,t,n){let r,o;const i=zr(""),s=e=>{let t,n;return gn((n=Xa(e),t=1===n.tag?void 0:n.fields[0],null==t?void 0:t.Name),"")};let a;const u=hn(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:a=t;break;case 1:d=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Bt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},a=function(e,t){return Vo(e.comparer,Io(e.comparer,t,e.tree))}(t,d)}var d;return function(e){const t=Ba(e,1);return f(sd,t)}(Wn([new ad(0,s(e)),new ad(1,n),new ad(2,[f("div",gt(Wn([["className","relative mt-1"],(r=[f("div",gt(Wn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[ld(Wn([new ud(0,s(e)),new ud(2,"block w-full pr-10 focus:outline-none text-base sm:text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new ud(1,(e=>{i[1](e.target.value)})),new ud(3,"off")])),$d(Wn([new fd(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new fd(1,[nr])]))],["children",Kn.Children.toArray(Array.from(o))])]))),dd(Gn(new cd(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),xr(wr((()=>Cr(0===jo(a)?br(f("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Kn.Children.toArray(["Nothing found"])})):yr(),wr((()=>Or((e=>{const t=e,n=t[0];return br(function(e){const t=Ba(e,1);return f(sd.Option,t)}(Wn([new pd(0,n),new pd(1,n),new pd(2,"relative cursor-default select-none"),new pd(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[f("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),a))))))))],["children",Kn.Children.toArray(Array.from(r))])])))])]))}function bd(e){let t;const n=_l((r=e.InitialValue,[gd(new md(Tl(r))),al()]),((t,n)=>function(e,t,n){const r=function(e,t){let n;if(1===e.tag){let t;const n=Xa(gn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],gd(new md(Tl(null==t?eu:tu(t))))}return gd(new md(Tl((n=e.fields[0].Value,null==n?void 0:function(e){switch(e){case"AustralianResidentForTaxPurposes":return new Qa(0);case"ForeignResidentForTaxPurposes":return new Qa(1);case"WorkingHolidayMaker":return eu;default:return}}(n)))))}(t);return e(r.ResidencyStatus),[r,al()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return f("div",gt(Gn((t=xr(wr((()=>Cr(br(Nl("Are you an Australian resident for tax purposes or a working holiday maker?")),wr((()=>{let e,t;return Cr(br(f(Ul,(e=qn((e=>[kl(e[0]),e[1],e[2]]),Wn([[new Qa(0),"Australian resident for tax purposes",void 0],[new Qa(1),"Foreign resident",void 0],[new Qa(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:(t=o.ResidencyStatus.Value,null==t?void 0:kl(t)),Name:"ResidencyStatus",OnUpdate:e=>{i(new hd(0,e))},ValueLabelPairs:e}))),wr((()=>{let e,t;const n=o.ResidencyStatus.Value;let r,s;switch(null!=n&&2===n.tag?(r=0,s=n.fields[0]):r=1,r){case 0:return br(f("div",gt(Wn([["className",rn(" ",["mt-4"])],(e=[Nl("Your home country where your visa was issued"),yd(gn((t=s.HomeCountry,null==t?void 0:t.Code),""),Ka,(e=>{i(new hd(1,El(e)))}))],["children",Kn.Children.toArray(Array.from(e))])]))));case 1:return br(null)}})))})))))),["children",Kn.Children.toArray(Array.from(t))]))))}class vd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class xd extends Ut{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}function _d(e){switch(e.tag){case 1:case 2:case 4:default:return El(e);case 3:return Cl()}}function Sd(e,t){let n;if(0===t.tag){const r=t.fields[0];let o;const i=r.TfnInformation;if(1===i.tag){const e=function(e){switch(e.tag){case 1:return new ri(0,new ou(1));case 2:return new ri(0,new ou(2));default:return new ri(0,new ou(0))}}(i.fields[0]);o=1===e.tag?new ri(1,e.fields[0]):new ri(0,new zl(1,new jl(1,e.fields[0])))}else o=new ri(0,new zl(0,i.fields[0]));if(1===o.tag)return new ri(1,o.fields[0]);{const t=fu(r.ResidencyStatusV2);if(1===t.tag)return new ri(1,t.fields[0]);{const i=t.fields[0],s=1===i.tag||2===i.tag?new Ml(1):r.IsTaxFreeThresholdClaimed?new Ml(0):new Ml(1),a=bu(r.HasDebtSupport);if(1===a.tag)return new ri(1,a.fields[0]);{const t=a.fields[0],u=hu(r.EmploymentBasis);return 1===u.tag?new ri(1,u.fields[0]):new ri(0,new xd(e.PreExistingTfnDec,e.CurrentAlert,El(o.fields[0]),El((n=r.PreviousSurname,null==n?void 0:new iu(0,n))),wd(i),Pl(s),Bn(t)?El(void 0):El(t),_d(u.fields[0])))}}}}{const n=t.fields[0];let r,o;const i=n.ResidencyStatusV2;if(o=null==i?void 0:fu(i),null!=o){const e=o;r=1===e.tag?new ri(1,e.fields[0]):new ri(0,e.fields[0])}else r=new ri(0,void 0);if(1===r.tag)return new ri(1,r.fields[0]);{const t=hu(n.EmploymentBasis);return 1===t.tag?new ri(1,t.fields[0]):new ri(0,new xd(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,wd(r.fields[0]),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,_d(t.fields[0])))}}}class Cd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function Ed(){const e=an(document.URL,["/"],null,0),t=Sn("web",e,{Equals:(e,t)=>e===t,GetHashCode:it}),n=Sn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:it}),r=[hn(document.querySelector("tax-component")),t,n];let o;switch(o=null==r[0]?r[1]?r[2]?3:1:r[2]?2:3:0,o){case 0:return new ri(0,new Cd(2,r[0]));case 1:return new ri(0,new Cd(0));case 2:return new ri(0,new Cd(1));case 3:return new ri(1,"Could not determine the embed mode")}}class Td extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function kd(e){return Lt(e)}function Id(e,t){let n;switch(e.tag){case 1:return[new xd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()];case 2:{const r=e.fields[0];return[new xd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?al():1===n.tag?ll(new vd(3,new Ol(1,new Ml(1),!1))):2===n.tag?ll(new vd(3,new Ol(1,new Ml(1),!0))):ll(new vd(3,new Ol(1,new Ml(0),!1))))]}case 3:return[new xd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,Gl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()];case 4:return[new xd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),al()];case 5:{const n=bn(Al,e.fields[0].Value);return[new xd(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Sl(n,{Valid:null!=n})),al()]}case 6:{const n=e.fields[0],r=new xd(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=ll(new vd(7,new tl(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=hn(document.getElementById("external-loading-page-container"));Ir((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),wn(n))}();const i=ll(new vd(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=yn((e=>Sd(r,e)),n.fields[0].fields[0].Info);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new xd(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()];case 8:return[new xd(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()];case 9:return[new xd(new ro(2,new ri(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()];case 10:return function(){const e=Ed();let t;t=0!==e.tag||0!==e.fields[0].tag&&1!==e.fields[0].tag?1:0,0===t&&window.parent.postMessage({sender:"flare",type:"appReady"},"*",$n(Dn()))}(),[t,al()];default:return[new xd(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),al()]}}class Ad extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class Nd extends Ut{constructor(e,t){super(),this.Text=e,this.Meta=t}}class Rd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function Md(e){let t;const n=_l(function(e,t){const n=gn(e,"");return[new Nd(n,{Touched:!1,Valid:t(n)}),al()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new Nd(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new Nd(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Sl(o.Text,{Valid:o.Meta.Valid})),[o,al()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return f("div",gt(Wn([["className",rn(" ",Yn(e.AdditionalWrapperClasses,Gn("z-10")))],(t=xr(wr((()=>Cr(br(f("input",gt(xr(wr((()=>Cr(br(["className",rn(" ",Yn(e.AdditionalInputClasses,Yn(Wn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),xr(wr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:yr()))))))]),wr((()=>Cr(br(["type","text"]),wr((()=>Cr(br(["onChange",t=>{const n=t.target.value;o(new Ad(0,1===e.InputType.tag?n:un(Da,n)))}]),wr((()=>{let t;return Cr(br((t=r.Text,["ref",e=>{null==e||ft(e.value,t)||(e.value=t)}])),wr((()=>Cr(br(["onBlur",e=>{o(new Ad(1))}]),wr((()=>Cr(ft(e.InputType,new Rd(0))?br(["inputMode","numeric"]):yr(),wr((()=>br(["data-testid",e.TestId]))))))))))}))))))))))))))),wr((()=>!r.Meta.Valid&&r.Meta.Touched?br(f("div",{className:rn(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):yr())))))),["children",Kn.Children.toArray(Array.from(t))])])))}class Od extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Dd extends Ut{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Pd(e){return!nn(e)}function Gd(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Dd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:!1})):1===t.tag?new Dd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:!0})):new Dd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:gn(yn((e=>Pd(e.fields[0])),e.Data.Value),!1)}))}function Bd(e){let t;const n=_l((r=e.InitialValue,[Gd(new Dd(Pl(new Ml(null==r?1:0)),new Sl(r,{Valid:!1}))),al()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Gd(1===e.tag?(n=e.fields[0],new Dd(t.YesNoButtonGroup,new Sl(yn((e=>new iu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Sl(void 0,t.Data.Meta):t.Data,new Dd(Gl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,al()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return f("div",gt(Wn([["className",rn(" ",or)],(t=xr(wr((()=>Cr(br(Nl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),wr((()=>Cr(br(f(Fl,{Disable:void 0,Dispatch:e=>{i(new Od(0,e))},State:o.YesNoButtonGroup})),wr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return br(f("div",gt(Wn([["className",rn(" ",["mt-4"])],(e=[Nl("Enter your previous surname"),f(Md,{AdditionalInputClasses:Wn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:Gn("mt-1"),InitialValue:yn(su,o.Data.Value),InputType:new Rd(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Od(1,e))},TestId:"surname-input",Validator:Pd})],["children",Kn.Children.toArray(Array.from(e))])]))));case 1:return br(null)}}))))))))),["children",Kn.Children.toArray(Array.from(t))])])))}const Fd=Wn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),Ld=Wn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Vd=Wn(["text-sm","text-primary-base","leading-3","font-medium"]),Ud=Wn(["ml-6","flex","items-center"]),Hd=Wn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function jd(e){let t,n,r,o;const i=e.content,s=e.title,a=zr(!0),u=a[0];return f("div",gt(Wn([["className",rn(" ",Fd)],(t=[(n=Gn(f("button",gt(Wn([["type","button"],["className",rn(" ",Ld)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[f("span",{className:rn(" ",Vd),children:s}),f("span",gt(Wn([["className",rn(" ",Ud)],(o=xr(wr((()=>br(u?er:Qn)))),["children",Kn.Children.toArray(Array.from(o))])])))],["children",Kn.Children.toArray(Array.from(r))])])))),f("h3",{children:Kn.Children.toArray(Array.from(n))})),f("div",{className:rn(" ",Yn(Hd,xr(wr((()=>u?br("hidden"):yr()))))),children:Kn.Children.toArray([i])})],["children",Kn.Children.toArray(Array.from(t))])])))}class zd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Wd extends Ut{constructor(e){super(),this.Selected=e}}function Yd(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Nn(o))return;if(e(Mn(o)))return r;t=r+1,n=On(o)}})(0,t)}((t=>e===t),t.Selected)}function qd(e,t,n){const r=function(e,t){const n=e.fields[0];return Yd(n,t)?new Wd(function(e,t){const n=In(),r=Un(((t,n)=>{if(e(n)){const e=new Tn(n,void 0);return t.tail=e,e}return t}),n,t),o=In();return r.tail=o,On(n)}((e=>n!==e),t.Selected)):new Wd(Yn(Gn(n),t.Selected))}(t,n);return e(r.Selected),[r,al()]}function Kd(e){let t;const n=_l((r=e.InitialValue,[new Wd(r),al()]),((t,n)=>qd(e.OnUpdate,t,n)));var r;return f("fieldset",gt(Wn([["className",rn(" ",["space-y-2","mt-2"])],(t=xr(wr((()=>Or((e=>{let t,r,o;const i=e[0];return br(f("div",gt(Wn([["className",rn(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new zd(0,i))}],(t=[f("div",gt(Wn([["className",rn(" ",["flex","items-center","h-5"])],(r=[f("input",{className:rn(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Yd(i,n[0])})],["children",Kn.Children.toArray(Array.from(r))])]))),f("div",gt(Wn([["className",rn(" ",["ml-3","text-sm"])],(o=[f("label",{className:rn(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Kn.Children.toArray(Array.from(o))])])))],["children",Kn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Kn.Children.toArray(Array.from(t))])])))}class Zd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Jd extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Xd extends Ut{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Qd(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Xd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Xd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:!0}),e.DisableReason):new Xd(e.YesNoButtonGroup,new Sl(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Rn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function ef(e){let t;const n=_l(function(e,t,n){let r;const o=e.Value;let i,s;switch(i=null==o||Bn(o)?0:1,i){case 0:r=new Ml(1);break;case 1:r=new Ml(0)}const a=[t,n];let u;switch(u=null!=a[0]?null!=a[1]?1===a[1].tag?function(e){let t;switch(t=1===e.tag&&1===e.fields[0].tag?1:0,t){case 0:return!0;case 1:return!1}}(a[0])?3:1:2===a[1].tag?2:3:3:null!=a[1]?1===a[1].tag?0:2===a[1].tag?2:3:3,u){case 0:case 1:s=new Jd(0);break;case 2:s=new Jd(1);break;case 3:s=void 0}const l=null==s?al():ll(new Zd(0,new Ol(1,new Ml(1),!0)));return[Qd(new Xd(Pl(r),e,s)),l]}(e.InitialValue,e.TfnInfo,e.ResidencyStatus),((t,n)=>function(e,t,n){const r=function(e,t){let n,r;return Qd(1===e.tag?new Xd(t.YesNoButtonGroup,El(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?El(void 0):t.Data,new Xd(Gl(n,t.YesNoButtonGroup),r,t.DisableReason)))}(t,n);return e(r.Data),[r,al()]}(e.OnUpdate,t,n)),[e.TfnInfo,e.ResidencyStatus]),r=n[0],o=n[1];return f("div",gt(Wn([["className",rn(" ",or)],(t=xr(wr((()=>Cr(br(Nl("Do you have any outstanding study and training support loans?")),wr((()=>Cr(br(f(Fl,{Disable:yn((e=>new Ml(0)),r.DisableReason),Dispatch:e=>{o(new Zd(0,e))},State:r.YesNoButtonGroup})),wr((()=>{let t;return Cr((t=r.DisableReason,null!=t?1===t.tag?br(Rl("Working holiday makers are ineligible for study and training support loans.")):br(Rl("You must provide your TFN to declare any outstanding study and training support loans.")):br(null)),wr((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let s;switch(s=null!=i&&0===i.tag?0:1,s){case 0:return br(f("div",gt(Wn([["className",rn(" ",["mt-4"])],(t=[f(Kd,(n=qn((e=>[Lt(e[0]),e[1]]),Wn([[new Za(0),"Higher Education Loan Program (HELP)"],[new Za(1),"VET Student Loan (VSL)"],[new Za(2),"Financial Supplement (FS)"],[new Za(3),"Student Start-up Loan (SSL)"],[new Za(4),"Trade Support Loan (TSL)"]])),{InitialValue:gn(yn((e=>qn(Lt,e)),e.InitialValue.Value),Dn()),OnUpdate:e=>{o(new Zd(1,function(e,t){const n=In(),r=Un(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new Tn(pn(r),void 0);return t.tail=e,e}}),n,t),o=In();return r.tail=o,On(n)}(Il,e)))},ValueLabelPairs:n}))],["children",Kn.Children.toArray(Array.from(t))])]))));case 1:return br(null)}})))}))))))))),["children",Kn.Children.toArray(Array.from(t))])])))}function tf(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid&&e.DebtSupportCheckboxGroup.Meta.Valid)&&!ft(t,new ro(1))}function nf(){return f("hr",{className:rn(" ",["my-8"])})}const rf=f("div",gt(Wn([["className",rn(" ",["space-y-2"])],(()=>{const e=[f("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),f("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),f("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",Kn.Children.toArray(Array.from(e))]})()]))),of=f("div",gt(Wn([["className",rn(" ",["space-y-2"])],(()=>{const e=[f("p",{children:["If you are an Australian resident for tax purposes and this is your main job, you can claim the tax-free threshold. This means that you pay no tax on the first $18,200 of your income."]}),f("p",{children:["You are also eligible to claim the threshold if you are a foreign resident in receipt of an Australian Government pension or allowance. This is classified as an Australian resident for tax purposes."]}),f("p",{children:["Foreign residents and working holiday makers are ineligible to claim the threshold."]})];return["children",Kn.Children.toArray(Array.from(e))]})()])));function sf(e){const t=e.backendUrl,n=e.accessToken,r=_l([new xd(new ro(0),void 0,Cl(),El(void 0),El(new Qa(0)),Pl(new Ml(0)),El(void 0),El(new nu(0))),al()],Id),o=r[0],i=r[1];Vr(oo((()=>Xu(n,t)),(e=>{i(new vd(6,e))})),[]);const s=zr(new ro(0)),a=s[0],u=oo((()=>function(e,t,n,r){let o;const i=el(e,t,n);return o=Zr.Bind(i,(e=>{let t;const n=e;return 1===n.tag||r(new tl(0,"Your tax declaration has been saved.")),t=n,Zr.Return(t)})),Zr.Bind(o,(e=>{let t;const n=e;return 1===n.tag&&r(new tl(1,"There was an error saving your tax declaration. Please try saving again.")),t=n,Zr.Return(t)}))}(o,n,t,(e=>{i(new vd(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(no(Zr.Delay((()=>Zr.Bind(to(400),(()=>(function(){let e;const t=Ed();var n;0===t.tag&&(0===t.fields[0].tag?Ir((e=>{window.parent.location.href=e}),wn((n=new Td(0),hn(sessionStorage.getItem(kd(n)))))):1===t.fields[0].tag?Ir((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),wn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}(),Zr.Zero())))))),i(new vd(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return f("div",{children:["Please wait..."]});default:{const e=xr(wr((()=>{let e,t;return Cr((e=o.CurrentAlert,null==e?br(null):(t=e,br(f(il,{alert:t,hideAlert:()=>{i(new vd(8))}})))),wr((()=>Cr(br(f("h3",{className:rn(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),wr((()=>Cr(br(f(Ql,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new vd(0,e))}})),wr((()=>Cr(br(nf()),wr((()=>Cr(br(f(Bd,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new vd(1,e))}})),wr((()=>Cr(br(nf()),wr((()=>Cr(br(f(bd,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new vd(2,e))}})),wr((()=>Cr(br(f(jd,{title:"About residency",content:rf})),wr((()=>Cr(br(nf()),wr((()=>{let e,t;return Cr(br(f("div",gt(Wn([["className",rn(" ",or)],(e=[Nl("Would you like to claim the tax-free threshold from this employer?"),f(Fl,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new Ml(0)),Dispatch:e=>{i(new vd(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Kn.Children.toArray(Array.from(e))])])))),wr((()=>{let e;return Cr((e=o.ResidencyStatus.Value,null!=e?2===e.tag?br(Rl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?br(Rl("Foreign residents are ineligible to claim the tax-free threshold.")):br(null):br(null)),wr((()=>Cr(br(f(jd,{title:"About the tax-free threshold",content:of})),wr((()=>Cr(br(nf()),wr((()=>Cr(br(f(ef,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new vd(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),wr((()=>Cr(br(nf()),wr((()=>Cr(br(Nl("On what basis are you paid?")),wr((()=>Cr(br(f("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),wr((()=>{let e,t;return Cr(br(f(Ul,(e=qn((e=>[Lt(e[0]),e[1],e[2]]),Wn([[new nu(0),"Full-time",void 0],[new nu(1),"Part-time",void 0],[new nu(2),"Labour Hire",void 0],[new nu(4),"Casual",void 0]])),{InitialValue:(t=o.EmploymentBasisRadioButtonGroup.Value,null==t?void 0:Lt(t)),Name:"EmploymentBasis",OnUpdate:e=>{i(new vd(5,e))},ValueLabelPairs:e}))),wr((()=>Cr(br(nf()),wr((()=>Cr(br(f("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"By clicking ‘Save and continue’ you declare that the information you have provided is true and correct."})),wr((()=>{let e;return br(f("div",gt(Wn([["className",rn(" ",["text-center"])],(e=[f("button",{className:rn(" ",["w-full","max-w-320","px-10","py-2","mt-8","mb-10","border","border-transparent","text-sm","font-medium","rounded-md","shadow-sm","text-white","bg-primary-base","hover:bg-primary-hover","focus:outline-none","focus:ring-2","focus:ring-offset-2","focus:ring-primary-focus","disabled:bg-gray-100","disabled:text-gray-400","disabled:border-gray-300","disabled:cursor-not-allowed"]),type:"button",disabled:!tf(o,a),onClick:e=>{tf(o,a)&&u()},children:"Save and continue","data-testid":"continue-button"})],["children",Kn.Children.toArray(Array.from(e))])]))))})))))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return f("form",{children:Kn.Children.toArray(Array.from(e))})}}}const af=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",(e=>{}),e),window.removeEventListener("testPassiveEventSupport",(e=>{}))}}catch(e){}return!1})();function uf(e){return yn((e=>e.passive&&!af?{capture:e.capture,once:e.once,passive:!1}:e),e)}function lf(e){return bn((e=>e.capture?{capture:!0}:void 0),e)}function cf(e,t){return 0===t.indexOf(e)?t:void 0}function df(e,t){return tn(t,e)?t:void 0}function ff(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=cf("/",e),null!=t?(n=t,"#"+n):(r=cf("#/",e),null!=r?(o=r,o):(i=cf("#",e),null!=i?(s=i,"#/"+ln(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=cf("/",e),null!=t?(n=t,n):"/"+e}}(t)(rn("/",qn((e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e)),e)))}function $f(e,t){return function(e,t){let n,r;const o=In();let i=o,s=t;for(;!Nn(s);){let t=e(Mn(s));for(;!Nn(t);)n=i,r=new Tn(Mn(t),void 0),n.tail=r,i=r,t=On(t);s=On(s)}const a=i,u=In();return a.tail=u,On(o)}((e=>{if(nn(e))return Dn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Bt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Dn();if(null!=cf("?",t))return Gn(t);{const e=t.split("?");if(En(((e,t)=>e===t),e,null)||1!==e.length){if(En(((e,t)=>e===t),e,null)||2!==e.length)return Dn();if(""===e[1]){const t=e[0];return Gn(decodeURIComponent(t))}{const t=e[0],n=e[1];return Wn([decodeURIComponent(t),"?"+n])}}{const t=e[0];return Gn(decodeURIComponent(t))}}}}),Wn(an(null!=cf("#",e)?ln(e,1,e.length-1):1!==t||null==df("#",e)&&null==df("#/",e)?e:"",["/"],null,0)))}const pf=function(e,t,n,r){const o=Kn.memo(e,bt(2,gn(xt(2,n),null)));return Ir((t=>{e.displayName=t}),wn(t)),e=>{const t=function(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}(r,e);return Kn.createElement(o,t)}}((e=>{const t=jr((t=>{const n=gn(e.onUrlChanged,(e=>{}));!function(e,t,n){t($f(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(gn(e.hashMode,1),n)}));if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=Hr((()=>uf(r)),[r]),i=Hr((()=>lf(r)),[r]),s=Hr((()=>e=>{n(e)}),[n]);Fr(jr((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Gr((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}else{const e="popstate",n=t,r=void 0,o=Hr((()=>uf(r)),[r]),i=Hr((()=>lf(r)),[r]),s=Hr((()=>e=>{n(e)}),[n]);Fr(jr((()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Gr((()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}}))})))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=void 0,i=Hr((()=>uf(o)),[o]),s=Hr((()=>lf(o)),[o]),a=Hr((()=>e=>{r(e)}),[r]);Fr(jr((()=>{if(null==i)window.addEventListener(n,a);else{const e=i;window.addEventListener(n,a,e)}return Gr((()=>{if(null==s)window.removeEventListener(n,a);else{const e=s;window.removeEventListener(n,a,e)}}))})));const u=e.application;return null==u?null:u}),void 0,void 0,void 0);class hf extends Ut{constructor(e,t){super(),this.CurrentPage=e,this.Auth=t}}class mf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["UrlChanged","AuthMsg"]}}class wf extends Ut{constructor(e,t,n){super(),this.model=e,this.render=t,this.equal=n}}class gf extends h{constructor(e){super(e)}shouldComponentUpdate(e,t){return!this.props.equal(this.props.model,e.model)}render(){return this.props.render()}}class yf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Token"]}}class bf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["QueryString"]}}class vf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Home","OidcSignIn","OidcSignInRedirectCallback","OidcSignInSilentCallback","NotFound"]}}function xf(e){let t,n,r;switch(Bn(e)?t=0:"oidc"===Fn(e)?Bn(Ln(e))?t=3:"callback"===Fn(Ln(e))?Bn(Ln(Ln(e)))?t=3:Bn(Ln(Ln(Ln(e))))?(t=1,n=Fn(Ln(Ln(e)))):t=3:"silent-refresh"===Fn(Ln(e))?Bn(Ln(Ln(e)))?t=3:Bn(Ln(Ln(Ln(e))))?(t=2,r=Fn(Ln(Ln(e)))):t=3:t=3:t=3,t){case 0:{const e=window.location.search,t=new URLSearchParams(e),n=t.get("token");if(null==n)return new vf(0);{const e=n;return Ir((e=>{!function(e,t){sessionStorage.setItem(kd(e),t)}(new Td(0),e)}),wn(t.get("success-redirection-url"))),new vf(1,new yf(0,e))}}case 1:return new vf(2,new bf(0,n));case 2:return new vf(3,new bf(0,r));case 3:return new vf(4)}}class _f extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}class Sf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Started","Finished"]}}class Cf extends Ut{constructor(e){super(),this.AccessToken=e}}function Ef(e){return new Cf(e.access_token)}class Tf extends Ut{constructor(e){super(),this.Auth=e}}class kf extends Vt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GetUser","SignInRedirect","SignInRedirectCallback","SignInSilentCallback"]}}const If=document.querySelector("#tfn-declaration-app"),Af=If.getAttribute("data-identity-url"),Nf=If.getAttribute("data-backend-url"),Rf=(()=>{const e={};return e.store=$n(window.sessionStorage),e})();function Mf(){return new UserManager(function(){const e=function(e){return tn(e,"/")?e:e+"/"}(window.location.origin+window.location.pathname),t={};return t.authority=Af,t.client_id="apollo-tfn-declaration-ui",t.redirect_uri=e+"#/oidc/callback?",t.response_type="id_token token",t.scope="openid profile",t.automaticSilentRenew=!0,t.silent_redirect_uri=$n(e+"#/oidc/silent-refresh?"),t.post_logout_redirect_uri=e+"#/oidc/logout?",t.accessTokenExpiringNotificationTime=10,t.filterProtocolClaims=!0,t.loadUserInfo=!1,t.clockSkew=2592e3,t.userStore=new WebStorageStateStore(Rf),t}())}function Of(e){return e.length>0?ln(e,1):e}function Df(e){return Mf().signinRedirect($n({extraQueryParams:{irt:e.fields[0]}}))}function Pf(e){return Mf().signinRedirectCallback(Of(e.fields[0]))}function Gf(e){return Mf().signinSilentCallback(Of(e.fields[0]))}function Bf(){return Mf().getUser()}var Ff;!function(e){gl(void 0,e)}(("tfn-declaration-app",Ff=ml((function(){const e=xf($f(window.location.hash,1)),t=function(){const e=xf($f(window.location.hash,1));return[new Tf(new _f(0)),1===e.tag?ll(new kf(1,new Sf(0),e.fields[0])):2===e.tag?ll(new kf(2,new Sf(0),e.fields[0])):3===e.tag?ll(new kf(3,new Sf(0),e.fields[0])):ll(new kf(0,new Sf(0)))]}();return[new hf(e,t[0]),ul((e=>new mf(1,e)),t[1])]}),(function(e,t){if(1===e.tag){const n=function(e,t){const n=e=>[new Tf(new _f(2,new ri(1,e))),al()];return 1===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Jt(Kt("SignInRedirect failed: %s"))(e.fields[0].fields[0].fields[0])):[t,al()]:[new Tf(new _f(1)),(o=Df,i=e.fields[1],s=t=>new kf(1,new Sf(1,new ri(1,t.message)),e.fields[1]),Gn((e=>{o(i).catch((t=>{e(s(t))}))})))]:2===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Jt(Kt("failed sign in: %s"))(e.fields[0].fields[0].fields[0])):[new Tf(new _f(2,new ri(0,Ef(e.fields[0].fields[0].fields[0])))),(r=e=>{!function(e,t,n){history.pushState(void 0,"",ff(e,1));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}(Gn(""))},Gn(r))]:[new Tf(new _f(1)),cl(Pf,e.fields[1],(t=>(window.gtag&&window.gtag("event","oidc_sign_in",{}),new kf(2,new Sf(1,new ri(0,t)),e.fields[1]))),(t=>new kf(2,new Sf(1,new ri(1,t.message)),e.fields[1])))]:3===e.tag?1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Jt(Kt("failed silent sign in: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("silent refresh expected a user but got none"):[new Tf(new _f(2,new ri(0,Ef(e.fields[0].fields[0].fields[0])))),al()]:[t,cl(Gf,e.fields[1],(t=>new kf(3,new Sf(1,new ri(0,t)),e.fields[1])),(t=>new kf(3,new Sf(1,new ri(1,t.message)),e.fields[1])))]:1===e.fields[0].tag?1===e.fields[0].fields[0].tag?n(Jt(Kt("failed to get current user: %s"))(e.fields[0].fields[0].fields[0])):null==e.fields[0].fields[0].fields[0]?n("expected a user but got none"):[new Tf(new _f(2,new ri(0,Ef(e.fields[0].fields[0].fields[0])))),al()]:[new Tf(new _f(1)),cl(Bf,void 0,(e=>new kf(0,new Sf(1,new ri(0,e)))),(e=>new kf(0,new Sf(1,new ri(1,e.message)))))];var r,o,i,s}(e.fields[0],t.Auth);return[new hf(t.CurrentPage,n[0]),ul((e=>new mf(1,e)),n[1])]}return[new hf(xf(e.fields[0]),t.Auth),al()]}),((e,t)=>function(e,t,n){let r,o,i;switch(t.CurrentPage.tag){case 1:case 2:case 3:i=ze();break;case 4:i=f("h1",{},"Not found");break;default:{const n=t.Auth.Auth;i=2===n.tag?1===n.fields[0].tag?f("h1",{},"Unauthorised"):f("div",gt(Wn([["className",rn(" ",["font-inter","max-w-560","mx-auto"])],(r=[f("style",{children:[Zn]}),f(sf,{accessToken:n.fields[0].fields[0].AccessToken,backendUrl:e})],["children",Kn.Children.toArray(Array.from(r))])]))):ze()}}return pf(gt(Wn([["onUrlChanged",e=>{n(new mf(0,e))}],(o=Gn(f("div",{children:Kn.Children.toArray([i])})),["application",f(p,{},...o)])])))}(Nf,e,t))),function(e,t,n){return wl(((r,o)=>{Ne(e((e=>t=>e===t),function(e){return xt(2,e.view)}(n),r,o),document.getElementById(t))}),n)}(((e,t,n,r)=>function(e,t,n,r){const o=new wf(n,(()=>t(n,r)),e);return f(gf,o)}(bt(2,e),bt(2,t),n,r)),"tfn-declaration-app",Ff)))})()})();
|