@flarehr/tfn-declaration-app 2.11.17 → 2.12.18
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:()=>w});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=a()(o()),p=u()(l),h=u()(c),m=u()(f),g=u()(d);$.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("+g+");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}.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 w=$},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 a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[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]}},933:(e,t,n)=>{var r,o,i,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return h(e,s,o,i,null)}function h(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(e){return e.children}function g(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(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?w(e):null}function y(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 y(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!v.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,A(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function x(e,t,n,r,o,i,a,s,u,f){var d,$,p,g,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?h(null,g,null,null,g):Array.isArray(g)?h(m,{children:g},null,null,null):g.__b>0?h(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=x[d])||p&&g.key==p.key&&g.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&g.key==p.key&&g.type===p.type){x[$]=void 0;break}p=null}A(e,g,p=p||l,o,i,a,s,u,f),y=g.__e,($=g.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,g),v.push($,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===p.__k?g.__d=u=_(g,u,e):u=C(e,g,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=w(p))}for(n.__e=b,d=S;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),M(x[d],x[d]));if(v)for(d=0;d<v.length;d++)D(v[d],v[++d],v[++d])}function _(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?_(r,t,n):C(n,r,r,o,r.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function C(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=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),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function E(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||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(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?I:k,i):e.removeEventListener(t,i?I:k,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 k(e){this.l[e.type+!1](o.event?o.event(e):e)}function I(e){this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,i,a,s,u,l){var c,f,$,p,h,w,y,b,v,_,S,C,T,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof E){if(b=t.props,v=(c=E.contextType)&&r[c.__c],_=c?v?v.props.value:c.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,_):(t.__c=f=new g(b,_),f.constructor=E,f.render=O),v&&v.sub(f),f.props=b,f.state||(f.state={}),f.context=_,f.__n=r,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,h=f.state,$)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,_)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,h,w)}))}if(f.context=_,f.props=b,f.__v=t,f.__P=e,S=o.__r,C=0,"prototype"in E&&E.prototype.render)f.state=f.__s,f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(w=f.getSnapshotBeforeUpdate(p,h)),T=null!=c&&c.type===m&&null==c.key?c.props.children:c,x(e,Array.isArray(T)?T:[T],t,n,r,i,a,s,u,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,f,d,p=n.props,h=t.props,m=t.type,g=0;if("svg"===m&&(i=!0),null!=a)for(;g<a.length;g++)if((c=a[g])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[g]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,u=!1}if(null===m)p===h||u&&e.data===h||(e.data=h);else{if(a=a&&r.call(e.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(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]||E(e,i,t[i],n[i],r)}(e,h,p,i,u),d)t.__k=[];else if(g=t.props.children,x(e,Array.isArray(g)?g:[g],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&w(n,0),u),null!=a)for(g=a.length;g--;)null!=a[g]&&$(a[g]);u||("value"in h&&void 0!==(g=h.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==p.value)&&E(e,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==e.checked&&E(e,"checked",g,p.checked,!1))}return e}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function M(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=p(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function B(e,t){P(e,t,B)}function G(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),h(e.type,s,o||e.key,i||e.ref,null)}function F(e,t){var n={__c:t="__cC"+u++,__: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(b)},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}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},g.prototype.render=m,a=[],v.__r=0,u=0;var L,V,H,U,j=0,z=[],W=[],Y=o.__b,K=o.__r,q=o.diffed,Z=o.__c,J=o.unmount;function X(e,t){o.__h&&o.__h(V,e,j||t),j=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function Q(e){return j=1,ee(de,e)}function ee(e,t,n){var r=X(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):de(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=V),r.__}function te(e,t){var n=X(L++,3);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ne(e,t){var n=X(L++,4);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function re(e){return j=5,oe((function(){return{current:e}}),[])}function oe(e,t){var n=X(L++,7);return fe(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function ie(e,t){return j=8,oe((function(){return e}),t)}function ae(e){var t=V.context[e.__c],n=X(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function se(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){V=null,Y&&Y(e)},o.__r=function(e){K&&K(e),L=0;var t=(V=e.__c).__H;t&&(H===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__V=W,e.u=void 0}))):(t.__h.forEach(le),t.__h.forEach(ce),t.__h=[])),H=V},o.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ue&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))})(se)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==W&&(e.__=e.__V),e.u=void 0,e.__V=W}))),H=V=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function le(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ce(e){var t=V;e.__c=e.__(),V=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function de(e,t){return"function"==typeof t?t(e):t}function $e(e,t){for(var n in t)e[n]=t[n];return e}function pe(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 he(e){this.props=e}(he.prototype=new g).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var me=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ge,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ye=function(e,t){return null==e?null:S(S(e).map(t))},be={map:ye,forEach:ye,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},ve=o.__e;o.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ve(e,t,n,r)};var xe=o.unmount;function _e(){this.__u=0,this.t=null,this.__b=null}function Se(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ce(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xe&&xe(e)},(_e.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Se(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=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(a,a)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.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=$e({},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&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Te=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 Ee(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){P(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)}}),P(p(Ee,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ce.prototype=new g).__a=function(e){var t=this,n=Se(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(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},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Te(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?: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]/,Ne="undefined"!=typeof document,Re=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var De=o.event;function Me(){}function Oe(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return De&&(e=De(e)),e.persist=Me,e.isPropagationStopped=Oe,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Be,Ge={configurable:!0,get:function(){return this.class}},Fe=o.vnode;o.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 a=n[i];Ne&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Re(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&&Ae.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(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=Ie,Fe&&Fe(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Be=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Be.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?G.apply(null,arguments):e}function je(e){e()}const ze={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useInsertionEffect:ne,useTransition:function(){return[!1,je]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Q(t),r=n[0],o=n[1];return te((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:je,useRef:re,useImperativeHandle:function(e,t,n){j=6,ne((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:oe,useCallback:ie,useContext:ae,useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:be,render:function(e,t,n){return null==t.__k&&(t.textContent=""),P(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,t){var n=p(ke,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:F,createFactory:function(e){return p.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:m,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:he,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:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:we,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:_e,SuspenseList:Ce,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 p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve};function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function Ke(e){Ye(e)&&e.Dispose()}function qe(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 at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function st(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]=st(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=>st(e)));return at(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===ft(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 ft(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 dt(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?ft(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 a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=pt(e[a],t[a]),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 gt=Symbol("curried");function wt(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[gt]=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,n){if(null!=t){if(gt in t){t=t[gt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function vt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function xt(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 _t(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 St(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," ")+vt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return _t(i,t,!0);switch(t){case"D":case"d":return xt(i,"first");case"T":case"t":return xt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+vt(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 _t(e,t,n);switch(t){case"D":case"d":return n?xt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xt(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?vt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Ct(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(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 Et(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Ct(n.getTime(),o)}(e),!0}catch(e){return!1}}const kt=Symbol("numeric");function It(e){return"number"==typeof e||(null==e?void 0:e[kt])}function At(e,t){return"number"==typeof e?e*t:e[kt]().multiply(t)}function Nt(e,t){return"number"==typeof e?e.toFixed(t):e[kt]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[kt]().toPrecision(t)}function Dt(e,t){return"number"==typeof e?e.toExponential(t):e[kt]().toExponential(t)}function Mt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[kt]().toHex()}function Ot(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(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 Bt(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+=Bt(r);else{if(100===t){n+="; ...";break}n+="; "+Bt(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+" = "+Bt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Gt{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=Bt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Bt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>st(e)));return e.splice(0,0,it(this.tag)),at(e)}Equals(e){return this===e||!!qe(this,e)&&this.tag===e.tag&<(this.fields,e.fields)}CompareTo(e){return this===e?0:qe(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+" = "+Bt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>st(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(qe(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(qe(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 Lt{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 Vt{constructor(e){this.message=e}}function Ht(e){return function(e){return e instanceof Vt||e instanceof Error}(e)?e:new Error(String(e))}const Ut=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Wt(e){return{input:e,cont:(t=e,e=>{Ut.lastIndex=0;const n=[],r=[];let o=0,i=Ut.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ut.lastIndex,Ut.lastIndex-=1,i=Ut.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Jt(e,n,r))})};var t}function Yt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Kt(e){return Yt((e=>e),e)}function qt(e){return Yt((e=>{throw new Error(e)}),e)}function Zt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",It(e))switch("x"!==o.toLowerCase()&&(zt(e,0)?(e=At(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Nt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Dt(e,r):Dt(e);break;case"x":e=Mt(e);break;case"X":e=Mt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?St(e):Bt(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,a=o||!r?" ":"0";e="0"===a?i+(e=Qt(e,n-i.length,a,o)):Qt(i+e,n,a,o)}return e}function Jt(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=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}a+=s[0],a+=Zt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Jt(e,s,u,a,o)}}function Xt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Qt(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 en(e,t,n){return Qt(e,t,n)}function tn(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(Ot),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&a.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&&a.length+1===n?(a.push(i?e.substring(l).trim():e.substring(l)),u=!1):a.push(r)),l=s.lastIndex}}while(u);return a}function nn(e,t){return t.split("").filter((t=>e(t))).join("")}var rn=n(118);const on="Collection was empty.";class an{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return st(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof an?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof an?e.value:e)}}function sn(e){return null==e||e instanceof an?new an(e):e}function un(e){if(null==e)throw new Error("Option has no value");return e instanceof an?e.value:e}function ln(e){return null==e?void 0:e}function cn(e){return null==e?null:un(e)}function fn(e){return null==e?[]:[un(e)]}function dn(e,t){return null!=e?un(e):t}function $n(e,t){return null!=t?sn(e(un(t))):void 0}function pn(e,t){return null!=t?e(un(t)):void 0}function hn(e,t){return"function"==typeof e?new e(t):new Array(t)}function mn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function gn(e,t,n){const r=0|t.length,o=hn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function wn(e,t,n){return function(e,t,n,r,o){const i=0|dn(n,0),a=0|dn($n((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function yn(e,t,n){return n.reduce(e,t)}class bn extends Ft{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Xt("; ",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],a=o[1];if(ct(n.head,r.head)){e=i,t=a;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,a=i.tail;if(null==a)return 0|o;{const s=a;if(r>18)return 0|o;e=r+1,t=(o<<1)+st(i.head)+631*r,n=s}}})(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],a=o[1],s=0|pt(n.head,r.head);if(0===s){e=i,t=a;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new vn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class vn{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 xn(){return new bn(null,void 0)}function _n(e,t){return new bn(e,t)}function Sn(e){return null==e.tail}function Cn(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 Tn(e){if(null!=e.tail)return e.head;throw new Error(on+"\\nParameter name: list")}function En(e){const t=e.tail;if(null!=t)return t;throw new Error(on+"\\nParameter name: list")}function kn(){return xn()}function In(e,t){return _n(e,t)}function An(e){return _n(e,xn())}function Nn(e){return Sn(e)}function Rn(e){return Tn(e)}function Dn(e){return En(e)}function Mn(e){const t=0|Cn(e),n=mn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Sn(o))break;n[r]=Tn(o),e=r+1,t=En(o)}})(0,e),n}function On(e,t,n){let r=t,o=n;for(;!Sn(o);)r=e(r,Tn(o)),o=En(o);return r}function Pn(e){return On(((e,t)=>_n(t,e)),xn(),e)}function Bn(e,t){On(((t,n)=>{e(n)}),void 0,t)}function Gn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=_n(e[t],n);return n}function Fn(e){return Gn(e,xn())}function Ln(e,t){return On(((e,t)=>_n(t,e)),t,Pn(e))}function Vn(e,t){const n=xn(),r=On(((t,n)=>{const r=new bn(e(n),void 0);return t.tail=r,r}),n,t),o=xn();return r.tail=o,En(n)}const Hn=ze,Un=Bt(rn.Z),jn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),zn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Hn.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Hn.Children.toArray(Array.from(e))]})()]))),Kn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),qn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Zn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Jn=Fn(["flex","flex-col","align-center"]),Xn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)},Qn=e=>{ne((()=>{const t=e();return()=>{t.Dispose()}}))};function er(e){return{Dispose(){e()}}}function tr(e){return Hn.useState(e)}function nr(e,t){Xn(e,t)}function rr(e,t){Xn((t=>(e(),er((()=>{})))),t)}function or(e){return Hn.useRef(e)}function ir(e){const t=or(e),n=function(e,n){const r=dn([],[]);return Hn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},Qn((e=>(r(),er((()=>{}))))),n}function ar(e){return Hn.useState(e)}class sr{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 ur extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ur.prototype)}}class lr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>lr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function cr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ur);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 fr=new class{Bind(e,t){return function(e,t){return cr((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 cr((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 cr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return cr((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 cr((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 cr((e=>e.onSuccess(void 0)))}};function dr(e){}function $r(e){const t=new sr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function pr(e){e.cancel()}const hr=new sr;function mr(e){return cr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new ur)}))}))}function gr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new lr;e({onSuccess:t||dr,onError:n||dr,onCancel:r||dr,cancelToken:o||hr,trampoline:i})}(e,t)}(e,t)}class wr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function yr(e,t){const n=or($r());return nr((()=>er((()=>{pr(n.current)}))),[]),ir((r=>{var o;null!=(o=n.current)&&o.isCancelled||gr(fr.Delay((()=>fr.TryWith(fr.Delay((()=>(t(new wr(1)),fr.Bind(e(r),(e=>(t(new wr(2,e)),fr.Zero())))))),(e=>(t(new wr(3,e)),fr.Zero()))))),n.current)}))}class br extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function vr(e,t){return 0===t.tag?new br(0,e(t.fields[0])):new br(1,t.fields[0])}function xr(e,t){return 0===t.tag?e(t.fields[0]):new br(1,t.fields[0])}function _r(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const Sr="Enumeration already finished.",Cr="Enumeration has not started. Call MoveNext.",Tr="The input sequence has an insufficient number of elements.";function Er(){throw new Error(Cr)}function kr(){throw new Error(Sr)}class Ir{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+=Bt(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 Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ar{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 Nr(e,t,n){return new Ar(e,t,n)}function Rr(e,t,n){let r,o=!1,i=sn(e());const a=()=>{if(null!=i){const e=un(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Nr((()=>(o||Er(),null!=r?un(r):kr())),(()=>{if(o||(o=!0),null!=i){const e=un(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Dr(e){return function(e){return new Ir(e)}(e)}function Mr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Or(e){return Dr((()=>Je(e())))}function Pr(e){return Dr((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{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 Nr((()=>(o?i&&kr():Er(),null!=r?un(r):kr())),(()=>{let s;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=sn(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"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(s)):(a(),o=!1)}else t=Je(e)}return un(o)}}),(()=>{i||a()}))}(e)))}function Br(){return Or((()=>new Array(0)))}function Gr(e){return Or((()=>function(e,t){const n=hn(void 0,1);return n[0]=e,n}(e)))}function Fr(e){return e instanceof bn?Mn(e):Array.from(e)}function Lr(e){return We(e)?Fn(e):e instanceof bn?e:function(e){let t,n;if(We(e))return Fn(e);if(e instanceof bn)return e;{const r=xn();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 bn(e,void 0),t.tail=n,o=n}}finally{Ke(i)}const a=o,s=xn();return a.tail=s,En(r)}}(e)}function Vr(e,t,n){return Dr((()=>Rr(e,t,n)))}function Hr(e,t,n){return Dr((()=>{let r=-1;return Rr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Ur(e,t){return Pr([e,t])}function jr(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 zr(e,t){return function(e,t){return Vr((()=>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)?sn(t):void 0),t)}function Wr(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 Yr(e,t){Wr(((t,n)=>{e(n)}),void 0,t)}function Kr(e,t){return Vr((()=>Mr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?sn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))}class qr{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 Zr(e){return Or((()=>function(e){return e.slice().reverse()}(Fr(e))))}function Jr(e,t){return Dr((()=>{const n=Mr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Tr+"\\nParameter name: source");return function(e,t){return Nr((()=>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 Xr(e,t){return Or((()=>Pr(Kr(e,t))))}function Qr(e,t){return null==t?new br(1,e):new br(0,un(t))}function eo(e,t,n){return ct(n,e)?new br(0,void 0):new br(1,t)}class to extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function no(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function ro(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function oo(e){return e.tag,e.fields[0]}function io(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=$r();var u;return u=()=>{!function(e,t){gr(fr.Delay((()=>fr.Bind(mr(5e3),(()=>(e(),fr.Zero()))))),t)}(i,s)},rr(u,[]),p("div",mt(Fn([["className",Xt(" ",["rounded-md","p-4","my-4",ro(a)])],["data-testid","alert"],(t=[p("div",mt(Fn([["className",Xt(" ",["flex"])],(n=[p("p",{className:Xt(" ",["text-sm","pr-2",no(a)]),children:oo(a)}),p("div",mt(Fn([["className",Xt(" ",["ml-auto"])],(r=[p("div",mt(Fn([["className",Xt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Xt(" ",Lr(Or((()=>Ur(Gr("inline-flex"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("p-1.5"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("focus:ring-2"),Or((()=>Ur(Gr("focus:ring-offset-2"),Or((()=>function(e){switch(e.tag){case 0:return Fn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Fn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Fn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Hn.Children.toArray([Kn]),onClick:e=>{pr(s),i()}})],["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))],["children",Hn.Children.toArray(Array.from(n))])])))],["children",Hn.Children.toArray(Array.from(t))])])))}function ao(e,t){return t}function so(e,t,n){return vr(n,t)}new class{constructor(){}};function uo(e,t){const n=function(e,t){return new br(0,t)}(0,t);return fr.Return(n)}function lo(e,t){return fr.Delay(t)}new class{constructor(){}};class co extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class fo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class $o extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class po extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class ho extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class mo 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 go{constructor(e,t){this.k=e,this.v=t}}function wo(e,t){return new go(e,t)}function yo(e){return e.k}function bo(e){return e.v}class vo extends go{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function xo(e,t,n,r,o){return new vo(e,t,n,r,o)}function _o(e){return e.left}function So(e){return e.right}function Co(e){return e.h}function To(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof vo){e=To(n+1,_o(r)),t=So(r);continue e}return n+1|0}return 0|n}}function Eo(e){return To(0,e)}function ko(e,t,n,r){let o,i;o=null!=e?e instanceof vo?Co(e):1:0,i=null!=r?r instanceof vo?Co(r):1:0;const a=0|(o<i?i:o);return 0===a?wo(t,n):xo(t,n,e,r,a+1)}function Io(e,t,n,r){let o,i,a,s,u,l;if(u=null!=e?e instanceof vo?Co(e):1:0,l=null!=r?r instanceof vo?Co(r):1:0,l>u+2){const a=un(r);if(a instanceof vo){if(o=_o(a),(null!=o?(i=o,i instanceof vo?Co(i):1):0)>u+1){const r=un(_o(a));if(r instanceof vo)return ko(ko(e,t,n,_o(r)),yo(r),bo(r),ko(So(r),yo(a),bo(a),So(a)));throw new Error("internal error: Map.rebalance")}return ko(ko(e,t,n,_o(a)),yo(a),bo(a),So(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=un(e);if(o instanceof vo){if(a=So(o),(null!=a?(s=a,s instanceof vo?Co(s):1):0)>l+1){const e=un(So(o));if(e instanceof vo)return ko(ko(_o(o),yo(o),bo(o),_o(e)),yo(e),bo(e),ko(So(e),t,n,r));throw new Error("internal error: Map.rebalance")}return ko(_o(o),yo(o),bo(o),ko(So(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return ko(e,t,n,r)}function Ao(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,yo(o));return o instanceof vo?i<0?Io(Ao(e,t,n,_o(o)),yo(o),bo(o),So(o)):0===i?xo(t,n,_o(o),So(o),Co(o)):Io(_o(o),yo(o),bo(o),Ao(e,t,n,So(o))):i<0?xo(t,n,void 0,r,2):0===i?wo(t,n):xo(t,n,r,void 0,2)}return wo(t,n)}function No(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,yo(i));if(0===a)return sn(bo(i));if(i instanceof vo){e=r,t=o,n=a<0?_o(i):So(i);continue e}return}return}}function Ro(e,t,n,r,o){return t(n,r)?Ao(e,n,r,o):o}function Do(e,t,n,r){e:for(;;){const o=e,i=t,a=r;if(null!=n){const s=n;if(s instanceof vo){const u=Do(o,i,_o(s),a),l=Ro(o,i,yo(s),bo(s),u);e=o,t=i,n=So(s),r=l;continue e}return Ro(o,i,yo(s),bo(s),a)}return a}}function Mo(e,t,n){return Do(e,t,n,void 0)}function Oo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof vo){Oo(n,_o(r)),n(yo(r),bo(r)),e=n,t=So(r);continue e}n(yo(r),bo(r))}break}}function Po(e,t){Oo(e,t)}function Bo(e,t){if(null!=t){const n=t;if(n instanceof vo){const t=Bo(e,_o(n)),r=e(yo(n),bo(n)),o=Bo(e,So(n));return xo(yo(n),r,t,o,Co(n))}return wo(yo(n),e(yo(n),bo(n)))}}function Go(e,t){return Bo(e,t)}function Fo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Ao(e,o[0],o[1],n)}return n}class Lo extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function Vo(e){e:for(;;){const t=e;if(Nn(t))return kn();{const n=Dn(t),r=Rn(t);if(null!=r){const o=r;if(o instanceof vo){e=Gn([_o(o),wo(yo(o),bo(o)),So(o)],n);continue e}return t}e=n;continue e}}}function Ho(e){return new Lo(Vo(An(e)),!1)}function Uo(e){if(e.started){const t=e.stack;if(Nn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Rn(t)){const e=Rn(t);if(e instanceof vo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[yo(e),bo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function jo(e){let t=Ho(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Uo(t),"System.Collections.IEnumerator.get_Current":()=>Uo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Nn(t))return!1;if(null!=Rn(t)){if(Rn(t)instanceof vo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vo(Dn(t)),!Nn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Nn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ho(e)},Dispose(){}}}class zo{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,st(e[0])),n=0|t(n,st(e[1]))}}finally{Ke(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zo))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{Ke(n)}}finally{Ke(t)}}}toString(){return"map ["+Xt("; ",Kr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(jt,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(It(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Nt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Rt(s,i):Rt(s);break;case"e":case"E":s=null!=i?Dt(s,i):Dt(s);break;case"p":case"P":i=null!=i?i:2,s=Nt(At(s,100),i)+" %";break;case"d":case"D":s=null!=i?en(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?en(Mt(s),i,"0"):Mt(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{zt(s,0)&&(s=At(s,-1),e="-"),r=null==r?"":r.substring(1),s=Nt(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=en(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t,n){return Qt(e,t,"0",!0)}(i,a):a<i.length&&(i=i.substring(0,a)+i.substring(a).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})),s=e+s}}else s=s instanceof Date?St(s,a||o):Bt(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Qt(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return jo(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return jo(this.tree)}CompareTo(e){const t=this;if(e instanceof zo)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: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 Zo(this,e[0])&&ct(Ko(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Po(((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|qo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|qo(this)}get size(){return 0|qo(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 Ko(this,e)}has(e){return Zo(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;Yr((t=>{e(t[1],t[0],n)}),n)}}function Wo(e,t){return new zo(e,t)}function Yo(e){const t=_r();return Wo(t,function(e,t){if(We(t))return Fo(e,t);if(t instanceof bn)return function(e,t){return On(((t,n)=>Ao(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 a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Ao(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{Ke(n)}}}(t,e))}function Ko(e,t){return function(e,t,n){const r=No(e,t,n);if(null==r)throw new Error;return un(r)}(e.comparer,t,e.tree)}function qo(e){return Eo(e.tree)}function Zo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,yo(i));if(i instanceof vo){if(a<0){e=r,t=o,n=_o(i);continue e}if(0===a)return!0;e=r,t=o,n=So(i);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Jo(e,t,n){return function(e,t,n){return Wo(e.comparer,Ao(e.comparer,t,n,e.tree))}(n,e,t)}function Xo(e,t){return function(e,t){return No(e.comparer,t,e.tree)}(t,e)}function Qo(e,t){return function(e,t){return Wo(e.comparer,Go(t,e.tree))}(t,e)}function ei(e){return Yo(e)}function ti(){return zo.empty}zo.empty=Wo(_r(),void 0);const ni=new po("",new co(0),kn(),!1,void 0,void 0,void 0,new $o(0));function ri(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:tn(t,[e],null,0);var n}function oi(e){return new po(e,ni.method,ni.headers,ni.withCredentials,ni.overridenMimeType,ni.overridenResponseType,ni.timeout,ni.content)}function ii(e,t){return new po(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ai(e,t){return new po(t.url,t.method,Ln(t.headers,An(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e){return function(e){return cr((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,a,s;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new ho(0,n.responseText):new ho("arraybuffer"===s?2:"blob"===s?1:3,n.response),new mo(o,e,i,function(e){const t=_r();return Wo(t,Fo(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=un(o);r.push(e)}}return r}((e=>{const t=Fn(ri(":",e));return Nn(t)?void 0:[Rn(t).toLocaleLowerCase(),Xt(":",Dn(t)).trim()]}),ri("\r\n",n.getAllResponseHeaders()))),a)))};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{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 a=e.timeout;if(null==a);else{const e=0|a;n.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?n.send(sn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(sn(s[1].fields[0])):n.send(sn(void 0))}))}new mo(0,"","",ti(),new ho(0,""));class ui extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class li extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ci{constructor(){this.cache=new Map([])}}function fi(){return new ci}function di(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function $i(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 a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=Pt(e,a),u=Pt.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(di(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return di(t)}}fi(),fi();const pi=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,hi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,mi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function gi(e,t){try{return t.contents=function(e){function t(e){return e.replace(hi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(pi.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Ot(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(hi.test(n))return t(n);if(mi.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 wi;function yi(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 bi(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&wi.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}(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]=yi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=yi(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function vi(e,t,n,r,o){try{return o.contents=bi(e,t,n,r),!0}catch(e){return!1}}function xi(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 _i(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return xi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(wi||(wi={}));var Si=null;try{Si=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(c){}function Ci(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ti(e){return!0===(e&&e.__isLong__)}Ci.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ci.prototype.Equals=function(e){return Qi(this,e)},Ci.prototype.CompareTo=function(e){return ra(this,e)},Ci.prototype.toString=function(e){return qi(this,e)},Ci.prototype.toJSON=function(){return qi(this)},Ci.prototype[kt]=function(){const e=this;return{multiply:t=>sa(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 qi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Ci(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 Ci(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}}},Ci.prototype.__isLong__,Object.defineProperty(Ci.prototype,"__isLong__",{value:!0});var Ei={},ki={};function Ii(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=ki[e])?r:(n=Ni(e,(0|e)<0?-1:0,!0),o&&(ki[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ei[e])?r:(n=Ni(e,e<0?-1:0,!1),o&&(Ei[e]=n),n)}function Ai(e,t){if(isNaN(e))return t?Li:Fi;if(t){if(e<0)return Li;if(e>=Pi)return zi}else{if(e<=-Bi)return Wi;if(e+1>=Bi)return ji}return e<0?oa(Ai(-e,t)):Ni(e%Oi|0,e/Oi|0,t)}function Ni(e,t,n){return new Ci(e,t,n)}var Ri=Math.pow;function Di(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Fi;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 oa(Di(e.substring(1),t,n));for(var o=Ai(Ri(n,8)),i=Fi,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=ia(s<8?sa(i,Ai(Ri(n,s))):i=sa(i,o),Ai(u))}return i.unsigned=t,i}function Mi(e,t){return"number"==typeof e?Ai(e,t):"string"==typeof e?Di(e,t):Ni(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Oi=4294967296,Pi=Oi*Oi,Bi=Pi/2,Gi=Ii(1<<24),Fi=Ii(0),Li=Ii(0,!0),Vi=Ii(1),Hi=Ii(1,!0),Ui=Ii(-1),ji=Ni(-1,2147483647,!1),zi=Ni(-1,-1,!0),Wi=Ni(0,-2147483648,!1);function Yi(e){return e.unsigned?e.low>>>0:e.low}function Ki(e){return e.unsigned?(e.high>>>0)*Oi+(e.low>>>0):e.high*Oi+(e.low>>>0)}function qi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Zi(e))return"0";if(Ji(e)){if(Qi(e,Wi)){var n=Ai(t),r=ua(e,n),o=aa(sa(r,n),e);return qi(r,t)+Yi(o).toString(t)}return"-"+qi(oa(e),t)}for(var i=Ai(Ri(t,6),e.unsigned),a=e,s="";;){var u=ua(a,i),l=(Yi(aa(a,sa(u,i)))>>>0).toString(t);if(Zi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Zi(e){return 0===e.high&&0===e.low}function Ji(e){return!e.unsigned&&e.high<0}function Xi(e){return 1==(1&e.low)}function Qi(e,t){return Ti(t)||(t=Mi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ea(e,t){return ra(e,t)<0}function ta(e,t){return ra(e,t)>0}function na(e,t){return ra(e,t)>=0}function ra(e,t){if(Ti(t)||(t=Mi(t)),Qi(e,t))return 0;var n=Ji(e),r=Ji(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:Ji(aa(e,t))?-1:1}function oa(e){return!e.unsigned&&Qi(e,Wi)?Wi:ia(function(e){return Ni(~e.low,~e.high,e.unsigned)}(e),Vi)}function ia(e,t){Ti(t)||(t=Mi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+s)>>>16,l+=n+a,Ni((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function aa(e,t){return Ti(t)||(t=Mi(t)),ia(e,oa(t))}function sa(e,t){if(Zi(e))return e.unsigned?Li:Fi;if(Ti(t)||(t=Mi(t)),Si)return Ni(Si.mul(e.low,e.high,t.low,t.high),Si.get_high(),e.unsigned);if(Zi(t))return e.unsigned?Li:Fi;if(Qi(e,Wi))return Xi(t)?Wi:Fi;if(Qi(t,Wi))return Xi(e)?Wi:Fi;if(Ji(e))return Ji(t)?sa(oa(e),oa(t)):oa(sa(oa(e),t));if(Ji(t))return oa(sa(e,oa(t)));if(ea(e,Gi)&&ea(t,Gi))return Ai(Ki(e)*Ki(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*s)>>>16,c+=n*l+r*u+o*s+i*a,Ni((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function ua(e,t){if(Ti(t)||(t=Mi(t)),Zi(t))throw Error("division by zero");var n,r,o;if(Si)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ni((e.unsigned?Si.div_u:Si.div_s)(e.low,e.high,t.low,t.high),Si.get_high(),e.unsigned):e;if(Zi(e))return e.unsigned?Li:Fi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ni(e.low,e.high,!0)}(t)),ta(t,e))return Li;if(ta(t,function(e,t){if(Ti(t)&&(t=Yi(t)),0==(t&=63))return e;var n=e.high;return t<32?Ni(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ni(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Hi;o=Li}else{if(Qi(e,Wi))return Qi(t,Vi)||Qi(t,Ui)?Wi:Qi(t,Wi)?Vi:Qi(n=function(e,t){return Ti(t)&&(t=Yi(t)),0==(t&=63)?e:t<32?Ni(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ni(0,e.low<<t-32,e.unsigned)}(ua(function(e,t){return Ti(t)&&(t=Yi(t)),0==(t&=63)?e:t<32?Ni(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ni(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Fi)?Ji(t)?Vi:Ui:o=ia(n,ua(r=aa(e,sa(t,n)),t));if(Qi(t,Wi))return e.unsigned?Li:Fi;if(Ji(e))return Ji(t)?ua(oa(e),oa(t)):oa(ua(oa(e),t));if(Ji(t))return oa(ua(e,oa(t)));o=Fi}for(r=e;na(r,t);){n=Math.max(1,Math.floor(Ki(r)/Ki(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:Ri(2,i-48),s=Ai(n),u=sa(s,t);Ji(u)||ta(u,r);)u=sa(s=Ai(n-=a,e.unsigned),t);Zi(s)&&(s=Vi),o=ia(o,s),r=aa(r,u)}return o}const la=ua,ca=Ki;function fa(e){return e<0?Math.ceil(e):Math.floor(e)}function da(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return ca(la(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 $a(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 da(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,a=+t[4],s=+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*da(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class pa{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class ha{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Aa(this)}GetHashCode(){return ga(this)}Equals(e){return wa(this,e)}}function ma(e){return null!=e.generics?e.generics:[]}function ga(e){return at([ot(e.fullname),...ma(e).map(ga)])}function wa(e,t){return""===e.fullname?""===t.fullname&&ut(La(e),La(t),(([e,t],[n,r])=>e===n&&wa(t,r))):e.fullname===t.fullname&&ut(ma(e),ma(t),wa)}function ya(e,t,n,r){return new ha(e,t,n,void 0,r)}function ba(...e){return new ha("",void 0,void 0,void 0,(()=>e))}function va(e,t,n,r){const o=new ha(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new pa(o,n,e[n],t)))}));return o}function xa(e){return new ha("Microsoft.FSharp.Core.FSharpOption`1",[e])}function _a(e){return new ha("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Sa(e,t,n){return new ha(e,[t],void 0,void 0,void 0,void 0,n)}const Ca=new ha("System.Object"),Ta=(new ha("Microsoft.FSharp.Core.Unit"),new ha("System.Char"),new ha("System.String")),Ea=new ha("System.Boolean"),ka=(new ha("System.SByte"),new ha("System.Byte"),new ha("System.Int16"),new ha("System.UInt16"),new ha("System.Int32"));function Ia(e){if(Array.isArray(e))return e[0];if(e instanceof ha){const t=Ra(e);if(null!=t)return Ia(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Aa(e){const t=Ra(e);return null!=t?Aa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Aa(e))).join(",")+"]"}function Na(e){return null!=Ra(e)}function Ra(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Da(e){return null!=e.generics&&e.generics.length>0}function Ma(e){return null!=e.enumCases&&e.enumCases.length>0}function Oa(e){return null==e.generics?e:new ha(e.fullname,e.generics.map((()=>Ca)))}function Pa(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ba(e){if(Ma(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ga(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 Fa(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function La(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Va(e){if(ja(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ha(e){return e instanceof ha?null!=e.cases:e instanceof Gt}function Ua(e){return e instanceof ha?null!=e.fields:e instanceof Ft}function ja(e){return e.fullname.startsWith("System.Tuple")}function za(e){return null==e.fields?[]:e.fields}new ha("System.UInt32"),new ha("System.Single"),new ha("System.Double"),new ha("System.Decimal");class Wa{constructor(e){this.k=e}}function Ya(e){return new Wa(e)}function Ka(e){return e.k}class qa extends Wa{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Za(e,t,n,r){return new qa(e,t,n,r)}function Ja(e){return e.left}function Xa(e){return e.right}function Qa(e){return e.h}function es(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof qa){e=Ja(r),t=es(Xa(r),n+1);continue e}return n+1|0}return 0|n}}function ts(e){return es(e,0)}function ns(e,t,n){let r,o;r=null!=e?e instanceof qa?Qa(e):1:0,o=null!=n?n instanceof qa?Qa(n):1:0;const i=0|(r<o?o:r);return 0===i?Ya(t):Za(t,e,n,i+1)}function rs(e,t,n){let r,o,i,a,s,u;if(s=null!=e?e instanceof qa?Qa(e):1:0,u=null!=n?n instanceof qa?Qa(n):1:0,u>s+2){const i=un(n);if(i instanceof qa){if(r=Ja(i),(null!=r?(o=r,o instanceof qa?Qa(o):1):0)>s+1){const n=un(Ja(i));if(n instanceof qa)return ns(ns(e,t,Ja(n)),Ka(n),ns(Xa(n),Ka(i),Xa(i)));throw new Error("internal error: Set.rebalance")}return ns(ns(e,t,Ja(i)),Ka(i),Xa(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=un(e);if(r instanceof qa){if(i=Xa(r),(null!=i?(a=i,a instanceof qa?Qa(a):1):0)>u+1){const e=un(Xa(r));if(e instanceof qa)return ns(ns(Ja(r),Ka(r),Ja(e)),Ka(e),ns(Xa(e),t,n));throw new Error("internal error: Set.rebalance")}return ns(Ja(r),Ka(r),ns(Xa(r),t,n))}throw new Error("internal error: Set.rebalance")}return ns(e,t,n)}function os(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Ka(r));if(r instanceof qa)return o<0?rs(os(e,t,Ja(r)),Ka(r),Xa(r)):0===o?n:rs(Ja(r),Ka(r),os(e,t,Xa(r)));{const o=0|e.Compare(t,Ka(r));return o<0?Za(t,void 0,n,2):0===o?n:Za(t,n,void 0,2)}}return Ya(t)}function is(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,Ka(i));if(i instanceof qa){if(a<0){e=r,t=o,n=Ja(i);continue e}if(0===a)return!0;e=r,t=o,n=Xa(i);continue e}return 0===a}return!1}}function as(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof qa){as(n,Ja(r)),n(Ka(r)),e=n,t=Xa(r);continue e}n(Ka(r))}break}}class ss extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function us(e){e:for(;;){const t=e;if(Nn(t))return kn();{const n=Rn(t),r=Dn(t);if(null!=n){const o=n;if(o instanceof qa){e=Gn([Ja(o),Ya(Ka(o)),Xa(o)],r);continue e}return t}e=r;continue e}}}function ls(e){return new ss(us(An(e)),!1)}function cs(e){if(e.started){const t=e.stack;if(Nn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Rn(t))return Ka(Rn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function fs(e){let t=ls(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>cs(t),"System.Collections.IEnumerator.get_Current":()=>cs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Nn(t))return!1;if(null!=Rn(t)){if(Rn(t)instanceof qa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=us(Dn(t)),!Nn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Nn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ls(e)},Dispose(){}}}function ds(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,a=[o,i];if(Nn(a[0]))return Nn(a[1])?0:-1;if(Nn(a[1]))return 1;if(null!=Rn(a[1]))if(null!=Rn(a[0])){const s=Rn(a[0]),u=Rn(a[1]);if(s instanceof qa)if(null==Ja(s)){if(!(u instanceof qa)){const o=0|r.Compare(Ka(s),Ka(u));if(0!==o)return 0|o;e=r,t=In(Xa(s),Dn(a[0])),n=In(void 0,Dn(a[1]));continue e}if(null==Ja(u)){const o=0|r.Compare(Ka(s),Ka(u));if(0!==o)return 0|o;e=r,t=In(Xa(s),Dn(a[0])),n=In(Xa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof qa){e=r,t=Gn([Ja(l),Za(Ka(l),void 0,Xa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ya(Ka(l))],u),n=i;continue e;case 1:if(f instanceof qa){e=r,t=o,n=Gn([Ja(f),Za(Ka(f),void 0,Xa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ya(Ka(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof qa){e=r,t=Gn([Ja(l),Za(Ka(l),void 0,Xa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ya(Ka(l))],u),n=i;continue e;case 1:if(f instanceof qa){e=r,t=o,n=Gn([Ja(f),Za(Ka(f),void 0,Xa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ya(Ka(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof qa)){const o=0|r.Compare(Ka(s),Ka(u));if(0!==o)return 0|o;e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}if(null==Ja(u)){const o=0|r.Compare(Ka(s),Ka(u));if(0!==o)return 0|o;e=r,t=In(void 0,Dn(a[0])),n=In(Xa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof qa){e=r,t=Gn([Ja(l),Za(Ka(l),void 0,Xa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ya(Ka(l))],u),n=i;continue e;case 1:if(f instanceof qa){e=r,t=o,n=Gn([Ja(f),Za(Ka(f),void 0,Xa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ya(Ka(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Rn(a[1]);const s=[o,i];let u,l,c,f,d;switch(Nn(s[0])?Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2:null!=Rn(s[0])?(u=0,l=Dn(s[0]),c=Rn(s[0])):Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2,u){case 0:if(c instanceof qa){e=r,t=Gn([Ja(c),Za(Ka(c),void 0,Xa(c),0)],l),n=i;continue e}e=r,t=Gn([void 0,Ya(Ka(c))],l),n=i;continue e;case 1:if(d instanceof qa){e=r,t=o,n=Gn([Ja(d),Za(Ka(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=Gn([void 0,Ya(Ka(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Rn(a[0])){e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}{Rn(a[0]);const s=[o,i];let u,l,c,f,d;switch(Nn(s[0])?Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2:null!=Rn(s[0])?(u=0,l=Dn(s[0]),c=Rn(s[0])):Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2,u){case 0:if(c instanceof qa){e=r,t=Gn([Ja(c),Za(Ka(c),void 0,Xa(c),0)],l),n=i;continue e}e=r,t=Gn([void 0,Ya(Ka(c))],l),n=i;continue e;case 1:if(d instanceof qa){e=r,t=o,n=Gn([Ja(d),Za(Ka(d),void 0,Xa(d),0)],f);continue e}e=r,t=o,n=Gn([void 0,Ya(Ka(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,An(t),An(n))}function $s(e,t,n){let r=n;as((e=>{t[r]=e,r=r+1|0}),e)}function ps(e,t){if(We(t))return function(e,t){return yn(((t,n)=>os(e,n,t)),void 0,t)}(e,t);if(t instanceof bn)return function(e,t){return On(((t,n)=>os(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=os(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ke(n)}}}class hs{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|st(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 hs&&0===ds(ms(this),gs(this),gs(e))}toString(){return"set ["+Xt("; ",Kr((e=>Bt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|ds(ms(this),gs(this),gs(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 is(ms(this),e,gs(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){$s(gs(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ws(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ws(this)}GetEnumerator(){return fs(gs(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return fs(gs(this))}get size(){return 0|ws(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 is(ms(e),t,gs(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;Yr((t=>{e(t,t,n)}),n)}}function ms(e){return e.comparer}function gs(e){return e.tree}function ws(e){return ts(gs(e))}function ys(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 bs(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new br(1,function(e,t){const n=2===t.tag?ys(t.fields[0],t.fields[1],!0):1===t.tag?ys(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ys(t.fields[0],t.fields[1],!0):4===t.tag?ys(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"+Xt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ys(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new br(0,r.fields[0])}function vs(e,t){return"string"==typeof t?new br(0,t):new br(1,[e,new ui(0,"a string",t)])}const xs=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 br(0,(e+128&255)-128):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])},_s=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 br(0,255&e):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])},Ss=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 br(0,(e+32768&65535)-32768):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])},Cs=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 br(0,65535&e):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])},Ts=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 br(0,~~e):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])},Es=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 br(0,e>>>0):new br(1,[r,new ui(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new ui(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[vi(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new ui(0,n,o)])}return new br(1,[r,new ui(0,n,o)])};function ks(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 br(1,[i,new ui(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new br(1,[i,new ui(0,"an array",r)])}function Is(e,t,n){if(Array.isArray(n)){let r=-1;return vr(Pn,yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new br(0,In(i.fields[0],n.fields[0])):new br(1,i.fields[0])}return n}),new br(0,kn()),n))}return new br(1,[t,new ui(0,"a list",n)])}function As(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+nt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new br(0,i)):new br(1,a.fields[0])}return n}),new br(0,mn(new Array(o.length),0,o.length,null)),o)}return new br(1,[t,new ui(0,"an array",n)])}function Ns(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new br(1,o.fields[0])}function Rs(e,t){let n;const r=e;return n=e=>t=>ks(0,r,e,t),e=>r=>Ns(wt(3,(e=>{let n;const r=t;return n=e=>t=>ks(1,r,e,t),t=>r=>Ns(((t,n,r)=>new br(0,[e,t])),wt(2,n),t,r)})),wt(2,n),e,r)}function Ds(e){return ei(e)}function Ms(e){return function(e,t){return new hs(e,t)}(t={Compare:pt},ps(t,e));var t}function Os(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new br(1,[n,new ui(6,(o=0|r.length,Kt(Wt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new br(0,kn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const a=o.fields[0],s=Kt(Wt("%s[%i]"))(n)(i),u=t[i-e],l=r[i];o=vr((e=>In(e,a)),u(s)(l))}return vr(Pn,o)}}function Ps(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>Ia(e)===r))}(0,Fa(n));if(null!=a){const n=a,r=gn((n=>Gs(e,t,!1,n[1])),za(n));return vr((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,Mn(e))),0===r.length&&i.length<=1?new br(0,kn()):Os(1,r,o,i))}return new br(1,[o,new ui(6,"Cannot find case "+r+" in "+Aa(n))])}function Bs(e,t,n,r){const o=new Lt(null);let i;const a=Aa(r);let s;if(i=""===a?e:Jo(a,o,e),Ua(r)){const e=gn((e=>[$i(t,Ia(e)),Gs(i,t,!1,e[1])]),La(r));s=t=>n=>vr((e=>function(e,t){const n=La(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,Mn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new br(1,[t,new ui(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(wt(2,(e=>{const r=e[0];return o=>0===o.tag?vr((e=>In(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new br(0,kn()))}(e,t,n))}else if(Ha(r))s=e=>n=>{if("string"==typeof n)return Ps(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return xr((n=>Ps(i,t,r,n,e,o)),vs(e+"[0]",o[0]))}return new br(1,[e,new ui(0,"a string or array",n)])};else{if(!n){let e;const t=Aa(r);throw e=Kt(Wt("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)}s=e=>t=>new br(1,[e,new ui(2,"an extra coder for "+Aa(r),t)])}return o.contents=s,s}function Gs(e,t,n,r){let o,i,a,s;const u=Aa(r),l=Xo(u,e);if(null==l){if(Na(r)){const n=Gs(e,t,!1,Ra(r));return e=>t=>As(wt(2,n),e,t)}if(Ma(r)){const e=Aa(Pa(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=xs(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,e.toString())):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=_s(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,e.toString())):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=Ss(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,e.toString(s))):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,a=Cs(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,e.toString())):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=Ts(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,nt(e))):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=Es(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ba(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Ga(n,e.toString())):new br(1,[o,new ui(1,Aa(n),i,"Unkown value provided for the enum")])}};{const e=Aa(r),t=qt(Wt("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(Da(r)){if(ja(r)){const n=gn((n=>Gs(e,t,!1,n)),Va(r));return e=>t=>Array.isArray(t)?vr((e=>Mn(e)),Os(0,n,e,t)):new br(1,[e,new ui(0,"an array",t)])}{const u=Aa(Oa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Gs(e,t,!0,ma(r)[0]),e=>t=>{return n=wt(2,o),r=e,null==(i=t)?new br(0,void 0):vr(sn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Gs(e,t,!1,ma(r)[0]),e=>t=>Is(wt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return a=Gs(e,t,!1,ma(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return vr(Zr,yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new br(0,Ur([i.fields[0]],n.fields[0])):new br(1,i.fields[0])}return n}),new br(0,[]),n))}return new br(1,[t,new ui(0,"a seq",n)])}(wt(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Gs(e,t,!1,ma(r)[0]),o=Gs(e,t,!1,ma(r)[1]);let i;const a=Fn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new br(1,[n,new ui(0,"an object",r)]):Wr(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new br(0,In([a.fields[0],e.fields[0]],o.fields[0])):new br(1,e.fields[0])}return new br(1,a.fields[0])}return o}),new br(0,kn()),Object.keys(r))}(wt(2,n),wt(2,o),e,t),(s=Rs(wt(2,n),wt(2,o)),e=>t=>Is(wt(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Nn(o))return new br(1,[n,new ui(7,i)]);{const a=bs(n,wt(2,Rn(o)),r);if(1===a.tag){e=Dn(o),t=Ln(i,An(a.fields[0]));continue e}return new br(0,a.fields[0])}}})(a,kn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new br(1,o.fields[0]):new br(0,e(o.fields[0]))}(Ds,wt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Gs(e,t,!1,ma(r)[0]);return e=>t=>{const r=As(wt(2,n),e,t);return 0===r.tag?new br(0,Ms(r.fields[0])):new br(1,r.fields[0])}}return Bs(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new br(0,r):new br(1,[n,new ui(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new br(0,void 0):new br(1,[n,new ui(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>vs(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new br(0,n[0]):new br(1,[e,new ui(0,"a single character string",t)])}return new br(1,[e,new ui(0,"a char",t)])}(e,t):"System.SByte"===u?xs:"System.Byte"===u?_s:"System.Int16"===u?Ss:"System.UInt16"===u?Cs:"System.Int32"===u?Ts:"System.UInt32"===u?Es:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new br(0,r):new br(1,[n,new ui(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new br(0,r):new br(1,[n,new ui(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=Ct(-621355968e5,0);return r=[Et(t,new Lt((()=>o),(e=>{o=e}))),o],r[0]?new br(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new br(1,[e,new ui(0,"a datetime",t)])}var n;return new br(1,[e,new ui(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=xi(-621355968e5,0);return n=[_i(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new ui(0,"a datetimeoffset",t)])}return new br(1,[e,new ui(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[$a(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new ui(0,"a timespan",t)])}return new br(1,[e,new ui(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=[gi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new ui(0,"a guid",t)])}return new br(1,[e,new ui(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new br(0,e):Bs(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Fs=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 Ls=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 Fs(n)}(e,0);return 0!=(256&n)}(e);const Vs={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Hs(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 Us(e,t=Vs.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 Vs.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Vs.SnakeCase:return Hs(e,"_");case Vs.SnakeCaseAllCaps:return Hs(e,"_").toUpperCase();case Vs.KebabCase:return Hs(e,"-");case Vs.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Vs.None;if(null==t&&o(t),t instanceof Gt){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 js(e,t){return!t.has(e)&&(t.add(e),!0)}function zs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ws{constructor(e,t){const n=new Lt(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"]();Zs(n.contents,e)}}finally{Ke(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(Pr(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Zs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ks(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Js(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Wr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|qs(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Xs(this,e)}get size(){return 0|qs(this)}add(e){return Zs(this,e),this}clear(){Ks(this)}delete(e){return Xs(this,e)}has(e){return Js(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;Yr((t=>{e(t,t,n)}),n)}}function Ys(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Lt((()=>o),(e=>{o=e})),!!i.has(a)&&(s.contents=i.get(a),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,a,s}function Ks(e){e.hashMap.clear()}function qs(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{Ke(n)}return 0|t}function Zs(e,t){const n=Ys(e,t);return n[0]?!(n[2]>-1)&&(zs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Js(e,t){const n=Ys(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Xs(e,t){const n=Ys(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return zs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Qs extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}const eu=ei([["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 tu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class nu extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}function ru(e){return vr((e=>new nu(e.Code,e.Name)),function(e){const t=function(e){return $n((t=>new Qs(e,t)),Xo(e,eu))}(e);return Qr(Kt(Wt("Country code:%A is not accepted"))(e),t)}(e))}class ou extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const iu=new ou(2,{HomeCountry:void 0});function au(e){return new ou(2,{HomeCountry:e})}class su extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class uu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class lu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class cu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function fu(e){return new cu(0,e)}function du(e){return e.fields[0]}function $u(e){return ao(0,(()=>xr((e=>{const t=e;return so(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof bn)return Nn(e);{const t=Mr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ke(t)}}}(t)?new br(1,e):new br(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},Fr(function(e,t,n){return Or((()=>{const r=new Ws(e,n);return zr((e=>js(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return ao(0,(()=>{const t=nn(Ls,e);return xr((()=>xr((()=>so(0,eo(0,"TFN is not valid",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=hn(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),gn((e=>bi(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),(()=>t))),eo(9,"TFN must be 9 digits",t.length))),eo(e,"TFN must contain digits only",t))}))()}(e))))()}class pu 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 hu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function mu(){return va("Dto.Dto.ResidencyStatusV2Dto",[],hu,(()=>[[],[],[["Item",ba(["HomeCountry",xa(ya("Dto.Dto.CountryDto",[],pu,(()=>[["Code",Ta],["Name",Ta]])))])]]]))}function gu(e){switch(e.tag){case 1:return new br(0,new ou(1));case 2:return dn($n((e=>vr(au,ru(e.Code))),e.fields[0].HomeCountry),new br(0,iu));default:return new br(0,new ou(0))}}function wu(e){switch(e){case 0:return new br(0,new su(0));case 1:return new br(0,new su(1));case 2:return new br(0,new su(2));case 3:return new br(0,new su(3));case 4:return new br(0,new su(4));default:return new br(1,"Invalid EmploymentBasis")}}function yu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function bu(e){switch(e){case 0:return new br(0,new tu(0));case 1:return new br(0,new tu(1));case 2:return new br(0,new tu(2));case 3:return new br(0,new tu(3));case 4:return new br(0,new tu(4));default:return new br(1,"Invalid DebtSupport")}}function vu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const xu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Nn(i))return vr(Pn,r);{const a=ao(0,(()=>xr((e=>so(0,r,(t=>In(e,t)))),o(Rn(i)))))();if(1===a.tag)return a;e=a,t=o,n=Dn(i);continue e}}}(new br(0,kn()),e,t)}(bu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Lr(function(e,t){return Or((()=>{const n=new Ws([],t);return zr((e=>js(e,n)),e)}))}(e,t))));var t},_u=e=>Vn(vu,e);class Su extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function Cu(){return va("Dto.Dto.ProvidedTfnInformationDto",[],Su,(()=>[[["Item",Ta]],[["Item",Sa("Dto.Dto.ExemptionReasonDto",ka,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class Tu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class Eu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}function ku(){return ya("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],Eu,(()=>[["TfnInformation",va("Dto.BackendApiModels.Read.TfnInformation",[],Tu,(()=>[[["Item",Ta]],[["Item",Sa("Dto.Dto.ExemptionReasonDto",ka,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",xa(Ta)],["ResidencyStatus",Sa("Dto.Dto.ResidencyStatusDto",ka,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",mu()],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",Ea],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))}class Iu extends Ft{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=0|t}}class Au extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class Nu extends Ft{constructor(e,t,n){super(),this.Meta=e,this.Data=t,this.Info=n}}class Ru extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Du(){return va("Dto.Commands.ResidencyStatusV2Dto",[],Ru,(()=>[[],[],[["Item",ya("Dto.Commands.WorkingHolidayPayload",[],Mu,(()=>[["HomeCountry",ya("Dto.Commands.CountryCode",[],Ou,(()=>[["Code",Ta]]))]]))]]]))}class Mu extends Ft{constructor(e){super(),this.HomeCountry=e}}class Ou extends Ft{constructor(e){super(),this.Code=e}}class Pu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CreateOrUpdate","ProvideFullTfnDeclaration","Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}class Bu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}function Gu(e){return e}const Fu=null;function Lu(e){return Array.from(e)}function Vu(e){return St(e,"O")}function Hu(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 fa(e/864e5)}(e)),o=Math.abs(function(e){return fa(e%864e5/36e5)}(e)),i=Math.abs(function(e){return fa(e%36e5/6e4)}(e)),a=Math.abs(function(e){return fa(e%6e4/1e3)}(e)),s=Math.abs(function(e){return fa(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(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+et(s,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}(s):""}`}(e)}function Uu(){return null}function ju(e){return St(e,"O")}function zu(e,t,n,r){const o=new Lt(null);let i;const a=Aa(r);let s;if(i=""===a?e:Jo(a,o,e),Ua(r)){const e=gn((e=>{const r=$i(t,Ia(e)),o=Wu(i,t,n,e[1]);return t=>i=>{const a=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),La(r));s=t=>Wr(((e,n)=>n(t)(e)),{},e)}else{if(!Ha(r)){let e;const t=Aa(r);throw e=Kt(Wt("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)}s=e=>{const o=function(e,t){const n=Fa(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),a=o[0],s=o[1],u=0|s.length;if(0===u)return Ia(a);{const e=0|u,r=za(a),o=mn(new Array(e+1),0,e+1,null);o[0]=Ia(a);for(let a=1;a<=e;a++){const e=Wu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=s,s}function Wu(e,t,n,r){const o=Aa(r),i=Xo(o,e);if(null==i){if(Na(r)){const o=Wu(e,t,n,Ra(r));return e=>Lu(Kr(o,e))}if(Ma(r)){const e=Aa(Pa(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=Aa(r);return qt(Wt("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(Da(r)){if(ja(r)){const o=gn((r=>Wu(e,t,n,r)),Va(r));return e=>{return Lu((t=(e,t)=>o[e](t),n=e,Hr((()=>Mr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?sn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))));var t,n}}{const o=Aa(Oa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Wu(e,t,n,ma(r)[0]),e=>{return n=()=>Fu,null!=(t=$n(o,e))?un(t):n();var t,n};var o}));return e=>null==e?Fu: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=Wu(e,t,n,ma(r)[0]);return e=>Lu(Kr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ma(r)[0],i=Wu(e,t,n,ma(r)[1]);if("System.String"===Aa(o)||"System.Guid"===Aa(o))return e=>Wr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Wu(e,t,n,o);return r=a,e=>Lu(Kr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return zu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Uu:"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?ju:"System.DateTimeOffset"===o?Vu:"System.TimeSpan"===o?Hu:"System.Guid"===o?Gu:"System.Object"===o?e=>e:zu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Yu(e){return Kt(Wt("%s/tfn-declaration/backend"))(e)}function Ku(e,t){return lo(0,(()=>{const n=ai(function(e){return new fo(0,"Authorization",e)}(Kt(Wt("Bearer %s"))(e)),t);let r;const o=si(n);return r=fr.Bind(o,(e=>fr.Return(new br(0,e)))),fr.Delay((()=>fr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?fr.Return(new br(1,o.fields[0])):fr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=si(n),fr.Bind(r,(e=>fr.Return(new br(0,e))))):uo(0,t)))}))))}))}const qu=e=>function(e,t){try{return bs("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new br(1,"Given an invalid JSON: "+e.message);throw e}}(wt(2,function(e,t,n){const r=dn(t,new li(0));return Gs(function(e){return null!=e?Qo(((e,t)=>new Lt(t[1])),e.Coders):ti()}(void 0),r,!1,e)}(ya("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Nu,(()=>[["Meta",ba(["AccountId",Ta])],["Data",xa(ku())],["Info",xa(va("Dto.BackendApiModels.Read.Information",[],Au,(()=>[[["Item",ku()]],[["Item",ya("Dto.BackendApiModels.Read.EmploymentInfo",[],Iu,(()=>[["ResidencyStatusV2",xa(mu())],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]]))]]])))]])),new li(1))),e);function Zu(e,t){return lo(0,(()=>{const n=Ku(e,ii(new co(0),oi(Yu(t))));return fr.Delay((()=>fr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?fr.Return(new br(1,r.fields[0])):fr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=qu(t.responseText),fr.Return(n)):fr.Return(new br(1,"Unexpected response from backend"))))}))))}))}function Ju(e,t,n){return lo(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,a;switch(2===o.tag&&0===o.fields[0].tag?(i=0,a=o.fields[0].fields[0]):i=1,i){case 0:r=lo(0,(()=>uo(0,a)));break;case 1:r=Zu(t,n)}return fr.Delay((()=>fr.Bind(r,(r=>{let o,i,a;const s=r;return 1===s.tag?fr.Return(new br(1,s.fields[0])):fr.ReturnFrom((o=s.fields[0],a=function(e,t){return ao(0,(()=>xr((n=>{const r=n,o=$n(du,e.PreviousSurname.Value);return xr((n=>{const i=n;return xr((n=>{const a=0|n;return xr((n=>{const s=n,u=dn($n(_u,e.DebtSupportCheckboxGroup.Value),kn());return so(0,0===r.tag?new br(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new br(0,new Su(1,function(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}(r.fields[0].fields[0]))):new br(0,new Su(0,r.fields[0].fields[0].fields[0])),(e=>{const n=e,r=t.Info;return null!=r?0===r.tag?An(new Pu(0,new Bu(t.Meta.AccountId,n,o,i,a,s,u))):An(new Pu(1,{EmploymentBasis:a,HasDebtSupport:u,IsTaxFreeThresholdClaimed:s,PreviousSurname:o,ResidencyStatus:i,TfnInformation:n})):An(new Pu(0,new Bu(t.Meta.AccountId,n,o,i,a,s,u)))}))}),Qr("missing is tax-free threshold claimed",$n((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Qr("missing employment basis",$n(yu,e.EmploymentBasisRadioButtonGroup.Value)))}),Qr("missing residency status",pn((e=>{const t=function(e){switch(e.tag){case 1:return new br(0,new Ru(1));case 2:return vr((e=>new Ru(2,new Mu(new Ou(e.Code)))),Qr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new br(0,new Ru(0))}}(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),Qr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=fr.Return(a),fr.Delay((()=>fr.Bind(i,(e=>{let r,i,a;const s=e;return 1===s.tag?fr.Return(new br(1,s.fields[0])):fr.ReturnFrom((r=s.fields[0],Nn(r)?uo(0,o):(i=Ku(t,(u=new $o(1,function(e,t){return JSON.stringify(t,wt(2,void 0),sn(e))}(0,function(e,t,n,r){const o=dn(t,new li(0)),i=dn(void 0,!0);return Wu(function(e){return null!=e?Qo(((e,t)=>new Lt(t[0])),e.Coders):ti()}(void 0),o,i,e)}(_a(va("Dto.Commands.TfnDeclarationCommandDto",[],Pu,(()=>[[["Item",ya("Dto.Commands.TfnDeclarationDetailsDto",[],Bu,(()=>[["AccountId",Ta],["TfnInformation",Cu()],["PreviousSurname",xa(Ta)],["ResidencyStatus",Du()],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",Ea],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",ba(["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Ea],["PreviousSurname",xa(Ta)],["ResidencyStatus",Du()],["TfnInformation",Cu()])]],[["Item",ba(["AccountId",Ta],["EmploymentBasis",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",Ea],["PreviousSurname",xa(Ta)],["ResidencyStatus",Du()],["TfnInformation",Cu()])]],[["Item",Cu()]],[["Item",xa(Ta)]],[["Item",Du()]],[["Item",Sa("Dto.Dto.EmploymentBasisDto",ka,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",Ea]],[["Item",_a(Sa("Dto.Dto.DebtSupportDto",ka,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new li(1))(r))),l=ii(new co(2),oi(Yu(n))),a=new po(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),ai(new fo(0,"Content-Type","application/json"),a))),fr.Delay((()=>fr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?fr.Return(new br(1,r.fields[0])):fr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=qu(t.responseText),fr.Return(n)):fr.Return(new br(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Xu(e,t,n){Bn((n=>{try{n(t)}catch(t){e(t)}}),n)}function Qu(){return kn()}function el(e){return An((t=>{t(e)}))}function tl(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 Or((()=>{return t=i,n=e,Dr((()=>function(e,t){let n,r=t;return Nr((()=>{if(null!=n){const e=n[0];return n[1],e}return Er()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class nl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class rl{constructor(e){this.state=new nl(0,mn(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function ol(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 nl(0,o,n):new nl(1,o,n,i),sn(o[r])}}class il extends Ft{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=a}}function al(e,t){const n=t.init(e),r=n[0],o=new rl(10);let i=!1,a=r;const s=bt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],a=0|n.fields[2],s=n.fields[0];s[i]=t;const u=(i+1)%s.length|0;e.state=u===a?new nl(1,(r=a,o=s,Array.from(Or((()=>Ur(Jr(r,o),Or((()=>{return Ur((e=r,t=o,Hr((()=>Mr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return sn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Tr+"\\nParameter name: source")}}),(e=>{Ke(e)}))),Or((()=>Xr((e=>Gr(null)),tl(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new nl(1,s,u,a)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new nl(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=sn(e);for(;null!=n;){const e=un(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),Xu((n=>{t.onError([Kt(Wt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Kt(Wt("Unable to process the message: %A"))(e),n])}n=ol(o)}i=!1}}]);t.setState(r,s),Xu((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=xn();let n=t;const r=e=>{n=On(((e,t)=>{const n=new bn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof bn)Bn(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ke(t)}}const o=n,i=xn();return o.tail=i,En(t)}(Fn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Qu()}})(),n[1]])))}class sl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function ul(){return new sl}function ll(e,t,n,r){al(t,function(e,t){return new il(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=sn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return un(o);throw new Error("Elmish program has not initialized")}function cl(e,t){return function(e,t,n){const r=tr(ul)[0],o=tr((()=>ll(e,t,r))),i=o[1];return nr((()=>(function(e){return e.hasDisposedOnce}(r)&&i(ll(e,t,r)),er((()=>{!function(e){const t=e.state;if(null!=t){const e=un(t);Ye(e)&&Ke(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),dn(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 fl(e,t,n){return cl((()=>function(e,t,n){return new il(e,t,(e=>Qu()),n,wt(2,(e=>{const t=bt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(sn(t),n)}),wt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class dl extends Ft{constructor(e,t){super(),this.Value=e,this.Meta=t}}function $l(){return new dl(void 0,{Valid:!1})}function pl(e){return new dl(e,{Valid:!0})}function hl(e){return new dl(e,{Valid:!1})}function ml(e){switch(e){case"Under18AndBelowTaxThreshold":return new lu(0);case"Pending":return new lu(1);case"Pensioner":return new lu(2);default:return}}function gl(e){switch(e){case"AustralianResidentForTaxPurposes":return new ou(0);case"ForeignResidentForTaxPurposes":return new ou(1);case"WorkingHolidayMaker":return iu;default:return}}function wl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function yl(e){switch(e){case"HELP":return new tu(0);case"VETStudentLoan":return new tu(1);case"FinancialSupplement":return new tu(2);case"StudentStartUpLoan":return new tu(3);case"TradeSupportLoan":return new tu(4);default:return}}function bl(e){switch(e){case"FullTime":return new su(0);case"PartTime":return new su(1);case"LabourHire":return new su(2);case"SuperIncomeStream":return new su(3);case"Casual":return new su(4);default:return}}function vl(e){return p("p",{className:Xt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function xl(e){let t;return p("div",mt(Fn([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[Zn,p("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Hn.Children.toArray(Array.from(t))])])))}class _l extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Sl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class Cl extends Ft{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Tl(e){return new Cl(e,{Touched:!1})}function El(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new Cl(e.fields[0],t.Meta):t:new Cl(e.fields[0],{Touched:!0})}function kl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Lr(Or((()=>Ur(null!=e.Parent.Disable?Gr("bg-gray-50"):Gr("bg-white"),Or((()=>Ur(Gr("border-gray-200"),Or((()=>Ur(Gr("shadow-sm"),Or((()=>null!=e.Parent.Disable?Gr("text-gray-400"):Gr("text-gray-900"))))))))))))):Lr(Or((()=>Ur(Gr("shadow-none"),Or((()=>null!=e.Parent.Disable?Gr("text-gray-400"):Gr("text-gray-700")))))));return p("button",{className:Xt(" ",Lr(Or((()=>Ur(Gr("relative"),Or((()=>Ur(Gr("w-1/2"),Or((()=>Ur(Gr("border-gray-200"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("shadow-sm"),Or((()=>Ur(Gr("py-2"),Or((()=>Ur(Gr("text-sm"),Or((()=>Ur(Gr("font-medium"),Or((()=>Ur(Gr("whitespace-nowrap"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("focus:ring-inset"),Or((()=>Ur(Gr("focus:ring-1"),Or((()=>Ur(Gr("focus:ring-primary-focus"),Or((()=>Ur(Gr("focus:z-10"),Or((()=>Ur(Gr("w-auto"),Or((()=>Ur(Gr("px-8"),Or((()=>Ur(ct(e.Parent.Disable,e.Selection)?Gr("disabled:cursor-not-allowed"):Br(),Or((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Sl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Bt(e.Selection)})}function Il(e){let t;return p("div",mt(Fn([["className",Xt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[kl({Parent:e,Selection:new _l(0)}),kl({Parent:e,Selection:new _l(1)})],["children",Hn.Children.toArray(Array.from(t))])])))}class Al extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Nl extends Ft{constructor(e){super(),this.Selected=e}}function Rl(e){let t;const n=fl((r=e.InitialValue,[new Nl(r),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new Nl(e.fields[0])}(t);return e(new dl(r.Selected,{Valid:null!=r.Selected})),[r,Qu()]}(e.OnUpdate,t)));var r;return p("div",mt(Fn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Lr(Or((()=>Xr((t=>{let r,o;const i=t[0];return Gr(p("label",mt(Fn([["className",Xt(" ",["flex","items-start"])],(r=[p("input",{className:Xt(" ",["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:cn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Al(0,i))}}),p("label",mt(Fn([["className",Xt(" ",["ml-3","block","text-sm"])],["for",i],(o=Lr(Or((()=>Ur(Gr(p("span",{className:Xt(" ",["block","text-gray-900"]),children:t[1]})),Or((()=>{const e=t[2];if(null==e)return Gr(null);{const t=e;return Gr(p("span",{className:Xt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Hn.Children.toArray(Array.from(t))])])))}class Dl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Ml extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Ol extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Pl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Bl 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 Gl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new dl($n((e=>new Ol(1,e)),e.Value),e.Meta)}return new dl(new Ol(0,cn(e.TruncatedTfn)),{Valid:!0})}const Fl=e=>function(e){return 1!==e.tag}($u(e));function Ll(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Bl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Pl(1,new dl(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Bl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Pl(1,new dl(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Bl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Pl(1,new dl(n.Value,{Valid:Fl(t)})),e.TfnInputTouched)}}return e}function Vl(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 Hl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Ul(e){let t,n,r,o;const i=fl(function(e){let t,n,r;return[Ll(new Bl(Tl(null!=e&&1===e.tag&&1===e.fields[0].tag?new _l(1):new _l(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Pl(1,$l()):1===e.tag?(r=e.fields[0],new Pl(1,new dl(r,{Valid:!1}))):new Pl(0),!1)),Qu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Bl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Ml(0,new uu(0,n)),o=Fl(n);return t.EditingState.tag,new Bl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Pl(1,new dl(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0],r=$n((e=>new Ml(1,e)),pn(ml,n.Value));return t.EditingState.tag,new Bl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Pl(1,new dl(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Bl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Pl(0),t.TfnInputTouched):new Bl(t.YesNoButtonGroup,t.TruncatedTfn,new to(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Pl(1,$l()),!1);case 5:return Ll(new Bl(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 Pl(1,$l())}}else r=new Pl(1,$l());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 Pl(0);break;case 2:r=new Pl(1,$l())}}else r=new Pl(0);break}}return new Bl(El(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(Gl(r)),[r,Qu()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",mt(An((t=[p("button",mt(Fn([["className",Xt(" ",["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=Lr(Or((()=>ct(a.EditingState,new Pl(0))?Ur(Gr(jn),Or((()=>Gr(p("span",{children:["Edit"]}))))):Ur(Gr(zn),Or((()=>Gr(p("span",{children:["Cancel"]})))))))),["children",Hn.Children.toArray(Array.from(n))]),["onClick",e=>{s(new Dl(4))}]])))],["children",Hn.Children.toArray(Array.from(t))]))));return p("div",mt(Fn([["className",Xt(" ",Jn)],(r=[vl("Do you have your Tax File Number (TFN)?"),p(Il,{Disable:void 0,Dispatch:e=>{s(new Dl(0,e))},State:a.YesNoButtonGroup}),p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(o=Lr(Or((()=>{let e,t,n,r,o,i;return Ur((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Gr(p(Rl,(t=Vn((e=>[Bt(e[0]),e[1],e[2]]),Fn([[new lu(1),"My TFN is pending",void 0],[new lu(0),"I'm under 18 and don't have a TFN",void 0],[new lu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=Gl(a).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Bt(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{s(new Dl(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],Ur(Gr(vl("Enter your TFN")),Or((()=>{let e,t,n;return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Fn([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Fn([["className",Xt(" ",["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",Hn.Children.toArray(Array.from(t))])]))),u],["children",Hn.Children.toArray(Array.from(e))])]))))})))):Ur(Gr(vl("Enter your TFN")),Or((()=>{let e;return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-1"])],(e=Lr(Or((()=>{let e,t;return Ur(Gr(p("div",mt(Fn([["className",Xt(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",mt(Fn([["className",Xt(" ",Lr(Or((()=>Ur(Gr("block"),Or((()=>Ur(Gr("w-full"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("text-base"),Or((()=>Ur(Gr("focus:z-20"),Or((()=>Ur(Gr("relative"),Or((()=>Ur(Gr("sm:text-sm"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("border-gray-300"),Or((()=>Ur(Gr("focus:ring-primary-focus"),Or((()=>Ur(Gr("focus:border-primary-focus"),Or((()=>Ur(Gr("block"),Or((()=>Ur(Gr("w-full"),Or((()=>Ur(null==a.TruncatedTfn?Gr("rounded-md"):Gr("rounded-none rounded-l-md"),Or((()=>Hl(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Br()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new Dl(1,nn(Ls,e.target.value)))}],(t=Vl(a),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new Dl(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Hn.Children.toArray(Array.from(e))])])))),Or((()=>Hl(a)?Gr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Br())))}))),["children",Hn.Children.toArray(Array.from(e))])]))))})))):Gr(null)),Or((()=>{let e;return Gr((e=Lr(Or((()=>{const e=a.CurrentAlert;return Gr(null==e?null:p(io,{alert:e,hideAlert:()=>{s(new Dl(5))}}))}))),p("div",{children:Hn.Children.toArray(Array.from(e))})))})))}))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))}let jl="undefined"!=typeof window?ne:te;function zl(e){let t=re(e);return jl((()=>{t.current=e}),[e]),t}function Wl(e,t){let[n,r]=Q(e),o=zl(e);return jl((()=>r(o.current)),[o,r,...t]),n}function Yl(){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 Kl(){let[e]=Q(Yl);return te((()=>()=>e.dispose()),[e]),e}let ql=function(e){let t=zl(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Zl={serverHandoffComplete:!1};var Jl;let Xl=0;function Ql(){return++Xl}let ec=null!=(Jl=ze.useId)?Jl:function(){let e=function(){let[e,t]=Q(Zl.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Zl.serverHandoffComplete&&(Zl.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?Ql:null);return jl((()=>{null===t&&n(Ql())}),[t]),null!=t?""+t:void 0};function tc(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,tc),r}function nc(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 rc=["[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 oc=(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))(oc||{}),ic=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ic||{}),ac=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ac||{}),sc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(sc||{});function uc(e,t,n){let r=zl(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function lc(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 cc(e,t){let[n,r]=Q((()=>lc(e)));return jl((()=>{r(lc(e))}),[e.type,e.as]),jl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let fc=Symbol();function dc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=ql((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[fc])))?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 pc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(pc||{}),hc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(hc||{});function mc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=wc(t,e);if(i)return gc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return gc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return tc(e?0:1,{0:()=>null,1:()=>gc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return gc(s,n,r,a)}function gc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=vc(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(o===m&&Object.keys(bc(s)).length>0){if(!He(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(s).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({},wc(l.props,bc(vc(s,["ref"]))),c,u))}return p(o,Object.assign({},vc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function wc(...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 yc(e){var t;return Object.assign(we(e),{displayName:null!=(t=e.displayName)?t:e.name})}function bc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function vc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function xc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Sc(n,_c(t,r),o);return n}function _c(e,t){return e?e+"["+t+"]":t}function Sc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Sc(e,_c(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,""]):xc(n,t,e)}var Cc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Cc||{});let Tc=yc((function(e,t){let{features:n=1,...r}=e;return mc({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"})})),Ec=F(null);Ec.displayName="OpenClosedContext";var kc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kc||{});function Ic({value:e,children:t}){return ze.createElement(Ec.Provider,{value:e},t)}var Ac=(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))(Ac||{}),Nc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nc||{}),Rc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Rc||{}),Dc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Dc||{}),Mc=(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))(Mc||{});function Oc(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 Pc={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=Oc(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=Oc(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=Oc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Bc=F(null);function Gc(e){let t=ae(Bc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Gc),t}return t}Bc.displayName="ComboboxActionsContext";let Fc=F(null);function Lc(e){let t=ae(Fc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Lc),t}return t}function Vc(e,t){return tc(t.type,Pc,e,t)}Fc.displayName="ComboboxDataContext";let Hc=m,Uc=yc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:a=!1,nullable:s=!1,multiple:u=!1,...l}=e,[c,f]=ee(Vc,{dataRef:{current:null},comboboxState:a?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=re(!1),$=re({static:!1,hold:!1}),p=re({displayValue:void 0}),h=re(null),m=re(null),g=re(null),w=re(null),y=ql(((e,t)=>e===t)),b=ie((e=>tc(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=oe((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:g,optionsRef:w,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.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:s,__demoMode:a})),[r,i,u,s,a,c]);jl((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=re(!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),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=nc(e))?void 0:n.body)&&tc(t,{0:()=>e.matches(rc),1(){let t=e;for(;null!==t;){if(t.matches(rc))return!0;t=t.parentElement}return!1}})}(a,sc.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),uc("click",(e=>o(e,(e=>e.target))),!0),uc("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let x=oe((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=ie((()=>{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=ql((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=ql((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:$c.Specific,id:t})}})),T=ql((()=>{f({type:0}),d.current=!0})),E=ql((()=>{f({type:1}),d.current=!1})),k=ql(((e,t,n)=>(d.current=!1,e===$c.Specific?f({type:2,focus:$c.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=ql(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=ql((e=>tc(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=oe((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:E,openCombobox:T,selectActiveOption:C,selectOption:S})),[]);jl((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),jl(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(Bc.Provider,{value:N},ze.createElement(Fc.Provider,{value:v},ze.createElement(Ic,{value:tc(v.comboboxState,{0:kc.Open,1:kc.Closed})},null!=n&&null!=r&&xc({[n]:r}).map((([e,t])=>ze.createElement(Tc,{features:Cc.Hidden,...bc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),mc({ourProps:R,theirProps:l,slot:x,defaultTag:Hc,name:"Combobox"}))))})),jc=yc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Lc("Combobox.Input"),c=Gc("Combobox.Input"),f=dc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${ec()}`,p=Kl();jl((()=>{d.current.displayValue=a}),[a,d]);let h=ql((e=>{switch(e.key){case Ac.Backspace:case Ac.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 Ac.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 Ac.ArrowDown:return e.preventDefault(),e.stopPropagation(),tc(l.comboboxState,{0:()=>{c.goToOption($c.Next)},1:()=>{c.openCombobox()}});case Ac.ArrowUp:return e.preventDefault(),e.stopPropagation(),tc(l.comboboxState,{0:()=>{c.goToOption($c.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption($c.Last)}))}});case Ac.Home:case Ac.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption($c.First);case Ac.End:case Ac.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption($c.Last);case Ac.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Ac.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=ql((e=>{c.openCombobox(),null==i||i(e)})),g=Wl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),w=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return mc({ourProps:{ref:f,id:$,role:"combobox",type:s,"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":g,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:w,defaultTag:"input",name:"Combobox.Input"})})),zc=yc((function(e,t){var n;let r=Lc("Combobox.Button"),o=Gc("Combobox.Button"),i=dc(r.buttonRef,t),a=`headlessui-combobox-button-${ec()}`,s=Kl(),u=ql((e=>{switch(e.key){case Ac.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ac.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption($c.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Ac.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=ql((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()),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Wl((()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")}),[r.labelRef.current,a]),f=oe((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return mc({ourProps:{ref:i,id:a,type:cc(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:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Wc=yc((function(e,t){let n=Lc("Combobox.Label"),r=`headlessui-combobox-label-${ec()}`;return mc({ourProps:{ref:dc(n.labelRef,t),id:r,onClick:ql((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:oe((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),Yc=pc.RenderStrategy|pc.Static,Kc=yc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Lc("Combobox.Options"),a=dc(i.optionsRef,t),s=`headlessui-combobox-options-${ec()}`,u=ae(Ec),l=null!==u?u===kc.Open:0===i.comboboxState;jl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),jl((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=re(t),i=re(n);te((()=>{o.current=t,i.current=n}),[t,n]),jl((()=>{if(!e||!r)return;let t=nc(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)a(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=Wl((()=>{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]),f=oe((()=>({open:0===i.comboboxState})),[i]);return mc({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:s,ref:a},theirProps:o,slot:f,defaultTag:"ul",features:Yc,visible:l,name:"Combobox.Options"})})),qc=yc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Lc("Combobox.Option"),u=Gc("Combobox.Option"),l=`headlessui-combobox-option-${ec()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=zl({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=dc(t,d),h=ql((()=>u.selectOption(l)));jl((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);jl((()=>{if(!s.__demoMode)return;let e=Yl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),jl((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=Yl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let g=ql((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),w=ql((()=>{if(o)return u.goToOption($c.Nothing);u.goToOption($c.Specific,l)})),y=ql((()=>{o||c||u.goToOption($c.Specific,l,0)})),b=ql((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption($c.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return mc({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:g,onFocus:w,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Zc=Object.assign(Uc,{Input:jc,Button:zc,Label:Wc,Options:Kc,Option:qc});class Jc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Xc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Qc(e){const t=Us(e,1);return p(Zc.Input,t)}class ef extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function tf(e,t){const n=Us(e,1);return p(Zc.Options,n,...t)}class nf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function rf(e){const t=Us(e,1);return p(Zc.Button,t)}class of extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class af extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class sf extends Ft{constructor(e){super(),this.ResidencyStatus=e}}function uf(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)?pl(e):hl(e)}function lf(e){return new sf(uf(e.ResidencyStatus.Value))}function cf(e,t,n){let r,o;const i=ar(""),a=e=>{let t;return dn($n((e=>e.Name),(t=ru(e),1===t.tag?void 0:t.fields[0])),"")};let s;const u=ln(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:s=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Ot(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Wo(e.comparer,Mo(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=Us(e,1);return p(Zc,t)}(Fn([new Jc(0,a(e)),new Jc(1,n),new Jc(2,[p("div",mt(Fn([["className","relative mt-1"],(r=[p("div",mt(Fn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Qc(Fn([new Xc(0,a(e)),new Xc(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 Xc(1,(e=>{i[1](e.target.value)})),new Xc(3,"off")])),rf(Fn([new nf(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new nf(1,[qn])]))],["children",Hn.Children.toArray(Array.from(o))])]))),tf(An(new ef(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")),Lr(Or((()=>Ur(0===qo(s)?Gr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Hn.Children.toArray(["Nothing found"])})):Br(),Or((()=>Xr((e=>{const t=e,n=t[0];return Gr(function(e){const t=Us(e,1);return p(Zc.Option,t)}(Fn([new of(0,n),new of(1,n),new of(2,"relative cursor-default select-none"),new of(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[p("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),s))))))))],["children",Hn.Children.toArray(Array.from(r))])])))])]))}function ff(e){let t;const n=fl((r=e.InitialValue,[lf(new sf(hl(r))),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=ru(dn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],lf(new sf(hl(null==t?iu:au(t))))}return lf(new sf(hl(pn(gl,e.fields[0].Value))))}(t);return e(r.ResidencyStatus),[r,Qu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(An((t=Lr(Or((()=>Ur(Gr(vl("Are you an Australian resident for tax purposes or a working holiday maker?")),Or((()=>{let e;return Ur(Gr(p(Rl,(e=Vn((e=>[wl(e[0]),e[1],e[2]]),Fn([[new ou(0),"Australian resident for tax purposes",void 0],[new ou(1),"Foreign resident",void 0],[new ou(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:$n(wl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new af(0,e))},ValueLabelPairs:e}))),Or((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(e=[vl("Your home country where your visa was issued"),cf(dn($n((e=>e.Code),r.HomeCountry),""),eu,(e=>{i(new af(1,pl(e)))}))],["children",Hn.Children.toArray(Array.from(e))])]))));case 1:return Gr(null)}})))})))))),["children",Hn.Children.toArray(Array.from(t))]))))}class df extends Gt{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 $f extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=a,this.EmploymentBasisRadioButtonGroup=s}}function pf(e){switch(e.tag){case 1:case 2:case 4:default:return pl(e);case 3:return $l()}}class hf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function mf(){const e=tn(document.URL,["/"],null,0),t=wn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=wn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[ln(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 br(0,new hf(2,r[0]));case 1:return new br(0,new hf(0));case 2:return new br(0,new hf(1));case 3:return new br(1,"Could not determine the embed mode")}}class gf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function wf(){let e;const t=mf();var n;0===t.tag&&(0===t.fields[0].tag?Yr((e=>{window.parent.location.href=e}),fn((n=new gf(0),ln(sessionStorage.getItem(function(e){return Bt(e)}(n)))))):1===t.fields[0].tag?Yr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),fn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function yf(e,t){let n;switch(e.tag){case 1:return[new $f(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 $f(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?Qu():1===n.tag?el(new df(3,new Sl(1,new _l(1),!1))):2===n.tag?el(new df(3,new Sl(1,new _l(1),!0))):el(new df(3,new Sl(1,new _l(0),!1))))]}case 3:return[new $f(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,El(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 4:return[new $f(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Qu()];case 5:{const n=pn(bl,e.fields[0].Value);return[new $f(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new dl(n,{Valid:null!=n})),Qu()]}case 6:{const n=e.fields[0],r=new $f(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=el(new df(7,new to(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=ln(document.getElementById("external-loading-page-container"));Yr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),fn(n))}();const i=el(new df(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=$n((e=>function(e,t){return ao(0,(()=>{let n,r;if(0===t.tag){const r=t.fields[0];return xr((t=>xr((n=>{const o=n,i=1===o.tag||2===o.tag?new _l(1):r.IsTaxFreeThresholdClaimed?new _l(0):new _l(1);return xr((n=>{const a=n;return so(0,wu(r.EmploymentBasis),(n=>new $f(e.PreExistingTfnDec,e.CurrentAlert,pl(t),pl($n(fu,r.PreviousSurname)),uf(o),Tl(i),Nn(a)?pl(void 0):pl(a),pf(n))))}),xu(r.HasDebtSupport))}),gu(r.ResidencyStatusV2))),(n=r.TfnInformation,1===n.tag?vr((e=>new Ol(1,new Ml(1,e))),function(e){switch(e){case 0:return new br(0,new lu(0));case 1:return new br(0,new lu(1));case 2:return new br(0,new lu(2));default:return new br(1,"Invalid ExemptionReason")}}(n.fields[0])):new br(0,new Ol(0,n.fields[0]))))}{const n=t.fields[0];return xr((t=>so(0,wu(n.EmploymentBasis),(n=>new $f(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,uf(t),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,pf(n))))),(r=$n(gu,n.ResidencyStatusV2),null!=r?vr((e=>e),r):new br(0,void 0)))}}))()}(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 $f(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 8:return[new $f(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 9:return[new $f(new wr(2,new br(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=mf();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"},"*",sn(kn()))}(),[t,Qu()];default:return[new $f(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()]}}class bf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class vf extends Ft{constructor(e,t){super(),this.Text=e,this.Meta=t}}class xf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function _f(e){let t;const n=fl(function(e,t){const n=dn(e,"");return[new vf(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 vf(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new vf(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new dl(o.Text,{Valid:o.Meta.Valid})),[o,Qu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Fn([["className",Xt(" ",Ln(e.AdditionalWrapperClasses,An("z-10")))],(t=Lr(Or((()=>Ur(Gr(p("input",mt(Lr(Or((()=>Ur(Gr(["className",Xt(" ",Ln(e.AdditionalInputClasses,Ln(Fn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),Lr(Or((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Br()))))))]),Or((()=>Ur(Gr(["type","text"]),Or((()=>Ur(Gr(["onChange",t=>{const n=t.target.value;o(new bf(0,1===e.InputType.tag?n:nn(Ls,n)))}]),Or((()=>{let t;return Ur(Gr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Or((()=>Ur(Gr(["onBlur",e=>{o(new bf(1))}]),Or((()=>Ur(ct(e.InputType,new xf(0))?Gr(["inputMode","numeric"]):Br(),Or((()=>Gr(["data-testid",e.TestId]))))))))))}))))))))))))))),Or((()=>!r.Meta.Valid&&r.Meta.Touched?Gr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Br())))))),["children",Hn.Children.toArray(Array.from(t))])])))}class Sf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Cf extends Ft{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Tf(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Ef(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Cf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!1})):1===t.tag?new Cf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!0})):new Cf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:dn($n((e=>Tf(e.fields[0])),e.Data.Value),!1)}))}function kf(e){let t;const n=fl((r=e.InitialValue,[Ef(new Cf(Tl(new _l(null==r?1:0)),new dl(r,{Valid:!1}))),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Ef(1===e.tag?(n=e.fields[0],new Cf(t.YesNoButtonGroup,new dl($n((e=>new cu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new dl(void 0,t.Data.Meta):t.Data,new Cf(El(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 p("div",mt(Fn([["className",Xt(" ",Jn)],(t=Lr(Or((()=>Ur(Gr(vl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Or((()=>Ur(Gr(p(Il,{Disable:void 0,Dispatch:e=>{i(new Sf(0,e))},State:o.YesNoButtonGroup})),Or((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(e=[vl("Enter your previous surname"),p(_f,{AdditionalInputClasses:Fn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:An("mt-1"),InitialValue:$n(du,o.Data.Value),InputType:new xf(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Sf(1,e))},TestId:"surname-input",Validator:Tf})],["children",Hn.Children.toArray(Array.from(e))])]))));case 1:return Gr(null)}}))))))))),["children",Hn.Children.toArray(Array.from(t))])])))}const If=Fn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),Af=Fn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Nf=Fn(["text-sm","text-primary-base","leading-3","font-medium"]),Rf=Fn(["ml-6","flex","items-center"]),Df=Fn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function Mf(e){let t,n,r,o;const i=e.content,a=e.title,s=ar(!0),u=s[0];return p("div",mt(Fn([["className",Xt(" ",If)],(t=[(n=An(p("button",mt(Fn([["type","button"],["className",Xt(" ",Af)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Xt(" ",Nf),children:a}),p("span",mt(Fn([["className",Xt(" ",Rf)],(o=Lr(Or((()=>Gr(u?Yn:Wn)))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))),p("h3",{children:Hn.Children.toArray(Array.from(n))})),p("div",{className:Xt(" ",Ln(Df,Lr(Or((()=>u?Gr("hidden"):Br()))))),children:Hn.Children.toArray([i])})],["children",Hn.Children.toArray(Array.from(t))])])))}class Of extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Pf extends Ft{constructor(e){super(),this.Selected=e}}function Bf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Sn(o))return;if(e(Tn(o)))return r;t=r+1,n=En(o)}})(0,t)}((t=>e===t),t.Selected)}function Gf(e,t,n){const r=function(e,t){const n=e.fields[0];return Bf(n,t)?new Pf(function(e,t){const n=xn(),r=On(((t,n)=>{if(e(n)){const e=new bn(n,void 0);return t.tail=e,e}return t}),n,t),o=xn();return r.tail=o,En(n)}((e=>n!==e),t.Selected)):new Pf(Ln(An(n),t.Selected))}(t,n);return e(r.Selected),[r,Qu()]}function Ff(e){let t;const n=fl((r=e.InitialValue,[new Pf(r),Qu()]),((t,n)=>Gf(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Fn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Lr(Or((()=>Xr((e=>{let t,r,o;const i=e[0];return Gr(p("div",mt(Fn([["className",Xt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Of(0,i))}],(t=[p("div",mt(Fn([["className",Xt(" ",["flex","items-center","h-5"])],(r=[p("input",{className:Xt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Bf(i,n[0])})],["children",Hn.Children.toArray(Array.from(r))])]))),p("div",mt(Fn([["className",Xt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Xt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Hn.Children.toArray(Array.from(t))])])))}class Lf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Vf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Hf extends Ft{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Uf(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Hf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Hf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!0}),e.DisableReason):new Hf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Cn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function jf(e){let t;const n=fl(function(e,t,n){let r;const o=e.Value;let i,a;switch(i=null==o||Nn(o)?0:1,i){case 0:r=new _l(1);break;case 1:r=new _l(0)}const s=[t,n];let u;switch(u=null!=s[0]?null!=s[1]?1===s[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}}(s[0])?3:1:2===s[1].tag?2:3:3:null!=s[1]?1===s[1].tag?0:2===s[1].tag?2:3:3,u){case 0:case 1:a=new Vf(0);break;case 2:a=new Vf(1);break;case 3:a=void 0}const l=null==a?Qu():el(new Lf(0,new Sl(1,new _l(1),!0)));return[Uf(new Hf(Tl(r),e,a)),l]}(e.InitialValue,e.TfnInfo,e.ResidencyStatus),((t,n)=>function(e,t,n){const r=function(e,t){let n,r;return Uf(1===e.tag?new Hf(t.YesNoButtonGroup,pl(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?pl(void 0):t.Data,new Hf(El(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 p("div",mt(Fn([["className",Xt(" ",Jn)],(t=Lr(Or((()=>Ur(Gr(vl("Do you have any outstanding study and training support loans?")),Or((()=>Ur(Gr(p(Il,{Disable:$n((e=>new _l(0)),r.DisableReason),Dispatch:e=>{o(new Lf(0,e))},State:r.YesNoButtonGroup})),Or((()=>{let t;return Ur((t=r.DisableReason,null!=t?1===t.tag?Gr(xl("Working holiday makers are ineligible for study and training support loans.")):Gr(xl("You must provide your TFN to declare any outstanding study and training support loans.")):Gr(null)),Or((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let a;switch(a=null!=i&&0===i.tag?0:1,a){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(t=[p(Ff,(n=Vn((e=>[Bt(e[0]),e[1]]),Fn([[new tu(0),"Higher Education Loan Program (HELP)"],[new tu(1),"VET Student Loan (VSL)"],[new tu(2),"Financial Supplement (FS)"],[new tu(3),"Student Start-up Loan (SSL)"],[new tu(4),"Trade Support Loan (TSL)"]])),{InitialValue:dn($n((e=>Vn(Bt,e)),e.InitialValue.Value),kn()),OnUpdate:e=>{o(new Lf(1,function(e,t){const n=xn(),r=On(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new bn(un(r),void 0);return t.tail=e,e}}),n,t),o=xn();return r.tail=o,En(n)}(yl,e)))},ValueLabelPairs:n}))],["children",Hn.Children.toArray(Array.from(t))])]))));case 1:return Gr(null)}})))}))))))))),["children",Hn.Children.toArray(Array.from(t))])])))}function zf(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 wr(1))}function Wf(){return p("hr",{className:Xt(" ",["my-8"])})}const Yf=p("div",mt(Fn([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("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."]}),p("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."]}),p("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",Hn.Children.toArray(Array.from(e))]})()]))),Kf=p("div",mt(Fn([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("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."]}),p("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."]}),p("p",{children:["Foreign residents and working holiday makers are ineligible to claim the threshold."]})];return["children",Hn.Children.toArray(Array.from(e))]})()])));function qf(e){const t=e.backendUrl,n=e.accessToken,r=fl([new $f(new wr(0),void 0,$l(),pl(void 0),pl(new ou(0)),Tl(new _l(0)),pl(void 0),pl(new su(0))),Qu()],yf),o=r[0],i=r[1];rr(yr((()=>Zu(n,t)),(e=>{i(new df(6,e))})),[]);const a=ar(new wr(0)),s=a[0],u=yr((()=>function(e,t,n,r){return function(e,t){return fr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return fr.Return(n)}))}((e=>{r(new to(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return fr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return fr.Return(n)}))}((e=>{r(new to(0,"Your tax declaration has been saved."))}),Ju(e,t,n)))}(o,n,t,(e=>{i(new df(7,e))}))),(e=>{let t,n;a[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(gr(fr.Delay((()=>fr.Bind(mr(400),(()=>(wf(),fr.Zero())))))),i(new df(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Lr(Or((()=>{let e,t;return Ur((e=o.CurrentAlert,null==e?Gr(null):(t=e,Gr(p(io,{alert:t,hideAlert:()=>{i(new df(8))}})))),Or((()=>Ur(Gr(p("h3",{className:Xt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Or((()=>Ur(Gr(p(Ul,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new df(0,e))}})),Or((()=>Ur(Gr(Wf()),Or((()=>Ur(Gr(p(kf,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new df(1,e))}})),Or((()=>Ur(Gr(Wf()),Or((()=>Ur(Gr(p(ff,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new df(2,e))}})),Or((()=>Ur(Gr(p(Mf,{title:"About residency",content:Yf})),Or((()=>Ur(Gr(Wf()),Or((()=>{let e,t;return Ur(Gr(p("div",mt(Fn([["className",Xt(" ",Jn)],(e=[vl("Would you like to claim the tax-free threshold from this employer?"),p(Il,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new _l(0)),Dispatch:e=>{i(new df(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Hn.Children.toArray(Array.from(e))])])))),Or((()=>{let e;return Ur((e=o.ResidencyStatus.Value,null!=e?2===e.tag?Gr(xl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?Gr(xl("Foreign residents are ineligible to claim the tax-free threshold.")):Gr(null):Gr(null)),Or((()=>Ur(Gr(p(Mf,{title:"About the tax-free threshold",content:Kf})),Or((()=>Ur(Gr(Wf()),Or((()=>Ur(Gr(p(jf,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new df(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),Or((()=>Ur(Gr(Wf()),Or((()=>Ur(Gr(vl("On what basis are you paid?")),Or((()=>Ur(Gr(p("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),Or((()=>{let e;return Ur(Gr(p(Rl,(e=Vn((e=>[Bt(e[0]),e[1],e[2]]),Fn([[new su(0),"Full-time",void 0],[new su(1),"Part-time",void 0],[new su(2),"Labour Hire",void 0],[new su(4),"Casual",void 0]])),{InitialValue:$n(Bt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new df(5,e))},ValueLabelPairs:e}))),Or((()=>Ur(Gr(Wf()),Or((()=>{let e;return Gr(p("div",mt(Fn([["className",Xt(" ",["text-center"])],(e=[p("button",{className:Xt(" ",["w-full","max-w-320","px-10","py-2","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:!zf(o,s),onClick:e=>{zf(o,s)&&u()},children:"Continue","data-testid":"continue-button"})],["children",Hn.Children.toArray(Array.from(e))])]))))}))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return p("form",{children:Hn.Children.toArray(Array.from(e))})}}}function Zf(){return(Zf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jf(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return G(t,n)}function Xf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Jf,Zf({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Qf(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),l=s[i].slot;l?o[l]=p(nd,{name:l},u):r[i]=u}var c=n?p(nd,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:P)(this._vdom,this._root)}function Qf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ed(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Qf(e)]=n,this._vdom=G(this._vdom,r),P(this._vdom,this._root)}}function td(){P(this._vdom=null,this._root)}function nd(e,t){var n=this;return p("slot",Zf({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function rd(e){let t;return p("div",mt(Fn([["className",Xt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[Un]}),p(qf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Hn.Children.toArray(Array.from(t))])])))}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Xf,o.prototype.attributeChangedCallback=ed,o.prototype.disconnectedCallback=td,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("tax-component",o)}((e=>p(rd,e)),0,void 0,{shadow:!0})},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,n(933),n(118)})();
|
|
1
|
+
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>w});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=a()(o()),p=u()(l),h=u()(c),m=u()(f),g=u()(d);$.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("+g+");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 w=$},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 a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[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]}},933:(e,t,n)=>{var r,o,i,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return h(e,s,o,i,null)}function h(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(e){return e.children}function g(e,t){this.props=e,this.context=t}function w(e,t){if(null==t)return e.__?w(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?w(e):null}function y(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 y(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!v.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,A(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?w(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function x(e,t,n,r,o,i,a,s,u,f){var d,$,p,g,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(g=n.__k[d]=null==(g=t[d])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?h(null,g,null,null,g):Array.isArray(g)?h(m,{children:g},null,null,null):g.__b>0?h(g.type,g.props,g.key,null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(p=x[d])||p&&g.key==p.key&&g.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&g.key==p.key&&g.type===p.type){x[$]=void 0;break}p=null}A(e,g,p=p||l,o,i,a,s,u,f),y=g.__e,($=g.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,g),v.push($,g.__c||y,g)),null!=y?(null==b&&(b=y),"function"==typeof g.type&&g.__k===p.__k?g.__d=u=_(g,u,e):u=C(e,g,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=w(p))}for(n.__e=b,d=S;d--;)null!=x[d]&&("function"==typeof n.type&&null!=x[d].__e&&x[d].__e==n.__d&&(n.__d=w(r,d+1)),M(x[d],x[d]));if(v)for(d=0;d<v.length;d++)D(v[d],v[++d],v[++d])}function _(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?_(r,t,n):C(n,r,r,o,r.__e,t));return t}function S(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){S(e,t)})):t.push(e)),t}function C(e,t,n,r,o,i){var a,s,u;if(void 0!==t.__d)a=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),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function T(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.test(t)?n:n+"px"}function E(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||T(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T(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?I:k,i):e.removeEventListener(t,i?I:k,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 k(e){this.l[e.type+!1](o.event?o.event(e):e)}function I(e){this.l[e.type+!0](o.event?o.event(e):e)}function A(e,t,n,r,i,a,s,u,l){var c,f,$,p,h,w,y,b,v,_,S,C,T,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,a=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof E){if(b=t.props,v=(c=E.contextType)&&r[c.__c],_=c?v?v.props.value:c.__:r,n.__c?y=(f=t.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?t.__c=f=new E(b,_):(t.__c=f=new g(b,_),f.constructor=E,f.render=O),v&&v.sub(f),f.props=b,f.state||(f.state={}),f.context=_,f.__n=r,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,E.getDerivedStateFromProps(b,f.__s))),p=f.props,h=f.state,$)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,_),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,_)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,_),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,h,w)}))}if(f.context=_,f.props=b,f.__v=t,f.__P=e,S=o.__r,C=0,"prototype"in E&&E.prototype.render)f.state=f.__s,f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(w=f.getSnapshotBeforeUpdate(p,h)),T=null!=c&&c.type===m&&null==c.key?c.props.children:c,x(e,Array.isArray(T)?T:[T],t,n,r,i,a,s,u,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,f,d,p=n.props,h=t.props,m=t.type,g=0;if("svg"===m&&(i=!0),null!=a)for(;g<a.length;g++)if((c=a[g])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[g]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,u=!1}if(null===m)p===h||u&&e.data===h||(e.data=h);else{if(a=a&&r.call(e.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},g=0;g<e.attributes.length;g++)p[e.attributes[g].name]=e.attributes[g].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||E(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]||E(e,i,t[i],n[i],r)}(e,h,p,i,u),d)t.__k=[];else if(g=t.props.children,x(e,Array.isArray(g)?g:[g],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&w(n,0),u),null!=a)for(g=a.length;g--;)null!=a[g]&&$(a[g]);u||("value"in h&&void 0!==(g=h.value)&&(g!==e.value||"progress"===m&&!g||"option"===m&&g!==p.value)&&E(e,"value",g,p.value,!1),"checked"in h&&void 0!==(g=h.checked)&&g!==e.checked&&E(e,"checked",g,p.checked,!1))}return e}function D(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function M(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||D(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&M(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function O(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=p(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function B(e,t){P(e,t,B)}function G(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),h(e.type,s,o||e.key,i||e.ref,null)}function F(e,t){var n={__c:t="__cC"+u++,__: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(b)},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}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,g.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},g.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},g.prototype.render=m,a=[],v.__r=0,u=0;var L,V,H,U,j=0,z=[],W=[],Y=o.__b,K=o.__r,q=o.diffed,Z=o.__c,J=o.unmount;function X(e,t){o.__h&&o.__h(V,e,j||t),j=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function Q(e){return j=1,ee(de,e)}function ee(e,t,n){var r=X(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):de(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=V),r.__}function te(e,t){var n=X(L++,3);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ne(e,t){var n=X(L++,4);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function re(e){return j=5,oe((function(){return{current:e}}),[])}function oe(e,t){var n=X(L++,7);return fe(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function ie(e,t){return j=8,oe((function(){return e}),t)}function ae(e){var t=V.context[e.__c],n=X(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function se(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){V=null,Y&&Y(e)},o.__r=function(e){K&&K(e),L=0;var t=(V=e.__c).__H;t&&(H===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__V=W,e.u=void 0}))):(t.__h.forEach(le),t.__h.forEach(ce),t.__h=[])),H=V},o.diffed=function(e){q&&q(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ue&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))})(se)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==W&&(e.__=e.__V),e.u=void 0,e.__V=W}))),H=V=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function le(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ce(e){var t=V;e.__c=e.__(),V=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function de(e,t){return"function"==typeof t?t(e):t}function $e(e,t){for(var n in t)e[n]=t[n];return e}function pe(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 he(e){this.props=e}(he.prototype=new g).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var me=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function we(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=ge,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ye=function(e,t){return null==e?null:S(S(e).map(t))},be={map:ye,forEach:ye,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},ve=o.__e;o.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ve(e,t,n,r)};var xe=o.unmount;function _e(){this.__u=0,this.t=null,this.__b=null}function Se(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ce(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xe&&xe(e)},(_e.prototype=new g).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Se(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=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(a,a)},_e.prototype.componentWillUnmount=function(){this.t=[]},_e.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=$e({},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&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Te=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 Ee(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){P(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)}}),P(p(Ee,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ce.prototype=new g).__a=function(e){var t=this,n=Se(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Te(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(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},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Te(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?: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]/,Ne="undefined"!=typeof document,Re=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};g.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(g.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var De=o.event;function Me(){}function Oe(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return De&&(e=De(e)),e.persist=Me,e.isPropagationStopped=Oe,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Be,Ge={configurable:!0,get:function(){return this.class}},Fe=o.vnode;o.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 a=n[i];Ne&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Re(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&&Ae.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(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=Ie,Fe&&Fe(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Be=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Be.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?G.apply(null,arguments):e}function je(e){e()}const ze={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useInsertionEffect:ne,useTransition:function(){return[!1,je]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Q(t),r=n[0],o=n[1];return te((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:je,useRef:re,useImperativeHandle:function(e,t,n){j=6,ne((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:oe,useCallback:ie,useContext:ae,useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:be,render:function(e,t,n){return null==t.__k&&(t.textContent=""),P(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return B(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,t){var n=p(ke,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:F,createFactory:function(e){return p.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:m,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:g,PureComponent:he,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:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:we,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:_e,SuspenseList:Ce,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 p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve};function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function Ke(e){Ye(e)&&e.Dispose()}function qe(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 at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function st(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]=st(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=>st(e)));return at(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===ft(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 ft(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 dt(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?ft(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 a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=pt(e[a],t[a]),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 gt=Symbol("curried");function wt(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[gt]=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,n){if(null!=t){if(gt in t){t=t[gt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function vt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function xt(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 _t(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 St(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," ")+vt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return _t(i,t,!0);switch(t){case"D":case"d":return xt(i,"first");case"T":case"t":return xt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+vt(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 _t(e,t,n);switch(t){case"D":case"d":return n?xt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?xt(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?vt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Ct(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Tt(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 Et(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Tt(e),o=null!=r?t&&"Z"===r?1:2:0;return Ct(n.getTime(),o)}(e),!0}catch(e){return!1}}const kt=Symbol("numeric");function It(e){return"number"==typeof e||(null==e?void 0:e[kt])}function At(e,t){return"number"==typeof e?e*t:e[kt]().multiply(t)}function Nt(e,t){return"number"==typeof e?e.toFixed(t):e[kt]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[kt]().toPrecision(t)}function Dt(e,t){return"number"==typeof e?e.toExponential(t):e[kt]().toExponential(t)}function Mt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[kt]().toHex()}function Ot(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(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 Bt(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+=Bt(r);else{if(100===t){n+="; ...";break}n+="; "+Bt(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+" = "+Bt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Gt{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=Bt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Bt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>st(e)));return e.splice(0,0,it(this.tag)),at(e)}Equals(e){return this===e||!!qe(this,e)&&this.tag===e.tag&<(this.fields,e.fields)}CompareTo(e){return this===e?0:qe(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+" = "+Bt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>st(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(qe(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(qe(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 Lt{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 Vt{constructor(e){this.message=e}}function Ht(e){return function(e){return e instanceof Vt||e instanceof Error}(e)?e:new Error(String(e))}const Ut=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function zt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Wt(e){return{input:e,cont:(t=e,e=>{Ut.lastIndex=0;const n=[],r=[];let o=0,i=Ut.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ut.lastIndex,Ut.lastIndex-=1,i=Ut.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Jt(e,n,r))})};var t}function Yt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Kt(e){return Yt((e=>e),e)}function qt(e){return Yt((e=>{throw new Error(e)}),e)}function Zt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",It(e))switch("x"!==o.toLowerCase()&&(zt(e,0)?(e=At(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Nt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Dt(e,r):Dt(e);break;case"x":e=Mt(e);break;case"X":e=Mt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?St(e):Bt(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,a=o||!r?" ":"0";e="0"===a?i+(e=Qt(e,n-i.length,a,o)):Qt(i+e,n,a,o)}return e}function Jt(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=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}a+=s[0],a+=Zt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Jt(e,s,u,a,o)}}function Xt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Qt(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 en(e,t,n){return Qt(e,t,n)}function tn(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(Ot),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&a.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&&a.length+1===n?(a.push(i?e.substring(l).trim():e.substring(l)),u=!1):a.push(r)),l=s.lastIndex}}while(u);return a}function nn(e,t){return t.split("").filter((t=>e(t))).join("")}var rn=n(118);const on="Collection was empty.";class an{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return st(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof an?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof an?e.value:e)}}function sn(e){return null==e||e instanceof an?new an(e):e}function un(e){if(null==e)throw new Error("Option has no value");return e instanceof an?e.value:e}function ln(e){return null==e?void 0:e}function cn(e){return null==e?null:un(e)}function fn(e){return null==e?[]:[un(e)]}function dn(e,t){return null!=e?un(e):t}function $n(e,t){return null!=t?sn(e(un(t))):void 0}function pn(e,t){return null!=t?e(un(t)):void 0}function hn(e,t){return"function"==typeof e?new e(t):new Array(t)}function mn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function gn(e,t,n){const r=0|t.length,o=hn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function wn(e,t,n){return function(e,t,n,r,o){const i=0|dn(n,0),a=0|dn($n((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function yn(e,t,n){return n.reduce(e,t)}class bn extends Ft{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Xt("; ",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],a=o[1];if(ct(n.head,r.head)){e=i,t=a;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,a=i.tail;if(null==a)return 0|o;{const s=a;if(r>18)return 0|o;e=r+1,t=(o<<1)+st(i.head)+631*r,n=s}}})(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],a=o[1],s=0|pt(n.head,r.head);if(0===s){e=i,t=a;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new vn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class vn{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 xn(){return new bn(null,void 0)}function _n(e,t){return new bn(e,t)}function Sn(e){return null==e.tail}function Cn(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 Tn(e){if(null!=e.tail)return e.head;throw new Error(on+"\\nParameter name: list")}function En(e){const t=e.tail;if(null!=t)return t;throw new Error(on+"\\nParameter name: list")}function kn(){return xn()}function In(e,t){return _n(e,t)}function An(e){return _n(e,xn())}function Nn(e){return Sn(e)}function Rn(e){return Tn(e)}function Dn(e){return En(e)}function Mn(e){const t=0|Cn(e),n=mn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Sn(o))break;n[r]=Tn(o),e=r+1,t=En(o)}})(0,e),n}function On(e,t,n){let r=t,o=n;for(;!Sn(o);)r=e(r,Tn(o)),o=En(o);return r}function Pn(e){return On(((e,t)=>_n(t,e)),xn(),e)}function Bn(e,t){On(((t,n)=>{e(n)}),void 0,t)}function Gn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=_n(e[t],n);return n}function Fn(e){return Gn(e,xn())}function Ln(e,t){return On(((e,t)=>_n(t,e)),t,Pn(e))}function Vn(e,t){const n=xn(),r=On(((t,n)=>{const r=new bn(e(n),void 0);return t.tail=r,r}),n,t),o=xn();return r.tail=o,En(n)}const Hn=ze,Un=Bt(rn.Z),jn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),zn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Hn.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Hn.Children.toArray(Array.from(e))]})()]))),Kn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),qn=p("svg",mt(Fn([["className",Xt(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Zn=p("svg",mt(Fn([["className",Xt(" ",["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=An(p("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",Hn.Children.toArray(Array.from(e))]})()]))),Jn=Fn(["flex","flex-col","align-center"]),Xn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)},Qn=e=>{ne((()=>{const t=e();return()=>{t.Dispose()}}))};function er(e){return{Dispose(){e()}}}function tr(e){return Hn.useState(e)}function nr(e,t){Xn(e,t)}function rr(e,t){Xn((t=>(e(),er((()=>{})))),t)}function or(e){return Hn.useRef(e)}function ir(e){const t=or(e),n=function(e,n){const r=dn([],[]);return Hn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},Qn((e=>(r(),er((()=>{}))))),n}function ar(e){return Hn.useState(e)}class sr{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 ur extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ur.prototype)}}class lr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>lr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function cr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ur);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 fr=new class{Bind(e,t){return function(e,t){return cr((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 cr((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 cr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return cr((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 cr((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 cr((e=>e.onSuccess(void 0)))}};function dr(e){}function $r(e){const t=new sr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function pr(e){e.cancel()}const hr=new sr;function mr(e){return cr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new ur)}))}))}function gr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new lr;e({onSuccess:t||dr,onError:n||dr,onCancel:r||dr,cancelToken:o||hr,trampoline:i})}(e,t)}(e,t)}class wr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function yr(e,t){const n=or($r());return nr((()=>er((()=>{pr(n.current)}))),[]),ir((r=>{var o;null!=(o=n.current)&&o.isCancelled||gr(fr.Delay((()=>fr.TryWith(fr.Delay((()=>(t(new wr(1)),fr.Bind(e(r),(e=>(t(new wr(2,e)),fr.Zero())))))),(e=>(t(new wr(3,e)),fr.Zero()))))),n.current)}))}class br extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function vr(e,t){return 0===t.tag?new br(0,e(t.fields[0])):new br(1,t.fields[0])}function xr(e,t){return 0===t.tag?e(t.fields[0]):new br(1,t.fields[0])}function _r(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const Sr="Enumeration already finished.",Cr="Enumeration has not started. Call MoveNext.",Tr="The input sequence has an insufficient number of elements.";function Er(){throw new Error(Cr)}function kr(){throw new Error(Sr)}class Ir{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+=Bt(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 Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ar{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 Nr(e,t,n){return new Ar(e,t,n)}function Rr(e,t,n){let r,o=!1,i=sn(e());const a=()=>{if(null!=i){const e=un(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Nr((()=>(o||Er(),null!=r?un(r):kr())),(()=>{if(o||(o=!0),null!=i){const e=un(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Dr(e){return function(e){return new Ir(e)}(e)}function Mr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Or(e){return Dr((()=>Je(e())))}function Pr(e){return Dr((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{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 Nr((()=>(o?i&&kr():Er(),null!=r?un(r):kr())),(()=>{let s;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=sn(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"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(s)):(a(),o=!1)}else t=Je(e)}return un(o)}}),(()=>{i||a()}))}(e)))}function Br(){return Or((()=>new Array(0)))}function Gr(e){return Or((()=>function(e,t){const n=hn(void 0,1);return n[0]=e,n}(e)))}function Fr(e){return e instanceof bn?Mn(e):Array.from(e)}function Lr(e){return We(e)?Fn(e):e instanceof bn?e:function(e){let t,n;if(We(e))return Fn(e);if(e instanceof bn)return e;{const r=xn();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 bn(e,void 0),t.tail=n,o=n}}finally{Ke(i)}const a=o,s=xn();return a.tail=s,En(r)}}(e)}function Vr(e,t,n){return Dr((()=>Rr(e,t,n)))}function Hr(e,t,n){return Dr((()=>{let r=-1;return Rr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Ur(e,t){return Pr([e,t])}function jr(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 zr(e,t){return function(e,t){return Vr((()=>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)?sn(t):void 0),t)}function Wr(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 Yr(e,t){Wr(((t,n)=>{e(n)}),void 0,t)}function Kr(e,t){return Vr((()=>Mr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?sn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))}class qr{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 Zr(e){return Or((()=>function(e){return e.slice().reverse()}(Fr(e))))}function Jr(e,t){return Dr((()=>{const n=Mr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Tr+"\\nParameter name: source");return function(e,t){return Nr((()=>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 Xr(e,t){return Or((()=>Pr(Kr(e,t))))}function Qr(e,t){return null==t?new br(1,e):new br(0,un(t))}function eo(e,t,n){return ct(n,e)?new br(0,void 0):new br(1,t)}class to extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function no(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function ro(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function oo(e){return e.tag,e.fields[0]}function io(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=$r();var u;return u=()=>{!function(e,t){gr(fr.Delay((()=>fr.Bind(mr(5e3),(()=>(e(),fr.Zero()))))),t)}(i,s)},rr(u,[]),p("div",mt(Fn([["className",Xt(" ",["rounded-md","p-4","my-4",ro(a)])],["data-testid","alert"],(t=[p("div",mt(Fn([["className",Xt(" ",["flex"])],(n=[p("p",{className:Xt(" ",["text-sm","pr-2",no(a)]),children:oo(a)}),p("div",mt(Fn([["className",Xt(" ",["ml-auto"])],(r=[p("div",mt(Fn([["className",Xt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Xt(" ",Lr(Or((()=>Ur(Gr("inline-flex"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("p-1.5"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("focus:ring-2"),Or((()=>Ur(Gr("focus:ring-offset-2"),Or((()=>function(e){switch(e.tag){case 0:return Fn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Fn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Fn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Hn.Children.toArray([Kn]),onClick:e=>{pr(s),i()}})],["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))],["children",Hn.Children.toArray(Array.from(n))])])))],["children",Hn.Children.toArray(Array.from(t))])])))}function ao(e,t){return new br(0,t)}function so(e,t){return t}function uo(e,t,n){return vr(n,t)}new class{constructor(){}};function lo(e,t){const n=ao(0,t);return fr.Return(n)}function co(e,t){return fr.Delay(t)}new class{constructor(){}};class fo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class $o extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class po extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class ho extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class mo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class go 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 wo{constructor(e,t){this.k=e,this.v=t}}function yo(e,t){return new wo(e,t)}function bo(e){return e.k}function vo(e){return e.v}class xo extends wo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function _o(e,t,n,r,o){return new xo(e,t,n,r,o)}function So(e){return e.left}function Co(e){return e.right}function To(e){return e.h}function Eo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof xo){e=Eo(n+1,So(r)),t=Co(r);continue e}return n+1|0}return 0|n}}function ko(e){return Eo(0,e)}function Io(e,t,n,r){let o,i;o=null!=e?e instanceof xo?To(e):1:0,i=null!=r?r instanceof xo?To(r):1:0;const a=0|(o<i?i:o);return 0===a?yo(t,n):_o(t,n,e,r,a+1)}function Ao(e,t,n,r){let o,i,a,s,u,l;if(u=null!=e?e instanceof xo?To(e):1:0,l=null!=r?r instanceof xo?To(r):1:0,l>u+2){const a=un(r);if(a instanceof xo){if(o=So(a),(null!=o?(i=o,i instanceof xo?To(i):1):0)>u+1){const r=un(So(a));if(r instanceof xo)return Io(Io(e,t,n,So(r)),bo(r),vo(r),Io(Co(r),bo(a),vo(a),Co(a)));throw new Error("internal error: Map.rebalance")}return Io(Io(e,t,n,So(a)),bo(a),vo(a),Co(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=un(e);if(o instanceof xo){if(a=Co(o),(null!=a?(s=a,s instanceof xo?To(s):1):0)>l+1){const e=un(Co(o));if(e instanceof xo)return Io(Io(So(o),bo(o),vo(o),So(e)),bo(e),vo(e),Io(Co(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Io(So(o),bo(o),vo(o),Io(Co(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Io(e,t,n,r)}function No(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,bo(o));return o instanceof xo?i<0?Ao(No(e,t,n,So(o)),bo(o),vo(o),Co(o)):0===i?_o(t,n,So(o),Co(o),To(o)):Ao(So(o),bo(o),vo(o),No(e,t,n,Co(o))):i<0?_o(t,n,void 0,r,2):0===i?yo(t,n):_o(t,n,r,void 0,2)}return yo(t,n)}function Ro(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,bo(i));if(0===a)return sn(vo(i));if(i instanceof xo){e=r,t=o,n=a<0?So(i):Co(i);continue e}return}return}}function Do(e,t,n,r,o){return t(n,r)?No(e,n,r,o):o}function Mo(e,t,n,r){e:for(;;){const o=e,i=t,a=r;if(null!=n){const s=n;if(s instanceof xo){const u=Mo(o,i,So(s),a),l=Do(o,i,bo(s),vo(s),u);e=o,t=i,n=Co(s),r=l;continue e}return Do(o,i,bo(s),vo(s),a)}return a}}function Oo(e,t,n){return Mo(e,t,n,void 0)}function Po(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof xo){Po(n,So(r)),n(bo(r),vo(r)),e=n,t=Co(r);continue e}n(bo(r),vo(r))}break}}function Bo(e,t){Po(e,t)}function Go(e,t){if(null!=t){const n=t;if(n instanceof xo){const t=Go(e,So(n)),r=e(bo(n),vo(n)),o=Go(e,Co(n));return _o(bo(n),r,t,o,To(n))}return yo(bo(n),e(bo(n),vo(n)))}}function Fo(e,t){return Go(e,t)}function Lo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=No(e,o[0],o[1],n)}return n}class Vo extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function Ho(e){e:for(;;){const t=e;if(Nn(t))return kn();{const n=Dn(t),r=Rn(t);if(null!=r){const o=r;if(o instanceof xo){e=Gn([So(o),yo(bo(o),vo(o)),Co(o)],n);continue e}return t}e=n;continue e}}}function Uo(e){return new Vo(Ho(An(e)),!1)}function jo(e){if(e.started){const t=e.stack;if(Nn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Rn(t)){const e=Rn(t);if(e instanceof xo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[bo(e),vo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zo(e){let t=Uo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>jo(t),"System.Collections.IEnumerator.get_Current":()=>jo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Nn(t))return!1;if(null!=Rn(t)){if(Rn(t)instanceof xo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ho(Dn(t)),!Nn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Nn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Uo(e)},Dispose(){}}}class Wo{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,st(e[0])),n=0|t(n,st(e[1]))}}finally{Ke(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Wo))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{Ke(n)}}finally{Ke(t)}}}toString(){return"map ["+Xt("; ",Kr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(jt,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(It(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Nt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Rt(s,i):Rt(s);break;case"e":case"E":s=null!=i?Dt(s,i):Dt(s);break;case"p":case"P":i=null!=i?i:2,s=Nt(At(s,100),i)+" %";break;case"d":case"D":s=null!=i?en(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?en(Mt(s),i,"0"):Mt(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{zt(s,0)&&(s=At(s,-1),e="-"),r=null==r?"":r.substring(1),s=Nt(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=en(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t,n){return Qt(e,t,"0",!0)}(i,a):a<i.length&&(i=i.substring(0,a)+i.substring(a).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})),s=e+s}}else s=s instanceof Date?St(s,a||o):Bt(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Qt(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zo(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zo(this.tree)}CompareTo(e){const t=this;if(e instanceof Wo)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: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 Jo(this,e[0])&&ct(qo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Bo(((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|Zo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Zo(this)}get size(){return 0|Zo(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 qo(this,e)}has(e){return Jo(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;Yr((t=>{e(t[1],t[0],n)}),n)}}function Yo(e,t){return new Wo(e,t)}function Ko(e){const t=_r();return Yo(t,function(e,t){if(We(t))return Lo(e,t);if(t instanceof bn)return function(e,t){return On(((t,n)=>No(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 a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=No(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{Ke(n)}}}(t,e))}function qo(e,t){return function(e,t,n){const r=Ro(e,t,n);if(null==r)throw new Error;return un(r)}(e.comparer,t,e.tree)}function Zo(e){return ko(e.tree)}function Jo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,bo(i));if(i instanceof xo){if(a<0){e=r,t=o,n=So(i);continue e}if(0===a)return!0;e=r,t=o,n=Co(i);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Xo(e,t,n){return function(e,t,n){return Yo(e.comparer,No(e.comparer,t,n,e.tree))}(n,e,t)}function Qo(e,t){return function(e,t){return Ro(e.comparer,t,e.tree)}(t,e)}function ei(e,t){return function(e,t){return Yo(e.comparer,Fo(t,e.tree))}(t,e)}function ti(e){return Ko(e)}function ni(){return Wo.empty}Wo.empty=Yo(_r(),void 0);const ri=new ho("",new fo(0),kn(),!1,void 0,void 0,void 0,new po(0));function oi(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:tn(t,[e],null,0);var n}function ii(e){return new ho(e,ri.method,ri.headers,ri.withCredentials,ri.overridenMimeType,ri.overridenResponseType,ri.timeout,ri.content)}function ai(e,t){return new ho(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e,t){return new ho(t.url,t.method,Ln(t.headers,An(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ui(e){return function(e){return cr((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,a,s;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new mo(0,n.responseText):new mo("arraybuffer"===s?2:"blob"===s?1:3,n.response),new go(o,e,i,function(e){const t=_r();return Yo(t,Lo(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=un(o);r.push(e)}}return r}((e=>{const t=Fn(oi(":",e));return Nn(t)?void 0:[Rn(t).toLocaleLowerCase(),Xt(":",Dn(t)).trim()]}),oi("\r\n",n.getAllResponseHeaders()))),a)))};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{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 a=e.timeout;if(null==a);else{const e=0|a;n.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?n.send(sn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(sn(s[1].fields[0])):n.send(sn(void 0))}))}new go(0,"","",ni(),new mo(0,""));class li extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ci extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class fi{constructor(){this.cache=new Map([])}}function di(){return new fi}function $i(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function pi(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 a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=Pt(e,a),u=Pt.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}($i(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return $i(t)}}di(),di();const hi=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,mi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,gi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function wi(e,t){try{return t.contents=function(e){function t(e){return e.replace(mi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(hi.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Ot(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(mi.test(n))return t(n);if(gi.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 yi;function bi(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 vi(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&yi.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]=bi(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=bi(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function xi(e,t,n,r,o){try{return o.contents=vi(e,t,n,r),!0}catch(e){return!1}}function _i(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 Si(e,t){try{return t.contents=function(e){const[t,n]=Tt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return _i(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(yi||(yi={}));var Ci=null;try{Ci=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(c){}function Ti(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ei(e){return!0===(e&&e.__isLong__)}Ti.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ti.prototype.Equals=function(e){return ea(this,e)},Ti.prototype.CompareTo=function(e){return oa(this,e)},Ti.prototype.toString=function(e){return Zi(this,e)},Ti.prototype.toJSON=function(){return Zi(this)},Ti.prototype[kt]=function(){const e=this;return{multiply:t=>ua(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 Zi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Ti(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 Ti(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}}},Ti.prototype.__isLong__,Object.defineProperty(Ti.prototype,"__isLong__",{value:!0});var ki={},Ii={};function Ai(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ii[e])?r:(n=Ri(e,(0|e)<0?-1:0,!0),o&&(Ii[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ki[e])?r:(n=Ri(e,e<0?-1:0,!1),o&&(ki[e]=n),n)}function Ni(e,t){if(isNaN(e))return t?Vi:Li;if(t){if(e<0)return Vi;if(e>=Bi)return Wi}else{if(e<=-Gi)return Yi;if(e+1>=Gi)return zi}return e<0?ia(Ni(-e,t)):Ri(e%Pi|0,e/Pi|0,t)}function Ri(e,t,n){return new Ti(e,t,n)}var Di=Math.pow;function Mi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Li;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 ia(Mi(e.substring(1),t,n));for(var o=Ni(Di(n,8)),i=Li,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=aa(s<8?ua(i,Ni(Di(n,s))):i=ua(i,o),Ni(u))}return i.unsigned=t,i}function Oi(e,t){return"number"==typeof e?Ni(e,t):"string"==typeof e?Mi(e,t):Ri(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Pi=4294967296,Bi=Pi*Pi,Gi=Bi/2,Fi=Ai(1<<24),Li=Ai(0),Vi=Ai(0,!0),Hi=Ai(1),Ui=Ai(1,!0),ji=Ai(-1),zi=Ri(-1,2147483647,!1),Wi=Ri(-1,-1,!0),Yi=Ri(0,-2147483648,!1);function Ki(e){return e.unsigned?e.low>>>0:e.low}function qi(e){return e.unsigned?(e.high>>>0)*Pi+(e.low>>>0):e.high*Pi+(e.low>>>0)}function Zi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Ji(e))return"0";if(Xi(e)){if(ea(e,Yi)){var n=Ni(t),r=la(e,n),o=sa(ua(r,n),e);return Zi(r,t)+Ki(o).toString(t)}return"-"+Zi(ia(e),t)}for(var i=Ni(Di(t,6),e.unsigned),a=e,s="";;){var u=la(a,i),l=(Ki(sa(a,ua(u,i)))>>>0).toString(t);if(Ji(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Ji(e){return 0===e.high&&0===e.low}function Xi(e){return!e.unsigned&&e.high<0}function Qi(e){return 1==(1&e.low)}function ea(e,t){return Ei(t)||(t=Oi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function ta(e,t){return oa(e,t)<0}function na(e,t){return oa(e,t)>0}function ra(e,t){return oa(e,t)>=0}function oa(e,t){if(Ei(t)||(t=Oi(t)),ea(e,t))return 0;var n=Xi(e),r=Xi(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:Xi(sa(e,t))?-1:1}function ia(e){return!e.unsigned&&ea(e,Yi)?Yi:aa(function(e){return Ri(~e.low,~e.high,e.unsigned)}(e),Hi)}function aa(e,t){Ei(t)||(t=Oi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+s)>>>16,l+=n+a,Ri((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function sa(e,t){return Ei(t)||(t=Oi(t)),aa(e,ia(t))}function ua(e,t){if(Ji(e))return e.unsigned?Vi:Li;if(Ei(t)||(t=Oi(t)),Ci)return Ri(Ci.mul(e.low,e.high,t.low,t.high),Ci.get_high(),e.unsigned);if(Ji(t))return e.unsigned?Vi:Li;if(ea(e,Yi))return Qi(t)?Yi:Li;if(ea(t,Yi))return Qi(e)?Yi:Li;if(Xi(e))return Xi(t)?ua(ia(e),ia(t)):ia(ua(ia(e),t));if(Xi(t))return ia(ua(e,ia(t)));if(ta(e,Fi)&&ta(t,Fi))return Ni(qi(e)*qi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*s)>>>16,c+=n*l+r*u+o*s+i*a,Ri((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function la(e,t){if(Ei(t)||(t=Oi(t)),Ji(t))throw Error("division by zero");var n,r,o;if(Ci)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ri((e.unsigned?Ci.div_u:Ci.div_s)(e.low,e.high,t.low,t.high),Ci.get_high(),e.unsigned):e;if(Ji(e))return e.unsigned?Vi:Li;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ri(e.low,e.high,!0)}(t)),na(t,e))return Vi;if(na(t,function(e,t){if(Ei(t)&&(t=Ki(t)),0==(t&=63))return e;var n=e.high;return t<32?Ri(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ri(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ui;o=Vi}else{if(ea(e,Yi))return ea(t,Hi)||ea(t,ji)?Yi:ea(t,Yi)?Hi:ea(n=function(e,t){return Ei(t)&&(t=Ki(t)),0==(t&=63)?e:t<32?Ri(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ri(0,e.low<<t-32,e.unsigned)}(la(function(e,t){return Ei(t)&&(t=Ki(t)),0==(t&=63)?e:t<32?Ri(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ri(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Li)?Xi(t)?Hi:ji:o=aa(n,la(r=sa(e,ua(t,n)),t));if(ea(t,Yi))return e.unsigned?Vi:Li;if(Xi(e))return Xi(t)?la(ia(e),ia(t)):ia(la(ia(e),t));if(Xi(t))return ia(la(e,ia(t)));o=Li}for(r=e;ra(r,t);){n=Math.max(1,Math.floor(qi(r)/qi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:Di(2,i-48),s=Ni(n),u=ua(s,t);Xi(u)||na(u,r);)u=ua(s=Ni(n-=a,e.unsigned),t);Ji(s)&&(s=Hi),o=aa(o,s),r=sa(r,u)}return o}const ca=la,fa=qi;function da(e){return e<0?Math.ceil(e):Math.floor(e)}function $a(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return fa(ca(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 pa(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 $a(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,a=+t[4],s=+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*$a(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class ha{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class ma{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return Na(this)}GetHashCode(){return wa(this)}Equals(e){return ya(this,e)}}function ga(e){return null!=e.generics?e.generics:[]}function wa(e){return at([ot(e.fullname),...ga(e).map(wa)])}function ya(e,t){return""===e.fullname?""===t.fullname&&ut(Va(e),Va(t),(([e,t],[n,r])=>e===n&&ya(t,r))):e.fullname===t.fullname&&ut(ga(e),ga(t),ya)}function ba(e,t,n,r){return new ma(e,t,n,void 0,r)}function va(...e){return new ma("",void 0,void 0,void 0,(()=>e))}function xa(e,t,n,r){const o=new ma(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ha(o,n,e[n],t)))}));return o}function _a(e){return new ma("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Sa(e){return new ma("Microsoft.FSharp.Collections.FSharpList`1",[e])}function Ca(e,t,n){return new ma(e,[t],void 0,void 0,void 0,void 0,n)}const Ta=new ma("System.Object"),Ea=(new ma("Microsoft.FSharp.Core.Unit"),new ma("System.Char"),new ma("System.String")),ka=new ma("System.Boolean"),Ia=(new ma("System.SByte"),new ma("System.Byte"),new ma("System.Int16"),new ma("System.UInt16"),new ma("System.Int32"));function Aa(e){if(Array.isArray(e))return e[0];if(e instanceof ma){const t=Da(e);if(null!=t)return Aa(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Na(e){const t=Da(e);return null!=t?Na(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Na(e))).join(",")+"]"}function Ra(e){return null!=Da(e)}function Da(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Ma(e){return null!=e.generics&&e.generics.length>0}function Oa(e){return null!=e.enumCases&&e.enumCases.length>0}function Pa(e){return null==e.generics?e:new ma(e.fullname,e.generics.map((()=>Ta)))}function Ba(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ga(e){if(Oa(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Fa(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 La(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Va(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ha(e){if(za(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ua(e){return e instanceof ma?null!=e.cases:e instanceof Gt}function ja(e){return e instanceof ma?null!=e.fields:e instanceof Ft}function za(e){return e.fullname.startsWith("System.Tuple")}function Wa(e){return null==e.fields?[]:e.fields}new ma("System.UInt32"),new ma("System.Single"),new ma("System.Double"),new ma("System.Decimal");class Ya{constructor(e){this.k=e}}function Ka(e){return new Ya(e)}function qa(e){return e.k}class Za extends Ya{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ja(e,t,n,r){return new Za(e,t,n,r)}function Xa(e){return e.left}function Qa(e){return e.right}function es(e){return e.h}function ts(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof Za){e=Xa(r),t=ts(Qa(r),n+1);continue e}return n+1|0}return 0|n}}function ns(e){return ts(e,0)}function rs(e,t,n){let r,o;r=null!=e?e instanceof Za?es(e):1:0,o=null!=n?n instanceof Za?es(n):1:0;const i=0|(r<o?o:r);return 0===i?Ka(t):Ja(t,e,n,i+1)}function os(e,t,n){let r,o,i,a,s,u;if(s=null!=e?e instanceof Za?es(e):1:0,u=null!=n?n instanceof Za?es(n):1:0,u>s+2){const i=un(n);if(i instanceof Za){if(r=Xa(i),(null!=r?(o=r,o instanceof Za?es(o):1):0)>s+1){const n=un(Xa(i));if(n instanceof Za)return rs(rs(e,t,Xa(n)),qa(n),rs(Qa(n),qa(i),Qa(i)));throw new Error("internal error: Set.rebalance")}return rs(rs(e,t,Xa(i)),qa(i),Qa(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=un(e);if(r instanceof Za){if(i=Qa(r),(null!=i?(a=i,a instanceof Za?es(a):1):0)>u+1){const e=un(Qa(r));if(e instanceof Za)return rs(rs(Xa(r),qa(r),Xa(e)),qa(e),rs(Qa(e),t,n));throw new Error("internal error: Set.rebalance")}return rs(Xa(r),qa(r),rs(Qa(r),t,n))}throw new Error("internal error: Set.rebalance")}return rs(e,t,n)}function is(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,qa(r));if(r instanceof Za)return o<0?os(is(e,t,Xa(r)),qa(r),Qa(r)):0===o?n:os(Xa(r),qa(r),is(e,t,Qa(r)));{const o=0|e.Compare(t,qa(r));return o<0?Ja(t,void 0,n,2):0===o?n:Ja(t,n,void 0,2)}}return Ka(t)}function as(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,qa(i));if(i instanceof Za){if(a<0){e=r,t=o,n=Xa(i);continue e}if(0===a)return!0;e=r,t=o,n=Qa(i);continue e}return 0===a}return!1}}function ss(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Za){ss(n,Xa(r)),n(qa(r)),e=n,t=Qa(r);continue e}n(qa(r))}break}}class us extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function ls(e){e:for(;;){const t=e;if(Nn(t))return kn();{const n=Rn(t),r=Dn(t);if(null!=n){const o=n;if(o instanceof Za){e=Gn([Xa(o),Ka(qa(o)),Qa(o)],r);continue e}return t}e=r;continue e}}}function cs(e){return new us(ls(An(e)),!1)}function fs(e){if(e.started){const t=e.stack;if(Nn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Rn(t))return qa(Rn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function ds(e){let t=cs(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>fs(t),"System.Collections.IEnumerator.get_Current":()=>fs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Nn(t))return!1;if(null!=Rn(t)){if(Rn(t)instanceof Za)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ls(Dn(t)),!Nn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Nn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=cs(e)},Dispose(){}}}function $s(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,a=[o,i];if(Nn(a[0]))return Nn(a[1])?0:-1;if(Nn(a[1]))return 1;if(null!=Rn(a[1]))if(null!=Rn(a[0])){const s=Rn(a[0]),u=Rn(a[1]);if(s instanceof Za)if(null==Xa(s)){if(!(u instanceof Za)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=In(Qa(s),Dn(a[0])),n=In(void 0,Dn(a[1]));continue e}if(null==Xa(u)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=In(Qa(s),Dn(a[0])),n=In(Qa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Gn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Gn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Gn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Gn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Za)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}if(null==Xa(u)){const o=0|r.Compare(qa(s),qa(u));if(0!==o)return 0|o;e=r,t=In(void 0,Dn(a[0])),n=In(Qa(u),Dn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Nn(a[0])?Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2:null!=Rn(a[0])?(s=0,u=Dn(a[0]),l=Rn(a[0])):Nn(a[1])?s=2:null!=Rn(a[1])?(s=1,c=Dn(a[1]),f=Rn(a[1])):s=2,s){case 0:if(l instanceof Za){e=r,t=Gn([Xa(l),Ja(qa(l),void 0,Qa(l),0)],u),n=i;continue e}e=r,t=Gn([void 0,Ka(qa(l))],u),n=i;continue e;case 1:if(f instanceof Za){e=r,t=o,n=Gn([Xa(f),Ja(qa(f),void 0,Qa(f),0)],c);continue e}e=r,t=o,n=Gn([void 0,Ka(qa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Rn(a[1]);const s=[o,i];let u,l,c,f,d;switch(Nn(s[0])?Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2:null!=Rn(s[0])?(u=0,l=Dn(s[0]),c=Rn(s[0])):Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2,u){case 0:if(c instanceof Za){e=r,t=Gn([Xa(c),Ja(qa(c),void 0,Qa(c),0)],l),n=i;continue e}e=r,t=Gn([void 0,Ka(qa(c))],l),n=i;continue e;case 1:if(d instanceof Za){e=r,t=o,n=Gn([Xa(d),Ja(qa(d),void 0,Qa(d),0)],f);continue e}e=r,t=o,n=Gn([void 0,Ka(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Rn(a[0])){e=r,t=Dn(a[0]),n=Dn(a[1]);continue e}{Rn(a[0]);const s=[o,i];let u,l,c,f,d;switch(Nn(s[0])?Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2:null!=Rn(s[0])?(u=0,l=Dn(s[0]),c=Rn(s[0])):Nn(s[1])?u=2:null!=Rn(s[1])?(u=1,f=Dn(s[1]),d=Rn(s[1])):u=2,u){case 0:if(c instanceof Za){e=r,t=Gn([Xa(c),Ja(qa(c),void 0,Qa(c),0)],l),n=i;continue e}e=r,t=Gn([void 0,Ka(qa(c))],l),n=i;continue e;case 1:if(d instanceof Za){e=r,t=o,n=Gn([Xa(d),Ja(qa(d),void 0,Qa(d),0)],f);continue e}e=r,t=o,n=Gn([void 0,Ka(qa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,An(t),An(n))}function ps(e,t,n){let r=n;ss((e=>{t[r]=e,r=r+1|0}),e)}function hs(e,t){if(We(t))return function(e,t){return yn(((t,n)=>is(e,n,t)),void 0,t)}(e,t);if(t instanceof bn)return function(e,t){return On(((t,n)=>is(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=is(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ke(n)}}}class ms{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|st(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 ms&&0===$s(gs(this),ws(this),ws(e))}toString(){return"set ["+Xt("; ",Kr((e=>Bt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|$s(gs(this),ws(this),ws(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 as(gs(this),e,ws(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ps(ws(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ys(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ys(this)}GetEnumerator(){return ds(ws(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ds(ws(this))}get size(){return 0|ys(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 as(gs(e),t,ws(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;Yr((t=>{e(t,t,n)}),n)}}function gs(e){return e.comparer}function ws(e){return e.tree}function ys(e){return ns(ws(e))}function bs(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 vs(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new br(1,function(e,t){const n=2===t.tag?bs(t.fields[0],t.fields[1],!0):1===t.tag?bs(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?bs(t.fields[0],t.fields[1],!0):4===t.tag?bs(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"+Xt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:bs(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new br(0,r.fields[0])}function xs(e,t){return"string"==typeof t?new br(0,t):new br(1,[e,new li(0,"a string",t)])}const _s=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 br(0,(e+128&255)-128):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])},Ss=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 br(0,255&e):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])},Cs=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 br(0,(e+32768&65535)-32768):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])},Ts=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 br(0,65535&e):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])},Es=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 br(0,~~e):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])},ks=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 br(0,e>>>0):new br(1,[r,new li(1,n,e,"Value was either too large or too small for "+n)]):new br(1,[r,new li(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[xi(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new br(0,e[1]):new br(1,[r,new li(0,n,o)])}return new br(1,[r,new li(0,n,o)])};function Is(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 br(1,[i,new li(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new br(1,[i,new li(0,"an array",r)])}function As(e,t,n){if(Array.isArray(n)){let r=-1;return vr(Pn,yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new br(0,In(i.fields[0],n.fields[0])):new br(1,i.fields[0])}return n}),new br(0,kn()),n))}return new br(1,[t,new li(0,"a list",n)])}function Ns(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+nt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new br(0,i)):new br(1,a.fields[0])}return n}),new br(0,mn(new Array(o.length),0,o.length,null)),o)}return new br(1,[t,new li(0,"an array",n)])}function Rs(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new br(1,o.fields[0])}function Ds(e,t){let n;const r=e;return n=e=>t=>Is(0,r,e,t),e=>r=>Rs(wt(3,(e=>{let n;const r=t;return n=e=>t=>Is(1,r,e,t),t=>r=>Rs(((t,n,r)=>new br(0,[e,t])),wt(2,n),t,r)})),wt(2,n),e,r)}function Ms(e){return ti(e)}function Os(e){return function(e,t){return new ms(e,t)}(t={Compare:pt},hs(t,e));var t}function Ps(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new br(1,[n,new li(6,(o=0|r.length,Kt(Wt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new br(0,kn());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const a=o.fields[0],s=Kt(Wt("%s[%i]"))(n)(i),u=t[i-e],l=r[i];o=vr((e=>In(e,a)),u(s)(l))}return vr(Pn,o)}}function Bs(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>Aa(e)===r))}(0,La(n));if(null!=a){const n=a,r=gn((n=>Fs(e,t,!1,n[1])),Wa(n));return vr((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,Mn(e))),0===r.length&&i.length<=1?new br(0,kn()):Ps(1,r,o,i))}return new br(1,[o,new li(6,"Cannot find case "+r+" in "+Na(n))])}function Gs(e,t,n,r){const o=new Lt(null);let i;const a=Na(r);let s;if(i=""===a?e:Xo(a,o,e),ja(r)){const e=gn((e=>[pi(t,Aa(e)),Fs(i,t,!1,e[1])]),Va(r));s=t=>n=>vr((e=>function(e,t){const n=Va(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,Mn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new br(1,[t,new li(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(wt(2,(e=>{const r=e[0];return o=>0===o.tag?vr((e=>In(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new br(0,kn()))}(e,t,n))}else if(Ua(r))s=e=>n=>{if("string"==typeof n)return Bs(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return xr((n=>Bs(i,t,r,n,e,o)),xs(e+"[0]",o[0]))}return new br(1,[e,new li(0,"a string or array",n)])};else{if(!n){let e;const t=Na(r);throw e=Kt(Wt("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)}s=e=>t=>new br(1,[e,new li(2,"an extra coder for "+Na(r),t)])}return o.contents=s,s}function Fs(e,t,n,r){let o,i,a,s;const u=Na(r),l=Qo(u,e);if(null==l){if(Ra(r)){const n=Fs(e,t,!1,Da(r));return e=>t=>Ns(wt(2,n),e,t)}if(Oa(r)){const e=Na(Ba(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=_s(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,e.toString())):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=Ss(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,e.toString())):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=Cs(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,e.toString(s))):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,a=Ts(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,e.toString())):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=Es(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,nt(e))):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=ks(o)(i);if(1===a.tag)return new br(1,a.fields[0]);{const e=a.fields[0];return jr(e,Ga(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new br(0,Fa(n,e.toString())):new br(1,[o,new li(1,Na(n),i,"Unkown value provided for the enum")])}};{const e=Na(r),t=qt(Wt("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(Ma(r)){if(za(r)){const n=gn((n=>Fs(e,t,!1,n)),Ha(r));return e=>t=>Array.isArray(t)?vr((e=>Mn(e)),Ps(0,n,e,t)):new br(1,[e,new li(0,"an array",t)])}{const u=Na(Pa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Fs(e,t,!0,ga(r)[0]),e=>t=>{return n=wt(2,o),r=e,null==(i=t)?new br(0,void 0):vr(sn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Fs(e,t,!1,ga(r)[0]),e=>t=>As(wt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return a=Fs(e,t,!1,ga(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return vr(Zr,yn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new br(0,Ur([i.fields[0]],n.fields[0])):new br(1,i.fields[0])}return n}),new br(0,[]),n))}return new br(1,[t,new li(0,"a seq",n)])}(wt(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Fs(e,t,!1,ga(r)[0]),o=Fs(e,t,!1,ga(r)[1]);let i;const a=Fn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new br(1,[n,new li(0,"an object",r)]):Wr(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new br(0,In([a.fields[0],e.fields[0]],o.fields[0])):new br(1,e.fields[0])}return new br(1,a.fields[0])}return o}),new br(0,kn()),Object.keys(r))}(wt(2,n),wt(2,o),e,t),(s=Ds(wt(2,n),wt(2,o)),e=>t=>As(wt(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Nn(o))return new br(1,[n,new li(7,i)]);{const a=vs(n,wt(2,Rn(o)),r);if(1===a.tag){e=Dn(o),t=Ln(i,An(a.fields[0]));continue e}return new br(0,a.fields[0])}}})(a,kn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new br(1,o.fields[0]):new br(0,e(o.fields[0]))}(Ms,wt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Fs(e,t,!1,ga(r)[0]);return e=>t=>{const r=Ns(wt(2,n),e,t);return 0===r.tag?new br(0,Os(r.fields[0])):new br(1,r.fields[0])}}return Gs(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new br(0,r):new br(1,[n,new li(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new br(0,void 0):new br(1,[n,new li(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>xs(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new br(0,n[0]):new br(1,[e,new li(0,"a single character string",t)])}return new br(1,[e,new li(0,"a char",t)])}(e,t):"System.SByte"===u?_s:"System.Byte"===u?Ss:"System.Int16"===u?Cs:"System.UInt16"===u?Ts:"System.Int32"===u?Es:"System.UInt32"===u?ks:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new br(0,r):new br(1,[n,new li(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new br(0,r):new br(1,[n,new li(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=Ct(-621355968e5,0);return r=[Et(t,new Lt((()=>o),(e=>{o=e}))),o],r[0]?new br(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new br(1,[e,new li(0,"a datetime",t)])}var n;return new br(1,[e,new li(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=_i(-621355968e5,0);return n=[Si(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new li(0,"a datetimeoffset",t)])}return new br(1,[e,new li(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[pa(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new li(0,"a timespan",t)])}return new br(1,[e,new li(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=[wi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new br(0,n[1]):new br(1,[e,new li(0,"a guid",t)])}return new br(1,[e,new li(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new br(0,e):Gs(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Ls=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 Vs=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 Ls(n)}(e,0);return 0!=(256&n)}(e);const Hs={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Us(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 js(e,t=Hs.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 Hs.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Hs.SnakeCase:return Us(e,"_");case Hs.SnakeCaseAllCaps:return Us(e,"_").toUpperCase();case Hs.KebabCase:return Us(e,"-");case Hs.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Hs.None;if(null==t&&o(t),t instanceof Gt){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 zs(e,t){return!t.has(e)&&(t.add(e),!0)}function Ws(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ys{constructor(e,t){const n=new Lt(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"]();Js(n.contents,e)}}finally{Ke(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(Pr(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Js(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){qs(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Xs(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Wr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Zs(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Qs(this,e)}get size(){return 0|Zs(this)}add(e){return Js(this,e),this}clear(){qs(this)}delete(e){return Qs(this,e)}has(e){return Xs(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;Yr((t=>{e(t,t,n)}),n)}}function Ks(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Lt((()=>o),(e=>{o=e})),!!i.has(a)&&(s.contents=i.get(a),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,a,s}function qs(e){e.hashMap.clear()}function Zs(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{Ke(n)}return 0|t}function Js(e,t){const n=Ks(e,t);return n[0]?!(n[2]>-1)&&(Ws(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Xs(e,t){const n=Ks(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Qs(e,t){const n=Ks(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ws(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class eu extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}const tu=ti([["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 nu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class ru extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}function ou(e){return vr((e=>new ru(e.Code,e.Name)),function(e){const t=function(e){return $n((t=>new eu(e,t)),Qo(e,tu))}(e);return Qr(Kt(Wt("Country code:%A is not accepted"))(e),t)}(e))}class iu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const au=new iu(2,{HomeCountry:void 0});function su(e){return new iu(2,{HomeCountry:e})}class uu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class lu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class cu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class fu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function du(e){return new fu(0,e)}function $u(e){return e.fields[0]}function pu(e){return so(0,(()=>xr((e=>{const t=e;return uo(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof bn)return Nn(e);{const t=Mr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ke(t)}}}(t)?new br(1,e):new br(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},Fr(function(e,t,n){return Or((()=>{const r=new Ys(e,n);return zr((e=>zs(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return so(0,(()=>{const t=nn(Vs,e);return xr((()=>xr((()=>uo(0,eo(0,"TFN is not valid",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=hn(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),gn((e=>vi(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),(()=>t))),eo(9,"TFN must be 9 digits",t.length))),eo(e,"TFN must contain digits only",t))}))()}(e))))()}class hu 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 mu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function gu(){return xa("Dto.Dto.ResidencyStatusV2Dto",[],mu,(()=>[[],[],[["Item",va(["HomeCountry",_a(ba("Dto.Dto.CountryDto",[],hu,(()=>[["Code",Ea],["Name",Ea]])))])]]]))}function wu(e){switch(e.tag){case 1:return new br(0,new iu(1));case 2:return dn($n((e=>vr(su,ou(e.Code))),e.fields[0].HomeCountry),new br(0,au));default:return new br(0,new iu(0))}}function yu(e){switch(e){case 0:return new br(0,new uu(0));case 1:return new br(0,new uu(1));case 2:return new br(0,new uu(2));case 3:return new br(0,new uu(3));case 4:return new br(0,new uu(4));default:return new br(1,"Invalid EmploymentBasis")}}function bu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function vu(e){switch(e){case 0:return new br(0,new nu(0));case 1:return new br(0,new nu(1));case 2:return new br(0,new nu(2));case 3:return new br(0,new nu(3));case 4:return new br(0,new nu(4));default:return new br(1,"Invalid DebtSupport")}}function xu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const _u=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Nn(i))return vr(Pn,r);{const a=so(0,(()=>xr((e=>uo(0,r,(t=>In(e,t)))),o(Rn(i)))))();if(1===a.tag)return a;e=a,t=o,n=Dn(i);continue e}}}(new br(0,kn()),e,t)}(vu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Lr(function(e,t){return Or((()=>{const n=new Ys([],t);return zr((e=>zs(e,n)),e)}))}(e,t))));var t},Su=e=>Vn(xu,e);function Cu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class Tu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function Eu(){return xa("Dto.Dto.ProvidedTfnInformationDto",[],Tu,(()=>[[["Item",Ea]],[["Item",Ca("Dto.Dto.ExemptionReasonDto",Ia,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class ku extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class Iu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}function Au(){return ba("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],Iu,(()=>[["TfnInformation",xa("Dto.BackendApiModels.Read.TfnInformation",[],ku,(()=>[[["Item",Ea]],[["Item",Ca("Dto.Dto.ExemptionReasonDto",Ia,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",_a(Ea)],["ResidencyStatus",Ca("Dto.Dto.ResidencyStatusDto",Ia,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",gu()],["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ka],["HasDebtSupport",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))}class Nu extends Ft{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=0|t}}class Ru extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class Du extends Ft{constructor(e,t,n){super(),this.Meta=e,this.Data=t,this.Info=n}}class Mu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Ou(){return xa("Dto.Commands.ResidencyStatusV2Dto",[],Mu,(()=>[[],[],[["Item",ba("Dto.Commands.WorkingHolidayPayload",[],Pu,(()=>[["HomeCountry",ba("Dto.Commands.CountryCode",[],Bu,(()=>[["Code",Ea]]))]]))]]]))}class Pu extends Ft{constructor(e){super(),this.HomeCountry=e}}class Bu extends Ft{constructor(e){super(),this.Code=e}}class Gu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CreateOrUpdate","Update","ProvideFullTfnDeclaration","Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}class Fu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class Lu extends Ft{constructor(e,t,n,r,o,i,a){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class Vu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted","Truncated"]}}function Hu(e){return e}const Uu=null;function ju(e){return Array.from(e)}function zu(e){return St(e,"O")}function Wu(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 da(e/864e5)}(e)),o=Math.abs(function(e){return da(e%864e5/36e5)}(e)),i=Math.abs(function(e){return da(e%36e5/6e4)}(e)),a=Math.abs(function(e){return da(e%6e4/1e3)}(e)),s=Math.abs(function(e){return da(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(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+et(s,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}(s):""}`}(e)}function Yu(){return null}function Ku(e){return St(e,"O")}function qu(e,t,n,r){const o=new Lt(null);let i;const a=Na(r);let s;if(i=""===a?e:Xo(a,o,e),ja(r)){const e=gn((e=>{const r=pi(t,Aa(e)),o=Zu(i,t,n,e[1]);return t=>i=>{const a=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),Va(r));s=t=>Wr(((e,n)=>n(t)(e)),{},e)}else{if(!Ua(r)){let e;const t=Na(r);throw e=Kt(Wt("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)}s=e=>{const o=function(e,t){const n=La(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),a=o[0],s=o[1],u=0|s.length;if(0===u)return Aa(a);{const e=0|u,r=Wa(a),o=mn(new Array(e+1),0,e+1,null);o[0]=Aa(a);for(let a=1;a<=e;a++){const e=Zu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=s,s}function Zu(e,t,n,r){const o=Na(r),i=Qo(o,e);if(null==i){if(Ra(r)){const o=Zu(e,t,n,Da(r));return e=>ju(Kr(o,e))}if(Oa(r)){const e=Na(Ba(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=Na(r);return qt(Wt("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(Ma(r)){if(za(r)){const o=gn((r=>Zu(e,t,n,r)),Ha(r));return e=>{return ju((t=(e,t)=>o[e](t),n=e,Hr((()=>Mr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?sn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))));var t,n}}{const o=Na(Pa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Zu(e,t,n,ga(r)[0]),e=>{return n=()=>Uu,null!=(t=$n(o,e))?un(t):n();var t,n};var o}));return e=>null==e?Uu: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=Zu(e,t,n,ga(r)[0]);return e=>ju(Kr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ga(r)[0],i=Zu(e,t,n,ga(r)[1]);if("System.String"===Na(o)||"System.Guid"===Na(o))return e=>Wr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Zu(e,t,n,o);return r=a,e=>ju(Kr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return qu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Yu:"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?Ku:"System.DateTimeOffset"===o?zu:"System.TimeSpan"===o?Wu:"System.Guid"===o?Hu:"System.Object"===o?e=>e:qu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Ju(e){return Kt(Wt("%s/tfn-declaration/backend"))(e)}function Xu(e,t){return co(0,(()=>{const n=si(function(e){return new $o(0,"Authorization",e)}(Kt(Wt("Bearer %s"))(e)),t);let r;const o=ui(n);return r=fr.Bind(o,(e=>fr.Return(new br(0,e)))),fr.Delay((()=>fr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?fr.Return(new br(1,o.fields[0])):fr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=ui(n),fr.Bind(r,(e=>fr.Return(new br(0,e))))):lo(0,t)))}))))}))}const Qu=e=>function(e,t){try{return vs("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new br(1,"Given an invalid JSON: "+e.message);throw e}}(wt(2,function(e,t,n){const r=dn(t,new ci(0));return Fs(function(e){return null!=e?ei(((e,t)=>new Lt(t[1])),e.Coders):ni()}(void 0),r,!1,e)}(ba("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],Du,(()=>[["Meta",va(["AccountId",Ea])],["Data",_a(Au())],["Info",_a(xa("Dto.BackendApiModels.Read.Information",[],Ru,(()=>[[["Item",Au()]],[["Item",ba("Dto.BackendApiModels.Read.EmploymentInfo",[],Nu,(()=>[["ResidencyStatusV2",_a(gu())],["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]]))]]])))]])),new ci(1))),e);function el(e,t){return co(0,(()=>{const n=Xu(e,ai(new fo(0),ii(Ju(t))));return fr.Delay((()=>fr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?fr.Return(new br(1,r.fields[0])):fr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Qu(t.responseText),fr.Return(n)):fr.Return(new br(1,"Unexpected response from backend"))))}))))}))}function tl(e,t,n){return co(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,a;switch(2===o.tag&&0===o.fields[0].tag?(i=0,a=o.fields[0].fields[0]):i=1,i){case 0:r=co(0,(()=>lo(0,a)));break;case 1:r=el(t,n)}return fr.Delay((()=>fr.Bind(r,(r=>{let o,i,a;const s=r;return 1===s.tag?fr.Return(new br(1,s.fields[0])):fr.ReturnFrom((o=s.fields[0],a=function(e,t){return so(0,(()=>xr((n=>{const r=n,o=$n($u,e.PreviousSurname.Value);return xr((n=>{const i=n;return xr((n=>{const a=0|n;return xr((n=>{const s=n,u=dn($n(Su,e.DebtSupportCheckboxGroup.Value),kn()),l=()=>0===r.tag?new br(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new br(0,new Tu(1,Cu(r.fields[0].fields[0]))):new br(0,new Tu(0,r.fields[0].fields[0].fields[0])),c=t.Info;return null!=c?0===c.tag?ao(0,An(new Gu(1,new Lu(t.Meta.AccountId,0===r.tag?new Vu(2,r.fields[0]):1===r.fields[0].tag?new Vu(1,Cu(r.fields[0].fields[0])):new Vu(0,r.fields[0].fields[0].fields[0]),o,i,a,s,u)))):uo(0,l(),(e=>An(new Gu(2,{EmploymentBasis:a,HasDebtSupport:u,IsTaxFreeThresholdClaimed:s,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e})))):uo(0,l(),(e=>An(new Gu(0,new Fu(t.Meta.AccountId,e,o,i,a,s,u)))))}),Qr("missing is tax-free threshold claimed",$n((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Qr("missing employment basis",$n(bu,e.EmploymentBasisRadioButtonGroup.Value)))}),Qr("missing residency status",pn((e=>{const t=function(e){switch(e.tag){case 1:return new br(0,new Mu(1));case 2:return vr((e=>new Mu(2,new Pu(new Bu(e.Code)))),Qr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new br(0,new Mu(0))}}(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),Qr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=fr.Return(a),fr.Delay((()=>fr.Bind(i,(e=>{let r,i,a;const s=e;return 1===s.tag?fr.Return(new br(1,s.fields[0])):fr.ReturnFrom((r=s.fields[0],Nn(r)?lo(0,o):(i=Xu(t,(u=new po(1,function(e,t){return JSON.stringify(t,wt(2,void 0),sn(e))}(0,function(e,t,n,r){const o=dn(t,new ci(0)),i=dn(void 0,!0);return Zu(function(e){return null!=e?ei(((e,t)=>new Lt(t[0])),e.Coders):ni()}(void 0),o,i,e)}(Sa(xa("Dto.Commands.TfnDeclarationCommandDto",[],Gu,(()=>[[["Item",ba("Dto.Commands.TfnDeclarationDetailsDto",[],Fu,(()=>[["AccountId",Ea],["TfnInformation",Eu()],["PreviousSurname",_a(Ea)],["ResidencyStatus",Ou()],["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ka],["HasDebtSupport",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",ba("Dto.Commands.UpdateTfnDeclarationDetailsDto",[],Lu,(()=>[["AccountId",Ea],["TfnInformation",xa("Dto.Commands.UpdateProvidedTfnInformationDto",[],Vu,(()=>[[["Item",Ea]],[["Item",Ca("Dto.Dto.ExemptionReasonDto",Ia,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]],[["Item",Ea]]]))],["PreviousSurname",_a(Ea)],["ResidencyStatus",Ou()],["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ka],["HasDebtSupport",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",va(["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ka],["PreviousSurname",_a(Ea)],["ResidencyStatus",Ou()],["TfnInformation",Eu()])]],[["Item",va(["AccountId",Ea],["EmploymentBasis",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ka],["PreviousSurname",_a(Ea)],["ResidencyStatus",Ou()],["TfnInformation",Eu()])]],[["Item",Eu()]],[["Item",_a(Ea)]],[["Item",Ou()]],[["Item",Ca("Dto.Dto.EmploymentBasisDto",Ia,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ka]],[["Item",Sa(Ca("Dto.Dto.DebtSupportDto",Ia,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new ci(1))(r))),l=ai(new fo(2),ii(Ju(n))),a=new ho(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),si(new $o(0,"Content-Type","application/json"),a))),fr.Delay((()=>fr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?fr.Return(new br(1,r.fields[0])):fr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Qu(t.responseText),fr.Return(n)):fr.Return(new br(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function nl(e,t,n){Bn((n=>{try{n(t)}catch(t){e(t)}}),n)}function rl(){return kn()}function ol(e){return An((t=>{t(e)}))}function il(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 Or((()=>{return t=i,n=e,Dr((()=>function(e,t){let n,r=t;return Nr((()=>{if(null!=n){const e=n[0];return n[1],e}return Er()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class al extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class sl{constructor(e){this.state=new al(0,mn(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function ul(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 al(0,o,n):new al(1,o,n,i),sn(o[r])}}class ll extends Ft{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=a}}function cl(e,t){const n=t.init(e),r=n[0],o=new sl(10);let i=!1,a=r;const s=bt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],a=0|n.fields[2],s=n.fields[0];s[i]=t;const u=(i+1)%s.length|0;e.state=u===a?new al(1,(r=a,o=s,Array.from(Or((()=>Ur(Jr(r,o),Or((()=>{return Ur((e=r,t=o,Hr((()=>Mr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return sn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Tr+"\\nParameter name: source")}}),(e=>{Ke(e)}))),Or((()=>Xr((e=>Gr(null)),il(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new al(1,s,u,a)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new al(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=sn(e);for(;null!=n;){const e=un(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),nl((n=>{t.onError([Kt(Wt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Kt(Wt("Unable to process the message: %A"))(e),n])}n=ul(o)}i=!1}}]);t.setState(r,s),nl((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=xn();let n=t;const r=e=>{n=On(((e,t)=>{const n=new bn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof bn)Bn(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ke(t)}}const o=n,i=xn();return o.tail=i,En(t)}(Fn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),rl()}})(),n[1]])))}class fl{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function dl(){return new fl}function $l(e,t,n,r){cl(t,function(e,t){return new ll(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=sn(t),e.dispatcher=n;const r=e.listener;null!=r&&r(t)}(n,e,t)}),t.onError,t.syncDispatch)}(0,e()));const o=function(e){return e.state}(n);if(null!=o)return un(o);throw new Error("Elmish program has not initialized")}function pl(e,t){return function(e,t,n){const r=tr(dl)[0],o=tr((()=>$l(e,t,r))),i=o[1];return nr((()=>(function(e){return e.hasDisposedOnce}(r)&&i($l(e,t,r)),er((()=>{!function(e){const t=e.state;if(null!=t){const e=un(t);Ye(e)&&Ke(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),dn(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((()=>function(e,t,n){return new ll(e,t,(e=>rl()),n,wt(2,(e=>{const t=bt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(sn(t),n)}),wt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class ml extends Ft{constructor(e,t){super(),this.Value=e,this.Meta=t}}function gl(){return new ml(void 0,{Valid:!1})}function wl(e){return new ml(e,{Valid:!0})}function yl(e){return new ml(e,{Valid:!1})}function bl(e){switch(e){case"Under18AndBelowTaxThreshold":return new cu(0);case"Pending":return new cu(1);case"Pensioner":return new cu(2);default:return}}function vl(e){switch(e){case"AustralianResidentForTaxPurposes":return new iu(0);case"ForeignResidentForTaxPurposes":return new iu(1);case"WorkingHolidayMaker":return au;default:return}}function xl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function _l(e){switch(e){case"HELP":return new nu(0);case"VETStudentLoan":return new nu(1);case"FinancialSupplement":return new nu(2);case"StudentStartUpLoan":return new nu(3);case"TradeSupportLoan":return new nu(4);default:return}}function Sl(e){switch(e){case"FullTime":return new uu(0);case"PartTime":return new uu(1);case"LabourHire":return new uu(2);case"SuperIncomeStream":return new uu(3);case"Casual":return new uu(4);default:return}}function Cl(e){return p("p",{className:Xt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function Tl(e){let t;return p("div",mt(Fn([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[Zn,p("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Hn.Children.toArray(Array.from(t))])])))}class El extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class kl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class Il extends Ft{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Al(e){return new Il(e,{Touched:!1})}function Nl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new Il(e.fields[0],t.Meta):t:new Il(e.fields[0],{Touched:!0})}function Rl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Lr(Or((()=>Ur(null!=e.Parent.Disable?Gr("bg-gray-50"):Gr("bg-white"),Or((()=>Ur(Gr("border-gray-200"),Or((()=>Ur(Gr("shadow-sm"),Or((()=>null!=e.Parent.Disable?Gr("text-gray-400"):Gr("text-gray-900"))))))))))))):Lr(Or((()=>Ur(Gr("shadow-none"),Or((()=>null!=e.Parent.Disable?Gr("text-gray-400"):Gr("text-gray-700")))))));return p("button",{className:Xt(" ",Lr(Or((()=>Ur(Gr("relative"),Or((()=>Ur(Gr("w-1/2"),Or((()=>Ur(Gr("border-gray-200"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("shadow-sm"),Or((()=>Ur(Gr("py-2"),Or((()=>Ur(Gr("text-sm"),Or((()=>Ur(Gr("font-medium"),Or((()=>Ur(Gr("whitespace-nowrap"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("focus:ring-inset"),Or((()=>Ur(Gr("focus:ring-1"),Or((()=>Ur(Gr("focus:ring-primary-focus"),Or((()=>Ur(Gr("focus:z-10"),Or((()=>Ur(Gr("w-auto"),Or((()=>Ur(Gr("px-8"),Or((()=>Ur(ct(e.Parent.Disable,e.Selection)?Gr("disabled:cursor-not-allowed"):Br(),Or((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new kl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Bt(e.Selection)})}function Dl(e){let t;return p("div",mt(Fn([["className",Xt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Rl({Parent:e,Selection:new El(0)}),Rl({Parent:e,Selection:new El(1)})],["children",Hn.Children.toArray(Array.from(t))])])))}class Ml extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Ol extends Ft{constructor(e){super(),this.Selected=e}}function Pl(e){let t;const n=hl((r=e.InitialValue,[new Ol(r),rl()]),((t,n)=>function(e,t,n){const r=function(e,t){return new Ol(e.fields[0])}(t);return e(new ml(r.Selected,{Valid:null!=r.Selected})),[r,rl()]}(e.OnUpdate,t)));var r;return p("div",mt(Fn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Lr(Or((()=>Xr((t=>{let r,o;const i=t[0];return Gr(p("label",mt(Fn([["className",Xt(" ",["flex","items-start"])],(r=[p("input",{className:Xt(" ",["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:cn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new Ml(0,i))}}),p("label",mt(Fn([["className",Xt(" ",["ml-3","block","text-sm"])],["for",i],(o=Lr(Or((()=>Ur(Gr(p("span",{className:Xt(" ",["block","text-gray-900"]),children:t[1]})),Or((()=>{const e=t[2];if(null==e)return Gr(null);{const t=e;return Gr(p("span",{className:Xt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Hn.Children.toArray(Array.from(t))])])))}class Bl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Gl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Fl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Ll extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Vl 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 Hl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new ml($n((e=>new Fl(1,e)),e.Value),e.Meta)}return new ml(new Fl(0,cn(e.TruncatedTfn)),{Valid:!0})}const Ul=e=>function(e){return 1!==e.tag}(pu(e));function jl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ll(1,new ml(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ll(1,new ml(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Vl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ll(1,new ml(n.Value,{Valid:Ul(t)})),e.TfnInputTouched)}}return e}function zl(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 Wl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Yl(e){let t,n,r,o;const i=hl(function(e){let t,n,r;return[jl(new Vl(Al(null!=e&&1===e.tag&&1===e.fields[0].tag?new El(1):new El(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Ll(1,gl()):1===e.tag?(r=e.fields[0],new Ll(1,new ml(r,{Valid:!1}))):new Ll(0),!1)),rl()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Gl(0,new lu(0,n)),o=Ul(n);return t.EditingState.tag,new Vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ll(1,new ml(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0],r=$n((e=>new Gl(1,e)),pn(bl,n.Value));return t.EditingState.tag,new Vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ll(1,new ml(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Vl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ll(0),t.TfnInputTouched):new Vl(t.YesNoButtonGroup,t.TruncatedTfn,new to(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Ll(1,gl()),!1);case 5:return jl(new Vl(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 Ll(1,gl())}}else r=new Ll(1,gl());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 Ll(0);break;case 2:r=new Ll(1,gl())}}else r=new Ll(0);break}}return new Vl(Nl(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(Hl(r)),[r,rl()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",mt(An((t=[p("button",mt(Fn([["className",Xt(" ",["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=Lr(Or((()=>ct(a.EditingState,new Ll(0))?Ur(Gr(jn),Or((()=>Gr(p("span",{children:["Edit"]}))))):Ur(Gr(zn),Or((()=>Gr(p("span",{children:["Cancel"]})))))))),["children",Hn.Children.toArray(Array.from(n))]),["onClick",e=>{s(new Bl(4))}]])))],["children",Hn.Children.toArray(Array.from(t))]))));return p("div",mt(Fn([["className",Xt(" ",Jn)],(r=[Cl("Do you have your Tax File Number (TFN)?"),p(Dl,{Disable:void 0,Dispatch:e=>{s(new Bl(0,e))},State:a.YesNoButtonGroup}),p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(o=Lr(Or((()=>{let e,t,n,r,o,i;return Ur((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Gr(p(Pl,(t=Vn((e=>[Bt(e[0]),e[1],e[2]]),Fn([[new cu(1),"My TFN is pending",void 0],[new cu(0),"I'm under 18 and don't have a TFN",void 0],[new cu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=Hl(a).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Bt(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{s(new Bl(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],Ur(Gr(Cl("Enter your TFN")),Or((()=>{let e,t,n;return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Fn([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Fn([["className",Xt(" ",["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",Hn.Children.toArray(Array.from(t))])]))),u],["children",Hn.Children.toArray(Array.from(e))])]))))})))):Ur(Gr(Cl("Enter your TFN")),Or((()=>{let e;return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-1"])],(e=Lr(Or((()=>{let e,t;return Ur(Gr(p("div",mt(Fn([["className",Xt(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",mt(Fn([["className",Xt(" ",Lr(Or((()=>Ur(Gr("block"),Or((()=>Ur(Gr("w-full"),Or((()=>Ur(Gr("focus:outline-none"),Or((()=>Ur(Gr("text-base"),Or((()=>Ur(Gr("focus:z-20"),Or((()=>Ur(Gr("relative"),Or((()=>Ur(Gr("sm:text-sm"),Or((()=>Ur(Gr("rounded-md"),Or((()=>Ur(Gr("border-gray-300"),Or((()=>Ur(Gr("focus:ring-primary-focus"),Or((()=>Ur(Gr("focus:border-primary-focus"),Or((()=>Ur(Gr("block"),Or((()=>Ur(Gr("w-full"),Or((()=>Ur(null==a.TruncatedTfn?Gr("rounded-md"):Gr("rounded-none rounded-l-md"),Or((()=>Wl(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Br()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new Bl(1,nn(Vs,e.target.value)))}],(t=zl(a),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new Bl(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Hn.Children.toArray(Array.from(e))])])))),Or((()=>Wl(a)?Gr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Br())))}))),["children",Hn.Children.toArray(Array.from(e))])]))))})))):Gr(null)),Or((()=>{let e;return Gr((e=Lr(Or((()=>{const e=a.CurrentAlert;return Gr(null==e?null:p(io,{alert:e,hideAlert:()=>{s(new Bl(5))}}))}))),p("div",{children:Hn.Children.toArray(Array.from(e))})))})))}))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))}let Kl="undefined"!=typeof window?ne:te;function ql(e){let t=re(e);return Kl((()=>{t.current=e}),[e]),t}function Zl(e,t){let[n,r]=Q(e),o=ql(e);return Kl((()=>r(o.current)),[o,r,...t]),n}function Jl(){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 Xl(){let[e]=Q(Jl);return te((()=>()=>e.dispose()),[e]),e}let Ql=function(e){let t=ql(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},ec={serverHandoffComplete:!1};var tc;let nc=0;function rc(){return++nc}let oc=null!=(tc=ze.useId)?tc:function(){let e=function(){let[e,t]=Q(ec.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===ec.serverHandoffComplete&&(ec.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?rc:null);return Kl((()=>{null===t&&n(rc())}),[t]),null!=t?""+t:void 0};function ic(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,ic),r}function ac(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 sc=["[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 uc=(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))(uc||{}),lc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(lc||{}),cc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(cc||{}),fc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(fc||{});function dc(e,t,n){let r=ql(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function $c(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 pc(e,t){let[n,r]=Q((()=>$c(e)));return Kl((()=>{r($c(e))}),[e.type,e.as]),Kl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let hc=Symbol();function mc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=Ql((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[hc])))?void 0:n}var gc=(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))(gc||{});var wc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(wc||{}),yc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(yc||{});function bc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=xc(t,e);if(i)return vc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return vc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return ic(e?0:1,{0:()=>null,1:()=>vc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return vc(s,n,r,a)}function vc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=Cc(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(o===m&&Object.keys(Sc(s)).length>0){if(!He(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(s).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({},xc(l.props,Sc(Cc(s,["ref"]))),c,u))}return p(o,Object.assign({},Cc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function xc(...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 _c(e){var t;return Object.assign(we(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Sc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Cc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function Tc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))kc(n,Ec(t,r),o);return n}function Ec(e,t){return e?e+"["+t+"]":t}function kc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())kc(e,Ec(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,""]):Tc(n,t,e)}var Ic=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ic||{});let Ac=_c((function(e,t){let{features:n=1,...r}=e;return bc({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"})})),Nc=F(null);Nc.displayName="OpenClosedContext";var Rc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rc||{});function Dc({value:e,children:t}){return ze.createElement(Nc.Provider,{value:e},t)}var Mc=(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))(Mc||{}),Oc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Oc||{}),Pc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Pc||{}),Bc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Bc||{}),Gc=(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))(Gc||{});function Fc(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 Lc={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=Fc(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=Fc(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=Fc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Vc=F(null);function Hc(e){let t=ae(Vc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Hc),t}return t}Vc.displayName="ComboboxActionsContext";let Uc=F(null);function jc(e){let t=ae(Uc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,jc),t}return t}function zc(e,t){return ic(t.type,Lc,e,t)}Uc.displayName="ComboboxDataContext";let Wc=m,Yc=_c((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:a=!1,nullable:s=!1,multiple:u=!1,...l}=e,[c,f]=ee(zc,{dataRef:{current:null},comboboxState:a?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=re(!1),$=re({static:!1,hold:!1}),p=re({displayValue:void 0}),h=re(null),m=re(null),g=re(null),w=re(null),y=Ql(((e,t)=>e===t)),b=ie((e=>ic(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=oe((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:g,optionsRef:w,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.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:s,__demoMode:a})),[r,i,u,s,a,c]);Kl((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=re(!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),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=ac(e))?void 0:n.body)&&ic(t,{0:()=>e.matches(sc),1(){let t=e;for(;null!==t;){if(t.matches(sc))return!0;t=t.parentElement}return!1}})}(a,fc.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),dc("click",(e=>o(e,(e=>e.target))),!0),dc("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let x=oe((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),_=ie((()=>{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=Ql((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Ql((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:gc.Specific,id:t})}})),T=Ql((()=>{f({type:0}),d.current=!0})),E=Ql((()=>{f({type:1}),d.current=!1})),k=Ql(((e,t,n)=>(d.current=!1,e===gc.Specific?f({type:2,focus:gc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Ql(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Ql((e=>ic(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=oe((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:E,openCombobox:T,selectActiveOption:C,selectOption:S})),[]);Kl((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Kl(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(Vc.Provider,{value:N},ze.createElement(Uc.Provider,{value:v},ze.createElement(Dc,{value:ic(v.comboboxState,{0:Rc.Open,1:Rc.Closed})},null!=n&&null!=r&&Tc({[n]:r}).map((([e,t])=>ze.createElement(Ac,{features:Ic.Hidden,...Sc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),bc({ourProps:R,theirProps:l,slot:x,defaultTag:Wc,name:"Combobox"}))))})),Kc=_c((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=jc("Combobox.Input"),c=Hc("Combobox.Input"),f=mc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${oc()}`,p=Xl();Kl((()=>{d.current.displayValue=a}),[a,d]);let h=Ql((e=>{switch(e.key){case Mc.Backspace:case Mc.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(gc.Nothing))}));break;case Mc.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 Mc.ArrowDown:return e.preventDefault(),e.stopPropagation(),ic(l.comboboxState,{0:()=>{c.goToOption(gc.Next)},1:()=>{c.openCombobox()}});case Mc.ArrowUp:return e.preventDefault(),e.stopPropagation(),ic(l.comboboxState,{0:()=>{c.goToOption(gc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(gc.Last)}))}});case Mc.Home:case Mc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(gc.First);case Mc.End:case Mc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(gc.Last);case Mc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Mc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Ql((e=>{c.openCombobox(),null==i||i(e)})),g=Zl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),w=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return bc({ourProps:{ref:f,id:$,role:"combobox",type:s,"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":g,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:w,defaultTag:"input",name:"Combobox.Input"})})),qc=_c((function(e,t){var n;let r=jc("Combobox.Button"),o=Hc("Combobox.Button"),i=mc(r.buttonRef,t),a=`headlessui-combobox-button-${oc()}`,s=Xl(),u=Ql((e=>{switch(e.key){case Mc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Mc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(gc.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Mc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=Ql((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()),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Zl((()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")}),[r.labelRef.current,a]),f=oe((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return bc({ourProps:{ref:i,id:a,type:pc(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:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Zc=_c((function(e,t){let n=jc("Combobox.Label"),r=`headlessui-combobox-label-${oc()}`;return bc({ourProps:{ref:mc(n.labelRef,t),id:r,onClick:Ql((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:oe((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),Jc=wc.RenderStrategy|wc.Static,Xc=_c((function(e,t){var n;let{hold:r=!1,...o}=e,i=jc("Combobox.Options"),a=mc(i.optionsRef,t),s=`headlessui-combobox-options-${oc()}`,u=ae(Nc),l=null!==u?u===Rc.Open:0===i.comboboxState;Kl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Kl((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=re(t),i=re(n);te((()=>{o.current=t,i.current=n}),[t,n]),Kl((()=>{if(!e||!r)return;let t=ac(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)a(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=Zl((()=>{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]),f=oe((()=>({open:0===i.comboboxState})),[i]);return bc({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:s,ref:a},theirProps:o,slot:f,defaultTag:"ul",features:Jc,visible:l,name:"Combobox.Options"})})),Qc=_c((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=jc("Combobox.Option"),u=Hc("Combobox.Option"),l=`headlessui-combobox-option-${oc()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=ql({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=mc(t,d),h=Ql((()=>u.selectOption(l)));Kl((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);Kl((()=>{if(!s.__demoMode)return;let e=Jl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Kl((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=Jl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let g=Ql((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),w=Ql((()=>{if(o)return u.goToOption(gc.Nothing);u.goToOption(gc.Specific,l)})),y=Ql((()=>{o||c||u.goToOption(gc.Specific,l,0)})),b=Ql((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(gc.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return bc({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:g,onFocus:w,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),ef=Object.assign(Yc,{Input:Kc,Button:qc,Label:Zc,Options:Xc,Option:Qc});class tf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class nf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function rf(e){const t=js(e,1);return p(ef.Input,t)}class of extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function af(e,t){const n=js(e,1);return p(ef.Options,n,...t)}class sf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function uf(e){const t=js(e,1);return p(ef.Button,t)}class lf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class cf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class ff extends Ft{constructor(e){super(),this.ResidencyStatus=e}}function df(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)?wl(e):yl(e)}function $f(e){return new ff(df(e.ResidencyStatus.Value))}function pf(e,t,n){let r,o;const i=ar(""),a=e=>{let t;return dn($n((e=>e.Name),(t=ou(e),1===t.tag?void 0:t.fields[0])),"")};let s;const u=ln(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:s=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Ot(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Yo(e.comparer,Oo(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=js(e,1);return p(ef,t)}(Fn([new tf(0,a(e)),new tf(1,n),new tf(2,[p("div",mt(Fn([["className","relative mt-1"],(r=[p("div",mt(Fn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[rf(Fn([new nf(0,a(e)),new nf(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 nf(1,(e=>{i[1](e.target.value)})),new nf(3,"off")])),uf(Fn([new sf(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new sf(1,[qn])]))],["children",Hn.Children.toArray(Array.from(o))])]))),af(An(new of(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")),Lr(Or((()=>Ur(0===Zo(s)?Gr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Hn.Children.toArray(["Nothing found"])})):Br(),Or((()=>Xr((e=>{const t=e,n=t[0];return Gr(function(e){const t=js(e,1);return p(ef.Option,t)}(Fn([new lf(0,n),new lf(1,n),new lf(2,"relative cursor-default select-none"),new lf(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[p("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),s))))))))],["children",Hn.Children.toArray(Array.from(r))])])))])]))}function hf(e){let t;const n=hl((r=e.InitialValue,[$f(new ff(yl(r))),rl()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=ou(dn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],$f(new ff(yl(null==t?au:su(t))))}return $f(new ff(yl(pn(vl,e.fields[0].Value))))}(t);return e(r.ResidencyStatus),[r,rl()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(An((t=Lr(Or((()=>Ur(Gr(Cl("Are you an Australian resident for tax purposes or a working holiday maker?")),Or((()=>{let e;return Ur(Gr(p(Pl,(e=Vn((e=>[xl(e[0]),e[1],e[2]]),Fn([[new iu(0),"Australian resident for tax purposes",void 0],[new iu(1),"Foreign resident",void 0],[new iu(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:$n(xl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new cf(0,e))},ValueLabelPairs:e}))),Or((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(e=[Cl("Your home country where your visa was issued"),pf(dn($n((e=>e.Code),r.HomeCountry),""),tu,(e=>{i(new cf(1,wl(e)))}))],["children",Hn.Children.toArray(Array.from(e))])]))));case 1:return Gr(null)}})))})))))),["children",Hn.Children.toArray(Array.from(t))]))))}class mf extends Gt{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 gf extends Ft{constructor(e,t,n,r,o,i,a,s){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=a,this.EmploymentBasisRadioButtonGroup=s}}function wf(e){switch(e.tag){case 1:case 2:case 4:default:return wl(e);case 3:return gl()}}class yf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function bf(){const e=tn(document.URL,["/"],null,0),t=wn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=wn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[ln(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 br(0,new yf(2,r[0]));case 1:return new br(0,new yf(0));case 2:return new br(0,new yf(1));case 3:return new br(1,"Could not determine the embed mode")}}class vf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function xf(){let e;const t=bf();var n;0===t.tag&&(0===t.fields[0].tag?Yr((e=>{window.parent.location.href=e}),fn((n=new vf(0),ln(sessionStorage.getItem(function(e){return Bt(e)}(n)))))):1===t.fields[0].tag?Yr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),fn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function _f(e,t){let n;switch(e.tag){case 1:return[new gf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()];case 2:{const r=e.fields[0];return[new gf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?rl():1===n.tag?ol(new mf(3,new kl(1,new El(1),!1))):2===n.tag?ol(new mf(3,new kl(1,new El(1),!0))):ol(new mf(3,new kl(1,new El(0),!1))))]}case 3:return[new gf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,Nl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()];case 4:return[new gf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),rl()];case 5:{const n=pn(Sl,e.fields[0].Value);return[new gf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new ml(n,{Valid:null!=n})),rl()]}case 6:{const n=e.fields[0],r=new gf(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=ol(new mf(7,new to(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=ln(document.getElementById("external-loading-page-container"));Yr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),fn(n))}();const i=ol(new mf(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=$n((e=>function(e,t){return so(0,(()=>{let n,r;if(0===t.tag){const r=t.fields[0];return xr((t=>xr((n=>{const o=n,i=1===o.tag||2===o.tag?new El(1):r.IsTaxFreeThresholdClaimed?new El(0):new El(1);return xr((n=>{const a=n;return uo(0,yu(r.EmploymentBasis),(n=>new gf(e.PreExistingTfnDec,e.CurrentAlert,wl(t),wl($n(du,r.PreviousSurname)),df(o),Al(i),Nn(a)?wl(void 0):wl(a),wf(n))))}),_u(r.HasDebtSupport))}),wu(r.ResidencyStatusV2))),(n=r.TfnInformation,1===n.tag?vr((e=>new Fl(1,new Gl(1,e))),function(e){switch(e){case 0:return new br(0,new cu(0));case 1:return new br(0,new cu(1));case 2:return new br(0,new cu(2));default:return new br(1,"Invalid ExemptionReason")}}(n.fields[0])):new br(0,new Fl(0,n.fields[0]))))}{const n=t.fields[0];return xr((t=>uo(0,yu(n.EmploymentBasis),(n=>new gf(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,df(t),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,wf(n))))),(r=$n(wu,n.ResidencyStatusV2),null!=r?vr((e=>e),r):new br(0,void 0)))}}))()}(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 gf(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()];case 8:return[new gf(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()];case 9:return[new gf(new wr(2,new br(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()];case 10:return function(){const e=bf();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"},"*",sn(kn()))}(),[t,rl()];default:return[new gf(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),rl()]}}class Sf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class Cf extends Ft{constructor(e,t){super(),this.Text=e,this.Meta=t}}class Tf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function Ef(e){let t;const n=hl(function(e,t){const n=dn(e,"");return[new Cf(n,{Touched:!1,Valid:t(n)}),rl()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new Cf(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new Cf(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new ml(o.Text,{Valid:o.Meta.Valid})),[o,rl()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Fn([["className",Xt(" ",Ln(e.AdditionalWrapperClasses,An("z-10")))],(t=Lr(Or((()=>Ur(Gr(p("input",mt(Lr(Or((()=>Ur(Gr(["className",Xt(" ",Ln(e.AdditionalInputClasses,Ln(Fn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),Lr(Or((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Br()))))))]),Or((()=>Ur(Gr(["type","text"]),Or((()=>Ur(Gr(["onChange",t=>{const n=t.target.value;o(new Sf(0,1===e.InputType.tag?n:nn(Vs,n)))}]),Or((()=>{let t;return Ur(Gr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Or((()=>Ur(Gr(["onBlur",e=>{o(new Sf(1))}]),Or((()=>Ur(ct(e.InputType,new Tf(0))?Gr(["inputMode","numeric"]):Br(),Or((()=>Gr(["data-testid",e.TestId]))))))))))}))))))))))))))),Or((()=>!r.Meta.Valid&&r.Meta.Touched?Gr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Br())))))),["children",Hn.Children.toArray(Array.from(t))])])))}class kf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class If extends Ft{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Af(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Nf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new If(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!1})):1===t.tag?new If(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!0})):new If(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:dn($n((e=>Af(e.fields[0])),e.Data.Value),!1)}))}function Rf(e){let t;const n=hl((r=e.InitialValue,[Nf(new If(Al(new El(null==r?1:0)),new ml(r,{Valid:!1}))),rl()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Nf(1===e.tag?(n=e.fields[0],new If(t.YesNoButtonGroup,new ml($n((e=>new fu(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 If(Nl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,rl()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return p("div",mt(Fn([["className",Xt(" ",Jn)],(t=Lr(Or((()=>Ur(Gr(Cl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Or((()=>Ur(Gr(p(Dl,{Disable:void 0,Dispatch:e=>{i(new kf(0,e))},State:o.YesNoButtonGroup})),Or((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(e=[Cl("Enter your previous surname"),p(Ef,{AdditionalInputClasses:Fn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:An("mt-1"),InitialValue:$n($u,o.Data.Value),InputType:new Tf(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new kf(1,e))},TestId:"surname-input",Validator:Af})],["children",Hn.Children.toArray(Array.from(e))])]))));case 1:return Gr(null)}}))))))))),["children",Hn.Children.toArray(Array.from(t))])])))}const Df=Fn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),Mf=Fn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Of=Fn(["text-sm","text-primary-base","leading-3","font-medium"]),Pf=Fn(["ml-6","flex","items-center"]),Bf=Fn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function Gf(e){let t,n,r,o;const i=e.content,a=e.title,s=ar(!0),u=s[0];return p("div",mt(Fn([["className",Xt(" ",Df)],(t=[(n=An(p("button",mt(Fn([["type","button"],["className",Xt(" ",Mf)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Xt(" ",Of),children:a}),p("span",mt(Fn([["className",Xt(" ",Pf)],(o=Lr(Or((()=>Gr(u?Yn:Wn)))),["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(r))])])))),p("h3",{children:Hn.Children.toArray(Array.from(n))})),p("div",{className:Xt(" ",Ln(Bf,Lr(Or((()=>u?Gr("hidden"):Br()))))),children:Hn.Children.toArray([i])})],["children",Hn.Children.toArray(Array.from(t))])])))}class Ff extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Lf extends Ft{constructor(e){super(),this.Selected=e}}function Vf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Sn(o))return;if(e(Tn(o)))return r;t=r+1,n=En(o)}})(0,t)}((t=>e===t),t.Selected)}function Hf(e,t,n){const r=function(e,t){const n=e.fields[0];return Vf(n,t)?new Lf(function(e,t){const n=xn(),r=On(((t,n)=>{if(e(n)){const e=new bn(n,void 0);return t.tail=e,e}return t}),n,t),o=xn();return r.tail=o,En(n)}((e=>n!==e),t.Selected)):new Lf(Ln(An(n),t.Selected))}(t,n);return e(r.Selected),[r,rl()]}function Uf(e){let t;const n=hl((r=e.InitialValue,[new Lf(r),rl()]),((t,n)=>Hf(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Fn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Lr(Or((()=>Xr((e=>{let t,r,o;const i=e[0];return Gr(p("div",mt(Fn([["className",Xt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Ff(0,i))}],(t=[p("div",mt(Fn([["className",Xt(" ",["flex","items-center","h-5"])],(r=[p("input",{className:Xt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Vf(i,n[0])})],["children",Hn.Children.toArray(Array.from(r))])]))),p("div",mt(Fn([["className",Xt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Xt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Hn.Children.toArray(Array.from(o))])])))],["children",Hn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Hn.Children.toArray(Array.from(t))])])))}class jf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class zf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Wf extends Ft{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Yf(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Wf(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Wf(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:!0}),e.DisableReason):new Wf(e.YesNoButtonGroup,new ml(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Cn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function Kf(e){let t;const n=hl(function(e,t,n){let r;const o=e.Value;let i,a;switch(i=null==o||Nn(o)?0:1,i){case 0:r=new El(1);break;case 1:r=new El(0)}const s=[t,n];let u;switch(u=null!=s[0]?null!=s[1]?1===s[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}}(s[0])?3:1:2===s[1].tag?2:3:3:null!=s[1]?1===s[1].tag?0:2===s[1].tag?2:3:3,u){case 0:case 1:a=new zf(0);break;case 2:a=new zf(1);break;case 3:a=void 0}const l=null==a?rl():ol(new jf(0,new kl(1,new El(1),!0)));return[Yf(new Wf(Al(r),e,a)),l]}(e.InitialValue,e.TfnInfo,e.ResidencyStatus),((t,n)=>function(e,t,n){const r=function(e,t){let n,r;return Yf(1===e.tag?new Wf(t.YesNoButtonGroup,wl(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?wl(void 0):t.Data,new Wf(Nl(n,t.YesNoButtonGroup),r,t.DisableReason)))}(t,n);return e(r.Data),[r,rl()]}(e.OnUpdate,t,n)),[e.TfnInfo,e.ResidencyStatus]),r=n[0],o=n[1];return p("div",mt(Fn([["className",Xt(" ",Jn)],(t=Lr(Or((()=>Ur(Gr(Cl("Do you have any outstanding study and training support loans?")),Or((()=>Ur(Gr(p(Dl,{Disable:$n((e=>new El(0)),r.DisableReason),Dispatch:e=>{o(new jf(0,e))},State:r.YesNoButtonGroup})),Or((()=>{let t;return Ur((t=r.DisableReason,null!=t?1===t.tag?Gr(Tl("Working holiday makers are ineligible for study and training support loans.")):Gr(Tl("You must provide your TFN to declare any outstanding study and training support loans.")):Gr(null)),Or((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let a;switch(a=null!=i&&0===i.tag?0:1,a){case 0:return Gr(p("div",mt(Fn([["className",Xt(" ",["mt-4"])],(t=[p(Uf,(n=Vn((e=>[Bt(e[0]),e[1]]),Fn([[new nu(0),"Higher Education Loan Program (HELP)"],[new nu(1),"VET Student Loan (VSL)"],[new nu(2),"Financial Supplement (FS)"],[new nu(3),"Student Start-up Loan (SSL)"],[new nu(4),"Trade Support Loan (TSL)"]])),{InitialValue:dn($n((e=>Vn(Bt,e)),e.InitialValue.Value),kn()),OnUpdate:e=>{o(new jf(1,function(e,t){const n=xn(),r=On(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new bn(un(r),void 0);return t.tail=e,e}}),n,t),o=xn();return r.tail=o,En(n)}(_l,e)))},ValueLabelPairs:n}))],["children",Hn.Children.toArray(Array.from(t))])]))));case 1:return Gr(null)}})))}))))))))),["children",Hn.Children.toArray(Array.from(t))])])))}function qf(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 wr(1))}function Zf(){return p("hr",{className:Xt(" ",["my-8"])})}const Jf=p("div",mt(Fn([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("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."]}),p("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."]}),p("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",Hn.Children.toArray(Array.from(e))]})()]))),Xf=p("div",mt(Fn([["className",Xt(" ",["space-y-2"])],(()=>{const e=[p("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."]}),p("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."]}),p("p",{children:["Foreign residents and working holiday makers are ineligible to claim the threshold."]})];return["children",Hn.Children.toArray(Array.from(e))]})()])));function Qf(e){const t=e.backendUrl,n=e.accessToken,r=hl([new gf(new wr(0),void 0,gl(),wl(void 0),wl(new iu(0)),Al(new El(0)),wl(void 0),wl(new uu(0))),rl()],_f),o=r[0],i=r[1];rr(yr((()=>el(n,t)),(e=>{i(new mf(6,e))})),[]);const a=ar(new wr(0)),s=a[0],u=yr((()=>function(e,t,n,r){return function(e,t){return fr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return fr.Return(n)}))}((e=>{r(new to(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return fr.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return fr.Return(n)}))}((e=>{r(new to(0,"Your tax declaration has been saved."))}),tl(e,t,n)))}(o,n,t,(e=>{i(new mf(7,e))}))),(e=>{let t,n;a[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(gr(fr.Delay((()=>fr.Bind(mr(400),(()=>(xf(),fr.Zero())))))),i(new mf(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Lr(Or((()=>{let e,t;return Ur((e=o.CurrentAlert,null==e?Gr(null):(t=e,Gr(p(io,{alert:t,hideAlert:()=>{i(new mf(8))}})))),Or((()=>Ur(Gr(p("h3",{className:Xt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Or((()=>Ur(Gr(p(Yl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new mf(0,e))}})),Or((()=>Ur(Gr(Zf()),Or((()=>Ur(Gr(p(Rf,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new mf(1,e))}})),Or((()=>Ur(Gr(Zf()),Or((()=>Ur(Gr(p(hf,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new mf(2,e))}})),Or((()=>Ur(Gr(p(Gf,{title:"About residency",content:Jf})),Or((()=>Ur(Gr(Zf()),Or((()=>{let e,t;return Ur(Gr(p("div",mt(Fn([["className",Xt(" ",Jn)],(e=[Cl("Would you like to claim the tax-free threshold from this employer?"),p(Dl,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new El(0)),Dispatch:e=>{i(new mf(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Hn.Children.toArray(Array.from(e))])])))),Or((()=>{let e;return Ur((e=o.ResidencyStatus.Value,null!=e?2===e.tag?Gr(Tl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?Gr(Tl("Foreign residents are ineligible to claim the tax-free threshold.")):Gr(null):Gr(null)),Or((()=>Ur(Gr(p(Gf,{title:"About the tax-free threshold",content:Xf})),Or((()=>Ur(Gr(Zf()),Or((()=>Ur(Gr(p(Kf,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new mf(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),Or((()=>Ur(Gr(Zf()),Or((()=>Ur(Gr(Cl("On what basis are you paid?")),Or((()=>Ur(Gr(p("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),Or((()=>{let e;return Ur(Gr(p(Pl,(e=Vn((e=>[Bt(e[0]),e[1],e[2]]),Fn([[new uu(0),"Full-time",void 0],[new uu(1),"Part-time",void 0],[new uu(2),"Labour Hire",void 0],[new uu(4),"Casual",void 0]])),{InitialValue:$n(Bt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new mf(5,e))},ValueLabelPairs:e}))),Or((()=>Ur(Gr(Zf()),Or((()=>Ur(Gr(p("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."})),Or((()=>{let e;return Gr(p("div",mt(Fn([["className",Xt(" ",["text-center"])],(e=[p("button",{className:Xt(" ",["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:!qf(o,s),onClick:e=>{qf(o,s)&&u()},children:"Save and continue","data-testid":"continue-button"})],["children",Hn.Children.toArray(Array.from(e))])]))))})))))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return p("form",{children:Hn.Children.toArray(Array.from(e))})}}}function ed(){return(ed=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function td(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return G(t,n)}function nd(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(td,ed({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[rd(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),l=s[i].slot;l?o[l]=p(ad,{name:l},u):r[i]=u}var c=n?p(ad,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:P)(this._vdom,this._root)}function rd(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function od(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[rd(e)]=n,this._vdom=G(this._vdom,r),P(this._vdom,this._root)}}function id(){P(this._vdom=null,this._root)}function ad(e,t){var n=this;return p("slot",ed({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function sd(e){let t;return p("div",mt(Fn([["className",Xt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[Un]}),p(Qf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Hn.Children.toArray(Array.from(t))])])))}!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=nd,o.prototype.attributeChangedCallback=od,o.prototype.disconnectedCallback=id,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("tax-component",o)}((e=>p(sd,e)),0,void 0,{shadow:!0})},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,n(933),n(118)})();
|