UNPKG

netlify-identity-widget

Version:

Netlify Identity widget for easy integration

3 lines 180 kB
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var vt,z,Xn,ce,wn,er,tr,nr,an,Qt,Rt,rr,at={},lt=[],kp=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yt=Array.isArray;function ne(e,t){for(var n in t)e[n]=t[n];return e}function ln(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Op(e,t,n){var r,o,s,i={};for(s in t)s=="key"?r=t[s]:s=="ref"?o=t[s]:i[s]=t[s];if(arguments.length>2&&(i.children=arguments.length>3?vt.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)i[s]===void 0&&(i[s]=e.defaultProps[s]);return et(e,i,r,o,null)}function et(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++Xn,__i:-1,__u:0};return o==null&&z.vnode!=null&&z.vnode(s),s}function wt(e){return e.children}function tt(e,t){this.props=e,this.context=t}function De(e,t){if(t==null)return e.__?De(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"?De(e):null}function xp(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],o=[],s=ne({},t);s.__v=t.__v+1,z.vnode&&z.vnode(s),un(e.__P,s,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,n??De(t),!!(32&t.__u),o),s.__v=t.__v,s.__.__k[s.__i]=s,ar(r,s,o),t.__e=t.__=null,s.__e!=n&&or(s)}}function or(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),or(e)}function Yt(e){(!e.__d&&(e.__d=!0)&&ce.push(e)&&!ut.__r++||wn!=z.debounceRendering)&&((wn=z.debounceRendering)||er)(ut)}function ut(){for(var e,t=1;ce.length;)ce.length>t&&ce.sort(tr),e=ce.shift(),t=ce.length,xp(e);ut.__r=0}function sr(e,t,n,r,o,s,i,a,u,_,d){var c,p,M,m,y,v,N,w=r&&r.__k||lt,I=t.length;for(u=Ip(n,t,w,u,I),c=0;c<I;c++)(M=n.__k[c])!=null&&(p=M.__i!=-1&&w[M.__i]||at,M.__i=c,v=un(e,M,p,o,s,i,a,u,_,d),m=M.__e,M.ref&&p.ref!=M.ref&&(p.ref&&_n(p.ref,null,M),d.push(M.ref,M.__c||m,M)),y==null&&m!=null&&(y=m),(N=!!(4&M.__u))||p.__k===M.__k?u=ir(M,u,e,N):typeof M.type=="function"&&v!==void 0?u=v:m&&(u=m.nextSibling),M.__u&=-7);return n.__e=y,u}function Ip(e,t,n,r,o){var s,i,a,u,_,d=n.length,c=d,p=0;for(e.__k=new Array(o),s=0;s<o;s++)(i=t[s])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=e.__k[s]=et(null,i,null,null,null):yt(i)?i=e.__k[s]=et(wt,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=e.__k[s]=et(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):e.__k[s]=i,u=s+p,i.__=e,i.__b=e.__b+1,a=null,(_=i.__i=Lp(i,n,u,c))!=-1&&(c--,(a=n[_])&&(a.__u|=2)),a==null||a.__v==null?(_==-1&&(o>d?p--:o<d&&p++),typeof i.type!="function"&&(i.__u|=4)):_!=u&&(_==u-1?p--:_==u+1?p++:(_>u?p--:p++,i.__u|=4))):e.__k[s]=null;if(c)for(s=0;s<d;s++)(a=n[s])!=null&&(2&a.__u)==0&&(a.__e==r&&(r=De(a)),ur(a,a));return r}function ir(e,t,n,r){var o,s;if(typeof e.type=="function"){for(o=e.__k,s=0;o&&s<o.length;s++)o[s]&&(o[s].__=e,t=ir(o[s],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=De(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Lp(e,t,n,r){var o,s,i,a=e.key,u=e.type,_=t[n],d=_!=null&&(2&_.__u)==0;if(_===null&&a==null||d&&a==_.key&&u==_.type)return n;if(r>(d?1:0)){for(o=n-1,s=n+1;o>=0||s<t.length;)if((_=t[i=o>=0?o--:s++])!=null&&(2&_.__u)==0&&a==_.key&&u==_.type)return i}return-1}function bn(e,t,n){t[0]=="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||kp.test(t)?n:n+"px"}function Je(e,t,n,r,o){var s,i;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||bn(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||bn(e.style,t,n[t])}else if(t[0]=="o"&&t[1]=="n")s=t!=(t=t.replace(nr,"$1")),i=t.toLowerCase(),t=i in e||t=="onFocusOut"||t=="onFocusIn"?i.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=an,e.addEventListener(t,s?Rt:Qt,s)):e.removeEventListener(t,s?Rt:Qt,s);else{if(o=="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 Nn(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=an++;else if(t.t<n.u)return;return n(z.event?z.event(t):t)}}}function un(e,t,n,r,o,s,i,a,u,_){var d,c,p,M,m,y,v,N,w,I,T,O,U,ue,At,F=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(u=!!(32&n.__u),s=[a=t.__e=n.__e]),(d=z.__b)&&d(t);e:if(typeof F=="function")try{if(N=t.props,w="prototype"in F&&F.prototype.render,I=(d=F.contextType)&&r[d.__c],T=d?I?I.props.value:d.__:r,n.__c?v=(c=t.__c=n.__c).__=c.__E:(w?t.__c=c=new F(N,T):(t.__c=c=new tt(N,T),c.constructor=F,c.render=Ap),I&&I.sub(c),c.state||(c.state={}),c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),w&&c.__s==null&&(c.__s=c.state),w&&F.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=ne({},c.__s)),ne(c.__s,F.getDerivedStateFromProps(N,c.__s))),M=c.props,m=c.state,c.__v=t,p)w&&F.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),w&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(w&&F.getDerivedStateFromProps==null&&N!==M&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(N,T),t.__v==n.__v||!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(N,c.__s,T)===!1){t.__v!=n.__v&&(c.props=N,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(ve){ve&&(ve.__=t)}),lt.push.apply(c.__h,c._sb),c._sb=[],c.__h.length&&i.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(N,c.__s,T),w&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(M,m,y)})}if(c.context=T,c.props=N,c.__P=e,c.__e=!1,O=z.__r,U=0,w)c.state=c.__s,c.__d=!1,O&&O(t),d=c.render(c.props,c.state,c.context),lt.push.apply(c.__h,c._sb),c._sb=[];else do c.__d=!1,O&&O(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++U<25);c.state=c.__s,c.getChildContext!=null&&(r=ne(ne({},r),c.getChildContext())),w&&!p&&c.getSnapshotBeforeUpdate!=null&&(y=c.getSnapshotBeforeUpdate(M,m)),ue=d!=null&&d.type===wt&&d.key==null?lr(d.props.children):d,a=sr(e,yt(ue)?ue:[ue],t,n,r,o,s,i,a,u,_),c.base=t.__e,t.__u&=-161,c.__h.length&&i.push(c),v&&(c.__E=c.__=null)}catch(ve){if(t.__v=null,u||s!=null)if(ve.then){for(t.__u|=u?160:128;a&&a.nodeType==8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else{for(At=s.length;At--;)ln(s[At]);Bt(t)}else t.__e=n.__e,t.__k=n.__k,ve.then||Bt(t);z.__e(ve,t,n)}else s==null&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=Ep(n.__e,t,n,r,o,s,i,u,_);return(d=z.diffed)&&d(t),128&t.__u?void 0:a}function Bt(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Bt))}function ar(e,t,n){for(var r=0;r<n.length;r++)_n(n[r],n[++r],n[++r]);z.__c&&z.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){z.__e(s,o.__v)}})}function lr(e){return typeof e!="object"||e==null||e.__b>0?e:yt(e)?e.map(lr):ne({},e)}function Ep(e,t,n,r,o,s,i,a,u){var _,d,c,p,M,m,y,v=n.props||at,N=t.props,w=t.type;if(w=="svg"?o="http://www.w3.org/2000/svg":w=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),s!=null){for(_=0;_<s.length;_++)if((M=s[_])&&"setAttribute"in M==!!w&&(w?M.localName==w:M.nodeType==3)){e=M,s[_]=null;break}}if(e==null){if(w==null)return document.createTextNode(N);e=document.createElementNS(o,w,N.is&&N),a&&(z.__m&&z.__m(t,s),a=!1),s=null}if(w==null)v===N||a&&e.data==N||(e.data=N);else{if(s=s&&vt.call(e.childNodes),!a&&s!=null)for(v={},_=0;_<e.attributes.length;_++)v[(M=e.attributes[_]).name]=M.value;for(_ in v)M=v[_],_=="dangerouslySetInnerHTML"?c=M:_=="children"||_ in N||_=="value"&&"defaultValue"in N||_=="checked"&&"defaultChecked"in N||Je(e,_,null,M,o);for(_ in N)M=N[_],_=="children"?p=M:_=="dangerouslySetInnerHTML"?d=M:_=="value"?m=M:_=="checked"?y=M:a&&typeof M!="function"||v[_]===M||Je(e,_,M,v[_],o);if(d)a||c&&(d.__html==c.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),sr(t.type=="template"?e.content:e,yt(p)?p:[p],t,n,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":o,s,i,s?s[0]:n.__k&&De(n,0),a,u),s!=null)for(_=s.length;_--;)ln(s[_]);a||(_="value",w=="progress"&&m==null?e.removeAttribute("value"):m!=null&&(m!==e[_]||w=="progress"&&!m||w=="option"&&m!=v[_])&&Je(e,_,m,v[_],o),_="checked",y!=null&&y!=e[_]&&Je(e,_,y,v[_],o))}return e}function _n(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(o){z.__e(o,n)}}function ur(e,t,n){var r,o;if(z.unmount&&z.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||_n(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){z.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&ur(r[o],t,n||typeof e.type!="function");n||ln(e.__e),e.__c=e.__=e.__e=void 0}function Ap(e,t,n){return this.constructor(e,n)}function jn(e,t,n){var r,o,s,i;t==document&&(t=document.documentElement),z.__&&z.__(e,t),o=(r=!1)?null:t.__k,s=[],i=[],un(t,e=t.__k=Op(wt,null,[e]),o||at,at,t.namespaceURI,o?null:t.firstChild?vt.call(t.childNodes):null,s,o?o.__e:t.firstChild,r,i),ar(s,e,i)}function Sp(e){function t(n){var r,o;return this.getChildContext||(r=new Set,(o={})[t.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(s){this.props.value!=s.value&&r.forEach(function(i){i.__e=!0,Yt(i)})},this.sub=function(s){r.add(s);var i=s.componentWillUnmount;s.componentWillUnmount=function(){r&&r.delete(s),i&&i.call(s)}}),n.children}return t.__c="__cC"+rr++,t.__=e,t.Provider=t.__l=(t.Consumer=function(n,r){return n.children(r)}).contextType=t,t}vt=lt.slice,z={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(a){e=a}throw e}},Xn=0,tt.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=ne({},this.state),typeof e=="function"&&(e=e(ne({},n),this.props)),e&&ne(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Yt(this))},tt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Yt(this))},tt.prototype.render=wt,ce=[],er=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tr=function(e,t){return e.__v.__b-t.__v.__b},ut.__r=0,nr=/(PointerCapture)$|Capture$/i,an=0,Qt=Nn(!1),Rt=Nn(!0),rr=0;var $p=0;function g(e,t,n,r,o,s){t||(t={});var i,a,u=t;if("ref"in u)for(a in u={},t)a=="ref"?i=t[a]:u[a]=t[a];var _={type:e,props:u,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$p,__i:-1,__u:0,__source:o,__self:s};if(typeof e=="function"&&(i=e.defaultProps))for(a in i)u[a]===void 0&&(u[a]=i[a]);return z.vnode&&z.vnode(_),_}function j(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 Up={};function bt(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:Up}var _r=Object.assign,_t=Object.getOwnPropertyDescriptor,J=Object.defineProperty,Nt=Object.prototype,Gt=[];Object.freeze(Gt);var cn={};Object.freeze(cn);var Cp=typeof Proxy<"u",Pp=Object.toString();function cr(){Cp||j("Proxy not available")}function dr(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var we=function(){};function H(e){return typeof e=="function"}function ge(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function jt(e){return e!==null&&typeof e=="object"}function ae(e){if(!jt(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()===Pp}function gr(e){var t=e?.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function dn(e,t,n){J(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function fr(e,t,n){J(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function me(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(r){return jt(r)&&r[n]===!0}}function Le(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function Qp(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),r=Object.getPrototypeOf(n);return r===null}function ee(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var pr=typeof Object.getOwnPropertySymbols<"u";function Rp(e){var t=Object.keys(e);if(!pr)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(r){return Nt.propertyIsEnumerable.call(e,r)})):t}var gn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:pr?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function mr(e){return e===null?null:typeof e=="object"?""+e:e}function ie(e,t){return Nt.hasOwnProperty.call(e,t)}var Yp=Object.getOwnPropertyDescriptors||function(t){var n={};return gn(t).forEach(function(r){n[r]=_t(t,r)}),n};function A(e,t){return!!(e&t)}function S(e,t,n){return n?e|=t:e&=~t,e}function Dn(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 Bp(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,Hp(r.key),r)}}function Ee(e,t,n){return t&&Bp(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function be(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=Vp(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. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ze(){return ze=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},ze.apply(null,arguments)}function Mr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ht(e,t)}function Ht(e,t){return Ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ht(e,t)}function Gp(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 Hp(e){var t=Gp(e,"string");return typeof t=="symbol"?t:t+""}function Vp(e,t){if(e){if(typeof e=="string")return Dn(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)?Dn(e,t):void 0}}var Ne=Symbol("mobx-stored-annotations");function q(e){function t(n,r){if(Ge(r))return e.decorate_20223_(n,r);Be(n,r,e)}return Object.assign(t,e)}function Be(e,t,n){ie(e,Ne)||dn(e,Ne,ze({},e[Ne])),Kp(n)||(e[Ne][t]=n)}function Ge(e){return typeof e=="object"&&typeof e.kind=="string"}var h=Symbol("mobx administration"),le=(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_=D.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 Er(this)},t.reportChanged=function(){R(),Ar(this),Y()},t.toString=function(){return this.name_},Ee(e,[{key:"isBeingObserved",get:function(){return A(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=S(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return A(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=S(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return A(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=S(this.flags_,e.diffValueMask_,r===1)}}])})();le.isBeingObservedMask_=1;le.isPendingUnobservationMask_=2;le.diffValueMask_=4;var fn=me("Atom",le);function hr(e,t,n){t===void 0&&(t=we),n===void 0&&(n=we);var r=new le(e);return t!==we&&rM(r,t),n!==we&&Qr(r,n),r}function Zp(e,t){return qr(e,t)}function Fp(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Te={structural:Zp,default:Fp};function fe(e,t,n){return Br(e)?e:Array.isArray(e)?E.array(e,{name:n}):ae(e)?E.object(e,void 0,{name:n}):Le(e)?E.map(e,{name:n}):ee(e)?E.set(e,{name:n}):typeof e=="function"&&!ke(e)&&!Ye(e)?gr(e)?Oe(e):Re(n,e):e}function Wp(e,t,n){if(e==null||Lt(e)||It(e)||he(e)||W(e))return e;if(Array.isArray(e))return E.array(e,{name:n,deep:!1});if(ae(e))return E.object(e,void 0,{name:n,deep:!1});if(Le(e))return E.map(e,{name:n,deep:!1});if(ee(e))return E.set(e,{name:n,deep:!1})}function Dt(e){return e}function Jp(e,t){return qr(e,t)?t:e}var qp="override";function Kp(e){return e.annotationType_===qp}function He(e,t){return{annotationType_:e,options_:t,make_:Xp,extend_:em,decorate_20223_:tm}}function Xp(e,t,n,r){var o;if((o=this.options_)!=null&&o.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(ke(n.value))return 1;var s=vr(e,this,t,n,!1);return J(r,t,s),2}function em(e,t,n,r){var o=vr(e,this,t,n);return e.defineProperty_(t,o,r)}function tm(e,t){var n=t.kind,r=t.name,o=t.addInitializer,s=this,i=function(_){var d,c,p,M;return pe((d=(c=s.options_)==null?void 0:c.name)!=null?d:r.toString(),_,(p=(M=s.options_)==null?void 0:M.autoAction)!=null?p:!1)};if(n=="field")return function(u){var _,d=u;return ke(d)||(d=i(d)),(_=s.options_)!=null&&_.bound&&(d=d.bind(this),d.isMobxAction=!0),d};if(n=="method"){var a;return ke(e)||(e=i(e)),(a=this.options_)!=null&&a.bound&&o(function(){var u=this,_=u[r].bind(u);_.isMobxAction=!0,u[r]=_}),e}j("Cannot apply '"+s.annotationType_+"' to '"+String(r)+"' (kind: "+n+"):"+(` '`+s.annotationType_+"' can only be used on properties with a function value."))}function nm(e,t,n,r){t.annotationType_,r.value}function vr(e,t,n,r,o){var s,i,a,u,_,d,c;o===void 0&&(o=f.safeDescriptors),nm(e,t,n,r);var p=r.value;if((s=t.options_)!=null&&s.bound){var M;p=p.bind((M=e.proxy_)!=null?M:e.target_)}return{value:pe((i=(a=t.options_)==null?void 0:a.name)!=null?i:n.toString(),p,(u=(_=t.options_)==null?void 0:_.autoAction)!=null?u:!1,(d=t.options_)!=null&&d.bound?(c=e.proxy_)!=null?c:e.target_:void 0),configurable:o?e.isPlainObject_:!0,enumerable:!1,writable:!o}}function yr(e,t){return{annotationType_:e,options_:t,make_:rm,extend_:om,decorate_20223_:sm}}function rm(e,t,n,r){var o;if(r===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((o=this.options_)!=null&&o.bound&&(!ie(e.target_,t)||!Ye(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Ye(n.value))return 1;var s=wr(e,this,t,n,!1,!1);return J(r,t,s),2}function om(e,t,n,r){var o,s=wr(e,this,t,n,(o=this.options_)==null?void 0:o.bound);return e.defineProperty_(t,s,r)}function sm(e,t){var n,r=t.name,o=t.addInitializer;return Ye(e)||(e=Oe(e)),(n=this.options_)!=null&&n.bound&&o(function(){var s=this,i=s[r].bind(s);i.isMobXFlow=!0,s[r]=i}),e}function im(e,t,n,r){t.annotationType_,r.value}function wr(e,t,n,r,o,s){s===void 0&&(s=f.safeDescriptors),im(e,t,n,r);var i=r.value;if(Ye(i)||(i=Oe(i)),o){var a;i=i.bind((a=e.proxy_)!=null?a:e.target_),i.isMobXFlow=!0}return{value:i,configurable:s?e.isPlainObject_:!0,enumerable:!1,writable:!s}}function pn(e,t){return{annotationType_:e,options_:t,make_:am,extend_:lm,decorate_20223_:um}}function am(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function lm(e,t,n,r){return _m(e,this,t,n),e.defineComputedProperty_(t,ze({},this.options_,{get:n.get,set:n.set}),r)}function um(e,t){var n=this,r=t.name,o=t.addInitializer;return o(function(){var s=We(this)[h],i=ze({},n.options_,{get:e,context:this});i.name||(i.name="ObservableObject."+r.toString()),s.values_.set(r,new V(i))}),function(){return this[h].getObservablePropValue_(r)}}function _m(e,t,n,r){t.annotationType_,r.get}function zt(e,t){return{annotationType_:e,options_:t,make_:cm,extend_:dm,decorate_20223_:gm}}function cm(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function dm(e,t,n,r){var o,s;return fm(e,this),e.defineObservableProperty_(t,n.value,(o=(s=this.options_)==null?void 0:s.enhancer)!=null?o:fe,r)}function gm(e,t){var n=this,r=t.kind,o=t.name,s=new WeakSet;function i(a,u){var _,d,c=We(a)[h],p=new de(u,(_=(d=n.options_)==null?void 0:d.enhancer)!=null?_:fe,"ObservableObject."+o.toString(),!1);c.values_.set(o,p),s.add(a)}if(r=="accessor")return{get:function(){return s.has(this)||i(this,e.get.call(this)),this[h].getObservablePropValue_(o)},set:function(u){return s.has(this)||i(this,u),this[h].setObservablePropValue_(o,u)},init:function(u){return s.has(this)||i(this,u),u}}}function fm(e,t,n,r){t.annotationType_}var pm="true",mm=br();function br(e){return{annotationType_:pm,options_:e,make_:Mm,extend_:hm,decorate_20223_:vm}}function Mm(e,t,n,r){var o,s;if(n.get)return Tt.make_(e,t,n,r);if(n.set){var i=ke(n.set)?n.set:pe(t.toString(),n.set);return r===e.target_?e.defineProperty_(t,{configurable:f.safeDescriptors?e.isPlainObject_:!0,set:i})===null?0:2:(J(r,t,{configurable:!0,set:i}),2)}if(r!==e.target_&&typeof n.value=="function"){var a;if(gr(n.value)){var u,_=(u=this.options_)!=null&&u.autoBind?Oe.bound:Oe;return _.make_(e,t,n,r)}var d=(a=this.options_)!=null&&a.autoBind?Re.bound:Re;return d.make_(e,t,n,r)}var c=((o=this.options_)==null?void 0:o.deep)===!1?E.ref:E;if(typeof n.value=="function"&&(s=this.options_)!=null&&s.autoBind){var p;n.value=n.value.bind((p=e.proxy_)!=null?p:e.target_)}return c.make_(e,t,n,r)}function hm(e,t,n,r){var o,s;if(n.get)return Tt.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:f.safeDescriptors?e.isPlainObject_:!0,set:pe(t.toString(),n.set)},r);if(typeof n.value=="function"&&(o=this.options_)!=null&&o.autoBind){var i;n.value=n.value.bind((i=e.proxy_)!=null?i:e.target_)}var a=((s=this.options_)==null?void 0:s.deep)===!1?E.ref:E;return a.extend_(e,t,n,r)}function vm(e,t){j("'"+this.annotationType_+"' cannot be used as a decorator")}var ym="observable",wm="observable.ref",bm="observable.shallow",Nm="observable.struct",Nr={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Nr);function qe(e){return e||Nr}var Vt=zt(ym),jm=zt(wm,{enhancer:Dt}),Dm=zt(bm,{enhancer:Wp}),zm=zt(Nm,{enhancer:Jp}),jr=q(Vt);function Ke(e){return e.deep===!0?fe:e.deep===!1?Dt:km(e.defaultDecorator)}function Tm(e){var t;return e?(t=e.defaultDecorator)!=null?t:br(e):void 0}function km(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:fe}function Dr(e,t,n){if(Ge(t))return Vt.decorate_20223_(e,t);if(ge(t)){Be(e,t,Vt);return}return Br(e)?e:ae(e)?E.object(e,t,n):Array.isArray(e)?E.array(e,t):Le(e)?E.map(e,t):ee(e)?E.set(e,t):typeof e=="object"&&e!==null?e:E.box(e,t)}_r(Dr,jr);var Om={box:function(t,n){var r=qe(n);return new de(t,Ke(r),r.name,!0,r.equals)},array:function(t,n){var r=qe(n);return(f.useProxies===!1||r.proxy===!1?DM:pM)(t,Ke(r),r.name)},map:function(t,n){var r=qe(n);return new Hr(t,Ke(r),r.name)},set:function(t,n){var r=qe(n);return new Vr(t,Ke(r),r.name)},object:function(t,n,r){return Ae(function(){return aM(f.useProxies===!1||r?.proxy===!1?We({},r):dM({},r),t,n)})},ref:q(jm),shallow:q(Dm),deep:jr,struct:q(zm)},E=_r(Dr,Om),zr="computed",xm="computed.struct",Zt=pn(zr),Im=pn(xm,{equals:Te.structural}),Tt=function(t,n){if(Ge(n))return Zt.decorate_20223_(t,n);if(ge(n))return Be(t,n,Zt);if(ae(t))return q(pn(zr,t));var r=ae(n)?n:{};return r.get=t,r.name||(r.name=t.name||""),new V(r)};Object.assign(Tt,Zt);Tt.struct=q(Im);var zn,Tn,ct=0,Lm=1,Em=(zn=(Tn=_t(function(){},"name"))==null?void 0:Tn.configurable)!=null?zn:!1,kn={value:"action",configurable:!0,writable:!1,enumerable:!1};function pe(e,t,n,r){n===void 0&&(n=!1);function o(){return Am(e,n,t,r||this,arguments)}return o.isMobxAction=!0,o.toString=function(){return t.toString()},Em&&(kn.value=e,J(o,"name",kn)),o}function Am(e,t,n,r,o){var s=Sm(e,t);try{return n.apply(r,o)}catch(i){throw s.error_=i,i}finally{$m(s)}}function Sm(e,t,n,r){var o=!1,s=0,i=f.trackingDerivation,a=!t||!i;R();var u=f.allowStateChanges;a&&(Me(),u=kt(!0));var _=mn(!0),d={runAsAction_:a,prevDerivation_:i,prevAllowStateChanges_:u,prevAllowStateReads_:_,notifySpy_:o,startTime_:s,actionId_:Lm++,parentActionId_:ct};return ct=d.actionId_,d}function $m(e){ct!==e.actionId_&&j(30),ct=e.parentActionId_,e.error_!==void 0&&(f.suppressReactionErrors=!0),Ot(e.prevAllowStateChanges_),Pe(e.prevAllowStateReads_),Y(),e.runAsAction_&&re(e.prevDerivation_),f.suppressReactionErrors=!1}function Um(e,t){var n=kt(e);try{return t()}finally{Ot(n)}}function kt(e){var t=f.allowStateChanges;return f.allowStateChanges=e,t}function Ot(e){f.allowStateChanges=e}var de=(function(e){function t(r,o,s,i,a){var u;return s===void 0&&(s="ObservableValue"),a===void 0&&(a=Te.default),u=e.call(this,s)||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=o,u.name_=s,u.equals=a,u.value_=o(r,void 0,s),u}Mr(t,e);var n=t.prototype;return n.dehanceValue=function(o){return this.dehancer!==void 0?this.dehancer(o):o},n.set=function(o){this.value_,o=this.prepareNewValue_(o),o!==f.UNCHANGED&&this.setNewValue_(o)},n.prepareNewValue_=function(o){if(P(this)){var s=Q(this,{object:this,type:K,newValue:o});if(!s)return f.UNCHANGED;o=s.newValue}return o=this.enhancer(o,this.value_,this.name_),this.equals(this.value_,o)?f.UNCHANGED:o},n.setNewValue_=function(o){var s=this.value_;this.value_=o,this.reportChanged(),B(this)&&G(this,{type:K,object:this,newValue:o,oldValue:s})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(o){return Ze(this,o)},n.observe_=function(o,s){return s&&o({observableKind:"value",debugObjectName:this.name_,object:this,type:K,newValue:this.value_,oldValue:void 0}),Fe(this,o)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return mr(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t})(le),V=(function(){function e(n){this.dependenciesState_=D.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=D.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new gt(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=dt.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||j(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=pe("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Te.structural:Te.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){Ym(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&&j(32,this.name_,this.derivation),f.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ft(this)&&(this.warnAboutUntrackedRead_(),R(),this.value_=this.computeValue_(!1),Y());else if(Er(this),Ft(this)){var r=f.trackingContext;this.keepAlive_&&!r&&(f.trackingContext=this),this.trackAndCompute()&&Rm(this),f.trackingContext=r}var o=this.value_;if(nt(o))throw o.cause;return o},t.set=function(r){if(this.setter_){this.isRunningSetter&&j(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,r)}finally{this.isRunningSetter=!1}}else j(34,this.name_)},t.trackAndCompute=function(){var r=this.value_,o=this.dependenciesState_===D.NOT_TRACKING_,s=this.computeValue_(!0),i=o||nt(r)||nt(s)||!this.equals_(r,s);return i&&(this.value_=s),i},t.computeValue_=function(r){this.isComputing=!0;var o=kt(!1),s;if(r)s=Tr(this,this.derivation,this.scope_);else if(f.disableErrorBoundaries===!0)s=this.derivation.call(this.scope_);else try{s=this.derivation.call(this.scope_)}catch(i){s=new gt(i)}return Ot(o),this.isComputing=!1,s},t.suspend_=function(){this.keepAlive_||(Wt(this),this.value_=void 0)},t.observe_=function(r,o){var s=this,i=!0,a=void 0;return Km(function(){var u=s.get();if(!i||o){var _=Me();r({observableKind:"computed",debugObjectName:s.name_,type:K,object:s,newValue:u,oldValue:a}),re(_)}i=!1,a=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return mr(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},Ee(e,[{key:"isComputing",get:function(){return A(this.flags_,e.isComputingMask_)},set:function(r){this.flags_=S(this.flags_,e.isComputingMask_,r)}},{key:"isRunningSetter",get:function(){return A(this.flags_,e.isRunningSetterMask_)},set:function(r){this.flags_=S(this.flags_,e.isRunningSetterMask_,r)}},{key:"isBeingObserved",get:function(){return A(this.flags_,e.isBeingObservedMask_)},set:function(r){this.flags_=S(this.flags_,e.isBeingObservedMask_,r)}},{key:"isPendingUnobservation",get:function(){return A(this.flags_,e.isPendingUnobservationMask_)},set:function(r){this.flags_=S(this.flags_,e.isPendingUnobservationMask_,r)}},{key:"diffValue",get:function(){return A(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=S(this.flags_,e.diffValueMask_,r===1)}}])})();V.isComputingMask_=1;V.isRunningSetterMask_=2;V.isBeingObservedMask_=4;V.isPendingUnobservationMask_=8;V.diffValueMask_=16;var xt=me("ComputedValue",V),D;(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_"})(D||(D={}));var dt;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(dt||(dt={}));var gt=function(t){this.cause=void 0,this.cause=t};function nt(e){return e instanceof gt}function Ft(e){switch(e.dependenciesState_){case D.UP_TO_DATE_:return!1;case D.NOT_TRACKING_:case D.STALE_:return!0;case D.POSSIBLY_STALE_:{for(var t=mn(!0),n=Me(),r=e.observing_,o=r.length,s=0;s<o;s++){var i=r[s];if(xt(i)){if(f.disableErrorBoundaries)i.get();else try{i.get()}catch{return re(n),Pe(t),!0}if(e.dependenciesState_===D.STALE_)return re(n),Pe(t),!0}}return Or(e),re(n),Pe(t),!1}}}function Tr(e,t,n){var r=mn(!0);Or(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++f.runId;var o=f.trackingDerivation;f.trackingDerivation=e,f.inBatch++;var s;if(f.disableErrorBoundaries===!0)s=t.call(n);else try{s=t.call(n)}catch(i){s=new gt(i)}return f.inBatch--,f.trackingDerivation=o,Cm(e),Pe(r),s}function Cm(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=D.UP_TO_DATE_,o=0,s=e.unboundDepsCount_,i=0;i<s;i++){var a=n[i];a.diffValue===0&&(a.diffValue=1,o!==i&&(n[o]=a),o++),a.dependenciesState_>r&&(r=a.dependenciesState_)}for(n.length=o,e.newObserving_=null,s=t.length;s--;){var u=t[s];u.diffValue===0&&Ir(u,e),u.diffValue=0}for(;o--;){var _=n[o];_.diffValue===1&&(_.diffValue=0,Qm(_,e))}r!==D.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Wt(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Ir(t[n],e);e.dependenciesState_=D.NOT_TRACKING_}function kr(e){var t=Me();try{return e()}finally{re(t)}}function Me(){var e=f.trackingDerivation;return f.trackingDerivation=null,e}function re(e){f.trackingDerivation=e}function mn(e){var t=f.allowStateReads;return f.allowStateReads=e,t}function Pe(e){f.allowStateReads=e}function Or(e){if(e.dependenciesState_!==D.UP_TO_DATE_){e.dependenciesState_=D.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=D.UP_TO_DATE_}}var rt=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},ot=!0,xr=!1,f=(function(){var e=bt();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(ot=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new rt().version&&(ot=!1),ot?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new rt):(setTimeout(function(){xr||j(35)},1),new rt)})();function Pm(){if((f.pendingReactions.length||f.inBatch||f.isRunningReactions)&&j(36),xr=!0,ot){var e=bt();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),f=new rt}}function Qm(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Ir(e,t){e.observers_.delete(t),e.observers_.size===0&&Lr(e)}function Lr(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,f.pendingUnobservations.push(e))}function R(){f.inBatch++}function Y(){if(--f.inBatch===0){Sr();for(var e=f.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 V&&n.suspend_())}f.pendingUnobservations=[]}}function Er(e){var t=f.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&f.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&f.inBatch>0&&Lr(e),!1)}function Ar(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=D.STALE_}))}function Rm(e){e.lowestObserverState_!==D.STALE_&&(e.lowestObserverState_=D.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.POSSIBLY_STALE_?t.dependenciesState_=D.STALE_:t.dependenciesState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.UP_TO_DATE_)}))}function Ym(e){e.lowestObserverState_===D.UP_TO_DATE_&&(e.lowestObserverState_=D.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===D.UP_TO_DATE_&&(t.dependenciesState_=D.POSSIBLY_STALE_,t.onBecomeStale_())}))}var X=(function(){function e(n,r,o,s){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_=D.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=dt.NONE,this.name_=n,this.onInvalidate_=r,this.errorHandler_=o,this.requiresObservable_=s}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,f.pendingReactions.push(this),Sr())},t.runReaction_=function(){if(!this.isDisposed){R(),this.isScheduled=!1;var r=f.trackingContext;if(f.trackingContext=this,Ft(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(o){this.reportExceptionInDerivation_(o)}}f.trackingContext=r,Y()}},t.track=function(r){if(!this.isDisposed){R(),this.isRunning=!0;var o=f.trackingContext;f.trackingContext=this;var s=Tr(this,r,void 0);f.trackingContext=o,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Wt(this),nt(s)&&this.reportExceptionInDerivation_(s.cause),Y()}},t.reportExceptionInDerivation_=function(r){var o=this;if(this.errorHandler_){this.errorHandler_(r,this);return}if(f.disableErrorBoundaries)throw r;var s="[mobx] uncaught error in '"+this+"'";f.suppressReactionErrors||console.error(s,r),f.globalReactionErrorHandlers.forEach(function(i){return i(r,o)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(R(),Wt(this),Y()))},t.getDisposer_=function(r){var o=this,s=function i(){o.dispose(),r==null||r.removeEventListener==null||r.removeEventListener("abort",i)};return r==null||r.addEventListener==null||r.addEventListener("abort",s),s[h]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(s[Symbol.dispose]=s),s},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(r){},Ee(e,[{key:"isDisposed",get:function(){return A(this.flags_,e.isDisposedMask_)},set:function(r){this.flags_=S(this.flags_,e.isDisposedMask_,r)}},{key:"isScheduled",get:function(){return A(this.flags_,e.isScheduledMask_)},set:function(r){this.flags_=S(this.flags_,e.isScheduledMask_,r)}},{key:"isTrackPending",get:function(){return A(this.flags_,e.isTrackPendingMask_)},set:function(r){this.flags_=S(this.flags_,e.isTrackPendingMask_,r)}},{key:"isRunning",get:function(){return A(this.flags_,e.isRunningMask_)},set:function(r){this.flags_=S(this.flags_,e.isRunningMask_,r)}},{key:"diffValue",get:function(){return A(this.flags_,e.diffValueMask_)?1:0},set:function(r){this.flags_=S(this.flags_,e.diffValueMask_,r===1)}}])})();X.isDisposedMask_=1;X.isScheduledMask_=2;X.isTrackPendingMask_=4;X.isRunningMask_=8;X.diffValueMask_=16;var Bm=100,Jt=function(t){return t()};function Sr(){f.inBatch>0||f.isRunningReactions||Jt(Gm)}function Gm(){f.isRunningReactions=!0;for(var e=f.pendingReactions,t=0;e.length>0;){++t===Bm&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction_()}f.isRunningReactions=!1}var ft=me("Reaction",X);function Hm(e){var t=Jt;Jt=function(r){return e(function(){return t(r)})}}function Qe(){return!1}function Vm(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var $r="action",Zm="action.bound",Ur="autoAction",Fm="autoAction.bound",Wm="<unnamed action>",qt=He($r),Jm=He(Zm,{bound:!0}),Kt=He(Ur,{autoAction:!0}),qm=He(Fm,{autoAction:!0,bound:!0});function Cr(e){var t=function(r,o){if(H(r))return pe(r.name||Wm,r,e);if(H(o))return pe(r,o,e);if(Ge(o))return(e?Kt:qt).decorate_20223_(r,o);if(ge(o))return Be(r,o,e?Kt:qt);if(ge(r))return q(He(e?Ur:$r,{name:r,autoAction:e}))};return t}var b=Cr(!1);Object.assign(b,qt);var Re=Cr(!0);Object.assign(Re,Kt);b.bound=q(Jm);Re.bound=q(qm);function ke(e){return H(e)&&e.isMobxAction===!0}function Km(e,t){var n,r,o,s;t===void 0&&(t=cn);var i=(n=(r=t)==null?void 0:r.name)!=null?n:"Autorun",a=!t.scheduler&&!t.delay,u;if(a)u=new X(i,function(){this.track(c)},t.onError,t.requiresObservable);else{var _=Pr(t),d=!1;u=new X(i,function(){d||(d=!0,_(function(){d=!1,u.isDisposed||u.track(c)}))},t.onError,t.requiresObservable)}function c(){e(u)}return(o=t)!=null&&(o=o.signal)!=null&&o.aborted||u.schedule_(),u.getDisposer_((s=t)==null?void 0:s.signal)}var Xm=function(t){return t()};function Pr(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Xm}function Ve(e,t,n){var r,o,s;n===void 0&&(n=cn);var i=(r=n.name)!=null?r:"Reaction",a=b(i,n.onError?eM(n.onError,t):t),u=!n.scheduler&&!n.delay,_=Pr(n),d=!0,c=!1,p,M=n.compareStructural?Te.structural:n.equals||Te.default,m=new X(i,function(){d||u?y():c||(c=!0,_(y))},n.onError,n.requiresObservable);function y(){if(c=!1,!m.isDisposed){var v=!1,N=p;m.track(function(){var w=Um(!1,function(){return e(m)});v=d||!M(p,w),p=w}),(d&&n.fireImmediately||!d&&v)&&a(p,N,m),d=!1}}return(o=n)!=null&&(o=o.signal)!=null&&o.aborted||m.schedule_(),m.getDisposer_((s=n)==null?void 0:s.signal)}function eM(e,t){return function(){try{return t.apply(this,arguments)}catch(n){e.call(this,n)}}}var tM="onBO",nM="onBUO";function rM(e,t,n){return Rr(tM,e,t,n)}function Qr(e,t,n){return Rr(nM,e,t,n)}function Rr(e,t,n,r){var o=Xt(t),s=H(r)?r:n,i=e+"L";return o[i]?o[i].add(s):o[i]=new Set([s]),function(){var a=o[i];a&&(a.delete(s),a.size===0&&delete o[i])}}var oM="never",On="always",sM="observed";function iM(e){e.isolateGlobalState===!0&&Pm();var t=e.useProxies,n=e.enforceActions;t!==void 0&&(f.useProxies=t===On?!0:t===oM?!1:typeof Proxy<"u"),t==="ifavailable"&&(f.verifyProxies=!0);{var r=n===sM;f.enforceActions=r,f.allowStateChanges=!(r===!0||r===On)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(o){o in e&&(f[o]=!!e[o])}),f.allowStateReads=!f.observableRequiresReaction,e.reactionScheduler&&Hm(e.reactionScheduler)}function aM(e,t,n,r){var o=Yp(t);return Ae(function(){var s=We(e,r)[h];gn(o).forEach(function(i){s.extend_(i,o[i],n&&i in n?n[i]:!0)})}),e}var lM=0;function Yr(){this.message="FLOW_CANCELLED"}Yr.prototype=Object.create(Error.prototype);var St=yr("flow"),uM=yr("flow.bound",{bound:!0}),Oe=Object.assign(function(t,n){if(Ge(n))return St.decorate_20223_(t,n);if(ge(n))return Be(t,n,St);var r=t,o=r.name||"<unnamed flow>",s=function(){var a=this,u=arguments,_=++lM,d=b(o+" - runid: "+_+" - init",r).apply(a,u),c,p=void 0,M=new Promise(function(m,y){var v=0;c=y;function N(T){p=void 0;var O;try{O=b(o+" - runid: "+_+" - yield "+v++,d.next).call(d,T)}catch(U){return y(U)}I(O)}function w(T){p=void 0;var O;try{O=b(o+" - runid: "+_+" - yield "+v++,d.throw).call(d,T)}catch(U){return y(U)}I(O)}function I(T){if(H(T?.then)){T.then(I,y);return}return T.done?m(T.value):(p=Promise.resolve(T.value),p.then(N,w))}N(void 0)});return M.cancel=b(o+" - runid: "+_+" - cancel",function(){try{p&&xn(p);var m=d.return(void 0),y=Promise.resolve(m.value);y.then(we,we),xn(y),c(new Yr)}catch(v){c(v)}}),M};return s.isMobXFlow=!0,s},St);Oe.bound=q(uM);function xn(e){H(e.cancel)&&e.cancel()}function Ye(e){return e?.isMobXFlow===!0}function _M(e,t){return e?Lt(e)||!!e[h]||fn(e)||ft(e)||xt(e):!1}function Br(e){return _M(e)}function te(e,t){t===void 0&&(t=void 0),R();try{return e.apply(t)}finally{Y()}}function ye(e){return e[h]}var cM={has:function(t,n){return ye(t).has_(n)},get:function(t,n){return ye(t).get_(n)},set:function(t,n,r){var o;return ge(n)?(o=ye(t).set_(n,r,!0))!=null?o:!0:!1},deleteProperty:function(t,n){var r;return ge(n)?(r=ye(t).delete_(n,!0))!=null?r:!0:!1},defineProperty:function(t,n,r){var o;return(o=ye(t).defineProperty_(n,r))!=null?o:!0},ownKeys:function(t){return ye(t).ownKeys_()},preventExtensions:function(t){j(13)}};function dM(e,t){var n,r;return cr(),e=We(e,t),(r=(n=e[h]).proxy_)!=null?r:n.proxy_=new Proxy(e,cM)}function P(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Ze(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),dr(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function Q(e,t){var n=Me();try{for(var r=[].concat(e.interceptors_||[]),o=0,s=r.length;o<s&&(t=r[o](t),t&&!t.type&&j(14),!!t);o++);return t}finally{re(n)}}function B(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Fe(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),dr(function(){var r=n.indexOf(t);r!==-1&&n.splice(r,1)})}function G(e,t){var n=Me(),r=e.changeListeners_;if(r){r=r.slice();for(var o=0,s=r.length;o<s;o++)r[o](t);re(n)}}var In="splice",K="update",gM=1e4,fM={get:function(t,n){var r=t[h];return n===h?r:n==="length"?r.getArrayLength_():typeof n=="string"&&!isNaN(n)?r.get_(parseInt(n)):ie(pt,n)?pt[n]:t[n]},set:function(t,n,r){var o=t[h];return n==="length"&&o.setArrayLength_(r),typeof n=="symbol"||isNaN(n)?t[n]=r:o.set_(parseInt(n),r),!0},preventExtensions:function(){j(15)}},Mn=(function(){function e(n,r,o,s){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_=o,this.legacyMode_=s,this.atom_=new le(n),this.enhancer_=function(i,a){return r(i,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 Ze(this,r)},t.observe_=function(r,o){return o===void 0&&(o=!1),o&&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}),Fe(this,r)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(r){(typeof r!="number"||isNaN(r)||r<0)&&j("Out of range: "+r);var o=this.values_.length;if(r!==o)if(r>o){for(var s=new Array(r-o),i=0;i<r-o;i++)s[i]=void 0;this.spliceWithArray_(o,0,s)}else this.spliceWithArray_(r,o-r)},t.updateArrayLength_=function(r,o){r!==this.lastKnownLength_&&j(16),this.lastKnownLength_+=o,this.legacyMode_&&o>0&&Jr(r+o+1)},t.spliceWithArray_=function(r,o,s){var i=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?o=a-r:o==null?o=0:o=Math.max(0,Math.min(o,a-r)),s===void 0&&(s=Gt),P(this)){var u=Q(this,{object:this.proxy_,type:In,index:r,removedCount:o,added:s});if(!u)return Gt;o=u.removedCount,s=u.added}if(s=s.length===0?s:s.map(function(c){return i.enhancer_(c,void 0)}),this.legacyMode_){var _=s.length-o;this.updateArrayLength_(a,_)}var d=this.spliceItemsIntoValues_(r,o,s);return(o!==0||s.length!==0)&&this.notifyArraySplice_(r,s,d),this.dehanceValues_(d)},t.spliceItemsIntoValues_=function(r,o,s){if(s.length<gM){var i;return(i=this.values_).splice.apply(i,[r,o].concat(s))}else{var a=this.values_.slice(r,r+o),u=this.values_.slice(r+o);this.values_.length+=s.length-o;for(var _=0;_<s.length;_++)this.values_[r+_]=s[_];for(var d=0;d<u.length;d++)this.values_[r+s.length+d]=u[d];return a}},t.notifyArrayChildUpdate_=function(r,o,s){var i=!this.owned_&&Qe(),a=B(this),u=a||i?{observableKind:"array",object:this.proxy_,type:K,debugObjectName:this.atom_.name_,index:r,newValue:o,oldValue:s}:null;this.atom_.reportChanged(),a&&G(this,u)},t.notifyArraySplice_=function(r,o,s){var i=!this.owned_&&Qe(),a=B(this),u=a||i?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:In,index:r,removed:s,added:o,removedCount:s.length,addedCount:o.length}:null;this.atom_.reportChanged(),a&&G(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,o){var s=this.values_;if(this.legacyMode_&&r>s.length&&j(17,r,s.length),r<s.length){this.atom_;var i=s[r];if(P(this)){var a=Q(this,{type:K,object:this.proxy_,index:r,newValue:o});if(!a)return;o=a.newValue}o=this.enhancer_(o,i);var u=o!==i;u&&(s[r]=o,this.notifyArrayChildUpdate_(r,o,i))}else{for(var _=new Array(r+1-s.length),d=0;d<_.length-1;d++)_[d]=void 0;_[_.length-1]=o,this.spliceWithArray_(s.length,0,_)}},e})();function pM(e,t,n,r){return n===void 0&&(n="ObservableArray"),r===void 0&&(r=!1),cr(),Ae(function(){var o=new Mn(n,t,r,!1);fr(o.values_,h,o);var s=new Proxy(o.values_,fM);return o.proxy_=s,e&&e.length&&o.spliceWithArray_(0,0,e),s})}var pt={clear:function(){return this.splice(0)},replace:function(t){var n=this[h];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];var i=this[h];switch(arguments.length){case 0:return[];case 1:return i.spliceWithArray_(t);case 2:return i.spliceWithArray_(t,n)}return i.spliceWithArray_(t,n,o)},spliceWithArray:function(t,n,r){return this[h].spliceWithArray_(t,n,r)},push:function(){for(var t=this[h],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.spliceWithArray_(t.values_.length,0,r),t.values_.length},pop:function(){return this.splice(Math.max(this[h].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[h],n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.spliceWithArray_(0,0,r),t.values_.length},reverse:function(){return f.trackingDerivation&&j(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){f.trackingDerivation&&j(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[h],r=n.dehanceValues_(n.values