@flarehr/tfn-declaration-app 0.1.536 → 0.1.541

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),$=new URL(n(184),n.b),f=new URL(n(421),n.b),d=s()(o()),h=u()(l),p=u()(c),m=u()($),w=u()(f);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('+h+");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("+p+")}[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}.relative{position:relative}.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}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.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-2{margin-top:-.5rem}.mt-1{margin-top:.25rem}.-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}.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-grow{flex-grow:1}.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-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}.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-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-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pb-4{padding-bottom:1rem}.pt-1{padding-top:.25rem}.pr-10{padding-right:2.5rem}.pl-4{padding-left:1rem}.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-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-4{line-height:1rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/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-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;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.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-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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)}.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}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:mt-20{margin-top:5rem}}",""]);const g=d},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},893:(e,t,n)=>{var r,o,i,s,a,u,l={},c=[],$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return p(e,a,o,i,null)}function p(e,t,n,r,s){var a={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==s?++i:s};return null==s&&null!=o.vnode&&o.vnode(a),a}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)&&s.push(e)&&!v.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=s.length;)e=s.sort((function(e,t){return e.__v.__b-t.__v.__b})),s=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,A(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?g(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function _(e,t,n,r,o,i,s,a,u,$){var f,d,h,w,y,b,v,_=r&&r.__k||c,S=_.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(w=n.__k[f]=null==(w=t[f])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?p(null,w,null,null,w):Array.isArray(w)?p(m,{children:w},null,null,null):w.__b>0?p(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(h=_[f])||h&&w.key==h.key&&w.type===h.type)_[f]=void 0;else for(d=0;d<S;d++){if((h=_[d])&&w.key==h.key&&w.type===h.type){_[d]=void 0;break}h=null}A(e,w,h=h||l,o,i,s,a,u,$),y=w.__e,(d=w.ref)&&h.ref!=d&&(v||(v=[]),h.ref&&v.push(h.ref,null,w),v.push(d,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===h.__k?w.__d=u=x(w,u,e):u=C(e,w,h,_,y,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=g(h))}for(n.__e=b,f=S;f--;)null!=_[f]&&("function"==typeof n.type&&null!=_[f].__e&&_[f].__e==n.__d&&(n.__d=g(r,f+1)),R(_[f],_[f]));if(v)for(f=0;f<v.length;f++)D(v[f],v[++f],v[++f])}function x(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?x(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 s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||$.test(t)?n:n+"px"}function T(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||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(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,s,a,u,l){var c,$,d,h,p,g,y,b,v,x,S,C,E,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,s=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof T){if(b=t.props,v=(c=T.contextType)&&r[c.__c],x=c?v?v.props.value:c.__:r,n.__c?y=($=t.__c=n.__c).__=$.__E:("prototype"in T&&T.prototype.render?t.__c=$=new T(b,x):(t.__c=$=new w(b,x),$.constructor=T,$.render=G),v&&v.sub($),$.props=b,$.state||($.state={}),$.context=x,$.__n=r,d=$.__d=!0,$.__h=[]),null==$.__s&&($.__s=$.state),null!=T.getDerivedStateFromProps&&($.__s==$.state&&($.__s=f({},$.__s)),f($.__s,T.getDerivedStateFromProps(b,$.__s))),h=$.props,p=$.state,d)null==T.getDerivedStateFromProps&&null!=$.componentWillMount&&$.componentWillMount(),null!=$.componentDidMount&&$.__h.push($.componentDidMount);else{if(null==T.getDerivedStateFromProps&&b!==h&&null!=$.componentWillReceiveProps&&$.componentWillReceiveProps(b,x),!$.__e&&null!=$.shouldComponentUpdate&&!1===$.shouldComponentUpdate(b,$.__s,x)||t.__v===n.__v){$.props=b,$.state=$.__s,t.__v!==n.__v&&($.__d=!1),$.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),$.__h.length&&a.push($);break e}null!=$.componentWillUpdate&&$.componentWillUpdate(b,$.__s,x),null!=$.componentDidUpdate&&$.__h.push((function(){$.componentDidUpdate(h,p,g)}))}if($.context=x,$.props=b,$.__v=t,$.__P=e,S=o.__r,C=0,"prototype"in T&&T.prototype.render)$.state=$.__s,$.__d=!1,S&&S(t),c=$.render($.props,$.state,$.context);else do{$.__d=!1,S&&S(t),c=$.render($.props,$.state,$.context),$.state=$.__s}while($.__d&&++C<25);$.state=$.__s,null!=$.getChildContext&&(r=f(f({},r),$.getChildContext())),d||null==$.getSnapshotBeforeUpdate||(g=$.getSnapshotBeforeUpdate(h,p)),E=null!=c&&c.type===m&&null==c.key?c.props.children:c,_(e,Array.isArray(E)?E:[E],t,n,r,i,s,a,u,l),$.base=t.__e,t.__h=null,$.__h.length&&a.push($),y&&($.__E=$.__=null),$.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,r,i,s,a,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=u,t.__h=!!l,s[s.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 M(e,t,n,o,i,s,a,u){var c,$,f,h=n.props,p=t.props,m=t.type,w=0;if("svg"===m&&(i=!0),null!=s)for(;w<s.length;w++)if((c=s[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,s[w]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),s=null,u=!1}if(null===m)h===p||u&&e.data===p||(e.data=p);else{if(s=s&&r.call(e.childNodes),$=(h=n.props||l).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!u){if(null!=s)for(h={},w=0;w<e.attributes.length;w++)h[e.attributes[w].name]=e.attributes[w].value;(f||$)&&(f&&($&&f.__html==$.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||T(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]||T(e,i,t[i],n[i],r)}(e,p,h,i,u),f)t.__k=[];else if(w=t.props.children,_(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,s,a,s?s[0]:n.__k&&g(n,0),u),null!=s)for(w=s.length;w--;)null!=s[w]&&d(s[w]);u||("value"in p&&void 0!==(w=p.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==h.value)&&T(e,"value",w,h.value,!1),"checked"in p&&void 0!==(w=p.checked)&&w!==e.checked&&T(e,"checked",w,h.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 R(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]&&R(r[i],t,"function"!=typeof e.type);n||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function G(e,t,n){return this.constructor(e,n)}function B(e,t,n){var i,s,a;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],A(t,e=(!i&&n||t).__k=h(m,null,[e]),s||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:s?s.__e:t.firstChild,i),N(a,e)}function P(e,t){B(e,t,P)}function O(e,t,n){var o,i,s,a=f({},e.props);for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),p(e.type,a,o||e.key,i||e.ref,null)}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(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,s=[],v.__r=0,u=0;var F,L,V,U,H=0,j=[],z=[],W=o.__b,Y=o.__r,K=o.diffed,q=o.__c,Z=o.unmount;function J(e,t){o.__h&&o.__h(L,e,H||t),H=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:z}),n.__[e]}function X(e){return H=1,Q(ue,e)}function Q(e,t,n){var r=J(F++,2);return r.t=e,r.__c||(r.__=[n?n(t):ue(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function ee(e,t){var n=J(F++,3);!o.__s&&ae(n.__H,t)&&(n.__=e,n.u=t,L.__H.__h.push(n))}function te(e,t){var n=J(F++,4);!o.__s&&ae(n.__H,t)&&(n.__=e,n.u=t,L.__h.push(n))}function ne(e,t){var n=J(F++,7);return ae(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function re(){for(var e;e=j.shift();)if(e.__P)try{e.__H.__h.forEach(ie),e.__H.__h.forEach(se),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){L=null,W&&W(e)},o.__r=function(e){Y&&Y(e),F=0;var t=(L=e.__c).__H;t&&(V===L?(t.__h=[],L.__h=[],t.__.forEach((function(e){e.__V=z,e.u=void 0}))):(t.__h.forEach(ie),t.__h.forEach(se),t.__h=[])),V=L},o.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oe&&(t=requestAnimationFrame(n))})(re)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==z&&(e.__=e.__V),e.u=void 0,e.__V=z}))),V=L=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ie),e.__h=e.__h.filter((function(e){return!e.__||se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),q&&q(e,t)},o.unmount=function(e){Z&&Z(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ie(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var oe="function"==typeof requestAnimationFrame;function ie(e){var t=L,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),L=t}function se(e){var t=L;e.__c=e.__(),L=t}function ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ue(e,t){return"function"==typeof t?t(e):t}function le(e,t){for(var n in t)e[n]=t[n];return e}function ce(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $e(e){this.props=e}($e.prototype=new w).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return ce(this.props,e)||ce(this.state,t)};var fe=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var de="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,he=function(e,t){return null==e?null:S(S(e).map(t))},pe={map:he,forEach:he,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},me=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);me(e,t,n,r)};var we=o.unmount;function ge(){this.__u=0,this.t=null,this.__b=null}function ye(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function be(){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),we&&we(e)},(ge.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ye(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ge.prototype.componentWillUnmount=function(){this.t=[]},ge.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=le({},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&&h(m,null,e.fallback);return o&&(o.__h=null),[h(m,null,t.__a?null:e.children),o]};var ve=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 _e(e){return this.getChildContext=function(){return e.context},e.children}function xe(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(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)}}),B(h(_e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(be.prototype=new w).__a=function(e){var t=this,n=ye(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ve(t,e,r)):o()};n?n(i):i()}},be.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},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ve(e,n,t)}))};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?: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]/,Ee="undefined"!=typeof document,Te=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 ke=o.event;function Ie(){}function Ae(){return this.cancelBubble}function Ne(){return this.defaultPrevented}o.event=function(e){return ke&&(e=ke(e)),e.persist=Ie,e.isPropagationStopped=Ae,e.isDefaultPrevented=Ne,e.nativeEvent=e};var Me,De={configurable:!0,get:function(){return this.class}},Re=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 s=n[i];Ee&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Te(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&&Ce.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=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&&(De.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",De))}e.$$typeof=Se,Re&&Re(e)};var Ge=o.__r;o.__r=function(e){Ge&&Ge(e),Me=e.__c};var Be={ReactCurrentDispatcher:{current:{readContext:function(e){return Me.__n[e.__c].props.value}}}};function Pe(e){return!!e&&e.$$typeof===Se}function Oe(e){e()}const Fe={useState:X,useReducer:Q,useEffect:ee,useLayoutEffect:te,useInsertionEffect:te,useTransition:function(){return[!1,Oe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=X(t),r=n[0],o=n[1];return ee((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:Oe,useRef:function(e){return H=5,ne((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){H=6,te((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ne,useCallback:function(e,t){return H=8,ne((function(){return e}),t)},useContext:function(e){var t=L.context[e.__c],n=J(F++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(L)),t.props.value):e.__},useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:pe,render:function(e,t,n){return null==t.__k&&(t.textContent=""),B(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return P(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){var n=h(xe,{__v:e,i:t});return n.containerInfo=t,n},createElement:h,createContext:function(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},createFactory:function(e){return h.bind(null,e)},cloneElement:function(e){return Pe(e)?O.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:m,isValidElement:Pe,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:w,PureComponent:$e,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ce(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=le({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=de,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:ge,SuspenseList:be,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 h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Be};function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){return null!=e&&"function"==typeof e.Dispose}function Ue(e){Ve(e)&&e.Dispose()}function He(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 ze(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new je(e[Symbol.iterator]())}function We(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 Ye{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 Ke(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function qe(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Ze(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Je{static id(e){return Je.idMap.has(e)||Je.idMap.set(e,++Je.count),Je.idMap.get(e)}}function Xe(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function Qe(e){return 2654435761*e|0}function et(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function tt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Qe(e);case"string":return Xe(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=tt(e[r]);return et(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=>tt(e)));return et(t)}return Qe(Je.id(e))}}function nt(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 rt(e,t){return nt(e,t,ot)}function ot(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):Le(e)?Le(t)&&rt(e,t):e instanceof Date?t instanceof Date&&0===it(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]||!ot(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function it(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qe(e),r=t.getTime()+qe(t)),n===r?0:n<r?-1:1}function st(e,t){return e===t?0:e<t?-1:1}function at(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,ut)}function ut(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):Le(e)?Le(t)?at(e,t):-1:e instanceof Date?t instanceof Date?it(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=ut(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function lt(e,t,n){return e(t,n)>0?t:n}function ct(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Je.idMap=new WeakMap,Je.count=0;const $t=Symbol("curried");function ft(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[$t]=t,n}function dt(e,t,n){return r=>1===t?n(...e.concat([r])):dt(e.concat([r]),t-1,n)}function ht(e,t,n){if(null!=t){if($t in t){t=t[$t];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return dt(n,e,t)}}function pt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ke(~~(e/36e5),2)+":"+Ke(n,2)}function mt(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 wt(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 gt(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," ")+pt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return wt(i,t,!0);switch(t){case"D":case"d":return mt(i,"first");case"T":case"t":return mt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+pt(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 wt(e,t,n);switch(t){case"D":case"d":return n?mt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?mt(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 Ke(e.getFullYear(),4)+"-"+Ke(e.getMonth()+1,2)+"-"+Ke(e.getDate(),2)+"T"+Ke(e.getHours(),2)+":"+Ke(e.getMinutes(),2)+":"+Ke(e.getSeconds(),2)+"."+Ke(e.getMilliseconds(),3)+(t?pt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function yt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function bt(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 vt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=bt(e),o=null!=r?t&&"Z"===r?1:2:0;return yt(n.getTime(),o)}(e),!0}catch(e){return!1}}const _t=Symbol("numeric");function xt(e){return"number"==typeof e||(null==e?void 0:e[_t])}function St(e,t){return"number"==typeof e?e*t:e[_t]().multiply(t)}function Ct(e,t){return"number"==typeof e?e.toFixed(t):e[_t]().toFixed(t)}function Et(e,t){return"number"==typeof e?e.toPrecision(t):e[_t]().toPrecision(t)}function Tt(e,t){return"number"==typeof e?e.toExponential(t):e[_t]().toExponential(t)}function kt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[_t]().toHex()}function It(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function At(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 Nt(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+=Nt(r);else{if(100===t){n+="; ...";break}n+="; "+Nt(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+" = "+Nt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Mt{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=Nt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Nt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>tt(e)));return e.splice(0,0,Qe(this.tag)),et(e)}Equals(e){return this===e||!!He(this,e)&&this.tag===e.tag&&rt(this.fields,e.fields)}CompareTo(e){return this===e?0:He(this,e)?this.tag===e.tag?at(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Dt{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+" = "+Nt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>tt(e)));return et(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ot(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(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ut(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Rt{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)}}function Gt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}const Bt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Pt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ot(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ft(e){return{input:e,cont:(t=e,e=>{Bt.lastIndex=0;const n=[],r=[];let o=0,i=Bt.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Bt.lastIndex,Bt.lastIndex-=1,i=Bt.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),jt(e,n,r))})};var t}function Lt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Vt(e){return Lt((e=>e),e)}function Ut(e){return Lt((e=>{throw new Error(e)}),e)}function Ht(e,t,n,r,o){let i="";if(t=t||"",o=o||"",xt(e))switch("x"!==o.toLowerCase()&&(Ot(e,0)?(e=St(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Ct(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Et(e,r):Et(e);break;case"e":case"E":e=null!=r?Tt(e,r):Tt(e);break;case"x":e=kt(e);break;case"X":e=kt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?gt(e):Nt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Wt(e,n-i.length,s,o)):Wt(i+e,n,s,o)}return e}function jt(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Ht(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):jt(e,a,u,s,o)}}function zt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Wt(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 Yt(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(It),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function Kt(e,t){return t.split("").filter((t=>e(t))).join("")}var qt=n(118);class Zt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return tt(this.value)}Equals(e){return null!=e&&ot(this.value,e instanceof Zt?e.value:e)}CompareTo(e){return null==e?1:ut(this.value,e instanceof Zt?e.value:e)}}function Jt(e){return null==e||e instanceof Zt?new Zt(e):e}function Xt(e){if(null==e)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Qt(e){return null==e?void 0:e}function en(e){return null==e?null:Xt(e)}function tn(e){return null==e?[]:[Xt(e)]}function nn(e,t){return null!=e?Xt(e):t}function rn(e,t){return null!=t?Jt(e(Xt(t))):void 0}function on(e,t){return null!=t?e(Xt(t)):void 0}function sn(e,t){return"function"==typeof e?new e(t):new Array(t)}function an(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function un(e,t,n){const r=0|t.length,o=sn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function ln(e,t,n){return function(e,t,n,r,o){const i=0|nn(n,0),s=0|nn(rn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function cn(e,t,n){return n.reduce(e,t)}function $n(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class fn extends Dt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+zt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(ot(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+tt(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|ut(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new dn(this)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}}class dn{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 hn(){return new fn(null,void 0)}function pn(e,t){return new fn(e,t)}function mn(e){return null==e.tail}function wn(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function gn(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function yn(){return hn()}function bn(e,t){return pn(e,t)}function vn(e){return pn(e,hn())}function _n(e){return mn(e)}function xn(e){return wn(e)}function Sn(e){return gn(e)}function Cn(e){const t=0|function(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)}(e),n=an(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(mn(o))break;n[r]=wn(o),e=r+1,t=gn(o)}})(0,e),n}function En(e,t,n){let r=t,o=n;for(;!mn(o);)r=e(r,wn(o)),o=gn(o);return r}function Tn(e){return En(((e,t)=>pn(t,e)),hn(),e)}function kn(e,t){En(((t,n)=>{e(n)}),void 0,t)}function In(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=pn(e[t],n);return n}function An(e){return In(e,hn())}function Nn(e,t){return En(((e,t)=>pn(t,e)),t,Tn(e))}function Mn(e,t){const n=hn(),r=En(((t,n)=>{const r=new fn(e(n),void 0);return t.tail=r,r}),n,t),o=hn();return r.tail=o,gn(n)}function Dn(e,t){return function(e,t){const n=Cn(t);return n.sort(e),An(n)}(((e,n)=>t.Compare(e,n)),e)}const Rn=Fe,Gn=Nt(qt.Z),Bn=h("svg",ct(An([["className",zt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=vn(h("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",Rn.Children.toArray(Array.from(e))]})()]))),Pn=h("svg",ct(An([["className",zt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=vn(h("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",Rn.Children.toArray(Array.from(e))]})()]))),On=h("svg",ct(An([["className",zt(" ",["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=vn(h("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Rn.Children.toArray(Array.from(e))]})()]))),Fn=h("svg",ct(An([["className",zt(" ",["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=vn(h("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Rn.Children.toArray(Array.from(e))]})()]))),Ln=h("svg",ct(An([["className",zt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=vn(h("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",Rn.Children.toArray(Array.from(e))]})()]))),Vn=An(["flex","flex-col","align-center"]),Un=(e,t)=>{ee((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Hn(e){return{Dispose(){e()}}}function jn(e){return Rn.useState(e)}function zn(e,t){Un(e,t)}function Wn(e,t){Un((t=>(e(),Hn((()=>{})))),t)}function Yn(e){return Rn.useRef(e)}function Kn(e){const t=Yn(e),n=function(e,n){const r=nn([],[]);return Rn.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Hn((()=>{}))),te((()=>{const e=o();return()=>{e.Dispose()}})),n}function qn(e){return Rn.useState(e)}class Zn{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)}}}}class Jn extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Jn.prototype)}}class Xn{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Xn.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Qn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Jn);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Gt(e))}}));else try{e(t)}catch(e){t.onError(Gt(e))}}}const er=new class{Bind(e,t){return function(e,t){return Qn((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Gt(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 Qn((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 Qn((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Qn((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 Qn((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Gt(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 Qn((e=>e.onSuccess(void 0)))}};function tr(e){}function nr(e){const t=new Zn("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function rr(e){e.cancel()}const or=new Zn;function ir(e){return Qn((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Jn)}))}))}function sr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Xn;e({onSuccess:t||tr,onError:n||tr,onCancel:r||tr,cancelToken:o||or,trampoline:i})}(e,t)}(e,t)}class ar extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ur(e,t){const n=Yn(nr());return zn((()=>Hn((()=>{rr(n.current)}))),[]),Kn((r=>{var o;null!=(o=n.current)&&o.isCancelled||sr(er.Delay((()=>er.TryWith(er.Delay((()=>(t(new ar(1)),er.Bind(e(r),(e=>(t(new ar(2,e)),er.Zero())))))),(e=>(t(new ar(3,e)),er.Zero()))))),n.current)}))}class lr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function cr(e,t){return 0===t.tag?new lr(0,e(t.fields[0])):new lr(1,t.fields[0])}function $r(e,t){return 0===t.tag?e(t.fields[0]):new lr(1,t.fields[0])}function fr(){return e=ut,{Compare:(t,n)=>e(t,n)};var e}const dr="The input sequence has an insufficient number of elements.";function hr(){throw new Error("Enumeration has not started. Call MoveNext.")}function pr(){throw new Error("Enumeration already finished.")}class mr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=ze(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Nt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ue(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class wr{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 gr(e,t,n){return new wr(e,t,n)}function yr(e,t,n){let r,o=!1,i=Jt(e());const s=()=>{if(null!=i){const e=Xt(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return gr((()=>(o||hr(),null!=r?Xt(r):pr())),(()=>{if(o||(o=!0),null!=i){const e=Xt(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function br(e){return function(e){return new mr(e)}(e)}function vr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),ze(e);var t}function _r(e){return br((()=>ze(e())))}function xr(e){return br((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{Ue(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ue(e)}finally{t=void 0}}};return gr((()=>(o?i&&pr():hr(),null!=r?Xt(r):pr())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=Jt(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ue(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=ze(a)):(s(),o=!1)}else t=ze(e)}return Xt(o)}}),(()=>{i||s()}))}(e)))}function Sr(){return _r((()=>new Array(0)))}function Cr(e){return _r((()=>function(e,t){const n=sn(void 0,1);return n[0]=e,n}(e)))}function Er(e){return Le(e)?An(e):e instanceof fn?e:function(e){let t,n;if(Le(e))return An(e);if(e instanceof fn)return e;{const r=hn();let o=r;const i=ze(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new fn(e,void 0),t.tail=n,o=n}}finally{Ue(i)}const s=o,a=hn();return s.tail=a,gn(r)}}(e)}function Tr(e,t,n){return br((()=>yr(e,t,n)))}function kr(e,t,n){return br((()=>{let r=-1;return yr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Ir(e,t){return xr([e,t])}function Ar(e,t,n){const r=vr(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{Ue(r)}}function Nr(e,t){return function(e,t){return Tr((()=>vr(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=>{Ue(e)}))}((t=>e(t)?Jt(t):void 0),t)}function Mr(e,t,n){const r=vr(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{Ue(r)}}function Dr(e,t){Mr(((t,n)=>{e(n)}),void 0,t)}function Rr(e,t){return Tr((()=>vr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?Jt(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ue(e)}))}function Gr(e,t){return br((()=>{const n=vr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(dr+"\\nParameter name: source");return function(e,t){return gr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ue(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ue(n),e}}))}function Br(e,t){return _r((()=>xr(Rr(e,t))))}function Pr(e,t){return null==t?new lr(1,e):new lr(0,Xt(t))}function Or(e,t,n){return ot(n,e)?new lr(0,void 0):new lr(1,t)}Symbol.iterator;class Fr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Lr(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Vr(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Ur(e){return e.tag,e.fields[0]}function Hr(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=nr();var u;return u=()=>{!function(e,t){sr(er.Delay((()=>er.Bind(ir(5e3),(()=>(e(),er.Zero()))))),t)}(i,a)},Wn(u,[]),h("div",ct(An([["className",zt(" ",["rounded-md","p-4","my-4",Vr(s)])],(t=[h("div",ct(An([["className",zt(" ",["flex"])],(n=[h("p",{className:zt(" ",["text-sm","pr-2",Lr(s)]),children:Ur(s)}),h("div",ct(An([["className",zt(" ",["ml-auto"])],(r=[h("div",ct(An([["className",zt(" ",["-mx-1.5","-my-1.5"])],(o=[h("button",{type:"button",className:zt(" ",Er(_r((()=>Ir(Cr("inline-flex"),_r((()=>Ir(Cr("rounded-md"),_r((()=>Ir(Cr("p-1.5"),_r((()=>Ir(Cr("focus:outline-none"),_r((()=>Ir(Cr("focus:ring-2"),_r((()=>Ir(Cr("focus:ring-offset-2"),_r((()=>function(e){switch(e.tag){case 0:return An(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return An(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return An(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:Rn.Children.toArray([Ln]),onClick:e=>{rr(a),i()}})],["children",Rn.Children.toArray(Array.from(o))])])))],["children",Rn.Children.toArray(Array.from(r))])])))],["children",Rn.Children.toArray(Array.from(n))])])))],["children",Rn.Children.toArray(Array.from(t))])])))}function jr(e,t){return t}function zr(e,t,n){return cr(n,t)}new class{constructor(){}};function Wr(e,t){const n=function(e,t){return new lr(0,t)}(0,t);return er.Return(n)}function Yr(e,t){return er.Delay(t)}new class{constructor(){}};class Kr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class qr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Zr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Jr extends Dt{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class Xr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qr extends Dt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class eo{constructor(e,t){this.k=e,this.v=t}}function to(e,t){return new eo(e,t)}function no(e){return e.k}function ro(e){return e.v}class oo extends eo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function io(e,t,n,r,o){return new oo(e,t,n,r,o)}function so(e){return e.left}function ao(e){return e.right}function uo(e){return e.h}function lo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oo){e=lo(n+1,so(o)),t=ao(o);continue e}return n+1|0}return 0|n}}function co(e){return lo(0,e)}function $o(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof oo?uo(t):1}else o=0;if(null!=r){const e=r;i=e instanceof oo?uo(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?to(t,n):io(t,n,e,r,s+1)}function fo(e,t,n,r){let o,i,s,a,u,l;if(null!=e){const t=e;u=t instanceof oo?uo(t):1}else u=0;if(null!=r){const e=r;l=e instanceof oo?uo(e):1}else l=0;if(l>u+2){const s=Xt(r);if(s instanceof oo){if(o=so(s),(null!=o?(i=o,i instanceof oo?uo(i):1):0)>u+1){const r=Xt(so(s));if(r instanceof oo)return $o($o(e,t,n,so(r)),no(r),ro(r),$o(ao(r),no(s),ro(s),ao(s)));throw new Error("internal error: Map.rebalance")}return $o($o(e,t,n,so(s)),no(s),ro(s),ao(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=Xt(e);if(o instanceof oo){if(s=ao(o),(null!=s?(a=s,a instanceof oo?uo(a):1):0)>l+1){const e=Xt(ao(o));if(e instanceof oo)return $o($o(so(o),no(o),ro(o),so(e)),no(e),ro(e),$o(ao(e),t,n,r));throw new Error("internal error: Map.rebalance")}return $o(so(o),no(o),ro(o),$o(ao(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,no(o));return o instanceof oo?i<0?fo(ho(e,t,n,so(o)),no(o),ro(o),ao(o)):0===i?io(t,n,so(o),ao(o),uo(o)):fo(so(o),no(o),ro(o),ho(e,t,n,ao(o))):i<0?io(t,n,void 0,r,2):0===i?to(t,n):io(t,n,r,void 0,2)}return to(t,n)}function po(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,no(s));if(0===a)return Jt(ro(s));if(s instanceof oo){e=r,t=o,n=a<0?so(s):ao(s);continue e}return}return}}function mo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oo){mo(n,so(o)),n(no(o),ro(o)),e=n,t=ao(o);continue e}n(no(o),ro(o))}break}}function wo(e,t){mo(e,t)}function go(e,t){if(null!=t){const n=t;if(n instanceof oo){const t=go(e,so(n)),r=e(no(n),ro(n)),o=go(e,ao(n));return io(no(n),r,t,o,uo(n))}return to(no(n),e(no(n),ro(n)))}}function yo(e,t){return go(e,t)}function bo(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 vo extends Dt{constructor(e,t){super(),this.stack=e,this.started=t}}function _o(e){e:for(;;){const t=e;if(_n(t))return yn();{const n=Sn(t),r=xn(t);if(null!=r){const o=r;if(o instanceof oo){e=In([so(o),to(no(o),ro(o)),ao(o)],n);continue e}return t}e=n;continue e}}}function xo(e){return new vo(_o(vn(e)),!1)}function So(e){if(e.started){const t=e.stack;if(_n(t))return function(){throw new Error("enumeration already finished")}();if(null!=xn(t)){const e=xn(t);if(e instanceof oo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[no(e),ro(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Co(e){let t=xo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>So(t),"System.Collections.IEnumerator.get_Current":()=>So(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_n(t))return!1;if(null!=xn(t)){if(xn(t)instanceof oo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=_o(Sn(t)),!_n(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!_n(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=xo(e)},Dispose(){}}}class Eo{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=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,tt(e[0])),n=0|t(n,tt(e[1]))}}finally{Ue(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Eo))return!1;{const t=ze(this);try{const n=ze(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!(!ot(r[0],o[0])||!ot(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ue(n)}}finally{Ue(t)}}}toString(){return"map ["+zt("; ",Rr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Pt,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[n];if(xt(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ct(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Et(a,i):Et(a);break;case"e":case"E":a=null!=i?Tt(a,i):Tt(a);break;case"p":case"P":i=null!=i?i:2,a=Ct(St(a,100),i)+" %";break;case"d":case"D":a=null!=i?Wt(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?Wt(kt(a),i,"0"):kt(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Ot(a,0)&&(a=St(a,-1),e="-");const o=null!=r?r.length:0;if(a=Ct(a,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=a.split("."),n=e.length%3,r=Math.floor(e.length/3);let o=n>0?e.substr(0,n)+(r>0?",":""):"";for(let t=0;t<r;t++)o+=e.substr(n+3*t,3)+(t<r-1?",":"");a=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return Wt(a,i-e.length+o,"0")})),a=e+a}}else a=a instanceof Date?gt(a,s||o):Nt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Wt(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Co(this.tree)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Co(this.tree)}CompareTo(e){const t=this;if(e instanceof Eo)return 0|function(e,t,n){const r=vr(t);try{const t=vr(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{Ue(t)}}finally{Ue(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:ut(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 No(this,e[0])&&ot(Io(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;wo(((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|Ao(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ao(this)}get size(){return 0|Ao(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Rr((e=>[e[0],e[1]]),this)}get(e){return Io(this,e)}has(e){return No(this,e)}keys(){return Rr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Rr((e=>e[1]),this)}forEach(e,t){const n=this;Dr((t=>{e(t[1],t[0],n)}),n)}}function To(e,t){return new Eo(e,t)}function ko(e){const t=fr();return To(t,function(e,t){if(Le(t))return bo(e,t);if(t instanceof fn)return function(e,t){return En(((t,n)=>ho(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=ze(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ho(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{Ue(n)}}}(t,e))}function Io(e,t){return function(e,t,n){const r=po(e,t,n);if(null==r)throw new Error;return Xt(r)}(e.comparer,t,e.tree)}function Ao(e){return co(e.tree)}function No(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,no(s));if(s instanceof oo){if(a<0){e=r,t=o,n=so(s);continue e}if(0===a)return!0;e=r,t=o,n=ao(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Mo(e,t,n){return function(e,t,n){return To(e.comparer,ho(e.comparer,t,n,e.tree))}(n,e,t)}function Do(e,t){return function(e,t){return po(e.comparer,t,e.tree)}(t,e)}function Ro(e,t){return function(e,t){return To(e.comparer,yo(t,e.tree))}(t,e)}function Go(e){return ko(e)}function Bo(){return Eo.empty}Eo.empty=To(fr(),void 0);const Po=new Jr("",new Kr(0),yn(),!1,void 0,void 0,void 0,new Zr(0));function Oo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Yt(t,[e],null,0);var n}function Fo(e){return new Jr(e,Po.method,Po.headers,Po.withCredentials,Po.overridenMimeType,Po.overridenResponseType,Po.timeout,Po.content)}function Lo(e,t){return new Jr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Vo(e,t){return new Jr(t.url,t.method,Nn(t.headers,vn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Uo(e){return function(e){return Qn((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new Xr(0,n.responseText):new Xr("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Qr(o,e,i,function(e){const t=fr();return To(t,bo(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=Xt(o);r.push(e)}}return r}((e=>{const t=An(Oo(":",e));return _n(t)?void 0:[xn(t).toLocaleLowerCase(),zt(":",Sn(t)).trim()]}),Oo("\r\n",n.getAllResponseHeaders()))),s)))};const r=ze(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{Ue(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(Jt(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(Jt(a[1].fields[0])):n.send(Jt(void 0))}))}new Qr(0,"","",Bo(),new Xr(0,""));class Ho extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class jo extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class zo{constructor(){this.cache=new Map([])}}function Wo(){return new zo}function Yo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ko(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=At(e,s),u=At.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(Yo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Yo(t)}}Wo(),Wo();const qo=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Zo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Jo=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Xo(e,t){try{return t.contents=function(e){function t(e){return e.replace(Zo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(qo.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+It(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Zo.test(n))return t(n);if(Jo.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 Qo;function ei(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 ti(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&Qo.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]=ei(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=ei(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function ni(e,t,n,r,o){try{return o.contents=ti(e,t,n,r),!0}catch(e){return!1}}function ri(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 oi(e,t){try{return t.contents=function(e){const[t,n]=bt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return ri(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Qo||(Qo={}));var ii=null;try{ii=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 si(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function ai(e){return!0===(e&&e.__isLong__)}si.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},si.prototype.Equals=function(e){return Ri(this,e)},si.prototype.CompareTo=function(e){return Oi(this,e)},si.prototype.toString=function(e){return Ai(this,e)},si.prototype.toJSON=function(){return Ai(this)},si.prototype[_t]=function(){const e=this;return{multiply:t=>Ui(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 Ai(e.unsigned?e:function(e,t,n){return n?function(e,t){return new si(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 si(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}}},si.prototype.__isLong__,Object.defineProperty(si.prototype,"__isLong__",{value:!0});var ui={},li={};function ci(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=li[e])?r:(n=fi(e,(0|e)<0?-1:0,!0),o&&(li[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ui[e])?r:(n=fi(e,e<0?-1:0,!1),o&&(ui[e]=n),n)}function $i(e,t){if(isNaN(e))return t?vi:bi;if(t){if(e<0)return vi;if(e>=wi)return Ei}else{if(e<=-gi)return Ti;if(e+1>=gi)return Ci}return e<0?Fi($i(-e,t)):fi(e%mi|0,e/mi|0,t)}function fi(e,t,n){return new si(e,t,n)}var di=Math.pow;function hi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return bi;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 Fi(hi(e.substring(1),t,n));for(var o=$i(di(n,8)),i=bi,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=Li(a<8?Ui(i,$i(di(n,a))):i=Ui(i,o),$i(u))}return i.unsigned=t,i}function pi(e,t){return"number"==typeof e?$i(e,t):"string"==typeof e?hi(e,t):fi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var mi=4294967296,wi=mi*mi,gi=wi/2,yi=ci(1<<24),bi=ci(0),vi=ci(0,!0),_i=ci(1),xi=ci(1,!0),Si=ci(-1),Ci=fi(-1,2147483647,!1),Ei=fi(-1,-1,!0),Ti=fi(0,-2147483648,!1);function ki(e){return e.unsigned?e.low>>>0:e.low}function Ii(e){return e.unsigned?(e.high>>>0)*mi+(e.low>>>0):e.high*mi+(e.low>>>0)}function Ai(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Ni(e))return"0";if(Mi(e)){if(Ri(e,Ti)){var n=$i(t),r=Hi(e,n),o=Vi(Ui(r,n),e);return Ai(r,t)+ki(o).toString(t)}return"-"+Ai(Fi(e),t)}for(var i=$i(di(t,6),e.unsigned),s=e,a="";;){var u=Hi(s,i),l=(ki(Vi(s,Ui(u,i)))>>>0).toString(t);if(Ni(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function Ni(e){return 0===e.high&&0===e.low}function Mi(e){return!e.unsigned&&e.high<0}function Di(e){return 1==(1&e.low)}function Ri(e,t){return ai(t)||(t=pi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Gi(e,t){return Oi(e,t)<0}function Bi(e,t){return Oi(e,t)>0}function Pi(e,t){return Oi(e,t)>=0}function Oi(e,t){if(ai(t)||(t=pi(t)),Ri(e,t))return 0;var n=Mi(e),r=Mi(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:Mi(Vi(e,t))?-1:1}function Fi(e){return!e.unsigned&&Ri(e,Ti)?Ti:Li(function(e){return fi(~e.low,~e.high,e.unsigned)}(e),_i)}function Li(e,t){ai(t)||(t=pi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,fi(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Vi(e,t){return ai(t)||(t=pi(t)),Li(e,Fi(t))}function Ui(e,t){if(Ni(e))return e.unsigned?vi:bi;if(ai(t)||(t=pi(t)),ii)return fi(ii.mul(e.low,e.high,t.low,t.high),ii.get_high(),e.unsigned);if(Ni(t))return e.unsigned?vi:bi;if(Ri(e,Ti))return Di(t)?Ti:bi;if(Ri(t,Ti))return Di(e)?Ti:bi;if(Mi(e))return Mi(t)?Ui(Fi(e),Fi(t)):Fi(Ui(Fi(e),t));if(Mi(t))return Fi(Ui(e,Fi(t)));if(Gi(e,yi)&&Gi(t,yi))return $i(Ii(e)*Ii(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*u)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*u)>>>16,$&=65535,c+=($+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,fi((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function Hi(e,t){if(ai(t)||(t=pi(t)),Ni(t))throw Error("division by zero");var n,r,o;if(ii)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?fi((e.unsigned?ii.div_u:ii.div_s)(e.low,e.high,t.low,t.high),ii.get_high(),e.unsigned):e;if(Ni(e))return e.unsigned?vi:bi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:fi(e.low,e.high,!0)}(t)),Bi(t,e))return vi;if(Bi(t,function(e,t){if(ai(t)&&(t=ki(t)),0==(t&=63))return e;var n=e.high;return t<32?fi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):fi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return xi;o=vi}else{if(Ri(e,Ti))return Ri(t,_i)||Ri(t,Si)?Ti:Ri(t,Ti)?_i:Ri(n=function(e,t){return ai(t)&&(t=ki(t)),0==(t&=63)?e:t<32?fi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):fi(0,e.low<<t-32,e.unsigned)}(Hi(function(e,t){return ai(t)&&(t=ki(t)),0==(t&=63)?e:t<32?fi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):fi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),bi)?Mi(t)?_i:Si:o=Li(n,Hi(r=Vi(e,Ui(t,n)),t));if(Ri(t,Ti))return e.unsigned?vi:bi;if(Mi(e))return Mi(t)?Hi(Fi(e),Fi(t)):Fi(Hi(Fi(e),t));if(Mi(t))return Fi(Hi(e,Fi(t)));o=bi}for(r=e;Pi(r,t);){n=Math.max(1,Math.floor(Ii(r)/Ii(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:di(2,i-48),a=$i(n),u=Ui(a,t);Mi(u)||Bi(u,r);)u=Ui(a=$i(n-=s,e.unsigned),t);Ni(a)&&(a=_i),o=Li(o,a),r=Vi(r,u)}return o}const ji=Hi,zi=Ii;function Wi(e){return e<0?Math.ceil(e):Math.floor(e)}function Yi(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Ki(arguments[0]);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 Ki(e){return zi(ji(e,1e4))}function qi(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 Yi(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Yi(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Zi{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Ji{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return fs(this)}GetHashCode(){return Qi(this)}Equals(e){return es(this,e)}}function Xi(e){return null!=e.generics?e.generics:[]}function Qi(e){return et([Xe(e.fullname),...Xi(e).map(Qi)])}function es(e,t){return""===e.fullname?""===t.fullname&&nt(_s(e),_s(t),(([e,t],[n,r])=>e===n&&es(t,r))):e.fullname===t.fullname&&nt(Xi(e),Xi(t),es)}function ts(e,t,n,r){return new Ji(e,t,n,void 0,r)}function ns(...e){return new Ji("",void 0,void 0,void 0,(()=>e))}function rs(e,t,n,r){const o=new Ji(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new Zi(o,n,e[n],t)))}));return o}function os(e){return new Ji("Microsoft.FSharp.Core.FSharpOption`1",[e])}function is(e){return new Ji("Microsoft.FSharp.Collections.FSharpList`1",[e])}function ss(e,t,n){return new Ji(e,[t],void 0,void 0,void 0,void 0,n)}const as=new Ji("System.Object"),us=(new Ji("Microsoft.FSharp.Core.Unit"),new Ji("System.Char"),new Ji("System.String")),ls=new Ji("System.Boolean"),cs=(new Ji("System.SByte"),new Ji("System.Byte"),new Ji("System.Int16"),new Ji("System.UInt16"),new Ji("System.Int32"));function $s(e){if(Array.isArray(e))return e[0];if(e instanceof Ji){const t=hs(e);if(null!=t)return $s(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function fs(e){const t=hs(e);return null!=t?fs(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>fs(e))).join(",")+"]"}function ds(e){return null!=hs(e)}function hs(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ps(e){return null!=e.generics&&e.generics.length>0}function ms(e){return null!=e.enumCases&&e.enumCases.length>0}function ws(e){return null==e.generics?e:new Ji(e.fullname,e.generics.map((()=>as)))}function gs(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function ys(e){if(ms(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function bs(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 vs(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function _s(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function xs(e){if(Es(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ss(e){return e instanceof Ji?null!=e.cases:e instanceof Mt}function Cs(e){return e instanceof Ji?null!=e.fields:e instanceof Dt}function Es(e){return e.fullname.startsWith("System.Tuple")}function Ts(e){return null==e.fields?[]:e.fields}function ks(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):{}}new Ji("System.UInt32"),new Ji("System.Single"),new Ji("System.Double"),new Ji("System.Decimal");class Is{constructor(e){this.k=e}}function As(e){return new Is(e)}function Ns(e){return e.k}class Ms extends Is{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ds(e,t,n,r){return new Ms(e,t,n,r)}function Rs(e){return e.left}function Gs(e){return e.right}function Bs(e){return e.h}function Ps(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ms){e=Rs(o),t=Ps(Gs(o),r+1);continue e}return r+1|0}return 0|r}}function Os(e){return Ps(e,0)}function Fs(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ms?Bs(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ms?Bs(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?As(t):Ds(t,e,n,i+1)}function Ls(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Ms?Bs(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Ms?Bs(e):1}else u=0;if(u>a+2){const i=Xt(n);if(i instanceof Ms){if(r=Rs(i),(null!=r?(o=r,o instanceof Ms?Bs(o):1):0)>a+1){const n=Xt(Rs(i));if(n instanceof Ms)return Fs(Fs(e,t,Rs(n)),Ns(n),Fs(Gs(n),Ns(i),Gs(i)));throw new Error("internal error: Set.rebalance")}return Fs(Fs(e,t,Rs(i)),Ns(i),Gs(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=Xt(e);if(r instanceof Ms){if(i=Gs(r),(null!=i?(s=i,s instanceof Ms?Bs(s):1):0)>u+1){const e=Xt(Gs(r));if(e instanceof Ms)return Fs(Fs(Rs(r),Ns(r),Rs(e)),Ns(e),Fs(Gs(e),t,n));throw new Error("internal error: Set.rebalance")}return Fs(Rs(r),Ns(r),Fs(Gs(r),t,n))}throw new Error("internal error: Set.rebalance")}return Fs(e,t,n)}function Vs(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Ns(r));if(r instanceof Ms)return o<0?Ls(Vs(e,t,Rs(r)),Ns(r),Gs(r)):0===o?n:Ls(Rs(r),Ns(r),Vs(e,t,Gs(r)));{const o=0|e.Compare(t,Ns(r));return o<0?Ds(t,void 0,n,2):0===o?n:Ds(t,n,void 0,2)}}return As(t)}function Us(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Ns(s));if(s instanceof Ms){if(a<0){e=r,t=o,n=Rs(s);continue e}if(0===a)return!0;e=r,t=o,n=Gs(s);continue e}return 0===a}return!1}}function Hs(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ms){Hs(n,Rs(o)),n(Ns(o)),e=n,t=Gs(o);continue e}n(Ns(o))}break}}class js extends Dt{constructor(e,t){super(),this.stack=e,this.started=t}}function zs(e){e:for(;;){const t=e;if(_n(t))return yn();{const n=xn(t),r=Sn(t);if(null!=n){const o=n;if(o instanceof Ms){e=In([Rs(o),As(Ns(o)),Gs(o)],r);continue e}return t}e=r;continue e}}}function Ws(e){return new js(zs(vn(e)),!1)}function Ys(e){if(e.started){const t=e.stack;if(_n(t))return function(){throw new Error("Enumeration already started")}();if(null!=xn(t))return Ns(xn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ks(e){let t=Ws(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ys(t),"System.Collections.IEnumerator.get_Current":()=>Ys(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_n(t))return!1;if(null!=xn(t)){if(xn(t)instanceof Ms)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=zs(Sn(t)),!_n(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!_n(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ws(e)},Dispose(){}}}function qs(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(_n(s[0]))return _n(s[1])?0:-1;if(_n(s[1]))return 1;if(null!=xn(s[1]))if(null!=xn(s[0])){const a=xn(s[0]),u=xn(s[1]);if(a instanceof Ms)if(null==Rs(a)){if(!(u instanceof Ms)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(Gs(a),Sn(s[0])),n=bn(void 0,Sn(s[1]));continue e}if(null==Rs(u)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(Gs(a),Sn(s[0])),n=bn(Gs(u),Sn(s[1]));continue e}{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Rs(l),Ds(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Rs($),Ds(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Rs(l),Ds(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Rs($),Ds(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ms)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}if(null==Rs(u)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(void 0,Sn(s[0])),n=bn(Gs(u),Sn(s[1]));continue e}{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Rs(l),Ds(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Rs($),Ds(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{xn(s[1]);const a=[o,i];let u,l,c,$,f;switch(_n(a[0])?_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2:null!=xn(a[0])?(u=0,l=Sn(a[0]),c=xn(a[0])):_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2,u){case 0:if(c instanceof Ms){e=r,t=In([Rs(c),Ds(Ns(c),void 0,Gs(c),0)],l),n=i;continue e}e=r,t=In([void 0,As(Ns(c))],l),n=i;continue e;case 1:if(f instanceof Ms){e=r,t=o,n=In([Rs(f),Ds(Ns(f),void 0,Gs(f),0)],$);continue e}e=r,t=o,n=In([void 0,As(Ns(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==xn(s[0])){e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}{xn(s[0]);const a=[o,i];let u,l,c,$,f;switch(_n(a[0])?_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2:null!=xn(a[0])?(u=0,l=Sn(a[0]),c=xn(a[0])):_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2,u){case 0:if(c instanceof Ms){e=r,t=In([Rs(c),Ds(Ns(c),void 0,Gs(c),0)],l),n=i;continue e}e=r,t=In([void 0,As(Ns(c))],l),n=i;continue e;case 1:if(f instanceof Ms){e=r,t=o,n=In([Rs(f),Ds(Ns(f),void 0,Gs(f),0)],$);continue e}e=r,t=o,n=In([void 0,As(Ns(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,vn(t),vn(n))}function Zs(e,t,n){let r=n;Hs((e=>{t[r]=e,r=r+1|0}),e)}function Js(e,t){if(Le(t))return function(e,t){return cn(((t,n)=>Vs(e,n,t)),void 0,t)}(e,t);if(t instanceof fn)return function(e,t){return En(((t,n)=>Vs(e,n,t)),void 0,t)}(e,t);{const n=ze(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=Vs(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ue(n)}}}class Xs{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|tt(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ue(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Xs&&0===qs(Qs(this),ea(this),ea(e))}toString(){return"set ["+zt("; ",Rr((e=>Nt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|qs(Qs(this),ea(this),ea(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 Us(Qs(this),e,ea(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Zs(ea(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ta(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ta(this)}GetEnumerator(){return Ks(ea(this))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(ea(this))}get size(){return 0|ta(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 Us(Qs(e),t,ea(e))}(this,e)}keys(){return Rr((e=>e),this)}values(){return Rr((e=>e),this)}entries(){return Rr((e=>[e,e]),this)}forEach(e,t){const n=this;Dr((t=>{e(t,t,n)}),n)}}function Qs(e){return e.comparer}function ea(e){return e.tree}function ta(e){return Os(ea(e))}function na(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 ra(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new lr(1,function(e,t){const n=2===t.tag?na(t.fields[0],t.fields[1],!0):1===t.tag?na(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?na(t.fields[0],t.fields[1],!0):4===t.tag?na(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"+zt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:na(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new lr(0,r.fields[0])}const oa=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 lr(0,(e+128&255)-128):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for a sbyte")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,8,new Rt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},ia=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 lr(0,255&e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for a byte")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,8,new Rt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},sa=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 lr(0,(e+32768&65535)-32768):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,16,new Rt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},aa=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 lr(0,65535&e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,16,new Rt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},ua=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 lr(0,~~e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for an int")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,32,new Rt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},la=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 lr(0,e>>>0):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,32,new Rt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])};function ca(e,t,n,r){let o;const i=n+".["+Ze(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new lr(1,[i,new Ho(5,"a longer array. Need index `"+Ze(e)+"` but there are only `"+(o=n.length,Ze(o)+"` entries"),r)])}return new lr(1,[i,new Ho(0,"an array",r)])}function $a(e,t,n){if(Array.isArray(n)){let r=-1;return cr(Tn,cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ze(r)+"]",o);return 0===i.tag?new lr(0,bn(i.fields[0],n.fields[0])):new lr(1,i.fields[0])}return n}),new lr(0,yn()),n))}return new lr(1,[t,new Ho(0,"a list",n)])}function fa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+Ze(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new lr(0,i)):new lr(1,s.fields[0])}return n}),new lr(0,an(new Array(o.length),0,o.length,null)),o)}return new lr(1,[t,new Ho(0,"an array",n)])}function da(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new lr(1,o.fields[0])}function ha(e,t){let n;const r=e;return n=e=>t=>ca(0,r,e,t),e=>r=>da(ft(3,(e=>{let n;const r=t;return n=e=>t=>ca(1,r,e,t),t=>r=>da(((t,n,r)=>new lr(0,[e,t])),ft(2,n),t,r)})),ft(2,n),e,r)}function pa(e){return Go(e)}function ma(e){return function(e,t){return new Xs(e,t)}(t={Compare:ut},Js(t,e));var t}function wa(e,t,n,r){let o,i;return t.length!==r.length?new lr(1,[n,new Ho(6,(o=0|r.length,i=0|t.length,Vt(Ft("Expected %i %s but got %i"))(i)(e)(o)))]):$n(((e,t,r)=>0===r.tag?cr((e=>bn(e,r.fields[0])),t(n)(e)):r),r,t,new lr(0,yn()))}function ga(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>$s(e)===r))}(0,vs(n));if(null!=s){const n=s;return 0===i.length?new lr(0,ks(n,[])):cr((e=>ks(n,Cn(e))),wa("union fields",un((n=>ba(e,t,!1,n[1])),Ts(n)),o,i))}return new lr(1,[o,new Ho(6,"Cannot find case "+r+" in "+fs(n))])}function ya(e,t,n,r){const o=new Rt(null),i=Mo(fs(r),o,e);let s;if(Cs(r)){const e=un((e=>[Ko(t,$s(e)),ba(i,t,!1,e[1])]),_s(r));s=t=>n=>cr((e=>function(e,t){const n=_s(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,Cn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new lr(1,[t,new Ho(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(ft(2,(e=>{const r=e[0];return o=>0===o.tag?cr((e=>bn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new lr(0,yn()))}(e,t,n))}else if(Ss(r))s=e=>n=>{if("string"==typeof n)return ga(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return ga(i,t,r,o[0],e,o.slice(1,o.length))}return new lr(1,[e,new Ho(0,"a string or array",n)])};else{if(!n){let e;const t=fs(r);throw e=Vt(Ft("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new lr(1,[e,new Ho(2,"an extra coder for "+fs(r),t)])}return o.contents=s,s}function ba(e,t,n,r){let o,i,s;const a=fs(r),u=Do(a,e);if(null==u){if(ds(r)){const n=ba(e,t,!1,hs(r));return e=>t=>fa(ft(2,n),e,t)}if(ms(r)){const e=fs(gs(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=oa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=ia(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=sa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString(a))):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=aa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=ua(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,Ze(e))):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=la(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};{const e=fs(r),t=Ut(Ft("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing 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(ps(r)){if(Es(r)){const n=un((n=>ba(e,t,!1,n)),xs(r));return e=>t=>Array.isArray(t)?cr((e=>Cn(e)),wa("tuple elements",n,e,t)):new lr(1,[e,new Ho(0,"an array",t)])}{const a=fs(ws(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=ba(e,t,!0,Xi(r)[0]),e=>t=>{return n=ft(2,o),r=e,null==(i=t)?new lr(0,void 0):cr(Jt,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=ba(e,t,!1,Xi(r)[0]),e=>t=>$a(ft(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=ba(e,t,!1,Xi(r)[0]),o=ba(e,t,!1,Xi(r)[1]);let i;const a=An([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new lr(1,[n,new Ho(0,"an object",r)]):Mr(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new lr(0,bn([s.fields[0],e.fields[0]],o.fields[0])):new lr(1,e.fields[0])}return new lr(1,s.fields[0])}return o}),new lr(0,yn()),Object.keys(r))}(ft(2,n),ft(2,o),e,t),(s=ha(ft(2,n),ft(2,o)),e=>t=>$a(ft(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(_n(o))return new lr(1,[n,new Ho(7,i)]);{const s=ra(n,ft(2,xn(o)),r);if(1===s.tag){e=Sn(o),t=Nn(i,vn(s.fields[0]));continue e}return new lr(0,s.fields[0])}}})(a,yn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new lr(1,o.fields[0]):new lr(0,e(o.fields[0]))}(pa,ft(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=ba(e,t,!1,Xi(r)[0]);return e=>t=>{const r=fa(ft(2,n),e,t);return 0===r.tag?new lr(0,ma(r.fields[0])):new lr(1,r.fields[0])}}return ya(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new lr(0,void 0):new lr(1,[n,new Ho(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>{return n=e,"string"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a string",r)]);var n,r}:"System.SByte"===a?oa:"System.Byte"===a?ia:"System.Int16"===a?sa:"System.UInt16"===a?aa:"System.Int32"===a?ua:"System.UInt32"===a?la:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let r,o=yt(-621355968e5,0);return r=[vt(t,new Rt((()=>o),(e=>{o=e}))),o],r[0]?new lr(0,1===(n=r[1]).kind?n:yt(n.getTime(),1)):new lr(1,[e,new Ho(0,"a datetime",t)])}var n;return new lr(1,[e,new Ho(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=ri(-621355968e5,0);return n=[oi(t,new Rt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a datetimeoffset",t)])}return new lr(1,[e,new Ho(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[qi(t,new Rt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a timespan",t)])}return new lr(1,[e,new Ho(0,"a timespan",t)])}(e,t):"System.Guid"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Xo(t,new Rt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a guid",t)])}return new lr(1,[e,new Ho(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new lr(0,e):ya(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const va=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 _a=e=>function(e,t){return 0!=(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 va(n)}(e,0)&256)}(e);function xa(e,t){return!t.has(e)&&(t.add(e),!0)}function Sa(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ca{constructor(e,t){const n=new Rt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Ia(n.contents,e)}}finally{Ue(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}GetEnumerator(){return ze(xr(this.hashMap.values()))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Ia(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ta(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Aa(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Mr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ka(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Na(this,e)}get size(){return 0|ka(this)}add(e){return Ia(this,e),this}clear(){Ta(this)}delete(e){return Na(this,e)}has(e){return Aa(this,e)}keys(){return Rr((e=>e),this)}values(){return Rr((e=>e),this)}entries(){return Rr((e=>[e,e]),this)}forEach(e,t){const n=this;Dr((t=>{e(t,t,n)}),n)}}function Ea(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new Rt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Ta(e){e.hashMap.clear()}function ka(e){let t=0,n=ze(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ue(n)}return 0|t}function Ia(e,t){const n=Ea(e,t);return n[0]?!(n[2]>-1)&&(Sa(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Aa(e,t){const n=Ea(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Na(e,t){const n=Ea(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Sa(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ma extends Dt{constructor(e,t){super(),this.Code=e,this.Name=t}}const Da=Go([["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 Ra extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ga extends Dt{constructor(e,t){super(),this.Code=e,this.Name=t}}function Ba(e){return cr((e=>new Ga(e.Code,e.Name)),function(e){const t=function(e){return rn((t=>new Ma(e,t)),Do(e,Da))}(e);return Pr(Vt(Ft("Country code:%A is not accepted"))(e),t)}(e))}class Pa extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class Oa extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Fa=new Oa(2,{HomeCountry:void 0});function La(e){return new Oa(2,{HomeCountry:e})}class Va extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class Ua extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class Ha extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class ja extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function za(e){return new ja(0,e)}function Wa(e){return e.fields[0]}function Ya(e){return jr(0,(()=>$r((e=>{const t=e;return zr(0,function(e,t){return function(e){if(Le(e))return 0===e.length;if(e instanceof fn)return _n(e);{const t=vr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ue(t)}}}(t)?new lr(1,e):new lr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:Xe},function(e){return e instanceof fn?Cn(e):Array.from(e)}(function(e,t,n){return _r((()=>{const r=new Ca(e,n);return Nr((e=>xa(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return jr(0,(()=>{const t=Kt(_a,e);return $r((()=>$r((()=>zr(0,Or(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=sn(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),un((e=>ti(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),Or(9,"TFN must be 9 digits",t.length))),Or(e,"TFN must contain digits only",t))}))()}(e))))()}class Ka extends Dt{constructor(e,t){super(),this.Code=e,this.Name=t}}function qa(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}new class extends Dt{constructor(e){super(),this.Unused=e}}(void 0);class Za extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Ja(e){switch(e.tag){case 1:return new lr(0,new Oa(1));case 2:return nn(rn((e=>cr(La,Ba(e.Code))),e.fields[0].HomeCountry),new lr(0,Fa));default:return new lr(0,new Oa(0))}}function Xa(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function Qa(e){switch(e){case 0:return new lr(0,new Ra(0));case 1:return new lr(0,new Ra(1));case 2:return new lr(0,new Ra(2));case 3:return new lr(0,new Ra(3));case 4:return new lr(0,new Ra(4));default:return new lr(1,"Invalid DebtSupport")}}function eu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const tu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(_n(i))return cr(Tn,r);{const s=jr(0,(()=>$r((e=>zr(0,r,(t=>bn(e,t)))),o(xn(i)))))();if(1===s.tag)return s;e=s,t=o,n=Sn(i);continue e}}}(new lr(0,yn()),e,t)}(Qa,(t={Equals:(e,t)=>e===t,GetHashCode:Qe},Er(function(e,t){return _r((()=>{const n=new Ca([],t);return Nr((e=>xa(e,n)),e)}))}(e,t))));var t};function nu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class ru extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function ou(){return rs("Dto.Dto.ProvidedTfnInformationDto",[],ru,(()=>[[["Item",us]],[["Item",ss("Dto.Dto.ExemptionReasonDto",cs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class iu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class su extends Dt{constructor(e,t,n,r,o,i){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=n,this.EmploymentBasis=0|r,this.IsTaxFreeThresholdClaimed=o,this.HasDebtSupport=i}}class au extends Dt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class uu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function lu(){return rs("Dto.Commands.ResidencyStatusV2Dto",[],uu,(()=>[[],[],[["Item",ns(["HomeCountry",ns(["Code",us])])]]]))}class cu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function $u(e){return e}function fu(e){return Array.from(e)}function du(e){return gt(e,"O")}function hu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Wi(e/864e5)}(e)),o=Math.abs(function(e){return Wi(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Wi(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Wi(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Wi(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ke(o,2)}:${Ke(i,2)}:${Ke(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Ke(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e)}function pu(){return null}function mu(e){return gt(e,"O")}function wu(e,t,n,r){const o=new Rt(null),i=Mo(fs(r),o,e);let s;if(Cs(r)){const e=un((e=>{const r=Ko(t,$s(e)),o=gu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),_s(r));s=t=>Mr(((e,n)=>n(t)(e)),{},e)}else{if(!Ss(r)){let e;const t=fs(r);throw e=Vt(Ft("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=vs(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return $s(s);{const e=0|u,r=Ts(s),o=an(new Array(e+1),0,e+1,null);o[0]=$s(s);for(let s=1;s<=e;s++){const e=gu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function gu(e,t,n,r){const o=fs(r),i=Do(o,e);if(null==i){if(ds(r)){const o=gu(e,t,n,hs(r));return e=>fu(Rr(o,e))}if(ms(r)){const e=fs(gs(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=fs(r);return Ut(Ft("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(ps(r)){if(Es(r)){const o=un((r=>gu(e,t,n,r)),xs(r));return e=>{return fu((t=(e,t)=>o[e](t),n=e,kr((()=>vr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Jt(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ue(e)}))));var t,n}}{const o=fs(ws(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=gu(e,t,n,Xi(r)[0]),e=>{return null!=(t=rn(o,e))?Xt(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=gu(e,t,n,Xi(r)[0]);return e=>fu(Rr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Xi(r)[0],i=gu(e,t,n,Xi(r)[1]);if("System.String"===fs(o)||"System.Guid"===fs(o))return e=>Mr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=gu(e,t,n,o);return r=s,e=>fu(Rr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return wu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?pu:"System.String"===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?mu:"System.DateTimeOffset"===o?du:"System.TimeSpan"===o?hu:"System.Guid"===o?$u:"System.Object"===o?e=>e:wu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function yu(e){return Vt(Ft("%s/tfn-declaration/backend"))(e)}function bu(e,t){return Yr(0,(()=>{const n=Vo(function(e){return new qr(0,"Authorization",e)}(Vt(Ft("Bearer %s"))(e)),t);let r;const o=Uo(n);return r=er.Bind(o,(e=>er.Return(new lr(0,e)))),er.Delay((()=>er.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?er.Return(new lr(1,o.fields[0])):er.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=Uo(n),er.Bind(r,(e=>er.Return(new lr(0,e))))):Wr(0,t)))}))))}))}const vu=e=>function(e,t){try{return ra("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new lr(1,"Given an invalid JSON: "+e.message);throw e}}(ft(2,function(e,t,n){const r=nn(t,new jo(0));return ba(function(e){return null!=e?Ro(((e,t)=>new Rt(t[1])),e.Coders):Bo()}(void 0),r,!1,e)}(ts("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],au,(()=>[["Meta",ns(["AccountId",us])],["Data",os(ts("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],su,(()=>[["TfnInformation",rs("Dto.BackendApiModels.Read.TfnInformation",[],iu,(()=>[[["Item",us]],[["Item",ss("Dto.Dto.ExemptionReasonDto",cs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",os(us)],["ResidencyStatus",rs("Dto.Dto.ResidencyStatusV2Dto",[],Za,(()=>[[],[],[["Item",ns(["HomeCountry",os(ts("Dto.Dto.CountryDto",[],Ka,(()=>[["Code",us],["Name",us]])))])]]]))],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ls],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new jo(1))),e);function _u(e,t){return Yr(0,(()=>{const n=bu(e,Lo(new Kr(0),Fo(yu(t))));return er.Delay((()=>er.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?er.Return(new lr(1,r.fields[0])):er.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),er.Return(n)):er.Return(new lr(1,"Unexpected response from backend"))))}))))}))}function xu(e,t){return jr(0,(()=>$r((n=>{const r=n,o=rn(Wa,e.PreviousSurname.Value);return $r((n=>{const i=0|n;return $r((n=>{const s=0|n;return $r((n=>{const a=n,u=(e=>Mn(eu,e))(e.DebtSupportCheckboxGroup),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=yn();else if(1===r.fields[0].tag){const n=0|nu(r.fields[0].fields[0]),o=e.TfnInformation;let i;switch(i=1===o.tag&&o.fields[0]===n?0:1,i){case 0:t=yn();break;case 1:t=vn(new cu(2,new ru(1,n)))}}else t=vn(new cu(2,new ru(0,r.fields[0].fields[0].fields[0])));return zr(0,cr(qa,Ja(e.ResidencyStatus)),(n=>Nn(t,Er(_r((()=>Ir(ot(o,e.PreviousSurname)?Sr():Cr(new cu(3,o)),_r((()=>Ir(i!==n?Cr(new cu(4,i)):Sr(),_r((()=>Ir(s!==e.EmploymentBasis?Cr(new cu(6,s)):Sr(),_r((()=>Ir(a!==e.IsTaxFreeThresholdClaimed?Cr(new cu(7,a)):Sr(),_r((()=>ot(Dn(u,{Compare:st}),Dn(e.HasDebtSupport,{Compare:st}))?Sr():Cr(new cu(8,u))))))))))))))))))))}return zr(0,0===r.tag?new lr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new lr(0,new ru(1,nu(r.fields[0].fields[0]))):new lr(0,new ru(0,r.fields[0].fields[0].fields[0])),(e=>vn(new cu(0,{AccountId:t.Meta.AccountId,EmploymentBasis:s,HasDebtSupport:u,IsTaxFreeThresholdClaimed:a,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),Pr("missing is tax-free threshold claimed",rn((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Pr("missing employment basis",rn(Xa,e.EmploymentBasisRadioButtonGroup.Value)))}),Pr("missing residency status",rn((e=>qa(function(e){switch(e.tag){case 1:return new Oa(1);case 2:return Fa;default:return new Oa(0)}}(e))),e.ResidencyStatusRadioButtonGroup.Value)))}),Pr("missing TFN info",e.TfnInformation.Value))))()}function Su(e,t,n){return Yr(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=Yr(0,(()=>Wr(0,s)));break;case 1:r=_u(t,n)}return er.Delay((()=>er.Bind(r,(r=>{let o,i,s;const a=r;return 1===a.tag?er.Return(new lr(1,a.fields[0])):er.ReturnFrom((o=a.fields[0],s=xu(e,o),i=er.Return(s),er.Delay((()=>er.Bind(i,(e=>{let r,i,s;const a=e;return 1===a.tag?er.Return(new lr(1,a.fields[0])):er.ReturnFrom((r=a.fields[0],_n(r)?Wr(0,o):(i=bu(t,(u=new Zr(1,function(e,t){return JSON.stringify(t,ft(2,null),Jt(e))}(0,function(e,t,n,r){const o=nn(t,new jo(0)),i=nn(void 0,!0);return gu(function(e){return null!=e?Ro(((e,t)=>new Rt(t[0])),e.Coders):Bo()}(void 0),o,i,e)}(is(rs("Dto.Commands.TfnDeclarationCommandDto",[],cu,(()=>[[["Item",ns(["AccountId",us],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ls],["PreviousSurname",os(us)],["ResidencyStatus",ss("Dto.Dto.ResidencyStatusDto",cs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",ou()])]],[["Item",ns(["AccountId",us],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ls],["PreviousSurname",os(us)],["ResidencyStatus",lu()],["TfnInformation",ou()])]],[["Item",ou()]],[["Item",os(us)]],[["Item",ss("Dto.Dto.ResidencyStatusDto",cs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",lu()]],[["Item",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ls]],[["Item",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new jo(1))(r))),l=Lo(new Kr(2),Fo(yu(n))),s=new Jr(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),Vo(new qr(0,"Content-Type","application/json"),s))),er.Delay((()=>er.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?er.Return(new lr(1,r.fields[0])):er.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),er.Return(n)):er.Return(new lr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Cu(e,t,n){kn((n=>{try{n(t)}catch(t){e(t)}}),n)}function Eu(){return yn()}function Tu(e){return vn((t=>{t(e)}))}function ku(e,t,n,r,o){const i=function(e,t,n,r){const o=0|ut(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|ut(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return _r((()=>{return t=i,n=e,br((()=>function(e,t){let n,r=t;return gr((()=>{if(null!=n){const e=n[0];return n[1],e}return hr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Iu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Au{constructor(e){this.state=new Iu(0,an(new Array(lt(st,e,10)),0,lt(st,e,10),null),0)}}function Nu(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 Iu(0,o,n):new Iu(1,o,n,i),Jt(o[r])}}class Mu extends Dt{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function Du(e,t){const n=t.init(e),r=n[0],o=new Au(10);let i=!1,s=r;const a=ht(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new Iu(1,(r=s,o=a,Array.from(_r((()=>Ir(Gr(r,o),_r((()=>{return Ir((e=r,t=o,kr((()=>vr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Jt(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(dr+"\\nParameter name: source")}}),(e=>{Ue(e)}))),_r((()=>Br((e=>Cr(null)),ku(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new Iu(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Iu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=Jt(e);for(;null!=n;){const e=Xt(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Cu((n=>{t.onError([Vt(Ft("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Vt(Ft("Unable to process the message: %A"))(e),n])}n=Nu(o)}i=!1}}]);t.setState(r,a),Cu((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=hn();let n=t;const r=e=>{n=En(((e,t)=>{const n=new fn(t,void 0);return e.tail=n,n}),n,e)};if(Le(e))e.forEach(r);else if(e instanceof fn)kn(r,e);else{const t=ze(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ue(t)}}const o=n,i=hn();return o.tail=i,gn(t)}(An([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Eu()}})(),n[1]])))}class Ru{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Gu(){return new Ru}function Bu(e,t,n,r){Du(t,function(e,t){return new Mu(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=Jt(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 Xt(o);throw new Error("Elmish program has not initialized")}function Pu(e,t){return function(e,t,n){const r=jn(Gu)[0],o=jn((()=>Bu(e,t,r))),i=o[1];return zn((()=>(function(e){return e.hasDisposedOnce}(r)&&i(Bu(e,t,r)),Hn((()=>{!function(e){const t=e.state;if(null!=t){const e=Xt(t);Ve(e)&&Ue(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),nn(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 Ou(e,t,n){return Pu((()=>function(e,t,n){return new Mu(e,t,(e=>Eu()),n,ft(2,(e=>{const t=ht(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(Jt(t),n)}),ft(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class Fu extends Dt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Lu(){return new Fu(void 0,{Valid:!1})}function Vu(e){return new Fu(e,{Valid:!0})}function Uu(e){switch(e){case"Under18AndBelowTaxThreshold":return new Ha(0);case"Pending":return new Ha(1);case"Pensioner":return new Ha(2);default:return}}function Hu(e){switch(e){case"AustralianResidentForTaxPurposes":return new Pa(0);case"ForeignResidentForTaxPurposes":return new Pa(1);case"WorkingHolidayMaker":return new Pa(2);default:return}}function ju(e){switch(e){case"HELP":return new Ra(0);case"VETStudentLoan":return new Ra(1);case"FinancialSupplement":return new Ra(2);case"StudentStartUpLoan":return new Ra(3);case"TradeSupportLoan":return new Ra(4);default:return}}function zu(e){switch(e){case"FullTime":return new Va(0);case"PartTime":return new Va(1);case"LabourHire":return new Va(2);case"SuperIncomeStream":return new Va(3);case"Casual":return new Va(4);default:return}}function Wu(e){return h("p",{className:zt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class Yu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Ku extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class qu extends Dt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Zu(e){return new qu(e,{Touched:!1})}function Ju(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new qu(e.fields[0],t.Meta):t:new qu(e.fields[0],{Touched:!0})}function Xu(e){const t=ot(e.Parent.State.Selected,e.Selection)?An(["border","bg-white","border-gray-200","shadow-sm","text-gray-900"]):An(["shadow-none","hover:bg-primary-hover","text-gray-700"]);return h("button",{className:zt(" ",Nn(An(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-2","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Ku(0,e.Selection))},disabled:ot(e.Parent.Disable,e.Selection),children:Nt(e.Selection)})}function Qu(e){let t;return h("div",ct(An([["className",zt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Xu({Parent:e,Selection:new Yu(0)}),Xu({Parent:e,Selection:new Yu(1)})],["children",Rn.Children.toArray(Array.from(t))])])))}class el extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class tl extends Dt{constructor(e){super(),this.Selected=e}}function nl(e){let t;const n=Ou((r=e.InitialValue,[new tl(r),Eu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new tl(e.fields[0])}(t);return e(new Fu(r.Selected,{Valid:null!=r.Selected})),[r,Eu()]}(e.OnUpdate,t)));var r;return h("div",ct(An([["className",zt(" ",["space-y-2","mt-2"])],(t=Er(_r((()=>Br((t=>{let r,o;const i=t[0];return Cr(h("label",ct(An([["className",zt(" ",["flex","items-start"])],(r=[h("input",{className:zt(" ",["focus:ring-primary-focus","pt-1","block","mt-1","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:en(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new el(0,i))}}),h("label",ct(An([["className",zt(" ",["ml-3","block","text-sm"])],["for",i],(o=Er(_r((()=>Ir(Cr(h("span",{className:zt(" ",["block","text-gray-900"]),children:t[1]})),_r((()=>{const e=t[2];if(null==e)return Cr(null);{const t=e;return Cr(h("span",{className:zt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Rn.Children.toArray(Array.from(o))])])))],["children",Rn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Rn.Children.toArray(Array.from(t))])])))}class rl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class ol extends Dt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class il extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function sl(e){let t;const n=Ou(function(e,t){const n=nn(e,"");return[new ol(n,{Touched:!1,Valid:t(n)}),Eu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new ol(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new ol(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Fu(o.Text,{Valid:o.Meta.Valid})),[o,Eu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return h("div",ct(An([["className",zt(" ",Nn(e.AdditionalWrapperClasses,vn("z-10")))],(t=Er(_r((()=>Ir(Cr(h("input",ct(Er(_r((()=>Ir(Cr(["className",zt(" ",Nn(e.AdditionalInputClasses,Nn(An(["block","w-full","pr-10","focus:outline-none","text-sm","rounded-md","border-gray-300"]),Er(_r((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Sr()))))))]),_r((()=>Ir(Cr(["type","text"]),_r((()=>Ir(Cr(["onChange",t=>{const n=t.target.value;o(new rl(0,1===e.InputType.tag?n:Kt(_a,n)))}]),_r((()=>{let t;return Ir(Cr((t=r.Text,["ref",e=>{null==e||ot(e.value,t)||(e.value=t)}])),_r((()=>Ir(Cr(["onBlur",e=>{o(new rl(1))}]),_r((()=>ot(e.InputType,new il(0))?Cr(["inputMode","numeric"]):Sr()))))))}))))))))))))))),_r((()=>!r.Meta.Valid&&r.Meta.Touched?Cr(h("div",{className:zt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Sr())))))),["children",Rn.Children.toArray(Array.from(t))])])))}class al extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class ul extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class ll extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class cl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class $l extends Dt{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function fl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Fu(rn((e=>new ll(1,e)),e.Value),e.Meta)}return new Fu(new ll(0,en(e.TruncatedTfn)),{Valid:!0})}const dl=e=>function(e){return 1!==e.tag}(Ya(e));function hl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:!1})));if(1===r.tag)return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:dl(t)})))}}return e}function pl(e){let t,n,r,o,i;const s=Ou(function(e){let t,n,r;return[hl(new $l(Zu(null!=e&&1===e.tag&&1===e.fields[0].tag?new Yu(1):new Yu(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new cl(1,Lu()):1===e.tag?(r=e.fields[0],new cl(1,new Fu(r,{Valid:!1}))):new cl(0))),Eu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o,i,s,a,u,l,c,$;return hl(1===e.tag?(n=e.fields[0],r=rn((e=>new ul(0,new Ua(0,e))),n.Value),t.EditingState.tag,new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(1,new Fu(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=rn((e=>new ul(1,e)),on(Uu,o.Value)),t.EditingState.tag,new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(1,new Fu(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(0)):new $l(t.YesNoButtonGroup,t.TruncatedTfn,new Fr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new cl(1,Lu())):4===e.tag?new $l(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(s=e.fields[0],s.tag,u=[s.fields[0],t.EditingState],a=1===u[0].tag?1===u[1].tag?(l=u[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new cl(1,Lu())):new cl(1,Lu()):1===u[1].tag?(c=[u[1].fields[0].Value,t.TruncatedTfn],null!=c[0]&&0===c[0].tag?t.EditingState:null!=c[1]?($=c[1],new cl(0)):new cl(1,Lu())):new cl(0),new $l(Ju(s,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,a)))}(t,n);return e(fl(r)),[r,Eu()]}(e.OnUpdate,t,n))),a=s[0],u=s[1],l=null==a.TruncatedTfn?null:h("div",ct(vn((t=[h("button",ct(An([["className",zt(" ",["relative","inline-flex","items-center","space-x-2","px-4","py-2","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=Er(_r((()=>ot(a.EditingState,new cl(0))?Ir(Cr(Bn),_r((()=>Cr(h("span",{children:["Edit"]}))))):Ir(Cr(Pn),_r((()=>Cr(h("span",{children:["Cancel"]})))))))),["children",Rn.Children.toArray(Array.from(n))]),["onClick",e=>{u(new al(3))}]])))],["children",Rn.Children.toArray(Array.from(t))]))));return h("div",ct(An([["className",zt(" ",Vn)],(r=[(o=Er(_r((()=>{const e=a.CurrentAlert;return Cr(null==e?null:h(Hr,{alert:e,hideAlert:()=>{u(new al(4))}}))}))),h("div",{children:Rn.Children.toArray(Array.from(o))})),Wu("Do you have your Tax File Number (TFN)?"),h(Qu,{Disable:void 0,Dispatch:e=>{u(new al(0,e))},State:a.YesNoButtonGroup}),h("div",ct(An([["className",zt(" ",["mt-4"])],(i=Er(_r((()=>{let e,t,n;const r=a.YesNoButtonGroup.Selected;if(null==r)return Cr(null);if(1===r.tag)return Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Ha(1),"My TFN is pending",void 0],[new Ha(0),"I'm under 18 and don't have a TFN",void 0],[new Ha(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(t=fl(a).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Nt(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{u(new al(2,e))},ValueLabelPairs:e})));{const e=[a.TruncatedTfn,a.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return Ir(Cr(Wu("Enter your TFN")),_r((()=>{let e,t,r;return Cr(h("div",ct(An([["className",zt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[h("div",ct(An([["className","relative flex items-stretch flex-grow"],(t=[h("input",ct(An([["className",zt(" ",["focus:ring-primary-focus","focus:border-primary-focus","block","w-full","rounded-none","rounded-l-md","pl-4","text-sm","border","border-gray-300","text-gray-500"])],["disabled",!0],(r=`*** *** *${n}`,["ref",e=>{null==e||ot(e.value,r)||(e.value=r)}])])))],["children",Rn.Children.toArray(Array.from(t))])]))),l],["children",Rn.Children.toArray(Array.from(e))])]))))})));case 1:return Ir(Cr(Wu("Enter your TFN")),_r((()=>{let e,t;return Cr(h("div",ct(An([["className",zt(" ",["mt-1","flex"])],(e=[h("div",ct(An([["className",zt(" ",["relative","flex","items-stretch","flex-grow"])],(t=[h(sl,{AdditionalInputClasses:Er(_r((()=>Ir(Cr("focus:ring-primary-focus"),_r((()=>Ir(Cr("focus:border-primary-focus"),_r((()=>Ir(Cr("block"),_r((()=>Ir(Cr("w-full"),_r((()=>null==a.TruncatedTfn?Cr("rounded-md"):Cr("rounded-none rounded-l-md")))))))))))))))),AdditionalWrapperClasses:An(["block","w-full"]),InitialValue:void 0,InputType:new il(0),InvalidFeedback:"That isn’t a valid Tax File Number",OnUpdate:e=>{u(new al(1,e))},Validator:dl}),l],["children",Rn.Children.toArray(Array.from(t))])])))],["children",Rn.Children.toArray(Array.from(e))])]))))})))}}}))),["children",Rn.Children.toArray(Array.from(i))])])))],["children",Rn.Children.toArray(Array.from(r))])])))}class ml extends Mt{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 wl extends Dt{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatusRadioButtonGroup=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}function gl(e,t){return jr(0,(()=>{let n;return $r((n=>$r((r=>{const o=function(e){switch(e.tag){case 1:return new Pa(1);case 2:return new Pa(2);default:return new Pa(0)}}(r),i=t.IsTaxFreeThresholdClaimed?new Yu(0):new Yu(1);return $r((r=>zr(0,function(e){switch(e){case 0:return new lr(0,new Va(0));case 1:return new lr(0,new Va(1));case 2:return new lr(0,new Va(2));case 3:return new lr(0,new Va(3));case 4:return new lr(0,new Va(4));default:return new lr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(s=>new wl(e.PreExistingTfnDec,e.CurrentAlert,Vu(n),Vu(rn(za,t.PreviousSurname)),Vu(o),Zu(i),r,Vu(s))))),tu(t.HasDebtSupport))}),Ja(t.ResidencyStatus))),(n=t.TfnInformation,1===n.tag?cr((e=>new ll(1,new ul(1,e))),function(e){switch(e){case 0:return new lr(0,new Ha(0));case 1:return new lr(0,new Ha(1));case 2:return new lr(0,new Ha(2));default:return new lr(1,"Invalid ExemptionReason")}}(n.fields[0])):new lr(0,new ll(0,n.fields[0]))))}))()}class yl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function bl(){const e=Yt(document.URL,["/"],null,0),t=ln("web",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),n=ln("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),r=[Qt(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 lr(0,new yl(2,r[0]));case 1:return new lr(0,new yl(0));case 2:return new lr(0,new yl(1));case 3:return new lr(1,"Could not determine the embed mode")}}class vl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function _l(){let e;const t=bl();var n;0===t.tag&&(0===t.fields[0].tag?Dr((e=>{window.parent.location.href=e}),tn((n=new vl(0),Qt(sessionStorage.getItem(function(e){return Nt(e)}(n)))))):1===t.fields[0].tag?Dr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),tn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function xl(e,t){switch(e.tag){case 1:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 2:{const n=on(Hu,e.fields[0].Value);return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,new Fu(n,{Valid:null!=n}),t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),null==n?Eu():1===n.tag?Tu(new ml(3,new Ku(1,new Yu(1),!1))):2===n.tag?Tu(new ml(3,new Ku(1,new Yu(1),!0))):Tu(new ml(3,new Ku(1,new Yu(0),!1)))]}case 3:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,Ju(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 4:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Eu()];case 5:{const n=on(zu,e.fields[0].Value);return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Fu(n,{Valid:null!=n})),Eu()]}case 6:{const n=e.fields[0],r=new wl(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Tu(new ml(7,new Fr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=Qt(document.getElementById("external-loading-page-container"));Dr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),tn(n))}();const i=Tu(new ml(10));let s,a;switch(2===n.tag?1===n.fields[0].tag?s=1:(s=0,a=n.fields[0].fields[0]):s=3===n.tag?1:2,s){case 0:{const e=rn((e=>gl(r,e)),a.Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}case 1:return[r,o];case 2:return[r,i]}}case 7:return[new wl(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 8:return[new wl(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 9:return[new wl(new ar(2,new lr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 10:return function(){const e=bl();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"},"*",Jt(yn()))}(),[t,Eu()];default:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()]}}class Sl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Cl extends Dt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function El(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Tl(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:!1})):1===t.tag?new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:!0})):new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:nn(rn((e=>El(e.fields[0])),e.Data.Value),!1)}))}function kl(e){let t;const n=Ou((r=e.InitialValue,[Tl(new Cl(Zu(new Yu(null!=r?0:1)),new Fu(r,{Valid:!1}))),Eu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Tl(1===e.tag?(n=e.fields[0],new Cl(t.YesNoButtonGroup,new Fu(rn((e=>new ja(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Fu(void 0,t.Data.Meta):t.Data,new Cl(Ju(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Eu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return h("div",ct(An([["className",zt(" ",Vn)],(t=Er(_r((()=>Ir(Cr(Wu("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),_r((()=>Ir(Cr(h(Qu,{Disable:void 0,Dispatch:e=>{i(new Sl(0,e))},State:o.YesNoButtonGroup})),_r((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Cr(h("div",ct(An([["className",zt(" ",["mt-4"])],(e=[Wu("Enter your previous surname"),h(sl,{AdditionalInputClasses:yn(),AdditionalWrapperClasses:vn("mt-1"),InitialValue:rn(Wa,o.Data.Value),InputType:new il(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Sl(1,e))},Validator:El})],["children",Rn.Children.toArray(Array.from(e))])]))));case 1:return Cr(null)}}))))))))),["children",Rn.Children.toArray(Array.from(t))])])))}const Il=An(["mt-7","bg-white","px-3.5","border","border-gray-200","rounded-lg","shadow-sm"]),Al=An(["group","relative","w-full","py-4","flex","justify-between","items-center","text-left"]),Nl=An(["text-sm","text-primary-base","leading-3","font-medium"]),Ml=An(["ml-6","flex","items-center"]),Dl=An(["-mt-2","pb-4","prose","prose-sm","text-gray-500","text-sm"]);function Rl(e){let t,n,r,o;const i=e.content,s=e.title,a=qn(!0),u=a[0];return h("div",ct(An([["className",zt(" ",Il)],(t=[(n=vn(h("button",ct(An([["type","button"],["className",zt(" ",Al)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[h("span",{className:zt(" ",Nl),children:s}),h("span",ct(An([["className",zt(" ",Ml)],(o=Er(_r((()=>Cr(u?Fn:On)))),["children",Rn.Children.toArray(Array.from(o))])])))],["children",Rn.Children.toArray(Array.from(r))])])))),h("h3",{children:Rn.Children.toArray(Array.from(n))})),h("div",{className:zt(" ",Nn(Dl,Er(_r((()=>u?Cr("hidden"):Sr()))))),children:Rn.Children.toArray([i])})],["children",Rn.Children.toArray(Array.from(t))])])))}class Gl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Bl extends Dt{constructor(e){super(),this.Selected=e}}function Pl(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(mn(o))return;if(e(wn(o)))return r;t=r+1,n=gn(o)}})(0,t)}((t=>e===t),t.Selected)}function Ol(e,t,n){const r=function(e,t){const n=e.fields[0];return Pl(n,t)?new Bl(function(e,t){const n=hn(),r=En(((t,n)=>{if(e(n)){const e=new fn(n,void 0);return t.tail=e,e}return t}),n,t),o=hn();return r.tail=o,gn(n)}((e=>n!==e),t.Selected)):new Bl(Nn(vn(n),t.Selected))}(t,n);return e(r.Selected),[r,Eu()]}function Fl(e){let t;const n=Ou((r=e.InitialValue,[new Bl(r),Eu()]),((t,n)=>Ol(e.OnUpdate,t,n)));var r;return h("fieldset",ct(An([["className",zt(" ",["space-y-2","mt-2"])],(t=Er(_r((()=>Br((e=>{let t,r,o;const i=e[0];return Cr(h("div",ct(An([["className",zt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Gl(0,i))}],(t=[h("div",ct(An([["className",zt(" ",["flex","items-center","h-5"])],(r=[h("input",{className:zt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Pl(i,n[0])})],["children",Rn.Children.toArray(Array.from(r))])]))),h("div",ct(An([["className",zt(" ",["ml-3","text-sm"])],(o=[h("label",{className:zt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Rn.Children.toArray(Array.from(o))])])))],["children",Rn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Rn.Children.toArray(Array.from(t))])])))}function Ll(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatusRadioButtonGroup.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ot(t,new ar(1))}function Vl(){return h("hr",{className:zt(" ",["my-8"])})}const Ul=h("div",ct(An([["className",zt(" ",["space-y-2"])],(()=>{const e=[h("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."]}),h("p",{children:["Select working holday 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."]}),h("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",Rn.Children.toArray(Array.from(e))]})()]))),Hl=h("div",ct(An([["className",zt(" ",["space-y-2"])],(()=>{const e=[h("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job. It will mean that you pay no tax on the first $18,200 of your income. This is called the tax-free threshold."]}),h("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),h("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",Rn.Children.toArray(Array.from(e))]})()])));function jl(e){const t=e.backendUrl,n=e.accessToken,r=Ou([new wl(new ar(0),void 0,Lu(),Vu(void 0),Vu(new Pa(0)),Zu(new Yu(0)),yn(),Vu(new Va(0))),Eu()],xl),o=r[0],i=r[1];Wn(ur((()=>_u(n,t)),(e=>{i(new ml(6,e))})),[]);const s=qn(new ar(0)),a=s[0],u=ur((()=>function(e,t,n,r){return function(e,t){return er.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return er.Return(n)}))}((e=>{r(new Fr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return er.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return er.Return(n)}))}((e=>{r(new Fr(0,"Your tax declaration has been saved."))}),Su(e,t,n)))}(o,n,t,(e=>{i(new ml(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(sr(er.Delay((()=>er.Bind(ir(400),(()=>(_l(),er.Zero())))))),i(new ml(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return h("div",{children:["Please wait..."]});default:{const e=Er(_r((()=>{let e,t;return Ir((e=o.CurrentAlert,null==e?Cr(null):(t=e,Cr(h(Hr,{alert:t,hideAlert:()=>{i(new ml(8))}})))),_r((()=>Ir(Cr(h("h3",{className:zt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),_r((()=>Ir(Cr(h(pl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new ml(0,e))}})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(h(kl,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new ml(1,e))}})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("Are you an Australian resident for tax purposes or a working holiday maker?")),_r((()=>{let e;return Ir(Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Pa(0),"Australian resident for tax purposes",void 0],[new Pa(1),"Foreign resident",void 0],[new Pa(2),"Working holiday maker",void 0]])),{InitialValue:rn(Nt,o.ResidencyStatusRadioButtonGroup.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new ml(2,e))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(h(Rl,{title:"About residency",content:Ul})),_r((()=>Ir(Cr(Vl()),_r((()=>{let e,t;return Ir(Cr(h("div",ct(An([["className",zt(" ",Vn)],(e=[Wu("Would you like to claim the tax-free threshold from this employer?"),h(Qu,{Disable:(t=o.ResidencyStatusRadioButtonGroup.Value,null!=t&&2===t.tag?new Yu(0):void 0),Dispatch:e=>{i(new ml(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Rn.Children.toArray(Array.from(e))])])))),_r((()=>Ir(Cr(h(Rl,{title:"About the tax-free threshold",content:Hl})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("Do you have any of the following outstanding debts or loans?")),_r((()=>{let e;return Ir(Cr(h(Fl,(e=Mn((e=>[Nt(e[0]),e[1]]),An([[new Ra(0),"Higher Education Loan Program (HELP)"],[new Ra(1),"VET Student Loan (VSL)"],[new Ra(2),"Financial Supplement (FS)"],[new Ra(3),"Student Start-up Loan (SSL)"],[new Ra(4),"Trade Support Loan (TSL)"]])),{InitialValue:Mn(Nt,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new ml(4,function(e,t){const n=hn(),r=En(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new fn(Xt(r),void 0);return t.tail=e,e}}),n,t),o=hn();return r.tail=o,gn(n)}(ju,e)))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("On what basis are you paid?")),_r((()=>{let e;return Ir(Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Va(0),"Full-time",void 0],[new Va(1),"Part-time",void 0],[new Va(2),"Labour Hire",void 0],[new Va(3),"Superannuation or annuity income stream",void 0],[new Va(4),"Casual",void 0]])),{InitialValue:rn(Nt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new ml(5,e))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(Vl()),_r((()=>{let e;return Cr(h("div",ct(An([["className",zt(" ",["text-center"])],(e=[h("button",{className:zt(" ",["w-full","max-w-320","px-10","py-2","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"]),type:"button",disabled:!Ll(o,a),onClick:e=>{Ll(o,a)&&u()},children:"Continue"}),h("p",{className:zt(" ",["mt-8","sm:mt-20","text-xs","text-gray-500","leading-4","font-normal"]),children:"Workplace onboarding powered by Flare"})],["children",Rn.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))})))))))))))))))))))))})));return h("form",{children:Rn.Children.toArray(Array.from(e))})}}}function zl(){return(zl=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 Wl(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 O(t,n)}function Yl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(Wl,zl({},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,s=t.attributes,a=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[Kl(s[i].name)]=s[i].value);for(i=a.length;i--;){var u=e(a[i],null),l=a[i].slot;l?o[l]=h(Jl,{name:l},u):r[i]=u}var c=n?h(Jl,null,r):r;return h(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?P:B)(this._vdom,this._root)}function Kl(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ql(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Kl(e)]=n,this._vdom=O(this._vdom,r),B(this._vdom,this._root)}}function Zl(){B(this._vdom=null,this._root)}function Jl(e,t){var n=this;return h("slot",zl({},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 Xl(e){let t;return h("div",ct(An([["className",zt(" ",["font-inter","max-w-560","mx-auto"])],(t=[h("style",{children:[Gn]}),h(jl,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Rn.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=Yl,o.prototype.attributeChangedCallback=ql,o.prototype.disconnectedCallback=Zl,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=>h(Xl,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(893),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),s=n.n(i),a=n(667),u=n.n(a),l=new URL(n(578),n.b),c=new URL(n(254),n.b),$=new URL(n(184),n.b),f=new URL(n(421),n.b),d=s()(o()),h=u()(l),p=u()(c),m=u()($),w=u()(f);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('+h+");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("+p+")}[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}.relative{position:relative}.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}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.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-2{margin-top:-.5rem}.mt-1{margin-top:.25rem}.-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}.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-grow{flex-grow:1}.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-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}.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-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-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-4{padding-left:1rem;padding-right:1rem}.px-8{padding-left:2rem;padding-right:2rem}.pr-2{padding-right:.5rem}.pb-4{padding-bottom:1rem}.pt-1{padding-top:.25rem}.pr-10{padding-right:2.5rem}.pl-4{padding-left:1rem}.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-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-bold{font-weight:700}.font-normal{font-weight:400}.leading-5{line-height:1.25rem}.leading-4{line-height:1rem}.leading-3{line-height:.75rem}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/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-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;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.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-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.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-1:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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)}.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}.group:hover .group-hover\\:text-primary-hover{color:var(--fl-color-primary-hover)}@media (min-width:640px){.sm\\:mb-12{margin-bottom:3rem}.sm\\:mt-20{margin-top:5rem}}",""]);const g=d},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var s={};if(r)for(var a=0;a<this.length;a++){var u=this[a][0];null!=u&&(s[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&s[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},893:(e,t,n)=>{var r,o,i,s,a,u,l={},c=[],$=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function h(e,t,n){var o,i,s,a={};for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];if(arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===a[s]&&(a[s]=e.defaultProps[s]);return p(e,a,o,i,null)}function p(e,t,n,r,s){var a={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==s?++i:s};return null==s&&null!=o.vnode&&o.vnode(a),a}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)&&s.push(e)&&!v.__r++||a!==o.debounceRendering)&&((a=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=s.length;)e=s.sort((function(e,t){return e.__v.__b-t.__v.__b})),s=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=f({},o)).__v=o.__v+1,A(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?g(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function _(e,t,n,r,o,i,s,a,u,$){var f,d,h,w,y,b,v,_=r&&r.__k||c,S=_.length;for(n.__k=[],f=0;f<t.length;f++)if(null!=(w=n.__k[f]=null==(w=t[f])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?p(null,w,null,null,w):Array.isArray(w)?p(m,{children:w},null,null,null):w.__b>0?p(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(h=_[f])||h&&w.key==h.key&&w.type===h.type)_[f]=void 0;else for(d=0;d<S;d++){if((h=_[d])&&w.key==h.key&&w.type===h.type){_[d]=void 0;break}h=null}A(e,w,h=h||l,o,i,s,a,u,$),y=w.__e,(d=w.ref)&&h.ref!=d&&(v||(v=[]),h.ref&&v.push(h.ref,null,w),v.push(d,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===h.__k?w.__d=u=x(w,u,e):u=C(e,w,h,_,y,u),"function"==typeof n.type&&(n.__d=u)):u&&h.__e==u&&u.parentNode!=e&&(u=g(h))}for(n.__e=b,f=S;f--;)null!=_[f]&&("function"==typeof n.type&&null!=_[f].__e&&_[f].__e==n.__d&&(n.__d=g(r,f+1)),D(_[f],_[f]));if(v)for(f=0;f<v.length;f++)R(v[f],v[++f],v[++f])}function x(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?x(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 s,a,u;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,u=0;(a=a.nextSibling)&&u<r.length;u+=2)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||$.test(t)?n:n+"px"}function T(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||E(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||E(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,s,a,u,l){var c,$,d,h,p,g,y,b,v,x,S,C,E,T=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,s=[u]),(c=o.__b)&&c(t);try{e:if("function"==typeof T){if(b=t.props,v=(c=T.contextType)&&r[c.__c],x=c?v?v.props.value:c.__:r,n.__c?y=($=t.__c=n.__c).__=$.__E:("prototype"in T&&T.prototype.render?t.__c=$=new T(b,x):(t.__c=$=new w(b,x),$.constructor=T,$.render=G),v&&v.sub($),$.props=b,$.state||($.state={}),$.context=x,$.__n=r,d=$.__d=!0,$.__h=[]),null==$.__s&&($.__s=$.state),null!=T.getDerivedStateFromProps&&($.__s==$.state&&($.__s=f({},$.__s)),f($.__s,T.getDerivedStateFromProps(b,$.__s))),h=$.props,p=$.state,d)null==T.getDerivedStateFromProps&&null!=$.componentWillMount&&$.componentWillMount(),null!=$.componentDidMount&&$.__h.push($.componentDidMount);else{if(null==T.getDerivedStateFromProps&&b!==h&&null!=$.componentWillReceiveProps&&$.componentWillReceiveProps(b,x),!$.__e&&null!=$.shouldComponentUpdate&&!1===$.shouldComponentUpdate(b,$.__s,x)||t.__v===n.__v){$.props=b,$.state=$.__s,t.__v!==n.__v&&($.__d=!1),$.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),$.__h.length&&a.push($);break e}null!=$.componentWillUpdate&&$.componentWillUpdate(b,$.__s,x),null!=$.componentDidUpdate&&$.__h.push((function(){$.componentDidUpdate(h,p,g)}))}if($.context=x,$.props=b,$.__v=t,$.__P=e,S=o.__r,C=0,"prototype"in T&&T.prototype.render)$.state=$.__s,$.__d=!1,S&&S(t),c=$.render($.props,$.state,$.context);else do{$.__d=!1,S&&S(t),c=$.render($.props,$.state,$.context),$.state=$.__s}while($.__d&&++C<25);$.state=$.__s,null!=$.getChildContext&&(r=f(f({},r),$.getChildContext())),d||null==$.getSnapshotBeforeUpdate||(g=$.getSnapshotBeforeUpdate(h,p)),E=null!=c&&c.type===m&&null==c.key?c.props.children:c,_(e,Array.isArray(E)?E:[E],t,n,r,i,s,a,u,l),$.base=t.__e,t.__h=null,$.__h.length&&a.push($),y&&($.__E=$.__=null),$.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=M(n.__e,t,n,r,i,s,a,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=u,t.__h=!!l,s[s.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 M(e,t,n,o,i,s,a,u){var c,$,f,h=n.props,p=t.props,m=t.type,w=0;if("svg"===m&&(i=!0),null!=s)for(;w<s.length;w++)if((c=s[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,s[w]=null;break}if(null==e){if(null===m)return document.createTextNode(p);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),s=null,u=!1}if(null===m)h===p||u&&e.data===p||(e.data=p);else{if(s=s&&r.call(e.childNodes),$=(h=n.props||l).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!u){if(null!=s)for(h={},w=0;w<e.attributes.length;w++)h[e.attributes[w].name]=e.attributes[w].value;(f||$)&&(f&&($&&f.__html==$.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||T(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]||T(e,i,t[i],n[i],r)}(e,p,h,i,u),f)t.__k=[];else if(w=t.props.children,_(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,s,a,s?s[0]:n.__k&&g(n,0),u),null!=s)for(w=s.length;w--;)null!=s[w]&&d(s[w]);u||("value"in p&&void 0!==(w=p.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==h.value)&&T(e,"value",w,h.value,!1),"checked"in p&&void 0!==(w=p.checked)&&w!==e.checked&&T(e,"checked",w,h.checked,!1))}return e}function R(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function D(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||R(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]&&D(r[i],t,"function"!=typeof e.type);n||null==e.__e||d(e.__e),e.__e=e.__d=void 0}function G(e,t,n){return this.constructor(e,n)}function B(e,t,n){var i,s,a;o.__&&o.__(e,t),s=(i="function"==typeof n)?null:n&&n.__k||t.__k,a=[],A(t,e=(!i&&n||t).__k=h(m,null,[e]),s||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:s?null:t.firstChild?r.call(t.childNodes):null,a,!i&&n?n:s?s.__e:t.firstChild,i),N(a,e)}function P(e,t){B(e,t,P)}function O(e,t,n){var o,i,s,a=f({},e.props);for(s in t)"key"==s?o=t[s]:"ref"==s?i=t[s]:a[s]=t[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),p(e.type,a,o||e.key,i||e.ref,null)}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof e&&(e=e(f({},n),this.props)),e&&f(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,s=[],v.__r=0,u=0;var F,L,V,U,H=0,j=[],z=[],W=o.__b,Y=o.__r,K=o.diffed,q=o.__c,Z=o.unmount;function J(e,t){o.__h&&o.__h(L,e,H||t),H=0;var n=L.__H||(L.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:z}),n.__[e]}function X(e){return H=1,Q(ue,e)}function Q(e,t,n){var r=J(F++,2);return r.t=e,r.__c||(r.__=[n?n(t):ue(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function ee(e,t){var n=J(F++,3);!o.__s&&ae(n.__H,t)&&(n.__=e,n.u=t,L.__H.__h.push(n))}function te(e,t){var n=J(F++,4);!o.__s&&ae(n.__H,t)&&(n.__=e,n.u=t,L.__h.push(n))}function ne(e,t){var n=J(F++,7);return ae(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function re(){for(var e;e=j.shift();)if(e.__P)try{e.__H.__h.forEach(ie),e.__H.__h.forEach(se),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){L=null,W&&W(e)},o.__r=function(e){Y&&Y(e),F=0;var t=(L=e.__c).__H;t&&(V===L?(t.__h=[],L.__h=[],t.__.forEach((function(e){e.__V=z,e.u=void 0}))):(t.__h.forEach(ie),t.__h.forEach(se),t.__h=[])),V=L},o.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==j.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);oe&&(t=requestAnimationFrame(n))})(re)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==z&&(e.__=e.__V),e.u=void 0,e.__V=z}))),V=L=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ie),e.__h=e.__h.filter((function(e){return!e.__||se(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),q&&q(e,t)},o.unmount=function(e){Z&&Z(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{ie(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var oe="function"==typeof requestAnimationFrame;function ie(e){var t=L,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),L=t}function se(e){var t=L;e.__c=e.__(),L=t}function ae(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ue(e,t){return"function"==typeof t?t(e):t}function le(e,t){for(var n in t)e[n]=t[n];return e}function ce(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function $e(e){this.props=e}($e.prototype=new w).isPureReactComponent=!0,$e.prototype.shouldComponentUpdate=function(e,t){return ce(this.props,e)||ce(this.state,t)};var fe=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),fe&&fe(e)};var de="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,he=function(e,t){return null==e?null:S(S(e).map(t))},pe={map:he,forEach:he,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},me=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);me(e,t,n,r)};var we=o.unmount;function ge(){this.__u=0,this.t=null,this.__b=null}function ye(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function be(){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),we&&we(e)},(ge.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ye(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},ge.prototype.componentWillUnmount=function(){this.t=[]},ge.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=le({},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&&h(m,null,e.fallback);return o&&(o.__h=null),[h(m,null,t.__a?null:e.children),o]};var ve=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 _e(e){return this.getChildContext=function(){return e.context},e.children}function xe(e){var t=this,n=e.i;t.componentWillUnmount=function(){B(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)}}),B(h(_e,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(be.prototype=new w).__a=function(e){var t=this,n=ye(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ve(t,e,r)):o()};n?n(i):i()}},be.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},be.prototype.componentDidUpdate=be.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ve(e,n,t)}))};var Se="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ce=/^(?: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]/,Ee="undefined"!=typeof document,Te=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 ke=o.event;function Ie(){}function Ae(){return this.cancelBubble}function Ne(){return this.defaultPrevented}o.event=function(e){return ke&&(e=ke(e)),e.persist=Ie,e.isPropagationStopped=Ae,e.isDefaultPrevented=Ne,e.nativeEvent=e};var Me,Re={configurable:!0,get:function(){return this.class}},De=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 s=n[i];Ee&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Te(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&&Ce.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=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&&(Re.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Re))}e.$$typeof=Se,De&&De(e)};var Ge=o.__r;o.__r=function(e){Ge&&Ge(e),Me=e.__c};var Be={ReactCurrentDispatcher:{current:{readContext:function(e){return Me.__n[e.__c].props.value}}}};function Pe(e){return!!e&&e.$$typeof===Se}function Oe(e){e()}const Fe={useState:X,useReducer:Q,useEffect:ee,useLayoutEffect:te,useInsertionEffect:te,useTransition:function(){return[!1,Oe]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=X(t),r=n[0],o=n[1];return ee((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:Oe,useRef:function(e){return H=5,ne((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){H=6,te((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:ne,useCallback:function(e,t){return H=8,ne((function(){return e}),t)},useContext:function(e){var t=L.context[e.__c],n=J(F++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(L)),t.props.value):e.__},useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:pe,render:function(e,t,n){return null==t.__k&&(t.textContent=""),B(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return P(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(B(null,e),!0)},createPortal:function(e,t){var n=h(xe,{__v:e,i:t});return n.containerInfo=t,n},createElement:h,createContext:function(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},createFactory:function(e){return h.bind(null,e)},cloneElement:function(e){return Pe(e)?O.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:m,isValidElement:Pe,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:w,PureComponent:$e,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:ce(this.props,e)}function r(t){return this.shouldComponentUpdate=n,h(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t){var n=le({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=de,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:ge,SuspenseList:be,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 h(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Be};function Le(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ve(e){return null!=e&&"function"==typeof e.Dispose}function Ue(e){Ve(e)&&e.Dispose()}function He(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 ze(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new je(e[Symbol.iterator]())}function We(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 Ye{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 Ke(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function qe(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Ze(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class Je{static id(e){return Je.idMap.has(e)||Je.idMap.set(e,++Je.count),Je.idMap.get(e)}}function Xe(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function Qe(e){return 2654435761*e|0}function et(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function tt(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Qe(e);case"string":return Xe(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Le(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=tt(e[r]);return et(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=>tt(e)));return et(t)}return Qe(Je.id(e))}}function nt(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 rt(e,t){return nt(e,t,ot)}function ot(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):Le(e)?Le(t)&&rt(e,t):e instanceof Date?t instanceof Date&&0===it(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]||!ot(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function it(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qe(e),r=t.getTime()+qe(t)),n===r?0:n<r?-1:1}function st(e,t){return e===t?0:e<t?-1:1}function at(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,ut)}function ut(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):Le(e)?Le(t)?at(e,t):-1:e instanceof Date?t instanceof Date?it(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=ut(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function lt(e,t,n){return e(t,n)>0?t:n}function ct(e){const t={};for(const n of e)t[n[0]]=n[1];return t}Je.idMap=new WeakMap,Je.count=0;const $t=Symbol("curried");function ft(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[$t]=t,n}function dt(e,t,n){return r=>1===t?n(...e.concat([r])):dt(e.concat([r]),t-1,n)}function ht(e,t,n){if(null!=t){if($t in t){t=t[$t];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return dt(n,e,t)}}function pt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+Ke(~~(e/36e5),2)+":"+Ke(n,2)}function mt(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 wt(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 gt(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," ")+pt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return wt(i,t,!0);switch(t){case"D":case"d":return mt(i,"first");case"T":case"t":return mt(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+pt(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 wt(e,t,n);switch(t){case"D":case"d":return n?mt(e,"first"):e.toLocaleDateString();case"T":case"t":return n?mt(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 Ke(e.getFullYear(),4)+"-"+Ke(e.getMonth()+1,2)+"-"+Ke(e.getDate(),2)+"T"+Ke(e.getHours(),2)+":"+Ke(e.getMinutes(),2)+":"+Ke(e.getSeconds(),2)+"."+Ke(e.getMilliseconds(),3)+(t?pt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function yt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function bt(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 vt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=bt(e),o=null!=r?t&&"Z"===r?1:2:0;return yt(n.getTime(),o)}(e),!0}catch(e){return!1}}const _t=Symbol("numeric");function xt(e){return"number"==typeof e||(null==e?void 0:e[_t])}function St(e,t){return"number"==typeof e?e*t:e[_t]().multiply(t)}function Ct(e,t){return"number"==typeof e?e.toFixed(t):e[_t]().toFixed(t)}function Et(e,t){return"number"==typeof e?e.toPrecision(t):e[_t]().toPrecision(t)}function Tt(e,t){return"number"==typeof e?e.toExponential(t):e[_t]().toExponential(t)}function kt(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[_t]().toHex()}function It(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function At(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 Nt(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+=Nt(r);else{if(100===t){n+="; ...";break}n+="; "+Nt(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+" = "+Nt(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Mt{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=Nt(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Nt(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>tt(e)));return e.splice(0,0,Qe(this.tag)),et(e)}Equals(e){return this===e||!!He(this,e)&&this.tag===e.tag&&rt(this.fields,e.fields)}CompareTo(e){return this===e?0:He(this,e)?this.tag===e.tag?at(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Rt{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+" = "+Nt(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>tt(e)));return et(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ot(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(He(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ut(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Dt{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)}}function Gt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}const Bt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Pt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ot(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ft(e){return{input:e,cont:(t=e,e=>{Bt.lastIndex=0;const n=[],r=[];let o=0,i=Bt.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Bt.lastIndex,Bt.lastIndex-=1,i=Bt.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),jt(e,n,r))})};var t}function Lt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Vt(e){return Lt((e=>e),e)}function Ut(e){return Lt((e=>{throw new Error(e)}),e)}function Ht(e,t,n,r,o){let i="";if(t=t||"",o=o||"",xt(e))switch("x"!==o.toLowerCase()&&(Ot(e,0)?(e=St(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Ct(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Et(e,r):Et(e);break;case"e":case"E":e=null!=r?Tt(e,r):Tt(e);break;case"x":e=kt(e);break;case"X":e=kt(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?gt(e):Nt(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=Wt(e,n-i.length,s,o)):Wt(i+e,n,s,o)}return e}function jt(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=a[0],s+=Ht(e,t,l,r,i),a.splice(0,1),u.splice(0,1)}return 0===u.length?(s+=a[0],e(s)):jt(e,a,u,s,o)}}function zt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Wt(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 Yt(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(It),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=a.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(l).trim():e.substring(l)),u=!1):s.push(r)),l=a.lastIndex}}while(u);return s}function Kt(e,t){return t.split("").filter((t=>e(t))).join("")}var qt=n(118);class Zt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return tt(this.value)}Equals(e){return null!=e&&ot(this.value,e instanceof Zt?e.value:e)}CompareTo(e){return null==e?1:ut(this.value,e instanceof Zt?e.value:e)}}function Jt(e){return null==e||e instanceof Zt?new Zt(e):e}function Xt(e){if(null==e)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Qt(e){return null==e?void 0:e}function en(e){return null==e?null:Xt(e)}function tn(e){return null==e?[]:[Xt(e)]}function nn(e,t){return null!=e?Xt(e):t}function rn(e,t){return null!=t?Jt(e(Xt(t))):void 0}function on(e,t){return null!=t?e(Xt(t)):void 0}function sn(e,t){return"function"==typeof e?new e(t):new Array(t)}function an(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function un(e,t,n){const r=0|t.length,o=sn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function ln(e,t,n){return function(e,t,n,r,o){const i=0|nn(n,0),s=0|nn(rn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=s)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function cn(e,t,n){return n.reduce(e,t)}function $n(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|t.length;for(let r=1;r<=i;r++)o=e(0,t[i-r],n[i-r],o);return o}(((t,n,r,o)=>e(n,r,o)),t,n,r)}class fn extends Rt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+zt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1];if(ot(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,s=i.tail;if(null==s)return 0|o;{const a=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+tt(i.head)+631*r,n=a}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],a=0|ut(n.head,r.head);if(0===a){e=i,t=s;continue e}return 0|a}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new dn(this)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}}class dn{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 hn(){return new fn(null,void 0)}function pn(e,t){return new fn(e,t)}function mn(e){return null==e.tail}function wn(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function gn(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function yn(){return hn()}function bn(e,t){return pn(e,t)}function vn(e){return pn(e,hn())}function _n(e){return mn(e)}function xn(e){return wn(e)}function Sn(e){return gn(e)}function Cn(e){const t=0|function(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)}(e),n=an(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(mn(o))break;n[r]=wn(o),e=r+1,t=gn(o)}})(0,e),n}function En(e,t,n){let r=t,o=n;for(;!mn(o);)r=e(r,wn(o)),o=gn(o);return r}function Tn(e){return En(((e,t)=>pn(t,e)),hn(),e)}function kn(e,t){En(((t,n)=>{e(n)}),void 0,t)}function In(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=pn(e[t],n);return n}function An(e){return In(e,hn())}function Nn(e,t){return En(((e,t)=>pn(t,e)),t,Tn(e))}function Mn(e,t){const n=hn(),r=En(((t,n)=>{const r=new fn(e(n),void 0);return t.tail=r,r}),n,t),o=hn();return r.tail=o,gn(n)}function Rn(e,t){return function(e,t){const n=Cn(t);return n.sort(e),An(n)}(((e,n)=>t.Compare(e,n)),e)}const Dn=Fe,Gn=Nt(qt.Z),Bn=h("svg",ct(An([["className",zt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=vn(h("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",Dn.Children.toArray(Array.from(e))]})()]))),Pn=h("svg",ct(An([["className",zt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=vn(h("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",Dn.Children.toArray(Array.from(e))]})()]))),On=h("svg",ct(An([["className",zt(" ",["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=vn(h("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Dn.Children.toArray(Array.from(e))]})()]))),Fn=h("svg",ct(An([["className",zt(" ",["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=vn(h("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Dn.Children.toArray(Array.from(e))]})()]))),Ln=h("svg",ct(An([["className",zt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=vn(h("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",Dn.Children.toArray(Array.from(e))]})()]))),Vn=An(["flex","flex-col","align-center"]),Un=(e,t)=>{ee((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Hn(e){return{Dispose(){e()}}}function jn(e){return Dn.useState(e)}function zn(e,t){Un(e,t)}function Wn(e,t){Un((t=>(e(),Hn((()=>{})))),t)}function Yn(e){return Dn.useRef(e)}function Kn(e){const t=Yn(e),n=function(e,n){const r=nn([],[]);return Dn.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Hn((()=>{}))),te((()=>{const e=o();return()=>{e.Dispose()}})),n}function qn(e){return Dn.useState(e)}class Zn{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)}}}}class Jn extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Jn.prototype)}}class Xn{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Xn.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Qn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Jn);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Gt(e))}}));else try{e(t)}catch(e){t.onError(Gt(e))}}}const er=new class{Bind(e,t){return function(e,t){return Qn((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Gt(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 Qn((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 Qn((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return Qn((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 Qn((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Gt(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 Qn((e=>e.onSuccess(void 0)))}};function tr(e){}function nr(e){const t=new Zn("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function rr(e){e.cancel()}const or=new Zn;function ir(e){return Qn((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new Jn)}))}))}function sr(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Xn;e({onSuccess:t||tr,onError:n||tr,onCancel:r||tr,cancelToken:o||or,trampoline:i})}(e,t)}(e,t)}class ar extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function ur(e,t){const n=Yn(nr());return zn((()=>Hn((()=>{rr(n.current)}))),[]),Kn((r=>{var o;null!=(o=n.current)&&o.isCancelled||sr(er.Delay((()=>er.TryWith(er.Delay((()=>(t(new ar(1)),er.Bind(e(r),(e=>(t(new ar(2,e)),er.Zero())))))),(e=>(t(new ar(3,e)),er.Zero()))))),n.current)}))}class lr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function cr(e,t){return 0===t.tag?new lr(0,e(t.fields[0])):new lr(1,t.fields[0])}function $r(e,t){return 0===t.tag?e(t.fields[0]):new lr(1,t.fields[0])}function fr(){return e=ut,{Compare:(t,n)=>e(t,n)};var e}const dr="The input sequence has an insufficient number of elements.";function hr(){throw new Error("Enumeration has not started. Call MoveNext.")}function pr(){throw new Error("Enumeration already finished.")}class mr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=ze(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Nt(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{Ue(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class wr{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 gr(e,t,n){return new wr(e,t,n)}function yr(e,t,n){let r,o=!1,i=Jt(e());const s=()=>{if(null!=i){const e=Xt(i);try{n(e)}finally{i=void 0}}},a=()=>{try{s()}finally{r=void 0}};return gr((()=>(o||hr(),null!=r?Xt(r):pr())),(()=>{if(o||(o=!0),null!=i){const e=Xt(i);let n;try{n=t(e)}catch(e){throw a(),e}return null!=n?(r=n,!0):(a(),!1)}return!1}),s)}function br(e){return function(e){return new mr(e)}(e)}function vr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),ze(e);var t}function _r(e){return br((()=>ze(e())))}function xr(e){return br((()=>function(e){let t,n,r,o=!1,i=!1;const s=()=>{if(i=!0,null!=n){const e=n;try{Ue(e)}finally{n=void 0}}if(null!=t){const e=t;try{Ue(e)}finally{t=void 0}}};return gr((()=>(o?i&&pr():hr(),null!=r?Xt(r):pr())),(()=>{let a;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=Jt(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{Ue(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(a=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=ze(a)):(s(),o=!1)}else t=ze(e)}return Xt(o)}}),(()=>{i||s()}))}(e)))}function Sr(){return _r((()=>new Array(0)))}function Cr(e){return _r((()=>function(e,t){const n=sn(void 0,1);return n[0]=e,n}(e)))}function Er(e){return Le(e)?An(e):e instanceof fn?e:function(e){let t,n;if(Le(e))return An(e);if(e instanceof fn)return e;{const r=hn();let o=r;const i=ze(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new fn(e,void 0),t.tail=n,o=n}}finally{Ue(i)}const s=o,a=hn();return s.tail=a,gn(r)}}(e)}function Tr(e,t,n){return br((()=>yr(e,t,n)))}function kr(e,t,n){return br((()=>{let r=-1;return yr(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Ir(e,t){return xr([e,t])}function Ar(e,t,n){const r=vr(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{Ue(r)}}function Nr(e,t){return function(e,t){return Tr((()=>vr(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=>{Ue(e)}))}((t=>e(t)?Jt(t):void 0),t)}function Mr(e,t,n){const r=vr(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{Ue(r)}}function Rr(e,t){Mr(((t,n)=>{e(n)}),void 0,t)}function Dr(e,t){return Tr((()=>vr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?Jt(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ue(e)}))}function Gr(e,t){return br((()=>{const n=vr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(dr+"\\nParameter name: source");return function(e,t){return gr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{Ue(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw Ue(n),e}}))}function Br(e,t){return _r((()=>xr(Dr(e,t))))}function Pr(e,t){return null==t?new lr(1,e):new lr(0,Xt(t))}function Or(e,t,n){return ot(n,e)?new lr(0,void 0):new lr(1,t)}Symbol.iterator;class Fr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Lr(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Vr(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Ur(e){return e.tag,e.fields[0]}function Hr(e){let t,n,r,o;const i=e.hideAlert,s=e.alert,a=nr();var u;return u=()=>{!function(e,t){sr(er.Delay((()=>er.Bind(ir(5e3),(()=>(e(),er.Zero()))))),t)}(i,a)},Wn(u,[]),h("div",ct(An([["className",zt(" ",["rounded-md","p-4","my-4",Vr(s)])],(t=[h("div",ct(An([["className",zt(" ",["flex"])],(n=[h("p",{className:zt(" ",["text-sm","pr-2",Lr(s)]),children:Ur(s)}),h("div",ct(An([["className",zt(" ",["ml-auto"])],(r=[h("div",ct(An([["className",zt(" ",["-mx-1.5","-my-1.5"])],(o=[h("button",{type:"button",className:zt(" ",Er(_r((()=>Ir(Cr("inline-flex"),_r((()=>Ir(Cr("rounded-md"),_r((()=>Ir(Cr("p-1.5"),_r((()=>Ir(Cr("focus:outline-none"),_r((()=>Ir(Cr("focus:ring-2"),_r((()=>Ir(Cr("focus:ring-offset-2"),_r((()=>function(e){switch(e.tag){case 0:return An(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return An(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return An(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(s))))))))))))))))))))))),children:Dn.Children.toArray([Ln]),onClick:e=>{rr(a),i()}})],["children",Dn.Children.toArray(Array.from(o))])])))],["children",Dn.Children.toArray(Array.from(r))])])))],["children",Dn.Children.toArray(Array.from(n))])])))],["children",Dn.Children.toArray(Array.from(t))])])))}function jr(e,t){return t}function zr(e,t,n){return cr(n,t)}new class{constructor(){}};function Wr(e,t){const n=function(e,t){return new lr(0,t)}(0,t);return er.Return(n)}function Yr(e,t){return er.Delay(t)}new class{constructor(){}};class Kr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class qr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Zr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Jr extends Rt{constructor(e,t,n,r,o,i,s,a){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=a}}class Xr extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Qr extends Rt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class eo{constructor(e,t){this.k=e,this.v=t}}function to(e,t){return new eo(e,t)}function no(e){return e.k}function ro(e){return e.v}class oo extends eo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function io(e,t,n,r,o){return new oo(e,t,n,r,o)}function so(e){return e.left}function ao(e){return e.right}function uo(e){return e.h}function lo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oo){e=lo(n+1,so(o)),t=ao(o);continue e}return n+1|0}return 0|n}}function co(e){return lo(0,e)}function $o(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof oo?uo(t):1}else o=0;if(null!=r){const e=r;i=e instanceof oo?uo(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?to(t,n):io(t,n,e,r,s+1)}function fo(e,t,n,r){let o,i,s,a,u,l;if(null!=e){const t=e;u=t instanceof oo?uo(t):1}else u=0;if(null!=r){const e=r;l=e instanceof oo?uo(e):1}else l=0;if(l>u+2){const s=Xt(r);if(s instanceof oo){if(o=so(s),(null!=o?(i=o,i instanceof oo?uo(i):1):0)>u+1){const r=Xt(so(s));if(r instanceof oo)return $o($o(e,t,n,so(r)),no(r),ro(r),$o(ao(r),no(s),ro(s),ao(s)));throw new Error("internal error: Map.rebalance")}return $o($o(e,t,n,so(s)),no(s),ro(s),ao(s))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=Xt(e);if(o instanceof oo){if(s=ao(o),(null!=s?(a=s,a instanceof oo?uo(a):1):0)>l+1){const e=Xt(ao(o));if(e instanceof oo)return $o($o(so(o),no(o),ro(o),so(e)),no(e),ro(e),$o(ao(e),t,n,r));throw new Error("internal error: Map.rebalance")}return $o(so(o),no(o),ro(o),$o(ao(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,no(o));return o instanceof oo?i<0?fo(ho(e,t,n,so(o)),no(o),ro(o),ao(o)):0===i?io(t,n,so(o),ao(o),uo(o)):fo(so(o),no(o),ro(o),ho(e,t,n,ao(o))):i<0?io(t,n,void 0,r,2):0===i?to(t,n):io(t,n,r,void 0,2)}return to(t,n)}function po(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,no(s));if(0===a)return Jt(ro(s));if(s instanceof oo){e=r,t=o,n=a<0?so(s):ao(s);continue e}return}return}}function mo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof oo){mo(n,so(o)),n(no(o),ro(o)),e=n,t=ao(o);continue e}n(no(o),ro(o))}break}}function wo(e,t){mo(e,t)}function go(e,t){if(null!=t){const n=t;if(n instanceof oo){const t=go(e,so(n)),r=e(no(n),ro(n)),o=go(e,ao(n));return io(no(n),r,t,o,uo(n))}return to(no(n),e(no(n),ro(n)))}}function yo(e,t){return go(e,t)}function bo(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 vo extends Rt{constructor(e,t){super(),this.stack=e,this.started=t}}function _o(e){e:for(;;){const t=e;if(_n(t))return yn();{const n=Sn(t),r=xn(t);if(null!=r){const o=r;if(o instanceof oo){e=In([so(o),to(no(o),ro(o)),ao(o)],n);continue e}return t}e=n;continue e}}}function xo(e){return new vo(_o(vn(e)),!1)}function So(e){if(e.started){const t=e.stack;if(_n(t))return function(){throw new Error("enumeration already finished")}();if(null!=xn(t)){const e=xn(t);if(e instanceof oo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[no(e),ro(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Co(e){let t=xo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>So(t),"System.Collections.IEnumerator.get_Current":()=>So(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_n(t))return!1;if(null!=xn(t)){if(xn(t)instanceof oo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=_o(Sn(t)),!_n(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!_n(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=xo(e)},Dispose(){}}}class Eo{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=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,tt(e[0])),n=0|t(n,tt(e[1]))}}finally{Ue(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Eo))return!1;{const t=ze(this);try{const n=ze(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!(!ot(r[0],o[0])||!ot(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{Ue(n)}}finally{Ue(t)}}}toString(){return"map ["+zt("; ",Dr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Pt,((e,n,r,o,i,s)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[n];if(xt(a))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":a=Ct(a,i=null!=i?i:2);break;case"g":case"G":a=null!=i?Et(a,i):Et(a);break;case"e":case"E":a=null!=i?Tt(a,i):Tt(a);break;case"p":case"P":i=null!=i?i:2,a=Ct(St(a,100),i)+" %";break;case"d":case"D":a=null!=i?Wt(String(a),i,"0"):String(a);break;case"x":case"X":a=null!=i?Wt(kt(a),i,"0"):kt(a),"X"===o&&(a=a.toUpperCase());break;default:if(s){let e="";a=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{Ot(a,0)&&(a=St(a,-1),e="-");const o=null!=r?r.length:0;if(a=Ct(a,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=a.split("."),n=e.length%3,r=Math.floor(e.length/3);let o=n>0?e.substr(0,n)+(r>0?",":""):"";for(let t=0;t<r;t++)o+=e.substr(n+3*t,3)+(t<r-1?",":"");a=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return Wt(a,i-e.length+o,"0")})),a=e+a}}else a=a instanceof Date?gt(a,s||o):Nt(a);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(a=Wt(String(a),Math.abs(r)," ",r<0)),a}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Co(this.tree)}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Co(this.tree)}CompareTo(e){const t=this;if(e instanceof Eo)return 0|function(e,t,n){const r=vr(t);try{const t=vr(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{Ue(t)}}finally{Ue(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:ut(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 No(this,e[0])&&ot(Io(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;wo(((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|Ao(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ao(this)}get size(){return 0|Ao(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Dr((e=>[e[0],e[1]]),this)}get(e){return Io(this,e)}has(e){return No(this,e)}keys(){return Dr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Dr((e=>e[1]),this)}forEach(e,t){const n=this;Rr((t=>{e(t[1],t[0],n)}),n)}}function To(e,t){return new Eo(e,t)}function ko(e){const t=fr();return To(t,function(e,t){if(Le(t))return bo(e,t);if(t instanceof fn)return function(e,t){return En(((t,n)=>ho(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=ze(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ho(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{Ue(n)}}}(t,e))}function Io(e,t){return function(e,t,n){const r=po(e,t,n);if(null==r)throw new Error;return Xt(r)}(e.comparer,t,e.tree)}function Ao(e){return co(e.tree)}function No(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,no(s));if(s instanceof oo){if(a<0){e=r,t=o,n=so(s);continue e}if(0===a)return!0;e=r,t=o,n=ao(s);continue e}return 0===a}return!1}}(e.comparer,t,e.tree)}function Mo(e,t,n){return function(e,t,n){return To(e.comparer,ho(e.comparer,t,n,e.tree))}(n,e,t)}function Ro(e,t){return function(e,t){return po(e.comparer,t,e.tree)}(t,e)}function Do(e,t){return function(e,t){return To(e.comparer,yo(t,e.tree))}(t,e)}function Go(e){return ko(e)}function Bo(){return Eo.empty}Eo.empty=To(fr(),void 0);const Po=new Jr("",new Kr(0),yn(),!1,void 0,void 0,void 0,new Zr(0));function Oo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Yt(t,[e],null,0);var n}function Fo(e){return new Jr(e,Po.method,Po.headers,Po.withCredentials,Po.overridenMimeType,Po.overridenResponseType,Po.timeout,Po.content)}function Lo(e,t){return new Jr(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Vo(e,t){return new Jr(t.url,t.method,Nn(t.headers,vn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Uo(e){return function(e){return Qn((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,a;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,a=n.responseType,s=""===a||"text"===a?new Xr(0,n.responseText):new Xr("arraybuffer"===a?2:"blob"===a?1:3,n.response),new Qr(o,e,i,function(e){const t=fr();return To(t,bo(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=Xt(o);r.push(e)}}return r}((e=>{const t=An(Oo(":",e));return _n(t)?void 0:[xn(t).toLocaleLowerCase(),zt(":",Sn(t)).trim()]}),Oo("\r\n",n.getAllResponseHeaders()))),s)))};const r=ze(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{Ue(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=e.timeout;if(null==s);else{const e=0|s;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(Jt(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(Jt(a[1].fields[0])):n.send(Jt(void 0))}))}new Qr(0,"","",Bo(),new Xr(0,""));class Ho extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class jo extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class zo{constructor(){this.cache=new Map([])}}function Wo(){return new zo}function Yo(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ko(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let s=i?o-3:o-2;for(let e=0;e<s;e++)t.push(arguments[e]);t.index=arguments[s++],t.input=arguments[s++],i&&(t.groups=arguments[s]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const s=t.substring(o),a=At(e,s),u=At.length>r?(i=a[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(Yo(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Yo(t)}}Wo(),Wo();const qo=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Zo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Jo=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Xo(e,t){try{return t.contents=function(e){function t(e){return e.replace(Zo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(qo.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+It(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Zo.test(n))return t(n);if(Jo.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 Qo;function ei(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 ti(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&Qo.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]=ei(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,a]=ei(n,r);if(e>=s&&e<=a)return e}}throw new Error("Input string was not in a correct format.")}function ni(e,t,n,r,o){try{return o.contents=ti(e,t,n,r),!0}catch(e){return!1}}function ri(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 oi(e,t){try{return t.contents=function(e){const[t,n]=bt(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return ri(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Qo||(Qo={}));var ii=null;try{ii=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 si(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function ai(e){return!0===(e&&e.__isLong__)}si.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},si.prototype.Equals=function(e){return Di(this,e)},si.prototype.CompareTo=function(e){return Oi(this,e)},si.prototype.toString=function(e){return Ai(this,e)},si.prototype.toJSON=function(){return Ai(this)},si.prototype[_t]=function(){const e=this;return{multiply:t=>Ui(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 Ai(e.unsigned?e:function(e,t,n){return n?function(e,t){return new si(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 si(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}}},si.prototype.__isLong__,Object.defineProperty(si.prototype,"__isLong__",{value:!0});var ui={},li={};function ci(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=li[e])?r:(n=fi(e,(0|e)<0?-1:0,!0),o&&(li[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=ui[e])?r:(n=fi(e,e<0?-1:0,!1),o&&(ui[e]=n),n)}function $i(e,t){if(isNaN(e))return t?vi:bi;if(t){if(e<0)return vi;if(e>=wi)return Ei}else{if(e<=-gi)return Ti;if(e+1>=gi)return Ci}return e<0?Fi($i(-e,t)):fi(e%mi|0,e/mi|0,t)}function fi(e,t,n){return new si(e,t,n)}var di=Math.pow;function hi(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return bi;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 Fi(hi(e.substring(1),t,n));for(var o=$i(di(n,8)),i=bi,s=0;s<e.length;s+=8){var a=Math.min(8,e.length-s),u=parseInt(e.substring(s,s+a),n);i=Li(a<8?Ui(i,$i(di(n,a))):i=Ui(i,o),$i(u))}return i.unsigned=t,i}function pi(e,t){return"number"==typeof e?$i(e,t):"string"==typeof e?hi(e,t):fi(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var mi=4294967296,wi=mi*mi,gi=wi/2,yi=ci(1<<24),bi=ci(0),vi=ci(0,!0),_i=ci(1),xi=ci(1,!0),Si=ci(-1),Ci=fi(-1,2147483647,!1),Ei=fi(-1,-1,!0),Ti=fi(0,-2147483648,!1);function ki(e){return e.unsigned?e.low>>>0:e.low}function Ii(e){return e.unsigned?(e.high>>>0)*mi+(e.low>>>0):e.high*mi+(e.low>>>0)}function Ai(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Ni(e))return"0";if(Mi(e)){if(Di(e,Ti)){var n=$i(t),r=Hi(e,n),o=Vi(Ui(r,n),e);return Ai(r,t)+ki(o).toString(t)}return"-"+Ai(Fi(e),t)}for(var i=$i(di(t,6),e.unsigned),s=e,a="";;){var u=Hi(s,i),l=(ki(Vi(s,Ui(u,i)))>>>0).toString(t);if(Ni(s=u))return l+a;for(;l.length<6;)l="0"+l;a=""+l+a}}function Ni(e){return 0===e.high&&0===e.low}function Mi(e){return!e.unsigned&&e.high<0}function Ri(e){return 1==(1&e.low)}function Di(e,t){return ai(t)||(t=pi(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function Gi(e,t){return Oi(e,t)<0}function Bi(e,t){return Oi(e,t)>0}function Pi(e,t){return Oi(e,t)>=0}function Oi(e,t){if(ai(t)||(t=pi(t)),Di(e,t))return 0;var n=Mi(e),r=Mi(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:Mi(Vi(e,t))?-1:1}function Fi(e){return!e.unsigned&&Di(e,Ti)?Ti:Li(function(e){return fi(~e.low,~e.high,e.unsigned)}(e),_i)}function Li(e,t){ai(t)||(t=pi(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+u)>>>16,l+=(c+=r+a)>>>16,l+=n+s,fi(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Vi(e,t){return ai(t)||(t=pi(t)),Li(e,Fi(t))}function Ui(e,t){if(Ni(e))return e.unsigned?vi:bi;if(ai(t)||(t=pi(t)),ii)return fi(ii.mul(e.low,e.high,t.low,t.high),ii.get_high(),e.unsigned);if(Ni(t))return e.unsigned?vi:bi;if(Di(e,Ti))return Ri(t)?Ti:bi;if(Di(t,Ti))return Ri(e)?Ti:bi;if(Mi(e))return Mi(t)?Ui(Fi(e),Fi(t)):Fi(Ui(Fi(e),t));if(Mi(t))return Fi(Ui(e,Fi(t)));if(Gi(e,yi)&&Gi(t,yi))return $i(Ii(e)*Ii(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,a=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*u)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*u)>>>16,$&=65535,c+=($+=i*a)>>>16,c+=n*l+r*u+o*a+i*s,fi((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function Hi(e,t){if(ai(t)||(t=pi(t)),Ni(t))throw Error("division by zero");var n,r,o;if(ii)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?fi((e.unsigned?ii.div_u:ii.div_s)(e.low,e.high,t.low,t.high),ii.get_high(),e.unsigned):e;if(Ni(e))return e.unsigned?vi:bi;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:fi(e.low,e.high,!0)}(t)),Bi(t,e))return vi;if(Bi(t,function(e,t){if(ai(t)&&(t=ki(t)),0==(t&=63))return e;var n=e.high;return t<32?fi(e.low>>>t|n<<32-t,n>>>t,e.unsigned):fi(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return xi;o=vi}else{if(Di(e,Ti))return Di(t,_i)||Di(t,Si)?Ti:Di(t,Ti)?_i:Di(n=function(e,t){return ai(t)&&(t=ki(t)),0==(t&=63)?e:t<32?fi(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):fi(0,e.low<<t-32,e.unsigned)}(Hi(function(e,t){return ai(t)&&(t=ki(t)),0==(t&=63)?e:t<32?fi(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):fi(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),bi)?Mi(t)?_i:Si:o=Li(n,Hi(r=Vi(e,Ui(t,n)),t));if(Di(t,Ti))return e.unsigned?vi:bi;if(Mi(e))return Mi(t)?Hi(Fi(e),Fi(t)):Fi(Hi(Fi(e),t));if(Mi(t))return Fi(Hi(e,Fi(t)));o=bi}for(r=e;Pi(r,t);){n=Math.max(1,Math.floor(Ii(r)/Ii(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:di(2,i-48),a=$i(n),u=Ui(a,t);Mi(u)||Bi(u,r);)u=Ui(a=$i(n-=s,e.unsigned),t);Ni(a)&&(a=_i),o=Li(o,a),r=Vi(r,u)}return o}const ji=Hi,zi=Ii;function Wi(e){return e<0?Math.ceil(e):Math.floor(e)}function Yi(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Ki(arguments[0]);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 Ki(e){return zi(ji(e,1e4))}function qi(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 Yi(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,s=+t[4],a=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*Yi(n,s,a,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Zi{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class Ji{constructor(e,t,n,r,o,i,s){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=s}toString(){return fs(this)}GetHashCode(){return Qi(this)}Equals(e){return es(this,e)}}function Xi(e){return null!=e.generics?e.generics:[]}function Qi(e){return et([Xe(e.fullname),...Xi(e).map(Qi)])}function es(e,t){return""===e.fullname?""===t.fullname&&nt(_s(e),_s(t),(([e,t],[n,r])=>e===n&&es(t,r))):e.fullname===t.fullname&&nt(Xi(e),Xi(t),es)}function ts(e,t,n,r){return new Ji(e,t,n,void 0,r)}function ns(...e){return new Ji("",void 0,void 0,void 0,(()=>e))}function rs(e,t,n,r){const o=new Ji(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new Zi(o,n,e[n],t)))}));return o}function os(e){return new Ji("Microsoft.FSharp.Core.FSharpOption`1",[e])}function is(e){return new Ji("Microsoft.FSharp.Collections.FSharpList`1",[e])}function ss(e,t,n){return new Ji(e,[t],void 0,void 0,void 0,void 0,n)}const as=new Ji("System.Object"),us=(new Ji("Microsoft.FSharp.Core.Unit"),new Ji("System.Char"),new Ji("System.String")),ls=new Ji("System.Boolean"),cs=(new Ji("System.SByte"),new Ji("System.Byte"),new Ji("System.Int16"),new Ji("System.UInt16"),new Ji("System.Int32"));function $s(e){if(Array.isArray(e))return e[0];if(e instanceof Ji){const t=hs(e);if(null!=t)return $s(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function fs(e){const t=hs(e);return null!=t?fs(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>fs(e))).join(",")+"]"}function ds(e){return null!=hs(e)}function hs(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function ps(e){return null!=e.generics&&e.generics.length>0}function ms(e){return null!=e.enumCases&&e.enumCases.length>0}function ws(e){return null==e.generics?e:new Ji(e.fullname,e.generics.map((()=>as)))}function gs(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function ys(e){if(ms(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function bs(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 vs(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function _s(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function xs(e){if(Es(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ss(e){return e instanceof Ji?null!=e.cases:e instanceof Mt}function Cs(e){return e instanceof Ji?null!=e.fields:e instanceof Rt}function Es(e){return e.fullname.startsWith("System.Tuple")}function Ts(e){return null==e.fields?[]:e.fields}function ks(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):{}}new Ji("System.UInt32"),new Ji("System.Single"),new Ji("System.Double"),new Ji("System.Decimal");class Is{constructor(e){this.k=e}}function As(e){return new Is(e)}function Ns(e){return e.k}class Ms extends Is{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Rs(e,t,n,r){return new Ms(e,t,n,r)}function Ds(e){return e.left}function Gs(e){return e.right}function Bs(e){return e.h}function Ps(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ms){e=Ds(o),t=Ps(Gs(o),r+1);continue e}return r+1|0}return 0|r}}function Os(e){return Ps(e,0)}function Fs(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ms?Bs(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ms?Bs(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?As(t):Rs(t,e,n,i+1)}function Ls(e,t,n){let r,o,i,s,a,u;if(null!=e){const t=e;a=t instanceof Ms?Bs(t):1}else a=0;if(null!=n){const e=n;u=e instanceof Ms?Bs(e):1}else u=0;if(u>a+2){const i=Xt(n);if(i instanceof Ms){if(r=Ds(i),(null!=r?(o=r,o instanceof Ms?Bs(o):1):0)>a+1){const n=Xt(Ds(i));if(n instanceof Ms)return Fs(Fs(e,t,Ds(n)),Ns(n),Fs(Gs(n),Ns(i),Gs(i)));throw new Error("internal error: Set.rebalance")}return Fs(Fs(e,t,Ds(i)),Ns(i),Gs(i))}throw new Error("internal error: Set.rebalance")}if(a>u+2){const r=Xt(e);if(r instanceof Ms){if(i=Gs(r),(null!=i?(s=i,s instanceof Ms?Bs(s):1):0)>u+1){const e=Xt(Gs(r));if(e instanceof Ms)return Fs(Fs(Ds(r),Ns(r),Ds(e)),Ns(e),Fs(Gs(e),t,n));throw new Error("internal error: Set.rebalance")}return Fs(Ds(r),Ns(r),Fs(Gs(r),t,n))}throw new Error("internal error: Set.rebalance")}return Fs(e,t,n)}function Vs(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Ns(r));if(r instanceof Ms)return o<0?Ls(Vs(e,t,Ds(r)),Ns(r),Gs(r)):0===o?n:Ls(Ds(r),Ns(r),Vs(e,t,Gs(r)));{const o=0|e.Compare(t,Ns(r));return o<0?Rs(t,void 0,n,2):0===o?n:Rs(t,n,void 0,2)}}return As(t)}function Us(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,a=0|r.Compare(o,Ns(s));if(s instanceof Ms){if(a<0){e=r,t=o,n=Ds(s);continue e}if(0===a)return!0;e=r,t=o,n=Gs(s);continue e}return 0===a}return!1}}function Hs(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ms){Hs(n,Ds(o)),n(Ns(o)),e=n,t=Gs(o);continue e}n(Ns(o))}break}}class js extends Rt{constructor(e,t){super(),this.stack=e,this.started=t}}function zs(e){e:for(;;){const t=e;if(_n(t))return yn();{const n=xn(t),r=Sn(t);if(null!=n){const o=n;if(o instanceof Ms){e=In([Ds(o),As(Ns(o)),Gs(o)],r);continue e}return t}e=r;continue e}}}function Ws(e){return new js(zs(vn(e)),!1)}function Ys(e){if(e.started){const t=e.stack;if(_n(t))return function(){throw new Error("Enumeration already started")}();if(null!=xn(t))return Ns(xn(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ks(e){let t=Ws(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ys(t),"System.Collections.IEnumerator.get_Current":()=>Ys(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(_n(t))return!1;if(null!=xn(t)){if(xn(t)instanceof Ms)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=zs(Sn(t)),!_n(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!_n(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ws(e)},Dispose(){}}}function qs(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,s=[o,i];if(_n(s[0]))return _n(s[1])?0:-1;if(_n(s[1]))return 1;if(null!=xn(s[1]))if(null!=xn(s[0])){const a=xn(s[0]),u=xn(s[1]);if(a instanceof Ms)if(null==Ds(a)){if(!(u instanceof Ms)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(Gs(a),Sn(s[0])),n=bn(void 0,Sn(s[1]));continue e}if(null==Ds(u)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(Gs(a),Sn(s[0])),n=bn(Gs(u),Sn(s[1]));continue e}{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Ds(l),Rs(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Ds($),Rs(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Ds(l),Rs(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Ds($),Rs(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ms)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}if(null==Ds(u)){const o=0|r.Compare(Ns(a),Ns(u));if(0!==o)return 0|o;e=r,t=bn(void 0,Sn(s[0])),n=bn(Gs(u),Sn(s[1]));continue e}{const s=[o,i];let a,u,l,c,$;switch(_n(s[0])?_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2:null!=xn(s[0])?(a=0,u=Sn(s[0]),l=xn(s[0])):_n(s[1])?a=2:null!=xn(s[1])?(a=1,c=Sn(s[1]),$=xn(s[1])):a=2,a){case 0:if(l instanceof Ms){e=r,t=In([Ds(l),Rs(Ns(l),void 0,Gs(l),0)],u),n=i;continue e}e=r,t=In([void 0,As(Ns(l))],u),n=i;continue e;case 1:if($ instanceof Ms){e=r,t=o,n=In([Ds($),Rs(Ns($),void 0,Gs($),0)],c);continue e}e=r,t=o,n=In([void 0,As(Ns($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{xn(s[1]);const a=[o,i];let u,l,c,$,f;switch(_n(a[0])?_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2:null!=xn(a[0])?(u=0,l=Sn(a[0]),c=xn(a[0])):_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2,u){case 0:if(c instanceof Ms){e=r,t=In([Ds(c),Rs(Ns(c),void 0,Gs(c),0)],l),n=i;continue e}e=r,t=In([void 0,As(Ns(c))],l),n=i;continue e;case 1:if(f instanceof Ms){e=r,t=o,n=In([Ds(f),Rs(Ns(f),void 0,Gs(f),0)],$);continue e}e=r,t=o,n=In([void 0,As(Ns(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==xn(s[0])){e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}{xn(s[0]);const a=[o,i];let u,l,c,$,f;switch(_n(a[0])?_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2:null!=xn(a[0])?(u=0,l=Sn(a[0]),c=xn(a[0])):_n(a[1])?u=2:null!=xn(a[1])?(u=1,$=Sn(a[1]),f=xn(a[1])):u=2,u){case 0:if(c instanceof Ms){e=r,t=In([Ds(c),Rs(Ns(c),void 0,Gs(c),0)],l),n=i;continue e}e=r,t=In([void 0,As(Ns(c))],l),n=i;continue e;case 1:if(f instanceof Ms){e=r,t=o,n=In([Ds(f),Rs(Ns(f),void 0,Gs(f),0)],$);continue e}e=r,t=o,n=In([void 0,As(Ns(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,vn(t),vn(n))}function Zs(e,t,n){let r=n;Hs((e=>{t[r]=e,r=r+1|0}),e)}function Js(e,t){if(Le(t))return function(e,t){return cn(((t,n)=>Vs(e,n,t)),void 0,t)}(e,t);if(t instanceof fn)return function(e,t){return En(((t,n)=>Vs(e,n,t)),void 0,t)}(e,t);{const n=ze(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=Vs(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{Ue(n)}}}class Xs{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|tt(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{Ue(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof Xs&&0===qs(Qs(this),ea(this),ea(e))}toString(){return"set ["+zt("; ",Dr((e=>Nt(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|qs(Qs(this),ea(this),ea(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 Us(Qs(this),e,ea(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Zs(ea(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ta(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|ta(this)}GetEnumerator(){return Ks(ea(this))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ks(ea(this))}get size(){return 0|ta(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 Us(Qs(e),t,ea(e))}(this,e)}keys(){return Dr((e=>e),this)}values(){return Dr((e=>e),this)}entries(){return Dr((e=>[e,e]),this)}forEach(e,t){const n=this;Rr((t=>{e(t,t,n)}),n)}}function Qs(e){return e.comparer}function ea(e){return e.tree}function ta(e){return Os(ea(e))}function na(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 ra(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new lr(1,function(e,t){const n=2===t.tag?na(t.fields[0],t.fields[1],!0):1===t.tag?na(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?na(t.fields[0],t.fields[1],!0):4===t.tag?na(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"+zt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:na(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new lr(0,r.fields[0])}const oa=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 lr(0,(e+128&255)-128):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for a sbyte")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,8,new Dt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},ia=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 lr(0,255&e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for a byte")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,8,new Dt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},sa=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 lr(0,(e+32768&65535)-32768):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,16,new Dt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},aa=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 lr(0,65535&e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,16,new Dt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},ua=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 lr(0,~~e):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for an int")]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!1,32,new Dt((()=>t),(e=>{t=0|e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])},la=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 lr(0,e>>>0):new lr(1,[r,new Ho(1,n,e,"Value was either too large or too small for "+n)]):new lr(1,[r,new Ho(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[ni(o,511,!0,32,new Dt((()=>t),(e=>{t=e}))),t],e[0]?new lr(0,e[1]):new lr(1,[r,new Ho(0,n,o)])}return new lr(1,[r,new Ho(0,n,o)])};function ca(e,t,n,r){let o;const i=n+".["+Ze(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new lr(1,[i,new Ho(5,"a longer array. Need index `"+Ze(e)+"` but there are only `"+(o=n.length,Ze(o)+"` entries"),r)])}return new lr(1,[i,new Ho(0,"an array",r)])}function $a(e,t,n){if(Array.isArray(n)){let r=-1;return cr(Tn,cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+Ze(r)+"]",o);return 0===i.tag?new lr(0,bn(i.fields[0],n.fields[0])):new lr(1,i.fields[0])}return n}),new lr(0,yn()),n))}return new lr(1,[t,new Ho(0,"a list",n)])}function fa(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return cn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+Ze(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new lr(0,i)):new lr(1,s.fields[0])}return n}),new lr(0,an(new Array(o.length),0,o.length,null)),o)}return new lr(1,[t,new Ho(0,"an array",n)])}function da(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new lr(1,o.fields[0])}function ha(e,t){let n;const r=e;return n=e=>t=>ca(0,r,e,t),e=>r=>da(ft(3,(e=>{let n;const r=t;return n=e=>t=>ca(1,r,e,t),t=>r=>da(((t,n,r)=>new lr(0,[e,t])),ft(2,n),t,r)})),ft(2,n),e,r)}function pa(e){return Go(e)}function ma(e){return function(e,t){return new Xs(e,t)}(t={Compare:ut},Js(t,e));var t}function wa(e,t,n,r){let o,i;return t.length!==r.length?new lr(1,[n,new Ho(6,(o=0|r.length,i=0|t.length,Vt(Ft("Expected %i %s but got %i"))(i)(e)(o)))]):$n(((e,t,r)=>0===r.tag?cr((e=>bn(e,r.fields[0])),t(n)(e)):r),r,t,new lr(0,yn()))}function ga(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>$s(e)===r))}(0,vs(n));if(null!=s){const n=s;return 0===i.length?new lr(0,ks(n,[])):cr((e=>ks(n,Cn(e))),wa("union fields",un((n=>ba(e,t,!1,n[1])),Ts(n)),o,i))}return new lr(1,[o,new Ho(6,"Cannot find case "+r+" in "+fs(n))])}function ya(e,t,n,r){const o=new Dt(null),i=Mo(fs(r),o,e);let s;if(Cs(r)){const e=un((e=>[Ko(t,$s(e)),ba(i,t,!1,e[1])]),_s(r));s=t=>n=>cr((e=>function(e,t){const n=_s(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,Cn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new lr(1,[t,new Ho(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(ft(2,(e=>{const r=e[0];return o=>0===o.tag?cr((e=>bn(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new lr(0,yn()))}(e,t,n))}else if(Ss(r))s=e=>n=>{if("string"==typeof n)return ga(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return ga(i,t,r,o[0],e,o.slice(1,o.length))}return new lr(1,[e,new Ho(0,"a string or array",n)])};else{if(!n){let e;const t=fs(r);throw e=Vt(Ft("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new lr(1,[e,new Ho(2,"an extra coder for "+fs(r),t)])}return o.contents=s,s}function ba(e,t,n,r){let o,i,s;const a=fs(r),u=Ro(a,e);if(null==u){if(ds(r)){const n=ba(e,t,!1,hs(r));return e=>t=>fa(ft(2,n),e,t)}if(ms(r)){const e=fs(gs(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=oa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=ia(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=sa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString(a))):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}var a};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=aa(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=ua(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,Ze(e))):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=la(o)(i);if(1===s.tag)return new lr(1,s.fields[0]);{const e=s.fields[0];return Ar(e,ys(n),{Equals:(e,t)=>e===t,GetHashCode:Qe})?new lr(0,bs(n,e.toString())):new lr(1,[o,new Ho(1,fs(n),i,"Unkown value provided for the enum")])}};{const e=fs(r),t=Ut(Ft("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing 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(ps(r)){if(Es(r)){const n=un((n=>ba(e,t,!1,n)),xs(r));return e=>t=>Array.isArray(t)?cr((e=>Cn(e)),wa("tuple elements",n,e,t)):new lr(1,[e,new Ho(0,"an array",t)])}{const a=fs(ws(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=ba(e,t,!0,Xi(r)[0]),e=>t=>{return n=ft(2,o),r=e,null==(i=t)?new lr(0,void 0):cr(Jt,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=ba(e,t,!1,Xi(r)[0]),e=>t=>$a(ft(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=ba(e,t,!1,Xi(r)[0]),o=ba(e,t,!1,Xi(r)[1]);let i;const a=An([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new lr(1,[n,new Ho(0,"an object",r)]):Mr(((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new lr(0,bn([s.fields[0],e.fields[0]],o.fields[0])):new lr(1,e.fields[0])}return new lr(1,s.fields[0])}return o}),new lr(0,yn()),Object.keys(r))}(ft(2,n),ft(2,o),e,t),(s=ha(ft(2,n),ft(2,o)),e=>t=>$a(ft(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(_n(o))return new lr(1,[n,new Ho(7,i)]);{const s=ra(n,ft(2,xn(o)),r);if(1===s.tag){e=Sn(o),t=Nn(i,vn(s.fields[0]));continue e}return new lr(0,s.fields[0])}}})(a,yn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new lr(1,o.fields[0]):new lr(0,e(o.fields[0]))}(pa,ft(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=ba(e,t,!1,Xi(r)[0]);return e=>t=>{const r=fa(ft(2,n),e,t);return 0===r.tag?new lr(0,ma(r.fields[0])):new lr(1,r.fields[0])}}return ya(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new lr(0,void 0):new lr(1,[n,new Ho(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>{return n=e,"string"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a string",r)]);var n,r}:"System.SByte"===a?oa:"System.Byte"===a?ia:"System.Int16"===a?sa:"System.UInt16"===a?aa:"System.Int32"===a?ua:"System.UInt32"===a?la:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new lr(0,r):new lr(1,[n,new Ho(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let r,o=yt(-621355968e5,0);return r=[vt(t,new Dt((()=>o),(e=>{o=e}))),o],r[0]?new lr(0,1===(n=r[1]).kind?n:yt(n.getTime(),1)):new lr(1,[e,new Ho(0,"a datetime",t)])}var n;return new lr(1,[e,new Ho(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=ri(-621355968e5,0);return n=[oi(t,new Dt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a datetimeoffset",t)])}return new lr(1,[e,new Ho(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[qi(t,new Dt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a timespan",t)])}return new lr(1,[e,new Ho(0,"a timespan",t)])}(e,t):"System.Guid"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Xo(t,new Dt((()=>r),(e=>{r=e}))),r],n[0]?new lr(0,n[1]):new lr(1,[e,new Ho(0,"a guid",t)])}return new lr(1,[e,new Ho(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new lr(0,e):ya(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const va=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 _a=e=>function(e,t){return 0!=(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 va(n)}(e,0)&256)}(e);function xa(e,t){return!t.has(e)&&(t.add(e),!0)}function Sa(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ca{constructor(e,t){const n=new Dt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=ze(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Ia(n.contents,e)}}finally{Ue(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return ze(this)}GetEnumerator(){return ze(xr(this.hashMap.values()))}[Symbol.iterator](){return We(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Ia(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Ta(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Aa(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Mr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ka(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Na(this,e)}get size(){return 0|ka(this)}add(e){return Ia(this,e),this}clear(){Ta(this)}delete(e){return Na(this,e)}has(e){return Aa(this,e)}keys(){return Dr((e=>e),this)}values(){return Dr((e=>e),this)}entries(){return Dr((e=>[e,e]),this)}forEach(e,t){const n=this;Rr((t=>{e(t,t,n)}),n)}}function Ea(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,a=new Dt((()=>o),(e=>{o=e})),!!i.has(s)&&(a.contents=i.get(s),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,s,a}function Ta(e){e.hashMap.clear()}function ka(e){let t=0,n=ze(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{Ue(n)}return 0|t}function Ia(e,t){const n=Ea(e,t);return n[0]?!(n[2]>-1)&&(Sa(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Aa(e,t){const n=Ea(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Na(e,t){const n=Ea(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Sa(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class Ma extends Rt{constructor(e,t){super(),this.Code=e,this.Name=t}}const Ra=Go([["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 Da extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ga extends Rt{constructor(e,t){super(),this.Code=e,this.Name=t}}function Ba(e){return cr((e=>new Ga(e.Code,e.Name)),function(e){const t=function(e){return rn((t=>new Ma(e,t)),Ro(e,Ra))}(e);return Pr(Vt(Ft("Country code:%A is not accepted"))(e),t)}(e))}class Pa extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}class Oa extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Fa=new Oa(2,{HomeCountry:void 0});function La(e){return new Oa(2,{HomeCountry:e})}class Va extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class Ua extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class Ha extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class ja extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function za(e){return new ja(0,e)}function Wa(e){return e.fields[0]}function Ya(e){return jr(0,(()=>$r((e=>{const t=e;return zr(0,function(e,t){return function(e){if(Le(e))return 0===e.length;if(e instanceof fn)return _n(e);{const t=vr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{Ue(t)}}}(t)?new lr(1,e):new lr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:Xe},function(e){return e instanceof fn?Cn(e):Array.from(e)}(function(e,t,n){return _r((()=>{const r=new Ca(e,n);return Nr((e=>xa(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return jr(0,(()=>{const t=Kt(_a,e);return $r((()=>$r((()=>zr(0,Or(0,"TFN is not valid",function(e,t){let n=t.GetZero();for(let r=0;r<=e.length-1;r++)n=t.Add(n,e[r]);return n}(function(e,t,n,r){if(t.length!==n.length)throw new Error("Arrays had different lengths");const o=sn(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),un((e=>ti(e,511,!1,32)),t.split(""),Int32Array),new Int32Array([1,4,3,7,5,8,6,9,10]),Int32Array),{GetZero:()=>0,Add:(e,t)=>e+t})%11),(()=>t))),Or(9,"TFN must be 9 digits",t.length))),Or(e,"TFN must contain digits only",t))}))()}(e))))()}class Ka extends Rt{constructor(e,t){super(),this.Code=e,this.Name=t}}function qa(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}new class extends Rt{constructor(e){super(),this.Unused=e}}(void 0);class Za extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function Ja(e){switch(e.tag){case 1:return new lr(0,new Oa(1));case 2:return nn(rn((e=>cr(La,Ba(e.Code))),e.fields[0].HomeCountry),new lr(0,Fa));default:return new lr(0,new Oa(0))}}function Xa(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function Qa(e){switch(e){case 0:return new lr(0,new Da(0));case 1:return new lr(0,new Da(1));case 2:return new lr(0,new Da(2));case 3:return new lr(0,new Da(3));case 4:return new lr(0,new Da(4));default:return new lr(1,"Invalid DebtSupport")}}function eu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const tu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(_n(i))return cr(Tn,r);{const s=jr(0,(()=>$r((e=>zr(0,r,(t=>bn(e,t)))),o(xn(i)))))();if(1===s.tag)return s;e=s,t=o,n=Sn(i);continue e}}}(new lr(0,yn()),e,t)}(Qa,(t={Equals:(e,t)=>e===t,GetHashCode:Qe},Er(function(e,t){return _r((()=>{const n=new Ca([],t);return Nr((e=>xa(e,n)),e)}))}(e,t))));var t};function nu(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class ru extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function ou(){return rs("Dto.Dto.ProvidedTfnInformationDto",[],ru,(()=>[[["Item",us]],[["Item",ss("Dto.Dto.ExemptionReasonDto",cs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class iu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class su extends Rt{constructor(e,t,n,r,o,i,s){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=s}}class au extends Rt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class uu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function lu(){return rs("Dto.Commands.ResidencyStatusV2Dto",[],uu,(()=>[[],[],[["Item",ns(["HomeCountry",ns(["Code",us])])]]]))}class cu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function $u(e){return e}function fu(e){return Array.from(e)}function du(e){return gt(e,"O")}function hu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return Wi(e/864e5)}(e)),o=Math.abs(function(e){return Wi(e%864e5/36e5)}(e)),i=Math.abs(function(e){return Wi(e%36e5/6e4)}(e)),s=Math.abs(function(e){return Wi(e%6e4/1e3)}(e)),a=Math.abs(function(e){return Wi(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:Ke(o,2)}:${Ke(i,2)}:${Ke(s,2)}${0!==a||"c"!==t&&"g"!==t?"g"===t?"."+Ke(a,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(a):""}`}(e)}function pu(){return null}function mu(e){return gt(e,"O")}function wu(e,t,n,r){const o=new Dt(null),i=Mo(fs(r),o,e);let s;if(Cs(r)){const e=un((e=>{const r=Ko(t,$s(e)),o=gu(i,t,n,e[1]);return t=>i=>{const s=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=s)&&(i[r]=o(s)),i}}),_s(r));s=t=>Mr(((e,n)=>n(t)(e)),{},e)}else{if(!Ss(r)){let e;const t=fs(r);throw e=Vt(Ft("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=vs(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),s=o[0],a=o[1],u=0|a.length;if(0===u)return $s(s);{const e=0|u,r=Ts(s),o=an(new Array(e+1),0,e+1,null);o[0]=$s(s);for(let s=1;s<=e;s++){const e=gu(i,t,n,r[s-1][1]);o[s]=e(a[s-1])}return o}}}return o.contents=s,s}function gu(e,t,n,r){const o=fs(r),i=Ro(o,e);if(null==i){if(ds(r)){const o=gu(e,t,n,hs(r));return e=>fu(Dr(o,e))}if(ms(r)){const e=fs(gs(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=fs(r);return Ut(Ft("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the folluwing 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 encoder.\n "))(e)}}if(ps(r)){if(Es(r)){const o=un((r=>gu(e,t,n,r)),xs(r));return e=>{return fu((t=(e,t)=>o[e](t),n=e,kr((()=>vr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Jt(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{Ue(e)}))));var t,n}}{const o=fs(ws(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Ye((()=>{return o=gu(e,t,n,Xi(r)[0]),e=>{return null!=(t=rn(o,e))?Xt(t):null;var t};var o}));return e=>null==e?null:o.Value(e)}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===o||"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===o){const o=gu(e,t,n,Xi(r)[0]);return e=>fu(Dr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=Xi(r)[0],i=gu(e,t,n,Xi(r)[1]);if("System.String"===fs(o)||"System.Guid"===fs(o))return e=>Mr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=gu(e,t,n,o);return r=s,e=>fu(Dr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return wu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?pu:"System.String"===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?mu:"System.DateTimeOffset"===o?du:"System.TimeSpan"===o?hu:"System.Guid"===o?$u:"System.Object"===o?e=>e:wu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function yu(e){return Vt(Ft("%s/tfn-declaration/backend"))(e)}function bu(e,t){return Yr(0,(()=>{const n=Vo(function(e){return new qr(0,"Authorization",e)}(Vt(Ft("Bearer %s"))(e)),t);let r;const o=Uo(n);return r=er.Bind(o,(e=>er.Return(new lr(0,e)))),er.Delay((()=>er.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?er.Return(new lr(1,o.fields[0])):er.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=Uo(n),er.Bind(r,(e=>er.Return(new lr(0,e))))):Wr(0,t)))}))))}))}const vu=e=>function(e,t){try{return ra("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new lr(1,"Given an invalid JSON: "+e.message);throw e}}(ft(2,function(e,t,n){const r=nn(t,new jo(0));return ba(function(e){return null!=e?Do(((e,t)=>new Dt(t[1])),e.Coders):Bo()}(void 0),r,!1,e)}(ts("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],au,(()=>[["Meta",ns(["AccountId",us])],["Data",os(ts("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],su,(()=>[["TfnInformation",rs("Dto.BackendApiModels.Read.TfnInformation",[],iu,(()=>[[["Item",us]],[["Item",ss("Dto.Dto.ExemptionReasonDto",cs,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",os(us)],["ResidencyStatus",ss("Dto.Dto.ResidencyStatusDto",cs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",rs("Dto.Dto.ResidencyStatusV2Dto",[],Za,(()=>[[],[],[["Item",ns(["HomeCountry",os(ts("Dto.Dto.CountryDto",[],Ka,(()=>[["Code",us],["Name",us]])))])]]]))],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ls],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new jo(1))),e);function _u(e,t){return Yr(0,(()=>{const n=bu(e,Lo(new Kr(0),Fo(yu(t))));return er.Delay((()=>er.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?er.Return(new lr(1,r.fields[0])):er.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),er.Return(n)):er.Return(new lr(1,"Unexpected response from backend"))))}))))}))}function xu(e,t){return jr(0,(()=>$r((n=>{const r=n,o=rn(Wa,e.PreviousSurname.Value);return $r((n=>{const i=0|n;return $r((n=>{const s=0|n;return $r((n=>{const a=n,u=(e=>Mn(eu,e))(e.DebtSupportCheckboxGroup),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=yn();else if(1===r.fields[0].tag){const n=0|nu(r.fields[0].fields[0]),o=e.TfnInformation;let i;switch(i=1===o.tag&&o.fields[0]===n?0:1,i){case 0:t=yn();break;case 1:t=vn(new cu(2,new ru(1,n)))}}else t=vn(new cu(2,new ru(0,r.fields[0].fields[0].fields[0])));return zr(0,cr(qa,Ja(e.ResidencyStatusV2)),(n=>Nn(t,Er(_r((()=>Ir(ot(o,e.PreviousSurname)?Sr():Cr(new cu(3,o)),_r((()=>Ir(i!==n?Cr(new cu(4,i)):Sr(),_r((()=>Ir(s!==e.EmploymentBasis?Cr(new cu(6,s)):Sr(),_r((()=>Ir(a!==e.IsTaxFreeThresholdClaimed?Cr(new cu(7,a)):Sr(),_r((()=>ot(Rn(u,{Compare:st}),Rn(e.HasDebtSupport,{Compare:st}))?Sr():Cr(new cu(8,u))))))))))))))))))))}return zr(0,0===r.tag?new lr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new lr(0,new ru(1,nu(r.fields[0].fields[0]))):new lr(0,new ru(0,r.fields[0].fields[0].fields[0])),(e=>vn(new cu(0,{AccountId:t.Meta.AccountId,EmploymentBasis:s,HasDebtSupport:u,IsTaxFreeThresholdClaimed:a,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),Pr("missing is tax-free threshold claimed",rn((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),Pr("missing employment basis",rn(Xa,e.EmploymentBasisRadioButtonGroup.Value)))}),Pr("missing residency status",rn((e=>qa(function(e){switch(e.tag){case 1:return new Oa(1);case 2:return Fa;default:return new Oa(0)}}(e))),e.ResidencyStatusRadioButtonGroup.Value)))}),Pr("missing TFN info",e.TfnInformation.Value))))()}function Su(e,t,n){return Yr(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,s;switch(2===o.tag&&0===o.fields[0].tag?(i=0,s=o.fields[0].fields[0]):i=1,i){case 0:r=Yr(0,(()=>Wr(0,s)));break;case 1:r=_u(t,n)}return er.Delay((()=>er.Bind(r,(r=>{let o,i,s;const a=r;return 1===a.tag?er.Return(new lr(1,a.fields[0])):er.ReturnFrom((o=a.fields[0],s=xu(e,o),i=er.Return(s),er.Delay((()=>er.Bind(i,(e=>{let r,i,s;const a=e;return 1===a.tag?er.Return(new lr(1,a.fields[0])):er.ReturnFrom((r=a.fields[0],_n(r)?Wr(0,o):(i=bu(t,(u=new Zr(1,function(e,t){return JSON.stringify(t,ft(2,null),Jt(e))}(0,function(e,t,n,r){const o=nn(t,new jo(0)),i=nn(void 0,!0);return gu(function(e){return null!=e?Do(((e,t)=>new Dt(t[0])),e.Coders):Bo()}(void 0),o,i,e)}(is(rs("Dto.Commands.TfnDeclarationCommandDto",[],cu,(()=>[[["Item",ns(["AccountId",us],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ls],["PreviousSurname",os(us)],["ResidencyStatus",ss("Dto.Dto.ResidencyStatusDto",cs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",ou()])]],[["Item",ns(["AccountId",us],["EmploymentBasis",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ls],["PreviousSurname",os(us)],["ResidencyStatus",lu()],["TfnInformation",ou()])]],[["Item",ou()]],[["Item",os(us)]],[["Item",ss("Dto.Dto.ResidencyStatusDto",cs,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",lu()]],[["Item",ss("Dto.Dto.EmploymentBasisDto",cs,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ls]],[["Item",is(ss("Dto.Dto.DebtSupportDto",cs,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new jo(1))(r))),l=Lo(new Kr(2),Fo(yu(n))),s=new Jr(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),Vo(new qr(0,"Content-Type","application/json"),s))),er.Delay((()=>er.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?er.Return(new lr(1,r.fields[0])):er.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=vu(t.responseText),er.Return(n)):er.Return(new lr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Cu(e,t,n){kn((n=>{try{n(t)}catch(t){e(t)}}),n)}function Eu(){return yn()}function Tu(e){return vn((t=>{t(e)}))}function ku(e,t,n,r,o){const i=function(e,t,n,r){const o=0|ut(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|ut(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return _r((()=>{return t=i,n=e,br((()=>function(e,t){let n,r=t;return gr((()=>{if(null!=n){const e=n[0];return n[1],e}return hr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Iu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Au{constructor(e){this.state=new Iu(0,an(new Array(lt(st,e,10)),0,lt(st,e,10),null),0)}}function Nu(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 Iu(0,o,n):new Iu(1,o,n,i),Jt(o[r])}}class Mu extends Rt{constructor(e,t,n,r,o,i,s){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=s}}function Ru(e,t){const n=t.init(e),r=n[0],o=new Au(10);let i=!1,s=r;const a=ht(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],s=0|n.fields[2],a=n.fields[0];a[i]=t;const u=(i+1)%a.length|0;e.state=u===s?new Iu(1,(r=s,o=a,Array.from(_r((()=>Ir(Gr(r,o),_r((()=>{return Ir((e=r,t=o,kr((()=>vr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return Jt(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(dr+"\\nParameter name: source")}}),(e=>{Ue(e)}))),_r((()=>Br((e=>Cr(null)),ku(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new Iu(1,a,u,s)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Iu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=Jt(e);for(;null!=n;){const e=Xt(n);try{const n=t.update(e,s),r=n[0];t.setState(r,a),Cu((n=>{t.onError([Vt(Ft("Error in command while handling: %A"))(e),n])}),a,n[1]),s=r}catch(n){t.onError([Vt(Ft("Unable to process the message: %A"))(e),n])}n=Nu(o)}i=!1}}]);t.setState(r,a),Cu((e=>{t.onError(["Error intitializing:",e])}),a,function(e){const t=hn();let n=t;const r=e=>{n=En(((e,t)=>{const n=new fn(t,void 0);return e.tail=n,n}),n,e)};if(Le(e))e.forEach(r);else if(e instanceof fn)kn(r,e);else{const t=ze(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{Ue(t)}}const o=n,i=hn();return o.tail=i,gn(t)}(An([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Eu()}})(),n[1]])))}class Du{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Gu(){return new Du}function Bu(e,t,n,r){Ru(t,function(e,t){return new Mu(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=Jt(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 Xt(o);throw new Error("Elmish program has not initialized")}function Pu(e,t){return function(e,t,n){const r=jn(Gu)[0],o=jn((()=>Bu(e,t,r))),i=o[1];return zn((()=>(function(e){return e.hasDisposedOnce}(r)&&i(Bu(e,t,r)),Hn((()=>{!function(e){const t=e.state;if(null!=t){const e=Xt(t);Ve(e)&&Ue(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),nn(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 Ou(e,t,n){return Pu((()=>function(e,t,n){return new Mu(e,t,(e=>Eu()),n,ft(2,(e=>{const t=ht(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(Jt(t),n)}),ft(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class Fu extends Rt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Lu(){return new Fu(void 0,{Valid:!1})}function Vu(e){return new Fu(e,{Valid:!0})}function Uu(e){switch(e){case"Under18AndBelowTaxThreshold":return new Ha(0);case"Pending":return new Ha(1);case"Pensioner":return new Ha(2);default:return}}function Hu(e){switch(e){case"AustralianResidentForTaxPurposes":return new Pa(0);case"ForeignResidentForTaxPurposes":return new Pa(1);case"WorkingHolidayMaker":return new Pa(2);default:return}}function ju(e){switch(e){case"HELP":return new Da(0);case"VETStudentLoan":return new Da(1);case"FinancialSupplement":return new Da(2);case"StudentStartUpLoan":return new Da(3);case"TradeSupportLoan":return new Da(4);default:return}}function zu(e){switch(e){case"FullTime":return new Va(0);case"PartTime":return new Va(1);case"LabourHire":return new Va(2);case"SuperIncomeStream":return new Va(3);case"Casual":return new Va(4);default:return}}function Wu(e){return h("p",{className:zt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class Yu extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class Ku extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class qu extends Rt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function Zu(e){return new qu(e,{Touched:!1})}function Ju(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new qu(e.fields[0],t.Meta):t:new qu(e.fields[0],{Touched:!0})}function Xu(e){const t=ot(e.Parent.State.Selected,e.Selection)?An(["border","bg-white","border-gray-200","shadow-sm","text-gray-900"]):An(["shadow-none","hover:bg-primary-hover","text-gray-700"]);return h("button",{className:zt(" ",Nn(An(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-2","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new Ku(0,e.Selection))},disabled:ot(e.Parent.Disable,e.Selection),children:Nt(e.Selection)})}function Qu(e){let t;return h("div",ct(An([["className",zt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[Xu({Parent:e,Selection:new Yu(0)}),Xu({Parent:e,Selection:new Yu(1)})],["children",Dn.Children.toArray(Array.from(t))])])))}class el extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class tl extends Rt{constructor(e){super(),this.Selected=e}}function nl(e){let t;const n=Ou((r=e.InitialValue,[new tl(r),Eu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new tl(e.fields[0])}(t);return e(new Fu(r.Selected,{Valid:null!=r.Selected})),[r,Eu()]}(e.OnUpdate,t)));var r;return h("div",ct(An([["className",zt(" ",["space-y-2","mt-2"])],(t=Er(_r((()=>Br((t=>{let r,o;const i=t[0];return Cr(h("label",ct(An([["className",zt(" ",["flex","items-start"])],(r=[h("input",{className:zt(" ",["focus:ring-primary-focus","pt-1","block","mt-1","h-4","w-4","text-primary-base","border-gray-300"]),type:"radio",name:e.Name,id:i,checked:en(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new el(0,i))}}),h("label",ct(An([["className",zt(" ",["ml-3","block","text-sm"])],["for",i],(o=Er(_r((()=>Ir(Cr(h("span",{className:zt(" ",["block","text-gray-900"]),children:t[1]})),_r((()=>{const e=t[2];if(null==e)return Cr(null);{const t=e;return Cr(h("span",{className:zt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Dn.Children.toArray(Array.from(o))])])))],["children",Dn.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Dn.Children.toArray(Array.from(t))])])))}class rl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class ol extends Rt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class il extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function sl(e){let t;const n=Ou(function(e,t){const n=nn(e,"");return[new ol(n,{Touched:!1,Valid:t(n)}),Eu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new ol(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new ol(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Fu(o.Text,{Valid:o.Meta.Valid})),[o,Eu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return h("div",ct(An([["className",zt(" ",Nn(e.AdditionalWrapperClasses,vn("z-10")))],(t=Er(_r((()=>Ir(Cr(h("input",ct(Er(_r((()=>Ir(Cr(["className",zt(" ",Nn(e.AdditionalInputClasses,Nn(An(["block","w-full","pr-10","focus:outline-none","text-sm","rounded-md","border-gray-300"]),Er(_r((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Sr()))))))]),_r((()=>Ir(Cr(["type","text"]),_r((()=>Ir(Cr(["onChange",t=>{const n=t.target.value;o(new rl(0,1===e.InputType.tag?n:Kt(_a,n)))}]),_r((()=>{let t;return Ir(Cr((t=r.Text,["ref",e=>{null==e||ot(e.value,t)||(e.value=t)}])),_r((()=>Ir(Cr(["onBlur",e=>{o(new rl(1))}]),_r((()=>ot(e.InputType,new il(0))?Cr(["inputMode","numeric"]):Sr()))))))}))))))))))))))),_r((()=>!r.Meta.Valid&&r.Meta.Touched?Cr(h("div",{className:zt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Sr())))))),["children",Dn.Children.toArray(Array.from(t))])])))}class al extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class ul extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class ll extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class cl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class $l extends Rt{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function fl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Fu(rn((e=>new ll(1,e)),e.Value),e.Meta)}return new Fu(new ll(0,en(e.TruncatedTfn)),{Valid:!0})}const dl=e=>function(e){return 1!==e.tag}(Ya(e));function hl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:!1})));if(1===r.tag)return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new $l(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new cl(1,new Fu(n.Value,{Valid:dl(t)})))}}return e}function pl(e){let t,n,r,o,i;const s=Ou(function(e){let t,n,r;return[hl(new $l(Zu(null!=e&&1===e.tag&&1===e.fields[0].tag?new Yu(1):new Yu(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new cl(1,Lu()):1===e.tag?(r=e.fields[0],new cl(1,new Fu(r,{Valid:!1}))):new cl(0))),Eu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o,i,s,a,u,l,c,$;return hl(1===e.tag?(n=e.fields[0],r=rn((e=>new ul(0,new Ua(0,e))),n.Value),t.EditingState.tag,new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(1,new Fu(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=rn((e=>new ul(1,e)),on(Uu,o.Value)),t.EditingState.tag,new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(1,new Fu(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new $l(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new cl(0)):new $l(t.YesNoButtonGroup,t.TruncatedTfn,new Fr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new cl(1,Lu())):4===e.tag?new $l(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(s=e.fields[0],s.tag,u=[s.fields[0],t.EditingState],a=1===u[0].tag?1===u[1].tag?(l=u[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new cl(1,Lu())):new cl(1,Lu()):1===u[1].tag?(c=[u[1].fields[0].Value,t.TruncatedTfn],null!=c[0]&&0===c[0].tag?t.EditingState:null!=c[1]?($=c[1],new cl(0)):new cl(1,Lu())):new cl(0),new $l(Ju(s,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,a)))}(t,n);return e(fl(r)),[r,Eu()]}(e.OnUpdate,t,n))),a=s[0],u=s[1],l=null==a.TruncatedTfn?null:h("div",ct(vn((t=[h("button",ct(An([["className",zt(" ",["relative","inline-flex","items-center","space-x-2","px-4","py-2","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=Er(_r((()=>ot(a.EditingState,new cl(0))?Ir(Cr(Bn),_r((()=>Cr(h("span",{children:["Edit"]}))))):Ir(Cr(Pn),_r((()=>Cr(h("span",{children:["Cancel"]})))))))),["children",Dn.Children.toArray(Array.from(n))]),["onClick",e=>{u(new al(3))}]])))],["children",Dn.Children.toArray(Array.from(t))]))));return h("div",ct(An([["className",zt(" ",Vn)],(r=[(o=Er(_r((()=>{const e=a.CurrentAlert;return Cr(null==e?null:h(Hr,{alert:e,hideAlert:()=>{u(new al(4))}}))}))),h("div",{children:Dn.Children.toArray(Array.from(o))})),Wu("Do you have your Tax File Number (TFN)?"),h(Qu,{Disable:void 0,Dispatch:e=>{u(new al(0,e))},State:a.YesNoButtonGroup}),h("div",ct(An([["className",zt(" ",["mt-4"])],(i=Er(_r((()=>{let e,t,n;const r=a.YesNoButtonGroup.Selected;if(null==r)return Cr(null);if(1===r.tag)return Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Ha(1),"My TFN is pending",void 0],[new Ha(0),"I'm under 18 and don't have a TFN",void 0],[new Ha(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(t=fl(a).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Nt(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{u(new al(2,e))},ValueLabelPairs:e})));{const e=[a.TruncatedTfn,a.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return Ir(Cr(Wu("Enter your TFN")),_r((()=>{let e,t,r;return Cr(h("div",ct(An([["className",zt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[h("div",ct(An([["className","relative flex items-stretch flex-grow"],(t=[h("input",ct(An([["className",zt(" ",["focus:ring-primary-focus","focus:border-primary-focus","block","w-full","rounded-none","rounded-l-md","pl-4","text-sm","border","border-gray-300","text-gray-500"])],["disabled",!0],(r=`*** *** *${n}`,["ref",e=>{null==e||ot(e.value,r)||(e.value=r)}])])))],["children",Dn.Children.toArray(Array.from(t))])]))),l],["children",Dn.Children.toArray(Array.from(e))])]))))})));case 1:return Ir(Cr(Wu("Enter your TFN")),_r((()=>{let e,t;return Cr(h("div",ct(An([["className",zt(" ",["mt-1","flex"])],(e=[h("div",ct(An([["className",zt(" ",["relative","flex","items-stretch","flex-grow"])],(t=[h(sl,{AdditionalInputClasses:Er(_r((()=>Ir(Cr("focus:ring-primary-focus"),_r((()=>Ir(Cr("focus:border-primary-focus"),_r((()=>Ir(Cr("block"),_r((()=>Ir(Cr("w-full"),_r((()=>null==a.TruncatedTfn?Cr("rounded-md"):Cr("rounded-none rounded-l-md")))))))))))))))),AdditionalWrapperClasses:An(["block","w-full"]),InitialValue:void 0,InputType:new il(0),InvalidFeedback:"That isn’t a valid Tax File Number",OnUpdate:e=>{u(new al(1,e))},Validator:dl}),l],["children",Dn.Children.toArray(Array.from(t))])])))],["children",Dn.Children.toArray(Array.from(e))])]))))})))}}}))),["children",Dn.Children.toArray(Array.from(i))])])))],["children",Dn.Children.toArray(Array.from(r))])])))}class ml extends Mt{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 wl extends Rt{constructor(e,t,n,r,o,i,s,a){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatusRadioButtonGroup=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=s,this.EmploymentBasisRadioButtonGroup=a}}function gl(e,t){return jr(0,(()=>{let n;return $r((n=>$r((r=>{const o=function(e){switch(e.tag){case 1:return new Pa(1);case 2:return new Pa(2);default:return new Pa(0)}}(r),i=t.IsTaxFreeThresholdClaimed?new Yu(0):new Yu(1);return $r((r=>zr(0,function(e){switch(e){case 0:return new lr(0,new Va(0));case 1:return new lr(0,new Va(1));case 2:return new lr(0,new Va(2));case 3:return new lr(0,new Va(3));case 4:return new lr(0,new Va(4));default:return new lr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(s=>new wl(e.PreExistingTfnDec,e.CurrentAlert,Vu(n),Vu(rn(za,t.PreviousSurname)),Vu(o),Zu(i),r,Vu(s))))),tu(t.HasDebtSupport))}),Ja(t.ResidencyStatusV2))),(n=t.TfnInformation,1===n.tag?cr((e=>new ll(1,new ul(1,e))),function(e){switch(e){case 0:return new lr(0,new Ha(0));case 1:return new lr(0,new Ha(1));case 2:return new lr(0,new Ha(2));default:return new lr(1,"Invalid ExemptionReason")}}(n.fields[0])):new lr(0,new ll(0,n.fields[0]))))}))()}class yl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function bl(){const e=Yt(document.URL,["/"],null,0),t=ln("web",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),n=ln("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:Xe}),r=[Qt(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 lr(0,new yl(2,r[0]));case 1:return new lr(0,new yl(0));case 2:return new lr(0,new yl(1));case 3:return new lr(1,"Could not determine the embed mode")}}class vl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function _l(){let e;const t=bl();var n;0===t.tag&&(0===t.fields[0].tag?Rr((e=>{window.parent.location.href=e}),tn((n=new vl(0),Qt(sessionStorage.getItem(function(e){return Nt(e)}(n)))))):1===t.fields[0].tag?Rr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),tn(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function xl(e,t){switch(e.tag){case 1:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 2:{const n=on(Hu,e.fields[0].Value);return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,new Fu(n,{Valid:null!=n}),t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),null==n?Eu():1===n.tag?Tu(new ml(3,new Ku(1,new Yu(1),!1))):2===n.tag?Tu(new ml(3,new Ku(1,new Yu(1),!0))):Tu(new ml(3,new Ku(1,new Yu(0),!1)))]}case 3:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,Ju(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 4:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Eu()];case 5:{const n=on(zu,e.fields[0].Value);return[new wl(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Fu(n,{Valid:null!=n})),Eu()]}case 6:{const n=e.fields[0],r=new wl(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Tu(new ml(7,new Fr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=Qt(document.getElementById("external-loading-page-container"));Rr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),tn(n))}();const i=Tu(new ml(10));let s,a;switch(2===n.tag?1===n.fields[0].tag?s=1:(s=0,a=n.fields[0].fields[0]):s=3===n.tag?1:2,s){case 0:{const e=rn((e=>gl(r,e)),a.Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}case 1:return[r,o];case 2:return[r,i]}}case 7:return[new wl(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 8:return[new wl(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 9:return[new wl(new ar(2,new lr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()];case 10:return function(){const e=bl();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"},"*",Jt(yn()))}(),[t,Eu()];default:return[new wl(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatusRadioButtonGroup,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Eu()]}}class Sl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Cl extends Rt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function El(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Tl(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:!1})):1===t.tag?new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:!0})):new Cl(e.YesNoButtonGroup,new Fu(e.Data.Value,{Valid:nn(rn((e=>El(e.fields[0])),e.Data.Value),!1)}))}function kl(e){let t;const n=Ou((r=e.InitialValue,[Tl(new Cl(Zu(new Yu(null!=r?0:1)),new Fu(r,{Valid:!1}))),Eu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Tl(1===e.tag?(n=e.fields[0],new Cl(t.YesNoButtonGroup,new Fu(rn((e=>new ja(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Fu(void 0,t.Data.Meta):t.Data,new Cl(Ju(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Eu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return h("div",ct(An([["className",zt(" ",Vn)],(t=Er(_r((()=>Ir(Cr(Wu("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),_r((()=>Ir(Cr(h(Qu,{Disable:void 0,Dispatch:e=>{i(new Sl(0,e))},State:o.YesNoButtonGroup})),_r((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Cr(h("div",ct(An([["className",zt(" ",["mt-4"])],(e=[Wu("Enter your previous surname"),h(sl,{AdditionalInputClasses:yn(),AdditionalWrapperClasses:vn("mt-1"),InitialValue:rn(Wa,o.Data.Value),InputType:new il(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Sl(1,e))},Validator:El})],["children",Dn.Children.toArray(Array.from(e))])]))));case 1:return Cr(null)}}))))))))),["children",Dn.Children.toArray(Array.from(t))])])))}const Il=An(["mt-7","bg-white","px-3.5","border","border-gray-200","rounded-lg","shadow-sm"]),Al=An(["group","relative","w-full","py-4","flex","justify-between","items-center","text-left"]),Nl=An(["text-sm","text-primary-base","leading-3","font-medium"]),Ml=An(["ml-6","flex","items-center"]),Rl=An(["-mt-2","pb-4","prose","prose-sm","text-gray-500","text-sm"]);function Dl(e){let t,n,r,o;const i=e.content,s=e.title,a=qn(!0),u=a[0];return h("div",ct(An([["className",zt(" ",Il)],(t=[(n=vn(h("button",ct(An([["type","button"],["className",zt(" ",Al)],["aria-expanded",u],["onClick",e=>{a[1](!u)}],(r=[h("span",{className:zt(" ",Nl),children:s}),h("span",ct(An([["className",zt(" ",Ml)],(o=Er(_r((()=>Cr(u?Fn:On)))),["children",Dn.Children.toArray(Array.from(o))])])))],["children",Dn.Children.toArray(Array.from(r))])])))),h("h3",{children:Dn.Children.toArray(Array.from(n))})),h("div",{className:zt(" ",Nn(Rl,Er(_r((()=>u?Cr("hidden"):Sr()))))),children:Dn.Children.toArray([i])})],["children",Dn.Children.toArray(Array.from(t))])])))}class Gl extends Mt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class Bl extends Rt{constructor(e){super(),this.Selected=e}}function Pl(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(mn(o))return;if(e(wn(o)))return r;t=r+1,n=gn(o)}})(0,t)}((t=>e===t),t.Selected)}function Ol(e,t,n){const r=function(e,t){const n=e.fields[0];return Pl(n,t)?new Bl(function(e,t){const n=hn(),r=En(((t,n)=>{if(e(n)){const e=new fn(n,void 0);return t.tail=e,e}return t}),n,t),o=hn();return r.tail=o,gn(n)}((e=>n!==e),t.Selected)):new Bl(Nn(vn(n),t.Selected))}(t,n);return e(r.Selected),[r,Eu()]}function Fl(e){let t;const n=Ou((r=e.InitialValue,[new Bl(r),Eu()]),((t,n)=>Ol(e.OnUpdate,t,n)));var r;return h("fieldset",ct(An([["className",zt(" ",["space-y-2","mt-2"])],(t=Er(_r((()=>Br((e=>{let t,r,o;const i=e[0];return Cr(h("div",ct(An([["className",zt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new Gl(0,i))}],(t=[h("div",ct(An([["className",zt(" ",["flex","items-center","h-5"])],(r=[h("input",{className:zt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:Pl(i,n[0])})],["children",Dn.Children.toArray(Array.from(r))])]))),h("div",ct(An([["className",zt(" ",["ml-3","text-sm"])],(o=[h("label",{className:zt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Dn.Children.toArray(Array.from(o))])])))],["children",Dn.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Dn.Children.toArray(Array.from(t))])])))}function Ll(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatusRadioButtonGroup.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ot(t,new ar(1))}function Vl(){return h("hr",{className:zt(" ",["my-8"])})}const Ul=h("div",ct(An([["className",zt(" ",["space-y-2"])],(()=>{const e=[h("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."]}),h("p",{children:["Select working holday 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."]}),h("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",Dn.Children.toArray(Array.from(e))]})()]))),Hl=h("div",ct(An([["className",zt(" ",["space-y-2"])],(()=>{const e=[h("p",{children:["Answer yes if you are an Australian resident for tax purposes and this is your main job. It will mean that you pay no tax on the first $18,200 of your income. This is called the tax-free threshold."]}),h("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),h("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",Dn.Children.toArray(Array.from(e))]})()])));function jl(e){const t=e.backendUrl,n=e.accessToken,r=Ou([new wl(new ar(0),void 0,Lu(),Vu(void 0),Vu(new Pa(0)),Zu(new Yu(0)),yn(),Vu(new Va(0))),Eu()],xl),o=r[0],i=r[1];Wn(ur((()=>_u(n,t)),(e=>{i(new ml(6,e))})),[]);const s=qn(new ar(0)),a=s[0],u=ur((()=>function(e,t,n,r){return function(e,t){return er.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag){t(n.fields[0])}return n}(0,e,t)}(e,t);return er.Return(n)}))}((e=>{r(new Fr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return er.Bind(t,(t=>{const n=function(e,t){return function(e,t,n){if(1===n.tag);else{t(n.fields[0])}return n}(0,e,t)}(e,t);return er.Return(n)}))}((e=>{r(new Fr(0,"Your tax declaration has been saved."))}),Su(e,t,n)))}(o,n,t,(e=>{i(new ml(7,e))}))),(e=>{let t,n;s[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&(sr(er.Delay((()=>er.Bind(ir(400),(()=>(_l(),er.Zero())))))),i(new ml(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return h("div",{children:["Please wait..."]});default:{const e=Er(_r((()=>{let e,t;return Ir((e=o.CurrentAlert,null==e?Cr(null):(t=e,Cr(h(Hr,{alert:t,hideAlert:()=>{i(new ml(8))}})))),_r((()=>Ir(Cr(h("h3",{className:zt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),_r((()=>Ir(Cr(h(pl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new ml(0,e))}})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(h(kl,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new ml(1,e))}})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("Are you an Australian resident for tax purposes or a working holiday maker?")),_r((()=>{let e;return Ir(Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Pa(0),"Australian resident for tax purposes",void 0],[new Pa(1),"Foreign resident",void 0],[new Pa(2),"Working holiday maker",void 0]])),{InitialValue:rn(Nt,o.ResidencyStatusRadioButtonGroup.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new ml(2,e))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(h(Dl,{title:"About residency",content:Ul})),_r((()=>Ir(Cr(Vl()),_r((()=>{let e,t;return Ir(Cr(h("div",ct(An([["className",zt(" ",Vn)],(e=[Wu("Would you like to claim the tax-free threshold from this employer?"),h(Qu,{Disable:(t=o.ResidencyStatusRadioButtonGroup.Value,null!=t&&2===t.tag?new Yu(0):void 0),Dispatch:e=>{i(new ml(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Dn.Children.toArray(Array.from(e))])])))),_r((()=>Ir(Cr(h(Dl,{title:"About the tax-free threshold",content:Hl})),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("Do you have any of the following outstanding debts or loans?")),_r((()=>{let e;return Ir(Cr(h(Fl,(e=Mn((e=>[Nt(e[0]),e[1]]),An([[new Da(0),"Higher Education Loan Program (HELP)"],[new Da(1),"VET Student Loan (VSL)"],[new Da(2),"Financial Supplement (FS)"],[new Da(3),"Student Start-up Loan (SSL)"],[new Da(4),"Trade Support Loan (TSL)"]])),{InitialValue:Mn(Nt,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new ml(4,function(e,t){const n=hn(),r=En(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new fn(Xt(r),void 0);return t.tail=e,e}}),n,t),o=hn();return r.tail=o,gn(n)}(ju,e)))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(Vl()),_r((()=>Ir(Cr(Wu("On what basis are you paid?")),_r((()=>{let e;return Ir(Cr(h(nl,(e=Mn((e=>[Nt(e[0]),e[1],e[2]]),An([[new Va(0),"Full-time",void 0],[new Va(1),"Part-time",void 0],[new Va(2),"Labour Hire",void 0],[new Va(3),"Superannuation or annuity income stream",void 0],[new Va(4),"Casual",void 0]])),{InitialValue:rn(Nt,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new ml(5,e))},ValueLabelPairs:e}))),_r((()=>Ir(Cr(Vl()),_r((()=>{let e;return Cr(h("div",ct(An([["className",zt(" ",["text-center"])],(e=[h("button",{className:zt(" ",["w-full","max-w-320","px-10","py-2","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"]),type:"button",disabled:!Ll(o,a),onClick:e=>{Ll(o,a)&&u()},children:"Continue"}),h("p",{className:zt(" ",["mt-8","sm:mt-20","text-xs","text-gray-500","leading-4","font-normal"]),children:"Workplace onboarding powered by Flare"})],["children",Dn.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))})))))))))))))))))))))})));return h("form",{children:Dn.Children.toArray(Array.from(e))})}}}function zl(){return(zl=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 Wl(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 O(t,n)}function Yl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(Wl,zl({},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,s=t.attributes,a=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[Kl(s[i].name)]=s[i].value);for(i=a.length;i--;){var u=e(a[i],null),l=a[i].slot;l?o[l]=h(Jl,{name:l},u):r[i]=u}var c=n?h(Jl,null,r):r;return h(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?P:B)(this._vdom,this._root)}function Kl(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ql(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Kl(e)]=n,this._vdom=O(this._vdom,r),B(this._vdom,this._root)}}function Zl(){B(this._vdom=null,this._root)}function Jl(e,t){var n=this;return h("slot",zl({},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 Xl(e){let t;return h("div",ct(An([["className",zt(" ",["font-inter","max-w-560","mx-auto"])],(t=[h("style",{children:[Gn]}),h(jl,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Dn.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=Yl,o.prototype.attributeChangedCallback=ql,o.prototype.disconnectedCallback=Zl,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=>h(Xl,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(893),n(118)})();