@flarehr/tfn-declaration-app 0.1.555 → 0.1.560
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)),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)})();
|
|
1
|
+
(()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),a=n.n(i),s=n(667),u=n.n(s),l=new URL(n(578),n.b),c=new URL(n(254),n.b),f=new URL(n(184),n.b),d=new URL(n(421),n.b),$=a()(o()),p=u()(l),h=u()(c),m=u()(f),w=u()(d);$.push([e.id,'/*! tailwindcss v3.1.6 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{color-adjust:exact;background-image:url('+p+");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{color-adjust:unset;background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{color-adjust:exact;--tw-shadow:0 0 #0000;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("+h+")}[type=radio]:checked{background-image:url("+m+")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("+w+");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::-webkit-backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.right-0{right:0}.z-50{z-index:50}.z-10{z-index:10}.mx-auto{margin-left:auto;margin-right:auto}.my-8{margin-bottom:2rem;margin-top:2rem}.my-4{margin-bottom:1rem;margin-top:1rem}.-mx-1\\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1\\.5{margin-bottom:-.375rem;margin-top:-.375rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-my-1{margin-bottom:-.25rem;margin-top:-.25rem}.my-3{margin-bottom:.75rem;margin-top:.75rem}.mt-5{margin-top:1.25rem}.mt-4{margin-top:1rem}.mb-8{margin-bottom:2rem}.mt-8{margin-top:2rem}.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}.max-h-60{max-height:15rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-full{width:100%}.w-4{width:1rem}.w-1\\/2{width:50%}.w-auto{width:auto}.max-w-560{max-width:560px}.max-w-320{max-width:320px}.flex-grow{flex-grow:1}.cursor-default{cursor:default}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.125rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.125rem*var(--tw-space-x-reverse))}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(0px*(1 - var(--tw-space-x-reverse)));margin-right:calc(0px*var(--tw-space-x-reverse))}.self-start{align-self:flex-start}.overflow-auto{overflow:auto}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis}.truncate,.whitespace-nowrap{white-space:nowrap}.rounded-md{border-radius:.375rem}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-none{border-radius:0}.rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.border{border-width:1px}.border-transparent{border-color:transparent}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.bg-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{padding-left:.75rem;padding-right:.75rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-0{padding-left:0;padding-right:0}.py-1{padding-bottom:.25rem;padding-top:.25rem}.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-2{padding-left:.5rem}.pr-4{padding-right:1rem}.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-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300::placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow-none{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.shadow-lg,.shadow-none{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-black{--tw-ring-opacity:1;--tw-ring-color:rgb(0 0 0/var(--tw-ring-opacity))}.ring-opacity-5{--tw-ring-opacity:0.05}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-red-100:hover{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity))}.hover\\:bg-green-100:hover{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity))}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity))}.hover\\:bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:z-20:focus{z-index:20}.focus\\:z-10:focus{z-index:10}.focus\\:border-primary-focus:focus{border-color:var(--fl-color-primary-focus)}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-0:focus,.focus\\:ring-2:focus{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-0:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color)}.focus\\:ring-1:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset:inset}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-red-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(220 38 38/var(--tw-ring-opacity))}.focus\\:ring-green-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(22 163 74/var(--tw-ring-opacity))}.focus\\:ring-blue-600:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(37 99 235/var(--tw-ring-opacity))}.focus\\:ring-red-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(239 68 68/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus\\:ring-offset-red-50:focus{--tw-ring-offset-color:#fef2f2}.focus\\:ring-offset-green-50:focus{--tw-ring-offset-color:#f0fdf4}.focus\\:ring-offset-blue-50:focus{--tw-ring-offset-color:#eff6ff}.focus-visible\\:outline-primary-hover:focus-visible{outline-color:var(--fl-color-primary-hover)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-25:disabled{opacity:.25}.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}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);const g=$},645:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},667:e=>{e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{e.exports=function(e){return e[1]}},495:(e,t,n)=>{var r,o,i,a,s,u,l={},c=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(e,t){for(var n in t)e[n]=t[n];return e}function $(e){var t=e.parentNode;t&&t.removeChild(e)}function p(e,t,n){var o,i,a,s={};for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===s[a]&&(s[a]=e.defaultProps[a]);return h(e,s,o,i,null)}function h(e,t,n,r,a){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(s),s}function m(e){return e.children}function w(e,t){this.props=e,this.context=t}function g(e,t){if(null==t)return e.__?g(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?g(e):null}function y(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return y(e)}}function b(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!v.__r++||s!==o.debounceRendering)&&((s=o.debounceRendering)||setTimeout)(v)}function v(){for(var e;v.__r=a.length;)e=a.sort((function(e,t){return e.__v.__b-t.__v.__b})),a=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,A(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?g(o):i,o.__h),N(n,o),o.__e!=i&&y(o)))}))}function _(e,t,n,r,o,i,a,s,u,f){var d,$,p,w,y,b,v,_=r&&r.__k||c,S=_.length;for(n.__k=[],d=0;d<t.length;d++)if(null!=(w=n.__k[d]=null==(w=t[d])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?h(null,w,null,null,w):Array.isArray(w)?h(m,{children:w},null,null,null):w.__b>0?h(w.type,w.props,w.key,null,w.__v):w)){if(w.__=n,w.__b=n.__b+1,null===(p=_[d])||p&&w.key==p.key&&w.type===p.type)_[d]=void 0;else for($=0;$<S;$++){if((p=_[$])&&w.key==p.key&&w.type===p.type){_[$]=void 0;break}p=null}A(e,w,p=p||l,o,i,a,s,u,f),y=w.__e,($=w.ref)&&p.ref!=$&&(v||(v=[]),p.ref&&v.push(p.ref,null,w),v.push($,w.__c||y,w)),null!=y?(null==b&&(b=y),"function"==typeof w.type&&w.__k===p.__k?w.__d=u=x(w,u,e):u=C(e,w,p,_,y,u),"function"==typeof n.type&&(n.__d=u)):u&&p.__e==u&&u.parentNode!=e&&(u=g(p))}for(n.__e=b,d=S;d--;)null!=_[d]&&("function"==typeof n.type&&null!=_[d].__e&&_[d].__e==n.__d&&(n.__d=g(r,d+1)),O(_[d],_[d]));if(v)for(d=0;d<v.length;d++)M(v[d],v[++d],v[++d])}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 a,s,u;if(void 0!==t.__d)a=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),a=null;else{for(s=i,u=0;(s=s.nextSibling)&&u<r.length;u+=2)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function E(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||f.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,a,s,u,l){var c,f,$,p,h,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,a=[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=(f=t.__c=n.__c).__=f.__E:("prototype"in T&&T.prototype.render?t.__c=f=new T(b,x):(t.__c=f=new w(b,x),f.constructor=T,f.render=D),v&&v.sub(f),f.props=b,f.state||(f.state={}),f.context=x,f.__n=r,$=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=T.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,T.getDerivedStateFromProps(b,f.__s))),p=f.props,h=f.state,$)null==T.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==T.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,x)||t.__v===n.__v){f.props=b,f.state=f.__s,t.__v!==n.__v&&(f.__d=!1),f.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),f.__h.length&&s.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,h,g)}))}if(f.context=x,f.props=b,f.__v=t,f.__P=e,S=o.__r,C=0,"prototype"in T&&T.prototype.render)f.state=f.__s,f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context);else do{f.__d=!1,S&&S(t),c=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++C<25);f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),$||null==f.getSnapshotBeforeUpdate||(g=f.getSnapshotBeforeUpdate(p,h)),E=null!=c&&c.type===m&&null==c.key?c.props.children:c,_(e,Array.isArray(E)?E:[E],t,n,r,i,a,s,u,l),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=R(n.__e,t,n,r,i,a,s,l);(c=o.diffed)&&c(t)}catch(e){t.__v=null,(l||null!=a)&&(t.__e=u,t.__h=!!l,a[a.indexOf(u)]=null),o.__e(e,t,n)}}function N(e,t){o.__c&&o.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){o.__e(e,t.__v)}}))}function R(e,t,n,o,i,a,s,u){var c,f,d,p=n.props,h=t.props,m=t.type,w=0;if("svg"===m&&(i=!0),null!=a)for(;w<a.length;w++)if((c=a[w])&&"setAttribute"in c==!!m&&(m?c.localName===m:3===c.nodeType)){e=c,a[w]=null;break}if(null==e){if(null===m)return document.createTextNode(h);e=i?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,h.is&&h),a=null,u=!1}if(null===m)p===h||u&&e.data===h||(e.data=h);else{if(a=a&&r.call(e.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,!u){if(null!=a)for(p={},w=0;w<e.attributes.length;w++)p[e.attributes[w].name]=e.attributes[w].value;(d||f)&&(d&&(f&&d.__html==f.__html||d.__html===e.innerHTML)||(e.innerHTML=d&&d.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||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,h,p,i,u),d)t.__k=[];else if(w=t.props.children,_(e,Array.isArray(w)?w:[w],t,n,o,i&&"foreignObject"!==m,a,s,a?a[0]:n.__k&&g(n,0),u),null!=a)for(w=a.length;w--;)null!=a[w]&&$(a[w]);u||("value"in h&&void 0!==(w=h.value)&&(w!==e.value||"progress"===m&&!w||"option"===m&&w!==p.value)&&T(e,"value",w,p.value,!1),"checked"in h&&void 0!==(w=h.checked)&&w!==e.checked&&T(e,"checked",w,p.checked,!1))}return e}function M(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){o.__e(e,n)}}function O(e,t,n){var r,i;if(o.unmount&&o.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||M(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){o.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&O(r[i],t,"function"!=typeof e.type);n||null==e.__e||$(e.__e),e.__e=e.__d=void 0}function D(e,t,n){return this.constructor(e,n)}function P(e,t,n){var i,a,s;o.__&&o.__(e,t),a=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],A(t,e=(!i&&n||t).__k=p(m,null,[e]),a||l,l,void 0!==t.ownerSVGElement,!i&&n?[n]:a?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:a?a.__e:t.firstChild,i),N(s,e)}function F(e,t){P(e,t,F)}function B(e,t,n){var o,i,a,s=d({},e.props);for(a in t)"key"==a?o=t[a]:"ref"==a?i=t[a]:s[a]=t[a];return arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),h(e.type,s,o||e.key,i||e.ref,null)}function G(e,t){var n={__c:t="__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(b)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=c.slice,o={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},i=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof e&&(e=e(d({},n),this.props)),e&&d(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),b(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),b(this))},w.prototype.render=m,a=[],v.__r=0,u=0;var L,V,H,U,j=0,z=[],W=[],Y=o.__b,q=o.__r,K=o.diffed,Z=o.__c,J=o.unmount;function X(e,t){o.__h&&o.__h(V,e,j||t),j=0;var n=V.__H||(V.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:W}),n.__[e]}function Q(e){return j=1,ee(de,e)}function ee(e,t,n){var r=X(L++,2);return r.t=e,r.__c||(r.__=[n?n(t):de(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=V),r.__}function te(e,t){var n=X(L++,3);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__H.__h.push(n))}function ne(e,t){var n=X(L++,4);!o.__s&&fe(n.__H,t)&&(n.__=e,n.u=t,V.__h.push(n))}function re(e){return j=5,oe((function(){return{current:e}}),[])}function oe(e,t){var n=X(L++,7);return fe(n.__H,t)?(n.__V=e(),n.u=t,n.__h=e,n.__V):n.__}function ie(e,t){return j=8,oe((function(){return e}),t)}function ae(e){var t=V.context[e.__c],n=X(L++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(V)),t.props.value):e.__}function se(){for(var e;e=z.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],o.__e(t,e.__v)}}o.__b=function(e){V=null,Y&&Y(e)},o.__r=function(e){q&&q(e),L=0;var t=(V=e.__c).__H;t&&(H===V?(t.__h=[],V.__h=[],t.__.forEach((function(e){e.__V=W,e.u=void 0}))):(t.__h.forEach(le),t.__h.forEach(ce),t.__h=[])),H=V},o.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==z.push(t)&&U===o.requestAnimationFrame||((U=o.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ue&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ue&&(t=requestAnimationFrame(n))})(se)),t.__H.__.forEach((function(e){e.u&&(e.__H=e.u),e.__V!==W&&(e.__=e.__V),e.u=void 0,e.__V=W}))),H=V=null},o.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],o.__e(n,e.__v)}})),Z&&Z(e,t)},o.unmount=function(e){J&&J(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&o.__e(t,n.__v))};var ue="function"==typeof requestAnimationFrame;function le(e){var t=V,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),V=t}function ce(e){var t=V;e.__c=e.__(),V=t}function fe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function de(e,t){return"function"==typeof t?t(e):t}function $e(e,t){for(var n in t)e[n]=t[n];return e}function pe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function he(e){this.props=e}(he.prototype=new w).isPureReactComponent=!0,he.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)};var me=o.__b;o.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var we="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ge(e){function t(t){var n=$e({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=we,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ye=function(e,t){return null==e?null:S(S(e).map(t))},be={map:ye,forEach:ye,count:function(e){return e?S(e).length:0},only:function(e){var t=S(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:S},ve=o.__e;o.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);ve(e,t,n,r)};var _e=o.unmount;function xe(){this.__u=0,this.t=null,this.__b=null}function Se(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ce(){this.u=null,this.o=null}o.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),_e&&_e(e)},(xe.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Se(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},u=!0===t.__h;r.__u++||u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},xe.prototype.componentWillUnmount=function(){this.t=[]},xe.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=$e({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&p(m,null,e.fallback);return o&&(o.__h=null),[p(m,null,t.__a?null:e.children),o]};var Ee=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 Te(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var t=this,n=e.i;t.componentWillUnmount=function(){P(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),P(p(Te,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ce.prototype=new w).__a=function(e){var t=this,n=Se(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ee(t,e,r)):o()};n?n(i):i()}},Ce.prototype.render=function(e){this.u=null,this.o=new Map;var t=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ce.prototype.componentDidUpdate=Ce.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ee(e,n,t)}))};var Ie="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ae=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|shape|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ne="undefined"!=typeof document,Re=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Me=o.event;function Oe(){}function De(){return this.cancelBubble}function Pe(){return this.defaultPrevented}o.event=function(e){return Me&&(e=Me(e)),e.persist=Oe,e.isPropagationStopped=De,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Fe,Be={configurable:!0,get:function(){return this.class}},Ge=o.vnode;o.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var a=n[i];Ne&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Re(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ae.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=S(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=S(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Be.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Be))}e.$$typeof=Ie,Ge&&Ge(e)};var Le=o.__r;o.__r=function(e){Le&&Le(e),Fe=e.__c};var Ve={ReactCurrentDispatcher:{current:{readContext:function(e){return Fe.__n[e.__c].props.value}}}};function He(e){return!!e&&e.$$typeof===Ie}function Ue(e){return He(e)?B.apply(null,arguments):e}function je(e){e()}const ze={useState:Q,useReducer:ee,useEffect:te,useLayoutEffect:ne,useInsertionEffect:ne,useTransition:function(){return[!1,je]},useDeferredValue:function(e){return e},useSyncExternalStore:function(e,t){var n=Q(t),r=n[0],o=n[1];return te((function(){return e((function(){o(t())}))}),[e,t]),r},startTransition:je,useRef:re,useImperativeHandle:function(e,t,n){j=6,ne((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))},useMemo:oe,useCallback:ie,useContext:ae,useDebugValue:function(e,t){o.useDebugValue&&o.useDebugValue(t?t(e):e)},version:"17.0.2",Children:be,render:function(e,t,n){return null==t.__k&&(t.textContent=""),P(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,t){var n=p(ke,{__v:e,i:t});return n.containerInfo=t,n},createElement:p,createContext:G,createFactory:function(e){return p.bind(null,e)},cloneElement:Ue,createRef:function(){return{current:null}},Fragment:m,isValidElement:He,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:w,PureComponent:he,memo:function(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:ge,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:m,Suspense:xe,SuspenseList:Ce,lazy:function(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return p(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ve};function We(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Ye(e){return null!=e&&"function"==typeof e.Dispose}function qe(e){Ye(e)&&e.Dispose()}function Ke(e,t){var n,r;return(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===(null===(r=Object.getPrototypeOf(t))||void 0===r?void 0:r.constructor)}class Ze{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Je(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new Ze(e[Symbol.iterator]())}function Xe(e){return{[Symbol.iterator](){return this},next(){const t=e["System.Collections.IEnumerator.MoveNext"]();return{done:!t,value:t?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}class Qe{constructor(e){this.factory=e,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function et(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function tt(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function nt(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class rt{static id(e){return rt.idMap.has(e)||rt.idMap.set(e,++rt.count),rt.idMap.get(e)}}function ot(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function it(e){return 2654435761*e|0}function at(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function st(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return it(e);case"string":return ot(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(We(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=st(e[r]);return at(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if((null===(t=Object.getPrototypeOf(e))||void 0===t?void 0:t.constructor)===Object){const t=Object.values(e).map((e=>st(e)));return at(t)}return it(rt.id(e))}}function ut(e,t,n){if(null==e)return null==t;if(null==t)return!1;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function lt(e,t){return ut(e,t,ct)}function ct(e,t){var n;return e===t||(null==e?null==t:null!=t&&"object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(t):We(e)?We(t)&<(e,t):e instanceof Date?t instanceof Date&&0===ft(e,t):(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object&&function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!ct(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function ft(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+tt(e),r=t.getTime()+tt(t)),n===r?0:n<r?-1:1}function dt(e,t){return e===t?0:e<t?-1:1}function $t(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,pt)}function pt(e,t){var n;return e===t?0:null==e?null==t?0:-1:null==t?1:"object"!=typeof e?e<t?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(t):We(e)?We(t)?$t(e,t):-1:e instanceof Date?t instanceof Date?ft(e,t):-1:(null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor)===Object?function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const a=n[o];if(a!==r[o])return a<r[o]?-1:1;if(i=pt(e[a],t[a]),0!==i)return i}return 0}(e,t):-1}function ht(e,t,n){return e(t,n)>0?t:n}function mt(e){const t={};for(const n of e)t[n[0]]=n[1];return t}rt.idMap=new WeakMap,rt.count=0;const wt=Symbol("curried");function gt(e,t){if(null==t||t.length>1)return t;const n=(...n)=>{let r=t;for(let t=0;t<e;t++)r=r(n[t]);return r};return n[wt]=t,n}function yt(e,t,n){return r=>1===t?n(...e.concat([r])):yt(e.concat([r]),t-1,n)}function bt(e,t,n){if(null!=t){if(wt in t){t=t[wt];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return yt(n,e,t)}}function vt(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+et(~~(e/36e5),2)+":"+et(n,2)}function _t(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function xt(e,t,n){return t.replace(/(\w)\1*/g,(t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r}))}function St(e,t,n){return null!=e.offset?function(e,t){var n,r,o;const i=new Date(e.getTime()+(null!==(n=e.offset)&&void 0!==n?n:0));if("string"!=typeof t)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+vt(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return xt(i,t,!0);switch(t){case"D":case"d":return _t(i,"first");case"T":case"t":return _t(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+vt(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,t):function(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return xt(e,t,n);switch(t){case"D":case"d":return n?_t(e,"first"):e.toLocaleDateString();case"T":case"t":return n?_t(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return et(e.getFullYear(),4)+"-"+et(e.getMonth()+1,2)+"-"+et(e.getDate(),2)+"T"+et(e.getHours(),2)+":"+et(e.getMinutes(),2)+":"+et(e.getSeconds(),2)+"."+et(e.getMilliseconds(),3)+(t?vt(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Ct(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Et(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||t(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,t=0;if(null!=o[2]){const e=o[2].split(":");t=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(t+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,t-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}n=new Date(e.getTime()+1e3*t),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}else t();isNaN(n.getTime())&&t()}return[n,r]}function Tt(e,t){try{return t.contents=function(e,t=!1){const[n,r]=Et(e),o=null!=r?t&&"Z"===r?1:2:0;return Ct(n.getTime(),o)}(e),!0}catch(e){return!1}}const kt=Symbol("numeric");function It(e){return"number"==typeof e||(null==e?void 0:e[kt])}function At(e,t){return"number"==typeof e?e*t:e[kt]().multiply(t)}function Nt(e,t){return"number"==typeof e?e.toFixed(t):e[kt]().toFixed(t)}function Rt(e,t){return"number"==typeof e?e.toPrecision(t):e[kt]().toPrecision(t)}function Mt(e,t){return"number"==typeof e?e.toExponential(t):e[kt]().toExponential(t)}function Ot(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[kt]().toHex()}function Dt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Pt(e,t,n=0){if(null==t)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;null!=(o=e.exec(t));)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Ft(e,t=0){var n,r;if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let t=0,n="[";for(const r of e){if(0===t)n+=Ft(r);else{if(100===t){n+="; ...";break}n+="; "+Ft(r)}t++}return n+"]"}(e);{const o=null===(n=Object.getPrototypeOf(e))||void 0===n?void 0:n.constructor;return o===Object&&t<10?"{ "+Object.entries(e).map((([e,n])=>e+" = "+Ft(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class Bt{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=Ft(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>Ft(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>st(e)));return e.splice(0,0,it(this.tag)),at(e)}Equals(e){return this===e||!!Ke(this,e)&&this.tag===e.tag&<(this.fields,e.fields)}CompareTo(e){return this===e?0:Ke(this,e)?this.tag===e.tag?$t(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Gt{toJSON(){return function(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}(this)}toString(){return function(e){return"{ "+Object.entries(e).map((([e,t])=>e+" = "+Ft(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>st(e)));return at(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!ct(e[n[r]],t[n[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,t){if(e===t)return 0;if(Ke(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=pt(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Lt{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}function Vt(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}const Ht=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Ut=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function jt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function zt(e){return{input:e,cont:(t=e,e=>{Ht.lastIndex=0;const n=[],r=[];let o=0,i=Ht.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ht.lastIndex,Ht.lastIndex-=1,i=Ht.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),Zt(e,n,r))})};var t}function Wt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Yt(e){return Wt((e=>e),e)}function qt(e){return Wt((e=>{throw new Error(e)}),e)}function Kt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",It(e))switch("x"!==o.toLowerCase()&&(jt(e,0)?(e=At(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=Nt(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?Rt(e,r):Rt(e);break;case"e":case"E":e=null!=r?Mt(e,r):Mt(e);break;case"x":e=Ot(e);break;case"X":e=Ot(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?St(e):Ft(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,a=o||!r?" ":"0";e="0"===a?i+(e=Xt(e,n-i.length,a,o)):Xt(i+e,n,a,o)}return e}function Zt(e,t,n,r="",o=-1){return(...i)=>{let a=r;const s=t.slice(),u=n.slice();for(const e of i){const[,,t,n,r,i]=u[0];let l=n;if(o>=0)l=o,o=-1;else if("*"===l){if(e<0)throw new Error("Non-negative number required");o=e;continue}a+=s[0],a+=Kt(e,t,l,r,i),s.splice(0,1),u.splice(0,1)}return 0===u.length?(a+=s[0],e(a)):Zt(e,s,u,a,o)}}function Jt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Xt(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 Qt(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(Dt),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const t=s.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&a.push(t),u=!1}else{const r=i?e.substring(l,t.index).trim():e.substring(l,t.index);(!o||r.length>0)&&(null!=n&&a.length+1===n?(a.push(i?e.substring(l).trim():e.substring(l)),u=!1):a.push(r)),l=s.lastIndex}}while(u);return a}function en(e,t){return t.split("").filter((t=>e(t))).join("")}var tn=n(118);class nn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return st(this.value)}Equals(e){return null!=e&&ct(this.value,e instanceof nn?e.value:e)}CompareTo(e){return null==e?1:pt(this.value,e instanceof nn?e.value:e)}}function rn(e){return null==e||e instanceof nn?new nn(e):e}function on(e){if(null==e)throw new Error("Option has no value");return e instanceof nn?e.value:e}function an(e){return null==e?void 0:e}function sn(e){return null==e?null:on(e)}function un(e){return null==e?[]:[on(e)]}function ln(e,t){return null!=e?on(e):t}function cn(e,t){return null!=t?rn(e(on(t))):void 0}function fn(e,t){return null!=t?e(on(t)):void 0}function dn(e,t){return"function"==typeof e?new e(t):new Array(t)}function $n(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function pn(e,t,n){const r=0|t.length,o=dn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function hn(e,t,n){return function(e,t,n,r,o){const i=0|ln(n,0),a=0|ln(cn((e=>i+e),r),e.length);return 0|(n=>{for(;;){const r=n;if(r>=a)return-1;if(o.Equals(t,e[r]))return 0|r;n=r+1}})(i)}(t,e,void 0,void 0,n)>=0}function mn(e,t,n){return n.reduce(e,t)}function wn(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 gn extends Gt{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Jt("; ",this)+"]"}Equals(e){return this===e||((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1];if(ct(n.head,r.head)){e=i,t=a;continue e}return!1}return!1}return null==o[1]}})(this,e)}GetHashCode(){return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n,a=i.tail;if(null==a)return 0|o;{const s=a;if(r>18)return 0|o;e=r+1,t=(o<<1)+st(i.head)+631*r,n=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],a=o[1],s=0|pt(n.head,r.head);if(0===s){e=i,t=a;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new yn(this)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}}class yn{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 bn(){return new gn(null,void 0)}function vn(e,t){return new gn(e,t)}function _n(e){return null==e.tail}function xn(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Sn(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Cn(){return bn()}function En(e,t){return vn(e,t)}function Tn(e){return vn(e,bn())}function kn(e){return _n(e)}function In(e){return xn(e)}function An(e){return Sn(e)}function Nn(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=$n(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(_n(o))break;n[r]=xn(o),e=r+1,t=Sn(o)}})(0,e),n}function Rn(e,t,n){let r=t,o=n;for(;!_n(o);)r=e(r,xn(o)),o=Sn(o);return r}function Mn(e){return Rn(((e,t)=>vn(t,e)),bn(),e)}function On(e,t){Rn(((t,n)=>{e(n)}),void 0,t)}function Dn(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=vn(e[t],n);return n}function Pn(e){return Dn(e,bn())}function Fn(e,t){return Rn(((e,t)=>vn(t,e)),t,Mn(e))}function Bn(e,t){const n=bn(),r=Rn(((t,n)=>{const r=new gn(e(n),void 0);return t.tail=r,r}),n,t),o=bn();return r.tail=o,Sn(n)}function Gn(e,t){return function(e,t){const n=Nn(t);return n.sort(e),Pn(n)}(((e,n)=>t.Compare(e,n)),e)}const Ln=ze,Vn=Ft(tn.Z),Hn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Tn(p("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Un=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],["fill","currentColor"],(()=>{const e=Tn(p("path",{d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","fill-rule":"evenodd",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),jn=p("svg",mt(Pn([["className",Jt(" ",["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=Tn(p("path",{d:"M18 12H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),zn=p("svg",mt(Pn([["className",Jt(" ",["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=Tn(p("path",{d:"M12 6v6m0 0v6m0-6h6m-6 0H6",strokeLinejoin:"round",strokeLinecap:"round"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Wn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Tn(p("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),Yn=p("svg",mt(Pn([["className",Jt(" ",["h-5","w-5","text-gray-400"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(()=>{const e=Tn(p("path",{"fill-rule":"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}));return["children",Ln.Children.toArray(Array.from(e))]})()]))),qn=Pn(["flex","flex-col","align-center"]),Kn=(e,t)=>{te((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Zn(e){return{Dispose(){e()}}}function Jn(e){return Ln.useState(e)}function Xn(e,t){Kn(e,t)}function Qn(e,t){Kn((t=>(e(),Zn((()=>{})))),t)}function er(e){return Ln.useRef(e)}function tr(e){const t=er(e),n=function(e,n){const r=ln([],[]);return Ln.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Zn((()=>{}))),ne((()=>{const e=o();return()=>{e.Dispose()}})),n}function nr(e){return Ln.useState(e)}class rr{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 or extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,or.prototype)}}class ir{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ir.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function ar(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new or);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(Vt(e))}}));else try{e(t)}catch(e){t.onError(Vt(e))}}}const sr=new class{Bind(e,t){return function(e,t){return ar((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(Vt(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 ar((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 ar((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return ar((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 ar((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(Vt(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 ar((e=>e.onSuccess(void 0)))}};function ur(e){}function lr(e){const t=new rr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function cr(e){e.cancel()}const fr=new rr;function dr(e){return ar((t=>{let n;const r=setTimeout((()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)}),e);n=t.cancelToken.addListener((()=>{clearTimeout(r),t.onCancel(new or)}))}))}function $r(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new ir;e({onSuccess:t||ur,onError:n||ur,onCancel:r||ur,cancelToken:o||fr,trampoline:i})}(e,t)}(e,t)}class pr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function hr(e,t){const n=er(lr());return Xn((()=>Zn((()=>{cr(n.current)}))),[]),tr((r=>{var o;null!=(o=n.current)&&o.isCancelled||$r(sr.Delay((()=>sr.TryWith(sr.Delay((()=>(t(new pr(1)),sr.Bind(e(r),(e=>(t(new pr(2,e)),sr.Zero())))))),(e=>(t(new pr(3,e)),sr.Zero()))))),n.current)}))}class mr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function wr(e,t){return 0===t.tag?new mr(0,e(t.fields[0])):new mr(1,t.fields[0])}function gr(e,t){return 0===t.tag?e(t.fields[0]):new mr(1,t.fields[0])}function yr(){return e=pt,{Compare:(t,n)=>e(t,n)};var e}const br="The input sequence has an insufficient number of elements.";function vr(){throw new Error("Enumeration has not started. Call MoveNext.")}function _r(){throw new Error("Enumeration already finished.")}class xr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=Je(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=Ft(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{qe(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Sr{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 Cr(e,t,n){return new Sr(e,t,n)}function Er(e,t,n){let r,o=!1,i=rn(e());const a=()=>{if(null!=i){const e=on(i);try{n(e)}finally{i=void 0}}},s=()=>{try{a()}finally{r=void 0}};return Cr((()=>(o||vr(),null!=r?on(r):_r())),(()=>{if(o||(o=!0),null!=i){const e=on(i);let n;try{n=t(e)}catch(e){throw s(),e}return null!=n?(r=n,!0):(s(),!1)}return!1}),a)}function Tr(e){return function(e){return new xr(e)}(e)}function kr(e){return t="source",null==e&&function(e){throw new Error(e)}(t),Je(e);var t}function Ir(e){return Tr((()=>Je(e())))}function Ar(e){return Tr((()=>function(e){let t,n,r,o=!1,i=!1;const a=()=>{if(i=!0,null!=n){const e=n;try{qe(e)}finally{n=void 0}}if(null!=t){const e=t;try{qe(e)}finally{t=void 0}}};return Cr((()=>(o?i&&_r():vr(),null!=r?on(r):_r())),(()=>{let s;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[t,n];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=rn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{qe(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=Je(s)):(a(),o=!1)}else t=Je(e)}return on(o)}}),(()=>{i||a()}))}(e)))}function Nr(){return Ir((()=>new Array(0)))}function Rr(e){return Ir((()=>function(e,t){const n=dn(void 0,1);return n[0]=e,n}(e)))}function Mr(e){return We(e)?Pn(e):e instanceof gn?e:function(e){let t,n;if(We(e))return Pn(e);if(e instanceof gn)return e;{const r=bn();let o=r;const i=Je(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new gn(e,void 0),t.tail=n,o=n}}finally{qe(i)}const a=o,s=bn();return a.tail=s,Sn(r)}}(e)}function Or(e,t,n){return Tr((()=>Er(e,t,n)))}function Dr(e,t,n){return Tr((()=>{let r=-1;return Er(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Pr(e,t){return Ar([e,t])}function Fr(e,t,n){const r=kr(t);try{let t=!1;for(;!t&&r["System.Collections.IEnumerator.MoveNext"]();)t=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{qe(r)}}function Br(e,t){return function(e,t){return Or((()=>kr(t)),(t=>{let n;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}),(e=>{qe(e)}))}((t=>e(t)?rn(t):void 0),t)}function Gr(e,t,n){const r=kr(n);try{let n=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)n=e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{qe(r)}}function Lr(e,t){Gr(((t,n)=>{e(n)}),void 0,t)}function Vr(e,t){return Or((()=>kr(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?rn(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))}function Hr(e,t){return Tr((()=>{const n=kr(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(br+"\\nParameter name: source");return function(e,t){return Cr((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{qe(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw qe(n),e}}))}function Ur(e,t){return Ir((()=>Ar(Vr(e,t))))}function jr(e,t){return null==t?new mr(1,e):new mr(0,on(t))}function zr(e,t,n){return ct(n,e)?new mr(0,void 0):new mr(1,t)}Symbol.iterator;class Wr extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Yr(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function qr(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function Kr(e){return e.tag,e.fields[0]}function Zr(e){let t,n,r,o;const i=e.hideAlert,a=e.alert,s=lr();var u;return u=()=>{!function(e,t){$r(sr.Delay((()=>sr.Bind(dr(5e3),(()=>(e(),sr.Zero()))))),t)}(i,s)},Qn(u,[]),p("div",mt(Pn([["className",Jt(" ",["rounded-md","p-4","my-4",qr(a)])],(t=[p("div",mt(Pn([["className",Jt(" ",["flex"])],(n=[p("p",{className:Jt(" ",["text-sm","pr-2",Yr(a)]),children:Kr(a)}),p("div",mt(Pn([["className",Jt(" ",["ml-auto"])],(r=[p("div",mt(Pn([["className",Jt(" ",["-mx-1.5","-my-1.5"])],(o=[p("button",{type:"button",className:Jt(" ",Mr(Ir((()=>Pr(Rr("inline-flex"),Ir((()=>Pr(Rr("rounded-md"),Ir((()=>Pr(Rr("p-1.5"),Ir((()=>Pr(Rr("focus:outline-none"),Ir((()=>Pr(Rr("focus:ring-2"),Ir((()=>Pr(Rr("focus:ring-offset-2"),Ir((()=>function(e){switch(e.tag){case 0:return Pn(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return Pn(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return Pn(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(a))))))))))))))))))))))),children:Ln.Children.toArray([Wn]),onClick:e=>{cr(s),i()}})],["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])])))],["children",Ln.Children.toArray(Array.from(n))])])))],["children",Ln.Children.toArray(Array.from(t))])])))}function Jr(e,t){return t}function Xr(e,t,n){return wr(n,t)}new class{constructor(){}};function Qr(e,t){const n=function(e,t){return new mr(0,t)}(0,t);return sr.Return(n)}function eo(e,t){return sr.Delay(t)}new class{constructor(){}};class to extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class no extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ro extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class oo extends Gt{constructor(e,t,n,r,o,i,a,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=a,this.content=s}}class io extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ao extends Gt{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class so{constructor(e,t){this.k=e,this.v=t}}function uo(e,t){return new so(e,t)}function lo(e){return e.k}function co(e){return e.v}class fo extends so{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function $o(e,t,n,r,o){return new fo(e,t,n,r,o)}function po(e){return e.left}function ho(e){return e.right}function mo(e){return e.h}function wo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof fo){e=wo(n+1,po(o)),t=ho(o);continue e}return n+1|0}return 0|n}}function go(e){return wo(0,e)}function yo(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof fo?mo(t):1}else o=0;if(null!=r){const e=r;i=e instanceof fo?mo(e):1}else i=0;const a=0|(o<i?i:o);return 0===a?uo(t,n):$o(t,n,e,r,a+1)}function bo(e,t,n,r){let o,i,a,s,u,l;if(null!=e){const t=e;u=t instanceof fo?mo(t):1}else u=0;if(null!=r){const e=r;l=e instanceof fo?mo(e):1}else l=0;if(l>u+2){const a=on(r);if(a instanceof fo){if(o=po(a),(null!=o?(i=o,i instanceof fo?mo(i):1):0)>u+1){const r=on(po(a));if(r instanceof fo)return yo(yo(e,t,n,po(r)),lo(r),co(r),yo(ho(r),lo(a),co(a),ho(a)));throw new Error("internal error: Map.rebalance")}return yo(yo(e,t,n,po(a)),lo(a),co(a),ho(a))}throw new Error("internal error: Map.rebalance")}if(u>l+2){const o=on(e);if(o instanceof fo){if(a=ho(o),(null!=a?(s=a,s instanceof fo?mo(s):1):0)>l+1){const e=on(ho(o));if(e instanceof fo)return yo(yo(po(o),lo(o),co(o),po(e)),lo(e),co(e),yo(ho(e),t,n,r));throw new Error("internal error: Map.rebalance")}return yo(po(o),lo(o),co(o),yo(ho(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return yo(e,t,n,r)}function vo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,lo(o));return o instanceof fo?i<0?bo(vo(e,t,n,po(o)),lo(o),co(o),ho(o)):0===i?$o(t,n,po(o),ho(o),mo(o)):bo(po(o),lo(o),co(o),vo(e,t,n,ho(o))):i<0?$o(t,n,void 0,r,2):0===i?uo(t,n):$o(t,n,r,void 0,2)}return uo(t,n)}function _o(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,lo(a));if(0===s)return rn(co(a));if(a instanceof fo){e=r,t=o,n=s<0?po(a):ho(a);continue e}return}return}}function xo(e,t,n,r,o){return t(n,r)?vo(e,n,r,o):o}function So(e,t,n,r){e:for(;;){const o=e,i=t,a=n,s=r;if(null!=a){const u=a;if(u instanceof fo){const a=So(o,i,po(u),s),l=xo(o,i,lo(u),co(u),a);e=o,t=i,n=ho(u),r=l;continue e}return xo(o,i,lo(u),co(u),s)}return s}}function Co(e,t,n){return So(e,t,n,void 0)}function Eo(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof fo){Eo(n,po(o)),n(lo(o),co(o)),e=n,t=ho(o);continue e}n(lo(o),co(o))}break}}function To(e,t){Eo(e,t)}function ko(e,t){if(null!=t){const n=t;if(n instanceof fo){const t=ko(e,po(n)),r=e(lo(n),co(n)),o=ko(e,ho(n));return $o(lo(n),r,t,o,mo(n))}return uo(lo(n),e(lo(n),co(n)))}}function Io(e,t){return ko(e,t)}function Ao(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=vo(e,o[0],o[1],n)}return n}class No extends Gt{constructor(e,t){super(),this.stack=e,this.started=t}}function Ro(e){e:for(;;){const t=e;if(kn(t))return Cn();{const n=An(t),r=In(t);if(null!=r){const o=r;if(o instanceof fo){e=Dn([po(o),uo(lo(o),co(o)),ho(o)],n);continue e}return t}e=n;continue e}}}function Mo(e){return new No(Ro(Tn(e)),!1)}function Oo(e){if(e.started){const t=e.stack;if(kn(t))return function(){throw new Error("enumeration already finished")}();if(null!=In(t)){const e=In(t);if(e instanceof fo)throw new Error("Please report error: Map iterator, unexpected stack for current");return[lo(e),co(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Do(e){let t=Mo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Oo(t),"System.Collections.IEnumerator.get_Current":()=>Oo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(kn(t))return!1;if(null!=In(t)){if(In(t)instanceof fo)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ro(An(t)),!kn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!kn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Mo(e)},Dispose(){}}}class Po{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,st(e[0])),n=0|t(n,st(e[1]))}}finally{qe(r)}return 0|n}(this)}Equals(e){if(!(e instanceof Po))return!1;{const t=Je(this);try{const n=Je(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!ct(r[0],o[0])||!ct(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{qe(n)}}finally{qe(t)}}}toString(){return"map ["+Jt("; ",Vr((e=>function(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Ut,((e,n,r,o,i,a)=>{if(n<0||n>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=t[n];if(It(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=Nt(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?Rt(s,i):Rt(s);break;case"e":case"E":s=null!=i?Mt(s,i):Mt(s);break;case"p":case"P":i=null!=i?i:2,s=Nt(At(s,100),i)+" %";break;case"d":case"D":s=null!=i?Xt(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Xt(Ot(s),i,"0"):Ot(s),"X"===o&&(s=s.toUpperCase());break;default:if(a){let e="";s=a.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{jt(s,0)&&(s=At(s,-1),e="-");const o=null!=r?r.length:0;if(s=Nt(s,Math.max(o-1,0)),n.indexOf(",")>0){const[e,t]=s.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?",":"");s=t?o+"."+t:o}const i=(n=n.replace(/,/g,"")).length>0&&"0"===n[0]?n.length:0;return Xt(s,i-e.length+o,"0")})),s=e+s}}else s=s instanceof Date?St(s,a||o):Ft(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Xt(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Do(this.tree)}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Do(this.tree)}CompareTo(e){const t=this;if(e instanceof Po)return 0|function(e,t,n){const r=kr(t);try{const t=kr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{qe(t)}}finally{qe(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:pt(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Vo(this,e[0])&&ct(Go(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;To(((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|Lo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Lo(this)}get size(){return 0|Lo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Vr((e=>[e[0],e[1]]),this)}get(e){return Go(this,e)}has(e){return Vo(this,e)}keys(){return Vr((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Vr((e=>e[1]),this)}forEach(e,t){const n=this;Lr((t=>{e(t[1],t[0],n)}),n)}}function Fo(e,t){return new Po(e,t)}function Bo(e){const t=yr();return Fo(t,function(e,t){if(We(t))return Ao(e,t);if(t instanceof gn)return function(e,t){return Rn(((t,n)=>vo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const a=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vo(r,a[0],a[1],o),n=i}}}(e,void 0,n)}finally{qe(n)}}}(t,e))}function Go(e,t){return function(e,t,n){const r=_o(e,t,n);if(null==r)throw new Error;return on(r)}(e.comparer,t,e.tree)}function Lo(e){return go(e.tree)}function Vo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,lo(a));if(a instanceof fo){if(s<0){e=r,t=o,n=po(a);continue e}if(0===s)return!0;e=r,t=o,n=ho(a);continue e}return 0===s}return!1}}(e.comparer,t,e.tree)}function Ho(e,t,n){return function(e,t,n){return Fo(e.comparer,vo(e.comparer,t,n,e.tree))}(n,e,t)}function Uo(e,t){return function(e,t){return _o(e.comparer,t,e.tree)}(t,e)}function jo(e,t){return function(e,t){return Fo(e.comparer,Io(t,e.tree))}(t,e)}function zo(e){return Bo(e)}function Wo(){return Po.empty}Po.empty=Fo(yr(),void 0);const Yo=new oo("",new to(0),Cn(),!1,void 0,void 0,void 0,new ro(0));function qo(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:Qt(t,[e],null,0);var n}function Ko(e){return new oo(e,Yo.method,Yo.headers,Yo.withCredentials,Yo.overridenMimeType,Yo.overridenResponseType,Yo.timeout,Yo.content)}function Zo(e,t){return new oo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Jo(e,t){return new oo(t.url,t.method,Fn(t.headers,Tn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Xo(e){return function(e){return ar((t=>e([t.onSuccess,t.onError,t.onCancel])))}((t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,a,s;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,s=n.responseType,a=""===s||"text"===s?new io(0,n.responseText):new io("arraybuffer"===s?2:"blob"===s?1:3,n.response),new ao(o,e,i,function(e){const t=yr();return Fo(t,Ao(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=on(o);r.push(e)}}return r}((e=>{const t=Pn(qo(":",e));return kn(t)?void 0:[In(t).toLocaleLowerCase(),Jt(":",An(t)).trim()]}),qo("\r\n",n.getAllResponseHeaders()))),a)))};const r=Je(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{qe(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;n.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const a=e.timeout;if(null==a);else{const e=0|a;n.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?n.send(rn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(rn(s[1].fields[0])):n.send(rn(void 0))}))}new ao(0,"","",Wo(),new io(0,""));class Qo extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ei extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class ti{constructor(){this.cache=new Map([])}}function ni(){return new ti}function ri(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function oi(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=function(e,t=0){if(0!=(-284&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}(t,null!=r?r:0),t=n,r=void 0}if("function"==typeof n)return r=null==r?-1:r,t.substring(0,o)+t.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const t=[],o=arguments.length,i="string"!=typeof arguments[o-1];let a=i?o-3:o-2;for(let e=0;e<a;e++)t.push(arguments[e]);t.index=arguments[a++],t.input=arguments[a++],i&&(t.groups=arguments[a]),e=n(t)}return e}));if(n=n.replace(/\$0/g,(e=>"$&")).replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const a=t.substring(o),s=Pt(e,a),u=Pt.length>r?(i=s[r-1],a.substring(0,i.index+i[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}return t.replace(e,n)}(ri(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ri(t)}}ni(),ni();const ii=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ai=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,si=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function ui(e,t){try{return t.contents=function(e){function t(e){return e.replace(ai,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ii.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Dt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(ai.test(n))return t(n);if(si.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 li;function ci(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 fi(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&li.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]=ci(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[a,s]=ci(n,r);if(e>=a&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}function di(e,t,n,r,o){try{return o.contents=fi(e,t,n,r),!0}catch(e){return!1}}function $i(e,t){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function pi(e,t){try{return t.contents=function(e){const[t,n]=Et(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return $i(t.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(li||(li={}));var hi=null;try{hi=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 mi(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function wi(e){return!0===(e&&e.__isLong__)}mi.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},mi.prototype.Equals=function(e){return ji(this,e)},mi.prototype.CompareTo=function(e){return qi(this,e)},mi.prototype.toString=function(e){return Li(this,e)},mi.prototype.toJSON=function(){return Li(this)},mi.prototype[kt]=function(){const e=this;return{multiply:t=>Xi(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 Li(e.unsigned?e:function(e,t,n){return n?function(e,t){return new mi(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 mi(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}}},mi.prototype.__isLong__,Object.defineProperty(mi.prototype,"__isLong__",{value:!0});var gi={},yi={};function bi(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=yi[e])?r:(n=_i(e,(0|e)<0?-1:0,!0),o&&(yi[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=gi[e])?r:(n=_i(e,e<0?-1:0,!1),o&&(gi[e]=n),n)}function vi(e,t){if(isNaN(e))return t?Ni:Ai;if(t){if(e<0)return Ni;if(e>=Ti)return Pi}else{if(e<=-ki)return Fi;if(e+1>=ki)return Di}return e<0?Ki(vi(-e,t)):_i(e%Ei|0,e/Ei|0,t)}function _i(e,t,n){return new mi(e,t,n)}var xi=Math.pow;function Si(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Ai;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 Ki(Si(e.substring(1),t,n));for(var o=vi(xi(n,8)),i=Ai,a=0;a<e.length;a+=8){var s=Math.min(8,e.length-a),u=parseInt(e.substring(a,a+s),n);i=Zi(s<8?Xi(i,vi(xi(n,s))):i=Xi(i,o),vi(u))}return i.unsigned=t,i}function Ci(e,t){return"number"==typeof e?vi(e,t):"string"==typeof e?Si(e,t):_i(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ei=4294967296,Ti=Ei*Ei,ki=Ti/2,Ii=bi(1<<24),Ai=bi(0),Ni=bi(0,!0),Ri=bi(1),Mi=bi(1,!0),Oi=bi(-1),Di=_i(-1,2147483647,!1),Pi=_i(-1,-1,!0),Fi=_i(0,-2147483648,!1);function Bi(e){return e.unsigned?e.low>>>0:e.low}function Gi(e){return e.unsigned?(e.high>>>0)*Ei+(e.low>>>0):e.high*Ei+(e.low>>>0)}function Li(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(Vi(e))return"0";if(Hi(e)){if(ji(e,Fi)){var n=vi(t),r=Qi(e,n),o=Ji(Xi(r,n),e);return Li(r,t)+Bi(o).toString(t)}return"-"+Li(Ki(e),t)}for(var i=vi(xi(t,6),e.unsigned),a=e,s="";;){var u=Qi(a,i),l=(Bi(Ji(a,Xi(u,i)))>>>0).toString(t);if(Vi(a=u))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function Vi(e){return 0===e.high&&0===e.low}function Hi(e){return!e.unsigned&&e.high<0}function Ui(e){return 1==(1&e.low)}function ji(e,t){return wi(t)||(t=Ci(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function zi(e,t){return qi(e,t)<0}function Wi(e,t){return qi(e,t)>0}function Yi(e,t){return qi(e,t)>=0}function qi(e,t){if(wi(t)||(t=Ci(t)),ji(e,t))return 0;var n=Hi(e),r=Hi(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:Hi(Ji(e,t))?-1:1}function Ki(e){return!e.unsigned&&ji(e,Fi)?Fi:Zi(function(e){return _i(~e.low,~e.high,e.unsigned)}(e),Ri)}function Zi(e,t){wi(t)||(t=Ci(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=0,c=0,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,c+=(f+=o+u)>>>16,l+=(c+=r+s)>>>16,l+=n+a,_i((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function Ji(e,t){return wi(t)||(t=Ci(t)),Zi(e,Ki(t))}function Xi(e,t){if(Vi(e))return e.unsigned?Ni:Ai;if(wi(t)||(t=Ci(t)),hi)return _i(hi.mul(e.low,e.high,t.low,t.high),hi.get_high(),e.unsigned);if(Vi(t))return e.unsigned?Ni:Ai;if(ji(e,Fi))return Ui(t)?Fi:Ai;if(ji(t,Fi))return Ui(e)?Fi:Ai;if(Hi(e))return Hi(t)?Xi(Ki(e),Ki(t)):Ki(Xi(Ki(e),t));if(Hi(t))return Ki(Xi(e,Ki(t)));if(zi(e,Ii)&&zi(t,Ii))return vi(Gi(e)*Gi(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,a=t.high>>>16,s=65535&t.high,u=t.low>>>16,l=65535&t.low,c=0,f=0,d=0,$=0;return d+=($+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*u)>>>16,c+=(f+=r*l)>>>16,f&=65535,c+=(f+=o*u)>>>16,f&=65535,c+=(f+=i*s)>>>16,c+=n*l+r*u+o*s+i*a,_i((d&=65535)<<16|($&=65535),(c&=65535)<<16|(f&=65535),e.unsigned)}function Qi(e,t){if(wi(t)||(t=Ci(t)),Vi(t))throw Error("division by zero");var n,r,o;if(hi)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?_i((e.unsigned?hi.div_u:hi.div_s)(e.low,e.high,t.low,t.high),hi.get_high(),e.unsigned):e;if(Vi(e))return e.unsigned?Ni:Ai;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:_i(e.low,e.high,!0)}(t)),Wi(t,e))return Ni;if(Wi(t,function(e,t){if(wi(t)&&(t=Bi(t)),0==(t&=63))return e;var n=e.high;return t<32?_i(e.low>>>t|n<<32-t,n>>>t,e.unsigned):_i(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Mi;o=Ni}else{if(ji(e,Fi))return ji(t,Ri)||ji(t,Oi)?Fi:ji(t,Fi)?Ri:ji(n=function(e,t){return wi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?_i(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):_i(0,e.low<<t-32,e.unsigned)}(Qi(function(e,t){return wi(t)&&(t=Bi(t)),0==(t&=63)?e:t<32?_i(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):_i(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Ai)?Hi(t)?Ri:Oi:o=Zi(n,Qi(r=Ji(e,Xi(t,n)),t));if(ji(t,Fi))return e.unsigned?Ni:Ai;if(Hi(e))return Hi(t)?Qi(Ki(e),Ki(t)):Ki(Qi(Ki(e),t));if(Hi(t))return Ki(Qi(e,Ki(t)));o=Ai}for(r=e;Yi(r,t);){n=Math.max(1,Math.floor(Gi(r)/Gi(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),a=i<=48?1:xi(2,i-48),s=vi(n),u=Xi(s,t);Hi(u)||Wi(u,r);)u=Xi(s=vi(n-=a,e.unsigned),t);Vi(s)&&(s=Ri),o=Zi(o,s),r=Ji(r,u)}return o}const ea=Qi,ta=Gi;function na(e){return e<0?Math.ceil(e):Math.floor(e)}function ra(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return oa(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 oa(e){return ta(ea(e,1e4))}function ia(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 ra(t,0,0,0,0)}if(n>0){const t=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(null!=t&&null!=t[4]&&null!=t[5]){let n=0,r=0,o=0;const i=null!=t[1]&&"-"===t[1]?-1:1,a=+t[4],s=+t[5];if(null!=t[3]&&(n=+t[3]),null!=t[7]&&(o=+t[7]),null!=t[8])switch(t[8].length){case 1:r=100*+t[8];break;case 2:r=10*+t[8];break;case 3:r=+t[8];break;case 4:r=+t[8]/10;break;case 5:r=+t[8]/100;break;case 6:r=+t[8]/1e3;break;case 7:r=+t[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ra(n,a,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class aa{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class sa{constructor(e,t,n,r,o,i,a){this.fullname=e,this.generics=t,this.construct=n,this.parent=r,this.fields=o,this.cases=i,this.enumCases=a}toString(){return _a(this)}GetHashCode(){return la(this)}Equals(e){return ca(this,e)}}function ua(e){return null!=e.generics?e.generics:[]}function la(e){return at([ot(e.fullname),...ua(e).map(la)])}function ca(e,t){return""===e.fullname?""===t.fullname&&ut(Ra(e),Ra(t),(([e,t],[n,r])=>e===n&&ca(t,r))):e.fullname===t.fullname&&ut(ua(e),ua(t),ca)}function fa(e,t,n,r){return new sa(e,t,n,void 0,r)}function da(...e){return new sa("",void 0,void 0,void 0,(()=>e))}function $a(e,t,n,r){const o=new sa(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new aa(o,n,e[n],t)))}));return o}function pa(e){return new sa("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ha(e){return new sa("Microsoft.FSharp.Collections.FSharpList`1",[e])}function ma(e,t,n){return new sa(e,[t],void 0,void 0,void 0,void 0,n)}const wa=new sa("System.Object"),ga=(new sa("Microsoft.FSharp.Core.Unit"),new sa("System.Char"),new sa("System.String")),ya=new sa("System.Boolean"),ba=(new sa("System.SByte"),new sa("System.Byte"),new sa("System.Int16"),new sa("System.UInt16"),new sa("System.Int32"));function va(e){if(Array.isArray(e))return e[0];if(e instanceof sa){const t=Sa(e);if(null!=t)return va(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function _a(e){const t=Sa(e);return null!=t?_a(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>_a(e))).join(",")+"]"}function xa(e){return null!=Sa(e)}function Sa(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Ca(e){return null!=e.generics&&e.generics.length>0}function Ea(e){return null!=e.enumCases&&e.enumCases.length>0}function Ta(e){return null==e.generics?e:new sa(e.fullname,e.generics.map((()=>wa)))}function ka(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Ia(e){if(Ea(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Aa(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 Na(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ra(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ma(e){if(Pa(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Oa(e){return e instanceof sa?null!=e.cases:e instanceof Bt}function Da(e){return e instanceof sa?null!=e.fields:e instanceof Gt}function Pa(e){return e.fullname.startsWith("System.Tuple")}function Fa(e){return null==e.fields?[]:e.fields}function Ba(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 sa("System.UInt32"),new sa("System.Single"),new sa("System.Double"),new sa("System.Decimal");class Ga{constructor(e){this.k=e}}function La(e){return new Ga(e)}function Va(e){return e.k}class Ha extends Ga{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ua(e,t,n,r){return new Ha(e,t,n,r)}function ja(e){return e.left}function za(e){return e.right}function Wa(e){return e.h}function Ya(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Ha){e=ja(o),t=Ya(za(o),r+1);continue e}return r+1|0}return 0|r}}function qa(e){return Ya(e,0)}function Ka(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Ha?Wa(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Ha?Wa(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?La(t):Ua(t,e,n,i+1)}function Za(e,t,n){let r,o,i,a,s,u;if(null!=e){const t=e;s=t instanceof Ha?Wa(t):1}else s=0;if(null!=n){const e=n;u=e instanceof Ha?Wa(e):1}else u=0;if(u>s+2){const i=on(n);if(i instanceof Ha){if(r=ja(i),(null!=r?(o=r,o instanceof Ha?Wa(o):1):0)>s+1){const n=on(ja(i));if(n instanceof Ha)return Ka(Ka(e,t,ja(n)),Va(n),Ka(za(n),Va(i),za(i)));throw new Error("internal error: Set.rebalance")}return Ka(Ka(e,t,ja(i)),Va(i),za(i))}throw new Error("internal error: Set.rebalance")}if(s>u+2){const r=on(e);if(r instanceof Ha){if(i=za(r),(null!=i?(a=i,a instanceof Ha?Wa(a):1):0)>u+1){const e=on(za(r));if(e instanceof Ha)return Ka(Ka(ja(r),Va(r),ja(e)),Va(e),Ka(za(e),t,n));throw new Error("internal error: Set.rebalance")}return Ka(ja(r),Va(r),Ka(za(r),t,n))}throw new Error("internal error: Set.rebalance")}return Ka(e,t,n)}function Ja(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Va(r));if(r instanceof Ha)return o<0?Za(Ja(e,t,ja(r)),Va(r),za(r)):0===o?n:Za(ja(r),Va(r),Ja(e,t,za(r)));{const o=0|e.Compare(t,Va(r));return o<0?Ua(t,void 0,n,2):0===o?n:Ua(t,n,void 0,2)}}return La(t)}function Xa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const a=i,s=0|r.Compare(o,Va(a));if(a instanceof Ha){if(s<0){e=r,t=o,n=ja(a);continue e}if(0===s)return!0;e=r,t=o,n=za(a);continue e}return 0===s}return!1}}function Qa(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Ha){Qa(n,ja(o)),n(Va(o)),e=n,t=za(o);continue e}n(Va(o))}break}}class es extends Gt{constructor(e,t){super(),this.stack=e,this.started=t}}function ts(e){e:for(;;){const t=e;if(kn(t))return Cn();{const n=In(t),r=An(t);if(null!=n){const o=n;if(o instanceof Ha){e=Dn([ja(o),La(Va(o)),za(o)],r);continue e}return t}e=r;continue e}}}function ns(e){return new es(ts(Tn(e)),!1)}function rs(e){if(e.started){const t=e.stack;if(kn(t))return function(){throw new Error("Enumeration already started")}();if(null!=In(t))return Va(In(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function os(e){let t=ns(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>rs(t),"System.Collections.IEnumerator.get_Current":()=>rs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(kn(t))return!1;if(null!=In(t)){if(In(t)instanceof Ha)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ts(An(t)),!kn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!kn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ns(e)},Dispose(){}}}function is(e,t,n){return null==t?null==n?0:-1:null==n?1:0|function(e,t,n){e:for(;;){const r=e,o=t,i=n,a=[o,i];if(kn(a[0]))return kn(a[1])?0:-1;if(kn(a[1]))return 1;if(null!=In(a[1]))if(null!=In(a[0])){const s=In(a[0]),u=In(a[1]);if(s instanceof Ha)if(null==ja(s)){if(!(u instanceof Ha)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=En(za(s),An(a[0])),n=En(void 0,An(a[1]));continue e}if(null==ja(u)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=En(za(s),An(a[0])),n=En(za(u),An(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(u instanceof Ha)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=An(a[0]),n=An(a[1]);continue e}if(null==ja(u)){const o=0|r.Compare(Va(s),Va(u));if(0!==o)return 0|o;e=r,t=En(void 0,An(a[0])),n=En(za(u),An(a[1]));continue e}{const a=[o,i];let s,u,l,c,f;switch(kn(a[0])?kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2:null!=In(a[0])?(s=0,u=An(a[0]),l=In(a[0])):kn(a[1])?s=2:null!=In(a[1])?(s=1,c=An(a[1]),f=In(a[1])):s=2,s){case 0:if(l instanceof Ha){e=r,t=Dn([ja(l),Ua(Va(l),void 0,za(l),0)],u),n=i;continue e}e=r,t=Dn([void 0,La(Va(l))],u),n=i;continue e;case 1:if(f instanceof Ha){e=r,t=o,n=Dn([ja(f),Ua(Va(f),void 0,za(f),0)],c);continue e}e=r,t=o,n=Dn([void 0,La(Va(f))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{In(a[1]);const s=[o,i];let u,l,c,f,d;switch(kn(s[0])?kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2:null!=In(s[0])?(u=0,l=An(s[0]),c=In(s[0])):kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2,u){case 0:if(c instanceof Ha){e=r,t=Dn([ja(c),Ua(Va(c),void 0,za(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,La(Va(c))],l),n=i;continue e;case 1:if(d instanceof Ha){e=r,t=o,n=Dn([ja(d),Ua(Va(d),void 0,za(d),0)],f);continue e}e=r,t=o,n=Dn([void 0,La(Va(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==In(a[0])){e=r,t=An(a[0]),n=An(a[1]);continue e}{In(a[0]);const s=[o,i];let u,l,c,f,d;switch(kn(s[0])?kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2:null!=In(s[0])?(u=0,l=An(s[0]),c=In(s[0])):kn(s[1])?u=2:null!=In(s[1])?(u=1,f=An(s[1]),d=In(s[1])):u=2,u){case 0:if(c instanceof Ha){e=r,t=Dn([ja(c),Ua(Va(c),void 0,za(c),0)],l),n=i;continue e}e=r,t=Dn([void 0,La(Va(c))],l),n=i;continue e;case 1:if(d instanceof Ha){e=r,t=o,n=Dn([ja(d),Ua(Va(d),void 0,za(d),0)],f);continue e}e=r,t=o,n=Dn([void 0,La(Va(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Tn(t),Tn(n))}function as(e,t,n){let r=n;Qa((e=>{t[r]=e,r=r+1|0}),e)}function ss(e,t){if(We(t))return function(e,t){return mn(((t,n)=>Ja(e,n,t)),void 0,t)}(e,t);if(t instanceof gn)return function(e,t){return Rn(((t,n)=>Ja(e,n,t)),void 0,t)}(e,t);{const n=Je(t);try{return function(e,t,n){for(;;){const r=e,o=t,i=n;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,t=Ja(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{qe(n)}}}class us{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|st(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{qe(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof us&&0===is(ls(this),cs(this),cs(e))}toString(){return"set ["+Jt("; ",Vr((e=>Ft(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|is(ls(this),cs(this),cs(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 Xa(ls(this),e,cs(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){as(cs(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|fs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|fs(this)}GetEnumerator(){return os(cs(this))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return os(cs(this))}get size(){return 0|fs(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 Xa(ls(e),t,cs(e))}(this,e)}keys(){return Vr((e=>e),this)}values(){return Vr((e=>e),this)}entries(){return Vr((e=>[e,e]),this)}forEach(e,t){const n=this;Lr((t=>{e(t,t,n)}),n)}}function ls(e){return e.comparer}function cs(e){return e.tree}function fs(e){return qa(cs(e))}function ds(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 $s(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new mr(1,function(e,t){const n=2===t.tag?ds(t.fields[0],t.fields[1],!0):1===t.tag?ds(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ds(t.fields[0],t.fields[1],!0):4===t.tag?ds(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"+Jt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ds(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new mr(0,r.fields[0])}const ps=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 mr(0,(e+128&255)-128):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for a sbyte")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,8,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},hs=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 mr(0,255&e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for a byte")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,8,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ms=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 mr(0,(e+32768&65535)-32768):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,16,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ws=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 mr(0,65535&e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,16,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},gs=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 mr(0,~~e):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for an int")]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!1,32,new Lt((()=>t),(e=>{t=0|e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])},ys=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 mr(0,e>>>0):new mr(1,[r,new Qo(1,n,e,"Value was either too large or too small for "+n)]):new mr(1,[r,new Qo(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[di(o,511,!0,32,new Lt((()=>t),(e=>{t=e}))),t],e[0]?new mr(0,e[1]):new mr(1,[r,new Qo(0,n,o)])}return new mr(1,[r,new Qo(0,n,o)])};function bs(e,t,n,r){let o;const i=n+".["+nt(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new mr(1,[i,new Qo(5,"a longer array. Need index `"+nt(e)+"` but there are only `"+(o=n.length,nt(o)+"` entries"),r)])}return new mr(1,[i,new Qo(0,"an array",r)])}function vs(e,t,n){if(Array.isArray(n)){let r=-1;return wr(Mn,mn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+nt(r)+"]",o);return 0===i.tag?new mr(0,En(i.fields[0],n.fields[0])):new mr(1,i.fields[0])}return n}),new mr(0,Cn()),n))}return new mr(1,[t,new Qo(0,"a list",n)])}function _s(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return mn(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],a=e(t+".["+nt(r)+"]",o);return 0===a.tag?(i[r]=a.fields[0],new mr(0,i)):new mr(1,a.fields[0])}return n}),new mr(0,$n(new Array(o.length),0,o.length,null)),o)}return new mr(1,[t,new Qo(0,"an array",n)])}function xs(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new mr(1,o.fields[0])}function Ss(e,t){let n;const r=e;return n=e=>t=>bs(0,r,e,t),e=>r=>xs(gt(3,(e=>{let n;const r=t;return n=e=>t=>bs(1,r,e,t),t=>r=>xs(((t,n,r)=>new mr(0,[e,t])),gt(2,n),t,r)})),gt(2,n),e,r)}function Cs(e){return zo(e)}function Es(e){return function(e,t){return new us(e,t)}(t={Compare:pt},ss(t,e));var t}function Ts(e,t,n,r){let o,i;return t.length!==r.length?new mr(1,[n,new Qo(6,(o=0|r.length,i=0|t.length,Yt(zt("Expected %i %s but got %i"))(i)(e)(o)))]):wn(((e,t,r)=>0===r.tag?wr((e=>En(e,r.fields[0])),t(n)(e)):r),r,t,new mr(0,Cn()))}function ks(e,t,n,r,o,i){const a=function(e,t){return t.find((e=>va(e)===r))}(0,Na(n));if(null!=a){const n=a;return 0===i.length?new mr(0,Ba(n,[])):wr((e=>Ba(n,Nn(e))),Ts("union fields",pn((n=>As(e,t,!1,n[1])),Fa(n)),o,i))}return new mr(1,[o,new Qo(6,"Cannot find case "+r+" in "+_a(n))])}function Is(e,t,n,r){const o=new Lt(null),i=Ho(_a(r),o,e);let a;if(Da(r)){const e=pn((e=>[oi(t,va(e)),As(i,t,!1,e[1])]),Ra(r));a=t=>n=>wr((e=>function(e,t){const n=Ra(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,Nn(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new mr(1,[t,new Qo(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(gt(2,(e=>{const r=e[0];return o=>0===o.tag?wr((e=>En(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new mr(0,Cn()))}(e,t,n))}else if(Oa(r))a=e=>n=>{if("string"==typeof n)return ks(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return ks(i,t,r,o[0],e,o.slice(1,o.length))}return new mr(1,[e,new Qo(0,"a string or array",n)])};else{if(!n){let e;const t=_a(r);throw e=Yt(zt("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}a=e=>t=>new mr(1,[e,new Qo(2,"an extra coder for "+_a(r),t)])}return o.contents=a,a}function As(e,t,n,r){let o,i,a;const s=_a(r),u=Uo(s,e);if(null==u){if(xa(r)){const n=As(e,t,!1,Sa(r));return e=>t=>_s(gt(2,n),e,t)}if(Ea(r)){const e=_a(ka(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,a=ps(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,a=hs(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,a=ms(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString(s))):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,a=ws(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,a=gs(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,nt(e))):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,a=ys(o)(i);if(1===a.tag)return new mr(1,a.fields[0]);{const e=a.fields[0];return Fr(e,Ia(n),{Equals:(e,t)=>e===t,GetHashCode:it})?new mr(0,Aa(n,e.toString())):new mr(1,[o,new Qo(1,_a(n),i,"Unkown value provided for the enum")])}};{const e=_a(r),t=qt(zt("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(Ca(r)){if(Pa(r)){const n=pn((n=>As(e,t,!1,n)),Ma(r));return e=>t=>Array.isArray(t)?wr((e=>Nn(e)),Ts("tuple elements",n,e,t)):new mr(1,[e,new Qo(0,"an array",t)])}{const s=_a(Ta(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=As(e,t,!0,ua(r)[0]),e=>t=>{return n=gt(2,o),r=e,null==(i=t)?new mr(0,void 0):wr(rn,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=As(e,t,!1,ua(r)[0]),e=>t=>vs(gt(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const n=As(e,t,!1,ua(r)[0]),o=As(e,t,!1,ua(r)[1]);let i;const s=Pn([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new mr(1,[n,new Qo(0,"an object",r)]):Gr(((o,i)=>{if(0===o.tag){const a=e(n,i);if(0===a.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new mr(0,En([a.fields[0],e.fields[0]],o.fields[0])):new mr(1,e.fields[0])}return new mr(1,a.fields[0])}return o}),new mr(0,Cn()),Object.keys(r))}(gt(2,n),gt(2,o),e,t),(a=Ss(gt(2,n),gt(2,o)),e=>t=>vs(gt(2,a),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(kn(o))return new mr(1,[n,new Qo(7,i)]);{const a=$s(n,gt(2,In(o)),r);if(1===a.tag){e=An(o),t=Fn(i,Tn(a.fields[0]));continue e}return new mr(0,a.fields[0])}}})(s,Cn());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new mr(1,o.fields[0]):new mr(0,e(o.fields[0]))}(Cs,gt(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const n=As(e,t,!1,ua(r)[0]);return e=>t=>{const r=_s(gt(2,n),e,t);return 0===r.tag?new mr(0,Es(r.fields[0])):new mr(1,r.fields[0])}}return Is(e,t,n,r)}}return"System.Boolean"===s?e=>t=>{return n=e,"boolean"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===s?e=>t=>{return n=e,null==(r=t)?new mr(0,void 0):new mr(1,[n,new Qo(0,"null",r)]);var n,r}:"System.String"===s?e=>t=>{return n=e,"string"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a string",r)]);var n,r}:"System.SByte"===s?ps:"System.Byte"===s?hs:"System.Int16"===s?ms:"System.UInt16"===s?ws:"System.Int32"===s?gs:"System.UInt32"===s?ys:"System.Double"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a float",r)]);var n,r}:"System.Single"===s?e=>t=>{return n=e,"number"==typeof(r=t)?new mr(0,r):new mr(1,[n,new Qo(0,"a float32",r)]);var n,r}:"System.DateTime"===s?e=>t=>function(e,t){if("string"==typeof t){let r,o=Ct(-621355968e5,0);return r=[Tt(t,new Lt((()=>o),(e=>{o=e}))),o],r[0]?new mr(0,1===(n=r[1]).kind?n:Ct(n.getTime(),1)):new mr(1,[e,new Qo(0,"a datetime",t)])}var n;return new mr(1,[e,new Qo(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=$i(-621355968e5,0);return n=[pi(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a datetimeoffset",t)])}return new mr(1,[e,new Qo(0,"a datetime",t)])}(e,t):"System.TimeSpan"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[ia(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a timespan",t)])}return new mr(1,[e,new Qo(0,"a timespan",t)])}(e,t):"System.Guid"===s?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[ui(t,new Lt((()=>r),(e=>{r=e}))),r],n[0]?new mr(0,n[1]):new mr(1,[e,new Qo(0,"a guid",t)])}return new mr(1,[e,new Qo(0,"a guid",t)])}(e,t):"System.Object"===s?e=>e=>new mr(0,e):Is(e,t,n,r)}{const e=u;return t=>n=>e.contents(t)(n)}}const Ns=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 Rs=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 Ns(n)}(e,0)&256)}(e);function Ms(e,t){return e.replace(/[a-z]?[A-Z]/g,(e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase()))}function Os(e,t=0){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case 1:return e.charAt(0).toLowerCase()+e.slice(1);case 2:return Ms(e,"_");case 3:return Ms(e,"_").toUpperCase();case 4:return Ms(e,"-");default:return e}}(e,t),n[e]=r}for(let t of e){let e=0;if(null==t&&o(t),t instanceof Bt){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}function Ds(e,t){return!t.has(e)&&(t.add(e),!0)}function Ps(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Fs{constructor(e,t){const n=new Lt(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=Je(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();Vs(n.contents,e)}}finally{qe(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return Je(this)}GetEnumerator(){return Je(Ar(this.hashMap.values()))}[Symbol.iterator](){return Xe(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){Vs(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){Gs(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Hs(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Gr(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ls(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Us(this,e)}get size(){return 0|Ls(this)}add(e){return Vs(this,e),this}clear(){Gs(this)}delete(e){return Us(this,e)}has(e){return Hs(this,e)}keys(){return Vr((e=>e),this)}values(){return Vr((e=>e),this)}entries(){return Vr((e=>[e,e]),this)}forEach(e,t){const n=this;Lr((t=>{e(t,t,n)}),n)}}function Bs(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,a=n,s=new Lt((()=>o),(e=>{o=e})),!!i.has(a)&&(s.contents=i.get(a),!0)),o],r[0]?[!0,n,r[1].findIndex((n=>e.comparer.Equals(t,n)))]:[!1,n,-1];var i,a,s}function Gs(e){e.hashMap.clear()}function Ls(e){let t=0,n=Je(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{qe(n)}return 0|t}function Vs(e,t){const n=Bs(e,t);return n[0]?!(n[2]>-1)&&(Ps(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Hs(e,t){const n=Bs(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Us(e,t){const n=Bs(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return Ps(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}class js extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}const zs=zo([["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 Ws extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HELP","VETStudentLoan","FinancialSupplement","StudentStartUpLoan","TradeSupportLoan"]}}class Ys extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}function qs(e){return wr((e=>new Ys(e.Code,e.Name)),function(e){const t=function(e){return cn((t=>new js(e,t)),Uo(e,zs))}(e);return jr(Yt(zt("Country code:%A is not accepted"))(e),t)}(e))}class Ks extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}const Zs=new Ks(2,{HomeCountry:void 0});function Js(e){return new Ks(2,{HomeCountry:e})}class Xs extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FullTime","PartTime","LabourHire","SuperIncomeStream","Casual"]}}class Qs extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn"]}}class eu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Under18AndBelowTaxThreshold","Pending","Pensioner"]}}class tu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PreviousSurname"]}}function nu(e){return new tu(0,e)}function ru(e){return e.fields[0]}function ou(e){return Jr(0,(()=>gr((e=>{const t=e;return Xr(0,function(e,t){return function(e){if(We(e))return 0===e.length;if(e instanceof gn)return kn(e);{const t=kr(e);try{return!t["System.Collections.IEnumerator.MoveNext"]()}finally{qe(t)}}}(t)?new mr(1,e):new mr(0,void 0)}("TFN must not contain all zeros",(n={Equals:(e,t)=>e===t,GetHashCode:ot},function(e){return e instanceof gn?Nn(e):Array.from(e)}(function(e,t,n){return Ir((()=>{const r=new Fs(e,n);return Br((e=>Ds(e,r)),t)}))}(["0"],t.split(""),n)))),(()=>t));var n}),function(e){return Jr(0,(()=>{const t=en(Rs,e);return gr((()=>gr((()=>Xr(0,zr(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=dn(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),pn((e=>fi(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))),zr(9,"TFN must be 9 digits",t.length))),zr(e,"TFN must contain digits only",t))}))()}(e))))()}class iu extends Gt{constructor(e,t){super(),this.Code=e,this.Name=t}}new class extends Gt{constructor(e){super(),this.Unused=e}}(void 0);class au extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function su(e){switch(e.tag){case 1:return new mr(0,new Ks(1));case 2:return ln(cn((e=>wr(Js,qs(e.Code))),e.fields[0].HomeCountry),new mr(0,Zs));default:return new mr(0,new Ks(0))}}function uu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}function lu(e){switch(e){case 0:return new mr(0,new Ws(0));case 1:return new mr(0,new Ws(1));case 2:return new mr(0,new Ws(2));case 3:return new mr(0,new Ws(3));case 4:return new mr(0,new Ws(4));default:return new mr(1,"Invalid DebtSupport")}}function cu(e){switch(e.tag){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}}const fu=e=>{return function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(kn(i))return wr(Mn,r);{const a=Jr(0,(()=>gr((e=>Xr(0,r,(t=>En(e,t)))),o(In(i)))))();if(1===a.tag)return a;e=a,t=o,n=An(i);continue e}}}(new mr(0,Cn()),e,t)}(lu,(t={Equals:(e,t)=>e===t,GetHashCode:it},Mr(function(e,t){return Ir((()=>{const n=new Fs([],t);return Br((e=>Ds(e,n)),e)}))}(e,t))));var t};function du(e){switch(e.tag){case 1:return 1;case 2:return 2;default:return 0}}class $u extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}function pu(){return $a("Dto.Dto.ProvidedTfnInformationDto",[],$u,(()=>[[["Item",ga]],[["Item",ma("Dto.Dto.ExemptionReasonDto",ba,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))}class hu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","Exempted"]}}class mu extends Gt{constructor(e,t,n,r,o,i,a){super(),this.TfnInformation=e,this.PreviousSurname=t,this.ResidencyStatus=0|n,this.ResidencyStatusV2=r,this.EmploymentBasis=0|o,this.IsTaxFreeThresholdClaimed=i,this.HasDebtSupport=a}}class wu extends Gt{constructor(e,t){super(),this.Meta=e,this.Data=t}}class gu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AustralianResidentForTaxPurposes","ForeignResidentForTaxPurposes","WorkingHolidayMaker"]}}function yu(){return $a("Dto.Commands.ResidencyStatusV2Dto",[],gu,(()=>[[],[],[["Item",fa("Dto.Commands.WorkingHolidayPayload",[],bu,(()=>[["HomeCountry",fa("Dto.Commands.CountryCode",[],vu,(()=>[["Code",ga]]))]]))]]]))}class bu extends Gt{constructor(e){super(),this.HomeCountry=e}}class vu extends Gt{constructor(e){super(),this.Code=e}}function _u(e){switch(e.tag){case 1:return new mr(0,new gu(1));case 2:return wr((e=>new gu(2,new bu(new vu(e.Code)))),jr("Home country should be specified for WorkingHolidayMaker",e.fields[0].HomeCountry));default:return new mr(0,new gu(0))}}class xu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Create","CreateV2","ChangeTfnInformation","ChangePreviousSurname","ChangeResidencyStatus","ChangeResidencyStatusV2","ChangeEmploymentBasis","ChangeTaxFreeThresholdClaimed","ChangeDebtSupport"]}}function Su(e){return e}function Cu(e){return Array.from(e)}function Eu(e){return St(e,"O")}function Tu(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 na(e/864e5)}(e)),o=Math.abs(function(e){return na(e%864e5/36e5)}(e)),i=Math.abs(function(e){return na(e%36e5/6e4)}(e)),a=Math.abs(function(e){return na(e%6e4/1e3)}(e)),s=Math.abs(function(e){return na(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:et(o,2)}:${et(i,2)}:${et(a,2)}${0!==s||"c"!==t&&"g"!==t?"g"===t?"."+et(s,3):"."+function(e,t,n){let r=e.toString(10);for(;r.length<3;)r="0"+r;for(;r.length<7;)r+="0";return r}(s):""}`}(e)}function ku(){return null}function Iu(e){return St(e,"O")}function Au(e,t,n,r){const o=new Lt(null),i=Ho(_a(r),o,e);let a;if(Da(r)){const e=pn((e=>{const r=oi(t,va(e)),o=Nu(i,t,n,e[1]);return t=>i=>{const a=function(e,t){return e[t[0]]}(t,e);return(!n||n&&null!=a)&&(i[r]=o(a)),i}}),Ra(r));a=t=>Gr(((e,n)=>n(t)(e)),{},e)}else{if(!Oa(r)){let e;const t=_a(r);throw e=Yt(zt("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}a=e=>{const o=function(e,t){const n=Na(t)[e.tag];if(null==n)throw new Error(`Cannot find case ${e.name} in union type`);return[n,e.fields]}(e,r),a=o[0],s=o[1],u=0|s.length;if(0===u)return va(a);{const e=0|u,r=Fa(a),o=$n(new Array(e+1),0,e+1,null);o[0]=va(a);for(let a=1;a<=e;a++){const e=Nu(i,t,n,r[a-1][1]);o[a]=e(s[a-1])}return o}}}return o.contents=a,a}function Nu(e,t,n,r){const o=_a(r),i=Uo(o,e);if(null==i){if(xa(r)){const o=Nu(e,t,n,Sa(r));return e=>Cu(Vr(o,e))}if(Ea(r)){const e=_a(ka(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=_a(r);return qt(zt("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(Ca(r)){if(Pa(r)){const o=pn((r=>Nu(e,t,n,r)),Ma(r));return e=>{return Cu((t=(e,t)=>o[e](t),n=e,Dr((()=>kr(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?rn(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{qe(e)}))));var t,n}}{const o=_a(Ta(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new Qe((()=>{return o=Nu(e,t,n,ua(r)[0]),e=>{return null!=(t=cn(o,e))?on(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=Nu(e,t,n,ua(r)[0]);return e=>Cu(Vr(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=ua(r)[0],i=Nu(e,t,n,ua(r)[1]);if("System.String"===_a(o)||"System.Guid"===_a(o))return e=>Gr(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const a=Nu(e,t,n,o);return r=a,e=>Cu(Vr((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Au(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?ku:"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?Iu:"System.DateTimeOffset"===o?Eu:"System.TimeSpan"===o?Tu:"System.Guid"===o?Su:"System.Object"===o?e=>e:Au(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Ru(e){return Yt(zt("%s/tfn-declaration/backend"))(e)}function Mu(e,t){return eo(0,(()=>{const n=Jo(function(e){return new no(0,"Authorization",e)}(Yt(zt("Bearer %s"))(e)),t);let r;const o=Xo(n);return r=sr.Bind(o,(e=>sr.Return(new mr(0,e)))),sr.Delay((()=>sr.Bind(r,(e=>{let t,r;const o=e;return 1===o.tag?sr.Return(new mr(1,o.fields[0])):sr.ReturnFrom((t=o.fields[0],429===t.statusCode||t.statusCode>=500?(r=Xo(n),sr.Bind(r,(e=>sr.Return(new mr(0,e))))):Qr(0,t)))}))))}))}const Ou=e=>function(e,t){try{return $s("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new mr(1,"Given an invalid JSON: "+e.message);throw e}}(gt(2,function(e,t,n){const r=ln(t,new ei(0));return As(function(e){return null!=e?jo(((e,t)=>new Lt(t[1])),e.Coders):Wo()}(void 0),r,!1,e)}(fa("Dto.BackendApiModels.Read.TfnDeclarationDetailsWithMeta",[],wu,(()=>[["Meta",da(["AccountId",ga])],["Data",pa(fa("Dto.BackendApiModels.Read.TfnDeclarationDetails",[],mu,(()=>[["TfnInformation",$a("Dto.BackendApiModels.Read.TfnInformation",[],hu,(()=>[[["Item",ga]],[["Item",ma("Dto.Dto.ExemptionReasonDto",ba,[["Under18AndBelowTaxThreshold",0],["Pending",1],["Pensioner",2]])]]]))],["PreviousSurname",pa(ga)],["ResidencyStatus",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["ResidencyStatusV2",$a("Dto.Dto.ResidencyStatusV2Dto",[],au,(()=>[[],[],[["Item",da(["HomeCountry",pa(fa("Dto.Dto.CountryDto",[],iu,(()=>[["Code",ga],["Name",ga]])))])]]]))],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["IsTaxFreeThresholdClaimed",ya],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]])))]])),new ei(1))),e);function Du(e,t){return eo(0,(()=>{const n=Mu(e,Zo(new to(0),Ko(Ru(t))));return sr.Delay((()=>sr.Bind(n,(e=>{let t,n;const r=e;return 1===r.tag?sr.Return(new mr(1,r.fields[0])):sr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Ou(t.responseText),sr.Return(n)):sr.Return(new mr(1,"Unexpected response from backend"))))}))))}))}function Pu(e,t,n){return eo(0,(()=>{let r;const o=e.PreExistingTfnDec;let i,a;switch(2===o.tag&&0===o.fields[0].tag?(i=0,a=o.fields[0].fields[0]):i=1,i){case 0:r=eo(0,(()=>Qr(0,a)));break;case 1:r=Du(t,n)}return sr.Delay((()=>sr.Bind(r,(r=>{let o,i,a;const s=r;return 1===s.tag?sr.Return(new mr(1,s.fields[0])):sr.ReturnFrom((o=s.fields[0],a=function(e,t){return Jr(0,(()=>gr((n=>{const r=n,o=cn(ru,e.PreviousSurname.Value);return gr((n=>{const i=n;return gr((n=>{const a=0|n;return gr((n=>{const s=n,u=(e=>Bn(cu,e))(e.DebtSupportCheckboxGroup),l=t.Data;if(null!=l){const e=l;let t;if(0===r.tag)t=Cn();else if(1===r.fields[0].tag){const n=0|du(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=Cn();break;case 1:t=Tn(new xu(2,new $u(1,n)))}}else t=Tn(new xu(2,new $u(0,r.fields[0].fields[0].fields[0])));return gr((n=>Xr(0,_u(n),(n=>Fn(t,Mr(Ir((()=>Pr(ct(o,e.PreviousSurname)?Nr():Rr(new xu(3,o)),Ir((()=>Pr(ct(i,n)?Nr():Rr(new xu(5,i)),Ir((()=>Pr(a!==e.EmploymentBasis?Rr(new xu(6,a)):Nr(),Ir((()=>Pr(s!==e.IsTaxFreeThresholdClaimed?Rr(new xu(7,s)):Nr(),Ir((()=>ct(Gn(u,{Compare:dt}),Gn(e.HasDebtSupport,{Compare:dt}))?Nr():Rr(new xu(8,u))))))))))))))))))))),su(e.ResidencyStatusV2))}return Xr(0,0===r.tag?new mr(1,"New TFN declaration cannot have a truncated TFN"):1===r.fields[0].tag?new mr(0,new $u(1,du(r.fields[0].fields[0]))):new mr(0,new $u(0,r.fields[0].fields[0].fields[0])),(e=>Tn(new xu(1,{AccountId:t.Meta.AccountId,EmploymentBasis:a,HasDebtSupport:u,IsTaxFreeThresholdClaimed:s,PreviousSurname:o,ResidencyStatus:i,TfnInformation:e}))))}),jr("missing is tax-free threshold claimed",cn((e=>1!==e.tag),e.ClaimTaxFreeThreshold.Selected)))}),jr("missing employment basis",cn(uu,e.EmploymentBasisRadioButtonGroup.Value)))}),jr("missing residency status",fn((e=>{const t=_u(e);return 1===t.tag?void 0:t.fields[0]}),e.ResidencyStatus.Value)))}),jr("missing TFN info",e.TfnInformation.Value))))()}(e,o),i=sr.Return(a),sr.Delay((()=>sr.Bind(i,(e=>{let r,i,a;const s=e;return 1===s.tag?sr.Return(new mr(1,s.fields[0])):sr.ReturnFrom((r=s.fields[0],kn(r)?Qr(0,o):(i=Mu(t,(u=new ro(1,function(e,t){return JSON.stringify(t,gt(2,null),rn(e))}(0,function(e,t,n,r){const o=ln(t,new ei(0)),i=ln(void 0,!0);return Nu(function(e){return null!=e?jo(((e,t)=>new Lt(t[0])),e.Coders):Wo()}(void 0),o,i,e)}(ha($a("Dto.Commands.TfnDeclarationCommandDto",[],xu,(()=>[[["Item",da(["AccountId",ga],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ya],["PreviousSurname",pa(ga)],["ResidencyStatus",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])],["TfnInformation",pu()])]],[["Item",da(["AccountId",ga],["EmploymentBasis",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])],["HasDebtSupport",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))],["IsTaxFreeThresholdClaimed",ya],["PreviousSurname",pa(ga)],["ResidencyStatus",yu()],["TfnInformation",pu()])]],[["Item",pu()]],[["Item",pa(ga)]],[["Item",ma("Dto.Dto.ResidencyStatusDto",ba,[["AustralianResidentForTaxPurposes",0],["ForeignResidentForTaxPurposes",1],["WorkingHolidayMaker",2]])]],[["Item",yu()]],[["Item",ma("Dto.Dto.EmploymentBasisDto",ba,[["FullTime",0],["PartTime",1],["LabourHire",2],["SuperIncomeStream",3],["Casual",4]])]],[["Item",ya]],[["Item",ha(ma("Dto.Dto.DebtSupportDto",ba,[["HELP",0],["VETStudentLoan",1],["FinancialSupplement",2],["StudentStartUpLoan",3],["TradeSupportLoan",4]]))]]]))),new ei(1))(r))),l=Zo(new to(2),Ko(Ru(n))),a=new oo(l.url,l.method,l.headers,l.withCredentials,l.overridenMimeType,l.overridenResponseType,l.timeout,u),Jo(new no(0,"Content-Type","application/json"),a))),sr.Delay((()=>sr.Bind(i,(e=>{let t,n;const r=e;return 1===r.tag?sr.Return(new mr(1,r.fields[0])):sr.ReturnFrom((t=r.fields[0],200===t.statusCode?(n=Ou(t.responseText),sr.Return(n)):sr.Return(new mr(1,"Unexpected response from backend"))))})))))));var u,l}))))))}))))}))}function Fu(e,t,n){On((n=>{try{n(t)}catch(t){e(t)}}),n)}function Bu(){return Cn()}function Gu(e){return Tn((t=>{t(e)}))}function Lu(e,t,n,r,o){const i=function(e,t,n,r){const o=0|pt(e,n);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return n=>{const o=0|pt(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return Ir((()=>{return t=i,n=e,Tr((()=>function(e,t){let n,r=t;return Cr((()=>{if(null!=n){const e=n[0];return n[1],e}return vr()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}class Vu extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Hu{constructor(e){this.state=new Vu(0,$n(new Array(ht(dt,e,10)),0,ht(dt,e,10),null),0)}}function Uu(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 Vu(0,o,n):new Vu(1,o,n,i),rn(o[r])}}class ju extends Gt{constructor(e,t,n,r,o,i,a){super(),this.init=e,this.update=t,this.subscribe=n,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=a}}function zu(e,t){const n=t.init(e),r=n[0],o=new Hu(10);let i=!1,a=r;const s=bt(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],a=0|n.fields[2],s=n.fields[0];s[i]=t;const u=(i+1)%s.length|0;e.state=u===a?new Vu(1,(r=a,o=s,Array.from(Ir((()=>Pr(Hr(r,o),Ir((()=>{return Pr((e=r,t=o,Dr((()=>kr(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return rn(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(br+"\\nParameter name: source")}}),(e=>{qe(e)}))),Ir((()=>Ur((e=>Rr(null)),Lu(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),s.length,0):new Vu(1,s,u,a)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new Vu(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=rn(e);for(;null!=n;){const e=on(n);try{const n=t.update(e,a),r=n[0];t.setState(r,s),Fu((n=>{t.onError([Yt(zt("Error in command while handling: %A"))(e),n])}),s,n[1]),a=r}catch(n){t.onError([Yt(zt("Unable to process the message: %A"))(e),n])}n=Uu(o)}i=!1}}]);t.setState(r,s),Fu((e=>{t.onError(["Error intitializing:",e])}),s,function(e){const t=bn();let n=t;const r=e=>{n=Rn(((e,t)=>{const n=new gn(t,void 0);return e.tail=n,n}),n,e)};if(We(e))e.forEach(r);else if(e instanceof gn)On(r,e);else{const t=Je(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();)r(t["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{qe(t)}}const o=n,i=bn();return o.tail=i,Sn(t)}(Pn([(()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Bu()}})(),n[1]])))}class Wu{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Yu(){return new Wu}function qu(e,t,n,r){zu(t,function(e,t){return new ju(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=rn(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 on(o);throw new Error("Elmish program has not initialized")}function Ku(e,t){return function(e,t,n){const r=Jn(Yu)[0],o=Jn((()=>qu(e,t,r))),i=o[1];return Xn((()=>(function(e){return e.hasDisposedOnce}(r)&&i(qu(e,t,r)),Zn((()=>{!function(e){const t=e.state;if(null!=t){const e=on(t);Ye(e)&&qe(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),ln(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 Zu(e,t,n){return Ku((()=>function(e,t,n){return new ju(e,t,(e=>Bu()),n,gt(2,(e=>{const t=bt(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(rn(t),n)}),gt(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}class Ju extends Gt{constructor(e,t){super(),this.Value=e,this.Meta=t}}function Xu(){return new Ju(void 0,{Valid:!1})}function Qu(e){return new Ju(e,{Valid:!0})}function el(e){switch(e){case"Under18AndBelowTaxThreshold":return new eu(0);case"Pending":return new eu(1);case"Pensioner":return new eu(2);default:return}}function tl(e){switch(e){case"AustralianResidentForTaxPurposes":return new Ks(0);case"ForeignResidentForTaxPurposes":return new Ks(1);case"WorkingHolidayMaker":return Zs;default:return}}function nl(e){switch(e.tag){case 1:return"ForeignResidentForTaxPurposes";case 2:return"WorkingHolidayMaker";default:return"AustralianResidentForTaxPurposes"}}function rl(e){switch(e){case"HELP":return new Ws(0);case"VETStudentLoan":return new Ws(1);case"FinancialSupplement":return new Ws(2);case"StudentStartUpLoan":return new Ws(3);case"TradeSupportLoan":return new Ws(4);default:return}}function ol(e){switch(e){case"FullTime":return new Xs(0);case"PartTime":return new Xs(1);case"LabourHire":return new Xs(2);case"SuperIncomeStream":return new Xs(3);case"Casual":return new Xs(4);default:return}}function il(e){return p("p",{className:Jt(" ",["block","text-sm","font-medium","text-gray-700","leading-5"]),children:e})}class al extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Yes","No"]}}class sl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select","SelectInternal"]}}class ul extends Gt{constructor(e,t){super(),this.Selected=e,this.Meta=t}}function ll(e){return new ul(e,{Touched:!1})}function cl(e,t){return 1===e.tag?e.fields[1]||!t.Meta.Touched?new ul(e.fields[0],t.Meta):t:new ul(e.fields[0],{Touched:!0})}function fl(e){const t=ct(e.Parent.State.Selected,e.Selection)?Pn(["bg-white","border-gray-200","shadow-sm","text-gray-900"]):Pn(["shadow-none","text-gray-700"]);return p("button",{className:Jt(" ",Fn(Pn(["relative","w-1/2","border-gray-200","rounded-md","shadow-sm","py-2","text-sm","font-medium","whitespace-nowrap","focus:outline-none","focus:ring-inset","focus:ring-1","focus:ring-primary-focus","focus:z-10","w-auto","px-8"]),t)),type:"button",name:"yesNoButtonGroup",onClick:t=>{e.Parent.Dispatch(new sl(0,e.Selection))},disabled:ct(e.Parent.Disable,e.Selection),children:Ft(e.Selection)})}function dl(e){let t;return p("div",mt(Pn([["className",Jt(" ",["relative","self-start","bg-gray-100","rounded-lg","p-0.5","flex","mt-2","space-x-0.5"])],(t=[fl({Parent:e,Selection:new al(0)}),fl({Parent:e,Selection:new al(1)})],["children",Ln.Children.toArray(Array.from(t))])])))}class $l extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class pl extends Gt{constructor(e){super(),this.Selected=e}}function hl(e){let t;const n=Zu((r=e.InitialValue,[new pl(r),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){return new pl(e.fields[0])}(t);return e(new Ju(r.Selected,{Valid:null!=r.Selected})),[r,Bu()]}(e.OnUpdate,t)));var r;return p("div",mt(Pn([["className",Jt(" ",["space-y-2","mt-2"])],(t=Mr(Ir((()=>Ur((t=>{let r,o;const i=t[0];return Rr(p("label",mt(Pn([["className",Jt(" ",["flex","items-start"])],(r=[p("input",{className:Jt(" ",["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:sn(n[0].Selected)===i,onChange:e=>{e.target.checked,n[1](new $l(0,i))}}),p("label",mt(Pn([["className",Jt(" ",["ml-3","block","text-sm"])],["for",i],(o=Mr(Ir((()=>Pr(Rr(p("span",{className:Jt(" ",["block","text-gray-900"]),children:t[1]})),Ir((()=>{const e=t[2];if(null==e)return Rr(null);{const t=e;return Rr(p("span",{className:Jt(" ",["block","text-gray-500"]),children:t}))}})))))),["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])]))))}),e.ValueLabelPairs)))),["children",Ln.Children.toArray(Array.from(t))])])))}class ml extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetText","SetTouched"]}}class wl extends Gt{constructor(e,t){super(),this.Text=e,this.Meta=t}}class gl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Number","Text"]}}function yl(e){let t;const n=Zu(function(e,t){const n=ln(e,"");return[new wl(n,{Touched:!1,Valid:t(n)}),Bu()]}(e.InitialValue,e.Validator),((t,n)=>function(e,t,n,r){const o=function(e,t,n){if(1===t.tag)return new wl(n.Text,{Touched:!0,Valid:n.Meta.Valid});{const r=t.fields[0];return new wl(r,{Touched:n.Meta.Touched,Valid:e(r)})}}(t,n,r);return e(new Ju(o.Text,{Valid:o.Meta.Valid})),[o,Bu()]}(e.OnUpdate,e.Validator,t,n))),r=n[0],o=n[1];return p("div",mt(Pn([["className",Jt(" ",Fn(e.AdditionalWrapperClasses,Tn("z-10")))],(t=Mr(Ir((()=>Pr(Rr(p("input",mt(Mr(Ir((()=>Pr(Rr(["className",Jt(" ",Fn(e.AdditionalInputClasses,Fn(Pn(["block","w-full","pr-10","focus:outline-none","text-sm","rounded-md","border-gray-300"]),Mr(Ir((()=>!r.Meta.Valid&&r.Meta.Touched?["border-red-300","text-red-900","placeholder-red-300","focus:ring-red-500","focus:border-red-500"]:Nr()))))))]),Ir((()=>Pr(Rr(["type","text"]),Ir((()=>Pr(Rr(["onChange",t=>{const n=t.target.value;o(new ml(0,1===e.InputType.tag?n:en(Rs,n)))}]),Ir((()=>{let t;return Pr(Rr((t=r.Text,["ref",e=>{null==e||ct(e.value,t)||(e.value=t)}])),Ir((()=>Pr(Rr(["onBlur",e=>{o(new ml(1))}]),Ir((()=>ct(e.InputType,new gl(0))?Rr(["inputMode","numeric"]):Nr()))))))}))))))))))))))),Ir((()=>!r.Meta.Valid&&r.Meta.Touched?Rr(p("div",{className:Jt(" ",["mt-1","text-sm","text-red-600"]),children:e.InvalidFeedback})):Nr())))))),["children",Ln.Children.toArray(Array.from(t))])])))}class bl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetTfnInput","SetTfnExemptionReason","SwitchEditingState","HideAlert"]}}class vl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tfn","Exempted"]}}class _l extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TfnTruncated","TfnValue"]}}class xl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Truncated","Editing"]}}class Sl extends Gt{constructor(e,t,n,r){super(),this.YesNoButtonGroup=e,this.TruncatedTfn=t,this.CurrentAlert=n,this.EditingState=r}}function Cl(e){const t=e.EditingState;if(1===t.tag){const e=t.fields[0];return new Ju(cn((e=>new _l(1,e)),e.Value),e.Meta)}return new Ju(new _l(0,sn(e.TruncatedTfn)),{Valid:!0})}const El=e=>function(e){return 1!==e.tag}(ou(e));function Tl(e){const t=e.EditingState;if(1===t.tag){const n=t.fields[0],r=n.Value;if(null==r)return new Sl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new xl(1,new Ju(n.Value,{Valid:!1})));if(1===r.tag)return new Sl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new xl(1,new Ju(n.Value,{Valid:!0})));{const t=r.fields[0].fields[0];return new Sl(e.YesNoButtonGroup,e.TruncatedTfn,e.CurrentAlert,new xl(1,new Ju(n.Value,{Valid:El(t)})))}}return e}function kl(e){let t,n,r,o,i;const a=Zu(function(e){let t,n,r;return[Tl(new Sl(ll(null!=e&&1===e.tag&&1===e.fields[0].tag?new al(1):new al(0)),(t=e,null!=t&&0===t.tag?(n=t.fields[0],n):void 0),void 0,null==e?new xl(1,Xu()):1===e.tag?(r=e.fields[0],new xl(1,new Ju(r,{Valid:!1}))):new xl(0))),Bu()]}(e.InitialValue),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o,i,a,s,u,l,c,f;return Tl(1===e.tag?(n=e.fields[0],r=cn((e=>new vl(0,new Qs(0,e))),n.Value),t.EditingState.tag,new Sl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new xl(1,new Ju(r,n.Meta)))):2===e.tag?(o=e.fields[0],i=cn((e=>new vl(1,e)),fn(el,o.Value)),t.EditingState.tag,new Sl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new xl(1,new Ju(i,o.Meta)))):3===e.tag?1===t.EditingState.tag?new Sl(t.YesNoButtonGroup,t.TruncatedTfn,t.CurrentAlert,new xl(0)):new Sl(t.YesNoButtonGroup,t.TruncatedTfn,new Wr(2,"Please click the continue button at the end of\n this form to save the changes to your TFN."),new xl(1,Xu())):4===e.tag?new Sl(t.YesNoButtonGroup,t.TruncatedTfn,void 0,t.EditingState):(a=e.fields[0],a.tag,u=[a.fields[0],t.EditingState],s=1===u[0].tag?1===u[1].tag?(l=u[1].fields[0].Value,null!=l&&1===l.tag?t.EditingState:new xl(1,Xu())):new xl(1,Xu()):1===u[1].tag?(c=[u[1].fields[0].Value,t.TruncatedTfn],null!=c[0]&&0===c[0].tag?t.EditingState:null!=c[1]?(f=c[1],new xl(0)):new xl(1,Xu())):new xl(0),new Sl(cl(a,t.YesNoButtonGroup),t.TruncatedTfn,t.CurrentAlert,s)))}(t,n);return e(Cl(r)),[r,Bu()]}(e.OnUpdate,t,n))),s=a[0],u=a[1],l=null==s.TruncatedTfn?null:p("div",mt(Tn((t=[p("button",mt(Pn([["className",Jt(" ",["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=Mr(Ir((()=>ct(s.EditingState,new xl(0))?Pr(Rr(Hn),Ir((()=>Rr(p("span",{children:["Edit"]}))))):Pr(Rr(Un),Ir((()=>Rr(p("span",{children:["Cancel"]})))))))),["children",Ln.Children.toArray(Array.from(n))]),["onClick",e=>{u(new bl(3))}]])))],["children",Ln.Children.toArray(Array.from(t))]))));return p("div",mt(Pn([["className",Jt(" ",qn)],(r=[(o=Mr(Ir((()=>{const e=s.CurrentAlert;return Rr(null==e?null:p(Zr,{alert:e,hideAlert:()=>{u(new bl(4))}}))}))),p("div",{children:Ln.Children.toArray(Array.from(o))})),il("Do you have your Tax File Number (TFN)?"),p(dl,{Disable:void 0,Dispatch:e=>{u(new bl(0,e))},State:s.YesNoButtonGroup}),p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(i=Mr(Ir((()=>{let e,t,n;const r=s.YesNoButtonGroup.Selected;if(null==r)return Rr(null);if(1===r.tag)return Rr(p(hl,(e=Bn((e=>[Ft(e[0]),e[1],e[2]]),Pn([[new eu(1),"My TFN is pending",void 0],[new eu(0),"I'm under 18 and don't have a TFN",void 0],[new eu(2),"I have an exemption from quoting a TFN","E.g. receiving a social security or service pension"]])),{InitialValue:(t=Cl(s).Value,null!=t&&1===t.tag&&1===t.fields[0].tag?(n=t.fields[0].fields[0],Ft(n)):void 0),Name:"TfnExemption",OnUpdate:e=>{u(new bl(2,e))},ValueLabelPairs:e})));{const e=[s.TruncatedTfn,s.EditingState];let t,n;switch(null!=e[0]&&0===e[1].tag?(t=0,n=e[0]):t=1,t){case 0:return Pr(Rr(il("Enter your TFN")),Ir((()=>{let e,t,r;return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-1","flex","rounded-md","shadow-sm"])],(e=[p("div",mt(Pn([["className","relative flex items-stretch flex-grow"],(t=[p("input",mt(Pn([["className",Jt(" ",["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||ct(e.value,r)||(e.value=r)}])])))],["children",Ln.Children.toArray(Array.from(t))])]))),l],["children",Ln.Children.toArray(Array.from(e))])]))))})));case 1:return Pr(Rr(il("Enter your TFN")),Ir((()=>{let e,t;return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-1","flex"])],(e=[p("div",mt(Pn([["className",Jt(" ",["relative","flex","items-stretch","flex-grow"])],(t=[p(yl,{AdditionalInputClasses:Mr(Ir((()=>Pr(Rr("focus:ring-primary-focus"),Ir((()=>Pr(Rr("focus:border-primary-focus"),Ir((()=>Pr(Rr("block"),Ir((()=>Pr(Rr("w-full"),Ir((()=>null==s.TruncatedTfn?Rr("rounded-md"):Rr("rounded-none rounded-l-md")))))))))))))))),AdditionalWrapperClasses:Pn(["block","w-full"]),InitialValue:void 0,InputType:new gl(0),InvalidFeedback:"That isn’t a valid Tax File Number",OnUpdate:e=>{u(new bl(1,e))},Validator:El}),l],["children",Ln.Children.toArray(Array.from(t))])])))],["children",Ln.Children.toArray(Array.from(e))])]))))})))}}}))),["children",Ln.Children.toArray(Array.from(i))])])))],["children",Ln.Children.toArray(Array.from(r))])])))}class Il extends Bt{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 Al extends Gt{constructor(e,t,n,r,o,i,a,s){super(),this.PreExistingTfnDec=e,this.CurrentAlert=t,this.TfnInformation=n,this.PreviousSurname=r,this.ResidencyStatus=o,this.ClaimTaxFreeThreshold=i,this.DebtSupportCheckboxGroup=a,this.EmploymentBasisRadioButtonGroup=s}}class Nl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Web","ReactNative","WebComponent"]}}function Rl(){const e=Qt(document.URL,["/"],null,0),t=hn("web",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),n=hn("react-native",e,{Equals:(e,t)=>e===t,GetHashCode:ot}),r=[an(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 mr(0,new Nl(2,r[0]));case 1:return new mr(0,new Nl(0));case 2:return new mr(0,new Nl(1));case 3:return new mr(1,"Could not determine the embed mode")}}class Ml extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SuccessRedirectionUrl"]}}function Ol(){let e;const t=Rl();var n;0===t.tag&&(0===t.fields[0].tag?Lr((e=>{window.parent.location.href=e}),un((n=new Ml(0),an(sessionStorage.getItem(function(e){return Ft(e)}(n)))))):1===t.fields[0].tag?Lr((e=>{let t;t=JSON.stringify({stepStatus:"completed"}),e.postMessage(t)}),un(window.ReactNativeWebView)):(e=new CustomEvent("step-completion",{bubbles:!0,detail:"tax"}),t.fields[0].fields[0].dispatchEvent(e)))}function Dl(e,t){let n;switch(e.tag){case 1:return[new Al(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,e.fields[0],t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 2:{const r=e.fields[0];return[new Al(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,r,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),(n=r.Value,null==n?Bu():1===n.tag?Gu(new Il(3,new sl(1,new al(1),!1))):2===n.tag?Gu(new Il(3,new sl(1,new al(1),!0))):Gu(new Il(3,new sl(1,new al(0),!1))))]}case 3:return[new Al(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,cl(e.fields[0],t.ClaimTaxFreeThreshold),t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 4:return[new Al(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,e.fields[0],t.EmploymentBasisRadioButtonGroup),Bu()];case 5:{const n=fn(ol,e.fields[0].Value);return[new Al(t.PreExistingTfnDec,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,new Ju(n,{Valid:null!=n})),Bu()]}case 6:{const n=e.fields[0],r=new Al(n,t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),o=Gu(new Il(7,new Wr(1,"There was an error loading your tax declaration. Please try refreshing this page.")));!function(){let e,t;const n=an(document.getElementById("external-loading-page-container"));Lr((t=document.body,e=e=>t.removeChild(e),t=>{e(t)}),un(n))}();const i=Gu(new Il(10));if(2===n.tag){if(1===n.fields[0].tag)return[r,o];{const e=cn((e=>function(e,t){return Jr(0,(()=>{let n;return gr((n=>gr((r=>{const o=t.IsTaxFreeThresholdClaimed?new al(0):new al(1);return gr((i=>Xr(0,function(e){switch(e){case 0:return new mr(0,new Xs(0));case 1:return new mr(0,new Xs(1));case 2:return new mr(0,new Xs(2));case 3:return new mr(0,new Xs(3));case 4:return new mr(0,new Xs(4));default:return new mr(1,"Invalid EmploymentBasis")}}(t.EmploymentBasis),(a=>new Al(e.PreExistingTfnDec,e.CurrentAlert,Qu(n),Qu(cn(nu,t.PreviousSurname)),Qu(r),ll(o),i,Qu(a))))),fu(t.HasDebtSupport))}),su(t.ResidencyStatusV2))),(n=t.TfnInformation,1===n.tag?wr((e=>new _l(1,new vl(1,e))),function(e){switch(e){case 0:return new mr(0,new eu(0));case 1:return new mr(0,new eu(1));case 2:return new mr(0,new eu(2));default:return new mr(1,"Invalid ExemptionReason")}}(n.fields[0])):new mr(0,new _l(0,n.fields[0]))))}))()}(r,e)),n.fields[0].fields[0].Data);if(null==e)return[r,i];{const t=e;return 0===t.tag?[t.fields[0],i]:[r,o]}}}return 3===n.tag?[r,o]:[r,i]}case 7:return[new Al(t.PreExistingTfnDec,e.fields[0],t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 8:return[new Al(t.PreExistingTfnDec,void 0,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 9:return[new Al(new pr(2,new mr(0,e.fields[0])),t.CurrentAlert,t.TfnInformation,t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()];case 10:return function(){const e=Rl();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"},"*",rn(Cn()))}(),[t,Bu()];default:return[new Al(t.PreExistingTfnDec,t.CurrentAlert,e.fields[0],t.PreviousSurname,t.ResidencyStatus,t.ClaimTaxFreeThreshold,t.DebtSupportCheckboxGroup,t.EmploymentBasisRadioButtonGroup),Bu()]}}class Pl extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["YesNoButtonGroupMsg","SetPreviousSurname"]}}class Fl extends Gt{constructor(e,t){super(),this.YesNoButtonGroup=e,this.Data=t}}function Bl(e){return!("string"!=typeof(t=e)||/^\s*$/.test(t));var t}function Gl(e){const t=e.YesNoButtonGroup.Selected;return null==t?new Fl(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:!1})):1===t.tag?new Fl(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:!0})):new Fl(e.YesNoButtonGroup,new Ju(e.Data.Value,{Valid:ln(cn((e=>Bl(e.fields[0])),e.Data.Value),!1)}))}function Ll(e){let t;const n=Zu((r=e.InitialValue,[Gl(new Fl(ll(new al(null==r?1:0)),new Ju(r,{Valid:!1}))),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){let n,r,o;return Gl(1===e.tag?(n=e.fields[0],new Fl(t.YesNoButtonGroup,new Ju(cn((e=>new tu(0,e)),n.Value),{Valid:n.Meta.Valid}))):(r=e.fields[0],r.tag,o=1===r.fields[0].tag?new Ju(void 0,t.Data.Meta):t.Data,new Fl(cl(r,t.YesNoButtonGroup),o)))}(t,n);return e(r.Data),[r,Bu()]}(e.OnUpdate,t,n)));var r;const o=n[0],i=n[1];return p("div",mt(Pn([["className",Jt(" ",qn)],(t=Mr(Ir((()=>Pr(Rr(il("Have you changed your surname since you last dealt with the Australian Tax Office (ATO)?")),Ir((()=>Pr(Rr(p(dl,{Disable:void 0,Dispatch:e=>{i(new Pl(0,e))},State:o.YesNoButtonGroup})),Ir((()=>{let e;const t=o.YesNoButtonGroup.Selected;let n;switch(n=null!=t&&0===t.tag?0:1,n){case 0:return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(e=[il("Enter your previous surname"),p(yl,{AdditionalInputClasses:Cn(),AdditionalWrapperClasses:Tn("mt-1"),InitialValue:cn(ru,o.Data.Value),InputType:new gl(1),InvalidFeedback:"Please enter your previous surname",OnUpdate:e=>{i(new Pl(1,e))},Validator:Bl})],["children",Ln.Children.toArray(Array.from(e))])]))));case 1:return Rr(null)}}))))))))),["children",Ln.Children.toArray(Array.from(t))])])))}let Vl="undefined"!=typeof window?ne:te;function Hl(e){let t=re(e);return Vl((()=>{t.current=e}),[e]),t}function Ul(e,t){let[n,r]=Q(e),o=Hl(e);return Vl((()=>r(o.current)),[o,r,...t]),n}function jl(){let e=[],t=[],n={enqueue(e){t.push(e)},addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add((()=>e.removeEventListener(t,r,o)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>n.requestAnimationFrame((()=>n.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return n.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0){let[t]=e.splice(n,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return n}function zl(){let[e]=Q(jl);return te((()=>()=>e.dispose()),[e]),e}let Wl=function(e){let t=Hl(e);return ze.useCallback(((...e)=>t.current(...e)),[t])},Yl={serverHandoffComplete:!1};var ql;let Kl=0;function Zl(){return++Kl}let Jl=null!=(ql=ze.useId)?ql:function(){let e=function(){let[e,t]=Q(Yl.serverHandoffComplete);return te((()=>{!0!==e&&t(!0)}),[e]),te((()=>{!1===Yl.serverHandoffComplete&&(Yl.serverHandoffComplete=!0)}),[]),e}(),[t,n]=ze.useState(e?Zl:null);return Vl((()=>{null===t&&n(Zl())}),[t]),null!=t?""+t:void 0};function Xl(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Xl),r}function Ql(e){return"undefined"==typeof window?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let ec=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var tc=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(tc||{}),nc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(nc||{}),rc=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(rc||{}),oc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(oc||{});function ic(e,t,n){let r=Hl(t);te((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}function ac(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function sc(e,t){let[n,r]=Q((()=>ac(e)));return Vl((()=>{r(ac(e))}),[e.type,e.as]),Vl((()=>{n||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}["textarea","input"].join(",");let uc=Symbol();function lc(...e){let t=re(e);te((()=>{t.current=e}),[e]);let n=Wl((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[uc])))?void 0:n}var cc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(cc||{});var fc=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(fc||{}),dc=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(dc||{});function $c({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a}){let s=hc(t,e);if(i)return pc(s,n,r,a);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return pc(t,n,r,a)}if(1&u){let{unmount:e=!0,...t}=s;return Xl(e?0:1,{0:()=>null,1:()=>pc({...t,hidden:!0,style:{display:"none"}},n,r,a)})}return pc(s,n,r,a)}function pc(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...s}=gc(e,["unmount","static"]),u=void 0!==e.ref?{[a]:e.ref}:{},l="function"==typeof i?i(t):i;s.className&&"function"==typeof s.className&&(s.className=s.className(t));let c={};if(o===m&&Object.keys(wc(s)).length>0){if(!He(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(s).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));return Ue(l,Object.assign({},hc(l.props,wc(gc(s,["ref"]))),c,u))}return p(o,Object.assign({},gc(s,["ref"]),o!==m&&u,o!==m&&c),l)}function hc(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if(t.defaultPrevented)return;e(t,...r)}}});return t}function mc(e){var t;return Object.assign(ge(e),{displayName:null!=(t=e.displayName)?t:e.name})}function wc(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function gc(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function yc(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))vc(n,bc(t,r),o);return n}function bc(e,t){return e?e+"["+t+"]":t}function vc(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())vc(e,bc(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):yc(n,t,e)}var _c=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_c||{});let xc=mc((function(e,t){let{features:n=1,...r}=e;return $c({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})})),Sc=G(null);Sc.displayName="OpenClosedContext";var Cc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Cc||{});function Ec({value:e,children:t}){return ze.createElement(Sc.Provider,{value:e},t)}var Tc=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Tc||{}),kc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kc||{}),Ic=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ic||{}),Ac=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ac||{}),Nc=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e))(Nc||{});function Rc(e,t=(e=>e)){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let Mc={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var n;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Rc(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let o=function(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1,i=(()=>{switch(e.focus){case 0:return n.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=n.slice().reverse().findIndex(((e,n,r)=>!(-1!==o&&r.length-n-1>=o||t.resolveDisabled(e))));return-1===e?e:n.length-1-e}case 2:return n.findIndex(((e,n)=>!(n<=o||t.resolveDisabled(e))));case 3:{let e=n.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:n.length-1-e}case 4:return n.findIndex((n=>t.resolveId(n)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===i?r:i}(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Rc(e,(e=>[...e,n]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n));let o={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(o.activeOptionIndex=0),o},4:(e,t)=>{let n=Rc(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}}},Oc=G(null);function Dc(e){let t=ae(Oc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Dc),t}return t}Oc.displayName="ComboboxActionsContext";let Pc=G(null);function Fc(e){let t=ae(Pc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Fc),t}return t}function Bc(e,t){return Xl(t.type,Mc,e,t)}Pc.displayName="ComboboxDataContext";let Gc=m,Lc=mc((function(e,t){let{name:n,value:r,onChange:o,disabled:i=!1,__demoMode:a=!1,nullable:s=!1,multiple:u=!1,...l}=e,[c,f]=ee(Bc,{dataRef:{current:null},comboboxState:a?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),d=re(!1),$=re({static:!1,hold:!1}),p=re({displayValue:void 0}),h=re(null),m=re(null),w=re(null),g=re(null),y=Wl(((e,t)=>e===t)),b=ie((e=>Xl(v.mode,{1:()=>r.some((t=>y(t,e))),0:()=>y(r,e)})),[r]),v=oe((()=>({...c,optionsPropsRef:$,inputPropsRef:p,labelRef:h,inputRef:m,buttonRef:w,optionsRef:g,value:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(d.current&&null===c.activeOptionIndex&&c.options.length>0){let e=c.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return c.activeOptionIndex},compare:y,isSelected:b,nullable:s,__demoMode:a})),[r,i,u,s,a,c]);Vl((()=>{c.dataRef.current=v}),[v]),function(e,t,n=!0){let r=re(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=o(n);if(null!==a&&a.ownerDocument.documentElement.contains(a)){for(let e of i){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a))return}return!function(e,t=0){var n;return e!==(null==(n=Ql(e))?void 0:n.body)&&Xl(t,{0:()=>e.matches(ec),1(){let t=e;for(;null!==t;){if(t.matches(ec))return!0;t=t.parentElement}return!1}})}(a,oc.Loose)&&-1!==a.tabIndex&&n.preventDefault(),t(n,a)}}te((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]),ic("click",(e=>o(e,(e=>e.target))),!0),ic("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}([v.buttonRef,v.inputRef,v.optionsRef],(()=>f({type:1})),0===v.comboboxState);let _=oe((()=>({open:0===v.comboboxState,disabled:i,activeIndex:v.activeOptionIndex,activeOption:null===v.activeOptionIndex?null:v.options[v.activeOptionIndex].dataRef.current.value})),[v,i]),x=ie((()=>{var e;if(!v.inputRef.current)return;let t=p.current.displayValue;v.inputRef.current.value="function"==typeof t?null!=(e=t(r))?e:"":"string"==typeof r?r:""}),[r,v.inputRef,p]),S=Wl((e=>{let t=v.options.find((t=>t.id===e));!t||(A(t.dataRef.current.value),x())})),C=Wl((()=>{if(null!==v.activeOptionIndex){let{dataRef:e,id:t}=v.options[v.activeOptionIndex];A(e.current.value),x(),f({type:2,focus:cc.Specific,id:t})}})),E=Wl((()=>{f({type:0}),d.current=!0})),T=Wl((()=>{f({type:1}),d.current=!1})),k=Wl(((e,t,n)=>(d.current=!1,e===cc.Specific?f({type:2,focus:cc.Specific,id:t,trigger:n}):f({type:2,focus:e,trigger:n})))),I=Wl(((e,t)=>(f({type:3,id:e,dataRef:t}),()=>f({type:4,id:e})))),A=Wl((e=>Xl(v.mode,{0:()=>o(e),1(){let t=v.value.slice(),n=t.indexOf(e);return-1===n?t.push(e):t.splice(n,1),o(t)}}))),N=oe((()=>({onChange:A,registerOption:I,goToOption:k,closeCombobox:T,openCombobox:E,selectActiveOption:C,selectOption:S})),[]);Vl((()=>{1===v.comboboxState&&x()}),[x,v.comboboxState]),Vl(x,[x]);let R=null===t?{}:{ref:t};return ze.createElement(Oc.Provider,{value:N},ze.createElement(Pc.Provider,{value:v},ze.createElement(Ec,{value:Xl(v.comboboxState,{0:Cc.Open,1:Cc.Closed})},null!=n&&null!=r&&yc({[n]:r}).map((([e,t])=>ze.createElement(xc,{features:_c.Hidden,...wc({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),$c({ourProps:R,theirProps:l,slot:_,defaultTag:Gc,name:"Combobox"}))))})),Vc=mc((function(e,t){var n,r;let{value:o,onChange:i,displayValue:a,type:s="text",...u}=e,l=Fc("Combobox.Input"),c=Dc("Combobox.Input"),f=lc(l.inputRef,t),d=l.inputPropsRef,$=`headlessui-combobox-input-${Jl()}`,p=zl();Vl((()=>{d.current.displayValue=a}),[a,d]);let h=Wl((e=>{switch(e.key){case Tc.Backspace:case Tc.Delete:if(0!==l.mode||!l.nullable)return;let t=e.currentTarget;p.requestAnimationFrame((()=>{""===t.value&&(c.onChange(null),l.optionsRef.current&&(l.optionsRef.current.scrollTop=0),c.goToOption(cc.Nothing))}));break;case Tc.Enter:if(0!==l.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===l.activeOptionIndex)return void c.closeCombobox();c.selectActiveOption(),0===l.mode&&c.closeCombobox();break;case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),Xl(l.comboboxState,{0:()=>{c.goToOption(cc.Next)},1:()=>{c.openCombobox()}});case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),Xl(l.comboboxState,{0:()=>{c.goToOption(cc.Previous)},1:()=>{c.openCombobox(),p.nextFrame((()=>{l.value||c.goToOption(cc.Last)}))}});case Tc.Home:case Tc.PageUp:return e.preventDefault(),e.stopPropagation(),c.goToOption(cc.First);case Tc.End:case Tc.PageDown:return e.preventDefault(),e.stopPropagation(),c.goToOption(cc.Last);case Tc.Escape:return 0!==l.comboboxState?void 0:(e.preventDefault(),l.optionsRef.current&&!l.optionsPropsRef.current.static&&e.stopPropagation(),c.closeCombobox());case Tc.Tab:if(0!==l.comboboxState)return;c.selectActiveOption(),c.closeCombobox()}})),m=Wl((e=>{c.openCombobox(),null==i||i(e)})),w=Ul((()=>{if(l.labelRef.current)return[l.labelRef.current.id].join(" ")}),[l.labelRef.current]),g=oe((()=>({open:0===l.comboboxState,disabled:l.disabled})),[l]);return $c({ourProps:{ref:f,id:$,role:"combobox",type:s,"aria-controls":null==(n=l.optionsRef.current)?void 0:n.id,"aria-expanded":l.disabled?void 0:0===l.comboboxState,"aria-activedescendant":null===l.activeOptionIndex||null==(r=l.options[l.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===l.mode||void 0,"aria-labelledby":w,disabled:l.disabled,onKeyDown:h,onChange:m},theirProps:u,slot:g,defaultTag:"input",name:"Combobox.Input"})})),Hc=mc((function(e,t){var n;let r=Fc("Combobox.Button"),o=Dc("Combobox.Button"),i=lc(r.buttonRef,t),a=`headlessui-combobox-button-${Jl()}`,s=zl(),u=Wl((e=>{switch(e.key){case Tc.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&o.openCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(o.openCombobox(),s.nextFrame((()=>{r.value||o.goToOption(cc.Last)}))),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Tc.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),o.closeCombobox(),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),l=Wl((e=>{if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();0===r.comboboxState?o.closeCombobox():(e.preventDefault(),o.openCombobox()),s.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),c=Ul((()=>{if(r.labelRef.current)return[r.labelRef.current.id,a].join(" ")}),[r.labelRef.current,a]),f=oe((()=>({open:0===r.comboboxState,disabled:r.disabled})),[r]),d=e;return $c({ourProps:{ref:i,id:a,type:sc(e,r.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(n=r.optionsRef.current)?void 0:n.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":c,disabled:r.disabled,onClick:l,onKeyDown:u},theirProps:d,slot:f,defaultTag:"button",name:"Combobox.Button"})})),Uc=mc((function(e,t){let n=Fc("Combobox.Label"),r=`headlessui-combobox-label-${Jl()}`;return $c({ourProps:{ref:lc(n.labelRef,t),id:r,onClick:Wl((()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}))},theirProps:e,slot:oe((()=>({open:0===n.comboboxState,disabled:n.disabled})),[n]),defaultTag:"label",name:"Combobox.Label"})})),jc=fc.RenderStrategy|fc.Static,zc=mc((function(e,t){var n;let{hold:r=!1,...o}=e,i=Fc("Combobox.Options"),a=lc(i.optionsRef,t),s=`headlessui-combobox-options-${Jl()}`,u=ae(Sc),l=null!==u?u===Cc.Open:0===i.comboboxState;Vl((()=>{var t;i.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[i.optionsPropsRef,e.static]),Vl((()=>{i.optionsPropsRef.current.hold=r}),[i.optionsPropsRef,r]),function({container:e,accept:t,walk:n,enabled:r=!0}){let o=re(t),i=re(n);te((()=>{o.current=t,i.current=n}),[t,n]),Vl((()=>{if(!e||!r)return;let t=Ql(e);if(!t)return;let n=o.current,a=i.current,s=Object.assign((e=>n(e)),{acceptNode:n}),u=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,s,!1);for(;u.nextNode();)a(u.currentNode)}),[e,r,o,i])}({container:i.optionsRef.current,enabled:0===i.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let c=Ul((()=>{var e,t,n;return null!=(n=null==(e=i.labelRef.current)?void 0:e.id)?n:null==(t=i.buttonRef.current)?void 0:t.id}),[i.labelRef.current,i.buttonRef.current]),f=oe((()=>({open:0===i.comboboxState})),[i]);return $c({ourProps:{"aria-activedescendant":null===i.activeOptionIndex||null==(n=i.options[i.activeOptionIndex])?void 0:n.id,"aria-labelledby":c,role:"listbox",id:s,ref:a},theirProps:o,slot:f,defaultTag:"ul",features:jc,visible:l,name:"Combobox.Options"})})),Wc=mc((function(e,t){var n,r;let{disabled:o=!1,value:i,...a}=e,s=Fc("Combobox.Option"),u=Dc("Combobox.Option"),l=`headlessui-combobox-option-${Jl()}`,c=null!==s.activeOptionIndex&&s.options[s.activeOptionIndex].id===l,f=s.isSelected(i),d=re(null),$=Hl({disabled:o,value:i,domRef:d,textValue:null==(r=null==(n=d.current)?void 0:n.textContent)?void 0:r.toLowerCase()}),p=lc(t,d),h=Wl((()=>u.selectOption(l)));Vl((()=>u.registerOption(l,$)),[$,l]);let m=re(!s.__demoMode);Vl((()=>{if(!s.__demoMode)return;let e=jl();return e.requestAnimationFrame((()=>{m.current=!0})),e.dispose}),[]),Vl((()=>{if(0!==s.comboboxState||!c||!m.current||0===s.activationTrigger)return;let e=jl();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=d.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[d,c,s.comboboxState,s.activationTrigger,s.activeOptionIndex]);let w=Wl((e=>{var t;if(o)return e.preventDefault();h(),0===s.mode&&(u.closeCombobox(),null==(t=s.inputRef.current)||t.focus({preventScroll:!0}))})),g=Wl((()=>{if(o)return u.goToOption(cc.Nothing);u.goToOption(cc.Specific,l)})),y=Wl((()=>{o||c||u.goToOption(cc.Specific,l,0)})),b=Wl((()=>{o||!c||s.optionsPropsRef.current.hold||u.goToOption(cc.Nothing)})),v=oe((()=>({active:c,selected:f,disabled:o})),[c,f,o]);return $c({ourProps:{id:l,ref:p,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":!0===f||void 0,disabled:void 0,onClick:w,onFocus:g,onPointerMove:y,onMouseMove:y,onPointerLeave:b,onMouseLeave:b},theirProps:a,slot:v,defaultTag:"li",name:"Combobox.Option"})})),Yc=Object.assign(Lc,{Input:Vc,Button:Hc,Label:Uc,Options:zc,Option:Wc});class qc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Value","OnChange","Children"]}}class Kc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["DisplayValue","OnChange","ClassName","AutoComplete"]}}function Zc(e){const t=Os(e,1);return p(Yc.Input,t)}class Jc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName"]}}function Xc(e,t){const n=Os(e,1);return p(Yc.Options,n,...t)}class Qc extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ClassName","Children"]}}function ef(e){const t=Os(e,1);return p(Yc.Button,t)}class tf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Key","Value","ClassName","Children"]}}class nf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetResidencyStatusRadioBox","SetCountry"]}}class rf extends Gt{constructor(e){super(),this.ResidencyStatus=e}}function of(e){const t=e.ResidencyStatus.Value;let n,r;switch(null==t?n=2:1===t.tag?n=0:2===t.tag?(n=1,r=t.fields[0]):n=0,n){case 0:return new rf(new Ju(e.ResidencyStatus.Value,{Valid:!0}));case 1:return null==r.HomeCountry?e:new rf(new Ju(e.ResidencyStatus.Value,{Valid:!0}));case 2:return e}}function af(e,t,n){let r,o;const i=nr(""),a=e=>{let t;return ln(cn((e=>e.Name),(t=qs(e),1===t.tag?void 0:t.fields[0])),"")};let s;const u=an(i[0]);let l,c;switch(null!=u?""===u?l=0:(l=1,c=u):l=0,l){case 0:s=t;break;case 1:f=(e,t)=>{const n=e=>{return(t=e,t.replace(new RegExp(Dt(" "),"g"),"")).toLocaleLowerCase();var t},r=n(t),o=n(c);return r.indexOf(o)>=0},s=function(e,t){return Fo(e.comparer,Co(e.comparer,t,e.tree))}(t,f)}var f;return function(e){const t=Os(e,1);return p(Yc,t)}(Pn([new qc(0,a(e)),new qc(1,n),new qc(2,[p("div",mt(Pn([["className","relative mt-1"],(r=[p("div",mt(Pn([["className","relative w-full cursor-default overflow-hidden focus:outline-none focus:border-primary-focus"],(o=[Zc(Pn([new Kc(0,a(e)),new Kc(2,"block w-full pr-10 focus:outline-none text-sm rounded-md border-gray-300 focus:border-primary-focus shadow-none focus:ring-0"),new Kc(1,(e=>{i[1](e.target.value)})),new Kc(3,"off")])),ef(Pn([new Qc(0,"absolute inset-y-0 right-0 flex items-center pr-2"),new Qc(1,[Yn])]))],["children",Ln.Children.toArray(Array.from(o))])]))),Xc(Tn(new Jc(0,"absolute mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm z-50")),Mr(Ir((()=>Pr(0===Lo(s)?Rr(p("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700",children:Ln.Children.toArray(["Nothing found"])})):Nr(),Ir((()=>Ur((e=>{const t=e,n=t[0];return Rr(function(e){const t=Os(e,1);return p(Yc.Option,t)}(Pn([new tf(0,n),new tf(1,n),new tf(2,"relative cursor-default select-none"),new tf(3,(e=>{let n;const r=[e.active,e.selected];let o;switch(o=r[0]||r[1]?1:0,o){case 0:n="bg-white text-black";break;case 1:n="bg-primary-base"}return[p("span",{className:"py-2 pl-2 pr-4 block truncate "+n,children:t[1]})]}))])))}),s))))))))],["children",Ln.Children.toArray(Array.from(r))])])))])]))}function sf(e){let t;const n=Zu((r=e.InitialValue,[of(new rf(new Ju(r,{Valid:!1}))),Bu()]),((t,n)=>function(e,t,n){const r=function(e,t){if(1===e.tag){let t;const n=qs(ln(e.fields[0].Value,""));return t=1===n.tag?void 0:n.fields[0],of(new rf(new Ju(null==t?Zs:Js(t),{Valid:!1})))}return of(new rf(new Ju(fn(tl,e.fields[0].Value),{Valid:!1})))}(t);return e(r.ResidencyStatus),[r,Bu()]}(e.OnUpdate,t)));var r;const o=n[0],i=n[1];return p("div",mt(Tn((t=Mr(Ir((()=>Pr(Rr(il("Are you an Australian resident for tax purposes or a working holiday maker?")),Ir((()=>{let e;return Pr(Rr(p(hl,(e=Bn((e=>[nl(e[0]),e[1],e[2]]),Pn([[new Ks(0),"Australian resident for tax purposes",void 0],[new Ks(1),"Foreign resident",void 0],[new Ks(2,{HomeCountry:void 0}),"Working holiday maker",void 0]])),{InitialValue:cn(nl,o.ResidencyStatus.Value),Name:"ResidencyStatus",OnUpdate:e=>{i(new nf(0,e))},ValueLabelPairs:e}))),Ir((()=>{let e;const t=o.ResidencyStatus.Value;let n,r;switch(null!=t&&2===t.tag?(n=0,r=t.fields[0]):n=1,n){case 0:return Rr(p("div",mt(Pn([["className",Jt(" ",["mt-4"])],(e=[il("Your home country where your visa was issued"),af(ln(cn((e=>e.Code),r.HomeCountry),""),zs,(e=>{i(new nf(1,Qu(e)))}))],["children",Ln.Children.toArray(Array.from(e))])]))));case 1:return Rr(null)}})))})))))),["children",Ln.Children.toArray(Array.from(t))]))))}const uf=Pn(["mt-7","bg-white","px-3","border","border-gray-200","rounded-lg","shadow-sm"]),lf=Pn(["group","relative","w-full","px-0.5","py-1","my-3","focus-visible:outline-primary-hover","flex","justify-between","items-center","text-left"]),cf=Pn(["text-sm","text-primary-base","leading-3","font-medium"]),ff=Pn(["ml-6","flex","items-center"]),df=Pn(["-mt-2","pb-4","prose","prose-sm","text-gray-500","text-sm"]);function $f(e){let t,n,r,o;const i=e.content,a=e.title,s=nr(!0),u=s[0];return p("div",mt(Pn([["className",Jt(" ",uf)],(t=[(n=Tn(p("button",mt(Pn([["type","button"],["className",Jt(" ",lf)],["aria-expanded",u],["onClick",e=>{s[1](!u)}],(r=[p("span",{className:Jt(" ",cf),children:a}),p("span",mt(Pn([["className",Jt(" ",ff)],(o=Mr(Ir((()=>Rr(u?zn:jn)))),["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(r))])])))),p("h3",{children:Ln.Children.toArray(Array.from(n))})),p("div",{className:Jt(" ",Fn(df,Mr(Ir((()=>u?Rr("hidden"):Nr()))))),children:Ln.Children.toArray([i])})],["children",Ln.Children.toArray(Array.from(t))])])))}class pf extends Bt{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Select"]}}class hf extends Gt{constructor(e){super(),this.Selected=e}}function mf(e,t){return null!=function(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(_n(o))return;if(e(xn(o)))return r;t=r+1,n=Sn(o)}})(0,t)}((t=>e===t),t.Selected)}function wf(e,t,n){const r=function(e,t){const n=e.fields[0];return mf(n,t)?new hf(function(e,t){const n=bn(),r=Rn(((t,n)=>{if(e(n)){const e=new gn(n,void 0);return t.tail=e,e}return t}),n,t),o=bn();return r.tail=o,Sn(n)}((e=>n!==e),t.Selected)):new hf(Fn(Tn(n),t.Selected))}(t,n);return e(r.Selected),[r,Bu()]}function gf(e){let t;const n=Zu((r=e.InitialValue,[new hf(r),Bu()]),((t,n)=>wf(e.OnUpdate,t,n)));var r;return p("fieldset",mt(Pn([["className",Jt(" ",["space-y-2","mt-2"])],(t=Mr(Ir((()=>Ur((e=>{let t,r,o;const i=e[0];return Rr(p("div",mt(Pn([["className",Jt(" ",["relative","flex","items-start"])],["onChange",e=>{e.target.checked,n[1](new pf(0,i))}],(t=[p("div",mt(Pn([["className",Jt(" ",["flex","items-center","h-5"])],(r=[p("input",{className:Jt(" ",["focus:ring-primary-focus","h-4","w-4","text-primary-base","border-gray-300","rounded"]),type:"checkbox",id:i,checked:mf(i,n[0])})],["children",Ln.Children.toArray(Array.from(r))])]))),p("div",mt(Pn([["className",Jt(" ",["ml-3","text-sm"])],(o=[p("label",{className:Jt(" ",["font-normal","text-gray-700"]),for:i,children:e[1]})],["children",Ln.Children.toArray(Array.from(o))])])))],["children",Ln.Children.toArray(Array.from(t))])]))))}),e.ValueLabelPairs)))),["children",Ln.Children.toArray(Array.from(t))])])))}function yf(e,t){return!!(e.TfnInformation.Meta.Valid&&e.PreviousSurname.Meta.Valid&&e.ResidencyStatus.Meta.Valid&&null!=e.ClaimTaxFreeThreshold.Selected&&e.EmploymentBasisRadioButtonGroup.Meta.Valid)&&!ct(t,new pr(1))}function bf(){return p("hr",{className:Jt(" ",["my-8"])})}const vf=p("div",mt(Pn([["className",Jt(" ",["space-y-2"])],(()=>{const e=[p("p",{children:["You are considered to be an Australian resident for tax purposes if you live here permanently, or studying for a period in excess of 6 months."]}),p("p",{children:["Select working holiday maker if you are in Australia on a working holiday visa (subclass 417) or a work and holiday visa (subclass 462). Special rates of tax apply for working holiday makers."]}),p("p",{children:["If none of the above applies, select foreign resident unless you are in receipt of an Australian Government pension or allowance. Foreign resident tax rates are different."]})];return["children",Ln.Children.toArray(Array.from(e))]})()]))),_f=p("div",mt(Pn([["className",Jt(" ",["space-y-2"])],(()=>{const e=[p("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."]}),p("p",{children:["Answer yes if you are a foreign resident in receipt of an Australian Government pension or allowance."]}),p("p",{children:["Answer no if none of the above applies or you are a working holiday maker."]})];return["children",Ln.Children.toArray(Array.from(e))]})()])));function xf(e){const t=e.backendUrl,n=e.accessToken,r=Zu([new Al(new pr(0),void 0,Xu(),Qu(void 0),Qu(new Ks(0)),ll(new al(0)),Cn(),Qu(new Xs(0))),Bu()],Dl),o=r[0],i=r[1];Qn(hr((()=>Du(n,t)),(e=>{i(new Il(6,e))})),[]);const a=nr(new pr(0)),s=a[0],u=hr((()=>function(e,t,n,r){return function(e,t){return sr.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 sr.Return(n)}))}((e=>{r(new Wr(1,"There was an error saving your tax declaration. Please try saving again."))}),function(e,t){return sr.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 sr.Return(n)}))}((e=>{r(new Wr(0,"Your tax declaration has been saved."))}),Pu(e,t,n)))}(o,n,t,(e=>{i(new Il(7,e))}))),(e=>{let t,n;a[1](e),2===e.tag&&0===e.fields[0].tag?(t=0,n=e.fields[0].fields[0]):t=1,0===t&&($r(sr.Delay((()=>sr.Bind(dr(400),(()=>(Ol(),sr.Zero())))))),i(new Il(9,n)))}));switch(o.PreExistingTfnDec.tag){case 0:case 1:return p("div",{children:["Please wait..."]});default:{const e=Mr(Ir((()=>{let e,t;return Pr((e=o.CurrentAlert,null==e?Rr(null):(t=e,Rr(p(Zr,{alert:t,hideAlert:()=>{i(new Il(8))}})))),Ir((()=>Pr(Rr(p("h3",{className:Jt(" ",["text-3xl","font-bold","text-center","mb-8","sm:mb-12"]),children:"Tax Declaration"})),Ir((()=>Pr(Rr(p(kl,{InitialValue:o.TfnInformation.Value,OnUpdate:e=>{i(new Il(0,e))}})),Ir((()=>Pr(Rr(bf()),Ir((()=>Pr(Rr(p(Ll,{InitialValue:o.PreviousSurname.Value,OnUpdate:e=>{i(new Il(1,e))}})),Ir((()=>Pr(Rr(bf()),Ir((()=>Pr(Rr(p(sf,{InitialValue:o.ResidencyStatus.Value,OnUpdate:e=>{i(new Il(2,e))}})),Ir((()=>Pr(Rr(p($f,{title:"About residency",content:vf})),Ir((()=>Pr(Rr(bf()),Ir((()=>{let e,t;return Pr(Rr(p("div",mt(Pn([["className",Jt(" ",qn)],(e=[il("Would you like to claim the tax-free threshold from this employer?"),p(dl,{Disable:(t=o.ResidencyStatus.Value,null!=t&&2===t.tag?new al(0):void 0),Dispatch:e=>{i(new Il(3,e))},State:o.ClaimTaxFreeThreshold})],["children",Ln.Children.toArray(Array.from(e))])])))),Ir((()=>Pr(Rr(p($f,{title:"About the tax-free threshold",content:_f})),Ir((()=>Pr(Rr(bf()),Ir((()=>Pr(Rr(il("Do you have any of the following outstanding debts or loans?")),Ir((()=>{let e;return Pr(Rr(p(gf,(e=Bn((e=>[Ft(e[0]),e[1]]),Pn([[new Ws(0),"Higher Education Loan Program (HELP)"],[new Ws(1),"VET Student Loan (VSL)"],[new Ws(2),"Financial Supplement (FS)"],[new Ws(3),"Student Start-up Loan (SSL)"],[new Ws(4),"Trade Support Loan (TSL)"]])),{InitialValue:Bn(Ft,o.DebtSupportCheckboxGroup),OnUpdate:e=>{i(new Il(4,function(e,t){const n=bn(),r=Rn(((t,n)=>{const r=e(n);if(null==r)return t;{const e=new gn(on(r),void 0);return t.tail=e,e}}),n,t),o=bn();return r.tail=o,Sn(n)}(rl,e)))},ValueLabelPairs:e}))),Ir((()=>Pr(Rr(bf()),Ir((()=>Pr(Rr(il("On what basis are you paid?")),Ir((()=>{let e;return Pr(Rr(p(hl,(e=Bn((e=>[Ft(e[0]),e[1],e[2]]),Pn([[new Xs(0),"Full-time",void 0],[new Xs(1),"Part-time",void 0],[new Xs(2),"Labour Hire",void 0],[new Xs(3),"Superannuation or annuity income stream",void 0],[new Xs(4),"Casual",void 0]])),{InitialValue:cn(Ft,o.EmploymentBasisRadioButtonGroup.Value),Name:"EmploymentBasis",OnUpdate:e=>{i(new Il(5,e))},ValueLabelPairs:e}))),Ir((()=>Pr(Rr(bf()),Ir((()=>{let e;return Rr(p("div",mt(Pn([["className",Jt(" ",["text-center"])],(e=[p("button",{className:Jt(" ",["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","disabled:opacity-25","disabled:cursor-not-allowed"]),type:"button",disabled:!yf(o,s),onClick:e=>{yf(o,s)&&u()},children:"Continue"}),p("p",{className:Jt(" ",["mt-8","sm:mt-20","text-xs","text-gray-500","leading-4","font-normal"]),children:"Workplace onboarding powered by Flare"})],["children",Ln.Children.toArray(Array.from(e))])]))))}))))))})))))))))}))))))))))))})))))))))))))))))))))))))))})));return p("form",{children:Ln.Children.toArray(Array.from(e))})}}}function Sf(){return(Sf=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 Cf(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,["context","children"]);return B(t,n)}function Ef(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=p(Cf,Sf({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Tf(a[i].name)]=a[i].value);for(i=s.length;i--;){var u=e(s[i],null),l=s[i].slot;l?o[l]=p(Af,{name:l},u):r[i]=u}var c=n?p(Af,null,r):r;return p(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?F:P)(this._vdom,this._root)}function Tf(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function kf(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Tf(e)]=n,this._vdom=B(this._vdom,r),P(this._vdom,this._root)}}function If(){P(this._vdom=null,this._root)}function Af(e,t){var n=this;return p("slot",Sf({},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 Nf(e){let t;return p("div",mt(Pn([["className",Jt(" ",["font-inter","max-w-560","mx-auto"])],(t=[p("style",{children:[Vn]}),p(xf,{accessToken:e.accessToken,backendUrl:e.backendUrl})],["children",Ln.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=Ef,o.prototype.attributeChangedCallback=kf,o.prototype.disconnectedCallback=If,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define("tax-component",o)}((e=>p(Nf,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(495),n(118)})();
|