crf-workflow-designer
Version:
a workflow designer based on logicFlow and ElementPlus
15 lines (13 loc) • 1.01 MB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue"),require("element-plus")):"function"===typeof define&&define.amd?define(["vue","element-plus"],e):"object"===typeof exports?exports["SnakerflowDesigner"]=e(require("vue"),require("element-plus")):t["SnakerflowDesigner"]=e(t["Vue"],t["element-plus"])})("undefined"!==typeof self?self:this,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="2b1f")}({"00e7":function(t,e,n){"use strict";var r=n("64b0"),o=n("28a8"),i=n("4ca6"),a=n("a08e"),u=n("9343"),c=n("1dcd"),l=r.Symbol,s=o("wks"),f=c?l["for"]||l:l&&l.withoutSetter||a;t.exports=function(t){return i(s,t)||(s[t]=u&&i(l,t)?l[t]:f("Symbol."+t)),s[t]}},"0152":function(t,e,n){var r=n("6c35");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("5925").default;o("a8227930",r,!0,{sourceMap:!1,shadowMode:!1})},"060d":function(t,e,n){"use strict";var r=n("5253"),o=n("4d55");t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},"064e":function(t,e,n){"use strict";var r=n("295b"),o=n("1987"),i=n("8c46"),a=n("d883"),u=n("0fba"),c=n("740f"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),s=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=l||!s();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),n=i(e),r=arguments.length;u(n+r);for(var c=0;c<r;c++)e[n]=arguments[c],n++;return a(e,n),n}})},"06a9":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=221)}([function(t,e,n){"use strict";n.d(e,"a",(function(){return m})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return V})),n.d(e,"d",(function(){return U})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return y})),n.d(e,"h",(function(){return z})),n.d(e,"i",(function(){return o})),n.d(e,"j",(function(){return B})),n.d(e,"k",(function(){return A}));var r,o,i,a,u,c,l,s={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function y(t,e,n){var o,i,a,u={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:u[a]=e[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===u[a]&&(u[a]=t.defaultProps[a]);return v(t,u,o,i,null)}function v(t,e,n,r,a){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(u),u}function g(){return{current:null}}function b(t){return t.children}function m(t,e){this.props=t,this.context=e}function O(t,e){if(null==e)return t.__?O(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?O(t):null}function w(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return w(t)}}function x(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!_.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||u)(_)}function _(){for(var t;_.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=d({},o)).__v=o.__v+1,T(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?O(o):i,o.__h),C(n,o),o.__e!=i&&w(o)))}))}function j(t,e,n,r,o,i,a,u,c,l){var p,d,h,y,g,m,w,x=r&&r.__k||f,_=x.length;for(n.__k=[],p=0;p<e.length;p++)if(null!=(y=n.__k[p]=null==(y=e[p])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?v(null,y,null,null,y):Array.isArray(y)?v(b,{children:y},null,null,null):y.__b>0?v(y.type,y.props,y.key,null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(h=x[p])||h&&y.key==h.key&&y.type===h.type)x[p]=void 0;else for(d=0;d<_;d++){if((h=x[d])&&y.key==h.key&&y.type===h.type){x[d]=void 0;break}h=null}T(t,y,h=h||s,o,i,a,u,c,l),g=y.__e,(d=y.ref)&&h.ref!=d&&(w||(w=[]),h.ref&&w.push(h.ref,null,y),w.push(d,y.__c||g,y)),null!=g?(null==m&&(m=g),"function"==typeof y.type&&y.__k===h.__k?y.__d=c=E(y,c,t):c=S(t,y,h,x,g,c),"function"==typeof n.type&&(n.__d=c)):c&&h.__e==c&&c.parentNode!=t&&(c=O(h))}for(n.__e=m,p=_;p--;)null!=x[p]&&("function"==typeof n.type&&null!=x[p].__e&&x[p].__e==n.__d&&(n.__d=O(r,p+1)),R(x[p],x[p]));if(w)for(p=0;p<w.length;p++)I(w[p],w[++p],w[++p])}function E(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?E(r,e,n):S(n,r,r,o,r.__e,e));return e}function A(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){A(t,e)})):e.push(t)),e}function S(t,e,n,r,o,i){var a,u,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function N(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function M(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||N(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||N(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?P:k,i):t.removeEventListener(e,i?P:k,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function k(t){this.l[t.type+!1](o.event?o.event(t):t)}function P(t){this.l[t.type+!0](o.event?o.event(t):t)}function T(t,e,n,r,i,a,u,c,l){var s,f,p,h,y,v,g,O,w,x,_,E=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof E){if(O=e.props,w=(s=E.contextType)&&r[s.__c],x=s?w?w.props.value:s.__:r,n.__c?g=(f=e.__c=n.__c).__=f.__E:("prototype"in E&&E.prototype.render?e.__c=f=new E(O,x):(e.__c=f=new m(O,x),f.constructor=E,f.render=L),w&&w.sub(f),f.props=O,f.state||(f.state={}),f.context=x,f.__n=r,p=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=E.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=d({},f.__s)),d(f.__s,E.getDerivedStateFromProps(O,f.__s))),h=f.props,y=f.state,p)null==E.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==E.getDerivedStateFromProps&&O!==h&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(O,x),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(O,f.__s,x)||e.__v===n.__v){f.props=O,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(O,f.__s,x),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(h,y,v)}))}f.context=x,f.props=O,f.state=f.__s,(s=o.__r)&&s(e),f.__d=!1,f.__v=e,f.__P=t,s=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=d(d({},r),f.getChildContext())),p||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(h,y)),_=null!=s&&s.type===b&&null==s.key?s.props.children:s,j(t,Array.isArray(_)?_:[_],e,n,r,i,a,u,c,l),f.base=e.__e,e.__h=null,f.__h.length&&u.push(f),g&&(f.__E=f.__=null),f.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,r,i,a,u,l);(s=o.diffed)&&s(e)}catch(t){e.__v=null,(l||null!=a)&&(e.__e=c,e.__h=!!l,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function C(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function D(t,e,n,o,i,a,u,c){var l,f,p,d=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(i=!0),null!=a)for(;g<a.length;g++)if((l=a[g])&&"setAttribute"in l==!!v&&(v?l.localName===v:3===l.nodeType)){t=l,a[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),a=null,c=!1}if(null===v)d===y||c&&t.data===y||(t.data=y);else{if(a=a&&r.call(t.childNodes),f=(d=n.props||s).dangerouslySetInnerHTML,p=y.dangerouslySetInnerHTML,!c){if(null!=a)for(d={},g=0;g<t.attributes.length;g++)d[t.attributes[g].name]=t.attributes[g].value;(p||f)&&(p&&(f&&p.__html==f.__html||p.__html===t.innerHTML)||(t.innerHTML=p&&p.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||M(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||M(t,i,e[i],n[i],r)}(t,y,d,i,c),p)e.__k=[];else if(g=e.props.children,j(t,Array.isArray(g)?g:[g],e,n,o,i&&"foreignObject"!==v,a,u,a?a[0]:n.__k&&O(n,0),c),null!=a)for(g=a.length;g--;)null!=a[g]&&h(a[g]);c||("value"in y&&void 0!==(g=y.value)&&(g!==d.value||g!==t.value||"progress"===v&&!g)&&M(t,"value",g,d.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&M(t,"checked",g,d.checked,!1))}return t}function I(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function R(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||I(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&R(r[i],e,"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__e=t.__d=void 0}function L(t,e,n){return this.constructor(t,n)}function B(t,e,n){var i,a,u;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,u=[],T(e,t=(!i&&n||e).__k=y(b,null,[t]),a||s,s,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,u,!i&&n?n:a?a.__e:e.firstChild,i),C(u,t)}function z(t,e){B(t,e,z)}function V(t,e,n){var o,i,a,u=d({},t.props);for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:u[a]=e[a];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),v(t.type,u,o||t.key,i||t.ref,null)}function U(t,e){var n={__c:e="__cC"+l++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(x)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,m.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),x(this))},m.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),x(this))},m.prototype.render=b,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,l=0},function(t,e,n){"use strict";(function(t,r){n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return on})),n.d(e,"c",(function(){return Wt})),n.d(e,"d",(function(){return _t})),n.d(e,"e",(function(){return ht})),n.d(e,"f",(function(){return dt})),n.d(e,"g",(function(){return xt})),n.d(e,"h",(function(){return bn})),n.d(e,"i",(function(){return at})),n.d(e,"j",(function(){return wt})),n.d(e,"k",(function(){return te})),n.d(e,"l",(function(){return oe})),n.d(e,"m",(function(){return nt})),n.d(e,"n",(function(){return se})),n.d(e,"o",(function(){return j})),n.d(e,"p",(function(){return Se})),n.d(e,"q",(function(){return fe})),n.d(e,"r",(function(){return be})),n.d(e,"s",(function(){return gn})),n.d(e,"t",(function(){return he})),n.d(e,"u",(function(){return ne})),n.d(e,"v",(function(){return we})),n.d(e,"w",(function(){return xe})),n.d(e,"x",(function(){return je})),n.d(e,"y",(function(){return en})),n.d(e,"z",(function(){return an})),n.d(e,"A",(function(){return vn})),n.d(e,"B",(function(){return Ee})),n.d(e,"C",(function(){return Z})),n.d(e,"D",(function(){return Me})),n.d(e,"E",(function(){return ce})),n.d(e,"F",(function(){return ue})),n.d(e,"G",(function(){return ee})),n.d(e,"H",(function(){return Zt})),n.d(e,"I",(function(){return Ce})),n.d(e,"J",(function(){return Ie})),n.d(e,"K",(function(){return st})),n.d(e,"L",(function(){return Ae})),n.d(e,"M",(function(){return Re}));var o=[];Object.freeze(o);var i={};function a(){return++It.mobxGuid}function u(t){throw c(!1,t),"X"}function c(t,e){if(!t)throw new Error("[mobx] "+(e||"An invariant failed, however the error is obfuscated because this is a production build."))}function l(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}Object.freeze(i);var s=function(){};function f(t){return null!==t&&"object"==typeof t}function p(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function d(t,e,n){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:n})}function h(t,e){var n="isMobX"+t;return e.prototype[n]=!0,function(t){return f(t)&&!0===t[n]}}function y(t){return t instanceof Map}function v(t){return t instanceof Set}function g(t){var e=new Set;for(var n in t)e.add(n);return Object.getOwnPropertySymbols(t).forEach((function(n){Object.getOwnPropertyDescriptor(t,n).enumerable&&e.add(n)})),Array.from(e)}function b(t){return t&&t.toString?t.toString():new String(t).toString()}function m(t){return null===t?null:"object"==typeof t?""+t:t}var O="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,w=Symbol("mobx administration"),x=function(){function t(t){void 0===t&&(t="Atom@"+a()),this.name=t,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=q.NOT_TRACKING}return t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.reportObserved=function(){return Ut(this)},t.prototype.reportChanged=function(){zt(),function(t){t.lowestObserverState!==q.STALE&&(t.lowestObserverState=q.STALE,t.observers.forEach((function(e){e.dependenciesState===q.UP_TO_DATE&&(e.isTracing!==$.NONE&&Ft(e,t),e.onBecomeStale()),e.dependenciesState=q.STALE})))}(this),Vt()},t.prototype.toString=function(){return this.name},t}(),_=h("Atom",x);function j(t,e,n){void 0===e&&(e=s),void 0===n&&(n=s);var r,o=new x(t);return e!==s&&le("onBecomeObserved",o,e,r),n!==s&&ce(o,n),o}var E={identity:function(t,e){return t===e},structural:function(t,e){return On(t,e)},default:function(t,e){return Object.is(t,e)},shallow:function(t,e){return On(t,e,1)}},A=function(t,e){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},A(t,e)
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */},S=function(){return S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},S.apply(this,arguments)};function N(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function M(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function k(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(M(arguments[e]));return t}var P=Symbol("mobx did run lazy initializers"),T=Symbol("mobx pending decorators"),C={},D={};function I(t,e){var n=e?C:D;return n[t]||(n[t]={configurable:!0,enumerable:e,get:function(){return R(this),this[t]},set:function(e){R(this),this[t]=e}})}function R(t){var e,n;if(!0!==t[P]){var r=t[T];if(r){d(t,P,!0);var o=k(Object.getOwnPropertySymbols(r),Object.keys(r));try{for(var i=N(o),a=i.next();!a.done;a=i.next()){var u=r[a.value];u.propertyCreator(t,u.prop,u.descriptor,u.decoratorTarget,u.decoratorArguments)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}}}function L(t,e){return function(){var n,r=function(r,o,i,a){if(!0===a)return e(r,o,i,r,n),null;if(!Object.prototype.hasOwnProperty.call(r,T)){var u=r[T];d(r,T,S({},u))}return r[T][o]={prop:o,propertyCreator:e,descriptor:i,decoratorTarget:r,decoratorArguments:n},I(o,t)};return B(arguments)?(n=o,r.apply(null,arguments)):(n=Array.prototype.slice.call(arguments),r)}}function B(t){return(2===t.length||3===t.length)&&("string"==typeof t[1]||"symbol"==typeof t[1])||4===t.length&&!0===t[3]}function z(t,e,n){return je(t)?t:Array.isArray(t)?Z.array(t,{name:n}):p(t)?Z.object(t,void 0,{name:n}):y(t)?Z.map(t,{name:n}):v(t)?Z.set(t,{name:n}):t}function V(t){return t}function U(e){c(e);var n=L(!0,(function(t,n,r,o,i){var a=r?r.initializer?r.initializer.call(t):r.value:void 0;fn(t).addObservableProp(n,a,e)})),r=(void 0!==t&&t.env,n);return r.enhancer=e,r}var F={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function Y(t){return null==t?F:"string"==typeof t?{name:t,deep:!0,proxy:!0}:t}Object.freeze(F);var W=U(z),G=U((function(t,e,n){return null==t||vn(t)||en(t)||an(t)||ln(t)?t:Array.isArray(t)?Z.array(t,{name:n,deep:!1}):p(t)?Z.object(t,void 0,{name:n,deep:!1}):y(t)?Z.map(t,{name:n,deep:!1}):v(t)?Z.set(t,{name:n,deep:!1}):u(!1)})),H=U(V),Q=U((function(t,e,n){return On(t,e)?e:t}));function X(t){return t.defaultDecorator?t.defaultDecorator.enhancer:!1===t.deep?V:z}var J={box:function(t,e){arguments.length>2&&K("box");var n=Y(e);return new At(t,X(n),n.name,!0,n.equals)},array:function(t,e){arguments.length>2&&K("array");var n=Y(e);return Ze(t,X(n),n.name)},map:function(t,e){arguments.length>2&&K("map");var n=Y(e);return new on(t,X(n),n.name)},set:function(t,e){arguments.length>2&&K("set");var n=Y(e);return new cn(t,X(n),n.name)},object:function(t,e,n){"string"==typeof arguments[1]&&K("object");var r=Y(n);if(!1===r.proxy)return fe({},t,e,r);var o=pe(r),i=fe({},void 0,void 0,r),a=Fe(i);return de(a,t,e,o),a},ref:H,shallow:G,deep:W,struct:Q},Z=function(t,e,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return W.apply(null,arguments);if(je(t))return t;var r=p(t)?Z.object(t,e,n):Array.isArray(t)?Z.array(t,e):y(t)?Z.map(t,e):v(t)?Z.set(t,e):t;if(r!==t)return r;u(!1)};function K(t){u("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(J).forEach((function(t){return Z[t]=J[t]}));var q,$,tt=L(!1,(function(t,e,n,r,o){var i=n.get,a=n.set,u=o[0]||{};fn(t).addComputedProp(t,e,S({get:i,set:a,context:t},u))})),et=tt({equals:E.structural}),nt=function(t,e,n){if("string"==typeof e)return tt.apply(null,arguments);if(null!==t&&"object"==typeof t&&1===arguments.length)return tt.apply(null,arguments);var r="object"==typeof e?e:{};return r.get=t,r.set="function"==typeof e?e:r.set,r.name=r.name||t.name||"",new Nt(r)};nt.struct=et,function(t){t[t.NOT_TRACKING=-1]="NOT_TRACKING",t[t.UP_TO_DATE=0]="UP_TO_DATE",t[t.POSSIBLY_STALE=1]="POSSIBLY_STALE",t[t.STALE=2]="STALE"}(q||(q={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}($||($={}));var rt=function(t){this.cause=t};function ot(t){return t instanceof rt}function it(t){switch(t.dependenciesState){case q.UP_TO_DATE:return!1;case q.NOT_TRACKING:case q.STALE:return!0;case q.POSSIBLY_STALE:for(var e=dt(!0),n=ft(),r=t.observing,o=r.length,i=0;i<o;i++){var a=r[i];if(Mt(a)){if(It.disableErrorBoundaries)a.get();else try{a.get()}catch(t){return pt(n),ht(e),!0}if(t.dependenciesState===q.STALE)return pt(n),ht(e),!0}}return yt(t),pt(n),ht(e),!1}}function at(){return null!==It.trackingDerivation}function ut(t){var e=t.observers.size>0;It.computationDepth>0&&e&&u(!1),It.allowStateChanges||!e&&"strict"!==It.enforceActions||u(!1)}function ct(t,e,n){var r=dt(!0);yt(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++It.runId;var o,i=It.trackingDerivation;if(It.trackingDerivation=t,!0===It.disableErrorBoundaries)o=e.call(n);else try{o=e.call(n)}catch(t){o=new rt(t)}return It.trackingDerivation=i,function(t){for(var e=t.observing,n=t.observing=t.newObserving,r=q.UP_TO_DATE,o=0,i=t.unboundDepsCount,a=0;a<i;a++)0===(u=n[a]).diffValue&&(u.diffValue=1,o!==a&&(n[o]=u),o++),u.dependenciesState>r&&(r=u.dependenciesState);for(n.length=o,t.newObserving=null,i=e.length;i--;)0===(u=e[i]).diffValue&&Lt(u,t),u.diffValue=0;for(;o--;){var u;1===(u=n[o]).diffValue&&(u.diffValue=0,Rt(u,t))}r!==q.UP_TO_DATE&&(t.dependenciesState=r,t.onBecomeStale())}(t),ht(r),o}function lt(t){var e=t.observing;t.observing=[];for(var n=e.length;n--;)Lt(e[n],t);t.dependenciesState=q.NOT_TRACKING}function st(t){var e=ft();try{return t()}finally{pt(e)}}function ft(){var t=It.trackingDerivation;return It.trackingDerivation=null,t}function pt(t){It.trackingDerivation=t}function dt(t){var e=It.allowStateReads;return It.allowStateReads=t,e}function ht(t){It.allowStateReads=t}function yt(t){if(t.dependenciesState!==q.UP_TO_DATE){t.dependenciesState=q.UP_TO_DATE;for(var e=t.observing,n=e.length;n--;)e[n].lowestObserverState=q.UP_TO_DATE}}var vt=0,gt=1,bt=Object.getOwnPropertyDescriptor((function(){}),"name");function mt(t,e,n){var r=function(){return Ot(t,e,n||this,arguments)};return r.isMobxAction=!0,r}function Ot(t,e,n,r){var o=wt(t,n,r);try{return e.apply(n,r)}catch(t){throw o.error=t,t}finally{xt(o)}}function wt(t,e,n){var r=0,o=ft();zt();var i={prevDerivation:o,prevAllowStateChanges:jt(!0),prevAllowStateReads:dt(!0),notifySpy:!1,startTime:r,actionId:gt++,parentActionId:vt};return vt=i.actionId,i}function xt(t){vt!==t.actionId&&u("invalid action stack. did you forget to finish an action?"),vt=t.parentActionId,void 0!==t.error&&(It.suppressReactionErrors=!0),Et(t.prevAllowStateChanges),ht(t.prevAllowStateReads),Vt(),pt(t.prevDerivation),t.notifySpy,It.suppressReactionErrors=!1}function _t(t,e){var n,r=jt(t);try{n=e()}finally{Et(r)}return n}function jt(t){var e=It.allowStateChanges;return It.allowStateChanges=t,e}function Et(t){It.allowStateChanges=t}bt&&bt.configurable;var At=function(t){function e(e,n,r,o,i){void 0===r&&(r="ObservableValue@"+a()),void 0===o&&(o=!0),void 0===i&&(i=E.default);var u=t.call(this,r)||this;return u.enhancer=n,u.name=r,u.equals=i,u.hasUnreportedChange=!1,u.value=n(e,void 0,r),u}return function(t,e){function n(){this.constructor=t}A(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value,(t=this.prepareNewValue(t))!==It.UNCHANGED&&this.setNewValue(t)},e.prototype.prepareNewValue=function(t){if(ut(this),Ye(this)){var e=Ge(this,{object:this,type:"update",newValue:t});if(!e)return It.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?It.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),He(this)&&Xe(this,{type:"update",object:this,newValue:t,oldValue:e})},e.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},e.prototype.intercept=function(t){return We(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),Qe(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return m(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(x),St=h("ObservableValue",At),Nt=function(){function t(t){this.dependenciesState=q.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=q.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+a(),this.value=new rt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=$.NONE,c(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+a(),t.set&&(this.setter=mt(this.name+"-setter",t.set)),this.equals=t.equals||(t.compareStructural||t.struct?E.structural:E.default),this.scope=t.context,this.requiresReaction=!!t.requiresReaction,this.keepAlive=!!t.keepAlive}return t.prototype.onBecomeStale=function(){!function(t){t.lowestObserverState===q.UP_TO_DATE&&(t.lowestObserverState=q.POSSIBLY_STALE,t.observers.forEach((function(e){e.dependenciesState===q.UP_TO_DATE&&(e.dependenciesState=q.POSSIBLY_STALE,e.isTracing!==$.NONE&&Ft(e,t),e.onBecomeStale())})))}(this)},t.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach((function(t){return t()}))},t.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach((function(t){return t()}))},t.prototype.get=function(){this.isComputing&&u("Cycle detected in computation "+this.name+": "+this.derivation),0!==It.inBatch||0!==this.observers.size||this.keepAlive?(Ut(this),it(this)&&this.trackAndCompute()&&function(t){t.lowestObserverState!==q.STALE&&(t.lowestObserverState=q.STALE,t.observers.forEach((function(e){e.dependenciesState===q.POSSIBLY_STALE?e.dependenciesState=q.STALE:e.dependenciesState===q.UP_TO_DATE&&(t.lowestObserverState=q.UP_TO_DATE)})))}(this)):it(this)&&(this.warnAboutUntrackedRead(),zt(),this.value=this.computeValue(!1),Vt());var t=this.value;if(ot(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(ot(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){c(!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,t)}finally{this.isRunningSetter=!1}}else c(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===q.NOT_TRACKING,n=this.computeValue(!0),r=e||ot(t)||ot(n)||!this.equals(t,n);return r&&(this.value=n),r},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,It.computationDepth++,t)e=ct(this,this.derivation,this.scope);else if(!0===It.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new rt(t)}return It.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(lt(this),this.value=void 0)},t.prototype.observe=function(t,e){var n=this,r=!0,o=void 0;return oe((function(){var i=n.get();if(!r||e){var a=ft();t({type:"update",object:n,newValue:i,oldValue:o}),pt(a)}r=!1,o=i}))},t.prototype.warnAboutUntrackedRead=function(){},t.prototype.toJSON=function(){return this.get()},t.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},t.prototype.valueOf=function(){return m(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(),Mt=h("ComputedValue",Nt),kt=function(){this.version=5,this.UNCHANGED={},this.trackingDerivation=null,this.computationDepth=0,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!0,this.allowStateReads=!0,this.enforceActions=!1,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.computedConfigurable=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1},Pt={};function Tt(){return"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:Pt}var Ct=!0,Dt=!1,It=function(){var t=Tt();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Ct=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new kt).version&&(Ct=!1),Ct?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new kt):(setTimeout((function(){Dt||u("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new kt)}();function Rt(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function Lt(t,e){t.observers.delete(e),0===t.observers.size&&Bt(t)}function Bt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,It.pendingUnobservations.push(t))}function zt(){It.inBatch++}function Vt(){if(0==--It.inBatch){Ht();for(var t=It.pendingUnobservations,e=0;e<t.length;e++){var n=t[e];n.isPendingUnobservation=!1,0===n.observers.size&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBecomeUnobserved()),n instanceof Nt&&n.suspend())}It.pendingUnobservations=[]}}function Ut(t){var e=It.trackingDerivation;return null!==e?(e.runId!==t.lastAccessedBy&&(t.lastAccessedBy=e.runId,e.newObserving[e.unboundDepsCount++]=t,t.isBeingObserved||(t.isBeingObserved=!0,t.onBecomeObserved())),!0):(0===t.observers.size&&It.inBatch>0&&Bt(t),!1)}function Ft(t,e){if(t.isTracing===$.BREAK){var n=[];Yt(he(t),n,1),new Function("debugger;\n/*\nTracing '"+t.name+"'\n\nYou are entering this break point because derivation '"+t.name+"' is being traced and '"+e.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"+(t instanceof Nt?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}function Yt(t,e,n){e.length>=1e3?e.push("(and many more)"):(e.push(""+new Array(n).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return Yt(t,e,n+1)})))}var Wt=function(){function t(t,e,n,r){void 0===t&&(t="Reaction@"+a()),void 0===r&&(r=!1),this.name=t,this.onInvalidate=e,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=q.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+a(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=$.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,It.pendingReactions.push(this),Ht())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(zt(),this._isScheduled=!1,it(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}Vt()}},t.prototype.track=function(t){if(!this.isDisposed){zt(),this._isRunning=!0;var e=ct(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&<(this),ot(e)&&this.reportExceptionInDerivation(e.cause),Vt()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(It.disableErrorBoundaries)throw t;It.suppressReactionErrors,It.globalReactionErrorHandlers.forEach((function(n){return n(t,e)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(zt(),lt(this),Vt()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[w]=this,t},t.prototype.toString=function(){return"Reaction["+this.name+"]"},t.prototype.trace=function(t){void 0===t&&(t=!1),function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!1;"boolean"==typeof t[t.length-1]&&(n=t.pop());var r=De(t);if(!r)return u(!1);r.isTracing,$.NONE,r.isTracing=n?$.BREAK:$.LOG}(this,t)},t}(),Gt=function(t){return t()};function Ht(){It.inBatch>0||It.isRunningReactions||Gt(Qt)}function Qt(){It.isRunningReactions=!0;for(var t=It.pendingReactions,e=0;t.length>0;){100==++e&&t.splice(0);for(var n=t.splice(0),r=0,o=n.length;r<o;r++)n[r].runReaction()}It.isRunningReactions=!1}var Xt=h("Reaction",Wt);function Jt(t){var e=Gt;Gt=function(n){return t((function(){return e(n)}))}}function Zt(t){return function(){}}function Kt(){u(!1)}function qt(t){return function(e,n,r){if(r){if(r.value)return{value:mt(t,r.value),enumerable:!1,configurable:!0,writable:!0};var o=r.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return mt(t,o.call(this))}}}return $t(t).apply(this,arguments)}}function $t(t){return function(e,n,r){Object.defineProperty(e,n,{configurable:!0,enumerable:!1,get:function(){},set:function(e){d(this,n,te(t,e))}})}}var te=function(t,e,n,r){return 1===arguments.length&&"function"==typeof t?mt(t.name||"<unnamed action>",t):2===arguments.length&&"function"==typeof e?mt(t,e):1===arguments.length&&"string"==typeof t?qt(t):!0!==r?qt(e).apply(null,arguments):void d(t,e,mt(t.name||e,n.value,this))};function ee(t,e){return Ot("string"==typeof t?t:t.name||"<unnamed action>","function"==typeof t?t:e,this,void 0)}function ne(t){return"function"==typeof t&&!0===t.isMobxAction}function re(t,e,n){d(t,e,mt(e,n.bind(t)))}function oe(t,e){void 0===e&&(e=i);var n,r=e&&e.name||t.name||"Autorun@"+a();if(e.scheduler||e.delay){var o=ae(e),u=!1;n=new Wt(r,(function(){u||(u=!0,o((function(){u=!1,n.isDisposed||n.track(c)})))}),e.onError,e.requiresObservable)}else n=new Wt(r,(function(){this.track(c)}),e.onError,e.requiresObservable);function c(){t(n)}return n.schedule(),n.getDisposer()}te.bound=function(t,e,n,r){return!0===r?(re(t,e,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return re(this,e,n.value||n.initializer.call(this)),this[e]},set:Kt}:{enumerable:!1,configurable:!0,set:function(t){re(this,e,t)},get:function(){}}};var ie=function(t){return t()};function ae(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:ie}function ue(t,e,n){void 0===n&&(n=i);var r,o,u,c=n.name||"Reaction@"+a(),l=te(c,n.onError?(r=n.onError,o=e,function(){try{return o.apply(this,arguments)}catch(t){r.call(this,t)}}):e),s=!n.scheduler&&!n.delay,f=ae(n),p=!0,d=!1,h=n.compareStructural?E.structural:n.equals||E.default,y=new Wt(c,(function(){p||s?v():d||(d=!0,f(v))}),n.onError,n.requiresObservable);function v(){if(d=!1,!y.isDisposed){var e=!1;y.track((function(){var n=t(y);e=p||!h(u,n),u=n})),p&&n.fireImmediately&&l(u,y),p||!0!==e||l(u,y),p&&(p=!1)}}return y.schedule(),y.getDisposer()}function ce(t,e,n){return le("onBecomeUnobserved",t,e,n)}function le(t,e,n,r){var o="function"==typeof r?gn(e,n):gn(e),i="function"==typeof r?r:n,a=t+"Listeners";return o[a]?o[a].add(i):o[a]=new Set([i]),"function"!=typeof o[t]?u(!1):function(){var t=o[a];t&&(t.delete(i),0===t.size&&delete o[a])}}function se(t){var e=t.enforceActions,n=t.computedRequiresReaction,r=t.computedConfigurable,o=t.disableErrorBoundaries,i=t.reactionScheduler,a=t.reactionRequiresObservable,c=t.observableRequiresReaction;if(!0===t.isolateGlobalState&&((It.pendingReactions.length||It.inBatch||It.isRunningReactions)&&u("isolateGlobalState should be called before MobX is running any reactions"),Dt=!0,Ct&&(0==--Tt().__mobxInstanceCount&&(Tt().__mobxGlobals=void 0),It=new kt)),void 0!==e){var l=void 0;switch(e){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:u("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}It.enforceActions=l,It.allowStateChanges=!0!==l&&"strict"!==l}void 0!==n&&(It.computedRequiresReaction=!!n),void 0!==a&&(It.reactionRequiresObservable=!!a),void 0!==c&&(It.observableRequiresReaction=!!c,It.allowStateReads=!It.observableRequiresReaction),void 0!==r&&(It.computedConfigurable=!!r),void 0!==o&&(It.disableErrorBoundaries=!!o),i&&Jt(i)}function fe(t,e,n,r){var o=pe(r=Y(r));return R(t),fn(t,r.name,o.enhancer),e&&de(t,e,n,o),t}function pe(t){return t.defaultDecorator||(!1===t.deep?H:W)}function de(t,e,n,r){var o,i;zt();try{var a=O(e);try{for(var u=N(a),c=u.next();!c.done;c=u.next()){var l=c.value,s=Object.getOwnPropertyDescriptor(e,l),f=(n&&l in n?n[l]:s.get?tt:r)(t,l,s,!0);f&&Object.defineProperty(t,l,f)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}}finally{Vt()}}function he(t,e){return ye(gn(t,e))}function ye(t){var e,n,r={name:t.name};return t.observing&&t.observing.length>0&&(r.dependencies=(e=t.observing,n=[],e.forEach((function(t){-1===n.indexOf(t)&&n.push(t)})),n).map(ye)),r}var ve=0;function ge(){this.message="FLOW_CANCELLED"}function be(t){1!==arguments.length&&u("Flow expects 1 argument and cannot be used as decorator");var e=t.name||"<unnamed flow>";return function(){var n,r=this,o=arguments,i=++ve,a=te(e+" - runid: "+i+" - init",t).apply(r,o),u=void 0,c=new Promise((function(t,r){var o=0;function c(t){var n;u=void 0;try{n=te(e+" - runid: "+i+" - yield "+o++,a.next).call(a,t)}catch(t){return r(t)}s(n)}function l(t){var n;u=void 0;try{n=te(e+" - runid: "+i+" - yield "+o++,a.throw).call(a,t)}catch(t){return r(t)}s(n)}function s(e){if(!e||"function"!=typeof e.then)return e.done?t(e.value):(u=Promise.resolve(e.value)).then(c,l);e.then(s,r)}n=r,c(void 0)}));return c.cancel=te(e+" - runid: "+i+" - cancel",(function(){try{u&&me(u);var t=a.return(void 0),e=Promise.resolve(t.value);e.then(s,s),me(e),n(new ge)}catch(t){n(t)}})),c}}function me(t){"function"==typeof t.cancel&&t.cancel()}function Oe(t,e){if(null==t)return!1;if(void 0!==e){if(!1===vn(t))return!1;if(!t[w].values.has(e))return!1;var n=gn(t,e);return Mt(n)}return Mt(t)}function we(t){return arguments.length>1?u(!1):Oe(t)}function xe(t,e){return"string"!=typeof e?u(!1):Oe(t,e)}function _e(t,e){return null!=t&&(void 0!==e?!!vn(t)&&t[w].values.has(e):vn(t)||!!t[w]||_(t)||Xt(t)||Mt(t))}function je(t){return 1!==arguments.length&&u(!1),_e(t)}function Ee(t){return vn(t)?t[w].getKeys():an(t)||ln(t)?Array.from(t.keys()):en(t)?t.map((function(t,e){return e})):u(!1)}function Ae(t){return vn(t)?Ee(t).map((function(e){return t[e]})):an(t)?Ee(t).map((function(e){return t.get(e)})):ln(t)?Array.from(t.values()):en(t)?t.slice():u(!1)}function Se(t){return vn(t)?Ee(t).map((function(e){return[e,t[e]]})):an(t)?Ee(t).map((function(e){return[e,t.get(e)]})):ln(t)?Array.from(t.entries()):en(t)?t.map((function(t,e){return[e,t]})):u(!1)}function Ne(t,e,n){if(2!==arguments.length||ln(t))if(vn(t)){var r=t[w],o=r.values.get(e);o?r.write(e,n):r.addObservableProp(e,n,r.defaultEnhancer)}else if(an(t))t.set(e,n);else if(ln(t))t.add(e);else{if(!en(t))return u(!1);"number"!=typeof e&&(e=parseInt(e,10)),c(e>=0,"Not a valid index: '"+e+"'"),zt(),e>=t.length&&(t.length=e+1),t[e]=n,Vt()}else{zt();var i=e;try{for(var a in i)Ne(t,a,i[a])}finally{Vt()}}}function Me(t,e,n,r){return"function"==typeof n?function(t,e,n,r){return bn(t,e).observe(n,r)}(t,e,n,r):function(t,e,n){return bn(t).observe(e,n)}(t,e,n)}ge.prototype=Object.create(Error.prototype);var ke={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function Pe(t,e,n,r){return r.detectCycles&&t.set(e,n),n}function Te(t,e,n){if(!e.recurseEverything&&!je(t))return t;if("object"!=typeof t)return t;if(null===t)return null;if(t instanceof Date)return t;if(St(t))return Te(t.get(),e,n);if(je(t)&&Ee(t),!0===e.detectCycles&&null!==t&&n.has(t))return n.get(t);if(en(t)||Array.isArray(t)){var r=Pe(n,t,[],e),o=t.map((function(t){return Te(t,e,n)}));r.length=o.length;for(var i=0,a=o.length;i<a;i++)r[i]=o[i];return r}if(ln(t)||Object.getPrototypeOf(t)===Set.prototype){if(!1===e.exportMapsAsObjects){var u=Pe(n,t,new Set,e);return t.forEach((function(t){u.add(Te(t,e,n))})),u}var c=Pe(n,t,[],e);return t.forEach((function(t){c.push(Te(t,e,n))})),c}if(an(t)||Object.getPrototypeOf(t)===Map.prototype){if(!1===e.exportMapsAsObjects){var l=Pe(n,t,new Map,e);return t.forEach((function(t,r){l.set(r,Te(t,e,n))})),l}var s=Pe(n,t,{},e);return t.forEach((function(t,r){s[r]=Te(t,e,n)})),s}var f=Pe(n,t,{},e);return g(t).forEach((function(r){f[r]=Te(t[r],e,n)})),f}function Ce(t,e){var n;return"boolean"==typeof e&&(e={detectCycles:e}),e||(e=ke),e.detectCycles=void 0===e.detectCycles?!0===e.recurseEverything:!0===e.detectCycles,e.detectCycles&&(n=new Map),Te(t,e,n)}function De(t){switch(t.length){case 0:return It.trackingDerivation;case 1:return gn(t[0]);case 2:return gn(t[0],t[1])}}function Ie(t,e){void 0===e&&(e=void 0),zt();try{return t.apply(e)}finally{Vt()}}function Re(t,e,n){return 1===arguments.length||e&&"object"==typeof e?Be(t,e):Le(t,e,n||{})}function Le(t,e,n){var r;"number"==typeof n.timeout&&(r=setTimeout((function(){if(!i[w].isDisposed){i();var t=new Error("WHEN_TIMEOUT");if(!n.onError)throw t;n.onError(t)}}),n.timeout)),n.name=n.name||"When@"+a();var o=mt(n.name+"-effect",e),i=oe((function(e){t()&&(e.dispose(),r&&clearTimeout(r),o())}),n);return i}function Be(t,e){var n,r=new Promise((function(r,o){var i=Le(t,r,S(S({},e),{onError:o}));n=function(){i(),o("WHEN_CANCELLED")}}));return r.cancel=n,r}function ze(t){return t[w]}function Ve(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t}var Ue={has:function(t,e){if(e===w||"constructor"===e||e===P)return!0;var n=ze(t);return Ve(e)?n.has(e):e in t},get:function(t,e){if(e===w||"constructor"===e||e===P)return t[e];var n=ze(t),r=n.values.get(e);if(r instanceof x){var o=r.get();return void 0===o&&n.has(e),o}return Ve(e)&&n.has(e),t[e]},set:function(t,e,n){return!!Ve(e)&&(Ne(t,e,n),!0)},deleteProperty:function(t,e){return!!Ve(e)&&(ze(t).remove(e),!0)},ownKeys:function(t){return ze(t).keysAtom.reportObserved(),Reflect.ownKeys(t)},preventExtensions:function(t){return u("Dynamic observable objects cannot be frozen"),!1}};function Fe(t){var e=new Proxy(t,Ue);return t[w].proxy=e,e}function Ye(t){return void 0!==t.interceptors&&t.interceptors.length>0}function We(t,e){var n=t.interceptors||(t.interceptors=[]);return n.push(e),l((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function Ge(t,e){var n=ft();try{for(var r=k(t.interceptors||[]),o=0,i=r.length;o<i&&(c(!(e=r[o](e))||e.type,"Intercept handlers should return nothing or a change object"),e);o++);return e}finally{pt(n)}}function He(t){return void 0!==t.changeListeners&&t.changeListeners.length>0}function Qe(t,e){var n=t.changeListeners||(t.changeListeners=[]);return n.push(e),l((function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}))}function Xe(t,e){var n=ft(),r=t.changeListeners;if(r){for(var o=0,i=(r=r.slice()).length;o<i;o++)r[o](e);pt(n)}}var Je={get:function(t,e){return e===w?t[w]:"length"===e?t[w].getArrayLength():"number"==typeof e?qe.get.call(t,e):"string"!=typeof e||isNaN(e)?qe.hasOwnProperty(e)?qe[e]:t[e]:qe.get.call(t,parseInt(e))},set:function(t,e,n){return"length"===e&&t[w].setArrayLength(n),"number"==typeof e&&qe.set.call(t,e,n),"symbol"==typeof e||isNaN(e)?t[e]=n:qe.set.call(t,parseInt(e),n),!0},preventExtensions:function(t){return u("Observable arrays cannot be frozen"),!1}};function Ze(t,e,n,r){void 0===n&&(n="ObservableArray@"+a()),void 0===r&&(r=!1);var o,i,u,c=new Ke(n,e,r);o=c.values,i=w,u=c,Object.defineProperty(o,i,{enumerable:!1,writable:!1,configurable:!0,value:u});var l=new Proxy(c.values,Je);if(c.proxy=l,t&&t.length){var s=jt(!0);c.spliceWithArray(0,0,t),Et(s)}return l}var Ke=function(){function t(t,e,n){this.owned=n,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new x(t||"ObservableArray@"+a()),this.enhancer=function(n,r){return e(n,r,t+"[..]")}}return t.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},t.prototype.dehanceValues=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return We(this,t)},t.prototype.observe=function(t,e){return void 0===e&&(e=!1),e&&t({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Qe(this,t)},t.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},t.prototype.setArrayLength=function(t){if("number"!=typeof t||t<0)throw new Error("[mobx.array] Out of range: "+t);var e=this.values.length;if(t!==e)if(t>e){for(var n=new Array(t-e),r=0;r<t-e;r++)n[r]=void 0;this.spliceWithArray(e,0,n)}else this.spliceWithArray(t,e-t)},t.prototype.updateArrayLength=function(t,e){if(t!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=e},t.prototype.spliceWithArray=function(t,e,n){var r=this;ut(this.atom);var i=this.values.length;if(void 0===t?t=0:t>i?t=i:t<0&&(t=Math.max(0,i+t)),e=1===arguments.length?i-t:null==e?0:Math.max(0,Math.min(e,i-t)),void 0===n&&(n=o),Ye(this)){var a=Ge(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:n});if(!a)return o;e=a.removedCount,n=a.added}n=0===n.length?n:n.map((function(t){return r.enhancer(t,void 0)}));var u=this.spliceItemsIntoValues(t,e,n);return 0===e&&0===n.length||this.notifyArraySplice(t,n,u),this.dehanceValues(u)},t.prototype.spliceItemsIntoValues=function(t,e,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,k([t,e],n));var o=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(n,this.values.slice(t+e)),o},t.prototype.notifyArrayChildUpdate=function(t,e,n){var r=!this.owned&&!1,o=He(this),i=o||r?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:n}:null;this.atom.reportChanged(),o&&Xe(this,i)},t.prototype.notifyArraySplice=function(t,e,n){var r=!this.owned&&!1,o=He(this),i=o||r?{object:this.proxy,type:"splice",index:t,removed:n,added:e,removedCount:n.length,addedCount:e.length}:null;this.atom.reportChanged(),o&&Xe(this,i)},t}(),qe={intercept:function(t){return this[w].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[w].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[w];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=this[w];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray(t);case 2:return o.spliceWithArray(t,e)}return o.spliceWithArray(t,e,n)},spliceWithArray:f