@flarehr/superhero-fasttrack-middleware 0.1.1387 → 0.1.1389
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 n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=0)}([function(e,n,t){"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 u(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}t.r(n),t.d(n,"State",(function(){return Sl})),t.d(n,"State$reflection",(function(){return xl})),t.d(n,"DataToLoad",(function(){return kl})),t.d(n,"DataToLoad$reflection",(function(){return Tl})),t.d(n,"Msg",(function(){return Il})),t.d(n,"Msg$reflection",(function(){return Al})),t.d(n,"StateModule_init",(function(){return Ol})),t.d(n,"StateModule_update",(function(){return Nl})),t.d(n,"Component",(function(){return Ml}));class s{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 s(e[Symbol.iterator]())}function l(e){return{[Symbol.iterator](){return this},next(){const n=e["System.Collections.IEnumerator.MoveNext"]();return{done:!n,value:n?e["System.Collections.IEnumerator.get_Current"]():void 0}}}}function a(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function f(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function h(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class d{static id(e){return d.idMap.has(e)||d.idMap.set(e,++d.count),d.idMap.get(e)}}function p(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function _(e){return 2654435761*e|0}function m(e){return 0===e.length?0:e.reduce((e,n)=>(e<<5)+e^n)}function g(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=g(e[r]);return m(t)}(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=>g(e)))}return _(d.id(e))}}function w(e,n,t){if(null==e)return null==n;if(null==n)return!1;if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(!t(e[r],n[r]))return!1;return!0}function y(e,n){return w(e,n,v)}function v(e,n){return e===n||(null==e?null==n:null!=n&&("object"==typeof e&&(function(e){return"function"==typeof e.Equals}(e)?e.Equals(n):r(e)?r(n)&&y(e,n):e instanceof Date?n instanceof Date&&0===b(e,n):Object.getPrototypeOf(e).constructor===Object&&function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return!1;t.sort(),r.sort();for(let o=0;o<t.length;o++)if(t[o]!==r[o]||!v(e[t[o]],n[r[o]]))return!1;return!0}(e,n))))}function b(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+f(e),r=n.getTime()+f(n)),t===r?0:t<r?-1:1}function C(e,n){return e===n?0:e<n?-1:1}function E(e,n){return function(e,n,t){if(null==e)return null==n?0:1;if(null==n)return-1;if(e.length!==n.length)return e.length<n.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=t(e[r],n[r]),0!==o)return o;return 0}(e,n,S)}function S(e,n){return e===n?0:null==e?null==n?0:-1:null==n?1:"object"!=typeof e?e<n?-1:1:function(e){return"function"==typeof e.CompareTo}(e)?e.CompareTo(n):r(e)?r(n)?E(e,n):-1:e instanceof Date?n instanceof Date?b(e,n):-1:Object.getPrototypeOf(e).constructor===Object?function(e,n){const t=Object.keys(e),r=Object.keys(n);if(t.length!==r.length)return t.length<r.length?-1:1;t.sort(),r.sort();for(let o=0,i=0;o<t.length;o++){const u=t[o];if(u!==r[o])return u<r[o]?-1:1;if(i=S(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function x(e,n,t){return e(n,t)>0?n:t}function k(e){const n={};for(const t of e)n[t[0]]=t[1];return n}d.idMap=new WeakMap,d.count=0;function T(e,n){if(null==n||n.length>1)return n;let t;switch(e){case 2:t=(e,t)=>n(e)(t);break;case 3:t=(e,t,r)=>n(e)(t)(r);break;case 4:t=(e,t,r,o)=>n(e)(t)(r)(o);break;case 5:t=(e,t,r,o,i)=>n(e)(t)(r)(o)(i);break;case 6:t=(e,t,r,o,i,u)=>n(e)(t)(r)(o)(i)(u);break;case 7:t=(e,t,r,o,i,u,s)=>n(e)(t)(r)(o)(i)(u)(s);break;case 8:t=(e,t,r,o,i,u,s,c)=>n(e)(t)(r)(o)(i)(u)(s)(c);break;default:throw new Error("Uncurrying to more than 8-arity is not supported: "+e)}return t.__CURRIED__=n,t}function I(e,n){if(null==n||1===n.length)return n;if("__CURRIED__"in n)return n.__CURRIED__;switch(e){case 2:return e=>t=>n(e,t);case 3:return e=>t=>r=>n(e,t,r);case 4:return e=>t=>r=>o=>n(e,t,r,o);case 5:return e=>t=>r=>o=>i=>n(e,t,r,o,i);case 6:return e=>t=>r=>o=>i=>u=>n(e,t,r,o,i,u);case 7:return e=>t=>r=>o=>i=>u=>s=>n(e,t,r,o,i,u,s);case 8:return e=>t=>r=>o=>i=>u=>s=>c=>n(e,t,r,o,i,u,s,c);default:throw new Error("Currying to more than 8-arity is not supported: "+e)}}function A(e,n){return t=>function e(n,t,r,o){const i=r[o];if(0!==i){const e=i[0],n=i[1];e>1&&(t=I(e,t)),n>1&&(t=T(n,t))}const u=n(t);return o+1===r.length?u:n=>e(u,n,r,o+1)}(e,t,n,0)}function O(e,n=0){if(null!=e&&"object"==typeof e){if("function"==typeof e.toString)return e.toString();if(Symbol.iterator in e)return function(e){let n=0,t="[";for(const r of e){if(0===n)t+=O(r);else{if(100===n){t+="; ...";break}t+="; "+O(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map(([e,t])=>e+" = "+O(t,n+1)).join("\n ")+" }":t.name}}return String(e)}class N{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,n){if(0===n.length)return e;{let t="",r=!0;return 1===n.length?(t=O(n[0]),r=t.indexOf(" ")>=0):t=n.map(e=>O(e)).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>g(e));return e.splice(0,0,_(this.tag)),m(e)}Equals(e){return this===e||!!u(this,e)&&(this.tag===e.tag&&y(this.fields,e.fields))}CompareTo(e){return this===e?0:u(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function M(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}function P(e){return"{ "+Object.entries(e).map(([e,n])=>e+" = "+O(n)).join("\n ")+" }"}function D(e){return m(Object.values(e).map(e=>g(e)))}function F(e,n){if(e===n)return!0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!v(e[t[r]],n[t[r]]))return!1;return!0}return!1}function R(e,n){if(e===n)return 0;if(u(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=S(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}class U{toJSON(){return M(this)}toString(){return P(this)}GetHashCode(){return D(this)}Equals(e){return F(this,e)}CompareTo(e){return R(this,e)}}class j{constructor(e,n){"function"==typeof n?(this.getter=e,this.setter=n):(this.getter=()=>e,this.setter=n=>{e=n})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class L{constructor(e,n,t,r){this.declaringType=e,this.tag=n,this.name=t,this.fields=r}}class G{constructor(e,n,t,r,o,i,u){this.fullname=e,this.generics=n,this.construct=t,this.parent=r,this.fields=o,this.cases=i,this.enumCases=u}toString(){return Q(this)}GetHashCode(){return B(this)}Equals(e){return $(this,e)}}function H(e){return null!=e.generics?e.generics:[]}function B(e){return m([p(e.fullname),...H(e).map(B)])}function $(e,n){return""===e.fullname?""===n.fullname&&w(ue(e),ue(n),([e,n],[t,r])=>e===t&&$(n,r)):e.fullname===n.fullname&&w(H(e),H(n),$)}function V(e,n,t,r){return new G(e,n,t,r)}function W(e,n,t,r){return new G(e,n,t,void 0,r)}function q(e,n,t,r){const o=new G(e,n,t,void 0,void 0,()=>{const e=t.prototype.cases();return r().map((n,t)=>new L(o,t,e[t],n))});return o}function z(e){return new G("Microsoft.FSharp.Core.FSharpOption`1",[e])}function J(e){return new G("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Z=new G("System.Object"),Y=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String")),X=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 K(e){if(Array.isArray(e))return e[0];if(e instanceof L)return e.name;{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}function Q(e){const n=null==e.generics||ee(e)?[]:e.generics;return n.length>0?e.fullname+"["+n.map(e=>Q(e)).join(",")+"]":e.fullname}function ee(e){return e.fullname.endsWith("[]")}function ne(e){return null!=e.enumCases&&e.enumCases.length>0}function te(e){if(ne(e)&&null!=e.enumCases)return e.enumCases.map(e=>e[1]);throw new Error(e.fullname+" is not an enum type")}function re(e,n){if(null!=e.enumCases){if("string"==typeof n){for(const t of e.enumCases)if(t[0]===n)return t;throw new Error(`'${n}' was not found in ${e.fullname}`)}for(const t of e.enumCases)if(t[1]===n)return t;return["",n]}throw new Error(e.fullname+" is not an enum type")}function oe(e,n){const t=parseInt(n,10);return re(e,isNaN(t)?n:t)[1]}function ie(e){if(null!=e.cases)return e.cases();throw new Error(e.fullname+" is not an F# union type")}function ue(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")&&!ee(e)}function ce(e,n){const t=(e.fields||[]).length;if(n.length!==t)throw new Error(`Expected an array of length ${t} but got ${n.length}`);return null!=e.declaringType.construct?new e.declaringType.construct(e.tag,...n):{}}var le;function ae(e,n){switch(n){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 fe(e,n,t){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.")}}(t=t||function(e,n){if(n&le.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,n)).test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}function he(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=fe(e,n,o);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=ae(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=ae(t,r);if(e>=u&&e<=s)return e}}throw new Error("Input string was not in a correct format.")}(e,n,t,r),!0}catch(e){return!1}}function de(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(le||(le={}));const pe=Symbol("numeric");function _e(e){return"number"==typeof e||(null==e?void 0:e[pe])}function me(e,n){return"number"==typeof e?e*n:e[pe]().multiply(n)}function ge(e,n){return"number"==typeof e?e.toFixed(n):e[pe]().toFixed(n)}function we(e,n){return"number"==typeof e?e.toPrecision(n):e[pe]().toPrecision(n)}function ye(e,n){return"number"==typeof e?e.toExponential(n):e[pe]().toExponential(n)}function ve(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[pe]().toHex()}var be=null;try{be=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 Ce(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function Ee(e){return!0===(e&&e.__isLong__)}Ce.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},Ce.prototype.Equals=function(e){return Ye(this,e)},Ce.prototype.CompareTo=function(e){return en(this,e)},Ce.prototype.toString=function(e){return qe(this,e)},Ce.prototype.toJSON=function(){return qe(this)},Ce.prototype[pe]=function(){const e=this;return{multiply:n=>on(e,n),toPrecision:n=>String(e)+(0).toPrecision(n).substr(1),toExponential:n=>String(e)+(0).toExponential(n).substr(1),toFixed:n=>String(e)+(0).toFixed(n).substr(1),toHex:()=>qe(e.unsigned?e:hn(fn(e),!0),16)}},Ce.prototype.__isLong__,Object.defineProperty(Ce.prototype,"__isLong__",{value:!0});var Se={},xe={};function ke(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=xe[e])?r:(t=Ie(e,(0|e)<0?-1:0,!0),o&&(xe[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=Se[e])?r:(t=Ie(e,e<0?-1:0,!1),o&&(Se[e]=t),t)}function Te(e,n){if(isNaN(e))return n?Ue:Re;if(n){if(e<0)return Ue;if(e>=Pe)return Be}else{if(e<=-De)return $e;if(e+1>=De)return He}return e<0?nn(Te(-e,n)):Ie(e%Me|0,e/Me|0,n)}function Ie(e,n,t){return new Ce(e,n,t)}var Ae=Math.pow;function Oe(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Re;if("number"==typeof n?(t=n,n=!1):n=!!n,(t=t||10)<2||36<t)throw RangeError("radix");var r=e.indexOf("-");if(r>0)throw Error("interior hyphen");if(0===r)return nn(Oe(e.substring(1),n,t));for(var o=Te(Ae(t,8)),i=Re,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),c=parseInt(e.substring(u,u+s),t);if(s<8)i=tn(on(i,Te(Ae(t,s))),Te(c));else i=tn(i=on(i,o),Te(c))}return i.unsigned=n,i}function Ne(e,n){return"number"==typeof e?Te(e,n):"string"==typeof e?Oe(e,n):Ie(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var Me=4294967296,Pe=Me*Me,De=Pe/2,Fe=ke(1<<24),Re=ke(0),Ue=ke(0,!0),je=ke(1),Le=ke(1,!0),Ge=ke(-1),He=Ie(-1,2147483647,!1),Be=Ie(-1,-1,!0),$e=Ie(0,-2147483648,!1);function Ve(e){return e.unsigned?e.low>>>0:e.low}function We(e){return e.unsigned?(e.high>>>0)*Me+(e.low>>>0):e.high*Me+(e.low>>>0)}function qe(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(ze(e))return"0";if(Je(e)){if(Ye(e,$e)){var t=Te(n),r=un(e,t),o=rn(on(r,t),e);return qe(r,n)+Ve(o).toString(n)}return"-"+qe(nn(e),n)}for(var i=Te(Ae(n,6),e.unsigned),u=e,s="";;){var c=un(u,i),l=(Ve(rn(u,on(c,i)))>>>0).toString(n);if(ze(u=c))return l+s;for(;l.length<6;)l="0"+l;s=""+l+s}}function ze(e){return 0===e.high&&0===e.low}function Je(e){return!e.unsigned&&e.high<0}function Ze(e){return 1==(1&e.low)}function Ye(e,n){return Ee(n)||(n=Ne(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&(e.high===n.high&&e.low===n.low)}function Xe(e,n){return en(e,n)<0}function Ke(e,n){return en(e,n)>0}function Qe(e,n){return en(e,n)>=0}function en(e,n){if(Ee(n)||(n=Ne(n)),Ye(e,n))return 0;var t=Je(e),r=Je(n);return t&&!r?-1:!t&&r?1:e.unsigned?n.high>>>0>e.high>>>0||n.high===e.high&&n.low>>>0>e.low>>>0?-1:1:Je(rn(e,n))?-1:1}function nn(e){return!e.unsigned&&Ye(e,$e)?$e:tn(sn(e),je)}function tn(e,n){Ee(n)||(n=Ne(n));var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,c=n.low>>>16,l=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+c)>>>16,l+=(a+=r+s)>>>16,l+=t+u,Ie((f&=65535)<<16|(h&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function rn(e,n){return Ee(n)||(n=Ne(n)),tn(e,nn(n))}function on(e,n){if(ze(e))return e.unsigned?Ue:Re;if(Ee(n)||(n=Ne(n)),be)return Ie(be.mul(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned);if(ze(n))return e.unsigned?Ue:Re;if(Ye(e,$e))return Ze(n)?$e:Re;if(Ye(n,$e))return Ze(e)?$e:Re;if(Je(e))return Je(n)?on(nn(e),nn(n)):nn(on(nn(e),n));if(Je(n))return nn(on(e,nn(n)));if(Xe(e,Fe)&&Xe(n,Fe))return Te(We(e)*We(n),e.unsigned);var t=e.high>>>16,r=65535&e.high,o=e.low>>>16,i=65535&e.low,u=n.high>>>16,s=65535&n.high,c=n.low>>>16,l=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*l)>>>16,f+=(h+=o*l)>>>16,h&=65535,f+=(h+=i*c)>>>16,a+=(f+=r*l)>>>16,f&=65535,a+=(f+=o*c)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*l+r*c+o*s+i*u,Ie((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function un(e,n){if(Ee(n)||(n=Ne(n)),ze(n))throw Error("division by zero");var t,r,o;if(be)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?Ie((e.unsigned?be.div_u:be.div_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):e;if(ze(e))return e.unsigned?Ue:Re;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:Ie(e.low,e.high,!0)}(n)),Ke(n,e))return Ue;if(Ke(n,an(e,1)))return Le;o=Ue}else{if(Ye(e,$e))return Ye(n,je)||Ye(n,Ge)?$e:Ye(n,$e)?je:Ye(t=cn(un(ln(e,1),n),1),Re)?Je(n)?je:Ge:o=tn(t,un(r=rn(e,on(n,t)),n));if(Ye(n,$e))return e.unsigned?Ue:Re;if(Je(e))return Je(n)?un(nn(e),nn(n)):nn(un(nn(e),n));if(Je(n))return nn(un(e,nn(n)));o=Re}for(r=e;Qe(r,n);){t=Math.max(1,Math.floor(We(r)/We(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:Ae(2,i-48),s=Te(t),c=on(s,n);Je(c)||Ke(c,r);)c=on(s=Te(t-=u,e.unsigned),n);ze(s)&&(s=je),o=tn(o,s),r=rn(r,c)}return o}function sn(e){return Ie(~e.low,~e.high,e.unsigned)}function cn(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):Ie(0,e.low<<n-32,e.unsigned)}function ln(e,n){return Ee(n)&&(n=Ve(n)),0==(n&=63)?e:n<32?Ie(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):Ie(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}function an(e,n){if(Ee(n)&&(n=Ve(n)),0===(n&=63))return e;var t=e.high;return n<32?Ie(e.low>>>n|t<<32-n,t>>>n,e.unsigned):Ie(32===n?t:t>>>n-32,0,e.unsigned)}function fn(e,n){return n?function(e){var n=e.high,t=e.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&n,n>>>8&255,n>>>16&255,n>>>24]}(e):function(e){var n=e.high,t=e.low;return[n>>>24,n>>>16&255,n>>>8&255,255&n,t>>>24,t>>>16&255,t>>>8&255,255&t]}(e)}function hn(e,n,t){return t?function(e,n){return new Ce(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,n)}(e,n):function(e,n){return new Ce(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],n)}(e,n)}const dn=tn,pn=on,_n=un,mn=function(e,n){return Ee(n)||(n=Ne(n)),be?Ie((e.unsigned?be.rem_u:be.rem_s)(e.low,e.high,n.low,n.high),be.get_high(),e.unsigned):rn(e,on(un(e,n),n))},gn=nn,wn=function(e,n){return Ee(n)||(n=Ne(n)),Ie(e.low&n.low,e.high&n.high,e.unsigned)},yn=en,vn=Ie,bn=Ve,Cn=We;function En(e,n,t){let r=e,o=0;switch(t){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,n)}const Sn=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function xn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+a(~~(e/36e5),2)+":"+a(t,2)}function kn(e,n){const t=e.toISOString();return"first"===n?t.substring(0,t.indexOf("T")):t.substring(t.indexOf("T")+1,t.length-1)}function Tn(e,n,t){return n.replace(/(\w)\1*/g,n=>{let r=Number.NaN;switch(n.substring(0,1)){case"y":const o=t?e.getUTCFullYear():e.getFullYear();r=n.length<4?o%100:o;break;case"M":r=(t?e.getUTCMonth():e.getMonth())+1;break;case"d":r=t?e.getUTCDate():e.getDate();break;case"H":r=t?e.getUTCHours():e.getHours();break;case"h":const i=t?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=t?e.getUTCMinutes():e.getMinutes();break;case"s":r=t?e.getUTCSeconds():e.getSeconds();break;case"f":r=t?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?n:r<10&&n.length>1?"0"+r:""+r})}function In(e,n){var t,r,o;const i=new Date(e.getTime()+(null!==(t=e.offset)&&void 0!==t?t:0));if("string"!=typeof n)return i.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+xn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return Tn(i,n,!0);switch(n){case"D":case"d":return kn(i,"first");case"T":case"t":return kn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+xn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function An(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return Tn(e,n,t);switch(n){case"D":case"d":return t?kn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?kn(e,"second"):e.toLocaleTimeString();case"O":case"o":return function(e,n){if(n)return e.toISOString();{const n=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)+(n?xn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}function On(e,n,t){return null!=e.offset?In(e,n):An(e,n)}function Nn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function Mn(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 n=new Date(e);if(isNaN(n.getTime())){const t=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*([+-]\d+(?::\d+)?)?\s*$/.exec(e);if(null==t)throw new Error("The string is not a valid Date.");{let e,r=0;if(null!=t[2]){const e=t[2].split(":");r=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=t[3]&&"PM"===t[3].toUpperCase()&&(r+=720)}if(null!=t[4]){if(null!=t[1])e=new Date(t[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}const n=t[4].substr(1).split(":");let o=60*parseInt(n[0],10)+parseInt(n[1]||"0",10);"+"===t[4][0]&&(o*=-1),r+=60*o}else if(null!=t[1])e=new Date(t[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}n=new Date(e.getTime()+1e3*r),n=new Date(n.getTime()+6e4*(n.getTimezoneOffset()-e.getTimezoneOffset()))}}return n}function Pn(e,n){try{return n.contents=function(e,n=!1){const t=Mn(e),r=Sn.exec(e),o=null!=r?n&&"Z"===r[0]?1:2:0;return Nn(t.getTime(),o)}(e),!0}catch(e){return!1}}function Dn(e,n=0){if(0!=(-276&n))throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Singleline and ECMAScript");let t="g";return t+=1&n?"i":"",t+=2&n?"m":"",t+=16&n?"s":"",new RegExp(e,t)}function Fn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Rn(e,n,t=0){let r;if(r=e instanceof RegExp?(r=e,e=n,r.lastIndex=t,r):r=Dn(n,t),!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 Un=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,jn=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ln=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gn(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Hn(e){return{input:e,cont:(n=e,e=>{Un.lastIndex=0;const t=[],r=[];let o=0,i=Un.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Un.lastIndex,Un.lastIndex-=1,i=Un.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),function e(n,t,r,o="",i=-1){return(...u)=>{let s=o;const c=t.slice(),l=r.slice();for(const e of u){const[,,n,t,r,o]=l[0];let u=t;if(i>=0)u=i,i=-1;else if("*"===u){if(e<0)throw new Error("Non-negative number required");i=e;continue}s+=c[0],s+=Vn(e,n,u,r,o),c.splice(0,1),l.splice(0,1)}return 0===l.length?(s+=c[0],n(s)):e(n,c,l,s,i)}}(e,t,r))})};var n}function Bn(e,n){return"string"==typeof n?e(n):n.cont(e)}function $n(e){return Bn(e=>e,e)}function Vn(e,n,t,r,o){let i="";if(n=n||"",o=o||"",_e(e))switch("x"!==o.toLowerCase()&&(Gn(e,0)?(e=me(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ge(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?we(e,r):we(e);break;case"e":case"E":e=null!=r?ye(e,r):ye(e);break;case"x":e=ve(e);break;case"X":e=ve(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?On(e):O(e);if(t="number"==typeof t?t:parseInt(t,10),isNaN(t))e=i+e;else{const r=n.indexOf("0")>=0,o=n.indexOf("-")>=0,u=o||!r?" ":"0";e="0"===u?i+(e=Jn(e,t-i.length,u,o)):Jn(i+e,t,u,o)}return e}function Wn(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Ln,(e,t,r,o,i,u)=>{let s=n[t];if(_e(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=ge(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?we(s,i):we(s);break;case"e":case"E":s=null!=i?ye(s,i):ye(s);break;case"p":case"P":i=null!=i?i:2,s=ge(me(s,100),i)+" %";break;case"d":case"D":s=null!=i?Jn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Jn(ve(s),i,"0"):ve(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/(0+)(\.0+)?/,(n,t,r)=>(Gn(s,0)&&(s=me(s,-1),e="-"),s=ge(s,null!=r?r.length-1:0),Jn(s,(t||"").length-e.length+(null!=r?r.length:0),"0"))),s=e+s}}else s=s instanceof Date?On(s,u||o):O(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Jn(String(s),Math.abs(r)," ",r<0)),s})}function qn(e){return"string"!=typeof e||0===e.length}function zn(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Jn(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}function Zn(e,n,t,r){if(r="number"==typeof r?r:void 0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];if(!Array.isArray(n)){if(0===r)return e.split(n,t);const o=arguments.length;n=Array(o-1);for(let e=1;e<o;e++)n[e-1]=arguments[e]}n=(n=n.map(e=>Fn(e))).length>0?n:[" "];let o=0;const i=[],u=new RegExp(n.join("|"),"g");for(;null==t||t>1;){const n=u.exec(e);if(null===n)break;(!r||n.index-o>0)&&(t=null!=t?t-1:t,i.push(e.substring(o,n.index))),o=u.lastIndex}return(!r||e.length-o>0)&&i.push(e.substring(o)),i}function Yn(e,n,t){if(n+(t||0)>e.length)throw new Error("Invalid startIndex and/or length");return null!=t?e.substr(n,t):e.substr(n)}class Xn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return g(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Xn?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof Xn?e.value:e)}}function Kn(e){return null==e||e instanceof Xn?new Xn(e):e}function Qn(e){if(null==e)throw new Error("Option has no value");return e instanceof Xn?e.value:e}function et(e){return null==e?[]:[Qn(e)]}function nt(e,n){return null!=e?Qn(e):n}function tt(e,n){return null!=n?Kn(e(Qn(n))):void 0}function rt(e,n){return"function"==typeof e?new e(n):new Array(n)}function ot(){throw new Error("Arrays had different lengths")}function it(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function ut(e,n,t){const r=0|n.length,o=rt(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function st(e,n,t){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=rt(t,e);for(let t=0;t<=e-1;t++)r[t]=n(t);return r}function ct(e,n,t){return t.reduce((n,t)=>e(n,t),n)}function lt(e,n,t){return 0===function(e,n,t){if(null==n)return null==t?0:-1;if(null==t)return 1;{let r=0,o=0;const i=0|n.length,u=0|t.length;if(i>u)return 1;if(i<u)return-1;for(;r<i&&0===o;)o=0|e(n[r],t[r]),r=r+1|0;return 0|o}}((e,n)=>S(e,n),n,t)}function at(e,n,t){return n.reduceRight((n,t)=>e(t,n),t)}function ft(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&ot();const i=0|n.length;for(let r=1;r<=i;r++)o=e(r-1,n[i-r],t[i-r],o);return o}((n,t,r,o)=>e(t,r,o),n,t,r)}class ht extends U{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+zn("; ",this)+"]"}Equals(e){const n=this;if(n===e)return!0;return((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1];if(v(t.head,r.head)){e=i,n=u;continue e}return!1}return!1}return null==o[1]}})(n,e)}GetHashCode(){return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t,u=i.tail;if(null==u)return 0|o;{const s=u;if(r>18)return 0|o;e=r+1,n=(o<<1)+g(i.head)+631*r,t=s}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,n)=>{e:for(;;){const t=e,r=n,o=[t.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],u=o[1],s=0|S(t.head,r.head);if(0===s){e=i,n=u;continue e}return 0|s}return 1}return null!=o[1]?-1:0}})(this,e)}GetEnumerator(){return function(e){return new dt(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class dt{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,n=e.it.tail;if(null!=n){const t=n;return e.current=e.it.head,e.it=t,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function pt(){return new ht(null,void 0)}function _t(e,n){return new ht(e,n)}function mt(e){return null==e.tail}function gt(e){return 0|((e,n)=>{for(;;){const t=e,r=n.tail;if(null==r)return 0|t;e=t+1,n=r}})(0,e)}function wt(e){if(null!=e.tail)return e.head;throw new Error("List was empty\\nParameter name: list")}function yt(e){const n=e.tail;if(null!=n)return n;throw new Error("List was empty\\nParameter name: list")}function vt(){return pt()}function bt(e,n){return _t(e,n)}function Ct(e){return _t(e,pt())}function Et(e){return mt(e)}function St(e){return wt(e)}function xt(e){return yt(e)}function kt(e){const n=0|gt(e),t=it(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(mt(o))break;t[r]=wt(o),e=r+1,n=yt(o)}})(0,e),t}function Tt(e,n,t){let r=n,o=t;for(;!mt(o);)r=e(r,wt(o)),o=yt(o);return r}function It(e){return Tt((e,n)=>_t(n,e),pt(),e)}function At(e,n){Tt((n,t)=>{e(t)},void 0,n)}function Ot(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=_t(e[n],t);return t}function Nt(e){return Ot(e,pt())}function Mt(e,n){return Tt((e,n)=>_t(n,e),n,It(e))}function Pt(e,n){const t=pt(),r=Tt((n,t)=>{const r=new ht(e(t),void 0);return n.tail=r,r},t,n),o=pt();return r.tail=o,yt(t)}class Dt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["AccountList","NotFound"]}}function Ft(){return q("Middleware.FastTrack.AdminUI.Types.Page",[],Dt,()=>[[],[]])}function Rt(e){let n;switch(n=Et(e)?1:"fasttrack-middleware"===St(e)?Et(xt(e))?1:"accounts"===St(xt(e))&&Et(xt(xt(e)))?0:1:1,n){case 0:return new Dt(0);case 1:return new Dt(1)}}class Ut extends U{constructor(e,n,t,r,o,i){super(),this.AccountName=e,this.ApiVersion=n,this.Email=t,this.PayeeIntegrationFlag=r,this.PayeeType=o,this.PayeeUpdateFlag=i}}function jt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Common.FastTrackDetails",[],Ut,()=>[["AccountName",z(Y)],["ApiVersion",Y],["Email",z(Y)],["PayeeIntegrationFlag",X],["PayeeType",z(Y)],["PayeeUpdateFlag",X]])}class Lt extends U{constructor(e,n,t,r){super(),this.Id=e,this.FastTrack=n,this.Flare=t,this.LastSummaryEmailChecked=r}}function Gt(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.Account",[],Lt,()=>[["Id",Y],["FastTrack",jt()],["Flare",W("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.FlareDetails",[],Ht,()=>[["AccountName",z(Y)],["RepName",Y],["WebhookSubscriptionId",z(Y)],["UseDivisionLookup",X]])],["LastSummaryEmailChecked",z(Y)]])}class Ht extends U{constructor(e,n,t,r){super(),this.AccountName=e,this.RepName=n,this.WebhookSubscriptionId=t,this.UseDivisionLookup=r}}class Bt extends U{constructor(e,n){super(),this.Id=e,this.FastTrack=n}}function $t(){return W("Middleware.FastTrack.AdminUI.Services.BackendDto.Apollo.Account",[],Bt,()=>[["Id",Y],["FastTrack",jt()]])}class Vt extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function Wt(e,n){return 0===n.tag?new Vt(0,e(n.fields[0])):new Vt(1,n.fields[0])}var qt,zt,Jt,Zt,Yt,Xt={},Kt=[],Qt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function er(e,n){for(var t in n)e[t]=n[t];return e}function nr(e){var n=e.parentNode;n&&n.removeChild(e)}function tr(e,n,t){var r,o,i,u=arguments,s={};for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);if(null!=t&&(s.children=t),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return rr(e,s,r,o,null)}function rr(e,n,t,r,o){var i={type:e,props:n,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++qt.__v:o};return null!=qt.vnode&&qt.vnode(i),i}function or(e){return e.children}function ir(e,n){this.props=e,this.context=n}function ur(e,n){if(null==n)return e.__?ur(e.__,e.__.__k.indexOf(e)+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?ur(e):null}function sr(e){var n,t;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,n=0;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e){e.__e=e.__c.base=t.__e;break}return sr(e)}}function cr(e){(!e.__d&&(e.__d=!0)&&zt.push(e)&&!lr.__r++||Zt!==qt.debounceRendering)&&((Zt=qt.debounceRendering)||Jt)(lr)}function lr(){for(var e;lr.__r=zt.length;)e=zt.sort((function(e,n){return e.__v.__b-n.__v.__b})),zt=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=er({},o)).__v=o.__v+1,wr(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?ur(o):i,o.__h),yr(t,o),o.__e!=i&&sr(o)))}))}function ar(e,n,t,r,o,i,u,s,c,l){var a,f,h,d,p,_,m,g=r&&r.__k||Kt,w=g.length;for(t.__k=[],a=0;a<n.length;a++)if(null!=(d=t.__k[a]=null==(d=n[a])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?rr(null,d,null,null,d):Array.isArray(d)?rr(or,{children:d},null,null,null):d.__b>0?rr(d.type,d.props,d.key,null,d.__v):d)){if(d.__=t,d.__b=t.__b+1,null===(h=g[a])||h&&d.key==h.key&&d.type===h.type)g[a]=void 0;else for(f=0;f<w;f++){if((h=g[f])&&d.key==h.key&&d.type===h.type){g[f]=void 0;break}h=null}wr(e,d,h=h||Xt,o,i,u,s,c,l),p=d.__e,(f=d.ref)&&h.ref!=f&&(m||(m=[]),h.ref&&m.push(h.ref,null,d),m.push(f,d.__c||p,d)),null!=p?(null==_&&(_=p),"function"==typeof d.type&&null!=d.__k&&d.__k===h.__k?d.__d=c=fr(d,c,e):c=dr(e,d,h,g,p,c),l||"option"!==t.type?"function"==typeof t.type&&(t.__d=c):e.value=""):c&&h.__e==c&&c.parentNode!=e&&(c=ur(h))}for(t.__e=_,a=w;a--;)null!=g[a]&&("function"==typeof t.type&&null!=g[a].__e&&g[a].__e==t.__d&&(t.__d=ur(r,a+1)),Cr(g[a],g[a]));if(m)for(a=0;a<m.length;a++)br(m[a],m[++a],m[++a])}function fr(e,n,t){var r,o;for(r=0;r<e.__k.length;r++)(o=e.__k[r])&&(o.__=e,n="function"==typeof o.type?fr(o,n,t):dr(t,o,o,e.__k,o.__e,n));return n}function hr(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){hr(e,n)})):n.push(e)),n}function dr(e,n,t,r,o,i){var u,s,c;if(void 0!==n.__d)u=n.__d,n.__d=void 0;else if(null==t||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),u=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function pr(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||Qt.test(n)?t:t+"px"}function _r(e,n,t,r,o){var i;e:if("style"===n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(n in r)t&&n in t||pr(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||pr(e.style,n,t[n])}else if("o"===n[0]&&"n"===n[1])i=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in e?n.toLowerCase().slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?r||e.addEventListener(n,i?gr:mr,i):e.removeEventListener(n,i?gr:mr,i);else if("dangerouslySetInnerHTML"!==n){if(o)n=n.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in e)try{e[n]=null==t?"":t;break e}catch(e){}"function"==typeof t||(null!=t&&(!1!==t||"a"===n[0]&&"r"===n[1])?e.setAttribute(n,t):e.removeAttribute(n))}}function mr(e){this.l[e.type+!1](qt.event?qt.event(e):e)}function gr(e){this.l[e.type+!0](qt.event?qt.event(e):e)}function wr(e,n,t,r,o,i,u,s,c){var l,a,f,h,d,p,_,m,g,w,y,v=n.type;if(void 0!==n.constructor)return null;null!=t.__h&&(c=t.__h,s=n.__e=t.__e,n.__h=null,i=[s]),(l=qt.__b)&&l(n);try{e:if("function"==typeof v){if(m=n.props,g=(l=v.contextType)&&r[l.__c],w=l?g?g.props.value:l.__:r,t.__c?_=(a=n.__c=t.__c).__=a.__E:("prototype"in v&&v.prototype.render?n.__c=a=new v(m,w):(n.__c=a=new ir(m,w),a.constructor=v,a.render=Er),g&&g.sub(a),a.props=m,a.state||(a.state={}),a.context=w,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=v.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=er({},a.__s)),er(a.__s,v.getDerivedStateFromProps(m,a.__s))),h=a.props,d=a.state,f)null==v.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==v.getDerivedStateFromProps&&m!==h&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(m,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(m,a.__s,w)||n.__v===t.__v){a.props=m,a.state=a.__s,n.__v!==t.__v&&(a.__d=!1),a.__v=n,n.__e=t.__e,n.__k=t.__k,n.__k.forEach((function(e){e&&(e.__=n)})),a.__h.length&&u.push(a);break e}null!=a.componentWillUpdate&&a.componentWillUpdate(m,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(h,d,p)}))}a.context=w,a.props=m,a.state=a.__s,(l=qt.__r)&&l(n),a.__d=!1,a.__v=n,a.__P=e,l=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(r=er(er({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(h,d)),y=null!=l&&l.type===or&&null==l.key?l.props.children:l,ar(e,Array.isArray(y)?y:[y],n,t,r,o,i,u,s,c),a.base=n.__e,n.__h=null,a.__h.length&&u.push(a),_&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===t.__v?(n.__k=t.__k,n.__e=t.__e):n.__e=vr(t.__e,n,t,r,o,i,u,c);(l=qt.diffed)&&l(n)}catch(e){n.__v=null,(c||null!=i)&&(n.__e=s,n.__h=!!c,i[i.indexOf(s)]=null),qt.__e(e,n,t)}}function yr(e,n){qt.__c&&qt.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(e){qt.__e(e,n.__v)}}))}function vr(e,n,t,r,o,i,u,s){var c,l,a,f,h=t.props,d=n.props,p=n.type,_=0;if("svg"===p&&(o=!0),null!=i)for(;_<i.length;_++)if((c=i[_])&&(c===e||(p?c.localName==p:3==c.nodeType))){e=c,i[_]=null;break}if(null==e){if(null===p)return document.createTextNode(d);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,d.is&&d),i=null,s=!1}if(null===p)h===d||s&&e.data===d||(e.data=d);else{if(i=i&&Kt.slice.call(e.childNodes),l=(h=t.props||Xt).dangerouslySetInnerHTML,a=d.dangerouslySetInnerHTML,!s){if(null!=i)for(h={},f=0;f<e.attributes.length;f++)h[e.attributes[f].name]=e.attributes[f].value;(a||l)&&(a&&(l&&a.__html==l.__html||a.__html===e.innerHTML)||(e.innerHTML=a&&a.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||_r(e,i,null,t[i],r);for(i in n)o&&"function"!=typeof n[i]||"children"===i||"key"===i||"value"===i||"checked"===i||t[i]===n[i]||_r(e,i,n[i],t[i],r)}(e,d,h,o,s),a)n.__k=[];else if(_=n.props.children,ar(e,Array.isArray(_)?_:[_],n,t,r,o&&"foreignObject"!==p,i,u,e.firstChild,s),null!=i)for(_=i.length;_--;)null!=i[_]&&nr(i[_]);s||("value"in d&&void 0!==(_=d.value)&&(_!==e.value||"progress"===p&&!_)&&_r(e,"value",_,h.value,!1),"checked"in d&&void 0!==(_=d.checked)&&_!==e.checked&&_r(e,"checked",_,h.checked,!1))}return e}function br(e,n,t){try{"function"==typeof e?e(n):e.current=n}catch(e){qt.__e(e,t)}}function Cr(e,n,t){var r,o,i;if(qt.unmount&&qt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||br(r,null,n)),t||"function"==typeof e.type||(t=null!=(o=e.__e)),e.__e=e.__d=void 0,null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){qt.__e(e,n)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Cr(r[i],n,t);null!=o&&nr(o)}function Er(e,n,t){return this.constructor(e,t)}function Sr(e,n,t){var r,o,i;qt.__&&qt.__(e,n),o=(r="function"==typeof t)?null:t&&t.__k||n.__k,i=[],wr(n,e=(!r&&t||n).__k=tr(or,null,[e]),o||Xt,Xt,void 0!==n.ownerSVGElement,!r&&t?[t]:o?null:n.firstChild?Kt.slice.call(n.childNodes):null,i,!r&&t?t:o?o.__e:n.firstChild,r),yr(i,e)}function xr(e,n){Sr(e,n,xr)}function kr(e,n,t){var r,o,i,u=arguments,s=er({},e.props);for(i in n)"key"==i?r=n[i]:"ref"==i?o=n[i]:s[i]=n[i];if(arguments.length>3)for(t=[t],i=3;i<arguments.length;i++)t.push(u[i]);return null!=t&&(s.children=t),rr(e.type,s,r||e.key,o||e.ref,null)}qt={__e:function(e,n){for(var t,r,o;n=n.__;)if((t=n.__c)&&!t.__)try{if((r=t.constructor)&&null!=r.getDerivedStateFromError&&(t.setState(r.getDerivedStateFromError(e)),o=t.__d),null!=t.componentDidCatch&&(t.componentDidCatch(e),o=t.__d),o)return t.__E=t}catch(n){e=n}throw e},__v:0},ir.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=er({},this.state),"function"==typeof e&&(e=e(er({},t),this.props)),e&&er(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),cr(this))},ir.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),cr(this))},ir.prototype.render=or,zt=[],Jt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lr.__r=0,Yt=0;var Tr,Ir,Ar,Or=0,Nr=[],Mr=qt.__b,Pr=qt.__r,Dr=qt.diffed,Fr=qt.__c,Rr=qt.unmount;function Ur(e,n){qt.__h&&qt.__h(Ir,e,Or||n),Or=0;var t=Ir.__H||(Ir.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function jr(e){return Or=1,Lr(Zr,e)}function Lr(e,n,t){var r=Ur(Tr++,2);return r.t=e,r.__c||(r.__=[t?t(n):Zr(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=Ir),r.__}function Gr(e,n){var t=Ur(Tr++,3);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__H.__h.push(t))}function Hr(e,n){var t=Ur(Tr++,4);!qt.__s&&Jr(t.__H,n)&&(t.__=e,t.__H=n,Ir.__h.push(t))}function Br(e,n){var t=Ur(Tr++,7);return Jr(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function $r(e,n){qt.useDebugValue&&qt.useDebugValue(n?n(e):e)}function Vr(){Nr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(qr),e.__H.__h.forEach(zr),e.__H.__h=[]}catch(n){e.__H.__h=[],qt.__e(n,e.__v)}})),Nr=[]}qt.__b=function(e){Ir=null,Mr&&Mr(e)},qt.__r=function(e){Pr&&Pr(e),Tr=0;var n=(Ir=e.__c).__H;n&&(n.__h.forEach(qr),n.__h.forEach(zr),n.__h=[])},qt.diffed=function(e){Dr&&Dr(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==Nr.push(n)&&Ar===qt.requestAnimationFrame||((Ar=qt.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),Wr&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);Wr&&(n=requestAnimationFrame(t))})(Vr)),Ir=void 0},qt.__c=function(e,n){n.some((function(e){try{e.__h.forEach(qr),e.__h=e.__h.filter((function(e){return!e.__||zr(e)}))}catch(t){n.some((function(e){e.__h&&(e.__h=[])})),n=[],qt.__e(t,e.__v)}})),Fr&&Fr(e,n)},qt.unmount=function(e){Rr&&Rr(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(qr)}catch(e){qt.__e(e,n.__v)}};var Wr="function"==typeof requestAnimationFrame;function qr(e){var n=Ir;"function"==typeof e.__c&&e.__c(),Ir=n}function zr(e){var n=Ir;e.__c=e.__(),Ir=n}function Jr(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function Zr(e,n){return"function"==typeof n?n(e):n}function Yr(e,n){for(var t in n)e[t]=n[t];return e}function Xr(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var r in n)if("__source"!==r&&e[r]!==n[r])return!0;return!1}function Kr(e){this.props=e}(Kr.prototype=new ir).isPureReactComponent=!0,Kr.prototype.shouldComponentUpdate=function(e,n){return Xr(this.props,e)||Xr(this.state,n)};var Qr=qt.__b;qt.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qr&&Qr(e)};var eo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var no=function(e,n){return null==e?null:hr(hr(e).map(n))},to={map:no,forEach:no,count:function(e){return e?hr(e).length:0},only:function(e){var n=hr(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:hr},ro=qt.__e;qt.__e=function(e,n,t){if(e.then)for(var r,o=n;o=o.__;)if((r=o.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);ro(e,n,t)};var oo=qt.unmount;function io(){this.__u=0,this.t=null,this.__b=null}function uo(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function so(){this.u=null,this.o=null}qt.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),oo&&oo(e)},(io.prototype=new ir).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=uo(r.__v),i=!1,u=function(){i||(i=!0,t.__R=null,o?o(s):s())};t.__R=u;var s=function(){if(!--r.__u){if(r.state.__e){var e=r.state.__e;r.__v.__k[0]=function e(n,t,r){return n&&(n.__v=null,n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)})),n.__c&&n.__c.__P===t&&(n.__e&&r.insertBefore(n.__e,n.__d),n.__c.__e=!0,n.__c.__P=r)),n}(e,e.__c.__P,e.__c.__O)}var n;for(r.setState({__e:r.__b=null});n=r.t.pop();)n.forceUpdate()}},c=!0===n.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},io.prototype.componentWillUnmount=function(){this.t=[]},io.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(n,t,r){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),n.__c.__H=null),null!=(n=Yr({},n)).__c&&(n.__c.__P===r&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map((function(n){return e(n,t,r)}))),n}(this.__b,t,r.__O=r.__P)}this.__b=null}var o=n.__e&&tr(or,null,e.fallback);return o&&(o.__h=null),[tr(or,null,n.__e?null:e.children),o]};var co=function(e,n,t){if(++t[1]===t[0]&&e.o.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(t=e.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.u=t=t[2]}};function lo(e){return this.getChildContext=function(){return e.context},e.children}function ao(e){var n=this,t=e.i;n.componentWillUnmount=function(){Sr(null,n.l),n.l=null,n.i=null},n.i&&n.i!==t&&n.componentWillUnmount(),e.__v?(n.l||(n.i=t,n.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(e){this.childNodes.push(e),n.i.appendChild(e)},insertBefore:function(e,t){this.childNodes.push(e),n.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),n.i.removeChild(e)}}),Sr(tr(lo,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(so.prototype=new ir).__e=function(e){var n=this,t=uo(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),co(n,e,r)):o()};t?t(i):i()}},so.prototype.render=function(e){this.u=null,this.o=new Map;var n=hr(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.o.set(n[t],this.u=[1,0,this.u]);return e.children},so.prototype.componentDidUpdate=so.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){co(e,t,n)}))};var fo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ho=/^(?: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]/,po=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};ir.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(ir.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var _o=qt.event;function mo(){}function go(){return this.cancelBubble}function wo(){return this.defaultPrevented}qt.event=function(e){return _o&&(e=_o(e)),e.persist=mo,e.isPropagationStopped=go,e.isDefaultPrevented=wo,e.nativeEvent=e};var yo,vo={configurable:!0,get:function(){return this.class}},bo=qt.vnode;qt.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){for(var o in r={},t){var i=t[o];"value"===o&&"defaultValue"in t&&null==i||("defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":/ondoubleclick/i.test(o)?o="ondblclick":/^onchange(textarea|input)/i.test(o+n)&&!po(t.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():ho.test(o)?o=o.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[o]=i)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=hr(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=hr(t.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&&t.class!=t.className&&(vo.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",vo)),e.$$typeof=fo,bo&&bo(e)};var Co=qt.__r;qt.__r=function(e){Co&&Co(e),yo=e.__c};var Eo={ReactCurrentDispatcher:{current:{readContext:function(e){return yo.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function So(e){return!!e&&e.$$typeof===fo}var xo={useState:jr,useReducer:Lr,useEffect:Gr,useLayoutEffect:Hr,useRef:function(e){return Or=5,Br((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){Or=6,Hr((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:Br,useCallback:function(e,n){return Or=8,Br((function(){return e}),n)},useContext:function(e){var n=Ir.context[e.__c],t=Ur(Tr++,9);return t.__c=e,n?(null==t.__&&(t.__=!0,n.sub(Ir)),n.props.value):e.__},useDebugValue:$r,version:"16.8.0",Children:to,render:function(e,n,t){return null==n.__k&&(n.textContent=""),Sr(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return xr(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Sr(null,e),!0)},createPortal:function(e,n){return tr(ao,{__v:e,i:n})},createElement:tr,createContext:function(e,n){var t={__c:n="__cC"+Yt++,__:e,Consumer:function(e,n){return e.children(n)},Provider:function(e){var t,r;return this.getChildContext||(t=[],(r={})[n]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&t.some(cr)},this.sub=function(e){t.push(e);var n=e.componentWillUnmount;e.componentWillUnmount=function(){t.splice(t.indexOf(e),1),n&&n.call(e)}}),e.children}};return t.Provider.__=t.Consumer.contextType=t},createFactory:function(e){return tr.bind(null,e)},cloneElement:function(e){return So(e)?kr.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:or,isValidElement:So,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:ir,PureComponent:Kr,memo:function(e,n){function t(e){var t=this.props.ref,r=t==e.ref;return!r&&t&&(t.call?t(null):t.current=null),n?!n(this.props,e)||!r:Xr(this.props,e)}function r(n){return this.shouldComponentUpdate=t,tr(e,n)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(e){function n(n,t){var r=Yr({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=eo,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:or,Suspense:io,SuspenseList:so,lazy:function(e){var n,t,r;function o(o){if(n||(n=e()).then((function(e){t=e.default||e}),(function(e){r=e})),r)throw r;if(!t)throw n;return tr(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Eo};function ko(){return e=(e,n)=>S(e,n),{Compare:(n,t)=>e(n,t)};var e}function To(){return ko()}function Io(){throw new Error("Enumeration has not started. Call MoveNext.")}function Ao(){throw new Error("Enumeration already finished.")}class Oo{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=c(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=O(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{t.Dispose()}}GetEnumerator(){return this.f()}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class No{constructor(e,n,t){this.current=e,this.next=n,this.dispose=t}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Mo(e,n,t){return new No(e,n,t)}function Po(e,n,t){let r=!1,o=void 0,i=Kn(e());const u=()=>{if(null!=i){const e=Qn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{o=void 0}};return Mo(()=>(r||Io(),null!=o?Qn(o):Ao()),()=>{if(r||(r=!0),null!=i){const e=Qn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(o=t,!0):(s(),!1)}return!1},u)}function Do(e,n){null==n&&function(e){throw new Error(e)}(e)}function Fo(e){return function(e){return new Oo(e)}(e)}function Ro(e){return Do("source",e),c(e)}function Uo(e){return Fo(()=>function(e){let n=void 0,t=void 0,r=!1,o=!1,i=void 0;const u=()=>{if(o=!0,null!=t){const e=t;try{e.Dispose()}finally{t=void 0}}if(null!=n){const e=n;try{e.Dispose()}finally{n=void 0}}};return Mo(()=>(r?o&&Ao():Io(),null!=i?Qn(i):Ao()),()=>{let s;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[n,t];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Kn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{t=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=c(s)}else u(),r=!1}else n=c(e)}return Qn(r)}},()=>{o||u()})}(e))}function jo(e,n,t){return Fo(()=>Po(e,n,t))}function Lo(e,n,t){return Fo(()=>{let r=-1;return Po(e,e=>(r=r+1|0,n(r,e)),t)})}function Go(e,n){return Uo([e,n])}function Ho(e,n,t){const r=Ro(n);try{let n=!1;for(;!n&&r["System.Collections.IEnumerator.MoveNext"]();)n=t.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return n}finally{r.Dispose()}}function Bo(e,n,t){const r=Ro(t);try{let t=n;for(;r["System.Collections.IEnumerator.MoveNext"]();)t=e(t,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return t}finally{r.Dispose()}}function $o(e,n){Bo((n,t)=>{e(t)},void 0,n)}function Vo(e,n){return jo(()=>Ro(n),n=>n["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function Wo(e,n){return Lo(()=>Ro(n),(n,t)=>t["System.Collections.IEnumerator.MoveNext"]()?Kn(e(n,t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const qo=xo,zo=e=>{Gr(()=>{const n=e();return()=>{n.Dispose()}})},Jo=(e,n)=>{Gr(()=>{const n=e();return()=>{n.Dispose()}},n)},Zo=e=>{Hr(()=>{const n=e();return()=>{n.Dispose()}})};function Yo(e,n,t,r){const o=qo.memo(e,T(2,nt(I(2,t),null)));return $o(n=>{e.displayName=n},et(n)),e=>qo.createElement(o,Xo(r,e))}function Xo(e,n){if(null==e)return n;{const t=e;return n.key=t(n),n}}function Ko(e){return{Dispose(){e()}}}function Qo(e){zo(e)}function ei(e,n){Jo(e,n)}function ni(e){ri(e,[])}function ti(e){ei(e,[])}function ri(e,n){Jo(n=>(e(),Ko(()=>{})),n)}function oi(e,n){return qo.useCallback(e,nt(n,[]))}function ii(e){return qo.useRef(e)}function ui(e,n){return qo.useMemo(e,nt(n,[]))}function si(e){const n=ii(e),t=oi(e=>n.current(e),[]);var r;return r=()=>{n.current=e},Zo(e=>(r(),Ko(()=>{}))),t}function ci(e){return qo.useState(e)}class li{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 n=this._id;return this._listeners.set(this._id++,e),n}removeListener(e){return this._listeners.delete(e)}register(e,n){const t=this,r=this.addListener(null==n?e:()=>e(n));return{Dispose(){t.removeListener(r)}}}}class ai extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,ai.prototype)}}class fi{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>fi.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function hi(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new ai);else if(n.trampoline.incrementAndCheck())n.trampoline.hijack(()=>{try{e(n)}catch(e){n.onError(e)}});else try{e(n)}catch(e){n.onError(e)}}}function di(e,n){return hi(t=>{e({onSuccess:e=>{try{n(e)(t)}catch(e){t.onError(e)}},onError:t.onError,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function pi(e){return hi(n=>n.onSuccess(e))}const _i=new class{Bind(e,n){return di(e,n)}Combine(e,n){return this.Bind(e,()=>n)}Delay(e){return hi(n=>e()(n))}For(e,n){const t=e[Symbol.iterator]();let r=t.next();return this.While(()=>!r.done,this.Delay(()=>{const e=n(r.value);return r=t.next(),e}))}Return(e){return pi(e)}ReturnFrom(e){return e}TryFinally(e,n){return hi(t=>{e({onSuccess:e=>{n(),t.onSuccess(e)},onError:e=>{n(),t.onError(e)},onCancel:e=>{n(),t.onCancel(e)},cancelToken:t.cancelToken,trampoline:t.trampoline})})}TryWith(e,n){return hi(t=>{e({onSuccess:t.onSuccess,onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline,onError:e=>{try{n(e)(t)}catch(e){t.onError(e)}}})})}Using(e,n){return this.TryFinally(n(e),()=>e.Dispose())}While(e,n){return e()?this.Bind(n,()=>this.While(e,n)):this.Return(void 0)}Zero(){return hi(e=>e.onSuccess(void 0))}};function mi(e){}function gi(e){const n=new li("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{n.cancel()},e),n}function wi(e){e.cancel()}function yi(e){return null!=e&&e.isCancelled}const vi=new li;function bi(e){return hi(n=>e([n.onSuccess,n.onError,n.onCancel]))}function Ci(e,n){return function(e,n){return Ei(e,n)}(e,n)}function Ei(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new fi;e({onSuccess:n||mi,onError:t||mi,onCancel:r||mi,cancelToken:o||vi,trampoline:i})}class Si{constructor(e,n){this.k=e,this.v=n}}function xi(e,n){return new Si(e,n)}function ki(e){return e.k}function Ti(e){return e.v}class Ii extends Si{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function Ai(e,n,t,r,o){return new Ii(e,n,t,r,o)}function Oi(e){return e.left}function Ni(e){return e.right}function Mi(e){return e.h}function Pi(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){n=e(r+1,Oi(i)),t=Ni(i);continue e}return r+1|0}return 0|r}}(0,e)}function Di(e,n,t,r){let o;if(null!=e){const n=e;o=n instanceof Ii?Mi(n):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof Ii?Mi(e):1}else i=0;const u=0|(o<i?i:o);return 0===u?xi(n,t):Ai(n,t,e,r,u+1)}function Fi(e,n,t,r){let o,i,u,s,c;if(null!=e){const n=e;c=n instanceof Ii?Mi(n):1}else c=0;let l;if(null!=r){const e=r;l=e instanceof Ii?Mi(e):1}else l=0;if(l>c+2){const u=Qn(r);if(u instanceof Ii){if(o=Oi(u),(null!=o?(i=o,i instanceof Ii?Mi(i):1):0)>c+1){const r=Qn(Oi(u));if(r instanceof Ii)return Di(Di(e,n,t,Oi(r)),ki(r),Ti(r),Di(Ni(r),ki(u),Ti(u),Ni(u)));throw new Error("internal error: Map.rebalance")}return Di(Di(e,n,t,Oi(u)),ki(u),Ti(u),Ni(u))}throw new Error("internal error: Map.rebalance")}if(c>l+2){const o=Qn(e);if(o instanceof Ii){if(u=Ni(o),(null!=u?(s=u,s instanceof Ii?Mi(s):1):0)>l+1){const e=Qn(Ni(o));if(e instanceof Ii)return Di(Di(Oi(o),ki(o),Ti(o),Oi(e)),ki(e),Ti(e),Di(Ni(e),n,t,r));throw new Error("internal error: Map.rebalance")}return Di(Oi(o),ki(o),Ti(o),Di(Ni(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return Di(e,n,t,r)}function Ri(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,ki(o));return o instanceof Ii?i<0?Fi(Ri(e,n,t,Oi(o)),ki(o),Ti(o),Ni(o)):0===i?Ai(n,t,Oi(o),Ni(o),Mi(o)):Fi(Oi(o),ki(o),Ti(o),Ri(e,n,t,Ni(o))):i<0?Ai(n,t,void 0,r,2):0===i?xi(n,t):Ai(n,t,r,void 0,2)}return xi(n,t)}function Ui(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(0===s)return Kn(Ti(u));if(u instanceof Ii){e=r,n=o,t=s<0?Oi(u):Ni(u);continue e}return}return}}function ji(e,n){!function e(n,t){e:for(;;){const r=n,o=t;if(null!=o){const i=o;if(i instanceof Ii){e(r,Oi(i)),r(ki(i),Ti(i)),n=r,t=Ni(i);continue e}r(ki(i),Ti(i))}break}}(e,n)}function Li(e,n){return function e(n,t){if(null!=t){const r=t;if(r instanceof Ii){const t=e(n,Oi(r)),o=n(ki(r),Ti(r)),i=e(n,Ni(r));return Ai(ki(r),o,t,i,Mi(r))}return xi(ki(r),n(ki(r),Ti(r)))}}(e,n)}function Gi(e,n,t){let r=t;ji((e,t)=>{n[r]=[e,t],r=r+1|0},e)}function Hi(e,n){let t=void 0;for(let r=0;r<=n.length-1;r++){const o=n[r];t=Ri(e,o[0],o[1],t)}return t}function Bi(e,n){if(r(n))return Hi(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>Ri(e,t[0],t[1],n),void 0,n)}(e,n);{const t=c(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;{const u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,n=Ri(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{t.Dispose()}}}class $i extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function Vi(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=xt(n),r=St(n);if(null!=r){const o=r;if(o instanceof Ii){e=Ot([Oi(o),xi(ki(o),Ti(o)),Ni(o)],t);continue e}return n}e=t;continue e}}}function Wi(e){return new $i(Vi(Ct(e)),!1)}function qi(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("enumeration already finished")}();if(null!=St(n)){const e=St(n);if(e instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ki(e),Ti(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function zi(e){let n=Wi(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>qi(n),"System.Collections.IEnumerator.get_Current":()=>qi(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof Ii)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Vi(xt(n)),!Et(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=Wi(e)},Dispose(){}}}class Ji{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){const n=(e,n)=>(e<<1)+n+631;let t=0;const r=c(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,g(e[0])),t=0|n(t,g(e[1]))}}finally{r.Dispose()}return 0|t}(this)}Equals(e){if(!(e instanceof Ji))return!1;{const n=c(this);try{const t=c(e);try{const e=()=>{const r=n["System.Collections.IEnumerator.MoveNext"]();if(r===t["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"](),o=t["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!v(r[0],o[0])||!v(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{t.Dispose()}}finally{n.Dispose()}}}toString(){return"map ["+zn("; ",Vo(e=>Wn("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return zi(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return zi(this.tree)}CompareTo(e){const n=this;if(e instanceof Ji)return 0|function(e,n,t){const r=Ro(n);try{const n=Ro(t);try{let t=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]();for(;0===t&&o&&i;)t=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),n["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===t&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=n["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==t?t:o?1:i?-1:0)}finally{n.Dispose()}}finally{r.Dispose()}}((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:S(e[1],t[1]))},n,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!!Qi(this,e[0])&&v(Xi(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Gi(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ki(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ki(this)}get size(){return 0|Ki(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return Vo(e=>[e[0],e[1]],this)}get(e){return Xi(this,e)}has(e){return Qi(this,e)}keys(){return Vo(e=>e[0],this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return Vo(e=>e[1],this)}forEach(e,n){const t=this;$o(n=>{e(n[1],n[0],t)},t)}}function Zi(e,n){return new Ji(e,n)}function Yi(e){const n=To();return Zi(n,Bi(n,e))}function Xi(e,n){return function(e,n,t){const r=Ui(e,n,t);if(null==r)throw new Error;return Qn(r)}(e.comparer,n,e.tree)}function Ki(e){return Pi(e.tree)}function Qi(e,n){return function(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ki(u));if(u instanceof Ii){if(s<0){e=r,n=o,t=Oi(u);continue e}if(0===s)return!0;e=r,n=o,t=Ni(u);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function eu(e,n,t){return function(e,n,t){return Zi(e.comparer,Ri(e.comparer,n,t,e.tree))}(t,e,n)}function nu(e,n){return function(e,n){return Ui(e.comparer,n,e.tree)}(n,e)}function tu(e,n){return r=e,Zi((t=n).comparer,Li(r,t.tree));var t,r}function ru(){return Ji.empty}Ji.empty=Zi(To(),void 0);class ou extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function iu(e){return q("Feliz.UseDeferred.Deferred`1",[e],ou,()=>[[],[],[["Item",e]],[["Item",V("System.Exception")]]])}function uu(e,n){const t=ii(gi());return ti(()=>Ko(()=>{wi(t.current)})),si(r=>{yi(t.current)||Ci(_i.Delay(()=>_i.TryWith(_i.Delay(()=>(n(new ou(1)),_i.Bind(e(r),e=>(n(new ou(2,e)),_i.Zero())))),e=>(n(new ou(3,e)),_i.Zero()))),t.current)})}const su=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function cu(e){return tt(e=>e.passive&&!su?{capture:e.capture,once:e.once,passive:!1}:e,e)}function lu(e){return n=e=>e.capture?{capture:!0}:void 0,null!=(t=e)?n(Qn(t)):void 0;var n,t}const au=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,fu=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,hu=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function du(e){function n(e){return e.replace(fu,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(au.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+Fn(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(fu.test(t))return n(t);if(hu.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function pu(e,n){try{return n.contents=du(e),!0}catch(e){return!1}}var _u={GetHashCode(){return m([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[pe](){const e=this;return{multiply:n=>e.mul(n),toPrecision:n=>e.toPrecision(n),toExponential:n=>e.toExponential(n),toFixed:n=>e.toFixed(n),toHex:()=>(Number(e)>>>0).toString(16)}}},mu="[big.js] ",gu=mu+"Invalid ",wu=gu+"decimal places",yu=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function vu(e,n){var t,r,o;if(!yu.test(n))throw Error(gu+"number");for(e.s="-"==n.charAt(0)?(n=n.slice(1),-1):1,(t=n.indexOf("."))>-1&&(n=n.replace(".","")),(r=n.search(/e/i))>0?(t<0&&(t=r),t+=+n.slice(r+1),n=n.substring(0,r)):t<0&&(t=n.length),o=n.length,r=0;r<t&&r<o&&"0"==n.charAt(r);)++r;if(r==o)e.c=[e.e=0];else for(e.e=t-r-1,e.c=[],t=0;r<o;)e.c[t++]=+n.charAt(r++);return e=bu(e,Eu.DP+1,Eu.RM)}function bu(e,n,t,r){var o=e.c;if(void 0===t&&(t=Eu.RM),0!==t&&1!==t&&2!==t&&3!==t)throw Error("[big.js] Invalid rounding mode");if(n<1)r=3===t&&(r||!!o[0])||0===n&&(1===t&&o[0]>=5||2===t&&(o[0]>5||5===o[0]&&(r||void 0!==o[1]))),o.length=1,r?(e.e=e.e-n+1,o[0]=1):o[0]=e.e=0;else if(n<o.length){const i=o.findIndex((e,t)=>t>=n&&e>0)<0;if(r=1===t&&o[n]>=5||2===t&&(o[n]>5||5===o[n]&&(r||void 0!==o[n+1]||1&o[n-1]))||3===t&&(r||!i),o.length=n--,r)for(;++o[n]>9;)o[n]=0,n--||(++e.e,o.unshift(1));for(n=o.length;!o[--n];)o.pop()}return e}function Cu(e,n,t){var r=e.e,o=e.c.join(""),i=o.length;if(n)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&t?"-"+o:o}_u.abs=function(){var e=new this.constructor(this);return e.s=1,e},_u.cmp=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=r.s,s=e.s,c=r.e,l=e.e;if(!o[0]||!i[0])return o[0]?u:i[0]?-s:0;if(u!=s)return u;if(n=u<0,c!=l)return c>l^n?1:-1;for(s=Math.max(o.length,i.length),u=0;u<s;u++)if((c=u<o.length?o[u]:0)!=(l=u<i.length?i[u]:0))return c>l^n?1:-1;return 0},_u.div=function(e){var n=this.constructor,t=new n(this),r=(e=new n(e),t.c),o=e.c,i=t.s==e.s?1:-1,u=n.DP;if(u!==~~u||u<0||u>1e6)throw Error(wu);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var s,c,l,a,f,h=o.slice(),d=s=o.length,p=r.length,_=r.slice(0,s),m=_.length,g=e,w=g.c=[],y=0,v=u+(g.e=t.e-e.e)+1;for(g.s=i,i=v<0?0:v,h.unshift(0);m++<s;)_.push(0);do{for(l=0;l<10;l++){if(s!=(m=_.length))a=s>m?1:-1;else for(f=-1,a=0;++f<s;)if(o[f]!=_[f]){a=o[f]>_[f]?1:-1;break}if(!(a<0))break;for(c=m==s?o:h;m;){if(_[--m]<c[m]){for(f=m;f&&!_[--f];)_[f]=9;--_[f],_[m]+=10}_[m]-=c[m]}for(;!_[0];)_.shift()}w[y++]=a?l:++l,_[0]&&a?_[m]=r[d]||0:_=[r[d]]}while((d++<p||void 0!==_[0])&&i--);return w[0]||1==y||(w.shift(),g.e--,v--),y>v&&bu(g,v,n.RM,void 0!==_[0]),g},_u.eq=function(e){return 0===this.cmp(e)},_u.gt=function(e){return this.cmp(e)>0},_u.gte=function(e){return this.cmp(e)>-1},_u.lt=function(e){return this.cmp(e)<0},_u.lte=function(e){return this.cmp(e)<1},_u.minus=_u.sub=function(e){var n,t,r,o,i=this.constructor,u=new i(this),s=(e=new i(e),u.s),c=e.s;if(s!=c)return e.s=-c,u.plus(e);var l=u.c.slice(),a=u.e,f=e.c,h=e.e;if(!l[0]||!f[0])return f[0]?e.s=-c:l[0]?e=new i(u):e.s=1,e;if(s=a-h){for((o=s<0)?(s=-s,r=l):(h=a,r=f),r.reverse(),c=s;c--;)r.push(0);r.reverse()}else for(t=((o=l.length<f.length)?l:f).length,s=c=0;c<t;c++)if(l[c]!=f[c]){o=l[c]<f[c];break}if(o&&(r=l,l=f,f=r,e.s=-e.s),(c=(t=f.length)-(n=l.length))>0)for(;c--;)l[n++]=0;for(c=n;t>s;){if(l[--t]<f[t]){for(n=t;n&&!l[--n];)l[n]=9;--l[n],l[t]+=10}l[t]-=f[t]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--h;return l[0]||(e.s=1,l=[h=0]),e.c=l,e.e=h,e},_u.mod=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.s),i=e.s;if(!e.c[0])throw Error("[big.js] Division by zero");return r.s=e.s=1,n=1==e.cmp(r),r.s=o,e.s=i,n?new t(r):(o=t.DP,i=t.RM,t.DP=t.RM=0,r=r.div(e),t.DP=o,t.RM=i,this.minus(r.times(e)))},_u.plus=_u.add=function(e){var n,t,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var u=i.e,s=i.c,c=e.e,l=e.c;if(!s[0]||!l[0])return l[0]||(s[0]?e=new o(i):e.s=i.s),e;if(s=s.slice(),n=u-c){for(n>0?(c=u,r=l):(n=-n,r=s),r.reverse();n--;)r.push(0);r.reverse()}for(s.length-l.length<0&&(r=l,l=s,s=r),n=l.length,t=0;n;s[n]%=10)t=(s[--n]=s[n]+l[n]+t)/10|0;for(t&&(s.unshift(t),++c),n=s.length;0===s[--n];)s.pop();return e.c=s,e.e=c,e},_u.pow=function(e){var n=this.constructor,t=new n(this),r=new n("1"),o=new n("1"),i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(gu+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?o.div(r):r},_u.prec=function(e,n){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");return bu(new this.constructor(this),e,n)},_u.round=function(e,n){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(wu);return bu(new this.constructor(this),e+this.e+1,n)},_u.sqrt=function(){var e,n,t,r=this.constructor,o=new r(this),i=o.s,u=o.e,s=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(mu+"No square root");0===(i=Math.sqrt(o+""))||i===1/0?((n=o.c.join("")).length+u&1||(n+="0"),u=((u+1)/2|0)-(u<0||1&u),e=new r(((i=Math.sqrt(n))==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+u)):e=new r(i+""),u=e.e+(r.DP+=4);do{t=e,e=s.times(t.plus(o.div(t)))}while(t.c.slice(0,u).join("")!==e.c.slice(0,u).join(""));return bu(e,(r.DP-=4)+e.e+1,r.RM)},_u.times=_u.mul=function(e){var n,t=this.constructor,r=new t(this),o=(e=new t(e),r.c),i=e.c,u=o.length,s=i.length,c=r.e,l=e.e;if(e.s=r.s==e.s?1:-1,!o[0]||!i[0])return e.c=[e.e=0],e;for(e.e=c+l,u<s&&(n=o,o=i,i=n,l=u,u=s,s=l),n=new Array(l=u+s);l--;)n[l]=0;for(c=s;c--;){for(s=0,l=u+c;l>c;)s=n[l]+i[c]*o[l-c-1]+s,n[l--]=s%10,s=s/10|0;n[l]=s}for(s?++e.e:n.shift(),c=n.length;!n[--c];)n.pop();return e.c=n,e},_u.toExponential=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(t=bu(new t.constructor(t),++e,n);t.c.length<e;)t.c.push(0)}return Cu(t,!0,!!r)},_u.toFixed=function(e,n){var t=this,r=t.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(wu);for(e=e+(t=bu(new t.constructor(t),e+t.e+1,n)).e+1;t.c.length<e;)t.c.push(0)}return Cu(t,!1,!!r)},_u.toJSON=_u.toString=function(){var e=this,n=e.constructor;return Cu(e,e.e<=n.NE||e.e>=n.PE,!!e.c[0])},_u.toNumber=function(){var e=Number(Cu(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(mu+"Imprecise conversion");return e},_u.toPrecision=function(e,n){var t=this,r=t.constructor,o=t.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(gu+"precision");for(t=bu(new r(t),e,n);t.c.length<e;)t.c.push(0)}return Cu(t,e<=t.e||t.e<=r.NE||t.e>=r.PE,!!o)},_u.valueOf=function(){var e=this,n=e.constructor;if(!0===n.strict)throw Error(mu+"valueOf disallowed");return Cu(e,e.e<=n.NE||e.e>=n.PE,!0)};var Eu=function e(){function n(t){var r=this;if(!(r instanceof n))return void 0===t?e():new n(t);if(t instanceof n)r.s=t.s,r.e=t.e,r.c=t.c.slice(),function(e){if(e.c.length>1&&!e.c[0]){let n=e.c.findIndex(e=>e);e.c=e.c.slice(n),e.e=e.e-n}}(r);else{if("string"!=typeof t){if(!0===n.strict)throw TypeError(gu+"number");t=0===t&&1/t<0?"-0":String(t)}vu(r,t)}r.constructor=n}return n.prototype=_u,n.DP=28,n.RM=1,n.NE=-29,n.PE=29,n.strict=!1,n}(),Su=Eu;new Su(0),new Su(1),new Su(-1),new Su("79228162514264337593543950335"),new Su("-79228162514264337593543950335");function xu(e,n){return 0===n.indexOf(e)?n:void 0}function ku(e,n){return function(e,n){const t=e.lastIndexOf(n);return t>=0&&t===e.length-n.length}(n,e)?n:void 0}function Tu(e,n){return function(e){return 1===e?e=>{let n,t,r,o,i,u;return n=xu("/",e),null!=n?(t=n,"#"+t):(r=xu("#/",e),null!=r?(o=r,o):(i=xu("#",e),null!=i?(u=i,"#/"+Yn(u,1,u.length-1)):"#/"+e))}:e=>{let n,t;return n=xu("/",e),null!=n?(t=n,t):"/"+e}}(n)(zn("/",Pt(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Iu(e,n){return function(e,n){let t,r;const o=pt();let i=o,u=n;for(;!mt(u);){let n=e(wt(u));for(;!mt(n);)t=i,r=new ht(wt(n),void 0),t.tail=r,i=r,n=yt(n);u=yt(u)}const s=i,c=pt();return s.tail=c,yt(o)}(e=>{if("string"!=typeof(n=e)||/^\s*$/.test(n))return vt();{const n=function(e,...n){return 0===n.length?e.trimEnd():e.replace(new RegExp("["+Fn(n.join(""))+"]+$"),"")}(e,"#");if("?"===n)return vt();if(null!=xu("?",n))return Ct(n);{const e=n.split("?");if(lt(0,e,null)||1!==e.length){if(lt(0,e,null)||2!==e.length)return vt();if(""===e[1]){const n=e[0];return Ct(decodeURIComponent(n))}{const n=e[0],t=e[1];return Nt([decodeURIComponent(n),"?"+t])}}{const n=e[0];return Ct(decodeURIComponent(n))}}}var n},Nt(Zn(null!=xu("#",e)?Yn(e,1,e.length-1):1===n&&(null!=ku("#",e)||null!=ku("#/",e))?"":e,["/"],null,0)))}const Au=Yo(e=>{const n=si(n=>{const t=nt(e.onUrlChanged,e=>{});!function(e,n,t){n(Iu(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(nt(e.hashMode,1),t)});if(window.navigator.userAgent.indexOf("Trident")>=0||window.navigator.userAgent.indexOf("MSIE")>=0){const e="hashchange",t=e=>{n(e)},r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}else{const e="popstate",t=n,r=void 0,o=ui(()=>cu(r),[r]),i=ui(()=>lu(r),[r]),u=ui(()=>e=>{t(e)},[t]);Qo(si(()=>(null==o?window.addEventListener(e,u):window.addEventListener(e,u,o),Ko(()=>{null==i?window.removeEventListener(e,u):window.removeEventListener(e,u,i)}))))}const t="CUSTOM_NAVIGATION_EVENT",r=n,o=ui(()=>cu(void 0),[void 0]),i=ui(()=>lu(void 0),[void 0]),u=ui(()=>e=>{r(e)},[r]);Qo(si(()=>(null==o?window.addEventListener(t,u):window.addEventListener(t,u,o),Ko(()=>{null==i?window.removeEventListener(t,u):window.removeEventListener(t,u,i)}))));const s=e.application;return null==s?null:s},void 0,Nu,Ou);var Ou,Nu;function Mu(){return vt()}class Pu extends U{constructor(e,n){super(),this.bound=0|e,this.digits=n}}function Du(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Du(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}vn(2013265921,0,!1),vn(2013265921,0,!0);st(28,e=>Du(2,e),Int32Array);function Fu(e){return e.bound}function Ru(e,n){return e.digits[n]}function Uu(e,n){return En(Ru(e,n),!1,2)}function ju(e,n,t){e.digits[n]=0|t}function Lu(e,n){for(;;){const t=e,r=n;if(0===r)return vn(1,0,!1);if(r%2!=0)return pn(t,Lu(pn(t,t),~~(r/2)));e=pn(t,t),n=~~(r/2)}}function Gu(e,n){for(;;){const t=e,r=n;if(0===r)return 1;if(r%2!=0)return t*Gu(t*t,~~(r/2))|0;e=t*t,n=~~(r/2)}}const Hu=vn(16777216,0,!1),Bu=vn(16777215,0,!1);vn(16777215,0,!0);function $u(e){return new Pu(e,new Int32Array(e))}function Vu(e){const n=0|((e,n)=>{for(;;){const t=e,r=n;if(-1===r||0!==t[r])return r+1|0;e=t,n=r-1}})(e.digits,e.bound-1);return e.bound=0|n,e}function Wu(e){const n=0|(e<0?0:e);if(n<16777216){const e=$u(1);return e.digits[0]=0|n,Vu(e)}{const e=$u(2);for(let t=0;t<=1;t++)e.digits[t]=~~(n/Gu(16777216,t))%16777216|0;return Vu(e)}}function qu(e){if(1===e.bound)return 0|e.digits[0];{let n=0;for(let t=e.bound-1;t>=0;t--)n=e.digits[t]+16777216*n|0;return 0|n}}const zu=Wu(1),Ju=Wu(0);function Zu(e){return e.bound-1}function Yu(e){return 0===e.bound}function Xu(e,n){if(e.bound===n.bound){return((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return!0;if(r[i]!==o[i])return!1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}return!1}function Ku(e,n){if(e.bound<n.bound)return-1;if(e.bound>n.bound)return 1;return 0|((e,n,t)=>{for(;;){const r=e,o=n,i=t;if(-1===i)return 0;if(r[i]!==o[i])return r[i]<o[i]?-1:1;e=r,n=o,t=i-1}})(e.digits,n.digits,e.bound-1)}function Qu(e,n){return-1===Ku(e,n)}function es(e,n,t){for(;;){const r=e,o=n,i=t;if(!(yn(o,vn(0,0,!1))>0))break;{const u=dn(Uu(r,i),o);ju(r,i,~~bn(wn(u,Bu))),e=r,n=_n(u,Hu),t=i+1}}}function ns(e,n){const t=0|Fu(e),r=$u(t+1),o=En(n,!1,2);let i=vn(0,0,!1);for(let n=0;n<=t-1;n++){const t=dn(dn(i,Uu(r,n)),pn(Uu(e,n),o));ju(r,n,~~bn(wn(t,Bu))),i=_n(t,Hu)}return es(r,i,t),Vu(r)}function ts(e,n){const t=1===Fu(e),r=1===Fu(n);return t&&r?function(e,n){const t=$u(2),r=pn(En(e,!1,2),En(n,!1,2));return ju(t,0,~~bn(wn(r,Bu))),ju(t,1,~~bn(_n(r,Hu))),Vu(t)}(Ru(e,0),Ru(n,0)):t?ns(n,Ru(e,0)):r?ns(e,Ru(n,0)):function(e,n){const t=$u(e.bound+n.bound),r=t.digits;for(let o=0;o<=e.bound-1;o++){const i=En(e.digits[o],!1,2);let u=vn(0,0,!1),s=o;for(let e=0;e<=n.bound-1;e++){const t=En(n.digits[e],!1,2),o=dn(dn(En(r[s],!1,2),u),pn(i,t));r[s]=0|~~bn(wn(o,Bu)),u=_n(o,Hu),s=s+1|0}es(t,u,s)}return Vu(t)}(e,n)}class rs extends U{constructor(e,n,t,r,o,i,u){super(),this.bigL=0|e,this.twoToBigL=0|n,this.k=0|t,this.bigK=0|r,this.bigN=0|o,this.split=0|i,this.splits=u}}function os(e,n,t,r){return new rs(e,Gu(2,e),n,t,r,~~(24/e),st(~~(24/e),n=>Gu(2,e*n),Int32Array))}const is=[os(1,28,268435456,268435456),os(2,26,67108864,134217728),os(3,24,16777216,50331648),os(4,22,4194304,16777216),os(5,20,1048576,5242880),os(6,18,262144,1572864),os(7,16,65536,458752),os(8,14,16384,131072),os(9,12,4096,36864),os(10,10,1024,10240),os(11,8,256,2816),os(12,6,64,768),os(13,4,16,208)];st(24,e=>Gu(2,e)-1,Int32Array),st(24,e=>Gu(2,e),Int32Array),st(24,e=>Lu(vn(2,0,!1),e));is[0].bigN;function us(e,n){return ts(e,n)}function ss(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<=i[a+r]?i[a+r]=i[a+r]-e|0:(i[a+r]=i[a+r]+(16777216-e)|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function cs(e,n,t,r){const o=[e.digits,Zu(e)],i=o[0],u=[t.digits,Zu(t)],s=0|u[1],c=u[0],l=En(n,!1,2);let a=0,f=pn(l,En(c[0],!1,2));for(;yn(f,vn(0,0,!1))>0||a<s;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~bn(wn(f,Bu)),n=_n(f,Hu);e<16777216-i[a+r]?i[a+r]=i[a+r]+e|0:(i[a+r]=e-(16777216-i[a+r])|0,n=dn(n,vn(1,0,!1))),f=a<s?dn(n,pn(l,En(c[a+1],!1,2))):n,a=a+1|0}Vu(e)}function ls(e,n,t){const r=[Zu(n),Zu(e)],o=0|r[1],i=0|r[0];if(o<i+t)return 0;{const r=[n.digits,e.digits],u=r[1],s=r[0],c=0|(0===i?o===t?~~(u[t]/s[0]):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),En(s[0],!1,2))):o===i+t?~~(u[o]/(s[i]+1)):~~bn(_n(dn(pn(En(u[o],!1,2),Hu),En(u[o-1],!1,2)),dn(En(s[i],!1,2),vn(1,0,!1)))));return 0===c?1!==function(e,n,t,r){return e.bound+n<t.bound+r?-1:e.bound+n>t.bound+n?1:0|((e,t,o)=>{e:for(;;){const i=e,u=t,s=o;if(-1===s)return 0;{const c=0|(s<n?0:i[s-n]),l=0|(s<r?0:u[s-r]);if(c===l){e=i,t=u,o=s-1;continue e}return c<l?-1:1}}})(e.digits,t.digits,e.bound+n-1)}(n,t,e,0)?1:0:0|c}}function as(e,n){if(Yu(n))throw new Error;if(Zu(e)<Zu(n))return[Ju,e];{const t=function(e){return new Pu(e.bound,e.digits.slice())}(e),r=$u(Zu(e)-Zu(n)+1+1);let o=Zu(e);const i=0|Zu(n);let u=o-i;const s=e=>{};let c=!1;for(;!c;){s([r,t,u,o]);const e=0|ls(t,n,u);e>0?(ss(t,e,n,u),cs(r,e,zu,u),s([r,t,u,o])):(c=0===e&&0===u,c||(o===i+u?(s([r,t,u-1,o]),u=u-1|0):(s([r,t,u-1,o-1]),u=u-1|0,o=o-1|0)))}return[Vu(r),Vu(t)]}}Wu(2);function fs(e){return Wu(e)}function hs(e){return function(e){const n=yn(e,vn(0,0,!1))<0?vn(0,0,!1):e,t=$u(3);for(let e=0;e<=2;e++)t.digits[e]=0|~~bn(mn(_n(n,Lu(Hu,e)),Hu));return Vu(t)}(e)}function ds(e){const n=0|Zu(e),t=(e,n,r,o)=>{e:for(;;){const i=e,u=n,s=r,c=o;if(Et(c)){const e=0|qu(s);return i&&0===e?u:bt(h(e),u)}{const l=xt(c),a=as(s,St(c)[1]),f=a[1],h=a[0];if(i&&Yu(h)){e=i,n=u,r=f,o=l;continue e}e=i,n=t(!1,u,f,l),r=h,o=l;continue e}}},r=t(!0,vt(),e,((e,t,r)=>{for(;;){const o=e,i=t,u=r;if(Zu(u)>n)return bt([i,u],o);e=bt([i,u],o),t=i+1,r=us(u,u)}})(vt(),0,Wu(10)));return Et(r)?"0":zn("",kt(r))}function ps(e){return e.bound<=1}function _s(e){const n=e;return 0<n.bound?0|n.digits[0]:0}class ms extends U{constructor(e,n){super(),this.signInt=0|e,this.v=n}toString(){const e=this;switch(0|ys(e)){case-1:return Yu(vs(e))?"0":"-"+ds(vs(e));case 0:return"0";case 1:return ds(vs(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof ms&&bs(this,e)}GetHashCode(){return 0|(0===ys(e=this)?1:ys(e)+function(e){let n=0;for(let t=0;t<=e.bound-1;t++)n=e.digits[t]+(n<<3)|0;return 0|n}(vs(e))|0);var e}toJSON(e){return O(this)}CompareTo(e){if(e instanceof ms)return 0|function(e,n){return Cs(e,n)?-1:bs(e,n)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function gs(e,n){return new ms(e,n)}function ws(e){return ps(e)&&_s(e)<ms.smallLim?ms.smallPosTab[_s(e)]:e}function ys(e){return e.signInt}function vs(e){return e.v}function bs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:case 1:return Xu(vs(e),vs(n));case 2:case 3:return!!Yu(vs(e))&&Yu(vs(n));case 4:return!0;case 5:case 6:return Yu(vs(n));case 7:case 8:return Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Cs(e,n){const t=[ys(e),ys(n)];let r;switch(r=-1===t[0]?-1===t[1]?1:0===t[1]?8:1===t[1]?3:9:0===t[0]?-1===t[1]?6:0===t[1]?4:1===t[1]?5:9:1===t[0]?-1===t[1]?2:0===t[1]?7:1===t[1]?0:9:9,r){case 0:return Qu(vs(e),vs(n));case 1:return Qu(vs(n),vs(e));case 2:return!1;case 3:return!Yu(vs(e))||!Yu(vs(n));case 4:return!1;case 5:return!Yu(vs(n));case 6:case 7:return!1;case 8:return!Yu(vs(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Es(e){return e>=0?gs(1,ws(fs(e))):gs(-1,ws(-2147483648===e?hs(gn(En(e,!1,2))):fs(de(e))))}function Ss(){return ms.one}function xs(){return ms.two}function ks(){return ms.zero}ms.smallLim=4096,ms.smallPosTab=st(ms.smallLim,e=>fs(e)),ms.one=Es(1),ms.two=Es(2),ms.zero=Es(0);ks(),Ss(),xs();ks(),Ss();class Ts{constructor(){}}function Is(e,n){return{then:(e,t)=>{try{return n().then(e,t)}catch(e){if(v(t,null))return Promise.reject(e);try{return Promise.resolve(t(e))}catch(e){return Promise.reject(e)}}},catch:e=>{try{return n().catch(e)}catch(n){try{return Promise.resolve(e(n))}catch(e){return Promise.reject(e)}}}}}const As=new Ts;class Os extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Ns{constructor(e){this.state=new Os(0,it(new Array(x((e,n)=>C(e,n),e,10)),0,x((e,n)=>C(e,n),e,10),null),0)}}function Ms(e){const n=e.state;if(1===n.tag){const t=0|n.fields[1],r=0|n.fields[2],o=n.fields[0],i=(r+1)%o.length|0;return e.state=i===t?new Os(0,o,t):new Os(1,o,t,i),Kn(o[r])}}function Ps(e,n,t){const r=ii(e[0]),o=ii(new Ns(10));const u=ci(e[0]);let s;const c=ii(gi()),l=ii(c.current);ti(()=>Ko(()=>{wi(c.current)})),s=l;const a=()=>{setTimeout(()=>{let e;e=s.current,yi(e)||u[1](r.current)},0)},f=e=>{var t;(t=Is(0,()=>{let t=Kn(e);return function e(n,t,r){return t()?r.then(()=>e(n,t,r)):Promise.resolve(void 0)}(As,()=>{let e;return null!=t&&(e=s.current,!yi(e))},Is(0,()=>{const e=n(Qn(t),r.current);return At(e=>{e(f)},e[1]),t=Ms(o.current),r.current=e[0],a(),Promise.resolve()}))}),new Promise((e,n)=>{try{Promise.resolve(t).then(e,n)}catch(e){n(e)}})).then()},h=si(f);var d;return ei(()=>Ko(()=>{let e;$o(e=>{e.Dispose()},et((e=r.current,i(e)?e:void 0)))}),t),ri(()=>{r.current=e[0],a(),At(e=>{e(h)},e[1])},t),d=()=>{$o(h,et(Ms(o.current)))},zo(e=>(d(),Ko(()=>{}))),[u[0],h]}class Ds extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Fs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Rs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Us extends U{constructor(e,n,t,r,o,i,u){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.content=u}}class js extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Ls extends U{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}const Gs=new Us("",new Ds(0),vt(),!1,void 0,void 0,new Rs(0));new Ls(0,"","",ru(),new js(0,""));function Hs(e,n){return qn(n)?[n]:Zn(n,[e],null,0)}function Bs(e){return new Us(e,Gs.method,Gs.headers,Gs.withCredentials,Gs.overridenMimeType,Gs.overridenResponseType,Gs.content)}function $s(e,n){return new Us(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.content)}function Vs(e){return bi(n=>{const t=new XMLHttpRequest;t.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),t.onreadystatechange=()=>{let e,r,o,i,u,s;4===t.readyState&&n[0]((r=t.responseType,e=""===r||"text"===r?t.responseText:"",o=0|t.status,i=t.responseType,s=t.responseType,u=""===s||"text"===s?new js(0,t.responseText):new js("arraybuffer"===s?2:"blob"===s?1:3,t.response),new Ls(o,e,i,function(e){const n=To();return Zi(n,Hi(n,e))}(function(e,n,t){const r=[];for(let t=0;t<=n.length-1;t++){const o=e(n[t]);if(null!=o){const e=Qn(o);r.push(e)}}return"function"==typeof t?ut(e=>e,r,t):r}(e=>{const n=Nt(Hs(":",e));return Et(n)?void 0:[St(n).toLocaleLowerCase(),zn(":",xt(n)).trim()]},Hs("\r\n",t.getAllResponseHeaders()))),u)))};const r=c(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t.setRequestHeader(e.fields[0],e.fields[1])}}finally{r.Dispose()}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||t.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=[e.method,e.content];0===u[0].tag?t.send(Kn(void 0)):1===u[1].tag||3===u[1].tag||2===u[1].tag?t.send(Kn(u[1].fields[0])):t.send(Kn(void 0))})}class Ws extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class qs extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class zs{constructor(){this.cache=new Map([])}}function Js(){return new zs}Js(),Js();function Zs(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Ys(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=Dn(n,null!=r?r:0),n=t,r=void 0}if("function"==typeof t)return r=null==r?-1:r,n.substring(0,o)+n.substring(o).replace(e,(function(){let e=arguments[0];if(r){r--;const n=[],o=arguments.length,i="string"!=typeof arguments[o-1];let u=i?o-3:o-2;for(let e=0;e<u;e++)n.push(arguments[e]);n.index=arguments[u++],n.input=arguments[u++],i&&(n.groups=arguments[u]),e=t(n)}return e}));if(t=t.replace(/\$0/g,e=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),null!=r){let i;const u=n.substring(o),s=Rn(e,u),c=Rn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+c.replace(e,t)+n.substring(o+c.length)}return n.replace(e,t)}(Zs(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Zs(n)}}function Xs(e,n){Ks(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function Ks(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Qs(e,n){try{return n.contents=function(e){const n=Mn(e),t=Sn.exec(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t[0]?0:36e5*parseInt(t[1],10)+6e4*parseInt(t[2],10);return Xs(n.getTime(),r)}(e),!0}catch(e){return!1}}function ec(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return nc(arguments[0]);case 3:e=0,n=arguments[0],t=arguments[1],r=arguments[2],o=0}return 864e5*e+36e5*n+6e4*t+1e3*r+o}function nc(e){return Cn(_n(e,1e4))}function tc(e,n){try{return n.contents=function(e){const n=e.search("\\."),t=e.search("\\:");if(-1===n&&-1===t){const n=parseInt(e,0);if(isNaN(n))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return ec(n,0,0,0,0)}if(t>0){const n=/^(-?)((\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!=n&&null!=n[4]&&null!=n[5]){let t=0,r=0,o=0;const i=null!=n[1]&&"-"===n[1]?-1:1,u=+n[4],s=+n[5];if(null!=n[3]&&(t=+n[3]),null!=n[7]&&(o=+n[7]),null!=n[8])switch(n[8].length){case 1:r=100*+n[8];break;case 2:r=10*+n[8];break;case 3:r=+n[8];break;case 4:r=+n[8]/10;break;case 5:r=+n[8]/100;break;case 6:r=+n[8]/1e3;break;case 7:r=+n[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return i*ec(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class rc{constructor(e){this.k=e}}function oc(e){return new rc(e)}function ic(e){return e.k}class uc extends rc{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function sc(e,n,t,r){return new uc(e,n,t,r)}function cc(e){return e.left}function lc(e){return e.right}function ac(e){return e.h}function fc(e){return function e(n,t){e:for(;;){const r=n,o=t;if(null!=r){const i=r;if(i instanceof uc){n=cc(i),t=e(lc(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function hc(e,n,t){let r;if(null!=e){const n=e;r=n instanceof uc?ac(n):1}else r=0;let o;if(null!=t){const e=t;o=e instanceof uc?ac(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?oc(n):sc(n,e,t,i+1)}function dc(e,n,t){let r,o,i,u,s;if(null!=e){const n=e;s=n instanceof uc?ac(n):1}else s=0;let c;if(null!=t){const e=t;c=e instanceof uc?ac(e):1}else c=0;if(c>s+2){const i=Qn(t);if(i instanceof uc){if(r=cc(i),(null!=r?(o=r,o instanceof uc?ac(o):1):0)>s+1){const t=Qn(cc(i));if(t instanceof uc)return hc(hc(e,n,cc(t)),ic(t),hc(lc(t),ic(i),lc(i)));throw new Error("internal error: Set.rebalance")}return hc(hc(e,n,cc(i)),ic(i),lc(i))}throw new Error("internal error: Set.rebalance")}if(s>c+2){const r=Qn(e);if(r instanceof uc){if(i=lc(r),(null!=i?(u=i,u instanceof uc?ac(u):1):0)>c+1){const e=Qn(lc(r));if(e instanceof uc)return hc(hc(cc(r),ic(r),cc(e)),ic(e),hc(lc(e),n,t));throw new Error("internal error: Set.rebalance")}return hc(cc(r),ic(r),hc(lc(r),n,t))}throw new Error("internal error: Set.rebalance")}return hc(e,n,t)}function pc(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,ic(r));if(r instanceof uc)return o<0?dc(pc(e,n,cc(r)),ic(r),lc(r)):0===o?t:dc(cc(r),ic(r),pc(e,n,lc(r)));{const o=0|e.Compare(n,ic(r));return o<0?sc(n,void 0,t,2):0===o?t:sc(n,t,void 0,2)}}return oc(n)}function _c(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ic(u));if(u instanceof uc){if(s<0){e=r,n=o,t=cc(u);continue e}if(0===s)return!0;e=r,n=o,t=lc(u);continue e}return 0===s}return!1}}function mc(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof uc){mc(t,cc(o)),t(ic(o)),e=t,n=lc(o);continue e}t(ic(o))}break}}class gc extends U{constructor(e,n){super(),this.stack=e,this.started=n}}function wc(e){e:for(;;){const n=e;if(Et(n))return vt();{const t=St(n),r=xt(n);if(null!=t){const o=t;if(o instanceof uc){e=Ot([cc(o),oc(ic(o)),lc(o)],r);continue e}return n}e=r;continue e}}}function yc(e){return new gc(wc(Ct(e)),!1)}function vc(e){if(e.started){const n=e.stack;if(Et(n))return function(){throw new Error("Enumeration already started")}();if(null!=St(n)){return ic(St(n))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function bc(e){let n=yc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>vc(n),"System.Collections.IEnumerator.get_Current":()=>vc(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(Et(n))return!1;if(null!=St(n)){if(St(n)instanceof uc)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=wc(xt(n)),!Et(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Et(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=yc(e)},Dispose(){}}}function Cc(e,n,t){return null==n?null==t?0:-1:null==t?1:0|function(e,n,t){e:for(;;){const r=e,o=n,i=t,u=[o,i];if(Et(u[0]))return Et(u[1])?0:-1;if(Et(u[1]))return 1;if(null!=St(u[1]))if(null!=St(u[0])){const s=St(u[0]),c=St(u[1]);if(s instanceof uc)if(null==cc(s)){if(!(c instanceof uc)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(lc(s),xt(u[0])),t=bt(void 0,xt(u[1]));continue e}if(null==cc(c)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(lc(s),xt(u[0])),t=bt(lc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof uc)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=xt(u[0]),t=xt(u[1]);continue e}if(null==cc(c)){const o=0|r.Compare(ic(s),ic(c));if(0!==o)return 0|o;e=r,n=bt(void 0,xt(u[0])),t=bt(lc(c),xt(u[1]));continue e}{const u=[o,i];let s,c,l,a,f;switch(Et(u[0])?Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2:null!=St(u[0])?(s=0,c=xt(u[0]),l=St(u[0])):Et(u[1])?s=2:null!=St(u[1])?(s=1,a=xt(u[1]),f=St(u[1])):s=2,s){case 0:if(l instanceof uc){e=r,n=Ot([cc(l),sc(ic(l),void 0,lc(l),0)],c),t=i;continue e}e=r,n=Ot([void 0,oc(ic(l))],c),t=i;continue e;case 1:if(f instanceof uc){e=r,n=o,t=Ot([cc(f),sc(ic(f),void 0,lc(f),0)],a);continue e}e=r,n=o,t=Ot([void 0,oc(ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{St(u[1]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof uc){e=r,n=Ot([cc(a),sc(ic(a),void 0,lc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,oc(ic(a))],l),t=i;continue e;case 1:if(h instanceof uc){e=r,n=o,t=Ot([cc(h),sc(ic(h),void 0,lc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,oc(ic(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==St(u[0])){e=r,n=xt(u[0]),t=xt(u[1]);continue e}{St(u[0]);const s=[o,i];let c,l,a,f,h;switch(Et(s[0])?Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2:null!=St(s[0])?(c=0,l=xt(s[0]),a=St(s[0])):Et(s[1])?c=2:null!=St(s[1])?(c=1,f=xt(s[1]),h=St(s[1])):c=2,c){case 0:if(a instanceof uc){e=r,n=Ot([cc(a),sc(ic(a),void 0,lc(a),0)],l),t=i;continue e}e=r,n=Ot([void 0,oc(ic(a))],l),t=i;continue e;case 1:if(h instanceof uc){e=r,n=o,t=Ot([cc(h),sc(ic(h),void 0,lc(h),0)],f);continue e}e=r,n=o,t=Ot([void 0,oc(ic(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,Ct(n),Ct(t))}function Ec(e,n,t){let r=t;mc(e=>{n[r]=e,r=r+1|0},e)}function Sc(e,n){return ct((n,t)=>pc(e,t,n),void 0,n)}function xc(e,n){if(r(n))return Sc(e,n);if(n instanceof ht)return function(e,n){return Tt((n,t)=>pc(e,t,n),void 0,n)}(e,n);{const t=c(n);try{return function(e,n,t){for(;;){const r=e,o=n,i=t;if(!i["System.Collections.IEnumerator.MoveNext"]())return o;e=r,n=pc(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{t.Dispose()}}}class kc{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n=0;const t=c(e);try{for(;t["System.Collections.IEnumerator.MoveNext"]();){const e=t["System.Collections.Generic.IEnumerator`1.get_Current"]();n=(n<<1)+g(e)+631|0}}finally{t.Dispose()}return 0|Math.abs(n)}(this)}Equals(e){return e instanceof kc&&0===Cc(Ic(this),Ac(this),Ac(e))}toString(){return"set ["+zn("; ",Vo(e=>O(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Cc(Ic(this),Ac(this),Ac(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 _c(Ic(this),e,Ac(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Ec(Ac(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Oc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Oc(this)}GetEnumerator(){return bc(Ac(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return bc(Ac(this))}get size(){return 0|Oc(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 Nc(this,e)}keys(){return Vo(e=>e,this)}values(){return Vo(e=>e,this)}entries(){return Vo(e=>[e,e],this)}forEach(e,n){const t=this;$o(n=>{e(n,n,t)},t)}}function Tc(e,n){return new kc(e,n)}function Ic(e){return e.comparer}function Ac(e){return e.tree}function Oc(e){return fc(Ac(e))}function Nc(e,n){return _c(Ic(e),n,Ac(e))}function Mc(e,n){return Tc(n,xc(n,e))}function Pc(e,n,t){try{return"Expecting "+e+" but instead got:"+(t?"\n":" ")+JSON.stringify(n,null,4)}catch(n){return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(t?"\n":" ")}}function Dc(e,n){const t=2===n.tag?Pc(n.fields[0],n.fields[1],!0):1===n.tag?Pc(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Pc(n.fields[0],n.fields[1],!0):4===n.tag?Pc(n.fields[0],n.fields[1],!0)+"\nNode `"+n.fields[2]+"` is unkown.":5===n.tag?"Expecting "+n.fields[0]+".\n"+JSON.stringify(n.fields[1],null,4):7===n.tag?"The following errors were found:\n\n"+zn("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:Pc(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}function Fc(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new Vt(1,Dc(e[0],e[1]))}return new Vt(0,r.fields[0])}function Rc(e,n){try{return Fc("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new Vt(1,"Given an invalid JSON: "+e.message);throw e}}const Uc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-128<=e&&e<=127?new Vt(0,(e+128&255)-128):new Vt(1,[t,new Ws(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Vt(1,[t,new Ws(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,8,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"a sbyte",r)])}return new Vt(1,[t,new Ws(0,"a sbyte",r)])},jc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=255?new Vt(0,255&e):new Vt(1,[t,new Ws(1,"a byte",e,"Value was either too large or too small for a byte")]):new Vt(1,[t,new Ws(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!0,8,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"a byte",r)])}return new Vt(1,[t,new Ws(0,"a byte",r)])},Lc=e=>n=>{const t="an int16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?-32768<=e&&e<=32767?new Vt(0,(e+32768&65535)-32768):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!1,16,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])},Gc=e=>n=>{const t="an uint16",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=65535?new Vt(0,65535&e):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,16,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])},Hc=e=>n=>{const t=e,r=n;if("number"==typeof r){const e=r;return isFinite(e)&&Math.floor(e)===e?-2147483648<=e&&e<=2147483647?new Vt(0,~~e):new Vt(1,[t,new Ws(1,"an int",e,"Value was either too large or too small for an int")]):new Vt(1,[t,new Ws(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,n=0;return e=[he(r,511,!1,32,new j(()=>n,e=>{n=0|e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[t,new Ws(0,"an int",r)])}return new Vt(1,[t,new Ws(0,"an int",r)])},Bc=e=>n=>{const t="an uint32",r=e,o=n;if("number"==typeof o){const e=o;return isFinite(e)&&Math.floor(e)===e?0<=e&&e<=4294967295?new Vt(0,e>>>0):new Vt(1,[r,new Ws(1,t,e,"Value was either too large or too small for "+t)]):new Vt(1,[r,new Ws(1,t,e,"Value is not an integral value")])}if("string"==typeof o){let e,n=0;return e=[he(o,511,!0,32,new j(()=>n,e=>{n=e})),n],e[0]?new Vt(0,e[1]):new Vt(1,[r,new Ws(0,t,o)])}return new Vt(1,[r,new Ws(0,t,o)])};function $c(e,n){if("string"==typeof n){let r,o=Nn(-621355968e5,0);return r=[Pn(n,new j(()=>o,e=>{o=e})),o],r[0]?new Vt(0,1===(t=r[1]).kind?t:Nn(t.getTime(),1)):new Vt(1,[e,new Ws(0,"a datetime",n)])}return new Vt(1,[e,new Ws(0,"a datetime",n)]);var t}function Vc(e,n){if("string"==typeof n){let t,r=Xs(-621355968e5,0);return t=[Qs(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a datetimeoffset",n)])}return new Vt(1,[e,new Ws(0,"a datetime",n)])}function Wc(e,n,t,r){let o;const i=t+".["+h(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new Vt(1,[i,new Ws(5,"a longer array. Need index `"+h(e)+"` but there are only `"+(o=t.length,h(o)+"` entries"),r)])}return new Vt(1,[i,new Ws(0,"an array",r)])}function qc(e,n,t){if(Array.isArray(t)){let r=-1;return Wt(e=>It(e),ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+h(r)+"]",o);return 0===i.tag?new Vt(0,bt(i.fields[0],t.fields[0])):new Vt(1,i.fields[0])}return t},new Vt(0,vt()),t))}return new Vt(1,[n,new Ws(0,"a list",t)])}function zc(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return ct((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+h(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new Vt(0,i)):new Vt(1,u.fields[0])}return t},new Vt(0,it(new Array(o.length),0,o.length,null)),o)}return new Vt(1,[n,new Ws(0,"an array",t)])}function Jc(e,n,t){return new Vt(0,e)}function Zc(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new Vt(1,o.fields[0])}function Yc(e,n,t,r){const o=n(t,r);return 1===o.tag?new Vt(1,o.fields[0]):new Vt(0,e(o.fields[0]))}function Xc(e,n){let t;const r=e;return t=e=>n=>Wc(0,r,e,n),e=>r=>Zc(T(3,e=>{let t;const r=n;return t=e=>n=>Wc(1,r,e,n),n=>r=>Zc((n,t,r)=>Jc([e,n]),T(2,t),n,r)}),T(2,t),e,r)}function Kc(e){return Yi(e)}function Qc(e,n,t,r){let o,i;return n.length!==r.length?new Vt(1,[t,new Ws(6,(o=0|r.length,i=0|n.length,$n(Hn("Expected %i %s but got %i"))(i)(e)(o)))]):ft(T(3,A(e=>n=>r=>0===r.tag?Wt(e=>bt(e,r.fields[0]),n(t,e)):r,[0,[0,2],0])),r,n,new Vt(0,vt()))}function el(e,n,t,r,o,i){const u=(s=e=>K(e)===r,ie(t).find(s));var s;if(null!=u){const t=u;return 0===i.length?new Vt(0,ce(t,[])):Wt(e=>ce(t,kt(e)),Qc("union fields",ut(t=>tl(e,n,!1,t[1]),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new Vt(1,[o,new Ws(6,"Cannot find case "+r+" in "+Q(t))])}function nl(e,n,t,r){const o=new j(null),i=eu(Q(r),o,e);let u;if(function(e){return e instanceof G?null!=e.fields:e instanceof U}(r)){const e=ut(e=>[Ys(n,K(e)),tl(i,n,!1,e[1])],ue(r));u=n=>t=>Wt(e=>function(e,n){const t=ue(e);if(t.length!==n.length)throw new Error(`Expected an array of length ${t.length} but got ${n.length}`);return null!=e.construct?new e.construct(...n):t.reduce((e,[t,r],o)=>(e[t]=n[o],e),{})}(r,kt(e)),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new Vt(1,[n,new Ws(0,"an object",t)]):at(T(2,e=>{const r=e[0];return o=>0===o.tag?Wt(e=>bt(e,o.fields[0]),e[1](n+"."+r)(t[r])):o}),e,new Vt(0,vt()))}(e,n,t))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof N}(r))u=e=>t=>{if("string"==typeof t)return el(i,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return el(i,n,r,o[0],e,o.slice(1,o.length))}return new Vt(1,[e,new Ws(0,"a string or array",t)])};else{if(!t){let e;const n=Q(r);throw e=$n(Hn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}u=e=>n=>new Vt(1,[e,new Ws(2,"an extra coder for "+Q(r),n)])}return o.contents=u,u}function tl(e,n,t,r){let o;const i=Q(r),u=nu(i,e);if(null==u){if(ee(r)){const t=tl(e,n,!1,function(e){var n;return ee(e)?null===(n=e.generics)||void 0===n?void 0:n[0]:void 0}(r));return e=>n=>zc(T(2,t),e,n)}if(ne(r)){const e=Q(function(e){var n;return null===(n=e.generics)||void 0===n?void 0:n[0]}(r));if("System.SByte"===e)return e=>n=>{const t=r,o=e,i=n,u=Uc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=jc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=Lc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,(s=(s=e)<0&&null!=c&&10!==c?65535+s+1:s).toString(c))):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}var s,c};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Gc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Hc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,h(e))):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=Bc(o)(i);if(1===u.tag)return new Vt(1,u.fields[0]);{const e=u.fields[0];return Ho(e,te(t),{Equals:(e,n)=>e===n,GetHashCode:e=>_(e)})?new Vt(0,oe(t,e.toString())):new Vt(1,[o,new Ws(1,Q(t),i,"Unkown value provided for the enum")])}};{const e=Q(r),n=Bn(e=>{throw new Error(e)},Hn("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 t=n(e);return e=>t(e)}}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(se(r)){const t=ut(t=>tl(e,n,!1,t),function(e){if(se(e)&&null!=e.generics)return e.generics;throw new Error(e.fullname+" is not a tuple type")}(r));return e=>n=>Array.isArray(n)?Wt(e=>kt(e),Qc("tuple elements",t,e,n)):new Vt(1,[e,new Ws(0,"an array",n)])}{const i=Q(function(e){return null==e.generics?e:new G(e.fullname,e.generics.map(()=>Z))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===i){const t=tl(e,n,!0,H(r)[0]);return e=>n=>{return r=T(2,t),o=e,null==(i=n)?new Vt(0,void 0):Wt(e=>Kn(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const t=tl(e,n,!1,H(r)[0]);return e=>n=>qc(T(2,t),e,n)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const t=tl(e,n,!1,H(r)[0]),i=tl(e,n,!1,H(r)[1]);let u;const s=Nt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Vt(1,[t,new Ws(0,"an object",r)]):Bo((o,i)=>{if(0===o.tag){const u=e(t,i);if(0===u.tag){const e=n(t+"."+i,r[i]);return 0===e.tag?new Vt(0,bt([u.fields[0],e.fields[0]],o.fields[0])):new Vt(1,e.fields[0])}return new Vt(1,u.fields[0])}return o},new Vt(0,vt()),Object.keys(r))}(T(2,t),T(2,i),e,n),(o=Xc(T(2,t),T(2,i)),e=>n=>qc(T(2,o),e,n))]);return u=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(Et(o))return new Vt(1,[t,new Ws(7,i)]);{const u=Fc(t,T(2,St(o)),r);if(1===u.tag){e=xt(o),n=Mt(i,Ct(u.fields[0]));continue e}return new Vt(0,u.fields[0])}}})(s,vt());var t,r},e=>n=>Yc(e=>Kc(e),T(2,u),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const t=tl(e,n,!1,H(r)[0]);return e=>n=>{const r=zc(T(2,t),e,n);return 0===r.tag?new Vt(0,Mc(r.fields[0],{Compare:(e,n)=>S(e,n)})):new Vt(1,r.fields[0])}}return nl(e,n,t,r)}}return"System.Boolean"===i?e=>n=>{return t=e,"boolean"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===i?e=>n=>{return t=e,null==(r=n)?new Vt(0,void 0):new Vt(1,[t,new Ws(0,"null",r)]);var t,r}:"System.String"===i?e=>n=>{return t=e,"string"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a string",r)]);var t,r}:"System.SByte"===i?Uc:"System.Byte"===i?jc:"System.Int16"===i?Lc:"System.UInt16"===i?Gc:"System.Int32"===i?Hc:"System.UInt32"===i?Bc:"System.Double"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a float",r)]);var t,r}:"System.Single"===i?e=>n=>{return t=e,"number"==typeof(r=n)?new Vt(0,r):new Vt(1,[t,new Ws(0,"a float32",r)]);var t,r}:"System.DateTime"===i?e=>n=>$c(e,n):"System.DateTimeOffset"===i?e=>n=>Vc(e,n):"System.TimeSpan"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[tc(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a timespan",n)])}return new Vt(1,[e,new Ws(0,"a timespan",n)])}(e,n):"System.Guid"===i?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[pu(n,new j(()=>r,e=>{r=e})),r],t[0]?new Vt(0,t[1]):new Vt(1,[e,new Ws(0,"a guid",n)])}return new Vt(1,[e,new Ws(0,"a guid",n)])}(e,n):"System.Object"===i?e=>e=>new Vt(0,e):nl(e,n,t,r)}{const e=u;return n=>t=>e.contents(n)(t)}}function rl(e){return null!=e?tu((e,n)=>new j(n[1]),e.Coders):ru()}function ol(e,n,t){const r=nt(e,new qs(0)),o=Qn(t).ResolveType();return tl(rl(n),r,!1,o)}function il(e,n,t,r){return Rc(T(2,ol(n,t,r)),e)}function ul(e,n){return $n(function(e,n){let t=0,r=0,o="";jn.lastIndex=0;let i=jn.exec(e);for(;i;){const u=i.index+(i[1]||"").length;o+=e.substring(r,u).replace(/%%/g,"%");const[,,s,c,l,a]=i;o+=Vn(n[t++],s,c,l,a),r=jn.lastIndex,jn.lastIndex-=1,i=jn.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}("%s%P()/fasttrack-middleware/admin/%P()",[e,n]))}function sl(e,n){return _i.Delay(()=>{const t=(i=$n(Hn("Bearer %s"))(e),r=new Fs(0,"Authorization",i),new Us((o=n).url,o.method,Mt(o.headers,Ct(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;return _i.Bind(_i.Bind(Vs(t),e=>_i.Return(new Vt(0,e))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 429===e.statusCode||e.statusCode>=500?_i.Bind(Vs(t),e=>_i.Return(new Vt(0,e))):_i.Return(new Vt(0,e))}})})}class cl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ColumnHeader"]}}function ll(e){return new cl(0,e)}class al extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["RowCell"]}}function fl(e){return new al(0,e)}function hl(e){return ll(tr("th",k(Nt([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function dl(e,n){return fl(tr("td",{className:zn(" ",Go(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:n}))}function pl(e,n){let t,r;return tr("div",{className:"flex flex-col mt-4",children:qo.Children.toArray([tr("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:qo.Children.toArray([tr("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:qo.Children.toArray([tr("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:qo.Children.toArray([tr("table",{className:"min-w-full divide-y divide-gray-200",children:qo.Children.toArray([tr("thead",{className:"bg-gray-50",children:(t=Vo(e=>e.fields[0],e),tr("tr",{children:qo.Children.toArray(Array.from(t))}))}),(r=Wo((e,n)=>{return t=n,tr("tr",{className:e%2==0?"bg-white":"bg-gray-50",children:qo.Children.toArray(Array.from(Vo(e=>e.fields[0],t)))});var t},n),tr("tbody",{children:qo.Children.toArray(Array.from(r))}))])})])})])})])})])})}function _l(e){return e?"On":"Off"}function ml(e,n){return pl(Nt([hl("ID"),hl("Name"),hl("Email"),hl("FT API Version"),hl("Payee Type"),ll(tr("th",k(Nt([["className","relative px-6 py-3"],["scope","col"],["children",qo.Children.toArray([tr("span",{className:"sr-only",children:"Edit"})])]]))))]),Pt(e=>{let t;return Nt([dl(["text-gray-900","font-medium"],e.Id),dl(["text-gray-500"],nt(e.FastTrack.AccountName,"")),dl(["text-gray-500"],nt(e.FastTrack.Email,"")),dl(["text-gray-500"],e.FastTrack.ApiVersion),dl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),(t=[Tu(Nt(["account-registry","partners",n,"accounts",e.Id]),1),"Details"],r=t[0],o=t[1],fl(tr("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right font-medium",children:qo.Children.toArray([tr("a",{className:"text-indigo-600 hover:text-indigo-900",children:o,href:r})])})))]);var r,o},e))}function gl(){return(gl=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}function wl(e){this.getChildContext=function(){return e.context};var n=e.children,t=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n.indexOf(t=i[r])>=0||(o[t]=e[t]);return o}(e,["context","children"]);return kr(n,t)}function yl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=tr(wl,gl({},this._props,{context:e.detail.context}),function e(n,t){if(3===n.nodeType)return n.data;if(1!==n.nodeType)return null;var r=[],o={},i=0,u=n.attributes,s=n.childNodes;for(i=u.length;i--;)"slot"!==u[i].name&&(o[u[i].name]=u[i].value,o[vl(u[i].name)]=u[i].value);for(i=s.length;i--;){var c=e(s[i],null),l=s[i].slot;l?o[l]=tr(El,{name:l},c):r[i]=c}var a=t?tr(El,null,r):r;return tr(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?xr:Sr)(this._vdom,this._root)}function vl(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function bl(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[vl(e)]=t,this._vdom=kr(this._vdom,r),Sr(this._vdom,this._root)}}function Cl(){Sr(this._vdom=null,this._root)}function El(e,n){var t=this;return tr("slot",gl({},e,{ref:function(e){e?(t.ref=e,t._listener||(t._listener=function(e){e.stopPropagation(),e.detail.context=n},e.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}class Sl extends U{constructor(e,n,t){super(),this.CurrentPage=e,this.ApolloAccounts=n,this.FlareAccounts=t}}function xl(){return W("Middleware.FastTrack.AdminUI.App.State",[],Sl,()=>[["CurrentPage",Ft()],["ApolloAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))],["FlareAccounts",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]])}class kl extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["ApolloAccounts","FlareAccounts"]}}function Tl(){return q("Middleware.FastTrack.AdminUI.App.DataToLoad",[],kl,()=>[[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J($t()),Y],Vt,()=>[[["ResultValue",J($t())]],[["ErrorValue",Y]]]))]],[["Item",iu(q("Microsoft.FSharp.Core.FSharpResult`2",[J(Gt()),Y],Vt,()=>[[["ResultValue",J(Gt())]],[["ErrorValue",Y]]]))]]])}class Il extends N{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PageChanged","LoadData"]}}function Al(){return q("Middleware.FastTrack.AdminUI.App.Msg",[],Il,()=>[[["Item",Ft()]],[["Item",Tl()]]])}function Ol(){return[new Sl(Rt(Iu(window.location.hash,1)),new ou(0),new ou(0)),Mu()]}function Nl(e,n){if(1===e.tag){const t=e.fields[0];return 1===t.tag?[new Sl(n.CurrentPage,n.ApolloAccounts,t.fields[0]),Mu()]:[new Sl(n.CurrentPage,t.fields[0],n.FlareAccounts),Mu()]}return[new Sl(e.fields[0],n.ApolloAccounts,n.FlareAccounts),Mu()]}function Ml(e){const n=(t=(e,n)=>Nl(e,n),Ps(ui(Ol,r=[]),t,r));var t,r;const o=n[0],i=n[1];let u;if(ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,_i.Delay(()=>_i.Bind(sl(t,$s(new Ds(0),Bs(ul(n,"apollo/accounts")))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 200===e.statusCode?_i.Return(il(e.responseText,void 0,void 0,{ResolveType:()=>J($t())})):_i.Return(new Vt(1,"Unexpected response from backend"))}}));var n,t},e=>{i(new Il(1,new kl(0,e)))})),ni(uu(()=>{return n=e.backendUrl,t=e.accessToken,_i.Delay(()=>_i.Bind(sl(t,$s(new Ds(0),Bs(ul(n,"flare/accounts")))),e=>{const n=e;if(1===n.tag)return _i.Return(new Vt(1,n.fields[0]));{const e=n.fields[0];return 200===e.statusCode?_i.Return(il(e.responseText,void 0,void 0,{ResolveType:()=>J(Gt())})):_i.Return(new Vt(1,"Unexpected response from backend"))}}));var n,t},e=>{i(new Il(1,new kl(1,e)))})),1===o.CurrentPage.tag)u=tr("h1",{children:["Not Found"]});else{const n=[o.ApolloAccounts,o.FlareAccounts];let t,r,i;switch(2===n[0].tag?1===n[0].fields[0].tag?t=1:2===n[1].tag?1===n[1].fields[0].tag?t=1:(t=0,r=n[0].fields[0].fields[0],i=n[1].fields[0].fields[0]):t=2:t=2===n[1].tag&&1===n[1].fields[0].tag?1:2,t){case 0:{const n=Nt([tr("h3",{children:["Flare Accounts"]}),(s=i,pl(Nt([hl("ID"),hl("Name"),hl("Email"),hl("Last Summary Email Checked"),hl("FT API Version"),hl("Payee Integration"),hl("Payee Type"),hl("Payee Update"),hl("Use Division Lookup"),hl("Flare Rep Name"),hl("Flare Webhook Subscription ID")]),Pt(e=>Nt([dl(["text-gray-900","font-medium"],e.Id),dl(["text-gray-500"],nt(e.Flare.AccountName,"")),dl(["text-gray-500"],nt(e.FastTrack.Email,"")),dl(["text-gray-500"],nt(e.LastSummaryEmailChecked,"")),dl(["text-gray-500"],e.FastTrack.ApiVersion),dl(["text-gray-500"],_l(e.FastTrack.PayeeIntegrationFlag)),dl(["text-gray-500"],nt(e.FastTrack.PayeeType,"")),dl(["text-gray-500"],_l(e.FastTrack.PayeeUpdateFlag)),dl(["text-gray-500"],_l(e.Flare.UseDivisionLookup)),dl(["text-gray-500"],e.Flare.RepName),dl(["text-gray-500"],nt(e.Flare.WebhookSubscriptionId,""))]),s))),tr("br",{}),tr("h3",{children:["Apollo Accounts"]}),ml(r,e.apolloPartnerId)]);u=tr("div",{children:qo.Children.toArray(Array.from(n))});break}case 1:u=tr("h1",{children:["Oops, there was an error. Please refresh this page"]});break;case 2:u=tr("h1",{children:["Please wait..."]})}}var s;return Au({onUrlChanged:e=>{i(new Il(0,Rt(e)))},application:tr(or,{},u)})}(function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=r&&r.shadow?n.attachShadow({mode:"open"}):n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=yl,o.prototype.attributeChangedCallback=bl,o.prototype.disconnectedCallback=Cl,t=t||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=t,t.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(n){this._vdom?this.attributeChangedCallback(e,null,n):(this._props||(this._props={}),this._props[e]=n,this.connectedCallback());var t=typeof n;null!=n&&"string"!==t&&"boolean"!==t&&"number"!==t||this.setAttribute(e,n)}})})),customElements.define(n||e.tagName||e.displayName||e.name,o)})(e=>tr(Ml,e),"superhero-fasttrack-middleware")}]);
|
|
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,"Msg",(function(){return zl})),n.d(t,"Msg$reflection",(function(){return Jl})),n.d(t,"State",(function(){return Zl})),n.d(t,"State$reflection",(function(){return Yl})),n.d(t,"StateModule_init",(function(){return Xl})),n.d(t,"StateModule_update",(function(){return Kl})),n.d(t,"Component",(function(){return ta}));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 f(e){const t=e;return"number"==typeof t.offset?t.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function d(e,t){return(e=e<0&&null!=t&&10!==t?4294967295+e+1:e).toString(t)}class h{static id(e){return h.idMap.has(e)||h.idMap.set(e,++h.count),h.idMap.get(e)}}function p(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=33*n^e.charCodeAt(t++);return n}function _(e){return 2654435761*e|0}function g(e){return 0===e.length?0:e.reduce((e,t)=>(e<<5)+e^t)}function m(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return _(e);case"string":return p(e);default:if(o(e))return e.GetHashCode();if(r(e))return function(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=m(e[r]);return g(n)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){return g(Object.values(e).map(e=>m(e)))}return _(h.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 y(e,t){return w(e,t,v)}function v(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)&&y(e,t):e instanceof Date?t instanceof Date&&0===b(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]||!v(e[n[o]],t[r[o]]))return!1;return!0}(e,t))))}function b(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+f(e),r=t.getTime()+f(t)),n===r?0:n<r?-1:1}function C(e,t){return e===t?0:e<t?-1:1}function E(e,t){return function(e,t,n){if(null==e)return null==t?0:1;if(null==t)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),0!==o)return o;return 0}(e,t,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)?E(e,t):-1:e instanceof Date?t instanceof Date?b(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 x(e,t,n){return e(t,n)>0?t:n}function k(e){const t={};for(const n of e)t[n[0]]=n[1];return t}h.idMap=new WeakMap,h.count=0;function T(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 I(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 O(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=I(e,n)),t>1&&(n=T(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 N{get name(){return this.cases()[this.tag]}toJSON(){return 0===this.fields.length?this.name:[this.name].concat(this.fields)}toString(){return function(e,t){if(0===t.length)return e;{let n="",r=!0;return 1===t.length?(n=A(t[0]),r=n.indexOf(" ")>=0):n=t.map(e=>A(e)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map(e=>m(e));return e.splice(0,0,_(this.tag)),g(e)}Equals(e){return this===e||!!s(this,e)&&(this.tag===e.tag&&y(this.fields,e.fields))}CompareTo(e){return this===e?0:s(this,e)?this.tag===e.tag?E(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}function D(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+" = "+A(t)).join("\n ")+" }"}function P(e){return g(Object.values(e).map(e=>m(e)))}function F(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(!v(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 D(this)}toString(){return M(this)}GetHashCode(){return P(this)}Equals(e){return F(this,e)}CompareTo(e){return R(this,e)}}class j{constructor(e,t){"function"==typeof t?(this.getter=e,this.setter=t):(this.getter=()=>e,this.setter=t=>{e=t})}get contents(){return this.getter()}set contents(e){this.setter(e)}}class H{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 $(this,e)}}function L(e){return null!=e.generics?e.generics:[]}function B(e){return g([p(e.fullname),...L(e).map(B)])}function $(e,t){return""===e.fullname?""===t.fullname&&w(ie(e),ie(t),([e,t],[n,r])=>e===n&&$(t,r)):e.fullname===t.fullname&&w(L(e),L(t),$)}function V(e,t,n,r){return new G(e,t,n,void 0,r)}function W(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 H(o,n,e[n],t))});return o}function q(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"),Z=(new G("Microsoft.FSharp.Core.Unit"),new G("System.Char"),new G("System.String")),Y=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 X(e){if(Array.isArray(e))return e[0];if(e instanceof H)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 fe(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 de(e){return-2147483648===e?e:-e}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(ce||(ce={}));const he=Symbol("numeric");function pe(e){return"number"==typeof e||(null==e?void 0:e[he])}function _e(e,t){return"number"==typeof e?e*t:e[he]().multiply(t)}function ge(e,t){return"number"==typeof e?e.toFixed(t):e[he]().toFixed(t)}function me(e,t){return"number"==typeof e?e.toPrecision(t):e[he]().toPrecision(t)}function we(e,t){return"number"==typeof e?e.toExponential(t):e[he]().toExponential(t)}function ye(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[he]().toHex()}var ve=null;try{ve=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 be(e,t,n){this.low=0|e,this.high=0|t,this.unsigned=!!n}function Ce(e){return!0===(e&&e.__isLong__)}be.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},be.prototype.Equals=function(e){return Ze(this,e)},be.prototype.CompareTo=function(e){return Qe(this,e)},be.prototype.toString=function(e){return We(this,e)},be.prototype.toJSON=function(){return We(this)},be.prototype[he]=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:()=>We(e.unsigned?e:at(lt(e),!0),16)}},be.prototype.__isLong__,Object.defineProperty(be.prototype,"__isLong__",{value:!0});var Ee={},Se={};function xe(e,t){var n,r,o;return t?(o=0<=(e>>>=0)&&e<256)&&(r=Se[e])?r:(n=Te(e,(0|e)<0?-1:0,!0),o&&(Se[e]=n),n):(o=-128<=(e|=0)&&e<128)&&(r=Ee[e])?r:(n=Te(e,e<0?-1:0,!1),o&&(Ee[e]=n),n)}function ke(e,t){if(isNaN(e))return t?Re:Fe;if(t){if(e<0)return Re;if(e>=De)return Le}else{if(e<=-Me)return Be;if(e+1>=Me)return Ge}return e<0?et(ke(-e,t)):Te(e%Ne|0,e/Ne|0,t)}function Te(e,t,n){return new be(e,t,n)}var Ie=Math.pow;function Oe(e,t,n){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return Fe;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(Oe(e.substring(1),t,n));for(var o=ke(Ie(n,8)),i=Fe,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,ke(Ie(n,u))),ke(c));else i=tt(i=rt(i,o),ke(c))}return i.unsigned=t,i}function Ae(e,t){return"number"==typeof e?ke(e,t):"string"==typeof e?Oe(e,t):Te(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}var Ne=4294967296,De=Ne*Ne,Me=De/2,Pe=xe(1<<24),Fe=xe(0),Re=xe(0,!0),Ue=xe(1),je=xe(1,!0),He=xe(-1),Ge=Te(-1,2147483647,!1),Le=Te(-1,-1,!0),Be=Te(0,-2147483648,!1);function $e(e){return e.unsigned?e.low>>>0:e.low}function Ve(e){return e.unsigned?(e.high>>>0)*Ne+(e.low>>>0):e.high*Ne+(e.low>>>0)}function We(e,t){if((t=t||10)<2||36<t)throw RangeError("radix");if(qe(e))return"0";if(ze(e)){if(Ze(e,Be)){var n=ke(t),r=ot(e,n),o=nt(rt(r,n),e);return We(r,t)+$e(o).toString(t)}return"-"+We(et(e),t)}for(var i=ke(Ie(t,6),e.unsigned),s=e,u="";;){var c=ot(s,i),l=($e(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 Je(e){return 1==(1&e.low)}function Ze(e,t){return Ce(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 Ye(e,t){return Qe(e,t)<0}function Xe(e,t){return Qe(e,t)>0}function Ke(e,t){return Qe(e,t)>=0}function Qe(e,t){if(Ce(t)||(t=Ae(t)),Ze(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&&Ze(e,Be)?Be:tt(it(e),Ue)}function tt(e,t){Ce(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,f=0,d=0;return f+=(d+=i+(65535&t.low))>>>16,a+=(f+=o+c)>>>16,l+=(a+=r+u)>>>16,l+=n+s,Te((f&=65535)<<16|(d&=65535),(l&=65535)<<16|(a&=65535),e.unsigned)}function nt(e,t){return Ce(t)||(t=Ae(t)),tt(e,et(t))}function rt(e,t){if(qe(e))return e.unsigned?Re:Fe;if(Ce(t)||(t=Ae(t)),ve)return Te(ve.mul(e.low,e.high,t.low,t.high),ve.get_high(),e.unsigned);if(qe(t))return e.unsigned?Re:Fe;if(Ze(e,Be))return Je(t)?Be:Fe;if(Ze(t,Be))return Je(e)?Be:Fe;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(Ye(e,Pe)&&Ye(t,Pe))return ke(Ve(e)*Ve(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,f=0,d=0,h=0;return d+=(h+=i*l)>>>16,f+=(d+=o*l)>>>16,d&=65535,f+=(d+=i*c)>>>16,a+=(f+=r*l)>>>16,f&=65535,a+=(f+=o*c)>>>16,f&=65535,a+=(f+=i*u)>>>16,a+=n*l+r*c+o*u+i*s,Te((d&=65535)<<16|(h&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function ot(e,t){if(Ce(t)||(t=Ae(t)),qe(t))throw Error("division by zero");var n,r,o;if(ve)return e.unsigned||-2147483648!==e.high||-1!==t.low||-1!==t.high?Te((e.unsigned?ve.div_u:ve.div_s)(e.low,e.high,t.low,t.high),ve.get_high(),e.unsigned):e;if(qe(e))return e.unsigned?Re:Fe;if(e.unsigned){if(t.unsigned||(t=function(e){return e.unsigned?e:Te(e.low,e.high,!0)}(t)),Xe(t,e))return Re;if(Xe(t,ct(e,1)))return je;o=Re}else{if(Ze(e,Be))return Ze(t,Ue)||Ze(t,He)?Be:Ze(t,Be)?Ue:Ze(n=st(ot(ut(e,1),t),1),Fe)?ze(t)?Ue:He:o=tt(n,ot(r=nt(e,rt(t,n)),t));if(Ze(t,Be))return e.unsigned?Re:Fe;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=Fe}for(r=e;Ke(r,t);){n=Math.max(1,Math.floor(Ve(r)/Ve(t)));for(var i=Math.ceil(Math.log(n)/Math.LN2),s=i<=48?1:Ie(2,i-48),u=ke(n),c=rt(u,t);ze(c)||Xe(c,r);)c=rt(u=ke(n-=s,e.unsigned),t);qe(u)&&(u=Ue),o=tt(o,u),r=nt(r,c)}return o}function it(e){return Te(~e.low,~e.high,e.unsigned)}function st(e,t){return Ce(t)&&(t=$e(t)),0==(t&=63)?e:t<32?Te(e.low<<t,e.high<<t|e.low>>>32-t,e.unsigned):Te(0,e.low<<t-32,e.unsigned)}function ut(e,t){return Ce(t)&&(t=$e(t)),0==(t&=63)?e:t<32?Te(e.low>>>t|e.high<<32-t,e.high>>t,e.unsigned):Te(e.high>>t-32,e.high>=0?0:-1,e.unsigned)}function ct(e,t){if(Ce(t)&&(t=$e(t)),0===(t&=63))return e;var n=e.high;return t<32?Te(e.low>>>t|n<<32-t,n>>>t,e.unsigned):Te(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 be(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 be(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 ft=tt,dt=rt,ht=ot,pt=function(e,t){return Ce(t)||(t=Ae(t)),ve?Te((e.unsigned?ve.rem_u:ve.rem_s)(e.low,e.high,t.low,t.high),ve.get_high(),e.unsigned):nt(e,rt(ot(e,t),t))},_t=et,gt=function(e,t){return Ce(t)||(t=Ae(t)),Te(e.low&t.low,e.high&t.high,e.unsigned)},mt=Qe,wt=Te,yt=$e,vt=Ve;function bt(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 Te(r,o>>31,t)}const Ct=/(?:Z|[+-](\d+):?([0-5]?\d)?)\s*$/;function Et(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 xt(e,t,n){return t.replace(/(\w)\1*/g,t=>{let r=Number.NaN;switch(t.substring(0,1)){case"y":const o=n?e.getUTCFullYear():e.getFullYear();r=t.length<4?o%100:o;break;case"M":r=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":r=n?e.getUTCDate():e.getDate();break;case"H":r=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();r=i>12?i%12:i;break;case"m":r=n?e.getUTCMinutes():e.getMinutes();break;case"s":r=n?e.getUTCSeconds():e.getSeconds();break;case"f":r=n?e.getUTCMilliseconds():e.getMilliseconds()}return Number.isNaN(r)?t:r<10&&t.length>1?"0"+r:""+r})}function kt(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," ")+Et(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==t.length)return xt(i,t,!0);switch(t){case"D":case"d":return 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)+Et(t)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}function Tt(e,t){const n=1===e.kind;if("string"!=typeof t)return n?e.toUTCString():e.toLocaleString();if(1!==t.length)return xt(e,t,n);switch(t){case"D":case"d":return n?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?Et(-6e4*e.getTimezoneOffset()):"")}}(e,n);default:throw new Error("Unrecognized Date print format")}}function It(e,t,n){return null!=e.offset?kt(e,t):Tt(e,t)}function Ot(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 Nt(e,t){try{return t.contents=function(e,t=!1){const n=At(e),r=Ct.exec(e),o=null!=r?t&&"Z"===r[0]?1:2:0;return Ot(n.getTime(),o)}(e),!0}catch(e){return!1}}function Dt(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 Pt(e,t,n=0){let r;if(r=e instanceof RegExp?(r=e,e=t,r.lastIndex=n,r):r=Dt(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 Ft=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Rt=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,Ut=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function jt(e,t){return function(e,t){return"number"==typeof e?e<t?-1:e>t?1:0:e.CompareTo(t)}(e,t)<0}function Ht(e){return{input:e,cont:(t=e,e=>{Ft.lastIndex=0;const n=[],r=[];let o=0,i=Ft.exec(t);for(;i;){const e=i.index+(i[1]||"").length;n.push(t.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Ft.lastIndex,Ft.lastIndex-=1,i=Ft.exec(t)}return 0===n.length?e(t.replace(/%%/g,"%")):(n.push(t.substring(o).replace(/%%/g,"%")),function e(t,n,r,o="",i=-1){return(...s)=>{let u=o;const c=n.slice(),l=r.slice();for(const e of s){const[,,t,n,r,o]=l[0];let s=n;if(i>=0)s=i,i=-1;else if("*"===s){if(e<0)throw new Error("Non-negative number required");i=e;continue}u+=c[0],u+=Bt(e,t,s,r,o),c.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=c[0],t(u)):e(t,c,l,u,i)}}(e,n,r))})};var t}function Gt(e,t){return"string"==typeof t?e(t):t.cont(e)}function Lt(e){return Gt(e=>e,e)}function Bt(e,t,n,r,o){let i="";if(t=t||"",o=o||"",pe(e))switch("x"!==o.toLowerCase()&&(jt(e,0)?(e=_e(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=ge(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?me(e,r):me(e);break;case"e":case"E":e=null!=r?we(e,r):we(e);break;case"x":e=ye(e);break;case"X":e=ye(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?It(e):A(e);if(n="number"==typeof n?n:parseInt(n,10),isNaN(n))e=i+e;else{const r=t.indexOf("0")>=0,o=t.indexOf("-")>=0,s=o||!r?" ":"0";e="0"===s?i+(e=qt(e,n-i.length,s,o)):qt(i+e,n,s,o)}return e}function $t(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(pe(u))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":u=ge(u,i=null!=i?i:2);break;case"g":case"G":u=null!=i?me(u,i):me(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=ge(_e(u,100),i)+" %";break;case"d":case"D":u=null!=i?qt(String(u),i,"0"):String(u);break;case"x":case"X":u=null!=i?qt(ye(u),i,"0"):ye(u),"X"===o&&(u=u.toUpperCase());break;default:if(s){let e="";u=s.replace(/(0+)(\.0+)?/,(t,n,r)=>(jt(u,0)&&(u=_e(u,-1),e="-"),u=ge(u,null!=r?r.length-1:0),qt(u,(n||"").length-e.length+(null!=r?r.length:0),"0"))),u=e+u}}else u=u instanceof Date?It(u,s||o):A(u);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(u=qt(String(u),Math.abs(r)," ",r<0)),u})}function Vt(e){return"string"!=typeof e||0===e.length}function Wt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qt(e,t,n,r){n=n||" ",t-=e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function zt(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 Jt(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)}class Zt{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return m(this.value)}Equals(e){return null!=e&&v(this.value,e instanceof Zt?e.value:e)}CompareTo(e){return null==e?1:S(this.value,e instanceof Zt?e.value:e)}}function Yt(e){return null==e||e instanceof Zt?new Zt(e):e}function Xt(e){if(null==e)throw new Error("Option has no value");return e instanceof Zt?e.value:e}function Kt(e){return null==e?[]:[Xt(e)]}function Qt(e,t){return null!=e?Xt(e):t}function en(e,t){return null!=t?Yt(e(Xt(t))):void 0}function tn(e,t){return"function"==typeof e?new e(t):new Array(t)}function nn(){throw new Error("Arrays had different lengths")}function rn(e,t,n,r){const o=0|t;return e.fill(r,o,o+n)}function on(e,t,n){const r=0|t.length,o=tn(n,r);for(let n=0;n<=r-1;n++)o[n]=e(t[n]);return o}function sn(e,t,n){if(e<0)throw new Error("The input must be non-negative\\nParameter name: count");const r=tn(n,e);for(let n=0;n<=e-1;n++)r[n]=t(n);return r}function un(e,t,n){return n.reduce((t,n)=>e(t,n),t)}function cn(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=0|e(t[r],n[r]),r=r+1|0;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 an(e,t,n,r){return function(e,t,n,r){let o=r;t.length!==n.length&&nn();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 U{constructor(e,t){super(),this.head=e,this.tail=t}toString(){return"["+Wt("; ",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(v(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)+m(i.head)+631*r,n=u}}})(0,0,this)}toJSON(e){return Array.from(this)}CompareTo(e){return 0|((e,t)=>{e:for(;;){const n=e,r=t,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const i=o[0],s=o[1],u=0|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 dn(e)}(this)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return c(this)}}class dn{constructor(e){this.xs=e,this.it=this.xs,this.current=null}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this,t=e.it.tail;if(null!=t){const n=t;return e.current=e.it.head,e.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){this.it=this.xs,this.current=null}Dispose(){}}function hn(){return new fn(null,void 0)}function pn(e,t){return new fn(e,t)}function _n(e){return null==e.tail}function gn(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 mn(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 yn(){return hn()}function vn(e,t){return pn(e,t)}function bn(e){return pn(e,hn())}function Cn(e){return _n(e)}function En(e){return mn(e)}function Sn(e){return wn(e)}function xn(e){const t=0|gn(e),n=rn(new Array(t),0,t,null);return((e,t)=>{for(;;){const r=e,o=t;if(_n(o))break;n[r]=mn(o),e=r+1,t=wn(o)}})(0,e),n}function kn(e,t,n){let r=t,o=n;for(;!_n(o);)r=e(r,mn(o)),o=wn(o);return r}function Tn(e){return kn((e,t)=>pn(t,e),hn(),e)}function In(e,t){kn((t,n)=>{e(n)},void 0,t)}function On(e,t){let n=t;for(let t=e.length-1;t>=0;t--)n=pn(e[t],n);return n}function An(e){return On(e,hn())}function Nn(e){let t,n;if(r(e))return An(e);if(e instanceof fn)return e;{const r=hn();let o=r;const i=c(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const e=i["System.Collections.Generic.IEnumerator`1.get_Current"]();t=o,n=new fn(e,void 0),t.tail=n,o=n}}finally{i.Dispose()}const s=o,u=hn();return s.tail=u,wn(r)}}function Dn(e,t){return kn((e,t)=>pn(t,e),t,Tn(e))}function Mn(e,t){const n=hn(),r=kn((t,n)=>{const r=new fn(e(n),void 0);return t.tail=r,r},n,t),o=hn();return r.tail=o,wn(n)}class Pn{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 Fn extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Fn.prototype)}}class Rn{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>Rn.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Un(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Fn);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 jn(e,t){return Un(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 Hn(e){return Un(t=>t.onSuccess(e))}const Gn=new class{Bind(e,t){return jn(e,t)}Combine(e,t){return this.Bind(e,()=>t)}Delay(e){return Un(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 Hn(e)}ReturnFrom(e){return e}TryFinally(e,t){return Un(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 Un(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 Un(e=>e.onSuccess(void 0))}};class Ln extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Ok","Error"]}}function Bn(e,t){return 0===t.tag?new Ln(0,e(t.fields[0])):new Ln(1,t.fields[0])}class $n extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Choice1Of2","Choice2Of2"]}}function Vn(e){}function Wn(e){const t=new Pn("boolean"==typeof e&&e);return"number"==typeof e&&setTimeout(()=>{t.cancel()},e),t}function qn(e){e.cancel()}function zn(e){return null!=e&&e.isCancelled}const Jn=new Pn;function Zn(e){return Un(t=>{e({onSuccess:e=>t.onSuccess(function(e){return new $n(0,e)}(e)),onError:e=>t.onSuccess(new $n(1,e)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Yn(e){return Un(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Xn(e,t){return function(e,t){return Kn(e,t)}(e,t)}function Kn(e,t,n,r,o){"function"!=typeof t&&(o=t,t=void 0);const i=new Rn;e({onSuccess:t||Vn,onError:n||Vn,onCancel:r||Vn,cancelToken:o||Jn,trampoline:i})}class Qn{constructor(e,t,n){this.OnNext=e,this.OnError=t||(e=>{}),this.OnCompleted=n||(()=>{})}}class er{constructor(e,t){this._subscriber=e,this.delegates=t||new Array}Add(e){this._addHandler(e)}get Publish(){return this}Trigger(e){this.delegates.forEach(t=>t(e))}AddHandler(e){null==this._dotnetDelegates&&(this._dotnetDelegates=new Map);const t=t=>e(null,t);this._dotnetDelegates.set(e,t),this._addHandler(t)}RemoveHandler(e){if(null!=this._dotnetDelegates){const t=this._dotnetDelegates.get(e);null!=t&&(this._dotnetDelegates.delete(e),this._removeHandler(t))}}Subscribe(e){return"function"==typeof e?this._subscribeFromCallback(e):this._subscribeFromObserver(e)}_addHandler(e){this.delegates.push(e)}_removeHandler(e){const t=this.delegates.indexOf(e);t>-1&&this.delegates.splice(t,1)}_subscribeFromObserver(e){if(this._subscriber)return this._subscriber(e);const t=e.OnNext;return this._addHandler(t),{Dispose:()=>{this._removeHandler(t)}}}_subscribeFromCallback(e){return this._addHandler(e),{Dispose:()=>{this._removeHandler(e)}}}}var tr=er;var nr=class{constructor(e){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=e&&e>0?e:100,this.AutoReset=!0,this._elapsed=new tr}get Elapsed(){return this._elapsed}get Enabled(){return this._enabled}set Enabled(e){this._isDisposed||this._enabled===e||(this._enabled=e,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}};function rr(e,t){let n,r=new nr(e);r.AutoReset=!1,n=r,function(e,t){t.Subscribe(new Qn(e))}(t,n.Elapsed),n.Enabled=!0,n.Start()}function or(){return yn()}function ir(e){return bn(e)}function sr(e){return bn(t=>{t(e)})}function ur(e,t,n,r,o){return bn(i=>{e(Gn.Delay(()=>Gn.Bind(Zn(t(n)),e=>{const t=e;return i(1===t.tag?o(t.fields[0]):r(t.fields[0])),Gn.Zero()})))})}function cr(e){rr(0,t=>{Xn(e)})}var lr,ar,fr,dr,hr,pr={},_r=[],gr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function mr(e,t){for(var n in t)e[n]=t[n];return e}function wr(e){var t=e.parentNode;t&&t.removeChild(e)}function yr(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 vr(e,u,r,o,null)}function vr(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?++lr.__v:o};return null!=lr.vnode&&lr.vnode(i),i}function br(e){return e.children}function Cr(e,t){this.props=e,this.context=t}function Er(e,t){if(null==t)return e.__?Er(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?Er(e):null}function Sr(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 Sr(e)}}function xr(e){(!e.__d&&(e.__d=!0)&&ar.push(e)&&!kr.__r++||dr!==lr.debounceRendering)&&((dr=lr.debounceRendering)||fr)(kr)}function kr(){for(var e;kr.__r=ar.length;)e=ar.sort((function(e,t){return e.__v.__b-t.__v.__b})),ar=[],e.some((function(e){var t,n,r,o,i,s;e.__d&&(i=(o=(t=e).__v).__e,(s=t.__P)&&(n=[],(r=mr({},o)).__v=o.__v+1,Fr(s,o,r,t.__n,void 0!==s.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?Er(o):i,o.__h),Rr(n,o),o.__e!=i&&Sr(o)))}))}function Tr(e,t,n,r,o,i,s,u,c,l){var a,f,d,h,p,_,g,m=r&&r.__k||_r,w=m.length;for(n.__k=[],a=0;a<t.length;a++)if(null!=(h=n.__k[a]=null==(h=t[a])||"boolean"==typeof h?null:"string"==typeof h||"number"==typeof h||"bigint"==typeof h?vr(null,h,null,null,h):Array.isArray(h)?vr(br,{children:h},null,null,null):h.__b>0?vr(h.type,h.props,h.key,null,h.__v):h)){if(h.__=n,h.__b=n.__b+1,null===(d=m[a])||d&&h.key==d.key&&h.type===d.type)m[a]=void 0;else for(f=0;f<w;f++){if((d=m[f])&&h.key==d.key&&h.type===d.type){m[f]=void 0;break}d=null}Fr(e,h,d=d||pr,o,i,s,u,c,l),p=h.__e,(f=h.ref)&&d.ref!=f&&(g||(g=[]),d.ref&&g.push(d.ref,null,h),g.push(f,h.__c||p,h)),null!=p?(null==_&&(_=p),"function"==typeof h.type&&null!=h.__k&&h.__k===d.__k?h.__d=c=Ir(h,c,e):c=Ar(e,h,d,m,p,c),l||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):e.value=""):c&&d.__e==c&&c.parentNode!=e&&(c=Er(d))}for(n.__e=_,a=w;a--;)null!=m[a]&&("function"==typeof n.type&&null!=m[a].__e&&m[a].__e==n.__d&&(n.__d=Er(r,a+1)),Hr(m[a],m[a]));if(g)for(a=0;a<g.length;a++)jr(g[a],g[++a],g[++a])}function Ir(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?Ir(o,t,n):Ar(n,o,o,e.__k,o.__e,t));return t}function Or(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){Or(e,t)})):t.push(e)),t}function Ar(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 Nr(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||gr.test(t)?n:n+"px"}function Dr(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||Nr(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Nr(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?Pr:Mr,i):e.removeEventListener(t,i?Pr:Mr,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 Mr(e){this.l[e.type+!1](lr.event?lr.event(e):e)}function Pr(e){this.l[e.type+!0](lr.event?lr.event(e):e)}function Fr(e,t,n,r,o,i,s,u,c){var l,a,f,d,h,p,_,g,m,w,y,v=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=lr.__b)&&l(t);try{e:if("function"==typeof v){if(g=t.props,m=(l=v.contextType)&&r[l.__c],w=l?m?m.props.value:l.__:r,n.__c?_=(a=t.__c=n.__c).__=a.__E:("prototype"in v&&v.prototype.render?t.__c=a=new v(g,w):(t.__c=a=new Cr(g,w),a.constructor=v,a.render=Gr),m&&m.sub(a),a.props=g,a.state||(a.state={}),a.context=w,a.__n=r,f=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=v.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=mr({},a.__s)),mr(a.__s,v.getDerivedStateFromProps(g,a.__s))),d=a.props,h=a.state,f)null==v.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==v.getDerivedStateFromProps&&g!==d&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(g,w),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(g,a.__s,w)||t.__v===n.__v){a.props=g,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(g,a.__s,w),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(d,h,p)}))}a.context=w,a.props=g,a.state=a.__s,(l=lr.__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=mr(mr({},r),a.getChildContext())),f||null==a.getSnapshotBeforeUpdate||(p=a.getSnapshotBeforeUpdate(d,h)),y=null!=l&&l.type===br&&null==l.key?l.props.children:l,Tr(e,Array.isArray(y)?y:[y],t,n,r,o,i,s,u,c),a.base=t.__e,t.__h=null,a.__h.length&&s.push(a),_&&(a.__E=a.__=null),a.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ur(n.__e,t,n,r,o,i,s,c);(l=lr.diffed)&&l(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=u,t.__h=!!c,i[i.indexOf(u)]=null),lr.__e(e,t,n)}}function Rr(e,t){lr.__c&&lr.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){lr.__e(e,t.__v)}}))}function Ur(e,t,n,r,o,i,s,u){var c,l,a,f,d=n.props,h=t.props,p=t.type,_=0;if("svg"===p&&(o=!0),null!=i)for(;_<i.length;_++)if((c=i[_])&&(c===e||(p?c.localName==p:3==c.nodeType))){e=c,i[_]=null;break}if(null==e){if(null===p)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),i=null,u=!1}if(null===p)d===h||u&&e.data===h||(e.data=h);else{if(i=i&&_r.slice.call(e.childNodes),l=(d=n.props||pr).dangerouslySetInnerHTML,a=h.dangerouslySetInnerHTML,!u){if(null!=i)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].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||Dr(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]||Dr(e,i,t[i],n[i],r)}(e,h,d,o,u),a)t.__k=[];else if(_=t.props.children,Tr(e,Array.isArray(_)?_:[_],t,n,r,o&&"foreignObject"!==p,i,s,e.firstChild,u),null!=i)for(_=i.length;_--;)null!=i[_]&&wr(i[_]);u||("value"in h&&void 0!==(_=h.value)&&(_!==e.value||"progress"===p&&!_)&&Dr(e,"value",_,d.value,!1),"checked"in h&&void 0!==(_=h.checked)&&_!==e.checked&&Dr(e,"checked",_,d.checked,!1))}return e}function jr(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){lr.__e(e,n)}}function Hr(e,t,n){var r,o,i;if(lr.unmount&&lr.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||jr(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){lr.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Hr(r[i],t,n);null!=o&&wr(o)}function Gr(e,t,n){return this.constructor(e,n)}function Lr(e,t,n){var r,o,i;lr.__&&lr.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Fr(t,e=(!r&&n||t).__k=yr(br,null,[e]),o||pr,pr,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?_r.slice.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),Rr(i,e)}function Br(e,t){Lr(e,t,Br)}function $r(e,t,n){var r,o,i,s=arguments,u=mr({},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),vr(e.type,u,r||e.key,o||e.ref,null)}lr={__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},Cr.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=mr({},this.state),"function"==typeof e&&(e=e(mr({},n),this.props)),e&&mr(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),xr(this))},Cr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),xr(this))},Cr.prototype.render=br,ar=[],fr="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kr.__r=0,hr=0;var Vr,Wr,qr,zr=0,Jr=[],Zr=lr.__b,Yr=lr.__r,Xr=lr.diffed,Kr=lr.__c,Qr=lr.unmount;function eo(e,t){lr.__h&&lr.__h(Wr,e,zr||t),zr=0;var n=Wr.__H||(Wr.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function to(e){return zr=1,no(ho,e)}function no(e,t,n){var r=eo(Vr++,2);return r.t=e,r.__c||(r.__=[n?n(t):ho(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=Wr),r.__}function ro(e,t){var n=eo(Vr++,3);!lr.__s&&fo(n.__H,t)&&(n.__=e,n.__H=t,Wr.__H.__h.push(n))}function oo(e,t){var n=eo(Vr++,4);!lr.__s&&fo(n.__H,t)&&(n.__=e,n.__H=t,Wr.__h.push(n))}function io(e,t){var n=eo(Vr++,7);return fo(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function so(e,t){lr.useDebugValue&&lr.useDebugValue(t?t(e):e)}function uo(){Jr.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(lo),e.__H.__h.forEach(ao),e.__H.__h=[]}catch(t){e.__H.__h=[],lr.__e(t,e.__v)}})),Jr=[]}lr.__b=function(e){Wr=null,Zr&&Zr(e)},lr.__r=function(e){Yr&&Yr(e),Vr=0;var t=(Wr=e.__c).__H;t&&(t.__h.forEach(lo),t.__h.forEach(ao),t.__h=[])},lr.diffed=function(e){Xr&&Xr(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==Jr.push(t)&&qr===lr.requestAnimationFrame||((qr=lr.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),co&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);co&&(t=requestAnimationFrame(n))})(uo)),Wr=void 0},lr.__c=function(e,t){t.some((function(e){try{e.__h.forEach(lo),e.__h=e.__h.filter((function(e){return!e.__||ao(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],lr.__e(n,e.__v)}})),Kr&&Kr(e,t)},lr.unmount=function(e){Qr&&Qr(e);var t=e.__c;if(t&&t.__H)try{t.__H.__.forEach(lo)}catch(e){lr.__e(e,t.__v)}};var co="function"==typeof requestAnimationFrame;function lo(e){var t=Wr;"function"==typeof e.__c&&e.__c(),Wr=t}function ao(e){var t=Wr;e.__c=e.__(),Wr=t}function fo(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ho(e,t){return"function"==typeof t?t(e):t}function po(e,t){for(var n in t)e[n]=t[n];return e}function _o(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 go(e){this.props=e}(go.prototype=new Cr).isPureReactComponent=!0,go.prototype.shouldComponentUpdate=function(e,t){return _o(this.props,e)||_o(this.state,t)};var mo=lr.__b;lr.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),mo&&mo(e)};var wo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var yo=function(e,t){return null==e?null:Or(Or(e).map(t))},vo={map:yo,forEach:yo,count:function(e){return e?Or(e).length:0},only:function(e){var t=Or(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Or},bo=lr.__e;lr.__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);bo(e,t,n)};var Co=lr.unmount;function Eo(){this.__u=0,this.t=null,this.__b=null}function So(e){var t=e.__.__c;return t&&t.__e&&t.__e(e)}function xo(){this.u=null,this.o=null}lr.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),Co&&Co(e)},(Eo.prototype=new Cr).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=So(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)},Eo.prototype.componentWillUnmount=function(){this.t=[]},Eo.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=po({},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&&yr(br,null,e.fallback);return o&&(o.__h=null),[yr(br,null,t.__e?null:e.children),o]};var ko=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 To(e){return this.getChildContext=function(){return e.context},e.children}function Io(e){var t=this,n=e.i;t.componentWillUnmount=function(){Lr(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)}}),Lr(yr(To,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(xo.prototype=new Cr).__e=function(e){var t=this,n=So(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ko(t,e,r)):o()};n?n(i):i()}},xo.prototype.render=function(e){this.u=null,this.o=new Map;var t=Or(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},xo.prototype.componentDidUpdate=xo.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ko(e,n,t)}))};var Oo="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ao=/^(?: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]/,No=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};Cr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Cr.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Do=lr.event;function Mo(){}function Po(){return this.cancelBubble}function Fo(){return this.defaultPrevented}lr.event=function(e){return Do&&(e=Do(e)),e.persist=Mo,e.isPropagationStopped=Po,e.isDefaultPrevented=Fo,e.nativeEvent=e};var Ro,Uo={configurable:!0,get:function(){return this.class}},jo=lr.vnode;lr.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)&&!No(n.type)?o="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(o)?o=o.toLowerCase():Ao.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=Or(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=Or(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&&(Uo.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Uo)),e.$$typeof=Oo,jo&&jo(e)};var Ho=lr.__r;lr.__r=function(e){Ho&&Ho(e),Ro=e.__c};var Go={ReactCurrentDispatcher:{current:{readContext:function(e){return Ro.__n[e.__c].props.value}}}};"object"==typeof performance&&"function"==typeof performance.now&&performance.now.bind(performance);function Lo(e){return!!e&&e.$$typeof===Oo}var Bo={useState:to,useReducer:no,useEffect:ro,useLayoutEffect:oo,useRef:function(e){return zr=5,io((function(){return{current:e}}),[])},useImperativeHandle:function(e,t,n){zr=6,oo((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))},useMemo:io,useCallback:function(e,t){return zr=8,io((function(){return e}),t)},useContext:function(e){var t=Wr.context[e.__c],n=eo(Vr++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(Wr)),t.props.value):e.__},useDebugValue:so,version:"16.8.0",Children:vo,render:function(e,t,n){return null==t.__k&&(t.textContent=""),Lr(e,t),"function"==typeof n&&n(),e?e.__c:null},hydrate:function(e,t,n){return Br(e,t),"function"==typeof n&&n(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(Lr(null,e),!0)},createPortal:function(e,t){return yr(Io,{__v:e,i:t})},createElement:yr,createContext:function(e,t){var n={__c:t="__cC"+hr++,__: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(xr)},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 yr.bind(null,e)},cloneElement:function(e){return Lo(e)?$r.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:br,isValidElement:Lo,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:Cr,PureComponent:go,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:_o(this.props,e)}function r(t){return this.shouldComponentUpdate=n,yr(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=po({},t);return delete r.ref,e(r,(n=t.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return t.$$typeof=wo,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:br,Suspense:Eo,SuspenseList:xo,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 yr(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Go};function $o(){return e=(e,t)=>S(e,t),{Compare:(t,n)=>e(t,n)};var e}function Vo(){return $o()}function Wo(){throw new Error("Enumeration has not started. Call MoveNext.")}function qo(){throw new Error("Enumeration already finished.")}class zo{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=e+1|0;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 Jo{constructor(e,t,n){this.current=e,this.next=t,this.dispose=n}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){!function(){throw new Error("Reset is not supported on this enumerator.")}()}Dispose(){this.dispose()}}function Zo(e,t,n){return new Jo(e,t,n)}function Yo(e,t,n){let r=!1,o=void 0,i=Yt(e());const s=()=>{if(null!=i){const e=Xt(i);try{n(e)}finally{i=void 0}}},u=()=>{try{s()}finally{o=void 0}};return Zo(()=>(r||Wo(),null!=o?Xt(o):qo()),()=>{if(r||(r=!0),null!=i){const e=Xt(i);let n;try{n=t(e)}catch(e){throw u(),e}return null!=n?(o=n,!0):(u(),!1)}return!1},s)}function Xo(e,t){null==t&&function(e){throw new Error(e)}(e)}function Ko(e){return function(e){return new zo(e)}(e)}function Qo(e){return Xo("source",e),c(e)}function ei(e){return Ko(()=>c(e()))}function ti(e){return Ko(()=>function(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 Zo(()=>(r?o&&qo():Wo(),null!=i?Xt(i):qo()),()=>{let u;if(r||(r=!0),o)return!1;{let r=void 0;for(;null==r;){const o=[t,n];if(null!=o[0])if(null!=o[1]){const e=o[1];if(e["System.Collections.IEnumerator.MoveNext"]())i=Yt(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),r=!0;else try{e.Dispose()}finally{n=void 0}}else{const e=o[0];if(e["System.Collections.IEnumerator.MoveNext"]()){u=e["System.Collections.Generic.IEnumerator`1.get_Current"](),n=c(u)}else s(),r=!1}else t=c(e)}return Xt(r)}},()=>{o||s()})}(e))}function ni(e){return ei(()=>function(e,t){const n=tn(t,1);return n[0]=e,n}(e))}function ri(e){return r(e)?An(e):e instanceof fn?e:Nn(e)}function oi(e,t,n){return Ko(()=>Yo(e,t,n))}function ii(e,t,n){return Ko(()=>{let r=-1;return Yo(e,e=>(r=r+1|0,t(r,e)),n)})}function si(e,t){return ti([e,t])}function ui(e,t,n){const r=Qo(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 ci(e,t,n){const r=Qo(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 li(e,t){ci((t,n)=>{e(n)},void 0,t)}function ai(e,t){return oi(()=>Qo(t),t=>t["System.Collections.IEnumerator.MoveNext"]()?Yt(e(t["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}function fi(e,t){return ii(()=>Qo(t),(t,n)=>n["System.Collections.IEnumerator.MoveNext"]()?Yt(e(t,n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,e=>{e.Dispose()})}const di=Bo,hi=e=>{ro(()=>{const t=e();return()=>{t.Dispose()}})},pi=(e,t)=>{ro(()=>{const t=e();return()=>{t.Dispose()}},t)},_i=e=>{oo(()=>{const t=e();return()=>{t.Dispose()}})};function gi(e,t,n,r){const o=di.memo(e,T(2,Qt(I(2,n),null)));return li(t=>{e.displayName=t},Kt(t)),e=>di.createElement(o,mi(r,e))}function mi(e,t){if(null==e)return t;{const n=e;return t.key=n(t),t}}function wi(e){return{Dispose(){e()}}}function yi(e){hi(e)}function vi(e,t){pi(e,t)}function bi(e){vi(e,[])}function Ci(e,t){pi(t=>(e(),wi(()=>{})),t)}function Ei(e,t){return di.useCallback(e,Qt(t,[]))}function Si(e){return di.useRef(e)}function xi(e,t){return di.useMemo(e,Qt(t,[]))}function ki(e){const t=Si(e),n=Ei(e=>t.current(e),[]);var r;return r=()=>{t.current=e},_i(e=>(r(),wi(()=>{}))),n}function Ti(e){return di.useState(e)}const Ii=(()=>{try{"undefined"!=typeof window&&"function"==typeof window.addEventListener&&(window.addEventListener("testPassiveEventSupport",e=>{},{passive:!0}),window.removeEventListener("testPassiveEventSupport",e=>{}))}catch(e){}return!1})();function Oi(e){return en(e=>e.passive&&!Ii?{capture:e.capture,once:e.once,passive:!1}:e,e)}function Ai(e){return t=e=>e.capture?{capture:!0}:void 0,null!=(n=e)?t(Xt(n)):void 0;var t,n}const Ni=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Di=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Mi=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Pi(e){function t(e){return e.replace(Di,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Ni.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(Di.test(n))return t(n);if(Mi.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 Fi(e,t){try{return t.contents=Pi(e),!0}catch(e){return!1}}var Ri={GetHashCode(){return g([this.s,this.e].concat(this.c))},Equals(e){return!this.cmp(e)},CompareTo(e){return this.cmp(e)},[he](){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)}}},Ui="[big.js] ",ji=Ui+"Invalid ",Hi=ji+"decimal places",Gi=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function Li(e,t){var n,r,o;if(!Gi.test(t))throw Error(ji+"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=Bi(e,Vi.DP+1,Vi.RM)}function Bi(e,t,n,r){var o=e.c;if(void 0===n&&(n=Vi.RM),0!==n&&1!==n&&2!==n&&3!==n)throw Error("[big.js] Invalid rounding mode");if(t<1)r=3===n&&(r||!!o[0])||0===t&&(1===n&&o[0]>=5||2===n&&(o[0]>5||5===o[0]&&(r||void 0!==o[1]))),o.length=1,r?(e.e=e.e-t+1,o[0]=1):o[0]=e.e=0;else if(t<o.length){const i=o.findIndex((e,n)=>n>=t&&e>0)<0;if(r=1===n&&o[t]>=5||2===n&&(o[t]>5||5===o[t]&&(r||void 0!==o[t+1]||1&o[t-1]))||3===n&&(r||!i),o.length=t--,r)for(;++o[t]>9;)o[t]=0,t--||(++e.e,o.unshift(1));for(t=o.length;!o[--t];)o.pop()}return e}function $i(e,t,n){var r=e.e,o=e.c.join(""),i=o.length;if(t)o=o.charAt(0)+(i>1?"."+o.slice(1):"")+(r<0?"e":"e+")+r;else if(r<0){for(;++r;)o="0"+o;o="0."+o}else if(r>0)if(++r>i)for(r-=i;r--;)o+="0";else r<i&&(o=o.slice(0,r)+"."+o.slice(r));else i>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&n?"-"+o:o}Ri.abs=function(){var e=new this.constructor(this);return e.s=1,e},Ri.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},Ri.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(Hi);if(!o[0])throw Error("[big.js] Division by zero");if(!r[0])return e.s=i,e.c=[e.e=0],e;var u,c,l,a,f,d=o.slice(),h=u=o.length,p=r.length,_=r.slice(0,u),g=_.length,m=e,w=m.c=[],y=0,v=s+(m.e=n.e-e.e)+1;for(m.s=i,i=v<0?0:v,d.unshift(0);g++<u;)_.push(0);do{for(l=0;l<10;l++){if(u!=(g=_.length))a=u>g?1:-1;else for(f=-1,a=0;++f<u;)if(o[f]!=_[f]){a=o[f]>_[f]?1:-1;break}if(!(a<0))break;for(c=g==u?o:d;g;){if(_[--g]<c[g]){for(f=g;f&&!_[--f];)_[f]=9;--_[f],_[g]+=10}_[g]-=c[g]}for(;!_[0];)_.shift()}w[y++]=a?l:++l,_[0]&&a?_[g]=r[h]||0:_=[r[h]]}while((h++<p||void 0!==_[0])&&i--);return w[0]||1==y||(w.shift(),m.e--,v--),y>v&&Bi(m,v,t.RM,void 0!==_[0]),m},Ri.eq=function(e){return 0===this.cmp(e)},Ri.gt=function(e){return this.cmp(e)>0},Ri.gte=function(e){return this.cmp(e)>-1},Ri.lt=function(e){return this.cmp(e)<0},Ri.lte=function(e){return this.cmp(e)<1},Ri.minus=Ri.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,f=e.c,d=e.e;if(!l[0]||!f[0])return f[0]?e.s=-c:l[0]?e=new i(s):e.s=1,e;if(u=a-d){for((o=u<0)?(u=-u,r=l):(d=a,r=f),r.reverse(),c=u;c--;)r.push(0);r.reverse()}else for(n=((o=l.length<f.length)?l:f).length,u=c=0;c<n;c++)if(l[c]!=f[c]){o=l[c]<f[c];break}if(o&&(r=l,l=f,f=r,e.s=-e.s),(c=(n=f.length)-(t=l.length))>0)for(;c--;)l[t++]=0;for(c=t;n>u;){if(l[--n]<f[n]){for(t=n;t&&!l[--t];)l[t]=9;--l[t],l[n]+=10}l[n]-=f[n]}for(;0===l[--c];)l.pop();for(;0===l[0];)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e},Ri.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)))},Ri.plus=Ri.add=function(e){var t,n,r,o=this.constructor,i=new o(this);e=new o(e);if(i.s!=e.s)return e.s=-e.s,i.minus(e);var s=i.e,u=i.c,c=e.e,l=e.c;if(!u[0]||!l[0])return l[0]||(u[0]?e=new o(i):e.s=i.s),e;if(u=u.slice(),t=s-c){for(t>0?(c=s,r=l):(t=-t,r=u),r.reverse();t--;)r.push(0);r.reverse()}for(u.length-l.length<0&&(r=l,l=u,u=r),t=l.length,n=0;t;u[t]%=10)n=(u[--t]=u[t]+l[t]+n)/10|0;for(n&&(u.unshift(n),++c),t=u.length;0===u[--t];)u.pop();return e.c=u,e.e=c,e},Ri.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(ji+"exponent");for(i&&(e=-e);1&e&&(r=r.times(n)),e>>=1;)n=n.times(n);return i?o.div(r):r},Ri.prec=function(e,t){if(e!==~~e||e<1||e>1e6)throw Error(ji+"precision");return Bi(new this.constructor(this),e,t)},Ri.round=function(e,t){if(void 0===e)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(Hi);return Bi(new this.constructor(this),e+this.e+1,t)},Ri.sqrt=function(){var e,t,n,r=this.constructor,o=new r(this),i=o.s,s=o.e,u=new r("0.5");if(!o.c[0])return new r(o);if(i<0)throw Error(Ui+"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?"5e":(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 Bi(e,(r.DP-=4)+e.e+1,r.RM)},Ri.times=Ri.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 e.c=[e.e=0],e;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]=u}for(u?++e.e:t.shift(),c=t.length;!t[--c];)t.pop();return e.c=t,e},Ri.toExponential=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Hi);for(n=Bi(new n.constructor(n),++e,t);n.c.length<e;)n.c.push(0)}return $i(n,!0,!!r)},Ri.toFixed=function(e,t){var n=this,r=n.c[0];if(void 0!==e){if(e!==~~e||e<0||e>1e6)throw Error(Hi);for(e=e+(n=Bi(new n.constructor(n),e+n.e+1,t)).e+1;n.c.length<e;)n.c.push(0)}return $i(n,!1,!!r)},Ri.toJSON=Ri.toString=function(){var e=this,t=e.constructor;return $i(e,e.e<=t.NE||e.e>=t.PE,!!e.c[0])},Ri.toNumber=function(){var e=Number($i(this,!0,!0));if(!0===this.constructor.strict&&!this.eq(e.toString()))throw Error(Ui+"Imprecise conversion");return e},Ri.toPrecision=function(e,t){var n=this,r=n.constructor,o=n.c[0];if(void 0!==e){if(e!==~~e||e<1||e>1e6)throw Error(ji+"precision");for(n=Bi(new r(n),e,t);n.c.length<e;)n.c.push(0)}return $i(n,e<=n.e||n.e<=r.NE||n.e>=r.PE,!!o)},Ri.valueOf=function(){var e=this,t=e.constructor;if(!0===t.strict)throw Error(Ui+"valueOf disallowed");return $i(e,e.e<=t.NE||e.e>=t.PE,!0)};var Vi=function e(){function t(n){var r=this;if(!(r instanceof t))return void 0===n?e():new t(n);if(n instanceof t)r.s=n.s,r.e=n.e,r.c=n.c.slice(),function(e){if(e.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);else{if("string"!=typeof n){if(!0===t.strict)throw TypeError(ji+"number");n=0===n&&1/n<0?"-0":String(n)}Li(r,n)}r.constructor=t}return t.prototype=Ri,t.DP=28,t.RM=1,t.NE=-29,t.PE=29,t.strict=!1,t}(),Wi=Vi;new Wi(0),new Wi(1),new Wi(-1),new Wi("79228162514264337593543950335"),new Wi("-79228162514264337593543950335");function qi(e,t){return 0===t.indexOf(e)?t:void 0}function zi(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 Ji(e,t){return function(e){return 1===e?e=>{let t,n,r,o,i,s;return t=qi("/",e),null!=t?(n=t,"#"+n):(r=qi("#/",e),null!=r?(o=r,o):(i=qi("#",e),null!=i?(s=i,"#/"+Jt(s,1,s.length-1)):"#/"+e))}:e=>{let t,n;return t=qi("/",e),null!=t?(n=t,n):"/"+e}}(t)(Wt("/",Mn(e=>e.indexOf("?")>=0||0===e.indexOf("#")||0===e.indexOf("/")?e:encodeURIComponent(e),e)))}function Zi(e,t,n){1===t?history.pushState(void 0,"",Ji(e,n)):history.replaceState(void 0,"",Ji(e,n));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function Yi(e,t){return function(e,t){let n,r;const o=hn();let i=o,s=t;for(;!_n(s);){let t=e(mn(s));for(;!_n(t);)n=i,r=new fn(mn(t),void 0),n.tail=r,i=r,t=wn(t);s=wn(s)}const u=i,c=hn();return u.tail=c,wn(o)}(e=>{if("string"!=typeof(t=e)||/^\s*$/.test(t))return yn();{const t=function(e,...t){return 0===t.length?e.trimEnd():e.replace(new RegExp("["+Mt(t.join(""))+"]+$"),"")}(e,"#");if("?"===t)return yn();if(null!=qi("?",t))return bn(t);{const e=t.split("?");if(cn(0,e,null)||1!==e.length){if(cn(0,e,null)||2!==e.length)return yn();if(""===e[1]){const t=e[0];return bn(decodeURIComponent(t))}{const t=e[0],n=e[1];return An([decodeURIComponent(t),"?"+n])}}{const t=e[0];return bn(decodeURIComponent(t))}}}var t},An(zt(null!=qi("#",e)?Jt(e,1,e.length-1):1===t&&(null!=zi("#",e)||null!=zi("#/",e))?"":e,["/"],null,0)))}const Xi=gi(e=>{const t=ki(t=>{const n=Qt(e.onUrlChanged,e=>{});!function(e,t,n){t(Yi(2===e?window.location.pathname+window.location.search:window.location.hash,e))}(Qt(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=xi(()=>Oi(r),[r]),i=xi(()=>Ai(r),[r]),s=xi(()=>e=>{n(e)},[n]);yi(ki(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),wi(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}else{const e="popstate",n=t,r=void 0,o=xi(()=>Oi(r),[r]),i=xi(()=>Ai(r),[r]),s=xi(()=>e=>{n(e)},[n]);yi(ki(()=>(null==o?window.addEventListener(e,s):window.addEventListener(e,s,o),wi(()=>{null==i?window.removeEventListener(e,s):window.removeEventListener(e,s,i)}))))}const n="CUSTOM_NAVIGATION_EVENT",r=t,o=xi(()=>Oi(void 0),[void 0]),i=xi(()=>Ai(void 0),[void 0]),s=xi(()=>e=>{r(e)},[r]);yi(ki(()=>(null==o?window.addEventListener(n,s):window.addEventListener(n,s,o),wi(()=>{null==i?window.removeEventListener(n,s):window.removeEventListener(n,s,i)}))));const u=e.application;return null==u?null:u},void 0,Qi,Ki);var Ki,Qi;class es extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["FlareAccounts","ApolloAccounts","NotFound"]}}function ts(){return W("Middleware.FastTrack.AdminUI.Types.Page",[],es,()=>[[],[],[]])}function ns(e){let t;switch(t=Cn(e)?2:"fasttrack-middleware"===En(e)?Cn(Sn(e))?2:"flare-accounts"===En(Sn(e))?Cn(Sn(Sn(e)))?0:2:"apollo-accounts"===En(Sn(e))&&Cn(Sn(Sn(e)))?1:2:2,t){case 0:return new es(0);case 1:return new es(1);case 2:return new es(2)}}function rs(e){switch(e.tag){case 0:return An(["fasttrack-middleware","flare-accounts"]);case 1:return An(["fasttrack-middleware","apollo-accounts"]);default:return An(["fasttrack-middleware","flare-accounts"])}}class os extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Tab"]}}function is(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=yr("a",k(ri(ei(()=>si(ni(["key",e]),ei(()=>si(ni(["children",e]),ei(()=>si(ni(["className",n]),ei(()=>null!=t?ni(["href",Ji(bn(Xt(t)),1)]):ei(()=>new Array(0)))))))))))),new os(0,r);var r}class ss extends U{constructor(e,t,n,r,o,i){super(),this.AccountName=e,this.ApiVersion=t,this.Email=n,this.PayeeIntegrationFlag=r,this.PayeeType=o,this.PayeeUpdateFlag=i}}function us(){return V("Middleware.FastTrack.AdminUI.Services.BackendDto.Common.FastTrackDetails",[],ss,()=>[["AccountName",q(Z)],["ApiVersion",Z],["Email",q(Z)],["PayeeIntegrationFlag",Y],["PayeeType",q(Z)],["PayeeUpdateFlag",Y]])}class cs extends U{constructor(e,t,n,r){super(),this.Id=e,this.FastTrack=t,this.Flare=n,this.LastSummaryEmailChecked=r}}function ls(){return V("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.Account",[],cs,()=>[["Id",Z],["FastTrack",us()],["Flare",V("Middleware.FastTrack.AdminUI.Services.BackendDto.Flare.FlareDetails",[],as,()=>[["AccountName",q(Z)],["RepName",Z],["WebhookSubscriptionId",q(Z)],["UseDivisionLookup",Y]])],["LastSummaryEmailChecked",q(Z)]])}class as extends U{constructor(e,t,n,r){super(),this.AccountName=e,this.RepName=t,this.WebhookSubscriptionId=n,this.UseDivisionLookup=r}}class fs extends U{constructor(e,t){super(),this.Id=e,this.FastTrack=t}}function ds(){return V("Middleware.FastTrack.AdminUI.Services.BackendDto.Apollo.Account",[],fs,()=>[["Id",Z],["FastTrack",us()]])}class hs{constructor(e,t){this.k=e,this.v=t}}function ps(e,t){return new hs(e,t)}function _s(e){return e.k}function gs(e){return e.v}class ms extends hs{constructor(e,t,n,r,o){super(e,t),this.left=n,this.right=r,this.h=0|o}}function ws(e,t,n,r,o){return new ms(e,t,n,r,o)}function ys(e){return e.left}function vs(e){return e.right}function bs(e){return e.h}function Cs(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ms){t=e(r+1,ys(i)),n=vs(i);continue e}return r+1|0}return 0|r}}(0,e)}function Es(e,t,n,r){let o;if(null!=e){const t=e;o=t instanceof ms?bs(t):1}else o=0;let i;if(null!=r){const e=r;i=e instanceof ms?bs(e):1}else i=0;const s=0|(o<i?i:o);return 0===s?ps(t,n):ws(t,n,e,r,s+1)}function Ss(e,t,n,r){let o,i,s,u,c;if(null!=e){const t=e;c=t instanceof ms?bs(t):1}else c=0;let l;if(null!=r){const e=r;l=e instanceof ms?bs(e):1}else l=0;if(l>c+2){const s=Xt(r);if(s instanceof ms){if(o=ys(s),(null!=o?(i=o,i instanceof ms?bs(i):1):0)>c+1){const r=Xt(ys(s));if(r instanceof ms)return Es(Es(e,t,n,ys(r)),_s(r),gs(r),Es(vs(r),_s(s),gs(s),vs(s)));throw new Error("internal error: Map.rebalance")}return Es(Es(e,t,n,ys(s)),_s(s),gs(s),vs(s))}throw new Error("internal error: Map.rebalance")}if(c>l+2){const o=Xt(e);if(o instanceof ms){if(s=vs(o),(null!=s?(u=s,u instanceof ms?bs(u):1):0)>l+1){const e=Xt(vs(o));if(e instanceof ms)return Es(Es(ys(o),_s(o),gs(o),ys(e)),_s(e),gs(e),Es(vs(e),t,n,r));throw new Error("internal error: Map.rebalance")}return Es(ys(o),_s(o),gs(o),Es(vs(o),t,n,r))}throw new Error("internal error: Map.rebalance")}return Es(e,t,n,r)}function xs(e,t,n,r){if(null!=r){const o=r,i=0|e.Compare(t,_s(o));return o instanceof ms?i<0?Ss(xs(e,t,n,ys(o)),_s(o),gs(o),vs(o)):0===i?ws(t,n,ys(o),vs(o),bs(o)):Ss(ys(o),_s(o),gs(o),xs(e,t,n,vs(o))):i<0?ws(t,n,void 0,r,2):0===i?ps(t,n):ws(t,n,r,void 0,2)}return ps(t,n)}function ks(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 Yt(gs(s));if(s instanceof ms){e=r,t=o,n=u<0?ys(s):vs(s);continue e}return}return}}function Ts(e,t){!function e(t,n){e:for(;;){const r=t,o=n;if(null!=o){const i=o;if(i instanceof ms){e(r,ys(i)),r(_s(i),gs(i)),t=r,n=vs(i);continue e}r(_s(i),gs(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=e(t,ys(r)),o=t(_s(r),gs(r)),i=e(t,vs(r));return ws(_s(r),o,n,i,bs(r))}return ps(_s(r),t(_s(r),gs(r)))}}(e,t)}function Os(e,t,n){let r=n;Ts((e,n)=>{t[r]=[e,n],r=r+1|0},e)}function As(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=xs(e,o[0],o[1],n)}return n}function Ns(e,t){if(r(t))return As(e,t);if(t instanceof fn)return function(e,t){return kn((t,n)=>xs(e,n[0],n[1],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"]();e=r,t=xs(r,s[0],s[1],o),n=i}}}(e,void 0,n)}finally{n.Dispose()}}}class Ds extends U{constructor(e,t){super(),this.stack=e,this.started=t}}function Ms(e){e:for(;;){const t=e;if(Cn(t))return yn();{const n=Sn(t),r=En(t);if(null!=r){const o=r;if(o instanceof ms){e=On([ys(o),ps(_s(o),gs(o)),vs(o)],n);continue e}return t}e=n;continue e}}}function Ps(e){return new Ds(Ms(bn(e)),!1)}function Fs(e){if(e.started){const t=e.stack;if(Cn(t))return function(){throw new Error("enumeration already finished")}();if(null!=En(t)){const e=En(t);if(e instanceof ms)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 Rs(e){let t=Ps(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Fs(t),"System.Collections.IEnumerator.get_Current":()=>Fs(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Cn(t))return!1;if(null!=En(t)){if(En(t)instanceof ms)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ms(Sn(t)),!Cn(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!Cn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Ps(e)},Dispose(){}}}class Us{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"]();n=0|t(n,m(e[0])),n=0|t(n,m(e[1]))}}finally{r.Dispose()}return 0|n}(this)}Equals(e){if(!(e instanceof Us))return!1;{const t=c(this);try{const n=c(e);try{const e=()=>{const r=t["System.Collections.IEnumerator.MoveNext"]();if(r===n["System.Collections.IEnumerator.MoveNext"]()){if(r){const r=t["System.Collections.Generic.IEnumerator`1.get_Current"](),o=n["System.Collections.Generic.IEnumerator`1.get_Current"]();return!(!v(r[0],o[0])||!v(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{n.Dispose()}}finally{t.Dispose()}}}toString(){return"map ["+Wt("; ",ai(e=>$t("({0}, {1})",e[0],e[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Rs(this.tree)}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Rs(this.tree)}CompareTo(e){const t=this;if(e instanceof Us)return 0|function(e,t,n){const r=Qo(t);try{const t=Qo(n);try{let n=0,o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]();for(;0===n&&o&&i;)n=0|e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),t["System.Collections.Generic.IEnumerator`1.get_Current"]()),0===n&&(o=r["System.Collections.IEnumerator.MoveNext"](),i=t["System.Collections.IEnumerator.MoveNext"]());return 0|(0!==n?n:o?1:i?-1:0)}finally{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!!Bs(this,e[0])&&v(Gs(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){Os(this.tree,e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ls(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ls(this)}get size(){return 0|Ls(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return ai(e=>[e[0],e[1]],this)}get(e){return Gs(this,e)}has(e){return Bs(this,e)}keys(){return ai(e=>e[0],this)}set(e,t){throw new Error("Map cannot be mutated")}values(){return ai(e=>e[1],this)}forEach(e,t){const n=this;li(t=>{e(t[1],t[0],n)},n)}}function js(e,t){return new Us(e,t)}function Hs(e){const t=Vo();return js(t,Ns(t,e))}function Gs(e,t){return function(e,t,n){const r=ks(e,t,n);if(null==r)throw new Error;return Xt(r)}(e.comparer,t,e.tree)}function Ls(e){return Cs(e.tree)}function Bs(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 ms){if(u<0){e=r,t=o,n=ys(s);continue e}if(0===u)return!0;e=r,t=o,n=vs(s);continue e}return 0===u}return!1}}(e.comparer,t,e.tree)}function $s(e,t,n){return function(e,t,n){return js(e.comparer,xs(e.comparer,t,n,e.tree))}(n,e,t)}function Vs(e,t){return function(e,t){return ks(e.comparer,t,e.tree)}(t,e)}function Ws(e,t){return r=e,js((n=t).comparer,Is(r,n.tree));var n,r}function qs(){return Us.empty}Us.empty=js(Vo(),void 0);class zs extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class Js extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["ColumnHeader"]}}function Zs(e){return new Js(0,e)}class Ys extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["RowCell"]}}function Xs(e){return new Ys(0,e)}function Ks(e){return Zs(yr("th",k(An([["className","px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"],["scope","col"],["children",e]]))))}function Qs(e,t){return Xs(yr("td",{className:Wt(" ",si(e,["px-6","py-4","whitespace-nowrap","text-sm"])),children:t}))}function eu(e,t){let n,r;return yr("div",{className:"flex flex-col mt-4",children:di.Children.toArray([yr("div",{className:"-my-2 overflow-x-auto sm:-mx-6 lg:-mx-8",children:di.Children.toArray([yr("div",{className:"py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8",children:di.Children.toArray([yr("div",{className:"shadow overflow-hidden border-b border-gray-200 sm:rounded-lg",children:di.Children.toArray([yr("table",{className:"min-w-full divide-y divide-gray-200",children:di.Children.toArray([yr("thead",{className:"bg-gray-50",children:(n=ai(e=>e.fields[0],e),yr("tr",{children:di.Children.toArray(Array.from(n))}))}),(r=fi((e,t)=>{return n=t,yr("tr",{className:e%2==0?"bg-white":"bg-gray-50",children:di.Children.toArray(Array.from(ai(e=>e.fields[0],n)))});var n},t),yr("tbody",{children:di.Children.toArray(Array.from(r))}))])})])})])})])})])})}class tu extends U{constructor(e,t){super(),this.bound=0|e,this.digits=t}}function nu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*nu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}wt(2013265921,0,!1),wt(2013265921,0,!0);sn(28,e=>nu(2,e),Int32Array);function ru(e){return e.bound}function ou(e,t){return e.digits[t]}function iu(e,t){return bt(ou(e,t),!1,2)}function su(e,t,n){e.digits[t]=0|n}function uu(e,t){for(;;){const n=e,r=t;if(0===r)return wt(1,0,!1);if(r%2!=0)return dt(n,uu(dt(n,n),~~(r/2)));e=dt(n,n),t=~~(r/2)}}function cu(e,t){for(;;){const n=e,r=t;if(0===r)return 1;if(r%2!=0)return n*cu(n*n,~~(r/2))|0;e=n*n,t=~~(r/2)}}const lu=wt(16777216,0,!1),au=wt(16777215,0,!1);wt(16777215,0,!0);function fu(e){return new tu(e,new Int32Array(e))}function du(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=0|t,e}function hu(e){const t=0|(e<0?0:e);if(t<16777216){const e=fu(1);return e.digits[0]=0|t,du(e)}{const e=fu(2);for(let n=0;n<=1;n++)e.digits[n]=~~(t/cu(16777216,n))%16777216|0;return du(e)}}function pu(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|0;return 0|t}}const _u=hu(1),gu=hu(0);function mu(e){return e.bound-1}function wu(e){return 0===e.bound}function yu(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 vu(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 bu(e,t){return-1===vu(e,t)}function Cu(e,t,n){for(;;){const r=e,o=t,i=n;if(!(mt(o,wt(0,0,!1))>0))break;{const s=ft(iu(r,i),o);su(r,i,~~yt(gt(s,au))),e=r,t=ht(s,lu),n=i+1}}}function Eu(e,t){const n=0|ru(e),r=fu(n+1),o=bt(t,!1,2);let i=wt(0,0,!1);for(let t=0;t<=n-1;t++){const n=ft(ft(i,iu(r,t)),dt(iu(e,t),o));su(r,t,~~yt(gt(n,au))),i=ht(n,lu)}return Cu(r,i,n),du(r)}function Su(e,t){const n=1===ru(e),r=1===ru(t);return n&&r?function(e,t){const n=fu(2),r=dt(bt(e,!1,2),bt(t,!1,2));return su(n,0,~~yt(gt(r,au))),su(n,1,~~yt(ht(r,lu))),du(n)}(ou(e,0),ou(t,0)):n?Eu(t,ou(e,0)):r?Eu(e,ou(t,0)):function(e,t){const n=fu(e.bound+t.bound),r=n.digits;for(let o=0;o<=e.bound-1;o++){const i=bt(e.digits[o],!1,2);let s=wt(0,0,!1),u=o;for(let e=0;e<=t.bound-1;e++){const n=bt(t.digits[e],!1,2),o=ft(ft(bt(r[u],!1,2),s),dt(i,n));r[u]=0|~~yt(gt(o,au)),s=ht(o,lu),u=u+1|0}Cu(n,s,u)}return du(n)}(e,t)}class xu 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 ku(e,t,n,r){return new xu(e,cu(2,e),t,n,r,~~(24/e),sn(~~(24/e),t=>cu(2,e*t),Int32Array))}const Tu=[ku(1,28,268435456,268435456),ku(2,26,67108864,134217728),ku(3,24,16777216,50331648),ku(4,22,4194304,16777216),ku(5,20,1048576,5242880),ku(6,18,262144,1572864),ku(7,16,65536,458752),ku(8,14,16384,131072),ku(9,12,4096,36864),ku(10,10,1024,10240),ku(11,8,256,2816),ku(12,6,64,768),ku(13,4,16,208)];sn(24,e=>cu(2,e)-1,Int32Array),sn(24,e=>cu(2,e),Int32Array),sn(24,e=>uu(wt(2,0,!1),e));Tu[0].bigN;function Iu(e,t){return Su(e,t)}function Ou(e,t,n,r){const o=[e.digits,mu(e)],i=o[0],s=[n.digits,mu(n)],u=0|s[1],c=s[0],l=bt(t,!1,2);let a=0,f=dt(l,bt(c[0],!1,2));for(;mt(f,wt(0,0,!1))>0||a<u;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~yt(gt(f,au)),t=ht(f,lu);e<=i[a+r]?i[a+r]=i[a+r]-e|0:(i[a+r]=i[a+r]+(16777216-e)|0,t=ft(t,wt(1,0,!1))),f=a<u?ft(t,dt(l,bt(c[a+1],!1,2))):t,a=a+1|0}du(e)}function Au(e,t,n,r){const o=[e.digits,mu(e)],i=o[0],s=[n.digits,mu(n)],u=0|s[1],c=s[0],l=bt(t,!1,2);let a=0,f=dt(l,bt(c[0],!1,2));for(;mt(f,wt(0,0,!1))>0||a<u;){if(a>o[1])throw new Error("scaleSubInPlace: pre-condition did not apply, result would be -ve");let e=~~yt(gt(f,au)),t=ht(f,lu);e<16777216-i[a+r]?i[a+r]=i[a+r]+e|0:(i[a+r]=e-(16777216-i[a+r])|0,t=ft(t,wt(1,0,!1))),f=a<u?ft(t,dt(l,bt(c[a+1],!1,2))):t,a=a+1|0}du(e)}function Nu(e,t,n){const r=[mu(t),mu(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],c=0|(0===i?o===n?~~(s[n]/u[0]):~~yt(ht(ft(dt(bt(s[o],!1,2),lu),bt(s[o-1],!1,2)),bt(u[0],!1,2))):o===i+n?~~(s[o]/(u[i]+1)):~~yt(ht(ft(dt(bt(s[o],!1,2),lu),bt(s[o-1],!1,2)),ft(bt(u[i],!1,2),wt(1,0,!1)))));return 0===c?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:0|c}}function Du(e,t){if(wu(t))throw new Error;if(mu(e)<mu(t))return[gu,e];{const n=function(e){return new tu(e.bound,e.digits.slice())}(e),r=fu(mu(e)-mu(t)+1+1);let o=mu(e);const i=0|mu(t);let s=o-i;const u=e=>{};let c=!1;for(;!c;){u([r,n,s,o]);const e=0|Nu(n,t,s);e>0?(Ou(n,e,t,s),Au(r,e,_u,s),u([r,n,s,o])):(c=0===e&&0===s,c||(o===i+s?(u([r,n,s-1,o]),s=s-1|0):(u([r,n,s-1,o-1]),s=s-1|0,o=o-1|0)))}return[du(r),du(n)]}}hu(2);function Mu(e){return hu(e)}function Pu(e){return function(e){const t=mt(e,wt(0,0,!1))<0?wt(0,0,!1):e,n=fu(3);for(let e=0;e<=2;e++)n.digits[e]=0|~~yt(pt(ht(t,uu(lu,e)),lu));return du(n)}(e)}function Fu(e){const t=0|mu(e),n=(e,t,r,o)=>{e:for(;;){const i=e,s=t,u=r,c=o;if(Cn(c)){const e=0|pu(u);return i&&0===e?s:vn(d(e),s)}{const l=Sn(c),a=Du(u,En(c)[1]),f=a[1],d=a[0];if(i&&wu(d)){e=i,t=s,r=f,o=l;continue e}e=i,t=n(!1,s,f,l),r=d,o=l;continue e}}},r=n(!0,yn(),e,((e,n,r)=>{for(;;){const o=e,i=n,s=r;if(mu(s)>t)return vn([i,s],o);e=vn([i,s],o),n=i+1,r=Iu(s,s)}})(yn(),0,hu(10)));return Cn(r)?"0":Wt("",xn(r))}function Ru(e){return e.bound<=1}function Uu(e){const t=e;return 0<t.bound?0|t.digits[0]:0}class ju extends U{constructor(e,t){super(),this.signInt=0|e,this.v=t}toString(){const e=this;switch(0|Lu(e)){case-1:return wu(Bu(e))?"0":"-"+Fu(Bu(e));case 0:return"0";case 1:return Fu(Bu(e));default:throw new Error("signs should be +/- 1 or 0")}}Equals(e){return e instanceof ju&&$u(this,e)}GetHashCode(){return 0|(0===Lu(e=this)?1:Lu(e)+function(e){let t=0;for(let n=0;n<=e.bound-1;n++)t=e.digits[n]+(t<<3)|0;return 0|t}(Bu(e))|0);var e}toJSON(e){return A(this)}CompareTo(e){if(e instanceof ju)return 0|function(e,t){return Vu(e,t)?-1:$u(e,t)?0:1}(this,e);throw new Error("the objects are not comparable\\nParameter name: obj")}}function Hu(e,t){return new ju(e,t)}function Gu(e){return Ru(e)&&Uu(e)<ju.smallLim?ju.smallPosTab[Uu(e)]:e}function Lu(e){return e.signInt}function Bu(e){return e.v}function $u(e,t){const n=[Lu(e),Lu(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 yu(Bu(e),Bu(t));case 2:case 3:return!!wu(Bu(e))&&wu(Bu(t));case 4:return!0;case 5:case 6:return wu(Bu(t));case 7:case 8:return wu(Bu(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Vu(e,t){const n=[Lu(e),Lu(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 bu(Bu(e),Bu(t));case 1:return bu(Bu(t),Bu(e));case 2:return!1;case 3:return!wu(Bu(e))||!wu(Bu(t));case 4:return!1;case 5:return!wu(Bu(t));case 6:case 7:return!1;case 8:return!wu(Bu(e));case 9:throw new Error("signs should be +/- 1 or 0\\nParameter name: x")}}function Wu(e){return e>=0?Hu(1,Gu(Mu(e))):Hu(-1,Gu(-2147483648===e?Pu(_t(bt(e,!1,2))):Mu(de(e))))}function qu(){return ju.one}function zu(){return ju.two}function Ju(){return ju.zero}ju.smallLim=4096,ju.smallPosTab=sn(ju.smallLim,e=>Mu(e)),ju.one=Wu(1),ju.two=Wu(2),ju.zero=Wu(0);Ju(),qu(),zu();Ju(),qu();class Zu{constructor(){}}function Yu(e,t){return{then:(e,n)=>{try{return t().then(e,n)}catch(e){if(v(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 Xu=new Zu;class Ku extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Writable","ReadWritable"]}}class Qu{constructor(e){this.state=new Ku(0,rn(new Array(x((e,t)=>C(e,t),e,10)),0,x((e,t)=>C(e,t),e,10),null),0)}}function ec(e){const t=e.state;if(1===t.tag){const n=0|t.fields[1],r=0|t.fields[2],o=t.fields[0],i=(r+1)%o.length|0;return e.state=i===n?new Ku(0,o,n):new Ku(1,o,n,i),Yt(o[r])}}function tc(e,t,n){const r=Si(e[0]),o=Si(new Qu(10));const s=Ti(e[0]);let u;const c=Si(Wn()),l=Si(c.current);bi(()=>wi(()=>{qn(c.current)})),u=l;const a=()=>{setTimeout(()=>{let e;e=u.current,zn(e)||s[1](r.current)},0)},f=e=>{var n;(n=Yu(0,()=>{let n=Yt(e);return function e(t,n,r){return n()?r.then(()=>e(t,n,r)):Promise.resolve(void 0)}(Xu,()=>{let e;return null!=n&&(e=u.current,!zn(e))},Yu(0,()=>{const e=t(Xt(n),r.current);return In(e=>{e(f)},e[1]),n=ec(o.current),r.current=e[0],a(),Promise.resolve()}))}),new Promise((e,t)=>{try{Promise.resolve(n).then(e,t)}catch(e){t(e)}})).then()},d=ki(f);var h;return vi(()=>wi(()=>{let e;li(e=>{e.Dispose()},Kt((e=r.current,i(e)?e:void 0)))}),n),Ci(()=>{r.current=e[0],a(),In(e=>{e(d)},e[1])},n),h=()=>{li(d,Kt(ec(o.current)))},hi(e=>(h(),wi(()=>{}))),[s[0],d]}function nc(e,t,n){return tc(xi(e,n),t,n)}class rc extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class oc extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Header"]}}class ic extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Empty","Text","Binary","Form"]}}class sc 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 uc extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class cc 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 lc=new sc("",new rc(0),yn(),!1,void 0,void 0,new ic(0));new cc(0,"","",qs(),new uc(0,""));function ac(e,t){return Vt(t)?[t]:zt(t,[e],null,0)}function fc(e){return new sc(e,lc.method,lc.headers,lc.withCredentials,lc.overridenMimeType,lc.overridenResponseType,lc.content)}function dc(e,t){return new sc(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.content)}function hc(e){return Yn(t=>{const n=new XMLHttpRequest;n.open(function(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}(e.method),e.url),n.onreadystatechange=()=>{let e,r,o,i,s,u;4===n.readyState&&t[0]((r=n.responseType,e=""===r||"text"===r?n.responseText:"",o=0|n.status,i=n.responseType,u=n.responseType,s=""===u||"text"===u?new uc(0,n.responseText):new uc("arraybuffer"===u?2:"blob"===u?1:3,n.response),new cc(o,e,i,function(e){const t=Vo();return js(t,As(t,e))}(function(e,t,n){const r=[];for(let n=0;n<=t.length-1;n++){const o=e(t[n]);if(null!=o){const e=Xt(o);r.push(e)}}return"function"==typeof n?on(e=>e,r,n):r}(e=>{const t=An(ac(":",e));return Cn(t)?void 0:[En(t).toLocaleLowerCase(),Wt(":",Sn(t)).trim()]},ac("\r\n",n.getAllResponseHeaders()))),s)))};const r=c(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(e.fields[0],e.fields[1])}}finally{r.Dispose()}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;null==o||n.overrideMimeType(o);const i=e.overridenResponseType;null==i||(1===i.tag?n.responseType="blob":2===i.tag?n.responseType="arraybuffer":n.responseType="text");const s=[e.method,e.content];0===s[0].tag?n.send(Yt(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?n.send(Yt(s[1].fields[0])):n.send(Yt(void 0))})}class pc extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class _c extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class gc{constructor(){this.cache=new Map([])}}function mc(){return new gc}mc(),mc();function wc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function yc(e,t){switch(e.tag){case 2:return function(e,t,n,r,o=0){if("string"==typeof e){const n=e;e=Dt(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=Pt(e,s),c=Pt.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)}(wc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return wc(t)}}function vc(e,t){bc(t);const n=new Date(e);return n.offset=null!=t?t:-6e4*(new Date).getTimezoneOffset(),n}function bc(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Cc(e,t){try{return t.contents=function(e){const t=At(e),n=Ct.exec(e),r=null==n?-6e4*t.getTimezoneOffset():"Z"===n[0]?0:36e5*parseInt(n[1],10)+6e4*parseInt(n[2],10);return vc(t.getTime(),r)}(e),!0}catch(e){return!1}}function Ec(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Sc(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 Sc(e){return vt(ht(e,1e4))}function xc(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 Ec(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*Ec(n,s,u,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class kc{constructor(e){this.k=e}}function Tc(e){return new kc(e)}function Ic(e){return e.k}class Oc extends kc{constructor(e,t,n,r){super(e),this.left=t,this.right=n,this.h=0|r}}function Ac(e,t,n,r){return new Oc(e,t,n,r)}function Nc(e){return e.left}function Dc(e){return e.right}function Mc(e){return e.h}function Pc(e){return function e(t,n){e:for(;;){const r=t,o=n;if(null!=r){const i=r;if(i instanceof Oc){t=Nc(i),n=e(Dc(i),o+1);continue e}return o+1|0}return 0|o}}(e,0)}function Fc(e,t,n){let r;if(null!=e){const t=e;r=t instanceof Oc?Mc(t):1}else r=0;let o;if(null!=n){const e=n;o=e instanceof Oc?Mc(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?Tc(t):Ac(t,e,n,i+1)}function Rc(e,t,n){let r,o,i,s,u;if(null!=e){const t=e;u=t instanceof Oc?Mc(t):1}else u=0;let c;if(null!=n){const e=n;c=e instanceof Oc?Mc(e):1}else c=0;if(c>u+2){const i=Xt(n);if(i instanceof Oc){if(r=Nc(i),(null!=r?(o=r,o instanceof Oc?Mc(o):1):0)>u+1){const n=Xt(Nc(i));if(n instanceof Oc)return Fc(Fc(e,t,Nc(n)),Ic(n),Fc(Dc(n),Ic(i),Dc(i)));throw new Error("internal error: Set.rebalance")}return Fc(Fc(e,t,Nc(i)),Ic(i),Dc(i))}throw new Error("internal error: Set.rebalance")}if(u>c+2){const r=Xt(e);if(r instanceof Oc){if(i=Dc(r),(null!=i?(s=i,s instanceof Oc?Mc(s):1):0)>c+1){const e=Xt(Dc(r));if(e instanceof Oc)return Fc(Fc(Nc(r),Ic(r),Nc(e)),Ic(e),Fc(Dc(e),t,n));throw new Error("internal error: Set.rebalance")}return Fc(Nc(r),Ic(r),Fc(Dc(r),t,n))}throw new Error("internal error: Set.rebalance")}return Fc(e,t,n)}function Uc(e,t,n){if(null!=n){const r=n,o=0|e.Compare(t,Ic(r));if(r instanceof Oc)return o<0?Rc(Uc(e,t,Nc(r)),Ic(r),Dc(r)):0===o?n:Rc(Nc(r),Ic(r),Uc(e,t,Dc(r)));{const o=0|e.Compare(t,Ic(r));return o<0?Ac(t,void 0,n,2):0===o?n:Ac(t,n,void 0,2)}}return Tc(t)}function jc(e,t,n){e:for(;;){const r=e,o=t,i=n;if(null!=i){const s=i,u=0|r.Compare(o,Ic(s));if(s instanceof Oc){if(u<0){e=r,t=o,n=Nc(s);continue e}if(0===u)return!0;e=r,t=o,n=Dc(s);continue e}return 0===u}return!1}}function Hc(e,t){e:for(;;){const n=e,r=t;if(null!=r){const o=r;if(o instanceof Oc){Hc(n,Nc(o)),n(Ic(o)),e=n,t=Dc(o);continue e}n(Ic(o))}break}}class Gc extends U{constructor(e,t){super(),this.stack=e,this.started=t}}function Lc(e){e:for(;;){const t=e;if(Cn(t))return yn();{const n=En(t),r=Sn(t);if(null!=n){const o=n;if(o instanceof Oc){e=On([Nc(o),Tc(Ic(o)),Dc(o)],r);continue e}return t}e=r;continue e}}}function Bc(e){return new Gc(Lc(bn(e)),!1)}function $c(e){if(e.started){const t=e.stack;if(Cn(t))return function(){throw new Error("Enumeration already started")}();if(null!=En(t)){return Ic(En(t))}throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Vc(e){let t=Bc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>$c(t),"System.Collections.IEnumerator.get_Current":()=>$c(t),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const t=e.stack;if(Cn(t))return!1;if(null!=En(t)){if(En(t)instanceof Oc)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Lc(Sn(t)),!Cn(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!Cn(e.stack)}(t),"System.Collections.IEnumerator.Reset"(){t=Bc(e)},Dispose(){}}}function Wc(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(Cn(s[0]))return Cn(s[1])?0:-1;if(Cn(s[1]))return 1;if(null!=En(s[1]))if(null!=En(s[0])){const u=En(s[0]),c=En(s[1]);if(u instanceof Oc)if(null==Nc(u)){if(!(c instanceof Oc)){const o=0|r.Compare(Ic(u),Ic(c));if(0!==o)return 0|o;e=r,t=vn(Dc(u),Sn(s[0])),n=vn(void 0,Sn(s[1]));continue e}if(null==Nc(c)){const o=0|r.Compare(Ic(u),Ic(c));if(0!==o)return 0|o;e=r,t=vn(Dc(u),Sn(s[0])),n=vn(Dc(c),Sn(s[1]));continue e}{const s=[o,i];let u,c,l,a,f;switch(Cn(s[0])?Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2:null!=En(s[0])?(u=0,c=Sn(s[0]),l=En(s[0])):Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2,u){case 0:if(l instanceof Oc){e=r,t=On([Nc(l),Ac(Ic(l),void 0,Dc(l),0)],c),n=i;continue e}e=r,t=On([void 0,Tc(Ic(l))],c),n=i;continue e;case 1:if(f instanceof Oc){e=r,t=o,n=On([Nc(f),Ac(Ic(f),void 0,Dc(f),0)],a);continue e}e=r,t=o,n=On([void 0,Tc(Ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const s=[o,i];let u,c,l,a,f;switch(Cn(s[0])?Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2:null!=En(s[0])?(u=0,c=Sn(s[0]),l=En(s[0])):Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2,u){case 0:if(l instanceof Oc){e=r,t=On([Nc(l),Ac(Ic(l),void 0,Dc(l),0)],c),n=i;continue e}e=r,t=On([void 0,Tc(Ic(l))],c),n=i;continue e;case 1:if(f instanceof Oc){e=r,t=o,n=On([Nc(f),Ac(Ic(f),void 0,Dc(f),0)],a);continue e}e=r,t=o,n=On([void 0,Tc(Ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(c instanceof Oc)){const o=0|r.Compare(Ic(u),Ic(c));if(0!==o)return 0|o;e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}if(null==Nc(c)){const o=0|r.Compare(Ic(u),Ic(c));if(0!==o)return 0|o;e=r,t=vn(void 0,Sn(s[0])),n=vn(Dc(c),Sn(s[1]));continue e}{const s=[o,i];let u,c,l,a,f;switch(Cn(s[0])?Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2:null!=En(s[0])?(u=0,c=Sn(s[0]),l=En(s[0])):Cn(s[1])?u=2:null!=En(s[1])?(u=1,a=Sn(s[1]),f=En(s[1])):u=2,u){case 0:if(l instanceof Oc){e=r,t=On([Nc(l),Ac(Ic(l),void 0,Dc(l),0)],c),n=i;continue e}e=r,t=On([void 0,Tc(Ic(l))],c),n=i;continue e;case 1:if(f instanceof Oc){e=r,t=o,n=On([Nc(f),Ac(Ic(f),void 0,Dc(f),0)],a);continue e}e=r,t=o,n=On([void 0,Tc(Ic(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{En(s[1]);const u=[o,i];let c,l,a,f,d;switch(Cn(u[0])?Cn(u[1])?c=2:null!=En(u[1])?(c=1,f=Sn(u[1]),d=En(u[1])):c=2:null!=En(u[0])?(c=0,l=Sn(u[0]),a=En(u[0])):Cn(u[1])?c=2:null!=En(u[1])?(c=1,f=Sn(u[1]),d=En(u[1])):c=2,c){case 0:if(a instanceof Oc){e=r,t=On([Nc(a),Ac(Ic(a),void 0,Dc(a),0)],l),n=i;continue e}e=r,t=On([void 0,Tc(Ic(a))],l),n=i;continue e;case 1:if(d instanceof Oc){e=r,t=o,n=On([Nc(d),Ac(Ic(d),void 0,Dc(d),0)],f);continue e}e=r,t=o,n=On([void 0,Tc(Ic(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==En(s[0])){e=r,t=Sn(s[0]),n=Sn(s[1]);continue e}{En(s[0]);const u=[o,i];let c,l,a,f,d;switch(Cn(u[0])?Cn(u[1])?c=2:null!=En(u[1])?(c=1,f=Sn(u[1]),d=En(u[1])):c=2:null!=En(u[0])?(c=0,l=Sn(u[0]),a=En(u[0])):Cn(u[1])?c=2:null!=En(u[1])?(c=1,f=Sn(u[1]),d=En(u[1])):c=2,c){case 0:if(a instanceof Oc){e=r,t=On([Nc(a),Ac(Ic(a),void 0,Dc(a),0)],l),n=i;continue e}e=r,t=On([void 0,Tc(Ic(a))],l),n=i;continue e;case 1:if(d instanceof Oc){e=r,t=o,n=On([Nc(d),Ac(Ic(d),void 0,Dc(d),0)],f);continue e}e=r,t=o,n=On([void 0,Tc(Ic(d))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,bn(t),bn(n))}function qc(e,t,n){let r=n;Hc(e=>{t[r]=e,r=r+1|0},e)}function zc(e,t){return un((t,n)=>Uc(e,n,t),void 0,t)}function Jc(e,t){if(r(t))return zc(e,t);if(t instanceof fn)return function(e,t){return kn((t,n)=>Uc(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=Uc(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i}}(e,void 0,n)}finally{n.Dispose()}}}class Zc{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"]();t=(t<<1)+m(e)+631|0}}finally{n.Dispose()}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Zc&&0===Wc(Xc(this),Kc(this),Kc(e))}toString(){return"set ["+Wt("; ",ai(e=>A(e),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Wc(Xc(this),Kc(this),Kc(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 jc(Xc(this),e,Kc(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,t){qc(Kc(this),e,t)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Qc(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Qc(this)}GetEnumerator(){return Vc(Kc(this))}[Symbol.iterator](){return l(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Vc(Kc(this))}get size(){return 0|Qc(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 el(this,e)}keys(){return ai(e=>e,this)}values(){return ai(e=>e,this)}entries(){return ai(e=>[e,e],this)}forEach(e,t){const n=this;li(t=>{e(t,t,n)},n)}}function Yc(e,t){return new Zc(e,t)}function Xc(e){return e.comparer}function Kc(e){return e.tree}function Qc(e){return Pc(Kc(e))}function el(e,t){return jc(Xc(e),t,Kc(e))}function tl(e,t){return Yc(t,Jc(t,e))}function nl(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 rl(e,t){const n=2===t.tag?nl(t.fields[0],t.fields[1],!0):1===t.tag?nl(t.fields[0],t.fields[1],!1)+"\nReason: "+t.fields[2]:3===t.tag?nl(t.fields[0],t.fields[1],!0):4===t.tag?nl(t.fields[0],t.fields[1],!0)+"\nNode `"+t.fields[2]+"` is unkown.":5===t.tag?"Expecting "+t.fields[0]+".\n"+JSON.stringify(t.fields[1],null,4):7===t.tag?"The following errors were found:\n\n"+Wt("\n\n",t.fields[0]):6===t.tag?"The following `failure` occurred with the decoder: "+t.fields[0]:nl(t.fields[0],t.fields[1],!1);return 7===t.tag?n:"Error at: `"+e+"`\n"+n}function ol(e,t,n){const r=t(e,n);if(1===r.tag){const e=r.fields[0];return new Ln(1,rl(e[0],e[1]))}return new Ln(0,r.fields[0])}function il(e,t){try{return ol("$",e,JSON.parse(t))}catch(e){if(e instanceof SyntaxError)return new Ln(1,"Given an invalid JSON: "+e.message);throw e}}const sl=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 Ln(0,(e+128&255)-128):new Ln(1,[n,new pc(1,"a sbyte",e,"Value was either too large or too small for a sbyte")]):new Ln(1,[n,new pc(1,"a sbyte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[fe(r,511,!1,8,new j(()=>t,e=>{t=0|e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[n,new pc(0,"a sbyte",r)])}return new Ln(1,[n,new pc(0,"a sbyte",r)])},ul=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 Ln(0,255&e):new Ln(1,[n,new pc(1,"a byte",e,"Value was either too large or too small for a byte")]):new Ln(1,[n,new pc(1,"a byte",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[fe(r,511,!0,8,new j(()=>t,e=>{t=e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[n,new pc(0,"a byte",r)])}return new Ln(1,[n,new pc(0,"a byte",r)])},cl=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 Ln(0,(e+32768&65535)-32768):new Ln(1,[r,new pc(1,n,e,"Value was either too large or too small for "+n)]):new Ln(1,[r,new pc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fe(o,511,!1,16,new j(()=>t,e=>{t=0|e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[r,new pc(0,n,o)])}return new Ln(1,[r,new pc(0,n,o)])},ll=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 Ln(0,65535&e):new Ln(1,[r,new pc(1,n,e,"Value was either too large or too small for "+n)]):new Ln(1,[r,new pc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fe(o,511,!0,16,new j(()=>t,e=>{t=e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[r,new pc(0,n,o)])}return new Ln(1,[r,new pc(0,n,o)])},al=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 Ln(0,~~e):new Ln(1,[n,new pc(1,"an int",e,"Value was either too large or too small for an int")]):new Ln(1,[n,new pc(1,"an int",e,"Value is not an integral value")])}if("string"==typeof r){let e,t=0;return e=[fe(r,511,!1,32,new j(()=>t,e=>{t=0|e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[n,new pc(0,"an int",r)])}return new Ln(1,[n,new pc(0,"an int",r)])},fl=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 Ln(0,e>>>0):new Ln(1,[r,new pc(1,n,e,"Value was either too large or too small for "+n)]):new Ln(1,[r,new pc(1,n,e,"Value is not an integral value")])}if("string"==typeof o){let e,t=0;return e=[fe(o,511,!0,32,new j(()=>t,e=>{t=e})),t],e[0]?new Ln(0,e[1]):new Ln(1,[r,new pc(0,n,o)])}return new Ln(1,[r,new pc(0,n,o)])};function dl(e,t){if("string"==typeof t){let r,o=Ot(-621355968e5,0);return r=[Nt(t,new j(()=>o,e=>{o=e})),o],r[0]?new Ln(0,1===(n=r[1]).kind?n:Ot(n.getTime(),1)):new Ln(1,[e,new pc(0,"a datetime",t)])}return new Ln(1,[e,new pc(0,"a datetime",t)]);var n}function hl(e,t){if("string"==typeof t){let n,r=vc(-621355968e5,0);return n=[Cc(t,new j(()=>r,e=>{r=e})),r],n[0]?new Ln(0,n[1]):new Ln(1,[e,new pc(0,"a datetimeoffset",t)])}return new Ln(1,[e,new pc(0,"a datetime",t)])}function pl(e,t,n,r){let o;const i=n+".["+d(e)+"]";if(Array.isArray(r)){const n=r;return e<n.length?t(i,n[e]):new Ln(1,[i,new pc(5,"a longer array. Need index `"+d(e)+"` but there are only `"+(o=n.length,d(o)+"` entries"),r)])}return new Ln(1,[i,new pc(0,"an array",r)])}function _l(e,t,n){if(Array.isArray(n)){let r=-1;return Bn(e=>Tn(e),un((n,o)=>{if(r=r+1|0,0===n.tag){const i=e(t+".["+d(r)+"]",o);return 0===i.tag?new Ln(0,vn(i.fields[0],n.fields[0])):new Ln(1,i.fields[0])}return n},new Ln(0,yn()),n))}return new Ln(1,[t,new pc(0,"a list",n)])}function gl(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return un((n,o)=>{if(r=r+1|0,0===n.tag){const i=n.fields[0],s=e(t+".["+d(r)+"]",o);return 0===s.tag?(i[r]=s.fields[0],new Ln(0,i)):new Ln(1,s.fields[0])}return n},new Ln(0,rn(new Array(o.length),0,o.length,null)),o)}return new Ln(1,[t,new pc(0,"an array",n)])}function ml(e,t,n){return new Ln(0,e)}function wl(e,t,n,r){const o=t(n,r);return 0===o.tag?e(o.fields[0],n,r):new Ln(1,o.fields[0])}function yl(e,t,n,r){const o=t(n,r);return 1===o.tag?new Ln(1,o.fields[0]):new Ln(0,e(o.fields[0]))}function vl(e,t){let n;const r=e;return n=e=>t=>pl(0,r,e,t),e=>r=>wl(T(3,e=>{let n;const r=t;return n=e=>t=>pl(1,r,e,t),t=>r=>wl((t,n,r)=>ml([e,t]),T(2,n),t,r)}),T(2,n),e,r)}function bl(e){return Hs(e)}function Cl(e,t,n,r){let o,i;return t.length!==r.length?new Ln(1,[n,new pc(6,(o=0|r.length,i=0|t.length,Lt(Ht("Expected %i %s but got %i"))(i)(e)(o)))]):an(T(3,O(e=>t=>r=>0===r.tag?Bn(e=>vn(e,r.fields[0]),t(n,e)):r,[0,[0,2],0])),r,t,new Ln(0,yn()))}function El(e,t,n,r,o,i){const s=(u=e=>X(e)===r,oe(n).find(u));var u;if(null!=s){const n=s;return 0===i.length?new Ln(0,ue(n,[])):Bn(e=>ue(n,xn(e)),Cl("union fields",on(n=>xl(e,t,!1,n[1]),function(e){return null==e.fields?[]:e.fields}(n)),o,i))}return new Ln(1,[o,new pc(6,"Cannot find case "+r+" in "+K(n))])}function Sl(e,t,n,r){const o=new j(null),i=$s(K(r),o,e);let s;if(function(e){return e instanceof G?null!=e.fields:e instanceof U}(r)){const e=on(e=>[yc(t,X(e)),xl(i,t,!1,e[1])],ie(r));s=t=>n=>Bn(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 Ln(1,[t,new pc(0,"an object",n)]):ln(T(2,e=>{const r=e[0];return o=>0===o.tag?Bn(e=>vn(e,o.fields[0]),e[1](t+"."+r)(n[r])):o}),e,new Ln(0,yn()))}(e,t,n))}else if(function(e){return e instanceof G?null!=e.cases:e instanceof N}(r))s=e=>n=>{if("string"==typeof n)return El(i,t,r,n,e,[]);if(Array.isArray(n)){const o=n;return El(i,t,r,o[0],e,o.slice(1,o.length))}return new Ln(1,[e,new pc(0,"a string or array",n)])};else{if(!n){let e;const t=K(r);throw e=Lt(Ht("Cannot generate auto decoder for %s. Please pass an extra decoder."))(t),new Error(e)}s=e=>t=>new Ln(1,[e,new pc(2,"an extra coder for "+K(r),t)])}return o.contents=s,s}function xl(e,t,n,r){let o;const i=K(r),s=Vs(i,e);if(null==s){if(Q(r)){const n=xl(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=>gl(T(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=sl(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,e.toString())):new Ln(1,[o,new pc(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=ul(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,e.toString())):new Ln(1,[o,new pc(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=cl(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,(u=(u=e)<0&&null!=c&&10!==c?65535+u+1:u).toString(c))):new Ln(1,[o,new pc(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=ll(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,e.toString())):new Ln(1,[o,new pc(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=al(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,d(e))):new Ln(1,[o,new pc(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=fl(o)(i);if(1===s.tag)return new Ln(1,s.fields[0]);{const e=s.fields[0];return ui(e,te(n),{Equals:(e,t)=>e===t,GetHashCode:e=>_(e)})?new Ln(0,re(n,e.toString())):new Ln(1,[o,new pc(1,K(n),i,"Unkown value provided for the enum")])}};{const e=K(r),t=Gt(e=>{throw new Error(e)},Ht("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=on(n=>xl(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)?Bn(e=>xn(e),Cl("tuple elements",n,e,t)):new Ln(1,[e,new pc(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=xl(e,t,!0,L(r)[0]);return e=>t=>{return r=T(2,n),o=e,null==(i=t)?new Ln(0,void 0):Bn(e=>Yt(e),r(o,i));var r,o,i}}if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===i){const n=xl(e,t,!1,L(r)[0]);return e=>t=>_l(T(2,n),e,t)}if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===i){const n=xl(e,t,!1,L(r)[0]),i=xl(e,t,!1,L(r)[1]);let s;const u=An([e=>t=>function(e,t,n,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new Ln(1,[n,new pc(0,"an object",r)]):ci((o,i)=>{if(0===o.tag){const s=e(n,i);if(0===s.tag){const e=t(n+"."+i,r[i]);return 0===e.tag?new Ln(0,vn([s.fields[0],e.fields[0]],o.fields[0])):new Ln(1,e.fields[0])}return new Ln(1,s.fields[0])}return o},new Ln(0,yn()),Object.keys(r))}(T(2,n),T(2,i),e,t),(o=vl(T(2,n),T(2,i)),e=>t=>_l(T(2,o),e,t))]);return s=e=>t=>{return n=e,r=t,((e,t)=>{e:for(;;){const o=e,i=t;if(Cn(o))return new Ln(1,[n,new pc(7,i)]);{const s=ol(n,T(2,En(o)),r);if(1===s.tag){e=Sn(o),t=Dn(i,bn(s.fields[0]));continue e}return new Ln(0,s.fields[0])}}})(u,yn());var n,r},e=>t=>yl(e=>bl(e),T(2,s),e,t)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===i){const n=xl(e,t,!1,L(r)[0]);return e=>t=>{const r=gl(T(2,n),e,t);return 0===r.tag?new Ln(0,tl(r.fields[0],{Compare:(e,t)=>S(e,t)})):new Ln(1,r.fields[0])}}return Sl(e,t,n,r)}}return"System.Boolean"===i?e=>t=>{return n=e,"boolean"==typeof(r=t)?new Ln(0,r):new Ln(1,[n,new pc(0,"a boolean",r)]);var n,r}:"Microsoft.FSharp.Core.Unit"===i?e=>t=>{return n=e,null==(r=t)?new Ln(0,void 0):new Ln(1,[n,new pc(0,"null",r)]);var n,r}:"System.String"===i?e=>t=>{return n=e,"string"==typeof(r=t)?new Ln(0,r):new Ln(1,[n,new pc(0,"a string",r)]);var n,r}:"System.SByte"===i?sl:"System.Byte"===i?ul:"System.Int16"===i?cl:"System.UInt16"===i?ll:"System.Int32"===i?al:"System.UInt32"===i?fl:"System.Double"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Ln(0,r):new Ln(1,[n,new pc(0,"a float",r)]);var n,r}:"System.Single"===i?e=>t=>{return n=e,"number"==typeof(r=t)?new Ln(0,r):new Ln(1,[n,new pc(0,"a float32",r)]);var n,r}:"System.DateTime"===i?e=>t=>dl(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;return n=[xc(t,new j(()=>r,e=>{r=e})),r],n[0]?new Ln(0,n[1]):new Ln(1,[e,new pc(0,"a timespan",t)])}return new Ln(1,[e,new pc(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";return n=[Fi(t,new j(()=>r,e=>{r=e})),r],n[0]?new Ln(0,n[1]):new Ln(1,[e,new pc(0,"a guid",t)])}return new Ln(1,[e,new pc(0,"a guid",t)])}(e,t):"System.Object"===i?e=>e=>new Ln(0,e):Sl(e,t,n,r)}{const e=s;return t=>n=>e.contents(t)(n)}}function kl(e){return null!=e?Ws((e,t)=>new j(t[1]),e.Coders):qs()}function Tl(e,t,n){const r=Qt(e,new _c(0)),o=Xt(n).ResolveType();return xl(kl(t),r,!1,o)}function Il(e,t,n,r){return il(T(2,Tl(t,n,r)),e)}function Ol(e,t){return Lt(function(e,t){let n=0,r=0,o="";Rt.lastIndex=0;let i=Rt.exec(e);for(;i;){const s=i.index+(i[1]||"").length;o+=e.substring(r,s).replace(/%%/g,"%");const[,,u,c,l,a]=i;o+=Bt(t[n++],u,c,l,a),r=Rt.lastIndex,Rt.lastIndex-=1,i=Rt.exec(e)}return o+=e.substring(r).replace(/%%/g,"%"),o}("%s%P()/fasttrack-middleware/admin/%P()",[e,t]))}function Al(e,t){return Gn.Delay(()=>{const n=(i=Lt(Ht("Bearer %s"))(e),r=new oc(0,"Authorization",i),new sc((o=t).url,o.method,Dn(o.headers,bn(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.content));var r,o,i;return Gn.Bind(Gn.Bind(hc(n),e=>Gn.Return(new Ln(0,e))),e=>{const t=e;if(1===t.tag)return Gn.Return(new Ln(1,t.fields[0]));{const e=t.fields[0];return 429===e.statusCode||e.statusCode>=500?Gn.Bind(hc(n),e=>Gn.Return(new Ln(0,e))):Gn.Return(new Ln(0,e))}})})}class Nl extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LoadAccounts"]}}class Dl extends U{constructor(e){super(),this.Data=e}}function Ml(){return[new Dl(new zs(0)),sr(new Nl(0,new zs(1)))]}function Pl(e){const t=e.apolloPartnerId,n=e.accessToken,r=e.backendUrl,o=nc(Ml,(e,t)=>function(e,t,n){const r=[n.Data,t];let o;switch(o=0===r[0].tag?1===r[1].fields[0].tag?0:3:1===r[0].tag?2===r[1].fields[0].tag?1:3===r[1].fields[0].tag?2:3:3,o){case 0:return[new Dl(new zs(1)),ur(e=>{cr(e)},e,void 0,e=>new Nl(0,new zs(2,e)),e=>new Nl(0,new zs(3,e)))];case 1:return[new Dl(new zs(2,r[1].fields[0].fields[0])),or()];case 2:return[new Dl(new zs(3,r[1].fields[0].fields[0])),or()];case 3:return[n,or()]}}(()=>function(e,t){return Gn.Delay(()=>Gn.Bind(Al(t,dc(new rc(0),fc(Ol(e,"apollo/accounts")))),e=>{const t=e;if(1===t.tag)return Gn.Return(new Ln(1,t.fields[0]));{const e=t.fields[0];return 200===e.statusCode?Gn.Return(Il(e.responseText,void 0,void 0,{ResolveType:()=>z(ds())})):Gn.Return(new Ln(1,"Unexpected response from backend"))}}))}(r,n),e,t),[])[0].Data;let i,s;switch(1===o.tag?i=0:2===o.tag?0===o.fields[0].tag?(i=2,s=o.fields[0].fields[0]):i=1:i=3===o.tag?1:0,i){case 0:return yr("div",{children:["Loading..."]});case 1:return yr("div",{children:["There was an error loading Apollo accounts."]});case 2:return function(e,t){return eu(An([Ks("ID"),Ks("Name"),Ks("Email"),Ks("FT API Version"),Ks("Payee Type"),Zs(yr("th",k(An([["className","relative px-6 py-3"],["scope","col"],["children",di.Children.toArray([yr("span",{className:"sr-only",children:"Edit"})])]]))))]),Mn(t=>{let n;return An([Qs(["text-gray-900","font-medium"],t.Id),Qs(["text-gray-500"],Qt(t.FastTrack.AccountName,"")),Qs(["text-gray-500"],Qt(t.FastTrack.Email,"")),Qs(["text-gray-500"],t.FastTrack.ApiVersion),Qs(["text-gray-500"],Qt(t.FastTrack.PayeeType,"")),(n=[Ji(An(["account-registry","partners",e,"accounts",t.Id]),1),"Details"],r=n[0],o=n[1],Xs(yr("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-right font-medium",children:di.Children.toArray([yr("a",{className:"text-indigo-600 hover:text-indigo-900",children:o,href:r})])})))]);var r,o},t))}(t,s)}}class Fl extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["LoadAccounts"]}}class Rl extends U{constructor(e){super(),this.Data=e}}function Ul(){return[new Rl(new zs(0)),sr(new Fl(0,new zs(1)))]}function jl(e){return e?"On":"Off"}function Hl(e){const t=e.accessToken,n=e.backendUrl,r=nc(Ul,(e,r)=>function(e,t,n){const r=[n.Data,t];let o;switch(o=0===r[0].tag?1===r[1].fields[0].tag?0:3:1===r[0].tag?2===r[1].fields[0].tag?1:3===r[1].fields[0].tag?2:3:3,o){case 0:return[new Rl(new zs(1)),ur(e=>{cr(e)},e,void 0,e=>new Fl(0,new zs(2,e)),e=>new Fl(0,new zs(3,e)))];case 1:return[new Rl(new zs(2,r[1].fields[0].fields[0])),or()];case 2:return[new Rl(new zs(3,r[1].fields[0].fields[0])),or()];case 3:return[n,or()]}}(()=>function(e,t){return Gn.Delay(()=>Gn.Bind(Al(t,dc(new rc(0),fc(Ol(e,"flare/accounts")))),e=>{const t=e;if(1===t.tag)return Gn.Return(new Ln(1,t.fields[0]));{const e=t.fields[0];return 200===e.statusCode?Gn.Return(Il(e.responseText,void 0,void 0,{ResolveType:()=>z(ls())})):Gn.Return(new Ln(1,"Unexpected response from backend"))}}))}(n,t),e,r),[])[0].Data;let o,i;switch(1===r.tag?o=0:2===r.tag?0===r.fields[0].tag?(o=2,i=r.fields[0].fields[0]):o=1:o=3===r.tag?1:0,o){case 0:return yr("div",{children:["Loading..."]});case 1:return yr("div",{children:["There was an error loading Flare accounts."]});case 2:return function(e){return eu(An([Ks("ID"),Ks("Name"),Ks("Email"),Ks("Last Summary Email Checked"),Ks("FT API Version"),Ks("Payee Integration"),Ks("Payee Type"),Ks("Payee Update"),Ks("Use Division Lookup"),Ks("Flare Rep Name"),Ks("Flare Webhook Subscription ID")]),Mn(e=>An([Qs(["text-gray-900","font-medium"],e.Id),Qs(["text-gray-500"],Qt(e.Flare.AccountName,"")),Qs(["text-gray-500"],Qt(e.FastTrack.Email,"")),Qs(["text-gray-500"],Qt(e.LastSummaryEmailChecked,"")),Qs(["text-gray-500"],e.FastTrack.ApiVersion),Qs(["text-gray-500"],jl(e.FastTrack.PayeeIntegrationFlag)),Qs(["text-gray-500"],Qt(e.FastTrack.PayeeType,"")),Qs(["text-gray-500"],jl(e.FastTrack.PayeeUpdateFlag)),Qs(["text-gray-500"],jl(e.Flare.UseDivisionLookup)),Qs(["text-gray-500"],e.Flare.RepName),Qs(["text-gray-500"],Qt(e.Flare.WebhookSubscriptionId,""))]),e))}(i)}}function Gl(){return(Gl=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 Ll(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 $r(t,n)}function Bl(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=yr(Ll,Gl({},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[$l(s[i].name)]=s[i].value);for(i=u.length;i--;){var c=e(u[i],null),l=u[i].slot;l?o[l]=yr(ql,{name:l},c):r[i]=c}var a=n?yr(ql,null,r):r;return yr(n||t.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Br:Lr)(this._vdom,this._root)}function $l(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Vl(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[$l(e)]=n,this._vdom=$r(this._vdom,r),Lr(this._vdom,this._root)}}function Wl(){Lr(this._vdom=null,this._root)}function ql(e,t){var n=this;return yr("slot",Gl({},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 zl extends N{constructor(e,...t){super(),this.tag=0|e,this.fields=t}cases(){return["PageChanged"]}}function Jl(){return W("Middleware.FastTrack.AdminUI.App.Msg",[],zl,()=>[[["Item",ts()]]])}class Zl extends U{constructor(e){super(),this.CurrentPage=e}}function Yl(){return V("Middleware.FastTrack.AdminUI.App.State",[],Zl,()=>[["CurrentPage",ts()]])}function Xl(){const e=2===ns(Yi(window.location.hash,1)).tag?function(e){switch(e.tag){case 0:{const e=["fasttrack-middleware","flare-accounts"];return ir(t=>{Zi(An(e),1,1)})}case 1:{const e=["fasttrack-middleware","apollo-accounts"];return ir(t=>{Zi(An(e),1,1)})}default:{const e=["fasttrack-middleware","flare-accounts"];return ir(t=>{Zi(An(e),1,1)})}}}(new es(0)):or();return[new Zl(ns(Yi(window.location.hash,1))),e]}function Kl(e,t){return[new Zl(e.fields[0]),or()]}function Ql(e){return t=1===e.tag?An([is("Flare Accounts",Ji(rs(new es(0)),1)),is("Apollo Accounts",void 0)]):2===e.tag?yn():An([is("Flare Accounts",void 0),is("Apollo Accounts",Ji(rs(new es(1)),1))]),yr("div",{className:"border-b border-gray-200",children:di.Children.toArray([yr("nav",{className:"-mb-px flex space-x-8","aria-label":"Tabs",children:di.Children.toArray(Array.from(ai(e=>e.fields[0],t)))})])});var t}function ea(e,t){switch(t.tag){case 1:return yr(Pl,{backendUrl:e.backendUrl,accessToken:e.accessToken,apolloPartnerId:e.apolloPartnerId});case 2:return yr("h1",{children:["Not Found"]});default:return yr(Hl,{backendUrl:e.backendUrl,accessToken:e.accessToken})}}function ta(e){const t=nc(Xl,(e,t)=>Kl(e),[]),n=t[0];return Xi({onUrlChanged:e=>{t[1](new zl(0,ns(e)))},application:yr(br,{},Ql(n.CurrentPage),ea(e,n.CurrentPage))})}(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=Bl,o.prototype.attributeChangedCallback=Vl,o.prototype.disconnectedCallback=Wl,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=>yr(ta,e),"superhero-fasttrack-middleware")}]);
|