!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var n in r)("object"==typeof exports?exports:t)[n]=r[n]}}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=259)}([function(t,e,r){"use strict";r.d(e,"a",(function(){return w})),r.d(e,"b",(function(){return O})),r.d(e,"c",(function(){return X})),r.d(e,"d",(function(){return G})),r.d(e,"e",(function(){return b})),r.d(e,"f",(function(){return m})),r.d(e,"g",(function(){return b})),r.d(e,"h",(function(){return H})),r.d(e,"i",(function(){return o})),r.d(e,"j",(function(){return F})),r.d(e,"k",(function(){return k}));var n,o,i,u,a,c,l,s,f={},p=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,d=Array.isArray;function h(t,e){for(var r in e)t[r]=e[r];return t}function v(t){var e=t.parentNode;e&&e.removeChild(t)}function b(t,e,r){var o,i,u,a={};for(u in e)"key"==u?o=e[u]:"ref"==u?i=e[u]:a[u]=e[u];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(u in t.defaultProps)void 0===a[u]&&(a[u]=t.defaultProps[u]);return g(t,a,o,i,null)}function g(t,e,r,n,u){var a={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==u?++i:u};return null==u&&null!=o.vnode&&o.vnode(a),a}function m(){return{current:null}}function O(t){return t.children}function w(t,e){this.props=t,this.context=e}function _(t,e){if(null==e)return t.__?_(t.__,t.__.__k.indexOf(t)+1):null;for(var r;ee&&u.sort(l));x.__r=0}function E(t,e,r,n,o,i,u,a,c,l){var s,y,h,v,b,m,w,j=n&&n.__k||p,S=j.length;for(r.__k=[],s=0;s0?g(v.type,v.props,v.key,v.ref?v.ref:null,v.__v):v)){if(v.__=r,v.__b=r.__b+1,null===(h=j[s])||h&&v.key==h.key&&v.type===h.type)j[s]=void 0;else for(y=0;y=0;e--)if((r=t.__k[e])&&(n=D(r)))return n;return null}function T(t,e,r){"-"===e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||y.test(e)?r:r+"px"}function N(t,e,r,n,o){var i;t:if("style"===e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||T(t.style,e,"");if(r)for(e in r)n&&r[e]===n[e]||T(t.style,e,r[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]=r,r?n||t.addEventListener(e,i?C:M,i):t.removeEventListener(e,i?C:M,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&"rowSpan"!==e&&"colSpan"!==e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,r))}}function M(t){return this.l[t.type+!1](o.event?o.event(t):t)}function C(t){return this.l[t.type+!0](o.event?o.event(t):t)}function R(t,e,r,n,i,u,a,c,l){var s,f,p,y,v,b,g,m,_,j,S,x,P,k,A,D=e.type;if(void 0!==e.constructor)return null;null!=r.__h&&(l=r.__h,c=e.__e=r.__e,e.__h=null,u=[c]),(s=o.__b)&&s(e);try{t:if("function"==typeof D){if(m=e.props,_=(s=D.contextType)&&n[s.__c],j=s?_?_.props.value:s.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:("prototype"in D&&D.prototype.render?e.__c=f=new D(m,j):(e.__c=f=new w(m,j),f.constructor=D,f.render=U),_&&_.sub(f),f.props=m,f.state||(f.state={}),f.context=j,f.__n=n,p=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=D.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=h({},f.__s)),h(f.__s,D.getDerivedStateFromProps(m,f.__s))),y=f.props,v=f.state,f.__v=e,p)null==D.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==D.getDerivedStateFromProps&&m!==y&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(m,j),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(m,f.__s,j)||e.__v===r.__v){for(e.__v!==r.__v&&(f.props=m,f.state=f.__s,f.__d=!1),f.__e=!1,e.__e=r.__e,e.__k=r.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S2&&(c.children=arguments.length>3?n.call(arguments,2):r),g(t.type,c,o||t.key,i||t.ref,null)}function G(t,e){var r={__c:e="__cC"+s++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var r,n;return this.getChildContext||(r=[],(n={})[e]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&r.some((function(t){t.__e=!0,S(t)}))},this.sub=function(t){r.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r.splice(r.indexOf(t),1),e&&e.call(t)}}),t.children}};return r.Provider.__=r.Consumer.contextType=r}n=p.slice,o={__e:function(t,e,r,n){for(var o,i,u;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),u=o.__d),u)return o.__E=o}catch(e){t=e}throw t}},i=0,w.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof t&&(t=t(h({},r),this.props)),t&&h(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),S(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),S(this))},w.prototype.render=O,u=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},x.__r=0,s=0},function(t,e,r){"use strict";(function(t,n){r.d(e,"a",(function(){return _})),r.d(e,"b",(function(){return Qe})),r.d(e,"c",(function(){return Xt})),r.d(e,"d",(function(){return _t})),r.d(e,"e",(function(){return yt})),r.d(e,"f",(function(){return pt})),r.d(e,"g",(function(){return wt})),r.d(e,"h",(function(){return pr})),r.d(e,"i",(function(){return it})),r.d(e,"j",(function(){return Ot})),r.d(e,"k",(function(){return Qt})),r.d(e,"l",(function(){return ne})),r.d(e,"m",(function(){return et})),r.d(e,"n",(function(){return le})),r.d(e,"o",(function(){return x})),r.d(e,"p",(function(){return Ee})),r.d(e,"q",(function(){return se})),r.d(e,"r",(function(){return be})),r.d(e,"s",(function(){return fr})),r.d(e,"t",(function(){return ye})),r.d(e,"u",(function(){return ee})),r.d(e,"v",(function(){return Oe})),r.d(e,"w",(function(){return we})),r.d(e,"x",(function(){return je})),r.d(e,"y",(function(){return qe})),r.d(e,"z",(function(){return tr})),r.d(e,"A",(function(){return sr})),r.d(e,"B",(function(){return Se})),r.d(e,"C",(function(){return $})),r.d(e,"D",(function(){return ke})),r.d(e,"E",(function(){return ae})),r.d(e,"F",(function(){return ue})),r.d(e,"G",(function(){return te})),r.d(e,"H",(function(){return qt})),r.d(e,"I",(function(){return Ne})),r.d(e,"J",(function(){return Me})),r.d(e,"K",(function(){return lt})),r.d(e,"L",(function(){return xe})),r.d(e,"M",(function(){return Ce}));var o="An invariant failed, however the error is obfuscated because this is a production build.",i=[];Object.freeze(i);var u={};function a(){return++Ct.mobxGuid}function c(t){throw l(!1,t),"X"}function l(t,e){if(!t)throw new Error("[mobx] "+(e||o))}Object.freeze(u);function s(t){var e=!1;return function(){if(!e)return e=!0,t.apply(this,arguments)}}var f=function(){};function p(t){return null!==t&&"object"==typeof t}function y(t){if(null===t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return e===Object.prototype||null===e}function d(t,e,r){Object.defineProperty(t,e,{enumerable:!1,writable:!0,configurable:!0,value:r})}function h(t,e){var r="isMobX"+t;return e.prototype[r]=!0,function(t){return p(t)&&!0===t[r]}}function v(t){return t instanceof Map}function b(t){return t instanceof Set}function g(t){var e=new Set;for(var r in t)e.add(r);return Object.getOwnPropertySymbols(t).forEach((function(r){Object.getOwnPropertyDescriptor(t,r).enumerable&&e.add(r)})),Array.from(e)}function m(t){return t&&t.toString?t.toString():new String(t).toString()}function O(t){return null===t?null:"object"==typeof t?""+t:t}var w="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,_=Symbol("mobx administration"),j=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=Z.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){if(t.lowestObserverState===Z.STALE)return;t.lowestObserverState=Z.STALE,t.observers.forEach((function(e){e.dependenciesState===Z.UP_TO_DATE&&(e.isTracing!==J.NONE&&Ft(e,t),e.onBecomeStale()),e.dependenciesState=Z.STALE}))}(this),Bt()},t.prototype.toString=function(){return this.name},t}(),S=h("Atom",j);function x(t,e,r){void 0===e&&(e=f),void 0===r&&(r=f);var n,o=new j(t);return e!==f&&ce("onBecomeObserved",o,e,n),r!==f&&ae(o,r),o}var E={identity:function(t,e){return t===e},structural:function(t,e){return dr(t,e)},default:function(t,e){return Object.is(t,e)},shallow:function(t,e){return dr(t,e,1)}},P=function(t,e){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},P(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. ***************************************************************************** */var k=function(){return k=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}}}function D(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function T(){for(var t=[],e=0;e2&&q("box");var r=H(e);return new xt(t,W(r),r.name,!0,r.equals)},array:function(t,e){arguments.length>2&&q("array");var r=H(e);return function(t,e,r,n){void 0===r&&(r="ObservableArray@"+a());void 0===n&&(n=!1);var o=new Ve(r,e,n);i=o.values,u=_,c=o,Object.defineProperty(i,u,{enumerable:!1,writable:!1,configurable:!0,value:c});var i,u,c;var l=new Proxy(o.values,Ye);if(o.proxy=l,t&&t.length){var s=jt(!0);o.spliceWithArray(0,0,t),St(s)}return l}(t,W(r),r.name)},map:function(t,e){arguments.length>2&&q("map");var r=H(e);return new Qe(t,W(r),r.name)},set:function(t,e){arguments.length>2&&q("set");var r=H(e);return new rr(t,W(r),r.name)},object:function(t,e,r){"string"==typeof arguments[1]&&q("object");var n=H(r);if(!1===n.proxy)return se({},t,e,n);var o=fe(n),i=function(t){var e=new Proxy(t,ze);return t[_].proxy=e,e}(se({},void 0,void 0,n));return pe(i,t,e,o),i},ref:Y,shallow:G,deep:X,struct:V},$=function(t,e,r){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return X.apply(null,arguments);if(je(t))return t;var n=y(t)?$.object(t,e,r):Array.isArray(t)?$.array(t,e):v(t)?$.map(t,e):b(t)?$.set(t,e):t;if(n!==t)return n;c(!1)};function q(t){c("Expected one or two arguments to observable."+t+". Did you accidentally try to use observable."+t+" as decorator?")}Object.keys(K).forEach((function(t){return $[t]=K[t]}));var Z,J,Q=L(!1,(function(t,e,r,n,o){var i=r.get,u=r.set,a=o[0]||{};ir(t).addComputedProp(t,e,k({get:i,set:u,context:t},a))})),tt=Q({equals:E.structural}),et=function(t,e,r){if("string"==typeof e)return Q.apply(null,arguments);if(null!==t&&"object"==typeof t&&1===arguments.length)return Q.apply(null,arguments);var n="object"==typeof e?e:{};return n.get=t,n.set="function"==typeof e?e:n.set,n.name=n.name||t.name||"",new Pt(n)};et.struct=tt,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"}(Z||(Z={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(J||(J={}));var rt=function(t){this.cause=t};function nt(t){return t instanceof rt}function ot(t){switch(t.dependenciesState){case Z.UP_TO_DATE:return!1;case Z.NOT_TRACKING:case Z.STALE:return!0;case Z.POSSIBLY_STALE:for(var e=pt(!0),r=st(),n=t.observing,o=n.length,i=0;i0;Ct.computationDepth>0&&e&&c(!1),Ct.allowStateChanges||!e&&"strict"!==Ct.enforceActions||c(!1)}function at(t,e,r){var n=pt(!0);dt(t),t.newObserving=new Array(t.observing.length+100),t.unboundDepsCount=0,t.runId=++Ct.runId;var o,i=Ct.trackingDerivation;if(Ct.trackingDerivation=t,!0===Ct.disableErrorBoundaries)o=e.call(r);else try{o=e.call(r)}catch(t){o=new rt(t)}return Ct.trackingDerivation=i,function(t){for(var e=t.observing,r=t.observing=t.newObserving,n=Z.UP_TO_DATE,o=0,i=t.unboundDepsCount,u=0;un&&(n=a.dependenciesState)}r.length=o,t.newObserving=null,i=e.length;for(;i--;){0===(a=e[i]).diffValue&&It(a,t),a.diffValue=0}for(;o--;){var a;1===(a=r[o]).diffValue&&(a.diffValue=0,Rt(a,t))}n!==Z.UP_TO_DATE&&(t.dependenciesState=n,t.onBecomeStale())}(t),yt(n),o}function ct(t){var e=t.observing;t.observing=[];for(var r=e.length;r--;)It(e[r],t);t.dependenciesState=Z.NOT_TRACKING}function lt(t){var e=st();try{return t()}finally{ft(e)}}function st(){var t=Ct.trackingDerivation;return Ct.trackingDerivation=null,t}function ft(t){Ct.trackingDerivation=t}function pt(t){var e=Ct.allowStateReads;return Ct.allowStateReads=t,e}function yt(t){Ct.allowStateReads=t}function dt(t){if(t.dependenciesState!==Z.UP_TO_DATE){t.dependenciesState=Z.UP_TO_DATE;for(var e=t.observing,r=e.length;r--;)e[r].lowestObserverState=Z.UP_TO_DATE}}var ht=0,vt=1,bt=Object.getOwnPropertyDescriptor((function(){}),"name");bt&&bt.configurable;function gt(t,e,r){var n=function(){return mt(t,e,r||this,arguments)};return n.isMobxAction=!0,n}function mt(t,e,r,n){var o=Ot(t,r,n);try{return e.apply(r,n)}catch(t){throw o.error=t,t}finally{wt(o)}}function Ot(t,e,r){var n=0,o=st();zt();var i={prevDerivation:o,prevAllowStateChanges:jt(!0),prevAllowStateReads:pt(!0),notifySpy:false,startTime:n,actionId:vt++,parentActionId:ht};return ht=i.actionId,i}function wt(t){ht!==t.actionId&&c("invalid action stack. did you forget to finish an action?"),ht=t.parentActionId,void 0!==t.error&&(Ct.suppressReactionErrors=!0),St(t.prevAllowStateChanges),yt(t.prevAllowStateReads),Bt(),ft(t.prevDerivation),t.notifySpy,Ct.suppressReactionErrors=!1}function _t(t,e){var r,n=jt(t);try{r=e()}finally{St(n)}return r}function jt(t){var e=Ct.allowStateChanges;return Ct.allowStateChanges=t,e}function St(t){Ct.allowStateChanges=t}var xt=function(t){function e(e,r,n,o,i){void 0===n&&(n="ObservableValue@"+a()),void 0===o&&(o=!0),void 0===i&&(i=E.default);var u=t.call(this,n)||this;return u.enhancer=r,u.name=n,u.equals=i,u.hasUnreportedChange=!1,u.value=r(e,void 0,n),u}return function(t,e){function r(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},e.prototype.set=function(t){this.value;if((t=this.prepareNewValue(t))!==Ct.UNCHANGED){false,this.setNewValue(t)}},e.prototype.prepareNewValue=function(t){if(ut(this),Be(this)){var e=Fe(this,{object:this,type:"update",newValue:t});if(!e)return Ct.UNCHANGED;t=e.newValue}return t=this.enhancer(t,this.value,this.name),this.equals(this.value,t)?Ct.UNCHANGED:t},e.prototype.setNewValue=function(t){var e=this.value;this.value=t,this.reportChanged(),He(this)&&Ge(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 Ue(this,t)},e.prototype.observe=function(t,e){return e&&t({object:this,type:"update",newValue:this.value,oldValue:void 0}),Xe(this,t)},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.value+"]"},e.prototype.valueOf=function(){return O(this.get())},e.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},e}(j),Et=h("ObservableValue",xt),Pt=function(){function t(t){this.dependenciesState=Z.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=Z.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+a(),this.value=new rt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=J.NONE,l(t.get,"missing option for computed: get"),this.derivation=t.get,this.name=t.name||"ComputedValue@"+a(),t.set&&(this.setter=gt(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){if(t.lowestObserverState!==Z.UP_TO_DATE)return;t.lowestObserverState=Z.POSSIBLY_STALE,t.observers.forEach((function(e){e.dependenciesState===Z.UP_TO_DATE&&(e.dependenciesState=Z.POSSIBLY_STALE,e.isTracing!==J.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&&c("Cycle detected in computation "+this.name+": "+this.derivation),0!==Ct.inBatch||0!==this.observers.size||this.keepAlive?(Ut(this),ot(this)&&this.trackAndCompute()&&function(t){if(t.lowestObserverState===Z.STALE)return;t.lowestObserverState=Z.STALE,t.observers.forEach((function(e){e.dependenciesState===Z.POSSIBLY_STALE?e.dependenciesState=Z.STALE:e.dependenciesState===Z.UP_TO_DATE&&(t.lowestObserverState=Z.UP_TO_DATE)}))}(this)):ot(this)&&(this.warnAboutUntrackedRead(),zt(),this.value=this.computeValue(!1),Bt());var t=this.value;if(nt(t))throw t.cause;return t},t.prototype.peek=function(){var t=this.computeValue(!1);if(nt(t))throw t.cause;return t},t.prototype.set=function(t){if(this.setter){l(!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 l(!1,!1)},t.prototype.trackAndCompute=function(){var t=this.value,e=this.dependenciesState===Z.NOT_TRACKING,r=this.computeValue(!0),n=e||nt(t)||nt(r)||!this.equals(t,r);return n&&(this.value=r),n},t.prototype.computeValue=function(t){var e;if(this.isComputing=!0,Ct.computationDepth++,t)e=at(this,this.derivation,this.scope);else if(!0===Ct.disableErrorBoundaries)e=this.derivation.call(this.scope);else try{e=this.derivation.call(this.scope)}catch(t){e=new rt(t)}return Ct.computationDepth--,this.isComputing=!1,e},t.prototype.suspend=function(){this.keepAlive||(ct(this),this.value=void 0)},t.prototype.observe=function(t,e){var r=this,n=!0,o=void 0;return ne((function(){var i=r.get();if(!n||e){var u=st();t({type:"update",object:r,newValue:i,oldValue:o}),ft(u)}n=!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 O(this.get())},t.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},t}(),kt=h("ComputedValue",Pt),At=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},Dt={};function Tt(){return"undefined"!=typeof window?window:void 0!==n?n:"undefined"!=typeof self?self:Dt}var Nt=!0,Mt=!1,Ct=function(){var t=Tt();return t.__mobxInstanceCount>0&&!t.__mobxGlobals&&(Nt=!1),t.__mobxGlobals&&t.__mobxGlobals.version!==(new At).version&&(Nt=!1),Nt?t.__mobxGlobals?(t.__mobxInstanceCount+=1,t.__mobxGlobals.UNCHANGED||(t.__mobxGlobals.UNCHANGED={}),t.__mobxGlobals):(t.__mobxInstanceCount=1,t.__mobxGlobals=new At):(setTimeout((function(){Mt||c("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new At)}();function Rt(t,e){t.observers.add(e),t.lowestObserverState>e.dependenciesState&&(t.lowestObserverState=e.dependenciesState)}function It(t,e){t.observers.delete(e),0===t.observers.size&&Lt(t)}function Lt(t){!1===t.isPendingUnobservation&&(t.isPendingUnobservation=!0,Ct.pendingUnobservations.push(t))}function zt(){Ct.inBatch++}function Bt(){if(0==--Ct.inBatch){Vt();for(var t=Ct.pendingUnobservations,e=0;e0&&Lt(t),!1)}function Ft(t,e){if(t.isTracing===J.BREAK){var r=[];Ht(ye(t),r,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 Pt?t.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+r.join("\n")+"\n*/\n ")()}}function Ht(t,e,r){e.length>=1e3?e.push("(and many more)"):(e.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return Ht(t,e,r+1)})))}var Xt=function(){function t(t,e,r,n){void 0===t&&(t="Reaction@"+a()),void 0===n&&(n=!1),this.name=t,this.onInvalidate=e,this.errorHandler=r,this.requiresObservable=n,this.observing=[],this.newObserving=[],this.dependenciesState=Z.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=J.NONE}return t.prototype.onBecomeStale=function(){this.schedule()},t.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Ct.pendingReactions.push(this),Vt())},t.prototype.isScheduled=function(){return this._isScheduled},t.prototype.runReaction=function(){if(!this.isDisposed){if(zt(),this._isScheduled=!1,ot(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(t){this.reportExceptionInDerivation(t)}}Bt()}},t.prototype.track=function(t){if(!this.isDisposed){zt();false,this._isRunning=!0;var e=at(this,t,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ct(this),nt(e)&&this.reportExceptionInDerivation(e.cause),Bt()}},t.prototype.reportExceptionInDerivation=function(t){var e=this;if(this.errorHandler)this.errorHandler(t,this);else{if(Ct.disableErrorBoundaries)throw t;Ct.suppressReactionErrors,Ct.globalReactionErrorHandlers.forEach((function(r){return r(t,e)}))}},t.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(zt(),ct(this),Bt()))},t.prototype.getDisposer=function(){var t=this.dispose.bind(this);return t[_]=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;e0||Ct.isRunningReactions||Yt(Wt)}function Wt(){Ct.isRunningReactions=!0;for(var t=Ct.pendingReactions,e=0;t.length>0;){++e===Gt&&t.splice(0);for(var r=t.splice(0),n=0,o=r.length;n",t):2===arguments.length&&"function"==typeof e?gt(t,e):1===arguments.length&&"string"==typeof t?Jt(t):!0!==n?Jt(e).apply(null,arguments):void d(t,e,gt(t.name||e,r.value,this))};function te(t,e){return mt("string"==typeof t?t:t.name||"","function"==typeof t?t:e,this,void 0)}function ee(t){return"function"==typeof t&&!0===t.isMobxAction}function re(t,e,r){d(t,e,gt(e,r.bind(t)))}function ne(t,e){void 0===e&&(e=u);var r,n=e&&e.name||t.name||"Autorun@"+a();if(!e.scheduler&&!e.delay)r=new Xt(n,(function(){this.track(c)}),e.onError,e.requiresObservable);else{var o=ie(e),i=!1;r=new Xt(n,(function(){i||(i=!0,o((function(){i=!1,r.isDisposed||r.track(c)})))}),e.onError,e.requiresObservable)}function c(){t(r)}return r.schedule(),r.getDisposer()}Qt.bound=function(t,e,r,n){return!0===n?(re(t,e,r.value),null):r?{configurable:!0,enumerable:!1,get:function(){return re(this,e,r.value||r.initializer.call(this)),this[e]},set:Zt}:{enumerable:!1,configurable:!0,set:function(t){re(this,e,t)},get:function(){}}};var oe=function(t){return t()};function ie(t){return t.scheduler?t.scheduler:t.delay?function(e){return setTimeout(e,t.delay)}:oe}function ue(t,e,r){void 0===r&&(r=u);var n,o,i,c=r.name||"Reaction@"+a(),l=Qt(c,r.onError?(n=r.onError,o=e,function(){try{return o.apply(this,arguments)}catch(t){n.call(this,t)}}):e),s=!r.scheduler&&!r.delay,f=ie(r),p=!0,y=!1,d=r.compareStructural?E.structural:r.equals||E.default,h=new Xt(c,(function(){p||s?v():y||(y=!0,f(v))}),r.onError,r.requiresObservable);function v(){if(y=!1,!h.isDisposed){var e=!1;h.track((function(){var r=t(h);e=p||!d(i,r),i=r})),p&&r.fireImmediately&&l(i,h),p||!0!==e||l(i,h),p&&(p=!1)}}return h.schedule(),h.getDisposer()}function ae(t,e,r){return ce("onBecomeUnobserved",t,e,r)}function ce(t,e,r,n){var o="function"==typeof n?fr(e,r):fr(e),i="function"==typeof n?n:r,u=t+"Listeners";return o[u]?o[u].add(i):o[u]=new Set([i]),"function"!=typeof o[t]?c(!1):function(){var t=o[u];t&&(t.delete(i),0===t.size&&delete o[u])}}function le(t){var e=t.enforceActions,r=t.computedRequiresReaction,n=t.computedConfigurable,o=t.disableErrorBoundaries,i=t.reactionScheduler,u=t.reactionRequiresObservable,a=t.observableRequiresReaction;if(!0===t.isolateGlobalState&&((Ct.pendingReactions.length||Ct.inBatch||Ct.isRunningReactions)&&c("isolateGlobalState should be called before MobX is running any reactions"),Mt=!0,Nt&&(0==--Tt().__mobxInstanceCount&&(Tt().__mobxGlobals=void 0),Ct=new At)),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:c("Invalid value for 'enforceActions': '"+e+"', expected 'never', 'always' or 'observed'")}Ct.enforceActions=l,Ct.allowStateChanges=!0!==l&&"strict"!==l}void 0!==r&&(Ct.computedRequiresReaction=!!r),void 0!==u&&(Ct.reactionRequiresObservable=!!u),void 0!==a&&(Ct.observableRequiresReaction=!!a,Ct.allowStateReads=!Ct.observableRequiresReaction),void 0!==n&&(Ct.computedConfigurable=!!n),void 0!==o&&(Ct.disableErrorBoundaries=!!o),i&&$t(i)}function se(t,e,r,n){var o=fe(n=H(n));return I(t),ir(t,n.name,o.enhancer),e&&pe(t,e,r,o),t}function fe(t){return t.defaultDecorator||(!1===t.deep?Y:X)}function pe(t,e,r,n){var o,i;zt();try{var u=w(e);try{for(var a=A(u),c=a.next();!c.done;c=a.next()){var l=c.value,s=Object.getOwnPropertyDescriptor(e,l);0;var f=(r&&l in r?r[l]:s.get?Q:n)(t,l,s,!0);f&&Object.defineProperty(t,l,f)}}catch(t){o={error:t}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}finally{Bt()}}function ye(t,e){return de(fr(t,e))}function de(t){var e,r,n={name:t.name};return t.observing&&t.observing.length>0&&(n.dependencies=(e=t.observing,r=[],e.forEach((function(t){-1===r.indexOf(t)&&r.push(t)})),r).map(de)),n}var he=0;function ve(){this.message="FLOW_CANCELLED"}function be(t){1!==arguments.length&&c("Flow expects 1 argument and cannot be used as decorator");var e=t.name||"";return function(){var r,n=arguments,o=++he,i=Qt(e+" - runid: "+o+" - init",t).apply(this,n),u=void 0,a=new Promise((function(t,n){var a=0;function c(t){var r;u=void 0;try{r=Qt(e+" - runid: "+o+" - yield "+a++,i.next).call(i,t)}catch(t){return n(t)}s(r)}function l(t){var r;u=void 0;try{r=Qt(e+" - runid: "+o+" - yield "+a++,i.throw).call(i,t)}catch(t){return n(t)}s(r)}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,n)}r=n,c(void 0)}));return a.cancel=Qt(e+" - runid: "+o+" - cancel",(function(){try{u&&ge(u);var t=i.return(void 0),e=Promise.resolve(t.value);e.then(f,f),ge(e),r(new ve)}catch(t){r(t)}})),a}}function ge(t){"function"==typeof t.cancel&&t.cancel()}function me(t,e){if(null==t)return!1;if(void 0!==e){if(!1===sr(t))return!1;if(!t[_].values.has(e))return!1;var r=fr(t,e);return kt(r)}return kt(t)}function Oe(t){return arguments.length>1?c(!1):me(t)}function we(t,e){return"string"!=typeof e?c(!1):me(t,e)}function _e(t,e){return null!=t&&(void 0!==e?!!sr(t)&&t[_].values.has(e):sr(t)||!!t[_]||S(t)||Kt(t)||kt(t))}function je(t){return 1!==arguments.length&&c(!1),_e(t)}function Se(t){return sr(t)?t[_].getKeys():tr(t)||nr(t)?Array.from(t.keys()):qe(t)?t.map((function(t,e){return e})):c(!1)}function xe(t){return sr(t)?Se(t).map((function(e){return t[e]})):tr(t)?Se(t).map((function(e){return t.get(e)})):nr(t)?Array.from(t.values()):qe(t)?t.slice():c(!1)}function Ee(t){return sr(t)?Se(t).map((function(e){return[e,t[e]]})):tr(t)?Se(t).map((function(e){return[e,t.get(e)]})):nr(t)?Array.from(t.entries()):qe(t)?t.map((function(t,e){return[e,t]})):c(!1)}function Pe(t,e,r){if(2!==arguments.length||nr(t))if(sr(t)){var n=t[_];n.values.get(e)?n.write(e,r):n.addObservableProp(e,r,n.defaultEnhancer)}else if(tr(t))t.set(e,r);else if(nr(t))t.add(e);else{if(!qe(t))return c(!1);"number"!=typeof e&&(e=parseInt(e,10)),l(e>=0,"Not a valid index: '"+e+"'"),zt(),e>=t.length&&(t.length=e+1),t[e]=r,Bt()}else{zt();var o=e;try{for(var i in o)Pe(t,i,o[i])}finally{Bt()}}}function ke(t,e,r,n){return"function"==typeof r?function(t,e,r,n){return pr(t,e).observe(r,n)}(t,e,r,n):function(t,e,r){return pr(t).observe(e,r)}(t,e,r)}ve.prototype=Object.create(Error.prototype);var Ae={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function De(t,e,r,n){return n.detectCycles&&t.set(e,r),r}function Te(t,e,r){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(Et(t))return Te(t.get(),e,r);if(je(t)&&Se(t),!0===e.detectCycles&&null!==t&&r.has(t))return r.get(t);if(qe(t)||Array.isArray(t)){var n=De(r,t,[],e),o=t.map((function(t){return Te(t,e,r)}));n.length=o.length;for(var i=0,u=o.length;i0}function Ue(t,e){var r=t.interceptors||(t.interceptors=[]);return r.push(e),s((function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}))}function Fe(t,e){var r=st();try{for(var n=T(t.interceptors||[]),o=0,i=n.length;o0}function Xe(t,e){var r=t.changeListeners||(t.changeListeners=[]);return r.push(e),s((function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}))}function Ge(t,e){var r=st(),n=t.changeListeners;if(n){for(var o=0,i=(n=n.slice()).length;o0?t.map(this.dehancer):t},t.prototype.intercept=function(t){return Ue(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}),Xe(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 r=new Array(t-e),n=0;no?t=o:t<0&&(t=Math.max(0,o+t)),e=1===arguments.length?o-t:null==e?0:Math.max(0,Math.min(e,o-t)),void 0===r&&(r=i),Be(this)){var u=Fe(this,{object:this.proxy,type:"splice",index:t,removedCount:e,added:r});if(!u)return i;e=u.removedCount,r=u.added}r=0===r.length?r:r.map((function(t){return n.enhancer(t,void 0)}));var a=this.spliceItemsIntoValues(t,e,r);return 0===e&&0===r.length||this.notifyArraySplice(t,r,a),this.dehanceValues(a)},t.prototype.spliceItemsIntoValues=function(t,e,r){var n;if(r.length<1e4)return(n=this.values).splice.apply(n,T([t,e],r));var o=this.values.slice(t,t+e);return this.values=this.values.slice(0,t).concat(r,this.values.slice(t+e)),o},t.prototype.notifyArrayChildUpdate=function(t,e,r){var n=!this.owned&&!1,o=He(this),i=o||n?{object:this.proxy,type:"update",index:t,newValue:e,oldValue:r}:null;this.atom.reportChanged(),o&&Ge(this,i)},t.prototype.notifyArraySplice=function(t,e,r){var n=!this.owned&&!1,o=He(this),i=o||n?{object:this.proxy,type:"splice",index:t,removed:r,added:e,removedCount:r.length,addedCount:e.length}:null;this.atom.reportChanged(),o&&Ge(this,i)},t}(),We={intercept:function(t){return this[_].intercept(t)},observe:function(t,e){return void 0===e&&(e=!1),this[_].observe(t,e)},clear:function(){return this.splice(0)},replace:function(t){var e=this[_];return e.spliceWithArray(0,e.values.length,t)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(t,e){for(var r=[],n=2;n-1&&(this.splice(r,1),!0)},get:function(t){var e=this[_];if(e&&t=0&&r++}t=vr(t),e=vr(e);var a="[object Array]"===u;if(!a){if("object"!=typeof t||"object"!=typeof e)return!1;var c=t.constructor,l=e.constructor;if(c!==l&&!("function"==typeof c&&c instanceof c&&"function"==typeof l&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}if(0===r)return!1;r<0&&(r=-1),o=o||[];for(var s=(n=n||[]).length;s--;)if(n[s]===t)return o[s]===e;if(n.push(t),o.push(e),a){if((s=t.length)!==e.length)return!1;for(;s--;)if(!hr(t[s],e[s],r-1,n,o))return!1}else{var f=Object.keys(t),p=void 0;if(s=f.length,Object.keys(e).length!==s)return!1;for(;s--;)if(!br(e,p=f[s])||!hr(t[p],e[p],r-1,n,o))return!1}return n.pop(),o.pop(),!0}function vr(t){return qe(t)?t.slice():v(t)||tr(t)||b(t)||nr(t)?Array.from(t.entries()):t}function br(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function gr(t){return t[Symbol.iterator]=mr,t}function mr(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:qt,extras:{getDebugName:function(t,e){return(void 0!==e?fr(t,e):sr(t)||tr(t)||nr(t)?pr(t):fr(t)).name}},$mobx:_})}).call(this,r(136),r(77))},function(t,e,r){var n=r(125),o=r(45),i=r(209);n||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,e,r){"use strict";var n=r(46),o=r(111),i=r(93),u=r(64),a=r(44).f,c=r(130),l=r(131),s=r(49),f=r(40),p="Array Iterator",y=u.set,d=u.getterFor(p);t.exports=c(Array,"Array",(function(t,e){y(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=d(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,l(void 0,!0)):l("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!s&&f&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(t){}},function(t,e,r){"use strict";var n=r(173).charAt,o=r(42),i=r(64),u=r(130),a=r(131),c="String Iterator",l=i.set,s=i.getterFor(c);u(String,"String",(function(t){l(this,{type:c,string:o(t),index:0})}),(function(){var t,e=s(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))}))},function(t,e,r){var n=r(34),o=r(174),i=r(175),u=r(3),a=r(73),c=r(33),l=c("iterator"),s=c("toStringTag"),f=u.values,p=function(t,e){if(t){if(t[l]!==f)try{a(t,l,f)}catch(e){t[l]=f}if(t[s]||a(t,s,e),o[e])for(var r in u)if(t[r]!==u[r])try{a(t,r,u[r])}catch(e){t[r]=u[r]}}};for(var y in o)p(n[y]&&n[y].prototype,y);p(i,"DOMTokenList")},function(t,e,r){r(200),r(204),r(205),r(206),r(208)},function(t,e,r){"use strict";var n=r(13),o=r(40),i=r(34),u=r(21),a=r(38),c=r(30),l=r(62),s=r(42),f=r(88),p=r(154),y=i.Symbol,d=y&&y.prototype;if(o&&c(y)&&(!("description"in d)||void 0!==y().description)){var h={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:s(arguments[0]),e=l(d,this)?new y(t):void 0===t?y():y(t);return""===t&&(h[e]=!0),e};p(v,y),v.prototype=d,d.constructor=v;var b="Symbol(test)"==String(y("test")),g=u(d.valueOf),m=u(d.toString),O=/^Symbol\((.*)\)[^)]+$/,w=u("".replace),_=u("".slice);f(d,"description",{configurable:!0,get:function(){var t=g(this);if(a(h,t))return"";var e=m(t),r=b?_(e,7,-1):w(e,O,"$1");return""===r?void 0:r}}),n({global:!0,constructor:!0,forced:!0},{Symbol:v})}},function(t,e,r){r(127)("iterator")},function(t,e,r){var n=r(127),o=r(163);n("toPrimitive"),o()},function(t,e,r){var n=r(38),o=r(45),i=r(222),u=r(33)("toPrimitive"),a=Date.prototype;n(a,u)||o(a,u,i)},function(t,e,r){"use strict";var n=r(13),o=r(49),i=r(40),u=r(34),a=r(162),c=r(21),l=r(107),s=r(38),f=r(171),p=r(62),y=r(80),d=r(147),h=r(19),v=r(84).f,b=r(56).f,g=r(44).f,m=r(178),O=r(179).trim,w="Number",_=u[w],j=a[w],S=_.prototype,x=u.TypeError,E=c("".slice),P=c("".charCodeAt),k=function(t){var e,r,n,o,i,u,a,c,l=d(t,"number");if(y(l))throw x("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=O(l),43===(e=P(l,0))||45===e){if(88===(r=P(l,2))||120===r)return NaN}else if(48===e){switch(P(l,1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+l}for(u=(i=E(l,2)).length,a=0;ao)return NaN;return parseInt(i,n)}return+l},A=l(w,!_(" 0o1")||!_("0b1")||_("+0x1")),D=function(t){var e,r=arguments.length<1?0:_(function(t){var e=d(t,"number");return"bigint"==typeof e?e:k(e)}(t));return p(S,e=this)&&h((function(){m(e)}))?f(Object(r),this,D):r};D.prototype=S,A&&!o&&(S.constructor=D),n({global:!0,constructor:!0,wrap:!0,forced:A},{Number:D});var T=function(t,e){for(var r,n=i?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),o=0;n.length>o;o++)s(e,r=n[o])&&!s(t,r)&&g(t,r,b(e,r))};o&&j&&T(a[w],j),(A||o)&&T(a[w],_)},function(t,e,r){var n=r(34),o=r(174),i=r(175),u=r(220),a=r(73),c=function(t){if(t&&t.forEach!==u)try{a(t,"forEach",u)}catch(e){t.forEach=u}};for(var l in o)o[l]&&c(n[l]&&n[l].prototype);c(i)},function(t,e,r){var n=r(34),o=r(56).f,i=r(73),u=r(45),a=r(122),c=r(154),l=r(107);t.exports=function(t,e){var r,s,f,p,y,d=t.target,h=t.global,v=t.stat;if(r=h?n:v?n[d]||a(d,{}):(n[d]||{}).prototype)for(s in e){if(p=e[s],f=t.dontCallGetSet?(y=o(r,s))&&y.value:r[s],!l(h?s:d+(v?".":"#")+s,t.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(t.sham||f&&f.sham)&&i(p,"sham",!0),u(r,s,p,t)}}},function(t,e,r){"use strict";r.d(e,"a",(function(){return a.a})),r.d(e,"c",(function(){return a.e})),r.d(e,"h",(function(){return _})),r.d(e,"i",(function(){return m})),r.d(e,"j",(function(){return b})),r.d(e,"b",(function(){return M})),r.d(e,"d",(function(){return vt})),r.d(e,"e",(function(){return L})),r.d(e,"f",(function(){return C})),r.d(e,"g",(function(){return yt}));var n,o,i,u,a=r(0),c=0,l=[],s=[],f=a.i.__b,p=a.i.__r,y=a.i.diffed,d=a.i.__c,h=a.i.unmount;function v(t,e){a.i.__h&&a.i.__h(o,t,c||e),c=0;var r=o.__H||(o.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({__V:s}),r.__[t]}function b(t){return c=1,g(A,t)}function g(t,e,r){var i=v(n++,2);if(i.t=t,!i.__c&&(i.__=[r?r(e):A(void 0,e),function(t){var e=i.__N?i.__N[0]:i.__[0],r=i.t(e,t);e!==r&&(i.__N=[r,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.u)){var u=function(t,e,r){if(!i.__c.__H)return!0;var n=i.__c.__H.__.filter((function(t){return t.__c}));if(n.every((function(t){return!t.__N})))return!a||a.call(this,t,e,r);var o=!1;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(o=!0)}})),!(!o&&i.__c.props===t)&&(!a||a.call(this,t,e,r))};o.u=!0;var a=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(t,e,r){if(this.__e){var n=a;a=void 0,u(t,e,r),a=n}c&&c.call(this,t,e,r)},o.shouldComponentUpdate=u}return i.__N||i.__}function m(t,e){var r=v(n++,3);!a.i.__s&&k(r.__H,e)&&(r.__=t,r.i=e,o.__H.__h.push(r))}function O(t,e){var r=v(n++,4);!a.i.__s&&k(r.__H,e)&&(r.__=t,r.i=e,o.__h.push(r))}function w(t,e){var r=v(n++,7);return k(r.__H,e)?(r.__V=t(),r.i=e,r.__h=t,r.__V):r.__}function _(t,e){return c=8,w((function(){return t}),e)}function j(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(E),t.__H.__h.forEach(P),t.__H.__h=[]}catch(e){t.__H.__h=[],a.i.__e(e,t.__v)}}a.i.__b=function(t){o=null,f&&f(t)},a.i.__r=function(t){p&&p(t),n=0;var e=(o=t.__c).__H;e&&(i===o?(e.__h=[],o.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=s,t.__N=t.i=void 0}))):(e.__h.forEach(E),e.__h.forEach(P),e.__h=[],n=0)),i=o},a.i.diffed=function(t){y&&y(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&u===a.i.requestAnimationFrame||((u=a.i.requestAnimationFrame)||x)(j)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==s&&(t.__=t.__V),t.i=void 0,t.__V=s}))),i=o=null},a.i.__c=function(t,e){e.some((function(t){try{t.__h.forEach(E),t.__h=t.__h.filter((function(t){return!t.__||P(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.i.__e(r,t.__v)}})),d&&d(t,e)},a.i.unmount=function(t){h&&h(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{E(t)}catch(t){e=t}})),r.__H=void 0,e&&a.i.__e(e,r.__v))};var S="function"==typeof requestAnimationFrame;function x(t){var e,r=function(){clearTimeout(n),S&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,100);S&&(e=requestAnimationFrame(r))}function E(t){var e=o,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),o=e}function P(t){var e=o;t.__c=t.__(),o=e}function k(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function A(t,e){return"function"==typeof e?e(t):e}function D(t,e){for(var r in e)t[r]=e[r];return t}function T(t,e){for(var r in t)if("__source"!==r&&!(r in e))return!0;for(var n in e)if("__source"!==n&&t[n]!==e[n])return!0;return!1}function N(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}function M(t){this.props=t}function C(t,e){function r(t){var r=this.props.ref,n=r==t.ref;return!n&&r&&(r.call?r(null):r.current=null),e?!e(this.props,t)||!n:T(this.props,t)}function n(e){return this.shouldComponentUpdate=r,Object(a.e)(t,e)}return n.displayName="Memo("+(t.displayName||t.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(M.prototype=new a.a).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(t,e){return T(this.props,t)||T(this.state,e)};var R=a.i.__b;a.i.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),R&&R(t)};var I="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function L(t){function e(e){var r=D({},e);return delete r.ref,t(r,e.ref||null)}return e.$$typeof=I,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var z=function(t,e){return null==t?null:Object(a.k)(Object(a.k)(t).map(e))},B={map:z,forEach:z,count:function(t){return t?Object(a.k)(t).length:0},only:function(t){var e=Object(a.k)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:a.k},U=a.i.__e;a.i.__e=function(t,e,r,n){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=r.__e,e.__k=r.__k),o.__c(t,e);U(t,e,r,n)};var F=a.i.unmount;function H(t,e,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),t.__c.__H=null),null!=(t=D({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return H(t,e,r)}))),t}function X(t,e,r){return t&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return X(t,e,r)})),t.__c&&t.__c.__P===e&&(t.__e&&r.insertBefore(t.__e,t.__d),t.__c.__e=!0,t.__c.__P=r)),t}function G(){this.__u=0,this.t=null,this.__b=null}function Y(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function V(){this.u=null,this.o=null}a.i.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),F&&F(t)},(G.prototype=new a.a).__c=function(t,e){var r=e.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var o=Y(n.__v),i=!1,u=function(){i||(i=!0,r.__R=null,o?o(a):a())};r.__R=u;var a=function(){if(!--n.__u){if(n.state.__a){var t=n.state.__a;n.__v.__k[0]=X(t,t.__c.__P,t.__c.__O)}var e;for(n.setState({__a:n.__b=null});e=n.t.pop();)e.forceUpdate()}},c=!0===e.__h;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),t.then(u,u)},G.prototype.componentWillUnmount=function(){this.t=[]},G.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=H(this.__b,r,n.__O=n.__P)}this.__b=null}var o=e.__a&&Object(a.e)(a.b,null,t.fallback);return o&&(o.__h=null),[Object(a.e)(a.b,null,e.__a?null:t.children),o]};var W=function(t,e,r){if(++r[1]===r[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(r=t.u;r;){for(;r.length>3;)r.pop()();if(r[1]>>1,1),e.i.removeChild(t)}}),Object(a.j)(Object(a.e)(K,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}(V.prototype=new a.a).__a=function(t){var e=this,r=Y(e.__v),n=e.o.get(t);return n[0]++,function(o){var i=function(){e.props.revealOrder?(n.push(o),W(e,t,n)):o()};r?r(i):i()}},V.prototype.render=function(t){this.u=null,this.o=new Map;var e=Object(a.k)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var r=e.length;r--;)this.o.set(e[r],this.u=[1,0,this.u]);return t.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,r){W(t,r,e)}))};var q="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Z=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,J=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Q=/[A-Z0-9]/g,tt="undefined"!=typeof document,et=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};a.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(a.a.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var rt=a.i.event;function nt(){}function ot(){return this.cancelBubble}function it(){return this.defaultPrevented}a.i.event=function(t){return rt&&(t=rt(t)),t.persist=nt,t.isPropagationStopped=ot,t.isDefaultPrevented=it,t.nativeEvent=t};var ut,at={enumerable:!1,configurable:!0,get:function(){return this.class}},ct=a.i.vnode;a.i.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,r=t.type,n={};for(var o in e){var i=e[o];if(!("value"===o&&"defaultValue"in e&&null==i||tt&&"children"===o&&"noscript"===r||"class"===o||"className"===o)){var u=o.toLowerCase();"defaultValue"===o&&"value"in e&&null==e.value?o="value":"download"===o&&!0===i?i="":"ondoubleclick"===u?o="ondblclick":"onchange"!==u||"input"!==r&&"textarea"!==r||et(e.type)?"onfocus"===u?o="onfocusin":"onblur"===u?o="onfocusout":J.test(o)?o=u:-1===r.indexOf("-")&&Z.test(o)?o=o.replace(Q,"-$&").toLowerCase():null===i&&(i=void 0):u=o="oninput","oninput"===u&&n[o=u]&&(o="oninputCapture"),n[o]=i}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=Object(a.k)(e.children).forEach((function(t){t.props.selected=-1!=n.value.indexOf(t.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=Object(a.k)(e.children).forEach((function(t){t.props.selected=n.multiple?-1!=n.defaultValue.indexOf(t.props.value):n.defaultValue==t.props.value}))),e.class&&!e.className?(n.class=e.class,Object.defineProperty(n,"className",at)):(e.className&&!e.class||e.class&&e.className)&&(n.class=n.className=e.className),t.props=n}(t),t.$$typeof=q,ct&&ct(t)};var lt=a.i.__r;a.i.__r=function(t){lt&<(t),ut=t.__c};var st=a.i.diffed;a.i.diffed=function(t){st&&st(t);var e=t.props,r=t.__e;null!=r&&"textarea"===t.type&&"value"in e&&e.value!==r.value&&(r.value=null==e.value?"":e.value),ut=null};var ft={ReactCurrentDispatcher:{current:{readContext:function(t){return ut.__n[t.__c].props.value}}}};function pt(t){return!!t&&t.$$typeof===q}var yt=function(t,e){return t(e)},dt=a.b;function ht(t){t()}var vt={useState:b,useId:function(){var t=v(n++,11);if(!t.__){for(var e=o.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var r=e.__m||(e.__m=[0,0]);t.__="P"+r[0]+"-"+r[1]++}return t.__},useReducer:g,useEffect:m,useLayoutEffect:O,useInsertionEffect:O,useTransition:function(){return[!1,ht]},useDeferredValue:function(t){return t},useSyncExternalStore:function(t,e){var r=e(),n=b({h:{__:r,v:e}}),o=n[0].h,i=n[1];return O((function(){o.__=r,o.v=e,N(o.__,e())||i({h:o})}),[t,r,e]),m((function(){return N(o.__,o.v())||i({h:o}),t((function(){N(o.__,o.v())||i({h:o})}))}),[t]),r},startTransition:ht,useRef:function(t){return c=5,w((function(){return{current:t}}),[])},useImperativeHandle:function(t,e,r){c=6,O((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==r?r:r.concat(t))},useMemo:w,useCallback:_,useContext:function(t){var e=o.context[t.__c],r=v(n++,9);return r.c=t,e?(null==r.__&&(r.__=!0,e.sub(o)),e.props.value):t.__},useDebugValue:function(t,e){a.i.useDebugValue&&a.i.useDebugValue(e?e(t):t)},version:"17.0.2",Children:B,render:function(t,e,r){return null==e.__k&&(e.textContent=""),Object(a.j)(t,e),"function"==typeof r&&r(),t?t.__c:null},hydrate:function(t,e,r){return Object(a.h)(t,e),"function"==typeof r&&r(),t?t.__c:null},unmountComponentAtNode:function(t){return!!t.__k&&(Object(a.j)(null,t),!0)},createPortal:function(t,e){var r=Object(a.e)($,{__v:t,i:e});return r.containerInfo=e,r},createElement:a.e,createContext:a.d,createFactory:function(t){return a.e.bind(null,t)},cloneElement:function(t){return pt(t)?a.c.apply(null,arguments):t},createRef:a.f,Fragment:a.b,isValidElement:pt,findDOMNode:function(t){return t&&(t.base||1===t.nodeType&&t)||null},Component:a.a,PureComponent:M,memo:C,forwardRef:L,flushSync:function(t,e){return t(e)},unstable_batchedUpdates:yt,StrictMode:dt,Suspense:G,SuspenseList:V,lazy:function(t){var e,r,n;function o(o){if(e||(e=t()).then((function(t){r=t.default||t}),(function(t){n=t})),n)throw n;if(!r)throw e;return Object(a.e)(r,o)}return o.displayName="Lazy",o.__f=!0,o},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ft}},function(t,e,r){r(13)({target:"Object",stat:!0},{setPrototypeOf:r(113)})},function(t,e,r){var n=r(13),o=r(19),i=r(43),u=r(112),a=r(166);n({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!a},{getPrototypeOf:function(t){return u(i(t))}})},function(t,e,r){var n=r(13),o=r(48),i=r(92),u=r(236),a=r(190),c=r(39),l=r(41),s=r(66),f=r(19),p=o("Reflect","construct"),y=Object.prototype,d=[].push,h=f((function(){function t(){}return!(p((function(){}),[],t)instanceof t)})),v=!f((function(){p((function(){}))})),b=h||v;n({target:"Reflect",stat:!0,forced:b,sham:b},{construct:function(t,e){a(t),c(e);var r=arguments.length<3?t:a(arguments[2]);if(v&&!h)return p(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return i(d,n,e),new(i(u,t,n))}var o=r.prototype,f=s(l(o)?o:y),b=i(t,f,e);return l(b)?b:f}})},function(t,e,r){"use strict";var n=r(13),o=r(91),i=r(109),u=r(41),a=r(85),c=r(54),l=r(46),s=r(74),f=r(33),p=r(94),y=r(110),d=p("slice"),h=f("species"),v=Array,b=Math.max;n({target:"Array",proto:!0,forced:!d},{slice:function(t,e){var r,n,f,p=l(this),d=c(p),g=a(t,d),m=a(void 0===e?d:e,d);if(o(p)&&(r=p.constructor,(i(r)&&(r===v||o(r.prototype))||u(r)&&null===(r=r[h]))&&(r=void 0),r===v||void 0===r))return y(p,g,m);for(n=new(void 0===r?v:r)(b(m-g,0)),f=0;g=51||!o((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),b=function(t){if(!u(t))return!1;var e=t[h];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,arity:1,forced:!v||!p("concat")},{concat:function(t){var e,r,n,o,i,u=a(this),p=f(u,0),y=0;for(e=-1,n=arguments.length;e1?arguments[1]:void 0)}})},function(t,e,r){var n=r(13),o=r(40),i=r(155),u=r(46),a=r(56),c=r(74);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=u(t),o=a.f,l=i(n),s={},f=0;l.length>f;)void 0!==(r=o(n,e=l[f++]))&&c(s,e,r);return s}})},function(t,e,r){var n=r(148),o=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},function(t,e,r){var n=r(13),o=r(235);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},,function(t,e,r){var n=r(34),o=r(72),i=r(38),u=r(103),a=r(69),c=r(149),l=n.Symbol,s=o("wks"),f=c?l.for||l:l&&l.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=a&&i(l,t)?l[t]:f("Symbol."+t)),s[t]}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}).call(this,r(77))},function(t,e,r){var n=r(78),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,r){"use strict";var n=r(13),o=r(90).map;n({target:"Array",proto:!0,forced:!r(94)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(119),o="object"==typeof self&&self&&self.Object===Object&&self,i=n.a||o||Function("return this")();e.a=i},function(t,e,r){var n=r(21),o=r(43),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},function(t,e,r){var n=r(41),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not an object")}},function(t,e,r){var n=r(19);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(30),o=r(148),i=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,r){var n=r(108),o=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(t,e,r){var n=r(47),o=Object;t.exports=function(t){return o(n(t))}},function(t,e,r){var n=r(40),o=r(151),i=r(152),u=r(39),a=r(102),c=TypeError,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",y="writable";e.f=n?i?function(t,e,r){if(u(t),e=a(e),u(r),"function"==typeof t&&"prototype"===e&&"value"in r&&y in r&&!r[y]){var n=s(t,e);n&&n[y]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return l(t,e,r)}:l:function(t,e,r){if(u(t),e=a(e),u(r),o)try{return l(t,e,r)}catch(t){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(30),o=r(44),i=r(153),u=r(122);t.exports=function(t,e,r,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:e;if(n(r)&&i(r,l,a),a.global)c?t[e]=r:u(e,r);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},function(t,e,r){var n=r(101),o=r(47);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(57),o=TypeError;t.exports=function(t){if(n(t))throw o("Can't call method on "+t);return t}},function(t,e,r){var n=r(34),o=r(30);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},function(t,e){t.exports=!1},function(t,e,r){var n=r(13),o=r(35),i=r(41),u=r(39),a=r(237),c=r(56),l=r(112);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,s,f=arguments.length<3?e:arguments[2];return u(e)===f?e[r]:(n=c.f(e,r))?a(n)?n.value:void 0===n.get?void 0:o(n.get,f):i(s=l(e))?t(s,r,f):void 0}})},function(t,e,r){"use strict";(function(t){r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return u})),r.d(e,"b",(function(){return a})),r.d(e,"a",(function(){return l}));var n=r(14),o=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u};function i(){var t=o(Object(n.j)(0),2)[1];return Object(n.h)((function(){t((function(t){return t+1}))}),[])}function u(t){if(!t||"object"!=typeof t)return!1;var e=Object.getPrototypeOf(t);return!e||e===Object.prototype}function a(t){return"function"==typeof Symbol?Symbol.for(t):"__$mobx-react "+t+"__"}var c={};function l(){return"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:c}}).call(this,r(77))},function(t,e,r){var n=r(21),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},function(t,e,r){var n=r(30),o=r(71),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a function")}},function(t,e,r){var n=r(86);t.exports=function(t){return n(t.length)}},function(t,e,r){"use strict";var n=r(13),o=r(21),i=r(101),u=r(46),a=r(135),c=o([].join);n({target:"Array",proto:!0,forced:i!=Object||!a("join",",")},{join:function(t){return c(u(this),void 0===t?",":t)}})},function(t,e,r){var n=r(40),o=r(35),i=r(100),u=r(79),a=r(46),c=r(102),l=r(38),s=r(151),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),s)try{return f(t,e)}catch(t){}if(l(t,e))return u(!o(i.f,t,e),t[e])}},function(t,e){t.exports=function(t){return null==t}},function(t,e,r){"use strict";(function(t){var n=r(37),o=r(197),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,u=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=u&&u.exports===i?n.a.Buffer:void 0,c=(a?a.isBuffer:void 0)||o.a;e.a=c}).call(this,r(137)(t))},function(t,e,r){"use strict";(function(t){var n=r(119),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o&&n.a.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();e.a=a}).call(this,r(137)(t))},function(t,e,r){r(213)},function(t,e,r){var n=r(13),o=r(256).entries;n({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,e,r){var n=r(21);t.exports=n({}.isPrototypeOf)},function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,r){var n,o,i,u=r(201),a=r(34),c=r(41),l=r(73),s=r(38),f=r(121),p=r(105),y=r(83),d="Object already initialized",h=a.TypeError,v=a.WeakMap;if(u||f.state){var b=f.state||(f.state=new v);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw h(d);return e.facade=t,b.set(t,e),e},o=function(t){return b.get(t)||{}},i=function(t){return b.has(t)}}else{var g=p("state");y[g]=!0,n=function(t,e){if(s(t,g))throw h(d);return e.facade=t,l(t,g,e),e},o=function(t){return s(t,g)?t[g]:{}},i=function(t){return s(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw h("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(202);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},function(t,e,r){var n,o=r(39),i=r(158),u=r(124),a=r(83),c=r(159),l=r(104),s=r(105),f="prototype",p="script",y=s("IE_PROTO"),d=function(){},h=function(t){return"<"+p+">"+t+""},v=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;b="undefined"!=typeof document?document.domain&&n?v(n):(e=l("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):v(n);for(var o=u.length;o--;)delete b[f][u[o]];return b()};a[y]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[f]=o(t),r=new d,d[f]=null,r[y]=t):r=b(),void 0===e?r:i.f(r,e)}},function(t,e,r){"use strict";var n=r(13),o=r(157).includes,i=r(19),u=r(111);n({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),u("includes")},function(t,e,r){"use strict";var n=r(13),o=r(21),i=r(184),u=r(47),a=r(42),c=r(186),l=o("".indexOf);n({target:"String",proto:!0,forced:!c("includes")},{includes:function(t){return!!~l(a(u(this)),a(i(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(81),o=r(19),i=r(34).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(t,e,r){var n=r(53),o=r(57);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},function(t,e){var r=String;t.exports=function(t){try{return r(t)}catch(t){return"Object"}}},function(t,e,r){var n=r(49),o=r(121);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,r){var n=r(40),o=r(44),i=r(79);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){"use strict";var n=r(102),o=r(44),i=r(79);t.exports=function(t,e,r){var u=n(e);u in t?o.f(t,u,i(0,r)):t[u]=r}},function(t,e,r){var n=r(128),o=r(53),i=r(78),u=n(n.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(13),o=r(254),i=r(111);n({target:"Array",proto:!0},{fill:o}),i("fill")},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(19);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(48),o=r(30),i=r(62),u=r(149),a=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,a(t))}},function(t,e,r){var n,o,i=r(34),u=r(63),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,s=l&&l.v8;s&&(o=(n=s.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&u&&(!(n=u.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=u.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},function(t,e,r){var n=r(40),o=r(38),i=Function.prototype,u=n&&Object.getOwnPropertyDescriptor,a=o(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&u(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},function(t,e){t.exports={}},function(t,e,r){var n=r(156),o=r(124).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,r){var n=r(65),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e,r){var n=r(65),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,r){var n=r(156),o=r(124);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,r){var n=r(153),o=r(44);t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),o.f(t,e,r)}},function(t,e,r){var n=r(44).f,o=r(38),i=r(33)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},function(t,e,r){var n=r(75),o=r(21),i=r(101),u=r(43),a=r(54),c=r(129),l=o([].push),s=function(t){var e=1==t,r=2==t,o=3==t,s=4==t,f=6==t,p=7==t,y=5==t||f;return function(d,h,v,b){for(var g,m,O=u(d),w=i(O),_=n(h,v),j=a(w),S=0,x=b||c,E=e?x(d,j):r||p?x(d,0):void 0;j>S;S++)if((y||S in w)&&(m=_(g=w[S],S,O),t))if(e)E[S]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:l(E,g)}else switch(t){case 4:return!1;case 7:l(E,g)}return f?-1:o||s?s:E}};t.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},function(t,e,r){var n=r(52);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(78),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?u.bind(i):function(){return u.apply(i,arguments)})},function(t,e){t.exports={}},function(t,e,r){var n=r(19),o=r(33),i=r(81),u=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[u]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(13),o=r(43),i=r(85),u=r(65),a=r(54),c=r(232),l=r(176),s=r(129),f=r(74),p=r(182),y=r(94)("splice"),d=Math.max,h=Math.min;n({target:"Array",proto:!0,forced:!y},{splice:function(t,e){var r,n,y,v,b,g,m=o(this),O=a(m),w=i(t,O),_=arguments.length;for(0===_?r=n=0:1===_?(r=0,n=O-w):(r=_-2,n=h(d(u(e),0),O-w)),l(O+r-n),y=s(m,n),v=0;vO-n+r;v--)p(m,v-1)}else if(r>n)for(v=O-n;v>w;v--)g=v+r-1,(b=v+n-1)in m?m[g]=m[b]:p(m,g);for(v=0;vg;g++)if((O=D(t[g]))&&l(h,O))return O;return new d(!1)}v=s(t,b)}for(w=x?t.next:v.next;!(_=o(w,v)).done;){try{O=D(_.value)}catch(t){p(v,"throw",t)}if("object"==typeof O&&O&&l(h,O))return O}return new d(!1)}},function(t,e,r){"use strict";var n,o,i=r(35),u=r(21),a=r(42),c=r(177),l=r(181),s=r(72),f=r(66),p=r(64).get,y=r(225),d=r(226),h=s("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,b=v,g=u("".charAt),m=u("".indexOf),O=u("".replace),w=u("".slice),_=(o=/b*/g,i(v,n=/a/,"a"),i(v,o,"a"),0!==n.lastIndex||0!==o.lastIndex),j=l.BROKEN_CARET,S=void 0!==/()??/.exec("")[1];(_||S||j||y||d)&&(b=function(t){var e,r,n,o,u,l,s,y=this,d=p(y),x=a(t),E=d.raw;if(E)return E.lastIndex=y.lastIndex,e=i(b,E,x),y.lastIndex=E.lastIndex,e;var P=d.groups,k=j&&y.sticky,A=i(c,y),D=y.source,T=0,N=x;if(k&&(A=O(A,"y",""),-1===m(A,"g")&&(A+="g"),N=w(x,y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&"\n"!==g(x,y.lastIndex-1))&&(D="(?: "+D+")",N=" "+N,T++),r=new RegExp("^(?:"+D+")",A)),S&&(r=new RegExp("^"+D+"$(?!\\s)",A)),_&&(n=y.lastIndex),o=i(v,k?r:y,N),k?o?(o.input=w(o.input,T),o[0]=w(o[0],T),o.index=y.lastIndex,y.lastIndex+=o[0].length):y.lastIndex=0:_&&o&&(y.lastIndex=y.global?o.index+o[0].length:n),S&&o&&o.length>1&&i(h,o[0],r,(function(){for(u=1;u=D&&(A+=x(a,D,M)+z,D=M+N.length)}return A+x(a,D)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}))||!E||P)},function(t,e,r){"use strict";var n=r(13),o=r(238);n({target:"String",proto:!0,forced:r(239)("anchor")},{anchor:function(t){return o(this,"a","name",t)}})},function(t,e,r){(function(e){var n=r(52);t.exports=void 0!==e&&"process"==n(e)}).call(this,r(136))},function(t,e,r){"use strict";(function(t){var r="object"==typeof t&&t&&t.Object===Object&&t;e.a=r}).call(this,r(77))},function(t,e,r){"use strict";(function(t){var n=r(37),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,u=i&&i.exports===o?n.a.Buffer:void 0,a=u?u.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(137)(t))},function(t,e,r){var n=r(34),o=r(122),i="__core-js_shared__",u=n[i]||o(i,{});t.exports=u},function(t,e,r){var n=r(34),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(21),o=r(30),i=r(121),u=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return u(t)}),t.exports=i.inspectSource},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,r){var n={};n[r(33)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(85),o=r(54),i=r(74),u=Array,a=Math.max;t.exports=function(t,e,r){for(var c=o(t),l=n(e,c),s=n(void 0===r?c:r,c),f=u(a(s-l,0)),p=0;l1)for(var r=1;r0?(n=r/l)*n:r;return l===1/0?1/0:l*u(o)}})},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(13),o=r(21),i=r(65),u=r(178),a=r(255),c=r(19),l=RangeError,s=String,f=Math.floor,p=o(a),y=o("".slice),d=o(1..toFixed),h=function(t,e,r){return 0===e?r:e%2==1?h(t,e-1,r*t):h(t*t,e/2,r)},v=function(t,e,r){for(var n=-1,o=r;++n<6;)o+=e*t[n],t[n]=o%1e7,o=f(o/1e7)},b=function(t,e){for(var r=6,n=0;--r>=0;)n+=t[r],t[r]=f(n/e),n=n%e*1e7},g=function(t){for(var e=6,r="";--e>=0;)if(""!==r||0===e||0!==t[e]){var n=s(t[e]);r=""===r?n:r+p("0",7-n.length)+n}return r};n({target:"Number",proto:!0,forced:c((function(){return"0.000"!==d(8e-5,3)||"1"!==d(.9,0)||"1.25"!==d(1.255,2)||"1000000000000000128"!==d(0xde0b6b3a7640080,0)}))||!c((function(){d({})}))},{toFixed:function(t){var e,r,n,o,a=u(this),c=i(t),f=[0,0,0,0,0,0],d="",m="0";if(c<0||c>20)throw l("Incorrect fraction digits");if(a!=a)return"NaN";if(a<=-1e21||a>=1e21)return s(a);if(a<0&&(d="-",a=-a),a>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(a*h(2,69,1))-69)<0?a*h(2,-e,1):a/h(2,e,1),r*=4503599627370496,(e=52-e)>0){for(v(f,0,r),n=c;n>=7;)v(f,1e7,0),n-=7;for(v(f,h(10,n,1),0),n=e-1;n>=23;)b(f,1<<23),n-=23;b(f,1<0?d+((o=m.length)<=c?"0."+p("0",c-o)+m:y(m,0,o-c)+"."+y(m,o-c)):d+m}})},function(t,e,r){r(13)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){"use strict";var n=r(92),o=r(35),i=r(21),u=r(138),a=r(39),c=r(57),l=r(185),s=r(47),f=r(191),p=r(139),y=r(86),d=r(42),h=r(70),v=r(126),b=r(140),g=r(115),m=r(181),O=r(19),w=m.UNSUPPORTED_Y,_=4294967295,j=Math.min,S=[].push,x=i(/./.exec),E=i(S),P=i("".slice),k=!O((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));u("split",(function(t,e,r){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var i=d(s(this)),u=void 0===r?_:r>>>0;if(0===u)return[];if(void 0===t)return[i];if(!l(t))return o(e,i,t,u);for(var a,c,f,p=[],y=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,b=new RegExp(t.source,y+"g");(a=o(g,b,i))&&!((c=b.lastIndex)>h&&(E(p,P(i,h,a.index)),a.length>1&&a.index=u));)b.lastIndex===a.index&&b.lastIndex++;return h===i.length?!f&&x(b,"")||E(p,""):E(p,P(i,h)),p.length>u?v(p,0,u):p}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:o(e,this,t,r)}:e,[function(e,r){var n=s(this),u=c(e)?void 0:h(e,t);return u?o(u,e,n,r):o(i,d(n),e,r)},function(t,n){var o=a(this),u=d(t),c=r(i,o,u,n,i!==e);if(c.done)return c.value;var l=f(o,RegExp),s=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(w?"g":"y"),v=new l(w?"^(?:"+o.source+")":o,h),g=void 0===n?_:n>>>0;if(0===g)return[];if(0===u.length)return null===b(v,u)?[u]:[];for(var m=0,O=0,S=[];O * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var i,u="Expected a function",a="__lodash_hash_undefined__",c="__lodash_placeholder__",l=16,s=32,f=64,p=128,y=256,d=1/0,h=9007199254740991,v=NaN,b=4294967295,g=[["ary",p],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",s],["partialRight",f],["rearg",y]],m="[object Arguments]",O="[object Array]",w="[object Boolean]",_="[object Date]",j="[object Error]",S="[object Function]",x="[object GeneratorFunction]",E="[object Map]",P="[object Number]",k="[object Object]",A="[object Promise]",D="[object RegExp]",T="[object Set]",N="[object String]",M="[object Symbol]",C="[object WeakMap]",R="[object ArrayBuffer]",I="[object DataView]",L="[object Float32Array]",z="[object Float64Array]",B="[object Int8Array]",U="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",X="[object Uint8ClampedArray]",G="[object Uint16Array]",Y="[object Uint32Array]",V=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Z=RegExp($.source),J=RegExp(q.source),Q=/<%-([\s\S]+?)%>/g,tt=/<%([\s\S]+?)%>/g,et=/<%=([\s\S]+?)%>/g,rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,nt=/^\w*$/,ot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,it=/[\\^$.*+?()[\]{}|]/g,ut=RegExp(it.source),at=/^\s+/,ct=/\s/,lt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,st=/\{\n\/\* \[wrapped with (.+)\] \*/,ft=/,? & /,pt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yt=/[()=,{}\[\]\/\s]/,dt=/\\(\\)?/g,ht=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vt=/\w*$/,bt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,mt=/^\[object .+?Constructor\]$/,Ot=/^0o[0-7]+$/i,wt=/^(?:0|[1-9]\d*)$/,_t=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,jt=/($^)/,St=/['\n\r\u2028\u2029\\]/g,xt="\\ud800-\\udfff",Et="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Pt="\\u2700-\\u27bf",kt="a-z\\xdf-\\xf6\\xf8-\\xff",At="A-Z\\xc0-\\xd6\\xd8-\\xde",Dt="\\ufe0e\\ufe0f",Tt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nt="['’]",Mt="["+xt+"]",Ct="["+Tt+"]",Rt="["+Et+"]",It="\\d+",Lt="["+Pt+"]",zt="["+kt+"]",Bt="[^"+xt+Tt+It+Pt+kt+At+"]",Ut="\\ud83c[\\udffb-\\udfff]",Ft="[^"+xt+"]",Ht="(?:\\ud83c[\\udde6-\\uddff]){2}",Xt="[\\ud800-\\udbff][\\udc00-\\udfff]",Gt="["+At+"]",Yt="\\u200d",Vt="(?:"+zt+"|"+Bt+")",Wt="(?:"+Gt+"|"+Bt+")",Kt="(?:['’](?:d|ll|m|re|s|t|ve))?",$t="(?:['’](?:D|LL|M|RE|S|T|VE))?",qt="(?:"+Rt+"|"+Ut+")"+"?",Zt="["+Dt+"]?",Jt=Zt+qt+("(?:"+Yt+"(?:"+[Ft,Ht,Xt].join("|")+")"+Zt+qt+")*"),Qt="(?:"+[Lt,Ht,Xt].join("|")+")"+Jt,te="(?:"+[Ft+Rt+"?",Rt,Ht,Xt,Mt].join("|")+")",ee=RegExp(Nt,"g"),re=RegExp(Rt,"g"),ne=RegExp(Ut+"(?="+Ut+")|"+te+Jt,"g"),oe=RegExp([Gt+"?"+zt+"+"+Kt+"(?="+[Ct,Gt,"$"].join("|")+")",Wt+"+"+$t+"(?="+[Ct,Gt+Vt,"$"].join("|")+")",Gt+"?"+Vt+"+"+Kt,Gt+"+"+$t,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",It,Qt].join("|"),"g"),ie=RegExp("["+Yt+xt+Et+Dt+"]"),ue=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ae=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ce=-1,le={};le[L]=le[z]=le[B]=le[U]=le[F]=le[H]=le[X]=le[G]=le[Y]=!0,le[m]=le[O]=le[R]=le[w]=le[I]=le[_]=le[j]=le[S]=le[E]=le[P]=le[k]=le[D]=le[T]=le[N]=le[C]=!1;var se={};se[m]=se[O]=se[R]=se[I]=se[w]=se[_]=se[L]=se[z]=se[B]=se[U]=se[F]=se[E]=se[P]=se[k]=se[D]=se[T]=se[N]=se[M]=se[H]=se[X]=se[G]=se[Y]=!0,se[j]=se[S]=se[C]=!1;var fe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pe=parseFloat,ye=parseInt,de="object"==typeof t&&t&&t.Object===Object&&t,he="object"==typeof self&&self&&self.Object===Object&&self,ve=de||he||Function("return this")(),be=e&&!e.nodeType&&e,ge=be&&"object"==typeof n&&n&&!n.nodeType&&n,me=ge&&ge.exports===be,Oe=me&&de.process,we=function(){try{var t=ge&&ge.require&&ge.require("util").types;return t||Oe&&Oe.binding&&Oe.binding("util")}catch(t){}}(),_e=we&&we.isArrayBuffer,je=we&&we.isDate,Se=we&&we.isMap,xe=we&&we.isRegExp,Ee=we&&we.isSet,Pe=we&&we.isTypedArray;function ke(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}function Ae(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o-1}function Re(t,e,r){for(var n=-1,o=null==t?0:t.length;++n-1;);return r}function or(t,e){for(var r=t.length;r--&&Ge(e,t[r],0)>-1;);return r}var ir=$e({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),ur=$e({"&":"&","<":"<",">":">",'"':""","'":"'"});function ar(t){return"\\"+fe[t]}function cr(t){return ie.test(t)}function lr(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function sr(t,e){return function(r){return t(e(r))}}function fr(t,e){for(var r=-1,n=t.length,o=0,i=[];++r",""":'"',"'":"'"});var gr=function t(e){var r,n=(e=null==e?ve:gr.defaults(ve.Object(),e,gr.pick(ve,ae))).Array,o=e.Date,ct=e.Error,xt=e.Function,Et=e.Math,Pt=e.Object,kt=e.RegExp,At=e.String,Dt=e.TypeError,Tt=n.prototype,Nt=xt.prototype,Mt=Pt.prototype,Ct=e["__core-js_shared__"],Rt=Nt.toString,It=Mt.hasOwnProperty,Lt=0,zt=(r=/[^.]+$/.exec(Ct&&Ct.keys&&Ct.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Bt=Mt.toString,Ut=Rt.call(Pt),Ft=ve._,Ht=kt("^"+Rt.call(It).replace(it,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Xt=me?e.Buffer:i,Gt=e.Symbol,Yt=e.Uint8Array,Vt=Xt?Xt.allocUnsafe:i,Wt=sr(Pt.getPrototypeOf,Pt),Kt=Pt.create,$t=Mt.propertyIsEnumerable,qt=Tt.splice,Zt=Gt?Gt.isConcatSpreadable:i,Jt=Gt?Gt.iterator:i,Qt=Gt?Gt.toStringTag:i,te=function(){try{var t=yi(Pt,"defineProperty");return t({},"",{}),t}catch(t){}}(),ne=e.clearTimeout!==ve.clearTimeout&&e.clearTimeout,ie=o&&o.now!==ve.Date.now&&o.now,fe=e.setTimeout!==ve.setTimeout&&e.setTimeout,de=Et.ceil,he=Et.floor,be=Pt.getOwnPropertySymbols,ge=Xt?Xt.isBuffer:i,Oe=e.isFinite,we=Tt.join,Fe=sr(Pt.keys,Pt),$e=Et.max,mr=Et.min,Or=o.now,wr=e.parseInt,_r=Et.random,jr=Tt.reverse,Sr=yi(e,"DataView"),xr=yi(e,"Map"),Er=yi(e,"Promise"),Pr=yi(e,"Set"),kr=yi(e,"WeakMap"),Ar=yi(Pt,"create"),Dr=kr&&new kr,Tr={},Nr=Bi(Sr),Mr=Bi(xr),Cr=Bi(Er),Rr=Bi(Pr),Ir=Bi(kr),Lr=Gt?Gt.prototype:i,zr=Lr?Lr.valueOf:i,Br=Lr?Lr.toString:i;function Ur(t){if(ra(t)&&!Yu(t)&&!(t instanceof Gr)){if(t instanceof Xr)return t;if(It.call(t,"__wrapped__"))return Ui(t)}return new Xr(t)}var Fr=function(){function t(){}return function(e){if(!ea(e))return{};if(Kt)return Kt(e);t.prototype=e;var r=new t;return t.prototype=i,r}}();function Hr(){}function Xr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=i}function Gr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=b,this.__views__=[]}function Yr(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ln(t,e,r,n,o,u){var a,c=1&e,l=2&e,s=4&e;if(r&&(a=o?r(t,n,o,u):r(t)),a!==i)return a;if(!ea(t))return t;var f=Yu(t);if(f){if(a=function(t){var e=t.length,r=new t.constructor(e);e&&"string"==typeof t[0]&&It.call(t,"index")&&(r.index=t.index,r.input=t.input);return r}(t),!c)return To(t,a)}else{var p=vi(t),y=p==S||p==x;if($u(t))return xo(t,c);if(p==k||p==m||y&&!o){if(a=l||y?{}:gi(t),!c)return l?function(t,e){return No(t,hi(t),e)}(t,function(t,e){return t&&No(e,Ma(e),t)}(a,t)):function(t,e){return No(t,di(t),e)}(t,on(a,t))}else{if(!se[p])return o?t:{};a=function(t,e,r){var n=t.constructor;switch(e){case R:return Eo(t);case w:case _:return new n(+t);case I:return function(t,e){var r=e?Eo(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case L:case z:case B:case U:case F:case H:case X:case G:case Y:return Po(t,r);case E:return new n;case P:case N:return new n(t);case D:return function(t){var e=new t.constructor(t.source,vt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case T:return new n;case M:return o=t,zr?Pt(zr.call(o)):{}}var o}(t,p,c)}}u||(u=new $r);var d=u.get(t);if(d)return d;u.set(t,a),aa(t)?t.forEach((function(n){a.add(ln(n,e,r,n,t,u))})):na(t)&&t.forEach((function(n,o){a.set(o,ln(n,e,r,o,t,u))}));var h=f?i:(s?l?ui:ii:l?Ma:Na)(t);return De(h||t,(function(n,o){h&&(n=t[o=n]),en(a,o,ln(n,e,r,o,t,u))})),a}function sn(t,e,r){var n=r.length;if(null==t)return!n;for(t=Pt(t);n--;){var o=r[n],u=e[o],a=t[o];if(a===i&&!(o in t)||!u(a))return!1}return!0}function fn(t,e,r){if("function"!=typeof t)throw new Dt(u);return Ni((function(){t.apply(i,r)}),e)}function pn(t,e,r,n){var o=-1,i=Ce,u=!0,a=t.length,c=[],l=e.length;if(!a)return c;r&&(e=Ie(e,tr(r))),n?(i=Re,u=!1):e.length>=200&&(i=rr,u=!1,e=new Kr(e));t:for(;++o-1},Vr.prototype.set=function(t,e){var r=this.__data__,n=rn(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Wr.prototype.clear=function(){this.size=0,this.__data__={hash:new Yr,map:new(xr||Vr),string:new Yr}},Wr.prototype.delete=function(t){var e=fi(this,t).delete(t);return this.size-=e?1:0,e},Wr.prototype.get=function(t){return fi(this,t).get(t)},Wr.prototype.has=function(t){return fi(this,t).has(t)},Wr.prototype.set=function(t,e){var r=fi(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},Kr.prototype.add=Kr.prototype.push=function(t){return this.__data__.set(t,a),this},Kr.prototype.has=function(t){return this.__data__.has(t)},$r.prototype.clear=function(){this.__data__=new Vr,this.size=0},$r.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},$r.prototype.get=function(t){return this.__data__.get(t)},$r.prototype.has=function(t){return this.__data__.has(t)},$r.prototype.set=function(t,e){var r=this.__data__;if(r instanceof Vr){var n=r.__data__;if(!xr||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Wr(n)}return r.set(t,e),this.size=r.size,this};var yn=Ro(wn),dn=Ro(_n,!0);function hn(t,e){var r=!0;return yn(t,(function(t,n,o){return r=!!e(t,n,o)})),r}function vn(t,e,r){for(var n=-1,o=t.length;++n0&&r(a)?e>1?gn(a,e-1,r,n,o):Le(o,a):n||(o[o.length]=a)}return o}var mn=Io(),On=Io(!0);function wn(t,e){return t&&mn(t,e,Na)}function _n(t,e){return t&&On(t,e,Na)}function jn(t,e){return Me(e,(function(e){return Ju(t[e])}))}function Sn(t,e){for(var r=0,n=(e=wo(e,t)).length;null!=t&&re}function kn(t,e){return null!=t&&It.call(t,e)}function An(t,e){return null!=t&&e in Pt(t)}function Dn(t,e,r){for(var o=r?Re:Ce,u=t[0].length,a=t.length,c=a,l=n(a),s=1/0,f=[];c--;){var p=t[c];c&&e&&(p=Ie(p,tr(e))),s=mr(p.length,s),l[c]=!r&&(e||u>=120&&p.length>=120)?new Kr(c&&p):i}p=t[0];var y=-1,d=l[0];t:for(;++y=a?c:c*("desc"==r[n]?-1:1)}return t.index-e.index}(t,e,r)}))}function Vn(t,e,r){for(var n=-1,o=e.length,i={};++n-1;)a!==t&&qt.call(a,c,1),qt.call(t,c,1);return t}function Kn(t,e){for(var r=t?e.length:0,n=r-1;r--;){var o=e[r];if(r==n||o!==i){var i=o;Oi(o)?qt.call(t,o,1):po(t,o)}}return t}function $n(t,e){return t+he(_r()*(e-t+1))}function qn(t,e){var r="";if(!t||e<1||e>h)return r;do{e%2&&(r+=t),(e=he(e/2))&&(t+=t)}while(e);return r}function Zn(t,e){return Mi(ki(t,e,oc),t+"")}function Jn(t){return Zr(Fa(t))}function Qn(t,e){var r=Fa(t);return Ii(r,cn(e,0,r.length))}function to(t,e,r,n){if(!ea(t))return t;for(var o=-1,u=(e=wo(e,t)).length,a=u-1,c=t;null!=c&&++oi?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var u=n(i);++o>>1,u=t[i];null!==u&&!la(u)&&(r?u<=e:u=200){var l=e?null:Zo(t);if(l)return pr(l);u=!1,o=rr,c=new Kr}else c=e?[]:a;t:for(;++n=n?t:oo(t,e,r)}var So=ne||function(t){return ve.clearTimeout(t)};function xo(t,e){if(e)return t.slice();var r=t.length,n=Vt?Vt(r):new t.constructor(r);return t.copy(n),n}function Eo(t){var e=new t.constructor(t.byteLength);return new Yt(e).set(new Yt(t)),e}function Po(t,e){var r=e?Eo(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}function ko(t,e){if(t!==e){var r=t!==i,n=null===t,o=t==t,u=la(t),a=e!==i,c=null===e,l=e==e,s=la(e);if(!c&&!s&&!u&&t>e||u&&a&&l&&!c&&!s||n&&a&&l||!r&&l||!o)return 1;if(!n&&!u&&!s&&t1?r[o-1]:i,a=o>2?r[2]:i;for(u=t.length>3&&"function"==typeof u?(o--,u):i,a&&wi(r[0],r[1],a)&&(u=o<3?i:u,o=1),e=Pt(e);++n-1?o[u?e[a]:a]:i}}function Fo(t){return oi((function(e){var r=e.length,n=r,o=Xr.prototype.thru;for(t&&e.reverse();n--;){var a=e[n];if("function"!=typeof a)throw new Dt(u);if(o&&!c&&"wrapper"==ci(a))var c=new Xr([],!0)}for(n=c?n:r;++n1&&O.reverse(),y&&sc))return!1;var s=u.get(t),f=u.get(e);if(s&&f)return s==e&&f==t;var p=-1,y=!0,d=2&r?new Kr:i;for(u.set(t,e),u.set(e,t);++p-1&&t%1==0&&t1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(lt,"{\n/* [wrapped with "+e+"] */\n")}(n,function(t,e){return De(g,(function(r){var n="_."+r[0];e&r[1]&&!Ce(t,n)&&t.push(n)})),t.sort()}(function(t){var e=t.match(st);return e?e[1].split(ft):[]}(n),r)))}function Ri(t){var e=0,r=0;return function(){var n=Or(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(i,arguments)}}function Ii(t,e){var r=-1,n=t.length,o=n-1;for(e=e===i?n:e;++r1?t[e-1]:i;return r="function"==typeof r?(t.pop(),r):i,uu(t,r)}));function yu(t){var e=Ur(t);return e.__chain__=!0,e}function du(t,e){return e(t)}var hu=oi((function(t){var e=t.length,r=e?t[0]:0,n=this.__wrapped__,o=function(e){return an(e,t)};return!(e>1||this.__actions__.length)&&n instanceof Gr&&Oi(r)?((n=n.slice(r,+r+(e?1:0))).__actions__.push({func:du,args:[o],thisArg:i}),new Xr(n,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(o)}));var vu=Mo((function(t,e,r){It.call(t,r)?++t[r]:un(t,r,1)}));var bu=Uo(Gi),gu=Uo(Yi);function mu(t,e){return(Yu(t)?De:yn)(t,si(e,3))}function Ou(t,e){return(Yu(t)?Te:dn)(t,si(e,3))}var wu=Mo((function(t,e,r){It.call(t,r)?t[r].push(e):un(t,r,[e])}));var _u=Zn((function(t,e,r){var o=-1,i="function"==typeof e,u=Wu(t)?n(t.length):[];return yn(t,(function(t){u[++o]=i?ke(e,t,r):Tn(t,e,r)})),u})),ju=Mo((function(t,e,r){un(t,r,e)}));function Su(t,e){return(Yu(t)?Ie:Un)(t,si(e,3))}var xu=Mo((function(t,e,r){t[r?0:1].push(e)}),(function(){return[[],[]]}));var Eu=Zn((function(t,e){if(null==t)return[];var r=e.length;return r>1&&wi(t,e[0],e[1])?e=[]:r>2&&wi(e[0],e[1],e[2])&&(e=[e[0]]),Yn(t,gn(e,1),[])})),Pu=ie||function(){return ve.Date.now()};function ku(t,e,r){return e=r?i:e,e=t&&null==e?t.length:e,Qo(t,p,i,i,i,i,e)}function Au(t,e){var r;if("function"!=typeof e)throw new Dt(u);return t=ha(t),function(){return--t>0&&(r=e.apply(this,arguments)),t<=1&&(e=i),r}}var Du=Zn((function(t,e,r){var n=1;if(r.length){var o=fr(r,li(Du));n|=s}return Qo(t,n,e,r,o)})),Tu=Zn((function(t,e,r){var n=3;if(r.length){var o=fr(r,li(Tu));n|=s}return Qo(e,n,t,r,o)}));function Nu(t,e,r){var n,o,a,c,l,s,f=0,p=!1,y=!1,d=!0;if("function"!=typeof t)throw new Dt(u);function h(e){var r=n,u=o;return n=o=i,f=e,c=t.apply(u,r)}function v(t){var r=t-s;return s===i||r>=e||r<0||y&&t-f>=a}function b(){var t=Pu();if(v(t))return g(t);l=Ni(b,function(t){var r=e-(t-s);return y?mr(r,a-(t-f)):r}(t))}function g(t){return l=i,d&&n?h(t):(n=o=i,c)}function m(){var t=Pu(),r=v(t);if(n=arguments,o=this,s=t,r){if(l===i)return function(t){return f=t,l=Ni(b,e),p?h(t):c}(s);if(y)return So(l),l=Ni(b,e),h(s)}return l===i&&(l=Ni(b,e)),c}return e=ba(e)||0,ea(r)&&(p=!!r.leading,a=(y="maxWait"in r)?$e(ba(r.maxWait)||0,e):a,d="trailing"in r?!!r.trailing:d),m.cancel=function(){l!==i&&So(l),f=0,n=s=o=l=i},m.flush=function(){return l===i?c:g(Pu())},m}var Mu=Zn((function(t,e){return fn(t,1,e)})),Cu=Zn((function(t,e,r){return fn(t,ba(e)||0,r)}));function Ru(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Dt(u);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(Ru.Cache||Wr),r}function Iu(t){if("function"!=typeof t)throw new Dt(u);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ru.Cache=Wr;var Lu=_o((function(t,e){var r=(e=1==e.length&&Yu(e[0])?Ie(e[0],tr(si())):Ie(gn(e,1),tr(si()))).length;return Zn((function(n){for(var o=-1,i=mr(n.length,r);++o=e})),Gu=Nn(function(){return arguments}())?Nn:function(t){return ra(t)&&It.call(t,"callee")&&!$t.call(t,"callee")},Yu=n.isArray,Vu=_e?tr(_e):function(t){return ra(t)&&En(t)==R};function Wu(t){return null!=t&&ta(t.length)&&!Ju(t)}function Ku(t){return ra(t)&&Wu(t)}var $u=ge||bc,qu=je?tr(je):function(t){return ra(t)&&En(t)==_};function Zu(t){if(!ra(t))return!1;var e=En(t);return e==j||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ia(t)}function Ju(t){if(!ea(t))return!1;var e=En(t);return e==S||e==x||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Qu(t){return"number"==typeof t&&t==ha(t)}function ta(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=h}function ea(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function ra(t){return null!=t&&"object"==typeof t}var na=Se?tr(Se):function(t){return ra(t)&&vi(t)==E};function oa(t){return"number"==typeof t||ra(t)&&En(t)==P}function ia(t){if(!ra(t)||En(t)!=k)return!1;var e=Wt(t);if(null===e)return!0;var r=It.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Rt.call(r)==Ut}var ua=xe?tr(xe):function(t){return ra(t)&&En(t)==D};var aa=Ee?tr(Ee):function(t){return ra(t)&&vi(t)==T};function ca(t){return"string"==typeof t||!Yu(t)&&ra(t)&&En(t)==N}function la(t){return"symbol"==typeof t||ra(t)&&En(t)==M}var sa=Pe?tr(Pe):function(t){return ra(t)&&ta(t.length)&&!!le[En(t)]};var fa=Ko(Bn),pa=Ko((function(t,e){return t<=e}));function ya(t){if(!t)return[];if(Wu(t))return ca(t)?hr(t):To(t);if(Jt&&t[Jt])return function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}(t[Jt]());var e=vi(t);return(e==E?lr:e==T?pr:Fa)(t)}function da(t){return t?(t=ba(t))===d||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function ha(t){var e=da(t),r=e%1;return e==e?r?e-r:e:0}function va(t){return t?cn(ha(t),0,b):0}function ba(t){if("number"==typeof t)return t;if(la(t))return v;if(ea(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=ea(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Qe(t);var r=gt.test(t);return r||Ot.test(t)?ye(t.slice(2),r?2:8):bt.test(t)?v:+t}function ga(t){return No(t,Ma(t))}function ma(t){return null==t?"":so(t)}var Oa=Co((function(t,e){if(xi(e)||Wu(e))No(e,Na(e),t);else for(var r in e)It.call(e,r)&&en(t,r,e[r])})),wa=Co((function(t,e){No(e,Ma(e),t)})),_a=Co((function(t,e,r,n){No(e,Ma(e),t,n)})),ja=Co((function(t,e,r,n){No(e,Na(e),t,n)})),Sa=oi(an);var xa=Zn((function(t,e){t=Pt(t);var r=-1,n=e.length,o=n>2?e[2]:i;for(o&&wi(e[0],e[1],o)&&(n=1);++r1),e})),No(t,ui(t),r),n&&(r=ln(r,7,ri));for(var o=e.length;o--;)po(r,e[o]);return r}));var La=oi((function(t,e){return null==t?{}:function(t,e){return Vn(t,e,(function(e,r){return ka(t,r)}))}(t,e)}));function za(t,e){if(null==t)return{};var r=Ie(ui(t),(function(t){return[t]}));return e=si(e),Vn(t,r,(function(t,r){return e(t,r[0])}))}var Ba=Jo(Na),Ua=Jo(Ma);function Fa(t){return null==t?[]:er(t,Na(t))}var Ha=zo((function(t,e,r){return e=e.toLowerCase(),t+(r?Xa(e):e)}));function Xa(t){return Za(ma(t).toLowerCase())}function Ga(t){return(t=ma(t))&&t.replace(_t,ir).replace(re,"")}var Ya=zo((function(t,e,r){return t+(r?"-":"")+e.toLowerCase()})),Va=zo((function(t,e,r){return t+(r?" ":"")+e.toLowerCase()})),Wa=Lo("toLowerCase");var Ka=zo((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));var $a=zo((function(t,e,r){return t+(r?" ":"")+Za(e)}));var qa=zo((function(t,e,r){return t+(r?" ":"")+e.toUpperCase()})),Za=Lo("toUpperCase");function Ja(t,e,r){return t=ma(t),(e=r?i:e)===i?function(t){return ue.test(t)}(t)?function(t){return t.match(oe)||[]}(t):function(t){return t.match(pt)||[]}(t):t.match(e)||[]}var Qa=Zn((function(t,e){try{return ke(t,i,e)}catch(t){return Zu(t)?t:new ct(t)}})),tc=oi((function(t,e){return De(e,(function(e){e=zi(e),un(t,e,Du(t[e],t))})),t}));function ec(t){return function(){return t}}var rc=Fo(),nc=Fo(!0);function oc(t){return t}function ic(t){return In("function"==typeof t?t:ln(t,1))}var uc=Zn((function(t,e){return function(r){return Tn(r,t,e)}})),ac=Zn((function(t,e){return function(r){return Tn(t,r,e)}}));function cc(t,e,r){var n=Na(e),o=jn(e,n);null!=r||ea(e)&&(o.length||!n.length)||(r=e,e=t,t=this,o=jn(e,Na(e)));var i=!(ea(r)&&"chain"in r&&!r.chain),u=Ju(t);return De(o,(function(r){var n=e[r];t[r]=n,u&&(t.prototype[r]=function(){var e=this.__chain__;if(i||e){var r=t(this.__wrapped__);return(r.__actions__=To(this.__actions__)).push({func:n,args:arguments,thisArg:t}),r.__chain__=e,r}return n.apply(t,Le([this.value()],arguments))})})),t}function lc(){}var sc=Yo(Ie),fc=Yo(Ne),pc=Yo(Ue);function yc(t){return _i(t)?Ke(zi(t)):function(t){return function(e){return Sn(e,t)}}(t)}var dc=Wo(),hc=Wo(!0);function vc(){return[]}function bc(){return!1}var gc=Go((function(t,e){return t+e}),0),mc=qo("ceil"),Oc=Go((function(t,e){return t/e}),1),wc=qo("floor");var _c,jc=Go((function(t,e){return t*e}),1),Sc=qo("round"),xc=Go((function(t,e){return t-e}),0);return Ur.after=function(t,e){if("function"!=typeof e)throw new Dt(u);return t=ha(t),function(){if(--t<1)return e.apply(this,arguments)}},Ur.ary=ku,Ur.assign=Oa,Ur.assignIn=wa,Ur.assignInWith=_a,Ur.assignWith=ja,Ur.at=Sa,Ur.before=Au,Ur.bind=Du,Ur.bindAll=tc,Ur.bindKey=Tu,Ur.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Yu(t)?t:[t]},Ur.chain=yu,Ur.chunk=function(t,e,r){e=(r?wi(t,e,r):e===i)?1:$e(ha(e),0);var o=null==t?0:t.length;if(!o||e<1)return[];for(var u=0,a=0,c=n(de(o/e));uo?0:o+r),(n=n===i||n>o?o:ha(n))<0&&(n+=o),n=r>n?0:va(n);r>>0)?(t=ma(t))&&("string"==typeof e||null!=e&&!ua(e))&&!(e=so(e))&&cr(t)?jo(hr(t),0,r):t.split(e,r):[]},Ur.spread=function(t,e){if("function"!=typeof t)throw new Dt(u);return e=null==e?0:$e(ha(e),0),Zn((function(r){var n=r[e],o=jo(r,0,e);return n&&Le(o,n),ke(t,this,o)}))},Ur.tail=function(t){var e=null==t?0:t.length;return e?oo(t,1,e):[]},Ur.take=function(t,e,r){return t&&t.length?oo(t,0,(e=r||e===i?1:ha(e))<0?0:e):[]},Ur.takeRight=function(t,e,r){var n=null==t?0:t.length;return n?oo(t,(e=n-(e=r||e===i?1:ha(e)))<0?0:e,n):[]},Ur.takeRightWhile=function(t,e){return t&&t.length?ho(t,si(e,3),!1,!0):[]},Ur.takeWhile=function(t,e){return t&&t.length?ho(t,si(e,3)):[]},Ur.tap=function(t,e){return e(t),t},Ur.throttle=function(t,e,r){var n=!0,o=!0;if("function"!=typeof t)throw new Dt(u);return ea(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Nu(t,e,{leading:n,maxWait:e,trailing:o})},Ur.thru=du,Ur.toArray=ya,Ur.toPairs=Ba,Ur.toPairsIn=Ua,Ur.toPath=function(t){return Yu(t)?Ie(t,zi):la(t)?[t]:To(Li(ma(t)))},Ur.toPlainObject=ga,Ur.transform=function(t,e,r){var n=Yu(t),o=n||$u(t)||sa(t);if(e=si(e,4),null==r){var i=t&&t.constructor;r=o?n?new i:[]:ea(t)&&Ju(i)?Fr(Wt(t)):{}}return(o?De:wn)(t,(function(t,n,o){return e(r,t,n,o)})),r},Ur.unary=function(t){return ku(t,1)},Ur.union=ru,Ur.unionBy=nu,Ur.unionWith=ou,Ur.uniq=function(t){return t&&t.length?fo(t):[]},Ur.uniqBy=function(t,e){return t&&t.length?fo(t,si(e,2)):[]},Ur.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?fo(t,i,e):[]},Ur.unset=function(t,e){return null==t||po(t,e)},Ur.unzip=iu,Ur.unzipWith=uu,Ur.update=function(t,e,r){return null==t?t:yo(t,e,Oo(r))},Ur.updateWith=function(t,e,r,n){return n="function"==typeof n?n:i,null==t?t:yo(t,e,Oo(r),n)},Ur.values=Fa,Ur.valuesIn=function(t){return null==t?[]:er(t,Ma(t))},Ur.without=au,Ur.words=Ja,Ur.wrap=function(t,e){return zu(Oo(e),t)},Ur.xor=cu,Ur.xorBy=lu,Ur.xorWith=su,Ur.zip=fu,Ur.zipObject=function(t,e){return go(t||[],e||[],en)},Ur.zipObjectDeep=function(t,e){return go(t||[],e||[],to)},Ur.zipWith=pu,Ur.entries=Ba,Ur.entriesIn=Ua,Ur.extend=wa,Ur.extendWith=_a,cc(Ur,Ur),Ur.add=gc,Ur.attempt=Qa,Ur.camelCase=Ha,Ur.capitalize=Xa,Ur.ceil=mc,Ur.clamp=function(t,e,r){return r===i&&(r=e,e=i),r!==i&&(r=(r=ba(r))==r?r:0),e!==i&&(e=(e=ba(e))==e?e:0),cn(ba(t),e,r)},Ur.clone=function(t){return ln(t,4)},Ur.cloneDeep=function(t){return ln(t,5)},Ur.cloneDeepWith=function(t,e){return ln(t,5,e="function"==typeof e?e:i)},Ur.cloneWith=function(t,e){return ln(t,4,e="function"==typeof e?e:i)},Ur.conformsTo=function(t,e){return null==e||sn(t,e,Na(e))},Ur.deburr=Ga,Ur.defaultTo=function(t,e){return null==t||t!=t?e:t},Ur.divide=Oc,Ur.endsWith=function(t,e,r){t=ma(t),e=so(e);var n=t.length,o=r=r===i?n:cn(ha(r),0,n);return(r-=e.length)>=0&&t.slice(r,o)==e},Ur.eq=Fu,Ur.escape=function(t){return(t=ma(t))&&J.test(t)?t.replace(q,ur):t},Ur.escapeRegExp=function(t){return(t=ma(t))&&ut.test(t)?t.replace(it,"\\$&"):t},Ur.every=function(t,e,r){var n=Yu(t)?Ne:hn;return r&&wi(t,e,r)&&(e=i),n(t,si(e,3))},Ur.find=bu,Ur.findIndex=Gi,Ur.findKey=function(t,e){return He(t,si(e,3),wn)},Ur.findLast=gu,Ur.findLastIndex=Yi,Ur.findLastKey=function(t,e){return He(t,si(e,3),_n)},Ur.floor=wc,Ur.forEach=mu,Ur.forEachRight=Ou,Ur.forIn=function(t,e){return null==t?t:mn(t,si(e,3),Ma)},Ur.forInRight=function(t,e){return null==t?t:On(t,si(e,3),Ma)},Ur.forOwn=function(t,e){return t&&wn(t,si(e,3))},Ur.forOwnRight=function(t,e){return t&&_n(t,si(e,3))},Ur.get=Pa,Ur.gt=Hu,Ur.gte=Xu,Ur.has=function(t,e){return null!=t&&bi(t,e,kn)},Ur.hasIn=ka,Ur.head=Wi,Ur.identity=oc,Ur.includes=function(t,e,r,n){t=Wu(t)?t:Fa(t),r=r&&!n?ha(r):0;var o=t.length;return r<0&&(r=$e(o+r,0)),ca(t)?r<=o&&t.indexOf(e,r)>-1:!!o&&Ge(t,e,r)>-1},Ur.indexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=null==r?0:ha(r);return o<0&&(o=$e(n+o,0)),Ge(t,e,o)},Ur.inRange=function(t,e,r){return e=da(e),r===i?(r=e,e=0):r=da(r),function(t,e,r){return t>=mr(e,r)&&t<$e(e,r)}(t=ba(t),e,r)},Ur.invoke=Ta,Ur.isArguments=Gu,Ur.isArray=Yu,Ur.isArrayBuffer=Vu,Ur.isArrayLike=Wu,Ur.isArrayLikeObject=Ku,Ur.isBoolean=function(t){return!0===t||!1===t||ra(t)&&En(t)==w},Ur.isBuffer=$u,Ur.isDate=qu,Ur.isElement=function(t){return ra(t)&&1===t.nodeType&&!ia(t)},Ur.isEmpty=function(t){if(null==t)return!0;if(Wu(t)&&(Yu(t)||"string"==typeof t||"function"==typeof t.splice||$u(t)||sa(t)||Gu(t)))return!t.length;var e=vi(t);if(e==E||e==T)return!t.size;if(xi(t))return!Ln(t).length;for(var r in t)if(It.call(t,r))return!1;return!0},Ur.isEqual=function(t,e){return Mn(t,e)},Ur.isEqualWith=function(t,e,r){var n=(r="function"==typeof r?r:i)?r(t,e):i;return n===i?Mn(t,e,i,r):!!n},Ur.isError=Zu,Ur.isFinite=function(t){return"number"==typeof t&&Oe(t)},Ur.isFunction=Ju,Ur.isInteger=Qu,Ur.isLength=ta,Ur.isMap=na,Ur.isMatch=function(t,e){return t===e||Cn(t,e,pi(e))},Ur.isMatchWith=function(t,e,r){return r="function"==typeof r?r:i,Cn(t,e,pi(e),r)},Ur.isNaN=function(t){return oa(t)&&t!=+t},Ur.isNative=function(t){if(Si(t))throw new ct("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rn(t)},Ur.isNil=function(t){return null==t},Ur.isNull=function(t){return null===t},Ur.isNumber=oa,Ur.isObject=ea,Ur.isObjectLike=ra,Ur.isPlainObject=ia,Ur.isRegExp=ua,Ur.isSafeInteger=function(t){return Qu(t)&&t>=-9007199254740991&&t<=h},Ur.isSet=aa,Ur.isString=ca,Ur.isSymbol=la,Ur.isTypedArray=sa,Ur.isUndefined=function(t){return t===i},Ur.isWeakMap=function(t){return ra(t)&&vi(t)==C},Ur.isWeakSet=function(t){return ra(t)&&"[object WeakSet]"==En(t)},Ur.join=function(t,e){return null==t?"":we.call(t,e)},Ur.kebabCase=Ya,Ur.last=Zi,Ur.lastIndexOf=function(t,e,r){var n=null==t?0:t.length;if(!n)return-1;var o=n;return r!==i&&(o=(o=ha(r))<0?$e(n+o,0):mr(o,n-1)),e==e?function(t,e,r){for(var n=r+1;n--;)if(t[n]===e)return n;return n}(t,e,o):Xe(t,Ve,o,!0)},Ur.lowerCase=Va,Ur.lowerFirst=Wa,Ur.lt=fa,Ur.lte=pa,Ur.max=function(t){return t&&t.length?vn(t,oc,Pn):i},Ur.maxBy=function(t,e){return t&&t.length?vn(t,si(e,2),Pn):i},Ur.mean=function(t){return We(t,oc)},Ur.meanBy=function(t,e){return We(t,si(e,2))},Ur.min=function(t){return t&&t.length?vn(t,oc,Bn):i},Ur.minBy=function(t,e){return t&&t.length?vn(t,si(e,2),Bn):i},Ur.stubArray=vc,Ur.stubFalse=bc,Ur.stubObject=function(){return{}},Ur.stubString=function(){return""},Ur.stubTrue=function(){return!0},Ur.multiply=jc,Ur.nth=function(t,e){return t&&t.length?Gn(t,ha(e)):i},Ur.noConflict=function(){return ve._===this&&(ve._=Ft),this},Ur.noop=lc,Ur.now=Pu,Ur.pad=function(t,e,r){t=ma(t);var n=(e=ha(e))?dr(t):0;if(!e||n>=e)return t;var o=(e-n)/2;return Vo(he(o),r)+t+Vo(de(o),r)},Ur.padEnd=function(t,e,r){t=ma(t);var n=(e=ha(e))?dr(t):0;return e&&ne){var n=t;t=e,e=n}if(r||t%1||e%1){var o=_r();return mr(t+o*(e-t+pe("1e-"+((o+"").length-1))),e)}return $n(t,e)},Ur.reduce=function(t,e,r){var n=Yu(t)?ze:qe,o=arguments.length<3;return n(t,si(e,4),r,o,yn)},Ur.reduceRight=function(t,e,r){var n=Yu(t)?Be:qe,o=arguments.length<3;return n(t,si(e,4),r,o,dn)},Ur.repeat=function(t,e,r){return e=(r?wi(t,e,r):e===i)?1:ha(e),qn(ma(t),e)},Ur.replace=function(){var t=arguments,e=ma(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Ur.result=function(t,e,r){var n=-1,o=(e=wo(e,t)).length;for(o||(o=1,t=i);++nh)return[];var r=b,n=mr(t,b);e=si(e),t-=b;for(var o=Je(n,e);++r=u)return t;var c=r-dr(n);if(c<1)return n;var l=a?jo(a,0,c).join(""):t.slice(0,c);if(o===i)return l+n;if(a&&(c+=l.length-c),ua(o)){if(t.slice(c).search(o)){var s,f=l;for(o.global||(o=kt(o.source,ma(vt.exec(o))+"g")),o.lastIndex=0;s=o.exec(f);)var p=s.index;l=l.slice(0,p===i?c:p)}}else if(t.indexOf(so(o),c)!=c){var y=l.lastIndexOf(o);y>-1&&(l=l.slice(0,y))}return l+n},Ur.unescape=function(t){return(t=ma(t))&&Z.test(t)?t.replace($,br):t},Ur.uniqueId=function(t){var e=++Lt;return ma(t)+e},Ur.upperCase=qa,Ur.upperFirst=Za,Ur.each=mu,Ur.eachRight=Ou,Ur.first=Wi,cc(Ur,(_c={},wn(Ur,(function(t,e){It.call(Ur.prototype,e)||(_c[e]=t)})),_c),{chain:!1}),Ur.VERSION="4.17.21",De(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Ur[t].placeholder=Ur})),De(["drop","take"],(function(t,e){Gr.prototype[t]=function(r){r=r===i?1:$e(ha(r),0);var n=this.__filtered__&&!e?new Gr(this):this.clone();return n.__filtered__?n.__takeCount__=mr(r,n.__takeCount__):n.__views__.push({size:mr(r,b),type:t+(n.__dir__<0?"Right":"")}),n},Gr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),De(["filter","map","takeWhile"],(function(t,e){var r=e+1,n=1==r||3==r;Gr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:si(t,3),type:r}),e.__filtered__=e.__filtered__||n,e}})),De(["head","last"],(function(t,e){var r="take"+(e?"Right":"");Gr.prototype[t]=function(){return this[r](1).value()[0]}})),De(["initial","tail"],(function(t,e){var r="drop"+(e?"":"Right");Gr.prototype[t]=function(){return this.__filtered__?new Gr(this):this[r](1)}})),Gr.prototype.compact=function(){return this.filter(oc)},Gr.prototype.find=function(t){return this.filter(t).head()},Gr.prototype.findLast=function(t){return this.reverse().find(t)},Gr.prototype.invokeMap=Zn((function(t,e){return"function"==typeof t?new Gr(this):this.map((function(r){return Tn(r,t,e)}))})),Gr.prototype.reject=function(t){return this.filter(Iu(si(t)))},Gr.prototype.slice=function(t,e){t=ha(t);var r=this;return r.__filtered__&&(t>0||e<0)?new Gr(r):(t<0?r=r.takeRight(-t):t&&(r=r.drop(t)),e!==i&&(r=(e=ha(e))<0?r.dropRight(-e):r.take(e-t)),r)},Gr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Gr.prototype.toArray=function(){return this.take(b)},wn(Gr.prototype,(function(t,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),n=/^(?:head|last)$/.test(e),o=Ur[n?"take"+("last"==e?"Right":""):e],u=n||/^find/.test(e);o&&(Ur.prototype[e]=function(){var e=this.__wrapped__,a=n?[1]:arguments,c=e instanceof Gr,l=a[0],s=c||Yu(e),f=function(t){var e=o.apply(Ur,Le([t],a));return n&&p?e[0]:e};s&&r&&"function"==typeof l&&1!=l.length&&(c=s=!1);var p=this.__chain__,y=!!this.__actions__.length,d=u&&!p,h=c&&!y;if(!u&&s){e=h?e:new Gr(this);var v=t.apply(e,a);return v.__actions__.push({func:du,args:[f],thisArg:i}),new Xr(v,p)}return d&&h?t.apply(this,a):(v=this.thru(f),d?n?v.value()[0]:v.value():v)})})),De(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Tt[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",n=/^(?:pop|shift)$/.test(t);Ur.prototype[t]=function(){var t=arguments;if(n&&!this.__chain__){var o=this.value();return e.apply(Yu(o)?o:[],t)}return this[r]((function(r){return e.apply(Yu(r)?r:[],t)}))}})),wn(Gr.prototype,(function(t,e){var r=Ur[e];if(r){var n=r.name+"";It.call(Tr,n)||(Tr[n]=[]),Tr[n].push({name:e,func:r})}})),Tr[Ho(i,2).name]=[{name:"wrapper",func:i}],Gr.prototype.clone=function(){var t=new Gr(this.__wrapped__);return t.__actions__=To(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=To(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=To(this.__views__),t},Gr.prototype.reverse=function(){if(this.__filtered__){var t=new Gr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Gr.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,r=Yu(t),n=e<0,o=r?t.length:0,i=function(t,e,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},Ur.prototype.plant=function(t){for(var e,r=this;r instanceof Hr;){var n=Ui(r);n.__index__=0,n.__values__=i,e?o.__wrapped__=n:e=n;var o=n;r=r.__wrapped__}return o.__wrapped__=t,e},Ur.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Gr){var e=t;return this.__actions__.length&&(e=new Gr(this)),(e=e.reverse()).__actions__.push({func:du,args:[eu],thisArg:i}),new Xr(e,this.__chain__)}return this.thru(eu)},Ur.prototype.toJSON=Ur.prototype.valueOf=Ur.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},Ur.prototype.first=Ur.prototype.head,Jt&&(Ur.prototype[Jt]=function(){return this}),Ur}();ve._=gr,(o=function(){return gr}.call(e,r,e,n))===i||(n.exports=o)}).call(this)}).call(this,r(77),r(257)(t))},function(t,e,r){var n=r(35),o=r(41),i=r(80),u=r(70),a=r(150),c=r(33),l=TypeError,s=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=u(t,s);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e){var r="object"==typeof document&&document.all,n=void 0===r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}},function(t,e,r){var n=r(69);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(35),o=r(30),i=r(41),u=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&o(r=t.toString)&&!i(a=n(r,t)))return a;if(o(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&o(r=t.toString)&&!i(a=n(r,t)))return a;throw u("Can't convert object to primitive value")}},function(t,e,r){var n=r(40),o=r(19),i=r(104);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(40),o=r(19);t.exports=n&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e,r){var n=r(21),o=r(19),i=r(30),u=r(38),a=r(40),c=r(82).CONFIGURABLE,l=r(123),s=r(64),f=s.enforce,p=s.get,y=String,d=Object.defineProperty,h=n("".slice),v=n("".replace),b=n([].join),g=a&&!o((function(){return 8!==d((function(){}),"length",{value:8}).length})),m=String(String).split("String"),O=t.exports=function(t,e,r){"Symbol("===h(y(e),0,7)&&(e="["+v(y(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!u(t,"name")||c&&t.name!==e)&&(a?d(t,"name",{value:e,configurable:!0}):t.name=e),g&&r&&u(r,"arity")&&t.length!==r.arity&&d(t,"length",{value:r.arity});try{r&&u(r,"constructor")&&r.constructor?a&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=f(t);return u(n,"source")||(n.source=b(m,"string"==typeof e?e:"")),t};Function.prototype.toString=O((function(){return i(this)&&p(this).source||l(this)}),"toString")},function(t,e,r){var n=r(38),o=r(155),i=r(56),u=r(44);t.exports=function(t,e,r){for(var a=o(e),c=u.f,l=i.f,s=0;sl;)o(n,r=e[l++])&&(~u(s,r)||c(s,r));return s}},function(t,e,r){var n=r(46),o=r(85),i=r(54),u=function(t){return function(e,r,u){var a,c=n(e),l=i(c),s=o(u,l);if(t&&r!=r){for(;l>s;)if((a=c[s++])!=a)return!0}else for(;l>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,e,r){var n=r(40),o=r(152),i=r(44),u=r(39),a=r(46),c=r(87);e.f=n&&!o?Object.defineProperties:function(t,e){u(t);for(var r,n=a(e),o=c(e),l=o.length,s=0;l>s;)i.f(t,r=o[s++],n[r]);return t}},function(t,e,r){var n=r(48);t.exports=n("document","documentElement")},function(t,e,r){var n=r(52),o=r(46),i=r(84).f,u=r(126),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"==n(t)?function(t){try{return i(t)}catch(t){return u(a)}}(t):i(o(t))}},function(t,e,r){var n=r(33);e.f=n},function(t,e,r){var n=r(34);t.exports=n},function(t,e,r){var n=r(35),o=r(48),i=r(33),u=r(45);t.exports=function(){var t=o("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,a=i("toPrimitive");e&&!e[a]&&u(e,a,(function(t){return n(r,this)}),{arity:1})}},function(t,e,r){var n=r(69);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,r){"use strict";var n,o,i,u=r(19),a=r(30),c=r(41),l=r(66),s=r(112),f=r(45),p=r(33),y=r(49),d=p("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):h=!0),!c(n)||u((function(){var t={};return n[d].call(t)!==t}))?n={}:y&&(n=l(n)),a(n[d])||f(n,d,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(19);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n=r(13),o=r(21),i=r(83),u=r(41),a=r(38),c=r(44).f,l=r(84),s=r(160),f=r(215),p=r(103),y=r(217),d=!1,h=p("meta"),v=0,b=function(t){c(t,h,{value:{objectID:"O"+v++,weakData:{}}})},g=t.exports={enable:function(){g.enable=function(){},d=!0;var t=l.f,e=o([].splice),r={};r[h]=1,t(r).length&&(l.f=function(r){for(var n=t(r),o=0,i=n.length;o=y?t?"":void 0:(n=c(f,p))<55296||n>56319||p+1===y||(s=c(f,p+1))<56320||s>57343?t?a(f,p):n:t?l(f,p,p+2):s-56320+(n-55296<<10)+65536}};t.exports={codeAt:s(!1),charAt:s(!0)}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(104)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},function(t,e){var r=TypeError;t.exports=function(t){if(t>9007199254740991)throw r("Maximum allowed index exceeded");return t}},function(t,e,r){"use strict";var n=r(39);t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,r){var n=r(21);t.exports=n(1..valueOf)},function(t,e,r){var n=r(21),o=r(47),i=r(42),u=r(180),a=n("".replace),c=RegExp("^["+u+"]+"),l=RegExp("(^|[^"+u+"])["+u+"]+$"),s=function(t){return function(e){var r=i(o(e));return 1&t&&(r=a(r,c,"")),2&t&&(r=a(r,l,"$1")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,r){var n=r(19),o=r(34).RegExp,i=n((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),u=i||n((function(){return!o("a","y").sticky})),a=i||n((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:a,MISSED_STICKY:u,UNSUPPORTED_Y:i}},function(t,e,r){"use strict";var n=r(71),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+n(e)+" of "+n(t))}},function(t,e,r){"use strict";var n=r(13),o=r(90).find,i=r(111),u="find",a=!0;u in[]&&Array(1)[u]((function(){a=!1})),n({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(u)},function(t,e,r){var n=r(185),o=TypeError;t.exports=function(t){if(n(t))throw o("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(41),o=r(52),i=r(33)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},function(t,e,r){var n=r(33)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){r(13)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){"use strict";var n=r(13),o=r(179).trim;n({target:"String",proto:!0,forced:r(233)("trim")},{trim:function(){return o(this)}})},function(t,e,r){"use strict";var n=r(35),o=r(138),i=r(39),u=r(57),a=r(86),c=r(42),l=r(47),s=r(70),f=r(139),p=r(140);o("match",(function(t,e,r){return[function(e){var r=l(this),o=u(e)?void 0:s(e,t);return o?n(o,e,r):new RegExp(e)[t](c(r))},function(t){var n=i(this),o=c(t),u=r(e,n,o);if(u.done)return u.value;if(!n.global)return p(n,o);var l=n.unicode;n.lastIndex=0;for(var s,y=[],d=0;null!==(s=p(n,o));){var h=c(s[0]);y[d]=h,""===h&&(n.lastIndex=f(o,a(n.lastIndex),l)),d++}return 0===d?null:y}]}))},function(t,e,r){var n=r(109),o=r(71),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(o(t)+" is not a constructor")}},function(t,e,r){var n=r(39),o=r(190),i=r(57),u=r(33)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||i(r=n(a)[u])?e:o(r)}},function(t,e,r){var n,o,i,u,a=r(34),c=r(92),l=r(75),s=r(30),f=r(38),p=r(19),y=r(159),d=r(110),h=r(104),v=r(242),b=r(193),g=r(118),m=a.setImmediate,O=a.clearImmediate,w=a.process,_=a.Dispatch,j=a.Function,S=a.MessageChannel,x=a.String,E=0,P={},k="onreadystatechange";p((function(){n=a.location}));var A=function(t){if(f(P,t)){var e=P[t];delete P[t],e()}},D=function(t){return function(){A(t)}},T=function(t){A(t.data)},N=function(t){a.postMessage(x(t),n.protocol+"//"+n.host)};m&&O||(m=function(t){v(arguments.length,1);var e=s(t)?t:j(t),r=d(arguments,1);return P[++E]=function(){c(e,void 0,r)},o(E),E},O=function(t){delete P[t]},g?o=function(t){w.nextTick(D(t))}:_&&_.now?o=function(t){_.now(D(t))}:S&&!b?(u=(i=new S).port2,i.port1.onmessage=T,o=l(u.postMessage,u)):a.addEventListener&&s(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!p(N)?(o=N,a.addEventListener("message",T,!1)):o=k in h("script")?function(t){y.appendChild(h("script"))[k]=function(){y.removeChild(this),A(t)}}:function(t){setTimeout(D(t),0)}),t.exports={set:m,clear:O}},function(t,e,r){var n=r(63);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(t,e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=r},function(t,e){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,r){var n=r(97),o=r(134),i=r(98).CONSTRUCTOR;t.exports=i||!o((function(t){n.all(t).then(void 0,(function(){}))}))},function(t,e,r){"use strict";e.a=function(){return!1}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return m}));var n=r(1);function o(t){throw new Error("[mobx-utils] "+t)}function i(t,e){void 0===e&&(e="Illegal state"),t||o(e)}var u=function(t){return t&&t!==Object.prototype&&Object.getOwnPropertyNames(t).concat(u(Object.getPrototypeOf(t))||[])},a=function(t){return function(t){var e=u(t);return e.filter((function(t,r){return e.indexOf(t)===r}))}(t).filter((function(t){return"constructor"!==t&&!~t.indexOf("__")}))},c="pending",l="fulfilled",s="rejected";function f(t){switch(this.state){case c:return t.pending&&t.pending(this.value);case s:return t.rejected&&t.rejected(this.value);case l:return t.fulfilled?t.fulfilled(this.value):this.value}}function p(t,e){if(i(arguments.length<=2,"fromPromise expects up to two arguments"),i("function"==typeof t||"object"==typeof t&&t&&"function"==typeof t.then,"Please pass a promise or function to fromPromise"),!0===t.isPromiseBasedObservable)return t;"function"==typeof t&&(t=new Promise(t));var r=t;t.then(Object(n.k)("observableFromPromise-resolve",(function(t){r.value=t,r.state=l})),Object(n.k)("observableFromPromise-reject",(function(t){r.value=t,r.state=s}))),r.isPromiseBasedObservable=!0,r.case=f;var o=e&&e.state===l?e.value:void 0;return Object(n.q)(r,{value:o,state:c},{},{deep:!1}),r}!function(t){t.reject=Object(n.k)("fromPromise.reject",(function(e){var r=t(Promise.reject(e));return r.state=s,r.value=e,r})),t.resolve=Object(n.k)("fromPromise.resolve",(function(e){void 0===e&&(e=void 0);var r=t(Promise.resolve(e));return r.state=l,r.value=e,r}))}(p||(p={}));var y=function(t,e,r,n){var o,i=arguments.length,u=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(e,r,u):o(e,r))||u);return i>3&&u&&Object.defineProperty(e,r,u),u};!function(){function t(t,e){var r=this;Object(n.G)((function(){r.current=e,r.subscription=t.subscribe(r)}))}t.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},t.prototype.next=function(t){this.current=t},t.prototype.complete=function(){this.dispose()},t.prototype.error=function(t){this.current=t,this.dispose()},y([n.C.ref],t.prototype,"current",void 0),y([n.k.bound],t.prototype,"next",null),y([n.k.bound],t.prototype,"complete",null),y([n.k.bound],t.prototype,"error",null)}();var d=function(){return d=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(e,r,u):o(e,r))||u);return i>3&&u&&Object.defineProperty(e,r,u),u},v=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];!function(){function t(t){var e=this;this.model=t,this.localValues=n.C.map({}),this.localComputedValues=n.C.map({}),this.isPropertyDirty=function(t){return e.localValues.has(t)},i(Object(n.A)(t),"createViewModel expects an observable object"),a(t).forEach((function(r){if(r!==n.a&&"__mobxDidRunLazyInitializers"!==r){if(i(-1===v.indexOf(r),"The propertyname "+r+" is reserved and cannot be used with viewModels"),Object(n.w)(t,r)){var o=Object(n.h)(t,r).derivation;e.localComputedValues.set(r,Object(n.m)(o.bind(e)))}var u=Object.getOwnPropertyDescriptor(t,r),a=u?{enumerable:u.enumerable}:{};Object.defineProperty(e,r,d(d({},a),{configurable:!0,get:function(){return Object(n.w)(t,r)?e.localComputedValues.get(r).get():e.isPropertyDirty(r)?e.localValues.get(r):e.model[r]},set:Object(n.k)((function(t){t!==e.model[r]?e.localValues.set(r,t):e.localValues.delete(r)}))}))}}))}Object.defineProperty(t.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),t.prototype.submit=function(){var t=this;Object(n.B)(this.localValues).forEach((function(e){var r=t.localValues.get(e),o=t.model[e];Object(n.y)(o)?o.replace(r):Object(n.z)(o)?(o.clear(),o.merge(r)):Object(n.v)(r)||(t.model[e]=r)})),this.localValues.clear()},t.prototype.reset=function(){this.localValues.clear()},t.prototype.resetProperty=function(t){this.localValues.delete(t)},h([n.m],t.prototype,"isDirty",null),h([n.m],t.prototype,"changedValues",null),h([n.k.bound],t.prototype,"submit",null),h([n.k.bound],t.prototype,"reset",null),h([n.k.bound],t.prototype,"resetProperty",null)}();function b(t){if(!t)return"ROOT";for(var e=[];t.parent;)e.push(t.path),t=t.parent;return e.reverse().join("/")}function g(t){return Object(n.A)(t)||Object(n.y)(t)||Object(n.z)(t)}function m(t,e){var r=new WeakMap;function o(n){var o=r.get(n.object);!function(t,e){switch(t.type){case"add":i(t.newValue,e,t.name);break;case"update":u(t.oldValue),i(t.newValue,e,t.name||""+t.index);break;case"remove":case"delete":u(t.oldValue);break;case"splice":t.removed.map(u),t.added.forEach((function(r,n){return i(r,e,""+(t.index+n))}));for(var n=t.index+t.addedCount;n=t-1&&this.closest.has(this.args[t-1])},t.prototype.get=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");return this.closest.get(this.args[this.args.length-1])},t.prototype.set=function(t){this.assertNotDisposed();for(var e=this.args.length,r=this.closest,n=this.closestIdx;n0;n--)0===r[n].size&&r[n-1].delete(this.args[n-1]);this.isDisposed=!0},t.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},t}());!function(){function t(){this.store=new Map,this.argsLength=-1}t.prototype.entry=function(t){if(-1===this.argsLength)this.argsLength=t.length;else if(this.argsLength!==t.length)throw new Error("DeepMap should be used with functions with a consistent length, expected: "+this.argsLength+", got: "+t.length);return this.last&&(this.last.isDisposed=!0),this.last=new _(this.store,t)}}();new Set,new Set;var j,S=Promise.resolve();j="undefined"!=typeof queueMicrotask?queueMicrotask:void 0!==t&&t.nextTick?function(e){t.nextTick(e)}:function(t){setTimeout(t,0)};var x=function(){return new Promise((function(t){j(t)}))}}).call(this,r(136))},function(t,e,r){var n;!function(o,i,u){if(o){for(var a,c={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},f={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},p=1;p<20;++p)c[111+p]="f"+p;for(p=0;p<=9;++p)c[p+96]=p.toString();m.prototype.bind=function(t,e,r){var n=this;return t=t instanceof Array?t:[t],n._bindMultiple.call(n,t,e,r),n},m.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},m.prototype.trigger=function(t,e){var r=this;return r._directMap[t+":"+e]&&r._directMap[t+":"+e]({},t),r},m.prototype.reset=function(){var t=this;return t._callbacks={},t._directMap={},t},m.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(g(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var r=t.composedPath()[0];r!==t.target&&(e=r)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},m.prototype.handleKey=function(){return this._handleKey.apply(this,arguments)},m.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(c[e]=t[e]);a=null},m.init=function(){var t=m(i);for(var e in t)"_"!==e.charAt(0)&&(m[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},m.init(),o.Mousetrap=m,t.exports&&(t.exports=m),void 0===(n=function(){return m}.call(e,r,e,t))||(t.exports=n)}function y(t,e,r){t.addEventListener?t.addEventListener(e,r,!1):t.attachEvent("on"+e,r)}function d(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return c[t.which]?c[t.which]:l[t.which]?l[t.which]:String.fromCharCode(t.which).toLowerCase()}function h(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function v(t,e,r){return r||(r=function(){if(!a)for(var t in a={},c)t>95&&t<112||c.hasOwnProperty(t)&&(a[c[t]]=t);return a}()[t]?"keydown":"keypress"),"keypress"==r&&e.length&&(r="keydown"),r}function b(t,e){var r,n,o,i=[];for(r=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),o=0;o1?p(t,a,r,n):(u=b(t,n),e._callbacks[u.key]=e._callbacks[u.key]||[],l(u.key,u.modifiers,{type:u.action},o,t,i),e._callbacks[u.key][o?"unshift":"push"]({callback:r,modifiers:u.modifiers,action:u.action,seq:o,level:i,combo:t}))}e._handleKey=function(t,e,r){var n,o=l(t,e,r),i={},f=0,p=!1;for(n=0;n0?n:r)(e)}},function(t,e,r){var n=r(91),o=r(109),i=r(41),u=r(33)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(o(e)&&(e===a||n(e.prototype))||i(e)&&null===(e=e[u]))&&(e=void 0)),void 0===e?a:e}},function(t,e,r){var n=r(13),o=r(48),i=r(38),u=r(42),a=r(72),c=r(164),l=a("string-to-symbol-registry"),s=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{for:function(t){var e=u(t);if(i(l,e))return l[e];var r=o("Symbol")(e);return l[e]=r,s[r]=e,r}})},function(t,e,r){var n=r(13),o=r(38),i=r(80),u=r(71),a=r(72),c=r(164),l=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!c},{keyFor:function(t){if(!i(t))throw TypeError(u(t)+" is not a symbol");if(o(l,t))return l[t]}})},function(t,e,r){var n=r(13),o=r(48),i=r(92),u=r(35),a=r(21),c=r(19),l=r(30),s=r(80),f=r(110),p=r(207),y=r(69),d=String,h=o("JSON","stringify"),v=a(/./.exec),b=a("".charAt),g=a("".charCodeAt),m=a("".replace),O=a(1..toString),w=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,S=!y||c((function(){var t=o("Symbol")();return"[null]"!=h([t])||"{}"!=h({a:t})||"{}"!=h(Object(t))})),x=c((function(){return'"\\udf06\\ud834"'!==h("\udf06\ud834")||'"\\udead"'!==h("\udead")})),E=function(t,e){var r=f(arguments),n=p(e);if(l(n)||void 0!==t&&!s(t))return r[1]=function(t,e){if(l(n)&&(e=u(n,this,d(t),e)),!s(e))return e},i(h,null,r)},P=function(t,e,r){var n=b(r,e-1),o=b(r,e+1);return v(_,t)&&!v(j,o)||v(j,t)&&!v(_,n)?"\\u"+O(g(t,0),16):t};h&&n({target:"JSON",stat:!0,arity:3,forced:S||x},{stringify:function(t,e,r){var n=f(arguments),o=i(S?E:h,null,n);return x&&"string"==typeof o?m(o,w,P):o}})},function(t,e,r){var n=r(21),o=r(91),i=r(30),u=r(52),a=r(42),c=n([].push);t.exports=function(t){if(i(t))return t;if(o(t)){for(var e=t.length,r=[],n=0;n1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),i(p,r?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return g(this,0===t?0:t,e)}}:{add:function(t){return g(this,t=0===t?0:t,t)}}),y&&o(p,"size",{configurable:!0,get:function(){return h(this).size}}),f},setStrong:function(t,e,r){var n=e+" Iterator",o=b(e),i=b(n);s(t,e,(function(t,e){v(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?f("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,f(void 0,!0))}),r?"entries":"values",!r,!0),p(e)}}},function(t,e,r){var n=r(45);t.exports=function(t,e,r){for(var o in e)n(t,o,e[o],r);return t}},function(t,e,r){"use strict";var n=r(90).forEach,o=r(135)("forEach");t.exports=o?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){var n=r(35),o=r(38),i=r(62),u=r(177),a=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in a||o(t,"flags")||!i(a,t)?e:n(u,t)}},function(t,e,r){"use strict";var n=r(39),o=r(150),i=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw i("Incorrect hint");return o(this,t)}},function(t,e,r){"use strict";var n=r(75),o=r(35),i=r(43),u=r(224),a=r(168),c=r(109),l=r(54),s=r(74),f=r(169),p=r(132),y=Array;t.exports=function(t){var e=i(t),r=c(this),d=arguments.length,h=d>1?arguments[1]:void 0,v=void 0!==h;v&&(h=n(h,d>2?arguments[2]:void 0));var b,g,m,O,w,_,j=p(e),S=0;if(!j||this===y&&a(j))for(b=l(e),g=r?new this(b):y(b);b>S;S++)_=v?h(e[S],S):e[S],s(g,S,_);else for(w=(O=f(e,j)).next,g=r?new this:[];!(m=o(w,O)).done;S++)_=v?u(O,h,[m.value,S],!0):m.value,s(g,S,_);return g.length=S,g}},function(t,e,r){var n=r(39),o=r(170);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){o(t,"throw",e)}}},function(t,e,r){var n=r(19),o=r(34).RegExp;t.exports=n((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,r){var n=r(19),o=r(34).RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},function(t,e,r){"use strict";var n=r(13),o=r(21),i=r(53),u=r(43),a=r(54),c=r(182),l=r(42),s=r(19),f=r(228),p=r(135),y=r(229),d=r(230),h=r(81),v=r(231),b=[],g=o(b.sort),m=o(b.push),O=s((function(){b.sort(void 0)})),w=s((function(){b.sort(null)})),_=p("sort"),j=!s((function(){if(h)return h<70;if(!(y&&y>3)){if(d)return!0;if(v)return v<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)b.push({k:e+n,v:r})}for(b.sort((function(t,e){return e.v-t.v})),n=0;nl(r)?1:-1}}(t)),r=a(o),n=0;n0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},a=function(t,e,r,n){for(var o=e.length,i=r.length,u=0,a=0;u]*>)/g,s=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,f,p){var y=r+t.length,d=n.length,h=s;return void 0!==f&&(f=o(f),h=l),a(p,h,(function(o,a){var l;switch(u(a,0)){case"$":return"$";case"&":return t;case"`":return c(e,0,r);case"'":return c(e,y);case"<":l=f[c(a,1,-1)];break;default:var s=+a;if(0===s)return o;if(s>d){var p=i(s/10);return 0===p?o:p<=d?void 0===n[p-1]?u(a,1):n[p-1]+u(a,1):o}l=n[s-1]}return void 0===l?"":l}))}},function(t,e,r){"use strict";var n=r(40),o=r(21),i=r(35),u=r(19),a=r(87),c=r(106),l=r(100),s=r(43),f=r(101),p=Object.assign,y=Object.defineProperty,d=o([].concat);t.exports=!p||u((function(){if(n&&1!==p({b:1},p(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=p({},t)[r]||a(p({},e)).join("")!=o}))?function(t,e){for(var r=s(t),o=arguments.length,u=1,p=c.f,y=l.f;o>u;)for(var h,v=f(arguments[u++]),b=p?d(a(v),p(v)):a(v),g=b.length,m=0;g>m;)h=b[m++],n&&!i(y,v,h)||(r[h]=v[h]);return r}:p},function(t,e,r){"use strict";var n=r(21),o=r(53),i=r(41),u=r(38),a=r(110),c=r(78),l=Function,s=n([].concat),f=n([].join),p={};t.exports=c?l.bind:function(t){var e=o(this),r=e.prototype,n=a(arguments,1),c=function(){var r=s(n,a(arguments));return this instanceof c?function(t,e,r){if(!u(p,e)){for(var n=[],o=0;o"+c+""}},function(t,e,r){var n=r(19);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e,r){r(241),r(248),r(249),r(250),r(251),r(252)},function(t,e,r){"use strict";var n,o,i,u=r(13),a=r(49),c=r(118),l=r(34),s=r(35),f=r(45),p=r(113),y=r(89),d=r(172),h=r(53),v=r(30),b=r(41),g=r(133),m=r(191),O=r(192).set,w=r(243),_=r(246),j=r(142),S=r(194),x=r(64),E=r(97),P=r(98),k=r(99),A="Promise",D=P.CONSTRUCTOR,T=P.REJECTION_EVENT,N=P.SUBCLASSING,M=x.getterFor(A),C=x.set,R=E&&E.prototype,I=E,L=R,z=l.TypeError,B=l.document,U=l.process,F=k.f,H=F,X=!!(B&&B.createEvent&&l.dispatchEvent),G="unhandledrejection",Y=function(t){var e;return!(!b(t)||!v(e=t.then))&&e},V=function(t,e){var r,n,o,i=e.value,u=1==e.state,a=u?t.ok:t.fail,c=t.resolve,l=t.reject,f=t.domain;try{a?(u||(2===e.rejection&&Z(e),e.rejection=1),!0===a?r=i:(f&&f.enter(),r=a(i),f&&(f.exit(),o=!0)),r===t.promise?l(z("Promise-chain cycle")):(n=Y(r))?s(n,r,c,l):c(r)):l(i)}catch(t){f&&!o&&f.exit(),l(t)}},W=function(t,e){t.notified||(t.notified=!0,w((function(){for(var r,n=t.reactions;r=n.get();)V(r,t);t.notified=!1,e&&!t.rejection&&$(t)})))},K=function(t,e,r){var n,o;X?((n=B.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!T&&(o=l["on"+t])?o(n):t===G&&_("Unhandled promise rejection",r)},$=function(t){s(O,l,(function(){var e,r=t.facade,n=t.value;if(q(t)&&(e=j((function(){c?U.emit("unhandledRejection",n,r):K(G,r,n)})),t.rejection=c||q(t)?2:1,e.error))throw e.value}))},q=function(t){return 1!==t.rejection&&!t.parent},Z=function(t){s(O,l,(function(){var e=t.facade;c?U.emit("rejectionHandled",e):K("rejectionhandled",e,t.value)}))},J=function(t,e,r){return function(n){t(e,n,r)}},Q=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,W(t,!0))},tt=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw z("Promise can't be resolved itself");var n=Y(e);n?w((function(){var r={done:!1};try{s(n,e,J(tt,r,t),J(Q,r,t))}catch(e){Q(r,e,t)}})):(t.value=e,t.state=1,W(t,!1))}catch(e){Q({done:!1},e,t)}}};if(D&&(L=(I=function(t){g(this,L),h(t),s(n,this);var e=M(this);try{t(J(tt,e),J(Q,e))}catch(t){Q(e,t)}}).prototype,(n=function(t){C(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new S,rejection:!1,state:0,value:void 0})}).prototype=f(L,"then",(function(t,e){var r=M(this),n=F(m(this,I));return r.parent=!0,n.ok=!v(t)||t,n.fail=v(e)&&e,n.domain=c?U.domain:void 0,0==r.state?r.reactions.add(n):w((function(){V(n,r)})),n.promise})),o=function(){var t=new n,e=M(t);this.promise=t,this.resolve=J(tt,e),this.reject=J(Q,e)},k.f=F=function(t){return t===I||undefined===t?new o(t):H(t)},!a&&v(E)&&R!==Object.prototype)){i=R.then,N||f(R,"then",(function(t,e){var r=this;return new I((function(t,e){s(i,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete R.constructor}catch(t){}p&&p(R,L)}u({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:I}),y(I,A,!1,!0),d(A)},function(t,e){var r=TypeError;t.exports=function(t,e){if(t1?arguments[1]:void 0,r),c=u>2?arguments[2]:void 0,l=void 0===c?r:o(c,r);l>a;)e[a++]=t;return e}},function(t,e,r){"use strict";var n=r(65),o=r(42),i=r(47),u=RangeError;t.exports=function(t){var e=o(i(this)),r="",a=n(t);if(a<0||a==1/0)throw u("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(r+=e);return r}},function(t,e,r){var n=r(40),o=r(21),i=r(87),u=r(46),a=o(r(100).f),c=o([].push),l=function(t){return function(e){for(var r,o=u(e),l=i(o),s=l.length,f=0,p=[];s>f;)r=l[f++],n&&!a(o,r)||c(p,t?[r,o[r]]:o[r]);return p}};t.exports={entries:l(!0),values:l(!1)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){"use strict";var n,o=r(13),i=r(128),u=r(56).f,a=r(86),c=r(42),l=r(184),s=r(47),f=r(186),p=r(49),y=i("".startsWith),d=i("".slice),h=Math.min,v=f("startsWith");o({target:"String",proto:!0,forced:!!(p||v||(n=u(String.prototype,"startsWith"),!n||n.writable))&&!v},{startsWith:function(t){var e=c(s(this));l(t);var r=a(h(arguments.length>1?arguments[1]:void 0,e.length)),n=c(t);return y?y(e,n,r):d(e,r,r+n.length)===n}})},function(t,e,r){"use strict";r.r(e),r.d(e,"observer",(function(){return i_})),r.d(e,"LogicFlow",(function(){return o_})),r.d(e,"h",(function(){return et.g})),r.d(e,"LogicFlowUtil",(function(){return n})),r.d(e,"BaseNode",(function(){return db})),r.d(e,"RectNode",(function(){return wb})),r.d(e,"CircleNode",(function(){return kb})),r.d(e,"PolygonNode",(function(){return Bb})),r.d(e,"DiamondNode",(function(){return Vb})),r.d(e,"EllipseNode",(function(){return ng})),r.d(e,"TextNode",(function(){return yg})),r.d(e,"HtmlNode",(function(){return jg})),r.d(e,"BaseEdge",(function(){return lm})),r.d(e,"LineEdge",(function(){return Sm})),r.d(e,"PolylineEdge",(function(){return Gm})),r.d(e,"BezierEdge",(function(){return eO})),r.d(e,"Arrow",(function(){return sO})),r.d(e,"PurePolylineEdge",(function(){return mO})),r.d(e,"PureCurvedPolylineEdge",(function(){return MO})),r.d(e,"BaseEdgeModel",(function(){return la})),r.d(e,"BezierEdgeModel",(function(){return Lp})),r.d(e,"LineEdgeModel",(function(){return Sa})),r.d(e,"PolylineEdgeModel",(function(){return Ba})),r.d(e,"PurePolylineEdgeModel",(function(){return ty})),r.d(e,"PureCurvedPolylineEdgeModel",(function(){return hy})),r.d(e,"BaseNodeModel",(function(){return td})),r.d(e,"CircleNodeModel",(function(){return vd})),r.d(e,"DiamondNodeModel",(function(){return Rd})),r.d(e,"EllipseNodeModel",(function(){return Zd})),r.d(e,"PolygonNodeModel",(function(){return dh})),r.d(e,"RectNodeModel",(function(){return Ph})),r.d(e,"TextNodeModel",(function(){return Uh})),r.d(e,"HtmlNodeModel",(function(){return Jh})),r.d(e,"EditConfigModel",(function(){return So})),r.d(e,"GraphModel",(function(){return hs})),r.d(e,"SnaplineModel",(function(){return uv})),r.d(e,"Keyboard",(function(){return Gw})),r.d(e,"get",(function(){return bp})),r.d(e,"defaults",(function(){return Op})),r.d(e,"ElementState",(function(){return xo})),r.d(e,"ModelType",(function(){return Eo})),r.d(e,"ElementType",(function(){return Po})),r.d(e,"EventType",(function(){return ko})),r.d(e,"formateAnchorConnectValidateData",(function(){return qu}));var n={};r.r(n),r.d(n,"createUuid",(function(){return au})),r.d(n,"refreshGraphId",(function(){return cu})),r.d(n,"createDrag",(function(){return Jc})),r.d(n,"StepDrag",(function(){return Qc})),r.d(n,"setupEdgeModel",(function(){return Qa})),r.d(n,"isBboxOverLapping",(function(){return tc})),r.d(n,"filterRepeatPoints",(function(){return ec})),r.d(n,"getSimplePolyline",(function(){return rc})),r.d(n,"getExpandedBBox",(function(){return nc})),r.d(n,"pointDirection",(function(){return oc})),r.d(n,"getExpandedBBoxPoint",(function(){return ic})),r.d(n,"mergeBBox",(function(){return uc})),r.d(n,"getBBoxOfPoints",(function(){return ac})),r.d(n,"getPointsFromBBox",(function(){return cc})),r.d(n,"isPointOutsideBBox",(function(){return lc})),r.d(n,"getBBoxXCrossPoints",(function(){return sc})),r.d(n,"getBBoxYCrossPoints",(function(){return fc})),r.d(n,"getBBoxCrossPointsByPoint",(function(){return pc})),r.d(n,"estimateDistance",(function(){return yc})),r.d(n,"costByPoints",(function(){return dc})),r.d(n,"heuristicCostEstimate",(function(){return hc})),r.d(n,"rebuildPath",(function(){return vc})),r.d(n,"removeClosePointFromOpenList",(function(){return bc})),r.d(n,"isSegmentsIntersected",(function(){return gc})),r.d(n,"isSegmentCrossingBBox",(function(){return mc})),r.d(n,"getNextNeighborPoints",(function(){return Oc})),r.d(n,"pathFinder",(function(){return wc})),r.d(n,"getBoxByOriginNode",(function(){return _c})),r.d(n,"pointFilter",(function(){return jc})),r.d(n,"getPolylinePoints",(function(){return Sc})),r.d(n,"getLongestEdge",(function(){return xc})),r.d(n,"isSegmentsInNode",(function(){return Ec})),r.d(n,"isSegmentsCrossNode",(function(){return Pc})),r.d(n,"getCrossPointInRect",(function(){return kc})),r.d(n,"segmentDirection",(function(){return Ac})),r.d(n,"points2PointsList",(function(){return Dc})),r.d(n,"getSimplePoints",(function(){return Tc})),r.d(n,"getBytesLength",(function(){return Mc})),r.d(n,"getTextWidth",(function(){return Rc})),r.d(n,"getAppendAttributes",(function(){return Ic})),r.d(n,"getBezierControlPoints",(function(){return Lc})),r.d(n,"getBezierPoints",(function(){return zc})),r.d(n,"getEndTangent",(function(){return Uc})),r.d(n,"getClosestPointOfPolyline",(function(){return Fc})),r.d(n,"pickEdgeConfig",(function(){return Hc})),r.d(n,"twoPointDistance",(function(){return Xc})),r.d(n,"createEdgeGenerator",(function(){return Gc})),r.d(n,"snapToGrid",(function(){return Vi})),r.d(n,"getGridOffset",(function(){return Wi})),r.d(n,"sampleCubic",(function(){return Xa})),r.d(n,"getThetaOfVector",(function(){return Ya})),r.d(n,"degrees",(function(){return Va})),r.d(n,"Vector",(function(){return vl})),r.d(n,"Point",(function(){return bl})),r.d(n,"Matrix",(function(){return $l})),r.d(n,"RotateMatrix",(function(){return ql})),r.d(n,"ScaleMatrix",(function(){return Zl})),r.d(n,"TranslateMatrix",(function(){return Jl}));var o=r(1),i=r(14);if(!i.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!o.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var u=r(51),a=Object(u.b)("observerBatching");function c(t){t()}var l=!1;function s(){return l}function f(t){return Object(o.t)(t)}var p,y=1e4,d=1e4,h=new Set;function v(){void 0===p&&(p=setTimeout(b,d))}function b(){p=void 0;var t=Date.now();h.forEach((function(e){var r=e.current;r&&t>=r.cleanAt&&(r.reaction.dispose(),e.current=null,h.delete(e))})),h.size>0&&v()}var g=!1,m=[];var O={};function w(t){return"observer"+t}function _(t,e,r){if(void 0===e&&(e="observed"),void 0===r&&(r=O),s())return t();var n,a=function(t){return function(){g?m.push(t):t()}}((r.useForceUpdate||u.d)()),c=i.d.useRef(null);if(!c.current){var l=new o.c(w(e),(function(){p.mounted?a():(l.dispose(),c.current=null)})),p=function(t){return{cleanAt:Date.now()+y,reaction:t}}(l);c.current=p,n=c,h.add(n),v()}var d=c.current.reaction;return i.d.useDebugValue(d,f),i.d.useEffect((function(){var t;return t=c,h.delete(t),c.current?c.current.mounted=!0:(c.current={reaction:new o.c(w(e),(function(){a()})),cleanAt:1/0},a()),function(){c.current.reaction.dispose(),c.current=null}}),[]),function(t){g=!0,m=[];try{var e=t();g=!1;var r=m.length>0?m:void 0;return i.d.useLayoutEffect((function(){r&&r.forEach((function(t){return t()}))}),[r]),e}finally{g=!1}}((function(){var e,r;if(d.track((function(){try{e=t()}catch(t){r=t}})),r)throw r;return e}))}var j=function(){return j=Object.assign||function(t){for(var e,r=1,n=arguments.length;r2?n-2:0),i=2;i"}function K(t){var e=this;if(!0===s())return t.call(this);C(this,G,!1),C(this,Y,!1);var r=W(this),n=t.bind(this),u=!1,a=new o.c(r+".render()",(function(){if(!u&&(u=!0,!0!==e[X])){var t=!0;try{C(e,Y,!0),e[G]||i.a.prototype.forceUpdate.call(e),t=!1}finally{C(e,Y,!1),t&&a.dispose()}}}));function c(){u=!1;var t=void 0,e=void 0;if(a.track((function(){try{e=Object(o.d)(!1,n)}catch(e){t=e}})),t)throw t;return e}return a.reactComponent=this,c[F]=a,this.render=c,c.call(this)}function $(t,e){return s(),this.state!==e||!N(this.props,t)}function q(t,e){var r=T("reactProp_"+e+"_valueHolder"),n=T("reactProp_"+e+"_atomHolder");function i(){return this[n]||C(this,n,Object(o.o)("reactive "+e)),this[n]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var t=!1;return o.f&&o.e&&(t=Object(o.f)(!0)),i.call(this).reportObserved(),o.f&&o.e&&Object(o.e)(t),this[r]},set:function(t){this[Y]||N(this[r],t)?C(this,r,t):(C(this,r,t),C(this,G,!0),i.call(this).reportChanged(),C(this,G,!1))}})}var Z="function"==typeof Symbol&&Symbol.for,J=Z?Symbol.for("react.forward_ref"):"function"==typeof i.e&&Object(i.e)((function(t){return null})).$$typeof,Q=Z?Symbol.for("react.memo"):"function"==typeof i.f&&Object(i.f)((function(t){return null})).$$typeof;function tt(t){if(t.isMobxInjector,Q&&t.$$typeof===Q)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(J&&t.$$typeof===J){var e=t.render;if("function"!=typeof e)throw new Error("render property of ForwardRef was not a function");return Object(i.e)((function(){var t=arguments;return Object(i.c)(E,null,(function(){return e.apply(void 0,t)}))}))}return"function"!=typeof t||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(i.a,t)?V(t):S(t)}if(!i.a)throw new Error("mobx-react requires React to be available");if(!o.C)throw new Error("mobx-react requires mobx to be available");var et=r(0);r(6),r(7),r(2),r(3),r(60),r(4),r(5),r(12),r(36),r(26),r(23),r(22),r(9),r(10),r(11),r(24),r(28),r(27),r(29),r(8),r(18),r(25),r(20),r(227),r(183),r(95),r(67),r(68),r(187);var rt=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r-1};var st=function(t,e){var r=this.__data__,n=it(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function ft(t){var e=-1,r=null==t?0:t.length;for(this.clear();++ea))return!1;var l=i.get(t),s=i.get(e);if(l&&s)return l==e&&s==t;var f=-1,p=!0,y=2&r?new be:void 0;for(i.set(t,e),i.set(e,t);++f-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991},We={};We["[object Float32Array]"]=We["[object Float64Array]"]=We["[object Int8Array]"]=We["[object Int16Array]"]=We["[object Int32Array]"]=We["[object Uint8Array]"]=We["[object Uint8ClampedArray]"]=We["[object Uint16Array]"]=We["[object Uint32Array]"]=!0,We["[object Arguments]"]=We["[object Array]"]=We["[object ArrayBuffer]"]=We["[object Boolean]"]=We["[object DataView]"]=We["[object Date]"]=We["[object Error]"]=We["[object Function]"]=We["[object Map]"]=We["[object Number]"]=We["[object Object]"]=We["[object RegExp]"]=We["[object Set]"]=We["[object String]"]=We["[object WeakMap]"]=!1;var Ke=function(t){return Ie(t)&&Ve(t.length)&&!!We[Pt(t)]};var $e=function(t){return function(e){return t(e)}},qe=r(59),Ze=qe.a&&qe.a.isTypedArray,Je=Ze?$e(Ze):Ke,Qe=Object.prototype.hasOwnProperty;var tr=function(t,e){var r=ke(t),n=!r&&He(t),o=!r&&!n&&Object(Xe.a)(t),i=!r&&!n&&!o&&Je(t),u=r||n||o||i,a=u?Re(t.length,String):[],c=a.length;for(var l in t)!e&&!Qe.call(t,l)||u&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ye(l,c))||a.push(l);return a},er=Object.prototype;var rr=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||er)};var nr=function(t,e){return function(r){return t(e(r))}},or=nr(Object.keys,Object),ir=Object.prototype.hasOwnProperty;var ur=function(t){if(!rr(t))return or(t);var e=[];for(var r in Object(t))ir.call(t,r)&&"constructor"!=r&&e.push(r);return e};var ar=function(t){return null!=t&&Ve(t.length)&&!Dt(t)};var cr=function(t){return ar(t)?tr(t):ur(t)};var lr=function(t){return Ae(t,cr,Ce)},sr=Object.prototype.hasOwnProperty;var fr=function(t,e,r,n,o,i){var u=1&r,a=lr(t),c=a.length;if(c!=lr(e).length&&!u)return!1;for(var l=c;l--;){var s=a[l];if(!(u?s in e:sr.call(e,s)))return!1}var f=i.get(t),p=i.get(e);if(f&&p)return f==e&&p==t;var y=!0;i.set(t,e),i.set(e,t);for(var d=u;++l0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},kn=Pn(xn);var An=function(t,e){return kn(jn(t,e,an),t+"")};var Dn=function(t,e,r){if(!kt(r))return!1;var n=typeof e;return!!("number"==n?ar(r)&&Ye(e,r.length):"string"==n&&e in r)&&ot(r[e],t)};var Tn=function(t){return An((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,u=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,u&&Dn(r[0],r[1],u)&&(i=o<3?void 0:i,o=1),e=Object(e);++n0&&n(c)?r>1?t(c,r-1,n,o,i):Pe(i,c):o||(i[i.length]=c)}return i};var Un=function(t){return(null==t?0:t.length)?Bn(t,1):[]};var Fn,Hn,Xn,Gn,Yn,Vn,Wn,Kn,$n,qn,Zn,Jn,Qn,to,eo,ro,no,oo,io,uo=function(t){return kn(jn(t,void 0,Un),t+"")}((function(t,e){return null==t?{}:In(t,e)}));function ao(t){return ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(t)}function co(t,e,r,n){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}function lo(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0,r=this.SCALE_X,n=this.SCALE_Y;return!0===t?(r+=this.ZOOM_SIZE,n+=this.ZOOM_SIZE):!1===t?(r-=this.ZOOM_SIZE,n-=this.ZOOM_SIZE):"number"==typeof t&&(r=t,n=t),rthis.MAX_SCALE_SIZE||(e&&(this.TRANSLATE_X-=(r-this.SCALE_X)*e[0],this.TRANSLATE_Y-=(n-this.SCALE_Y)*e[1]),this.SCALE_X=r,this.SCALE_Y=n,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(t){this.eventCenter.emit(ko.GRAPH_TRANSFORM,{type:t,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})}},{key:"resetZoom",value:function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")}},{key:"translate",value:function(t,e){this.TRANSLATE_X+t<=this.translateLimitMaxX&&this.TRANSLATE_X+t>=this.translateLimitMinX&&(this.TRANSLATE_X+=t),this.TRANSLATE_Y+e<=this.translateLimitMaxY&&this.TRANSLATE_Y+e>=this.translateLimitMinY&&(this.TRANSLATE_Y+=e),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(t,e,r,n){var o=No(this.CanvasPointToHtmlPoint([t,e]),2),i=r/2-o[0],u=n/2-o[1];this.TRANSLATE_X+=i,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(t){var e=No(Array.isArray(t)&&4===t.length?t:Bo[t.toString()],4);this.translateLimitMinX=e[0],this.translateLimitMinY=e[1],this.translateLimitMaxX=e[2],this.translateLimitMaxY=e[3]}}],r&&Ro(e.prototype,r),n&&Ro(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ho=zo(yo.prototype,"SCALE_X",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),vo=zo(yo.prototype,"SKEW_Y",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),bo=zo(yo.prototype,"SKEW_X",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),go=zo(yo.prototype,"SCALE_Y",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),mo=zo(yo.prototype,"TRANSLATE_X",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Oo=zo(yo.prototype,"TRANSLATE_Y",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),wo=zo(yo.prototype,"ZOOM_SIZE",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return.04}}),zo(yo.prototype,"zoom",[o.k],Object.getOwnPropertyDescriptor(yo.prototype,"zoom"),yo.prototype),zo(yo.prototype,"resetZoom",[o.k],Object.getOwnPropertyDescriptor(yo.prototype,"resetZoom"),yo.prototype),zo(yo.prototype,"translate",[o.k],Object.getOwnPropertyDescriptor(yo.prototype,"translate"),yo.prototype),zo(yo.prototype,"focusOn",[o.k],Object.getOwnPropertyDescriptor(yo.prototype,"focusOn"),yo.prototype),yo);var Fo=function(t,e){for(var r=-1,n=null==t?0:t.length;++rt.length)&&(e=t.length);for(var r=0,n=new Array(e);ra&&oc&&i1&&void 0!==arguments[1]?arguments[1]:0,r=(nu[t[e+0]]+nu[t[e+1]]+nu[t[e+2]]+nu[t[e+3]]+"-"+nu[t[e+4]]+nu[t[e+5]]+"-"+nu[t[e+6]]+nu[t[e+7]]+"-"+nu[t[e+8]]+nu[t[e+9]]+"-"+nu[t[e+10]]+nu[t[e+11]]+nu[t[e+12]]+nu[t[e+13]]+nu[t[e+14]]+nu[t[e+15]]).toLowerCase();if(!ru(r))throw TypeError("Stringified UUID is invalid");return r};var uu=function(t,e,r){var n=(t=t||{}).random||(t.rng||tu)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return iu(n)},au=function(){return uu()},cu=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=t.nodes.reduce((function(t,r){return t[r.id]=e+uu(),r.id=t[r.id],t}),{});return t.edges.forEach((function(t){t.id=e+uu(),t.sourceNodeId=r[t.sourceNodeId],t.targetNodeId=r[t.targetNodeId]})),t},lu=(r(117),r(141),function(t,e,r){var n=t.x,o=t.y;return(n-e.x)*(n-r.x)<=0&&(o-e.y)*(o-r.y)<=0});function su(t){return su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},su(t)}function fu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pu(t){for(var e=1;e=0;o--){var i=n[o];if(Uu(t,i)){var u=i.getTargetAnchor(t);if(u){var a={node:i,anchorIndex:u.index,anchor:u.anchor};r&&!Lu(i,r.node,e)||(r=a)}}}return r},Lu=function(t,e,r){return t.zIndex>e.zIndex||r.nodesMap[t.id].index>r.nodesMap[e.id].index},zu=function(t,e,r,n){return Math.hypot(t-r,e-n)},Bu=function(t,e){var r=!1,n=Fu(e);return t.x>=n.minX-0&&t.x<=n.maxX+0&&t.y>=n.minY-0&&t.y<=n.maxY+0&&(r=!0),r},Uu=function(t,e){var r=!1,n=Fu(e);return t.x>=n.minX-5&&t.x<=n.maxX+5&&t.y>=n.minY-5&&t.y<=n.maxY+5&&(r=!0),r},Fu=function(t){var e=t.x,r=t.y,n=t.width,o=t.height;return{minX:e-n/2,minY:r-o/2,maxX:e+n/2,maxY:r+o/2,x:e,y:r,width:n,height:o,centerX:e,centerY:r}},Hu=function(t,e,r){var n,o=function(t){var e=t,r=e.x,n=e.y,o=e.width,i=e.height,u=e.radius;return[{x:r-o/2+u,y:n-i/2+u,r:u},{x:r+o/2-u,y:n-i/2+u,r:u},{x:r-o/2+u,y:n+i/2-u,r:u},{x:r+o/2-u,y:n+i/2-u,r:u}]}(r),i=Number.MAX_SAFE_INTEGER;return o.forEach((function(e){var r=zu(t.x,t.y,e.x,e.y);ro&&t.xu&&t.yu.x&&(a=u,c=o);var l={x:t.x,y:t.y};if(a.x===c.x&&e===Ao.HORIZONTAL&&(l={x:a.x,y:t.y}),a.y===c.y&&e===Ao.VERTICAL&&(l={x:t.x,y:a.y}),a.x!==c.x&&a.y!==c.y){var s=(c.y-a.y)/(c.x-a.x),f=(a.x*c.y-c.x*a.y)/(a.x-c.x);e===Ao.HORIZONTAL?l={x:(t.y-f)/s,y:t.y}:e===Ao.VERTICAL&&(l={x:t.x,y:s*t.x+f})}if(lu(l,o,u)){var p=zu(l.x,l.y,t.x,t.y);pt.x?o=t.x+r/2:e.xt.y?i=t.y+n/2:e.y1?e.forEach((function(t){var e=document.createElement("div");e.textContent=t,i.appendChild(e)})):i.textContent=e,document.body.appendChild(i);var u=i.clientHeight;return document.body.removeChild(i),u},$u=function(t){var e=t.rows,r=t.rowsLength,n=t.fontSize,o=0;return e&&e.forEach((function(t){var e=Mc(t);o=e>o?e:o})),{width:Math.ceil(o/2)*n+n/4,height:r*(n+2)+n/4}},qu=function(t){return"object"!==su(t)?{isAllPass:!!t,msg:t?"":"不允许连接"}:t},Zu=function(t){try{return JSON.parse(JSON.stringify(t))}catch(e){return t}},Ju=1e3,Qu=999,ta=function(){return++Ju};function ea(t){return ea="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(t)}function ra(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function na(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];this.isSelected=t}},{key:"setHovered",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isHovered=t}},{key:"setHitable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isHitable=t}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(t,e){this.state=t,this.additionStateData=e}},{key:"updateStartPoint",value:function(t){this.startPoint=t}},{key:"moveStartPoint",value:function(t,e){this.startPoint.x+=t,this.startPoint.y+=e}},{key:"updateEndPoint",value:function(t){this.endPoint=t}},{key:"moveEndPoint",value:function(t,e){this.endPoint.x+=t,this.endPoint.y+=e}},{key:"setZIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.zIndex=t}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(t){Mn(this,t)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(t){var e=t.startPoint,r=t.endPoint;this.updateStartPoint({x:e.x,y:e.y}),this.updateEndPoint({x:r.x,y:r.y})}}],r&&ia(e.prototype,r),n&&ia(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),hu=ca(du.prototype,"type",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),vu=ca(du.prototype,"sourceNodeId",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),bu=ca(du.prototype,"targetNodeId",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gu=ca(du.prototype,"startPoint",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),mu=ca(du.prototype,"endPoint",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ou=ca(du.prototype,"text",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),wu=ca(du.prototype,"properties",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_u=ca(du.prototype,"points",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ju=ca(du.prototype,"pointsList",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Su=ca(du.prototype,"isSelected",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),xu=ca(du.prototype,"isHovered",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Eu=ca(du.prototype,"isHitable",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Pu=ca(du.prototype,"draggable",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),ku=ca(du.prototype,"visible",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Au=ca(du.prototype,"isAnimation",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Du=ca(du.prototype,"isShowAdjustPoint",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Tu=ca(du.prototype,"zIndex",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Nu=ca(du.prototype,"state",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Mu=ca(du.prototype,"style",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Cu=ca(du.prototype,"arrowConfig",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),ca(du.prototype,"sourceNode",[o.m],Object.getOwnPropertyDescriptor(du.prototype,"sourceNode"),du.prototype),ca(du.prototype,"targetNode",[o.m],Object.getOwnPropertyDescriptor(du.prototype,"targetNode"),du.prototype),ca(du.prototype,"textPosition",[o.m],Object.getOwnPropertyDescriptor(du.prototype,"textPosition"),du.prototype),ca(du.prototype,"setProperty",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setProperty"),du.prototype),ca(du.prototype,"deleteProperty",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"deleteProperty"),du.prototype),ca(du.prototype,"setProperties",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setProperties"),du.prototype),ca(du.prototype,"changeEdgeId",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"changeEdgeId"),du.prototype),ca(du.prototype,"setStyle",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setStyle"),du.prototype),ca(du.prototype,"setStyles",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setStyles"),du.prototype),ca(du.prototype,"updateStyles",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateStyles"),du.prototype),ca(du.prototype,"formatText",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"formatText"),du.prototype),ca(du.prototype,"resetTextPosition",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"resetTextPosition"),du.prototype),ca(du.prototype,"moveText",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"moveText"),du.prototype),ca(du.prototype,"setText",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setText"),du.prototype),ca(du.prototype,"updateText",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateText"),du.prototype),ca(du.prototype,"setAnchors",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setAnchors"),du.prototype),ca(du.prototype,"setSelected",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setSelected"),du.prototype),ca(du.prototype,"setHovered",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setHovered"),du.prototype),ca(du.prototype,"setHitable",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setHitable"),du.prototype),ca(du.prototype,"openEdgeAnimation",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"openEdgeAnimation"),du.prototype),ca(du.prototype,"closeEdgeAnimation",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"closeEdgeAnimation"),du.prototype),ca(du.prototype,"setElementState",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setElementState"),du.prototype),ca(du.prototype,"updateStartPoint",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateStartPoint"),du.prototype),ca(du.prototype,"moveStartPoint",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"moveStartPoint"),du.prototype),ca(du.prototype,"updateEndPoint",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateEndPoint"),du.prototype),ca(du.prototype,"moveEndPoint",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"moveEndPoint"),du.prototype),ca(du.prototype,"setZIndex",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"setZIndex"),du.prototype),ca(du.prototype,"initPoints",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"initPoints"),du.prototype),ca(du.prototype,"updateAttributes",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateAttributes"),du.prototype),ca(du.prototype,"getAdjustStart",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"getAdjustStart"),du.prototype),ca(du.prototype,"getAdjustEnd",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"getAdjustEnd"),du.prototype),ca(du.prototype,"updateAfterAdjustStartAndEnd",[o.k],Object.getOwnPropertyDescriptor(du.prototype,"updateAfterAdjustStartAndEnd"),du.prototype),du),sa=la;function fa(t){return fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(t)}function pa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ya(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);ri)&&(o=i,n=r)})),n}},{key:"getCrossPoint",value:function(t,e,r){var n;return t===Ao.HORIZONTAL?n={x:r.x,y:e.y}:t===Ao.VERTICAL&&(n={x:e.x,y:r.y}),n}},{key:"removeCrossPoints",value:function(t,e,r){var n=r.map((function(t){return t}));if(1===t){var o=n[t],i=n[e],u=n[t-1];if(Ec(u,o,this.sourceNode)){if(Pc(o,i,this.sourceNode)){var a=kc(o,i,this.sourceNode);a&&(n[t]=a,n.splice(t-1,1),t--,e--)}}else this.sourceNode.anchors.forEach((function(e){(e.x===u.x&&e.x===o.x||e.y===u.y&&e.y===o.y)&&zu(e.x,e.y,o.x,o.y)0?this.points=this.pointsList.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var t=Sc({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" ")}},{key:"updateStartPoint",value:function(t){this.startPoint=t,this.updatePoints()}},{key:"moveStartPoint",value:function(t,e){this.startPoint.x+=t,this.startPoint.y+=e,this.updatePoints()}},{key:"updateEndPoint",value:function(t){this.endPoint=t,this.updatePoints()}},{key:"moveEndPoint",value:function(t,e){this.endPoint.x+=t,this.endPoint.y+=e,this.updatePoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map((function(t){return t}))}},{key:"dragAppendSimple",value:function(t,e){this.isDragging=!0;var r=t.start,n=t.end,o=t.startIndex,i=t.endIndex,u=t.direction,a=this.pointsList,c=a;return u===Ao.HORIZONTAL?(a[o]={x:r.x,y:r.y+e.y},a[i]={x:n.x,y:n.y+e.y},c=this.pointsList.map((function(t){return t}))):u===Ao.VERTICAL&&(a[o]={x:r.x+e.x,y:r.y},a[i]={x:n.x+e.x,y:n.y},c=this.pointsList.map((function(t){return t}))),this.updatePointsAfterDrag(c),this.draggingPointList=c,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},a[o]),end:Object.assign({},a[i]),startIndex:o,endIndex:i,direction:u}}},{key:"dragAppend",value:function(t,e){this.isDragging=!0;var r=t.start,n=t.end,o=t.startIndex,i=t.endIndex,u=t.direction,a=this.pointsList;if(u===Ao.HORIZONTAL){a[o]={x:r.x,y:r.y+e.y},a[i]={x:n.x,y:n.y+e.y};var c=this.pointsList.map((function(t){return t}));if(0!==o&&i!==this.pointsList.length-1&&(c=this.removeCrossPoints(o,i,c)),0===o){var l={x:r.x,y:r.y+e.y};if(!Bu(l,this.sourceNode)){var s=this.sourceNode.anchors;c=this.getDraggingPoints(u,"start",l,s,c)}}if(i===this.pointsList.length-1){var f={x:n.x,y:n.y+e.y};if(!Bu(f,this.targetNode)){var p=this.targetNode.anchors;c=this.getDraggingPoints(u,"end",f,p,c)}}this.updatePointsAfterDrag(c),this.draggingPointList=c}else if(u===Ao.VERTICAL){a[o]={x:r.x+e.x,y:r.y},a[i]={x:n.x+e.x,y:n.y};var y=this.pointsList.map((function(t){return t}));if(0!==o&&i!==this.pointsList.length-1&&(y=this.removeCrossPoints(o,i,y)),0===o){var d={x:r.x+e.x,y:r.y};if(!Bu(d,this.sourceNode)){var h=this.sourceNode.anchors;y=this.getDraggingPoints(u,"start",d,h,y)}}if(i===this.pointsList.length-1){var v={x:n.x+e.x,y:n.y};if(!Bu(v,this.targetNode)){var b=this.targetNode.anchors;y=this.getDraggingPoints(u,"end",v,b,y)}}this.updatePointsAfterDrag(y),this.draggingPointList=y}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},a[o]),end:Object.assign({},a[i]),startIndex:o,endIndex:i,direction:u}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var t=jc(Dc(this.points));this.pointsList=t.map((function(t){return t})),this.draggingPointList=[];var e=t[0];this.startPoint=Object.assign({},e);var r=t[t.length-1];this.endPoint=Object.assign({},r)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(t){var e=this.updateCrossPoints(t);this.points=e.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var t=this.pointsList;return t[t.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(t){var e=t.startPoint,r=t.endPoint,n=t.sourceNode,o=t.targetNode,i=Sc({x:e.x,y:e.y},{x:r.x,y:r.y},n,o,this.offset||0);this.pointsList=i,this.initPoints()}}])&&Da(e.prototype,r),n&&Da(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(sa),ja=za(_a.prototype,"dbClickPosition",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),za(_a.prototype,"initPoints",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"initPoints"),_a.prototype),za(_a.prototype,"updatePoints",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"updatePoints"),_a.prototype),za(_a.prototype,"updateStartPoint",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"updateStartPoint"),_a.prototype),za(_a.prototype,"moveStartPoint",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"moveStartPoint"),_a.prototype),za(_a.prototype,"updateEndPoint",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"updateEndPoint"),_a.prototype),za(_a.prototype,"moveEndPoint",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"moveEndPoint"),_a.prototype),za(_a.prototype,"dragAppendStart",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"dragAppendStart"),_a.prototype),za(_a.prototype,"dragAppendSimple",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"dragAppendSimple"),_a.prototype),za(_a.prototype,"dragAppend",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"dragAppend"),_a.prototype),za(_a.prototype,"dragAppendEnd",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"dragAppendEnd"),_a.prototype),za(_a.prototype,"updatePointsAfterDrag",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"updatePointsAfterDrag"),_a.prototype),za(_a.prototype,"getAdjustStart",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"getAdjustStart"),_a.prototype),za(_a.prototype,"getAdjustEnd",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"getAdjustEnd"),_a.prototype),za(_a.prototype,"updateAfterAdjustStartAndEnd",[o.k],Object.getOwnPropertyDescriptor(_a.prototype,"updateAfterAdjustStartAndEnd"),_a.prototype),_a),Ua=function(t){var e=t.start,r=t.end,n=t.offset,o=t.verticalLength,i=t.type,u={leftX:0,leftY:0,rightX:0,rightY:0},a=Math.atan((r.y-e.y)/(r.x-e.x)),c=Math.atan(n/o),l=Math.sqrt(o*o+n*n);return"start"===i?r.x>=e.x?(u.leftX=e.x+l*Math.sin(a+c),u.leftY=e.y-l*Math.cos(a+c),u.rightX=e.x-l*Math.sin(a-c),u.rightY=e.y+l*Math.cos(a-c)):(u.leftX=e.x-l*Math.sin(a+c),u.leftY=e.y+l*Math.cos(a+c),u.rightX=e.x+l*Math.sin(a-c),u.rightY=e.y-l*Math.cos(a-c)):"end"===i&&(r.x>=e.x?(u.leftX=r.x+l*Math.sin(a-c),u.leftY=r.y-l*Math.cos(a-c),u.rightX=r.x-l*Math.sin(a+c),u.rightY=r.y+l*Math.cos(a+c)):(u.leftX=r.x-l*Math.sin(a-c),u.leftY=r.y+l*Math.cos(a-c),u.rightX=r.x+l*Math.sin(a+c),u.rightY=r.y-l*Math.cos(a+c))),u},Fa=100,Ha={x:1,y:0,z:0};function Xa(t,e,r,n,o){for(var i=function(o){if(o<0||o>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:t.x*Math.pow(1-o,3)+3*e.x*o*Math.pow(1-o,2)+3*r.x*Math.pow(o,2)*(1-o)+n.x*Math.pow(o,3),y:t.y*Math.pow(1-o,3)+3*e.y*o*Math.pow(1-o,2)+3*r.y*Math.pow(o,2)*(1-o)+n.y*Math.pow(o,3)}},u=0,a=2,c=n.x,l=n.y,s=n;u=0?o:-o;var e,r,n,o}function Va(t){return t*(180/Math.PI)}function Wa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ka(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rn/e.height?Ao.HORIZONTAL:Ao.VERTICAL},ic=function(t,e,r){return oc(r,e)===Ao.HORIZONTAL?{x:r.x>t.centerX?t.maxX:t.minX,y:r.y}:{x:r.x,y:r.y>t.centerY?t.maxY:t.minY}},uc=function(t,e){var r=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY),o=Math.max(t.maxX,e.maxX),i=Math.max(t.maxY,e.maxY);return{centerX:(r+o)/2,centerY:(n+i)/2,minX:r,minY:n,maxX:o,maxY:i,height:i-n,width:o-r}},ac=function(){var t=arguments.length>1?arguments[1]:void 0,e=[],r=[];(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(t){e.push(t.x),r.push(t.y)}));var n=Math.min.apply(Math,e),o=Math.max.apply(Math,e),i=Math.min.apply(Math,r),u=Math.max.apply(Math,r),a=o-n,c=u-i;return t&&(a+=t,c+=t),{centerX:(n+o)/2,centerY:(i+u)/2,maxX:o,maxY:u,minX:n,minY:i,x:(n+o)/2,y:(i+u)/2,height:c,width:a}},cc=function(t){var e=t.minX,r=t.minY,n=t.maxX,o=t.maxY;return[{x:e,y:r},{x:n,y:r},{x:n,y:o},{x:e,y:o}]},lc=function(t,e){var r=t.x,n=t.y;return re.maxX||ne.maxY},sc=function(t,e){return et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},fc=function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},pc=function(t,e){return sc(t,e.x).concat(fc(t,e.y))},yc=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},dc=function(t,e){var r=0;return e.forEach((function(e){e&&(t.x===e.x&&(r+=-2),t.y===e.y&&(r+=-2))})),r},hc=function(t,e,r,n,o){return yc(t,e)+yc(t,r)+dc(t,[e,r,n,o])},vc=function t(e,r,n,o,i){i||(i=0),e.unshift(r[o]),n[o]&&n[o]!==o&&i<=100&&t(e,r,n,n[o],i+1)},bc=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},gc=function(t,e,r,n){var o=e.x-t.x,i=e.y-t.y,u=n.x-r.x,a=n.y-r.y,c=(-i*(t.x-r.x)+o*(t.y-r.y))/(-u*i+o*a),l=(u*(t.y-r.y)-a*(t.x-r.x))/(-u*i+o*a);return c>=0&&c<=1&&l>=0&&l<=1},mc=function(t,e,r){if(0===r.width&&0===r.height)return!1;var n=Za(cc(r),4),o=n[0],i=n[1],u=n[2],a=n[3];return gc(t,e,o,i)||gc(t,e,o,a)||gc(t,e,i,u)||gc(t,e,u,a)},Oc=function(t,e,r,n){var o=[];return t.forEach((function(t){t!==e&&(t.x!==e.x&&t.y!==e.y||mc(t,e,r)||mc(t,e,n)||o.push(t))})),ec(o)},wc=function(t,e,r,n,o,i,u){var a=[],c=[e],l={},s={},f={};s[e.id]=0,f[e.id]=hc(e,r,e);var p={};t.forEach((function(t){p[t.id]=t}));for(var y=function(){var y,d=1/0;if(c.forEach((function(t){f[t.id]=s[t.id]||(l[t.id]=y.id,s[t.id]=n,f[t.id]=s[t.id]+hc(t,r,e,i,u))}}))};c.length;){var d=y();if("object"===qa(d))return d.v}return[e,r]},_c=function(t){return Fu(t)},jc=function(t){for(var e=1;e2&&(b=jc(b)),ec(b)},xc=function(t){var e;if(1===t.length)e=[t[0],t[0]];else if(t.length>=2){for(var r=t[0],n=t[1],o=zu(r.x,r.y,n.x,n.y),i=1;io&&(o=c,r=u,n=a)}e=[r,n]}return e},Ec=function(t,e,r){var n=Bu(t,r),o=Bu(e,r);return n&&o},Pc=function(t,e,r){var n=Bu(t,r),o=Bu(e,r);return!(n&&o)&&(n||o)},kc=function(t,e,r){for(var n,o,i=Fu(r),u=cc(i),a=0;a=1&&n<=126||n>=65376&&n<=65439?1:2}return e},Cc=null,Rc=function(t,e){Cc||(Cc=document.createElement("canvas"));var r=Cc.getContext("2d");return r.font=e,r.measureText(t).width},Ic=function(t){var e,r=t.start,n=t.end;if(r.x===n.x&&r.y===n.y)e="";else{var o={start:r,end:n,offset:10,verticalLength:5},i=Ua(Ka(Ka({},o),{},{type:"start"})),u=Ua(Ka(Ka({},o),{},{type:"end"}));e="M".concat(i.leftX," ").concat(i.leftY," \n L").concat(i.rightX," ").concat(i.rightY," \n L").concat(u.rightX," ").concat(u.rightY,"\n L").concat(u.leftX," ").concat(u.leftY," z")}return{d:e,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Lc=function(t){var e=t.start,r=t.end,n=t.sourceNode,o=t.targetNode,i=t.offset,u=Fu(n),a=Fu(o),c=nc(u,i),l=nc(a,i);return{sNext:ic(c,u,e),ePre:ic(l,a,r)}},zc=function(t){var e=t.replace(/M/g,"").replace(/C/g,",").split(",");return[Bc(e[0]),Bc(e[1]),Bc(e[2]),Bc(e[3])]},Bc=function(t){var e=Za(t.replace(/(^\s*)/g,"").split(" "),2);return{x:+e[0],y:+e[1]}},Uc=function(t,e){var r=Za(t,4);return[Xa(r[0],r[1],r[2],r[3],e),t[3]]},Fc=function(t,e){for(var r,n=t.x,o=t.y,i=Dc(e),u=Number.MAX_SAFE_INTEGER,a=[],c=0;cc||Math.abs(v)>c)){var e=h%c,r=v%c,n=h-e,i=v-r;h=e,v=r,o({deltaX:n,deltaY:i,event:t})}}function g(t){if(s&&t.stopPropagation(),p=!1,qc.removeEventListener("mousemove",b,!1),qc.removeEventListener("mouseup",g,!1),f)return f=!1,u({event:t})}return function(t){if(t.button===Zc)return s&&t.stopPropagation(),p=!0,y=t.clientX,d=t.clientY,qc.addEventListener("mousemove",b,!1),qc.addEventListener("mouseup",g,!1),r({event:t})}}var Qc=function(){function t(e){var r=this,n=e.onDragStart,o=void 0===n?Yc:n,i=e.onDragging,u=void 0===i?Yc:i,a=e.onDragEnd,c=void 0===a?Yc:a,l=e.eventType,s=void 0===l?"":l,f=e.eventCenter,p=void 0===f?null:f,y=e.step,d=void 0===y?1:y,h=e.isStopPropagation,v=void 0===h||h,b=e.model,g=void 0===b?null:b,m=e.data,O=void 0===m?null:m;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Kc(this,"onDragStart",void 0),Kc(this,"onDragging",void 0),Kc(this,"onDragEnd",void 0),Kc(this,"step",void 0),Kc(this,"isStopPropagation",void 0),Kc(this,"isDragging",!1),Kc(this,"isStartDragging",!1),Kc(this,"startX",0),Kc(this,"startY",0),Kc(this,"sumDeltaX",0),Kc(this,"sumDeltaY",0),Kc(this,"eventType",void 0),Kc(this,"eventCenter",void 0),Kc(this,"model",void 0),Kc(this,"data",void 0),Kc(this,"startTime",void 0),Kc(this,"handleMouseDown",(function(t){var e,n;if(t.button===Zc){r.isStopPropagation&&t.stopPropagation(),r.isStartDragging=!0,r.startX=t.clientX,r.startY=t.clientY,qc.addEventListener("mousemove",r.handleMouseMove,!1),qc.addEventListener("mouseup",r.handleMouseUp,!1);var o=null===(e=r.model)||void 0===e?void 0:e.getData();null===(n=r.eventCenter)||void 0===n||n.emit(ko["".concat(r.eventType,"_MOUSEDOWN")],{e:t,data:r.data||o}),r.startTime=(new Date).getTime()}})),Kc(this,"handleMouseMove",(function(t){if(r.isStopPropagation&&t.stopPropagation(),r.isStartDragging&&(r.sumDeltaX+=t.clientX-r.startX,r.sumDeltaY+=t.clientY-r.startY,r.startX=t.clientX,r.startY=t.clientY,r.step<=1||Math.abs(r.sumDeltaX)>r.step||Math.abs(r.sumDeltaY)>r.step)){var e,n=r.sumDeltaX%r.step,o=r.sumDeltaY%r.step,i=r.sumDeltaX-n,u=r.sumDeltaY-o;r.sumDeltaX=n,r.sumDeltaY=o;var a,c=null===(e=r.model)||void 0===e?void 0:e.getData();if(!r.isDragging)null===(a=r.eventCenter)||void 0===a||a.emit(ko["".concat(r.eventType,"_DRAGSTART")],{e:t,data:r.data||c}),r.onDragStart({event:t});r.isDragging=!0,Promise.resolve().then((function(){var e,n;r.onDragging({deltaX:i,deltaY:u,event:t}),null===(e=r.eventCenter)||void 0===e||e.emit(ko["".concat(r.eventType,"_MOUSEMOVE")],{e:t,data:r.data||c}),null===(n=r.eventCenter)||void 0===n||n.emit(ko["".concat(r.eventType,"_DRAG")],{e:t,data:r.data||c})}))}})),Kc(this,"handleMouseUp",(function(t){r.isStartDragging=!1,r.isStopPropagation&&t.stopPropagation(),Promise.resolve().then((function(){var e,n,o;qc.removeEventListener("mousemove",r.handleMouseMove,!1),qc.removeEventListener("mouseup",r.handleMouseUp,!1);var i=null===(e=r.model)||void 0===e?void 0:e.getData();null===(n=r.eventCenter)||void 0===n||n.emit(ko["".concat(r.eventType,"_MOUSEUP")],{e:t,data:r.data||i}),r.isDragging&&(r.isDragging=!1,r.onDragEnd({event:t}),null===(o=r.eventCenter)||void 0===o||o.emit(ko["".concat(r.eventType,"_DROP")],{e:t,data:r.data||i}))}))})),Kc(this,"cancelDrag",(function(){qc.removeEventListener("mousemove",r.handleMouseMove,!1),qc.removeEventListener("mouseup",r.handleMouseUp,!1),r.onDragEnd({event:null}),r.isDragging=!1})),this.onDragStart=o,this.onDragging=u,this.onDragEnd=c,this.step=d,this.isStopPropagation=v,this.eventType=s,this.eventCenter=p,this.model=g,this.data=O}var e,r,n;return e=t,(r=[{key:"setStep",value:function(t){this.step=t}},{key:"setModel",value:function(t){this.model=t}}])&&Wc(e.prototype,r),n&&Wc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function tl(t){return tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(t)}function el(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rl(t,e){for(var r=0;r=0?r:-r}}]),r}(hl),bl=function(t){ol(r,t);var e=il(r);function r(t,n){var o;return el(this,r),o=e.call(this,t,n,1),Object.setPrototypeOf(ul(o),r.prototype),o}return nl(r,[{key:"toString",value:function(){return"Point"}}]),r}(hl);r(76),r(143);function gl(t){return gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(t)}function ml(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||wl(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ol(t){return function(t){if(Array.isArray(t))return _l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||wl(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wl(t,e){if(t){if("string"==typeof t)return _l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_l(t,e):void 0}}function _l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=[],u=[];this.nodes.forEach((function(t){return u.push(t)})),this.edges.forEach((function(t){return u.push(t)}));for(var a=0;a3&&void 0!==arguments[3])||arguments[3],o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(t.BaseType===Po.NODE){for(var i=Fu(t),u=i.minX,a=i.minY,c=i.maxX,l=i.maxY,s=[{x:u,y:a},{x:c,y:a},{x:c,y:l},{x:u,y:l}],f=o,p=0;p0&&void 0!==arguments[0])||arguments[0],e=this.selectElements,r={nodes:[],edges:[]};return e.forEach((function(n){if(n.BaseType===Po.NODE&&r.nodes.push(n.getData()),n.BaseType===Po.EDGE){var o=n.getData(),i=e.get(o.sourceNodeId)&&e.get(o.targetNodeId);(t||i)&&r.edges.push(o)}})),r}},{key:"updateAttributes",value:function(t,e){this.getElement(t).updateAttributes(e)}},{key:"changeNodeId",value:function(t,e){return e||(e=au()),this.nodesMap[e]?"":this.nodesMap[t]?(this.edges.forEach((function(r){r.sourceNodeId===t&&(r.sourceNodeId=e),r.targetNodeId===t&&(r.targetNodeId=e)})),this.nodesMap[t].model.id=e,this.nodesMap[e]=this.nodesMap[t],e):""}},{key:"changeEdgeId",value:function(t,e){return e||(e=au()),this.edgesMap[e]?"":this.edgesMap[t]?(this.edges.forEach((function(r){r.id===t&&r.changeEdgeId(e)})),e):""}},{key:"setFakerNode",value:function(t){this.fakerNode=t}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(t,e){return this.modelMap.set(t,e)}},{key:"toFront",value:function(t){var e,r,n,o=(null===(e=this.nodesMap[t])||void 0===e?void 0:e.model)||(null===(r=this.edgesMap[t])||void 0===r?void 0:r.model);o&&(this.overlapMode===Do.DEFAULT&&(null===(n=this.topElement)||void 0===n||n.setZIndex(),o.setZIndex(9999),this.topElement=o),this.overlapMode===Do.INCREASE&&this.setElementZIndex(t,"top"))}},{key:"setElementZIndex",value:function(t,e){var r,n,o,i=(null===(r=this.nodesMap[t])||void 0===r?void 0:r.model)||(null===(n=this.edgesMap[t])||void 0===n?void 0:n.model);i&&("number"==typeof e&&(o=e),"top"===e&&(o=ta()),"bottom"===e&&(o=--Qu),i.setZIndex(o))}},{key:"deleteNode",value:function(t){var e=this.nodesMap[t].model.getData();this.deleteEdgeBySource(t),this.deleteEdgeByTarget(t),this.nodes.splice(this.nodesMap[t].index,1),this.eventCenter.emit(ko.NODE_DELETE,{data:e})}},{key:"addNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ko.NODE_ADD,r=arguments.length>2?arguments[2]:void 0,n=Zu(t);n.id&&this.nodesMap[t.id]&&delete n.id;var o=this.getModel(n.type);if(!o)throw new Error("找不到".concat(n.type,"对应的节点,请确认是否已注册此类型节点。"));n.x=Vi(n.x,this.gridSize),n.y=Vi(n.y,this.gridSize);var i=new o(n,this);this.nodes.push(i);var u={data:i.getData()};return r&&(u.e=r),this.eventCenter.emit(e,u),i}},{key:"cloneNode",value:function(t){var e=this.getNodeModelById(t),r=e.getData();r.x+=30,r.y+=30,delete r.id,r.text&&(r.text.x+=30,r.text.y+=30);var n=this.addNode(r);return n.setSelected(!0),e.setSelected(!1),n.getData()}},{key:"moveNode",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.nodesMap[t];if(o){var i=ns(o.model.getMoveDistance(e,r,n),2);e=i[0],r=i[1],this.moveEdge(t,e,r)}}},{key:"moveNode2Coordinate",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.nodesMap[t];if(o){var i=o.model,u=e-i.x,a=r-i.y;this.moveNode(t,u,a,n)}}},{key:"editText",value:function(t){this.setElementStateById(t,xo.TEXT_EDIT)}},{key:"addEdge",value:function(t){var e=Zu(t),r=e.type;r||(r=this.edgeType),e.id&&this.edgesMap[e.id]&&delete e.id;var n=this.getModel(r);if(!n)throw new Error("找不到".concat(r,"对应的边,请确认是否已注册此类型边。"));var o=new n(rs(rs({},e),{},{type:r}),this),i=o.getData();return this.edges.push(o),this.eventCenter.emit(ko.EDGE_ADD,{data:i}),o}},{key:"moveEdge",value:function(t,e,r){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1]||this.clearSelectElements();var r=null===(e=this.nodesMap[t])||void 0===e?void 0:e.model;null==r||r.setSelected(!0)}},{key:"selectEdgeById",value:function(t){var e;arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this.clearSelectElements();var r=null===(e=this.edgesMap[t])||void 0===e?void 0:e.model;null==r||r.setSelected(!0)}},{key:"selectElementById",value:function(t){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||this.clearSelectElements();var e=this.getElement(t);null==e||e.setSelected(!0)}},{key:"clearSelectElements",value:function(){var t;this.selectElements.forEach((function(t){null==t||t.setSelected(!1)})),this.selectElements.clear(),this.overlapMode===Do.DEFAULT&&(null===(t=this.topElement)||void 0===t||t.setZIndex())}},{key:"moveNodes",value:function(t,e,r){for(var n=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t.reduce((function(t,i){var u=n.nodesMap[i].model.getMoveDistance(e,r,o);return t[i]=u,t}),{}),u=0;u0&&void 0!==arguments[0]?arguments[0]:20,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=this.nodes,n=this.width,o=this.height,i=this.rootEl,u=this.transformModel;if(r.length){var a,c=n||i.clientWidth,l=o||i.clientHeight,s=this.getVirtualRectSize(),f=s.virtualRectWidth,p=s.virtualRectHeight,y=s.virtualRectCenterPositionX,d=s.virtualRectCenterPositionY,h=(f+e)/c,v=(p+t)/l;a=1/Math.max(h,v);var b=[c/2,l/2];u.zoom(a,b),u.focusOn(y,d,c,l)}}},{key:"openEdgeAnimation",value:function(t){this.getEdgeModelById(t).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(t){this.getEdgeModelById(t).closeEdgeAnimation()}}],r&&ls(e.prototype,r),n&&ls(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Ll=ps(Il.prototype,"width",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),zl=ps(Il.prototype,"height",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Bl=ps(Il.prototype,"edgeType",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ul=ps(Il.prototype,"nodes",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Fl=ps(Il.prototype,"edges",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Hl=ps(Il.prototype,"overlapMode",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return Do.DEFAULT}}),Xl=ps(Il.prototype,"background",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Gl=ps(Il.prototype,"transformModel",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Yl=ps(Il.prototype,"editConfigModel",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Vl=ps(Il.prototype,"gridSize",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Wl=ps(Il.prototype,"partial",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kl=ps(Il.prototype,"fakerNode",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ps(Il.prototype,"nodesMap",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"nodesMap"),Il.prototype),ps(Il.prototype,"edgesMap",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"edgesMap"),Il.prototype),ps(Il.prototype,"modelsMap",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"modelsMap"),Il.prototype),ps(Il.prototype,"sortElements",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"sortElements"),Il.prototype),ps(Il.prototype,"textEditElement",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"textEditElement"),Il.prototype),ps(Il.prototype,"selectElements",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"selectElements"),Il.prototype),ps(Il.prototype,"selectNodes",[o.m],Object.getOwnPropertyDescriptor(Il.prototype,"selectNodes"),Il.prototype),ps(Il.prototype,"setFakerNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setFakerNode"),Il.prototype),ps(Il.prototype,"removeFakerNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"removeFakerNode"),Il.prototype),ps(Il.prototype,"setModel",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setModel"),Il.prototype),ps(Il.prototype,"toFront",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"toFront"),Il.prototype),ps(Il.prototype,"setElementZIndex",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setElementZIndex"),Il.prototype),ps(Il.prototype,"deleteNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"deleteNode"),Il.prototype),ps(Il.prototype,"addNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"addNode"),Il.prototype),ps(Il.prototype,"cloneNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"cloneNode"),Il.prototype),ps(Il.prototype,"moveNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"moveNode"),Il.prototype),ps(Il.prototype,"moveNode2Coordinate",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"moveNode2Coordinate"),Il.prototype),ps(Il.prototype,"editText",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"editText"),Il.prototype),ps(Il.prototype,"addEdge",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"addEdge"),Il.prototype),ps(Il.prototype,"moveEdge",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"moveEdge"),Il.prototype),ps(Il.prototype,"deleteEdgeBySourceAndTarget",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"deleteEdgeBySourceAndTarget"),Il.prototype),ps(Il.prototype,"deleteEdgeById",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"deleteEdgeById"),Il.prototype),ps(Il.prototype,"deleteEdgeBySource",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"deleteEdgeBySource"),Il.prototype),ps(Il.prototype,"deleteEdgeByTarget",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"deleteEdgeByTarget"),Il.prototype),ps(Il.prototype,"setElementStateById",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setElementStateById"),Il.prototype),ps(Il.prototype,"updateText",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"updateText"),Il.prototype),ps(Il.prototype,"selectNodeById",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"selectNodeById"),Il.prototype),ps(Il.prototype,"selectEdgeById",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"selectEdgeById"),Il.prototype),ps(Il.prototype,"selectElementById",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"selectElementById"),Il.prototype),ps(Il.prototype,"clearSelectElements",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"clearSelectElements"),Il.prototype),ps(Il.prototype,"moveNodes",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"moveNodes"),Il.prototype),ps(Il.prototype,"setDefaultEdgeType",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setDefaultEdgeType"),Il.prototype),ps(Il.prototype,"changeNodeType",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"changeNodeType"),Il.prototype),ps(Il.prototype,"changeEdgeType",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"changeEdgeType"),Il.prototype),ps(Il.prototype,"getNodeIncomingEdge",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"getNodeIncomingEdge"),Il.prototype),ps(Il.prototype,"getNodeOutgoingEdge",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"getNodeOutgoingEdge"),Il.prototype),ps(Il.prototype,"getNodeIncomingNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"getNodeIncomingNode"),Il.prototype),ps(Il.prototype,"getNodeOutgoingNode",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"getNodeOutgoingNode"),Il.prototype),ps(Il.prototype,"setTheme",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"setTheme"),Il.prototype),ps(Il.prototype,"resize",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"resize"),Il.prototype),ps(Il.prototype,"changeBackground",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"changeBackground"),Il.prototype),ps(Il.prototype,"clearData",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"clearData"),Il.prototype),ps(Il.prototype,"translateCenter",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"translateCenter"),Il.prototype),ps(Il.prototype,"fitView",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"fitView"),Il.prototype),ps(Il.prototype,"openEdgeAnimation",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"openEdgeAnimation"),Il.prototype),ps(Il.prototype,"closeEdgeAnimation",[o.k],Object.getOwnPropertyDescriptor(Il.prototype,"closeEdgeAnimation"),Il.prototype),Il),vs=hs;function bs(t){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(t)}function gs(){return gs=Object.assign?Object.assign.bind():function(t){for(var e=1;e=u){var y=e.stepScrollX%u,d=e.stepScrollX-y;i.translate(-d*i.SCALE_X,0),e.stepScrollX=y}if(Math.abs(e.stepScrollY)>=u){var h=e.stepScrollY%u,v=e.stepScrollY-h;i.translate(0,-v*i.SCALE_Y),e.stepScrollY=h}}})),Ss(_s(e),"clickHandler",(function(t){if("canvas-overlay"===t.target.getAttribute("name")){var r=e.props.graphModel;r.selectElements.size>0&&r.clearSelectElements(),r.eventCenter.emit(ko.BLANK_CLICK,{e:t})}})),Ss(_s(e),"handleContextMenu",(function(t){if("canvas-overlay"===t.target.getAttribute("name")){t.preventDefault();var r=e.props.graphModel,n=r.getPointByClient({x:t.clientX,y:t.clientY});r.eventCenter.emit(ko.BLANK_CONTEXTMENU,{e:t,position:n})}})),Ss(_s(e),"mouseDownHandler",(function(t){var r=e.props.graphModel,n=r.eventCenter,o=r.editConfigModel,i=r.transformModel.SCALE_X,u=r.gridSize,a=t.target,c=!o.adjustEdge&&!o.adjustNodePosition;("canvas-overlay"===a.getAttribute("name")||c)&&(!0!==o.stopMoveGraph?(e.stepDrag.setStep(u*i),e.stepDrag.handleMouseDown(t)):n.emit(ko.BLANK_MOUSEDOWN,{e:t}),e.clickHandler(t))}));var r=t.graphModel,n=r.gridSize,u=r.eventCenter;return e.stepDrag=new Qc({onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:n,eventType:"BLANK",isStopPropagation:!1,eventCenter:u,model:null}),e.state={isDragging:!1},e}return e=i,(r=[{key:"render",value:function(){var t=this.props.graphModel.transformModel.getTransformStyle().transform,e=this.props,r=e.children,n=e.dnd,o=this.state.isDragging;return Object(et.g)("svg",gs({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:o?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},n.eventMap()),Object(et.g)("g",{transform:t},r))}}])&&ms(e.prototype,r),n&&ms(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(et.a))||ys;function ks(t){return ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(t)}function As(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:"canvas-overlay",n=(0,this.props.getView)(t.type);return Object(et.g)(n,{key:t.id,model:t,graphModel:e,overlay:r})}},{key:"render",value:function(){var t=this,e=this.props,r=e.graphModel,n=e.tool,o=e.options,i=e.dnd,u=e.snaplineModel,a={};o.width&&(a.width="".concat(r.width,"px")),o.height&&(a.height="".concat(r.height,"px"));var c=o.grid,l=r.fakerNode,s=r.editConfigModel.adjustEdge;return Object(et.g)("div",{className:"lf-graph","flow-id":r.flowId,style:a},Object(et.g)(Ps,{graphModel:r,dnd:i},Object(et.g)("g",{className:"lf-base"},hn(r.sortElements,(function(e){return t.getComponent(e,r)}))),l?this.getComponent(l,r):""),Object(et.g)(ep,{graphModel:r},Object(et.g)(Pf,{graphModel:r}),s?Object(et.g)(Kf,{graphModel:r}):"",!1!==o.snapline?Object(et.g)(ff,{snaplineModel:u}):""),Object(et.g)(Ms,{graphModel:r,tool:n}),r.background&&Object(et.g)(Us,{background:r.background}),o.grid&&Object(et.g)(Ks,np({},c,{graphModel:r})))}}],r&&op(e.prototype,r),n&&op(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(et.a))||tp,lp=cp;function sp(t){return sp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sp(t)}function fp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function pp(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r0){var t=0,e=0;return this.pointsList.forEach((function(r){var n=r.x,o=r.y;t+=n,e+=o})),{x:t/this.pointsList.length,y:e/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}},{key:"getData",value:function(){var t=Pp(Tp(i.prototype),"getData",this).call(this),e=this.pointsList.map((function(t){return{x:t.x,y:t.y}}));return xp(xp({},t),{},{pointsList:e})}},{key:"getControls",value:function(){var t=this.startPoint,e=this.endPoint;return Lc({start:t,end:e,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(t){var e=_p(t,4),r=e[0],n=e[1],o=e[2],i=e[3];return"M ".concat(r.x," ").concat(r.y,"\n C ").concat(n.x," ").concat(n.y,",\n ").concat(o.x," ").concat(o.y,",\n ").concat(i.x," ").concat(i.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var t=this.getControls(),e=t.sNext,r=t.ePre;this.updatePath(e,r)}},{key:"updatePath",value:function(t,e){t=Ei(t),e=Ei(e);var r={x:this.startPoint.x,y:this.startPoint.y},n={x:this.endPoint.x,y:this.endPoint.y};if(!t||!e){var o=this.getControls();t=o.sNext,e=o.ePre}this.pointsList=[r,t,e,n],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(t){this.startPoint=t,this.updatePoints()}},{key:"updateEndPoint",value:function(t){this.endPoint=t,this.updatePoints()}},{key:"moveStartPoint",value:function(t,e){this.startPoint.x+=t,this.startPoint.y+=e;var r=_p(this.pointsList,3),n=r[1],o=r[2];n.x+=t,n.y+=e,this.updatePath(n,o)}},{key:"moveEndPoint",value:function(t,e){this.endPoint.x+=t,this.endPoint.y+=e;var r=_p(this.pointsList,3),n=r[1],o=r[2];o.x+=t,o.y+=e,this.updatePath(n,o)}},{key:"updateAdjustAnchor",value:function(t,e){"sNext"===e?this.pointsList[1]=t:"ePre"===e&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),this.setText(Object.assign({},this.text,this.textPosition))}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var t=this.pointsList;return t[t.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(t){var e=t.startPoint,r=t.endPoint,n=t.sourceNode,o=t.targetNode,i=Lc({start:e,end:r,sourceNode:n,targetNode:o,offset:this.offset}),u=i.sNext,a=i.ePre;this.pointsList=[e,u,a,r],this.initPoints()}}])&&Ep(e.prototype,r),n&&Ep(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(sa),mp=Cp(gp.prototype,"path",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Cp(gp.prototype,"initPoints",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"initPoints"),gp.prototype),Cp(gp.prototype,"updatePoints",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"updatePoints"),gp.prototype),Cp(gp.prototype,"updateStartPoint",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"updateStartPoint"),gp.prototype),Cp(gp.prototype,"updateEndPoint",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"updateEndPoint"),gp.prototype),Cp(gp.prototype,"moveStartPoint",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"moveStartPoint"),gp.prototype),Cp(gp.prototype,"moveEndPoint",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"moveEndPoint"),gp.prototype),Cp(gp.prototype,"updateAdjustAnchor",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"updateAdjustAnchor"),gp.prototype),Cp(gp.prototype,"getAdjustStart",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"getAdjustStart"),gp.prototype),Cp(gp.prototype,"getAdjustEnd",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"getAdjustEnd"),gp.prototype),Cp(gp.prototype,"updateAfterAdjustStartAndEnd",[o.k],Object.getOwnPropertyDescriptor(gp.prototype,"updateAfterAdjustStartAndEnd"),gp.prototype),gp);function zp(t){return zp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zp(t)}function Bp(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Up(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Up(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Up(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?this.points=this.pointsList.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var t=Sc({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" ")}}])&&Xp(e.prototype,r),n&&Xp(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(sa),Ip=Zp(Rp.prototype,"dbClickPosition",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Zp(Rp.prototype,"initPoints",[o.k],Object.getOwnPropertyDescriptor(Rp.prototype,"initPoints"),Rp.prototype),Zp(Rp.prototype,"updatePoints",[o.k],Object.getOwnPropertyDescriptor(Rp.prototype,"updatePoints"),Rp.prototype),Rp);function ey(t){return ey="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ey(t)}function ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ny(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ny(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ny(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?this.points=this.pointsList.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var t=Sc({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map((function(t){return"".concat(t.x,",").concat(t.y)})).join(" ")}}])&&uy(e.prototype,r),n&&uy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(sa),Qp=dy(Jp.prototype,"dbClickPosition",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),dy(Jp.prototype,"initPoints",[o.k],Object.getOwnPropertyDescriptor(Jp.prototype,"initPoints"),Jp.prototype),dy(Jp.prototype,"updatePoints",[o.k],Object.getOwnPropertyDescriptor(Jp.prototype,"updatePoints"),Jp.prototype),Jp);var vy,by,gy,my,Oy,wy,_y,jy,Sy,xy,Ey,Py,ky,Ay,Dy,Ty,Ny,My,Cy,Ry,Iy,Ly,zy,By,Uy=function(t){return null==t};function Fy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||Xy(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hy(t){return Hy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hy(t)}function Xy(t,e){if(t){if("string"==typeof t)return Gy(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gy(t,e):void 0}}function Gy(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}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 i,u=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){a=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(a)throw i}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(i.s();!(r=i.n()).done;){var u=(0,r.value)(this,t,e);if(!u)return!1;if("object"===Hy(u)){var a=u;if(!1===a.x&&!1===a.y)return!1;n=n&&a.x,o=o&&a.y}}}catch(t){i.e(t)}finally{i.f()}return{x:n,y:o}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var t=this.anchorsOffset,e=this.id,r=this.x,n=this.y;return t&&t.length>0?t.map((function(t,o){return t.length?{id:"".concat(e,"_").concat(o),x:r+t[0],y:n+t[1]}:Vy(Vy({},t),{},{x:r+t.x,y:n+t.y,id:t.id||"".concat(e,"_").concat(o)})})):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(t){return function(t,e){for(var r,n=Ru(e),o=Number.MAX_SAFE_INTEGER,i=0;i2&&void 0!==arguments[2]&&arguments[2])r=!0,n=!0;else{var o=this.isAllowMoveNode(t,e);"boolean"==typeof o?(r=o,n=o):(r=o.x,n=o.y)}if(r){var i=this.x+t;this.x=i,this.text&&this.moveText(t,0)}if(n){var u=this.y+e;this.y=u,this.text&&this.moveText(0,e)}return r||n}},{key:"getMoveDistance",value:function(t,e){var r=!1,n=!1,o=0,i=0;if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])r=!0,n=!0;else{var u=this.isAllowMoveNode(t,e);"boolean"==typeof u?(r=u,n=u):(r=u.x,n=u.y)}if(r&&t){var a=this.x+t;this.x=a,this.text&&this.moveText(t,0),o=t}if(n&&e){var c=this.y+e;this.y=c,this.text&&this.moveText(0,e),i=e}return[o,i]}},{key:"moveTo",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=t-this.x,o=e-this.y;return!(!r&&!this.isAllowMoveNode(n,o)||(this.text&&this.text&&this.moveText(n,o),this.x=t,this.y=e,0))}},{key:"moveText",value:function(t,e){var r=this.text,n=r.x,o=r.y,i=r.value,u=r.draggable,a=r.editable;this.text={value:i,editable:a,draggable:u,x:n+t,y:o+e}}},{key:"updateText",value:function(t){this.text=Vy(Vy({},Object(o.I)(this.text)),{},{value:t})}},{key:"setSelected",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isSelected=t}},{key:"setHovered",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isHovered=t,this.setIsShowAnchor(t)}},{key:"setIsShowAnchor",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isShowAnchor=t}},{key:"setEnableRotate",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.enableRotate=t}},{key:"setHitable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.isHitable=t}},{key:"setElementState",value:function(t,e){this.state=t,this.additionStateData=e}},{key:"setProperty",value:function(t,e){this.properties=Vy(Vy({},Object(o.I)(this.properties)),{},$y({},t,Zu(e))),this.setAttributes()}},{key:"setProperties",value:function(t){this.properties=Vy(Vy({},Object(o.I)(this.properties)),Zu(t)),this.setAttributes()}},{key:"deleteProperty",value:function(t){delete this.properties[t],this.setAttributes()}},{key:"setStyle",value:function(t,e){this.style=Vy(Vy({},this.style),{},$y({},t,Zu(e)))}},{key:"setStyles",value:function(t){this.style=Vy(Vy({},this.style),Zu(t))}},{key:"updateStyles",value:function(t){this.style=Vy({},Zu(t))}},{key:"setZIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.zIndex=t}},{key:"updateAttributes",value:function(t){Mn(this,t)}}],r&&Ky(e.prototype,r),n&&Ky(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),by=Zy(vy.prototype,"type",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),gy=Zy(vy.prototype,"x",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),my=Zy(vy.prototype,"y",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Oy=Zy(vy.prototype,"text",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),wy=Zy(vy.prototype,"properties",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),_y=Zy(vy.prototype,"_width",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),jy=Zy(vy.prototype,"_height",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),Sy=Zy(vy.prototype,"anchorsOffset",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xy=Zy(vy.prototype,"isSelected",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ey=Zy(vy.prototype,"isHovered",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Py=Zy(vy.prototype,"isShowAnchor",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ky=Zy(vy.prototype,"alwaysShowAnchor",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ay=Zy(vy.prototype,"isDragging",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Dy=Zy(vy.prototype,"isHitable",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ty=Zy(vy.prototype,"draggable",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ny=Zy(vy.prototype,"visible",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),My=Zy(vy.prototype,"enableRotate",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Cy=Zy(vy.prototype,"zIndex",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Ry=Zy(vy.prototype,"state",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Iy=Zy(vy.prototype,"autoToFront",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ly=Zy(vy.prototype,"style",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),zy=Zy(vy.prototype,"transform",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),By=Zy(vy.prototype,"_rotate",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Zy(vy.prototype,"incoming",[o.m],Object.getOwnPropertyDescriptor(vy.prototype,"incoming"),vy.prototype),Zy(vy.prototype,"outgoing",[o.m],Object.getOwnPropertyDescriptor(vy.prototype,"outgoing"),vy.prototype),Zy(vy.prototype,"addNodeMoveRules",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"addNodeMoveRules"),vy.prototype),Zy(vy.prototype,"move",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"move"),vy.prototype),Zy(vy.prototype,"getMoveDistance",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"getMoveDistance"),vy.prototype),Zy(vy.prototype,"moveTo",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"moveTo"),vy.prototype),Zy(vy.prototype,"moveText",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"moveText"),vy.prototype),Zy(vy.prototype,"updateText",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"updateText"),vy.prototype),Zy(vy.prototype,"setSelected",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setSelected"),vy.prototype),Zy(vy.prototype,"setHovered",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setHovered"),vy.prototype),Zy(vy.prototype,"setIsShowAnchor",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setIsShowAnchor"),vy.prototype),Zy(vy.prototype,"setEnableRotate",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setEnableRotate"),vy.prototype),Zy(vy.prototype,"setHitable",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setHitable"),vy.prototype),Zy(vy.prototype,"setElementState",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setElementState"),vy.prototype),Zy(vy.prototype,"setProperty",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setProperty"),vy.prototype),Zy(vy.prototype,"setProperties",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setProperties"),vy.prototype),Zy(vy.prototype,"deleteProperty",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"deleteProperty"),vy.prototype),Zy(vy.prototype,"setStyle",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setStyle"),vy.prototype),Zy(vy.prototype,"setStyles",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setStyles"),vy.prototype),Zy(vy.prototype,"updateStyles",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"updateStyles"),vy.prototype),Zy(vy.prototype,"setZIndex",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"setZIndex"),vy.prototype),Zy(vy.prototype,"updateAttributes",[o.k],Object.getOwnPropertyDescriptor(vy.prototype,"updateAttributes"),vy.prototype),vy);function ed(t){return ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(t)}function rd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nd(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);re&&(e=n)})),e-t}},{key:"height",get:function(){var t=Number.MAX_SAFE_INTEGER,e=Number.MIN_SAFE_INTEGER;return this.points.forEach((function(r){var n=gd(r,2)[1];ne&&(e=n)})),e-t}},{key:"getDefaultAnchor",value:function(){var t=this;return this.points.map((function(e,r){var n=gd(e,2);return{x:n[0],y:n[1],id:"".concat(t.id,"_").concat(r)}}))}}])&&jd(e.prototype,r),n&&jd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(td),dd=Td(yd.prototype,"rx",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),hd=Td(yd.prototype,"ry",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Td(yd.prototype,"points",[o.m],Object.getOwnPropertyDescriptor(yd.prototype,"points"),yd.prototype),Td(yd.prototype,"pointsPosition",[o.m],Object.getOwnPropertyDescriptor(yd.prototype,"pointsPosition"),yd.prototype),Td(yd.prototype,"width",[o.m],Object.getOwnPropertyDescriptor(yd.prototype,"width"),yd.prototype),Td(yd.prototype,"height",[o.m],Object.getOwnPropertyDescriptor(yd.prototype,"height"),yd.prototype),yd);function Id(t){return Id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Id(t)}function Ld(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function zd(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);re&&(e=n)})),e-t}},{key:"height",get:function(){var t=Number.MAX_SAFE_INTEGER,e=Number.MIN_SAFE_INTEGER;return this.points.forEach((function(r){var n=Qd(r,2)[1];ne&&(e=n)})),e-t}},{key:"getDefaultAnchor",value:function(){var t=this,e=this.x,r=this.y,n=this.width,o=this.height;return this.points.map((function(i,u){var a=Qd(i,2),c=a[0],l=a[1];return{x:e+c-n/2,y:r+l-o/2,id:"".concat(t.id,"_").concat(u)}}))}}])&&nh(e.prototype,r),n&&nh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(td),qd=fh($d.prototype,"points",[o.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),fh($d.prototype,"pointsPosition",[o.m],Object.getOwnPropertyDescriptor($d.prototype,"pointsPosition"),$d.prototype),fh($d.prototype,"width",[o.m],Object.getOwnPropertyDescriptor($d.prototype,"width"),$d.prototype),fh($d.prototype,"height",[o.m],Object.getOwnPropertyDescriptor($d.prototype,"height"),$d.prototype),$d);function hh(t){return hh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hh(t)}function vh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bh(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rl?j=[-10,0]:m<10?j=[0,10]:m+10>s&&(j=[0,-10]),t.setState({endX:w,endY:_,dragging:!0}),t.moveAnchorEnd(w,_),j.length>0&&!y&&p&&(t.t=cv((function(){var e=dv(j,2),r=e[0],n=e[1];a.translate(r,n);var o=t.state,i=o.endX,u=o.endY;t.setState({endX:i-r,endY:u-n}),t.moveAnchorEnd(i-r,u-n)}))),c.emit(ko.ANCHOR_DRAG,{data:u,e:r,nodeModel:i})})),wv(mv(t),"onDragEnd",(function(e){var r=e.event;t.t&&lv(t.t);var n=t.checkEnd(r);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var o=t.props,i=o.graphModel,u=o.nodeModel,a=o.anchorData;i.eventCenter.emit(ko.ANCHOR_DRAGEND,{data:a,e:r,nodeModel:u,edgeModel:n})})),wv(mv(t),"checkEnd",(function(e){var r=t.props,n=r.graphModel,o=r.nodeModel,i=r.anchorData,u=i.x,a=i.y,c=i.id,l=(n.edgeType,t.state),s=l.endX,f=l.endY,p=l.dragging,y=Iu({x:s,y:f},n);if(t.preTargetNode&&t.preTargetNode.state!==xo.DEFAULT&&t.preTargetNode.setElementState(xo.DEFAULT),p&&y&&y.node){var d=y.node,h=y.anchor.id,v="".concat(o.id,"_").concat(d.id,"_").concat(h,"_").concat(c),b=t.sourceRuleResults.get(v)||{},g=b.isAllPass,m=b.msg,O=t.targetRuleResults.get(v)||{},w=O.isAllPass,_=O.msg;if(g&&w){d.setElementState(xo.DEFAULT);var j=n.edgeGenerator(o.getData(),n.getNodeModelById(y.node.id).getData()),S=n.addEdge(yv(yv({},j),{},{sourceNodeId:o.id,sourceAnchorId:c,startPoint:{x:u,y:a},targetNodeId:y.node.id,targetAnchorId:y.anchor.id,endPoint:{x:y.anchor.x,y:y.anchor.y}})),x=t.props.anchorData;return n.eventCenter.emit(ko.ANCHOR_DROP,{data:x,e:e,nodeModel:o,edgeModel:S}),S}var E=d.getData();return n.eventCenter.emit(ko.CONNECTION_NOT_ALLOWED,{data:E,msg:_||m}),null}})),t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Qc({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e=i,(r=[{key:"getAnchorShape",value:function(){var t=this.props,e=t.anchorData,r=t.style,n=t.node.getAnchorShape(e);if(n)return n;var o=e.x,i=e.y,u=yv(yv({},r),r.hover);return Object(et.g)("g",null,Object(et.g)(Tf,fv({className:"lf-node-anchor-hover"},u,{x:o,y:i})),Object(et.g)(Tf,fv({className:"lf-node-anchor"},r,{x:o,y:i})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"moveAnchorEnd",value:function(t,e){var r=this.props,n=r.graphModel,o=r.nodeModel,i=r.anchorData,u=Iu({x:t,y:e},n);if(u){var a=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(xo.DEFAULT),i.id===c)return;this.preTargetNode=a;var l="".concat(o.id,"_").concat(a.id,"_").concat(c,"_").concat(i.id);if(!this.targetRuleResults.has(l)){var s=u.anchor,f=o.isAllowConnectedAsSource(a,i,s),p=a.isAllowConnectedAsTarget(o,i,s);this.sourceRuleResults.set(l,qu(f)),this.targetRuleResults.set(l,qu(p))}var y=this.sourceRuleResults.get(l).isAllPass,d=this.targetRuleResults.get(l).isAllPass;y&&d?a.setElementState(xo.ALLOW_CONNECT):a.setElementState(xo.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==xo.DEFAULT&&this.preTargetNode.setElementState(xo.DEFAULT)}},{key:"isShowLine",value:function(){var t=this.state,e=t.startX,r=t.startY,n=t.endX,o=t.endY;return zu(e,r,n,o)>10}},{key:"render",value:function(){var t=this,e=this.state,r=e.startX,n=e.startY,o=e.endX,i=e.endY,u=this.props,a=u.anchorData.edgeAddable,c=u.edgeStyle;return Object(et.g)("g",{className:"lf-anchor"},Object(et.g)("g",{onMouseDown:function(e){!1!==a&&t.dragHandler.handleMouseDown(e)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(yv({sourcePoint:{x:r,y:n},targetPoint:{x:o,y:i}},c)):Object(et.g)(Qs,fv({x1:r,y1:n,x2:o,y2:i},c,{"pointer-events":"none"}))))}}])&&vv(e.prototype,r),n&&vv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(et.a);function Sv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xv(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rb?n.height:b;y&&(g=y);var m="ellipsis"===l;m&&(g=r+2);return Object(et.g)("g",null,Object(et.g)("foreignObject",{width:d,height:g,x:s-d/2,y:f-g/2},Object(et.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:g,width:d,padding:c}},Object(et.g)("div",{className:m?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:m?h.join(""):"",style:xv({},t)},h.map((function(t){return Object(et.g)("div",{className:"lf-node-text--auto-wrap-inner"},t)}))))))}(t)}if(v>1){var m=h.map((function(t,e){var n=(e-(v-1)/2)*(u+2);return Object(et.g)("tspan",{className:"lf-text-tspan",x:r,y:o+n},t)}));return Object(et.g)("text",d,m)}}var O=y.properties,w=O.showDefaultValue,_=O.showUnit,j=O.dynamic,S=O.valueColor,x=O.contentColor,E=O.fontColor,P=O.valueDecimal,k=O.valueFormatWan,A=(j||{}).normalData,D="",T="";if(A){var N=A||{},M=N.defaultValue,C=N.unit;if(w&&M){var R=[{val:""}];try{D=(R=JSON.parse(M)||[{val:""}])[0]?R[0].val||"0":void 0===R[0]?"0":R[0]}catch(t){}}_&&C&&(T=" "+C)}if(d.transform="translate(-".concat(y.width/2||0,", 0)"),D){if("number"==typeof P){var I=+D;Number.isNaN(I)||(D=I.toFixed(P))}k&&(D=+D/1e4+"万")}return Object(et.g)("text",d,Object(et.g)("tspan",{style:{color:x||E}},i),Object(et.g)("tspan",{style:{color:S}}," "+D),Object(et.g)("tspan",null," "+T))}function Tv(t){return Tv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tv(t)}function Nv(){return Nv=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function ib(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return ub(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ub(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ub(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rf||w>p)){var _=ib(l.CanvasPointToHtmlPoint([b-o.width/2,g-o.height/2]),2),j=_[0],S=_[1],x=ib(l.CanvasPointToHtmlPoint([b+o.width/2,g+o.height/2]),2),E=x[0],P=x[1],k=Math.max(y,20),A=[];j<0?A=[k,0]:E>i.width?A=[-k,0]:S<0?A=[0,k]:P>i.height&&(A=[0,-k]),e.t&&lv(e.t);var D=new Jl(-b,-g).rotate(o.rotate).translate(b,g).toString();o.transform=D;var T=s.map((function(t){return t.id}));-1===T.indexOf(o.id)&&(T=[o.id]),A.length>0&&!a&&c?e.t=cv((function(){var t=ib(A,2),e=t[0],r=t[1];l.translate(e,r);var n=-e/l.SCALE_X,o=-r/l.SCALE_X;i.moveNodes(T,n,o)})):i.moveNodes(T,b-o.x,g-o.y)}}else i.moveNode2Coordinate(o.id,b,g)})),pb(sb(e),"onDragEnd",(function(){e.t&&lv(e.t),e.props.model.isDragging=!1})),pb(sb(e),"handleClick",(function(t){if(e.startTime&&!((new Date).getTime()-e.startTime>200)){var r=e.props,n=r.model,o=r.graphModel,i={data:n.getData(),e:t,position:o.getPointByClient({x:t.clientX,y:t.clientY}),isSelected:!1,isMultiple:!1},u=2===t.button,a=2===t.detail;if(!u){var c=o.editConfigModel,l=Ji(t,c);i.isMultiple=l,n.isSelected&&!a&&l?(i.isSelected=!1,n.setSelected(!1)):(o.selectNodeById(n.id,l),i.isSelected=!0,e.toFront()),a?(c.nodeTextEdit&&n.text.editable&&(n.setSelected(!1),o.setElementStateById(n.id,xo.TEXT_EDIT)),o.eventCenter.emit(ko.NODE_DBCLICK,i)):(o.eventCenter.emit(ko.ELEMENT_CLICK,i),o.eventCenter.emit(ko.NODE_CLICK,i))}}})),pb(sb(e),"handleContextMenu",(function(t){t.preventDefault();var r=e.props,n=r.model,o=r.graphModel,i=n.getData(),u=o.getPointByClient({x:t.clientX,y:t.clientY});o.setElementStateById(n.id,xo.SHOW_MENU,u.domOverlayPosition),n.isSelected||o.selectNodeById(n.id),o.eventCenter.emit(ko.NODE_CONTEXTMENU,{data:i,e:t,position:u}),e.toFront()})),pb(sb(e),"handleMouseDown",(function(t){var r=e.props,n=r.model,o=r.graphModel;e.startTime=(new Date).getTime(),o.editConfigModel.adjustNodePosition&&n.draggable&&e.stepDrag&&e.stepDrag.handleMouseDown(t)})),pb(sb(e),"setHoverON",(function(t){var r=e.props,n=r.model,o=r.graphModel;if(!n.isHovered){var i=n.getData();n.setHovered(!0),o.eventCenter.emit(ko.NODE_MOUSEENTER,{data:i,e:t})}})),pb(sb(e),"setHoverOFF",(function(t){var r=e.props,n=r.model,o=r.graphModel,i=n.getData();n.isHovered&&(n.setHovered(!1),o.eventCenter.emit(ko.NODE_MOUSELEAVE,{data:i,e:t}))})),pb(sb(e),"onMouseOut",(function(t){Xv&&e.setHoverOFF(t)}));var r=t.graphModel,n=r.gridSize,a=r.eventCenter,c=t.model;return e.stepDrag=new Qc({onDragStart:e.onDragStart,onDragging:e.onDragging,onDragEnd:e.onDragEnd,step:n,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:c}),e.modelDisposer=Object(o.F)((function(){return e.props}),(function(t){t&&t.model&&e.stepDrag.setModel(t.model)})),e}return e=u,n=[{key:"getModel",value:function(t){return t}}],(r=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(t){return null}},{key:"getAnchors",value:function(){var t=this,e=this.props,r=e.model,n=e.graphModel,o=r.isSelected,i=r.isHitable,u=r.isDragging,a=r.isShowAnchor;return r.alwaysShowAnchor||i&&(o||a)&&!u?hn(r.anchors,(function(e,o){var i=r.getAnchorLineStyle(e),u=r.getAnchorStyle(e);return Object(et.g)(jv,{anchorData:e,node:t,style:u,edgeStyle:i,anchorIndex:o,nodeModel:r,graphModel:n,setHoverOFF:t.setHoverOFF})})):[]}},{key:"getRotateControl",value:function(){var t=this.props,e=t.model,r=t.graphModel,n=e.isSelected,o=e.isHitable,i=e.enableRotate,u=e.isHovered,a=e.getRotateControlStyle().style;if(o&&(n||u)&&i)return Object(et.g)(tb,{graphModel:r,nodeModel:e,eventCenter:r.eventCenter,style:a})}},{key:"getText",value:function(){var t=this.props,e=t.model,r=t.graphModel;if(e.state===xo.TEXT_EDIT)return"";if(e.text){var n=r.editConfigModel,o=!1;return(e.text.draggable||n.nodeTextDraggable)&&(o=!0),Object(et.g)(Hv,{editable:(n.nodeTextEdit||"custom-input-node"===e.type)&&e.text.editable,model:e,graphModel:r,draggable:o})}}},{key:"getStateClassName",value:function(){var t=this.props.model,e=t.state,r=t.isDragging,n=t.isSelected,o=t.type,i="lf-node";switch(e){case xo.ALLOW_CONNECT:i+=" lf-node-allow";break;case xo.NOT_ALLOW_CONNECT:i+=" lf-node-not-allow";break;default:i+=" lf-node-default"}return"helper-circle-point"===o&&(i+=" helper-circle-point"),r&&(i+=" lf-isDragging"),n&&(i+=" lf-node-selected"),i}},{key:"toFront",value:function(){var t=this.props,e=t.model,r=t.graphModel;e.autoToFront&&r.toFront(e.id)}},{key:"render",value:function(){var t=this.props,e=t.model,r=t.graphModel,n=e.properties,o=n.rotation,i=n.flipX,u=n.flipY,a=(n.rotateAnimation,n.animationTime,r.editConfigModel),c=a.hideAnchors,l=a.adjustNodePosition,s=a.allowRotation,f=r.gridSize,p=r.transformModel.SCALE_X,y=e.isHitable,d=e.draggable,h=e.transform,v=e.id,b=e.getOuterGAttributes(),g=b.className,m=void 0===g?"":g,O=ob(b,eb),w="rotate(".concat(o||0,", ").concat(e.x,", ").concat(e.y,") ");i?w+="translate(".concat(e.x,", ").concat(e.y,") matrix(-1, 0, 0, 1, 0, 0) translate(-").concat(e.x,", -").concat(e.y,")"):u&&(w+="translate(".concat(e.x,", ").concat(e.y,") matrix(1, 0, 0, -1, 0, 0) translate(-").concat(e.x,", -").concat(e.y,")"));var _,j=Object(et.g)("g",{className:"lf-node-content",id:v,transform:w},Object(et.g)("g",{transform:h},this.getShape(),this.getText(),s&&this.getRotateControl()),!c&&this.getAnchors());return y?(l&&d&&this.stepDrag.setStep(f*p),_=Object(et.g)("g",nb({className:"".concat(this.getStateClassName()," ").concat(m),onMouseDown:this.handleMouseDown,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},O),j)):_=Object(et.g)("g",nb({className:"".concat(this.getStateClassName()," ").concat(m)},O),j),_}}])&&ab(e.prototype,r),n&&ab(e,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(et.a);function hb(t){return hb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hb(t)}function vb(){return vb=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rb?e:b}));var g=$u({rows:d,fontSize:u,rowsLength:h}),m=g.width,O=g.height;if("ellipsis"===a&&(m=s||n,O=u+2),"string"==typeof o.wrapPadding){var w=o.wrapPadding.split(",").filter((function(t){return t.trim()})).map((function(t){return parseFloat(t.trim())}));w.length>0&&w.length<=4&&(1===w.length?w=[w[0],w[0],w[0],w[0]]:2===w.length?w=[w[0],w[1],w[0],w[1]]:3===w.length&&(w=[w[0],w[1],w[2],w[1]]),m+=w[1]+w[3],O+=w[0]+w[2],p+=(w[1]-w[3])/2,y+=(w[2]-w[0])/2)}i=Pg(Pg({},o),{},{x:p-1,y:y-1,width:m,height:O})}return Object(et.g)(hf,i)}}},{key:"getShape",value:function(){var t=this.props.model,e=t.text,r=e.value,n=e.x,o=e.y;if(r){var i=Pg({x:n,y:o,className:"lf-element-text",value:r},t.getTextStyle());return Object(et.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(et.g)(Dv,xg({},i,{model:t})))}}}])&&kg(e.prototype,r),n&&kg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Hv),Ig=["text","sourceAnchorId","targetAnchorId"];function Lg(t){return Lg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lg(t)}function zg(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bg(t){for(var e=1;e=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Fg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Hg(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hg(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r200||2===e.button)){var r=2===e.detail,n=t.props,o=n.model,i=n.graphModel,u=null==o?void 0:o.getData(),a=i.getPointByClient({x:e.clientX,y:e.clientY});if(r){var c=i.editConfigModel,l=i.textEditElement;if(l&&l.id===o.id&&i.setElementStateById(o.id,xo.DEFAULT),c.edgeTextEdit&&o.text.editable&&i.setElementStateById(o.id,xo.TEXT_EDIT),o.modelType===Eo.POLYLINE_EDGE){var s=o,f=i.getPointByClient({x:e.x,y:e.y}).canvasOverlayPosition,p=f.x,y=f.y,d=Fc({x:p,y:y},s.points);s.dbClickPosition=d}i.eventCenter.emit(ko.EDGE_DBCLICK,{data:u,e:e,position:a})}else i.eventCenter.emit(ko.ELEMENT_CLICK,{data:u,e:e,position:a}),i.eventCenter.emit(ko.EDGE_CLICK,{data:u,e:e,position:a});var h=i.editConfigModel;i.selectEdgeById(o.id,Ji(e,h)),t.toFront()}})),t}return e=i,(r=[{key:"getShape",value:function(){return Object(et.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var t=this.props,e=t.model,r=t.graphModel;if(e.state===xo.TEXT_EDIT)return null;var n=!1,o=r.editConfigModel;return(e.text.draggable||o.edgeTextDraggable)&&(n=!0),Object(et.g)(Rg,{ref:this.textRef,editable:o.edgeTextEdit&&e.text.editable,model:e,graphModel:r,draggable:n})}},{key:"getArrowInfo",value:function(){var t=this.props.model,e=t.startPoint,r=t.endPoint,n=t.isSelected;return{start:e,end:r,hover:this.state.hover,isSelected:n}}},{key:"getLastTwoPoints",value:function(){var t=this.props.model;return[t.startPoint,t.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var t=this.props.model,e=t.id,r=t.getArrowStyle(),n=r.refY,o=void 0===n?0:n,i=r.refX,u=void 0===i?2:i,a=tm(this.getLastTwoPoints(),2),c=a[0],l=a[1],s="auto";return null!==c&&null!==l&&(s=Va(Ya({x:l.x-c.x,y:l.y-c.y,z:0}))),Object(et.g)("g",null,Object(et.g)("defs",null,Object(et.g)("marker",{id:"marker-start-".concat(e),refX:-u,refY:o,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(et.g)("marker",{id:"marker-end-".concat(e),refX:u,refY:o,overflow:"visible",orient:s,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var t=this.props.model.getArrowStyle();return t.stroke,t.strokeWidth,t.offset,t.verticalLength,Object(et.g)("path",null)}},{key:"getEndArrow",value:function(){var t=this.props.model.getArrowStyle(),e=t.stroke,r=t.strokeWidth,n=t.offset,o=t.verticalLength;return Object(et.g)("path",{stroke:e,fill:e,strokeWidth:r,transform:"rotate(180)",d:"M 0 0 L ".concat(n," -").concat(o," L ").concat(n," ").concat(o," Z")})}},{key:"getAdjustPointShape",value:function(t,e,r){var n=r.getAdjustPointStyle();return Object(et.g)(Tf,Qg({className:"lf-edge-adjust-point"},n,{x:t,y:e}))}},{key:"getAdjustPoints",value:function(){var t=this.props,e=t.model,r=t.graphModel,n=e.getAdjustStart(),o=e.getAdjustEnd();return Object(et.g)("g",null,Object(et.g)(Zg,Qg({type:"SOURCE"},n,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:e,graphModel:r})),Object(et.g)(Zg,Qg({type:"TARGET"},o,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:e,graphModel:r})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(et.g)("g",null)}},{key:"getAppend",value:function(){return Object(et.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var t=this.props,e=t.graphModel,r=t.model;e.toFront(r.id)}},{key:"render",value:function(){var t=this.props,e=t.model,r=e.isSelected,n=e.isHitable,o=e.isShowAdjustPoint;return t.graphModel.animation,Object(et.g)("g",null,Object(et.g)("g",{className:["lf-edge",!n&&"pointer-none",r&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverON,onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getShape(),this.getAppend(),this.getText(),this.getArrow()),o&&r?this.getAdjustPoints():"")}}])&&rm(e.prototype,r),n&&rm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(et.a);function sm(t){return sm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sm(t)}function fm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pm(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pm(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pm(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=2&&(n.start=o[o.length-2],n.end=o[o.length-1]),n}},{key:"getLastTwoPoints",value:function(){var t=this.props.model.points,e=Dc(t);return e.length>=2?[e[e.length-2],e[e.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(t){var e,r=t.start,n=t.end;if(r.x===n.x&&r.y===n.y)e="";else{var o={start:r,end:n,offset:10,verticalLength:5},i=Ua(Tm(Tm({},o),{},{type:"start"})),u=Ua(Tm(Tm({},o),{},{type:"end"})),a=i.leftX,c=i.leftY,l=u.rightX,s=u.rightY;e=a&&c&&l&&s?"M".concat(i.leftX," ").concat(i.leftY," \n L").concat(i.rightX," ").concat(i.rightY," \n L").concat(u.rightX," ").concat(u.rightY,"\n L").concat(u.leftX," ").concat(u.leftY," z"):""}return{d:e,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(t){var e=this.getAppendAttributes(t),r=e.d,n=e.strokeWidth,o=e.fill,i=e.strokeDasharray,u=e.stroke;return Object(et.g)(ym,{d:r,fill:o,strokeWidth:n,stroke:u,strokeDasharray:i})}},{key:"getAppendWidth",value:function(){for(var t=this,e=this.props,r=e.model,n=e.graphModel,o=r.pointsList,i=r.draggable,u=[],a=o.length,c=function(){var e="lf-polyline-append",r={start:{x:o[l].x,y:o[l].y},end:{x:o[l+1].x,y:o[l+1].y},startIndex:l,endIndex:l+1,direction:"",dragAble:!0},c=Object(et.g)("g",{className:e},t.getAppendShape(r)),s=n.editConfigModel,f=s.adjustEdge,p=s.adjustEdgeMiddle;if(f&&i){var y=r.startIndex,d=r.endIndex,h=p&&(0===y||d===a-1);r.dragAble=!h,r.start.x===r.end.x?(r.dragAble&&(e+="-ew-resize"),r.direction=Ao.VERTICAL):r.start.y===r.end.y&&(r.dragAble&&(e+="-ns-resize"),r.direction=Ao.HORIZONTAL),c=Object(et.g)("g",{className:t.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(e){return t.beforeDragStart(e,r)}},Object(et.g)("g",{className:e},t.getAppendShape(r)))}u.push(c)},l=0;lt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=e||r<0||f&&t-l>=i}function h(){var t=IO();if(d(t))return v(t);a=setTimeout(h,function(t){var r=e-(t-c);return f?WO(r,i-(t-l)):r}(t))}function v(t){return a=void 0,p&&n?y(t):(n=o=void 0,u)}function b(){var t=IO(),r=d(t);if(n=arguments,o=this,c=t,r){if(void 0===a)return function(t){return l=t,a=setTimeout(h,e),s?y(t):u}(c);if(f)return clearTimeout(a),a=setTimeout(h,e),y(c)}return void 0===a&&(a=setTimeout(h,e)),u}return e=YO(e)||0,kt(r)&&(s=!!r.leading,i=(f="maxWait"in r)?VO(YO(r.maxWait)||0,e):i,p="trailing"in r?!!r.trailing:p),b.cancel=function(){void 0!==a&&clearTimeout(a),l=0,n=c=o=a=void 0},b.flush=function(){return void 0===a?u:v(IO())},b},$O=r(198);function qO(t){return qO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qO(t)}function ZO(t,e){for(var r=0;r1,redoAble:this.redos.length>0}}),this.undos.length>this.maxSize&&this.undos.shift())}},{key:"undoAble",value:function(){return this.undos.length>1}},{key:"undo",value:function(){if(this.undoAble()){var t=this.undos.pop();this.redos.push(t);var e=this.undos.pop();return this.curData=Ei(e),e}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var t=this.redos.pop();return this.curData=Ei(t),t}}},{key:"watch",value:function(t){var e=this;this.stopWatch&&this.stopWatch(),this.undos.push(t.modelToGraphData()),this.stopWatch=Object($O.a)(t,KO((function(){var r=t.modelToHistoryData();r&&e.add(r)}),this.waitTime))}}])&&ZO(e.prototype,r),n&&ZO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function nw(t){return nw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nw(t)}function ow(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,u,a=[],c=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==e);c=!0);}catch(t){l=!0,o=t}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw o}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return iw(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iw(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&t.pointsList.forEach((function(t){t.x+=e,t.y+=e})),t.text&&(t.text.x+=e,t.text.y+=e),t}var $w=40,qw=40;function Zw(t){return Zw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zw(t)}function Jw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qw(t){for(var e=1;e2&&void 0!==arguments[2])||arguments[2];if("string"==typeof t){var n={BaseEdge:lm,BaseEdgeModel:la,BaseNode:db,BaseNodeModel:td,RectNode:wb,RectNodeModel:Ph,CircleNode:kb,CircleNodeModel:vd,PolygonNode:Bb,PolygonNodeModel:dh,TextNode:yg,TextNodeModel:Uh,LineEdge:Sm,LineEdgeModel:Sa,DiamondNode:Vb,DiamondNodeModel:Rd,PolylineEdge:Gm,PolylineEdgeModel:Ba,BezierEdge:eO,BezierEdgeModel:Lp,EllipseNode:ng,EllipseNodeModel:Zd,HtmlNode:jg,HtmlNodeModel:Jh,h:et.g,type:t};this.viewMap.forEach((function(t){var e=t.extendKey;e&&(n[e]=t)})),this.graphModel.modelMap.forEach((function(t){var e=t.extendKey;e&&(n[e]=t)}));var o=e(n),i=o.view,u=o.model,a=i;r&&!a.isObervered&&(a.isObervered=!0,a=tt(a)),this.setView(t,a),this.graphModel.setModel(t,u)}else this.registerElement(t)}},{key:"registerElement",value:function(t){var e=t.view;!1===t.isObserverView||e.isObervered||(e.isObervered=!0,e=tt(e)),this.setView(t.type,e),this.graphModel.setModel(t.type,t.model)}},{key:"batchRegister",value:function(){var t=this;(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){t.registerElement(e)}))}},{key:"defaultRegister",value:function(){this.registerElement({view:wb,model:Ph,type:"rect"}),this.registerElement({type:"circle",view:kb,model:vd}),this.registerElement({type:"polygon",view:Bb,model:dh}),this.registerElement({type:"line",view:Sm,model:Sa}),this.registerElement({type:"polyline",view:Gm,model:Ba}),this.registerElement({type:"bezier",view:eO,model:Lp}),this.registerElement({type:"text",view:yg,model:Uh}),this.registerElement({type:"ellipse",view:ng,model:Zd}),this.registerElement({type:"diamond",view:Vb,model:Rd}),this.registerElement({type:"html",view:jg,model:Jh})}},{key:"selectElementById",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.graphModel.selectElementById(t,e),!e&&r&&this.graphModel.toFront(t)}},{key:"focusOn",value:function(t){var e=this.graphModel.transformModel,r=t.coordinate,n=t.id;if(!r){var o=this.getNodeModelById(n);o&&(r=o.getData());var i=this.getEdgeModelById(n);i&&(r=i.textPosition)}var u=r,a=u.x,c=u.y;e.focusOn(a,c,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(t){this.graphModel.setTheme(t)}},{key:"resize",value:function(t,e){this.graphModel.resize(t,e),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(t){this.graphModel.setDefaultEdgeType(t)}},{key:"updateText",value:function(t,e){this.graphModel.updateText(t,e)}},{key:"deleteElement",value:function(t){var e,r,n,o=this.getModelById(t);return!!o&&null!==(r=null===(n=(e_(e={},Po.NODE,this.deleteNode),e_(e,Po.EDGE,this.deleteEdge),e)[o.BaseType])||void 0===n?void 0:n.call(this,t))&&void 0!==r&&r}},{key:"getModelById",value:function(t){return this.graphModel.getElement(t)}},{key:"getDataById",value:function(t){var e;return null===(e=this.graphModel.getElement(t))||void 0===e?void 0:e.getData()}},{key:"changeNodeType",value:function(t,e){this.graphModel.changeNodeType(t,e)}},{key:"changeEdgeType",value:function(t,e){this.graphModel.changeEdgeType(t,e)}},{key:"getNodeEdges",value:function(t){return this.graphModel.getNodeEdges(t)}},{key:"addNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ko.NODE_ADD,r=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(t,e,r)}},{key:"deleteNode",value:function(t){var e=this.graphModel.getNodeModelById(t);if(!e)return!1;var r=e.getData(),n=this.options.guards,o=!n||!n.beforeDelete||n.beforeDelete(r);return o&&this.graphModel.deleteNode(t),o}},{key:"cloneNode",value:function(t){var e=this.graphModel.getNodeModelById(t).getData(),r=this.options.guards;if(!r||!r.beforeClone||r.beforeClone(e))return this.graphModel.cloneNode(t)}},{key:"changeNodeId",value:function(t,e){return this.graphModel.changeNodeId(t,e)}},{key:"getNodeModelById",value:function(t){return this.graphModel.getNodeModelById(t)}},{key:"getNodeDataById",value:function(t){var e;return null===(e=this.graphModel.getNodeModelById(t))||void 0===e?void 0:e.getData()}},{key:"addEdge",value:function(t){return this.graphModel.addEdge(t)}},{key:"deleteEdge",value:function(t){var e=this.options.guards,r=this.graphModel.edgesMap[t];if(!r)return!1;var n=r.model.getData(),o=!e||!e.beforeDelete||e.beforeDelete(n);return o&&this.graphModel.deleteEdgeById(t),o}},{key:"deleteEdgeByNodeId",value:function(t){var e=t.sourceNodeId,r=t.targetNodeId;e&&r?this.graphModel.deleteEdgeBySourceAndTarget(e,r):e?this.graphModel.deleteEdgeBySource(e):r&&this.graphModel.deleteEdgeByTarget(r)}},{key:"changeEdgeId",value:function(t,e){return this.graphModel.changeEdgeId(t,e)}},{key:"getEdgeModelById",value:function(t){var e;return null===(e=this.graphModel.edgesMap[t])||void 0===e?void 0:e.model}},{key:"getEdgeModels",value:function(t){var e=this.graphModel.edges,r=t.sourceNodeId,n=t.targetNodeId;if(r&&n){var o=[];return e.forEach((function(t){t.sourceNodeId===r&&t.targetNodeId===n&&o.push(t)})),o}if(r){var i=[];return e.forEach((function(t){t.sourceNodeId===r&&i.push(t)})),i}if(n){var u=[];return e.forEach((function(t){t.targetNodeId===n&&u.push(t)})),u}return[]}},{key:"getEdgeDataById",value:function(t){var e;return null===(e=this.getEdgeModelById(t))||void 0===e?void 0:e.getData()}},{key:"getNodeIncomingEdge",value:function(t){return this.graphModel.getNodeIncomingEdge(t)}},{key:"getNodeOutgoingEdge",value:function(t){return this.graphModel.getNodeOutgoingEdge(t)}},{key:"getNodeIncomingNode",value:function(t){return this.graphModel.getNodeIncomingNode(t)}},{key:"getNodeOutgoingNode",value:function(t){return this.graphModel.getNodeOutgoingNode(t)}},{key:"editText",value:function(t){this.graphModel.editText(t)}},{key:"setProperties",value:function(t,e){var r;null===(r=this.graphModel.getElement(t))||void 0===r||r.setProperties(Zu(e))}},{key:"deleteProperty",value:function(t,e){var r;null===(r=this.graphModel.getElement(t))||void 0===r||r.deleteProperty(e)}},{key:"getProperties",value:function(t){var e;return null===(e=this.graphModel.getElement(t))||void 0===e?void 0:e.getProperties()}},{key:"toFront",value:function(t){this.graphModel.toFront(t)}},{key:"setElementZIndex",value:function(t,e){return this.graphModel.setElementZIndex(t,e)}},{key:"addElements",value:function(t){for(var e=this,r=t.nodes,n=t.edges,o={},i={nodes:[],edges:[]},u=0;u2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return this.graphModel.getAreaElement(t,e,r,n,o).map((function(t){return t.getData()}))}},{key:"getSelectElements",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.graphModel.getSelectElements(t)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var t=this.graphModel.modelToGraphData();if(this.adapterOut){for(var e=arguments.length,r=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];(null!==(e=this.plugins)&&void 0!==e?e:t.extensions).forEach((function(t){var e=null,o=null;t[n_]?(e=t.extension,o=t.props):e=t;var i=e.pluginName||e.name;-1===n.indexOf(i)&&r.installPlugin(e,o)}))}},{key:"installPlugin",value:function(e,r){if("object"===Zw(e)){var n=e.install,o=e.render;return n&&n.call(e,this,t),o&&this.components.push(o.bind(e)),void(this.extension[e.pluginName]=e)}var i=e,u=new i({lf:this,LogicFlow:t,options:this.options.pluginsOptions,props:r});u.render&&this.components.push(u.render.bind(u)),this.extension[i.pluginName]=u}},{key:"updateAttributes",value:function(t,e){this.graphModel.updateAttributes(t,e)}},{key:"createFakerNode",value:function(t){var e=this.graphModel.modelMap.get(t.type);if(e){var r=new e(Qw(Qw({},t),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(r),r}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(t){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(t)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setGridVisible",value:function(t){if("[object Object]"===this.options.grid.toString()){var e=Qw(Qw({},this.options),{},{grid:Qw(Qw({},this.options.grid),{},{visible:t})});this.options=e}}},{key:"setView",value:function(t,e){this.viewMap.set(t,e)}},{key:"renderRawData",value:function(t){this.graphModel.graphDataToModel(Zu(t)),!1!==this.options.history&&this.history.watch(this.graphModel),Object(et.j)(Object(et.g)(lp,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(ko.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.adapterIn&&(t=this.adapterIn(t)),this.renderRawData(t)}}],n=[{key:"use",value:function(t,e){var r,n,o=t.pluginName;o||(o=t.name);var i=null===(r=this.extensions.get(o))||void 0===r?void 0:r.extension;i&&i.destroy&&i.destroy(),this.extensions.set(o,(e_(n={},n_,n_),e_(n,"extension",t),e_(n,"props",e),n))}}],r&&t_(e.prototype,r),n&&t_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function i_(t){return tt(t)}e_(o_,"extensions",new Map);e.default=o_}])}));