@flarehr/superhero-super-selection 3.38.55619 → 3.41.56657
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.
- package/LICENSE.md +1 -1
- package/dist/superhero-super-selection.js +1 -1
- package/package.json +1 -1
package/LICENSE.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
Flare Pty Ltd © 2015-2022
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var t,e,n,r,o,u,i,_={},l=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function s(t,e){for(var n in e)t[n]=e[n];return t}function f(t){var e=t.parentNode;e&&e.removeChild(t)}function a(e,n,r){var o,u,i,_={};for(i in n)"key"==i?o=n[i]:"ref"==i?u=n[i]:_[i]=n[i];if(arguments.length>2&&(_.children=arguments.length>3?t.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===_[i]&&(_[i]=e.defaultProps[i]);return p(e,_,o,u,null)}function p(t,r,o,u,i){var _={type:t,props:r,key:o,ref:u,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++n:i};return null==i&&null!=e.vnode&&e.vnode(_),_}function h(t){return t.children}function d(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function m(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return m(t)}}function y(t){(!t.__d&&(t.__d=!0)&&r.push(t)&&!b.__r++||u!==e.debounceRendering)&&((u=e.debounceRendering)||o)(b)}function b(){for(var t;b.__r=r.length;)t=r.sort((function(t,e){return t.__v.__b-e.__v.__b})),r=[],t.some((function(t){var e,n,r,o,u,i;t.__d&&(u=(o=(e=t).__v).__e,(i=e.__P)&&(n=[],(r=s({},o)).__v=o.__v+1,w(i,o,r,e.__n,void 0!==i.ownerSVGElement,null!=o.__h?[u]:null,n,null==u?v(o):u,o.__h),A(n,o),o.__e!=u&&m(o)))}))}function g(t,e,n,r,o,u,i,c,s,f){var a,d,m,y,b,g,k,S=r&&r.__k||l,O=S.length;for(n.__k=[],a=0;a<e.length;a++)if(null!=(y=n.__k[a]=null==(y=e[a])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?p(null,y,null,null,y):Array.isArray(y)?p(h,{children:y},null,null,null):y.__b>0?p(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(m=S[a])||m&&y.key==m.key&&y.type===m.type)S[a]=void 0;else for(d=0;d<O;d++){if((m=S[d])&&y.key==m.key&&y.type===m.type){S[d]=void 0;break}m=null}w(t,y,m=m||_,o,u,i,c,s,f),b=y.__e,(d=y.ref)&&m.ref!=d&&(k||(k=[]),m.ref&&k.push(m.ref,null,y),k.push(d,y.__c||b,y)),null!=b?(null==g&&(g=b),"function"==typeof y.type&&y.__k===m.__k?y.__d=s=C(y,s,t):s=E(t,y,m,S,b,s),"function"==typeof n.type&&(n.__d=s)):s&&m.__e==s&&s.parentNode!=t&&(s=v(m))}for(n.__e=g,a=O;a--;)null!=S[a]&&("function"==typeof n.type&&null!=S[a].__e&&S[a].__e==n.__d&&(n.__d=v(r,a+1)),T(S[a],S[a]));if(k)for(a=0;a<k.length;a++)N(k[a],k[++a],k[++a])}function C(t,e,n){for(var r,o=t.__k,u=0;o&&u<o.length;u++)(r=o[u])&&(r.__=t,e="function"==typeof r.type?C(r,e,n):E(n,r,r,o,r.__e,e));return e}function k(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){k(t,e)})):e.push(t)),e}function E(t,e,n,r,o,u){var i,_,l;if(void 0!==e.__d)i=e.__d,e.__d=void 0;else if(null==n||o!=u||null==o.parentNode)t:if(null==u||u.parentNode!==t)t.appendChild(o),i=null;else{for(_=u,l=0;(_=_.nextSibling)&&l<r.length;l+=2)if(_==o)break t;t.insertBefore(o,u),i=u}return void 0!==i?i:o.nextSibling}function S(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function O(t,e,n,r,o){var u;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||S(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||S(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])u=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+u]=n,n?r||t.addEventListener(e,u?P:x,u):t.removeEventListener(e,u?P:x,u);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function x(t){this.l[t.type+!1](e.event?e.event(t):t)}function P(t){this.l[t.type+!0](e.event?e.event(t):t)}function w(t,n,r,o,u,i,_,l,c){var f,a,p,v,m,y,b,C,k,E,S,O=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(c=r.__h,l=n.__e=r.__e,n.__h=null,i=[l]),(f=e.__b)&&f(n);try{t:if("function"==typeof O){if(C=n.props,k=(f=O.contextType)&&o[f.__c],E=f?k?k.props.value:f.__:o,r.__c?b=(a=n.__c=r.__c).__=a.__E:("prototype"in O&&O.prototype.render?n.__c=a=new O(C,E):(n.__c=a=new d(C,E),a.constructor=O,a.render=H),k&&k.sub(a),a.props=C,a.state||(a.state={}),a.context=E,a.__n=o,p=a.__d=!0,a.__h=[]),null==a.__s&&(a.__s=a.state),null!=O.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=s({},a.__s)),s(a.__s,O.getDerivedStateFromProps(C,a.__s))),v=a.props,m=a.state,p)null==O.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(null==O.getDerivedStateFromProps&&C!==v&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(C,E),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(C,a.__s,E)||n.__v===r.__v){a.props=C,a.state=a.__s,n.__v!==r.__v&&(a.__d=!1),a.__v=n,n.__e=r.__e,n.__k=r.__k,n.__k.forEach((function(t){t&&(t.__=n)})),a.__h.length&&_.push(a);break t}null!=a.componentWillUpdate&&a.componentWillUpdate(C,a.__s,E),null!=a.componentDidUpdate&&a.__h.push((function(){a.componentDidUpdate(v,m,y)}))}a.context=E,a.props=C,a.state=a.__s,(f=e.__r)&&f(n),a.__d=!1,a.__v=n,a.__P=t,f=a.render(a.props,a.state,a.context),a.state=a.__s,null!=a.getChildContext&&(o=s(s({},o),a.getChildContext())),p||null==a.getSnapshotBeforeUpdate||(y=a.getSnapshotBeforeUpdate(v,m)),S=null!=f&&f.type===h&&null==f.key?f.props.children:f,g(t,Array.isArray(S)?S:[S],n,r,o,u,i,_,l,c),a.base=n.__e,n.__h=null,a.__h.length&&_.push(a),b&&(a.__E=a.__=null),a.__e=!1}else null==i&&n.__v===r.__v?(n.__k=r.__k,n.__e=r.__e):n.__e=j(r.__e,n,r,o,u,i,_,c);(f=e.diffed)&&f(n)}catch(t){n.__v=null,(c||null!=i)&&(n.__e=l,n.__h=!!c,i[i.indexOf(l)]=null),e.__e(t,n,r)}}function A(t,n){e.__c&&e.__c(n,t),t.some((function(n){try{t=n.__h,n.__h=[],t.some((function(t){t.call(n)}))}catch(t){e.__e(t,n.__v)}}))}function j(e,n,r,o,u,i,l,c){var s,a,p,h=r.props,d=n.props,m=n.type,y=0;if("svg"===m&&(u=!0),null!=i)for(;y<i.length;y++)if((s=i[y])&&"setAttribute"in s==!!m&&(m?s.localName===m:3===s.nodeType)){e=s,i[y]=null;break}if(null==e){if(null===m)return document.createTextNode(d);e=u?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,d.is&&d),i=null,c=!1}if(null===m)h===d||c&&e.data===d||(e.data=d);else{if(i=i&&t.call(e.childNodes),a=(h=r.props||_).dangerouslySetInnerHTML,p=d.dangerouslySetInnerHTML,!c){if(null!=i)for(h={},y=0;y<e.attributes.length;y++)h[e.attributes[y].name]=e.attributes[y].value;(p||a)&&(p&&(a&&p.__html==a.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var u;for(u in n)"children"===u||"key"===u||u in e||O(t,u,null,n[u],r);for(u in e)o&&"function"!=typeof e[u]||"children"===u||"key"===u||"value"===u||"checked"===u||n[u]===e[u]||O(t,u,e[u],n[u],r)}(e,d,h,u,c),p)n.__k=[];else if(y=n.props.children,g(e,Array.isArray(y)?y:[y],n,r,o,u&&"foreignObject"!==m,i,l,i?i[0]:r.__k&&v(r,0),c),null!=i)for(y=i.length;y--;)null!=i[y]&&f(i[y]);c||("value"in d&&void 0!==(y=d.value)&&(y!==e.value||"progress"===m&&!y||"option"===m&&y!==h.value)&&O(e,"value",y,h.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==e.checked&&O(e,"checked",y,h.checked,!1))}return e}function N(t,n,r){try{"function"==typeof t?t(n):t.current=n}catch(t){e.__e(t,r)}}function T(t,n,r){var o,u;if(e.unmount&&e.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||N(o,null,n)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){e.__e(t,n)}o.base=o.__P=null}if(o=t.__k)for(u=0;u<o.length;u++)o[u]&&T(o[u],n,"function"!=typeof t.type);r||null==t.__e||f(t.__e),t.__e=t.__d=void 0}function H(t,e,n){return this.constructor(t,n)}function U(n,r,o){var u,i,l;e.__&&e.__(n,r),i=(u="function"==typeof o)?null:o&&o.__k||r.__k,l=[],w(r,n=(!u&&o||r).__k=a(h,null,[n]),i||_,_,void 0!==r.ownerSVGElement,!u&&o?[o]:i?null:r.firstChild?t.call(r.childNodes):null,l,!u&&o?o:i?i.__e:r.firstChild,u),A(l,n)}function D(t,e){U(t,e,D)}function R(e,n,r){var o,u,i,_=s({},e.props);for(i in n)"key"==i?o=n[i]:"ref"==i?u=n[i]:_[i]=n[i];return arguments.length>2&&(_.children=arguments.length>3?t.call(arguments,2):r),p(e.type,_,o||e.key,u||e.ref,null)}t=l.slice,e={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},n=0,d.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=s({},this.state),"function"==typeof t&&(t=t(s({},n),this.props)),t&&s(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),y(this))},d.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),y(this))},d.prototype.render=h,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,b.__r=0,i=0;var M,L,I,W=0,F=[],G=e.__b,V=e.__r,$=e.diffed,B=e.__c,q=e.unmount;function z(t,n){e.__h&&e.__h(L,t,W||n),W=0;var r=L.__H||(L.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function J(t,e,n){var r=z(M++,2);return r.t=t,r.__c||(r.__=[n?n(e):nt(void 0,e),function(t){var e=r.t(r.__[0],t);r.__[0]!==e&&(r.__=[e,r.__[1]],r.__c.setState({}))}],r.__c=L),r.__}function Z(t,n){var r=z(M++,4);!e.__s&&et(r.__H,n)&&(r.__=t,r.__H=n,L.__h.push(r))}function Y(t,e){var n=z(M++,7);return et(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function K(){for(var t;t=F.shift();)if(t.__P)try{t.__H.__h.forEach(X),t.__H.__h.forEach(tt),t.__H.__h=[]}catch(n){t.__H.__h=[],e.__e(n,t.__v)}}e.__b=function(t){L=null,G&&G(t)},e.__r=function(t){V&&V(t),M=0;var e=(L=t.__c).__H;e&&(e.__h.forEach(X),e.__h.forEach(tt),e.__h=[])},e.diffed=function(t){$&&$(t);var n=t.__c;n&&n.__H&&n.__H.__h.length&&(1!==F.push(n)&&I===e.requestAnimationFrame||((I=e.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),Q&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);Q&&(e=requestAnimationFrame(n))})(K)),L=null},e.__c=function(t,n){n.some((function(t){try{t.__h.forEach(X),t.__h=t.__h.filter((function(t){return!t.__||tt(t)}))}catch(r){n.some((function(t){t.__h&&(t.__h=[])})),n=[],e.__e(r,t.__v)}})),B&&B(t,n)},e.unmount=function(t){q&&q(t);var n,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{X(t)}catch(t){n=t}})),n&&e.__e(n,r.__v))};var Q="function"==typeof requestAnimationFrame;function X(t){var e=L,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),L=e}function tt(t){var e=L;t.__c=t.__(),L=e}function et(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function nt(t,e){return"function"==typeof e?e(t):e}function rt(t,e){for(var n in e)t[n]=e[n];return t}function ot(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function ut(t){this.props=t}(ut.prototype=new d).isPureReactComponent=!0,ut.prototype.shouldComponentUpdate=function(t,e){return ot(this.props,t)||ot(this.state,e)};var it=e.__b;e.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),it&&it(t)};var _t="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,lt=function(t,e){return null==t?null:k(k(t).map(e))},ct={map:lt,forEach:lt,count:function(t){return t?k(t).length:0},only:function(t){var e=k(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:k},st=e.__e;e.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);st(t,e,n)};var ft=e.unmount;function at(){this.__u=0,this.t=null,this.__b=null}function pt(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function ht(){this.u=null,this.o=null}e.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),ft&&ft(t)},(at.prototype=new d).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=pt(r.__v),u=!1,i=function(){u||(u=!0,n.__R=null,o?o(_):_())};n.__R=i;var _=function(){if(!--r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},l=!0===e.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(i,i)},at.prototype.componentWillUnmount=function(){this.t=[]},at.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=rt({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&a(h,null,t.fallback);return o&&(o.__h=null),[a(h,null,e.__e?null:t.children),o]};var dt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function vt(t){return this.getChildContext=function(){return t.context},t.children}function mt(t){var e=this,n=t.i;e.componentWillUnmount=function(){U(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),U(a(vt,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(ht.prototype=new d).__e=function(t){var e=this,n=pt(e.__v),r=e.o.get(t);return r[0]++,function(o){var u=function(){e.props.revealOrder?(r.push(o),dt(e,t,r)):o()};n?n(u):u()}},ht.prototype.render=function(t){this.u=null,this.o=new Map;var e=k(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},ht.prototype.componentDidUpdate=ht.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){dt(t,n,e)}))};var yt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,bt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,gt="undefined"!=typeof document,Ct=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};d.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(d.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var kt=e.event;function Et(){}function St(){return this.cancelBubble}function Ot(){return this.defaultPrevented}e.event=function(t){return kt&&(t=kt(t)),t.persist=Et,t.isPropagationStopped=St,t.isDefaultPrevented=Ot,t.nativeEvent=t};var xt,Pt={configurable:!0,get:function(){return this.class}},wt=e.vnode;e.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var u in r={},n){var i=n[u];gt&&"children"===u&&"noscript"===e||"value"===u&&"defaultValue"in n&&null==i||("defaultValue"===u&&"value"in n&&null==n.value?u="value":"download"===u&&!0===i?i="":/ondoubleclick/i.test(u)?u="ondblclick":/^onchange(textarea|input)/i.test(u+e)&&!Ct(n.type)?u="oninput":/^onfocus$/i.test(u)?u="onfocusin":/^onblur$/i.test(u)?u="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(u)?u=u.toLowerCase():o&&bt.test(u)?u=u.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===i&&(i=void 0),r[u]=i)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=k(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=k(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r,n.class!=n.className&&(Pt.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",Pt))}t.$$typeof=yt,wt&&wt(t)};var At=e.__r;e.__r=function(t){At&&At(t),xt=t.__c};var jt={ReactCurrentDispatcher:{current:{readContext:function(t){return xt.__n[t.__c].props.value}}}};function Nt(t){return!!t&&t.$$typeof===yt}const Tt={useState:function(t){return W=1,J(nt,t)},useReducer:J,useEffect:function(t,n){var r=z(M++,3);!e.__s&&et(r.__H,n)&&(r.__=t,r.__H=n,L.__H.__h.push(r))},useLayoutEffect:Z,useRef:function(t){return W=5,Y((function(){return{current:t}}),[])},useImperativeHandle:function(t,e,n){W=6,Z((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))},useMemo:Y,useCallback:function(t,e){return W=8,Y((function(){return t}),e)},useContext:function(t){var e=L.context[t.__c],n=z(M++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(L)),e.props.value):t.__},useDebugValue:function(t,n){e.useDebugValue&&e.useDebugValue(n?n(t):t)},version:"17.0.2",Children:ct,render:function(t,e,n){return null==e.__k&&(e.textContent=""),U(t,e),"function"==typeof n&&n(),t?t.__c:null},hydrate:function(t,e,n){return D(t,e),"function"==typeof n&&n(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(U(null,t),!0)},createPortal:function(t,e){return a(mt,{__v:t,i:e})},createElement:a,createContext:function(t,e){var n={__c:e="__cC"+i++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(y)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n},createFactory:function(t){return a.bind(null,t)},cloneElement:function(t){return Nt(t)?R.apply(null,arguments):t},createRef:function(){return{current:null}},Fragment:h,isValidElement:Nt,findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:d,PureComponent:ut,memo:function(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:ot(this.props,t)}function r(e){return this.shouldComponentUpdate=n,a(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r},forwardRef:function(t){function e(e,n){var r=rt({},e);return delete r.ref,t(r,(n=e.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return e.$$typeof=_t,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e},flushSync:function(t,e){return t(e)},unstable_batchedUpdates:function(t,e){return t(e)},StrictMode:h,Suspense:at,SuspenseList:ht,lazy:function(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return a(n,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:jt};function Ht(t){return Array.isArray(t)||ArrayBuffer.isView(t)}function Ut(t,e){return Object.getPrototypeOf(t).constructor===Object.getPrototypeOf(e).constructor}class Dt{constructor(t){this.iter=t}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Rt(t){const e=t;return"number"==typeof e.offset?e.offset:1===t.kind?0:-6e4*t.getTimezoneOffset()}class Mt{static id(t){return Mt.idMap.has(t)||Mt.idMap.set(t,++Mt.count),Mt.idMap.get(t)}}function Lt(t){return 2654435761*t|0}function It(t){return 0===t.length?0:t.reduce(((t,e)=>(t<<5)+t^e))}function Wt(t){if(null==t)return 0;switch(typeof t){case"boolean":return t?1:0;case"number":return Lt(t);case"string":return function(t){let e=0,n=5381;const r=t.length;for(;e<r;)n=33*n^t.charCodeAt(e++);return n}(t);default:if(function(t){return"function"==typeof t.GetHashCode}(t))return t.GetHashCode();if(Ht(t))return function(t){const e=t.length,n=new Array(e);for(let r=0;r<e;r++)n[r]=Wt(t[r]);return It(n)}(t);if(t instanceof Date)return function(t){return t.getTime()}(t);if(Object.getPrototypeOf(t).constructor===Object){const e=Object.values(t).map((t=>Wt(t)));return It(e)}return Lt(Mt.id(t))}}function Ft(t,e){return t===e||(null==t?null==e:null!=e&&"object"==typeof t&&(function(t){return"function"==typeof t.Equals}(t)?t.Equals(e):Ht(t)?Ht(e)&&function(t,e){return function(t,e,n){if(null==t)return null==e;if(null==e)return!1;if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}(t,e,Ft)}(t,e):t instanceof Date?e instanceof Date&&0===Gt(t,e):Object.getPrototypeOf(t).constructor===Object&&function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!Ft(t[n[o]],e[r[o]]))return!1;return!0}(t,e)))}function Gt(t,e){let n,r;return"offset"in t&&"offset"in e?(n=t.getTime(),r=e.getTime()):(n=t.getTime()+Rt(t),r=e.getTime()+Rt(e)),n===r?0:n<r?-1:1}function Vt(t,e){return t===e?0:null==t?null==e?0:-1:null==e?1:"object"!=typeof t?t<e?-1:1:function(t){return"function"==typeof t.CompareTo}(t)?t.CompareTo(e):Ht(t)?Ht(e)?function(t,e){return function(t,e,n){if(null==t)return null==e?0:1;if(null==e)return-1;if(t.length!==e.length)return t.length<e.length?-1:1;for(let r=0,o=0;r<t.length;r++)if(o=n(t[r],e[r]),0!==o)return o;return 0}(t,e,Vt)}(t,e):-1:t instanceof Date?e instanceof Date?Gt(t,e):-1:Object.getPrototypeOf(t).constructor===Object?function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,u=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(u=Vt(t[i],e[i]),0!==u)return u}return 0}(t,e):-1}function $t(t,e=0){if(null!=t&&"object"==typeof t){if("function"==typeof t.toString)return t.toString();if(Symbol.iterator in t)return function(t){let e=0,n="[";for(const r of t){if(0===e)n+=$t(r);else{if(100===e){n+="; ...";break}n+="; "+$t(r)}e++}return n+"]"}(t);{const n=Object.getPrototypeOf(t).constructor;return n===Object&&e<10?"{ "+Object.entries(t).map((([t,n])=>t+" = "+$t(n,e+1))).join("\n ")+" }":n.name}}return String(t)}function Bt(t){return"{ "+Object.entries(t).map((([t,e])=>t+" = "+$t(e))).join("\n ")+" }"}Mt.idMap=new WeakMap,Mt.count=0,Symbol("curried");class qt extends class{toJSON(){return function(t){const e={},n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}(this)}toString(){return Bt(this)}GetHashCode(){return function(t){const e=Object.values(t).map((t=>Wt(t)));return It(e)}(this)}Equals(t){return function(t,e){if(t===e)return!0;if(Ut(t,e)){const n=Object.keys(t);for(let r=0;r<n.length;r++)if(!Ft(t[n[r]],e[n[r]]))return!1;return!0}return!1}(this,t)}CompareTo(t){return function(t,e){if(t===e)return 0;if(Ut(t,e)){const n=Object.keys(t);for(let r=0;r<n.length;r++){const o=Vt(t[n[r]],e[n[r]]);if(0!==o)return o}return 0}return-1}(this,t)}}{constructor(t,e){super(),this.head=t,this.tail=e}toString(){return"["+(t=this,(Array.isArray(t)?t.join("; "):Array.from(t).join("; "))+"]");var t}Equals(t){return this===t||((t,e)=>{t:for(;;){const n=t,r=e,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const u=o[0],i=o[1];if(Ft(n.head,r.head)){t=u,e=i;continue t}return!1}return!1}return null==o[1]}})(this,t)}GetHashCode(){return 0|((t,e,n)=>{for(;;){const r=t,o=e,u=n,i=u.tail;if(null==i)return 0|o;{const _=i;if(r>18)return 0|o;t=r+1,e=(o<<1)+Wt(u.head)+631*r,n=_}}})(0,0,this)}toJSON(t){return Array.from(this)}CompareTo(t){return 0|((t,e)=>{t:for(;;){const n=t,r=e,o=[n.tail,r.tail];if(null!=o[0]){if(null!=o[1]){const u=o[0],i=o[1],_=0|Vt(n.head,r.head);if(0===_){t=u,e=i;continue t}return 0|_}return 1}return null!=o[1]?-1:0}})(this,t)}GetEnumerator(){return new zt(this)}[Symbol.iterator](){return function(t){return{[Symbol.iterator](){return this},next(){const e=t["System.Collections.IEnumerator.MoveNext"]();return{done:!e,value:e?t["System.Collections.IEnumerator.get_Current"]():void 0}}}}(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return function(t){return"function"==typeof t.GetEnumerator?t.GetEnumerator():new Dt(t[Symbol.iterator]())}(this)}}class zt{constructor(t){this.xs=t,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 t=this,e=t.it.tail;if(null!=e){const n=e;return t.current=t.it.head,t.it=n,!0}return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=null}Dispose(){}}const Jt=Tt;function Zt(){return(Zt=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function Yt(t){this.getChildContext=function(){return t.context};var e=t.children,n=function(t,e){if(null==t)return{};var n,r,o={},u=Object.keys(t);for(r=0;r<u.length;r++)e.indexOf(n=u[r])>=0||(o[n]=t[n]);return o}(t,["context","children"]);return R(e,n)}function Kt(){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=a(Yt,Zt({},this._props,{context:t.detail.context}),function t(e,n){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var r=[],o={},u=0,i=e.attributes,_=e.childNodes;for(u=i.length;u--;)"slot"!==i[u].name&&(o[i[u].name]=i[u].value,o[Qt(i[u].name)]=i[u].value);for(u=_.length;u--;){var l=t(_[u],null),c=_[u].slot;c?o[c]=a(ee,{name:c},l):r[u]=l}var s=n?a(ee,null,r):r;return a(n||e.nodeName.toLowerCase(),o,s)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?D:U)(this._vdom,this._root)}function Qt(t){return t.replace(/-(\w)/g,(function(t,e){return e?e.toUpperCase():""}))}function Xt(t,e,n){if(this._vdom){var r={};r[t]=n=null==n?void 0:n,r[Qt(t)]=n,this._vdom=R(this._vdom,r),U(this._vdom,this._root)}}function te(){U(this._vdom=null,this._root)}function ee(t,e){var n=this;return a("slot",Zt({},t,{ref:function(t){t?(n.ref=t,n._listener||(n._listener=function(t){t.stopPropagation(),t.detail.context=e},t.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function ne(t){const e=function(t){return function(t,e){return new qt(t,e)}(t,new qt(null,void 0))}(a("p",{children:["Hello, Superhero."]}));return a("div",{children:Jt.Children.toArray(Array.from(e))})}!function(t,e,n,r){function o(){var e=Reflect.construct(HTMLElement,[],o);return e._vdomComponent=t,e._root=e,e}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Kt,o.prototype.attributeChangedCallback=Xt,o.prototype.disconnectedCallback=te,n=n||t.observedAttributes||Object.keys(t.propTypes||{}),o.observedAttributes=n,n.forEach((function(t){Object.defineProperty(o.prototype,t,{get:function(){return this._vdom.props[t]},set:function(e){this._vdom?this.attributeChangedCallback(t,null,e):(this._props||(this._props={}),this._props[t]=e,this.connectedCallback());var n=typeof e;null!=e&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(t,e)}})})),customElements.define("superhero-super-selection",o)}((t=>a(ne,t)))})();
|
|
1
|
+
(()=>{"use strict";var e,n,t,r,o,i,u,s={},l=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function a(e,n){for(var t in n)e[t]=n[t];return e}function f(e){var n=e.parentNode;n&&n.removeChild(e)}function h(n,t,r){var o,i,u,s={};for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof n&&null!=n.defaultProps)for(u in n.defaultProps)void 0===s[u]&&(s[u]=n.defaultProps[u]);return d(n,s,o,i,null)}function d(e,r,o,i,u){var s={type:e,props:r,key:o,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++t:u};return null==u&&null!=n.vnode&&n.vnode(s),s}function _(e){return e.children}function p(e,n){this.props=e,this.context=n}function m(e,n){if(null==n)return e.__?m(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?m(e):null}function g(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 g(e)}}function w(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!y.__r++||i!==n.debounceRendering)&&((i=n.debounceRendering)||o)(y)}function y(){for(var e;y.__r=r.length;)e=r.sort((function(e,n){return e.__v.__b-n.__v.__b})),r=[],e.some((function(e){var n,t,r,o,i,u;e.__d&&(i=(o=(n=e).__v).__e,(u=n.__P)&&(t=[],(r=a({},o)).__v=o.__v+1,I(u,o,r,n.__n,void 0!==u.ownerSVGElement,null!=o.__h?[i]:null,t,null==i?m(o):i,o.__h),O(t,o),o.__e!=i&&g(o)))}))}function v(e,n,t,r,o,i,u,c,a,f){var h,p,g,w,y,v,b,E=r&&r.__k||l,x=E.length;for(t.__k=[],h=0;h<n.length;h++)if(null!=(w=t.__k[h]=null==(w=n[h])||"boolean"==typeof w?null:"string"==typeof w||"number"==typeof w||"bigint"==typeof w?d(null,w,null,null,w):Array.isArray(w)?d(_,{children:w},null,null,null):w.__b>0?d(w.type,w.props,w.key,null,w.__v):w)){if(w.__=t,w.__b=t.__b+1,null===(g=E[h])||g&&w.key==g.key&&w.type===g.type)E[h]=void 0;else for(p=0;p<x;p++){if((g=E[p])&&w.key==g.key&&w.type===g.type){E[p]=void 0;break}g=null}I(e,w,g=g||s,o,i,u,c,a,f),y=w.__e,(p=w.ref)&&g.ref!=p&&(b||(b=[]),g.ref&&b.push(g.ref,null,w),b.push(p,w.__c||y,w)),null!=y?(null==v&&(v=y),"function"==typeof w.type&&w.__k===g.__k?w.__d=a=C(w,a,e):a=S(e,w,g,E,y,a),"function"==typeof t.type&&(t.__d=a)):a&&g.__e==a&&a.parentNode!=e&&(a=m(g))}for(t.__e=v,h=x;h--;)null!=E[h]&&("function"==typeof t.type&&null!=E[h].__e&&E[h].__e==t.__d&&(t.__d=m(r,h+1)),A(E[h],E[h]));if(b)for(h=0;h<b.length;h++)N(b[h],b[++h],b[++h])}function C(e,n,t){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,n="function"==typeof r.type?C(r,n,t):S(t,r,r,o,r.__e,n));return n}function b(e,n){return n=n||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){b(e,n)})):n.push(e)),n}function S(e,n,t,r,o,i){var u,s,l;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,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==o)break e;e.insertBefore(o,i),u=i}return void 0!==u?u:o.nextSibling}function E(e,n,t){"-"===n[0]?e.setProperty(n,t):e[n]=null==t?"":"number"!=typeof t||c.test(n)?t:t+"px"}function x(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||E(e.style,n,"");if(t)for(n in t)r&&t[n]===r[n]||E(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?T:k,i):e.removeEventListener(n,i?T:k,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 k(e){this.l[e.type+!1](n.event?n.event(e):e)}function T(e){this.l[e.type+!0](n.event?n.event(e):e)}function I(e,t,r,o,i,u,s,l,c){var f,h,d,m,g,w,y,C,b,S,E,x=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(c=r.__h,l=t.__e=r.__e,t.__h=null,u=[l]),(f=n.__b)&&f(t);try{e:if("function"==typeof x){if(C=t.props,b=(f=x.contextType)&&o[f.__c],S=f?b?b.props.value:f.__:o,r.__c?y=(h=t.__c=r.__c).__=h.__E:("prototype"in x&&x.prototype.render?t.__c=h=new x(C,S):(t.__c=h=new p(C,S),h.constructor=x,h.render=D),b&&b.sub(h),h.props=C,h.state||(h.state={}),h.context=S,h.__n=o,d=h.__d=!0,h.__h=[]),null==h.__s&&(h.__s=h.state),null!=x.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=a({},h.__s)),a(h.__s,x.getDerivedStateFromProps(C,h.__s))),m=h.props,g=h.state,d)null==x.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==x.getDerivedStateFromProps&&C!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(C,S),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(C,h.__s,S)||t.__v===r.__v){h.props=C,h.state=h.__s,t.__v!==r.__v&&(h.__d=!1),h.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach((function(e){e&&(e.__=t)})),h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(C,h.__s,S),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(m,g,w)}))}h.context=S,h.props=C,h.state=h.__s,(f=n.__r)&&f(t),h.__d=!1,h.__v=t,h.__P=e,f=h.render(h.props,h.state,h.context),h.state=h.__s,null!=h.getChildContext&&(o=a(a({},o),h.getChildContext())),d||null==h.getSnapshotBeforeUpdate||(w=h.getSnapshotBeforeUpdate(m,g)),E=null!=f&&f.type===_&&null==f.key?f.props.children:f,v(e,Array.isArray(E)?E:[E],t,r,o,i,u,s,l,c),h.base=t.__e,t.__h=null,h.__h.length&&s.push(h),y&&(h.__E=h.__=null),h.__e=!1}else null==u&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=M(r.__e,t,r,o,i,u,s,c);(f=n.diffed)&&f(t)}catch(e){t.__v=null,(c||null!=u)&&(t.__e=l,t.__h=!!c,u[u.indexOf(l)]=null),n.__e(e,t,r)}}function O(e,t){n.__c&&n.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){n.__e(e,t.__v)}}))}function M(n,t,r,o,i,u,l,c){var a,h,d,_=r.props,p=t.props,g=t.type,w=0;if("svg"===g&&(i=!0),null!=u)for(;w<u.length;w++)if((a=u[w])&&"setAttribute"in a==!!g&&(g?a.localName===g:3===a.nodeType)){n=a,u[w]=null;break}if(null==n){if(null===g)return document.createTextNode(p);n=i?document.createElementNS("http://www.w3.org/2000/svg",g):document.createElement(g,p.is&&p),u=null,c=!1}if(null===g)_===p||c&&n.data===p||(n.data=p);else{if(u=u&&e.call(n.childNodes),h=(_=r.props||s).dangerouslySetInnerHTML,d=p.dangerouslySetInnerHTML,!c){if(null!=u)for(_={},w=0;w<n.attributes.length;w++)_[n.attributes[w].name]=n.attributes[w].value;(d||h)&&(d&&(h&&d.__html==h.__html||d.__html===n.innerHTML)||(n.innerHTML=d&&d.__html||""))}if(function(e,n,t,r,o){var i;for(i in t)"children"===i||"key"===i||i in n||x(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]||x(e,i,n[i],t[i],r)}(n,p,_,i,c),d)t.__k=[];else if(w=t.props.children,v(n,Array.isArray(w)?w:[w],t,r,o,i&&"foreignObject"!==g,u,l,u?u[0]:r.__k&&m(r,0),c),null!=u)for(w=u.length;w--;)null!=u[w]&&f(u[w]);c||("value"in p&&void 0!==(w=p.value)&&(w!==n.value||"progress"===g&&!w||"option"===g&&w!==_.value)&&x(n,"value",w,_.value,!1),"checked"in p&&void 0!==(w=p.checked)&&w!==n.checked&&x(n,"checked",w,_.checked,!1))}return n}function N(e,t,r){try{"function"==typeof e?e(t):e.current=t}catch(e){n.__e(e,r)}}function A(e,t,r){var o,i;if(n.unmount&&n.unmount(e),(o=e.ref)&&(o.current&&o.current!==e.__e||N(o,null,t)),null!=(o=e.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(e){n.__e(e,t)}o.base=o.__P=null}if(o=e.__k)for(i=0;i<o.length;i++)o[i]&&A(o[i],t,"function"!=typeof e.type);r||null==e.__e||f(e.__e),e.__e=e.__d=void 0}function D(e,n,t){return this.constructor(e,t)}function P(t,r,o){var i,u,l;n.__&&n.__(t,r),u=(i="function"==typeof o)?null:o&&o.__k||r.__k,l=[],I(r,t=(!i&&o||r).__k=h(_,null,[t]),u||s,s,void 0!==r.ownerSVGElement,!i&&o?[o]:u?null:r.firstChild?e.call(r.childNodes):null,l,!i&&o?o:u?u.__e:r.firstChild,i),O(l,t)}function F(e,n){P(e,n,F)}function R(n,t,r){var o,i,u,s=a({},n.props);for(u in t)"key"==u?o=t[u]:"ref"==u?i=t[u]:s[u]=t[u];return arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),d(n.type,s,o||n.key,i||n.ref,null)}function U(){return(U=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 G(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 R(n,t)}function H(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=h(G,U({},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[j(u[i].name)]=u[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=h(L,{name:c},l):r[i]=l}var a=t?h(L,null,r):r;return h(t||n.nodeName.toLowerCase(),o,a)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?F:P)(this._vdom,this._root)}function j(e){return e.replace(/-(\w)/g,(function(e,n){return n?n.toUpperCase():""}))}function $(e,n,t){if(this._vdom){var r={};r[e]=t=null==t?void 0:t,r[j(e)]=t,this._vdom=R(this._vdom,r),P(this._vdom,this._root)}}function B(){P(this._vdom=null,this._root)}function L(e,n){var t=this;return h("slot",U({},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)}}))}function W(e,n){!function(e,n,t,r){function o(){var n=Reflect.construct(HTMLElement,[],o);return n._vdomComponent=e,n._root=n,n}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=H,o.prototype.attributeChangedCallback=$,o.prototype.disconnectedCallback=B,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,n)}e=l.slice,n={__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}},t=0,p.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=a({},this.state),"function"==typeof e&&(e=e(a({},t),this.props)),e&&a(t,e),null!=e&&this.__v&&(n&&this.__h.push(n),w(this))},p.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w(this))},p.prototype.render=_,r=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,y.__r=0,u=0;var q,z,V,Z=0,J=[],Y=n.__b,X=n.__r,K=n.diffed,Q=n.__c,ee=n.unmount;function ne(e,t){n.__h&&n.__h(z,e,Z||t),Z=0;var r=z.__H||(z.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function te(e,n,t){var r=ne(q++,2);return r.t=e,r.__c||(r.__=[t?t(n):fe(void 0,n),function(e){var n=r.t(r.__[0],e);r.__[0]!==n&&(r.__=[n,r.__[1]],r.__c.setState({}))}],r.__c=z),r.__}function re(e,t){var r=ne(q++,3);!n.__s&&ae(r.__H,t)&&(r.__=e,r.__H=t,z.__H.__h.push(r))}function oe(e,t){var r=ne(q++,4);!n.__s&&ae(r.__H,t)&&(r.__=e,r.__H=t,z.__h.push(r))}function ie(e,n){var t=ne(q++,7);return ae(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function ue(){for(var e;e=J.shift();)if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(t){e.__H.__h=[],n.__e(t,e.__v)}}n.__b=function(e){z=null,Y&&Y(e)},n.__r=function(e){X&&X(e),q=0;var n=(z=e.__c).__H;n&&(n.__h.forEach(le),n.__h.forEach(ce),n.__h=[])},n.diffed=function(e){K&&K(e);var t=e.__c;t&&t.__H&&t.__H.__h.length&&(1!==J.push(t)&&V===n.requestAnimationFrame||((V=n.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),se&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);se&&(n=requestAnimationFrame(t))})(ue)),z=null},n.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],n.__e(r,e.__v)}})),Q&&Q(e,t)},n.unmount=function(e){ee&&ee(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{le(e)}catch(e){t=e}})),t&&n.__e(t,r.__v))};var se="function"==typeof requestAnimationFrame;function le(e){var n=z,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),z=n}function ce(e){var n=z;e.__c=e.__(),z=n}function ae(e,n){return!e||e.length!==n.length||n.some((function(n,t){return n!==e[t]}))}function fe(e,n){return"function"==typeof n?n(e):n}function he(e,n){for(var t in n)e[t]=n[t];return e}function de(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 _e(e){this.props=e}(_e.prototype=new p).isPureReactComponent=!0,_e.prototype.shouldComponentUpdate=function(e,n){return de(this.props,e)||de(this.state,n)};var pe=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pe&&pe(e)};var me="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,ge=function(e,n){return null==e?null:b(b(e).map(n))},we={map:ge,forEach:ge,count:function(e){return e?b(e).length:0},only:function(e){var n=b(e);if(1!==n.length)throw"Children.only";return n[0]},toArray:b},ye=n.__e;n.__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);ye(e,n,t)};var ve=n.unmount;function Ce(){this.__u=0,this.t=null,this.__b=null}function be(e){var n=e.__.__c;return n&&n.__e&&n.__e(e)}function Se(){this.u=null,this.o=null}n.unmount=function(e){var n=e.__c;n&&n.__R&&n.__R(),n&&!0===e.__h&&(e.type=null),ve&&ve(e)},(Ce.prototype=new p).__c=function(e,n){var t=n.__c,r=this;null==r.t&&(r.t=[]),r.t.push(t);var o=be(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()}},l=!0===n.__h;r.__u++||l||r.setState({__e:r.__b=r.__v.__k[0]}),e.then(u,u)},Ce.prototype.componentWillUnmount=function(){this.t=[]},Ce.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=he({},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&&h(_,null,e.fallback);return o&&(o.__h=null),[h(_,null,n.__e?null:e.children),o]};var Ee=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 xe(e){return this.getChildContext=function(){return e.context},e.children}function ke(e){var n=this,t=e.i;n.componentWillUnmount=function(){P(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)}}),P(h(xe,{context:n.context},e.__v),n.l)):n.l&&n.componentWillUnmount()}(Se.prototype=new p).__e=function(e){var n=this,t=be(n.__v),r=n.o.get(e);return r[0]++,function(o){var i=function(){n.props.revealOrder?(r.push(o),Ee(n,e,r)):o()};t?t(i):i()}},Se.prototype.render=function(e){this.u=null,this.o=new Map;var n=b(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},Se.prototype.componentDidUpdate=Se.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(n,t){Ee(e,t,n)}))};var Te="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ie=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Oe="undefined"!=typeof document,Me=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};p.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(p.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})}));var Ne=n.event;function Ae(){}function De(){return this.cancelBubble}function Pe(){return this.defaultPrevented}n.event=function(e){return Ne&&(e=Ne(e)),e.persist=Ae,e.isPropagationStopped=De,e.isDefaultPrevented=Pe,e.nativeEvent=e};var Fe,Re={configurable:!0,get:function(){return this.class}},Ue=n.vnode;n.vnode=function(e){var n=e.type,t=e.props,r=t;if("string"==typeof n){var o=-1===n.indexOf("-");for(var i in r={},t){var u=t[i];Oe&&"children"===i&&"noscript"===n||"value"===i&&"defaultValue"in t&&null==u||("defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+n)&&!Me(t.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&Ie.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[i]=u)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=b(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=b(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,t.class!=t.className&&(Re.enumerable="className"in t,null!=t.className&&(r.class=t.className),Object.defineProperty(r,"className",Re))}e.$$typeof=Te,Ue&&Ue(e)};var Ge=n.__r;n.__r=function(e){Ge&&Ge(e),Fe=e.__c};var He={ReactCurrentDispatcher:{current:{readContext:function(e){return Fe.__n[e.__c].props.value}}}};function je(e){return!!e&&e.$$typeof===Te}const $e={useState:function(e){return Z=1,te(fe,e)},useReducer:te,useEffect:re,useLayoutEffect:oe,useRef:function(e){return Z=5,ie((function(){return{current:e}}),[])},useImperativeHandle:function(e,n,t){Z=6,oe((function(){"function"==typeof e?e(n()):e&&(e.current=n())}),null==t?t:t.concat(e))},useMemo:ie,useCallback:function(e,n){return Z=8,ie((function(){return e}),n)},useContext:function(e){var n=z.context[e.__c],t=ne(q++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(z)),n.props.value):e.__},useDebugValue:function(e,t){n.useDebugValue&&n.useDebugValue(t?t(e):e)},version:"17.0.2",Children:we,render:function(e,n,t){return null==n.__k&&(n.textContent=""),P(e,n),"function"==typeof t&&t(),e?e.__c:null},hydrate:function(e,n,t){return F(e,n),"function"==typeof t&&t(),e?e.__c:null},unmountComponentAtNode:function(e){return!!e.__k&&(P(null,e),!0)},createPortal:function(e,n){return h(ke,{__v:e,i:n})},createElement:h,createContext:function(e,n){var t={__c:n="__cC"+u++,__: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(w)},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 h.bind(null,e)},cloneElement:function(e){return je(e)?R.apply(null,arguments):e},createRef:function(){return{current:null}},Fragment:_,isValidElement:je,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},Component:p,PureComponent:_e,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:de(this.props,e)}function r(n){return this.shouldComponentUpdate=t,h(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=he({},n);return delete r.ref,e(r,(t=n.ref||t)&&("object"!=typeof t||"current"in t)?t:null)}return n.$$typeof=me,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(e.displayName||e.name)+")",n},flushSync:function(e,n){return e(n)},unstable_batchedUpdates:function(e,n){return e(n)},StrictMode:_,Suspense:Ce,SuspenseList:Se,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 h(t,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:He};function Be(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Le(e){return null!=e&&"function"==typeof e.Dispose}function We(e){Le(e)&&e.Dispose()}function qe(e,n){return Object.getPrototypeOf(e).constructor===Object.getPrototypeOf(n).constructor}class ze{constructor(e){this.iter=e}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const e=this.iter.next();return this.current=e.value,!e.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Ve(e){return"function"==typeof e.GetEnumerator?e.GetEnumerator():new ze(e[Symbol.iterator]())}function Ze(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 Je(e,n){let t=e.toString(10);for(;t.length<n;)t="0"+t;return t}function Ye(e){const n=e;return"number"==typeof n.offset?n.offset:1===e.kind?0:-6e4*e.getTimezoneOffset()}function Xe(e,n){return(e=e<0&&null!=n&&10!==n?4294967295+e+1:e).toString(n)}class Ke{static id(e){return Ke.idMap.has(e)||Ke.idMap.set(e,++Ke.count),Ke.idMap.get(e)}}function Qe(e){let n=0,t=5381;const r=e.length;for(;n<r;)t=33*t^e.charCodeAt(n++);return t}function en(e){return 2654435761*e|0}function nn(e){return 0===e.length?0:e.reduce(((e,n)=>(e<<5)+e^n))}function tn(e){if(null==e)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return en(e);case"string":return Qe(e);default:if(function(e){return"function"==typeof e.GetHashCode}(e))return e.GetHashCode();if(Be(e))return function(e){const n=e.length,t=new Array(n);for(let r=0;r<n;r++)t[r]=tn(e[r]);return nn(t)}(e);if(e instanceof Date)return function(e){return e.getTime()}(e);if(Object.getPrototypeOf(e).constructor===Object){const n=Object.values(e).map((e=>tn(e)));return nn(n)}return en(Ke.id(e))}}function rn(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 on(e,n){return rn(e,n,un)}function un(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):Be(e)?Be(n)&&on(e,n):e instanceof Date?n instanceof Date&&0===sn(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]||!un(e[t[o]],n[r[o]]))return!1;return!0}(e,n)))}function sn(e,n){let t,r;return"offset"in e&&"offset"in n?(t=e.getTime(),r=n.getTime()):(t=e.getTime()+Ye(e),r=n.getTime()+Ye(n)),t===r?0:t<r?-1:1}function ln(e,n){return e===n?0:e<n?-1:1}function cn(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,an)}function an(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):Be(e)?Be(n)?cn(e,n):-1:e instanceof Date?n instanceof Date?sn(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=an(e[u],n[u]),0!==i)return i}return 0}(e,n):-1}function fn(e,n,t){return e(n,t)>0?n:t}Ke.idMap=new WeakMap,Ke.count=0;const hn=Symbol("curried");function dn(e,n){if(null==n||n.length>1)return n;const t=(...t)=>{let r=n;for(let n=0;n<e;n++)r=r(t[n]);return r};return t[hn]=n,t}function _n(e,n,t){return r=>1===n?t(...e.concat([r])):_n(e.concat([r]),n-1,t)}function pn(e){const n=e<0,t=(e=Math.abs(e))%36e5/6e4;return(n?"-":"+")+Je(~~(e/36e5),2)+":"+Je(t,2)}function mn(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 gn(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 wn(e,n,t){return null!=e.offset?function(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," ")+pn(null!==(r=e.offset)&&void 0!==r?r:0);if(1!==n.length)return gn(i,n,!0);switch(n){case"D":case"d":return mn(i,"first");case"T":case"t":return mn(i,"second");case"O":case"o":return function(e,n){const t=e.toISOString();return t.substring(0,t.length-1)+pn(n)}(i,null!==(o=e.offset)&&void 0!==o?o:0);default:throw new Error("Unrecognized Date print format")}}(e,n):function(e,n){const t=1===e.kind;if("string"!=typeof n)return t?e.toUTCString():e.toLocaleString();if(1!==n.length)return gn(e,n,t);switch(n){case"D":case"d":return t?mn(e,"first"):e.toLocaleDateString();case"T":case"t":return t?mn(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 Je(e.getFullYear(),4)+"-"+Je(e.getMonth()+1,2)+"-"+Je(e.getDate(),2)+"T"+Je(e.getHours(),2)+":"+Je(e.getMinutes(),2)+":"+Je(e.getSeconds(),2)+"."+Je(e.getMilliseconds(),3)+(n?pn(-6e4*e.getTimezoneOffset()):"")}}(e,t);default:throw new Error("Unrecognized Date print format")}}(e,n)}function yn(e,n){const t=new Date(e);return t.kind=0|(null==n?0:n),t}function vn(e){function n(){throw new Error(`The string is not a valid Date: ${e}`)}null!=e&&""!==e.trim()||n(),10===e.length&&"-"===e[4]&&"-"===e[7]&&(e+="T00:00:00");let t=new Date(e),r=null;if(isNaN(t.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(null!=o){let e,n=0;if(null!=o[2]){const e=o[2].split(":");n=3600*parseInt(e[0],10)+60*parseInt(e[1]||"0",10)+parseFloat(e[2]||"0"),null!=o[3]&&"PM"===o[3].toUpperCase()&&(n+=720)}if(null!=o[4]){if(null!=o[1])e=new Date(o[1]+" UTC");else{const n=new Date;e=new Date(n.getUTCFullYear()+"/"+(n.getUTCMonth()+1)+"/"+n.getUTCDate())}if("Z"===o[4])r="Z";else{let e=60*parseInt(o[5],10)+parseInt(o[6]||"0",10);"-"===o[4][0]&&(e*=-1),r=e,n-=60*e}}else if(null!=o[1])e=new Date(o[1]);else{const n=new Date;e=new Date(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate())}t=new Date(e.getTime()+1e3*n),t=new Date(t.getTime()+6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))}else n();isNaN(t.getTime())&&n()}return[t,r]}function Cn(e,n){try{return n.contents=function(e,n=!1){const[t,r]=vn(e),o=null!=r?n&&"Z"===r?1:2:0;return yn(t.getTime(),o)}(e),!0}catch(e){return!1}}const bn=Symbol("numeric");function Sn(e){return"number"==typeof e||(null==e?void 0:e[bn])}function En(e,n){return"number"==typeof e?e*n:e[bn]().multiply(n)}function xn(e,n){return"number"==typeof e?e.toFixed(n):e[bn]().toFixed(n)}function kn(e,n){return"number"==typeof e?e.toPrecision(n):e[bn]().toPrecision(n)}function Tn(e,n){return"number"==typeof e?e.toExponential(n):e[bn]().toExponential(n)}function In(e){return"number"==typeof e?(Number(e)>>>0).toString(16):e[bn]().toHex()}function On(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Mn(e,n,t=0){if(e.lastIndex=t,!e.global)throw new Error("Non-global RegExp");let r=e.exec(n);const o=[];for(;null!==r;)o.push(r),r=e.exec(n);return o}function Nn(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+=Nn(r);else{if(100===n){t+="; ...";break}t+="; "+Nn(r)}n++}return t+"]"}(e);{const t=Object.getPrototypeOf(e).constructor;return t===Object&&n<10?"{ "+Object.entries(e).map((([e,t])=>e+" = "+Nn(t,n+1))).join("\n ")+" }":t.name}}return String(e)}class An{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=Nn(n[0]),r=t.indexOf(" ")>=0):t=n.map((e=>Nn(e))).join(", "),e+(r?" (":" ")+t+(r?")":"")}}(this.name,this.fields)}GetHashCode(){const e=this.fields.map((e=>tn(e)));return e.splice(0,0,en(this.tag)),nn(e)}Equals(e){return this===e||!!qe(this,e)&&this.tag===e.tag&&on(this.fields,e.fields)}CompareTo(e){return this===e?0:qe(this,e)?this.tag===e.tag?cn(this.fields,e.fields):this.tag<e.tag?-1:1:-1}}class Dn{toJSON(){return function(e){const n={},t=Object.keys(e);for(let r=0;r<t.length;r++)n[t[r]]=e[t[r]];return n}(this)}toString(){return e=this,"{ "+Object.entries(e).map((([e,n])=>e+" = "+Nn(n))).join("\n ")+" }";var e}GetHashCode(){return function(e){const n=Object.values(e).map((e=>tn(e)));return nn(n)}(this)}Equals(e){return function(e,n){if(e===n)return!0;if(qe(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++)if(!un(e[t[r]],n[t[r]]))return!1;return!0}return!1}(this,e)}CompareTo(e){return function(e,n){if(e===n)return 0;if(qe(e,n)){const t=Object.keys(e);for(let r=0;r<t.length;r++){const o=an(e[t[r]],n[t[r]]);if(0!==o)return o}return 0}return-1}(this,e)}}class Pn{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)}}const Fn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Rn=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Un(e,n){return function(e,n){return"number"==typeof e?e<n?-1:e>n?1:0:e.CompareTo(n)}(e,n)<0}function Gn(e){return{input:e,cont:(n=e,e=>{Fn.lastIndex=0;const t=[],r=[];let o=0,i=Fn.exec(n);for(;i;){const e=i.index+(i[1]||"").length;t.push(n.substring(o,e).replace(/%%/g,"%")),r.push(i),o=Fn.lastIndex,Fn.lastIndex-=1,i=Fn.exec(n)}return 0===t.length?e(n.replace(/%%/g,"%")):(t.push(n.substring(o).replace(/%%/g,"%")),Bn(e,t,r))})};var n}function Hn(e,n){return"string"==typeof n?e(n):n.cont(e)}function jn(e){return Hn((e=>e),e)}function $n(e,n,t,r,o){let i="";if(n=n||"",o=o||"",Sn(e))switch("x"!==o.toLowerCase()&&(Un(e,0)?(e=En(e,-1),i="-"):n.indexOf(" ")>=0?i=" ":n.indexOf("+")>=0&&(i="+")),r=null==r?null:parseInt(r,10),o){case"f":case"F":e=xn(e,r=null!=r?r:6);break;case"g":case"G":e=null!=r?kn(e,r):kn(e);break;case"e":case"E":e=null!=r?Tn(e,r):Tn(e);break;case"x":e=In(e);break;case"X":e=In(e).toUpperCase();break;default:e=String(e)}else e=e instanceof Date?wn(e):Nn(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=Wn(e,t-i.length,u,o)):Wn(i+e,t,u,o)}return e}function Bn(e,n,t,r="",o=-1){return(...i)=>{let u=r;const s=n.slice(),l=t.slice();for(const e of i){const[,,n,t,r,i]=l[0];let c=t;if(o>=0)c=o,o=-1;else if("*"===c){if(e<0)throw new Error("Non-negative number required");o=e;continue}u+=s[0],u+=$n(e,n,c,r,i),s.splice(0,1),l.splice(0,1)}return 0===l.length?(u+=s[0],e(u)):Bn(e,s,l,u,o)}}function Ln(e,n){return Array.isArray(n)?n.join(e):Array.from(n).join(e)}function Wn(e,n,t,r){t=t||" ",n-=e.length;for(let o=0;o<n;o++)e=r?e+t:t+e;return e}class qn{constructor(e){this.value=e}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return tn(this.value)}Equals(e){return null!=e&&un(this.value,e instanceof qn?e.value:e)}CompareTo(e){return null==e?1:an(this.value,e instanceof qn?e.value:e)}}function zn(e){return null==e||e instanceof qn?new qn(e):e}function Vn(e){if(null==e)throw new Error("Option has no value");return e instanceof qn?e.value:e}function Zn(e,n){return null!=e?Vn(e):n}function Jn(e,n){return"function"==typeof e?new e(n):new Array(n)}function Yn(e,n,t,r){const o=0|n;return e.fill(r,o,o+t)}function Xn(e,n,t){const r=0|n.length,o=Jn(t,r);for(let t=0;t<=r-1;t++)o[t]=e(n[t]);return o}function Kn(e,n,t){return t.reduce(e,n)}function Qn(e,n,t,r){return function(e,n,t,r){let o=r;n.length!==t.length&&function(){throw new Error("Arrays had different lengths")}();const i=0|n.length;for(let r=1;r<=i;r++)o=e(0,n[i-r],t[i-r],o);return o}(((n,t,r,o)=>e(t,r,o)),n,t,r)}class et extends Dn{constructor(e,n){super(),this.head=e,this.tail=n}toString(){return"["+Ln("; ",this)+"]"}Equals(e){return this===e||((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(un(t.head,r.head)){e=i,n=u;continue e}return!1}return!1}return null==o[1]}})(this,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)+tn(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|an(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 new nt(this)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ve(this)}}class nt{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"(){const e=this;e.it=e.xs,e.current=null}Dispose(){}}function tt(){return new et(null,void 0)}function rt(e,n){return new et(e,n)}function ot(e){return null==e.tail}function it(e){if(null!=e.tail)return e.head;throw new Error("Collection was empty.\\nParameter name: list")}function ut(e){const n=e.tail;if(null!=n)return n;throw new Error("Collection was empty.\\nParameter name: list")}function st(){return tt()}function lt(e,n){return rt(e,n)}function ct(e){return rt(e,tt())}function at(e){return ot(e)}function ft(e){return it(e)}function ht(e){return ut(e)}function dt(e){const n=0|function(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)}(e),t=Yn(new Array(n),0,n,null);return((e,n)=>{for(;;){const r=e,o=n;if(ot(o))break;t[r]=it(o),e=r+1,n=ut(o)}})(0,e),t}function _t(e,n,t){let r=n,o=t;for(;!ot(o);)r=e(r,it(o)),o=ut(o);return r}function pt(e){return _t(((e,n)=>rt(n,e)),tt(),e)}function mt(e,n){_t(((n,t)=>{e(t)}),void 0,n)}function gt(e,n){let t=n;for(let n=e.length-1;n>=0;n--)t=rt(e[n],t);return t}function wt(e){return gt(e,tt())}function yt(e,n){return _t(((e,n)=>rt(n,e)),n,pt(e))}const vt=$e;function Ct(e){const n=ct(h("p",{children:["Hello, Superhero."]}));return h("div",{children:vt.Children.toArray(Array.from(n))})}class bt extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Ok","Error"]}}function St(e,n){return 0===n.tag?new bt(0,e(n.fields[0])):new bt(1,n.fields[0])}new class{constructor(){}};class Et{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 xt extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,xt.prototype)}}class kt{constructor(){this.callCount=0}static get maxTrampolineCallCount(){return 2e3}incrementAndCheck(){return this.callCount++>kt.maxTrampolineCallCount}hijack(e){this.callCount=0,setTimeout(e,0)}}function Tt(e){return n=>{if(n.cancelToken.isCancelled)n.onCancel(new xt);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)}}}const It=new class{Bind(e,n){return function(e,n){return Tt((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})}))}(e,n)}Combine(e,n){return this.Bind(e,(()=>n))}Delay(e){return Tt((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 function(e){return Tt((n=>n.onSuccess(e)))}(e)}ReturnFrom(e){return e}TryFinally(e,n){return Tt((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 Tt((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 Tt((e=>e.onSuccess(void 0)))}};function Ot(e,n){const t=function(e,n){return new bt(0,n)}(0,n);return It.Return(t)}function Mt(e,n){return It.Delay(n)}function Nt(e){}new class{constructor(){}};const At=new Et;function Dt(e,n){return function(e,n){return function(e,n,t,r,o){"function"!=typeof n&&(o=n,n=void 0);const i=new kt;e({onSuccess:n||Nt,onError:t||Nt,onCancel:r||Nt,cancelToken:o||At,trampoline:i})}(e,n)}(e,n)}class Pt extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Ft extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Header"]}}class Rt extends Dn{constructor(e,n,t,r,o,i,u,s){super(),this.url=e,this.method=n,this.headers=t,this.withCredentials=r,this.overridenMimeType=o,this.overridenResponseType=i,this.timeout=u,this.content=s}}class Ut extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Gt extends Dn{constructor(e,n,t,r,o){super(),this.statusCode=0|e,this.responseText=n,this.responseType=t,this.responseHeaders=r,this.content=o}}function Ht(){return e=an,{Compare:(n,t)=>e(n,t)};var e}const jt="The input sequence has an insufficient number of elements.";function $t(){throw new Error("Enumeration has not started. Call MoveNext.")}function Bt(){throw new Error("Enumeration already finished.")}class Lt{constructor(e){this.f=e}toString(){let e=0,n="seq [";const t=Ve(this);try{for(;e<4&&t["System.Collections.IEnumerator.MoveNext"]();)e>0&&(n+="; "),n+=Nn(t["System.Collections.Generic.IEnumerator`1.get_Current"]()),e=e+1|0;return 4===e&&(n+="; ..."),n+"]"}finally{We(t)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}class Wt{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 qt(e,n,t){return new Wt(e,n,t)}function zt(e,n,t){let r,o=!1,i=zn(e());const u=()=>{if(null!=i){const e=Vn(i);try{t(e)}finally{i=void 0}}},s=()=>{try{u()}finally{r=void 0}};return qt((()=>(o||$t(),null!=r?Vn(r):Bt())),(()=>{if(o||(o=!0),null!=i){const e=Vn(i);let t;try{t=n(e)}catch(e){throw s(),e}return null!=t?(r=t,!0):(s(),!1)}return!1}),u)}function Vt(e){return function(e){return new Lt(e)}(e)}function Zt(e){return n="source",null==e&&function(e){throw new Error(e)}(n),Ve(e);var n}function Jt(e){return Vt((()=>Ve(e())))}function Yt(e){return Vt((()=>function(e){let n,t,r,o=!1,i=!1;const u=()=>{if(i=!0,null!=t){const e=t;try{We(e)}finally{t=void 0}}if(null!=n){const e=n;try{We(e)}finally{n=void 0}}};return qt((()=>(o?i&&Bt():$t(),null!=r?Vn(r):Bt())),(()=>{let s;if(o||(o=!0),i)return!1;{let o;for(;null==o;){const i=[n,t];if(null!=i[0])if(null!=i[1]){const e=i[1];if(e["System.Collections.IEnumerator.MoveNext"]())r=zn(e["System.Collections.Generic.IEnumerator`1.get_Current"]()),o=!0;else try{We(e)}finally{t=void 0}}else{const e=i[0];e["System.Collections.IEnumerator.MoveNext"]()?(s=e["System.Collections.Generic.IEnumerator`1.get_Current"](),t=Ve(s)):(u(),o=!1)}else n=Ve(e)}return Vn(o)}}),(()=>{i||u()}))}(e)))}function Xt(e,n){return Yt([e,n])}function Kt(e,n,t){const r=Zt(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{We(r)}}function Qt(e,n,t){const r=Zt(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{We(r)}}function er(e,n){Qt(((n,t)=>{e(t)}),void 0,n)}function nr(e,n){return t=()=>Zt(n),r=n=>n["System.Collections.IEnumerator.MoveNext"]()?zn(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,o=We,Vt((()=>zt(t,r,o)));var t,r,o}function tr(e,n){return Vt((()=>{const t=Zt(n);try{for(let n=1;n<=e;n++)if(!t["System.Collections.IEnumerator.MoveNext"]())throw new Error(jt+"\\nParameter name: source");return function(e,n){return qt((()=>n["System.Collections.Generic.IEnumerator`1.get_Current"]()),(()=>n["System.Collections.IEnumerator.MoveNext"]()),(()=>{try{We(n)}finally{e()}}))}((()=>{}),t)}catch(e){throw We(t),e}}))}Symbol.iterator;class rr{constructor(e,n){this.k=e,this.v=n}}function or(e,n){return new rr(e,n)}function ir(e){return e.k}function ur(e){return e.v}class sr extends rr{constructor(e,n,t,r,o){super(e,n),this.left=t,this.right=r,this.h=0|o}}function lr(e,n,t,r,o){return new sr(e,n,t,r,o)}function cr(e){return e.left}function ar(e){return e.right}function fr(e){return e.h}function hr(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof sr){e=hr(t+1,cr(o)),n=ar(o);continue e}return t+1|0}return 0|t}}function dr(e){return hr(0,e)}function _r(e,n,t,r){let o,i;if(null!=e){const n=e;o=n instanceof sr?fr(n):1}else o=0;if(null!=r){const e=r;i=e instanceof sr?fr(e):1}else i=0;const u=0|(o<i?i:o);return 0===u?or(n,t):lr(n,t,e,r,u+1)}function pr(e,n,t,r){let o,i,u,s,l,c;if(null!=e){const n=e;l=n instanceof sr?fr(n):1}else l=0;if(null!=r){const e=r;c=e instanceof sr?fr(e):1}else c=0;if(c>l+2){const u=Vn(r);if(u instanceof sr){if(o=cr(u),(null!=o?(i=o,i instanceof sr?fr(i):1):0)>l+1){const r=Vn(cr(u));if(r instanceof sr)return _r(_r(e,n,t,cr(r)),ir(r),ur(r),_r(ar(r),ir(u),ur(u),ar(u)));throw new Error("internal error: Map.rebalance")}return _r(_r(e,n,t,cr(u)),ir(u),ur(u),ar(u))}throw new Error("internal error: Map.rebalance")}if(l>c+2){const o=Vn(e);if(o instanceof sr){if(u=ar(o),(null!=u?(s=u,s instanceof sr?fr(s):1):0)>c+1){const e=Vn(ar(o));if(e instanceof sr)return _r(_r(cr(o),ir(o),ur(o),cr(e)),ir(e),ur(e),_r(ar(e),n,t,r));throw new Error("internal error: Map.rebalance")}return _r(cr(o),ir(o),ur(o),_r(ar(o),n,t,r))}throw new Error("internal error: Map.rebalance")}return _r(e,n,t,r)}function mr(e,n,t,r){if(null!=r){const o=r,i=0|e.Compare(n,ir(o));return o instanceof sr?i<0?pr(mr(e,n,t,cr(o)),ir(o),ur(o),ar(o)):0===i?lr(n,t,cr(o),ar(o),fr(o)):pr(cr(o),ir(o),ur(o),mr(e,n,t,ar(o))):i<0?lr(n,t,void 0,r,2):0===i?or(n,t):lr(n,t,r,void 0,2)}return or(n,t)}function gr(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,ir(u));if(0===s)return zn(ur(u));if(u instanceof sr){e=r,n=o,t=s<0?cr(u):ar(u);continue e}return}return}}function wr(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof sr){wr(t,cr(o)),t(ir(o),ur(o)),e=t,n=ar(o);continue e}t(ir(o),ur(o))}break}}function yr(e,n){wr(e,n)}function vr(e,n){if(null!=n){const t=n;if(t instanceof sr){const n=vr(e,cr(t)),r=e(ir(t),ur(t)),o=vr(e,ar(t));return lr(ir(t),r,n,o,fr(t))}return or(ir(t),e(ir(t),ur(t)))}}function Cr(e,n){return vr(e,n)}function br(e,n){let t;for(let r=0;r<=n.length-1;r++){const o=n[r];t=mr(e,o[0],o[1],t)}return t}class Sr extends Dn{constructor(e,n){super(),this.stack=e,this.started=n}}function Er(e){e:for(;;){const n=e;if(at(n))return st();{const t=ht(n),r=ft(n);if(null!=r){const o=r;if(o instanceof sr){e=gt([cr(o),or(ir(o),ur(o)),ar(o)],t);continue e}return n}e=t;continue e}}}function xr(e){return new Sr(Er(ct(e)),!1)}function kr(e){if(e.started){const n=e.stack;if(at(n))return function(){throw new Error("enumeration already finished")}();if(null!=ft(n)){const e=ft(n);if(e instanceof sr)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ir(e),ur(e)]}throw new Error("Please report error: Map iterator, unexpected stack for current")}return function(){throw new Error("enumeration not started")}()}function Tr(e){let n=xr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>kr(n),"System.Collections.IEnumerator.get_Current":()=>kr(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(at(n))return!1;if(null!=ft(n)){if(ft(n)instanceof sr)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Er(ht(n)),!at(e.stack)}throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}return e.started=!0,!at(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=xr(e)},Dispose(){}}}class Ir{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=Ve(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const e=r["System.Collections.Generic.IEnumerator`1.get_Current"]();t=0|n(t,tn(e[0])),t=0|n(t,tn(e[1]))}}finally{We(r)}return 0|t}(this)}Equals(e){if(!(e instanceof Ir))return!1;{const n=Ve(this);try{const t=Ve(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!(!un(r[0],o[0])||!un(r[1],o[1]))&&e()}return!0}return!1};return e()}finally{We(t)}}finally{We(n)}}}toString(){return"map ["+Ln("; ",nr((e=>function(e,...n){return"object"==typeof e&&n.length>0&&(e=n[0],n.shift()),e.replace(Rn,((e,t,r,o,i,u)=>{if(t<0||t>=n.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let s=n[t];if(Sn(s))switch(i=null==i?null:parseInt(i,10),o){case"f":case"F":s=xn(s,i=null!=i?i:2);break;case"g":case"G":s=null!=i?kn(s,i):kn(s);break;case"e":case"E":s=null!=i?Tn(s,i):Tn(s);break;case"p":case"P":i=null!=i?i:2,s=xn(En(s,100),i)+" %";break;case"d":case"D":s=null!=i?Wn(String(s),i,"0"):String(s);break;case"x":case"X":s=null!=i?Wn(In(s),i,"0"):In(s),"X"===o&&(s=s.toUpperCase());break;default:if(u){let e="";s=u.replace(/([0#,]+)(\.[0#]+)?/,((n,t,r)=>{Un(s,0)&&(s=En(s,-1),e="-");const o=null!=r?r.length:0;if(s=xn(s,Math.max(o-1,0)),t.indexOf(",")>0){const[e,n]=s.split("."),t=e.length%3,r=Math.floor(e.length/3);let o=t>0?e.substr(0,t)+(r>0?",":""):"";for(let n=0;n<r;n++)o+=e.substr(t+3*n,3)+(n<r-1?",":"");s=n?o+"."+n:o}const i=(t=t.replace(/,/g,"")).length>0&&"0"===t[0]?t.length:0;return Wn(s,i-e.length+o,"0")})),s=e+s}}else s=s instanceof Date?wn(s,u||o):Nn(s);return r=parseInt((r||" ").substring(1),10),isNaN(r)||(s=Wn(String(s),Math.abs(r)," ",r<0)),s}))}("({0}, {1})",e[0],e[1])),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(e){return Array.from(this)}GetEnumerator(){return Tr(this.tree)}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Tr(this.tree)}CompareTo(e){const n=this;if(e instanceof Ir)return 0|function(e,n,t){const r=Zt(n);try{const n=Zt(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{We(n)}}finally{We(r)}}(((e,t)=>{const r=0|n.comparer.Compare(e[0],t[0]);return 0|(0!==r?r:an(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 Dr(this,e[0])&&un(Nr(this,e[0]),e[1])}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){!function(e,n,t){let r=t;yr(((e,t)=>{n[r]=[e,t],r=r+1|0}),e)}(this.tree,e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Ar(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Ar(this)}get size(){return 0|Ar(this)}clear(){throw new Error("Map cannot be mutated")}delete(e){throw new Error("Map cannot be mutated")}entries(){return nr((e=>[e[0],e[1]]),this)}get(e){return Nr(this,e)}has(e){return Dr(this,e)}keys(){return nr((e=>e[0]),this)}set(e,n){throw new Error("Map cannot be mutated")}values(){return nr((e=>e[1]),this)}forEach(e,n){const t=this;er((n=>{e(n[1],n[0],t)}),t)}}function Or(e,n){return new Ir(e,n)}function Mr(e){const n=Ht();return Or(n,function(e,n){if(Be(n))return br(e,n);if(n instanceof et)return function(e,n){return _t(((n,t)=>mr(e,t[0],t[1],n)),void 0,n)}(e,n);{const t=Ve(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=mr(r,u[0],u[1],o),t=i}}}(e,void 0,t)}finally{We(t)}}}(n,e))}function Nr(e,n){return function(e,n,t){const r=gr(e,n,t);if(null==r)throw new Error;return Vn(r)}(e.comparer,n,e.tree)}function Ar(e){return dr(e.tree)}function Dr(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,ir(u));if(u instanceof sr){if(s<0){e=r,n=o,t=cr(u);continue e}if(0===s)return!0;e=r,n=o,t=ar(u);continue e}return 0===s}return!1}}(e.comparer,n,e.tree)}function Pr(){return Ir.empty}Ir.empty=Or(Ht(),void 0);const Fr=new Rt("",new Pt(0),st(),!1,void 0,void 0,void 0,new class extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}(0));function Rr(e,n){return"string"!=typeof(t=n)||0===t.length?[n]:function(e,n,t,r){if(r="number"==typeof r?r:0,(t="number"==typeof t?t:void 0)&&t<0)throw new Error("Count cannot be less than zero");if(0===t)return[];const o=1==(1&r),i=2==(2&r);n=(n=n||[]).filter((e=>e)).map(On),n=n.length>0?n:["\\s"];const u=[],s=new RegExp(n.join("|"),"g");let l=!0,c=0;do{const n=s.exec(e);if(null===n){const n=i?e.substring(c).trim():e.substring(c);(!o||n.length>0)&&u.push(n),l=!1}else{const r=i?e.substring(c,n.index).trim():e.substring(c,n.index);(!o||r.length>0)&&(null!=t&&u.length+1===t?(u.push(i?e.substring(c).trim():e.substring(c)),l=!1):u.push(r)),c=s.lastIndex}}while(l);return u}(n,[e],null,0);var t}function Ur(e){return new Rt(e,Fr.method,Fr.headers,Fr.withCredentials,Fr.overridenMimeType,Fr.overridenResponseType,Fr.timeout,Fr.content)}function Gr(e,n){return new Rt(n.url,e,n.headers,n.withCredentials,n.overridenMimeType,n.overridenResponseType,n.timeout,n.content)}function Hr(e){return function(e){return Tt((n=>e([n.onSuccess,n.onError,n.onCancel])))}((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 Ut(0,t.responseText):new Ut("arraybuffer"===s?2:"blob"===s?1:3,t.response),new Gt(o,e,i,function(e){const n=Ht();return Or(n,br(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=Vn(o);r.push(e)}}return r}((e=>{const n=wt(Rr(":",e));return at(n)?void 0:[ft(n).toLocaleLowerCase(),Ln(":",ht(n)).trim()]}),Rr("\r\n",t.getAllResponseHeaders()))),u)))};const r=Ve(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{We(r)}t.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(null==o);else{const e=o;t.overrideMimeType(e)}const i=e.overridenResponseType;null==i||(1===i.tag?t.responseType="blob":2===i.tag?t.responseType="arraybuffer":t.responseType="text");const u=e.timeout;if(null==u);else{const e=0|u;t.timeout=0|e}const s=[e.method,e.content];0===s[0].tag?t.send(zn(void 0)):1===s[1].tag||3===s[1].tag||2===s[1].tag?t.send(zn(s[1].fields[0])):t.send(zn(void 0))}))}new Gt(0,"","",Pr(),new Ut(0,""));class jr extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class $r extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}class Br{constructor(){this.cache=new Map([])}}function Lr(){return new Br}function Wr(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function qr(e,n){switch(e.tag){case 2:return function(e,n,t,r,o=0){if("string"==typeof e){const t=e;e=function(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)}(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=Mn(e,u),l=Mn.length>r?(i=s[r-1],u.substring(0,i.index+i[0].length)):u;return n.substring(0,o)+l.replace(e,t)+n.substring(o+l.length)}return n.replace(e,t)}(Wr(n),"[A-Z]","_$0").toLowerCase();case 0:return n;default:return Wr(n)}}Lr(),Lr();const zr=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Vr=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Zr=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Jr(e,n){try{return n.contents=function(e){function n(e){return e.replace(Vr,"$1-$2-$3-$4-$5")}const t=e.trim().toLowerCase();if(zr.test(t))return function(e,...n){if(0===n.length)return e.trim();const t="["+On(n.join(""))+"]+";return e.replace(new RegExp("^"+t),"").replace(new RegExp(t+"$"),"")}(t,"{","}","(",")");if(Vr.test(t))return n(t);if(Zr.test(t))return n(t.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}(e),!0}catch(e){return!1}}var Yr;function Xr(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 Kr(e,n,t,r,o){try{return o.contents=function(e,n,t,r,o){const i=function(e,n,t){const r=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(null!=r){const[,,e,o]=r;t=t||function(e,n){if(n&Yr.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);const i=function(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}(t);if(!i.test(o))return function(e,n){const[,t,r,o]=e;return{sign:t||"",prefix:r||"",digits:o,radix:n}}(r,t)}return null}(e,n,void 0);if(null!=i){let e=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(e)){const[n,o]=Xr(!0,r);!t&&10!==i.radix&&e>=n&&e<=o&&(e=e<<32-r>>32-r);const[u,s]=Xr(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 Qr(e,n){!function(e){if(null!=e&&0!==e){if(e%6e4!=0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}(n);const t=new Date(e);return t.offset=null!=n?n:-6e4*(new Date).getTimezoneOffset(),t}function eo(e,n){try{return n.contents=function(e){const[n,t]=vn(e),r=null==t?-6e4*n.getTimezoneOffset():"Z"===t?0:6e4*t;return Qr(n.getTime(),r)}(e),!0}catch(e){return!1}}!function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"}(Yr||(Yr={}));var no=null;try{no=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(s){}function to(e,n,t){this.low=0|e,this.high=0|n,this.unsigned=!!t}function ro(e){return!0===(e&&e.__isLong__)}to.prototype.GetHashCode=function(){let e=this.unsigned?1:0;return e=(e<<5)+e^this.high,e=(e<<5)+e^this.low,e},to.prototype.Equals=function(e){return No(this,e)},to.prototype.CompareTo=function(e){return Fo(this,e)},to.prototype.toString=function(e){return To(this,e)},to.prototype.toJSON=function(){return To(this)},to.prototype[bn]=function(){const e=this;return{multiply:n=>Ho(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:()=>{return To(e.unsigned?e:function(e,n,t){return t?function(e,n){return new to(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 to(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)}((n=e,t?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]}(n):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]}(n)),!0),16);var n,t}}},to.prototype.__isLong__,Object.defineProperty(to.prototype,"__isLong__",{value:!0});var oo={},io={};function uo(e,n){var t,r,o;return n?(o=0<=(e>>>=0)&&e<256)&&(r=io[e])?r:(t=lo(e,(0|e)<0?-1:0,!0),o&&(io[e]=t),t):(o=-128<=(e|=0)&&e<128)&&(r=oo[e])?r:(t=lo(e,e<0?-1:0,!1),o&&(oo[e]=t),t)}function so(e,n){if(isNaN(e))return n?wo:go;if(n){if(e<0)return wo;if(e>=_o)return So}else{if(e<=-po)return Eo;if(e+1>=po)return bo}return e<0?Ro(so(-e,n)):lo(e%ho|0,e/ho|0,n)}function lo(e,n,t){return new to(e,n,t)}var co=Math.pow;function ao(e,n,t){if(0===e.length)throw Error("empty string");if("NaN"===e||"Infinity"===e||"+Infinity"===e||"-Infinity"===e)return go;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 Ro(ao(e.substring(1),n,t));for(var o=so(co(t,8)),i=go,u=0;u<e.length;u+=8){var s=Math.min(8,e.length-u),l=parseInt(e.substring(u,u+s),t);i=Uo(s<8?Ho(i,so(co(t,s))):i=Ho(i,o),so(l))}return i.unsigned=n,i}function fo(e,n){return"number"==typeof e?so(e,n):"string"==typeof e?ao(e,n):lo(e.low,e.high,"boolean"==typeof n?n:e.unsigned)}var ho=4294967296,_o=ho*ho,po=_o/2,mo=uo(1<<24),go=uo(0),wo=uo(0,!0),yo=uo(1),vo=uo(1,!0),Co=uo(-1),bo=lo(-1,2147483647,!1),So=lo(-1,-1,!0),Eo=lo(0,-2147483648,!1);function xo(e){return e.unsigned?e.low>>>0:e.low}function ko(e){return e.unsigned?(e.high>>>0)*ho+(e.low>>>0):e.high*ho+(e.low>>>0)}function To(e,n){if((n=n||10)<2||36<n)throw RangeError("radix");if(Io(e))return"0";if(Oo(e)){if(No(e,Eo)){var t=so(n),r=jo(e,t),o=Go(Ho(r,t),e);return To(r,n)+xo(o).toString(n)}return"-"+To(Ro(e),n)}for(var i=so(co(n,6),e.unsigned),u=e,s="";;){var l=jo(u,i),c=(xo(Go(u,Ho(l,i)))>>>0).toString(n);if(Io(u=l))return c+s;for(;c.length<6;)c="0"+c;s=""+c+s}}function Io(e){return 0===e.high&&0===e.low}function Oo(e){return!e.unsigned&&e.high<0}function Mo(e){return 1==(1&e.low)}function No(e,n){return ro(n)||(n=fo(n)),(e.unsigned===n.unsigned||e.high>>>31!=1||n.high>>>31!=1)&&e.high===n.high&&e.low===n.low}function Ao(e,n){return Fo(e,n)<0}function Do(e,n){return Fo(e,n)>0}function Po(e,n){return Fo(e,n)>=0}function Fo(e,n){if(ro(n)||(n=fo(n)),No(e,n))return 0;var t=Oo(e),r=Oo(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:Oo(Go(e,n))?-1:1}function Ro(e){return!e.unsigned&&No(e,Eo)?Eo:Uo(function(e){return lo(~e.low,~e.high,e.unsigned)}(e),yo)}function Uo(e,n){ro(n)||(n=fo(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,l=n.low>>>16,c=0,a=0,f=0,h=0;return f+=(h+=i+(65535&n.low))>>>16,a+=(f+=o+l)>>>16,c+=(a+=r+s)>>>16,c+=t+u,lo((f&=65535)<<16|(h&=65535),(c&=65535)<<16|(a&=65535),e.unsigned)}function Go(e,n){return ro(n)||(n=fo(n)),Uo(e,Ro(n))}function Ho(e,n){if(Io(e))return e.unsigned?wo:go;if(ro(n)||(n=fo(n)),no)return lo(no.mul(e.low,e.high,n.low,n.high),no.get_high(),e.unsigned);if(Io(n))return e.unsigned?wo:go;if(No(e,Eo))return Mo(n)?Eo:go;if(No(n,Eo))return Mo(e)?Eo:go;if(Oo(e))return Oo(n)?Ho(Ro(e),Ro(n)):Ro(Ho(Ro(e),n));if(Oo(n))return Ro(Ho(e,Ro(n)));if(Ao(e,mo)&&Ao(n,mo))return so(ko(e)*ko(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,l=n.low>>>16,c=65535&n.low,a=0,f=0,h=0,d=0;return h+=(d+=i*c)>>>16,f+=(h+=o*c)>>>16,h&=65535,f+=(h+=i*l)>>>16,a+=(f+=r*c)>>>16,f&=65535,a+=(f+=o*l)>>>16,f&=65535,a+=(f+=i*s)>>>16,a+=t*c+r*l+o*s+i*u,lo((h&=65535)<<16|(d&=65535),(a&=65535)<<16|(f&=65535),e.unsigned)}function jo(e,n){if(ro(n)||(n=fo(n)),Io(n))throw Error("division by zero");var t,r,o;if(no)return e.unsigned||-2147483648!==e.high||-1!==n.low||-1!==n.high?lo((e.unsigned?no.div_u:no.div_s)(e.low,e.high,n.low,n.high),no.get_high(),e.unsigned):e;if(Io(e))return e.unsigned?wo:go;if(e.unsigned){if(n.unsigned||(n=function(e){return e.unsigned?e:lo(e.low,e.high,!0)}(n)),Do(n,e))return wo;if(Do(n,function(e,n){if(ro(n)&&(n=xo(n)),0==(n&=63))return e;var t=e.high;return n<32?lo(e.low>>>n|t<<32-n,t>>>n,e.unsigned):lo(32===n?t:t>>>n-32,0,e.unsigned)}(e,1)))return vo;o=wo}else{if(No(e,Eo))return No(n,yo)||No(n,Co)?Eo:No(n,Eo)?yo:No(t=function(e,n){return ro(n)&&(n=xo(n)),0==(n&=63)?e:n<32?lo(e.low<<n,e.high<<n|e.low>>>32-n,e.unsigned):lo(0,e.low<<n-32,e.unsigned)}(jo(function(e,n){return ro(n)&&(n=xo(n)),0==(n&=63)?e:n<32?lo(e.low>>>n|e.high<<32-n,e.high>>n,e.unsigned):lo(e.high>>n-32,e.high>=0?0:-1,e.unsigned)}(e,1),n),1),go)?Oo(n)?yo:Co:o=Uo(t,jo(r=Go(e,Ho(n,t)),n));if(No(n,Eo))return e.unsigned?wo:go;if(Oo(e))return Oo(n)?jo(Ro(e),Ro(n)):Ro(jo(Ro(e),n));if(Oo(n))return Ro(jo(e,Ro(n)));o=go}for(r=e;Po(r,n);){t=Math.max(1,Math.floor(ko(r)/ko(n)));for(var i=Math.ceil(Math.log(t)/Math.LN2),u=i<=48?1:co(2,i-48),s=so(t),l=Ho(s,n);Oo(l)||Do(l,r);)l=Ho(s=so(t-=u,e.unsigned),n);Io(s)&&(s=yo),o=Uo(o,s),r=Go(r,l)}return o}const $o=jo,Bo=ko;function Lo(e=0,n=0,t=0,r=0,o=0){switch(arguments.length){case 1:return Wo(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 Wo(e){return Bo($o(e,1e4))}function qo(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 Lo(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*Lo(t,u,s,o,r)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}(e),!0}catch(e){return!1}}class zo{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 ni(this)}GetHashCode(){return Zo(this)}Equals(e){return Jo(this,e)}}function Vo(e){return null!=e.generics?e.generics:[]}function Zo(e){return nn([Qe(e.fullname),...Vo(e).map(Zo)])}function Jo(e,n){return""===e.fullname?""===n.fullname&&rn(ui(e),ui(n),(([e,n],[t,r])=>e===t&&Jo(n,r))):e.fullname===n.fullname&&rn(Vo(e),Vo(n),Jo)}function Yo(e,n,t,r){return new zo(e,n,t,void 0,r)}function Xo(e){return new zo("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ko=new zo("System.Object"),Qo=(new zo("Microsoft.FSharp.Core.Unit"),new zo("System.Char"),new zo("System.String"));function ei(e){if(Array.isArray(e))return e[0];if(e instanceof zo){const n=ti(e);if(null!=n)return ei(n)+"[]";{const n=e.fullname.lastIndexOf(".");return-1===n?e.fullname:e.fullname.substr(n+1)}}return e.name}function ni(e){const n=ti(e);return null!=n?ni(n)+"[]":null==e.generics||0===e.generics.length?e.fullname:e.fullname+"["+e.generics.map((e=>ni(e))).join(",")+"]"}function ti(e){var n;return"[]"===e.fullname&&1===(null===(n=e.generics)||void 0===n?void 0:n.length)?e.generics[0]:void 0}function ri(e){return null!=e.enumCases&&e.enumCases.length>0}function oi(e){if(ri(e)&&null!=e.enumCases)return e.enumCases.map((e=>e[1]));throw new Error(`${e.fullname} is not an enum type`)}function ii(e,n){const t=parseInt(n,10);return function(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`)}(e,isNaN(t)?n:t)[1]}function ui(e){if(null!=e.fields)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function si(e){return e.fullname.startsWith("System.Tuple")}function li(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):{}}new zo("System.Boolean"),new zo("System.SByte"),new zo("System.Byte"),new zo("System.Int16"),new zo("System.UInt16"),new zo("System.Int32"),new zo("System.UInt32"),new zo("System.Single"),new zo("System.Double"),new zo("System.Decimal");class ci{constructor(e){this.k=e}}function ai(e){return new ci(e)}function fi(e){return e.k}class hi extends ci{constructor(e,n,t,r){super(e),this.left=n,this.right=t,this.h=0|r}}function di(e,n,t,r){return new hi(e,n,t,r)}function _i(e){return e.left}function pi(e){return e.right}function mi(e){return e.h}function gi(e,n){e:for(;;){const t=e,r=n;if(null!=t){const o=t;if(o instanceof hi){e=_i(o),n=gi(pi(o),r+1);continue e}return r+1|0}return 0|r}}function wi(e){return gi(e,0)}function yi(e,n,t){let r,o;if(null!=e){const n=e;r=n instanceof hi?mi(n):1}else r=0;if(null!=t){const e=t;o=e instanceof hi?mi(e):1}else o=0;const i=0|(r<o?o:r);return 0===i?ai(n):di(n,e,t,i+1)}function vi(e,n,t){let r,o,i,u,s,l;if(null!=e){const n=e;s=n instanceof hi?mi(n):1}else s=0;if(null!=t){const e=t;l=e instanceof hi?mi(e):1}else l=0;if(l>s+2){const i=Vn(t);if(i instanceof hi){if(r=_i(i),(null!=r?(o=r,o instanceof hi?mi(o):1):0)>s+1){const t=Vn(_i(i));if(t instanceof hi)return yi(yi(e,n,_i(t)),fi(t),yi(pi(t),fi(i),pi(i)));throw new Error("internal error: Set.rebalance")}return yi(yi(e,n,_i(i)),fi(i),pi(i))}throw new Error("internal error: Set.rebalance")}if(s>l+2){const r=Vn(e);if(r instanceof hi){if(i=pi(r),(null!=i?(u=i,u instanceof hi?mi(u):1):0)>l+1){const e=Vn(pi(r));if(e instanceof hi)return yi(yi(_i(r),fi(r),_i(e)),fi(e),yi(pi(e),n,t));throw new Error("internal error: Set.rebalance")}return yi(_i(r),fi(r),yi(pi(r),n,t))}throw new Error("internal error: Set.rebalance")}return yi(e,n,t)}function Ci(e,n,t){if(null!=t){const r=t,o=0|e.Compare(n,fi(r));if(r instanceof hi)return o<0?vi(Ci(e,n,_i(r)),fi(r),pi(r)):0===o?t:vi(_i(r),fi(r),Ci(e,n,pi(r)));{const o=0|e.Compare(n,fi(r));return o<0?di(n,void 0,t,2):0===o?t:di(n,t,void 0,2)}}return ai(n)}function bi(e,n,t){e:for(;;){const r=e,o=n,i=t;if(null!=i){const u=i,s=0|r.Compare(o,fi(u));if(u instanceof hi){if(s<0){e=r,n=o,t=_i(u);continue e}if(0===s)return!0;e=r,n=o,t=pi(u);continue e}return 0===s}return!1}}function Si(e,n){e:for(;;){const t=e,r=n;if(null!=r){const o=r;if(o instanceof hi){Si(t,_i(o)),t(fi(o)),e=t,n=pi(o);continue e}t(fi(o))}break}}class Ei extends Dn{constructor(e,n){super(),this.stack=e,this.started=n}}function xi(e){e:for(;;){const n=e;if(at(n))return st();{const t=ft(n),r=ht(n);if(null!=t){const o=t;if(o instanceof hi){e=gt([_i(o),ai(fi(o)),pi(o)],r);continue e}return n}e=r;continue e}}}function ki(e){return new Ei(xi(ct(e)),!1)}function Ti(e){if(e.started){const n=e.stack;if(at(n))return function(){throw new Error("Enumeration already started")}();if(null!=ft(n))return fi(ft(n));throw new Error("Please report error: Set iterator, unexpected stack for current")}return function(){throw new Error("Enumeration not started")}()}function Ii(e){let n=ki(e);return{"System.Collections.Generic.IEnumerator`1.get_Current":()=>Ti(n),"System.Collections.IEnumerator.get_Current":()=>Ti(n),"System.Collections.IEnumerator.MoveNext":()=>function(e){if(e.started){const n=e.stack;if(at(n))return!1;if(null!=ft(n)){if(ft(n)instanceof hi)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=xi(ht(n)),!at(e.stack)}throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}return e.started=!0,!at(e.stack)}(n),"System.Collections.IEnumerator.Reset"(){n=ki(e)},Dispose(){}}}function Oi(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(at(u[0]))return at(u[1])?0:-1;if(at(u[1]))return 1;if(null!=ft(u[1]))if(null!=ft(u[0])){const s=ft(u[0]),l=ft(u[1]);if(s instanceof hi)if(null==_i(s)){if(!(l instanceof hi)){const o=0|r.Compare(fi(s),fi(l));if(0!==o)return 0|o;e=r,n=lt(pi(s),ht(u[0])),t=lt(void 0,ht(u[1]));continue e}if(null==_i(l)){const o=0|r.Compare(fi(s),fi(l));if(0!==o)return 0|o;e=r,n=lt(pi(s),ht(u[0])),t=lt(pi(l),ht(u[1]));continue e}{const u=[o,i];let s,l,c,a,f;switch(at(u[0])?at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2:null!=ft(u[0])?(s=0,l=ht(u[0]),c=ft(u[0])):at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2,s){case 0:if(c instanceof hi){e=r,n=gt([_i(c),di(fi(c),void 0,pi(c),0)],l),t=i;continue e}e=r,n=gt([void 0,ai(fi(c))],l),t=i;continue e;case 1:if(f instanceof hi){e=r,n=o,t=gt([_i(f),di(fi(f),void 0,pi(f),0)],a);continue e}e=r,n=o,t=gt([void 0,ai(fi(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=[o,i];let s,l,c,a,f;switch(at(u[0])?at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2:null!=ft(u[0])?(s=0,l=ht(u[0]),c=ft(u[0])):at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2,s){case 0:if(c instanceof hi){e=r,n=gt([_i(c),di(fi(c),void 0,pi(c),0)],l),t=i;continue e}e=r,n=gt([void 0,ai(fi(c))],l),t=i;continue e;case 1:if(f instanceof hi){e=r,n=o,t=gt([_i(f),di(fi(f),void 0,pi(f),0)],a);continue e}e=r,n=o,t=gt([void 0,ai(fi(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(!(l instanceof hi)){const o=0|r.Compare(fi(s),fi(l));if(0!==o)return 0|o;e=r,n=ht(u[0]),t=ht(u[1]);continue e}if(null==_i(l)){const o=0|r.Compare(fi(s),fi(l));if(0!==o)return 0|o;e=r,n=lt(void 0,ht(u[0])),t=lt(pi(l),ht(u[1]));continue e}{const u=[o,i];let s,l,c,a,f;switch(at(u[0])?at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2:null!=ft(u[0])?(s=0,l=ht(u[0]),c=ft(u[0])):at(u[1])?s=2:null!=ft(u[1])?(s=1,a=ht(u[1]),f=ft(u[1])):s=2,s){case 0:if(c instanceof hi){e=r,n=gt([_i(c),di(fi(c),void 0,pi(c),0)],l),t=i;continue e}e=r,n=gt([void 0,ai(fi(c))],l),t=i;continue e;case 1:if(f instanceof hi){e=r,n=o,t=gt([_i(f),di(fi(f),void 0,pi(f),0)],a);continue e}e=r,n=o,t=gt([void 0,ai(fi(f))],a);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}}else{ft(u[1]);const s=[o,i];let l,c,a,f,h;switch(at(s[0])?at(s[1])?l=2:null!=ft(s[1])?(l=1,f=ht(s[1]),h=ft(s[1])):l=2:null!=ft(s[0])?(l=0,c=ht(s[0]),a=ft(s[0])):at(s[1])?l=2:null!=ft(s[1])?(l=1,f=ht(s[1]),h=ft(s[1])):l=2,l){case 0:if(a instanceof hi){e=r,n=gt([_i(a),di(fi(a),void 0,pi(a),0)],c),t=i;continue e}e=r,n=gt([void 0,ai(fi(a))],c),t=i;continue e;case 1:if(h instanceof hi){e=r,n=o,t=gt([_i(h),di(fi(h),void 0,pi(h),0)],f);continue e}e=r,n=o,t=gt([void 0,ai(fi(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}else{if(null==ft(u[0])){e=r,n=ht(u[0]),t=ht(u[1]);continue e}{ft(u[0]);const s=[o,i];let l,c,a,f,h;switch(at(s[0])?at(s[1])?l=2:null!=ft(s[1])?(l=1,f=ht(s[1]),h=ft(s[1])):l=2:null!=ft(s[0])?(l=0,c=ht(s[0]),a=ft(s[0])):at(s[1])?l=2:null!=ft(s[1])?(l=1,f=ht(s[1]),h=ft(s[1])):l=2,l){case 0:if(a instanceof hi){e=r,n=gt([_i(a),di(fi(a),void 0,pi(a),0)],c),t=i;continue e}e=r,n=gt([void 0,ai(fi(a))],c),t=i;continue e;case 1:if(h instanceof hi){e=r,n=o,t=gt([_i(h),di(fi(h),void 0,pi(h),0)],f);continue e}e=r,n=o,t=gt([void 0,ai(fi(h))],f);continue e;case 2:throw new Error("unexpected state in SetTree.compareStacks")}}}break}}(e,ct(n),ct(t))}function Mi(e,n,t){let r=t;Si((e=>{n[r]=e,r=r+1|0}),e)}function Ni(e,n){if(Be(n))return function(e,n){return Kn(((n,t)=>Ci(e,t,n)),void 0,n)}(e,n);if(n instanceof et)return function(e,n){return _t(((n,t)=>Ci(e,t,n)),void 0,n)}(e,n);{const t=Ve(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=Ci(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),t=i}}(e,void 0,t)}finally{We(t)}}}class Ai{constructor(e,n){this.comparer=e,this.tree=n}GetHashCode(){return 0|function(e){let n,t=0;const r=Ve(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();)t=0|(n=0|tn(r["System.Collections.Generic.IEnumerator`1.get_Current"]()),(t<<1)+n+631)}finally{We(r)}return 0|Math.abs(t)}(this)}Equals(e){return e instanceof Ai&&0===Oi(Di(this),Pi(this),Pi(e))}toString(){return"set ["+Ln("; ",nr((e=>Nn(e)),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(e){return Array.from(this)}CompareTo(e){return 0|Oi(Di(this),Pi(this),Pi(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 bi(Di(this),e,Pi(this))}"System.Collections.Generic.ICollection`1.CopyToZ2E171D71"(e,n){Mi(Pi(this),e,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return 0|Fi(this)}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return 0|Fi(this)}GetEnumerator(){return Ii(Pi(this))}[Symbol.iterator](){return Ze(this.GetEnumerator())}"System.Collections.IEnumerable.GetEnumerator"(){return Ii(Pi(this))}get size(){return 0|Fi(this)}add(e){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(e){throw new Error("Set cannot be mutated")}has(e){return function(e,n){return bi(Di(e),n,Pi(e))}(this,e)}keys(){return nr((e=>e),this)}values(){return nr((e=>e),this)}entries(){return nr((e=>[e,e]),this)}forEach(e,n){const t=this;er((n=>{e(n,n,t)}),t)}}function Di(e){return e.comparer}function Pi(e){return e.tree}function Fi(e){return wi(Pi(e))}function Ri(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 Ui(e,n,t){const r=n(e,t);if(1===r.tag){const e=r.fields[0];return new bt(1,function(e,n){const t=2===n.tag?Ri(n.fields[0],n.fields[1],!0):1===n.tag?Ri(n.fields[0],n.fields[1],!1)+"\nReason: "+n.fields[2]:3===n.tag?Ri(n.fields[0],n.fields[1],!0):4===n.tag?Ri(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"+Ln("\n\n",n.fields[0]):6===n.tag?"The following `failure` occurred with the decoder: "+n.fields[0]:Ri(n.fields[0],n.fields[1],!1);return 7===n.tag?t:"Error at: `"+e+"`\n"+t}(e[0],e[1]))}return new bt(0,r.fields[0])}function Gi(e,n){try{return Ui("$",e,JSON.parse(n))}catch(e){if(e instanceof SyntaxError)return new bt(1,"Given an invalid JSON: "+e.message);throw e}}const Hi=e=>n=>{let t,r,o;const i="a sbyte",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?-128<=t&&t<=127?new bt(0,(t+128&255)-128):(f=[u,new jr(1,i,t,"Value was either too large or too small for a sbyte")],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!1,8,new Pn((()=>o),(e=>{o=0|e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f},ji=e=>n=>{let t,r,o;const i="a byte",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?0<=t&&t<=255?new bt(0,255&t):(f=[u,new jr(1,i,t,"Value was either too large or too small for a byte")],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!0,8,new Pn((()=>o),(e=>{o=e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f},$i=e=>n=>{let t,r,o;const i="an int16",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?-32768<=t&&t<=32767?new bt(0,(t+32768&65535)-32768):(f=[u,new jr(1,i,t,"Value was either too large or too small for "+i)],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!1,16,new Pn((()=>o),(e=>{o=0|e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f},Bi=e=>n=>{let t,r,o;const i="an uint16",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?0<=t&&t<=65535?new bt(0,65535&t):(f=[u,new jr(1,i,t,"Value was either too large or too small for "+i)],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!0,16,new Pn((()=>o),(e=>{o=e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f},Li=e=>n=>{let t,r,o;const i="an int",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?-2147483648<=t&&t<=2147483647?new bt(0,~~t):(f=[u,new jr(1,i,t,"Value was either too large or too small for an int")],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!1,32,new Pn((()=>o),(e=>{o=0|e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f},Wi=e=>n=>{let t,r,o;const i="an uint32",u=e,s=n;return"number"==typeof s?(t=s,isFinite(t)&&Math.floor(t)===t?0<=t&&t<=4294967295?new bt(0,t>>>0):(f=[u,new jr(1,i,t,"Value was either too large or too small for "+i)],new bt(1,f)):(a=[u,new jr(1,i,t,"Value is not an integral value")],new bt(1,a))):"string"==typeof s?(o=0,r=[Kr(s,511,!0,32,new Pn((()=>o),(e=>{o=e}))),o],r[0]?new bt(0,r[1]):(c=[u,new jr(0,i,s)],new bt(1,c))):(l=[u,new jr(0,i,s)],new bt(1,l));var l,c,a,f};function qi(e,n,t,r){let o;const i=t+".["+Xe(e)+"]";if(Array.isArray(r)){const t=r;return e<t.length?n(i,t[e]):new bt(1,[i,new jr(5,"a longer array. Need index `"+Xe(e)+"` but there are only `"+(o=t.length,Xe(o)+"` entries"),r)])}return new bt(1,[i,new jr(0,"an array",r)])}function zi(e,n,t){if(Array.isArray(t)){let r=-1;return St(pt,Kn(((t,o)=>{if(r=r+1|0,0===t.tag){const i=e(n+".["+Xe(r)+"]",o);return 0===i.tag?new bt(0,lt(i.fields[0],t.fields[0])):new bt(1,i.fields[0])}return t}),new bt(0,st()),t))}return new bt(1,[n,new jr(0,"a list",t)])}function Vi(e,n,t){if(Array.isArray(t)){let r=-1;const o=t;return Kn(((t,o)=>{if(r=r+1|0,0===t.tag){const i=t.fields[0],u=e(n+".["+Xe(r)+"]",o);return 0===u.tag?(i[r]=u.fields[0],new bt(0,i)):new bt(1,u.fields[0])}return t}),new bt(0,Yn(new Array(o.length),0,o.length,null)),o)}return new bt(1,[n,new jr(0,"an array",t)])}function Zi(e,n,t,r){const o=n(t,r);return 0===o.tag?e(o.fields[0],t,r):new bt(1,o.fields[0])}function Ji(e,n){let t;const r=e;return t=e=>n=>qi(0,r,e,n),e=>r=>Zi(dn(3,(e=>{let t;const r=n;return t=e=>n=>qi(1,r,e,n),n=>r=>Zi(((n,t,r)=>new bt(0,[e,n])),dn(2,t),n,r)})),dn(2,t),e,r)}function Yi(e){return Mr(e)}function Xi(e){return function(e,n){return new Ai(e,n)}(n={Compare:an},Ni(n,e));var n}function Ki(e,n,t,r){let o,i;return n.length!==r.length?new bt(1,[t,new jr(6,(o=0|r.length,i=0|n.length,jn(Gn("Expected %i %s but got %i"))(i)(e)(o)))]):Qn(((e,n,r)=>0===r.tag?St((e=>lt(e,r.fields[0])),n(t)(e)):r),r,n,new bt(0,st()))}function Qi(e,n,t,r,o,i){const u=function(e,n){return n.find((e=>ei(e)===r))}(0,function(e){if(null!=e.cases)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}(t));if(null!=u){const t=u;return 0===i.length?new bt(0,li(t,[])):St((e=>li(t,dt(e))),Ki("union fields",Xn((t=>nu(e,n,!1,t[1])),function(e){return null==e.fields?[]:e.fields}(t)),o,i))}return new bt(1,[o,new jr(6,"Cannot find case "+r+" in "+ni(t))])}function eu(e,n,t,r){const o=new Pn(null),i=function(e,n,t){return function(e,n,t){return Or(e.comparer,mr(e.comparer,n,t,e.tree))}(t,e,n)}(ni(r),o,e);let u;if(function(e){return e instanceof zo?null!=e.fields:e instanceof Dn}(r)){const e=Xn((e=>[qr(n,ei(e)),nu(i,n,!1,e[1])]),ui(r));u=n=>t=>St((e=>function(e,n){const t=ui(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,dt(e))),function(e,n,t){return null===t||Object.getPrototypeOf(t||!1)!==Object.prototype?new bt(1,[n,new jr(0,"an object",t)]):function(e,n,t){return n.reduceRight(((n,t)=>e(t,n)),t)}(dn(2,(e=>{const r=e[0];return o=>0===o.tag?St((e=>lt(e,o.fields[0])),e[1](n+"."+r)(t[r])):o})),e,new bt(0,st()))}(e,n,t))}else if(function(e){return e instanceof zo?null!=e.cases:e instanceof An}(r))u=e=>t=>{if("string"==typeof t)return Qi(i,n,r,t,e,[]);if(Array.isArray(t)){const o=t;return Qi(i,n,r,o[0],e,o.slice(1,o.length))}return new bt(1,[e,new jr(0,"a string or array",t)])};else{if(!t){let e;const n=ni(r);throw e=jn(Gn("Cannot generate auto decoder for %s. Please pass an extra decoder."))(n),new Error(e)}u=e=>n=>new bt(1,[e,new jr(2,"an extra coder for "+ni(r),n)])}return o.contents=u,u}function nu(e,n,t,r){let o,i,u;const s=ni(r),l=function(e,n){return gr(e.comparer,n,e.tree)}(e,s);if(null==l){if(function(e){return null!=ti(e)}(r)){const t=nu(e,n,!1,ti(r));return e=>n=>Vi(dn(2,t),e,n)}if(ri(r)){const e=ni(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=Hi(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,e.toString())):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}};if("System.Byte"===e)return e=>n=>{const t=r,o=e,i=n,u=ji(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,e.toString())):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}};if("System.Int16"===e)return e=>n=>{const t=r,o=e,i=n,u=$i(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,e.toString(s))):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}var s};if("System.UInt16"===e)return e=>n=>{const t=r,o=e,i=n,u=Bi(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,e.toString())):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}};if("System.Int32"===e)return e=>n=>{const t=r,o=e,i=n,u=Li(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,Xe(e))):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}};if("System.UInt32"===e)return e=>n=>{const t=r,o=e,i=n,u=Wi(o)(i);if(1===u.tag)return new bt(1,u.fields[0]);{const e=u.fields[0];return Kt(e,oi(t),{Equals:(e,n)=>e===n,GetHashCode:en})?new bt(0,ii(t,e.toString())):new bt(1,[o,new jr(1,ni(t),i,"Unkown value provided for the enum")])}};{const e=ni(r),n=Hn((e=>{throw new Error(e)}),Gn("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=>n(e)}}if(function(e){return null!=e.generics&&e.generics.length>0}(r)){if(si(r)){const t=Xn((t=>nu(e,n,!1,t)),function(e){if(si(e)&&null!=e.generics)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}(r));return e=>n=>Array.isArray(n)?St((e=>dt(e)),Ki("tuple elements",t,e,n)):new bt(1,[e,new jr(0,"an array",n)])}{const s=ni(function(e){return null==e.generics?e:new zo(e.fullname,e.generics.map((()=>Ko)))}(r));if("Microsoft.FSharp.Core.FSharpOption`1[System.Object]"===s)return o=nu(e,n,!0,Vo(r)[0]),e=>n=>{return t=dn(2,o),r=e,null==(i=n)?new bt(0,void 0):St(zn,t(r,i));var t,r,i};if("Microsoft.FSharp.Collections.FSharpList`1[System.Object]"===s)return i=nu(e,n,!1,Vo(r)[0]),e=>n=>zi(dn(2,i),e,n);if("Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"===s){const t=nu(e,n,!1,Vo(r)[0]),o=nu(e,n,!1,Vo(r)[1]);let i;const s=wt([e=>n=>function(e,n,t,r){return null===r||Object.getPrototypeOf(r||!1)!==Object.prototype?new bt(1,[t,new jr(0,"an object",r)]):Qt(((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 bt(0,lt([u.fields[0],e.fields[0]],o.fields[0])):new bt(1,e.fields[0])}return new bt(1,u.fields[0])}return o}),new bt(0,st()),Object.keys(r))}(dn(2,t),dn(2,o),e,n),(u=Ji(dn(2,t),dn(2,o)),e=>n=>zi(dn(2,u),e,n))]);return i=e=>n=>{return t=e,r=n,((e,n)=>{e:for(;;){const o=e,i=n;if(at(o))return new bt(1,[t,new jr(7,i)]);{const u=Ui(t,dn(2,ft(o)),r);if(1===u.tag){e=ht(o),n=yt(i,ct(u.fields[0]));continue e}return new bt(0,u.fields[0])}}})(s,st());var t,r},e=>n=>function(e,n,t,r){const o=n(t,r);return 1===o.tag?new bt(1,o.fields[0]):new bt(0,e(o.fields[0]))}(Yi,dn(2,i),e,n)}if("Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"===s){const t=nu(e,n,!1,Vo(r)[0]);return e=>n=>{const r=Vi(dn(2,t),e,n);return 0===r.tag?new bt(0,Xi(r.fields[0])):new bt(1,r.fields[0])}}return eu(e,n,t,r)}}return"System.Boolean"===s?e=>n=>{return t=e,"boolean"==typeof(r=n)?new bt(0,r):new bt(1,[t,new jr(0,"a boolean",r)]);var t,r}:"Microsoft.FSharp.Core.Unit"===s?e=>n=>{return t=e,null==(r=n)?new bt(0,void 0):new bt(1,[t,new jr(0,"null",r)]);var t,r}:"System.String"===s?e=>n=>{return t=e,"string"==typeof(r=n)?new bt(0,r):new bt(1,[t,new jr(0,"a string",r)]);var t,r}:"System.SByte"===s?Hi:"System.Byte"===s?ji:"System.Int16"===s?$i:"System.UInt16"===s?Bi:"System.Int32"===s?Li:"System.UInt32"===s?Wi:"System.Double"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new bt(0,r):new bt(1,[t,new jr(0,"a float",r)]);var t,r}:"System.Single"===s?e=>n=>{return t=e,"number"==typeof(r=n)?new bt(0,r):new bt(1,[t,new jr(0,"a float32",r)]);var t,r}:"System.DateTime"===s?e=>n=>function(e,n){if("string"==typeof n){let r,o=yn(-621355968e5,0);return r=[Cn(n,new Pn((()=>o),(e=>{o=e}))),o],r[0]?new bt(0,1===(t=r[1]).kind?t:yn(t.getTime(),1)):new bt(1,[e,new jr(0,"a datetime",n)])}var t;return new bt(1,[e,new jr(0,"a datetime",n)])}(e,n):"System.DateTimeOffset"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=Qr(-621355968e5,0);return t=[eo(n,new Pn((()=>r),(e=>{r=e}))),r],t[0]?new bt(0,t[1]):new bt(1,[e,new jr(0,"a datetimeoffset",n)])}return new bt(1,[e,new jr(0,"a datetime",n)])}(e,n):"System.TimeSpan"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r=0;return t=[qo(n,new Pn((()=>r),(e=>{r=e}))),r],t[0]?new bt(0,t[1]):new bt(1,[e,new jr(0,"a timespan",n)])}return new bt(1,[e,new jr(0,"a timespan",n)])}(e,n):"System.Guid"===s?e=>n=>function(e,n){if("string"==typeof n){let t,r="00000000-0000-0000-0000-000000000000";return t=[Jr(n,new Pn((()=>r),(e=>{r=e}))),r],t[0]?new bt(0,t[1]):new bt(1,[e,new jr(0,"a guid",n)])}return new bt(1,[e,new jr(0,"a guid",n)])}(e,n):"System.Object"===s?e=>e=>new bt(0,e):eu(e,n,t,r)}{const e=l;return n=>t=>e.contents(n)(t)}}function tu(e){return null!=e?(n=(e,n)=>new Pn(n[1]),function(e,n){return Or(e.comparer,Cr(n,e.tree))}(e.Coders,n)):Pr();var n}function ru(e,n,t){const r=Zn(n,new $r(0));return nu(tu(t),r,!1,e)}class ou extends Dn{constructor(e,n){super(),this.PartnerFunds=e,this.AccountFunds=n}}class iu extends Dn{constructor(e){super(),this.DefaultFundUSI=e}}function uu(e){return`${e}/super-selection/admin`}function su(e,n){return Mt(0,(()=>{const t=(r=function(e){return new Ft(0,"Authorization",e)}(jn(Gn("Bearer %s"))(e)),new Rt((o=n).url,o.method,yt(o.headers,ct(r)),o.withCredentials,o.overridenMimeType,o.overridenResponseType,o.timeout,o.content));var r,o;const i=(e=>{return n=e,It.Bind(n,(e=>(e=>{return n=e,It.Return(n);var n})(new bt(0,e))));var n})(Hr(t));return It.Delay((()=>It.Bind(i,(e=>{let n;const r=e;return 1===r.tag?It.Return(new bt(1,r.fields[0])):It.ReturnFrom((n=r.fields[0],429===n.statusCode||n.statusCode>=500?(o=Hr(t),It.Bind(o,(e=>{return n=new bt(0,e),t=n,It.Return(t);var n,t}))):Ot(0,n)));var o}))))}))}function lu(e,n,t,r){return Mt(0,(()=>{let o;const i=su(n,Gr(new Pt(0),Ur((o=uu(e),`${o}/promoted-funds/${t}/${function(e){return null==e?null:Vn(e)}(r)}`))));return It.Delay((()=>It.Bind(i,(e=>{let n;const t=e;return 1===t.tag?It.Return(new bt(1,t.fields[0])):It.ReturnFrom((n=t.fields[0],200===n.statusCode?(o=Gi(dn(2,ru(Yo("SuperSelection.AdminUI.Dto.PromotedFunds",[],ou,(()=>[["PartnerFunds",Xo(Qo)],["AccountFunds",Xo(Qo)]])),new $r(1),void 0)),n.responseText),It.Return(o)):(r=new bt(1,"Unexpected response from backend"),It.Return(r))));var r,o}))))}))}const cu=(e,n)=>{re((()=>{const n=e();return()=>{n.Dispose()}}),n)};function au(e){return{Dispose(){e()}}}function fu(e){return vt.useState(e)}function hu(e,n){cu(e,n)}function du(e){return vt.useRef(e)}function _u(e){const n=du(e),t=function(e,t){const r=Zn([],[]);return vt.useCallback((e=>n.current(e)),r)}();var r,o;return r=()=>{n.current=e},o=e=>(r(),au((()=>{}))),oe((()=>{const e=o();return()=>{e.Dispose()}})),t}class pu extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function mu(e,n,t){mt((t=>{try{t(n)}catch(n){e(n)}}),t)}function gu(){return st()}class wu extends Dn{constructor(e,n){super(),this.PromotedFunds=e,this.Configuration=n}}class yu extends Dn{constructor(e){super(),this.PromotedFunds=e}}class vu extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Account","Partner"]}}class Cu extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["LoadData"]}}class bu extends Dn{constructor(e){super(),this.Data=e}}function Su(){return[new bu(new pu(0)),gu()]}function Eu(e,n){return[new bu(e.fields[0]),gu()]}function xu(e,n,t,r,o){const i=function(e,n,t,r){const o=0|an(e,t);if(0===o)throw new Error("The step of a range cannot be zero");const i=o>0;return t=>{const o=0|an(t,n);return i&&o<=0||!i&&o>=0?[t,r(t,e)]:void 0}}(n,t,r,o);return Jt((()=>{return n=i,t=e,Vt((()=>function(e,n){let t,r=n;return qt((()=>{if(null!=t){const e=t[0];return t[1],e}return $t()}),(()=>{if(t=e(r),null!=t){t[0];const e=t[1];return r=e,!0}return!1}),(()=>{}))}(n,t)));var n,t}))}class ku extends An{constructor(e,...n){super(),this.tag=0|e,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Tu{constructor(e){this.state=new ku(0,Yn(new Array(fn(ln,e,10)),0,fn(ln,e,10),null),0)}}function Iu(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 ku(0,o,t):new ku(1,o,t,i),zn(o[r])}}function Ou(e,n){const t=e.state;if(1===t.tag){const i=0|t.fields[1],u=0|t.fields[2],s=t.fields[0];s[i]=n;const l=(i+1)%s.length|0;e.state=l===u?new ku(1,(r=u,o=s,Array.from(Jt((()=>Xt(tr(r,o),Jt((()=>{return Xt((e=r,n=o,t=()=>Zt(n),i=(n,t)=>{if(n<e){if(t["System.Collections.IEnumerator.MoveNext"]())return zn(t["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(jt+"\\nParameter name: source")}},u=We,Vt((()=>{let e=-1;return zt(t,(n=>(e=e+1|0,i(e,n))),u)}))),Jt((()=>{return n=e=>function(e){return Jt((()=>function(e,n){const t=Jn(void 0,1);return t[0]=e,t}(e)))}(null),e=o.length,t=xu(0,1,e,0,((e,n)=>e+n)),Jt((()=>Yt(nr(n,t))));var e,n,t})));var e,n,t,i,u}))))))),s.length,0):new ku(1,s,l,u)}else{const r=0|t.fields[1],o=t.fields[0];o[r]=n;const i=(r+1)%o.length|0;e.state=new ku(1,o,i,r)}var r,o}class Mu extends Dn{constructor(e,n,t,r,o,i,u){super(),this.init=e,this.update=n,this.subscribe=t,this.view=r,this.setState=o,this.onError=i,this.syncDispatch=u}}function Nu(e,n){const t=n.init(e),r=t[0],o=new Tu(10);let i=!1,u=r;const s=function(e,n,t){if(null!=n){if(hn in n){n=n[hn];for(let e=0;e<t.length;e++)n=n(t[e]);return n}return _n(t,1,n)}}(0,n.syncDispatch,[e=>{if(i)Ou(o,e);else{i=!0;let t=zn(e);for(;null!=t;){const e=Vn(t);try{const t=n.update(e,u),r=t[0];n.setState(r,s),mu((t=>{n.onError([jn(Gn("Error in command while handling: %A"))(e),t])}),s,t[1]),u=r}catch(t){n.onError([jn(Gn("Unable to process the message: %A"))(e),t])}t=Iu(o)}i=!1}}]);n.setState(r,s),mu((e=>{n.onError(["Error intitializing:",e])}),s,function(e){const n=tt();let t=n;const r=e=>{t=_t(((e,n)=>{const t=new et(n,void 0);return e.tail=t,t}),t,e)};if(Be(e))e.forEach(r);else if(e instanceof et)mt(r,e);else{const n=Ve(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();)r(n["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{We(n)}}const o=t,i=tt();return o.tail=i,ut(n)}(wt([(()=>{try{return n.subscribe(r)}catch(e){return n.onError(["Unable to subscribe:",e]),gu()}})(),t[1]])))}class Au{constructor(){this.hasDisposedOnce=!1,this.state=void 0,this.listener=void 0,this.dispatcher=void 0}}function Du(){return new Au}function Pu(e,n,t,r){Nu(n,function(e,n){return new Mu(n.init,n.update,n.subscribe,n.view,((e,n)=>{!function(e,n,t){e.state=zn(n),e.dispatcher=t;const r=e.listener;null!=r&&r(n)}(t,e,n)}),n.onError,n.syncDispatch)}(0,e()));const o=function(e){return e.state}(t);if(null!=o)return Vn(o);throw new Error("Elmish program has not initialized")}function Fu(e,n){return function(e,n,t){const r=fu(Du)[0],o=fu((()=>Pu(e,n,r))),i=o[1];return hu((()=>(function(e){return e.hasDisposedOnce}(r)&&i(Pu(e,n,r)),au((()=>{!function(e){const n=e.state;if(null!=n){const e=Vn(n);Le(e)&&We(e)}e.dispatcher=void 0,e.state=void 0,e.hasDisposedOnce=!0}(r)})))),Zn(t,[])),function(e,n){null==e.listener&&(e.listener=n)}(r,i),[o[0],e=>{!function(e,n){const t=e.dispatcher;null!=t&&t(n)}(r,e)}]}(e,void 0,n)}function Ru(){const e=ct(h("span",{children:["Please wait..."]}));return h("div",{children:vt.Children.toArray(Array.from(e))})}function Uu(e){return h("label",{className:"block text-sm font-medium text-gray-700 sm:mt-px sm:pt-2",children:e})}function Gu(e){return h("div",{className:"mt-1 sm:mt-0 sm:col-span-2",children:vt.Children.toArray([e])})}function Hu(e,n){let t;return h("div",function(e){const n={};for(const t of e)n[t[0]]=t[1];return n}(wt([["className","sm:grid sm:grid-cols-4 sm:gap-4 sm:items-start sm:border-b sm:border-gray-200 sm:py-5"],(t=[Uu(e),Gu(n)],["children",vt.Children.toArray(Array.from(t))])])))}function ju(e){return h("input",{type:"text",className:"max-w-lg block w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 sm:max-w-xs sm:text-sm border-gray-300 rounded-md",value:e,readOnly:!0})}function $u(e){const n=ct(h("div",{children:vt.Children.toArray(Array.from(e))}));return h("form",{children:vt.Children.toArray(Array.from(n))})}function Bu(e){const n=ct(h("span",{children:[e.error]}));return h("div",{children:vt.Children.toArray(Array.from(n))})}function Lu(e){const n=e.accountId;return null==n?(t=e.backendUrl,r=e.accessToken,o=e.partnerId,Mt(0,(()=>{return e=lu(t,r,o,void 0),It.Bind(e,(e=>(e=>{return n=e,It.Return(n);var n})(St((e=>new vu(1,new yu(e))),e))));var e}))):function(e,n,t,r){return Mt(0,(()=>{const o=lu(e,n,t,r);return It.Delay((()=>It.Bind(o,(t=>{const o=t;return 1===o.tag?It.Return(new bt(1,o.fields[0])):It.ReturnFrom((i=function(e,n,t){return Mt(0,(()=>{let r;const o=su(n,Gr(new Pt(0),Ur((r=uu(e),`${r}/configurations/${t}`))));return It.Delay((()=>It.Bind(o,(e=>{let n,t;const r=e;return 1===r.tag?It.Return(new bt(1,r.fields[0])):It.ReturnFrom((n=r.fields[0],t=0|n.statusCode,200===t?(i=Gi(dn(2,ru(Yo("SuperSelection.AdminUI.Dto.AccountConfiguration",[],iu,(()=>{return[["DefaultFundUSI",(e=Qo,new zo("Microsoft.FSharp.Core.FSharpOption`1",[e]))]];var e})),new $r(1),void 0)),n.responseText),It.Return(i)):404===t?Ot(0,new iu(void 0)):(o=new bt(1,"Unexpected response from backend"),It.Return(o))));var o,i}))))}))}(e,n,r),It.Bind(i,(e=>(e=>{return n=e,It.Return(n);var n})(St((e=>new vu(0,new wu(o.fields[0],e))),e))))));var i}))))}))}(e.backendUrl,e.accessToken,e.partnerId,n);var t,r,o}function Wu(e){const n=[e.PartnerFunds,e.AccountFunds];let t,r;switch(at(n[0])?at(n[1])?t=0:(t=2,r=n[1]):at(n[1])?t=1:(t=2,r=n[1]),t){case 0:return"australian-retirement-trust, slate";case 1:return Ln(", ",n[0]);case 2:return Ln(", ",r)}}function qu(e){const n=(t=Su,r=Eu,Fu((()=>function(e,n,t){return new Mu(e,n,(e=>gu()),t,((e,n)=>{t(e,n)}),(e=>{var n,t;n=e[0],t=e[1],console.error(zn(n),t)}),dn(2,(e=>e)))}(t,r,((e,n)=>{}))),undefined));var t,r;(function(e,n){cu((n=>(e(),au((()=>{})))),[])})(function(e,n){const t=du(new Et(!1));return hu((()=>au((()=>{t.current.cancel()}))),[]),_u((r=>{var o;null!=(o=t.current)&&o.isCancelled||Dt(It.Delay((()=>It.TryWith(It.Delay((()=>(n(new pu(1)),It.Bind(e(r),(e=>(n(new pu(2,e)),It.Zero())))))),(e=>(n(new pu(3,e)),It.Zero()))))),t.current)}))}((()=>Lu(e)),(e=>{n[1](new Cu(0,e))})));const o=n[0].Data;let i,u,s,l;switch(1===o.tag?i=0:2===o.tag?1===o.fields[0].tag?(i=2,s=o.fields[0].fields[0]):(i=1,u=o.fields[0].fields[0]):3===o.tag?(i=3,l=o.fields[0]):i=0,i){case 0:return h(Ru,null);case 1:if(1===u.tag){const e=ct($u([Hu("Promoted Funds",ju(Wu(u.fields[0].PromotedFunds)))]));return h("div",{children:vt.Children.toArray(Array.from(e))})}{const e=u.fields[0];return $u([Hu("Default USI",ju(Zn(e.Configuration.DefaultFundUSI,"-"))),Hu("Promoted Funds",ju(Wu(e.PromotedFunds)))])}case 2:return h(Bu,{error:s});case 3:return h(Bu,{error:Nn(l)})}}W((e=>h(Ct,e)),"superhero-super-selection"),W((e=>h(qu,e)),"superhero-super-configuration")})();
|