@flarehr/apollo-personal-details-app 4.3.100 → 4.4.101

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),u=n(667),l=n.n(u),a=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=l()(a),m=l()(c),p=l()($),w=l()(f);d.push([e.id,'/*! tailwindcss v3.0.23 | 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%;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:-ms-input-placeholder,textarea:-ms-input-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%}[hidden]{display:none}[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:-ms-input-placeholder,textarea:-ms-input-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}[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}[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;-webkit-user-select:none;-moz-user-select:none;-ms-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("+m+")}[type=radio]:checked{background-image:url("+p+")}[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 auto -webkit-focus-ring-color}*,:after,:before{--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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.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}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.-ml-1{margin-left:-.25rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.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-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{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}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300:-ms-input-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))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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)}.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-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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.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}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);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 u=0;u<this.length;u++){var l=this[u][0];null!=l&&(s[l]=!0)}for(var a=0;a<e.length;a++){var c=[].concat(e[a]);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]}},746:(e,t,n)=>{function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(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 l{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 a(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new l(e[Symbol.iterator]())}function c(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 ${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 f(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function d(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class m{static id(e){return m.idMap.has(e)||m.idMap.set(e,++m.count),m.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function w(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function y(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return w(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=y(e[r]);return g(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=>y(e)));return g(t)}return w(m.id(e))}}function _(e){return null==e?0:o(e)?e.GetHashCode():w(m.id(e))}function v(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 b(e,t){return v(e,t,C)}function C(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):r(e)?r(t)&&b(e,t):e instanceof Date?t instanceof Date&&0===S(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]||!C(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function S(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+d(e),r=t.getTime()+d(t)),n===r?0:n<r?-1:1}function x(e,t){return e===t?0:e<t?-1:1}function E(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,k)}function k(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):r(e)?r(t)?E(e,t):-1:e instanceof Date?t instanceof Date?S(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=k(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function N(e,t,n){return e(t,n)>0?t:n}function A(e){const t={};for(const n of e)t[n[0]]=n[1];return t}m.idMap=new WeakMap,m.count=0;const M=Symbol("curried");function T(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[M]=t,n}function I(e,t,n){return r=>1===t?n(...e.concat([r])):I(e.concat([r]),t-1,n)}function O(e,t,n){if(null!=t){if(M in t){t=t[M];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return I(n,e,t)}}class P{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return y(this.value)}Equals(e){return null!=e&&C(this.value,e instanceof P?e.value:e)}CompareTo(e){return null==e?1:k(this.value,e instanceof P?e.value:e)}}function D(e){return null==e||e instanceof P?new P(e):e}function F(e){if(null==e)throw new Error("Option has no value");return e instanceof P?e.value:e}function R(e){return null==e?void 0:e}function G(e){return null==e?[]:[F(e)]}function U(e,t){return null!=e?F(e):t}function L(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+=L(r);else{if(100===t){n+="; ...";break}n+="; "+L(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+" = "+L(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class B{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=L(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>L(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>y(e)));return e.splice(0,0,w(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&this.tag===e.tag&&b(this.fields,e.fields)}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class H{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+" = "+L(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>y(e)));return g(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!C(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(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=k(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class j{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 z(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}function q(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+f(~~(e/36e5),2)+":"+f(n,2)}function W(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 V(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 Z(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," ")+q(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return V(i,t,!0);switch(t){case"D":case"d":return W(i,"first");case"T":case"t":return W(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+q(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 V(e,t,n);switch(t){case"D":case"d":return n?W(e,"first"):e.toLocaleDateString();case"T":case"t":return n?W(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 f(e.getFullYear(),4)+"-"+f(e.getMonth()+1,2)+"-"+f(e.getDate(),2)+"T"+f(e.getHours(),2)+":"+f(e.getMinutes(),2)+":"+f(e.getSeconds(),2)+"."+f(e.getMilliseconds(),3)+(t?q(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Y(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function J(){return Y(-621355968e5,0)}function X(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 K(e,t){try{return t.contents=function(e,t=!1){const[n,r]=X(e),o=null!=r?t&&"Z"===r?1:2:0;return Y(n.getTime(),o)}(e),!0}catch(e){return!1}}function Q(e,t,n,r=0,o=0,i=0,s=0,u){const l=1===u?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(l))throw new Error("The parameters describe an unrepresentable Date.");const a=Y(l,u);return e<=99&&a.setFullYear(e,t-1,n),a}function ee(){return ne(Y(Date.now(),2))}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(e){return Q(ie(e),oe(e),re(e),0,0,0,0,e.kind)}function re(e){return 1===e.kind?e.getUTCDate():e.getDate()}function oe(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function ie(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}const se=S,ue=Symbol("numeric");function le(e){return"number"==typeof e||(null==e?void 0:e[ue])}function ae(e,t){return"number"==typeof e?e*t:e[ue]().multiply(t)}function ce(e,t){return"number"==typeof e?e.toFixed(t):e[ue]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[ue]().toPrecision(t)}function fe(e,t){return"number"==typeof e?e.toExponential(t):e[ue]().toExponential(t)}function de(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[ue]().toHex()}function he(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)}function me(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function pe(e,t,n=0){return e.lastIndex=n,e.exec(t)}function we(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}const ge=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ye=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _e(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function ve(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function be(e){return{input:e,cont:(t=e,e=>{ge.lastIndex=0;const n=[],r=[];let o=0,i=ge.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=ge.lastIndex,ge.lastIndex-=1,i=ge.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),ke(e,n,r))})};var t}function Ce(e,t){return"string"==typeof t?e(t):t.cont(e)}function Se(e){return Ce((e=>e),e)}function xe(e){return Ce((e=>{throw new Error(e)}),e)}function Ee(e,t,n,r,o){let i="";if(t=t||"",o=o||"",le(e))switch("x"!==o.toLowerCase()&&(_e(e,0)?(e=ae(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ce(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?$e(e,r):$e(e);break;case"e":case"E":e=null!=r?fe(e,r):fe(e);break;case"x":e=de(e);break;case"X":e=de(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Z(e):L(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=Te(e,n-i.length,s,o)):Te(i+e,n,s,o)}return e}function ke(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),l=n.slice();for(const e of i){const[,,t,n,r,i]=l[0];let a=n;if(o>=0)a=o,o=-1;else if("*"===a){if(e<0)throw new Error("Non-negative number required");o=e;continue}s+=u[0],s+=Ee(e,t,a,r,i),u.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=u[0],e(s)):ke(e,u,l,s,o)}}function Ne(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(ye,((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 u=t[n];if(le(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=ce(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?$e(u,i):$e(u);break;case"e":case"E":u=null!=i?fe(u,i):fe(u);break;case"p":case"P":i=null!=i?i:2,u=ce(ae(u,100),i)+" %";break;case"d":case"D":u=null!=i?Ie(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Ie(de(u),i,"0"):de(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{_e(u,0)&&(u=ae(u,-1),e="-"),r=null==r?"":r.substring(1),u=ce(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Ie(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Te(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?Z(u,s||o):L(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Te(String(u),Math.abs(r)," ",r<0)),u}))}function Ae(e){return"string"!=typeof e||/^\s*$/.test(e)}function Me(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Te(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 Ie(e,t,n){return Te(e,t,n)}function Oe(e,t,n){return e.replace(new RegExp(me(t),"g"),n)}function Pe(e,t){return t.split("").filter((t=>e(t))).join("")}function De(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Fe(e,t){return"function"==typeof e?new e(t):new Array(t)}function Re(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Ge(e,t,n){const r=0|t.length,o=Fe(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Ue(e,t,n){return n.reduce(e,t)}function Le(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 Be extends H{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Me("; ",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(C(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 u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+y(i.head)+631*r,n=u}}})(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],u=0|k(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new He(this)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return a(this)}}class He{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 je(){return new Be(null,void 0)}function ze(e,t){return new Be(e,t)}function qe(e){return null==e.tail}function We(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function Ve(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Ze(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Ye(){return je()}function Je(e,t){return ze(e,t)}function Xe(e){return ze(e,je())}function Ke(e){return qe(e)}function Qe(e){return We(e)}function et(e){return Ve(e)}function tt(e){return Ze(e)}function nt(e){const t=0|We(e),n=Re(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(qe(o))break;n[r]=Ve(o),e=r+1,t=Ze(o)}})(0,e),n}function rt(e,t,n){let r=t,o=n;for(;!qe(o);)r=e(r,Ve(o)),o=Ze(o);return r}function ot(e){return rt(((e,t)=>ze(t,e)),je(),e)}function it(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=ze(e[t],n);return n}function st(e){return it(e,je())}function ut(e){let t,n;if(r(e))return st(e);if(e instanceof Be)return e;{const r=je();let o=r;const i=a(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Be(e,void 0),t.tail=n,o=n}}finally{s(i)}const u=o,l=je();return u.tail=l,Ze(r)}}function lt(e,t){return rt(((e,t)=>ze(t,e)),t,ot(e))}function at(e,t){const n=je(),r=rt(((t,n)=>{const r=new Be(e(n),void 0);return t.tail=r,r}),n,t),o=je();return r.tail=o,Ze(n)}function ct(e,t){return(t=>{e:for(;;){const n=t;if(qe(n))return;{const r=e(Ve(n));if(null==r){t=Ze(n);continue e}return r}}})(t)}function $t(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(qe(o))return;if(e(Ve(o)))return r;t=r+1,n=Ze(o)}})(0,t)}function ft(e,t){return null!=$t(e,t)}class dt{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class ht extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ht.prototype)}}class mt{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>mt.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function pt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new ht);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(z(e))}}));else try{e(t)}catch(e){t.onError(z(e))}}}const wt=new class{Bind(e,t){return function(e,t){return pt((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(z(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 pt((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 pt((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return pt((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 pt((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(z(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 pt((e=>e.onSuccess(void 0)))}};class gt extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function yt(e,t){return 0===t.tag?new gt(0,e(t.fields[0])):new gt(1,t.fields[0])}class _t extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function vt(e){}function bt(e){const t=new dt("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Ct(e){e.cancel()}const St=new dt;function xt(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new mt;e({onSuccess:t||vt,onError:n||vt,onCancel:r||vt,cancelToken:o||St,trampoline:i})}(e,t)}(e,t)}const Et=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class kt{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Nt(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Et}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new kt(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function At(e,t){var n;n=t=>{t(e)},rt(((e,t)=>{n(t)}),void 0,t)}function Mt(){return Ye()}function Tt(e){return Xe((t=>{t(e)}))}function It(e,t,n,r,o){return Xe((i=>{e(wt.Delay((()=>{return wt.Bind((e=t(n),pt((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new _t(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new _t(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),wt.Zero()}));var e})))}))}function Ot(e){Nt(0,(t=>{xt(e)}))}function Pt(){return e=k,{Compare:(t,n)=>e(t,n)};var e}const Dt="The input sequence has an insufficient number of elements.";function Ft(){throw new Error("Enumeration has not started. Call MoveNext.")}function Rt(){throw new Error("Enumeration already finished.")}class Gt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=a(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=L(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{s(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ut{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 Lt(e,t,n){return new Ut(e,t,n)}function Bt(e,t,n){let r,o=!1,i=D(e());const s=()=>{if(null!=i){const e=F(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Lt((()=>(o||Ft(),null!=r?F(r):Rt())),(()=>{if(o||(o=!0),null!=i){const e=F(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function Ht(e){return function(e){return new Gt(e)}(e)}function jt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),a(e);var t}function zt(e){return Ht((()=>a(e())))}function qt(e){return Ht((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=n;try{s(e)}finally{n=void 0}}if(null!=t){const e=t;try{s(e)}finally{t=void 0}}};return Lt((()=>(o?i&&Rt():Ft(),null!=r?F(r):Rt())),(()=>{let l;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=D(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{s(e)}finally{n=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(l=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=a(l)):(u(),o=!1)}else t=a(e)}return F(o)}}),(()=>{i||u()}))}(e)))}function Wt(){return zt((()=>new Array(0)))}function Vt(e){return zt((()=>function(e,t){const n=Fe(void 0,1);return n[0]=e,n}(e)))}function Zt(e){return r(e)?st(e):e instanceof Be?e:ut(e)}function Yt(e,t,n){return Ht((()=>Bt(e,t,n)))}function Jt(e,t,n){return Ht((()=>{let r=-1;return Bt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Xt(e,t){return qt([e,t])}function Kt(e,t,n){const r=jt(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{s(r)}}function Qt(e,t,n){const r=jt(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{s(r)}}function en(e,t){Qt(((t,n)=>{e(n)}),void 0,t)}function tn(e,t){return Yt((()=>jt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?D(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))}function nn(e,t){return Ht((()=>{const n=jt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Dt+"\\nParameter name: source");return function(e,t){return Lt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{s(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw s(n),e}}))}function rn(e,t){return zt((()=>qt(tn(e,t))))}function on(e,t,n,r,o){const i=function(e,t,n,r){const o=0|k(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|k(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return zt((()=>{return t=i,n=e,Ht((()=>function(e,t){let n,r=t;return Lt((()=>{if(null!=n){const e=n[0];return n[1],e}return Ft()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}Symbol.iterator;class sn extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class un{constructor(e){this.state=new sn(0,Re(new Array(N(x,e,10)),0,N(x,e,10),null),0)}}function ln(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 sn(0,o,n):new sn(1,o,n,i),D(o[r])}}class an extends H{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 cn(e,t){const n=t.init(e),r=n[0],o=new un(10);let i=!1,u=r;const l=O(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],l=n.fields[0];l[i]=t;const a=(i+1)%l.length|0;e.state=a===u?new sn(1,(r=u,o=l,Array.from(zt((()=>Xt(nn(r,o),zt((()=>{return Xt((e=r,t=o,Jt((()=>jt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return D(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Dt+"\\nParameter name: source")}}),(e=>{s(e)}))),zt((()=>rn((e=>Vt(null)),on(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),l.length,0):new sn(1,l,a,u)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new sn(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=D(e);for(;null!=n;){const e=F(n);try{const n=t.update(e,u),r=n[0];t.setState(r,l),At(l,n[1]),u=r}catch(n){t.onError([Se(be("Unable to process the message: %A"))(e),n])}n=ln(o)}i=!1}}]);t.setState(r,l),At(l,lt((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Mt()}})(),n[1]))}var $n,fn,dn,hn,mn,pn,wn,gn={},yn=[],_n=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function vn(e,t){for(var n in t)e[n]=t[n];return e}function bn(e){var t=e.parentNode;t&&t.removeChild(e)}function Cn(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?$n.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return Sn(e,s,r,o,null)}function Sn(e,t,n,r,o){var i={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==o?++dn:o};return null!=fn.vnode&&fn.vnode(i),i}function xn(e){return e.children}function En(e,t){this.props=e,this.context=t}function kn(e,t){if(null==t)return e.__?kn(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?kn(e):null}function Nn(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 Nn(e)}}function An(e){(!e.__d&&(e.__d=!0)&&hn.push(e)&&!Mn.__r++||pn!==fn.debounceRendering)&&((pn=fn.debounceRendering)||mn)(Mn)}function Mn(){for(var e;Mn.__r=hn.length;)e=hn.sort((function(e,t){return e.__v.__b-t.__v.__b})),hn=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=vn({},o)).__v=o.__v+1,Un(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?kn(o):i,o.__h),Ln(n,o),o.__e!=i&&Nn(o)))}))}function Tn(e,t,n,r,o,i,s,u,l,a){var c,$,f,d,h,m,p,w=r&&r.__k||yn,g=w.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(d=n.__k[c]=null==(d=t[c])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Sn(null,d,null,null,d):Array.isArray(d)?Sn(xn,{children:d},null,null,null):d.__b>0?Sn(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[c])||f&&d.key==f.key&&d.type===f.type)w[c]=void 0;else for($=0;$<g;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Un(e,d,f=f||gn,o,i,s,u,l,a),h=d.__e,($=d.ref)&&f.ref!=$&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push($,d.__c||h,d)),null!=h?(null==m&&(m=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=l=In(d,l,e):l=Pn(e,d,f,w,h,l),a||"option"!==n.type?"function"==typeof n.type&&(n.__d=l):e.value=""):l&&f.__e==l&&l.parentNode!=e&&(l=kn(f))}for(n.__e=m,c=g;c--;)null!=w[c]&&("function"==typeof n.type&&null!=w[c].__e&&w[c].__e==n.__d&&(n.__d=kn(r,c+1)),jn(w[c],w[c]));if(p)for(c=0;c<p.length;c++)Hn(p[c],p[++c],p[++c])}function In(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?In(o,t,n):Pn(n,o,o,e.__k,o.__e,t));return t}function On(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){On(e,t)})):t.push(e)),t}function Pn(e,t,n,r,o,i){var s,u,l;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(u=i,l=0;(u=u.nextSibling)&&l<r.length;l+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Dn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||_n.test(t)?n:n+"px"}function Fn(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||Dn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Dn(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?Gn:Rn,i):e.removeEventListener(t,i?Gn:Rn,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 Rn(e){this.l[e.type+!1](fn.event?fn.event(e):e)}function Gn(e){this.l[e.type+!0](fn.event?fn.event(e):e)}function Un(e,t,n,r,o,i,s,u,l){var a,c,$,f,d,h,m,p,w,g,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(a=fn.__b)&&a(t);try{e:if("function"==typeof _){if(p=t.props,w=(a=_.contextType)&&r[a.__c],g=a?w?w.props.value:a.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(p,g):(t.__c=c=new En(p,g),c.constructor=_,c.render=zn),w&&w.sub(c),c.props=p,c.state||(c.state={}),c.context=g,c.__n=r,$=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=vn({},c.__s)),vn(c.__s,_.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,$)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&p!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(p,g),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(p,c.__s,g)||t.__v===n.__v){c.props=p,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(p,c.__s,g),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,d,h)}))}c.context=g,c.props=p,c.state=c.__s,(a=fn.__r)&&a(t),c.__d=!1,c.__v=t,c.__P=e,a=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=vn(vn({},r),c.getChildContext())),$||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,d)),y=null!=a&&a.type===xn&&null==a.key?a.props.children:a,Tn(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Bn(n.__e,t,n,r,o,i,s,l);(a=fn.diffed)&&a(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=u,t.__h=!!l,i[i.indexOf(u)]=null),fn.__e(e,t,n)}}function Ln(e,t){fn.__c&&fn.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){fn.__e(e,t.__v)}}))}function Bn(e,t,n,r,o,i,s,u){var l,a,c,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&(l===e||(d?l.localName==d:3==l.nodeType))){e=l,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&$n.call(e.childNodes),a=($=n.props||gn).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(c||a)&&(c&&(a&&c.__html==a.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Fn(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]||Fn(e,i,t[i],n[i],r)}(e,f,$,o,u),c)t.__k=[];else if(h=t.props.children,Tn(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&kn(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&bn(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h)&&Fn(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Fn(e,"checked",h,$.checked,!1))}return e}function Hn(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){fn.__e(e,n)}}function jn(e,t,n){var r,o;if(fn.unmount&&fn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Hn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){fn.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&jn(r[o],t,"function"!=typeof e.type);n||null==e.__e||bn(e.__e),e.__e=e.__d=void 0}function zn(e,t,n){return this.constructor(e,n)}function qn(e,t,n){var r,o,i;fn.__&&fn.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Un(t,e=(!r&&n||t).__k=Cn(xn,null,[e]),o||gn,gn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?$n.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Ln(i,e)}function Wn(e,t){qn(e,t,Wn)}function Vn(e,t,n){var r,o,i,s=vn({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?$n.call(arguments,2):n),Sn(e.type,s,r||e.key,o||e.ref,null)}$n=yn.slice,fn={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},dn=0,En.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vn({},this.state),"function"==typeof e&&(e=e(vn({},n),this.props)),e&&vn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),An(this))},En.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),An(this))},En.prototype.render=xn,hn=[],mn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Mn.__r=0,wn=0;var Zn,Yn,Jn,Xn=0,Kn=[],Qn=fn.__b,er=fn.__r,tr=fn.diffed,nr=fn.__c,rr=fn.unmount;function or(e,t){fn.__h&&fn.__h(Yn,e,Xn||t),Xn=0;var n=Yn.__H||(Yn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ir(e){return Xn=1,sr(pr,e)}function sr(e,t,n){var r=or(Zn++,2);return r.t=e,r.__c||(r.__=[n?n(t):pr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Yn),r.__}function ur(e,t){var n=or(Zn++,3);!fn.__s&&mr(n.__H,t)&&(n.__=e,n.__H=t,Yn.__H.__h.push(n))}function lr(e,t){var n=or(Zn++,4);!fn.__s&&mr(n.__H,t)&&(n.__=e,n.__H=t,Yn.__h.push(n))}function ar(e){return Xn=5,cr((function(){return{current:e}}),[])}function cr(e,t){var n=or(Zn++,7);return mr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function $r(){Kn.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(dr),e.__H.__h.forEach(hr),e.__H.__h=[]}catch(t){e.__H.__h=[],fn.__e(t,e.__v)}})),Kn=[]}fn.__b=function(e){Yn=null,Qn&&Qn(e)},fn.__r=function(e){er&&er(e),Zn=0;var t=(Yn=e.__c).__H;t&&(t.__h.forEach(dr),t.__h.forEach(hr),t.__h=[])},fn.diffed=function(e){tr&&tr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Kn.push(t)&&Jn===fn.requestAnimationFrame||((Jn=fn.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fr&&(t=requestAnimationFrame(n))})($r)),Yn=void 0},fn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(dr),e.__h=e.__h.filter((function(e){return!e.__||hr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],fn.__e(n,e.__v)}})),nr&&nr(e,t)},fn.unmount=function(e){rr&&rr(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(dr)}catch(e){fn.__e(e,t.__v)}};var fr="function"==typeof requestAnimationFrame;function dr(e){var t=Yn;"function"==typeof e.__c&&e.__c(),Yn=t}function hr(e){var t=Yn;e.__c=e.__(),Yn=t}function mr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function pr(e,t){return"function"==typeof t?t(e):t}function wr(e,t){for(var n in t)e[n]=t[n];return e}function gr(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 yr(e){this.props=e}(yr.prototype=new En).isPureReactComponent=!0,yr.prototype.shouldComponentUpdate=function(e,t){return gr(this.props,e)||gr(this.state,t)};var _r=fn.__b;fn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_r&&_r(e)};var vr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,br=function(e,t){return null==e?null:On(On(e).map(t))},Cr={map:br,forEach:br,count:function(e){return e?On(e).length:0},only:function(e){var t=On(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:On},Sr=fn.__e;fn.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);Sr(e,t,n)};var xr=fn.unmount;function Er(){this.__u=0,this.t=null,this.__b=null}function kr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Nr(){this.u=null,this.o=null}fn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xr&&xr(e)},(Er.prototype=new En).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=kr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;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({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Er.prototype.componentWillUnmount=function(){this.t=[]},Er.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=wr({},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.__e&&Cn(xn,null,e.fallback);return o&&(o.__h=null),[Cn(xn,null,t.__e?null:e.children),o]};var Ar=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 Mr(e){return this.getChildContext=function(){return e.context},e.children}function Tr(e){var t=this,n=e.i;t.componentWillUnmount=function(){qn(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)}}),qn(Cn(Mr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Nr.prototype=new En).__e=function(e){var t=this,n=kr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ar(t,e,r)):o()};n?n(i):i()}},Nr.prototype.render=function(e){this.u=null,this.o=new Map;var t=On(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},Nr.prototype.componentDidUpdate=Nr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ar(e,n,t)}))};var Ir="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Or=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Pr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};En.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(En.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Dr=fn.event;function Fr(){}function Rr(){return this.cancelBubble}function Gr(){return this.defaultPrevented}fn.event=function(e){return Dr&&(e=Dr(e)),e.persist=Fr,e.isPropagationStopped=Rr,e.isDefaultPrevented=Gr,e.nativeEvent=e};var Ur,Lr={configurable:!0,get:function(){return this.class}},Br=fn.vnode;fn.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Pr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Or.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=On(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=On(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}t&&n.class!=n.className&&(Lr.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Lr)),e.$$typeof=Ir,Br&&Br(e)};var Hr=fn.__r;fn.__r=function(e){Hr&&Hr(e),Ur=e.__c};var jr={ReactCurrentDispatcher:{current:{readContext:function(e){return Ur.__n[e.__c].props.value}}}};function zr(e){return!!e&&e.$$typeof===Ir}const qr={useState:ir,useReducer:sr,useEffect:ur,useLayoutEffect:lr,useRef:ar,useImperativeHandle:function(e,t,n){Xn=6,lr((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:cr,useCallback:function(e,t){return Xn=8,cr((function(){return e}),t)},useContext:function(e){var t=Yn.context[e.__c],n=or(Zn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Yn)),t.props.value):e.__},useDebugValue:function(e,t){fn.useDebugValue&&fn.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Cr,render:function(e,t,n){return null==t.__k&&(t.textContent=""),qn(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Wn(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(qn(null,e),!0)},createPortal:function(e,t){return Cn(Tr,{__v:e,i:t})},createElement:Cn,createContext:function(e,t){var n={__c:t="__cC"+wn++,__: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(An)},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 Cn.bind(null,e)},cloneElement:function(e){return zr(e)?Vn.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:xn,isValidElement:zr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:En,PureComponent:yr,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:gr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Cn(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=wr({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=vr,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:xn,Suspense:Er,SuspenseList:Nr,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 Cn(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:jr},Wr=qr,Vr=(e,t)=>{ur((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Zr(e){return{Dispose(){e()}}}function Yr(e){return Wr.useState(e)}function Jr(e,t){Vr(e,t)}function Xr(e){!function(e,t){Vr((t=>(e(),Zr((()=>{})))),[])}(e)}function Kr(e){return Wr.useRef(e)}function Qr(e){const t=Kr(e),n=function(e,n){const r=U([],[]);return Wr.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Zr((()=>{}))),lr((()=>{const e=o();return()=>{e.Dispose()}})),n}class eo{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function to(){return new eo}function no(e,t,n,r){cn(t,function(e,t){return new an(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=D(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 F(o);throw new Error("Elmish program has not initialized")}function ro(e,t){return function(e,t,n){const r=Yr(to)[0],o=Yr((()=>no(e,t,r))),u=o[1];return Jr((()=>(function(e){return e.hasDisposedOnce}(r)&&u(no(e,t,r)),Zr((()=>{!function(e){const t=e.state;if(null!=t){const e=F(t);i(e)&&s(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),U(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,u),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function oo(e,t,n){return ro((()=>function(e,t,n){return new an(e,t,(e=>Mt()),n,T(2,(e=>{const t=O(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(D(t),n)}),T(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}function io(){return(io=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 so(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 Vn(t,n)}function uo(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Cn(so,io({},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,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[lo(s[i].name)]=s[i].value);for(i=u.length;i--;){var l=e(u[i],null),a=u[i].slot;a?o[a]=Cn($o,{name:a},l):r[i]=l}var c=n?Cn($o,null,r):r;return Cn(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Wn:qn)(this._vdom,this._root)}function lo(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function ao(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[lo(e)]=n,this._vdom=Vn(this._vdom,r),qn(this._vdom,this._root)}}function co(){qn(this._vdom=null,this._root)}function $o(e,t){var n=this;return Cn("slot",io({},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)}}))}class fo extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class ho extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class mo extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class po extends H{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class wo extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class go extends H{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class yo{constructor(e,t){this.k=e,this.v=t}}function _o(e,t){return new yo(e,t)}function vo(e){return e.k}function bo(e){return e.v}class Co extends yo{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function So(e,t,n,r,o){return new Co(e,t,n,r,o)}function xo(e){return e.left}function Eo(e){return e.right}function ko(e){return e.h}function No(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Co){e=No(n+1,xo(o)),t=Eo(o);continue e}return n+1|0}return 0|n}}function Ao(e){return No(0,e)}function Mo(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof Co?ko(t):1}else o=0;if(null!=r){const e=r;i=e instanceof Co?ko(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?_o(t,n):So(t,n,e,r,s+1)}function To(e,t,n,r){let o,i,s,u,l,a;if(null!=e){const t=e;l=t instanceof Co?ko(t):1}else l=0;if(null!=r){const e=r;a=e instanceof Co?ko(e):1}else a=0;if(a>l+2){const s=F(r);if(s instanceof Co){if(o=xo(s),(null!=o?(i=o,i instanceof Co?ko(i):1):0)>l+1){const r=F(xo(s));if(r instanceof Co)return Mo(Mo(e,t,n,xo(r)),vo(r),bo(r),Mo(Eo(r),vo(s),bo(s),Eo(s)));throw new Error("internal error: Map.rebalance")}return Mo(Mo(e,t,n,xo(s)),vo(s),bo(s),Eo(s))}throw new Error("internal error: Map.rebalance")}if(l>a+2){const o=F(e);if(o instanceof Co){if(s=Eo(o),(null!=s?(u=s,u instanceof Co?ko(u):1):0)>a+1){const e=F(Eo(o));if(e instanceof Co)return Mo(Mo(xo(o),vo(o),bo(o),xo(e)),vo(e),bo(e),Mo(Eo(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Mo(xo(o),vo(o),bo(o),Mo(Eo(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Mo(e,t,n,r)}function Io(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,vo(o));return o instanceof Co?i<0?To(Io(e,t,n,xo(o)),vo(o),bo(o),Eo(o)):0===i?So(t,n,xo(o),Eo(o),ko(o)):To(xo(o),vo(o),bo(o),Io(e,t,n,Eo(o))):i<0?So(t,n,void 0,r,2):0===i?_o(t,n):So(t,n,r,void 0,2)}return _o(t,n)}function Oo(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,vo(s));if(0===u)return D(bo(s));if(s instanceof Co){e=r,t=o,n=u<0?xo(s):Eo(s);continue e}return}return}}function Po(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Co){Po(n,xo(o)),n(vo(o),bo(o)),e=n,t=Eo(o);continue e}n(vo(o),bo(o))}break}}function Do(e,t){Po(e,t)}function Fo(e,t){if(null!=t){const n=t;if(n instanceof Co){const t=Fo(e,xo(n)),r=e(vo(n),bo(n)),o=Fo(e,Eo(n));return So(vo(n),r,t,o,ko(n))}return _o(vo(n),e(vo(n),bo(n)))}}function Ro(e,t){return Fo(e,t)}function Go(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Io(e,o[0],o[1],n)}return n}class Uo extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function Lo(e){e:for(;;){const t=e;if(Ke(t))return Ye();{const n=tt(t),r=et(t);if(null!=r){const o=r;if(o instanceof Co){e=it([xo(o),_o(vo(o),bo(o)),Eo(o)],n);continue e}return t}e=n;continue e}}}function Bo(e){return new Uo(Lo(Xe(e)),!1)}function Ho(e){if(e.started){const t=e.stack;if(Ke(t))return function(){throw new Error("enumeration already finished")}();if(null!=et(t)){const e=et(t);if(e instanceof Co)throw new Error("Please report error: Map iterator, unexpected stack for current");return[vo(e),bo(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function jo(e){let t=Bo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ho(t),"System.Collections.IEnumerator.get_Current":()=>Ho(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Ke(t))return!1;if(null!=et(t)){if(et(t)instanceof Co)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Lo(tt(t)),!Ke(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Ke(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Bo(e)},Dispose(){}}}class zo{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){const t=(e,t)=>(e<<1)+t+631;let n=0;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,y(e[0])),n=0|t(n,y(e[1]))}}finally{s(r)}return 0|n}(this)}Equals(e){if(!(e instanceof zo))return!1;{const t=a(this);try{const n=a(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!(!C(r[0],o[0])||!C(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(n)}}finally{s(t)}}}toString(){return"map ["+Me("; ",tn((e=>Ne("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return jo(this.tree)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return jo(this.tree)}CompareTo(e){const t=this;if(e instanceof zo)return 0|function(e,t,n){const r=jt(t);try{const t=jt(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{s(t)}}finally{s(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:k(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 Yo(this,e[0])&&C(Vo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Do(((e,n)=>{t[r]=[e,n],r=r+1|0}),e)}(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Zo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Zo(this)}get size(){return 0|Zo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return tn((e=>[e[0],e[1]]),this)}get(e){return Vo(this,e)}has(e){return Yo(this,e)}keys(){return tn((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return tn((e=>e[1]),this)}forEach(e,t){const n=this;en((t=>{e(t[1],t[0],n)}),n)}}function qo(e,t){return new zo(e,t)}function Wo(e){const t=Pt();return qo(t,function(e,t){if(r(t))return Go(e,t);if(t instanceof Be)return function(e,t){return rt(((t,n)=>Io(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=a(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=Io(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{s(n)}}}(t,e))}function Vo(e,t){return function(e,t,n){const r=Oo(e,t,n);if(null==r)throw new Error;return F(r)}(e.comparer,t,e.tree)}function Zo(e){return Ao(e.tree)}function Yo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,vo(s));if(s instanceof Co){if(u<0){e=r,t=o,n=xo(s);continue e}if(0===u)return!0;e=r,t=o,n=Eo(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function Jo(e,t,n){return function(e,t,n){return qo(e.comparer,Io(e.comparer,t,n,e.tree))}(n,e,t)}function Xo(e,t){return function(e,t){return Oo(e.comparer,t,e.tree)}(t,e)}function Ko(e,t){return function(e,t){return qo(e.comparer,Ro(t,e.tree))}(t,e)}function Qo(){return zo.empty}function ei(e){return new ho(0,"Content-Type",e)}zo.empty=qo(Pt(),void 0);const ti=new po("",new fo(0),Ye(),!1,void 0,void 0,void 0,new mo(0));function ni(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(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(me),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let l=!0,a=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(a).trim():e.substring(a);(!o||t.length>0)&&s.push(t),l=!1}else{const r=i?e.substring(a,t.index).trim():e.substring(a,t.index);(!o||r.length>0)&&(null!=n&&s.length+1===n?(s.push(i?e.substring(a).trim():e.substring(a)),l=!1):s.push(r)),a=u.lastIndex}}while(l);return s}(t,[e],null,0);var n}function ri(e){return new po(e,ti.method,ti.headers,ti.withCredentials,ti.overridenMimeType,ti.overridenResponseType,ti.timeout,ti.content)}function oi(e,t){return new po(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ii(e,t){return new po(t.url,t.method,lt(t.headers,Xe(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e,t){return new po(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ui(e){return function(e){return pt((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,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new wo(0,n.responseText):new wo("arraybuffer"===u?2:"blob"===u?1:3,n.response),new go(o,e,i,function(e){const t=Pt();return qo(t,Go(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=F(o);r.push(e)}}return r}((e=>{const t=st(ni(":",e));return Ke(t)?void 0:[et(t).toLocaleLowerCase(),Me(":",tt(t)).trim()]}),ni("\r\n",n.getAllResponseHeaders()))),s)))};const r=a(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{s(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 u=e.timeout;if(null==u);else{const e=0|u;n.timeout=0|e}const l=[e.method,e.content];0===l[0].tag?n.send(D(void 0)):1===l[1].tag||3===l[1].tag||2===l[1].tag?n.send(D(l[1].fields[0])):n.send(D(void 0))}))}function li(e){return Ae(e)?void 0:e}function ai(e){let t,n=J();return t=[K(e,new j((()=>n),(e=>{n=e}))),n],t[0]?t[1]:void 0}function ci(e,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=uo,o.prototype.attributeChangedCallback=ao,o.prototype.disconnectedCallback=co,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(t||e.tagName||e.displayName||e.name,o)}(e,t,void 0,{shadow:!0})}function $i(e,t){return wt.Delay((()=>{const n=ii((r=Se(be("Bearer %s"))(e),new ho(0,"Authorization",r)),t);var r;let o;const i=ui(n);return o=wt.Bind(i,(e=>wt.Return(new gt(0,e)))),wt.Bind(o,(e=>{const t=e;if(1===t.tag)return wt.Return(new gt(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ui(n);return wt.Bind(e,(e=>wt.Return(new gt(0,e))))}return wt.Return(new gt(0,e))}}))}))}function fi(e,t,n){return ct((n=>0===n.indexOf(e)?Oe(n,e,t):void 0),n)}function di(e){return Oe(e,"’","'")}new go(0,"","",Qo(),new wo(0,""));class hi{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class mi{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 Ei(this)}GetHashCode(){return wi(this)}Equals(e){return gi(this,e)}}function pi(e){return null!=e.generics?e.generics:[]}function wi(e){return g([p(e.fullname),...pi(e).map(wi)])}function gi(e,t){return""===e.fullname?""===t.fullname&&v(Fi(e),Fi(t),(([e,t],[n,r])=>e===n&&gi(t,r))):e.fullname===t.fullname&&v(pi(e),pi(t),gi)}function yi(e,t,n,r){return new mi(e,t,n,void 0,r)}function _i(e,t,n,r){const o=new mi(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new hi(o,n,e[n],t)))}));return o}function vi(e){return new mi("Microsoft.FSharp.Core.FSharpOption`1",[e])}function bi(e){return new mi("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ci=new mi("System.Object"),Si=(new mi("Microsoft.FSharp.Core.Unit"),new mi("System.Char"),new mi("System.String"));function xi(e){if(Array.isArray(e))return e[0];if(e instanceof mi){const t=Ni(e);if(null!=t)return xi(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function Ei(e){const t=Ni(e);return null!=t?Ei(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>Ei(e))).join(",")+"]"}function ki(e){return null!=Ni(e)}function Ni(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Ai(e){return null!=e.generics&&e.generics.length>0}function Mi(e){return null!=e.enumCases&&e.enumCases.length>0}function Ti(e){return null==e.generics?e:new mi(e.fullname,e.generics.map((()=>Ci)))}function Ii(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Oi(e){if(Mi(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Pi(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 Di(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Fi(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ri(e){if(Li(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Gi(e){return e instanceof mi?null!=e.cases:e instanceof B}function Ui(e){return e instanceof mi?null!=e.fields:e instanceof H}function Li(e){return e.fullname.startsWith("System.Tuple")}function Bi(e){return null==e.fields?[]:e.fields}function Hi(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 mi("System.Boolean"),new mi("System.SByte"),new mi("System.Byte"),new mi("System.Int16"),new mi("System.UInt16"),new mi("System.Int32"),new mi("System.UInt32"),new mi("System.Single"),new mi("System.Double"),new mi("System.Decimal");class ji extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class zi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}class qi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}class Wi extends H{constructor(e,t,n){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n}}function Vi(){return yi("Dto.Primitives.Name",[],Wi,(()=>[["FirstName",Si],["MiddleName",vi(Si)],["LastName",Si]]))}class Zi extends H{constructor(e,t,n,r,o,i){super(),this.AddressLine1=e,this.AddressLine2=t,this.City=n,this.State=r,this.Postcode=o,this.CountryCode=i}}function Yi(){return yi("Dto.Primitives.Address",[],Zi,(()=>[["AddressLine1",Si],["AddressLine2",vi(Si)],["City",Si],["State",Si],["Postcode",Si],["CountryCode",Si]]))}class Ji extends H{constructor(e,t,n,r,o){super(),this.FullName=e,this.Relationship=t,this.MobilePhone=n,this.Email=r,this.Address=o}}function Xi(){return yi("Dto.Primitives.EmergencyContactDto",[],Ji,(()=>[["FullName",Si],["Relationship",Si],["MobilePhone",Si],["Email",vi(Si)],["Address",vi(Yi())]]))}new class extends H{constructor(e){super(),this.Unused=e}}(void 0);const Ki=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 Qi=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 Ki(n)}(e,0)&256)}(e);class es extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Saving","Loading"]}}function ts(e){return 1===e.tag?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function ns(e){return L(e)}function rs(){return at((e=>[e,ns(e)]),ut(tn((e=>Hi(e,[])),Di(_i("DomainPrimitives.AuState",[],qi,(()=>[[],[],[],[],[],[],[],[]]))))))}function os(e){return ct((t=>t[1]===e?t[0]:void 0),rs())}function is(e){return 0===e.indexOf("04")?`+61${De(e,1)}`:function(e){return 0===e.indexOf("+")?e:`+${e}`}(e)}const ss=is;function us(e){return is(Pe(Qi,e))}var ls;function as(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 cs(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&ls.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]=as(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=as(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function $s(e,t,n,r,o){try{return o.contents=cs(e,t,n,r),!0}catch(e){return!1}}function fs(e){let t,n=0;return t=[$s(e,511,!1,32,new j((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function ds(e,t,n){return n>=e&&n<=t?D(void 0):void 0}function hs(e){return te(e)}function ms(e,t,n){const r=function(e,t){const n=function(e,t){const n=pe(he(e),t);return null!=n?tt(Zt(zt((()=>tn((e=>e||""),n))))):void 0}("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(null==n)return new gt(1,e);{const t=n;let r,o,i,s;switch(Ke(t)||Ke(tt(t))||Ke(tt(tt(t)))?r=1:Ke(tt(tt(tt(t))))?(r=0,o=et(tt(tt(t))),i=et(tt(t)),s=et(t)):r=1,r){case 0:{const t=[s,i,o],n=[t[0],t[1],t[2]];let r,u,l,a;const c=fs(n[0]);if(null!=c){const e=fs(n[1]);if(null!=e){const t=fs(n[2]);null!=t?(r=0,u=t,l=e,a=c):r=1}else r=1}else r=1;switch(r){case 0:return new gt(0,[a,l,u]);case 1:return new gt(1,e)}}case 1:return new gt(1,e)}}}(e,n);if(1===r.tag)return new gt(1,r.fields[0]);{const n=r.fields[0],o=0|n[0],i=0|n[1],s=0|n[2];if(o<=0)return new gt(1,e);{const n=[i,s];let r;switch(r=2===n[0]&&null!=ds(1,29,n[1])&&hs(o)?0:1,r){case 0:return new gt(0,t(o,i,s));case 1:{let r;switch(r=2===n[0]&&null!=ds(1,28,n[1])?hs(o)?1:0:1,r){case 0:return new gt(0,t(o,i,s));case 1:{let r;switch(r=1===n[0]||3===n[0]||5===n[0]||7===n[0]||8===n[0]||10===n[0]?null!=ds(1,31,n[1])?0:1:12===n[0]&&null!=ds(1,31,n[1])?0:1,r){case 0:return new gt(0,t(o,i,s));case 1:{let r;switch(r=4===n[0]||6===n[0]||9===n[0]?null!=ds(1,30,n[1])?0:1:11===n[0]&&null!=ds(1,30,n[1])?0:1,r){case 0:return new gt(0,t(o,i,s));case 1:return new gt(1,e)}}}}}}}}}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ls||(ls={}));class ps extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class ws extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Over100","Under13"]}}function gs(e){return Ae(e)?new gt(1,new ps(0)):new gt(0,void 0)}function ys(e){return Pe(Qi,e)===e?new gt(0,void 0):new gt(1,new ps(4))}function _s(e,t){return t.length>e?new gt(1,new ps(1,e)):new gt(0,void 0)}function vs(e,t){const n=function(e,t){return function(e,t){const n=Y(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?Y(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5)}(e);let r;const o=ie(n)-ie(t)|0;r=se(ne(t),function(e,t){const n=oe(e),r=ie(e)+t,o=function(e,t){return 2===t?te(e)?29:28:t>=8?t%2==0?31:30:t%2==0?30:31}(r,n);return Q(r,n,Math.min(o,re(e)),function(e){return 1===e.kind?e.getUTCHours():e.getHours()}(e),function(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}(e),function(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}(e),function(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}(e),e.kind)}(n,function(e){return-2147483648===e?e:-e}(o)))>0?o-1:o;const i=r>=13?new gt(0,void 0):new gt(1,new ps(8,new ws(1)));if(1===i.tag)return new gt(1,i.fields[0]);{const e=r<100?new gt(0,void 0):new gt(1,new ps(8,new ws(0)));return 1===e.tag?new gt(1,e.fields[0]):new gt(0,void 0)}}function bs(e,t){return null!=pe(he(e),t)?new gt(0,void 0):new gt(1,new ps(3))}function Cs(e){return!(e.length<=320)||e.indexOf("..")>=0||e.indexOf(".@")>=0||null==pe(/^[A-Z0-9][A-Z0-9._%+'-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/giu,e)?new gt(1,new ps(6)):new gt(0,void 0)}function Ss(e,t){return 0===t.indexOf(e)?new gt(1,new ps(10,e)):new gt(0,void 0)}function xs(e,t){const n=function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Ke(i)){const e=r;return 1===e.tag?new gt(1,e.fields[0]):new gt(0,ot(e.fields[0]))}{let s;const u=o(et(i));if(1===u.tag)s=new gt(1,u.fields[0]);else{const e=r;s=1===e.tag?new gt(1,e.fields[0]):new gt(0,Je(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,t=o,n=tt(i);continue e}}}(new gt(0,Ye()),e,t)}((e=>e(t)),e);return 1===n.tag?new gt(1,n.fields[0]):new gt(0,void 0)}const Es=e=>xs(st([gs,e=>_s(60,e),e=>Ss("-",e),e=>Ss("'",e),e=>bs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e),ks=e=>xs(st([gs,e=>_s(60,e),e=>bs("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",e)]),e),Ns=e=>xs(st([gs,Cs]),e);const As=e=>xs(st([gs,e=>_s(60,e),e=>bs("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",e)]),e),Ms=e=>xs(st([gs,e=>_s(4,e),ys]),e);new class{constructor(){}};var Ts=null;try{Ts=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(gn){}function Is(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Os(e){return!0===(e&&e.__isLong__)}Is.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Is.prototype.Equals=function(e){return su(this,e)},Is.prototype.CompareTo=function(e){return cu(this,e)},Is.prototype.toString=function(e){return nu(this,e)},Is.prototype.toJSON=function(){return nu(this)},Is.prototype[ue]=function(){const e=this;return{multiply:t=>hu(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 nu(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Is(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 Is(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}}},Is.prototype.__isLong__,Object.defineProperty(Is.prototype,"__isLong__",{value:!0});var Ps={},Ds={};function Fs(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Ds[e])?r:(n=Gs(e,(0|e)<0?-1:0,!0),o&&(Ds[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ps[e])?r:(n=Gs(e,e<0?-1:0,!1),o&&(Ps[e]=n),n)}function Rs(e,t){if(isNaN(e))return t?Vs:Ws;if(t){if(e<0)return Vs;if(e>=js)return Ks}else{if(e<=-zs)return Qs;if(e+1>=zs)return Xs}return e<0?$u(Rs(-e,t)):Gs(e%Hs|0,e/Hs|0,t)}function Gs(e,t,n){return new Is(e,t,n)}var Us=Math.pow;function Ls(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Ws;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 $u(Ls(e.substring(1),t,n));for(var o=Rs(Us(n,8)),i=Ws,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),l=parseInt(e.substring(s,s+u),n);i=fu(u<8?hu(i,Rs(Us(n,u))):i=hu(i,o),Rs(l))}return i.unsigned=t,i}function Bs(e,t){return"number"==typeof e?Rs(e,t):"string"==typeof e?Ls(e,t):Gs(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Hs=4294967296,js=Hs*Hs,zs=js/2,qs=Fs(1<<24),Ws=Fs(0),Vs=Fs(0,!0),Zs=Fs(1),Ys=Fs(1,!0),Js=Fs(-1),Xs=Gs(-1,2147483647,!1),Ks=Gs(-1,-1,!0),Qs=Gs(0,-2147483648,!1);function eu(e){return e.unsigned?e.low>>>0:e.low}function tu(e){return e.unsigned?(e.high>>>0)*Hs+(e.low>>>0):e.high*Hs+(e.low>>>0)}function nu(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(ru(e))return"0";if(ou(e)){if(su(e,Qs)){var n=Rs(t),r=mu(e,n),o=du(hu(r,n),e);return nu(r,t)+eu(o).toString(t)}return"-"+nu($u(e),t)}for(var i=Rs(Us(t,6),e.unsigned),s=e,u="";;){var l=mu(s,i),a=(eu(du(s,hu(l,i)))>>>0).toString(t);if(ru(s=l))return a+u;for(;a.length<6;)a="0"+a;u=""+a+u}}function ru(e){return 0===e.high&&0===e.low}function ou(e){return!e.unsigned&&e.high<0}function iu(e){return 1==(1&e.low)}function su(e,t){return Os(t)||(t=Bs(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function uu(e,t){return cu(e,t)<0}function lu(e,t){return cu(e,t)>0}function au(e,t){return cu(e,t)>=0}function cu(e,t){if(Os(t)||(t=Bs(t)),su(e,t))return 0;var n=ou(e),r=ou(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:ou(du(e,t))?-1:1}function $u(e){return!e.unsigned&&su(e,Qs)?Qs:fu(function(e){return Gs(~e.low,~e.high,e.unsigned)}(e),Zs)}function fu(e,t){Os(t)||(t=Bs(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+l)>>>16,a+=(c+=r+u)>>>16,a+=n+s,Gs(($&=65535)<<16|(f&=65535),(a&=65535)<<16|(c&=65535),e.unsigned)}function du(e,t){return Os(t)||(t=Bs(t)),fu(e,$u(t))}function hu(e,t){if(ru(e))return e.unsigned?Vs:Ws;if(Os(t)||(t=Bs(t)),Ts)return Gs(Ts.mul(e.low,e.high,t.low,t.high),Ts.get_high(),e.unsigned);if(ru(t))return e.unsigned?Vs:Ws;if(su(e,Qs))return iu(t)?Qs:Ws;if(su(t,Qs))return iu(e)?Qs:Ws;if(ou(e))return ou(t)?hu($u(e),$u(t)):$u(hu($u(e),t));if(ou(t))return $u(hu(e,$u(t)));if(uu(e,qs)&&uu(t,qs))return Rs(tu(e)*tu(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,l=t.low>>>16,a=65535&t.low,c=0,$=0,f=0,d=0;return f+=(d+=i*a)>>>16,$+=(f+=o*a)>>>16,f&=65535,$+=(f+=i*l)>>>16,c+=($+=r*a)>>>16,$&=65535,c+=($+=o*l)>>>16,$&=65535,c+=($+=i*u)>>>16,c+=n*a+r*l+o*u+i*s,Gs((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function mu(e,t){if(Os(t)||(t=Bs(t)),ru(t))throw Error("division by zero");var n,r,o;if(Ts)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Gs((e.unsigned?Ts.div_u:Ts.div_s)(e.low,e.high,t.low,t.high),Ts.get_high(),e.unsigned):e;if(ru(e))return e.unsigned?Vs:Ws;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Gs(e.low,e.high,!0)}(t)),lu(t,e))return Vs;if(lu(t,function(e,t){if(Os(t)&&(t=eu(t)),0==(t&=63))return e;var n=e.high;return t<32?Gs(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Gs(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Ys;o=Vs}else{if(su(e,Qs))return su(t,Zs)||su(t,Js)?Qs:su(t,Qs)?Zs:su(n=function(e,t){return Os(t)&&(t=eu(t)),0==(t&=63)?e:t<32?Gs(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Gs(0,e.low<<t-32,e.unsigned)}(mu(function(e,t){return Os(t)&&(t=eu(t)),0==(t&=63)?e:t<32?Gs(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Gs(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Ws)?ou(t)?Zs:Js:o=fu(n,mu(r=du(e,hu(t,n)),t));if(su(t,Qs))return e.unsigned?Vs:Ws;if(ou(e))return ou(t)?mu($u(e),$u(t)):$u(mu($u(e),t));if(ou(t))return $u(mu(e,$u(t)));o=Ws}for(r=e;au(r,t);){n=Math.max(1,Math.floor(tu(r)/tu(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Us(2,i-48),u=Rs(n),l=hu(u,t);ou(l)||lu(l,r);)l=hu(u=Rs(n-=s,e.unsigned),t);ru(u)&&(u=Zs),o=fu(o,u),r=du(r,l)}return o}const pu=mu,wu=tu;function gu(e){return e<0?Math.ceil(e):Math.floor(e)}function yu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return _u(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 _u(e){return wu(pu(e,1e4))}function vu(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 yu(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],u=+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*yu(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class bu extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Cu extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Su{constructor(){this.cache=new Map([])}}function xu(){return new Su}function Eu(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function ku(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=he(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),u=we(e,s),l=we.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+l.replace(e,n)+t.substring(o+l.length)}return t.replace(e,n)}(Eu(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Eu(t)}}function Nu(e){return e}function Au(e){return Array.from(e)}function Mu(e){return Z(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 gu(e/864e5)}(e)),o=Math.abs(function(e){return gu(e%864e5/36e5)}(e)),i=Math.abs(function(e){return gu(e%36e5/6e4)}(e)),s=Math.abs(function(e){return gu(e%6e4/1e3)}(e)),u=Math.abs(function(e){return gu(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:f(o,2)}:${f(i,2)}:${f(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+f(u,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}(u):""}`}(e)}function Iu(){return null}function Ou(e){return Z(e,"O")}function Pu(e,t){return JSON.stringify(t,T(2,null),D(e))}function Du(e,t,n,r){const o=new j(null),i=Jo(Ei(r),o,e);let s;if(Ui(r)){const e=Ge((e=>{const r=ku(t,xi(e)),o=Fu(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}}),Fi(r));s=t=>Qt(((e,n)=>n(t)(e)),{},e)}else{if(!Gi(r)){let e;const t=Ei(r);throw e=Se(be("Cannot generate auto encoder for %s. Please pass an extra encoder."))(t),new Error(e)}s=e=>{const o=function(e,t){const n=Di(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],u=o[1],l=0|u.length;if(0===l)return xi(s);{const e=0|l,r=Bi(s),o=Re(new Array(e+1),0,e+1,null);o[0]=xi(s);for(let s=1;s<=e;s++){const e=Fu(i,t,n,r[s-1][1]);o[s]=e(u[s-1])}return o}}}return o.contents=s,s}function Fu(e,t,n,r){const o=Ei(r),i=Xo(o,e);if(null==i){if(ki(r)){const o=Fu(e,t,n,Ni(r));return e=>Au(tn(o,e))}if(Mi(r)){const e=Ei(Ii(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=Ei(r);return xe(be("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(Ai(r)){if(Li(r)){const o=Ge((r=>Fu(e,t,n,r)),Ri(r));return e=>{return Au((t=(e,t)=>o[e](t),n=e,Jt((()=>jt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?D(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))));var t,n}}{const o=Ei(Ti(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new $((()=>{return o=Fu(e,t,n,pi(r)[0]),e=>{return function(e,t){return null!=e?F(e):null}(null!=(t=e)?D(o(F(t))):void 0);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=Fu(e,t,n,pi(r)[0]);return e=>Au(tn(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=pi(r)[0],i=Fu(e,t,n,pi(r)[1]);if("System.String"===Ei(o)||"System.Guid"===Ei(o))return e=>Qt(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Fu(e,t,n,o);return r=s,e=>Au(tn((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Du(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Iu:"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?Ou:"System.DateTimeOffset"===o?Mu:"System.TimeSpan"===o?Tu:"System.Guid"===o?Nu:"System.Object"===o?e=>e:Du(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Ru(e,t,n,r){const o=U(t,new Cu(0)),i=U(r,!0);return Fu(function(e){return null!=e?Ko(((e,t)=>new j(t[0])),e.Coders):Qo()}(n),o,i,e)}xu(),xu();const Gu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Uu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Lu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Bu(e,t){try{return t.contents=function(e){function t(e){return e.replace(Uu,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Gu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+me(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Uu.test(n))return t(n);if(Lu.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}}function Hu(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 ju(e,t){try{return t.contents=function(e){const[t,n]=X(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return Hu(t.getTime(),r)}(e),!0}catch(e){return!1}}class zu{constructor(e){this.k=e}}function qu(e){return new zu(e)}function Wu(e){return e.k}class Vu extends zu{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Zu(e,t,n,r){return new Vu(e,t,n,r)}function Yu(e){return e.left}function Ju(e){return e.right}function Xu(e){return e.h}function Ku(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Vu){e=Yu(o),t=Ku(Ju(o),r+1);continue e}return r+1|0}return 0|r}}function Qu(e){return Ku(e,0)}function el(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Vu?Xu(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Vu?Xu(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?qu(t):Zu(t,e,n,i+1)}function tl(e,t,n){let r,o,i,s,u,l;if(null!=e){const t=e;u=t instanceof Vu?Xu(t):1}else u=0;if(null!=n){const e=n;l=e instanceof Vu?Xu(e):1}else l=0;if(l>u+2){const i=F(n);if(i instanceof Vu){if(r=Yu(i),(null!=r?(o=r,o instanceof Vu?Xu(o):1):0)>u+1){const n=F(Yu(i));if(n instanceof Vu)return el(el(e,t,Yu(n)),Wu(n),el(Ju(n),Wu(i),Ju(i)));throw new Error("internal error: Set.rebalance")}return el(el(e,t,Yu(i)),Wu(i),Ju(i))}throw new Error("internal error: Set.rebalance")}if(u>l+2){const r=F(e);if(r instanceof Vu){if(i=Ju(r),(null!=i?(s=i,s instanceof Vu?Xu(s):1):0)>l+1){const e=F(Ju(r));if(e instanceof Vu)return el(el(Yu(r),Wu(r),Yu(e)),Wu(e),el(Ju(e),t,n));throw new Error("internal error: Set.rebalance")}return el(Yu(r),Wu(r),el(Ju(r),t,n))}throw new Error("internal error: Set.rebalance")}return el(e,t,n)}function nl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Wu(r));if(r instanceof Vu)return o<0?tl(nl(e,t,Yu(r)),Wu(r),Ju(r)):0===o?n:tl(Yu(r),Wu(r),nl(e,t,Ju(r)));{const o=0|e.Compare(t,Wu(r));return o<0?Zu(t,void 0,n,2):0===o?n:Zu(t,n,void 0,2)}}return qu(t)}function rl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Wu(s));if(s instanceof Vu){if(u<0){e=r,t=o,n=Yu(s);continue e}if(0===u)return!0;e=r,t=o,n=Ju(s);continue e}return 0===u}return!1}}function ol(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Vu){ol(n,Yu(o)),n(Wu(o)),e=n,t=Ju(o);continue e}n(Wu(o))}break}}class il extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function sl(e){e:for(;;){const t=e;if(Ke(t))return Ye();{const n=et(t),r=tt(t);if(null!=n){const o=n;if(o instanceof Vu){e=it([Yu(o),qu(Wu(o)),Ju(o)],r);continue e}return t}e=r;continue e}}}function ul(e){return new il(sl(Xe(e)),!1)}function ll(e){if(e.started){const t=e.stack;if(Ke(t))return function(){throw new Error("Enumeration already started")}();if(null!=et(t))return Wu(et(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function al(e){let t=ul(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>ll(t),"System.Collections.IEnumerator.get_Current":()=>ll(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Ke(t))return!1;if(null!=et(t)){if(et(t)instanceof Vu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=sl(tt(t)),!Ke(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Ke(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=ul(e)},Dispose(){}}}function cl(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(Ke(s[0]))return Ke(s[1])?0:-1;if(Ke(s[1]))return 1;if(null!=et(s[1]))if(null!=et(s[0])){const u=et(s[0]),l=et(s[1]);if(u instanceof Vu)if(null==Yu(u)){if(!(l instanceof Vu)){const o=0|r.Compare(Wu(u),Wu(l));if(0!==o)return 0|o;e=r,t=Je(Ju(u),tt(s[0])),n=Je(void 0,tt(s[1]));continue e}if(null==Yu(l)){const o=0|r.Compare(Wu(u),Wu(l));if(0!==o)return 0|o;e=r,t=Je(Ju(u),tt(s[0])),n=Je(Ju(l),tt(s[1]));continue e}{const s=[o,i];let u,l,a,c,$;switch(Ke(s[0])?Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2:null!=et(s[0])?(u=0,l=tt(s[0]),a=et(s[0])):Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2,u){case 0:if(a instanceof Vu){e=r,t=it([Yu(a),Zu(Wu(a),void 0,Ju(a),0)],l),n=i;continue e}e=r,t=it([void 0,qu(Wu(a))],l),n=i;continue e;case 1:if($ instanceof Vu){e=r,t=o,n=it([Yu($),Zu(Wu($),void 0,Ju($),0)],c);continue e}e=r,t=o,n=it([void 0,qu(Wu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,l,a,c,$;switch(Ke(s[0])?Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2:null!=et(s[0])?(u=0,l=tt(s[0]),a=et(s[0])):Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2,u){case 0:if(a instanceof Vu){e=r,t=it([Yu(a),Zu(Wu(a),void 0,Ju(a),0)],l),n=i;continue e}e=r,t=it([void 0,qu(Wu(a))],l),n=i;continue e;case 1:if($ instanceof Vu){e=r,t=o,n=it([Yu($),Zu(Wu($),void 0,Ju($),0)],c);continue e}e=r,t=o,n=it([void 0,qu(Wu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(l instanceof Vu)){const o=0|r.Compare(Wu(u),Wu(l));if(0!==o)return 0|o;e=r,t=tt(s[0]),n=tt(s[1]);continue e}if(null==Yu(l)){const o=0|r.Compare(Wu(u),Wu(l));if(0!==o)return 0|o;e=r,t=Je(void 0,tt(s[0])),n=Je(Ju(l),tt(s[1]));continue e}{const s=[o,i];let u,l,a,c,$;switch(Ke(s[0])?Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2:null!=et(s[0])?(u=0,l=tt(s[0]),a=et(s[0])):Ke(s[1])?u=2:null!=et(s[1])?(u=1,c=tt(s[1]),$=et(s[1])):u=2,u){case 0:if(a instanceof Vu){e=r,t=it([Yu(a),Zu(Wu(a),void 0,Ju(a),0)],l),n=i;continue e}e=r,t=it([void 0,qu(Wu(a))],l),n=i;continue e;case 1:if($ instanceof Vu){e=r,t=o,n=it([Yu($),Zu(Wu($),void 0,Ju($),0)],c);continue e}e=r,t=o,n=it([void 0,qu(Wu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{et(s[1]);const u=[o,i];let l,a,c,$,f;switch(Ke(u[0])?Ke(u[1])?l=2:null!=et(u[1])?(l=1,$=tt(u[1]),f=et(u[1])):l=2:null!=et(u[0])?(l=0,a=tt(u[0]),c=et(u[0])):Ke(u[1])?l=2:null!=et(u[1])?(l=1,$=tt(u[1]),f=et(u[1])):l=2,l){case 0:if(c instanceof Vu){e=r,t=it([Yu(c),Zu(Wu(c),void 0,Ju(c),0)],a),n=i;continue e}e=r,t=it([void 0,qu(Wu(c))],a),n=i;continue e;case 1:if(f instanceof Vu){e=r,t=o,n=it([Yu(f),Zu(Wu(f),void 0,Ju(f),0)],$);continue e}e=r,t=o,n=it([void 0,qu(Wu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==et(s[0])){e=r,t=tt(s[0]),n=tt(s[1]);continue e}{et(s[0]);const u=[o,i];let l,a,c,$,f;switch(Ke(u[0])?Ke(u[1])?l=2:null!=et(u[1])?(l=1,$=tt(u[1]),f=et(u[1])):l=2:null!=et(u[0])?(l=0,a=tt(u[0]),c=et(u[0])):Ke(u[1])?l=2:null!=et(u[1])?(l=1,$=tt(u[1]),f=et(u[1])):l=2,l){case 0:if(c instanceof Vu){e=r,t=it([Yu(c),Zu(Wu(c),void 0,Ju(c),0)],a),n=i;continue e}e=r,t=it([void 0,qu(Wu(c))],a),n=i;continue e;case 1:if(f instanceof Vu){e=r,t=o,n=it([Yu(f),Zu(Wu(f),void 0,Ju(f),0)],$);continue e}e=r,t=o,n=it([void 0,qu(Wu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Xe(t),Xe(n))}function $l(e,t,n){let r=n;ol((e=>{t[r]=e,r=r+1|0}),e)}function fl(e,t){if(r(t))return function(e,t){return Ue(((t,n)=>nl(e,n,t)),void 0,t)}(e,t);if(t instanceof Be)return function(e,t){return rt(((t,n)=>nl(e,n,t)),void 0,t)}(e,t);{const n=a(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=nl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{s(n)}}}class dl{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|y(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{s(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof dl&&0===cl(hl(this),ml(this),ml(e))}toString(){return"set ["+Me("; ",tn((e=>L(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|cl(hl(this),ml(this),ml(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 rl(hl(this),e,ml(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){$l(ml(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|pl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|pl(this)}GetEnumerator(){return al(ml(this))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return al(ml(this))}get size(){return 0|pl(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 rl(hl(e),t,ml(e))}(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function hl(e){return e.comparer}function ml(e){return e.tree}function pl(e){return Qu(ml(e))}function wl(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 gl(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new gt(1,function(e,t){const n=2===t.tag?wl(t.fields[0],t.fields[1],!0):1===t.tag?wl(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?wl(t.fields[0],t.fields[1],!0):4===t.tag?wl(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"+Me("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:wl(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new gt(0,r.fields[0])}function yl(e,t){try{return gl("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new gt(1,"Given an invalid JSON: "+e.message);throw e}}const _l=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 gt(0,(e+128&255)-128):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for a sbyte")]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!1,8,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])},vl=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 gt(0,255&e):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for a byte")]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!0,8,new j((()=>t),(e=>{t=e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])},bl=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 gt(0,(e+32768&65535)-32768):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for "+n)]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!1,16,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])},Cl=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 gt(0,65535&e):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for "+n)]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!0,16,new j((()=>t),(e=>{t=e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])},Sl=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 gt(0,~~e):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for an int")]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!1,32,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])},xl=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 gt(0,e>>>0):new gt(1,[r,new bu(1,n,e,"Value was either too large or too small for "+n)]):new gt(1,[r,new bu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[$s(o,511,!0,32,new j((()=>t),(e=>{t=e}))),t],e[0]?new gt(0,e[1]):new gt(1,[r,new bu(0,n,o)])}return new gt(1,[r,new bu(0,n,o)])};function El(e,t,n,r){let o;const i=n+".["+h(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new gt(1,[i,new bu(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=n.length,h(o)+"` entries"),r)])}return new gt(1,[i,new bu(0,"an array",r)])}function kl(e,t,n){if(Array.isArray(n)){let r=-1;return yt(ot,Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new gt(0,Je(i.fields[0],n.fields[0])):new gt(1,i.fields[0])}return n}),new gt(0,Ye()),n))}return new gt(1,[t,new bu(0,"a list",n)])}function Nl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+h(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new gt(0,i)):new gt(1,s.fields[0])}return n}),new gt(0,Re(new Array(o.length),0,o.length,null)),o)}return new gt(1,[t,new bu(0,"an array",n)])}function Al(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new gt(1,o.fields[0])}function Ml(e,t){let n;const r=e;return n=e=>t=>El(0,r,e,t),e=>r=>Al(T(3,(e=>{let n;const r=t;return n=e=>t=>El(1,r,e,t),t=>r=>Al(((t,n,r)=>new gt(0,[e,t])),T(2,n),t,r)})),T(2,n),e,r)}function Tl(e){return Wo(e)}function Il(e){return function(e,t){return new dl(e,t)}(t={Compare:k},fl(t,e));var t}function Ol(e,t,n,r){let o,i;return t.length!==r.length?new gt(1,[n,new bu(6,(o=0|r.length,i=0|t.length,Se(be("Expected %i %s but got %i"))(i)(e)(o)))]):Le(((e,t,r)=>0===r.tag?yt((e=>Je(e,r.fields[0])),t(n)(e)):r),r,t,new gt(0,Ye()))}function Pl(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>xi(e)===r))}(0,Di(n));if(null!=s){const n=s;return 0===i.length?new gt(0,Hi(n,[])):yt((e=>Hi(n,nt(e))),Ol("union fields",Ge((n=>Fl(e,t,!1,n[1])),Bi(n)),o,i))}return new gt(1,[o,new bu(6,"Cannot find case "+r+" in "+Ei(n))])}function Dl(e,t,n,r){const o=new j(null),i=Jo(Ei(r),o,e);let s;if(Ui(r)){const e=Ge((e=>[ku(t,xi(e)),Fl(i,t,!1,e[1])]),Fi(r));s=t=>n=>yt((e=>function(e,t){const n=Fi(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,nt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new gt(1,[t,new bu(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(T(2,(e=>{const r=e[0];return o=>0===o.tag?yt((e=>Je(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new gt(0,Ye()))}(e,t,n))}else if(Gi(r))s=e=>n=>{if("string"==typeof n)return Pl(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return Pl(i,t,r,o[0],e,o.slice(1,o.length))}return new gt(1,[e,new bu(0,"a string or array",n)])};else{if(!n){let e;const t=Ei(r);throw e=Se(be("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new gt(1,[e,new bu(2,"an extra coder for "+Ei(r),t)])}return o.contents=s,s}function Fl(e,t,n,r){let o,i,s;const u=Ei(r),l=Xo(u,e);if(null==l){if(ki(r)){const n=Fl(e,t,!1,Ni(r));return e=>t=>Nl(T(2,n),e,t)}if(Mi(r)){const e=Ei(Ii(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=_l(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,e.toString())):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=vl(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,e.toString())):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=bl(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,e.toString(u))):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Cl(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,e.toString())):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Sl(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,h(e))):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=xl(o)(i);if(1===s.tag)return new gt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Oi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new gt(0,Pi(n,e.toString())):new gt(1,[o,new bu(1,Ei(n),i,"Unkown value provided for the enum")])}};{const e=Ei(r),t=xe(be("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(Ai(r)){if(Li(r)){const n=Ge((n=>Fl(e,t,!1,n)),Ri(r));return e=>t=>Array.isArray(t)?yt((e=>nt(e)),Ol("tuple elements",n,e,t)):new gt(1,[e,new bu(0,"an array",t)])}{const u=Ei(Ti(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===u)return o=Fl(e,t,!0,pi(r)[0]),e=>t=>{return n=T(2,o),r=e,null==(i=t)?new gt(0,void 0):yt(D,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===u)return i=Fl(e,t,!1,pi(r)[0]),e=>t=>kl(T(2,i),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===u){const n=Fl(e,t,!1,pi(r)[0]),o=Fl(e,t,!1,pi(r)[1]);let i;const u=st([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new gt(1,[n,new bu(0,"an object",r)]):Qt(((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 gt(0,Je([s.fields[0],e.fields[0]],o.fields[0])):new gt(1,e.fields[0])}return new gt(1,s.fields[0])}return o}),new gt(0,Ye()),Object.keys(r))}(T(2,n),T(2,o),e,t),(s=Ml(T(2,n),T(2,o)),e=>t=>kl(T(2,s),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Ke(o))return new gt(1,[n,new bu(7,i)]);{const s=gl(n,T(2,et(o)),r);if(1===s.tag){e=tt(o),t=lt(i,Xe(s.fields[0]));continue e}return new gt(0,s.fields[0])}}})(u,Ye());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new gt(1,o.fields[0]):new gt(0,e(o.fields[0]))}(Tl,T(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===u){const n=Fl(e,t,!1,pi(r)[0]);return e=>t=>{const r=Nl(T(2,n),e,t);return 0===r.tag?new gt(0,Il(r.fields[0])):new gt(1,r.fields[0])}}return Dl(e,t,n,r)}}return"System.Boolean"===u?e=>t=>{return n=e,"boolean"==typeof(r=t)?new gt(0,r):new gt(1,[n,new bu(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===u?e=>t=>{return n=e,null==(r=t)?new gt(0,void 0):new gt(1,[n,new bu(0,"null",r)]);var n,r}:"System.String"===u?e=>t=>{return n=e,"string"==typeof(r=t)?new gt(0,r):new gt(1,[n,new bu(0,"a string",r)]);var n,r}:"System.SByte"===u?_l:"System.Byte"===u?vl:"System.Int16"===u?bl:"System.UInt16"===u?Cl:"System.Int32"===u?Sl:"System.UInt32"===u?xl:"System.Double"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new gt(0,r):new gt(1,[n,new bu(0,"a float",r)]);var n,r}:"System.Single"===u?e=>t=>{return n=e,"number"==typeof(r=t)?new gt(0,r):new gt(1,[n,new bu(0,"a float32",r)]);var n,r}:"System.DateTime"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=J();return n=[K(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new gt(0,function(e){return 1===e.kind?e:Y(e.getTime(),1)}(n[1])):new gt(1,[e,new bu(0,"a datetime",t)])}return new gt(1,[e,new bu(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=Hu(-621355968e5,0);return n=[ju(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new gt(0,n[1]):new gt(1,[e,new bu(0,"a datetimeoffset",t)])}return new gt(1,[e,new bu(0,"a datetime",t)])}(e,t):"System.TimeSpan"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[vu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new gt(0,n[1]):new gt(1,[e,new bu(0,"a timespan",t)])}return new gt(1,[e,new bu(0,"a timespan",t)])}(e,t):"System.Guid"===u?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";return n=[Bu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new gt(0,n[1]):new gt(1,[e,new bu(0,"a guid",t)])}return new gt(1,[e,new bu(0,"a guid",t)])}(e,t):"System.Object"===u?e=>e=>new gt(0,e):Dl(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}function Rl(e,t,n){const r=U(t,new Cu(0));return Fl(function(e){return null!=e?Ko(((e,t)=>new j(t[1])),e.Coders):Qo()}(n),r,!1,e)}class Gl extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Title=t,this.Gender=n,this.Email=r,this.MobilePhone=o,this.DateOfBirth=i,this.Address=s}}function Ul(){return yi("Dto.Api.Backend.Common.FullProfileDto",[],Gl,(()=>[["Name",Vi()],["Title",Si],["Gender",Si],["Email",Si],["MobilePhone",Si],["DateOfBirth",Si],["Address",Yi()]]))}class Ll extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function Bl(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function Hl(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function jl(e){return e.tag,e.fields[0]}function zl(e){let t,n,r,o,i;const s=e.hideAlert,u=e.alert,l=bt();Xr((()=>{!function(e,t){xt(wt.Delay((()=>wt.Bind(pt((e=>{let t;const n=setTimeout((()=>{e.cancelToken.removeListener(t),e.onSuccess(void 0)}),5e3);t=e.cancelToken.addListener((()=>{clearTimeout(n),e.onCancel(new ht)}))})),(()=>(e(),wt.Zero()))))),t)}(s,l)}));const a=Cn("svg",A(st([["className",Me(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=Xe(Cn("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"})),["children",Wr.Children.toArray(Array.from(t))])])));return Cn("div",A(st([["className",Me(" ",["rounded-md","p-4","my-4",Hl(u)])],(n=[Cn("div",A(st([["className",Me(" ",["flex"])],(r=[Cn("p",{className:Me(" ",["text-sm",Bl(u)]),children:jl(u)}),Cn("div",A(st([["className",Me(" ",["ml-auto"])],(o=[Cn("div",A(st([["className",Me(" ",["-mx-1.5","-my-1.5"])],(i=[Cn("button",{type:"button",className:Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("p-1.5"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>function(e){switch(e.tag){case 0:return st(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return st(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return st(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(u))))))))))))))))))))))),children:Wr.Children.toArray([a]),onClick:e=>{Ct(l),s()}})],["children",Wr.Children.toArray(Array.from(i))])])))],["children",Wr.Children.toArray(Array.from(o))])])))],["children",Wr.Children.toArray(Array.from(r))])])))],["children",Wr.Children.toArray(Array.from(n))])])))}class ql extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Email=t,this.MobilePhone=n,this.Title=r,this.Gender=o,this.DateOfBirth=i,this.Address=s}}class Wl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Full","Partial"]}}class Vl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","EmailNotUnique"]}}class Zl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Yl(e,t){const n=Kr(bt());return Jr((()=>Zr((()=>{Ct(n.current)}))),[]),Qr((r=>{var o;null!=(o=n.current)&&o.isCancelled||xt(wt.Delay((()=>wt.TryWith(wt.Delay((()=>(t(new Zl(1)),wt.Bind(e(r),(e=>(t(new Zl(2,e)),wt.Zero())))))),(e=>(t(new Zl(3,e)),wt.Zero()))))),n.current)}))}function Jl(e){return ai(e)}function Xl(){return st([[new ji(0),"Male"],[new ji(1),"Female"],[new ji(2),"Intersex"],[new ji(3),"Transgender"],[new ji(4),"Prefer not to answer"],[new ji(5),"Other"]])}function Kl(e){return ct((t=>t[1]===e?t[0]:void 0),Xl())}class Ql extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function ea(){return st([[new Ql(0),"Mr"],[new Ql(1),"Miss"],[new Ql(2),"Mrs"],[new Ql(3),"Ms"],[new Ql(4),"Mx"],[new Ql(5),"Dr"],[new Ql(6),"Prof"]])}function ta(e){return ct((t=>t[1]===e?t[0]:void 0),ea())}class na extends H{constructor(e,t,n,r,o,i){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n,this.Title=r,this.DateOfBirth=o,this.Gender=i}}const ra=new na("","","",void 0,void 0,void 0);class oa extends H{constructor(e,t,n,r,o,i,s){super(),this.Email=e,this.MobileNumber=t,this.StreetAddress=n,this.Suburb=r,this.State=o,this.Postcode=i,this.NonUniqueEmails=s}}const ia=new oa("","","","",void 0,"",Ye());class sa extends H{constructor(e,t){super(),this.Identification=e,this.ContactDetails=t}}const ua=new sa(ra,ia);function la(e){let t,n,r,o,i,s,u;if(1===e.tag){const l=e.fields[0];return new sa(new na(l.Name.FirstName,U(l.Name.MiddleName,""),l.Name.LastName,(t=l.Title,null==t?void 0:ta(t)),(n=l.DateOfBirth,null==n?void 0:Jl(n)),(r=l.Gender,null==r?void 0:Kl(r))),new oa(l.Email,us(U(l.MobilePhone,"")),U((o=l.Address,null==o?void 0:o.AddressLine1),""),U((i=l.Address,null==i?void 0:i.City),""),(s=l.Address,null==s?void 0:os(s.State)),U((u=l.Address,null==u?void 0:u.Postcode),""),Ye()))}{const t=e.fields[0];return new sa(new na(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,ta(t.Title),Jl(t.DateOfBirth),Kl(t.Gender)),new oa(t.Email,us(t.MobilePhone),t.Address.AddressLine1,t.Address.City,os(t.Address.State),t.Address.Postcode,Ye()))}}class aa extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.ExistingProfile=n,this.SaveStatus=r}}class ca extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function $a(e){return`${e}/profiles/backend/profiles`}function fa(e,t){const n=wt.Delay((()=>{const n=$i(t,oi(new fo(0),ri($a(e))));return wt.Bind(n,(e=>{const t=e;if(1===t.tag)return wt.Return(new gt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,yl(T(2,Rl(_i("Dto.Api.Backend.Read.ProfileDto",[],Wl,(()=>[[["Item",Ul()]],[["Item",yi("Dto.Api.Backend.Read.PartialProfileDto",[],ql,(()=>[["Name",Vi()],["Email",Si],["MobilePhone",vi(Si)],["Title",vi(Si)],["Gender",vi(Si)],["DateOfBirth",vi(Si)],["Address",vi(Yi())]]))]]])),new Cu(1),void 0)),n));return wt.Return(t)}return wt.Return(new gt(1,""))}var n}))}));return wt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new gt(1,new es(1)):new gt(0,n.fields[0]),wt.Return(t)}))}function da(e,t,n){const r=wt.Delay((()=>{let r;const o=$i(t,(r=si(new mo(1,function(e){return Pu(0,Ru(Ul(),new Cu(1),void 0,void 0)(e))}(n)),oi(new fo(2),ri($a(e)))),ii(ei("application/json"),r)));return wt.Bind(o,(e=>{const t=e;if(1===t.tag)return wt.Return(new gt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,yl(T(2,Rl(_i("Dto.Api.Backend.Read.ProfileUpdateStatus",[],Vl,(()=>[[],[]])),new Cu(1),void 0)),n));return wt.Return(t)}return wt.Return(new gt(1,""))}var n}))}));return wt.Bind(r,(e=>{let t;const n=e;return t=1===n.tag?new gt(1,new es(0)):new gt(0,n.fields[0]),wt.Return(t)}))}function ha(e,t){if(1===e.tag)return[new aa(new sa(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()];if(2!==e.tag){if(3===e.tag){const n=new aa(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Zl(1)),r=function(e){let t,n;const r=e.Identification.Gender;if(n=null==r?new gt(1,"Gender missing"):new gt(0,r),t=1===n.tag?new gt(1,n.fields[0]):new gt(0,function(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}(n.fields[0])),1===t.tag)return new gt(1,t.fields[0]);{let n,r;const o=e.ContactDetails.State;if(r=null==o?new gt(1,"State missing"):new gt(0,o),n=1===r.tag?new gt(1,r.fields[0]):new gt(0,ns(r.fields[0])),1===n.tag)return new gt(1,n.fields[0]);{let r,o;const i=e.Identification.Title;if(o=null==i?new gt(1,"Title missing"):new gt(0,i),r=1===o.tag?new gt(1,o.fields[0]):new gt(0,function(e){return L(e)}(o.fields[0])),1===r.tag)return new gt(1,r.fields[0]);{let o,i;const s=e.Identification.DateOfBirth;return i=null==s?new gt(1,"DateOfBirth missing"):new gt(0,s),o=1===i.tag?new gt(1,i.fields[0]):new gt(0,function(e){return Z(e,"yyyy-MM-dd")}(i.fields[0])),1===o.tag?new gt(1,o.fields[0]):new gt(0,new Gl(new Wi(e.Identification.FirstName.trim(),li(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),r.fields[0],t.fields[0],e.ContactDetails.Email.trim(),ss(e.ContactDetails.MobileNumber),o.fields[0],new Zi(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),n.fields[0],e.ContactDetails.Postcode.trim(),"AU")))}}}}(t.FormModel);return 1===r.tag?[n,Tt(new ca(4,new gt(1,new es(0))))]:[n,It((e=>{Ot(e)}),(t=>da(e.fields[0],e.fields[1],t)),r.fields[0],(t=>new ca(4,yt((t=>[t,e.fields[2]]),t))),(e=>new ca(4,new gt(1,new es(0)))))]}return 4===e.tag?1===e.fields[0].tag?[new aa(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Zl(3,new Error(ts(e.fields[0].fields[0])))),Tt(new ca(5,new Ll(1,ts(e.fields[0].fields[0]))))]:1===e.fields[0].fields[0][0].tag?[new aa(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Zl(2,void 0)),Tt(new ca(1,(e=>new oa(e.Email,e.MobileNumber,e.StreetAddress,e.Suburb,e.State,e.Postcode,lt(e.NonUniqueEmails,Xe(t.FormModel.ContactDetails.Email))))))]:(e.fields[0].fields[0][1](),[new aa(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Zl(2,void 0)),Mt()]):5===e.tag?[new aa(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Mt()]:6===e.tag?[new aa(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Mt()]:[new aa(new sa(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()]}{let n,r;switch(3===e.fields[0].tag?n=1:0===e.fields[0].tag?n=2:1===e.fields[0].tag?n=3:1===e.fields[0].fields[0].tag?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new aa(la(r),t.CurrentAlert,new Zl(2,r),t.SaveStatus),Mt()];case 1:return[new aa(t.FormModel,t.CurrentAlert,new Zl(3,new Error(ts(new es(1)))),t.SaveStatus),Mt()];case 2:return[new aa(t.FormModel,t.CurrentAlert,new Zl(0),t.SaveStatus),Mt()];case 3:return[new aa(t.FormModel,t.CurrentAlert,new Zl(1),t.SaveStatus),Mt()]}}}function ma(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class pa{constructor(e,t){const n=new j(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=a(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();_a(n.contents,e)}}finally{s(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return a(this)}GetEnumerator(){return a(qt(this.hashMap.values()))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){_a(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){ga(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return va(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Qt(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|ya(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return ba(this,e)}get size(){return 0|ya(this)}add(e){return _a(this,e),this}clear(){ga(this)}delete(e){return ba(this,e)}has(e){return va(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function wa(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,u=new j((()=>o),(e=>{o=e})),!!i.has(s)&&(u.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,u}function ga(e){e.hashMap.clear()}function ya(e){let t=0,n=a(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{s(n)}return 0|t}function _a(e,t){const n=wa(e,t);return n[0]?!(n[2]>-1)&&(ma(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function va(e,t){const n=wa(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function ba(e,t){const n=wa(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return ma(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function Ca(e,t){return zt((()=>{const n=new pa([],t);return function(e,t){return function(e,t){return Yt((()=>jt(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=>{s(e)}))}((t=>e(t)?D(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}function Sa(e){const t=ir(e);return[t[0],e=>{t[1](e)}]}class xa extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Ea(e){const t=e.values();return n=Zt(zt((()=>rn((e=>{const t=e[0],n=at((t=>Ne(t,e[1])),function(e,t){const n=je(),r=rt(((e,t)=>{const n=1===(r=t).tag?r.fields[0]:void 0;var r;if(null==n)return e;{const t=new Be(F(n),void 0);return e.tail=t,t}}),n,t),o=je();return r.tail=o,Ze(n)}(0,at((e=>{switch(e.tag){case 1:return function(e,t){return t.length>e?new gt(1,Se(be("{0} exceeds the max length of %i"))(e)):new gt(0,void 0)}(e.fields[0],t.value);case 2:return n=e.fields[0],t.value.length<n?new gt(1,Se(be("{0} must be at least %i characters"))(n)):new gt(0,void 0);case 3:return function(e,t,n){return null!=pe(he(e),n)?new gt(0,void 0):new gt(1,Se(be("{0} is not a valid %s"))(t))}(e.fields[0],e.fields[1],t.value);case 4:return e.fields[0];default:return function(e){return Ae(e)?new gt(1,"{0} is required"):new gt(0,void 0)}(t.value)}var n}),e[2])));return Xt(Qe(n)>0?(t.classList.add("error"),t.setAttribute("title",function(e,t){return function(e,t){return((e,n)=>{for(;;){const r=e,o=n,i=o.tail;if(null==i)throw new Error("The index was outside the range of elements in the collection.\\nParameter name: index");if(r===t)return o.head;e=r+1,n=i}})(0,e)}(t,e)}(0,n)),Wt()):(t.classList.remove("error"),t.removeAttribute("title"),Wt()),zt((()=>n)))}),t)))),r={Equals:(e,t)=>e===t,GetHashCode:p},Zt(Ca(n,r));var n,r}function ka(e){let t=a(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];e.classList.remove("error"),e.removeAttribute("title")}}finally{s(t)}}function Na(){const e=ar(new Map([])).current,t=Sa(Ye()),n=t[1],r=t[0],o=Sa(!1),i=o[1];return ur((()=>{if(o[0]){const t=Ea(e);C(t,r)||(n(t),ka(e))}})),[ar((t=>n=>r=>{if(!C(r,null)){let o;o=r.hasAttribute("data-vkey")?r.getAttribute("data-vkey"):h(_(r)),e.set(o,[r,t,n])}})).current,()=>{i(!0);const t=Ea(e);return n(t),0===Qe(t)},()=>{i(!1),ka(e),n(Ye())},r]}const Aa=L(n(118).Z),Ma=st(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class Ta extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Your","EmergencyContact"]}}function Ia(e){return 1===e.tag?"emergency contact":"your"}class Oa extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TestId"]}}function Pa(e){return e.fields[0]}function Da(e,t){return e+(n=t,r=new xa(0),o={Equals:C,GetHashCode:_},null!=$t((e=>o.Equals(r,e)),n)?" *":"");var n,r,o}function Fa(e,t,n,r,o){const i=Zt(zt((()=>Xt(Vt(Cn("label",{className:Me(" ",["block","text-sm","font-medium","text-gray-700"]),children:Da(e,t)})),zt((()=>Xt(Vt(Cn("div",{className:Me(" ",["mt-1"]),children:Wr.Children.toArray([o])})),zt((()=>{if(null!=n){const e=n;return Vt(Cn("p",{className:Me(" ",["mt-2","text-sm","text-red-600"]),children:e,"data-testid":`${Pa(r)}-error`}))}return Vt(null)})))))))));return Cn("div",{children:Wr.Children.toArray(Array.from(i))})}const Ra=st(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Ga(e){return Zt(zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>e?Ra:Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))))))))))))))))))}function Ua(e,t,n,r,o,i,s,u,l){return Fa(e,r,o,u,Cn("input",A(Zt(zt((()=>Xt(Vt(["className",Me(" ",Ga(null!=o))]),zt((()=>Xt(Vt(["value",t]),zt((()=>Xt(Vt(["ref",O(1,n,[r])]),zt((()=>Xt(Vt(["type","text"]),zt((()=>Xt(Vt(["onChange",e=>{i(e.target.value)}]),zt((()=>Xt(Vt(["placeholder",`Enter ${Ia(s)} ${e.toLocaleLowerCase()}`]),zt((()=>Xt(Vt(["data-testid",Pa(u)]),zt((()=>l)))))))))))))))))))))))))))}class La extends H{constructor(e,t,n){super(),this.Day=e,this.Month=t,this.Year=n}}const Ba=new La("","","");function Ha(e){return 1===e.length?`0${e}`:e}function ja(e){const t=function(e){return`${e.Year}-${Ha(e.Month)}-${Ha(e.Day)}`}(e),n=(r=t,ms(new ps(7),((e,t,n)=>{}),r));var r;let o;switch(o=1===n.tag&&7===n.fields[0].tag?0:1,o){case 0:return new gt(1,void 0);case 1:return new gt(0,t)}}function za(e){let t,n,r,o,i;const s=e.onChangeHandler,u=e.testId,l=e.error,a=e.validationRules,c=e.rulesForFieldName,$=e.value,f=e.fieldName,d=(m=null==$?Ba:function(e){return new La(Ha(h(re(e))),Ha(h(oe(e))),h(ie(e)))}($),Wr.useState(m));var m;const p=d[0],w=e=>{let t;d[1](e),s((t=ja(e),1===t.tag?void 0:ai(t.fields[0])))},g=(e,t,n,r)=>{const o=Pe(Qi,r);return 0==(0|o.length)?o:cs(o,511,!1,32)<=t?De(o,0,function(e,t,n){return e(t,n)<0?t:n}(x,e,o.length)):n},y=Pa(u);return Fa(f,a,l,u,Cn("div",A(st([["className",Me(" ",["grid","grid-cols-4","gap-1"])],(t=[Cn("div",A(st([["className",Me(" ",["col-span-1"])],(n=[Cn("input",{className:Me(" ",Ga(null!=l)),type:"text",value:p.Day,placeholder:"dd",onChange:e=>{const t=e.target.value;w(new La(g(2,31,p.Day,t),p.Month,p.Year))},onBlur:e=>{w(new La(Ha(p.Day),p.Month,p.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${y}-day`})],["children",Wr.Children.toArray(Array.from(n))])]))),Cn("div",A(st([["className",Me(" ",["col-span-1"])],(r=[Cn("input",{className:Me(" ",Ga(null!=l)),type:"text",value:p.Month,placeholder:"mm",onChange:e=>{const t=e.target.value;w(new La(p.Day,g(2,12,p.Month,t),p.Year))},onBlur:e=>{w(new La(p.Day,Ha(p.Month),p.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${y}-month`})],["children",Wr.Children.toArray(Array.from(r))])]))),Cn("div",A(st([["className",Me(" ",["col-span-2"])],(o=[Cn("input",{className:Me(" ",Ga(null!=l)),type:"text",value:p.Year,placeholder:"yyyy",onChange:e=>{let t;const n=e.target.value;w(new La(p.Day,p.Month,g(4,(t=ee(),ie(t)),p.Year,n)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${y}-year`})],["children",Wr.Children.toArray(Array.from(o))])]))),Cn("input",{type:"hidden",ref:c(a),value:(i=ja(p),1===i.tag?"":i.fields[0])})],["children",Wr.Children.toArray(Array.from(t))])]))))}function qa(e,t,n,r,o,i,s,u,l){let a;return Fa(e,o,i,l,Cn("select",A(st([["className",Me(" ",Zt(zt((()=>Xt(Vt("mt-1"),zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("pl-3"),zt((()=>Xt(Vt("pr-10"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("text-base"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>null==i?Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))):Ra)))))))))))))))))))))))))))))))],["ref",O(1,r,[o])],(a=Zt(zt((()=>Xt(Vt(Cn("option",{selected:null==t,disabled:!0,value:"",children:`Select ${Ia(u)} ${e.toLocaleLowerCase()}`})),zt((()=>rn((e=>{const n=e[1];return Vt(Cn("option",{selected:Kt(e[0],G(t),{Equals:C,GetHashCode:y}),value:n,children:n,className:Me(" ",["text-black"])}))}),n))))))),["children",Wr.Children.toArray(Array.from(a))]),["onChange",e=>{s(e.target.value)}],["data-testid",Pa(l)]]))))}function Wa(e,t,n,r,o,i,s,u){return Fa(e,r,o,u,Cn("input",{className:Me(" ",Ga(null!=o)),type:"tel",value:t,ref:O(1,n,[r]),onChange:e=>{let t;const n=e.target.value;i((t=Pe(Qi,n),0===n.indexOf("+")?`+${t}`:t))},placeholder:`Enter ${Ia(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Pa(u)}))}function Va(e,t,n){let r,o,i,s;const u=n&&!C(t,new Zl(1)),l=Cn("svg",A(st([["className",Me(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=st([Cn("circle",{className:Me(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),Cn("path",{className:Me(" ",["opacity-75"]),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),["children",Wr.Children.toArray(Array.from(r))])])));return Cn("div",A(st([["className",Me(" ",["flex","flex-row-reverse"])],(o=[(i=Xe(Cn("button",A(st([["className",Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("items-center"),zt((()=>Xt(Vt("px-4"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("border"),zt((()=>Xt(Vt("border-transparent"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("text-sm"),zt((()=>Xt(Vt("font-medium"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("text-primary-text"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>{const e=[u,t];let n;switch(n=e[0]||1===e[1].tag?0:1,n){case 0:return Xt(Vt("bg-primary-base"),zt((()=>Vt("hover:bg-primary-hover"))));case 1:return Vt("bg-primary-disabled")}})))))))))))))))))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!u],["onClick",t=>{u&&e()}],(s=Zt(zt((()=>Xt(1===t.tag?Vt(l):Vt(null),zt((()=>Vt(Cn("span",{children:["Save and continue"]})))))))),["children",Wr.Children.toArray(Array.from(s))]),["data-testid","save"]])))),Cn("div",{children:Wr.Children.toArray(Array.from(i))}))],["children",Wr.Children.toArray(Array.from(o))])])))}function Za(e){return(0===e.indexOf("04")?10===e.length:0===e.indexOf("614")?11===e.length:0===e.indexOf("+614")&&12===e.length)?new gt(0,void 0):new gt(1,new ps(9))}function Ya(e){let t;return new xa(4,(t=function(e){let t;const n=e;return 1===n.tag?new gt(1,(t=n.fields[0],1===t.tag?`{0} exceeds the character limit of ${t.fields[0]}`:2===t.tag?`{0} must be at least ${t.fields[0]} characters`:4===t.tag?"{0} must only have numbers":5===t.tag?"{0} is not valid":3===t.tag?"{0} has invalid characters":6===t.tag?"{0} is not valid":9===t.tag?"{0} is not a valid Australian mobile number":7===t.tag?"{0} is not valid":8===t.tag?0===t.fields[0].tag?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":10===t.tag?"{0} must start with a letter":"{0} is required")):new gt(0,n.fields[0])}(e),1===t.tag?new gt(1,t.fields[0]):new gt(0,void 0)))}function Ja(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Xa(e){let t;const n=oo([new aa(ua,void 0,new Zl(0),new Zl(0)),Mt()],ha),r=n[0],o=n[1],i=Na(),s=i[0],u=i[3];Xr(Yl((()=>fa(e.backendUrl,e.accessToken)),(e=>{o(new ca(2,e))})));const l=Cn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Personal Details"});return Cn("div",A(st([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Cn("style",{children:[Aa]})),zt((()=>{const t=r.ExistingProfile;switch(t.tag){case 1:default:return Vt(Cn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(l),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Cn("div",A(st([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Cn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Identification"})),zt((()=>{let o;const i="Identification";return Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Legal first name",s=`${i}.${o}`;return Xt(Vt(Ua(o,e.FirstName,T(2,O(2,t,[s])),st([new xa(0),Ya(Es(e.FirstName))]),fi(s,o,n),(e=>{r(new ca(0,(t=>new na(di(e),t.MiddleName,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ta(0),new Oa(0,"first-name"),[["autoComplete","given-name"]])),zt((()=>{const o="Middle name",s=`${i}.Middle name`;return Xt(Vt(Ua(o,e.MiddleName,T(2,O(2,t,[s])),Xe(Ya(function(e){return null!=e?xs(st([e=>_s(60,e),e=>Ss("-",e),e=>Ss("'",e),e=>bs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e):new gt(0,void 0)}(li(e.MiddleName)))),fi(s,o,n),(e=>{r(new ca(0,(t=>new na(t.FirstName,di(e),t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ta(0),new Oa(0,"middle-name"),[["autoComplete","additional-name"]])),zt((()=>{const o="Last name",s=`${i}.Last name`;return Xt(Vt(Ua(o,e.LastName,T(2,O(2,t,[s])),st([new xa(0),Ya(Es(e.LastName))]),fi(s,o,n),(e=>{r(new ca(0,(t=>new na(t.FirstName,t.MiddleName,di(e),t.Title,t.DateOfBirth,t.Gender))))}),new Ta(0),new Oa(0,"last-name"),[["autoComplete","family-name"]])),zt((()=>{let o;const s="Title",u=`${i}.Title`;return Xt(Vt(qa(s,e.Title,ea(),T(2,O(2,t,[u])),st([new xa(0),Ya((o=e.Title,null==o?new gt(1,new ps(0)):new gt(0,o)))]),fi(u,s,n),(e=>{r(new ca(0,(t=>new na(t.FirstName,t.MiddleName,t.LastName,ta(e),t.DateOfBirth,t.Gender))))}),new Ta(0),new Oa(0,"title"))),zt((()=>{let o;const s="Date of birth",u=`${i}.Date of birth`;return Xt(Vt(Cn(za,{fieldName:s,value:e.DateOfBirth,rulesForFieldName:O(2,t,[u]),validationRules:st([new xa(0),Ya((o=e.DateOfBirth,null==o?new gt(1,new ps(0)):(l=o,function(e){return t=>xs(Xe((t=>vs(e,t))),t)}(Y(Date.now(),1))(l))))]),error:fi(u,s,n),testId:new Oa(0,"dob"),onChangeHandler:e=>{r(new ca(0,(t=>new na(t.FirstName,t.MiddleName,t.LastName,t.Title,e,t.Gender))))}})),zt((()=>{let o;const s="Gender",u=`${i}.Gender`;return Vt(qa(s,e.Gender,Xl(),T(2,O(2,t,[u])),st([new xa(0),Ya((o=e.Gender,null==o?new gt(1,new ps(0)):new gt(0,o)))]),fi(u,s,n),(e=>{r(new ca(0,(t=>new na(t.FirstName,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,Kl(e)))))}),new Ta(0),new Oa(0,"gender")))})));var l})))})))})))})))}))),["children",Wr.Children.toArray(Array.from(o))])]))))})))))),["children",Wr.Children.toArray(Array.from(o))])])))}(r.FormModel.Identification,T(3,s),u,o)),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Cn("div",A(st([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Cn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Contact details"})),zt((()=>{let o;const i="ContactDetails";return Xt(Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Email",s=`${i}.Email`;return Xt(Vt(Ua(o,e.Email,T(2,O(2,t,[s])),st([new xa(0),Ya(Ns(e.Email)),new xa(4,ft((t=>0===function(...e){switch(e.length){case 2:return ve(e[0],e[1],!1);case 3:return ve(e[0],e[1],e[2]);case 4:return ve(e[0],e[1],!0===e[2]);case 5:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t,e.Email,5)),e.NonUniqueEmails)?new gt(1,"{0} is already taken"):new gt(0,void 0))]),fi(s,o,n),(e=>{r(new ca(1,(t=>new oa(e,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"email"),[["autoComplete","email"]])),zt((()=>{const o="Mobile number",s=`${i}.Mobile number`;return Vt(Wa(o,e.MobileNumber,T(2,O(2,t,[s])),st([new xa(0),Ya(Za(e.MobileNumber))]),fi(s,o,n),(e=>{r(new ca(1,(t=>new oa(t.Email,e,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"mobile")))})))}))),["children",Wr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Ua(o,e.StreetAddress,T(2,O(2,t,[s])),st([new xa(0),Ya(ks(e.StreetAddress))]),fi(s,o,n),(e=>{r(new ca(1,(t=>new oa(t.Email,t.MobileNumber,di(e),t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Ua(o,e.Suburb,T(2,O(2,t,[s])),st([new xa(0),Ya(As(e.Suburb))]),fi(s,o,n),(e=>{r(new ca(1,(t=>new oa(t.Email,t.MobileNumber,t.StreetAddress,di(e),t.State,t.Postcode,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(qa(s,e.State,rs(),T(2,O(2,t,[u])),st([new xa(0),Ya((o=e.State,null==o?new gt(1,new ps(0)):new gt(0,o)))]),fi(u,s,n),(e=>{r(new ca(1,(t=>new oa(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,os(e),t.Postcode,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Ua(o,e.Postcode,T(2,O(2,t,[s])),st([new xa(0),Ya(Ms(e.Postcode))]),fi(s,o,n),(e=>{r(new ca(1,(t=>new oa(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,e,t.NonUniqueEmails))))}),new Ta(0),new Oa(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Wr.Children.toArray(Array.from(o))])]))))})))})))))),["children",Wr.Children.toArray(Array.from(o))])])))}(r.FormModel.ContactDetails,T(3,s),u,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Cn(zl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new ca(6))}})):Wt(),zt((()=>Vt(Va((()=>{i[1]()?o(new ca(3,e.backendUrl,e.accessToken,(()=>{en((e=>{Ja("personal-details",e)}),G(R(document.querySelector("apollo-personal-details-app"))))}))):o(new ca(5,new Ll(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Ke(u)))))))))))))));case 3:return Xt(Vt(l),zt((()=>{let e;return Vt((e=t.fields[0].message,Cn("p",{children:[e]})))})))}})))))),["children",Wr.Children.toArray(Array.from(t))])])))}function Ka(e){return L(e)}function Qa(){return at((e=>[e,Ka(e)]),ut(tn((e=>Hi(e,[])),Di(_i("DomainPrimitives.Relationship",[],zi,(()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]))))))}function ec(e){return ct((t=>t[1]===e?t[0]:void 0),Qa())}class tc extends H{constructor(e,t,n,r,o,i,s,u){super(),this.FullName=e,this.Relationship=t,this.PhoneNumber=n,this.Email=r,this.StreetAddress=o,this.Suburb=i,this.State=s,this.Postcode=u}}const nc=new tc("",void 0,"","","","",void 0,"");function rc(e,t){let n;const r=function(e){let t,n;const r=e.Relationship;if(n=null==r?new gt(1,"Relationship missing"):new gt(0,r),t=1===n.tag?new gt(1,n.fields[0]):new gt(0,function(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}(n.fields[0])),1===t.tag)return new gt(1,t.fields[0]);{let n,r;const o=e.State;return r=null==o?new gt(1,"State missing"):new gt(0,o),n=1===r.tag?new gt(1,r.fields[0]):new gt(0,ns(r.fields[0])),1===n.tag?new gt(1,n.fields[0]):new gt(0,new Ji(e.FullName.trim(),t.fields[0],ss(e.PhoneNumber),li(e.Email),new Zi(e.StreetAddress.trim(),void 0,e.Suburb.trim(),n.fields[0],e.Postcode.trim(),"AU")))}}(e);return 1===r.tag?new gt(1,r.fields[0]):new gt(0,(n=r.fields[0],Ke(t)?Xe(n):function(e,t){const n=je(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(qe(s))return i;t=o+1,n=e(o,i,Ve(s)),r=Ze(s)}})(0,t,n)}(((t,n,r)=>{const o=new Be(e(t,r),void 0);return n.tail=o,o}),n,t),o=je();return r.tail=o,Ze(n)}(((e,t)=>0===e?n:t),t)))}function oc(e){let t,n,r,o;return new tc(e.FullName,ec(e.Relationship),us(e.MobilePhone),U(e.Email,""),U((t=e.Address,null==t?void 0:t.AddressLine1),""),U((n=e.Address,null==n?void 0:n.City),""),(r=e.Address,null==r?void 0:os(r.State)),U((o=e.Address,null==o?void 0:o.Postcode),""))}class ic extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.SaveStatus=n,this.ExistingEmergencyContacts=r}}class sc extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function uc(e){return`${e}/profiles/backend/emergency-contacts`}function lc(e,t){let n,r;if(1!==e.tag){if(2===e.tag){const n=new ic(t.FormModel,t.CurrentAlert,new Zl(1),t.ExistingEmergencyContacts),s=(o=e=>rc(t.FormModel,e),r=t.ExistingEmergencyContacts,0===(i=2===r.tag?new gt(0,r.fields[0]):new gt(1,"Existing ec has not been loaded")).tag?o(i.fields[0]):new gt(1,i.fields[0]));return 1===s.tag?[n,Tt(new sc(3,new gt(1,new es(0))))]:[n,It((e=>{Ot(e)}),(t=>function(e,t,n){return wt.Delay((()=>{let r;const o=$i(t,(r=si(new mo(1,(i=n,Pu(0,Ru(bi(Xi()),new Cu(1),void 0,void 0)(i)))),oi(new fo(2),ri(uc(e)))),ii(ei("application/json"),r)));var i;return wt.Bind(o,(e=>{const t=e;return 1===t.tag?wt.Return(new gt(1,t.fields[0])):200===t.fields[0].statusCode?wt.Return(new gt(0,void 0)):wt.Return(new gt(1,new es(0)))}))}))}(e.fields[0],e.fields[1],t)),s.fields[0],(t=>new sc(3,yt((t=>e.fields[2]),t))),(e=>new sc(3,new gt(1,new es(0)))))]}return 3===e.tag?1===e.fields[0].tag?[new ic(t.FormModel,t.CurrentAlert,new Zl(3,new Error(ts(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Tt(new sc(4,new Ll(1,ts(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new ic(t.FormModel,t.CurrentAlert,new Zl(2,void 0),t.ExistingEmergencyContacts),Mt()]):4===e.tag?[new ic(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:5===e.tag?[new ic(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:[new ic(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]}{let r,o;switch(3===e.fields[0].tag?r=1:0===e.fields[0].tag?r=2:1===e.fields[0].tag?r=3:1===e.fields[0].fields[0].tag?r=1:(r=0,o=e.fields[0].fields[0].fields[0]),r){case 0:return[new ic((s=o,n=qe(s)?void 0:D(Ve(s)),null==n?t.FormModel:oc(n)),t.CurrentAlert,t.SaveStatus,new Zl(2,o)),Mt()];case 1:return[new ic(t.FormModel,t.CurrentAlert,t.SaveStatus,new Zl(3,new Error(ts(new es(1))))),Mt()];case 2:return[new ic(t.FormModel,t.CurrentAlert,t.SaveStatus,new Zl(0)),Mt()];case 3:return[new ic(t.FormModel,t.CurrentAlert,t.SaveStatus,new Zl(1)),Mt()]}}var o,i,s}function ac(e){let t;const n=oo([new ic(nc,void 0,new Zl(0),new Zl(0)),Mt()],lc),r=n[0],o=n[1],i=Na(),s=i[3];Xr(Yl((()=>function(e,t){const n=wt.Delay((()=>{const n=$i(t,oi(new fo(0),ri(uc(e))));return wt.Bind(n,(e=>{const t=e;if(1===t.tag)return wt.Return(new gt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,yl(T(2,Rl(bi(Xi()),new Cu(1),void 0)),n));return wt.Return(t)}return wt.Return(new gt(1,""))}var n}))}));return wt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new gt(1,new es(1)):new gt(0,n.fields[0]),wt.Return(t)}))}(e.backendUrl,e.accessToken)),(e=>{o(new sc(1,e))})));const u=Cn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return Cn("div",A(st([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Cn("style",{children:[Aa]})),zt((()=>{const t=r.ExistingEmergencyContacts;switch(t.tag){case 1:default:return Vt(Cn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(u),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Cn("div",A(st([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>{let o;const i="EmergencyContact";return Xt(Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Full name",s=`${i}.Full name`;return Xt(Vt(Ua(o,e.FullName,T(2,O(2,t,[s])),st([new xa(0),Ya(Es(e.FullName))]),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(di(e),t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ta(1),new Oa(0,"full-name"),[])),zt((()=>{let o;const s="Relationship",u=`${i}.Relationship`;return Vt(qa(s,e.Relationship,Qa(),T(2,O(2,t,[u])),st([new xa(0),Ya((o=e.Relationship,null==o?new gt(1,new ps(0)):new gt(0,o)))]),fi(u,s,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,ec(e),t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ta(1),new Oa(0,"relationship")))})))}))),["children",Wr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Xt(Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Phone number",s=`${i}.Phone number`;return Xt(Vt(Wa(o,e.PhoneNumber,T(2,O(2,t,[s])),st([new xa(0),Ya(Za(e.PhoneNumber))]),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,e,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ta(1),new Oa(0,"phone"))),zt((()=>{const o="Email",s=`${i}.Email`;return Vt(Ua(o,e.Email,T(2,O(2,t,[s])),Xe(Ya(function(e){return null!=e?xs(Xe(Ns),e):new gt(0,void 0)}(li(e.Email)))),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,t.PhoneNumber,e,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ta(1),new Oa(0,"email"),[]))})))}))),["children",Wr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Cn("div",A(st([["className",Me(" ",Ma)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Ua(o,e.StreetAddress,T(2,O(2,t,[s])),st([new xa(0),Ya(ks(e.StreetAddress))]),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,di(e),t.Suburb,t.State,t.Postcode))))}),new Ta(1),new Oa(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Ua(o,e.Suburb,T(2,O(2,t,[s])),st([new xa(0),Ya(As(e.Suburb))]),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,di(e),t.State,t.Postcode))))}),new Ta(1),new Oa(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(qa(s,e.State,rs(),T(2,O(2,t,[u])),st([new xa(0),Ya((o=e.State,null==o?new gt(1,new ps(0)):new gt(0,o)))]),fi(u,s,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,os(e),t.Postcode))))}),new Ta(1),new Oa(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Ua(o,e.Postcode,T(2,O(2,t,[s])),st([new xa(0),Ya(Ms(e.Postcode))]),fi(s,o,n),(e=>{r(new sc(0,(t=>new tc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,e))))}),new Ta(1),new Oa(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Wr.Children.toArray(Array.from(o))])]))))})))})))}))),["children",Wr.Children.toArray(Array.from(o))])])))}(r.FormModel,T(3,i[0]),s,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Cn(zl,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new sc(5))}})):Wt(),zt((()=>Vt(Va((()=>{i[1]()?o(new sc(2,e.backendUrl,e.accessToken,(()=>{en((e=>{Ja("emergency-contacts",e)}),G(R(document.querySelector("apollo-emergency-contacts-app"))))}))):o(new sc(4,new Ll(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Ke(s))))))))))));case 3:return Xt(Vt(u),zt((()=>{let e;return Vt((e=t.fields[0].message,Cn("p",{children:[e]})))})))}})))))),["children",Wr.Children.toArray(Array.from(t))])])))}ci((e=>Cn(Xa,e)),"apollo-personal-details-app"),ci((e=>Cn(ac,e)),"apollo-emergency-contacts-app")},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(746),n(118)})();
1
+ (()=>{"use strict";var e={118:(e,t,n)=>{n.d(t,{Z:()=>g});var r=n(81),o=n.n(r),i=n(645),s=n.n(i),u=n(667),a=n.n(u),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=a()(l),m=a()(c),p=a()($),w=a()(f);d.push([e.id,'/*! tailwindcss v3.0.23 | 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%;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:-ms-input-placeholder,textarea:-ms-input-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%}[hidden]{display:none}[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:-ms-input-placeholder,textarea:-ms-input-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}[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}[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;-webkit-user-select:none;-moz-user-select:none;-ms-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("+m+")}[type=radio]:checked{background-image:url("+p+")}[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 auto -webkit-focus-ring-color}*,:after,:before{--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: }.col-span-1{grid-column:span 1/span 1}.col-span-2{grid-column:span 2/span 2}.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}.ml-auto{margin-left:auto}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.-ml-1{margin-left:-.25rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mb-2{margin-bottom:.5rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}.hidden{display:none}.h-5{height:1.25rem}.w-5{width:1.25rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-row-reverse{flex-direction:row-reverse}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-4{row-gap:1rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-red-300{--tw-border-opacity:1;border-color:rgb(252 165 165/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-transparent{border-color:transparent}.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-primary-base{background-color:var(--fl-color-primary)}.bg-primary-disabled{background-color:var(--fl-color-primary-disabled)}.p-4{padding:1rem}.p-1\\.5{padding:.375rem}.p-1{padding:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.pl-3{padding-left:.75rem}.pr-10{padding-right:2.5rem}.font-sans{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}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-red-900{--tw-text-opacity:1;color:rgb(127 29 29/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-primary-text{color:var(--fl-color-primary-text)}.placeholder-red-300::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(252 165 165/var(--tw-placeholder-opacity))}.placeholder-red-300:-ms-input-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))}.opacity-25{opacity:.25}.opacity-75{opacity:.75}.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)}.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-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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.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-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.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}@media (min-width:640px){.sm\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}",""]);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 u=0;u<this.length;u++){var a=this[u][0];null!=a&&(s[a]=!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]}},515:(e,t,n)=>{function r(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function o(e){return"function"==typeof e.GetHashCode}function i(e){return null!=e&&"function"==typeof e.Dispose}function s(e){i(e)&&e.Dispose()}function u(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 a{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 l(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new a(e[Symbol.iterator]())}function c(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 ${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 f(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function d(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class m{static id(e){return m.idMap.has(e)||m.idMap.set(e,++m.count),m.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function w(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce(((e,t)=>(e<<5)+e^t))}function y(e){var t;if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return w(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=y(e[r]);return g(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=>y(e)));return g(t)}return w(m.id(e))}}function _(e){return null==e?0:o(e)?e.GetHashCode():w(m.id(e))}function v(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 b(e,t){return v(e,t,C)}function C(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):r(e)?r(t)&&b(e,t):e instanceof Date?t instanceof Date&&0===S(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]||!C(e[n[o]],t[r[o]]))return!1;return!0}(e,t)))}function S(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+d(e),r=t.getTime()+d(t)),n===r?0:n<r?-1:1}function x(e,t){return e===t?0:e<t?-1:1}function E(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,k)}function k(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):r(e)?r(t)?E(e,t):-1:e instanceof Date?t instanceof Date?S(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=k(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function N(e,t,n){return e(t,n)>0?t:n}function A(e){const t={};for(const n of e)t[n[0]]=n[1];return t}m.idMap=new WeakMap,m.count=0;const M=Symbol("curried");function T(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[M]=t,n}function I(e,t,n){return r=>1===t?n(...e.concat([r])):I(e.concat([r]),t-1,n)}function O(e,t,n){if(null!=t){if(M in t){t=t[M];for(let e=0;e<n.length;e++)t=t(n[e]);return t}return I(n,e,t)}}class P{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return y(this.value)}Equals(e){return null!=e&&C(this.value,e instanceof P?e.value:e)}CompareTo(e){return null==e?1:k(this.value,e instanceof P?e.value:e)}}function D(e){return null==e||e instanceof P?new P(e):e}function F(e){if(null==e)throw new Error("Option has no value");return e instanceof P?e.value:e}function R(e){return null==e?void 0:e}function G(e){return null==e?[]:[F(e)]}function U(e,t){return null!=e?F(e):t}function L(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+=L(r);else{if(100===t){n+="; ...";break}n+="; "+L(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+" = "+L(n,t+1))).join("\n ")+" }":null!==(r=null==o?void 0:o.name)&&void 0!==r?r:""}}return String(e)}class B{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=L(t[0]),r=n.indexOf(" ")>=0):n=t.map((e=>L(e))).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>y(e)));return e.splice(0,0,w(this.tag)),g(e)}Equals(e){return this===e||!!u(this,e)&&this.tag===e.tag&&b(this.fields,e.fields)}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class H{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+" = "+L(t))).join("\n ")+" }"}(this)}GetHashCode(){return function(e){const t=Object.values(e).map((e=>y(e)));return g(t)}(this)}Equals(e){return function(e,t){if(e===t)return!0;if(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!C(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(u(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=k(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class j{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 z(e){return function(e){return e instanceof class{constructor(e){this.message=e}}||e instanceof Error}(e)?e:new Error(String(e))}function q(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+f(~~(e/36e5),2)+":"+f(n,2)}function W(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 V(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 Z(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," ")+q(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return V(i,t,!0);switch(t){case"D":case"d":return W(i,"first");case"T":case"t":return W(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+q(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 V(e,t,n);switch(t){case"D":case"d":return n?W(e,"first"):e.toLocaleDateString();case"T":case"t":return n?W(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 f(e.getFullYear(),4)+"-"+f(e.getMonth()+1,2)+"-"+f(e.getDate(),2)+"T"+f(e.getHours(),2)+":"+f(e.getMinutes(),2)+":"+f(e.getSeconds(),2)+"."+f(e.getMilliseconds(),3)+(t?q(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}(e,t)}function Y(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function J(){return Y(-621355968e5,0)}function X(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 K(e,t){try{return t.contents=function(e,t=!1){const[n,r]=X(e),o=null!=r?t&&"Z"===r?1:2:0;return Y(n.getTime(),o)}(e),!0}catch(e){return!1}}function Q(e,t,n,r=0,o=0,i=0,s=0,u){const a=1===u?Date.UTC(e,t-1,n,r,o,i,s):new Date(e,t-1,n,r,o,i,s).getTime();if(isNaN(a))throw new Error("The parameters describe an unrepresentable Date.");const l=Y(a,u);return e<=99&&l.setFullYear(e,t-1,n),l}function ee(){return ne(Y(Date.now(),2))}function te(e){return e%4==0&&e%100!=0||e%400==0}function ne(e){return Q(ie(e),oe(e),re(e),0,0,0,0,e.kind)}function re(e){return 1===e.kind?e.getUTCDate():e.getDate()}function oe(e){return(1===e.kind?e.getUTCMonth():e.getMonth())+1}function ie(e){return 1===e.kind?e.getUTCFullYear():e.getFullYear()}const se=S,ue=Symbol("numeric");function ae(e){return"number"==typeof e||(null==e?void 0:e[ue])}function le(e,t){return"number"==typeof e?e*t:e[ue]().multiply(t)}function ce(e,t){return"number"==typeof e?e.toFixed(t):e[ue]().toFixed(t)}function $e(e,t){return"number"==typeof e?e.toPrecision(t):e[ue]().toPrecision(t)}function fe(e,t){return"number"==typeof e?e.toExponential(t):e[ue]().toExponential(t)}function de(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[ue]().toHex()}function he(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)}function me(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function pe(e,t,n=0){return e.lastIndex=n,e.exec(t)}function we(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}const ge=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,ye=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _e(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function ve(e,t,n){function r(e){return!0===e||1===e||3===e||5===e}return null==e?null==t?0:-1:null==t?1:4===(o=n)||5===o?(r(n)&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t?0:e<t?-1:1):(r(n)&&(e=e.toLocaleLowerCase(),t=t.toLocaleLowerCase()),e.localeCompare(t));var o}function be(e){return{input:e,cont:(t=e,e=>{ge.lastIndex=0;const n=[],r=[];let o=0,i=ge.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=ge.lastIndex,ge.lastIndex-=1,i=ge.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),ke(e,n,r))})};var t}function Ce(e,t){return"string"==typeof t?e(t):t.cont(e)}function Se(e){return Ce((e=>e),e)}function xe(e){return Ce((e=>{throw new Error(e)}),e)}function Ee(e,t,n,r,o){let i="";if(t=t||"",o=o||"",ae(e))switch("x"!==o.toLowerCase()&&(_e(e,0)?(e=le(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ce(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?$e(e,r):$e(e);break;case"e":case"E":e=null!=r?fe(e,r):fe(e);break;case"x":e=de(e);break;case"X":e=de(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?Z(e):L(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=Te(e,n-i.length,s,o)):Te(i+e,n,s,o)}return e}function ke(e,t,n,r="",o=-1){return(...i)=>{let s=r;const u=t.slice(),a=n.slice();for(const e of i){const[,,t,n,r,i]=a[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+=u[0],s+=Ee(e,t,l,r,i),u.splice(0,1),a.splice(0,1)}return 0===a.length?(s+=u[0],e(s)):ke(e,u,a,s,o)}}function Ne(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(ye,((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 u=t[n];if(ae(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=ce(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?$e(u,i):$e(u);break;case"e":case"E":u=null!=i?fe(u,i):fe(u);break;case"p":case"P":i=null!=i?i:2,u=ce(le(u,100),i)+" %";break;case"d":case"D":u=null!=i?Ie(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Ie(de(u),i,"0"):de(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/([0#,]+)(\.[0#]+)?/,((t,n,r)=>{_e(u,0)&&(u=le(u,-1),e="-"),r=null==r?"":r.substring(1),u=ce(u,Math.max(r.length,0));let[o,i]=u.split(".");i||(i=""),o=Ie(o,n.replace(/,/g,"").replace(/^#+/,"").length,"0");const s=r.replace(/#+$/,"").length;if(s>i.length?i=function(e,t,n){return Te(e,t,"0",!0)}(i,s):s<i.length&&(i=i.substring(0,s)+i.substring(s).replace(/0+$/,"")),n.indexOf(",")>0){const e=o.length%3,t=Math.floor(o.length/3);let n=e>0?o.substr(0,e)+(t>0?",":""):"";for(let r=0;r<t;r++)n+=o.substr(e+3*r,3)+(r<t-1?",":"");o=n}return i.length>0?o+"."+i:o})),u=e+u}}else u=u instanceof Date?Z(u,s||o):L(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Te(String(u),Math.abs(r)," ",r<0)),u}))}function Ae(e){return"string"!=typeof e||/^\s*$/.test(e)}function Me(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Te(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 Ie(e,t,n){return Te(e,t,n)}function Oe(e,t,n){return e.replace(new RegExp(me(t),"g"),n)}function Pe(e,t){return t.split("").filter((t=>e(t))).join("")}function De(e,t,n){if(t+(n||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=n?e.substr(t,n):e.substr(t)}function Fe(e,t){return"function"==typeof e?new e(t):new Array(t)}function Re(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Ge(e,t,n){const r=0|t.length,o=Fe(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Ue(e,t,n){return n.reduce(e,t)}class Le extends H{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Me("; ",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(C(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 u=s;if(r>18)return 0|o;e=r+1,t=(o<<1)+y(i.head)+631*r,n=u}}})(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],u=0|k(n.head,r.head);if(0===u){e=i,t=s;continue e}return 0|u}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return new Be(this)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}}class Be{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 He(){return new Le(null,void 0)}function je(e,t){return new Le(e,t)}function ze(e){return null==e.tail}function qe(e){return 0|((e,t)=>{for(;;){const n=e,r=t.tail;if(null==r)return 0|n;e=n+1,t=r}})(0,e)}function We(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function Ve(e){const t=e.tail;if(null!=t)return t;throw new Error("Collection was empty.\\nParameter name: list")}function Ze(){return He()}function Ye(e,t){return je(e,t)}function Je(e){return je(e,He())}function Xe(e){return ze(e)}function Ke(e){return qe(e)}function Qe(e){return We(e)}function et(e){return Ve(e)}function tt(e){const t=0|qe(e),n=Re(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(ze(o))break;n[r]=We(o),e=r+1,t=Ve(o)}})(0,e),n}function nt(e,t,n){let r=t,o=n;for(;!ze(o);)r=e(r,We(o)),o=Ve(o);return r}function rt(e){return nt(((e,t)=>je(t,e)),He(),e)}function ot(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=je(e[t],n);return n}function it(e){return ot(e,He())}function st(e){let t,n;if(r(e))return it(e);if(e instanceof Le)return e;{const r=He();let o=r;const i=l(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new Le(e,void 0),t.tail=n,o=n}}finally{s(i)}const u=o,a=He();return u.tail=a,Ve(r)}}function ut(e,t){return nt(((e,t)=>je(t,e)),t,rt(e))}function at(e,t){const n=He(),r=nt(((t,n)=>{const r=new Le(e(n),void 0);return t.tail=r,r}),n,t),o=He();return r.tail=o,Ve(n)}function lt(e,t){return(t=>{e:for(;;){const n=t;if(ze(n))return;{const r=e(We(n));if(null==r){t=Ve(n);continue e}return r}}})(t)}function ct(e,t){return((t,n)=>{for(;;){const r=t,o=n;if(ze(o))return;if(e(We(o)))return r;t=r+1,n=Ve(o)}})(0,t)}function $t(e,t){return null!=ct(e,t)}class ft{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}Dispose(){}}class dt extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,dt.prototype)}}class ht{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>ht.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function mt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new dt);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack((()=>{try{e(t)}catch(e){t.onError(z(e))}}));else try{e(t)}catch(e){t.onError(z(e))}}}const pt=new class{Bind(e,t){return function(e,t){return mt((n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(z(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 mt((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 mt((t=>t.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,t){return mt((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 mt((n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(z(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 mt((e=>e.onSuccess(void 0)))}};class wt extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function gt(e,t){return 0===t.tag?new wt(0,e(t.fields[0])):new wt(1,t.fields[0])}function yt(e,t){return 0===t.tag?e(t.fields[0]):new wt(1,t.fields[0])}class _t extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function vt(e){}function bt(e){const t=new ft("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout((()=>{t.cancel()}),e),t}function Ct(e){e.cancel()}const St=new ft;function xt(e,t){return function(e,t){return function(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new ht;e({onSuccess:t||vt,onError:n||vt,onCancel:r||vt,cancelToken:o||St,trampoline:i})}(e,t)}(e,t)}const Et=class{constructor(){this.delegates=[]}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e,t){let n,r;void 0===t?(n=null,r=e):(n=e,r=t),this.delegates.forEach((e=>1===e.length?e(r):e(n,r)))}AddHandler(e){this._addHandler(e)}RemoveHandler(e){this._removeHandler(e)}Subscribe(e){const t="function"==typeof e?e:e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}};class kt{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}function Nt(e,t){let n,r=new class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new Et}Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval((()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)}),this.Interval):this._timeoutId=setTimeout((()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)}),this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new kt(e))}(t,n.Elapsed()),n.Enabled=!0,n.Start()}function At(e,t){var n;n=t=>{t(e)},nt(((e,t)=>{n(t)}),void 0,t)}function Mt(){return Ze()}function Tt(e){return Je((t=>{t(e)}))}function It(e,t,n,r,o){return Je((i=>{e(pt.Delay((()=>{return pt.Bind((e=t(n),mt((t=>{e({onSuccess:e=>t.onSuccess(function(e){return new _t(0,e)}(e)),onError:e=>t.onSuccess(function(e){return new _t(1,e)}(e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})}))),(e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),pt.Zero()}));var e})))}))}function Ot(e){Nt(0,(t=>{xt(e)}))}function Pt(){return e=k,{Compare:(t,n)=>e(t,n)};var e}const Dt="The input sequence has an insufficient number of elements.";function Ft(){throw new Error("Enumeration has not started. Call MoveNext.")}function Rt(){throw new Error("Enumeration already finished.")}class Gt{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=l(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=L(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(t+="; ..."),t+"]"}finally{s(n)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Ut{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 Lt(e,t,n){return new Ut(e,t,n)}function Bt(e,t,n){let r,o=!1,i=D(e());const s=()=>{if(null!=i){const e=F(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{r=void 0}};return Lt((()=>(o||Ft(),null!=r?F(r):Rt())),(()=>{if(o||(o=!0),null!=i){const e=F(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(r=n,!0):(u(),!1)}return!1}),s)}function Ht(e){return function(e){return new Gt(e)}(e)}function jt(e){return t="source",null==e&&function(e){throw new Error(e)}(t),l(e);var t}function zt(e){return Ht((()=>l(e())))}function qt(e){return Ht((()=>function(e){let t,n,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=n){const e=n;try{s(e)}finally{n=void 0}}if(null!=t){const e=t;try{s(e)}finally{t=void 0}}};return Lt((()=>(o?i&&Rt():Ft(),null!=r?F(r):Rt())),(()=>{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=D(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{s(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=l(a)):(u(),o=!1)}else t=l(e)}return F(o)}}),(()=>{i||u()}))}(e)))}function Wt(){return zt((()=>new Array(0)))}function Vt(e){return zt((()=>function(e,t){const n=Fe(void 0,1);return n[0]=e,n}(e)))}function Zt(e){return r(e)?it(e):e instanceof Le?e:st(e)}function Yt(e,t,n){return Ht((()=>Bt(e,t,n)))}function Jt(e,t,n){return Ht((()=>{let r=-1;return Bt(e,(e=>(r=r+1|0,t(r,e))),n)}))}function Xt(e,t){return qt([e,t])}function Kt(e,t,n){const r=jt(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{s(r)}}function Qt(e,t,n){const r=jt(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{s(r)}}function en(e,t){Qt(((t,n)=>{e(n)}),void 0,t)}function tn(e,t){return Yt((()=>jt(t)),(t=>t["System.Collections.IEnumerator.MoveNext"]()?D(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))}function nn(e){return zt((()=>function(e){return e.slice().reverse()}(function(e){return e instanceof Le?tt(e):Array.from(e)}(e))))}function rn(e,t){return Ht((()=>{const n=jt(t);try{for(let t=1;t<=e;t++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Dt+"\\nParameter name: source");return function(e,t){return Lt((()=>t["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>t["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{s(t)}finally{e()}}))}((()=>{}),n)}catch(e){throw s(n),e}}))}function on(e,t){return zt((()=>qt(tn(e,t))))}function sn(e,t,n,r,o){const i=function(e,t,n,r){const o=0|k(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|k(n,t);return i&&o<=0||!i&&o>=0?[n,r(n,e)]:void 0}}(t,n,r,o);return zt((()=>{return t=i,n=e,Ht((()=>function(e,t){let n,r=t;return Lt((()=>{if(null!=n){const e=n[0];return n[1],e}return Ft()}),(()=>{if(n=e(r),null!=n){n[0];const e=n[1];return r=e,!0}return!1}),(()=>{}))}(t,n)));var t,n}))}Symbol.iterator;class un extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class an{constructor(e){this.state=new un(0,Re(new Array(N(x,e,10)),0,N(x,e,10),null),0)}}function ln(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 un(0,o,n):new un(1,o,n,i),D(o[r])}}class cn extends H{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 $n(e,t){const n=t.init(e),r=n[0],o=new an(10);let i=!1,u=r;const a=O(1,t.syncDispatch,[e=>{if(i)!function(e,t){const n=e.state;if(1===n.tag){const i=0|n.fields[1],u=0|n.fields[2],a=n.fields[0];a[i]=t;const l=(i+1)%a.length|0;e.state=l===u?new un(1,(r=u,o=a,Array.from(zt((()=>Xt(rn(r,o),zt((()=>{return Xt((e=r,t=o,Jt((()=>jt(t)),((t,n)=>{if(t<e){if(n["System.Collections.IEnumerator.MoveNext"]())return D(n["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Dt+"\\nParameter name: source")}}),(e=>{s(e)}))),zt((()=>on((e=>Vt(null)),sn(0,1,o.length,0,((e,t)=>e+t))))));var e,t}))))))),a.length,0):new un(1,a,l,u)}else{const r=0|n.fields[1],o=n.fields[0];o[r]=t;const i=(r+1)%o.length|0;e.state=new un(1,o,i,r)}var r,o}(o,e);else{i=!0;let n=D(e);for(;null!=n;){const e=F(n);try{const n=t.update(e,u),r=n[0];t.setState(r,a),At(a,n[1]),u=r}catch(n){t.onError([Se(be("Unable to process the message: %A"))(e),n])}n=ln(o)}i=!1}}]);t.setState(r,a),At(a,ut((()=>{try{return t.subscribe(r)}catch(e){return t.onError(["Unable to subscribe:",e]),Mt()}})(),n[1]))}var fn,dn,hn,mn,pn,wn,gn,yn={},_n=[],vn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function bn(e,t){for(var n in t)e[n]=t[n];return e}function Cn(e){var t=e.parentNode;t&&t.removeChild(e)}function Sn(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?fn.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return xn(e,s,r,o,null)}function xn(e,t,n,r,o){var i={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==o?++hn:o};return null!=dn.vnode&&dn.vnode(i),i}function En(e){return e.children}function kn(e,t){this.props=e,this.context=t}function Nn(e,t){if(null==t)return e.__?Nn(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?Nn(e):null}function An(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 An(e)}}function Mn(e){(!e.__d&&(e.__d=!0)&&mn.push(e)&&!Tn.__r++||wn!==dn.debounceRendering)&&((wn=dn.debounceRendering)||pn)(Tn)}function Tn(){for(var e;Tn.__r=mn.length;)e=mn.sort((function(e,t){return e.__v.__b-t.__v.__b})),mn=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=bn({},o)).__v=o.__v+1,Ln(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Nn(o):i,o.__h),Bn(n,o),o.__e!=i&&An(o)))}))}function In(e,t,n,r,o,i,s,u,a,l){var c,$,f,d,h,m,p,w=r&&r.__k||_n,g=w.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(d=n.__k[c]=null==(d=t[c])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?xn(null,d,null,null,d):Array.isArray(d)?xn(En,{children:d},null,null,null):d.__b>0?xn(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[c])||f&&d.key==f.key&&d.type===f.type)w[c]=void 0;else for($=0;$<g;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Ln(e,d,f=f||yn,o,i,s,u,a,l),h=d.__e,($=d.ref)&&f.ref!=$&&(p||(p=[]),f.ref&&p.push(f.ref,null,d),p.push($,d.__c||h,d)),null!=h?(null==m&&(m=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=a=On(d,a,e):a=Dn(e,d,f,w,h,a),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=a):e.value=""):a&&f.__e==a&&a.parentNode!=e&&(a=Nn(f))}for(n.__e=m,c=g;c--;)null!=w[c]&&("function"==typeof n.type&&null!=w[c].__e&&w[c].__e==n.__d&&(n.__d=Nn(r,c+1)),zn(w[c],w[c]));if(p)for(c=0;c<p.length;c++)jn(p[c],p[++c],p[++c])}function On(e,t,n){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,t="function"==typeof o.type?On(o,t,n):Dn(n,o,o,e.__k,o.__e,t));return t}function Pn(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Pn(e,t)})):t.push(e)),t}function Dn(e,t,n,r,o,i){var s,u,a;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(u=i,a=0;(u=u.nextSibling)&&a<r.length;a+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Fn(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||vn.test(t)?n:n+"px"}function Rn(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||Fn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Fn(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?Un:Gn,i):e.removeEventListener(t,i?Un:Gn,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 Gn(e){this.l[e.type+!1](dn.event?dn.event(e):e)}function Un(e){this.l[e.type+!0](dn.event?dn.event(e):e)}function Ln(e,t,n,r,o,i,s,u,a){var l,c,$,f,d,h,m,p,w,g,y,_=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(a=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=dn.__b)&&l(t);try{e:if("function"==typeof _){if(p=t.props,w=(l=_.contextType)&&r[l.__c],g=l?w?w.props.value:l.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in _&&_.prototype.render?t.__c=c=new _(p,g):(t.__c=c=new kn(p,g),c.constructor=_,c.render=qn),w&&w.sub(c),c.props=p,c.state||(c.state={}),c.context=g,c.__n=r,$=c.__d=!0,c.__h=[]),null==c.__s&&(c.__s=c.state),null!=_.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=bn({},c.__s)),bn(c.__s,_.getDerivedStateFromProps(p,c.__s))),f=c.props,d=c.state,$)null==_.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==_.getDerivedStateFromProps&&p!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(p,g),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(p,c.__s,g)||t.__v===n.__v){c.props=p,c.state=c.__s,t.__v!==n.__v&&(c.__d=!1),c.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(p,c.__s,g),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,d,h)}))}c.context=g,c.props=p,c.state=c.__s,(l=dn.__r)&&l(t),c.__d=!1,c.__v=t,c.__P=e,l=c.render(c.props,c.state,c.context),c.state=c.__s,null!=c.getChildContext&&(r=bn(bn({},r),c.getChildContext())),$||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,d)),y=null!=l&&l.type===En&&null==l.key?l.props.children:l,In(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,a),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hn(n.__e,t,n,r,o,i,s,a);(l=dn.diffed)&&l(t)}catch(e){t.__v=null,(a||null!=i)&&(t.__e=u,t.__h=!!a,i[i.indexOf(u)]=null),dn.__e(e,t,n)}}function Bn(e,t){dn.__c&&dn.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){dn.__e(e,t.__v)}}))}function Hn(e,t,n,r,o,i,s,u){var a,l,c,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((a=i[h])&&(a===e||(d?a.localName==d:3==a.nodeType))){e=a,i[h]=null;break}if(null==e){if(null===d)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,f.is&&f),i=null,u=!1}if(null===d)$===f||u&&e.data===f||(e.data=f);else{if(i=i&&fn.call(e.childNodes),l=($=n.props||yn).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(c||l)&&(c&&(l&&c.__html==l.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Rn(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]||Rn(e,i,t[i],n[i],r)}(e,f,$,o,u),c)t.__k=[];else if(h=t.props.children,In(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&Nn(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Cn(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h)&&Rn(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Rn(e,"checked",h,$.checked,!1))}return e}function jn(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){dn.__e(e,n)}}function zn(e,t,n){var r,o;if(dn.unmount&&dn.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||jn(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){dn.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&zn(r[o],t,"function"!=typeof e.type);n||null==e.__e||Cn(e.__e),e.__e=e.__d=void 0}function qn(e,t,n){return this.constructor(e,n)}function Wn(e,t,n){var r,o,i;dn.__&&dn.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ln(t,e=(!r&&n||t).__k=Sn(En,null,[e]),o||yn,yn,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?fn.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Bn(i,e)}function Vn(e,t){Wn(e,t,Vn)}function Zn(e,t,n){var r,o,i,s=bn({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];return arguments.length>2&&(s.children=arguments.length>3?fn.call(arguments,2):n),xn(e.type,s,r||e.key,o||e.ref,null)}fn=_n.slice,dn={__e:function(e,t){for(var n,r,o;t=t.__;)if((n=t.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(e)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(e),o=n.__d),o)return n.__E=n}catch(t){e=t}throw e}},hn=0,kn.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=bn({},this.state),"function"==typeof e&&(e=e(bn({},n),this.props)),e&&bn(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Mn(this))},kn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Mn(this))},kn.prototype.render=En,mn=[],pn="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tn.__r=0,gn=0;var Yn,Jn,Xn,Kn=0,Qn=[],er=dn.__b,tr=dn.__r,nr=dn.diffed,rr=dn.__c,or=dn.unmount;function ir(e,t){dn.__h&&dn.__h(Jn,e,Kn||t),Kn=0;var n=Jn.__H||(Jn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function sr(e){return Kn=1,ur(wr,e)}function ur(e,t,n){var r=ir(Yn++,2);return r.t=e,r.__c||(r.__=[n?n(t):wr(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Jn),r.__}function ar(e,t){var n=ir(Yn++,3);!dn.__s&&pr(n.__H,t)&&(n.__=e,n.__H=t,Jn.__H.__h.push(n))}function lr(e,t){var n=ir(Yn++,4);!dn.__s&&pr(n.__H,t)&&(n.__=e,n.__H=t,Jn.__h.push(n))}function cr(e){return Kn=5,$r((function(){return{current:e}}),[])}function $r(e,t){var n=ir(Yn++,7);return pr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function fr(){Qn.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(hr),e.__H.__h.forEach(mr),e.__H.__h=[]}catch(t){e.__H.__h=[],dn.__e(t,e.__v)}})),Qn=[]}dn.__b=function(e){Jn=null,er&&er(e)},dn.__r=function(e){tr&&tr(e),Yn=0;var t=(Jn=e.__c).__H;t&&(t.__h.forEach(hr),t.__h.forEach(mr),t.__h=[])},dn.diffed=function(e){nr&&nr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Qn.push(t)&&Xn===dn.requestAnimationFrame||((Xn=dn.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),dr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);dr&&(t=requestAnimationFrame(n))})(fr)),Jn=void 0},dn.__c=function(e,t){t.some((function(e){try{e.__h.forEach(hr),e.__h=e.__h.filter((function(e){return!e.__||mr(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],dn.__e(n,e.__v)}})),rr&&rr(e,t)},dn.unmount=function(e){or&&or(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(hr)}catch(e){dn.__e(e,t.__v)}};var dr="function"==typeof requestAnimationFrame;function hr(e){var t=Jn;"function"==typeof e.__c&&e.__c(),Jn=t}function mr(e){var t=Jn;e.__c=e.__(),Jn=t}function pr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function wr(e,t){return"function"==typeof t?t(e):t}function gr(e,t){for(var n in t)e[n]=t[n];return e}function yr(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 _r(e){this.props=e}(_r.prototype=new kn).isPureReactComponent=!0,_r.prototype.shouldComponentUpdate=function(e,t){return yr(this.props,e)||yr(this.state,t)};var vr=dn.__b;dn.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),vr&&vr(e)};var br="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,Cr=function(e,t){return null==e?null:Pn(Pn(e).map(t))},Sr={map:Cr,forEach:Cr,count:function(e){return e?Pn(e).length:0},only:function(e){var t=Pn(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Pn},xr=dn.__e;dn.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t);xr(e,t,n)};var Er=dn.unmount;function kr(){this.__u=0,this.t=null,this.__b=null}function Nr(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Ar(){this.u=null,this.o=null}dn.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Er&&Er(e)},(kr.prototype=new kn).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Nr(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;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({__e:r.__b=null});t=r.t.pop();)t.forceUpdate()}},a=!0===t.__h;r.__u++||a||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},kr.prototype.componentWillUnmount=function(){this.t=[]},kr.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=gr({},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.__e&&Sn(En,null,e.fallback);return o&&(o.__h=null),[Sn(En,null,t.__e?null:e.children),o]};var Mr=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 Tr(e){return this.getChildContext=function(){return e.context},e.children}function Ir(e){var t=this,n=e.i;t.componentWillUnmount=function(){Wn(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)}}),Wn(Sn(Tr,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ar.prototype=new kn).__e=function(e){var t=this,n=Nr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Mr(t,e,r)):o()};n?n(i):i()}},Ar.prototype.render=function(e){this.u=null,this.o=new Map;var t=Pn(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},Ar.prototype.componentDidUpdate=Ar.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Mr(e,n,t)}))};var Or="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Pr=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Dr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};kn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(kn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Fr=dn.event;function Rr(){}function Gr(){return this.cancelBubble}function Ur(){return this.defaultPrevented}dn.event=function(e){return Fr&&(e=Fr(e)),e.persist=Rr,e.isPropagationStopped=Gr,e.isDefaultPrevented=Ur,e.nativeEvent=e};var Lr,Br={configurable:!0,get:function(){return this.class}},Hr=dn.vnode;dn.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){for(var o in r={},n){var i=n[o];"value"===o&&"defaultValue"in n&&null==i||("defaultValue"===o&&"value"in n&&null==n.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+t)&&!Dr(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Pr.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Pn(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Pn(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}t&&n.class!=n.className&&(Br.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Br)),e.$$typeof=Or,Hr&&Hr(e)};var jr=dn.__r;dn.__r=function(e){jr&&jr(e),Lr=e.__c};var zr={ReactCurrentDispatcher:{current:{readContext:function(e){return Lr.__n[e.__c].props.value}}}};function qr(e){return!!e&&e.$$typeof===Or}const Wr={useState:sr,useReducer:ur,useEffect:ar,useLayoutEffect:lr,useRef:cr,useImperativeHandle:function(e,t,n){Kn=6,lr((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:$r,useCallback:function(e,t){return Kn=8,$r((function(){return e}),t)},useContext:function(e){var t=Jn.context[e.__c],n=ir(Yn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Jn)),t.props.value):e.__},useDebugValue:function(e,t){dn.useDebugValue&&dn.useDebugValue(t?t(e):e)},version:"17.0.2",Children:Sr,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Wn(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Vn(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Wn(null,e),!0)},createPortal:function(e,t){return Sn(Ir,{__v:e,i:t})},createElement:Sn,createContext:function(e,t){var n={__c:t="__cC"+gn++,__: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(Mn)},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 Sn.bind(null,e)},cloneElement:function(e){return qr(e)?Zn.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:En,isValidElement:qr,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:kn,PureComponent:_r,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:yr(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Sn(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function t(t,n){var r=gr({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=br,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:En,Suspense:kr,SuspenseList:Ar,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 Sn(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:zr},Vr=Wr,Zr=(e,t)=>{ar((()=>{const t=e();return()=>{t.Dispose()}}),t)};function Yr(e){return{Dispose(){e()}}}function Jr(e){return Vr.useState(e)}function Xr(e,t){Zr(e,t)}function Kr(e){!function(e,t){Zr((t=>(e(),Yr((()=>{})))),[])}(e)}function Qr(e){return Vr.useRef(e)}function eo(e){const t=Qr(e),n=function(e,n){const r=U([],[]);return Vr.useCallback((e=>t.current(e)),r)}();var r,o;return r=()=>{t.current=e},o=e=>(r(),Yr((()=>{}))),lr((()=>{const e=o();return()=>{e.Dispose()}})),n}class to{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function no(){return new to}function ro(e,t,n,r){$n(t,function(e,t){return new cn(t.init,t.update,t.subscribe,t.view,((e,t)=>{!function(e,t,n){e.state=D(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 F(o);throw new Error("Elmish program has not initialized")}function oo(e,t){return function(e,t,n){const r=Jr(no)[0],o=Jr((()=>ro(e,t,r))),u=o[1];return Xr((()=>(function(e){return e.hasDisposedOnce}(r)&&u(ro(e,t,r)),Yr((()=>{!function(e){const t=e.state;if(null!=t){const e=F(t);i(e)&&s(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),U(n,[])),function(e,t){null==e.listener&&(e.listener=t)}(r,u),[o[0],e=>{!function(e,t){const n=e.dispatcher;null!=n&&n(t)}(r,e)}]}(e,void 0,t)}function io(e,t,n){return oo((()=>function(e,t,n){return new cn(e,t,(e=>Mt()),n,T(2,(e=>{const t=O(1,n,[e]);return e=>{t(e)}})),(e=>{var t,n;t=e[0],n=e[1],console.error(D(t),n)}),T(2,(e=>e)))}((()=>e),t,((e,t)=>{}))),n)}function so(){return(so=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 uo(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 Zn(t,n)}function ao(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Sn(uo,so({},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,u=t.childNodes;for(i=s.length;i--;)"slot"!==s[i].name&&(o[s[i].name]=s[i].value,o[lo(s[i].name)]=s[i].value);for(i=u.length;i--;){var a=e(u[i],null),l=u[i].slot;l?o[l]=Sn(fo,{name:l},a):r[i]=a}var c=n?Sn(fo,null,r):r;return Sn(n||t.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Vn:Wn)(this._vdom,this._root)}function lo(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function co(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[lo(e)]=n,this._vdom=Zn(this._vdom,r),Wn(this._vdom,this._root)}}function $o(){Wn(this._vdom=null,this._root)}function fo(e,t){var n=this;return Sn("slot",so({},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)}}))}class ho extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class mo extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class po extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class wo extends H{constructor(e,t,n,r,o,i,s,u){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=s,this.content=u}}class go extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class yo extends H{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}class _o{constructor(e,t){this.k=e,this.v=t}}function vo(e,t){return new _o(e,t)}function bo(e){return e.k}function Co(e){return e.v}class So extends _o{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function xo(e,t,n,r,o){return new So(e,t,n,r,o)}function Eo(e){return e.left}function ko(e){return e.right}function No(e){return e.h}function Ao(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof So){e=Ao(n+1,Eo(o)),t=ko(o);continue e}return n+1|0}return 0|n}}function Mo(e){return Ao(0,e)}function To(e,t,n,r){let o,i;if(null!=e){const t=e;o=t instanceof So?No(t):1}else o=0;if(null!=r){const e=r;i=e instanceof So?No(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?vo(t,n):xo(t,n,e,r,s+1)}function Io(e,t,n,r){let o,i,s,u,a,l;if(null!=e){const t=e;a=t instanceof So?No(t):1}else a=0;if(null!=r){const e=r;l=e instanceof So?No(e):1}else l=0;if(l>a+2){const s=F(r);if(s instanceof So){if(o=Eo(s),(null!=o?(i=o,i instanceof So?No(i):1):0)>a+1){const r=F(Eo(s));if(r instanceof So)return To(To(e,t,n,Eo(r)),bo(r),Co(r),To(ko(r),bo(s),Co(s),ko(s)));throw new Error("internal error: Map.rebalance")}return To(To(e,t,n,Eo(s)),bo(s),Co(s),ko(s))}throw new Error("internal error: Map.rebalance")}if(a>l+2){const o=F(e);if(o instanceof So){if(s=ko(o),(null!=s?(u=s,u instanceof So?No(u):1):0)>l+1){const e=F(ko(o));if(e instanceof So)return To(To(Eo(o),bo(o),Co(o),Eo(e)),bo(e),Co(e),To(ko(e),t,n,r));throw new Error("internal error: Map.rebalance")}return To(Eo(o),bo(o),Co(o),To(ko(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return To(e,t,n,r)}function Oo(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,bo(o));return o instanceof So?i<0?Io(Oo(e,t,n,Eo(o)),bo(o),Co(o),ko(o)):0===i?xo(t,n,Eo(o),ko(o),No(o)):Io(Eo(o),bo(o),Co(o),Oo(e,t,n,ko(o))):i<0?xo(t,n,void 0,r,2):0===i?vo(t,n):xo(t,n,r,void 0,2)}return vo(t,n)}function Po(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,bo(s));if(0===u)return D(Co(s));if(s instanceof So){e=r,t=o,n=u<0?Eo(s):ko(s);continue e}return}return}}function Do(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof So){Do(n,Eo(o)),n(bo(o),Co(o)),e=n,t=ko(o);continue e}n(bo(o),Co(o))}break}}function Fo(e,t){Do(e,t)}function Ro(e,t){if(null!=t){const n=t;if(n instanceof So){const t=Ro(e,Eo(n)),r=e(bo(n),Co(n)),o=Ro(e,ko(n));return xo(bo(n),r,t,o,No(n))}return vo(bo(n),e(bo(n),Co(n)))}}function Go(e,t){return Ro(e,t)}function Uo(e,t){let n;for(let r=0;r<=t.length-1;r++){const o=t[r];n=Oo(e,o[0],o[1],n)}return n}class Lo extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function Bo(e){e:for(;;){const t=e;if(Xe(t))return Ze();{const n=et(t),r=Qe(t);if(null!=r){const o=r;if(o instanceof So){e=ot([Eo(o),vo(bo(o),Co(o)),ko(o)],n);continue e}return t}e=n;continue e}}}function Ho(e){return new Lo(Bo(Je(e)),!1)}function jo(e){if(e.started){const t=e.stack;if(Xe(t))return function(){throw new Error("enumeration already finished")}();if(null!=Qe(t)){const e=Qe(t);if(e instanceof So)throw new Error("Please report error: Map iterator, unexpected stack for current");return[bo(e),Co(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zo(e){let t=Ho(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>jo(t),"System.Collections.IEnumerator.get_Current":()=>jo(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Xe(t))return!1;if(null!=Qe(t)){if(Qe(t)instanceof So)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Bo(et(t)),!Xe(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Xe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ho(e)},Dispose(){}}}class qo{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=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=0|t(n,y(e[0])),n=0|t(n,y(e[1]))}}finally{s(r)}return 0|n}(this)}Equals(e){if(!(e instanceof qo))return!1;{const t=l(this);try{const n=l(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!(!C(r[0],o[0])||!C(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{s(n)}}finally{s(t)}}}toString(){return"map ["+Me("; ",tn((e=>Ne("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zo(this.tree)}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zo(this.tree)}CompareTo(e){const t=this;if(e instanceof qo)return 0|function(e,t,n){const r=jt(t);try{const t=jt(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{s(t)}}finally{s(r)}}(((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:k(e[1],n[1]))}),t,e);throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(e){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Jo(this,e[0])&&C(Zo(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){!function(e,t,n){let r=n;Fo(((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|Yo(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Yo(this)}get size(){return 0|Yo(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return tn((e=>[e[0],e[1]]),this)}get(e){return Zo(this,e)}has(e){return Jo(this,e)}keys(){return tn((e=>e[0]),this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return tn((e=>e[1]),this)}forEach(e,t){const n=this;en((t=>{e(t[1],t[0],n)}),n)}}function Wo(e,t){return new qo(e,t)}function Vo(e){const t=Pt();return Wo(t,function(e,t){if(r(t))return Uo(e,t);if(t instanceof Le)return function(e,t){return nt(((t,n)=>Oo(e,n[0],n[1],t)),void 0,t)}(e,t);{const n=l(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=Oo(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{s(n)}}}(t,e))}function Zo(e,t){return function(e,t,n){const r=Po(e,t,n);if(null==r)throw new Error;return F(r)}(e.comparer,t,e.tree)}function Yo(e){return Mo(e.tree)}function Jo(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,bo(s));if(s instanceof So){if(u<0){e=r,t=o,n=Eo(s);continue e}if(0===u)return!0;e=r,t=o,n=ko(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function Xo(e,t,n){return function(e,t,n){return Wo(e.comparer,Oo(e.comparer,t,n,e.tree))}(n,e,t)}function Ko(e,t){return function(e,t){return Po(e.comparer,t,e.tree)}(t,e)}function Qo(e,t){return function(e,t){return Wo(e.comparer,Go(t,e.tree))}(t,e)}function ei(){return qo.empty}function ti(e){return new mo(0,"Content-Type",e)}qo.empty=Wo(Pt(),void 0);const ni=new wo("",new ho(0),Ze(),!1,void 0,void 0,void 0,new po(0));function ri(e,t){return"string"!=typeof(n=t)||0===n.length?[t]:function(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(me),t=t.length>0?t:["\\s"];const s=[],u=new RegExp(t.join("|"),"g");let a=!0,l=0;do{const t=u.exec(e);if(null===t){const t=i?e.substring(l).trim():e.substring(l);(!o||t.length>0)&&s.push(t),a=!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)),a=!1):s.push(r)),l=u.lastIndex}}while(a);return s}(t,[e],null,0);var n}function oi(e){return new wo(e,ni.method,ni.headers,ni.withCredentials,ni.overridenMimeType,ni.overridenResponseType,ni.timeout,ni.content)}function ii(e,t){return new wo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function si(e,t){return new wo(t.url,t.method,ut(t.headers,Je(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function ui(e,t){return new wo(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function ai(e){return function(e){return mt((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,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new go(0,n.responseText):new go("arraybuffer"===u?2:"blob"===u?1:3,n.response),new yo(o,e,i,function(e){const t=Pt();return Wo(t,Uo(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=F(o);r.push(e)}}return r}((e=>{const t=it(ri(":",e));return Xe(t)?void 0:[Qe(t).toLocaleLowerCase(),Me(":",et(t)).trim()]}),ri("\r\n",n.getAllResponseHeaders()))),s)))};const r=l(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{s(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 u=e.timeout;if(null==u);else{const e=0|u;n.timeout=0|e}const a=[e.method,e.content];0===a[0].tag?n.send(D(void 0)):1===a[1].tag||3===a[1].tag||2===a[1].tag?n.send(D(a[1].fields[0])):n.send(D(void 0))}))}function li(e){return Ae(e)?void 0:e}function ci(e){let t,n=J();return t=[K(e,new j((()=>n),(e=>{n=e}))),n],t[0]?t[1]:void 0}function $i(e,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=ao,o.prototype.attributeChangedCallback=co,o.prototype.disconnectedCallback=$o,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(t||e.tagName||e.displayName||e.name,o)}(e,t,void 0,{shadow:!0})}function fi(e,t){return pt.Delay((()=>{const n=si((r=Se(be("Bearer %s"))(e),new mo(0,"Authorization",r)),t);var r;let o;const i=ai(n);return o=pt.Bind(i,(e=>pt.Return(new wt(0,e)))),pt.Bind(o,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(429===e.statusCode||e.statusCode>=500){const e=ai(n);return pt.Bind(e,(e=>pt.Return(new wt(0,e))))}return pt.Return(new wt(0,e))}}))}))}function di(e,t,n){return lt((n=>0===n.indexOf(e)?Oe(n,e,t):void 0),n)}function hi(e){return Oe(e,"’","'")}new yo(0,"","",ei(),new go(0,""));class mi{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class pi{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 ki(this)}GetHashCode(){return gi(this)}Equals(e){return yi(this,e)}}function wi(e){return null!=e.generics?e.generics:[]}function gi(e){return g([p(e.fullname),...wi(e).map(gi)])}function yi(e,t){return""===e.fullname?""===t.fullname&&v(Ri(e),Ri(t),(([e,t],[n,r])=>e===n&&yi(t,r))):e.fullname===t.fullname&&v(wi(e),wi(t),yi)}function _i(e,t,n,r){return new pi(e,t,n,void 0,r)}function vi(e,t,n,r){const o=new pi(e,t,n,void 0,void 0,(()=>{const e=n.prototype.cases();return r().map(((t,n)=>new mi(o,n,e[n],t)))}));return o}function bi(e){return new pi("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Ci(e){return new pi("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Si=new pi("System.Object"),xi=(new pi("Microsoft.FSharp.Core.Unit"),new pi("System.Char"),new pi("System.String"));function Ei(e){if(Array.isArray(e))return e[0];if(e instanceof pi){const t=Ai(e);if(null!=t)return Ei(t)+"[]";{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}return e.name}function ki(e){const t=Ai(e);return null!=t?ki(t)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>ki(e))).join(",")+"]"}function Ni(e){return null!=Ai(e)}function Ai(e){var t;return"[]"===e.fullname&&1===(null===(t=e.generics)||void 0===t?void 0:t.length)?e.generics[0]:void 0}function Mi(e){return null!=e.generics&&e.generics.length>0}function Ti(e){return null!=e.enumCases&&e.enumCases.length>0}function Ii(e){return null==e.generics?e:new pi(e.fullname,e.generics.map((()=>Si)))}function Oi(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}function Pi(e){if(Ti(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function Di(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 Fi(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ri(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Gi(e){if(Bi(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ui(e){return e instanceof pi?null!=e.cases:e instanceof B}function Li(e){return e instanceof pi?null!=e.fields:e instanceof H}function Bi(e){return e.fullname.startsWith("System.Tuple")}function Hi(e){return null==e.fields?[]:e.fields}function ji(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 pi("System.Boolean"),new pi("System.SByte"),new pi("System.Byte"),new pi("System.Int16"),new pi("System.UInt16"),new pi("System.Int32"),new pi("System.UInt32"),new pi("System.Single"),new pi("System.Double"),new pi("System.Decimal");class zi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Male","Female","Intersex","Transgender","PreferNotToAnswer","Other","NotSet"]}}class qi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Spouse","Parent","Child","Sibling","Partner","Sister","Husband","Father","Mother","Daughter","Defacto","Fiance","Boyfriend","Brother","Wife","Son","Engaged","Friend","Girlfriend","Other"]}}class Wi extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["NSW","QLD","WA","SA","NT","VIC","TAS","ACT"]}}class Vi extends H{constructor(e,t,n){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n}}function Zi(){return _i("Dto.Primitives.Name",[],Vi,(()=>[["FirstName",xi],["MiddleName",bi(xi)],["LastName",xi]]))}class Yi extends H{constructor(e,t,n,r,o,i){super(),this.AddressLine1=e,this.AddressLine2=t,this.City=n,this.State=r,this.Postcode=o,this.CountryCode=i}}function Ji(){return _i("Dto.Primitives.Address",[],Yi,(()=>[["AddressLine1",xi],["AddressLine2",bi(xi)],["City",xi],["State",xi],["Postcode",xi],["CountryCode",xi]]))}class Xi extends H{constructor(e,t,n,r,o){super(),this.FullName=e,this.Relationship=t,this.MobilePhone=n,this.Email=r,this.Address=o}}function Ki(){return _i("Dto.Primitives.EmergencyContactDto",[],Xi,(()=>[["FullName",xi],["Relationship",xi],["MobilePhone",xi],["Email",bi(xi)],["Address",bi(Ji())]]))}new class extends H{constructor(e){super(),this.Unused=e}}(void 0);const Qi=function(){const e=[..."#C$&$&$$$$$$%-%&%=$$$$$$=$$$$D$$'$$$$$$$$$$$$%$$%$$$$&$:$*;$+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$&%$$$%$&%'$%$&&%$%$$$$$%$$%$$%$&$$$%%$$&'$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$%$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$*%$%%$$'$$$$$$$$h$>5'/1(*$$$4“$$$$$$$$%$&$$'%$$&$$$%$4$,F$%&&$$$$$$$$$$$$$$$$$$$$$$$($$$$$%%VS$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$(%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%$$$$$$$$$$$$%$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$I%$)L$$%%$$P$$$%$%$$+>''%.)&%$%%.$$$%C$-8-'%$†$$*$$)%%$'%-&%$1$$$$A>%|.$1-D,%$&$%$%9'$,$&$(%2$<&%$$.X8$5.2$C$Y$$$$&+'$%$*-%%-$$2$%$+%%%9$*$$&'%$$&'%%%%$$+$'%$&%%-%%)$$$$$%%$$)'%%9$*$%$%$%%$$&%'%%&&$*'$$*-%&$$-%$$,$&$9$*$%$(%$$&($%$$%$%$2%%%-$$*$)$$%$+%%%9$*$%$(%$$$$$'%%%%$*%$'%$&%%-$$)-$$$)&&$'&%$$$%&%&&&/'%$%&&$&$%$)$1-&)$$($&$+$&$:$3&$&'$&$'*%$&(%%%-*$*$$$%$+$&$:$-$(%$$$$($$%$%%*%*$$%%%-$%0%%,$&$L%$&'$&$&$$$'&$*&%%-,$)$$%$5&;$,$$%*&$'&&$$$+)-%%$/S$%*'$)$+$-%H%$$$($;$$$-$%,$%($$$)%-%'C$&2$$&%)--$$$$$$$$$$%+$G'1$($%(.$G$+$)$%('%HN%'$)$%%%$-))%%'&$&%*&'0$%%)$$$-&$%I$$($%N$$&Ŭ$'%*$$$'%L$'%D$'%*$$$'%2$\\$'%f%&,7&3-)y%)%$ʏ$$4$=$$&n&&+*0$'&.5&%,5%/0$&$%/W%$*+$%.&$&$$$%-)-))$'&$$-)F$X*(%E$$(i-B$&'%&'%$)&'$&%-A%(.O'=)-$&E:%%$%%X$$$*$$$$%+)-%$-)-)*$)%1$%b'$R$$($$($%*'-*-,,&%$A$'%%$&%-O$$%&$$&%+'G++%%&(-&&-A)%,*N%&++&$0$*'$)$%$%$(Ob0$EH]$($$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+)%)%++++)%)%+$$$$$$$$++1%++++++($%'$$$&&$%'$&'%%'$&+(&%&$%'$%$.()%$$$%$$$+$$($,$$'%&$$$.$$$-$($-$$%)&$$$-&$$$0&C30'$&/2%$'$%$&%&$$$%$()$$$$$$'$$'$'$%%%($'$$%$$3F$$'$%'((%'$%$%$*$B%%$$$Bį+$$$$7%*$$t$A<K)h<.8_q9Ú$,$Y+’$ě$$$$$$$$$$$$$$AO($$B$$$$$$$$$$3ģ¦$$$$$$$$$$$$$$$$$$$$$$b$$$$C$$ĥS8%)J%C$ŒR$R$$$&%$$$$$$'$$%$)%&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%)$$$$&$$('$%I$$($%[*$$1$:,*$*$*$*$*$*$*$*$C%$$$$&$$$$$,$%$$$$%$$$$$$$$$$($-%'$$$0%$P=$|/ù=/'$&$$$$$$$$$$$$$$%$$$$$$$$$$%$,'%$(%&$$$%$y%%%%$$}$&$(N$$%'-CG/3B$-A+$2C-J2ţ᧣c删&8$Қ&Z,K)%į$&3-%7$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$&$-$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$%%i-%)+:,%$$$$$$$$$$$$$&$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+$$$$%$$$$$$$$$$%$$$$$$$$&$$$$$$$$$$$$$$$$$$$$($($$$$$$$$$$$%$$'$$$M$$$%$*$&$'$:%%$'$&)%$$)W'+%U3%+%-)5)&$$%$-?+%:.%.$@&&$R$%'%%&0$$-'%($$,-($L)%%%%,&$+$$%-%'3$)&$$$$U$$&%%(%$$$;%$%.$%%%$%$$-)%)%),*$*$N$',$%'sF%$%$%$$$%-)⯇/:'T'ࠣᤣƑ%I*/(($$-$0$($$$%$%$34Ǝ$$3c%YK/$$%3*$$$)3$%%$$$$$$$$$$$$$$$$%$$'&&$'$$$$$$$&$$&$$$%'($ª%$$&$&$$$$$$%-%&%=$$$$$$=$$$$$$$$$%-$P%B&)%)%)%&&%$$$%$$'%-&%%/$=$6$%$2%1Ež(&'P&,X'4%&$0&$RP$¥@&T2$>'C',7$+$(I((A$$G'+$(MKKq%-)G'G'K+W.$³Ś,9-+»)%$$O$%&$%:$$+:%*B+,S6$%((9)&$=($c['%%3%Q$&$%(''$&$@%&'$,*,*@%$@&C+$?%'(*,Y&*9%+6(+5*'/*slZV0V*)G'+-ʼnB$M$%$%%q@-$+9.'(y8*7:,$$$X2*'7-2&$P&'%%%$'.$%<*-)&G($+$-'$%$+F$%$,%$S&,%'''$$$-$$$&$7.5$<&&%$$%)$d*$$$'$2$-$)R$&+(-)%%$+%%%9$*$%$($%$%$'%%%&%$)$((%%*&(®X&+%&$$'(-%$$$&AS&)$$'%$%%$$+-ÉR&'%'%$%:'%ES&+%$$%&$.-)06N$$$%)$$$*-Y>%&%'$('-%&$ãO&,$%$‡CC-,/+%$%+$%$;)$%%%$$$$$$$&,-i+%J&'%%'$$$$$>$-K)$$'+$+$)%&Q0$%&$(@\\Ī,$H$*$)$$$(--6&%A%9$$*$%$%l*$%$I)&$$%$*$$+-))$%$C($%$%$$$$*-ř6%%%Ú$28+'40$ν‰’$(.ç૟ђ$,࿪ɪ⇜ɜ*B$-'%ƒA%($-S*(''$$--$*$8(6˓CC:'ˆn'$$Z*'0c%$$$.%1᠛+ӹM,⌚łT&4'+ƯधŽ(0&,*-%$%$'፿ę-J%_%&&)++%*A'^:e&$½7/z,<ª===*$5==$$%%$%%%'$+'$$$*$.==%$'%+$*$=%$'$($$&*$============?%<$<$)<$<$)<$<$)<$<$)<$<$)$$%UȣZ'U+$1$%(2($2ճ*$4%*$%$(øP&**%-'$$ƓO'-($ԣè%,*LEE*$'-'%̴^$&$'oP$2å'$>$%$$%$$-$'$$$$)$'$$$$$$&$%$$%$$$$$$$$$$%$$%'$*$'$'$$$-$4(&$($4W%ıO'‡/2%2$2$H-0Ä[@0O',*%1)½Ğ(˻+0&0&—/|*/7/'[+-)K+A%%qœ$u$ª/1%(&&(*,<**,&0*L¶$ZH-Щ꜁Eၘ.ā%ᚥ1ᵔూɁ؅፮򮳙$Aƒ£ē︳𐀡%𐀡"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),t=[..."1.;=;78;<;6;+;<;#7;8>5>$7<8<1.;=?;>?'9<2?>?<->$;>-':-;#<#$<$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'#$'#%$#%$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#%$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'$&>&>&>&>&>(#$#$&>#$@&$;#@>#;#@#@#$#@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$<#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?(*#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@&;$;6@?=@(6(;(;(;(@'@';@2<;=;?(;2@;'&'(+;'(';'(2?(&(?('+'?';@2'('(@'('@+'(&?;&@(='(&(&(&(@;@'(@;@'@'@'@(2()'()(')()()'('(;+;&'()@'@'@'@'@'@'@(')(@)@)('@)@'@'(@+'=-?=';(@()@'@'@'@'@'@'@'@(@)(@(@(@(@'@'@+('(;@()@'@'@'@'@'@'@(')(@()@)(@'@'(@+;=@'(@()@'@'@'@'@'@'@(')()(@)@)(@()@'@'(@+?'-@('@'@'@'@'@'@'@'@'@'@)()@)@)(@'@)@+-?=?@()('@'@'@'@'()@(@(@(@'@'(@+@;-?'();'@'@'@'@'@(')()@()@)(@)@'@'(@+@'@()'@'@'(')(@)@)('?@')-'(@+-?'@()@'@'@'@'@'@(@)(@(@)@+@);@'('(@='&(;+;@'@'@'@'@'@'('('@'@&@(@+@'@'?;?;?(?+-?(?(?(7878)'@'@()(;('(@(@?(?@?;?;@')()()()('+;')('(')')'('()()(')+)(?#@#@#@$;&$'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@(;-@'?@#@$@6'?;'.'78@';,'@'@'(@'(;@'(@'@'@(@'()()()(;&;='(@+@-@;6;(2@+@'&'@'('('@'@'@()()@)()(@?@;+'@'@'@'@+-@?'()(@;')()(@()()()(@(+@+@;&;@(*(@()'()()()()'@+;?(?@()')()()('+'()()()()@;')()(@;+@'+'&;$@#@#;@(;()('('(')('@$&$&$&(@(#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#@$#$#$@#@$@#@#@#@#$#$@$%$%$%$@$#%>$>$@$#%>$@$#@>$#>@$@$#%>@.26;9:79:79;/02.;9:;5;<78;<;5;.2@2-&@-<78&-<78@&@=@(*(*(@?#?#?$#$#$?#?<#?#?#?#?#?$#$'$?$#<#$?<?$?-,#$,-?@<?<?<?<?<?<?<?<?<?<?7878?<?78?<?<?<?@?@-?-?<?<?<?<?78787878787878-?<78<7878787878<?<7878787878787878787878<7878<78<?<?<?@?@?#@$@#$#$#$#$#$#$#$#$&#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$?#$#$(#$@;-;$@$@$@'@&;@('@'@'@'@'@'@'@'@'@(;9:9:;9:;9:;6;6;9:;9:78787878;&;6;6;7;?;@?@?@?@?@.;?&',7878787878?78787878678?,()6&?,&';?@'@(>&'6';&'@'@'@?-?'?@'?@-?-?-?-?-?'?'@'&'@?@'&;'&;'+'@#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$'(*;(;&#$#$#$#$#$#$#$#$#$#$#$#$#$#$&(',(;@>&>#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$&$#$#$#$#$#$#$#$&>#$#$'#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$#$@#$#$#$@#$'&$'('('(')()?(@-?=?@';@)')(@;+@(';';'(+'(;'()@;'@()'()()();@&+@;'(&'+'@'()()(@'('()@+@;'&'?')()'('('('('('@'&;')();'&)(@'@'@'@'@'@$>&$&>@$')()();)(@+@'@'@'@34'@'@$@$@'('<'@'@'@'@'@'>@'87@'@'@'=?@(;78;@(;657878787878787878;78;5;@;6787878;<6<@;=;@'@'@2@;=;78;<;6;+;<;#7;8>5>$7<8<78;78;'&'&'@'@'@'@'@=<>?=@?<?@2?@'@'@'@'@'@'@'@;@-@?,-?-?@?@?@?(@'@'@(-@'-@',',@'(@'@;'@';,@#$'@+@#@$@'@'@;@'@'@'@'@'@'@'@'@'@;-'?-'@-@'@'@-'-@;'@;@'@-'-@-'(@(@('@'@'@(@(-@;@'-;'-@'?'(@-;@'@;'@-'@-'@;@-@'@#@$@-'(@+@-@'@(6@'@'-'@'(-;@'-@'@)()'(;@-+@()')()(;2;@2@'@+@('()(@+;')'@'(;'@()')()';(;)(+';';@-@'@')()()(;(@'@'@'@'@';@'()(@+@()@'@'@'@'@'@'@(')()@)@)@'@)@')@(@(@')()()(';+;@;('@')()()()(';'@+@')(@)()(;'(@')()()(;'@+@;@'()()()('@+@'@()()(@+-;?@')()(;@#$+-@'@'@'@'@')@)@()(')')(;@+@'@')(@()(';')@'('()'(;(@'()('()(;';@'@'@')(@()(';@+-@;'@(@)()()(@'@'@'(@(@(@('(@+@'@'@')@(@)()('@+@'();@'@-?=?@;'@,@;@'@'@2@'@'@'@+@;@'@(;@'(;?&;?@+@-@'@'@#$-;@'@(')@(&@&;&(@)@'@'@'@'@'@'@'@'@'@'@'@?(;2@?@?@?)(?)2(?(?(?@?(?@-@?@-@#$#$@$#$#@#@#@#@#@#$@$@$@$#$#@#@#@#@$#@#@#@#@#@$#$#$#$#$#$#$@#<$<$#<$<$#<$<$#<$<$#<$<$#$@+?(?(?(?(?;@(@(@(@(@(@(@(@'@(&@+@'?@'(+@=@'@-(@#$(&@+@;@-?-=-@-?-@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@<@?@?@?@?@?@?@-?@?@?@?@?@?@?>?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@?@+@'@'@'@'@'@'@'@2@2@(@4@4@"].map((e=>{var t;return(null!==(t=e.codePointAt(0))&&void 0!==t?t:0)-35})),n=new Uint32Array(e),r=new Uint8Array(t);for(let e=1;e<n.length;++e)n[e]+=n[e-1];return e=>{let t=n.length,o=0;for(;t-o>1;){const r=Math.floor((t+o)/2),i=n[r];if(e<i)t=r;else{if(e===i){t=o=r;break}i<e&&(o=r)}}return r[o]}}();const es=e=>function(e,t){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 Qi(n)}(e,0)&256)}(e);class ts extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Saving","Loading"]}}function ns(e){return 1===e.tag?"We ran an into an issue loading your details. Please try refreshing the page.":"We ran an into an issue saving your details. Please try saving again by clicking on the Submit button."}function rs(e){return L(e)}function os(){return at((e=>[e,rs(e)]),st(tn((e=>ji(e,[])),Fi(vi("DomainPrimitives.AuState",[],Wi,(()=>[[],[],[],[],[],[],[],[]]))))))}function is(e){return lt((t=>t[1]===e?t[0]:void 0),os())}function ss(e){return 0===e.indexOf("04")?`+61${De(e,1)}`:function(e){return 0===e.indexOf("+")?e:`+${e}`}(e)}const us=ss;function as(e){return ss(Pe(es,e))}var ls;function cs(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 $s(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&ls.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]=cs(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=cs(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}function fs(e,t,n,r,o){try{return o.contents=$s(e,t,n,r),!0}catch(e){return!1}}function ds(e){let t,n=0;return t=[fs(e,511,!1,32,new j((()=>n),(e=>{n=0|e}))),n],t[0]?t[1]:void 0}function hs(e,t,n){return n>=e&&n<=t?D(void 0):void 0}function ms(e){return te(e)}function ps(e,t,n){const r=function(e,t){const n=function(e,t){const n=pe(he(e),t);return null!=n?et(Zt(zt((()=>tn((e=>e||""),n))))):void 0}("^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$",t);if(null==n)return new wt(1,e);{const t=n;let r,o,i,s;switch(Xe(t)||Xe(et(t))||Xe(et(et(t)))?r=1:Xe(et(et(et(t))))?(r=0,o=Qe(et(et(t))),i=Qe(et(t)),s=Qe(t)):r=1,r){case 0:{const t=[s,i,o],n=[t[0],t[1],t[2]];let r,u,a,l;const c=ds(n[0]);if(null!=c){const e=ds(n[1]);if(null!=e){const t=ds(n[2]);null!=t?(r=0,u=t,a=e,l=c):r=1}else r=1}else r=1;switch(r){case 0:return new wt(0,[l,a,u]);case 1:return new wt(1,e)}}case 1:return new wt(1,e)}}}(e,n);if(1===r.tag)return new wt(1,r.fields[0]);{const n=r.fields[0],o=0|n[0],i=0|n[1],s=0|n[2];if(o<=0)return new wt(1,e);{const n=[i,s];let r;switch(r=2===n[0]&&null!=hs(1,29,n[1])&&ms(o)?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=2===n[0]&&null!=hs(1,28,n[1])?ms(o)?1:0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=1===n[0]||3===n[0]||5===n[0]||7===n[0]||8===n[0]||10===n[0]?null!=hs(1,31,n[1])?0:1:12===n[0]&&null!=hs(1,31,n[1])?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:{let r;switch(r=4===n[0]||6===n[0]||9===n[0]?null!=hs(1,30,n[1])?0:1:11===n[0]&&null!=hs(1,30,n[1])?0:1,r){case 0:return new wt(0,t(o,i,s));case 1:return new wt(1,e)}}}}}}}}}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ls||(ls={}));class ws extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","NumbersOnly","DuSelection","Email","Date","DateOfBirth","PhoneNumber","NotStartWith"]}}class gs extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Over100","Under13"]}}function ys(e){return Ae(e)?new wt(1,new ws(0)):new wt(0,void 0)}function _s(e){return Pe(es,e)===e?new wt(0,void 0):new wt(1,new ws(4))}function vs(e,t){return t.length>e?new wt(1,new ws(1,e)):new wt(0,void 0)}function bs(e,t){const n=function(e,t){return function(e,t){const n=Y(e.getTime()+t,e.kind);if(2===e.kind){const t=e.getTimezoneOffset(),r=n.getTimezoneOffset();return t!==r?Y(n.getTime()+6e4*(r-t),e.kind):n}return n}(e,864e5)}(e);let r;const o=ie(n)-ie(t)|0;r=se(ne(t),function(e,t){const n=oe(e),r=ie(e)+t,o=function(e,t){return 2===t?te(e)?29:28:t>=8?t%2==0?31:30:t%2==0?30:31}(r,n);return Q(r,n,Math.min(o,re(e)),function(e){return 1===e.kind?e.getUTCHours():e.getHours()}(e),function(e){return 1===e.kind?e.getUTCMinutes():e.getMinutes()}(e),function(e){return 1===e.kind?e.getUTCSeconds():e.getSeconds()}(e),function(e){return 1===e.kind?e.getUTCMilliseconds():e.getMilliseconds()}(e),e.kind)}(n,function(e){return-2147483648===e?e:-e}(o)))>0?o-1:o;const i=r>=13?new wt(0,void 0):new wt(1,new ws(8,new gs(1)));if(1===i.tag)return new wt(1,i.fields[0]);{const e=r<100?new wt(0,void 0):new wt(1,new ws(8,new gs(0)));return 1===e.tag?new wt(1,e.fields[0]):new wt(0,void 0)}}function Cs(e,t){return null!=pe(he(e),t)?new wt(0,void 0):new wt(1,new ws(3))}function Ss(e){return!(e.length<=320)||e.indexOf("..")>=0||e.indexOf(".@")>=0||null==pe(/^[A-Z0-9][A-Z0-9._%+'-]{0,63}@(?:[A-Z0-9-]{1,63}\.){1,125}[A-Z]{2,63}$/giu,e)?new wt(1,new ws(6)):new wt(0,void 0)}function xs(e,t){return 0===t.indexOf(e)?new wt(1,new ws(10,e)):new wt(0,void 0)}function Es(e,t){const n=function(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Xe(i)){const e=r;return 1===e.tag?new wt(1,e.fields[0]):new wt(0,rt(e.fields[0]))}{let s;const u=o(Qe(i));if(1===u.tag)s=new wt(1,u.fields[0]);else{const e=r;s=1===e.tag?new wt(1,e.fields[0]):new wt(0,Ye(u.fields[0],e.fields[0]))}if(1===s.tag)return s;e=s,t=o,n=et(i);continue e}}}(new wt(0,Ze()),e,t)}((e=>e(t)),e);return 1===n.tag?new wt(1,n.fields[0]):new wt(0,void 0)}const ks=e=>Es(it([ys,e=>vs(60,e),e=>xs("-",e),e=>xs("'",e),e=>Cs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e),Ns=e=>Es(it([ys,e=>vs(60,e),e=>Cs("(^[0-9A-Za-z])[0-9A-Za-z\\- '\\/,\\.]{0,59}$",e)]),e),As=e=>Es(it([ys,Ss]),e);const Ms=e=>Es(it([ys,e=>vs(60,e),e=>Cs("(^[A-Za-z])[A-Za-z\\- ]{0,59}$",e)]),e),Ts=e=>Es(it([ys,e=>vs(4,e),_s]),e);new class{constructor(){}};var Is=null;try{Is=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(yn){}function Os(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ps(e){return!0===(e&&e.__isLong__)}Os.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Os.prototype.Equals=function(e){return uu(this,e)},Os.prototype.CompareTo=function(e){return $u(this,e)},Os.prototype.toString=function(e){return ru(this,e)},Os.prototype.toJSON=function(){return ru(this)},Os.prototype[ue]=function(){const e=this;return{multiply:t=>mu(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 ru(e.unsigned?e:function(e,t,n){return n?function(e,t){return new Os(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 Os(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}}},Os.prototype.__isLong__,Object.defineProperty(Os.prototype,"__isLong__",{value:!0});var Ds={},Fs={};function Rs(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Fs[e])?r:(n=Us(e,(0|e)<0?-1:0,!0),o&&(Fs[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ds[e])?r:(n=Us(e,e<0?-1:0,!1),o&&(Ds[e]=n),n)}function Gs(e,t){if(isNaN(e))return t?Zs:Vs;if(t){if(e<0)return Zs;if(e>=zs)return Qs}else{if(e<=-qs)return eu;if(e+1>=qs)return Ks}return e<0?fu(Gs(-e,t)):Us(e%js|0,e/js|0,t)}function Us(e,t,n){return new Os(e,t,n)}var Ls=Math.pow;function Bs(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Vs;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 fu(Bs(e.substring(1),t,n));for(var o=Gs(Ls(n,8)),i=Vs,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),a=parseInt(e.substring(s,s+u),n);i=du(u<8?mu(i,Gs(Ls(n,u))):i=mu(i,o),Gs(a))}return i.unsigned=t,i}function Hs(e,t){return"number"==typeof e?Gs(e,t):"string"==typeof e?Bs(e,t):Us(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var js=4294967296,zs=js*js,qs=zs/2,Ws=Rs(1<<24),Vs=Rs(0),Zs=Rs(0,!0),Ys=Rs(1),Js=Rs(1,!0),Xs=Rs(-1),Ks=Us(-1,2147483647,!1),Qs=Us(-1,-1,!0),eu=Us(0,-2147483648,!1);function tu(e){return e.unsigned?e.low>>>0:e.low}function nu(e){return e.unsigned?(e.high>>>0)*js+(e.low>>>0):e.high*js+(e.low>>>0)}function ru(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(ou(e))return"0";if(iu(e)){if(uu(e,eu)){var n=Gs(t),r=pu(e,n),o=hu(mu(r,n),e);return ru(r,t)+tu(o).toString(t)}return"-"+ru(fu(e),t)}for(var i=Gs(Ls(t,6),e.unsigned),s=e,u="";;){var a=pu(s,i),l=(tu(hu(s,mu(a,i)))>>>0).toString(t);if(ou(s=a))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function ou(e){return 0===e.high&&0===e.low}function iu(e){return!e.unsigned&&e.high<0}function su(e){return 1==(1&e.low)}function uu(e,t){return Ps(t)||(t=Hs(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&e.high===t.high&&e.low===t.low}function au(e,t){return $u(e,t)<0}function lu(e,t){return $u(e,t)>0}function cu(e,t){return $u(e,t)>=0}function $u(e,t){if(Ps(t)||(t=Hs(t)),uu(e,t))return 0;var n=iu(e),r=iu(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:iu(hu(e,t))?-1:1}function fu(e){return!e.unsigned&&uu(e,eu)?eu:du(function(e){return Us(~e.low,~e.high,e.unsigned)}(e),Ys)}function du(e,t){Ps(t)||(t=Hs(t));var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=t.low>>>16,l=0,c=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,c+=($+=o+a)>>>16,l+=(c+=r+u)>>>16,l+=n+s,Us(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(c&=65535),e.unsigned)}function hu(e,t){return Ps(t)||(t=Hs(t)),du(e,fu(t))}function mu(e,t){if(ou(e))return e.unsigned?Zs:Vs;if(Ps(t)||(t=Hs(t)),Is)return Us(Is.mul(e.low,e.high,t.low,t.high),Is.get_high(),e.unsigned);if(ou(t))return e.unsigned?Zs:Vs;if(uu(e,eu))return su(t)?eu:Vs;if(uu(t,eu))return su(e)?eu:Vs;if(iu(e))return iu(t)?mu(fu(e),fu(t)):fu(mu(fu(e),t));if(iu(t))return fu(mu(e,fu(t)));if(au(e,Ws)&&au(t,Ws))return Gs(nu(e)*nu(t),e.unsigned);var n=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,s=t.high>>>16,u=65535&t.high,a=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*a)>>>16,c+=($+=r*l)>>>16,$&=65535,c+=($+=o*a)>>>16,$&=65535,c+=($+=i*u)>>>16,c+=n*l+r*a+o*u+i*s,Us((f&=65535)<<16|(d&=65535),(c&=65535)<<16|($&=65535),e.unsigned)}function pu(e,t){if(Ps(t)||(t=Hs(t)),ou(t))throw Error("division by zero");var n,r,o;if(Is)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Us((e.unsigned?Is.div_u:Is.div_s)(e.low,e.high,t.low,t.high),Is.get_high(),e.unsigned):e;if(ou(e))return e.unsigned?Zs:Vs;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Us(e.low,e.high,!0)}(t)),lu(t,e))return Zs;if(lu(t,function(e,t){if(Ps(t)&&(t=tu(t)),0==(t&=63))return e;var n=e.high;return t<32?Us(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Us(32===t?n:n>>>t-32,0,e.unsigned)}(e,1)))return Js;o=Zs}else{if(uu(e,eu))return uu(t,Ys)||uu(t,Xs)?eu:uu(t,eu)?Ys:uu(n=function(e,t){return Ps(t)&&(t=tu(t)),0==(t&=63)?e:t<32?Us(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Us(0,e.low<<t-32,e.unsigned)}(pu(function(e,t){return Ps(t)&&(t=tu(t)),0==(t&=63)?e:t<32?Us(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Us(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}(e,1),t),1),Vs)?iu(t)?Ys:Xs:o=du(n,pu(r=hu(e,mu(t,n)),t));if(uu(t,eu))return e.unsigned?Zs:Vs;if(iu(e))return iu(t)?pu(fu(e),fu(t)):fu(pu(fu(e),t));if(iu(t))return fu(pu(e,fu(t)));o=Vs}for(r=e;cu(r,t);){n=Math.max(1,Math.floor(nu(r)/nu(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ls(2,i-48),u=Gs(n),a=mu(u,t);iu(a)||lu(a,r);)a=mu(u=Gs(n-=s,e.unsigned),t);ou(u)&&(u=Ys),o=du(o,u),r=hu(r,a)}return o}const wu=pu,gu=nu;function yu(e){return e<0?Math.ceil(e):Math.floor(e)}function _u(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return vu(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 vu(e){return gu(wu(e,1e4))}function bu(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 _u(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],u=+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*_u(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class Cu extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Su extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class xu{constructor(){this.cache=new Map([])}}function Eu(){return new xu}function ku(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Nu(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=he(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),u=we(e,s),a=we.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}return t.replace(e,n)}(ku(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ku(t)}}function Au(e){return e}function Mu(e){return Array.from(e)}function Tu(e){return Z(e,"O")}function Iu(e){return function(e,t="c",n){if(-1===["c","g","G"].indexOf(t))throw new Error("Custom formats are not supported");const r=Math.abs(function(e){return yu(e/864e5)}(e)),o=Math.abs(function(e){return yu(e%864e5/36e5)}(e)),i=Math.abs(function(e){return yu(e%36e5/6e4)}(e)),s=Math.abs(function(e){return yu(e%6e4/1e3)}(e)),u=Math.abs(function(e){return yu(e%1e3)}(e));return`${e<0?"-":""}${0!==r||"c"!==t&&"g"!==t?"c"===t?r+".":r+":":""}${"g"===t?o:f(o,2)}:${f(i,2)}:${f(s,2)}${0!==u||"c"!==t&&"g"!==t?"g"===t?"."+f(u,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}(u):""}`}(e)}function Ou(){return null}function Pu(e){return Z(e,"O")}function Du(e,t){return JSON.stringify(t,T(2,void 0),D(e))}function Fu(e,t,n,r){const o=new j(null);let i;const s=ki(r);let u;if(i=""===s?e:Xo(s,o,e),Li(r)){const e=Ge((e=>{const r=Nu(t,Ei(e)),o=Ru(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}}),Ri(r));u=t=>Qt(((e,n)=>n(t)(e)),{},e)}else{if(!Ui(r)){let e;const t=ki(r);throw e=Se(be("Cannot generate auto encoder for %s. Please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}u=e=>{const o=function(e,t){const n=Fi(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],u=o[1],a=0|u.length;if(0===a)return Ei(s);{const e=0|a,r=Hi(s),o=Re(new Array(e+1),0,e+1,null);o[0]=Ei(s);for(let s=1;s<=e;s++){const e=Ru(i,t,n,r[s-1][1]);o[s]=e(u[s-1])}return o}}}return o.contents=u,u}function Ru(e,t,n,r){const o=ki(r),i=Ko(o,e);if(null==i){if(Ni(r)){const o=Ru(e,t,n,Ai(r));return e=>Mu(tn(o,e))}if(Ti(r)){const e=ki(Oi(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=ki(r);return xe(be("Cannot generate auto encoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\n\nIf you can't use one of these types, please pass an extra encoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders\n "))(e)}}if(Mi(r)){if(Bi(r)){const o=Ge((r=>Ru(e,t,n,r)),Gi(r));return e=>{return Mu((t=(e,t)=>o[e](t),n=e,Jt((()=>jt(n)),((e,n)=>n["System.Collections.IEnumerator.MoveNext"]()?D(t(e,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0),(e=>{s(e)}))));var t,n}}{const o=ki(Ii(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===o){const o=new $((()=>{return o=Ru(e,t,n,wi(r)[0]),e=>{return function(e,t){return null!=e?F(e):null}(null!=(t=e)?D(o(F(t))):void 0);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||"System.Collections.Generic.IEnumerable`1[System.Object]"===o){const o=Ru(e,t,n,wi(r)[0]);return e=>Mu(tn(o,e))}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===o){const o=wi(r)[0],i=Ru(e,t,n,wi(r)[1]);if("System.String"===ki(o)||"System.Guid"===ki(o))return e=>Qt(((e,t)=>{const n=t;return e[n[0]]=i(n[1]),e}),{},e);{let r;const s=Ru(e,t,n,o);return r=s,e=>Mu(tn((e=>{const t=e;return[r(t[0]),i(t[1])]}),e))}}return Fu(e,t,n,r)}}return"System.Boolean"===o?e=>e:"Microsoft.FSharp.Core.Unit"===o?Ou:"System.String"===o?e=>e:"System.Char"===o?e=>e:"System.SByte"===o?e=>e:"System.Byte"===o?e=>e:"System.Int16"===o?e=>e:"System.UInt16"===o?e=>e:"System.Int32"===o?e=>e:"System.UInt32"===o?e=>e:"System.Double"===o?e=>e:"System.Single"===o?e=>e:"System.DateTime"===o?Pu:"System.DateTimeOffset"===o?Tu:"System.TimeSpan"===o?Iu:"System.Guid"===o?Au:"System.Object"===o?e=>e:Fu(e,t,n,r)}{const e=i;return t=>e.contents(t)}}function Gu(e,t,n,r){const o=U(t,new Su(0)),i=U(r,!0);return Ru(function(e){return null!=e?Qo(((e,t)=>new j(t[0])),e.Coders):ei()}(n),o,i,e)}Eu(),Eu();const Uu=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Lu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Bu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Hu(e,t){try{return t.contents=function(e){function t(e){return e.replace(Lu,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Uu.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+me(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Lu.test(n))return t(n);if(Bu.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}}function ju(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 zu(e,t){try{return t.contents=function(e){const[t,n]=X(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n?0:6e4*n;return ju(t.getTime(),r)}(e),!0}catch(e){return!1}}class qu{constructor(e){this.k=e}}function Wu(e){return new qu(e)}function Vu(e){return e.k}class Zu extends qu{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Yu(e,t,n,r){return new Zu(e,t,n,r)}function Ju(e){return e.left}function Xu(e){return e.right}function Ku(e){return e.h}function Qu(e,t){e:for(;;){const n=e,r=t;if(null!=n){const o=n;if(o instanceof Zu){e=Ju(o),t=Qu(Xu(o),r+1);continue e}return r+1|0}return 0|r}}function ea(e){return Qu(e,0)}function ta(e,t,n){let r,o;if(null!=e){const t=e;r=t instanceof Zu?Ku(t):1}else r=0;if(null!=n){const e=n;o=e instanceof Zu?Ku(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Wu(t):Yu(t,e,n,i+1)}function na(e,t,n){let r,o,i,s,u,a;if(null!=e){const t=e;u=t instanceof Zu?Ku(t):1}else u=0;if(null!=n){const e=n;a=e instanceof Zu?Ku(e):1}else a=0;if(a>u+2){const i=F(n);if(i instanceof Zu){if(r=Ju(i),(null!=r?(o=r,o instanceof Zu?Ku(o):1):0)>u+1){const n=F(Ju(i));if(n instanceof Zu)return ta(ta(e,t,Ju(n)),Vu(n),ta(Xu(n),Vu(i),Xu(i)));throw new Error("internal error: Set.rebalance")}return ta(ta(e,t,Ju(i)),Vu(i),Xu(i))}throw new Error("internal error: Set.rebalance")}if(u>a+2){const r=F(e);if(r instanceof Zu){if(i=Xu(r),(null!=i?(s=i,s instanceof Zu?Ku(s):1):0)>a+1){const e=F(Xu(r));if(e instanceof Zu)return ta(ta(Ju(r),Vu(r),Ju(e)),Vu(e),ta(Xu(e),t,n));throw new Error("internal error: Set.rebalance")}return ta(Ju(r),Vu(r),ta(Xu(r),t,n))}throw new Error("internal error: Set.rebalance")}return ta(e,t,n)}function ra(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Vu(r));if(r instanceof Zu)return o<0?na(ra(e,t,Ju(r)),Vu(r),Xu(r)):0===o?n:na(Ju(r),Vu(r),ra(e,t,Xu(r)));{const o=0|e.Compare(t,Vu(r));return o<0?Yu(t,void 0,n,2):0===o?n:Yu(t,n,void 0,2)}}return Wu(t)}function oa(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Vu(s));if(s instanceof Zu){if(u<0){e=r,t=o,n=Ju(s);continue e}if(0===u)return!0;e=r,t=o,n=Xu(s);continue e}return 0===u}return!1}}function ia(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Zu){ia(n,Ju(o)),n(Vu(o)),e=n,t=Xu(o);continue e}n(Vu(o))}break}}class sa extends H{constructor(e,t){super(),this.stack=e,this.started=t}}function ua(e){e:for(;;){const t=e;if(Xe(t))return Ze();{const n=Qe(t),r=et(t);if(null!=n){const o=n;if(o instanceof Zu){e=ot([Ju(o),Wu(Vu(o)),Xu(o)],r);continue e}return t}e=r;continue e}}}function aa(e){return new sa(ua(Je(e)),!1)}function la(e){if(e.started){const t=e.stack;if(Xe(t))return function(){throw new Error("Enumeration already started")}();if(null!=Qe(t))return Vu(Qe(t));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function ca(e){let t=aa(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>la(t),"System.Collections.IEnumerator.get_Current":()=>la(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Xe(t))return!1;if(null!=Qe(t)){if(Qe(t)instanceof Zu)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ua(et(t)),!Xe(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Xe(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=aa(e)},Dispose(){}}}function $a(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(Xe(s[0]))return Xe(s[1])?0:-1;if(Xe(s[1]))return 1;if(null!=Qe(s[1]))if(null!=Qe(s[0])){const u=Qe(s[0]),a=Qe(s[1]);if(u instanceof Zu)if(null==Ju(u)){if(!(a instanceof Zu)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(Xu(u),et(s[0])),n=Ye(void 0,et(s[1]));continue e}if(null==Ju(a)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(Xu(u),et(s[0])),n=Ye(Xu(a),et(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(a instanceof Zu)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=et(s[0]),n=et(s[1]);continue e}if(null==Ju(a)){const o=0|r.Compare(Vu(u),Vu(a));if(0!==o)return 0|o;e=r,t=Ye(void 0,et(s[0])),n=Ye(Xu(a),et(s[1]));continue e}{const s=[o,i];let u,a,l,c,$;switch(Xe(s[0])?Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2:null!=Qe(s[0])?(u=0,a=et(s[0]),l=Qe(s[0])):Xe(s[1])?u=2:null!=Qe(s[1])?(u=1,c=et(s[1]),$=Qe(s[1])):u=2,u){case 0:if(l instanceof Zu){e=r,t=ot([Ju(l),Yu(Vu(l),void 0,Xu(l),0)],a),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(l))],a),n=i;continue e;case 1:if($ instanceof Zu){e=r,t=o,n=ot([Ju($),Yu(Vu($),void 0,Xu($),0)],c);continue e}e=r,t=o,n=ot([void 0,Wu(Vu($))],c);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{Qe(s[1]);const u=[o,i];let a,l,c,$,f;switch(Xe(u[0])?Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2:null!=Qe(u[0])?(a=0,l=et(u[0]),c=Qe(u[0])):Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2,a){case 0:if(c instanceof Zu){e=r,t=ot([Ju(c),Yu(Vu(c),void 0,Xu(c),0)],l),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(c))],l),n=i;continue e;case 1:if(f instanceof Zu){e=r,t=o,n=ot([Ju(f),Yu(Vu(f),void 0,Xu(f),0)],$);continue e}e=r,t=o,n=ot([void 0,Wu(Vu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Qe(s[0])){e=r,t=et(s[0]),n=et(s[1]);continue e}{Qe(s[0]);const u=[o,i];let a,l,c,$,f;switch(Xe(u[0])?Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2:null!=Qe(u[0])?(a=0,l=et(u[0]),c=Qe(u[0])):Xe(u[1])?a=2:null!=Qe(u[1])?(a=1,$=et(u[1]),f=Qe(u[1])):a=2,a){case 0:if(c instanceof Zu){e=r,t=ot([Ju(c),Yu(Vu(c),void 0,Xu(c),0)],l),n=i;continue e}e=r,t=ot([void 0,Wu(Vu(c))],l),n=i;continue e;case 1:if(f instanceof Zu){e=r,t=o,n=ot([Ju(f),Yu(Vu(f),void 0,Xu(f),0)],$);continue e}e=r,t=o,n=ot([void 0,Wu(Vu(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Je(t),Je(n))}function fa(e,t,n){let r=n;ia((e=>{t[r]=e,r=r+1|0}),e)}function da(e,t){if(r(t))return function(e,t){return Ue(((t,n)=>ra(e,n,t)),void 0,t)}(e,t);if(t instanceof Le)return function(e,t){return nt(((t,n)=>ra(e,n,t)),void 0,t)}(e,t);{const n=l(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=ra(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{s(n)}}}class ha{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t,n=0;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)n=0|(t=0|y(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(n<<1)+t+631)}finally{s(r)}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof ha&&0===$a(ma(this),pa(this),pa(e))}toString(){return"set ["+Me("; ",tn((e=>L(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|$a(ma(this),pa(this),pa(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 oa(ma(this),e,pa(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){fa(pa(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|wa(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|wa(this)}GetEnumerator(){return ca(pa(this))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return ca(pa(this))}get size(){return 0|wa(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 oa(ma(e),t,pa(e))}(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function ma(e){return e.comparer}function pa(e){return e.tree}function wa(e){return ea(pa(e))}function ga(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 ya(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new wt(1,function(e,t){const n=2===t.tag?ga(t.fields[0],t.fields[1],!0):1===t.tag?ga(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?ga(t.fields[0],t.fields[1],!0):4===t.tag?ga(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"+Me("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:ga(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}(e[0],e[1]))}return new wt(0,r.fields[0])}function _a(e,t){try{return ya("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new wt(1,"Given an invalid JSON: "+e.message);throw e}}function va(e,t){return"string"==typeof t?new wt(0,t):new wt(1,[e,new Cu(0,"a string",t)])}const ba=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 wt(0,(e+128&255)-128):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for a sbyte")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,8,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},Ca=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 wt(0,255&e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for a byte")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,8,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(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 wt(0,(e+32768&65535)-32768):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,16,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},xa=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 wt(0,65535&e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,16,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},Ea=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 wt(0,~~e):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for an int")]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!1,32,new j((()=>t),(e=>{t=0|e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])},ka=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 wt(0,e>>>0):new wt(1,[r,new Cu(1,n,e,"Value was either too large or too small for "+n)]):new wt(1,[r,new Cu(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fs(o,511,!0,32,new j((()=>t),(e=>{t=e}))),t],e[0]?new wt(0,e[1]):new wt(1,[r,new Cu(0,n,o)])}return new wt(1,[r,new Cu(0,n,o)])};function Na(e,t,n,r){let o;const i=n+".["+h(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new wt(1,[i,new Cu(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=n.length,h(o)+"` entries"),r)])}return new wt(1,[i,new Cu(0,"an array",r)])}function Aa(e,t,n){if(Array.isArray(n)){let r=-1;return gt(rt,Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new wt(0,Ye(i.fields[0],n.fields[0])):new wt(1,i.fields[0])}return n}),new wt(0,Ze()),n))}return new wt(1,[t,new Cu(0,"a list",n)])}function Ma(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+h(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new wt(0,i)):new wt(1,s.fields[0])}return n}),new wt(0,Re(new Array(o.length),0,o.length,null)),o)}return new wt(1,[t,new Cu(0,"an array",n)])}function Ta(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new wt(1,o.fields[0])}function Ia(e,t){let n;const r=e;return n=e=>t=>Na(0,r,e,t),e=>r=>Ta(T(3,(e=>{let n;const r=t;return n=e=>t=>Na(1,r,e,t),t=>r=>Ta(((t,n,r)=>new wt(0,[e,t])),T(2,n),t,r)})),T(2,n),e,r)}function Oa(e){return Vo(e)}function Pa(e){return function(e,t){return new ha(e,t)}(t={Compare:k},da(t,e));var t}function Da(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new wt(1,[n,new Cu(6,(o=0|r.length,Se(be("Expected array of length %i but got %i"))(i)(o)))]);{let o=new wt(0,Ze());for(let i=e;i<=r.length-1;i++)if(0===o.tag){const s=o.fields[0],u=Se(be("%s[%i]"))(n)(i),a=t[i-e],l=r[i];o=gt((e=>Ye(e,s)),a(u)(l))}return gt(rt,o)}}function Fa(e,t,n,r,o,i){const s=function(e,t){return t.find((e=>Ei(e)===r))}(0,Fi(n));if(null!=s){const n=s,r=Ge((n=>Ga(e,t,!1,n[1])),Hi(n));return gt((e=>ji(n,tt(e))),0===r.length&&i.length<=1?new wt(0,Ze()):Da(1,r,o,i))}return new wt(1,[o,new Cu(6,"Cannot find case "+r+" in "+ki(n))])}function Ra(e,t,n,r){const o=new j(null);let i;const s=ki(r);let u;if(i=""===s?e:Xo(s,o,e),Li(r)){const e=Ge((e=>[Nu(t,Ei(e)),Ga(i,t,!1,e[1])]),Ri(r));u=t=>n=>gt((e=>function(e,t){const n=Ri(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,tt(e))),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new wt(1,[t,new Cu(0,"an object",n)]):function(e,t,n){return t.reduceRight(((t,n)=>e(n,t)),n)}(T(2,(e=>{const r=e[0];return o=>0===o.tag?gt((e=>Ye(e,o.fields[0])),e[1](t+"."+r)(n[r])):o})),e,new wt(0,Ze()))}(e,t,n))}else if(Ui(r))u=e=>n=>{if("string"==typeof n)return Fa(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return yt((n=>Fa(i,t,r,n,e,o)),va(e+"[0]",o[0]))}return new wt(1,[e,new Cu(0,"a string or array",n)])};else{if(!n){let e;const t=ki(r);throw e=Se(be("Cannot generate auto decoder for %s. Please pass an extra decoder.\n\nDocumentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders"))(t),new Error(e)}u=e=>t=>new wt(1,[e,new Cu(2,"an extra coder for "+ki(r),t)])}return o.contents=u,u}function Ga(e,t,n,r){let o,i,s,u;const a=ki(r),l=Ko(a,e);if(null==l){if(Ni(r)){const n=Ga(e,t,!1,Ai(r));return e=>t=>Ma(T(2,n),e,t)}if(Ti(r)){const e=ki(Oi(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=ba(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ca(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(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 wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString(u))):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}var u};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=xa(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Ea(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,h(e))):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=ka(o)(i);if(1===s.tag)return new wt(1,s.fields[0]);{const e=s.fields[0];return Kt(e,Pi(n),{Equals:(e,t)=>e===t,GetHashCode:w})?new wt(0,Di(n,e.toString())):new wt(1,[o,new Cu(1,ki(n),i,"Unkown value provided for the enum")])}};{const e=ki(r),t=xe(be("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the following enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>t(e)}}if(Mi(r)){if(Bi(r)){const n=Ge((n=>Ga(e,t,!1,n)),Gi(r));return e=>t=>Array.isArray(t)?gt((e=>tt(e)),Da(0,n,e,t)):new wt(1,[e,new Cu(0,"an array",t)])}{const a=ki(Ii(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===a)return o=Ga(e,t,!0,wi(r)[0]),e=>t=>{return n=T(2,o),r=e,null==(i=t)?new wt(0,void 0):gt(D,n(r,i));var n,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===a)return i=Ga(e,t,!1,wi(r)[0]),e=>t=>Aa(T(2,i),e,t);if("System.Collections.Generic.IEnumerable`1[System.Object]"===a)return s=Ga(e,t,!1,wi(r)[0]),e=>t=>function(e,t,n){if(Array.isArray(n)){let r=-1;return gt(nn,Ue(((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+h(r)+"]",o);return 0===i.tag?new wt(0,Xt([i.fields[0]],n.fields[0])):new wt(1,i.fields[0])}return n}),new wt(0,[]),n))}return new wt(1,[t,new Cu(0,"a seq",n)])}(T(2,s),e,t);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===a){const n=Ga(e,t,!1,wi(r)[0]),o=Ga(e,t,!1,wi(r)[1]);let i;const s=it([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new wt(1,[n,new Cu(0,"an object",r)]):Qt(((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 wt(0,Ye([s.fields[0],e.fields[0]],o.fields[0])):new wt(1,e.fields[0])}return new wt(1,s.fields[0])}return o}),new wt(0,Ze()),Object.keys(r))}(T(2,n),T(2,o),e,t),(u=Ia(T(2,n),T(2,o)),e=>t=>Aa(T(2,u),e,t))]);return i=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Xe(o))return new wt(1,[n,new Cu(7,i)]);{const s=ya(n,T(2,Qe(o)),r);if(1===s.tag){e=et(o),t=ut(i,Je(s.fields[0]));continue e}return new wt(0,s.fields[0])}}})(s,Ze());var n,r},e=>t=>function(e,t,n,r){const o=t(n,r);return 1===o.tag?new wt(1,o.fields[0]):new wt(0,e(o.fields[0]))}(Oa,T(2,i),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===a){const n=Ga(e,t,!1,wi(r)[0]);return e=>t=>{const r=Ma(T(2,n),e,t);return 0===r.tag?new wt(0,Pa(r.fields[0])):new wt(1,r.fields[0])}}return Ra(e,t,n,r)}}return"System.Boolean"===a?e=>t=>{return n=e,"boolean"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===a?e=>t=>{return n=e,null==(r=t)?new wt(0,void 0):new wt(1,[n,new Cu(0,"null",r)]);var n,r}:"System.String"===a?e=>t=>va(e,t):"System.Char"===a?e=>t=>function(e,t){if("string"==typeof t){const n=t;return 1===n.length?new wt(0,n[0]):new wt(1,[e,new Cu(0,"a single character string",t)])}return new wt(1,[e,new Cu(0,"a char",t)])}(e,t):"System.SByte"===a?ba:"System.Byte"===a?Ca:"System.Int16"===a?Sa:"System.UInt16"===a?xa:"System.Int32"===a?Ea:"System.UInt32"===a?ka:"System.Double"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a float",r)]);var n,r}:"System.Single"===a?e=>t=>{return n=e,"number"==typeof(r=t)?new wt(0,r):new wt(1,[n,new Cu(0,"a float32",r)]);var n,r}:"System.DateTime"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=J();return n=[K(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,function(e){return 1===e.kind?e:Y(e.getTime(),1)}(n[1])):new wt(1,[e,new Cu(0,"a datetime",t)])}return new wt(1,[e,new Cu(0,"a datetime",t)])}(e,t):"System.DateTimeOffset"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=ju(-621355968e5,0);return n=[zu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a datetimeoffset",t)])}return new wt(1,[e,new Cu(0,"a datetime",t)])}(e,t):"System.TimeSpan"===a?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;return n=[bu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a timespan",t)])}return new wt(1,[e,new Cu(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=[Hu(t,new j((()=>r),(e=>{r=e}))),r],n[0]?new wt(0,n[1]):new wt(1,[e,new Cu(0,"a guid",t)])}return new wt(1,[e,new Cu(0,"a guid",t)])}(e,t):"System.Object"===a?e=>e=>new wt(0,e):Ra(e,t,n,r)}{const e=l;return t=>n=>e.contents(t)(n)}}function Ua(e,t,n){const r=U(t,new Su(0));return Ga(function(e){return null!=e?Qo(((e,t)=>new j(t[1])),e.Coders):ei()}(n),r,!1,e)}class La extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Title=t,this.Gender=n,this.Email=r,this.MobilePhone=o,this.DateOfBirth=i,this.Address=s}}function Ba(){return _i("Dto.Api.Backend.Common.FullProfileDto",[],La,(()=>[["Name",Zi()],["Title",xi],["Gender",xi],["Email",xi],["MobilePhone",xi],["DateOfBirth",xi],["Address",Ji()]]))}class Ha extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","Failure","Info"]}}function ja(e){switch(e.tag){case 0:return"text-green-700";case 2:return"text-blue-700";default:return"text-red-700"}}function za(e){switch(e.tag){case 0:return"bg-green-50";case 2:return"bg-blue-50";default:return"bg-red-50"}}function qa(e){return e.tag,e.fields[0]}function Wa(e){let t,n,r,o,i;const s=e.hideAlert,u=e.alert,a=bt();Kr((()=>{!function(e,t){xt(pt.Delay((()=>pt.Bind(mt((e=>{let t;const n=setTimeout((()=>{e.cancelToken.removeListener(t),e.onSuccess(void 0)}),5e3);t=e.cancelToken.addListener((()=>{clearTimeout(n),e.onCancel(new dt)}))})),(()=>(e(),pt.Zero()))))),t)}(s,a)}));const l=Sn("svg",A(it([["className",Me(" ",["h-5","w-5"])],["fill","currentColor"],["viewBox","0 0 20 20"],["xmlns","http://www.w3.org/2000/svg"],(t=Je(Sn("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"})),["children",Vr.Children.toArray(Array.from(t))])])));return Sn("div",A(it([["className",Me(" ",["rounded-md","p-4","my-4",za(u)])],(n=[Sn("div",A(it([["className",Me(" ",["flex"])],(r=[Sn("p",{className:Me(" ",["text-sm",ja(u)]),children:qa(u)}),Sn("div",A(it([["className",Me(" ",["ml-auto"])],(o=[Sn("div",A(it([["className",Me(" ",["-mx-1.5","-my-1.5"])],(i=[Sn("button",{type:"button",className:Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("p-1.5"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>function(e){switch(e.tag){case 0:return it(["bg-green-50","text-green-500","hover:bg-green-100","focus:ring-offset-green-50","focus:ring-green-600"]);case 2:return it(["bg-blue-50","text-blue-500","hover:bg-blue-100","focus:ring-offset-blue-50","focus:ring-blue-600"]);default:return it(["bg-red-50","text-red-500","hover:bg-red-100","focus:ring-offset-red-50","focus:ring-red-600"])}}(u))))))))))))))))))))))),children:Vr.Children.toArray([l]),onClick:e=>{Ct(a),s()}})],["children",Vr.Children.toArray(Array.from(i))])])))],["children",Vr.Children.toArray(Array.from(o))])])))],["children",Vr.Children.toArray(Array.from(r))])])))],["children",Vr.Children.toArray(Array.from(n))])])))}class Va extends H{constructor(e,t,n,r,o,i,s){super(),this.Name=e,this.Email=t,this.MobilePhone=n,this.Title=r,this.Gender=o,this.DateOfBirth=i,this.Address=s}}class Za extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Full","Partial"]}}class Ya extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Success","EmailNotUnique"]}}class Ja extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Xa(e,t){const n=Qr(bt());return Xr((()=>Yr((()=>{Ct(n.current)}))),[]),eo((r=>{var o;null!=(o=n.current)&&o.isCancelled||xt(pt.Delay((()=>pt.TryWith(pt.Delay((()=>(t(new Ja(1)),pt.Bind(e(r),(e=>(t(new Ja(2,e)),pt.Zero())))))),(e=>(t(new Ja(3,e)),pt.Zero()))))),n.current)}))}function Ka(e){return ci(e)}function Qa(){return it([[new zi(0),"Male"],[new zi(1),"Female"],[new zi(2),"Intersex"],[new zi(3),"Transgender"],[new zi(4),"Prefer not to answer"],[new zi(5),"Other"]])}function el(e){return lt((t=>t[1]===e?t[0]:void 0),Qa())}class tl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Mr","Miss","Mrs","Ms","Mx","Dr","Prof"]}}function nl(){return it([[new tl(0),"Mr"],[new tl(1),"Miss"],[new tl(2),"Mrs"],[new tl(3),"Ms"],[new tl(4),"Mx"],[new tl(5),"Dr"],[new tl(6),"Prof"]])}function rl(e){return lt((t=>t[1]===e?t[0]:void 0),nl())}class ol extends H{constructor(e,t,n,r,o,i){super(),this.FirstName=e,this.MiddleName=t,this.LastName=n,this.Title=r,this.DateOfBirth=o,this.Gender=i}}const il=new ol("","","",void 0,void 0,void 0);class sl extends H{constructor(e,t,n,r,o,i,s){super(),this.Email=e,this.MobileNumber=t,this.StreetAddress=n,this.Suburb=r,this.State=o,this.Postcode=i,this.NonUniqueEmails=s}}const ul=new sl("","","","",void 0,"",Ze());class al extends H{constructor(e,t){super(),this.Identification=e,this.ContactDetails=t}}const ll=new al(il,ul);function cl(e){let t,n,r,o,i,s,u;if(1===e.tag){const a=e.fields[0];return new al(new ol(a.Name.FirstName,U(a.Name.MiddleName,""),a.Name.LastName,(t=a.Title,null==t?void 0:rl(t)),(n=a.DateOfBirth,null==n?void 0:Ka(n)),(r=a.Gender,null==r?void 0:el(r))),new sl(a.Email,as(U(a.MobilePhone,"")),U((o=a.Address,null==o?void 0:o.AddressLine1),""),U((i=a.Address,null==i?void 0:i.City),""),(s=a.Address,null==s?void 0:is(s.State)),U((u=a.Address,null==u?void 0:u.Postcode),""),Ze()))}{const t=e.fields[0];return new al(new ol(t.Name.FirstName,U(t.Name.MiddleName,""),t.Name.LastName,rl(t.Title),Ka(t.DateOfBirth),el(t.Gender)),new sl(t.Email,as(t.MobilePhone),t.Address.AddressLine1,t.Address.City,is(t.Address.State),t.Address.Postcode,Ze()))}}class $l extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.ExistingProfile=n,this.SaveStatus=r}}class fl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetIdentification","SetContactDetails","GetProfileCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function dl(e){return`${e}/profiles/backend/profiles`}function hl(e,t){const n=pt.Delay((()=>{const n=fi(t,ii(new ho(0),oi(dl(e))));return pt.Bind(n,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(vi("Dto.Api.Backend.Read.ProfileDto",[],Za,(()=>[[["Item",Ba()]],[["Item",_i("Dto.Api.Backend.Read.PartialProfileDto",[],Va,(()=>[["Name",Zi()],["Email",xi],["MobilePhone",bi(xi)],["Title",bi(xi)],["Gender",bi(xi)],["DateOfBirth",bi(xi)],["Address",bi(Ji())]]))]]])),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(1)):new wt(0,n.fields[0]),pt.Return(t)}))}function ml(e,t,n){const r=pt.Delay((()=>{let r;const o=fi(t,(r=ui(new po(1,function(e){return Du(0,Gu(Ba(),new Su(1),void 0,void 0)(e))}(n)),ii(new ho(2),oi(dl(e)))),si(ti("application/json"),r)));return pt.Bind(o,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(vi("Dto.Api.Backend.Read.ProfileUpdateStatus",[],Ya,(()=>[[],[]])),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(r,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(0)):new wt(0,n.fields[0]),pt.Return(t)}))}function pl(e,t){if(1===e.tag)return[new $l(new al(t.FormModel.Identification,e.fields[0](t.FormModel.ContactDetails)),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()];if(2!==e.tag){if(3===e.tag){const n=new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(1)),r=function(e){let t,n;const r=e.Identification.Gender;if(n=null==r?new wt(1,"Gender missing"):new wt(0,r),t=1===n.tag?new wt(1,n.fields[0]):new wt(0,function(e){switch(e.tag){case 1:return"Female";case 2:return"Intersex";case 3:return"Transgender";case 4:return"PreferNotToAnswer";case 5:return"Other";case 6:return"NotSet";default:return"Male"}}(n.fields[0])),1===t.tag)return new wt(1,t.fields[0]);{let n,r;const o=e.ContactDetails.State;if(r=null==o?new wt(1,"State missing"):new wt(0,o),n=1===r.tag?new wt(1,r.fields[0]):new wt(0,rs(r.fields[0])),1===n.tag)return new wt(1,n.fields[0]);{let r,o;const i=e.Identification.Title;if(o=null==i?new wt(1,"Title missing"):new wt(0,i),r=1===o.tag?new wt(1,o.fields[0]):new wt(0,function(e){return L(e)}(o.fields[0])),1===r.tag)return new wt(1,r.fields[0]);{let o,i;const s=e.Identification.DateOfBirth;return i=null==s?new wt(1,"DateOfBirth missing"):new wt(0,s),o=1===i.tag?new wt(1,i.fields[0]):new wt(0,function(e){return Z(e,"yyyy-MM-dd")}(i.fields[0])),1===o.tag?new wt(1,o.fields[0]):new wt(0,new La(new Vi(e.Identification.FirstName.trim(),li(e.Identification.MiddleName.trim()),e.Identification.LastName.trim()),r.fields[0],t.fields[0],e.ContactDetails.Email.trim(),us(e.ContactDetails.MobileNumber),o.fields[0],new Yi(e.ContactDetails.StreetAddress.trim(),void 0,e.ContactDetails.Suburb.trim(),n.fields[0],e.ContactDetails.Postcode.trim(),"AU")))}}}}(t.FormModel);return 1===r.tag?[n,Tt(new fl(4,new wt(1,new ts(0))))]:[n,It((e=>{Ot(e)}),(t=>ml(e.fields[0],e.fields[1],t)),r.fields[0],(t=>new fl(4,gt((t=>[t,e.fields[2]]),t))),(e=>new fl(4,new wt(1,new ts(0)))))]}return 4===e.tag?1===e.fields[0].tag?[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(3,new Error(ns(e.fields[0].fields[0])))),Tt(new fl(5,new Ha(1,ns(e.fields[0].fields[0]))))]:1===e.fields[0].fields[0][0].tag?[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(2,void 0)),Tt(new fl(1,(e=>new sl(e.Email,e.MobileNumber,e.StreetAddress,e.Suburb,e.State,e.Postcode,ut(e.NonUniqueEmails,Je(t.FormModel.ContactDetails.Email))))))]:(e.fields[0].fields[0][1](),[new $l(t.FormModel,t.CurrentAlert,t.ExistingProfile,new Ja(2,void 0)),Mt()]):5===e.tag?[new $l(t.FormModel,e.fields[0],t.ExistingProfile,t.SaveStatus),Mt()]:6===e.tag?[new $l(t.FormModel,void 0,t.ExistingProfile,t.SaveStatus),Mt()]:[new $l(new al(e.fields[0](t.FormModel.Identification),t.FormModel.ContactDetails),t.CurrentAlert,t.ExistingProfile,t.SaveStatus),Mt()]}{let n,r;switch(3===e.fields[0].tag?n=1:0===e.fields[0].tag?n=2:1===e.fields[0].tag?n=3:1===e.fields[0].fields[0].tag?n=1:(n=0,r=e.fields[0].fields[0].fields[0]),n){case 0:return[new $l(cl(r),t.CurrentAlert,new Ja(2,r),t.SaveStatus),Mt()];case 1:return[new $l(t.FormModel,t.CurrentAlert,new Ja(3,new Error(ns(new ts(1)))),t.SaveStatus),Mt()];case 2:return[new $l(t.FormModel,t.CurrentAlert,new Ja(0),t.SaveStatus),Mt()];case 3:return[new $l(t.FormModel,t.CurrentAlert,new Ja(1),t.SaveStatus),Mt()]}}}function wl(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class gl{constructor(e,t){const n=new j(null);this.comparer=t,n.contents=this,this.hashMap=new Map([]),this["init@8-2"]=1;const r=l(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();bl(n.contents,e)}}finally{s(r)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(e){return Array.from(this)}"System.Collections.IEnumerable.GetEnumerator"(){return l(this)}GetEnumerator(){return l(qt(this.hashMap.values()))}[Symbol.iterator](){return c(this.GetEnumerator())}"System.Collections.Generic.ICollection`1.Add2B595"(e){bl(this,e)}"System.Collections.Generic.ICollection`1.Clear"(){_l(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(e){return Cl(this,e)}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){var n;n=(n,r)=>{e[t+n]=r},Qt(((e,t)=>(n(e,t),e+1|0)),0,this)}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|vl(this)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(e){return Sl(this,e)}get size(){return 0|vl(this)}add(e){return bl(this,e),this}clear(){_l(this)}delete(e){return Sl(this,e)}has(e){return Cl(this,e)}keys(){return tn((e=>e),this)}values(){return tn((e=>e),this)}entries(){return tn((e=>[e,e]),this)}forEach(e,t){const n=this;en((t=>{e(t,t,n)}),n)}}function yl(e,t){const n=0|e.comparer.GetHashCode(t);let r,o=null;return r=[(i=e.hashMap,s=n,u=new j((()=>o),(e=>{o=e})),!!i.has(s)&&(u.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,u}function _l(e){e.hashMap.clear()}function vl(e){let t=0,n=l(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();)t=t+n["System.Collections.Generic.IEnumerator`1.get_Current"]().length|0}finally{s(n)}return 0|t}function bl(e,t){const n=yl(e,t);return n[0]?!(n[2]>-1)&&(wl(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function Cl(e,t){const n=yl(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return!0;case 1:return!1}}function Sl(e,t){const n=yl(e,t);let r;switch(r=n[0]&&n[2]>-1?0:1,r){case 0:return wl(e.hashMap,n[1]).splice(n[2],1),!0;case 1:return!1}}function xl(e,t){return zt((()=>{const n=new gl([],t);return function(e,t){return function(e,t){return Yt((()=>jt(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=>{s(e)}))}((t=>e(t)?D(t):void 0),t)}((e=>function(e,t){return!t.has(e)&&(t.add(e),!0)}(e,n)),e)}))}function El(e){const t=sr(e);return[t[0],e=>{t[1](e)}]}class kl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Required","MaxLen","MinLen","Regex","CustomRule"]}}function Nl(e){const t=e.values();return n=Zt(zt((()=>on((e=>{const t=e[0],n=at((t=>Ne(t,e[1])),function(e,t){const n=He(),r=nt(((e,t)=>{const n=1===(r=t).tag?r.fields[0]:void 0;var r;if(null==n)return e;{const t=new Le(F(n),void 0);return e.tail=t,t}}),n,t),o=He();return r.tail=o,Ve(n)}(0,at((e=>{switch(e.tag){case 1:return function(e,t){return t.length>e?new wt(1,Se(be("{0} exceeds the max length of %i"))(e)):new wt(0,void 0)}(e.fields[0],t.value);case 2:return n=e.fields[0],t.value.length<n?new wt(1,Se(be("{0} must be at least %i characters"))(n)):new wt(0,void 0);case 3:return function(e,t,n){return null!=pe(he(e),n)?new wt(0,void 0):new wt(1,Se(be("{0} is not a valid %s"))(t))}(e.fields[0],e.fields[1],t.value);case 4:return e.fields[0];default:return function(e){return Ae(e)?new wt(1,"{0} is required"):new wt(0,void 0)}(t.value)}var n}),e[2])));return Xt(Ke(n)>0?(t.classList.add("error"),t.setAttribute("title",function(e,t){return function(e,t){return((e,n)=>{for(;;){const r=e,o=n,i=o.tail;if(null==i)throw new Error("The index was outside the range of elements in the collection.\\nParameter name: index");if(r===t)return o.head;e=r+1,n=i}})(0,e)}(t,e)}(0,n)),Wt()):(t.classList.remove("error"),t.removeAttribute("title"),Wt()),zt((()=>n)))}),t)))),r={Equals:(e,t)=>e===t,GetHashCode:p},Zt(xl(n,r));var n,r}function Al(e){let t=l(e.values());try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]()[0];e.classList.remove("error"),e.removeAttribute("title")}}finally{s(t)}}function Ml(){const e=cr(new Map([])).current,t=El(Ze()),n=t[1],r=t[0],o=El(!1),i=o[1];return ar((()=>{if(o[0]){const t=Nl(e);C(t,r)||(n(t),Al(e))}})),[cr((t=>n=>r=>{if(!C(r,null)){let o;o=r.hasAttribute("data-vkey")?r.getAttribute("data-vkey"):h(_(r)),e.set(o,[r,t,n])}})).current,()=>{i(!0);const t=Nl(e);return n(t),0===Ke(t)},()=>{i(!1),Al(e),n(Ze())},r]}const Tl=L(n(118).Z),Il=it(["grid","grid-cols-1","sm:grid-cols-3","gap-x-6","gap-y-4","mt-4"]);class Ol extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Your","EmergencyContact"]}}function Pl(e){return 1===e.tag?"emergency contact":"your"}class Dl extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["TestId"]}}function Fl(e){return e.fields[0]}function Rl(e,t){return e+(n=t,r=new kl(0),o={Equals:C,GetHashCode:_},null!=ct((e=>o.Equals(r,e)),n)?" *":"");var n,r,o}function Gl(e,t,n,r,o){const i=Zt(zt((()=>Xt(Vt(Sn("label",{className:Me(" ",["block","text-sm","font-medium","text-gray-700"]),children:Rl(e,t)})),zt((()=>Xt(Vt(Sn("div",{className:Me(" ",["mt-1"]),children:Vr.Children.toArray([o])})),zt((()=>{if(null!=n){const e=n;return Vt(Sn("p",{className:Me(" ",["mt-2","text-sm","text-red-600"]),children:e,"data-testid":`${Fl(r)}-error`}))}return Vt(null)})))))))));return Sn("div",{children:Vr.Children.toArray(Array.from(i))})}const Ul=it(["border-red-300","text-red-900","placeholder-red-300","focus:outline-none","focus:ring-red-500","focus:border-red-500"]);function Ll(e){return Zt(zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>e?Ul:Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))))))))))))))))))}function Bl(e,t,n,r,o,i,s,u,a){return Gl(e,r,o,u,Sn("input",A(Zt(zt((()=>Xt(Vt(["className",Me(" ",Ll(null!=o))]),zt((()=>Xt(Vt(["value",t]),zt((()=>Xt(Vt(["ref",O(1,n,[r])]),zt((()=>Xt(Vt(["type","text"]),zt((()=>Xt(Vt(["onChange",e=>{i(e.target.value)}]),zt((()=>Xt(Vt(["placeholder",`Enter ${Pl(s)} ${e.toLocaleLowerCase()}`]),zt((()=>Xt(Vt(["data-testid",Fl(u)]),zt((()=>a)))))))))))))))))))))))))))}class Hl extends H{constructor(e,t,n){super(),this.Day=e,this.Month=t,this.Year=n}}const jl=new Hl("","","");function zl(e){return 1===e.length?`0${e}`:e}function ql(e){const t=function(e){return`${e.Year}-${zl(e.Month)}-${zl(e.Day)}`}(e),n=(r=t,ps(new ws(7),((e,t,n)=>{}),r));var r;let o;switch(o=1===n.tag&&7===n.fields[0].tag?0:1,o){case 0:return new wt(1,void 0);case 1:return new wt(0,t)}}function Wl(e){let t,n,r,o,i;const s=e.onChangeHandler,u=e.testId,a=e.error,l=e.validationRules,c=e.rulesForFieldName,$=e.value,f=e.fieldName,d=(m=null==$?jl:function(e){return new Hl(zl(h(re(e))),zl(h(oe(e))),h(ie(e)))}($),Vr.useState(m));var m;const p=d[0],w=e=>{let t;d[1](e),s((t=ql(e),1===t.tag?void 0:ci(t.fields[0])))},g=(e,t,n,r)=>{const o=Pe(es,r);return 0==(0|o.length)?o:$s(o,511,!1,32)<=t?De(o,0,function(e,t,n){return e(t,n)<0?t:n}(x,e,o.length)):n},y=Fl(u);return Gl(f,l,a,u,Sn("div",A(it([["className",Me(" ",["grid","grid-cols-4","gap-1"])],(t=[Sn("div",A(it([["className",Me(" ",["col-span-1"])],(n=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Day,placeholder:"dd",onChange:e=>{const t=e.target.value;w(new Hl(g(2,31,p.Day,t),p.Month,p.Year))},onBlur:e=>{w(new Hl(zl(p.Day),p.Month,p.Year))},inputMode:"numeric",autoComplete:"bday-day","data-testid":`${y}-day`})],["children",Vr.Children.toArray(Array.from(n))])]))),Sn("div",A(it([["className",Me(" ",["col-span-1"])],(r=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Month,placeholder:"mm",onChange:e=>{const t=e.target.value;w(new Hl(p.Day,g(2,12,p.Month,t),p.Year))},onBlur:e=>{w(new Hl(p.Day,zl(p.Month),p.Year))},inputMode:"numeric",autoComplete:"bday-month","data-testid":`${y}-month`})],["children",Vr.Children.toArray(Array.from(r))])]))),Sn("div",A(it([["className",Me(" ",["col-span-2"])],(o=[Sn("input",{className:Me(" ",Ll(null!=a)),type:"text",value:p.Year,placeholder:"yyyy",onChange:e=>{let t;const n=e.target.value;w(new Hl(p.Day,p.Month,g(4,(t=ee(),ie(t)),p.Year,n)))},inputMode:"numeric",autoComplete:"bday-year","data-testid":`${y}-year`})],["children",Vr.Children.toArray(Array.from(o))])]))),Sn("input",{type:"hidden",ref:c(l),value:(i=ql(p),1===i.tag?"":i.fields[0])})],["children",Vr.Children.toArray(Array.from(t))])]))))}function Vl(e,t,n,r,o,i,s,u,a){let l;return Gl(e,o,i,a,Sn("select",A(it([["className",Me(" ",Zt(zt((()=>Xt(Vt("mt-1"),zt((()=>Xt(Vt("block"),zt((()=>Xt(Vt("w-full"),zt((()=>Xt(Vt("pl-3"),zt((()=>Xt(Vt("pr-10"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("text-base"),zt((()=>Xt(Vt("sm:text-sm"),zt((()=>Xt(Vt("rounded-md"),zt((()=>null==i?Xt(Vt("border-gray-300"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>Vt("focus:border-primary-focus")))))))))):Ul)))))))))))))))))))))))))))))))],["ref",O(1,r,[o])],(l=Zt(zt((()=>Xt(Vt(Sn("option",{selected:null==t,disabled:!0,value:"",children:`Select ${Pl(u)} ${e.toLocaleLowerCase()}`})),zt((()=>on((e=>{const n=e[1];return Vt(Sn("option",{selected:Kt(e[0],G(t),{Equals:C,GetHashCode:y}),value:n,children:n,className:Me(" ",["text-black"])}))}),n))))))),["children",Vr.Children.toArray(Array.from(l))]),["onChange",e=>{s(e.target.value)}],["data-testid",Fl(a)]]))))}function Zl(e,t,n,r,o,i,s,u){return Gl(e,r,o,u,Sn("input",{className:Me(" ",Ll(null!=o)),type:"tel",value:t,ref:O(1,n,[r]),onChange:e=>{let t;const n=e.target.value;i((t=Pe(es,n),0===n.indexOf("+")?`+${t}`:t))},placeholder:`Enter ${Pl(s)} ${e.toLocaleLowerCase()}`,inputMode:"tel",autoComplete:"tel-national","data-testid":Fl(u)}))}function Yl(e,t,n){let r,o,i,s;const u=n&&!C(t,new Ja(1)),a=Sn("svg",A(it([["className",Me(" ",["animate-spin","-ml-1","mr-3","h-5","w-5","text-white"])],["fill","none"],["viewBox","0 0 24 24"],["xmlns","http://www.w3.org/2000/svg"],(r=it([Sn("circle",{className:Me(" ",["opacity-25"]),cx:12,cy:12,r:10,stroke:"currentColor",strokeWidth:4}),Sn("path",{className:Me(" ",["opacity-75"]),fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]),["children",Vr.Children.toArray(Array.from(r))])])));return Sn("div",A(it([["className",Me(" ",["flex","flex-row-reverse"])],(o=[(i=Je(Sn("button",A(it([["className",Me(" ",Zt(zt((()=>Xt(Vt("inline-flex"),zt((()=>Xt(Vt("items-center"),zt((()=>Xt(Vt("px-4"),zt((()=>Xt(Vt("py-2"),zt((()=>Xt(Vt("border"),zt((()=>Xt(Vt("border-transparent"),zt((()=>Xt(Vt("shadow-sm"),zt((()=>Xt(Vt("text-sm"),zt((()=>Xt(Vt("font-medium"),zt((()=>Xt(Vt("rounded-md"),zt((()=>Xt(Vt("text-primary-text"),zt((()=>Xt(Vt("focus:outline-none"),zt((()=>Xt(Vt("focus:ring-2"),zt((()=>Xt(Vt("focus:ring-offset-2"),zt((()=>Xt(Vt("focus:ring-primary-focus"),zt((()=>{const e=[u,t];let n;switch(n=e[0]||1===e[1].tag?0:1,n){case 0:return Xt(Vt("bg-primary-base"),zt((()=>Vt("hover:bg-primary-hover"))));case 1:return Vt("bg-primary-disabled")}})))))))))))))))))))))))))))))))))))))))))))))))))],["type","button"],["disabled",!u],["onClick",t=>{u&&e()}],(s=Zt(zt((()=>Xt(1===t.tag?Vt(a):Vt(null),zt((()=>Vt(Sn("span",{children:["Save and continue"]})))))))),["children",Vr.Children.toArray(Array.from(s))]),["data-testid","save"]])))),Sn("div",{children:Vr.Children.toArray(Array.from(i))}))],["children",Vr.Children.toArray(Array.from(o))])])))}function Jl(e){return(0===e.indexOf("04")?10===e.length:0===e.indexOf("614")?11===e.length:0===e.indexOf("+614")&&12===e.length)?new wt(0,void 0):new wt(1,new ws(9))}function Xl(e){let t;return new kl(4,(t=function(e){let t;const n=e;return 1===n.tag?new wt(1,(t=n.fields[0],1===t.tag?`{0} exceeds the character limit of ${t.fields[0]}`:2===t.tag?`{0} must be at least ${t.fields[0]} characters`:4===t.tag?"{0} must only have numbers":5===t.tag?"{0} is not valid":3===t.tag?"{0} has invalid characters":6===t.tag?"{0} is not valid":9===t.tag?"{0} is not a valid Australian mobile number":7===t.tag?"{0} is not valid":8===t.tag?0===t.fields[0].tag?"{0} must be under 100 years of age":"{0} must be at least 13 years of age":10===t.tag?"{0} must start with a letter":"{0} is required")):new wt(0,n.fields[0])}(e),1===t.tag?new wt(1,t.fields[0]):new wt(0,void 0)))}function Kl(e,t){let n;n=new CustomEvent("step-completion",{bubbles:!0,detail:e}),t.dispatchEvent(n)}function Ql(e){let t;const n=io([new $l(ll,void 0,new Ja(0),new Ja(0)),Mt()],pl),r=n[0],o=n[1],i=Ml(),s=i[0],u=i[3];Kr(Xa((()=>hl(e.backendUrl,e.accessToken)),(e=>{o(new fl(2,e))})));const a=Sn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Personal Details"});return Sn("div",A(it([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Sn("style",{children:[Tl]})),zt((()=>{const t=r.ExistingProfile;switch(t.tag){case 1:default:return Vt(Sn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(a),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Sn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Identification"})),zt((()=>{let o;const i="Identification";return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Legal first name",s=`${i}.${o}`;return Xt(Vt(Bl(o,e.FirstName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.FirstName))]),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(hi(e),t.MiddleName,t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"first-name"),[["autoComplete","given-name"]])),zt((()=>{const o="Middle name",s=`${i}.Middle name`;return Xt(Vt(Bl(o,e.MiddleName,T(2,O(2,t,[s])),Je(Xl(function(e){return null!=e?Es(it([e=>vs(60,e),e=>xs("-",e),e=>xs("'",e),e=>Cs("(^[A-Za-zÀ-ÖØ-öø-ÿĀ-ž])[A-Za-zÀ-ÖØ-öø-ÿĀ-ž\\- ']{0,59}$",e)]),e):new wt(0,void 0)}(li(e.MiddleName)))),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,hi(e),t.LastName,t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"middle-name"),[["autoComplete","additional-name"]])),zt((()=>{const o="Last name",s=`${i}.Last name`;return Xt(Vt(Bl(o,e.LastName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.LastName))]),di(s,o,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,hi(e),t.Title,t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"last-name"),[["autoComplete","family-name"]])),zt((()=>{let o;const s="Title",u=`${i}.Title`;return Xt(Vt(Vl(s,e.Title,nl(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Title,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,rl(e),t.DateOfBirth,t.Gender))))}),new Ol(0),new Dl(0,"title"))),zt((()=>{let o;const s="Date of birth",u=`${i}.Date of birth`;return Xt(Vt(Sn(Wl,{fieldName:s,value:e.DateOfBirth,rulesForFieldName:O(2,t,[u]),validationRules:it([new kl(0),Xl((o=e.DateOfBirth,null==o?new wt(1,new ws(0)):(a=o,function(e){return t=>Es(Je((t=>bs(e,t))),t)}(Y(Date.now(),1))(a))))]),error:di(u,s,n),testId:new Dl(0,"dob"),onChangeHandler:e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,t.Title,e,t.Gender))))}})),zt((()=>{let o;const s="Gender",u=`${i}.Gender`;return Vt(Vl(s,e.Gender,Qa(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Gender,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(0,(t=>new ol(t.FirstName,t.MiddleName,t.LastName,t.Title,t.DateOfBirth,el(e)))))}),new Ol(0),new Dl(0,"gender")))})));var a})))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel.Identification,T(3,s),u,o)),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>Xt(Vt(Sn("h6",{className:Me(" ",["text-lg","font-semibold"]),children:"Contact details"})),zt((()=>{let o;const i="ContactDetails";return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Email",s=`${i}.Email`;return Xt(Vt(Bl(o,e.Email,T(2,O(2,t,[s])),it([new kl(0),Xl(As(e.Email)),new kl(4,$t((t=>0===function(...e){switch(e.length){case 2:return ve(e[0],e[1],!1);case 3:return ve(e[0],e[1],e[2]);case 4:return ve(e[0],e[1],!0===e[2]);case 5:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return ve(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!0===e[5]);default:throw new Error("String.compare: Unsupported number of parameters")}}(t,e.Email,5)),e.NonUniqueEmails)?new wt(1,"{0} is already taken"):new wt(0,void 0))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(e,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"email"),[["autoComplete","email"]])),zt((()=>{const o="Mobile number",s=`${i}.Mobile number`;return Vt(Zl(o,e.MobileNumber,T(2,O(2,t,[s])),it([new kl(0),Xl(Jl(e.MobileNumber))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,e,t.StreetAddress,t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"mobile")))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Bl(o,e.StreetAddress,T(2,O(2,t,[s])),it([new kl(0),Xl(Ns(e.StreetAddress))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,hi(e),t.Suburb,t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Bl(o,e.Suburb,T(2,O(2,t,[s])),it([new kl(0),Xl(Ms(e.Suburb))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,hi(e),t.State,t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(Vl(s,e.State,os(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.State,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,is(e),t.Postcode,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Bl(o,e.Postcode,T(2,O(2,t,[s])),it([new kl(0),Xl(Ts(e.Postcode))]),di(s,o,n),(e=>{r(new fl(1,(t=>new sl(t.Email,t.MobileNumber,t.StreetAddress,t.Suburb,t.State,e,t.NonUniqueEmails))))}),new Ol(0),new Dl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))})))))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel.ContactDetails,T(3,s),u,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Sn(Wa,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new fl(6))}})):Wt(),zt((()=>Vt(Yl((()=>{i[1]()?o(new fl(3,e.backendUrl,e.accessToken,(()=>{en((e=>{Kl("personal-details",e)}),G(R(document.querySelector("apollo-personal-details-app"))))}))):o(new fl(5,new Ha(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Xe(u)))))))))))))));case 3:return Xt(Vt(a),zt((()=>{let e;return Vt((e=t.fields[0].message,Sn("p",{children:[e]})))})))}})))))),["children",Vr.Children.toArray(Array.from(t))])])))}function ec(e){return L(e)}function tc(){return at((e=>[e,ec(e)]),st(tn((e=>ji(e,[])),Fi(vi("DomainPrimitives.Relationship",[],qi,(()=>[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]))))))}function nc(e){return lt((t=>t[1]===e?t[0]:void 0),tc())}class rc extends H{constructor(e,t,n,r,o,i,s,u){super(),this.FullName=e,this.Relationship=t,this.PhoneNumber=n,this.Email=r,this.StreetAddress=o,this.Suburb=i,this.State=s,this.Postcode=u}}const oc=new rc("",void 0,"","","","",void 0,"");function ic(e,t){let n;const r=function(e){let t,n;const r=e.Relationship;if(n=null==r?new wt(1,"Relationship missing"):new wt(0,r),t=1===n.tag?new wt(1,n.fields[0]):new wt(0,function(e){switch(e.tag){case 1:return"Parent";case 2:return"Child";case 3:return"Sibling";case 4:return"Partner";case 5:return"Sister";case 6:return"Husband";case 7:return"Father";case 8:return"Mother";case 9:return"Daughter";case 10:return"Defacto";case 11:return"Fiance";case 12:return"Boyfriend";case 13:return"Brother";case 14:return"Wife";case 15:return"Son";case 16:return"Engaged";case 17:return"Friend";case 18:return"Girlfriend";case 19:return"Other";default:return"Spouse"}}(n.fields[0])),1===t.tag)return new wt(1,t.fields[0]);{let n,r;const o=e.State;return r=null==o?new wt(1,"State missing"):new wt(0,o),n=1===r.tag?new wt(1,r.fields[0]):new wt(0,rs(r.fields[0])),1===n.tag?new wt(1,n.fields[0]):new wt(0,new Xi(e.FullName.trim(),t.fields[0],us(e.PhoneNumber),li(e.Email),new Yi(e.StreetAddress.trim(),void 0,e.Suburb.trim(),n.fields[0],e.Postcode.trim(),"AU")))}}(e);return 1===r.tag?new wt(1,r.fields[0]):new wt(0,(n=r.fields[0],Xe(t)?Je(n):function(e,t){const n=He(),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(ze(s))return i;t=o+1,n=e(o,i,We(s)),r=Ve(s)}})(0,t,n)}(((t,n,r)=>{const o=new Le(e(t,r),void 0);return n.tail=o,o}),n,t),o=He();return r.tail=o,Ve(n)}(((e,t)=>0===e?n:t),t)))}function sc(e){let t,n,r,o;return new rc(e.FullName,nc(e.Relationship),as(e.MobilePhone),U(e.Email,""),U((t=e.Address,null==t?void 0:t.AddressLine1),""),U((n=e.Address,null==n?void 0:n.City),""),(r=e.Address,null==r?void 0:is(r.State)),U((o=e.Address,null==o?void 0:o.Postcode),""))}class uc extends H{constructor(e,t,n,r){super(),this.FormModel=e,this.CurrentAlert=t,this.SaveStatus=n,this.ExistingEmergencyContacts=r}}class ac extends B{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["SetEmergencyContact","GetEmergencyContactsCallback","SaveStarted","SaveFinished","ShowAlert","HideAlert"]}}function lc(e){return`${e}/profiles/backend/emergency-contacts`}function cc(e,t){let n,r;if(1!==e.tag){if(2===e.tag){const n=new uc(t.FormModel,t.CurrentAlert,new Ja(1),t.ExistingEmergencyContacts),o=yt((e=>ic(t.FormModel,e)),(r=t.ExistingEmergencyContacts,2===r.tag?new wt(0,r.fields[0]):new wt(1,"Existing ec has not been loaded")));return 1===o.tag?[n,Tt(new ac(3,new wt(1,new ts(0))))]:[n,It((e=>{Ot(e)}),(t=>function(e,t,n){return pt.Delay((()=>{let r;const o=fi(t,(r=ui(new po(1,(i=n,Du(0,Gu(Ci(Ki()),new Su(1),void 0,void 0)(i)))),ii(new ho(2),oi(lc(e)))),si(ti("application/json"),r)));var i;return pt.Bind(o,(e=>{const t=e;return 1===t.tag?pt.Return(new wt(1,t.fields[0])):200===t.fields[0].statusCode?pt.Return(new wt(0,void 0)):pt.Return(new wt(1,new ts(0)))}))}))}(e.fields[0],e.fields[1],t)),o.fields[0],(t=>new ac(3,gt((t=>e.fields[2]),t))),(e=>new ac(3,new wt(1,new ts(0)))))]}return 3===e.tag?1===e.fields[0].tag?[new uc(t.FormModel,t.CurrentAlert,new Ja(3,new Error(ns(e.fields[0].fields[0]))),t.ExistingEmergencyContacts),Tt(new ac(4,new Ha(1,ns(e.fields[0].fields[0]))))]:(e.fields[0].fields[0](),[new uc(t.FormModel,t.CurrentAlert,new Ja(2,void 0),t.ExistingEmergencyContacts),Mt()]):4===e.tag?[new uc(t.FormModel,e.fields[0],t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:5===e.tag?[new uc(t.FormModel,void 0,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]:[new uc(e.fields[0](t.FormModel),t.CurrentAlert,t.SaveStatus,t.ExistingEmergencyContacts),Mt()]}{let r,i;switch(3===e.fields[0].tag?r=1:0===e.fields[0].tag?r=2:1===e.fields[0].tag?r=3:1===e.fields[0].fields[0].tag?r=1:(r=0,i=e.fields[0].fields[0].fields[0]),r){case 0:return[new uc((o=i,n=ze(o)?void 0:D(We(o)),null==n?t.FormModel:sc(n)),t.CurrentAlert,t.SaveStatus,new Ja(2,i)),Mt()];case 1:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(3,new Error(ns(new ts(1))))),Mt()];case 2:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(0)),Mt()];case 3:return[new uc(t.FormModel,t.CurrentAlert,t.SaveStatus,new Ja(1)),Mt()]}}var o}function $c(e){let t;const n=io([new uc(oc,void 0,new Ja(0),new Ja(0)),Mt()],cc),r=n[0],o=n[1],i=Ml(),s=i[3];Kr(Xa((()=>function(e,t){const n=pt.Delay((()=>{const n=fi(t,ii(new ho(0),oi(lc(e))));return pt.Bind(n,(e=>{const t=e;if(1===t.tag)return pt.Return(new wt(1,t.fields[0]));{const e=t.fields[0];if(200===e.statusCode){const t=(n=e.responseText,_a(T(2,Ua(Ci(Ki()),new Su(1),void 0)),n));return pt.Return(t)}return pt.Return(new wt(1,""))}var n}))}));return pt.Bind(n,(e=>{let t;const n=e;return t=1===n.tag?new wt(1,new ts(1)):new wt(0,n.fields[0]),pt.Return(t)}))}(e.backendUrl,e.accessToken)),(e=>{o(new ac(1,e))})));const u=Sn("h3",{className:Me(" ",["text-2xl","font-medium"]),children:"Emergency contact"});return Sn("div",A(it([["className",Me(" ",["font-sans"])],(t=Zt(zt((()=>Xt(Vt(Sn("style",{children:[Tl]})),zt((()=>{const t=r.ExistingEmergencyContacts;switch(t.tag){case 1:default:return Vt(Sn("div",{children:["Please wait..."]}));case 2:return Xt(Vt(u),zt((()=>Xt(Vt(function(e,t,n,r){let o;return Sn("div",A(it([["className",Me(" ",["py-3","mb-2"])],(o=Zt(zt((()=>{let o;const i="EmergencyContact";return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Full name",s=`${i}.Full name`;return Xt(Vt(Bl(o,e.FullName,T(2,O(2,t,[s])),it([new kl(0),Xl(ks(e.FullName))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(hi(e),t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"full-name"),[])),zt((()=>{let o;const s="Relationship",u=`${i}.Relationship`;return Vt(Vl(s,e.Relationship,tc(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.Relationship,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,nc(e),t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"relationship")))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Xt(Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Phone number",s=`${i}.Phone number`;return Xt(Vt(Zl(o,e.PhoneNumber,T(2,O(2,t,[s])),it([new kl(0),Xl(Jl(e.PhoneNumber))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,e,t.Email,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"phone"))),zt((()=>{const o="Email",s=`${i}.Email`;return Vt(Bl(o,e.Email,T(2,O(2,t,[s])),Je(Xl(function(e){return null!=e?Es(Je(As),e):new wt(0,void 0)}(li(e.Email)))),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,e,t.StreetAddress,t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"email"),[]))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))),zt((()=>{let o;return Vt(Sn("div",A(it([["className",Me(" ",Il)],(o=Zt(zt((()=>{const o="Street address",s=`${i}.Street address`;return Xt(Vt(Bl(o,e.StreetAddress,T(2,O(2,t,[s])),it([new kl(0),Xl(Ns(e.StreetAddress))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,hi(e),t.Suburb,t.State,t.Postcode))))}),new Ol(1),new Dl(0,"street-address"),[["autoComplete","street-address"]])),zt((()=>{const o="Town/Suburb",s=`${i}.Town/Suburb`;return Xt(Vt(Bl(o,e.Suburb,T(2,O(2,t,[s])),it([new kl(0),Xl(Ms(e.Suburb))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,hi(e),t.State,t.Postcode))))}),new Ol(1),new Dl(0,"town"),[["autoComplete","address-level2"]])),zt((()=>{let o;const s="State",u=`${i}.State`;return Xt(Vt(Vl(s,e.State,os(),T(2,O(2,t,[u])),it([new kl(0),Xl((o=e.State,null==o?new wt(1,new ws(0)):new wt(0,o)))]),di(u,s,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,is(e),t.Postcode))))}),new Ol(1),new Dl(0,"state"))),zt((()=>{const o="Postcode",s=`${i}.Postcode`;return Vt(Bl(o,e.Postcode,T(2,O(2,t,[s])),it([new kl(0),Xl(Ts(e.Postcode))]),di(s,o,n),(e=>{r(new ac(0,(t=>new rc(t.FullName,t.Relationship,t.PhoneNumber,t.Email,t.StreetAddress,t.Suburb,t.State,e))))}),new Ol(1),new Dl(0,"postcode"),[["inputMode","numeric"],["autoComplete","postal-code"]]))})))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])]))))})))})))}))),["children",Vr.Children.toArray(Array.from(o))])])))}(r.FormModel,T(3,i[0]),s,o)),zt((()=>Xt(null!=r.CurrentAlert?Vt(Sn(Wa,{alert:F(r.CurrentAlert),hideAlert:()=>{o(new ac(5))}})):Wt(),zt((()=>Vt(Yl((()=>{i[1]()?o(new ac(2,e.backendUrl,e.accessToken,(()=>{en((e=>{Kl("emergency-contacts",e)}),G(R(document.querySelector("apollo-emergency-contacts-app"))))}))):o(new ac(4,new Ha(1,"There are some errors on the form, please correct them.")))}),r.SaveStatus,Xe(s))))))))))));case 3:return Xt(Vt(u),zt((()=>{let e;return Vt((e=t.fields[0].message,Sn("p",{children:[e]})))})))}})))))),["children",Vr.Children.toArray(Array.from(t))])])))}$i((e=>Sn(Ql,e)),"apollo-personal-details-app"),$i((e=>Sn($c,e)),"apollo-emergency-contacts-app")},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(515),n(118)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-personal-details-app",
3
- "version": "4.3.100",
3
+ "version": "4.4.101",
4
4
  "description": "Flare Personal Details Component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [