@flarehr/superhero-identity-app 0.1.1607 → 0.1.1608
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/superhero-identity-app.js +14 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
(function(){"use strict";function
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(null,arguments)}function
|
|
3
|
-
'`+o.annotationType_+"' can only be used on properties with a function value."))}function Nc(e,t,n,r){t.annotationType_,r.value}function cs(e,t,n,r,i){var o,s,a,u,l,f,c;i===void 0&&(i=y.safeDescriptors),Nc(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Tt((s=(a=t.options_)==null?void 0:a.name)!=null?s:n.toString(),d,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function fs(e,t){return{annotationType_:e,options_:t,make_:jc,extend_:Lc,decorate_20223_:Vc}}function jc(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!tt(e.target_,t)||!kn(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(kn(n.value))return 1;var o=ds(e,this,t,n,!1,!1);return Ue(r,t,o),2}function Lc(e,t,n,r){var i,o=ds(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function Vc(e,t){var n,r=t.name,i=t.addInitializer;return kn(e)||(e=Jt(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function Fc(e,t,n,r){t.annotationType_,r.value}function ds(e,t,n,r,i,o){o===void 0&&(o=y.safeDescriptors),Fc(e,t,n,r);var s=r.value;if(kn(s)||(s=Jt(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Ci(e,t){return{annotationType_:e,options_:t,make_:Uc,extend_:Bc,decorate_20223_:Gc}}function Uc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Bc(e,t,n,r){return Hc(e,this,t,n),e.defineComputedProperty_(t,At({},this.options_,{get:n.get,set:n.set}),r)}function Gc(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Rt(this)[O],s=At({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new xe(s))}),function(){return this[O].getObservablePropValue_(r)}}function Hc(e,t,n,r){t.annotationType_,r.get}function hr(e,t){return{annotationType_:e,options_:t,make_:zc,extend_:Wc,decorate_20223_:qc}}function zc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Wc(e,t,n,r){var i,o;return Kc(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:xt,r)}function qc(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(a,u){var l,f,c=Rt(a)[O],d=new kt(u,(l=(f=n.options_)==null?void 0:f.enhancer)!=null?l:xt,"ObservableObject."+i.toString(),!1);c.values_.set(i,d),o.add(a)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[O].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[O].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function Kc(e,t,n,r){t.annotationType_}var Jc="true",Zc=hs();function hs(e){return{annotationType_:Jc,options_:e,make_:Yc,extend_:Xc,decorate_20223_:Qc}}function Yc(e,t,n,r){var i,o;if(n.get)return gr.make_(e,t,n,r);if(n.set){var s=Tt(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Ue(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(rs(n.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Jt.bound:Jt;return l.make_(e,t,n,r)}var f=(a=this.options_)!=null&&a.autoBind?xn.bound:xn;return f.make_(e,t,n,r)}var c=((i=this.options_)==null?void 0:i.deep)===!1?X.ref:X;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return c.make_(e,t,n,r)}function Xc(e,t,n,r){var i,o;if(n.get)return gr.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:Tt(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?X.ref:X;return a.extend_(e,t,n,r)}function Qc(e,t){M("'"+this.annotationType_+"' cannot be used as a decorator")}var ef="observable",tf="observable.ref",nf="observable.shallow",rf="observable.struct",_s={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(_s);function _r(e){return e||_s}var Oi=hr(ef),of=hr(tf,{enhancer:dr}),sf=hr(nf,{enhancer:kc}),af=hr(rf,{enhancer:Mc}),ps=Ge(Oi);function pr(e){return e.deep===!0?xt:e.deep===!1?dr:lf(e.defaultDecorator)}function uf(e){var t;return e?(t=e.defaultDecorator)!=null?t:hs(e):void 0}function lf(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:xt}function gs(e,t,n){if(Cn(t))return Oi.decorate_20223_(e,t);if(Ot(t)){Sn(e,t,Oi);return}return Bs(e)?e:Qe(e)?X.object(e,t,n):Array.isArray(e)?X.array(e,t):Ht(e)?X.map(e,t):et(e)?X.set(e,t):typeof e=="object"&&e!==null?e:X.box(e,t)}es(gs,ps);var cf={box:function(t,n){var r=_r(n);return new kt(t,pr(r),r.name,!0,r.equals)},array:function(t,n){var r=_r(n);return(y.useProxies===!1||r.proxy===!1?ud:Xf)(t,pr(r),r.name)},map:function(t,n){var r=_r(n);return new Ws(t,pr(r),r.name)},set:function(t,n){var r=_r(n);return new Ks(t,pr(r),r.name)},object:function(t,n,r){return gt(function(){return Ls(y.useProxies===!1||r?.proxy===!1?Rt({},r):Kf({},r),t,n)})},ref:Ge(of),shallow:Ge(sf),deep:ps,struct:Ge(af)},X=es(gs,cf),vs="computed",ff="computed.struct",Ei=Ci(vs),df=Ci(ff,{equals:Kt.structural}),gr=function(t,n){if(Cn(n))return Ei.decorate_20223_(t,n);if(Ot(n))return Sn(t,n,Ei);if(Qe(t))return Ge(Ci(vs,t));var r=Qe(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new xe(r)};Object.assign(gr,Ei),gr.struct=Ge(df);var ms,ys,vr=0,hf=1,_f=(ms=(ys=lr(function(){},"name"))==null?void 0:ys.configurable)!=null?ms:!1,bs={value:"action",configurable:!0,writable:!1,enumerable:!1};function Tt(e,t,n,r){n===void 0&&(n=!1);function i(){return ws(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},_f&&(bs.value=e,Ue(i,"name",bs)),i}function ws(e,t,n,r,i){var o=pf(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{gf(o)}}function pf(e,t,n,r){var i=!1,o=0,s=y.trackingDerivation,a=!t||!s;be();var u=y.allowStateChanges;a&&(Mt(),u=mr(!0));var l=Ti(!0),f={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:i,startTime_:o,actionId_:hf++,parentActionId_:vr};return vr=f.actionId_,f}function gf(e){vr!==e.actionId_&&M(30),vr=e.parentActionId_,e.error_!==void 0&&(y.suppressReactionErrors=!0),yr(e.prevAllowStateChanges_),En(e.prevAllowStateReads_),we(),e.runAsAction_&&nt(e.prevDerivation_),y.suppressReactionErrors=!1}function vf(e,t){var n=mr(e);try{return t()}finally{yr(n)}}function mr(e){var t=y.allowStateChanges;return y.allowStateChanges=e,t}function yr(e){y.allowStateChanges=e}var kt=function(e){function t(r,i,o,s,a){var u;return o===void 0&&(o="ObservableValue"),a===void 0&&(a=Kt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(r,void 0,o),u}us(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==y.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Se(this)){var o=Ce(this,{object:this,type:ze,newValue:i});if(!o)return y.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?y.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Te(this)&&ke(this,{type:ze,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return Mn(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:ze,newValue:this.value_,oldValue:void 0}),In(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return ss(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(_t),xe=function(){function e(n){this.dependenciesState_=I.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Sr(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=wr.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||M(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Tt("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Kt.structural:Kt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Sf(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&M(32,this.name_,this.derivation),y.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ai(this)&&(this.warnAboutUntrackedRead_(),be(),this.value_=this.computeValue_(!1),we());else if(Ts(this),Ai(this)){var r=y.trackingContext;this.keepAlive_&&!r&&(y.trackingContext=this),this.trackAndCompute()&&wf(this),y.trackingContext=r}var i=this.value_;if(Cr(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&M(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else M(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===I.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Cr(r)||Cr(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=mr(!1),o;if(r)o=Ss(this,this.derivation,this.scope_);else if(y.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Sr(s)}return yr(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(xi(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,a=void 0;return $f(function(){var u=o.get();if(!s||i){var l=Mt();r({observableKind:"computed",debugObjectName:o.name_,type:ze,object:o,newValue:u,oldValue:a}),nt(l)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return ss(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Wt(e,[{key:"isComputing",get:function(){return ae(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=ue(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return ae(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=ue(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return ae(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=ue(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return ae(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=ue(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return ae(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=ue(this.flags_,e.diffValueMask_,r===1)}}])}();xe.isComputingMask_=1,xe.isRunningSetterMask_=2,xe.isBeingObservedMask_=4,xe.isPendingUnobservationMask_=8,xe.diffValueMask_=16;var br=Et("ComputedValue",xe),I;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(I||(I={}));var wr;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(wr||(wr={}));var Sr=function(t){this.cause=void 0,this.cause=t};function Cr(e){return e instanceof Sr}function Ai(e){switch(e.dependenciesState_){case I.UP_TO_DATE_:return!1;case I.NOT_TRACKING_:case I.STALE_:return!0;case I.POSSIBLY_STALE_:{for(var t=Ti(!0),n=Mt(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(br(s)){if(y.disableErrorBoundaries)s.get();else try{s.get()}catch{return nt(n),En(t),!0}if(e.dependenciesState_===I.STALE_)return nt(n),En(t),!0}}return Os(e),nt(n),En(t),!1}}}function B0(e){}function Ss(e,t,n){var r=Ti(!0);Os(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++y.runId;var i=y.trackingDerivation;y.trackingDerivation=e,y.inBatch++;var o;if(y.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Sr(s)}return y.inBatch--,y.trackingDerivation=i,mf(e),En(r),o}function mf(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=I.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&As(u,e),u.diffValue=0}for(;i--;){var l=n[i];l.diffValue===1&&(l.diffValue=0,bf(l,e))}r!==I.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function xi(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)As(t[n],e);e.dependenciesState_=I.NOT_TRACKING_}function Cs(e){var t=Mt();try{return e()}finally{nt(t)}}function Mt(){var e=y.trackingDerivation;return y.trackingDerivation=null,e}function nt(e){y.trackingDerivation=e}function Ti(e){var t=y.allowStateReads;return y.allowStateReads=e,t}function En(e){y.allowStateReads=e}function Os(e){if(e.dependenciesState_!==I.UP_TO_DATE_){e.dependenciesState_=I.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=I.UP_TO_DATE_}}var Or=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Er=!0,Es=!1,y=function(){var e=ur();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Er=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Or().version&&(Er=!1),Er?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Or):(setTimeout(function(){Es||M(35)},1),new Or)}();function yf(){if((y.pendingReactions.length||y.inBatch||y.isRunningReactions)&&M(36),Es=!0,Er){var e=ur();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),y=new Or}}function bf(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function As(e,t){e.observers_.delete(t),e.observers_.size===0&&xs(e)}function xs(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,y.pendingUnobservations.push(e))}function be(){y.inBatch++}function we(){if(--y.inBatch===0){Ms();for(var e=y.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof xe&&n.suspend_())}y.pendingUnobservations=[]}}function Ts(e){var t=y.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&y.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&y.inBatch>0&&xs(e),!1)}function ks(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=I.STALE_}))}function wf(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.POSSIBLY_STALE_?t.dependenciesState_=I.STALE_:t.dependenciesState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.UP_TO_DATE_)}))}function Sf(e){e.lowestObserverState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&(t.dependenciesState_=I.POSSIBLY_STALE_,t.onBecomeStale_())}))}var He=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=I.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=wr.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,y.pendingReactions.push(this),Ms())},t.runReaction_=function(){if(!this.isDisposed){be(),this.isScheduled=!1;var r=y.trackingContext;if(y.trackingContext=this,Ai(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}y.trackingContext=r,we()}},t.track=function(r){if(!this.isDisposed){be(),this.isRunning=!0;var i=y.trackingContext;y.trackingContext=this;var o=Ss(this,r,void 0);y.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&xi(this),Cr(o)&&this.reportExceptionInDerivation_(o.cause),we()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(y.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";y.suppressReactionErrors||console.error(o,r),y.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(be(),xi(this),we()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[O]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Wt(e,[{key:"isDisposed",get:function(){return ae(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=ue(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return ae(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=ue(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return ae(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=ue(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return ae(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=ue(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return ae(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=ue(this.flags_,e.diffValueMask_,r===1)}}])}();He.isDisposedMask_=1,He.isScheduledMask_=2,He.isTrackPendingMask_=4,He.isRunningMask_=8,He.diffValueMask_=16;var Cf=100,ki=function(t){return t()};function Ms(){y.inBatch>0||y.isRunningReactions||ki(Of)}function Of(){y.isRunningReactions=!0;for(var e=y.pendingReactions,t=0;e.length>0;){++t===Cf&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}y.isRunningReactions=!1}var Ar=Et("Reaction",He);function Ef(e){var t=ki;ki=function(r){return e(function(){return t(r)})}}function An(){return!1}function G0(e){}function H0(e){}function z0(e){}function Af(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Is="action",xf="action.bound",$s="autoAction",Tf="autoAction.bound",Rs="<unnamed action>",Mi=On(Is),kf=On(xf,{bound:!0}),Ii=On($s,{autoAction:!0}),Mf=On(Tf,{autoAction:!0,bound:!0});function Ps(e){var t=function(r,i){if(Ae(r))return Tt(r.name||Rs,r,e);if(Ae(i))return Tt(r,i,e);if(Cn(i))return(e?Ii:Mi).decorate_20223_(r,i);if(Ot(i))return Sn(r,i,e?Ii:Mi);if(Ot(r))return Ge(On(e?$s:Is,{name:r,autoAction:e}))};return t}var It=Ps(!1);Object.assign(It,Mi);var xn=Ps(!0);Object.assign(xn,Ii),It.bound=Ge(kf),xn.bound=Ge(Mf);function If(e){return ws(e.name||Rs,!1,e,this,void 0)}function Tn(e){return Ae(e)&&e.isMobxAction===!0}function $f(e,t){var n,r,i,o;t===void 0&&(t=bi);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new He(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=Ds(t),f=!1;u=new He(s,function(){f||(f=!0,l(function(){f=!1,u.isDisposed||u.track(c)}))},t.onError,t.requiresObservable)}function c(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var Rf=function(t){return t()};function Ds(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Rf}function Pf(e,t,n){var r,i,o;n===void 0&&(n=bi);var s=(r=n.name)!=null?r:"Reaction",a=It(s,n.onError?Df(n.onError,t):t),u=!n.scheduler&&!n.delay,l=Ds(n),f=!0,c=!1,d,h=n.compareStructural?Kt.structural:n.equals||Kt.default,_=new He(s,function(){f||u?g():c||(c=!0,l(g))},n.onError,n.requiresObservable);function g(){if(c=!1,!_.isDisposed){var v=!1,m=d;_.track(function(){var w=vf(!1,function(){return e(_)});v=f||!h(d,w),d=w}),(f&&n.fireImmediately||!f&&v)&&a(d,m,_),f=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((o=n)==null?void 0:o.signal)}function Df(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var Nf="onBO",jf="onBUO";function Lf(e,t,n){return js(Nf,e,t,n)}function Ns(e,t,n){return js(jf,e,t,n)}function js(e,t,n,r){var i=$r(t),o=Ae(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var Vf="never",xr="always",Ff="observed";function Uf(e){e.isolateGlobalState===!0&&yf();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(y.useProxies=t===xr?!0:t===Vf?!1:typeof Proxy<"u"),t==="ifavailable"&&(y.verifyProxies=!0),n!==void 0){var r=n===xr?xr:n===Ff;y.enforceActions=r,y.allowStateChanges=!(r===!0||r===xr)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(y[i]=!!e[i])}),y.allowStateReads=!y.observableRequiresReaction,e.reactionScheduler&&Ef(e.reactionScheduler)}function Ls(e,t,n,r){var i=wc(t);return gt(function(){var o=Rt(e,r)[O];zt(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function Bf(e,t){return Vs($r(e,t))}function Vs(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Gf(e.observing_).map(Vs)),t}function Gf(e){return Array.from(new Set(e))}var Hf=0;function Fs(){this.message="FLOW_CANCELLED"}Fs.prototype=Object.create(Error.prototype);var $i=fs("flow"),zf=fs("flow.bound",{bound:!0}),Jt=Object.assign(function(t,n){if(Cn(n))return $i.decorate_20223_(t,n);if(Ot(n))return Sn(t,n,$i);var r=t,i=r.name||"<unnamed flow>",o=function(){var a=this,u=arguments,l=++Hf,f=It(i+" - runid: "+l+" - init",r).apply(a,u),c,d=void 0,h=new Promise(function(_,g){var v=0;c=g;function m(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.next).call(f,N)}catch(ye){return g(ye)}x(ee)}function w(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.throw).call(f,N)}catch(ye){return g(ye)}x(ee)}function x(N){if(Ae(N?.then)){N.then(x,g);return}return N.done?_(N.value):(d=Promise.resolve(N.value),d.then(m,w))}m(void 0)});return h.cancel=It(i+" - runid: "+l+" - cancel",function(){try{d&&Us(d);var _=f.return(void 0),g=Promise.resolve(_.value);g.then(Gt,Gt),Us(g),c(new Fs)}catch(v){c(v)}}),h};return o.isMobXFlow=!0,o},$i);Jt.bound=Ge(zf);function Us(e){Ae(e.cancel)&&e.cancel()}function kn(e){return e?.isMobXFlow===!0}function Wf(e,t){return e?Ir(e)||!!e[O]||Si(e)||Ar(e)||br(e):!1}function Bs(e){return Wf(e)}function rt(e,t){t===void 0&&(t=void 0),be();try{return e.apply(t)}finally{we()}}function Zt(e){return e[O]}var qf={has:function(t,n){return Zt(t).has_(n)},get:function(t,n){return Zt(t).get_(n)},set:function(t,n,r){var i;return Ot(n)?(i=Zt(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Ot(n)?(r=Zt(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=Zt(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return Zt(t).ownKeys_()},preventExtensions:function(t){M(13)}};function Kf(e,t){var n,r;return ts(),e=Rt(e,t),(r=(n=e[O]).proxy_)!=null?r:n.proxy_=new Proxy(e,qf)}function Se(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Mn(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),ns(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Ce(e,t){var n=Mt();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&M(14),!!t);i++);return t}finally{nt(n)}}function Te(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function In(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),ns(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function ke(e,t){var n=Mt(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);nt(n)}}function Gs(e,t,n){return gt(function(){var r,i=Rt(e,n)[O];(r=t)!=null||(t=Ac(e)),zt(t).forEach(function(o){return i.make_(o,t[o])})}),e}var Ri=Symbol("mobx-keys");function Jf(e,t,n){return Qe(e)?Ls(e,e,t,n):(gt(function(){var r=Rt(e,n)[O];if(!e[Ri]){var i=Object.getPrototypeOf(e),o=new Set([].concat(zt(e),zt(i)));o.delete("constructor"),o.delete(O),wn(i,Ri,o)}e[Ri].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Hs="splice",ze="update",Zf=1e4,Yf={get:function(t,n){var r=t[O];return n===O?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):tt(Tr,n)?Tr[n]:t[n]},set:function(t,n,r){var i=t[O];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){M(15)}},Pi=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new _t(n),this.enhancer_=function(s,a){return r(s,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return Mn(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),In(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&M("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&M(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&ra(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),o===void 0&&(o=yi),Se(this)){var u=Ce(this,{object:this.proxy_,type:Hs,index:r,removedCount:i,added:o});if(!u)return yi;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(c){return s.enhancer_(c,void 0)}),this.legacyMode_){var l=o.length-i;this.updateArrayLength_(a,l)}var f=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<Zf){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var l=0;l<o.length;l++)this.values_[r+l]=o[l];for(var f=0;f<u.length;f++)this.values_[r+o.length+f]=u[f];return a}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&An(),a=Te(this),u=a||s?{observableKind:"array",object:this.proxy_,type:ze,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&An(),a=Te(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Hs,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&M(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(Se(this)){var a=Ce(this,{type:ze,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var l=new Array(r+1-o.length),f=0;f<l.length-1;f++)l[f]=void 0;l[l.length-1]=i,this.spliceWithArray_(o.length,0,l)}},e}();function Xf(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),ts(),gt(function(){var i=new Pi(n,t,r,!1);is(i.values_,O,i);var o=new Proxy(i.values_,Yf);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Tr={clear:function(){return this.splice(0)},replace:function(t){var n=this[O];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[O];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[O].spliceWithArray_(t,n,r)},push:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[O].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return y.trackingDerivation&&M(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){y.trackingDerivation&&M(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[O],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};V("at",le),V("concat",le),V("flat",le),V("includes",le),V("indexOf",le),V("join",le),V("lastIndexOf",le),V("slice",le),V("toString",le),V("toLocaleString",le),V("toSorted",le),V("toSpliced",le),V("with",le),V("every",Me),V("filter",Me),V("find",Me),V("findIndex",Me),V("findLast",Me),V("findLastIndex",Me),V("flatMap",Me),V("forEach",Me),V("map",Me),V("some",Me),V("toReversed",Me),V("reduce",zs),V("reduceRight",zs);function V(e,t){typeof Array.prototype[e]=="function"&&(Tr[e]=t(e))}function le(e){return function(){var t=this[O];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Me(e){return function(t,n){var r=this,i=this[O];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(n,s,a,r)})}}function zs(e){return function(){var t=this,n=this[O];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},r[e].apply(r,arguments)}}var Qf=Et("ObservableArrayAdministration",Pi);function kr(e){return fr(e)&&Qf(e[O])}var ed={},pt="add",Mr="delete",Ws=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[O]=ed,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,Ae(Map)||M(18),gt(function(){o.keysAtom_=ls("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!y.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new kt(this.has_(r),dr,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Ns(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(Se(this)){var s=Ce(this,{type:o?ze:pt,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,Se(this)){var o=Ce(this,{type:Mr,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=An(),a=Te(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:Mr,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return rt(function(){var l;i.keysAtom_.reportChanged(),(l=i.hasMap_.get(r))==null||l.setNewValue_(!1);var f=i.data_.get(r);f.setNewValue_(void 0),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var s=An(),a=Te(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:ze,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,u)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,rt(function(){var l,f=new kt(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,f),i=f.value_,(l=o.hasMap_.get(r))==null||l.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=An(),a=Te(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:pt,object:this,name:r,newValue:i}:null;a&&ke(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return qs({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return qs({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value,u=a[0],l=a[1];r.call(i,l,u,this)}},t.merge=function(r){var i=this;return $t(r)&&(r=new Map(r)),rt(function(){Qe(r)?bc(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Ht(r)?(yc(r)||M(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&M(20,r)}),this},t.clear=function(){var r=this;rt(function(){Cs(function(){for(var i=qt(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return rt(function(){for(var o=td(r),s=new Map,a=!1,u=qt(i.data_.keys()),l;!(l=u()).done;){var f=l.value;if(!o.has(f)){var c=i.delete(f);if(c)a=!0;else{var d=i.data_.get(f);s.set(f,d)}}}for(var h=qt(o.entries()),_;!(_=h()).done;){var g=_.value,v=g[0],m=g[1],w=i.data_.has(v);if(i.set(v,m),i.data_.has(v)){var x=i.data_.get(v);s.set(v,x),w||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var N=i.data_.keys(),ee=s.keys(),ye=N.next(),sr=ee.next();!ye.done;){if(ye.value!==sr.value){i.keysAtom_.reportChanged();break}ye=N.next(),sr=ee.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return In(this,r)},t.intercept_=function(r){return Mn(this,r)},Wt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),$t=Et("ObservableMap",Ws);function qs(e){return e[Symbol.toStringTag]="MapIterator",Vi(e)}function td(e){if(Ht(e)||$t(e))return e;if(Array.isArray(e))return new Map(e);if(Qe(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return M(21,e)}var nd={},Ks=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[O]=nd,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Ae(Set)||M(22),this.enhancer_=function(s,a){return r(s,a,i)},gt(function(){o.atom_=ls(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;rt(function(){Cs(function(){for(var i=qt(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(this.atom_,Se(this)){var o=Ce(this,{type:pt,object:this,newValue:r});if(!o)return this;r=o.newValue}if(!this.has(r)){rt(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,a=Te(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:pt,object:this,newValue:r}:null;a&&ke(this,u)}return this},t.delete=function(r){var i=this;if(Se(this)){var o=Ce(this,{type:Mr,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,a=Te(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:Mr,object:this,oldValue:r}:null;return rt(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return Js({next:function(){var o=r.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return Js({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(et(r)&&!We(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(et(r)&&!We(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(et(r)&&!We(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(et(r)&&!We(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return We(r)&&(r=new Set(r)),rt(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):et(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&M("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return In(this,r)},t.intercept_=function(r){return Mn(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Wt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),We=Et("ObservableSet",Ks);function Js(e){return e[Symbol.toStringTag]="SetIterator",Vi(e)}var Zs=Object.create(null),Ys="remove",Xs=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Zc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new _t("ObservableObject.keys"),this.isPlainObject_=Qe(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof xe)return o.set(i),!0;if(Se(this)){var s=Ce(this,{type:ze,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var a=Te(this),u=!1,l=a||u?{type:ze,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,l)}return!0},t.get_=function(r){return y.trackingDerivation&&!tt(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),tt(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!y.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new kt(r in this.target_,dr,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Be])!=null&&o[r])return;M(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==cr;){var a=lr(s,r);if(a){var u=i.make_(this,r,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}ea(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var a=o.extend_(this,r,i,s);return a&&ea(this,o,r),a},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{be();var s=this.delete_(r);if(!s)return s;if(Se(this)){var a=Ce(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=At({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Ue(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{we()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{be();var a=this.delete_(r);if(!a)return a;if(Se(this)){var u=Ce(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i});if(!u)return null;i=u.newValue}var l=Qs(r),f={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else Ue(this.target_,r,f);var c=new kt(i,o,"ObservableObject.key",!1);this.values_.set(r,c),this.notifyPropertyAddition_(r,c.value_)}finally{we()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{be();var s=this.delete_(r);if(!s)return s;if(Se(this)){var a=Ce(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:void 0});if(!a)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var u=Qs(r),l={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,r,l))return!1}else Ue(this.target_,r,l);this.values_.set(r,new xe(i)),this.notifyPropertyAddition_(r,void 0)}finally{we()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!tt(this.target_,r))return!0;if(Se(this)){var o=Ce(this,{object:this.proxy_||this.target_,name:r,type:Ys});if(!o)return null}try{var s;be();var a=Te(this),u=!1,l=this.values_.get(r),f=void 0;if(!l&&(a||u)){var c;f=(c=lr(this.target_,r))==null?void 0:c.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(l&&(this.values_.delete(r),l instanceof kt&&(f=l.value_),ks(l)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),a||u){var d={type:Ys,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:r};a&&ke(this,d)}}finally{we()}return!0},t.observe_=function(r,i){return In(this,r)},t.intercept_=function(r){return Mn(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Te(this),a=!1;if(s||a){var u=s||a?{type:pt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&ke(this,u)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),zt(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Rt(e,t){var n;if(tt(e,O))return e;var r=(n=t?.name)!=null?n:"ObservableObject",i=new Xs(e,new Map,String(r),uf(t));return wn(e,O,i),e}var rd=Et("ObservableObjectAdministration",Xs);function Qs(e){return Zs[e]||(Zs[e]={get:function(){return this[O].getObservablePropValue_(e)},set:function(n){return this[O].setObservablePropValue_(e,n)}})}function Ir(e){return fr(e)?rd(e[O]):!1}function ea(e,t,n){var r;(r=e.target_[Be])==null||delete r[n]}var id=na(0),od=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Di=0,ta=function(){};function sd(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}sd(ta,Array.prototype);var Ni=function(e){function t(r,i,o,s){var a;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,gt(function(){var u=new Pi(o,i,s,!0);u.proxy_=a,is(a,O,u),r&&r.length&&a.spliceWithArray(0,0,r),od&&Object.defineProperty(a,"0",id)}),a}us(t,e);var n=t.prototype;return n.concat=function(){this[O].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return kr(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return Vi({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},Wt(t,[{key:"length",get:function(){return this[O].getArrayLength_()},set:function(i){this[O].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ta);Object.entries(Tr).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&wn(Ni.prototype,t,n)});function na(e){return{enumerable:!1,configurable:!0,get:function(){return this[O].get_(e)},set:function(n){this[O].set_(e,n)}}}function ad(e){Ue(Ni.prototype,""+e,na(e))}function ra(e){if(e>Di){for(var t=Di;t<e+100;t++)ad(t);Di=e}}ra(1e3);function ud(e,t,n){return new Ni(e,t,n)}function $r(e,t){if(typeof e=="object"&&e!==null){if(kr(e))return t!==void 0&&M(23),e[O].atom_;if(We(e))return e.atom_;if($t(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||M(25,t,ji(e)),n}if(Ir(e)){if(!t)return M(26);var r=e[O].values_.get(t);return r||M(27,t,ji(e)),r}if(Si(e)||br(e)||Ar(e))return e}else if(Ae(e)&&Ar(e[O]))return e[O];M(28)}function ld(e,t){if(e||M(29),Si(e)||br(e)||Ar(e)||$t(e)||We(e))return e;if(e[O])return e[O];M(24,e)}function ji(e,t){var n;if(t!==void 0)n=$r(e,t);else{if(Tn(e))return e.name;Ir(e)||$t(e)||We(e)?n=ld(e):n=$r(e)}return n.name_}function gt(e){var t=Mt(),n=mr(!0);be();try{return e()}finally{we(),yr(n),nt(t)}}var ia=cr.toString;function oa(e,t,n){return n===void 0&&(n=-1),Li(e,t,n)}function Li(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=ia.call(e);if(s!==ia.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=sa(e),t=sa(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(Ae(u)&&u instanceof u&&Ae(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var f=r.length;f--;)if(r[f]===e)return i[f]===t;if(r.push(e),i.push(t),a){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!Li(e[f],t[f],n-1,r,i))return!1}else{var c=Object.keys(e),d=c.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var _=c[h];if(!(tt(t,_)&&Li(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function sa(e){return kr(e)?e.slice():Ht(e)||$t(e)||et(e)||We(e)?Array.from(e.entries()):e}var aa,cd=((aa=ur().Iterator)==null?void 0:aa.prototype)||{};function Vi(e){return e[Symbol.iterator]=fd,Object.assign(Object.create(cd),e)}function fd(){return this}["Symbol","Map","Set"].forEach(function(e){var t=ur();typeof t[e]>"u"&&M("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Af,extras:{getDebugName:ji},$mobx:O});var $n,k,ua,Pt,la,ca,fa,da,Fi,Ui,Bi,ha,Rn={},_a=[],dd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pn=Array.isArray;function qe(e,t){for(var n in t)e[n]=t[n];return e}function Gi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?$n.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Dn(e,s,r,i,null)}function Dn(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ua,__i:-1,__u:0};return i==null&&k.vnode!=null&&k.vnode(o),o}function pa(){return{current:null}}function Ie(e){return e.children}function $e(e,t){this.props=e,this.context=t}function Yt(e,t){if(t==null)return e.__?Yt(e.__,e.__i+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"?Yt(e):null}function ga(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 ga(e)}}function Hi(e){(!e.__d&&(e.__d=!0)&&Pt.push(e)&&!Rr.__r++||la!=k.debounceRendering)&&((la=k.debounceRendering)||ca)(Rr)}function Rr(){for(var e,t,n,r,i,o,s,a=1;Pt.length;)Pt.length>a&&Pt.sort(fa),e=Pt.shift(),a=Pt.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((n=qe({},r)).__v=r.__v+1,k.vnode&&k.vnode(n),zi(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Yt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,wa(o,n,s),n.__e!=i&&ga(n)));Rr.__r=0}function va(e,t,n,r,i,o,s,a,u,l,f){var c,d,h,_,g,v,m=r&&r.__k||_a,w=t.length;for(u=hd(n,t,m,u,w),c=0;c<w;c++)(h=n.__k[c])!=null&&(d=h.__i==-1?Rn:m[h.__i]||Rn,h.__i=c,v=zi(e,h,d,i,o,s,a,u,l,f),_=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&qi(d.ref,null,h),f.push(h.ref,h.__c||_,h)),g==null&&_!=null&&(g=_),4&h.__u||d.__k===h.__k?u=ma(h,u,e):typeof h.type=="function"&&v!==void 0?u=v:_&&(u=_.nextSibling),h.__u&=-7);return n.__e=g,u}function hd(e,t,n,r,i){var o,s,a,u,l,f=n.length,c=f,d=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(u=o+d,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Dn(null,s,null,null,null):Pn(s)?Dn(Ie,{children:s},null,null,null):s.constructor==null&&s.__b>0?Dn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=_d(s,n,u,c))!=-1&&(c--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(i>f?d--:i<f&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=u&&(l==u-1?d--:l==u+1?d++:(l>u?d--:d++,s.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<f;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Yt(a)),Ca(a,a));return r}function ma(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ma(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Yt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function it(e,t){return t=t||[],e==null||typeof e=="boolean"||(Pn(e)?e.some(function(n){it(n,t)}):t.push(e)),t}function _d(e,t,n,r){var i,o,s,a=e.key,u=e.type,l=t[n],f=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||f&&a==l.key&&u==l.type)return n;if(r>(f?1:0)){for(i=n-1,o=n+1;i>=0||o<t.length;)if((l=t[s=i>=0?i--:o++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return s}return-1}function ya(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||dd.test(t)?n:n+"px"}function Pr(e,t,n,r,i){var o,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||ya(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||ya(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(da,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Fi,e.addEventListener(t,o?Bi:Ui,o)):e.removeEventListener(t,o?Bi:Ui,o);else{if(i=="http://www.w3.org/2000/svg")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!="role"&&t!="popover"&&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,t=="popover"&&n==1?"":n))}}function ba(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Fi++;else if(t.t<n.u)return;return n(k.event?k.event(t):t)}}}function zi(e,t,n,r,i,o,s,a,u,l){var f,c,d,h,_,g,v,m,w,x,N,ee,ye,sr,mi,ar,Qo,Xe=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=k.__b)&&f(t);e:if(typeof Xe=="function")try{if(m=t.props,w="prototype"in Xe&&Xe.prototype.render,x=(f=Xe.contextType)&&r[f.__c],N=f?x?x.props.value:f.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new Xe(m,N):(t.__c=c=new $e(m,N),c.constructor=Xe,c.render=gd),x&&x.sub(c),c.props=m,c.state||(c.state={}),c.context=N,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&Xe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=qe({},c.__s)),qe(c.__s,Xe.getDerivedStateFromProps(m,c.__s))),h=c.props,_=c.state,c.__v=t,d)w&&Xe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&Xe.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,N),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,N)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(bn){bn&&(bn.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,N),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,_,g)})}if(c.context=N,c.props=m,c.__P=e,c.__e=!1,ye=k.__r,sr=0,w){for(c.state=c.__s,c.__d=!1,ye&&ye(t),f=c.render(c.props,c.state,c.context),mi=0;mi<c._sb.length;mi++)c.__h.push(c._sb[mi]);c._sb=[]}else do c.__d=!1,ye&&ye(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++sr<25);c.state=c.__s,c.getChildContext!=null&&(r=qe(qe({},r),c.getChildContext())),w&&!d&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,_)),ar=f,f!=null&&f.type===Ie&&f.key==null&&(ar=Sa(f.props.children)),a=va(e,Pn(ar)?ar:[ar],t,n,r,i,o,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),v&&(c.__E=c.__=null)}catch(bn){if(t.__v=null,u||o!=null)if(bn.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(Qo=o.length;Qo--;)Gi(o[Qo]);Wi(t)}else t.__e=n.__e,t.__k=n.__k,bn.then||Wi(t);k.__e(bn,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=pd(n.__e,t,n,r,i,o,s,u,l);return(f=k.diffed)&&f(t),128&t.__u?void 0:a}function Wi(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(Wi)}function wa(e,t,n){for(var r=0;r<n.length;r++)qi(n[r],n[++r],n[++r]);k.__c&&k.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){k.__e(o,i.__v)}})}function Sa(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Pn(e)?e.map(Sa):qe({},e)}function pd(e,t,n,r,i,o,s,a,u){var l,f,c,d,h,_,g,v=n.props,m=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(m);e=document.createElementNS(i,w,m.is&&m),a&&(k.__m&&k.__m(t,o),a=!1),o=null}if(w==null)v===m||a&&e.data==m||(e.data=m);else{if(o=o&&$n.call(e.childNodes),v=n.props||Rn,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)if(h=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=h;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Pr(e,l,null,h,i)}}for(l in m)h=m[l],l=="children"?d=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?_=h:l=="checked"?g=h:a&&typeof h!="function"||v[l]===h||Pr(e,l,h,v[l],i);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),va(t.type=="template"?e.content:e,Pn(d)?d:[d],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Yt(n,0),a,u),o!=null)for(l=o.length;l--;)Gi(o[l]);a||(l="value",w=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[l]||w=="progress"&&!_||w=="option"&&_!=v[l])&&Pr(e,l,_,v[l],i),l="checked",g!=null&&g!=e[l]&&Pr(e,l,g,v[l],i))}return e}function qi(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){k.__e(i,n)}}function Ca(e,t,n){var r,i;if(k.unmount&&k.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||qi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){k.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ca(r[i],t,n||typeof e.type!="function");n||Gi(e.__e),e.__c=e.__=e.__e=void 0}function gd(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),k.__&&k.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],zi(t,e=(!r&&n||t).__k=E(Ie,null,[e]),i||Rn,Rn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?$n.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),wa(o,e,s)}function Ki(e,t){vt(e,t,Ki)}function Ji(e,t,n){var r,i,o,s,a=qe({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?$n.call(arguments,2):n),Dn(e.type,a,r||e.key,i||e.ref,null)}function Oa(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(s){s.__e=!0,Hi(s)})},this.sub=function(o){r.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),s&&s.call(o)}}),n.children}return t.__c="__cC"+ha++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}$n=_a.slice,k={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},ua=0,$e.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=qe({},this.state),typeof e=="function"&&(e=e(qe({},n),this.props)),e&&qe(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Hi(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Hi(this))},$e.prototype.render=Ie,Pt=[],ca=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,fa=function(e,t){return e.__v.__b-t.__v.__b},Rr.__r=0,da=/(PointerCapture)$|Capture$/i,Fi=0,Ui=ba(!1),Bi=ba(!0),ha=0;var ot,j,Zi,Ea,Xt=0,Aa=[],H=k,xa=H.__b,Ta=H.__r,ka=H.diffed,Ma=H.__c,Ia=H.unmount,$a=H.__;function Dt(e,t){H.__h&&H.__h(j,e,Xt||t),Xt=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qt(e){return Xt=1,Dr(Pa,e)}function Dr(e,t,n){var r=Dt(ot++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Pa(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.__f)){var i=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,a,u,l);var c=r.__c.props!==a;return f.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(c=!0)}}),o&&o.call(this,a,u,l)||c};j.__f=!0;var o=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=o;o=void 0,i(a,u,l),o=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=i}return r.__N||r.__}function Nr(e,t){var n=Dt(ot++,3);!H.__s&&io(n.__H,t)&&(n.__=e,n.u=t,j.__H.__h.push(n))}function en(e,t){var n=Dt(ot++,4);!H.__s&&io(n.__H,t)&&(n.__=e,n.u=t,j.__h.push(n))}function Yi(e){return Xt=5,Nn(function(){return{current:e}},[])}function Xi(e,t,n){Xt=6,en(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Nn(e,t){var n=Dt(ot++,7);return io(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Qi(e,t){return Xt=8,Nn(function(){return e},t)}function eo(e){var t=j.context[e.__c],n=Dt(ot++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function to(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function vd(e){var t=Dt(ot++,10),n=Qt();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function no(){var e=Dt(ot++,11);if(!e.__){for(var t=j.__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 md(){for(var e;e=Aa.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jr),e.__H.__h.forEach(ro),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){j=null,xa&&xa(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$a&&$a(e,t)},H.__r=function(e){Ta&&Ta(e),ot=0;var t=(j=e.__c).__H;t&&(Zi===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(jr),t.__h.forEach(ro),t.__h=[],ot=0)),Zi=j},H.diffed=function(e){ka&&ka(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Aa.push(t)!==1&&Ea===H.requestAnimationFrame||((Ea=H.requestAnimationFrame)||yd)(md)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Zi=j=null},H.__c=function(e,t){t.some(function(n){try{n.__h.forEach(jr),n.__h=n.__h.filter(function(r){return!r.__||ro(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],H.__e(r,n.__v)}}),Ma&&Ma(e,t)},H.unmount=function(e){Ia&&Ia(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{jr(r)}catch(i){t=i}}),n.__H=void 0,t&&H.__e(t,n.__v))};var Ra=typeof requestAnimationFrame=="function";function yd(e){var t,n=function(){clearTimeout(r),Ra&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Ra&&(t=requestAnimationFrame(n))}function jr(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function ro(e){var t=j;e.__c=e.__(),j=t}function io(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Pa(e,t){return typeof t=="function"?t(e):t}function Da(e,t){for(var n in t)e[n]=t[n];return e}function oo(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 so(e,t){var n=t(),r=Qt({t:{__:n,u:t}}),i=r[0].t,o=r[1];return en(function(){i.__=n,i.u=t,ao(i)&&o({t:i})},[e,n,t]),Nr(function(){return ao(i)&&o({t:i}),e(function(){ao(i)&&o({t:i})})},[e]),n}function ao(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function uo(e){e()}function lo(e){return e}function co(){return[!1,uo]}var fo=en;function Lr(e,t){this.props=e,this.context=t}function jn(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:oo(this.props,i)}function r(i){return this.shouldComponentUpdate=n,E(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Lr.prototype=new $e).isPureReactComponent=!0,Lr.prototype.shouldComponentUpdate=function(e,t){return oo(this.props,e)||oo(this.state,t)};var Na=k.__b;k.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Na&&Na(e)};var bd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Ln(e){function t(n){var r=Da({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=bd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ja=function(e,t){return e==null?null:it(it(e).map(t))},La={map:ja,forEach:ja,count:function(e){return e?it(e).length:0},only:function(e){var t=it(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:it},wd=k.__e;k.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}wd(e,t,n,r)};var Va=k.unmount;function Fa(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=Da({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Fa(r,t,n)})),e}function Ua(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ua(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Vn(){this.__u=0,this.o=null,this.__b=null}function Ba(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ga(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return E(n,o)}return i.displayName="Lazy",i.__f=!0,i}function tn(){this.i=null,this.l=null}k.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Va&&Va(e)},(Vn.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Ba(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Ua(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Vn.prototype.componentWillUnmount=function(){this.o=[]},Vn.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]=Fa(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&E(Ie,null,e.fallback);return i&&(i.__u&=-33),[E(Ie,null,t.__a?null:e.children),i]};var Ha=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Sd(e){return this.getChildContext=function(){return e.context},e.children}function Cd(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){vt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}vt(E(Sd,{context:t.context},e.__v),t.v)}function za(e,t){var n=E(Cd,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new $e).__a=function(e){var t=this,n=Ba(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ha(t,e,r)):i()};n?n(o):o()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=it(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ha(e,n,t)})};var Wa=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Od=/^(?: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]/,Ed=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ad=/[A-Z0-9]/g,xd=typeof document<"u",Td=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function qa(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ka(e,t,n){return Ki(e,t),typeof n=="function"&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ja=k.event;function kd(){}function Md(){return this.cancelBubble}function Id(){return this.defaultPrevented}k.event=function(e){return Ja&&(e=Ja(e)),e.persist=kd,e.isPropagationStopped=Md,e.isDefaultPrevented=Id,e.nativeEvent=e};var ho,$d={enumerable:!1,configurable:!0,get:function(){return this.class}},Za=k.vnode;k.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||xd&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Td(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Ed.test(s)&&(s=u):u=s="oninput":o&&Od.test(s)?s=s.replace(Ad,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[s=u]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=it(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=it(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",$d)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Wa,Za&&Za(e)};var Ya=k.__r;k.__r=function(e){Ya&&Ya(e),ho=e.__c};var Xa=k.diffed;k.diffed=function(e){Xa&&Xa(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),ho=null};var Qa={ReactCurrentDispatcher:{current:{readContext:function(e){return ho.__n[e.__c].props.value},useCallback:Qi,useContext:eo,useDebugValue:to,useDeferredValue:lo,useEffect:Nr,useId:no,useImperativeHandle:Xi,useInsertionEffect:fo,useLayoutEffect:en,useMemo:Nn,useReducer:Dr,useRef:Yi,useState:Qt,useSyncExternalStore:so,useTransition:co}}},Rd="18.3.1";function eu(e){return E.bind(null,e)}function Fn(e){return!!e&&e.$$typeof===Wa}function tu(e){return Fn(e)&&e.type===Ie}function nu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ru(e){return Fn(e)?Ji.apply(null,arguments):e}function iu(e){return!!e.__k&&(vt(null,e),!0)}function ou(e){return e&&(e.base||e.nodeType===1&&e)||null}var _o=function(e,t){return e(t)},su=function(e,t){return e(t)},au=Ie,uu=Fn,Vr={useState:Qt,useId:no,useReducer:Dr,useEffect:Nr,useLayoutEffect:en,useInsertionEffect:fo,useTransition:co,useDeferredValue:lo,useSyncExternalStore:so,startTransition:uo,useRef:Yi,useImperativeHandle:Xi,useMemo:Nn,useCallback:Qi,useContext:eo,useDebugValue:to,version:"18.3.1",Children:La,render:qa,hydrate:Ka,unmountComponentAtNode:iu,createPortal:za,createElement:E,createContext:Oa,createFactory:eu,cloneElement:ru,createRef:pa,Fragment:Ie,isValidElement:Fn,isElement:uu,isFragment:tu,isMemo:nu,findDOMNode:ou,Component:$e,PureComponent:Lr,memo:jn,forwardRef:Ln,flushSync:su,unstable_batchedUpdates:_o,StrictMode:au,Suspense:Vn,SuspenseList:tn,lazy:Ga,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qa};const Pd=Object.freeze(Object.defineProperty({__proto__:null,Children:La,Component:$e,Fragment:Ie,PureComponent:Lr,StrictMode:au,Suspense:Vn,SuspenseList:tn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qa,cloneElement:ru,createContext:Oa,createElement:E,createFactory:eu,createPortal:za,createRef:pa,default:Vr,findDOMNode:ou,flushSync:su,forwardRef:Ln,hydrate:Ka,isElement:uu,isFragment:tu,isMemo:nu,isValidElement:Fn,lazy:Ga,memo:jn,render:qa,startTransition:uo,unmountComponentAtNode:iu,unstable_batchedUpdates:_o,useCallback:Qi,useContext:eo,useDebugValue:to,useDeferredValue:lo,useEffect:Nr,useErrorBoundary:vd,useId:no,useImperativeHandle:Xi,useInsertionEffect:fo,useLayoutEffect:en,useMemo:Nn,useReducer:Dr,useRef:Yi,useState:Qt,useSyncExternalStore:so,useTransition:co,version:Rd},Symbol.toStringTag,{value:"Module"}));if(!Qt)throw new Error("mobx-react-lite requires React with Hooks support");if(!Gs)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Dd(e){e()}function Nd(e){e||(e=Dd),Uf({reactionScheduler:e})}function jd(e){return Bf(e)}var Ld=1e4,Vd=1e4,Fd=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=Ld),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Vd))}}),e}(),Ud=typeof FinalizationRegistry<"u"?FinalizationRegistry:Fd,po=new Ud(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null});function Bd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var go={exports:{}},vo={};const Gd=Bd(Pd);/**
|
|
1
|
+
(function(){"use strict";function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var vc={};function ur(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:vc}var ns=Object.assign,lr=Object.getOwnPropertyDescriptor,Be=Object.defineProperty,cr=Object.prototype,mi=[];Object.freeze(mi);var yi={};Object.freeze(yi);var mc=typeof Proxy<"u",yc=Object.toString();function rs(){mc||k("Proxy not available")}function is(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var Gt=function(){};function xe(e){return typeof e=="function"}function Ot(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function fr(e){return e!==null&&typeof e=="object"}function et(e){if(!fr(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===yc}function os(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Cn(e,t,n){Be(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function ss(e,t,n){Be(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Et(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return fr(r)&&r[n]===!0}}function Ht(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function bc(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function tt(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var as=typeof Object.getOwnPropertySymbols<"u";function wc(e){var t=Object.keys(e);if(!as)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return cr.propertyIsEnumerable.call(e,r)})):t}var zt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:as?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function us(e){return e===null?null:typeof e=="object"?""+e:e}function nt(e,t){return cr.hasOwnProperty.call(e,t)}var Sc=Object.getOwnPropertyDescriptors||function(t){var n={};return zt(t).forEach(function(r){n[r]=lr(t,r)}),n};function ue(e,t){return!!(e&t)}function le(e,t,n){return n?e|=t:e&=~t,e}function ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ec(r.key),r)}}function Wt(e,t,n){return t&&Cc(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qt(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Ac(e))||t){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(null,arguments)}function cs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bi(e,t)}function bi(e,t){return bi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},bi(e,t)}function Oc(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ec(e){var t=Oc(e,"string");return typeof t=="symbol"?t:t+""}function Ac(e,t){if(e){if(typeof e=="string")return ls(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ls(e,t):void 0}}var Ge=Symbol("mobx-stored-annotations");function He(e){function t(n,r){if(En(r))return e.decorate_20223_(n,r);On(n,r,e)}return Object.assign(t,e)}function On(e,t,n){nt(e,Ge)||Cn(e,Ge,At({},e[Ge])),Rc(n)||(e[Ge][t]=n)}function xc(e){return nt(e,Ge)||Cn(e,Ge,At({},e[Ge])),e[Ge]}function En(e){return typeof e=="object"&&typeof e.kind=="string"}var O=Symbol("mobx administration"),_t=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=I.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.reportObserved=function(){return ks(this)},t.reportChanged=function(){we(),Is(this),Se()},t.toString=function(){return this.name_},Wt(e,[{key:"isBeingObserved",get:function(){return ue(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=le(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return ue(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=le(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return ue(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=le(this.flags_,e.diffValueMask_,r===1)}}])}();_t.isBeingObservedMask_=1,_t.isPendingUnobservationMask_=2,_t.diffValueMask_=4;var wi=Et("Atom",_t);function fs(e,t,n){t===void 0&&(t=Gt),n===void 0&&(n=Gt);var r=new _t(e);return t!==Gt&&Vf(r,t),n!==Gt&&Ls(r,n),r}function Tc(e,t){return aa(e,t)}function Mc(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Kt={structural:Tc,default:Mc};function xt(e,t,n){return Hs(e)?e:Array.isArray(e)?Q.array(e,{name:n}):et(e)?Q.object(e,void 0,{name:n}):Ht(e)?Q.map(e,{name:n}):tt(e)?Q.set(e,{name:n}):typeof e=="function"&&!kn(e)&&!In(e)?os(e)?Jt(e):Mn(n,e):e}function kc(e,t,n){if(e==null||Ir(e)||Mr(e)||$t(e)||qe(e))return e;if(Array.isArray(e))return Q.array(e,{name:n,deep:!1});if(et(e))return Q.object(e,void 0,{name:n,deep:!1});if(Ht(e))return Q.map(e,{name:n,deep:!1});if(tt(e))return Q.set(e,{name:n,deep:!1})}function dr(e){return e}function Ic(e,t){return aa(e,t)?t:e}var $c="override";function Rc(e){return e.annotationType_===$c}function An(e,t){return{annotationType_:e,options_:t,make_:Pc,extend_:Dc,decorate_20223_:Nc}}function Pc(e,t,n,r){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(kn(n.value))return 1;var o=ds(e,this,t,n,!1);return Be(r,t,o),2}function Dc(e,t,n,r){var i=ds(e,this,t,n);return e.defineProperty_(t,i,r)}function Nc(e,t){var n=t.kind,r=t.name,i=t.addInitializer,o=this,s=function(l){var f,c,d,h;return Tt((f=(c=o.options_)==null?void 0:c.name)!=null?f:r.toString(),l,(d=(h=o.options_)==null?void 0:h.autoAction)!=null?d:!1)};if(n=="field")return function(u){var l,f=u;return kn(f)||(f=s(f)),(l=o.options_)!=null&&l.bound&&(f=f.bind(this),f.isMobxAction=!0),f};if(n=="method"){var a;return kn(e)||(e=s(e)),(a=this.options_)!=null&&a.bound&&i(function(){var u=this,l=u[r].bind(u);l.isMobxAction=!0,u[r]=l}),e}k("Cannot apply '"+o.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(`
|
|
3
|
+
'`+o.annotationType_+"' can only be used on properties with a function value."))}function jc(e,t,n,r){t.annotationType_,r.value}function ds(e,t,n,r,i){var o,s,a,u,l,f,c;i===void 0&&(i=y.safeDescriptors),jc(e,t,n,r);var d=r.value;if((o=t.options_)!=null&&o.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Tt((s=(a=t.options_)==null?void 0:a.name)!=null?s:n.toString(),d,(u=(l=t.options_)==null?void 0:l.autoAction)!=null?u:!1,(f=t.options_)!=null&&f.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function hs(e,t){return{annotationType_:e,options_:t,make_:Lc,extend_:Vc,decorate_20223_:Fc}}function Lc(e,t,n,r){var i;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!nt(e.target_,t)||!In(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(In(n.value))return 1;var o=_s(e,this,t,n,!1,!1);return Be(r,t,o),2}function Vc(e,t,n,r){var i,o=_s(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,o,r)}function Fc(e,t){var n,r=t.name,i=t.addInitializer;return In(e)||(e=Jt(e)),(n=this.options_)!=null&&n.bound&&i(function(){var o=this,s=o[r].bind(o);s.isMobXFlow=!0,o[r]=s}),e}function Uc(e,t,n,r){t.annotationType_,r.value}function _s(e,t,n,r,i,o){o===void 0&&(o=y.safeDescriptors),Uc(e,t,n,r);var s=r.value;if(In(s)||(s=Jt(s)),i){var a;s=s.bind((a=e.proxy_)!=null?a:e.target_),s.isMobXFlow=!0}return{value:s,configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function Si(e,t){return{annotationType_:e,options_:t,make_:Bc,extend_:Gc,decorate_20223_:Hc}}function Bc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function Gc(e,t,n,r){return zc(e,this,t,n),e.defineComputedProperty_(t,At({},this.options_,{get:n.get,set:n.set}),r)}function Hc(e,t){var n=this,r=t.name,i=t.addInitializer;return i(function(){var o=Rt(this)[O],s=At({},n.options_,{get:e,context:this});s.name||(s.name="ObservableObject."+r.toString()),o.values_.set(r,new Te(s))}),function(){return this[O].getObservablePropValue_(r)}}function zc(e,t,n,r){t.annotationType_,r.get}function hr(e,t){return{annotationType_:e,options_:t,make_:Wc,extend_:qc,decorate_20223_:Kc}}function Wc(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function qc(e,t,n,r){var i,o;return Jc(e,this),e.defineObservableProperty_(t,n.value,(i=(o=this.options_)==null?void 0:o.enhancer)!=null?i:xt,r)}function Kc(e,t){var n=this,r=t.kind,i=t.name,o=new WeakSet;function s(a,u){var l,f,c=Rt(a)[O],d=new Mt(u,(l=(f=n.options_)==null?void 0:f.enhancer)!=null?l:xt,"ObservableObject."+i.toString(),!1);c.values_.set(i,d),o.add(a)}if(r=="accessor")return{get:function(){return o.has(this)||s(this,e.get.call(this)),this[O].getObservablePropValue_(i)},set:function(u){return o.has(this)||s(this,u),this[O].setObservablePropValue_(i,u)},init:function(u){return o.has(this)||s(this,u),u}}}function Jc(e,t,n,r){t.annotationType_}var Zc="true",Yc=ps();function ps(e){return{annotationType_:Zc,options_:e,make_:Xc,extend_:Qc,decorate_20223_:ef}}function Xc(e,t,n,r){var i,o;if(n.get)return gr.make_(e,t,n,r);if(n.set){var s=Tt(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:s})===null?0:2:(Be(r,t,{configurable:!0,set:s}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(os(n.value)){var u,l=(u=this.options_)!=null&&u.autoBind?Jt.bound:Jt;return l.make_(e,t,n,r)}var f=(a=this.options_)!=null&&a.autoBind?Mn.bound:Mn;return f.make_(e,t,n,r)}var c=((i=this.options_)==null?void 0:i.deep)===!1?Q.ref:Q;if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return c.make_(e,t,n,r)}function Qc(e,t,n,r){var i,o;if(n.get)return gr.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:y.safeDescriptors?e.isPlainObject_:!0,set:Tt(t.toString(),n.set)},r);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var s;n.value=n.value.bind((s=e.proxy_)!=null?s:e.target_)}var a=((o=this.options_)==null?void 0:o.deep)===!1?Q.ref:Q;return a.extend_(e,t,n,r)}function ef(e,t){k("'"+this.annotationType_+"' cannot be used as a decorator")}var tf="observable",nf="observable.ref",rf="observable.shallow",of="observable.struct",gs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(gs);function _r(e){return e||gs}var Ci=hr(tf),sf=hr(nf,{enhancer:dr}),af=hr(rf,{enhancer:kc}),uf=hr(of,{enhancer:Ic}),vs=He(Ci);function pr(e){return e.deep===!0?xt:e.deep===!1?dr:cf(e.defaultDecorator)}function lf(e){var t;return e?(t=e.defaultDecorator)!=null?t:ps(e):void 0}function cf(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:xt}function ms(e,t,n){if(En(t))return Ci.decorate_20223_(e,t);if(Ot(t)){On(e,t,Ci);return}return Hs(e)?e:et(e)?Q.object(e,t,n):Array.isArray(e)?Q.array(e,t):Ht(e)?Q.map(e,t):tt(e)?Q.set(e,t):typeof e=="object"&&e!==null?e:Q.box(e,t)}ns(ms,vs);var ff={box:function(t,n){var r=_r(n);return new Mt(t,pr(r),r.name,!0,r.equals)},array:function(t,n){var r=_r(n);return(y.useProxies===!1||r.proxy===!1?ld:Qf)(t,pr(r),r.name)},map:function(t,n){var r=_r(n);return new Ks(t,pr(r),r.name)},set:function(t,n){var r=_r(n);return new Zs(t,pr(r),r.name)},object:function(t,n,r){return gt(function(){return Fs(y.useProxies===!1||r?.proxy===!1?Rt({},r):Jf({},r),t,n)})},ref:He(sf),shallow:He(af),deep:vs,struct:He(uf)},Q=ns(ms,ff),ys="computed",df="computed.struct",Oi=Si(ys),hf=Si(df,{equals:Kt.structural}),gr=function(t,n){if(En(n))return Oi.decorate_20223_(t,n);if(Ot(n))return On(t,n,Oi);if(et(t))return He(Si(ys,t));var r=et(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new Te(r)};Object.assign(gr,Oi),gr.struct=He(hf);var bs,ws,vr=0,_f=1,pf=(bs=(ws=lr(function(){},"name"))==null?void 0:ws.configurable)!=null?bs:!1,Ss={value:"action",configurable:!0,writable:!1,enumerable:!1};function Tt(e,t,n,r){n===void 0&&(n=!1);function i(){return Cs(e,n,t,r||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},pf&&(Ss.value=e,Be(i,"name",Ss)),i}function Cs(e,t,n,r,i){var o=gf(e,t);try{return n.apply(r,i)}catch(s){throw o.error_=s,s}finally{vf(o)}}function gf(e,t,n,r){var i=!1,o=0,s=y.trackingDerivation,a=!t||!s;we();var u=y.allowStateChanges;a&&(kt(),u=mr(!0));var l=xi(!0),f={runAsAction_:a,prevDerivation_:s,prevAllowStateChanges_:u,prevAllowStateReads_:l,notifySpy_:i,startTime_:o,actionId_:_f++,parentActionId_:vr};return vr=f.actionId_,f}function vf(e){vr!==e.actionId_&&k(30),vr=e.parentActionId_,e.error_!==void 0&&(y.suppressReactionErrors=!0),yr(e.prevAllowStateChanges_),xn(e.prevAllowStateReads_),Se(),e.runAsAction_&&rt(e.prevDerivation_),y.suppressReactionErrors=!1}function mf(e,t){var n=mr(e);try{return t()}finally{yr(n)}}function mr(e){var t=y.allowStateChanges;return y.allowStateChanges=e,t}function yr(e){y.allowStateChanges=e}var Mt=function(e){function t(r,i,o,s,a){var u;return o===void 0&&(o="ObservableValue"),a===void 0&&(a=Kt.default),u=e.call(this,o)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=i,u.name_=o,u.equals=a,u.value_=i(r,void 0,o),u}cs(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==y.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Ce(this)){var o=Oe(this,{object:this,type:We,newValue:i});if(!o)return y.UNCHANGED;i=o.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?y.UNCHANGED:i},n.setNewValue_=function(i){var o=this.value_;this.value_=i,this.reportChanged(),Me(this)&&ke(this,{type:We,object:this,newValue:i,oldValue:o})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return $n(this,i)},n.observe_=function(i,o){return o&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:We,newValue:this.value_,oldValue:void 0}),Rn(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return us(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(_t),Te=function(){function e(n){this.dependenciesState_=I.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=I.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Sr(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=wr.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||k(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Tt("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Kt.structural:Kt.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Cf(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(r){return r()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(r){return r()})},t.get=function(){if(this.isComputing&&k(32,this.name_,this.derivation),y.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ei(this)&&(this.warnAboutUntrackedRead_(),we(),this.value_=this.computeValue_(!1),Se());else if(ks(this),Ei(this)){var r=y.trackingContext;this.keepAlive_&&!r&&(y.trackingContext=this),this.trackAndCompute()&&Sf(this),y.trackingContext=r}var i=this.value_;if(Cr(i))throw i.cause;return i},t.set=function(r){if(this.setter_){this.isRunningSetter&&k(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else k(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,i=this.dependenciesState_===I.NOT_TRACKING_,o=this.computeValue_(!0),s=i||Cr(r)||Cr(o)||!this.equals_(r,o);return s&&(this.value_=o),s},t.computeValue_=function(r){this.isComputing=!0;var i=mr(!1),o;if(r)o=Os(this,this.derivation,this.scope_);else if(y.disableErrorBoundaries===!0)o=this.derivation.call(this.scope_);else try{o=this.derivation.call(this.scope_)}catch(s){o=new Sr(s)}return yr(i),this.isComputing=!1,o},t.suspend_=function(){this.keepAlive_||(Ai(this),this.value_=void 0)},t.observe_=function(r,i){var o=this,s=!0,a=void 0;return Rf(function(){var u=o.get();if(!s||i){var l=kt();r({observableKind:"computed",debugObjectName:o.name_,type:We,object:o,newValue:u,oldValue:a}),rt(l)}s=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return us(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Wt(e,[{key:"isComputing",get:function(){return ue(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=le(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return ue(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=le(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return ue(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=le(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return ue(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=le(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return ue(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=le(this.flags_,e.diffValueMask_,r===1)}}])}();Te.isComputingMask_=1,Te.isRunningSetterMask_=2,Te.isBeingObservedMask_=4,Te.isPendingUnobservationMask_=8,Te.diffValueMask_=16;var br=Et("ComputedValue",Te),I;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(I||(I={}));var wr;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(wr||(wr={}));var Sr=function(t){this.cause=void 0,this.cause=t};function Cr(e){return e instanceof Sr}function Ei(e){switch(e.dependenciesState_){case I.UP_TO_DATE_:return!1;case I.NOT_TRACKING_:case I.STALE_:return!0;case I.POSSIBLY_STALE_:{for(var t=xi(!0),n=kt(),r=e.observing_,i=r.length,o=0;o<i;o++){var s=r[o];if(br(s)){if(y.disableErrorBoundaries)s.get();else try{s.get()}catch{return rt(n),xn(t),!0}if(e.dependenciesState_===I.STALE_)return rt(n),xn(t),!0}}return As(e),rt(n),xn(t),!1}}}function z0(e){}function Os(e,t,n){var r=xi(!0);As(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++y.runId;var i=y.trackingDerivation;y.trackingDerivation=e,y.inBatch++;var o;if(y.disableErrorBoundaries===!0)o=t.call(n);else try{o=t.call(n)}catch(s){o=new Sr(s)}return y.inBatch--,y.trackingDerivation=i,yf(e),xn(r),o}function yf(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=I.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,s=0;s<o;s++){var a=n[s];a.diffValue===0&&(a.diffValue=1,i!==s&&(n[i]=a),i++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];u.diffValue===0&&Ts(u,e),u.diffValue=0}for(;i--;){var l=n[i];l.diffValue===1&&(l.diffValue=0,wf(l,e))}r!==I.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Ai(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ts(t[n],e);e.dependenciesState_=I.NOT_TRACKING_}function Es(e){var t=kt();try{return e()}finally{rt(t)}}function kt(){var e=y.trackingDerivation;return y.trackingDerivation=null,e}function rt(e){y.trackingDerivation=e}function xi(e){var t=y.allowStateReads;return y.allowStateReads=e,t}function xn(e){y.allowStateReads=e}function As(e){if(e.dependenciesState_!==I.UP_TO_DATE_){e.dependenciesState_=I.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=I.UP_TO_DATE_}}var Or=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Er=!0,xs=!1,y=function(){var e=ur();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Er=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Or().version&&(Er=!1),Er?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Or):(setTimeout(function(){xs||k(35)},1),new Or)}();function bf(){if((y.pendingReactions.length||y.inBatch||y.isRunningReactions)&&k(36),xs=!0,Er){var e=ur();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),y=new Or}}function wf(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ts(e,t){e.observers_.delete(t),e.observers_.size===0&&Ms(e)}function Ms(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,y.pendingUnobservations.push(e))}function we(){y.inBatch++}function Se(){if(--y.inBatch===0){$s();for(var e=y.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof Te&&n.suspend_())}y.pendingUnobservations=[]}}function ks(e){var t=y.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&y.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&y.inBatch>0&&Ms(e),!1)}function Is(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=I.STALE_}))}function Sf(e){e.lowestObserverState_!==I.STALE_&&(e.lowestObserverState_=I.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.POSSIBLY_STALE_?t.dependenciesState_=I.STALE_:t.dependenciesState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.UP_TO_DATE_)}))}function Cf(e){e.lowestObserverState_===I.UP_TO_DATE_&&(e.lowestObserverState_=I.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===I.UP_TO_DATE_&&(t.dependenciesState_=I.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ze=function(){function e(n,r,i,o){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=I.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=wr.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=i,this.requiresObservable_=o}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,y.pendingReactions.push(this),$s())},t.runReaction_=function(){if(!this.isDisposed){we(),this.isScheduled=!1;var r=y.trackingContext;if(y.trackingContext=this,Ei(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}y.trackingContext=r,Se()}},t.track=function(r){if(!this.isDisposed){we(),this.isRunning=!0;var i=y.trackingContext;y.trackingContext=this;var o=Os(this,r,void 0);y.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Ai(this),Cr(o)&&this.reportExceptionInDerivation_(o.cause),Se()}},t.reportExceptionInDerivation_=function(r){var i=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(y.disableErrorBoundaries)throw r;var o="[mobx] uncaught error in '"+this+"'";y.suppressReactionErrors||console.error(o,r),y.globalReactionErrorHandlers.forEach(function(s){return s(r,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(we(),Ai(this),Se()))},t.getDisposer_=function(r){var i=this,o=function s(){i.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",s)};return r==null||r.addEventListener==null||r.addEventListener("abort",o),o[O]=this,o},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Wt(e,[{key:"isDisposed",get:function(){return ue(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=le(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return ue(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=le(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return ue(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=le(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return ue(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=le(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return ue(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=le(this.flags_,e.diffValueMask_,r===1)}}])}();ze.isDisposedMask_=1,ze.isScheduledMask_=2,ze.isTrackPendingMask_=4,ze.isRunningMask_=8,ze.diffValueMask_=16;var Of=100,Ti=function(t){return t()};function $s(){y.inBatch>0||y.isRunningReactions||Ti(Ef)}function Ef(){y.isRunningReactions=!0;for(var e=y.pendingReactions,t=0;e.length>0;){++t===Of&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}y.isRunningReactions=!1}var Ar=Et("Reaction",ze);function Af(e){var t=Ti;Ti=function(r){return e(function(){return t(r)})}}function Tn(){return!1}function W0(e){}function q0(e){}function K0(e){}function xf(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Rs="action",Tf="action.bound",Ps="autoAction",Mf="autoAction.bound",Ds="<unnamed action>",Mi=An(Rs),kf=An(Tf,{bound:!0}),ki=An(Ps,{autoAction:!0}),If=An(Mf,{autoAction:!0,bound:!0});function Ns(e){var t=function(r,i){if(xe(r))return Tt(r.name||Ds,r,e);if(xe(i))return Tt(r,i,e);if(En(i))return(e?ki:Mi).decorate_20223_(r,i);if(Ot(i))return On(r,i,e?ki:Mi);if(Ot(r))return He(An(e?Ps:Rs,{name:r,autoAction:e}))};return t}var It=Ns(!1);Object.assign(It,Mi);var Mn=Ns(!0);Object.assign(Mn,ki),It.bound=He(kf),Mn.bound=He(If);function $f(e){return Cs(e.name||Ds,!1,e,this,void 0)}function kn(e){return xe(e)&&e.isMobxAction===!0}function Rf(e,t){var n,r,i,o;t===void 0&&(t=yi);var s=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new ze(s,function(){this.track(c)},t.onError,t.requiresObservable);else{var l=js(t),f=!1;u=new ze(s,function(){f||(f=!0,l(function(){f=!1,u.isDisposed||u.track(c)}))},t.onError,t.requiresObservable)}function c(){e(u)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||u.schedule_(),u.getDisposer_((o=t)==null?void 0:o.signal)}var Pf=function(t){return t()};function js(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pf}function Df(e,t,n){var r,i,o;n===void 0&&(n=yi);var s=(r=n.name)!=null?r:"Reaction",a=It(s,n.onError?Nf(n.onError,t):t),u=!n.scheduler&&!n.delay,l=js(n),f=!0,c=!1,d,h=n.compareStructural?Kt.structural:n.equals||Kt.default,_=new ze(s,function(){f||u?g():c||(c=!0,l(g))},n.onError,n.requiresObservable);function g(){if(c=!1,!_.isDisposed){var v=!1,m=d;_.track(function(){var w=mf(!1,function(){return e(_)});v=f||!h(d,w),d=w}),(f&&n.fireImmediately||!f&&v)&&a(d,m,_),f=!1}}return(i=n)!=null&&(i=i.signal)!=null&&i.aborted||_.schedule_(),_.getDisposer_((o=n)==null?void 0:o.signal)}function Nf(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var jf="onBO",Lf="onBUO";function Vf(e,t,n){return Vs(jf,e,t,n)}function Ls(e,t,n){return Vs(Lf,e,t,n)}function Vs(e,t,n,r){var i=$r(t),o=xe(r)?r:n,s=e+"L";return i[s]?i[s].add(o):i[s]=new Set([o]),function(){var a=i[s];a&&(a.delete(o),a.size===0&&delete i[s])}}var Ff="never",xr="always",Uf="observed";function Bf(e){e.isolateGlobalState===!0&&bf();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(y.useProxies=t===xr?!0:t===Ff?!1:typeof Proxy<"u"),t==="ifavailable"&&(y.verifyProxies=!0),n!==void 0){var r=n===xr?xr:n===Uf;y.enforceActions=r,y.allowStateChanges=!(r===!0||r===xr)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(y[i]=!!e[i])}),y.allowStateReads=!y.observableRequiresReaction,e.reactionScheduler&&Af(e.reactionScheduler)}function Fs(e,t,n,r){var i=Sc(t);return gt(function(){var o=Rt(e,r)[O];zt(i).forEach(function(s){o.extend_(s,i[s],n&&s in n?n[s]:!0)})}),e}function Gf(e,t){return Us($r(e,t))}function Us(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=Hf(e.observing_).map(Us)),t}function Hf(e){return Array.from(new Set(e))}var zf=0;function Bs(){this.message="FLOW_CANCELLED"}Bs.prototype=Object.create(Error.prototype);var Ii=hs("flow"),Wf=hs("flow.bound",{bound:!0}),Jt=Object.assign(function(t,n){if(En(n))return Ii.decorate_20223_(t,n);if(Ot(n))return On(t,n,Ii);var r=t,i=r.name||"<unnamed flow>",o=function(){var a=this,u=arguments,l=++zf,f=It(i+" - runid: "+l+" - init",r).apply(a,u),c,d=void 0,h=new Promise(function(_,g){var v=0;c=g;function m(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.next).call(f,N)}catch(be){return g(be)}x(ee)}function w(N){d=void 0;var ee;try{ee=It(i+" - runid: "+l+" - yield "+v++,f.throw).call(f,N)}catch(be){return g(be)}x(ee)}function x(N){if(xe(N?.then)){N.then(x,g);return}return N.done?_(N.value):(d=Promise.resolve(N.value),d.then(m,w))}m(void 0)});return h.cancel=It(i+" - runid: "+l+" - cancel",function(){try{d&&Gs(d);var _=f.return(void 0),g=Promise.resolve(_.value);g.then(Gt,Gt),Gs(g),c(new Bs)}catch(v){c(v)}}),h};return o.isMobXFlow=!0,o},Ii);Jt.bound=He(Wf);function Gs(e){xe(e.cancel)&&e.cancel()}function In(e){return e?.isMobXFlow===!0}function qf(e,t){return e?Ir(e)||!!e[O]||wi(e)||Ar(e)||br(e):!1}function Hs(e){return qf(e)}function it(e,t){t===void 0&&(t=void 0),we();try{return e.apply(t)}finally{Se()}}function Zt(e){return e[O]}var Kf={has:function(t,n){return Zt(t).has_(n)},get:function(t,n){return Zt(t).get_(n)},set:function(t,n,r){var i;return Ot(n)?(i=Zt(t).set_(n,r,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var r;return Ot(n)?(r=Zt(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var i;return(i=Zt(t).defineProperty_(n,r))!=null?i:!0},ownKeys:function(t){return Zt(t).ownKeys_()},preventExtensions:function(t){k(13)}};function Jf(e,t){var n,r;return rs(),e=Rt(e,t),(r=(n=e[O]).proxy_)!=null?r:n.proxy_=new Proxy(e,Kf)}function Ce(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function $n(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Oe(e,t){var n=kt();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i<o&&(t=r[i](t),t&&!t.type&&k(14),!!t);i++);return t}finally{rt(n)}}function Me(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Rn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),is(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function ke(e,t){var n=kt(),r=e.changeListeners_;if(r){r=r.slice();for(var i=0,o=r.length;i<o;i++)r[i](t);rt(n)}}function zs(e,t,n){return gt(function(){var r,i=Rt(e,n)[O];(r=t)!=null||(t=xc(e)),zt(t).forEach(function(o){return i.make_(o,t[o])})}),e}var $i=Symbol("mobx-keys");function Zf(e,t,n){return et(e)?Fs(e,e,t,n):(gt(function(){var r=Rt(e,n)[O];if(!e[$i]){var i=Object.getPrototypeOf(e),o=new Set([].concat(zt(e),zt(i)));o.delete("constructor"),o.delete(O),Cn(i,$i,o)}e[$i].forEach(function(s){return r.make_(s,t&&s in t?t[s]:!0)})}),e)}var Ws="splice",We="update",Yf=1e4,Xf={get:function(t,n){var r=t[O];return n===O?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):nt(Tr,n)?Tr[n]:t[n]},set:function(t,n,r){var i=t[O];return n==="length"&&i.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:i.set_(parseInt(n),r),!0},preventExtensions:function(){k(15)}},Ri=function(){function e(n,r,i,o){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=o,this.atom_=new _t(n),this.enhancer_=function(s,a){return r(s,a,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.dehanceValues_=function(r){return this.dehancer!==void 0&&r.length>0?r.map(this.dehancer):r},t.intercept_=function(r){return $n(this,r)},t.observe_=function(r,i){return i===void 0&&(i=!1),i&&r({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Rn(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&k("Out of range: "+r);var i=this.values_.length;if(r!==i)if(r>i){for(var o=new Array(r-i),s=0;s<r-i;s++)o[s]=void 0;this.spliceWithArray_(i,0,o)}else this.spliceWithArray_(r,i-r)},t.updateArrayLength_=function(r,i){r!==this.lastKnownLength_&&k(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&oa(r+i+1)},t.spliceWithArray_=function(r,i,o){var s=this;this.atom_;var a=this.values_.length;if(r===void 0?r=0:r>a?r=a:r<0&&(r=Math.max(0,a+r)),arguments.length===1?i=a-r:i==null?i=0:i=Math.max(0,Math.min(i,a-r)),o===void 0&&(o=mi),Ce(this)){var u=Oe(this,{object:this.proxy_,type:Ws,index:r,removedCount:i,added:o});if(!u)return mi;i=u.removedCount,o=u.added}if(o=o.length===0?o:o.map(function(c){return s.enhancer_(c,void 0)}),this.legacyMode_){var l=o.length-i;this.updateArrayLength_(a,l)}var f=this.spliceItemsIntoValues_(r,i,o);return(i!==0||o.length!==0)&&this.notifyArraySplice_(r,o,f),this.dehanceValues_(f)},t.spliceItemsIntoValues_=function(r,i,o){if(o.length<Yf){var s;return(s=this.values_).splice.apply(s,[r,i].concat(o))}else{var a=this.values_.slice(r,r+i),u=this.values_.slice(r+i);this.values_.length+=o.length-i;for(var l=0;l<o.length;l++)this.values_[r+l]=o[l];for(var f=0;f<u.length;f++)this.values_[r+o.length+f]=u[f];return a}},t.notifyArrayChildUpdate_=function(r,i,o){var s=!this.owned_&&Tn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,type:We,debugObjectName:this.atom_.name_,index:r,newValue:i,oldValue:o}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.notifyArraySplice_=function(r,i,o){var s=!this.owned_&&Tn(),a=Me(this),u=a||s?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Ws,index:r,removed:o,added:i,removedCount:o.length,addedCount:i.length}:null;this.atom_.reportChanged(),a&&ke(this,u)},t.get_=function(r){if(this.legacyMode_&&r>=this.values_.length){console.warn("[mobx] Out of bounds read: "+r);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[r])},t.set_=function(r,i){var o=this.values_;if(this.legacyMode_&&r>o.length&&k(17,r,o.length),r<o.length){this.atom_;var s=o[r];if(Ce(this)){var a=Oe(this,{type:We,object:this.proxy_,index:r,newValue:i});if(!a)return;i=a.newValue}i=this.enhancer_(i,s);var u=i!==s;u&&(o[r]=i,this.notifyArrayChildUpdate_(r,i,s))}else{for(var l=new Array(r+1-o.length),f=0;f<l.length-1;f++)l[f]=void 0;l[l.length-1]=i,this.spliceWithArray_(o.length,0,l)}},e}();function Qf(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),rs(),gt(function(){var i=new Ri(n,t,r,!1);ss(i.values_,O,i);var o=new Proxy(i.values_,Xf);return i.proxy_=o,e&&e.length&&i.spliceWithArray_(0,0,e),o})}var Tr={clear:function(){return this.splice(0)},replace:function(t){var n=this[O];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];var s=this[O];switch(arguments.length){case 0:return[];case 1:return s.spliceWithArray_(t);case 2:return s.spliceWithArray_(t,n)}return s.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,r){return this[O].spliceWithArray_(t,n,r)},push:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[O].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[O],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return y.trackingDerivation&&k(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){y.trackingDerivation&&k(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[O],r=n.dehanceValues_(n.values_).indexOf(t);return r>-1?(this.splice(r,1),!0):!1}};V("at",ce),V("concat",ce),V("flat",ce),V("includes",ce),V("indexOf",ce),V("join",ce),V("lastIndexOf",ce),V("slice",ce),V("toString",ce),V("toLocaleString",ce),V("toSorted",ce),V("toSpliced",ce),V("with",ce),V("every",Ie),V("filter",Ie),V("find",Ie),V("findIndex",Ie),V("findLast",Ie),V("findLastIndex",Ie),V("flatMap",Ie),V("forEach",Ie),V("map",Ie),V("some",Ie),V("toReversed",Ie),V("reduce",qs),V("reduceRight",qs);function V(e,t){typeof Array.prototype[e]=="function"&&(Tr[e]=t(e))}function ce(e){return function(){var t=this[O];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Ie(e){return function(t,n){var r=this,i=this[O];i.atom_.reportObserved();var o=i.dehanceValues_(i.values_);return o[e](function(s,a){return t.call(n,s,a,r)})}}function qs(e){return function(){var t=this,n=this[O];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(o,s,a){return i(o,s,a,t)},r[e].apply(r,arguments)}}var ed=Et("ObservableArrayAdministration",Ri);function Mr(e){return fr(e)&&ed(e[O])}var td={},pt="add",kr="delete",Ks=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[O]=td,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=r,this.name_=i,xe(Map)||k(18),gt(function(){o.keysAtom_=fs("ObservableMap.keys()"),o.data_=new Map,o.hasMap_=new Map,n&&o.merge(n)})}var t=e.prototype;return t.has_=function(r){return this.data_.has(r)},t.has=function(r){var i=this;if(!y.trackingDerivation)return this.has_(r);var o=this.hasMap_.get(r);if(!o){var s=o=new Mt(this.has_(r),dr,"ObservableMap.key?",!1);this.hasMap_.set(r,s),Ls(s,function(){return i.hasMap_.delete(r)})}return o.get()},t.set=function(r,i){var o=this.has_(r);if(Ce(this)){var s=Oe(this,{type:o?We:pt,object:this,newValue:i,name:r});if(!s)return this;i=s.newValue}return o?this.updateValue_(r,i):this.addValue_(r,i),this},t.delete=function(r){var i=this;if(this.keysAtom_,Ce(this)){var o=Oe(this,{type:kr,object:this,name:r});if(!o)return!1}if(this.has_(r)){var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:kr,object:this,oldValue:this.data_.get(r).value_,name:r}:null;return it(function(){var l;i.keysAtom_.reportChanged(),(l=i.hasMap_.get(r))==null||l.setNewValue_(!1);var f=i.data_.get(r);f.setNewValue_(void 0),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.updateValue_=function(r,i){var o=this.data_.get(r);if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:We,object:this,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,u)}},t.addValue_=function(r,i){var o=this;this.keysAtom_,it(function(){var l,f=new Mt(i,o.enhancer_,"ObservableMap.key",!1);o.data_.set(r,f),i=f.value_,(l=o.hasMap_.get(r))==null||l.setNewValue_(!0),o.keysAtom_.reportChanged()});var s=Tn(),a=Me(this),u=a||s?{observableKind:"map",debugObjectName:this.name_,type:pt,object:this,name:r,newValue:i}:null;a&&ke(this,u)},t.get=function(r){return this.has(r)?this.dehanceValue_(this.data_.get(r).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:r.get(u)}}})},t.entries=function(){var r=this,i=this.keys();return Js({next:function(){var s=i.next(),a=s.done,u=s.value;return{done:a,value:a?void 0:[u,r.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value,u=a[0],l=a[1];r.call(i,l,u,this)}},t.merge=function(r){var i=this;return $t(r)&&(r=new Map(r)),it(function(){et(r)?wc(r).forEach(function(o){return i.set(o,r[o])}):Array.isArray(r)?r.forEach(function(o){var s=o[0],a=o[1];return i.set(s,a)}):Ht(r)?(bc(r)||k(19,r),r.forEach(function(o,s){return i.set(s,o)})):r!=null&&k(20,r)}),this},t.clear=function(){var r=this;it(function(){Es(function(){for(var i=qt(r.keys()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.replace=function(r){var i=this;return it(function(){for(var o=nd(r),s=new Map,a=!1,u=qt(i.data_.keys()),l;!(l=u()).done;){var f=l.value;if(!o.has(f)){var c=i.delete(f);if(c)a=!0;else{var d=i.data_.get(f);s.set(f,d)}}}for(var h=qt(o.entries()),_;!(_=h()).done;){var g=_.value,v=g[0],m=g[1],w=i.data_.has(v);if(i.set(v,m),i.data_.has(v)){var x=i.data_.get(v);s.set(v,x),w||(a=!0)}}if(!a)if(i.data_.size!==s.size)i.keysAtom_.reportChanged();else for(var N=i.data_.keys(),ee=s.keys(),be=N.next(),sr=ee.next();!be.done;){if(be.value!==sr.value){i.keysAtom_.reportChanged();break}be=N.next(),sr=ee.next()}i.data_=s}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},Wt(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),$t=Et("ObservableMap",Ks);function Js(e){return e[Symbol.toStringTag]="MapIterator",Li(e)}function nd(e){if(Ht(e)||$t(e))return e;if(Array.isArray(e))return new Map(e);if(et(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return k(21,e)}var rd={},Zs=function(){function e(n,r,i){var o=this;r===void 0&&(r=xt),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[O]=rd,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,xe(Set)||k(22),this.enhancer_=function(s,a){return r(s,a,i)},gt(function(){o.atom_=fs(o.name_),n&&o.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(r){return this.dehancer!==void 0?this.dehancer(r):r},t.clear=function(){var r=this;it(function(){Es(function(){for(var i=qt(r.data_.values()),o;!(o=i()).done;){var s=o.value;r.delete(s)}})})},t.forEach=function(r,i){for(var o=qt(this),s;!(s=o()).done;){var a=s.value;r.call(i,a,a,this)}},t.add=function(r){var i=this;if(this.atom_,Ce(this)){var o=Oe(this,{type:pt,object:this,newValue:r});if(!o)return this;r=o.newValue}if(!this.has(r)){it(function(){i.data_.add(i.enhancer_(r,void 0)),i.atom_.reportChanged()});var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:pt,object:this,newValue:r}:null;a&&ke(this,u)}return this},t.delete=function(r){var i=this;if(Ce(this)){var o=Oe(this,{type:kr,object:this,oldValue:r});if(!o)return!1}if(this.has(r)){var s=!1,a=Me(this),u=a||s?{observableKind:"set",debugObjectName:this.name_,type:kr,object:this,oldValue:r}:null;return it(function(){i.atom_.reportChanged(),i.data_.delete(r)}),a&&ke(this,u),!0}return!1},t.has=function(r){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(r))},t.entries=function(){var r=this.values();return Ys({next:function(){var o=r.next(),s=o.value,a=o.done;return a?{value:void 0,done:a}:{value:[s,s],done:a}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var r=this,i=this.data_.values();return Ys({next:function(){var s=i.next(),a=s.value,u=s.done;return u?{value:void 0,done:u}:{value:r.dehanceValue_(a),done:u}}})},t.intersection=function(r){if(tt(r)&&!qe(r))return r.intersection(this);var i=new Set(this);return i.intersection(r)},t.union=function(r){if(tt(r)&&!qe(r))return r.union(this);var i=new Set(this);return i.union(r)},t.difference=function(r){return new Set(this).difference(r)},t.symmetricDifference=function(r){if(tt(r)&&!qe(r))return r.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(r)},t.isSubsetOf=function(r){return new Set(this).isSubsetOf(r)},t.isSupersetOf=function(r){return new Set(this).isSupersetOf(r)},t.isDisjointFrom=function(r){if(tt(r)&&!qe(r))return r.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(r)},t.replace=function(r){var i=this;return qe(r)&&(r=new Set(r)),it(function(){Array.isArray(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):tt(r)?(i.clear(),r.forEach(function(o){return i.add(o)})):r!=null&&k("Cannot initialize set from "+r)}),this},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},Wt(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),qe=Et("ObservableSet",Zs);function Ys(e){return e[Symbol.toStringTag]="SetIterator",Li(e)}var Xs=Object.create(null),Qs="remove",ea=function(){function e(n,r,i,o){r===void 0&&(r=new Map),o===void 0&&(o=Yc),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=n,this.values_=r,this.name_=i,this.defaultAnnotation_=o,this.keysAtom_=new _t("ObservableObject.keys"),this.isPlainObject_=et(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(r){return this.values_.get(r).get()},t.setObservablePropValue_=function(r,i){var o=this.values_.get(r);if(o instanceof Te)return o.set(i),!0;if(Ce(this)){var s=Oe(this,{type:We,object:this.proxy_||this.target_,name:r,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==y.UNCHANGED){var a=Me(this),u=!1,l=a||u?{type:We,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:r,newValue:i}:null;o.setNewValue_(i),a&&ke(this,l)}return!0},t.get_=function(r){return y.trackingDerivation&&!nt(this.target_,r)&&this.has_(r),this.target_[r]},t.set_=function(r,i,o){return o===void 0&&(o=!1),nt(this.target_,r)?this.values_.has(r)?this.setObservablePropValue_(r,i):o?Reflect.set(this.target_,r,i):(this.target_[r]=i,!0):this.extend_(r,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,o)},t.has_=function(r){if(!y.trackingDerivation)return r in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(r);return i||(i=new Mt(r in this.target_,dr,"ObservableObject.key?",!1),this.pendingKeys_.set(r,i)),i.get()},t.make_=function(r,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(r in this.target_)){var o;if((o=this.target_[Ge])!=null&&o[r])return;k(1,i.annotationType_,this.name_+"."+r.toString())}for(var s=this.target_;s&&s!==cr;){var a=lr(s,r);if(a){var u=i.make_(this,r,a,s);if(u===0)return;if(u===1)break}s=Object.getPrototypeOf(s)}na(this,i,r)}},t.extend_=function(r,i,o,s){if(s===void 0&&(s=!1),o===!0&&(o=this.defaultAnnotation_),o===!1)return this.defineProperty_(r,i,s);var a=o.extend_(this,r,i,s);return a&&na(this,o,r),a},t.defineProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{we();var s=this.delete_(r);if(!s)return s;if(Ce(this)){var a=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i.value});if(!a)return null;var u=a.newValue;i.value!==u&&(i=At({},i,{value:u}))}if(o){if(!Reflect.defineProperty(this.target_,r,i))return!1}else Be(this.target_,r,i);this.notifyPropertyAddition_(r,i.value)}finally{Se()}return!0},t.defineObservableProperty_=function(r,i,o,s){s===void 0&&(s=!1),this.keysAtom_;try{we();var a=this.delete_(r);if(!a)return a;if(Ce(this)){var u=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:i});if(!u)return null;i=u.newValue}var l=ta(r),f={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:l.get,set:l.set};if(s){if(!Reflect.defineProperty(this.target_,r,f))return!1}else Be(this.target_,r,f);var c=new Mt(i,o,"ObservableObject.key",!1);this.values_.set(r,c),this.notifyPropertyAddition_(r,c.value_)}finally{Se()}return!0},t.defineComputedProperty_=function(r,i,o){o===void 0&&(o=!1),this.keysAtom_;try{we();var s=this.delete_(r);if(!s)return s;if(Ce(this)){var a=Oe(this,{object:this.proxy_||this.target_,name:r,type:pt,newValue:void 0});if(!a)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var u=ta(r),l={configurable:y.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(o){if(!Reflect.defineProperty(this.target_,r,l))return!1}else Be(this.target_,r,l);this.values_.set(r,new Te(i)),this.notifyPropertyAddition_(r,void 0)}finally{Se()}return!0},t.delete_=function(r,i){if(i===void 0&&(i=!1),this.keysAtom_,!nt(this.target_,r))return!0;if(Ce(this)){var o=Oe(this,{object:this.proxy_||this.target_,name:r,type:Qs});if(!o)return null}try{var s;we();var a=Me(this),u=!1,l=this.values_.get(r),f=void 0;if(!l&&(a||u)){var c;f=(c=lr(this.target_,r))==null?void 0:c.value}if(i){if(!Reflect.deleteProperty(this.target_,r))return!1}else delete this.target_[r];if(l&&(this.values_.delete(r),l instanceof Mt&&(f=l.value_),Is(l)),this.keysAtom_.reportChanged(),(s=this.pendingKeys_)==null||(s=s.get(r))==null||s.set(r in this.target_),a||u){var d={type:Qs,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:f,name:r};a&&ke(this,d)}}finally{Se()}return!0},t.observe_=function(r,i){return Rn(this,r)},t.intercept_=function(r){return $n(this,r)},t.notifyPropertyAddition_=function(r,i){var o,s=Me(this),a=!1;if(s||a){var u=s||a?{type:pt,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:r,newValue:i}:null;s&&ke(this,u)}(o=this.pendingKeys_)==null||(o=o.get(r))==null||o.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),zt(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Rt(e,t){var n;if(nt(e,O))return e;var r=(n=t?.name)!=null?n:"ObservableObject",i=new ea(e,new Map,String(r),lf(t));return Cn(e,O,i),e}var id=Et("ObservableObjectAdministration",ea);function ta(e){return Xs[e]||(Xs[e]={get:function(){return this[O].getObservablePropValue_(e)},set:function(n){return this[O].setObservablePropValue_(e,n)}})}function Ir(e){return fr(e)?id(e[O]):!1}function na(e,t,n){var r;(r=e.target_[Ge])==null||delete r[n]}var od=ia(0),sd=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Pi=0,ra=function(){};function ad(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}ad(ra,Array.prototype);var Di=function(e){function t(r,i,o,s){var a;return o===void 0&&(o="ObservableArray"),s===void 0&&(s=!1),a=e.call(this)||this,gt(function(){var u=new Ri(o,i,s,!0);u.proxy_=a,ss(a,O,u),r&&r.length&&a.spliceWithArray(0,0,r),sd&&Object.defineProperty(a,"0",od)}),a}cs(t,e);var n=t.prototype;return n.concat=function(){this[O].atom_.reportObserved();for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return Array.prototype.concat.apply(this.slice(),o.map(function(a){return Mr(a)?a.slice():a}))},n[Symbol.iterator]=function(){var r=this,i=0;return Li({next:function(){return i<r.length?{value:r[i++],done:!1}:{done:!0,value:void 0}}})},Wt(t,[{key:"length",get:function(){return this[O].getArrayLength_()},set:function(i){this[O].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(ra);Object.entries(Tr).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Cn(Di.prototype,t,n)});function ia(e){return{enumerable:!1,configurable:!0,get:function(){return this[O].get_(e)},set:function(n){this[O].set_(e,n)}}}function ud(e){Be(Di.prototype,""+e,ia(e))}function oa(e){if(e>Pi){for(var t=Pi;t<e+100;t++)ud(t);Pi=e}}oa(1e3);function ld(e,t,n){return new Di(e,t,n)}function $r(e,t){if(typeof e=="object"&&e!==null){if(Mr(e))return t!==void 0&&k(23),e[O].atom_;if(qe(e))return e.atom_;if($t(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||k(25,t,Ni(e)),n}if(Ir(e)){if(!t)return k(26);var r=e[O].values_.get(t);return r||k(27,t,Ni(e)),r}if(wi(e)||br(e)||Ar(e))return e}else if(xe(e)&&Ar(e[O]))return e[O];k(28)}function cd(e,t){if(e||k(29),wi(e)||br(e)||Ar(e)||$t(e)||qe(e))return e;if(e[O])return e[O];k(24,e)}function Ni(e,t){var n;if(t!==void 0)n=$r(e,t);else{if(kn(e))return e.name;Ir(e)||$t(e)||qe(e)?n=cd(e):n=$r(e)}return n.name_}function gt(e){var t=kt(),n=mr(!0);we();try{return e()}finally{Se(),yr(n),rt(t)}}var sa=cr.toString;function aa(e,t,n){return n===void 0&&(n=-1),ji(e,t,n)}function ji(e,t,n,r,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var o=typeof e;if(o!=="function"&&o!=="object"&&typeof t!="object")return!1;var s=sa.call(e);if(s!==sa.call(t))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=ua(e),t=ua(t);var a=s==="[object Array]";if(!a){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(xe(u)&&u instanceof u&&xe(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),r=r||[],i=i||[];for(var f=r.length;f--;)if(r[f]===e)return i[f]===t;if(r.push(e),i.push(t),a){if(f=e.length,f!==t.length)return!1;for(;f--;)if(!ji(e[f],t[f],n-1,r,i))return!1}else{var c=Object.keys(e),d=c.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var _=c[h];if(!(nt(t,_)&&ji(e[_],t[_],n-1,r,i)))return!1}}return r.pop(),i.pop(),!0}function ua(e){return Mr(e)?e.slice():Ht(e)||$t(e)||tt(e)||qe(e)?Array.from(e.entries()):e}var la,fd=((la=ur().Iterator)==null?void 0:la.prototype)||{};function Li(e){return e[Symbol.iterator]=dd,Object.assign(Object.create(fd),e)}function dd(){return this}["Symbol","Map","Set"].forEach(function(e){var t=ur();typeof t[e]>"u"&&k("MobX requires global '"+e+"' to be available or polyfilled")}),typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:xf,extras:{getDebugName:Ni},$mobx:O});var Pn,M,ca,Pt,fa,da,ha,_a,Vi,Fi,Ui,pa,Dn={},ga=[],hd=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Nn=Array.isArray;function Ke(e,t){for(var n in t)e[n]=t[n];return e}function Bi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function E(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?Pn.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return jn(e,s,r,i,null)}function jn(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ca,__i:-1,__u:0};return i==null&&M.vnode!=null&&M.vnode(o),o}function va(){return{current:null}}function $e(e){return e.children}function Re(e,t){this.props=e,this.context=t}function Yt(e,t){if(t==null)return e.__?Yt(e.__,e.__i+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"?Yt(e):null}function ma(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 ma(e)}}function Gi(e){(!e.__d&&(e.__d=!0)&&Pt.push(e)&&!Rr.__r++||fa!=M.debounceRendering)&&((fa=M.debounceRendering)||da)(Rr)}function Rr(){for(var e,t,n,r,i,o,s,a=1;Pt.length;)Pt.length>a&&Pt.sort(ha),e=Pt.shift(),a=Pt.length,e.__d&&(n=void 0,i=(r=(t=e).__v).__e,o=[],s=[],t.__P&&((n=Ke({},r)).__v=r.__v+1,M.vnode&&M.vnode(n),Hi(t.__P,n,r,t.__n,t.__P.namespaceURI,32&r.__u?[i]:null,o,i??Yt(r),!!(32&r.__u),s),n.__v=r.__v,n.__.__k[n.__i]=n,Ca(o,n,s),n.__e!=i&&ma(n)));Rr.__r=0}function ya(e,t,n,r,i,o,s,a,u,l,f){var c,d,h,_,g,v,m=r&&r.__k||ga,w=t.length;for(u=_d(n,t,m,u,w),c=0;c<w;c++)(h=n.__k[c])!=null&&(d=h.__i==-1?Dn:m[h.__i]||Dn,h.__i=c,v=Hi(e,h,d,i,o,s,a,u,l,f),_=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&Wi(d.ref,null,h),f.push(h.ref,h.__c||_,h)),g==null&&_!=null&&(g=_),4&h.__u||d.__k===h.__k?u=ba(h,u,e):typeof h.type=="function"&&v!==void 0?u=v:_&&(u=_.nextSibling),h.__u&=-7);return n.__e=g,u}function _d(e,t,n,r,i){var o,s,a,u,l,f=n.length,c=f,d=0;for(e.__k=new Array(i),o=0;o<i;o++)(s=t[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(u=o+d,(s=e.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?jn(null,s,null,null,null):Nn(s)?jn($e,{children:s},null,null,null):s.constructor==null&&s.__b>0?jn(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,a=null,(l=s.__i=pd(s,n,u,c))!=-1&&(c--,(a=n[l])&&(a.__u|=2)),a==null||a.__v==null?(l==-1&&(i>f?d--:i<f&&d++),typeof s.type!="function"&&(s.__u|=4)):l!=u&&(l==u-1?d--:l==u+1?d++:(l>u?d--:d++,s.__u|=4))):e.__k[o]=null;if(c)for(o=0;o<f;o++)(a=n[o])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=Yt(a)),Ea(a,a));return r}function ba(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=ba(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Yt(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ot(e,t){return t=t||[],e==null||typeof e=="boolean"||(Nn(e)?e.some(function(n){ot(n,t)}):t.push(e)),t}function pd(e,t,n,r){var i,o,s,a=e.key,u=e.type,l=t[n],f=l!=null&&(2&l.__u)==0;if(l===null&&e.key==null||f&&a==l.key&&u==l.type)return n;if(r>(f?1:0)){for(i=n-1,o=n+1;i>=0||o<t.length;)if((l=t[s=i>=0?i--:o++])!=null&&(2&l.__u)==0&&a==l.key&&u==l.type)return s}return-1}function wa(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||hd.test(t)?n:n+"px"}function Pr(e,t,n,r,i){var o,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||wa(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||wa(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(_a,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Vi,e.addEventListener(t,o?Ui:Fi,o)):e.removeEventListener(t,o?Ui:Fi,o);else{if(i=="http://www.w3.org/2000/svg")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!="role"&&t!="popover"&&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,t=="popover"&&n==1?"":n))}}function Sa(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Vi++;else if(t.t<n.u)return;return n(M.event?M.event(t):t)}}}function Hi(e,t,n,r,i,o,s,a,u,l){var f,c,d,h,_,g,v,m,w,x,N,ee,be,sr,vi,ar,ts,Qe=t.type;if(t.constructor!=null)return null;128&n.__u&&(u=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=M.__b)&&f(t);e:if(typeof Qe=="function")try{if(m=t.props,w="prototype"in Qe&&Qe.prototype.render,x=(f=Qe.contextType)&&r[f.__c],N=f?x?x.props.value:f.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new Qe(m,N):(t.__c=c=new Re(m,N),c.constructor=Qe,c.render=vd),x&&x.sub(c),c.props=m,c.state||(c.state={}),c.context=N,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&Qe.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Ke({},c.__s)),Ke(c.__s,Qe.getDerivedStateFromProps(m,c.__s))),h=c.props,_=c.state,c.__v=t,d)w&&Qe.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&Qe.getDerivedStateFromProps==null&&m!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(m,N),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(m,c.__s,N)===!1||t.__v==n.__v){for(t.__v!=n.__v&&(c.props=m,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Sn){Sn&&(Sn.__=t)}),ee=0;ee<c._sb.length;ee++)c.__h.push(c._sb[ee]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(m,c.__s,N),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,_,g)})}if(c.context=N,c.props=m,c.__P=e,c.__e=!1,be=M.__r,sr=0,w){for(c.state=c.__s,c.__d=!1,be&&be(t),f=c.render(c.props,c.state,c.context),vi=0;vi<c._sb.length;vi++)c.__h.push(c._sb[vi]);c._sb=[]}else do c.__d=!1,be&&be(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++sr<25);c.state=c.__s,c.getChildContext!=null&&(r=Ke(Ke({},r),c.getChildContext())),w&&!d&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,_)),ar=f,f!=null&&f.type===$e&&f.key==null&&(ar=Oa(f.props.children)),a=ya(e,Nn(ar)?ar:[ar],t,n,r,i,o,s,a,u,l),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),v&&(c.__E=c.__=null)}catch(Sn){if(t.__v=null,u||o!=null)if(Sn.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(ts=o.length;ts--;)Bi(o[ts]);zi(t)}else t.__e=n.__e,t.__k=n.__k,Sn.then||zi(t);M.__e(Sn,t,n)}else o==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=gd(n.__e,t,n,r,i,o,s,u,l);return(f=M.diffed)&&f(t),128&t.__u?void 0:a}function zi(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(zi)}function Ca(e,t,n){for(var r=0;r<n.length;r++)Wi(n[r],n[++r],n[++r]);M.__c&&M.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){M.__e(o,i.__v)}})}function Oa(e){return typeof e!="object"||e==null||e.__b&&e.__b>0?e:Nn(e)?e.map(Oa):Ke({},e)}function gd(e,t,n,r,i,o,s,a,u){var l,f,c,d,h,_,g,v=n.props,m=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(l=0;l<o.length;l++)if((h=o[l])&&"setAttribute"in h==!!w&&(w?h.localName==w:h.nodeType==3)){e=h,o[l]=null;break}}if(e==null){if(w==null)return document.createTextNode(m);e=document.createElementNS(i,w,m.is&&m),a&&(M.__m&&M.__m(t,o),a=!1),o=null}if(w==null)v===m||a&&e.data==m||(e.data=m);else{if(o=o&&Pn.call(e.childNodes),v=n.props||Dn,!a&&o!=null)for(v={},l=0;l<e.attributes.length;l++)v[(h=e.attributes[l]).name]=h.value;for(l in v)if(h=v[l],l!="children"){if(l=="dangerouslySetInnerHTML")c=h;else if(!(l in m)){if(l=="value"&&"defaultValue"in m||l=="checked"&&"defaultChecked"in m)continue;Pr(e,l,null,h,i)}}for(l in m)h=m[l],l=="children"?d=h:l=="dangerouslySetInnerHTML"?f=h:l=="value"?_=h:l=="checked"?g=h:a&&typeof h!="function"||v[l]===h||Pr(e,l,h,v[l],i);if(f)a||c&&(f.__html==c.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),ya(t.type=="template"?e.content:e,Nn(d)?d:[d],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&Yt(n,0),a,u),o!=null)for(l=o.length;l--;)Bi(o[l]);a||(l="value",w=="progress"&&_==null?e.removeAttribute("value"):_!=null&&(_!==e[l]||w=="progress"&&!_||w=="option"&&_!=v[l])&&Pr(e,l,_,v[l],i),l="checked",g!=null&&g!=e[l]&&Pr(e,l,g,v[l],i))}return e}function Wi(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){M.__e(i,n)}}function Ea(e,t,n){var r,i;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Wi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){M.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ea(r[i],t,n||typeof e.type!="function");n||Bi(e.__e),e.__c=e.__=e.__e=void 0}function vd(e,t,n){return this.constructor(e,n)}function vt(e,t,n){var r,i,o,s;t==document&&(t=document.documentElement),M.__&&M.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],Hi(t,e=(!r&&n||t).__k=E($e,null,[e]),i||Dn,Dn,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Pn.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Ca(o,e,s)}function qi(e,t){vt(e,t,qi)}function Ki(e,t,n){var r,i,o,s,a=Ke({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!=null?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?Pn.call(arguments,2):n),jn(e.type,a,r||e.key,i||e.ref,null)}function Aa(e){function t(n){var r,i;return this.getChildContext||(r=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(o){this.props.value!=o.value&&r.forEach(function(s){s.__e=!0,Gi(s)})},this.sub=function(o){r.add(o);var s=o.componentWillUnmount;o.componentWillUnmount=function(){r&&r.delete(o),s&&s.call(o)}}),n.children}return t.__c="__cC"+pa++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}Pn=ga.slice,M={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},ca=0,Re.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Ke({},this.state),typeof e=="function"&&(e=e(Ke({},n),this.props)),e&&Ke(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Gi(this))},Re.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Gi(this))},Re.prototype.render=$e,Pt=[],da=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ha=function(e,t){return e.__v.__b-t.__v.__b},Rr.__r=0,_a=/(PointerCapture)$|Capture$/i,Vi=0,Fi=Sa(!1),Ui=Sa(!0),pa=0;var st,j,Ji,xa,Xt=0,Ta=[],H=M,Ma=H.__b,ka=H.__r,Ia=H.diffed,$a=H.__c,Ra=H.unmount,Pa=H.__;function Dt(e,t){H.__h&&H.__h(j,e,Xt||t),Xt=0;var n=j.__H||(j.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Qt(e){return Xt=1,Dr(Na,e)}function Dr(e,t,n){var r=Dt(st++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Na(void 0,t),function(a){var u=r.__N?r.__N[0]:r.__[0],l=r.t(u,a);u!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=j,!j.__f)){var i=function(a,u,l){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!o||o.call(this,a,u,l);var c=r.__c.props!==a;return f.forEach(function(d){if(d.__N){var h=d.__[0];d.__=d.__N,d.__N=void 0,h!==d.__[0]&&(c=!0)}}),o&&o.call(this,a,u,l)||c};j.__f=!0;var o=j.shouldComponentUpdate,s=j.componentWillUpdate;j.componentWillUpdate=function(a,u,l){if(this.__e){var f=o;o=void 0,i(a,u,l),o=f}s&&s.call(this,a,u,l)},j.shouldComponentUpdate=i}return r.__N||r.__}function Nr(e,t){var n=Dt(st++,3);!H.__s&&ro(n.__H,t)&&(n.__=e,n.u=t,j.__H.__h.push(n))}function en(e,t){var n=Dt(st++,4);!H.__s&&ro(n.__H,t)&&(n.__=e,n.u=t,j.__h.push(n))}function Zi(e){return Xt=5,Ln(function(){return{current:e}},[])}function Yi(e,t,n){Xt=6,en(function(){if(typeof e=="function"){var r=e(t());return function(){e(null),r&&typeof r=="function"&&r()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Ln(e,t){var n=Dt(st++,7);return ro(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Xi(e,t){return Xt=8,Ln(function(){return e},t)}function Qi(e){var t=j.context[e.__c],n=Dt(st++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(j)),t.props.value):e.__}function eo(e,t){H.useDebugValue&&H.useDebugValue(t?t(e):e)}function md(e){var t=Dt(st++,10),n=Qt();return t.__=e,j.componentDidCatch||(j.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function to(){var e=Dt(st++,11);if(!e.__){for(var t=j.__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 yd(){for(var e;e=Ta.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jr),e.__H.__h.forEach(no),e.__H.__h=[]}catch(t){e.__H.__h=[],H.__e(t,e.__v)}}H.__b=function(e){j=null,Ma&&Ma(e)},H.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Pa&&Pa(e,t)},H.__r=function(e){ka&&ka(e),st=0;var t=(j=e.__c).__H;t&&(Ji===j?(t.__h=[],j.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(t.__h.forEach(jr),t.__h.forEach(no),t.__h=[],st=0)),Ji=j},H.diffed=function(e){Ia&&Ia(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ta.push(t)!==1&&xa===H.requestAnimationFrame||((xa=H.requestAnimationFrame)||bd)(yd)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ji=j=null},H.__c=function(e,t){t.some(function(n){try{n.__h.forEach(jr),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],H.__e(r,n.__v)}}),$a&&$a(e,t)},H.unmount=function(e){Ra&&Ra(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{jr(r)}catch(i){t=i}}),n.__H=void 0,t&&H.__e(t,n.__v))};var Da=typeof requestAnimationFrame=="function";function bd(e){var t,n=function(){clearTimeout(r),Da&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Da&&(t=requestAnimationFrame(n))}function jr(e){var t=j,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),j=t}function no(e){var t=j;e.__c=e.__(),j=t}function ro(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Na(e,t){return typeof t=="function"?t(e):t}function ja(e,t){for(var n in t)e[n]=t[n];return e}function io(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 oo(e,t){var n=t(),r=Qt({t:{__:n,u:t}}),i=r[0].t,o=r[1];return en(function(){i.__=n,i.u=t,so(i)&&o({t:i})},[e,n,t]),Nr(function(){return so(i)&&o({t:i}),e(function(){so(i)&&o({t:i})})},[e]),n}function so(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function ao(e){e()}function uo(e){return e}function lo(){return[!1,ao]}var co=en;function Lr(e,t){this.props=e,this.context=t}function Vn(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:io(this.props,i)}function r(i){return this.shouldComponentUpdate=n,E(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Lr.prototype=new Re).isPureReactComponent=!0,Lr.prototype.shouldComponentUpdate=function(e,t){return io(this.props,e)||io(this.state,t)};var La=M.__b;M.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),La&&La(e)};var wd=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Fn(e){function t(n){var r=ja({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=wd,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Va=function(e,t){return e==null?null:ot(ot(e).map(t))},Fa={map:Va,forEach:Va,count:function(e){return e?ot(e).length:0},only:function(e){var t=ot(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:ot},Sd=M.__e;M.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Sd(e,t,n,r)};var Ua=M.unmount;function Ba(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=ja({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ba(r,t,n)})),e}function Ga(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Ga(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Un(){this.__u=0,this.o=null,this.__b=null}function Ha(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function za(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return E(n,o)}return i.displayName="Lazy",i.__f=!0,i}function tn(){this.i=null,this.l=null}M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ua&&Ua(e)},(Un.prototype=new Re).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Ha(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var u=r.state.__a;r.__v.__k[0]=Ga(u,u.__c.__P,u.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Un.prototype.componentWillUnmount=function(){this.o=[]},Un.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]=Ba(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&E($e,null,e.fallback);return i&&(i.__u&=-33),[E($e,null,t.__a?null:e.children),i]};var Wa=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Cd(e){return this.getChildContext=function(){return e.context},e.children}function Od(e){var t=this,n=e.h;if(t.componentWillUnmount=function(){vt(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(i,o){this.childNodes.push(i),t.h.insertBefore(i,o)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.h.removeChild(i)}}}vt(E(Cd,{context:t.context},e.__v),t.v)}function qa(e,t){var n=E(Od,{__v:e,h:t});return n.containerInfo=t,n}(tn.prototype=new Re).__a=function(e){var t=this,n=Ha(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Wa(t,e,r)):i()};n?n(o):o()}},tn.prototype.render=function(e){this.i=null,this.l=new Map;var t=ot(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},tn.prototype.componentDidUpdate=tn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Wa(e,n,t)})};var Ka=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Ed=/^(?: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]/,Ad=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,xd=/[A-Z0-9]/g,Td=typeof document<"u",Md=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Ja(e,t,n){return t.__k==null&&(t.textContent=""),vt(e,t),typeof n=="function"&&n(),e?e.__c:null}function Za(e,t,n){return qi(e,t),typeof n=="function"&&n(),e?e.__c:null}Re.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Re.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Ya=M.event;function kd(){}function Id(){return this.cancelBubble}function $d(){return this.defaultPrevented}M.event=function(e){return Ya&&(e=Ya(e)),e.persist=kd,e.isPropagationStopped=Id,e.isDefaultPrevented=$d,e.nativeEvent=e};var fo,Rd={enumerable:!1,configurable:!0,get:function(){return this.class}},Xa=M.vnode;M.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||Td&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var u=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":u==="translate"&&a==="no"?a=!1:u[0]==="o"&&u[1]==="n"?u==="ondoubleclick"?s="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Md(n.type)?u==="onfocus"?s="onfocusin":u==="onblur"?s="onfocusout":Ad.test(s)&&(s=u):u=s="oninput":o&&Ed.test(s)?s=s.replace(xd,"-$&").toLowerCase():a===null&&(a=void 0),u==="oninput"&&i[s=u]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=ot(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=ot(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Rd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ka,Xa&&Xa(e)};var Qa=M.__r;M.__r=function(e){Qa&&Qa(e),fo=e.__c};var eu=M.diffed;M.diffed=function(e){eu&&eu(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),fo=null};var tu={ReactCurrentDispatcher:{current:{readContext:function(e){return fo.__n[e.__c].props.value},useCallback:Xi,useContext:Qi,useDebugValue:eo,useDeferredValue:uo,useEffect:Nr,useId:to,useImperativeHandle:Yi,useInsertionEffect:co,useLayoutEffect:en,useMemo:Ln,useReducer:Dr,useRef:Zi,useState:Qt,useSyncExternalStore:oo,useTransition:lo}}},Pd="18.3.1";function nu(e){return E.bind(null,e)}function Bn(e){return!!e&&e.$$typeof===Ka}function ru(e){return Bn(e)&&e.type===$e}function iu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ou(e){return Bn(e)?Ki.apply(null,arguments):e}function su(e){return!!e.__k&&(vt(null,e),!0)}function au(e){return e&&(e.base||e.nodeType===1&&e)||null}var ho=function(e,t){return e(t)},uu=function(e,t){return e(t)},lu=$e,cu=Bn,Vr={useState:Qt,useId:to,useReducer:Dr,useEffect:Nr,useLayoutEffect:en,useInsertionEffect:co,useTransition:lo,useDeferredValue:uo,useSyncExternalStore:oo,startTransition:ao,useRef:Zi,useImperativeHandle:Yi,useMemo:Ln,useCallback:Xi,useContext:Qi,useDebugValue:eo,version:"18.3.1",Children:Fa,render:Ja,hydrate:Za,unmountComponentAtNode:su,createPortal:qa,createElement:E,createContext:Aa,createFactory:nu,cloneElement:ou,createRef:va,Fragment:$e,isValidElement:Bn,isElement:cu,isFragment:ru,isMemo:iu,findDOMNode:au,Component:Re,PureComponent:Lr,memo:Vn,forwardRef:Fn,flushSync:uu,unstable_batchedUpdates:ho,StrictMode:lu,Suspense:Un,SuspenseList:tn,lazy:za,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu};const Dd=Object.freeze(Object.defineProperty({__proto__:null,Children:Fa,Component:Re,Fragment:$e,PureComponent:Lr,StrictMode:lu,Suspense:Un,SuspenseList:tn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:tu,cloneElement:ou,createContext:Aa,createElement:E,createFactory:nu,createPortal:qa,createRef:va,default:Vr,findDOMNode:au,flushSync:uu,forwardRef:Fn,hydrate:Za,isElement:cu,isFragment:ru,isMemo:iu,isValidElement:Bn,lazy:za,memo:Vn,render:Ja,startTransition:ao,unmountComponentAtNode:su,unstable_batchedUpdates:ho,useCallback:Xi,useContext:Qi,useDebugValue:eo,useDeferredValue:uo,useEffect:Nr,useErrorBoundary:md,useId:to,useImperativeHandle:Yi,useInsertionEffect:co,useLayoutEffect:en,useMemo:Ln,useReducer:Dr,useRef:Zi,useState:Qt,useSyncExternalStore:oo,useTransition:lo,version:Pd},Symbol.toStringTag,{value:"Module"}));if(!Qt)throw new Error("mobx-react-lite requires React with Hooks support");if(!zs)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function Nd(e){e()}function jd(e){e||(e=Nd),Bf({reactionScheduler:e})}function Ld(e){return Gf(e)}var Vd=1e4,Fd=1e4,Ud=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(r){r===void 0&&(r=Vd),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(o,s){i-o.registeredAt>=r&&(n.finalize(o.value),n.registrations.delete(s))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r){this.registrations.set(r,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,Fd))}}),e}(),Bd=typeof FinalizationRegistry<"u"?FinalizationRegistry:Ud,_o=new Bd(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null});function Gd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var po={exports:{}},go={};const Hd=Gd(Dd);/**
|
|
4
4
|
* @license React
|
|
5
5
|
* use-sync-external-store-shim.production.js
|
|
6
6
|
*
|
|
@@ -8,19 +8,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var
|
|
12
|
-
`)+" }":n?.name??""}}return String(e)}function
|
|
13
|
-
`)+" }"}function mh(e){const t=Object.values(e).map(n=>at(n));return Un(t)}function yh(e,t){if(e===t)return!0;if(Fr(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 bh(e,t){if(e===t)return 0;if(Fr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=yt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Ee{toJSON(){return gh(this)}toString(){return vh(this)}GetHashCode(){return mh(this)}Equals(t){return yh(this,t)}CompareTo(t){return bh(this,t)}}class ne{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 wh{constructor(t){this.message=t}}function Sh(e){return e instanceof wh||e instanceof Error}function Ch(e){return e instanceof Promise}function Hr(e){return Sh(e)||Ch(e)?e:new Error(String(e))}const nn=Symbol("numeric");function wu(e){return typeof e=="number"||typeof e=="bigint"||e?.[nn]}function Oh(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function So(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function zr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function Wr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function qr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function Kr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}class Eh{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class fe{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Su(this)}Equals(t){return Co(this,t)}}function de(e){return e.generics!=null?e.generics:[]}function Su(e){const t=Br(e.fullname),n=de(e).map(Su);return Un([t,...n])}function Co(e,t){return e.fullname===""?t.fullname===""&&wo(sn(e),sn(t),([n,r],[i,o])=>n===i&&Co(r,o)):e.fullname===t.fullname&&wo(de(e),de(t),Co)}function Ah(e,t,n,r){return new fe(e,t,n,r)}function Bn(e,t,n,r){return new fe(e,t,n,void 0,r)}function Cu(...e){return new fe("",void 0,void 0,void 0,()=>e)}function Pe(e,t,n,r){const i=new fe(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new Eh(i,a,o[a],s))});return i}function xh(e){return new fe("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Th=new fe("System.Object"),Jr=new fe("Microsoft.FSharp.Core.Unit"),ut=new fe("System.String"),kh=new fe("System.Boolean");function jt(e){if(Array.isArray(e))return e[0];if(e instanceof fe){const t=Gn(e);if(t!=null)return jt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=Gn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function Ou(e){return Gn(e)!=null}function Gn(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function Eu(e){return e.generics!=null&&e.generics.length>0}function Oo(e){return e.enumCases!=null&&e.enumCases.length>0}function Au(e){return e.generics==null?e:new fe(e.fullname,e.generics.map(()=>Th))}function xu(e){return e.generics?.[0]}function rn(e){if(Oo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Mh(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 on(e,t){const n=parseInt(t,10);return Mh(e,isNaN(n)?t:n)[1]}function Tu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function sn(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function ku(e){if(xo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Eo(e){return e instanceof fe?e.cases!=null:e instanceof U}function Ao(e){return e instanceof fe?e.fields!=null:e instanceof Ee}function xo(e){return e.fullname.startsWith("System.Tuple")}function Ih(e,t){const r=Tu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Mu(e){return e.fields==null?[]:e.fields}function $h(e,t){return e[t[0]]}function W0(e){return e}function Rh(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 Ph(e,t){const n=sn(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,[i,o],s)=>(r[i]=t[s],r),{})}function Dh(e,t){return e}class Lt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return at(this.value)}Equals(t){return t==null?!1:Re(this.value,t instanceof Lt?t.value:t)}CompareTo(t){return t==null?1:yt(this.value,t instanceof Lt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Lt?e.value:e}function Nh(e){return e instanceof Lt?e.value:e}function De(e){return e==null||e instanceof Lt?new Lt(e):e}function To(e,t){return e!=null?b(e):t}function jh(e,t){return e!=null?b(e):t()}function Lh(e,t){return t!=null?De(e(b(t))):void 0}const Vh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Fh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Uh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Bh=["January","February","March","April","May","June","July","August","September","October","November","December"];function he(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Iu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Gh(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function ko(e,t,n){let r=0,i=0,o="";const s=n?Hn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=he(t,r,"d"),r+=i,i){case 1:o+=Pu(s);break;case 2:o+=D(Pu(s),2);break;case 3:o+=Vh[ju(s)];break;case 4:o+=Fh[ju(s)];break}break;case"f":if(i=he(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=D(Math.floor(Qr(s)/v),i)}else i<=7&&(o+=(""+Qr(s)).padEnd(i,"0"));break;case"F":if(i=he(t,r,"F"),r+=i,i<=3){const v=10**(3-i),m=Math.floor(Qr(s)/v);m!=0&&(o+=D(m,i))}else if(i<=7){const v=Qr(s);v!=0&&(o+=D(v,3))}break;case"g":i=he(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=he(t,r,"h"),r+=i,i){case 1:o+=Xr(s)%12;break;case 2:o+=D(Xr(s)%12,2);break}break;case"H":switch(i=he(t,r,"H"),r+=i,i){case 1:o+=Xr(s);break;case 2:o+=D(Xr(s),2);break}break;case"K":switch(i=he(t,r,"K"),r+=i,i){case 1:switch($u(s)){case 1:o+="Z";break;case 2:o+=an(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=he(t,r,"m"),r+=i,i){case 1:o+=Du(s);break;case 2:o+=D(Du(s),2);break}break;case"M":switch(i=he(t,r,"M"),r+=i,i){case 1:o+=ei(s);break;case 2:o+=D(ei(s),2);break;case 3:o+=Uh[ei(s)-1];break;case 4:o+=Bh[ei(s)-1];break}break;case"s":switch(i=he(t,r,"s"),r+=i,i){case 1:o+=Nu(s);break;case 2:o+=D(Nu(s),2);break}break;case"t":switch(i=he(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=he(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=D(s.getFullYear()%100,2);break;case 3:o+=D(s.getFullYear(),3);break;case 4:o+=D(s.getFullYear(),4);break;case 5:o+=D(s.getFullYear(),5);break}break;case"z":i=he(t,r,"z"),r+=i;let u="";switch($u(s)){case 1:u="+00:00";break;case 2:u=an(s.getTimezoneOffset()*-6e4);break;case 0:u=an(Xh(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(i){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${D(f,2)}`;break;default:o+=`${l}${D(f,2)}:${D(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[d,h]=Gh(t,r);o+=d,r+=h;break;case"%":const _=Iu(t,r);if(_>=0&&_!==37)r+=2,o+=ko(s,String.fromCharCode(_),n);else throw new Error("Invalid format string");break;case"\\":const g=Iu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function $u(e){return e.kind||0}function an(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+D(n,2)+":"+D(r,2)}function Zr(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 Hh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return D(e.getFullYear(),4)+"-"+D(e.getMonth()+1,2)+"-"+D(e.getDate(),2)+"T"+D(e.getHours(),2)+":"+D(e.getMinutes(),2)+":"+D(e.getSeconds(),2)+"."+D(e.getMilliseconds(),3)+(n?an(e.getTimezoneOffset()*-6e4):"")}}function zh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+an(t)}function Wh(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," ")+an(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Zr(n,"first");case"T":case"t":return Zr(n,"second");case"O":case"o":return zh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return ko(n,t,!0)}function qh(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?Zr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Zr(e,"second"):e.toLocaleTimeString();case"O":case"o":return Hh(e,n);default:throw new Error("Unrecognized Date print format")}else return ko(e,t,n)}function Yr(e,t,n){return e.offset!=null?Wh(e,t):qh(e,t)}function Hn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Kh(){return Hn(-621355968e5,1)}function Ru(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 i=/^\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(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Jh(e,t=!1){const[n,r]=Ru(e),i=r!=null?t&&r==="Z"?1:2:0;return Hn(n.getTime(),i)}function Zh(e,t){try{return t.contents=Jh(e),!0}catch{return!1}}function Yh(e){return e.kind===1?e:Hn(e.getTime(),1)}function Xh(e){return e.kind===2?e:Hn(e.getTime(),2)}function Pu(e){return e.kind===1?e.getUTCDate():e.getDate()}function Xr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Qr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Du(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function ei(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Nu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ju(e){return e.kind===1?e.getUTCDay():e.getDay()}function Qh(e,t=0){if((t&-284)!==0)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 Lu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function e_(e,t,n=0){return e.lastIndex=n,e.test(t)}function Vu(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 i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function t_(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Qh(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),u=Vu(e,a),l=Vu.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+l.replace(e,n)+t.substring(i+l.length)}else return t.replace(e,n)}const zn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,n_=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Fu(e,t){return Oh(e,t)<0}function Je(e){return{input:e,cont:i_(e)}}function Uu(e,t){return typeof t=="string"?e(t):t.cont(e)}function Vt(e){return Uu(t=>t,e)}function Mo(e){return Uu(t=>{throw new Error(t)},e)}function r_(e,t,n,r,i){let o="";if(t=t||"",i=i||"",wu(e))switch(i.toLowerCase()!=="x"&&(Fu(e,0)?(e=So(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=zr(e,r);break;case"g":case"G":e=r!=null?Wr(e,r):Wr(e);break;case"e":case"E":e=r!=null?qr(e,r):qr(e);break;case"x":e=Kr(e);break;case"X":e=Kr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Yr(e):e=Oe(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=qn(e,n-o.length,u,a),e=o+e):e=qn(o+e,n,u,a)}return e}function Bu(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of o){const[,,f,c,d,h]=u[0];let _=c;if(i>=0)_=i,i=-1;else if(_==="*"){if(l<0)throw new Error("Non-negative number required");i=l;continue}s+=a[0],s+=r_(l,f,_,d,h),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):Bu(e,a,u,s,i)}}function i_(e){return t=>{zn.lastIndex=0;const n=[],r=[];let i=0,o=zn.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=zn.lastIndex,zn.lastIndex-=1,o=zn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Bu(t,n,r))}}function o_(e,...t){let n;return n=e,n.replace(n_,(r,i,o,s,a,u)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[i];if(wu(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=zr(l,a);break;case"g":case"G":l=a!=null?Wr(l,a):Wr(l);break;case"e":case"E":l=a!=null?qr(l,a):qr(l);break;case"p":case"P":a=a??2,l=zr(So(l,100),a)+" %";break;case"d":case"D":l=a!=null?Io(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Io(Kr(l),a,"0"):Kr(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,d,h)=>{Fu(l,0)&&(l=So(l,-1),f="-"),h=h==null?"":h.substring(1),l=zr(l,Math.max(h.length,0));let[_,g]=l.split(".");g||(g="");const v=d.replace(/,/g,"").replace(/^#+/,"").length;_=Io(_,v,"0");const m=h.replace(/#+$/,"").length;if(m>g.length?g=u_(g,m,"0"):m<g.length&&(g=g.substring(0,m)+g.substring(m).replace(/0+$/,"")),d.indexOf(",")>0){const w=_.length%3,x=Math.floor(_.length/3);let N=w>0?_.substr(0,w)+(x>0?",":""):"";for(let ee=0;ee<x;ee++)N+=_.substr(w+ee*3,3)+(ee<x-1?",":"");_=N}return g.length>0?_+"."+g:_}),l=f+l}}else l instanceof Date?l=Yr(l,u||s):l=Oe(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=qn(String(l),Math.abs(o)," ",o<0)),l})}function s_(e){return typeof e!="string"||e.length===0}function a_(e){return typeof e!="string"||/^\s*$/.test(e)}function Wn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function qn(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Io(e,t,n){return qn(e,t,n)}function u_(e,t,n){return qn(e,t,n,!0)}function Gu(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 i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Lu),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(l).trim():e.substring(l);(!i||c.length>0)&&s.push(c),u=!1}else{const c=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function l_(e,...t){if(t.length===0)return e.trim();const n="["+Lu(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function c_(e){throw new Error(e)}function Hu(e,t){return new Array(t)}const zu="Collection was empty.";function $o(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function un(e,t,n){const r=t.length|0,i=Hu(n,r);for(let o=0;o<=r-1;o++)bt(i,o,e(W(o,t)));return i}function f_(e,t){const n=Hu(t,1);return bt(n,0,e),n}function d_(e){return e.slice().reverse()}function h_(e,t){return t.find(e)}function __(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(W(i,t));if(o!=null){const s=b(o);r.push(s)}}return Re(n,F())?r:un(i=>i,r,n)}function Kn(e,t,n){const r=e;return n.reduce(r,t)}function p_(e,t,n){return t==null}function W(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function bt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function g_(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class wt extends Ee{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Wn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Re(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,u=o,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,i=(a<<1)+at(u.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),d=yt(s.head,a.head)|0;if(d===0){i=f,o=c;continue e}else return d|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return m_(this)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return J(this)}}class v_{constructor(t){this.xs=t,this.it=this.xs,this.current=F()}"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=b(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=F()}Dispose(){}}function m_(e){return new v_(e)}function ln(){return new wt(F(),void 0)}function Jn(e,t){return new wt(e,t)}function ti(e){return e.tail==null}function y_(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=b(s);continue e}else return i|0}})(0,e)|0}function Ro(e){if(e.tail!=null)return e.head;throw new Error(zu+"\\nParameter name: list")}function Zn(e){const t=e.tail;if(t!=null)return b(t);throw new Error(zu+"\\nParameter name: list")}function Ze(){return ln()}function Ne(e,t){return Jn(e,t)}function cn(e){return Jn(e,ln())}function R(e){return ti(e)}function C(e){return Ro(e)}function $(e){return Zn(e)}function ni(e){const t=y_(e)|0,n=$o(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!ti(a)){bt(n,s,Ro(a)),i=s+1,o=Zn(a);continue e}break}})(0,e),n}function ri(e,t,n){let r=t,i=n;for(;!ti(i);)r=e(r,C(i)),i=Zn(i);return r}function Po(e){return ri((t,n)=>Jn(n,t),ln(),e)}function z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Jn(W(r,e),n);return n}function Z(e){return z(e,ln())}function Wu(e){let t,n;if(Ke(e))return Z(e);if(e instanceof wt)return e;{const r=ln();let i=r;const o=J(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new wt(u,void 0),t.tail=n,n)}}finally{K(o)}const s=i,a=ln();return s.tail=a,Zn(r)}}function qu(e,t){return ri((n,r)=>Jn(r,n),t,Po(e))}function b_(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(ti(s))return;if(e(Ro(s)))return o;r=o+1,i=Zn(s);continue e}})(0,t)}function w_(e,t,n){return b_(r=>n.Equals(e,r),t)!=null}const S_="Enumeration already finished.",C_="Enumeration has not started. Call MoveNext.",O_="Reset is not supported on this enumerator.";function E_(){throw new Error(O_)}function Ku(){throw new Error(C_)}function Do(){throw new Error(S_)}class A_{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=J(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Oe(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{K(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function x_(e){return new A_(e)}class T_{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"(){E_()}Dispose(){this.dispose()}}function Ju(e,t,n){return new T_(e,t,n)}function k_(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=b(n);try{K(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{K(a)}finally{t=void 0}}};return Ju(()=>(r?i&&Do():Ku(),o!=null?b(o):Do()),()=>{let a;if(r||(r=!0),i)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=De(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{K(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),J(a)):(s(),u=!1)}else t=J(e)}return b(u)}},()=>{i||s()})}function Zu(e,t,n){let r=!1,i,o=De(e());const s=()=>{if(o!=null){const u=b(o);try{n(u)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Ju(()=>(r||Ku(),i!=null?b(i):Do()),()=>{if(r||(r=!0),o!=null){const u=b(o);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(i=l,!0):(a(),!1)}else return!1},s)}function M_(e,t){t==null&&c_(e)}function ii(e){return x_(e)}function fn(e){return M_("source",e),J(e)}function q(e){return ii(()=>J(e()))}function I_(e){return ii(()=>k_(e))}function T(e){return q(()=>f_(e))}function q0(e){return e}function $_(e){return e instanceof wt?ni(e):Array.from(e)}function oi(e){return Ke(e)?Z(e):e instanceof wt?e:Wu(e)}function R_(e,t,n){return ii(()=>Zu(e,t,n))}function P_(e,t,n){return ii(()=>{let r=-1;return Zu(e,i=>(r=r+1|0,t(r,i)),n)})}function te(e,t){return I_([e,t])}function D_(e,t,n){const r=fn(t);try{const i=fn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{K(i)}}finally{K(r)}}function dn(e,t,n){const r=fn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function si(e,t,n){const r=fn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function No(e,t){si((n,r)=>{e(r)},void 0,t)}function je(e,t){return R_(()=>fn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?De(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function N_(e,t){return P_(()=>fn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?De(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function j_(e){return q(()=>d_($_(e)))}const L_='/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.inline{display:inline}.w-100{width:calc(var(--spacing)*100)}.w-fit{width:fit-content}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pl-3{padding-left:calc(var(--spacing)*3)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring-gray-300{--tw-inset-ring-color:var(--color-gray-300)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:var(--color-gray-300)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}}.focus\\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-indigo-600:focus{outline-color:var(--color-indigo-600)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:var(--color-indigo-600)}.disabled\\:bg-gray-50:disabled{background-color:var(--color-gray-50)}.disabled\\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:var(--color-gray-200)}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}',V_=Oe(L_),Yu=X,Xu=Gs,F_=Jf,Qu=If,U_=Pf;function el(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}const B_=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,tl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,G_=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function H_(e){function t(r){return r.replace(tl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(B_.test(n))return l_(n,"{","}","(",")");if(tl.test(n))return t(n);if(G_.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 nl(e,t){try{return t.contents=H_(e),!0}catch{return!1}}function z_(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}let ai=Ze();function rl(e,t){try{return ai=Ne(t,ai),e()}finally{ai=$(ai)}}class W_{constructor(t,n){this.this=new ne(F()),this.this,this.state=t,this.description=n,this.this.contents=this,this.cleanupActions=void 0,this["init@56"]=1}get IsActive(){const n=this.cleanupActions;return n!=null?n.size>0:!1}AutoSubscribe(t,n,r,i){let o;const s=this,a=ol(s,n,r,i,(o=t.Description,Vt(Je("sub [%s] -> [%s]"))(o)(s.description))),u=a[0],l={Id:u,Detach(f){const c=d=>f===d;c(s.this.contents)?t.Remove(l):c(t)?Lo(s,u):Mo(Je("The notifier is not a party to this subscription: %A"))(f),a[1]()}};il(s,l),t.Add(l)}Subscribe(t,n,r){const i=this,o=ol(i,t,n,r,Vt(Je("sub [%s]"))(i.description)),s=o[0],a=o[1];return jo(i,u=>{el(u,s,a)}),{Dispose(){Lo(i,s)&&a()}}}get Description(){return this.description}Add(t){il(this,t)}Remove(t){Lo(this,t.Id)}Dispose(){const t=this,n=t.cleanupActions;if(n!=null){let i=J(n.values());try{for(;i["System.Collections.IEnumerator.MoveNext"]();)i["System.Collections.Generic.IEnumerator`1.get_Current"]()()}finally{K(i)}}t.cleanupActions=void 0}}function q_(e,t){return new W_(e,t)}function jo(e,t){const n=e.cleanupActions;if(n==null){const r=new Map([]);return e.cleanupActions=r,t(r)}else return t(n)}function il(e,t){jo(e,n=>{el(n,t.Id,()=>{t.Detach(e.this.contents)})})}function Lo(e,t){return jo(e,n=>n.delete(t))}function ol(e,t,n,r,i){const o=z_(),s={};return s.fireImmediately=r,s.name=i,[o,U_(()=>t(e.state()),n,s)]}class K_{constructor(t){const n=new ne(F());n.contents=this,this["init@17"]=1,n.contents.Content=t}}function J_(e){return new K_(e)}const sl=Symbol("annotations");function Z_(e){return{}}function Y_(e){let t,n;return F_(e,(t=e[sl],t!=null?(n=t,delete e[sl],n):{}))}const X_=Symbol("state");class al{constructor(t,n,r,i){let o,s,a,u,l;const f=new ne(F());this.update=n,f.contents=this;const c=i;this.queue=[],this.ready=!1,this.subject=q_(()=>_e(f.contents),"");const d=Qu(()=>rl(()=>t(g=>{this.ready?pe(f.contents,g):this.queue.push(g)}),this.subject));if(this.computed=Y_(r(d)),this.storage=Ao(c)?(o=Xu(d,Kn((g,v)=>(g[jt(v)]=Yu.ref,g),{},sn(c))),{Read:o,Write(g){Object.assign(o,g)}}):Eo(c)?(s=J_(d),a={},a.Content=Yu.struct,u=Xu(s,a),new class{get Read(){return u.Content}Write(g){u.Content=g}}):(()=>{throw new Error("State must be a record or union type")})(),this["init@97-1"]=1,Object.defineProperty(f.contents,"debugView",{enumerable:!0,get:()=>Oe(f.contents)}),this.queue.length>0){const g=Wu(this.queue);dh(this.queue),No((l=f.contents,v=>{pe(l,v)}),g)}const h=this.computed,_=this.storage;h[X_]=_,this.ready=!0}toString(){const n=this.storage.Read;return Vt(Je("%A"))(n)}get IsActive(){return Vo(this,n=>n.IsActive)}AutoSubscribe(t,n,r,i){Vo(this,s=>{s.AutoSubscribe(t,n,r,i)})}Subscribe(t,n,r){return Vo(this,o=>o.Subscribe(t,n,r))}Dispose(){K(this.subject)}}function Q_(e,t,n,r){return new al(e,t,n,r)}function _e(e){return e.storage.Read}function hn(e){return e.computed}function pe(e,t){if(e.queue.push(t),e.queue.length===1)for(;e.queue.length>0;){const n=e.queue[0];Qu(()=>{rl(()=>{const r=e.update([e.storage.Read,i=>{pe(e,i)},hn(e)],n);e.storage.Write(r)},e.subject)}),e.queue.splice(0,1)}}function Vo(e,t){return t(e.subject)}class ep extends al{constructor(t,n,r){super(t,n,Z_,r),this["init@221-2"]=1}}function tp(e,t,n){return new ep(e,t,n)}const lt=Vr;class np extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["UnverifiedConnection"]}}function rp(e){if(e_(/^[a-z0-9-]{3,32}$/gu,e))return new np(e)}class ip extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientId"]}}function op(e){let t,n="00000000-0000-0000-0000-000000000000";if(t=[nl(e,new ne(()=>n,r=>{n=r})),n],t[0])return new ip(t[1])}class sp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientSecret"]}}function ap(e){if(!(a_(e)||e.length<20))return new sp(e)}let up=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}};class lp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}new lp(0,[new up(2,[])]);class cp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TruncatedClientSecret"]}}function fp(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.TruncatedClientSecret",[],cp,()=>[[["Item",ut]]])}function dp(e){return e.fields[0]}class hp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function _p(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.SSOConfigDto",[],hp,()=>[[["Item",Cu(["ClientId",Ah("System.Guid")],["Connection",ut],["TruncatedClientSecret",fp()])]]])}class pp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function gp(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginMethodDto",[],pp,()=>[[["Item",_p()]],[],[]])}class vp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}function Fo(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginConfigDto",[],vp,()=>[[["Item",gp()]],[]])}class ul extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function mp(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.SSOConfigDto",[],ul,()=>[[["Item",Cu(["ClientId",ut],["ClientSecret",ut],["Connection",ut])]]])}class ui extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function yp(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginMethodDto",[],ui,()=>[[["Item",mp()]],[],[]])}class Yn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enable","Disable"]}}function bp(){return Pe("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginConfigCommandDto",[],Yn,()=>[[["Item",yp()]],[]])}function li(e){let t;return E("input",ce(Z([(t="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 disabled:bg-gray-50 disabled:text-gray-500 disabled:outline-gray-200 text-sm/6",["className",t]),["disabled",!0],["value",e]])))}function Xn(e){return E("label",{className:"mt-2 block text-sm/6 font-medium text-gray-900",children:e})}function wp(e){const t=oi(q(()=>{let n,r;return te(T((n=Z([Xn("Login method"),li((r=e.LoginConfig,r.tag===0?r.fields[0].tag===1?"Magic Link":r.fields[0].tag===0?"EntraID SSO":"Partner Token":"Disabled"))]),E("div",{children:lt.Children.toArray(Array.from(n))}))),q(()=>{let i,o,s,a;return te((i=e.LoginConfig,i.tag===0?i.fields[0].tag===1?T(F()):i.fields[0].tag===0?(o=i.fields[0].fields[0].fields[0],T(E("div",ce(Z([["className","mt-4"],(s=[E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"}),Xn("Connection"),li(o.Connection),Xn("Client ID"),li((a=o.ClientId,a)),Xn("Client Secret"),li(`**********${dp(o.TruncatedClientSecret)}`)],["children",lt.Children.toArray(Array.from(s))])]))))):T(F()):T(F())),q(()=>{let u;const l=e.OnEdit;if(l!=null){const f=l;return T(E("button",ce(Z([["type","button"],(u="mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer",["className",u]),["onClick",c=>{f()}],["children","✏️ Edit"]]))))}else return T(F())}))}))}));return E("div",{children:lt.Children.toArray(Array.from(t))})}function Sp(e){return new p(0,[e])}function ll(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ct(e,t){return t.tag===0?Sp(e(t.fields[0])):ll(t.fields[0])}function Cp(e,t){return t.tag===0?e(t.fields[0]):ll(t.fields[0])}function Op(e,t){t.tag===0&&e(t.fields[0])}class Uo extends Ee{constructor(t){super(),this.ConfigureLogin=t}}function Ep(){return Bn("ApolloIdentity.AdminUI.Roles",[],Uo,()=>[["ConfigureLogin",kh]])}function Ap(e){return new Uo(w_("Identity.ConfigureLogin",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:Br}))}const xp=new Uo(!1);class S extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Qn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function cl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function fl(e,t){switch(e.tag){case 2:return t_(cl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return cl(t)}}var Bo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Bo||(Bo={}));function Tp(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function dl(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 kp(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 Mp(e,t){if(t&Bo.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 Ip(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Mp(o,t),!kp(n).test(s))return Tp(i,n)}return null}function $p(e,t,n,r,i){const o=Ip(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,u]=dl(!0,r);!n&&o.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=dl(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function _n(e,t,n,r,i){try{return i.contents=$p(e,t,n,r),!0}catch{return!1}}function hl(e,t){Rp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Rp(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 Pp(){return hl(-621355968e5,0)}function Dp(e){const[t,n]=Ru(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return hl(t.getTime(),r)}function Np(e,t){try{return t.contents=Dp(e),!0}catch{return!1}}function er(e){return e<0?Math.ceil(e):Math.floor(e)}function _l(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return jp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function jp(e){return Number(BigInt(e)/10000n)}function Lp(e){return er(e/864e5)}function Vp(e){return er(e%864e5/36e5)}function Fp(e){return er(e%36e5/6e4)}function Up(e){return er(e%6e4/1e3)}function Bp(e){return er(e%1e3)}function Gp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Lp(e)),i=Math.abs(Vp(e)),o=Math.abs(Fp(e)),s=Math.abs(Up(e)),a=Math.abs(Bp(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:D(i,2)}:${D(o,2)}:${D(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+D(a,3):"."+ih(a,3,7)}`}function Hp(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 _l(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 i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*_l(i,u,l,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function zp(e,t){try{return t.contents=Hp(e),!0}catch{return!1}}class pl{constructor(t,n){this.k=t,this.v=n}}function ci(e,t){return new pl(e,t)}function re(e){return e.k}function ge(e){return e.v}class Y extends pl{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function fi(e,t,n,r,i){return new Y(e,t,n,r,i)}function ie(e){return e.left}function oe(e){return e.right}function Ft(e){return e.h}function K0(){}function gl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof Y){const o=i;e=gl(n+1,ie(o)),t=oe(o);continue e}else return n+1|0}else return n|0}}function Wp(e){return gl(0,e)}function Le(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=b(a);s=c instanceof Y?(i=c,Ft(i)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof Y?(o=c,Ft(o)):1}else u=0;const f=(s<u?u:s)|0;return f===0?ci(t,n):fi(t,n,e,r,f+1)}function vl(e,t,n,r){let i,o,s,a,u,l,f,c,d;const h=e;if(h!=null){const v=b(h);d=v instanceof Y?(i=v,Ft(i)):1}else d=0;let _;const g=r;if(g!=null){const v=b(g);_=v instanceof Y?(o=v,Ft(o)):1}else _=0;if(_>d+2){const v=b(r);if(v instanceof Y){const m=v;if(s=ie(m),(s!=null?(a=b(s),a instanceof Y?(u=a,Ft(u)):1):0)>d+1){const w=b(ie(m));if(w instanceof Y){const x=w;return Le(Le(e,t,n,ie(x)),re(x),ge(x),Le(oe(x),re(m),ge(m),oe(m)))}else throw new Error("internal error: Map.rebalance")}else return Le(Le(e,t,n,ie(m)),re(m),ge(m),oe(m))}else throw new Error("internal error: Map.rebalance")}else if(d>_+2){const v=b(e);if(v instanceof Y){const m=v;if(l=oe(m),(l!=null?(f=b(l),f instanceof Y?(c=f,Ft(c)):1):0)>_+1){const w=b(oe(m));if(w instanceof Y){const x=w;return Le(Le(ie(m),re(m),ge(m),ie(x)),re(x),ge(x),Le(oe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Le(ie(m),re(m),ge(m),Le(oe(m),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Le(e,t,n,r)}function pn(e,t,n,r){if(r!=null){const i=b(r),o=e.Compare(t,re(i))|0;if(i instanceof Y){const s=i;return o<0?vl(pn(e,t,n,ie(s)),re(s),ge(s),oe(s)):o===0?fi(t,n,ie(s),oe(s),Ft(s)):vl(ie(s),re(s),ge(s),pn(e,t,n,oe(s)))}else return o<0?fi(t,n,void 0,r,2):o===0?ci(t,n):fi(t,n,r,void 0,2)}else return ci(t,n)}function ml(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(a===0)return De(ge(s));if(s instanceof Y){const u=s;e=r,t=i,n=a<0?ie(u):oe(u);continue e}else return}else return}}function qp(e,t,n){const r=ml(e,t,n);if(r==null)throw new Error;return b(r)}function Kp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(s instanceof Y){const u=s;if(a<0){e=r,t=i,n=ie(u);continue e}else{if(a===0)return!0;e=r,t=i,n=oe(u);continue e}}else return a===0}else return!1}}function yl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof Y){const o=i;yl(n,ie(o)),n(re(o),ge(o)),e=n,t=oe(o);continue e}else n(re(i),ge(i))}break}}function Jp(e,t){yl(e,t)}function Zp(e,t,n){let r=n;Jp((i,o)=>{bt(t,r,[i,o]),r=r+1|0},e)}function Yp(e,t){return ri((n,r)=>pn(e,r[0],r[1],n),void 0,t)}function Xp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=pn(r,s[0],s[1],i),n=o;continue e}else return i}}function Qp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=W(r,t);n=pn(e,i[0],i[1],n)}return n}function bl(e,t){if(Ke(t))return Qp(e,t);if(t instanceof wt)return Yp(e,t);{const n=J(t);try{return Xp(e,void 0,n)}finally{K(n)}}}class eg extends Ee{constructor(t,n){super(),this.stack=t,this.started=n}}function wl(e){e:for(;;){const t=e;if(R(t))return Ze();{const n=$(t),r=C(t);if(r!=null){const i=b(r);if(i instanceof Y){const o=i;e=z([ie(o),ci(re(o),ge(o)),oe(o)],n);continue e}else return t}else{e=n;continue e}}}}function Sl(e){return new eg(wl(cn(e)),!1)}function tg(){throw new Error("enumeration not started")}function ng(){throw new Error("enumeration already finished")}function Cl(e){if(e.started){const t=e.stack;if(R(t))return ng();if(C(t)!=null){const n=b(C(t));if(n instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),ge(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return tg()}function rg(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof Y)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=wl($(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Ol(e){let t=Sl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Cl(t)},"System.Collections.IEnumerator.get_Current"(){return Cl(t)},"System.Collections.IEnumerator.MoveNext"(){return rg(t)},"System.Collections.IEnumerator.Reset"(){t=Sl(e)},Dispose(){}}}class di{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ag(this)|0}Equals(t){const n=this;if(t instanceof di){const r=t,i=J(n);try{const o=J(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Re(u[0],l[0])&&Re(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{K(o)}}finally{K(i)}}else return!1}toString(){return"map ["+Wn("; ",je(n=>o_("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Ol(this.tree)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ol(this.tree)}CompareTo(t){const n=this;if(t instanceof di)return D_((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:yt(i[1],o[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 Al(n,t[0])&&Re(El(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Zp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Go(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Go(this)|0}get size(){return Go(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return je(n=>[n[0],n[1]],this)}get(t){return El(this,t)}has(t){return Al(this,t)}keys(){return je(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;No(i=>{t(i[1],i[0],r)},r)}}function hi(e,t){return new di(e,t)}function ig(e){return hi(e,void 0)}function og(e,t,n){return hi(e.comparer,pn(e.comparer,t,n,e.tree))}function El(e,t){return qp(e.comparer,t,e.tree)}function Go(e){return Wp(e.tree)}function Al(e,t){return Kp(e.comparer,t,e.tree)}function sg(e,t){return ml(e.comparer,t,e.tree)}function ag(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=J(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,at(i[0]))|0,n=t(n,at(i[1]))|0}}finally{K(r)}return n|0}function xl(e,t,n){return og(n,e,t)}function Tl(e,t){return sg(t,e)}function ug(e,t){return hi(t,bl(t,e))}function lg(e,t){return hi(t,bl(t,e))}function Ho(e){return ig(e)}class kl{constructor(t){this.k=t}}function ve(e){return new kl(e)}function A(e){return e.k}class P extends kl{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function me(e,t,n,r){return new P(e,t,n,r)}function B(e){return e.left}function L(e){return e.right}function gn(e){return e.h}function J0(){}function Ml(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=B(o),t=Ml(L(o),r+1);continue e}else return r+1|0}else return r|0}}function cg(e){return Ml(e,0)}function Ve(e,t,n){let r,i,o;const s=e;if(s!=null){const f=b(s);o=f instanceof P?(r=f,gn(r)):1}else o=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof P?(i=f,gn(i)):1}else a=0;const l=(o<a?a:o)|0;return l===0?ve(t):me(t,e,n,l+1)}function Il(e,t,n){let r,i,o,s,a,u,l,f,c;const d=e;if(d!=null){const g=b(d);c=g instanceof P?(r=g,gn(r)):1}else c=0;let h;const _=n;if(_!=null){const g=b(_);h=g instanceof P?(i=g,gn(i)):1}else h=0;if(h>c+2){const g=b(n);if(g instanceof P){const v=g;if(o=B(v),(o!=null?(s=b(o),s instanceof P?(a=s,gn(a)):1):0)>c+1){const m=b(B(v));if(m instanceof P){const w=m;return Ve(Ve(e,t,B(w)),A(w),Ve(L(w),A(v),L(v)))}else throw new Error("internal error: Set.rebalance")}else return Ve(Ve(e,t,B(v)),A(v),L(v))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=b(e);if(g instanceof P){const v=g;if(u=L(v),(u!=null?(l=b(u),l instanceof P?(f=l,gn(f)):1):0)>h+1){const m=b(L(v));if(m instanceof P){const w=m;return Ve(Ve(B(v),A(v),B(w)),A(w),Ve(L(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ve(B(v),A(v),Ve(L(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return Ve(e,t,n)}function tr(e,t,n){if(n!=null){const r=b(n),i=e.Compare(t,A(r))|0;if(r instanceof P){const o=r;return i<0?Il(tr(e,t,B(o)),A(o),L(o)):i===0?n:Il(B(o),A(o),tr(e,t,L(o)))}else{const o=e.Compare(t,A(r))|0;return o<0?me(t,void 0,n,2):o===0?n:me(t,n,void 0,2)}}else return ve(t)}function $l(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,A(s))|0;if(s instanceof P){const u=s;if(a<0){e=r,t=i,n=B(u);continue e}else{if(a===0)return!0;e=r,t=i,n=L(u);continue e}}else return a===0}else return!1}}function Rl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof P){const o=i;Rl(n,B(o)),n(A(o)),e=n,t=L(o);continue e}else n(A(i))}break}}class fg extends Ee{constructor(t,n){super(),this.stack=t,this.started=n}}function Pl(e){e:for(;;){const t=e;if(R(t))return Ze();{const n=C(t),r=$(t);if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=z([B(o),ve(A(o)),L(o)],r);continue e}else return t}else{e=r;continue e}}}}function Dl(e){return new fg(Pl(cn(e)),!1)}function dg(){throw new Error("Enumeration not started")}function hg(){throw new Error("Enumeration already started")}function Nl(e){if(e.started){const t=e.stack;if(R(t))return hg();if(C(t)!=null){const n=b(C(t));return A(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return dg()}function _g(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Pl($(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function jl(e){let t=Dl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Nl(t)},"System.Collections.IEnumerator.get_Current"(){return Nl(t)},"System.Collections.IEnumerator.MoveNext"(){return _g(t)},"System.Collections.IEnumerator.Reset"(){t=Dl(e)},Dispose(){}}}function pg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(R(i))return R(o)?0:-1;if(R(o))return 1;if(C(o)!=null)if(C(i)!=null){const s=b(C(i)),a=b(C(o));if(s instanceof P){const u=s;if(B(u)==null)if(a instanceof P){const l=a;if(B(l)==null){const f=r.Compare(A(u),A(l))|0;if(f!==0)return f|0;e=r,t=Ne(L(u),$(i)),n=Ne(L(l),$(o));continue e}else{let f,c,d,h,_;switch(R(i)?R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2:C(i)!=null?(f=0,c=$(i),d=b(C(i))):R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2,f){case 0:if(d instanceof P){const g=d;e=r,t=z([B(g),me(A(g),void 0,L(g),0)],c),n=o;continue e}else{e=r,t=z([void 0,ve(A(d))],c),n=o;continue e}case 1:if(_ instanceof P){const g=_;e=r,t=i,n=z([B(g),me(A(g),void 0,L(g),0)],h);continue e}else{e=r,t=i,n=z([void 0,ve(A(_))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(A(u),A(a))|0;if(l!==0)return l|0;e=r,t=Ne(L(u),$(i)),n=Ne(void 0,$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),me(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,ve(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),me(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,ve(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const u=a;if(B(u)==null){const l=r.Compare(A(s),A(u))|0;if(l!==0)return l|0;e=r,t=Ne(void 0,$(i)),n=Ne(L(u),$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),me(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,ve(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),me(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,ve(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(A(s),A(a))|0;if(u!==0)return u|0;e=r,t=$(i),n=$(o);continue e}}else{b(C(o));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),me(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,ve(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),me(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,ve(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(i)!=null){b(C(i));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),me(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,ve(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),me(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,ve(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=$(i),n=$(o);continue e}}}function Ll(e,t,n){return t==null?n==null?0:-1:n==null?1:pg(e,cn(t),cn(n))|0}function gg(e,t,n){let r=n;Rl(i=>{bt(t,r,i),r=r+1|0},e)}function vg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=tr(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function mg(e,t){return Kn((n,r)=>tr(e,r,n),void 0,t)}function yg(e,t){return ri((n,r)=>tr(e,r,n),void 0,t)}function bg(e,t){if(Ke(t))return mg(e,t);if(t instanceof wt)return yg(e,t);{const n=J(t);try{return vg(e,void 0,n)}finally{K(n)}}}class zo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Cg(this)|0}Equals(t){let n;const r=this;return t instanceof zo&&(n=t,Ll(_i(r),Ye(r),Ye(n))===0)}toString(){return"set ["+Wn("; ",je(n=>Oe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ll(_i(n),Ye(n),Ye(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 $l(_i(n),t,Ye(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){gg(Ye(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wo(this)|0}GetEnumerator(){return jl(Ye(this))}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return jl(Ye(this))}get size(){return Wo(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 Sg(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;No(i=>{t(i,i,r)},r)}}function wg(e,t){return new zo(e,t)}function _i(e){return e.comparer}function Ye(e){return e.tree}function Wo(e){return cg(Ye(e))}function Sg(e,t){return $l(_i(e),t,Ye(e))}function Cg(e){let t=0;const n=J(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+at(r)+631|0}}finally{K(n)}return Math.abs(t)|0}function Og(e,t){return wg(t,bg(t,e))}function nr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
11
|
+
*/var fu;function zd(){if(fu)return go;fu=1;var e=Hd;function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(c,d){var h=d(),_=r({inst:{value:h,getSnapshot:d}}),g=_[0].inst,v=_[1];return o(function(){g.value=h,g.getSnapshot=d,u(g)&&v({inst:g})},[c,h,d]),i(function(){return u(g)&&v({inst:g}),c(function(){u(g)&&v({inst:g})})},[c]),s(h),h}function u(c){var d=c.getSnapshot;c=c.value;try{var h=d();return!n(c,h)}catch{return!0}}function l(c,d){return d()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?l:a;return go.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,go}var du;function Wd(){return du||(du=1,po.exports=zd()),po.exports}var qd=Wd();function hu(e){e.reaction=new ze("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function Kd(e,t){t===void 0&&(t="observed");var n=Vr.useRef(null);if(!n.current){var r={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(a){return _o.unregister(r),r.onStoreChange=a,r.reaction||(hu(r),r.stateVersion=Symbol()),function(){var u;r.onStoreChange=null,(u=r.reaction)===null||u===void 0||u.dispose(),r.reaction=null}},getSnapshot:function(){return r.stateVersion}};n.current=r}var i=n.current;i.reaction||(hu(i),_o.register(n,i,i)),Vr.useDebugValue(i.reaction,Ld),qd.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var o,s;if(i.reaction.track(function(){try{o=e()}catch(a){s=a}}),s)throw s;return o}var vo,mo,_u=typeof Symbol=="function"&&Symbol.for,Jd=(mo=(vo=Object.getOwnPropertyDescriptor(function(){},"name"))===null||vo===void 0?void 0:vo.configurable)!==null&&mo!==void 0?mo:!1,pu=_u?Symbol.for("react.forward_ref"):typeof Fn=="function"&&Fn(function(e){return null}).$$typeof,gu=_u?Symbol.for("react.memo"):typeof Vn=="function"&&Vn(function(e){return null}).$$typeof;function vu(e,t){var n;if(gu&&e.$$typeof===gu)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var r=(n=void 0)!==null&&n!==void 0?n:!1,i=e,o=e.displayName||e.name;if(pu&&e.$$typeof===pu&&(r=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var s=function(a,u){return Kd(function(){return i(a,u)},o)};return s.displayName=e.displayName,Jd&&Object.defineProperty(s,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(s.contextTypes=e.contextTypes),r&&(s=Fn(s)),s=Vn(s),Yd(e,s),s}var Zd={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Yd(e,t){Object.keys(e).forEach(function(n){Zd[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var yo;jd(ho),yo=_o.finalizeAllImmediately;function Je(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Xd(e){return e!=null&&typeof e.GetEnumerator=="function"}function Qd(e){return e!=null&&typeof e.CompareTo=="function"}function eh(e){return e!=null&&typeof e.Equals=="function"}function th(e){return e!=null&&typeof e.GetHashCode=="function"}function nh(e){return e!=null&&typeof e.Dispose=="function"}function K(e){nh(e)&&e.Dispose()}function F(){return null}function Fr(e,t){return Object.getPrototypeOf(e)?.constructor===Object.getPrototypeOf(t)?.constructor}class rh{constructor(t){this.iter=t,this.current=F()}"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 J(e){return Xd(e)?e.GetEnumerator():new rh(e[Symbol.iterator]())}function Ur(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 ih{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 D(e,t){return e.toString(10).padStart(t,"0")}function oh(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function mu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function sh(e,t){return e=e,e.toString(t)}function Nt(e,t){return e=e,e.toString(t)}class mt{static id(t){return mt.idMap.has(t)||mt.idMap.set(t,++mt.count),mt.idMap.get(t)}}mt.idMap=new WeakMap,mt.count=0;function Br(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function at(e){return e*2654435761|0}function ah(e){return Br(e.toString(32))}function Gn(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function uh(e){return e.getTime()}function lh(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=ut(e[r]);return Gn(n)}function ut(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return at(e);case"bigint":return ah(e);case"string":return Br(e);default:{if(th(e))return e.GetHashCode();if(Je(e))return lh(e);if(e instanceof Date)return uh(e);if(Object.getPrototypeOf(e)?.constructor===Object){const t=Object.values(e).map(n=>ut(n));return Gn(t)}else return at(mt.id(e))}}}function bo(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 yu(e,t){return bo(e,t,Pe)}function ch(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!Pe(e[n[i]],t[r[i]]))return!1;return!0}function Pe(e,t){return e===t?!0:e==null?t==null:t==null?!1:eh(e)?e.Equals(t):Je(e)?Je(t)&&yu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&bu(e,t)===0:Object.getPrototypeOf(e)?.constructor===Object&&ch(e,t)}function bu(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+mu(e),r=t.getTime()+mu(t)),n===r?0:n<r?-1:1}function Gr(e,t){return e===t?0:e<t?-1:1}function fh(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,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function wu(e,t){return fh(e,t,yt)}function dh(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 i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=yt(e[s],t[s]),o!==0)return o}return 0}function yt(e,t){return e===t?0:e==null?t==null?0:-1:t==null?1:Qd(e)?e.CompareTo(t):Je(e)?Je(t)?wu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?bu(e,t):-1:Object.getPrototypeOf(e)?.constructor===Object?dh(e,t):-1}function fe(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function hh(e){Je(e)?e.splice(0):e.clear()}const Su=new WeakMap;function Z(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Su.set(t,e),t}function _h(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Su.set(t,e),t}function ph(e){let t=0,n="[";for(const r of e){if(t===0)n+=Ee(r);else if(t===100){n+="; ...";break}else n+="; "+Ee(r);t++}return n+"]"}function Ee(e,t=0){if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return ph(e);{const n=Object.getPrototypeOf(e)?.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([r,i])=>r+" = "+Ee(i,t+1)).join(`
|
|
12
|
+
`)+" }":n?.name??""}}return String(e)}function gh(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Ee(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Ee(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class U{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return gh(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>ut(n));return t.splice(0,0,at(this.tag)),Gn(t)}Equals(t){return this===t?!0:Fr(this,t)&&this.tag===t.tag?yu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Fr(this,t)?this.tag===t.tag?wu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function vh(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function mh(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Ee(n)).join(`
|
|
13
|
+
`)+" }"}function yh(e){const t=Object.values(e).map(n=>ut(n));return Gn(t)}function bh(e,t){if(e===t)return!0;if(Fr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function wh(e,t){if(e===t)return 0;if(Fr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=yt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class de{toJSON(){return vh(this)}toString(){return mh(this)}GetHashCode(){return yh(this)}Equals(t){return bh(this,t)}CompareTo(t){return wh(this,t)}}class ne{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 Sh{constructor(t){this.message=t}}function Ch(e){return e instanceof Sh||e instanceof Error}function Oh(e){return e instanceof Promise}function Hr(e){return Ch(e)||Oh(e)?e:new Error(String(e))}const nn=Symbol("numeric");function Cu(e){return typeof e=="number"||typeof e=="bigint"||e?.[nn]}function Eh(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function wo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[nn]().multiply(t)}function zr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[nn]().toFixed(t)}function Wr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[nn]().toPrecision(t)}function qr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[nn]().toExponential(t)}function Kr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[nn]().toHex()}class Ah{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class ae{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return G(this)}GetHashCode(){return Ou(this)}Equals(t){return So(this,t)}}function he(e){return e.generics!=null?e.generics:[]}function Ou(e){const t=Br(e.fullname),n=he(e).map(Ou);return Gn([t,...n])}function So(e,t){return e.fullname===""?t.fullname===""&&bo(an(e),an(t),([n,r],[i,o])=>n===i&&So(r,o)):e.fullname===t.fullname&&bo(he(e),he(t),So)}function xh(e,t,n,r){return new ae(e,t,n,r)}function rn(e,t,n,r){return new ae(e,t,n,void 0,r)}function Eu(...e){return new ae("",void 0,void 0,void 0,()=>e)}function De(e,t,n,r){const i=new ae(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new Ah(i,a,o[a],s))});return i}function Co(e){return new ae("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Th(e){return new ae("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Mh=new ae("System.Object"),Au=new ae("Microsoft.FSharp.Core.Unit"),Ae=new ae("System.String"),kh=new ae("System.Boolean");function jt(e){if(Array.isArray(e))return e[0];if(e instanceof ae){const t=Hn(e);if(t!=null)return jt(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function G(e){const t=Hn(e);return t!=null?G(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>G(n)).join(",")+"]"}function xu(e){return Hn(e)!=null}function Hn(e){return e.fullname==="[]"&&e.generics?.length===1?e.generics[0]:void 0}function Tu(e){return e.generics!=null&&e.generics.length>0}function Oo(e){return e.enumCases!=null&&e.enumCases.length>0}function Mu(e){return e.generics==null?e:new ae(e.fullname,e.generics.map(()=>Mh))}function ku(e){return e.generics?.[0]}function on(e){if(Oo(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Ih(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 sn(e,t){const n=parseInt(t,10);return Ih(e,isNaN(n)?t:n)[1]}function Iu(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function an(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function $u(e){if(xo(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Eo(e){return e instanceof ae?e.cases!=null:e instanceof U}function Ao(e){return e instanceof ae?e.fields!=null:e instanceof de}function xo(e){return e.fullname.startsWith("System.Tuple")}function $h(e,t){const r=Iu(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Ru(e){return e.fields==null?[]:e.fields}function Rh(e,t){return e[t[0]]}function J0(e){return e}function Ph(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 Dh(e,t){const n=an(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,[i,o],s)=>(r[i]=t[s],r),{})}function Nh(e,t){return e}class Lt{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return ut(this.value)}Equals(t){return t==null?!1:Pe(this.value,t instanceof Lt?t.value:t)}CompareTo(t){return t==null?1:yt(this.value,t instanceof Lt?t.value:t)}}function b(e){if(e==null)throw new Error("Option has no value");return e instanceof Lt?e.value:e}function jh(e){return e instanceof Lt?e.value:e}function Ne(e){return e==null||e instanceof Lt?new Lt(e):e}function To(e,t){return e!=null?b(e):t}function Lh(e,t){return e!=null?b(e):t()}function Vh(e,t){return t!=null?Ne(e(b(t))):void 0}const Fh=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Bh=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Gh=["January","February","March","April","May","June","July","August","September","October","November","December"];function _e(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Pu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Hh(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Mo(e,t,n){let r=0,i=0,o="";const s=n?zn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=_e(t,r,"d"),r+=i,i){case 1:o+=ju(s);break;case 2:o+=D(ju(s),2);break;case 3:o+=Fh[Fu(s)];break;case 4:o+=Uh[Fu(s)];break}break;case"f":if(i=_e(t,r,"f"),r+=i,i<=3){const v=10**(3-i);o+=D(Math.floor(Xr(s)/v),i)}else i<=7&&(o+=(""+Xr(s)).padEnd(i,"0"));break;case"F":if(i=_e(t,r,"F"),r+=i,i<=3){const v=10**(3-i),m=Math.floor(Xr(s)/v);m!=0&&(o+=D(m,i))}else if(i<=7){const v=Xr(s);v!=0&&(o+=D(v,3))}break;case"g":i=_e(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=_e(t,r,"h"),r+=i,i){case 1:o+=Yr(s)%12;break;case 2:o+=D(Yr(s)%12,2);break}break;case"H":switch(i=_e(t,r,"H"),r+=i,i){case 1:o+=Yr(s);break;case 2:o+=D(Yr(s),2);break}break;case"K":switch(i=_e(t,r,"K"),r+=i,i){case 1:switch(Du(s)){case 1:o+="Z";break;case 2:o+=un(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=_e(t,r,"m"),r+=i,i){case 1:o+=Lu(s);break;case 2:o+=D(Lu(s),2);break}break;case"M":switch(i=_e(t,r,"M"),r+=i,i){case 1:o+=Qr(s);break;case 2:o+=D(Qr(s),2);break;case 3:o+=Bh[Qr(s)-1];break;case 4:o+=Gh[Qr(s)-1];break}break;case"s":switch(i=_e(t,r,"s"),r+=i,i){case 1:o+=Vu(s);break;case 2:o+=D(Vu(s),2);break}break;case"t":switch(i=_e(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=_e(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=D(s.getFullYear()%100,2);break;case 3:o+=D(s.getFullYear(),3);break;case 4:o+=D(s.getFullYear(),4);break;case 5:o+=D(s.getFullYear(),5);break}break;case"z":i=_e(t,r,"z"),r+=i;let u="";switch(Du(s)){case 1:u="+00:00";break;case 2:u=un(s.getTimezoneOffset()*-6e4);break;case 0:u=un(Qh(s).getTimezoneOffset()*-6e4);break}const l=u[0]==="-"?"-":"+",f=parseInt(u.substring(1,3),10),c=parseInt(u.substring(4,6),10);switch(i){case 1:o+=`${l}${f}`;break;case 2:o+=`${l}${D(f,2)}`;break;default:o+=`${l}${D(f,2)}:${D(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[d,h]=Hh(t,r);o+=d,r+=h;break;case"%":const _=Pu(t,r);if(_>=0&&_!==37)r+=2,o+=Mo(s,String.fromCharCode(_),n);else throw new Error("Invalid format string");break;case"\\":const g=Pu(t,r);if(g>=0)r+=2,o+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Du(e){return e.kind||0}function un(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+D(n,2)+":"+D(r,2)}function Jr(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 zh(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return D(e.getFullYear(),4)+"-"+D(e.getMonth()+1,2)+"-"+D(e.getDate(),2)+"T"+D(e.getHours(),2)+":"+D(e.getMinutes(),2)+":"+D(e.getSeconds(),2)+"."+D(e.getMilliseconds(),3)+(n?un(e.getTimezoneOffset()*-6e4):"")}}function Wh(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+un(t)}function qh(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," ")+un(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Jr(n,"first");case"T":case"t":return Jr(n,"second");case"O":case"o":return Wh(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Mo(n,t,!0)}function Kh(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?Jr(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Jr(e,"second"):e.toLocaleTimeString();case"O":case"o":return zh(e,n);default:throw new Error("Unrecognized Date print format")}else return Mo(e,t,n)}function Zr(e,t,n){return e.offset!=null?qh(e,t):Kh(e,t)}function zn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Jh(){return zn(-621355968e5,1)}function Nu(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 i=/^\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(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),u=parseInt(a[0],10);s=u*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&u<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Zh(e,t=!1){const[n,r]=Nu(e),i=r!=null?t&&r==="Z"?1:2:0;return zn(n.getTime(),i)}function Yh(e,t){try{return t.contents=Zh(e),!0}catch{return!1}}function Xh(e){return e.kind===1?e:zn(e.getTime(),1)}function Qh(e){return e.kind===2?e:zn(e.getTime(),2)}function ju(e){return e.kind===1?e.getUTCDate():e.getDate()}function Yr(e){return e.kind===1?e.getUTCHours():e.getHours()}function Xr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Lu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Qr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Vu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Fu(e){return e.kind===1?e.getUTCDay():e.getDay()}function e_(e,t=0){if((t&-284)!==0)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 Uu(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function t_(e,t,n=0){return e.lastIndex=n,e.test(t)}function Bu(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 i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function n_(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],u=arguments.length,l=typeof arguments[u-1]!="string";let f=l?u-3:u-2;for(let c=0;c<f;c++)a.push(arguments[c]);a.index=arguments[f++],a.input=arguments[f++],l&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=e_(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),u=Bu(e,a),l=Bu.length>r?(s=u[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+l.replace(e,n)+t.substring(i+l.length)}else return t.replace(e,n)}const Wn=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,r_=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Gu(e,t){return Eh(e,t)<0}function Ze(e){return{input:e,cont:o_(e)}}function Hu(e,t){return typeof t=="string"?e(t):t.cont(e)}function Vt(e){return Hu(t=>t,e)}function ko(e){return Hu(t=>{throw new Error(t)},e)}function i_(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Cu(e))switch(i.toLowerCase()!=="x"&&(Gu(e,0)?(e=wo(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=zr(e,r);break;case"g":case"G":e=r!=null?Wr(e,r):Wr(e);break;case"e":case"E":e=r!=null?qr(e,r):qr(e);break;case"x":e=Kr(e);break;case"X":e=Kr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Zr(e):e=Ee(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,u=a||!s?" ":"0";u==="0"?(e=Kn(e,n-o.length,u,a),e=o+e):e=Kn(o+e,n,u,a)}return e}function zu(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),u=n.slice();for(const l of o){const[,,f,c,d,h]=u[0];let _=c;if(i>=0)_=i,i=-1;else if(_==="*"){if(l<0)throw new Error("Non-negative number required");i=l;continue}s+=a[0],s+=i_(l,f,_,d,h),a.splice(0,1),u.splice(0,1)}return u.length===0?(s+=a[0],e(s)):zu(e,a,u,s,i)}}function o_(e){return t=>{Wn.lastIndex=0;const n=[],r=[];let i=0,o=Wn.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Wn.lastIndex,Wn.lastIndex-=1,o=Wn.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),zu(t,n,r))}}function s_(e,...t){let n;return n=e,n.replace(r_,(r,i,o,s,a,u)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let l=t[i];if(Cu(l))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,l=zr(l,a);break;case"g":case"G":l=a!=null?Wr(l,a):Wr(l);break;case"e":case"E":l=a!=null?qr(l,a):qr(l);break;case"p":case"P":a=a??2,l=zr(wo(l,100),a)+" %";break;case"d":case"D":l=a!=null?Io(String(l),a,"0"):String(l);break;case"x":case"X":l=a!=null?Io(Kr(l),a,"0"):Kr(l),s==="X"&&(l=l.toUpperCase());break;default:if(u){let f="";l=u.replace(/([0#,]+)(\.[0#]+)?/,(c,d,h)=>{Gu(l,0)&&(l=wo(l,-1),f="-"),h=h==null?"":h.substring(1),l=zr(l,Math.max(h.length,0));let[_,g]=l.split(".");g||(g="");const v=d.replace(/,/g,"").replace(/^#+/,"").length;_=Io(_,v,"0");const m=h.replace(/#+$/,"").length;if(m>g.length?g=l_(g,m,"0"):m<g.length&&(g=g.substring(0,m)+g.substring(m).replace(/0+$/,"")),d.indexOf(",")>0){const w=_.length%3,x=Math.floor(_.length/3);let N=w>0?_.substr(0,w)+(x>0?",":""):"";for(let ee=0;ee<x;ee++)N+=_.substr(w+ee*3,3)+(ee<x-1?",":"");_=N}return g.length>0?_+"."+g:_}),l=f+l}}else l instanceof Date?l=Zr(l,u||s):l=Ee(l);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(l=Kn(String(l),Math.abs(o)," ",o<0)),l})}function a_(e){return typeof e!="string"||e.length===0}function u_(e){return typeof e!="string"||/^\s*$/.test(e)}function qn(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Kn(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Io(e,t,n){return Kn(e,t,n)}function l_(e,t,n){return Kn(e,t,n,!0)}function Wu(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 i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Uu),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let u=!0,l=0;do{const f=a.exec(e);if(f===null){const c=o?e.substring(l).trim():e.substring(l);(!i||c.length>0)&&s.push(c),u=!1}else{const c=o?e.substring(l,f.index).trim():e.substring(l,f.index);(!i||c.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(l).trim():e.substring(l)),u=!1):s.push(c)),l=a.lastIndex}}while(u);return s}function c_(e,...t){if(t.length===0)return e.trim();const n="["+Uu(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function f_(e){throw new Error(e)}function qu(e,t){return new Array(t)}const Ku="Collection was empty.";function $o(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function ln(e,t,n){const r=t.length|0,i=qu(n,r);for(let o=0;o<=r-1;o++)bt(i,o,e(W(o,t)));return i}function d_(e,t){const n=qu(t,1);return bt(n,0,e),n}function h_(e){return e.slice().reverse()}function __(e,t){return t.find(e)}function p_(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(W(i,t));if(o!=null){const s=b(o);r.push(s)}}return Pe(n,F())?r:ln(i=>i,r,n)}function Jn(e,t,n){const r=e;return n.reduce(r,t)}function g_(e,t,n){return t==null}function W(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function bt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function v_(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class wt extends de{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+qn("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l);if(Pe(s.head,a.head)){i=f,o=c;continue e}else return!1}else return!1;else return l==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,u=o,l=u.tail;if(l!=null){const f=b(l);if(s>18)return a|0;r=s+1,i=(a<<1)+ut(u.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,u=s.tail,l=a.tail;if(u!=null)if(l!=null){const f=b(u),c=b(l),d=yt(s.head,a.head)|0;if(d===0){i=f,o=c;continue e}else return d|0}else return 1;else return l!=null?-1:0}})(this,t)|0}GetEnumerator(){return y_(this)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return J(this)}}class m_{constructor(t){this.xs=t,this.it=this.xs,this.current=F()}"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=b(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=F()}Dispose(){}}function y_(e){return new m_(e)}function cn(){return new wt(F(),void 0)}function Zn(e,t){return new wt(e,t)}function ei(e){return e.tail==null}function b_(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=b(s);continue e}else return i|0}})(0,e)|0}function Ro(e){if(e.tail!=null)return e.head;throw new Error(Ku+"\\nParameter name: list")}function Yn(e){const t=e.tail;if(t!=null)return b(t);throw new Error(Ku+"\\nParameter name: list")}function Ye(){return cn()}function je(e,t){return Zn(e,t)}function fn(e){return Zn(e,cn())}function R(e){return ei(e)}function C(e){return Ro(e)}function $(e){return Yn(e)}function ti(e){const t=b_(e)|0,n=$o(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!ei(a)){bt(n,s,Ro(a)),i=s+1,o=Yn(a);continue e}break}})(0,e),n}function ni(e,t,n){let r=t,i=n;for(;!ei(i);)r=e(r,C(i)),i=Yn(i);return r}function Po(e){return ni((t,n)=>Zn(n,t),cn(),e)}function z(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=Zn(W(r,e),n);return n}function Y(e){return z(e,cn())}function Ju(e){let t,n;if(Je(e))return Y(e);if(e instanceof wt)return e;{const r=cn();let i=r;const o=J(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new wt(u,void 0),t.tail=n,n)}}finally{K(o)}const s=i,a=cn();return s.tail=a,Yn(r)}}function Zu(e,t){return ni((n,r)=>Zn(r,n),t,Po(e))}function w_(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(ei(s))return;if(e(Ro(s)))return o;r=o+1,i=Yn(s);continue e}})(0,t)}function S_(e,t,n){return w_(r=>n.Equals(e,r),t)!=null}const C_="Enumeration already finished.",O_="Enumeration has not started. Call MoveNext.",E_="Reset is not supported on this enumerator.";function A_(){throw new Error(E_)}function Yu(){throw new Error(O_)}function Do(){throw new Error(C_)}class x_{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=J(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Ee(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{K(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function T_(e){return new x_(e)}class M_{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"(){A_()}Dispose(){this.dispose()}}function Xu(e,t,n){return new M_(e,t,n)}function k_(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=b(n);try{K(a)}finally{n=void 0}}if(t!=null){const a=b(t);try{K(a)}finally{t=void 0}}};return Xu(()=>(r?i&&Do():Yu(),o!=null?b(o):Do()),()=>{let a;if(r||(r=!0),i)return!1;{let u;for(;u==null;){const l=t,f=n;if(l!=null)if(f!=null){const c=b(f);if(c["System.Collections.IEnumerator.MoveNext"]())o=Ne(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),u=!0;else try{K(c)}finally{n=void 0}}else{const c=b(l);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),J(a)):(s(),u=!1)}else t=J(e)}return b(u)}},()=>{i||s()})}function Qu(e,t,n){let r=!1,i,o=Ne(e());const s=()=>{if(o!=null){const u=b(o);try{n(u)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Xu(()=>(r||Yu(),i!=null?b(i):Do()),()=>{if(r||(r=!0),o!=null){const u=b(o);let l;try{l=t(u)}catch(f){throw a(),f}return l!=null?(i=l,!0):(a(),!1)}else return!1},s)}function I_(e,t){t==null&&f_(e)}function ri(e){return T_(e)}function dn(e){return I_("source",e),J(e)}function q(e){return ri(()=>J(e()))}function $_(e){return ri(()=>k_(e))}function T(e){return q(()=>d_(e))}function Z0(e){return e}function R_(e){return e instanceof wt?ti(e):Array.from(e)}function ii(e){return Je(e)?Y(e):e instanceof wt?e:Ju(e)}function P_(e,t,n){return ri(()=>Qu(e,t,n))}function D_(e,t,n){return ri(()=>{let r=-1;return Qu(e,i=>(r=r+1|0,t(r,i)),n)})}function te(e,t){return $_([e,t])}function N_(e,t,n){const r=dn(t);try{const i=dn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{K(i)}}finally{K(r)}}function hn(e,t,n){const r=dn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function oi(e,t,n){const r=dn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{K(r)}}function No(e,t){oi((n,r)=>{e(r)},void 0,t)}function Le(e,t){return P_(()=>dn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function j_(e,t){return D_(()=>dn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?Ne(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{K(n)})}function L_(e){return q(()=>h_(R_(e)))}const V_='/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-600:oklch(57.7% .245 27.325);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--font-weight-medium:500;--font-weight-semibold:600;--radius-md:.375rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.inline{display:inline}.w-100{width:calc(var(--spacing)*100)}.w-fit{width:fit-content}.cursor-pointer{cursor:pointer}.rounded-md{border-radius:var(--radius-md)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-red-50{background-color:var(--color-red-50)}.bg-white{background-color:var(--color-white)}.p-3{padding:calc(var(--spacing)*3)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-1\\.5{padding-block:calc(var(--spacing)*1.5)}.py-2{padding-block:calc(var(--spacing)*2)}.pr-8{padding-right:calc(var(--spacing)*8)}.pl-3{padding-left:calc(var(--spacing)*3)}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-sm\\/6{font-size:var(--text-sm);line-height:calc(var(--spacing)*6)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-gray-500{color:var(--color-gray-500)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-white{color:var(--color-white)}.lowercase{text-transform:lowercase}.shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring{--tw-inset-ring-shadow:inset 0 0 0 1px var(--tw-inset-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.inset-ring-gray-300{--tw-inset-ring-color:var(--color-gray-300)}.outline-1{outline-style:var(--tw-outline-style);outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:var(--color-gray-300)}.placeholder\\:text-gray-400::placeholder{color:var(--color-gray-400)}@media (hover:hover){.hover\\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\\:bg-indigo-500:hover{background-color:var(--color-indigo-500)}}.focus\\:outline-2:focus{outline-style:var(--tw-outline-style);outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-indigo-600:focus{outline-color:var(--color-indigo-600)}.focus-visible\\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\\:-outline-offset-2:focus-visible{outline-offset:-2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-indigo-600:focus-visible{outline-color:var(--color-indigo-600)}.disabled\\:bg-gray-50:disabled{background-color:var(--color-gray-50)}.disabled\\:text-gray-500:disabled{color:var(--color-gray-500)}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:outline-gray-200:disabled{outline-color:var(--color-gray-200)}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}',F_=Ee(V_),el=Q,tl=zs,U_=Zf,nl=$f,B_=Df;function rl(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}const G_=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,il=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,H_=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function z_(e){function t(r){return r.replace(il,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(G_.test(n))return c_(n,"{","}","(",")");if(il.test(n))return t(n);if(H_.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 ol(e,t){try{return t.contents=z_(e),!0}catch{return!1}}function W_(){let e="";for(let t=0;t++<36;)e+=t*51&52?(t^15?8^Math.random()*(t^20?16:4):4).toString(16):"-";return e}let si=Ye();function sl(e,t){try{return si=je(t,si),e()}finally{si=$(si)}}class q_{constructor(t,n){this.this=new ne(F()),this.this,this.state=t,this.description=n,this.this.contents=this,this.cleanupActions=void 0,this["init@56"]=1}get IsActive(){const n=this.cleanupActions;return n!=null?n.size>0:!1}AutoSubscribe(t,n,r,i){let o;const s=this,a=ul(s,n,r,i,(o=t.Description,Vt(Ze("sub [%s] -> [%s]"))(o)(s.description))),u=a[0],l={Id:u,Detach(f){const c=d=>f===d;c(s.this.contents)?t.Remove(l):c(t)?Lo(s,u):ko(Ze("The notifier is not a party to this subscription: %A"))(f),a[1]()}};al(s,l),t.Add(l)}Subscribe(t,n,r){const i=this,o=ul(i,t,n,r,Vt(Ze("sub [%s]"))(i.description)),s=o[0],a=o[1];return jo(i,u=>{rl(u,s,a)}),{Dispose(){Lo(i,s)&&a()}}}get Description(){return this.description}Add(t){al(this,t)}Remove(t){Lo(this,t.Id)}Dispose(){const t=this,n=t.cleanupActions;if(n!=null){let i=J(n.values());try{for(;i["System.Collections.IEnumerator.MoveNext"]();)i["System.Collections.Generic.IEnumerator`1.get_Current"]()()}finally{K(i)}}t.cleanupActions=void 0}}function K_(e,t){return new q_(e,t)}function jo(e,t){const n=e.cleanupActions;if(n==null){const r=new Map([]);return e.cleanupActions=r,t(r)}else return t(n)}function al(e,t){jo(e,n=>{rl(n,t.Id,()=>{t.Detach(e.this.contents)})})}function Lo(e,t){return jo(e,n=>n.delete(t))}function ul(e,t,n,r,i){const o=W_(),s={};return s.fireImmediately=r,s.name=i,[o,B_(()=>t(e.state()),n,s)]}class J_{constructor(t){const n=new ne(F());n.contents=this,this["init@17"]=1,n.contents.Content=t}}function Z_(e){return new J_(e)}const ll=Symbol("annotations");function Y_(e){return{}}function X_(e){let t,n;return U_(e,(t=e[ll],t!=null?(n=t,delete e[ll],n):{}))}const Q_=Symbol("state");class cl{constructor(t,n,r,i){let o,s,a,u,l;const f=new ne(F());this.update=n,f.contents=this;const c=i;this.queue=[],this.ready=!1,this.subject=K_(()=>pe(f.contents),"");const d=nl(()=>sl(()=>t(g=>{this.ready?ge(f.contents,g):this.queue.push(g)}),this.subject));if(this.computed=X_(r(d)),this.storage=Ao(c)?(o=tl(d,Jn((g,v)=>(g[jt(v)]=el.ref,g),{},an(c))),{Read:o,Write(g){Object.assign(o,g)}}):Eo(c)?(s=Z_(d),a={},a.Content=el.struct,u=tl(s,a),new class{get Read(){return u.Content}Write(g){u.Content=g}}):(()=>{throw new Error("State must be a record or union type")})(),this["init@97-1"]=1,Object.defineProperty(f.contents,"debugView",{enumerable:!0,get:()=>Ee(f.contents)}),this.queue.length>0){const g=Ju(this.queue);hh(this.queue),No((l=f.contents,v=>{ge(l,v)}),g)}const h=this.computed,_=this.storage;h[Q_]=_,this.ready=!0}toString(){const n=this.storage.Read;return Vt(Ze("%A"))(n)}get IsActive(){return Vo(this,n=>n.IsActive)}AutoSubscribe(t,n,r,i){Vo(this,s=>{s.AutoSubscribe(t,n,r,i)})}Subscribe(t,n,r){return Vo(this,o=>o.Subscribe(t,n,r))}Dispose(){K(this.subject)}}function ep(e,t,n,r){return new cl(e,t,n,r)}function pe(e){return e.storage.Read}function _n(e){return e.computed}function ge(e,t){if(e.queue.push(t),e.queue.length===1)for(;e.queue.length>0;){const n=e.queue[0];nl(()=>{sl(()=>{const r=e.update([e.storage.Read,i=>{ge(e,i)},_n(e)],n);e.storage.Write(r)},e.subject)}),e.queue.splice(0,1)}}function Vo(e,t){return t(e.subject)}class tp extends cl{constructor(t,n,r){super(t,n,Y_,r),this["init@221-2"]=1}}function np(e,t,n){return new tp(e,t,n)}const lt=Vr;class rp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["UnverifiedConnection"]}}function ip(e){if(t_(/^[a-z0-9-]{3,32}$/gu,e))return new rp(e)}class op extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientId"]}}function sp(e){let t,n="00000000-0000-0000-0000-000000000000";if(t=[ol(e,new ne(()=>n,r=>{n=r})),n],t[0])return new op(t[1])}class ap extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClientSecret"]}}function up(e){if(!(u_(e)||e.length<20))return new ap(e)}let lp=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}};class cp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}new cp(0,[new lp(2,[])]);class fp extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TruncatedClientSecret"]}}function dp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.TruncatedClientSecret",[],fp,()=>[[["Item",Ae]]])}function hp(e){return e.fields[0]}class _p extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function pp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.SSOConfigDto",[],_p,()=>[[["Item",Eu(["ClientId",xh("System.Guid")],["Connection",Ae],["TruncatedClientSecret",dp()])]]])}class gp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function vp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginMethodDto",[],gp,()=>[[["Item",pp()]],[],[]])}class mp extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enabled","Disabled"]}}function Fo(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Read.LoginConfigDto",[],mp,()=>[[["Item",vp()]],[]])}class fl extends U{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EntraId"]}}function yp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.SSOConfigDto",[],fl,()=>[[["Item",Eu(["ClientId",Ae],["ClientSecret",Ae],["Connection",Ae])]]])}class ai extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","MagicLink","PartnerToken"]}}function bp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginMethodDto",[],ai,()=>[[["Item",yp()]],[],[]])}class Xn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Enable","Disable"]}}function wp(){return De("ApolloIdentity.Shared.AdminDto.LoginConfigDto.Write.LoginConfigCommandDto",[],Xn,()=>[[["Item",bp()]],[]])}function ui(e){let t;return E("input",fe(Y([(t="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 disabled:bg-gray-50 disabled:text-gray-500 disabled:outline-gray-200 text-sm/6",["className",t]),["disabled",!0],["value",e]])))}function Qn(e){return E("label",{className:"mt-2 block text-sm/6 font-medium text-gray-900",children:e})}function Sp(e){const t=ii(q(()=>{let n,r;return te(T((n=Y([Qn("Login method"),ui((r=e.LoginConfig,r.tag===0?r.fields[0].tag===1?"Magic Link":r.fields[0].tag===0?"EntraID SSO":"Partner Token":"Disabled"))]),E("div",{children:lt.Children.toArray(Array.from(n))}))),q(()=>{let i,o,s,a;return te((i=e.LoginConfig,i.tag===0?i.fields[0].tag===1?T(F()):i.fields[0].tag===0?(o=i.fields[0].fields[0].fields[0],T(E("div",fe(Y([["className","mt-4"],(s=[E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"}),Qn("Connection"),ui(o.Connection),Qn("Client ID"),ui((a=o.ClientId,a)),Qn("Client Secret"),ui(`**********${hp(o.TruncatedClientSecret)}`)],["children",lt.Children.toArray(Array.from(s))])]))))):T(F()):T(F())),q(()=>{let u;const l=e.OnEdit;if(l!=null){const f=l;return T(E("button",fe(Y([["type","button"],(u="mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer",["className",u]),["onClick",c=>{f()}],["children","✏️ Edit"]]))))}else return T(F())}))}))}));return E("div",{children:lt.Children.toArray(Array.from(t))})}function Cp(e){return new p(0,[e])}function dl(e){return new p(1,[e])}class p extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function ct(e,t){return t.tag===0?Cp(e(t.fields[0])):dl(t.fields[0])}function Op(e,t){return t.tag===0?e(t.fields[0]):dl(t.fields[0])}function Ep(e,t){t.tag===0&&e(t.fields[0])}class Uo extends de{constructor(t){super(),this.ConfigureLogin=t}}function Ap(){return rn("ApolloIdentity.AdminUI.Roles",[],Uo,()=>[["ConfigureLogin",kh]])}function xp(e){return new Uo(S_("Identity.ConfigureLogin",e.Roles,{Equals:(t,n)=>t===n,GetHashCode:Br}))}const Tp=new Uo(!1);class S extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class pn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function hl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function _l(e,t){switch(e.tag){case 2:return n_(hl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return hl(t)}}var Bo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Bo||(Bo={}));function Mp(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function pl(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 kp(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 Ip(e,t){if(t&Bo.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 $p(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Ip(o,t),!kp(n).test(s))return Mp(i,n)}return null}function Rp(e,t,n,r,i){const o=$p(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,u]=pl(!0,r);!n&&o.radix!==10&&s>=a&&s<=u&&(s=s<<32-r>>32-r);const[l,f]=pl(n,r);if(s>=l&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function gn(e,t,n,r,i){try{return i.contents=Rp(e,t,n,r),!0}catch{return!1}}function gl(e,t){Pp(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Pp(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 Dp(){return gl(-621355968e5,0)}function Np(e){const[t,n]=Nu(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return gl(t.getTime(),r)}function jp(e,t){try{return t.contents=Np(e),!0}catch{return!1}}function er(e){return e<0?Math.ceil(e):Math.floor(e)}function vl(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Lp(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Lp(e){return Number(BigInt(e)/10000n)}function Vp(e){return er(e/864e5)}function Fp(e){return er(e%864e5/36e5)}function Up(e){return er(e%36e5/6e4)}function Bp(e){return er(e%6e4/1e3)}function Gp(e){return er(e%1e3)}function Hp(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Vp(e)),i=Math.abs(Fp(e)),o=Math.abs(Up(e)),s=Math.abs(Bp(e)),a=Math.abs(Gp(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:D(i,2)}:${D(o,2)}:${D(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+D(a,3):"."+oh(a,3,7)}`}function zp(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 vl(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 i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,u=+r[4],l=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*vl(i,u,l,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Wp(e,t){try{return t.contents=zp(e),!0}catch{return!1}}class ml{constructor(t,n){this.k=t,this.v=n}}function li(e,t){return new ml(e,t)}function re(e){return e.k}function ve(e){return e.v}class X extends ml{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function ci(e,t,n,r,i){return new X(e,t,n,r,i)}function ie(e){return e.left}function oe(e){return e.right}function Ft(e){return e.h}function Y0(){}function yl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof X){const o=i;e=yl(n+1,ie(o)),t=oe(o);continue e}else return n+1|0}else return n|0}}function qp(e){return yl(0,e)}function Ve(e,t,n,r){let i,o,s;const a=e;if(a!=null){const c=b(a);s=c instanceof X?(i=c,Ft(i)):1}else s=0;let u;const l=r;if(l!=null){const c=b(l);u=c instanceof X?(o=c,Ft(o)):1}else u=0;const f=(s<u?u:s)|0;return f===0?li(t,n):ci(t,n,e,r,f+1)}function bl(e,t,n,r){let i,o,s,a,u,l,f,c,d;const h=e;if(h!=null){const v=b(h);d=v instanceof X?(i=v,Ft(i)):1}else d=0;let _;const g=r;if(g!=null){const v=b(g);_=v instanceof X?(o=v,Ft(o)):1}else _=0;if(_>d+2){const v=b(r);if(v instanceof X){const m=v;if(s=ie(m),(s!=null?(a=b(s),a instanceof X?(u=a,Ft(u)):1):0)>d+1){const w=b(ie(m));if(w instanceof X){const x=w;return Ve(Ve(e,t,n,ie(x)),re(x),ve(x),Ve(oe(x),re(m),ve(m),oe(m)))}else throw new Error("internal error: Map.rebalance")}else return Ve(Ve(e,t,n,ie(m)),re(m),ve(m),oe(m))}else throw new Error("internal error: Map.rebalance")}else if(d>_+2){const v=b(e);if(v instanceof X){const m=v;if(l=oe(m),(l!=null?(f=b(l),f instanceof X?(c=f,Ft(c)):1):0)>_+1){const w=b(oe(m));if(w instanceof X){const x=w;return Ve(Ve(ie(m),re(m),ve(m),ie(x)),re(x),ve(x),Ve(oe(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(ie(m),re(m),ve(m),Ve(oe(m),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ve(e,t,n,r)}function vn(e,t,n,r){if(r!=null){const i=b(r),o=e.Compare(t,re(i))|0;if(i instanceof X){const s=i;return o<0?bl(vn(e,t,n,ie(s)),re(s),ve(s),oe(s)):o===0?ci(t,n,ie(s),oe(s),Ft(s)):bl(ie(s),re(s),ve(s),vn(e,t,n,oe(s)))}else return o<0?ci(t,n,void 0,r,2):o===0?li(t,n):ci(t,n,r,void 0,2)}else return li(t,n)}function wl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(a===0)return Ne(ve(s));if(s instanceof X){const u=s;e=r,t=i,n=a<0?ie(u):oe(u);continue e}else return}else return}}function Kp(e,t,n){const r=wl(e,t,n);if(r==null)throw new Error;return b(r)}function Jp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,re(s))|0;if(s instanceof X){const u=s;if(a<0){e=r,t=i,n=ie(u);continue e}else{if(a===0)return!0;e=r,t=i,n=oe(u);continue e}}else return a===0}else return!1}}function Sl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof X){const o=i;Sl(n,ie(o)),n(re(o),ve(o)),e=n,t=oe(o);continue e}else n(re(i),ve(i))}break}}function Zp(e,t){Sl(e,t)}function Yp(e,t,n){let r=n;Zp((i,o)=>{bt(t,r,[i,o]),r=r+1|0},e)}function Xp(e,t){return ni((n,r)=>vn(e,r[0],r[1],n),void 0,t)}function Qp(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=vn(r,s[0],s[1],i),n=o;continue e}else return i}}function eg(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=W(r,t);n=vn(e,i[0],i[1],n)}return n}function Cl(e,t){if(Je(t))return eg(e,t);if(t instanceof wt)return Xp(e,t);{const n=J(t);try{return Qp(e,void 0,n)}finally{K(n)}}}class tg extends de{constructor(t,n){super(),this.stack=t,this.started=n}}function Ol(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=$(t),r=C(t);if(r!=null){const i=b(r);if(i instanceof X){const o=i;e=z([ie(o),li(re(o),ve(o)),oe(o)],n);continue e}else return t}else{e=n;continue e}}}}function El(e){return new tg(Ol(fn(e)),!1)}function ng(){throw new Error("enumeration not started")}function rg(){throw new Error("enumeration already finished")}function Al(e){if(e.started){const t=e.stack;if(R(t))return rg();if(C(t)!=null){const n=b(C(t));if(n instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for current");return[re(n),ve(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return ng()}function ig(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof X)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Ol($(t)),!R(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function xl(e){let t=El(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Al(t)},"System.Collections.IEnumerator.get_Current"(){return Al(t)},"System.Collections.IEnumerator.MoveNext"(){return ig(t)},"System.Collections.IEnumerator.Reset"(){t=El(e)},Dispose(){}}}class fi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return ug(this)|0}Equals(t){const n=this;if(t instanceof fi){const r=t,i=J(n);try{const o=J(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const u=i["System.Collections.Generic.IEnumerator`1.get_Current"](),l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Pe(u[0],l[0])&&Pe(u[1],l[1])?s():!1}else return!0;else return!1};return s()}finally{K(o)}}finally{K(i)}}else return!1}toString(){return"map ["+qn("; ",Le(n=>s_("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return xl(this.tree)}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return xl(this.tree)}CompareTo(t){const n=this;if(t instanceof fi)return N_((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:yt(i[1],o[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 Ml(n,t[0])&&Pe(Tl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Yp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Go(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Go(this)|0}get size(){return Go(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Le(n=>[n[0],n[1]],this)}get(t){return Tl(this,t)}has(t){return Ml(this,t)}keys(){return Le(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Le(n=>n[1],this)}forEach(t,n){const r=this;No(i=>{t(i[1],i[0],r)},r)}}function di(e,t){return new fi(e,t)}function og(e){return di(e,void 0)}function sg(e,t,n){return di(e.comparer,vn(e.comparer,t,n,e.tree))}function Tl(e,t){return Kp(e.comparer,t,e.tree)}function Go(e){return qp(e.tree)}function Ml(e,t){return Jp(e.comparer,t,e.tree)}function ag(e,t){return wl(e.comparer,t,e.tree)}function ug(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=J(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,ut(i[0]))|0,n=t(n,ut(i[1]))|0}}finally{K(r)}return n|0}function kl(e,t,n){return sg(n,e,t)}function Il(e,t){return ag(t,e)}function lg(e,t){return di(t,Cl(t,e))}function cg(e,t){return di(t,Cl(t,e))}function Ho(e){return og(e)}class $l{constructor(t){this.k=t}}function me(e){return new $l(e)}function A(e){return e.k}class P extends $l{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function ye(e,t,n,r){return new P(e,t,n,r)}function B(e){return e.left}function L(e){return e.right}function mn(e){return e.h}function X0(){}function Rl(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=B(o),t=Rl(L(o),r+1);continue e}else return r+1|0}else return r|0}}function fg(e){return Rl(e,0)}function Fe(e,t,n){let r,i,o;const s=e;if(s!=null){const f=b(s);o=f instanceof P?(r=f,mn(r)):1}else o=0;let a;const u=n;if(u!=null){const f=b(u);a=f instanceof P?(i=f,mn(i)):1}else a=0;const l=(o<a?a:o)|0;return l===0?me(t):ye(t,e,n,l+1)}function Pl(e,t,n){let r,i,o,s,a,u,l,f,c;const d=e;if(d!=null){const g=b(d);c=g instanceof P?(r=g,mn(r)):1}else c=0;let h;const _=n;if(_!=null){const g=b(_);h=g instanceof P?(i=g,mn(i)):1}else h=0;if(h>c+2){const g=b(n);if(g instanceof P){const v=g;if(o=B(v),(o!=null?(s=b(o),s instanceof P?(a=s,mn(a)):1):0)>c+1){const m=b(B(v));if(m instanceof P){const w=m;return Fe(Fe(e,t,B(w)),A(w),Fe(L(w),A(v),L(v)))}else throw new Error("internal error: Set.rebalance")}else return Fe(Fe(e,t,B(v)),A(v),L(v))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const g=b(e);if(g instanceof P){const v=g;if(u=L(v),(u!=null?(l=b(u),l instanceof P?(f=l,mn(f)):1):0)>h+1){const m=b(L(v));if(m instanceof P){const w=m;return Fe(Fe(B(v),A(v),B(w)),A(w),Fe(L(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(B(v),A(v),Fe(L(v),t,n))}else throw new Error("internal error: Set.rebalance")}else return Fe(e,t,n)}function tr(e,t,n){if(n!=null){const r=b(n),i=e.Compare(t,A(r))|0;if(r instanceof P){const o=r;return i<0?Pl(tr(e,t,B(o)),A(o),L(o)):i===0?n:Pl(B(o),A(o),tr(e,t,L(o)))}else{const o=e.Compare(t,A(r))|0;return o<0?ye(t,void 0,n,2):o===0?n:ye(t,n,void 0,2)}}else return me(t)}function Dl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=b(o),a=r.Compare(i,A(s))|0;if(s instanceof P){const u=s;if(a<0){e=r,t=i,n=B(u);continue e}else{if(a===0)return!0;e=r,t=i,n=L(u);continue e}}else return a===0}else return!1}}function Nl(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=b(r);if(i instanceof P){const o=i;Nl(n,B(o)),n(A(o)),e=n,t=L(o);continue e}else n(A(i))}break}}class dg extends de{constructor(t,n){super(),this.stack=t,this.started=n}}function jl(e){e:for(;;){const t=e;if(R(t))return Ye();{const n=C(t),r=$(t);if(n!=null){const i=b(n);if(i instanceof P){const o=i;e=z([B(o),me(A(o)),L(o)],r);continue e}else return t}else{e=r;continue e}}}}function Ll(e){return new dg(jl(fn(e)),!1)}function hg(){throw new Error("Enumeration not started")}function _g(){throw new Error("Enumeration already started")}function Vl(e){if(e.started){const t=e.stack;if(R(t))return _g();if(C(t)!=null){const n=b(C(t));return A(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return hg()}function pg(e){if(e.started){const t=e.stack;if(R(t))return!1;if(C(t)!=null){if(b(C(t))instanceof P)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=jl($(t)),!R(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!R(e.stack)}function Fl(e){let t=Ll(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Vl(t)},"System.Collections.IEnumerator.get_Current"(){return Vl(t)},"System.Collections.IEnumerator.MoveNext"(){return pg(t)},"System.Collections.IEnumerator.Reset"(){t=Ll(e)},Dispose(){}}}function gg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(R(i))return R(o)?0:-1;if(R(o))return 1;if(C(o)!=null)if(C(i)!=null){const s=b(C(i)),a=b(C(o));if(s instanceof P){const u=s;if(B(u)==null)if(a instanceof P){const l=a;if(B(l)==null){const f=r.Compare(A(u),A(l))|0;if(f!==0)return f|0;e=r,t=je(L(u),$(i)),n=je(L(l),$(o));continue e}else{let f,c,d,h,_;switch(R(i)?R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2:C(i)!=null?(f=0,c=$(i),d=b(C(i))):R(o)?f=2:C(o)!=null?(f=1,h=$(o),_=b(C(o))):f=2,f){case 0:if(d instanceof P){const g=d;e=r,t=z([B(g),ye(A(g),void 0,L(g),0)],c),n=o;continue e}else{e=r,t=z([void 0,me(A(d))],c),n=o;continue e}case 1:if(_ instanceof P){const g=_;e=r,t=i,n=z([B(g),ye(A(g),void 0,L(g),0)],h);continue e}else{e=r,t=i,n=z([void 0,me(A(_))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(A(u),A(a))|0;if(l!==0)return l|0;e=r,t=je(L(u),$(i)),n=je(void 0,$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),ye(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,me(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),ye(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,me(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof P){const u=a;if(B(u)==null){const l=r.Compare(A(s),A(u))|0;if(l!==0)return l|0;e=r,t=je(void 0,$(i)),n=je(L(u),$(o));continue e}else{let l,f,c,d,h;switch(R(i)?R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2:C(i)!=null?(l=0,f=$(i),c=b(C(i))):R(o)?l=2:C(o)!=null?(l=1,d=$(o),h=b(C(o))):l=2,l){case 0:if(c instanceof P){const _=c;e=r,t=z([B(_),ye(A(_),void 0,L(_),0)],f),n=o;continue e}else{e=r,t=z([void 0,me(A(c))],f),n=o;continue e}case 1:if(h instanceof P){const _=h;e=r,t=i,n=z([B(_),ye(A(_),void 0,L(_),0)],d);continue e}else{e=r,t=i,n=z([void 0,me(A(h))],d);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(A(s),A(a))|0;if(u!==0)return u|0;e=r,t=$(i),n=$(o);continue e}}else{b(C(o));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),ye(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,me(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),ye(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,me(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(C(i)!=null){b(C(i));let s,a,u,l,f;switch(R(i)?R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2:C(i)!=null?(s=0,a=$(i),u=b(C(i))):R(o)?s=2:C(o)!=null?(s=1,l=$(o),f=b(C(o))):s=2,s){case 0:if(u instanceof P){const c=u;e=r,t=z([B(c),ye(A(c),void 0,L(c),0)],a),n=o;continue e}else{e=r,t=z([void 0,me(A(u))],a),n=o;continue e}case 1:if(f instanceof P){const c=f;e=r,t=i,n=z([B(c),ye(A(c),void 0,L(c),0)],l);continue e}else{e=r,t=i,n=z([void 0,me(A(f))],l);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=$(i),n=$(o);continue e}}}function Ul(e,t,n){return t==null?n==null?0:-1:n==null?1:gg(e,fn(t),fn(n))|0}function vg(e,t,n){let r=n;Nl(i=>{bt(t,r,i),r=r+1|0},e)}function mg(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=tr(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function yg(e,t){return Jn((n,r)=>tr(e,r,n),void 0,t)}function bg(e,t){return ni((n,r)=>tr(e,r,n),void 0,t)}function wg(e,t){if(Je(t))return yg(e,t);if(t instanceof wt)return bg(e,t);{const n=J(t);try{return mg(e,void 0,n)}finally{K(n)}}}class zo{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Og(this)|0}Equals(t){let n;const r=this;return t instanceof zo&&(n=t,Ul(hi(r),Xe(r),Xe(n))===0)}toString(){return"set ["+qn("; ",Le(n=>Ee(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ul(hi(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 Dl(hi(n),t,Xe(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){vg(Xe(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wo(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wo(this)|0}GetEnumerator(){return Fl(Xe(this))}[Symbol.iterator](){return Ur(J(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Fl(Xe(this))}get size(){return Wo(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 Cg(this,t)}keys(){return Le(n=>n,this)}values(){return Le(n=>n,this)}entries(){return Le(n=>[n,n],this)}forEach(t,n){const r=this;No(i=>{t(i,i,r)},r)}}function Sg(e,t){return new zo(e,t)}function hi(e){return e.comparer}function Xe(e){return e.tree}function Wo(e){return fg(Xe(e))}function Cg(e,t){return Dl(hi(e),t,Xe(e))}function Og(e){let t=0;const n=J(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+ut(r)+631|0}}finally{K(n)}return Math.abs(t)|0}function Eg(e,t){return Sg(t,wg(t,e))}function nr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
14
14
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
15
|
-
`:" ")}}function
|
|
15
|
+
`:" ")}}function Ag(e,t){const n=t.tag===2?nr(t.fields[0],t.fields[1],!0):t.tag===1?nr(t.fields[0],t.fields[1],!1)+`
|
|
16
16
|
Reason: `+t.fields[2]:t.tag===3?nr(t.fields[0],t.fields[1],!0):t.tag===4?nr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
17
17
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
18
18
|
|
|
19
|
-
`+
|
|
19
|
+
`+qn(`
|
|
20
20
|
|
|
21
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:nr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function
|
|
21
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:nr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Bl(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new p(1,[Ag(i[0],i[1])])}else return new p(0,[r.fields[0]])}function qo(e,t){try{return Bl("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new p(1,["Given an invalid JSON: "+n.message]);throw n}}function Gl(e,t){return typeof t=="string"?new p(0,[t]):new p(1,[[e,new S(0,["a string",t])]])}function xg(e,t){if(typeof t=="string"){const n=t;return n.length===1?new p(0,[n[0]]):new p(1,[[e,new S(0,["a single character string",t])]])}else return new p(1,[[e,new S(0,["a char",t])]])}function Tg(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ol(t,new ne(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a guid",t])]])}else return new p(1,[[e,new S(0,["a guid",t])]])}function Mg(e,t){return t==null?new p(0,[void 0]):new p(1,[[e,new S(0,["null",t])]])}const Hl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new p(0,[(i+128&255)-128]):new p(1,[[n,new S(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new p(1,[[n,new S(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!1,8,new ne(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["a sbyte",r])]])}else return new p(1,[[n,new S(0,["a sbyte",r])]])},zl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new p(0,[i&255]):new p(1,[[n,new S(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new p(1,[[n,new S(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!0,8,new ne(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["a byte",r])]])}else return new p(1,[[n,new S(0,["a byte",r])]])},Wl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new p(0,[(i+32768&65535)-32768]):new p(1,[[n,new S(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new p(1,[[n,new S(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!1,16,new ne(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an int16",r])]])}else return new p(1,[[n,new S(0,["an int16",r])]])},ql=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new p(0,[i&65535]):new p(1,[[n,new S(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new p(1,[[n,new S(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!0,16,new ne(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an uint16",r])]])}else return new p(1,[[n,new S(0,["an uint16",r])]])},Kl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new p(0,[~~i]):new p(1,[[n,new S(1,["an int",i,"Value was either too large or too small for an int"])]]):new p(1,[[n,new S(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!1,32,new ne(()=>o,s=>{o=s|0})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an int",r])]])}else return new p(1,[[n,new S(0,["an int",r])]])},Jl=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new p(0,[i>>>0]):new p(1,[[n,new S(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new p(1,[[n,new S(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[gn(r,511,!0,32,new ne(()=>o,s=>{o=s})),o],i[0]?new p(0,[i[1]]):new p(1,[[n,new S(0,["an uint32",r])]])}else return new p(1,[[n,new S(0,["an uint32",r])]])};function kg(e,t){return typeof t=="boolean"?new p(0,[t]):new p(1,[[e,new S(0,["a boolean",t])]])}function Ig(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new S(0,["a float",t])]])}function $g(e,t){return typeof t=="number"?new p(0,[t]):new p(1,[[e,new S(0,["a float32",t])]])}function Rg(e,t){if(typeof t=="string"){let n,r=Jh();return n=[Yh(t,new ne(()=>r,i=>{r=i})),r],n[0]?new p(0,[Xh(n[1])]):new p(1,[[e,new S(0,["a datetime",t])]])}else return new p(1,[[e,new S(0,["a datetime",t])]])}function Pg(e,t){if(typeof t=="string"){let n,r=Dp();return n=[jp(t,new ne(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a datetimeoffset",t])]])}else return new p(1,[[e,new S(0,["a datetime",t])]])}function Dg(e,t){if(typeof t=="string"){let n,r=0;return n=[Wp(t,new ne(()=>r,i=>{r=i})),r],n[0]?new p(0,[n[1]]):new p(1,[[e,new S(0,["a timespan",t])]])}else return new p(1,[[e,new S(0,["a timespan",t])]])}function Zl(e,t,n,r){let i;const o=n+".["+Nt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,W(e,s)):new p(1,[[o,new S(5,["a longer array. Need index `"+Nt(e)+"` but there are only `"+(i=s.length,Nt(i))+"` entries",r])]])}else return new p(1,[[o,new S(0,["an array",r])]])}function Ng(e,t,n){return n==null?new p(0,[void 0]):ct(Ne,e(t,n))}function Yl(e,t,n){if(Array.isArray(n)){let r=-1;return ct(Po,Jn((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+Nt(r)+"]",o);return s.tag===0?new p(0,[je(s.fields[0],i.fields[0])]):new p(1,[s.fields[0]])}else return i},new p(0,[Ye()]),n))}else return new p(1,[[t,new S(0,["a list",n])]])}function jg(e,t,n){if(Array.isArray(n)){let r=-1;return ct(L_,Jn((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+Nt(r)+"]",o);return s.tag===0?new p(0,[te([s.fields[0]],i.fields[0])]):new p(1,[s.fields[0]])}else return i},new p(0,[[]]),n))}else return new p(1,[[t,new S(0,["a seq",n])]])}function Xl(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Jn((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],u=e(t+".["+Nt(r)+"]",s);return u.tag===0?(bt(a,r,u.fields[0]),new p(0,[a])):new p(1,[u.fields[0]])}else return o},new p(0,[$o(new Array(i.length),0,i.length,null)]),i)}else return new p(1,[[t,new S(0,["an array",n])]])}function Lg(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(R(s))return new p(1,[[t,new S(7,[a])]]);{const u=Bl(t,Z(C(s)),n);if(u.tag===1){i=$(s),o=Zu(a,fn(u.fields[0]));continue e}else return new p(0,[u.fields[0]])}}})(e,Ye())}function Vg(e,t,n){return new p(0,[e])}function Ql(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new p(1,[i.fields[0]])}function Fg(e,t,n,r){const i=t(n,r);return i.tag===1?new p(1,[i.fields[0]]):new p(0,[e(i.fields[0])])}function Ug(e,t){let n;const r=e;return n=i=>o=>Zl(0,r,i,o),i=>o=>Ql(_h(s=>{let a;const u=t;return a=l=>f=>Zl(1,u,l,f),l=>f=>Ql((c,d,h)=>Vg([s,c]),Z(a),l,f)}),Z(n),i,o)}function Bg(e){return lg(e,{Compare:yt})}function Gg(e){return Eg(e,{Compare:yt})}function Hg(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?v_((r,i)=>{const o=r[0];return i.tag===0?ct(s=>je(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new p(0,[Ye()])):new p(1,[[t,new S(0,["an object",n])]])}function zg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?oi((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new p(0,[je([s.fields[0],a.fields[0]],i.fields[0])]):new p(1,[a.fields[0]])}else return new p(1,[s.fields[0]])}else return i},new p(0,[Ye()]),Object.keys(r)):new p(1,[[n,new S(0,["an object",r])]])}function ec(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new p(1,[[n,new S(6,[(i=r.length|0,Vt(Ze("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new p(0,[Ye()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const u=s.fields[0],l=Vt(Ze("%s[%i]"))(n)(a),f=W(a-e,t),c=W(a,r);s=ct(d=>je(d,u),f(l)(c))}return ct(Po,s)}}function tc(e,t,n,r,i,o){const s=__(a=>jt(a)===r,Iu(n));if(s!=null){const a=s,u=ln(l=>Ue(e,t,!1,l[1]),Ru(a));return ct(l=>Ph(a,ti(l)),u.length===0&&o.length<=1?new p(0,[Ye()]):ec(1,u,i,o))}else return new p(1,[[i,new S(6,["Cannot find case "+r+" in "+G(n)])]])}function nc(e,t,n,r){let i;const o=new ne(F());let s;const a=G(r);s=a===""?e:kl(a,o,e);let u;if(Ao(r)){const l=ln(f=>[_l(t,jt(f)),Ue(s,t,!1,f[1])],an(r));u=f=>c=>ct(d=>Dh(r,ti(d)),Hg(l,f,c))}else if(Eo(r))u=l=>f=>{if(typeof f=="string")return tc(s,t,r,f,l,[]);if(Array.isArray(f)){const c=f;return Op(d=>tc(s,t,r,d,l,c),Gl(l+"[0]",W(0,c)))}else return new p(1,[[l,new S(0,["a string or array",f])]])};else if(n)u=l=>f=>new p(1,[[l,new S(2,["an extra coder for "+G(r),f])]]);else throw new Error((i=G(r),Vt(Ze(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
22
22
|
|
|
23
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function
|
|
23
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function Ue(e,t,n,r){let i,o,s,a;const u=G(r),l=Il(u,e);if(l==null)if(xu(r)){const f=Ue(e,t,!1,Hn(r));return c=>d=>Xl(Z(f),c,d)}else if(Oo(r))switch(G(ku(r))){case"System.SByte":return c=>d=>{const h=r,_=c,g=d,v=Hl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>d=>{const h=r,_=c,g=d,v=zl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>d=>{const h=r,_=c,g=d,v=Wl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,sh(m))]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>d=>{const h=r,_=c,g=d,v=ql(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>d=>{const h=r,_=c,g=d,v=Kl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0]|0;return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,Nt(m))]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>d=>{const h=r,_=c,g=d,v=Jl(_)(g);if(v.tag===1)return new p(1,[v.fields[0]]);{const m=v.fields[0];return hn(m,on(h),{Equals:(w,x)=>w===x,GetHashCode:at})?new p(0,[sn(h,m.toString())]):new p(1,[[_,new S(1,[G(h),g,"Unkown value provided for the enum"])]])}};default:{const c=G(r),d=ko(Ze(`Cannot generate auto decoder for %s.
|
|
24
24
|
Thoth.Json.Net only support the following enum types:
|
|
25
25
|
- sbyte
|
|
26
26
|
- byte
|
|
@@ -29,10 +29,10 @@ Thoth.Json.Net only support the following enum types:
|
|
|
29
29
|
- int
|
|
30
30
|
- uint32
|
|
31
31
|
If you can't use one of these types, please pass an extra decoder.
|
|
32
|
-
`))(c);return h=>d(h)}}else if(Eu(r))if(xo(r)){const f=un(c=>Fe(e,t,!1,c),ku(r));return c=>d=>Array.isArray(d)?ct(h=>Dh(ni(h)),Xl(0,f,c,d)):new p(1,[[c,new S(0,["an array",d])]])}else switch(G(Au(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Fe(e,t,!0,W(0,de(r))),c=>d=>Dg(Q(i),c,d);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Fe(e,t,!1,W(0,de(r))),c=>d=>Jl(Q(o),c,d);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Fe(e,t,!1,W(0,de(r))),c=>d=>Ng(Q(s),c,d);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Fe(e,t,!1,W(0,de(r))),d=Fe(e,t,!1,W(1,de(r)));let h;const _=Z([g=>v=>Hg(Q(c),Q(d),g,v),(a=Fg(Q(c),Q(d)),g=>v=>Jl(Q(a),g,v))]);return h=g=>v=>jg(_,g,v),g=>v=>Vg(Ug,Q(h),g,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Fe(e,t,!1,W(0,de(r)));return d=>h=>{const _=Zl(Q(c),d,h);return _.tag===0?new p(0,[Bg(_.fields[0])]):new p(1,[_.fields[0]])}}default:return ec(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>kg(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Tg(f,c);case"System.String":return f=>c=>Ul(f,c);case"System.Char":return f=>c=>Ag(f,c);case"System.SByte":return Bl;case"System.Byte":return Gl;case"System.Int16":return Hl;case"System.UInt16":return zl;case"System.Int32":return Wl;case"System.UInt32":return ql;case"System.Double":return f=>c=>Mg(f,c);case"System.Single":return f=>c=>Ig(f,c);case"System.DateTime":return f=>c=>$g(f,c);case"System.DateTimeOffset":return f=>c=>Rg(f,c);case"System.TimeSpan":return f=>c=>Pg(f,c);case"System.Guid":return f=>c=>xg(f,c);case"System.Object":return f=>c=>new p(0,[c]);default:return ec(e,t,n,r)}else{const f=l;return c=>d=>f.contents(c)(d)}}function zg(e){return Ho({Compare:Gr})}function tc(e,t,n){const r=To(t,new Qn(0,[]));return Fe(zg(),r,!1,e)}class Wg extends Ee{constructor(t){super(),this.Roles=t}}function qg(){return Bn("ApolloIdentity.AdminUI.Jwt.JwtPayload",[],Wg,()=>[["Roles",xh(ut)]])}function Kg(e){const t=Gu(e??"",["."],void 0,0);if(!p_((n,r)=>n===r,t)&&t.length===3){let n;const r=W(1,t);return n=atob(r),Fl(Q(tc(qg(),new Qn(1,[]))),n)}else return new p(1,["Failed to decode access token"])}class Jg{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class qo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,qo.prototype)}}class Ko{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ko.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ut(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new qo);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Hr(n))}});else try{e(t)}catch(n){t.onError(Hr(n))}}}function Zg(e,t){return Ut(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Hr(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Yg(e){return Ut(t=>t.onSuccess(e))}class Xg{Bind(t,n){return Zg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ut(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Yg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ut(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ut(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Hr(o))}}})})}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 Ut(t=>t.onSuccess(void 0))}}const se=new Xg;function Jo(e){}const Qg=new Jg;function e0(e){return Ut(t=>e([t.onSuccess,t.onError,t.onCancel]))}function t0(e,t){return n0(e,Jo,function(n){throw n},Jo)}function nc(e,t){return t0(e)}function n0(e,t,n,r,i){const o=new Ko;e({onSuccess:t||Jo,onError:n,onCancel:r,cancelToken:Qg,trampoline:o})}class vn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","LoadError","Read","Edit"]}}function r0(){return Pe("ApolloIdentity.AdminUI.AppTypes.Page",[],vn,()=>[[],[],[["Item",Fo()]],[["Item",Fo()]]])}let pi=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GoToEdit","GetLoginConfig","GetLoginConfigFinished"]}},rr=class extends Ee{constructor(t,n){super(),this.Page=t,this.Roles=n}};function i0(){return Bn("ApolloIdentity.AdminUI.AppTypes.State",[],rr,()=>[["Page",r0()],["Roles",Ep()]])}function o0(e,t){let n;return t(new pi(1,[])),new rr(new vn(0,[]),(n=Kg(e),n.tag===1?xp:Ap(n.fields[0])))}function s0(e,t,n,r){switch(r.tag){case 1:return nc(se.Delay(()=>se.Bind(e(),i=>(n(new pi(2,[i])),se.Zero())))),new rr(new vn(0,[]),t.Roles);case 2:{const i=r.fields[0];return new rr(i.tag===1?new vn(1,[]):new vn(2,[i.fields[0]]),t.Roles)}default:return new rr(new vn(3,[r.fields[0]]),t.Roles)}}function a0(e,t){const n=[r=>o0(e,r),r=>i=>{const o=[r[0],r[1]];return s0(t,o[0],o[1],i)}];return tp(n[0],Q(n[1]),i0())}class ir extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}function u0(e){return Pe("ApolloIdentity.AdminUI.CommonTypes.Deferred`1",[e],ir,()=>[[],[],[["Item",e]]])}class ft extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","PartnerToken","MagicLink","Disabled"]}}function l0(){return Pe("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.LoginMethod",[],ft,()=>[[],[],[],[]])}class St extends Ee{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}function c0(){return Bn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.SSOConfig",[],St,()=>[["Connection",ut],["ClientId",ut],["ClientSecret",ut]])}class dt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetLoginMethod","SetSSOConfigConnection","SetSSOConfigClientId","SetSSOConfigClientSecret","Save","SaveFinished"]}}class Ct extends Ee{constructor(t,n,r){super(),this.LoginMethod=t,this.SSOConfig=n,this.Save=r}}function f0(){return Bn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.State",[],Ct,()=>[["LoginMethod",l0()],["SSOConfig",c0()],["Save",u0(Pe("Microsoft.FSharp.Core.FSharpResult`2",[Jr,Jr],p,()=>[[["ResultValue",Jr]],[["ErrorValue",Jr]]]))]])}function d0(e,t){let n,r;return new Ct(e.tag===0?e.fields[0].tag===1?new ft(2,[]):e.fields[0].tag===0?new ft(0,[]):new ft(1,[]):new ft(3,[]),e.tag===0?e.fields[0].tag===1?new St("","",""):e.fields[0].tag===0?(n=e.fields[0].fields[0].fields[0],new St(n.Connection,(r=n.ClientId,r),"")):new St("","",""):new St("","",""),new ir(0,[]))}function h0(e){switch(e.LoginMethod.tag){case 1:return new Yn(0,[new ui(2,[])]);case 2:return new Yn(0,[new ui(1,[])]);case 0:return new Yn(0,[new ui(0,[new ul({ClientId:e.SSOConfig.ClientId,ClientSecret:e.SSOConfig.ClientSecret,Connection:e.SSOConfig.Connection})])]);default:return new Yn(1,[])}}function _0(e,t,n,r,i){let o,s,a;switch(i.tag){case 1:return new Ct(n.LoginMethod,(o=n.SSOConfig,new St(i.fields[0],o.ClientId,o.ClientSecret)),n.Save);case 2:return new Ct(n.LoginMethod,(s=n.SSOConfig,new St(s.Connection,i.fields[0],s.ClientSecret)),n.Save);case 3:return new Ct(n.LoginMethod,(a=n.SSOConfig,new St(a.Connection,a.ClientId,i.fields[0])),n.Save);case 4:switch(n.Save.tag){case 0:case 2:return nc(se.Delay(()=>se.Bind(e(h0(n)),l=>(r(new dt(5,[l])),se.Zero())))),new Ct(n.LoginMethod,n.SSOConfig,new ir(1,[]));default:return n}case 5:{const u=i.fields[0];return Op(t,u),new Ct(n.LoginMethod,n.SSOConfig,new ir(2,[u]))}default:return new Ct(i.fields[0],n.SSOConfig,n.Save)}}class p0 extends Ee{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}class mn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Valid","Invalid"]}}function g0(e){return new class{get IsValid(){switch(e.LoginMethod.tag){case 1:return new mn(0,[]);case 2:return new mn(0,[]);case 0:{const n=rp(e.SSOConfig.Connection),r=op(e.SSOConfig.ClientId),i=ap(e.SSOConfig.ClientSecret);let o;switch(n!=null&&r!=null&&i!=null?o=0:o=1,o){case 0:return new mn(0,[]);default:return new mn(1,[new p0(n!=null?void 0:"Connection is invalid",r!=null?void 0:"Client ID is invalid",i!=null?void 0:"Client Secret is invalid")])}}default:return new mn(0,[])}}}}function v0(e,t,n){const r=[i=>d0(e),i=>o=>{const s=[i[0],i[1]];return _0(t,n,s[0],s[1],o)}];return Q_(r[0],Q(r[1]),g0,f0())}const gi=Xn;function Zo(e){return E("p",{className:"mt-1 text-sm text-red-600",children:e})}const m0=(()=>{const e=pu(t=>{let n;const r=(n=v0(t.LoginConfig,t.UpsertLoginConfigAsync,t.NavBack),lt.useState(n))[0],i=oi(q(()=>te(T(gi("Login method")),q(()=>{let o,s,a;return te(T(E("select",ce(Z([(o="mt-2 rounded-md bg-white py-1.5 pr-8 pl-3 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-indigo-600 text-sm/6",["className",o]),["onChange",u=>{switch(u.target.value){case"Disabled":{pe(r,new dt(0,[new ft(3,[])]));break}case"PartnerToken":{pe(r,new dt(0,[new ft(1,[])]));break}case"MagicLink":{pe(r,new dt(0,[new ft(2,[])]));break}case"SSO":{pe(r,new dt(0,[new ft(0,[])]));break}}}],["value",(s=_e(r).LoginMethod,s.tag===1?"PartnerToken":s.tag===2?"MagicLink":s.tag===0?"SSO":"Disabled")],(a=[E("option",{value:"Disabled",children:"Disabled"}),E("option",{value:"PartnerToken",children:"Partner Token"}),E("option",{value:"MagicLink",children:"Magic Link"}),E("option",{value:"SSO",children:"EntraID SSO"})],["children",lt.Children.toArray(Array.from(a))])])))),q(()=>{let u,l;return te((u=_e(r).LoginMethod,u.tag===1||u.tag===2?T(F()):u.tag===0?T(E("div",ce(Z([["className","mt-4"],(l=oi(q(()=>te(T(E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"})),q(()=>te(T(gi("Connection")),q(()=>{let f;return te(T(E("input",ce(Z([(f="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",f]),["value",_e(r).SSOConfig.Connection],["onChange",c=>{pe(r,new dt(1,[c.target.value]))}]])))),q(()=>{let c,d,h;return te((c=hn(r).IsValid,c.tag===1?c.fields[0].Connection!=null?(c.fields[0].Connection,_e(r).SSOConfig.Connection!==""?(d=c.fields[0].Connection,T(Zo(d))):T(E("p",ce(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))):T(E("p",ce(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])])))):T(E("p",ce(Z([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))),q(()=>te(T(gi("Client ID")),q(()=>{let _;return te(T(E("input",ce(Z([(_="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",_]),["value",_e(r).SSOConfig.ClientId],["onChange",g=>{pe(r,new dt(2,[g.target.value]))}]])))),q(()=>{let g,v;return te((g=hn(r).IsValid,g.tag===1&&g.fields[0].ClientId!=null?(g.fields[0].ClientId,_e(r).SSOConfig.ClientId!==""?(v=g.fields[0].ClientId,T(Zo(v))):T(F())):T(F())),q(()=>te(T(gi("Client Secret")),q(()=>{let m;return te(T(E("input",ce(Z([(m="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",m]),["value",_e(r).SSOConfig.ClientSecret],["onChange",w=>{pe(r,new dt(3,[w.target.value]))}]])))),q(()=>{const w=hn(r).IsValid;let x,N;switch(w.tag===1&&w.fields[0].ClientSecret!=null?(w.fields[0].ClientSecret,_e(r).SSOConfig.ClientSecret!==""?(x=0,N=w.fields[0].ClientSecret):x=1):x=1,x){case 0:return T(Zo(N));default:return T(F())}}))}))))}))}))))}))})))))),["children",lt.Children.toArray(Array.from(l))])])))):T(F())),q(()=>{let f;return te((f=_e(r).Save,f.tag===1?T(F()):f.tag===2&&f.fields[0].tag===1?T(E("div",{className:"mt-4 rounded-md bg-red-50 p-3 w-fit text-red-600",children:"There was an error saving. Please try again."})):T(F())),q(()=>{let c,d,h;return T((c=Z([E("button",ce(Z([["type","button"],(d="mt-4 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 cursor-pointer",["className",d]),["onClick",_=>{t.NavBack()}],["children","⬅ Cancel"]]))),E("button",ce(Z([["type","button"],(h="ml-4 mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer disabled:opacity-50",["className",h]),["disabled",Re(hn(r).IsValid,new mn(0,[]))?Re(_e(r).Save,new ir(1,[])):!0],["onClick",_=>{hn(r).IsValid.tag===1||pe(r,new dt(4,[]))}],["children","💾 Save"]])))]),E("div",{children:lt.Children.toArray(Array.from(c))})))}))}))}))}))));return E("div",{children:lt.Children.toArray(Array.from(i))})});return e.displayName="Component",e})();class Yo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class y0 extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class rc extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class or extends Ee{constructor(t,n,r,i,o,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=u}}class yn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class ic extends Ee{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}function oc(e){return new y0("Authorization",e)}const Bt=new or("",new Yo(0,[]),Ze(),!1,void 0,void 0,void 0,new rc(0,[]));new ic(0,"","","",Ho({Compare:Gr}),new yn(0,[""]));function sc(e,t){return s_(t)?new Array(0):Gu(t,[e],void 0,0)}function b0(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 ac(e){return new or(e,Bt.method,Bt.headers,Bt.withCredentials,Bt.overridenMimeType,Bt.overridenResponseType,Bt.timeout,Bt.content)}function uc(e,t){return new or(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function lc(e,t){return new or(t.url,t.method,qu(t.headers,cn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function w0(e,t){return new or(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function cc(e){return e0(t=>{const n=new XMLHttpRequest;n.open(b0(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,d,h,_;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,d=(h=n.responseType,h===""?new yn(0,[n.responseText]):h==="text"?new yn(0,[n.responseText]):h==="arraybuffer"?new yn(2,[n.response]):h==="blob"?new yn(1,[n.response]):new yn(3,[n.response])),_=lg(__(g=>{const v=Z(sc(":",g));if(!R(v))return[C(v).toLocaleLowerCase(),Wn(":",$(v)).trim()]},sc(`\r
|
|
33
|
-
`,n.getAllResponseHeaders())),{Compare:Gr}),new
|
|
32
|
+
`))(c);return h=>d(h)}}else if(Tu(r))if(xo(r)){const f=ln(c=>Ue(e,t,!1,c),$u(r));return c=>d=>Array.isArray(d)?ct(h=>Nh(ti(h)),ec(0,f,c,d)):new p(1,[[c,new S(0,["an array",d])]])}else switch(G(Mu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Ue(e,t,!0,W(0,he(r))),c=>d=>Ng(Z(i),c,d);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Ue(e,t,!1,W(0,he(r))),c=>d=>Yl(Z(o),c,d);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=Ue(e,t,!1,W(0,he(r))),c=>d=>jg(Z(s),c,d);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ue(e,t,!1,W(0,he(r))),d=Ue(e,t,!1,W(1,he(r)));let h;const _=Y([g=>v=>zg(Z(c),Z(d),g,v),(a=Ug(Z(c),Z(d)),g=>v=>Yl(Z(a),g,v))]);return h=g=>v=>Lg(_,g,v),g=>v=>Fg(Bg,Z(h),g,v)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ue(e,t,!1,W(0,he(r)));return d=>h=>{const _=Xl(Z(c),d,h);return _.tag===0?new p(0,[Gg(_.fields[0])]):new p(1,[_.fields[0]])}}default:return nc(e,t,n,r)}else switch(u){case"System.Boolean":return f=>c=>kg(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>Mg(f,c);case"System.String":return f=>c=>Gl(f,c);case"System.Char":return f=>c=>xg(f,c);case"System.SByte":return Hl;case"System.Byte":return zl;case"System.Int16":return Wl;case"System.UInt16":return ql;case"System.Int32":return Kl;case"System.UInt32":return Jl;case"System.Double":return f=>c=>Ig(f,c);case"System.Single":return f=>c=>$g(f,c);case"System.DateTime":return f=>c=>Rg(f,c);case"System.DateTimeOffset":return f=>c=>Pg(f,c);case"System.TimeSpan":return f=>c=>Dg(f,c);case"System.Guid":return f=>c=>Tg(f,c);case"System.Object":return f=>c=>new p(0,[c]);default:return nc(e,t,n,r)}else{const f=l;return c=>d=>f.contents(c)(d)}}function Wg(e){return Ho({Compare:Gr})}function Ko(e,t,n){const r=To(t,new pn(0,[]));return Ue(Wg(),r,!1,e)}class qg extends de{constructor(t){super(),this.Roles=t}}function Kg(){return rn("ApolloIdentity.AdminUI.Jwt.JwtPayload",[],qg,()=>[["Roles",Th(Ae)]])}function Jg(e){const t=Wu(e??"",["."],void 0,0);if(!g_((n,r)=>n===r,t)&&t.length===3){let n;const r=W(1,t);return n=atob(r),qo(Z(Ko(Kg(),new pn(1,[]))),n)}else return new p(1,["Failed to decode access token"])}class Zg{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Jo extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Jo.prototype)}}class Zo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Zo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Ut(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Jo);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Hr(n))}});else try{e(t)}catch(n){t.onError(Hr(n))}}}function Yg(e,t){return Ut(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Hr(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Xg(e){return Ut(t=>t.onSuccess(e))}class Qg{Bind(t,n){return Yg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ut(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Xg(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ut(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ut(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Hr(o))}}})})}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 Ut(t=>t.onSuccess(void 0))}}const se=new Qg;function Yo(e){}const e0=new Zg;function t0(e){return Ut(t=>e([t.onSuccess,t.onError,t.onCancel]))}function n0(e,t){return r0(e,Yo,function(n){throw n},Yo)}function rc(e,t){return n0(e)}function r0(e,t,n,r,i){const o=new Zo;e({onSuccess:t||Yo,onError:n,onCancel:r,cancelToken:e0,trampoline:o})}class yn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","LoadError","Read","Edit"]}}function i0(){return De("ApolloIdentity.AdminUI.AppTypes.Page",[],yn,()=>[[],[],[["Item",Fo()]],[["Item",Fo()]]])}let _i=class extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GoToEdit","GetLoginConfig","GetLoginConfigFinished"]}},rr=class extends de{constructor(t,n){super(),this.Page=t,this.Roles=n}};function o0(){return rn("ApolloIdentity.AdminUI.AppTypes.State",[],rr,()=>[["Page",i0()],["Roles",Ap()]])}function s0(e,t){let n;return t(new _i(1,[])),new rr(new yn(0,[]),(n=Jg(e),n.tag===1?Tp:xp(n.fields[0])))}function a0(e,t,n,r){switch(r.tag){case 1:return rc(se.Delay(()=>se.Bind(e(),i=>(n(new _i(2,[i])),se.Zero())))),new rr(new yn(0,[]),t.Roles);case 2:{const i=r.fields[0];return new rr(i.tag===1?new yn(1,[]):new yn(2,[i.fields[0]]),t.Roles)}default:return new rr(new yn(3,[r.fields[0]]),t.Roles)}}function u0(e,t){const n=[r=>s0(e,r),r=>i=>{const o=[r[0],r[1]];return a0(t,o[0],o[1],i)}];return np(n[0],Z(n[1]),o0())}class ir extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}}function l0(e){return De("ApolloIdentity.AdminUI.CommonTypes.Deferred`1",[e],ir,()=>[[],[],[["Item",e]]])}class ft extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SSO","PartnerToken","MagicLink","Disabled"]}}function c0(){return De("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.LoginMethod",[],ft,()=>[[],[],[],[]])}class St extends de{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}function f0(){return rn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.SSOConfig",[],St,()=>[["Connection",Ae],["ClientId",Ae],["ClientSecret",Ae]])}class dt extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SetLoginMethod","SetSSOConfigConnection","SetSSOConfigClientId","SetSSOConfigClientSecret","Save","SaveFinished"]}}class Ct extends de{constructor(t,n,r){super(),this.LoginMethod=t,this.SSOConfig=n,this.Save=r}}function d0(){return rn("ApolloIdentity.AdminUI.Components.EditLoginConfigTypes.State",[],Ct,()=>[["LoginMethod",c0()],["SSOConfig",f0()],["Save",l0(De("Microsoft.FSharp.Core.FSharpResult`2",[Au,Co(Ae)],p,()=>[[["ResultValue",Au]],[["ErrorValue",Co(Ae)]]]))]])}function h0(e,t){let n,r;return new Ct(e.tag===0?e.fields[0].tag===1?new ft(2,[]):e.fields[0].tag===0?new ft(0,[]):new ft(1,[]):new ft(3,[]),e.tag===0?e.fields[0].tag===1?new St("","",""):e.fields[0].tag===0?(n=e.fields[0].fields[0].fields[0],new St(n.Connection,(r=n.ClientId,r),"")):new St("","",""):new St("","",""),new ir(0,[]))}function _0(e){switch(e.LoginMethod.tag){case 1:return new Xn(0,[new ai(2,[])]);case 2:return new Xn(0,[new ai(1,[])]);case 0:return new Xn(0,[new ai(0,[new fl({ClientId:e.SSOConfig.ClientId,ClientSecret:e.SSOConfig.ClientSecret,Connection:e.SSOConfig.Connection})])]);default:return new Xn(1,[])}}function p0(e,t,n,r,i){let o,s,a;switch(i.tag){case 1:return new Ct(n.LoginMethod,(o=n.SSOConfig,new St(i.fields[0],o.ClientId,o.ClientSecret)),n.Save);case 2:return new Ct(n.LoginMethod,(s=n.SSOConfig,new St(s.Connection,i.fields[0],s.ClientSecret)),n.Save);case 3:return new Ct(n.LoginMethod,(a=n.SSOConfig,new St(a.Connection,a.ClientId,i.fields[0])),n.Save);case 4:switch(n.Save.tag){case 0:case 2:return rc(se.Delay(()=>se.Bind(e(_0(n)),l=>(r(new dt(5,[l])),se.Zero())))),new Ct(n.LoginMethod,n.SSOConfig,new ir(1,[]));default:return n}case 5:{const u=i.fields[0];return Ep(t,u),new Ct(n.LoginMethod,n.SSOConfig,new ir(2,[u]))}default:return new Ct(i.fields[0],n.SSOConfig,n.Save)}}class g0 extends de{constructor(t,n,r){super(),this.Connection=t,this.ClientId=n,this.ClientSecret=r}}class bn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Valid","Invalid"]}}function v0(e){return new class{get IsValid(){switch(e.LoginMethod.tag){case 1:return new bn(0,[]);case 2:return new bn(0,[]);case 0:{const n=ip(e.SSOConfig.Connection),r=sp(e.SSOConfig.ClientId),i=up(e.SSOConfig.ClientSecret);let o;switch(n!=null&&r!=null&&i!=null?o=0:o=1,o){case 0:return new bn(0,[]);default:return new bn(1,[new g0(n!=null?void 0:"Connection is invalid",r!=null?void 0:"Client ID is invalid",i!=null?void 0:"Client Secret is invalid")])}}default:return new bn(0,[])}}}}function m0(e,t,n){const r=[i=>h0(e),i=>o=>{const s=[i[0],i[1]];return p0(t,n,s[0],s[1],o)}];return ep(r[0],Z(r[1]),v0,d0())}const pi=Qn;function Xo(e){return E("p",{className:"mt-1 text-sm text-red-600",children:e})}const y0=(()=>{const e=vu(t=>{let n;const r=(n=m0(t.LoginConfig,t.UpsertLoginConfigAsync,t.NavBack),lt.useState(n))[0],i=ii(q(()=>te(T(pi("Login method")),q(()=>{let o,s,a;return te(T(E("select",fe(Y([(o="mt-2 rounded-md bg-white py-1.5 pr-8 pl-3 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-indigo-600 text-sm/6",["className",o]),["onChange",u=>{switch(u.target.value){case"Disabled":{ge(r,new dt(0,[new ft(3,[])]));break}case"PartnerToken":{ge(r,new dt(0,[new ft(1,[])]));break}case"MagicLink":{ge(r,new dt(0,[new ft(2,[])]));break}case"SSO":{ge(r,new dt(0,[new ft(0,[])]));break}}}],["value",(s=pe(r).LoginMethod,s.tag===1?"PartnerToken":s.tag===2?"MagicLink":s.tag===0?"SSO":"Disabled")],(a=[E("option",{value:"Disabled",children:"Disabled"}),E("option",{value:"PartnerToken",children:"Partner Token"}),E("option",{value:"MagicLink",children:"Magic Link"}),E("option",{value:"SSO",children:"EntraID SSO"})],["children",lt.Children.toArray(Array.from(a))])])))),q(()=>{let u,l;return te((u=pe(r).LoginMethod,u.tag===1||u.tag===2?T(F()):u.tag===0?T(E("div",fe(Y([["className","mt-4"],(l=ii(q(()=>te(T(E("h3",{className:"text-lg font-medium leading-6 text-gray-900",children:"EntraID SSO Configuration Details"})),q(()=>te(T(pi("Connection")),q(()=>{let f;return te(T(E("input",fe(Y([(f="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",f]),["value",pe(r).SSOConfig.Connection],["onChange",c=>{ge(r,new dt(1,[c.target.value]))}]])))),q(()=>{let c,d,h;return te((c=_n(r).IsValid,c.tag===1?c.fields[0].Connection!=null?(c.fields[0].Connection,pe(r).SSOConfig.Connection!==""?(d=c.fields[0].Connection,T(Xo(d))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])])))):T(E("p",fe(Y([["className","mt-1 text-sm text-gray-500"],(h="A human-friendly lowercase alphanumeric name that will be shown in the URL for initiating SSO logins",["children",h])]))))),q(()=>te(T(pi("Client ID")),q(()=>{let _;return te(T(E("input",fe(Y([(_="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",_]),["value",pe(r).SSOConfig.ClientId],["onChange",g=>{ge(r,new dt(2,[g.target.value]))}]])))),q(()=>{let g,v;return te((g=_n(r).IsValid,g.tag===1&&g.fields[0].ClientId!=null?(g.fields[0].ClientId,pe(r).SSOConfig.ClientId!==""?(v=g.fields[0].ClientId,T(Xo(v))):T(F())):T(F())),q(()=>te(T(pi("Client Secret")),q(()=>{let m;return te(T(E("input",fe(Y([(m="mt-2 w-100 block rounded-md bg-white px-3 py-1.5 text-gray-900 outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-indigo-600 text-sm/6",["className",m]),["value",pe(r).SSOConfig.ClientSecret],["onChange",w=>{ge(r,new dt(3,[w.target.value]))}]])))),q(()=>{const w=_n(r).IsValid;let x,N;switch(w.tag===1&&w.fields[0].ClientSecret!=null?(w.fields[0].ClientSecret,pe(r).SSOConfig.ClientSecret!==""?(x=0,N=w.fields[0].ClientSecret):x=1):x=1,x){case 0:return T(Xo(N));default:return T(F())}}))}))))}))}))))}))})))))),["children",lt.Children.toArray(Array.from(l))])])))):T(F())),q(()=>{let f;return te((f=pe(r).Save,f.tag===1?T(F()):f.tag===2&&f.fields[0].tag===1?T(E("div",{className:"mt-4 rounded-md bg-red-50 p-3 w-fit text-red-600",children:`There was an error saving: ${f.fields[0].fields[0]}`})):T(F())),q(()=>{let c,d,h;return T((c=Y([E("button",fe(Y([["type","button"],(d="mt-4 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-xs inset-ring inset-ring-gray-300 hover:bg-gray-50 cursor-pointer",["className",d]),["onClick",_=>{t.NavBack()}],["children","⬅ Cancel"]]))),E("button",fe(Y([["type","button"],(h="ml-4 mt-4 rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-xs hover:bg-indigo-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600 cursor-pointer disabled:opacity-50",["className",h]),["disabled",Pe(_n(r).IsValid,new bn(0,[]))?Pe(pe(r).Save,new ir(1,[])):!0],["onClick",_=>{_n(r).IsValid.tag===1||ge(r,new dt(4,[]))}],["children","💾 Save"]])))]),E("div",{children:lt.Children.toArray(Array.from(c))})))}))}))}))}))));return E("div",{children:lt.Children.toArray(Array.from(i))})});return e.displayName="Component",e})();class Qo extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class b0 extends U{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class ic extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class or extends de{constructor(t,n,r,i,o,s,a,u){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=u}}class wn extends U{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class oc extends de{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}function sc(e){return new b0("Authorization",e)}const Bt=new or("",new Qo(0,[]),Ye(),!1,void 0,void 0,void 0,new ic(0,[]));new oc(0,"","","",Ho({Compare:Gr}),new wn(0,[""]));function ac(e,t){return a_(t)?new Array(0):Wu(t,[e],void 0,0)}function w0(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 uc(e){return new or(e,Bt.method,Bt.headers,Bt.withCredentials,Bt.overridenMimeType,Bt.overridenResponseType,Bt.timeout,Bt.content)}function lc(e,t){return new or(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function cc(e,t){return new or(t.url,t.method,Zu(t.headers,fn(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function S0(e,t){return new or(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fc(e){return t0(t=>{const n=new XMLHttpRequest;n.open(w0(e.method),e.url),n.onreadystatechange=()=>{let u,l,f,c,d,h,_;n.readyState===4&&t[0]((u=(l=n.responseType,l===""||l==="text"?n.responseText:""),f=n.status|0,c=n.responseType,d=(h=n.responseType,h===""?new wn(0,[n.responseText]):h==="text"?new wn(0,[n.responseText]):h==="arraybuffer"?new wn(2,[n.response]):h==="blob"?new wn(1,[n.response]):new wn(3,[n.response])),_=cg(p_(g=>{const v=Y(ac(":",g));if(!R(v))return[C(v).toLocaleLowerCase(),qn(":",$(v)).trim()]},ac(`\r
|
|
33
|
+
`,n.getAllResponseHeaders())),{Compare:Gr}),new oc(f,u,c,n.responseURL,_,d)))};const r=J(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const u=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(u.fields[0],u.fields[1])}}finally{K(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const u=i;n.overrideMimeType(u)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const u=s|0;n.timeout=u|0}const a=e.content;switch(a.tag){case 1:{n.send(Ne(a.fields[0]));break}case 3:{n.send(Ne(a.fields[0]));break}case 2:{n.send(Ne(a.fields[0]));break}default:n.send()}})}function C0(e){return e}const dc=F();function gi(e){return Array.from(e)}function O0(e){return Zr(e,"O")}function E0(e){return Hp(e)}function A0(){return F()}function x0(e){return Zr(e,"O")}function T0(e,t){return JSON.stringify(t,void 0,Ne(e))}function M0(e){return t=>Lh(Vh(e,t),()=>dc)}function hc(e,t,n,r){let i;const o=new ne(F());let s;const a=G(r);s=a===""?e:kl(a,o,e);let u;if(Ao(r)){const l=ln(f=>{const c=_l(t,jt(f)),d=ht(s,t,n,f[1]);return h=>_=>{const g=Rh(h,f);return(!n||n&&g!=null)&&(_[c]=d(g)),_}},an(r));u=f=>oi((c,d)=>d(f)(c),{},l)}else if(Eo(r))u=l=>{const f=$h(l,r),c=f[0],d=f[1],h=d.length|0;if(h===0)return jt(c);{const _=h|0,g=Ru(c),v=$o(new Array(_+1),0,_+1,null);bt(v,0,jt(c));for(let m=1;m<=_;m++){const w=ht(s,t,n,W(m-1,g)[1]);bt(v,m,w(W(m-1,d)))}return v}};else throw new Error((i=G(r),Vt(Ze(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
34
34
|
|
|
35
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function ht(e,t,n,r){const i=G(r),o=
|
|
35
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=u,u}function ht(e,t,n,r){const i=G(r),o=Il(i,e);if(o==null)if(xu(r)){const s=ht(e,t,n,Hn(r));return a=>gi(Le(s,a))}else if(Oo(r))switch(G(ku(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=G(r);return ko(Ze(`Cannot generate auto encoder for %s.
|
|
36
36
|
Thoth.Json.Net only support the following enum types:
|
|
37
37
|
- sbyte
|
|
38
38
|
- byte
|
|
@@ -44,4 +44,4 @@ Thoth.Json.Net only support the following enum types:
|
|
|
44
44
|
If you can't use one of these types, please pass an extra encoder.
|
|
45
45
|
|
|
46
46
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
47
|
-
`))(a)}}else if(
|
|
47
|
+
`))(a)}}else if(Tu(r))if(xo(r)){const s=ln(a=>ht(e,t,n,a),$u(r));return a=>gi(j_((u,l)=>W(u,s)(l),a))}else{const s=G(Mu(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new ih(()=>M0(ht(e,t,n,W(0,he(r)))));return u=>u==null?dc:a.Value(u)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=ht(e,t,n,W(0,he(r)));return u=>gi(Le(a,u))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=W(0,he(r)),u=ht(e,t,n,W(1,he(r)));if(G(a)==="System.String"||G(a)==="System.Guid")return l=>oi((f,c)=>{const d=c;return f[d[0]]=u(d[1]),f},{},l);{let l;return l=ht(e,t,n,a),c=>gi(Le(d=>{const h=d;return[l(h[0]),u(h[1])]},c))}}else return hc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return A0;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return x0;case"System.DateTimeOffset":return O0;case"System.TimeSpan":return E0;case"System.Guid":return C0;case"System.Object":return s=>s;default:return hc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function k0(e){return Ho({Compare:Gr})}function I0(e,t,n,r){const i=To(t,new pn(0,[])),o=To(r,!0);return ht(k0(),i,o,e)}class $0 extends de{constructor(t){super(),this.Message=t}}function R0(){return rn("ApolloIdentity.AdminUI.Api.ErrorResponse",[],$0,()=>[["Message",Co(Ae)]])}function _c(e,t,n){return`${e}/identity/admin/partners/${t}/accounts/${n}/login-config`}function P0(e,t,n,r){return se.Delay(()=>{let i;return se.Bind(fc((i=lc(new Qo(0,[]),uc(_c(e,t,n))),cc(sc(`Bearer ${r}`),i))),o=>{let s;const a=o;return a.statusCode===200?se.Return((s=qo(Z(Ko(Fo(),new pn(1,[]))),a.responseText),s.tag===1?new p(1,[void 0]):new p(0,[s.fields[0]]))):se.Return(new p(1,[void 0]))})})}function D0(e,t,n,r,i){return se.Delay(()=>{let o,s;return se.Bind(fc((o=(s=lc(new Qo(2,[]),uc(_c(e,t,n))),cc(sc(`Bearer ${r}`),s)),S0(new ic(1,[T0(0,I0(wp(),new pn(1,[]),void 0,void 0)(i))]),o))),a=>{const u=a;if(u.statusCode===200)return se.Return(new p(0,[void 0]));{const l=qo(Z(Ko(R0(),new pn(1,[]))),u.responseText);return l.tag===1?se.Return(new p(1,[void 0])):se.Return(new p(1,[l.fields[0].Message]))}})})}function es(){return(es=Object.assign?Object.assign.bind():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)}var N0=["context","children"];function j0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},u=Object.keys(r);for(s=0;s<u.length;s++)i.indexOf(o=u[s])>=0||(a[o]=r[o]);return a}(e,N0);return Ki(t,n)}function L0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=E(j0,es({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,u=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[pc(a[s].name)]=a[s].value);for(s=u.length;s--;){var l=t(u[s],null),f=u[s].slot;f?o[f]=E(gc,{name:f},l):i[s]=l}var c=r?E(gc,null,i):i;return E(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?qi:vt)(this._vdom,this._root)}function pc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function V0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[pc(e)]=n,this._vdom=Ki(this._vdom,r),vt(this._vdom,this._root)}}function F0(){vt(this._vdom=null,this._root)}function gc(e,t){var n=this;return E("slot",es({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function U0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=L0,i.prototype.attributeChangedCallback=V0,i.prototype.disconnectedCallback=F0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t,i)}function B0(e,t){U0(e,t)}const G0=(()=>{const e=vu(t=>{const n=t.CompProps,r=t.Model,i=ii(q(()=>te(T(E("style",{children:[F_]})),q(()=>{const o=pe(r).Page;switch(o.tag){case 1:return T(E("div",{children:["Error loading login configuration."]}));case 2:{const s=o.fields[0];return T(Sp({LoginConfig:s,OnEdit:jh(pe(r).Roles.ConfigureLogin?()=>{ge(r,new _i(0,[s]))}:void 0)}))}case 3:return T(E(y0,{LoginConfig:o.fields[0],NavBack:()=>{ge(r,new _i(1,[]))},UpsertLoginConfigAsync:s=>D0(n.backendUrl,n.partnerId,n.accountId,n.accessToken,s)}));default:return T(E("div",{children:["Loading..."]}))}}))));return E($e,{},...i)});return e.displayName="App",e})();function H0(e){let t;return E(G0,{CompProps:e,Model:(t=u0(e.accessToken,()=>P0(e.backendUrl,e.partnerId,e.accountId,e.accessToken)),lt.useState(t))[0]})}B0(e=>E(H0,e),"superhero-identity-login-config")})();
|