@flarehr/superhero-account-registry 1.21.3 → 1.22.4
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
|
-
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}n.r(t),n.d(t,"State",(function(){return Za})),n.d(t,"State$reflection",(function(){return Ja})),n.d(t,"Msg",(function(){return Xa})),n.d(t,"Msg$reflection",(function(){return Ya})),n.d(t,"StateModule_init",(function(){return Ka})),n.d(t,"StateModule_handleLoadedAccountsSuccess",(function(){return Qa})),n.d(t,"StateModule_handleLoadedAccountsFailure",(function(){return e$})),n.d(t,"StateModule_update",(function(){return t$})),n.d(t,"AccountRegistryComponent",(function(){return n$}));class u{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 c(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new u(e[Symbol.iterator]())}function l(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}}}}function a(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function $(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function p(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function _(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return p(e);case"string":return h(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]=_(e[r]);return m(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return m(Object.values(e).map(e=>_(e)))}return p(d.id(e))}}function w(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 g(e,t){return w(e,t,y)}function y(e,t){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)&&g(e,t):e instanceof Date?t instanceof Date&&0===v(e,t):Object.getPrototypeOf(e).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]||!y(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function v(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+$(e),r=t.getTime()+$(t)),n===r?0:n<r?-1:1}function b(e,t){return e===t?0:e<t?-1:1}function C(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,S)}function S(e,t){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)?C(e,t):-1:e instanceof Date?t instanceof Date?v(e,t):-1:Object.getPrototypeOf(e).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=S(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function E(e,t,n){return e(t,n)>0?t:n}function x(e){const t={};for(const n of e)t[n[0]]=n[1];return t}d.idMap=new WeakMap,d.count=0;function I(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,u)=>t(e)(n)(r)(o)(i)(s)(u);break;case 8:n=(e,n,r,o,i,s,u,c)=>t(e)(n)(r)(o)(i)(s)(u)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function k(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>u=>t(e,n,r,o,i,s,u);case 8:return e=>n=>r=>o=>i=>s=>u=>c=>t(e,n,r,o,i,s,u,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function N(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=k(e,n)),t>1&&(n=I(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function P(e,t=0){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+=P(r);else{if(100===t){n+="; ...";break}n+="; "+P(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+P(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class A{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",t=!0;if(1===this.fields.length){const n=P(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>P(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>_(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&g(this.fields,e.fields))}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function T(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function M(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+P(t)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>_(e)))}function O(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!y(e[n[r]],t[n[r]]))return!1;return!0}return!1}function R(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=S(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class L{toJSON(){return T(this)}toString(){return M(this)}GetHashCode(){return D(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class U{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class F{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class G{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 K(this)}GetHashCode(){return H(this)}Equals(e){return B(this,e)}}function j(e){return null!=e.generics?e.generics:[]}function H(e){return m([h(e.fullname),...j(e).map(H)])}function B(e,t){return""===e.fullname?""===t.fullname&&w(ie(e),ie(t),([e,t],[n,r])=>e===n&&B(t,r)):e.fullname===t.fullname&&w(j(e),j(t),B)}function W(e,t,n,r){return new G(e,t,n,r)}function V(e,t,n,r){return new G(e,t,n,void 0,r)}function q(e,t,n,r){const o=new G(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new F(o,n,e[n],t))});return o}function z(e){return new G("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Z(e){return new G("Microsoft.FSharp.Collections.FSharpList`1",[e])}const J=new G("System.Object"),X=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String"));new G("System.Boolean"),new G("System.SByte"),new G("System.Byte"),new G("System.Int16"),new G("System.UInt16"),new G("System.Int32"),new G("System.UInt32"),new G("System.Single"),new G("System.Double"),new G("System.Decimal");function Y(e){if(Array.isArray(e))return e[0];if(e instanceof F)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function K(e){const t=null==e.generics||Q(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>K(e)).join(",")+"]":e.fullname}function Q(e){return e.fullname.endsWith("[]")}function ee(e){return null!=e.enumCases&&e.enumCases.length>0}function te(e){if(ee(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function ne(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")}function re(e,t){const n=parseInt(t,10);return ne(e,isNaN(n)?t:n)[1]}function oe(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ie(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function se(e){return e.fullname.startsWith("System.Tuple")&&!Q(e)}function ue(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):{}}var ce;function le(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 ae(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=n||function(e,t){if(t&ce.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)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function $e(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=ae(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=le(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=le(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function fe(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ce||(ce={}));const de=Symbol("numeric");function he(e){return"number"==typeof e||(null==e?void 0:e[de])}function pe(e,t){return"number"==typeof e?e*t:e[de]().multiply(t)}function me(e,t){return"number"==typeof e?e.toFixed(t):e[de]().toFixed(t)}function _e(e,t){return"number"==typeof e?e.toPrecision(t):e[de]().toPrecision(t)}function we(e,t){return"number"==typeof e?e.toExponential(t):e[de]().toExponential(t)}function ge(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[de]().toHex()}var ye=null;try{ye=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(e){}function ve(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function be(e){return!0===(e&&e.__isLong__)}ve.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},ve.prototype.Equals=function(e){return Je(this,e)},ve.prototype.CompareTo=function(e){return Qe(this,e)},ve.prototype.toString=function(e){return Ve(this,e)},ve.prototype.toJSON=function(){return Ve(this)},ve.prototype[de]=function(){const e=this;return{multiply:t=>rt(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:()=>Ve(e.unsigned?e:at(lt(e),!0),16)}},ve.prototype.__isLong__,Object.defineProperty(ve.prototype,"__isLong__",{value:!0});var Ce={},Se={};function Ee(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Se[e])?r:(n=Ie(e,(0|e)<0?-1:0,!0),o&&(Se[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ce[e])?r:(n=Ie(e,e<0?-1:0,!1),o&&(Ce[e]=n),n)}function xe(e,t){if(isNaN(e))return t?Re:Oe;if(t){if(e<0)return Re;if(e>=Te)return je}else{if(e<=-Me)return He;if(e+1>=Me)return Ge}return e<0?et(xe(-e,t)):Ie(e%Ae|0,e/Ae|0,t)}function Ie(e,t,n){return new ve(e,t,n)}var ke=Math.pow;function Ne(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Oe;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 et(Ne(e.substring(1),t,n));for(var o=xe(ke(n,8)),i=Oe,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),n);if(u<8)i=tt(rt(i,xe(ke(n,u))),xe(c));else i=tt(i=rt(i,o),xe(c))}return i.unsigned=t,i}function Pe(e,t){return"number"==typeof e?xe(e,t):"string"==typeof e?Ne(e,t):Ie(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ae=4294967296,Te=Ae*Ae,Me=Te/2,De=Ee(1<<24),Oe=Ee(0),Re=Ee(0,!0),Le=Ee(1),Ue=Ee(1,!0),Fe=Ee(-1),Ge=Ie(-1,2147483647,!1),je=Ie(-1,-1,!0),He=Ie(0,-2147483648,!1);function Be(e){return e.unsigned?e.low>>>0:e.low}function We(e){return e.unsigned?(e.high>>>0)*Ae+(e.low>>>0):e.high*Ae+(e.low>>>0)}function Ve(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(qe(e))return"0";if(ze(e)){if(Je(e,He)){var n=xe(t),r=ot(e,n),o=nt(rt(r,n),e);return Ve(r,t)+Be(o).toString(t)}return"-"+Ve(et(e),t)}for(var i=xe(ke(t,6),e.unsigned),s=e,u="";;){var c=ot(s,i),l=(Be(nt(s,rt(c,i)))>>>0).toString(t);if(qe(s=c))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function qe(e){return 0===e.high&&0===e.low}function ze(e){return!e.unsigned&&e.high<0}function Ze(e){return 1==(1&e.low)}function Je(e,t){return be(t)||(t=Pe(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function Xe(e,t){return Qe(e,t)<0}function Ye(e,t){return Qe(e,t)>0}function Ke(e,t){return Qe(e,t)>=0}function Qe(e,t){if(be(t)||(t=Pe(t)),Je(e,t))return 0;var n=ze(e),r=ze(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:ze(nt(e,t))?-1:1}function et(e){return!e.unsigned&&Je(e,He)?He:tt(it(e),Le)}function tt(e,t){be(t)||(t=Pe(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,c=t.low>>>16,l=0,a=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,a+=($+=o+c)>>>16,l+=(a+=r+u)>>>16,l+=n+s,Ie(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function nt(e,t){return be(t)||(t=Pe(t)),tt(e,et(t))}function rt(e,t){if(qe(e))return e.unsigned?Re:Oe;if(be(t)||(t=Pe(t)),ye)return Ie(ye.mul(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned);if(qe(t))return e.unsigned?Re:Oe;if(Je(e,He))return Ze(t)?He:Oe;if(Je(t,He))return Ze(e)?He:Oe;if(ze(e))return ze(t)?rt(et(e),et(t)):et(rt(et(e),t));if(ze(t))return et(rt(e,et(t)));if(Xe(e,De)&&Xe(t,De))return xe(We(e)*We(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,c=t.low>>>16,l=65535&t.low,a=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*c)>>>16,a+=($+=r*l)>>>16,$&=65535,a+=($+=o*c)>>>16,$&=65535,a+=($+=i*u)>>>16,a+=n*l+r*c+o*u+i*s,Ie((f&=65535)<<16|(d&=65535),(a&=65535)<<16|($&=65535),e.unsigned)}function ot(e,t){if(be(t)||(t=Pe(t)),qe(t))throw Error("division by zero");var n,r,o;if(ye)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ie((e.unsigned?ye.div_u:ye.div_s)(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned):e;if(qe(e))return e.unsigned?Re:Oe;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ie(e.low,e.high,!0)}(t)),Ye(t,e))return Re;if(Ye(t,ct(e,1)))return Ue;o=Re}else{if(Je(e,He))return Je(t,Le)||Je(t,Fe)?He:Je(t,He)?Le:Je(n=st(ot(ut(e,1),t),1),Oe)?ze(t)?Le:Fe:o=tt(n,ot(r=nt(e,rt(t,n)),t));if(Je(t,He))return e.unsigned?Re:Oe;if(ze(e))return ze(t)?ot(et(e),et(t)):et(ot(et(e),t));if(ze(t))return et(ot(e,et(t)));o=Oe}for(r=e;Ke(r,t);){n=Math.max(1,Math.floor(We(r)/We(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:ke(2,i-48),u=xe(n),c=rt(u,t);ze(c)||Ye(c,r);)c=rt(u=xe(n-=s,e.unsigned),t);qe(u)&&(u=Le),o=tt(o,u),r=nt(r,c)}return o}function it(e){return Ie(~e.low,~e.high,e.unsigned)}function st(e,t){return be(t)&&(t=Be(t)),0==(t&=63)?e:t<32?Ie(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ie(0,e.low<<t-32,e.unsigned)}function ut(e,t){return be(t)&&(t=Be(t)),0==(t&=63)?e:t<32?Ie(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ie(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function ct(e,t){if(be(t)&&(t=Be(t)),0===(t&=63))return e;var n=e.high;return t<32?Ie(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ie(32===t?n:n>>>t-32,0,e.unsigned)}function lt(e,t){return t?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]}(e):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]}(e)}function at(e,t,n){return n?function(e,t){return new ve(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 ve(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)}const $t=tt,ft=rt,dt=ot,ht=function(e,t){return be(t)||(t=Pe(t)),ye?Ie((e.unsigned?ye.rem_u:ye.rem_s)(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned):nt(e,rt(ot(e,t),t))},pt=et,mt=function(e,t){return be(t)||(t=Pe(t)),Ie(e.low&t.low,e.high&t.high,e.unsigned)},_t=Qe,wt=Ie,gt=Be,yt=We;function vt(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return Ie(r,o>>31,t)}const bt=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Ct(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+a(~~(e/36e5),2)+":"+a(n,2)}function St(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Et(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 xt(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," ")+Ct(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Et(i,t,!0);switch(t){case"D":case"d":return St(i,"first");case"T":case"t":return St(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Ct(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function It(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Et(e,t,n);switch(t){case"D":case"d":return n?St(e,"first"):e.toLocaleDateString();case"T":case"t":return n?St(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(t?Ct(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function kt(e,t,n){return null!=e.offset?xt(e,t):It(e,t)}function Nt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function Pt(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function At(e,t){try{return t.contents=function(e,t=!1){const n=Pt(e),r=bt.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return Nt(n.getTime(),o)}(e),!0}catch(e){return!1}}function Tt(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function Mt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Dt(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Tt(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const Ot=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,Rt=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Lt=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ut(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ft(e){return{input:e,cont:(t=e,e=>Ot.test(t)?function e(t,n,r=new U(null)){return(...o)=>{let i=t;for(const e of o)i=Wt(i,e,r);return Ot.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function Gt(e,t){let n=0;return e.replace(Rt,(e,r,o,i,s,u)=>Bt(t[n++],r,o,i,s,u)).replace(/%%/g,"%")}function jt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Ht(e){return jt(e=>e,e)}function Bt(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",he(e))switch("x"!==i.toLowerCase()&&(Ut(e,0)?(e=pe(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=me(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?_e(e,o):_e(e);break;case"e":case"E":e=null!=o?we(e,o):we(e);break;case"x":e=ge(e);break;case"X":e=ge(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?kt(e):P(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=Zt(e,r-s.length,i,o)):Zt(s+e,r,i,o)}return t?t+e:e}function Wt(e,t,n){return e.replace(Ot,(e,r,o,i,s,u)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return Bt(t,r,o,i,s,u).replace(/%/g,"%%")})}function Vt(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Lt,(e,n,r,o,i,s)=>{let u=t[n];if(he(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=me(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?we(u,i):we(u);break;case"p":case"P":i=null!=i?i:2,u=me(pe(u,100),i)+" %";break;case"d":case"D":u=null!=i?Zt(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Zt(ge(u),i,"0"):ge(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(Ut(u,0)&&(u=pe(u,-1),e="-"),u=me(u,null!=r?r.length-1:0),Zt(u,(n||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?kt(u,s||o):P(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Zt(String(u),Math.abs(r)," ",r<0)),u})}function qt(e){return"string"!=typeof e||0===e.length}function zt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zt(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 Jt(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>Mt(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Xt(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)}const Yt=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Kt=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Qt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function en(e){function t(e){return e.replace(Kt,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Yt.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Mt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Kt.test(n))return t(n);if(Qt.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function tn(e,t){try{return t.contents=en(e),!0}catch(e){return!1}}class nn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["StreamId"]}}function rn(){return q("MetadataTypes.StreamId",[],nn,()=>[[["Item",X]]])}function on(e){return e.fields[0]}class sn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return _(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof sn?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof sn?e.value:e)}}function un(e){return null==e||e instanceof sn?new sn(e):e}function cn(e){if(null==e)throw new Error("Option has no value");return e instanceof sn?e.value:e}function ln(e){return null==e?[]:[cn(e)]}function an(e,t){return null!=e?cn(e):t}function $n(e,t){return null!=t?un(e(cn(t))):void 0}class fn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function dn(e,t){if(0===t.tag){const n=t.fields[0];return new fn(0,e(n))}{const e=t.fields[0];return new fn(1,e)}}function hn(e,t){if(0===t.tag){return e(t.fields[0])}{const e=t.fields[0];return new fn(1,e)}}class pn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Name"]}}function mn(){return q("BasicModels.Name",[],pn,()=>[[["Item",X]]])}class _n extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Website"]}}function wn(){return q("BasicModels.Website",[],_n,()=>[[["Item",X]]])}class gn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FirstName"]}}class yn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LastName"]}}class vn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class bn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["MobilePhone"]}}class Cn extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function Sn(){return V("BasicModels.ContactDetails",[],Cn,()=>[["FirstName",q("BasicModels.FirstName",[],gn,()=>[[["Item",X]]])],["LastName",q("BasicModels.LastName",[],yn,()=>[[["Item",X]]])],["Email",q("BasicModels.Email",[],vn,()=>[[["Item",X]]])],["MobilePhone",q("BasicModels.MobilePhone",[],bn,()=>[[["Item",X]]])]])}class En extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Notes"]}}function xn(){return q("BasicModels.Notes",[],En,()=>[[["Item",X]]])}class In extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerId"]}}function kn(){return q("BasicModels.PartnerId",[],In,()=>[[["Item",X]]])}class Nn extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AccountId"]}}function Pn(e,t){return"function"==typeof e?new e(t):new Array(t)}function An(){throw new Error("Arrays had different lengths")}function Tn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Mn(e,t,n){const r=0|t.length,o=Pn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function Dn(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Pn(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function On(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function Rn(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let r=0,o=0;const i=0|t.length,s=0|n.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>S(e,t),t,n)}function Ln(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Un(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&An();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class Fn extends L{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+zt("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((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(y(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,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)+_(i.head)+631*r,n=u}}})(0,0,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|S(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 function(e){return new Gn(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class Gn{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"(){this.it=this.xs,this.current=null}Dispose(){}}function jn(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 Hn(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Bn(e){const t=e.tail;if(null!=t){return t}throw new Error("List was empty\\nParameter name: list")}function Wn(){return new Fn(null,void 0)}function Vn(e,t){return new Fn(e,t)}function qn(e){return new Fn(e,new Fn(null,void 0))}function zn(e){return null==e.tail}function Zn(e){return Hn(e)}function Jn(e){return Bn(e)}function Xn(e){const t=0|jn(e),n=Tn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(null==o.tail)break;n[r]=Hn(o),e=r+1,t=Bn(o)}})(0,e),n}function Yn(e,t,n){let r=t,o=n;for(;null!=o.tail;)r=e(r,Hn(o)),o=Bn(o);return r}function Kn(e){return Yn((e,t)=>new Fn(t,e),new Fn(null,void 0),e)}function Qn(e,t){return Yn((t,n)=>{e(n)},void 0,t)}function er(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=new Fn(e[t],n);return n}function tr(e){return er(e,new Fn(null,void 0))}function nr(e){if(r(e)){return tr(e)}if(e instanceof Fn){return e}{const t=new Fn(null,void 0);let n=t;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),t=n,o=new Fn(e,void 0);t.tail=o,n=o}}finally{r.Dispose()}const o=n,i=new Fn(null,void 0);return o.tail=i,Bn(t)}}function rr(e,t){return Yn((e,t)=>new Fn(t,e),t,Kn(e))}function or(e,t){const n=new Fn(null,void 0),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(null==s.tail)return i;t=o+1,n=e(o,i,Hn(s)),r=Bn(s)}})(0,t,n)}((t,n,r)=>{const o=new Fn(e(t,r),void 0);return n.tail=o,o},n,t),o=new Fn(null,void 0);return r.tail=o,Bn(n)}function ir(e,t){const n=new Fn(null,void 0),r=Yn((t,n)=>{const r=new Fn(e(n),void 0);return t.tail=r,r},n,t),o=new Fn(null,void 0);return r.tail=o,Bn(n)}function sr(e,t){return(t=>{e:for(;;){const n=t;if(null==n.tail)return;{const r=e(Hn(n));if(null==r){t=Bn(n);continue e}return r}}})(t)}function ur(e,t){return sr(t=>e(t)?un(t):void 0,t)}function cr(){return e=(e,t)=>S(e,t),{Compare:(t,n)=>e(t,n)};var e}function lr(){return cr()}function ar(){throw new Error("Enumeration has not started. Call MoveNext.")}function $r(){throw new Error("Enumeration already finished.")}class fr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=c(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=P(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class dr{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"(){return function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function hr(e,t,n){return new dr(e,t,n)}function pr(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return hr(()=>{if(r?o&&$r():ar(),null!=i){return cn(i)}return $r()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[t,n];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=un(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=c(r)}else s(),o=!1}else t=c(e)}return cn(o)})()),()=>{o||s()})}function mr(e,t,n){let r=!1,o=void 0,i=un(e());const s=()=>{if(null!=i){const e=cn(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return hr(()=>{if(r||ar(),null!=o){return cn(o)}return $r()},()=>{if(r||(r=!0),null!=i){const e=cn(i);let n;try{n=t(e)}catch(e){throw u(),e}if(null!=n){return o=n,!0}return u(),!1}return!1},s)}function _r(e,t){null==t&&function(e){throw new Error(e)}(e)}function wr(e){return function(e){return new fr(e)}(e)}function gr(e){return _r("source",e),c(e)}function yr(e){return wr(()=>c(e()))}function vr(e){return wr(()=>pr(e))}function br(){return yr(()=>new Array(0))}function Cr(e){return yr(()=>function(e,t){const n=Pn(t,1);return n[0]=e,n}(e))}function Sr(e){if(r(e)){return tr(e)}if(e instanceof Fn){return e}return nr(e)}function Er(e,t,n){return wr(()=>mr(e,t,n))}function xr(e,t,n){return wr(()=>{let r=-1;return mr(e,e=>(r+=1,t(r,e)),n)})}function Ir(e,t){return vr([e,t])}function kr(e,t,n){const r=gr(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{r.Dispose()}}function Nr(e,t,n){const r=gr(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{r.Dispose()}}function Pr(e,t){return Nr((t,n)=>{e(n)},void 0,t)}function Ar(e,t){return Er(()=>gr(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?un(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Tr(e,t){return xr(()=>gr(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?un(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}!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]}();function Mr(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Tt(t,n),r.exec(e)}(Tt(e),t);return null!=n?Jn(Sr(yr(()=>Ar(e=>e||"",n)))):void 0}function Dr(e,t){return qt(t)?new fn(1,Ht(Ft("%s cannot be null or empty"))(e)):new fn(0,t)}function Or(e){const t=function(e){let t;const n=Mr(".*?@(.*)",e);switch(t=null!=n?zn(n)?1:zn(Jn(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new fn(0,t)}return new fn(1,"Email is not in the correct format")}class Rr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class Lr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Lr.prototype)}}class Ur{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Ur.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Fr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Lr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(e){t.onError(e)}});else try{e(t)}catch(e){t.onError(e)}}}function Gr(e,t){return Fr(n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function jr(e){return Fr(t=>t.onSuccess(e))}const Hr=new class{Bind(e,t){return Gr(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Fr(t=>e()(t))}For(e,t){const n=e[Symbol.iterator]();let r=n.next();return this.While(()=>!r.done,this.Delay(()=>{const e=t(r.value);return r=n.next(),e}))}Return(e){return jr(e)}ReturnFrom(e){return e}TryFinally(e,t){return Fr(n=>{e({onSuccess:e=>{t(),n.onSuccess(e)},onError:e=>{t(),n.onError(e)},onCancel:e=>{t(),n.onCancel(e)},cancelToken:n.cancelToken,trampoline:n.trampoline})})}TryWith(e,t){return Fr(n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(e)}}})})}Using(e,t){return this.TryFinally(t(e),()=>e.Dispose())}While(e,t){return e()?this.Bind(t,()=>this.While(e,t)):this.Return(void 0)}Zero(){return Fr(e=>e.onSuccess(void 0))}};class Br{constructor(){}}function Wr(e,t){return new fn(0,t)}function Vr(e,t){return t}function qr(e,t,n){return dn(n,t)}new Br;function zr(e){return dn(e=>new pn(0,e),Dr("Name",e))}function Zr(e){return e.fields[0]}function Jr(e){return dn(e=>new _n(0,e),Dr("Website",e))}function Xr(e){return e.fields[0]}function Yr(e){return e.fields[0]}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}class eo extends L{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function to(){return V("Dto.Primitives.ContactDetails",[],eo,()=>[["FirstName",X],["LastName",X],["Email",X],["MobilePhone",X]])}function no(e){return Vr(0,()=>hn(t=>{const n=t;return hn(t=>{const r=t;return hn(t=>{const o=t;return qr(0,dn(e=>new bn(0,e),Dr("MobilePhone",e.MobilePhone)),e=>new Cn(n,r,o,e))},dn(e=>new vn(0,e),hn(e=>Or(e),Dr("Email",e.Email))))},dn(e=>new yn(0,e),Dr("LastName",e.LastName)))},dn(e=>new gn(0,e),Dr("FirstName",e.FirstName))))()}function ro(e){return $n(e=>new En(0,e),e)}function oo(e){if(null!=e){return e.fields[0]}}function io(e){return e.fields[0]}function so(e){return e.fields[0]}class uo extends L{constructor(e,t,n,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}function co(){return V("Dto.Primitives.LegalEntity",[],uo,()=>[["BusinessName",X],["BusinessNumber",X],["Address1",X],["Address2",z(X)],["City",X],["Postcode",X],["State",z(X)],["Phone",X],["CountryCode",z(X)]])}var lo,ao,$o,fo,ho,po={},mo=[],_o=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function wo(e,t){for(var n in t)e[n]=t[n];return e}function go(e){var t=e.parentNode;t&&t.removeChild(e)}function yo(e,t,n){var r,o,i,s=arguments,u={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);if(null!=n&&(u.children=n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===u[i]&&(u[i]=e.defaultProps[i]);return vo(e,u,r,o,null)}function vo(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?++lo.__v:o};return null!=lo.vnode&&lo.vnode(i),i}function bo(e){return e.children}function Co(e,t){this.props=e,this.context=t}function So(e,t){if(null==t)return e.__?So(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?So(e):null}function Eo(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 Eo(e)}}function xo(e){(!e.__d&&(e.__d=!0)&&ao.push(e)&&!Io.__r++||fo!==lo.debounceRendering)&&((fo=lo.debounceRendering)||$o)(Io)}function Io(){for(var e;Io.__r=ao.length;)e=ao.sort((function(e,t){return e.__v.__b-t.__v.__b})),ao=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=wo({},o)).__v=o.__v+1,Ro(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?So(o):i,o.__h),Lo(n,o),o.__e!=i&&Eo(o)))}))}function ko(e,t,n,r,o,i,s,u,c,l){var a,$,f,d,h,p,m,_=r&&r.__k||mo,w=_.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(d=n.__k[a]=null==(d=t[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?vo(null,d,null,null,d):Array.isArray(d)?vo(bo,{children:d},null,null,null):d.__b>0?vo(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=_[a])||f&&d.key==f.key&&d.type===f.type)_[a]=void 0;else for($=0;$<w;$++){if((f=_[$])&&d.key==f.key&&d.type===f.type){_[$]=void 0;break}f=null}Ro(e,d,f=f||po,o,i,s,u,c,l),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&null!=d.__k&&d.__k===f.__k?d.__d=c=No(d,c,e):c=Ao(e,d,f,_,h,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&f.__e==c&&c.parentNode!=e&&(c=So(f))}for(n.__e=p,a=w;a--;)null!=_[a]&&("function"==typeof n.type&&null!=_[a].__e&&_[a].__e==n.__d&&(n.__d=So(r,a+1)),Go(_[a],_[a]));if(m)for(a=0;a<m.length;a++)Fo(m[a],m[++a],m[++a])}function No(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?No(o,t,n):Ao(n,o,o,e.__k,o.__e,t));return t}function Po(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Po(e,t)})):t.push(e)),t}function Ao(e,t,n,r,o,i){var s,u,c;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,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function To(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||_o.test(t)?n:n+"px"}function Mo(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||To(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||To(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?Oo:Do,i):e.removeEventListener(t,i?Oo:Do,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 Do(e){this.l[e.type+!1](lo.event?lo.event(e):e)}function Oo(e){this.l[e.type+!0](lo.event?lo.event(e):e)}function Ro(e,t,n,r,o,i,s,u,c){var l,a,$,f,d,h,p,m,_,w,g,y=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=lo.__b)&&l(t);try{e:if("function"==typeof y){if(m=t.props,_=(l=y.contextType)&&r[l.__c],w=l?_?_.props.value:l.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(m,w):(t.__c=a=new Co(m,w),a.constructor=y,a.render=jo),_&&_.sub(a),a.props=m,a.state||(a.state={}),a.context=w,a.__n=r,$=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=y.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=wo({},a.__s)),wo(a.__s,y.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,$)null==y.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,w)||t.__v===n.__v){a.props=m,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),a.__h.length&&s.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,d,h)}))}a.context=w,a.props=m,a.state=a.__s,(l=lo.__r)&&l(t),a.__d=!1,a.__v=t,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=wo(wo({},r),a.getChildContext())),$||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(f,d)),g=null!=l&&l.type===bo&&null==l.key?l.props.children:l,ko(e,Array.isArray(g)?g:[g],t,n,r,o,i,s,u,c),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Uo(n.__e,t,n,r,o,i,s,c);(l=lo.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=u,t.__h=!!c,i[i.indexOf(u)]=null),lo.__e(e,t,n)}}function Lo(e,t){lo.__c&&lo.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){lo.__e(e,t.__v)}}))}function Uo(e,t,n,r,o,i,s,u){var c,l,a,$,f=n.props,d=t.props,h=t.type,p=0;if("svg"===h&&(o=!0),null!=i)for(;p<i.length;p++)if((c=i[p])&&(c===e||(h?c.localName==h:3==c.nodeType))){e=c,i[p]=null;break}if(null==e){if(null===h)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",h):document.createElement(h,d.is&&d),i=null,u=!1}if(null===h)f===d||u&&e.data===d||(e.data=d);else{if(i=i&&mo.slice.call(e.childNodes),l=(f=n.props||po).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!u){if(null!=i)for(f={},$=0;$<e.attributes.length;$++)f[e.attributes[$].name]=e.attributes[$].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Mo(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]||Mo(e,i,t[i],n[i],r)}(e,d,f,o,u),a)t.__k=[];else if(p=t.props.children,ko(e,Array.isArray(p)?p:[p],t,n,r,o&&"foreignObject"!==h,i,s,e.firstChild,u),null!=i)for(p=i.length;p--;)null!=i[p]&&go(i[p]);u||("value"in d&&void 0!==(p=d.value)&&(p!==e.value||"progress"===h&&!p)&&Mo(e,"value",p,f.value,!1),"checked"in d&&void 0!==(p=d.checked)&&p!==e.checked&&Mo(e,"checked",p,f.checked,!1))}return e}function Fo(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){lo.__e(e,n)}}function Go(e,t,n){var r,o,i;if(lo.unmount&&lo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Fo(r,null,t)),n||"function"==typeof e.type||(n=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){lo.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Go(r[i],t,n);null!=o&&go(o)}function jo(e,t,n){return this.constructor(e,n)}function Ho(e,t,n){var r,o,i;lo.__&&lo.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ro(t,e=(!r&&n||t).__k=yo(bo,null,[e]),o||po,po,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?mo.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Lo(i,e)}function Bo(e,t){Ho(e,t,Bo)}function Wo(e,t,n){var r,o,i,s=arguments,u=wo({},e.props);for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:u[i]=t[i];if(arguments.length>3)for(n=[n],i=3;i<arguments.length;i++)n.push(s[i]);return null!=n&&(u.children=n),vo(e.type,u,r||e.key,o||e.ref,null)}lo={__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},__v:0},Co.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=wo({},this.state),"function"==typeof e&&(e=e(wo({},n),this.props)),e&&wo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),xo(this))},Co.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xo(this))},Co.prototype.render=bo,ao=[],$o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Io.__r=0,ho=0;var Vo,qo,zo,Zo=0,Jo=[],Xo=lo.__b,Yo=lo.__r,Ko=lo.diffed,Qo=lo.__c,ei=lo.unmount;function ti(e,t){lo.__h&&lo.__h(qo,e,Zo||t),Zo=0;var n=qo.__H||(qo.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ni(e){return Zo=1,ri(di,e)}function ri(e,t,n){var r=ti(Vo++,2);return r.t=e,r.__c||(r.__=[n?n(t):di(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=qo),r.__}function oi(e,t){var n=ti(Vo++,3);!lo.__s&&fi(n.__H,t)&&(n.__=e,n.__H=t,qo.__H.__h.push(n))}function ii(e,t){var n=ti(Vo++,4);!lo.__s&&fi(n.__H,t)&&(n.__=e,n.__H=t,qo.__h.push(n))}function si(e,t){var n=ti(Vo++,7);return fi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ui(e,t){lo.useDebugValue&&lo.useDebugValue(t?t(e):e)}function ci(){Jo.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(ai),e.__H.__h.forEach($i),e.__H.__h=[]}catch(t){e.__H.__h=[],lo.__e(t,e.__v)}})),Jo=[]}lo.__b=function(e){qo=null,Xo&&Xo(e)},lo.__r=function(e){Yo&&Yo(e),Vo=0;var t=(qo=e.__c).__H;t&&(t.__h.forEach(ai),t.__h.forEach($i),t.__h=[])},lo.diffed=function(e){Ko&&Ko(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Jo.push(t)&&zo===lo.requestAnimationFrame||((zo=lo.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),li&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);li&&(t=requestAnimationFrame(n))})(ci)),qo=void 0},lo.__c=function(e,t){t.some((function(e){try{e.__h.forEach(ai),e.__h=e.__h.filter((function(e){return!e.__||$i(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],lo.__e(n,e.__v)}})),Qo&&Qo(e,t)},lo.unmount=function(e){ei&&ei(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(ai)}catch(e){lo.__e(e,t.__v)}};var li="function"==typeof requestAnimationFrame;function ai(e){var t=qo;"function"==typeof e.__c&&e.__c(),qo=t}function $i(e){var t=qo;e.__c=e.__(),qo=t}function fi(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function di(e,t){return"function"==typeof t?t(e):t}function hi(e,t){for(var n in t)e[n]=t[n];return e}function pi(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 mi(e){this.props=e}(mi.prototype=new Co).isPureReactComponent=!0,mi.prototype.shouldComponentUpdate=function(e,t){return pi(this.props,e)||pi(this.state,t)};var _i=lo.__b;lo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),_i&&_i(e)};var wi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var gi=function(e,t){return null==e?null:Po(Po(e).map(t))},yi={map:gi,forEach:gi,count:function(e){return e?Po(e).length:0},only:function(e){var t=Po(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Po},vi=lo.__e;lo.__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);vi(e,t,n)};var bi=lo.unmount;function Ci(){this.__u=0,this.t=null,this.__b=null}function Si(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Ei(){this.u=null,this.o=null}lo.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),bi&&bi(e)},(Ci.prototype=new Co).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Si(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()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Ci.prototype.componentWillUnmount=function(){this.t=[]},Ci.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=hi({},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&&yo(bo,null,e.fallback);return o&&(o.__h=null),[yo(bo,null,t.__e?null:e.children),o]};var xi=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 Ii(e){return this.getChildContext=function(){return e.context},e.children}function ki(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ho(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)}}),Ho(yo(Ii,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ei.prototype=new Co).__e=function(e){var t=this,n=Si(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xi(t,e,r)):o()};n?n(i):i()}},Ei.prototype.render=function(e){this.u=null,this.o=new Map;var t=Po(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},Ei.prototype.componentDidUpdate=Ei.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xi(e,n,t)}))};var Ni="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Pi=/^(?: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]/,Ai=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Co.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Co.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ti=lo.event;function Mi(){}function Di(){return this.cancelBubble}function Oi(){return this.defaultPrevented}lo.event=function(e){return Ti&&(e=Ti(e)),e.persist=Mi,e.isPropagationStopped=Di,e.isDefaultPrevented=Oi,e.nativeEvent=e};var Ri,Li={configurable:!0,get:function(){return this.class}},Ui=lo.vnode;lo.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)&&!Ai(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Pi.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=Po(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Po(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&&(Li.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Li)),e.$$typeof=Ni,Ui&&Ui(e)};var Fi=lo.__r;lo.__r=function(e){Fi&&Fi(e),Ri=e.__c};var Gi={ReactCurrentDispatcher:{current:{readContext:function(e){return Ri.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function ji(e){return!!e&&e.$$typeof===Ni}const Hi={useState:ni,useReducer:ri,useEffect:oi,useLayoutEffect:ii,useRef:function(e){return Zo=5,si((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){Zo=6,ii((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:si,useCallback:function(e,t){return Zo=8,si((function(){return e}),t)},useContext:function(e){var t=qo.context[e.__c],n=ti(Vo++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(qo)),t.props.value):e.__},useDebugValue:ui,version:"16.8.0",Children:yi,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Ho(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Bo(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Ho(null,e),!0)},createPortal:function(e,t){return yo(ki,{__v:e,i:t})},createElement:yo,createContext:function(e,t){var n={__c:t="__cC"+ho++,__: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(xo)},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 yo.bind(null,e)},cloneElement:function(e){return ji(e)?Wo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:bo,isValidElement:ji,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Co,PureComponent:mi,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:pi(this.props,e)}function r(t){return this.shouldComponentUpdate=n,yo(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=hi({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=wi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:bo,Suspense:Ci,SuspenseList:Ei,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 yo(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Gi},Bi=e=>{oi(()=>{const t=e();return()=>{t.Dispose()}})},Wi=(e,t)=>{oi(()=>{const t=e();return()=>{t.Dispose()}},t)},Vi=e=>{ii(()=>{const t=e();return()=>{t.Dispose()}})};function qi(e,t,n,r){const o=Hi.memo(e,I(2,an(k(2,n),null)));return Pr(t=>{e.displayName=t},ln(t)),e=>{const t=zi(r,e);return Hi.createElement(o,t)}}function zi(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function Zi(e){return{Dispose(){e()}}}function Ji(e){Bi(e)}function Xi(e,t){Wi(e,t)}function Yi(e){Xi(e,[])}function Ki(e,t){Wi(t=>(e(),Zi(()=>{})),t)}function Qi(e,t){return Hi.useCallback(e,an(t,[]))}function es(e){return Hi.useRef(e)}function ts(e,t){return Hi.useMemo(e,an(t,[]))}function ns(e){const t=es(e),n=Qi(e=>t.current(e),[]);var r;return r=()=>{t.current=e},Vi(e=>(r(),Zi(()=>{}))),n}function rs(e){return Hi.useState(e)}function os(e){}function is(e){const t=new Rr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function ss(e){e.cancel()}function us(e){return null!=e&&e.isCancelled}const cs=new Rr;function ls(e){return Fr(t=>e([t.onSuccess,t.onError,t.onCancel]))}function as(e,t){return function(e,t){return $s(e,t)}(e,t)}function $s(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Ur;e({onSuccess:t||os,onError:n||os,onCancel:r||os,cancelToken:o||cs,trampoline:i})}class fs{constructor(e,t){this.k=e,this.v=t}}function ds(e,t){return new fs(e,t)}function hs(e){return e.k}function ps(e){return e.v}class ms extends fs{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function _s(e,t,n,r,o){return new ms(e,t,n,r,o)}function ws(e){return e.left}function gs(e){return e.right}function ys(e){return e.h}function vs(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ms){const o=i;t=e(r+1,ws(o)),n=gs(o);continue e}return r+1|0}return 0|r}}(0,e)}function bs(e,t,n,r){let o,i,s;if(null!=e){const t=e;s=t instanceof ms?(o=t,ys(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof ms?(i=e,ys(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?ds(t,n):_s(t,n,e,r,c+1)}function Cs(e,t,n,r){let o,i,s,u,c,l,a,$,f;if(null!=e){const t=e;f=t instanceof ms?(o=t,ys(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof ms?(i=e,ys(i)):1}else d=0;if(d>f+2){const o=cn(r);if(o instanceof ms){const r=o;if(s=ws(r),(null!=s?(u=s,u instanceof ms?(c=u,ys(c)):1):0)>f+1){const o=cn(ws(r));if(o instanceof ms){const i=o;return bs(bs(e,t,n,ws(i)),hs(i),ps(i),bs(gs(i),hs(r),ps(r),gs(r)))}throw new Error("internal error: Map.rebalance")}return bs(bs(e,t,n,ws(r)),hs(r),ps(r),gs(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=cn(e);if(o instanceof ms){const e=o;if(l=gs(e),(null!=l?(a=l,a instanceof ms?($=a,ys($)):1):0)>d+1){const o=cn(gs(e));if(o instanceof ms){const i=o;return bs(bs(ws(e),hs(e),ps(e),ws(i)),hs(i),ps(i),bs(gs(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return bs(ws(e),hs(e),ps(e),bs(gs(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return bs(e,t,n,r)}function Ss(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,hs(o));if(o instanceof ms){const r=o;return i<0?Cs(Ss(e,t,n,ws(r)),hs(r),ps(r),gs(r)):0===i?_s(t,n,ws(r),gs(r),ys(r)):Cs(ws(r),hs(r),ps(r),Ss(e,t,n,gs(r)))}return i<0?_s(t,n,void 0,r,2):0===i?ds(t,n):_s(t,n,r,void 0,2)}return ds(t,n)}function Es(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,hs(s));if(0===u)return un(ps(s));if(s instanceof ms){const i=s;e=r,t=o,n=u<0?ws(i):gs(i);continue e}return}return}}function xs(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ms){const o=i;e(r,ws(o)),r(hs(o),ps(o)),t=r,n=gs(o);continue e}r(hs(i),ps(i))}break}}(e,t)}function Is(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof ms){const n=r,o=e(t,ws(n)),i=t(hs(n),ps(n)),s=e(t,gs(n));return _s(hs(n),i,o,s,ys(n))}return ds(hs(r),t(hs(r),ps(r)))}}(e,t)}function ks(e,t,n){let r=0|n;xs((e,n)=>{t[r]=[e,n],r+=1},e)}function Ns(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r],i=o[1];n=Ss(e,o[0],i,n)}return n}function Ps(e,t){if(r(t)){return Ns(e,t)}if(t instanceof Fn){return function(e,t){return Yn((t,n)=>{const r=n[0],o=n[1];return Ss(e,r,o,t)},void 0,t)}(e,t)}{const n=c(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"](),u=s[1];e=r,t=Ss(r,s[0],u,o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class As extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function Ts(e){e:for(;;){const t=e;if(zn(t))return Wn();{const n=Jn(t),r=Zn(t);if(null!=r){const o=r;if(o instanceof ms){const t=o;e=er([ws(t),ds(hs(t),ps(t)),gs(t)],n);continue e}return t}e=n;continue e}}}function Ms(e){return new As(Ts(qn(e)),!1)}function Ds(e){if(e.started){const t=e.stack;if(zn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Zn(t)){const e=Zn(t);if(e instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for current");return[hs(e),ps(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Os(e){let t=Ms(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ds(t),"System.Collections.IEnumerator.get_Current":()=>Ds(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(zn(t))return!1;if(null!=Zn(t)){const n=Zn(t),r=Jn(t);if(n instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ts(r),!zn(e.stack)}Jn(t);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!zn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ms(e)},Dispose(){}}}class Rs{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=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e[1],i=e[0];n=t(n,_(i)),n=t(n,_(o))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof Rs))return!1;{const t=e,n=c(this);try{const e=c(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&t()}return!0}return!1};return t()}finally{e.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+zt("; ",Ar(e=>Vt("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Os(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Os(this.tree)}CompareTo(e){const t=this;if(e instanceof Rs){return 0|function(e,t,n){const r=gr(t);try{const t=gr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=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{t.Dispose()}}finally{r.Dispose()}}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:S(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!!js(this,e[0])&&y(Fs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){ks(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Gs(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Gs(this)}get size(){return 0|Gs(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Ar(e=>[e[0],e[1]],this)}get(e){return Fs(this,e)}has(e){return js(this,e)}keys(){return Ar(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Ar(e=>e[1],this)}forEach(e,t){const n=this;Pr(t=>{e(t[1],t[0],n)},n)}}function Ls(e,t){return new Rs(e,t)}function Us(e){const t=lr();return Ls(t,Ps(t,e))}function Fs(e,t){return function(e,t,n){const r=Es(e,t,n);if(null==r)throw new Error;return cn(r)}(e.comparer,t,e.tree)}function Gs(e){return vs(e.tree)}function js(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,hs(s));if(s instanceof ms){const i=s;if(u<0){e=r,t=o,n=ws(i);continue e}if(0===u)return!0;e=r,t=o,n=gs(i);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function Hs(e,t,n){return function(e,t,n){return Ls(e.comparer,Ss(e.comparer,t,n,e.tree))}(n,e,t)}function Bs(e,t){return function(e,t){return Es(e.comparer,t,e.tree)}(t,e)}function Ws(e,t){return r=e,Ls((n=t).comparer,Is(r,n.tree));var n,r}function Vs(){return Rs.empty}(()=>{const e=lr();Rs.empty=Ls(e,void 0)})();class qs extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function zs(e){return q("Feliz.UseDeferred.Deferred`1",[e],qs,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function Zs(e,t){const n=es(is());Yi(()=>Zi(()=>{ss(n.current)}));return ns(r=>{var o;us(n.current)||as((o=r,Hr.Delay(()=>Hr.TryWith(Hr.Delay(()=>(t(new qs(1)),Hr.Bind(e(o),e=>(t(new qs(2,e)),Hr.Zero())))),e=>{const n=e;return console.log(un(n)),t(new qs(3,n)),Hr.Zero()}))),n.current)})}const Js=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",e=>{},e),window.removeEventListener("testPassiveEventSupport",e=>{})}}catch(e){}return!1})();function Xs(e){return $n(e=>e.passive&&!Js?{capture:e.capture,once:e.once,passive:!1}:e,e)}function Ys(e){return t=e=>e.capture?{capture:!0}:void 0,null!=(n=e)?t(cn(n)):void 0;var t,n}var Ks={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[de](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},Qs="[big.js] ",eu=Qs+"Invalid ",tu=eu+"decimal places",nu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function ru(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!nu.test(t+=""))throw Error(eu+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=ou(e,su.DP,su.RM)}function ou(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function iu(e,t,n,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?eu+"precision":tu);for(n=r-(e=new s(e)).e,e.c.length>++r&&ou(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==t)?"-"+i:i}Ks.abs=function(){var e=new this.constructor(this);return e.s=1,e},Ks.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(t=s<0,c!=l)return c>l^t?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(l=s<i.length?i[s]:0))return c>l^t?1:-1;return 0},Ks.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(tu);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var u,c,l,a,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,_=e,w=_.c=[],g=0,y=s+(_.e=n.e-e.e)+1;for(_.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(l=0;l<10;l++){if(u!=(m=p.length))a=u>m?1:-1;else for($=-1,a=0;++$<u;)if(o[$]!=p[$]){a=o[$]>p[$]?1:-1;break}if(!(a<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}w[g++]=a?l:++l,p[0]&&a?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return w[0]||1==g||(w.shift(),_.e--),g>y&&ou(_,s,t.RM,void 0!==p[0]),_},Ks.eq=function(e){return!this.cmp(e)},Ks.gt=function(e){return this.cmp(e)>0},Ks.gte=function(e){return this.cmp(e)>-1},Ks.lt=function(e){return this.cmp(e)<0},Ks.lte=function(e){return this.cmp(e)<1},Ks.minus=Ks.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var l=s.c.slice(),a=s.e,$=e.c,f=e.e;if(!l[0]||!$[0])return $[0]?(e.s=-c,e):new i(l[0]?s:0);if(u=a-f){for((o=u<0)?(u=-u,r=l):(f=a,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=l.length<$.length)?l:$).length,u=c=0;c<n;c++)if(l[c]!=$[c]){o=l[c]<$[c];break}if(o&&(r=l,l=$,$=r,e.s=-e.s),(c=(n=$.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>u;){if(l[--n]<$[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=$[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},Ks.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},Ks.plus=Ks.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,u=r.c,c=e.e,l=e.c;if(!u[0]||!l[0])return l[0]?e:new n(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,t=l):(o=-o,t=u),t.reverse();o--;)t.push(0);t.reverse()}for(u.length-l.length<0&&(t=l,l=u,u=t),o=l.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+l[o]+i)/10|0;for(i&&(u.unshift(i),++c),o=u.length;0===u[--o];)u.pop();return e.c=u,e.e=c,e},Ks.pow=function(e){var t=this.constructor,n=new t(this),r=new t(1),o=new t(1),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(eu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Ks.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(tu);return ou(new n(this),e,void 0===t?n.RM:t)},Ks.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(Qs+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{n=e,e=u.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return ou(e,r.DP-=4,r.RM)},Ks.times=Ks.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new n(0*e.s);for(e.e=c+l,s<u&&(t=o,o=i,i=t,l=s,s=u,u=l),t=new Array(l=s+u);l--;)t[l]=0;for(c=u;c--;){for(u=0,l=s+c;l>c;)u=t[l]+i[c]*o[l-c-1]+u,t[l--]=u%10,u=u/10|0;t[l]=(t[l]+u)%10}for(u?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Ks.toExponential=function(e){return iu(this,1,e,e)},Ks.toFixed=function(e){return iu(this,2,e,this.e+e)},Ks.toPrecision=function(e){return iu(this,3,e,e-1)},Ks.toString=function(){return iu(this)},Ks.valueOf=Ks.toJSON=function(){return iu(this,4)};var su=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=ou(e,28,0)).c.length>1&&!e.c[0]){let t=e.c.findIndex(e=>e);e.c=e.c.slice(t),e.e=e.e-t}}(r)):ru(r,n),r.constructor=t}return t.prototype=Ks,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),uu=su;new uu(0),new uu(1),new uu(-1),new uu("79228162514264337593543950335"),new uu("-79228162514264337593543950335");function cu(e,t){return 0===t.indexOf(e)?t:void 0}function lu(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function au(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s,u;return t=cu("/",e),null!=t?(n=t,"#"+n):(r=cu("#/",e),null!=r?(o=r,o):(i=cu("#",e),null!=i?(s=i,"#/"+Xt(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let t,n,r;return t=cu("/",e),null!=t?(n=t,n):(r=e,"/"+r)}}(t)(zt("/",ir(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function $u(e,t,n){1===t?history.pushState(void 0,"",au(e,n)):history.replaceState(void 0,"",au(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function fu(e,t){return function(e,t){const n=new Fn(null,void 0);let r=n,o=t;for(;null!=o.tail;){let t=e(Hn(o));for(;null!=t.tail;){const e=r,n=new Fn(Hn(t),void 0);e.tail=n,r=n,t=Bn(t)}o=Bn(o)}const i=r,s=new Fn(null,void 0);return i.tail=s,Bn(n)}(e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Wn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Mt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Wn();if(null!=cu("?",t))return qn(t);{const e=t.split("?");if(Rn(0,e,null)||1!==e.length){if(Rn(0,e,null)||2!==e.length)return Wn();if(""===e[1]){const t=e[0];return qn(decodeURIComponent(t))}{const t=e[0],n=e[1];return tr([decodeURIComponent(t),"?"+n])}}{const t=e[0];return qn(decodeURIComponent(t))}}}var t},tr(Jt(null!=cu("#",e)?Xt(e,1,e.length-1):1===t&&(null!=lu("#",e)||null!=lu("#/",e))?"":e,["/"],null,0)))}const du=qi(e=>{const t=ns(t=>{const n=an(e.onUrlChanged,e=>{});return function(e,t,n){return t(fu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|an(e.hashMode,1),n)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=ts(()=>Xs(r),[r]),i=ts(()=>Ys(r),[r]),s=ts(()=>e=>{n(e)},[n]);Ji(ns(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Zi(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}else{const e="popstate",n=t,r=void 0,o=ts(()=>Xs(r),[r]),i=ts(()=>Ys(r),[r]),s=ts(()=>e=>{n(e)},[n]);Ji(ns(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Zi(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=ts(()=>Xs(void 0),[void 0]),i=ts(()=>Ys(void 0),[void 0]),s=ts(()=>e=>{r(e)},[r]);Ji(ns(()=>{if(null==o)window.addEventListener(n,s);else{const e=o;window.addEventListener(n,s,e)}return Zi(()=>{if(null==i)window.removeEventListener(n,s);else{const e=i;window.removeEventListener(n,s,e)}})}));const u=e.application;return null==u?null:u},void 0,pu,hu);var hu,pu;class mu extends L{constructor(e,t,n,r,o,i,s){super(),this.StreamId=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s}}function _u(){return V("AccountRegistry.AdminUI.Types.Account",[],mu,()=>[["StreamId",rn()],["PartnerId",kn()],["Name",mn()],["Website",wn()],["ContactDetails",Sn()],["Notes",z(xn())],["LegalEntity",z(co())]])}function wu(e){return Vr(0,()=>hn(t=>{const n=t;return hn(t=>{const r=t;return hn(t=>{const o=t;return qr(0,no(e.ContactDetails),t=>{const i=t;return new mu(new nn(0,e.StreamId),n,r,o,i,ro(e.Notes),e.LegalEntity)})},Jr(e.Website))},zr(e.Name))},dn(e=>new In(0,e),Dr("PartnerId",e.PartnerId))))()}class gu extends L{constructor(e,t,n,r,o,i){super(),this.StreamId=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.Accounts=i}}function yu(){return V("AccountRegistry.AdminUI.Types.Partner",[],gu,()=>[["StreamId",rn()],["Name",mn()],["Website",wn()],["ContactDetails",Sn()],["Notes",z(xn())],["Accounts",zs(q("Microsoft.FSharp.Core.FSharpResult`2",[Z(_u()),X],fn,()=>[[["ResultValue",Z(_u())]],[["ErrorValue",X]]]))]])}class vu extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerList","Partner","PartnerAccountList","Account","NotFound"]}}function bu(){return q("AccountRegistry.AdminUI.Types.Page",[],vu,()=>[[],[["Item",kn()]],[["Item",kn()]],[["Item1",kn()],["Item2",q("BasicModels.AccountId",[],Nn,()=>[[["Item",X]]])]],[]])}function Cu(e){let t,n,r,o,i;switch(zn(e)?t=4:"account-registry"===Zn(e)?zn(Jn(e))?t=4:"partners"===Zn(Jn(e))?zn(Jn(Jn(e)))?t=0:zn(Jn(Jn(Jn(e))))?(t=1,n=Zn(Jn(Jn(e)))):"accounts"===Zn(Jn(Jn(Jn(e))))?zn(Jn(Jn(Jn(Jn(e)))))?(t=2,r=Zn(Jn(Jn(e)))):zn(Jn(Jn(Jn(Jn(Jn(e))))))?(t=3,o=Zn(Jn(Jn(Jn(Jn(e))))),i=Zn(Jn(Jn(e)))):t=4:t=4:t=4:t=4,t){case 0:return new vu(0);case 1:return new vu(1,new In(0,n));case 2:return new vu(2,new In(0,r));case 3:return new vu(3,new In(0,i),new Nn(0,o));case 4:return new vu(4)}}function Su(e){switch(e.tag){case 1:return tr(["account-registry","partners",io(e.fields[0])]);case 2:return tr(["account-registry","partners",io(e.fields[0]),"accounts"]);case 3:{const t=e.fields[0],n=e.fields[1];return tr(["account-registry","partners",io(t),"accounts",so(n)])}default:return tr(["account-registry","partners"])}}function Eu(e){switch(e.tag){case 1:{const t=["account-registry","partners",io(e.fields[0])];return qn(e=>{$u(tr(t),1,1)})}case 2:{const t=["account-registry","partners",io(e.fields[0]),"accounts"];return qn(e=>{$u(tr(t),1,1)})}case 3:{const t=e.fields[0],n=e.fields[1],r=["account-registry","partners",io(t),"accounts",so(n)];return qn(e=>{$u(tr(r),1,1)})}default:{const e=["account-registry","partners"];return qn(t=>{$u(tr(e),1,1)})}}}class xu extends L{constructor(e){super(),this.Partners=e}}function Iu(){return V("AccountRegistry.AdminUI.Types.Data",[],xu,()=>[["Partners",Z(yu())]])}function ku(){return Wn()}class Nu extends L{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Pu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Pu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}wt(2013265921,0,!1),wt(2013265921,0,!0);Dn(28,e=>Pu(2,e),Int32Array);function Au(e){return e.bound}function Tu(e,t){return e.digits[t]}function Mu(e,t){return vt(Tu(e,t),!1,2)}function Du(e,t,n){e.digits[t]=n}function Ou(e,t){for(;;){const n=e,r=t;if(0===r)return wt(1,0,!1);if(r%2!=0)return ft(n,Ou(ft(n,n),~~(r/2)));e=ft(n,n),t=~~(r/2)}}function Ru(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Ru(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const Lu=wt(16777216,0,!1),Uu=wt(16777215,0,!1);wt(16777215,0,!0);function Fu(e){return new Nu(e,new Int32Array(e))}function Gu(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=t,e}function ju(e){const t=0|(e<0?0:e);if(t<16777216){const e=Fu(1);return e.digits[0]=t,Gu(e)}{const e=Fu(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/Ru(16777216,n))%16777216;return Gu(e)}}const Hu=ju(1),Bu=ju(0);function Wu(e){return e.bound-1}function Vu(e){return 0===e.bound}function qu(e,t){if(e.bound===t.bound){return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}return!1}function zu(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}function Zu(e,t){return-1===zu(e,t)}function Ju(e,t,n){for(;;){const r=e,o=t,i=n;if(!(_t(o,wt(0,0,!1))>0))break;{const s=$t(Mu(r,i),o);Du(r,i,~~gt(mt(s,Uu))),e=r,t=dt(s,Lu),n=i+1}}}function Xu(e,t){const n=0|Au(e),r=Fu(n+1|0),o=vt(t,!1,2);let i=wt(0,0,!1);for(let t=0;t<=n-1;t++){const n=$t($t(i,Mu(r,t)),ft(Mu(e,t),o));Du(r,t,~~gt(mt(n,Uu))),i=dt(n,Lu)}return Ju(r,i,n),Gu(r)}function Yu(e,t){const n=1===Au(e),r=1===Au(t);return n&&r?function(e,t){const n=Fu(2),r=ft(vt(e,!1,2),vt(t,!1,2));return Du(n,0,~~gt(mt(r,Uu))),Du(n,1,~~gt(dt(r,Lu))),Gu(n)}(Tu(e,0),Tu(t,0)):n?Xu(t,Tu(e,0)):r?Xu(e,Tu(t,0)):function(e,t){const n=Fu(e.bound+t.bound|0),r=n.digits,o=e.digits,i=t.digits;for(let s=0;s<=e.bound-1;s++){const e=vt(o[s],!1,2);let u=wt(0,0,!1),c=0|s;for(let n=0;n<=t.bound-1;n++){const t=vt(i[n],!1,2),o=$t($t(vt(r[c],!1,2),u),ft(e,t));r[c]=~~gt(mt(o,Uu)),u=dt(o,Lu),c+=1}Ju(n,u,c)}return Gu(n)}(e,t)}class Ku extends L{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function Qu(e,t,n,r){return new Ku(e,Ru(2,e),t,n,r,~~(24/e),Dn(~~(24/e),t=>Ru(2,e*t),Int32Array))}const ec=[Qu(1,28,268435456,268435456),Qu(2,26,67108864,134217728),Qu(3,24,16777216,50331648),Qu(4,22,4194304,16777216),Qu(5,20,1048576,5242880),Qu(6,18,262144,1572864),Qu(7,16,65536,458752),Qu(8,14,16384,131072),Qu(9,12,4096,36864),Qu(10,10,1024,10240),Qu(11,8,256,2816),Qu(12,6,64,768),Qu(13,4,16,208)];Dn(24,e=>Ru(2,e)-1,Int32Array),Dn(24,e=>Ru(2,e),Int32Array),Dn(24,e=>Ou(wt(2,0,!1),e));ec[0].bigN;function tc(e,t){return Yu(e,t)}function nc(e,t,n,r){const o=e,i=[e.digits,Wu(e)],s=0|i[1],u=i[0],c=[n.digits,Wu(n)],l=0|c[1],a=c[0],$=vt(t,!1,2);let f=0,d=ft($,vt(a[0],!1,2));for(;_t(d,wt(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~gt(mt(d,Uu)),t=dt(d,Lu);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),t=$t(t,wt(1,0,!1))),d=f<l?$t(t,ft($,vt(a[f+1],!1,2))):t,f+=1}Gu(o)}function rc(e,t,n,r){const o=e,i=[e.digits,Wu(e)],s=0|i[1],u=i[0],c=[n.digits,Wu(n)],l=0|c[1],a=c[0],$=vt(t,!1,2);let f=0,d=ft($,vt(a[0],!1,2));for(;_t(d,wt(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~gt(mt(d,Uu)),t=dt(d,Lu);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),t=$t(t,wt(1,0,!1))),d=f<l?$t(t,ft($,vt(a[f+1],!1,2))):t,f+=1}Gu(o)}function oc(e,t,n){const r=[Wu(t),Wu(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],s=r[1],u=r[0];let c;if(0===i)if(o===n)c=~~(s[n]/u[0]);else{const e=dt($t(ft(vt(s[o],!1,2),Lu),vt(s[o-1],!1,2)),vt(u[0],!1,2));c=~~gt(e)}else if(o===i+n)c=~~(s[o]/(u[i]+1));else{const e=dt($t(ft(vt(s[o],!1,2),Lu),vt(s[o-1],!1,2)),$t(vt(u[i],!1,2),wt(1,0,!1)));c=~~gt(e)}if(0===c){return 1!==function(e,t,n,r){return e.bound+t<n.bound+r?-1:e.bound+t>n.bound+t?1:0|((e,n,o)=>{e:for(;;){const i=e,s=n,u=o;if(-1===u)return 0;{const c=0|(u<t?0:i[u-t]),l=0|(u<r?0:s[u-r]);if(c===l){e=i,n=s,o=u-1;continue e}return c<l?-1:1}}})(e.digits,n.digits,e.bound+t-1)}(t,n,e,0)?1:0}return 0|c}}function ic(e,t){if(Vu(t))throw new Error;if(Wu(e)<Wu(t))return[Bu,e];{const n=function(e){return new Nu(e.bound,e.digits.slice())}(e),r=Fu(Wu(e)-Wu(t)+1+1);let o=0|Wu(e);const i=0|Wu(t);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,n,s,o]);const e=0|oc(n,t,s);e>0?(nc(n,e,t,s),rc(r,e,Hu,s),u([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,n,s-1,o]),s-=1):(u([r,n,s-1,o-1]),s-=1,o-=1)))}return[Gu(r),Gu(n)]}}ju(2);function sc(e){return ju(e)}function uc(e){return function(e){const t=_t(e,wt(0,0,!1))<0?wt(0,0,!1):e,n=Fu(3);for(let e=0;e<=2;e++)n.digits[e]=~~gt(ht(dt(t,Ou(Lu,e)),Lu));return Gu(n)}(e)}function cc(e){const t=0|Wu(e),n=((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(Wu(s)>t)return Vn([i,s],o);e=Vn([i,s],o),n=i+1,r=tc(s,s)}})(Wn(),0,ju(10)),r=(e,t,n,o)=>{if(zn(o)){const r=0|function(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+16777216*t;return 0|t}}(n);return e&&0===r?t:Vn(f(r),t)}{const i=Zn(o)[1],s=Jn(o),u=ic(n,i),c=u[1],l=u[0];if(e&&Vu(l)){return r(e,t,c,s)}{const n=r(!1,t,c,s);return r(e,n,l,s)}}},o=n,i=r(!0,Wn(),e,o);return zn(i)?"0":zt("",Xn(i))}function lc(e){return e.bound<=1}function ac(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class $c extends L{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|hc(e)){case-1:return Vu(pc(e))?"0":"-"+cc(pc(e));case 0:return"0";case 1:return cc(pc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof $c){return mc(this,e)}return!1}GetHashCode(){return 0|(0===hc(e=this)?1:hc(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(pc(e))|0);var e}CompareTo(e){if(e instanceof $c){return 0|function(e,t){return _c(e,t)?-1:mc(e,t)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function fc(e,t){return new $c(e,t)}function dc(e){return lc(e)&&ac(e)<$c.smallLim?$c.smallPosTab[ac(e)]:e}function hc(e){return e.signInt}function pc(e){return e.v}function mc(e,t){const n=[hc(e),hc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return qu(pc(e),pc(t));case 2:case 3:return!!Vu(pc(e))&&Vu(pc(t));case 4:return!0;case 5:case 6:return Vu(pc(t));case 7:case 8:return Vu(pc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function _c(e,t){const n=[hc(e),hc(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return Zu(pc(e),pc(t));case 1:return Zu(pc(t),pc(e));case 2:return!1;case 3:return!Vu(pc(e))||!Vu(pc(t));case 4:return!1;case 5:return!Vu(pc(t));case 6:case 7:return!1;case 8:return!Vu(pc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function wc(e){return e>=0?fc(1,dc(sc(e))):fc(-1,dc(-2147483648===e?uc(pt(vt(e,!1,2))):sc(fe(e))))}function gc(){return $c.one}function yc(){return $c.two}function vc(){return $c.zero}$c.smallLim=4096,$c.smallPosTab=Dn($c.smallLim,e=>sc(e)),$c.one=wc(1),$c.two=wc(2),$c.zero=wc(0);vc(),gc(),yc();vc(),gc();class bc{constructor(){}}function Cc(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(y(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const Sc=new bc;class Ec extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class xc{constructor(e){this.state=new Ec(0,Tn(new Array(E((e,t)=>b(e,t),e,10)),0,E((e,t)=>b(e,t),e,10),null),0)}}function Ic(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 Ec(0,o,n):new Ec(1,o,n,i),un(o[r])}}function kc(e,t,n){const r=es(e[0]),o=es(new xc(10));const s=rs(e[0]),u=s[1],c=s[0];let l;const a=es(is()),$=es(a.current);Yi(()=>Zi(()=>{ss(a.current)})),l=$;const f=()=>{setTimeout(()=>{let e;e=l.current,us(e)||u(r.current)},0)},d=e=>{var n;(n=Cc(0,()=>{let n=un(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Sc,()=>{let e;return null!=n&&(e=l.current,!us(e))},Cc(0,()=>{const e=cn(n),i=t(e,r.current),s=i[0];return Qn(e=>{e(d)},i[1]),n=Ic(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},h=ns(d);var p;return Xi(()=>Zi(()=>{let e,t;Pr(e=>{e.Dispose()},ln((e=r.current,i(e)?(t=e,t):void 0)))}),n),Ki(()=>{r.current=e[0],f(),Qn(e=>{e(h)},e[1])},n),p=()=>{Pr(h,ln(Ic(o.current)))},Bi(e=>(p(),Zi(()=>{}))),[c,h]}class Nc{constructor(){}}function Pc(e,t){return Hr.Delay(t)}new Nc;class Ac extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Tc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Mc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Dc extends L{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class Oc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Rc extends L{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const Lc=new Dc("",new Ac(0),Wn(),!1,void 0,void 0,new Mc(0));new Rc(0,"","",Vs(),new Oc(0,""));function Uc(e,t){return qt(t)?[t]:Jt(t,[e],null,0)}function Fc(e){return new Dc(e,Lc.method,Lc.headers,Lc.withCredentials,Lc.overridenMimeType,Lc.overridenResponseType,Lc.content)}function Gc(e,t){return new Dc(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function jc(e){return ls(t=>{const n=t[0],r=(t[1],new XMLHttpRequest);r.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),r.onreadystatechange=()=>{let e,t,o,i,s,u;4===r.readyState&&n((t=r.responseType,e=""===t||"text"===t?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new Oc(0,r.responseText):new Oc("arraybuffer"===u?2:"blob"===u?1:3,r.response),new Rc(o,e,i,function(e){const t=lr();return Ls(t,Ns(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=cn(o);r.push(e)}}return"function"==typeof n?Mn(e=>e,r,n):r}(e=>{const t=tr(Uc(":",e));if(!zn(t)){const e=Jn(t);return[Zn(t).toLocaleLowerCase(),zt(":",e).trim()]}},Uc("\r\n",r.getAllResponseHeaders()))),s)))};const o=c(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"](),t=e.fields[1],n=e.fields[0];r.setRequestHeader(n,t)}}finally{o.Dispose()}r.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;r.overrideMimeType(e)}const s=e.overridenResponseType;null==s||(1===s.tag?r.responseType="blob":2===s.tag?r.responseType="arraybuffer":r.responseType="text");const u=[e.method,e.content];if(0===u[0].tag)r.send(un(void 0));else if(1===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else if(3===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else if(2===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else r.send(un(void 0))})}function Hc(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(zn(i))return r;{const s=Jn(i),u=Zn(i),c=Vr(0,()=>hn(e=>{const t=e;return qr(0,r,e=>rr(e,qn(t)))},o(u)))();if(1===c.tag)return c;e=c,t=o,n=s;continue e}}}(new fn(0,Wn()),e,t)}function Bc(e){return Hc(e=>e,e)}class Wc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Vc extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class qc{constructor(){this.cache=new Map([])}}function zc(){return new qc}zc(),zc();function Zc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Jc(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Tt(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=Dt(e,s),c=Dt.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(Zc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Zc(t)}}function Xc(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function Yc(e,t){try{return t.contents=function(e){const t=Pt(e),n=bt.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return Xc(t.getTime(),r)}(e),!0}catch(e){return!1}}function Kc(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Qc(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 Qc(e){return yt(dt(e,1e4))}function el(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 Kc(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*Kc(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class tl{constructor(e){this.k=e}}function nl(e){return new tl(e)}function rl(e){return e.k}class ol extends tl{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function il(e,t,n,r){return new ol(e,t,n,r)}function sl(e){return e.left}function ul(e){return e.right}function cl(e){return e.h}function ll(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof ol){const r=i;t=sl(r),n=e(ul(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function al(e,t,n){let r,o,i;if(null!=e){const t=e;i=t instanceof ol?(r=t,cl(r)):1}else i=0;let s;if(null!=n){const e=n;s=e instanceof ol?(o=e,cl(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?nl(t):il(t,e,n,u+1)}function $l(e,t,n){let r,o,i,s,u,c,l,a,$;if(null!=e){const t=e;$=t instanceof ol?(r=t,cl(r)):1}else $=0;let f;if(null!=n){const e=n;f=e instanceof ol?(o=e,cl(o)):1}else f=0;if(f>$+2){const r=cn(n);if(r instanceof ol){const n=r;if(i=sl(n),(null!=i?(s=i,s instanceof ol?(u=s,cl(u)):1):0)>$+1){const r=cn(sl(n));if(r instanceof ol){const o=r;return al(al(e,t,sl(o)),rl(o),al(ul(o),rl(n),ul(n)))}throw new Error("internal error: Set.rebalance")}return al(al(e,t,sl(n)),rl(n),ul(n))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=cn(e);if(r instanceof ol){const e=r;if(c=ul(e),(null!=c?(l=c,l instanceof ol?(a=l,cl(a)):1):0)>f+1){const r=cn(ul(e));if(r instanceof ol){const o=r;return al(al(sl(e),rl(e),sl(o)),rl(o),al(ul(o),t,n))}throw new Error("internal error: Set.rebalance")}return al(sl(e),rl(e),al(ul(e),t,n))}throw new Error("internal error: Set.rebalance")}return al(e,t,n)}function fl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,rl(r));if(r instanceof ol){const i=r;return o<0?$l(fl(e,t,sl(i)),rl(i),ul(i)):0===o?n:$l(sl(i),rl(i),fl(e,t,ul(i)))}{const o=0|e.Compare(t,rl(r));return o<0?il(t,void 0,n,2):0===o?n:il(t,n,void 0,2)}}return nl(t)}function dl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,rl(s));if(s instanceof ol){const i=s;if(u<0){e=r,t=o,n=sl(i);continue e}if(0===u)return!0;e=r,t=o,n=ul(i);continue e}return 0===u}return!1}}function hl(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof ol){const r=o;hl(n,sl(r)),n(rl(r)),e=n,t=ul(r);continue e}n(rl(o))}break}}class pl extends L{constructor(e,t){super(),this.stack=e,this.started=t}}function ml(e){e:for(;;){const t=e;if(zn(t))return Wn();{const n=Zn(t),r=Jn(t);if(null!=n){const o=n;if(o instanceof ol){const t=o;e=er([sl(t),nl(rl(t)),ul(t)],r);continue e}return t}e=r;continue e}}}function _l(e){return new pl(ml(qn(e)),!1)}function wl(e){if(e.started){const t=e.stack;if(zn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Zn(t)){return rl(Zn(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function gl(e){let t=_l(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>wl(t),"System.Collections.IEnumerator.get_Current":()=>wl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(zn(t))return!1;if(null!=Zn(t)){const n=Jn(t);if(Zn(t)instanceof ol)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=ml(n),!zn(e.stack)}Jn(t);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!zn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=_l(e)},Dispose(){}}}function yl(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(zn(s[0]))return zn(s[1])?0:-1;if(zn(s[1]))return 1;if(null!=Zn(s[1]))if(null!=Zn(s[0])){const u=Jn(s[0]),c=Jn(s[1]),l=Zn(s[0]),a=Zn(s[1]);if(l instanceof ol){const s=l;if(null==sl(s)){if(!(a instanceof ol)){const o=0|r.Compare(rl(s),rl(a));if(0!==o)return 0|o;e=r,t=Vn(ul(s),u),n=Vn(void 0,c);continue e}{const l=a;if(null==sl(l)){const o=0|r.Compare(rl(s),rl(l));if(0!==o)return 0|o;e=r,t=Vn(ul(s),u),n=Vn(ul(l),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(zn(s[0])?zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2:null!=Zn(s[0])?(u=0,c=Jn(s[0]),l=Zn(s[0])):zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2,u){case 0:if(l instanceof ol){const o=l;e=r,t=er([sl(o),il(rl(o),void 0,ul(o),0)],c),n=i;continue e}e=r,t=er([void 0,nl(rl(l))],c),n=i;continue e;case 1:if($ instanceof ol){const i=$;e=r,t=o,n=er([sl(i),il(rl(i),void 0,ul(i),0)],a);continue e}e=r,t=o,n=er([void 0,nl(rl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,l,a,$;switch(zn(s[0])?zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2:null!=Zn(s[0])?(u=0,c=Jn(s[0]),l=Zn(s[0])):zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2,u){case 0:if(l instanceof ol){const o=l;e=r,t=er([sl(o),il(rl(o),void 0,ul(o),0)],c),n=i;continue e}e=r,t=er([void 0,nl(rl(l))],c),n=i;continue e;case 1:if($ instanceof ol){const i=$;e=r,t=o,n=er([sl(i),il(rl(i),void 0,ul(i),0)],a);continue e}e=r,t=o,n=er([void 0,nl(rl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(a instanceof ol)){const o=0|r.Compare(rl(l),rl(a));if(0!==o)return 0|o;e=r,t=u,n=c;continue e}{const s=a;if(null==sl(s)){const o=0|r.Compare(rl(l),rl(s));if(0!==o)return 0|o;e=r,t=Vn(void 0,u),n=Vn(ul(s),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(zn(s[0])?zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2:null!=Zn(s[0])?(u=0,c=Jn(s[0]),l=Zn(s[0])):zn(s[1])?u=2:null!=Zn(s[1])?(u=1,a=Jn(s[1]),$=Zn(s[1])):u=2,u){case 0:if(l instanceof ol){const o=l;e=r,t=er([sl(o),il(rl(o),void 0,ul(o),0)],c),n=i;continue e}e=r,t=er([void 0,nl(rl(l))],c),n=i;continue e;case 1:if($ instanceof ol){const i=$;e=r,t=o,n=er([sl(i),il(rl(i),void 0,ul(i),0)],a);continue e}e=r,t=o,n=er([void 0,nl(rl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{Jn(s[0]),Jn(s[1]),Zn(s[1]);const u=[o,i];let c,l,a,$,f;switch(zn(u[0])?zn(u[1])?c=2:null!=Zn(u[1])?(c=1,$=Jn(u[1]),f=Zn(u[1])):c=2:null!=Zn(u[0])?(c=0,l=Jn(u[0]),a=Zn(u[0])):zn(u[1])?c=2:null!=Zn(u[1])?(c=1,$=Jn(u[1]),f=Zn(u[1])):c=2,c){case 0:if(a instanceof ol){const o=a;e=r,t=er([sl(o),il(rl(o),void 0,ul(o),0)],l),n=i;continue e}e=r,t=er([void 0,nl(rl(a))],l),n=i;continue e;case 1:if(f instanceof ol){const i=f;e=r,t=o,n=er([sl(i),il(rl(i),void 0,ul(i),0)],$);continue e}e=r,t=o,n=er([void 0,nl(rl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Zn(s[0])){e=r,t=Jn(s[0]),n=Jn(s[1]);continue e}{Jn(s[0]),Jn(s[1]),Zn(s[0]);const u=[o,i];let c,l,a,$,f;switch(zn(u[0])?zn(u[1])?c=2:null!=Zn(u[1])?(c=1,$=Jn(u[1]),f=Zn(u[1])):c=2:null!=Zn(u[0])?(c=0,l=Jn(u[0]),a=Zn(u[0])):zn(u[1])?c=2:null!=Zn(u[1])?(c=1,$=Jn(u[1]),f=Zn(u[1])):c=2,c){case 0:if(a instanceof ol){const o=a;e=r,t=er([sl(o),il(rl(o),void 0,ul(o),0)],l),n=i;continue e}e=r,t=er([void 0,nl(rl(a))],l),n=i;continue e;case 1:if(f instanceof ol){const i=f;e=r,t=o,n=er([sl(i),il(rl(i),void 0,ul(i),0)],$);continue e}e=r,t=o,n=er([void 0,nl(rl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,qn(t),qn(n))}function vl(e,t,n){let r=0|n;hl(e=>{t[r]=e,r+=1},e)}function bl(e,t){return On((t,n)=>fl(e,n,t),void 0,t)}function Cl(e,t){if(r(t)){return bl(e,t)}if(t instanceof Fn){return function(e,t){return Yn((t,n)=>fl(e,n,t),void 0,t)}(e,t)}{const n=c(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=fl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Sl{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=c(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();r=t,o=_(e),t=(r<<1)+o+631}}finally{n.Dispose()}var r,o;return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof Sl&&(t=e,0===yl(xl(this),Il(this),Il(t)))}toString(){return"set ["+zt("; ",Ar(e=>P(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|yl(xl(this),Il(this),Il(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 dl(xl(this),e,Il(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){vl(Il(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|kl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|kl(this)}GetEnumerator(){return gl(Il(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return gl(Il(this))}get size(){return 0|kl(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 Nl(this,e)}keys(){return Ar(e=>e,this)}values(){return Ar(e=>e,this)}entries(){return Ar(e=>[e,e],this)}forEach(e,t){const n=this;Pr(t=>{e(t,t,n)},n)}}function El(e,t){return new Sl(e,t)}function xl(e){return e.comparer}function Il(e){return e.tree}function kl(e){return ll(Il(e))}function Nl(e,t){return dl(xl(e),t,Il(e))}function Pl(e,t){return El(t,Cl(t,e))}function Al(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 Tl(e,t){let n;switch(t.tag){case 2:{const e=t.fields[1];n=Al(t.fields[0],e,!0);break}case 1:{const e=t.fields[1],r=t.fields[2];n=Al(t.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=t.fields[1];n=Al(t.fields[0],e,!0);break}case 4:{const e=t.fields[1],r=t.fields[0],o=t.fields[2];n=Al(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=t.fields[1];n="Expecting "+t.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:n="The following errors were found:\n\n"+zt("\n\n",t.fields[0]);break;case 6:n="The following `failure` occurred with the decoder: "+t.fields[0];break;default:{const e=t.fields[1];n=Al(t.fields[0],e,!1)}}return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Ml(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new fn(1,Tl(e[0],e[1]))}{const e=r.fields[0];return new fn(0,e)}}function Dl(e,t){let n;try{return Ml("$",e,JSON.parse(t))}catch(e){if(n=e,n instanceof SyntaxError){return new fn(1,"Given an invalid JSON: "+e.message)}throw e}}const Ol=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new fn(0,(e+128&255)-128):new fn(1,[n,new Wc(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new fn(1,[n,new Wc(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!1,8,new U(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[n,new Wc(0,"a sbyte",r)])}return new fn(1,[n,new Wc(0,"a sbyte",r)])},Rl=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new fn(0,255&e):new fn(1,[n,new Wc(1,"a byte",e,"Value was either too large or too small for a byte")]):new fn(1,[n,new Wc(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!0,8,new U(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[n,new Wc(0,"a byte",r)])}return new fn(1,[n,new Wc(0,"a byte",r)])},Ll=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 fn(0,(e+32768&65535)-32768):new fn(1,[r,new Wc(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new Wc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!1,16,new U(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[r,new Wc(0,n,o)])}return new fn(1,[r,new Wc(0,n,o)])},Ul=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 fn(0,65535&e):new fn(1,[r,new Wc(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new Wc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!0,16,new U(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[r,new Wc(0,n,o)])}return new fn(1,[r,new Wc(0,n,o)])},Fl=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new fn(0,~~e):new fn(1,[n,new Wc(1,"an int",e,"Value was either too large or too small for an int")]):new fn(1,[n,new Wc(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!1,32,new U(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[n,new Wc(0,"an int",r)])}return new fn(1,[n,new Wc(0,"an int",r)])},Gl=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 fn(0,e>>>0):new fn(1,[r,new Wc(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new Wc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!0,32,new U(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[r,new Wc(0,n,o)])}return new fn(1,[r,new Wc(0,n,o)])};function jl(e,t){if("string"==typeof t){let r,o=Nt(-621355968e5,0);if(r=[At(t,new U(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new fn(0,1===(n=e).kind?n:Nt(n.getTime(),1))}return new fn(1,[e,new Wc(0,"a datetime",t)])}return new fn(1,[e,new Wc(0,"a datetime",t)]);var n}function Hl(e,t){if("string"==typeof t){let n,r=Xc(-621355968e5,0);if(n=[Yc(t,new U(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new Wc(0,"a datetimeoffset",t)])}return new fn(1,[e,new Wc(0,"a datetime",t)])}function Bl(e,t,n,r){let o;const i=n+".["+f(e)+"]";if(Array.isArray(r)){const n=r;if(e<n.length)return t(i,n[e]);{const t="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|n.length,f(o)+"` entries");return new fn(1,[i,new Wc(5,t,r)])}}return new fn(1,[i,new Wc(0,"an array",r)])}function Wl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return dn(e=>Kn(e),On((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new fn(0,Vn(e,i))}{const e=s.fields[0];return new fn(1,e)}}return n},new fn(0,Wn()),o))}return new fn(1,[t,new Wc(0,"a list",n)])}function Vl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n,i=Tn(new Array(o.length),0,o.length,null);return On((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new fn(0,i)}{const e=s.fields[0];return new fn(1,e)}}return n},new fn(0,i),o)}return new fn(1,[t,new Wc(0,"an array",n)])}function ql(e,t,n){return new fn(0,e)}function zl(e,t,n,r){const o=t(n,r);if(0===o.tag){return e(o.fields[0],n,r)}{const e=o.fields[0];return new fn(1,e)}}function Zl(e,t,n,r){const o=t(n,r);if(1===o.tag){const e=o.fields[0];return new fn(1,e)}{const t=o.fields[0];return new fn(0,e(t))}}function Jl(e,t){let n;const r=e;return n=e=>t=>Bl(0,r,e,t),e=>r=>zl(I(3,e=>{let n;const r=t;return n=e=>t=>Bl(1,r,e,t),t=>r=>zl((t,n,r)=>ql([e,t]),I(2,n),t,r)}),I(2,n),e,r)}function Xl(e){return Us(e)}function Yl(e,t,n,r){let o,i;return t.length!==r.length?new fn(1,[n,new Wc(6,(o=0|r.length,i=0|t.length,Ht(Ft("Expected %i %s but got %i"))(i)(e)(o)))]):Un(I(3,N(e=>t=>r=>{if(0===r.tag){const o=r.fields[0];return dn(e=>Vn(e,o),t(n,e))}return r},[0,[0,2],0])),r,t,new fn(0,Wn()))}function Kl(e,t,n,r,o,i){const s=(u=e=>Y(e)===r,oe(n).find(u));var u;if(null!=s){const n=s;if(0===i.length)return new fn(0,ue(n,[]));return dn(e=>ue(n,Xn(e)),Yl("union fields",Mn(n=>ea(e,t,!1,n[1]),function(e){return null==e.fields?[]:e.fields}(n)),o,i))}return new fn(1,[o,new Wc(6,"Cannot find case "+r+" in "+K(n))])}function Ql(e,t,n,r){const o=new U(null),i=Hs(K(r),o,e);let s;if(function(e){return e instanceof G?null!=e.fields:e instanceof L}(r)){const e=Mn(e=>[Jc(t,Y(e)),ea(i,t,!1,e[1])],ie(r));s=t=>n=>dn(e=>function(e,t){const n=ie(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,Xn(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new fn(1,[t,new Wc(0,"an object",n)]):Ln(I(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return dn(e=>Vn(e,i),o(t+"."+r)(n[r]))}return e}}),e,new fn(0,Wn()))}(e,t,n))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof A}(r))s=e=>n=>{if("string"==typeof n){return Kl(i,t,r,n,e,[])}if(Array.isArray(n)){const o=n,s=o[0];return Kl(i,t,r,s,e,o.slice(1,o.length))}return new fn(1,[e,new Wc(0,"a string or array",n)])};else{if(!n){let e;const t=K(r);throw e=Ht(Ft("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new fn(1,[e,new Wc(2,"an extra coder for "+K(r),t)])}return o.contents=s,s}function ea(e,t,n,r){let o;const i=K(r),s=Bs(i,e);if(null==s){if(Q(r)){const n=ea(e,t,!1,function(e){var t;return Q(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}(r));return e=>t=>Vl(I(2,n),e,t)}if(ee(r)){const e=K(function(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=Ol(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=Rl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Ll(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Ul(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Fl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,f(e))):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Gl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return kr(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new Wc(1,K(n),i,"Unkown value provided for the enum")])}};{const e=K(r),t=jt(e=>{throw new Error(e)},Ft("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{const n=t(e);return e=>n(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const n=Mn(n=>ea(e,t,!1,n),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>t=>Array.isArray(t)?dn(e=>Xn(e),Yl("tuple elements",n,e,t)):new fn(1,[e,new Wc(0,"an array",t)])}{const i=K(function(e){return null==e.generics?e:new G(e.fullname,e.generics.map(()=>J))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=ea(e,t,!0,j(r)[0]);return e=>t=>{return r=I(2,n),o=e,null==(i=t)?new fn(0,void 0):dn(e=>un(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=ea(e,t,!1,j(r)[0]);return e=>t=>Wl(I(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=ea(e,t,!1,j(r)[0]),i=ea(e,t,!1,j(r)[1]);let s;const u=tr([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new fn(1,[n,new Wc(0,"an object",r)]):Nr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(n,i);if(0===u.tag){const e=u.fields[0],o=t(n+"."+i,r[i]);if(0===o.tag){const t=o.fields[0];return new fn(0,Vn([e,t],s))}{const e=o.fields[0];return new fn(1,e)}}{const e=u.fields[0];return new fn(1,e)}}return o},new fn(0,Wn()),Object.keys(r))}(I(2,n),I(2,i),e,t),(o=Jl(I(2,n),I(2,i)),e=>t=>Wl(I(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(zn(o))return new fn(1,[n,new Wc(7,i)]);{const s=Jn(o),u=Zn(o),c=Ml(n,I(2,u),r);if(1===c.tag){e=s,t=rr(i,qn(c.fields[0]));continue e}{const e=c.fields[0];return new fn(0,e)}}}})(u,Wn());var n,r},e=>t=>Zl(e=>Xl(e),I(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=ea(e,t,!1,j(r)[0]);return e=>t=>{const r=Vl(I(2,n),e,t);if(0===r.tag){const e=r.fields[0];return new fn(0,Pl(e,{Compare:(e,t)=>S(e,t)}))}{const e=r.fields[0];return new fn(1,e)}}}return Ql(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new fn(0,r):new fn(1,[n,new Wc(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new fn(0,void 0):new fn(1,[n,new Wc(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new fn(0,r):new fn(1,[n,new Wc(0,"a string",r)]);var n,r}:"System.SByte"===i?Ol:"System.Byte"===i?Rl:"System.Int16"===i?Ll:"System.UInt16"===i?Ul:"System.Int32"===i?Fl:"System.UInt32"===i?Gl:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new fn(0,r):new fn(1,[n,new Wc(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new fn(0,r):new fn(1,[n,new Wc(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>jl(e,t):"System.DateTimeOffset"===i?e=>t=>Hl(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;if(n=[el(t,new U(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new Wc(0,"a timespan",t)])}return new fn(1,[e,new Wc(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";if(n=[tn(t,new U(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new Wc(0,"a guid",t)])}return new fn(1,[e,new Wc(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new fn(0,e):Ql(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function ta(e){if(null!=e){return Ws((e,t)=>{const n=t[1];return new U(n)},e.Coders)}return Vs()}function na(e,t,n){const r=an(e,new Vc(0)),o=cn(n).ResolveType();return ea(ta(t),r,!1,o)}function ra(e,t,n,r){return Dl(I(2,na(t,n,r)),e)}class oa extends L{constructor(e,t,n,r,o){super(),this.StreamId=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o}}class ia extends L{constructor(e,t,n,r,o,i,s){super(),this.StreamId=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s}}function sa(e){return Ht(Gt("%s%P()/account-registry/admin",[e]))}function ua(e,t){return Pc(0,()=>{const n=(i=Ht(Ft("Bearer %s"))(e),r=new Tc(0,"Authorization",i),new Dc((o=t).url,o.method,rr(o.headers,qn(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;const s=Hr.Bind(jc(n),e=>Hr.Return(new fn(0,e)));return Hr.Delay(()=>Hr.Bind(s,e=>{let t;const r=e;if(1===r.tag){const e=r.fields[0];return Hr.Return(new fn(1,e))}{const e=r.fields[0];return Hr.ReturnFrom((t=e,429===t.statusCode||t.statusCode>=500?Hr.Bind(jc(n),e=>Hr.Return(new fn(0,e))):function(e,t){return Hr.Return(Wr(0,t))}(0,t)))}}))})}function ca(e,t){return Pc(0,()=>{const n=ua(t,Gc(new Ac(0),Fc(Ht(Gt("%P()/partners",[sa(e)])))));return Hr.Delay(()=>Hr.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return Hr.Return(new fn(1,e))}{const e=n.fields[0];return Hr.ReturnFrom((t=e,200===t.statusCode?Hr.Return(hn(e=>Bc(ir(e=>{return t=e,Vr(0,()=>hn(e=>{const n=e;return hn(e=>{const r=e;return qr(0,no(t.ContactDetails),e=>{const o=e;return new gu(new nn(0,t.StreamId),n,r,o,ro(t.Notes),new qs(0))})},Jr(t.Website))},zr(t.Name)))();var t},e)),ra(t.responseText,new Vc(1),void 0,{ResolveType:()=>Z(V("Dto.AdminApi.Partner",[],oa,()=>[["StreamId",X],["Name",X],["Website",X],["ContactDetails",to()],["Notes",z(X)]]))}))):Hr.Return(new fn(1,"Unexpected response from backend"))))}}))})}function la(e,t,n){return Pc(0,()=>{const r=ua(t,Gc(new Ac(0),Fc(Ht(Gt("%P()/partners/%P()/accounts",[sa(e),n])))));return Hr.Delay(()=>Hr.Bind(r,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return Hr.Return(new fn(1,e))}{const e=n.fields[0];return Hr.ReturnFrom((t=e,200===t.statusCode?Hr.Return(hn(e=>Bc(ir(e=>wu(e),e)),ra(t.responseText,new Vc(1),void 0,{ResolveType:()=>Z(V("Dto.AdminApi.Account",[],ia,()=>[["StreamId",X],["PartnerId",X],["Name",X],["Website",X],["ContactDetails",to()],["Notes",z(X)],["LegalEntity",z(co())]]))}))):Hr.Return(new fn(1,"Unexpected response from backend"))))}}))})}function aa(e){const t=qn(yo("span",{children:[e.error]}));return yo("div",{children:Hi.Children.toArray(Array.from(t))})}class $a extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tab"]}}function fa(e,t){const n=(null!=t?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=yo("a",x(Sr(yr(()=>Ir(Cr(["key",e]),yr(()=>Ir(Cr(["children",e]),yr(()=>Ir(Cr(["className",n]),yr(()=>null!=t?Cr(["href",au(qn(cn(t)),1)]):br())))))))))),new $a(0,r);var r}function da(e){return yo("div",{className:"border-b border-gray-200",children:Hi.Children.toArray([yo("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:Hi.Children.toArray(Array.from(Ar(e=>e.fields[0],e)))})])})}class ha extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ColumnHeader"]}}function pa(e){return new ha(0,e)}class ma extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["RowCell"]}}function _a(e){return new ma(0,e)}function wa(e){return pa(yo("th",x(tr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function ga(e,t){return _a(yo("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:Hi.Children.toArray([yo("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})])}))}function ya(e,t){return _a(yo("td",{className:zt(" ",Ir(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function va(e,t){let n;const r=(e,t)=>{return yo("tr",{className:(n=e,n%2==0?"bg-white":"bg-gray-50"),children:Hi.Children.toArray(Array.from(Ar(e=>e.fields[0],t)))});var n};return yo("div",{className:"flex flex-col mt-4",children:Hi.Children.toArray([yo("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:Hi.Children.toArray([yo("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:Hi.Children.toArray([yo("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:Hi.Children.toArray([yo("table",{className:"min-w-full divide-y divide-gray-200",children:Hi.Children.toArray([(e=>{let t;return yo("thead",{className:"bg-gray-50",children:(t=Ar(e=>e.fields[0],e),yo("tr",{children:Hi.Children.toArray(Array.from(t))}))})})(e),(n=Tr(I(2,e=>{const t=function(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>t.apply(void 0,n.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>t.apply(void 0,n.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>l=>t.apply(void 0,n.concat([e,r,o,i,s,u,c,l]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>t(e)}),t),yo("tbody",{children:Hi.Children.toArray(Array.from(n))}))])})])})])})])})])})}function ba(){const e=qn(yo("span",{children:["Please wait..."]}));return yo("div",{children:Hi.Children.toArray(Array.from(e))})}function Ca(e){const t=e.accountList,n=tr([wa("ID"),wa("Name"),wa("Contact"),wa("Phone"),wa("Website")]),r=e=>{let t,n;const r=new Nn(0,on(e.StreamId));return tr([(t=[au(Su((n=[e.PartnerId,r],new vu(3,n[0],n[1]))),1),on(e.StreamId)],ga(t[0],t[1])),ya(["text-gray-500"],Zr(e.Name)),ya(["text-gray-500"],Ht(Gt("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)]))),ya(["text-gray-500"],Qr(e.ContactDetails.MobilePhone)),ya(["text-gray-500"],Xr(e.Website))])};let o,i,s,u;switch(0===t.tag||1===t.tag?o=2:3===t.tag?(o=3,u=t.fields[0]):1===t.fields[0].tag?(o=1,s=t.fields[0].fields[0]):(o=0,i=t.fields[0].fields[0]),o){case 0:return va(n,ir(r,i));case 1:return yo(aa,{error:s});case 2:return yo(ba,null);case 3:return yo(aa,{error:P(u)})}}function Sa(e){return yo("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Ea(e){return yo("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:Hi.Children.toArray([e])})}function xa(e,t){return yo("div",{className:"sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5",children:Hi.Children.toArray([Sa(e),Ea(t)])})}function Ia(e){return yo("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function ka(e){const t=qn(yo("div",{children:Hi.Children.toArray(Array.from(e))}));return yo("form",{children:Hi.Children.toArray(Array.from(t))})}function Na(e){return ka([xa("ID",Ia(on(e.StreamId))),xa("Name",Ia(Zr(e.Name))),xa("Contact",Ia(Ht(Gt("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)])))),xa("Phone",Ia(Qr(e.ContactDetails.MobilePhone))),xa("Website",Ia(Xr(e.Website))),xa("Notes",(t=an(oo(e.Notes),""),yo("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:t,readOnly:!0,rows:5})))]);var t}class Pa extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Details","AccountList"]}}function Aa(e){let t,n;return da(1===e.tag?(t=e.fields[0],tr([fa("Details",au(Su(new vu(1,t)),1)),fa("Accounts",void 0)])):(n=e.fields[0],tr([fa("Details",void 0),fa("Accounts",au(Su(new vu(2,new In(0,on(n.StreamId)))),1))])))}function Ta(e){if(1===e.tag){return yo(Ca,{accountList:e.fields[1]})}return yo(Na,e.fields[0])}function Ma(e){const t=e.mode;return yo("div",{children:Hi.Children.toArray([Aa(t),Ta(t)])})}function Da(e){return ka([xa("ID",Ia(on(e.StreamId))),xa("Contact",Ia(Ht(Gt("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)])))),xa("Phone",Ia(Qr(e.ContactDetails.MobilePhone))),xa("Website",Ia(Xr(e.Website)))])}function Oa(e){const t=e.account;switch(t.tag){case 0:case 1:return yo(ba,null);case 3:return yo(aa,{error:P(t.fields[0])});default:{const e=t.fields[0];return n=e,yo("div",{children:Hi.Children.toArray([da([fa("Details",void 0)]),yo(Da,n)])})}}var n}function Ra(e){const t=e.partnerList;return va(tr([wa("ID"),wa("Name"),wa("Contact"),wa("Phone"),wa("Website")]),ir(e=>{let t;const n=on(e.StreamId),r=new In(0,n);return tr([(t=[au(Su(new vu(1,r)),1),n],ga(t[0],t[1])),ya(["text-gray-500"],Zr(e.Name)),ya(["text-gray-500"],Ht(Gt("%P() %P()",[Yr(e.ContactDetails.FirstName),Kr(e.ContactDetails.LastName)]))),ya(["text-gray-500"],Qr(e.ContactDetails.MobilePhone)),ya(["text-gray-500"],Xr(e.Website))])},t))}var La=function(e){return yo("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},e),yo("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))};class Ua extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BreadCrumb"]}}function Fa(e){return yo("nav",{className:"pt-2","aria-label":"Breadcrumb",children:Hi.Children.toArray([yo("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:Hi.Children.toArray(Array.from(or((e,t)=>{const n=t.fields[0][1];return function(e,t,n,r){return yo("li",{key:e,className:"flex",children:Hi.Children.toArray([yo("div",{className:"flex items-center",children:Hi.Children.toArray(Array.from(Sr(yr(()=>Ir(n?br():Cr(yo(La,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),yr(()=>Cr(yo("a",x(Sr(yr(()=>Ir(Cr(["children",e]),yr(()=>Ir(null!=t?Cr(["href",au(cn(t),1)]):br(),yr(()=>Cr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(t.fields[0][0],n,0===e)},e)))})])})}function Ga(e){let t,n,r,o;const i=e.page,s=()=>new Ua(0,["Partners",Su(new vu(0))]),u=e=>new Ua(0,[io(e),Su(new vu(1,e))]),c=e=>new Ua(0,["Accounts",Su(new vu(2,e))]);return Fa(4===i.tag?qn(s()):1===i.tag?(t=i.fields[0],tr([s(),u(t)])):2===i.tag?(n=i.fields[0],tr([s(),u(n),c(n)])):3===i.tag?(r=i.fields[0],o=i.fields[1],tr([s(),u(r),c(r),(l=o,new Ua(0,[so(l),void 0]))])):qn(s()));var l}function ja(){return(ja=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 Ha(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 Wo(t,n)}function Ba(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=yo(Ha,ja({},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[Wa(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),l=u[i].slot;l?o[l]=yo(za,{name:l},c):r[i]=c}var a=n?yo(za,null,r):r;return yo(n||t.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Bo:Ho)(this._vdom,this._root)}function Wa(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Va(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Wa(e)]=n,this._vdom=Wo(this._vdom,r),Ho(this._vdom,this._root)}}function qa(){Ho(this._vdom=null,this._root)}function za(e,t){var n=this;return yo("slot",ja({},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 Za extends L{constructor(e,t){super(),this.Data=e,this.CurrentPage=t}}function Ja(){return V("AccountRegistry.AdminUI.App.State",[],Za,()=>[["Data",zs(q("Microsoft.FSharp.Core.FSharpResult`2",[Iu(),X],fn,()=>[[["ResultValue",Iu()]],[["ErrorValue",X]]]))],["CurrentPage",bu()]])}class Xa extends A{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PageChanged","LoadData","LoadAccounts"]}}function Ya(){return q("AccountRegistry.AdminUI.App.Msg",[],Xa,()=>[[["Item",bu()]],[["Item",zs(q("Microsoft.FSharp.Core.FSharpResult`2",[Iu(),X],fn,()=>[[["ResultValue",Iu()]],[["ErrorValue",X]]]))]],[["Item1",rn()],["Item2",q("Microsoft.FSharp.Core.FSharpResult`2",[Z(_u()),X],fn,()=>[[["ResultValue",Z(_u())]],[["ErrorValue",X]]])]]])}function Ka(){const e=Cu(fu(window.location.hash,1)),t=4===e.tag?Eu(new vu(0)):ku();return[new Za(new qs(0),e),t]}function Qa(e,t,n){const r=e.Data;let o,i;switch(2===r.tag&&0===r.fields[0].tag?(o=0,i=r.fields[0].fields[0]):o=1,o){case 0:{const r=ir(e=>y(e.StreamId,t)?new gu(e.StreamId,e.Name,e.Website,e.ContactDetails,e.Notes,new qs(2,new fn(0,n))):e,i.Partners),o=new qs(2,new fn(0,new xu(r)));return[new Za(o,e.CurrentPage),ku()]}case 1:return[e,ku()]}}function e$(e,t,n){const r=e.Data;let o,i;switch(2===r.tag&&0===r.fields[0].tag?(o=0,i=r.fields[0].fields[0]):o=1,o){case 0:{const r=ir(e=>y(e.StreamId,t)?new gu(e.StreamId,e.Name,e.Website,e.ContactDetails,e.Notes,new qs(2,new fn(1,n))):e,i.Partners),o=new qs(2,new fn(0,new xu(r)));return[new Za(o,e.CurrentPage),ku()]}case 1:return[e,ku()]}}function t$(e,t){switch(e.tag){case 0:{const n=e.fields[0];return 4===n.tag?[t,Eu(n)]:[new Za(t.Data,n),ku()]}case 2:{const n=e.fields[0],r=e.fields[1];if(1===r.tag){return e$(t,n,r.fields[0])}return Qa(t,n,r.fields[0])}default:{const n=e.fields[0];return[new Za(n,t.CurrentPage),ku()]}}}function n$(e){const t=(n=(e,t)=>t$(e,t),kc(ts(Ka,r=[]),n,r));var n,r;const o=t[0],i=t[1],s=Zs(()=>{return t=e.backendUrl,n=e.accessToken,Pc(0,()=>Hr.Bind(ca(t,n),e=>Hr.Return(dn(e=>new xu(e),e))));var t,n},e=>{i(new Xa(1,e))});Ki(s,[]);const u=t=>Hr.Delay(()=>Hr.Bind(la(e.backendUrl,e.accessToken,on(t)),e=>(i(new Xa(2,t,e)),Hr.Zero())));let c;const l=o.Data;let a,$,f,d;switch(1===l.tag?a=0:2===l.tag?1===l.fields[0].tag?(a=2,f=l.fields[0].fields[0]):(a=1,$=l.fields[0].fields[0]):3===l.tag?(a=3,d=l.fields[0]):a=0,a){case 0:c=yo(ba,null);break;case 1:{const e=e=>{return t=$.Partners,n=io(e),ur(e=>on(e.StreamId)===n,t);var t,n},t=(e,t)=>function(e,t,n){const r=ur(e=>on(e.StreamId)===t,e);if(null!=r){const e=r.Accounts;let t,o;switch(2===e.tag&&0===e.fields[0].tag?(t=0,o=e.fields[0].fields[0]):t=1,t){case 0:return ur(e=>on(e.StreamId)===n,o);case 1:return}}}($.Partners,io(e),so(t)),n=o.CurrentPage;switch(n.tag){case 1:{const t=e(n.fields[0]);if(null==t)c=yo(aa,{error:"Unknown Partner"});else{c=yo(Ma,{mode:new Pa(0,t)})}break}case 2:c=((e,t)=>{const n=e(t);if(null==n)return yo(aa,{error:"Unknown Partner"});{const e=n,r=e.Accounts;switch(r.tag){case 2:{let n;const r=[t,e.Accounts];return n=new Pa(1,r[0],r[1]),yo(Ma,{mode:n})}case 0:{as(u(e.StreamId));let n;const r=[t,e.Accounts];return n=new Pa(1,r[0],r[1]),yo(Ma,{mode:n})}case 3:return yo(aa,{error:P(r.fields[0])});default:{let n;const r=[t,e.Accounts];return n=new Pa(1,r[0],r[1]),yo(Ma,{mode:n})}}}})(e,n.fields[0]);break;case 3:c=((e,t,n,r)=>{const o=e(n);if(null==o)return yo(aa,{error:"Unknown Partner"});{const e=o,i=e.Accounts;switch(i.tag){case 1:return yo(Oa,{account:new qs(1)});case 2:{const e=t(n,r);if(null==e)return yo(aa,{error:"Unknown Account"});return yo(Oa,{account:new qs(2,e)})}case 3:return yo(aa,{error:P(i.fields[0])});default:as(u(e.StreamId));return yo(Oa,{account:new qs(0)})}}})(e,t,n.fields[0],n.fields[1]);break;default:c=yo(Ra,{partnerList:$.Partners})}break}case 2:c=yo(aa,{error:f});break;case 3:c=yo(aa,{error:P(d)});break}return du({onUrlChanged:e=>{i(new Xa(0,Cu(e)))},application:yo(bo,{},yo(Ga,{page:o.CurrentPage}),c)})}(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=Ba,o.prototype.attributeChangedCallback=Va,o.prototype.disconnectedCallback=qa,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=>yo(n$,e),"superhero-account-registry")}]);
|
|
1
|
+
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";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,t){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(t).constructor}n.r(t),n.d(t,"State",(function(){return f$})),n.d(t,"State$reflection",(function(){return d$})),n.d(t,"Msg",(function(){return h$})),n.d(t,"Msg$reflection",(function(){return p$})),n.d(t,"StateModule_init",(function(){return m$})),n.d(t,"StateModule_handleLoadedAccountsSuccess",(function(){return w$})),n.d(t,"StateModule_handleLoadedAccountsFailure",(function(){return _$})),n.d(t,"StateModule_update",(function(){return g$})),n.d(t,"AccountRegistryComponent",(function(){return y$}));class u{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 c(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new u(e[Symbol.iterator]())}function l(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}}}}function a(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function $(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function f(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function h(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function p(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function w(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return p(e);case"string":return h(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]=w(e[r]);return m(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return m(Object.values(e).map(e=>w(e)))}return p(d.id(e))}}function _(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 g(e,t){return _(e,t,y)}function y(e,t){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)&&g(e,t):e instanceof Date?t instanceof Date&&0===v(e,t):Object.getPrototypeOf(e).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]||!y(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function v(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+$(e),r=t.getTime()+$(t)),n===r?0:n<r?-1:1}function b(e,t){return e===t?0:e<t?-1:1}function C(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,S)}function S(e,t){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)?C(e,t):-1:e instanceof Date?t instanceof Date?v(e,t):-1:Object.getPrototypeOf(e).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=S(e[s],t[s]),0!==i)return i}return 0}(e,t):-1}function E(e,t,n){return e(t,n)>0?t:n}function x(e){const t={};for(const n of e)t[n[0]]=n[1];return t}d.idMap=new WeakMap,d.count=0;function I(e,t){if(null==t||t.length>1)return t;let n;switch(e){case 2:n=(e,n)=>t(e)(n);break;case 3:n=(e,n,r)=>t(e)(n)(r);break;case 4:n=(e,n,r,o)=>t(e)(n)(r)(o);break;case 5:n=(e,n,r,o,i)=>t(e)(n)(r)(o)(i);break;case 6:n=(e,n,r,o,i,s)=>t(e)(n)(r)(o)(i)(s);break;case 7:n=(e,n,r,o,i,s,u)=>t(e)(n)(r)(o)(i)(s)(u);break;case 8:n=(e,n,r,o,i,s,u,c)=>t(e)(n)(r)(o)(i)(s)(u)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return n.__CURRIED__=t,n}function k(e,t){if(null==t||1===t.length)return t;if("__CURRIED__"in t)return t.__CURRIED__;switch(e){case 2:return e=>n=>t(e,n);case 3:return e=>n=>r=>t(e,n,r);case 4:return e=>n=>r=>o=>t(e,n,r,o);case 5:return e=>n=>r=>o=>i=>t(e,n,r,o,i);case 6:return e=>n=>r=>o=>i=>s=>t(e,n,r,o,i,s);case 7:return e=>n=>r=>o=>i=>s=>u=>t(e,n,r,o,i,s,u);case 8:return e=>n=>r=>o=>i=>s=>u=>c=>t(e,n,r,o,i,s,u,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function N(e,t){return n=>function e(t,n,r,o){const i=r[o];if(0!==i){const e=i[0],t=i[1];e>1&&(n=k(e,n)),t>1&&(n=I(t,n))}const s=t(n);return o+1===r.length?s:t=>e(s,t,r,o+1)}(e,n,t,0)}function A(e,t=0){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+=A(r);else{if(100===t){n+="; ...";break}n+="; "+A(r)}t++}return n+"]"}(e);{const n=Object.getPrototypeOf(e).constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([e,n])=>e+" = "+A(n,t+1)).join("\n ")+" }":n.name}}return String(e)}class P{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){if(0===this.fields.length)return this.name;{let e="",t=!0;if(1===this.fields.length){const n=A(this.fields[0]);t=n.indexOf(" ")>=0,e=n}else e=this.fields.map(e=>A(e)).join(", ");return this.name+(t?" (":" ")+e+(t?")":"")}}GetHashCode(){const e=this.fields.map(e=>w(e));return e.splice(0,0,p(this.tag)),m(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&g(this.fields,e.fields))}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?C(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function T(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function D(e){return"{ "+Object.entries(e).map(([e,t])=>e+" = "+A(t)).join("\n ")+" }"}function M(e){return m(Object.values(e).map(e=>w(e)))}function O(e,t){if(e===t)return!0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!y(e[n[r]],t[n[r]]))return!1;return!0}return!1}function R(e,t){if(e===t)return 0;if(s(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=S(e[n[r]],t[n[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return T(this)}toString(){return D(this)}GetHashCode(){return M(this)}Equals(e){return O(this,e)}CompareTo(e){return R(this,e)}}class L{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class F{constructor(e,t,n,r){this.declaringType=e,this.tag=t,this.name=n,this.fields=r}}class G{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 K(this)}GetHashCode(){return B(this)}Equals(e){return H(this,e)}}function j(e){return null!=e.generics?e.generics:[]}function B(e){return m([h(e.fullname),...j(e).map(B)])}function H(e,t){return""===e.fullname?""===t.fullname&&_(ie(e),ie(t),([e,t],[n,r])=>e===n&&H(t,r)):e.fullname===t.fullname&&_(j(e),j(t),H)}function W(e,t,n,r){return new G(e,t,n,r)}function V(e,t,n,r){return new G(e,t,n,void 0,r)}function q(e,t,n,r){const o=new G(e,t,n,void 0,void 0,()=>{const e=n.prototype.cases();return r().map((t,n)=>new F(o,n,e[n],t))});return o}function z(e){return new G("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Z(e){return new G("Microsoft.FSharp.Collections.FSharpList`1",[e])}const J=new G("System.Object"),X=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String"));new G("System.Boolean"),new G("System.SByte"),new G("System.Byte"),new G("System.Int16"),new G("System.UInt16"),new G("System.Int32"),new G("System.UInt32"),new G("System.Single"),new G("System.Double"),new G("System.Decimal");function Y(e){if(Array.isArray(e))return e[0];if(e instanceof F)return e.name;{const t=e.fullname.lastIndexOf(".");return-1===t?e.fullname:e.fullname.substr(t+1)}}function K(e){const t=null==e.generics||Q(e)?[]:e.generics;return t.length>0?e.fullname+"["+t.map(e=>K(e)).join(",")+"]":e.fullname}function Q(e){return e.fullname.endsWith("[]")}function ee(e){return null!=e.enumCases&&e.enumCases.length>0}function te(e){if(ee(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function ne(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")}function re(e,t){const n=parseInt(t,10);return ne(e,isNaN(n)?t:n)[1]}function oe(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ie(e){if(null!=e.fields)return e.fields();throw new Error(e.fullname+" is not an F# record type")}function se(e){return e.fullname.startsWith("System.Tuple")&&!Q(e)}function ue(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):{}}var ce;function le(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 ae(e,t,n){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;if(!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=n||function(e,t){if(t&ce.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)).test(o))return function(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}(r,n)}return null}function $e(e,t,n,r,o){try{return o.contents=function(e,t,n,r,o){const i=ae(e,t,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[t,o]=le(!0,r);!n&&10!==i.radix&&e>=t&&e<=o&&(e=e<<32-r>>32-r);const[s,u]=le(n,r);if(e>=s&&e<=u)return e}}throw new Error("Input string was not in a correct format.")}(e,t,n,r),!0}catch(e){return!1}}function fe(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ce||(ce={}));const de=Symbol("numeric");function he(e){return"number"==typeof e||(null==e?void 0:e[de])}function pe(e,t){return"number"==typeof e?e*t:e[de]().multiply(t)}function me(e,t){return"number"==typeof e?e.toFixed(t):e[de]().toFixed(t)}function we(e,t){return"number"==typeof e?e.toPrecision(t):e[de]().toPrecision(t)}function _e(e,t){return"number"==typeof e?e.toExponential(t):e[de]().toExponential(t)}function ge(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[de]().toHex()}var ye=null;try{ye=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(e){}function ve(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function be(e){return!0===(e&&e.__isLong__)}ve.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},ve.prototype.Equals=function(e){return Je(this,e)},ve.prototype.CompareTo=function(e){return Qe(this,e)},ve.prototype.toString=function(e){return Ve(this,e)},ve.prototype.toJSON=function(){return Ve(this)},ve.prototype[de]=function(){const e=this;return{multiply:t=>rt(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:()=>Ve(e.unsigned?e:at(lt(e),!0),16)}},ve.prototype.__isLong__,Object.defineProperty(ve.prototype,"__isLong__",{value:!0});var Ce={},Se={};function Ee(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Se[e])?r:(n=Ie(e,(0|e)<0?-1:0,!0),o&&(Se[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ce[e])?r:(n=Ie(e,e<0?-1:0,!1),o&&(Ce[e]=n),n)}function xe(e,t){if(isNaN(e))return t?Re:Oe;if(t){if(e<0)return Re;if(e>=Te)return je}else{if(e<=-De)return Be;if(e+1>=De)return Ge}return e<0?et(xe(-e,t)):Ie(e%Pe|0,e/Pe|0,t)}function Ie(e,t,n){return new ve(e,t,n)}var ke=Math.pow;function Ne(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Oe;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 et(Ne(e.substring(1),t,n));for(var o=xe(ke(n,8)),i=Oe,s=0;s<e.length;s+=8){var u=Math.min(8,e.length-s),c=parseInt(e.substring(s,s+u),n);if(u<8)i=tt(rt(i,xe(ke(n,u))),xe(c));else i=tt(i=rt(i,o),xe(c))}return i.unsigned=t,i}function Ae(e,t){return"number"==typeof e?xe(e,t):"string"==typeof e?Ne(e,t):Ie(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Pe=4294967296,Te=Pe*Pe,De=Te/2,Me=Ee(1<<24),Oe=Ee(0),Re=Ee(0,!0),Ue=Ee(1),Le=Ee(1,!0),Fe=Ee(-1),Ge=Ie(-1,2147483647,!1),je=Ie(-1,-1,!0),Be=Ie(0,-2147483648,!1);function He(e){return e.unsigned?e.low>>>0:e.low}function We(e){return e.unsigned?(e.high>>>0)*Pe+(e.low>>>0):e.high*Pe+(e.low>>>0)}function Ve(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(qe(e))return"0";if(ze(e)){if(Je(e,Be)){var n=xe(t),r=ot(e,n),o=nt(rt(r,n),e);return Ve(r,t)+He(o).toString(t)}return"-"+Ve(et(e),t)}for(var i=xe(ke(t,6),e.unsigned),s=e,u="";;){var c=ot(s,i),l=(He(nt(s,rt(c,i)))>>>0).toString(t);if(qe(s=c))return l+u;for(;l.length<6;)l="0"+l;u=""+l+u}}function qe(e){return 0===e.high&&0===e.low}function ze(e){return!e.unsigned&&e.high<0}function Ze(e){return 1==(1&e.low)}function Je(e,t){return be(t)||(t=Ae(t)),(e.unsigned===t.unsigned||e.high>>>31!=1||t.high>>>31!=1)&&(e.high===t.high&&e.low===t.low)}function Xe(e,t){return Qe(e,t)<0}function Ye(e,t){return Qe(e,t)>0}function Ke(e,t){return Qe(e,t)>=0}function Qe(e,t){if(be(t)||(t=Ae(t)),Je(e,t))return 0;var n=ze(e),r=ze(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:ze(nt(e,t))?-1:1}function et(e){return!e.unsigned&&Je(e,Be)?Be:tt(it(e),Ue)}function tt(e,t){be(t)||(t=Ae(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,c=t.low>>>16,l=0,a=0,$=0,f=0;return $+=(f+=i+(65535&t.low))>>>16,a+=($+=o+c)>>>16,l+=(a+=r+u)>>>16,l+=n+s,Ie(($&=65535)<<16|(f&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function nt(e,t){return be(t)||(t=Ae(t)),tt(e,et(t))}function rt(e,t){if(qe(e))return e.unsigned?Re:Oe;if(be(t)||(t=Ae(t)),ye)return Ie(ye.mul(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned);if(qe(t))return e.unsigned?Re:Oe;if(Je(e,Be))return Ze(t)?Be:Oe;if(Je(t,Be))return Ze(e)?Be:Oe;if(ze(e))return ze(t)?rt(et(e),et(t)):et(rt(et(e),t));if(ze(t))return et(rt(e,et(t)));if(Xe(e,Me)&&Xe(t,Me))return xe(We(e)*We(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,c=t.low>>>16,l=65535&t.low,a=0,$=0,f=0,d=0;return f+=(d+=i*l)>>>16,$+=(f+=o*l)>>>16,f&=65535,$+=(f+=i*c)>>>16,a+=($+=r*l)>>>16,$&=65535,a+=($+=o*c)>>>16,$&=65535,a+=($+=i*u)>>>16,a+=n*l+r*c+o*u+i*s,Ie((f&=65535)<<16|(d&=65535),(a&=65535)<<16|($&=65535),e.unsigned)}function ot(e,t){if(be(t)||(t=Ae(t)),qe(t))throw Error("division by zero");var n,r,o;if(ye)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Ie((e.unsigned?ye.div_u:ye.div_s)(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned):e;if(qe(e))return e.unsigned?Re:Oe;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Ie(e.low,e.high,!0)}(t)),Ye(t,e))return Re;if(Ye(t,ct(e,1)))return Le;o=Re}else{if(Je(e,Be))return Je(t,Ue)||Je(t,Fe)?Be:Je(t,Be)?Ue:Je(n=st(ot(ut(e,1),t),1),Oe)?ze(t)?Ue:Fe:o=tt(n,ot(r=nt(e,rt(t,n)),t));if(Je(t,Be))return e.unsigned?Re:Oe;if(ze(e))return ze(t)?ot(et(e),et(t)):et(ot(et(e),t));if(ze(t))return et(ot(e,et(t)));o=Oe}for(r=e;Ke(r,t);){n=Math.max(1,Math.floor(We(r)/We(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:ke(2,i-48),u=xe(n),c=rt(u,t);ze(c)||Ye(c,r);)c=rt(u=xe(n-=s,e.unsigned),t);qe(u)&&(u=Ue),o=tt(o,u),r=nt(r,c)}return o}function it(e){return Ie(~e.low,~e.high,e.unsigned)}function st(e,t){return be(t)&&(t=He(t)),0==(t&=63)?e:t<32?Ie(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Ie(0,e.low<<t-32,e.unsigned)}function ut(e,t){return be(t)&&(t=He(t)),0==(t&=63)?e:t<32?Ie(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Ie(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function ct(e,t){if(be(t)&&(t=He(t)),0===(t&=63))return e;var n=e.high;return t<32?Ie(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Ie(32===t?n:n>>>t-32,0,e.unsigned)}function lt(e,t){return t?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]}(e):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]}(e)}function at(e,t,n){return n?function(e,t){return new ve(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 ve(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)}const $t=tt,ft=rt,dt=ot,ht=function(e,t){return be(t)||(t=Ae(t)),ye?Ie((e.unsigned?ye.rem_u:ye.rem_s)(e.low,e.high,t.low,t.high),ye.get_high(),e.unsigned):nt(e,rt(ot(e,t),t))},pt=et,mt=function(e,t){return be(t)||(t=Ae(t)),Ie(e.low&t.low,e.high&t.high,e.unsigned)},wt=Qe,_t=Ie,gt=He,yt=We;function vt(e,t,n){let r=e,o=0;switch(n){case 0:r=e<<24>>24,o=r;break;case 4:r=e<<24>>>24;break;case 1:r=e<<16>>16,o=r;break;case 5:r=e<<16>>>16;break;case 2:r=e>>0,o=r;break;case 6:r=e>>>0}return Ie(r,o>>31,t)}const bt=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Ct(e){const t=e<0,n=(e=Math.abs(e))%36e5/6e4;return(t?"-":"+")+a(~~(e/36e5),2)+":"+a(n,2)}function St(e,t){const n=e.toISOString();return"first"===t?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Et(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 xt(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," ")+Ct(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return Et(i,t,!0);switch(t){case"D":case"d":return St(i,"first");case"T":case"t":return St(i,"second");case"O":case"o":return function(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Ct(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function It(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return Et(e,t,n);switch(t){case"D":case"d":return n?St(e,"first"):e.toLocaleDateString();case"T":case"t":return n?St(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,t){if(t)return e.toISOString();{const t=null==e.kind||2===e.kind;return a(e.getFullYear(),4)+"-"+a(e.getMonth()+1,2)+"-"+a(e.getDate(),2)+"T"+a(e.getHours(),2)+":"+a(e.getMinutes(),2)+":"+a(e.getSeconds(),2)+"."+a(e.getMilliseconds(),3)+(t?Ct(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function kt(e,t,n){return null!=e.offset?xt(e,t):It(e,t)}function Nt(e,t){const n=new Date(e);return n.kind=0|(null==t?0:t),n}function At(e){if(null===e)throw new Error("Value cannot be null when parsing DateTime");if(""===e.trim())throw new Error("An empty string is not recognized as a valid DateTime");let t=new Date(e);if(isNaN(t.getTime())){const n=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==n)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=n[2]){const e=n[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=n[3]&&"PM"===n[3].toUpperCase()&&(r+=720)}if(null!=n[4]){if(null!=n[1])e=new Date(n[1]+" UTC");else{const t=new Date;e=new Date(t.getUTCFullYear()+"/"+(t.getUTCMonth()+1)+"/"+t.getUTCDate())}const t=n[4].substr(1).split(":");let o=60*parseInt(t[0],10)+parseInt(t[1]||"0",10);"+"===n[4][0]&&(o*=-1),r+=60*o}else if(null!=n[1])e=new Date(n[1]);else{const t=new Date;e=new Date(t.getFullYear()+"/"+(t.getMonth()+1)+"/"+t.getDate())}t=new Date(e.getTime()+1e3*r),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}}return t}function Pt(e,t){try{return t.contents=function(e,t=!1){const n=At(e),r=bt.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return Nt(n.getTime(),o)}(e),!0}catch(e){return!1}}function Tt(e,t=0){if(0!=(-276&t))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let n="g";return n+=1&t?"i":"",n+=2&t?"m":"",n+=16&t?"s":"",new RegExp(e,n)}function Dt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Mt(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Tt(t,n),!r.global)throw new Error("Non-global RegExp");let o=r.exec(e);const i=[];for(;null!==o;)i.push(o),o=r.exec(e);return i}const Ot=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/,Rt=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ut=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Lt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ft(e){return{input:e,cont:(t=e,e=>Ot.test(t)?function e(t,n,r=new L(null)){return(...o)=>{let i=t;for(const e of o)i=Wt(i,e,r);return Ot.test(i)?e(i,n,r):n(i.replace(/%%/g,"%"))}}(t,e):e(t))};var t}function Gt(e,t){let n=0;return e.replace(Rt,(e,r,o,i,s,u)=>Ht(t[n++],r,o,i,s,u)).replace(/%%/g,"%")}function jt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Bt(e){return jt(e=>e,e)}function Ht(e,t,n,r,o,i){let s="";if(n=n||"",i=i||"",he(e))switch("x"!==i.toLowerCase()&&(Lt(e,0)?(e=pe(e,-1),s="-"):n.indexOf(" ")>=0?s=" ":n.indexOf("+")>=0&&(s="+")),o=null==o?null:parseInt(o,10),i){case"f":case"F":e=me(e,o=null!=o?o:6);break;case"g":case"G":e=null!=o?we(e,o):we(e);break;case"e":case"E":e=null!=o?_e(e,o):_e(e);break;case"x":e=ge(e);break;case"X":e=ge(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?kt(e):A(e);if(r="number"==typeof r?r:parseInt(r,10),isNaN(r))e=s+e;else{const t=n.indexOf("0")>=0,o=n.indexOf("-")>=0,i=o||!t?" ":"0";e="0"===i?s+(e=Zt(e,r-s.length,i,o)):Zt(s+e,r,i,o)}return t?t+e:e}function Wt(e,t,n){return e.replace(Ot,(e,r,o,i,s,u)=>{if(null!=n.contents)i=n.contents,n.contents=null;else if("*"===i){if(t<0)throw new Error("Non-negative number required");return n.contents=t,e}return Ht(t,r,o,i,s,u).replace(/%/g,"%%")})}function Vt(e,...t){return"object"==typeof e&&t.length>0&&(e=t[0],t.shift()),e.replace(Ut,(e,n,r,o,i,s)=>{let u=t[n];if(he(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=me(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?we(u,i):we(u);break;case"e":case"E":u=null!=i?_e(u,i):_e(u);break;case"p":case"P":i=null!=i?i:2,u=me(pe(u,100),i)+" %";break;case"d":case"D":u=null!=i?Zt(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?Zt(ge(u),i,"0"):ge(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(Lt(u,0)&&(u=pe(u,-1),e="-"),u=me(u,null!=r?r.length-1:0),Zt(u,(n||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?kt(u,s||o):A(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=Zt(String(u),Math.abs(r)," ",r<0)),u})}function qt(e){return"string"!=typeof e||0===e.length}function zt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zt(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 Jt(e,t,n,r){if(r="number"==typeof r?r:void 0,(n="number"==typeof n?n:void 0)&&n<0)throw new Error("Count cannot be less than zero");if(0===n)return[];if(!Array.isArray(t)){if(0===r)return e.split(t,n);const o=arguments.length;t=Array(o-1);for(let e=1;e<o;e++)t[e-1]=arguments[e]}t=(t=t.map(e=>Dt(e))).length>0?t:[" "];let o=0;const i=[],s=new RegExp(t.join("|"),"g");for(;null==n||n>1;){const t=s.exec(e);if(null===t)break;(!r||t.index-o>0)&&(n=null!=n?n-1:n,i.push(e.substring(o,t.index))),o=s.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Xt(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)}const Yt=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Kt=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Qt=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function en(e){function t(e){return e.replace(Kt,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Yt.test(n))return function(e,...t){if(0===t.length)return e.trim();const n="["+Dt(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}(n,"{","}","(",")");if(Kt.test(n))return t(n);if(Qt.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function tn(e,t){try{return t.contents=en(e),!0}catch(e){return!1}}class nn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["StreamId"]}}function rn(){return q("MetadataTypes.StreamId",[],nn,()=>[[["Item",X]]])}function on(e){return e.fields[0]}class sn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return w(this.value)}Equals(e){return null!=e&&y(this.value,e instanceof sn?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof sn?e.value:e)}}function un(e){return null==e||e instanceof sn?new sn(e):e}function cn(e){if(null==e)throw new Error("Option has no value");return e instanceof sn?e.value:e}function ln(e){return null==e?[]:[cn(e)]}function an(e,t){return null!=e?cn(e):t}function $n(e,t){return null!=t?un(e(cn(t))):void 0}class fn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function dn(e,t){if(0===t.tag){const n=t.fields[0];return new fn(0,e(n))}{const e=t.fields[0];return new fn(1,e)}}function hn(e,t){if(0===t.tag){return e(t.fields[0])}{const e=t.fields[0];return new fn(1,e)}}class pn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Name"]}}function mn(){return q("BasicModels.Name",[],pn,()=>[[["Item",X]]])}class wn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Website"]}}function _n(){return q("BasicModels.Website",[],wn,()=>[[["Item",X]]])}class gn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FirstName"]}}class yn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LastName"]}}class vn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Email"]}}class bn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["MobilePhone"]}}class Cn extends U{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function Sn(){return V("BasicModels.ContactDetails",[],Cn,()=>[["FirstName",q("BasicModels.FirstName",[],gn,()=>[[["Item",X]]])],["LastName",q("BasicModels.LastName",[],yn,()=>[[["Item",X]]])],["Email",q("BasicModels.Email",[],vn,()=>[[["Item",X]]])],["MobilePhone",q("BasicModels.MobilePhone",[],bn,()=>[[["Item",X]]])]])}class En extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Notes"]}}function xn(){return q("BasicModels.Notes",[],En,()=>[[["Item",X]]])}class In extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerId"]}}function kn(){return q("BasicModels.PartnerId",[],In,()=>[[["Item",X]]])}class Nn extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["AccountId"]}}function An(){return q("BasicModels.AccountId",[],Nn,()=>[[["Item",X]]])}function Pn(e,t){return"function"==typeof e?new e(t):new Array(t)}function Tn(){throw new Error("Arrays had different lengths")}function Dn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function Mn(e,t,n){const r=0|t.length,o=Pn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function On(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=Pn(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function Rn(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function Un(e,t,n){return 0===function(e,t,n){if(null==t)return null==n?0:-1;if(null==n)return 1;{let r=0,o=0;const i=0|t.length,s=0|n.length;if(i>s)return 1;if(i<s)return-1;for(;r<i&&0===o;)o=e(t[r],n[r]),r+=1;return 0|o}}((e,t)=>S(e,t),t,n)}function Ln(e,t,n){return t.reduceRight((t,n)=>e(n,t),n)}function Fn(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&Tn();const i=0|t.length;for(let r=1;r<=i;r++)o=e(r-1,t[i-r],n[i-r],o);return o}((t,n,r,o)=>e(n,r,o),t,n,r)}class Gn extends U{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+zt("; ",this)+"]"}Equals(e){const t=this;if(t===e)return!0;return((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(y(n.head,r.head)){e=i,t=s;continue e}return!1}return!1}return null==o[1]}})(t,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)+w(i.head)+631*r,n=u}}})(0,0,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|S(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 function(e){return new jn(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class jn{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"(){this.it=this.xs,this.current=null}Dispose(){}}function Bn(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 Hn(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function Wn(e){const t=e.tail;if(null!=t){return t}throw new Error("List was empty\\nParameter name: list")}function Vn(){return new Gn(null,void 0)}function qn(e,t){return new Gn(e,t)}function zn(e){return new Gn(e,new Gn(null,void 0))}function Zn(e){return null==e.tail}function Jn(e){return Hn(e)}function Xn(e){return Wn(e)}function Yn(e){const t=0|Bn(e),n=Dn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(null==o.tail)break;n[r]=Hn(o),e=r+1,t=Wn(o)}})(0,e),n}function Kn(e,t,n){let r=t,o=n;for(;null!=o.tail;)r=e(r,Hn(o)),o=Wn(o);return r}function Qn(e){return Kn((e,t)=>new Gn(t,e),new Gn(null,void 0),e)}function er(e,t){return Kn((t,n)=>{e(n)},void 0,t)}function tr(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=new Gn(e[t],n);return n}function nr(e){return tr(e,new Gn(null,void 0))}function rr(e){if(r(e)){return nr(e)}if(e instanceof Gn){return e}{const t=new Gn(null,void 0);let n=t;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),t=n,o=new Gn(e,void 0);t.tail=o,n=o}}finally{r.Dispose()}const o=n,i=new Gn(null,void 0);return o.tail=i,Wn(t)}}function or(e,t){return Kn((e,t)=>new Gn(t,e),t,Qn(e))}function ir(e,t){const n=new Gn(null,void 0),r=function(e,t,n){return((t,n,r)=>{for(;;){const o=t,i=n,s=r;if(null==s.tail)return i;t=o+1,n=e(o,i,Hn(s)),r=Wn(s)}})(0,t,n)}((t,n,r)=>{const o=new Gn(e(t,r),void 0);return n.tail=o,o},n,t),o=new Gn(null,void 0);return r.tail=o,Wn(n)}function sr(e,t){const n=new Gn(null,void 0),r=Kn((t,n)=>{const r=new Gn(e(n),void 0);return t.tail=r,r},n,t),o=new Gn(null,void 0);return r.tail=o,Wn(n)}function ur(e,t){return(t=>{e:for(;;){const n=t;if(null==n.tail)return;{const r=e(Hn(n));if(null==r){t=Wn(n);continue e}return r}}})(t)}function cr(e,t){return ur(t=>e(t)?un(t):void 0,t)}function lr(){return e=(e,t)=>S(e,t),{Compare:(t,n)=>e(t,n)};var e}function ar(){return lr()}function $r(){throw new Error("Enumeration has not started. Call MoveNext.")}function fr(){throw new Error("Enumeration already finished.")}class dr{constructor(e){this.f=e}toString(){let e=0,t="seq [";const n=c(this);try{for(;e<4&&n["System.Collections.IEnumerator.MoveNext"]();)e>0&&(t+="; "),t+=A(n["System.Collections.Generic.IEnumerator`1.get_Current"]()),e+=1;return 4===e&&(t+="; ..."),t+"]"}finally{n.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class hr{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"(){return function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function pr(e,t,n){return new hr(e,t,n)}function mr(e){let t=void 0,n=void 0,r=!1,o=!1,i=void 0;const s=()=>{if(o=!0,null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}if(null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}};return pr(()=>{if(r?o&&fr():$r(),null!=i){return cn(i)}return fr()},()=>(r||(r=!0),!o&&(()=>{let r,o=void 0;for(;null==o;){const u=[t,n];if(null!=u[0])if(null!=u[1]){const e=u[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=un(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=u[0];if(e["System.Collections.IEnumerator.MoveNext"]()){r=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=c(r)}else s(),o=!1}else t=c(e)}return cn(o)})()),()=>{o||s()})}function wr(e,t,n){let r=!1,o=void 0,i=un(e());const s=()=>{if(null!=i){const e=cn(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return pr(()=>{if(r||$r(),null!=o){return cn(o)}return fr()},()=>{if(r||(r=!0),null!=i){const e=cn(i);let n;try{n=t(e)}catch(e){throw u(),e}if(null!=n){return o=n,!0}return u(),!1}return!1},s)}function _r(e,t){null==t&&function(e){throw new Error(e)}(e)}function gr(e){return function(e){return new dr(e)}(e)}function yr(e){return _r("source",e),c(e)}function vr(e){return gr(()=>c(e()))}function br(e){return gr(()=>mr(e))}function Cr(){return vr(()=>new Array(0))}function Sr(e){return vr(()=>function(e,t){const n=Pn(t,1);return n[0]=e,n}(e))}function Er(e){if(r(e)){return nr(e)}if(e instanceof Gn){return e}return rr(e)}function xr(e,t,n){return gr(()=>wr(e,t,n))}function Ir(e,t,n){return gr(()=>{let r=-1;return wr(e,e=>(r+=1,t(r,e)),n)})}function kr(e,t){return br([e,t])}function Nr(e,t){return xr(()=>yr(t),t=>{let n=void 0;for(;null==n&&t["System.Collections.IEnumerator.MoveNext"]();)n=e(t["System.Collections.Generic.IEnumerator`1.get_Current"]());return n},e=>{e.Dispose()})}function Ar(e,t,n){const r=yr(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{r.Dispose()}}function Pr(e,t,n){const r=yr(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{r.Dispose()}}function Tr(e,t){return Pr((t,n)=>{e(n)},void 0,t)}function Dr(e,t){return xr(()=>yr(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?un(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Mr(e,t){return Ir(()=>yr(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?un(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}!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]}();function Or(e,t){const n=function(e,t,n=0){let r;return r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Tt(t,n),r.exec(e)}(Tt(e),t);return null!=n?Xn(Er(vr(()=>Dr(e=>e||"",n)))):void 0}function Rr(e,t){return qt(t)?new fn(1,Bt(Ft("%s cannot be null or empty"))(e)):new fn(0,t)}function Ur(e){const t=function(e){let t;const n=Or(".*?@(.*)",e);switch(t=null!=n?Zn(n)?1:Zn(Xn(n))?0:1:1,t){case 0:return e;case 1:return}}(e);if(null!=t){return new fn(0,t)}return new fn(1,"Email is not in the correct format")}class Lr{constructor(e=!1){this._id=0,this._cancelled=e,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,e]of this._listeners)e()}}addListener(e){const t=this._id;return this._listeners.set(this._id++,e),t}removeListener(e){return this._listeners.delete(e)}register(e,t){const n=this,r=this.addListener(null==t?e:()=>e(t));return{Dispose(){n.removeListener(r)}}}}class Fr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Fr.prototype)}}class Gr{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Gr.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function jr(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Fr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(e){t.onError(e)}});else try{e(t)}catch(e){t.onError(e)}}}function Br(e,t){return jr(n=>{e({onSuccess:e=>{try{t(e)(n)}catch(e){n.onError(e)}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Hr(e){return jr(t=>t.onSuccess(e))}const Wr=new class{Bind(e,t){return Br(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return jr(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 Hr(e)}ReturnFrom(e){return e}TryFinally(e,t){return jr(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 jr(n=>{e({onSuccess:n.onSuccess,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline,onError:e=>{try{t(e)(n)}catch(e){n.onError(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 jr(e=>e.onSuccess(void 0))}};class Vr{constructor(){}}function qr(e,t){return new fn(0,t)}function zr(e,t){return t}function Zr(e,t,n){return dn(n,t)}new Vr;function Jr(e){return dn(e=>new pn(0,e),Rr("Name",e))}function Xr(e){return e.fields[0]}function Yr(e){return dn(e=>new wn(0,e),Rr("Website",e))}function Kr(e){return e.fields[0]}function Qr(e){return e.fields[0]}function eo(e){return e.fields[0]}function to(e){return e.fields[0]}class no extends U{constructor(e,t,n,r){super(),this.FirstName=e,this.LastName=t,this.Email=n,this.MobilePhone=r}}function ro(){return V("Dto.Primitives.ContactDetails",[],no,()=>[["FirstName",X],["LastName",X],["Email",X],["MobilePhone",X]])}function oo(e){return zr(0,()=>hn(t=>{const n=t;return hn(t=>{const r=t;return hn(t=>{const o=t;return Zr(0,dn(e=>new bn(0,e),Rr("MobilePhone",e.MobilePhone)),e=>new Cn(n,r,o,e))},dn(e=>new vn(0,e),hn(e=>Ur(e),Rr("Email",e.Email))))},dn(e=>new yn(0,e),Rr("LastName",e.LastName)))},dn(e=>new gn(0,e),Rr("FirstName",e.FirstName))))()}function io(e){return $n(e=>new En(0,e),e)}function so(e){if(null!=e){return e.fields[0]}}function uo(e){return e.fields[0]}function co(e){return e.fields[0]}class lo extends U{constructor(e,t,n,r,o,i,s,u,c){super(),this.BusinessName=e,this.BusinessNumber=t,this.Address1=n,this.Address2=r,this.City=o,this.Postcode=i,this.State=s,this.Phone=u,this.CountryCode=c}}function ao(){return V("Dto.Primitives.LegalEntity",[],lo,()=>[["BusinessName",X],["BusinessNumber",X],["Address1",X],["Address2",z(X)],["City",X],["Postcode",X],["State",z(X)],["Phone",X],["CountryCode",z(X)]])}var $o,fo,ho,po,mo,wo,_o,go={},yo=[],vo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function bo(e,t){for(var n in t)e[n]=t[n];return e}function Co(e){var t=e.parentNode;t&&t.removeChild(e)}function So(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?$o.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 Eo(e,s,r,o,null)}function Eo(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?++ho:o};return null==o&&null!=fo.vnode&&fo.vnode(i),i}function xo(e){return e.children}function Io(e,t){this.props=e,this.context=t}function ko(e,t){if(null==t)return e.__?ko(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?ko(e):null}function No(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 No(e)}}function Ao(e){(!e.__d&&(e.__d=!0)&&po.push(e)&&!Po.__r++||wo!==fo.debounceRendering)&&((wo=fo.debounceRendering)||mo)(Po)}function Po(){for(var e;Po.__r=po.length;)e=po.sort((function(e,t){return e.__v.__b-t.__v.__b})),po=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=bo({},o)).__v=o.__v+1,Go(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?ko(o):i,o.__h),jo(n,o),o.__e!=i&&No(o)))}))}function To(e,t,n,r,o,i,s,u,c,l){var a,$,f,d,h,p,m,w=r&&r.__k||yo,_=w.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(d=n.__k[a]=null==(d=t[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?Eo(null,d,null,null,d):Array.isArray(d)?Eo(xo,{children:d},null,null,null):d.__b>0?Eo(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(f=w[a])||f&&d.key==f.key&&d.type===f.type)w[a]=void 0;else for($=0;$<_;$++){if((f=w[$])&&d.key==f.key&&d.type===f.type){w[$]=void 0;break}f=null}Go(e,d,f=f||go,o,i,s,u,c,l),h=d.__e,($=d.ref)&&f.ref!=$&&(m||(m=[]),f.ref&&m.push(f.ref,null,d),m.push($,d.__c||h,d)),null!=h?(null==p&&(p=h),"function"==typeof d.type&&d.__k===f.__k?d.__d=c=Do(d,c,e):c=Oo(e,d,f,w,h,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=ko(f))}for(n.__e=p,a=_;a--;)null!=w[a]&&("function"==typeof n.type&&null!=w[a].__e&&w[a].__e==n.__d&&(n.__d=ko(r,a+1)),Ho(w[a],w[a]));if(m)for(a=0;a<m.length;a++)Bo(m[a],m[++a],m[++a])}function Do(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?Do(r,t,n):Oo(n,r,r,o,r.__e,t));return t}function Mo(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Mo(e,t)})):t.push(e)),t}function Oo(e,t,n,r,o,i){var s,u,c;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,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function Ro(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||vo.test(t)?n:n+"px"}function Uo(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||Ro(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Ro(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?Fo:Lo,i):e.removeEventListener(t,i?Fo:Lo,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 Lo(e){this.l[e.type+!1](fo.event?fo.event(e):e)}function Fo(e){this.l[e.type+!0](fo.event?fo.event(e):e)}function Go(e,t,n,r,o,i,s,u,c){var l,a,$,f,d,h,p,m,w,_,g,y=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,u=t.__e=n.__e,t.__h=null,i=[u]),(l=fo.__b)&&l(t);try{e:if("function"==typeof y){if(m=t.props,w=(l=y.contextType)&&r[l.__c],_=l?w?w.props.value:l.__:r,n.__c?p=(a=t.__c=n.__c).__=a.__E:("prototype"in y&&y.prototype.render?t.__c=a=new y(m,_):(t.__c=a=new Io(m,_),a.constructor=y,a.render=Wo),w&&w.sub(a),a.props=m,a.state||(a.state={}),a.context=_,a.__n=r,$=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=y.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=bo({},a.__s)),bo(a.__s,y.getDerivedStateFromProps(m,a.__s))),f=a.props,d=a.state,$)null==y.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==y.getDerivedStateFromProps&&m!==f&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,_),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,_)||t.__v===n.__v){a.props=m,a.state=a.__s,t.__v!==n.__v&&(a.__d=!1),a.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),a.__h.length&&s.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,_),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(f,d,h)}))}a.context=_,a.props=m,a.state=a.__s,(l=fo.__r)&&l(t),a.__d=!1,a.__v=t,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=bo(bo({},r),a.getChildContext())),$||null==a.getSnapshotBeforeUpdate||(h=a.getSnapshotBeforeUpdate(f,d)),g=null!=l&&l.type===xo&&null==l.key?l.props.children:l,To(e,Array.isArray(g)?g:[g],t,n,r,o,i,s,u,c),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),p&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,s,u){var c,l,a,$=n.props,f=t.props,d=t.type,h=0;if("svg"===d&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!d&&(d?c.localName===d:3===c.nodeType)){e=c,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&&$o.call(e.childNodes),l=($=n.props||go).dangerouslySetInnerHTML,a=f.dangerouslySetInnerHTML,!u){if(null!=i)for($={},h=0;h<e.attributes.length;h++)$[e.attributes[h].name]=e.attributes[h].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Uo(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]||Uo(e,i,t[i],n[i],r)}(e,f,$,o,u),a)t.__k=[];else if(h=t.props.children,To(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==d,i,s,i?i[0]:n.__k&&ko(n,0),u),null!=i)for(h=i.length;h--;)null!=i[h]&&Co(i[h]);u||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===d&&!h||"option"===d&&h!==$.value)&&Uo(e,"value",h,$.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Uo(e,"checked",h,$.checked,!1))}return e}(n.__e,t,n,r,o,i,s,c);(l=fo.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=u,t.__h=!!c,i[i.indexOf(u)]=null),fo.__e(e,t,n)}}function jo(e,t){fo.__c&&fo.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){fo.__e(e,t.__v)}}))}function Bo(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){fo.__e(e,n)}}function Ho(e,t,n){var r,o;if(fo.unmount&&fo.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Bo(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){fo.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Ho(r[o],t,"function"!=typeof e.type);n||null==e.__e||Co(e.__e),e.__e=e.__d=void 0}function Wo(e,t,n){return this.constructor(e,n)}function Vo(e,t,n){var r,o,i;fo.__&&fo.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Go(t,e=(!r&&n||t).__k=So(xo,null,[e]),o||go,go,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?$o.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),jo(i,e)}function qo(e,t){Vo(e,t,qo)}function zo(e,t,n){var r,o,i,s=bo({},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?$o.call(arguments,2):n),Eo(e.type,s,r||e.key,o||e.ref,null)}$o=yo.slice,fo={__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}},ho=0,Io.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=bo({},this.state),"function"==typeof e&&(e=e(bo({},n),this.props)),e&&bo(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),Ao(this))},Io.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ao(this))},Io.prototype.render=xo,po=[],mo="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Po.__r=0,_o=0;var Zo,Jo,Xo,Yo=0,Ko=[],Qo=fo.__b,ei=fo.__r,ti=fo.diffed,ni=fo.__c,ri=fo.unmount;function oi(e,t){fo.__h&&fo.__h(Jo,e,Yo||t),Yo=0;var n=Jo.__H||(Jo.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ii(e){return Yo=1,si(mi,e)}function si(e,t,n){var r=oi(Zo++,2);return r.t=e,r.__c||(r.__=[n?n(t):mi(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Jo),r.__}function ui(e,t){var n=oi(Zo++,3);!fo.__s&&pi(n.__H,t)&&(n.__=e,n.__H=t,Jo.__H.__h.push(n))}function ci(e,t){var n=oi(Zo++,4);!fo.__s&&pi(n.__H,t)&&(n.__=e,n.__H=t,Jo.__h.push(n))}function li(e,t){var n=oi(Zo++,7);return pi(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ai(e,t){fo.useDebugValue&&fo.useDebugValue(t?t(e):e)}function $i(){for(var e;e=Ko.shift();)if(e.__P)try{e.__H.__h.forEach(di),e.__H.__h.forEach(hi),e.__H.__h=[]}catch(t){e.__H.__h=[],fo.__e(t,e.__v)}}fo.__b=function(e){Jo=null,Qo&&Qo(e)},fo.__r=function(e){ei&&ei(e),Zo=0;var t=(Jo=e.__c).__H;t&&(t.__h.forEach(di),t.__h.forEach(hi),t.__h=[])},fo.diffed=function(e){ti&&ti(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Ko.push(t)&&Xo===fo.requestAnimationFrame||((Xo=fo.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),fi&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);fi&&(t=requestAnimationFrame(n))})($i)),Jo=null},fo.__c=function(e,t){t.some((function(e){try{e.__h.forEach(di),e.__h=e.__h.filter((function(e){return!e.__||hi(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],fo.__e(n,e.__v)}})),ni&&ni(e,t)},fo.unmount=function(e){ri&&ri(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{di(e)}catch(e){t=e}})),t&&fo.__e(t,n.__v))};var fi="function"==typeof requestAnimationFrame;function di(e){var t=Jo,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Jo=t}function hi(e){var t=Jo;e.__c=e.__(),Jo=t}function pi(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function mi(e,t){return"function"==typeof t?t(e):t}function wi(e,t){for(var n in t)e[n]=t[n];return e}function _i(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 gi(e){this.props=e}(gi.prototype=new Io).isPureReactComponent=!0,gi.prototype.shouldComponentUpdate=function(e,t){return _i(this.props,e)||_i(this.state,t)};var yi=fo.__b;fo.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),yi&&yi(e)};var vi="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function bi(e){function t(t,n){var r=wi({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=vi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Ci=function(e,t){return null==e?null:Mo(Mo(e).map(t))},Si={map:Ci,forEach:Ci,count:function(e){return e?Mo(e).length:0},only:function(e){var t=Mo(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Mo},Ei=fo.__e;fo.__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);Ei(e,t,n)};var xi=fo.unmount;function Ii(){this.__u=0,this.t=null,this.__b=null}function ki(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function Ni(){this.u=null,this.o=null}fo.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),xi&&xi(e)},(Ii.prototype=new Io).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=ki(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()}},c=!0===t.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(s,s)},Ii.prototype.componentWillUnmount=function(){this.t=[]},Ii.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=wi({},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&&So(xo,null,e.fallback);return o&&(o.__h=null),[So(xo,null,t.__e?null:e.children),o]};var Ai=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 Pi(e){return this.getChildContext=function(){return e.context},e.children}function Ti(e){var t=this,n=e.i;t.componentWillUnmount=function(){Vo(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)}}),Vo(So(Pi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Ni.prototype=new Io).__e=function(e){var t=this,n=ki(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Ai(t,e,r)):o()};n?n(i):i()}},Ni.prototype.render=function(e){this.u=null,this.o=new Map;var t=Mo(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},Ni.prototype.componentDidUpdate=Ni.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Ai(e,n,t)}))};var Di="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Mi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|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]/,Oi="undefined"!=typeof document,Ri=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Io.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Io.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ui=fo.event;function Li(){}function Fi(){return this.cancelBubble}function Gi(){return this.defaultPrevented}fo.event=function(e){return Ui&&(e=Ui(e)),e.persist=Li,e.isPropagationStopped=Fi,e.isDefaultPrevented=Gi,e.nativeEvent=e};var ji,Bi={configurable:!0,get:function(){return this.class}},Hi=fo.vnode;fo.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];Oi&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!Ri(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Mi.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===s&&(s=void 0),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=Mo(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Mo(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(Bi.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Bi))}e.$$typeof=Di,Hi&&Hi(e)};var Wi=fo.__r;fo.__r=function(e){Wi&&Wi(e),ji=e.__c};function Vi(e){return!!e&&e.$$typeof===Di}const qi={useState:ii,useReducer:si,useEffect:ui,useLayoutEffect:ci,useRef:function(e){return Yo=5,li((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){Yo=6,ci((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:li,useCallback:function(e,t){return Yo=8,li((function(){return e}),t)},useContext:function(e){var t=Jo.context[e.__c],n=oi(Zo++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Jo)),t.props.value):e.__},useDebugValue:ai,version:"17.0.2",Children:Si,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Vo(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return qo(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Vo(null,e),!0)},createPortal:function(e,t){return So(Ti,{__v:e,i:t})},createElement:So,createContext:function(e,t){var n={__c:t="__cC"+_o++,__: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(Ao)},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 So.bind(null,e)},cloneElement:function(e){return Vi(e)?zo.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:xo,isValidElement:Vi,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Io,PureComponent:gi,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:_i(this.props,e)}function r(t){return this.shouldComponentUpdate=n,So(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:bi,flushSync:function(e,t){return e(t)},unstable_batchedUpdates:function(e,t){return e(t)},StrictMode:xo,Suspense:Ii,SuspenseList:Ni,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 So(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:{current:{readContext:function(e){return ji.__n[e.__c].props.value}}}}},zi=e=>{ui(()=>{const t=e();return()=>{t.Dispose()}})},Zi=(e,t)=>{ui(()=>{const t=e();return()=>{t.Dispose()}},t)},Ji=e=>{ci(()=>{const t=e();return()=>{t.Dispose()}})};function Xi(e,t,n,r){const o=qi.memo(e,I(2,an(k(2,n),null)));return Tr(t=>{e.displayName=t},ln(t)),e=>{const t=Yi(r,e);return qi.createElement(o,t)}}function Yi(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function Ki(e){return{Dispose(){e()}}}function Qi(e){zi(e)}function es(e,t){Zi(e,t)}function ts(e){es(e,[])}function ns(e,t){Zi(t=>(e(),Ki(()=>{})),t)}function rs(e,t){return qi.useCallback(e,an(t,[]))}function os(e){return qi.useRef(e)}function is(e,t){return qi.useMemo(e,an(t,[]))}function ss(e){const t=os(e),n=rs(e=>t.current(e),[]);var r;return r=()=>{t.current=e},Ji(e=>(r(),Ki(()=>{}))),n}function us(e){return qi.useState(e)}function cs(e){}function ls(e){const t=new Lr("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function as(e){e.cancel()}function $s(e){return null!=e&&e.isCancelled}const fs=new Lr;function ds(e){return jr(t=>e([t.onSuccess,t.onError,t.onCancel]))}function hs(e,t){return function(e,t){return ps(e,t)}(e,t)}function ps(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Gr;e({onSuccess:t||cs,onError:n||cs,onCancel:r||cs,cancelToken:o||fs,trampoline:i})}class ms{constructor(e,t){this.k=e,this.v=t}}function ws(e,t){return new ms(e,t)}function _s(e){return e.k}function gs(e){return e.v}class ys extends ms{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=o}}function vs(e,t,n,r,o){return new ys(e,t,n,r,o)}function bs(e){return e.left}function Cs(e){return e.right}function Ss(e){return e.h}function Es(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ys){const o=i;t=e(r+1,bs(o)),n=Cs(o);continue e}return r+1|0}return 0|r}}(0,e)}function xs(e,t,n,r){let o,i,s;if(null!=e){const t=e;s=t instanceof ys?(o=t,Ss(o)):1}else s=0;let u;if(null!=r){const e=r;u=e instanceof ys?(i=e,Ss(i)):1}else u=0;const c=0|(s<u?u:s);return 0===c?ws(t,n):vs(t,n,e,r,c+1)}function Is(e,t,n,r){let o,i,s,u,c,l,a,$,f;if(null!=e){const t=e;f=t instanceof ys?(o=t,Ss(o)):1}else f=0;let d;if(null!=r){const e=r;d=e instanceof ys?(i=e,Ss(i)):1}else d=0;if(d>f+2){const o=cn(r);if(o instanceof ys){const r=o;if(s=bs(r),(null!=s?(u=s,u instanceof ys?(c=u,Ss(c)):1):0)>f+1){const o=cn(bs(r));if(o instanceof ys){const i=o;return xs(xs(e,t,n,bs(i)),_s(i),gs(i),xs(Cs(i),_s(r),gs(r),Cs(r)))}throw new Error("internal error: Map.rebalance")}return xs(xs(e,t,n,bs(r)),_s(r),gs(r),Cs(r))}throw new Error("internal error: Map.rebalance")}if(f>d+2){const o=cn(e);if(o instanceof ys){const e=o;if(l=Cs(e),(null!=l?(a=l,a instanceof ys?($=a,Ss($)):1):0)>d+1){const o=cn(Cs(e));if(o instanceof ys){const i=o;return xs(xs(bs(e),_s(e),gs(e),bs(i)),_s(i),gs(i),xs(Cs(i),t,n,r))}throw new Error("internal error: Map.rebalance")}return xs(bs(e),_s(e),gs(e),xs(Cs(e),t,n,r))}throw new Error("internal error: Map.rebalance")}return xs(e,t,n,r)}function ks(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,_s(o));if(o instanceof ys){const r=o;return i<0?Is(ks(e,t,n,bs(r)),_s(r),gs(r),Cs(r)):0===i?vs(t,n,bs(r),Cs(r),Ss(r)):Is(bs(r),_s(r),gs(r),ks(e,t,n,Cs(r)))}return i<0?vs(t,n,void 0,r,2):0===i?ws(t,n):vs(t,n,r,void 0,2)}return ws(t,n)}function Ns(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,_s(s));if(0===u)return un(gs(s));if(s instanceof ys){const i=s;e=r,t=o,n=u<0?bs(i):Cs(i);continue e}return}return}}function As(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ys){const o=i;e(r,bs(o)),r(_s(o),gs(o)),t=r,n=Cs(o);continue e}r(_s(i),gs(i))}break}}(e,t)}function Ps(e,t){return function e(t,n){if(null!=n){const r=n;if(r instanceof ys){const n=r,o=e(t,bs(n)),i=t(_s(n),gs(n)),s=e(t,Cs(n));return vs(_s(n),i,o,s,Ss(n))}return ws(_s(r),t(_s(r),gs(r)))}}(e,t)}function Ts(e,t,n){let r=0|n;As((e,n)=>{t[r]=[e,n],r+=1},e)}function Ds(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r],i=o[1];n=ks(e,o[0],i,n)}return n}function Ms(e,t){if(r(t)){return Ds(e,t)}if(t instanceof Gn){return function(e,t){return Kn((t,n)=>{const r=n[0],o=n[1];return ks(e,r,o,t)},void 0,t)}(e,t)}{const n=c(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"](),u=s[1];e=r,t=ks(r,s[0],u,o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class Os extends U{constructor(e,t){super(),this.stack=e,this.started=t}}function Rs(e){e:for(;;){const t=e;if(Zn(t))return Vn();{const n=Xn(t),r=Jn(t);if(null!=r){const o=r;if(o instanceof ys){const t=o;e=tr([bs(t),ws(_s(t),gs(t)),Cs(t)],n);continue e}return t}e=n;continue e}}}function Us(e){return new Os(Rs(zn(e)),!1)}function Ls(e){if(e.started){const t=e.stack;if(Zn(t))return function(){throw new Error("enumeration already finished")}();if(null!=Jn(t)){const e=Jn(t);if(e instanceof ys)throw new Error("Please report error: Map iterator, unexpected stack for current");return[_s(e),gs(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Fs(e){let t=Us(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ls(t),"System.Collections.IEnumerator.get_Current":()=>Ls(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zn(t))return!1;if(null!=Jn(t)){const n=Jn(t),r=Xn(t);if(n instanceof ys)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Rs(r),!Zn(e.stack)}Xn(t);throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Zn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Us(e)},Dispose(){}}}class Gs{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=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e[1],i=e[0];n=t(n,w(i)),n=t(n,w(o))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof Gs))return!1;{const t=e,n=c(this);try{const e=c(t);try{const t=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===e["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=e["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!y(r[0],o[0])||!y(r[1],o[1]))&&t()}return!0}return!1};return t()}finally{e.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+zt("; ",Dr(e=>Vt("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}GetEnumerator(){return Fs(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Fs(this.tree)}CompareTo(e){const t=this;if(e instanceof Gs){return 0|function(e,t,n){const r=yr(t);try{const t=yr(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=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{t.Dispose()}}finally{r.Dispose()}}((e,n)=>{const r=0|t.comparer.Compare(e[0],n[0]);return 0|(0!==r?r:S(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!!Vs(this,e[0])&&y(Hs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Ts(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ws(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ws(this)}get size(){return 0|Ws(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Dr(e=>[e[0],e[1]],this)}get(e){return Hs(this,e)}has(e){return Vs(this,e)}keys(){return Dr(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return Dr(e=>e[1],this)}forEach(e,t){const n=this;Tr(t=>{e(t[1],t[0],n)},n)}}function js(e,t){return new Gs(e,t)}function Bs(e){const t=ar();return js(t,Ms(t,e))}function Hs(e,t){return function(e,t,n){const r=Ns(e,t,n);if(null==r)throw new Error;return cn(r)}(e.comparer,t,e.tree)}function Ws(e){return Es(e.tree)}function Vs(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,_s(s));if(s instanceof ys){const i=s;if(u<0){e=r,t=o,n=bs(i);continue e}if(0===u)return!0;e=r,t=o,n=Cs(i);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function qs(e,t,n){return function(e,t,n){return js(e.comparer,ks(e.comparer,t,n,e.tree))}(n,e,t)}function zs(e,t){return function(e,t){return Ns(e.comparer,t,e.tree)}(t,e)}function Zs(e,t){return r=e,js((n=t).comparer,Ps(r,n.tree));var n,r}function Js(){return Gs.empty}(()=>{const e=ar();Gs.empty=js(e,void 0)})();class Xs extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function Ys(e){return q("Feliz.UseDeferred.Deferred`1",[e],Xs,()=>[[],[],[["Item",e]],[["Item",W("System.Exception")]]])}function Ks(e,t){const n=os(ls());ts(()=>Ki(()=>{as(n.current)}));return ss(r=>{var o;$s(n.current)||hs((o=r,Wr.Delay(()=>Wr.TryWith(Wr.Delay(()=>(t(new Xs(1)),Wr.Bind(e(o),e=>(t(new Xs(2,e)),Wr.Zero())))),e=>{const n=e;return console.log(un(n)),t(new Xs(3,n)),Wr.Zero()}))),n.current)})}const Qs=(()=>{try{if("undefined"!=typeof window&&"function"==typeof window.addEventListener){const e={passive:!0};window.addEventListener("testPassiveEventSupport",e=>{},e),window.removeEventListener("testPassiveEventSupport",e=>{})}}catch(e){}return!1})();function eu(e){return $n(e=>e.passive&&!Qs?{capture:e.capture,once:e.once,passive:!1}:e,e)}function tu(e){return t=e=>e.capture?{capture:!0}:void 0,null!=(n=e)?t(cn(n)):void 0;var t,n}var nu={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[de](){const e=this;return{multiply:t=>e.mul(t),toPrecision:t=>e.toPrecision(t),toExponential:t=>e.toExponential(t),toFixed:t=>e.toFixed(t),toHex:()=>(Number(e)>>>0).toString(16)}}},ru="[big.js] ",ou=ru+"Invalid ",iu=ou+"decimal places",su=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function uu(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!su.test(t+=""))throw Error(ou+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r<n&&r<o&&"0"==t.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=n-r-1,e.c=[],n=0;r<o;)e.c[n++]=+t.charAt(r++);return e=cu(e,au.DP,au.RM)}function cu(e,t,n,r){var o=e.c,i=e.e+t+1;if(i<o.length){if(1===n)r=o[i]>=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||void 0!==o[i+1]||1&o[i-1]);else if(3===n){const e=o.findIndex((e,t)=>t>=i&&e>0)<0;r=r||!e}else if(r=!1,0!==n)throw Error("[big.js] Invalid rounding mode");if(i<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error("[big.js] Invalid rounding mode");return e}function lu(e,t,n,r){var o,i,s=e.constructor,u=!e.c[0];if(void 0!==n){if(n!==~~n||n<(3==t)||n>1e6)throw Error(3==t?ou+"precision":iu);for(n=r-(e=new s(e)).e,e.c.length>++r&&cu(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(o=e.e,n=(i=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=o||o<=s.NE||o>=s.PE))i=i.charAt(0)+(n>1?"."+i.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)i="0"+i;i="0."+i}else if(o>0)if(++o>n)for(o-=n;o--;)i+="0";else o<n&&(i=i.slice(0,o)+"."+i.slice(o));else n>1&&(i=i.charAt(0)+"."+i.slice(1));return e.s<0&&(!u||4==t)?"-"+i:i}nu.abs=function(){var e=new this.constructor(this);return e.s=1,e},nu.cmp=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=r.s,u=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?s:i[0]?-u:0;if(s!=u)return s;if(t=s<0,c!=l)return c>l^t?1:-1;for(u=Math.max(o.length,i.length),s=0;s<u;s++)if((c=s<o.length?o[s]:0)!=(l=s<i.length?i[s]:0))return c>l^t?1:-1;return 0},nu.div=function(e){var t=this.constructor,n=new t(this),r=(e=new t(e),n.c),o=e.c,i=n.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(iu);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return new t(0*i);var u,c,l,a,$,f=o.slice(),d=u=o.length,h=r.length,p=r.slice(0,u),m=p.length,w=e,_=w.c=[],g=0,y=s+(w.e=n.e-e.e)+1;for(w.s=i,i=y<0?0:y,f.unshift(0);m++<u;)p.push(0);do{for(l=0;l<10;l++){if(u!=(m=p.length))a=u>m?1:-1;else for($=-1,a=0;++$<u;)if(o[$]!=p[$]){a=o[$]>p[$]?1:-1;break}if(!(a<0))break;for(c=m==u?o:f;m;){if(p[--m]<c[m]){for($=m;$&&!p[--$];)p[$]=9;--p[$],p[m]+=10}p[m]-=c[m]}for(;!p[0];)p.shift()}_[g++]=a?l:++l,p[0]&&a?p[m]=r[d]||0:p=[r[d]]}while((d++<h||void 0!==p[0])&&i--);return _[0]||1==g||(_.shift(),w.e--),g>y&&cu(w,s,t.RM,void 0!==p[0]),w},nu.eq=function(e){return!this.cmp(e)},nu.gt=function(e){return this.cmp(e)>0},nu.gte=function(e){return this.cmp(e)>-1},nu.lt=function(e){return this.cmp(e)<0},nu.lte=function(e){return this.cmp(e)<1},nu.minus=nu.sub=function(e){var t,n,r,o,i=this.constructor,s=new i(this),u=(e=new i(e),s.s),c=e.s;if(u!=c)return e.s=-c,s.plus(e);var l=s.c.slice(),a=s.e,$=e.c,f=e.e;if(!l[0]||!$[0])return $[0]?(e.s=-c,e):new i(l[0]?s:0);if(u=a-f){for((o=u<0)?(u=-u,r=l):(f=a,r=$),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=l.length<$.length)?l:$).length,u=c=0;c<n;c++)if(l[c]!=$[c]){o=l[c]<$[c];break}if(o&&(r=l,l=$,$=r,e.s=-e.s),(c=(n=$.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>u;){if(l[--n]<$[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=$[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--f;return l[0]||(e.s=1,l=[f=0]),e.c=l,e.e=f,e},nu.mod=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,t=1==e.cmp(r),r.s=o,e.s=i,t?new n(r):(o=n.DP,i=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=o,n.RM=i,this.minus(r.times(e)))},nu.plus=nu.add=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.s),i=e.s;if(o!=i)return e.s=-i,r.minus(e);var s=r.e,u=r.c,c=e.e,l=e.c;if(!u[0]||!l[0])return l[0]?e:new n(u[0]?r:0*o);if(u=u.slice(),o=s-c){for(o>0?(c=s,t=l):(o=-o,t=u),t.reverse();o--;)t.push(0);t.reverse()}for(u.length-l.length<0&&(t=l,l=u,u=t),o=l.length,i=0;o;u[o]%=10)i=(u[--o]=u[o]+l[o]+i)/10|0;for(i&&(u.unshift(i),++c),o=u.length;0===u[--o];)u.pop();return e.c=u,e.e=c,e},nu.pow=function(e){var t=this.constructor,n=new t(this),r=new t(1),o=new t(1),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(ou+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},nu.round=function(e,t){var n=this.constructor;if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(iu);return cu(new n(this),e,void 0===t?n.RM:t)},nu.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r(.5);if(!o.c[0])return new r(o);if(i<0)throw Error(ru+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((t=o.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new r(((i=Math.sqrt(t))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new r(i),s=e.e+(r.DP+=4);do{n=e,e=u.times(n.plus(o.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return cu(e,r.DP-=4,r.RM)},nu.times=nu.mul=function(e){var t,n=this.constructor,r=new n(this),o=(e=new n(e),r.c),i=e.c,s=o.length,u=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return new n(0*e.s);for(e.e=c+l,s<u&&(t=o,o=i,i=t,l=s,s=u,u=l),t=new Array(l=s+u);l--;)t[l]=0;for(c=u;c--;){for(u=0,l=s+c;l>c;)u=t[l]+i[c]*o[l-c-1]+u,t[l--]=u%10,u=u/10|0;t[l]=(t[l]+u)%10}for(u?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},nu.toExponential=function(e){return lu(this,1,e,e)},nu.toFixed=function(e){return lu(this,2,e,this.e+e)},nu.toPrecision=function(e){return lu(this,3,e,e-1)},nu.toString=function(){return lu(this)},nu.valueOf=nu.toJSON=function(){return lu(this,4)};var au=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if((e=cu(e,28,0)).c.length>1&&!e.c[0]){let t=e.c.findIndex(e=>e);e.c=e.c.slice(t),e.e=e.e-t}}(r)):uu(r,n),r.constructor=t}return t.prototype=nu,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.version="5.2.2",t}(),$u=au;new $u(0),new $u(1),new $u(-1),new $u("79228162514264337593543950335"),new $u("-79228162514264337593543950335");function fu(e,t){return 0===t.indexOf(e)?t:void 0}function du(e,t){return function(e,t){const n=e.lastIndexOf(t);return n>=0&&n===e.length-t.length}(t,e)?t:void 0}function hu(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s,u;return t=fu("/",e),null!=t?(n=t,"#"+n):(r=fu("#/",e),null!=r?(o=r,o):(i=fu("#",e),null!=i?(s=i,"#/"+Xt(s,1,s.length-1)):(u=e,"#/"+u)))}:e=>{let t,n,r;return t=fu("/",e),null!=t?(n=t,n):(r=e,"/"+r)}}(t)(zt("/",sr(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function pu(e,t,n){1===t?history.pushState(void 0,"",hu(e,n)):history.replaceState(void 0,"",hu(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function mu(e,t){return function(e,t){const n=new Gn(null,void 0);let r=n,o=t;for(;null!=o.tail;){let t=e(Hn(o));for(;null!=t.tail;){const e=r,n=new Gn(Hn(t),void 0);e.tail=n,r=n,t=Wn(t)}o=Wn(o)}const i=r,s=new Gn(null,void 0);return i.tail=s,Wn(n)}(e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return Vn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Dt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return Vn();if(null!=fu("?",t))return zn(t);{const e=t.split("?");if(Un(0,e,null)||1!==e.length){if(Un(0,e,null)||2!==e.length)return Vn();if(""===e[1]){const t=e[0];return zn(decodeURIComponent(t))}{const t=e[0],n=e[1];return nr([decodeURIComponent(t),"?"+n])}}{const t=e[0];return zn(decodeURIComponent(t))}}}var t},nr(Jt(null!=fu("#",e)?Xt(e,1,e.length-1):1===t&&(null!=du("#",e)||null!=du("#/",e))?"":e,["/"],null,0)))}const wu=Xi(e=>{const t=ss(t=>{const n=an(e.onUrlChanged,e=>{});return function(e,t,n){return t(mu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(0|an(e.hashMode,1),n)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",n=e=>{t(e)},r=void 0,o=is(()=>eu(r),[r]),i=is(()=>tu(r),[r]),s=is(()=>e=>{n(e)},[n]);Qi(ss(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Ki(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}else{const e="popstate",n=t,r=void 0,o=is(()=>eu(r),[r]),i=is(()=>tu(r),[r]),s=is(()=>e=>{n(e)},[n]);Qi(ss(()=>{if(null==o)window.addEventListener(e,s);else{const t=o;window.addEventListener(e,s,t)}return Ki(()=>{if(null==i)window.removeEventListener(e,s);else{const t=i;window.removeEventListener(e,s,t)}})}))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=is(()=>eu(void 0),[void 0]),i=is(()=>tu(void 0),[void 0]),s=is(()=>e=>{r(e)},[r]);Qi(ss(()=>{if(null==o)window.addEventListener(n,s);else{const e=o;window.addEventListener(n,s,e)}return Ki(()=>{if(null==i)window.removeEventListener(n,s);else{const e=i;window.removeEventListener(n,s,e)}})}));const u=e.application;return null==u?null:u},void 0,gu,_u);var _u,gu;class yu extends U{constructor(e,t,n,r,o,i,s){super(),this.StreamId=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s}}function vu(){return V("AccountRegistry.AdminUI.Types.Account",[],yu,()=>[["StreamId",rn()],["PartnerId",kn()],["Name",mn()],["Website",_n()],["ContactDetails",Sn()],["Notes",z(xn())],["LegalEntity",z(ao())]])}function bu(e){return zr(0,()=>hn(t=>{const n=t;return hn(t=>{const r=t;return hn(t=>{const o=t;return Zr(0,oo(e.ContactDetails),t=>{const i=t;return new yu(new nn(0,e.StreamId),n,r,o,i,io(e.Notes),e.LegalEntity)})},Yr(e.Website))},Jr(e.Name))},dn(e=>new In(0,e),Rr("PartnerId",e.PartnerId))))()}class Cu extends U{constructor(e,t,n,r,o,i){super(),this.StreamId=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o,this.Accounts=i}}function Su(){return V("AccountRegistry.AdminUI.Types.Partner",[],Cu,()=>[["StreamId",rn()],["Name",mn()],["Website",_n()],["ContactDetails",Sn()],["Notes",z(xn())],["Accounts",Ys(q("Microsoft.FSharp.Core.FSharpResult`2",[Z(vu()),X],fn,()=>[[["ResultValue",Z(vu())]],[["ErrorValue",X]]]))]])}class Eu extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PartnerList","Partner","PartnerAccountList","PartnerSuperConfiguration","Account","AccountSuperConfiguration","NotFound"]}}function xu(){return q("AccountRegistry.AdminUI.Types.Page",[],Eu,()=>[[],[["Item",kn()]],[["Item",kn()]],[["Item",kn()]],[["Item1",kn()],["Item2",An()]],[["Item1",kn()],["Item2",An()]],[]])}function Iu(e){let t,n,r,o,i,s,u,c;switch(Zn(e)?t=6:"account-registry"===Jn(e)?Zn(Xn(e))?t=6:"partners"===Jn(Xn(e))?Zn(Xn(Xn(e)))?t=0:Zn(Xn(Xn(Xn(e))))?(t=1,n=Jn(Xn(Xn(e)))):"accounts"===Jn(Xn(Xn(Xn(e))))?Zn(Xn(Xn(Xn(Xn(e)))))?(t=2,r=Jn(Xn(Xn(e)))):Zn(Xn(Xn(Xn(Xn(Xn(e))))))?(t=4,i=Jn(Xn(Xn(Xn(Xn(e))))),s=Jn(Xn(Xn(e)))):"super-configuration"===Jn(Xn(Xn(Xn(Xn(Xn(e))))))&&Zn(Xn(Xn(Xn(Xn(Xn(Xn(e)))))))?(t=5,u=Jn(Xn(Xn(Xn(Xn(e))))),c=Jn(Xn(Xn(e)))):t=6:"super-configuration"===Jn(Xn(Xn(Xn(e))))&&Zn(Xn(Xn(Xn(Xn(e)))))?(t=3,o=Jn(Xn(Xn(e)))):t=6:t=6:t=6,t){case 0:return new Eu(0);case 1:return new Eu(1,new In(0,n));case 2:return new Eu(2,new In(0,r));case 3:return new Eu(3,new In(0,o));case 4:return new Eu(4,new In(0,s),new Nn(0,i));case 5:return new Eu(5,new In(0,c),new Nn(0,u));case 6:return new Eu(6)}}function ku(e){switch(e.tag){case 1:return nr(["account-registry","partners",uo(e.fields[0])]);case 2:return nr(["account-registry","partners",uo(e.fields[0]),"accounts"]);case 3:return nr(["account-registry","partners",uo(e.fields[0]),"super-configuration"]);case 4:{const t=e.fields[0],n=e.fields[1];return nr(["account-registry","partners",uo(t),"accounts",co(n)])}case 5:{const t=e.fields[0],n=e.fields[1];return nr(["account-registry","partners",uo(t),"accounts",co(n),"super-configuration"])}default:return nr(["account-registry","partners"])}}function Nu(e){switch(e.tag){case 1:{const t=["account-registry","partners",uo(e.fields[0])];return zn(e=>{pu(nr(t),1,1)})}case 2:{const t=["account-registry","partners",uo(e.fields[0]),"accounts"];return zn(e=>{pu(nr(t),1,1)})}case 3:{const t=["account-registry","partners",uo(e.fields[0]),"super-configuration"];return zn(e=>{pu(nr(t),1,1)})}case 4:{const t=e.fields[0],n=e.fields[1],r=["account-registry","partners",uo(t),"accounts",co(n)];return zn(e=>{pu(nr(r),1,1)})}case 5:{const t=e.fields[0],n=e.fields[1],r=["account-registry","partners",uo(t),"accounts",co(n),"super-configuration"];return zn(e=>{pu(nr(r),1,1)})}default:{const e=["account-registry","partners"];return zn(t=>{pu(nr(e),1,1)})}}}class Au extends U{constructor(e){super(),this.Partners=e}}function Pu(){return V("AccountRegistry.AdminUI.Types.Data",[],Au,()=>[["Partners",Z(Su())]])}function Tu(){return Vn()}class Du extends U{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function Mu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Mu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}_t(2013265921,0,!1),_t(2013265921,0,!0);On(28,e=>Mu(2,e),Int32Array);function Ou(e){return e.bound}function Ru(e,t){return e.digits[t]}function Uu(e,t){return vt(Ru(e,t),!1,2)}function Lu(e,t,n){e.digits[t]=n}function Fu(e,t){for(;;){const n=e,r=t;if(0===r)return _t(1,0,!1);if(r%2!=0)return ft(n,Fu(ft(n,n),~~(r/2)));e=ft(n,n),t=~~(r/2)}}function Gu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*Gu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const ju=_t(16777216,0,!1),Bu=_t(16777215,0,!1);_t(16777215,0,!0);function Hu(e){return new Du(e,new Int32Array(e))}function Wu(e){const t=0|((e,t)=>{for(;;){const n=e,r=t;if(-1===r||0!==n[r])return r+1|0;e=n,t=r-1}})(e.digits,e.bound-1);return e.bound=t,e}function Vu(e){const t=0|(e<0?0:e);if(t<16777216){const e=Hu(1);return e.digits[0]=t,Wu(e)}{const e=Hu(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/Gu(16777216,n))%16777216;return Wu(e)}}const qu=Vu(1),zu=Vu(0);function Zu(e){return e.bound-1}function Ju(e){return 0===e.bound}function Xu(e,t){if(e.bound===t.bound){return((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}return!1}function Yu(e,t){if(e.bound<t.bound)return-1;if(e.bound>t.bound)return 1;return 0|((e,t,n)=>{for(;;){const r=e,o=t,i=n;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,t=o,n=i-1}})(e.digits,t.digits,e.bound-1)}function Ku(e,t){return-1===Yu(e,t)}function Qu(e,t,n){for(;;){const r=e,o=t,i=n;if(!(wt(o,_t(0,0,!1))>0))break;{const s=$t(Uu(r,i),o);Lu(r,i,~~gt(mt(s,Bu))),e=r,t=dt(s,ju),n=i+1}}}function ec(e,t){const n=0|Ou(e),r=Hu(n+1|0),o=vt(t,!1,2);let i=_t(0,0,!1);for(let t=0;t<=n-1;t++){const n=$t($t(i,Uu(r,t)),ft(Uu(e,t),o));Lu(r,t,~~gt(mt(n,Bu))),i=dt(n,ju)}return Qu(r,i,n),Wu(r)}function tc(e,t){const n=1===Ou(e),r=1===Ou(t);return n&&r?function(e,t){const n=Hu(2),r=ft(vt(e,!1,2),vt(t,!1,2));return Lu(n,0,~~gt(mt(r,Bu))),Lu(n,1,~~gt(dt(r,ju))),Wu(n)}(Ru(e,0),Ru(t,0)):n?ec(t,Ru(e,0)):r?ec(e,Ru(t,0)):function(e,t){const n=Hu(e.bound+t.bound|0),r=n.digits,o=e.digits,i=t.digits;for(let s=0;s<=e.bound-1;s++){const e=vt(o[s],!1,2);let u=_t(0,0,!1),c=0|s;for(let n=0;n<=t.bound-1;n++){const t=vt(i[n],!1,2),o=$t($t(vt(r[c],!1,2),u),ft(e,t));r[c]=~~gt(mt(o,Bu)),u=dt(o,ju),c+=1}Qu(n,u,c)}return Wu(n)}(e,t)}class nc extends U{constructor(e,t,n,r,o,i,s){super(),this.bigL=0|e,this.twoToBigL=0|t,this.k=0|n,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=s}}function rc(e,t,n,r){return new nc(e,Gu(2,e),t,n,r,~~(24/e),On(~~(24/e),t=>Gu(2,e*t),Int32Array))}const oc=[rc(1,28,268435456,268435456),rc(2,26,67108864,134217728),rc(3,24,16777216,50331648),rc(4,22,4194304,16777216),rc(5,20,1048576,5242880),rc(6,18,262144,1572864),rc(7,16,65536,458752),rc(8,14,16384,131072),rc(9,12,4096,36864),rc(10,10,1024,10240),rc(11,8,256,2816),rc(12,6,64,768),rc(13,4,16,208)];On(24,e=>Gu(2,e)-1,Int32Array),On(24,e=>Gu(2,e),Int32Array),On(24,e=>Fu(_t(2,0,!1),e));oc[0].bigN;function ic(e,t){return tc(e,t)}function sc(e,t,n,r){const o=e,i=[e.digits,Zu(e)],s=0|i[1],u=i[0],c=[n.digits,Zu(n)],l=0|c[1],a=c[0],$=vt(t,!1,2);let f=0,d=ft($,vt(a[0],!1,2));for(;wt(d,_t(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~gt(mt(d,Bu)),t=dt(d,ju);e<=u[f+r]?u[f+r]=u[f+r]-e:(u[f+r]=u[f+r]+(16777216-e),t=$t(t,_t(1,0,!1))),d=f<l?$t(t,ft($,vt(a[f+1],!1,2))):t,f+=1}Wu(o)}function uc(e,t,n,r){const o=e,i=[e.digits,Zu(e)],s=0|i[1],u=i[0],c=[n.digits,Zu(n)],l=0|c[1],a=c[0],$=vt(t,!1,2);let f=0,d=ft($,vt(a[0],!1,2));for(;wt(d,_t(0,0,!1))>0||f<l;){if(f>s)throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=0|~~gt(mt(d,Bu)),t=dt(d,ju);e<16777216-u[f+r]?u[f+r]=u[f+r]+e:(u[f+r]=e-(16777216-u[f+r]),t=$t(t,_t(1,0,!1))),d=f<l?$t(t,ft($,vt(a[f+1],!1,2))):t,f+=1}Wu(o)}function cc(e,t,n){const r=[Zu(t),Zu(e)],o=0|r[1],i=0|r[0];if(o<i+n)return 0;{const r=[t.digits,e.digits],a=r[1],$=r[0];let f;if(0===i)if(o===n)f=~~(a[n]/$[0]);else{const e=dt($t(ft(vt(a[o],!1,2),ju),vt(a[o-1],!1,2)),vt($[0],!1,2));f=~~gt(e)}else if(o===i+n)f=~~(a[o]/($[i]+1));else{const e=dt($t(ft(vt(a[o],!1,2),ju),vt(a[o-1],!1,2)),$t(vt($[i],!1,2),_t(1,0,!1)));f=~~gt(e)}if(0===f){return 1!=(u=n,c=e,l=0,(s=t).bound+u<c.bound+l?-1:s.bound+u>c.bound+u?1:0|((e,t,n)=>{e:for(;;){const r=e,o=t,i=n;if(-1===i)return 0;{const s=0|(i<u?0:r[i-u]),c=0|(i<l?0:o[i-l]);if(s===c){e=r,t=o,n=i-1;continue e}return s<c?-1:1}}})(s.digits,c.digits,s.bound+u-1))?1:0}return 0|f}var s,u,c,l}function lc(e,t){if(Ju(t))throw new Error;if(Zu(e)<Zu(t))return[zu,e];{const n=function(e){return new Du(e.bound,e.digits.slice())}(e),r=Hu(Zu(e)-Zu(t)+1+1);let o=0|Zu(e);const i=0|Zu(t);let s=o-i|0;const u=e=>{};let c=!1;for(;!c;){u([r,n,s,o]);const e=0|cc(n,t,s);e>0?(sc(n,e,t,s),uc(r,e,qu,s),u([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,n,s-1,o]),s-=1):(u([r,n,s-1,o-1]),s-=1,o-=1)))}return[Wu(r),Wu(n)]}}Vu(2);function ac(e){return Vu(e)}function $c(e){return function(e){const t=wt(e,_t(0,0,!1))<0?_t(0,0,!1):e,n=Hu(3);for(let e=0;e<=2;e++)n.digits[e]=~~gt(ht(dt(t,Fu(ju,e)),ju));return Wu(n)}(e)}function fc(e){const t=0|Zu(e),n=((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(Zu(s)>t)return qn([i,s],o);e=qn([i,s],o),n=i+1,r=ic(s,s)}})(Vn(),0,Vu(10)),r=(e,t,n,o)=>{if(Zn(o)){const r=0|function(e){if(1===e.bound)return 0|e.digits[0];{let t=0;for(let n=e.bound-1;n>=0;n--)t=e.digits[n]+16777216*t;return 0|t}}(n);return e&&0===r?t:qn(f(r),t)}{const i=Jn(o)[1],s=Xn(o),u=lc(n,i),c=u[1],l=u[0];if(e&&Ju(l)){return r(e,t,c,s)}{const n=r(!1,t,c,s);return r(e,n,l,s)}}},o=n,i=r(!0,Vn(),e,o);return Zn(i)?"0":zt("",Yn(i))}function dc(e){return e.bound<=1}function hc(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class pc extends U{constructor(e,t){super(),this.signInt=e,this.v=t}toString(){const e=this;switch(0|_c(e)){case-1:return Ju(gc(e))?"0":"-"+fc(gc(e));case 0:return"0";case 1:return fc(gc(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){if(e instanceof pc){return yc(this,e)}return!1}GetHashCode(){return 0|(0===_c(e=this)?1:_c(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3);return 0|t}(gc(e))|0);var e}CompareTo(e){if(e instanceof pc){return 0|function(e,t){return vc(e,t)?-1:yc(e,t)?0:1}(this,e)}throw new Error("the objects are not comparable\\nParameter name: obj")}}function mc(e,t){return new pc(e,t)}function wc(e){return dc(e)&&hc(e)<pc.smallLim?pc.smallPosTab[hc(e)]:e}function _c(e){return e.signInt}function gc(e){return e.v}function yc(e,t){const n=[_c(e),_c(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:case 1:return Xu(gc(e),gc(t));case 2:case 3:return!!Ju(gc(e))&&Ju(gc(t));case 4:return!0;case 5:case 6:return Ju(gc(t));case 7:case 8:return Ju(gc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function vc(e,t){const n=[_c(e),_c(t)];let r;switch(r=-1===n[0]?-1===n[1]?1:0===n[1]?8:1===n[1]?3:9:0===n[0]?-1===n[1]?6:0===n[1]?4:1===n[1]?5:9:1===n[0]?-1===n[1]?2:0===n[1]?7:1===n[1]?0:9:9,r){case 0:return Ku(gc(e),gc(t));case 1:return Ku(gc(t),gc(e));case 2:return!1;case 3:return!Ju(gc(e))||!Ju(gc(t));case 4:return!1;case 5:return!Ju(gc(t));case 6:case 7:return!1;case 8:return!Ju(gc(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function bc(e){return e>=0?mc(1,wc(ac(e))):mc(-1,wc(-2147483648===e?$c(pt(vt(e,!1,2))):ac(fe(e))))}function Cc(){return pc.one}function Sc(){return pc.two}function Ec(){return pc.zero}pc.smallLim=4096,pc.smallPosTab=On(pc.smallLim,e=>ac(e)),pc.one=bc(1),pc.two=bc(2),pc.zero=bc(0);Ec(),Cc(),Sc();Ec(),Cc();class xc{constructor(){}}function Ic(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(y(n,null))return Promise.reject(e);try{return Promise.resolve(n(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return t().catch(e)}catch(t){try{return Promise.resolve(e(t))}catch(e){return Promise.reject(e)}}}}}const kc=new xc;class Nc extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Ac{constructor(e){this.state=new Nc(0,Dn(new Array(E((e,t)=>b(e,t),e,10)),0,E((e,t)=>b(e,t),e,10),null),0)}}function Pc(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 Nc(0,o,n):new Nc(1,o,n,i),un(o[r])}}function Tc(e,t,n){const r=os(e[0]),o=os(new Ac(10));const s=us(e[0]),u=s[1],c=s[0];let l;const a=os(ls()),$=os(a.current);ts(()=>Ki(()=>{as(a.current)})),l=$;const f=()=>{setTimeout(()=>{let e;e=l.current,$s(e)||u(r.current)},0)},d=e=>{var n;(n=Ic(0,()=>{let n=un(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(kc,()=>{let e;return null!=n&&(e=l.current,!$s(e))},Ic(0,()=>{const e=cn(n),i=t(e,r.current),s=i[0];return er(e=>{e(d)},i[1]),n=Pc(o.current),r.current=s,f(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},h=ss(d);var p;return es(()=>Ki(()=>{let e,t;Tr(e=>{e.Dispose()},ln((e=r.current,i(e)?(t=e,t):void 0)))}),n),ns(()=>{r.current=e[0],f(),er(e=>{e(h)},e[1])},n),p=()=>{Tr(h,ln(Pc(o.current)))},zi(e=>(p(),Ki(()=>{}))),[c,h]}class Dc{constructor(){}}function Mc(e,t){return Wr.Delay(t)}new Dc;class Oc extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Rc extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class Uc extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class Lc extends U{constructor(e,t,n,r,o,i,s){super(),this.url=e,this.method=t,this.headers=n,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=s}}class Fc extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Gc extends U{constructor(e,t,n,r,o){super(),this.statusCode=0|e,this.responseText=t,this.responseType=n,this.responseHeaders=r,this.content=o}}const jc=new Lc("",new Oc(0),Vn(),!1,void 0,void 0,new Uc(0));new Gc(0,"","",Js(),new Fc(0,""));function Bc(e,t){return qt(t)?[t]:Jt(t,[e],null,0)}function Hc(e){return new Lc(e,jc.method,jc.headers,jc.withCredentials,jc.overridenMimeType,jc.overridenResponseType,jc.content)}function Wc(e,t){return new Lc(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function Vc(e){return ds(t=>{const n=t[0],r=(t[1],new XMLHttpRequest);r.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),r.onreadystatechange=()=>{let e,t,o,i,s,u;4===r.readyState&&n((t=r.responseType,e=""===t||"text"===t?r.responseText:"",o=0|r.status,i=r.responseType,u=r.responseType,s=""===u||"text"===u?new Fc(0,r.responseText):new Fc("arraybuffer"===u?2:"blob"===u?1:3,r.response),new Gc(o,e,i,function(e){const t=ar();return js(t,Ds(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=cn(o);r.push(e)}}return"function"==typeof n?Mn(e=>e,r,n):r}(e=>{const t=nr(Bc(":",e));if(!Zn(t)){const e=Xn(t);return[Jn(t).toLocaleLowerCase(),zt(":",e).trim()]}},Bc("\r\n",r.getAllResponseHeaders()))),s)))};const o=c(e.headers);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const e=o["System.Collections.Generic.IEnumerator`1.get_Current"](),t=e.fields[1],n=e.fields[0];r.setRequestHeader(n,t)}}finally{o.Dispose()}r.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(null==i);else{const e=i;r.overrideMimeType(e)}const s=e.overridenResponseType;null==s||(1===s.tag?r.responseType="blob":2===s.tag?r.responseType="arraybuffer":r.responseType="text");const u=[e.method,e.content];if(0===u[0].tag)r.send(un(void 0));else if(1===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else if(3===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else if(2===u[1].tag){const e=u[1].fields[0];r.send(un(e))}else r.send(un(void 0))})}function qc(e,t){return function(e,t,n){e:for(;;){const r=e,o=t,i=n;if(Zn(i))return r;{const s=Xn(i),u=Jn(i),c=zr(0,()=>hn(e=>{const t=e;return Zr(0,r,e=>or(e,zn(t)))},o(u)))();if(1===c.tag)return c;e=c,t=o,n=s;continue e}}}(new fn(0,Vn()),e,t)}function zc(e){return qc(e=>e,e)}const Zc=0,Jc=1,Xc=2,Yc=3,Kc=4;function Qc(e,t){return e.replace(/[a-z]?[A-Z]/g,e=>1===e.length?e.toLowerCase():e.charAt(0)+t+e.charAt(1).toLowerCase())}function el(e,t=Zc){const n={},r=t;function o(e){throw new Error("Cannot infer key and value of "+String(e))}function i(e,t,r){e=function(e,t){switch(t){case Jc:return e.charAt(0).toLowerCase()+e.slice(1);case Xc:return Qc(e,"_");case Yc:return Qc(e,"_").toUpperCase();case Kc:return Qc(e,"-");case Zc:default:return e}}(e,t),n[e]=r}for(let t of e){let e=Zc;if(null==t&&o(t),t instanceof P){const n=t.cases()[t.tag];t=0===t.fields.length?n:[n].concat(t.fields),e=r}if(Array.isArray(t))switch(t.length){case 0:o(t);break;case 1:i(t[0],e,!0);break;case 2:const n=t[1];i(t[0],e,n);break;default:i(t[0],e,t.slice(1))}else"string"==typeof t?i(t,e,!0):o(t)}return n}class tl extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class nl extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class rl{constructor(){this.cache=new Map([])}}function ol(){return new rl}ol(),ol();function il(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function sl(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Tt(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=Mt(e,s),c=Mt.length>r?(i=u[r-1],s.substring(0,i.index+i[0].length)):s;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}return t.replace(e,n)}(il(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return il(t)}}function ul(e,t){const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function cl(e,t){try{return t.contents=function(e){const t=At(e),n=bt.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return ul(t.getTime(),r)}(e),!0}catch(e){return!1}}function ll(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return al(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 al(e){return yt(dt(e,1e4))}function $l(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 ll(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*ll(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class fl{constructor(e){this.k=e}}function dl(e){return new fl(e)}function hl(e){return e.k}class pl extends fl{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=r}}function ml(e,t,n,r){return new pl(e,t,n,r)}function wl(e){return e.left}function _l(e){return e.right}function gl(e){return e.h}function yl(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof pl){const r=i;t=wl(r),n=e(_l(r),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function vl(e,t,n){let r,o,i;if(null!=e){const t=e;i=t instanceof pl?(r=t,gl(r)):1}else i=0;let s;if(null!=n){const e=n;s=e instanceof pl?(o=e,gl(o)):1}else s=0;const u=0|(i<s?s:i);return 0===u?dl(t):ml(t,e,n,u+1)}function bl(e,t,n){let r,o,i,s,u,c,l,a,$;if(null!=e){const t=e;$=t instanceof pl?(r=t,gl(r)):1}else $=0;let f;if(null!=n){const e=n;f=e instanceof pl?(o=e,gl(o)):1}else f=0;if(f>$+2){const r=cn(n);if(r instanceof pl){const n=r;if(i=wl(n),(null!=i?(s=i,s instanceof pl?(u=s,gl(u)):1):0)>$+1){const r=cn(wl(n));if(r instanceof pl){const o=r;return vl(vl(e,t,wl(o)),hl(o),vl(_l(o),hl(n),_l(n)))}throw new Error("internal error: Set.rebalance")}return vl(vl(e,t,wl(n)),hl(n),_l(n))}throw new Error("internal error: Set.rebalance")}if($>f+2){const r=cn(e);if(r instanceof pl){const e=r;if(c=_l(e),(null!=c?(l=c,l instanceof pl?(a=l,gl(a)):1):0)>f+1){const r=cn(_l(e));if(r instanceof pl){const o=r;return vl(vl(wl(e),hl(e),wl(o)),hl(o),vl(_l(o),t,n))}throw new Error("internal error: Set.rebalance")}return vl(wl(e),hl(e),vl(_l(e),t,n))}throw new Error("internal error: Set.rebalance")}return vl(e,t,n)}function Cl(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,hl(r));if(r instanceof pl){const i=r;return o<0?bl(Cl(e,t,wl(i)),hl(i),_l(i)):0===o?n:bl(wl(i),hl(i),Cl(e,t,_l(i)))}{const o=0|e.Compare(t,hl(r));return o<0?ml(t,void 0,n,2):0===o?n:ml(t,n,void 0,2)}}return dl(t)}function Sl(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,hl(s));if(s instanceof pl){const i=s;if(u<0){e=r,t=o,n=wl(i);continue e}if(0===u)return!0;e=r,t=o,n=_l(i);continue e}return 0===u}return!1}}function El(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof pl){const r=o;El(n,wl(r)),n(hl(r)),e=n,t=_l(r);continue e}n(hl(o))}break}}class xl extends U{constructor(e,t){super(),this.stack=e,this.started=t}}function Il(e){e:for(;;){const t=e;if(Zn(t))return Vn();{const n=Jn(t),r=Xn(t);if(null!=n){const o=n;if(o instanceof pl){const t=o;e=tr([wl(t),dl(hl(t)),_l(t)],r);continue e}return t}e=r;continue e}}}function kl(e){return new xl(Il(zn(e)),!1)}function Nl(e){if(e.started){const t=e.stack;if(Zn(t))return function(){throw new Error("Enumeration already started")}();if(null!=Jn(t)){return hl(Jn(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=kl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Nl(t),"System.Collections.IEnumerator.get_Current":()=>Nl(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Zn(t))return!1;if(null!=Jn(t)){const n=Xn(t);if(Jn(t)instanceof pl)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Il(n),!Zn(e.stack)}Xn(t);throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Zn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=kl(e)},Dispose(){}}}function Pl(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(Zn(s[0]))return Zn(s[1])?0:-1;if(Zn(s[1]))return 1;if(null!=Jn(s[1]))if(null!=Jn(s[0])){const u=Xn(s[0]),c=Xn(s[1]),l=Jn(s[0]),a=Jn(s[1]);if(l instanceof pl){const s=l;if(null==wl(s)){if(!(a instanceof pl)){const o=0|r.Compare(hl(s),hl(a));if(0!==o)return 0|o;e=r,t=qn(_l(s),u),n=qn(void 0,c);continue e}{const l=a;if(null==wl(l)){const o=0|r.Compare(hl(s),hl(l));if(0!==o)return 0|o;e=r,t=qn(_l(s),u),n=qn(_l(l),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(Zn(s[0])?Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2:null!=Jn(s[0])?(u=0,c=Xn(s[0]),l=Jn(s[0])):Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2,u){case 0:if(l instanceof pl){const o=l;e=r,t=tr([wl(o),ml(hl(o),void 0,_l(o),0)],c),n=i;continue e}e=r,t=tr([void 0,dl(hl(l))],c),n=i;continue e;case 1:if($ instanceof pl){const i=$;e=r,t=o,n=tr([wl(i),ml(hl(i),void 0,_l(i),0)],a);continue e}e=r,t=o,n=tr([void 0,dl(hl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{const s=[o,i];let u,c,l,a,$;switch(Zn(s[0])?Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2:null!=Jn(s[0])?(u=0,c=Xn(s[0]),l=Jn(s[0])):Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2,u){case 0:if(l instanceof pl){const o=l;e=r,t=tr([wl(o),ml(hl(o),void 0,_l(o),0)],c),n=i;continue e}e=r,t=tr([void 0,dl(hl(l))],c),n=i;continue e;case 1:if($ instanceof pl){const i=$;e=r,t=o,n=tr([wl(i),ml(hl(i),void 0,_l(i),0)],a);continue e}e=r,t=o,n=tr([void 0,dl(hl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{if(!(a instanceof pl)){const o=0|r.Compare(hl(l),hl(a));if(0!==o)return 0|o;e=r,t=u,n=c;continue e}{const s=a;if(null==wl(s)){const o=0|r.Compare(hl(l),hl(s));if(0!==o)return 0|o;e=r,t=qn(void 0,u),n=qn(_l(s),c);continue e}{const s=[o,i];let u,c,l,a,$;switch(Zn(s[0])?Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2:null!=Jn(s[0])?(u=0,c=Xn(s[0]),l=Jn(s[0])):Zn(s[1])?u=2:null!=Jn(s[1])?(u=1,a=Xn(s[1]),$=Jn(s[1])):u=2,u){case 0:if(l instanceof pl){const o=l;e=r,t=tr([wl(o),ml(hl(o),void 0,_l(o),0)],c),n=i;continue e}e=r,t=tr([void 0,dl(hl(l))],c),n=i;continue e;case 1:if($ instanceof pl){const i=$;e=r,t=o,n=tr([wl(i),ml(hl(i),void 0,_l(i),0)],a);continue e}e=r,t=o,n=tr([void 0,dl(hl($))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}}else{Xn(s[0]),Xn(s[1]),Jn(s[1]);const u=[o,i];let c,l,a,$,f;switch(Zn(u[0])?Zn(u[1])?c=2:null!=Jn(u[1])?(c=1,$=Xn(u[1]),f=Jn(u[1])):c=2:null!=Jn(u[0])?(c=0,l=Xn(u[0]),a=Jn(u[0])):Zn(u[1])?c=2:null!=Jn(u[1])?(c=1,$=Xn(u[1]),f=Jn(u[1])):c=2,c){case 0:if(a instanceof pl){const o=a;e=r,t=tr([wl(o),ml(hl(o),void 0,_l(o),0)],l),n=i;continue e}e=r,t=tr([void 0,dl(hl(a))],l),n=i;continue e;case 1:if(f instanceof pl){const i=f;e=r,t=o,n=tr([wl(i),ml(hl(i),void 0,_l(i),0)],$);continue e}e=r,t=o,n=tr([void 0,dl(hl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==Jn(s[0])){e=r,t=Xn(s[0]),n=Xn(s[1]);continue e}{Xn(s[0]),Xn(s[1]),Jn(s[0]);const u=[o,i];let c,l,a,$,f;switch(Zn(u[0])?Zn(u[1])?c=2:null!=Jn(u[1])?(c=1,$=Xn(u[1]),f=Jn(u[1])):c=2:null!=Jn(u[0])?(c=0,l=Xn(u[0]),a=Jn(u[0])):Zn(u[1])?c=2:null!=Jn(u[1])?(c=1,$=Xn(u[1]),f=Jn(u[1])):c=2,c){case 0:if(a instanceof pl){const o=a;e=r,t=tr([wl(o),ml(hl(o),void 0,_l(o),0)],l),n=i;continue e}e=r,t=tr([void 0,dl(hl(a))],l),n=i;continue e;case 1:if(f instanceof pl){const i=f;e=r,t=o,n=tr([wl(i),ml(hl(i),void 0,_l(i),0)],$);continue e}e=r,t=o,n=tr([void 0,dl(hl(f))],$);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,zn(t),zn(n))}function Tl(e,t,n){let r=0|n;El(e=>{t[r]=e,r+=1},e)}function Dl(e,t){return Rn((t,n)=>Cl(e,n,t),void 0,t)}function Ml(e,t){if(r(t)){return Dl(e,t)}if(t instanceof Gn){return function(e,t){return Kn((t,n)=>Cl(e,n,t),void 0,t)}(e,t)}{const n=c(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=Cl(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Ol{constructor(e,t){this.comparer=e,this.tree=t}GetHashCode(){return 0|function(e){let t=0;const n=c(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const e=n["System.Collections.Generic.IEnumerator`1.get_Current"]();r=t,o=w(e),t=(r<<1)+o+631}}finally{n.Dispose()}var r,o;return 0|Math.abs(t)}(this)}Equals(e){let t;return e instanceof Ol&&(t=e,0===Pl(Ul(this),Ll(this),Ll(t)))}toString(){return"set ["+zt("; ",Dr(e=>A(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}CompareTo(e){return 0|Pl(Ul(this),Ll(this),Ll(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 Sl(Ul(this),e,Ll(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Tl(Ll(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Fl(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Fl(this)}GetEnumerator(){return Al(Ll(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Al(Ll(this))}get size(){return 0|Fl(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 Gl(this,e)}keys(){return Dr(e=>e,this)}values(){return Dr(e=>e,this)}entries(){return Dr(e=>[e,e],this)}forEach(e,t){const n=this;Tr(t=>{e(t,t,n)},n)}}function Rl(e,t){return new Ol(e,t)}function Ul(e){return e.comparer}function Ll(e){return e.tree}function Fl(e){return yl(Ll(e))}function Gl(e,t){return Sl(Ul(e),t,Ll(e))}function jl(e,t){return Rl(t,Ml(t,e))}function Bl(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 Hl(e,t){let n;switch(t.tag){case 2:{const e=t.fields[1];n=Bl(t.fields[0],e,!0);break}case 1:{const e=t.fields[1],r=t.fields[2];n=Bl(t.fields[0],e,!1)+"\nReason: "+r;break}case 3:{const e=t.fields[1];n=Bl(t.fields[0],e,!0);break}case 4:{const e=t.fields[1],r=t.fields[0],o=t.fields[2];n=Bl(r,e,!0)+"\nNode `"+o+"` is unkown.";break}case 5:{const e=t.fields[1];n="Expecting "+t.fields[0]+".\n"+JSON.stringify(e,null,4);break}case 7:n="The following errors were found:\n\n"+zt("\n\n",t.fields[0]);break;case 6:n="The following `failure` occurred with the decoder: "+t.fields[0];break;default:{const e=t.fields[1];n=Bl(t.fields[0],e,!1)}}return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function Wl(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new fn(1,Hl(e[0],e[1]))}{const e=r.fields[0];return new fn(0,e)}}function Vl(e,t){let n;try{return Wl("$",e,JSON.parse(t))}catch(e){if(n=e,n instanceof SyntaxError){return new fn(1,"Given an invalid JSON: "+e.message)}throw e}}const ql=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new fn(0,(e+128&255)-128):new fn(1,[n,new tl(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new fn(1,[n,new tl(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!1,8,new L(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[n,new tl(0,"a sbyte",r)])}return new fn(1,[n,new tl(0,"a sbyte",r)])},zl=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new fn(0,255&e):new fn(1,[n,new tl(1,"a byte",e,"Value was either too large or too small for a byte")]):new fn(1,[n,new tl(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!0,8,new L(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[n,new tl(0,"a byte",r)])}return new fn(1,[n,new tl(0,"a byte",r)])},Zl=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 fn(0,(e+32768&65535)-32768):new fn(1,[r,new tl(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new tl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!1,16,new L(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[r,new tl(0,n,o)])}return new fn(1,[r,new tl(0,n,o)])},Jl=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 fn(0,65535&e):new fn(1,[r,new tl(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new tl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!0,16,new L(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[r,new tl(0,n,o)])}return new fn(1,[r,new tl(0,n,o)])},Xl=e=>t=>{const n=e,r=t;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new fn(0,~~e):new fn(1,[n,new tl(1,"an int",e,"Value was either too large or too small for an int")]):new fn(1,[n,new tl(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;if(e=[$e(r,511,!1,32,new L(()=>t,e=>{t=e})),t],e[0]){const t=0|e[1];return new fn(0,t)}return new fn(1,[n,new tl(0,"an int",r)])}return new fn(1,[n,new tl(0,"an int",r)])},Yl=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 fn(0,e>>>0):new fn(1,[r,new tl(1,n,e,"Value was either too large or too small for "+n)]):new fn(1,[r,new tl(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;if(e=[$e(o,511,!0,32,new L(()=>t,e=>{t=e})),t],e[0]){const t=e[1];return new fn(0,t)}return new fn(1,[r,new tl(0,n,o)])}return new fn(1,[r,new tl(0,n,o)])};function Kl(e,t){if("string"==typeof t){let r,o=Nt(-621355968e5,0);if(r=[Pt(t,new L(()=>o,e=>{o=e})),o],r[0]){const e=r[1];return new fn(0,1===(n=e).kind?n:Nt(n.getTime(),1))}return new fn(1,[e,new tl(0,"a datetime",t)])}return new fn(1,[e,new tl(0,"a datetime",t)]);var n}function Ql(e,t){if("string"==typeof t){let n,r=ul(-621355968e5,0);if(n=[cl(t,new L(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new tl(0,"a datetimeoffset",t)])}return new fn(1,[e,new tl(0,"a datetime",t)])}function ea(e,t,n,r){let o;const i=n+".["+f(e)+"]";if(Array.isArray(r)){const n=r;if(e<n.length)return t(i,n[e]);{const t="a longer array. Need index `"+f(e)+"` but there are only `"+(o=0|n.length,f(o)+"` entries");return new fn(1,[i,new tl(5,t,r)])}}return new fn(1,[i,new tl(0,"an array",r)])}function ta(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return dn(e=>Qn(e),Rn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return new fn(0,qn(e,i))}{const e=s.fields[0];return new fn(1,e)}}return n},new fn(0,Vn()),o))}return new fn(1,[t,new tl(0,"a list",n)])}function na(e,t,n){if(Array.isArray(n)){let r=-1;const o=n,i=Dn(new Array(o.length),0,o.length,null);return Rn((n,o)=>{if(r+=1,0===n.tag){const i=n.fields[0],s=e(t+".["+f(r)+"]",o);if(0===s.tag){const e=s.fields[0];return i[r]=e,new fn(0,i)}{const e=s.fields[0];return new fn(1,e)}}return n},new fn(0,i),o)}return new fn(1,[t,new tl(0,"an array",n)])}function ra(e,t,n){return new fn(0,e)}function oa(e,t,n,r){const o=t(n,r);if(0===o.tag){return e(o.fields[0],n,r)}{const e=o.fields[0];return new fn(1,e)}}function ia(e,t,n,r){const o=t(n,r);if(1===o.tag){const e=o.fields[0];return new fn(1,e)}{const t=o.fields[0];return new fn(0,e(t))}}function sa(e,t){let n;const r=e;return n=e=>t=>ea(0,r,e,t),e=>r=>oa(I(3,e=>{let n;const r=t;return n=e=>t=>ea(1,r,e,t),t=>r=>oa((t,n,r)=>ra([e,t]),I(2,n),t,r)}),I(2,n),e,r)}function ua(e){return Bs(e)}function ca(e,t,n,r){let o,i;return t.length!==r.length?new fn(1,[n,new tl(6,(o=0|r.length,i=0|t.length,Bt(Ft("Expected %i %s but got %i"))(i)(e)(o)))]):Fn(I(3,N(e=>t=>r=>{if(0===r.tag){const o=r.fields[0];return dn(e=>qn(e,o),t(n,e))}return r},[0,[0,2],0])),r,t,new fn(0,Vn()))}function la(e,t,n,r,o,i){const s=(u=e=>Y(e)===r,oe(n).find(u));var u;if(null!=s){const n=s;if(0===i.length)return new fn(0,ue(n,[]));return dn(e=>ue(n,Yn(e)),ca("union fields",Mn(n=>$a(e,t,!1,n[1]),function(e){return null==e.fields?[]:e.fields}(n)),o,i))}return new fn(1,[o,new tl(6,"Cannot find case "+r+" in "+K(n))])}function aa(e,t,n,r){const o=new L(null),i=qs(K(r),o,e);let s;if(function(e){return e instanceof G?null!=e.fields:e instanceof U}(r)){const e=Mn(e=>[sl(t,Y(e)),$a(i,t,!1,e[1])],ie(r));s=t=>n=>dn(e=>function(e,t){const n=ie(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,Yn(e)),function(e,t,n){return null===n||Object.getPrototypeOf(n||!1)!==Object.prototype?new fn(1,[t,new tl(0,"an object",n)]):Ln(I(2,e=>{const r=e[0],o=e[1];return e=>{if(0===e.tag){const i=e.fields[0];return dn(e=>qn(e,i),o(t+"."+r)(n[r]))}return e}}),e,new fn(0,Vn()))}(e,t,n))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof P}(r))s=e=>n=>{if("string"==typeof n){return la(i,t,r,n,e,[])}if(Array.isArray(n)){const o=n,s=o[0];return la(i,t,r,s,e,o.slice(1,o.length))}return new fn(1,[e,new tl(0,"a string or array",n)])};else{if(!n){let e;const t=K(r);throw e=Bt(Ft("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new fn(1,[e,new tl(2,"an extra coder for "+K(r),t)])}return o.contents=s,s}function $a(e,t,n,r){let o;const i=K(r),s=zs(i,e);if(null==s){if(Q(r)){const n=$a(e,t,!1,function(e){var t;return Q(e)?null===(t=e.generics)||void 0===t?void 0:t[0]:void 0}(r));return e=>t=>na(I(2,n),e,t)}if(ee(r)){const e=K(function(e){var t;return null===(t=e.generics)||void 0===t?void 0:t[0]}(r));if("System.SByte"===e)return e=>t=>{const n=r,o=e,i=t,s=ql(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>t=>{const n=r,o=e,i=t,s=zl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>t=>{const n=r,o=e,i=t,s=Zl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}var u,c};if("System.UInt16"===e)return e=>t=>{const n=r,o=e,i=t,s=Jl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>t=>{const n=r,o=e,i=t,s=Xl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=0|s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,f(e))):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>t=>{const n=r,o=e,i=t,s=Yl(o)(i);if(1===s.tag){const e=s.fields[0];return new fn(1,e)}{const e=s.fields[0];return Ar(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>p(e)})?new fn(0,re(n,e.toString())):new fn(1,[o,new tl(1,K(n),i,"Unkown value provided for the enum")])}};{const e=K(r),t=jt(e=>{throw new Error(e)},Ft("Cannot generate auto decoder for %s.\nThoth.Json.Net only support the folluwing enum types:\n- sbyte\n- byte\n- int16\n- uint16\n- int\n- uint32\nIf you can't use one of these types, please pass an extra decoder.\n "))(e);return e=>{const n=t(e);return e=>n(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const n=Mn(n=>$a(e,t,!1,n),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>t=>Array.isArray(t)?dn(e=>Yn(e),ca("tuple elements",n,e,t)):new fn(1,[e,new tl(0,"an array",t)])}{const i=K(function(e){return null==e.generics?e:new G(e.fullname,e.generics.map(()=>J))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const n=$a(e,t,!0,j(r)[0]);return e=>t=>{return r=I(2,n),o=e,null==(i=t)?new fn(0,void 0):dn(e=>un(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=$a(e,t,!1,j(r)[0]);return e=>t=>ta(I(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=$a(e,t,!1,j(r)[0]),i=$a(e,t,!1,j(r)[1]);let s;const u=nr([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new fn(1,[n,new tl(0,"an object",r)]):Pr((o,i)=>{if(0===o.tag){const s=o.fields[0],u=e(n,i);if(0===u.tag){const e=u.fields[0],o=t(n+"."+i,r[i]);if(0===o.tag){const t=o.fields[0];return new fn(0,qn([e,t],s))}{const e=o.fields[0];return new fn(1,e)}}{const e=u.fields[0];return new fn(1,e)}}return o},new fn(0,Vn()),Object.keys(r))}(I(2,n),I(2,i),e,t),(o=sa(I(2,n),I(2,i)),e=>t=>ta(I(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Zn(o))return new fn(1,[n,new tl(7,i)]);{const s=Xn(o),u=Jn(o),c=Wl(n,I(2,u),r);if(1===c.tag){e=s,t=or(i,zn(c.fields[0]));continue e}{const e=c.fields[0];return new fn(0,e)}}}})(u,Vn());var n,r},e=>t=>ia(e=>ua(e),I(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=$a(e,t,!1,j(r)[0]);return e=>t=>{const r=na(I(2,n),e,t);if(0===r.tag){const e=r.fields[0];return new fn(0,jl(e,{Compare:(e,t)=>S(e,t)}))}{const e=r.fields[0];return new fn(1,e)}}}return aa(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new fn(0,r):new fn(1,[n,new tl(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new fn(0,void 0):new fn(1,[n,new tl(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new fn(0,r):new fn(1,[n,new tl(0,"a string",r)]);var n,r}:"System.SByte"===i?ql:"System.Byte"===i?zl:"System.Int16"===i?Zl:"System.UInt16"===i?Jl:"System.Int32"===i?Xl:"System.UInt32"===i?Yl:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new fn(0,r):new fn(1,[n,new tl(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new fn(0,r):new fn(1,[n,new tl(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>Kl(e,t):"System.DateTimeOffset"===i?e=>t=>Ql(e,t):"System.TimeSpan"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r=0;if(n=[$l(t,new L(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new tl(0,"a timespan",t)])}return new fn(1,[e,new tl(0,"a timespan",t)])}(e,t):"System.Guid"===i?e=>t=>function(e,t){if("string"==typeof t){let n,r="00000000-0000-0000-0000-000000000000";if(n=[tn(t,new L(()=>r,e=>{r=e})),r],n[0]){const e=n[1];return new fn(0,e)}return new fn(1,[e,new tl(0,"a guid",t)])}return new fn(1,[e,new tl(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new fn(0,e):aa(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function fa(e){if(null!=e){return Zs((e,t)=>{const n=t[1];return new L(n)},e.Coders)}return Js()}function da(e,t,n){const r=an(e,new nl(0)),o=cn(n).ResolveType();return $a(fa(t),r,!1,o)}function ha(e,t,n,r){return Vl(I(2,da(t,n,r)),e)}class pa extends U{constructor(e,t,n,r,o){super(),this.StreamId=e,this.Name=t,this.Website=n,this.ContactDetails=r,this.Notes=o}}class ma extends U{constructor(e,t,n,r,o,i,s){super(),this.StreamId=e,this.PartnerId=t,this.Name=n,this.Website=r,this.ContactDetails=o,this.Notes=i,this.LegalEntity=s}}function wa(e){return Bt(Gt("%s%P()/account-registry/admin",[e]))}function _a(e,t){return Mc(0,()=>{const n=(i=Bt(Ft("Bearer %s"))(e),r=new Rc(0,"Authorization",i),new Lc((o=t).url,o.method,or(o.headers,zn(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;const s=Wr.Bind(Vc(n),e=>Wr.Return(new fn(0,e)));return Wr.Delay(()=>Wr.Bind(s,e=>{let t;const r=e;if(1===r.tag){const e=r.fields[0];return Wr.Return(new fn(1,e))}{const e=r.fields[0];return Wr.ReturnFrom((t=e,429===t.statusCode||t.statusCode>=500?Wr.Bind(Vc(n),e=>Wr.Return(new fn(0,e))):function(e,t){return Wr.Return(qr(0,t))}(0,t)))}}))})}function ga(e,t){return Mc(0,()=>{const n=_a(t,Wc(new Oc(0),Hc(Bt(Gt("%P()/partners",[wa(e)])))));return Wr.Delay(()=>Wr.Bind(n,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return Wr.Return(new fn(1,e))}{const e=n.fields[0];return Wr.ReturnFrom((t=e,200===t.statusCode?Wr.Return(hn(e=>zc(sr(e=>{return t=e,zr(0,()=>hn(e=>{const n=e;return hn(e=>{const r=e;return Zr(0,oo(t.ContactDetails),e=>{const o=e;return new Cu(new nn(0,t.StreamId),n,r,o,io(t.Notes),new Xs(0))})},Yr(t.Website))},Jr(t.Name)))();var t},e)),ha(t.responseText,new nl(1),void 0,{ResolveType:()=>Z(V("Dto.AdminApi.Partner",[],pa,()=>[["StreamId",X],["Name",X],["Website",X],["ContactDetails",ro()],["Notes",z(X)]]))}))):Wr.Return(new fn(1,"Unexpected response from backend"))))}}))})}function ya(e,t,n){return Mc(0,()=>{const r=_a(t,Wc(new Oc(0),Hc(Bt(Gt("%P()/partners/%P()/accounts",[wa(e),n])))));return Wr.Delay(()=>Wr.Bind(r,e=>{let t;const n=e;if(1===n.tag){const e=n.fields[0];return Wr.Return(new fn(1,e))}{const e=n.fields[0];return Wr.ReturnFrom((t=e,200===t.statusCode?Wr.Return(hn(e=>zc(sr(e=>bu(e),e)),ha(t.responseText,new nl(1),void 0,{ResolveType:()=>Z(V("Dto.AdminApi.Account",[],ma,()=>[["StreamId",X],["PartnerId",X],["Name",X],["Website",X],["ContactDetails",ro()],["Notes",z(X)],["LegalEntity",z(ao())]]))}))):Wr.Return(new fn(1,"Unexpected response from backend"))))}}))})}function va(e){const t=zn(So("span",{children:[e.error]}));return So("div",{children:qi.Children.toArray(Array.from(t))})}class ba extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tab"]}}function Ca(e,t){const n=(null!=t?"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300":"border-indigo-500 text-indigo-600")+" whitespace-nowrap py-4 px-1 border-b-2 font-medium text-sm";return r=So("a",x(Er(vr(()=>kr(Sr(["key",e]),vr(()=>kr(Sr(["children",e]),vr(()=>kr(Sr(["className",n]),vr(()=>null!=t?Sr(["href",hu(zn(cn(t)),1)]):Cr())))))))))),new ba(0,r);var r}function Sa(e){return So("div",{className:"border-b border-gray-200",children:qi.Children.toArray([So("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:qi.Children.toArray(Array.from(Dr(e=>e.fields[0],e)))})])})}class Ea extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ColumnHeader"]}}function xa(e){return new Ea(0,e)}class Ia extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["RowCell"]}}function ka(e){return new Ia(0,e)}function Na(e){return xa(So("th",x(nr([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function Aa(e,t){return ka(So("td",{className:"px-6 py-4 whitespace-nowrap text-sm",children:qi.Children.toArray([So("a",{className:"text-indigo-600 hover:text-indigo-900",children:t,href:e})])}))}function Pa(e,t){return ka(So("td",{className:zt(" ",kr(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function Ta(e,t){let n;const r=(e,t)=>{return So("tr",{className:(n=e,n%2==0?"bg-white":"bg-gray-50"),children:qi.Children.toArray(Array.from(Dr(e=>e.fields[0],t)))});var n};return So("div",{className:"flex flex-col mt-4",children:qi.Children.toArray([So("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:qi.Children.toArray([So("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:qi.Children.toArray([So("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:qi.Children.toArray([So("table",{className:"min-w-full divide-y divide-gray-200",children:qi.Children.toArray([(e=>{let t;return So("thead",{className:"bg-gray-50",children:(t=Dr(e=>e.fields[0],e),So("tr",{children:qi.Children.toArray(Array.from(t))}))})})(e),(n=Mr(I(2,e=>{const t=function(e,t,n){if(null!=t){if("__CURRIED__"in t){t=t.__CURRIED__;for(let e=0;e<n.length;e++)t=t(n[e]);return t}switch(e){case 1:return e=>t.apply(void 0,n.concat([e]));case 2:return e=>r=>t.apply(void 0,n.concat([e,r]));case 3:return e=>r=>o=>t.apply(void 0,n.concat([e,r,o]));case 4:return e=>r=>o=>i=>t.apply(void 0,n.concat([e,r,o,i]));case 5:return e=>r=>o=>i=>s=>t.apply(void 0,n.concat([e,r,o,i,s]));case 6:return e=>r=>o=>i=>s=>u=>t.apply(void 0,n.concat([e,r,o,i,s,u]));case 7:return e=>r=>o=>i=>s=>u=>c=>t.apply(void 0,n.concat([e,r,o,i,s,u,c]));case 8:return e=>r=>o=>i=>s=>u=>c=>l=>t.apply(void 0,n.concat([e,r,o,i,s,u,c,l]));default:throw new Error("Partially applying to more than 8-arity is not supported: "+e)}}}(1,r,[e]);return e=>t(e)}),t),So("tbody",{children:qi.Children.toArray(Array.from(n))}))])})])})])})])})])})}function Da(){const e=zn(So("span",{children:["Please wait..."]}));return So("div",{children:qi.Children.toArray(Array.from(e))})}function Ma(e){const t=e.accountList,n=nr([Na("ID"),Na("Name"),Na("Contact"),Na("Phone"),Na("Website")]),r=e=>{let t,n;const r=new Nn(0,on(e.StreamId));return nr([(t=[hu(ku((n=[e.PartnerId,r],new Eu(4,n[0],n[1]))),1),on(e.StreamId)],Aa(t[0],t[1])),Pa(["text-gray-500"],Xr(e.Name)),Pa(["text-gray-500"],Bt(Gt("%P() %P()",[Qr(e.ContactDetails.FirstName),eo(e.ContactDetails.LastName)]))),Pa(["text-gray-500"],to(e.ContactDetails.MobilePhone)),Pa(["text-gray-500"],Kr(e.Website))])};let o,i,s,u;switch(0===t.tag||1===t.tag?o=2:3===t.tag?(o=3,u=t.fields[0]):1===t.fields[0].tag?(o=1,s=t.fields[0].fields[0]):(o=0,i=t.fields[0].fields[0]),o){case 0:return Ta(n,sr(r,i));case 1:return So(va,{error:s});case 2:return So(Da,null);case 3:return So(va,{error:A(u)})}}class Oa extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["backend-url","access-token","partner-id","account-id"]}}function Ra(e){let t;const n=e.accessToken,r=e.backendUrl,o=e.accountId,i=e.partnerId;return So("superhero-super-configuration",el(Nr(e=>e,[new Oa(1,n),new Oa(0,r),new Oa(2,(t=i.fields[0],t)),$n(e=>{const t=e.fields[0];return new Oa(3,t)},o)]),1))}function Ua(e){return So("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function La(e){return So("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:qi.Children.toArray([e])})}function Fa(e,t){return So("div",{className:"sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5",children:qi.Children.toArray([Ua(e),La(t)])})}function Ga(e){return So("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function ja(e){const t=zn(So("div",{children:qi.Children.toArray(Array.from(e))}));return So("form",{children:qi.Children.toArray(Array.from(t))})}function Ba(e){return ja([Fa("ID",Ga(on(e.StreamId))),Fa("Name",Ga(Xr(e.Name))),Fa("Contact",Ga(Bt(Gt("%P() %P()",[Qr(e.ContactDetails.FirstName),eo(e.ContactDetails.LastName)])))),Fa("Phone",Ga(to(e.ContactDetails.MobilePhone))),Fa("Website",Ga(Kr(e.Website))),Fa("Notes",(t=an(so(e.Notes),""),So("textarea",{className:"max-w-lg shadow-sm block w-full focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm border-gray-300 rounded-md",value:t,readOnly:!0,rows:5})))]);var t}class Ha extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Details","AccountList","SuperConfiguration"]}}class Wa extends U{constructor(e,t,n){super(),this.PartnerId=e,this.BackendUrl=t,this.AccessToken=n}}function Va(e){let t,n,r;return Sa(1===e.tag?(t=e.fields[0],nr([Ca("Details",hu(ku(new Eu(1,t)),1)),Ca("Accounts",void 0),Ca("Super Configuration",hu(ku(new Eu(3,t)),1))])):2===e.tag?(n=e.fields[0].PartnerId,nr([Ca("Details",hu(ku(new Eu(1,n)),1)),Ca("Accounts",hu(ku(new Eu(2,n)),1)),Ca("Super Configuration",void 0)])):(r=e.fields[0],nr([Ca("Details",void 0),Ca("Accounts",hu(ku(new Eu(2,new In(0,on(r.StreamId)))),1)),Ca("Super Configuration",hu(ku(new Eu(3,new In(0,on(r.StreamId)))),1))])))}function qa(e){switch(e.tag){case 1:return So(Ma,{accountList:e.fields[1]});case 2:{const t=[e.fields[0].PartnerId,void 0,e.fields[0].BackendUrl,e.fields[0].AccessToken];return So(Ra,{partnerId:t[0],accountId:t[1],backendUrl:t[2],accessToken:t[3]})}default:return So(Ba,e.fields[0])}}function za(e){const t=e.mode;return So("div",{children:qi.Children.toArray([Va(t),qa(t)])})}function Za(e){return ja([Fa("ID",Ga(on(e.StreamId))),Fa("Contact",Ga(Bt(Gt("%P() %P()",[Qr(e.ContactDetails.FirstName),eo(e.ContactDetails.LastName)])))),Fa("Phone",Ga(to(e.ContactDetails.MobilePhone))),Fa("Website",Ga(Kr(e.Website)))])}class Ja extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Details","SuperConfiguration"]}}class Xa extends U{constructor(e,t,n,r){super(),this.PartnerId=e,this.AccountId=t,this.BackendUrl=n,this.AccessToken=r}}function Ya(e){let t,n,r,o,i,s;return Sa(1===e.tag?(t=e.fields[0].PartnerId,n=e.fields[0].AccountId,nr([Ca("Details",hu(ku((r=[t,n],new Eu(4,r[0],r[1]))),1)),Ca("Super Configuration",void 0)])):(o=e.fields[0],i=e.fields[1],nr([Ca("Details",void 0),Ca("Super Configuration",hu(ku((s=[o,i],new Eu(5,s[0],s[1]))),1))])))}function Ka(e){if(1===e.tag){const t=e.fields[0].PartnerId,n=e.fields[0].BackendUrl;return So(Ra,{partnerId:t,accountId:e.fields[0].AccountId,backendUrl:n,accessToken:e.fields[0].AccessToken})}{const t=e.fields[2];switch(t.tag){case 0:case 1:return So(Da,null);case 3:return So(va,{error:A(t.fields[0])});default:return So(Za,t.fields[0])}}}function Qa(e){const t=e.mode;return So("div",{children:qi.Children.toArray([Ya(t),Ka(t)])})}function e$(e){const t=e.partnerList;return Ta(nr([Na("ID"),Na("Name"),Na("Contact"),Na("Phone"),Na("Website")]),sr(e=>{let t;const n=on(e.StreamId),r=new In(0,n);return nr([(t=[hu(ku(new Eu(1,r)),1),n],Aa(t[0],t[1])),Pa(["text-gray-500"],Xr(e.Name)),Pa(["text-gray-500"],Bt(Gt("%P() %P()",[Qr(e.ContactDetails.FirstName),eo(e.ContactDetails.LastName)]))),Pa(["text-gray-500"],to(e.ContactDetails.MobilePhone)),Pa(["text-gray-500"],Kr(e.Website))])},t))}var t$=bi((function(e,t){return So("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),So("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"}))}));class n$ extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BreadCrumb"]}}function r$(e){return So("nav",{className:"pt-2","aria-label":"Breadcrumb",children:qi.Children.toArray([So("ol",{className:"-ml-3 max-w-screen-xl w-full flex space-x-4",children:qi.Children.toArray(Array.from(ir((e,t)=>{const n=t.fields[0][1];return function(e,t,n,r){return So("li",{key:e,className:"flex",children:qi.Children.toArray([So("div",{className:"flex items-center",children:qi.Children.toArray(Array.from(Er(vr(()=>kr(n?Cr():Sr(So(t$,{className:"flex-shrink-0 h-5 w-5 text-gray-400"})),vr(()=>Sr(So("a",x(Er(vr(()=>kr(Sr(["children",e]),vr(()=>kr(null!=t?Sr(["href",hu(cn(t),1)]):Cr(),vr(()=>Sr(["className","ml-4 text-sm font-medium text-gray-500 hover:text-gray-700"]))))))))))))))))})])})}(t.fields[0][0],n,0===e)},e)))})])})}function o$(e){let t,n,r,o,i,s,u;const c=e.page,l=()=>new n$(0,["Partners",ku(new Eu(0))]),a=e=>new n$(0,[uo(e),ku(new Eu(1,e))]),$=e=>new n$(0,["Accounts",ku(new Eu(2,e))]),f=e=>new n$(0,[co(e),void 0]);return r$(6===c.tag?zn(l()):1===c.tag?(t=c.fields[0],nr([l(),a(t)])):2===c.tag?(n=c.fields[0],nr([l(),a(n),$(n)])):3===c.tag?(r=c.fields[0],nr([l(),a(r),(d=r,new n$(0,["Super Configuration",ku(new Eu(3,d))]))])):4===c.tag?(o=c.fields[0],i=c.fields[1],nr([l(),a(o),$(o),f(i)])):5===c.tag?(s=c.fields[0],u=c.fields[1],nr([l(),a(s),$(s),f(u),(e=>{let t;const n=e[0],r=e[1];return new n$(0,["Super Configuration",ku((t=[n,r],new Eu(5,t[0],t[1])))])})([s,u])])):zn(l()));var d}function i$(){return(i$=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 s$(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 zo(t,n)}function u$(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=So(s$,i$({},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[c$(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),l=u[i].slot;l?o[l]=So($$,{name:l},c):r[i]=c}var a=n?So($$,null,r):r;return So(n||t.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?qo:Vo)(this._vdom,this._root)}function c$(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function l$(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[c$(e)]=n,this._vdom=zo(this._vdom,r),Vo(this._vdom,this._root)}}function a$(){Vo(this._vdom=null,this._root)}function $$(e,t){var n=this;return So("slot",i$({},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 f$ extends U{constructor(e,t){super(),this.Data=e,this.CurrentPage=t}}function d$(){return V("AccountRegistry.AdminUI.App.State",[],f$,()=>[["Data",Ys(q("Microsoft.FSharp.Core.FSharpResult`2",[Pu(),X],fn,()=>[[["ResultValue",Pu()]],[["ErrorValue",X]]]))],["CurrentPage",xu()]])}class h$ extends P{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PageChanged","LoadData","LoadAccounts"]}}function p$(){return q("AccountRegistry.AdminUI.App.Msg",[],h$,()=>[[["Item",xu()]],[["Item",Ys(q("Microsoft.FSharp.Core.FSharpResult`2",[Pu(),X],fn,()=>[[["ResultValue",Pu()]],[["ErrorValue",X]]]))]],[["Item1",rn()],["Item2",q("Microsoft.FSharp.Core.FSharpResult`2",[Z(vu()),X],fn,()=>[[["ResultValue",Z(vu())]],[["ErrorValue",X]]])]]])}function m$(){const e=Iu(mu(window.location.hash,1)),t=6===e.tag?Nu(new Eu(0)):Tu();return[new f$(new Xs(0),e),t]}function w$(e,t,n){const r=e.Data;let o,i;switch(2===r.tag&&0===r.fields[0].tag?(o=0,i=r.fields[0].fields[0]):o=1,o){case 0:{const r=sr(e=>y(e.StreamId,t)?new Cu(e.StreamId,e.Name,e.Website,e.ContactDetails,e.Notes,new Xs(2,new fn(0,n))):e,i.Partners),o=new Xs(2,new fn(0,new Au(r)));return[new f$(o,e.CurrentPage),Tu()]}case 1:return[e,Tu()]}}function _$(e,t,n){const r=e.Data;let o,i;switch(2===r.tag&&0===r.fields[0].tag?(o=0,i=r.fields[0].fields[0]):o=1,o){case 0:{const r=sr(e=>y(e.StreamId,t)?new Cu(e.StreamId,e.Name,e.Website,e.ContactDetails,e.Notes,new Xs(2,new fn(1,n))):e,i.Partners),o=new Xs(2,new fn(0,new Au(r)));return[new f$(o,e.CurrentPage),Tu()]}case 1:return[e,Tu()]}}function g$(e,t){switch(e.tag){case 0:{const n=e.fields[0];return 6===n.tag?[t,Nu(n)]:[new f$(t.Data,n),Tu()]}case 2:{const n=e.fields[0],r=e.fields[1];if(1===r.tag){return _$(t,n,r.fields[0])}return w$(t,n,r.fields[0])}default:{const n=e.fields[0];return[new f$(n,t.CurrentPage),Tu()]}}}function y$(e){const t=(n=(e,t)=>g$(e,t),Tc(is(m$,r=[]),n,r));var n,r;const o=t[0],i=t[1],s=Ks(()=>{return t=e.backendUrl,n=e.accessToken,Mc(0,()=>Wr.Bind(ga(t,n),e=>Wr.Return(dn(e=>new Au(e),e))));var t,n},e=>{i(new h$(1,e))});ns(s,[]);const u=t=>Wr.Delay(()=>Wr.Bind(ya(e.backendUrl,e.accessToken,on(t)),e=>(i(new h$(2,t,e)),Wr.Zero())));let c;const l=o.Data;let a,$,f,d;switch(1===l.tag?a=0:2===l.tag?1===l.fields[0].tag?(a=2,f=l.fields[0].fields[0]):(a=1,$=l.fields[0].fields[0]):3===l.tag?(a=3,d=l.fields[0]):a=0,a){case 0:c=So(Da,null);break;case 1:{const t=e=>{return t=$.Partners,n=uo(e),cr(e=>on(e.StreamId)===n,t);var t,n},n=(e,t)=>function(e,t,n){const r=cr(e=>on(e.StreamId)===t,e);if(null!=r){const e=r.Accounts;let t,o;switch(2===e.tag&&0===e.fields[0].tag?(t=0,o=e.fields[0].fields[0]):t=1,t){case 0:return cr(e=>on(e.StreamId)===n,o);case 1:return}}}($.Partners,uo(e),co(t)),r=o.CurrentPage;switch(r.tag){case 1:{const e=t(r.fields[0]);if(null==e)c=So(va,{error:"Unknown Partner"});else{c=So(za,{mode:new Ha(0,e)})}break}case 2:c=((e,t)=>{const n=e(t);if(null==n)return So(va,{error:"Unknown Partner"});{const e=n,r=e.Accounts;switch(r.tag){case 2:{let n;const r=[t,e.Accounts];return n=new Ha(1,r[0],r[1]),So(za,{mode:n})}case 0:{hs(u(e.StreamId));let n;const r=[t,e.Accounts];return n=new Ha(1,r[0],r[1]),So(za,{mode:n})}case 3:return So(va,{error:A(r.fields[0])});default:{let n;const r=[t,e.Accounts];return n=new Ha(1,r[0],r[1]),So(za,{mode:n})}}}})(t,r.fields[0]);break;case 3:{const t=r.fields[0];c=So(za,{mode:new Ha(2,new Wa(t,e.backendUrl,e.accessToken))});break}case 4:c=((e,t,n,r)=>{const o=e(n);if(null==o)return So(va,{error:"Unknown Partner"});{const e=o,i=e.Accounts;switch(i.tag){case 1:{let e;const t=[n,r,new Xs(1)];return e=new Ja(0,t[0],t[1],t[2]),So(Qa,{mode:e})}case 2:{const e=t(n,r);if(null==e)return So(va,{error:"Unknown Account"});{let t;const o=[n,r,new Xs(2,e)];return t=new Ja(0,o[0],o[1],o[2]),So(Qa,{mode:t})}}case 3:return So(va,{error:A(i.fields[0])});default:{hs(u(e.StreamId));let t;const o=[n,r,new Xs(0)];return t=new Ja(0,o[0],o[1],o[2]),So(Qa,{mode:t})}}}})(t,n,r.fields[0],r.fields[1]);break;case 5:{const t=r.fields[0],n=r.fields[1];c=So(Qa,{mode:new Ja(1,new Xa(t,n,e.backendUrl,e.accessToken))});break}default:c=So(e$,{partnerList:$.Partners})}break}case 2:c=So(va,{error:f});break;case 3:c=So(va,{error:A(d)});break}return wu({onUrlChanged:e=>{i(new h$(0,Iu(e)))},application:So(xo,{},So(o$,{page:o.CurrentPage}),c)})}(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=u$,o.prototype.attributeChangedCallback=l$,o.prototype.disconnectedCallback=a$,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=>So(y$,e),"superhero-account-registry")}]);
|