From bd8e39f7837bc68c447779e00a5ef3c98bb0ee76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Tue, 2 Aug 2022 19:07:00 +0300 Subject: [PATCH] v8.0.2 --- docs/dbmonster-mobx/dist/bundle.js | 16 +------------- docs/uibench-normalization/dist/bundle.js | 2 +- docs/uibench-reactlike/dist/bundle.js | 2 +- docs/uibench/dist/bundle.js | 2 +- lerna.json | 2 +- packages/inferno-animation/package.json | 12 +++++------ packages/inferno-clone-vnode/package.json | 8 +++---- packages/inferno-compat/package.json | 22 ++++++++++---------- packages/inferno-create-class/package.json | 8 +++---- packages/inferno-create-element/package.json | 8 +++---- packages/inferno-extras/package.json | 6 +++--- packages/inferno-hydrate/package.json | 12 +++++------ packages/inferno-hyperscript/package.json | 8 +++---- packages/inferno-mobx/package.json | 12 +++++------ packages/inferno-redux/package.json | 10 ++++----- packages/inferno-router/package.json | 6 +++--- packages/inferno-server/package.json | 14 ++++++------- packages/inferno-shared/package.json | 2 +- packages/inferno-test-utils/package.json | 8 +++---- packages/inferno-utils/package.json | 6 +++--- packages/inferno-vnode-flags/package.json | 2 +- packages/inferno/package.json | 8 +++---- 22 files changed, 81 insertions(+), 95 deletions(-) diff --git a/docs/dbmonster-mobx/dist/bundle.js b/docs/dbmonster-mobx/dist/bundle.js index 25f0fe536..a86d8029d 100644 --- a/docs/dbmonster-mobx/dist/bundle.js +++ b/docs/dbmonster-mobx/dist/bundle.js @@ -1,15 +1 @@ -!function(){"use strict";function e(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=function(e,t,n,r){this.min=e,this.max=t,this.mean=n,this.last=r},s=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var t=this.samples,n=0;nn&&(n=o),r+=o}var s=e[this._i],u=r/e.length;return new a(t,n,u,s)},e}(),u=[],l=-1,c=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){function e(e){var t=this;this._sync=function(){t.sync(),t._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,u.push(e),-1===l&&requestAnimationFrame((function(e){l=-1;var t=u;u=[];for(var n=0;n0?U(n.componentWillDisappear,B(e,t)):I(e,t,!1)}function H(e,t,n,r,i,o,a,s){e.componentWillMove.push({dom:r,fn:function(){4&a?n.componentWillMove(t,i,r,s):8&a&&n.onComponentWillMove(t,i,r,s)},next:o,parent:i})}function F(e,t,n,r,i){var o,a,s=t.flags;do{var u=t.flags;if(1521&u)return void(_(o)||!w(o.componentWillMove)&&!w(o.onComponentWillMove)?T(n,t.dom,r):H(i,e,o,t.dom,n,r,s,a));var l=t.children;if(4&u)o=t.children,a=t.props,t=l.$LI;else if(8&u)o=t.ref,a=t.props,t=l;else if(8192&u){if(2!==t.childFlags){for(var c=0,f=l.length;c0,l=x(s),c=O(s)&&s[0]===Y;u||l||c?(n=n||t.slice(0,o),(u||c)&&(a=se(a)),(l||c)&&(a.key=Y+o),n.push(a)):n&&n.push(a),a.flags|=65536}}r=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=se(t)),r=2;return e.children=n,e.childFlags=r,e}function fe(e){if(g(e)||b(e))return ie(e,null);if(m(e))return oe(e,0,null);return 16384&e.flags?se(e):e}var he="http://www.w3.org/1999/xlink",pe="http://www.w3.org/XML/1998/namespace",de={"xlink:actuate":he,"xlink:arcrole":he,"xlink:href":he,"xlink:role":he,"xlink:show":he,"xlink:title":he,"xlink:type":he,"xml:base":pe,"xml:lang":pe,"xml:space":pe};function ve(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var ye=ve(0),me=ve(null),be=ve(!0);function _e(e,t){var n=t.$EV;return n||(n=t.$EV=ve(null)),n[e]||1===++ye[e]&&(me[e]=Te(e)),n}function ge(e,t){var n=t.$EV;n&&n[e]&&(0===--ye[e]&&(document.removeEventListener(j(e),me[e]),me[e]=null),n[e]=null)}function we(e,t,n,r){if(w(n))_e(e,r)[e]=n;else if(A(n)){if(z(t,n))return;_e(e,r)[e]=n}else ge(e,r)}function Oe(e){return w(e.composedPath)?e.composedPath()[0]:e.target}function xe(e,t,n,r){var i=Oe(e);do{if(t&&i.disabled)return;var o=i.$EV;if(o){var a=o[n];if(a&&(r.dom=i,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}i=i.parentNode}while(!x(i))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ae(){return this.defaultPrevented}function Ce(){return this.cancelBubble}function ke(e){var t={dom:document};return e.isDefaultPrevented=Ae,e.isPropagationStopped=Ce,e.stopPropagation=Se,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function je(e){return function(t){if(0!==t.button)return void t.stopPropagation();xe(t,!0,e,ke(t))}}function Ee(e){return function(t){xe(t,!1,e,ke(t))}}function Te(e){var t="onClick"===e||"onDblClick"===e?je(e):Ee(e);return document.addEventListener(j(e),t),t}function Ne(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function Pe(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var i=t.toLowerCase();e[i]&&e[i](n)}}function Ve(e,t){var n=function(n){var r=this.$V;if(!r)return;var i=r.props||C,o=r.dom;if(O(e))Pe(i,e,n);else for(var a=0;a-1&&t.options[o]&&(a=t.options[o].value),n&&_(a)&&(a=e.defaultValue),$e(r,a)}}var Ke,qe,ze=Ve("onInput",Ye),Xe=Ve("onChange");function Je(e,t){De(e,"input",ze),t.onChange&&De(e,"change",Xe)}function Ye(e,t,n){var r=e.value,i=t.value;if(_(r)){if(n){var o=e.defaultValue;_(o)||o===i||(t.defaultValue=o,t.value=o)}}else i!==r&&(t.defaultValue=r,t.value=r)}function Qe(e,t,n,r,i,o){64&e?Be(r,n):256&e?Ge(r,n,i,t):128&e&&Ye(r,n,i),o&&(n.$V=t)}function Ze(e,t,n){64&e?Ie(t,n):256&e?We(t):128&e&&Je(t,n)}function et(e){return e.type&&Me(e.type)?!_(e.checked):!_(e.value)}function tt(e){e&&!J(e,null)&&e.current&&(e.current=null)}function nt(e,t,n){e&&(w(e)||void 0!==e.current)&&n.push((function(){J(e,t)||void 0===e.current||(e.current=t)}))}function rt(e,t,n){it(e,n),$(e,t,n)}function it(e,t){var n,r=e.flags,i=e.children;if(481&r){n=e.ref;var o=e.props;tt(n);var a=e.childFlags;if(!x(o))for(var s=Object.keys(o),u=0,l=s.length;u0?U(n.componentWillDisappear,at(t,e)):e.textContent=""}function ut(e,t,n,r){ot(n,r),8192&t.flags?$(t,e,r):st(e,n,r)}function lt(e,t,n,r,i){e.componentWillDisappear.push((function(e){4&r?t.componentWillDisappear(n,e):8&r&&t.onComponentWillDisappear(n,i,e)}))}function ct(e){var t=e.event;return function(n){t(e.data,n)}}function ft(e,t,n,r){if(A(n)){if(z(t,n))return;n=ct(n)}De(r,j(e),n)}function ht(e,t,n){if(_(t))return void n.removeAttribute("style");var r,i,o=n.style;if(O(t))return void(o.cssText=t);if(_(e)||O(e))for(r in t)i=t[r],o.setProperty(r,i);else{for(r in t)(i=t[r])!==e[r]&&o.setProperty(r,i);for(r in e)_(t[r])&&o.removeProperty(r)}}function pt(e,t,n,r,i){var o=e&&e.__html||"",a=t&&t.__html||"";o!==a&&(_(a)||Ne(r,a)||(x(n)||(12&n.childFlags?ot(n.children,i):2===n.childFlags&&it(n.children,i),n.children=null,n.childFlags=1),r.innerHTML=a))}function dt(e,t,n,r,i,o,a,s){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(o&&"value"===e)break;var u=_(n)?"":n;r[e]!==u&&(r[e]=u);break;case"style":ht(t,n,r);break;case"dangerouslySetInnerHTML":pt(t,n,a,r,s);break;default:be[e]?we(e,t,n,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ft(e,t,n,r):_(n)?r.removeAttribute(e):i&&de[e]?r.setAttributeNS(de[e],e,n):r.setAttribute(e,n)}}function vt(e,t,n,r,i,o){var a=!1,s=(448&t)>0;for(var u in s&&(a=et(n))&&Ze(t,r,n),n)dt(u,null,n[u],r,i,a,null,o);s&&Qe(t,e,r,n,!0,a)}function yt(e,t,n){var r=fe(e.render(t,e.state,n)),i=n;return w(e.getChildContext)&&(i=S(n,e.getChildContext())),e.$CX=i,r}function mt(e,t,n,r,i,o){var a=new t(n,r),s=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=o,e.children=a,a.$BS=!1,a.context=r,a.props===C&&(a.props=n),s)a.state=W(a,n,a.state);else if(w(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!x(u)){var l=a.state;if(x(l))a.state=u;else for(var c in u)l[c]=u[c];a.$PS=null}a.$BR=!1}return a.$LI=yt(a,n,r),a}function bt(e,t){var n=e.props||C;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function _t(e,t,n,r,i,o,a){var s=e.flags|=16384;481&s?xt(e,t,n,r,i,o,a):4&s?At(e,t,n,r,i,o,a):8&s?Ct(e,t,n,r,i,o,a):16&s?Ot(e,t,i):8192&s?wt(e,n,t,r,i,o,a):1024&s&>(e,n,t,i,o,a)}function gt(e,t,n,r,i,o){_t(e.children,e.ref,t,!1,null,i,o);var a=ue();Ot(a,n,r),e.dom=a.dom}function wt(e,t,n,r,i,o,a){var s=e.children,u=e.childFlags;12&u&&0===s.length&&(u=e.childFlags=2,s=e.children=ue()),2===u?_t(s,n,t,r,i,o,a):St(s,n,t,r,i,o,a)}function Ot(e,t,n){var r=e.dom=document.createTextNode(e.children);x(t)||T(t,r,n)}function xt(e,t,n,r,i,o,a){var s=e.flags,u=e.props,l=e.className,c=e.childFlags,f=e.dom=N(e.type,r=r||(32&s)>0),h=e.children;if(_(l)||""===l||(r?f.setAttribute("class",l):f.className=l),16===c)q(f,h);else if(1!==c){var p=r&&"foreignObject"!==e.type;2===c?(16384&h.flags&&(e.children=h=se(h)),_t(h,f,n,p,null,o,a)):8!==c&&4!==c||St(h,f,n,p,null,o,a)}x(t)||T(t,f,i),x(u)||vt(e,s,u,f,r,a),nt(e.ref,f,o)}function St(e,t,n,r,i,o,a){for(var s=0;sp)&&(f=L(s[p-1],!1).nextSibling)}Bt(l,c,s,u,n,r,i,f,e,o,a)}function Ut(e,t,n,r,i){var o=e.ref,a=t.ref,s=t.children;if(Bt(e.childFlags,t.childFlags,e.children,s,o,n,!1,null,e,r,i),t.dom=e.dom,o!==a&&!g(s)){var u=s.dom;V(o,u),E(a,u)}}function Rt(e,t,n,r,i,o,a){var s,u=t.dom=e.dom,l=e.props,c=t.props,f=!1,h=!1;if(r=r||(32&i)>0,l!==c){var p=l||C;if((s=c||C)!==C)for(var d in(f=(448&i)>0)&&(h=et(s)),s){var v=p[d],y=s[d];v!==y&&dt(d,v,y,u,r,h,e,a)}if(p!==C)for(var m in p)_(s[m])&&!_(p[m])&&dt(m,p[m],null,u,r,h,e,a)}var b=t.children,g=t.className;e.className!==g&&(_(g)?u.removeAttribute("class"):r?u.setAttribute("class",g):u.className=g),4096&i?Mt(u,b):Bt(e.childFlags,t.childFlags,e.children,b,u,n,r&&"foreignObject"!==t.type,null,e,o,a),f&&Qe(i,t,u,s,!1,h);var w=t.ref,O=e.ref;O!==w&&(tt(O),nt(w,u,o))}function It(e,t,n,r,i,o,a){it(e,a),St(t,n,r,i,L(e,!0),o,a),$(e,n,a)}function Bt(e,t,n,r,i,o,a,s,u,l,c){switch(e){case 2:switch(t){case 2:Vt(n,r,i,o,a,s,l,c);break;case 1:rt(n,i,c);break;case 16:it(n,c),q(i,r);break;default:It(n,r,i,o,a,l,c)}break;case 1:switch(t){case 2:_t(r,i,o,a,s,l,c);break;case 1:break;case 16:q(i,r);break;default:St(r,i,o,a,s,l,c)}break;case 16:switch(t){case 16:Dt(n,r,i);break;case 2:st(i,n,c),_t(r,i,o,a,s,l,c);break;case 1:st(i,n,c);break;default:st(i,n,c),St(r,i,o,a,s,l,c)}break;default:switch(t){case 16:ot(n,c),q(i,r);break;case 2:ut(i,u,n,c),_t(r,i,o,a,s,l,c);break;case 1:ut(i,u,n,c);break;default:var f=0|n.length,h=0|r.length;0===f?h>0&&St(r,i,o,a,s,l,c):0===h?ut(i,u,n,c):8===t&&8===e?qt(n,r,i,o,a,f,h,s,u,l,c):Kt(n,r,i,o,a,f,h,s,l,c)}}}function $t(e,t,n,r,i){i.push((function(){e.componentDidUpdate(t,n,r)}))}function Ht(e,t,n,r,i,o,a,s,u,l){var c=e.state,f=e.props,h=Boolean(e.$N),p=w(e.shouldComponentUpdate);if(h&&(t=W(e,n,t!==c?S(c,t):t)),a||!p||p&&e.shouldComponentUpdate(n,t,i)){!h&&w(e.componentWillUpdate)&&e.componentWillUpdate(n,t,i),e.props=n,e.state=t,e.context=i;var d=null,v=yt(e,n,i);h&&w(e.getSnapshotBeforeUpdate)&&(d=e.getSnapshotBeforeUpdate(f,c)),Vt(e.$LI,v,r,e.$CX,o,s,u,l),e.$LI=v,w(e.componentDidUpdate)&&$t(e,f,c,d,u)}else e.props=n,e.state=t,e.context=i}function Ft(e,t,n,r,i,o,a,s){var u=t.children=e.children;if(x(u))return;u.$L=a;var l=t.props||C,c=t.ref,f=e.ref,h=u.state;if(!u.$N){if(w(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(l,r),u.$UN)return;u.$BR=!1}x(u.$PS)||(h=S(h,u.$PS),u.$PS=null)}Ht(u,h,l,n,r,i,!1,o,a,s),f!==c&&(tt(f),nt(c,u,a))}function Wt(e,t,n,r,i,o,a,s){var u=!0,l=t.props||C,c=t.ref,f=e.props,h=!_(c),p=e.children;if(h&&w(c.onComponentShouldUpdate)&&(u=c.onComponentShouldUpdate(f,l)),!1!==u){h&&w(c.onComponentWillUpdate)&&c.onComponentWillUpdate(f,l);var d=fe(bt(t,r));Vt(p,d,n,r,i,o,a,s),t.children=d,h&&w(c.onComponentDidUpdate)&&c.onComponentDidUpdate(f,l)}else t.children=p}function Gt(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function Kt(e,t,n,r,i,o,a,s,u,l){for(var c,f,h=o>a?a:o,p=0;pa)for(p=h;pp||v>d)break e;y=e[v],m=t[v]}for(y=e[p],m=t[d];y.key===m.key;){if(16384&m.flags&&(t[d]=m=se(m)),Vt(y,m,n,r,i,s,l,c),e[p]=m,d--,v>--p||v>d)break e;y=e[p],m=t[d]}}if(v>p){if(v<=d)for(h=(f=d+1)d)for(;v<=p;)rt(e[v++],n,c);else zt(e,t,r,o,a,p,d,v,n,i,s,u,l,c)}function zt(e,t,n,r,i,o,a,s,u,l,c,f,h,p){var d,v,y=0,m=0,b=s,_=s,g=o-s+1,w=a-s+1,O=new Int32Array(w+1),x=g===r,S=!1,A=0,C=0;if(i<4||(g|w)<32)for(m=b;m<=o;++m)if(d=e[m],Cs?S=!0:A=s,16384&v.flags&&(t[s]=v=se(v)),Vt(d,v,u,n,l,c,h,p),++C;break}!x&&s>a&&rt(d,u,p)}else x||rt(d,u,p);else{var k={};for(m=_;m<=a;++m)k[t[m].key]=m;for(m=b;m<=o;++m)if(d=e[m],Cb;)rt(e[b++],u,p);O[s-_]=m+1,A>s?S=!0:A=s,16384&(v=t[s]).flags&&(t[s]=v=se(v)),Vt(d,v,u,n,l,c,h,p),++C}else x||rt(d,u,p);else x||rt(d,u,p)}if(x)ut(u,f,e,p),St(t,u,n,l,c,h,p);else if(S){var j=Jt(O);for(s=j.length-1,m=w-1;m>=0;m--)0===O[m]?(16384&(v=t[A=m+_]).flags&&(t[A]=v=se(v)),_t(v,u,n,l,(y=A+1)0&&R(p.componentWillMove)}else if(C!==w)for(m=w-1;m>=0;m--)0===O[m]&&(16384&(v=t[A=m+_]).flags&&(t[A]=v=se(v)),_t(v,u,n,l,(y=A+1)Xt&&(Xt=u,Ke=new Int32Array(u),qe=new Int32Array(u));n>1]]0&&(qe[n]=Ke[o-1]),Ke[o]=n)}o=i+1;var l=new Int32Array(o);for(a=Ke[o-1];o-- >0;)l[o]=a,a=qe[a],Ke[o]=0;return l}function Yt(e,t,n,r){var i=[],o=new k,a=t.$V;G.v=!0,_(a)?_(e)||(16384&e.flags&&(e=se(e)),_t(e,t,r,!1,null,i,o),t.$V=e,a=e):_(e)?(rt(a,t,o),t.$V=null):(16384&e.flags&&(e=se(e)),Vt(a,e,t,r,!1,null,i,o),a=t.$V=e),D(i),U(o.componentDidAppear),G.v=!1,w(n)&&n(),w(K.renderComplete)&&K.renderComplete(a,t)}function Qt(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=C),Yt(e,t,n,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Zt=[],en="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},tn=!1;function nn(e,t,n,r){var i=e.$PS;if(w(t)&&(t=t(i?S(e.state,i):e.state,e.props,e.context)),_(i))e.$PS=t;else for(var o in t)i[o]=t[o];if(e.$BR)w(n)&&e.$L.push(n.bind(e));else{if(!G.v&&0===Zt.length)return an(e,r),void(w(n)&&n.call(e));if(-1===Zt.indexOf(e)&&Zt.push(e),r&&(e.$F=!0),tn||(tn=!0,en(on)),w(n)){var a=e.$QU;a||(a=e.$QU=[]),a.push(n)}}}function rn(e){for(var t=e.$QU,n=0;n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var qn=Symbol("mobx-stored-annotations");function zn(e){return Object.assign((function(t,n){Xn(t,n,e)}),e)}function Xn(e,t,n){Ln(e,qn)||kn(e,qn,Bn({},e[qn])),rr(n)||(e[qn][t]=n)}var Jn=Symbol("mobx administration"),Yn=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ei.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Si(this)},t.reportChanged=function(){Oi(),Ai(this),xi()},t.toString=function(){return this.name_},e}(),Qn=En("Atom",Yn);function Zn(e,t,n){void 0===t&&(t=wn),void 0===n&&(n=wn);var r=new Yn(e);return t!==wn&&Ki("onBO",r,t,void 0),n!==wn&&Gi(r,n),r}var er={identity:function(e,t){return e===t},structural:function(e,t){return ua(e,t)},default:function(e,t){if(Object.is)return Object.is(e,t);return e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return ua(e,t,1)}};function tr(e,t,n){if(no(e))return e;if(Array.isArray(e))return Mr.array(e,{name:n});if(An(e))return Mr.object(e,void 0,{name:n});if(Tn(e))return Mr.map(e,{name:n});if(Nn(e))return Mr.set(e,{name:n});if("function"===typeof e&&!$i(e)&&!eo(e))return Cn(e)?Qi(e):Bi(n,e);return e}function nr(e){return e}function rr(e){return"override"===e.annotationType_}function ir(e,t){return{annotationType_:e,options_:t,make_:or,extend_:ar}}function or(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if($i(n.value))return 1;var o=sr(e,this,t,n,!1);return pn(r,t,o),2}function ar(e,t,n,r){var i=sr(e,this,t,n);return e.defineProperty_(t,i,r)}function sr(e,t,n,r,i){var o,a,s,u,l,c,f,h;void 0===i&&(i=bi.safeDescriptors),h=r,t.annotationType_,h.value;var p,d=r.value;return null!=(o=t.options_)&&o.bound&&(d=d.bind(null!=(p=e.proxy_)?p:e.target_)),{value:Gr(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),d,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function ur(e,t){return{annotationType_:e,options_:t,make_:lr,extend_:cr}}function lr(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!Ln(e.target_,t)||!eo(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(eo(n.value))return 1;var o=fr(e,this,0,n,!1,!1);return pn(r,t,o),2}function cr(e,t,n,r){var i,o=fr(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function fr(e,t,n,r,i,o){var a;void 0===o&&(o=bi.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return eo(u)||(u=Qi(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function hr(e,t){return{annotationType_:e,options_:t,make_:pr,extend_:dr}}function pr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function dr(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,Bn({},this.options_,{get:n.get,set:n.set}),r);var i}function vr(e,t){return{annotationType_:e,options_:t,make_:yr,extend_:mr}}function yr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function mr(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:tr,r)}var br=_r();function _r(e){return{annotationType_:"true",options_:e,make_:gr,extend_:wr}}function gr(e,t,n,r){var i,o;if(n.get)return Ir.make_(e,t,n,r);if(n.set){var a=Gr(t.toString(),n.set);if(r===e.target_)return null===e.defineProperty_(t,{configurable:!bi.safeDescriptors||e.isPlainObject_,set:a})?0:2;return pn(r,t,{configurable:!0,set:a}),2}if(r!==e.target_&&"function"===typeof n.value){var s,u;if(Cn(n.value))return(null!=(u=this.options_)&&u.autoBind?Qi.bound:Qi).make_(e,t,n,r);return(null!=(s=this.options_)&&s.autoBind?Bi.bound:Bi).make_(e,t,n,r)}var l,c=!1===(null==(i=this.options_)?void 0:i.deep)?Mr.ref:Mr;return"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),c.make_(e,t,n,r)}function wr(e,t,n,r){var i,o,a;if(n.get)return Ir.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!bi.safeDescriptors||e.isPlainObject_,set:Gr(t.toString(),n.set)},r);return"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Mr.ref:Mr).extend_(e,t,n,r)}var Or={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function xr(e){return e||Or}Object.freeze(Or);var Sr=vr("observable"),Ar=vr("observable.ref",{enhancer:nr}),Cr=vr("observable.shallow",{enhancer:function(e,t,n){if(void 0===e||null===e)return e;if(qo(e)||Eo(e)||Lo(e)||Bo(e))return e;if(Array.isArray(e))return Mr.array(e,{name:n,deep:!1});if(An(e))return Mr.object(e,void 0,{name:n,deep:!1});if(Tn(e))return Mr.map(e,{name:n,deep:!1});if(Nn(e))return Mr.set(e,{name:n,deep:!1})}}),kr=vr("observable.struct",{enhancer:function(e,t){if(ua(e,t))return t;return e}}),jr=zn(Sr);function Er(e){return!0===e.deep?tr:!1===e.deep?nr:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:tr;var t,n,r}function Tr(e){var t;return e?null!=(t=e.defaultDecorator)?t:_r(e):void 0}function Nr(e,t,n){if(xn(t))return void Xn(e,t,Sr);if(no(e))return e;if(An(e))return Mr.object(e,t,n);if(Array.isArray(e))return Mr.array(e,t);if(Tn(e))return Mr.map(e,t);if(Nn(e))return Mr.set(e,t);if("object"===typeof e&&null!==e)return e;return Mr.box(e,t)}Object.assign(Nr,jr);var Pr,Vr,Dr={box:function(e,t){var n=xr(t);return new Zr(e,Er(n),n.name,!0,n.equals)},array:function(e,t){var n=xr(t);return(!1===bi.useProxies||!1===n.proxy?ra:go)(e,Er(n),n.name)},map:function(e,t){var n=xr(t);return new Mo(e,Er(n),n.name)},set:function(e,t){var n=xr(t);return new Io(e,Er(n),n.name)},object:function(e,t,n){return qi(!1===bi.useProxies||!1===(null==n?void 0:n.proxy)?Wo({},n):uo({},n),e,t)},ref:zn(Ar),shallow:zn(Cr),deep:jr,struct:zn(kr)},Mr=fn(Nr,Dr),Lr="computed",Ur=hr(Lr),Rr=hr("computed.struct",{equals:er.structural}),Ir=function(e,t){if(xn(t))return Xn(e,t,Ur);if(An(e))return zn(hr(Lr,e));var n=An(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new ni(n)};Object.assign(Ir,Ur),Ir.struct=zn(Rr);var Br,$r=0,Hr=1,Fr=null!=(Pr=null==(Vr=hn((function(){}),"name"))?void 0:Vr.configurable)&&Pr,Wr={value:"action",configurable:!0,writable:!1,enumerable:!1};function Gr(e,t,n,r){function i(){return Kr(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Fr&&(Wr.value=e,Object.defineProperty(i,"name",Wr)),i}function Kr(e,t,n,r,i){var o=qr(0,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{zr(o)}}function qr(e,t,n,r){var i=bi.trackingDerivation,o=!t||!i;Oi();var a=bi.allowStateChanges;o&&(fi(),a=Jr(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:pi(!0),notifySpy_:!1,startTime_:0,actionId_:Hr++,parentActionId_:$r};return $r=s.actionId_,s}function zr(e){$r!==e.actionId_&&un(30),$r=e.parentActionId_,void 0!==e.error_&&(bi.suppressReactionErrors=!0),Yr(e.prevAllowStateChanges_),di(e.prevAllowStateReads_),xi(),e.runAsAction_&&hi(e.prevDerivation_),bi.suppressReactionErrors=!1}function Xr(e,t){var n=Jr(e);try{return t()}finally{Yr(n)}}function Jr(e){var t=bi.allowStateChanges;return bi.allowStateChanges=e,t}function Yr(e){bi.allowStateChanges=e}Br=Symbol.toPrimitive;var Qr,Zr=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=er.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}$n(t,e);var n=t.prototype;return n.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==bi.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(lo(this)){var t=fo(this,{object:this,type:mo,newValue:e});if(!t)return bi.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?bi.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),ho(this)&&vo(this,{type:mo,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return co(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:mo,newValue:this.value_,oldValue:void 0}),po(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Mn(this.get())},n[Br]=function(){return this.valueOf()},t}(Yn);Qr=Symbol.toPrimitive;var ei,ti,ni=function(){function e(e){this.dependenciesState_=ei.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ei.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new ii(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ti.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,e.get||un(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Gr("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?er.structural:er.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){ki(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&un(32,this.name_,this.derivation),0!==bi.inBatch||0!==this.observers_.size||this.keepAlive_){if(Si(this),ai(this)){var e=bi.trackingContext;this.keepAlive_&&!e&&(bi.trackingContext=this),this.trackAndCompute()&&Ci(this),bi.trackingContext=e}}else ai(this)&&(this.warnAboutUntrackedRead_(),Oi(),this.value_=this.computeValue_(!1),xi());var t=this.value_;if(oi(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&un(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else un(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ei.NOT_TRACKING_,n=this.computeValue_(!0),r=t||oi(e)||oi(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Jr(!1);if(e)t=si(this,this.derivation,this.scope_);else if(!0===bi.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new ii(e)}return Yr(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(li(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Hi((function(){var o=n.get();if(!r||t){var a=fi();e({observableKind:"computed",debugObjectName:n.name_,type:mo,object:n,newValue:o,oldValue:i}),hi(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){return},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Mn(this.get())},t[Qr]=function(){return this.valueOf()},e}(),ri=En("ComputedValue",ni);!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_"}(ei||(ei={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ti||(ti={}));var ii=function(e){this.cause=void 0,this.cause=e};function oi(e){return e instanceof ii}function ai(e){switch(e.dependenciesState_){case ei.UP_TO_DATE_:return!1;case ei.NOT_TRACKING_:case ei.STALE_:return!0;case ei.POSSIBLY_STALE_:for(var t=pi(!0),n=fi(),r=e.observing_,i=r.length,o=0;or&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&gi(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,_i(l,e))}r!==ei.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function li(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)gi(t[n],e);e.dependenciesState_=ei.NOT_TRACKING_}function ci(e){var t=fi();try{return e()}finally{hi(t)}}function fi(){var e=bi.trackingDerivation;return bi.trackingDerivation=null,e}function hi(e){bi.trackingDerivation=e}function pi(e){var t=bi.allowStateReads;return bi.allowStateReads=e,t}function di(e){bi.allowStateReads=e}function vi(e){if(e.dependenciesState_===ei.UP_TO_DATE_)return;e.dependenciesState_=ei.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ei.UP_TO_DATE_}var yi=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},mi=!0,bi=function(){var e=cn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(mi=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new yi).version&&(mi=!1),mi?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new yi):(setTimeout((function(){un(35)}),1),new yi)}();function _i(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function gi(e,t){e.observers_.delete(t),0===e.observers_.size&&wi(e)}function wi(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,bi.pendingUnobservations.push(e))}function Oi(){bi.inBatch++}function xi(){if(0===--bi.inBatch){Ei();for(var e=bi.pendingUnobservations,t=0;t0&&wi(e),!1}function Ai(e){if(e.lowestObserverState_===ei.STALE_)return;e.lowestObserverState_=ei.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ei.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ei.STALE_}))}function Ci(e){if(e.lowestObserverState_===ei.STALE_)return;e.lowestObserverState_=ei.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ei.POSSIBLY_STALE_?t.dependenciesState_=ei.STALE_:t.dependenciesState_===ei.UP_TO_DATE_&&(e.lowestObserverState_=ei.UP_TO_DATE_)}))}function ki(e){if(e.lowestObserverState_!==ei.UP_TO_DATE_)return;e.lowestObserverState_=ei.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ei.UP_TO_DATE_&&(e.dependenciesState_=ei.POSSIBLY_STALE_,e.onBecomeStale_())}))}var ji=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ei.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ti.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,bi.pendingReactions.push(this),Ei())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Oi(),this.isScheduled_=!1;var e=bi.trackingContext;if(bi.trackingContext=this,ai(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}bi.trackingContext=e,xi()}},t.track=function(e){if(this.isDisposed_)return;Oi(),this.isRunning_=!0;var t=bi.trackingContext;bi.trackingContext=this;var n=si(this,e,void 0);bi.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&li(this),oi(n)&&this.reportExceptionInDerivation_(n.cause),xi()},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(bi.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";bi.suppressReactionErrors||console.error(n,e),bi.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Oi(),li(this),xi()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Jn]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),ro(this,e)},e}();function Ei(){if(bi.inBatch>0||bi.isRunningReactions)return;Ti()}function Ti(){bi.isRunningReactions=!0;for(var e=bi.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",t,e);if(On(n))return Gr(t,n,e);if(xn(n))return Xn(t,n,e?Li:Di);if(xn(t))return zn(ir(e?Vi:Pi,{name:t,autoAction:e}))}}var Ii=Ri(!1);Object.assign(Ii,Di);var Bi=Ri(!0);function $i(e){return On(e)&&!0===e.isMobxAction}function Hi(e,t){var n,r;void 0===t&&(t=yn);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=Wi(t),s=!1;i=new ji(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new ji(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(Bi,Li),Ii.bound=zn(Mi),Bi.bound=zn(Ui);var Fi=function(e){return e()};function Wi(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Fi}function Gi(e,t,n){return Ki("onBUO",e,t,n)}function Ki(e,t,n,r){var i="function"===typeof r?ia(t,n):ia(t),o=On(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function qi(e,t,n,r){var i=Un(t),o=Wo(e,r)[Jn];Oi();try{Dn(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{xi()}return e}var zi=0;function Xi(){this.message="FLOW_CANCELLED"}Xi.prototype=Object.create(Error.prototype);var Ji=ur("flow"),Yi=ur("flow.bound",{bound:!0}),Qi=Object.assign((function(e,t){if(xn(t))return Xn(e,t,Ji);var n=e,r=n.name||"",i=function(){var e,t=this,i=arguments,o=++zi,a=Ii(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,u=new Promise((function(t,n){var i=0;function u(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}c(t)}function l(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}c(t)}function c(e){if(On(null==e?void 0:e.then))return void e.then(c,n);if(e.done)return t(e.value);return(s=Promise.resolve(e.value)).then(u,l)}e=n,u(void 0)}));return u.cancel=Ii(r+" - runid: "+o+" - cancel",(function(){try{s&&Zi(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(wn,wn),Zi(n),e(new Xi)}catch(t){e(t)}})),u};return i.isMobXFlow=!0,i}),Ji);function Zi(e){On(e.cancel)&&e.cancel()}function eo(e){return!0===(null==e?void 0:e.isMobXFlow)}function to(e,t){if(!e)return!1;if(void 0!==t){if(qo(e))return e[Jn].values_.has(t);return!1}return qo(e)||!!e[Jn]||Qn(e)||Ni(e)||ri(e)}function no(e){return to(e)}function ro(){un("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0}function co(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),gn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function fo(e,t){var n=fi();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function po(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),gn((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function vo(e,t){var n=fi(),r=e.changeListeners_;if(!r)return;for(var i=0,o=(r=r.slice()).length;i0)return e.map(this.dehancer);return e},t.intercept_=function(e){return co(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),po(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&un("Out of range: "+e);var t=this.values_.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&na(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=vn),lo(this)){var o=fo(this,{object:this.proxy_,type:yo,index:e,removedCount:t,added:n});if(!o)return vn;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a2?n-2:0),i=2;i-1)return this.splice(n,1),!0;return!1}};function Oo(e,t){"function"===typeof Array.prototype[e]&&(wo[e]=t(e))}function xo(e){return function(){var t=this[Jn];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function So(e){return function(t,n){var r=this,i=this[Jn];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Ao(e){return function(){var t=this,n=this[Jn];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}Oo("concat",xo),Oo("flat",xo),Oo("includes",xo),Oo("indexOf",xo),Oo("join",xo),Oo("lastIndexOf",xo),Oo("slice",xo),Oo("toString",xo),Oo("toLocaleString",xo),Oo("every",So),Oo("filter",So),Oo("find",So),Oo("findIndex",So),Oo("flatMap",So),Oo("forEach",So),Oo("map",So),Oo("some",So),Oo("reduce",Ao),Oo("reduceRight",Ao);var Co,ko,jo=En("ObservableArrayAdministration",_o);function Eo(e){return Sn(e)&&jo(e[Jn])}var To={},No="add",Po="delete";Co=Symbol.iterator,ko=Symbol.toStringTag;var Vo,Do,Mo=function(){function e(e,t,n){var r=this;void 0===t&&(t=tr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Jn]=To,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_=t,this.name_=n,On(Map)||un(18),this.keysAtom_=Zn("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Xr(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!bi.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Zr(this.has_(e),nr,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Gi(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(lo(this)){var r=fo(this,{type:n?mo:No,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,lo(this)&&!fo(this,{type:Po,object:this,name:e}))return!1;if(this.has_(e)){var n=ho(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Po,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return oo((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&vo(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==bi.UNCHANGED){var r=ho(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:mo,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&vo(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,oo((function(){var r,i=new Zr(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=ho(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:No,object:this,name:e,newValue:t}:null;r&&vo(this,i)},t.get=function(e){if(this.has(e))return this.dehanceValue_(this.data_.get(e).get());return this.dehanceValue_(void 0)},t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return fa({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return fa({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Co]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=Kn(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return Lo(e)&&(e=new Map(e)),oo((function(){An(e)?Vn(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):Tn(e)?(e.constructor!==Map&&un(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&un(20,e)})),this},t.clear=function(){var e=this;oo((function(){ci((function(){for(var t,n=Kn(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return oo((function(){for(var n,r=Uo(e),i=new Map,o=!1,a=Kn(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var u=t.data_.get(s);i.set(s,u)}}for(var l,c=Kn(r.entries());!(l=c()).done;){var f=l.value,h=f[0],p=f[1],d=t.data_.has(h);if(t.set(h,p),t.data_.has(h)){var v=t.data_.get(h);i.set(h,v),d||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),m=i.keys(),b=y.next(),_=m.next();!b.done;){if(b.value!==_.value){t.keysAtom_.reportChanged();break}b=y.next(),_=m.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return po(this,e)},t.intercept_=function(e){return co(this,e)},In(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:ko,get:function(){return"Map"}}]),e}(),Lo=En("ObservableMap",Mo);function Uo(e){if(Tn(e)||Lo(e))return e;if(Array.isArray(e))return new Map(e);if(An(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return un(21,e)}var Ro={};Vo=Symbol.iterator,Do=Symbol.toStringTag;var Io=function(){function e(e,t,n){void 0===t&&(t=tr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[Jn]=Ro,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_=n,On(Set)||un(22),this.atom_=Zn(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.clear=function(){var e=this;oo((function(){ci((function(){for(var t,n=Kn(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=Kn(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,lo(this)&&!fo(this,{type:No,object:this,newValue:e}))return this;if(!this.has(e)){oo((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=ho(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:No,object:this,newValue:e}:null;n&&vo(this,r)}return this},t.delete=function(e){var t=this;if(lo(this)&&!fo(this,{type:Po,object:this,oldValue:e}))return!1;if(this.has(e)){var n=ho(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Po,object:this,oldValue:e}:null;return oo((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&vo(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return fa({next:function(){var r=e;return e+=1,rYo){for(var t=Yo;t=0&&n++}e=ca(e),t=ca(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(On(u)&&u instanceof u&&On(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!la(e[c],t[c],n-1,r,i))return!1}else{var f,h=Object.keys(e);if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!Ln(t,f=h[c])||!la(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function ca(e){if(Eo(e))return e.slice();if(Tn(e)||Lo(e))return Array.from(e.entries());if(Nn(e)||Bo(e))return Array.from(e.entries());return e}function fa(e){return e[Symbol.iterator]=ha,e}function ha(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof cn()[e]&&un("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:aa},$mobx:Jn});var pa,da,va=(pa=function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"===typeof Object.getOwnPropertySymbols;e.exports=function(e,i,o){if("string"!==typeof i){var a=Object.getOwnPropertyNames(i);r&&(a=a.concat(Object.getOwnPropertySymbols(i)));for(var s=0;s=0;i--)if(t[n=r[i]]!==e[n])return!0;return!1}var xa={componentWillMount:function(){var e=this,t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",n=!1;function r(e){var t=this[e],r=Zn("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){Oa(t,e)?(t=e,n=!0,r.reportChanged(),n=!1):t=e}})}r.call(this,"props"),r.call(this,"state");var i=this,o=this.render.bind(this),a=function(){return o(i.props,i.state,i.context)},s=null,u=!1,l=function(){var e;u=!1;var t=null;if(s.track((function(){try{t=Xr(!1,a)}catch(t){e=t}})),e)throw ga.emit(e),e;return t};this.render=function(){return(s=new ji(t+".render()",(function(){u||(u=!0,"function"===typeof e.componentWillReact&&e.componentWillReact(),n||e.forceUpdate())}))).reactComponent=e,l.$mobx=s,l.$base=e.render,e.render=l,l()}},componentWillUnmount:function(){this.render.$mobx&&(this.render.$mobx.dispose(),this.render=this.render.$base)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){if(this.state!==t)return!0;return Oa(this.props,e)}};function Sa(e,t){var n;if("string"===typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return _a||(_a=!0,ma('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?ja.apply(null,e)(Sa(t)):function(t){return Sa(e,t)};var r,i=e;if(!0===i.isMobxInjector&&ma("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),"function"===typeof i&&(!i.prototype||!i.prototype.render))return Sa((n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(e,t,n){return i(e,n)},t}(sn),n.displayName=i.displayName||i.name,n.defaultProps=i.defaultProps,n));if(!i)throw new Error("Please pass a valid component to 'observer'");return wa(r=i.prototype||i,"componentWillMount",!0),wa(r,"componentDidMount",!1),wa(r,"componentWillUnmount",!1),wa(r,"componentDidUpdate",!1),r.shouldComponentUpdate||(r.shouldComponentUpdate=xa.shouldComponentUpdate),i.isMobXReactObserver=!0,i}Sa((function(e){return(0,e.children)()})).displayName="Observer";var Aa={isMobxInjector:{configurable:!0,enumerable:!0,value:!0,writable:!0}};function Ca(e,t,n){var r="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(r+="-with-"+n);var i=function(n){function r(e,t){n.call(this,e,t),this.storeRef=this.storeRef.bind(this)}return n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r,r.prototype.storeRef=function(e){this.wrappedInstance=e},r.prototype.render=function(n,r,i){var o,a={};for(o in n)a[o]=n[o];var s=e(i.mobxStores||{},a,i)||{};for(o in s)a[o]=s[o];return re(2,t,a,null,ba(t)?null:this.storeRef)},r}(sn);return i.displayName=r,i.isMobxInjector=!1,va(i,t),i.wrappedComponent=t,Object.defineProperties(i,Aa),i}function ka(e){return function(t,n){for(var r=0,i=e.length;r0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ra(){for(var e=[],t=0;t0)for(var u=0;u",e);if(2===arguments.length&&"function"===typeof t)return Ja(e,t);if(1===arguments.length&&"string"===typeof e)return rs(e);if(!0!==r)return rs(t).apply(null,arguments);e[t]=Ja(e.name||t,n.value)};function as(e,t,n){Du(e,t,Ja(t,n.bind(e)))}os.bound=function(e,t,n,r){if(!0===r)return as(e,t,n.value),null;if(n)return{configurable:!0,enumerable:!1,get:function(){return as(this,t,n.value||n.initializer.call(this)),this[t]},set:ns};return{enumerable:!1,configurable:!0,set:function(e){as(this,t,e)},get:function(){return}}};var ss=Object.prototype.toString;function us(e,t){return ls(e,t)}function ls(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;if("function"!==i&&"object"!==i&&"object"!=typeof t)return!1;return cs(e,t,n,r)}function cs(e,t,n,r){e=fs(e),t=fs(t);var i=ss.call(e);if(i!==ss.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":if(+e!==+e)return+t!==+t;return 0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return"undefined"!==typeof Symbol&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t)}var o="[object Array]"===i;if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var a=e.constructor,s=t.constructor;if(a!==s&&!("function"===typeof a&&a instanceof a&&"function"===typeof s&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var u=(n=n||[]).length;u--;)if(n[u]===e)return r[u]===t;if(n.push(e),r.push(t),o){if((u=e.length)!==t.length)return!1;for(;u--;)if(!ls(e[u],t[u],n,r))return!1}else{var l,c=Object.keys(e);if(u=c.length,Object.keys(t).length!==u)return!1;for(;u--;)if(!hs(t,l=c[u])||!ls(e[l],t[l],n,r))return!1}return n.pop(),r.pop(),!0}function fs(e){if(Su(e))return e.peek();if(Ru(e)||fu(e))return Bu(e.entries());return e}function hs(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ps(e,t){return e===t}var ds={identity:ps,structural:function(e,t){return us(e,t)},default:function(e,t){return Uu(e,t)||ps(e,t)}};function vs(e,t){void 0===t&&(t=Cu);var n,r=t&&t.name||e.name||"Autorun@"+ju();if(t.scheduler||t.delay){var i=ms(t),o=!1;n=new _l(r,(function(){o||(o=!0,i((function(){o=!1,n.isDisposed||n.track(a)})))}),t.onError)}else n=new _l(r,(function(){this.track(a)}),t.onError);function a(){e(n)}return n.schedule(),n.getDisposer()}var ys=function(e){return e()};function ms(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:ys}var bs=function(){function e(e){this.dependenciesState=Fu.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isBeingObserved=!1,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Fu.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+ju(),this.value=new al(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=Wu.NONE,this.derivation=e.get,this.name=e.name||"ComputedValue@"+ju(),e.set&&(this.setter=Ja(this.name+"-setter",e.set)),this.equals=e.equals||(e.compareStructural||e.struct?ds.structural:ds.default),this.scope=e.context,this.requiresReaction=!!e.requiresReaction,this.keepAlive=!!e.keepAlive}return e.prototype.onBecomeStale=function(){rl(this)},e.prototype.onBecomeUnobserved=function(){},e.prototype.onBecomeObserved=function(){},e.prototype.get=function(){this.isComputing&&Eu("Cycle detected in computation "+this.name+": "+this.derivation),0!==qu.inBatch||0!==this.length||this.keepAlive?(el(this),ul(this)&&this.trackAndCompute()&&nl(this)):ul(this)&&(this.warnAboutUntrackedRead(),Qu(),this.value=this.computeValue(!1),Zu());var e=this.value;if(sl(e))throw e.cause;return e},e.prototype.peek=function(){var e=this.computeValue(!1);if(sl(e))throw e.cause;return e},e.prototype.set=function(e){if(this.setter){Tu(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else Tu(!1,!1)},e.prototype.trackAndCompute=function(){Ga()&&Ka({object:this.scope,type:"compute",name:this.name});var e=this.value,t=this.dependenciesState===Fu.NOT_TRACKING,n=this.computeValue(!0),r=t||sl(e)||sl(n)||!this.equals(e,n);return r&&(this.value=n),r},e.prototype.computeValue=function(e){var t;if(this.isComputing=!0,qu.computationDepth++,e)t=cl(this,this.derivation,this.scope);else if(!0===qu.disableErrorBoundaries)t=this.derivation.call(this.scope);else try{t=this.derivation.call(this.scope)}catch(e){t=new al(e)}return qu.computationDepth--,this.isComputing=!1,t},e.prototype.suspend=function(){this.keepAlive||(hl(this),this.value=void 0)},e.prototype.observe=function(e,t){var n=this,r=!0,i=void 0;return vs((function(){var o=n.get();if(!r||t){var a=dl();e({type:"update",object:n,newValue:o,oldValue:i}),vl(a)}r=!1,i=o}))},e.prototype.warnAboutUntrackedRead=function(){return},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.valueOf=function(){return Hu(this.get())},e}();bs.prototype[$u()]=bs.prototype.valueOf;var _s=Lu("ComputedValue",bs);function gs(e){return void 0!==e.interceptors&&e.interceptors.length>0}function ws(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),Nu((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Os(e,t){var n=dl();try{var r=e.interceptors;if(r)for(var i=0,o=r.length;i0}function Ss(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),Nu((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function As(e,t){var n=dl(),r=e.changeListeners;if(!r)return;for(var i=0,o=(r=r.slice()).length;i2&&Zs("box");var n=Gs(t);return new Cs(e,Ks(n),n.name)},shallowBox:function(e,t){return arguments.length>2&&Zs("shallowBox"),Qs.box(e,{name:t,deep:!1})},array:function(e,t){arguments.length>2&&Zs("array");var n=Gs(t);return new bu(e,Ks(n),n.name)},shallowArray:function(e,t){return arguments.length>2&&Zs("shallowArray"),Qs.array(e,{name:t,deep:!1})},map:function(e,t){arguments.length>2&&Zs("map");var n=Gs(t);return new uu(e,Ks(n),n.name)},shallowMap:function(e,t){return arguments.length>2&&Zs("shallowMap"),Qs.map(e,{name:t,deep:!1})},object:function(e,t,n){"string"===typeof arguments[1]&&Zs("object");var r=Gs(n);return Fs({},e,t,r)},shallowObject:function(e,t){return"string"===typeof arguments[1]&&Zs("shallowObject"),Qs.object(e,{},{name:t,deep:!1})},ref:Xs,shallow:zs,deep:qs,struct:Js},Qs=function(e,t,n){if("string"===typeof arguments[1])return qs.apply(null,arguments);if($s(e))return e;var r=Vu(e)?Qs.object(e,t,n):Array.isArray(e)?Qs.array(e,t):Ru(e)?Qs.map(e,t):e;if(r!==e)return r;Eu(!1)};function Zs(e){Eu("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}function eu(e,t,n){if($s(e))return e;if(Array.isArray(e))return Qs.array(e,{name:n});if(Vu(e))return Qs.object(e,void 0,{name:n});if(Ru(e))return Qs.map(e,{name:n});return e}function tu(e){return e}function nu(){return"function"===typeof Symbol&&Symbol.iterator||"@@iterator"}function ru(e,t){Mu(e,nu(),t)}function iu(e){return e[nu()]=ou,e}function ou(){return this}function au(e,t){void 0===t&&(t=void 0),Qu();try{return e.apply(t)}finally{Zu()}}Object.keys(Ys).forEach((function(e){return Qs[e]=Ys[e]}));var su={},uu=function(){function e(e,t,n){if(void 0===t&&(t=eu),void 0===n&&(n="ObservableMap@"+ju()),this.enhancer=t,this.name=n,this.$mobx=su,this._keys=new bu(void 0,tu,this.name+".keys()",!0),"function"!==typeof Map)throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(e)}return e.prototype._has=function(e){return this._data.has(e)},e.prototype.has=function(e){if(this._hasMap.has(e))return this._hasMap.get(e).get();return this._updateHasMapEntry(e,!1).get()},e.prototype.set=function(e,t){var n=this._has(e);if(gs(this)){var r=Os(this,{type:n?"update":"add",object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this._updateValue(e,t):this._addValue(e,t),this},e.prototype.delete=function(e){var t=this;if(gs(this)&&!(i=Os(this,{type:"delete",object:this,name:e})))return!1;if(this._has(e)){var n=Ga(),r=xs(this),i=r||n?{type:"delete",object:this,oldValue:this._data.get(e).value,name:e}:null;return n&&qa(La({},i,{name:this.name,key:e})),au((function(){t._keys.remove(e),t._updateHasMapEntry(e,!1),t._data.get(e).setNewValue(void 0),t._data.delete(e)})),r&&As(this,i),n&&Xa(),!0}return!1},e.prototype._updateHasMapEntry=function(e,t){var n=this._hasMap.get(e);return n?n.setNewValue(t):(n=new Cs(t,tu,this.name+"."+e+"?",!1),this._hasMap.set(e,n)),n},e.prototype._updateValue=function(e,t){var n=this._data.get(e);if((t=n.prepareNewValue(t))!==qu.UNCHANGED){var r=Ga(),i=xs(this),o=i||r?{type:"update",object:this,oldValue:n.value,name:e,newValue:t}:null;r&&qa(La({},o,{name:this.name,key:e})),n.setNewValue(t),i&&As(this,o),r&&Xa()}},e.prototype._addValue=function(e,t){var n=this;au((function(){var r=new Cs(t,n.enhancer,n.name+"."+e,!1);n._data.set(e,r),t=r.value,n._updateHasMapEntry(e,!0),n._keys.push(e)}));var r=Ga(),i=xs(this),o=i||r?{type:"add",object:this,name:e,newValue:t}:null;r&&qa(La({},o,{name:this.name,key:e})),i&&As(this,o),r&&Xa()},e.prototype.get=function(e){if(this.has(e))return this.dehanceValue(this._data.get(e).get());return this.dehanceValue(void 0)},e.prototype.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},e.prototype.keys=function(){return this._keys[nu()]()},e.prototype.values=function(){var e=this,t=0;return iu({next:function(){return t0)return e.map(this.dehancer);return e},e.prototype.intercept=function(e){return ws(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Ss(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!==typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&e+t+1>vu&&Ou(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){var r=this;ll(this.atom);var i=this.values.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=Au),gs(this)){var o=Os(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return Au;t=o.removedCount,n=o.added}var a=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,a);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,Ra([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&Ga(),i=xs(this),o=i||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&qa(La({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&As(this,o),r&&Xa()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&Ga(),i=xs(this),o=i||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&qa(La({},o,{name:this.atom.name})),this.atom.reportChanged(),i&&As(this,o),r&&Xa()},e}(),bu=function(e){function t(t,n,r,i){void 0===r&&(r="ObservableArray@"+ju()),void 0===i&&(i=!1);var o=e.call(this)||this,a=new mu(r,n,o,i);if(Mu(o,"$mobx",a),t&&t.length){var s=es(!0);o.spliceWithArray(0,0,t),ts(s)}return du&&Object.defineProperty(a.array,"0",_u),o}return Ma(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1)return this.splice(t,1),!0;return!1},t.prototype.move=function(e,t){function n(e){if(e<0)throw new Error("[mobx.array] Index out of bounds: "+e+" is negative");var t=this.$mobx.values.length;if(e>=t)throw new Error("[mobx.array] Index out of bounds: "+e+" is not smaller than "+t)}if(n.call(this,e),n.call(this,t),e===t)return;var r,i=this.$mobx.values;r=e0&&!e.__mobxGlobals&&(Ku=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Gu).version&&(Ku=!1),Ku?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Gu):(setTimeout((function(){Eu("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Gu)}();function zu(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(zu)),r}function Xu(e,t){var n=e.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ju(e,t){if(1===e.length)e.length=0,Yu(e);else{var n=e.observers,r=e.observersIndexes,i=n.pop();if(i!==t){var o=r[t.__mapid]||0;o?r[i.__mapid]=o:delete r[i.__mapid],n[o]=i}delete r[t.__mapid]}}function Yu(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,qu.pendingUnobservations.push(e))}function Qu(){qu.inBatch++}function Zu(){if(0===--qu.inBatch){gl();for(var e=qu.pendingUnobservations,t=0;t0&&Yu(e),!1}function tl(e){if(e.lowestObserverState===Fu.STALE)return;e.lowestObserverState=Fu.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.UP_TO_DATE&&(r.isTracing!==Wu.NONE&&il(r,e),r.onBecomeStale()),r.dependenciesState=Fu.STALE}}function nl(e){if(e.lowestObserverState===Fu.STALE)return;e.lowestObserverState=Fu.STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.POSSIBLY_STALE?r.dependenciesState=Fu.STALE:r.dependenciesState===Fu.UP_TO_DATE&&(e.lowestObserverState=Fu.UP_TO_DATE)}}function rl(e){if(e.lowestObserverState!==Fu.UP_TO_DATE)return;e.lowestObserverState=Fu.POSSIBLY_STALE;for(var t=e.observers,n=t.length;n--;){var r=t[n];r.dependenciesState===Fu.UP_TO_DATE&&(r.dependenciesState=Fu.POSSIBLY_STALE,r.isTracing!==Wu.NONE&&il(r,e),r.onBecomeStale())}}function il(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===Wu.BREAK){var n=[];ol(zu(hu(e,void 0)),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof bs?e.derivation.toString():"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function ol(e,t,n){if(t.length>=1e3)return void t.push("(and many more)");t.push(""+new Array(n).join("\t")+e.name),e.dependencies&&e.dependencies.forEach((function(e){return ol(e,t,n+1)}))}!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"}(Fu||(Fu={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Wu||(Wu={}));var al=function(e){this.cause=e};function sl(e){return e instanceof al}function ul(e){switch(e.dependenciesState){case Fu.UP_TO_DATE:return!1;case Fu.NOT_TRACKING:case Fu.STALE:return!0;case Fu.POSSIBLY_STALE:for(var t=dl(),n=e.observing,r=n.length,i=0;i0;qu.computationDepth>0&&t&&Eu(!1),qu.allowStateChanges||!t&&"strict"!==qu.enforceActions||Eu(!1)}function cl(e,t,n){yl(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++qu.runId;var r,i=qu.trackingDerivation;if(qu.trackingDerivation=e,!0===qu.disableErrorBoundaries)r=t.call(n);else try{r=t.call(n)}catch(e){r=new al(e)}return qu.trackingDerivation=i,fl(e),r}function fl(e){for(var t=e.observing,n=e.observing=e.newObserving,r=Fu.UP_TO_DATE,i=0,o=e.unboundDepsCount,a=0;ar&&(r=s.dependenciesState);for(n.length=i,e.newObserving=null,o=t.length;o--;)0===(s=t[o]).diffValue&&Ju(s,e),s.diffValue=0;for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,Xu(s,e))}r!==Fu.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}function hl(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ju(t[n],e);e.dependenciesState=Fu.NOT_TRACKING}function pl(e){var t=dl(),n=e();return vl(t),n}function dl(){var e=qu.trackingDerivation;return qu.trackingDerivation=null,e}function vl(e){qu.trackingDerivation=e}function yl(e){if(e.dependenciesState===Fu.UP_TO_DATE)return;e.dependenciesState=Fu.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=Fu.UP_TO_DATE}function ml(){for(var e=[],t=0;t0||qu.isRunningReactions)return;wl()}function wl(){qu.isRunningReactions=!0;for(var e=qu.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r60)return t=(e%60).toFixed(2).split("."),Math.floor(e/60)+":"+t[0].lpad("0",2)+"."+t[1];return parseFloat(e).toFixed(2)}function jl(e){return"Query elapsed"+(e>=10?" warn_long":e>=1?" warn":" short")}function El(e){return"label"+(e>=20?" label-important":e>=10?" label-warning":" label-success")}function Tl(e){var t=15*Math.random();return e.elapsed=t,e.formatElapsed=kl(t),e.elapsedClassName=jl(t),e.query="SELECT blah FROM something",e.waiting=Math.random()<.5,Math.random()<.2&&(e.query=" in transaction"),Math.random()<.1&&(e.query="vacuum"),e}function Nl(e){e.formatElapsed="",e.elapsedClassName="",e.query="",e.elapsed=null,e.waiting=null}function Pl(e,t,n){e.lastMutationId=t;for(var r=0;r<12;r++){var i=e.lastSample.queries[r];r<=n?Tl(i):Nl(i)}return e.lastSample.nbQueries=n,e.lastSample.countClassName=El(n),e}function Vl(){for(var e,t=i(Cl);!(e=t()).done;){var n=e.value;Math.random()0&&(i+=.01652892561983471*(1e3/(o-r)-i)),r=o,t.addSample(i),n.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=o.HideMin|o.HideMean),d(),void 0===performance.memory)return;var t=new s(100),n=new h("Memory",e,"MB",t);p.appendChild(n.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),n.invalidate(),setTimeout(e,30)}()}(),function(e,t){void 0===t&&(t=0),d();var n=y[e];void 0===n&&(y[e]=n=new v(e,"ms",t),p.appendChild(n.widget.element))}("view update"),Qt(re(Ol.ComponentFunction,rc,{list:Cl}),Ll),setInterval((function(){var e,t;ic(),e=performance.now(),void 0!==(t=y["view update"])&&-1!==t.startTime&&(t.data.addSample(e-t.startTime),t.widget.invalidate())}),0)}(); +!function(){"use strict";function e(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,t(e,n)}function t(e,n){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,t){if(!e)return;if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a,s=function(e,t,n,r){this.min=e,this.max=t,this.mean=n,this.last=r},u=function(){function e(e){this.samples=[],this.maxSamples=e,this._i=-1}return e.prototype.addSample=function(e){this._i=(this._i+1)%this.maxSamples,this.samples[this._i]=e},e.prototype.each=function(e){for(var t=this.samples,n=0;nn&&(n=o),r+=o}var a=e[this._i],u=r/e.length;return new s(t,n,u,a)},e}(),l=[],c=-1,f=(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){function e(e){var t=this;this._sync=function(){t.sync(),t._dirty=!1},this.name=e,this.element=document.createElement("div"),this.element.style.cssText="padding: 2px;background-color: #020;font-family: monospace;font-size: 12px;color: #0f0",this._dirty=!1,this.invalidate()}return e.prototype.invalidate=function(){var e;this._dirty||(this._dirty=!0,e=this._sync,l.push(e),-1===c&&requestAnimationFrame((function(e){c=-1;var t=l;l=[];for(var n=0;n0?R(n.componentWillDisappear,$(e,t)):I(e,t,!1)}function F(e,t,n,r,i,o,a,s){e.componentWillMove.push({dom:r,fn:function(){4&a?n.componentWillMove(t,i,r,s):8&a&&n.onComponentWillMove(t,i,r,s)},next:o,parent:i})}function H(e,t,n,r,i){var o,a,s=t.flags;do{var u=t.flags;if(1521&u)return void(g(o)||!w(o.componentWillMove)&&!w(o.onComponentWillMove)?T(n,t.dom,r):F(i,e,o,t.dom,n,r,s,a));var l=t.children;if(4&u)o=t.children,a=t.props,t=l.$LI;else if(8&u)o=t.ref,a=t.props,t=l;else if(8192&u){if(2!==t.childFlags){for(var c=0,f=l.length;c0,l=x(s),c=A(s)&&s[0]===J;u||l||c?(n=n||t.slice(0,o),(u||c)&&(a=ue(a)),(l||c)&&(a.key=J+o),n.push(a)):n&&n.push(a),a.flags|=65536}}r=0===(n=n||t).length?1:8}else(n=t).flags|=65536,81920&t.flags&&(n=ue(t)),r=2;return e.children=n,e.childFlags=r,e}function he(e){if(O(e)||m(e))return oe(e,null);if(y(e))return ae(e,0,null);return 16384&e.flags?ue(e):e}var de="http://www.w3.org/1999/xlink",ve="http://www.w3.org/XML/1998/namespace",pe={"xlink:actuate":de,"xlink:arcrole":de,"xlink:href":de,"xlink:role":de,"xlink:show":de,"xlink:title":de,"xlink:type":de,"xml:base":ve,"xml:lang":ve,"xml:space":ve};function _e(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var be=_e(0),ye=_e(null),me=_e(!0);function ge(e,t){var n=t.$EV;return n||(n=t.$EV=_e(null)),n[e]||1===++be[e]&&(ye[e]=Te(e)),n}function Oe(e,t){var n=t.$EV;n&&n[e]&&(0===--be[e]&&(document.removeEventListener(P(e),ye[e]),ye[e]=null),n[e]=null)}function we(e,t,n,r){if(w(n))ge(e,r)[e]=n;else if(C(n)){if(X(t,n))return;ge(e,r)[e]=n}else Oe(e,r)}function Ae(e){return w(e.composedPath)?e.composedPath()[0]:e.target}function xe(e,t,n,r){var i=Ae(e);do{if(t&&i.disabled)return;var o=i.$EV;if(o){var a=o[n];if(a&&(r.dom=i,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}i=i.parentNode}while(!x(i))}function Se(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Ce(){return this.defaultPrevented}function ke(){return this.cancelBubble}function je(e){var t={dom:document};return e.isDefaultPrevented=Ce,e.isPropagationStopped=ke,e.stopPropagation=Se,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return t.dom}}),t}function Pe(e){return function(t){if(0!==t.button)return void t.stopPropagation();xe(t,!0,e,je(t))}}function Ee(e){return function(t){xe(t,!1,e,je(t))}}function Te(e){var t="onClick"===e||"onDblClick"===e?Pe(e):Ee(e);return document.addEventListener(P(e),t),t}function Ne(e,t){var n=document.createElement("i");return n.innerHTML=t,n.innerHTML===e.innerHTML}function Ve(e,t,n){if(e[t]){var r=e[t];r.event?r.event(r.data,n):r(n)}else{var i=t.toLowerCase();e[i]&&e[i](n)}}function De(e,t){var n=function(n){var r=this.$V;if(!r)return;var i=r.props||k,o=r.dom;if(A(e))Ve(i,e,n);else for(var a=0;a-1&&t.options[o]&&(a=t.options[o].value),n&&g(a)&&(a=e.defaultValue),Ke(r,a)}}var Ge,ze,Xe=De("onInput",Je),Ye=De("onChange");function Qe(e,t){Me(e,"input",Xe),t.onChange&&Me(e,"change",Ye)}function Je(e,t,n){var r=e.value,i=t.value;if(g(r)){if(n){var o=e.defaultValue;g(o)||o===i||(t.defaultValue=o,t.value=o)}}else i!==r&&(t.defaultValue=r,t.value=r)}function Ze(e,t,n,r,i,o){64&e?$e(r,n):256&e?qe(r,n,i,t):128&e&&Je(r,n,i),o&&(n.$V=t)}function et(e,t,n){64&e?Ie(t,n):256&e?We(t):128&e&&Qe(t,n)}function tt(e){return e.type&&Le(e.type)?!g(e.checked):!g(e.value)}function nt(e){e&&!Q(e,null)&&e.current&&(e.current=null)}function rt(e,t,n){e&&(w(e)||void 0!==e.current)&&n.push((function(){Q(e,t)||void 0===e.current||(e.current=t)}))}function it(e,t,n){ot(e,n),K(e,t,n)}function ot(e,t){var n,r=e.flags,i=e.children;if(481&r){n=e.ref;var o=e.props;nt(n);var a=e.childFlags;if(!x(o))for(var s=Object.keys(o),u=0,l=s.length;u0?R(n.componentWillDisappear,st(t,e)):e.textContent=""}function lt(e,t,n,r){at(n,r),8192&t.flags?K(t,e,r):ut(e,n,r)}function ct(e,t,n,r,i){e.componentWillDisappear.push((function(e){4&r?t.componentWillDisappear(n,e):8&r&&t.onComponentWillDisappear(n,i,e)}))}function ft(e){var t=e.event;return function(n){t(e.data,n)}}function ht(e,t,n,r){if(C(n)){if(X(t,n))return;n=ft(n)}Me(r,P(e),n)}function dt(e,t,n){if(g(t))return void n.removeAttribute("style");var r,i,o=n.style;if(A(t))return void(o.cssText=t);if(g(e)||A(e))for(r in t)i=t[r],o.setProperty(r,i);else{for(r in t)(i=t[r])!==e[r]&&o.setProperty(r,i);for(r in e)g(t[r])&&o.removeProperty(r)}}function vt(e,t,n,r,i){var o=e&&e.__html||"",a=t&&t.__html||"";o!==a&&(g(a)||Ne(r,a)||(x(n)||(12&n.childFlags?at(n.children,i):2===n.childFlags&&ot(n.children,i),n.children=null,n.childFlags=1),r.innerHTML=a))}function pt(e,t,n,r,i,o,a,s){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!n;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[e]=!!n;break;case"defaultChecked":case"value":case"volume":if(o&&"value"===e)break;var u=g(n)?"":n;r[e]!==u&&(r[e]=u);break;case"style":dt(t,n,r);break;case"dangerouslySetInnerHTML":vt(t,n,a,r,s);break;default:me[e]?we(e,t,n,r):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ht(e,t,n,r):g(n)?r.removeAttribute(e):i&&pe[e]?r.setAttributeNS(pe[e],e,n):r.setAttribute(e,n)}}function _t(e,t,n,r,i,o){var a=!1,s=(448&t)>0;for(var u in s&&(a=tt(n))&&et(t,r,n),n)pt(u,null,n[u],r,i,a,null,o);s&&Ze(t,e,r,n,!0,a)}function bt(e,t,n){var r=he(e.render(t,e.state,n)),i=n;return w(e.getChildContext)&&(i=S(n,e.getChildContext())),e.$CX=i,r}function yt(e,t,n,r,i,o){var a=new t(n,r),s=a.$N=Boolean(t.getDerivedStateFromProps||a.getSnapshotBeforeUpdate);if(a.$SVG=i,a.$L=o,e.children=a,a.$BS=!1,a.context=r,a.props===k&&(a.props=n),s)a.state=W(a,n,a.state);else if(w(a.componentWillMount)){a.$BR=!0,a.componentWillMount();var u=a.$PS;if(!x(u)){var l=a.state;if(x(l))a.state=u;else for(var c in u)l[c]=u[c];a.$PS=null}a.$BR=!1}return a.$LI=bt(a,n,r),a}function mt(e,t){var n=e.props||k;return 32768&e.flags?e.type.render(n,e.ref,t):e.type(n,t)}function gt(e,t,n,r,i,o,a){var s=e.flags|=16384;481&s?xt(e,t,n,r,i,o,a):4&s?Ct(e,t,n,r,i,o,a):8&s?kt(e,t,n,r,i,o,a):16&s?At(e,t,i):8192&s?wt(e,n,t,r,i,o,a):1024&s&&Ot(e,n,t,i,o,a)}function Ot(e,t,n,r,i,o){gt(e.children,e.ref,t,!1,null,i,o);var a=le();At(a,n,r),e.dom=a.dom}function wt(e,t,n,r,i,o,a){var s=e.children,u=e.childFlags;12&u&&0===s.length&&(u=e.childFlags=2,s=e.children=le()),2===u?gt(s,n,t,r,i,o,a):St(s,n,t,r,i,o,a)}function At(e,t,n){var r=e.dom=document.createTextNode(e.children);x(t)||T(t,r,n)}function xt(e,t,n,r,i,o,a){var s=e.flags,u=e.props,l=e.className,c=e.childFlags,f=e.dom=N(e.type,r=r||(32&s)>0),h=e.children;if(g(l)||""===l||(r?f.setAttribute("class",l):f.className=l),16===c)z(f,h);else if(1!==c){var d=r&&"foreignObject"!==e.type;2===c?(16384&h.flags&&(e.children=h=ue(h)),gt(h,f,n,d,null,o,a)):8!==c&&4!==c||St(h,f,n,d,null,o,a)}x(t)||T(t,f,i),x(u)||_t(e,s,u,f,r,a),rt(e.ref,f,o)}function St(e,t,n,r,i,o,a){for(var s=0;sd)&&(f=U(s[d-1],!1).nextSibling)}$t(l,c,s,u,n,r,i,f,e,o,a)}function Rt(e,t,n,r,i){var o=e.ref,a=t.ref,s=t.children;if($t(e.childFlags,t.childFlags,e.children,s,o,n,!1,null,e,r,i),t.dom=e.dom,o!==a&&!O(s)){var u=s.dom;D(o,u),E(a,u)}}function Bt(e,t,n,r,i,o,a){var s,u=t.dom=e.dom,l=e.props,c=t.props,f=!1,h=!1;if(r=r||(32&i)>0,l!==c){var d=l||k;if((s=c||k)!==k)for(var v in(f=(448&i)>0)&&(h=tt(s)),s){var p=d[v],_=s[v];p!==_&&pt(v,p,_,u,r,h,e,a)}if(d!==k)for(var b in d)g(s[b])&&!g(d[b])&&pt(b,d[b],null,u,r,h,e,a)}var y=t.children,m=t.className;e.className!==m&&(g(m)?u.removeAttribute("class"):r?u.setAttribute("class",m):u.className=m),4096&i?Lt(u,y):$t(e.childFlags,t.childFlags,e.children,y,u,n,r&&"foreignObject"!==t.type,null,e,o,a),f&&Ze(i,t,u,s,!1,h);var O=t.ref,w=e.ref;w!==O&&(nt(w),rt(O,u,o))}function It(e,t,n,r,i,o,a){ot(e,a),St(t,n,r,i,U(e,!0),o,a),K(e,n,a)}function $t(e,t,n,r,i,o,a,s,u,l,c){switch(e){case 2:switch(t){case 2:Dt(n,r,i,o,a,s,l,c);break;case 1:it(n,i,c);break;case 16:ot(n,c),z(i,r);break;default:It(n,r,i,o,a,l,c)}break;case 1:switch(t){case 2:gt(r,i,o,a,s,l,c);break;case 1:break;case 16:z(i,r);break;default:St(r,i,o,a,s,l,c)}break;case 16:switch(t){case 16:Mt(n,r,i);break;case 2:ut(i,n,c),gt(r,i,o,a,s,l,c);break;case 1:ut(i,n,c);break;default:ut(i,n,c),St(r,i,o,a,s,l,c)}break;default:switch(t){case 16:at(n,c),z(i,r);break;case 2:lt(i,u,n,c),gt(r,i,o,a,s,l,c);break;case 1:lt(i,u,n,c);break;default:var f=0|n.length,h=0|r.length;0===f?h>0&&St(r,i,o,a,s,l,c):0===h?lt(i,u,n,c):8===t&&8===e?zt(n,r,i,o,a,f,h,s,u,l,c):Gt(n,r,i,o,a,f,h,s,l,c)}}}function Kt(e,t,n,r,i){i.push((function(){e.componentDidUpdate(t,n,r)}))}function Ft(e,t,n,r,i,o,a,s,u,l){var c=e.state,f=e.props,h=Boolean(e.$N),d=w(e.shouldComponentUpdate);if(h&&(t=W(e,n,t!==c?S(c,t):t)),a||!d||d&&e.shouldComponentUpdate(n,t,i)){!h&&w(e.componentWillUpdate)&&e.componentWillUpdate(n,t,i),e.props=n,e.state=t,e.context=i;var v=null,p=bt(e,n,i);h&&w(e.getSnapshotBeforeUpdate)&&(v=e.getSnapshotBeforeUpdate(f,c)),Dt(e.$LI,p,r,e.$CX,o,s,u,l),e.$LI=p,w(e.componentDidUpdate)&&Kt(e,f,c,v,u)}else e.props=n,e.state=t,e.context=i}function Ht(e,t,n,r,i,o,a,s){var u=t.children=e.children;if(x(u))return;u.$L=a;var l=t.props||k,c=t.ref,f=e.ref,h=u.state;if(!u.$N){if(w(u.componentWillReceiveProps)){if(u.$BR=!0,u.componentWillReceiveProps(l,r),u.$UN)return;u.$BR=!1}x(u.$PS)||(h=S(h,u.$PS),u.$PS=null)}Ft(u,h,l,n,r,i,!1,o,a,s),f!==c&&(nt(f),rt(c,u,a))}function Wt(e,t,n,r,i,o,a,s){var u=!0,l=t.props||k,c=t.ref,f=e.props,h=!g(c),d=e.children;if(h&&w(c.onComponentShouldUpdate)&&(u=c.onComponentShouldUpdate(f,l)),!1!==u){h&&w(c.onComponentWillUpdate)&&c.onComponentWillUpdate(f,l);var v=he(mt(t,r));Dt(d,v,n,r,i,o,a,s),t.children=v,h&&w(c.onComponentDidUpdate)&&c.onComponentDidUpdate(f,l)}else t.children=d}function qt(e,t){var n=t.children,r=t.dom=e.dom;n!==e.children&&(r.nodeValue=n)}function Gt(e,t,n,r,i,o,a,s,u,l){for(var c,f,h=o>a?a:o,d=0;da)for(d=h;dd||p>v)break e;_=e[p],b=t[p]}for(_=e[d],b=t[v];_.key===b.key;){if(16384&b.flags&&(t[v]=b=ue(b)),Dt(_,b,n,r,i,s,l,c),e[d]=b,v--,p>--d||p>v)break e;_=e[d],b=t[v]}}if(p>d){if(p<=v)for(h=(f=v+1)v)for(;p<=d;)it(e[p++],n,c);else Xt(e,t,r,o,a,d,v,p,n,i,s,u,l,c)}function Xt(e,t,n,r,i,o,a,s,u,l,c,f,h,d){var v,p,_=0,b=0,y=s,m=s,g=o-s+1,O=a-s+1,w=new Int32Array(O+1),A=g===r,x=!1,S=0,C=0;if(i<4||(g|O)<32)for(b=y;b<=o;++b)if(v=e[b],Cs?x=!0:S=s,16384&p.flags&&(t[s]=p=ue(p)),Dt(v,p,u,n,l,c,h,d),++C;break}!A&&s>a&&it(v,u,d)}else A||it(v,u,d);else{var k={};for(b=m;b<=a;++b)k[t[b].key]=b;for(b=y;b<=o;++b)if(v=e[b],Cy;)it(e[y++],u,d);w[s-m]=b+1,S>s?x=!0:S=s,16384&(p=t[s]).flags&&(t[s]=p=ue(p)),Dt(v,p,u,n,l,c,h,d),++C}else A||it(v,u,d);else A||it(v,u,d)}if(A)lt(u,f,e,d),St(t,u,n,l,c,h,d);else if(x){var j=Qt(w);for(s=j.length-1,b=O-1;b>=0;b--)0===w[b]?(16384&(p=t[S=b+m]).flags&&(t[S]=p=ue(p)),gt(p,u,n,l,(_=S+1)0&&B(d.componentWillMove)}else if(C!==O)for(b=O-1;b>=0;b--)0===w[b]&&(16384&(p=t[S=b+m]).flags&&(t[S]=p=ue(p)),gt(p,u,n,l,(_=S+1)Yt&&(Yt=u,Ge=new Int32Array(u),ze=new Int32Array(u));n>1]]0&&(ze[n]=Ge[o-1]),Ge[o]=n)}o=i+1;var l=new Int32Array(o);for(a=Ge[o-1];o-- >0;)l[o]=a,a=ze[a],Ge[o]=0;return l}function Jt(e,t,n,r){var i=[],o=new j,a=t.$V;q.v=!0,g(a)?g(e)||(16384&e.flags&&(e=ue(e)),gt(e,t,r,!1,null,i,o),t.$V=e,a=e):g(e)?(it(a,t,o),t.$V=null):(16384&e.flags&&(e=ue(e)),Dt(a,e,t,r,!1,null,i,o),a=t.$V=e),M(i),R(o.componentDidAppear),q.v=!1,w(n)&&n(),w(G.renderComplete)&&G.renderComplete(a,t)}function Zt(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=k),Jt(e,t,n,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var en=[],tn="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(e){window.setTimeout(e,0)},nn=!1;function rn(e,t,n,r){var i=e.$PS;if(w(t)&&(t=t(i?S(e.state,i):e.state,e.props,e.context)),g(i))e.$PS=t;else for(var o in t)i[o]=t[o];if(e.$BR)w(n)&&e.$L.push(n.bind(e));else{if(!q.v&&0===en.length)return sn(e,r),void(w(n)&&n.call(e));if(-1===en.indexOf(e)&&en.push(e),r&&(e.$F=!0),nn||(nn=!0,tn(an)),w(n)){var a=e.$QU;a||(a=e.$QU=[]),a.push(n)}}}function on(e){for(var t=e.$QU,n=0;n1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var zn=Symbol("mobx-stored-annotations");function Xn(e){return Object.assign((function(t,n){Yn(t,n,e)}),e)}function Yn(e,t,n){Un(e,zn)||jn(e,zn,$n({},e[zn])),ir(n)||(e[zn][t]=n)}var Qn=Symbol("mobx administration"),Jn=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ti.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Si(this)},t.reportChanged=function(){Ai(),Ci(this),xi()},t.toString=function(){return this.name_},e}(),Zn=En("Atom",Jn);function er(e,t,n){void 0===t&&(t=wn),void 0===n&&(n=wn);var r=new Jn(e);return t!==wn&&Gi("onBO",r,t,void 0),n!==wn&&qi(r,n),r}var tr={identity:function(e,t){return e===t},structural:function(e,t){return la(e,t)},default:function(e,t){if(Object.is)return Object.is(e,t);return e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return la(e,t,1)}};function nr(e,t,n){if(ro(e))return e;if(Array.isArray(e))return Lr.array(e,{name:n});if(Cn(e))return Lr.object(e,void 0,{name:n});if(Tn(e))return Lr.map(e,{name:n});if(Nn(e))return Lr.set(e,{name:n});if("function"===typeof e&&!Ki(e)&&!to(e))return kn(e)?Zi(e):$i(n,e);return e}function rr(e){return e}function ir(e){return"override"===e.annotationType_}function or(e,t){return{annotationType_:e,options_:t,make_:ar,extend_:sr}}function ar(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Ki(n.value))return 1;var o=ur(e,this,t,n,!1);return vn(r,t,o),2}function sr(e,t,n,r){var i=ur(e,this,t,n);return e.defineProperty_(t,i,r)}function ur(e,t,n,r,i){var o,a,s,u,l,c,f,h;void 0===i&&(i=mi.safeDescriptors),h=r,t.annotationType_,h.value;var d,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(d=e.proxy_)?d:e.target_)),{value:qr(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function lr(e,t){return{annotationType_:e,options_:t,make_:cr,extend_:fr}}function cr(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!Un(e.target_,t)||!to(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(to(n.value))return 1;var o=hr(e,this,0,n,!1,!1);return vn(r,t,o),2}function fr(e,t,n,r){var i,o=hr(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function hr(e,t,n,r,i,o){var a;void 0===o&&(o=mi.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return to(u)||(u=Zi(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function dr(e,t){return{annotationType_:e,options_:t,make_:vr,extend_:pr}}function vr(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function pr(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,$n({},this.options_,{get:n.get,set:n.set}),r);var i}function _r(e,t){return{annotationType_:e,options_:t,make_:br,extend_:yr}}function br(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function yr(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:nr,r)}var mr=gr();function gr(e){return{annotationType_:"true",options_:e,make_:Or,extend_:wr}}function Or(e,t,n,r){var i,o;if(n.get)return Ir.make_(e,t,n,r);if(n.set){var a=qr(t.toString(),n.set);if(r===e.target_)return null===e.defineProperty_(t,{configurable:!mi.safeDescriptors||e.isPlainObject_,set:a})?0:2;return vn(r,t,{configurable:!0,set:a}),2}if(r!==e.target_&&"function"===typeof n.value){var s,u;if(kn(n.value))return(null!=(u=this.options_)&&u.autoBind?Zi.bound:Zi).make_(e,t,n,r);return(null!=(s=this.options_)&&s.autoBind?$i.bound:$i).make_(e,t,n,r)}var l,c=!1===(null==(i=this.options_)?void 0:i.deep)?Lr.ref:Lr;return"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),c.make_(e,t,n,r)}function wr(e,t,n,r){var i,o,a;if(n.get)return Ir.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!mi.safeDescriptors||e.isPlainObject_,set:qr(t.toString(),n.set)},r);return"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?Lr.ref:Lr).extend_(e,t,n,r)}var Ar={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function xr(e){return e||Ar}Object.freeze(Ar);var Sr=_r("observable"),Cr=_r("observable.ref",{enhancer:rr}),kr=_r("observable.shallow",{enhancer:function(e,t,n){if(void 0===e||null===e)return e;if(zo(e)||Eo(e)||Uo(e)||$o(e))return e;if(Array.isArray(e))return Lr.array(e,{name:n,deep:!1});if(Cn(e))return Lr.object(e,void 0,{name:n,deep:!1});if(Tn(e))return Lr.map(e,{name:n,deep:!1});if(Nn(e))return Lr.set(e,{name:n,deep:!1})}}),jr=_r("observable.struct",{enhancer:function(e,t){if(la(e,t))return t;return e}}),Pr=Xn(Sr);function Er(e){return!0===e.deep?nr:!1===e.deep?rr:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:nr;var t,n,r}function Tr(e){var t;return e?null!=(t=e.defaultDecorator)?t:gr(e):void 0}function Nr(e,t,n){if(xn(t))return void Yn(e,t,Sr);if(ro(e))return e;if(Cn(e))return Lr.object(e,t,n);if(Array.isArray(e))return Lr.array(e,t);if(Tn(e))return Lr.map(e,t);if(Nn(e))return Lr.set(e,t);if("object"===typeof e&&null!==e)return e;return Lr.box(e,t)}Object.assign(Nr,Pr);var Vr,Dr,Mr={box:function(e,t){var n=xr(t);return new ei(e,Er(n),n.name,!0,n.equals)},array:function(e,t){var n=xr(t);return(!1===mi.useProxies||!1===n.proxy?ia:Oo)(e,Er(n),n.name)},map:function(e,t){var n=xr(t);return new Lo(e,Er(n),n.name)},set:function(e,t){var n=xr(t);return new Io(e,Er(n),n.name)},object:function(e,t,n){return zi(!1===mi.useProxies||!1===(null==n?void 0:n.proxy)?Wo({},n):lo({},n),e,t)},ref:Xn(Cr),shallow:Xn(kr),deep:Pr,struct:Xn(jr)},Lr=hn(Nr,Mr),Ur="computed",Rr=dr(Ur),Br=dr("computed.struct",{equals:tr.structural}),Ir=function(e,t){if(xn(t))return Yn(e,t,Rr);if(Cn(e))return Xn(dr(Ur,e));var n=Cn(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new ri(n)};Object.assign(Ir,Rr),Ir.struct=Xn(Br);var $r,Kr=0,Fr=1,Hr=null!=(Vr=null==(Dr=dn((function(){}),"name"))?void 0:Dr.configurable)&&Vr,Wr={value:"action",configurable:!0,writable:!1,enumerable:!1};function qr(e,t,n,r){function i(){return Gr(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,Hr&&(Wr.value=e,Object.defineProperty(i,"name",Wr)),i}function Gr(e,t,n,r,i){var o=zr(0,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{Xr(o)}}function zr(e,t,n,r){var i=mi.trackingDerivation,o=!t||!i;Ai();var a=mi.allowStateChanges;o&&(hi(),a=Qr(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:vi(!0),notifySpy_:!1,startTime_:0,actionId_:Fr++,parentActionId_:Kr};return Kr=s.actionId_,s}function Xr(e){Kr!==e.actionId_&&ln(30),Kr=e.parentActionId_,void 0!==e.error_&&(mi.suppressReactionErrors=!0),Jr(e.prevAllowStateChanges_),pi(e.prevAllowStateReads_),xi(),e.runAsAction_&&di(e.prevDerivation_),mi.suppressReactionErrors=!1}function Yr(e,t){var n=Qr(e);try{return t()}finally{Jr(n)}}function Qr(e){var t=mi.allowStateChanges;return mi.allowStateChanges=e,t}function Jr(e){mi.allowStateChanges=e}$r=Symbol.toPrimitive;var Zr,ei=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=tr.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}Kn(t,e);var n=t.prototype;return n.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==mi.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(co(this)){var t=ho(this,{object:this,type:yo,newValue:e});if(!t)return mi.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?mi.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),vo(this)&&_o(this,{type:yo,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return fo(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:yo,newValue:this.value_,oldValue:void 0}),po(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return Ln(this.get())},n[$r]=function(){return this.valueOf()},t}(Jn);Zr=Symbol.toPrimitive;var ti,ni,ri=function(){function e(e){this.dependenciesState_=ti.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ti.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new oi(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ni.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,e.get||ln(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=qr("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?tr.structural:tr.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){ji(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&ln(32,this.name_,this.derivation),0!==mi.inBatch||0!==this.observers_.size||this.keepAlive_){if(Si(this),si(this)){var e=mi.trackingContext;this.keepAlive_&&!e&&(mi.trackingContext=this),this.trackAndCompute()&&ki(this),mi.trackingContext=e}}else si(this)&&(this.warnAboutUntrackedRead_(),Ai(),this.value_=this.computeValue_(!1),xi());var t=this.value_;if(ai(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&ln(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else ln(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ti.NOT_TRACKING_,n=this.computeValue_(!0),r=t||ai(e)||ai(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Qr(!1);if(e)t=ui(this,this.derivation,this.scope_);else if(!0===mi.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new oi(e)}return Jr(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(ci(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Fi((function(){var o=n.get();if(!r||t){var a=hi();e({observableKind:"computed",debugObjectName:n.name_,type:yo,object:n,newValue:o,oldValue:i}),di(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){return},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return Ln(this.get())},t[Zr]=function(){return this.valueOf()},e}(),ii=En("ComputedValue",ri);!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_"}(ti||(ti={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ni||(ni={}));var oi=function(e){this.cause=void 0,this.cause=e};function ai(e){return e instanceof oi}function si(e){switch(e.dependenciesState_){case ti.UP_TO_DATE_:return!1;case ti.NOT_TRACKING_:case ti.STALE_:return!0;case ti.POSSIBLY_STALE_:for(var t=vi(!0),n=hi(),r=e.observing_,i=r.length,o=0;or&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&Oi(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,gi(l,e))}r!==ti.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function ci(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Oi(t[n],e);e.dependenciesState_=ti.NOT_TRACKING_}function fi(e){var t=hi();try{return e()}finally{di(t)}}function hi(){var e=mi.trackingDerivation;return mi.trackingDerivation=null,e}function di(e){mi.trackingDerivation=e}function vi(e){var t=mi.allowStateReads;return mi.allowStateReads=e,t}function pi(e){mi.allowStateReads=e}function _i(e){if(e.dependenciesState_===ti.UP_TO_DATE_)return;e.dependenciesState_=ti.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ti.UP_TO_DATE_}var bi=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},yi=!0,mi=function(){var e=fn();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(yi=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new bi).version&&(yi=!1),yi?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new bi):(setTimeout((function(){ln(35)}),1),new bi)}();function gi(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Oi(e,t){e.observers_.delete(t),0===e.observers_.size&&wi(e)}function wi(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,mi.pendingUnobservations.push(e))}function Ai(){mi.inBatch++}function xi(){if(0===--mi.inBatch){Ei();for(var e=mi.pendingUnobservations,t=0;t0&&wi(e),!1}function Ci(e){if(e.lowestObserverState_===ti.STALE_)return;e.lowestObserverState_=ti.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ti.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ti.STALE_}))}function ki(e){if(e.lowestObserverState_===ti.STALE_)return;e.lowestObserverState_=ti.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ti.POSSIBLY_STALE_?t.dependenciesState_=ti.STALE_:t.dependenciesState_===ti.UP_TO_DATE_&&(e.lowestObserverState_=ti.UP_TO_DATE_)}))}function ji(e){if(e.lowestObserverState_!==ti.UP_TO_DATE_)return;e.lowestObserverState_=ti.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ti.UP_TO_DATE_&&(e.dependenciesState_=ti.POSSIBLY_STALE_,e.onBecomeStale_())}))}var Pi=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ti.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ni.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,mi.pendingReactions.push(this),Ei())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Ai(),this.isScheduled_=!1;var e=mi.trackingContext;if(mi.trackingContext=this,si(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}mi.trackingContext=e,xi()}},t.track=function(e){if(this.isDisposed_)return;Ai(),this.isRunning_=!0;var t=mi.trackingContext;mi.trackingContext=this;var n=ui(this,e,void 0);mi.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&ci(this),ai(n)&&this.reportExceptionInDerivation_(n.cause),xi()},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(mi.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";mi.suppressReactionErrors||console.error(n,e),mi.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Ai(),ci(this),xi()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[Qn]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),io(this,e)},e}();function Ei(){if(mi.inBatch>0||mi.isRunningReactions)return;Ti()}function Ti(){mi.isRunningReactions=!0;for(var e=mi.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",t,e);if(An(n))return qr(t,n,e);if(xn(n))return Yn(t,n,e?Ui:Mi);if(xn(t))return Xn(or(e?Di:Vi,{name:t,autoAction:e}))}}var Ii=Bi(!1);Object.assign(Ii,Mi);var $i=Bi(!0);function Ki(e){return An(e)&&!0===e.isMobxAction}function Fi(e,t){var n,r;void 0===t&&(t=bn);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=Wi(t),s=!1;i=new Pi(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new Pi(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign($i,Ui),Ii.bound=Xn(Li),$i.bound=Xn(Ri);var Hi=function(e){return e()};function Wi(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Hi}function qi(e,t,n){return Gi("onBUO",e,t,n)}function Gi(e,t,n,r){var i="function"===typeof r?oa(t,n):oa(t),o=An(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function zi(e,t,n,r){var i=Rn(t),o=Wo(e,r)[Qn];Ai();try{Mn(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{xi()}return e}var Xi=0;function Yi(){this.message="FLOW_CANCELLED"}Yi.prototype=Object.create(Error.prototype);var Qi=lr("flow"),Ji=lr("flow.bound",{bound:!0}),Zi=Object.assign((function(e,t){if(xn(t))return Yn(e,t,Qi);var n=e,r=n.name||"",i=function(){var e,t=this,i=arguments,o=++Xi,a=Ii(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,u=new Promise((function(t,n){var i=0;function u(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}c(t)}function l(e){var t;s=void 0;try{t=Ii(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}c(t)}function c(e){if(An(null==e?void 0:e.then))return void e.then(c,n);if(e.done)return t(e.value);return(s=Promise.resolve(e.value)).then(u,l)}e=n,u(void 0)}));return u.cancel=Ii(r+" - runid: "+o+" - cancel",(function(){try{s&&eo(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(wn,wn),eo(n),e(new Yi)}catch(t){e(t)}})),u};return i.isMobXFlow=!0,i}),Qi);function eo(e){An(e.cancel)&&e.cancel()}function to(e){return!0===(null==e?void 0:e.isMobXFlow)}function no(e,t){if(!e)return!1;if(void 0!==t){if(zo(e))return e[Qn].values_.has(t);return!1}return zo(e)||!!e[Qn]||Zn(e)||Ni(e)||ii(e)}function ro(e){return no(e)}function io(){ln("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0}function fo(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),On((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ho(e,t){var n=hi();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function po(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),On((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function _o(e,t){var n=hi(),r=e.changeListeners_;if(!r)return;for(var i=0,o=(r=r.slice()).length;i0)return e.map(this.dehancer);return e},t.intercept_=function(e){return fo(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),po(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&ln("Out of range: "+e);var t=this.values_.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&ra(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=_n),co(this)){var o=ho(this,{object:this.proxy_,type:bo,index:e,removedCount:t,added:n});if(!o)return _n;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a2?n-2:0),i=2;i-1)return this.splice(n,1),!0;return!1}};function Ao(e,t){"function"===typeof Array.prototype[e]&&(wo[e]=t(e))}function xo(e){return function(){var t=this[Qn];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function So(e){return function(t,n){var r=this,i=this[Qn];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Co(e){return function(){var t=this,n=this[Qn];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}Ao("concat",xo),Ao("flat",xo),Ao("includes",xo),Ao("indexOf",xo),Ao("join",xo),Ao("lastIndexOf",xo),Ao("slice",xo),Ao("toString",xo),Ao("toLocaleString",xo),Ao("every",So),Ao("filter",So),Ao("find",So),Ao("findIndex",So),Ao("flatMap",So),Ao("forEach",So),Ao("map",So),Ao("some",So),Ao("reduce",Co),Ao("reduceRight",Co);var ko,jo,Po=En("ObservableArrayAdministration",go);function Eo(e){return Sn(e)&&Po(e[Qn])}var To={},No="add",Vo="delete";ko=Symbol.iterator,jo=Symbol.toStringTag;var Do,Mo,Lo=function(){function e(e,t,n){var r=this;void 0===t&&(t=nr),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Qn]=To,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_=t,this.name_=n,An(Map)||ln(18),this.keysAtom_=er("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Yr(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!mi.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new ei(this.has_(e),rr,"ObservableMap.key?",!1);this.hasMap_.set(e,r),qi(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(co(this)){var r=ho(this,{type:n?yo:No,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,co(this)&&!ho(this,{type:Vo,object:this,name:e}))return!1;if(this.has_(e)){var n=vo(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:Vo,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return ao((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&_o(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==mi.UNCHANGED){var r=vo(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:yo,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&_o(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,ao((function(){var r,i=new ei(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=vo(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:No,object:this,name:e,newValue:t}:null;r&&_o(this,i)},t.get=function(e){if(this.has(e))return this.dehanceValue_(this.data_.get(e).get());return this.dehanceValue_(void 0)},t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return ha({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return ha({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[ko]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=Gn(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return Uo(e)&&(e=new Map(e)),ao((function(){Cn(e)?Dn(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):Tn(e)?(e.constructor!==Map&&ln(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&ln(20,e)})),this},t.clear=function(){var e=this;ao((function(){fi((function(){for(var t,n=Gn(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return ao((function(){for(var n,r=Ro(e),i=new Map,o=!1,a=Gn(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var u=t.data_.get(s);i.set(s,u)}}for(var l,c=Gn(r.entries());!(l=c()).done;){var f=l.value,h=f[0],d=f[1],v=t.data_.has(h);if(t.set(h,d),t.data_.has(h)){var p=t.data_.get(h);i.set(h,p),v||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var _=t.data_.keys(),b=i.keys(),y=_.next(),m=b.next();!y.done;){if(y.value!==m.value){t.keysAtom_.reportChanged();break}y=_.next(),m=b.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return po(this,e)},t.intercept_=function(e){return fo(this,e)},In(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:jo,get:function(){return"Map"}}]),e}(),Uo=En("ObservableMap",Lo);function Ro(e){if(Tn(e)||Uo(e))return e;if(Array.isArray(e))return new Map(e);if(Cn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return ln(21,e)}var Bo={};Do=Symbol.iterator,Mo=Symbol.toStringTag;var Io=function(){function e(e,t,n){void 0===t&&(t=nr),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[Qn]=Bo,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_=n,An(Set)||ln(22),this.atom_=er(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.clear=function(){var e=this;ao((function(){fi((function(){for(var t,n=Gn(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=Gn(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,co(this)&&!ho(this,{type:No,object:this,newValue:e}))return this;if(!this.has(e)){ao((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=vo(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:No,object:this,newValue:e}:null;n&&_o(this,r)}return this},t.delete=function(e){var t=this;if(co(this)&&!ho(this,{type:Vo,object:this,oldValue:e}))return!1;if(this.has(e)){var n=vo(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:Vo,object:this,oldValue:e}:null;return ao((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&_o(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return ha({next:function(){var r=e;return e+=1,rJo){for(var t=Jo;t=0&&n++}e=fa(e),t=fa(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(An(u)&&u instanceof u&&An(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!ca(e[c],t[c],n-1,r,i))return!1}else{var f,h=Object.keys(e);if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!Un(t,f=h[c])||!ca(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function fa(e){if(Eo(e))return e.slice();if(Tn(e)||Uo(e))return Array.from(e.entries());if(Nn(e)||$o(e))return Array.from(e.entries());return e}function ha(e){return e[Symbol.iterator]=da,e}function da(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof fn()[e]&&ln("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:sa},$mobx:Qn});var va,pa,_a=(va=function(e){var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,arguments:!0,arity:!0},r="function"===typeof Object.getOwnPropertySymbols;e.exports=function(e,i,o){if("string"!==typeof i){var a=Object.getOwnPropertyNames(i);r&&(a=a.concat(Object.getOwnPropertySymbols(i)));for(var s=0;s=0;i--)if(t[n=r[i]]!==e[n])return!0;return!1}var xa={componentWillMount:function(){var e=this,t=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",n=!1;function r(e){var t=this[e],r=er("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return r.reportObserved(),t},set:function(e){Aa(t,e)?(t=e,n=!0,r.reportChanged(),n=!1):t=e}})}r.call(this,"props"),r.call(this,"state");var i=this,o=this.render.bind(this),a=function(){return o(i.props,i.state,i.context)},s=null,u=!1,l=function(){var e;u=!1;var t=null;if(s.track((function(){try{t=Yr(!1,a)}catch(t){e=t}})),e)throw Oa.emit(e),e;return t};this.render=function(){return(s=new Pi(t+".render()",(function(){u||(u=!0,"function"===typeof e.componentWillReact&&e.componentWillReact(),n||e.forceUpdate())}))).reactComponent=e,l.$mobx=s,l.$base=e.render,e.render=l,l()}},componentWillUnmount:function(){this.render.$mobx&&(this.render.$mobx.dispose(),this.render=this.render.$base)},componentDidMount:function(){},componentDidUpdate:function(){},shouldComponentUpdate:function(e,t){if(this.state!==t)return!0;return Aa(this.props,e)}};function Sa(e,t){var n;if("string"===typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return ga||(ga=!0,ya('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?Pa.apply(null,e)(Sa(t)):function(t){return Sa(e,t)};var r,i=e;if(!0===i.isMobxInjector&&ya("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),"function"===typeof i&&(!i.prototype||!i.prototype.render))return Sa((n=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(e,t,n){return i(e,n)},t}(un),n.displayName=i.displayName||i.name,n.defaultProps=i.defaultProps,n));if(!i)throw new Error("Please pass a valid component to 'observer'");return wa(r=i.prototype||i,"componentWillMount",!0),wa(r,"componentDidMount",!1),wa(r,"componentWillUnmount",!1),wa(r,"componentDidUpdate",!1),r.shouldComponentUpdate||(r.shouldComponentUpdate=xa.shouldComponentUpdate),i.isMobXReactObserver=!0,i}Sa((function(e){return(0,e.children)()})).displayName="Observer";var Ca={isMobxInjector:{configurable:!0,enumerable:!0,value:!0,writable:!0}};function ka(e,t,n){var r="inject-"+(t.displayName||t.name||t.constructor&&t.constructor.name||"Unknown");n&&(r+="-with-"+n);var i=function(n){function r(e,t){n.call(this,e,t),this.storeRef=this.storeRef.bind(this)}return n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r,r.prototype.storeRef=function(e){this.wrappedInstance=e},r.prototype.render=function(n,r,i){var o,a={};for(o in n)a[o]=n[o];var s=e(i.mobxStores||{},a,i)||{};for(o in s)a[o]=s[o];return ie(2,t,a,null,ma(t)?null:this.storeRef)},r}(un);return i.displayName=r,i.isMobxInjector=!1,_a(i,t),i.wrappedComponent=t,Object.defineProperties(i,Ca),i}function ja(e){return function(t,n){for(var r=0,i=e.length;r1?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length)return{done:!0};return{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var gs=Symbol("mobx-stored-annotations");function Os(e){return Object.assign((function(t,n){ws(t,n,e)}),e)}function ws(e,t,n){ls(e,gs)||es(e,gs,ds({},e[gs])),Es(n)||(e[gs][t]=n)}var As=Symbol("mobx administration"),xs=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ku.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return Qu(this)},t.reportChanged=function(){Xu(),Ju(this),Yu()},t.toString=function(){return this.name_},e}(),Ss=ns("Atom",xs);function Cs(e,t,n){void 0===t&&(t=za),void 0===n&&(n=za);var r=new xs(e);return t!==za&&ml("onBO",r,t,void 0),n!==za&&yl(r,n),r}var ks={identity:function(e,t){return e===t},structural:function(e,t){return Dc(e,t)},default:function(e,t){if(Object.is)return Object.is(e,t);return e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return Dc(e,t,1)}};function js(e,t,n){if(Pl(e))return e;if(Array.isArray(e))return uu.array(e,{name:n});if(Ja(e))return uu.object(e,void 0,{name:n});if(rs(e))return uu.map(e,{name:n});if(is(e))return uu.set(e,{name:n});if("function"===typeof e&&!vl(e)&&!kl(e))return Za(e)?Sl(e):dl(n,e);return e}function Ps(e){return e}function Es(e){return"override"===e.annotationType_}function Ts(e,t){return{annotationType_:e,options_:t,make_:Ns,extend_:Vs}}function Ns(e,t,n,r){var i;if(null!=(i=this.options_)&&i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(vl(n.value))return 1;var o=Ds(e,this,t,n,!1);return Ia(r,t,o),2}function Vs(e,t,n,r){var i=Ds(e,this,t,n);return e.defineProperty_(t,i,r)}function Ds(e,t,n,r,i){var o,a,s,u,l,c,f,h;void 0===i&&(i=Wu.safeDescriptors),h=r,t.annotationType_,h.value;var d,v=r.value;return null!=(o=t.options_)&&o.bound&&(v=v.bind(null!=(d=e.proxy_)?d:e.target_)),{value:yu(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),v,null!=(u=null==(l=t.options_)?void 0:l.autoAction)&&u,null!=(c=t.options_)&&c.bound?null!=(f=e.proxy_)?f:e.target_:void 0),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Ms(e,t){return{annotationType_:e,options_:t,make_:Ls,extend_:Us}}function Ls(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(i=this.options_)&&i.bound&&(!ls(e.target_,t)||!kl(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(kl(n.value))return 1;var o=Rs(e,this,0,n,!1,!1);return Ia(r,t,o),2}function Us(e,t,n,r){var i,o=Rs(e,this,0,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function Rs(e,t,n,r,i,o){var a;void 0===o&&(o=Wu.safeDescriptors),a=r,t.annotationType_,a.value;var s,u=r.value;return kl(u)||(u=Sl(u)),i&&((u=u.bind(null!=(s=e.proxy_)?s:e.target_)).isMobXFlow=!0),{value:u,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function Bs(e,t){return{annotationType_:e,options_:t,make_:Is,extend_:$s}}function Is(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function $s(e,t,n,r){return i=n,this.annotationType_,i.get,e.defineComputedProperty_(t,ds({},this.options_,{get:n.get,set:n.set}),r);var i}function Ks(e,t){return{annotationType_:e,options_:t,make_:Fs,extend_:Hs}}function Fs(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function Hs(e,t,n,r){var i,o;return this.annotationType_,e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:js,r)}var Ws=qs();function qs(e){return{annotationType_:"true",options_:e,make_:Gs,extend_:zs}}function Gs(e,t,n,r){var i,o;if(n.get)return hu.make_(e,t,n,r);if(n.set){var a=yu(t.toString(),n.set);if(r===e.target_)return null===e.defineProperty_(t,{configurable:!Wu.safeDescriptors||e.isPlainObject_,set:a})?0:2;return Ia(r,t,{configurable:!0,set:a}),2}if(r!==e.target_&&"function"===typeof n.value){var s,u;if(Za(n.value))return(null!=(u=this.options_)&&u.autoBind?Sl.bound:Sl).make_(e,t,n,r);return(null!=(s=this.options_)&&s.autoBind?dl.bound:dl).make_(e,t,n,r)}var l,c=!1===(null==(i=this.options_)?void 0:i.deep)?uu.ref:uu;return"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(l=e.proxy_)?l:e.target_)),c.make_(e,t,n,r)}function zs(e,t,n,r){var i,o,a;if(n.get)return hu.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!Wu.safeDescriptors||e.isPlainObject_,set:yu(t.toString(),n.set)},r);return"function"===typeof n.value&&null!=(i=this.options_)&&i.autoBind&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_)),(!1===(null==(o=this.options_)?void 0:o.deep)?uu.ref:uu).extend_(e,t,n,r)}var Xs={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Ys(e){return e||Xs}Object.freeze(Xs);var Qs=Ks("observable"),Js=Ks("observable.ref",{enhancer:Ps}),Zs=Ks("observable.shallow",{enhancer:function(e,t,n){if(void 0===e||null===e)return e;if(mc(e)||tc(e)||uc(e)||hc(e))return e;if(Array.isArray(e))return uu.array(e,{name:n,deep:!1});if(Ja(e))return uu.object(e,void 0,{name:n,deep:!1});if(rs(e))return uu.map(e,{name:n,deep:!1});if(is(e))return uu.set(e,{name:n,deep:!1})}}),eu=Ks("observable.struct",{enhancer:function(e,t){if(Dc(e,t))return t;return e}}),tu=Os(Qs);function nu(e){return!0===e.deep?js:!1===e.deep?Ps:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:js;var t,n,r}function ru(e){var t;return e?null!=(t=e.defaultDecorator)?t:qs(e):void 0}function iu(e,t,n){if(Ya(t))return void ws(e,t,Qs);if(Pl(e))return e;if(Ja(e))return uu.object(e,t,n);if(Array.isArray(e))return uu.array(e,t);if(rs(e))return uu.map(e,t);if(is(e))return uu.set(e,t);if("object"===typeof e&&null!==e)return e;return uu.box(e,t)}Object.assign(iu,tu);var ou,au,su={box:function(e,t){var n=Ys(t);return new Cu(e,nu(n),n.name,!0,n.equals)},array:function(e,t){var n=Ys(t);return(!1===Wu.useProxies||!1===n.proxy?kc:ql)(e,nu(n),n.name)},map:function(e,t){var n=Ys(t);return new sc(e,nu(n),n.name)},set:function(e,t){var n=Ys(t);return new fc(e,nu(n),n.name)},object:function(e,t,n){return gl(!1===Wu.useProxies||!1===(null==n?void 0:n.proxy)?_c({},n):Ml({},n),e,t)},ref:Os(Js),shallow:Os(Zs),deep:tu,struct:Os(eu)},uu=Ra(iu,su),lu="computed",cu=Bs(lu),fu=Bs("computed.struct",{equals:ks.structural}),hu=function(e,t){if(Ya(t))return ws(e,t,cu);if(Ja(e))return Os(Bs(lu,e));var n=Ja(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Pu(n)};Object.assign(hu,cu),hu.struct=Os(fu);var du,vu=0,pu=1,_u=null!=(ou=null==(au=Ba((function(){}),"name"))?void 0:au.configurable)&&ou,bu={value:"action",configurable:!0,writable:!1,enumerable:!1};function yu(e,t,n,r){function i(){return mu(0,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,_u&&(bu.value=e,Object.defineProperty(i,"name",bu)),i}function mu(e,t,n,r,i){var o=gu(0,t);try{return n.apply(r,i)}catch(e){throw o.error_=e,e}finally{Ou(o)}}function gu(e,t,n,r){var i=Wu.trackingDerivation,o=!t||!i;Xu();var a=Wu.allowStateChanges;o&&(Ru(),a=Au(!0));var s={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:Iu(!0),notifySpy_:!1,startTime_:0,actionId_:pu++,parentActionId_:vu};return vu=s.actionId_,s}function Ou(e){vu!==e.actionId_&&Ma(30),vu=e.parentActionId_,void 0!==e.error_&&(Wu.suppressReactionErrors=!0),xu(e.prevAllowStateChanges_),$u(e.prevAllowStateReads_),Yu(),e.runAsAction_&&Bu(e.prevDerivation_),Wu.suppressReactionErrors=!1}function wu(e,t){var n=Au(e);try{return t()}finally{xu(n)}}function Au(e){var t=Wu.allowStateChanges;return Wu.allowStateChanges=e,t}function xu(e){Wu.allowStateChanges=e}du=Symbol.toPrimitive;var Su,Cu=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=ks.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}vs(t,e);var n=t.prototype;return n.dehanceValue=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},n.set=function(e){this.value_,(e=this.prepareNewValue_(e))!==Wu.UNCHANGED&&this.setNewValue_(e)},n.prepareNewValue_=function(e){if(Ll(this)){var t=Rl(this,{object:this,type:Fl,newValue:e});if(!t)return Wu.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?Wu.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),Bl(this)&&$l(this,{type:Fl,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Ul(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:Fl,newValue:this.value_,oldValue:void 0}),Il(this,e)},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[du]=function(){return this.valueOf()},t}(xs);Su=Symbol.toPrimitive;var ku,ju,Pu=function(){function e(e){this.dependenciesState_=ku.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ku.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Tu(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=ju.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,e.get||Ma(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=yu("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?ks.structural:ks.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){el(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&Ma(32,this.name_,this.derivation),0!==Wu.inBatch||0!==this.observers_.size||this.keepAlive_){if(Qu(this),Vu(this)){var e=Wu.trackingContext;this.keepAlive_&&!e&&(Wu.trackingContext=this),this.trackAndCompute()&&Zu(this),Wu.trackingContext=e}}else Vu(this)&&(this.warnAboutUntrackedRead_(),Xu(),this.value_=this.computeValue_(!1),Yu());var t=this.value_;if(Nu(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&Ma(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else Ma(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ku.NOT_TRACKING_,n=this.computeValue_(!0),r=t||Nu(e)||Nu(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Au(!1);if(e)t=Du(this,this.derivation,this.scope_);else if(!0===Wu.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new Tu(e)}return xu(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Lu(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return pl((function(){var o=n.get();if(!r||t){var a=Ru();e({observableKind:"computed",debugObjectName:n.name_,type:Fl,object:n,newValue:o,oldValue:i}),Bu(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){return},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return us(this.get())},t[Su]=function(){return this.valueOf()},e}(),Eu=ns("ComputedValue",Pu);!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_"}(ku||(ku={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ju||(ju={}));var Tu=function(e){this.cause=void 0,this.cause=e};function Nu(e){return e instanceof Tu}function Vu(e){switch(e.dependenciesState_){case ku.UP_TO_DATE_:return!1;case ku.NOT_TRACKING_:case ku.STALE_:return!0;case ku.POSSIBLY_STALE_:for(var t=Iu(!0),n=Ru(),r=e.observing_,i=r.length,o=0;or&&(r=s.dependenciesState_)}for(n.length=i,e.newObserving_=null,o=t.length;o--;){var u=t[o];0===u.diffValue_&&Gu(u,e),u.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,qu(l,e))}r!==ku.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}function Lu(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Gu(t[n],e);e.dependenciesState_=ku.NOT_TRACKING_}function Uu(e){var t=Ru();try{return e()}finally{Bu(t)}}function Ru(){var e=Wu.trackingDerivation;return Wu.trackingDerivation=null,e}function Bu(e){Wu.trackingDerivation=e}function Iu(e){var t=Wu.allowStateReads;return Wu.allowStateReads=e,t}function $u(e){Wu.allowStateReads=e}function Ku(e){if(e.dependenciesState_===ku.UP_TO_DATE_)return;e.dependenciesState_=ku.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ku.UP_TO_DATE_}var Fu=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},Hu=!0,Wu=function(){var e=Ua();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Hu=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Fu).version&&(Hu=!1),Hu?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Fu):(setTimeout((function(){Ma(35)}),1),new Fu)}();function qu(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Gu(e,t){e.observers_.delete(t),0===e.observers_.size&&zu(e)}function zu(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,Wu.pendingUnobservations.push(e))}function Xu(){Wu.inBatch++}function Yu(){if(0===--Wu.inBatch){nl();for(var e=Wu.pendingUnobservations,t=0;t0&&zu(e),!1}function Ju(e){if(e.lowestObserverState_===ku.STALE_)return;e.lowestObserverState_=ku.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ku.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ku.STALE_}))}function Zu(e){if(e.lowestObserverState_===ku.STALE_)return;e.lowestObserverState_=ku.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ku.POSSIBLY_STALE_?t.dependenciesState_=ku.STALE_:t.dependenciesState_===ku.UP_TO_DATE_&&(e.lowestObserverState_=ku.UP_TO_DATE_)}))}function el(e){if(e.lowestObserverState_!==ku.UP_TO_DATE_)return;e.lowestObserverState_=ku.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ku.UP_TO_DATE_&&(e.dependenciesState_=ku.POSSIBLY_STALE_,e.onBecomeStale_())}))}var tl=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ku.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=ju.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,Wu.pendingReactions.push(this),nl())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){Xu(),this.isScheduled_=!1;var e=Wu.trackingContext;if(Wu.trackingContext=this,Vu(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}Wu.trackingContext=e,Yu()}},t.track=function(e){if(this.isDisposed_)return;Xu(),this.isRunning_=!0;var t=Wu.trackingContext;Wu.trackingContext=this;var n=Du(this,e,void 0);Wu.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Lu(this),Nu(n)&&this.reportExceptionInDerivation_(n.cause),Yu()},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)return void this.errorHandler_(e,this);if(Wu.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";Wu.suppressReactionErrors||console.error(n,e),Wu.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(Xu(),Lu(this),Yu()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[As]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),El(this,e)},e}();function nl(){if(Wu.inBatch>0||Wu.isRunningReactions)return;rl()}function rl(){Wu.isRunningReactions=!0;for(var e=Wu.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",t,e);if(Xa(n))return yu(t,n,e);if(Ya(n))return ws(t,n,e?ll:sl);if(Ya(t))return Os(Ts(e?al:ol,{name:t,autoAction:e}))}}var hl=fl(!1);Object.assign(hl,sl);var dl=fl(!0);function vl(e){return Xa(e)&&!0===e.isMobxAction}function pl(e,t){var n,r;void 0===t&&(t=Fa);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(t.scheduler||t.delay){var a=bl(t),s=!1;i=new tl(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(u)})))}),t.onError,t.requiresObservable)}else i=new tl(o,(function(){this.track(u)}),t.onError,t.requiresObservable);function u(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(dl,ll),hl.bound=Os(ul),dl.bound=Os(cl);var _l=function(e){return e()};function bl(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:_l}function yl(e,t,n){return ml("onBUO",e,t,n)}function ml(e,t,n,r){var i="function"===typeof r?jc(t,n):jc(t),o=Xa(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function gl(e,t,n,r){var i=cs(t),o=_c(e,r)[As];Xu();try{ss(i).forEach((function(e){o.extend_(e,i[e],!n||!(e in n)||n[e])}))}finally{Yu()}return e}var Ol=0;function wl(){this.message="FLOW_CANCELLED"}wl.prototype=Object.create(Error.prototype);var Al=Ms("flow"),xl=Ms("flow.bound",{bound:!0}),Sl=Object.assign((function(e,t){if(Ya(t))return ws(e,t,Al);var n=e,r=n.name||"",i=function(){var e,t=this,i=arguments,o=++Ol,a=hl(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,u=new Promise((function(t,n){var i=0;function u(e){var t;s=void 0;try{t=hl(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}c(t)}function l(e){var t;s=void 0;try{t=hl(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}c(t)}function c(e){if(Xa(null==e?void 0:e.then))return void e.then(c,n);if(e.done)return t(e.value);return(s=Promise.resolve(e.value)).then(u,l)}e=n,u(void 0)}));return u.cancel=hl(r+" - runid: "+o+" - cancel",(function(){try{s&&Cl(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(za,za),Cl(n),e(new wl)}catch(t){e(t)}})),u};return i.isMobXFlow=!0,i}),Al);function Cl(e){Xa(e.cancel)&&e.cancel()}function kl(e){return!0===(null==e?void 0:e.isMobXFlow)}function jl(e,t){if(!e)return!1;if(void 0!==t){if(mc(e))return e[As].values_.has(t);return!1}return mc(e)||!!e[As]||Ss(e)||il(e)||Eu(e)}function Pl(e){return jl(e)}function El(){Ma("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),r=0;r0}function Ul(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),Ga((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Rl(e,t){var n=Ru();try{for(var r=[].concat(e.interceptors_||[]),i=0,o=r.length;i0}function Il(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),Ga((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function $l(e,t){var n=Ru(),r=e.changeListeners_;if(!r)return;for(var i=0,o=(r=r.slice()).length;i0)return e.map(this.dehancer);return e},t.intercept_=function(e){return Ul(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Il(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&Ma("Out of range: "+e);var t=this.values_.length;if(e===t)return;if(e>t){for(var n=new Array(e-t),r=0;r0&&Cc(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:void 0===t||null===t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=Ka),Ll(this)){var o=Rl(this,{object:this.proxy_,type:Kl,index:e,removedCount:t,added:n});if(!o)return Ka;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var a=0;a2?n-2:0),i=2;i-1)return this.splice(n,1),!0;return!1}};function zl(e,t){"function"===typeof Array.prototype[e]&&(Gl[e]=t(e))}function Xl(e){return function(){var t=this[As];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Yl(e){return function(t,n){var r=this,i=this[As];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function Ql(e){return function(){var t=this,n=this[As];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}zl("concat",Xl),zl("flat",Xl),zl("includes",Xl),zl("indexOf",Xl),zl("join",Xl),zl("lastIndexOf",Xl),zl("slice",Xl),zl("toString",Xl),zl("toLocaleString",Xl),zl("every",Yl),zl("filter",Yl),zl("find",Yl),zl("findIndex",Yl),zl("flatMap",Yl),zl("forEach",Yl),zl("map",Yl),zl("some",Yl),zl("reduce",Ql),zl("reduceRight",Ql);var Jl,Zl,ec=ns("ObservableArrayAdministration",Wl);function tc(e){return Qa(e)&&ec(e[As])}var nc={},rc="add",ic="delete";Jl=Symbol.iterator,Zl=Symbol.toStringTag;var oc,ac,sc=function(){function e(e,t,n){var r=this;void 0===t&&(t=js),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[As]=nc,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_=t,this.name_=n,Xa(Map)||Ma(18),this.keysAtom_=Cs("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,wu(!0,(function(){r.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!Wu.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Cu(this.has_(e),Ps,"ObservableMap.key?",!1);this.hasMap_.set(e,r),yl(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Ll(this)){var r=Rl(this,{type:n?Fl:rc,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if(this.keysAtom_,Ll(this)&&!Rl(this,{type:ic,object:this,name:e}))return!1;if(this.has_(e)){var n=Bl(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:ic,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Nl((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&$l(this,r),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==Wu.UNCHANGED){var r=Bl(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:Fl,object:this,oldValue:n.value_,name:e,newValue:t}:null;n.setNewValue_(t),r&&$l(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Nl((function(){var r,i=new Cu(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,i),t=i.value_,null==(r=n.hasMap_.get(e))||r.setNewValue_(!0),n.keysAtom_.reportChanged()}));var r=Bl(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:rc,object:this,name:e,newValue:t}:null;r&&$l(this,i)},t.get=function(e){if(this.has(e))return this.dehanceValue_(this.data_.get(e).get());return this.dehanceValue_(void 0)},t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Uc({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Uc({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[Jl]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=ms(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return uc(e)&&(e=new Map(e)),Nl((function(){Ja(e)?as(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):rs(e)?(e.constructor!==Map&&Ma(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&Ma(20,e)})),this},t.clear=function(){var e=this;Nl((function(){Uu((function(){for(var t,n=ms(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return Nl((function(){for(var n,r=lc(e),i=new Map,o=!1,a=ms(t.data_.keys());!(n=a()).done;){var s=n.value;if(!r.has(s))if(t.delete(s))o=!0;else{var u=t.data_.get(s);i.set(s,u)}}for(var l,c=ms(r.entries());!(l=c()).done;){var f=l.value,h=f[0],d=f[1],v=t.data_.has(h);if(t.set(h,d),t.data_.has(h)){var p=t.data_.get(h);i.set(h,p),v||(o=!0)}}if(!o)if(t.data_.size!==i.size)t.keysAtom_.reportChanged();else for(var _=t.data_.keys(),b=i.keys(),y=_.next(),m=b.next();!y.done;){if(y.value!==m.value){t.keysAtom_.reportChanged();break}y=_.next(),m=b.next()}t.data_=i})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return Il(this,e)},t.intercept_=function(e){return Ul(this,e)},hs(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Zl,get:function(){return"Map"}}]),e}(),uc=ns("ObservableMap",sc);function lc(e){if(rs(e)||uc(e))return e;if(Array.isArray(e))return new Map(e);if(Ja(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return Ma(21,e)}var cc={};oc=Symbol.iterator,ac=Symbol.toStringTag;var fc=function(){function e(e,t,n){void 0===t&&(t=js),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[As]=cc,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_=n,Xa(Set)||Ma(22),this.atom_=Cs(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){if(void 0!==this.dehancer)return this.dehancer(e);return e},t.clear=function(){var e=this;Nl((function(){Uu((function(){for(var t,n=ms(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=ms(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if(this.atom_,Ll(this)&&!Rl(this,{type:rc,object:this,newValue:e}))return this;if(!this.has(e)){Nl((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=Bl(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:rc,object:this,newValue:e}:null;n&&$l(this,r)}return this},t.delete=function(e){var t=this;if(Ll(this)&&!Rl(this,{type:ic,object:this,oldValue:e}))return!1;if(this.has(e)){var n=Bl(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:ic,object:this,oldValue:e}:null;return Nl((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&$l(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Uc({next:function(){var r=e;return e+=1,rOc){for(var t=Oc;t=0&&n++}e=Lc(e),t=Lc(t);var s="[object Array]"===a;if(!s){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,l=t.constructor;if(u!==l&&!(Xa(u)&&u instanceof u&&Xa(l)&&l instanceof l)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),i=i||[];for(var c=(r=r||[]).length;c--;)if(r[c]===e)return i[c]===t;if(r.push(e),i.push(t),s){if((c=e.length)!==t.length)return!1;for(;c--;)if(!Mc(e[c],t[c],n-1,r,i))return!1}else{var f,h=Object.keys(e);if(c=h.length,Object.keys(t).length!==c)return!1;for(;c--;)if(!ls(t,f=h[c])||!Mc(e[f],t[f],n-1,r,i))return!1}return r.pop(),i.pop(),!0}function Lc(e){if(tc(e))return e.slice();if(rs(e)||uc(e))return Array.from(e.entries());if(is(e)||hc(e))return Array.from(e.entries());return e}function Uc(e){return e[Symbol.iterator]=Rc,e}function Rc(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof Ua()[e]&&Ma("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:Ec},$mobx:As}),function(e){e[e.HtmlElement=1]="HtmlElement",e[e.ComponentUnknown=2]="ComponentUnknown",e[e.ComponentClass=4]="ComponentClass",e[e.ComponentFunction=8]="ComponentFunction",e[e.Text=16]="Text",e[e.SvgElement=32]="SvgElement",e[e.InputElement=64]="InputElement",e[e.TextareaElement=128]="TextareaElement",e[e.SelectElement=256]="SelectElement",e[e.Portal=1024]="Portal",e[e.ReCreate=2048]="ReCreate",e[e.ContentEditable=4096]="ContentEditable",e[e.Fragment=8192]="Fragment",e[e.InUse=16384]="InUse",e[e.ForwardRef=32768]="ForwardRef",e[e.Normalized=65536]="Normalized",e[e.ForwardRefComponent=32776]="ForwardRefComponent",e[e.FormElement=448]="FormElement",e[e.Element=481]="Element",e[e.Component=14]="Component",e[e.DOMRef=1521]="DOMRef",e[e.InUseOrNormalized=81920]="InUseOrNormalized",e[e.ClearInUse=-16385]="ClearInUse",e[e.ComponentKnown=12]="ComponentKnown"}(Tc||(Tc={})),function(e){e[e.UnknownChildren=0]="UnknownChildren",e[e.HasInvalidChildren=1]="HasInvalidChildren",e[e.HasVNodeChildren=2]="HasVNodeChildren",e[e.HasNonKeyedChildren=4]="HasNonKeyedChildren",e[e.HasKeyedChildren=8]="HasKeyedChildren",e[e.HasTextChildren=16]="HasTextChildren",e[e.MultipleChildren=12]="MultipleChildren"}(Nc||(Nc={}));var Bc=0,Ic=function(){for(var e=function(){for(var e=Math.floor(10*Math.random()+1),t=[],n=0;n<12;n++)t.push(Hc({query:"***",formatElapsed:"",elapsedClassName:"",elapsed:null,waiting:null}));return{nbQueries:e,countClassName:Fc(e),queries:t}},t=[],n=1;n<=50;n++)t.push({dbname:"cluster"+n,lastSample:e()}),t.push({dbname:"cluster"+n+" replica",lastSample:e()});for(var r=0,i=t;r60)return t=(e%60).toFixed(2).split("."),Math.floor(e/60)+":"+t[0].lpad("0",2)+"."+t[1];return parseFloat(e).toFixed(2)}function Kc(e){return"Query elapsed"+(e>=10?" warn_long":e>=1?" warn":" short")}function Fc(e){return"label"+(e>=20?" label-important":e>=10?" label-warning":" label-success")}function Hc(e){var t=15*Math.random();return e.elapsed=t,e.formatElapsed=$c(t),e.elapsedClassName=Kc(t),e.query="SELECT blah FROM something",e.waiting=Math.random()<.5,Math.random()<.2&&(e.query=" in transaction"),Math.random()<.1&&(e.query="vacuum"),e}function Wc(e){e.formatElapsed="",e.elapsedClassName="",e.query="",e.elapsed=null,e.waiting=null}function qc(e,t,n){e.lastMutationId=t;for(var r=0;r<12;r++){var i=e.lastSample.queries[r];r<=n?Hc(i):Wc(i)}return e.lastSample.nbQueries=n,e.lastSample.countClassName=Fc(n),e}function Gc(){for(var e,t=i(Ic);!(e=t()).done;){var n=e.value;Math.random()0&&(i+=.01652892561983471*(1e3/(o-r)-i)),r=o,t.addSample(i),n.invalidate(),requestAnimationFrame(e)}))}(),function(e){if(void 0===e&&(e=a.HideMin|a.HideMean),p(),void 0===performance.memory)return;var t=new u(100),n=new d("Memory",e,"MB",t);v.appendChild(n.element),function e(){t.addSample(Math.round(performance.memory.usedJSHeapSize/1048576)),n.invalidate(),setTimeout(e,30)}()}(),function(e,t){void 0===t&&(t=0),p();var n=b[e];void 0===n&&(b[e]=n=new _(e,"ms",t),v.appendChild(n.widget.element))}("view update"),Zt(ie(Tc.ComponentFunction,yf,{list:Ic}),Yc),setInterval((function(){var e,t;mf(),e=performance.now(),void 0!==(t=b["view update"])&&-1!==t.startTime&&(t.data.addSample(e-t.startTime),t.widget.invalidate())}),0)}(); diff --git a/docs/uibench-normalization/dist/bundle.js b/docs/uibench-normalization/dist/bundle.js index 569551727..44ed56d5c 100644 --- a/docs/uibench-normalization/dist/bundle.js +++ b/docs/uibench-normalization/dist/bundle.js @@ -1 +1 @@ -!function(){"use strict";var e=Array.isArray;function n(e){var n=typeof e;return"string"===n||"number"===n}function t(e){return void 0===e||null===e}function r(e){return null===e||!1===e||!0===e||void 0===e}function o(e){return"function"===typeof e}function l(e){return"string"===typeof e}function i(e){return null===e}function a(e,n){var t={};if(e)for(var r in e)t[r]=e[r];if(n)for(var o in n)t[o]=n[o];return t}function u(e,n){if(o(n))return{data:e,event:n};return null}function c(e){return!i(e)&&"object"===typeof e}var f={},s=function(){this.componentDidAppear=[],this.componentWillDisappear=[],this.componentWillMove=[]};function d(e){return e.substring(2).toLowerCase()}function p(e,n){e.appendChild(n)}function v(e,n,t){i(t)?p(e,n):e.insertBefore(n,t)}function h(e,n){if(n)return document.createElementNS("http://www.w3.org/2000/svg",e);return document.createElement(e)}function m(e,n,t){e.replaceChild(n,t)}function g(e,n){e.removeChild(n)}function y(e){for(var n=0;n0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function A(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===V;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=V+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function z(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?X(t):t}var G="http://www.w3.org/1999/xlink",J="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":G,"xlink:arcrole":G,"xlink:href":G,"xlink:role":G,"xlink:show":G,"xlink:title":G,"xlink:type":G,"xml:base":J,"xml:lang":J,"xml:space":J};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Se,We,Ue=me("onInput",Ve),Le=me("onChange");function Me(e,n){ge(e,"input",Ue),n.onChange&&ge(e,"change",Le)}function Ve(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,l){64&e?$e(r,t):256&e?Pe(r,t,o,n):128&e&&Ve(r,t,o),l&&(t.$V=n)}function Ne(e,n,t){64&e?we(n,t):256&e?Ae(n):128&e&&Me(n,t)}function Te(e){return e.type&&ye(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!M(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){M(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n,t){Re(e,t),F(e,n,t)}function Re(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,He(n,e)):e.textContent=""}function _e(e,n,t,r){je(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function ze(e,n,t,r){if(c(t)){if(U(n,t))return;t=qe(t)}ge(r,d(e),t)}function Ge(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function Je(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?je(r.children,l):2===r.childFlags&&Re(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ge(n,r,o);break;case"dangerouslySetInnerHTML":Je(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ze(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ne(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ie(n,e,r,t,!0,i)}function Ze(e,n,t){var r=z(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=P(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)W(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],y=u[m];g!==y&&Qe(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,k):Dn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ie(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Re(e,i),un(n,t,r,o,k(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:Oe(t,o,f);break;case 16:Re(t,f),W(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:W(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:je(t,f),W(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Un(t,r,o,l,i,s,d,a,u,c,f):Wn(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=P(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function An(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Pn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=z(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Wn(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)Oe(e[h++],t,f);else Ln(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Ln(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,P=0,S=0;if(o<4||(C|$)<32)for(g=y;g<=l;++g)if(v=e[g],S<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ya?x=!0:P=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S;break}!F&&a>i&&Oe(v,u,p)}else F||Oe(v,u,p);else{var W={};for(g=b;g<=i;++g)W[n[g].key]=g;for(g=y;g<=l;++g)if(v=e[g],S<$)if(void 0!==(a=W[v.key])){if(F)for(F=!1;g>y;)Oe(e[y++],u,p);D[a-b]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S}else F||Oe(v,u,p);else F||Oe(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var U=Vn(D);for(a=U.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)0&&w(p.componentWillMove)}else if(S!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)Mn&&(Mn=u,Se=new Int32Array(u),We=new Int32Array(u));t>1]]0&&(We[t]=Se[l-1]),Se[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Se[l-1];l-- >0;)c[l]=i,i=We[i],Se[l]=0;return c}function In(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(Oe(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),y(i),C(a.componentDidAppear),o(r)&&r(),o(S.renderComplete)&&S.renderComplete(u,n)}function Nn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),In(e,n,t,r)}function Tn(e){return N(1,"li","TreeLeaf",e.children,0,null,null,null)}function Bn(e,n){return e!==n}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function A(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===V;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=V+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function z(t){if(r(t)||n(t))return R(t,null);if(e(t))return j(t,0,null);return 16384&t.flags?X(t):t}var G="http://www.w3.org/1999/xlink",J="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":G,"xlink:arcrole":G,"xlink:href":G,"xlink:role":G,"xlink:show":G,"xlink:title":G,"xlink:type":G,"xml:base":J,"xml:lang":J,"xml:space":J};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(U(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Se,We,Ue=me("onInput",Ve),Le=me("onChange");function Me(e,n){ge(e,"input",Ue),n.onChange&&ge(e,"change",Le)}function Ve(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ie(e,n,t,r,o,l){64&e?$e(r,t):256&e?Pe(r,t,o,n):128&e&&Ve(r,t,o),l&&(t.$V=n)}function Ne(e,n,t){64&e?we(n,t):256&e?Ae(n):128&e&&Me(n,t)}function Te(e){return e.type&&ye(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!M(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){M(e,n)||void 0===e.current||(e.current=n)}))}function Oe(e,n,t){Re(e,t),F(e,n,t)}function Re(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,He(n,e)):e.textContent=""}function _e(e,n,t,r){je(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function ze(e,n,t,r){if(c(t)){if(U(n,t))return;t=qe(t)}ge(r,d(e),t)}function Ge(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function Je(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?je(r.children,l):2===r.childFlags&&Re(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Ge(n,r,o);break;case"dangerouslySetInnerHTML":Je(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?ze(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ne(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ie(n,e,r,t,!0,i)}function Ze(e,n,t){var r=z(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=P(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)W(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=k(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],y=u[m];g!==y&&Qe(m,g,y,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var k=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,k):Dn(e.childFlags,n.childFlags,e.children,k,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ie(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Re(e,i),un(n,t,r,o,k(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:Oe(t,o,f);break;case 16:Re(t,f),W(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:W(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:yn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:je(t,f),W(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Un(t,r,o,l,i,s,d,a,u,c,f):Wn(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=P(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function An(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Pn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=z(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function Sn(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Wn(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)Oe(e[h++],t,f);else Ln(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Ln(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,y=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,P=0,S=0;if(o<4||(C|$)<32)for(g=y;g<=l;++g)if(v=e[g],S<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ya?x=!0:P=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S;break}!F&&a>i&&Oe(v,u,p)}else F||Oe(v,u,p);else{var W={};for(g=b;g<=i;++g)W[n[g].key]=g;for(g=y;g<=l;++g)if(v=e[g],S<$)if(void 0!==(a=W[v.key])){if(F)for(F=!1;g>y;)Oe(e[y++],u,p);D[a-b]=g+1,P>a?x=!0:P=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++S}else F||Oe(v,u,p);else F||Oe(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var U=Vn(D);for(a=U.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)0&&w(p.componentWillMove)}else if(S!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[P=g+b]).flags&&(n[P]=h=X(h)),tn(h,u,t,c,(m=P+1)Mn&&(Mn=u,Se=new Int32Array(u),We=new Int32Array(u));t>1]]0&&(We[t]=Se[l-1]),Se[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Se[l-1];l-- >0;)c[l]=i,i=We[i],Se[l]=0;return c}function In(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(Oe(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),y(i),C(a.componentDidAppear),o(r)&&r(),o(S.renderComplete)&&S.renderComplete(u,n)}function Nn(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),In(e,n,t,r)}function Tn(e){return N(1,"li","TreeLeaf",e.children,0,null,null,null)}function Bn(e,n){return e!==n}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?w(t.componentWillDisappear,P(n,e)):x(n,e,!1)}function S(n,e,t,r,o,i,l,a){n.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(e,o,r,a):8&l&&t.onComponentWillMove(e,o,r,a)},next:i,parent:o})}function D(n,e,t,r,o){var l,u,c=e.flags;do{var s=e.flags;if(1521&s)return void(i(l)||!a(l.componentWillMove)&&!a(l.onComponentWillMove)?m(t,e.dom,r):S(o,n,l,e.dom,t,r,c,u));var f=e.children;if(4&s)l=e.children,u=e.props,e=f.$LI;else if(8&s)l=e.ref,u=e.props,e=f;else if(8192&s){if(2!==e.childFlags){for(var p=0,d=f.length;p0,h=c(p),v=u(p)&&p[0]===B;d||h||v?(t=t||e.slice(0,s),(d||v)&&(f=G(f)),(h||v)&&(f.key=B+s),t.push(f)):t&&t.push(f),f.flags|=65536}}i=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=G(e)),i=2;return n.children=t,n.childFlags=i,n}function z(n){if(l(n)||o(n))return H(n,null);if(r(n))return Q(n,0,null);return 16384&n.flags?G(n):n}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",nn={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function en(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var tn=en(0),rn=en(null),on=en(!0);function ln(n,e){var t=e.$EV;return t||(t=e.$EV=en(null)),t[n]||1===++tn[n]&&(rn[n]=gn(n)),t}function an(n,e){var t=e.$EV;t&&t[n]&&(0===--tn[n]&&(document.removeEventListener(h(n),rn[n]),rn[n]=null),t[n]=null)}function un(n,e,t,r){if(a(t))ln(n,r)[n]=t;else if(f(t)){if(M(e,t))return;ln(n,r)[n]=t}else an(n,r)}function cn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function sn(n,e,t,r){var o=cn(n);do{if(e&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,n):l(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function fn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function pn(){return this.defaultPrevented}function dn(){return this.cancelBubble}function hn(n){var e={dom:document};return n.isDefaultPrevented=pn,n.isPropagationStopped=dn,n.stopPropagation=fn,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function vn(n){return function(e){if(0!==e.button)return void e.stopPropagation();sn(e,!0,n,hn(e))}}function mn(n){return function(e){sn(e,!1,n,hn(e))}}function gn(n){var e="onClick"===n||"onDblClick"===n?vn(n):mn(n);return document.addEventListener(h(n),e),e}function yn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function bn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function $n(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||p,i=r.dom;if(u(n))bn(o,n,t);else for(var l=0;l-1&&e.options[l]&&(a=e.options[l].value),t&&i(a)&&(a=n.defaultValue),Sn(r,a)}}var An,Mn,Vn=$n("onInput",Tn),In=$n("onChange");function Bn(n,e){kn(n,"input",Vn),e.onChange&&kn(n,"change",In)}function Tn(n,e,t){var r=n.value,o=e.value;if(i(r)){if(t){var l=n.defaultValue;i(l)||l===o||(e.defaultValue=l,e.value=l)}}else o!==r&&(e.defaultValue=r,e.value=r)}function On(n,e,t,r,o,i){64&n?Fn(r,t):256&n?Nn(r,t,o,e):128&n&&Tn(r,t,o),i&&(t.$V=e)}function En(n,e,t){64&n?Pn(e,t):256&n?Wn(e):128&n&&Bn(e,t)}function Rn(n){return n.type&&Cn(n.type)?!i(n.checked):!i(n.value)}function jn(n){n&&!I(n,null)&&n.current&&(n.current=null)}function _n(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){I(n,e)||void 0===n.current||(n.current=e)}))}function Hn(n,e,t){Qn(n,t),F(n,e,t)}function Qn(n,e){var t,r=n.flags,o=n.children;if(481&r){t=n.ref;var l=n.props;jn(t);var u=n.childFlags;if(!c(l))for(var s=Object.keys(l),f=0,h=s.length;f0?w(t.componentWillDisappear,Gn(e,n)):n.textContent=""}function qn(n,e,t,r){Xn(t,r),8192&e.flags?F(e,n,r):Kn(n,t,r)}function Jn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function zn(n){var e=n.event;return function(t){e(n.data,t)}}function Yn(n,e,t,r){if(f(t)){if(M(e,t))return;t=zn(t)}kn(r,h(n),t)}function Zn(n,e,t){if(i(e))return void t.removeAttribute("style");var r,o,l=t.style;if(u(e))return void(l.cssText=e);if(i(n)||u(n))for(r in e)o=e[r],l.setProperty(r,o);else{for(r in e)(o=e[r])!==n[r]&&l.setProperty(r,o);for(r in n)i(e[r])&&l.removeProperty(r)}}function ne(n,e,t,r,o){var l=n&&n.__html||"",a=e&&e.__html||"";l!==a&&(i(a)||yn(r,a)||(c(t)||(12&t.childFlags?Xn(t.children,o):2===t.childFlags&&Qn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=a))}function ee(n,e,t,r,o,l,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[n]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===n)break;var c=i(t)?"":t;r[n]!==c&&(r[n]=c);break;case"style":Zn(e,t,r);break;case"dangerouslySetInnerHTML":ne(e,t,a,r,u);break;default:on[n]?un(n,e,t,r):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?Yn(n,e,t,r):i(t)?r.removeAttribute(n):o&&nn[n]?r.setAttributeNS(nn[n],n,t):r.setAttribute(n,t)}}function te(n,e,t,r,o,i){var l=!1,a=(448&e)>0;for(var u in a&&(l=Rn(t))&&En(e,r,t),t)ee(u,null,t[u],r,o,l,null,i);a&&On(e,n,r,t,!0,l)}function re(n,e,t){var r=z(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function oe(n,e,t,r,o,i){var l=new e(t,r),u=l.$N=Boolean(e.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,n.children=l,l.$BS=!1,l.context=r,l.props===p&&(l.props=t),u)l.state=L(l,t,l.state);else if(a(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var s=l.$PS;if(!c(s)){var f=l.state;if(c(f))l.state=s;else for(var d in s)f[d]=s[d];l.$PS=null}l.$BR=!1}return l.$LI=re(l,t,r),l}function ie(n,e){var t=n.props||p;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function le(n,e,t,r,o,i,l){var a=n.flags|=16384;481&a?se(n,e,t,r,o,i,l):4&a?pe(n,e,t,r,o,i,l):8&a?de(n,e,t,r,o,i,l):16&a?ce(n,e,o):8192&a?ue(n,t,e,r,o,i,l):1024&a&&ae(n,t,e,o,i,l)}function ae(n,e,t,r,o,i){le(n.children,n.ref,e,!1,null,o,i);var l=K();ce(l,t,r),n.dom=l.dom}function ue(n,e,t,r,o,i,l){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=K()),2===u?le(a,t,e,r,o,i,l):fe(a,t,e,r,o,i,l)}function ce(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||m(e,r,t)}function se(n,e,t,r,o,l,a){var u=n.flags,s=n.props,f=n.className,p=n.childFlags,d=n.dom=g(n.type,r=r||(32&u)>0),h=n.children;if(i(f)||""===f||(r?d.setAttribute("class",f):d.className=f),16===p)A(d,h);else if(1!==p){var v=r&&"foreignObject"!==n.type;2===p?(16384&h.flags&&(n.children=h=G(h)),le(h,d,t,v,null,l,a)):8!==p&&4!==p||fe(h,d,t,v,null,l,a)}c(e)||m(e,d,o),c(s)||te(n,u,s,d,r,a),_n(n.ref,d,l)}function fe(n,e,t,r,o,i,l){for(var a=0;ad)&&(f=C(a[d-1],!1).nextSibling)}Fe(c,s,a,u,t,r,o,f,n,i,l)}function Ue(n,e,t,r,o){var i=n.ref,a=e.ref,u=e.children;if(Fe(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,r,o),e.dom=n.dom,i!==a&&!l(u)){var c=u.dom;b(i,c),v(a,c)}}function xe(n,e,t,r,o,l,a){var u,c=e.dom=n.dom,s=n.props,f=e.props,d=!1,h=!1;if(r=r||(32&o)>0,s!==f){var v=s||p;if((u=f||p)!==p)for(var m in(d=(448&o)>0)&&(h=Rn(u)),u){var g=v[m],y=u[m];g!==y&&ee(m,g,y,c,r,h,n,a)}if(v!==p)for(var b in v)i(u[b])&&!i(v[b])&&ee(b,v[b],null,c,r,h,n,a)}var $=e.children,k=e.className;n.className!==k&&(i(k)?c.removeAttribute("class"):r?c.setAttribute("class",k):c.className=k),4096&o?Ce(c,$):Fe(n.childFlags,e.childFlags,n.children,$,c,t,r&&"foreignObject"!==e.type,null,n,l,a),d&&On(o,e,c,u,!1,h);var C=e.ref,w=n.ref;w!==C&&(jn(w),_n(C,c,l))}function Pe(n,e,t,r,o,i,l){Qn(n,l),fe(e,t,r,o,C(n,!0),i,l),F(n,t,l)}function Fe(n,e,t,r,o,i,l,a,u,c,s){switch(n){case 2:switch(e){case 2:$e(t,r,o,i,l,a,c,s);break;case 1:Hn(t,o,s);break;case 16:Qn(t,s),A(o,r);break;default:Pe(t,r,o,i,l,c,s)}break;case 1:switch(e){case 2:le(r,o,i,l,a,c,s);break;case 1:break;case 16:A(o,r);break;default:fe(r,o,i,l,a,c,s)}break;case 16:switch(e){case 16:ke(t,r,o);break;case 2:Kn(o,t,s),le(r,o,i,l,a,c,s);break;case 1:Kn(o,t,s);break;default:Kn(o,t,s),fe(r,o,i,l,a,c,s)}break;default:switch(e){case 16:Xn(t,s),A(o,r);break;case 2:qn(o,u,t,s),le(r,o,i,l,a,c,s);break;case 1:qn(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&fe(r,o,i,l,a,c,s):0===p?qn(o,u,t,s):8===e&&8===n?Me(t,r,o,i,l,f,p,a,u,c,s):Ae(t,r,o,i,l,f,p,a,c,s)}}}function Se(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function De(n,e,t,r,o,i,l,u,c,f){var p=n.state,d=n.props,h=Boolean(n.$N),v=a(n.shouldComponentUpdate);if(h&&(e=L(n,t,e!==p?s(p,e):e)),l||!v||v&&n.shouldComponentUpdate(t,e,o)){!h&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var m=null,g=re(n,t,o);h&&a(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),$e(n.$LI,g,r,n.$CX,i,u,c,f),n.$LI=g,a(n.componentDidUpdate)&&Se(n,d,p,m,c)}else n.props=t,n.state=e,n.context=o}function Le(n,e,t,r,o,i,l,u){var f=e.children=n.children;if(c(f))return;f.$L=l;var d=e.props||p,h=e.ref,v=n.ref,m=f.state;if(!f.$N){if(a(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}c(f.$PS)||(m=s(m,f.$PS),f.$PS=null)}De(f,m,d,t,r,o,!1,i,l,u),v!==h&&(jn(v),_n(h,f,l))}function We(n,e,t,r,o,l,u,c){var s=!0,f=e.props||p,d=e.ref,h=n.props,v=!i(d),m=n.children;if(v&&a(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(h,f)),!1!==s){v&&a(d.onComponentWillUpdate)&&d.onComponentWillUpdate(h,f);var g=z(ie(e,r));$e(m,g,t,r,o,l,u,c),e.children=g,v&&a(d.onComponentDidUpdate)&&d.onComponentDidUpdate(h,f)}else e.children=m}function Ne(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ae(n,e,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;dl)for(d=p;dd||v>h)break n;m=n[v],g=e[v]}for(m=n[d],g=e[h];m.key===g.key;){if(16384&g.flags&&(e[h]=g=G(g)),$e(m,g,t,r,o,a,c,s),n[d]=g,h--,v>--d||v>h)break n;m=n[d],g=e[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Hn(n[v++],t,s);else Ve(n,e,r,i,l,d,h,v,t,o,a,u,c,s)}function Ve(n,e,t,r,o,i,l,a,u,c,s,f,p,d){var h,v,m=0,g=0,y=a,b=a,$=i-a+1,k=l-a+1,w=new Int32Array(k+1),x=$===r,P=!1,F=0,S=0;if(o<4||($|k)<32)for(g=y;g<=i;++g)if(h=n[g],Sa?P=!0:F=a,16384&v.flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S;break}!x&&a>l&&Hn(h,u,d)}else x||Hn(h,u,d);else{var L={};for(g=b;g<=l;++g)L[e[g].key]=g;for(g=y;g<=i;++g)if(h=n[g],Sy;)Hn(n[y++],u,d);w[a-b]=g+1,F>a?P=!0:F=a,16384&(v=e[a]).flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S}else x||Hn(h,u,d);else x||Hn(h,u,d)}if(x)qn(u,f,n,d),fe(e,u,t,c,s,p,d);else if(P){var W=Be(w);for(a=W.length-1,g=k-1;g>=0;g--)0===w[g]?(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)0&&U(d.componentWillMove)}else if(S!==k)for(g=k-1;g>=0;g--)0===w[g]&&(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)Ie&&(Ie=u,An=new Int32Array(u),Mn=new Int32Array(u));t>1]]0&&(Mn[t]=An[i-1]),An[i]=t)}i=o+1;var c=new Int32Array(i);for(l=An[i-1];i-- >0;)c[i]=l,l=Mn[l],An[i]=0;return c}function Te(n,e,t,r){var o=[],l=new d,u=e.$V;W.v=!0,i(u)?i(n)||(16384&n.flags&&(n=G(n)),le(n,e,r,!1,null,o,l),e.$V=n,u=n):i(n)?(Hn(u,e,l),e.$V=null):(16384&n.flags&&(n=G(n)),$e(u,n,e,r,!1,null,o,l),u=e.$V=n),$(o),w(l.componentDidAppear),W.v=!1,a(t)&&t(),a(N.renderComplete)&&N.renderComplete(u,e)}function Oe(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Te(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ee=[],Re="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},je=!1;function _e(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),i(o))n.$PS=e;else for(var l in e)o[l]=e[l];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!W.v&&0===Ee.length)return Xe(n,r),void(a(t)&&t.call(n));if(-1===Ee.indexOf(n)&&Ee.push(n),r&&(n.$F=!0),je||(je=!0,Re(Qe)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function He(n){for(var e=n.$QU,t=0;t0?w(t.componentWillDisappear,P(n,e)):x(n,e,!1)}function S(n,e,t,r,o,i,l,a){n.componentWillMove.push({dom:r,fn:function(){4&l?t.componentWillMove(e,o,r,a):8&l&&t.onComponentWillMove(e,o,r,a)},next:i,parent:o})}function D(n,e,t,r,o){var l,u,c=e.flags;do{var s=e.flags;if(1521&s)return void(i(l)||!a(l.componentWillMove)&&!a(l.onComponentWillMove)?m(t,e.dom,r):S(o,n,l,e.dom,t,r,c,u));var f=e.children;if(4&s)l=e.children,u=e.props,e=f.$LI;else if(8&s)l=e.ref,u=e.props,e=f;else if(8192&s){if(2!==e.childFlags){for(var p=0,d=f.length;p0,h=c(p),v=u(p)&&p[0]===B;d||h||v?(t=t||e.slice(0,s),(d||v)&&(f=G(f)),(h||v)&&(f.key=B+s),t.push(f)):t&&t.push(f),f.flags|=65536}}i=0===(t=t||e).length?1:8}else(t=e).flags|=65536,81920&e.flags&&(t=G(e)),i=2;return n.children=t,n.childFlags=i,n}function z(n){if(l(n)||o(n))return H(n,null);if(r(n))return Q(n,0,null);return 16384&n.flags?G(n):n}var Y="http://www.w3.org/1999/xlink",Z="http://www.w3.org/XML/1998/namespace",nn={"xlink:actuate":Y,"xlink:arcrole":Y,"xlink:href":Y,"xlink:role":Y,"xlink:show":Y,"xlink:title":Y,"xlink:type":Y,"xml:base":Z,"xml:lang":Z,"xml:space":Z};function en(n){return{onClick:n,onDblClick:n,onFocusIn:n,onFocusOut:n,onKeyDown:n,onKeyPress:n,onKeyUp:n,onMouseDown:n,onMouseMove:n,onMouseUp:n,onTouchEnd:n,onTouchMove:n,onTouchStart:n}}var tn=en(0),rn=en(null),on=en(!0);function ln(n,e){var t=e.$EV;return t||(t=e.$EV=en(null)),t[n]||1===++tn[n]&&(rn[n]=gn(n)),t}function an(n,e){var t=e.$EV;t&&t[n]&&(0===--tn[n]&&(document.removeEventListener(h(n),rn[n]),rn[n]=null),t[n]=null)}function un(n,e,t,r){if(a(t))ln(n,r)[n]=t;else if(f(t)){if(M(e,t))return;ln(n,r)[n]=t}else an(n,r)}function cn(n){return a(n.composedPath)?n.composedPath()[0]:n.target}function sn(n,e,t,r){var o=cn(n);do{if(e&&o.disabled)return;var i=o.$EV;if(i){var l=i[t];if(l&&(r.dom=o,l.event?l.event(l.data,n):l(n),n.cancelBubble))return}o=o.parentNode}while(!c(o))}function fn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function pn(){return this.defaultPrevented}function dn(){return this.cancelBubble}function hn(n){var e={dom:document};return n.isDefaultPrevented=pn,n.isPropagationStopped=dn,n.stopPropagation=fn,Object.defineProperty(n,"currentTarget",{configurable:!0,get:function(){return e.dom}}),e}function vn(n){return function(e){if(0!==e.button)return void e.stopPropagation();sn(e,!0,n,hn(e))}}function mn(n){return function(e){sn(e,!1,n,hn(e))}}function gn(n){var e="onClick"===n||"onDblClick"===n?vn(n):mn(n);return document.addEventListener(h(n),e),e}function yn(n,e){var t=document.createElement("i");return t.innerHTML=e,t.innerHTML===n.innerHTML}function bn(n,e,t){if(n[e]){var r=n[e];r.event?r.event(r.data,t):r(t)}else{var o=e.toLowerCase();n[o]&&n[o](t)}}function $n(n,e){var t=function(t){var r=this.$V;if(!r)return;var o=r.props||p,i=r.dom;if(u(n))bn(o,n,t);else for(var l=0;l-1&&e.options[l]&&(a=e.options[l].value),t&&i(a)&&(a=n.defaultValue),Sn(r,a)}}var An,Mn,Vn=$n("onInput",Tn),In=$n("onChange");function Bn(n,e){kn(n,"input",Vn),e.onChange&&kn(n,"change",In)}function Tn(n,e,t){var r=n.value,o=e.value;if(i(r)){if(t){var l=n.defaultValue;i(l)||l===o||(e.defaultValue=l,e.value=l)}}else o!==r&&(e.defaultValue=r,e.value=r)}function On(n,e,t,r,o,i){64&n?Fn(r,t):256&n?Nn(r,t,o,e):128&n&&Tn(r,t,o),i&&(t.$V=e)}function En(n,e,t){64&n?Pn(e,t):256&n?Wn(e):128&n&&Bn(e,t)}function Rn(n){return n.type&&Cn(n.type)?!i(n.checked):!i(n.value)}function jn(n){n&&!I(n,null)&&n.current&&(n.current=null)}function _n(n,e,t){n&&(a(n)||void 0!==n.current)&&t.push((function(){I(n,e)||void 0===n.current||(n.current=e)}))}function Hn(n,e,t){Qn(n,t),F(n,e,t)}function Qn(n,e){var t,r=n.flags,o=n.children;if(481&r){t=n.ref;var l=n.props;jn(t);var u=n.childFlags;if(!c(l))for(var s=Object.keys(l),f=0,h=s.length;f0?w(t.componentWillDisappear,Gn(e,n)):n.textContent=""}function qn(n,e,t,r){Xn(t,r),8192&e.flags?F(e,n,r):Kn(n,t,r)}function Jn(n,e,t,r,o){n.componentWillDisappear.push((function(n){4&r?e.componentWillDisappear(t,n):8&r&&e.onComponentWillDisappear(t,o,n)}))}function zn(n){var e=n.event;return function(t){e(n.data,t)}}function Yn(n,e,t,r){if(f(t)){if(M(e,t))return;t=zn(t)}kn(r,h(n),t)}function Zn(n,e,t){if(i(e))return void t.removeAttribute("style");var r,o,l=t.style;if(u(e))return void(l.cssText=e);if(i(n)||u(n))for(r in e)o=e[r],l.setProperty(r,o);else{for(r in e)(o=e[r])!==n[r]&&l.setProperty(r,o);for(r in n)i(e[r])&&l.removeProperty(r)}}function ne(n,e,t,r,o){var l=n&&n.__html||"",a=e&&e.__html||"";l!==a&&(i(a)||yn(r,a)||(c(t)||(12&t.childFlags?Xn(t.children,o):2===t.childFlags&&Qn(t.children,o),t.children=null,t.childFlags=1),r.innerHTML=a))}function ee(n,e,t,r,o,l,a,u){switch(n){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":r.autofocus=!!t;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":r[n]=!!t;break;case"defaultChecked":case"value":case"volume":if(l&&"value"===n)break;var c=i(t)?"":t;r[n]!==c&&(r[n]=c);break;case"style":Zn(e,t,r);break;case"dangerouslySetInnerHTML":ne(e,t,a,r,u);break;default:on[n]?un(n,e,t,r):111===n.charCodeAt(0)&&110===n.charCodeAt(1)?Yn(n,e,t,r):i(t)?r.removeAttribute(n):o&&nn[n]?r.setAttributeNS(nn[n],n,t):r.setAttribute(n,t)}}function te(n,e,t,r,o,i){var l=!1,a=(448&e)>0;for(var u in a&&(l=Rn(t))&&En(e,r,t),t)ee(u,null,t[u],r,o,l,null,i);a&&On(e,n,r,t,!0,l)}function re(n,e,t){var r=z(n.render(e,n.state,t)),o=t;return a(n.getChildContext)&&(o=s(t,n.getChildContext())),n.$CX=o,r}function oe(n,e,t,r,o,i){var l=new e(t,r),u=l.$N=Boolean(e.getDerivedStateFromProps||l.getSnapshotBeforeUpdate);if(l.$SVG=o,l.$L=i,n.children=l,l.$BS=!1,l.context=r,l.props===p&&(l.props=t),u)l.state=L(l,t,l.state);else if(a(l.componentWillMount)){l.$BR=!0,l.componentWillMount();var s=l.$PS;if(!c(s)){var f=l.state;if(c(f))l.state=s;else for(var d in s)f[d]=s[d];l.$PS=null}l.$BR=!1}return l.$LI=re(l,t,r),l}function ie(n,e){var t=n.props||p;return 32768&n.flags?n.type.render(t,n.ref,e):n.type(t,e)}function le(n,e,t,r,o,i,l){var a=n.flags|=16384;481&a?se(n,e,t,r,o,i,l):4&a?pe(n,e,t,r,o,i,l):8&a?de(n,e,t,r,o,i,l):16&a?ce(n,e,o):8192&a?ue(n,t,e,r,o,i,l):1024&a&&ae(n,t,e,o,i,l)}function ae(n,e,t,r,o,i){le(n.children,n.ref,e,!1,null,o,i);var l=K();ce(l,t,r),n.dom=l.dom}function ue(n,e,t,r,o,i,l){var a=n.children,u=n.childFlags;12&u&&0===a.length&&(u=n.childFlags=2,a=n.children=K()),2===u?le(a,t,e,r,o,i,l):fe(a,t,e,r,o,i,l)}function ce(n,e,t){var r=n.dom=document.createTextNode(n.children);c(e)||m(e,r,t)}function se(n,e,t,r,o,l,a){var u=n.flags,s=n.props,f=n.className,p=n.childFlags,d=n.dom=g(n.type,r=r||(32&u)>0),h=n.children;if(i(f)||""===f||(r?d.setAttribute("class",f):d.className=f),16===p)A(d,h);else if(1!==p){var v=r&&"foreignObject"!==n.type;2===p?(16384&h.flags&&(n.children=h=G(h)),le(h,d,t,v,null,l,a)):8!==p&&4!==p||fe(h,d,t,v,null,l,a)}c(e)||m(e,d,o),c(s)||te(n,u,s,d,r,a),_n(n.ref,d,l)}function fe(n,e,t,r,o,i,l){for(var a=0;ad)&&(f=C(a[d-1],!1).nextSibling)}Fe(c,s,a,u,t,r,o,f,n,i,l)}function Ue(n,e,t,r,o){var i=n.ref,a=e.ref,u=e.children;if(Fe(n.childFlags,e.childFlags,n.children,u,i,t,!1,null,n,r,o),e.dom=n.dom,i!==a&&!l(u)){var c=u.dom;b(i,c),v(a,c)}}function xe(n,e,t,r,o,l,a){var u,c=e.dom=n.dom,s=n.props,f=e.props,d=!1,h=!1;if(r=r||(32&o)>0,s!==f){var v=s||p;if((u=f||p)!==p)for(var m in(d=(448&o)>0)&&(h=Rn(u)),u){var g=v[m],y=u[m];g!==y&&ee(m,g,y,c,r,h,n,a)}if(v!==p)for(var b in v)i(u[b])&&!i(v[b])&&ee(b,v[b],null,c,r,h,n,a)}var $=e.children,k=e.className;n.className!==k&&(i(k)?c.removeAttribute("class"):r?c.setAttribute("class",k):c.className=k),4096&o?Ce(c,$):Fe(n.childFlags,e.childFlags,n.children,$,c,t,r&&"foreignObject"!==e.type,null,n,l,a),d&&On(o,e,c,u,!1,h);var C=e.ref,w=n.ref;w!==C&&(jn(w),_n(C,c,l))}function Pe(n,e,t,r,o,i,l){Qn(n,l),fe(e,t,r,o,C(n,!0),i,l),F(n,t,l)}function Fe(n,e,t,r,o,i,l,a,u,c,s){switch(n){case 2:switch(e){case 2:$e(t,r,o,i,l,a,c,s);break;case 1:Hn(t,o,s);break;case 16:Qn(t,s),A(o,r);break;default:Pe(t,r,o,i,l,c,s)}break;case 1:switch(e){case 2:le(r,o,i,l,a,c,s);break;case 1:break;case 16:A(o,r);break;default:fe(r,o,i,l,a,c,s)}break;case 16:switch(e){case 16:ke(t,r,o);break;case 2:Kn(o,t,s),le(r,o,i,l,a,c,s);break;case 1:Kn(o,t,s);break;default:Kn(o,t,s),fe(r,o,i,l,a,c,s)}break;default:switch(e){case 16:Xn(t,s),A(o,r);break;case 2:qn(o,u,t,s),le(r,o,i,l,a,c,s);break;case 1:qn(o,u,t,s);break;default:var f=0|t.length,p=0|r.length;0===f?p>0&&fe(r,o,i,l,a,c,s):0===p?qn(o,u,t,s):8===e&&8===n?Me(t,r,o,i,l,f,p,a,u,c,s):Ae(t,r,o,i,l,f,p,a,c,s)}}}function Se(n,e,t,r,o){o.push((function(){n.componentDidUpdate(e,t,r)}))}function De(n,e,t,r,o,i,l,u,c,f){var p=n.state,d=n.props,h=Boolean(n.$N),v=a(n.shouldComponentUpdate);if(h&&(e=L(n,t,e!==p?s(p,e):e)),l||!v||v&&n.shouldComponentUpdate(t,e,o)){!h&&a(n.componentWillUpdate)&&n.componentWillUpdate(t,e,o),n.props=t,n.state=e,n.context=o;var m=null,g=re(n,t,o);h&&a(n.getSnapshotBeforeUpdate)&&(m=n.getSnapshotBeforeUpdate(d,p)),$e(n.$LI,g,r,n.$CX,i,u,c,f),n.$LI=g,a(n.componentDidUpdate)&&Se(n,d,p,m,c)}else n.props=t,n.state=e,n.context=o}function Le(n,e,t,r,o,i,l,u){var f=e.children=n.children;if(c(f))return;f.$L=l;var d=e.props||p,h=e.ref,v=n.ref,m=f.state;if(!f.$N){if(a(f.componentWillReceiveProps)){if(f.$BR=!0,f.componentWillReceiveProps(d,r),f.$UN)return;f.$BR=!1}c(f.$PS)||(m=s(m,f.$PS),f.$PS=null)}De(f,m,d,t,r,o,!1,i,l,u),v!==h&&(jn(v),_n(h,f,l))}function We(n,e,t,r,o,l,u,c){var s=!0,f=e.props||p,d=e.ref,h=n.props,v=!i(d),m=n.children;if(v&&a(d.onComponentShouldUpdate)&&(s=d.onComponentShouldUpdate(h,f)),!1!==s){v&&a(d.onComponentWillUpdate)&&d.onComponentWillUpdate(h,f);var g=z(ie(e,r));$e(m,g,t,r,o,l,u,c),e.children=g,v&&a(d.onComponentDidUpdate)&&d.onComponentDidUpdate(h,f)}else e.children=m}function Ne(n,e){var t=e.children,r=e.dom=n.dom;t!==n.children&&(r.nodeValue=t)}function Ae(n,e,t,r,o,i,l,a,u,c){for(var s,f,p=i>l?l:i,d=0;dl)for(d=p;dd||v>h)break n;m=n[v],g=e[v]}for(m=n[d],g=e[h];m.key===g.key;){if(16384&g.flags&&(e[h]=g=G(g)),$e(m,g,t,r,o,a,c,s),n[d]=g,h--,v>--d||v>h)break n;m=n[d],g=e[h]}}if(v>d){if(v<=h)for(p=(f=h+1)h)for(;v<=d;)Hn(n[v++],t,s);else Ve(n,e,r,i,l,d,h,v,t,o,a,u,c,s)}function Ve(n,e,t,r,o,i,l,a,u,c,s,f,p,d){var h,v,m=0,g=0,y=a,b=a,$=i-a+1,k=l-a+1,w=new Int32Array(k+1),x=$===r,P=!1,F=0,S=0;if(o<4||($|k)<32)for(g=y;g<=i;++g)if(h=n[g],Sa?P=!0:F=a,16384&v.flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S;break}!x&&a>l&&Hn(h,u,d)}else x||Hn(h,u,d);else{var L={};for(g=b;g<=l;++g)L[e[g].key]=g;for(g=y;g<=i;++g)if(h=n[g],Sy;)Hn(n[y++],u,d);w[a-b]=g+1,F>a?P=!0:F=a,16384&(v=e[a]).flags&&(e[a]=v=G(v)),$e(h,v,u,t,c,s,p,d),++S}else x||Hn(h,u,d);else x||Hn(h,u,d)}if(x)qn(u,f,n,d),fe(e,u,t,c,s,p,d);else if(P){var W=Be(w);for(a=W.length-1,g=k-1;g>=0;g--)0===w[g]?(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)0&&U(d.componentWillMove)}else if(S!==k)for(g=k-1;g>=0;g--)0===w[g]&&(16384&(v=e[F=g+b]).flags&&(e[F]=v=G(v)),le(v,u,t,c,(m=F+1)Ie&&(Ie=u,An=new Int32Array(u),Mn=new Int32Array(u));t>1]]0&&(Mn[t]=An[i-1]),An[i]=t)}i=o+1;var c=new Int32Array(i);for(l=An[i-1];i-- >0;)c[i]=l,l=Mn[l],An[i]=0;return c}function Te(n,e,t,r){var o=[],l=new d,u=e.$V;W.v=!0,i(u)?i(n)||(16384&n.flags&&(n=G(n)),le(n,e,r,!1,null,o,l),e.$V=n,u=n):i(n)?(Hn(u,e,l),e.$V=null):(16384&n.flags&&(n=G(n)),$e(u,n,e,r,!1,null,o,l),u=e.$V=n),$(o),w(l.componentDidAppear),W.v=!1,a(t)&&t(),a(N.renderComplete)&&N.renderComplete(u,e)}function Oe(n,e,t,r){void 0===t&&(t=null),void 0===r&&(r=p),Te(n,e,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Ee=[],Re="undefined"!==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):function(n){window.setTimeout(n,0)},je=!1;function _e(n,e,t,r){var o=n.$PS;if(a(e)&&(e=e(o?s(n.state,o):n.state,n.props,n.context)),i(o))n.$PS=e;else for(var l in e)o[l]=e[l];if(n.$BR)a(t)&&n.$L.push(t.bind(n));else{if(!W.v&&0===Ee.length)return Xe(n,r),void(a(t)&&t.call(n));if(-1===Ee.indexOf(n)&&Ee.push(n),r&&(n.$F=!0),je||(je=!0,Re(Qe)),a(t)){var u=n.$QU;u||(u=n.$QU=[]),u.push(t)}}}function He(n){for(var e=n.$QU,t=0;t0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function P(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=I+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||n(t))return O(t,null);if(e(t))return R(t,0,null);return 16384&t.flags?X(t):t}var J="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(M(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Ae,Le,Me=me("onInput",Ie),Se=me("onChange");function Ve(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Se)}function Ie(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ne(e,n,t,r,o,l){64&e?$e(r,t):256&e?We(r,t,o,n):128&e&&Ie(r,t,o),l&&(t.$V=n)}function Ue(e,n,t){64&e?we(n,t):256&e?Pe(n):128&e&&Ve(n,t)}function Te(e){return e.type&&ke(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function He(e,n,t){Oe(e,t),F(e,n,t)}function Oe(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,je(n,e)):e.textContent=""}function _e(e,n,t,r){Re(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function Ge(e,n,t,r){if(c(t)){if(M(n,t))return;t=qe(t)}ge(r,d(e),t)}function Je(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function ze(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?Re(r.children,l):2===r.childFlags&&Oe(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Je(n,r,o);break;case"dangerouslySetInnerHTML":ze(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ge(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ue(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ne(n,e,r,t,!0,i)}function Ze(e,n,t){var r=G(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=W(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)L(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=y(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],k=u[m];g!==k&&Qe(m,g,k,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var y=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,y):Dn(e.childFlags,n.childFlags,e.children,y,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ne(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Oe(e,i),un(n,t,r,o,y(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:He(t,o,f);break;case 16:Oe(t,f),L(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:kn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:Re(t,f),L(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Mn(t,r,o,l,i,s,d,a,u,c,f):Ln(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=W(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function Pn(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Wn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=G(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function An(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)He(e[h++],t,f);else Sn(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Sn(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,k=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,W=0,A=0;if(o<4||(C|$)<32)for(g=k;g<=l;++g)if(v=e[g],A<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ka?x=!0:W=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A;break}!F&&a>i&&He(v,u,p)}else F||He(v,u,p);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=l;++g)if(v=e[g],A<$)if(void 0!==(a=L[v.key])){if(F)for(F=!1;g>k;)He(e[k++],u,p);D[a-b]=g+1,W>a?x=!0:W=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A}else F||He(v,u,p);else F||He(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var M=In(D);for(a=M.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)0&&w(p.componentWillMove)}else if(A!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)Vn&&(Vn=u,Ae=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ae[l-1]),Ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ae[l-1];l-- >0;)c[l]=i,i=Le[i],Ae[l]=0;return c}function Nn(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(He(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),k(i),C(a.componentDidAppear),o(r)&&r(),o(A.renderComplete)&&A.renderComplete(u,n)}function Un(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Nn(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","8.0.1");var Tn={onComponentShouldUpdate:function(e,n){return e!==n}};function Bn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o0?C(t.componentWillDisappear,D(e,n)):$(e,n,!1)}function x(e,n,t,r,o,l,i,a){e.componentWillMove.push({dom:r,fn:function(){4&i?t.componentWillMove(n,o,r,a):8&i&&t.onComponentWillMove(n,o,r,a)},next:l,parent:o})}function P(e,n,r,l,i){var a,u,c=n.flags;do{var f=n.flags;if(1521&f)return void(t(a)||!o(a.componentWillMove)&&!o(a.onComponentWillMove)?v(r,n.dom,l):x(i,e,a,n.dom,r,l,c,u));var s=n.children;if(4&f)a=n.children,u=n.props,n=s.$LI;else if(8&f)a=n.ref,u=n.props,n=s;else if(8192&f){if(2!==n.childFlags){for(var d=0,p=s.length;d0,v=i(d),h=l(d)&&d[0]===I;p||v||h?(a=a||o.slice(0,f),(p||h)&&(s=X(s)),(v||h)&&(s.key=I+f),a.push(s)):a&&a.push(s),s.flags|=65536}}u=0===(a=a||o).length?1:8}else(a=o).flags|=65536,81920&o.flags&&(a=X(o)),u=2;return t.children=a,t.childFlags=u,t}function G(t){if(r(t)||n(t))return O(t,null);if(e(t))return R(t,0,null);return 16384&t.flags?X(t):t}var J="http://www.w3.org/1999/xlink",z="http://www.w3.org/XML/1998/namespace",Q={"xlink:actuate":J,"xlink:arcrole":J,"xlink:href":J,"xlink:role":J,"xlink:show":J,"xlink:title":J,"xlink:type":J,"xml:base":z,"xml:lang":z,"xml:space":z};function Y(e){return{onClick:e,onDblClick:e,onFocusIn:e,onFocusOut:e,onKeyDown:e,onKeyPress:e,onKeyUp:e,onMouseDown:e,onMouseMove:e,onMouseUp:e,onTouchEnd:e,onTouchMove:e,onTouchStart:e}}var Z=Y(0),ee=Y(null),ne=Y(!0);function te(e,n){var t=n.$EV;return t||(t=n.$EV=Y(null)),t[e]||1===++Z[e]&&(ee[e]=pe(e)),t}function re(e,n){var t=n.$EV;t&&t[e]&&(0===--Z[e]&&(document.removeEventListener(d(e),ee[e]),ee[e]=null),t[e]=null)}function oe(e,n,t,r){if(o(t))te(e,r)[e]=t;else if(c(t)){if(M(n,t))return;te(e,r)[e]=t}else re(e,r)}function le(e){return o(e.composedPath)?e.composedPath()[0]:e.target}function ie(e,n,t,r){var o=le(e);do{if(n&&o.disabled)return;var l=o.$EV;if(l){var a=l[t];if(a&&(r.dom=o,a.event?a.event(a.data,e):a(e),e.cancelBubble))return}o=o.parentNode}while(!i(o))}function ae(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function ue(){return this.defaultPrevented}function ce(){return this.cancelBubble}function fe(e){var n={dom:document};return e.isDefaultPrevented=ue,e.isPropagationStopped=ce,e.stopPropagation=ae,Object.defineProperty(e,"currentTarget",{configurable:!0,get:function(){return n.dom}}),n}function se(e){return function(n){if(0!==n.button)return void n.stopPropagation();ie(n,!0,e,fe(n))}}function de(e){return function(n){ie(n,!1,e,fe(n))}}function pe(e){var n="onClick"===e||"onDblClick"===e?se(e):de(e);return document.addEventListener(d(e),n),n}function ve(e,n){var t=document.createElement("i");return t.innerHTML=n,t.innerHTML===e.innerHTML}function he(e,n,t){if(e[n]){var r=e[n];r.event?r.event(r.data,t):r(t)}else{var o=n.toLowerCase();e[o]&&e[o](t)}}function me(e,n){var t=function(t){var r=this.$V;if(!r)return;var i=r.props||f,a=r.dom;if(l(e))he(i,e,t);else for(var u=0;u-1&&n.options[i]&&(a=n.options[i].value),r&&t(a)&&(a=e.defaultValue),De(o,a)}}var Ae,Le,Me=me("onInput",Ie),Se=me("onChange");function Ve(e,n){ge(e,"input",Me),n.onChange&&ge(e,"change",Se)}function Ie(e,n,r){var o=e.value,l=n.value;if(t(o)){if(r){var i=e.defaultValue;t(i)||i===l||(n.defaultValue=i,n.value=i)}}else l!==o&&(n.defaultValue=o,n.value=o)}function Ne(e,n,t,r,o,l){64&e?$e(r,t):256&e?We(r,t,o,n):128&e&&Ie(r,t,o),l&&(t.$V=n)}function Ue(e,n,t){64&e?we(n,t):256&e?Pe(n):128&e&&Ve(n,t)}function Te(e){return e.type&&ke(e.type)?!t(e.checked):!t(e.value)}function Be(e){e&&!V(e,null)&&e.current&&(e.current=null)}function Ee(e,n,t){e&&(o(e)||void 0!==e.current)&&t.push((function(){V(e,n)||void 0===e.current||(e.current=n)}))}function He(e,n,t){Oe(e,t),F(e,n,t)}function Oe(e,n){var r,l=e.flags,a=e.children;if(481&l){r=e.ref;var u=e.props;Be(r);var c=e.childFlags;if(!i(u))for(var d=Object.keys(u),p=0,v=d.length;p0?C(t.componentWillDisappear,je(n,e)):e.textContent=""}function _e(e,n,t,r){Re(t,r),8192&n.flags?F(n,e,r):Xe(e,t,r)}function Ke(e,n,t,r,o){e.componentWillDisappear.push((function(e){4&r?n.componentWillDisappear(t,e):8&r&&n.onComponentWillDisappear(t,o,e)}))}function qe(e){var n=e.event;return function(t){n(e.data,t)}}function Ge(e,n,t,r){if(c(t)){if(M(n,t))return;t=qe(t)}ge(r,d(e),t)}function Je(e,n,r){if(t(n))return void r.removeAttribute("style");var o,i,a=r.style;if(l(n))return void(a.cssText=n);if(t(e)||l(e))for(o in n)i=n[o],a.setProperty(o,i);else{for(o in n)(i=n[o])!==e[o]&&a.setProperty(o,i);for(o in e)t(n[o])&&a.removeProperty(o)}}function ze(e,n,r,o,l){var a=e&&e.__html||"",u=n&&n.__html||"";a!==u&&(t(u)||ve(o,u)||(i(r)||(12&r.childFlags?Re(r.children,l):2===r.childFlags&&Oe(r.children,l),r.children=null,r.childFlags=1),o.innerHTML=u))}function Qe(e,n,r,o,l,i,a,u){switch(e){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":o.autofocus=!!r;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":o[e]=!!r;break;case"defaultChecked":case"value":case"volume":if(i&&"value"===e)break;var c=t(r)?"":r;o[e]!==c&&(o[e]=c);break;case"style":Je(n,r,o);break;case"dangerouslySetInnerHTML":ze(n,r,a,o,u);break;default:ne[e]?oe(e,n,r,o):111===e.charCodeAt(0)&&110===e.charCodeAt(1)?Ge(e,n,r,o):t(r)?o.removeAttribute(e):l&&Q[e]?o.setAttributeNS(Q[e],e,r):o.setAttribute(e,r)}}function Ye(e,n,t,r,o,l){var i=!1,a=(448&n)>0;for(var u in a&&(i=Te(t))&&Ue(n,r,t),t)Qe(u,null,t[u],r,o,i,null,l);a&&Ne(n,e,r,t,!0,i)}function Ze(e,n,t){var r=G(e.render(n,e.state,t)),l=t;return o(e.getChildContext)&&(l=a(t,e.getChildContext())),e.$CX=l,r}function en(e,n,t,r,l,a){var u=new n(t,r),c=u.$N=Boolean(n.getDerivedStateFromProps||u.getSnapshotBeforeUpdate);if(u.$SVG=l,u.$L=a,e.children=u,u.$BS=!1,u.context=r,u.props===f&&(u.props=t),c)u.state=W(u,t,u.state);else if(o(u.componentWillMount)){u.$BR=!0,u.componentWillMount();var s=u.$PS;if(!i(s)){var d=u.state;if(i(d))u.state=s;else for(var p in s)d[p]=s[p];u.$PS=null}u.$BR=!1}return u.$LI=Ze(u,t,r),u}function nn(e,n){var t=e.props||f;return 32768&e.flags?e.type.render(t,e.ref,n):e.type(t,n)}function tn(e,n,t,r,o,l,i){var a=e.flags|=16384;481&a?an(e,n,t,r,o,l,i):4&a?cn(e,n,t,r,o,l,i):8&a?fn(e,n,t,r,o,l,i):16&a?ln(e,n,o):8192&a?on(e,t,n,r,o,l,i):1024&a&&rn(e,t,n,o,l,i)}function rn(e,n,t,r,o,l){tn(e.children,e.ref,n,!1,null,o,l);var i=_();ln(i,t,r),e.dom=i.dom}function on(e,n,t,r,o,l,i){var a=e.children,u=e.childFlags;12&u&&0===a.length&&(u=e.childFlags=2,a=e.children=_()),2===u?tn(a,t,n,r,o,l,i):un(a,t,n,r,o,l,i)}function ln(e,n,t){var r=e.dom=document.createTextNode(e.children);i(n)||v(n,r,t)}function an(e,n,r,o,l,a,u){var c=e.flags,f=e.props,s=e.className,d=e.childFlags,p=e.dom=h(e.type,o=o||(32&c)>0),m=e.children;if(t(s)||""===s||(o?p.setAttribute("class",s):p.className=s),16===d)L(p,m);else if(1!==d){var g=o&&"foreignObject"!==e.type;2===d?(16384&m.flags&&(e.children=m=X(m)),tn(m,p,r,g,null,a,u)):8!==d&&4!==d||un(m,p,r,g,null,a,u)}i(n)||v(n,p,l),i(f)||Ye(e,c,f,p,o,u),Ee(e.ref,p,a)}function un(e,n,t,r,o,l,i){for(var a=0;ap)&&(s=y(a[p-1],!1).nextSibling)}Dn(c,f,a,u,t,r,o,s,e,l,i)}function Cn(e,n,t,o,l){var i=e.ref,a=n.ref,u=n.children;if(Dn(e.childFlags,n.childFlags,e.children,u,i,t,!1,null,e,o,l),n.dom=e.dom,i!==a&&!r(u)){var c=u.dom;g(i,c),p(a,c)}}function wn(e,n,r,o,l,i,a){var u,c=n.dom=e.dom,s=e.props,d=n.props,p=!1,v=!1;if(o=o||(32&l)>0,s!==d){var h=s||f;if((u=d||f)!==f)for(var m in(p=(448&l)>0)&&(v=Te(u)),u){var g=h[m],k=u[m];g!==k&&Qe(m,g,k,c,o,v,e,a)}if(h!==f)for(var b in h)t(u[b])&&!t(h[b])&&Qe(b,h[b],null,c,o,v,e,a)}var y=n.children,C=n.className;e.className!==C&&(t(C)?c.removeAttribute("class"):o?c.setAttribute("class",C):c.className=C),4096&l?bn(c,y):Dn(e.childFlags,n.childFlags,e.children,y,c,r,o&&"foreignObject"!==n.type,null,e,i,a),p&&Ne(l,n,c,u,!1,v);var w=n.ref,$=e.ref;$!==w&&(Be($),Ee(w,c,i))}function $n(e,n,t,r,o,l,i){Oe(e,i),un(n,t,r,o,y(e,!0),l,i),F(e,t,i)}function Dn(e,n,t,r,o,l,i,a,u,c,f){switch(e){case 2:switch(n){case 2:gn(t,r,o,l,i,a,c,f);break;case 1:He(t,o,f);break;case 16:Oe(t,f),L(o,r);break;default:$n(t,r,o,l,i,c,f)}break;case 1:switch(n){case 2:tn(r,o,l,i,a,c,f);break;case 1:break;case 16:L(o,r);break;default:un(r,o,l,i,a,c,f)}break;case 16:switch(n){case 16:kn(t,r,o);break;case 2:Xe(o,t,f),tn(r,o,l,i,a,c,f);break;case 1:Xe(o,t,f);break;default:Xe(o,t,f),un(r,o,l,i,a,c,f)}break;default:switch(n){case 16:Re(t,f),L(o,r);break;case 2:_e(o,u,t,f),tn(r,o,l,i,a,c,f);break;case 1:_e(o,u,t,f);break;default:var s=0|t.length,d=0|r.length;0===s?d>0&&un(r,o,l,i,a,c,f):0===d?_e(o,u,t,f):8===n&&8===e?Mn(t,r,o,l,i,s,d,a,u,c,f):Ln(t,r,o,l,i,s,d,a,c,f)}}}function Fn(e,n,t,r,o){o.push((function(){e.componentDidUpdate(n,t,r)}))}function xn(e,n,t,r,l,i,u,c,f,s){var d=e.state,p=e.props,v=Boolean(e.$N),h=o(e.shouldComponentUpdate);if(v&&(n=W(e,t,n!==d?a(d,n):n)),u||!h||h&&e.shouldComponentUpdate(t,n,l)){!v&&o(e.componentWillUpdate)&&e.componentWillUpdate(t,n,l),e.props=t,e.state=n,e.context=l;var m=null,g=Ze(e,t,l);v&&o(e.getSnapshotBeforeUpdate)&&(m=e.getSnapshotBeforeUpdate(p,d)),gn(e.$LI,g,r,e.$CX,i,c,f,s),e.$LI=g,o(e.componentDidUpdate)&&Fn(e,p,d,m,f)}else e.props=t,e.state=n,e.context=l}function Pn(e,n,t,r,l,u,c,s){var d=n.children=e.children;if(i(d))return;d.$L=c;var p=n.props||f,v=n.ref,h=e.ref,m=d.state;if(!d.$N){if(o(d.componentWillReceiveProps)){if(d.$BR=!0,d.componentWillReceiveProps(p,r),d.$UN)return;d.$BR=!1}i(d.$PS)||(m=a(m,d.$PS),d.$PS=null)}xn(d,m,p,t,r,l,!1,u,c,s),h!==v&&(Be(h),Ee(v,d,c))}function Wn(e,n,r,l,i,a,u,c){var s=!0,d=n.props||f,p=n.ref,v=e.props,h=!t(p),m=e.children;if(h&&o(p.onComponentShouldUpdate)&&(s=p.onComponentShouldUpdate(v,d)),!1!==s){h&&o(p.onComponentWillUpdate)&&p.onComponentWillUpdate(v,d);var g=G(nn(n,l));gn(m,g,r,l,i,a,u,c),n.children=g,h&&o(p.onComponentDidUpdate)&&p.onComponentDidUpdate(v,d)}else n.children=m}function An(e,n){var t=n.children,r=n.dom=e.dom;t!==e.children&&(r.nodeValue=t)}function Ln(e,n,t,r,o,l,i,a,u,c){for(var f,s,d=l>i?i:l,p=0;pi)for(p=d;pp||h>v)break e;m=e[h],g=n[h]}for(m=e[p],g=n[v];m.key===g.key;){if(16384&g.flags&&(n[v]=g=X(g)),gn(m,g,t,r,o,a,c,f),e[p]=g,v--,h>--p||h>v)break e;m=e[p],g=n[v]}}if(h>p){if(h<=v)for(d=(s=v+1)v)for(;h<=p;)He(e[h++],t,f);else Sn(e,n,r,l,i,p,v,h,t,o,a,u,c,f)}function Sn(e,n,t,r,o,l,i,a,u,c,f,s,d,p){var v,h,m=0,g=0,k=a,b=a,C=l-a+1,$=i-a+1,D=new Int32Array($+1),F=C===r,x=!1,W=0,A=0;if(o<4||(C|$)<32)for(g=k;g<=l;++g)if(v=e[g],A<$){for(a=b;a<=i;a++)if(h=n[a],v.key===h.key){if(D[a-b]=g+1,F)for(F=!1;ka?x=!0:W=a,16384&h.flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A;break}!F&&a>i&&He(v,u,p)}else F||He(v,u,p);else{var L={};for(g=b;g<=i;++g)L[n[g].key]=g;for(g=k;g<=l;++g)if(v=e[g],A<$)if(void 0!==(a=L[v.key])){if(F)for(F=!1;g>k;)He(e[k++],u,p);D[a-b]=g+1,W>a?x=!0:W=a,16384&(h=n[a]).flags&&(n[a]=h=X(h)),gn(v,h,u,t,c,f,d,p),++A}else F||He(v,u,p);else F||He(v,u,p)}if(F)_e(u,s,e,p),un(n,u,t,c,f,d,p);else if(x){var M=In(D);for(a=M.length-1,g=$-1;g>=0;g--)0===D[g]?(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)0&&w(p.componentWillMove)}else if(A!==$)for(g=$-1;g>=0;g--)0===D[g]&&(16384&(h=n[W=g+b]).flags&&(n[W]=h=X(h)),tn(h,u,t,c,(m=W+1)Vn&&(Vn=u,Ae=new Int32Array(u),Le=new Int32Array(u));t>1]]0&&(Le[t]=Ae[l-1]),Ae[l]=t)}l=o+1;var c=new Int32Array(l);for(i=Ae[l-1];l-- >0;)c[l]=i,i=Le[i],Ae[l]=0;return c}function Nn(e,n,r,l){var i=[],a=new s,u=n.$V;t(u)?t(e)||(16384&e.flags&&(e=X(e)),tn(e,n,l,!1,null,i,a),n.$V=e,u=e):t(e)?(He(u,n,a),n.$V=null):(16384&e.flags&&(e=X(e)),gn(u,e,n,l,!1,null,i,a),u=n.$V=e),k(i),C(a.componentDidAppear),o(r)&&r(),o(A.renderComplete)&&A.renderComplete(u,n)}function Un(e,n,t,r){void 0===t&&(t=null),void 0===r&&(r=f),Nn(e,n,t,r)}"undefined"!==typeof document&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null),"undefined"!==typeof Promise&&Promise.resolve().then.bind(Promise.resolve()),uibench.init("Inferno","8.0.2");var Tn={onComponentShouldUpdate:function(e,n){return e!==n}};function Bn(e){return U(1,"li","TreeLeaf",e.children,16,null,null,null)}function En(e){for(var n=e.data,t=n.children.length,r=new Array(t),o=0;o (https://terinstock.com/)", @@ -28,11 +28,11 @@ "directory": "packages/inferno-hyperscript" }, "dependencies": { - "inferno": "8.0.1" + "inferno": "8.0.2" }, "devDependencies": { - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1" + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-mobx/package.json b/packages/inferno-mobx/package.json index 9f3e26ab0..9ca3ae42c 100644 --- a/packages/inferno-mobx/package.json +++ b/packages/inferno-mobx/package.json @@ -1,6 +1,6 @@ { "name": "inferno-mobx", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Official Inferno bindings for Mobx", "author": { @@ -40,11 +40,11 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.1", - "inferno-create-class": "8.0.1", - "inferno-create-element": "8.0.1", - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1" + "inferno": "8.0.2", + "inferno-create-class": "8.0.2", + "inferno-create-element": "8.0.2", + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2" }, "devDependencies": { "mobx": "*" diff --git a/packages/inferno-redux/package.json b/packages/inferno-redux/package.json index e91fde7df..ce66ef416 100644 --- a/packages/inferno-redux/package.json +++ b/packages/inferno-redux/package.json @@ -1,6 +1,6 @@ { "name": "inferno-redux", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Official Inferno bindings for Redux", "author": { @@ -40,12 +40,12 @@ }, "dependencies": { "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.1" + "inferno": "8.0.2" }, "devDependencies": { - "inferno-create-class": "8.0.1", - "inferno-create-element": "8.0.1", - "inferno-shared": "8.0.1", + "inferno-create-class": "8.0.2", + "inferno-create-element": "8.0.2", + "inferno-shared": "8.0.2", "redux": "^4" }, "rollup": { diff --git a/packages/inferno-router/package.json b/packages/inferno-router/package.json index 81503407c..74c31145a 100644 --- a/packages/inferno-router/package.json +++ b/packages/inferno-router/package.json @@ -1,6 +1,6 @@ { "name": "inferno-router", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Provides routing functionality for Inferno", "author": { @@ -42,11 +42,11 @@ "dependencies": { "history": "^5.3.0", "hoist-non-inferno-statics": "^1.1.3", - "inferno": "8.0.1", + "inferno": "8.0.2", "path-to-regexp-es6": "1.7.0" }, "devDependencies": { - "inferno-vnode-flags": "8.0.1", + "inferno-vnode-flags": "8.0.2", "mobx": "*" }, "rollup": { diff --git a/packages/inferno-server/package.json b/packages/inferno-server/package.json index 5156bac72..0501fa8fa 100644 --- a/packages/inferno-server/package.json +++ b/packages/inferno-server/package.json @@ -1,6 +1,6 @@ { "name": "inferno-server", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Provides methods to render HTML strings from Inferno elements", "author": { @@ -45,15 +45,15 @@ "node": ">=8" }, "devDependencies": { - "inferno-create-class": "8.0.1", - "inferno-create-element": "8.0.1", - "inferno-hydrate": "8.0.1", - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1", + "inferno-create-class": "8.0.2", + "inferno-create-element": "8.0.2", + "inferno-hydrate": "8.0.2", + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2", "mobx": "*" }, "dependencies": { - "inferno": "8.0.1" + "inferno": "8.0.2" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-shared/package.json b/packages/inferno-shared/package.json index fe7b98ed5..027813189 100644 --- a/packages/inferno-shared/package.json +++ b/packages/inferno-shared/package.json @@ -1,6 +1,6 @@ { "name": "inferno-shared", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Helpers functions for Inferno", "author": { diff --git a/packages/inferno-test-utils/package.json b/packages/inferno-test-utils/package.json index 659c59c7b..2f40d1e7b 100644 --- a/packages/inferno-test-utils/package.json +++ b/packages/inferno-test-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-test-utils", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Suite of utilities for testing Inferno applications", "author": { @@ -21,11 +21,11 @@ "utils" ], "devDependencies": { - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1" + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2" }, "dependencies": { - "inferno": "8.0.1" + "inferno": "8.0.2" }, "rollup": { "bundledDependencies": [ diff --git a/packages/inferno-utils/package.json b/packages/inferno-utils/package.json index 35e2f87da..218cdffde 100644 --- a/packages/inferno-utils/package.json +++ b/packages/inferno-utils/package.json @@ -1,6 +1,6 @@ { "name": "inferno-utils", - "version": "8.0.1", + "version": "8.0.2", "description": "Meta test utilities which are not for userland", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" @@ -11,8 +11,8 @@ "directory": "packages/inferno-utils" }, "devDependencies": { - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1" + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2" }, "keywords": [], "author": "", diff --git a/packages/inferno-vnode-flags/package.json b/packages/inferno-vnode-flags/package.json index f62f4fcff..edd4471b6 100644 --- a/packages/inferno-vnode-flags/package.json +++ b/packages/inferno-vnode-flags/package.json @@ -1,6 +1,6 @@ { "name": "inferno-vnode-flags", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "Provides an enum of all possible VNode Flags used when calling Inferno.createVNode", "author": { diff --git a/packages/inferno/package.json b/packages/inferno/package.json index 7fa6e46e5..02e220854 100644 --- a/packages/inferno/package.json +++ b/packages/inferno/package.json @@ -1,6 +1,6 @@ { "name": "inferno", - "version": "8.0.1", + "version": "8.0.2", "license": "MIT", "description": "An extremely fast, React-like JavaScript library for building modern user interfaces", "author": { @@ -57,11 +57,11 @@ "directory": "packages/inferno" }, "devDependencies": { - "inferno-utils": "8.0.1" + "inferno-utils": "8.0.2" }, "dependencies": { - "inferno-shared": "8.0.1", - "inferno-vnode-flags": "8.0.1", + "inferno-shared": "8.0.2", + "inferno-vnode-flags": "8.0.2", "opencollective-postinstall": "^2.0.3" } }