@flarehr/tfn-declaration-app 2.13.19 → 2.15.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),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),w=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("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-none{flex:none}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-bold{font-weight:700}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var 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]}},280:(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 w(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(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?g(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?g(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,w,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(w=n.__k[d]=null==(w=t[d])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(m,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(p=x[d])||p&&w.key==p.key&&w.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&w.key==p.key&&w.type===p.type){x[$]=void 0;break}p=null}A(e,w,p=p||l,o,i,a,s,u,f),y=w.__e,($=w.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,w),v.push($,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===p.__k?w.__d=u=_(w,u,e):u=C(e,w,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=g(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=g(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,g,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 w(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,g)}))}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||(g=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,w=0;if("svg"===m&&(i=!0),null!=a)for(;w<a.length;w++)if((c=a[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[w]=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={},w=0;w<e.attributes.length;w++)p[e.attributes[w].name]=e.attributes[w].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(w=t.props.children,x(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&g(n,0),u),null!=a)for(w=a.length;w--;)null!=a[w]&&$(a[w]);u||("value"in h&&void 0!==(w=h.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==p.value)&&E(e,"value",w,p.value,!1),"checked"in h&&void 0!==(w=h.checked)&&w!==e.checked&&E(e,"checked",w,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,w.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))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},w.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 w).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 we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ge(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=we,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 w).__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 w).__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)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.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:w,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:ge,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 wt=Symbol("curried");function gt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[wt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t,n){if(null!=t){if(wt in t){t=t[wt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function 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"function"==typeof e?new e(t):new Array(t)}function hn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function mn(e,t,n){const r=0|t.length,o=pn(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 gn(e,t,n){return n.reduce(e,t)}class yn 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 bn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class bn{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 vn(){return new yn(null,void 0)}function xn(e,t){return new yn(e,t)}function _n(e){return null==e.tail}function Sn(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 Cn(e){if(null!=e.tail)return e.head;throw new Error(on+"\\nParameter name: list")}function Tn(e){const t=e.tail;if(null!=t)return t;throw new Error(on+"\\nParameter name: list")}function En(){return vn()}function kn(e,t){return xn(e,t)}function In(e){return xn(e,vn())}function An(e){return _n(e)}function Nn(e){return Cn(e)}function Rn(e){return Tn(e)}function Dn(e){const t=0|Sn(e),n=hn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(_n(o))break;n[r]=Cn(o),e=r+1,t=Tn(o)}})(0,e),n}function Mn(e,t,n){let r=t,o=n;for(;!_n(o);)r=e(r,Cn(o)),o=Tn(o);return r}function On(e){return Mn(((e,t)=>xn(t,e)),vn(),e)}function Pn(e,t){Mn(((t,n)=>{e(n)}),void 0,t)}function Bn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=xn(e[t],n);return n}function Gn(e){return Bn(e,vn())}function Fn(e,t){return Mn(((e,t)=>xn(t,e)),t,On(e))}function Ln(e,t){const n=vn(),r=Mn(((t,n)=>{const r=new yn(e(n),void 0);return t.tail=r,r}),n,t),o=vn();return r.tail=o,Tn(n)}const Vn=ze,Hn=Bt(rn.Z),Un=p("svg",mt(Gn([["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=In(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",Vn.Children.toArray(Array.from(e))]})()]))),jn=p("svg",mt(Gn([["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=In(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",Vn.Children.toArray(Array.from(e))]})()]))),zn=p("svg",mt(Gn([["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=In(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Vn.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",mt(Gn([["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=In(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Vn.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Gn([["className",Xt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=In(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",Vn.Children.toArray(Array.from(e))]})()]))),Kn=p("svg",mt(Gn([["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=In(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",Vn.Children.toArray(Array.from(e))]})()]))),qn=p("svg",mt(Gn([["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=In(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",Vn.Children.toArray(Array.from(e))]})()]))),Zn=Gn(["flex","flex-col","align-center"]),Jn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)},Xn=e=>{ne((()=>{const t=e();return()=>{t.Dispose()}}))};function Qn(e){return{Dispose(){e()}}}function er(e){return Vn.useState(e)}function tr(e,t){Jn(e,t)}function nr(e,t){Jn((t=>(e(),Qn((()=>{})))),t)}function rr(e){return Vn.useRef(e)}function or(e){const t=rr(e),n=function(e,n){const r=dn([],[]);return Vn.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},Xn((e=>(r(),Qn((()=>{}))))),n}function ir(e){return Vn.useState(e)}class ar{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 sr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,sr.prototype)}}class ur{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ur.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function lr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new sr);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 cr=new class{Bind(e,t){return function(e,t){return lr((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 lr((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 lr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return lr((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 lr((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 lr((e=>e.onSuccess(void 0)))}};function fr(e){}function dr(e){const t=new ar("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function $r(e){e.cancel()}const pr=new ar;function hr(e){return lr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new sr)}))}))}function mr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new ur;e({onSuccess:t||fr,onError:n||fr,onCancel:r||fr,cancelToken:o||pr,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 gr(e,t){const n=rr(dr());return tr((()=>Qn((()=>{$r(n.current)}))),[]),or((r=>{var o;null!=(o=n.current)&&o.isCancelled||mr(cr.Delay((()=>cr.TryWith(cr.Delay((()=>(t(new wr(1)),cr.Bind(e(r),(e=>(t(new wr(2,e)),cr.Zero())))))),(e=>(t(new wr(3,e)),cr.Zero()))))),n.current)}))}class yr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class br extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class vr extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class xr 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 _r extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Sr 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}}function Cr(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const Tr="Enumeration already finished.",Er="Enumeration has not started. Call MoveNext.",kr="The input sequence has an insufficient number of elements.";function Ir(){throw new Error(Er)}function Ar(){throw new Error(Tr)}class Nr{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 Rr{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Dr(e,t,n){return new Rr(e,t,n)}function Mr(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 Dr((()=>(o||Ir(),null!=r?un(r):Ar())),(()=>{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 Or(e){return function(e){return new Nr(e)}(e)}function Pr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Br(e){return Or((()=>Je(e())))}function Gr(e){return Or((()=>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 Dr((()=>(o?i&&Ar():Ir(),null!=r?un(r):Ar())),(()=>{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 Fr(){return Br((()=>new Array(0)))}function Lr(e){return Br((()=>function(e,t){const n=pn(void 0,1);return n[0]=e,n}(e)))}function Vr(e){return e instanceof yn?Dn(e):Array.from(e)}function Hr(e){return We(e)?Gn(e):e instanceof yn?e:function(e){let t,n;if(We(e))return Gn(e);if(e instanceof yn)return e;{const r=vn();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 yn(e,void 0),t.tail=n,o=n}}finally{Ke(i)}const a=o,s=vn();return a.tail=s,Tn(r)}}(e)}function Ur(e,t,n){return Or((()=>Mr(e,t,n)))}function jr(e,t,n){return Or((()=>{let r=-1;return Mr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function zr(e,t){return Gr([e,t])}function Wr(e,t,n){const r=Pr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{Ke(r)}}function Yr(e,t){return function(e,t){return Ur((()=>Pr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{Ke(e)}))}((t=>e(t)?sn(t):void 0),t)}function Kr(e,t,n){const r=Pr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{Ke(r)}}function qr(e,t){Kr(((t,n)=>{e(n)}),void 0,t)}function Zr(e,t){return Ur((()=>Pr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?sn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ke(e)}))}class Jr{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 Xr(e){return Br((()=>function(e){return e.slice().reverse()}(Vr(e))))}function Qr(e,t){return Or((()=>{const n=Pr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(kr+"\\nParameter name: source");return function(e,t){return Dr((()=>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 eo(e,t){return Br((()=>Gr(Zr(e,t))))}class to{constructor(e,t){this.k=e,this.v=t}}function no(e,t){return new to(e,t)}function ro(e){return e.k}function oo(e){return e.v}class io extends to{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ao(e,t,n,r,o){return new io(e,t,n,r,o)}function so(e){return e.left}function uo(e){return e.right}function lo(e){return e.h}function co(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof io){e=co(n+1,so(r)),t=uo(r);continue e}return n+1|0}return 0|n}}function fo(e){return co(0,e)}function $o(e,t,n,r){let o,i;o=null!=e?e instanceof io?lo(e):1:0,i=null!=r?r instanceof io?lo(r):1:0;const a=0|(o<i?i:o);return 0===a?no(t,n):ao(t,n,e,r,a+1)}function po(e,t,n,r){let o,i,a,s,u,l;if(u=null!=e?e instanceof io?lo(e):1:0,l=null!=r?r instanceof io?lo(r):1:0,l>u+2){const a=un(r);if(a instanceof io){if(o=so(a),(null!=o?(i=o,i instanceof io?lo(i):1):0)>u+1){const r=un(so(a));if(r instanceof io)return $o($o(e,t,n,so(r)),ro(r),oo(r),$o(uo(r),ro(a),oo(a),uo(a)));throw new Error("internal error: Map.rebalance")}return $o($o(e,t,n,so(a)),ro(a),oo(a),uo(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=un(e);if(o instanceof io){if(a=uo(o),(null!=a?(s=a,s instanceof io?lo(s):1):0)>l+1){const e=un(uo(o));if(e instanceof io)return $o($o(so(o),ro(o),oo(o),so(e)),ro(e),oo(e),$o(uo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return $o(so(o),ro(o),oo(o),$o(uo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return $o(e,t,n,r)}function ho(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,ro(o));return o instanceof io?i<0?po(ho(e,t,n,so(o)),ro(o),oo(o),uo(o)):0===i?ao(t,n,so(o),uo(o),lo(o)):po(so(o),ro(o),oo(o),ho(e,t,n,uo(o))):i<0?ao(t,n,void 0,r,2):0===i?no(t,n):ao(t,n,r,void 0,2)}return no(t,n)}function mo(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,ro(i));if(0===a)return sn(oo(i));if(i instanceof io){e=r,t=o,n=a<0?so(i):uo(i);continue e}return}return}}function wo(e,t,n,r,o){return t(n,r)?ho(e,n,r,o):o}function go(e,t,n,r){e:for(;;){const o=e,i=t,a=r;if(null!=n){const s=n;if(s instanceof io){const u=go(o,i,so(s),a),l=wo(o,i,ro(s),oo(s),u);e=o,t=i,n=uo(s),r=l;continue e}return wo(o,i,ro(s),oo(s),a)}return a}}function yo(e,t,n){return go(e,t,n,void 0)}function bo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof io){bo(n,so(r)),n(ro(r),oo(r)),e=n,t=uo(r);continue e}n(ro(r),oo(r))}break}}function vo(e,t){bo(e,t)}function xo(e,t){if(null!=t){const n=t;if(n instanceof io){const t=xo(e,so(n)),r=e(ro(n),oo(n)),o=xo(e,uo(n));return ao(ro(n),r,t,o,lo(n))}return no(ro(n),e(ro(n),oo(n)))}}function _o(e,t){return xo(e,t)}function So(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=ho(e,o[0],o[1],n)}return n}class Co extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function To(e){e:for(;;){const t=e;if(An(t))return En();{const n=Rn(t),r=Nn(t);if(null!=r){const o=r;if(o instanceof io){e=Bn([so(o),no(ro(o),oo(o)),uo(o)],n);continue e}return t}e=n;continue e}}}function Eo(e){return new Co(To(In(e)),!1)}function ko(e){if(e.started){const t=e.stack;if(An(t))return function(){throw new Error("enumeration already finished")}();if(null!=Nn(t)){const e=Nn(t);if(e instanceof io)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ro(e),oo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Io(e){let t=Eo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ko(t),"System.Collections.IEnumerator.get_Current":()=>ko(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(An(t))return!1;if(null!=Nn(t)){if(Nn(t)instanceof io)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=To(Rn(t)),!An(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!An(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Eo(e)},Dispose(){}}}class Ao{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 Ao))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("; ",Zr((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 Io(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Io(this.tree)}CompareTo(e){const t=this;if(e instanceof Ao)return 0|function(e,t,n){const r=Pr(t);try{const t=Pr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{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 Oo(this,e[0])&&ct(Do(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;vo(((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|Mo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Mo(this)}get size(){return 0|Mo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Zr((e=>[e[0],e[1]]),this)}get(e){return Do(this,e)}has(e){return Oo(this,e)}keys(){return Zr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Zr((e=>e[1]),this)}forEach(e,t){const n=this;qr((t=>{e(t[1],t[0],n)}),n)}}function No(e,t){return new Ao(e,t)}function Ro(e){const t=Cr();return No(t,function(e,t){if(We(t))return So(e,t);if(t instanceof yn)return function(e,t){return Mn(((t,n)=>ho(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=ho(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{Ke(n)}}}(t,e))}function Do(e,t){return function(e,t,n){const r=mo(e,t,n);if(null==r)throw new Error;return un(r)}(e.comparer,t,e.tree)}function Mo(e){return fo(e.tree)}function Oo(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,ro(i));if(i instanceof io){if(a<0){e=r,t=o,n=so(i);continue e}if(0===a)return!0;e=r,t=o,n=uo(i);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Po(e,t,n){return function(e,t,n){return No(e.comparer,ho(e.comparer,t,n,e.tree))}(n,e,t)}function Bo(e,t){return function(e,t){return mo(e.comparer,t,e.tree)}(t,e)}function Go(e,t){return function(e,t){return No(e.comparer,_o(t,e.tree))}(t,e)}function Fo(e){return Ro(e)}function Lo(){return Ao.empty}Ao.empty=No(Cr(),void 0);const Vo=new xr("",new yr(0),En(),!1,void 0,void 0,void 0,new vr(0));function Ho(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:tn(t,[e],null,0);var n}function Uo(e){return new xr(e,Vo.method,Vo.headers,Vo.withCredentials,Vo.overridenMimeType,Vo.overridenResponseType,Vo.timeout,Vo.content)}function jo(e,t){return new xr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function zo(e,t){return new xr(t.url,t.method,Fn(t.headers,In(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Wo(e){return function(e){return lr((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 _r(0,n.responseText):new _r("arraybuffer"===s?2:"blob"===s?1:3,n.response),new Sr(o,e,i,function(e){const t=Cr();return No(t,So(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=Gn(Ho(":",e));return An(t)?void 0:[Nn(t).toLocaleLowerCase(),Xt(":",Rn(t)).trim()]}),Ho("\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 Sr(0,"","",Lo(),new _r(0,""));class Yo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Ko(e,t){return 0===t.tag?new Yo(0,e(t.fields[0])):new Yo(1,t.fields[0])}class qo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Zo extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Jo{constructor(){this.cache=new Map([])}}function Xo(){return new Jo}function Qo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ei(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)}(Qo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Qo(t)}}Xo(),Xo();const ti=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ni=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ri=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function oi(e,t){try{return t.contents=function(e){function t(e){return e.replace(ni,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ti.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(ni.test(n))return t(n);if(ri.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 ii;function ai(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 si(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&ii.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]=ai(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=ai(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function ui(e,t,n,r,o){try{return o.contents=si(e,t,n,r),!0}catch(e){return!1}}function li(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 ci(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 li(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ii||(ii={}));var fi=null;try{fi=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 di(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function $i(e){return!0===(e&&e.__isLong__)}di.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},di.prototype.Equals=function(e){return Li(this,e)},di.prototype.CompareTo=function(e){return ji(this,e)},di.prototype.toString=function(e){return Pi(this,e)},di.prototype.toJSON=function(){return Pi(this)},di.prototype[kt]=function(){const e=this;return{multiply:t=>Ki(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 Pi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new di(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 di(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}}},di.prototype.__isLong__,Object.defineProperty(di.prototype,"__isLong__",{value:!0});var pi={},hi={};function mi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=hi[e])?r:(n=gi(e,(0|e)<0?-1:0,!0),o&&(hi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=pi[e])?r:(n=gi(e,e<0?-1:0,!1),o&&(pi[e]=n),n)}function wi(e,t){if(isNaN(e))return t?Ei:Ti;if(t){if(e<0)return Ei;if(e>=_i)return Ri}else{if(e<=-Si)return Di;if(e+1>=Si)return Ni}return e<0?zi(wi(-e,t)):gi(e%xi|0,e/xi|0,t)}function gi(e,t,n){return new di(e,t,n)}var yi=Math.pow;function bi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Ti;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 zi(bi(e.substring(1),t,n));for(var o=wi(yi(n,8)),i=Ti,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=Wi(s<8?Ki(i,wi(yi(n,s))):i=Ki(i,o),wi(u))}return i.unsigned=t,i}function vi(e,t){return"number"==typeof e?wi(e,t):"string"==typeof e?bi(e,t):gi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var xi=4294967296,_i=xi*xi,Si=_i/2,Ci=mi(1<<24),Ti=mi(0),Ei=mi(0,!0),ki=mi(1),Ii=mi(1,!0),Ai=mi(-1),Ni=gi(-1,2147483647,!1),Ri=gi(-1,-1,!0),Di=gi(0,-2147483648,!1);function Mi(e){return e.unsigned?e.low>>>0:e.low}function Oi(e){return e.unsigned?(e.high>>>0)*xi+(e.low>>>0):e.high*xi+(e.low>>>0)}function Pi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Bi(e))return"0";if(Gi(e)){if(Li(e,Di)){var n=wi(t),r=qi(e,n),o=Yi(Ki(r,n),e);return Pi(r,t)+Mi(o).toString(t)}return"-"+Pi(zi(e),t)}for(var i=wi(yi(t,6),e.unsigned),a=e,s="";;){var u=qi(a,i),l=(Mi(Yi(a,Ki(u,i)))>>>0).toString(t);if(Bi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Bi(e){return 0===e.high&&0===e.low}function Gi(e){return!e.unsigned&&e.high<0}function Fi(e){return 1==(1&e.low)}function Li(e,t){return $i(t)||(t=vi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Vi(e,t){return ji(e,t)<0}function Hi(e,t){return ji(e,t)>0}function Ui(e,t){return ji(e,t)>=0}function ji(e,t){if($i(t)||(t=vi(t)),Li(e,t))return 0;var n=Gi(e),r=Gi(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:Gi(Yi(e,t))?-1:1}function zi(e){return!e.unsigned&&Li(e,Di)?Di:Wi(function(e){return gi(~e.low,~e.high,e.unsigned)}(e),ki)}function Wi(e,t){$i(t)||(t=vi(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,gi((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Yi(e,t){return $i(t)||(t=vi(t)),Wi(e,zi(t))}function Ki(e,t){if(Bi(e))return e.unsigned?Ei:Ti;if($i(t)||(t=vi(t)),fi)return gi(fi.mul(e.low,e.high,t.low,t.high),fi.get_high(),e.unsigned);if(Bi(t))return e.unsigned?Ei:Ti;if(Li(e,Di))return Fi(t)?Di:Ti;if(Li(t,Di))return Fi(e)?Di:Ti;if(Gi(e))return Gi(t)?Ki(zi(e),zi(t)):zi(Ki(zi(e),t));if(Gi(t))return zi(Ki(e,zi(t)));if(Vi(e,Ci)&&Vi(t,Ci))return wi(Oi(e)*Oi(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,gi((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function qi(e,t){if($i(t)||(t=vi(t)),Bi(t))throw Error("division by zero");var n,r,o;if(fi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?gi((e.unsigned?fi.div_u:fi.div_s)(e.low,e.high,t.low,t.high),fi.get_high(),e.unsigned):e;if(Bi(e))return e.unsigned?Ei:Ti;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:gi(e.low,e.high,!0)}(t)),Hi(t,e))return Ei;if(Hi(t,function(e,t){if($i(t)&&(t=Mi(t)),0==(t&=63))return e;var n=e.high;return t<32?gi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):gi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ii;o=Ei}else{if(Li(e,Di))return Li(t,ki)||Li(t,Ai)?Di:Li(t,Di)?ki:Li(n=function(e,t){return $i(t)&&(t=Mi(t)),0==(t&=63)?e:t<32?gi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):gi(0,e.low<<t-32,e.unsigned)}(qi(function(e,t){return $i(t)&&(t=Mi(t)),0==(t&=63)?e:t<32?gi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):gi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Ti)?Gi(t)?ki:Ai:o=Wi(n,qi(r=Yi(e,Ki(t,n)),t));if(Li(t,Di))return e.unsigned?Ei:Ti;if(Gi(e))return Gi(t)?qi(zi(e),zi(t)):zi(qi(zi(e),t));if(Gi(t))return zi(qi(e,zi(t)));o=Ti}for(r=e;Ui(r,t);){n=Math.max(1,Math.floor(Oi(r)/Oi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:yi(2,i-48),s=wi(n),u=Ki(s,t);Gi(u)||Hi(u,r);)u=Ki(s=wi(n-=a,e.unsigned),t);Bi(s)&&(s=ki),o=Wi(o,s),r=Yi(r,u)}return o}const Zi=qi,Ji=Oi;function Xi(e){return e<0?Math.ceil(e):Math.floor(e)}function Qi(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Ji(Zi(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 ea(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 Qi(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*Qi(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class ta{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class na{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 wa(this)}GetHashCode(){return oa(this)}Equals(e){return ia(this,e)}}function ra(e){return null!=e.generics?e.generics:[]}function oa(e){return at([ot(e.fullname),...ra(e).map(oa)])}function ia(e,t){return""===e.fullname?""===t.fullname&&ut(Ea(e),Ea(t),(([e,t],[n,r])=>e===n&&ia(t,r))):e.fullname===t.fullname&&ut(ra(e),ra(t),ia)}function aa(e,t,n,r){return new na(e,t,n,void 0,r)}function sa(...e){return new na("",void 0,void 0,void 0,(()=>e))}function ua(e,t,n,r){const o=new na(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ta(o,n,e[n],t)))}));return o}function la(e){return new na("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ca(e){return new na("Microsoft.FSharp.Collections.FSharpList`1",[e])}function fa(e,t,n){return new na(e,[t],void 0,void 0,void 0,void 0,n)}const da=new na("System.Object"),$a=(new na("Microsoft.FSharp.Core.Unit"),new na("System.Char"),new na("System.String")),pa=new na("System.Boolean"),ha=(new na("System.SByte"),new na("System.Byte"),new na("System.Int16"),new na("System.UInt16"),new na("System.Int32"));function ma(e){if(Array.isArray(e))return e[0];if(e instanceof na){const t=ya(e);if(null!=t)return ma(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function wa(e){const t=ya(e);return null!=t?wa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>wa(e))).join(",")+"]"}function ga(e){return null!=ya(e)}function ya(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ba(e){return null!=e.generics&&e.generics.length>0}function va(e){return null!=e.enumCases&&e.enumCases.length>0}function xa(e){return null==e.generics?e:new na(e.fullname,e.generics.map((()=>da)))}function _a(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Sa(e){if(va(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ca(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 Ta(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ea(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ka(e){if(Na(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ia(e){return e instanceof na?null!=e.cases:e instanceof Gt}function Aa(e){return e instanceof na?null!=e.fields:e instanceof Ft}function Na(e){return e.fullname.startsWith("System.Tuple")}function Ra(e){return null==e.fields?[]:e.fields}new na("System.UInt32"),new na("System.Single"),new na("System.Double"),new na("System.Decimal");class Da{constructor(e){this.k=e}}function Ma(e){return new Da(e)}function Oa(e){return e.k}class Pa extends Da{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ba(e,t,n,r){return new Pa(e,t,n,r)}function Ga(e){return e.left}function Fa(e){return e.right}function La(e){return e.h}function Va(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof Pa){e=Ga(r),t=Va(Fa(r),n+1);continue e}return n+1|0}return 0|n}}function Ha(e){return Va(e,0)}function Ua(e,t,n){let r,o;r=null!=e?e instanceof Pa?La(e):1:0,o=null!=n?n instanceof Pa?La(n):1:0;const i=0|(r<o?o:r);return 0===i?Ma(t):Ba(t,e,n,i+1)}function ja(e,t,n){let r,o,i,a,s,u;if(s=null!=e?e instanceof Pa?La(e):1:0,u=null!=n?n instanceof Pa?La(n):1:0,u>s+2){const i=un(n);if(i instanceof Pa){if(r=Ga(i),(null!=r?(o=r,o instanceof Pa?La(o):1):0)>s+1){const n=un(Ga(i));if(n instanceof Pa)return Ua(Ua(e,t,Ga(n)),Oa(n),Ua(Fa(n),Oa(i),Fa(i)));throw new Error("internal error: Set.rebalance")}return Ua(Ua(e,t,Ga(i)),Oa(i),Fa(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=un(e);if(r instanceof Pa){if(i=Fa(r),(null!=i?(a=i,a instanceof Pa?La(a):1):0)>u+1){const e=un(Fa(r));if(e instanceof Pa)return Ua(Ua(Ga(r),Oa(r),Ga(e)),Oa(e),Ua(Fa(e),t,n));throw new Error("internal error: Set.rebalance")}return Ua(Ga(r),Oa(r),Ua(Fa(r),t,n))}throw new Error("internal error: Set.rebalance")}return Ua(e,t,n)}function za(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Oa(r));if(r instanceof Pa)return o<0?ja(za(e,t,Ga(r)),Oa(r),Fa(r)):0===o?n:ja(Ga(r),Oa(r),za(e,t,Fa(r)));{const o=0|e.Compare(t,Oa(r));return o<0?Ba(t,void 0,n,2):0===o?n:Ba(t,n,void 0,2)}}return Ma(t)}function Wa(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,Oa(i));if(i instanceof Pa){if(a<0){e=r,t=o,n=Ga(i);continue e}if(0===a)return!0;e=r,t=o,n=Fa(i);continue e}return 0===a}return!1}}function Ya(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Pa){Ya(n,Ga(r)),n(Oa(r)),e=n,t=Fa(r);continue e}n(Oa(r))}break}}class Ka extends Ft{constructor(e,t){super(),this.stack=e,this.started=t}}function qa(e){e:for(;;){const t=e;if(An(t))return En();{const n=Nn(t),r=Rn(t);if(null!=n){const o=n;if(o instanceof Pa){e=Bn([Ga(o),Ma(Oa(o)),Fa(o)],r);continue e}return t}e=r;continue e}}}function Za(e){return new Ka(qa(In(e)),!1)}function Ja(e){if(e.started){const t=e.stack;if(An(t))return function(){throw new Error("Enumeration already started")}();if(null!=Nn(t))return Oa(Nn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Xa(e){let t=Za(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ja(t),"System.Collections.IEnumerator.get_Current":()=>Ja(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(An(t))return!1;if(null!=Nn(t)){if(Nn(t)instanceof Pa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=qa(Rn(t)),!An(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!An(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Za(e)},Dispose(){}}}function Qa(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(An(a[0]))return An(a[1])?0:-1;if(An(a[1]))return 1;if(null!=Nn(a[1]))if(null!=Nn(a[0])){const s=Nn(a[0]),u=Nn(a[1]);if(s instanceof Pa)if(null==Ga(s)){if(!(u instanceof Pa)){const o=0|r.Compare(Oa(s),Oa(u));if(0!==o)return 0|o;e=r,t=kn(Fa(s),Rn(a[0])),n=kn(void 0,Rn(a[1]));continue e}if(null==Ga(u)){const o=0|r.Compare(Oa(s),Oa(u));if(0!==o)return 0|o;e=r,t=kn(Fa(s),Rn(a[0])),n=kn(Fa(u),Rn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(An(a[0])?An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2:null!=Nn(a[0])?(s=0,u=Rn(a[0]),l=Nn(a[0])):An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Bn([Ga(l),Ba(Oa(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,Ma(Oa(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Bn([Ga(f),Ba(Oa(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,Ma(Oa(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(An(a[0])?An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2:null!=Nn(a[0])?(s=0,u=Rn(a[0]),l=Nn(a[0])):An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Bn([Ga(l),Ba(Oa(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,Ma(Oa(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Bn([Ga(f),Ba(Oa(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,Ma(Oa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Pa)){const o=0|r.Compare(Oa(s),Oa(u));if(0!==o)return 0|o;e=r,t=Rn(a[0]),n=Rn(a[1]);continue e}if(null==Ga(u)){const o=0|r.Compare(Oa(s),Oa(u));if(0!==o)return 0|o;e=r,t=kn(void 0,Rn(a[0])),n=kn(Fa(u),Rn(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(An(a[0])?An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2:null!=Nn(a[0])?(s=0,u=Rn(a[0]),l=Nn(a[0])):An(a[1])?s=2:null!=Nn(a[1])?(s=1,c=Rn(a[1]),f=Nn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Bn([Ga(l),Ba(Oa(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Bn([void 0,Ma(Oa(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Bn([Ga(f),Ba(Oa(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Bn([void 0,Ma(Oa(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Nn(a[1]);const s=[o,i];let u,l,c,f,d;switch(An(s[0])?An(s[1])?u=2:null!=Nn(s[1])?(u=1,f=Rn(s[1]),d=Nn(s[1])):u=2:null!=Nn(s[0])?(u=0,l=Rn(s[0]),c=Nn(s[0])):An(s[1])?u=2:null!=Nn(s[1])?(u=1,f=Rn(s[1]),d=Nn(s[1])):u=2,u){case 0:if(c instanceof Pa){e=r,t=Bn([Ga(c),Ba(Oa(c),void 0,Fa(c),0)],l),n=i;continue e}e=r,t=Bn([void 0,Ma(Oa(c))],l),n=i;continue e;case 1:if(d instanceof Pa){e=r,t=o,n=Bn([Ga(d),Ba(Oa(d),void 0,Fa(d),0)],f);continue e}e=r,t=o,n=Bn([void 0,Ma(Oa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Nn(a[0])){e=r,t=Rn(a[0]),n=Rn(a[1]);continue e}{Nn(a[0]);const s=[o,i];let u,l,c,f,d;switch(An(s[0])?An(s[1])?u=2:null!=Nn(s[1])?(u=1,f=Rn(s[1]),d=Nn(s[1])):u=2:null!=Nn(s[0])?(u=0,l=Rn(s[0]),c=Nn(s[0])):An(s[1])?u=2:null!=Nn(s[1])?(u=1,f=Rn(s[1]),d=Nn(s[1])):u=2,u){case 0:if(c instanceof Pa){e=r,t=Bn([Ga(c),Ba(Oa(c),void 0,Fa(c),0)],l),n=i;continue e}e=r,t=Bn([void 0,Ma(Oa(c))],l),n=i;continue e;case 1:if(d instanceof Pa){e=r,t=o,n=Bn([Ga(d),Ba(Oa(d),void 0,Fa(d),0)],f);continue e}e=r,t=o,n=Bn([void 0,Ma(Oa(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,In(t),In(n))}function es(e,t,n){let r=n;Ya((e=>{t[r]=e,r=r+1|0}),e)}function ts(e,t){if(We(t))return function(e,t){return gn(((t,n)=>za(e,n,t)),void 0,t)}(e,t);if(t instanceof yn)return function(e,t){return Mn(((t,n)=>za(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=za(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ke(n)}}}class ns{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 ns&&0===Qa(rs(this),os(this),os(e))}toString(){return"set ["+Xt("; ",Zr((e=>Bt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Qa(rs(this),os(this),os(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 Wa(rs(this),e,os(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){es(os(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|is(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|is(this)}GetEnumerator(){return Xa(os(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Xa(os(this))}get size(){return 0|is(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 Wa(rs(e),t,os(e))}(this,e)}keys(){return Zr((e=>e),this)}values(){return Zr((e=>e),this)}entries(){return Zr((e=>[e,e]),this)}forEach(e,t){const n=this;qr((t=>{e(t,t,n)}),n)}}function rs(e){return e.comparer}function os(e){return e.tree}function is(e){return Ha(os(e))}function as(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 ss(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Yo(1,function(e,t){const n=2===t.tag?as(t.fields[0],t.fields[1],!0):1===t.tag?as(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?as(t.fields[0],t.fields[1],!0):4===t.tag?as(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]:as(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new Yo(0,r.fields[0])}function us(e,t){return"string"==typeof t?new Yo(0,t):new Yo(1,[e,new qo(0,"a string",t)])}const ls=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 Yo(0,(e+128&255)-128):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])},cs=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 Yo(0,255&e):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])},fs=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 Yo(0,(e+32768&65535)-32768):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])},ds=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 Yo(0,65535&e):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])},$s=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 Yo(0,~~e):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])},ps=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 Yo(0,e>>>0):new Yo(1,[r,new qo(1,n,e,"Value was either too large or too small for "+n)]):new Yo(1,[r,new qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ui(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new Yo(0,e[1]):new Yo(1,[r,new qo(0,n,o)])}return new Yo(1,[r,new qo(0,n,o)])};function hs(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 Yo(1,[i,new qo(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new Yo(1,[i,new qo(0,"an array",r)])}function ms(e,t,n){if(Array.isArray(n)){let r=-1;return Ko(On,gn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new Yo(0,kn(i.fields[0],n.fields[0])):new Yo(1,i.fields[0])}return n}),new Yo(0,En()),n))}return new Yo(1,[t,new qo(0,"a list",n)])}function ws(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return gn(((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 Yo(0,i)):new Yo(1,a.fields[0])}return n}),new Yo(0,hn(new Array(o.length),0,o.length,null)),o)}return new Yo(1,[t,new qo(0,"an array",n)])}function gs(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Yo(1,o.fields[0])}function ys(e,t){let n;const r=e;return n=e=>t=>hs(0,r,e,t),e=>r=>gs(gt(3,(e=>{let n;const r=t;return n=e=>t=>hs(1,r,e,t),t=>r=>gs(((t,n,r)=>new Yo(0,[e,t])),gt(2,n),t,r)})),gt(2,n),e,r)}function bs(e){return Fo(e)}function vs(e){return function(e,t){return new ns(e,t)}(t={Compare:pt},ts(t,e));var t}function xs(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new Yo(1,[n,new qo(6,(o=0|r.length,Kt(Wt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new Yo(0,En());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=Ko((e=>kn(e,a)),u(s)(l))}return Ko(On,o)}}function _s(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>ma(e)===r))}(0,Ta(n));if(null!=a){const n=a,r=mn((n=>Cs(e,t,!1,n[1])),Ra(n));return Ko((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,Dn(e))),0===r.length&&i.length<=1?new Yo(0,En()):xs(1,r,o,i))}return new Yo(1,[o,new qo(6,"Cannot find case "+r+" in "+wa(n))])}function Ss(e,t,n,r){const o=new Lt(null);let i;const a=wa(r);let s;if(i=""===a?e:Po(a,o,e),Aa(r)){const e=mn((e=>[ei(t,ma(e)),Cs(i,t,!1,e[1])]),Ea(r));s=t=>n=>Ko((e=>function(e,t){const n=Ea(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,Dn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new Yo(1,[t,new qo(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(gt(2,(e=>{const r=e[0];return o=>0===o.tag?Ko((e=>kn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new Yo(0,En()))}(e,t,n))}else if(Ia(r))s=e=>n=>{if("string"==typeof n)return _s(i,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>_s(i,t,r,n,e,s),0===(a=us(e+"[0]",s[0])).tag?o(a.fields[0]):new Yo(1,a.fields[0])}return new Yo(1,[e,new qo(0,"a string or array",n)]);var o,a};else{if(!n){let e;const t=wa(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 Yo(1,[e,new qo(2,"an extra coder for "+wa(r),t)])}return o.contents=s,s}function Cs(e,t,n,r){let o,i,a,s;const u=wa(r),l=Bo(u,e);if(null==l){if(ga(r)){const n=Cs(e,t,!1,ya(r));return e=>t=>ws(gt(2,n),e,t)}if(va(r)){const e=wa(_a(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=ls(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,e.toString())):new Yo(1,[o,new qo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=cs(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,e.toString())):new Yo(1,[o,new qo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=fs(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,e.toString(s))):new Yo(1,[o,new qo(1,wa(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=ds(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,e.toString())):new Yo(1,[o,new qo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=$s(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,nt(e))):new Yo(1,[o,new qo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=ps(o)(i);if(1===a.tag)return new Yo(1,a.fields[0]);{const e=a.fields[0];return Wr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new Yo(0,Ca(n,e.toString())):new Yo(1,[o,new qo(1,wa(n),i,"Unkown value provided for the enum")])}};{const e=wa(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(ba(r)){if(Na(r)){const n=mn((n=>Cs(e,t,!1,n)),ka(r));return e=>t=>Array.isArray(t)?Ko((e=>Dn(e)),xs(0,n,e,t)):new Yo(1,[e,new qo(0,"an array",t)])}{const u=wa(xa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Cs(e,t,!0,ra(r)[0]),e=>t=>{return n=gt(2,o),r=e,null==(i=t)?new Yo(0,void 0):Ko(sn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Cs(e,t,!1,ra(r)[0]),e=>t=>ms(gt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return a=Cs(e,t,!1,ra(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return Ko(Xr,gn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new Yo(0,zr([i.fields[0]],n.fields[0])):new Yo(1,i.fields[0])}return n}),new Yo(0,[]),n))}return new Yo(1,[t,new qo(0,"a seq",n)])}(gt(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Cs(e,t,!1,ra(r)[0]),o=Cs(e,t,!1,ra(r)[1]);let i;const a=Gn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Yo(1,[n,new qo(0,"an object",r)]):Kr(((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 Yo(0,kn([a.fields[0],e.fields[0]],o.fields[0])):new Yo(1,e.fields[0])}return new Yo(1,a.fields[0])}return o}),new Yo(0,En()),Object.keys(r))}(gt(2,n),gt(2,o),e,t),(s=ys(gt(2,n),gt(2,o)),e=>t=>ms(gt(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(An(o))return new Yo(1,[n,new qo(7,i)]);{const a=ss(n,gt(2,Nn(o)),r);if(1===a.tag){e=Rn(o),t=Fn(i,In(a.fields[0]));continue e}return new Yo(0,a.fields[0])}}})(a,En());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new Yo(1,o.fields[0]):new Yo(0,e(o.fields[0]))}(bs,gt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Cs(e,t,!1,ra(r)[0]);return e=>t=>{const r=ws(gt(2,n),e,t);return 0===r.tag?new Yo(0,vs(r.fields[0])):new Yo(1,r.fields[0])}}return Ss(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Yo(0,r):new Yo(1,[n,new qo(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new Yo(0,void 0):new Yo(1,[n,new qo(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>us(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new Yo(0,n[0]):new Yo(1,[e,new qo(0,"a single character string",t)])}return new Yo(1,[e,new qo(0,"a char",t)])}(e,t):"System.SByte"===u?ls:"System.Byte"===u?cs:"System.Int16"===u?fs:"System.UInt16"===u?ds:"System.Int32"===u?$s:"System.UInt32"===u?ps:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new Yo(0,r):new Yo(1,[n,new qo(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new Yo(0,r):new Yo(1,[n,new qo(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 Yo(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new Yo(1,[e,new qo(0,"a datetime",t)])}var n;return new Yo(1,[e,new qo(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=li(-621355968e5,0);return n=[ci(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new Yo(0,n[1]):new Yo(1,[e,new qo(0,"a datetimeoffset",t)])}return new Yo(1,[e,new qo(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ea(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new Yo(0,n[1]):new Yo(1,[e,new qo(0,"a timespan",t)])}return new Yo(1,[e,new qo(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=[oi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new Yo(0,n[1]):new Yo(1,[e,new qo(0,"a guid",t)])}return new Yo(1,[e,new qo(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new Yo(0,e):Ss(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Ts=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 Es=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 Ts(n)}(e,0);return 0!=(256&n)}(e);const ks={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Is(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 As(e,t=ks.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 ks.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case ks.SnakeCase:return Is(e,"_");case ks.SnakeCaseAllCaps:return Is(e,"_").toUpperCase();case ks.KebabCase:return Is(e,"-");case ks.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=ks.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 Ns(e,t){return!t.has(e)&&(t.add(e),!0)}function Rs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ds{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"]();Bs(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(Gr(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Bs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Os(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Gs(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Kr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ps(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Fs(this,e)}get size(){return 0|Ps(this)}add(e){return Bs(this,e),this}clear(){Os(this)}delete(e){return Fs(this,e)}has(e){return Gs(this,e)}keys(){return Zr((e=>e),this)}values(){return Zr((e=>e),this)}entries(){return Zr((e=>[e,e]),this)}forEach(e,t){const n=this;qr((t=>{e(t,t,n)}),n)}}function Ms(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 Os(e){e.hashMap.clear()}function Ps(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 Bs(e,t){const n=Ms(e,t);return n[0]?!(n[2]>-1)&&(Rs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Gs(e,t){const n=Ms(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Fs(e,t){const n=Ms(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Rs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ls extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}const Vs=Fo([["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 Hs extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Us extends Ft{constructor(e,t){super(),this.Code=e,this.Name=t}}function js(e){let t;const n=function(e){const t=function(e){const t=Bo(e,Vs);return null==t?void 0:new Ls(e,t)}(e),n=Kt(Wt("Country code:%A is not accepted"))(e),r=t;return null==r?new Yo(1,n):new Yo(0,r)}(e);return 1===n.tag?new Yo(1,n.fields[0]):new Yo(0,(t=n.fields[0],new Us(t.Code,t.Name)))}class zs extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Ws=new zs(2,{HomeCountry:void 0});function Ys(e){return new zs(2,{HomeCountry:e})}class Ks extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class qs extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class Zs extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class Js extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function Xs(e){return e.fields[0]}function Qs(e){const t=function(e){const t=nn(Es,e),n=t===e?new Yo(0,void 0):new Yo(1,"TFN must contain digits only");if(1===n.tag)return new Yo(1,n.fields[0]);{const e=9===t.length?new Yo(0,void 0):new Yo(1,"TFN must be 9 digits");if(1===e.tag)return new Yo(1,e.fields[0]);{const e=function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=pn(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),mn((e=>si(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11==0?new Yo(0,void 0):new Yo(1,"TFN is not valid");return 1===e.tag?new Yo(1,e.fields[0]):new Yo(0,t)}}}(e);if(1===t.tag)return new Yo(1,t.fields[0]);{const e=t.fields[0],r=function(e){if(We(e))return 0===e.length;if(e instanceof yn)return An(e);{const t=Pr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ke(t)}}}((n={Equals:(e,t)=>e===t,GetHashCode:ot},Vr(function(e,t,n){return Br((()=>{const r=new Ds(e,n);return Yr((e=>Ns(e,r)),t)}))}(["0"],e.split(""),n))))?new Yo(1,"TFN must not contain all zeros"):new Yo(0,void 0);return 1===r.tag?new Yo(1,r.fields[0]):new Yo(0,e)}var n}class eu 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 tu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function nu(){return ua("Dto.Dto.ResidencyStatusV2Dto",[],tu,(()=>[[],[],[["Item",sa(["HomeCountry",la(aa("Dto.Dto.CountryDto",[],eu,(()=>[["Code",$a],["Name",$a]])))])]]]))}function ru(e){let t,n;switch(e.tag){case 1:return new Yo(0,new zs(1));case 2:return dn((t=e.fields[0].HomeCountry,null==t?void 0:(n=js(t.Code),1===n.tag?new Yo(1,n.fields[0]):new Yo(0,Ys(n.fields[0])))),new Yo(0,Ws));default:return new Yo(0,new zs(0))}}function ou(e){switch(e){case 0:return new Yo(0,new Ks(0));case 1:return new Yo(0,new Ks(1));case 2:return new Yo(0,new Ks(2));case 3:return new Yo(0,new Ks(3));case 4:return new Yo(0,new Ks(4));default:return new Yo(1,"Invalid EmploymentBasis")}}function iu(e){switch(e){case 0:return new Yo(0,new Hs(0));case 1:return new Yo(0,new Hs(1));case 2:return new Yo(0,new Hs(2));case 3:return new Yo(0,new Hs(3));case 4:return new Yo(0,new Hs(4));default:return new Yo(1,"Invalid DebtSupport")}}function au(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const su=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(An(i)){const e=r;return 1===e.tag?new Yo(1,e.fields[0]):new Yo(0,On(e.fields[0]))}{let a;const s=o(Nn(i));if(1===s.tag)a=new Yo(1,s.fields[0]);else{const e=r;a=1===e.tag?new Yo(1,e.fields[0]):new Yo(0,kn(s.fields[0],e.fields[0]))}if(1===a.tag)return a;e=a,t=o,n=Rn(i);continue e}}}(new Yo(0,En()),e,t)}(iu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Hr(function(e,t){return Br((()=>{const n=new Ds([],t);return Yr((e=>Ns(e,n)),e)}))}(e,t))));var t},uu=e=>Ln(au,e);function lu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class cu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function fu(){return ua("Dto.Dto.ProvidedTfnInformationDto",[],cu,(()=>[[["Item",$a]],[["Item",fa("Dto.Dto.ExemptionReasonDto",ha,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class du extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class $u 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}}class pu extends Ft{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=0|t}}class hu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class mu extends Ft{constructor(e,t){super(),this.Meta=e,this.Info=t}}class wu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function gu(){return ua("Dto.Commands.ResidencyStatusV2Dto",[],wu,(()=>[[],[],[["Item",aa("Dto.Commands.WorkingHolidayPayload",[],yu,(()=>[["HomeCountry",aa("Dto.Commands.CountryCode",[],bu,(()=>[["Code",$a]]))]]))]]]))}class yu extends Ft{constructor(e){super(),this.HomeCountry=e}}class bu extends Ft{constructor(e){super(),this.Code=e}}class vu 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 xu 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 _u 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 Su extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted","Truncated"]}}function Cu(e){return e}const Tu=null;function Eu(e){return Array.from(e)}function ku(e){return St(e,"O")}function Iu(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 Xi(e/864e5)}(e)),o=Math.abs(function(e){return Xi(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Xi(e%36e5/6e4)}(e)),a=Math.abs(function(e){return Xi(e%6e4/1e3)}(e)),s=Math.abs(function(e){return Xi(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 Au(){return null}function Nu(e){return St(e,"O")}function Ru(e,t,n,r){const o=new Lt(null);let i;const a=wa(r);let s;if(i=""===a?e:Po(a,o,e),Aa(r)){const e=mn((e=>{const r=ei(t,ma(e)),o=Du(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}}),Ea(r));s=t=>Kr(((e,n)=>n(t)(e)),{},e)}else{if(!Ia(r)){let e;const t=wa(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=Ta(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 ma(a);{const e=0|u,r=Ra(a),o=hn(new Array(e+1),0,e+1,null);o[0]=ma(a);for(let a=1;a<=e;a++){const e=Du(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=s,s}function Du(e,t,n,r){const o=wa(r),i=Bo(o,e);if(null==i){if(ga(r)){const o=Du(e,t,n,ya(r));return e=>Eu(Zr(o,e))}if(va(r)){const e=wa(_a(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=wa(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(ba(r)){if(Na(r)){const o=mn((r=>Du(e,t,n,r)),ka(r));return e=>{return Eu((t=(e,t)=>o[e](t),n=e,jr((()=>Pr(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=wa(xa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Du(e,t,n,ra(r)[0]),e=>{return n=()=>Tu,null!=(t=$n(o,e))?un(t):n();var t,n};var o}));return e=>null==e?Tu: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=Du(e,t,n,ra(r)[0]);return e=>Eu(Zr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ra(r)[0],i=Du(e,t,n,ra(r)[1]);if("System.String"===wa(o)||"System.Guid"===wa(o))return e=>Kr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Du(e,t,n,o);return r=a,e=>Eu(Zr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Ru(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Au:"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?Nu:"System.DateTimeOffset"===o?ku:"System.TimeSpan"===o?Iu:"System.Guid"===o?Cu:"System.Object"===o?e=>e:Ru(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Mu(e){return Kt(Wt("%s/tfn-declaration/backend"))(e)}function Ou(e,t){return cr.Delay((()=>{const n=zo(function(e){return new br(0,"Authorization",e)}(Kt(Wt("Bearer %s"))(e)),t);let r;const o=Wo(n);return r=cr.Bind(o,(e=>cr.Return(new Yo(0,e)))),cr.Bind(r,(e=>{const t=e;if(1===t.tag)return cr.Return(new Yo(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=Wo(n);return cr.Bind(e,(e=>cr.Return(new Yo(0,e))))}return cr.Return(new Yo(0,e))}}))}))}const Pu=e=>function(e,t){try{return ss("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Yo(1,"Given an invalid JSON: "+e.message);throw e}}(gt(2,function(e,t,n){const r=dn(t,new Zo(0));return Cs(function(e){return null!=e?Go(((e,t)=>new Lt(t[1])),e.Coders):Lo()}(void 0),r,!1,e)}(aa("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],mu,(()=>[["Meta",sa(["AccountId",$a])],["Info",la(ua("Dto.BackendApiModels.Read.Information",[],hu,(()=>[[["Item",aa("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],$u,(()=>[["TfnInformation",ua("Dto.BackendApiModels.Read.TfnInformation",[],du,(()=>[[["Item",$a]],[["Item",fa("Dto.Dto.ExemptionReasonDto",ha,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",la($a)],["ResidencyStatus",fa("Dto.Dto.ResidencyStatusDto",ha,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",nu()],["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",pa],["HasDebtSupport",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",aa("Dto.BackendApiModels.Read.EmploymentInfo",[],pu,(()=>[["ResidencyStatusV2",la(nu())],["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]]))]]])))]])),new Zo(1))),e);function Bu(e,t){return cr.Delay((()=>{const n=Ou(e,jo(new yr(0),Uo(Mu(t))));return cr.Bind(n,(e=>{const t=e;if(1===t.tag)return cr.Return(new Yo(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Pu(e.responseText);return cr.Return(t)}return cr.Return(new Yo(1,"Unexpected response from backend"))}}))}))}function Gu(e,t,n){return cr.Delay((()=>{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=cr.Delay((()=>cr.Return(new Yo(0,a))));break;case 1:r=Bu(t,n)}return cr.Bind(r,(r=>{const o=r;if(1===o.tag)return cr.Return(new Yo(1,o.fields[0]));{const r=o.fields[0];let i;const a=function(e,t){let n,r,o;const i=e.TfnInformation.Value;if(o=null==i?new Yo(1,"missing TFN info"):new Yo(0,i),1===o.tag)return new Yo(1,o.fields[0]);{const i=o.fields[0];let a;const s=e.PreviousSurname.Value;let u,l;a=null==s?void 0:Xs(s);const c=e.ResidencyStatus.Value;if(null==c)l=void 0;else{const e=function(e){switch(e.tag){case 1:return new Yo(0,new wu(1));case 2:{let t;const n=e.fields[0].HomeCountry;return t=null==n?new Yo(1,"Home country should be specified for WorkingHolidayMaker"):new Yo(0,n),1===t.tag?new Yo(1,t.fields[0]):new Yo(0,new wu(2,new yu(new bu(t.fields[0].Code))))}default:return new Yo(0,new wu(0))}}(c);l=1===e.tag?void 0:e.fields[0]}if(u=null==l?new Yo(1,"missing residency status"):new Yo(0,l),1===u.tag)return new Yo(1,u.fields[0]);{const o=u.fields[0];let s,l;const c=e.EmploymentBasisRadioButtonGroup.Value;if(l=null==c?void 0:function(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}(c),s=null==l?new Yo(1,"missing employment basis"):new Yo(0,l),1===s.tag)return new Yo(1,s.fields[0]);{const u=s.fields[0];let l,c;const f=e.ClaimTaxFreeThreshold.Selected;if(c=null==f?void 0:(n=f,!(1===n.tag)),l=null==c?new Yo(1,"missing is tax-free threshold claimed"):new Yo(0,c),1===l.tag)return new Yo(1,l.fields[0]);{const n=l.fields[0],s=dn((r=e.DebtSupportCheckboxGroup.Value,null==r?void 0:uu(r)),En()),c=()=>0===i.tag?new Yo(1,"New TFN declaration cannot have a truncated TFN"):1===i.fields[0].tag?new Yo(0,new cu(1,lu(i.fields[0].fields[0]))):new Yo(0,new cu(0,i.fields[0].fields[0].fields[0])),f=t.Info;if(null!=f){if(0===f.tag)return new Yo(0,In(new vu(1,new _u(t.Meta.AccountId,0===i.tag?new Su(2,i.fields[0]):1===i.fields[0].tag?new Su(1,lu(i.fields[0].fields[0])):new Su(0,i.fields[0].fields[0].fields[0]),a,o,u,n,s))));{const e=c();return 1===e.tag?new Yo(1,e.fields[0]):new Yo(0,In(new vu(2,{EmploymentBasis:u,HasDebtSupport:s,IsTaxFreeThresholdClaimed:n,PreviousSurname:a,ResidencyStatus:o,TfnInformation:e.fields[0]})))}}{const e=c();return 1===e.tag?new Yo(1,e.fields[0]):new Yo(0,In(new vu(0,new xu(t.Meta.AccountId,e.fields[0],a,o,u,n,s))))}}}}}}(e,r);return i=cr.Return(a),cr.Bind(i,(e=>{let o;const i=e;if(1===i.tag)return cr.Return(new Yo(1,i.fields[0]));{const e=i.fields[0];if(An(e))return cr.Return(new Yo(0,r));{const r=Ou(t,(a=new vr(1,function(e,t){return JSON.stringify(t,gt(2,void 0),sn(e))}(0,function(e,t,n,r){const o=dn(t,new Zo(0)),i=dn(void 0,!0);return Du(function(e){return null!=e?Go(((e,t)=>new Lt(t[0])),e.Coders):Lo()}(void 0),o,i,e)}(ca(ua("Dto.Commands.TfnDeclarationCommandDto",[],vu,(()=>[[["Item",aa("Dto.Commands.TfnDeclarationDetailsDto",[],xu,(()=>[["AccountId",$a],["TfnInformation",fu()],["PreviousSurname",la($a)],["ResidencyStatus",gu()],["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",pa],["HasDebtSupport",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",aa("Dto.Commands.UpdateTfnDeclarationDetailsDto",[],_u,(()=>[["AccountId",$a],["TfnInformation",ua("Dto.Commands.UpdateProvidedTfnInformationDto",[],Su,(()=>[[["Item",$a]],[["Item",fa("Dto.Dto.ExemptionReasonDto",ha,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]],[["Item",$a]]]))],["PreviousSurname",la($a)],["ResidencyStatus",gu()],["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",pa],["HasDebtSupport",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]))]],[["Item",sa(["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",pa],["PreviousSurname",la($a)],["ResidencyStatus",gu()],["TfnInformation",fu()])]],[["Item",sa(["AccountId",$a],["EmploymentBasis",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",pa],["PreviousSurname",la($a)],["ResidencyStatus",gu()],["TfnInformation",fu()])]],[["Item",fu()]],[["Item",la($a)]],[["Item",gu()]],[["Item",fa("Dto.Dto.EmploymentBasisDto",ha,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",pa]],[["Item",ca(fa("Dto.Dto.DebtSupportDto",ha,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new Zo(1))(e))),s=jo(new yr(2),Uo(Mu(n))),o=new xr(s.url,s.method,s.headers,s.withCredentials,s.overridenMimeType,s.overridenResponseType,s.timeout,a),zo(new br(0,"Content-Type","application/json"),o)));return cr.Bind(r,(e=>{const t=e;if(1===t.tag)return cr.Return(new Yo(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Pu(e.responseText);return cr.Return(t)}return cr.Return(new Yo(1,"Unexpected response from backend"))}}))}}var a,s}))}}))}))}class Fu extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Lu(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Vu(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Hu(e){return e.tag,e.fields[0]}function Uu(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=dr();var u;return u=()=>{!function(e,t){mr(cr.Delay((()=>cr.Bind(hr(5e3),(()=>(e(),cr.Zero()))))),t)}(i,s)},nr(u,[]),p("div",mt(Gn([["className",Xt(" ",["rounded-md","p-4","my-4",Vu(a)])],["data-testid","alert"],(t=[p("div",mt(Gn([["className",Xt(" ",["flex"])],(n=[p("p",{className:Xt(" ",["text-sm","pr-2",Lu(a)]),children:Hu(a)}),p("div",mt(Gn([["className",Xt(" ",["ml-auto"])],(r=[p("div",mt(Gn([["className",Xt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Xt(" ",Hr(Br((()=>zr(Lr("inline-flex"),Br((()=>zr(Lr("rounded-md"),Br((()=>zr(Lr("p-1.5"),Br((()=>zr(Lr("focus:outline-none"),Br((()=>zr(Lr("focus:ring-2"),Br((()=>zr(Lr("focus:ring-offset-2"),Br((()=>function(e){switch(e.tag){case 0:return Gn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Gn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Gn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Vn.Children.toArray([Yn]),onClick:e=>{$r(s),i()}})],["children",Vn.Children.toArray(Array.from(o))])])))],["children",Vn.Children.toArray(Array.from(r))])])))],["children",Vn.Children.toArray(Array.from(n))])])))],["children",Vn.Children.toArray(Array.from(t))])])))}function ju(e,t,n){Pn((n=>{try{n(t)}catch(t){e(t)}}),n)}function zu(){return En()}function Wu(e){return In((t=>{t(e)}))}function Yu(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 Br((()=>{return t=i,n=e,Or((()=>function(e,t){let n,r=t;return Dr((()=>{if(null!=n){const e=n[0];return n[1],e}return Ir()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Ku extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class qu{constructor(e){this.state=new Ku(0,hn(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function Zu(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 Ku(0,o,n):new Ku(1,o,n,i),sn(o[r])}}class Ju 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 Xu(e,t){const n=t.init(e),r=n[0],o=new qu(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 Ku(1,(r=a,o=s,Array.from(Br((()=>zr(Qr(r,o),Br((()=>{return zr((e=r,t=o,jr((()=>Pr(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(kr+"\\nParameter name: source")}}),(e=>{Ke(e)}))),Br((()=>eo((e=>Lr(null)),Yu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new Ku(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 Ku(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),ju((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=Zu(o)}i=!1}}]);t.setState(r,s),ju((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=vn();let n=t;const r=e=>{n=Mn(((e,t)=>{const n=new yn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof yn)Pn(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=vn();return o.tail=i,Tn(t)}(Gn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),zu()}})(),n[1]])))}class Qu{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function el(){return new Qu}function tl(e,t,n,r){Xu(t,function(e,t){return new Ju(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 nl(e,t){return function(e,t,n){const r=er(el)[0],o=er((()=>tl(e,t,r))),i=o[1];return tr((()=>(function(e){return e.hasDisposedOnce}(r)&&i(tl(e,t,r)),Qn((()=>{!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 rl(e,t,n){return nl((()=>function(e,t,n){return new Ju(e,t,(e=>zu()),n,gt(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)}),gt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class ol extends Ft{constructor(e,t){super(),this.Value=e,this.Meta=t}}function il(){return new ol(void 0,{Valid:!1})}function al(e){return new ol(e,{Valid:!0})}function sl(e){return new ol(e,{Valid:!1})}function ul(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function ll(e){switch(e){case"HELP":return new Hs(0);case"VETStudentLoan":return new Hs(1);case"FinancialSupplement":return new Hs(2);case"StudentStartUpLoan":return new Hs(3);case"TradeSupportLoan":return new Hs(4);default:return}}function cl(e){switch(e){case"FullTime":return new Ks(0);case"PartTime":return new Ks(1);case"LabourHire":return new Ks(2);case"SuperIncomeStream":return new Ks(3);case"Casual":return new Ks(4);default:return}}function fl(e){return p("p",{className:Xt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function dl(e){let t;return p("div",mt(Gn([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[qn,p("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Vn.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 pl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class hl extends Ft{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function ml(e){return new hl(e,{Touched:!1})}function wl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new hl(e.fields[0],t.Meta):t:new hl(e.fields[0],{Touched:!0})}function gl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Hr(Br((()=>zr(null!=e.Parent.Disable?Lr("bg-gray-50"):Lr("bg-white"),Br((()=>zr(Lr("border-gray-200"),Br((()=>zr(Lr("shadow-sm"),Br((()=>null!=e.Parent.Disable?Lr("text-gray-400"):Lr("text-gray-900"))))))))))))):Hr(Br((()=>zr(Lr("shadow-none"),Br((()=>null!=e.Parent.Disable?Lr("text-gray-400"):Lr("text-gray-700")))))));return p("button",{className:Xt(" ",Hr(Br((()=>zr(Lr("relative"),Br((()=>zr(Lr("w-1/2"),Br((()=>zr(Lr("border-gray-200"),Br((()=>zr(Lr("rounded-md"),Br((()=>zr(Lr("shadow-sm"),Br((()=>zr(Lr("py-2"),Br((()=>zr(Lr("text-sm"),Br((()=>zr(Lr("font-medium"),Br((()=>zr(Lr("whitespace-nowrap"),Br((()=>zr(Lr("focus:outline-none"),Br((()=>zr(Lr("focus:ring-inset"),Br((()=>zr(Lr("focus:ring-1"),Br((()=>zr(Lr("focus:ring-primary-focus"),Br((()=>zr(Lr("focus:z-10"),Br((()=>zr(Lr("w-auto"),Br((()=>zr(Lr("px-8"),Br((()=>zr(ct(e.Parent.Disable,e.Selection)?Lr("disabled:cursor-not-allowed"):Fr(),Br((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new pl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Bt(e.Selection)})}function yl(e){let t;return p("div",mt(Gn([["className",Xt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[gl({Parent:e,Selection:new $l(0)}),gl({Parent:e,Selection:new $l(1)})],["children",Vn.Children.toArray(Array.from(t))])])))}class bl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class vl extends Ft{constructor(e){super(),this.Selected=e}}function xl(e){let t;const n=rl((r=e.InitialValue,[new vl(r),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new vl(e.fields[0])}(t);return e(new ol(r.Selected,{Valid:null!=r.Selected})),[r,zu()]}(e.OnUpdate,t)));var r;return p("div",mt(Gn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Hr(Br((()=>eo((t=>{let r,o;const i=t[0];return Lr(p("label",mt(Gn([["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 bl(0,i))}}),p("label",mt(Gn([["className",Xt(" ",["ml-3","block","text-sm"])],["for",i],(o=Hr(Br((()=>zr(Lr(p("span",{className:Xt(" ",["block","text-gray-900"]),children:t[1]})),Br((()=>{const e=t[2];if(null==e)return Lr(null);{const t=e;return Lr(p("span",{className:Xt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Vn.Children.toArray(Array.from(o))])])))],["children",Vn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Vn.Children.toArray(Array.from(t))])])))}class _l extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Sl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Cl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Tl extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class El 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 kl(e){let t;const n=e.EditingState;if(1===n.tag){const e=n.fields[0];return new ol((t=e.Value,null==t?void 0:new Cl(1,t)),e.Meta)}return new ol(new Cl(0,cn(e.TruncatedTfn)),{Valid:!0})}const Il=e=>!(1===Qs(e).tag);function Al(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new El(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Tl(1,new ol(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new El(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Tl(1,new ol(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new El(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Tl(1,new ol(n.Value,{Valid:Il(t)})),e.TfnInputTouched)}}return e}function Nl(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 Rl(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Dl(e){let t,n,r,o;const i=rl(function(e){let t,n,r;return[Al(new El(ml(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 Tl(1,il()):1===e.tag?(r=e.fields[0],new Tl(1,new ol(r,{Valid:!1}))):new Tl(0),!1)),zu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new El(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Sl(0,new qs(0,n)),o=Il(n);return t.EditingState.tag,new El(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Tl(1,new ol(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0];let r,o;const i=n.Value;return o=null==i?void 0:function(e){switch(e){case"Under18AndBelowTaxThreshold":return new Zs(0);case"Pending":return new Zs(1);case"Pensioner":return new Zs(2);default:return}}(i),r=null==o?void 0:new Sl(1,o),t.EditingState.tag,new El(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Tl(1,new ol(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new El(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Tl(0),t.TfnInputTouched):new El(t.YesNoButtonGroup,t.TruncatedTfn,new Fu(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Tl(1,il()),!1);case 5:return Al(new El(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 Tl(1,il())}}else r=new Tl(1,il());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 Tl(0);break;case 2:r=new Tl(1,il())}}else r=new Tl(0);break}}return new El(wl(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(kl(r)),[r,zu()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",mt(In((t=[p("button",mt(Gn([["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=Hr(Br((()=>ct(a.EditingState,new Tl(0))?zr(Lr(Un),Br((()=>Lr(p("span",{children:["Edit"]}))))):zr(Lr(jn),Br((()=>Lr(p("span",{children:["Cancel"]})))))))),["children",Vn.Children.toArray(Array.from(n))]),["onClick",e=>{s(new _l(4))}]])))],["children",Vn.Children.toArray(Array.from(t))]))));return p("div",mt(Gn([["className",Xt(" ",Zn)],(r=[fl("Do you have your Tax File Number (TFN)?"),p(yl,{Disable:void 0,Dispatch:e=>{s(new _l(0,e))},State:a.YesNoButtonGroup}),p("div",mt(Gn([["className",Xt(" ",["mt-4"])],(o=Hr(Br((()=>{let e,t,n,r,o,i;return zr((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Lr(p(xl,(t=Ln((e=>[Bt(e[0]),e[1],e[2]]),Gn([[new Zs(1),"My TFN is pending",void 0],[new Zs(0),"I'm under 18 and don't have a TFN",void 0],[new Zs(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=kl(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 _l(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],zr(Lr(fl("Enter your TFN")),Br((()=>{let e,t,n;return Lr(p("div",mt(Gn([["className",Xt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Gn([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Gn([["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",Vn.Children.toArray(Array.from(t))])]))),u],["children",Vn.Children.toArray(Array.from(e))])]))))})))):zr(Lr(fl("Enter your TFN")),Br((()=>{let e;return Lr(p("div",mt(Gn([["className",Xt(" ",["mt-1"])],(e=Hr(Br((()=>{let e,t;return zr(Lr(p("div",mt(Gn([["className",Xt(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",mt(Gn([["className",Xt(" ",Hr(Br((()=>zr(Lr("block"),Br((()=>zr(Lr("w-full"),Br((()=>zr(Lr("focus:outline-none"),Br((()=>zr(Lr("text-base"),Br((()=>zr(Lr("focus:z-20"),Br((()=>zr(Lr("relative"),Br((()=>zr(Lr("sm:text-sm"),Br((()=>zr(Lr("rounded-md"),Br((()=>zr(Lr("border-gray-300"),Br((()=>zr(Lr("focus:ring-primary-focus"),Br((()=>zr(Lr("focus:border-primary-focus"),Br((()=>zr(Lr("block"),Br((()=>zr(Lr("w-full"),Br((()=>zr(null==a.TruncatedTfn?Lr("rounded-md"):Lr("rounded-none rounded-l-md"),Br((()=>Rl(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Fr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new _l(1,nn(Es,e.target.value)))}],(t=Nl(a),["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new _l(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Vn.Children.toArray(Array.from(e))])])))),Br((()=>Rl(a)?Lr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Fr())))}))),["children",Vn.Children.toArray(Array.from(e))])]))))})))):Lr(null)),Br((()=>{let e;return Lr((e=Hr(Br((()=>{const e=a.CurrentAlert;return Lr(null==e?null:p(Uu,{alert:e,hideAlert:()=>{s(new _l(5))}}))}))),p("div",{children:Vn.Children.toArray(Array.from(e))})))})))}))),["children",Vn.Children.toArray(Array.from(o))])])))],["children",Vn.Children.toArray(Array.from(r))])])))}let Ml="undefined"!=typeof window?ne:te;function Ol(e){let t=re(e);return Ml((()=>{t.current=e}),[e]),t}function Pl(e,t){let[n,r]=Q(e),o=Ol(e);return Ml((()=>r(o.current)),[o,r,...t]),n}function Bl(){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 Gl(){let[e]=Q(Bl);return te((()=>()=>e.dispose()),[e]),e}let Fl=function(e){let t=Ol(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Ll={serverHandoffComplete:!1};var Vl;let Hl=0;function Ul(){return++Hl}let jl=null!=(Vl=ze.useId)?Vl:function(){let e=function(){let[e,t]=Q(Ll.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Ll.serverHandoffComplete&&(Ll.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?Ul:null);return Ml((()=>{null===t&&n(Ul())}),[t]),null!=t?""+t:void 0};function zl(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,zl),r}function Wl(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 Yl=["[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 Kl=(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))(Kl||{}),ql=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ql||{}),Zl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Zl||{}),Jl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Jl||{});function Xl(e,t,n){let r=Ol(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function Ql(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 ec(e,t){let[n,r]=Q((()=>Ql(e)));return Ml((()=>{r(Ql(e))}),[e.type,e.as]),Ml((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let tc=Symbol();function nc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=Fl((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[tc])))?void 0:n}var rc=(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))(rc||{});var oc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(oc||{}),ic=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ic||{});function ac({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=uc(t,e);if(i)return sc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return sc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return zl(e?0:1,{0:()=>null,1:()=>sc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return sc(s,n,r,a)}function sc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=fc(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(cc(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({},uc(l.props,cc(fc(s,["ref"]))),c,u))}return p(o,Object.assign({},fc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function uc(...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 lc(e){var t;return Object.assign(ge(e),{displayName:null!=(t=e.displayName)?t:e.name})}function cc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function fc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function dc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))pc(n,$c(t,r),o);return n}function $c(e,t){return e?e+"["+t+"]":t}function pc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())pc(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,""]):dc(n,t,e)}var hc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(hc||{});let mc=lc((function(e,t){let{features:n=1,...r}=e;return ac({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"})})),wc=F(null);wc.displayName="OpenClosedContext";var gc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(gc||{});function yc({value:e,children:t}){return ze.createElement(wc.Provider,{value:e},t)}var bc=(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))(bc||{}),vc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vc||{}),xc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(xc||{}),_c=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(_c||{}),Sc=(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))(Sc||{});function Cc(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 Tc={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=Cc(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=Cc(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=Cc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Ec=F(null);function kc(e){let t=ae(Ec);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,kc),t}return t}Ec.displayName="ComboboxActionsContext";let Ic=F(null);function Ac(e){let t=ae(Ic);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ac),t}return t}function Nc(e,t){return zl(t.type,Tc,e,t)}Ic.displayName="ComboboxDataContext";let Rc=m,Dc=lc((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(Nc,{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),w=re(null),g=re(null),y=Fl(((e,t)=>e===t)),b=ie((e=>zl(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:w,optionsRef:g,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]);Ml((()=>{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=Wl(e))?void 0:n.body)&&zl(t,{0:()=>e.matches(Yl),1(){let t=e;for(;null!==t;){if(t.matches(Yl))return!0;t=t.parentElement}return!1}})}(a,Jl.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),Xl("click",(e=>o(e,(e=>e.target))),!0),Xl("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=Fl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Fl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:rc.Specific,id:t})}})),T=Fl((()=>{f({type:0}),d.current=!0})),E=Fl((()=>{f({type:1}),d.current=!1})),k=Fl(((e,t,n)=>(d.current=!1,e===rc.Specific?f({type:2,focus:rc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Fl(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Fl((e=>zl(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})),[]);Ml((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Ml(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(Ec.Provider,{value:N},ze.createElement(Ic.Provider,{value:v},ze.createElement(yc,{value:zl(v.comboboxState,{0:gc.Open,1:gc.Closed})},null!=n&&null!=r&&dc({[n]:r}).map((([e,t])=>ze.createElement(mc,{features:hc.Hidden,...cc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),ac({ourProps:R,theirProps:l,slot:x,defaultTag:Rc,name:"Combobox"}))))})),Mc=lc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Ac("Combobox.Input"),c=kc("Combobox.Input"),f=nc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${jl()}`,p=Gl();Ml((()=>{d.current.displayValue=a}),[a,d]);let h=Fl((e=>{switch(e.key){case bc.Backspace:case bc.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(rc.Nothing))}));break;case bc.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 bc.ArrowDown:return e.preventDefault(),e.stopPropagation(),zl(l.comboboxState,{0:()=>{c.goToOption(rc.Next)},1:()=>{c.openCombobox()}});case bc.ArrowUp:return e.preventDefault(),e.stopPropagation(),zl(l.comboboxState,{0:()=>{c.goToOption(rc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(rc.Last)}))}});case bc.Home:case bc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(rc.First);case bc.End:case bc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(rc.Last);case bc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case bc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Fl((e=>{c.openCombobox(),null==i||i(e)})),w=Pl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return ac({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":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Oc=lc((function(e,t){var n;let r=Ac("Combobox.Button"),o=kc("Combobox.Button"),i=nc(r.buttonRef,t),a=`headlessui-combobox-button-${jl()}`,s=Gl(),u=Fl((e=>{switch(e.key){case bc.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 bc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(rc.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case bc.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=Fl((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=Pl((()=>{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 ac({ourProps:{ref:i,id:a,type:ec(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"})})),Pc=lc((function(e,t){let n=Ac("Combobox.Label"),r=`headlessui-combobox-label-${jl()}`;return ac({ourProps:{ref:nc(n.labelRef,t),id:r,onClick:Fl((()=>{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"})})),Bc=oc.RenderStrategy|oc.Static,Gc=lc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Ac("Combobox.Options"),a=nc(i.optionsRef,t),s=`headlessui-combobox-options-${jl()}`,u=ae(wc),l=null!==u?u===gc.Open:0===i.comboboxState;Ml((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Ml((()=>{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]),Ml((()=>{if(!e||!r)return;let t=Wl(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=Pl((()=>{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 ac({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:Bc,visible:l,name:"Combobox.Options"})})),Fc=lc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Ac("Combobox.Option"),u=kc("Combobox.Option"),l=`headlessui-combobox-option-${jl()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=Ol({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=nc(t,d),h=Fl((()=>u.selectOption(l)));Ml((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);Ml((()=>{if(!s.__demoMode)return;let e=Bl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Ml((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=Bl();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 w=Fl((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),g=Fl((()=>{if(o)return u.goToOption(rc.Nothing);u.goToOption(rc.Specific,l)})),y=Fl((()=>{o||c||u.goToOption(rc.Specific,l,0)})),b=Fl((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(rc.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return ac({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:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Lc=Object.assign(Dc,{Input:Mc,Button:Oc,Label:Pc,Options:Gc,Option:Fc});class Vc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Hc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Uc(e){const t=As(e,1);return p(Lc.Input,t)}class jc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function zc(e,t){const n=As(e,1);return p(Lc.Options,n,...t)}class Wc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function Yc(e){const t=As(e,1);return p(Lc.Button,t)}class Kc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class qc extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class Zc extends Ft{constructor(e){super(),this.ResidencyStatus=e}}function Jc(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)?al(e):sl(e)}function Xc(e){return new Zc(Jc(e.ResidencyStatus.Value))}function Qc(e,t,n){let r,o;const i=ir(""),a=e=>{let t,n;return dn((n=js(e),t=1===n.tag?void 0:n.fields[0],null==t?void 0:t.Name),"")};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 No(e.comparer,yo(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=As(e,1);return p(Lc,t)}(Gn([new Vc(0,a(e)),new Vc(1,n),new Vc(2,[p("div",mt(Gn([["className","relative mt-1"],(r=[p("div",mt(Gn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Uc(Gn([new Hc(0,a(e)),new Hc(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 Hc(1,(e=>{i[1](e.target.value)})),new Hc(3,"off")])),Yc(Gn([new Wc(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new Wc(1,[Kn])]))],["children",Vn.Children.toArray(Array.from(o))])]))),zc(In(new jc(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")),Hr(Br((()=>zr(0===Mo(s)?Lr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Vn.Children.toArray(["Nothing found"])})):Fr(),Br((()=>eo((e=>{const t=e,n=t[0];return Lr(function(e){const t=As(e,1);return p(Lc.Option,t)}(Gn([new Kc(0,n),new Kc(1,n),new Kc(2,"relative cursor-default select-none"),new Kc(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",Vn.Children.toArray(Array.from(r))])])))])]))}function ef(e){let t;const n=rl((r=e.InitialValue,[Xc(new Zc(sl(r))),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n;if(1===e.tag){let t;const n=js(dn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],Xc(new Zc(sl(null==t?Ws:Ys(t))))}return Xc(new Zc(sl((n=e.fields[0].Value,null==n?void 0:function(e){switch(e){case"AustralianResidentForTaxPurposes":return new zs(0);case"ForeignResidentForTaxPurposes":return new zs(1);case"WorkingHolidayMaker":return Ws;default:return}}(n)))))}(t);return e(r.ResidencyStatus),[r,zu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(In((t=Hr(Br((()=>zr(Lr(fl("Are you an Australian resident for tax purposes or a working holiday maker?")),Br((()=>{let e,t;return zr(Lr(p(xl,(e=Ln((e=>[ul(e[0]),e[1],e[2]]),Gn([[new zs(0),"Australian resident for tax purposes",void 0],[new zs(1),"Foreign resident",void 0],[new zs(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:(t=o.ResidencyStatus.Value,null==t?void 0:ul(t)),Name:"ResidencyStatus",OnUpdate:e=>{i(new qc(0,e))},ValueLabelPairs:e}))),Br((()=>{let e,t;const n=o.ResidencyStatus.Value;let r,a;switch(null!=n&&2===n.tag?(r=0,a=n.fields[0]):r=1,r){case 0:return Lr(p("div",mt(Gn([["className",Xt(" ",["mt-4"])],(e=[fl("Your home country where your visa was issued"),Qc(dn((t=a.HomeCountry,null==t?void 0:t.Code),""),Vs,(e=>{i(new qc(1,al(e)))}))],["children",Vn.Children.toArray(Array.from(e))])]))));case 1:return Lr(null)}})))})))))),["children",Vn.Children.toArray(Array.from(t))]))))}class tf 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 nf 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 rf(e){switch(e.tag){case 1:case 2:case 4:default:return al(e);case 3:return il()}}function of(e,t){let n;if(0===t.tag){const r=t.fields[0];let o;const i=r.TfnInformation;if(1===i.tag){const e=function(e){switch(e){case 0:return new Yo(0,new Zs(0));case 1:return new Yo(0,new Zs(1));case 2:return new Yo(0,new Zs(2));default:return new Yo(1,"Invalid ExemptionReason")}}(i.fields[0]);o=1===e.tag?new Yo(1,e.fields[0]):new Yo(0,new Cl(1,new Sl(1,e.fields[0])))}else o=new Yo(0,new Cl(0,i.fields[0]));if(1===o.tag)return new Yo(1,o.fields[0]);{const t=ru(r.ResidencyStatusV2);if(1===t.tag)return new Yo(1,t.fields[0]);{const i=t.fields[0],a=1===i.tag||2===i.tag?new $l(1):r.IsTaxFreeThresholdClaimed?new $l(0):new $l(1),s=su(r.HasDebtSupport);if(1===s.tag)return new Yo(1,s.fields[0]);{const t=s.fields[0],u=ou(r.EmploymentBasis);return 1===u.tag?new Yo(1,u.fields[0]):new Yo(0,new nf(e.PreExistingTfnDec,e.CurrentAlert,al(o.fields[0]),al((n=r.PreviousSurname,null==n?void 0:new Js(0,n))),Jc(i),ml(a),An(t)?al(void 0):al(t),rf(u.fields[0])))}}}}{const n=t.fields[0];let r,o;const i=n.ResidencyStatusV2;if(o=null==i?void 0:ru(i),null!=o){const e=o;r=1===e.tag?new Yo(1,e.fields[0]):new Yo(0,e.fields[0])}else r=new Yo(0,void 0);if(1===r.tag)return new Yo(1,r.fields[0]);{const t=ou(n.EmploymentBasis);return 1===t.tag?new Yo(1,t.fields[0]):new Yo(0,new nf(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,Jc(r.fields[0]),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,rf(t.fields[0])))}}}class af extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function sf(){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 Yo(0,new af(2,r[0]));case 1:return new Yo(0,new af(0));case 2:return new Yo(0,new af(1));case 3:return new Yo(1,"Could not determine the embed mode")}}class uf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function lf(){let e;const t=sf();var n;0===t.tag&&(0===t.fields[0].tag?qr((e=>{window.parent.location.href=e}),fn((n=new uf(0),ln(sessionStorage.getItem(function(e){return Bt(e)}(n)))))):1===t.fields[0].tag?qr((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 cf(e,t){let n;switch(e.tag){case 1:return[new nf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 2:{const r=e.fields[0];return[new nf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?zu():1===n.tag?Wu(new tf(3,new pl(1,new $l(1),!1))):2===n.tag?Wu(new tf(3,new pl(1,new $l(1),!0))):Wu(new tf(3,new pl(1,new $l(0),!1))))]}case 3:return[new nf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,wl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 4:return[new nf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),zu()];case 5:{const n=(r=cl,null!=(o=e.fields[0].Value)?r(un(o)):void 0);return[new nf(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new ol(n,{Valid:null!=n})),zu()]}case 6:{const n=e.fields[0],r=new nf(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Wu(new tf(7,new Fu(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"));qr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),fn(n))}();const i=Wu(new tf(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=$n((e=>of(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 nf(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 8:return[new nf(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 9:return[new nf(new wr(2,new Yo(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()];case 10:return function(){const e=sf();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(En()))}(),[t,zu()];default:return[new nf(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),zu()]}var r,o}class ff extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class df extends Ft{constructor(e,t){super(),this.Text=e,this.Meta=t}}class $f extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function pf(e){let t;const n=rl(function(e,t){const n=dn(e,"");return[new df(n,{Touched:!1,Valid:t(n)}),zu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new df(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new df(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new ol(o.Text,{Valid:o.Meta.Valid})),[o,zu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Gn([["className",Xt(" ",Fn(e.AdditionalWrapperClasses,In("z-10")))],(t=Hr(Br((()=>zr(Lr(p("input",mt(Hr(Br((()=>zr(Lr(["className",Xt(" ",Fn(e.AdditionalInputClasses,Fn(Gn(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),Hr(Br((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Fr()))))))]),Br((()=>zr(Lr(["type","text"]),Br((()=>zr(Lr(["onChange",t=>{const n=t.target.value;o(new ff(0,1===e.InputType.tag?n:nn(Es,n)))}]),Br((()=>{let t;return zr(Lr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Br((()=>zr(Lr(["onBlur",e=>{o(new ff(1))}]),Br((()=>zr(ct(e.InputType,new $f(0))?Lr(["inputMode","numeric"]):Fr(),Br((()=>Lr(["data-testid",e.TestId]))))))))))}))))))))))))))),Br((()=>!r.Meta.Valid&&r.Meta.Touched?Lr(p("div",{className:Xt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Fr())))))),["children",Vn.Children.toArray(Array.from(t))])])))}class hf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class mf extends Ft{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function wf(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function gf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new mf(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:!1})):1===t.tag?new mf(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:!0})):new mf(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:dn($n((e=>wf(e.fields[0])),e.Data.Value),!1)}))}function yf(e){let t;const n=rl((r=e.InitialValue,[gf(new mf(ml(new $l(null==r?1:0)),new ol(r,{Valid:!1}))),zu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return gf(1===e.tag?(n=e.fields[0],new mf(t.YesNoButtonGroup,new ol($n((e=>new Js(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new ol(void 0,t.Data.Meta):t.Data,new mf(wl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,zu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return p("div",mt(Gn([["className",Xt(" ",Zn)],(t=Hr(Br((()=>zr(Lr(fl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Br((()=>zr(Lr(p(yl,{Disable:void 0,Dispatch:e=>{i(new hf(0,e))},State:o.YesNoButtonGroup})),Br((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Lr(p("div",mt(Gn([["className",Xt(" ",["mt-4"])],(e=[fl("Enter your previous surname"),p(pf,{AdditionalInputClasses:Gn(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:In("mt-1"),InitialValue:$n(Xs,o.Data.Value),InputType:new $f(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new hf(1,e))},TestId:"surname-input",Validator:wf})],["children",Vn.Children.toArray(Array.from(e))])]))));case 1:return Lr(null)}}))))))))),["children",Vn.Children.toArray(Array.from(t))])])))}const bf=Gn(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),vf=Gn(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),xf=Gn(["text-sm","text-primary-base","leading-3","font-medium"]),_f=Gn(["ml-6","flex","items-center"]),Sf=Gn(["pt-1","pb-3","prose","prose-sm","text-gray-500","text-sm"]);function Cf(e){let t,n,r,o;const i=e.content,a=e.title,s=ir(!0),u=s[0];return p("div",mt(Gn([["className",Xt(" ",bf)],(t=[(n=In(p("button",mt(Gn([["type","button"],["className",Xt(" ",vf)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Xt(" ",xf),children:a}),p("span",mt(Gn([["className",Xt(" ",_f)],(o=Hr(Br((()=>Lr(u?Wn:zn)))),["children",Vn.Children.toArray(Array.from(o))])])))],["children",Vn.Children.toArray(Array.from(r))])])))),p("h3",{children:Vn.Children.toArray(Array.from(n))})),p("div",{className:Xt(" ",Fn(Sf,Hr(Br((()=>u?Lr("hidden"):Fr()))))),children:Vn.Children.toArray([i])})],["children",Vn.Children.toArray(Array.from(t))])])))}class Tf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Ef extends Ft{constructor(e){super(),this.Selected=e}}function kf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(_n(o))return;if(e(Cn(o)))return r;t=r+1,n=Tn(o)}})(0,t)}((t=>e===t),t.Selected)}function If(e,t,n){const r=function(e,t){const n=e.fields[0];return kf(n,t)?new Ef(function(e,t){const n=vn(),r=Mn(((t,n)=>{if(e(n)){const e=new yn(n,void 0);return t.tail=e,e}return t}),n,t),o=vn();return r.tail=o,Tn(n)}((e=>n!==e),t.Selected)):new Ef(Fn(In(n),t.Selected))}(t,n);return e(r.Selected),[r,zu()]}function Af(e){let t;const n=rl((r=e.InitialValue,[new Ef(r),zu()]),((t,n)=>If(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Gn([["className",Xt(" ",["space-y-2","mt-2"])],(t=Hr(Br((()=>eo((e=>{let t,r,o;const i=e[0];return Lr(p("div",mt(Gn([["className",Xt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Tf(0,i))}],(t=[p("div",mt(Gn([["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:kf(i,n[0])})],["children",Vn.Children.toArray(Array.from(r))])]))),p("div",mt(Gn([["className",Xt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Xt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Vn.Children.toArray(Array.from(o))])])))],["children",Vn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Vn.Children.toArray(Array.from(t))])])))}class Nf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Rf extends Gt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Df extends Ft{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Mf(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Df(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Df(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:!0}),e.DisableReason):new Df(e.YesNoButtonGroup,new ol(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Sn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function Of(e){let t;const n=rl(function(e,t,n){let r;const o=e.Value;let i,a;switch(i=null==o||An(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 Rf(0);break;case 2:a=new Rf(1);break;case 3:a=void 0}const l=null==a?zu():Wu(new Nf(0,new pl(1,new $l(1),!0)));return[Mf(new Df(ml(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 Mf(1===e.tag?new Df(t.YesNoButtonGroup,al(e.fields[0]),t.DisableReason):(n=e.fields[0],n.tag,r=1===n.fields[0].tag?al(void 0):t.Data,new Df(wl(n,t.YesNoButtonGroup),r,t.DisableReason)))}(t,n);return e(r.Data),[r,zu()]}(e.OnUpdate,t,n)),[e.TfnInfo,e.ResidencyStatus]),r=n[0],o=n[1];return p("div",mt(Gn([["className",Xt(" ",Zn)],(t=Hr(Br((()=>zr(Lr(fl("Do you have any outstanding study and training support loans?")),Br((()=>zr(Lr(p(yl,{Disable:$n((e=>new $l(0)),r.DisableReason),Dispatch:e=>{o(new Nf(0,e))},State:r.YesNoButtonGroup})),Br((()=>{let t;return zr((t=r.DisableReason,null!=t?1===t.tag?Lr(dl("Working holiday makers are ineligible for study and training support loans.")):Lr(dl("You must provide your TFN to declare any outstanding study and training support loans.")):Lr(null)),Br((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let a;switch(a=null!=i&&0===i.tag?0:1,a){case 0:return Lr(p("div",mt(Gn([["className",Xt(" ",["mt-4"])],(t=[p(Af,(n=Ln((e=>[Bt(e[0]),e[1]]),Gn([[new Hs(0),"Higher Education Loan Program (HELP)"],[new Hs(1),"VET Student Loan (VSL)"],[new Hs(2),"Financial Supplement (FS)"],[new Hs(3),"Student Start-up Loan (SSL)"],[new Hs(4),"Trade Support Loan (TSL)"]])),{InitialValue:dn($n((e=>Ln(Bt,e)),e.InitialValue.Value),En()),OnUpdate:e=>{o(new Nf(1,function(e,t){const n=vn(),r=Mn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new yn(un(r),void 0);return t.tail=e,e}}),n,t),o=vn();return r.tail=o,Tn(n)}(ll,e)))},ValueLabelPairs:n}))],["children",Vn.Children.toArray(Array.from(t))])]))));case 1:return Lr(null)}})))}))))))))),["children",Vn.Children.toArray(Array.from(t))])])))}function Pf(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 Bf(){return p("hr",{className:Xt(" ",["my-8"])})}const Gf=p("div",mt(Gn([["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",Vn.Children.toArray(Array.from(e))]})()]))),Ff=p("div",mt(Gn([["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",Vn.Children.toArray(Array.from(e))]})()])));function Lf(e){const t=e.backendUrl,n=e.accessToken,r=rl([new nf(new wr(0),void 0,il(),al(void 0),al(new zs(0)),ml(new $l(0)),al(void 0),al(new Ks(0))),zu()],cf),o=r[0],i=r[1];nr(gr((()=>Bu(n,t)),(e=>{i(new tf(6,e))})),[]);const a=ir(new wr(0)),s=a[0],u=gr((()=>function(e,t,n,r){let o;const i=Gu(e,t,n);return o=cr.Bind(i,(e=>{let t;const n=e;return 1===n.tag||r(new Fu(0,"Your tax declaration has been saved.")),t=n,cr.Return(t)})),cr.Bind(o,(e=>{let t;const n=e;return 1===n.tag&&r(new Fu(1,"There was an error saving your tax declaration. Please try saving again.")),t=n,cr.Return(t)}))}(o,n,t,(e=>{i(new tf(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&&(mr(cr.Delay((()=>cr.Bind(hr(400),(()=>(lf(),cr.Zero())))))),i(new tf(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Hr(Br((()=>{let e,t;return zr((e=o.CurrentAlert,null==e?Lr(null):(t=e,Lr(p(Uu,{alert:t,hideAlert:()=>{i(new tf(8))}})))),Br((()=>zr(Lr(p("h3",{className:Xt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Br((()=>zr(Lr(p(Dl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new tf(0,e))}})),Br((()=>zr(Lr(Bf()),Br((()=>zr(Lr(p(yf,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new tf(1,e))}})),Br((()=>zr(Lr(Bf()),Br((()=>zr(Lr(p(ef,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new tf(2,e))}})),Br((()=>zr(Lr(p(Cf,{title:"About residency",content:Gf})),Br((()=>zr(Lr(Bf()),Br((()=>{let e,t;return zr(Lr(p("div",mt(Gn([["className",Xt(" ",Zn)],(e=[fl("Would you like to claim the tax-free threshold from this employer?"),p(yl,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new $l(0)),Dispatch:e=>{i(new tf(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Vn.Children.toArray(Array.from(e))])])))),Br((()=>{let e;return zr((e=o.ResidencyStatus.Value,null!=e?2===e.tag?Lr(dl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?Lr(dl("Foreign residents are ineligible to claim the tax-free threshold.")):Lr(null):Lr(null)),Br((()=>zr(Lr(p(Cf,{title:"About the tax-free threshold",content:Ff})),Br((()=>zr(Lr(Bf()),Br((()=>zr(Lr(p(Of,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new tf(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),Br((()=>zr(Lr(Bf()),Br((()=>zr(Lr(fl("On what basis are you paid?")),Br((()=>zr(Lr(p("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),Br((()=>{let e,t;return zr(Lr(p(xl,(e=Ln((e=>[Bt(e[0]),e[1],e[2]]),Gn([[new Ks(0),"Full-time",void 0],[new Ks(1),"Part-time",void 0],[new Ks(2),"Labour Hire",void 0],[new Ks(4),"Casual",void 0]])),{InitialValue:(t=o.EmploymentBasisRadioButtonGroup.Value,null==t?void 0:Bt(t)),Name:"EmploymentBasis",OnUpdate:e=>{i(new tf(5,e))},ValueLabelPairs:e}))),Br((()=>zr(Lr(Bf()),Br((()=>zr(Lr(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."})),Br((()=>{let e;return Lr(p("div",mt(Gn([["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:!Pf(o,s),onClick:e=>{Pf(o,s)&&u()},children:"Save and continue","data-testid":"continue-button"})],["children",Vn.Children.toArray(Array.from(e))])]))))})))))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return p("form",{children:Vn.Children.toArray(Array.from(e))})}}}function Vf(){return(Vf=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 Hf(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 Uf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Hf,Vf({},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[jf(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(Yf,{name:l},u):r[i]=u}var c=n?p(Yf,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?B:P)(this._vdom,this._root)}function jf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function zf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[jf(e)]=n,this._vdom=G(this._vdom,r),P(this._vdom,this._root)}}function Wf(){P(this._vdom=null,this._root)}function Yf(e,t){var n=this;return p("slot",Vf({},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 Kf(e){let t;return p("div",mt(Gn([["className",Xt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[Hn]}),p(Lf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Vn.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=Uf,o.prototype.attributeChangedCallback=zf,o.prototype.disconnectedCallback=Wf,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(Kf,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(280),n(118)})();
|
|
1
|
+
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),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),w=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("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.mb-10{margin-bottom:2.5rem}.ml-auto{margin-left:auto}.mt-2{margin-top:.5rem}.ml-3{margin-left:.75rem}.mt-7{margin-top:1.75rem}.ml-6{margin-left:1.5rem}.mt-1{margin-top:.25rem}.mt-0\\.5{margin-top:.125rem}.mt-0{margin-top:0}.mb-0\\.5{margin-bottom:.125rem}.mb-0{margin-bottom:0}.-ml-px{margin-left:-1px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-4{height:1rem}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-none{flex:none}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity))}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-red-50{--tw-bg-opacity:1;background-color:rgb(254 242 242/var(--tw-bg-opacity))}.bg-green-50{--tw-bg-opacity:1;background-color:rgb(240 253 244/var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity:1;background-color:rgb(239 246 255/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.p-0\\.5{padding:.125rem}.p-0{padding:0}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pt-1{padding-top:.25rem}.pb-3{padding-bottom:.75rem}.pr-10{padding-right:2.5rem}.pl-2{padding-left:.5rem}.pr-4{padding-right:1rem}.pl-3{padding-left:.75rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-bold{font-weight:700}.leading-5{line-height:1.25rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-amber-400{--tw-text-opacity:1;color:rgb(251 191 36/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-amber-700{--tw-text-opacity:1;color:rgb(180 83 9/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 78 216/var(--tw-text-opacity))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity))}.text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:py-2{padding-bottom:.5rem;padding-top:.5rem}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var 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]}},280:(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 w(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(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?g(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?g(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,w,y,b,v,x=r&&r.__k||c,S=x.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(w=n.__k[d]=null==(w=t[d])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(m,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(p=x[d])||p&&w.key==p.key&&w.type===p.type)x[d]=void 0;else for($=0;$<S;$++){if((p=x[$])&&w.key==p.key&&w.type===p.type){x[$]=void 0;break}p=null}A(e,w,p=p||l,o,i,a,s,u,f),y=w.__e,($=w.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,w),v.push($,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===p.__k?w.__d=u=_(w,u,e):u=C(e,w,p,x,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=g(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=g(r,d+1)),O(x[d],x[d]));if(v)for(d=0;d<v.length;d++)M(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,g,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 w(b,_),f.constructor=E,f.render=D),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,g)}))}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||(g=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,w=0;if("svg"===m&&(i=!0),null!=a)for(;w<a.length;w++)if((c=a[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[w]=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={},w=0;w<e.attributes.length;w++)p[e.attributes[w].name]=e.attributes[w].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(w=t.props.children,x(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&g(n,0),u),null!=a)for(w=a.length;w--;)null!=a[w]&&$(a[w]);u||("value"in h&&void 0!==(w=h.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==p.value)&&E(e,"value",w,p.value,!1),"checked"in h&&void 0!==(w=h.checked)&&w!==e.checked&&E(e,"checked",w,p.checked,!1))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function O(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(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]&&O(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function D(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 G(e,t){P(e,t,G)}function B(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,w.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))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},w.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 w).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 we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ge(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=we,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 w).__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 w).__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)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Me=o.event;function Oe(){}function De(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return Me&&(e=Me(e)),e.persist=Oe,e.isPropagationStopped=De,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Ge,Be={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&&(Be.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Ie,Fe&&Fe(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Ge=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Ge.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?B.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 G(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:w,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:ge,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"function"==typeof e.GetHashCode}function Ke(e){return null!=e&&"function"==typeof e.Dispose}function qe(e){Ke(e)&&e.Dispose()}function Ze(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Je{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Xe(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Je(e[Symbol.iterator]())}function Qe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class et{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function tt(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function nt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function rt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class ot{static id(e){return ot.idMap.has(e)||ot.idMap.set(e,++ot.count),ot.idMap.get(e)}}function it(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function at(e){return 2654435761*e|0}function st(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function ut(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return at(e);case"string":return it(e);default:if(Ye(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return st(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>ut(e)));return st(t)}return at(ot.id(e))}}function lt(e){return null==e?0:Ye(e)?e.GetHashCode():at(ot.id(e))}function ct(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function ft(e,t){return ct(e,t,dt)}function dt(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)&&ft(e,t):e instanceof Date?t instanceof Date&&0===$t(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!dt(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function $t(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+nt(e),r=t.getTime()+nt(t)),n===r?0:n<r?-1:1}function pt(e,t){return e===t?0:e<t?-1:1}function ht(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,mt)}function mt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?ht(e,t):-1:e instanceof Date?t instanceof Date?$t(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=mt(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function wt(e,t,n){return e(t,n)>0?t:n}function gt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}ot.idMap=new WeakMap,ot.count=0;const yt=Symbol("curried");function bt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[yt]=t,n}function vt(e,t,n){return r=>1===t?n(...e.concat([r])):vt(e.concat([r]),t-1,n)}function xt(e,t,n){if(null!=t){if(yt in t){t=t[yt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return vt(n,e,t)}}function _t(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+tt(~~(e/36e5),2)+":"+tt(n,2)}function St(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 Ct(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function Tt(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+_t(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Ct(i,t,!0);switch(t){case"D":case"d":return St(i,"first");case"T":case"t":return St(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+_t(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 Ct(e,t,n);switch(t){case"D":case"d":return n?St(e,"first"):e.toLocaleDateString();case"T":case"t":return n?St(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return tt(e.getFullYear(),4)+"-"+tt(e.getMonth()+1,2)+"-"+tt(e.getDate(),2)+"T"+tt(e.getHours(),2)+":"+tt(e.getMinutes(),2)+":"+tt(e.getSeconds(),2)+"."+tt(e.getMilliseconds(),3)+(t?_t(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Et(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function kt(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 It(e,t){try{return t.contents=function(e,t=!1){const[n,r]=kt(e),o=null!=r?t&&"Z"===r?1:2:0;return Et(n.getTime(),o)}(e),!0}catch(e){return!1}}const At=Symbol("numeric");function Nt(e){return"number"==typeof e||(null==e?void 0:e[At])}function Rt(e,t){return"number"==typeof e?e*t:e[At]().multiply(t)}function Mt(e,t){return"number"==typeof e?e.toFixed(t):e[At]().toFixed(t)}function Ot(e,t){return"number"==typeof e?e.toPrecision(t):e[At]().toPrecision(t)}function Dt(e,t){return"number"==typeof e?e.toExponential(t):e[At]().toExponential(t)}function Pt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[At]().toHex()}function Gt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Bt(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Ft(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+=Ft(r);else{if(100===t){n+="; ...";break}n+="; "+Ft(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+" = "+Ft(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Lt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Ft(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Ft(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>ut(e)));return e.splice(0,0,at(this.tag)),st(e)}Equals(e){return this===e||!!Ze(this,e)&&this.tag===e.tag&&ft(this.fields,e.fields)}CompareTo(e){return this===e?0:Ze(this,e)?this.tag===e.tag?ht(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Vt{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+" = "+Ft(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>ut(e)));return st(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ze(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!dt(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Ze(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=mt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Ht{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class Ut{constructor(e){this.message=e}}function jt(e){return function(e){return e instanceof Ut||e instanceof Error}(e)?e:new Error(String(e))}const zt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Wt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Yt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Kt(e){return{input:e,cont:(t=e,e=>{zt.lastIndex=0;const n=[],r=[];let o=0,i=zt.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=zt.lastIndex,zt.lastIndex-=1,i=zt.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Qt(e,n,r))})};var t}function qt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Zt(e){return qt((e=>e),e)}function Jt(e){return qt((e=>{throw new Error(e)}),e)}function Xt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Nt(e))switch("x"!==o.toLowerCase()&&(Yt(e,0)?(e=Rt(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Mt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Ot(e,r):Ot(e);break;case"e":case"E":e=null!=r?Dt(e,r):Dt(e);break;case"x":e=Pt(e);break;case"X":e=Pt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Tt(e):Ft(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=tn(e,n-i.length,a,o)):tn(i+e,n,a,o)}return e}function Qt(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+=Xt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Qt(e,s,u,a,o)}}function en(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function tn(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 nn(e,t,n){return tn(e,t,n)}function rn(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(Gt),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 on(e,t){return t.split("").filter((t=>e(t))).join("")}var an=n(118);const sn="Collection was empty.";class un{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(e){return null!=e&&dt(this.value,e instanceof un?e.value:e)}CompareTo(e){return null==e?1:mt(this.value,e instanceof un?e.value:e)}}function ln(e){return null==e||e instanceof un?new un(e):e}function cn(e){if(null==e)throw new Error("Option has no value");return e instanceof un?e.value:e}function fn(e){return null==e?void 0:e}function dn(e){return null==e?null:cn(e)}function $n(e){return null==e?[]:[cn(e)]}function pn(e,t){return null!=e?cn(e):t}function hn(e,t){return null!=t?ln(e(cn(t))):void 0}function mn(e,t){return"function"==typeof e?new e(t):new Array(t)}function wn(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=mn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function yn(e,t,n){return function(e,t,n,r,o){const i=0|pn(n,0),a=0|pn(hn((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 bn(e,t,n){return n.reduce(e,t)}class vn extends Vt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+en("; ",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(dt(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)+ut(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|mt(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 xn(this)}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Xe(this)}}class xn{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 _n(){return new vn(null,void 0)}function Sn(e,t){return new vn(e,t)}function Cn(e){return null==e.tail}function Tn(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 En(e){if(null!=e.tail)return e.head;throw new Error(sn+"\\nParameter name: list")}function kn(e){const t=e.tail;if(null!=t)return t;throw new Error(sn+"\\nParameter name: list")}function In(){return _n()}function An(e,t){return Sn(e,t)}function Nn(e){return Sn(e,_n())}function Rn(e){return Cn(e)}function Mn(e){return En(e)}function On(e){return kn(e)}function Dn(e){const t=0|Tn(e),n=wn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(Cn(o))break;n[r]=En(o),e=r+1,t=kn(o)}})(0,e),n}function Pn(e,t,n){let r=t,o=n;for(;!Cn(o);)r=e(r,En(o)),o=kn(o);return r}function Gn(e){return Pn(((e,t)=>Sn(t,e)),_n(),e)}function Bn(e,t){Pn(((t,n)=>{e(n)}),void 0,t)}function Fn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=Sn(e[t],n);return n}function Ln(e){return Fn(e,_n())}function Vn(e,t){return Pn(((e,t)=>Sn(t,e)),t,Gn(e))}function Hn(e,t){const n=_n(),r=Pn(((t,n)=>{const r=new vn(e(n),void 0);return t.tail=r,r}),n,t),o=_n();return r.tail=o,kn(n)}const Un=ze,jn=Ft(an.Z),zn=p("svg",gt(Ln([["className",en(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Nn(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",Un.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",gt(Ln([["className",en(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Nn(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",Un.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",gt(Ln([["className",en(" ",["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=Nn(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Un.Children.toArray(Array.from(e))]})()]))),Kn=p("svg",gt(Ln([["className",en(" ",["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=Nn(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Un.Children.toArray(Array.from(e))]})()]))),qn=p("svg",gt(Ln([["className",en(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Nn(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",Un.Children.toArray(Array.from(e))]})()]))),Zn=p("svg",gt(Ln([["className",en(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Nn(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",Un.Children.toArray(Array.from(e))]})()]))),Jn=p("svg",gt(Ln([["className",en(" ",["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=Nn(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",Un.Children.toArray(Array.from(e))]})()]))),Xn=Ln(["flex","flex-col","align-center"]),Qn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)},er=e=>{ne((()=>{const t=e();return()=>{t.Dispose()}}))};function tr(e){return{Dispose(){e()}}}function nr(e){return Un.useState(e)}function rr(e,t){Qn(e,t)}function or(e,t){Qn((t=>(e(),tr((()=>{})))),t)}function ir(e){return Un.useRef(e)}function ar(e){const t=ir(e),n=function(e,n){const r=pn([],[]);return Un.useCallback((e=>t.current(e)),r)}();var r;return r=()=>{t.current=e},er((e=>(r(),tr((()=>{}))))),n}function sr(e){return Un.useState(e)}class ur{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 lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,lr.prototype)}}class cr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>cr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function fr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new lr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(jt(e))}}));else try{e(t)}catch(e){t.onError(jt(e))}}}const dr=new class{Bind(e,t){return function(e,t){return fr((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(jt(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 fr((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 fr((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return fr((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 fr((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(jt(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 fr((e=>e.onSuccess(void 0)))}};function $r(e){}function pr(e){const t=new ur("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function hr(e){e.cancel()}const mr=new ur;function wr(e){return fr((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new lr)}))}))}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 cr;e({onSuccess:t||$r,onError:n||$r,onCancel:r||$r,cancelToken:o||mr,trampoline:i})}(e,t)}(e,t)}class yr extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function br(e,t){const n=ir(pr());return rr((()=>tr((()=>{hr(n.current)}))),[]),ar((r=>{var o;null!=(o=n.current)&&o.isCancelled||gr(dr.Delay((()=>dr.TryWith(dr.Delay((()=>(t(new yr(1)),dr.Bind(e(r),(e=>(t(new yr(2,e)),dr.Zero())))))),(e=>(t(new yr(3,e)),dr.Zero()))))),n.current)}))}class vr extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class xr extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class _r extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Sr extends Vt{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 Cr extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Tr extends Vt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}function Er(){return e=mt,{Compare:(t,n)=>e(t,n)};var e}const kr="Enumeration already finished.",Ir="Enumeration has not started. Call MoveNext.",Ar="The input sequence has an insufficient number of elements.";function Nr(){throw new Error(Ir)}function Rr(){throw new Error(kr)}class Mr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Xe(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Ft(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{qe(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Or{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Dr(e,t,n){return new Or(e,t,n)}function Pr(e,t,n){let r,o=!1,i=ln(e());const a=()=>{if(null!=i){const e=cn(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Dr((()=>(o||Nr(),null!=r?cn(r):Rr())),(()=>{if(o||(o=!0),null!=i){const e=cn(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Gr(e){return function(e){return new Mr(e)}(e)}function Br(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Xe(e);var t}function Fr(e){return Gr((()=>Xe(e())))}function Lr(e){return Gr((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{if(i=!0,null!=n){const e=n;try{qe(e)}finally{n=void 0}}if(null!=t){const e=t;try{qe(e)}finally{t=void 0}}};return Dr((()=>(o?i&&Rr():Nr(),null!=r?cn(r):Rr())),(()=>{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=ln(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{qe(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Xe(s)):(a(),o=!1)}else t=Xe(e)}return cn(o)}}),(()=>{i||a()}))}(e)))}function Vr(){return Fr((()=>new Array(0)))}function Hr(e){return Fr((()=>function(e,t){const n=mn(void 0,1);return n[0]=e,n}(e)))}function Ur(e){return e instanceof vn?Dn(e):Array.from(e)}function jr(e){return We(e)?Ln(e):e instanceof vn?e:function(e){let t,n;if(We(e))return Ln(e);if(e instanceof vn)return e;{const r=_n();let o=r;const i=Xe(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new vn(e,void 0),t.tail=n,o=n}}finally{qe(i)}const a=o,s=_n();return a.tail=s,kn(r)}}(e)}function zr(e,t,n){return Gr((()=>Pr(e,t,n)))}function Wr(e,t,n){return Gr((()=>{let r=-1;return Pr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Yr(e,t){return Lr([e,t])}function Kr(e,t,n){const r=Br(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function qr(e,t){return function(e,t){return zr((()=>Br(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{qe(e)}))}((t=>e(t)?ln(t):void 0),t)}function Zr(e,t,n){const r=Br(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function Jr(e,t){Zr(((t,n)=>{e(n)}),void 0,t)}function Xr(e,t){return zr((()=>Br(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?ln(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(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 eo(e){return Fr((()=>function(e){return e.slice().reverse()}(Ur(e))))}function to(e,t){return Gr((()=>{const n=Br(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Ar+"\\nParameter name: source");return function(e,t){return Dr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{qe(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw qe(n),e}}))}function no(e,t){return Fr((()=>Lr(Xr(e,t))))}class ro{constructor(e,t){this.k=e,this.v=t}}function oo(e,t){return new ro(e,t)}function io(e){return e.k}function ao(e){return e.v}class so extends ro{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function uo(e,t,n,r,o){return new so(e,t,n,r,o)}function lo(e){return e.left}function co(e){return e.right}function fo(e){return e.h}function $o(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof so){e=$o(n+1,lo(r)),t=co(r);continue e}return n+1|0}return 0|n}}function po(e){return $o(0,e)}function ho(e,t,n,r){let o,i;o=null!=e?e instanceof so?fo(e):1:0,i=null!=r?r instanceof so?fo(r):1:0;const a=0|(o<i?i:o);return 0===a?oo(t,n):uo(t,n,e,r,a+1)}function mo(e,t,n,r){let o,i,a,s,u,l;if(u=null!=e?e instanceof so?fo(e):1:0,l=null!=r?r instanceof so?fo(r):1:0,l>u+2){const a=cn(r);if(a instanceof so){if(o=lo(a),(null!=o?(i=o,i instanceof so?fo(i):1):0)>u+1){const r=cn(lo(a));if(r instanceof so)return ho(ho(e,t,n,lo(r)),io(r),ao(r),ho(co(r),io(a),ao(a),co(a)));throw new Error("internal error: Map.rebalance")}return ho(ho(e,t,n,lo(a)),io(a),ao(a),co(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=cn(e);if(o instanceof so){if(a=co(o),(null!=a?(s=a,s instanceof so?fo(s):1):0)>l+1){const e=cn(co(o));if(e instanceof so)return ho(ho(lo(o),io(o),ao(o),lo(e)),io(e),ao(e),ho(co(e),t,n,r));throw new Error("internal error: Map.rebalance")}return ho(lo(o),io(o),ao(o),ho(co(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return ho(e,t,n,r)}function wo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,io(o));return o instanceof so?i<0?mo(wo(e,t,n,lo(o)),io(o),ao(o),co(o)):0===i?uo(t,n,lo(o),co(o),fo(o)):mo(lo(o),io(o),ao(o),wo(e,t,n,co(o))):i<0?uo(t,n,void 0,r,2):0===i?oo(t,n):uo(t,n,r,void 0,2)}return oo(t,n)}function go(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,io(i));if(0===a)return ln(ao(i));if(i instanceof so){e=r,t=o,n=a<0?lo(i):co(i);continue e}return}return}}function yo(e,t,n,r,o){return t(n,r)?wo(e,n,r,o):o}function bo(e,t,n,r){e:for(;;){const o=e,i=t,a=r;if(null!=n){const s=n;if(s instanceof so){const u=bo(o,i,lo(s),a),l=yo(o,i,io(s),ao(s),u);e=o,t=i,n=co(s),r=l;continue e}return yo(o,i,io(s),ao(s),a)}return a}}function vo(e,t,n){return bo(e,t,n,void 0)}function xo(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof so){xo(n,lo(r)),n(io(r),ao(r)),e=n,t=co(r);continue e}n(io(r),ao(r))}break}}function _o(e,t){xo(e,t)}function So(e,t){if(null!=t){const n=t;if(n instanceof so){const t=So(e,lo(n)),r=e(io(n),ao(n)),o=So(e,co(n));return uo(io(n),r,t,o,fo(n))}return oo(io(n),e(io(n),ao(n)))}}function Co(e,t){return So(e,t)}function To(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=wo(e,o[0],o[1],n)}return n}class Eo extends Vt{constructor(e,t){super(),this.stack=e,this.started=t}}function ko(e){e:for(;;){const t=e;if(Rn(t))return In();{const n=On(t),r=Mn(t);if(null!=r){const o=r;if(o instanceof so){e=Fn([lo(o),oo(io(o),ao(o)),co(o)],n);continue e}return t}e=n;continue e}}}function Io(e){return new Eo(ko(Nn(e)),!1)}function Ao(e){if(e.started){const t=e.stack;if(Rn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Mn(t)){const e=Mn(t);if(e instanceof so)throw new Error("Please report error: Map iterator, unexpected stack for current");return[io(e),ao(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function No(e){let t=Io(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ao(t),"System.Collections.IEnumerator.get_Current":()=>Ao(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Rn(t))return!1;if(null!=Mn(t)){if(Mn(t)instanceof so)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=ko(On(t)),!Rn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Rn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Io(e)},Dispose(){}}}class Ro{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,ut(e[0])),n=0|t(n,ut(e[1]))}}finally{qe(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Ro))return!1;{const t=Xe(this);try{const n=Xe(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!dt(r[0],o[0])||!dt(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(n)}}finally{qe(t)}}}toString(){return"map ["+en("; ",Xr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Wt,((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(Nt(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Mt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Ot(s,i):Ot(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=Mt(Rt(s,100),i)+" %";break;case"d":case"D":s=null!=i?nn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?nn(Pt(s),i,"0"):Pt(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Yt(s,0)&&(s=Rt(s,-1),e="-"),r=null==r?"":r.substring(1),s=Mt(s,Math.max(r.length,0));let[o,i]=s.split(".");i||(i=""),o=nn(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const a=r.replace(/#+$/,"").length;if(a>i.length?i=function(e,t,n){return tn(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?Tt(s,a||o):Ft(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=tn(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 No(this.tree)}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return No(this.tree)}CompareTo(e){const t=this;if(e instanceof Ro)return 0|function(e,t,n){const r=Br(t);try{const t=Br(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{qe(t)}}finally{qe(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:mt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Go(this,e[0])&&dt(Do(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;_o(((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|Po(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Po(this)}get size(){return 0|Po(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Xr((e=>[e[0],e[1]]),this)}get(e){return Do(this,e)}has(e){return Go(this,e)}keys(){return Xr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Xr((e=>e[1]),this)}forEach(e,t){const n=this;Jr((t=>{e(t[1],t[0],n)}),n)}}function Mo(e,t){return new Ro(e,t)}function Oo(e){const t=Er();return Mo(t,function(e,t){if(We(t))return To(e,t);if(t instanceof vn)return function(e,t){return Pn(((t,n)=>wo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Xe(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=wo(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{qe(n)}}}(t,e))}function Do(e,t){return function(e,t,n){const r=go(e,t,n);if(null==r)throw new Error;return cn(r)}(e.comparer,t,e.tree)}function Po(e){return po(e.tree)}function Go(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,io(i));if(i instanceof so){if(a<0){e=r,t=o,n=lo(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 Bo(e,t,n){return function(e,t,n){return Mo(e.comparer,wo(e.comparer,t,n,e.tree))}(n,e,t)}function Fo(e,t){return function(e,t){return go(e.comparer,t,e.tree)}(t,e)}function Lo(e,t){return function(e,t){return Mo(e.comparer,Co(t,e.tree))}(t,e)}function Vo(e){return Oo(e)}function Ho(){return Ro.empty}Ro.empty=Mo(Er(),void 0);const Uo=new Sr("",new vr(0),In(),!1,void 0,void 0,void 0,new _r(0));function jo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:rn(t,[e],null,0);var n}function zo(e){return new Sr(e,Uo.method,Uo.headers,Uo.withCredentials,Uo.overridenMimeType,Uo.overridenResponseType,Uo.timeout,Uo.content)}function Wo(e,t){return new Sr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Yo(e,t){return new Sr(t.url,t.method,Vn(t.headers,Nn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Ko(e){return function(e){return fr((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 Cr(0,n.responseText):new Cr("arraybuffer"===s?2:"blob"===s?1:3,n.response),new Tr(o,e,i,function(e){const t=Er();return Mo(t,To(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=cn(o);r.push(e)}}return r}((e=>{const t=Ln(jo(":",e));return Rn(t)?void 0:[Mn(t).toLocaleLowerCase(),en(":",On(t)).trim()]}),jo("\r\n",n.getAllResponseHeaders()))),a)))};const r=Xe(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const 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(ln(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(ln(s[1].fields[0])):n.send(ln(void 0))}))}new Tr(0,"","",Ho(),new Cr(0,""));class qo extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Zo(e,t){return 0===t.tag?new qo(0,e(t.fields[0])):new qo(1,t.fields[0])}class Jo extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Xo extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Qo{constructor(){this.cache=new Map([])}}function ei(){return new Qo}function ti(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ni(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=Bt(e,a),u=Bt.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)}(ti(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ti(t)}}ei(),ei();const ri=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,oi=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,ii=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ai(e,t){try{return t.contents=function(e){function t(e){return e.replace(oi,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ri.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Gt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(oi.test(n))return t(n);if(ii.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 si;function ui(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 li(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&si.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]=ui(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=ui(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function ci(e,t,n,r,o){try{return o.contents=li(e,t,n,r),!0}catch(e){return!1}}function fi(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 di(e,t){try{return t.contents=function(e){const[t,n]=kt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return fi(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(si||(si={}));var $i=null;try{$i=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 pi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function hi(e){return!0===(e&&e.__isLong__)}pi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},pi.prototype.Equals=function(e){return Hi(this,e)},pi.prototype.CompareTo=function(e){return Wi(this,e)},pi.prototype.toString=function(e){return Bi(this,e)},pi.prototype.toJSON=function(){return Bi(this)},pi.prototype[At]=function(){const e=this;return{multiply:t=>Zi(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 Bi(e.unsigned?e:function(e,t,n){return n?function(e,t){return new pi(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 pi(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}}},pi.prototype.__isLong__,Object.defineProperty(pi.prototype,"__isLong__",{value:!0});var mi={},wi={};function gi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=wi[e])?r:(n=bi(e,(0|e)<0?-1:0,!0),o&&(wi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=mi[e])?r:(n=bi(e,e<0?-1:0,!1),o&&(mi[e]=n),n)}function yi(e,t){if(isNaN(e))return t?Ii:ki;if(t){if(e<0)return Ii;if(e>=Ci)return Oi}else{if(e<=-Ti)return Di;if(e+1>=Ti)return Mi}return e<0?Yi(yi(-e,t)):bi(e%Si|0,e/Si|0,t)}function bi(e,t,n){return new pi(e,t,n)}var vi=Math.pow;function xi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return ki;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 Yi(xi(e.substring(1),t,n));for(var o=yi(vi(n,8)),i=ki,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=Ki(s<8?Zi(i,yi(vi(n,s))):i=Zi(i,o),yi(u))}return i.unsigned=t,i}function _i(e,t){return"number"==typeof e?yi(e,t):"string"==typeof e?xi(e,t):bi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Si=4294967296,Ci=Si*Si,Ti=Ci/2,Ei=gi(1<<24),ki=gi(0),Ii=gi(0,!0),Ai=gi(1),Ni=gi(1,!0),Ri=gi(-1),Mi=bi(-1,2147483647,!1),Oi=bi(-1,-1,!0),Di=bi(0,-2147483648,!1);function Pi(e){return e.unsigned?e.low>>>0:e.low}function Gi(e){return e.unsigned?(e.high>>>0)*Si+(e.low>>>0):e.high*Si+(e.low>>>0)}function Bi(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Fi(e))return"0";if(Li(e)){if(Hi(e,Di)){var n=yi(t),r=Ji(e,n),o=qi(Zi(r,n),e);return Bi(r,t)+Pi(o).toString(t)}return"-"+Bi(Yi(e),t)}for(var i=yi(vi(t,6),e.unsigned),a=e,s="";;){var u=Ji(a,i),l=(Pi(qi(a,Zi(u,i)))>>>0).toString(t);if(Fi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Fi(e){return 0===e.high&&0===e.low}function Li(e){return!e.unsigned&&e.high<0}function Vi(e){return 1==(1&e.low)}function Hi(e,t){return hi(t)||(t=_i(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Ui(e,t){return Wi(e,t)<0}function ji(e,t){return Wi(e,t)>0}function zi(e,t){return Wi(e,t)>=0}function Wi(e,t){if(hi(t)||(t=_i(t)),Hi(e,t))return 0;var n=Li(e),r=Li(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:Li(qi(e,t))?-1:1}function Yi(e){return!e.unsigned&&Hi(e,Di)?Di:Ki(function(e){return bi(~e.low,~e.high,e.unsigned)}(e),Ai)}function Ki(e,t){hi(t)||(t=_i(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,bi((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function qi(e,t){return hi(t)||(t=_i(t)),Ki(e,Yi(t))}function Zi(e,t){if(Fi(e))return e.unsigned?Ii:ki;if(hi(t)||(t=_i(t)),$i)return bi($i.mul(e.low,e.high,t.low,t.high),$i.get_high(),e.unsigned);if(Fi(t))return e.unsigned?Ii:ki;if(Hi(e,Di))return Vi(t)?Di:ki;if(Hi(t,Di))return Vi(e)?Di:ki;if(Li(e))return Li(t)?Zi(Yi(e),Yi(t)):Yi(Zi(Yi(e),t));if(Li(t))return Yi(Zi(e,Yi(t)));if(Ui(e,Ei)&&Ui(t,Ei))return yi(Gi(e)*Gi(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,bi((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function Ji(e,t){if(hi(t)||(t=_i(t)),Fi(t))throw Error("division by zero");var n,r,o;if($i)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?bi((e.unsigned?$i.div_u:$i.div_s)(e.low,e.high,t.low,t.high),$i.get_high(),e.unsigned):e;if(Fi(e))return e.unsigned?Ii:ki;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:bi(e.low,e.high,!0)}(t)),ji(t,e))return Ii;if(ji(t,function(e,t){if(hi(t)&&(t=Pi(t)),0==(t&=63))return e;var n=e.high;return t<32?bi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):bi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ni;o=Ii}else{if(Hi(e,Di))return Hi(t,Ai)||Hi(t,Ri)?Di:Hi(t,Di)?Ai:Hi(n=function(e,t){return hi(t)&&(t=Pi(t)),0==(t&=63)?e:t<32?bi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):bi(0,e.low<<t-32,e.unsigned)}(Ji(function(e,t){return hi(t)&&(t=Pi(t)),0==(t&=63)?e:t<32?bi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):bi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),ki)?Li(t)?Ai:Ri:o=Ki(n,Ji(r=qi(e,Zi(t,n)),t));if(Hi(t,Di))return e.unsigned?Ii:ki;if(Li(e))return Li(t)?Ji(Yi(e),Yi(t)):Yi(Ji(Yi(e),t));if(Li(t))return Yi(Ji(e,Yi(t)));o=ki}for(r=e;zi(r,t);){n=Math.max(1,Math.floor(Gi(r)/Gi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:vi(2,i-48),s=yi(n),u=Zi(s,t);Li(u)||ji(u,r);)u=Zi(s=yi(n-=a,e.unsigned),t);Fi(s)&&(s=Ai),o=Ki(o,s),r=qi(r,u)}return o}const Xi=Ji,Qi=Gi;function ea(e){return e<0?Math.ceil(e):Math.floor(e)}function ta(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Qi(Xi(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 na(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 ta(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*ta(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class ra{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class oa{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 wa(this)}GetHashCode(){return aa(this)}Equals(e){return sa(this,e)}}function ia(e){return null!=e.generics?e.generics:[]}function aa(e){return st([it(e.fullname),...ia(e).map(aa)])}function sa(e,t){return""===e.fullname?""===t.fullname&&ct(Ea(e),Ea(t),(([e,t],[n,r])=>e===n&&sa(t,r))):e.fullname===t.fullname&&ct(ia(e),ia(t),sa)}function ua(e,t,n,r){return new oa(e,t,n,void 0,r)}function la(...e){return new oa("",void 0,void 0,void 0,(()=>e))}function ca(e,t,n,r){const o=new oa(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new ra(o,n,e[n],t)))}));return o}function fa(e){return new oa("Microsoft.FSharp.Core.FSharpOption`1",[e])}function da(e){return new oa("Microsoft.FSharp.Collections.FSharpList`1",[e])}const $a=new oa("System.Object"),pa=(new oa("Microsoft.FSharp.Core.Unit"),new oa("System.Char"),new oa("System.String")),ha=new oa("System.Boolean");function ma(e){if(Array.isArray(e))return e[0];if(e instanceof oa){const t=ya(e);if(null!=t)return ma(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function wa(e){const t=ya(e);return null!=t?wa(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>wa(e))).join(",")+"]"}function ga(e){return null!=ya(e)}function ya(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ba(e){return null!=e.generics&&e.generics.length>0}function va(e){return null!=e.enumCases&&e.enumCases.length>0}function xa(e){return null==e.generics?e:new oa(e.fullname,e.generics.map((()=>$a)))}function _a(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Sa(e){if(va(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Ca(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 Ta(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ea(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ka(e){if(Na(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ia(e){return e instanceof oa?null!=e.cases:e instanceof Lt}function Aa(e){return e instanceof oa?null!=e.fields:e instanceof Vt}function Na(e){return e.fullname.startsWith("System.Tuple")}function Ra(e){return null==e.fields?[]:e.fields}new oa("System.SByte"),new oa("System.Byte"),new oa("System.Int16"),new oa("System.UInt16"),new oa("System.Int32"),new oa("System.UInt32"),new oa("System.Single"),new oa("System.Double"),new oa("System.Decimal");class Ma{constructor(e){this.k=e}}function Oa(e){return new Ma(e)}function Da(e){return e.k}class Pa extends Ma{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ga(e,t,n,r){return new Pa(e,t,n,r)}function Ba(e){return e.left}function Fa(e){return e.right}function La(e){return e.h}function Va(e,t){e:for(;;){const n=t;if(null!=e){const r=e;if(r instanceof Pa){e=Ba(r),t=Va(Fa(r),n+1);continue e}return n+1|0}return 0|n}}function Ha(e){return Va(e,0)}function Ua(e,t,n){let r,o;r=null!=e?e instanceof Pa?La(e):1:0,o=null!=n?n instanceof Pa?La(n):1:0;const i=0|(r<o?o:r);return 0===i?Oa(t):Ga(t,e,n,i+1)}function ja(e,t,n){let r,o,i,a,s,u;if(s=null!=e?e instanceof Pa?La(e):1:0,u=null!=n?n instanceof Pa?La(n):1:0,u>s+2){const i=cn(n);if(i instanceof Pa){if(r=Ba(i),(null!=r?(o=r,o instanceof Pa?La(o):1):0)>s+1){const n=cn(Ba(i));if(n instanceof Pa)return Ua(Ua(e,t,Ba(n)),Da(n),Ua(Fa(n),Da(i),Fa(i)));throw new Error("internal error: Set.rebalance")}return Ua(Ua(e,t,Ba(i)),Da(i),Fa(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=cn(e);if(r instanceof Pa){if(i=Fa(r),(null!=i?(a=i,a instanceof Pa?La(a):1):0)>u+1){const e=cn(Fa(r));if(e instanceof Pa)return Ua(Ua(Ba(r),Da(r),Ba(e)),Da(e),Ua(Fa(e),t,n));throw new Error("internal error: Set.rebalance")}return Ua(Ba(r),Da(r),Ua(Fa(r),t,n))}throw new Error("internal error: Set.rebalance")}return Ua(e,t,n)}function za(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Da(r));if(r instanceof Pa)return o<0?ja(za(e,t,Ba(r)),Da(r),Fa(r)):0===o?n:ja(Ba(r),Da(r),za(e,t,Fa(r)));{const o=0|e.Compare(t,Da(r));return o<0?Ga(t,void 0,n,2):0===o?n:Ga(t,n,void 0,2)}}return Oa(t)}function Wa(e,t,n){e:for(;;){const r=e,o=t;if(null!=n){const i=n,a=0|r.Compare(o,Da(i));if(i instanceof Pa){if(a<0){e=r,t=o,n=Ba(i);continue e}if(0===a)return!0;e=r,t=o,n=Fa(i);continue e}return 0===a}return!1}}function Ya(e,t){e:for(;;){const n=e;if(null!=t){const r=t;if(r instanceof Pa){Ya(n,Ba(r)),n(Da(r)),e=n,t=Fa(r);continue e}n(Da(r))}break}}class Ka extends Vt{constructor(e,t){super(),this.stack=e,this.started=t}}function qa(e){e:for(;;){const t=e;if(Rn(t))return In();{const n=Mn(t),r=On(t);if(null!=n){const o=n;if(o instanceof Pa){e=Fn([Ba(o),Oa(Da(o)),Fa(o)],r);continue e}return t}e=r;continue e}}}function Za(e){return new Ka(qa(Nn(e)),!1)}function Ja(e){if(e.started){const t=e.stack;if(Rn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Mn(t))return Da(Mn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Xa(e){let t=Za(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ja(t),"System.Collections.IEnumerator.get_Current":()=>Ja(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Rn(t))return!1;if(null!=Mn(t)){if(Mn(t)instanceof Pa)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=qa(On(t)),!Rn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Rn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Za(e)},Dispose(){}}}function Qa(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(Rn(a[0]))return Rn(a[1])?0:-1;if(Rn(a[1]))return 1;if(null!=Mn(a[1]))if(null!=Mn(a[0])){const s=Mn(a[0]),u=Mn(a[1]);if(s instanceof Pa)if(null==Ba(s)){if(!(u instanceof Pa)){const o=0|r.Compare(Da(s),Da(u));if(0!==o)return 0|o;e=r,t=An(Fa(s),On(a[0])),n=An(void 0,On(a[1]));continue e}if(null==Ba(u)){const o=0|r.Compare(Da(s),Da(u));if(0!==o)return 0|o;e=r,t=An(Fa(s),On(a[0])),n=An(Fa(u),On(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=On(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Fn([Ba(l),Ga(Da(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Oa(Da(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Fn([Ba(f),Ga(Da(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Oa(Da(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(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=On(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Fn([Ba(l),Ga(Da(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Oa(Da(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Fn([Ba(f),Ga(Da(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Oa(Da(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Pa)){const o=0|r.Compare(Da(s),Da(u));if(0!==o)return 0|o;e=r,t=On(a[0]),n=On(a[1]);continue e}if(null==Ba(u)){const o=0|r.Compare(Da(s),Da(u));if(0!==o)return 0|o;e=r,t=An(void 0,On(a[0])),n=An(Fa(u),On(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(Rn(a[0])?Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2:null!=Mn(a[0])?(s=0,u=On(a[0]),l=Mn(a[0])):Rn(a[1])?s=2:null!=Mn(a[1])?(s=1,c=On(a[1]),f=Mn(a[1])):s=2,s){case 0:if(l instanceof Pa){e=r,t=Fn([Ba(l),Ga(Da(l),void 0,Fa(l),0)],u),n=i;continue e}e=r,t=Fn([void 0,Oa(Da(l))],u),n=i;continue e;case 1:if(f instanceof Pa){e=r,t=o,n=Fn([Ba(f),Ga(Da(f),void 0,Fa(f),0)],c);continue e}e=r,t=o,n=Fn([void 0,Oa(Da(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Mn(a[1]);const s=[o,i];let u,l,c,f,d;switch(Rn(s[0])?Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=On(s[1]),d=Mn(s[1])):u=2:null!=Mn(s[0])?(u=0,l=On(s[0]),c=Mn(s[0])):Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=On(s[1]),d=Mn(s[1])):u=2,u){case 0:if(c instanceof Pa){e=r,t=Fn([Ba(c),Ga(Da(c),void 0,Fa(c),0)],l),n=i;continue e}e=r,t=Fn([void 0,Oa(Da(c))],l),n=i;continue e;case 1:if(d instanceof Pa){e=r,t=o,n=Fn([Ba(d),Ga(Da(d),void 0,Fa(d),0)],f);continue e}e=r,t=o,n=Fn([void 0,Oa(Da(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Mn(a[0])){e=r,t=On(a[0]),n=On(a[1]);continue e}{Mn(a[0]);const s=[o,i];let u,l,c,f,d;switch(Rn(s[0])?Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=On(s[1]),d=Mn(s[1])):u=2:null!=Mn(s[0])?(u=0,l=On(s[0]),c=Mn(s[0])):Rn(s[1])?u=2:null!=Mn(s[1])?(u=1,f=On(s[1]),d=Mn(s[1])):u=2,u){case 0:if(c instanceof Pa){e=r,t=Fn([Ba(c),Ga(Da(c),void 0,Fa(c),0)],l),n=i;continue e}e=r,t=Fn([void 0,Oa(Da(c))],l),n=i;continue e;case 1:if(d instanceof Pa){e=r,t=o,n=Fn([Ba(d),Ga(Da(d),void 0,Fa(d),0)],f);continue e}e=r,t=o,n=Fn([void 0,Oa(Da(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Nn(t),Nn(n))}function es(e,t,n){let r=n;Ya((e=>{t[r]=e,r=r+1|0}),e)}function ts(e,t){if(We(t))return function(e,t){return bn(((t,n)=>za(e,n,t)),void 0,t)}(e,t);if(t instanceof vn)return function(e,t){return Pn(((t,n)=>za(e,n,t)),void 0,t)}(e,t);{const n=Xe(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=za(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{qe(n)}}}class ns{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|ut(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{qe(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ns&&0===Qa(rs(this),os(this),os(e))}toString(){return"set ["+en("; ",Xr((e=>Ft(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Qa(rs(this),os(this),os(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 Wa(rs(this),e,os(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){es(os(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|is(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|is(this)}GetEnumerator(){return Xa(os(this))}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Xa(os(this))}get size(){return 0|is(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 Wa(rs(e),t,os(e))}(this,e)}keys(){return Xr((e=>e),this)}values(){return Xr((e=>e),this)}entries(){return Xr((e=>[e,e]),this)}forEach(e,t){const n=this;Jr((t=>{e(t,t,n)}),n)}}function rs(e){return e.comparer}function os(e){return e.tree}function is(e){return Ha(os(e))}function as(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 ss(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new qo(1,function(e,t){const n=2===t.tag?as(t.fields[0],t.fields[1],!0):1===t.tag?as(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?as(t.fields[0],t.fields[1],!0):4===t.tag?as(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"+en("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:as(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new qo(0,r.fields[0])}function us(e,t){return"string"==typeof t?new qo(0,t):new qo(1,[e,new Jo(0,"a string",t)])}const ls=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 qo(0,(e+128&255)-128):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,8,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])},cs=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 qo(0,255&e):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,8,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])},fs=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 qo(0,(e+32768&65535)-32768):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,16,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])},ds=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 qo(0,65535&e):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,16,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])},$s=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 qo(0,~~e):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!1,32,new Ht((()=>t),(e=>{t=0|e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])},ps=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 qo(0,e>>>0):new qo(1,[r,new Jo(1,n,e,"Value was either too large or too small for "+n)]):new qo(1,[r,new Jo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ci(o,511,!0,32,new Ht((()=>t),(e=>{t=e}))),t],e[0]?new qo(0,e[1]):new qo(1,[r,new Jo(0,n,o)])}return new qo(1,[r,new Jo(0,n,o)])};function hs(e,t,n,r){let o;const i=n+".["+rt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new qo(1,[i,new Jo(5,"a longer array. Need index `"+rt(e)+"` but there are only `"+(o=n.length,rt(o)+"` entries"),r)])}return new qo(1,[i,new Jo(0,"an array",r)])}function ms(e,t,n){if(Array.isArray(n)){let r=-1;return Zo(Gn,bn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+rt(r)+"]",o);return 0===i.tag?new qo(0,An(i.fields[0],n.fields[0])):new qo(1,i.fields[0])}return n}),new qo(0,In()),n))}return new qo(1,[t,new Jo(0,"a list",n)])}function ws(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return bn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+rt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new qo(0,i)):new qo(1,a.fields[0])}return n}),new qo(0,wn(new Array(o.length),0,o.length,null)),o)}return new qo(1,[t,new Jo(0,"an array",n)])}function gs(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new qo(1,o.fields[0])}function ys(e,t){let n;const r=e;return n=e=>t=>hs(0,r,e,t),e=>r=>gs(bt(3,(e=>{let n;const r=t;return n=e=>t=>hs(1,r,e,t),t=>r=>gs(((t,n,r)=>new qo(0,[e,t])),bt(2,n),t,r)})),bt(2,n),e,r)}function bs(e){return Vo(e)}function vs(e){return function(e,t){return new ns(e,t)}(t={Compare:mt},ts(t,e));var t}function xs(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new qo(1,[n,new Jo(6,(o=0|r.length,Zt(Kt("Expected array of length %i but got %i"))(i)(o)))]);{let o=new qo(0,In());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const a=o.fields[0],s=Zt(Kt("%s[%i]"))(n)(i),u=t[i-e],l=r[i];o=Zo((e=>An(e,a)),u(s)(l))}return Zo(Gn,o)}}function _s(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>ma(e)===r))}(0,Ta(n));if(null!=a){const n=a,r=gn((n=>Cs(e,t,!1,n[1])),Ra(n));return Zo((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,Dn(e))),0===r.length&&i.length<=1?new qo(0,In()):xs(1,r,o,i))}return new qo(1,[o,new Jo(6,"Cannot find case "+r+" in "+wa(n))])}function Ss(e,t,n,r){const o=new Ht(null);let i;const a=wa(r);let s;if(i=""===a?e:Bo(a,o,e),Aa(r)){const e=gn((e=>[ni(t,ma(e)),Cs(i,t,!1,e[1])]),Ea(r));s=t=>n=>Zo((e=>function(e,t){const n=Ea(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,Dn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new qo(1,[t,new Jo(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(bt(2,(e=>{const r=e[0];return o=>0===o.tag?Zo((e=>An(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new qo(0,In()))}(e,t,n))}else if(Ia(r))s=e=>n=>{if("string"==typeof n)return _s(i,t,r,n,e,[]);if(Array.isArray(n)){const s=n;return o=n=>_s(i,t,r,n,e,s),0===(a=us(e+"[0]",s[0])).tag?o(a.fields[0]):new qo(1,a.fields[0])}return new qo(1,[e,new Jo(0,"a string or array",n)]);var o,a};else{if(!n){let e;const t=wa(r);throw e=Zt(Kt("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}s=e=>t=>new qo(1,[e,new Jo(2,"an extra coder for "+wa(r),t)])}return o.contents=s,s}function Cs(e,t,n,r){let o,i,a,s;const u=wa(r),l=Fo(u,e);if(null==l){if(ga(r)){const n=Cs(e,t,!1,ya(r));return e=>t=>ws(bt(2,n),e,t)}if(va(r)){const e=wa(_a(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=ls(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,e.toString())):new qo(1,[o,new Jo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=cs(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,e.toString())):new qo(1,[o,new Jo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=fs(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,e.toString(s))):new qo(1,[o,new Jo(1,wa(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=ds(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,e.toString())):new qo(1,[o,new Jo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=$s(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,rt(e))):new qo(1,[o,new Jo(1,wa(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=ps(o)(i);if(1===a.tag)return new qo(1,a.fields[0]);{const e=a.fields[0];return Kr(e,Sa(n),{Equals:(e,t)=>e===t,GetHashCode:at})?new qo(0,Ca(n,e.toString())):new qo(1,[o,new Jo(1,wa(n),i,"Unkown value provided for the enum")])}};{const e=wa(r),t=Jt(Kt("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(ba(r)){if(Na(r)){const n=gn((n=>Cs(e,t,!1,n)),ka(r));return e=>t=>Array.isArray(t)?Zo((e=>Dn(e)),xs(0,n,e,t)):new qo(1,[e,new Jo(0,"an array",t)])}{const u=wa(xa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Cs(e,t,!0,ia(r)[0]),e=>t=>{return n=bt(2,o),r=e,null==(i=t)?new qo(0,void 0):Zo(ln,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Cs(e,t,!1,ia(r)[0]),e=>t=>ms(bt(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===u)return a=Cs(e,t,!1,ia(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return Zo(eo,bn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+rt(r)+"]",o);return 0===i.tag?new qo(0,Yr([i.fields[0]],n.fields[0])):new qo(1,i.fields[0])}return n}),new qo(0,[]),n))}return new qo(1,[t,new Jo(0,"a seq",n)])}(bt(2,a),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Cs(e,t,!1,ia(r)[0]),o=Cs(e,t,!1,ia(r)[1]);let i;const a=Ln([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new qo(1,[n,new Jo(0,"an object",r)]):Zr(((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 qo(0,An([a.fields[0],e.fields[0]],o.fields[0])):new qo(1,e.fields[0])}return new qo(1,a.fields[0])}return o}),new qo(0,In()),Object.keys(r))}(bt(2,n),bt(2,o),e,t),(s=ys(bt(2,n),bt(2,o)),e=>t=>ms(bt(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Rn(o))return new qo(1,[n,new Jo(7,i)]);{const a=ss(n,bt(2,Mn(o)),r);if(1===a.tag){e=On(o),t=Vn(i,Nn(a.fields[0]));continue e}return new qo(0,a.fields[0])}}})(a,In());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new qo(1,o.fields[0]):new qo(0,e(o.fields[0]))}(bs,bt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Cs(e,t,!1,ia(r)[0]);return e=>t=>{const r=ws(bt(2,n),e,t);return 0===r.tag?new qo(0,vs(r.fields[0])):new qo(1,r.fields[0])}}return Ss(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new qo(0,r):new qo(1,[n,new Jo(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new qo(0,void 0):new qo(1,[n,new Jo(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>us(e,t):"System.Char"===u?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new qo(0,n[0]):new qo(1,[e,new Jo(0,"a single character string",t)])}return new qo(1,[e,new Jo(0,"a char",t)])}(e,t):"System.SByte"===u?ls:"System.Byte"===u?cs:"System.Int16"===u?fs:"System.UInt16"===u?ds:"System.Int32"===u?$s:"System.UInt32"===u?ps:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new qo(0,r):new qo(1,[n,new Jo(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new qo(0,r):new qo(1,[n,new Jo(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let r,o=Et(-621355968e5,0);return r=[It(t,new Ht((()=>o),(e=>{o=e}))),o],r[0]?new qo(0,1===(n=r[1]).kind?n:Et(n.getTime(),1)):new qo(1,[e,new Jo(0,"a datetime",t)])}var n;return new qo(1,[e,new Jo(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=fi(-621355968e5,0);return n=[di(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new qo(0,n[1]):new qo(1,[e,new Jo(0,"a datetimeoffset",t)])}return new qo(1,[e,new Jo(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[na(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new qo(0,n[1]):new qo(1,[e,new Jo(0,"a timespan",t)])}return new qo(1,[e,new Jo(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=[ai(t,new Ht((()=>r),(e=>{r=e}))),r],n[0]?new qo(0,n[1]):new qo(1,[e,new Jo(0,"a guid",t)])}return new qo(1,[e,new Jo(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new qo(0,e):Ss(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}const Ts=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 Es=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 Ts(n)}(e,0);return 0!=(256&n)}(e);const ks={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Is(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 As(e,t=ks.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 ks.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case ks.SnakeCase:return Is(e,"_");case ks.SnakeCaseAllCaps:return Is(e,"_").toUpperCase();case ks.KebabCase:return Is(e,"-");case ks.None:default:return e}}(e,t),n[e]=r}for(let t of e){let e=ks.None;if(null==t&&o(t),t instanceof Lt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function Ns(e,t){return!t.has(e)&&(t.add(e),!0)}function Rs(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ms{constructor(e,t){const n=new Ht(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Xe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Gs(n.contents,e)}}finally{qe(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Xe(this)}GetEnumerator(){return Xe(Lr(this.hashMap.values()))}[Symbol.iterator](){return Qe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Gs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ds(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Bs(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Zr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ps(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Fs(this,e)}get size(){return 0|Ps(this)}add(e){return Gs(this,e),this}clear(){Ds(this)}delete(e){return Fs(this,e)}has(e){return Bs(this,e)}keys(){return Xr((e=>e),this)}values(){return Xr((e=>e),this)}entries(){return Xr((e=>[e,e]),this)}forEach(e,t){const n=this;Jr((t=>{e(t,t,n)}),n)}}function Os(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Ht((()=>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 Ds(e){e.hashMap.clear()}function Ps(e){let t=0,n=Xe(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{qe(n)}return 0|t}function Gs(e,t){const n=Os(e,t);return n[0]?!(n[2]>-1)&&(Rs(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Bs(e,t){const n=Os(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Fs(e,t){const n=Os(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Rs(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ls extends Vt{constructor(e,t){super(),this.Code=e,this.Name=t}}const Vs=Vo([["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 Hs extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Us extends Vt{constructor(e,t){super(),this.Code=e,this.Name=t}}function js(e){let t;const n=function(e){const t=function(e){const t=Fo(e,Vs);return null==t?void 0:new Ls(e,t)}(e),n=Zt(Kt("Country code:%A is not accepted"))(e),r=t;return null==r?new qo(1,n):new qo(0,r)}(e);return 1===n.tag?new qo(1,n.fields[0]):new qo(0,(t=n.fields[0],new Us(t.Code,t.Name)))}class zs extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Ws=new zs(2,{HomeCountry:void 0});function Ys(e){return new zs(2,{HomeCountry:e})}class Ks extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class qs extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class Zs extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class Js extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function Xs(e){return e.fields[0]}function Qs(e){const t=function(e){const t=on(Es,e),n=t===e?new qo(0,void 0):new qo(1,"TFN must contain digits only");if(1===n.tag)return new qo(1,n.fields[0]);{const e=9===t.length?new qo(0,void 0):new qo(1,"TFN must be 9 digits");if(1===e.tag)return new qo(1,e.fields[0]);{const e=function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=mn(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=>li(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11==0?new qo(0,void 0):new qo(1,"TFN is not valid");return 1===e.tag?new qo(1,e.fields[0]):new qo(0,t)}}}(e);if(1===t.tag)return new qo(1,t.fields[0]);{const e=t.fields[0],r=function(e){if(We(e))return 0===e.length;if(e instanceof vn)return Rn(e);{const t=Br(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{qe(t)}}}((n={Equals:(e,t)=>e===t,GetHashCode:it},Ur(function(e,t,n){return Fr((()=>{const r=new Ms(e,n);return qr((e=>Ns(e,r)),t)}))}(["0"],e.split(""),n))))?new qo(1,"TFN must not contain all zeros"):new qo(0,void 0);return 1===r.tag?new qo(1,r.fields[0]):new qo(0,e)}var n}class eu extends Vt{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Vt{constructor(e){super(),this.Unused=e}}(void 0);class tu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class nu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function ru(){return ca("Dto.Dto.ResidencyStatusV2Dto",[],nu,(()=>[[],[],[["Item",la(["HomeCountry",fa(ua("Dto.Dto.CountryDto",[],eu,(()=>[["Code",pa],["Name",pa]])))])]]]))}function ou(e){let t,n;switch(e.tag){case 1:return new qo(0,new zs(1));case 2:return pn((t=e.fields[0].HomeCountry,null==t?void 0:(n=js(t.Code),1===n.tag?new qo(1,n.fields[0]):new qo(0,Ys(n.fields[0])))),new qo(0,Ws));default:return new qo(0,new zs(0))}}class iu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}function au(){return ca("Dto.Dto.EmploymentBasisDto",[],iu,(()=>[[],[],[],[],[]]))}function su(e){switch(e.tag){case 1:return new qo(0,new Ks(1));case 2:return new qo(0,new Ks(2));case 3:return new qo(0,new Ks(3));case 4:return new qo(0,new Ks(4));default:return new qo(0,new Ks(0))}}class uu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}function lu(){return ca("Dto.Dto.DebtSupportDto",[],uu,(()=>[[],[],[],[],[]]))}function cu(e){switch(e.tag){case 1:return new qo(0,new Hs(1));case 2:return new qo(0,new Hs(2));case 3:return new qo(0,new Hs(3));case 4:return new qo(0,new Hs(4));default:return new qo(0,new Hs(0))}}function fu(e){switch(e.tag){case 1:return new uu(1);case 2:return new uu(2);case 3:return new uu(3);case 4:return new uu(4);default:return new uu(0)}}const du=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Rn(i)){const e=r;return 1===e.tag?new qo(1,e.fields[0]):new qo(0,Gn(e.fields[0]))}{let a;const s=o(Mn(i));if(1===s.tag)a=new qo(1,s.fields[0]);else{const e=r;a=1===e.tag?new qo(1,e.fields[0]):new qo(0,An(s.fields[0],e.fields[0]))}if(1===a.tag)return a;e=a,t=o,n=On(i);continue e}}}(new qo(0,In()),e,t)}(cu,jr((t=e,n={Equals:dt,GetHashCode:lt},Fr((()=>{const e=new Ms([],n);return qr((t=>Ns(t,e)),t)})))));var t,n},$u=e=>Hn(fu,e);class pu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}function hu(){return ca("Dto.Dto.ExemptionReasonDto",[],pu,(()=>[[],[],[]]))}function mu(e){switch(e.tag){case 1:return new pu(1);case 2:return new pu(2);default:return new pu(0)}}class wu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function gu(){return ca("Dto.Dto.ProvidedTfnInformationDto",[],wu,(()=>[[["Item",pa]],[["Item",hu()]]]))}class yu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class bu extends Vt{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=n,this.ResidencyStatusV2=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class vu extends Vt{constructor(e,t){super(),this.ResidencyStatusV2=e,this.EmploymentBasis=t}}class xu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnInfo","EmploymentInfo"]}}class _u extends Vt{constructor(e,t){super(),this.Meta=e,this.Info=t}}class Su extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Cu(){return ca("Dto.Commands.ResidencyStatusV2Dto",[],Su,(()=>[[],[],[["Item",ua("Dto.Commands.WorkingHolidayPayload",[],Tu,(()=>[["HomeCountry",ua("Dto.Commands.CountryCode",[],Eu,(()=>[["Code",pa]]))]]))]]]))}class Tu extends Vt{constructor(e){super(),this.HomeCountry=e}}class Eu extends Vt{constructor(e){super(),this.Code=e}}class ku extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["CreateOrUpdate","Update","ProvideFullTfnDeclaration","Create","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}class Iu extends Vt{constructor(e,t,n,r,o,i,a){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class Au extends Vt{constructor(e,t,n,r,o,i,a){super(),this.AccountId=e,this.TfnInformation=t,this.PreviousSurname=n,this.ResidencyStatus=r,this.EmploymentBasis=o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class Nu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted","Truncated"]}}function Ru(e){return e}const Mu=null;function Ou(e){return Array.from(e)}function Du(e){return Tt(e,"O")}function Pu(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 ea(e/864e5)}(e)),o=Math.abs(function(e){return ea(e%864e5/36e5)}(e)),i=Math.abs(function(e){return ea(e%36e5/6e4)}(e)),a=Math.abs(function(e){return ea(e%6e4/1e3)}(e)),s=Math.abs(function(e){return ea(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:tt(o,2)}:${tt(i,2)}:${tt(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+tt(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 Gu(){return null}function Bu(e){return Tt(e,"O")}function Fu(e,t,n,r){const o=new Ht(null);let i;const a=wa(r);let s;if(i=""===a?e:Bo(a,o,e),Aa(r)){const e=gn((e=>{const r=ni(t,ma(e)),o=Lu(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}}),Ea(r));s=t=>Zr(((e,n)=>n(t)(e)),{},e)}else{if(!Ia(r)){let e;const t=wa(r);throw e=Zt(Kt("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Ta(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 ma(a);{const e=0|u,r=Ra(a),o=wn(new Array(e+1),0,e+1,null);o[0]=ma(a);for(let a=1;a<=e;a++){const e=Lu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=s,s}function Lu(e,t,n,r){const o=wa(r),i=Fo(o,e);if(null==i){if(ga(r)){const o=Lu(e,t,n,ya(r));return e=>Ou(Xr(o,e))}if(va(r)){const e=wa(_a(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=wa(r);return Jt(Kt("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(ba(r)){if(Na(r)){const o=gn((r=>Lu(e,t,n,r)),ka(r));return e=>{return Ou((t=(e,t)=>o[e](t),n=e,Wr((()=>Br(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?ln(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))));var t,n}}{const o=wa(xa(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new et((()=>{return o=Lu(e,t,n,ia(r)[0]),e=>{return n=()=>Mu,null!=(t=hn(o,e))?cn(t):n();var t,n};var o}));return e=>null==e?Mu:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=Lu(e,t,n,ia(r)[0]);return e=>Ou(Xr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ia(r)[0],i=Lu(e,t,n,ia(r)[1]);if("System.String"===wa(o)||"System.Guid"===wa(o))return e=>Zr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Lu(e,t,n,o);return r=a,e=>Ou(Xr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Fu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Gu:"System.String"===o?e=>e:"System.Char"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Bu:"System.DateTimeOffset"===o?Du:"System.TimeSpan"===o?Pu:"System.Guid"===o?Ru:"System.Object"===o?e=>e:Fu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Vu(e){return Zt(Kt("%s/tfn-declaration/backend"))(e)}function Hu(e,t){return dr.Delay((()=>{const n=Yo(function(e){return new xr(0,"Authorization",e)}(Zt(Kt("Bearer %s"))(e)),t);let r;const o=Ko(n);return r=dr.Bind(o,(e=>dr.Return(new qo(0,e)))),dr.Bind(r,(e=>{const t=e;if(1===t.tag)return dr.Return(new qo(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=Ko(n);return dr.Bind(e,(e=>dr.Return(new qo(0,e))))}return dr.Return(new qo(0,e))}}))}))}const Uu=e=>function(e,t){try{return ss("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new qo(1,"Given an invalid JSON: "+e.message);throw e}}(bt(2,function(e,t,n){const r=pn(t,new Xo(0));return Cs(function(e){return null!=e?Lo(((e,t)=>new Ht(t[1])),e.Coders):Ho()}(void 0),r,!1,e)}(ua("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],_u,(()=>[["Meta",la(["AccountId",pa])],["Info",fa(ca("Dto.BackendApiModels.Read.Information",[],xu,(()=>[[["Item",ua("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],bu,(()=>[["TfnInformation",ca("Dto.BackendApiModels.Read.TfnInformation",[],yu,(()=>[[["Item",pa]],[["Item",hu()]]]))],["PreviousSurname",fa(pa)],["ResidencyStatus",ca("Dto.Dto.ResidencyStatusDto",[],tu,(()=>[[],[],[]]))],["ResidencyStatusV2",ru()],["EmploymentBasis",au()],["IsTaxFreeThresholdClaimed",ha],["HasDebtSupport",da(lu())]]))]],[["Item",ua("Dto.BackendApiModels.Read.EmploymentInfo",[],vu,(()=>[["ResidencyStatusV2",fa(ru())],["EmploymentBasis",au()]]))]]])))]])),new Xo(1))),e);function ju(e,t){return dr.Delay((()=>{const n=Hu(e,Wo(new vr(0),zo(Vu(t))));return dr.Bind(n,(e=>{const t=e;if(1===t.tag)return dr.Return(new qo(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Uu(e.responseText);return dr.Return(t)}return dr.Return(new qo(1,"Unexpected response from backend"))}}))}))}function zu(e,t){let n,r,o;const i=e.TfnInformation.Value;if(o=null==i?new qo(1,"missing TFN info"):new qo(0,i),1===o.tag)return new qo(1,o.fields[0]);{const i=o.fields[0];let a;const s=e.PreviousSurname.Value;let u,l;a=null==s?void 0:Xs(s);const c=e.ResidencyStatus.Value;if(null==c)l=void 0;else{const e=function(e){switch(e.tag){case 1:return new qo(0,new Su(1));case 2:{let t;const n=e.fields[0].HomeCountry;return t=null==n?new qo(1,"Home country should be specified for WorkingHolidayMaker"):new qo(0,n),1===t.tag?new qo(1,t.fields[0]):new qo(0,new Su(2,new Tu(new Eu(t.fields[0].Code))))}default:return new qo(0,new Su(0))}}(c);l=1===e.tag?void 0:e.fields[0]}if(u=null==l?new qo(1,"missing residency status"):new qo(0,l),1===u.tag)return new qo(1,u.fields[0]);{const o=u.fields[0];let s,l;const c=e.EmploymentBasisRadioButtonGroup.Value;if(l=null==c?void 0:function(e){switch(e.tag){case 1:return new iu(1);case 2:return new iu(2);case 3:return new iu(3);case 4:return new iu(4);default:return new iu(0)}}(c),s=null==l?new qo(1,"missing employment basis"):new qo(0,l),1===s.tag)return new qo(1,s.fields[0]);{const u=s.fields[0];let l,c;const f=e.ClaimTaxFreeThreshold.Selected;if(c=null==f?void 0:(n=f,!(1===n.tag)),l=null==c?new qo(1,"missing is tax-free threshold claimed"):new qo(0,c),1===l.tag)return new qo(1,l.fields[0]);{const n=l.fields[0],s=pn((r=e.DebtSupportCheckboxGroup.Value,null==r?void 0:$u(r)),In()),c=()=>0===i.tag?new qo(1,"New TFN declaration cannot have a truncated TFN"):1===i.fields[0].tag?new qo(0,new wu(1,mu(i.fields[0].fields[0]))):new qo(0,new wu(0,i.fields[0].fields[0].fields[0])),f=t.Info;if(null!=f){if(0===f.tag)return new qo(0,Nn(new ku(1,new Au(t.Meta.AccountId,0===i.tag?new Nu(2,i.fields[0]):1===i.fields[0].tag?new Nu(1,mu(i.fields[0].fields[0])):new Nu(0,i.fields[0].fields[0].fields[0]),a,o,u,n,s))));{const e=c();return 1===e.tag?new qo(1,e.fields[0]):new qo(0,Nn(new ku(2,{EmploymentBasis:u,HasDebtSupport:s,IsTaxFreeThresholdClaimed:n,PreviousSurname:a,ResidencyStatus:o,TfnInformation:e.fields[0]})))}}{const e=c();return 1===e.tag?new qo(1,e.fields[0]):new qo(0,Nn(new ku(0,new Iu(t.Meta.AccountId,e.fields[0],a,o,u,n,s))))}}}}}}function Wu(e,t,n){return dr.Delay((()=>{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=dr.Delay((()=>dr.Return(new qo(0,a))));break;case 1:r=ju(t,n)}return dr.Bind(r,(r=>{const o=r;if(1===o.tag)return dr.Return(new qo(1,o.fields[0]));{const r=o.fields[0];let i;const a=zu(e,r);return i=dr.Return(a),dr.Bind(i,(e=>{let o;const i=e;if(1===i.tag)return dr.Return(new qo(1,i.fields[0]));{const e=i.fields[0];if(Rn(e))return dr.Return(new qo(0,r));{const r=Hu(t,(a=new _r(1,function(e,t){return JSON.stringify(t,bt(2,void 0),ln(e))}(0,function(e,t,n,r){const o=pn(t,new Xo(0)),i=pn(void 0,!0);return Lu(function(e){return null!=e?Lo(((e,t)=>new Ht(t[0])),e.Coders):Ho()}(void 0),o,i,e)}(da(ca("Dto.Commands.TfnDeclarationCommandDto",[],ku,(()=>[[["Item",ua("Dto.Commands.TfnDeclarationDetailsDto",[],Iu,(()=>[["AccountId",pa],["TfnInformation",gu()],["PreviousSurname",fa(pa)],["ResidencyStatus",Cu()],["EmploymentBasis",au()],["IsTaxFreeThresholdClaimed",ha],["HasDebtSupport",da(lu())]]))]],[["Item",ua("Dto.Commands.UpdateTfnDeclarationDetailsDto",[],Au,(()=>[["AccountId",pa],["TfnInformation",ca("Dto.Commands.UpdateProvidedTfnInformationDto",[],Nu,(()=>[[["Item",pa]],[["Item",hu()]],[["Item",pa]]]))],["PreviousSurname",fa(pa)],["ResidencyStatus",Cu()],["EmploymentBasis",au()],["IsTaxFreeThresholdClaimed",ha],["HasDebtSupport",da(lu())]]))]],[["Item",la(["EmploymentBasis",au()],["HasDebtSupport",da(lu())],["IsTaxFreeThresholdClaimed",ha],["PreviousSurname",fa(pa)],["ResidencyStatus",Cu()],["TfnInformation",gu()])]],[["Item",la(["AccountId",pa],["EmploymentBasis",au()],["HasDebtSupport",da(lu())],["IsTaxFreeThresholdClaimed",ha],["PreviousSurname",fa(pa)],["ResidencyStatus",Cu()],["TfnInformation",gu()])]],[["Item",gu()]],[["Item",fa(pa)]],[["Item",Cu()]],[["Item",au()]],[["Item",ha]],[["Item",da(lu())]]]))),new Xo(1))(e))),s=Wo(new vr(2),zo(Vu(n))),o=new Sr(s.url,s.method,s.headers,s.withCredentials,s.overridenMimeType,s.overridenResponseType,s.timeout,a),Yo(new xr(0,"Content-Type","application/json"),o)));return dr.Bind(r,(e=>{const t=e;if(1===t.tag)return dr.Return(new qo(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=Uu(e.responseText);return dr.Return(t)}return dr.Return(new qo(1,"Unexpected response from backend"))}}))}}var a,s}))}}))}))}class Yu extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Ku(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function qu(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Zu(e){return e.tag,e.fields[0]}function Ju(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=pr();var u;return u=()=>{!function(e,t){gr(dr.Delay((()=>dr.Bind(wr(5e3),(()=>(e(),dr.Zero()))))),t)}(i,s)},or(u,[]),p("div",gt(Ln([["className",en(" ",["rounded-md","p-4","my-4",qu(a)])],["data-testid","alert"],(t=[p("div",gt(Ln([["className",en(" ",["flex"])],(n=[p("p",{className:en(" ",["text-sm","pr-2",Ku(a)]),children:Zu(a)}),p("div",gt(Ln([["className",en(" ",["ml-auto"])],(r=[p("div",gt(Ln([["className",en(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:en(" ",jr(Fr((()=>Yr(Hr("inline-flex"),Fr((()=>Yr(Hr("rounded-md"),Fr((()=>Yr(Hr("p-1.5"),Fr((()=>Yr(Hr("focus:outline-none"),Fr((()=>Yr(Hr("focus:ring-2"),Fr((()=>Yr(Hr("focus:ring-offset-2"),Fr((()=>function(e){switch(e.tag){case 0:return Ln(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Ln(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Ln(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Un.Children.toArray([qn]),onClick:e=>{hr(s),i()}})],["children",Un.Children.toArray(Array.from(o))])])))],["children",Un.Children.toArray(Array.from(r))])])))],["children",Un.Children.toArray(Array.from(n))])])))],["children",Un.Children.toArray(Array.from(t))])])))}function Xu(e,t,n){Bn((n=>{try{n(t)}catch(t){e(t)}}),n)}function Qu(){return In()}function el(e){return Nn((t=>{t(e)}))}function tl(e,t,n,r,o){const i=function(e,t,n,r){const o=0|mt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|mt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Fr((()=>{return t=i,n=e,Gr((()=>function(e,t){let n,r=t;return Dr((()=>{if(null!=n){const e=n[0];return n[1],e}return Nr()}),(()=>{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 Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class rl{constructor(e){this.state=new nl(0,wn(new Array(wt(pt,e,10)),0,wt(pt,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),ln(o[r])}}class il extends Vt{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=xt(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(Fr((()=>Yr(to(r,o),Fr((()=>{return Yr((e=r,t=o,Wr((()=>Br(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return ln(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Ar+"\\nParameter name: source")}}),(e=>{qe(e)}))),Fr((()=>no((e=>Hr(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=ln(e);for(;null!=n;){const e=cn(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),Xu((n=>{t.onError([Zt(Kt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Zt(Kt("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=_n();let n=t;const r=e=>{n=Pn(((e,t)=>{const n=new vn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof vn)Bn(r,e);else{const t=Xe(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{qe(t)}}const o=n,i=_n();return o.tail=i,kn(t)}(Ln([(()=>{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=ln(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 cn(o);throw new Error("Elmish program has not initialized")}function cl(e,t){return function(e,t,n){const r=nr(ul)[0],o=nr((()=>ll(e,t,r))),i=o[1];return rr((()=>(function(e){return e.hasDisposedOnce}(r)&&i(ll(e,t,r)),tr((()=>{!function(e){const t=e.state;if(null!=t){const e=cn(t);Ke(e)&&qe(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),pn(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,bt(2,(e=>{const t=xt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(ln(t),n)}),bt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class dl extends Vt{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.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function wl(e){switch(e){case"HELP":return new Hs(0);case"VETStudentLoan":return new Hs(1);case"FinancialSupplement":return new Hs(2);case"StudentStartUpLoan":return new Hs(3);case"TradeSupportLoan":return new Hs(4);default:return}}function gl(e){switch(e){case"FullTime":return new Ks(0);case"PartTime":return new Ks(1);case"LabourHire":return new Ks(2);case"SuperIncomeStream":return new Ks(3);case"Casual":return new Ks(4);default:return}}function yl(e){return p("p",{className:en(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}function bl(e){let t;return p("div",gt(Ln([["className","flex items-start p-4 space-x-3 bg-amber-50 rounded-md mt-4"],(t=[Jn,p("span",{className:"text-sm leading-5 font-normal text-amber-700",children:e})],["children",Un.Children.toArray(Array.from(t))])])))}class vl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class xl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class _l extends Vt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Sl(e){return new _l(e,{Touched:!1})}function Cl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new _l(e.fields[0],t.Meta):t:new _l(e.fields[0],{Touched:!0})}function Tl(e){const t=dt(e.Parent.State.Selected,e.Selection)?jr(Fr((()=>Yr(null!=e.Parent.Disable?Hr("bg-gray-50"):Hr("bg-white"),Fr((()=>Yr(Hr("border-gray-200"),Fr((()=>Yr(Hr("shadow-sm"),Fr((()=>null!=e.Parent.Disable?Hr("text-gray-400"):Hr("text-gray-900"))))))))))))):jr(Fr((()=>Yr(Hr("shadow-none"),Fr((()=>null!=e.Parent.Disable?Hr("text-gray-400"):Hr("text-gray-700")))))));return p("button",{className:en(" ",jr(Fr((()=>Yr(Hr("relative"),Fr((()=>Yr(Hr("w-1/2"),Fr((()=>Yr(Hr("border-gray-200"),Fr((()=>Yr(Hr("rounded-md"),Fr((()=>Yr(Hr("shadow-sm"),Fr((()=>Yr(Hr("py-2"),Fr((()=>Yr(Hr("text-sm"),Fr((()=>Yr(Hr("font-medium"),Fr((()=>Yr(Hr("whitespace-nowrap"),Fr((()=>Yr(Hr("focus:outline-none"),Fr((()=>Yr(Hr("focus:ring-inset"),Fr((()=>Yr(Hr("focus:ring-1"),Fr((()=>Yr(Hr("focus:ring-primary-focus"),Fr((()=>Yr(Hr("focus:z-10"),Fr((()=>Yr(Hr("w-auto"),Fr((()=>Yr(Hr("px-8"),Fr((()=>Yr(dt(e.Parent.Disable,e.Selection)?Hr("disabled:cursor-not-allowed"):Vr(),Fr((()=>t))))))))))))))))))))))))))))))))))))))))))))))))))))))),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new xl(0,e.Selection))},disabled:dt(e.Parent.Disable,e.Selection),children:Ft(e.Selection)})}function El(e){let t;return p("div",gt(Ln([["className",en(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Tl({Parent:e,Selection:new vl(0)}),Tl({Parent:e,Selection:new vl(1)})],["children",Un.Children.toArray(Array.from(t))])])))}class kl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Il extends Vt{constructor(e){super(),this.Selected=e}}function Al(e){let t;const n=fl((r=e.InitialValue,[new Il(r),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new Il(e.fields[0])}(t);return e(new dl(r.Selected,{Valid:null!=r.Selected})),[r,Qu()]}(e.OnUpdate,t)));var r;return p("div",gt(Ln([["className",en(" ",["space-y-2","mt-2"])],(t=jr(Fr((()=>no((t=>{let r,o;const i=t[0];return Hr(p("label",gt(Ln([["className",en(" ",["flex","items-start"])],(r=[p("input",{className:en(" ",["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:dn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new kl(0,i))}}),p("label",gt(Ln([["className",en(" ",["ml-3","block","text-sm"])],["for",i],(o=jr(Fr((()=>Yr(Hr(p("span",{className:en(" ",["block","text-gray-900"]),children:t[1]})),Fr((()=>{const e=t[2];if(null==e)return Hr(null);{const t=e;return Hr(p("span",{className:en(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Un.Children.toArray(Array.from(o))])])))],["children",Un.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Un.Children.toArray(Array.from(t))])])))}class Nl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnTouched","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class Rl extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class Ml extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class Ol extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Dl extends Vt{constructor(e,t,n,r,o){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r,this.TfnInputTouched=o}}function Pl(e){let t;const n=e.EditingState;if(1===n.tag){const e=n.fields[0];return new dl((t=e.Value,null==t?void 0:new Ml(1,t)),e.Meta)}return new dl(new Ml(0,dn(e.TruncatedTfn)),{Valid:!0})}const Gl=e=>!(1===Qs(e).tag);function Bl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Dl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ol(1,new dl(n.Value,{Valid:!1})),e.TfnInputTouched);if(1===r.tag)return new Dl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ol(1,new dl(n.Value,{Valid:!0})),e.TfnInputTouched);{const t=r.fields[0].fields[0];return new Dl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new Ol(1,new dl(n.Value,{Valid:Gl(t)})),e.TfnInputTouched)}}return e}function Fl(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 Ll(e){if(e.TfnInputTouched){const t=e.EditingState;return 1===t.tag&&!t.fields[0].Meta.Valid}return!1}function Vl(e){let t,n,r,o;const i=fl(function(e){let t,n,r;return[Bl(new Dl(Sl(null!=e&&1===e.tag&&1===e.fields[0].tag?new vl(1):new vl(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new Ol(1,$l()):1===e.tag?(r=e.fields[0],new Ol(1,new dl(r,{Valid:!1}))):new Ol(0),!1)),Qu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){switch(e.tag){case 2:return new Dl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,t.EditingState,!0);case 1:{const n=e.fields[0],r=new Rl(0,new qs(0,n)),o=Gl(n);return t.EditingState.tag,new Dl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ol(1,new dl(r,{Valid:o})),t.TfnInputTouched)}case 3:{const n=e.fields[0];let r,o;const i=n.Value;return o=null==i?void 0:function(e){switch(e){case"Under18AndBelowTaxThreshold":return new Zs(0);case"Pending":return new Zs(1);case"Pensioner":return new Zs(2);default:return}}(i),r=null==o?void 0:new Rl(1,o),t.EditingState.tag,new Dl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ol(1,new dl(r,n.Meta)),t.TfnInputTouched)}case 4:return 1===t.EditingState.tag?new Dl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new Ol(0),t.TfnInputTouched):new Dl(t.YesNoButtonGroup,t.TruncatedTfn,new Yu(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new Ol(1,$l()),!1);case 5:return Bl(new Dl(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 Ol(1,$l())}}else r=new Ol(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 Ol(0);break;case 2:r=new Ol(1,$l())}}else r=new Ol(0);break}}return new Dl(Cl(n,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,r,t.TfnInputTouched)}}}(t,n);return e(Pl(r)),[r,Qu()]}(e.OnUpdate,t,n))),a=i[0],s=i[1],u=null==a.TruncatedTfn?null:p("div",gt(Nn((t=[p("button",gt(Ln([["className",en(" ",["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=jr(Fr((()=>dt(a.EditingState,new Ol(0))?Yr(Hr(zn),Fr((()=>Hr(p("span",{children:["Edit"]}))))):Yr(Hr(Wn),Fr((()=>Hr(p("span",{children:["Cancel"]})))))))),["children",Un.Children.toArray(Array.from(n))]),["onClick",e=>{s(new Nl(4))}]])))],["children",Un.Children.toArray(Array.from(t))]))));return p("div",gt(Ln([["className",en(" ",Xn)],(r=[yl("Do you have your Tax File Number (TFN)?"),p(El,{Disable:void 0,Dispatch:e=>{s(new Nl(0,e))},State:a.YesNoButtonGroup}),p("div",gt(Ln([["className",en(" ",["mt-4"])],(o=jr(Fr((()=>{let e,t,n,r,o,i;return Yr((e=a.YesNoButtonGroup.Selected,null!=e?1===e.tag?Hr(p(Al,(t=Hn((e=>[Ft(e[0]),e[1],e[2]]),Ln([[new pu(1),"My TFN is pending",void 0],[new pu(0),"I'm under 18 and don't have a TFN",void 0],[new pu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(n=Pl(a).Value,null!=n&&1===n.tag&&1===n.fields[0].tag?(r=n.fields[0].fields[0],Ft(r)):void 0),Name:"TfnExemption",OnUpdate:e=>{s(new Nl(3,e))},ValueLabelPairs:t}))):(o=[a.TruncatedTfn,a.EditingState],null!=o[0]&&0===o[1].tag?(i=o[0],Yr(Hr(yl("Enter your TFN")),Fr((()=>{let e,t,n;return Hr(p("div",gt(Ln([["className",en(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",gt(Ln([["className","relative flex items-stretch flex-grow"],(t=[p("input",gt(Ln([["className",en(" ",["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||dt(e.value,n)||(e.value=n)}])])))],["children",Un.Children.toArray(Array.from(t))])]))),u],["children",Un.Children.toArray(Array.from(e))])]))))})))):Yr(Hr(yl("Enter your TFN")),Fr((()=>{let e;return Hr(p("div",gt(Ln([["className",en(" ",["mt-1"])],(e=jr(Fr((()=>{let e,t;return Yr(Hr(p("div",gt(Ln([["className",en(" ",["relative","flex","items-stretch","flex-grow"])],(e=[p("input",gt(Ln([["className",en(" ",jr(Fr((()=>Yr(Hr("block"),Fr((()=>Yr(Hr("w-full"),Fr((()=>Yr(Hr("focus:outline-none"),Fr((()=>Yr(Hr("text-base"),Fr((()=>Yr(Hr("focus:z-20"),Fr((()=>Yr(Hr("relative"),Fr((()=>Yr(Hr("sm:text-sm"),Fr((()=>Yr(Hr("rounded-md"),Fr((()=>Yr(Hr("border-gray-300"),Fr((()=>Yr(Hr("focus:ring-primary-focus"),Fr((()=>Yr(Hr("focus:border-primary-focus"),Fr((()=>Yr(Hr("block"),Fr((()=>Yr(Hr("w-full"),Fr((()=>Yr(null==a.TruncatedTfn?Hr("rounded-md"):Hr("rounded-none rounded-l-md"),Fr((()=>Ll(a)?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Vr()))))))))))))))))))))))))))))))))))))))))))))))],["type","text"],["onChange",e=>{s(new Nl(1,on(Es,e.target.value)))}],(t=Fl(a),["ref",e=>{null==e||dt(e.value,t)||(e.value=t)}]),["onBlur",e=>{s(new Nl(2))}],["inputMode","numeric"],["data-testid","tfn-input"]]))),u],["children",Un.Children.toArray(Array.from(e))])])))),Fr((()=>Ll(a)?Hr(p("div",{className:en(" ",["mt-1","text-sm","text-red-600"]),children:"That isn’t a valid Tax File Number"})):Vr())))}))),["children",Un.Children.toArray(Array.from(e))])]))))})))):Hr(null)),Fr((()=>{let e;return Hr((e=jr(Fr((()=>{const e=a.CurrentAlert;return Hr(null==e?null:p(Ju,{alert:e,hideAlert:()=>{s(new Nl(5))}}))}))),p("div",{children:Un.Children.toArray(Array.from(e))})))})))}))),["children",Un.Children.toArray(Array.from(o))])])))],["children",Un.Children.toArray(Array.from(r))])])))}let Hl="undefined"!=typeof window?ne:te;function Ul(e){let t=re(e);return Hl((()=>{t.current=e}),[e]),t}function jl(e,t){let[n,r]=Q(e),o=Ul(e);return Hl((()=>r(o.current)),[o,r,...t]),n}function zl(){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 Wl(){let[e]=Q(zl);return te((()=>()=>e.dispose()),[e]),e}let Yl=function(e){let t=Ul(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Kl={serverHandoffComplete:!1};var ql;let Zl=0;function Jl(){return++Zl}let Xl=null!=(ql=ze.useId)?ql:function(){let e=function(){let[e,t]=Q(Kl.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Kl.serverHandoffComplete&&(Kl.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?Jl:null);return Hl((()=>{null===t&&n(Jl())}),[t]),null!=t?""+t:void 0};function Ql(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,Ql),r}function ec(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 tc=["[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 nc=(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))(nc||{}),rc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(rc||{}),oc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(oc||{}),ic=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ic||{});function ac(e,t,n){let r=Ul(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function sc(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 uc(e,t){let[n,r]=Q((()=>sc(e)));return Hl((()=>{r(sc(e))}),[e.type,e.as]),Hl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let lc=Symbol();function cc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=Yl((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[lc])))?void 0:n}var fc=(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))(fc||{});var dc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(dc||{}),$c=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))($c||{});function pc({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=mc(t,e);if(i)return hc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return hc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return Ql(e?0:1,{0:()=>null,1:()=>hc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return hc(s,n,r,a)}function hc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=yc(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(gc(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({},mc(l.props,gc(yc(s,["ref"]))),c,u))}return p(o,Object.assign({},yc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function mc(...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 wc(e){var t;return Object.assign(ge(e),{displayName:null!=(t=e.displayName)?t:e.name})}function gc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function yc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function bc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))xc(n,vc(t,r),o);return n}function vc(e,t){return e?e+"["+t+"]":t}function xc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())xc(e,vc(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,""]):bc(n,t,e)}var _c=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_c||{});let Sc=wc((function(e,t){let{features:n=1,...r}=e;return pc({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"})})),Cc=F(null);Cc.displayName="OpenClosedContext";var Tc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tc||{});function Ec({value:e,children:t}){return ze.createElement(Cc.Provider,{value:e},t)}var kc=(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))(kc||{}),Ic=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ic||{}),Ac=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ac||{}),Nc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Nc||{}),Rc=(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))(Rc||{});function Mc(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 Oc={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=Mc(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=Mc(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=Mc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Dc=F(null);function Pc(e){let t=ae(Dc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Pc),t}return t}Dc.displayName="ComboboxActionsContext";let Gc=F(null);function Bc(e){let t=ae(Gc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bc),t}return t}function Fc(e,t){return Ql(t.type,Oc,e,t)}Gc.displayName="ComboboxDataContext";let Lc=m,Vc=wc((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(Fc,{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),w=re(null),g=re(null),y=Yl(((e,t)=>e===t)),b=ie((e=>Ql(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:w,optionsRef:g,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]);Hl((()=>{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=ec(e))?void 0:n.body)&&Ql(t,{0:()=>e.matches(tc),1(){let t=e;for(;null!==t;){if(t.matches(tc))return!0;t=t.parentElement}return!1}})}(a,ic.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),ac("click",(e=>o(e,(e=>e.target))),!0),ac("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=Yl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),_())})),C=Yl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),_(),f({type:2,focus:fc.Specific,id:t})}})),T=Yl((()=>{f({type:0}),d.current=!0})),E=Yl((()=>{f({type:1}),d.current=!1})),k=Yl(((e,t,n)=>(d.current=!1,e===fc.Specific?f({type:2,focus:fc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Yl(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Yl((e=>Ql(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})),[]);Hl((()=>{1===v.comboboxState&&_()}),[_,v.comboboxState]),Hl(_,[_]);let R=null===t?{}:{ref:t};return ze.createElement(Dc.Provider,{value:N},ze.createElement(Gc.Provider,{value:v},ze.createElement(Ec,{value:Ql(v.comboboxState,{0:Tc.Open,1:Tc.Closed})},null!=n&&null!=r&&bc({[n]:r}).map((([e,t])=>ze.createElement(Sc,{features:_c.Hidden,...gc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),pc({ourProps:R,theirProps:l,slot:x,defaultTag:Lc,name:"Combobox"}))))})),Hc=wc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Bc("Combobox.Input"),c=Pc("Combobox.Input"),f=cc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${Xl()}`,p=Wl();Hl((()=>{d.current.displayValue=a}),[a,d]);let h=Yl((e=>{switch(e.key){case kc.Backspace:case kc.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(fc.Nothing))}));break;case kc.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 kc.ArrowDown:return e.preventDefault(),e.stopPropagation(),Ql(l.comboboxState,{0:()=>{c.goToOption(fc.Next)},1:()=>{c.openCombobox()}});case kc.ArrowUp:return e.preventDefault(),e.stopPropagation(),Ql(l.comboboxState,{0:()=>{c.goToOption(fc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(fc.Last)}))}});case kc.Home:case kc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(fc.First);case kc.End:case kc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(fc.Last);case kc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case kc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Yl((e=>{c.openCombobox(),null==i||i(e)})),w=jl((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return pc({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":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Uc=wc((function(e,t){var n;let r=Bc("Combobox.Button"),o=Pc("Combobox.Button"),i=cc(r.buttonRef,t),a=`headlessui-combobox-button-${Xl()}`,s=Wl(),u=Yl((e=>{switch(e.key){case kc.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 kc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(fc.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case kc.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=Yl((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=jl((()=>{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 pc({ourProps:{ref:i,id:a,type:uc(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"})})),jc=wc((function(e,t){let n=Bc("Combobox.Label"),r=`headlessui-combobox-label-${Xl()}`;return pc({ourProps:{ref:cc(n.labelRef,t),id:r,onClick:Yl((()=>{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"})})),zc=dc.RenderStrategy|dc.Static,Wc=wc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Bc("Combobox.Options"),a=cc(i.optionsRef,t),s=`headlessui-combobox-options-${Xl()}`,u=ae(Cc),l=null!==u?u===Tc.Open:0===i.comboboxState;Hl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Hl((()=>{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]),Hl((()=>{if(!e||!r)return;let t=ec(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=jl((()=>{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 pc({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:zc,visible:l,name:"Combobox.Options"})})),Yc=wc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Bc("Combobox.Option"),u=Pc("Combobox.Option"),l=`headlessui-combobox-option-${Xl()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=Ul({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=cc(t,d),h=Yl((()=>u.selectOption(l)));Hl((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);Hl((()=>{if(!s.__demoMode)return;let e=zl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Hl((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=zl();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 w=Yl((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),g=Yl((()=>{if(o)return u.goToOption(fc.Nothing);u.goToOption(fc.Specific,l)})),y=Yl((()=>{o||c||u.goToOption(fc.Specific,l,0)})),b=Yl((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(fc.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return pc({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:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Kc=Object.assign(Vc,{Input:Hc,Button:Uc,Label:jc,Options:Wc,Option:Yc});class qc extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Zc extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Jc(e){const t=As(e,1);return p(Kc.Input,t)}class Xc extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function Qc(e,t){const n=As(e,1);return p(Kc.Options,n,...t)}class ef extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function tf(e){const t=As(e,1);return p(Kc.Button,t)}class nf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class rf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class of extends Vt{constructor(e){super(),this.ResidencyStatus=e}}function af(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 sf(e){return new of(af(e.ResidencyStatus.Value))}function uf(e,t,n){let r,o;const i=sr(""),a=e=>{let t,n;return pn((n=js(e),t=1===n.tag?void 0:n.fields[0],null==t?void 0:t.Name),"")};let s;const u=fn(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(Gt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Mo(e.comparer,vo(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=As(e,1);return p(Kc,t)}(Ln([new qc(0,a(e)),new qc(1,n),new qc(2,[p("div",gt(Ln([["className","relative mt-1"],(r=[p("div",gt(Ln([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Jc(Ln([new Zc(0,a(e)),new Zc(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 Zc(1,(e=>{i[1](e.target.value)})),new Zc(3,"off")])),tf(Ln([new ef(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new ef(1,[Zn])]))],["children",Un.Children.toArray(Array.from(o))])]))),Qc(Nn(new Xc(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")),jr(Fr((()=>Yr(0===Po(s)?Hr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Un.Children.toArray(["Nothing found"])})):Vr(),Fr((()=>no((e=>{const t=e,n=t[0];return Hr(function(e){const t=As(e,1);return p(Kc.Option,t)}(Ln([new nf(0,n),new nf(1,n),new nf(2,"relative cursor-default select-none"),new nf(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",Un.Children.toArray(Array.from(r))])])))])]))}function lf(e){let t;const n=fl((r=e.InitialValue,[sf(new of(hl(r))),Qu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n;if(1===e.tag){let t;const n=js(pn(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],sf(new of(hl(null==t?Ws:Ys(t))))}return sf(new of(hl((n=e.fields[0].Value,null==n?void 0:function(e){switch(e){case"AustralianResidentForTaxPurposes":return new zs(0);case"ForeignResidentForTaxPurposes":return new zs(1);case"WorkingHolidayMaker":return Ws;default:return}}(n)))))}(t);return e(r.ResidencyStatus),[r,Qu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",gt(Nn((t=jr(Fr((()=>Yr(Hr(yl("Are you an Australian resident for tax purposes or a working holiday maker?")),Fr((()=>{let e,t;return Yr(Hr(p(Al,(e=Hn((e=>[ml(e[0]),e[1],e[2]]),Ln([[new zs(0),"Australian resident for tax purposes",void 0],[new zs(1),"Foreign resident",void 0],[new zs(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:(t=o.ResidencyStatus.Value,null==t?void 0:ml(t)),Name:"ResidencyStatus",OnUpdate:e=>{i(new rf(0,e))},ValueLabelPairs:e}))),Fr((()=>{let e,t;const n=o.ResidencyStatus.Value;let r,a;switch(null!=n&&2===n.tag?(r=0,a=n.fields[0]):r=1,r){case 0:return Hr(p("div",gt(Ln([["className",en(" ",["mt-4"])],(e=[yl("Your home country where your visa was issued"),uf(pn((t=a.HomeCountry,null==t?void 0:t.Code),""),Vs,(e=>{i(new rf(1,pl(e)))}))],["children",Un.Children.toArray(Array.from(e))])]))));case 1:return Hr(null)}})))})))))),["children",Un.Children.toArray(Array.from(t))]))))}class cf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetTfnInformation","SetPreviousSurname","SetResidencyStatus","SetClaimTaxFreeThreshold","SetDebtSupport","SetEmploymentBasis","GetData","ShowAlert","HideAlert","Saved","AppReady"]}}class ff extends Vt{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 df(e){switch(e.tag){case 1:case 2:case 4:default:return pl(e);case 3:return $l()}}function $f(e,t){let n;if(0===t.tag){const r=t.fields[0];let o;const i=r.TfnInformation;if(1===i.tag){const e=function(e){switch(e.tag){case 1:return new qo(0,new Zs(1));case 2:return new qo(0,new Zs(2));default:return new qo(0,new Zs(0))}}(i.fields[0]);o=1===e.tag?new qo(1,e.fields[0]):new qo(0,new Ml(1,new Rl(1,e.fields[0])))}else o=new qo(0,new Ml(0,i.fields[0]));if(1===o.tag)return new qo(1,o.fields[0]);{const t=ou(r.ResidencyStatusV2);if(1===t.tag)return new qo(1,t.fields[0]);{const i=t.fields[0],a=1===i.tag||2===i.tag?new vl(1):r.IsTaxFreeThresholdClaimed?new vl(0):new vl(1),s=du(r.HasDebtSupport);if(1===s.tag)return new qo(1,s.fields[0]);{const t=s.fields[0],u=su(r.EmploymentBasis);return 1===u.tag?new qo(1,u.fields[0]):new qo(0,new ff(e.PreExistingTfnDec,e.CurrentAlert,pl(o.fields[0]),pl((n=r.PreviousSurname,null==n?void 0:new Js(0,n))),af(i),Sl(a),Rn(t)?pl(void 0):pl(t),df(u.fields[0])))}}}}{const n=t.fields[0];let r,o;const i=n.ResidencyStatusV2;if(o=null==i?void 0:ou(i),null!=o){const e=o;r=1===e.tag?new qo(1,e.fields[0]):new qo(0,e.fields[0])}else r=new qo(0,void 0);if(1===r.tag)return new qo(1,r.fields[0]);{const t=su(n.EmploymentBasis);return 1===t.tag?new qo(1,t.fields[0]):new qo(0,new ff(e.PreExistingTfnDec,e.CurrentAlert,e.TfnInformation,e.PreviousSurname,af(r.fields[0]),e.ClaimTaxFreeThreshold,e.DebtSupportCheckboxGroup,df(t.fields[0])))}}}class pf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function hf(){const e=rn(document.URL,["/"],null,0),t=yn("web",e,{Equals:(e,t)=>e===t,GetHashCode:it}),n=yn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:it}),r=[fn(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 qo(0,new pf(2,r[0]));case 1:return new qo(0,new pf(0));case 2:return new qo(0,new pf(1));case 3:return new qo(1,"Could not determine the embed mode")}}class mf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function wf(){let e;const t=hf();var n;0===t.tag&&(0===t.fields[0].tag?Jr((e=>{window.parent.location.href=e}),$n((n=new mf(0),fn(sessionStorage.getItem(function(e){return Ft(e)}(n)))))):1===t.fields[0].tag?Jr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),$n(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function gf(e,t){let n;switch(e.tag){case 1:return[new ff(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 ff(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 cf(3,new xl(1,new vl(1),!1))):2===n.tag?el(new cf(3,new xl(1,new vl(1),!0))):el(new cf(3,new xl(1,new vl(0),!1))))]}case 3:return[new ff(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,Cl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 4:return[new ff(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Qu()];case 5:{const n=(r=gl,null!=(o=e.fields[0].Value)?r(cn(o)):void 0);return[new ff(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 ff(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=el(new cf(7,new Yu(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=fn(document.getElementById("external-loading-page-container"));Jr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),$n(n))}();const i=el(new cf(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=hn((e=>$f(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 ff(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 8:return[new ff(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()];case 9:return[new ff(new yr(2,new qo(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=hf();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"},"*",ln(In()))}(),[t,Qu()];default:return[new ff(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Qu()]}var r,o}class yf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class bf extends Vt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class vf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function xf(e){let t;const n=fl(function(e,t){const n=pn(e,"");return[new bf(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 bf(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new bf(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",gt(Ln([["className",en(" ",Vn(e.AdditionalWrapperClasses,Nn("z-10")))],(t=jr(Fr((()=>Yr(Hr(p("input",gt(jr(Fr((()=>Yr(Hr(["className",en(" ",Vn(e.AdditionalInputClasses,Vn(Ln(["block","w-full","pr-10","focus:outline-none","text-base","sm:text-sm","rounded-md","border-gray-300"]),jr(Fr((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Vr()))))))]),Fr((()=>Yr(Hr(["type","text"]),Fr((()=>Yr(Hr(["onChange",t=>{const n=t.target.value;o(new yf(0,1===e.InputType.tag?n:on(Es,n)))}]),Fr((()=>{let t;return Yr(Hr((t=r.Text,["ref",e=>{null==e||dt(e.value,t)||(e.value=t)}])),Fr((()=>Yr(Hr(["onBlur",e=>{o(new yf(1))}]),Fr((()=>Yr(dt(e.InputType,new vf(0))?Hr(["inputMode","numeric"]):Vr(),Fr((()=>Hr(["data-testid",e.TestId]))))))))))}))))))))))))))),Fr((()=>!r.Meta.Valid&&r.Meta.Touched?Hr(p("div",{className:en(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Vr())))))),["children",Un.Children.toArray(Array.from(t))])])))}class _f extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Sf extends Vt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Cf(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Tf(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Sf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!1})):1===t.tag?new Sf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!0})):new Sf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:pn(hn((e=>Cf(e.fields[0])),e.Data.Value),!1)}))}function Ef(e){let t;const n=fl((r=e.InitialValue,[Tf(new Sf(Sl(new vl(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 Tf(1===e.tag?(n=e.fields[0],new Sf(t.YesNoButtonGroup,new dl(hn((e=>new Js(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 Sf(Cl(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",gt(Ln([["className",en(" ",Xn)],(t=jr(Fr((()=>Yr(Hr(yl("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Fr((()=>Yr(Hr(p(El,{Disable:void 0,Dispatch:e=>{i(new _f(0,e))},State:o.YesNoButtonGroup})),Fr((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Hr(p("div",gt(Ln([["className",en(" ",["mt-4"])],(e=[yl("Enter your previous surname"),p(xf,{AdditionalInputClasses:Ln(["focus:ring-primary-focus","focus:border-primary-focus"]),AdditionalWrapperClasses:Nn("mt-1"),InitialValue:hn(Xs,o.Data.Value),InputType:new vf(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new _f(1,e))},TestId:"surname-input",Validator:Cf})],["children",Un.Children.toArray(Array.from(e))])]))));case 1:return Hr(null)}}))))))))),["children",Un.Children.toArray(Array.from(t))])])))}const kf=Ln(["mt-7","bg-white","px-4","border","border-gray-200","rounded-lg","shadow-sm"]),If=Ln(["group","relative","w-full","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),Af=Ln(["text-sm","text-primary-base","leading-3","font-medium"]),Nf=Ln(["ml-6","flex","items-center"]),Rf=Ln(["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=sr(!0),u=s[0];return p("div",gt(Ln([["className",en(" ",kf)],(t=[(n=Nn(p("button",gt(Ln([["type","button"],["className",en(" ",If)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:en(" ",Af),children:a}),p("span",gt(Ln([["className",en(" ",Nf)],(o=jr(Fr((()=>Hr(u?Kn:Yn)))),["children",Un.Children.toArray(Array.from(o))])])))],["children",Un.Children.toArray(Array.from(r))])])))),p("h3",{children:Un.Children.toArray(Array.from(n))})),p("div",{className:en(" ",Vn(Rf,jr(Fr((()=>u?Hr("hidden"):Vr()))))),children:Un.Children.toArray([i])})],["children",Un.Children.toArray(Array.from(t))])])))}class Of extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Df extends Vt{constructor(e){super(),this.Selected=e}}function Pf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(Cn(o))return;if(e(En(o)))return r;t=r+1,n=kn(o)}})(0,t)}((t=>e===t),t.Selected)}function Gf(e,t,n){const r=function(e,t){const n=e.fields[0];return Pf(n,t)?new Df(function(e,t){const n=_n(),r=Pn(((t,n)=>{if(e(n)){const e=new vn(n,void 0);return t.tail=e,e}return t}),n,t),o=_n();return r.tail=o,kn(n)}((e=>n!==e),t.Selected)):new Df(Vn(Nn(n),t.Selected))}(t,n);return e(r.Selected),[r,Qu()]}function Bf(e){let t;const n=fl((r=e.InitialValue,[new Df(r),Qu()]),((t,n)=>Gf(e.OnUpdate,t,n)));var r;return p("fieldset",gt(Ln([["className",en(" ",["space-y-2","mt-2"])],(t=jr(Fr((()=>no((e=>{let t,r,o;const i=e[0];return Hr(p("div",gt(Ln([["className",en(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Of(0,i))}],(t=[p("div",gt(Ln([["className",en(" ",["flex","items-center","h-5"])],(r=[p("input",{className:en(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Pf(i,n[0])})],["children",Un.Children.toArray(Array.from(r))])]))),p("div",gt(Ln([["className",en(" ",["ml-3","text-sm"])],(o=[p("label",{className:en(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Un.Children.toArray(Array.from(o))])])))],["children",Un.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Un.Children.toArray(Array.from(t))])])))}class Ff extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetDebtSupport"]}}class Lf extends Lt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ForeignResident","WorkingHolidayMaker"]}}class Vf extends Vt{constructor(e,t,n){super(),this.YesNoButtonGroup=e,this.Data=t,this.DisableReason=n}}function Hf(e){let t,n;const r=e.YesNoButtonGroup.Selected;return null==r?new Vf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!1}),e.DisableReason):1===r.tag?new Vf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:!0}),e.DisableReason):new Vf(e.YesNoButtonGroup,new dl(e.Data.Value,{Valid:(t=e.Data.Value,null!=t&&(o=t,Tn(o)>0&&(n=t,!0)))}),e.DisableReason);var o}function Uf(e){let t;const n=fl(function(e,t,n){let r;const o=e.Value;let i,a;switch(i=null==o||Rn(o)?0:1,i){case 0:r=new vl(1);break;case 1:r=new vl(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 Lf(0);break;case 2:a=new Lf(1);break;case 3:a=void 0}const l=null==a?Qu():el(new Ff(0,new xl(1,new vl(1),!0)));return[Hf(new Vf(Sl(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 Hf(1===e.tag?new Vf(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 Vf(Cl(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",gt(Ln([["className",en(" ",Xn)],(t=jr(Fr((()=>Yr(Hr(yl("Do you have any outstanding study and training support loans?")),Fr((()=>Yr(Hr(p(El,{Disable:hn((e=>new vl(0)),r.DisableReason),Dispatch:e=>{o(new Ff(0,e))},State:r.YesNoButtonGroup})),Fr((()=>{let t;return Yr((t=r.DisableReason,null!=t?1===t.tag?Hr(bl("Working holiday makers are ineligible for study and training support loans.")):Hr(bl("You must provide your TFN to declare any outstanding study and training support loans.")):Hr(null)),Fr((()=>{let t,n;const i=r.YesNoButtonGroup.Selected;let a;switch(a=null!=i&&0===i.tag?0:1,a){case 0:return Hr(p("div",gt(Ln([["className",en(" ",["mt-4"])],(t=[p(Bf,(n=Hn((e=>[Ft(e[0]),e[1]]),Ln([[new Hs(0),"Higher Education Loan Program (HELP)"],[new Hs(1),"VET Student Loan (VSL)"],[new Hs(2),"Financial Supplement (FS)"],[new Hs(3),"Student Start-up Loan (SSL)"],[new Hs(4),"Trade Support Loan (TSL)"]])),{InitialValue:pn(hn((e=>Hn(Ft,e)),e.InitialValue.Value),In()),OnUpdate:e=>{o(new Ff(1,function(e,t){const n=_n(),r=Pn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new vn(cn(r),void 0);return t.tail=e,e}}),n,t),o=_n();return r.tail=o,kn(n)}(wl,e)))},ValueLabelPairs:n}))],["children",Un.Children.toArray(Array.from(t))])]))));case 1:return Hr(null)}})))}))))))))),["children",Un.Children.toArray(Array.from(t))])])))}function jf(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)&&!dt(t,new yr(1))}function zf(){return p("hr",{className:en(" ",["my-8"])})}const Wf=p("div",gt(Ln([["className",en(" ",["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",Un.Children.toArray(Array.from(e))]})()]))),Yf=p("div",gt(Ln([["className",en(" ",["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",Un.Children.toArray(Array.from(e))]})()])));function Kf(e){const t=e.backendUrl,n=e.accessToken,r=fl([new ff(new yr(0),void 0,$l(),pl(void 0),pl(new zs(0)),Sl(new vl(0)),pl(void 0),pl(new Ks(0))),Qu()],gf),o=r[0],i=r[1];or(br((()=>ju(n,t)),(e=>{i(new cf(6,e))})),[]);const a=sr(new yr(0)),s=a[0],u=br((()=>function(e,t,n,r){let o;const i=Wu(e,t,n);return o=dr.Bind(i,(e=>{let t;const n=e;return 1===n.tag||r(new Yu(0,"Your tax declaration has been saved.")),t=n,dr.Return(t)})),dr.Bind(o,(e=>{let t;const n=e;return 1===n.tag&&r(new Yu(1,"There was an error saving your tax declaration. Please try saving again.")),t=n,dr.Return(t)}))}(o,n,t,(e=>{i(new cf(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(dr.Delay((()=>dr.Bind(wr(400),(()=>(wf(),dr.Zero())))))),i(new cf(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=jr(Fr((()=>{let e,t;return Yr((e=o.CurrentAlert,null==e?Hr(null):(t=e,Hr(p(Ju,{alert:t,hideAlert:()=>{i(new cf(8))}})))),Fr((()=>Yr(Hr(p("h3",{className:en(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Fr((()=>Yr(Hr(p(Vl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new cf(0,e))}})),Fr((()=>Yr(Hr(zf()),Fr((()=>Yr(Hr(p(Ef,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new cf(1,e))}})),Fr((()=>Yr(Hr(zf()),Fr((()=>Yr(Hr(p(lf,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new cf(2,e))}})),Fr((()=>Yr(Hr(p(Mf,{title:"About residency",content:Wf})),Fr((()=>Yr(Hr(zf()),Fr((()=>{let e,t;return Yr(Hr(p("div",gt(Ln([["className",en(" ",Xn)],(e=[yl("Would you like to claim the tax-free threshold from this employer?"),p(El,{Disable:(t=o.ResidencyStatus.Value,null==t||2!==t.tag&&1!==t.tag?void 0:new vl(0)),Dispatch:e=>{i(new cf(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Un.Children.toArray(Array.from(e))])])))),Fr((()=>{let e;return Yr((e=o.ResidencyStatus.Value,null!=e?2===e.tag?Hr(bl("Working holiday makers are ineligible to claim the tax-free threshold.")):1===e.tag?Hr(bl("Foreign residents are ineligible to claim the tax-free threshold.")):Hr(null):Hr(null)),Fr((()=>Yr(Hr(p(Mf,{title:"About the tax-free threshold",content:Yf})),Fr((()=>Yr(Hr(zf()),Fr((()=>Yr(Hr(p(Uf,{InitialValue:o.DebtSupportCheckboxGroup,OnUpdate:e=>{i(new cf(4,e))},ResidencyStatus:o.ResidencyStatus.Value,TfnInfo:o.TfnInformation.Value})),Fr((()=>Yr(Hr(zf()),Fr((()=>Yr(Hr(yl("On what basis are you paid?")),Fr((()=>Yr(Hr(p("p",{className:"text-sm leading-5 font-normal text-gray-500",children:"Check with your employer if you’re unsure."})),Fr((()=>{let e,t;return Yr(Hr(p(Al,(e=Hn((e=>[Ft(e[0]),e[1],e[2]]),Ln([[new Ks(0),"Full-time",void 0],[new Ks(1),"Part-time",void 0],[new Ks(2),"Labour Hire",void 0],[new Ks(4),"Casual",void 0]])),{InitialValue:(t=o.EmploymentBasisRadioButtonGroup.Value,null==t?void 0:Ft(t)),Name:"EmploymentBasis",OnUpdate:e=>{i(new cf(5,e))},ValueLabelPairs:e}))),Fr((()=>Yr(Hr(zf()),Fr((()=>Yr(Hr(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."})),Fr((()=>{let e;return Hr(p("div",gt(Ln([["className",en(" ",["text-center"])],(e=[p("button",{className:en(" ",["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:!jf(o,s),onClick:e=>{jf(o,s)&&u()},children:"Save and continue","data-testid":"continue-button"})],["children",Un.Children.toArray(Array.from(e))])]))))})))))))))})))))))))))))))))))))})))})))))))))))))))))))))))))))})));return p("form",{children:Un.Children.toArray(Array.from(e))})}}}function qf(){return(qf=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 Zf(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 B(t,n)}function Jf(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Zf,qf({},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[Xf(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(td,{name:l},u):r[i]=u}var c=n?p(td,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?G:P)(this._vdom,this._root)}function Xf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Qf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Xf(e)]=n,this._vdom=B(this._vdom,r),P(this._vdom,this._root)}}function ed(){P(this._vdom=null,this._root)}function td(e,t){var n=this;return p("slot",qf({},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 nd(e){let t;return p("div",gt(Ln([["className",en(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[jn]}),p(Kf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Un.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=Jf,o.prototype.attributeChangedCallback=Qf,o.prototype.disconnectedCallback=ed,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(nd,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(280),n(118)})();
|