@flarehr/apollo-workplace-policies 0.4.4 → 0.5.5

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.
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M15 18L9 12L15 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9 6L15 12L9 18" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,6 @@
1
+ <svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="Loader Mini">
3
+ <path id="Ellipse 2" d="M18.5 10C18.5 14.4183 14.9183 18 10.5 18C6.08172 18 2.5 14.4183 2.5 10C2.5 5.58172 6.08172 2 10.5 2C14.9183 2 18.5 5.58172 18.5 10ZM4.49743 10C4.49743 13.3151 7.18487 16.0026 10.5 16.0026C13.8151 16.0026 16.5026 13.3151 16.5026 10C16.5026 6.68487 13.8151 3.99743 10.5 3.99743C7.18487 3.99743 4.49743 6.68487 4.49743 10Z" fill="white" fill-opacity="0.3"/>
4
+ <path id="Ellipse 2_2" d="M10.5 3C10.5 2.44772 10.9494 1.99356 11.4974 2.06242C12.2053 2.15137 12.8996 2.3348 13.5615 2.60896C14.5321 3.011 15.414 3.60028 16.1569 4.34315C16.8997 5.08602 17.489 5.96793 17.891 6.93853C18.1652 7.60043 18.3486 8.29473 18.4376 9.0026C18.5064 9.55057 18.0523 10 17.5 10C16.9477 10 16.5085 9.54925 16.4169 9.00462C16.342 8.55939 16.2169 8.12298 16.0433 7.7039C15.7417 6.97595 15.2998 6.31451 14.7426 5.75736C14.1855 5.20021 13.5241 4.75825 12.7961 4.45672C12.377 4.28313 11.9406 4.15804 11.4954 4.08314C10.9508 3.99152 10.5 3.55228 10.5 3Z" fill="white"/>
5
+ </g>
6
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18 12H6" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M12 6V12M12 12V18M12 12H18M12 12L6 12" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
+ </svg>
@@ -1,17 +1,17 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Dt,S,Po,Ye,kr,Ao,Ln,Oo,at={},No=[],Di=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_n=Array.isArray;function Ne(e,t){for(var n in t)e[n]=t[n];return e}function Ro(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Dt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Mt(e,i,r,o,null)}function Mt(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Po};return o==null&&S.vnode!=null&&S.vnode(s),s}function Fo(){return{current:null}}function Ie(e){return e.children}function Ee(e,t){this.props=e,this.context=t}function nn(e,t){if(t==null)return e.__?nn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?nn(e):null}function Do(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Do(e)}}function Hn(e){(!e.__d&&(e.__d=!0)&&Ye.push(e)&&!rn.__r++||kr!==S.debounceRendering)&&((kr=S.debounceRendering)||Ao)(rn)}function rn(){var e,t,n,r,o,s,i,l,c;for(Ye.sort(Ln);e=Ye.shift();)e.__d&&(t=Ye.length,r=void 0,o=void 0,s=void 0,l=(i=(n=e).__v).__e,(c=n.__P)&&(r=[],o=[],(s=Ne({},i)).__v=i.__v+1,er(c,i,s,n.__n,c.ownerSVGElement!==void 0,i.__h!=null?[l]:null,r,l??nn(i),i.__h,o),jo(r,i,o),i.__e!=l&&Do(i)),Ye.length>t&&Ye.sort(Ln));rn.__r=0}function Vo(e,t,n,r,o,s,i,l,c,a,f){var u,p,h,d,m,g,w,C,k,q,H=0,ee=r&&r.__k||No,Ze=ee.length,Je=Ze,te=t.length;for(n.__k=[],u=0;u<te;u++)(d=n.__k[u]=(d=t[u])==null||typeof d=="boolean"||typeof d=="function"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Mt(null,d,null,null,d):_n(d)?Mt(Ie,{children:d},null,null,null):d.__b>0?Mt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null&&(d.__=n,d.__b=n.__b+1,(C=Vi(d,ee,w=u+H,Je))===-1?h=at:(h=ee[C]||at,ee[C]=void 0,Je--),er(e,d,h,o,s,i,l,c,a,f),m=d.__e,(p=d.ref)&&h.ref!=p&&(h.ref&&tr(h.ref,null,d),f.push(p,d.__c||m,d)),m!=null&&(g==null&&(g=m),q=!(k=h===at||h.__v===null)&&C===w,k?C==-1&&H--:C!==w&&(C===w+1?(H++,q=!0):C>w?Je>te-w?(H+=C-w,q=!0):H--:H=C<w&&C==w-1?C-w:0),w=u+H,q=q||C==u&&!k,typeof d.type!="function"||C===w&&h.__k!==d.__k?typeof d.type=="function"||q?d.__d!==void 0?(c=d.__d,d.__d=void 0):c=m.nextSibling:c=Ho(e,m,c):c=Lo(d,c,e),typeof n.type=="function"&&(n.__d=c)));for(n.__e=g,u=Ze;u--;)ee[u]!=null&&(typeof n.type=="function"&&ee[u].__e!=null&&ee[u].__e==n.__d&&(n.__d=ee[u].__e.nextSibling),Uo(ee[u],ee[u]))}function Lo(e,t,n){for(var r,o=e.__k,s=0;o&&s<o.length;s++)(r=o[s])&&(r.__=e,t=typeof r.type=="function"?Lo(r,t,n):Ho(n,r.__e,t));return t}function Re(e,t){return t=t||[],e==null||typeof e=="boolean"||(_n(e)?e.some(function(n){Re(n,t)}):t.push(e)),t}function Ho(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Vi(e,t,n,r){var o=e.key,s=e.type,i=n-1,l=n+1,c=t[n];if(c===null||c&&o==c.key&&s===c.type)return n;if(r>(c!=null?1:0))for(;i>=0||l<t.length;){if(i>=0){if((c=t[i])&&o==c.key&&s===c.type)return i;i--}if(l<t.length){if((c=t[l])&&o==c.key&&s===c.type)return l;l++}}return-1}function Li(e,t,n,r,o){var s;for(s in n)s==="children"||s==="key"||s in t||on(e,s,null,n[s],r);for(s in t)o&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||on(e,s,t[s],n[s],r)}function Tr(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Di.test(t)?n:n+"px"}function on(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Tr(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Tr(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?Ir:$r,s):e.removeEventListener(t,s?Ir:$r,s);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function $r(e){return this.l[e.type+!1](S.event?S.event(e):e)}function Ir(e){return this.l[e.type+!0](S.event?S.event(e):e)}function er(e,t,n,r,o,s,i,l,c,a){var f,u,p,h,d,m,g,w,C,k,q,H,ee,Ze,Je,te=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(c=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(f=S.__b)&&f(t);try{e:if(typeof te=="function"){if(w=t.props,C=(f=te.contextType)&&r[f.__c],k=f?C?C.props.value:f.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in te&&te.prototype.render?t.__c=u=new te(w,k):(t.__c=u=new Ee(w,k),u.constructor=te,u.render=ji),C&&C.sub(u),u.props=w,u.state||(u.state={}),u.context=k,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),te.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ne({},u.__s)),Ne(u.__s,te.getDerivedStateFromProps(w,u.__s))),h=u.props,d=u.state,u.__v=t,p)te.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(te.getDerivedStateFromProps==null&&w!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Zt){Zt&&(Zt.__=t)}),q=0;q<u._sb.length;q++)u.__h.push(u._sb[q]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,k),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,d,m)})}if(u.context=k,u.props=w,u.__P=e,u.__e=!1,H=S.__r,ee=0,"prototype"in te&&te.prototype.render){for(u.state=u.__s,u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),Ze=0;Ze<u._sb.length;Ze++)u.__h.push(u._sb[Ze]);u._sb=[]}else do u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++ee<25);u.state=u.__s,u.getChildContext!=null&&(r=Ne(Ne({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(h,d)),Vo(e,_n(Je=f!=null&&f.type===Ie&&f.key==null?f.props.children:f)?Je:[Je],t,n,r,o,s,i,l,c,a),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),g&&(u.__E=u.__=null)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Hi(n.__e,t,n,r,o,s,i,c,a);(f=S.diffed)&&f(t)}catch(Zt){t.__v=null,(c||s!=null)&&(t.__e=l,t.__h=!!c,s[s.indexOf(l)]=null),S.__e(Zt,t,n)}}function jo(e,t,n){for(var r=0;r<n.length;r++)tr(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){S.__e(s,o.__v)}})}function Hi(e,t,n,r,o,s,i,l,c){var a,f,u,p=n.props,h=t.props,d=t.type,m=0;if(d==="svg"&&(o=!0),s!=null){for(;m<s.length;m++)if((a=s[m])&&"setAttribute"in a==!!d&&(d?a.localName===d:a.nodeType===3)){e=a,s[m]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,l=!1}if(d===null)p===h||l&&e.data===h||(e.data=h);else{if(s=s&&Dt.call(e.childNodes),f=(p=n.props||at).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!l){if(s!=null)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Li(e,h,p,o,l),u)t.__k=[];else if(Vo(e,_n(m=t.props.children)?m:[m],t,n,r,o&&d!=="foreignObject",s,i,s?s[0]:n.__k&&nn(n,0),l,c),s!=null)for(m=s.length;m--;)s[m]!=null&&Ro(s[m]);l||("value"in h&&(m=h.value)!==void 0&&(m!==e.value||d==="progress"&&!m||d==="option"&&m!==p.value)&&on(e,"value",m,p.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&on(e,"checked",m,p.checked,!1))}return e}function tr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){S.__e(r,n)}}function Uo(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||tr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){S.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Uo(r[o],t,n||typeof e.type!="function");n||e.__e==null||Ro(e.__e),e.__=e.__e=e.__d=void 0}function ji(e,t,n){return this.constructor(e,n)}function Ge(e,t,n){var r,o,s,i;S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],er(t,e=(!r&&n||t).__k=b(Ie,null,[e]),o||at,at,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Dt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),jo(s,e,i)}function nr(e,t){Ge(e,t,nr)}function rr(e,t,n){var r,o,s,i,l=Ne({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:l[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?Dt.call(arguments,2):n),Mt(e.type,l,r||e.key,o||e.ref,null)}function Bo(e,t){var n={__c:t="__cC"+Oo++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(l){l.__e=!0,Hn(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),l&&l.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Dt=No.slice,S={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},Po=0,Ee.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ne({},this.state),typeof e=="function"&&(e=e(Ne({},n),this.props)),e&&Ne(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hn(this))},Ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hn(this))},Ee.prototype.render=Ie,Ye=[],Ao=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ln=function(e,t){return e.__v.__b-t.__v.__b},rn.__r=0,Oo=0;var De,P,$n,Mr,_t=0,Go=[],Xt=[],Pr=S.__b,Ar=S.__r,Or=S.diffed,Nr=S.__c,Rr=S.unmount;function nt(e,t){S.__h&&S.__h(P,e,_t||t),_t=0;var n=P.__H||(P.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Xt}),n.__[e]}function Vt(e){return _t=1,or(Yo,e)}function or(e,t,n){var r=nt(De++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Yo(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],a=r.t(c,l);c!==a&&(r.__N=[a,r.__[1]],r.__c.setState({}))}],r.__c=P,!P.u)){var o=function(l,c,a){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,l,c,a);var u=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===l)&&(!s||s.call(this,l,c,a))};P.u=!0;var s=P.shouldComponentUpdate,i=P.componentWillUpdate;P.componentWillUpdate=function(l,c,a){if(this.__e){var f=s;s=void 0,o(l,c,a),s=f}i&&i.call(this,l,c,a)},P.shouldComponentUpdate=o}return r.__N||r.__}function mn(e,t){var n=nt(De++,3);!S.__s&&sr(n.__H,t)&&(n.__=e,n.i=t,P.__H.__h.push(n))}function Lt(e,t){var n=nt(De++,4);!S.__s&&sr(n.__H,t)&&(n.__=e,n.i=t,P.__h.push(n))}function zo(e){return _t=5,gn(function(){return{current:e}},[])}function Wo(e,t,n){_t=6,Lt(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function gn(e,t){var n=nt(De++,7);return sr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function qo(e,t){return _t=8,gn(function(){return e},t)}function Zo(e){var t=P.context[e.__c],n=nt(De++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(P)),t.props.value):e.__}function Jo(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function Ui(e){var t=nt(De++,10),n=Vt();return t.__=e,P.componentDidCatch||(P.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ko(){var e=nt(De++,11);if(!e.__){for(var t=P.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Bi(){for(var e;e=Go.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Qt),e.__H.__h.forEach(jn),e.__H.__h=[]}catch(t){e.__H.__h=[],S.__e(t,e.__v)}}S.__b=function(e){P=null,Pr&&Pr(e)},S.__r=function(e){Ar&&Ar(e),De=0;var t=(P=e.__c).__H;t&&($n===P?(t.__h=[],P.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Xt,n.__N=n.i=void 0})):(t.__h.forEach(Qt),t.__h.forEach(jn),t.__h=[],De=0)),$n=P},S.diffed=function(e){Or&&Or(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Go.push(t)!==1&&Mr===S.requestAnimationFrame||((Mr=S.requestAnimationFrame)||Gi)(Bi)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Xt&&(n.__=n.__V),n.i=void 0,n.__V=Xt})),$n=P=null},S.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Qt),n.__h=n.__h.filter(function(r){return!r.__||jn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(r,n.__v)}}),Nr&&Nr(e,t)},S.unmount=function(e){Rr&&Rr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Qt(r)}catch(o){t=o}}),n.__H=void 0,t&&S.__e(t,n.__v))};var Fr=typeof requestAnimationFrame=="function";function Gi(e){var t,n=function(){clearTimeout(r),Fr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Fr&&(t=requestAnimationFrame(n))}function Qt(e){var t=P,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),P=t}function jn(e){var t=P;e.__c=e.__(),P=t}function sr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Yo(e,t){return typeof t=="function"?t(e):t}function Xo(e,t){for(var n in t)e[n]=t[n];return e}function Un(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function In(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function sn(e){this.props=e}function Qo(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Un(this.props,o)}function r(o){return this.shouldComponentUpdate=n,b(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(sn.prototype=new Ee).isPureReactComponent=!0,sn.prototype.shouldComponentUpdate=function(e,t){return Un(this.props,e)||Un(this.state,t)};var Dr=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Dr&&Dr(e)};var zi=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function es(e){function t(n){var r=Xo({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zi,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Vr=function(e,t){return e==null?null:Re(Re(e).map(t))},ts={map:Vr,forEach:Vr,count:function(e){return e?Re(e).length:0},only:function(e){var t=Re(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Re},Wi=S.__e;S.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Wi(e,t,n,r)};var Lr=S.unmount;function ns(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Xo({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ns(r,t,n)})),e}function rs(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return rs(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Pt(){this.__u=0,this.t=null,this.__b=null}function os(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ss(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return b(n,s)}return o.displayName="Lazy",o.__f=!0,o}function lt(){this.u=null,this.o=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),Lr&&Lr(e)},(Pt.prototype=new Ee).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=os(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(l):l())};n.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var a=r.state.__a;r.__v.__k[0]=rs(a,a.__c.__P,a.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},c=t.__h===!0;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Pt.prototype.componentWillUnmount=function(){this.t=[]},Pt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ns(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&b(Ie,null,e.fallback);return o&&(o.__h=null),[b(Ie,null,t.__a?null:e.children),o]};var Hr=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function qi(e){return this.getChildContext=function(){return e.context},e.children}function Zi(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ge(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ge(b(qi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function is(e,t){var n=b(Zi,{__v:e,i:t});return n.containerInfo=t,n}(lt.prototype=new Ee).__a=function(e){var t=this,n=os(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Hr(t,e,r)):o()};n?n(s):s()}},lt.prototype.render=function(e){this.u=null,this.o=new Map;var t=Re(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},lt.prototype.componentDidUpdate=lt.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Hr(e,n,t)})};var ls=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ji=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Ki=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Yi=/[A-Z0-9]/g,Xi=typeof document<"u",Qi=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function us(e,t,n){return t.__k==null&&(t.textContent=""),Ge(e,t),typeof n=="function"&&n(),e?e.__c:null}function cs(e,t,n){return nr(e,t),typeof n=="function"&&n(),e?e.__c:null}Ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var jr=S.event;function el(){}function tl(){return this.cancelBubble}function nl(){return this.defaultPrevented}S.event=function(e){return jr&&(e=jr(e)),e.persist=el,e.isPropagationStopped=tl,e.isDefaultPrevented=nl,e.nativeEvent=e};var ir,rl={enumerable:!1,configurable:!0,get:function(){return this.class}},Ur=S.vnode;S.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||Xi&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Qi(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Ki.test(s)?s=l:r.indexOf("-")===-1&&Ji.test(s)?s=s.replace(Yi,"-$&").toLowerCase():i===null&&(i=void 0):l=s="oninput",l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Re(n.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Re(n.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",rl)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=ls,Ur&&Ur(e)};var Br=S.__r;S.__r=function(e){Br&&Br(e),ir=e.__c};var Gr=S.diffed;S.diffed=function(e){Gr&&Gr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ir=null};var as={ReactCurrentDispatcher:{current:{readContext:function(e){return ir.__n[e.__c].props.value}}}},ol="17.0.2";function fs(e){return b.bind(null,e)}function lr(e){return!!e&&e.$$typeof===ls}function ds(e){return lr(e)?rr.apply(null,arguments):e}function hs(e){return!!e.__k&&(Ge(null,e),!0)}function ps(e){return e&&(e.base||e.nodeType===1&&e)||null}var _s=function(e,t){return e(t)},ms=function(e,t){return e(t)},gs=Ie;function ur(e){e()}function ws(e){return e}function ys(){return[!1,ur]}var bs=Lt;function vs(e,t){var n=t(),r=Vt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Lt(function(){o.__=n,o.v=t,In(o.__,t())||s({h:o})},[e,n,t]),mn(function(){return In(o.__,o.v())||s({h:o}),e(function(){In(o.__,o.v())||s({h:o})})},[e]),n}var Ss={useState:Vt,useId:Ko,useReducer:or,useEffect:mn,useLayoutEffect:Lt,useInsertionEffect:bs,useTransition:ys,useDeferredValue:ws,useSyncExternalStore:vs,startTransition:ur,useRef:zo,useImperativeHandle:Wo,useMemo:gn,useCallback:qo,useContext:Zo,useDebugValue:Jo,version:"17.0.2",Children:ts,render:us,hydrate:cs,unmountComponentAtNode:hs,createPortal:is,createElement:b,createContext:Bo,createFactory:fs,cloneElement:ds,createRef:Fo,Fragment:Ie,isValidElement:lr,findDOMNode:ps,Component:Ee,PureComponent:sn,memo:Qo,forwardRef:es,flushSync:ms,unstable_batchedUpdates:_s,StrictMode:gs,Suspense:Pt,SuspenseList:lt,lazy:ss,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:as};const sl=Object.freeze(Object.defineProperty({__proto__:null,Children:ts,Component:Ee,Fragment:Ie,PureComponent:sn,StrictMode:gs,Suspense:Pt,SuspenseList:lt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:as,cloneElement:ds,createContext:Bo,createElement:b,createFactory:fs,createPortal:is,createRef:Fo,default:Ss,findDOMNode:ps,flushSync:ms,forwardRef:es,hydrate:cs,isValidElement:lr,lazy:ss,memo:Qo,render:us,startTransition:ur,unmountComponentAtNode:hs,unstable_batchedUpdates:_s,useCallback:qo,useContext:Zo,useDebugValue:Jo,useDeferredValue:ws,useEffect:mn,useErrorBoundary:Ui,useId:Ko,useImperativeHandle:Wo,useInsertionEffect:bs,useLayoutEffect:Lt,useMemo:gn,useReducer:or,useRef:zo,useState:Vt,useSyncExternalStore:vs,useTransition:ys,version:ol},Symbol.toStringTag,{value:"Module"}));function Me(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function il(e){return e!=null&&typeof e.GetEnumerator=="function"}function ll(e){return e!=null&&typeof e.CompareTo=="function"}function ul(e){return e!=null&&typeof e.Equals=="function"}function cl(e){return e!=null&&typeof e.GetHashCode=="function"}function Bn(e){return e!=null&&typeof e.Dispose=="function"}function F(e){Bn(e)&&e.Dispose()}function ke(){return null}function ln(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class al{constructor(t){this.iter=t,this.current=ke()}"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 G(e){return il(e)?e.GetEnumerator():new al(e[Symbol.iterator]())}function wn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class fl{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function oe(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function dl(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function zr(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function hl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function et(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class je{static id(t){return je.idMap.has(t)||je.idMap.set(t,++je.count),je.idMap.get(t)}}je.idMap=new WeakMap;je.count=0;function cr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Ae(e){return e*2654435761|0}function pl(e){return cr(e.toString(32))}function Ht(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function _l(e){return e.getTime()}function ml(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ve(e[r]);return Ht(n)}function Ve(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Ae(e);case"bigint":return pl(e);case"string":return cr(e);default:{if(cl(e))return e.GetHashCode();if(Me(e))return ml(e);if(e instanceof Date)return _l(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ve(r));return Ht(n)}else return Ae(je.id(e))}}}function Gn(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Cs(e,t){return Gn(e,t,re)}function gl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!re(e[n[o]],t[r[o]]))return!1;return!0}function re(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:ul(e)?e.Equals(t):Me(e)?Me(t)&&Cs(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&xs(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&gl(e,t)}function xs(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+zr(e),r=t.getTime()+zr(t)),n===r?0:n<r?-1:1}function yn(e,t){return e===t?0:e<t?-1:1}function wl(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Es(e,t){return wl(e,t,ye)}function yl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=ye(e[i],t[i]),s!==0)return s}return 0}function ye(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:ll(e)?e.CompareTo(t):Me(e)?Me(t)?Es(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?xs(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yl(e,t):-1}function K(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function bl(e){Me(e)?e.splice(0):e.clear()}const bn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return bn.set(t,e),t}function Xe(e){return bn.get(e)??(t=>n=>e(t,n))}function zn(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return bn.set(t,e),t}function Mn(e){return bn.get(e)??(t=>n=>r=>e(t,n,r))}function vl(e){let t=0,n="[";for(const r of e){if(t===0)n+=Te(r);else if(t===100){n+="; ...";break}else n+="; "+Te(r);t++}return n+"]"}function Te(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return vl(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Te(s,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Sl(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Te(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Te(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class W{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Sl(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ve(n));return t.splice(0,0,Ae(this.tag)),Ht(t)}Equals(t){return this===t?!0:ln(this,t)&&this.tag===t.tag?Cs(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ln(this,t)?this.tag===t.tag?Es(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Cl(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function xl(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Te(n)).join(`
3
- `)+" }"}function El(e){const t=Object.values(e).map(n=>Ve(n));return Ht(t)}function kl(e,t){if(e===t)return!0;if(ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!re(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Tl(e,t){if(e===t)return 0;if(ln(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=ye(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class le{toJSON(){return Cl(this)}toString(){return xl(this)}GetHashCode(){return El(this)}Equals(t){return kl(this,t)}CompareTo(t){return Tl(this,t)}}class ue{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class $l{constructor(t){this.message=t}}function Il(e){return e instanceof $l||e instanceof Error}function Ml(e){return e instanceof Promise}function un(e){return Il(e)||Ml(e)?e:new Error(String(e))}const vt=Symbol("numeric");function ks(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[vt])}function Pl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Wn(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[vt]().multiply(t)}function en(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[vt]().toFixed(t)}function cn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[vt]().toPrecision(t)}function an(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[vt]().toExponential(t)}function fn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[vt]().toHex()}class Al{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class be{constructor(t,n,r,o,s,i,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=l}toString(){return R(this)}GetHashCode(){return Ts(this)}Equals(t){return qn(this,t)}}function fe(e){return e.generics!=null?e.generics:[]}function Ts(e){const t=cr(e.fullname),n=fe(e).map(Ts);return Ht([t,...n])}function qn(e,t){return e.fullname===""?t.fullname===""&&Gn(Ot(e),Ot(t),([n,r],[o,s])=>n===o&&qn(r,s)):e.fullname===t.fullname&&Gn(fe(e),fe(t),qn)}function Ol(e,t,n,r){return new be(e,t,n,r)}function jt(e,t,n,r){return new be(e,t,n,void 0,r)}function Nl(...e){return new be("",void 0,void 0,void 0,()=>e)}function $s(e,t,n,r){const o=new be(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,l)=>new Al(o,l,s[l],i))});return o}function Rl(e){return new be("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Is=new be("System.Object"),tt=new be("System.String"),Fl=new be("System.Int32");function ft(e){if(Array.isArray(e))return e[0];if(e instanceof be){const t=Ut(e);if(t!=null)return ft(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function R(e){const t=Ut(e);return t!=null?R(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>R(n)).join(",")+"]"}function Ms(e){return Ut(e)!=null}function Ut(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Ps(e){return e.generics!=null&&e.generics.length>0}function ar(e){return e.enumCases!=null&&e.enumCases.length>0}function As(e){return e.generics==null?e:new be(e.fullname,e.generics.map(()=>Is))}function Os(e){var t;return(t=e.generics)==null?void 0:t[0]}function rt(e){if(ar(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Dl(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function ot(e,t){const n=parseInt(t,10);return Dl(e,isNaN(n)?t:n)[1]}function Ns(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ot(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rs(e){if(fr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Fs(e){return e instanceof be?e.cases!=null:e instanceof W}function Ds(e){return e instanceof be?e.fields!=null:e instanceof le}function fr(e){return e.fullname.startsWith("System.Tuple")}function Vl(e,t){const r=Ns(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Vs(e){return e.fields==null?[]:e.fields}function Ll(e,t){return e[t[0]]}function Hl(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function jl(e,t){const n=Ot(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function Ul(e,t){return e}class Bl{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class dr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,dr.prototype)}}class hr{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>hr.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ue(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new dr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(un(n))}});else try{e(t)}catch(n){t.onError(un(n))}}}function Gl(e,t){return Ue(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(un(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function zl(e){return Ue(t=>t.onSuccess(e))}class Wl{Bind(t,n){return Gl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ue(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return zl(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ue(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ue(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(un(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Ue(t=>t.onSuccess(void 0))}}const J=new Wl;class mt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ve(this.value)}Equals(t){return t==null?!1:re(this.value,t instanceof mt?t.value:t)}CompareTo(t){return t==null?1:ye(this.value,t instanceof mt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof mt?e.value:e}function ie(e){return e==null||e instanceof mt?new mt(e):e}function Zn(e,t){return e!=null?y(e):t}function ql(e,t){return e!=null?y(e):t()}function Zl(e,t){return t!=null?ie(e(y(t))):void 0}function Jl(e){return new _(0,[e])}function Ls(e){return new _(1,[e])}class _ extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function we(e,t){return t.tag===0?Jl(e(t.fields[0])):Ls(t.fields[0])}function Kl(e,t){return t.tag===0?e(t.fields[0]):Ls(t.fields[0])}function Yl(e){return new Hs(0,[e])}function Xl(e){return new Hs(1,[e])}class Hs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Ql(e){return Yl(e)}function eu(e){return Xl(e)}function Pn(e){}const tu=new Bl;function nu(e){return Ue(t=>{e({onSuccess:n=>t.onSuccess(Ql(n)),onError:n=>t.onSuccess(eu(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ru(e){return Ue(t=>e([t.onSuccess,t.onError,t.onCancel]))}function ou(e,t){return iu(e,t)}function su(e,t){return ou(e,t)}function iu(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new hr;e({onSuccess:t||Pn,onError:n||Pn,onCancel:r||Pn,cancelToken:o||tu,trampoline:s})}class pr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class js extends W{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Us extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Bt extends le{constructor(t,n,r,o,s,i,l,c){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=l,this.content=c}}class it extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class Bs extends le{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function _r(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+oe(n,2)+":"+oe(r,2)}function dn(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function lu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return oe(e.getFullYear(),4)+"-"+oe(e.getMonth()+1,2)+"-"+oe(e.getDate(),2)+"T"+oe(e.getHours(),2)+":"+oe(e.getMinutes(),2)+":"+oe(e.getSeconds(),2)+"."+oe(e.getMilliseconds(),3)+(n?_r(e.getTimezoneOffset()*-6e4):"")}}function uu(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+_r(t)}function Gs(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const s=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?s%100:s;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();o=i>12?i%12:i;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:oe(o,r.length)})}function cu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+_r(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return dn(n,"first");case"T":case"t":return dn(n,"second");case"O":case"o":return uu(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Gs(n,t,!0)}function au(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?dn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?dn(e,"second"):e.toLocaleTimeString();case"O":case"o":return lu(e,n);default:throw new Error("Unrecognized Date print format")}else return Gs(e,t,n)}function vn(e,t,n){return e.offset!=null?cu(e,t):au(e,t)}function mr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function fu(){return mr(-621355968e5,0)}function zs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const l=o[2].split(":");i=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const l=new Date;s=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,i-=l*60}}else if(o[1]!=null)s=new Date(o[1]);else{const l=new Date;s=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function du(e,t=!1){const[n,r]=zs(e),o=r!=null?t&&r==="Z"?1:2:0;return mr(n.getTime(),o)}function hu(e,t){try{return t.contents=du(e),!0}catch{return!1}}function pu(e){return e.kind===1?e:mr(e.getTime(),1)}function _u(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ws(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Wr(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function mu(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const l=[],c=arguments.length,a=typeof arguments[c-1]!="string";let f=a?c-3:c-2;for(let u=0;u<f;u++)l.push(arguments[u]);l.index=arguments[f++],l.input=arguments[f++],a&&(l.groups=arguments[f]),i=n(l)}return i}if(typeof e=="string"){const i=e;e=_u(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const l=t.substring(o),c=Wr(e,l),a=Wr.length>r?(i=c[r-1],l.substring(0,i.index+i[0].length)):l;return t.substring(0,o)+a.replace(e,n)+t.substring(o+a.length)}else return t.replace(e,n)}const kt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,gu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function qs(e,t){return Pl(e,t)<0}function ze(e){return{input:e,cont:yu(e)}}function Zs(e,t){return typeof t=="string"?e(t):t.cont(e)}function gt(e){return Zs(t=>t,e)}function Js(e){return Zs(t=>{throw new Error(t)},e)}function wu(e,t,n,r,o){let s="";if(t=t||"",o=o||"",ks(e))switch(o.toLowerCase()!=="x"&&(qs(e,0)?(e=Wn(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=en(e,r);break;case"g":case"G":e=r!=null?cn(e,r):cn(e);break;case"e":case"E":e=r!=null?an(e,r):an(e);break;case"x":e=fn(e);break;case"X":e=fn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=vn(e):e=Te(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,l=t.indexOf("-")>=0,c=l||!i?" ":"0";c==="0"?(e=Nt(e,n-s.length,c,l),e=s+e):e=Nt(s+e,n,c,l)}return e}function Ks(e,t,n,r="",o=-1){return(...s)=>{let i=r;const l=t.slice(),c=n.slice();for(const a of s){const[,,f,u,p,h]=c[0];let d=u;if(o>=0)d=o,o=-1;else if(d==="*"){if(a<0)throw new Error("Non-negative number required");o=a;continue}i+=l[0],i+=wu(a,f,d,p,h),l.splice(0,1),c.splice(0,1)}return c.length===0?(i+=l[0],e(i)):Ks(e,l,c,i,o)}}function yu(e){return t=>{kt.lastIndex=0;const n=[],r=[];let o=0,s=kt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=kt.lastIndex,kt.lastIndex-=1,s=kt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Ks(t,n,r))}}function bu(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(gu,(r,o,s,i,l,c)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let a=t[o];if(ks(a))switch(l=l==null?null:parseInt(l,10),i){case"f":case"F":l=l??2,a=en(a,l);break;case"g":case"G":a=l!=null?cn(a,l):cn(a);break;case"e":case"E":a=l!=null?an(a,l):an(a);break;case"p":case"P":l=l??2,a=en(Wn(a,100),l)+" %";break;case"d":case"D":a=l!=null?An(String(a),l,"0"):String(a);break;case"x":case"X":a=l!=null?An(fn(a),l,"0"):fn(a),i==="X"&&(a=a.toUpperCase());break;default:if(c){let f="";a=c.replace(/([0#,]+)(\.[0#]+)?/,(u,p,h)=>{qs(a,0)&&(a=Wn(a,-1),f="-"),h=h==null?"":h.substring(1),a=en(a,Math.max(h.length,0));let[d,m]=a.split(".");m||(m="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;d=An(d,g,"0");const w=h.replace(/#+$/,"").length;if(w>m.length?m=Su(m,w,"0"):w<m.length&&(m=m.substring(0,w)+m.substring(w).replace(/0+$/,"")),p.indexOf(",")>0){const C=d.length%3,k=Math.floor(d.length/3);let q=C>0?d.substr(0,C)+(k>0?",":""):"";for(let H=0;H<k;H++)q+=d.substr(C+H*3,3)+(H<k-1?",":"");d=q}return m.length>0?d+"."+m:d}),a=f+a}}else a instanceof Date?a=vn(a,c||i):a=Te(a);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(a=Nt(String(a),Math.abs(s)," ",s<0)),a})}function vu(e){return typeof e!="string"||e.length===0}function We(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Nt(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function An(e,t,n){return Nt(e,t,n)}function Su(e,t,n){return Nt(e,t,n,!0)}function Cu(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ws),t=t.length>0?t:["\\s"];const i=[],l=new RegExp(t.join("|"),"g");let c=!0,a=0;do{const f=l.exec(e);if(f===null){const u=s?e.substring(a).trim():e.substring(a);(!o||u.length>0)&&i.push(u),c=!1}else{const u=s?e.substring(a,f.index).trim():e.substring(a,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(a).trim():e.substring(a)),c=!1):i.push(u)),a=l.lastIndex}}while(c);return i}function xu(e,...t){if(t.length===0)return e.trim();const n="["+Ws(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Ys="Collection was empty.";function Xs(e,t){return typeof e=="function"?new e(t):new Array(t)}function qr(e,t){return e>t?e:t}function Sn(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function St(e,t,n){const r=t.length|0,o=Xs(n,r);for(let s=0;s<=r-1;s++)o[s]=e(t[s]);return o}function Eu(e,t){const n=Xs(t,1);return n[0]=e,n}function ku(e){return e.slice().reverse()}function Tu(e,t){return t.find(e)}function $u(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(t[o]);if(s!=null){const i=y(s);r.push(i)}}return re(n,ke())?r:St(o=>o,r,n)}function Cn(e,t,n){return n.reduce(e,t)}function Qs(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class de extends le{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+We("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,l=s,c=i.tail,a=l.tail;if(c!=null)if(a!=null){const f=y(c),u=y(a);if(re(i.head,l.head)){o=f,s=u;continue e}else return!1}else return!1;else return a==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,l=o,c=s,a=c.tail;if(a!=null){const f=y(a);if(i>18)return l|0;r=i+1,o=(l<<1)+Ve(c.head)+631*i,s=f;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,l=s,c=i.tail,a=l.tail;if(c!=null)if(a!=null){const f=y(c),u=y(a),p=ye(i.head,l.head)|0;if(p===0){o=f,s=u;continue e}else return p|0}else return 1;else return a!=null?-1:0}})(this,t)|0}GetEnumerator(){return Mu(this)}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return G(this)}}class Iu{constructor(t){this.xs=t,this.it=this.xs,this.current=ke()}"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,n=t.it.tail;if(n!=null){const r=y(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=ke()}Dispose(){}}function Mu(e){return new Iu(e)}function Q(){return new de(ke(),void 0)}function Gt(e,t){return new de(e,t)}function gr(e){return e.tail==null}function Pu(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=y(i);continue e}else return o|0}})(0,e)|0}function ei(e){if(e.tail!=null)return e.head;throw new Error(Ys+"\\nParameter name: list")}function Le(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Ys+"\\nParameter name: list")}function z(){return Q()}function _e(e,t){return Gt(e,t)}function se(e){return Gt(e,Q())}function $(e){return gr(e)}function x(e){return ei(e)}function T(e){return Le(e)}function zt(e){const t=Pu(e)|0,n=Sn(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,l=s;if(!gr(l)){n[i]=ei(l),o=i+1,s=Le(l);continue e}break}})(0,e),n}function Pe(e,t,n){let r=t,o=n;for(;!gr(o);)r=e(r,x(o)),o=Le(o);return r}function wr(e){return Pe((t,n)=>Gt(n,t),Q(),e)}function Au(e,t,n){return Qs(e,zt(t),n)}function hn(e,t){Pe((n,r)=>{e(r)},void 0,t)}function D(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Gt(e[r],n);return n}function j(e){return D(e,Q())}function Ou(e){let t,n;if(Me(e))return j(e);if(e instanceof de)return e;{const r=Q();let o=r;const s=G(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new de(c,void 0),t.tail=n,n)}}finally{F(s)}const i=o,l=Q();return i.tail=l,Le(r)}}function yr(e,t){return Pe((n,r)=>Gt(r,n),t,wr(e))}function ut(e,t){const n=Q(),r=Pe((s,i)=>{const l=new de(e(i),void 0);return s.tail=l,l},n,t),o=Q();return r.tail=o,Le(n)}function Nu(e,t){const n=Q(),r=Pe((s,i)=>{if(e(i)){const l=new de(i,void 0);return s.tail=l,l}else return s},n,t),o=Q();return r.tail=o,Le(n)}function Ru(e,t){const n=Q(),r=Q(),o=n,s=Pe((c,a)=>{let f,u;const p=c[0],h=c[1];return e(a)?[(f=new de(a,void 0),p.tail=f,f),h]:[p,(u=new de(a,void 0),h.tail=u,u)]},[o,r],t),i=Q();s[0].tail=i;const l=Q();return s[1].tail=l,[Le(o),Le(r)]}function Fu(e,t){const n=Q(),r=Pe((s,i)=>{const l=e(i);if(l==null)return s;{const c=new de(y(l),void 0);return s.tail=c,c}},n,t),o=Q();return r.tail=o,Le(n)}function Du(e,t){return Pe((n,r)=>n&&e(r),!0,t)}function Vu(e){throw new Error(e)}const Lu="Enumeration already finished.",Hu="Enumeration has not started. Call MoveNext.",ti="The input sequence has an insufficient number of elements.",ju="Reset is not supported on this enumerator.";function Uu(){throw new Error(ju)}function br(){throw new Error(Hu)}function Jn(){throw new Error(Lu)}class Bu{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=G(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Te(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{F(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Gu(e){return new Bu(e)}class zu{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"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"(){Uu()}Dispose(){this.dispose()}}function xn(e,t,n){return new zu(e,t,n)}function Wu(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const l=y(n);try{F(l)}finally{n=void 0}}if(t!=null){const l=y(t);try{F(l)}finally{t=void 0}}};return xn(()=>(r?o&&Jn():br(),s!=null?y(s):Jn()),()=>{let l;if(r||(r=!0),o)return!1;{let c;for(;c==null;){const a=t,f=n;if(a!=null)if(f!=null){const u=y(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=ie(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),c=!0;else try{F(u)}finally{n=void 0}}else{const u=y(a);u["System.Collections.IEnumerator.MoveNext"]()?n=(l=u["System.Collections.Generic.IEnumerator`1.get_Current"](),G(l)):(i(),c=!1)}else t=G(e)}return y(c)}},()=>{o||i()})}function qu(e,t){return xn(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{F(t)}finally{e()}})}function ni(e,t,n){let r=!1,o,s=ie(e());const i=()=>{if(s!=null){const c=y(s);try{n(c)}finally{s=void 0}}},l=()=>{try{i()}finally{o=void 0}};return xn(()=>(r||br(),o!=null?y(o):Jn()),()=>{if(r||(r=!0),s!=null){const c=y(s);let a;try{a=t(c)}catch(f){throw l(),f}return a!=null?(o=a,!0):(l(),!1)}else return!1},i)}function Zu(e,t){let n,r=t;return xn(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return br()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Ju(e,t){t==null&&Vu(e)}function Ct(e){return Gu(e)}function qe(e){return Ju("source",e),G(e)}function N(e){return Ct(()=>G(e()))}function ri(e){return Ct(()=>Wu(e))}function Ku(e,t){return Ct(()=>Zu(e,t))}function Yu(){return N(()=>new Array(0))}function O(e){return N(()=>Eu(e))}function Xu(e){return e instanceof de?zt(e):Array.from(e)}function Fe(e){return Me(e)?j(e):e instanceof de?e:Ou(e)}function Qu(e,t,n){return Ct(()=>ni(e,t,n))}function oi(e,t,n){return Ct(()=>{let r=-1;return ni(e,o=>(r=r+1|0,t(r,o)),n)})}function me(e,t){return ri([e,t])}function ec(e,t,n){const r=qe(t);try{const o=qe(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&l;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:l?-1:0)|0}finally{F(o)}}finally{F(r)}}function st(e,t,n){const r=qe(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{F(r)}}function En(e,t,n){const r=qe(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{F(r)}}function si(e,t){En((n,r)=>{e(r)},void 0,t)}function ge(e,t){return Qu(()=>qe(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ie(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function tc(e,t){return oi(()=>qe(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ie(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function nc(e){return N(()=>ku(Xu(e)))}function rc(e,t){return Ct(()=>{const n=qe(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ti+"\\nParameter name: source");return qu(()=>{},n)}catch(r){throw F(n),r}})}function oc(e,t){return oi(()=>qe(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ie(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ti+"\\nParameter name: source")}else return},n=>{F(n)})}function sc(e,t){return N(()=>ri(ge(e,t)))}class ii{constructor(t,n){this.k=t,this.v=n}}function Rt(e,t){return new ii(e,t)}function B(e){return e.k}function ne(e){return e.v}class U extends ii{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function At(e,t,n,r,o){return new U(e,t,n,r,o)}function Y(e){return e.left}function X(e){return e.right}function Be(e){return e.h}function li(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof U){const s=o;e=li(n+1,Y(s)),t=X(s);continue e}else return n+1|0}else return n|0}}function ic(e){return li(0,e)}function ve(e,t,n,r){let o,s,i;const l=e;if(l!=null){const u=y(l);i=u instanceof U?(o=u,Be(o)):1}else i=0;let c;const a=r;if(a!=null){const u=y(a);c=u instanceof U?(s=u,Be(s)):1}else c=0;const f=(i<c?c:i)|0;return f===0?Rt(t,n):At(t,n,e,r,f+1)}function Zr(e,t,n,r){let o,s,i,l,c,a,f,u,p;const h=e;if(h!=null){const g=y(h);p=g instanceof U?(o=g,Be(o)):1}else p=0;let d;const m=r;if(m!=null){const g=y(m);d=g instanceof U?(s=g,Be(s)):1}else d=0;if(d>p+2){const g=y(r);if(g instanceof U){const w=g;if(i=Y(w),(i!=null?(l=y(i),l instanceof U?(c=l,Be(c)):1):0)>p+1){const C=y(Y(w));if(C instanceof U){const k=C;return ve(ve(e,t,n,Y(k)),B(k),ne(k),ve(X(k),B(w),ne(w),X(w)))}else throw new Error("internal error: Map.rebalance")}else return ve(ve(e,t,n,Y(w)),B(w),ne(w),X(w))}else throw new Error("internal error: Map.rebalance")}else if(p>d+2){const g=y(e);if(g instanceof U){const w=g;if(a=X(w),(a!=null?(f=y(a),f instanceof U?(u=f,Be(u)):1):0)>d+1){const C=y(X(w));if(C instanceof U){const k=C;return ve(ve(Y(w),B(w),ne(w),Y(k)),B(k),ne(k),ve(X(k),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return ve(Y(w),B(w),ne(w),ve(X(w),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return ve(e,t,n,r)}function wt(e,t,n,r){if(r!=null){const o=y(r),s=e.Compare(t,B(o))|0;if(o instanceof U){const i=o;return s<0?Zr(wt(e,t,n,Y(i)),B(i),ne(i),X(i)):s===0?At(t,n,Y(i),X(i),Be(i)):Zr(Y(i),B(i),ne(i),wt(e,t,n,X(i)))}else return s<0?At(t,n,void 0,r,2):s===0?Rt(t,n):At(t,n,r,void 0,2)}else return Rt(t,n)}function ui(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,B(i))|0;if(l===0)return ie(ne(i));if(i instanceof U){const c=i;e=r,t=o,n=l<0?Y(c):X(c);continue e}else return}else return}}function lc(e,t,n){const r=ui(e,t,n);if(r==null)throw new Error;return y(r)}function uc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,B(i))|0;if(i instanceof U){const c=i;if(l<0){e=r,t=o,n=Y(c);continue e}else{if(l===0)return!0;e=r,t=o,n=X(c);continue e}}else return l===0}else return!1}}function ci(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof U){const s=o;ci(n,Y(s)),n(B(s),ne(s)),e=n,t=X(s);continue e}else n(B(o),ne(o))}break}}function cc(e,t){ci(e,t)}function Kn(e,t){if(t!=null){const n=y(t);if(n instanceof U){const r=n,o=Kn(e,Y(r)),s=e(B(r),ne(r)),i=Kn(e,X(r));return At(B(r),s,o,i,Be(r))}else return Rt(B(n),e(B(n),ne(n)))}else return void 0}function ac(e,t){return Kn(e,t)}function fc(e,t,n){let r=n;cc((o,s)=>{t[r]=[o,s],r=r+1|0},e)}function dc(e,t){return Pe((n,r)=>wt(e,r[0],r[1],n),void 0,t)}function hc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=wt(r,i[0],i[1],o),n=s;continue e}else return o}}function pc(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=wt(e,o[0],o[1],n)}return n}function ai(e,t){if(Me(t))return pc(e,t);if(t instanceof de)return dc(e,t);{const n=G(t);try{return hc(e,void 0,n)}finally{F(n)}}}class _c extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function fi(e){e:for(;;){const t=e;if($(t))return z();{const n=T(t),r=x(t);if(r!=null){const o=y(r);if(o instanceof U){const s=o;e=D([Y(s),Rt(B(s),ne(s)),X(s)],n);continue e}else return t}else{e=n;continue e}}}}function Jr(e){return new _c(fi(se(e)),!1)}function mc(){throw new Error("enumeration not started")}function gc(){throw new Error("enumeration already finished")}function Kr(e){if(e.started){const t=e.stack;if($(t))return gc();if(x(t)!=null){const n=y(x(t));if(n instanceof U)throw new Error("Please report error: Map iterator, unexpected stack for current");return[B(n),ne(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return mc()}function wc(e){if(e.started){const t=e.stack;if($(t))return!1;if(x(t)!=null){if(y(x(t))instanceof U)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=fi(T(t)),!$(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function Yr(e){let t=Jr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Kr(t)},"System.Collections.IEnumerator.get_Current"(){return Kr(t)},"System.Collections.IEnumerator.MoveNext"(){return wc(t)},"System.Collections.IEnumerator.Reset"(){t=Jr(e)},Dispose(){}}}class pn{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cc(this)|0}Equals(t){const n=this;if(t instanceof pn){const r=t,o=G(n);try{const s=G(r);try{const i=()=>{const l=o["System.Collections.IEnumerator.MoveNext"]();if(l===s["System.Collections.IEnumerator.MoveNext"]())if(l){const c=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return re(c[0],a[0])&&re(c[1],a[1])?i():!1}else return!0;else return!1};return i()}finally{F(s)}}finally{F(o)}}else return!1}toString(){return"map ["+We("; ",ge(n=>bu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Yr(this.tree)}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Yr(this.tree)}CompareTo(t){const n=this;if(t instanceof pn)return ec((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:ye(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Qr(n,t[0])&&re(Xr(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){fc(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return On(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return On(this)|0}get size(){return On(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return ge(n=>[n[0],n[1]],this)}get(t){return Xr(this,t)}has(t){return Qr(this,t)}keys(){return ge(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return ge(n=>n[1],this)}forEach(t,n){const r=this;si(o=>{t(o[1],o[0],r)},r)}}function Wt(e,t){return new pn(e,t)}function yc(e){return Wt(e,void 0)}function bc(e,t,n){return Wt(e.comparer,wt(e.comparer,t,n,e.tree))}function Xr(e,t){return lc(e.comparer,t,e.tree)}function vc(e,t){return Wt(e.comparer,ac(t,e.tree))}function On(e){return ic(e.tree)}function Qr(e,t){return uc(e.comparer,t,e.tree)}function Sc(e,t){return ui(e.comparer,t,e.tree)}function Cc(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=G(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ve(o[0]))|0,n=t(n,Ve(o[1]))|0}}finally{F(r)}return n|0}function di(e,t,n){return bc(n,e,t)}function hi(e,t){return Sc(t,e)}function pi(e,t){return vc(t,e)}function xc(e,t){return Wt(t,ai(t,e))}function Ec(e,t){return Wt(t,ai(t,e))}function vr(e){return yc(e)}function kc(e){return new js("Content-Type",e)}function _i(e){return new js("Authorization",e)}const Ke=new Bt("",new pr(0,[]),z(),!1,void 0,void 0,void 0,new Us(0,[]));new Bs(0,"","","",vr({Compare:yn}),new it(0,[""]));function eo(e,t){return vu(t)?[t]:Cu(t,[e],void 0,0)}function Tc(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"}}function mi(e){return new Bt(e,Ke.method,Ke.headers,Ke.withCredentials,Ke.overridenMimeType,Ke.overridenResponseType,Ke.timeout,Ke.content)}function gi(e,t){return new Bt(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Yn(e,t){return new Bt(t.url,t.method,yr(t.headers,se(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function $c(e,t){return new Bt(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function wi(e){return ru(t=>{const n=new XMLHttpRequest;n.open(Tc(e.method),e.url),n.onreadystatechange=()=>{let c,a,f,u,p,h,d;n.readyState===4&&t[0]((c=(a=n.responseType,a===""||a==="text"?n.responseText:""),f=n.status|0,u=n.responseType,p=(h=n.responseType,h===""?new it(0,[n.responseText]):h==="text"?new it(0,[n.responseText]):h==="arraybuffer"?new it(2,[n.response]):h==="blob"?new it(1,[n.response]):new it(3,[n.response])),d=Ec($u(m=>{const g=j(eo(":",m));if(!$(g))return[x(g).toLocaleLowerCase(),We(":",T(g)).trim()]},eo(`\r
4
- `,n.getAllResponseHeaders())),{Compare:yn}),new Bs(f,c,u,n.responseURL,d,p)))};const r=G(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const c=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(c.fields[0],c.fields[1])}}finally{F(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const c=o;n.overrideMimeType(c)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const c=i|0;n.timeout=c|0}const l=e.content;switch(l.tag){case 1:{n.send(ie(l.fields[0]));break}case 3:{n.send(ie(l.fields[0]));break}case 2:{n.send(ie(l.fields[0]));break}default:n.send()}})}const Qe={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Nn(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Ic(e,t){switch(t){case Qe.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Qe.SnakeCase:return Nn(e,"_");case Qe.SnakeCaseAllCaps:return Nn(e,"_").toUpperCase();case Qe.KebabCase:return Nn(e,"-");case Qe.None:default:return e}}function Mc(e,t=Qe.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,l,c){i=Ic(i,l),n[i]=c}for(let i of e){let l=Qe.None;if(i==null&&o(i),i instanceof W){const c=i.cases()[i.tag];i=i.fields.length===0?c:[c].concat(i.fields),l=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],l,!0);break;case 2:const c=i[1];s(i[0],l,c);break;default:s(i[0],l,i.slice(1))}else typeof i=="string"?s(i,l,!0):o(i)}return n}class v extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class kn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function to(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function yi(e,t){switch(e.tag){case 2:return mu(to(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return to(t)}}const Pc=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,no=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ac=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Oc(e){function t(r){return r.replace(no,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Pc.test(n))return xu(n,"{","}","(",")");if(no.test(n))return t(n);if(Ac.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Nc(e,t){try{return t.contents=Oc(e),!0}catch{return!1}}var Xn;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Xn||(Xn={}));function Rc(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function ro(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Fc(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.")}}function Dc(e,t){if(t&Xn.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}}function Vc(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Dc(s,t),!Fc(n).test(i))return Rc(o,n)}return null}function Lc(e,t,n,r,o){const s=Vc(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[l,c]=ro(!0,r);!n&&s.radix!==10&&i>=l&&i<=c&&(i=i<<32-r>>32-r);const[a,f]=ro(n,r);if(i>=a&&i<=f)return i}}throw new Error("Input string was not in a correct format.")}function xt(e,t,n,r,o){try{return o.contents=Lc(e,t,n,r),!0}catch{return!1}}function bi(e,t){Hc(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Hc(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function jc(){return bi(-621355968e5,0)}function Uc(e){const[t,n]=zs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return bi(t.getTime(),r)}function Bc(e,t){try{return t.contents=Uc(e),!0}catch{return!1}}function qt(e){return e<0?Math.ceil(e):Math.floor(e)}function oo(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return Gc(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function Gc(e){return Number(BigInt(e)/10000n)}function zc(e){return qt(e/864e5)}function Wc(e){return qt(e%864e5/36e5)}function qc(e){return qt(e%36e5/6e4)}function Zc(e){return qt(e%6e4/1e3)}function Jc(e){return qt(e%1e3)}function Kc(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(zc(e)),o=Math.abs(Wc(e)),s=Math.abs(qc(e)),i=Math.abs(Zc(e)),l=Math.abs(Jc(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:oe(o,2)}:${oe(s,2)}:${oe(i,2)}${l===0&&(t==="c"||t==="g")?"":t==="g"?"."+oe(l,3):"."+dl(l,3,7)}`}function Yc(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return oo(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const l=r[1]!=null&&r[1]==="-"?-1:1,c=+r[4],a=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*oo(o,c,a,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Xc(e,t){try{return t.contents=Yc(e),!0}catch{return!1}}class vi{constructor(t){this.k=t}}function ce(e){return new vi(e)}function E(e){return e.k}class I extends vi{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function ae(e,t,n,r){return new I(e,t,n,r)}function A(e){return e.left}function M(e){return e.right}function ct(e){return e.h}function Si(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=A(s),t=Si(M(s),r+1);continue e}else return r+1|0}else return r|0}}function Qc(e){return Si(e,0)}function Se(e,t,n){let r,o,s;const i=e;if(i!=null){const f=y(i);s=f instanceof I?(r=f,ct(r)):1}else s=0;let l;const c=n;if(c!=null){const f=y(c);l=f instanceof I?(o=f,ct(o)):1}else l=0;const a=(s<l?l:s)|0;return a===0?ce(t):ae(t,e,n,a+1)}function so(e,t,n){let r,o,s,i,l,c,a,f,u;const p=e;if(p!=null){const m=y(p);u=m instanceof I?(r=m,ct(r)):1}else u=0;let h;const d=n;if(d!=null){const m=y(d);h=m instanceof I?(o=m,ct(o)):1}else h=0;if(h>u+2){const m=y(n);if(m instanceof I){const g=m;if(s=A(g),(s!=null?(i=y(s),i instanceof I?(l=i,ct(l)):1):0)>u+1){const w=y(A(g));if(w instanceof I){const C=w;return Se(Se(e,t,A(C)),E(C),Se(M(C),E(g),M(g)))}else throw new Error("internal error: Set.rebalance")}else return Se(Se(e,t,A(g)),E(g),M(g))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const m=y(e);if(m instanceof I){const g=m;if(c=M(g),(c!=null?(a=y(c),a instanceof I?(f=a,ct(f)):1):0)>h+1){const w=y(M(g));if(w instanceof I){const C=w;return Se(Se(A(g),E(g),A(C)),E(C),Se(M(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return Se(A(g),E(g),Se(M(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Se(e,t,n)}function yt(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,E(r))|0;if(r instanceof I){const s=r;return o<0?so(yt(e,t,A(s)),E(s),M(s)):o===0?n:so(A(s),E(s),yt(e,t,M(s)))}else{const s=e.Compare(t,E(r))|0;return s<0?ae(t,void 0,n,2):s===0?n:ae(t,n,void 0,2)}}else return ce(t)}function Ci(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,E(i))|0;if(i instanceof I){const c=i;if(l<0){e=r,t=o,n=A(c);continue e}else{if(l===0)return!0;e=r,t=o,n=M(c);continue e}}else return l===0}else return!1}}function xi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof I){const s=o;xi(n,A(s)),n(E(s)),e=n,t=M(s);continue e}else n(E(o))}break}}class ea extends le{constructor(t,n){super(),this.stack=t,this.started=n}}function Ei(e){e:for(;;){const t=e;if($(t))return z();{const n=x(t),r=T(t);if(n!=null){const o=y(n);if(o instanceof I){const s=o;e=D([A(s),ce(E(s)),M(s)],r);continue e}else return t}else{e=r;continue e}}}}function io(e){return new ea(Ei(se(e)),!1)}function ta(){throw new Error("Enumeration not started")}function na(){throw new Error("Enumeration already started")}function lo(e){if(e.started){const t=e.stack;if($(t))return na();if(x(t)!=null){const n=y(x(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return ta()}function ra(e){if(e.started){const t=e.stack;if($(t))return!1;if(x(t)!=null){if(y(x(t))instanceof I)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ei(T(t)),!$(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!$(e.stack)}function uo(e){let t=io(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return lo(t)},"System.Collections.IEnumerator.get_Current"(){return lo(t)},"System.Collections.IEnumerator.MoveNext"(){return ra(t)},"System.Collections.IEnumerator.Reset"(){t=io(e)},Dispose(){}}}function oa(e,t,n){e:for(;;){const r=e,o=t,s=n;if($(o))return $(s)?0:-1;if($(s))return 1;if(x(s)!=null)if(x(o)!=null){const i=y(x(o)),l=y(x(s));if(i instanceof I){const c=i;if(A(c)==null)if(l instanceof I){const a=l;if(A(a)==null){const f=r.Compare(E(c),E(a))|0;if(f!==0)return f|0;e=r,t=_e(M(c),T(o)),n=_e(M(a),T(s));continue e}else{let f,u,p,h,d;switch($(o)?$(s)?f=2:x(s)!=null?(f=1,h=T(s),d=y(x(s))):f=2:x(o)!=null?(f=0,u=T(o),p=y(x(o))):$(s)?f=2:x(s)!=null?(f=1,h=T(s),d=y(x(s))):f=2,f){case 0:if(p instanceof I){const m=p;e=r,t=D([A(m),ae(E(m),void 0,M(m),0)],u),n=s;continue e}else{e=r,t=D([void 0,ce(E(p))],u),n=s;continue e}case 1:if(d instanceof I){const m=d;e=r,t=o,n=D([A(m),ae(E(m),void 0,M(m),0)],h);continue e}else{e=r,t=o,n=D([void 0,ce(E(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(E(c),E(l))|0;if(a!==0)return a|0;e=r,t=_e(M(c),T(o)),n=_e(void 0,T(s));continue e}else{let a,f,u,p,h;switch($(o)?$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2:x(o)!=null?(a=0,f=T(o),u=y(x(o))):$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2,a){case 0:if(u instanceof I){const d=u;e=r,t=D([A(d),ae(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=D([A(d),ae(E(d),void 0,M(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(l instanceof I){const c=l;if(A(c)==null){const a=r.Compare(E(i),E(c))|0;if(a!==0)return a|0;e=r,t=_e(void 0,T(o)),n=_e(M(c),T(s));continue e}else{let a,f,u,p,h;switch($(o)?$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2:x(o)!=null?(a=0,f=T(o),u=y(x(o))):$(s)?a=2:x(s)!=null?(a=1,p=T(s),h=y(x(s))):a=2,a){case 0:if(u instanceof I){const d=u;e=r,t=D([A(d),ae(E(d),void 0,M(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof I){const d=h;e=r,t=o,n=D([A(d),ae(E(d),void 0,M(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(i),E(l))|0;if(c!==0)return c|0;e=r,t=T(o),n=T(s);continue e}}else{y(x(s));let i,l,c,a,f;switch($(o)?$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=T(o),c=y(x(o))):$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2,i){case 0:if(c instanceof I){const u=c;e=r,t=D([A(u),ae(E(u),void 0,M(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(c))],l),n=s;continue e}case 1:if(f instanceof I){const u=f;e=r,t=o,n=D([A(u),ae(E(u),void 0,M(u),0)],a);continue e}else{e=r,t=o,n=D([void 0,ce(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){y(x(o));let i,l,c,a,f;switch($(o)?$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=T(o),c=y(x(o))):$(s)?i=2:x(s)!=null?(i=1,a=T(s),f=y(x(s))):i=2,i){case 0:if(c instanceof I){const u=c;e=r,t=D([A(u),ae(E(u),void 0,M(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(c))],l),n=s;continue e}case 1:if(f instanceof I){const u=f;e=r,t=o,n=D([A(u),ae(E(u),void 0,M(u),0)],a);continue e}else{e=r,t=o,n=D([void 0,ce(E(f))],a);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=T(o),n=T(s);continue e}}}function co(e,t,n){return t==null?n==null?0:-1:n==null?1:oa(e,se(t),se(n))|0}function sa(e,t,n){let r=n;xi(o=>{t[r]=o,r=r+1|0},e)}function ia(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=yt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function la(e,t){return Cn((n,r)=>yt(e,r,n),void 0,t)}function ua(e,t){return Pe((n,r)=>yt(e,r,n),void 0,t)}function ki(e,t){if(Me(t))return la(e,t);if(t instanceof de)return ua(e,t);{const n=G(t);try{return ia(e,void 0,n)}finally{F(n)}}}class Sr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return fa(this)|0}Equals(t){let n;const r=this;return t instanceof Sr&&(n=t,co(dt(r),Ce(r),Ce(n))===0)}toString(){return"set ["+We("; ",ge(n=>Te(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return co(dt(n),Ce(n),Ce(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ci(dt(n),t,Ce(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){sa(Ce(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Rn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Rn(this)|0}GetEnumerator(){return uo(Ce(this))}[Symbol.iterator](){return wn(G(this))}"System.Collections.IEnumerable.GetEnumerator"(){return uo(Ce(this))}get size(){return Rn(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Ti(this,t)}keys(){return ge(n=>n,this)}values(){return ge(n=>n,this)}entries(){return ge(n=>[n,n],this)}forEach(t,n){const r=this;si(o=>{t(o,o,r)},r)}}function Tn(e,t){return new Sr(e,t)}function dt(e){return e.comparer}function Ce(e){return e.tree}function ca(e){return Tn(e,void 0)}function aa(e,t){return Tn(dt(e),yt(dt(e),t,Ce(e)))}function Rn(e){return Qc(Ce(e))}function Ti(e,t){return Ci(dt(e),t,Ce(e))}function fa(e){let t=0;const n=G(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ve(r)+631|0}}finally{F(n)}return Math.abs(t)|0}function Qn(e,t){return Ti(t,e)}function da(e,t){return aa(t,e)}function ha(e){return ca(e)}function pa(e,t){return Tn(t,ki(t,e))}function _a(e,t){return Tn(t,ki(t,e))}function Tt(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var Vt,S,Oo,Ye,Mr,No,Ln,Ro,dt={},Fo=[],ji=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mn=Array.isArray;function Re(e,t){for(var n in t)e[n]=t[n];return e}function Do(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?Vt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return Pt(e,i,r,o,null)}function Pt(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:o??++Oo};return o==null&&S.vnode!=null&&S.vnode(s),s}function Vo(){return{current:null}}function Ie(e){return e.children}function ke(e,t){this.props=e,this.context=t}function rn(e,t){if(t==null)return e.__?rn(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?rn(e):null}function Lo(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return Lo(e)}}function Hn(e){(!e.__d&&(e.__d=!0)&&Ye.push(e)&&!on.__r++||Mr!==S.debounceRendering)&&((Mr=S.debounceRendering)||No)(on)}function on(){var e,t,n,r,o,s,i,l,a;for(Ye.sort(Ln);e=Ye.shift();)e.__d&&(t=Ye.length,r=void 0,o=void 0,s=void 0,l=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],o=[],(s=Re({},i)).__v=i.__v+1,nr(a,i,s,n.__n,a.ownerSVGElement!==void 0,i.__h!=null?[l]:null,r,l??rn(i),i.__h,o),Bo(r,i,o),i.__e!=l&&Lo(i)),Ye.length>t&&Ye.sort(Ln));on.__r=0}function Ho(e,t,n,r,o,s,i,l,a,c,f){var u,p,h,d,m,g,w,C,k,q,H=0,te=r&&r.__k||Fo,Ze=te.length,Je=Ze,ne=t.length;for(n.__k=[],u=0;u<ne;u++)(d=n.__k[u]=(d=t[u])==null||typeof d=="boolean"||typeof d=="function"?null:typeof d=="string"||typeof d=="number"||typeof d=="bigint"?Pt(null,d,null,null,d):mn(d)?Pt(Ie,{children:d},null,null,null):d.__b>0?Pt(d.type,d.props,d.key,d.ref?d.ref:null,d.__v):d)!=null&&(d.__=n,d.__b=n.__b+1,(C=Ui(d,te,w=u+H,Je))===-1?h=dt:(h=te[C]||dt,te[C]=void 0,Je--),nr(e,d,h,o,s,i,l,a,c,f),m=d.__e,(p=d.ref)&&h.ref!=p&&(h.ref&&rr(h.ref,null,d),f.push(p,d.__c||m,d)),m!=null&&(g==null&&(g=m),q=!(k=h===dt||h.__v===null)&&C===w,k?C==-1&&H--:C!==w&&(C===w+1?(H++,q=!0):C>w?Je>ne-w?(H+=C-w,q=!0):H--:H=C<w&&C==w-1?C-w:0),w=u+H,q=q||C==u&&!k,typeof d.type!="function"||C===w&&h.__k!==d.__k?typeof d.type=="function"||q?d.__d!==void 0?(a=d.__d,d.__d=void 0):a=m.nextSibling:a=Uo(e,m,a):a=jo(d,a,e),typeof n.type=="function"&&(n.__d=a)));for(n.__e=g,u=Ze;u--;)te[u]!=null&&(typeof n.type=="function"&&te[u].__e!=null&&te[u].__e==n.__d&&(n.__d=te[u].__e.nextSibling),Go(te[u],te[u]))}function jo(e,t,n){for(var r,o=e.__k,s=0;o&&s<o.length;s++)(r=o[s])&&(r.__=e,t=typeof r.type=="function"?jo(r,t,n):Uo(n,r.__e,t));return t}function Fe(e,t){return t=t||[],e==null||typeof e=="boolean"||(mn(e)?e.some(function(n){Fe(n,t)}):t.push(e)),t}function Uo(e,t,n){return n==null||n.parentNode!==e?e.insertBefore(t,null):t==n&&t.parentNode!=null||e.insertBefore(t,n),t.nextSibling}function Ui(e,t,n,r){var o=e.key,s=e.type,i=n-1,l=n+1,a=t[n];if(a===null||a&&o==a.key&&s===a.type)return n;if(r>(a!=null?1:0))for(;i>=0||l<t.length;){if(i>=0){if((a=t[i])&&o==a.key&&s===a.type)return i;i--}if(l<t.length){if((a=t[l])&&o==a.key&&s===a.type)return l;l++}}return-1}function Bi(e,t,n,r,o){var s;for(s in n)s==="children"||s==="key"||s in t||sn(e,s,null,n[s],r);for(s in t)o&&typeof t[s]!="function"||s==="children"||s==="key"||s==="value"||s==="checked"||n[s]===t[s]||sn(e,s,t[s],n[s],r)}function $r(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||ji.test(t)?n:n+"px"}function sn(e,t,n,r,o){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$r(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$r(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?Pr:Ir,s):e.removeEventListener(t,s?Pr:Ir,s);else if(t!=="dangerouslySetInnerHTML"){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function Ir(e){return this.l[e.type+!1](S.event?S.event(e):e)}function Pr(e){return this.l[e.type+!0](S.event?S.event(e):e)}function nr(e,t,n,r,o,s,i,l,a,c){var f,u,p,h,d,m,g,w,C,k,q,H,te,Ze,Je,ne=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(a=n.__h,l=t.__e=n.__e,t.__h=null,s=[l]),(f=S.__b)&&f(t);try{e:if(typeof ne=="function"){if(w=t.props,C=(f=ne.contextType)&&r[f.__c],k=f?C?C.props.value:f.__:r,n.__c?g=(u=t.__c=n.__c).__=u.__E:("prototype"in ne&&ne.prototype.render?t.__c=u=new ne(w,k):(t.__c=u=new ke(w,k),u.constructor=ne,u.render=zi),C&&C.sub(u),u.props=w,u.state||(u.state={}),u.context=k,u.__n=r,p=u.__d=!0,u.__h=[],u._sb=[]),u.__s==null&&(u.__s=u.state),ne.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Re({},u.__s)),Re(u.__s,ne.getDerivedStateFromProps(w,u.__s))),h=u.props,d=u.state,u.__v=t,p)ne.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(ne.getDerivedStateFromProps==null&&w!==h&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(w,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(w,u.__s,k)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(u.props=w,u.state=u.__s,u.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(Jt){Jt&&(Jt.__=t)}),q=0;q<u._sb.length;q++)u.__h.push(u._sb[q]);u._sb=[],u.__h.length&&i.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(w,u.__s,k),u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(h,d,m)})}if(u.context=k,u.props=w,u.__P=e,u.__e=!1,H=S.__r,te=0,"prototype"in ne&&ne.prototype.render){for(u.state=u.__s,u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),Ze=0;Ze<u._sb.length;Ze++)u.__h.push(u._sb[Ze]);u._sb=[]}else do u.__d=!1,H&&H(t),f=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++te<25);u.state=u.__s,u.getChildContext!=null&&(r=Re(Re({},r),u.getChildContext())),p||u.getSnapshotBeforeUpdate==null||(m=u.getSnapshotBeforeUpdate(h,d)),Ho(e,mn(Je=f!=null&&f.type===Ie&&f.key==null?f.props.children:f)?Je:[Je],t,n,r,o,s,i,l,a,c),u.base=t.__e,t.__h=null,u.__h.length&&i.push(u),g&&(u.__E=u.__=null)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Gi(n.__e,t,n,r,o,s,i,a,c);(f=S.diffed)&&f(t)}catch(Jt){t.__v=null,(a||s!=null)&&(t.__e=l,t.__h=!!a,s[s.indexOf(l)]=null),S.__e(Jt,t,n)}}function Bo(e,t,n){for(var r=0;r<n.length;r++)rr(n[r],n[++r],n[++r]);S.__c&&S.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){S.__e(s,o.__v)}})}function Gi(e,t,n,r,o,s,i,l,a){var c,f,u,p=n.props,h=t.props,d=t.type,m=0;if(d==="svg"&&(o=!0),s!=null){for(;m<s.length;m++)if((c=s[m])&&"setAttribute"in c==!!d&&(d?c.localName===d:c.nodeType===3)){e=c,s[m]=null;break}}if(e==null){if(d===null)return document.createTextNode(h);e=o?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,h.is&&h),s=null,l=!1}if(d===null)p===h||l&&e.data===h||(e.data=h);else{if(s=s&&Vt.call(e.childNodes),f=(p=n.props||dt).dangerouslySetInnerHTML,u=h.dangerouslySetInnerHTML,!l){if(s!=null)for(p={},m=0;m<e.attributes.length;m++)p[e.attributes[m].name]=e.attributes[m].value;(u||f)&&(u&&(f&&u.__html==f.__html||u.__html===e.innerHTML)||(e.innerHTML=u&&u.__html||""))}if(Bi(e,h,p,o,l),u)t.__k=[];else if(Ho(e,mn(m=t.props.children)?m:[m],t,n,r,o&&d!=="foreignObject",s,i,s?s[0]:n.__k&&rn(n,0),l,a),s!=null)for(m=s.length;m--;)s[m]!=null&&Do(s[m]);l||("value"in h&&(m=h.value)!==void 0&&(m!==e.value||d==="progress"&&!m||d==="option"&&m!==p.value)&&sn(e,"value",m,p.value,!1),"checked"in h&&(m=h.checked)!==void 0&&m!==e.checked&&sn(e,"checked",m,p.checked,!1))}return e}function rr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){S.__e(r,n)}}function Go(e,t,n){var r,o;if(S.unmount&&S.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||rr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){S.__e(s,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Go(r[o],t,n||typeof e.type!="function");n||e.__e==null||Do(e.__e),e.__=e.__e=e.__d=void 0}function zi(e,t,n){return this.constructor(e,n)}function ze(e,t,n){var r,o,s,i;S.__&&S.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],i=[],nr(t,e=(!r&&n||t).__k=b(Ie,null,[e]),o||dt,dt,t.ownerSVGElement!==void 0,!r&&n?[n]:o?null:t.firstChild?Vt.call(t.childNodes):null,s,!r&&n?n:o?o.__e:t.firstChild,r,i),Bo(s,e,i)}function or(e,t){ze(e,t,or)}function sr(e,t,n){var r,o,s,i,l=Re({},e.props);for(s in e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?o=t[s]:l[s]=t[s]===void 0&&i!==void 0?i[s]:t[s];return arguments.length>2&&(l.children=arguments.length>3?Vt.call(arguments,2):n),Pt(e.type,l,r||e.key,o||e.ref,null)}function zo(e,t){var n={__c:t="__cC"+Ro++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(i){this.props.value!==i.value&&o.some(function(l){l.__e=!0,Hn(l)})},this.sub=function(i){o.push(i);var l=i.componentWillUnmount;i.componentWillUnmount=function(){o.splice(o.indexOf(i),1),l&&l.call(i)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Vt=Fo.slice,S={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(l){e=l}throw e}},Oo=0,ke.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Re({},this.state),typeof e=="function"&&(e=e(Re({},n),this.props)),e&&Re(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hn(this))},ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hn(this))},ke.prototype.render=Ie,Ye=[],No=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ln=function(e,t){return e.__v.__b-t.__v.__b},on.__r=0,Ro=0;var De,O,$n,Ar,gt=0,Wo=[],Qt=[],Or=S.__b,Nr=S.__r,Rr=S.diffed,Fr=S.__c,Dr=S.unmount;function nt(e,t){S.__h&&S.__h(O,e,gt||t),gt=0;var n=O.__H||(O.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Qt}),n.__[e]}function Lt(e){return gt=1,ir(Qo,e)}function ir(e,t,n){var r=nt(De++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Qo(void 0,t),function(l){var a=r.__N?r.__N[0]:r.__[0],c=r.t(a,l);a!==c&&(r.__N=[c,r.__[1]],r.__c.setState({}))}],r.__c=O,!O.u)){var o=function(l,a,c){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return p.__c});if(f.every(function(p){return!p.__N}))return!s||s.call(this,l,a,c);var u=!1;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(u=!0)}}),!(!u&&r.__c.props===l)&&(!s||s.call(this,l,a,c))};O.u=!0;var s=O.shouldComponentUpdate,i=O.componentWillUpdate;O.componentWillUpdate=function(l,a,c){if(this.__e){var f=s;s=void 0,o(l,a,c),s=f}i&&i.call(this,l,a,c)},O.shouldComponentUpdate=o}return r.__N||r.__}function gn(e,t){var n=nt(De++,3);!S.__s&&lr(n.__H,t)&&(n.__=e,n.i=t,O.__H.__h.push(n))}function Ht(e,t){var n=nt(De++,4);!S.__s&&lr(n.__H,t)&&(n.__=e,n.i=t,O.__h.push(n))}function qo(e){return gt=5,wn(function(){return{current:e}},[])}function Zo(e,t,n){gt=6,Ht(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function wn(e,t){var n=nt(De++,7);return lr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Jo(e,t){return gt=8,wn(function(){return e},t)}function Ko(e){var t=O.context[e.__c],n=nt(De++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(O)),t.props.value):e.__}function Yo(e,t){S.useDebugValue&&S.useDebugValue(t?t(e):e)}function Wi(e){var t=nt(De++,10),n=Lt();return t.__=e,O.componentDidCatch||(O.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Xo(){var e=nt(De++,11);if(!e.__){for(var t=O.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function qi(){for(var e;e=Wo.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(en),e.__H.__h.forEach(jn),e.__H.__h=[]}catch(t){e.__H.__h=[],S.__e(t,e.__v)}}S.__b=function(e){O=null,Or&&Or(e)},S.__r=function(e){Nr&&Nr(e),De=0;var t=(O=e.__c).__H;t&&($n===O?(t.__h=[],O.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Qt,n.__N=n.i=void 0})):(t.__h.forEach(en),t.__h.forEach(jn),t.__h=[],De=0)),$n=O},S.diffed=function(e){Rr&&Rr(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Wo.push(t)!==1&&Ar===S.requestAnimationFrame||((Ar=S.requestAnimationFrame)||Zi)(qi)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Qt&&(n.__=n.__V),n.i=void 0,n.__V=Qt})),$n=O=null},S.__c=function(e,t){t.some(function(n){try{n.__h.forEach(en),n.__h=n.__h.filter(function(r){return!r.__||jn(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],S.__e(r,n.__v)}}),Fr&&Fr(e,t)},S.unmount=function(e){Dr&&Dr(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{en(r)}catch(o){t=o}}),n.__H=void 0,t&&S.__e(t,n.__v))};var Vr=typeof requestAnimationFrame=="function";function Zi(e){var t,n=function(){clearTimeout(r),Vr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vr&&(t=requestAnimationFrame(n))}function en(e){var t=O,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),O=t}function jn(e){var t=O;e.__c=e.__(),O=t}function lr(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Qo(e,t){return typeof t=="function"?t(e):t}function es(e,t){for(var n in t)e[n]=t[n];return e}function Un(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function In(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function ln(e){this.props=e}function ts(e,t){function n(o){var s=this.props.ref,i=s==o.ref;return!i&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!i:Un(this.props,o)}function r(o){return this.shouldComponentUpdate=n,b(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ln.prototype=new ke).isPureReactComponent=!0,ln.prototype.shouldComponentUpdate=function(e,t){return Un(this.props,e)||Un(this.state,t)};var Lr=S.__b;S.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Lr&&Lr(e)};var Ji=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ns(e){function t(n){var r=es({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Ji,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Hr=function(e,t){return e==null?null:Fe(Fe(e).map(t))},rs={map:Hr,forEach:Hr,count:function(e){return e?Fe(e).length:0},only:function(e){var t=Fe(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Fe},Ki=S.__e;S.__e=function(e,t,n,r){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}Ki(e,t,n,r)};var jr=S.unmount;function os(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=es({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return os(r,t,n)})),e}function ss(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return ss(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function At(){this.__u=0,this.t=null,this.__b=null}function is(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ls(e){var t,n,r;function o(s){if(t||(t=e()).then(function(i){n=i.default||i},function(i){r=i}),r)throw r;if(!n)throw t;return b(n,s)}return o.displayName="Lazy",o.__f=!0,o}function ut(){this.u=null,this.o=null}S.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),jr&&jr(e)},(At.prototype=new ke).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var o=is(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(l):l())};n.__R=i;var l=function(){if(!--r.__u){if(r.state.__a){var c=r.state.__a;r.__v.__k[0]=ss(c,c.__c.__P,c.__c.__O)}var f;for(r.setState({__a:r.__b=null});f=r.t.pop();)f.forceUpdate()}},a=t.__h===!0;r.__u++||a||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},At.prototype.componentWillUnmount=function(){this.t=[]},At.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=os(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&b(Ie,null,e.fallback);return o&&(o.__h=null),[b(Ie,null,t.__a?null:e.children),o]};var Ur=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Yi(e){return this.getChildContext=function(){return e.context},e.children}function Xi(e){var t=this,n=e.i;t.componentWillUnmount=function(){ze(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),ze(b(Yi,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function us(e,t){var n=b(Xi,{__v:e,i:t});return n.containerInfo=t,n}(ut.prototype=new ke).__a=function(e){var t=this,n=is(t.__v),r=t.o.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),Ur(t,e,r)):o()};n?n(s):s()}},ut.prototype.render=function(e){this.u=null,this.o=new Map;var t=Fe(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ut.prototype.componentDidUpdate=ut.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Ur(e,n,t)})};var as=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Qi=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,el=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,tl=/[A-Z0-9]/g,nl=typeof document<"u",rl=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function cs(e,t,n){return t.__k==null&&(t.textContent=""),ze(e,t),typeof n=="function"&&n(),e?e.__c:null}function fs(e,t,n){return or(e,t),typeof n=="function"&&n(),e?e.__c:null}ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Br=S.event;function ol(){}function sl(){return this.cancelBubble}function il(){return this.defaultPrevented}S.event=function(e){return Br&&(e=Br(e)),e.persist=ol,e.isPropagationStopped=sl,e.isDefaultPrevented=il,e.nativeEvent=e};var ur,ll={enumerable:!1,configurable:!0,get:function(){return this.class}},Gr=S.vnode;S.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={};for(var s in n){var i=n[s];if(!(s==="value"&&"defaultValue"in n&&i==null||nl&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&i===!0?i="":l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||rl(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":el.test(s)?s=l:r.indexOf("-")===-1&&Qi.test(s)?s=s.replace(tl,"-$&").toLowerCase():i===null&&(i=void 0):l=s="oninput",l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=i}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Fe(n.children).forEach(function(a){a.props.selected=o.value.indexOf(a.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=Fe(n.children).forEach(function(a){a.props.selected=o.multiple?o.defaultValue.indexOf(a.props.value)!=-1:o.defaultValue==a.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",ll)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=as,Gr&&Gr(e)};var zr=S.__r;S.__r=function(e){zr&&zr(e),ur=e.__c};var Wr=S.diffed;S.diffed=function(e){Wr&&Wr(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),ur=null};var ds={ReactCurrentDispatcher:{current:{readContext:function(e){return ur.__n[e.__c].props.value}}}},ul="17.0.2";function hs(e){return b.bind(null,e)}function ar(e){return!!e&&e.$$typeof===as}function ps(e){return ar(e)?sr.apply(null,arguments):e}function _s(e){return!!e.__k&&(ze(null,e),!0)}function ms(e){return e&&(e.base||e.nodeType===1&&e)||null}var gs=function(e,t){return e(t)},ws=function(e,t){return e(t)},ys=Ie;function cr(e){e()}function bs(e){return e}function vs(){return[!1,cr]}var Ss=Ht;function Cs(e,t){var n=t(),r=Lt({h:{__:n,v:t}}),o=r[0].h,s=r[1];return Ht(function(){o.__=n,o.v=t,In(o.__,t())||s({h:o})},[e,n,t]),gn(function(){return In(o.__,o.v())||s({h:o}),e(function(){In(o.__,o.v())||s({h:o})})},[e]),n}var xs={useState:Lt,useId:Xo,useReducer:ir,useEffect:gn,useLayoutEffect:Ht,useInsertionEffect:Ss,useTransition:vs,useDeferredValue:bs,useSyncExternalStore:Cs,startTransition:cr,useRef:qo,useImperativeHandle:Zo,useMemo:wn,useCallback:Jo,useContext:Ko,useDebugValue:Yo,version:"17.0.2",Children:rs,render:cs,hydrate:fs,unmountComponentAtNode:_s,createPortal:us,createElement:b,createContext:zo,createFactory:hs,cloneElement:ps,createRef:Vo,Fragment:Ie,isValidElement:ar,findDOMNode:ms,Component:ke,PureComponent:ln,memo:ts,forwardRef:ns,flushSync:ws,unstable_batchedUpdates:gs,StrictMode:ys,Suspense:At,SuspenseList:ut,lazy:ls,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ds};const al=Object.freeze(Object.defineProperty({__proto__:null,Children:rs,Component:ke,Fragment:Ie,PureComponent:ln,StrictMode:ys,Suspense:At,SuspenseList:ut,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ds,cloneElement:ps,createContext:zo,createElement:b,createFactory:hs,createPortal:us,createRef:Vo,default:xs,findDOMNode:ms,flushSync:ws,forwardRef:ns,hydrate:fs,isValidElement:ar,lazy:ls,memo:ts,render:cs,startTransition:cr,unmountComponentAtNode:_s,unstable_batchedUpdates:gs,useCallback:Jo,useContext:Ko,useDebugValue:Yo,useDeferredValue:bs,useEffect:gn,useErrorBoundary:Wi,useId:Xo,useImperativeHandle:Zo,useInsertionEffect:Ss,useLayoutEffect:Ht,useMemo:wn,useReducer:ir,useRef:qo,useState:Lt,useSyncExternalStore:Cs,useTransition:vs,version:ul},Symbol.toStringTag,{value:"Module"}));function Pe(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function cl(e){return e!=null&&typeof e.GetEnumerator=="function"}function fl(e){return e!=null&&typeof e.CompareTo=="function"}function dl(e){return e!=null&&typeof e.Equals=="function"}function hl(e){return e!=null&&typeof e.GetHashCode=="function"}function Bn(e){return e!=null&&typeof e.Dispose=="function"}function F(e){Bn(e)&&e.Dispose()}function Te(){return null}function un(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class pl{constructor(t){this.iter=t,this.current=Te()}"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 z(e){return cl(e)?e.GetEnumerator():new pl(e[Symbol.iterator]())}function yn(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}class _l{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function se(e,t){let n=e.toString(10);for(;n.length<t;)n="0"+n;return n}function ml(e,t,n){let r=e.toString(10);for(;r.length<t;)r="0"+r;for(;r.length<n;)r=r+"0";return r}function qr(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function gl(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function et(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Ue{static id(t){return Ue.idMap.has(t)||Ue.idMap.set(t,++Ue.count),Ue.idMap.get(t)}}Ue.idMap=new WeakMap;Ue.count=0;function fr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Oe(e){return e*2654435761|0}function wl(e){return fr(e.toString(32))}function jt(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function yl(e){return e.getTime()}function bl(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ve(e[r]);return jt(n)}function Ve(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Oe(e);case"bigint":return wl(e);case"string":return fr(e);default:{if(hl(e))return e.GetHashCode();if(Pe(e))return bl(e);if(e instanceof Date)return yl(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ve(r));return jt(n)}else return Oe(Ue.id(e))}}}function Gn(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function Es(e,t){return Gn(e,t,oe)}function vl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!oe(e[n[o]],t[r[o]]))return!1;return!0}function oe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:dl(e)?e.Equals(t):Pe(e)?Pe(t)&&Es(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&ks(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&vl(e,t)}function ks(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+qr(e),r=t.getTime()+qr(t)),n===r?0:n<r?-1:1}function bn(e,t){return e===t?0:e<t?-1:1}function Sl(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Ts(e,t){return Sl(e,t,be)}function Cl(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,s=0;o<n.length;o++){const i=n[o];if(i!==r[o])return i<r[o]?-1:1;if(s=be(e[i],t[i]),s!==0)return s}return 0}function be(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:fl(e)?e.CompareTo(t):Pe(e)?Pe(t)?Ts(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?ks(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Cl(e,t):-1}function K(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function xl(e){Pe(e)?e.splice(0):e.clear()}const vn=new WeakMap;function V(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return vn.set(t,e),t}function Xe(e){return vn.get(e)??(t=>n=>e(t,n))}function zn(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return vn.set(t,e),t}function Pn(e){return vn.get(e)??(t=>n=>r=>e(t,n,r))}function El(e){let t=0,n="[";for(const r of e){if(t===0)n+=Me(r);else if(t===100){n+="; ...";break}else n+="; "+Me(r);t++}return n+"]"}function Me(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return El(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,s])=>o+" = "+Me(s,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function kl(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Me(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>Me(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class W{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return kl(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ve(n));return t.splice(0,0,Oe(this.tag)),jt(t)}Equals(t){return this===t?!0:un(this,t)&&this.tag===t.tag?Es(this.fields,t.fields):!1}CompareTo(t){return this===t?0:un(this,t)?this.tag===t.tag?Ts(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Tl(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Ml(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Me(n)).join(`
3
+ `)+" }"}function $l(e){const t=Object.values(e).map(n=>Ve(n));return jt(t)}function Il(e,t){if(e===t)return!0;if(un(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!oe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Pl(e,t){if(e===t)return 0;if(un(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=be(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class ue{toJSON(){return Tl(this)}toString(){return Ml(this)}GetHashCode(){return $l(this)}Equals(t){return Il(this,t)}CompareTo(t){return Pl(this,t)}}class ae{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Al{constructor(t){this.message=t}}function Ol(e){return e instanceof Al||e instanceof Error}function Nl(e){return e instanceof Promise}function an(e){return Ol(e)||Nl(e)?e:new Error(String(e))}const Ct=Symbol("numeric");function Ms(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Ct])}function Rl(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Wn(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Ct]().multiply(t)}function tn(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Ct]().toFixed(t)}function cn(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Ct]().toPrecision(t)}function fn(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Ct]().toExponential(t)}function dn(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Ct]().toHex()}class Fl{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class ve{constructor(t,n,r,o,s,i,l){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=s,this.cases=i,this.enumCases=l}toString(){return R(this)}GetHashCode(){return $s(this)}Equals(t){return qn(this,t)}}function de(e){return e.generics!=null?e.generics:[]}function $s(e){const t=fr(e.fullname),n=de(e).map($s);return jt([t,...n])}function qn(e,t){return e.fullname===""?t.fullname===""&&Gn(Nt(e),Nt(t),([n,r],[o,s])=>n===o&&qn(r,s)):e.fullname===t.fullname&&Gn(de(e),de(t),qn)}function Dl(e,t,n,r){return new ve(e,t,n,r)}function Ut(e,t,n,r){return new ve(e,t,n,void 0,r)}function Vl(...e){return new ve("",void 0,void 0,void 0,()=>e)}function Is(e,t,n,r){const o=new ve(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((i,l)=>new Fl(o,l,s[l],i))});return o}function Ll(e){return new ve("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Ps=new ve("System.Object"),tt=new ve("System.String"),Hl=new ve("System.Int32");function ht(e){if(Array.isArray(e))return e[0];if(e instanceof ve){const t=Bt(e);if(t!=null)return ht(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function R(e){const t=Bt(e);return t!=null?R(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>R(n)).join(",")+"]"}function As(e){return Bt(e)!=null}function Bt(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Os(e){return e.generics!=null&&e.generics.length>0}function dr(e){return e.enumCases!=null&&e.enumCases.length>0}function Ns(e){return e.generics==null?e:new ve(e.fullname,e.generics.map(()=>Ps))}function Rs(e){var t;return(t=e.generics)==null?void 0:t[0]}function ot(e){if(dr(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function jl(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function st(e,t){const n=parseInt(t,10);return jl(e,isNaN(n)?t:n)[1]}function Fs(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Nt(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Ds(e){if(hr(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Vs(e){return e instanceof ve?e.cases!=null:e instanceof W}function Ls(e){return e instanceof ve?e.fields!=null:e instanceof ue}function hr(e){return e.fullname.startsWith("System.Tuple")}function Ul(e,t){const r=Fs(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Hs(e){return e.fields==null?[]:e.fields}function Bl(e,t){return e[t[0]]}function Gl(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function zl(e,t){const n=Nt(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,s],i)=>(r[o]=t[i],r),{})}function Wl(e,t){return e}class ql{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class pr extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,pr.prototype)}}class _r{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>_r.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Be(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new pr);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(an(n))}});else try{e(t)}catch(n){t.onError(an(n))}}}function Zl(e,t){return Be(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(an(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Jl(e){return Be(t=>t.onSuccess(e))}class Kl{Bind(t,n){return Zl(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Be(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const s=n(o.value);return o=r.next(),s}))}Return(t){return Jl(t)}ReturnFrom(t){return t}TryFinally(t,n){return Be(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Be(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(s){r.onError(an(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Be(t=>t.onSuccess(void 0))}}const Z=new Kl;class wt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ve(this.value)}Equals(t){return t==null?!1:oe(this.value,t instanceof wt?t.value:t)}CompareTo(t){return t==null?1:be(this.value,t instanceof wt?t.value:t)}}function y(e){if(e==null)throw new Error("Option has no value");return e instanceof wt?e.value:e}function le(e){return e==null||e instanceof wt?new wt(e):e}function Zn(e,t){return e!=null?y(e):t}function Yl(e,t){return e!=null?y(e):t()}function Xl(e,t){return t!=null?le(e(y(t))):void 0}function Ql(e){return new _(0,[e])}function js(e){return new _(1,[e])}class _ extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ye(e,t){return t.tag===0?Ql(e(t.fields[0])):js(t.fields[0])}function eu(e,t){return t.tag===0?e(t.fields[0]):js(t.fields[0])}function tu(e){return new Us(0,[e])}function nu(e){return new Us(1,[e])}class Us extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function ru(e){return tu(e)}function ou(e){return nu(e)}function An(e){}const su=new ql;function iu(e){return Be(t=>{e({onSuccess:n=>t.onSuccess(ru(n)),onError:n=>t.onSuccess(ou(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function lu(e){return Be(t=>e([t.onSuccess,t.onError,t.onCancel]))}function uu(e,t){return cu(e,t)}function au(e,t){return uu(e,t)}function cu(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const s=new _r;e({onSuccess:t||An,onError:n||An,onCancel:r||An,cancelToken:o||su,trampoline:s})}class mr extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Bs extends W{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Gs extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Gt extends ue{constructor(t,n,r,o,s,i,l,a){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=s,this.overridenResponseType=i,this.timeout=l,this.content=a}}class lt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class zs extends ue{constructor(t,n,r,o,s,i){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=s,this.content=i}}function gr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+se(n,2)+":"+se(r,2)}function hn(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function fu(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return se(e.getFullYear(),4)+"-"+se(e.getMonth()+1,2)+"-"+se(e.getDate(),2)+"T"+se(e.getHours(),2)+":"+se(e.getMinutes(),2)+":"+se(e.getSeconds(),2)+"."+se(e.getMilliseconds(),3)+(n?gr(e.getTimezoneOffset()*-6e4):"")}}function du(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+gr(t)}function Ws(e,t,n){return t.replace(/(\w)\1*/g,r=>{let o=Number.NaN;switch(r.substring(0,1)){case"y":const s=n?e.getUTCFullYear():e.getFullYear();o=r.length<4?s%100:s;break;case"M":o=(n?e.getUTCMonth():e.getMonth())+1;break;case"d":o=n?e.getUTCDate():e.getDate();break;case"H":o=n?e.getUTCHours():e.getHours();break;case"h":const i=n?e.getUTCHours():e.getHours();o=i>12?i%12:i;break;case"m":o=n?e.getUTCMinutes():e.getMinutes();break;case"s":o=n?e.getUTCSeconds():e.getSeconds();break;case"f":o=n?e.getUTCMilliseconds():e.getMilliseconds();break}return Number.isNaN(o)?r:se(o,r.length)})}function hu(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+gr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return hn(n,"first");case"T":case"t":return hn(n,"second");case"O":case"o":return du(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Ws(n,t,!0)}function pu(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?hn(e,"first"):e.toLocaleDateString();case"T":case"t":return n?hn(e,"second"):e.toLocaleTimeString();case"O":case"o":return fu(e,n);default:throw new Error("Unrecognized Date print format")}else return Ws(e,t,n)}function Sn(e,t,n){return e.offset!=null?hu(e,t):pu(e,t)}function wr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function _u(){return wr(-621355968e5,0)}function qs(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let s,i=0;if(o[2]!=null){const l=o[2].split(":");i=parseInt(l[0],10)*3600+parseInt(l[1]||"0",10)*60+parseFloat(l[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&(i+=720)}if(o[4]!=null){if(o[1]!=null)s=new Date(o[1]+" UTC");else{const l=new Date;s=new Date(l.getUTCFullYear()+"/"+(l.getUTCMonth()+1)+"/"+l.getUTCDate())}if(o[4]==="Z")r="Z";else{let l=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(l*=-1),r=l,i-=l*60}}else if(o[1]!=null)s=new Date(o[1]);else{const l=new Date;s=new Date(l.getFullYear()+"/"+(l.getMonth()+1)+"/"+l.getDate())}n=new Date(s.getTime()+i*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function mu(e,t=!1){const[n,r]=qs(e),o=r!=null?t&&r==="Z"?1:2:0;return wr(n.getTime(),o)}function gu(e,t){try{return t.contents=mu(e),!0}catch{return!1}}function wu(e){return e.kind===1?e:wr(e.getTime(),1)}function yu(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Zs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Zr(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,s=-1;for(;(o=e.exec(t))!=null;)o.index===s?e.lastIndex++:(s=o.index,r.push(o));return r}function bu(e,t,n,r,o=0){function s(){let i=arguments[0];if(r){r--;const l=[],a=arguments.length,c=typeof arguments[a-1]!="string";let f=c?a-3:a-2;for(let u=0;u<f;u++)l.push(arguments[u]);l.index=arguments[f++],l.input=arguments[f++],c&&(l.groups=arguments[f]),i=n(l)}return i}if(typeof e=="string"){const i=e;e=yu(t,r??0),t=i,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,s);if(n=n.replace(/\$0/g,i=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let i;const l=t.substring(o),a=Zr(e,l),c=Zr.length>r?(i=a[r-1],l.substring(0,i.index+i[0].length)):l;return t.substring(0,o)+c.replace(e,n)+t.substring(o+c.length)}else return t.replace(e,n)}const Tt=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,vu=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Js(e,t){return Rl(e,t)<0}function We(e){return{input:e,cont:Cu(e)}}function Ks(e,t){return typeof t=="string"?e(t):t.cont(e)}function yt(e){return Ks(t=>t,e)}function Ys(e){return Ks(t=>{throw new Error(t)},e)}function Su(e,t,n,r,o){let s="";if(t=t||"",o=o||"",Ms(e))switch(o.toLowerCase()!=="x"&&(Js(e,0)?(e=Wn(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=tn(e,r);break;case"g":case"G":e=r!=null?cn(e,r):cn(e);break;case"e":case"E":e=r!=null?fn(e,r):fn(e);break;case"x":e=dn(e);break;case"X":e=dn(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Sn(e):e=Me(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const i=t.indexOf("0")>=0,l=t.indexOf("-")>=0,a=l||!i?" ":"0";a==="0"?(e=Rt(e,n-s.length,a,l),e=s+e):e=Rt(s+e,n,a,l)}return e}function Xs(e,t,n,r="",o=-1){return(...s)=>{let i=r;const l=t.slice(),a=n.slice();for(const c of s){const[,,f,u,p,h]=a[0];let d=u;if(o>=0)d=o,o=-1;else if(d==="*"){if(c<0)throw new Error("Non-negative number required");o=c;continue}i+=l[0],i+=Su(c,f,d,p,h),l.splice(0,1),a.splice(0,1)}return a.length===0?(i+=l[0],e(i)):Xs(e,l,a,i,o)}}function Cu(e){return t=>{Tt.lastIndex=0;const n=[],r=[];let o=0,s=Tt.exec(e);for(;s;){const i=s.index+(s[1]||"").length;n.push(e.substring(o,i).replace(/%%/g,"%")),r.push(s),o=Tt.lastIndex,Tt.lastIndex-=1,s=Tt.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),Xs(t,n,r))}}function xu(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(vu,(r,o,s,i,l,a)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let c=t[o];if(Ms(c))switch(l=l==null?null:parseInt(l,10),i){case"f":case"F":l=l??2,c=tn(c,l);break;case"g":case"G":c=l!=null?cn(c,l):cn(c);break;case"e":case"E":c=l!=null?fn(c,l):fn(c);break;case"p":case"P":l=l??2,c=tn(Wn(c,100),l)+" %";break;case"d":case"D":c=l!=null?On(String(c),l,"0"):String(c);break;case"x":case"X":c=l!=null?On(dn(c),l,"0"):dn(c),i==="X"&&(c=c.toUpperCase());break;default:if(a){let f="";c=a.replace(/([0#,]+)(\.[0#]+)?/,(u,p,h)=>{Js(c,0)&&(c=Wn(c,-1),f="-"),h=h==null?"":h.substring(1),c=tn(c,Math.max(h.length,0));let[d,m]=c.split(".");m||(m="");const g=p.replace(/,/g,"").replace(/^#+/,"").length;d=On(d,g,"0");const w=h.replace(/#+$/,"").length;if(w>m.length?m=ku(m,w,"0"):w<m.length&&(m=m.substring(0,w)+m.substring(w).replace(/0+$/,"")),p.indexOf(",")>0){const C=d.length%3,k=Math.floor(d.length/3);let q=C>0?d.substr(0,C)+(k>0?",":""):"";for(let H=0;H<k;H++)q+=d.substr(C+H*3,3)+(H<k-1?",":"");d=q}return m.length>0?d+"."+m:d}),c=f+c}}else c instanceof Date?c=Sn(c,a||i):c=Me(c);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(c=Rt(String(c),Math.abs(s)," ",s<0)),c})}function Eu(e){return typeof e!="string"||e.length===0}function Le(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Rt(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function On(e,t,n){return Rt(e,t,n)}function ku(e,t,n){return Rt(e,t,n,!0)}function Tu(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Zs),t=t.length>0?t:["\\s"];const i=[],l=new RegExp(t.join("|"),"g");let a=!0,c=0;do{const f=l.exec(e);if(f===null){const u=s?e.substring(c).trim():e.substring(c);(!o||u.length>0)&&i.push(u),a=!1}else{const u=s?e.substring(c,f.index).trim():e.substring(c,f.index);(!o||u.length>0)&&(n!=null&&i.length+1===n?(i.push(s?e.substring(c).trim():e.substring(c)),a=!1):i.push(u)),c=l.lastIndex}}while(a);return i}function Mu(e,...t){if(t.length===0)return e.trim();const n="["+Zs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}const Qs="Collection was empty.";function ei(e,t){return typeof e=="function"?new e(t):new Array(t)}function Jr(e,t){return e>t?e:t}function Cn(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function xt(e,t,n){const r=t.length|0,o=ei(n,r);for(let s=0;s<=r-1;s++)o[s]=e(t[s]);return o}function $u(e,t){const n=ei(t,1);return n[0]=e,n}function Iu(e){return e.slice().reverse()}function Pu(e,t){return t.find(e)}function Au(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const s=e(t[o]);if(s!=null){const i=y(s);r.push(i)}}return oe(n,Te())?r:xt(o=>o,r,n)}function xn(e,t,n){return n.reduce(e,t)}function ti(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class he extends ue{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Le("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,s)=>{e:for(;;){const i=o,l=s,a=i.tail,c=l.tail;if(a!=null)if(c!=null){const f=y(a),u=y(c);if(oe(i.head,l.head)){o=f,s=u;continue e}else return!1}else return!1;else return c==null}})(n,t)}GetHashCode(){return((r,o,s)=>{e:for(;;){const i=r,l=o,a=s,c=a.tail;if(c!=null){const f=y(c);if(i>18)return l|0;r=i+1,o=(l<<1)+Ve(a.head)+631*i,s=f;continue e}else return l|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,s)=>{e:for(;;){const i=o,l=s,a=i.tail,c=l.tail;if(a!=null)if(c!=null){const f=y(a),u=y(c),p=be(i.head,l.head)|0;if(p===0){o=f,s=u;continue e}else return p|0}else return 1;else return c!=null?-1:0}})(this,t)|0}GetEnumerator(){return Nu(this)}[Symbol.iterator](){return yn(z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return z(this)}}class Ou{constructor(t){this.xs=t,this.it=this.xs,this.current=Te()}"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,n=t.it.tail;if(n!=null){const r=y(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Te()}Dispose(){}}function Nu(e){return new Ou(e)}function ee(){return new he(Te(),void 0)}function zt(e,t){return new he(e,t)}function yr(e){return e.tail==null}function Ru(e){return((n,r)=>{e:for(;;){const o=n,i=r.tail;if(i!=null){n=o+1,r=y(i);continue e}else return o|0}})(0,e)|0}function ni(e){if(e.tail!=null)return e.head;throw new Error(Qs+"\\nParameter name: list")}function He(e){const t=e.tail;if(t!=null)return y(t);throw new Error(Qs+"\\nParameter name: list")}function J(){return ee()}function me(e,t){return zt(e,t)}function Y(e){return zt(e,ee())}function I(e){return yr(e)}function x(e){return ni(e)}function M(e){return He(e)}function Wt(e){const t=Ru(e)|0,n=Cn(new Array(t),0,t,null);return((o,s)=>{e:for(;;){const i=o,l=s;if(!yr(l)){n[i]=ni(l),o=i+1,s=He(l);continue e}break}})(0,e),n}function Ae(e,t,n){let r=t,o=n;for(;!yr(o);)r=e(r,x(o)),o=He(o);return r}function br(e){return Ae((t,n)=>zt(n,t),ee(),e)}function Fu(e,t,n){return ti(e,Wt(t),n)}function pn(e,t){Ae((n,r)=>{e(r)},void 0,t)}function D(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=zt(e[r],n);return n}function U(e){return D(e,ee())}function Du(e){let t,n;if(Pe(e))return U(e);if(e instanceof he)return e;{const r=ee();let o=r;const s=z(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const a=s["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new he(a,void 0),t.tail=n,n)}}finally{F(s)}const i=o,l=ee();return i.tail=l,He(r)}}function vr(e,t){return Ae((n,r)=>zt(r,n),t,br(e))}function at(e,t){const n=ee(),r=Ae((s,i)=>{const l=new he(e(i),void 0);return s.tail=l,l},n,t),o=ee();return r.tail=o,He(n)}function Vu(e,t){const n=ee(),r=Ae((s,i)=>{if(e(i)){const l=new he(i,void 0);return s.tail=l,l}else return s},n,t),o=ee();return r.tail=o,He(n)}function Lu(e,t){const n=ee(),r=ee(),o=n,s=Ae((a,c)=>{let f,u;const p=a[0],h=a[1];return e(c)?[(f=new he(c,void 0),p.tail=f,f),h]:[p,(u=new he(c,void 0),h.tail=u,u)]},[o,r],t),i=ee();s[0].tail=i;const l=ee();return s[1].tail=l,[He(o),He(r)]}function Hu(e,t){const n=ee(),r=Ae((s,i)=>{const l=e(i);if(l==null)return s;{const a=new he(y(l),void 0);return s.tail=a,a}},n,t),o=ee();return r.tail=o,He(n)}function ju(e,t){return Ae((n,r)=>n&&e(r),!0,t)}function Uu(e){throw new Error(e)}const Bu="Enumeration already finished.",Gu="Enumeration has not started. Call MoveNext.",ri="The input sequence has an insufficient number of elements.",zu="Reset is not supported on this enumerator.";function Wu(){throw new Error(zu)}function Sr(){throw new Error(Gu)}function Jn(){throw new Error(Bu)}class qu{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=z(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Me(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{F(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return yn(z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Zu(e){return new qu(e)}class Ju{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"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"(){Wu()}Dispose(){this.dispose()}}function En(e,t,n){return new Ju(e,t,n)}function Ku(e){let t,n,r=!1,o=!1,s;const i=()=>{if(o=!0,n!=null){const l=y(n);try{F(l)}finally{n=void 0}}if(t!=null){const l=y(t);try{F(l)}finally{t=void 0}}};return En(()=>(r?o&&Jn():Sr(),s!=null?y(s):Jn()),()=>{let l;if(r||(r=!0),o)return!1;{let a;for(;a==null;){const c=t,f=n;if(c!=null)if(f!=null){const u=y(f);if(u["System.Collections.IEnumerator.MoveNext"]())s=le(u["System.Collections.Generic.IEnumerator`1.get_Current"]()),a=!0;else try{F(u)}finally{n=void 0}}else{const u=y(c);u["System.Collections.IEnumerator.MoveNext"]()?n=(l=u["System.Collections.Generic.IEnumerator`1.get_Current"](),z(l)):(i(),a=!1)}else t=z(e)}return y(a)}},()=>{o||i()})}function Yu(e,t){return En(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{F(t)}finally{e()}})}function oi(e,t,n){let r=!1,o,s=le(e());const i=()=>{if(s!=null){const a=y(s);try{n(a)}finally{s=void 0}}},l=()=>{try{i()}finally{o=void 0}};return En(()=>(r||Sr(),o!=null?y(o):Jn()),()=>{if(r||(r=!0),s!=null){const a=y(s);let c;try{c=t(a)}catch(f){throw l(),f}return c!=null?(o=c,!0):(l(),!1)}else return!1},i)}function Xu(e,t){let n,r=t;return En(()=>{if(n!=null){const o=y(n)[0];return y(n)[1],o}else return Sr()},()=>(n=e(r),n!=null?(y(n)[0],r=y(n)[1],!0):!1),()=>{})}function Qu(e,t){t==null&&Uu(e)}function Et(e){return Zu(e)}function qe(e){return Qu("source",e),z(e)}function $(e){return Et(()=>z(e()))}function si(e){return Et(()=>Ku(e))}function ea(e,t){return Et(()=>Xu(e,t))}function Kn(){return $(()=>new Array(0))}function T(e){return $(()=>$u(e))}function ta(e){return e instanceof he?Wt(e):Array.from(e)}function ge(e){return Pe(e)?U(e):e instanceof he?e:Du(e)}function na(e,t,n){return Et(()=>oi(e,t,n))}function ii(e,t,n){return Et(()=>{let r=-1;return oi(e,o=>(r=r+1|0,t(r,o)),n)})}function ie(e,t){return si([e,t])}function ra(e,t,n){const r=qe(t);try{const o=qe(n);try{let s=0,i=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&i&&l;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(i=r["System.Collections.IEnumerator.MoveNext"](),l=o["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:i?1:l?-1:0)|0}finally{F(o)}}finally{F(r)}}function it(e,t,n){const r=qe(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{F(r)}}function kn(e,t,n){const r=qe(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{F(r)}}function li(e,t){kn((n,r)=>{e(r)},void 0,t)}function we(e,t){return na(()=>qe(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?le(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function oa(e,t){return ii(()=>qe(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?le(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{F(n)})}function sa(e){return $(()=>Iu(ta(e)))}function ia(e,t){return Et(()=>{const n=qe(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ri+"\\nParameter name: source");return Yu(()=>{},n)}catch(r){throw F(n),r}})}function la(e,t){return ii(()=>qe(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return le(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ri+"\\nParameter name: source")}else return},n=>{F(n)})}function ua(e,t){return $(()=>si(we(e,t)))}class ui{constructor(t,n){this.k=t,this.v=n}}function Ft(e,t){return new ui(e,t)}function G(e){return e.k}function re(e){return e.v}class B extends ui{constructor(t,n,r,o,s){super(t,n),this.left=r,this.right=o,this.h=s|0}}function Ot(e,t,n,r,o){return new B(e,t,n,r,o)}function X(e){return e.left}function Q(e){return e.right}function Ge(e){return e.h}function ai(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof B){const s=o;e=ai(n+1,X(s)),t=Q(s);continue e}else return n+1|0}else return n|0}}function aa(e){return ai(0,e)}function Se(e,t,n,r){let o,s,i;const l=e;if(l!=null){const u=y(l);i=u instanceof B?(o=u,Ge(o)):1}else i=0;let a;const c=r;if(c!=null){const u=y(c);a=u instanceof B?(s=u,Ge(s)):1}else a=0;const f=(i<a?a:i)|0;return f===0?Ft(t,n):Ot(t,n,e,r,f+1)}function Kr(e,t,n,r){let o,s,i,l,a,c,f,u,p;const h=e;if(h!=null){const g=y(h);p=g instanceof B?(o=g,Ge(o)):1}else p=0;let d;const m=r;if(m!=null){const g=y(m);d=g instanceof B?(s=g,Ge(s)):1}else d=0;if(d>p+2){const g=y(r);if(g instanceof B){const w=g;if(i=X(w),(i!=null?(l=y(i),l instanceof B?(a=l,Ge(a)):1):0)>p+1){const C=y(X(w));if(C instanceof B){const k=C;return Se(Se(e,t,n,X(k)),G(k),re(k),Se(Q(k),G(w),re(w),Q(w)))}else throw new Error("internal error: Map.rebalance")}else return Se(Se(e,t,n,X(w)),G(w),re(w),Q(w))}else throw new Error("internal error: Map.rebalance")}else if(p>d+2){const g=y(e);if(g instanceof B){const w=g;if(c=Q(w),(c!=null?(f=y(c),f instanceof B?(u=f,Ge(u)):1):0)>d+1){const C=y(Q(w));if(C instanceof B){const k=C;return Se(Se(X(w),G(w),re(w),X(k)),G(k),re(k),Se(Q(k),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Se(X(w),G(w),re(w),Se(Q(w),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Se(e,t,n,r)}function bt(e,t,n,r){if(r!=null){const o=y(r),s=e.Compare(t,G(o))|0;if(o instanceof B){const i=o;return s<0?Kr(bt(e,t,n,X(i)),G(i),re(i),Q(i)):s===0?Ot(t,n,X(i),Q(i),Ge(i)):Kr(X(i),G(i),re(i),bt(e,t,n,Q(i)))}else return s<0?Ot(t,n,void 0,r,2):s===0?Ft(t,n):Ot(t,n,r,void 0,2)}else return Ft(t,n)}function ci(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,G(i))|0;if(l===0)return le(re(i));if(i instanceof B){const a=i;e=r,t=o,n=l<0?X(a):Q(a);continue e}else return}else return}}function ca(e,t,n){const r=ci(e,t,n);if(r==null)throw new Error;return y(r)}function fa(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,G(i))|0;if(i instanceof B){const a=i;if(l<0){e=r,t=o,n=X(a);continue e}else{if(l===0)return!0;e=r,t=o,n=Q(a);continue e}}else return l===0}else return!1}}function fi(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof B){const s=o;fi(n,X(s)),n(G(s),re(s)),e=n,t=Q(s);continue e}else n(G(o),re(o))}break}}function da(e,t){fi(e,t)}function Yn(e,t){if(t!=null){const n=y(t);if(n instanceof B){const r=n,o=Yn(e,X(r)),s=e(G(r),re(r)),i=Yn(e,Q(r));return Ot(G(r),s,o,i,Ge(r))}else return Ft(G(n),e(G(n),re(n)))}else return void 0}function ha(e,t){return Yn(e,t)}function pa(e,t,n){let r=n;da((o,s)=>{t[r]=[o,s],r=r+1|0},e)}function _a(e,t){return Ae((n,r)=>bt(e,r[0],r[1],n),void 0,t)}function ma(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const i=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=bt(r,i[0],i[1],o),n=s;continue e}else return o}}function ga(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=t[r];n=bt(e,o[0],o[1],n)}return n}function di(e,t){if(Pe(t))return ga(e,t);if(t instanceof he)return _a(e,t);{const n=z(t);try{return ma(e,void 0,n)}finally{F(n)}}}class wa extends ue{constructor(t,n){super(),this.stack=t,this.started=n}}function hi(e){e:for(;;){const t=e;if(I(t))return J();{const n=M(t),r=x(t);if(r!=null){const o=y(r);if(o instanceof B){const s=o;e=D([X(s),Ft(G(s),re(s)),Q(s)],n);continue e}else return t}else{e=n;continue e}}}}function Yr(e){return new wa(hi(Y(e)),!1)}function ya(){throw new Error("enumeration not started")}function ba(){throw new Error("enumeration already finished")}function Xr(e){if(e.started){const t=e.stack;if(I(t))return ba();if(x(t)!=null){const n=y(x(t));if(n instanceof B)throw new Error("Please report error: Map iterator, unexpected stack for current");return[G(n),re(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ya()}function va(e){if(e.started){const t=e.stack;if(I(t))return!1;if(x(t)!=null){if(y(x(t))instanceof B)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=hi(M(t)),!I(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function Qr(e){let t=Yr(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Xr(t)},"System.Collections.IEnumerator.get_Current"(){return Xr(t)},"System.Collections.IEnumerator.MoveNext"(){return va(t)},"System.Collections.IEnumerator.Reset"(){t=Yr(e)},Dispose(){}}}class _n{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ka(this)|0}Equals(t){const n=this;if(t instanceof _n){const r=t,o=z(n);try{const s=z(r);try{const i=()=>{const l=o["System.Collections.IEnumerator.MoveNext"]();if(l===s["System.Collections.IEnumerator.MoveNext"]())if(l){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"](),c=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return oe(a[0],c[0])&&oe(a[1],c[1])?i():!1}else return!0;else return!1};return i()}finally{F(s)}}finally{F(o)}}else return!1}toString(){return"map ["+Le("; ",we(n=>xu("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Qr(this.tree)}[Symbol.iterator](){return yn(z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Qr(this.tree)}CompareTo(t){const n=this;if(t instanceof _n)return ra((o,s)=>{const i=n.comparer.Compare(o[0],s[0])|0;return(i!==0?i:be(o[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){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"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return to(n,t[0])&&oe(eo(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){pa(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Nn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Nn(this)|0}get size(){return Nn(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return we(n=>[n[0],n[1]],this)}get(t){return eo(this,t)}has(t){return to(this,t)}keys(){return we(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return we(n=>n[1],this)}forEach(t,n){const r=this;li(o=>{t(o[1],o[0],r)},r)}}function qt(e,t){return new _n(e,t)}function Sa(e){return qt(e,void 0)}function Ca(e,t,n){return qt(e.comparer,bt(e.comparer,t,n,e.tree))}function eo(e,t){return ca(e.comparer,t,e.tree)}function xa(e,t){return qt(e.comparer,ha(t,e.tree))}function Nn(e){return aa(e.tree)}function to(e,t){return fa(e.comparer,t,e.tree)}function Ea(e,t){return ci(e.comparer,t,e.tree)}function ka(e){const t=(o,s)=>(o<<1)+s+631;let n=0;const r=z(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ve(o[0]))|0,n=t(n,Ve(o[1]))|0}}finally{F(r)}return n|0}function pi(e,t,n){return Ca(n,e,t)}function _i(e,t){return Ea(t,e)}function mi(e,t){return xa(t,e)}function Ta(e,t){return qt(t,di(t,e))}function Ma(e,t){return qt(t,di(t,e))}function Cr(e){return Sa(e)}function $a(e){return new Bs("Content-Type",e)}function gi(e){return new Bs("Authorization",e)}const Ke=new Gt("",new mr(0,[]),J(),!1,void 0,void 0,void 0,new Gs(0,[]));new zs(0,"","","",Cr({Compare:bn}),new lt(0,[""]));function no(e,t){return Eu(t)?[t]:Tu(t,[e],void 0,0)}function Ia(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"}}function wi(e){return new Gt(e,Ke.method,Ke.headers,Ke.withCredentials,Ke.overridenMimeType,Ke.overridenResponseType,Ke.timeout,Ke.content)}function yi(e,t){return new Gt(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Xn(e,t){return new Gt(t.url,t.method,vr(t.headers,Y(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Pa(e,t){return new Gt(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function bi(e){return lu(t=>{const n=new XMLHttpRequest;n.open(Ia(e.method),e.url),n.onreadystatechange=()=>{let a,c,f,u,p,h,d;n.readyState===4&&t[0]((a=(c=n.responseType,c===""||c==="text"?n.responseText:""),f=n.status|0,u=n.responseType,p=(h=n.responseType,h===""?new lt(0,[n.responseText]):h==="text"?new lt(0,[n.responseText]):h==="arraybuffer"?new lt(2,[n.response]):h==="blob"?new lt(1,[n.response]):new lt(3,[n.response])),d=Ma(Au(m=>{const g=U(no(":",m));if(!I(g))return[x(g).toLocaleLowerCase(),Le(":",M(g)).trim()]},no(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:bn}),new zs(f,a,u,n.responseURL,d,p)))};const r=z(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const a=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(a.fields[0],a.fields[1])}}finally{F(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const a=o;n.overrideMimeType(a)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const i=e.timeout;if(i!=null){const a=i|0;n.timeout=a|0}const l=e.content;switch(l.tag){case 1:{n.send(le(l.fields[0]));break}case 3:{n.send(le(l.fields[0]));break}case 2:{n.send(le(l.fields[0]));break}default:n.send()}})}const Qe={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Rn(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Aa(e,t){switch(t){case Qe.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Qe.SnakeCase:return Rn(e,"_");case Qe.SnakeCaseAllCaps:return Rn(e,"_").toUpperCase();case Qe.KebabCase:return Rn(e,"-");case Qe.None:default:return e}}function Oa(e,t=Qe.None){const n={},r=t;function o(i){throw new Error("Cannot infer key and value of "+String(i))}function s(i,l,a){i=Aa(i,l),n[i]=a}for(let i of e){let l=Qe.None;if(i==null&&o(i),i instanceof W){const a=i.cases()[i.tag];i=i.fields.length===0?a:[a].concat(i.fields),l=r}if(Array.isArray(i))switch(i.length){case 0:o(i);break;case 1:s(i[0],l,!0);break;case 2:const a=i[1];s(i[0],l,a);break;default:s(i[0],l,i.slice(1))}else typeof i=="string"?s(i,l,!0):o(i)}return n}class v extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Tn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function ro(e){return e.slice(void 0,0+1).toLowerCase()+e.slice(1,e.length)}function vi(e,t){switch(e.tag){case 2:return bu(ro(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ro(t)}}const Na=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,oo=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Ra=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Fa(e){function t(r){return r.replace(oo,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Na.test(n))return Mu(n,"{","}","(",")");if(oo.test(n))return t(n);if(Ra.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function Da(e,t){try{return t.contents=Fa(e),!0}catch{return!1}}var Qn;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Qn||(Qn={}));function Va(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function so(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function La(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.")}}function Ha(e,t){if(t&Qn.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}}function ja(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,s,i]=o;if(n=n||Ha(s,t),!La(n).test(i))return Va(o,n)}return null}function Ua(e,t,n,r,o){const s=ja(e,t,o);if(s!=null){let i=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(i)){const[l,a]=so(!0,r);!n&&s.radix!==10&&i>=l&&i<=a&&(i=i<<32-r>>32-r);const[c,f]=so(n,r);if(i>=c&&i<=f)return i}}throw new Error("Input string was not in a correct format.")}function kt(e,t,n,r,o){try{return o.contents=Ua(e,t,n,r),!0}catch{return!1}}function Si(e,t){Ba(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Ba(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function Ga(){return Si(-621355968e5,0)}function za(e){const[t,n]=qs(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Si(t.getTime(),r)}function Wa(e,t){try{return t.contents=za(e),!0}catch{return!1}}function Zt(e){return e<0?Math.ceil(e):Math.floor(e)}function io(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return qa(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function qa(e){return Number(BigInt(e)/10000n)}function Za(e){return Zt(e/864e5)}function Ja(e){return Zt(e%864e5/36e5)}function Ka(e){return Zt(e%36e5/6e4)}function Ya(e){return Zt(e%6e4/1e3)}function Xa(e){return Zt(e%1e3)}function Qa(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Za(e)),o=Math.abs(Ja(e)),s=Math.abs(Ka(e)),i=Math.abs(Ya(e)),l=Math.abs(Xa(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?o:se(o,2)}:${se(s,2)}:${se(i,2)}${l===0&&(t==="c"||t==="g")?"":t==="g"?"."+se(l,3):"."+ml(l,3,7)}`}function ec(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return io(r,0,0,0,0)}if(n>0){const r=/^(-?)((\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(r!=null&&r[4]!=null&&r[5]!=null){let o=0,s=0,i=0;const l=r[1]!=null&&r[1]==="-"?-1:1,a=+r[4],c=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(i=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return l*io(o,a,c,i,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function tc(e,t){try{return t.contents=ec(e),!0}catch{return!1}}class Ci{constructor(t){this.k=t}}function ce(e){return new Ci(e)}function E(e){return e.k}class P extends Ci{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function fe(e,t,n,r){return new P(e,t,n,r)}function N(e){return e.left}function A(e){return e.right}function ct(e){return e.h}function xi(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=y(n);if(o instanceof P){const s=o;e=N(s),t=xi(A(s),r+1);continue e}else return r+1|0}else return r|0}}function nc(e){return xi(e,0)}function Ce(e,t,n){let r,o,s;const i=e;if(i!=null){const f=y(i);s=f instanceof P?(r=f,ct(r)):1}else s=0;let l;const a=n;if(a!=null){const f=y(a);l=f instanceof P?(o=f,ct(o)):1}else l=0;const c=(s<l?l:s)|0;return c===0?ce(t):fe(t,e,n,c+1)}function lo(e,t,n){let r,o,s,i,l,a,c,f,u;const p=e;if(p!=null){const m=y(p);u=m instanceof P?(r=m,ct(r)):1}else u=0;let h;const d=n;if(d!=null){const m=y(d);h=m instanceof P?(o=m,ct(o)):1}else h=0;if(h>u+2){const m=y(n);if(m instanceof P){const g=m;if(s=N(g),(s!=null?(i=y(s),i instanceof P?(l=i,ct(l)):1):0)>u+1){const w=y(N(g));if(w instanceof P){const C=w;return Ce(Ce(e,t,N(C)),E(C),Ce(A(C),E(g),A(g)))}else throw new Error("internal error: Set.rebalance")}else return Ce(Ce(e,t,N(g)),E(g),A(g))}else throw new Error("internal error: Set.rebalance")}else if(u>h+2){const m=y(e);if(m instanceof P){const g=m;if(a=A(g),(a!=null?(c=y(a),c instanceof P?(f=c,ct(f)):1):0)>h+1){const w=y(A(g));if(w instanceof P){const C=w;return Ce(Ce(N(g),E(g),N(C)),E(C),Ce(A(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ce(N(g),E(g),Ce(A(g),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ce(e,t,n)}function vt(e,t,n){if(n!=null){const r=y(n),o=e.Compare(t,E(r))|0;if(r instanceof P){const s=r;return o<0?lo(vt(e,t,N(s)),E(s),A(s)):o===0?n:lo(N(s),E(s),vt(e,t,A(s)))}else{const s=e.Compare(t,E(r))|0;return s<0?fe(t,void 0,n,2):s===0?n:fe(t,n,void 0,2)}}else return ce(t)}function Ei(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s!=null){const i=y(s),l=r.Compare(o,E(i))|0;if(i instanceof P){const a=i;if(l<0){e=r,t=o,n=N(a);continue e}else{if(l===0)return!0;e=r,t=o,n=A(a);continue e}}else return l===0}else return!1}}function ki(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=y(r);if(o instanceof P){const s=o;ki(n,N(s)),n(E(s)),e=n,t=A(s);continue e}else n(E(o))}break}}class rc extends ue{constructor(t,n){super(),this.stack=t,this.started=n}}function Ti(e){e:for(;;){const t=e;if(I(t))return J();{const n=x(t),r=M(t);if(n!=null){const o=y(n);if(o instanceof P){const s=o;e=D([N(s),ce(E(s)),A(s)],r);continue e}else return t}else{e=r;continue e}}}}function uo(e){return new rc(Ti(Y(e)),!1)}function oc(){throw new Error("Enumeration not started")}function sc(){throw new Error("Enumeration already started")}function ao(e){if(e.started){const t=e.stack;if(I(t))return sc();if(x(t)!=null){const n=y(x(t));return E(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return oc()}function ic(e){if(e.started){const t=e.stack;if(I(t))return!1;if(x(t)!=null){if(y(x(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ti(M(t)),!I(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!I(e.stack)}function co(e){let t=uo(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ao(t)},"System.Collections.IEnumerator.get_Current"(){return ao(t)},"System.Collections.IEnumerator.MoveNext"(){return ic(t)},"System.Collections.IEnumerator.Reset"(){t=uo(e)},Dispose(){}}}function lc(e,t,n){e:for(;;){const r=e,o=t,s=n;if(I(o))return I(s)?0:-1;if(I(s))return 1;if(x(s)!=null)if(x(o)!=null){const i=y(x(o)),l=y(x(s));if(i instanceof P){const a=i;if(N(a)==null)if(l instanceof P){const c=l;if(N(c)==null){const f=r.Compare(E(a),E(c))|0;if(f!==0)return f|0;e=r,t=me(A(a),M(o)),n=me(A(c),M(s));continue e}else{let f,u,p,h,d;switch(I(o)?I(s)?f=2:x(s)!=null?(f=1,h=M(s),d=y(x(s))):f=2:x(o)!=null?(f=0,u=M(o),p=y(x(o))):I(s)?f=2:x(s)!=null?(f=1,h=M(s),d=y(x(s))):f=2,f){case 0:if(p instanceof P){const m=p;e=r,t=D([N(m),fe(E(m),void 0,A(m),0)],u),n=s;continue e}else{e=r,t=D([void 0,ce(E(p))],u),n=s;continue e}case 1:if(d instanceof P){const m=d;e=r,t=o,n=D([N(m),fe(E(m),void 0,A(m),0)],h);continue e}else{e=r,t=o,n=D([void 0,ce(E(d))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const c=r.Compare(E(a),E(l))|0;if(c!==0)return c|0;e=r,t=me(A(a),M(o)),n=me(void 0,M(s));continue e}else{let c,f,u,p,h;switch(I(o)?I(s)?c=2:x(s)!=null?(c=1,p=M(s),h=y(x(s))):c=2:x(o)!=null?(c=0,f=M(o),u=y(x(o))):I(s)?c=2:x(s)!=null?(c=1,p=M(s),h=y(x(s))):c=2,c){case 0:if(u instanceof P){const d=u;e=r,t=D([N(d),fe(E(d),void 0,A(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof P){const d=h;e=r,t=o,n=D([N(d),fe(E(d),void 0,A(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(l instanceof P){const a=l;if(N(a)==null){const c=r.Compare(E(i),E(a))|0;if(c!==0)return c|0;e=r,t=me(void 0,M(o)),n=me(A(a),M(s));continue e}else{let c,f,u,p,h;switch(I(o)?I(s)?c=2:x(s)!=null?(c=1,p=M(s),h=y(x(s))):c=2:x(o)!=null?(c=0,f=M(o),u=y(x(o))):I(s)?c=2:x(s)!=null?(c=1,p=M(s),h=y(x(s))):c=2,c){case 0:if(u instanceof P){const d=u;e=r,t=D([N(d),fe(E(d),void 0,A(d),0)],f),n=s;continue e}else{e=r,t=D([void 0,ce(E(u))],f),n=s;continue e}case 1:if(h instanceof P){const d=h;e=r,t=o,n=D([N(d),fe(E(d),void 0,A(d),0)],p);continue e}else{e=r,t=o,n=D([void 0,ce(E(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const a=r.Compare(E(i),E(l))|0;if(a!==0)return a|0;e=r,t=M(o),n=M(s);continue e}}else{y(x(s));let i,l,a,c,f;switch(I(o)?I(s)?i=2:x(s)!=null?(i=1,c=M(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=M(o),a=y(x(o))):I(s)?i=2:x(s)!=null?(i=1,c=M(s),f=y(x(s))):i=2,i){case 0:if(a instanceof P){const u=a;e=r,t=D([N(u),fe(E(u),void 0,A(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(a))],l),n=s;continue e}case 1:if(f instanceof P){const u=f;e=r,t=o,n=D([N(u),fe(E(u),void 0,A(u),0)],c);continue e}else{e=r,t=o,n=D([void 0,ce(E(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(x(o)!=null){y(x(o));let i,l,a,c,f;switch(I(o)?I(s)?i=2:x(s)!=null?(i=1,c=M(s),f=y(x(s))):i=2:x(o)!=null?(i=0,l=M(o),a=y(x(o))):I(s)?i=2:x(s)!=null?(i=1,c=M(s),f=y(x(s))):i=2,i){case 0:if(a instanceof P){const u=a;e=r,t=D([N(u),fe(E(u),void 0,A(u),0)],l),n=s;continue e}else{e=r,t=D([void 0,ce(E(a))],l),n=s;continue e}case 1:if(f instanceof P){const u=f;e=r,t=o,n=D([N(u),fe(E(u),void 0,A(u),0)],c);continue e}else{e=r,t=o,n=D([void 0,ce(E(f))],c);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=M(o),n=M(s);continue e}}}function fo(e,t,n){return t==null?n==null?0:-1:n==null?1:lc(e,Y(t),Y(n))|0}function uc(e,t,n){let r=n;ki(o=>{t[r]=o,r=r+1|0},e)}function ac(e,t,n){e:for(;;){const r=e,o=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){e=r,t=vt(r,s["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=s;continue e}else return o}}function cc(e,t){return xn((n,r)=>vt(e,r,n),void 0,t)}function fc(e,t){return Ae((n,r)=>vt(e,r,n),void 0,t)}function Mi(e,t){if(Pe(t))return cc(e,t);if(t instanceof he)return fc(e,t);{const n=z(t);try{return ac(e,void 0,n)}finally{F(n)}}}class xr{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return pc(this)|0}Equals(t){let n;const r=this;return t instanceof xr&&(n=t,fo(pt(r),xe(r),xe(n))===0)}toString(){return"set ["+Le("; ",we(n=>Me(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return fo(pt(n),xe(n),xe(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Ei(pt(n),t,xe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){uc(xe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Fn(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Fn(this)|0}GetEnumerator(){return co(xe(this))}[Symbol.iterator](){return yn(z(this))}"System.Collections.IEnumerable.GetEnumerator"(){return co(xe(this))}get size(){return Fn(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return $i(this,t)}keys(){return we(n=>n,this)}values(){return we(n=>n,this)}entries(){return we(n=>[n,n],this)}forEach(t,n){const r=this;li(o=>{t(o,o,r)},r)}}function Mn(e,t){return new xr(e,t)}function pt(e){return e.comparer}function xe(e){return e.tree}function dc(e){return Mn(e,void 0)}function hc(e,t){return Mn(pt(e),vt(pt(e),t,xe(e)))}function Fn(e){return nc(xe(e))}function $i(e,t){return Ei(pt(e),t,xe(e))}function pc(e){let t=0;const n=z(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Ve(r)+631|0}}finally{F(n)}return Math.abs(t)|0}function er(e,t){return $i(t,e)}function _c(e,t){return hc(t,e)}function mc(e){return dc(e)}function gc(e,t){return Mn(t,Mi(t,e))}function wc(e,t){return Mn(t,Mi(t,e))}function Mt(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
- `:" ")}}function ma(e,t){const n=t.tag===2?Tt(t.fields[0],t.fields[1],!0):t.tag===1?Tt(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?Tt(t.fields[0],t.fields[1],!0):t.tag===4?Tt(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function yc(e,t){const n=t.tag===2?Mt(t.fields[0],t.fields[1],!0):t.tag===1?Mt(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?Mt(t.fields[0],t.fields[1],!0):t.tag===4?Mt(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
8
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
9
 
10
- `+We(`
10
+ `+Le(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Tt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function $i(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new _(1,[ma(o[0],o[1])])}else return new _(0,[r.fields[0]])}function ga(e,t){try{return $i("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new _(1,["Given an invalid JSON: "+n.message]);throw n}}function Ii(e,t){return typeof t=="string"?new _(0,[t]):new _(1,[[e,new v(0,["a string",t])]])}function wa(e,t){if(typeof t=="string"){const n=t;return n.length===1?new _(0,[n[0]]):new _(1,[[e,new v(0,["a single character string",t])]])}else return new _(1,[[e,new v(0,["a char",t])]])}function ya(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Nc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a guid",t])]])}else return new _(1,[[e,new v(0,["a guid",t])]])}function ba(e,t){return t==null?new _(0,[void 0]):new _(1,[[e,new v(0,["null",t])]])}const ao=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new _(0,[(o+128&255)-128]):new _(1,[[n,new v(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new _(1,[[n,new v(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,8,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a sbyte",r])]])}else return new _(1,[[n,new v(0,["a sbyte",r])]])},fo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new _(0,[o&255]):new _(1,[[n,new v(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new _(1,[[n,new v(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,8,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a byte",r])]])}else return new _(1,[[n,new v(0,["a byte",r])]])},ho=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new _(0,[(o+32768&65535)-32768]):new _(1,[[n,new v(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new _(1,[[n,new v(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,16,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int16",r])]])}else return new _(1,[[n,new v(0,["an int16",r])]])},po=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new _(0,[o&65535]):new _(1,[[n,new v(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new _(1,[[n,new v(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,16,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint16",r])]])}else return new _(1,[[n,new v(0,["an uint16",r])]])},_o=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new _(0,[~~o]):new _(1,[[n,new v(1,["an int",o,"Value was either too large or too small for an int"])]]):new _(1,[[n,new v(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!1,32,new ue(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int",r])]])}else return new _(1,[[n,new v(0,["an int",r])]])},mo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new _(0,[o>>>0]):new _(1,[[n,new v(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new _(1,[[n,new v(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[xt(r,511,!0,32,new ue(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint32",r])]])}else return new _(1,[[n,new v(0,["an uint32",r])]])};function va(e,t){return typeof t=="boolean"?new _(0,[t]):new _(1,[[e,new v(0,["a boolean",t])]])}function Sa(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float",t])]])}function Ca(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float32",t])]])}function xa(e,t){if(typeof t=="string"){let n,r=fu();return n=[hu(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[pu(n[1])]):new _(1,[[e,new v(0,["a datetime",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function Ea(e,t){if(typeof t=="string"){let n,r=jc();return n=[Bc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function ka(e,t){if(typeof t=="string"){let n,r=0;return n=[Xc(t,new ue(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a timespan",t])]])}else return new _(1,[[e,new v(0,["a timespan",t])]])}function go(e,t,n,r){let o;const s=n+".["+et(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,i[e]):new _(1,[[s,new v(5,["a longer array. Need index `"+et(e)+"` but there are only `"+(o=i.length,et(o))+"` entries",r])]])}else return new _(1,[[s,new v(0,["an array",r])]])}function Ta(e,t,n){return n==null?new _(0,[void 0]):we(ie,e(t,n))}function wo(e,t,n){if(Array.isArray(n)){let r=-1;return we(wr,Cn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[_e(i.fields[0],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[z()]),n))}else return new _(1,[[t,new v(0,["a list",n])]])}function $a(e,t,n){if(Array.isArray(n)){let r=-1;return we(nc,Cn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[me([i.fields[0]],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[[]]),n))}else return new _(1,[[t,new v(0,["a seq",n])]])}function yo(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Cn((s,i)=>{if(r=r+1|0,s.tag===0){const l=s.fields[0],c=e(t+".["+et(r)+"]",i);return c.tag===0?(l[r]=c.fields[0],new _(0,[l])):new _(1,[c.fields[0]])}else return s},new _(0,[Sn(new Array(o.length),0,o.length,null)]),o)}else return new _(1,[[t,new v(0,["an array",n])]])}function Ia(e,t,n){return((o,s)=>{e:for(;;){const i=o,l=s;if($(i))return new _(1,[[t,new v(7,[l])]]);{const c=$i(t,V(x(i)),n);if(c.tag===1){o=T(i),s=yr(l,se(c.fields[0]));continue e}else return new _(0,[c.fields[0]])}}})(e,z())}function Ma(e,t,n){return new _(0,[e])}function bo(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new _(1,[o.fields[0]])}function Pa(e,t,n,r){const o=t(n,r);return o.tag===1?new _(1,[o.fields[0]]):new _(0,[e(o.fields[0])])}function Aa(e,t){let n;const r=e;return n=o=>s=>go(0,r,o,s),o=>s=>bo(zn(i=>{let l;const c=t;return l=a=>f=>go(1,c,a,f),a=>f=>bo((u,p,h)=>Ma([i,u]),V(l),a,f)}),V(n),o,s)}function Oa(e){return xc(e,{Compare:ye})}function Na(e){return _a(e,{Compare:ye})}function Ra(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Qs((r,o)=>{const s=r[0];return o.tag===0?we(i=>_e(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new _(0,[z()])):new _(1,[[t,new v(0,["an object",n])]])}function Fa(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?En((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const l=t(n+"."+s,r[s]);return l.tag===0?new _(0,[_e([i.fields[0],l.fields[0]],o.fields[0])]):new _(1,[l.fields[0]])}else return new _(1,[i.fields[0]])}else return o},new _(0,[z()]),Object.keys(r)):new _(1,[[n,new v(0,["an object",r])]])}function Mi(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new _(1,[[n,new v(6,[(o=r.length|0,gt(ze("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new _(0,[z()]);for(let l=e;l<=r.length-1;l++)if(i.tag===0){const c=i.fields[0],a=gt(ze("%s[%i]"))(n)(l),f=t[l-e],u=r[l];i=we(p=>_e(p,c),f(a)(u))}return we(wr,i)}}function vo(e,t,n,r,o,s){const i=Tu(l=>ft(l)===r,Ns(n));if(i!=null){const l=i,c=St(a=>xe(e,t,!1,a[1]),Vs(l));return we(a=>Hl(l,zt(a)),c.length===0&&s.length<=1?new _(0,[z()]):Mi(1,c,o,s))}else return new _(1,[[o,new v(6,["Cannot find case "+r+" in "+R(n)])]])}function So(e,t,n,r){let o;const s=new ue(ke());let i;const l=R(r);i=l===""?e:di(l,s,e);let c;if(Ds(r)){const a=St(f=>[yi(t,ft(f)),xe(i,t,!1,f[1])],Ot(r));c=f=>u=>we(p=>jl(r,zt(p)),Ra(a,f,u))}else if(Fs(r))c=a=>f=>{if(typeof f=="string")return vo(i,t,r,f,a,[]);if(Array.isArray(f)){const u=f;return Kl(p=>vo(i,t,r,p,a,u),Ii(a+"[0]",u[0]))}else return new _(1,[[a,new v(0,["a string or array",f])]])};else if(n)c=a=>f=>new _(1,[[a,new v(2,["an extra coder for "+R(r),f])]]);else throw new Error((o=R(r),gt(ze(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Mt(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Ii(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new _(1,[yc(o[0],o[1])])}else return new _(0,[r.fields[0]])}function bc(e,t){try{return Ii("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new _(1,["Given an invalid JSON: "+n.message]);throw n}}function Pi(e,t){return typeof t=="string"?new _(0,[t]):new _(1,[[e,new v(0,["a string",t])]])}function vc(e,t){if(typeof t=="string"){const n=t;return n.length===1?new _(0,[n[0]]):new _(1,[[e,new v(0,["a single character string",t])]])}else return new _(1,[[e,new v(0,["a char",t])]])}function Sc(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Da(t,new ae(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a guid",t])]])}else return new _(1,[[e,new v(0,["a guid",t])]])}function Cc(e,t){return t==null?new _(0,[void 0]):new _(1,[[e,new v(0,["null",t])]])}const ho=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new _(0,[(o+128&255)-128]):new _(1,[[n,new v(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new _(1,[[n,new v(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!1,8,new ae(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a sbyte",r])]])}else return new _(1,[[n,new v(0,["a sbyte",r])]])},po=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new _(0,[o&255]):new _(1,[[n,new v(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new _(1,[[n,new v(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!0,8,new ae(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["a byte",r])]])}else return new _(1,[[n,new v(0,["a byte",r])]])},_o=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new _(0,[(o+32768&65535)-32768]):new _(1,[[n,new v(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new _(1,[[n,new v(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!1,16,new ae(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int16",r])]])}else return new _(1,[[n,new v(0,["an int16",r])]])},mo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new _(0,[o&65535]):new _(1,[[n,new v(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new _(1,[[n,new v(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!0,16,new ae(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint16",r])]])}else return new _(1,[[n,new v(0,["an uint16",r])]])},go=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new _(0,[~~o]):new _(1,[[n,new v(1,["an int",o,"Value was either too large or too small for an int"])]]):new _(1,[[n,new v(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!1,32,new ae(()=>s,i=>{s=i|0})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an int",r])]])}else return new _(1,[[n,new v(0,["an int",r])]])},wo=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new _(0,[o>>>0]):new _(1,[[n,new v(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new _(1,[[n,new v(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,s=0;return o=[kt(r,511,!0,32,new ae(()=>s,i=>{s=i})),s],o[0]?new _(0,[o[1]]):new _(1,[[n,new v(0,["an uint32",r])]])}else return new _(1,[[n,new v(0,["an uint32",r])]])};function xc(e,t){return typeof t=="boolean"?new _(0,[t]):new _(1,[[e,new v(0,["a boolean",t])]])}function Ec(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float",t])]])}function kc(e,t){return typeof t=="number"?new _(0,[t]):new _(1,[[e,new v(0,["a float32",t])]])}function Tc(e,t){if(typeof t=="string"){let n,r=_u();return n=[gu(t,new ae(()=>r,o=>{r=o})),r],n[0]?new _(0,[wu(n[1])]):new _(1,[[e,new v(0,["a datetime",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function Mc(e,t){if(typeof t=="string"){let n,r=Ga();return n=[Wa(t,new ae(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a datetimeoffset",t])]])}else return new _(1,[[e,new v(0,["a datetime",t])]])}function $c(e,t){if(typeof t=="string"){let n,r=0;return n=[tc(t,new ae(()=>r,o=>{r=o})),r],n[0]?new _(0,[n[1]]):new _(1,[[e,new v(0,["a timespan",t])]])}else return new _(1,[[e,new v(0,["a timespan",t])]])}function yo(e,t,n,r){let o;const s=n+".["+et(e)+"]";if(Array.isArray(r)){const i=r;return e<i.length?t(s,i[e]):new _(1,[[s,new v(5,["a longer array. Need index `"+et(e)+"` but there are only `"+(o=i.length,et(o))+"` entries",r])]])}else return new _(1,[[s,new v(0,["an array",r])]])}function Ic(e,t,n){return n==null?new _(0,[void 0]):ye(le,e(t,n))}function bo(e,t,n){if(Array.isArray(n)){let r=-1;return ye(br,xn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[me(i.fields[0],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[J()]),n))}else return new _(1,[[t,new v(0,["a list",n])]])}function Pc(e,t,n){if(Array.isArray(n)){let r=-1;return ye(sa,xn((o,s)=>{if(r=r+1|0,o.tag===0){const i=e(t+".["+et(r)+"]",s);return i.tag===0?new _(0,[ie([i.fields[0]],o.fields[0])]):new _(1,[i.fields[0]])}else return o},new _(0,[[]]),n))}else return new _(1,[[t,new v(0,["a seq",n])]])}function vo(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return xn((s,i)=>{if(r=r+1|0,s.tag===0){const l=s.fields[0],a=e(t+".["+et(r)+"]",i);return a.tag===0?(l[r]=a.fields[0],new _(0,[l])):new _(1,[a.fields[0]])}else return s},new _(0,[Cn(new Array(o.length),0,o.length,null)]),o)}else return new _(1,[[t,new v(0,["an array",n])]])}function Ac(e,t,n){return((o,s)=>{e:for(;;){const i=o,l=s;if(I(i))return new _(1,[[t,new v(7,[l])]]);{const a=Ii(t,V(x(i)),n);if(a.tag===1){o=M(i),s=vr(l,Y(a.fields[0]));continue e}else return new _(0,[a.fields[0]])}}})(e,J())}function Oc(e,t,n){return new _(0,[e])}function So(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new _(1,[o.fields[0]])}function Nc(e,t,n,r){const o=t(n,r);return o.tag===1?new _(1,[o.fields[0]]):new _(0,[e(o.fields[0])])}function Rc(e,t){let n;const r=e;return n=o=>s=>yo(0,r,o,s),o=>s=>So(zn(i=>{let l;const a=t;return l=c=>f=>yo(1,a,c,f),c=>f=>So((u,p,h)=>Oc([i,u]),V(l),c,f)}),V(n),o,s)}function Fc(e){return Ta(e,{Compare:be})}function Dc(e){return wc(e,{Compare:be})}function Vc(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?ti((r,o)=>{const s=r[0];return o.tag===0?ye(i=>me(i,o.fields[0]),r[1](t+"."+s)(n[s])):o},e,new _(0,[J()])):new _(1,[[t,new v(0,["an object",n])]])}function Lc(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?kn((o,s)=>{if(o.tag===0){const i=e(n,s);if(i.tag===0){const l=t(n+"."+s,r[s]);return l.tag===0?new _(0,[me([i.fields[0],l.fields[0]],o.fields[0])]):new _(1,[l.fields[0]])}else return new _(1,[i.fields[0]])}else return o},new _(0,[J()]),Object.keys(r)):new _(1,[[n,new v(0,["an object",r])]])}function Ai(e,t,n,r){let o;const s=t.length+e|0;if(s!==r.length)return new _(1,[[n,new v(6,[(o=r.length|0,yt(We("Expected array of length %i but got %i"))(s)(o))])]]);{let i=new _(0,[J()]);for(let l=e;l<=r.length-1;l++)if(i.tag===0){const a=i.fields[0],c=yt(We("%s[%i]"))(n)(l),f=t[l-e],u=r[l];i=ye(p=>me(p,a),f(c)(u))}return ye(br,i)}}function Co(e,t,n,r,o,s){const i=Pu(l=>ht(l)===r,Fs(n));if(i!=null){const l=i,a=xt(c=>Ee(e,t,!1,c[1]),Hs(l));return ye(c=>Gl(l,Wt(c)),a.length===0&&s.length<=1?new _(0,[J()]):Ai(1,a,o,s))}else return new _(1,[[o,new v(6,["Cannot find case "+r+" in "+R(n)])]])}function xo(e,t,n,r){let o;const s=new ae(Te());let i;const l=R(r);i=l===""?e:pi(l,s,e);let a;if(Ls(r)){const c=xt(f=>[vi(t,ht(f)),Ee(i,t,!1,f[1])],Nt(r));a=f=>u=>ye(p=>zl(r,Wt(p)),Vc(c,f,u))}else if(Vs(r))a=c=>f=>{if(typeof f=="string")return Co(i,t,r,f,c,[]);if(Array.isArray(f)){const u=f;return eu(p=>Co(i,t,r,p,c,u),Pi(c+"[0]",u[0]))}else return new _(1,[[c,new v(0,["a string or array",f])]])};else if(n)a=c=>f=>new _(1,[[c,new v(2,["an extra coder for "+R(r),f])]]);else throw new Error((o=R(r),yt(We(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
13
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function xe(e,t,n,r){let o,s,i,l;const c=R(r),a=hi(c,e);if(a==null)if(Ms(r)){const f=xe(e,t,!1,Ut(r));return u=>p=>yo(V(f),u,p)}else if(ar(r))switch(R(Os(r))){case"System.SByte":return u=>p=>{const h=r,d=u,m=p,g=ao(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const h=r,d=u,m=p,g=fo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const h=r,d=u,m=p,g=ho(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,hl(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const h=r,d=u,m=p,g=po(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const h=r,d=u,m=p,g=_o(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,et(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const h=r,d=u,m=p,g=mo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return st(w,rt(h),{Equals:(C,k)=>C===k,GetHashCode:Ae})?new _(0,[ot(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};default:{const u=R(r),p=Js(ze(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function Ee(e,t,n,r){let o,s,i,l;const a=R(r),c=_i(a,e);if(c==null)if(As(r)){const f=Ee(e,t,!1,Bt(r));return u=>p=>vo(V(f),u,p)}else if(dr(r))switch(R(Rs(r))){case"System.SByte":return u=>p=>{const h=r,d=u,m=p,g=ho(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Byte":return u=>p=>{const h=r,d=u,m=p,g=po(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int16":return u=>p=>{const h=r,d=u,m=p,g=_o(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,gl(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt16":return u=>p=>{const h=r,d=u,m=p,g=mo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.Int32":return u=>p=>{const h=r,d=u,m=p,g=go(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0]|0;return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,et(w))]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};case"System.UInt32":return u=>p=>{const h=r,d=u,m=p,g=wo(d)(m);if(g.tag===1)return new _(1,[g.fields[0]]);{const w=g.fields[0];return it(w,ot(h),{Equals:(C,k)=>C===k,GetHashCode:Oe})?new _(0,[st(h,w.toString())]):new _(1,[[d,new v(1,[R(h),m,"Unkown value provided for the enum"])]])}};default:{const u=R(r),p=Ys(We(`Cannot generate auto decoder for %s.
15
15
  Thoth.Json.Net only support the following enum types:
16
16
  - sbyte
17
17
  - byte
@@ -20,9 +20,9 @@ Thoth.Json.Net only support the following enum types:
20
20
  - int
21
21
  - uint32
22
22
  If you can't use one of these types, please pass an extra decoder.
23
- `))(u);return h=>p(h)}}else if(Ps(r))if(fr(r)){const f=St(u=>xe(e,t,!1,u),Rs(r));return u=>p=>Array.isArray(p)?we(h=>Ul(zt(h)),Mi(0,f,u,p)):new _(1,[[u,new v(0,["an array",p])]])}else switch(R(As(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=xe(e,t,!0,fe(r)[0]),u=>p=>Ta(V(o),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=xe(e,t,!1,fe(r)[0]),u=>p=>wo(V(s),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=xe(e,t,!1,fe(r)[0]),u=>p=>$a(V(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=xe(e,t,!1,fe(r)[0]),p=xe(e,t,!1,fe(r)[1]);let h;const d=j([m=>g=>Fa(V(u),V(p),m,g),(l=Aa(V(u),V(p)),m=>g=>wo(V(l),m,g))]);return h=m=>g=>Ia(d,m,g),m=>g=>Pa(Oa,V(h),m,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=xe(e,t,!1,fe(r)[0]);return p=>h=>{const d=yo(V(u),p,h);return d.tag===0?new _(0,[Na(d.fields[0])]):new _(1,[d.fields[0]])}}default:return So(e,t,n,r)}else switch(c){case"System.Boolean":return f=>u=>va(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>ba(f,u);case"System.String":return f=>u=>Ii(f,u);case"System.Char":return f=>u=>wa(f,u);case"System.SByte":return ao;case"System.Byte":return fo;case"System.Int16":return ho;case"System.UInt16":return po;case"System.Int32":return _o;case"System.UInt32":return mo;case"System.Double":return f=>u=>Sa(f,u);case"System.Single":return f=>u=>Ca(f,u);case"System.DateTime":return f=>u=>xa(f,u);case"System.DateTimeOffset":return f=>u=>Ea(f,u);case"System.TimeSpan":return f=>u=>ka(f,u);case"System.Guid":return f=>u=>ya(f,u);case"System.Object":return f=>u=>new _(0,[u]);default:return So(e,t,n,r)}else{const f=a;return u=>p=>f.contents(u)(p)}}function Da(e){return e!=null?pi((t,n)=>new ue(n[1]),e.Coders):vr({Compare:yn})}function Va(e,t,n){const r=Zn(t,new kn(0,[]));return xe(Da(n),r,!1,e)}function La(e,t,n,r){const o=ye(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const l=ye(i,t)|0;return s&&l<=0||!s&&l>=0?[i,r(i,e)]:void 0}}function Ha(e,t,n,r,o){const s=La(t,n,r,o);return N(()=>Ku(s,e))}function ja(e,t,n){return Ha(e,t,n,0,(r,o)=>r+o)}class Ua extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BlobStorage","Unused"]}}function Ba(){return $s("WorkplacePolicies.Api.Shared.Common.PathDto",[],Ua,()=>[[["Item",tt]],[]])}class Ga extends le{constructor(t,n){super(),this.Name=t,this.Path=n}}function za(){return jt("WorkplacePolicies.Api.Shared.Common.FileDto",[],Ga,()=>[["Name",tt],["Path",Ba()]])}class Wa extends le{constructor(t,n){super(),this.Copy=t,this.Link=n}}function qa(){return jt("WorkplacePolicies.Api.Shared.Common.AboutDto",[],Wa,()=>[["Copy",tt],["Link",tt]])}class Za extends le{constructor(t,n){super(),this.PolicyId=t,this.VersionNumber=n|0}}function Ja(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyIdentifierDto",[],Za,()=>[["PolicyId",tt],["VersionNumber",Fl]])}class ht extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Presented","Opened","Accepted"]}}function Ka(){return $s("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemStatusDto",[],ht,()=>[[],[],[]])}function Fn(e,t){let n;switch(e.tag){case 1:{switch(t.tag){case 0:{n=2;break}default:n=1}break}case 2:{n=3;break}default:n=0}switch(n){case 0:return t;case 1:return t;case 2:return e;default:return e}}class tn extends le{constructor(t,n){super(),this.Policy=t,this.Status=n}}function Ya(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemDto",[],tn,()=>[["Policy",Nl(["About",qa()],["CreatedAt",Ol("System.DateTime")],["Description",tt],["File",za()],["Identifier",Ja()],["Title",tt])],["Status",Ka()]])}class Xa extends le{constructor(t){super(),this.PolicyReviewList=t}}function Qa(){return jt("WorkplacePolicies.Api.Shared.BackendApiModels.InitResponse",[],Xa,()=>[["PolicyReviewList",Rl(Ya())]])}class ef extends le{constructor(t){super(),this.Type=t}}class Jt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Present","Open","Accept","Complete"]}}function tf(e){return e}const Pi=ke();function Kt(e){return Array.from(e)}function nf(e){return vn(e,"O")}function rf(e){return Kc(e)}function of(){return ke()}function sf(e){return vn(e,"O")}function lf(e,t){return JSON.stringify(t,void 0,ie(e))}function uf(e){return t=>ql(Zl(e,t),()=>Pi)}function Co(e,t,n,r){let o;const s=new ue(ke());let i;const l=R(r);i=l===""?e:di(l,s,e);let c;if(Ds(r)){const a=St(f=>{const u=yi(t,ft(f)),p=Oe(i,t,n,f[1]);return h=>d=>{const m=Ll(h,f);return(!n||n&&m!=null)&&(d[u]=p(m)),d}},Ot(r));c=f=>En((u,p)=>p(f)(u),{},a)}else if(Fs(r))c=a=>{const f=Vl(a,r),u=f[0],p=f[1],h=p.length|0;if(h===0)return ft(u);{const d=h|0,m=Vs(u),g=Sn(new Array(d+1),0,d+1,null);g[0]=ft(u);for(let w=1;w<=d;w++){const C=Oe(i,t,n,m[w-1][1]);g[w]=C(p[w-1])}return g}};else throw new Error((o=R(r),gt(ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
23
+ `))(u);return h=>p(h)}}else if(Os(r))if(hr(r)){const f=xt(u=>Ee(e,t,!1,u),Ds(r));return u=>p=>Array.isArray(p)?ye(h=>Wl(Wt(h)),Ai(0,f,u,p)):new _(1,[[u,new v(0,["an array",p])]])}else switch(R(Ns(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=Ee(e,t,!0,de(r)[0]),u=>p=>Ic(V(o),u,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=Ee(e,t,!1,de(r)[0]),u=>p=>bo(V(s),u,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return i=Ee(e,t,!1,de(r)[0]),u=>p=>Pc(V(i),u,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const u=Ee(e,t,!1,de(r)[0]),p=Ee(e,t,!1,de(r)[1]);let h;const d=U([m=>g=>Lc(V(u),V(p),m,g),(l=Rc(V(u),V(p)),m=>g=>bo(V(l),m,g))]);return h=m=>g=>Ac(d,m,g),m=>g=>Nc(Fc,V(h),m,g)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const u=Ee(e,t,!1,de(r)[0]);return p=>h=>{const d=vo(V(u),p,h);return d.tag===0?new _(0,[Dc(d.fields[0])]):new _(1,[d.fields[0]])}}default:return xo(e,t,n,r)}else switch(a){case"System.Boolean":return f=>u=>xc(f,u);case"Microsoft.FSharp.Core.Unit":return f=>u=>Cc(f,u);case"System.String":return f=>u=>Pi(f,u);case"System.Char":return f=>u=>vc(f,u);case"System.SByte":return ho;case"System.Byte":return po;case"System.Int16":return _o;case"System.UInt16":return mo;case"System.Int32":return go;case"System.UInt32":return wo;case"System.Double":return f=>u=>Ec(f,u);case"System.Single":return f=>u=>kc(f,u);case"System.DateTime":return f=>u=>Tc(f,u);case"System.DateTimeOffset":return f=>u=>Mc(f,u);case"System.TimeSpan":return f=>u=>$c(f,u);case"System.Guid":return f=>u=>Sc(f,u);case"System.Object":return f=>u=>new _(0,[u]);default:return xo(e,t,n,r)}else{const f=c;return u=>p=>f.contents(u)(p)}}function Hc(e){return e!=null?mi((t,n)=>new ae(n[1]),e.Coders):Cr({Compare:bn})}function jc(e,t,n){const r=Zn(t,new Tn(0,[]));return Ee(Hc(n),r,!1,e)}function Uc(e,t,n,r){const o=be(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const s=o>0;return i=>{const l=be(i,t)|0;return s&&l<=0||!s&&l>=0?[i,r(i,e)]:void 0}}function Bc(e,t,n,r,o){const s=Uc(t,n,r,o);return $(()=>ea(s,e))}function Gc(e,t,n){return Bc(e,t,n,0,(r,o)=>r+o)}class zc extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BlobStorage","Unused"]}}function Wc(){return Is("WorkplacePolicies.Api.Shared.Common.PathDto",[],zc,()=>[[["Item",tt]],[]])}class qc extends ue{constructor(t,n){super(),this.Name=t,this.Path=n}}function Zc(){return Ut("WorkplacePolicies.Api.Shared.Common.FileDto",[],qc,()=>[["Name",tt],["Path",Wc()]])}class Jc extends ue{constructor(t,n){super(),this.Copy=t,this.Link=n}}function Kc(){return Ut("WorkplacePolicies.Api.Shared.Common.AboutDto",[],Jc,()=>[["Copy",tt],["Link",tt]])}class Yc extends ue{constructor(t,n){super(),this.PolicyId=t,this.VersionNumber=n|0}}function Xc(){return Ut("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyIdentifierDto",[],Yc,()=>[["PolicyId",tt],["VersionNumber",Hl]])}class _t extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Presented","Opened","Accepted"]}}function Qc(){return Is("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemStatusDto",[],_t,()=>[[],[],[]])}function Dn(e,t){let n;switch(e.tag){case 1:{switch(t.tag){case 0:{n=2;break}default:n=1}break}case 2:{n=3;break}default:n=0}switch(n){case 0:return t;case 1:return t;case 2:return e;default:return e}}class nn extends ue{constructor(t,n){super(),this.Policy=t,this.Status=n}}function ef(){return Ut("WorkplacePolicies.Api.Shared.BackendApiModels.PolicyReviewItemDto",[],nn,()=>[["Policy",Vl(["About",Kc()],["CreatedAt",Dl("System.DateTime")],["Description",tt],["File",Zc()],["Identifier",Xc()],["Title",tt])],["Status",Qc()]])}class tf extends ue{constructor(t){super(),this.PolicyReviewList=t}}function nf(){return Ut("WorkplacePolicies.Api.Shared.BackendApiModels.InitResponse",[],tf,()=>[["PolicyReviewList",Ll(ef())]])}class rf extends ue{constructor(t){super(),this.Type=t}}class Kt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Present","Open","Accept","Complete"]}}function of(e){return e}const Oi=Te();function Yt(e){return Array.from(e)}function sf(e){return Sn(e,"O")}function lf(e){return Qa(e)}function uf(){return Te()}function af(e){return Sn(e,"O")}function cf(e,t){return JSON.stringify(t,void 0,le(e))}function ff(e){return t=>Yl(Xl(e,t),()=>Oi)}function Eo(e,t,n,r){let o;const s=new ae(Te());let i;const l=R(r);i=l===""?e:pi(l,s,e);let a;if(Ls(r)){const c=xt(f=>{const u=vi(t,ht(f)),p=Ne(i,t,n,f[1]);return h=>d=>{const m=Bl(h,f);return(!n||n&&m!=null)&&(d[u]=p(m)),d}},Nt(r));a=f=>kn((u,p)=>p(f)(u),{},c)}else if(Vs(r))a=c=>{const f=Ul(c,r),u=f[0],p=f[1],h=p.length|0;if(h===0)return ht(u);{const d=h|0,m=Hs(u),g=Cn(new Array(d+1),0,d+1,null);g[0]=ht(u);for(let w=1;w<=d;w++){const C=Ne(i,t,n,m[w-1][1]);g[w]=C(p[w-1])}return g}};else throw new Error((o=R(r),yt(We(`Cannot generate auto encoder for %s. Please pass an extra encoder.
24
24
 
25
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=c,c}function Oe(e,t,n,r){const o=R(r),s=hi(o,e);if(s==null)if(Ms(r)){const i=Oe(e,t,n,Ut(r));return l=>Kt(ge(i,l))}else if(ar(r))switch(R(Os(r))){case"System.SByte":return l=>l;case"System.Byte":return l=>l;case"System.Int16":return l=>l;case"System.UInt16":return l=>l;case"System.Int32":return l=>l;case"System.UInt32":return l=>l;default:{const l=R(r);return Js(ze(`Cannot generate auto encoder for %s.
25
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return s.contents=a,a}function Ne(e,t,n,r){const o=R(r),s=_i(o,e);if(s==null)if(As(r)){const i=Ne(e,t,n,Bt(r));return l=>Yt(we(i,l))}else if(dr(r))switch(R(Rs(r))){case"System.SByte":return l=>l;case"System.Byte":return l=>l;case"System.Int16":return l=>l;case"System.UInt16":return l=>l;case"System.Int32":return l=>l;case"System.UInt32":return l=>l;default:{const l=R(r);return Ys(We(`Cannot generate auto encoder for %s.
26
26
  Thoth.Json.Net only support the following enum types:
27
27
  - sbyte
28
28
  - byte
@@ -34,7 +34,7 @@ Thoth.Json.Net only support the following enum types:
34
34
  If you can't use one of these types, please pass an extra encoder.
35
35
 
36
36
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
37
- `))(l)}}else if(Ps(r))if(fr(r)){const i=St(l=>Oe(e,t,n,l),Rs(r));return l=>Kt(tc((c,a)=>i[c](a),l))}else{const i=R(As(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const l=new fl(()=>uf(Oe(e,t,n,fe(r)[0])));return c=>c==null?Pi:l.Value(c)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const l=Oe(e,t,n,fe(r)[0]);return c=>Kt(ge(l,c))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const l=fe(r)[0],c=Oe(e,t,n,fe(r)[1]);if(R(l)==="System.String"||R(l)==="System.Guid")return a=>En((f,u)=>{const p=u;return f[p[0]]=c(p[1]),f},{},a);{let a;return a=Oe(e,t,n,l),u=>Kt(ge(p=>{const h=p;return[a(h[0]),c(h[1])]},u))}}else return Co(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return of;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return sf;case"System.DateTimeOffset":return nf;case"System.TimeSpan":return rf;case"System.Guid":return tf;case"System.Object":return i=>i;default:return Co(e,t,n,r)}else{const i=s;return l=>i.contents(l)}}function cf(e){return e!=null?pi((t,n)=>new ue(n[0]),e.Coders):vr({Compare:yn})}function af(e,t,n,r){const o=Zn(t,new kn(0,[])),s=Zn(r,!0);return Oe(cf(n),o,s,e)}class ff{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/workplace-policies/backend`}}function df(e,t){return new ff(e,t)}function hf(e){return J.Delay(()=>{let t,n;const r=wi((t=gi(new pr(0,[]),mi(`${e.baseUrl}/init`)),Yn(_i(`Bearer ${e.accessToken}`),t)));return n=J.Bind(r,o=>J.Return(new _(0,[o]))),J.Bind(n,o=>{const s=o;if(s.tag===1)return J.Return(new _(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const l=ga(V(Va(Qa(),new kn(1,[]),void 0)),i.responseText);return J.Return(l)}else return J.Return(new _(1,["Init request error"]))}})})}function Yt(e,t){return J.Delay(()=>{let n,r,o;const s=new ef(t);let i;const l=wi((n=(r=(o=gi(new pr(1,[]),mi(`${e.baseUrl}/command`)),Yn(_i(`Bearer ${e.accessToken}`),o)),$c(new Us(1,[lf(0,af(Is,new kn(1,[]),void 0,void 0)(s))]),r)),Yn(kc("application/json"),n)));return i=J.Bind(l,c=>J.Return(new _(0,[c]))),J.Bind(i,c=>{const a=c;return a.tag===1?J.Return(new _(1,[a.fields[0]])):a.fields[0].statusCode===200?J.Return(new _(0,[void 0])):J.Return(new _(1,["Command request error"]))})})}function pf(){return z()}function Cr(e){return We("/",e)}function _f(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Cr(t),n])}function Ai(e,t,n){try{F(n)}catch(r){e(["Error stopping subscription: "+Cr(t),r])}}function mf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Cr(n),o]);return}}function gf(e,t){hn(n=>{Ai(e,n[0],n[1])},t)}function xo(e,t,n,r,o,s){return hn(i=>{_f(e,i)},n),hn(i=>{Ai(e,i[0],i[1])},r),yr(o,Fu(i=>mf(e,t,i[0],i[1]),s))}function wf(){return[z(),ha({Compare:ye}),z()]}function yf(e,t,n,r,o){return Qn(e,r)?[_e(e,n),r,o]:[n,da(e,r),_e([e,t],o)]}function bf(e){return Au((t,n)=>yf(t[0],t[1],n[0],n[1],n[2]),e,wf())}const vf=z();function Eo(e,t){const n=pa(ut(i=>i[0],e),{Compare:ye}),r=bf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,z(),e,z()];{const i=Ru(l=>Qn(l[0],o),e);return[s,i[1],i[0],Nu(l=>!Qn(l[0],n),r[2])]}}class Sf{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function Cf(e,t){t.Subscribe(new Sf(e))}class xf{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return kf(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class Ef extends xf{}function kf(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class Tf{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new Ef}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}const $f=Tf;function If(e,t){console.error(ie(e),t)}function Mf(e,t){let n,r=new $f(e);r.AutoReset=!1,n=r,Cf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function ko(e,t,n){hn(r=>{try{r(t)}catch(o){e(o)}},n)}function He(){return z()}function $t(e,t,n,r){return se(o=>{e(J.Delay(()=>J.Bind(nu(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),J.Zero()})))})}function It(e){Mf(1,t=>{su(e)})}class pt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Pf{constructor(t){this.state=new pt(0,[Sn(new Array(qr(t,10)),0,qr(t,10),null),0])}}function Af(e){return new Pf(e)}function To(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new pt(0,[o,n]):e.state=new pt(1,[o,n,s]),ie(o[r])}else return}function Of(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];s[r]=t;const i=(r+1)%s.length|0;i===o?e.state=new pt(1,[Nf(e,o,s),s.length,0]):e.state=new pt(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const s=(r+1)%o.length|0;e.state=new pt(1,[o,s,r])}}function Nf(e,t,n){return Array.from(N(()=>me(rc(t,n),N(()=>me(oc(t,n),N(()=>sc(r=>O(ke()),ja(0,1,n.length))))))))}class xr extends le{constructor(t,n,r,o,s,i,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=l}}function Rf(e,t,n){return new xr(e,t,r=>pf(),n,V(r=>{const o=Xe(n)(r);return s=>{o(s)}}),r=>{If(r[0],r[1])},[r=>!1,r=>{}])}function Ff(e,t){return new xr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Df(e){return e.init}function Vf(e,t,n,r,o,s,i){const l=Xe(e)(i.init),c=Mn(t)(Xe(i.update)),a=Mn(n)(Xe(i.view)),f=Mn(r)(Xe(i.setState));return new xr(l,V(c),Xe(o)(i.subscribe),V(a),V(f),i.onError,s(i.termination))}function Lf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),l=n.termination,c=Af(10);let a=!1,f=s,u=vf,p=!1;const h=g=>{p||(Of(c,g),a||(a=!0,m(),a=!1))},d=Xe(e)(h),m=()=>{let g,w=To(c);for(;!p&&w!=null;){const C=y(w);if(l[0](C))gf(n.onError,u),l[1](f),p=!0;else{const k=n.update(C,f),q=k[0],H=n.subscribe(q);n.setState(q,d),ko(ee=>{n.onError([gt(ze("Error handling the message: %A"))(C),ee])},d,k[1]),f=q,u=(g=Eo(u,H),xo(n.onError,d,g[0],g[1],g[2],g[3])),w=To(c)}}};a=!0,n.setState(s,d),ko(g=>{n.onError([gt(ze("Error intitializing:")),g])},d,o[1]),u=(r=Eo(u,i),xo(n.onError,d,r[0],r[1],r[2],r[3])),m(),a=!1}function Hf(e,t){Lf(V(n=>n),e,t)}function jf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Oi={exports:{}},Ni={};const Uf=jf(sl);/**
37
+ `))(l)}}else if(Os(r))if(hr(r)){const i=xt(l=>Ne(e,t,n,l),Ds(r));return l=>Yt(oa((a,c)=>i[a](c),l))}else{const i=R(Ns(r));if(i==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const l=new _l(()=>ff(Ne(e,t,n,de(r)[0])));return a=>a==null?Oi:l.Value(a)}else if(i==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||i==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||i==="System.Collections.Generic.IEnumerable`1[System.Object]"){const l=Ne(e,t,n,de(r)[0]);return a=>Yt(we(l,a))}else if(i==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const l=de(r)[0],a=Ne(e,t,n,de(r)[1]);if(R(l)==="System.String"||R(l)==="System.Guid")return c=>kn((f,u)=>{const p=u;return f[p[0]]=a(p[1]),f},{},c);{let c;return c=Ne(e,t,n,l),u=>Yt(we(p=>{const h=p;return[c(h[0]),a(h[1])]},u))}}else return Eo(e,t,n,r)}else switch(o){case"System.Boolean":return i=>i;case"Microsoft.FSharp.Core.Unit":return uf;case"System.String":return i=>i;case"System.Char":return i=>i;case"System.SByte":return i=>i;case"System.Byte":return i=>i;case"System.Int16":return i=>i;case"System.UInt16":return i=>i;case"System.Int32":return i=>i;case"System.UInt32":return i=>i;case"System.Double":return i=>i;case"System.Single":return i=>i;case"System.DateTime":return af;case"System.DateTimeOffset":return sf;case"System.TimeSpan":return lf;case"System.Guid":return of;case"System.Object":return i=>i;default:return Eo(e,t,n,r)}else{const i=s;return l=>i.contents(l)}}function df(e){return e!=null?mi((t,n)=>new ae(n[0]),e.Coders):Cr({Compare:bn})}function hf(e,t,n,r){const o=Zn(t,new Tn(0,[])),s=Zn(r,!0);return Ne(df(n),o,s,e)}class pf{constructor(t,n){this.accessToken=n,this.baseUrl=`${t}/workplace-policies/backend`}}function _f(e,t){return new pf(e,t)}function mf(e){return Z.Delay(()=>{let t,n;const r=bi((t=yi(new mr(0,[]),wi(`${e.baseUrl}/init`)),Xn(gi(`Bearer ${e.accessToken}`),t)));return n=Z.Bind(r,o=>Z.Return(new _(0,[o]))),Z.Bind(n,o=>{const s=o;if(s.tag===1)return Z.Return(new _(1,[s.fields[0]]));{const i=s.fields[0];if(i.statusCode===200){const l=bc(V(jc(nf(),new Tn(1,[]),void 0)),i.responseText);return Z.Return(l)}else return Z.Return(new _(1,["Init request error"]))}})})}function Xt(e,t){return Z.Delay(()=>{let n,r,o;const s=new rf(t);let i;const l=bi((n=(r=(o=yi(new mr(1,[]),wi(`${e.baseUrl}/command`)),Xn(gi(`Bearer ${e.accessToken}`),o)),Pa(new Gs(1,[cf(0,hf(Ps,new Tn(1,[]),void 0,void 0)(s))]),r)),Xn($a("application/json"),n)));return i=Z.Bind(l,a=>Z.Return(new _(0,[a]))),Z.Bind(i,a=>{const c=a;return c.tag===1?Z.Return(new _(1,[c.fields[0]])):c.fields[0].statusCode===200?Z.Return(new _(0,[void 0])):Z.Return(new _(1,["Command request error"]))})})}function gf(){return J()}function Er(e){return Le("/",e)}function wf(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Er(t),n])}function Ni(e,t,n){try{F(n)}catch(r){e(["Error stopping subscription: "+Er(t),r])}}function yf(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Er(n),o]);return}}function bf(e,t){pn(n=>{Ni(e,n[0],n[1])},t)}function ko(e,t,n,r,o,s){return pn(i=>{wf(e,i)},n),pn(i=>{Ni(e,i[0],i[1])},r),vr(o,Hu(i=>yf(e,t,i[0],i[1]),s))}function vf(){return[J(),mc({Compare:be}),J()]}function Sf(e,t,n,r,o){return er(e,r)?[me(e,n),r,o]:[n,_c(e,r),me([e,t],o)]}function Cf(e){return Fu((t,n)=>Sf(t[0],t[1],n[0],n[1],n[2]),e,vf())}const xf=J();function To(e,t){const n=gc(at(i=>i[0],e),{Compare:be}),r=Cf(t),o=r[1],s=r[0];if(n.Equals(o))return[s,J(),e,J()];{const i=Lu(l=>er(l[0],o),e);return[s,i[1],i[0],Vu(l=>!er(l[0],n),r[2])]}}class Ef{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function kf(e,t){t.Subscribe(new Ef(e))}class Tf{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return $f(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(s=>{s(r,o)})}}class Mf extends Tf{}function $f(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,s)=>n.OnNext(s);return e(r),{Dispose(){t(r)}}}}}class If{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new Mf}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}const Pf=If;function Af(e,t){console.error(le(e),t)}function Of(e,t){let n,r=new Pf(e);r.AutoReset=!1,n=r,kf(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Mo(e,t,n){pn(r=>{try{r(t)}catch(o){e(o)}},n)}function je(){return J()}function $t(e,t,n,r){return Y(o=>{e(Z.Delay(()=>Z.Bind(iu(t(n)),s=>{const i=s;return i.tag===0&&o(r(i.fields[0])),Z.Zero()})))})}function It(e){Of(1,t=>{au(e)})}class mt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Nf{constructor(t){this.state=new mt(0,[Cn(new Array(Jr(t,10)),0,Jr(t,10),null),0])}}function Rf(e){return new Nf(e)}function $o(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],s=(r+1)%o.length|0;return s===n?e.state=new mt(0,[o,n]):e.state=new mt(1,[o,n,s]),le(o[r])}else return}function Ff(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,s=n.fields[0];s[r]=t;const i=(r+1)%s.length|0;i===o?e.state=new mt(1,[Df(e,o,s),s.length,0]):e.state=new mt(1,[s,i,o])}else{const r=n.fields[1]|0,o=n.fields[0];o[r]=t;const s=(r+1)%o.length|0;e.state=new mt(1,[o,s,r])}}function Df(e,t,n){return Array.from($(()=>ie(ia(t,n),$(()=>ie(la(t,n),$(()=>ua(r=>T(Te()),Gc(0,1,n.length))))))))}class kr extends ue{constructor(t,n,r,o,s,i,l){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=s,this.onError=i,this.termination=l}}function Vf(e,t,n){return new kr(e,t,r=>gf(),n,V(r=>{const o=Xe(n)(r);return s=>{o(s)}}),r=>{Af(r[0],r[1])},[r=>!1,r=>{}])}function Lf(e,t){return new kr(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Hf(e){return e.init}function jf(e,t,n,r,o,s,i){const l=Xe(e)(i.init),a=Pn(t)(Xe(i.update)),c=Pn(n)(Xe(i.view)),f=Pn(r)(Xe(i.setState));return new kr(l,V(a),Xe(o)(i.subscribe),V(c),V(f),i.onError,s(i.termination))}function Uf(e,t,n){let r;const o=n.init(t),s=o[0],i=n.subscribe(s),l=n.termination,a=Rf(10);let c=!1,f=s,u=xf,p=!1;const h=g=>{p||(Ff(a,g),c||(c=!0,m(),c=!1))},d=Xe(e)(h),m=()=>{let g,w=$o(a);for(;!p&&w!=null;){const C=y(w);if(l[0](C))bf(n.onError,u),l[1](f),p=!0;else{const k=n.update(C,f),q=k[0],H=n.subscribe(q);n.setState(q,d),Mo(te=>{n.onError([yt(We("Error handling the message: %A"))(C),te])},d,k[1]),f=q,u=(g=To(u,H),ko(n.onError,d,g[0],g[1],g[2],g[3])),w=$o(a)}}};c=!0,n.setState(s,d),Mo(g=>{n.onError([yt(We("Error intitializing:")),g])},d,o[1]),u=(r=To(u,i),ko(n.onError,d,r[0],r[1],r[2],r[3])),m(),c=!1}function Bf(e,t){Uf(V(n=>n),e,t)}function Gf(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Ri={exports:{}},Fi={};const zf=Gf(al);/**
38
38
  * @license React
39
39
  * use-sync-external-store-shim.production.min.js
40
40
  *
@@ -42,13 +42,13 @@ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var bt=Uf;function Bf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gf=typeof Object.is=="function"?Object.is:Bf,zf=bt.useState,Wf=bt.useEffect,qf=bt.useLayoutEffect,Zf=bt.useDebugValue;function Jf(e,t){var n=t(),r=zf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return qf(function(){o.value=n,o.getSnapshot=t,Dn(o)&&s({inst:o})},[e,n,t]),Wf(function(){return Dn(o)&&s({inst:o}),e(function(){Dn(o)&&s({inst:o})})},[e]),Zf(n),n}function Dn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Gf(e,n)}catch{return!0}}function Kf(e,t){return t()}var Yf=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Kf:Jf;Ni.useSyncExternalStore=bt.useSyncExternalStore!==void 0?bt.useSyncExternalStore:Yf;Oi.exports=Ni;var Xf=Oi.exports;class Qf{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];let i;const l=Df(o)(this.arg);let c=l[0],a=l[1];i=[[c,f=>{s.push(f)},!1,s],a],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const p=Bn(this.state[0]);return Hf(this.arg,Ff((h,d)=>{const m=this.state;this.state=[h,d,!0,s],h!==m[0]&&f()},Vf((h,d)=>{const m=this.cmd;return this.cmd=He(),[this.state[0],m]},(h,d,m)=>h(d)(this.state[0]),zn(h=>h),zn(h=>h),V(h=>h),h=>[d=>h[0](d)?!0:p&&u,d=>{const m=d;Bn(m)?F(m):h[1](d)}],o))),()=>{u=!0}}}}function $o(e,t,n){return new Qf(e,t,n)}function ed(e){return e.state}function td(e){return e.subscribe}function nd(e,t,n){return re(e.arg,t)?!re(e.dependencies,n):!0}function rd(e,t,n){const r=Vt(()=>$o(e,t,n)),o=r[0];nd(o,t,n)&&r[1]($o(e,t,n));const s=Xf.useSyncExternalStore(td(o),()=>ed(o)),i=s[2],l=s[3],c=s[1];return mn(()=>{if(i&&l.length>0){let a=G(l);try{for(;a["System.Collections.IEnumerator.MoveNext"]();){const f=a["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{c(f)})}}finally{F(a)}bl(l)}},[i,l]),[s[0],c]}const Z=Ss;function od(e){return Z.useState(e)}class L extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function sd(e){return e.tag===1}function Io(e,t){switch(t.tag){case 1:return new L(1,[]);case 3:return new L(3,[t.fields[0]]);case 2:try{return new L(2,[e(t.fields[0])])}catch(n){return new L(3,[n])}default:return new L(0,[])}}function id(e){let t;t=new CustomEvent("step-completion",{bubbles:!0}),e.dispatchEvent(t)}class $e extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Ft extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Main","ReviewPolicy"]}}class he extends le{constructor(t,n,r,o,s,i){super(),this.Page=t,this.ReviewItemList=n,this.PresentPoliciesStatus=r,this.OpenPolicyStatus=o,this.AcceptPolicyStatus=s,this.ContinueStatus=i}}class pe extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FetchReviewItemList","NavigatePage","PresentPolicies","OpenPolicy","AcceptPolicy","Continue"]}}function ld(){return[new he(new Ft(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[])),se(e=>{e(new pe(0,[new $e(0,[])]))})]}function ud(e,t,n){let r,o;switch(t.tag){case 1:return[new he(t.fields[0],n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(0,[]),n.ContinueStatus),t.fields[0].tag===1?se(s=>{s(new pe(3,[t.fields[0].fields[0],new $e(0,[])]))}):He()];case 2:return t.fields[1].tag===1?[new he(n.Page,n.ReviewItemList,new L(2,[t.fields[1].fields[0]]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),He()]:[new he(n.Page,n.ReviewItemList,new L(1,[]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(0,[{PolicyIdentifierList:ut(s=>s.Policy.Identifier,t.fields[0])}]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(2,[i[0],i[1]])})];case 3:return t.fields[1].tag===1?[new he(n.Page,Io(s=>we(i=>ut(l=>re(t.fields[0].Policy.Identifier,l.Policy.Identifier)?new tn(l.Policy,Fn(l.Status,new ht(1,[]))):l,i),s),n.ReviewItemList),n.PresentPoliciesStatus,new L(2,[t.fields[1].fields[0]]),n.AcceptPolicyStatus,n.ContinueStatus),He()]:[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,new L(1,[]),n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(1,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(3,[i[0],i[1]])})];case 4:if(t.fields[1].tag===1){const s=Io(i=>we(l=>ut(c=>re(t.fields[0].Policy.Identifier,c.Policy.Identifier)?new tn(c.Policy,Fn(c.Status,new ht(2,[]))):c,l),i),n.ReviewItemList);return[new he((r=n.Page,r.tag===1?(o=r.fields[0],new Ft(1,[new tn(o.Policy,Fn(o.Status,new ht(2,[])))])):new Ft(0,[])),s,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(2,[t.fields[1].fields[0]]),n.ContinueStatus),He()]}else return[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(1,[]),n.ContinueStatus),$t(s=>{It(s)},s=>Yt(e,s),new Jt(2,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new pe(4,[i[0],i[1]])})];case 5:if(t.fields[1].tag===1)return id(document.querySelector("apollo-workplace-policies-app")),[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(2,[t.fields[1].fields[0]])),He()];switch(n.ContinueStatus.tag){case 0:case 2:case 3:return[new he(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(1,[])),$t(i=>{It(i)},i=>Yt(e,i),new Jt(3,[{PolicyIdentifierList:ut(i=>i.Policy.Identifier,t.fields[0])}]),i=>{const l=[t.fields[0],new $e(1,[i])];return new pe(5,[l[0],l[1]])})];default:return[n,He()]}default:return t.fields[0].tag===1?[new he(n.Page,new L(2,[we(s=>s.PolicyReviewList,t.fields[0].fields[0])]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),t.fields[0].fields[0].tag===1?He():se(s=>{s(new pe(2,[t.fields[0].fields[0].fields[0].PolicyReviewList,new $e(0,[])]))})]:[new he(n.Page,new L(1,[]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},()=>hf(e),void 0,s=>new pe(0,[new $e(1,[s])]))]}}const cd=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.mx-auto{margin-left:auto;margin-right:auto}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.w-\\[4\\.75rem\\]{width:4.75rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border:disabled{border-width:1px}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mr-2{margin-right:.5rem}.sm\\:mr-2\\.5{margin-right:.625rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-10{margin-top:2.5rem}.sm\\:w-\\[12\\.5rem\\]{width:12.5rem}.sm\\:w-\\[35rem\\]{width:35rem}.sm\\:max-w-\\[57rem\\]{max-width:57rem}.sm\\:flex-row{flex-direction:row}.sm\\:p-5{padding:1.25rem}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:leading-6{line-height:1.5rem}.sm\\:leading-7{line-height:1.75rem}.sm\\:leading-8{line-height:2rem}.sm\\:leading-9{line-height:2.25rem}}
46
- `,ad=(()=>Te(cd))(),fd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("g",{clipPath:"url(#clip0_3040_23717)"},b("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"currentColor"}),b("path",{d:"M6 12L10 16L18 8",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),b("defs",null,b("clipPath",{id:"clip0_3040_23717"},b("rect",{width:24,height:24,fill:"white"})))),dd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M9 6L15 12L9 18",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M15 18L9 12L15 6",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),pd=e=>b("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 4H15.5C15.6326 4 15.7597 4.05268 15.8535 4.14645C15.9473 4.24022 16 4.36739 16 4.5V9.5C15.9999 9.59894 15.9706 9.69565 15.9156 9.77789C15.8606 9.86013 15.7824 9.92421 15.691 9.962C15.6303 9.98677 15.5655 9.99967 15.5 10C15.4343 10.0001 15.3692 9.98729 15.3084 9.96223C15.2477 9.93718 15.1925 9.9004 15.146 9.854L13.354 8.061L10.707 10.707C10.6147 10.8025 10.5044 10.8787 10.3824 10.9311C10.2604 10.9835 10.1291 11.0111 9.99636 11.0123C9.86358 11.0134 9.7319 10.9881 9.609 10.9378C9.48611 10.8875 9.37446 10.8133 9.28056 10.7194C9.18667 10.6255 9.11242 10.5139 9.06214 10.391C9.01186 10.2681 8.98655 10.1364 8.98771 10.0036C8.98886 9.87082 9.01645 9.7396 9.06886 9.6176C9.12127 9.49559 9.19745 9.38525 9.29296 9.293L11.939 6.646L10.146 4.854C10.0759 4.78407 10.0281 4.6949 10.0087 4.59779C9.98935 4.50068 9.99926 4.40001 10.0372 4.30854C10.0751 4.21706 10.1393 4.13891 10.2217 4.08398C10.3041 4.02905 10.4009 3.99982 10.5 4ZM12 16H6C5.46957 16 4.96086 15.7893 4.58579 15.4142C4.21071 15.0391 4 14.5304 4 14V8C4 7.46957 4.21071 6.96086 4.58579 6.58579C4.96086 6.21071 5.46957 6 6 6H7C7.26522 6 7.51957 6.10536 7.70711 6.29289C7.89464 6.48043 8 6.73478 8 7C8 7.26522 7.89464 7.51957 7.70711 7.70711C7.51957 7.89464 7.26522 8 7 8H6V14H12V13C12 12.7348 12.1054 12.4804 12.2929 12.2929C12.4804 12.1054 12.7348 12 13 12C13.2652 12 13.5196 12.1054 13.7071 12.2929C13.8946 12.4804 14 12.7348 14 13V14C14 14.5304 13.7893 15.0391 13.4142 15.4142C13.0391 15.7893 12.5304 16 12 16Z",fill:"currentColor"})),_d=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M18 12H6",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),md=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M12 6V12M12 12V18M12 12H18M12 12L6 12",stroke:"#9CA3AF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));class Vn extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Height","Width","ClassName"]}}function Et(e,t){return Z.createElement(e,Mc(t,1))}function Ri(e){return Et(fd,e)}function gd(e){return Et(dd,e)}function wd(e){return Et(hd,e)}function yd(e){return Et(pd,e)}function bd(e){return Et(_d,e)}function vd(e){return Et(md,e)}function Sd(e){let t,n,r;const o=e.dispatch,s=e.acceptPolicyStatus,i=e.policyReviewItem,l=od(!1),c=l[0];return b("div",K(j([["className","w-full p-1 sm:p-5"],(t=[b("div",K(j([["className","flex justify-between items-center"],(n=Fe(N(()=>{let a,f;return me(O(b("div",K(j([["className","flex items-center"],(a=[b("div",K(j([["onClick",u=>{o(new pe(1,[new Ft(0,[])]))}],(f=[wd(se(new Vn(2,["cursor-pointer"])))],["children",Z.Children.toArray(Array.from(f))])]))),b("div",{className:"ml-1 mr-4 text-base sm:text-lg leading-6 sm:leading-7 font-semibold text-gray-900",children:i.Policy.Title})],["children",Z.Children.toArray(Array.from(a))])])))),N(()=>{let u,p;return i.Status.tag===2?O(b("div",K(j([["className","flex items-center flex-col-reverse sm:flex-row"],(u=[b("span",{className:"mt-1 sm:mt-0 sm:mr-2.5 text-sm leading-5 font-medium text-gray-500",children:"Accepted"}),Ri(se(new Vn(2,["text-primary-base"])))],["children",Z.Children.toArray(Array.from(u))])])))):O(b("button",K(j([["type","button"],["disabled",sd(s)],(p=`
47
- shadow-sm w-[4.75rem] px-3 py-2 rounded-md flex justify-center items-center text-white
48
- text-sm font-semibold leading-5 cursor-pointer disabled:cursor-not-allowed bg-primary-base
49
- `,["className",p]),["onClick",h=>{o(new pe(4,[i,new $e(0,[])]))}],["children","Accept"]]))))}))})),["children",Z.Children.toArray(Array.from(n))])]))),b("div",K(j([["className","p-4 sm:p-6 rounded-lg shadow-sm border border-gray-300"],(r=Fe(N(()=>{let a;return me(O(b("div",K(j([["className","flex justify-between"],["onClick",f=>{l[1](!c)}],(a=Fe(N(()=>me(O(b("div",{className:"text-sm mr-4 sm:text-base leading-5 sm:leading-6 font-semibold text-gray-900",children:`About the ${i.Policy.Title}`})),N(()=>{const f=se(new Vn(2,["cursor-pointer"]));return O(c?bd(f):vd(f))})))),["children",Z.Children.toArray(Array.from(a))])])))),N(()=>{let f,u,p;return c?O(b("div",K(j([["className","mt-2 space-y-3 sm:max-w-[57rem]"],(f=[b("div",{className:"text-sm font-normal leading-6 text-gray-900",children:i.Policy.Description}),b("div",K(j([["className","flex text-sm font-medium leading-5 text-primary-base cursor-pointer"],(u=[b("a",{target:"_blank",rel:"noopener",href:i.Policy.About.Link,children:i.Policy.About.Link}),(p=se(yd(z())),b("span",{children:Z.Children.toArray(Array.from(p))}))],["children",Z.Children.toArray(Array.from(u))])])))],["children",Z.Children.toArray(Array.from(f))])])))):Yu()}))})),["children",Z.Children.toArray(Array.from(r))])])))],["children",Z.Children.toArray(Array.from(t))])])))}function Cd(e,t){let n,r,o;const s=re(t.Status,new ht(2,[]));return b("div",K(j([["key",t.Policy.Identifier.PolicyId],["onClick",i=>{e(new pe(1,[new Ft(1,[t])]))}],["className",We(" ",Fe(N(()=>me(O("py-6 px-4 sm:px-6 shadow-sm rounded-lg text-left"),N(()=>O(s?"border-2 border-primary-base":"border border-gray-300"))))))],(n=[b("div",K(j([["className","flex justify-between"],(r=[b("div",{className:"text-base leading-6 font-semibold text-gray-900 mr-4",children:t.Policy.Title}),b("div",K(j([["className",We(" ",Fe(N(()=>me(O("ml-2"),N(()=>O(s?"text-primary-base":"cursor-pointer"))))))],(o=Fe(N(()=>O(s?Ri(z()):gd(z())))),["children",Z.Children.toArray(Array.from(o))])])))],["children",Z.Children.toArray(Array.from(r))])]))),b("div",{className:"text-sm leading-5 font-normal text-gray-500 mt-2",children:t.Policy.Description}),b("div",{className:"text-sm leading-5 font-medium mt-3 text-primary-base cursor-pointer",children:"View document (PDF)"})],["children",Z.Children.toArray(Array.from(n))])])))}function xd(e){return Du(t=>re(t.Status,new ht(2,[])),e)}function Ed(e,t,n){let r,o;return b("div",K(j([["className","w-full sm:w-[35rem] text-center bg-white mx-auto px-1 py-5 sm:py-16"],(r=[b("div",{className:"text-gray-900 text-2xl sm:text-3xl leading-8 sm:leading-9 font-bold",children:"Employment information statements"}),b("div",{className:"text-gray-600 text-base sm:text-lg font-normal leading-7 sm:leading-8 mt-4",children:"Please read and accept the below information statements provided by the Fair Work Ombudsman."}),b("div",K(j([["className","space-y-4 mt-8 sm:mt-10"],(o=Fe(N(()=>ut(s=>Cd(n,s),e))),["children",Z.Children.toArray(Array.from(o))])]))),b("button",K(Fe(N(()=>me(O(["disabled",t.tag===1?!0:!xd(e)]),N(()=>me(O(["type","button"]),N(()=>{let s;return me(O((s=`
50
- mt-8 sm:mt-10 mx-auto shadow-sm w-full sm:w-[12.5rem] px-4 py-2
51
- rounded-md flex justify-center items-center text-white disabled:text-gray-400
52
- text-base font-semibold leading-6 cursor-pointer disabled:cursor-not-allowed
53
- disabled:border disabled:border-gray-300 bg-primary-base disabled:bg-gray-100
54
- `,["className",s])),N(()=>me(O(["onClick",i=>{n(new pe(5,[e,new $e(0,[])]))}]),N(()=>O(["children","Continue"])))))}))))))))],["children",Z.Children.toArray(Array.from(r))])])))}function Er(){return(Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function kd(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,l={},c=Object.keys(r);for(i=0;i<c.length;i++)o.indexOf(s=c[i])>=0||(l[s]=r[s]);return l}(e,["context","children"]);return rr(t,n)}function Td(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=b(kd,Er({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,l=n.attributes,c=n.childNodes;for(i=l.length;i--;)l[i].name!=="slot"&&(s[l[i].name]=l[i].value,s[Fi(l[i].name)]=l[i].value);for(i=c.length;i--;){var a=t(c[i],null),f=c[i].slot;f?s[f]=b(Mo,{name:f},a):o[i]=a}var u=r?b(Mo,null,o):o;return b(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?nr:Ge)(this._vdom,this._root)}function Fi(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function $d(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Fi(e)]=n,this._vdom=rr(this._vdom,r),Ge(this._vdom,this._root)}}function Id(){Ge(this._vdom=null,this._root)}function Mo(e,t){var n=this;return b("slot",Er({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Md(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=Td,o.prototype.attributeChangedCallback=$d,o.prototype.disconnectedCallback=Id,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var l=typeof i;i!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Pd(e,t){Md(e,t,void 0,{shadow:!0})}function Ad(e){let t,n;const r=df(e.backendUrl,e.accessToken);n=rd(()=>Rf(ld,(l,c)=>ud(r,l,c),(l,c)=>{}),void 0,void 0);const o=n[0],s=n[1],i=[b("style",{children:[ad]}),b("div",K(j([["className","font-inter"],(t=Fe(N(()=>{const l=o.ReviewItemList,c=o.PresentPoliciesStatus;let a,f;switch(l.tag){case 1:{a=0;break}case 2:{switch(c.tag){case 2:{l.fields[0].tag===0&&c.fields[0].tag===0?(a=2,f=l.fields[0].fields[0]):a=1;break}case 3:{l.fields[0].tag,a=1;break}default:a=0}break}case 3:{switch(c.tag){case 2:{c.fields[0].tag,a=1;break}case 3:{a=1;break}default:a=0}break}default:a=0}switch(a){case 0:return O(ke());case 1:return O(b("div",{children:["Oops, we've encountered an error"]}));default:{const u=o.Page;return u.tag===1?O(b(Sd,{policyReviewItem:u.fields[0],acceptPolicyStatus:o.AcceptPolicyStatus,dispatch:s})):O(Ed(f,o.ContinueStatus,s))}}})),["children",Z.Children.toArray(Array.from(t))])])))];return b(Ie,{},...i)}Pd(e=>b(Ad,e),"apollo-workplace-policies-app");
45
+ */var St=zf;function Wf(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var qf=typeof Object.is=="function"?Object.is:Wf,Zf=St.useState,Jf=St.useEffect,Kf=St.useLayoutEffect,Yf=St.useDebugValue;function Xf(e,t){var n=t(),r=Zf({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return Kf(function(){o.value=n,o.getSnapshot=t,Vn(o)&&s({inst:o})},[e,n,t]),Jf(function(){return Vn(o)&&s({inst:o}),e(function(){Vn(o)&&s({inst:o})})},[e]),Yf(n),n}function Vn(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qf(e,n)}catch{return!0}}function Qf(e,t){return t()}var ed=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Qf:Xf;Fi.useSyncExternalStore=St.useSyncExternalStore!==void 0?St.useSyncExternalStore:ed;Ri.exports=Fi;var td=Ri.exports;class nd{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),s=[];let i;const l=Hf(o)(this.arg);let a=l[0],c=l[1];i=[[a,f=>{s.push(f)},!1,s],c],this.state=i[0],this.cmd=i[1],this.subscribe=f=>{let u=!1;const p=Bn(this.state[0]);return Bf(this.arg,Lf((h,d)=>{const m=this.state;this.state=[h,d,!0,s],h!==m[0]&&f()},jf((h,d)=>{const m=this.cmd;return this.cmd=je(),[this.state[0],m]},(h,d,m)=>h(d)(this.state[0]),zn(h=>h),zn(h=>h),V(h=>h),h=>[d=>h[0](d)?!0:p&&u,d=>{const m=d;Bn(m)?F(m):h[1](d)}],o))),()=>{u=!0}}}}function Io(e,t,n){return new nd(e,t,n)}function rd(e){return e.state}function od(e){return e.subscribe}function sd(e,t,n){return oe(e.arg,t)?!oe(e.dependencies,n):!0}function id(e,t,n){const r=Lt(()=>Io(e,t,n)),o=r[0];sd(o,t,n)&&r[1](Io(e,t,n));const s=td.useSyncExternalStore(od(o),()=>rd(o)),i=s[2],l=s[3],a=s[1];return gn(()=>{if(i&&l.length>0){let c=z(l);try{for(;c["System.Collections.IEnumerator.MoveNext"]();){const f=c["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{a(f)})}}finally{F(c)}xl(l)}},[i,l]),[s[0],a]}const j=xs;function Di(e){return j.useState(e)}class L extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function tr(e){return e.tag===1}function Po(e,t){switch(t.tag){case 1:return new L(1,[]);case 3:return new L(3,[t.fields[0]]);case 2:try{return new L(2,[e(t.fields[0])])}catch(n){return new L(3,[n])}default:return new L(0,[])}}function ld(e){let t;t=new CustomEvent("step-completion",{bubbles:!0}),e.dispatchEvent(t)}class $e extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class Dt extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Main","ReviewPolicy"]}}class pe extends ue{constructor(t,n,r,o,s,i){super(),this.Page=t,this.ReviewItemList=n,this.PresentPoliciesStatus=r,this.OpenPolicyStatus=o,this.AcceptPolicyStatus=s,this.ContinueStatus=i}}class _e extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FetchReviewItemList","NavigatePage","PresentPolicies","OpenPolicy","AcceptPolicy","Continue"]}}function ud(){return[new pe(new Dt(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[]),new L(0,[])),Y(e=>{e(new _e(0,[new $e(0,[])]))})]}function ad(e,t,n){let r,o;switch(t.tag){case 1:return[new pe(t.fields[0],n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(0,[]),n.ContinueStatus),t.fields[0].tag===1?Y(s=>{s(new _e(3,[t.fields[0].fields[0],new $e(0,[])]))}):je()];case 2:return t.fields[1].tag===1?[new pe(n.Page,n.ReviewItemList,new L(2,[t.fields[1].fields[0]]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),je()]:[new pe(n.Page,n.ReviewItemList,new L(1,[]),n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Xt(e,s),new Kt(0,[{PolicyIdentifierList:at(s=>s.Policy.Identifier,t.fields[0])}]),s=>{const i=[t.fields[0],new $e(1,[s])];return new _e(2,[i[0],i[1]])})];case 3:return t.fields[1].tag===1?[new pe(n.Page,Po(s=>ye(i=>at(l=>oe(t.fields[0].Policy.Identifier,l.Policy.Identifier)?new nn(l.Policy,Dn(l.Status,new _t(1,[]))):l,i),s),n.ReviewItemList),n.PresentPoliciesStatus,new L(2,[t.fields[1].fields[0]]),n.AcceptPolicyStatus,n.ContinueStatus),je()]:[new pe(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,new L(1,[]),n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},s=>Xt(e,s),new Kt(1,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new _e(3,[i[0],i[1]])})];case 4:if(t.fields[1].tag===1){const s=Po(i=>ye(l=>at(a=>oe(t.fields[0].Policy.Identifier,a.Policy.Identifier)?new nn(a.Policy,Dn(a.Status,new _t(2,[]))):a,l),i),n.ReviewItemList);return[new pe((r=n.Page,r.tag===1?(o=r.fields[0],new Dt(1,[new nn(o.Policy,Dn(o.Status,new _t(2,[])))])):new Dt(0,[])),s,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(2,[t.fields[1].fields[0]]),n.ContinueStatus),je()]}else return[new pe(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,new L(1,[]),n.ContinueStatus),$t(s=>{It(s)},s=>Xt(e,s),new Kt(2,[t.fields[0].Policy.Identifier]),s=>{const i=[t.fields[0],new $e(1,[s])];return new _e(4,[i[0],i[1]])})];case 5:if(t.fields[1].tag===1)return ld(document.querySelector("apollo-workplace-policies-app")),[new pe(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(2,[t.fields[1].fields[0]])),je()];switch(n.ContinueStatus.tag){case 0:case 2:case 3:return[new pe(n.Page,n.ReviewItemList,n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,new L(1,[])),$t(i=>{It(i)},i=>Xt(e,i),new Kt(3,[{PolicyIdentifierList:at(i=>i.Policy.Identifier,t.fields[0])}]),i=>{const l=[t.fields[0],new $e(1,[i])];return new _e(5,[l[0],l[1]])})];default:return[n,je()]}default:return t.fields[0].tag===1?[new pe(n.Page,new L(2,[ye(s=>s.PolicyReviewList,t.fields[0].fields[0])]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),t.fields[0].fields[0].tag===1?je():Y(s=>{s(new _e(2,[t.fields[0].fields[0].fields[0].PolicyReviewList,new $e(0,[])]))})]:[new pe(n.Page,new L(1,[]),n.PresentPoliciesStatus,n.OpenPolicyStatus,n.AcceptPolicyStatus,n.ContinueStatus),$t(s=>{It(s)},()=>mf(e),void 0,s=>new _e(0,[new $e(1,[s])]))]}}const cd=`*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}[type=text],input:where(:not([type])),[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,input:where(:not([type])):focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-top:0;padding-bottom:0}select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #2563eb;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e")}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e")}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.mx-auto{margin-left:auto;margin-right:auto}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-8{margin-top:2rem}.inline{display:inline}.flex{display:flex}.h-10{height:2.5rem}.w-\\[4\\.75rem\\]{width:4.75rem}.w-full{width:100%}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.cursor-progress{cursor:progress}.flex-col-reverse{flex-direction:column-reverse}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline-offset-2{text-underline-offset:2px}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:-my-\\[1px\\]:hover{margin-top:-1px;margin-bottom:-1px}.hover\\:border-2:hover{border-width:2px}.hover\\:border-primary-base:hover{border-color:var(--fl-color-primary)}.hover\\:text-primary-base:hover{color:var(--fl-color-primary)}.hover\\:underline:hover{text-decoration-line:underline}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-base:focus-visible{outline-color:var(--fl-color-primary)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:cursor-progress:disabled{cursor:progress}.disabled\\:border:disabled{border-width:1px}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.disabled\\:text-gray-400:disabled{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}@media (min-width: 640px){.sm\\:mr-2{margin-right:.5rem}.sm\\:mr-2\\.5{margin-right:.625rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-10{margin-top:2.5rem}.sm\\:w-\\[12\\.5rem\\]{width:12.5rem}.sm\\:w-\\[35rem\\]{width:35rem}.sm\\:max-w-\\[57rem\\]{max-width:57rem}.sm\\:flex-row{flex-direction:row}.sm\\:p-5{padding:1.25rem}.sm\\:p-6{padding:1.5rem}.sm\\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\\:py-16{padding-top:4rem;padding-bottom:4rem}.sm\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.sm\\:text-base{font-size:1rem;line-height:1.5rem}.sm\\:text-lg{font-size:1.125rem;line-height:1.75rem}.sm\\:leading-6{line-height:1.5rem}.sm\\:leading-7{line-height:1.75rem}.sm\\:leading-8{line-height:2rem}.sm\\:leading-9{line-height:2.25rem}}
46
+ `,fd=(()=>Me(cd))(),dd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("g",{clipPath:"url(#clip0_3040_23717)"},b("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"currentColor"}),b("path",{d:"M6 12L10 16L18 8",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),b("defs",null,b("clipPath",{id:"clip0_3040_23717"},b("rect",{width:24,height:24,fill:"white"})))),hd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M9 6L15 12L9 18",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),pd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M15 18L9 12L15 6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_d=e=>b("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 4H15.5C15.6326 4 15.7597 4.05268 15.8535 4.14645C15.9473 4.24022 16 4.36739 16 4.5V9.5C15.9999 9.59894 15.9706 9.69565 15.9156 9.77789C15.8606 9.86013 15.7824 9.92421 15.691 9.962C15.6303 9.98677 15.5655 9.99967 15.5 10C15.4343 10.0001 15.3692 9.98729 15.3084 9.96223C15.2477 9.93718 15.1925 9.9004 15.146 9.854L13.354 8.061L10.707 10.707C10.6147 10.8025 10.5044 10.8787 10.3824 10.9311C10.2604 10.9835 10.1291 11.0111 9.99636 11.0123C9.86358 11.0134 9.7319 10.9881 9.609 10.9378C9.48611 10.8875 9.37446 10.8133 9.28056 10.7194C9.18667 10.6255 9.11242 10.5139 9.06214 10.391C9.01186 10.2681 8.98655 10.1364 8.98771 10.0036C8.98886 9.87082 9.01645 9.7396 9.06886 9.6176C9.12127 9.49559 9.19745 9.38525 9.29296 9.293L11.939 6.646L10.146 4.854C10.0759 4.78407 10.0281 4.6949 10.0087 4.59779C9.98935 4.50068 9.99926 4.40001 10.0372 4.30854C10.0751 4.21706 10.1393 4.13891 10.2217 4.08398C10.3041 4.02905 10.4009 3.99982 10.5 4ZM12 16H6C5.46957 16 4.96086 15.7893 4.58579 15.4142C4.21071 15.0391 4 14.5304 4 14V8C4 7.46957 4.21071 6.96086 4.58579 6.58579C4.96086 6.21071 5.46957 6 6 6H7C7.26522 6 7.51957 6.10536 7.70711 6.29289C7.89464 6.48043 8 6.73478 8 7C8 7.26522 7.89464 7.51957 7.70711 7.70711C7.51957 7.89464 7.26522 8 7 8H6V14H12V13C12 12.7348 12.1054 12.4804 12.2929 12.2929C12.4804 12.1054 12.7348 12 13 12C13.2652 12 13.5196 12.1054 13.7071 12.2929C13.8946 12.4804 14 12.7348 14 13V14C14 14.5304 13.7893 15.0391 13.4142 15.4142C13.0391 15.7893 12.5304 16 12 16Z",fill:"currentColor"})),md=e=>b("svg",{width:21,height:20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("g",{id:"Loader Mini"},b("path",{id:"Ellipse 2",d:"M18.5 10C18.5 14.4183 14.9183 18 10.5 18C6.08172 18 2.5 14.4183 2.5 10C2.5 5.58172 6.08172 2 10.5 2C14.9183 2 18.5 5.58172 18.5 10ZM4.49743 10C4.49743 13.3151 7.18487 16.0026 10.5 16.0026C13.8151 16.0026 16.5026 13.3151 16.5026 10C16.5026 6.68487 13.8151 3.99743 10.5 3.99743C7.18487 3.99743 4.49743 6.68487 4.49743 10Z",fill:"white",fillOpacity:.3}),b("path",{id:"Ellipse 2_2",d:"M10.5 3C10.5 2.44772 10.9494 1.99356 11.4974 2.06242C12.2053 2.15137 12.8996 2.3348 13.5615 2.60896C14.5321 3.011 15.414 3.60028 16.1569 4.34315C16.8997 5.08602 17.489 5.96793 17.891 6.93853C18.1652 7.60043 18.3486 8.29473 18.4376 9.0026C18.5064 9.55057 18.0523 10 17.5 10C16.9477 10 16.5085 9.54925 16.4169 9.00462C16.342 8.55939 16.2169 8.12298 16.0433 7.7039C15.7417 6.97595 15.2998 6.31451 14.7426 5.75736C14.1855 5.20021 13.5241 4.75825 12.7961 4.45672C12.377 4.28313 11.9406 4.15804 11.4954 4.08314C10.9508 3.99152 10.5 3.55228 10.5 3Z",fill:"white"}))),gd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M18 12H6",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),wd=e=>b("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b("path",{d:"M12 6V12M12 12V18M12 12H18M12 12L6 12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}));class ft extends W{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Height","Width","ClassName"]}}function rt(e,t){return j.createElement(e,Oa(t,1))}function Vi(e){return rt(dd,e)}function yd(e){return rt(hd,e)}function bd(e){return rt(pd,e)}function vd(e){return rt(_d,e)}function Li(e){return rt(md,e)}function Sd(e){return rt(gd,e)}function Cd(e){return rt(wd,e)}function xd(e){let t,n,r;const o=e.dispatch,s=e.acceptPolicyStatus,i=e.policyReviewItem,l=Di(!1),a=l[0];return b("div",K(U([["className","w-full p-1 sm:p-5"],(t=[b("div",K(U([["className","flex justify-between items-center"],(n=ge($(()=>{let c,f;return ie(T(b("div",K(U([["className","flex items-center"],(c=[b("div",K(U([["onClick",u=>{o(new _e(1,[new Dt(0,[])]))}],(f=[bd(Y(new ft(2,["cursor-pointer text-gray-900 hover:text-primary-base"])))],["children",j.Children.toArray(Array.from(f))])]))),b("div",{className:"ml-1 mr-4 text-base sm:text-lg leading-6 sm:leading-7 font-semibold text-gray-900",children:i.Policy.Title})],["children",j.Children.toArray(Array.from(c))])])))),$(()=>{let u,p,h;return i.Status.tag===2?T(b("div",K(U([["className","flex items-center flex-col-reverse sm:flex-row"],(u=[b("span",{className:"mt-1 sm:mt-0 sm:mr-2.5 text-sm leading-5 font-medium text-gray-500",children:"Accepted"}),Vi(Y(new ft(2,["text-primary-base"])))],["children",j.Children.toArray(Array.from(u))])])))):T(b("button",K(U([["type","button"],["disabled",tr(s)],(p=`
47
+ shadow-sm w-[4.75rem] h-10 px-3 py-2 rounded-md flex justify-center items-center text-white
48
+ text-sm font-semibold leading-5 cursor-pointer disabled:cursor-progress bg-primary-base
49
+ focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-base
50
+ `,["className",p]),["onClick",d=>{o(new _e(4,[i,new $e(0,[])]))}],(h=ge($(()=>s.tag===1?T(Li(Y(new ft(2,["animate-spin"])))):T("Accept"))),["children",j.Children.toArray(Array.from(h))])]))))}))})),["children",j.Children.toArray(Array.from(n))])]))),b("div",K(U([["className","p-4 sm:p-6 rounded-lg shadow-sm border border-gray-300"],(r=ge($(()=>{let c;return ie(T(b("div",K(U([["className","flex justify-between"],["onClick",f=>{l[1](!a)}],(c=ge($(()=>ie(T(b("div",{className:"text-sm mr-4 sm:text-base leading-5 sm:leading-6 font-semibold text-gray-900",children:`About the ${i.Policy.Title}`})),$(()=>{const f=Y(new ft(2,["cursor-pointer text-gray-400 hover:text-primary-base"]));return T(a?Sd(f):Cd(f))})))),["children",j.Children.toArray(Array.from(c))])])))),$(()=>{let f,u,p,h;return a?T(b("div",K(U([["className","mt-2 space-y-3 sm:max-w-[57rem]"],(f=[b("div",{className:"text-sm font-normal leading-6 text-gray-900",children:i.Policy.Description}),b("div",K(U([(u="flex text-sm font-medium leading-5 text-primary-base cursor-pointer hover:underline underline-offset-2",["className",u]),(p=[b("a",{target:"_blank",rel:"noopener",href:i.Policy.About.Link,children:i.Policy.About.Link}),(h=Y(vd(J())),b("span",{children:j.Children.toArray(Array.from(h))}))],["children",j.Children.toArray(Array.from(p))])])))],["children",j.Children.toArray(Array.from(f))])])))):Kn()}))})),["children",j.Children.toArray(Array.from(r))])])))],["children",j.Children.toArray(Array.from(t))])])))}function Ed(e){let t,n,r;const o=e.item,s=e.dispatch,i=Di(!1),l=i[1],a=oe(o.Status,new _t(2,[]));return b("div",K(U([["key",o.Policy.Identifier.PolicyId],["onMouseEnter",c=>{l(!0)}],["onMouseLeave",c=>{l(!1)}],["onClick",c=>{s(new _e(1,[new Dt(1,[o])]))}],["className",Le(" ",ge($(()=>ie(T("py-6 px-4 sm:px-6 shadow-sm rounded-lg text-left cursor-pointer"),$(()=>T(a?"border-2 border-primary-base":"border border-gray-300 hover:border-2 hover:border-primary-base hover:-my-[1px]"))))))],(t=[b("div",K(U([["className","flex justify-between"],(n=[b("div",{className:"text-base leading-6 font-semibold text-gray-900 mr-4",children:o.Policy.Title}),b("div",K(U([["className",Le(" ",ge($(()=>ie(T("ml-2"),$(()=>T(a?"text-primary-base":"text-gray-400"))))))],(r=ge($(()=>T(a?Vi(J()):yd(Y(new ft(2,[i[0]?"text-primary-base":""])))))),["children",j.Children.toArray(Array.from(r))])])))],["children",j.Children.toArray(Array.from(n))])]))),b("div",{className:"text-sm leading-5 font-normal text-gray-500 mt-2",children:o.Policy.Description}),b("div",{className:"text-sm leading-5 font-medium mt-3 text-primary-base hover:underline underline-offset-2",children:"View document (PDF)"})],["children",j.Children.toArray(Array.from(t))])])))}function kd(e){return ju(t=>oe(t.Status,new _t(2,[])),e)}function Td(e,t,n){let r,o;return b("div",K(U([["className","w-full sm:w-[35rem] text-center bg-white mx-auto px-1 py-5 sm:py-16"],(r=[b("div",{className:"text-gray-900 text-2xl sm:text-3xl leading-8 sm:leading-9 font-bold",children:"Employment information statements"}),b("div",{className:"text-gray-600 text-base sm:text-lg font-normal leading-7 sm:leading-8 mt-4",children:"Please read and accept the below information statements provided by the Fair Work Ombudsman."}),b("div",K(U([["className","space-y-4 mt-8 sm:mt-10"],(o=ge($(()=>at(s=>b(Ed,{dispatch:n,item:s}),e))),["children",j.Children.toArray(Array.from(o))])]))),b("button",K(ge($(()=>{const s=t.tag===1?!0:!kd(e);return ie(T(["disabled",s]),$(()=>ie(T(["type","button"]),$(()=>ie(T(["className",Le(" ",ge($(()=>ie(T(`mt-8 sm:mt-10 mx-auto shadow-sm w-full sm:w-[12.5rem] h-10 px-4 py-2
51
+ rounded-md flex justify-center items-center text-white text-base
52
+ font-semibold leading-6 cursor-pointer bg-primary-base
53
+ focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-base`),$(()=>ie(tr(t)?T("cursor-progress"):Kn(),$(()=>!tr(t)&&s?T(`disabled:text-gray-400 disabled:cursor-not-allowed
54
+ disabled:border disabled:border-gray-300 disabled:bg-gray-100`):Kn())))))))]),$(()=>ie(T(["onClick",i=>{n(new _e(5,[e,new $e(0,[])]))}]),$(()=>{let i;return T((i=ge($(()=>t.tag===1?T(Li(Y(new ft(2,["animate-spin"])))):T("Continue"))),["children",j.Children.toArray(Array.from(i))]))}))))))))}))))],["children",j.Children.toArray(Array.from(r))])])))}function Tr(){return(Tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Md(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var s,i,l={},a=Object.keys(r);for(i=0;i<a.length;i++)o.indexOf(s=a[i])>=0||(l[s]=r[s]);return l}(e,["context","children"]);return sr(t,n)}function $d(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=b(Md,Tr({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],s={},i=0,l=n.attributes,a=n.childNodes;for(i=l.length;i--;)l[i].name!=="slot"&&(s[l[i].name]=l[i].value,s[Hi(l[i].name)]=l[i].value);for(i=a.length;i--;){var c=t(a[i],null),f=a[i].slot;f?s[f]=b(Ao,{name:f},c):o[i]=c}var u=r?b(Ao,null,o):o;return b(r||n.nodeName.toLowerCase(),s,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?or:ze)(this._vdom,this._root)}function Hi(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Id(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Hi(e)]=n,this._vdom=sr(this._vdom,r),ze(this._vdom,this._root)}}function Pd(){ze(this._vdom=null,this._root)}function Ao(e,t){var n=this;return b("slot",Tr({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Ad(e,t,n,r){function o(){var s=Reflect.construct(HTMLElement,[],o);return s._vdomComponent=e,s._root=r&&r.shadow?s.attachShadow({mode:"open"}):s,s}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=$d,o.prototype.attributeChangedCallback=Id,o.prototype.disconnectedCallback=Pd,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(s){Object.defineProperty(o.prototype,s,{get:function(){return this._vdom.props[s]},set:function(i){this._vdom?this.attributeChangedCallback(s,null,i):(this._props||(this._props={}),this._props[s]=i,this.connectedCallback());var l=typeof i;i!=null&&l!=="string"&&l!=="boolean"&&l!=="number"||this.setAttribute(s,i)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function Od(e,t){Ad(e,t,void 0,{shadow:!0})}function Nd(e){let t,n;const r=_f(e.backendUrl,e.accessToken);n=id(()=>Vf(ud,(l,a)=>ad(r,l,a),(l,a)=>{}),void 0,void 0);const o=n[0],s=n[1],i=[b("style",{children:[fd]}),b("div",K(U([["className","font-inter"],(t=ge($(()=>{const l=o.ReviewItemList,a=o.PresentPoliciesStatus;let c,f;switch(l.tag){case 1:{c=0;break}case 2:{switch(a.tag){case 2:{l.fields[0].tag===0&&a.fields[0].tag===0?(c=2,f=l.fields[0].fields[0]):c=1;break}case 3:{l.fields[0].tag,c=1;break}default:c=0}break}case 3:{switch(a.tag){case 2:{a.fields[0].tag,c=1;break}case 3:{c=1;break}default:c=0}break}default:c=0}switch(c){case 0:return T(Te());case 1:return T(b("div",{children:["Oops, we've encountered an error"]}));default:{const u=o.Page;return u.tag===1?T(b(xd,{policyReviewItem:u.fields[0],acceptPolicyStatus:o.AcceptPolicyStatus,dispatch:s})):T(Td(f,o.ContinueStatus,s))}}})),["children",j.Children.toArray(Array.from(t))])])))];return b(Ie,{},...i)}Od(e=>b(Nd,e),"apollo-workplace-policies-app");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-workplace-policies",
3
- "version": "0.4.4",
3
+ "version": "0.5.5",
4
4
  "description": "Flare Workplace Policies Components",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M15 18L9 12L15 6" stroke="#111827" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M9 6L15 12L9 18" stroke="#9CA3AF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M18 12H6" stroke="#9CA3AF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>
@@ -1,3 +0,0 @@
1
- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M12 6V12M12 12V18M12 12H18M12 12L6 12" stroke="#9CA3AF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
3
- </svg>