123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145 |
- import{aP as Ka,aQ as Ri,aR as J1,aJ as fi,aS as Np,aC as ui,aT as qc,aU as Tw,aV as Bo,aW as Fo,aK as Sn,aX as h2,aY as Li,aZ as Mm,a_ as y2,a$ as kl,b0 as ci,aL as ba,b1 as Lu,b2 as sn,b3 as Mw,b4 as Dl,aD as Oo,b5 as kw,b6 as Bi,aG as Dw,b7 as Bu,b8 as qa,b9 as Nw,aF as Cp,ba as Zc,bb as Dn,az as Va,bc as Jc,bd as Rp,be as $o,bf as or,bg as v2,bh as Ty,bi as My,bj as br,bk as g2,bl as b2,bm as ly,bn as Qc,bo as m2,aA as _2,bp as va,bq as Cw,br as Rw,bs as im,bt as Ip,bu as Iw,bv as es,aM as Lw,bw as O2,bx as Lp,by as Bw,aI as ky,bz as Dy,bA as Tl,bB as zw,aB as w2,bC as x2,bD as Fw,bE as E2,bF as S2,bG as fy,bH as j2,bI as $w,bJ as P2,bK as Ww,bL as km,bM as Gw,bN as A2,bO as T2,bP as M2,bQ as Kc,bR as k2,bS as D2,bT as N2,bU as C2,bV as R2,bW as I2,bX as L2,bY as B2,bZ as z2,b_ as F2,b$ as $2,N as W2,c0 as G2,c1 as U2,c2 as H2,c3 as X2,aH as Y2,c4 as V2,c5 as K2,c6 as q2,c7 as Z2,d as Bp,t as Q1,n as Cu,p as Uw,i as hr,r as jp,o as ha,c as Vc,a as Nu,e as ya,F as am,z as Hw,M as eO,ak as Xw,h as Hc,y as wl,I as tO,x as Yw,_ as Ny,G as J2,aa as Q2,H as um,Q as eT,w as tT,S as nT,A as cm,c8 as Dm,D as rT}from"./index.js";import{t as nn,b as Jt,c as oT,a as Ru,d as Vw,g as Kw,e as iT,h as aT,i as qw,j as uT,f as cT,p as sT}from"./find.d1dcbf1f.js";var lT=0/0;function nO(n){return typeof n=="number"?n:Ka(n)?lT:+n}function Cy(n,a){return function(u,l){var o;if(u===void 0&&l===void 0)return a;if(u!==void 0&&(o=u),l!==void 0){if(o===void 0)return l;typeof u=="string"||typeof l=="string"?(u=Ri(u),l=Ri(l)):(u=nO(u),l=nO(l)),o=n(u,l)}return o}}var fT=Cy(function(n,a){return n+a},0),pT=fT,dT="Expected a function";function hT(n,a){if(typeof a!="function")throw new TypeError(dT);return n=nn(n),function(){if(--n<1)return a.apply(this,arguments)}}var yT=J1&&new J1,py=yT,vT=py?function(n,a){return py.set(n,a),n}:fi,Zw=vT;function Dp(n){return function(){var a=arguments;switch(a.length){case 0:return new n;case 1:return new n(a[0]);case 2:return new n(a[0],a[1]);case 3:return new n(a[0],a[1],a[2]);case 4:return new n(a[0],a[1],a[2],a[3]);case 5:return new n(a[0],a[1],a[2],a[3],a[4]);case 6:return new n(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new n(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=Np(n.prototype),l=n.apply(u,a);return ui(l)?l:u}}var gT=1;function bT(n,a,u){var l=a&gT,o=Dp(n);function d(){var h=this&&this!==qc&&this instanceof d?o:n;return h.apply(l?u:this,arguments)}return d}var mT=Math.max;function Jw(n,a,u,l){for(var o=-1,d=n.length,h=u.length,b=-1,g=a.length,E=mT(d-h,0),S=Array(g+E),P=!l;++b<g;)S[b]=a[b];for(;++o<h;)(P||o<d)&&(S[u[o]]=n[o]);for(;E--;)S[b++]=n[o++];return S}var _T=Math.max;function Qw(n,a,u,l){for(var o=-1,d=n.length,h=-1,b=u.length,g=-1,E=a.length,S=_T(d-b,0),P=Array(S+E),k=!l;++o<S;)P[o]=n[o];for(var M=o;++g<E;)P[M+g]=a[g];for(;++h<b;)(k||o<d)&&(P[M+u[h]]=n[o++]);return P}function OT(n,a){for(var u=n.length,l=0;u--;)n[u]===a&&++l;return l}function Ry(){}var wT=4294967295;function dn(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=wT,this.__views__=[]}dn.prototype=Np(Ry.prototype);dn.prototype.constructor=dn;var xT=py?function(n){return py.get(n)}:Tw,Nm=xT,ET={},jl=ET,ST=Object.prototype,jT=ST.hasOwnProperty;function ay(n){for(var a=n.name+"",u=jl[a],l=jT.call(jl,a)?u.length:0;l--;){var o=u[l],d=o.func;if(d==null||d==n)return o.name}return a}function si(n,a){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=void 0}si.prototype=Np(Ry.prototype);si.prototype.constructor=si;function ex(n){if(n instanceof dn)return n.clone();var a=new si(n.__wrapped__,n.__chain__);return a.__actions__=Bo(n.__actions__),a.__index__=n.__index__,a.__values__=n.__values__,a}var PT=Object.prototype,AT=PT.hasOwnProperty;function $(n){if(Fo(n)&&!Sn(n)&&!(n instanceof dn)){if(n instanceof si)return n;if(AT.call(n,"__wrapped__"))return ex(n)}return new si(n)}$.prototype=Ry.prototype;$.prototype.constructor=$;function sm(n){var a=ay(n),u=$[a];if(typeof u!="function"||!(a in dn.prototype))return!1;if(n===u)return!0;var l=Nm(u);return!!l&&n===l[0]}var TT=h2(Zw),tx=TT,MT=/\{\n\/\* \[wrapped with (.+)\] \*/,kT=/,? & /;function DT(n){var a=n.match(MT);return a?a[1].split(kT):[]}var NT=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function CT(n,a){var u=a.length;if(!u)return n;var l=u-1;return a[l]=(u>1?"& ":"")+a[l],a=a.join(u>2?", ":" "),n.replace(NT,`{
- /* [wrapped with `+a+`] */
- `)}var RT=1,IT=2,LT=8,BT=16,zT=32,FT=64,$T=128,WT=256,GT=512,UT=[["ary",$T],["bind",RT],["bindKey",IT],["curry",LT],["curryRight",BT],["flip",GT],["partial",zT],["partialRight",FT],["rearg",WT]];function HT(n,a){return Li(UT,function(u){var l="_."+u[0];a&u[1]&&!Mm(n,l)&&n.push(l)}),n.sort()}function nx(n,a,u){var l=a+"";return y2(n,CT(l,HT(DT(l),u)))}var XT=1,YT=2,VT=4,KT=8,rO=32,oO=64;function rx(n,a,u,l,o,d,h,b,g,E){var S=a&KT,P=S?h:void 0,k=S?void 0:h,M=S?d:void 0,C=S?void 0:d;a|=S?rO:oO,a&=~(S?oO:rO),a&VT||(a&=~(XT|YT));var N=[n,a,o,M,P,C,k,b,g,E],L=u.apply(void 0,N);return sm(n)&&tx(L,N),L.placeholder=l,nx(L,n,a)}function Nl(n){var a=n;return a.placeholder}var qT=Math.min;function ZT(n,a){for(var u=n.length,l=qT(a.length,u),o=Bo(n);l--;){var d=a[l];n[l]=kl(d,u)?o[d]:void 0}return n}var iO="__lodash_placeholder__";function Iu(n,a){for(var u=-1,l=n.length,o=0,d=[];++u<l;){var h=n[u];(h===a||h===iO)&&(n[u]=iO,d[o++]=u)}return d}var JT=1,QT=2,eM=8,tM=16,nM=128,rM=512;function Iy(n,a,u,l,o,d,h,b,g,E){var S=a&nM,P=a&JT,k=a&QT,M=a&(eM|tM),C=a&rM,N=k?void 0:Dp(n);function L(){for(var U=arguments.length,W=Array(U),X=U;X--;)W[X]=arguments[X];if(M)var Q=Nl(L),te=OT(W,Q);if(l&&(W=Jw(W,l,o,M)),d&&(W=Qw(W,d,h,M)),U-=te,M&&U<E){var Z=Iu(W,Q);return rx(n,a,Iy,L.placeholder,u,W,Z,b,g,E-U)}var J=P?u:this,H=k?J[n]:n;return U=W.length,b?W=ZT(W,b):C&&U>1&&W.reverse(),S&&g<U&&(W.length=g),this&&this!==qc&&this instanceof L&&(H=N||Dp(H)),H.apply(J,W)}return L}function oM(n,a,u){var l=Dp(n);function o(){for(var d=arguments.length,h=Array(d),b=d,g=Nl(o);b--;)h[b]=arguments[b];var E=d<3&&h[0]!==g&&h[d-1]!==g?[]:Iu(h,g);if(d-=E.length,d<u)return rx(n,a,Iy,o.placeholder,void 0,h,E,void 0,void 0,u-d);var S=this&&this!==qc&&this instanceof o?l:n;return ci(S,this,h)}return o}var iM=1;function aM(n,a,u,l){var o=a&iM,d=Dp(n);function h(){for(var b=-1,g=arguments.length,E=-1,S=l.length,P=Array(S+g),k=this&&this!==qc&&this instanceof h?d:n;++E<S;)P[E]=l[E];for(;g--;)P[E++]=arguments[++b];return ci(k,o?u:this,P)}return h}var aO="__lodash_placeholder__",Zb=1,uM=2,cM=4,uO=8,wp=128,cO=256,sM=Math.min;function lM(n,a){var u=n[1],l=a[1],o=u|l,d=o<(Zb|uM|wp),h=l==wp&&u==uO||l==wp&&u==cO&&n[7].length<=a[8]||l==(wp|cO)&&a[7].length<=a[8]&&u==uO;if(!(d||h))return n;l&Zb&&(n[2]=a[2],o|=u&Zb?0:cM);var b=a[3];if(b){var g=n[3];n[3]=g?Jw(g,b,a[4]):b,n[4]=g?Iu(n[3],aO):a[4]}return b=a[5],b&&(g=n[5],n[5]=g?Qw(g,b,a[6]):b,n[6]=g?Iu(n[5],aO):a[6]),b=a[7],b&&(n[7]=b),l&wp&&(n[8]=n[8]==null?a[8]:sM(n[8],a[8])),n[9]==null&&(n[9]=a[9]),n[0]=a[0],n[1]=o,n}var fM="Expected a function",sO=1,pM=2,Jb=8,Qb=16,em=32,lO=64,fO=Math.max;function Za(n,a,u,l,o,d,h,b){var g=a&pM;if(!g&&typeof n!="function")throw new TypeError(fM);var E=l?l.length:0;if(E||(a&=~(em|lO),l=o=void 0),h=h===void 0?h:fO(nn(h),0),b=b===void 0?b:nn(b),E-=o?o.length:0,a&lO){var S=l,P=o;l=o=void 0}var k=g?void 0:Nm(n),M=[n,a,u,l,o,S,P,d,h,b];if(k&&lM(M,k),n=M[0],a=M[1],u=M[2],l=M[3],o=M[4],b=M[9]=M[9]===void 0?g?0:n.length:fO(M[9]-E,0),!b&&a&(Jb|Qb)&&(a&=~(Jb|Qb)),!a||a==sO)var C=bT(n,a,u);else a==Jb||a==Qb?C=oM(n,a,b):(a==em||a==(sO|em))&&!o.length?C=aM(n,a,u,l):C=Iy.apply(void 0,M);var N=k?Zw:tx;return nx(N(C,M),n,a)}var dM=128;function ox(n,a,u){return a=u?void 0:a,a=n&&a==null?n.length:a,Za(n,dM,void 0,void 0,void 0,void 0,a)}function ao(n,a,u){if(!ui(u))return!1;var l=typeof a;return(l=="number"?ba(u)&&kl(a,u.length):l=="string"&&a in u)?Lu(u[a],n):!1}function Cl(n){return sn(function(a,u){var l=-1,o=u.length,d=o>1?u[o-1]:void 0,h=o>2?u[2]:void 0;for(d=n.length>3&&typeof d=="function"?(o--,d):void 0,h&&ao(u[0],u[1],h)&&(d=o<3?void 0:d,o=1),a=Object(a);++l<o;){var b=u[l];b&&n(a,b,l,d)}return a})}var hM=Object.prototype,yM=hM.hasOwnProperty,vM=Cl(function(n,a){if(Mw(a)||ba(a)){Dl(a,Oo(a),n);return}for(var u in a)yM.call(a,u)&&kw(n,u,a[u])}),gM=vM,bM=Cl(function(n,a){Dl(a,Bi(a),n)}),pO=bM,mM=Cl(function(n,a,u,l){Dl(a,Bi(a),n,l)}),dy=mM,_M=Cl(function(n,a,u,l){Dl(a,Oo(a),n,l)}),OM=_M;function Cm(n,a){for(var u=-1,l=a.length,o=Array(l),d=n==null;++u<l;)o[u]=d?void 0:Dw(n,a[u]);return o}var wM=Bu(Cm),xM=wM,EM="[object Object]",SM=Function.prototype,jM=Object.prototype,ix=SM.toString,PM=jM.hasOwnProperty,AM=ix.call(Object);function zp(n){if(!Fo(n)||qa(n)!=EM)return!1;var a=Nw(n);if(a===null)return!0;var u=PM.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&ix.call(u)==AM}var TM="[object DOMException]",MM="[object Error]";function Rm(n){if(!Fo(n))return!1;var a=qa(n);return a==MM||a==TM||typeof n.message=="string"&&typeof n.name=="string"&&!zp(n)}var kM=sn(function(n,a){try{return ci(n,void 0,a)}catch(u){return Rm(u)?u:new Error(u)}}),ax=kM,DM="Expected a function";function ux(n,a){var u;if(typeof a!="function")throw new TypeError(DM);return n=nn(n),function(){return--n>0&&(u=a.apply(this,arguments)),n<=1&&(a=void 0),u}}var NM=1,CM=32,Im=sn(function(n,a,u){var l=NM;if(u.length){var o=Iu(u,Nl(Im));l|=CM}return Za(n,l,a,u,o)});Im.placeholder={};var cx=Im,RM=Bu(function(n,a){return Li(a,function(u){u=Cp(u),Zc(n,u,cx(n[u],n))}),n}),IM=RM,LM=1,BM=2,zM=32,Lm=sn(function(n,a,u){var l=LM|BM;if(u.length){var o=Iu(u,Nl(Lm));l|=zM}return Za(a,l,n,u,o)});Lm.placeholder={};var FM=Lm;function li(n,a,u){var l=-1,o=n.length;a<0&&(a=-a>o?0:o+a),u=u>o?o:u,u<0&&(u+=o),o=a>u?0:u-a>>>0,a>>>=0;for(var d=Array(o);++l<o;)d[l]=n[l+a];return d}function zu(n,a,u){var l=n.length;return u=u===void 0?l:u,!a&&u>=l?n:li(n,a,u)}var $M="\\ud800-\\udfff",WM="\\u0300-\\u036f",GM="\\ufe20-\\ufe2f",UM="\\u20d0-\\u20ff",HM=WM+GM+UM,XM="\\ufe0e\\ufe0f",YM="\\u200d",VM=RegExp("["+YM+$M+HM+XM+"]");function Rl(n){return VM.test(n)}function KM(n){return n.split("")}var sx="\\ud800-\\udfff",qM="\\u0300-\\u036f",ZM="\\ufe20-\\ufe2f",JM="\\u20d0-\\u20ff",QM=qM+ZM+JM,ek="\\ufe0e\\ufe0f",tk="["+sx+"]",lm="["+QM+"]",fm="\\ud83c[\\udffb-\\udfff]",nk="(?:"+lm+"|"+fm+")",lx="[^"+sx+"]",fx="(?:\\ud83c[\\udde6-\\uddff]){2}",px="[\\ud800-\\udbff][\\udc00-\\udfff]",rk="\\u200d",dx=nk+"?",hx="["+ek+"]?",ok="(?:"+rk+"(?:"+[lx,fx,px].join("|")+")"+hx+dx+")*",ik=hx+dx+ok,ak="(?:"+[lx+lm+"?",lm,fx,px,tk].join("|")+")",uk=RegExp(fm+"(?="+fm+")|"+ak+ik,"g");function ck(n){return n.match(uk)||[]}function Ii(n){return Rl(n)?ck(n):KM(n)}function yx(n){return function(a){a=Dn(a);var u=Rl(a)?Ii(a):void 0,l=u?u[0]:a.charAt(0),o=u?zu(u,1).join(""):a.slice(1);return l[n]()+o}}var sk=yx("toUpperCase"),Bm=sk;function vx(n){return Bm(Dn(n).toLowerCase())}function zm(n,a,u,l){var o=-1,d=n==null?0:n.length;for(l&&d&&(u=n[++o]);++o<d;)u=a(u,n[o],o,n);return u}function Fm(n){return function(a){return n==null?void 0:n[a]}}var lk={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},fk=Fm(lk),pk=fk,dk=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hk="\\u0300-\\u036f",yk="\\ufe20-\\ufe2f",vk="\\u20d0-\\u20ff",gk=hk+yk+vk,bk="["+gk+"]",mk=RegExp(bk,"g");function gx(n){return n=Dn(n),n&&n.replace(dk,pk).replace(mk,"")}var _k=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ok(n){return n.match(_k)||[]}var wk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function xk(n){return wk.test(n)}var bx="\\ud800-\\udfff",Ek="\\u0300-\\u036f",Sk="\\ufe20-\\ufe2f",jk="\\u20d0-\\u20ff",Pk=Ek+Sk+jk,mx="\\u2700-\\u27bf",_x="a-z\\xdf-\\xf6\\xf8-\\xff",Ak="\\xac\\xb1\\xd7\\xf7",Tk="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Mk="\\u2000-\\u206f",kk=" \\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",Ox="A-Z\\xc0-\\xd6\\xd8-\\xde",Dk="\\ufe0e\\ufe0f",wx=Ak+Tk+Mk+kk,xx="['\u2019]",dO="["+wx+"]",Nk="["+Pk+"]",Ex="\\d+",Ck="["+mx+"]",Sx="["+_x+"]",jx="[^"+bx+wx+Ex+mx+_x+Ox+"]",Rk="\\ud83c[\\udffb-\\udfff]",Ik="(?:"+Nk+"|"+Rk+")",Lk="[^"+bx+"]",Px="(?:\\ud83c[\\udde6-\\uddff]){2}",Ax="[\\ud800-\\udbff][\\udc00-\\udfff]",xl="["+Ox+"]",Bk="\\u200d",hO="(?:"+Sx+"|"+jx+")",zk="(?:"+xl+"|"+jx+")",yO="(?:"+xx+"(?:d|ll|m|re|s|t|ve))?",vO="(?:"+xx+"(?:D|LL|M|RE|S|T|VE))?",Tx=Ik+"?",Mx="["+Dk+"]?",Fk="(?:"+Bk+"(?:"+[Lk,Px,Ax].join("|")+")"+Mx+Tx+")*",$k="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gk=Mx+Tx+Fk,Uk="(?:"+[Ck,Px,Ax].join("|")+")"+Gk,Hk=RegExp([xl+"?"+Sx+"+"+yO+"(?="+[dO,xl,"$"].join("|")+")",zk+"+"+vO+"(?="+[dO,xl+hO,"$"].join("|")+")",xl+"?"+hO+"+"+yO,xl+"+"+vO,Wk,$k,Ex,Uk].join("|"),"g");function Xk(n){return n.match(Hk)||[]}function kx(n,a,u){return n=Dn(n),a=u?void 0:a,a===void 0?xk(n)?Xk(n):Ok(n):n.match(a)||[]}var Yk="['\u2019]",Vk=RegExp(Yk,"g");function Il(n){return function(a){return zm(kx(gx(a).replace(Vk,"")),n,"")}}var Kk=Il(function(n,a,u){return a=a.toLowerCase(),n+(u?vx(a):a)}),qk=Kk,Zk=qc.isFinite,Jk=Math.min;function $m(n){var a=Math[n];return function(u,l){if(u=Va(u),l=l==null?0:Jk(nn(l),292),l&&Zk(u)){var o=(Dn(u)+"e").split("e"),d=a(o[0]+"e"+(+o[1]+l));return o=(Dn(d)+"e").split("e"),+(o[0]+"e"+(+o[1]-l))}return a(u)}}var Qk=$m("ceil"),eD=Qk;function Dx(n){var a=$(n);return a.__chain__=!0,a}var tD=Math.ceil,nD=Math.max;function rD(n,a,u){(u?ao(n,a,u):a===void 0)?a=1:a=nD(nn(a),0);var l=n==null?0:n.length;if(!l||a<1)return[];for(var o=0,d=0,h=Array(tD(l/a));o<l;)h[d++]=li(n,o,o+=a);return h}function ts(n,a,u){return n===n&&(u!==void 0&&(n=n<=u?n:u),a!==void 0&&(n=n>=a?n:a)),n}function oD(n,a,u){return u===void 0&&(u=a,a=void 0),u!==void 0&&(u=Va(u),u=u===u?u:0),a!==void 0&&(a=Va(a),a=a===a?a:0),ts(Va(n),a,u)}var iD=1,aD=4;function uD(n,a){return a=typeof a=="function"?a:void 0,Jc(n,iD|aD,a)}var cD=4;function sD(n,a){return a=typeof a=="function"?a:void 0,Jc(n,cD,a)}function lD(){return new si(this.value(),this.__chain__)}function fD(n){for(var a=-1,u=n==null?0:n.length,l=0,o=[];++a<u;){var d=n[a];d&&(o[l++]=d)}return o}function pD(){var n=arguments.length;if(!n)return[];for(var a=Array(n-1),u=arguments[0],l=n;l--;)a[l-1]=arguments[l];return Rp(Sn(u)?Bo(u):[u],$o(a,1))}var dD="Expected a function";function hD(n){var a=n==null?0:n.length,u=Jt;return n=a?or(n,function(l){if(typeof l[1]!="function")throw new TypeError(dD);return[u(l[0]),l[1]]}):[],sn(function(l){for(var o=-1;++o<a;){var d=n[o];if(ci(d[0],this,l))return ci(d[1],this,l)}})}function Nx(n,a,u){var l=u.length;if(n==null)return!l;for(n=Object(n);l--;){var o=u[l],d=a[o],h=n[o];if(h===void 0&&!(o in n)||!d(h))return!1}return!0}function yD(n){var a=Oo(n);return function(u){return Nx(u,n,a)}}var vD=1;function gD(n){return yD(Jc(n,vD))}function bD(n,a){return a==null||Nx(n,a,Oo(a))}function mD(n,a,u,l){for(var o=-1,d=n==null?0:n.length;++o<d;){var h=n[o];a(l,h,u(h),n)}return l}function Cx(n){return function(a,u,l){for(var o=-1,d=Object(a),h=l(a),b=h.length;b--;){var g=h[n?b:++o];if(u(d[g],g,d)===!1)break}return a}}var _D=Cx(),Wm=_D;function ma(n,a){return n&&Wm(n,a,Oo)}function Rx(n,a){return function(u,l){if(u==null)return u;if(!ba(u))return n(u,l);for(var o=u.length,d=a?o:-1,h=Object(u);(a?d--:++d<o)&&l(h[d],d,h)!==!1;);return u}}var OD=Rx(ma),Fu=OD;function wD(n,a,u,l){return Fu(n,function(o,d,h){a(l,o,u(o),h)}),l}function Ly(n,a){return function(u,l){var o=Sn(u)?mD:wD,d=a?a():{};return o(u,n,Jt(l),d)}}var xD=Object.prototype,ED=xD.hasOwnProperty,SD=Ly(function(n,a,u){ED.call(n,u)?++n[u]:Zc(n,u,1)}),jD=SD;function PD(n,a){var u=Np(n);return a==null?u:v2(u,a)}var AD=8;function Gm(n,a,u){a=u?void 0:a;var l=Za(n,AD,void 0,void 0,void 0,void 0,void 0,a);return l.placeholder=Gm.placeholder,l}Gm.placeholder={};var TD=16;function Um(n,a,u){a=u?void 0:a;var l=Za(n,TD,void 0,void 0,void 0,void 0,void 0,a);return l.placeholder=Um.placeholder,l}Um.placeholder={};function MD(n,a){return n==null||n!==n?a:n}var Ix=Object.prototype,kD=Ix.hasOwnProperty,DD=sn(function(n,a){n=Object(n);var u=-1,l=a.length,o=l>2?a[2]:void 0;for(o&&ao(a[0],a[1],o)&&(l=1);++u<l;)for(var d=a[u],h=Bi(d),b=-1,g=h.length;++b<g;){var E=h[b],S=n[E];(S===void 0||Lu(S,Ix[E])&&!kD.call(n,E))&&(n[E]=d[E])}return n}),ND=DD;function pm(n,a,u){(u!==void 0&&!Lu(n[a],u)||u===void 0&&!(a in n))&&Zc(n,a,u)}function dm(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}function Lx(n){return Dl(n,Bi(n))}function CD(n,a,u,l,o,d,h){var b=dm(n,u),g=dm(a,u),E=h.get(g);if(E){pm(n,u,E);return}var S=d?d(b,g,u+"",n,a,h):void 0,P=S===void 0;if(P){var k=Sn(g),M=!k&&Ty(g),C=!k&&!M&&My(g);S=g,k||M||C?Sn(b)?S=b:br(b)?S=Bo(b):M?(P=!1,S=g2(g,!0)):C?(P=!1,S=b2(g,!0)):S=[]:zp(g)||ly(g)?(S=b,ly(b)?S=Lx(b):(!ui(b)||Qc(b))&&(S=m2(g))):P=!1}P&&(h.set(g,S),o(S,g,l,d,h),h.delete(g)),pm(n,u,S)}function By(n,a,u,l,o){n!==a&&Wm(a,function(d,h){if(o||(o=new _2),ui(d))CD(n,a,h,u,By,l,o);else{var b=l?l(dm(n,h),d,h+"",n,a,o):void 0;b===void 0&&(b=d),pm(n,h,b)}},Bi)}function Bx(n,a,u,l,o,d){return ui(n)&&ui(a)&&(d.set(a,n),By(n,a,void 0,Bx,d),d.delete(a)),n}var RD=Cl(function(n,a,u,l){By(n,a,u,l)}),zx=RD,ID=sn(function(n){return n.push(void 0,Bx),ci(zx,void 0,n)}),LD=ID,BD="Expected a function";function Fx(n,a,u){if(typeof n!="function")throw new TypeError(BD);return setTimeout(function(){n.apply(void 0,u)},a)}var zD=sn(function(n,a){return Fx(n,1,a)}),FD=zD,$D=sn(function(n,a,u){return Fx(n,Va(a)||0,u)}),WD=$D,GD=200;function Fp(n,a,u,l){var o=-1,d=Mm,h=!0,b=n.length,g=[],E=a.length;if(!b)return g;u&&(a=or(a,va(u))),l?(d=Rw,h=!1):a.length>=GD&&(d=im,h=!1,a=new Cw(a));e:for(;++o<b;){var S=n[o],P=u==null?S:u(S);if(S=l||S!==0?S:0,h&&P===P){for(var k=E;k--;)if(a[k]===P)continue e;g.push(S)}else d(a,P,l)||g.push(S)}return g}var UD=sn(function(n,a){return br(n)?Fp(n,$o(a,1,br,!0)):[]}),HD=UD;function zo(n){var a=n==null?0:n.length;return a?n[a-1]:void 0}var XD=sn(function(n,a){var u=zo(a);return br(u)&&(u=void 0),br(n)?Fp(n,$o(a,1,br,!0),Jt(u)):[]}),YD=XD,VD=sn(function(n,a){var u=zo(a);return br(u)&&(u=void 0),br(n)?Fp(n,$o(a,1,br,!0),void 0,u):[]}),KD=VD,qD=Cy(function(n,a){return n/a},1),ZD=qD;function JD(n,a,u){var l=n==null?0:n.length;return l?(a=u||a===void 0?1:nn(a),li(n,a<0?0:a,l)):[]}function QD(n,a,u){var l=n==null?0:n.length;return l?(a=u||a===void 0?1:nn(a),a=l-a,li(n,0,a<0?0:a)):[]}function zy(n,a,u,l){for(var o=n.length,d=l?o:-1;(l?d--:++d<o)&&a(n[d],d,n););return u?li(n,l?0:d,l?d+1:o):li(n,l?d+1:0,l?o:d)}function eN(n,a){return n&&n.length?zy(n,Jt(a),!0,!0):[]}function tN(n,a){return n&&n.length?zy(n,Jt(a),!0):[]}function _a(n){return typeof n=="function"?n:fi}function gO(n,a){var u=Sn(n)?Li:Fu;return u(n,_a(a))}function nN(n,a){for(var u=n==null?0:n.length;u--&&a(n[u],u,n)!==!1;);return n}var rN=Cx(!0),$x=rN;function Hm(n,a){return n&&$x(n,a,Oo)}var oN=Rx(Hm,!0),Wx=oN;function bO(n,a){var u=Sn(n)?nN:Wx;return u(n,_a(a))}function iN(n,a,u){n=Dn(n),a=Ri(a);var l=n.length;u=u===void 0?l:ts(nn(u),0,l);var o=u;return u-=a.length,u>=0&&n.slice(u,o)==a}function aN(n,a){return or(a,function(u){return[u,n[u]]})}function uN(n){var a=-1,u=Array(n.size);return n.forEach(function(l){u[++a]=[l,l]}),u}var cN="[object Map]",sN="[object Set]";function Gx(n){return function(a){var u=Ip(a);return u==cN?Iw(a):u==sN?uN(a):aN(a,n(a))}}var lN=Gx(Oo),mO=lN,fN=Gx(Bi),_O=fN,pN={"&":"&","<":"<",">":">",'"':""","'":"'"},dN=Fm(pN),hN=dN,Ux=/[&<>"']/g,yN=RegExp(Ux.source);function Hx(n){return n=Dn(n),n&&yN.test(n)?n.replace(Ux,hN):n}var Xx=/[\\^$.*+?()[\]{}|]/g,vN=RegExp(Xx.source);function gN(n){return n=Dn(n),n&&vN.test(n)?n.replace(Xx,"\\$&"):n}function Yx(n,a){for(var u=-1,l=n==null?0:n.length;++u<l;)if(!a(n[u],u,n))return!1;return!0}function bN(n,a){var u=!0;return Fu(n,function(l,o,d){return u=!!a(l,o,d),u}),u}function mN(n,a,u){var l=Sn(n)?Yx:bN;return u&&ao(n,a,u)&&(a=void 0),l(n,Jt(a))}var _N=4294967295;function Vx(n){return n?ts(nn(n),0,_N):0}function ON(n,a,u,l){var o=n.length;for(u=nn(u),u<0&&(u=-u>o?0:o+u),l=l===void 0||l>o?o:nn(l),l<0&&(l+=o),l=u>l?0:Vx(l);u<l;)n[u++]=a;return n}function wN(n,a,u,l){var o=n==null?0:n.length;return o?(u&&typeof u!="number"&&ao(n,a,u)&&(u=0,l=o),ON(n,a,u,l)):[]}function Kx(n,a){var u=[];return Fu(n,function(l,o,d){a(l,o,d)&&u.push(l)}),u}function xN(n,a){var u=Sn(n)?es:Kx;return u(n,Jt(a))}function qx(n,a,u){var l;return u(n,function(o,d,h){if(a(o,d,h))return l=d,!1}),l}function EN(n,a){return qx(n,Jt(a),ma)}var SN=Math.max,jN=Math.min;function Zx(n,a,u){var l=n==null?0:n.length;if(!l)return-1;var o=l-1;return u!==void 0&&(o=nn(u),o=u<0?SN(l+o,0):jN(o,l-1)),Lw(n,Jt(a),o,!0)}var PN=oT(Zx),AN=PN;function TN(n,a){return qx(n,Jt(a),Hm)}function OO(n){return n&&n.length?n[0]:void 0}function Jx(n,a){var u=-1,l=ba(n)?Array(n.length):[];return Fu(n,function(o,d,h){l[++u]=a(o,d,h)}),l}function Fy(n,a){var u=Sn(n)?or:Jx;return u(n,Jt(a))}function MN(n,a){return $o(Fy(n,a),1)}var kN=1/0;function DN(n,a){return $o(Fy(n,a),kN)}function NN(n,a,u){return u=u===void 0?1:nn(u),$o(Fy(n,a),u)}function CN(n,a){var u=n==null?0:n.length;return u?(a=a===void 0?1:nn(a),$o(n,a)):[]}var RN=512;function IN(n){return Za(n,RN)}var LN=$m("floor"),BN=LN,zN="Expected a function",FN=8,$N=32,WN=128,GN=256;function Qx(n){return Bu(function(a){var u=a.length,l=u,o=si.prototype.thru;for(n&&a.reverse();l--;){var d=a[l];if(typeof d!="function")throw new TypeError(zN);if(o&&!h&&ay(d)=="wrapper")var h=new si([],!0)}for(l=h?l:u;++l<u;){d=a[l];var b=ay(d),g=b=="wrapper"?Nm(d):void 0;g&&sm(g[0])&&g[1]==(WN|FN|$N|GN)&&!g[4].length&&g[9]==1?h=h[ay(g[0])].apply(h,g[3]):h=d.length==1&&sm(d)?h[b]():h.thru(d)}return function(){var E=arguments,S=E[0];if(h&&E.length==1&&Sn(S))return h.plant(S).value();for(var P=0,k=u?a[P].apply(this,E):S;++P<u;)k=a[P].call(this,k);return k}})}var UN=Qx(),HN=UN,XN=Qx(!0),YN=XN;function VN(n,a){return n==null?n:Wm(n,_a(a),Bi)}function KN(n,a){return n==null?n:$x(n,_a(a),Bi)}function qN(n,a){return n&&ma(n,_a(a))}function ZN(n,a){return n&&Hm(n,_a(a))}function $y(n,a){return es(a,function(u){return Qc(n[u])})}function JN(n){return n==null?[]:$y(n,Oo(n))}function QN(n){return n==null?[]:$y(n,Bi(n))}var eC=Object.prototype,tC=eC.hasOwnProperty,nC=Ly(function(n,a,u){tC.call(n,u)?n[u].push(a):Zc(n,u,[a])}),rC=nC;function Xm(n,a){return n>a}function Wy(n){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=Va(a),u=Va(u)),n(a,u)}}var oC=Wy(Xm),iC=oC,aC=Wy(function(n,a){return n>=a}),uC=aC,cC=Object.prototype,sC=cC.hasOwnProperty;function lC(n,a){return n!=null&&sC.call(n,a)}function fC(n,a){return n!=null&&O2(n,a,lC)}var pC=Math.max,dC=Math.min;function hC(n,a,u){return n>=dC(a,u)&&n<pC(a,u)}function yC(n,a,u){return a=Ru(a),u===void 0?(u=a,a=0):u=Ru(u),n=Va(n),hC(n,a,u)}var vC="[object String]";function Gy(n){return typeof n=="string"||!Sn(n)&&Fo(n)&&qa(n)==vC}function Ym(n,a){return or(a,function(u){return n[u]})}function Ll(n){return n==null?[]:Ym(n,Oo(n))}var gC=Math.max;function bC(n,a,u,l){n=ba(n)?n:Ll(n),u=u&&!l?nn(u):0;var o=n.length;return u<0&&(u=gC(o+u,0)),Gy(n)?u<=o&&n.indexOf(a,u)>-1:!!o&&Lp(n,a,u)>-1}var mC=Math.max;function _C(n,a,u){var l=n==null?0:n.length;if(!l)return-1;var o=u==null?0:nn(u);return o<0&&(o=mC(l+o,0)),Lp(n,a,o)}function OC(n){var a=n==null?0:n.length;return a?li(n,0,-1):[]}var wC=Math.min;function Vm(n,a,u){for(var l=u?Rw:Mm,o=n[0].length,d=n.length,h=d,b=Array(d),g=1/0,E=[];h--;){var S=n[h];h&&a&&(S=or(S,va(a))),g=wC(S.length,g),b[h]=!u&&(a||o>=120&&S.length>=120)?new Cw(h&&S):void 0}S=n[0];var P=-1,k=b[0];e:for(;++P<o&&E.length<g;){var M=S[P],C=a?a(M):M;if(M=u||M!==0?M:0,!(k?im(k,C):l(E,C,u))){for(h=d;--h;){var N=b[h];if(!(N?im(N,C):l(n[h],C,u)))continue e}k&&k.push(C),E.push(M)}}return E}function Km(n){return br(n)?n:[]}var xC=sn(function(n){var a=or(n,Km);return a.length&&a[0]===n[0]?Vm(a):[]}),EC=xC,SC=sn(function(n){var a=zo(n),u=or(n,Km);return a===zo(u)?a=void 0:u.pop(),u.length&&u[0]===n[0]?Vm(u,Jt(a)):[]}),jC=SC,PC=sn(function(n){var a=zo(n),u=or(n,Km);return a=typeof a=="function"?a:void 0,a&&u.pop(),u.length&&u[0]===n[0]?Vm(u,void 0,a):[]}),AC=PC;function TC(n,a,u,l){return ma(n,function(o,d,h){a(l,u(o),d,h)}),l}function eE(n,a){return function(u,l){return TC(u,n,a(l),{})}}var MC=Object.prototype,kC=MC.toString,DC=eE(function(n,a,u){a!=null&&typeof a.toString!="function"&&(a=kC.call(a)),n[a]=u},Bw(fi)),NC=DC,tE=Object.prototype,CC=tE.hasOwnProperty,RC=tE.toString,IC=eE(function(n,a,u){a!=null&&typeof a.toString!="function"&&(a=RC.call(a)),CC.call(n,a)?n[a].push(u):n[a]=[u]},Jt),LC=IC;function nE(n,a){return a.length<2?n:ky(n,li(a,0,-1))}function $p(n,a,u){a=Dy(a,n),n=nE(n,a);var l=n==null?n:n[Cp(zo(a))];return l==null?void 0:ci(l,n,u)}var BC=sn($p),zC=BC,FC=sn(function(n,a,u){var l=-1,o=typeof a=="function",d=ba(n)?Array(n.length):[];return Fu(n,function(h){d[++l]=o?ci(a,h,u):$p(h,a,u)}),d}),$C=FC,WC="[object ArrayBuffer]";function GC(n){return Fo(n)&&qa(n)==WC}var wO=Tl&&Tl.isArrayBuffer,UC=wO?va(wO):GC,HC=UC,XC="[object Boolean]";function YC(n){return n===!0||n===!1||Fo(n)&&qa(n)==XC}var VC="[object Date]";function KC(n){return Fo(n)&&qa(n)==VC}var xO=Tl&&Tl.isDate,qC=xO?va(xO):KC,ZC=qC;function JC(n){return Fo(n)&&n.nodeType===1&&!zp(n)}var QC="[object Map]",eR="[object Set]",tR=Object.prototype,nR=tR.hasOwnProperty;function rR(n){if(n==null)return!0;if(ba(n)&&(Sn(n)||typeof n=="string"||typeof n.splice=="function"||Ty(n)||My(n)||ly(n)))return!n.length;var a=Ip(n);if(a==QC||a==eR)return!n.size;if(Mw(n))return!zw(n).length;for(var u in n)if(nR.call(n,u))return!1;return!0}function oR(n,a,u){u=typeof u=="function"?u:void 0;var l=u?u(n,a):void 0;return l===void 0?w2(n,a,void 0,u):!!l}var iR=qc.isFinite;function aR(n){return typeof n=="number"&&iR(n)}function rE(n){return typeof n=="number"&&n==nn(n)}function uR(n,a){return n===a||Vw(n,a,Kw(a))}function cR(n,a,u){return u=typeof u=="function"?u:void 0,Vw(n,a,Kw(a),u)}var sR="[object Number]";function oE(n){return typeof n=="number"||Fo(n)&&qa(n)==sR}function lR(n){return oE(n)&&n!=+n}var fR=x2?Qc:Fw,pR=fR,dR="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.";function hR(n){if(pR(n))throw new Error(dR);return E2(n)}function yR(n){return n===null}var vR="[object RegExp]";function gR(n){return Fo(n)&&qa(n)==vR}var EO=Tl&&Tl.isRegExp,bR=EO?va(EO):gR,qm=bR,SO=9007199254740991;function mR(n){return rE(n)&&n>=-SO&&n<=SO}function _R(n){return n===void 0}var OR="[object WeakMap]";function wR(n){return Fo(n)&&Ip(n)==OR}var xR="[object WeakSet]";function ER(n){return Fo(n)&&qa(n)==xR}var SR=1;function jR(n){return Jt(typeof n=="function"?n:Jc(n,SR))}var PR=Array.prototype,AR=PR.join;function TR(n,a){return n==null?"":AR.call(n,a)}var MR=Il(function(n,a,u){return n+(u?"-":"")+a.toLowerCase()}),kR=MR,DR=Ly(function(n,a,u){Zc(n,u,a)}),NR=DR;function CR(n,a,u){for(var l=u+1;l--;)if(n[l]===a)return l;return l}var RR=Math.max,IR=Math.min;function LR(n,a,u){var l=n==null?0:n.length;if(!l)return-1;var o=l;return u!==void 0&&(o=nn(u),o=o<0?RR(l+o,0):IR(o,l-1)),a===a?CR(n,a,o):Lw(n,S2,o,!0)}var BR=Il(function(n,a,u){return n+(u?" ":"")+a.toLowerCase()}),zR=BR,FR=yx("toLowerCase"),$R=FR;function Zm(n,a){return n<a}var WR=Wy(Zm),GR=WR,UR=Wy(function(n,a){return n<=a}),HR=UR;function XR(n,a){var u={};return a=Jt(a),ma(n,function(l,o,d){Zc(u,a(l,o,d),l)}),u}function YR(n,a){var u={};return a=Jt(a),ma(n,function(l,o,d){Zc(u,o,a(l,o,d))}),u}var VR=1;function KR(n){return iT(Jc(n,VR))}var qR=1;function ZR(n,a){return aT(n,Jc(a,qR))}function Uy(n,a,u){for(var l=-1,o=n.length;++l<o;){var d=n[l],h=a(d);if(h!=null&&(b===void 0?h===h&&!Ka(h):u(h,b)))var b=h,g=d}return g}function JR(n){return n&&n.length?Uy(n,fi,Xm):void 0}function QR(n,a){return n&&n.length?Uy(n,Jt(a),Xm):void 0}function Jm(n,a){for(var u,l=-1,o=n.length;++l<o;){var d=a(n[l]);d!==void 0&&(u=u===void 0?d:u+d)}return u}var e3=0/0;function iE(n,a){var u=n==null?0:n.length;return u?Jm(n,a)/u:e3}function t3(n){return iE(n,fi)}function n3(n,a){return iE(n,Jt(a))}var r3=Cl(function(n,a,u){By(n,a,u)}),o3=r3,i3=sn(function(n,a){return function(u){return $p(u,n,a)}}),a3=i3,u3=sn(function(n,a){return function(u){return $p(n,u,a)}}),c3=u3;function s3(n){return n&&n.length?Uy(n,fi,Zm):void 0}function l3(n,a){return n&&n.length?Uy(n,Jt(a),Zm):void 0}function aE(n,a,u){var l=Oo(a),o=$y(a,l),d=!(ui(u)&&"chain"in u)||!!u.chain,h=Qc(n);return Li(o,function(b){var g=a[b];n[b]=g,h&&(n.prototype[b]=function(){var E=this.__chain__;if(d||E){var S=n(this.__wrapped__),P=S.__actions__=Bo(this.__actions__);return P.push({func:g,args:arguments,thisArg:n}),S.__chain__=E,S}return g.apply(n,Rp([this.value()],arguments))})}),n}var f3=Cy(function(n,a){return n*a},1),p3=f3,d3="Expected a function";function Wp(n){if(typeof n!="function")throw new TypeError(d3);return function(){var a=arguments;switch(a.length){case 0:return!n.call(this);case 1:return!n.call(this,a[0]);case 2:return!n.call(this,a[0],a[1]);case 3:return!n.call(this,a[0],a[1],a[2])}return!n.apply(this,a)}}function h3(n){for(var a,u=[];!(a=n.next()).done;)u.push(a.value);return u}var y3="[object Map]",v3="[object Set]",tm=fy?fy.iterator:void 0;function uE(n){if(!n)return[];if(ba(n))return Gy(n)?Ii(n):Bo(n);if(tm&&n[tm])return h3(n[tm]());var a=Ip(n),u=a==y3?Iw:a==v3?j2:Ll;return u(n)}function g3(){this.__values__===void 0&&(this.__values__=uE(this.value()));var n=this.__index__>=this.__values__.length,a=n?void 0:this.__values__[this.__index__++];return{done:n,value:a}}function cE(n,a){var u=n.length;if(!!u)return a+=a<0?u:0,kl(a,u)?n[a]:void 0}function b3(n,a){return n&&n.length?cE(n,nn(a)):void 0}function m3(n){return n=nn(n),sn(function(a){return cE(a,n)})}function Qm(n,a){return a=Dy(a,n),n=nE(n,a),n==null||delete n[Cp(zo(a))]}function _3(n){return zp(n)?void 0:n}var O3=1,w3=2,x3=4,E3=Bu(function(n,a){var u={};if(n==null)return u;var l=!1;a=or(a,function(d){return d=Dy(d,n),l||(l=d.length>1),d}),Dl(n,$w(n),u),l&&(u=Jc(u,O3|w3|x3,_3));for(var o=a.length;o--;)Qm(u,a[o]);return u}),S3=E3;function sE(n,a){if(n==null)return{};var u=or($w(n),function(l){return[l]});return a=Jt(a),P2(n,u,function(l,o){return a(l,o[0])})}function j3(n,a){return sE(n,Wp(Jt(a)))}function P3(n){return ux(2,n)}function A3(n,a){var u=n.length;for(n.sort(a);u--;)n[u]=n[u].value;return n}function lE(n,a){if(n!==a){var u=n!==void 0,l=n===null,o=n===n,d=Ka(n),h=a!==void 0,b=a===null,g=a===a,E=Ka(a);if(!b&&!E&&!d&&n>a||d&&h&&g&&!b&&!E||l&&h&&g||!u&&g||!o)return 1;if(!l&&!d&&!E&&n<a||E&&u&&o&&!l&&!d||b&&u&&o||!h&&o||!g)return-1}return 0}function T3(n,a,u){for(var l=-1,o=n.criteria,d=a.criteria,h=o.length,b=u.length;++l<h;){var g=lE(o[l],d[l]);if(g){if(l>=b)return g;var E=u[l];return g*(E=="desc"?-1:1)}}return n.index-a.index}function fE(n,a,u){a.length?a=or(a,function(d){return Sn(d)?function(h){return ky(h,d.length===1?d[0]:d)}:d}):a=[fi];var l=-1;a=or(a,va(Jt));var o=Jx(n,function(d,h,b){var g=or(a,function(E){return E(d)});return{criteria:g,index:++l,value:d}});return A3(o,function(d,h){return T3(d,h,u)})}function M3(n,a,u,l){return n==null?[]:(Sn(a)||(a=a==null?[]:[a]),u=l?void 0:u,Sn(u)||(u=u==null?[]:[u]),fE(n,a,u))}function e0(n){return Bu(function(a){return a=or(a,va(Jt)),sn(function(u){var l=this;return n(a,function(o){return ci(o,l,u)})})})}var k3=e0(or),D3=k3,N3=sn,C3=N3,R3=Math.min,I3=C3(function(n,a){a=a.length==1&&Sn(a[0])?or(a[0],va(Jt)):or($o(a,1),va(Jt));var u=a.length;return sn(function(l){for(var o=-1,d=R3(l.length,u);++o<d;)l[o]=a[o].call(this,l[o]);return ci(n,this,l)})}),L3=I3,B3=e0(Yx),z3=B3,F3=e0(Ww),$3=F3,W3=9007199254740991,G3=Math.floor;function hm(n,a){var u="";if(!n||a<1||a>W3)return u;do a%2&&(u+=n),a=G3(a/2),a&&(n+=n);while(a);return u}var U3=qw("length"),H3=U3,pE="\\ud800-\\udfff",X3="\\u0300-\\u036f",Y3="\\ufe20-\\ufe2f",V3="\\u20d0-\\u20ff",K3=X3+Y3+V3,q3="\\ufe0e\\ufe0f",Z3="["+pE+"]",ym="["+K3+"]",vm="\\ud83c[\\udffb-\\udfff]",J3="(?:"+ym+"|"+vm+")",dE="[^"+pE+"]",hE="(?:\\ud83c[\\udde6-\\uddff]){2}",yE="[\\ud800-\\udbff][\\udc00-\\udfff]",Q3="\\u200d",vE=J3+"?",gE="["+q3+"]?",eI="(?:"+Q3+"(?:"+[dE,hE,yE].join("|")+")"+gE+vE+")*",tI=gE+vE+eI,nI="(?:"+[dE+ym+"?",ym,hE,yE,Z3].join("|")+")",jO=RegExp(vm+"(?="+vm+")|"+nI+tI,"g");function rI(n){for(var a=jO.lastIndex=0;jO.test(n);)++a;return a}function Bl(n){return Rl(n)?rI(n):H3(n)}var oI=Math.ceil;function hy(n,a){a=a===void 0?" ":Ri(a);var u=a.length;if(u<2)return u?hm(a,n):a;var l=hm(a,oI(n/Bl(a)));return Rl(a)?zu(Ii(l),0,n).join(""):l.slice(0,n)}var iI=Math.ceil,aI=Math.floor;function uI(n,a,u){n=Dn(n),a=nn(a);var l=a?Bl(n):0;if(!a||l>=a)return n;var o=(a-l)/2;return hy(aI(o),u)+n+hy(iI(o),u)}function cI(n,a,u){n=Dn(n),a=nn(a);var l=a?Bl(n):0;return a&&l<a?n+hy(a-l,u):n}function sI(n,a,u){n=Dn(n),a=nn(a);var l=a?Bl(n):0;return a&&l<a?hy(a-l,u)+n:n}var lI=/^\s+/,fI=qc.parseInt;function pI(n,a,u){return u||a==null?a=0:a&&(a=+a),fI(Dn(n).replace(lI,""),a||0)}var dI=32,t0=sn(function(n,a){var u=Iu(a,Nl(t0));return Za(n,dI,void 0,a,u)});t0.placeholder={};var bE=t0,hI=64,n0=sn(function(n,a){var u=Iu(a,Nl(n0));return Za(n,hI,void 0,a,u)});n0.placeholder={};var yI=n0,vI=Ly(function(n,a,u){n[u?0:1].push(a)},function(){return[[],[]]}),gI=vI;function bI(n){for(var a,u=this;u instanceof Ry;){var l=ex(u);l.__index__=0,l.__values__=void 0,a?o.__wrapped__=l:a=l;var o=l;u=u.__wrapped__}return o.__wrapped__=n,a}function mI(n){return function(a){return n==null?void 0:ky(n,a)}}function _I(n,a,u,l){for(var o=u-1,d=n.length;++o<d;)if(l(n[o],a))return o;return-1}var OI=Array.prototype,PO=OI.splice;function r0(n,a,u,l){var o=l?_I:Lp,d=-1,h=a.length,b=n;for(n===a&&(a=Bo(a)),u&&(b=or(n,va(u)));++d<h;)for(var g=0,E=a[d],S=u?u(E):E;(g=o(b,S,g,l))>-1;)b!==n&&PO.call(b,g,1),PO.call(n,g,1);return n}function mE(n,a){return n&&n.length&&a&&a.length?r0(n,a):n}var wI=sn(mE),xI=wI;function EI(n,a,u){return n&&n.length&&a&&a.length?r0(n,a,Jt(u)):n}function SI(n,a,u){return n&&n.length&&a&&a.length?r0(n,a,void 0,u):n}var jI=Array.prototype,PI=jI.splice;function _E(n,a){for(var u=n?a.length:0,l=u-1;u--;){var o=a[u];if(u==l||o!==d){var d=o;kl(o)?PI.call(n,o,1):Qm(n,o)}}return n}var AI=Bu(function(n,a){var u=n==null?0:n.length,l=Cm(n,a);return _E(n,or(a,function(o){return kl(o,u)?+o:o}).sort(lE)),l}),TI=AI,MI=Math.floor,kI=Math.random;function o0(n,a){return n+MI(kI()*(a-n+1))}var DI=parseFloat,NI=Math.min,CI=Math.random;function RI(n,a,u){if(u&&typeof u!="boolean"&&ao(n,a,u)&&(a=u=void 0),u===void 0&&(typeof a=="boolean"?(u=a,a=void 0):typeof n=="boolean"&&(u=n,n=void 0)),n===void 0&&a===void 0?(n=0,a=1):(n=Ru(n),a===void 0?(a=n,n=0):a=Ru(a)),n>a){var l=n;n=a,a=l}if(u||n%1||a%1){var o=CI();return NI(n+o*(a-n+DI("1e-"+((o+"").length-1))),a)}return o0(n,a)}var II=Math.ceil,LI=Math.max;function BI(n,a,u,l){for(var o=-1,d=LI(II((a-n)/(u||1)),0),h=Array(d);d--;)h[l?d:++o]=n,n+=u;return h}function OE(n){return function(a,u,l){return l&&typeof l!="number"&&ao(a,u,l)&&(u=l=void 0),a=Ru(a),u===void 0?(u=a,a=0):u=Ru(u),l=l===void 0?a<u?1:-1:Ru(l),BI(a,u,l,n)}}var zI=OE(),FI=zI,$I=OE(!0),WI=$I,GI=256,UI=Bu(function(n,a){return Za(n,GI,void 0,void 0,void 0,a)}),HI=UI;function wE(n,a,u,l,o){return o(n,function(d,h,b){u=l?(l=!1,d):a(u,d,h,b)}),u}function XI(n,a,u){var l=Sn(n)?zm:wE,o=arguments.length<3;return l(n,Jt(a),u,o,Fu)}function YI(n,a,u,l){var o=n==null?0:n.length;for(l&&o&&(u=n[--o]);o--;)u=a(u,n[o],o,n);return u}function VI(n,a,u){var l=Sn(n)?YI:wE,o=arguments.length<3;return l(n,Jt(a),u,o,Wx)}function KI(n,a){var u=Sn(n)?es:Kx;return u(n,Wp(Jt(a)))}function qI(n,a){var u=[];if(!(n&&n.length))return u;var l=-1,o=[],d=n.length;for(a=Jt(a);++l<d;){var h=n[l];a(h,l,n)&&(u.push(h),o.push(l))}return _E(n,o),u}function ZI(n,a,u){return(u?ao(n,a,u):a===void 0)?a=1:a=nn(a),hm(Dn(n),a)}function JI(){var n=arguments,a=Dn(n[0]);return n.length<3?a:a.replace(n[1],n[2])}var QI="Expected a function";function eL(n,a){if(typeof n!="function")throw new TypeError(QI);return a=a===void 0?a:nn(a),sn(n,a)}function tL(n,a,u){a=Dy(a,n);var l=-1,o=a.length;for(o||(o=1,n=void 0);++l<o;){var d=n==null?void 0:n[Cp(a[l])];d===void 0&&(l=o,d=u),n=Qc(d)?d.call(n):d}return n}var nL=Array.prototype,rL=nL.reverse;function gm(n){return n==null?n:rL.call(n)}var oL=$m("round"),iL=oL;function xE(n){var a=n.length;return a?n[o0(0,a-1)]:void 0}function aL(n){return xE(Ll(n))}function uL(n){var a=Sn(n)?xE:aL;return a(n)}function Hy(n,a){var u=-1,l=n.length,o=l-1;for(a=a===void 0?l:a;++u<a;){var d=o0(u,o),h=n[d];n[d]=n[u],n[u]=h}return n.length=a,n}function cL(n,a){return Hy(Bo(n),ts(a,0,n.length))}function sL(n,a){var u=Ll(n);return Hy(u,ts(a,0,u.length))}function lL(n,a,u){(u?ao(n,a,u):a===void 0)?a=1:a=nn(a);var l=Sn(n)?cL:sL;return l(n,a)}function fL(n,a,u,l){return l=typeof l=="function"?l:void 0,n==null?n:km(n,a,u,l)}function pL(n){return Hy(Bo(n))}function dL(n){return Hy(Ll(n))}function hL(n){var a=Sn(n)?pL:dL;return a(n)}var yL="[object Map]",vL="[object Set]";function gL(n){if(n==null)return 0;if(ba(n))return Gy(n)?Bl(n):n.length;var a=Ip(n);return a==yL||a==vL?n.size:zw(n).length}function bL(n,a,u){var l=n==null?0:n.length;return l?(u&&typeof u!="number"&&ao(n,a,u)?(a=0,u=l):(a=a==null?0:nn(a),u=u===void 0?l:nn(u)),li(n,a,u)):[]}var mL=Il(function(n,a,u){return n+(u?"_":"")+a.toLowerCase()}),_L=mL;function OL(n,a){var u;return Fu(n,function(l,o,d){return u=a(l,o,d),!u}),!!u}function wL(n,a,u){var l=Sn(n)?Ww:OL;return u&&ao(n,a,u)&&(a=void 0),l(n,Jt(a))}var xL=sn(function(n,a){if(n==null)return[];var u=a.length;return u>1&&ao(n,a[0],a[1])?a=[]:u>2&&ao(a[0],a[1],a[2])&&(a=[a[0]]),fE(n,$o(a,1),[])}),EL=xL,SL=4294967295,jL=SL-1,PL=Math.floor,AL=Math.min;function i0(n,a,u,l){var o=0,d=n==null?0:n.length;if(d===0)return 0;a=u(a);for(var h=a!==a,b=a===null,g=Ka(a),E=a===void 0;o<d;){var S=PL((o+d)/2),P=u(n[S]),k=P!==void 0,M=P===null,C=P===P,N=Ka(P);if(h)var L=l||C;else E?L=C&&(l||k):b?L=C&&k&&(l||!M):g?L=C&&k&&!M&&(l||!N):M||N?L=!1:L=l?P<=a:P<a;L?o=S+1:d=S}return AL(d,jL)}var TL=4294967295,ML=TL>>>1;function Xy(n,a,u){var l=0,o=n==null?l:n.length;if(typeof a=="number"&&a===a&&o<=ML){for(;l<o;){var d=l+o>>>1,h=n[d];h!==null&&!Ka(h)&&(u?h<=a:h<a)?l=d+1:o=d}return o}return i0(n,a,fi,u)}function kL(n,a){return Xy(n,a)}function DL(n,a,u){return i0(n,a,Jt(u))}function NL(n,a){var u=n==null?0:n.length;if(u){var l=Xy(n,a);if(l<u&&Lu(n[l],a))return l}return-1}function CL(n,a){return Xy(n,a,!0)}function RL(n,a,u){return i0(n,a,Jt(u),!0)}function IL(n,a){var u=n==null?0:n.length;if(u){var l=Xy(n,a,!0)-1;if(Lu(n[l],a))return l}return-1}function EE(n,a){for(var u=-1,l=n.length,o=0,d=[];++u<l;){var h=n[u],b=a?a(h):h;if(!u||!Lu(b,g)){var g=b;d[o++]=h===0?0:h}}return d}function LL(n){return n&&n.length?EE(n):[]}function BL(n,a){return n&&n.length?EE(n,Jt(a)):[]}var zL=4294967295;function FL(n,a,u){return u&&typeof u!="number"&&ao(n,a,u)&&(a=u=void 0),u=u===void 0?zL:u>>>0,u?(n=Dn(n),n&&(typeof a=="string"||a!=null&&!qm(a))&&(a=Ri(a),!a&&Rl(n))?zu(Ii(n),0,u):n.split(a,u)):[]}var $L="Expected a function",WL=Math.max;function GL(n,a){if(typeof n!="function")throw new TypeError($L);return a=a==null?0:WL(nn(a),0),sn(function(u){var l=u[a],o=zu(u,0,a);return l&&Rp(o,l),ci(n,this,o)})}var UL=Il(function(n,a,u){return n+(u?" ":"")+Bm(a)}),HL=UL;function XL(n,a,u){return n=Dn(n),u=u==null?0:ts(nn(u),0,n.length),a=Ri(a),n.slice(u,u+a.length)==a}function YL(){return{}}function VL(){return""}function KL(){return!0}var qL=Cy(function(n,a){return n-a},0),ZL=qL;function JL(n){return n&&n.length?Jm(n,fi):0}function QL(n,a){return n&&n.length?Jm(n,Jt(a)):0}function e4(n){var a=n==null?0:n.length;return a?li(n,1,a):[]}function t4(n,a,u){return n&&n.length?(a=u||a===void 0?1:nn(a),li(n,0,a<0?0:a)):[]}function n4(n,a,u){var l=n==null?0:n.length;return l?(a=u||a===void 0?1:nn(a),a=l-a,li(n,a<0?0:a,l)):[]}function r4(n,a){return n&&n.length?zy(n,Jt(a),!1,!0):[]}function o4(n,a){return n&&n.length?zy(n,Jt(a)):[]}function i4(n,a){return a(n),n}var SE=Object.prototype,a4=SE.hasOwnProperty;function AO(n,a,u,l){return n===void 0||Lu(n,SE[u])&&!a4.call(l,u)?a:n}var u4={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function c4(n){return"\\"+u4[n]}var s4=/<%=([\s\S]+?)%>/g,jE=s4,l4=/<%-([\s\S]+?)%>/g,f4=l4,p4=/<%([\s\S]+?)%>/g,d4=p4,h4={escape:f4,evaluate:d4,interpolate:jE,variable:"",imports:{_:{escape:Hx}}},bm=h4,y4="Invalid `variable` option passed into `_.template`",v4=/\b__p \+= '';/g,g4=/\b(__p \+=) '' \+/g,b4=/(__e\(.*?\)|\b__t\)) \+\n'';/g,m4=/[()=,{}\[\]\/\s]/,_4=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ry=/($^)/,O4=/['\n\r\u2028\u2029\\]/g,w4=Object.prototype,TO=w4.hasOwnProperty;function x4(n,a,u){var l=bm.imports._.templateSettings||bm;u&&ao(n,a,u)&&(a=void 0),n=Dn(n),a=dy({},a,l,AO);var o=dy({},a.imports,l.imports,AO),d=Oo(o),h=Ym(o,d),b,g,E=0,S=a.interpolate||ry,P="__p += '",k=RegExp((a.escape||ry).source+"|"+S.source+"|"+(S===jE?_4:ry).source+"|"+(a.evaluate||ry).source+"|$","g"),M=TO.call(a,"sourceURL")?"//# sourceURL="+(a.sourceURL+"").replace(/\s/g," ")+`
- `:"";n.replace(k,function(L,U,W,X,Q,te){return W||(W=X),P+=n.slice(E,te).replace(O4,c4),U&&(b=!0,P+=`' +
- __e(`+U+`) +
- '`),Q&&(g=!0,P+=`';
- `+Q+`;
- __p += '`),W&&(P+=`' +
- ((__t = (`+W+`)) == null ? '' : __t) +
- '`),E=te+L.length,L}),P+=`';
- `;var C=TO.call(a,"variable")&&a.variable;if(!C)P=`with (obj) {
- `+P+`
- }
- `;else if(m4.test(C))throw new Error(y4);P=(g?P.replace(v4,""):P).replace(g4,"$1").replace(b4,"$1;"),P="function("+(C||"obj")+`) {
- `+(C?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(b?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+P+`return __p
- }`;var N=ax(function(){return Function(d,M+"return "+P).apply(void 0,h)});if(N.source=P,Rm(N))throw N;return N}function Gp(n,a){return a(n)}var E4=9007199254740991,nm=4294967295,S4=Math.min;function j4(n,a){if(n=nn(n),n<1||n>E4)return[];var u=nm,l=S4(n,nm);a=_a(a),n-=nm;for(var o=Gw(l,a);++u<n;)a(u);return o}function P4(){return this}function PE(n,a){var u=n;return u instanceof dn&&(u=u.value()),zm(a,function(l,o){return o.func.apply(o.thisArg,Rp([l],o.args))},u)}function rm(){return PE(this.__wrapped__,this.__actions__)}function A4(n){return Dn(n).toLowerCase()}function T4(n){return Sn(n)?or(n,Cp):Ka(n)?[n]:Bo(A2(Dn(n)))}var MO=9007199254740991;function M4(n){return n?ts(nn(n),-MO,MO):n===0?n:0}function k4(n){return Dn(n).toUpperCase()}function D4(n,a,u){var l=Sn(n),o=l||Ty(n)||My(n);if(a=Jt(a),u==null){var d=n&&n.constructor;o?u=l?new d:[]:ui(n)?u=Qc(d)?Np(Nw(n)):{}:u={}}return(o?Li:ma)(n,function(h,b,g){return a(u,h,b,g)}),u}function AE(n,a){for(var u=n.length;u--&&Lp(a,n[u],0)>-1;);return u}function TE(n,a){for(var u=-1,l=n.length;++u<l&&Lp(a,n[u],0)>-1;);return u}function N4(n,a,u){if(n=Dn(n),n&&(u||a===void 0))return T2(n);if(!n||!(a=Ri(a)))return n;var l=Ii(n),o=Ii(a),d=TE(l,o),h=AE(l,o)+1;return zu(l,d,h).join("")}function C4(n,a,u){if(n=Dn(n),n&&(u||a===void 0))return n.slice(0,M2(n)+1);if(!n||!(a=Ri(a)))return n;var l=Ii(n),o=AE(l,Ii(a))+1;return zu(l,0,o).join("")}var R4=/^\s+/;function I4(n,a,u){if(n=Dn(n),n&&(u||a===void 0))return n.replace(R4,"");if(!n||!(a=Ri(a)))return n;var l=Ii(n),o=TE(l,Ii(a));return zu(l,o).join("")}var L4=30,B4="...",z4=/\w*$/;function F4(n,a){var u=L4,l=B4;if(ui(a)){var o="separator"in a?a.separator:o;u="length"in a?nn(a.length):u,l="omission"in a?Ri(a.omission):l}n=Dn(n);var d=n.length;if(Rl(n)){var h=Ii(n);d=h.length}if(u>=d)return n;var b=u-Bl(l);if(b<1)return l;var g=h?zu(h,0,b).join(""):n.slice(0,b);if(o===void 0)return g+l;if(h&&(b+=g.length-b),qm(o)){if(n.slice(b).search(o)){var E,S=g;for(o.global||(o=RegExp(o.source,Dn(z4.exec(o))+"g")),o.lastIndex=0;E=o.exec(S);)var P=E.index;g=g.slice(0,P===void 0?b:P)}}else if(n.indexOf(Ri(o),b)!=b){var k=g.lastIndexOf(o);k>-1&&(g=g.slice(0,k))}return g+l}function $4(n){return ox(n,1)}var W4={"&":"&","<":"<",">":">",""":'"',"'":"'"},G4=Fm(W4),U4=G4,ME=/&(?:amp|lt|gt|quot|#39);/g,H4=RegExp(ME.source);function X4(n){return n=Dn(n),n&&H4.test(n)?n.replace(ME,U4):n}var Y4=sn(function(n){var a=zo(n);return br(a)&&(a=void 0),Kc($o(n,1,br,!0),Jt(a))}),V4=Y4,K4=sn(function(n){var a=zo(n);return a=typeof a=="function"?a:void 0,Kc($o(n,1,br,!0),void 0,a)}),q4=K4;function Z4(n){return n&&n.length?Kc(n):[]}function J4(n,a){return n&&n.length?Kc(n,Jt(a)):[]}function Q4(n,a){return a=typeof a=="function"?a:void 0,n&&n.length?Kc(n,void 0,a):[]}var e8=0;function t8(n){var a=++e8;return Dn(n)+a}function n8(n,a){return n==null?!0:Qm(n,a)}var r8=Math.max;function a0(n){if(!(n&&n.length))return[];var a=0;return n=es(n,function(u){if(br(u))return a=r8(u.length,a),!0}),Gw(a,function(u){return or(n,qw(u))})}function kE(n,a){if(!(n&&n.length))return[];var u=a0(n);return a==null?u:or(u,function(l){return ci(a,void 0,l)})}function DE(n,a,u,l){return km(n,a,u(ky(n,a)),l)}function o8(n,a,u){return n==null?n:DE(n,a,_a(u))}function i8(n,a,u,l){return l=typeof l=="function"?l:void 0,n==null?n:DE(n,a,_a(u),l)}var a8=Il(function(n,a,u){return n+(u?" ":"")+a.toUpperCase()}),u8=a8;function c8(n){return n==null?[]:Ym(n,Bi(n))}var s8=sn(function(n,a){return br(n)?Fp(n,a):[]}),l8=s8;function f8(n,a){return bE(_a(a),n)}var p8=Bu(function(n){var a=n.length,u=a?n[0]:0,l=this.__wrapped__,o=function(d){return Cm(d,n)};return a>1||this.__actions__.length||!(l instanceof dn)||!kl(u)?this.thru(o):(l=l.slice(u,+u+(a?1:0)),l.__actions__.push({func:Gp,args:[o],thisArg:void 0}),new si(l,this.__chain__).thru(function(d){return a&&!d.length&&d.push(void 0),d}))}),d8=p8;function h8(){return Dx(this)}function y8(){var n=this.__wrapped__;if(n instanceof dn){var a=n;return this.__actions__.length&&(a=new dn(this)),a=a.reverse(),a.__actions__.push({func:Gp,args:[gm],thisArg:void 0}),new si(a,this.__chain__)}return this.thru(gm)}function u0(n,a,u){var l=n.length;if(l<2)return l?Kc(n[0]):[];for(var o=-1,d=Array(l);++o<l;)for(var h=n[o],b=-1;++b<l;)b!=o&&(d[o]=Fp(d[o]||h,n[b],a,u));return Kc($o(d,1),a,u)}var v8=sn(function(n){return u0(es(n,br))}),g8=v8,b8=sn(function(n){var a=zo(n);return br(a)&&(a=void 0),u0(es(n,br),Jt(a))}),m8=b8,_8=sn(function(n){var a=zo(n);return a=typeof a=="function"?a:void 0,u0(es(n,br),void 0,a)}),O8=_8,w8=sn(a0),x8=w8;function NE(n,a,u){for(var l=-1,o=n.length,d=a.length,h={};++l<o;){var b=l<d?a[l]:void 0;u(h,n[l],b)}return h}function E8(n,a){return NE(n||[],a||[],kw)}function S8(n,a){return NE(n||[],a||[],km)}var j8=sn(function(n){var a=n.length,u=a>1?n[a-1]:void 0;return u=typeof u=="function"?(n.pop(),u):void 0,kE(n,u)}),P8=j8,yt={chunk:rD,compact:fD,concat:pD,difference:HD,differenceBy:YD,differenceWith:KD,drop:JD,dropRight:QD,dropRightWhile:eN,dropWhile:tN,fill:wN,findIndex:uT,findLastIndex:Zx,first:OO,flatten:k2,flattenDeep:D2,flattenDepth:CN,fromPairs:N2,head:OO,indexOf:_C,initial:OC,intersection:EC,intersectionBy:jC,intersectionWith:AC,join:TR,last:zo,lastIndexOf:LR,nth:b3,pull:xI,pullAll:mE,pullAllBy:EI,pullAllWith:SI,pullAt:TI,remove:qI,reverse:gm,slice:bL,sortedIndex:kL,sortedIndexBy:DL,sortedIndexOf:NL,sortedLastIndex:CL,sortedLastIndexBy:RL,sortedLastIndexOf:IL,sortedUniq:LL,sortedUniqBy:BL,tail:e4,take:t4,takeRight:n4,takeRightWhile:r4,takeWhile:o4,union:C2,unionBy:V4,unionWith:q4,uniq:Z4,uniqBy:J4,uniqWith:Q4,unzip:a0,unzipWith:kE,without:l8,xor:g8,xorBy:m8,xorWith:O8,zip:x8,zipObject:E8,zipObjectDeep:S8,zipWith:P8},Cn={countBy:jD,each:gO,eachRight:bO,every:mN,filter:xN,find:cT,findLast:AN,flatMap:MN,flatMapDeep:DN,flatMapDepth:NN,forEach:gO,forEachRight:bO,groupBy:rC,includes:bC,invokeMap:$C,keyBy:NR,map:Fy,orderBy:M3,partition:gI,reduce:XI,reduceRight:VI,reject:KI,sample:uL,sampleSize:lL,shuffle:hL,size:gL,some:wL,sortBy:EL},A8={now:R2},lr={after:hT,ary:ox,before:ux,bind:cx,bindKey:FM,curry:Gm,curryRight:Um,debounce:I2,defer:FD,delay:WD,flip:IN,memoize:L2,negate:Wp,once:P3,overArgs:L3,partial:bE,partialRight:yI,rearg:HI,rest:eL,spread:GL,throttle:B2,unary:$4,wrap:f8},Ct={castArray:z2,clone:F2,cloneDeep:$2,cloneDeepWith:uD,cloneWith:sD,conformsTo:bD,eq:Lu,gt:iC,gte:uC,isArguments:ly,isArray:Sn,isArrayBuffer:HC,isArrayLike:ba,isArrayLikeObject:br,isBoolean:YC,isBuffer:Ty,isDate:ZC,isElement:JC,isEmpty:rR,isEqual:W2,isEqualWith:oR,isError:Rm,isFinite:aR,isFunction:Qc,isInteger:rE,isLength:G2,isMap:U2,isMatch:uR,isMatchWith:cR,isNaN:lR,isNative:hR,isNil:H2,isNull:yR,isNumber:oE,isObject:ui,isObjectLike:Fo,isPlainObject:zp,isRegExp:qm,isSafeInteger:mR,isSet:X2,isString:Gy,isSymbol:Ka,isTypedArray:My,isUndefined:_R,isWeakMap:wR,isWeakSet:ER,lt:GR,lte:HR,toArray:uE,toFinite:Ru,toInteger:nn,toLength:Vx,toNumber:Va,toPlainObject:Lx,toSafeInteger:M4,toString:Dn},co={add:pT,ceil:eD,divide:ZD,floor:BN,max:JR,maxBy:QR,mean:t3,meanBy:n3,min:s3,minBy:l3,multiply:p3,round:iL,subtract:ZL,sum:JL,sumBy:QL},c0={clamp:oD,inRange:yC,random:RI},Xt={assign:gM,assignIn:pO,assignInWith:dy,assignWith:OM,at:xM,create:PD,defaults:ND,defaultsDeep:LD,entries:mO,entriesIn:_O,extend:pO,extendWith:dy,findKey:EN,findLastKey:TN,forIn:VN,forInRight:KN,forOwn:qN,forOwnRight:ZN,functions:JN,functionsIn:QN,get:Dw,has:fC,hasIn:Y2,invert:NC,invertBy:LC,invoke:zC,keys:Oo,keysIn:Bi,mapKeys:XR,mapValues:YR,merge:o3,mergeWith:zx,omit:S3,omitBy:j3,pick:V2,pickBy:sE,result:tL,set:K2,setWith:fL,toPairs:mO,toPairsIn:_O,transform:D4,unset:n8,update:o8,updateWith:i8,values:Ll,valuesIn:c8},Oa={at:d8,chain:Dx,commit:lD,lodash:$,next:g3,plant:bI,reverse:y8,tap:i4,thru:Gp,toIterator:P4,toJSON:rm,value:rm,valueOf:rm,wrapperChain:h8},Pn={camelCase:qk,capitalize:vx,deburr:gx,endsWith:iN,escape:Hx,escapeRegExp:gN,kebabCase:kR,lowerCase:zR,lowerFirst:$R,pad:uI,padEnd:cI,padStart:sI,parseInt:pI,repeat:ZI,replace:JI,snakeCase:_L,split:FL,startCase:HL,startsWith:XL,template:x4,templateSettings:bm,toLower:A4,toUpper:k4,trim:N4,trimEnd:C4,trimStart:I4,truncate:F4,unescape:X4,upperCase:u8,upperFirst:Bm,words:kx},An={attempt:ax,bindAll:IM,cond:hD,conforms:gD,constant:Bw,defaultTo:MD,flow:HN,flowRight:YN,identity:fi,iteratee:jR,matches:KR,matchesProperty:ZR,method:a3,methodOf:c3,mixin:aE,noop:Tw,nthArg:m3,over:D3,overEvery:z3,overSome:$3,property:sT,propertyOf:mI,range:FI,rangeRight:WI,stubArray:q2,stubFalse:Fw,stubObject:YL,stubString:VL,stubTrue:KL,times:j4,toPath:T4,uniqueId:t8};function T8(){var n=new dn(this.__wrapped__);return n.__actions__=Bo(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Bo(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Bo(this.__views__),n}function M8(){if(this.__filtered__){var n=new dn(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}var k8=Math.max,D8=Math.min;function N8(n,a,u){for(var l=-1,o=u.length;++l<o;){var d=u[l],h=d.size;switch(d.type){case"drop":n+=h;break;case"dropRight":a-=h;break;case"take":a=D8(a,n+h);break;case"takeRight":n=k8(n,a-h);break}}return{start:n,end:a}}var C8=1,R8=2,I8=Math.min;function L8(){var n=this.__wrapped__.value(),a=this.__dir__,u=Sn(n),l=a<0,o=u?n.length:0,d=N8(0,o,this.__views__),h=d.start,b=d.end,g=b-h,E=l?b:h-1,S=this.__iteratees__,P=S.length,k=0,M=I8(g,this.__takeCount__);if(!u||!l&&o==g&&M==g)return PE(n,this.__actions__);var C=[];e:for(;g--&&k<M;){E+=a;for(var N=-1,L=n[E];++N<P;){var U=S[N],W=U.iteratee,X=U.type,Q=W(L);if(X==R8)L=Q;else if(!Q){if(X==C8)continue e;break e}}C[k++]=L}return C}/**
- * @license
- * Lodash (Custom Build) <https://lodash.com/>
- * Build: `lodash modularize exports="es" -o ./`
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */var B8="4.17.21",z8=2,F8=1,$8=3,CE=4294967295,W8=Array.prototype,G8=Object.prototype,RE=G8.hasOwnProperty,kO=fy?fy.iterator:void 0,U8=Math.max,DO=Math.min,s0=function(n){return function(a,u,l){if(l==null){var o=ui(u),d=o&&Oo(u),h=d&&d.length&&$y(u,d);(h?h.length:o)||(l=u,u=a,a=this)}return n(a,u,l)}}(aE);$.after=lr.after;$.ary=lr.ary;$.assign=Xt.assign;$.assignIn=Xt.assignIn;$.assignInWith=Xt.assignInWith;$.assignWith=Xt.assignWith;$.at=Xt.at;$.before=lr.before;$.bind=lr.bind;$.bindAll=An.bindAll;$.bindKey=lr.bindKey;$.castArray=Ct.castArray;$.chain=Oa.chain;$.chunk=yt.chunk;$.compact=yt.compact;$.concat=yt.concat;$.cond=An.cond;$.conforms=An.conforms;$.constant=An.constant;$.countBy=Cn.countBy;$.create=Xt.create;$.curry=lr.curry;$.curryRight=lr.curryRight;$.debounce=lr.debounce;$.defaults=Xt.defaults;$.defaultsDeep=Xt.defaultsDeep;$.defer=lr.defer;$.delay=lr.delay;$.difference=yt.difference;$.differenceBy=yt.differenceBy;$.differenceWith=yt.differenceWith;$.drop=yt.drop;$.dropRight=yt.dropRight;$.dropRightWhile=yt.dropRightWhile;$.dropWhile=yt.dropWhile;$.fill=yt.fill;$.filter=Cn.filter;$.flatMap=Cn.flatMap;$.flatMapDeep=Cn.flatMapDeep;$.flatMapDepth=Cn.flatMapDepth;$.flatten=yt.flatten;$.flattenDeep=yt.flattenDeep;$.flattenDepth=yt.flattenDepth;$.flip=lr.flip;$.flow=An.flow;$.flowRight=An.flowRight;$.fromPairs=yt.fromPairs;$.functions=Xt.functions;$.functionsIn=Xt.functionsIn;$.groupBy=Cn.groupBy;$.initial=yt.initial;$.intersection=yt.intersection;$.intersectionBy=yt.intersectionBy;$.intersectionWith=yt.intersectionWith;$.invert=Xt.invert;$.invertBy=Xt.invertBy;$.invokeMap=Cn.invokeMap;$.iteratee=An.iteratee;$.keyBy=Cn.keyBy;$.keys=Oo;$.keysIn=Xt.keysIn;$.map=Cn.map;$.mapKeys=Xt.mapKeys;$.mapValues=Xt.mapValues;$.matches=An.matches;$.matchesProperty=An.matchesProperty;$.memoize=lr.memoize;$.merge=Xt.merge;$.mergeWith=Xt.mergeWith;$.method=An.method;$.methodOf=An.methodOf;$.mixin=s0;$.negate=Wp;$.nthArg=An.nthArg;$.omit=Xt.omit;$.omitBy=Xt.omitBy;$.once=lr.once;$.orderBy=Cn.orderBy;$.over=An.over;$.overArgs=lr.overArgs;$.overEvery=An.overEvery;$.overSome=An.overSome;$.partial=lr.partial;$.partialRight=lr.partialRight;$.partition=Cn.partition;$.pick=Xt.pick;$.pickBy=Xt.pickBy;$.property=An.property;$.propertyOf=An.propertyOf;$.pull=yt.pull;$.pullAll=yt.pullAll;$.pullAllBy=yt.pullAllBy;$.pullAllWith=yt.pullAllWith;$.pullAt=yt.pullAt;$.range=An.range;$.rangeRight=An.rangeRight;$.rearg=lr.rearg;$.reject=Cn.reject;$.remove=yt.remove;$.rest=lr.rest;$.reverse=yt.reverse;$.sampleSize=Cn.sampleSize;$.set=Xt.set;$.setWith=Xt.setWith;$.shuffle=Cn.shuffle;$.slice=yt.slice;$.sortBy=Cn.sortBy;$.sortedUniq=yt.sortedUniq;$.sortedUniqBy=yt.sortedUniqBy;$.split=Pn.split;$.spread=lr.spread;$.tail=yt.tail;$.take=yt.take;$.takeRight=yt.takeRight;$.takeRightWhile=yt.takeRightWhile;$.takeWhile=yt.takeWhile;$.tap=Oa.tap;$.throttle=lr.throttle;$.thru=Gp;$.toArray=Ct.toArray;$.toPairs=Xt.toPairs;$.toPairsIn=Xt.toPairsIn;$.toPath=An.toPath;$.toPlainObject=Ct.toPlainObject;$.transform=Xt.transform;$.unary=lr.unary;$.union=yt.union;$.unionBy=yt.unionBy;$.unionWith=yt.unionWith;$.uniq=yt.uniq;$.uniqBy=yt.uniqBy;$.uniqWith=yt.uniqWith;$.unset=Xt.unset;$.unzip=yt.unzip;$.unzipWith=yt.unzipWith;$.update=Xt.update;$.updateWith=Xt.updateWith;$.values=Xt.values;$.valuesIn=Xt.valuesIn;$.without=yt.without;$.words=Pn.words;$.wrap=lr.wrap;$.xor=yt.xor;$.xorBy=yt.xorBy;$.xorWith=yt.xorWith;$.zip=yt.zip;$.zipObject=yt.zipObject;$.zipObjectDeep=yt.zipObjectDeep;$.zipWith=yt.zipWith;$.entries=Xt.toPairs;$.entriesIn=Xt.toPairsIn;$.extend=Xt.assignIn;$.extendWith=Xt.assignInWith;s0($,$);$.add=co.add;$.attempt=An.attempt;$.camelCase=Pn.camelCase;$.capitalize=Pn.capitalize;$.ceil=co.ceil;$.clamp=c0.clamp;$.clone=Ct.clone;$.cloneDeep=Ct.cloneDeep;$.cloneDeepWith=Ct.cloneDeepWith;$.cloneWith=Ct.cloneWith;$.conformsTo=Ct.conformsTo;$.deburr=Pn.deburr;$.defaultTo=An.defaultTo;$.divide=co.divide;$.endsWith=Pn.endsWith;$.eq=Ct.eq;$.escape=Pn.escape;$.escapeRegExp=Pn.escapeRegExp;$.every=Cn.every;$.find=Cn.find;$.findIndex=yt.findIndex;$.findKey=Xt.findKey;$.findLast=Cn.findLast;$.findLastIndex=yt.findLastIndex;$.findLastKey=Xt.findLastKey;$.floor=co.floor;$.forEach=Cn.forEach;$.forEachRight=Cn.forEachRight;$.forIn=Xt.forIn;$.forInRight=Xt.forInRight;$.forOwn=Xt.forOwn;$.forOwnRight=Xt.forOwnRight;$.get=Xt.get;$.gt=Ct.gt;$.gte=Ct.gte;$.has=Xt.has;$.hasIn=Xt.hasIn;$.head=yt.head;$.identity=fi;$.includes=Cn.includes;$.indexOf=yt.indexOf;$.inRange=c0.inRange;$.invoke=Xt.invoke;$.isArguments=Ct.isArguments;$.isArray=Sn;$.isArrayBuffer=Ct.isArrayBuffer;$.isArrayLike=Ct.isArrayLike;$.isArrayLikeObject=Ct.isArrayLikeObject;$.isBoolean=Ct.isBoolean;$.isBuffer=Ct.isBuffer;$.isDate=Ct.isDate;$.isElement=Ct.isElement;$.isEmpty=Ct.isEmpty;$.isEqual=Ct.isEqual;$.isEqualWith=Ct.isEqualWith;$.isError=Ct.isError;$.isFinite=Ct.isFinite;$.isFunction=Ct.isFunction;$.isInteger=Ct.isInteger;$.isLength=Ct.isLength;$.isMap=Ct.isMap;$.isMatch=Ct.isMatch;$.isMatchWith=Ct.isMatchWith;$.isNaN=Ct.isNaN;$.isNative=Ct.isNative;$.isNil=Ct.isNil;$.isNull=Ct.isNull;$.isNumber=Ct.isNumber;$.isObject=ui;$.isObjectLike=Ct.isObjectLike;$.isPlainObject=Ct.isPlainObject;$.isRegExp=Ct.isRegExp;$.isSafeInteger=Ct.isSafeInteger;$.isSet=Ct.isSet;$.isString=Ct.isString;$.isSymbol=Ct.isSymbol;$.isTypedArray=Ct.isTypedArray;$.isUndefined=Ct.isUndefined;$.isWeakMap=Ct.isWeakMap;$.isWeakSet=Ct.isWeakSet;$.join=yt.join;$.kebabCase=Pn.kebabCase;$.last=zo;$.lastIndexOf=yt.lastIndexOf;$.lowerCase=Pn.lowerCase;$.lowerFirst=Pn.lowerFirst;$.lt=Ct.lt;$.lte=Ct.lte;$.max=co.max;$.maxBy=co.maxBy;$.mean=co.mean;$.meanBy=co.meanBy;$.min=co.min;$.minBy=co.minBy;$.stubArray=An.stubArray;$.stubFalse=An.stubFalse;$.stubObject=An.stubObject;$.stubString=An.stubString;$.stubTrue=An.stubTrue;$.multiply=co.multiply;$.nth=yt.nth;$.noop=An.noop;$.now=A8.now;$.pad=Pn.pad;$.padEnd=Pn.padEnd;$.padStart=Pn.padStart;$.parseInt=Pn.parseInt;$.random=c0.random;$.reduce=Cn.reduce;$.reduceRight=Cn.reduceRight;$.repeat=Pn.repeat;$.replace=Pn.replace;$.result=Xt.result;$.round=co.round;$.sample=Cn.sample;$.size=Cn.size;$.snakeCase=Pn.snakeCase;$.some=Cn.some;$.sortedIndex=yt.sortedIndex;$.sortedIndexBy=yt.sortedIndexBy;$.sortedIndexOf=yt.sortedIndexOf;$.sortedLastIndex=yt.sortedLastIndex;$.sortedLastIndexBy=yt.sortedLastIndexBy;$.sortedLastIndexOf=yt.sortedLastIndexOf;$.startCase=Pn.startCase;$.startsWith=Pn.startsWith;$.subtract=co.subtract;$.sum=co.sum;$.sumBy=co.sumBy;$.template=Pn.template;$.times=An.times;$.toFinite=Ct.toFinite;$.toInteger=nn;$.toLength=Ct.toLength;$.toLower=Pn.toLower;$.toNumber=Ct.toNumber;$.toSafeInteger=Ct.toSafeInteger;$.toString=Ct.toString;$.toUpper=Pn.toUpper;$.trim=Pn.trim;$.trimEnd=Pn.trimEnd;$.trimStart=Pn.trimStart;$.truncate=Pn.truncate;$.unescape=Pn.unescape;$.uniqueId=An.uniqueId;$.upperCase=Pn.upperCase;$.upperFirst=Pn.upperFirst;$.each=Cn.forEach;$.eachRight=Cn.forEachRight;$.first=yt.head;s0($,function(){var n={};return ma($,function(a,u){RE.call($.prototype,u)||(n[u]=a)}),n}(),{chain:!1});$.VERSION=B8;($.templateSettings=Pn.templateSettings).imports._=$;Li(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){$[n].placeholder=$});Li(["drop","take"],function(n,a){dn.prototype[n]=function(u){u=u===void 0?1:U8(nn(u),0);var l=this.__filtered__&&!a?new dn(this):this.clone();return l.__filtered__?l.__takeCount__=DO(u,l.__takeCount__):l.__views__.push({size:DO(u,CE),type:n+(l.__dir__<0?"Right":"")}),l},dn.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}});Li(["filter","map","takeWhile"],function(n,a){var u=a+1,l=u==F8||u==$8;dn.prototype[n]=function(o){var d=this.clone();return d.__iteratees__.push({iteratee:Jt(o),type:u}),d.__filtered__=d.__filtered__||l,d}});Li(["head","last"],function(n,a){var u="take"+(a?"Right":"");dn.prototype[n]=function(){return this[u](1).value()[0]}});Li(["initial","tail"],function(n,a){var u="drop"+(a?"":"Right");dn.prototype[n]=function(){return this.__filtered__?new dn(this):this[u](1)}});dn.prototype.compact=function(){return this.filter(fi)};dn.prototype.find=function(n){return this.filter(n).head()};dn.prototype.findLast=function(n){return this.reverse().find(n)};dn.prototype.invokeMap=sn(function(n,a){return typeof n=="function"?new dn(this):this.map(function(u){return $p(u,n,a)})});dn.prototype.reject=function(n){return this.filter(Wp(Jt(n)))};dn.prototype.slice=function(n,a){n=nn(n);var u=this;return u.__filtered__&&(n>0||a<0)?new dn(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),a!==void 0&&(a=nn(a),u=a<0?u.dropRight(-a):u.take(a-n)),u)};dn.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()};dn.prototype.toArray=function(){return this.take(CE)};ma(dn.prototype,function(n,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),l=/^(?:head|last)$/.test(a),o=$[l?"take"+(a=="last"?"Right":""):a],d=l||/^find/.test(a);!o||($.prototype[a]=function(){var h=this.__wrapped__,b=l?[1]:arguments,g=h instanceof dn,E=b[0],S=g||Sn(h),P=function(U){var W=o.apply($,Rp([U],b));return l&&k?W[0]:W};S&&u&&typeof E=="function"&&E.length!=1&&(g=S=!1);var k=this.__chain__,M=!!this.__actions__.length,C=d&&!k,N=g&&!M;if(!d&&S){h=N?h:new dn(this);var L=n.apply(h,b);return L.__actions__.push({func:Gp,args:[P],thisArg:void 0}),new si(L,k)}return C&&N?n.apply(this,b):(L=this.thru(P),C?l?L.value()[0]:L.value():L)})});Li(["pop","push","shift","sort","splice","unshift"],function(n){var a=W8[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",l=/^(?:pop|shift)$/.test(n);$.prototype[n]=function(){var o=arguments;if(l&&!this.__chain__){var d=this.value();return a.apply(Sn(d)?d:[],o)}return this[u](function(h){return a.apply(Sn(h)?h:[],o)})}});ma(dn.prototype,function(n,a){var u=$[a];if(u){var l=u.name+"";RE.call(jl,l)||(jl[l]=[]),jl[l].push({name:a,func:u})}});jl[Iy(void 0,z8).name]=[{name:"wrapper",func:void 0}];dn.prototype.clone=T8;dn.prototype.reverse=M8;dn.prototype.value=L8;$.prototype.at=Oa.at;$.prototype.chain=Oa.wrapperChain;$.prototype.commit=Oa.commit;$.prototype.next=Oa.next;$.prototype.plant=Oa.plant;$.prototype.reverse=Oa.reverse;$.prototype.toJSON=$.prototype.valueOf=$.prototype.value=Oa.value;$.prototype.first=$.prototype.head;kO&&($.prototype[kO]=Oa.toIterator);const H8=[{incoming:[],outgoing:["Flow_33inf2k"],dockers:[],type:2,properties:{a:"efrwe",b:"wewe",name:"\u5F00\u59CB",x:280,y:200,text:{x:280,y:200,value:"\u5F00\u59CB"},logicFlowType:"bpmn:startEvent"},key:"Event_1d42u4p"},{incoming:["Flow_379e0o9"],outgoing:[],dockers:[],type:3,properties:{a:"efrwe",b:"wewe",name:"\u7ED3\u675F",x:920,y:200,text:{x:920,y:200,value:"\u7ED3\u675F"},logicFlowType:"bpmn:endEvent"},key:"Event_08p8i6q"},{incoming:["Flow_0pfouf0"],outgoing:["Flow_3918lhh"],dockers:[],type:6,properties:{a:"efrwe",b:"wewe",name:"\u7F51\u5173",x:580,y:200,text:{x:580,y:200,value:"\u7F51\u5173"},logicFlowType:"bpmn:exclusiveGateway"},key:"Gateway_1fngqgj"},{incoming:["Flow_33inf2k"],outgoing:["Flow_0pfouf0"],dockers:[],type:4,properties:{a:"efrwe",b:"wewe",name:"\u7528\u6237",x:420,y:200,text:{x:420,y:200,value:"\u7528\u6237"},logicFlowType:"bpmn:userTask"},key:"Activity_2mgtaia"},{incoming:["Flow_3918lhh"],outgoing:["Flow_379e0o9"],dockers:[],type:5,properties:{a:"efrwe",b:"wewe",name:"\u670D\u52A1",x:760,y:200,text:{x:760,y:200,value:"\u670D\u52A1"},logicFlowType:"bpmn:serviceTask"},key:"Activity_1sp8qc8"},{incoming:["Event_1d42u4p"],outgoing:["Activity_2mgtaia"],type:1,dockers:[],properties:{name:"\u8FB9",text:{x:331,y:200,value:"\u8FB9"},startPoint:{x:298,y:200},endPoint:{x:370,y:200},pointsList:[{x:298,y:200},{x:370,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_33inf2k"},{incoming:["Activity_2mgtaia"],outgoing:["Gateway_1fngqgj"],type:1,dockers:[],properties:{name:"\u8FB92",text:{x:507,y:200,value:"\u8FB92"},startPoint:{x:470,y:200},endPoint:{x:555,y:200},pointsList:[{x:470,y:200},{x:555,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_0pfouf0"},{incoming:["Gateway_1fngqgj"],outgoing:["Activity_1sp8qc8"],type:1,dockers:[],properties:{name:"\u8FB93",text:{x:664,y:200,value:"\u8FB93"},startPoint:{x:605,y:200},endPoint:{x:710,y:200},pointsList:[{x:605,y:200},{x:710,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_3918lhh"},{incoming:["Activity_1sp8qc8"],outgoing:["Event_08p8i6q"],type:1,dockers:[],properties:{name:"\u8FB94",text:{x:871,y:200,value:"\u8FB94"},startPoint:{x:810,y:200},endPoint:{x:902,y:200},pointsList:[{x:810,y:200},{x:902,y:200}],logicFlowType:"bpmn:sequenceFlow"},key:"Flow_379e0o9"}];var X8={flowElementList:H8};var ot={exports:{}};(function(n,a){(function(u,l){n.exports=l()})(window,function(){return function(u){var l={};function o(d){if(l[d])return l[d].exports;var h=l[d]={i:d,l:!1,exports:{}};return u[d].call(h.exports,h,h.exports,o),h.l=!0,h.exports}return o.m=u,o.c=l,o.d=function(d,h,b){o.o(d,h)||Object.defineProperty(d,h,{enumerable:!0,get:b})},o.r=function(d){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},o.t=function(d,h){if(1&h&&(d=o(d)),8&h||4&h&&typeof d=="object"&&d&&d.__esModule)return d;var b=Object.create(null);if(o.r(b),Object.defineProperty(b,"default",{enumerable:!0,value:d}),2&h&&typeof d!="string")for(var g in d)o.d(b,g,function(E){return d[E]}.bind(null,g));return b},o.n=function(d){var h=d&&d.__esModule?function(){return d.default}:function(){return d};return o.d(h,"a",h),h},o.o=function(d,h){return Object.prototype.hasOwnProperty.call(d,h)},o.p="",o(o.s=222)}([function(u,l,o){o.d(l,"a",function(){return te}),o.d(l,"b",function(){return Q}),o.d(l,"c",function(){return Je}),o.d(l,"d",function(){return mt}),o.d(l,"e",function(){return U}),o.d(l,"f",function(){return X}),o.d(l,"g",function(){return U}),o.d(l,"h",function(){return Ye}),o.d(l,"i",function(){return h}),o.d(l,"j",function(){return xt}),o.d(l,"k",function(){return q});var d,h,b,g,E,S,P,k={},M=[],C=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function N(se,ce){for(var ge in ce)se[ge]=ce[ge];return se}function L(se){var ce=se.parentNode;ce&&ce.removeChild(se)}function U(se,ce,ge){var De,Ue,ze,Et={};for(ze in ce)ze=="key"?De=ce[ze]:ze=="ref"?Ue=ce[ze]:Et[ze]=ce[ze];if(arguments.length>2&&(Et.children=arguments.length>3?d.call(arguments,2):ge),typeof se=="function"&&se.defaultProps!=null)for(ze in se.defaultProps)Et[ze]===void 0&&(Et[ze]=se.defaultProps[ze]);return W(se,Et,De,Ue,null)}function W(se,ce,ge,De,Ue){var ze={type:se,props:ce,key:ge,ref:De,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:Ue==null?++b:Ue};return Ue==null&&h.vnode!=null&&h.vnode(ze),ze}function X(){return{current:null}}function Q(se){return se.children}function te(se,ce){this.props=se,this.context=ce}function Z(se,ce){if(ce==null)return se.__?Z(se.__,se.__.__k.indexOf(se)+1):null;for(var ge;ce<se.__k.length;ce++)if((ge=se.__k[ce])!=null&&ge.__e!=null)return ge.__e;return typeof se.type=="function"?Z(se):null}function J(se){var ce,ge;if((se=se.__)!=null&&se.__c!=null){for(se.__e=se.__c.base=null,ce=0;ce<se.__k.length;ce++)if((ge=se.__k[ce])!=null&&ge.__e!=null){se.__e=se.__c.base=ge.__e;break}return J(se)}}function H(se){(!se.__d&&(se.__d=!0)&&g.push(se)&&!B.__r++||S!==h.debounceRendering)&&((S=h.debounceRendering)||E)(B)}function B(){for(var se;B.__r=g.length;)se=g.sort(function(ce,ge){return ce.__v.__b-ge.__v.__b}),g=[],se.some(function(ce){var ge,De,Ue,ze,Et,Rt;ce.__d&&(Et=(ze=(ge=ce).__v).__e,(Rt=ge.__P)&&(De=[],(Ue=N({},ze)).__v=ze.__v+1,je(Rt,ze,Ue,ge.__n,Rt.ownerSVGElement!==void 0,ze.__h!=null?[Et]:null,De,Et==null?Z(ze):Et,ze.__h),ve(De,ze),ze.__e!=Et&&J(ze)))})}function V(se,ce,ge,De,Ue,ze,Et,Rt,At,gt){var Me,lt,fe,at,$t,hn,Wt,on=De&&De.__k||M,_n=on.length;for(ge.__k=[],Me=0;Me<ce.length;Me++)if((at=ge.__k[Me]=(at=ce[Me])==null||typeof at=="boolean"?null:typeof at=="string"||typeof at=="number"||typeof at=="bigint"?W(null,at,null,null,at):Array.isArray(at)?W(Q,{children:at},null,null,null):at.__b>0?W(at.type,at.props,at.key,null,at.__v):at)!=null){if(at.__=ge,at.__b=ge.__b+1,(fe=on[Me])===null||fe&&at.key==fe.key&&at.type===fe.type)on[Me]=void 0;else for(lt=0;lt<_n;lt++){if((fe=on[lt])&&at.key==fe.key&&at.type===fe.type){on[lt]=void 0;break}fe=null}je(se,at,fe=fe||k,Ue,ze,Et,Rt,At,gt),$t=at.__e,(lt=at.ref)&&fe.ref!=lt&&(Wt||(Wt=[]),fe.ref&&Wt.push(fe.ref,null,at),Wt.push(lt,at.__c||$t,at)),$t!=null?(hn==null&&(hn=$t),typeof at.type=="function"&&at.__k===fe.__k?at.__d=At=Y(at,At,se):At=ue(se,at,fe,on,$t,At),typeof ge.type=="function"&&(ge.__d=At)):At&&fe.__e==At&&At.parentNode!=se&&(At=Z(fe))}for(ge.__e=hn,Me=_n;Me--;)on[Me]!=null&&(typeof ge.type=="function"&&on[Me].__e!=null&&on[Me].__e==ge.__d&&(ge.__d=Z(De,Me+1)),We(on[Me],on[Me]));if(Wt)for(Me=0;Me<Wt.length;Me++)Te(Wt[Me],Wt[++Me],Wt[++Me])}function Y(se,ce,ge){for(var De,Ue=se.__k,ze=0;Ue&&ze<Ue.length;ze++)(De=Ue[ze])&&(De.__=se,ce=typeof De.type=="function"?Y(De,ce,ge):ue(ge,De,De,Ue,De.__e,ce));return ce}function q(se,ce){return ce=ce||[],se==null||typeof se=="boolean"||(Array.isArray(se)?se.some(function(ge){q(ge,ce)}):ce.push(se)),ce}function ue(se,ce,ge,De,Ue,ze){var Et,Rt,At;if(ce.__d!==void 0)Et=ce.__d,ce.__d=void 0;else if(ge==null||Ue!=ze||Ue.parentNode==null)e:if(ze==null||ze.parentNode!==se)se.appendChild(Ue),Et=null;else{for(Rt=ze,At=0;(Rt=Rt.nextSibling)&&At<De.length;At+=2)if(Rt==Ue)break e;se.insertBefore(Ue,ze),Et=ze}return Et!==void 0?Et:Ue.nextSibling}function xe(se,ce,ge){ce[0]==="-"?se.setProperty(ce,ge):se[ce]=ge==null?"":typeof ge!="number"||C.test(ce)?ge:ge+"px"}function be(se,ce,ge,De,Ue){var ze;e:if(ce==="style")if(typeof ge=="string")se.style.cssText=ge;else{if(typeof De=="string"&&(se.style.cssText=De=""),De)for(ce in De)ge&&ce in ge||xe(se.style,ce,"");if(ge)for(ce in ge)De&&ge[ce]===De[ce]||xe(se.style,ce,ge[ce])}else if(ce[0]==="o"&&ce[1]==="n")ze=ce!==(ce=ce.replace(/Capture$/,"")),ce=ce.toLowerCase()in se?ce.toLowerCase().slice(2):ce.slice(2),se.l||(se.l={}),se.l[ce+ze]=ge,ge?De||se.addEventListener(ce,ze?Fe:Ae,ze):se.removeEventListener(ce,ze?Fe:Ae,ze);else if(ce!=="dangerouslySetInnerHTML"){if(Ue)ce=ce.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(ce!=="href"&&ce!=="list"&&ce!=="form"&&ce!=="tabIndex"&&ce!=="download"&&ce in se)try{se[ce]=ge==null?"":ge;break e}catch{}typeof ge=="function"||(ge!=null&&(ge!==!1||ce[0]==="a"&&ce[1]==="r")?se.setAttribute(ce,ge):se.removeAttribute(ce))}}function Ae(se){this.l[se.type+!1](h.event?h.event(se):se)}function Fe(se){this.l[se.type+!0](h.event?h.event(se):se)}function je(se,ce,ge,De,Ue,ze,Et,Rt,At){var gt,Me,lt,fe,at,$t,hn,Wt,on,_n,Nn,Bt=ce.type;if(ce.constructor!==void 0)return null;ge.__h!=null&&(At=ge.__h,Rt=ce.__e=ge.__e,ce.__h=null,ze=[Rt]),(gt=h.__b)&>(ce);try{e:if(typeof Bt=="function"){if(Wt=ce.props,on=(gt=Bt.contextType)&&De[gt.__c],_n=gt?on?on.props.value:gt.__:De,ge.__c?hn=(Me=ce.__c=ge.__c).__=Me.__E:("prototype"in Bt&&Bt.prototype.render?ce.__c=Me=new Bt(Wt,_n):(ce.__c=Me=new te(Wt,_n),Me.constructor=Bt,Me.render=it),on&&on.sub(Me),Me.props=Wt,Me.state||(Me.state={}),Me.context=_n,Me.__n=De,lt=Me.__d=!0,Me.__h=[]),Me.__s==null&&(Me.__s=Me.state),Bt.getDerivedStateFromProps!=null&&(Me.__s==Me.state&&(Me.__s=N({},Me.__s)),N(Me.__s,Bt.getDerivedStateFromProps(Wt,Me.__s))),fe=Me.props,at=Me.state,lt)Bt.getDerivedStateFromProps==null&&Me.componentWillMount!=null&&Me.componentWillMount(),Me.componentDidMount!=null&&Me.__h.push(Me.componentDidMount);else{if(Bt.getDerivedStateFromProps==null&&Wt!==fe&&Me.componentWillReceiveProps!=null&&Me.componentWillReceiveProps(Wt,_n),!Me.__e&&Me.shouldComponentUpdate!=null&&Me.shouldComponentUpdate(Wt,Me.__s,_n)===!1||ce.__v===ge.__v){Me.props=Wt,Me.state=Me.__s,ce.__v!==ge.__v&&(Me.__d=!1),Me.__v=ce,ce.__e=ge.__e,ce.__k=ge.__k,ce.__k.forEach(function(Xn){Xn&&(Xn.__=ce)}),Me.__h.length&&Et.push(Me);break e}Me.componentWillUpdate!=null&&Me.componentWillUpdate(Wt,Me.__s,_n),Me.componentDidUpdate!=null&&Me.__h.push(function(){Me.componentDidUpdate(fe,at,$t)})}Me.context=_n,Me.props=Wt,Me.state=Me.__s,(gt=h.__r)&>(ce),Me.__d=!1,Me.__v=ce,Me.__P=se,gt=Me.render(Me.props,Me.state,Me.context),Me.state=Me.__s,Me.getChildContext!=null&&(De=N(N({},De),Me.getChildContext())),lt||Me.getSnapshotBeforeUpdate==null||($t=Me.getSnapshotBeforeUpdate(fe,at)),Nn=gt!=null&>.type===Q&>.key==null?gt.props.children:gt,V(se,Array.isArray(Nn)?Nn:[Nn],ce,ge,De,Ue,ze,Et,Rt,At),Me.base=ce.__e,ce.__h=null,Me.__h.length&&Et.push(Me),hn&&(Me.__E=Me.__=null),Me.__e=!1}else ze==null&&ce.__v===ge.__v?(ce.__k=ge.__k,ce.__e=ge.__e):ce.__e=Pe(ge.__e,ce,ge,De,Ue,ze,Et,At);(gt=h.diffed)&>(ce)}catch(Xn){ce.__v=null,(At||ze!=null)&&(ce.__e=Rt,ce.__h=!!At,ze[ze.indexOf(Rt)]=null),h.__e(Xn,ce,ge)}}function ve(se,ce){h.__c&&h.__c(ce,se),se.some(function(ge){try{se=ge.__h,ge.__h=[],se.some(function(De){De.call(ge)})}catch(De){h.__e(De,ge.__v)}})}function Pe(se,ce,ge,De,Ue,ze,Et,Rt){var At,gt,Me,lt=ge.props,fe=ce.props,at=ce.type,$t=0;if(at==="svg"&&(Ue=!0),ze!=null){for(;$t<ze.length;$t++)if((At=ze[$t])&&"setAttribute"in At==!!at&&(at?At.localName===at:At.nodeType===3)){se=At,ze[$t]=null;break}}if(se==null){if(at===null)return document.createTextNode(fe);se=Ue?document.createElementNS("http://www.w3.org/2000/svg",at):document.createElement(at,fe.is&&fe),ze=null,Rt=!1}if(at===null)lt===fe||Rt&&se.data===fe||(se.data=fe);else{if(ze=ze&&d.call(se.childNodes),gt=(lt=ge.props||k).dangerouslySetInnerHTML,Me=fe.dangerouslySetInnerHTML,!Rt){if(ze!=null)for(lt={},$t=0;$t<se.attributes.length;$t++)lt[se.attributes[$t].name]=se.attributes[$t].value;(Me||gt)&&(Me&&(gt&&Me.__html==gt.__html||Me.__html===se.innerHTML)||(se.innerHTML=Me&&Me.__html||""))}if(function(hn,Wt,on,_n,Nn){var Bt;for(Bt in on)Bt==="children"||Bt==="key"||Bt in Wt||be(hn,Bt,null,on[Bt],_n);for(Bt in Wt)Nn&&typeof Wt[Bt]!="function"||Bt==="children"||Bt==="key"||Bt==="value"||Bt==="checked"||on[Bt]===Wt[Bt]||be(hn,Bt,Wt[Bt],on[Bt],_n)}(se,fe,lt,Ue,Rt),Me)ce.__k=[];else if($t=ce.props.children,V(se,Array.isArray($t)?$t:[$t],ce,ge,De,Ue&&at!=="foreignObject",ze,Et,ze?ze[0]:ge.__k&&Z(ge,0),Rt),ze!=null)for($t=ze.length;$t--;)ze[$t]!=null&&L(ze[$t]);Rt||("value"in fe&&($t=fe.value)!==void 0&&($t!==lt.value||$t!==se.value||at==="progress"&&!$t)&&be(se,"value",$t,lt.value,!1),"checked"in fe&&($t=fe.checked)!==void 0&&$t!==se.checked&&be(se,"checked",$t,lt.checked,!1))}return se}function Te(se,ce,ge){try{typeof se=="function"?se(ce):se.current=ce}catch(De){h.__e(De,ge)}}function We(se,ce,ge){var De,Ue;if(h.unmount&&h.unmount(se),(De=se.ref)&&(De.current&&De.current!==se.__e||Te(De,null,ce)),(De=se.__c)!=null){if(De.componentWillUnmount)try{De.componentWillUnmount()}catch(ze){h.__e(ze,ce)}De.base=De.__P=null}if(De=se.__k)for(Ue=0;Ue<De.length;Ue++)De[Ue]&&We(De[Ue],ce,typeof se.type!="function");ge||se.__e==null||L(se.__e),se.__e=se.__d=void 0}function it(se,ce,ge){return this.constructor(se,ge)}function xt(se,ce,ge){var De,Ue,ze;h.__&&h.__(se,ce),Ue=(De=typeof ge=="function")?null:ge&&ge.__k||ce.__k,ze=[],je(ce,se=(!De&&ge||ce).__k=U(Q,null,[se]),Ue||k,k,ce.ownerSVGElement!==void 0,!De&&ge?[ge]:Ue?null:ce.firstChild?d.call(ce.childNodes):null,ze,!De&&ge?ge:Ue?Ue.__e:ce.firstChild,De),ve(ze,se)}function Ye(se,ce){xt(se,ce,Ye)}function Je(se,ce,ge){var De,Ue,ze,Et=N({},se.props);for(ze in ce)ze=="key"?De=ce[ze]:ze=="ref"?Ue=ce[ze]:Et[ze]=ce[ze];return arguments.length>2&&(Et.children=arguments.length>3?d.call(arguments,2):ge),W(se.type,Et,De||se.key,Ue||se.ref,null)}function mt(se,ce){var ge={__c:ce="__cC"+P++,__:se,Consumer:function(De,Ue){return De.children(Ue)},Provider:function(De){var Ue,ze;return this.getChildContext||(Ue=[],(ze={})[ce]=this,this.getChildContext=function(){return ze},this.shouldComponentUpdate=function(Et){this.props.value!==Et.value&&Ue.some(H)},this.sub=function(Et){Ue.push(Et);var Rt=Et.componentWillUnmount;Et.componentWillUnmount=function(){Ue.splice(Ue.indexOf(Et),1),Rt&&Rt.call(Et)}}),De.children}};return ge.Provider.__=ge.Consumer.contextType=ge}d=M.slice,h={__e:function(se,ce){for(var ge,De,Ue;ce=ce.__;)if((ge=ce.__c)&&!ge.__)try{if((De=ge.constructor)&&De.getDerivedStateFromError!=null&&(ge.setState(De.getDerivedStateFromError(se)),Ue=ge.__d),ge.componentDidCatch!=null&&(ge.componentDidCatch(se),Ue=ge.__d),Ue)return ge.__E=ge}catch(ze){se=ze}throw se}},b=0,te.prototype.setState=function(se,ce){var ge;ge=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=N({},this.state),typeof se=="function"&&(se=se(N({},ge),this.props)),se&&N(ge,se),se!=null&&this.__v&&(ce&&this.__h.push(ce),H(this))},te.prototype.forceUpdate=function(se){this.__v&&(this.__e=!0,se&&this.__h.push(se),H(this))},te.prototype.render=Q,g=[],E=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,B.__r=0,P=0},function(u,l,o){(function(d,h){o.d(l,"a",function(){return H}),o.d(l,"b",function(){return ac}),o.d(l,"c",function(){return po}),o.d(l,"d",function(){return St}),o.d(l,"e",function(){return Ke}),o.d(l,"f",function(){return Ve}),o.d(l,"g",function(){return Ot}),o.d(l,"h",function(){return To}),o.d(l,"i",function(){return Nn}),o.d(l,"j",function(){return ut}),o.d(l,"k",function(){return Uo}),o.d(l,"l",function(){return qu}),o.d(l,"m",function(){return hn}),o.d(l,"n",function(){return Fi}),o.d(l,"o",function(){return Y}),o.d(l,"p",function(){return ss}),o.d(l,"q",function(){return Ho}),o.d(l,"r",function(){return eu}),o.d(l,"s",function(){return Qr}),o.d(l,"t",function(){return Un}),o.d(l,"u",function(){return Qa}),o.d(l,"v",function(){return cs}),o.d(l,"w",function(){return tc}),o.d(l,"x",function(){return $i}),o.d(l,"y",function(){return Jr}),o.d(l,"z",function(){return Vn}),o.d(l,"A",function(){return Lr}),o.d(l,"B",function(){return Eo}),o.d(l,"C",function(){return gt}),o.d(l,"D",function(){return ls}),o.d(l,"E",function(){return yn}),o.d(l,"F",function(){return vn}),o.d(l,"G",function(){return Vu}),o.d(l,"H",function(){return Yu}),o.d(l,"I",function(){return nc}),o.d(l,"J",function(){return ar}),o.d(l,"K",function(){return de}),o.d(l,"L",function(){return jn}),o.d(l,"M",function(){return nu});var b=[];Object.freeze(b);var g={};function E(){return++ft.mobxGuid}function S(O){throw P(!1,O),"X"}function P(O,w){if(!O)throw new Error("[mobx] "+(w||"An invariant failed, however the error is obfuscated because this is a production build."))}Object.freeze(g);function k(O){var w=!1;return function(){if(!w)return w=!0,O.apply(this,arguments)}}var M=function(){};function C(O){return O!==null&&typeof O=="object"}function N(O){if(O===null||typeof O!="object")return!1;var w=Object.getPrototypeOf(O);return w===Object.prototype||w===null}function L(O,w,T){Object.defineProperty(O,w,{enumerable:!1,writable:!0,configurable:!0,value:T})}function U(O,w){var T="isMobX"+O;return w.prototype[T]=!0,function(z){return C(z)&&z[T]===!0}}function W(O){return O instanceof Map}function X(O){return O instanceof Set}function Q(O){var w=new Set;for(var T in O)w.add(T);return Object.getOwnPropertySymbols(O).forEach(function(z){Object.getOwnPropertyDescriptor(O,z).enumerable&&w.add(z)}),Array.from(w)}function te(O){return O&&O.toString?O.toString():new String(O).toString()}function Z(O){return O===null?null:typeof O=="object"?""+O:O}var J=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols?function(O){return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O))}:Object.getOwnPropertyNames,H=Symbol("mobx administration"),B=function(){function O(w){w===void 0&&(w="Atom@"+E()),this.name=w,this.isPendingUnobservation=!1,this.isBeingObserved=!1,this.observers=new Set,this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=lt.NOT_TRACKING}return O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.reportObserved=function(){return Ja(this)},O.prototype.reportChanged=function(){Dr(),function(w){w.lowestObserverState!==lt.STALE&&(w.lowestObserverState=lt.STALE,w.observers.forEach(function(T){T.dependenciesState===lt.UP_TO_DATE&&(T.isTracing!==fe.NONE&&fo(T,w),T.onBecomeStale()),T.dependenciesState=lt.STALE}))}(this),Fr()},O.prototype.toString=function(){return this.name},O}(),V=U("Atom",B);function Y(O,w,T){w===void 0&&(w=M),T===void 0&&(T=M);var z,ee=new B(O);return w!==M&&as("onBecomeObserved",ee,w,z),T!==M&&yn(ee,T),ee}var q={identity:function(O,w){return O===w},structural:function(O,w){return Ne(O,w)},default:function(O,w){return Object.is(O,w)},shallow:function(O,w){return Ne(O,w,1)}},ue=function(O,w){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,z){T.__proto__=z}||function(T,z){for(var ee in z)z.hasOwnProperty(ee)&&(T[ee]=z[ee])},ue(O,w)};/*! *****************************************************************************
- 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 xe=function(){return xe=Object.assign||function(O){for(var w,T=1,z=arguments.length;T<z;T++)for(var ee in w=arguments[T])Object.prototype.hasOwnProperty.call(w,ee)&&(O[ee]=w[ee]);return O},xe.apply(this,arguments)};function be(O){var w=typeof Symbol=="function"&&O[Symbol.iterator],T=0;return w?w.call(O):{next:function(){return O&&T>=O.length&&(O=void 0),{value:O&&O[T++],done:!O}}}}function Ae(O,w){var T=typeof Symbol=="function"&&O[Symbol.iterator];if(!T)return O;var z,ee,pe=T.call(O),Se=[];try{for(;(w===void 0||w-- >0)&&!(z=pe.next()).done;)Se.push(z.value)}catch($e){ee={error:$e}}finally{try{z&&!z.done&&(T=pe.return)&&T.call(pe)}finally{if(ee)throw ee.error}}return Se}function Fe(){for(var O=[],w=0;w<arguments.length;w++)O=O.concat(Ae(arguments[w]));return O}var je=Symbol("mobx did run lazy initializers"),ve=Symbol("mobx pending decorators"),Pe={},Te={};function We(O,w){var T=w?Pe:Te;return T[O]||(T[O]={configurable:!0,enumerable:w,get:function(){return it(this),this[O]},set:function(z){it(this),this[O]=z}})}function it(O){var w,T;if(O[je]!==!0){var z=O[ve];if(z){L(O,je,!0);var ee=Fe(Object.getOwnPropertySymbols(z),Object.keys(z));try{for(var pe=be(ee),Se=pe.next();!Se.done;Se=pe.next()){var $e=z[Se.value];$e.propertyCreator(O,$e.prop,$e.descriptor,$e.decoratorTarget,$e.decoratorArguments)}}catch(ct){w={error:ct}}finally{try{Se&&!Se.done&&(T=pe.return)&&T.call(pe)}finally{if(w)throw w.error}}}}}function xt(O,w){return function(){var T,z=function(ee,pe,Se,$e){if($e===!0)return w(ee,pe,Se,ee,T),null;if(!Object.prototype.hasOwnProperty.call(ee,ve)){var ct=ee[ve];L(ee,ve,xe({},ct))}return ee[ve][pe]={prop:pe,propertyCreator:w,descriptor:Se,decoratorTarget:ee,decoratorArguments:T},We(pe,O)};return Ye(arguments)?(T=b,z.apply(null,arguments)):(T=Array.prototype.slice.call(arguments),z)}}function Ye(O){return(O.length===2||O.length===3)&&(typeof O[1]=="string"||typeof O[1]=="symbol")||O.length===4&&O[3]===!0}function Je(O,w,T){return $i(O)?O:Array.isArray(O)?gt.array(O,{name:T}):N(O)?gt.object(O,void 0,{name:T}):W(O)?gt.map(O,{name:T}):X(O)?gt.set(O,{name:T}):O}function mt(O){return O}function se(O){P(O);var w=xt(!0,function(z,ee,pe,Se,$e){var ct=pe?pe.initializer?pe.initializer.call(z):pe.value:void 0;$r(z).addObservableProp(ee,ct,O)}),T=(d!==void 0&&d.env,w);return T.enhancer=O,T}var ce={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(O){return O==null?ce:typeof O=="string"?{name:O,deep:!0,proxy:!0}:O}Object.freeze(ce);var De=se(Je),Ue=se(function(O,w,T){return O==null||Lr(O)||Jr(O)||Vn(O)||Pr(O)?O:Array.isArray(O)?gt.array(O,{name:T,deep:!1}):N(O)?gt.object(O,void 0,{name:T,deep:!1}):W(O)?gt.map(O,{name:T,deep:!1}):X(O)?gt.set(O,{name:T,deep:!1}):S(!1)}),ze=se(mt),Et=se(function(O,w,T){return Ne(O,w)?w:O});function Rt(O){return O.defaultDecorator?O.defaultDecorator.enhancer:O.deep===!1?mt:Je}var At={box:function(O,w){arguments.length>2&&Me("box");var T=ge(w);return new zn(O,Rt(T),T.name,!0,T.equals)},array:function(O,w){arguments.length>2&&Me("array");var T=ge(w);return Sa(O,Rt(T),T.name)},map:function(O,w){arguments.length>2&&Me("map");var T=ge(w);return new ac(O,Rt(T),T.name)},set:function(O,w){arguments.length>2&&Me("set");var T=ge(w);return new Po(O,Rt(T),T.name)},object:function(O,w,T){typeof arguments[1]=="string"&&Me("object");var z=ge(T);if(z.proxy===!1)return Ho({},O,w,z);var ee=Zu(z),pe=Ho({},void 0,void 0,z),Se=Wi(pe);return us(Se,O,w,ee),Se},ref:ze,shallow:Ue,deep:De,struct:Et},gt=function(O,w,T){if(typeof arguments[1]=="string"||typeof arguments[1]=="symbol")return De.apply(null,arguments);if($i(O))return O;var z=N(O)?gt.object(O,w,T):Array.isArray(O)?gt.array(O,w):W(O)?gt.map(O,w):X(O)?gt.set(O,w):O;if(z!==O)return z;S(!1)};function Me(O){S("Expected one or two arguments to observable."+O+". Did you accidentally try to use observable."+O+" as decorator?")}Object.keys(At).forEach(function(O){return gt[O]=At[O]});var lt,fe,at=xt(!1,function(O,w,T,z,ee){var pe=T.get,Se=T.set,$e=ee[0]||{};$r(O).addComputedProp(O,w,xe({get:pe,set:Se,context:O},$e))}),$t=at({equals:q.structural}),hn=function(O,w,T){if(typeof w=="string"||O!==null&&typeof O=="object"&&arguments.length===1)return at.apply(null,arguments);var z=typeof w=="object"?w:{};return z.get=O,z.set=typeof w=="function"?w:z.set,z.name=z.name||O.name||"",new xo(z)};hn.struct=$t,function(O){O[O.NOT_TRACKING=-1]="NOT_TRACKING",O[O.UP_TO_DATE=0]="UP_TO_DATE",O[O.POSSIBLY_STALE=1]="POSSIBLY_STALE",O[O.STALE=2]="STALE"}(lt||(lt={})),function(O){O[O.NONE=0]="NONE",O[O.LOG=1]="LOG",O[O.BREAK=2]="BREAK"}(fe||(fe={}));var Wt=function(O){this.cause=O};function on(O){return O instanceof Wt}function _n(O){switch(O.dependenciesState){case lt.UP_TO_DATE:return!1;case lt.NOT_TRACKING:case lt.STALE:return!0;case lt.POSSIBLY_STALE:for(var w=Ve(!0),T=ae(),z=O.observing,ee=z.length,pe=0;pe<ee;pe++){var Se=z[pe];if(Go(Se)){if(ft.disableErrorBoundaries)Se.get();else try{Se.get()}catch{return _e(T),Ke(w),!0}if(O.dependenciesState===lt.STALE)return _e(T),Ke(w),!0}}return pt(O),_e(T),Ke(w),!1}}function Nn(){return ft.trackingDerivation!==null}function Bt(O){var w=O.observers.size>0;ft.computationDepth>0&&w&&S(!1),ft.allowStateChanges||!w&&ft.enforceActions!=="strict"||S(!1)}function Xn(O,w,T){var z=Ve(!0);pt(O),O.newObserving=new Array(O.observing.length+100),O.unboundDepsCount=0,O.runId=++ft.runId;var ee,pe=ft.trackingDerivation;if(ft.trackingDerivation=O,ft.disableErrorBoundaries===!0)ee=w.call(T);else try{ee=w.call(T)}catch(Se){ee=new Wt(Se)}return ft.trackingDerivation=pe,function(Se){for(var $e=Se.observing,ct=Se.observing=Se.newObserving,qt=lt.UP_TO_DATE,tt=0,On=Se.unboundDepsCount,Ut=0;Ut<On;Ut++)(fn=ct[Ut]).diffValue===0&&(fn.diffValue=1,tt!==Ut&&(ct[tt]=fn),tt++),fn.dependenciesState>qt&&(qt=fn.dependenciesState);for(ct.length=tt,Se.newObserving=null,On=$e.length;On--;)(fn=$e[On]).diffValue===0&&Gu(fn,Se),fn.diffValue=0;for(;tt--;){var fn;(fn=ct[tt]).diffValue===1&&(fn.diffValue=0,Wl(fn,Se))}qt!==lt.UP_TO_DATE&&(Se.dependenciesState=qt,Se.onBecomeStale())}(O),Ke(z),ee}function ne(O){var w=O.observing;O.observing=[];for(var T=w.length;T--;)Gu(w[T],O);O.dependenciesState=lt.NOT_TRACKING}function de(O){var w=ae();try{return O()}finally{_e(w)}}function ae(){var O=ft.trackingDerivation;return ft.trackingDerivation=null,O}function _e(O){ft.trackingDerivation=O}function Ve(O){var w=ft.allowStateReads;return ft.allowStateReads=O,w}function Ke(O){ft.allowStateReads=O}function pt(O){if(O.dependenciesState!==lt.UP_TO_DATE){O.dependenciesState=lt.UP_TO_DATE;for(var w=O.observing,T=w.length;T--;)w[T].lowestObserverState=lt.UP_TO_DATE}}var Vt=0,ir=1,yr=Object.getOwnPropertyDescriptor(function(){},"name");yr&&yr.configurable;function Yn(O,w,T){var z=function(){return Zn(O,w,T||this,arguments)};return z.isMobxAction=!0,z}function Zn(O,w,T,z){var ee=ut();try{return w.apply(T,z)}catch(pe){throw ee.error=pe,pe}finally{Ot(ee)}}function ut(O,w,T){var z=0,ee=ae();Dr();var pe={prevDerivation:ee,prevAllowStateChanges:zt(!0),prevAllowStateReads:Ve(!0),notifySpy:!1,startTime:z,actionId:ir++,parentActionId:Vt};return Vt=pe.actionId,pe}function Ot(O){Vt!==O.actionId&&S("invalid action stack. did you forget to finish an action?"),Vt=O.parentActionId,O.error!==void 0&&(ft.suppressReactionErrors=!0),bn(O.prevAllowStateChanges),Ke(O.prevAllowStateReads),Fr(),_e(O.prevDerivation),O.notifySpy,ft.suppressReactionErrors=!1}function St(O,w){var T,z=zt(O);try{T=w()}finally{bn(z)}return T}function zt(O){var w=ft.allowStateChanges;return ft.allowStateChanges=O,w}function bn(O){ft.allowStateChanges=O}var zn=function(O){function w(T,z,ee,pe,Se){ee===void 0&&(ee="ObservableValue@"+E()),Se===void 0&&(Se=q.default);var $e=O.call(this,ee)||this;return $e.enhancer=z,$e.name=ee,$e.equals=Se,$e.hasUnreportedChange=!1,$e.value=z(T,void 0,ee),$e}return function(T,z){function ee(){this.constructor=T}ue(T,z),T.prototype=z===null?Object.create(z):(ee.prototype=z.prototype,new ee)}(w,O),w.prototype.dehanceValue=function(T){return this.dehancer!==void 0?this.dehancer(T):T},w.prototype.set=function(T){this.value,(T=this.prepareNewValue(T))!==ft.UNCHANGED&&this.setNewValue(T)},w.prototype.prepareNewValue=function(T){if(Bt(this),Rr(this)){var z=an(this,{object:this,type:"update",newValue:T});if(!z)return ft.UNCHANGED;T=z.newValue}return T=this.enhancer(T,this.value,this.name),this.equals(this.value,T)?ft.UNCHANGED:T},w.prototype.setNewValue=function(T){var z=this.value;this.value=T,this.reportChanged(),Ir(this)&&fr(this,{type:"update",object:this,newValue:T,oldValue:z})},w.prototype.get=function(){return this.reportObserved(),this.dehanceValue(this.value)},w.prototype.intercept=function(T){return Yo(this,T)},w.prototype.observe=function(T,z){return z&&T({object:this,type:"update",newValue:this.value,oldValue:void 0}),jo(this,T)},w.prototype.toJSON=function(){return this.get()},w.prototype.toString=function(){return this.name+"["+this.value+"]"},w.prototype.valueOf=function(){return Z(this.get())},w.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},w}(B),Wo=U("ObservableValue",zn),xo=function(){function O(w){this.dependenciesState=lt.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=lt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+E(),this.value=new Wt(null),this.isComputing=!1,this.isRunningSetter=!1,this.isTracing=fe.NONE,P(w.get,"missing option for computed: get"),this.derivation=w.get,this.name=w.name||"ComputedValue@"+E(),w.set&&(this.setter=Yn(this.name+"-setter",w.set)),this.equals=w.equals||(w.compareStructural||w.struct?q.structural:q.default),this.scope=w.context,this.requiresReaction=!!w.requiresReaction,this.keepAlive=!!w.keepAlive}return O.prototype.onBecomeStale=function(){(function(w){w.lowestObserverState===lt.UP_TO_DATE&&(w.lowestObserverState=lt.POSSIBLY_STALE,w.observers.forEach(function(T){T.dependenciesState===lt.UP_TO_DATE&&(T.dependenciesState=lt.POSSIBLY_STALE,T.isTracing!==fe.NONE&&fo(T,w),T.onBecomeStale())}))})(this)},O.prototype.onBecomeObserved=function(){this.onBecomeObservedListeners&&this.onBecomeObservedListeners.forEach(function(w){return w()})},O.prototype.onBecomeUnobserved=function(){this.onBecomeUnobservedListeners&&this.onBecomeUnobservedListeners.forEach(function(w){return w()})},O.prototype.get=function(){this.isComputing&&S("Cycle detected in computation "+this.name+": "+this.derivation),ft.inBatch!==0||this.observers.size!==0||this.keepAlive?(Ja(this),_n(this)&&this.trackAndCompute()&&function(T){T.lowestObserverState!==lt.STALE&&(T.lowestObserverState=lt.STALE,T.observers.forEach(function(z){z.dependenciesState===lt.POSSIBLY_STALE?z.dependenciesState=lt.STALE:z.dependenciesState===lt.UP_TO_DATE&&(T.lowestObserverState=lt.UP_TO_DATE)}))}(this)):_n(this)&&(this.warnAboutUntrackedRead(),Dr(),this.value=this.computeValue(!1),Fr());var w=this.value;if(on(w))throw w.cause;return w},O.prototype.peek=function(){var w=this.computeValue(!1);if(on(w))throw w.cause;return w},O.prototype.set=function(w){if(this.setter){P(!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,w)}finally{this.isRunningSetter=!1}}else P(!1,!1)},O.prototype.trackAndCompute=function(){var w=this.value,T=this.dependenciesState===lt.NOT_TRACKING,z=this.computeValue(!0),ee=T||on(w)||on(z)||!this.equals(w,z);return ee&&(this.value=z),ee},O.prototype.computeValue=function(w){var T;if(this.isComputing=!0,ft.computationDepth++,w)T=Xn(this,this.derivation,this.scope);else if(ft.disableErrorBoundaries===!0)T=this.derivation.call(this.scope);else try{T=this.derivation.call(this.scope)}catch(z){T=new Wt(z)}return ft.computationDepth--,this.isComputing=!1,T},O.prototype.suspend=function(){this.keepAlive||(ne(this),this.value=void 0)},O.prototype.observe=function(w,T){var z=this,ee=!0,pe=void 0;return qu(function(){var Se=z.get();if(!ee||T){var $e=ae();w({type:"update",object:z,newValue:Se,oldValue:pe}),_e($e)}ee=!1,pe=Se})},O.prototype.warnAboutUntrackedRead=function(){},O.prototype.toJSON=function(){return this.get()},O.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},O.prototype.valueOf=function(){return Z(this.get())},O.prototype[Symbol.toPrimitive]=function(){return this.valueOf()},O}(),Go=U("ComputedValue",xo),zi=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},$l={};function Wu(){return typeof window!="undefined"?window:h!==void 0?h:typeof self!="undefined"?self:$l}var qr=!0,wa=!1,ft=function(){var O=Wu();return O.__mobxInstanceCount>0&&!O.__mobxGlobals&&(qr=!1),O.__mobxGlobals&&O.__mobxGlobals.version!==new zi().version&&(qr=!1),qr?O.__mobxGlobals?(O.__mobxInstanceCount+=1,O.__mobxGlobals.UNCHANGED||(O.__mobxGlobals.UNCHANGED={}),O.__mobxGlobals):(O.__mobxInstanceCount=1,O.__mobxGlobals=new zi):(setTimeout(function(){wa||S("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")},1),new zi)}();function Wl(O,w){O.observers.add(w),O.lowestObserverState>w.dependenciesState&&(O.lowestObserverState=w.dependenciesState)}function Gu(O,w){O.observers.delete(w),O.observers.size===0&&Uu(O)}function Uu(O){O.isPendingUnobservation===!1&&(O.isPendingUnobservation=!0,ft.pendingUnobservations.push(O))}function Dr(){ft.inBatch++}function Fr(){if(--ft.inBatch==0){Xu();for(var O=ft.pendingUnobservations,w=0;w<O.length;w++){var T=O[w];T.isPendingUnobservation=!1,T.observers.size===0&&(T.isBeingObserved&&(T.isBeingObserved=!1,T.onBecomeUnobserved()),T instanceof xo&&T.suspend())}ft.pendingUnobservations=[]}}function Ja(O){var w=ft.trackingDerivation;return w!==null?(w.runId!==O.lastAccessedBy&&(O.lastAccessedBy=w.runId,w.newObserving[w.unboundDepsCount++]=O,O.isBeingObserved||(O.isBeingObserved=!0,O.onBecomeObserved())),!0):(O.observers.size===0&&ft.inBatch>0&&Uu(O),!1)}function fo(O,w){if(O.isTracing===fe.BREAK){var T=[];Zr(Un(O),T,1),new Function(`debugger;
- /*
- Tracing '`+O.name+`'
- You are entering this break point because derivation '`+O.name+"' is being traced and '"+w.name+`' is now forcing it to update.
- Just follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update
- The stackframe you are looking for is at least ~6-8 stack-frames up.
- `+(O instanceof xo?O.derivation.toString().replace(/[*]\//g,"/"):"")+`
- The dependencies for this derivation are:
- `+T.join(`
- `)+`
- */
- `)()}}function Zr(O,w,T){w.length>=1e3?w.push("(and many more)"):(w.push(""+new Array(T).join(" ")+O.name),O.dependencies&&O.dependencies.forEach(function(z){return Zr(z,w,T+1)}))}var po=function(){function O(w,T,z,ee){w===void 0&&(w="Reaction@"+E()),ee===void 0&&(ee=!1),this.name=w,this.onInvalidate=T,this.errorHandler=z,this.requiresObservable=ee,this.observing=[],this.newObserving=[],this.dependenciesState=lt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+E(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=fe.NONE}return O.prototype.onBecomeStale=function(){this.schedule()},O.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,ft.pendingReactions.push(this),Xu())},O.prototype.isScheduled=function(){return this._isScheduled},O.prototype.runReaction=function(){if(!this.isDisposed){if(Dr(),this._isScheduled=!1,_n(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending}catch(w){this.reportExceptionInDerivation(w)}}Fr()}},O.prototype.track=function(w){if(!this.isDisposed){Dr(),this._isRunning=!0;var T=Xn(this,w,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&ne(this),on(T)&&this.reportExceptionInDerivation(T.cause),Fr()}},O.prototype.reportExceptionInDerivation=function(w){var T=this;if(this.errorHandler)this.errorHandler(w,this);else{if(ft.disableErrorBoundaries)throw w;ft.suppressReactionErrors,ft.globalReactionErrorHandlers.forEach(function(z){return z(w,T)})}},O.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Dr(),ne(this),Fr()))},O.prototype.getDisposer=function(){var w=this.dispose.bind(this);return w[H]=this,w},O.prototype.toString=function(){return"Reaction["+this.name+"]"},O.prototype.trace=function(w){w===void 0&&(w=!1),function(){for(var T=[],z=0;z<arguments.length;z++)T[z]=arguments[z];var ee=!1;typeof T[T.length-1]=="boolean"&&(ee=T.pop());var pe=ln(T);if(!pe)return S(!1);pe.isTracing,fe.NONE,pe.isTracing=ee?fe.BREAK:fe.LOG}(this,w)},O}(),Hu=function(O){return O()};function Xu(){ft.inBatch>0||ft.isRunningReactions||Hu(ns)}function ns(){ft.isRunningReactions=!0;for(var O=ft.pendingReactions,w=0;O.length>0;){++w==100&&O.splice(0);for(var T=O.splice(0),z=0,ee=T.length;z<ee;z++)T[z].runReaction()}ft.isRunningReactions=!1}var xa=U("Reaction",po);function rs(O){var w=Hu;Hu=function(T){return O(function(){return w(T)})}}function Yu(O){return function(){}}function Gl(){S(!1)}function pi(O){return function(w,T,z){if(z){if(z.value)return{value:Yn(O,z.value),enumerable:!1,configurable:!0,writable:!0};var ee=z.initializer;return{enumerable:!1,configurable:!0,writable:!0,initializer:function(){return Yn(O,ee.call(this))}}}return os(O).apply(this,arguments)}}function os(O){return function(w,T,z){Object.defineProperty(w,T,{configurable:!0,enumerable:!1,get:function(){},set:function(ee){L(this,T,Uo(O,ee))}})}}var Uo=function(O,w,T,z){return arguments.length===1&&typeof O=="function"?Yn(O.name||"<unnamed action>",O):arguments.length===2&&typeof w=="function"?Yn(O,w):arguments.length===1&&typeof O=="string"?pi(O):z!==!0?pi(w).apply(null,arguments):void L(O,w,Yn(O.name||w,T.value,this))};function Vu(O,w){return Zn(typeof O=="string"?O:O.name||"<unnamed action>",typeof O=="function"?O:w,this,void 0)}function Qa(O){return typeof O=="function"&&O.isMobxAction===!0}function Ku(O,w,T){L(O,w,Yn(w,T.bind(O)))}function qu(O,w){w===void 0&&(w=g);var T,z=w&&w.name||O.name||"Autorun@"+E();if(!w.scheduler&&!w.delay)T=new po(z,function(){this.track(Se)},w.onError,w.requiresObservable);else{var ee=is(w),pe=!1;T=new po(z,function(){pe||(pe=!0,ee(function(){pe=!1,T.isDisposed||T.track(Se)}))},w.onError,w.requiresObservable)}function Se(){O(T)}return T.schedule(),T.getDisposer()}Uo.bound=function(O,w,T,z){return z===!0?(Ku(O,w,T.value),null):T?{configurable:!0,enumerable:!1,get:function(){return Ku(this,w,T.value||T.initializer.call(this)),this[w]},set:Gl}:{enumerable:!1,configurable:!0,set:function(ee){Ku(this,w,ee)},get:function(){}}};var Ul=function(O){return O()};function is(O){return O.scheduler?O.scheduler:O.delay?function(w){return setTimeout(w,O.delay)}:Ul}function vn(O,w,T){T===void 0&&(T=g);var z,ee,pe,Se=T.name||"Reaction@"+E(),$e=Uo(Se,T.onError?(z=T.onError,ee=w,function(){try{return ee.apply(this,arguments)}catch(Rn){z.call(this,Rn)}}):w),ct=!T.scheduler&&!T.delay,qt=is(T),tt=!0,On=!1,Ut=T.compareStructural?q.structural:T.equals||q.default,fn=new po(Se,function(){tt||ct?eo():On||(On=!0,qt(eo))},T.onError,T.requiresObservable);function eo(){if(On=!1,!fn.isDisposed){var Rn=!1;fn.track(function(){var Br=O(fn);Rn=tt||!Ut(pe,Br),pe=Br}),tt&&T.fireImmediately&&$e(pe,fn),tt||Rn!==!0||$e(pe,fn),tt&&(tt=!1)}}return fn.schedule(),fn.getDisposer()}function yn(O,w,T){return as("onBecomeUnobserved",O,w,T)}function as(O,w,T,z){var ee=typeof z=="function"?Qr(w,T):Qr(w),pe=typeof z=="function"?z:T,Se=O+"Listeners";return ee[Se]?ee[Se].add(pe):ee[Se]=new Set([pe]),typeof ee[O]!="function"?S(!1):function(){var $e=ee[Se];$e&&($e.delete(pe),$e.size===0&&delete ee[Se])}}function Fi(O){var w=O.enforceActions,T=O.computedRequiresReaction,z=O.computedConfigurable,ee=O.disableErrorBoundaries,pe=O.reactionScheduler,Se=O.reactionRequiresObservable,$e=O.observableRequiresReaction;if(O.isolateGlobalState===!0&&((ft.pendingReactions.length||ft.inBatch||ft.isRunningReactions)&&S("isolateGlobalState should be called before MobX is running any reactions"),wa=!0,qr&&(--Wu().__mobxInstanceCount==0&&(Wu().__mobxGlobals=void 0),ft=new zi)),w!==void 0){var ct=void 0;switch(w){case!0:case"observed":ct=!0;break;case!1:case"never":ct=!1;break;case"strict":case"always":ct="strict";break;default:S("Invalid value for 'enforceActions': '"+w+"', expected 'never', 'always' or 'observed'")}ft.enforceActions=ct,ft.allowStateChanges=ct!==!0&&ct!=="strict"}T!==void 0&&(ft.computedRequiresReaction=!!T),Se!==void 0&&(ft.reactionRequiresObservable=!!Se),$e!==void 0&&(ft.observableRequiresReaction=!!$e,ft.allowStateReads=!ft.observableRequiresReaction),z!==void 0&&(ft.computedConfigurable=!!z),ee!==void 0&&(ft.disableErrorBoundaries=!!ee),pe&&rs(pe)}function Ho(O,w,T,z){var ee=Zu(z=ge(z));return it(O),$r(O,z.name,ee.enhancer),w&&us(O,w,T,ee),O}function Zu(O){return O.defaultDecorator||(O.deep===!1?ze:De)}function us(O,w,T,z){var ee,pe;Dr();try{var Se=J(w);try{for(var $e=be(Se),ct=$e.next();!ct.done;ct=$e.next()){var qt=ct.value,tt=Object.getOwnPropertyDescriptor(w,qt),On=(T&&qt in T?T[qt]:tt.get?at:z)(O,qt,tt,!0);On&&Object.defineProperty(O,qt,On)}}catch(Ut){ee={error:Ut}}finally{try{ct&&!ct.done&&(pe=$e.return)&&pe.call($e)}finally{if(ee)throw ee.error}}}finally{Fr()}}function Un(O,w){return Ju(Qr(O,w))}function Ju(O){var w,T,z={name:O.name};return O.observing&&O.observing.length>0&&(z.dependencies=(w=O.observing,T=[],w.forEach(function(ee){T.indexOf(ee)===-1&&T.push(ee)}),T).map(Ju)),z}var Ea=0;function Qu(){this.message="FLOW_CANCELLED"}function eu(O){arguments.length!==1&&S("Flow expects 1 argument and cannot be used as decorator");var w=O.name||"<unnamed flow>";return function(){var T,z=this,ee=arguments,pe=++Ea,Se=Uo(w+" - runid: "+pe+" - init",O).apply(z,ee),$e=void 0,ct=new Promise(function(qt,tt){var On=0;function Ut(Rn){var Br;$e=void 0;try{Br=Uo(w+" - runid: "+pe+" - yield "+On++,Se.next).call(Se,Rn)}catch(Ko){return tt(Ko)}eo(Br)}function fn(Rn){var Br;$e=void 0;try{Br=Uo(w+" - runid: "+pe+" - yield "+On++,Se.throw).call(Se,Rn)}catch(Ko){return tt(Ko)}eo(Br)}function eo(Rn){if(!Rn||typeof Rn.then!="function")return Rn.done?qt(Rn.value):($e=Promise.resolve(Rn.value)).then(Ut,fn);Rn.then(eo,tt)}T=tt,Ut(void 0)});return ct.cancel=Uo(w+" - runid: "+pe+" - cancel",function(){try{$e&&vr($e);var qt=Se.return(void 0),tt=Promise.resolve(qt.value);tt.then(M,M),vr(tt),T(new Qu)}catch(On){T(On)}}),ct}}function vr(O){typeof O.cancel=="function"&&O.cancel()}function ec(O,w){if(O==null)return!1;if(w!==void 0){if(Lr(O)===!1||!O[H].values.has(w))return!1;var T=Qr(O,w);return Go(T)}return Go(O)}function cs(O){return arguments.length>1?S(!1):ec(O)}function tc(O,w){return typeof w!="string"?S(!1):ec(O,w)}function tu(O,w){return O!=null&&(w!==void 0?!!Lr(O)&&O[H].values.has(w):Lr(O)||!!O[H]||V(O)||xa(O)||Go(O))}function $i(O){return arguments.length!==1&&S(!1),tu(O)}function Eo(O){return Lr(O)?O[H].getKeys():Vn(O)||Pr(O)?Array.from(O.keys()):Jr(O)?O.map(function(w,T){return T}):S(!1)}function jn(O){return Lr(O)?Eo(O).map(function(w){return O[w]}):Vn(O)?Eo(O).map(function(w){return O.get(w)}):Pr(O)?Array.from(O.values()):Jr(O)?O.slice():S(!1)}function ss(O){return Lr(O)?Eo(O).map(function(w){return[w,O[w]]}):Vn(O)?Eo(O).map(function(w){return[w,O.get(w)]}):Pr(O)?Array.from(O.entries()):Jr(O)?O.map(function(w,T){return[T,w]}):S(!1)}function Nr(O,w,T){if(arguments.length!==2||Pr(O))if(Lr(O)){var z=O[H],ee=z.values.get(w);ee?z.write(w,T):z.addObservableProp(w,T,z.defaultEnhancer)}else if(Vn(O))O.set(w,T);else if(Pr(O))O.add(w);else{if(!Jr(O))return S(!1);typeof w!="number"&&(w=parseInt(w,10)),P(w>=0,"Not a valid index: '"+w+"'"),Dr(),w>=O.length&&(O.length=w+1),O[w]=T,Fr()}else{Dr();var pe=w;try{for(var Se in pe)Nr(O,Se,pe[Se])}finally{Fr()}}}function ls(O,w,T,z){return typeof T=="function"?function(ee,pe,Se,$e){return To(ee,pe).observe(Se,$e)}(O,w,T,z):function(ee,pe,Se){return To(ee).observe(pe,Se)}(O,w,T)}Qu.prototype=Object.create(Error.prototype);var fs={detectCycles:!0,exportMapsAsObjects:!0,recurseEverything:!1};function jr(O,w,T,z){return z.detectCycles&&O.set(w,T),T}function Cr(O,w,T){if(!w.recurseEverything&&!$i(O)||typeof O!="object")return O;if(O===null)return null;if(O instanceof Date)return O;if(Wo(O))return Cr(O.get(),w,T);if($i(O)&&Eo(O),w.detectCycles===!0&&O!==null&&T.has(O))return T.get(O);if(Jr(O)||Array.isArray(O)){var z=jr(T,O,[],w),ee=O.map(function(Ut){return Cr(Ut,w,T)});z.length=ee.length;for(var pe=0,Se=ee.length;pe<Se;pe++)z[pe]=ee[pe];return z}if(Pr(O)||Object.getPrototypeOf(O)===Set.prototype){if(w.exportMapsAsObjects===!1){var $e=jr(T,O,new Set,w);return O.forEach(function(Ut){$e.add(Cr(Ut,w,T))}),$e}var ct=jr(T,O,[],w);return O.forEach(function(Ut){ct.push(Cr(Ut,w,T))}),ct}if(Vn(O)||Object.getPrototypeOf(O)===Map.prototype){if(w.exportMapsAsObjects===!1){var qt=jr(T,O,new Map,w);return O.forEach(function(Ut,fn){qt.set(fn,Cr(Ut,w,T))}),qt}var tt=jr(T,O,{},w);return O.forEach(function(Ut,fn){tt[fn]=Cr(Ut,w,T)}),tt}var On=jr(T,O,{},w);return Q(O).forEach(function(Ut){On[Ut]=Cr(O[Ut],w,T)}),On}function nc(O,w){var T;return typeof w=="boolean"&&(w={detectCycles:w}),w||(w=fs),w.detectCycles=w.detectCycles===void 0?w.recurseEverything===!0:w.detectCycles===!0,w.detectCycles&&(T=new Map),Cr(O,w,T)}function ln(O){switch(O.length){case 0:return ft.trackingDerivation;case 1:return Qr(O[0]);case 2:return Qr(O[0],O[1])}}function ar(O,w){w===void 0&&(w=void 0),Dr();try{return O.apply(w)}finally{Fr()}}function nu(O,w,T){return arguments.length===1||w&&typeof w=="object"?rc(O,w):ps(O,w,T||{})}function ps(O,w,T){var z;typeof T.timeout=="number"&&(z=setTimeout(function(){if(!pe[H].isDisposed){pe();var Se=new Error("WHEN_TIMEOUT");if(!T.onError)throw Se;T.onError(Se)}},T.timeout)),T.name=T.name||"When@"+E();var ee=Yn(T.name+"-effect",w),pe=qu(function(Se){O()&&(Se.dispose(),z&&clearTimeout(z),ee())},T);return pe}function rc(O,w){var T,z=new Promise(function(ee,pe){var Se=ps(O,ee,xe(xe({},w),{onError:pe}));T=function(){Se(),pe("WHEN_CANCELLED")}});return z.cancel=T,z}function ru(O){return O[H]}function So(O){return typeof O=="string"||typeof O=="number"||typeof O=="symbol"}var Xo={has:function(O,w){if(w===H||w==="constructor"||w===je)return!0;var T=ru(O);return So(w)?T.has(w):w in O},get:function(O,w){if(w===H||w==="constructor"||w===je)return O[w];var T=ru(O),z=T.values.get(w);if(z instanceof B){var ee=z.get();return ee===void 0&&T.has(w),ee}return So(w)&&T.has(w),O[w]},set:function(O,w,T){return!!So(w)&&(Nr(O,w,T),!0)},deleteProperty:function(O,w){return!!So(w)&&(ru(O).remove(w),!0)},ownKeys:function(O){return ru(O).keysAtom.reportObserved(),Reflect.ownKeys(O)},preventExtensions:function(O){return S("Dynamic observable objects cannot be frozen"),!1}};function Wi(O){var w=new Proxy(O,Xo);return O[H].proxy=w,w}function Rr(O){return O.interceptors!==void 0&&O.interceptors.length>0}function Yo(O,w){var T=O.interceptors||(O.interceptors=[]);return T.push(w),k(function(){var z=T.indexOf(w);z!==-1&&T.splice(z,1)})}function an(O,w){var T=ae();try{for(var z=Fe(O.interceptors||[]),ee=0,pe=z.length;ee<pe&&(P(!(w=z[ee](w))||w.type,"Intercept handlers should return nothing or a change object"),w);ee++);return w}finally{_e(T)}}function Ir(O){return O.changeListeners!==void 0&&O.changeListeners.length>0}function jo(O,w){var T=O.changeListeners||(O.changeListeners=[]);return T.push(w),k(function(){var z=T.indexOf(w);z!==-1&&T.splice(z,1)})}function fr(O,w){var T=ae(),z=O.changeListeners;if(z){for(var ee=0,pe=(z=z.slice()).length;ee<pe;ee++)z[ee](w);_e(T)}}var ou={get:function(O,w){return w===H?O[H]:w==="length"?O[H].getArrayLength():typeof w=="number"?Fn.get.call(O,w):typeof w!="string"||isNaN(w)?Fn.hasOwnProperty(w)?Fn[w]:O[w]:Fn.get.call(O,parseInt(w))},set:function(O,w,T){return w==="length"&&O[H].setArrayLength(T),typeof w=="number"&&Fn.set.call(O,w,T),typeof w=="symbol"||isNaN(w)?O[w]=T:Fn.set.call(O,parseInt(w),T),!0},preventExtensions:function(O){return S("Observable arrays cannot be frozen"),!1}};function Sa(O,w,T,z){T===void 0&&(T="ObservableArray@"+E()),z===void 0&&(z=!1);var ee,pe,Se,$e=new oc(T,w,z);ee=$e.values,pe=H,Se=$e,Object.defineProperty(ee,pe,{enumerable:!1,writable:!1,configurable:!0,value:Se});var ct=new Proxy($e.values,ou);if($e.proxy=ct,O&&O.length){var qt=zt(!0);$e.spliceWithArray(0,0,O),bn(qt)}return ct}var oc=function(){function O(w,T,z){this.owned=z,this.values=[],this.proxy=void 0,this.lastKnownLength=0,this.atom=new B(w||"ObservableArray@"+E()),this.enhancer=function(ee,pe){return T(ee,pe,w+"[..]")}}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.dehanceValues=function(w){return this.dehancer!==void 0&&w.length>0?w.map(this.dehancer):w},O.prototype.intercept=function(w){return Yo(this,w)},O.prototype.observe=function(w,T){return T===void 0&&(T=!1),T&&w({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),jo(this,w)},O.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},O.prototype.setArrayLength=function(w){if(typeof w!="number"||w<0)throw new Error("[mobx.array] Out of range: "+w);var T=this.values.length;if(w!==T)if(w>T){for(var z=new Array(w-T),ee=0;ee<w-T;ee++)z[ee]=void 0;this.spliceWithArray(T,0,z)}else this.spliceWithArray(w,T-w)},O.prototype.updateArrayLength=function(w,T){if(w!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed.");this.lastKnownLength+=T},O.prototype.spliceWithArray=function(w,T,z){var ee=this;Bt(this.atom);var pe=this.values.length;if(w===void 0?w=0:w>pe?w=pe:w<0&&(w=Math.max(0,pe+w)),T=arguments.length===1?pe-w:T==null?0:Math.max(0,Math.min(T,pe-w)),z===void 0&&(z=b),Rr(this)){var Se=an(this,{object:this.proxy,type:"splice",index:w,removedCount:T,added:z});if(!Se)return b;T=Se.removedCount,z=Se.added}z=z.length===0?z:z.map(function(ct){return ee.enhancer(ct,void 0)});var $e=this.spliceItemsIntoValues(w,T,z);return T===0&&z.length===0||this.notifyArraySplice(w,z,$e),this.dehanceValues($e)},O.prototype.spliceItemsIntoValues=function(w,T,z){var ee;if(z.length<1e4)return(ee=this.values).splice.apply(ee,Fe([w,T],z));var pe=this.values.slice(w,w+T);return this.values=this.values.slice(0,w).concat(z,this.values.slice(w+T)),pe},O.prototype.notifyArrayChildUpdate=function(w,T,z){var ee=!this.owned&&!1,pe=Ir(this),Se=pe||ee?{object:this.proxy,type:"update",index:w,newValue:T,oldValue:z}:null;this.atom.reportChanged(),pe&&fr(this,Se)},O.prototype.notifyArraySplice=function(w,T,z){var ee=!this.owned&&!1,pe=Ir(this),Se=pe||ee?{object:this.proxy,type:"splice",index:w,removed:z,added:T,removedCount:z.length,addedCount:T.length}:null;this.atom.reportChanged(),pe&&fr(this,Se)},O}(),Fn={intercept:function(O){return this[H].intercept(O)},observe:function(O,w){return w===void 0&&(w=!1),this[H].observe(O,w)},clear:function(){return this.splice(0)},replace:function(O){var w=this[H];return w.spliceWithArray(0,w.values.length,O)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(O,w){for(var T=[],z=2;z<arguments.length;z++)T[z-2]=arguments[z];var ee=this[H];switch(arguments.length){case 0:return[];case 1:return ee.spliceWithArray(O);case 2:return ee.spliceWithArray(O,w)}return ee.spliceWithArray(O,w,T)},spliceWithArray:function(O,w,T){return this[H].spliceWithArray(O,w,T)},push:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var T=this[H];return T.spliceWithArray(T.values.length,0,O),T.values.length},pop:function(){return this.splice(Math.max(this[H].values.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var O=[],w=0;w<arguments.length;w++)O[w]=arguments[w];var T=this[H];return T.spliceWithArray(0,0,O),T.values.length},reverse:function(){var O=this.slice();return O.reverse.apply(O,arguments)},sort:function(O){var w=this.slice();return w.sort.apply(w,arguments)},remove:function(O){var w=this[H],T=w.dehanceValues(w.values).indexOf(O);return T>-1&&(this.splice(T,1),!0)},get:function(O){var w=this[H];if(w&&O<w.values.length)return w.atom.reportObserved(),w.dehanceValue(w.values[O])},set:function(O,w){var T=this[H],z=T.values;if(O<z.length){Bt(T.atom);var ee=z[O];if(Rr(T)){var pe=an(T,{type:"update",object:T.proxy,index:O,newValue:w});if(!pe)return;w=pe.newValue}(w=T.enhancer(w,ee))!==ee&&(z[O]=w,T.notifyArrayChildUpdate(O,w,ee))}else{if(O!==z.length)throw new Error("[mobx.array] Index out of bounds, "+O+" is larger than "+z.length);T.spliceWithArray(O,0,[w])}}};["concat","flat","includes","indexOf","join","lastIndexOf","slice","toString","toLocaleString"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Fn[O]=function(){var w=this[H];w.atom.reportObserved();var T=w.dehanceValues(w.values);return T[O].apply(T,arguments)})}),["every","filter","find","findIndex","flatMap","forEach","map","some"].forEach(function(O){typeof Array.prototype[O]=="function"&&(Fn[O]=function(w,T){var z=this,ee=this[H];return ee.atom.reportObserved(),ee.dehanceValues(ee.values)[O](function(pe,Se){return w.call(T,pe,Se,z)},T)})}),["reduce","reduceRight"].forEach(function(O){Fn[O]=function(){var w=this,T=this[H];T.atom.reportObserved();var z=arguments[0];return arguments[0]=function(ee,pe,Se){return pe=T.dehanceValue(pe),z(ee,pe,Se,w)},T.values[O].apply(T.values,arguments)}});var iu,Vo=U("ObservableArrayAdministration",oc);function Jr(O){return C(O)&&Vo(O[H])}var ic,Hl={},ac=function(){function O(w,T,z){if(T===void 0&&(T=Je),z===void 0&&(z="ObservableMap@"+E()),this.enhancer=T,this.name=z,this[iu]=Hl,this._keysAtom=Y(this.name+".keys()"),this[Symbol.toStringTag]="Map",typeof Map!="function")throw new Error("mobx.map requires Map polyfill for the current browser. Check babel-polyfill or core-js/es6/map.js");this._data=new Map,this._hasMap=new Map,this.merge(w)}return O.prototype._has=function(w){return this._data.has(w)},O.prototype.has=function(w){var T=this;if(!ft.trackingDerivation)return this._has(w);var z=this._hasMap.get(w);if(!z){var ee=z=new zn(this._has(w),mt,this.name+"."+te(w)+"?",!1);this._hasMap.set(w,ee),yn(ee,function(){return T._hasMap.delete(w)})}return z.get()},O.prototype.set=function(w,T){var z=this._has(w);if(Rr(this)){var ee=an(this,{type:z?"update":"add",object:this,newValue:T,name:w});if(!ee)return this;T=ee.newValue}return z?this._updateValue(w,T):this._addValue(w,T),this},O.prototype.delete=function(w){var T=this;if(Bt(this._keysAtom),Rr(this)&&!(ee=an(this,{type:"delete",object:this,name:w})))return!1;if(this._has(w)){var z=Ir(this),ee=z?{type:"delete",object:this,oldValue:this._data.get(w).value,name:w}:null;return ar(function(){T._keysAtom.reportChanged(),T._updateHasMapEntry(w,!1),T._data.get(w).setNewValue(void 0),T._data.delete(w)}),z&&fr(this,ee),!0}return!1},O.prototype._updateHasMapEntry=function(w,T){var z=this._hasMap.get(w);z&&z.setNewValue(T)},O.prototype._updateValue=function(w,T){var z=this._data.get(w);if((T=z.prepareNewValue(T))!==ft.UNCHANGED){var ee=Ir(this),pe=ee?{type:"update",object:this,oldValue:z.value,name:w,newValue:T}:null;z.setNewValue(T),ee&&fr(this,pe)}},O.prototype._addValue=function(w,T){var z=this;Bt(this._keysAtom),ar(function(){var Se=new zn(T,z.enhancer,z.name+"."+te(w),!1);z._data.set(w,Se),T=Se.value,z._updateHasMapEntry(w,!0),z._keysAtom.reportChanged()});var ee=Ir(this),pe=ee?{type:"add",object:this,name:w,newValue:T}:null;ee&&fr(this,pe)},O.prototype.get=function(w){return this.has(w)?this.dehanceValue(this._data.get(w).get()):this.dehanceValue(void 0)},O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.keys=function(){return this._keysAtom.reportObserved(),this._data.keys()},O.prototype.values=function(){var w=this,T=this.keys();return en({next:function(){var z=T.next(),ee=z.done,pe=z.value;return{done:ee,value:ee?void 0:w.get(pe)}}})},O.prototype.entries=function(){var w=this,T=this.keys();return en({next:function(){var z=T.next(),ee=z.done,pe=z.value;return{done:ee,value:ee?void 0:[pe,w.get(pe)]}}})},O.prototype[iu=H,Symbol.iterator]=function(){return this.entries()},O.prototype.forEach=function(w,T){var z,ee;try{for(var pe=be(this),Se=pe.next();!Se.done;Se=pe.next()){var $e=Ae(Se.value,2),ct=$e[0],qt=$e[1];w.call(T,qt,ct,this)}}catch(tt){z={error:tt}}finally{try{Se&&!Se.done&&(ee=pe.return)&&ee.call(pe)}finally{if(z)throw z.error}}},O.prototype.merge=function(w){var T=this;return Vn(w)&&(w=w.toJS()),ar(function(){var z=zt(!0);try{N(w)?Q(w).forEach(function(ee){return T.set(ee,w[ee])}):Array.isArray(w)?w.forEach(function(ee){var pe=Ae(ee,2),Se=pe[0],$e=pe[1];return T.set(Se,$e)}):W(w)?(w.constructor!==Map&&S("Cannot initialize from classes that inherit from Map: "+w.constructor.name),w.forEach(function(ee,pe){return T.set(pe,ee)})):w!=null&&S("Cannot initialize map from "+w)}finally{bn(z)}}),this},O.prototype.clear=function(){var w=this;ar(function(){de(function(){var T,z;try{for(var ee=be(w.keys()),pe=ee.next();!pe.done;pe=ee.next()){var Se=pe.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{pe&&!pe.done&&(z=ee.return)&&z.call(ee)}finally{if(T)throw T.error}}})})},O.prototype.replace=function(w){var T=this;return ar(function(){var z,ee,pe,Se,$e=function(Ar){if(W(Ar)||Vn(Ar))return Ar;if(Array.isArray(Ar))return new Map(Ar);if(N(Ar)){var Pa=new Map;for(var Gi in Ar)Pa.set(Gi,Ar[Gi]);return Pa}return S("Cannot convert to map from '"+Ar+"'")}(w),ct=new Map,qt=!1;try{for(var tt=be(T._data.keys()),On=tt.next();!On.done;On=tt.next()){var Ut=On.value;if(!$e.has(Ut))if(T.delete(Ut))qt=!0;else{var fn=T._data.get(Ut);ct.set(Ut,fn)}}}catch(Ar){z={error:Ar}}finally{try{On&&!On.done&&(ee=tt.return)&&ee.call(tt)}finally{if(z)throw z.error}}try{for(var eo=be($e.entries()),Rn=eo.next();!Rn.done;Rn=eo.next()){var Br=Ae(Rn.value,2),Ko=(Ut=Br[0],fn=Br[1],T._data.has(Ut));if(T.set(Ut,fn),T._data.has(Ut)){var qo=T._data.get(Ut);ct.set(Ut,qo),Ko||(qt=!0)}}}catch(Ar){pe={error:Ar}}finally{try{Rn&&!Rn.done&&(Se=eo.return)&&Se.call(eo)}finally{if(pe)throw pe.error}}if(!qt)if(T._data.size!==ct.size)T._keysAtom.reportChanged();else for(var ja=T._data.keys(),cc=ct.keys(),yi=ja.next(),uu=cc.next();!yi.done;){if(yi.value!==uu.value){T._keysAtom.reportChanged();break}yi=ja.next(),uu=cc.next()}T._data=ct}),this},Object.defineProperty(O.prototype,"size",{get:function(){return this._keysAtom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.toPOJO=function(){var w,T,z={};try{for(var ee=be(this),pe=ee.next();!pe.done;pe=ee.next()){var Se=Ae(pe.value,2),$e=Se[0],ct=Se[1];z[typeof $e=="symbol"?$e:te($e)]=ct}}catch(qt){w={error:qt}}finally{try{pe&&!pe.done&&(T=ee.return)&&T.call(ee)}finally{if(w)throw w.error}}return z},O.prototype.toJS=function(){return new Map(this)},O.prototype.toJSON=function(){return this.toPOJO()},O.prototype.toString=function(){var w=this;return this.name+"[{ "+Array.from(this.keys()).map(function(T){return te(T)+": "+w.get(T)}).join(", ")+" }]"},O.prototype.observe=function(w,T){return jo(this,w)},O.prototype.intercept=function(w){return Yo(this,w)},O}(),Vn=U("ObservableMap",ac),di={},Po=function(){function O(w,T,z){if(T===void 0&&(T=Je),z===void 0&&(z="ObservableSet@"+E()),this.name=z,this[ic]=di,this._data=new Set,this._atom=Y(this.name),this[Symbol.toStringTag]="Set",typeof Set!="function")throw new Error("mobx.set requires Set polyfill for the current browser. Check babel-polyfill or core-js/es6/set.js");this.enhancer=function(ee,pe){return T(ee,pe,z)},w&&this.replace(w)}return O.prototype.dehanceValue=function(w){return this.dehancer!==void 0?this.dehancer(w):w},O.prototype.clear=function(){var w=this;ar(function(){de(function(){var T,z;try{for(var ee=be(w._data.values()),pe=ee.next();!pe.done;pe=ee.next()){var Se=pe.value;w.delete(Se)}}catch($e){T={error:$e}}finally{try{pe&&!pe.done&&(z=ee.return)&&z.call(ee)}finally{if(T)throw T.error}}})})},O.prototype.forEach=function(w,T){var z,ee;try{for(var pe=be(this),Se=pe.next();!Se.done;Se=pe.next()){var $e=Se.value;w.call(T,$e,$e,this)}}catch(ct){z={error:ct}}finally{try{Se&&!Se.done&&(ee=pe.return)&&ee.call(pe)}finally{if(z)throw z.error}}},Object.defineProperty(O.prototype,"size",{get:function(){return this._atom.reportObserved(),this._data.size},enumerable:!0,configurable:!0}),O.prototype.add=function(w){var T=this;if(Bt(this._atom),Rr(this)&&!(ee=an(this,{type:"add",object:this,newValue:w})))return this;if(!this.has(w)){ar(function(){T._data.add(T.enhancer(w,void 0)),T._atom.reportChanged()});var z=Ir(this),ee=z?{type:"add",object:this,newValue:w}:null;z&&fr(this,ee)}return this},O.prototype.delete=function(w){var T=this;if(Rr(this)&&!(ee=an(this,{type:"delete",object:this,oldValue:w})))return!1;if(this.has(w)){var z=Ir(this),ee=z?{type:"delete",object:this,oldValue:w}:null;return ar(function(){T._atom.reportChanged(),T._data.delete(w)}),z&&fr(this,ee),!0}return!1},O.prototype.has=function(w){return this._atom.reportObserved(),this._data.has(this.dehanceValue(w))},O.prototype.entries=function(){var w=0,T=Array.from(this.keys()),z=Array.from(this.values());return en({next:function(){var ee=w;return w+=1,ee<z.length?{value:[T[ee],z[ee]],done:!1}:{done:!0}}})},O.prototype.keys=function(){return this.values()},O.prototype.values=function(){this._atom.reportObserved();var w=this,T=0,z=Array.from(this._data.values());return en({next:function(){return T<z.length?{value:w.dehanceValue(z[T++]),done:!1}:{done:!0}}})},O.prototype.replace=function(w){var T=this;return Pr(w)&&(w=w.toJS()),ar(function(){var z=zt(!0);try{Array.isArray(w)||X(w)?(T.clear(),w.forEach(function(ee){return T.add(ee)})):w!=null&&S("Cannot initialize set from "+w)}finally{bn(z)}}),this},O.prototype.observe=function(w,T){return jo(this,w)},O.prototype.intercept=function(w){return Yo(this,w)},O.prototype.toJS=function(){return new Set(this)},O.prototype.toString=function(){return this.name+"[ "+Array.from(this).join(", ")+" ]"},O.prototype[ic=H,Symbol.iterator]=function(){return this.values()},O}(),Pr=U("ObservableSet",Po),uc=function(){function O(w,T,z,ee){T===void 0&&(T=new Map),this.target=w,this.values=T,this.name=z,this.defaultEnhancer=ee,this.keysAtom=new B(z+".keys")}return O.prototype.read=function(w){return this.values.get(w).get()},O.prototype.write=function(w,T){var z=this.target,ee=this.values.get(w);if(ee instanceof xo)ee.set(T);else{if(Rr(this)){if(!(Se=an(this,{type:"update",object:this.proxy||z,name:w,newValue:T})))return;T=Se.newValue}if((T=ee.prepareNewValue(T))!==ft.UNCHANGED){var pe=Ir(this),Se=pe?{type:"update",object:this.proxy||z,oldValue:ee.value,name:w,newValue:T}:null;ee.setNewValue(T),pe&&fr(this,Se)}}},O.prototype.has=function(w){var T=this.pendingKeys||(this.pendingKeys=new Map),z=T.get(w);if(z)return z.get();var ee=!!this.values.get(w);return z=new zn(ee,mt,this.name+"."+te(w)+"?",!1),T.set(w,z),z.get()},O.prototype.addObservableProp=function(w,T,z){z===void 0&&(z=this.defaultEnhancer);var ee=this.target;if(Rr(this)){var pe=an(this,{object:this.proxy||ee,name:w,type:"add",newValue:T});if(!pe)return;T=pe.newValue}var Se=new zn(T,z,this.name+"."+te(w),!1);this.values.set(w,Se),T=Se.value,Object.defineProperty(ee,w,function($e){return hi[$e]||(hi[$e]={configurable:!0,enumerable:!0,get:function(){return this[H].read($e)},set:function(ct){this[H].write($e,ct)}})}(w)),this.notifyPropertyAddition(w,T)},O.prototype.addComputedProp=function(w,T,z){var ee,pe,Se,$e=this.target;z.name=z.name||this.name+"."+te(T),this.values.set(T,new xo(z)),(w===$e||(ee=w,pe=T,!(Se=Object.getOwnPropertyDescriptor(ee,pe))||Se.configurable!==!1&&Se.writable!==!1))&&Object.defineProperty(w,T,function(ct){return au[ct]||(au[ct]={configurable:ft.computedConfigurable,enumerable:!1,get:function(){return Ao(this).read(ct)},set:function(qt){Ao(this).write(ct,qt)}})}(T))},O.prototype.remove=function(w){if(this.values.has(w)){var T=this.target;if(Rr(this)&&!(ct=an(this,{object:this.proxy||T,name:w,type:"remove"})))return;try{Dr();var z=Ir(this),ee=!1,pe=this.values.get(w),Se=pe&&pe.get();if(pe&&pe.set(void 0),this.keysAtom.reportChanged(),this.values.delete(w),this.pendingKeys){var $e=this.pendingKeys.get(w);$e&&$e.set(!1)}delete this.target[w];var ct=z?{type:"remove",object:this.proxy||T,oldValue:Se,name:w}:null;z&&fr(this,ct)}finally{Fr()}}},O.prototype.illegalAccess=function(w,T){},O.prototype.observe=function(w,T){return jo(this,w)},O.prototype.intercept=function(w){return Yo(this,w)},O.prototype.notifyPropertyAddition=function(w,T){var z=Ir(this),ee=z?{type:"add",object:this.proxy||this.target,name:w,newValue:T}:null;if(z&&fr(this,ee),this.pendingKeys){var pe=this.pendingKeys.get(w);pe&&pe.set(!0)}this.keysAtom.reportChanged()},O.prototype.getKeys=function(){var w,T;this.keysAtom.reportObserved();var z=[];try{for(var ee=be(this.values),pe=ee.next();!pe.done;pe=ee.next()){var Se=Ae(pe.value,2),$e=Se[0];Se[1]instanceof zn&&z.push($e)}}catch(ct){w={error:ct}}finally{try{pe&&!pe.done&&(T=ee.return)&&T.call(ee)}finally{if(w)throw w.error}}return z},O}();function $r(O,w,T){if(w===void 0&&(w=""),T===void 0&&(T=Je),Object.prototype.hasOwnProperty.call(O,H))return O[H];N(O)||(w=(O.constructor.name||"ObservableObject")+"@"+E()),w||(w="ObservableObject@"+E());var z=new uc(O,new Map,te(w),T);return L(O,H,z),z}var hi=Object.create(null),au=Object.create(null);function Ao(O){var w=O[H];return w||(it(O),O[H])}var Wr=U("ObservableObjectAdministration",uc);function Lr(O){return!!C(O)&&(it(O),Wr(O[H]))}function Qr(O,w){if(typeof O=="object"&&O!==null){if(Jr(O))return w!==void 0&&S(!1),O[H].atom;if(Pr(O))return O[H];if(Vn(O)){var T=O;return w===void 0?T._keysAtom:((z=T._data.get(w)||T._hasMap.get(w))||S(!1),z)}var z;if(it(O),w&&!O[H]&&O[w],Lr(O))return w?((z=O[H].values.get(w))||S(!1),z):S(!1);if(V(O)||Go(O)||xa(O))return O}else if(typeof O=="function"&&xa(O[H]))return O[H];return S(!1)}function To(O,w){return O||S("Expecting some object"),w!==void 0?To(Qr(O,w)):V(O)||Go(O)||xa(O)||Vn(O)||Pr(O)?O:(it(O),O[H]?O[H]:void S(!1))}var we=Object.prototype.toString;function Ne(O,w,T){return T===void 0&&(T=-1),Ie(O,w,T)}function Ie(O,w,T,z,ee){if(O===w)return O!==0||1/O==1/w;if(O==null||w==null)return!1;if(O!=O)return w!=w;var pe=typeof O;if(pe!=="function"&&pe!=="object"&&typeof w!="object")return!1;var Se=we.call(O);if(Se!==we.call(w))return!1;switch(Se){case"[object RegExp]":case"[object String]":return""+O==""+w;case"[object Number]":return+O!=+O?+w!=+w:+O==0?1/+O==1/w:+O==+w;case"[object Date]":case"[object Boolean]":return+O==+w;case"[object Symbol]":return typeof Symbol!="undefined"&&Symbol.valueOf.call(O)===Symbol.valueOf.call(w);case"[object Map]":case"[object Set]":T>=0&&T++}O=et(O),w=et(w);var $e=Se==="[object Array]";if(!$e){if(typeof O!="object"||typeof w!="object")return!1;var ct=O.constructor,qt=w.constructor;if(ct!==qt&&!(typeof ct=="function"&&ct instanceof ct&&typeof qt=="function"&&qt instanceof qt)&&"constructor"in O&&"constructor"in w)return!1}if(T===0)return!1;T<0&&(T=-1),ee=ee||[];for(var tt=(z=z||[]).length;tt--;)if(z[tt]===O)return ee[tt]===w;if(z.push(O),ee.push(w),$e){if((tt=O.length)!==w.length)return!1;for(;tt--;)if(!Ie(O[tt],w[tt],T-1,z,ee))return!1}else{var On=Object.keys(O),Ut=void 0;if(tt=On.length,Object.keys(w).length!==tt)return!1;for(;tt--;)if(!Gt(w,Ut=On[tt])||!Ie(O[Ut],w[Ut],T-1,z,ee))return!1}return z.pop(),ee.pop(),!0}function et(O){return Jr(O)?O.slice():W(O)||Vn(O)||X(O)||Pr(O)?Array.from(O.entries()):O}function Gt(O,w){return Object.prototype.hasOwnProperty.call(O,w)}function en(O){return O[Symbol.iterator]=Tn,O}function Tn(){return this}if(typeof Proxy=="undefined"||typeof Symbol=="undefined")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.");typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:Yu,extras:{getDebugName:function(O,w){return(w!==void 0?Qr(O,w):Lr(O)||Vn(O)||Pr(O)?To(O):Qr(O)).name}},$mobx:H})}).call(this,o(163),o(68))},function(u,l,o){var d=o(113),h=o(42),b=o(179);d||h(Object.prototype,"toString",b,{unsafe:!0})},function(u,l,o){var d=o(41),h=o(100),b=o(80),g=o(58),E=o(116),S="Array Iterator",P=g.set,k=g.getterFor(S);u.exports=E(Array,"Array",function(M,C){P(this,{type:S,target:d(M),index:0,kind:C})},function(){var M=k(this),C=M.target,N=M.kind,L=M.index++;return!C||L>=C.length?(M.target=void 0,{value:void 0,done:!0}):N=="keys"?{value:L,done:!1}:N=="values"?{value:C[L],done:!1}:{value:[L,C[L]],done:!1}},"values"),b.Arguments=b.Array,h("keys"),h("values"),h("entries")},function(u,l,o){var d=o(16),h=o(7),b=o(46),g=o(76),E=o(34),S=o(15),P=o(71),k=o(36),M=o(108),C=o(18),N=o(35),L=o(96),U=o(30),W=o(33),X=o(54),Q=o(87),te=o(32),Z=o(40),J=o(41),H=o(86),B=o(39),V=o(69),Y=o(60),q=o(77),ue=o(74),xe=o(139),be=o(112),Ae=o(50),Fe=o(38),je=o(84),ve=o(98),Pe=o(42),Te=o(89),We=o(93),it=o(72),xt=o(90),Ye=o(28),Je=o(140),mt=o(141),se=o(78),ce=o(58),ge=o(79).forEach,De=We("hidden"),Ue="Symbol",ze=Ye("toPrimitive"),Et=ce.set,Rt=ce.getterFor(Ue),At=Object.prototype,gt=h.Symbol,Me=gt&>.prototype,lt=h.TypeError,fe=h.QObject,at=b("JSON","stringify"),$t=Ae.f,hn=Fe.f,Wt=xe.f,on=je.f,_n=S([].push),Nn=Te("symbols"),Bt=Te("op-symbols"),Xn=Te("string-to-symbol-registry"),ne=Te("symbol-to-string-registry"),de=Te("wks"),ae=!fe||!fe.prototype||!fe.prototype.findChild,_e=k&&C(function(){return Y(hn({},"a",{get:function(){return hn(this,"a",{value:7}).a}})).a!=7})?function(ut,Ot,St){var zt=$t(At,Ot);zt&&delete At[Ot],hn(ut,Ot,St),zt&&ut!==At&&hn(At,Ot,zt)}:hn,Ve=function(ut,Ot){var St=Nn[ut]=Y(Me);return Et(St,{type:Ue,tag:ut,description:Ot}),k||(St.description=Ot),St},Ke=function(ut,Ot,St){ut===At&&Ke(Bt,Ot,St),te(ut);var zt=H(Ot);return te(St),N(Nn,zt)?(St.enumerable?(N(ut,De)&&ut[De][zt]&&(ut[De][zt]=!1),St=Y(St,{enumerable:V(0,!1)})):(N(ut,De)||hn(ut,De,V(1,{})),ut[De][zt]=!0),_e(ut,zt,St)):hn(ut,zt,St)},pt=function(ut,Ot){te(ut);var St=J(Ot),zt=q(St).concat(Yn(St));return ge(zt,function(bn){k&&!E(Vt,St,bn)||Ke(ut,bn,St[bn])}),ut},Vt=function(ut){var Ot=H(ut),St=E(on,this,Ot);return!(this===At&&N(Nn,Ot)&&!N(Bt,Ot))&&(!(St||!N(this,Ot)||!N(Nn,Ot)||N(this,De)&&this[De][Ot])||St)},ir=function(ut,Ot){var St=J(ut),zt=H(Ot);if(St!==At||!N(Nn,zt)||N(Bt,zt)){var bn=$t(St,zt);return!bn||!N(Nn,zt)||N(St,De)&&St[De][zt]||(bn.enumerable=!0),bn}},yr=function(ut){var Ot=Wt(J(ut)),St=[];return ge(Ot,function(zt){N(Nn,zt)||N(it,zt)||_n(St,zt)}),St},Yn=function(ut){var Ot=ut===At,St=Wt(Ot?Bt:J(ut)),zt=[];return ge(St,function(bn){!N(Nn,bn)||Ot&&!N(At,bn)||_n(zt,Nn[bn])}),zt};if(M||(gt=function(){if(X(Me,this))throw lt("Symbol is not a constructor");var ut=arguments.length&&arguments[0]!==void 0?B(arguments[0]):void 0,Ot=xt(ut),St=function(zt){this===At&&E(St,Bt,zt),N(this,De)&&N(this[De],Ot)&&(this[De][Ot]=!1),_e(this,Ot,V(1,zt))};return k&&ae&&_e(At,Ot,{configurable:!0,set:St}),Ve(Ot,ut)},Pe(Me=gt.prototype,"toString",function(){return Rt(this).tag}),Pe(gt,"withoutSetter",function(ut){return Ve(xt(ut),ut)}),je.f=Vt,Fe.f=Ke,Ae.f=ir,ue.f=xe.f=yr,be.f=Yn,Je.f=function(ut){return Ve(Ye(ut),ut)},k&&(hn(Me,"description",{configurable:!0,get:function(){return Rt(this).description}}),P||Pe(At,"propertyIsEnumerable",Vt,{unsafe:!0}))),d({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:gt}),ge(q(de),function(ut){mt(ut)}),d({target:Ue,stat:!0,forced:!M},{for:function(ut){var Ot=B(ut);if(N(Xn,Ot))return Xn[Ot];var St=gt(Ot);return Xn[Ot]=St,ne[St]=Ot,St},keyFor:function(ut){if(!Q(ut))throw lt(ut+" is not a symbol");if(N(ne,ut))return ne[ut]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),d({target:"Object",stat:!0,forced:!M,sham:!k},{create:function(ut,Ot){return Ot===void 0?Y(ut):pt(Y(ut),Ot)},defineProperty:Ke,defineProperties:pt,getOwnPropertyDescriptor:ir}),d({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:yr,getOwnPropertySymbols:Yn}),d({target:"Object",stat:!0,forced:C(function(){be.f(1)})},{getOwnPropertySymbols:function(ut){return be.f(Z(ut))}}),at&&d({target:"JSON",stat:!0,forced:!M||C(function(){var ut=gt();return at([ut])!="[null]"||at({a:ut})!="{}"||at(Object(ut))!="{}"})},{stringify:function(ut,Ot,St){var zt=ve(arguments),bn=Ot;if((W(Ot)||ut!==void 0)&&!Q(ut))return L(Ot)||(Ot=function(zn,Wo){if(U(bn)&&(Wo=E(bn,this,zn,Wo)),!Q(Wo))return Wo}),zt[1]=Ot,g(at,null,zt)}}),!Me[ze]){var Zn=Me.valueOf;Pe(Me,ze,function(ut){return E(Zn,this)})}se(gt,Ue),it[De]=!0},function(u,l,o){var d=o(7),h=o(152),b=o(153),g=o(3),E=o(57),S=o(28),P=S("iterator"),k=S("toStringTag"),M=g.values,C=function(L,U){if(L){if(L[P]!==M)try{E(L,P,M)}catch{L[P]=M}if(L[k]||E(L,k,U),h[U]){for(var W in g)if(L[W]!==g[W])try{E(L,W,g[W])}catch{L[W]=g[W]}}}};for(var N in h)C(d[N]&&d[N].prototype,N);C(b,"DOMTokenList")},function(u,l,o){var d=o(151).charAt,h=o(39),b=o(58),g=o(116),E="String Iterator",S=b.set,P=b.getterFor(E);g(String,"String",function(k){S(this,{type:E,string:h(k),index:0})},function(){var k,M=P(this),C=M.string,N=M.index;return N>=C.length?{value:void 0,done:!0}:(k=d(C,N),M.index+=k.length,{value:k,done:!1})})},function(u,l,o){(function(d){var h=function(b){return b&&b.Math==Math&&b};u.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof d=="object"&&d)||function(){return this}()||Function("return this")()}).call(this,o(68))},function(u,l,o){var d=o(16),h=o(36),b=o(7),g=o(15),E=o(35),S=o(30),P=o(54),k=o(39),M=o(38).f,C=o(134),N=b.Symbol,L=N&&N.prototype;if(h&&S(N)&&(!("description"in L)||N().description!==void 0)){var U={},W=function(){var B=arguments.length<1||arguments[0]===void 0?void 0:k(arguments[0]),V=P(L,this)?new N(B):B===void 0?N():N(B);return B===""&&(U[V]=!0),V};C(W,N),W.prototype=L,L.constructor=W;var X=String(N("test"))=="Symbol(test)",Q=g(L.toString),te=g(L.valueOf),Z=/^Symbol\((.*)\)[^)]+$/,J=g("".replace),H=g("".slice);M(L,"description",{configurable:!0,get:function(){var B=te(this),V=Q(B);if(E(U,B))return"";var Y=X?H(V,7,-1):J(V,Z,"$1");return Y===""?void 0:Y}}),d({global:!0,forced:!0},{Symbol:W})}},function(u,l,o){o(141)("iterator")},function(u,l,o){o.d(l,"a",function(){return g.a}),o.d(l,"c",function(){return g.e}),o.d(l,"h",function(){return Z}),o.d(l,"i",function(){return X}),o.d(l,"j",function(){return U}),o.d(l,"b",function(){return Ae}),o.d(l,"e",function(){return Pe}),o.d(l,"f",function(){return Fe}),o.d(l,"g",function(){return Nn});var d,h,b,g=o(0),E=0,S=[],P=g.i.__b,k=g.i.__r,M=g.i.diffed,C=g.i.__c,N=g.i.unmount;function L(ne,de){g.i.__h&&g.i.__h(h,ne,E||de),E=0;var ae=h.__H||(h.__H={__:[],__h:[]});return ne>=ae.__.length&&ae.__.push({}),ae.__[ne]}function U(ne){return E=1,W(ue,ne)}function W(ne,de,ae){var _e=L(d++,2);return _e.t=ne,_e.__c||(_e.__=[ae?ae(de):ue(void 0,de),function(Ve){var Ke=_e.t(_e.__[0],Ve);_e.__[0]!==Ke&&(_e.__=[Ke,_e.__[1]],_e.__c.setState({}))}],_e.__c=h),_e.__}function X(ne,de){var ae=L(d++,3);!g.i.__s&&q(ae.__H,de)&&(ae.__=ne,ae.__H=de,h.__H.__h.push(ae))}function Q(ne,de){var ae=L(d++,4);!g.i.__s&&q(ae.__H,de)&&(ae.__=ne,ae.__H=de,h.__h.push(ae))}function te(ne,de){var ae=L(d++,7);return q(ae.__H,de)&&(ae.__=ne(),ae.__H=de,ae.__h=ne),ae.__}function Z(ne,de){return E=8,te(function(){return ne},de)}function J(){var ne;for(S.sort(function(de,ae){return de.__v.__b-ae.__v.__b});ne=S.pop();)if(ne.__P)try{ne.__H.__h.forEach(V),ne.__H.__h.forEach(Y),ne.__H.__h=[]}catch(de){ne.__H.__h=[],g.i.__e(de,ne.__v)}}g.i.__b=function(ne){h=null,P&&P(ne)},g.i.__r=function(ne){k&&k(ne),d=0;var de=(h=ne.__c).__H;de&&(de.__h.forEach(V),de.__h.forEach(Y),de.__h=[])},g.i.diffed=function(ne){M&&M(ne);var de=ne.__c;de&&de.__H&&de.__H.__h.length&&(S.push(de)!==1&&b===g.i.requestAnimationFrame||((b=g.i.requestAnimationFrame)||B)(J)),h=null},g.i.__c=function(ne,de){de.some(function(ae){try{ae.__h.forEach(V),ae.__h=ae.__h.filter(function(_e){return!_e.__||Y(_e)})}catch(_e){de.some(function(Ve){Ve.__h&&(Ve.__h=[])}),de=[],g.i.__e(_e,ae.__v)}}),C&&C(ne,de)},g.i.unmount=function(ne){N&&N(ne);var de,ae=ne.__c;ae&&ae.__H&&(ae.__H.__.forEach(function(_e){try{V(_e)}catch(Ve){de=Ve}}),de&&g.i.__e(de,ae.__v))};var H=typeof requestAnimationFrame=="function";function B(ne){var de,ae=function(){clearTimeout(_e),H&&cancelAnimationFrame(de),setTimeout(ne)},_e=setTimeout(ae,100);H&&(de=requestAnimationFrame(ae))}function V(ne){var de=h,ae=ne.__c;typeof ae=="function"&&(ne.__c=void 0,ae()),h=de}function Y(ne){var de=h;ne.__c=ne.__(),h=de}function q(ne,de){return!ne||ne.length!==de.length||de.some(function(ae,_e){return ae!==ne[_e]})}function ue(ne,de){return typeof de=="function"?de(ne):de}function xe(ne,de){for(var ae in de)ne[ae]=de[ae];return ne}function be(ne,de){for(var ae in ne)if(ae!=="__source"&&!(ae in de))return!0;for(var _e in de)if(_e!=="__source"&&ne[_e]!==de[_e])return!0;return!1}function Ae(ne){this.props=ne}function Fe(ne,de){function ae(Ve){var Ke=this.props.ref,pt=Ke==Ve.ref;return!pt&&Ke&&(Ke.call?Ke(null):Ke.current=null),de?!de(this.props,Ve)||!pt:be(this.props,Ve)}function _e(Ve){return this.shouldComponentUpdate=ae,Object(g.e)(ne,Ve)}return _e.displayName="Memo("+(ne.displayName||ne.name)+")",_e.prototype.isReactComponent=!0,_e.__f=!0,_e}(Ae.prototype=new g.a).isPureReactComponent=!0,Ae.prototype.shouldComponentUpdate=function(ne,de){return be(this.props,ne)||be(this.state,de)};var je=g.i.__b;g.i.__b=function(ne){ne.type&&ne.type.__f&&ne.ref&&(ne.props.ref=ne.ref,ne.ref=null),je&&je(ne)};var ve=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Pe(ne){function de(ae,_e){var Ve=xe({},ae);return delete Ve.ref,ne(Ve,!(_e=ae.ref||_e)||typeof _e=="object"&&!("current"in _e)?null:_e)}return de.$$typeof=ve,de.render=de,de.prototype.isReactComponent=de.__f=!0,de.displayName="ForwardRef("+(ne.displayName||ne.name)+")",de}var Te=function(ne,de){return ne==null?null:Object(g.k)(Object(g.k)(ne).map(de))},We={map:Te,forEach:Te,count:function(ne){return ne?Object(g.k)(ne).length:0},only:function(ne){var de=Object(g.k)(ne);if(de.length!==1)throw"Children.only";return de[0]},toArray:g.k},it=g.i.__e;g.i.__e=function(ne,de,ae){if(ne.then){for(var _e,Ve=de;Ve=Ve.__;)if((_e=Ve.__c)&&_e.__c)return de.__e==null&&(de.__e=ae.__e,de.__k=ae.__k),_e.__c(ne,de)}it(ne,de,ae)};var xt=g.i.unmount;function Ye(ne,de,ae){return ne&&(ne.__c&&ne.__c.__H&&(ne.__c.__H.__.forEach(function(_e){typeof _e.__c=="function"&&_e.__c()}),ne.__c.__H=null),(ne=xe({},ne)).__c!=null&&(ne.__c.__P===ae&&(ne.__c.__P=de),ne.__c=null),ne.__k=ne.__k&&ne.__k.map(function(_e){return Ye(_e,de,ae)})),ne}function Je(ne,de,ae){return ne&&(ne.__v=null,ne.__k=ne.__k&&ne.__k.map(function(_e){return Je(_e,de,ae)}),ne.__c&&ne.__c.__P===de&&(ne.__e&&ae.insertBefore(ne.__e,ne.__d),ne.__c.__e=!0,ne.__c.__P=ae)),ne}function mt(){this.__u=0,this.t=null,this.__b=null}function se(ne){var de=ne.__.__c;return de&&de.__e&&de.__e(ne)}function ce(){this.u=null,this.o=null}g.i.unmount=function(ne){var de=ne.__c;de&&de.__R&&de.__R(),de&&ne.__h===!0&&(ne.type=null),xt&&xt(ne)},(mt.prototype=new g.a).__c=function(ne,de){var ae=de.__c,_e=this;_e.t==null&&(_e.t=[]),_e.t.push(ae);var Ve=se(_e.__v),Ke=!1,pt=function(){Ke||(Ke=!0,ae.__R=null,Ve?Ve(Vt):Vt())};ae.__R=pt;var Vt=function(){if(!--_e.__u){if(_e.state.__e){var yr=_e.state.__e;_e.__v.__k[0]=Je(yr,yr.__c.__P,yr.__c.__O)}var Yn;for(_e.setState({__e:_e.__b=null});Yn=_e.t.pop();)Yn.forceUpdate()}},ir=de.__h===!0;_e.__u++||ir||_e.setState({__e:_e.__b=_e.__v.__k[0]}),ne.then(pt,pt)},mt.prototype.componentWillUnmount=function(){this.t=[]},mt.prototype.render=function(ne,de){if(this.__b){if(this.__v.__k){var ae=document.createElement("div"),_e=this.__v.__k[0].__c;this.__v.__k[0]=Ye(this.__b,ae,_e.__O=_e.__P)}this.__b=null}var Ve=de.__e&&Object(g.e)(g.b,null,ne.fallback);return Ve&&(Ve.__h=null),[Object(g.e)(g.b,null,de.__e?null:ne.children),Ve]};var ge=function(ne,de,ae){if(++ae[1]===ae[0]&&ne.o.delete(de),ne.props.revealOrder&&(ne.props.revealOrder[0]!=="t"||!ne.o.size))for(ae=ne.u;ae;){for(;ae.length>3;)ae.pop()();if(ae[1]<ae[0])break;ne.u=ae=ae[2]}};function De(ne){return this.getChildContext=function(){return ne.context},ne.children}function Ue(ne){var de=this,ae=ne.i;de.componentWillUnmount=function(){Object(g.j)(null,de.l),de.l=null,de.i=null},de.i&&de.i!==ae&&de.componentWillUnmount(),ne.__v?(de.l||(de.i=ae,de.l={nodeType:1,parentNode:ae,childNodes:[],appendChild:function(_e){this.childNodes.push(_e),de.i.appendChild(_e)},insertBefore:function(_e,Ve){this.childNodes.push(_e),de.i.appendChild(_e)},removeChild:function(_e){this.childNodes.splice(this.childNodes.indexOf(_e)>>>1,1),de.i.removeChild(_e)}}),Object(g.j)(Object(g.e)(De,{context:de.context},ne.__v),de.l)):de.l&&de.componentWillUnmount()}(ce.prototype=new g.a).__e=function(ne){var de=this,ae=se(de.__v),_e=de.o.get(ne);return _e[0]++,function(Ve){var Ke=function(){de.props.revealOrder?(_e.push(Ve),ge(de,ne,_e)):Ve()};ae?ae(Ke):Ke()}},ce.prototype.render=function(ne){this.u=null,this.o=new Map;var de=Object(g.k)(ne.children);ne.revealOrder&&ne.revealOrder[0]==="b"&&de.reverse();for(var ae=de.length;ae--;)this.o.set(de[ae],this.u=[1,0,this.u]);return ne.children},ce.prototype.componentDidUpdate=ce.prototype.componentDidMount=function(){var ne=this;this.o.forEach(function(de,ae){ge(ne,ae,de)})};var ze=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Et=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Rt=typeof document!="undefined",At=function(ne){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(ne)};g.a.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(ne){Object.defineProperty(g.a.prototype,ne,{configurable:!0,get:function(){return this["UNSAFE_"+ne]},set:function(de){Object.defineProperty(this,ne,{configurable:!0,writable:!0,value:de})}})});var gt=g.i.event;function Me(){}function lt(){return this.cancelBubble}function fe(){return this.defaultPrevented}g.i.event=function(ne){return gt&&(ne=gt(ne)),ne.persist=Me,ne.isPropagationStopped=lt,ne.isDefaultPrevented=fe,ne.nativeEvent=ne};var at,$t={configurable:!0,get:function(){return this.class}},hn=g.i.vnode;g.i.vnode=function(ne){var de=ne.type,ae=ne.props,_e=ae;if(typeof de=="string"){var Ve=de.indexOf("-")===-1;for(var Ke in _e={},ae){var pt=ae[Ke];Rt&&Ke==="children"&&de==="noscript"||Ke==="value"&&"defaultValue"in ae&&pt==null||(Ke==="defaultValue"&&"value"in ae&&ae.value==null?Ke="value":Ke==="download"&&pt===!0?pt="":/ondoubleclick/i.test(Ke)?Ke="ondblclick":/^onchange(textarea|input)/i.test(Ke+de)&&!At(ae.type)?Ke="oninput":/^onfocus$/i.test(Ke)?Ke="onfocusin":/^onblur$/i.test(Ke)?Ke="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(Ke)?Ke=Ke.toLowerCase():Ve&&Et.test(Ke)?Ke=Ke.replace(/[A-Z0-9]/,"-$&").toLowerCase():pt===null&&(pt=void 0),_e[Ke]=pt)}de=="select"&&_e.multiple&&Array.isArray(_e.value)&&(_e.value=Object(g.k)(ae.children).forEach(function(Vt){Vt.props.selected=_e.value.indexOf(Vt.props.value)!=-1})),de=="select"&&_e.defaultValue!=null&&(_e.value=Object(g.k)(ae.children).forEach(function(Vt){Vt.props.selected=_e.multiple?_e.defaultValue.indexOf(Vt.props.value)!=-1:_e.defaultValue==Vt.props.value})),ne.props=_e,ae.class!=ae.className&&($t.enumerable="className"in ae,ae.className!=null&&(_e.class=ae.className),Object.defineProperty(_e,"className",$t))}ne.$$typeof=ze,hn&&hn(ne)};var Wt=g.i.__r;g.i.__r=function(ne){Wt&&Wt(ne),at=ne.__c};var on={ReactCurrentDispatcher:{current:{readContext:function(ne){return at.__n[ne.__c].props.value}}}};function _n(ne){return!!ne&&ne.$$typeof===ze}var Nn=function(ne,de){return ne(de)},Bt=g.b,Xn={useState:U,useReducer:W,useEffect:X,useLayoutEffect:Q,useRef:function(ne){return E=5,te(function(){return{current:ne}},[])},useImperativeHandle:function(ne,de,ae){E=6,Q(function(){typeof ne=="function"?ne(de()):ne&&(ne.current=de())},ae==null?ae:ae.concat(ne))},useMemo:te,useCallback:Z,useContext:function(ne){var de=h.context[ne.__c],ae=L(d++,9);return ae.c=ne,de?(ae.__==null&&(ae.__=!0,de.sub(h)),de.props.value):ne.__},useDebugValue:function(ne,de){g.i.useDebugValue&&g.i.useDebugValue(de?de(ne):ne)},version:"17.0.2",Children:We,render:function(ne,de,ae){return de.__k==null&&(de.textContent=""),Object(g.j)(ne,de),typeof ae=="function"&&ae(),ne?ne.__c:null},hydrate:function(ne,de,ae){return Object(g.h)(ne,de),typeof ae=="function"&&ae(),ne?ne.__c:null},unmountComponentAtNode:function(ne){return!!ne.__k&&(Object(g.j)(null,ne),!0)},createPortal:function(ne,de){return Object(g.e)(Ue,{__v:ne,i:de})},createElement:g.e,createContext:g.d,createFactory:function(ne){return g.e.bind(null,ne)},cloneElement:function(ne){return _n(ne)?g.c.apply(null,arguments):ne},createRef:g.f,Fragment:g.b,isValidElement:_n,findDOMNode:function(ne){return ne&&(ne.base||ne.nodeType===1&&ne)||null},Component:g.a,PureComponent:Ae,memo:Fe,forwardRef:Pe,flushSync:function(ne,de){return ne(de)},unstable_batchedUpdates:Nn,StrictMode:Bt,Suspense:mt,SuspenseList:ce,lazy:function(ne){var de,ae,_e;function Ve(Ke){if(de||(de=ne()).then(function(pt){ae=pt.default||pt},function(pt){_e=pt}),_e)throw _e;if(!ae)throw de;return Object(g.e)(ae,Ke)}return Ve.displayName="Lazy",Ve.__f=!0,Ve},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};l.d=Xn},function(u,l,o){var d=o(7),h=o(152),b=o(153),g=o(187),E=o(57),S=function(k){if(k&&k.forEach!==g)try{E(k,"forEach",g)}catch{k.forEach=g}};for(var P in h)h[P]&&S(d[P]&&d[P].prototype);S(b)},function(u,l,o){o(16)({target:"Object",stat:!0},{setPrototypeOf:o(102)})},function(u,l,o){var d=o(16),h=o(18),b=o(40),g=o(101),E=o(143);d({target:"Object",stat:!0,forced:h(function(){g(1)}),sham:!E},{getPrototypeOf:function(S){return g(b(S))}})},function(u,l,o){var d=o(16),h=o(46),b=o(76),g=o(203),E=o(165),S=o(32),P=o(33),k=o(60),M=o(18),C=h("Reflect","construct"),N=Object.prototype,L=[].push,U=M(function(){function Q(){}return!(C(function(){},[],Q)instanceof Q)}),W=!M(function(){C(function(){})}),X=U||W;d({target:"Reflect",stat:!0,forced:X,sham:X},{construct:function(Q,te){E(Q),S(te);var Z=arguments.length<3?Q:E(arguments[2]);if(W&&!U)return C(Q,te,Z);if(Q==Z){switch(te.length){case 0:return new Q;case 1:return new Q(te[0]);case 2:return new Q(te[0],te[1]);case 3:return new Q(te[0],te[1],te[2]);case 4:return new Q(te[0],te[1],te[2],te[3])}var J=[null];return b(L,J,te),new(b(g,Q,J))}var H=Z.prototype,B=k(P(H)?H:N),V=b(Q,B,te);return P(V)?V:B}})},function(u,l){var o=Function.prototype,d=o.bind,h=o.call,b=d&&d.bind(h);u.exports=d?function(g){return g&&b(h,g)}:function(g){return g&&function(){return h.apply(g,arguments)}}},function(u,l,o){var d=o(7),h=o(50).f,b=o(57),g=o(42),E=o(110),S=o(134),P=o(95);u.exports=function(k,M){var C,N,L,U,W,X=k.target,Q=k.global,te=k.stat;if(C=Q?d:te?d[X]||E(X,{}):(d[X]||{}).prototype)for(N in M){if(U=M[N],L=k.noTargetGet?(W=h(C,N))&&W.value:C[N],!P(Q?N:X+(te?".":"#")+N,k.forced)&&L!==void 0){if(typeof U==typeof L)continue;S(U,L)}(k.sham||L&&L.sham)&&b(U,"sham",!0),g(C,N,U,k)}}},function(u,l,o){var d=o(16),h=o(7),b=o(96),g=o(99),E=o(33),S=o(75),P=o(45),k=o(41),M=o(63),C=o(28),N=o(81),L=o(98),U=N("slice"),W=C("species"),X=h.Array,Q=Math.max;d({target:"Array",proto:!0,forced:!U},{slice:function(te,Z){var J,H,B,V=k(this),Y=P(V),q=S(te,Y),ue=S(Z===void 0?Y:Z,Y);if(b(V)&&(J=V.constructor,(g(J)&&(J===X||b(J.prototype))||E(J)&&(J=J[W])===null)&&(J=void 0),J===X||J===void 0))return L(V,q,ue);for(H=new(J===void 0?X:J)(Q(ue-q,0)),B=0;q<ue;q++,B++)q in V&&M(H,B,V[q]);return H.length=B,H}})},function(u,l){u.exports=function(o){try{return!!o()}catch{return!0}}},function(u,l,o){var d=o(16),h=o(103);d({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},function(u,l,o){var d=o(16),h=o(40),b=o(77);d({target:"Object",stat:!0,forced:o(18)(function(){b(1)})},{keys:function(g){return b(h(g))}})},function(u,l,o){var d=o(36),h=o(73).EXISTS,b=o(15),g=o(38).f,E=Function.prototype,S=b(E.toString),P=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,k=b(P.exec);d&&!h&&g(E,"name",{configurable:!0,get:function(){try{return k(P,S(this))[1]}catch{return""}}})},function(u,l,o){var d=o(16),h=o(18),b=o(41),g=o(50).f,E=o(36),S=h(function(){g(1)});d({target:"Object",stat:!0,forced:!E||S,sham:!E},{getOwnPropertyDescriptor:function(P,k){return g(b(P),k)}})},function(u,l,o){var d=o(16),h=o(188);d({target:"Array",stat:!0,forced:!o(120)(function(b){Array.from(b)})},{from:h})},function(u,l,o){var d=o(16),h=o(79).filter;d({target:"Array",proto:!0,forced:!o(81)("filter")},{filter:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(16),h=o(36),b=o(135),g=o(41),E=o(50),S=o(63);d({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(P){for(var k,M,C=g(P),N=E.f,L=b(C),U={},W=0;L.length>W;)(M=N(C,k=L[W++]))!==void 0&&S(U,k,M);return U}})},,function(u,l,o){var d=o(16),h=o(7),b=o(18),g=o(96),E=o(33),S=o(40),P=o(45),k=o(63),M=o(115),C=o(81),N=o(28),L=o(70),U=N("isConcatSpreadable"),W=9007199254740991,X="Maximum allowed index exceeded",Q=h.TypeError,te=L>=51||!b(function(){var H=[];return H[U]=!1,H.concat()[0]!==H}),Z=C("concat"),J=function(H){if(!E(H))return!1;var B=H[U];return B!==void 0?!!B:g(H)};d({target:"Array",proto:!0,forced:!te||!Z},{concat:function(H){var B,V,Y,q,ue,xe=S(this),be=M(xe,0),Ae=0;for(B=-1,Y=arguments.length;B<Y;B++)if(J(ue=B===-1?xe:arguments[B])){if(Ae+(q=P(ue))>W)throw Q(X);for(V=0;V<q;V++,Ae++)V in ue&&k(be,Ae,ue[V])}else{if(Ae>=W)throw Q(X);k(be,Ae++,ue)}return be.length=Ae,be}})},function(u,l,o){var d=o(7),h=o(89),b=o(35),g=o(90),E=o(108),S=o(132),P=h("wks"),k=d.Symbol,M=k&&k.for,C=S?k:k&&k.withoutSetter||g;u.exports=function(N){if(!b(P,N)||!E&&typeof P[N]!="string"){var L="Symbol."+N;E&&b(k,N)?P[N]=k[N]:P[N]=S&&M?M(L):C(L)}return P[N]}},function(u,l,o){var d=o(16),h=o(202);d({target:"Object",stat:!0,forced:Object.assign!==h},{assign:h})},function(u,l){u.exports=function(o){return typeof o=="function"}},function(u,l,o){var d=o(106),h=typeof self=="object"&&self&&self.Object===Object&&self,b=d.a||h||Function("return this")();l.a=b},function(u,l,o){var d=o(7),h=o(33),b=d.String,g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not an object")}},function(u,l,o){var d=o(30);u.exports=function(h){return typeof h=="object"?h!==null:d(h)}},function(u,l){var o=Function.prototype.call;u.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(u,l,o){var d=o(15),h=o(40),b=d({}.hasOwnProperty);u.exports=Object.hasOwn||function(g,E){return b(h(g),E)}},function(u,l,o){var d=o(18);u.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(u,l,o){var d=o(16),h=o(79).map;d({target:"Array",proto:!0,forced:!o(81)("map")},{map:function(b){return h(this,b,arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(7),h=o(36),b=o(133),g=o(32),E=o(86),S=d.TypeError,P=Object.defineProperty;l.f=h?P:function(k,M,C){if(g(k),M=E(M),g(C),b)try{return P(k,M,C)}catch{}if("get"in C||"set"in C)throw S("Accessors not supported");return"value"in C&&(k[M]=C.value),k}},function(u,l,o){var d=o(7),h=o(97),b=d.String;u.exports=function(g){if(h(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return b(g)}},function(u,l,o){var d=o(7),h=o(44),b=d.Object;u.exports=function(g){return b(h(g))}},function(u,l,o){var d=o(85),h=o(44);u.exports=function(b){return d(h(b))}},function(u,l,o){var d=o(7),h=o(30),b=o(35),g=o(57),E=o(110),S=o(92),P=o(58),k=o(73).CONFIGURABLE,M=P.get,C=P.enforce,N=String(String).split("String");(u.exports=function(L,U,W,X){var Q,te=!!X&&!!X.unsafe,Z=!!X&&!!X.enumerable,J=!!X&&!!X.noTargetGet,H=X&&X.name!==void 0?X.name:U;h(W)&&(String(H).slice(0,7)==="Symbol("&&(H="["+String(H).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!b(W,"name")||k&&W.name!==H)&&g(W,"name",H),(Q=C(W)).source||(Q.source=N.join(typeof H=="string"?H:""))),L!==d?(te?!J&&L[U]&&(Z=!0):delete L[U],Z?L[U]=W:g(L,U,W)):Z?L[U]=W:E(U,W)})(Function.prototype,"toString",function(){return h(this)&&M(this).source||S(this)})},function(u,l,o){(function(d){o.d(l,"d",function(){return g}),o.d(l,"c",function(){return E}),o.d(l,"b",function(){return S}),o.d(l,"a",function(){return k});var h=o(10),b=function(M,C){var N=typeof Symbol=="function"&&M[Symbol.iterator];if(!N)return M;var L,U,W=N.call(M),X=[];try{for(;(C===void 0||C-- >0)&&!(L=W.next()).done;)X.push(L.value)}catch(Q){U={error:Q}}finally{try{L&&!L.done&&(N=W.return)&&N.call(W)}finally{if(U)throw U.error}}return X};function g(){var M=b(Object(h.j)(0),2)[1];return Object(h.h)(function(){M(function(C){return C+1})},[])}function E(M){if(!M||typeof M!="object")return!1;var C=Object.getPrototypeOf(M);return!C||C===Object.prototype}function S(M){return typeof Symbol=="function"?Symbol.for(M):"__$mobx-react "+M+"__"}var P={};function k(){return typeof window!="undefined"?window:d!==void 0?d:typeof self!="undefined"?self:P}}).call(this,o(68))},function(u,l,o){var d=o(7).TypeError;u.exports=function(h){if(h==null)throw d("Can't call method on "+h);return h}},function(u,l,o){var d=o(94);u.exports=function(h){return d(h.length)}},function(u,l,o){var d=o(7),h=o(30),b=function(g){return h(g)?g:void 0};u.exports=function(g,E){return arguments.length<2?b(d[g]):d[g]&&d[g][E]}},function(u,l,o){var d=o(16),h=o(34),b=o(33),g=o(32),E=o(204),S=o(50),P=o(101);d({target:"Reflect",stat:!0},{get:function k(M,C){var N,L,U=arguments.length<3?M:arguments[2];return g(M)===U?M[C]:(N=S.f(M,C))?E(N)?N.value:N.get===void 0?void 0:h(N.get,U):b(L=P(M))?k(L,C,U):void 0}})},function(u,l,o){(function(d){var h=o(31),b=o(171),g=a&&!a.nodeType&&a,E=g&&typeof d=="object"&&d&&!d.nodeType&&d,S=E&&E.exports===g?h.a.Buffer:void 0,P=(S?S.isBuffer:void 0)||b.a;l.a=P}).call(this,o(122)(u))},function(u,l,o){(function(d){var h=o(106),b=a&&!a.nodeType&&a,g=b&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===b&&h.a.process,S=function(){try{var P=g&&g.require&&g.require("util").types;return P||E&&E.binding&&E.binding("util")}catch{}}();l.a=S}).call(this,o(122)(u))},function(u,l,o){var d=o(36),h=o(34),b=o(84),g=o(69),E=o(41),S=o(86),P=o(35),k=o(133),M=Object.getOwnPropertyDescriptor;l.f=d?M:function(C,N){if(C=E(C),N=S(N),k)try{return M(C,N)}catch{}if(P(C,N))return g(!h(b.f,C,N),C[N])}},function(u,l,o){var d=o(15),h=d({}.toString),b=d("".slice);u.exports=function(g){return b(h(g),8,-1)}},function(u,l,o){o(182)("Map",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},o(186))},function(u,l,o){var d=o(16),h=o(220).entries;d({target:"Object",stat:!0},{entries:function(b){return h(b)}})},function(u,l,o){var d=o(15);u.exports=d({}.isPrototypeOf)},function(u,l,o){var d=o(46);u.exports=d("navigator","userAgent")||""},function(u,l,o){var d=o(7),h=o(30),b=o(88),g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not a function")}},function(u,l,o){var d=o(36),h=o(38),b=o(69);u.exports=d?function(g,E,S){return h.f(g,E,b(1,S))}:function(g,E,S){return g[E]=S,g}},function(u,l,o){var d,h,b,g=o(175),E=o(7),S=o(15),P=o(33),k=o(57),M=o(35),C=o(109),N=o(93),L=o(72),U="Object already initialized",W=E.TypeError,X=E.WeakMap;if(g||C.state){var Q=C.state||(C.state=new X),te=S(Q.get),Z=S(Q.has),J=S(Q.set);d=function(B,V){if(Z(Q,B))throw new W(U);return V.facade=B,J(Q,B,V),V},h=function(B){return te(Q,B)||{}},b=function(B){return Z(Q,B)}}else{var H=N("state");L[H]=!0,d=function(B,V){if(M(B,H))throw new W(U);return V.facade=B,k(B,H,V),V},h=function(B){return M(B,H)?B[H]:{}},b=function(B){return M(B,H)}}u.exports={set:d,get:h,has:b,enforce:function(B){return b(B)?h(B):d(B,{})},getterFor:function(B){return function(V){var Y;if(!P(V)||(Y=h(V)).type!==B)throw W("Incompatible receiver, "+B+" required");return Y}}}},function(u,l){var o=Math.ceil,d=Math.floor;u.exports=function(h){var b=+h;return b!=b||b===0?0:(b>0?d:o)(b)}},function(u,l,o){var d,h=o(32),b=o(176),g=o(111),E=o(72),S=o(138),P=o(91),k=o(93),M=k("IE_PROTO"),C=function(){},N=function(W){return"<script>"+W+"<\/script>"},L=function(W){W.write(N("")),W.close();var X=W.parentWindow.Object;return W=null,X},U=function(){try{d=new ActiveXObject("htmlfile")}catch{}var W,X;U=typeof document!="undefined"?document.domain&&d?L(d):((X=P("iframe")).style.display="none",S.appendChild(X),X.src=String("javascript:"),(W=X.contentWindow.document).open(),W.write(N("document.F=Object")),W.close(),W.F):L(d);for(var Q=g.length;Q--;)delete U.prototype[g[Q]];return U()};E[M]=!0,u.exports=Object.create||function(W,X){var Q;return W!==null?(C.prototype=h(W),Q=new C,C.prototype=null,Q[M]=W):Q=U(),X===void 0?Q:b(Q,X)}},function(u,l,o){var d=o(36),h=o(7),b=o(15),g=o(95),E=o(42),S=o(35),P=o(148),k=o(54),M=o(87),C=o(131),N=o(18),L=o(74).f,U=o(50).f,W=o(38).f,X=o(160),Q=o(161).trim,te="Number",Z=h.Number,J=Z.prototype,H=h.TypeError,B=b("".slice),V=b("".charCodeAt),Y=function(Fe){var je=C(Fe,"number");return typeof je=="bigint"?je:q(je)},q=function(Fe){var je,ve,Pe,Te,We,it,xt,Ye,Je=C(Fe,"number");if(M(Je))throw H("Cannot convert a Symbol value to a number");if(typeof Je=="string"&&Je.length>2){if(Je=Q(Je),(je=V(Je,0))===43||je===45){if((ve=V(Je,2))===88||ve===120)return NaN}else if(je===48){switch(V(Je,1)){case 66:case 98:Pe=2,Te=49;break;case 79:case 111:Pe=8,Te=55;break;default:return+Je}for(it=(We=B(Je,2)).length,xt=0;xt<it;xt++)if((Ye=V(We,xt))<48||Ye>Te)return NaN;return parseInt(We,Pe)}}return+Je};if(g(te,!Z(" 0o1")||!Z("0b1")||Z("+0x1"))){for(var ue,xe=function(Fe){var je=arguments.length<1?0:Z(Y(Fe)),ve=this;return k(J,ve)&&N(function(){X(ve)})?P(Object(je),ve,xe):je},be=d?L(Z):"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(","),Ae=0;be.length>Ae;Ae++)S(Z,ue=be[Ae])&&!S(xe,ue)&&W(xe,ue,U(Z,ue));xe.prototype=J,J.constructor=xe,E(h,te,xe)}},function(u,l,o){var d=o(56);u.exports=function(h,b){var g=h[b];return g==null?void 0:d(g)}},function(u,l,o){var d=o(86),h=o(38),b=o(69);u.exports=function(g,E,S){var P=d(E);P in g?h.f(g,P,b(0,S)):g[P]=S}},function(u,l,o){var d=o(15),h=o(56),b=d(d.bind);u.exports=function(g,E){return h(g),E===void 0?g:b?b(g,E):function(){return g.apply(E,arguments)}}},function(u,l,o){var d=o(16),h=o(15),b=o(85),g=o(41),E=o(121),S=h([].join),P=b!=Object,k=E("join",",");d({target:"Array",proto:!0,forced:P||!k},{join:function(M){return S(g(this),M===void 0?",":M)}})},function(u,l,o){var d=o(15),h=o(73).PROPER,b=o(42),g=o(32),E=o(54),S=o(39),P=o(18),k=o(154),M="toString",C=RegExp.prototype,N=C.toString,L=d(k),U=P(function(){return N.call({source:"a",flags:"b"})!="/a/b"}),W=h&&N.name!=M;(U||W)&&b(RegExp.prototype,M,function(){var X=g(this),Q=S(X.source),te=X.flags;return"/"+Q+"/"+S(te===void 0&&E(C,X)&&!("flags"in C)?L(X):te)},{unsafe:!0})},function(u,l,o){var d=o(16),h=o(217),b=o(100);d({target:"Array",proto:!0},{fill:h}),b("fill")},function(u,l){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}u.exports=o},function(u,l){u.exports=function(o,d){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:d}}},function(u,l,o){var d,h,b=o(7),g=o(55),E=b.process,S=b.Deno,P=E&&E.versions||S&&S.version,k=P&&P.v8;k&&(h=(d=k.split("."))[0]>0&&d[0]<4?1:+(d[0]+d[1])),!h&&g&&(!(d=g.match(/Edge\/(\d+)/))||d[1]>=74)&&(d=g.match(/Chrome\/(\d+)/))&&(h=+d[1]),u.exports=h},function(u,l){u.exports=!1},function(u,l){u.exports={}},function(u,l,o){var d=o(36),h=o(35),b=Function.prototype,g=d&&Object.getOwnPropertyDescriptor,E=h(b,"name"),S=E&&function(){}.name==="something",P=E&&(!d||d&&g(b,"name").configurable);u.exports={EXISTS:E,PROPER:S,CONFIGURABLE:P}},function(u,l,o){var d=o(136),h=o(111).concat("length","prototype");l.f=Object.getOwnPropertyNames||function(b){return d(b,h)}},function(u,l,o){var d=o(59),h=Math.max,b=Math.min;u.exports=function(g,E){var S=d(g);return S<0?h(S+E,0):b(S,E)}},function(u,l){var o=Function.prototype,d=o.apply,h=o.bind,b=o.call;u.exports=typeof Reflect=="object"&&Reflect.apply||(h?b.bind(d):function(){return b.apply(d,arguments)})},function(u,l,o){var d=o(136),h=o(111);u.exports=Object.keys||function(b){return d(b,h)}},function(u,l,o){var d=o(38).f,h=o(35),b=o(28)("toStringTag");u.exports=function(g,E,S){g&&!h(g=S?g:g.prototype,b)&&d(g,b,{configurable:!0,value:E})}},function(u,l,o){var d=o(64),h=o(15),b=o(85),g=o(40),E=o(45),S=o(115),P=h([].push),k=function(M){var C=M==1,N=M==2,L=M==3,U=M==4,W=M==6,X=M==7,Q=M==5||W;return function(te,Z,J,H){for(var B,V,Y=g(te),q=b(Y),ue=d(Z,J),xe=E(q),be=0,Ae=H||S,Fe=C?Ae(te,xe):N||X?Ae(te,0):void 0;xe>be;be++)if((Q||be in q)&&(V=ue(B=q[be],be,Y),M))if(C)Fe[be]=V;else if(V)switch(M){case 3:return!0;case 5:return B;case 6:return be;case 2:P(Fe,B)}else switch(M){case 4:return!1;case 7:P(Fe,B)}return W?-1:L||U?U:Fe}};u.exports={forEach:k(0),map:k(1),filter:k(2),some:k(3),every:k(4),find:k(5),findIndex:k(6),filterReject:k(7)}},function(u,l){u.exports={}},function(u,l,o){var d=o(18),h=o(28),b=o(70),g=h("species");u.exports=function(E){return b>=51||!d(function(){var S=[];return(S.constructor={})[g]=function(){return{foo:1}},S[E](Boolean).foo!==1})}},function(u,l,o){var d=o(76),h=o(34),b=o(15),g=o(123),E=o(159),S=o(32),P=o(44),k=o(164),M=o(124),C=o(94),N=o(39),L=o(62),U=o(114),W=o(125),X=o(103),Q=o(155),te=o(18),Z=Q.UNSUPPORTED_Y,J=4294967295,H=Math.min,B=[].push,V=b(/./.exec),Y=b(B),q=b("".slice),ue=!te(function(){var xe=/(?:)/,be=xe.exec;xe.exec=function(){return be.apply(this,arguments)};var Ae="ab".split(xe);return Ae.length!==2||Ae[0]!=="a"||Ae[1]!=="b"});g("split",function(xe,be,Ae){var Fe;return Fe="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(je,ve){var Pe=N(P(this)),Te=ve===void 0?J:ve>>>0;if(Te===0)return[];if(je===void 0)return[Pe];if(!E(je))return h(be,Pe,je,Te);for(var We,it,xt,Ye=[],Je=(je.ignoreCase?"i":"")+(je.multiline?"m":"")+(je.unicode?"u":"")+(je.sticky?"y":""),mt=0,se=new RegExp(je.source,Je+"g");(We=h(X,se,Pe))&&!((it=se.lastIndex)>mt&&(Y(Ye,q(Pe,mt,We.index)),We.length>1&&We.index<Pe.length&&d(B,Ye,U(We,1)),xt=We[0].length,mt=it,Ye.length>=Te));)se.lastIndex===We.index&&se.lastIndex++;return mt===Pe.length?!xt&&V(se,"")||Y(Ye,""):Y(Ye,q(Pe,mt)),Ye.length>Te?U(Ye,0,Te):Ye}:"0".split(void 0,0).length?function(je,ve){return je===void 0&&ve===0?[]:h(be,this,je,ve)}:be,[function(je,ve){var Pe=P(this),Te=je==null?void 0:L(je,xe);return Te?h(Te,je,Pe,ve):h(Fe,N(Pe),je,ve)},function(je,ve){var Pe=S(this),Te=N(je),We=Ae(Fe,Pe,Te,ve,Fe!==be);if(We.done)return We.value;var it=k(Pe,RegExp),xt=Pe.unicode,Ye=(Pe.ignoreCase?"i":"")+(Pe.multiline?"m":"")+(Pe.unicode?"u":"")+(Z?"g":"y"),Je=new it(Z?"^(?:"+Pe.source+")":Pe,Ye),mt=ve===void 0?J:ve>>>0;if(mt===0)return[];if(Te.length===0)return W(Je,Te)===null?[Te]:[];for(var se=0,ce=0,ge=[];ce<Te.length;){Je.lastIndex=Z?0:ce;var De,Ue=W(Je,Z?q(Te,ce):Te);if(Ue===null||(De=H(C(Je.lastIndex+(Z?ce:0)),Te.length))===se)ce=M(Te,ce,xt);else{if(Y(ge,q(Te,se,ce)),ge.length===mt)return ge;for(var ze=1;ze<=Ue.length-1;ze++)if(Y(ge,Ue[ze]),ge.length===mt)return ge;ce=se=De}}return Y(ge,q(Te,se)),ge}]},!ue,Z)},function(u,l,o){o(16)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(u,l,o){var d={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,b=h&&!d.call({1:2},1);l.f=b?function(g){var E=h(this,g);return!!E&&E.enumerable}:d},function(u,l,o){var d=o(7),h=o(15),b=o(18),g=o(51),E=d.Object,S=h("".split);u.exports=b(function(){return!E("z").propertyIsEnumerable(0)})?function(P){return g(P)=="String"?S(P,""):E(P)}:E},function(u,l,o){var d=o(131),h=o(87);u.exports=function(b){var g=d(b,"string");return h(g)?g:g+""}},function(u,l,o){var d=o(7),h=o(46),b=o(30),g=o(54),E=o(132),S=d.Object;u.exports=E?function(P){return typeof P=="symbol"}:function(P){var k=h("Symbol");return b(k)&&g(k.prototype,S(P))}},function(u,l,o){var d=o(7).String;u.exports=function(h){try{return d(h)}catch{return"Object"}}},function(u,l,o){var d=o(71),h=o(109);(u.exports=function(b,g){return h[b]||(h[b]=g!==void 0?g:{})})("versions",[]).push({version:"3.19.3",mode:d?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},function(u,l,o){var d=o(15),h=0,b=Math.random(),g=d(1 .toString);u.exports=function(E){return"Symbol("+(E===void 0?"":E)+")_"+g(++h+b,36)}},function(u,l,o){var d=o(7),h=o(33),b=d.document,g=h(b)&&h(b.createElement);u.exports=function(E){return g?b.createElement(E):{}}},function(u,l,o){var d=o(15),h=o(30),b=o(109),g=d(Function.toString);h(b.inspectSource)||(b.inspectSource=function(E){return g(E)}),u.exports=b.inspectSource},function(u,l,o){var d=o(89),h=o(90),b=d("keys");u.exports=function(g){return b[g]||(b[g]=h(g))}},function(u,l,o){var d=o(59),h=Math.min;u.exports=function(b){return b>0?h(d(b),9007199254740991):0}},function(u,l,o){var d=o(18),h=o(30),b=/#|\.prototype\./,g=function(M,C){var N=S[E(M)];return N==k||N!=P&&(h(C)?d(C):!!C)},E=g.normalize=function(M){return String(M).replace(b,".").toLowerCase()},S=g.data={},P=g.NATIVE="N",k=g.POLYFILL="P";u.exports=g},function(u,l,o){var d=o(51);u.exports=Array.isArray||function(h){return d(h)=="Array"}},function(u,l,o){var d=o(7),h=o(113),b=o(30),g=o(51),E=o(28)("toStringTag"),S=d.Object,P=g(function(){return arguments}())=="Arguments";u.exports=h?g:function(k){var M,C,N;return k===void 0?"Undefined":k===null?"Null":typeof(C=function(L,U){try{return L[U]}catch{}}(M=S(k),E))=="string"?C:P?g(M):(N=g(M))=="Object"&&b(M.callee)?"Arguments":N}},function(u,l,o){var d=o(15);u.exports=d([].slice)},function(u,l,o){var d=o(15),h=o(18),b=o(30),g=o(97),E=o(46),S=o(92),P=function(){},k=[],M=E("Reflect","construct"),C=/^\s*(?:class|function)\b/,N=d(C.exec),L=!C.exec(P),U=function(W){if(!b(W))return!1;try{return M(P,k,W),!0}catch{return!1}};u.exports=!M||h(function(){var W;return U(U.call)||!U(Object)||!U(function(){W=!0})||W})?function(W){if(!b(W))return!1;switch(g(W)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return L||!!N(C,S(W))}:U},function(u,l,o){var d=o(28),h=o(60),b=o(38),g=d("unscopables"),E=Array.prototype;E[g]==null&&b.f(E,g,{configurable:!0,value:h(null)}),u.exports=function(S){E[g][S]=!0}},function(u,l,o){var d=o(7),h=o(35),b=o(30),g=o(40),E=o(93),S=o(143),P=E("IE_PROTO"),k=d.Object,M=k.prototype;u.exports=S?k.getPrototypeOf:function(C){var N=g(C);if(h(N,P))return N[P];var L=N.constructor;return b(L)&&N instanceof L?L.prototype:N instanceof k?M:null}},function(u,l,o){var d=o(15),h=o(32),b=o(181);u.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g,E=!1,S={};try{(g=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(S,[]),E=S instanceof Array}catch{}return function(P,k){return h(P),b(k),E?g(P,k):P.__proto__=k,P}}():void 0)},function(u,l,o){var d,h,b=o(34),g=o(15),E=o(39),S=o(154),P=o(155),k=o(89),M=o(60),C=o(58).get,N=o(190),L=o(191),U=k("native-string-replace",String.prototype.replace),W=RegExp.prototype.exec,X=W,Q=g("".charAt),te=g("".indexOf),Z=g("".replace),J=g("".slice),H=(h=/b*/g,b(W,d=/a/,"a"),b(W,h,"a"),d.lastIndex!==0||h.lastIndex!==0),B=P.BROKEN_CARET,V=/()??/.exec("")[1]!==void 0;(H||V||B||N||L)&&(X=function(Y){var q,ue,xe,be,Ae,Fe,je,ve=this,Pe=C(ve),Te=E(Y),We=Pe.raw;if(We)return We.lastIndex=ve.lastIndex,q=b(X,We,Te),ve.lastIndex=We.lastIndex,q;var it=Pe.groups,xt=B&&ve.sticky,Ye=b(S,ve),Je=ve.source,mt=0,se=Te;if(xt&&(Ye=Z(Ye,"y",""),te(Ye,"g")===-1&&(Ye+="g"),se=J(Te,ve.lastIndex),ve.lastIndex>0&&(!ve.multiline||ve.multiline&&Q(Te,ve.lastIndex-1)!==`
- `)&&(Je="(?: "+Je+")",se=" "+se,mt++),ue=new RegExp("^(?:"+Je+")",Ye)),V&&(ue=new RegExp("^"+Je+"$(?!\\s)",Ye)),H&&(xe=ve.lastIndex),be=b(W,xt?ue:ve,se),xt?be?(be.input=J(be.input,mt),be[0]=J(be[0],mt),be.index=ve.lastIndex,ve.lastIndex+=be[0].length):ve.lastIndex=0:H&&be&&(ve.lastIndex=ve.global?be.index+be[0].length:xe),V&&be&&be.length>1&&b(U,be[0],ue,function(){for(Ae=1;Ae<arguments.length-2;Ae++)arguments[Ae]===void 0&&(be[Ae]=void 0)}),be&&it)for(be.groups=Fe=M(null),Ae=0;Ae<it.length;Ae++)Fe[(je=it[Ae])[0]]=be[je[1]];return be}),u.exports=X},function(u,l,o){var d=o(16),h=o(7),b=o(75),g=o(59),E=o(45),S=o(40),P=o(115),k=o(63),M=o(81)("splice"),C=h.TypeError,N=Math.max,L=Math.min,U=9007199254740991,W="Maximum allowed length exceeded";d({target:"Array",proto:!0,forced:!M},{splice:function(X,Q){var te,Z,J,H,B,V,Y=S(this),q=E(Y),ue=b(X,q),xe=arguments.length;if(xe===0?te=Z=0:xe===1?(te=0,Z=q-ue):(te=xe-2,Z=L(N(g(Q),0),q-ue)),q+te-Z>U)throw C(W);for(J=P(Y,Z),H=0;H<Z;H++)(B=ue+H)in Y&&k(J,H,Y[B]);if(J.length=Z,te<Z){for(H=ue;H<q-Z;H++)V=H+te,(B=H+Z)in Y?Y[V]=Y[B]:delete Y[V];for(H=q;H>q-Z+te;H--)delete Y[H-1]}else if(te>Z)for(H=q-Z;H>ue;H--)V=H+te-1,(B=H+Z-1)in Y?Y[V]=Y[B]:delete Y[V];for(H=0;H<te;H++)Y[H+ue]=arguments[H+2];return Y.length=q-Z+te,J}})},function(u,l,o){var d=o(16),h=o(205);d({target:"String",proto:!0,forced:o(206)("anchor")},{anchor:function(b){return h(this,"a","name",b)}})},function(u,l,o){(function(d){var h=typeof d=="object"&&d&&d.Object===Object&&d;l.a=h}).call(this,o(68))},function(u,l,o){(function(d){var h=o(31),b=a&&!a.nodeType&&a,g=b&&typeof d=="object"&&d&&!d.nodeType&&d,E=g&&g.exports===b?h.a.Buffer:void 0,S=E?E.allocUnsafe:void 0;l.a=function(P,k){if(k)return P.slice();var M=P.length,C=S?S(M):new P.constructor(M);return P.copy(C),C}}).call(this,o(122)(u))},function(u,l,o){var d=o(70),h=o(18);u.exports=!!Object.getOwnPropertySymbols&&!h(function(){var b=Symbol();return!String(b)||!(Object(b)instanceof Symbol)||!Symbol.sham&&d&&d<41})},function(u,l,o){var d=o(7),h=o(110),b="__core-js_shared__",g=d[b]||h(b,{});u.exports=g},function(u,l,o){var d=o(7),h=Object.defineProperty;u.exports=function(b,g){try{h(d,b,{value:g,configurable:!0,writable:!0})}catch{d[b]=g}return g}},function(u,l){u.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(u,l){l.f=Object.getOwnPropertySymbols},function(u,l,o){var d={};d[o(28)("toStringTag")]="z",u.exports=String(d)==="[object z]"},function(u,l,o){var d=o(7),h=o(75),b=o(45),g=o(63),E=d.Array,S=Math.max;u.exports=function(P,k,M){for(var C=b(P),N=h(k,C),L=h(M===void 0?C:M,C),U=E(S(L-N,0)),W=0;N<L;N++,W++)g(U,W,P[N]);return U.length=W,U}},function(u,l,o){var d=o(178);u.exports=function(h,b){return new(d(h))(b===0?0:b)}},function(u,l,o){var d=o(16),h=o(34),b=o(71),g=o(73),E=o(30),S=o(180),P=o(101),k=o(102),M=o(78),C=o(57),N=o(42),L=o(28),U=o(80),W=o(142),X=g.PROPER,Q=g.CONFIGURABLE,te=W.IteratorPrototype,Z=W.BUGGY_SAFARI_ITERATORS,J=L("iterator"),H="keys",B="values",V="entries",Y=function(){return this};u.exports=function(q,ue,xe,be,Ae,Fe,je){S(xe,ue,be);var ve,Pe,Te,We=function(ce){if(ce===Ae&&mt)return mt;if(!Z&&ce in Ye)return Ye[ce];switch(ce){case H:case B:case V:return function(){return new xe(this,ce)}}return function(){return new xe(this)}},it=ue+" Iterator",xt=!1,Ye=q.prototype,Je=Ye[J]||Ye["@@iterator"]||Ae&&Ye[Ae],mt=!Z&&Je||We(Ae),se=ue=="Array"&&Ye.entries||Je;if(se&&(ve=P(se.call(new q)))!==Object.prototype&&ve.next&&(b||P(ve)===te||(k?k(ve,te):E(ve[J])||N(ve,J,Y)),M(ve,it,!0,!0),b&&(U[it]=Y)),X&&Ae==B&&Je&&Je.name!==B&&(!b&&Q?C(Ye,"name",B):(xt=!0,mt=function(){return h(Je,this)})),Ae)if(Pe={values:We(B),keys:Fe?mt:We(H),entries:We(V)},je)for(Te in Pe)(Z||xt||!(Te in Ye))&&N(Ye,Te,Pe[Te]);else d({target:ue,proto:!0,forced:Z||xt},Pe);return b&&!je||Ye[J]===mt||N(Ye,J,mt,{name:Ae}),U[ue]=mt,Pe}},function(u,l,o){var d=o(7),h=o(64),b=o(34),g=o(32),E=o(88),S=o(145),P=o(45),k=o(54),M=o(146),C=o(118),N=o(147),L=d.TypeError,U=function(X,Q){this.stopped=X,this.result=Q},W=U.prototype;u.exports=function(X,Q,te){var Z,J,H,B,V,Y,q,ue=te&&te.that,xe=!(!te||!te.AS_ENTRIES),be=!(!te||!te.IS_ITERATOR),Ae=!(!te||!te.INTERRUPTED),Fe=h(Q,ue),je=function(Pe){return Z&&N(Z,"normal",Pe),new U(!0,Pe)},ve=function(Pe){return xe?(g(Pe),Ae?Fe(Pe[0],Pe[1],je):Fe(Pe[0],Pe[1])):Ae?Fe(Pe,je):Fe(Pe)};if(be)Z=X;else{if(!(J=C(X)))throw L(E(X)+" is not iterable");if(S(J)){for(H=0,B=P(X);B>H;H++)if((V=ve(X[H]))&&k(W,V))return V;return new U(!1)}Z=M(X,J)}for(Y=Z.next;!(q=b(Y,Z)).done;){try{V=ve(q.value)}catch(Pe){N(Z,"throw",Pe)}if(typeof V=="object"&&V&&k(W,V))return V}return new U(!1)}},function(u,l,o){var d=o(97),h=o(62),b=o(80),g=o(28)("iterator");u.exports=function(E){if(E!=null)return h(E,g)||h(E,"@@iterator")||b[d(E)]}},function(u,l,o){var d=o(7),h=o(54),b=d.TypeError;u.exports=function(g,E){if(h(E,g))return g;throw b("Incorrect invocation")}},function(u,l,o){var d=o(28)("iterator"),h=!1;try{var b=0,g={next:function(){return{done:!!b++}},return:function(){h=!0}};g[d]=function(){return this},Array.from(g,function(){throw 2})}catch{}u.exports=function(E,S){if(!S&&!h)return!1;var P=!1;try{var k={};k[d]=function(){return{next:function(){return{done:P=!0}}}},E(k)}catch{}return P}},function(u,l,o){var d=o(18);u.exports=function(h,b){var g=[][h];return!!g&&d(function(){g.call(null,b||function(){throw 1},1)})}},function(u,l){u.exports=function(o){if(!o.webpackPolyfill){var d=Object.create(o);d.children||(d.children=[]),Object.defineProperty(d,"loaded",{enumerable:!0,get:function(){return d.l}}),Object.defineProperty(d,"id",{enumerable:!0,get:function(){return d.i}}),Object.defineProperty(d,"exports",{enumerable:!0}),d.webpackPolyfill=1}return d}},function(u,l,o){o(19);var d=o(15),h=o(42),b=o(103),g=o(18),E=o(28),S=o(57),P=E("species"),k=RegExp.prototype;u.exports=function(M,C,N,L){var U=E(M),W=!g(function(){var Z={};return Z[U]=function(){return 7},""[M](Z)!=7}),X=W&&!g(function(){var Z=!1,J=/a/;return M==="split"&&((J={}).constructor={},J.constructor[P]=function(){return J},J.flags="",J[U]=/./[U]),J.exec=function(){return Z=!0,null},J[U](""),!Z});if(!W||!X||N){var Q=d(/./[U]),te=C(U,""[M],function(Z,J,H,B,V){var Y=d(Z),q=J.exec;return q===b||q===k.exec?W&&!V?{done:!0,value:Q(J,H,B)}:{done:!0,value:Y(H,J,B)}:{done:!1}});h(String.prototype,M,te[0]),h(k,U,te[1])}L&&S(k[U],"sham",!0)}},function(u,l,o){var d=o(151).charAt;u.exports=function(h,b,g){return b+(g?d(h,b).length:1)}},function(u,l,o){var d=o(7),h=o(34),b=o(32),g=o(30),E=o(51),S=o(103),P=d.TypeError;u.exports=function(k,M){var C=k.exec;if(g(C)){var N=h(C,k,M);return N!==null&&b(N),N}if(E(k)==="RegExp")return h(S,k,M);throw P("RegExp#exec called on incompatible receiver")}},function(u,l,o){var d=o(76),h=o(34),b=o(15),g=o(123),E=o(18),S=o(32),P=o(30),k=o(59),M=o(94),C=o(39),N=o(44),L=o(124),U=o(62),W=o(201),X=o(125),Q=o(28)("replace"),te=Math.max,Z=Math.min,J=b([].concat),H=b([].push),B=b("".indexOf),V=b("".slice),Y="a".replace(/./,"$0")==="$0",q=!!/./[Q]&&/./[Q]("a","$0")==="";g("replace",function(ue,xe,be){var Ae=q?"$":"$0";return[function(Fe,je){var ve=N(this),Pe=Fe==null?void 0:U(Fe,Q);return Pe?h(Pe,Fe,ve,je):h(xe,C(ve),Fe,je)},function(Fe,je){var ve=S(this),Pe=C(Fe);if(typeof je=="string"&&B(je,Ae)===-1&&B(je,"$<")===-1){var Te=be(xe,ve,Pe,je);if(Te.done)return Te.value}var We=P(je);We||(je=C(je));var it=ve.global;if(it){var xt=ve.unicode;ve.lastIndex=0}for(var Ye=[];;){var Je=X(ve,Pe);if(Je===null||(H(Ye,Je),!it))break;C(Je[0])===""&&(ve.lastIndex=L(Pe,M(ve.lastIndex),xt))}for(var mt,se="",ce=0,ge=0;ge<Ye.length;ge++){for(var De=C((Je=Ye[ge])[0]),Ue=te(Z(k(Je.index),Pe.length),0),ze=[],Et=1;Et<Je.length;Et++)H(ze,(mt=Je[Et])===void 0?mt:String(mt));var Rt=Je.groups;if(We){var At=J([De],ze,Ue,Pe);Rt!==void 0&&H(At,Rt);var gt=C(d(je,void 0,At))}else gt=W(De,Pe,Ue,ze,Rt,je);Ue>=ce&&(se+=V(Pe,ce,Ue)+gt,ce=Ue+De.length)}return se+V(Pe,ce)}]},!!E(function(){var ue=/./;return ue.exec=function(){var xe=[];return xe.groups={a:"7"},xe},"".replace(ue,"$<a>")!=="7"})||!Y||q)},function(u,l,o){var d=o(16),h=Math.hypot,b=Math.abs,g=Math.sqrt;d({target:"Math",stat:!0,forced:!!h&&h(1/0,NaN)!==1/0},{hypot:function(E,S){for(var P,k,M=0,C=0,N=arguments.length,L=0;C<N;)L<(P=b(arguments[C++]))?(M=M*(k=L/P)*k+1,L=P):M+=P>0?(k=P/L)*k:P;return L===1/0?1/0:L*g(M)}})},function(u,l,o){var d=o(51),h=o(7);u.exports=d(h.process)=="process"},function(u,l,o){o(16)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(u,l,o){(function(d,h){var b;/**
- * @license
- * Lodash <https://lodash.com/>
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
- * Released under MIT license <https://lodash.com/license>
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- */(function(){var g,E="Expected a function",S="__lodash_hash_undefined__",P="__lodash_placeholder__",k=16,M=32,C=64,N=128,L=256,U=1/0,W=9007199254740991,X=NaN,Q=4294967295,te=[["ary",N],["bind",1],["bindKey",2],["curry",8],["curryRight",k],["flip",512],["partial",M],["partialRight",C],["rearg",L]],Z="[object Arguments]",J="[object Array]",H="[object Boolean]",B="[object Date]",V="[object Error]",Y="[object Function]",q="[object GeneratorFunction]",ue="[object Map]",xe="[object Number]",be="[object Object]",Ae="[object Promise]",Fe="[object RegExp]",je="[object Set]",ve="[object String]",Pe="[object Symbol]",Te="[object WeakMap]",We="[object ArrayBuffer]",it="[object DataView]",xt="[object Float32Array]",Ye="[object Float64Array]",Je="[object Int8Array]",mt="[object Int16Array]",se="[object Int32Array]",ce="[object Uint8Array]",ge="[object Uint8ClampedArray]",De="[object Uint16Array]",Ue="[object Uint32Array]",ze=/\b__p \+= '';/g,Et=/\b(__p \+=) '' \+/g,Rt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,At=/&(?:amp|lt|gt|quot|#39);/g,gt=/[&<>"']/g,Me=RegExp(At.source),lt=RegExp(gt.source),fe=/<%-([\s\S]+?)%>/g,at=/<%([\s\S]+?)%>/g,$t=/<%=([\s\S]+?)%>/g,hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wt=/^\w*$/,on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_n=/[\\^$.*+?()[\]{}|]/g,Nn=RegExp(_n.source),Bt=/^\s+/,Xn=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,de=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,_e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/[()=,{}\[\]\/\s]/,Ke=/\\(\\)?/g,pt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vt=/\w*$/,ir=/^[-+]0x[0-9a-f]+$/i,yr=/^0b[01]+$/i,Yn=/^\[object .+?Constructor\]$/,Zn=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,St=/($^)/,zt=/['\n\r\u2028\u2029\\]/g,bn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",zn="\\u2700-\\u27bf",Wo="a-z\\xdf-\\xf6\\xf8-\\xff",xo="A-Z\\xc0-\\xd6\\xd8-\\xde",Go="\\ufe0e\\ufe0f",zi="\\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",$l="['\u2019]",Wu="[\\ud800-\\udfff]",qr="["+zi+"]",wa="["+bn+"]",ft="\\d+",Wl="[\\u2700-\\u27bf]",Gu="["+Wo+"]",Uu="[^\\ud800-\\udfff"+zi+ft+zn+Wo+xo+"]",Dr="\\ud83c[\\udffb-\\udfff]",Fr="[^\\ud800-\\udfff]",Ja="(?:\\ud83c[\\udde6-\\uddff]){2}",fo="[\\ud800-\\udbff][\\udc00-\\udfff]",Zr="["+xo+"]",po="(?:"+Gu+"|"+Uu+")",Hu="(?:"+Zr+"|"+Uu+")",Xu="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",ns="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",xa="(?:"+wa+"|"+Dr+")?",rs="[\\ufe0e\\ufe0f]?",Yu=rs+xa+("(?:\\u200d(?:"+[Fr,Ja,fo].join("|")+")"+rs+xa+")*"),Gl="(?:"+[Wl,Ja,fo].join("|")+")"+Yu,pi="(?:"+[Fr+wa+"?",wa,Ja,fo,Wu].join("|")+")",os=RegExp($l,"g"),Uo=RegExp(wa,"g"),Vu=RegExp(Dr+"(?="+Dr+")|"+pi+Yu,"g"),Qa=RegExp([Zr+"?"+Gu+"+"+Xu+"(?="+[qr,Zr,"$"].join("|")+")",Hu+"+"+ns+"(?="+[qr,Zr+po,"$"].join("|")+")",Zr+"?"+po+"+"+Xu,Zr+"+"+ns,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ft,Gl].join("|"),"g"),Ku=RegExp("[\\u200d\\ud800-\\udfff"+bn+Go+"]"),qu=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ul=["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"],is=-1,vn={};vn[xt]=vn[Ye]=vn[Je]=vn[mt]=vn[se]=vn[ce]=vn[ge]=vn[De]=vn[Ue]=!0,vn[Z]=vn[J]=vn[We]=vn[H]=vn[it]=vn[B]=vn[V]=vn[Y]=vn[ue]=vn[xe]=vn[be]=vn[Fe]=vn[je]=vn[ve]=vn[Te]=!1;var yn={};yn[Z]=yn[J]=yn[We]=yn[it]=yn[H]=yn[B]=yn[xt]=yn[Ye]=yn[Je]=yn[mt]=yn[se]=yn[ue]=yn[xe]=yn[be]=yn[Fe]=yn[je]=yn[ve]=yn[Pe]=yn[ce]=yn[ge]=yn[De]=yn[Ue]=!0,yn[V]=yn[Y]=yn[Te]=!1;var as={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Fi=parseFloat,Ho=parseInt,Zu=typeof d=="object"&&d&&d.Object===Object&&d,us=typeof self=="object"&&self&&self.Object===Object&&self,Un=Zu||us||Function("return this")(),Ju=l&&!l.nodeType&&l,Ea=Ju&&typeof h=="object"&&h&&!h.nodeType&&h,Qu=Ea&&Ea.exports===Ju,eu=Qu&&Zu.process,vr=function(){try{var we=Ea&&Ea.require&&Ea.require("util").types;return we||eu&&eu.binding&&eu.binding("util")}catch{}}(),ec=vr&&vr.isArrayBuffer,cs=vr&&vr.isDate,tc=vr&&vr.isMap,tu=vr&&vr.isRegExp,$i=vr&&vr.isSet,Eo=vr&&vr.isTypedArray;function jn(we,Ne,Ie){switch(Ie.length){case 0:return we.call(Ne);case 1:return we.call(Ne,Ie[0]);case 2:return we.call(Ne,Ie[0],Ie[1]);case 3:return we.call(Ne,Ie[0],Ie[1],Ie[2])}return we.apply(Ne,Ie)}function ss(we,Ne,Ie,et){for(var Gt=-1,en=we==null?0:we.length;++Gt<en;){var Tn=we[Gt];Ne(et,Tn,Ie(Tn),we)}return et}function Nr(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et&&Ne(we[Ie],Ie,we)!==!1;);return we}function ls(we,Ne){for(var Ie=we==null?0:we.length;Ie--&&Ne(we[Ie],Ie,we)!==!1;);return we}function fs(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et;)if(!Ne(we[Ie],Ie,we))return!1;return!0}function jr(we,Ne){for(var Ie=-1,et=we==null?0:we.length,Gt=0,en=[];++Ie<et;){var Tn=we[Ie];Ne(Tn,Ie,we)&&(en[Gt++]=Tn)}return en}function Cr(we,Ne){return!!(we!=null&&we.length)&&Wi(we,Ne,0)>-1}function nc(we,Ne,Ie){for(var et=-1,Gt=we==null?0:we.length;++et<Gt;)if(Ie(Ne,we[et]))return!0;return!1}function ln(we,Ne){for(var Ie=-1,et=we==null?0:we.length,Gt=Array(et);++Ie<et;)Gt[Ie]=Ne(we[Ie],Ie,we);return Gt}function ar(we,Ne){for(var Ie=-1,et=Ne.length,Gt=we.length;++Ie<et;)we[Gt+Ie]=Ne[Ie];return we}function nu(we,Ne,Ie,et){var Gt=-1,en=we==null?0:we.length;for(et&&en&&(Ie=we[++Gt]);++Gt<en;)Ie=Ne(Ie,we[Gt],Gt,we);return Ie}function ps(we,Ne,Ie,et){var Gt=we==null?0:we.length;for(et&&Gt&&(Ie=we[--Gt]);Gt--;)Ie=Ne(Ie,we[Gt],Gt,we);return Ie}function rc(we,Ne){for(var Ie=-1,et=we==null?0:we.length;++Ie<et;)if(Ne(we[Ie],Ie,we))return!0;return!1}var ru=Ir("length");function So(we,Ne,Ie){var et;return Ie(we,function(Gt,en,Tn){if(Ne(Gt,en,Tn))return et=en,!1}),et}function Xo(we,Ne,Ie,et){for(var Gt=we.length,en=Ie+(et?1:-1);et?en--:++en<Gt;)if(Ne(we[en],en,we))return en;return-1}function Wi(we,Ne,Ie){return Ne==Ne?function(et,Gt,en){for(var Tn=en-1,O=et.length;++Tn<O;)if(et[Tn]===Gt)return Tn;return-1}(we,Ne,Ie):Xo(we,Yo,Ie)}function Rr(we,Ne,Ie,et){for(var Gt=Ie-1,en=we.length;++Gt<en;)if(et(we[Gt],Ne))return Gt;return-1}function Yo(we){return we!=we}function an(we,Ne){var Ie=we==null?0:we.length;return Ie?ou(we,Ne)/Ie:X}function Ir(we){return function(Ne){return Ne==null?g:Ne[we]}}function jo(we){return function(Ne){return we==null?g:we[Ne]}}function fr(we,Ne,Ie,et,Gt){return Gt(we,function(en,Tn,O){Ie=et?(et=!1,en):Ne(Ie,en,Tn,O)}),Ie}function ou(we,Ne){for(var Ie,et=-1,Gt=we.length;++et<Gt;){var en=Ne(we[et]);en!==g&&(Ie=Ie===g?en:Ie+en)}return Ie}function Sa(we,Ne){for(var Ie=-1,et=Array(we);++Ie<we;)et[Ie]=Ne(Ie);return et}function oc(we){return we&&we.slice(0,Lr(we)+1).replace(Bt,"")}function Fn(we){return function(Ne){return we(Ne)}}function iu(we,Ne){return ln(Ne,function(Ie){return we[Ie]})}function Vo(we,Ne){return we.has(Ne)}function Jr(we,Ne){for(var Ie=-1,et=we.length;++Ie<et&&Wi(Ne,we[Ie],0)>-1;);return Ie}function ic(we,Ne){for(var Ie=we.length;Ie--&&Wi(Ne,we[Ie],0)>-1;);return Ie}function Hl(we,Ne){for(var Ie=we.length,et=0;Ie--;)we[Ie]===Ne&&++et;return et}var ac=jo({\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"}),Vn=jo({"&":"&","<":"<",">":">",'"':""","'":"'"});function di(we){return"\\"+as[we]}function Po(we){return Ku.test(we)}function Pr(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et,Gt){Ie[++Ne]=[Gt,et]}),Ie}function uc(we,Ne){return function(Ie){return we(Ne(Ie))}}function $r(we,Ne){for(var Ie=-1,et=we.length,Gt=0,en=[];++Ie<et;){var Tn=we[Ie];Tn!==Ne&&Tn!==P||(we[Ie]=P,en[Gt++]=Ie)}return en}function hi(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et){Ie[++Ne]=et}),Ie}function au(we){var Ne=-1,Ie=Array(we.size);return we.forEach(function(et){Ie[++Ne]=[et,et]}),Ie}function Ao(we){return Po(we)?function(Ne){for(var Ie=Vu.lastIndex=0;Vu.test(Ne);)++Ie;return Ie}(we):ru(we)}function Wr(we){return Po(we)?function(Ne){return Ne.match(Vu)||[]}(we):function(Ne){return Ne.split("")}(we)}function Lr(we){for(var Ne=we.length;Ne--&&Xn.test(we.charAt(Ne)););return Ne}var Qr=jo({"&":"&","<":"<",">":">",""":'"',"'":"'"}),To=function we(Ne){var Ie,et=(Ne=Ne==null?Un:To.defaults(Un.Object(),Ne,To.pick(Un,Ul))).Array,Gt=Ne.Date,en=Ne.Error,Tn=Ne.Function,O=Ne.Math,w=Ne.Object,T=Ne.RegExp,z=Ne.String,ee=Ne.TypeError,pe=et.prototype,Se=Tn.prototype,$e=w.prototype,ct=Ne["__core-js_shared__"],qt=Se.toString,tt=$e.hasOwnProperty,On=0,Ut=(Ie=/[^.]+$/.exec(ct&&ct.keys&&ct.keys.IE_PROTO||""))?"Symbol(src)_1."+Ie:"",fn=$e.toString,eo=qt.call(w),Rn=Un._,Br=T("^"+qt.call(tt).replace(_n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ko=Qu?Ne.Buffer:g,qo=Ne.Symbol,ja=Ne.Uint8Array,cc=Ko?Ko.allocUnsafe:g,yi=uc(w.getPrototypeOf,w),uu=w.create,Ar=$e.propertyIsEnumerable,Pa=pe.splice,Gi=qo?qo.isConcatSpreadable:g,vi=qo?qo.iterator:g,gi=qo?qo.toStringTag:g,cu=function(){try{var f=Da(w,"defineProperty");return f({},"",{}),f}catch{}}(),qy=Ne.clearTimeout!==Un.clearTimeout&&Ne.clearTimeout,Zy=Gt&&Gt.now!==Un.Date.now&&Gt.now,Up=Ne.setTimeout!==Un.setTimeout&&Ne.setTimeout,ds=O.ceil,su=O.floor,Xl=w.getOwnPropertySymbols,Jy=Ko?Ko.isBuffer:g,Hp=Ne.isFinite,Yl=pe.join,Xp=uc(w.keys,w),pr=O.max,Tr=O.min,hs=Gt.now,ys=Ne.parseInt,vs=O.random,Qy=pe.reverse,lu=Da(Ne,"DataView"),Zo=Da(Ne,"Map"),Vl=Da(Ne,"Promise"),Aa=Da(Ne,"Set"),fu=Da(Ne,"WeakMap"),sc=Da(w,"create"),gs=fu&&new fu,pu={},ev=Qi(lu),Yp=Qi(Zo),tv=Qi(Vl),nv=Qi(Aa),Vp=Qi(fu),bs=qo?qo.prototype:g,mr=bs?bs.valueOf:g,Kp=bs?bs.toString:g;function F(f){if(Wn(f)&&!Ht(f)&&!(f instanceof cn)){if(f instanceof ho)return f;if(tt.call(f,"__wrapped__"))return Tf(f)}return new ho(f)}var du=function(){function f(){}return function(y){if(!xn(y))return{};if(uu)return uu(y);f.prototype=y;var _=new f;return f.prototype=g,_}}();function lc(){}function ho(f,y){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!y,this.__index__=0,this.__values__=g}function cn(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Ta(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function wn(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function Jo(f){var y=-1,_=f==null?0:f.length;for(this.clear();++y<_;){var A=f[y];this.set(A[0],A[1])}}function Ui(f){var y=-1,_=f==null?0:f.length;for(this.__data__=new Jo;++y<_;)this.add(f[y])}function yo(f){var y=this.__data__=new wn(f);this.size=y.size}function Kl(f,y){var _=Ht(f),A=!_&&ea(f),R=!_&&!A&&mo(f),G=!_&&!A&&!R&&Na(f),ie=_||A||R||G,le=ie?Sa(f.length,z):[],Oe=le.length;for(var Le in f)!y&&!tt.call(f,Le)||ie&&(Le=="length"||R&&(Le=="offset"||Le=="parent")||G&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||Bn(Le,Oe))||le.push(Le);return le}function ql(f){var y=f.length;return y?f[of(0,y-1)]:g}function qp(f,y){return bc(Ur(f),Hi(y,0,f.length))}function Zp(f){return bc(Ur(f))}function ms(f,y,_){(_!==g&&!ro(f[y],_)||_===g&&!(y in f))&&Qo(f,y,_)}function hu(f,y,_){var A=f[y];tt.call(f,y)&&ro(A,_)&&(_!==g||y in f)||Qo(f,y,_)}function fc(f,y){for(var _=f.length;_--;)if(ro(f[_][0],y))return _;return-1}function Jp(f,y,_,A){return In(f,function(R,G,ie){y(A,R,_(R),ie)}),A}function Zl(f,y){return f&&ei(y,dr(y),f)}function Qo(f,y,_){y=="__proto__"&&cu?cu(f,y,{configurable:!0,enumerable:!0,value:_,writable:!0}):f[y]=_}function _s(f,y){for(var _=-1,A=y.length,R=et(A),G=f==null;++_<A;)R[_]=G?g:na(f,y[_]);return R}function Hi(f,y,_){return f==f&&(_!==g&&(f=f<=_?f:_),y!==g&&(f=f>=y?f:y)),f}function to(f,y,_,A,R,G){var ie,le=1&y,Oe=2&y,Le=4&y;if(_&&(ie=R?_(f,A,R,G):_(f)),ie!==g)return ie;if(!xn(f))return f;var Ce=Ht(f);if(Ce){if(ie=function(Be){var He=Be.length,Ft=new Be.constructor(He);return He&&typeof Be[0]=="string"&&tt.call(Be,"index")&&(Ft.index=Be.index,Ft.input=Be.input),Ft}(f),!le)return Ur(f,ie)}else{var Ge=Mr(f),st=Ge==Y||Ge==q;if(mo(f))return pf(f,le);if(Ge==be||Ge==Z||st&&!R){if(ie=Oe||st?{}:Sd(f),!le)return Oe?function(Be,He){return ei(Be,Of(Be),He)}(f,function(Be,He){return Be&&ei(He,xr(He),Be)}(ie,f)):function(Be,He){return ei(Be,yc(Be),He)}(f,Zl(ie,f))}else{if(!yn[Ge])return R?f:{};ie=function(Be,He,Ft){var nt=Be.constructor;switch(He){case We:return df(Be);case H:case B:return new nt(+Be);case it:return function(Mt,rn){var bt=rn?df(Mt.buffer):Mt.buffer;return new Mt.constructor(bt,Mt.byteOffset,Mt.byteLength)}(Be,Ft);case xt:case Ye:case Je:case mt:case se:case ce:case ge:case De:case Ue:return kn(Be,Ft);case ue:return new nt;case xe:case ve:return new nt(Be);case Fe:return function(Mt){var rn=new Mt.constructor(Mt.source,Vt.exec(Mt));return rn.lastIndex=Mt.lastIndex,rn}(Be);case je:return new nt;case Pe:return Dt=Be,mr?w(mr.call(Dt)):{}}var Dt}(f,Ge,le)}}G||(G=new yo);var vt=G.get(f);if(vt)return vt;G.set(f,ie),$f(f)?f.forEach(function(Be){ie.add(to(Be,y,_,Be,f,G))}):wr(f)&&f.forEach(function(Be,He){ie.set(He,to(Be,y,_,He,f,G))});var jt=Ce?g:(Le?Oe?bf:gf:Oe?xr:dr)(f);return Nr(jt||f,function(Be,He){jt&&(Be=f[He=Be]),hu(ie,He,to(Be,y,_,He,f,G))}),ie}function Jl(f,y,_){var A=_.length;if(f==null)return!A;for(f=w(f);A--;){var R=_[A],G=y[R],ie=f[R];if(ie===g&&!(R in f)||!G(ie))return!1}return!0}function Ql(f,y,_){if(typeof f!="function")throw new ee(E);return Ou(function(){f.apply(g,_)},y)}function bi(f,y,_,A){var R=-1,G=Cr,ie=!0,le=f.length,Oe=[],Le=y.length;if(!le)return Oe;_&&(y=ln(y,Fn(_))),A?(G=nc,ie=!1):y.length>=200&&(G=Vo,ie=!1,y=new Ui(y));e:for(;++R<le;){var Ce=f[R],Ge=_==null?Ce:_(Ce);if(Ce=A||Ce!==0?Ce:0,ie&&Ge==Ge){for(var st=Le;st--;)if(y[st]===Ge)continue e;Oe.push(Ce)}else G(y,Ge,A)||Oe.push(Ce)}return Oe}F.templateSettings={escape:fe,evaluate:at,interpolate:$t,variable:"",imports:{_:F}},F.prototype=lc.prototype,F.prototype.constructor=F,ho.prototype=du(lc.prototype),ho.prototype.constructor=ho,cn.prototype=du(lc.prototype),cn.prototype.constructor=cn,Ta.prototype.clear=function(){this.__data__=sc?sc(null):{},this.size=0},Ta.prototype.delete=function(f){var y=this.has(f)&&delete this.__data__[f];return this.size-=y?1:0,y},Ta.prototype.get=function(f){var y=this.__data__;if(sc){var _=y[f];return _===S?g:_}return tt.call(y,f)?y[f]:g},Ta.prototype.has=function(f){var y=this.__data__;return sc?y[f]!==g:tt.call(y,f)},Ta.prototype.set=function(f,y){var _=this.__data__;return this.size+=this.has(f)?0:1,_[f]=sc&&y===g?S:y,this},wn.prototype.clear=function(){this.__data__=[],this.size=0},wn.prototype.delete=function(f){var y=this.__data__,_=fc(y,f);return!(_<0)&&(_==y.length-1?y.pop():Pa.call(y,_,1),--this.size,!0)},wn.prototype.get=function(f){var y=this.__data__,_=fc(y,f);return _<0?g:y[_][1]},wn.prototype.has=function(f){return fc(this.__data__,f)>-1},wn.prototype.set=function(f,y){var _=this.__data__,A=fc(_,f);return A<0?(++this.size,_.push([f,y])):_[A][1]=y,this},Jo.prototype.clear=function(){this.size=0,this.__data__={hash:new Ta,map:new(Zo||wn),string:new Ta}},Jo.prototype.delete=function(f){var y=Ls(this,f).delete(f);return this.size-=y?1:0,y},Jo.prototype.get=function(f){return Ls(this,f).get(f)},Jo.prototype.has=function(f){return Ls(this,f).has(f)},Jo.prototype.set=function(f,y){var _=Ls(this,f),A=_.size;return _.set(f,y),this.size+=_.size==A?0:1,this},Ui.prototype.add=Ui.prototype.push=function(f){return this.__data__.set(f,S),this},Ui.prototype.has=function(f){return this.__data__.has(f)},yo.prototype.clear=function(){this.__data__=new wn,this.size=0},yo.prototype.delete=function(f){var y=this.__data__,_=y.delete(f);return this.size=y.size,_},yo.prototype.get=function(f){return this.__data__.get(f)},yo.prototype.has=function(f){return this.__data__.has(f)},yo.prototype.set=function(f,y){var _=this.__data__;if(_ instanceof wn){var A=_.__data__;if(!Zo||A.length<199)return A.push([f,y]),this.size=++_.size,this;_=this.__data__=new Jo(A)}return _.set(f,y),this.size=_.size,this};var In=yd(dt),Qp=yd(Mn,!0);function ed(f,y){var _=!0;return In(f,function(A,R,G){return _=!!y(A,R,G)}),_}function Kn(f,y,_){for(var A=-1,R=f.length;++A<R;){var G=f[A],ie=y(G);if(ie!=null&&(le===g?ie==ie&&!Vr(ie):_(ie,le)))var le=ie,Oe=G}return Oe}function gn(f,y){var _=[];return In(f,function(A,R,G){y(A,R,G)&&_.push(A)}),_}function gr(f,y,_,A,R){var G=-1,ie=f.length;for(_||(_=cv),R||(R=[]);++G<ie;){var le=f[G];y>0&&_(le)?y>1?gr(le,y-1,_,A,R):ar(R,le):A||(R[R.length]=le)}return R}var Zt=vd(),Jn=vd(!0);function dt(f,y){return f&&Zt(f,y,dr)}function Mn(f,y){return f&&Jn(f,y,dr)}function Os(f,y){return jr(y,function(_){return Si(f[_])})}function mi(f,y){for(var _=0,A=(y=Yi(y,f)).length;f!=null&&_<A;)f=f[Mo(y[_++])];return _&&_==A?f:g}function ef(f,y,_){var A=y(f);return Ht(f)?A:ar(A,_(f))}function $n(f){return f==null?f===g?"[object Undefined]":"[object Null]":gi&&gi in w(f)?function(y){var _=tt.call(y,gi),A=y[gi];try{y[gi]=g;var R=!0}catch{}var G=fn.call(y);return R&&(_?y[gi]=A:delete y[gi]),G}(f):function(y){return fn.call(y)}(f)}function Hn(f,y){return f>y}function td(f,y){return f!=null&&tt.call(f,y)}function nd(f,y){return f!=null&&y in w(f)}function ws(f,y,_){for(var A=_?nc:Cr,R=f[0].length,G=f.length,ie=G,le=et(G),Oe=1/0,Le=[];ie--;){var Ce=f[ie];ie&&y&&(Ce=ln(Ce,Fn(y))),Oe=Tr(Ce.length,Oe),le[ie]=!_&&(y||R>=120&&Ce.length>=120)?new Ui(ie&&Ce):g}Ce=f[0];var Ge=-1,st=le[0];e:for(;++Ge<R&&Le.length<Oe;){var vt=Ce[Ge],jt=y?y(vt):vt;if(vt=_||vt!==0?vt:0,!(st?Vo(st,jt):A(Le,jt,_))){for(ie=G;--ie;){var Be=le[ie];if(!(Be?Vo(Be,jt):A(f[ie],jt,_)))continue e}st&&st.push(jt),Le.push(vt)}}return Le}function yu(f,y,_){var A=(f=Ef(f,y=Yi(y,f)))==null?f:f[Mo(Hr(y))];return A==null?g:jn(A,f,_)}function tf(f){return Wn(f)&&$n(f)==Z}function vu(f,y,_,A,R){return f===y||(f==null||y==null||!Wn(f)&&!Wn(y)?f!=f&&y!=y:function(G,ie,le,Oe,Le,Ce){var Ge=Ht(G),st=Ht(ie),vt=Ge?J:Mr(G),jt=st?J:Mr(ie),Be=(vt=vt==Z?be:vt)==be,He=(jt=jt==Z?be:jt)==be,Ft=vt==jt;if(Ft&&mo(G)){if(!mo(ie))return!1;Ge=!0,Be=!1}if(Ft&&!Be)return Ce||(Ce=new yo),Ge||Na(G)?xd(G,ie,le,Oe,Le,Ce):function(bt,Pt,Gn,me,Do,ur,ri){switch(Gn){case it:if(bt.byteLength!=Pt.byteLength||bt.byteOffset!=Pt.byteOffset)return!1;bt=bt.buffer,Pt=Pt.buffer;case We:return!(bt.byteLength!=Pt.byteLength||!ur(new ja(bt),new ja(Pt)));case H:case B:case xe:return ro(+bt,+Pt);case V:return bt.name==Pt.name&&bt.message==Pt.message;case Fe:case ve:return bt==Pt+"";case ue:var Ti=Pr;case je:var Su=1&me;if(Ti||(Ti=hi),bt.size!=Pt.size&&!Su)return!1;var Cc=ri.get(bt);if(Cc)return Cc==Pt;me|=2,ri.set(bt,Pt);var La=xd(Ti(bt),Ti(Pt),me,Do,ur,ri);return ri.delete(bt),La;case Pe:if(mr)return mr.call(bt)==mr.call(Pt)}return!1}(G,ie,vt,le,Oe,Le,Ce);if(!(1&le)){var nt=Be&&tt.call(G,"__wrapped__"),Dt=He&&tt.call(ie,"__wrapped__");if(nt||Dt){var Mt=nt?G.value():G,rn=Dt?ie.value():ie;return Ce||(Ce=new yo),Le(Mt,rn,le,Oe,Ce)}}return Ft?(Ce||(Ce=new yo),function(bt,Pt,Gn,me,Do,ur){var ri=1&Gn,Ti=gf(bt),Su=Ti.length,Cc=gf(Pt).length;if(Su!=Cc&&!ri)return!1;for(var La=Su;La--;){var oa=Ti[La];if(!(ri?oa in Pt:tt.call(Pt,oa)))return!1}var up=ur.get(bt),cp=ur.get(Pt);if(up&&cp)return up==Pt&&cp==bt;var Rc=!0;ur.set(bt,Pt),ur.set(Pt,bt);for(var tl=ri;++La<Su;){var ia=bt[oa=Ti[La]],Ic=Pt[oa];if(me)var sp=ri?me(Ic,ia,oa,Pt,bt,ur):me(ia,Ic,oa,bt,Pt,ur);if(!(sp===g?ia===Ic||Do(ia,Ic,Gn,me,ur):sp)){Rc=!1;break}tl||(tl=oa=="constructor")}if(Rc&&!tl){var aa=bt.constructor,Lc=Pt.constructor;aa==Lc||!("constructor"in bt)||!("constructor"in Pt)||typeof aa=="function"&&aa instanceof aa&&typeof Lc=="function"&&Lc instanceof Lc||(Rc=!1)}return ur.delete(bt),ur.delete(Pt),Rc}(G,ie,le,Oe,Le,Ce)):!1}(f,y,_,A,vu,R))}function xs(f,y,_,A){var R=_.length,G=R,ie=!A;if(f==null)return!G;for(f=w(f);R--;){var le=_[R];if(ie&&le[2]?le[1]!==f[le[0]]:!(le[0]in f))return!1}for(;++R<G;){var Oe=(le=_[R])[0],Le=f[Oe],Ce=le[1];if(ie&&le[2]){if(Le===g&&!(Oe in f))return!1}else{var Ge=new yo;if(A)var st=A(Le,Ce,Oe,f,y,Ge);if(!(st===g?vu(Ce,Le,3,A,Ge):st))return!1}}return!0}function gu(f){return!(!xn(f)||(y=f,Ut&&Ut in y))&&(Si(f)?Br:Yn).test(Qi(f));var y}function nf(f){return typeof f=="function"?f:f==null?Er:typeof f=="object"?Ht(f)?od(f[0],f[1]):rd(f):tr(f)}function _i(f){if(!gc(f))return Xp(f);var y=[];for(var _ in w(f))tt.call(f,_)&&_!="constructor"&&y.push(_);return y}function rv(f){if(!xn(f))return function(R){var G=[];if(R!=null)for(var ie in w(R))G.push(ie);return G}(f);var y=gc(f),_=[];for(var A in f)(A!="constructor"||!y&&tt.call(f,A))&&_.push(A);return _}function Oi(f,y){return f<y}function vo(f,y){var _=-1,A=Yr(f)?et(f.length):[];return In(f,function(R,G,ie){A[++_]=y(R,G,ie)}),A}function rd(f){var y=_f(f);return y.length==1&&y[0][2]?Bs(y[0][0],y[0][1]):function(_){return _===f||xs(_,f,y)}}function od(f,y){return wf(f)&&_u(y)?Bs(Mo(f),y):function(_){var A=na(_,f);return A===g&&A===y?Ca(_,f):vu(y,A,3)}}function Es(f,y,_,A,R){f!==y&&Zt(y,function(G,ie){if(R||(R=new yo),xn(G))(function(Oe,Le,Ce,Ge,st,vt,jt){var Be=ke(Oe,Ce),He=ke(Le,Ce),Ft=jt.get(He);if(Ft)return void ms(Oe,Ce,Ft);var nt=vt?vt(Be,He,Ce+"",Oe,Le,jt):g,Dt=nt===g;if(Dt){var Mt=Ht(He),rn=!Mt&&mo(He),bt=!Mt&&!rn&&Na(He);nt=He,Mt||rn||bt?Ht(Be)?nt=Be:er(Be)?nt=Ur(Be):rn?(Dt=!1,nt=pf(He,!0)):bt?(Dt=!1,nt=kn(He,!0)):nt=[]:ji(He)||ea(He)?(nt=Be,ea(Be)?nt=Hs(Be):xn(Be)&&!Si(Be)||(nt=Sd(He))):Dt=!1}Dt&&(jt.set(He,nt),st(nt,He,Ge,vt,jt),jt.delete(He)),ms(Oe,Ce,nt)})(f,y,ie,_,Es,A,R);else{var le=A?A(ke(f,ie),G,ie+"",f,y,R):g;le===g&&(le=G),ms(f,ie,le)}},xr)}function id(f,y){var _=f.length;if(_)return Bn(y+=y<0?_:0,_)?f[y]:g}function ad(f,y,_){y=y.length?ln(y,function(G){return Ht(G)?function(ie){return mi(ie,G.length===1?G[0]:G)}:G}):[Er];var A=-1;y=ln(y,Fn(kt()));var R=vo(f,function(G,ie,le){var Oe=ln(y,function(Le){return Le(G)});return{criteria:Oe,index:++A,value:G}});return function(G,ie){var le=G.length;for(G.sort(ie);le--;)G[le]=G[le].value;return G}(R,function(G,ie){return function(le,Oe,Le){for(var Ce=-1,Ge=le.criteria,st=Oe.criteria,vt=Ge.length,jt=Le.length;++Ce<vt;){var Be=hd(Ge[Ce],st[Ce]);if(Be)return Ce>=jt?Be:Be*(Le[Ce]=="desc"?-1:1)}return le.index-Oe.index}(G,ie,_)})}function ud(f,y,_){for(var A=-1,R=y.length,G={};++A<R;){var ie=y[A],le=mi(f,ie);_(le,ie)&&mu(G,Yi(ie,f),le)}return G}function rf(f,y,_,A){var R=A?Rr:Wi,G=-1,ie=y.length,le=f;for(f===y&&(y=Ur(y)),_&&(le=ln(f,Fn(_)));++G<ie;)for(var Oe=0,Le=y[G],Ce=_?_(Le):Le;(Oe=R(le,Ce,Oe,A))>-1;)le!==f&&Pa.call(le,Oe,1),Pa.call(f,Oe,1);return f}function bu(f,y){for(var _=f?y.length:0,A=_-1;_--;){var R=y[_];if(_==A||R!==G){var G=R;Bn(R)?Pa.call(f,R,1):Ps(f,R)}}return f}function of(f,y){return f+su(vs()*(y-f+1))}function Ss(f,y){var _="";if(!f||y<1||y>W)return _;do y%2&&(_+=f),(y=su(y/2))&&(f+=f);while(y);return _}function Qt(f,y){return zs(xf(f,y,Er),f+"")}function ov(f){return ql(Ia(f))}function af(f,y){var _=Ia(f);return bc(_,Hi(y,0,_.length))}function mu(f,y,_,A){if(!xn(f))return f;for(var R=-1,G=(y=Yi(y,f)).length,ie=G-1,le=f;le!=null&&++R<G;){var Oe=Mo(y[R]),Le=_;if(Oe==="__proto__"||Oe==="constructor"||Oe==="prototype")return f;if(R!=ie){var Ce=le[Oe];(Le=A?A(Ce,Oe,le):g)===g&&(Le=xn(Ce)?Ce:Bn(y[R+1])?[]:{})}hu(le,Oe,Le),le=le[Oe]}return f}var cd=gs?function(f,y){return gs.set(f,y),f}:Er,iv=cu?function(f,y){return cu(f,"toString",{configurable:!0,enumerable:!1,value:qf(y),writable:!0})}:Er;function av(f){return bc(Ia(f))}function go(f,y,_){var A=-1,R=f.length;y<0&&(y=-y>R?0:R+y),(_=_>R?R:_)<0&&(_+=R),R=y>_?0:_-y>>>0,y>>>=0;for(var G=et(R);++A<R;)G[A]=f[A+y];return G}function uf(f,y){var _;return In(f,function(A,R,G){return!(_=y(A,R,G))}),!!_}function js(f,y,_){var A=0,R=f==null?A:f.length;if(typeof y=="number"&&y==y&&R<=2147483647){for(;A<R;){var G=A+R>>>1,ie=f[G];ie!==null&&!Vr(ie)&&(_?ie<=y:ie<y)?A=G+1:R=G}return R}return cf(f,y,Er,_)}function cf(f,y,_,A){var R=0,G=f==null?0:f.length;if(G===0)return 0;for(var ie=(y=_(y))!=y,le=y===null,Oe=Vr(y),Le=y===g;R<G;){var Ce=su((R+G)/2),Ge=_(f[Ce]),st=Ge!==g,vt=Ge===null,jt=Ge==Ge,Be=Vr(Ge);if(ie)var He=A||jt;else He=Le?jt&&(A||st):le?jt&&st&&(A||!vt):Oe?jt&&st&&!vt&&(A||!Be):!vt&&!Be&&(A?Ge<=y:Ge<y);He?R=Ce+1:G=Ce}return Tr(G,4294967294)}function sd(f,y){for(var _=-1,A=f.length,R=0,G=[];++_<A;){var ie=f[_],le=y?y(ie):ie;if(!_||!ro(le,Oe)){var Oe=le;G[R++]=ie===0?0:ie}}return G}function sf(f){return typeof f=="number"?f:Vr(f)?X:+f}function Gr(f){if(typeof f=="string")return f;if(Ht(f))return ln(f,Gr)+"";if(Vr(f))return Kp?Kp.call(f):"";var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Xi(f,y,_){var A=-1,R=Cr,G=f.length,ie=!0,le=[],Oe=le;if(_)ie=!1,R=nc;else if(G>=200){var Le=y?null:yf(f);if(Le)return hi(Le);ie=!1,R=Vo,Oe=new Ui}else Oe=y?[]:le;e:for(;++A<G;){var Ce=f[A],Ge=y?y(Ce):Ce;if(Ce=_||Ce!==0?Ce:0,ie&&Ge==Ge){for(var st=Oe.length;st--;)if(Oe[st]===Ge)continue e;y&&Oe.push(Ge),le.push(Ce)}else R(Oe,Ge,_)||(Oe!==le&&Oe.push(Ge),le.push(Ce))}return le}function Ps(f,y){return(f=Ef(f,y=Yi(y,f)))==null||delete f[Mo(Hr(y))]}function ld(f,y,_,A){return mu(f,y,_(mi(f,y)),A)}function pc(f,y,_,A){for(var R=f.length,G=A?R:-1;(A?G--:++G<R)&&y(f[G],G,f););return _?go(f,A?0:G,A?G+1:R):go(f,A?G+1:0,A?R:G)}function fd(f,y){var _=f;return _ instanceof cn&&(_=_.value()),nu(y,function(A,R){return R.func.apply(R.thisArg,ar([A],R.args))},_)}function As(f,y,_){var A=f.length;if(A<2)return A?Xi(f[0]):[];for(var R=-1,G=et(A);++R<A;)for(var ie=f[R],le=-1;++le<A;)le!=R&&(G[R]=bi(G[R]||ie,f[le],y,_));return Xi(gr(G,1),y,_)}function pd(f,y,_){for(var A=-1,R=f.length,G=y.length,ie={};++A<R;){var le=A<G?y[A]:g;_(ie,f[A],le)}return ie}function Ts(f){return er(f)?f:[]}function lf(f){return typeof f=="function"?f:Er}function Yi(f,y){return Ht(f)?f:wf(f,y)?[f]:Af(En(f))}var dd=Qt;function Vi(f,y,_){var A=f.length;return _=_===g?A:_,!y&&_>=A?f:go(f,y,_)}var ff=qy||function(f){return Un.clearTimeout(f)};function pf(f,y){if(y)return f.slice();var _=f.length,A=cc?cc(_):new f.constructor(_);return f.copy(A),A}function df(f){var y=new f.constructor(f.byteLength);return new ja(y).set(new ja(f)),y}function kn(f,y){var _=y?df(f.buffer):f.buffer;return new f.constructor(_,f.byteOffset,f.length)}function hd(f,y){if(f!==y){var _=f!==g,A=f===null,R=f==f,G=Vr(f),ie=y!==g,le=y===null,Oe=y==y,Le=Vr(y);if(!le&&!Le&&!G&&f>y||G&&ie&&Oe&&!le&&!Le||A&&ie&&Oe||!_&&Oe||!R)return 1;if(!A&&!G&&!Le&&f<y||Le&&_&&R&&!A&&!G||le&&_&&R||!ie&&R||!Oe)return-1}return 0}function Ln(f,y,_,A){for(var R=-1,G=f.length,ie=_.length,le=-1,Oe=y.length,Le=pr(G-ie,0),Ce=et(Oe+Le),Ge=!A;++le<Oe;)Ce[le]=y[le];for(;++R<ie;)(Ge||R<G)&&(Ce[_[R]]=f[R]);for(;Le--;)Ce[le++]=f[R++];return Ce}function Ms(f,y,_,A){for(var R=-1,G=f.length,ie=-1,le=_.length,Oe=-1,Le=y.length,Ce=pr(G-le,0),Ge=et(Ce+Le),st=!A;++R<Ce;)Ge[R]=f[R];for(var vt=R;++Oe<Le;)Ge[vt+Oe]=y[Oe];for(;++ie<le;)(st||R<G)&&(Ge[vt+_[ie]]=f[R++]);return Ge}function Ur(f,y){var _=-1,A=f.length;for(y||(y=et(A));++_<A;)y[_]=f[_];return y}function ei(f,y,_,A){var R=!_;_||(_={});for(var G=-1,ie=y.length;++G<ie;){var le=y[G],Oe=A?A(_[le],f[le],le,_,f):g;Oe===g&&(Oe=f[le]),R?Qo(_,le,Oe):hu(_,le,Oe)}return _}function ks(f,y){return function(_,A){var R=Ht(_)?ss:Jp,G=y?y():{};return R(_,f,kt(A,2),G)}}function Ma(f){return Qt(function(y,_){var A=-1,R=_.length,G=R>1?_[R-1]:g,ie=R>2?_[2]:g;for(G=f.length>3&&typeof G=="function"?(R--,G):g,ie&&_r(_[0],_[1],ie)&&(G=R<3?g:G,R=1),y=w(y);++A<R;){var le=_[A];le&&f(y,le,A,G)}return y})}function yd(f,y){return function(_,A){if(_==null)return _;if(!Yr(_))return f(_,A);for(var R=_.length,G=y?R:-1,ie=w(_);(y?G--:++G<R)&&A(ie[G],G,ie)!==!1;);return _}}function vd(f){return function(y,_,A){for(var R=-1,G=w(y),ie=A(y),le=ie.length;le--;){var Oe=ie[f?le:++R];if(_(G[Oe],Oe,G)===!1)break}return y}}function gd(f){return function(y){var _=Po(y=En(y))?Wr(y):g,A=_?_[0]:y.charAt(0),R=_?Vi(_,1).join(""):y.slice(1);return A[f]()+R}}function Ki(f){return function(y){return nu(Vf(qs(y).replace(os,"")),f,"")}}function dc(f){return function(){var y=arguments;switch(y.length){case 0:return new f;case 1:return new f(y[0]);case 2:return new f(y[0],y[1]);case 3:return new f(y[0],y[1],y[2]);case 4:return new f(y[0],y[1],y[2],y[3]);case 5:return new f(y[0],y[1],y[2],y[3],y[4]);case 6:return new f(y[0],y[1],y[2],y[3],y[4],y[5]);case 7:return new f(y[0],y[1],y[2],y[3],y[4],y[5],y[6])}var _=du(f.prototype),A=f.apply(_,y);return xn(A)?A:_}}function bd(f){return function(y,_,A){var R=w(y);if(!Yr(y)){var G=kt(_,3);y=dr(y),_=function(le){return G(R[le],le,R)}}var ie=f(y,_,A);return ie>-1?R[G?y[ie]:ie]:g}}function md(f){return xi(function(y){var _=y.length,A=_,R=ho.prototype.thru;for(f&&y.reverse();A--;){var G=y[A];if(typeof G!="function")throw new ee(E);if(R&&!ie&&Is(G)=="wrapper")var ie=new ho([],!0)}for(A=ie?A:_;++A<_;){var le=Is(G=y[A]),Oe=le=="wrapper"?mf(G):g;ie=Oe&&vc(Oe[0])&&Oe[1]==424&&!Oe[4].length&&Oe[9]==1?ie[Is(Oe[0])].apply(ie,Oe[3]):G.length==1&&vc(G)?ie[le]():ie.thru(G)}return function(){var Le=arguments,Ce=Le[0];if(ie&&Le.length==1&&Ht(Ce))return ie.plant(Ce).value();for(var Ge=0,st=_?y[Ge].apply(this,Le):Ce;++Ge<_;)st=y[Ge].call(this,st);return st}})}function ka(f,y,_,A,R,G,ie,le,Oe,Le){var Ce=y&N,Ge=1&y,st=2&y,vt=24&y,jt=512&y,Be=st?g:dc(f);return function He(){for(var Ft=arguments.length,nt=et(Ft),Dt=Ft;Dt--;)nt[Dt]=arguments[Dt];if(vt)var Mt=Zi(He),rn=Hl(nt,Mt);if(A&&(nt=Ln(nt,A,R,vt)),G&&(nt=Ms(nt,G,ie,vt)),Ft-=rn,vt&&Ft<Le){var bt=$r(nt,Mt);return Cs(f,y,ka,He.placeholder,_,nt,bt,le,Oe,Le-Ft)}var Pt=Ge?_:this,Gn=st?Pt[f]:f;return Ft=nt.length,le?nt=sv(nt,le):jt&&Ft>1&&nt.reverse(),Ce&&Oe<Ft&&(nt.length=Oe),this&&this!==Un&&this instanceof He&&(Gn=Be||dc(Gn)),Gn.apply(Pt,nt)}}function _d(f,y){return function(_,A){return function(R,G,ie,le){return dt(R,function(Oe,Le,Ce){G(le,ie(Oe),Le,Ce)}),le}(_,f,y(A),{})}}function hc(f,y){return function(_,A){var R;if(_===g&&A===g)return y;if(_!==g&&(R=_),A!==g){if(R===g)return A;typeof _=="string"||typeof A=="string"?(_=Gr(_),A=Gr(A)):(_=sf(_),A=sf(A)),R=f(_,A)}return R}}function hf(f){return xi(function(y){return y=ln(y,Fn(kt())),Qt(function(_){var A=this;return f(y,function(R){return jn(R,A,_)})})})}function Ds(f,y){var _=(y=y===g?" ":Gr(y)).length;if(_<2)return _?Ss(y,f):y;var A=Ss(y,ds(f/Ao(y)));return Po(y)?Vi(Wr(A),0,f).join(""):A.slice(0,f)}function qi(f){return function(y,_,A){return A&&typeof A!="number"&&_r(y,_,A)&&(_=A=g),y=Pi(y),_===g?(_=y,y=0):_=Pi(_),function(R,G,ie,le){for(var Oe=-1,Le=pr(ds((G-R)/(ie||1)),0),Ce=et(Le);Le--;)Ce[le?Le:++Oe]=R,R+=ie;return Ce}(y,_,A=A===g?y<_?1:-1:Pi(A),f)}}function Ns(f){return function(y,_){return typeof y=="string"&&typeof _=="string"||(y=oo(y),_=oo(_)),f(y,_)}}function Cs(f,y,_,A,R,G,ie,le,Oe,Le){var Ce=8&y;y|=Ce?M:C,4&(y&=~(Ce?C:M))||(y&=-4);var Ge=[f,y,R,Ce?G:g,Ce?ie:g,Ce?g:G,Ce?g:ie,le,Oe,Le],st=_.apply(g,Ge);return vc(f)&&Sf(st,Ge),st.placeholder=A,jf(st,f,y)}function Rs(f){var y=O[f];return function(_,A){if(_=oo(_),(A=A==null?0:Tr(Yt(A),292))&&Hp(_)){var R=(En(_)+"e").split("e");return+((R=(En(y(R[0]+"e"+(+R[1]+A)))+"e").split("e"))[0]+"e"+(+R[1]-A))}return y(_)}}var yf=Aa&&1/hi(new Aa([,-0]))[1]==U?function(f){return new Aa(f)}:Dc;function vf(f){return function(y){var _=Mr(y);return _==ue?Pr(y):_==je?au(y):function(A,R){return ln(R,function(G){return[G,A[G]]})}(y,f(y))}}function wi(f,y,_,A,R,G,ie,le){var Oe=2&y;if(!Oe&&typeof f!="function")throw new ee(E);var Le=A?A.length:0;if(Le||(y&=-97,A=R=g),ie=ie===g?ie:pr(Yt(ie),0),le=le===g?le:Yt(le),Le-=R?R.length:0,y&C){var Ce=A,Ge=R;A=R=g}var st=Oe?g:mf(f),vt=[f,y,_,A,R,Ce,Ge,G,ie,le];if(st&&function(Be,He){var Ft=Be[1],nt=He[1],Dt=Ft|nt,Mt=Dt<131,rn=nt==N&&Ft==8||nt==N&&Ft==L&&Be[7].length<=He[8]||nt==384&&He[7].length<=He[8]&&Ft==8;if(!Mt&&!rn)return Be;1&nt&&(Be[2]=He[2],Dt|=1&Ft?0:4);var bt=He[3];if(bt){var Pt=Be[3];Be[3]=Pt?Ln(Pt,bt,He[4]):bt,Be[4]=Pt?$r(Be[3],P):He[4]}(bt=He[5])&&(Pt=Be[5],Be[5]=Pt?Ms(Pt,bt,He[6]):bt,Be[6]=Pt?$r(Be[5],P):He[6]),(bt=He[7])&&(Be[7]=bt),nt&N&&(Be[8]=Be[8]==null?He[8]:Tr(Be[8],He[8])),Be[9]==null&&(Be[9]=He[9]),Be[0]=He[0],Be[1]=Dt}(vt,st),f=vt[0],y=vt[1],_=vt[2],A=vt[3],R=vt[4],!(le=vt[9]=vt[9]===g?Oe?0:f.length:pr(vt[9]-Le,0))&&24&y&&(y&=-25),y&&y!=1)jt=y==8||y==k?function(Be,He,Ft){var nt=dc(Be);return function Dt(){for(var Mt=arguments.length,rn=et(Mt),bt=Mt,Pt=Zi(Dt);bt--;)rn[bt]=arguments[bt];var Gn=Mt<3&&rn[0]!==Pt&&rn[Mt-1]!==Pt?[]:$r(rn,Pt);return(Mt-=Gn.length)<Ft?Cs(Be,He,ka,Dt.placeholder,g,rn,Gn,g,g,Ft-Mt):jn(this&&this!==Un&&this instanceof Dt?nt:Be,this,rn)}}(f,y,le):y!=M&&y!=33||R.length?ka.apply(g,vt):function(Be,He,Ft,nt){var Dt=1&He,Mt=dc(Be);return function rn(){for(var bt=-1,Pt=arguments.length,Gn=-1,me=nt.length,Do=et(me+Pt),ur=this&&this!==Un&&this instanceof rn?Mt:Be;++Gn<me;)Do[Gn]=nt[Gn];for(;Pt--;)Do[Gn++]=arguments[++bt];return jn(ur,Dt?Ft:this,Do)}}(f,y,_,A);else var jt=function(Be,He,Ft){var nt=1&He,Dt=dc(Be);return function Mt(){return(this&&this!==Un&&this instanceof Mt?Dt:Be).apply(nt?Ft:this,arguments)}}(f,y,_);return jf((st?cd:Sf)(jt,vt),f,y)}function Od(f,y,_,A){return f===g||ro(f,$e[_])&&!tt.call(A,_)?y:f}function wd(f,y,_,A,R,G){return xn(f)&&xn(y)&&(G.set(y,f),Es(f,y,g,wd,G),G.delete(y)),f}function uv(f){return ji(f)?g:f}function xd(f,y,_,A,R,G){var ie=1&_,le=f.length,Oe=y.length;if(le!=Oe&&!(ie&&Oe>le))return!1;var Le=G.get(f),Ce=G.get(y);if(Le&&Ce)return Le==y&&Ce==f;var Ge=-1,st=!0,vt=2&_?new Ui:g;for(G.set(f,y),G.set(y,f);++Ge<le;){var jt=f[Ge],Be=y[Ge];if(A)var He=ie?A(Be,jt,Ge,y,f,G):A(jt,Be,Ge,f,y,G);if(He!==g){if(He)continue;st=!1;break}if(vt){if(!rc(y,function(Ft,nt){if(!Vo(vt,nt)&&(jt===Ft||R(jt,Ft,_,A,G)))return vt.push(nt)})){st=!1;break}}else if(jt!==Be&&!R(jt,Be,_,A,G)){st=!1;break}}return G.delete(f),G.delete(y),st}function xi(f){return zs(xf(f,g,Df),f+"")}function gf(f){return ef(f,dr,yc)}function bf(f){return ef(f,xr,Of)}var mf=gs?function(f){return gs.get(f)}:Dc;function Is(f){for(var y=f.name+"",_=pu[y],A=tt.call(pu,y)?_.length:0;A--;){var R=_[A],G=R.func;if(G==null||G==f)return R.name}return y}function Zi(f){return(tt.call(F,"placeholder")?F:f).placeholder}function kt(){var f=F.iteratee||Eu;return f=f===Eu?nf:f,arguments.length?f(arguments[0],arguments[1]):f}function Ls(f,y){var _,A,R=f.__data__;return((A=typeof(_=y))=="string"||A=="number"||A=="symbol"||A=="boolean"?_!=="__proto__":_===null)?R[typeof y=="string"?"string":"hash"]:R.map}function _f(f){for(var y=dr(f),_=y.length;_--;){var A=y[_],R=f[A];y[_]=[A,R,_u(R)]}return y}function Da(f,y){var _=function(A,R){return A==null?g:A[R]}(f,y);return gu(_)?_:g}var yc=Xl?function(f){return f==null?[]:(f=w(f),jr(Xl(f),function(y){return Ar.call(f,y)}))}:Nc,Of=Xl?function(f){for(var y=[];f;)ar(y,yc(f)),f=yi(f);return y}:Nc,Mr=$n;function Ed(f,y,_){for(var A=-1,R=(y=Yi(y,f)).length,G=!1;++A<R;){var ie=Mo(y[A]);if(!(G=f!=null&&_(f,ie)))break;f=f[ie]}return G||++A!=R?G:!!(R=f==null?0:f.length)&&ta(R)&&Bn(ie,R)&&(Ht(f)||ea(f))}function Sd(f){return typeof f.constructor!="function"||gc(f)?{}:du(yi(f))}function cv(f){return Ht(f)||ea(f)||!!(Gi&&f&&f[Gi])}function Bn(f,y){var _=typeof f;return!!(y=y==null?W:y)&&(_=="number"||_!="symbol"&&ut.test(f))&&f>-1&&f%1==0&&f<y}function _r(f,y,_){if(!xn(_))return!1;var A=typeof y;return!!(A=="number"?Yr(_)&&Bn(y,_.length):A=="string"&&y in _)&&ro(_[y],f)}function wf(f,y){if(Ht(f))return!1;var _=typeof f;return!(_!="number"&&_!="symbol"&&_!="boolean"&&f!=null&&!Vr(f))||Wt.test(f)||!hn.test(f)||y!=null&&f in w(y)}function vc(f){var y=Is(f),_=F[y];if(typeof _!="function"||!(y in cn.prototype))return!1;if(f===_)return!0;var A=mf(_);return!!A&&f===A[0]}(lu&&Mr(new lu(new ArrayBuffer(1)))!=it||Zo&&Mr(new Zo)!=ue||Vl&&Mr(Vl.resolve())!=Ae||Aa&&Mr(new Aa)!=je||fu&&Mr(new fu)!=Te)&&(Mr=function(f){var y=$n(f),_=y==be?f.constructor:g,A=_?Qi(_):"";if(A)switch(A){case ev:return it;case Yp:return ue;case tv:return Ae;case nv:return je;case Vp:return Te}return y});var Ji=ct?Si:el;function gc(f){var y=f&&f.constructor;return f===(typeof y=="function"&&y.prototype||$e)}function _u(f){return f==f&&!xn(f)}function Bs(f,y){return function(_){return _!=null&&_[f]===y&&(y!==g||f in w(_))}}function xf(f,y,_){return y=pr(y===g?f.length-1:y,0),function(){for(var A=arguments,R=-1,G=pr(A.length-y,0),ie=et(G);++R<G;)ie[R]=A[y+R];R=-1;for(var le=et(y+1);++R<y;)le[R]=A[R];return le[y]=_(ie),jn(f,this,le)}}function Ef(f,y){return y.length<2?f:mi(f,go(y,0,-1))}function sv(f,y){for(var _=f.length,A=Tr(y.length,_),R=Ur(f);A--;){var G=y[A];f[A]=Bn(G,_)?R[G]:g}return f}function ke(f,y){if((y!=="constructor"||typeof f[y]!="function")&&y!="__proto__")return f[y]}var Sf=Pf(cd),Ou=Up||function(f,y){return Un.setTimeout(f,y)},zs=Pf(iv);function jf(f,y,_){var A=y+"";return zs(f,function(R,G){var ie=G.length;if(!ie)return R;var le=ie-1;return G[le]=(ie>1?"& ":"")+G[le],G=G.join(ie>2?", ":" "),R.replace(ne,`{
- /* [wrapped with `+G+`] */
- `)}(A,function(R,G){return Nr(te,function(ie){var le="_."+ie[0];G&ie[1]&&!Cr(R,le)&&R.push(le)}),R.sort()}(function(R){var G=R.match(de);return G?G[1].split(ae):[]}(A),_)))}function Pf(f){var y=0,_=0;return function(){var A=hs(),R=16-(A-_);if(_=A,R>0){if(++y>=800)return arguments[0]}else y=0;return f.apply(g,arguments)}}function bc(f,y){var _=-1,A=f.length,R=A-1;for(y=y===g?A:y;++_<y;){var G=of(_,R),ie=f[G];f[G]=f[_],f[_]=ie}return f.length=y,f}var Af=function(f){var y=xc(f,function(A){return _.size===500&&_.clear(),A}),_=y.cache;return y}(function(f){var y=[];return f.charCodeAt(0)===46&&y.push(""),f.replace(on,function(_,A,R,G){y.push(R?G.replace(Ke,"$1"):A||_)}),y});function Mo(f){if(typeof f=="string"||Vr(f))return f;var y=f+"";return y=="0"&&1/f==-1/0?"-0":y}function Qi(f){if(f!=null){try{return qt.call(f)}catch{}try{return f+""}catch{}}return""}function Tf(f){if(f instanceof cn)return f.clone();var y=new ho(f.__wrapped__,f.__chain__);return y.__actions__=Ur(f.__actions__),y.__index__=f.__index__,y.__values__=f.__values__,y}var jd=Qt(function(f,y){return er(f)?bi(f,gr(y,1,er,!0)):[]}),Pd=Qt(function(f,y){var _=Hr(y);return er(_)&&(_=g),er(f)?bi(f,gr(y,1,er,!0),kt(_,2)):[]}),Ad=Qt(function(f,y){var _=Hr(y);return er(_)&&(_=g),er(f)?bi(f,gr(y,1,er,!0),g,_):[]});function Mf(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var R=_==null?0:Yt(_);return R<0&&(R=pr(A+R,0)),Xo(f,kt(y,3),R)}function kf(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var R=A-1;return _!==g&&(R=Yt(_),R=_<0?pr(A+R,0):Tr(R,A-1)),Xo(f,kt(y,3),R,!0)}function Df(f){return f!=null&&f.length?gr(f,1):[]}function Nf(f){return f&&f.length?f[0]:g}var Td=Qt(function(f){var y=ln(f,Ts);return y.length&&y[0]===f[0]?ws(y):[]}),Md=Qt(function(f){var y=Hr(f),_=ln(f,Ts);return y===Hr(_)?y=g:_.pop(),_.length&&_[0]===f[0]?ws(_,kt(y,2)):[]}),kd=Qt(function(f){var y=Hr(f),_=ln(f,Ts);return(y=typeof y=="function"?y:g)&&_.pop(),_.length&&_[0]===f[0]?ws(_,g,y):[]});function Hr(f){var y=f==null?0:f.length;return y?f[y-1]:g}var Fs=Qt(Dd);function Dd(f,y){return f&&f.length&&y&&y.length?rf(f,y):f}var ko=xi(function(f,y){var _=f==null?0:f.length,A=_s(f,y);return bu(f,ln(y,function(R){return Bn(R,_)?+R:R}).sort(hd)),A});function ti(f){return f==null?f:Qy.call(f)}var lv=Qt(function(f){return Xi(gr(f,1,er,!0))}),no=Qt(function(f){var y=Hr(f);return er(y)&&(y=g),Xi(gr(f,1,er,!0),kt(y,2))}),Nd=Qt(function(f){var y=Hr(f);return y=typeof y=="function"?y:g,Xi(gr(f,1,er,!0),g,y)});function mc(f){if(!f||!f.length)return[];var y=0;return f=jr(f,function(_){if(er(_))return y=pr(_.length,y),!0}),Sa(y,function(_){return ln(f,Ir(_))})}function Cf(f,y){if(!f||!f.length)return[];var _=mc(f);return y==null?_:ln(_,function(A){return jn(y,g,A)})}var Cd=Qt(function(f,y){return er(f)?bi(f,y):[]}),Rd=Qt(function(f){return As(jr(f,er))}),Id=Qt(function(f){var y=Hr(f);return er(y)&&(y=g),As(jr(f,er),kt(y,2))}),Ld=Qt(function(f){var y=Hr(f);return y=typeof y=="function"?y:g,As(jr(f,er),g,y)}),Rf=Qt(mc),_c=Qt(function(f){var y=f.length,_=y>1?f[y-1]:g;return _=typeof _=="function"?(f.pop(),_):g,Cf(f,_)});function Or(f){var y=F(f);return y.__chain__=!0,y}function $s(f,y){return y(f)}var fv=xi(function(f){var y=f.length,_=y?f[0]:0,A=this.__wrapped__,R=function(G){return _s(G,f)};return!(y>1||this.__actions__.length)&&A instanceof cn&&Bn(_)?((A=A.slice(_,+_+(y?1:0))).__actions__.push({func:$s,args:[R],thisArg:g}),new ho(A,this.__chain__).thru(function(G){return y&&!G.length&&G.push(g),G})):this.thru(R)}),If=ks(function(f,y,_){tt.call(f,_)?++f[_]:Qo(f,_,1)}),Bd=bd(Mf),Xr=bd(kf);function Qn(f,y){return(Ht(f)?Nr:In)(f,kt(y,3))}function zd(f,y){return(Ht(f)?ls:Qp)(f,kt(y,3))}var bo=ks(function(f,y,_){tt.call(f,_)?f[_].push(y):Qo(f,_,[y])}),Tt=Qt(function(f,y,_){var A=-1,R=typeof y=="function",G=Yr(f)?et(f.length):[];return In(f,function(ie){G[++A]=R?jn(y,ie,_):yu(ie,y,_)}),G}),Lf=ks(function(f,y,_){Qo(f,_,y)});function wu(f,y){return(Ht(f)?ln:vo)(f,kt(y,3))}var Bf=ks(function(f,y,_){f[_?0:1].push(y)},function(){return[[],[]]}),Fd=Qt(function(f,y){if(f==null)return[];var _=y.length;return _>1&&_r(f,y[0],y[1])?y=[]:_>2&&_r(y[0],y[1],y[2])&&(y=[y[0]]),ad(f,gr(y,1),[])}),Oc=Zy||function(){return Un.Date.now()};function $d(f,y,_){return y=_?g:y,y=f&&y==null?f.length:y,wi(f,N,g,g,g,g,y)}function Wd(f,y){var _;if(typeof y!="function")throw new ee(E);return f=Yt(f),function(){return--f>0&&(_=y.apply(this,arguments)),f<=1&&(y=g),_}}var wc=Qt(function(f,y,_){var A=1;if(_.length){var R=$r(_,Zi(wc));A|=M}return wi(f,A,y,_,R)}),Gd=Qt(function(f,y,_){var A=3;if(_.length){var R=$r(_,Zi(Gd));A|=M}return wi(y,A,f,_,R)});function Ws(f,y,_){var A,R,G,ie,le,Oe,Le=0,Ce=!1,Ge=!1,st=!0;if(typeof f!="function")throw new ee(E);function vt(Dt){var Mt=A,rn=R;return A=R=g,Le=Dt,ie=f.apply(rn,Mt)}function jt(Dt){return Le=Dt,le=Ou(He,y),Ce?vt(Dt):ie}function Be(Dt){var Mt=Dt-Oe;return Oe===g||Mt>=y||Mt<0||Ge&&Dt-Le>=G}function He(){var Dt=Oc();if(Be(Dt))return Ft(Dt);le=Ou(He,function(Mt){var rn=y-(Mt-Oe);return Ge?Tr(rn,G-(Mt-Le)):rn}(Dt))}function Ft(Dt){return le=g,st&&A?vt(Dt):(A=R=g,ie)}function nt(){var Dt=Oc(),Mt=Be(Dt);if(A=arguments,R=this,Oe=Dt,Mt){if(le===g)return jt(Oe);if(Ge)return ff(le),le=Ou(He,y),vt(Oe)}return le===g&&(le=Ou(He,y)),ie}return y=oo(y)||0,xn(_)&&(Ce=!!_.leading,G=(Ge="maxWait"in _)?pr(oo(_.maxWait)||0,y):G,st="trailing"in _?!!_.trailing:st),nt.cancel=function(){le!==g&&ff(le),Le=0,A=Oe=R=le=g},nt.flush=function(){return le===g?ie:Ft(Oc())},nt}var pv=Qt(function(f,y){return Ql(f,1,y)}),dv=Qt(function(f,y,_){return Ql(f,oo(y)||0,_)});function xc(f,y){if(typeof f!="function"||y!=null&&typeof y!="function")throw new ee(E);var _=function(){var A=arguments,R=y?y.apply(this,A):A[0],G=_.cache;if(G.has(R))return G.get(R);var ie=f.apply(this,A);return _.cache=G.set(R,ie)||G,ie};return _.cache=new(xc.Cache||Jo),_}function Ei(f){if(typeof f!="function")throw new ee(E);return function(){var y=arguments;switch(y.length){case 0:return!f.call(this);case 1:return!f.call(this,y[0]);case 2:return!f.call(this,y[0],y[1]);case 3:return!f.call(this,y[0],y[1],y[2])}return!f.apply(this,y)}}xc.Cache=Jo;var Ud=dd(function(f,y){var _=(y=y.length==1&&Ht(y[0])?ln(y[0],Fn(kt())):ln(gr(y,1),Fn(kt()))).length;return Qt(function(A){for(var R=-1,G=Tr(A.length,_);++R<G;)A[R]=y[R].call(this,A[R]);return jn(f,this,A)})}),It=Qt(function(f,y){var _=$r(y,Zi(It));return wi(f,M,g,y,_)}),zf=Qt(function(f,y){var _=$r(y,Zi(zf));return wi(f,C,g,y,_)}),Gs=xi(function(f,y){return wi(f,L,g,g,g,y)});function ro(f,y){return f===y||f!=f&&y!=y}var hv=Ns(Hn),Hd=Ns(function(f,y){return f>=y}),ea=tf(function(){return arguments}())?tf:function(f){return Wn(f)&&tt.call(f,"callee")&&!Ar.call(f,"callee")},Ht=et.isArray,yv=ec?Fn(ec):function(f){return Wn(f)&&$n(f)==We};function Yr(f){return f!=null&&ta(f.length)&&!Si(f)}function er(f){return Wn(f)&&Yr(f)}var mo=Jy||el,vv=cs?Fn(cs):function(f){return Wn(f)&&$n(f)==B};function Ec(f){if(!Wn(f))return!1;var y=$n(f);return y==V||y=="[object DOMException]"||typeof f.message=="string"&&typeof f.name=="string"&&!ji(f)}function Si(f){if(!xn(f))return!1;var y=$n(f);return y==Y||y==q||y=="[object AsyncFunction]"||y=="[object Proxy]"}function Xd(f){return typeof f=="number"&&f==Yt(f)}function ta(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=W}function xn(f){var y=typeof f;return f!=null&&(y=="object"||y=="function")}function Wn(f){return f!=null&&typeof f=="object"}var wr=tc?Fn(tc):function(f){return Wn(f)&&Mr(f)==ue};function Sc(f){return typeof f=="number"||Wn(f)&&$n(f)==xe}function ji(f){if(!Wn(f)||$n(f)!=be)return!1;var y=yi(f);if(y===null)return!0;var _=tt.call(y,"constructor")&&y.constructor;return typeof _=="function"&&_ instanceof _&&qt.call(_)==eo}var Ff=tu?Fn(tu):function(f){return Wn(f)&&$n(f)==Fe},$f=$i?Fn($i):function(f){return Wn(f)&&Mr(f)==je};function jc(f){return typeof f=="string"||!Ht(f)&&Wn(f)&&$n(f)==ve}function Vr(f){return typeof f=="symbol"||Wn(f)&&$n(f)==Pe}var Na=Eo?Fn(Eo):function(f){return Wn(f)&&ta(f.length)&&!!vn[$n(f)]},Yd=Ns(Oi),Us=Ns(function(f,y){return f<=y});function Vd(f){if(!f)return[];if(Yr(f))return jc(f)?Wr(f):Ur(f);if(vi&&f[vi])return function(_){for(var A,R=[];!(A=_.next()).done;)R.push(A.value);return R}(f[vi]());var y=Mr(f);return(y==ue?Pr:y==je?hi:Ia)(f)}function Pi(f){return f?(f=oo(f))===U||f===-1/0?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0}function Yt(f){var y=Pi(f),_=y%1;return y==y?_?y-_:y:0}function Pc(f){return f?Hi(Yt(f),0,Q):0}function oo(f){if(typeof f=="number")return f;if(Vr(f))return X;if(xn(f)){var y=typeof f.valueOf=="function"?f.valueOf():f;f=xn(y)?y+"":y}if(typeof f!="string")return f===0?f:+f;f=oc(f);var _=yr.test(f);return _||Zn.test(f)?Ho(f.slice(2),_?2:8):ir.test(f)?X:+f}function Hs(f){return ei(f,xr(f))}function En(f){return f==null?"":Gr(f)}var Kd=Ma(function(f,y){if(gc(y)||Yr(y))ei(y,dr(y),f);else for(var _ in y)tt.call(y,_)&&hu(f,_,y[_])}),xu=Ma(function(f,y){ei(y,xr(y),f)}),Xs=Ma(function(f,y,_,A){ei(y,xr(y),f,A)}),Ac=Ma(function(f,y,_,A){ei(y,dr(y),f,A)}),qd=xi(_s),Tc=Qt(function(f,y){f=w(f);var _=-1,A=y.length,R=A>2?y[2]:g;for(R&&_r(y[0],y[1],R)&&(A=1);++_<A;)for(var G=y[_],ie=xr(G),le=-1,Oe=ie.length;++le<Oe;){var Le=ie[le],Ce=f[Le];(Ce===g||ro(Ce,$e[Le])&&!tt.call(f,Le))&&(f[Le]=G[Le])}return f}),Wf=Qt(function(f){return f.push(g,wd),jn(Ys,g,f)});function na(f,y,_){var A=f==null?g:mi(f,y);return A===g?_:A}function Ca(f,y){return f!=null&&Ed(f,y,nd)}var Mc=_d(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=fn.call(y)),f[y]=_},qf(Er)),Zd=_d(function(f,y,_){y!=null&&typeof y.toString!="function"&&(y=fn.call(y)),tt.call(f,y)?f[y].push(_):f[y]=[_]},kt),Jd=Qt(yu);function dr(f){return Yr(f)?Kl(f):_i(f)}function xr(f){return Yr(f)?Kl(f,!0):rv(f)}var Qd=Ma(function(f,y,_){Es(f,y,_)}),Ys=Ma(function(f,y,_,A){Es(f,y,_,A)}),eh=xi(function(f,y){var _={};if(f==null)return _;var A=!1;y=ln(y,function(G){return G=Yi(G,f),A||(A=G.length>1),G}),ei(f,bf(f),_),A&&(_=to(_,7,uv));for(var R=y.length;R--;)Ps(_,y[R]);return _}),th=xi(function(f,y){return f==null?{}:function(_,A){return ud(_,A,function(R,G){return Ca(_,G)})}(f,y)});function Ra(f,y){if(f==null)return{};var _=ln(bf(f),function(A){return[A]});return y=kt(y),ud(f,_,function(A,R){return y(A,R[0])})}var Vs=vf(dr),Gf=vf(xr);function Ia(f){return f==null?[]:iu(f,dr(f))}var Uf=Ki(function(f,y,_){return y=y.toLowerCase(),f+(_?Ks(y):y)});function Ks(f){return Zs(En(f).toLowerCase())}function qs(f){return(f=En(f))&&f.replace(Ot,ac).replace(Uo,"")}var nh=Ki(function(f,y,_){return f+(_?"-":"")+y.toLowerCase()}),Hf=Ki(function(f,y,_){return f+(_?" ":"")+y.toLowerCase()}),Xf=gd("toLowerCase"),Yf=Ki(function(f,y,_){return f+(_?"_":"")+y.toLowerCase()}),kc=Ki(function(f,y,_){return f+(_?" ":"")+Zs(y)}),ra=Ki(function(f,y,_){return f+(_?" ":"")+y.toUpperCase()}),Zs=gd("toUpperCase");function Vf(f,y,_){return f=En(f),(y=_?g:y)===g?function(A){return qu.test(A)}(f)?function(A){return A.match(Qa)||[]}(f):function(A){return A.match(_e)||[]}(f):f.match(y)||[]}var Js=Qt(function(f,y){try{return jn(f,g,y)}catch(_){return Ec(_)?_:new en(_)}}),Kf=xi(function(f,y){return Nr(y,function(_){_=Mo(_),Qo(f,_,wc(f[_],f))}),f});function qf(f){return function(){return f}}var rh=md(),Zf=md(!0);function Er(f){return f}function Eu(f){return nf(typeof f=="function"?f:to(f,1))}var Jf=Qt(function(f,y){return function(_){return yu(_,f,y)}}),Qf=Qt(function(f,y){return function(_){return yu(f,_,y)}});function Qs(f,y,_){var A=dr(y),R=Os(y,A);_!=null||xn(y)&&(R.length||!A.length)||(_=y,y=f,f=this,R=Os(y,dr(y)));var G=!(xn(_)&&"chain"in _&&!_.chain),ie=Si(f);return Nr(R,function(le){var Oe=y[le];f[le]=Oe,ie&&(f.prototype[le]=function(){var Le=this.__chain__;if(G||Le){var Ce=f(this.__wrapped__),Ge=Ce.__actions__=Ur(this.__actions__);return Ge.push({func:Oe,args:arguments,thisArg:f}),Ce.__chain__=Le,Ce}return Oe.apply(f,ar([this.value()],arguments))})}),f}function Dc(){}var oh=hf(ln),ep=hf(fs),gv=hf(rc);function tr(f){return wf(f)?Ir(Mo(f)):function(y){return function(_){return mi(_,y)}}(f)}var ni=qi(),tp=qi(!0);function Nc(){return[]}function el(){return!1}var np=hc(function(f,y){return f+y},0),rp=Rs("ceil"),op=hc(function(f,y){return f/y},1),bv=Rs("floor"),Ai,ip=hc(function(f,y){return f*y},1),ap=Rs("round"),ih=hc(function(f,y){return f-y},0);return F.after=function(f,y){if(typeof y!="function")throw new ee(E);return f=Yt(f),function(){if(--f<1)return y.apply(this,arguments)}},F.ary=$d,F.assign=Kd,F.assignIn=xu,F.assignInWith=Xs,F.assignWith=Ac,F.at=qd,F.before=Wd,F.bind=wc,F.bindAll=Kf,F.bindKey=Gd,F.castArray=function(){if(!arguments.length)return[];var f=arguments[0];return Ht(f)?f:[f]},F.chain=Or,F.chunk=function(f,y,_){y=(_?_r(f,y,_):y===g)?1:pr(Yt(y),0);var A=f==null?0:f.length;if(!A||y<1)return[];for(var R=0,G=0,ie=et(ds(A/y));R<A;)ie[G++]=go(f,R,R+=y);return ie},F.compact=function(f){for(var y=-1,_=f==null?0:f.length,A=0,R=[];++y<_;){var G=f[y];G&&(R[A++]=G)}return R},F.concat=function(){var f=arguments.length;if(!f)return[];for(var y=et(f-1),_=arguments[0],A=f;A--;)y[A-1]=arguments[A];return ar(Ht(_)?Ur(_):[_],gr(y,1))},F.cond=function(f){var y=f==null?0:f.length,_=kt();return f=y?ln(f,function(A){if(typeof A[1]!="function")throw new ee(E);return[_(A[0]),A[1]]}):[],Qt(function(A){for(var R=-1;++R<y;){var G=f[R];if(jn(G[0],this,A))return jn(G[1],this,A)}})},F.conforms=function(f){return function(y){var _=dr(y);return function(A){return Jl(A,y,_)}}(to(f,1))},F.constant=qf,F.countBy=If,F.create=function(f,y){var _=du(f);return y==null?_:Zl(_,y)},F.curry=function f(y,_,A){var R=wi(y,8,g,g,g,g,g,_=A?g:_);return R.placeholder=f.placeholder,R},F.curryRight=function f(y,_,A){var R=wi(y,k,g,g,g,g,g,_=A?g:_);return R.placeholder=f.placeholder,R},F.debounce=Ws,F.defaults=Tc,F.defaultsDeep=Wf,F.defer=pv,F.delay=dv,F.difference=jd,F.differenceBy=Pd,F.differenceWith=Ad,F.drop=function(f,y,_){var A=f==null?0:f.length;return A?go(f,(y=_||y===g?1:Yt(y))<0?0:y,A):[]},F.dropRight=function(f,y,_){var A=f==null?0:f.length;return A?go(f,0,(y=A-(y=_||y===g?1:Yt(y)))<0?0:y):[]},F.dropRightWhile=function(f,y){return f&&f.length?pc(f,kt(y,3),!0,!0):[]},F.dropWhile=function(f,y){return f&&f.length?pc(f,kt(y,3),!0):[]},F.fill=function(f,y,_,A){var R=f==null?0:f.length;return R?(_&&typeof _!="number"&&_r(f,y,_)&&(_=0,A=R),function(G,ie,le,Oe){var Le=G.length;for((le=Yt(le))<0&&(le=-le>Le?0:Le+le),(Oe=Oe===g||Oe>Le?Le:Yt(Oe))<0&&(Oe+=Le),Oe=le>Oe?0:Pc(Oe);le<Oe;)G[le++]=ie;return G}(f,y,_,A)):[]},F.filter=function(f,y){return(Ht(f)?jr:gn)(f,kt(y,3))},F.flatMap=function(f,y){return gr(wu(f,y),1)},F.flatMapDeep=function(f,y){return gr(wu(f,y),U)},F.flatMapDepth=function(f,y,_){return _=_===g?1:Yt(_),gr(wu(f,y),_)},F.flatten=Df,F.flattenDeep=function(f){return f!=null&&f.length?gr(f,U):[]},F.flattenDepth=function(f,y){return f!=null&&f.length?gr(f,y=y===g?1:Yt(y)):[]},F.flip=function(f){return wi(f,512)},F.flow=rh,F.flowRight=Zf,F.fromPairs=function(f){for(var y=-1,_=f==null?0:f.length,A={};++y<_;){var R=f[y];A[R[0]]=R[1]}return A},F.functions=function(f){return f==null?[]:Os(f,dr(f))},F.functionsIn=function(f){return f==null?[]:Os(f,xr(f))},F.groupBy=bo,F.initial=function(f){return f!=null&&f.length?go(f,0,-1):[]},F.intersection=Td,F.intersectionBy=Md,F.intersectionWith=kd,F.invert=Mc,F.invertBy=Zd,F.invokeMap=Tt,F.iteratee=Eu,F.keyBy=Lf,F.keys=dr,F.keysIn=xr,F.map=wu,F.mapKeys=function(f,y){var _={};return y=kt(y,3),dt(f,function(A,R,G){Qo(_,y(A,R,G),A)}),_},F.mapValues=function(f,y){var _={};return y=kt(y,3),dt(f,function(A,R,G){Qo(_,R,y(A,R,G))}),_},F.matches=function(f){return rd(to(f,1))},F.matchesProperty=function(f,y){return od(f,to(y,1))},F.memoize=xc,F.merge=Qd,F.mergeWith=Ys,F.method=Jf,F.methodOf=Qf,F.mixin=Qs,F.negate=Ei,F.nthArg=function(f){return f=Yt(f),Qt(function(y){return id(y,f)})},F.omit=eh,F.omitBy=function(f,y){return Ra(f,Ei(kt(y)))},F.once=function(f){return Wd(2,f)},F.orderBy=function(f,y,_,A){return f==null?[]:(Ht(y)||(y=y==null?[]:[y]),Ht(_=A?g:_)||(_=_==null?[]:[_]),ad(f,y,_))},F.over=oh,F.overArgs=Ud,F.overEvery=ep,F.overSome=gv,F.partial=It,F.partialRight=zf,F.partition=Bf,F.pick=th,F.pickBy=Ra,F.property=tr,F.propertyOf=function(f){return function(y){return f==null?g:mi(f,y)}},F.pull=Fs,F.pullAll=Dd,F.pullAllBy=function(f,y,_){return f&&f.length&&y&&y.length?rf(f,y,kt(_,2)):f},F.pullAllWith=function(f,y,_){return f&&f.length&&y&&y.length?rf(f,y,g,_):f},F.pullAt=ko,F.range=ni,F.rangeRight=tp,F.rearg=Gs,F.reject=function(f,y){return(Ht(f)?jr:gn)(f,Ei(kt(y,3)))},F.remove=function(f,y){var _=[];if(!f||!f.length)return _;var A=-1,R=[],G=f.length;for(y=kt(y,3);++A<G;){var ie=f[A];y(ie,A,f)&&(_.push(ie),R.push(A))}return bu(f,R),_},F.rest=function(f,y){if(typeof f!="function")throw new ee(E);return Qt(f,y=y===g?y:Yt(y))},F.reverse=ti,F.sampleSize=function(f,y,_){return y=(_?_r(f,y,_):y===g)?1:Yt(y),(Ht(f)?qp:af)(f,y)},F.set=function(f,y,_){return f==null?f:mu(f,y,_)},F.setWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:mu(f,y,_,A)},F.shuffle=function(f){return(Ht(f)?Zp:av)(f)},F.slice=function(f,y,_){var A=f==null?0:f.length;return A?(_&&typeof _!="number"&&_r(f,y,_)?(y=0,_=A):(y=y==null?0:Yt(y),_=_===g?A:Yt(_)),go(f,y,_)):[]},F.sortBy=Fd,F.sortedUniq=function(f){return f&&f.length?sd(f):[]},F.sortedUniqBy=function(f,y){return f&&f.length?sd(f,kt(y,2)):[]},F.split=function(f,y,_){return _&&typeof _!="number"&&_r(f,y,_)&&(y=_=g),(_=_===g?Q:_>>>0)?(f=En(f))&&(typeof y=="string"||y!=null&&!Ff(y))&&!(y=Gr(y))&&Po(f)?Vi(Wr(f),0,_):f.split(y,_):[]},F.spread=function(f,y){if(typeof f!="function")throw new ee(E);return y=y==null?0:pr(Yt(y),0),Qt(function(_){var A=_[y],R=Vi(_,0,y);return A&&ar(R,A),jn(f,this,R)})},F.tail=function(f){var y=f==null?0:f.length;return y?go(f,1,y):[]},F.take=function(f,y,_){return f&&f.length?go(f,0,(y=_||y===g?1:Yt(y))<0?0:y):[]},F.takeRight=function(f,y,_){var A=f==null?0:f.length;return A?go(f,(y=A-(y=_||y===g?1:Yt(y)))<0?0:y,A):[]},F.takeRightWhile=function(f,y){return f&&f.length?pc(f,kt(y,3),!1,!0):[]},F.takeWhile=function(f,y){return f&&f.length?pc(f,kt(y,3)):[]},F.tap=function(f,y){return y(f),f},F.throttle=function(f,y,_){var A=!0,R=!0;if(typeof f!="function")throw new ee(E);return xn(_)&&(A="leading"in _?!!_.leading:A,R="trailing"in _?!!_.trailing:R),Ws(f,y,{leading:A,maxWait:y,trailing:R})},F.thru=$s,F.toArray=Vd,F.toPairs=Vs,F.toPairsIn=Gf,F.toPath=function(f){return Ht(f)?ln(f,Mo):Vr(f)?[f]:Ur(Af(En(f)))},F.toPlainObject=Hs,F.transform=function(f,y,_){var A=Ht(f),R=A||mo(f)||Na(f);if(y=kt(y,4),_==null){var G=f&&f.constructor;_=R?A?new G:[]:xn(f)&&Si(G)?du(yi(f)):{}}return(R?Nr:dt)(f,function(ie,le,Oe){return y(_,ie,le,Oe)}),_},F.unary=function(f){return $d(f,1)},F.union=lv,F.unionBy=no,F.unionWith=Nd,F.uniq=function(f){return f&&f.length?Xi(f):[]},F.uniqBy=function(f,y){return f&&f.length?Xi(f,kt(y,2)):[]},F.uniqWith=function(f,y){return y=typeof y=="function"?y:g,f&&f.length?Xi(f,g,y):[]},F.unset=function(f,y){return f==null||Ps(f,y)},F.unzip=mc,F.unzipWith=Cf,F.update=function(f,y,_){return f==null?f:ld(f,y,lf(_))},F.updateWith=function(f,y,_,A){return A=typeof A=="function"?A:g,f==null?f:ld(f,y,lf(_),A)},F.values=Ia,F.valuesIn=function(f){return f==null?[]:iu(f,xr(f))},F.without=Cd,F.words=Vf,F.wrap=function(f,y){return It(lf(y),f)},F.xor=Rd,F.xorBy=Id,F.xorWith=Ld,F.zip=Rf,F.zipObject=function(f,y){return pd(f||[],y||[],hu)},F.zipObjectDeep=function(f,y){return pd(f||[],y||[],mu)},F.zipWith=_c,F.entries=Vs,F.entriesIn=Gf,F.extend=xu,F.extendWith=Xs,Qs(F,F),F.add=np,F.attempt=Js,F.camelCase=Uf,F.capitalize=Ks,F.ceil=rp,F.clamp=function(f,y,_){return _===g&&(_=y,y=g),_!==g&&(_=(_=oo(_))==_?_:0),y!==g&&(y=(y=oo(y))==y?y:0),Hi(oo(f),y,_)},F.clone=function(f){return to(f,4)},F.cloneDeep=function(f){return to(f,5)},F.cloneDeepWith=function(f,y){return to(f,5,y=typeof y=="function"?y:g)},F.cloneWith=function(f,y){return to(f,4,y=typeof y=="function"?y:g)},F.conformsTo=function(f,y){return y==null||Jl(f,y,dr(y))},F.deburr=qs,F.defaultTo=function(f,y){return f==null||f!=f?y:f},F.divide=op,F.endsWith=function(f,y,_){f=En(f),y=Gr(y);var A=f.length,R=_=_===g?A:Hi(Yt(_),0,A);return(_-=y.length)>=0&&f.slice(_,R)==y},F.eq=ro,F.escape=function(f){return(f=En(f))&<.test(f)?f.replace(gt,Vn):f},F.escapeRegExp=function(f){return(f=En(f))&&Nn.test(f)?f.replace(_n,"\\$&"):f},F.every=function(f,y,_){var A=Ht(f)?fs:ed;return _&&_r(f,y,_)&&(y=g),A(f,kt(y,3))},F.find=Bd,F.findIndex=Mf,F.findKey=function(f,y){return So(f,kt(y,3),dt)},F.findLast=Xr,F.findLastIndex=kf,F.findLastKey=function(f,y){return So(f,kt(y,3),Mn)},F.floor=bv,F.forEach=Qn,F.forEachRight=zd,F.forIn=function(f,y){return f==null?f:Zt(f,kt(y,3),xr)},F.forInRight=function(f,y){return f==null?f:Jn(f,kt(y,3),xr)},F.forOwn=function(f,y){return f&&dt(f,kt(y,3))},F.forOwnRight=function(f,y){return f&&Mn(f,kt(y,3))},F.get=na,F.gt=hv,F.gte=Hd,F.has=function(f,y){return f!=null&&Ed(f,y,td)},F.hasIn=Ca,F.head=Nf,F.identity=Er,F.includes=function(f,y,_,A){f=Yr(f)?f:Ia(f),_=_&&!A?Yt(_):0;var R=f.length;return _<0&&(_=pr(R+_,0)),jc(f)?_<=R&&f.indexOf(y,_)>-1:!!R&&Wi(f,y,_)>-1},F.indexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var R=_==null?0:Yt(_);return R<0&&(R=pr(A+R,0)),Wi(f,y,R)},F.inRange=function(f,y,_){return y=Pi(y),_===g?(_=y,y=0):_=Pi(_),function(A,R,G){return A>=Tr(R,G)&&A<pr(R,G)}(f=oo(f),y,_)},F.invoke=Jd,F.isArguments=ea,F.isArray=Ht,F.isArrayBuffer=yv,F.isArrayLike=Yr,F.isArrayLikeObject=er,F.isBoolean=function(f){return f===!0||f===!1||Wn(f)&&$n(f)==H},F.isBuffer=mo,F.isDate=vv,F.isElement=function(f){return Wn(f)&&f.nodeType===1&&!ji(f)},F.isEmpty=function(f){if(f==null)return!0;if(Yr(f)&&(Ht(f)||typeof f=="string"||typeof f.splice=="function"||mo(f)||Na(f)||ea(f)))return!f.length;var y=Mr(f);if(y==ue||y==je)return!f.size;if(gc(f))return!_i(f).length;for(var _ in f)if(tt.call(f,_))return!1;return!0},F.isEqual=function(f,y){return vu(f,y)},F.isEqualWith=function(f,y,_){var A=(_=typeof _=="function"?_:g)?_(f,y):g;return A===g?vu(f,y,g,_):!!A},F.isError=Ec,F.isFinite=function(f){return typeof f=="number"&&Hp(f)},F.isFunction=Si,F.isInteger=Xd,F.isLength=ta,F.isMap=wr,F.isMatch=function(f,y){return f===y||xs(f,y,_f(y))},F.isMatchWith=function(f,y,_){return _=typeof _=="function"?_:g,xs(f,y,_f(y),_)},F.isNaN=function(f){return Sc(f)&&f!=+f},F.isNative=function(f){if(Ji(f))throw new en("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return gu(f)},F.isNil=function(f){return f==null},F.isNull=function(f){return f===null},F.isNumber=Sc,F.isObject=xn,F.isObjectLike=Wn,F.isPlainObject=ji,F.isRegExp=Ff,F.isSafeInteger=function(f){return Xd(f)&&f>=-9007199254740991&&f<=W},F.isSet=$f,F.isString=jc,F.isSymbol=Vr,F.isTypedArray=Na,F.isUndefined=function(f){return f===g},F.isWeakMap=function(f){return Wn(f)&&Mr(f)==Te},F.isWeakSet=function(f){return Wn(f)&&$n(f)=="[object WeakSet]"},F.join=function(f,y){return f==null?"":Yl.call(f,y)},F.kebabCase=nh,F.last=Hr,F.lastIndexOf=function(f,y,_){var A=f==null?0:f.length;if(!A)return-1;var R=A;return _!==g&&(R=(R=Yt(_))<0?pr(A+R,0):Tr(R,A-1)),y==y?function(G,ie,le){for(var Oe=le+1;Oe--;)if(G[Oe]===ie)return Oe;return Oe}(f,y,R):Xo(f,Yo,R,!0)},F.lowerCase=Hf,F.lowerFirst=Xf,F.lt=Yd,F.lte=Us,F.max=function(f){return f&&f.length?Kn(f,Er,Hn):g},F.maxBy=function(f,y){return f&&f.length?Kn(f,kt(y,2),Hn):g},F.mean=function(f){return an(f,Er)},F.meanBy=function(f,y){return an(f,kt(y,2))},F.min=function(f){return f&&f.length?Kn(f,Er,Oi):g},F.minBy=function(f,y){return f&&f.length?Kn(f,kt(y,2),Oi):g},F.stubArray=Nc,F.stubFalse=el,F.stubObject=function(){return{}},F.stubString=function(){return""},F.stubTrue=function(){return!0},F.multiply=ip,F.nth=function(f,y){return f&&f.length?id(f,Yt(y)):g},F.noConflict=function(){return Un._===this&&(Un._=Rn),this},F.noop=Dc,F.now=Oc,F.pad=function(f,y,_){f=En(f);var A=(y=Yt(y))?Ao(f):0;if(!y||A>=y)return f;var R=(y-A)/2;return Ds(su(R),_)+f+Ds(ds(R),_)},F.padEnd=function(f,y,_){f=En(f);var A=(y=Yt(y))?Ao(f):0;return y&&A<y?f+Ds(y-A,_):f},F.padStart=function(f,y,_){f=En(f);var A=(y=Yt(y))?Ao(f):0;return y&&A<y?Ds(y-A,_)+f:f},F.parseInt=function(f,y,_){return _||y==null?y=0:y&&(y=+y),ys(En(f).replace(Bt,""),y||0)},F.random=function(f,y,_){if(_&&typeof _!="boolean"&&_r(f,y,_)&&(y=_=g),_===g&&(typeof y=="boolean"?(_=y,y=g):typeof f=="boolean"&&(_=f,f=g)),f===g&&y===g?(f=0,y=1):(f=Pi(f),y===g?(y=f,f=0):y=Pi(y)),f>y){var A=f;f=y,y=A}if(_||f%1||y%1){var R=vs();return Tr(f+R*(y-f+Fi("1e-"+((R+"").length-1))),y)}return of(f,y)},F.reduce=function(f,y,_){var A=Ht(f)?nu:fr,R=arguments.length<3;return A(f,kt(y,4),_,R,In)},F.reduceRight=function(f,y,_){var A=Ht(f)?ps:fr,R=arguments.length<3;return A(f,kt(y,4),_,R,Qp)},F.repeat=function(f,y,_){return y=(_?_r(f,y,_):y===g)?1:Yt(y),Ss(En(f),y)},F.replace=function(){var f=arguments,y=En(f[0]);return f.length<3?y:y.replace(f[1],f[2])},F.result=function(f,y,_){var A=-1,R=(y=Yi(y,f)).length;for(R||(R=1,f=g);++A<R;){var G=f==null?g:f[Mo(y[A])];G===g&&(A=R,G=_),f=Si(G)?G.call(f):G}return f},F.round=ap,F.runInContext=we,F.sample=function(f){return(Ht(f)?ql:ov)(f)},F.size=function(f){if(f==null)return 0;if(Yr(f))return jc(f)?Ao(f):f.length;var y=Mr(f);return y==ue||y==je?f.size:_i(f).length},F.snakeCase=Yf,F.some=function(f,y,_){var A=Ht(f)?rc:uf;return _&&_r(f,y,_)&&(y=g),A(f,kt(y,3))},F.sortedIndex=function(f,y){return js(f,y)},F.sortedIndexBy=function(f,y,_){return cf(f,y,kt(_,2))},F.sortedIndexOf=function(f,y){var _=f==null?0:f.length;if(_){var A=js(f,y);if(A<_&&ro(f[A],y))return A}return-1},F.sortedLastIndex=function(f,y){return js(f,y,!0)},F.sortedLastIndexBy=function(f,y,_){return cf(f,y,kt(_,2),!0)},F.sortedLastIndexOf=function(f,y){if(f!=null&&f.length){var _=js(f,y,!0)-1;if(ro(f[_],y))return _}return-1},F.startCase=kc,F.startsWith=function(f,y,_){return f=En(f),_=_==null?0:Hi(Yt(_),0,f.length),y=Gr(y),f.slice(_,_+y.length)==y},F.subtract=ih,F.sum=function(f){return f&&f.length?ou(f,Er):0},F.sumBy=function(f,y){return f&&f.length?ou(f,kt(y,2)):0},F.template=function(f,y,_){var A=F.templateSettings;_&&_r(f,y,_)&&(y=g),f=En(f),y=Xs({},y,A,Od);var R,G,ie=Xs({},y.imports,A.imports,Od),le=dr(ie),Oe=iu(ie,le),Le=0,Ce=y.interpolate||St,Ge="__p += '",st=T((y.escape||St).source+"|"+Ce.source+"|"+(Ce===$t?pt:St).source+"|"+(y.evaluate||St).source+"|$","g"),vt="//# sourceURL="+(tt.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++is+"]")+`
- `;f.replace(st,function(He,Ft,nt,Dt,Mt,rn){return nt||(nt=Dt),Ge+=f.slice(Le,rn).replace(zt,di),Ft&&(R=!0,Ge+=`' +
- __e(`+Ft+`) +
- '`),Mt&&(G=!0,Ge+=`';
- `+Mt+`;
- __p += '`),nt&&(Ge+=`' +
- ((__t = (`+nt+`)) == null ? '' : __t) +
- '`),Le=rn+He.length,He}),Ge+=`';
- `;var jt=tt.call(y,"variable")&&y.variable;if(jt){if(Ve.test(jt))throw new en("Invalid `variable` option passed into `_.template`")}else Ge=`with (obj) {
- `+Ge+`
- }
- `;Ge=(G?Ge.replace(ze,""):Ge).replace(Et,"$1").replace(Rt,"$1;"),Ge="function("+(jt||"obj")+`) {
- `+(jt?"":`obj || (obj = {});
- `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
- function print() { __p += __j.call(arguments, '') }
- `:`;
- `)+Ge+`return __p
- }`;var Be=Js(function(){return Tn(le,vt+"return "+Ge).apply(g,Oe)});if(Be.source=Ge,Ec(Be))throw Be;return Be},F.times=function(f,y){if((f=Yt(f))<1||f>W)return[];var _=Q,A=Tr(f,Q);y=kt(y),f-=Q;for(var R=Sa(A,y);++_<f;)y(_);return R},F.toFinite=Pi,F.toInteger=Yt,F.toLength=Pc,F.toLower=function(f){return En(f).toLowerCase()},F.toNumber=oo,F.toSafeInteger=function(f){return f?Hi(Yt(f),-9007199254740991,W):f===0?f:0},F.toString=En,F.toUpper=function(f){return En(f).toUpperCase()},F.trim=function(f,y,_){if((f=En(f))&&(_||y===g))return oc(f);if(!f||!(y=Gr(y)))return f;var A=Wr(f),R=Wr(y);return Vi(A,Jr(A,R),ic(A,R)+1).join("")},F.trimEnd=function(f,y,_){if((f=En(f))&&(_||y===g))return f.slice(0,Lr(f)+1);if(!f||!(y=Gr(y)))return f;var A=Wr(f);return Vi(A,0,ic(A,Wr(y))+1).join("")},F.trimStart=function(f,y,_){if((f=En(f))&&(_||y===g))return f.replace(Bt,"");if(!f||!(y=Gr(y)))return f;var A=Wr(f);return Vi(A,Jr(A,Wr(y))).join("")},F.truncate=function(f,y){var _=30,A="...";if(xn(y)){var R="separator"in y?y.separator:R;_="length"in y?Yt(y.length):_,A="omission"in y?Gr(y.omission):A}var G=(f=En(f)).length;if(Po(f)){var ie=Wr(f);G=ie.length}if(_>=G)return f;var le=_-Ao(A);if(le<1)return A;var Oe=ie?Vi(ie,0,le).join(""):f.slice(0,le);if(R===g)return Oe+A;if(ie&&(le+=Oe.length-le),Ff(R)){if(f.slice(le).search(R)){var Le,Ce=Oe;for(R.global||(R=T(R.source,En(Vt.exec(R))+"g")),R.lastIndex=0;Le=R.exec(Ce);)var Ge=Le.index;Oe=Oe.slice(0,Ge===g?le:Ge)}}else if(f.indexOf(Gr(R),le)!=le){var st=Oe.lastIndexOf(R);st>-1&&(Oe=Oe.slice(0,st))}return Oe+A},F.unescape=function(f){return(f=En(f))&&Me.test(f)?f.replace(At,Qr):f},F.uniqueId=function(f){var y=++On;return En(f)+y},F.upperCase=ra,F.upperFirst=Zs,F.each=Qn,F.eachRight=zd,F.first=Nf,Qs(F,(Ai={},dt(F,function(f,y){tt.call(F.prototype,y)||(Ai[y]=f)}),Ai),{chain:!1}),F.VERSION="4.17.21",Nr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){F[f].placeholder=F}),Nr(["drop","take"],function(f,y){cn.prototype[f]=function(_){_=_===g?1:pr(Yt(_),0);var A=this.__filtered__&&!y?new cn(this):this.clone();return A.__filtered__?A.__takeCount__=Tr(_,A.__takeCount__):A.__views__.push({size:Tr(_,Q),type:f+(A.__dir__<0?"Right":"")}),A},cn.prototype[f+"Right"]=function(_){return this.reverse()[f](_).reverse()}}),Nr(["filter","map","takeWhile"],function(f,y){var _=y+1,A=_==1||_==3;cn.prototype[f]=function(R){var G=this.clone();return G.__iteratees__.push({iteratee:kt(R,3),type:_}),G.__filtered__=G.__filtered__||A,G}}),Nr(["head","last"],function(f,y){var _="take"+(y?"Right":"");cn.prototype[f]=function(){return this[_](1).value()[0]}}),Nr(["initial","tail"],function(f,y){var _="drop"+(y?"":"Right");cn.prototype[f]=function(){return this.__filtered__?new cn(this):this[_](1)}}),cn.prototype.compact=function(){return this.filter(Er)},cn.prototype.find=function(f){return this.filter(f).head()},cn.prototype.findLast=function(f){return this.reverse().find(f)},cn.prototype.invokeMap=Qt(function(f,y){return typeof f=="function"?new cn(this):this.map(function(_){return yu(_,f,y)})}),cn.prototype.reject=function(f){return this.filter(Ei(kt(f)))},cn.prototype.slice=function(f,y){f=Yt(f);var _=this;return _.__filtered__&&(f>0||y<0)?new cn(_):(f<0?_=_.takeRight(-f):f&&(_=_.drop(f)),y!==g&&(_=(y=Yt(y))<0?_.dropRight(-y):_.take(y-f)),_)},cn.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},cn.prototype.toArray=function(){return this.take(Q)},dt(cn.prototype,function(f,y){var _=/^(?:filter|find|map|reject)|While$/.test(y),A=/^(?:head|last)$/.test(y),R=F[A?"take"+(y=="last"?"Right":""):y],G=A||/^find/.test(y);R&&(F.prototype[y]=function(){var ie=this.__wrapped__,le=A?[1]:arguments,Oe=ie instanceof cn,Le=le[0],Ce=Oe||Ht(ie),Ge=function(Ft){var nt=R.apply(F,ar([Ft],le));return A&&st?nt[0]:nt};Ce&&_&&typeof Le=="function"&&Le.length!=1&&(Oe=Ce=!1);var st=this.__chain__,vt=!!this.__actions__.length,jt=G&&!st,Be=Oe&&!vt;if(!G&&Ce){ie=Be?ie:new cn(this);var He=f.apply(ie,le);return He.__actions__.push({func:$s,args:[Ge],thisArg:g}),new ho(He,st)}return jt&&Be?f.apply(this,le):(He=this.thru(Ge),jt?A?He.value()[0]:He.value():He)})}),Nr(["pop","push","shift","sort","splice","unshift"],function(f){var y=pe[f],_=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",A=/^(?:pop|shift)$/.test(f);F.prototype[f]=function(){var R=arguments;if(A&&!this.__chain__){var G=this.value();return y.apply(Ht(G)?G:[],R)}return this[_](function(ie){return y.apply(Ht(ie)?ie:[],R)})}}),dt(cn.prototype,function(f,y){var _=F[y];if(_){var A=_.name+"";tt.call(pu,A)||(pu[A]=[]),pu[A].push({name:y,func:_})}}),pu[ka(g,2).name]=[{name:"wrapper",func:g}],cn.prototype.clone=function(){var f=new cn(this.__wrapped__);return f.__actions__=Ur(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ur(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ur(this.__views__),f},cn.prototype.reverse=function(){if(this.__filtered__){var f=new cn(this);f.__dir__=-1,f.__filtered__=!0}else(f=this.clone()).__dir__*=-1;return f},cn.prototype.value=function(){var f=this.__wrapped__.value(),y=this.__dir__,_=Ht(f),A=y<0,R=_?f.length:0,G=function(rn,bt,Pt){for(var Gn=-1,me=Pt.length;++Gn<me;){var Do=Pt[Gn],ur=Do.size;switch(Do.type){case"drop":rn+=ur;break;case"dropRight":bt-=ur;break;case"take":bt=Tr(bt,rn+ur);break;case"takeRight":rn=pr(rn,bt-ur)}}return{start:rn,end:bt}}(0,R,this.__views__),ie=G.start,le=G.end,Oe=le-ie,Le=A?le:ie-1,Ce=this.__iteratees__,Ge=Ce.length,st=0,vt=Tr(Oe,this.__takeCount__);if(!_||!A&&R==Oe&&vt==Oe)return fd(f,this.__actions__);var jt=[];e:for(;Oe--&&st<vt;){for(var Be=-1,He=f[Le+=y];++Be<Ge;){var Ft=Ce[Be],nt=Ft.iteratee,Dt=Ft.type,Mt=nt(He);if(Dt==2)He=Mt;else if(!Mt){if(Dt==1)continue e;break e}}jt[st++]=He}return jt},F.prototype.at=fv,F.prototype.chain=function(){return Or(this)},F.prototype.commit=function(){return new ho(this.value(),this.__chain__)},F.prototype.next=function(){this.__values__===g&&(this.__values__=Vd(this.value()));var f=this.__index__>=this.__values__.length;return{done:f,value:f?g:this.__values__[this.__index__++]}},F.prototype.plant=function(f){for(var y,_=this;_ instanceof lc;){var A=Tf(_);A.__index__=0,A.__values__=g,y?R.__wrapped__=A:y=A;var R=A;_=_.__wrapped__}return R.__wrapped__=f,y},F.prototype.reverse=function(){var f=this.__wrapped__;if(f instanceof cn){var y=f;return this.__actions__.length&&(y=new cn(this)),(y=y.reverse()).__actions__.push({func:$s,args:[ti],thisArg:g}),new ho(y,this.__chain__)}return this.thru(ti)},F.prototype.toJSON=F.prototype.valueOf=F.prototype.value=function(){return fd(this.__wrapped__,this.__actions__)},F.prototype.first=F.prototype.head,vi&&(F.prototype[vi]=function(){return this}),F}();Un._=To,(b=function(){return To}.call(l,o,l,h))===g||(h.exports=b)}).call(this)}).call(this,o(68),o(221)(u))},function(u,l,o){var d=o(7),h=o(34),b=o(33),g=o(87),E=o(62),S=o(174),P=o(28),k=d.TypeError,M=P("toPrimitive");u.exports=function(C,N){if(!b(C)||g(C))return C;var L,U=E(C,M);if(U){if(N===void 0&&(N="default"),L=h(U,C,N),!b(L)||g(L))return L;throw k("Can't convert object to primitive value")}return N===void 0&&(N="number"),S(C,N)}},function(u,l,o){var d=o(108);u.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(u,l,o){var d=o(36),h=o(18),b=o(91);u.exports=!d&&!h(function(){return Object.defineProperty(b("div"),"a",{get:function(){return 7}}).a!=7})},function(u,l,o){var d=o(35),h=o(135),b=o(50),g=o(38);u.exports=function(E,S){for(var P=h(S),k=g.f,M=b.f,C=0;C<P.length;C++){var N=P[C];d(E,N)||k(E,N,M(S,N))}}},function(u,l,o){var d=o(46),h=o(15),b=o(74),g=o(112),E=o(32),S=h([].concat);u.exports=d("Reflect","ownKeys")||function(P){var k=b.f(E(P)),M=g.f;return M?S(k,M(P)):k}},function(u,l,o){var d=o(15),h=o(35),b=o(41),g=o(137).indexOf,E=o(72),S=d([].push);u.exports=function(P,k){var M,C=b(P),N=0,L=[];for(M in C)!h(E,M)&&h(C,M)&&S(L,M);for(;k.length>N;)h(C,M=k[N++])&&(~g(L,M)||S(L,M));return L}},function(u,l,o){var d=o(41),h=o(75),b=o(45),g=function(E){return function(S,P,k){var M,C=d(S),N=b(C),L=h(k,N);if(E&&P!=P){for(;N>L;)if((M=C[L++])!=M)return!0}else for(;N>L;L++)if((E||L in C)&&C[L]===P)return E||L||0;return!E&&-1}};u.exports={includes:g(!0),indexOf:g(!1)}},function(u,l,o){var d=o(46);u.exports=d("document","documentElement")},function(u,l,o){var d=o(51),h=o(41),b=o(74).f,g=o(114),E=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];u.exports.f=function(S){return E&&d(S)=="Window"?function(P){try{return b(P)}catch{return g(E)}}(S):b(h(S))}},function(u,l,o){var d=o(28);l.f=d},function(u,l,o){var d=o(177),h=o(35),b=o(140),g=o(38).f;u.exports=function(E){var S=d.Symbol||(d.Symbol={});h(S,E)||g(S,E,{value:b.f(E)})}},function(u,l,o){var d,h,b,g=o(18),E=o(30),S=o(60),P=o(101),k=o(42),M=o(28),C=o(71),N=M("iterator"),L=!1;[].keys&&("next"in(b=[].keys())?(h=P(P(b)))!==Object.prototype&&(d=h):L=!0),d==null||g(function(){var U={};return d[N].call(U)!==U})?d={}:C&&(d=S(d)),E(d[N])||k(d,N,function(){return this}),u.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:L}},function(u,l,o){var d=o(18);u.exports=!d(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},function(u,l,o){var d=o(16),h=o(15),b=o(72),g=o(33),E=o(35),S=o(38).f,P=o(74),k=o(139),M=o(183),C=o(90),N=o(185),L=!1,U=C("meta"),W=0,X=function(te){S(te,U,{value:{objectID:"O"+W++,weakData:{}}})},Q=u.exports={enable:function(){Q.enable=function(){},L=!0;var te=P.f,Z=h([].splice),J={};J[U]=1,te(J).length&&(P.f=function(H){for(var B=te(H),V=0,Y=B.length;V<Y;V++)if(B[V]===U){Z(B,V,1);break}return B},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:k.f}))},fastKey:function(te,Z){if(!g(te))return typeof te=="symbol"?te:(typeof te=="string"?"S":"P")+te;if(!E(te,U)){if(!M(te))return"F";if(!Z)return"E";X(te)}return te[U].objectID},getWeakData:function(te,Z){if(!E(te,U)){if(!M(te))return!0;if(!Z)return!1;X(te)}return te[U].weakData},onFreeze:function(te){return N&&L&&M(te)&&!E(te,U)&&X(te),te}};b[U]=!0},function(u,l,o){var d=o(28),h=o(80),b=d("iterator"),g=Array.prototype;u.exports=function(E){return E!==void 0&&(h.Array===E||g[b]===E)}},function(u,l,o){var d=o(7),h=o(34),b=o(56),g=o(32),E=o(88),S=o(118),P=d.TypeError;u.exports=function(k,M){var C=arguments.length<2?S(k):M;if(b(C))return g(h(C,k));throw P(E(k)+" is not iterable")}},function(u,l,o){var d=o(34),h=o(32),b=o(62);u.exports=function(g,E,S){var P,k;h(g);try{if(!(P=b(g,"return"))){if(E==="throw")throw S;return S}P=d(P,g)}catch(M){k=!0,P=M}if(E==="throw")throw S;if(k)throw P;return h(P),S}},function(u,l,o){var d=o(30),h=o(33),b=o(102);u.exports=function(g,E,S){var P,k;return b&&d(P=E.constructor)&&P!==S&&h(k=P.prototype)&&k!==S.prototype&&b(g,k),g}},function(u,l,o){var d=o(42);u.exports=function(h,b,g){for(var E in b)d(h,E,b[E],g);return h}},function(u,l,o){var d=o(46),h=o(38),b=o(28),g=o(36),E=b("species");u.exports=function(S){var P=d(S),k=h.f;g&&P&&!P[E]&&k(P,E,{configurable:!0,get:function(){return this}})}},function(u,l,o){var d=o(15),h=o(59),b=o(39),g=o(44),E=d("".charAt),S=d("".charCodeAt),P=d("".slice),k=function(M){return function(C,N){var L,U,W=b(g(C)),X=h(N),Q=W.length;return X<0||X>=Q?M?"":void 0:(L=S(W,X))<55296||L>56319||X+1===Q||(U=S(W,X+1))<56320||U>57343?M?E(W,X):L:M?P(W,X,X+2):U-56320+(L-55296<<10)+65536}};u.exports={codeAt:k(!1),charAt:k(!0)}},function(u,l){u.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(u,l,o){var d=o(91)("span").classList,h=d&&d.constructor&&d.constructor.prototype;u.exports=h===Object.prototype?void 0:h},function(u,l,o){var d=o(32);u.exports=function(){var h=d(this),b="";return h.global&&(b+="g"),h.ignoreCase&&(b+="i"),h.multiline&&(b+="m"),h.dotAll&&(b+="s"),h.unicode&&(b+="u"),h.sticky&&(b+="y"),b}},function(u,l,o){var d=o(18),h=o(7).RegExp,b=d(function(){var S=h("a","y");return S.lastIndex=2,S.exec("abcd")!=null}),g=b||d(function(){return!h("a","y").sticky}),E=b||d(function(){var S=h("^r","gy");return S.lastIndex=2,S.exec("str")!=null});u.exports={BROKEN_CARET:E,MISSED_STICKY:g,UNSUPPORTED_Y:b}},function(u,l,o){var d=o(16),h=o(79).find,b=o(100),g="find",E=!0;g in[]&&Array(1).find(function(){E=!1}),d({target:"Array",proto:!0,forced:E},{find:function(S){return h(this,S,arguments.length>1?arguments[1]:void 0)}}),b(g)},function(u,l,o){var d=o(16),h=o(137).includes,b=o(100);d({target:"Array",proto:!0},{includes:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}}),b("includes")},function(u,l,o){var d=o(16),h=o(15),b=o(197),g=o(44),E=o(39),S=o(198),P=h("".indexOf);d({target:"String",proto:!0,forced:!S("includes")},{includes:function(k){return!!~P(E(g(this)),E(b(k)),arguments.length>1?arguments[1]:void 0)}})},function(u,l,o){var d=o(33),h=o(51),b=o(28)("match");u.exports=function(g){var E;return d(g)&&((E=g[b])!==void 0?!!E:h(g)=="RegExp")}},function(u,l,o){var d=o(15);u.exports=d(1 .valueOf)},function(u,l,o){var d=o(15),h=o(44),b=o(39),g=o(162),E=d("".replace),S="["+g+"]",P=RegExp("^"+S+S+"*"),k=RegExp(S+S+"*$"),M=function(C){return function(N){var L=b(h(N));return 1&C&&(L=E(L,P,"")),2&C&&(L=E(L,k,"")),L}};u.exports={start:M(1),end:M(2),trim:M(3)}},function(u,l){u.exports=`
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(u,l){var o,d,h=u.exports={};function b(){throw new Error("setTimeout has not been defined")}function g(){throw new Error("clearTimeout has not been defined")}function E(W){if(o===setTimeout)return setTimeout(W,0);if((o===b||!o)&&setTimeout)return o=setTimeout,setTimeout(W,0);try{return o(W,0)}catch{try{return o.call(null,W,0)}catch{return o.call(this,W,0)}}}(function(){try{o=typeof setTimeout=="function"?setTimeout:b}catch{o=b}try{d=typeof clearTimeout=="function"?clearTimeout:g}catch{d=g}})();var S,P=[],k=!1,M=-1;function C(){k&&S&&(k=!1,S.length?P=S.concat(P):M=-1,P.length&&N())}function N(){if(!k){var W=E(C);k=!0;for(var X=P.length;X;){for(S=P,P=[];++M<X;)S&&S[M].run();M=-1,X=P.length}S=null,k=!1,function(Q){if(d===clearTimeout)return clearTimeout(Q);if((d===g||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(Q);try{d(Q)}catch{try{return d.call(null,Q)}catch{return d.call(this,Q)}}}(W)}}function L(W,X){this.fun=W,this.array=X}function U(){}h.nextTick=function(W){var X=new Array(arguments.length-1);if(arguments.length>1)for(var Q=1;Q<arguments.length;Q++)X[Q-1]=arguments[Q];P.push(new L(W,X)),P.length!==1||k||E(N)},L.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=U,h.addListener=U,h.once=U,h.off=U,h.removeListener=U,h.removeAllListeners=U,h.emit=U,h.prependListener=U,h.prependOnceListener=U,h.listeners=function(W){return[]},h.binding=function(W){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(W){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(u,l,o){var d=o(32),h=o(165),b=o(28)("species");u.exports=function(g,E){var S,P=d(g).constructor;return P===void 0||(S=d(P)[b])==null?E:h(S)}},function(u,l,o){var d=o(7),h=o(99),b=o(88),g=d.TypeError;u.exports=function(E){if(h(E))return E;throw g(b(E)+" is not a constructor")}},function(u,l,o){var d=o(16),h=o(161).trim;d({target:"String",proto:!0,forced:o(200)("trim")},{trim:function(){return h(this)}})},function(u,l,o){var d=o(34),h=o(123),b=o(32),g=o(94),E=o(39),S=o(44),P=o(62),k=o(124),M=o(125);h("match",function(C,N,L){return[function(U){var W=S(this),X=U==null?void 0:P(U,C);return X?d(X,U,W):new RegExp(U)[C](E(W))},function(U){var W=b(this),X=E(U),Q=L(N,W,X);if(Q.done)return Q.value;if(!W.global)return M(W,X);var te=W.unicode;W.lastIndex=0;for(var Z,J=[],H=0;(Z=M(W,X))!==null;){var B=E(Z[0]);J[H]=B,B===""&&(W.lastIndex=k(X,g(W.lastIndex),te)),H++}return H===0?null:J}]})},function(u,l,o){var d,h,b,g,E=o(7),S=o(76),P=o(64),k=o(30),M=o(35),C=o(18),N=o(138),L=o(98),U=o(91),W=o(169),X=o(128),Q=E.setImmediate,te=E.clearImmediate,Z=E.process,J=E.Dispatch,H=E.Function,B=E.MessageChannel,V=E.String,Y=0,q={},ue="onreadystatechange";try{d=E.location}catch{}var xe=function(je){if(M(q,je)){var ve=q[je];delete q[je],ve()}},be=function(je){return function(){xe(je)}},Ae=function(je){xe(je.data)},Fe=function(je){E.postMessage(V(je),d.protocol+"//"+d.host)};Q&&te||(Q=function(je){var ve=L(arguments,1);return q[++Y]=function(){S(k(je)?je:H(je),void 0,ve)},h(Y),Y},te=function(je){delete q[je]},X?h=function(je){Z.nextTick(be(je))}:J&&J.now?h=function(je){J.now(be(je))}:B&&!W?(g=(b=new B).port2,b.port1.onmessage=Ae,h=P(g.postMessage,g)):E.addEventListener&&k(E.postMessage)&&!E.importScripts&&d&&d.protocol!=="file:"&&!C(Fe)?(h=Fe,E.addEventListener("message",Ae,!1)):h=ue in U("script")?function(je){N.appendChild(U("script")).onreadystatechange=function(){N.removeChild(this),xe(je)}}:function(je){setTimeout(be(je),0)}),u.exports={set:Q,clear:te}},function(u,l,o){var d=o(55);u.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},function(u,l,o){var d=o(56),h=function(b){var g,E;this.promise=new b(function(S,P){if(g!==void 0||E!==void 0)throw TypeError("Bad Promise constructor");g=S,E=P}),this.resolve=d(g),this.reject=d(E)};u.exports.f=function(b){return new h(b)}},function(u,l,o){l.a=function(){return!1}},function(u,l,o){(function(d){o.d(l,"a",function(){return Z});var h=o(1);function b(B){throw new Error("[mobx-utils] "+B)}function g(B,V){V===void 0&&(V="Illegal state"),B||b(V)}var E=function(B){return B&&B!==Object.prototype&&Object.getOwnPropertyNames(B).concat(E(Object.getPrototypeOf(B))||[])},S=function(B){return function(V){var Y=E(V);return Y.filter(function(q,ue){return Y.indexOf(q)===ue})}(B).filter(function(V){return V!=="constructor"&&!~V.indexOf("__")})},P="pending",k="fulfilled",M="rejected";function C(B){switch(this.state){case P:return B.pending&&B.pending(this.value);case M:return B.rejected&&B.rejected(this.value);case k:return B.fulfilled?B.fulfilled(this.value):this.value}}function N(B,V){if(g(arguments.length<=2,"fromPromise expects up to two arguments"),g(typeof B=="function"||typeof B=="object"&&B&&typeof B.then=="function","Please pass a promise or function to fromPromise"),B.isPromiseBasedObservable===!0)return B;typeof B=="function"&&(B=new Promise(B));var Y=B;B.then(Object(h.k)("observableFromPromise-resolve",function(ue){Y.value=ue,Y.state=k}),Object(h.k)("observableFromPromise-reject",function(ue){Y.value=ue,Y.state=M})),Y.isPromiseBasedObservable=!0,Y.case=C;var q=V&&V.state===k?V.value:void 0;return Object(h.q)(Y,{value:q,state:P},{},{deep:!1}),Y}(function(B){B.reject=Object(h.k)("fromPromise.reject",function(V){var Y=B(Promise.reject(V));return Y.state=M,Y.value=V,Y}),B.resolve=Object(h.k)("fromPromise.resolve",function(V){V===void 0&&(V=void 0);var Y=B(Promise.resolve(V));return Y.state=k,Y.value=V,Y})})(N||(N={}));var L=function(B,V,Y,q){var ue,xe=arguments.length,be=xe<3?V:q===null?q=Object.getOwnPropertyDescriptor(V,Y):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(B,V,Y,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ue=B[Ae])&&(be=(xe<3?ue(be):xe>3?ue(V,Y,be):ue(V,Y))||be);return xe>3&&be&&Object.defineProperty(V,Y,be),be};(function(){function B(V,Y){var q=this;Object(h.G)(function(){q.current=Y,q.subscription=V.subscribe(q)})}B.prototype.dispose=function(){this.subscription&&this.subscription.unsubscribe()},B.prototype.next=function(V){this.current=V},B.prototype.complete=function(){this.dispose()},B.prototype.error=function(V){this.current=V,this.dispose()},L([h.C.ref],B.prototype,"current",void 0),L([h.k.bound],B.prototype,"next",null),L([h.k.bound],B.prototype,"complete",null),L([h.k.bound],B.prototype,"error",null)})();var U=function(){return U=Object.assign||function(B){for(var V,Y=1,q=arguments.length;Y<q;Y++)for(var ue in V=arguments[Y])Object.prototype.hasOwnProperty.call(V,ue)&&(B[ue]=V[ue]);return B},U.apply(this,arguments)},W=function(B,V,Y,q){var ue,xe=arguments.length,be=xe<3?V:q===null?q=Object.getOwnPropertyDescriptor(V,Y):q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(B,V,Y,q);else for(var Ae=B.length-1;Ae>=0;Ae--)(ue=B[Ae])&&(be=(xe<3?ue(be):xe>3?ue(V,Y,be):ue(V,Y))||be);return xe>3&&be&&Object.defineProperty(V,Y,be),be},X=["model","reset","submit","isDirty","isPropertyDirty","resetProperty"];(function(){function B(V){var Y=this;this.model=V,this.localValues=h.C.map({}),this.localComputedValues=h.C.map({}),this.isPropertyDirty=function(q){return Y.localValues.has(q)},g(Object(h.A)(V),"createViewModel expects an observable object"),S(V).forEach(function(q){if(q!==h.a&&q!=="__mobxDidRunLazyInitializers"){if(g(X.indexOf(q)===-1,"The propertyname "+q+" is reserved and cannot be used with viewModels"),Object(h.w)(V,q)){var ue=Object(h.h)(V,q).derivation;Y.localComputedValues.set(q,Object(h.m)(ue.bind(Y)))}var xe=Object.getOwnPropertyDescriptor(V,q),be=xe?{enumerable:xe.enumerable}:{};Object.defineProperty(Y,q,U(U({},be),{configurable:!0,get:function(){return Object(h.w)(V,q)?Y.localComputedValues.get(q).get():Y.isPropertyDirty(q)?Y.localValues.get(q):Y.model[q]},set:Object(h.k)(function(Ae){Ae!==Y.model[q]?Y.localValues.set(q,Ae):Y.localValues.delete(q)})}))}})}Object.defineProperty(B.prototype,"isDirty",{get:function(){return this.localValues.size>0},enumerable:!1,configurable:!0}),Object.defineProperty(B.prototype,"changedValues",{get:function(){return this.localValues.toJS()},enumerable:!1,configurable:!0}),B.prototype.submit=function(){var V=this;Object(h.B)(this.localValues).forEach(function(Y){var q=V.localValues.get(Y),ue=V.model[Y];Object(h.y)(ue)?ue.replace(q):Object(h.z)(ue)?(ue.clear(),ue.merge(q)):Object(h.v)(q)||(V.model[Y]=q)}),this.localValues.clear()},B.prototype.reset=function(){this.localValues.clear()},B.prototype.resetProperty=function(V){this.localValues.delete(V)},W([h.m],B.prototype,"isDirty",null),W([h.m],B.prototype,"changedValues",null),W([h.k.bound],B.prototype,"submit",null),W([h.k.bound],B.prototype,"reset",null),W([h.k.bound],B.prototype,"resetProperty",null)})();function Q(B){if(!B)return"ROOT";for(var V=[];B.parent;)V.push(B.path),B=B.parent;return V.reverse().join("/")}function te(B){return Object(h.A)(B)||Object(h.y)(B)||Object(h.z)(B)}function Z(B,V){var Y=new WeakMap;function q(be){var Ae=Y.get(be.object);(function(Fe,je){switch(Fe.type){case"add":ue(Fe.newValue,je,Fe.name);break;case"update":xe(Fe.oldValue),ue(Fe.newValue,je,Fe.name||""+Fe.index);break;case"remove":case"delete":xe(Fe.oldValue);break;case"splice":Fe.removed.map(xe),Fe.added.forEach(function(Te,We){return ue(Te,je,""+(Fe.index+We))});for(var ve=Fe.index+Fe.addedCount;ve<Fe.object.length;ve++)if(te(Fe.object[ve])){var Pe=Y.get(Fe.object[ve]);Pe&&(Pe.path=""+ve)}}})(be,Ae),V(be,Q(Ae),B)}function ue(be,Ae,Fe){if(te(be)){var je=Y.get(be);if(je){if(je.parent!==Ae||je.path!==Fe)throw new Error("The same observable object cannot appear twice in the same tree, trying to assign it to '"+Q(Ae)+"/"+Fe+"', but it already exists at '"+Q(je.parent)+"/"+je.path+"'")}else{var ve={parent:Ae,path:Fe,dispose:Object(h.D)(be,q)};Y.set(be,ve),Object(h.p)(be).forEach(function(Pe){var Te=Pe[0];return ue(Pe[1],ve,Te)})}}}function xe(be){if(te(be)){var Ae=Y.get(be);if(!Ae)return;Y.delete(be),Ae.dispose(),Object(h.L)(be).forEach(xe)}}return ue(B,void 0,""),function(){xe(B)}}var J,H=(J=function(B,V){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,q){Y.__proto__=q}||function(Y,q){for(var ue in q)q.hasOwnProperty(ue)&&(Y[ue]=q[ue])},J(B,V)},function(B,V){function Y(){this.constructor=B}J(B,V),B.prototype=V===null?Object.create(V):(Y.prototype=V.prototype,new Y)});(function(B){function V(Y,q,ue){var xe=ue===void 0?{}:ue,be=xe.name,Ae=be===void 0?"ogm"+(1e3*Math.random()|0):be,Fe=xe.keyToName,je=Fe===void 0?function(Te){return""+Te}:Fe,ve=B.call(this)||this;ve._keyToName=je,ve._groupBy=q,ve._ogmInfoKey=Symbol("ogmInfo"+Ae),ve._base=Y;for(var Pe=0;Pe<Y.length;Pe++)ve._addItem(Y[Pe]);return ve._disposeBaseObserver=Object(h.D)(ve._base,function(Te){if(Te.type==="splice")Object(h.J)(function(){for(var We=0,it=Te.removed;We<it.length;We++){var xt=it[We];ve._removeItem(xt)}for(var Ye=0,Je=Te.added;Ye<Je.length;Ye++){var mt=Je[Ye];ve._addItem(mt)}});else{if(Te.type!=="update")throw new Error("illegal state");Object(h.J)(function(){ve._removeItem(Te.oldValue),ve._addItem(Te.newValue)})}}),ve}H(V,B),V.prototype.clear=function(){throw new Error("not supported")},V.prototype.delete=function(Y){throw new Error("not supported")},V.prototype.set=function(Y,q){throw new Error("not supported")},V.prototype.dispose=function(){this._disposeBaseObserver();for(var Y=0;Y<this._base.length;Y++){var q=this._base[Y];q[this._ogmInfoKey].reaction(),delete q[this._ogmInfoKey]}},V.prototype._getGroupArr=function(Y){var q=B.prototype.get.call(this,Y);return q===void 0&&(q=Object(h.C)([],{name:"GroupArray["+this._keyToName(Y)+"]",deep:!1}),B.prototype.set.call(this,Y,q)),q},V.prototype._removeFromGroupArr=function(Y,q){var ue=B.prototype.get.call(this,Y);ue.length===1?B.prototype.delete.call(this,Y):(q===ue.length-1||(ue[q]=ue[ue.length-1],ue[q][this._ogmInfoKey].groupArrIndex=q),ue.length--)},V.prototype._addItem=function(Y){var q=this,ue=this._groupBy(Y),xe=this._getGroupArr(ue),be={groupByValue:ue,groupArrIndex:xe.length,reaction:Object(h.F)(function(){return q._groupBy(Y)},function(Ae,Fe){var je=Y[q._ogmInfoKey];q._removeFromGroupArr(je.groupByValue,je.groupArrIndex);var ve=q._getGroupArr(Ae),Pe=ve.length;ve.push(Y),je.groupByValue=Ae,je.groupArrIndex=Pe})};Object.defineProperty(Y,this._ogmInfoKey,{configurable:!0,enumerable:!1,value:be}),xe.push(Y)},V.prototype._removeItem=function(Y){var q=Y[this._ogmInfoKey];this._removeFromGroupArr(q.groupByValue,q.groupArrIndex),q.reaction(),delete Y[this._ogmInfoKey]}})(h.b),function(){function B(V,Y){this.base=V,this.args=Y,this.closestIdx=0,this.isDisposed=!1;for(var q=this.closest=this.root=V,ue=0;ue<this.args.length-1&&(q=q.get(Y[ue]));ue++)this.closest=q;this.closestIdx=ue}return B.prototype.exists=function(){this.assertNotDisposed();var V=this.args.length;return this.closestIdx>=V-1&&this.closest.has(this.args[V-1])},B.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])},B.prototype.set=function(V){this.assertNotDisposed();for(var Y=this.args.length,q=this.closest,ue=this.closestIdx;ue<Y-1;ue++){var xe=new Map;q.set(this.args[ue],xe),q=xe}this.closestIdx=Y-1,this.closest=q,q.set(this.args[Y-1],V)},B.prototype.delete=function(){if(this.assertNotDisposed(),!this.exists())throw new Error("Entry doesn't exist");var V=this.args.length;this.closest.delete(this.args[V-1]);for(var Y=this.root,q=[Y],ue=0;ue<V-1;ue++)Y=Y.get(this.args[ue]),q.push(Y);for(ue=q.length-1;ue>0;ue--)q[ue].size===0&&q[ue-1].delete(this.args[ue-1]);this.isDisposed=!0},B.prototype.assertNotDisposed=function(){if(this.isDisposed)throw new Error("Concurrent modification exception")},B}(),Promise.resolve(),typeof queueMicrotask!="undefined"||d!==void 0&&d.nextTick}).call(this,o(163))},function(u,l,o){var d;(function(h,b,g){if(h){for(var E,S={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"},P={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},k={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},M={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},C=1;C<20;++C)S[111+C]="f"+C;for(C=0;C<=9;++C)S[C+96]=C.toString();te.prototype.bind=function(Z,J,H){var B=this;return Z=Z instanceof Array?Z:[Z],B._bindMultiple.call(B,Z,J,H),B},te.prototype.unbind=function(Z,J){return this.bind.call(this,Z,function(){},J)},te.prototype.trigger=function(Z,J){var H=this;return H._directMap[Z+":"+J]&&H._directMap[Z+":"+J]({},Z),H},te.prototype.reset=function(){var Z=this;return Z._callbacks={},Z._directMap={},Z},te.prototype.stopCallback=function(Z,J){if((" "+J.className+" ").indexOf(" mousetrap ")>-1||Q(J,this.target))return!1;if("composedPath"in Z&&typeof Z.composedPath=="function"){var H=Z.composedPath()[0];H!==Z.target&&(J=H)}return J.tagName=="INPUT"||J.tagName=="SELECT"||J.tagName=="TEXTAREA"||J.isContentEditable},te.prototype.handleKey=function(){var Z=this;return Z._handleKey.apply(Z,arguments)},te.addKeycodes=function(Z){for(var J in Z)Z.hasOwnProperty(J)&&(S[J]=Z[J]);E=null},te.init=function(){var Z=te(b);for(var J in Z)J.charAt(0)!=="_"&&(te[J]=function(H){return function(){return Z[H].apply(Z,arguments)}}(J))},te.init(),h.Mousetrap=te,u.exports&&(u.exports=te),(d=function(){return te}.call(l,o,l,u))===void 0||(u.exports=d)}function N(Z,J,H){Z.addEventListener?Z.addEventListener(J,H,!1):Z.attachEvent("on"+J,H)}function L(Z){if(Z.type=="keypress"){var J=String.fromCharCode(Z.which);return Z.shiftKey||(J=J.toLowerCase()),J}return S[Z.which]?S[Z.which]:P[Z.which]?P[Z.which]:String.fromCharCode(Z.which).toLowerCase()}function U(Z){return Z=="shift"||Z=="ctrl"||Z=="alt"||Z=="meta"}function W(Z,J,H){return H||(H=function(){if(!E)for(var B in E={},S)B>95&&B<112||S.hasOwnProperty(B)&&(E[S[B]]=B);return E}()[Z]?"keydown":"keypress"),H=="keypress"&&J.length&&(H="keydown"),H}function X(Z,J){var H,B,V,Y=[];for(H=function(q){return q==="+"?["+"]:(q=q.replace(/\+{2}/g,"+plus")).split("+")}(Z),V=0;V<H.length;++V)B=H[V],M[B]&&(B=M[B]),J&&J!="keypress"&&k[B]&&(B=k[B],Y.push("shift")),U(B)&&Y.push(B);return{key:B,modifiers:Y,action:J=W(B,Y,J)}}function Q(Z,J){return Z!==null&&Z!==b&&(Z===J||Q(Z.parentNode,J))}function te(Z){var J=this;if(Z=Z||b,!(J instanceof te))return new te(Z);J.target=Z,J._callbacks={},J._directMap={};var H,B={},V=!1,Y=!1,q=!1;function ue(ve){ve=ve||{};var Pe,Te=!1;for(Pe in B)ve[Pe]?Te=!0:B[Pe]=0;Te||(q=!1)}function xe(ve,Pe,Te,We,it,xt){var Ye,Je,mt,se,ce=[],ge=Te.type;if(!J._callbacks[ve])return[];for(ge=="keyup"&&U(ve)&&(Pe=[ve]),Ye=0;Ye<J._callbacks[ve].length;++Ye)if(Je=J._callbacks[ve][Ye],(We||!Je.seq||B[Je.seq]==Je.level)&&ge==Je.action&&(ge=="keypress"&&!Te.metaKey&&!Te.ctrlKey||(mt=Pe,se=Je.modifiers,mt.sort().join(",")===se.sort().join(",")))){var De=!We&&Je.combo==it,Ue=We&&Je.seq==We&&Je.level==xt;(De||Ue)&&J._callbacks[ve].splice(Ye,1),ce.push(Je)}return ce}function be(ve,Pe,Te,We){J.stopCallback(Pe,Pe.target||Pe.srcElement,Te,We)||ve(Pe,Te)===!1&&(function(it){it.preventDefault?it.preventDefault():it.returnValue=!1}(Pe),function(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}(Pe))}function Ae(ve){typeof ve.which!="number"&&(ve.which=ve.keyCode);var Pe=L(ve);Pe&&(ve.type!="keyup"||V!==Pe?J.handleKey(Pe,function(Te){var We=[];return Te.shiftKey&&We.push("shift"),Te.altKey&&We.push("alt"),Te.ctrlKey&&We.push("ctrl"),Te.metaKey&&We.push("meta"),We}(ve),ve):V=!1)}function Fe(ve,Pe,Te,We){function it(mt){return function(){q=mt,++B[ve],clearTimeout(H),H=setTimeout(ue,1e3)}}function xt(mt){be(Te,mt,ve),We!=="keyup"&&(V=L(mt)),setTimeout(ue,10)}B[ve]=0;for(var Ye=0;Ye<Pe.length;++Ye){var Je=Ye+1===Pe.length?xt:it(We||X(Pe[Ye+1]).action);je(Pe[Ye],Je,We,ve,Ye)}}function je(ve,Pe,Te,We,it){J._directMap[ve+":"+Te]=Pe;var xt,Ye=(ve=ve.replace(/\s+/g," ")).split(" ");Ye.length>1?Fe(ve,Ye,Pe,Te):(xt=X(ve,Te),J._callbacks[xt.key]=J._callbacks[xt.key]||[],xe(xt.key,xt.modifiers,{type:xt.action},We,ve,it),J._callbacks[xt.key][We?"unshift":"push"]({callback:Pe,modifiers:xt.modifiers,action:xt.action,seq:We,level:it,combo:ve}))}J._handleKey=function(ve,Pe,Te){var We,it=xe(ve,Pe,Te),xt={},Ye=0,Je=!1;for(We=0;We<it.length;++We)it[We].seq&&(Ye=Math.max(Ye,it[We].level));for(We=0;We<it.length;++We)if(it[We].seq){if(it[We].level!=Ye)continue;Je=!0,xt[it[We].seq]=1,be(it[We].callback,Te,it[We].combo,it[We].seq)}else Je||be(it[We].callback,Te,it[We].combo);var mt=Te.type=="keypress"&&Y;Te.type!=q||U(ve)||mt||ue(xt),Y=Je&&Te.type=="keydown"},J._bindMultiple=function(ve,Pe,Te){for(var We=0;We<ve.length;++We)je(ve[We],Pe,Te)},N(Z,"keypress",Ae),N(Z,"keydown",Ae),N(Z,"keyup",Ae)}})(typeof window!="undefined"?window:null,typeof window!="undefined"?document:null)},function(u,l,o){var d=o(7),h=o(34),b=o(30),g=o(33),E=d.TypeError;u.exports=function(S,P){var k,M;if(P==="string"&&b(k=S.toString)&&!g(M=h(k,S))||b(k=S.valueOf)&&!g(M=h(k,S))||P!=="string"&&b(k=S.toString)&&!g(M=h(k,S)))return M;throw E("Can't convert object to primitive value")}},function(u,l,o){var d=o(7),h=o(30),b=o(92),g=d.WeakMap;u.exports=h(g)&&/native code/.test(b(g))},function(u,l,o){var d=o(36),h=o(38),b=o(32),g=o(41),E=o(77);u.exports=d?Object.defineProperties:function(S,P){b(S);for(var k,M=g(P),C=E(P),N=C.length,L=0;N>L;)h.f(S,k=C[L++],M[k]);return S}},function(u,l,o){var d=o(7);u.exports=d},function(u,l,o){var d=o(7),h=o(96),b=o(99),g=o(33),E=o(28)("species"),S=d.Array;u.exports=function(P){var k;return h(P)&&(k=P.constructor,(b(k)&&(k===S||h(k.prototype))||g(k)&&(k=k[E])===null)&&(k=void 0)),k===void 0?S:k}},function(u,l,o){var d=o(113),h=o(97);u.exports=d?{}.toString:function(){return"[object "+h(this)+"]"}},function(u,l,o){var d=o(142).IteratorPrototype,h=o(60),b=o(69),g=o(78),E=o(80),S=function(){return this};u.exports=function(P,k,M,C){var N=k+" Iterator";return P.prototype=h(d,{next:b(+!C,M)}),g(P,N,!1,!0),E[N]=S,P}},function(u,l,o){var d=o(7),h=o(30),b=d.String,g=d.TypeError;u.exports=function(E){if(typeof E=="object"||h(E))return E;throw g("Can't set "+b(E)+" as a prototype")}},function(u,l,o){var d=o(16),h=o(7),b=o(15),g=o(95),E=o(42),S=o(144),P=o(117),k=o(119),M=o(30),C=o(33),N=o(18),L=o(120),U=o(78),W=o(148);u.exports=function(X,Q,te){var Z=X.indexOf("Map")!==-1,J=X.indexOf("Weak")!==-1,H=Z?"set":"add",B=h[X],V=B&&B.prototype,Y=B,q={},ue=function(ve){var Pe=b(V[ve]);E(V,ve,ve=="add"?function(Te){return Pe(this,Te===0?0:Te),this}:ve=="delete"?function(Te){return!(J&&!C(Te))&&Pe(this,Te===0?0:Te)}:ve=="get"?function(Te){return J&&!C(Te)?void 0:Pe(this,Te===0?0:Te)}:ve=="has"?function(Te){return!(J&&!C(Te))&&Pe(this,Te===0?0:Te)}:function(Te,We){return Pe(this,Te===0?0:Te,We),this})};if(g(X,!M(B)||!(J||V.forEach&&!N(function(){new B().entries().next()}))))Y=te.getConstructor(Q,X,Z,H),S.enable();else if(g(X,!0)){var xe=new Y,be=xe[H](J?{}:-0,1)!=xe,Ae=N(function(){xe.has(1)}),Fe=L(function(ve){new B(ve)}),je=!J&&N(function(){for(var ve=new B,Pe=5;Pe--;)ve[H](Pe,Pe);return!ve.has(-0)});Fe||((Y=Q(function(ve,Pe){k(ve,V);var Te=W(new B,ve,Y);return Pe!=null&&P(Pe,Te[H],{that:Te,AS_ENTRIES:Z}),Te})).prototype=V,V.constructor=Y),(Ae||je)&&(ue("delete"),ue("has"),Z&&ue("get")),(je||be)&&ue(H),J&&V.clear&&delete V.clear}return q[X]=Y,d({global:!0,forced:Y!=B},q),U(Y,X),J||te.setStrong(Y,X,Z),Y}},function(u,l,o){var d=o(18),h=o(33),b=o(51),g=o(184),E=Object.isExtensible,S=d(function(){});u.exports=S||g?function(P){return!!h(P)&&(!g||b(P)!="ArrayBuffer")&&(!E||E(P))}:E},function(u,l,o){var d=o(18);u.exports=d(function(){if(typeof ArrayBuffer=="function"){var h=new ArrayBuffer(8);Object.isExtensible(h)&&Object.defineProperty(h,"a",{value:8})}})},function(u,l,o){var d=o(18);u.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(u,l,o){var d=o(38).f,h=o(60),b=o(149),g=o(64),E=o(119),S=o(117),P=o(116),k=o(150),M=o(36),C=o(144).fastKey,N=o(58),L=N.set,U=N.getterFor;u.exports={getConstructor:function(W,X,Q,te){var Z=W(function(Y,q){E(Y,J),L(Y,{type:X,index:h(null),first:void 0,last:void 0,size:0}),M||(Y.size=0),q!=null&&S(q,Y[te],{that:Y,AS_ENTRIES:Q})}),J=Z.prototype,H=U(X),B=function(Y,q,ue){var xe,be,Ae=H(Y),Fe=V(Y,q);return Fe?Fe.value=ue:(Ae.last=Fe={index:be=C(q,!0),key:q,value:ue,previous:xe=Ae.last,next:void 0,removed:!1},Ae.first||(Ae.first=Fe),xe&&(xe.next=Fe),M?Ae.size++:Y.size++,be!=="F"&&(Ae.index[be]=Fe)),Y},V=function(Y,q){var ue,xe=H(Y),be=C(q);if(be!=="F")return xe.index[be];for(ue=xe.first;ue;ue=ue.next)if(ue.key==q)return ue};return b(J,{clear:function(){for(var Y=H(this),q=Y.index,ue=Y.first;ue;)ue.removed=!0,ue.previous&&(ue.previous=ue.previous.next=void 0),delete q[ue.index],ue=ue.next;Y.first=Y.last=void 0,M?Y.size=0:this.size=0},delete:function(Y){var q=this,ue=H(q),xe=V(q,Y);if(xe){var be=xe.next,Ae=xe.previous;delete ue.index[xe.index],xe.removed=!0,Ae&&(Ae.next=be),be&&(be.previous=Ae),ue.first==xe&&(ue.first=be),ue.last==xe&&(ue.last=Ae),M?ue.size--:q.size--}return!!xe},forEach:function(Y){for(var q,ue=H(this),xe=g(Y,arguments.length>1?arguments[1]:void 0);q=q?q.next:ue.first;)for(xe(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(Y){return!!V(this,Y)}}),b(J,Q?{get:function(Y){var q=V(this,Y);return q&&q.value},set:function(Y,q){return B(this,Y===0?0:Y,q)}}:{add:function(Y){return B(this,Y=Y===0?0:Y,Y)}}),M&&d(J,"size",{get:function(){return H(this).size}}),Z},setStrong:function(W,X,Q){var te=X+" Iterator",Z=U(X),J=U(te);P(W,X,function(H,B){L(this,{type:te,target:H,state:Z(H),kind:B,last:void 0})},function(){for(var H=J(this),B=H.kind,V=H.last;V&&V.removed;)V=V.previous;return H.target&&(H.last=V=V?V.next:H.state.first)?B=="keys"?{value:V.key,done:!1}:B=="values"?{value:V.value,done:!1}:{value:[V.key,V.value],done:!1}:(H.target=void 0,{value:void 0,done:!0})},Q?"entries":"values",!Q,!0),k(X)}}},function(u,l,o){var d=o(79).forEach,h=o(121)("forEach");u.exports=h?[].forEach:function(b){return d(this,b,arguments.length>1?arguments[1]:void 0)}},function(u,l,o){var d=o(7),h=o(64),b=o(34),g=o(40),E=o(189),S=o(145),P=o(99),k=o(45),M=o(63),C=o(146),N=o(118),L=d.Array;u.exports=function(U){var W=g(U),X=P(this),Q=arguments.length,te=Q>1?arguments[1]:void 0,Z=te!==void 0;Z&&(te=h(te,Q>2?arguments[2]:void 0));var J,H,B,V,Y,q,ue=N(W),xe=0;if(!ue||this==L&&S(ue))for(J=k(W),H=X?new this(J):L(J);J>xe;xe++)q=Z?te(W[xe],xe):W[xe],M(H,xe,q);else for(Y=(V=C(W,ue)).next,H=X?new this:[];!(B=b(Y,V)).done;xe++)q=Z?E(V,te,[B.value,xe],!0):B.value,M(H,xe,q);return H.length=xe,H}},function(u,l,o){var d=o(32),h=o(147);u.exports=function(b,g,E,S){try{return S?g(d(E)[0],E[1]):g(E)}catch(P){h(b,"throw",P)}}},function(u,l,o){var d=o(18),h=o(7).RegExp;u.exports=d(function(){var b=h(".","s");return!(b.dotAll&&b.exec(`
- `)&&b.flags==="s")})},function(u,l,o){var d=o(18),h=o(7).RegExp;u.exports=d(function(){var b=h("(?<a>b)","g");return b.exec("b").groups.a!=="b"||"b".replace(b,"$<a>c")!=="bc"})},function(u,l,o){var d=o(16),h=o(15),b=o(56),g=o(40),E=o(45),S=o(39),P=o(18),k=o(193),M=o(121),C=o(194),N=o(195),L=o(70),U=o(196),W=[],X=h(W.sort),Q=h(W.push),te=P(function(){W.sort(void 0)}),Z=P(function(){W.sort(null)}),J=M("sort"),H=!P(function(){if(L)return L<70;if(!(C&&C>3)){if(N)return!0;if(U)return U<603;var B,V,Y,q,ue="";for(B=65;B<76;B++){switch(V=String.fromCharCode(B),B){case 66:case 69:case 70:case 72:Y=3;break;case 68:case 71:Y=4;break;default:Y=2}for(q=0;q<47;q++)W.push({k:V+q,v:Y})}for(W.sort(function(xe,be){return be.v-xe.v}),q=0;q<W.length;q++)V=W[q].k.charAt(0),ue.charAt(ue.length-1)!==V&&(ue+=V);return ue!=="DGBEFHACIJK"}});d({target:"Array",proto:!0,forced:te||!Z||!J||!H},{sort:function(B){B!==void 0&&b(B);var V=g(this);if(H)return B===void 0?X(V):X(V,B);var Y,q,ue=[],xe=E(V);for(q=0;q<xe;q++)q in V&&Q(ue,V[q]);for(k(ue,function(be){return function(Ae,Fe){return Fe===void 0?-1:Ae===void 0?1:be!==void 0?+be(Ae,Fe)||0:S(Ae)>S(Fe)?1:-1}}(B)),Y=ue.length,q=0;q<Y;)V[q]=ue[q++];for(;q<xe;)delete V[q++];return V}})},function(u,l,o){var d=o(114),h=Math.floor,b=function(S,P){var k=S.length,M=h(k/2);return k<8?g(S,P):E(S,b(d(S,0,M),P),b(d(S,M),P),P)},g=function(S,P){for(var k,M,C=S.length,N=1;N<C;){for(M=N,k=S[N];M&&P(S[M-1],k)>0;)S[M]=S[--M];M!==N++&&(S[M]=k)}return S},E=function(S,P,k,M){for(var C=P.length,N=k.length,L=0,U=0;L<C||U<N;)S[L+U]=L<C&&U<N?M(P[L],k[U])<=0?P[L++]:k[U++]:L<C?P[L++]:k[U++];return S};u.exports=b},function(u,l,o){var d=o(55).match(/firefox\/(\d+)/i);u.exports=!!d&&+d[1]},function(u,l,o){var d=o(55);u.exports=/MSIE|Trident/.test(d)},function(u,l,o){var d=o(55).match(/AppleWebKit\/(\d+)\./);u.exports=!!d&&+d[1]},function(u,l,o){var d=o(7),h=o(159),b=d.TypeError;u.exports=function(g){if(h(g))throw b("The method doesn't accept regular expressions");return g}},function(u,l,o){var d=o(28)("match");u.exports=function(h){var b=/./;try{"/./"[h](b)}catch{try{return b[d]=!1,"/./"[h](b)}catch{}}return!1}},function(u,l,o){o(16)({target:"Number",stat:!0},{isNaN:function(d){return d!=d}})},function(u,l,o){var d=o(73).PROPER,h=o(18),b=o(162);u.exports=function(g){return h(function(){return!!b[g]()||"\u200B\x85\u180E"[g]()!=="\u200B\x85\u180E"||d&&b[g].name!==g})}},function(u,l,o){var d=o(15),h=o(40),b=Math.floor,g=d("".charAt),E=d("".replace),S=d("".slice),P=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,k=/\$([$&'`]|\d{1,2})/g;u.exports=function(M,C,N,L,U,W){var X=N+M.length,Q=L.length,te=k;return U!==void 0&&(U=h(U),te=P),E(W,te,function(Z,J){var H;switch(g(J,0)){case"$":return"$";case"&":return M;case"`":return S(C,0,N);case"'":return S(C,X);case"<":H=U[S(J,1,-1)];break;default:var B=+J;if(B===0)return Z;if(B>Q){var V=b(B/10);return V===0?Z:V<=Q?L[V-1]===void 0?g(J,1):L[V-1]+g(J,1):Z}H=L[B-1]}return H===void 0?"":H})}},function(u,l,o){var d=o(36),h=o(15),b=o(34),g=o(18),E=o(77),S=o(112),P=o(84),k=o(40),M=o(85),C=Object.assign,N=Object.defineProperty,L=h([].concat);u.exports=!C||g(function(){if(d&&C({b:1},C(N({},"a",{enumerable:!0,get:function(){N(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var U={},W={},X=Symbol(),Q="abcdefghijklmnopqrst";return U[X]=7,Q.split("").forEach(function(te){W[te]=te}),C({},U)[X]!=7||E(C({},W)).join("")!=Q})?function(U,W){for(var X=k(U),Q=arguments.length,te=1,Z=S.f,J=P.f;Q>te;)for(var H,B=M(arguments[te++]),V=Z?L(E(B),Z(B)):E(B),Y=V.length,q=0;Y>q;)H=V[q++],d&&!b(J,B,H)||(X[H]=B[H]);return X}:C},function(u,l,o){var d=o(7),h=o(15),b=o(56),g=o(33),E=o(35),S=o(98),P=d.Function,k=h([].concat),M=h([].join),C={},N=function(L,U,W){if(!E(C,U)){for(var X=[],Q=0;Q<U;Q++)X[Q]="a["+Q+"]";C[U]=P("C,a","return new C("+M(X,",")+")")}return C[U](L,W)};u.exports=P.bind||function(L){var U=b(this),W=U.prototype,X=S(arguments,1),Q=function(){var te=k(X,S(arguments));return this instanceof Q?N(U,te.length,te):U.apply(L,te)};return g(W)&&(Q.prototype=W),Q}},function(u,l,o){var d=o(35);u.exports=function(h){return h!==void 0&&(d(h,"value")||d(h,"writable"))}},function(u,l,o){var d=o(15),h=o(44),b=o(39),g=/"/g,E=d("".replace);u.exports=function(S,P,k,M){var C=b(h(S)),N="<"+P;return k!==""&&(N+=" "+k+'="'+E(b(M),g,""")+'"'),N+">"+C+"</"+P+">"}},function(u,l,o){var d=o(18);u.exports=function(h){return d(function(){var b=""[h]('"');return b!==b.toLowerCase()||b.split('"').length>3})}},function(u,l,o){o(16)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(u,l,o){var d,h,b,g,E=o(16),S=o(71),P=o(7),k=o(46),M=o(34),C=o(209),N=o(42),L=o(149),U=o(102),W=o(78),X=o(150),Q=o(56),te=o(30),Z=o(33),J=o(119),H=o(92),B=o(117),V=o(120),Y=o(164),q=o(168).set,ue=o(210),xe=o(213),be=o(214),Ae=o(170),Fe=o(215),je=o(58),ve=o(95),Pe=o(28),Te=o(216),We=o(128),it=o(70),xt=Pe("species"),Ye="Promise",Je=je.getterFor(Ye),mt=je.set,se=je.getterFor(Ye),ce=C&&C.prototype,ge=C,De=ce,Ue=P.TypeError,ze=P.document,Et=P.process,Rt=Ae.f,At=Rt,gt=!!(ze&&ze.createEvent&&P.dispatchEvent),Me=te(P.PromiseRejectionEvent),lt="unhandledrejection",fe=!1,at=ve(Ye,function(){var ae=H(ge),_e=ae!==String(ge);if(!_e&&it===66||S&&!De.finally)return!0;if(it>=51&&/native code/.test(ae))return!1;var Ve=new ge(function(pt){pt(1)}),Ke=function(pt){pt(function(){},function(){})};return(Ve.constructor={})[xt]=Ke,!(fe=Ve.then(function(){})instanceof Ke)||!_e&&Te&&!Me}),$t=at||!V(function(ae){ge.all(ae).catch(function(){})}),hn=function(ae){var _e;return!(!Z(ae)||!te(_e=ae.then))&&_e},Wt=function(ae,_e){if(!ae.notified){ae.notified=!0;var Ve=ae.reactions;ue(function(){for(var Ke=ae.value,pt=ae.state==1,Vt=0;Ve.length>Vt;){var ir,yr,Yn,Zn=Ve[Vt++],ut=pt?Zn.ok:Zn.fail,Ot=Zn.resolve,St=Zn.reject,zt=Zn.domain;try{ut?(pt||(ae.rejection===2&&Bt(ae),ae.rejection=1),ut===!0?ir=Ke:(zt&&zt.enter(),ir=ut(Ke),zt&&(zt.exit(),Yn=!0)),ir===Zn.promise?St(Ue("Promise-chain cycle")):(yr=hn(ir))?M(yr,ir,Ot,St):Ot(ir)):St(Ke)}catch(bn){zt&&!Yn&&zt.exit(),St(bn)}}ae.reactions=[],ae.notified=!1,_e&&!ae.rejection&&_n(ae)})}},on=function(ae,_e,Ve){var Ke,pt;gt?((Ke=ze.createEvent("Event")).promise=_e,Ke.reason=Ve,Ke.initEvent(ae,!1,!0),P.dispatchEvent(Ke)):Ke={promise:_e,reason:Ve},!Me&&(pt=P["on"+ae])?pt(Ke):ae===lt&&be("Unhandled promise rejection",Ve)},_n=function(ae){M(q,P,function(){var _e,Ve=ae.facade,Ke=ae.value;if(Nn(ae)&&(_e=Fe(function(){We?Et.emit("unhandledRejection",Ke,Ve):on(lt,Ve,Ke)}),ae.rejection=We||Nn(ae)?2:1,_e.error))throw _e.value})},Nn=function(ae){return ae.rejection!==1&&!ae.parent},Bt=function(ae){M(q,P,function(){var _e=ae.facade;We?Et.emit("rejectionHandled",_e):on("rejectionhandled",_e,ae.value)})},Xn=function(ae,_e,Ve){return function(Ke){ae(_e,Ke,Ve)}},ne=function(ae,_e,Ve){ae.done||(ae.done=!0,Ve&&(ae=Ve),ae.value=_e,ae.state=2,Wt(ae,!0))},de=function(ae,_e,Ve){if(!ae.done){ae.done=!0,Ve&&(ae=Ve);try{if(ae.facade===_e)throw Ue("Promise can't be resolved itself");var Ke=hn(_e);Ke?ue(function(){var pt={done:!1};try{M(Ke,_e,Xn(de,pt,ae),Xn(ne,pt,ae))}catch(Vt){ne(pt,Vt,ae)}}):(ae.value=_e,ae.state=1,Wt(ae,!1))}catch(pt){ne({done:!1},pt,ae)}}};if(at&&(De=(ge=function(ae){J(this,De),Q(ae),M(d,this);var _e=Je(this);try{ae(Xn(de,_e),Xn(ne,_e))}catch(Ve){ne(_e,Ve)}}).prototype,(d=function(ae){mt(this,{type:Ye,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=L(De,{then:function(ae,_e){var Ve=se(this),Ke=Ve.reactions,pt=Rt(Y(this,ge));return pt.ok=!te(ae)||ae,pt.fail=te(_e)&&_e,pt.domain=We?Et.domain:void 0,Ve.parent=!0,Ke[Ke.length]=pt,Ve.state!=0&&Wt(Ve,!1),pt.promise},catch:function(ae){return this.then(void 0,ae)}}),h=function(){var ae=new d,_e=Je(ae);this.promise=ae,this.resolve=Xn(de,_e),this.reject=Xn(ne,_e)},Ae.f=Rt=function(ae){return ae===ge||ae===b?new h(ae):At(ae)},!S&&te(C)&&ce!==Object.prototype)){g=ce.then,fe||(N(ce,"then",function(ae,_e){var Ve=this;return new ge(function(Ke,pt){M(g,Ve,Ke,pt)}).then(ae,_e)},{unsafe:!0}),N(ce,"catch",De.catch,{unsafe:!0}));try{delete ce.constructor}catch{}U&&U(ce,De)}E({global:!0,wrap:!0,forced:at},{Promise:ge}),W(ge,Ye,!1,!0),X(Ye),b=k(Ye),E({target:Ye,stat:!0,forced:at},{reject:function(ae){var _e=Rt(this);return M(_e.reject,void 0,ae),_e.promise}}),E({target:Ye,stat:!0,forced:S||at},{resolve:function(ae){return xe(S&&this===b?ge:this,ae)}}),E({target:Ye,stat:!0,forced:$t},{all:function(ae){var _e=this,Ve=Rt(_e),Ke=Ve.resolve,pt=Ve.reject,Vt=Fe(function(){var ir=Q(_e.resolve),yr=[],Yn=0,Zn=1;B(ae,function(ut){var Ot=Yn++,St=!1;Zn++,M(ir,_e,ut).then(function(zt){St||(St=!0,yr[Ot]=zt,--Zn||Ke(yr))},pt)}),--Zn||Ke(yr)});return Vt.error&&pt(Vt.value),Ve.promise},race:function(ae){var _e=this,Ve=Rt(_e),Ke=Ve.reject,pt=Fe(function(){var Vt=Q(_e.resolve);B(ae,function(ir){M(Vt,_e,ir).then(Ve.resolve,Ke)})});return pt.error&&Ke(pt.value),Ve.promise}})},function(u,l,o){var d=o(7);u.exports=d.Promise},function(u,l,o){var d,h,b,g,E,S,P,k,M=o(7),C=o(64),N=o(50).f,L=o(168).set,U=o(169),W=o(211),X=o(212),Q=o(128),te=M.MutationObserver||M.WebKitMutationObserver,Z=M.document,J=M.process,H=M.Promise,B=N(M,"queueMicrotask"),V=B&&B.value;V||(d=function(){var Y,q;for(Q&&(Y=J.domain)&&Y.exit();h;){q=h.fn,h=h.next;try{q()}catch(ue){throw h?g():b=void 0,ue}}b=void 0,Y&&Y.enter()},U||Q||X||!te||!Z?!W&&H&&H.resolve?((P=H.resolve(void 0)).constructor=H,k=C(P.then,P),g=function(){k(d)}):Q?g=function(){J.nextTick(d)}:(L=C(L,M),g=function(){L(d)}):(E=!0,S=Z.createTextNode(""),new te(d).observe(S,{characterData:!0}),g=function(){S.data=E=!E})),u.exports=V||function(Y){var q={fn:Y,next:void 0};b&&(b.next=q),h||(h=q,g()),b=q}},function(u,l,o){var d=o(55),h=o(7);u.exports=/ipad|iphone|ipod/i.test(d)&&h.Pebble!==void 0},function(u,l,o){var d=o(55);u.exports=/web0s(?!.*chrome)/i.test(d)},function(u,l,o){var d=o(32),h=o(33),b=o(170);u.exports=function(g,E){if(d(g),h(E)&&E.constructor===g)return E;var S=b.f(g);return(0,S.resolve)(E),S.promise}},function(u,l,o){var d=o(7);u.exports=function(h,b){var g=d.console;g&&g.error&&(arguments.length==1?g.error(h):g.error(h,b))}},function(u,l){u.exports=function(o){try{return{error:!1,value:o()}}catch(d){return{error:!0,value:d}}}},function(u,l){u.exports=typeof window=="object"},function(u,l,o){var d=o(40),h=o(75),b=o(45);u.exports=function(g){for(var E=d(this),S=b(E),P=arguments.length,k=h(P>1?arguments[1]:void 0,S),M=P>2?arguments[2]:void 0,C=M===void 0?S:h(M,S);C>k;)E[k++]=g;return E}},function(u,l,o){var d=o(16),h=o(7),b=o(15),g=o(59),E=o(160),S=o(219),P=o(18),k=h.RangeError,M=h.String,C=Math.floor,N=b(S),L=b("".slice),U=b(1 .toFixed),W=function(Z,J,H){return J===0?H:J%2==1?W(Z,J-1,H*Z):W(Z*Z,J/2,H)},X=function(Z,J,H){for(var B=-1,V=H;++B<6;)V+=J*Z[B],Z[B]=V%1e7,V=C(V/1e7)},Q=function(Z,J){for(var H=6,B=0;--H>=0;)B+=Z[H],Z[H]=C(B/J),B=B%J*1e7},te=function(Z){for(var J=6,H="";--J>=0;)if(H!==""||J===0||Z[J]!==0){var B=M(Z[J]);H=H===""?B:H+N("0",7-B.length)+B}return H};d({target:"Number",proto:!0,forced:P(function(){return U(8e-5,3)!=="0.000"||U(.9,0)!=="1"||U(1.255,2)!=="1.25"||U(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!P(function(){U({})})},{toFixed:function(Z){var J,H,B,V,Y=E(this),q=g(Z),ue=[0,0,0,0,0,0],xe="",be="0";if(q<0||q>20)throw k("Incorrect fraction digits");if(Y!=Y)return"NaN";if(Y<=-1e21||Y>=1e21)return M(Y);if(Y<0&&(xe="-",Y=-Y),Y>1e-21)if(H=(J=function(Ae){for(var Fe=0,je=Ae;je>=4096;)Fe+=12,je/=4096;for(;je>=2;)Fe+=1,je/=2;return Fe}(Y*W(2,69,1))-69)<0?Y*W(2,-J,1):Y/W(2,J,1),H*=4503599627370496,(J=52-J)>0){for(X(ue,0,H),B=q;B>=7;)X(ue,1e7,0),B-=7;for(X(ue,W(10,B,1),0),B=J-1;B>=23;)Q(ue,1<<23),B-=23;Q(ue,1<<B),X(ue,1,1),Q(ue,2),be=te(ue)}else X(ue,0,H),X(ue,1<<-J,0),be=te(ue)+N("0",q);return be=q>0?xe+((V=be.length)<=q?"0."+N("0",q-V)+be:L(be,0,V-q)+"."+L(be,V-q)):xe+be}})},function(u,l,o){var d=o(7),h=o(59),b=o(39),g=o(44),E=d.RangeError;u.exports=function(S){var P=b(g(this)),k="",M=h(S);if(M<0||M==1/0)throw E("Wrong number of repetitions");for(;M>0;(M>>>=1)&&(P+=P))1&M&&(k+=P);return k}},function(u,l,o){var d=o(36),h=o(15),b=o(77),g=o(41),E=h(o(84).f),S=h([].push),P=function(k){return function(M){for(var C,N=g(M),L=b(N),U=L.length,W=0,X=[];U>W;)C=L[W++],d&&!E(N,C)||S(X,k?[C,N[C]]:N[C]);return X}};u.exports={entries:P(!0),values:P(!1)}},function(u,l){u.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(u,l,o){o.r(l),o.d(l,"observer",function(){return Ci}),o.d(l,"LogicFlow",function(){return qb}),o.d(l,"h",function(){return fe.g}),o.d(l,"LogicFlowUtil",function(){return d}),o.d(l,"BaseNode",function(){return Wa}),o.d(l,"RectNode",function(){return $g}),o.d(l,"CircleNode",function(){return Hg}),o.d(l,"PolygonNode",function(){return qg}),o.d(l,"DiamondNode",function(){return eb}),o.d(l,"EllipseNode",function(){return ib}),o.d(l,"TextNode",function(){return cb}),o.d(l,"HtmlNode",function(){return pb}),o.d(l,"BaseEdge",function(){return mp}),o.d(l,"LineEdge",function(){return jb}),o.d(l,"PolylineEdge",function(){return kb}),o.d(l,"BezierEdge",function(){return Rb}),o.d(l,"Arrow",function(){return GA}),o.d(l,"BaseEdgeModel",function(){return Lf}),o.d(l,"BezierEdgeModel",function(){return Yv}),o.d(l,"LineEdgeModel",function(){return Gs}),o.d(l,"PolylineEdgeModel",function(){return Sc}),o.d(l,"BaseNodeModel",function(){return $a}),o.d(l,"CircleNodeModel",function(){return Qv}),o.d(l,"DiamondNodeModel",function(){return og}),o.d(l,"EllipseNodeModel",function(){return cg}),o.d(l,"PolygonNodeModel",function(){return hg}),o.d(l,"RectNodeModel",function(){return bg}),o.d(l,"TextNodeModel",function(){return wg}),o.d(l,"HtmlNodeModel",function(){return Sg}),o.d(l,"EditConfigModel",function(){return ef}),o.d(l,"GraphModel",function(){return O0}),o.d(l,"SnaplineModel",function(){return i1}),o.d(l,"Keyboard",function(){return H1}),o.d(l,"get",function(){return H0}),o.d(l,"defaults",function(){return Y0}),o.d(l,"ElementState",function(){return gn}),o.d(l,"ModelType",function(){return Zt}),o.d(l,"ElementType",function(){return Jn}),o.d(l,"EventType",function(){return dt}),o.d(l,"formateAnchorConnectValidateData",function(){return _c});var d={};o.r(d),o.d(d,"createUuid",function(){return Ji}),o.d(d,"refreshGraphId",function(){return gc}),o.d(d,"StepDrag",function(){return ni}),o.d(d,"setupEdgeModel",function(){return En}),o.d(d,"isBboxOverLapping",function(){return Kd}),o.d(d,"filterRepeatPoints",function(){return xu}),o.d(d,"getSimplePolyline",function(){return Xs}),o.d(d,"getExpandedBBox",function(){return Ac}),o.d(d,"pointDirection",function(){return qd}),o.d(d,"getExpandedBBoxPoint",function(){return Tc}),o.d(d,"mergeBBox",function(){return Wf}),o.d(d,"getBBoxOfPoints",function(){return na}),o.d(d,"getPointsFromBBox",function(){return Ca}),o.d(d,"isPointOutsideBBox",function(){return Mc}),o.d(d,"getBBoxXCrossPoints",function(){return Zd}),o.d(d,"getBBoxYCrossPoints",function(){return Jd}),o.d(d,"getBBoxCrossPointsByPoint",function(){return dr}),o.d(d,"estimateDistance",function(){return xr}),o.d(d,"costByPoints",function(){return Qd}),o.d(d,"heuristicCostEstimate",function(){return Ys}),o.d(d,"rebuildPath",function(){return eh}),o.d(d,"removeClosePointFromOpenList",function(){return th}),o.d(d,"isSegmentsIntersected",function(){return Ra}),o.d(d,"isSegmentCrossingBBox",function(){return Vs}),o.d(d,"getNextNeighborPoints",function(){return Gf}),o.d(d,"pathFinder",function(){return Ia}),o.d(d,"getBoxByOriginNode",function(){return Uf}),o.d(d,"pointFilter",function(){return Ks}),o.d(d,"getPolylinePoints",function(){return qs}),o.d(d,"getLongestEdge",function(){return nh}),o.d(d,"isSegmentsInNode",function(){return Hf}),o.d(d,"isSegmentsCrossNode",function(){return Xf}),o.d(d,"getCrossPointInRect",function(){return Yf}),o.d(d,"segmentDirection",function(){return kc}),o.d(d,"points2PointsList",function(){return ra}),o.d(d,"getSimplePoints",function(){return Zs}),o.d(d,"getBytesLength",function(){return Js}),o.d(d,"getTextWidth",function(){return qf}),o.d(d,"getAppendAttributes",function(){return rh}),o.d(d,"getBezierControlPoints",function(){return Zf}),o.d(d,"getBezierPoints",function(){return Er}),o.d(d,"getEndTangent",function(){return Jf}),o.d(d,"getClosestPointOfPolyline",function(){return Qf}),o.d(d,"pickEdgeConfig",function(){return Qs}),o.d(d,"twoPointDistance",function(){return Dc}),o.d(d,"createEdgeGenerator",function(){return oh}),o.d(d,"snapToGrid",function(){return qi}),o.d(d,"getGridOffset",function(){return Ns}),o.d(d,"sampleCubic",function(){return $f}),o.d(d,"getThetaOfVector",function(){return Vr}),o.d(d,"degrees",function(){return Na}),o.d(d,"Vector",function(){return G}),o.d(d,"Point",function(){return ie}),o.d(d,"Matrix",function(){return ia}),o.d(d,"RotateMatrix",function(){return Ic}),o.d(d,"ScaleMatrix",function(){return sp}),o.d(d,"TranslateMatrix",function(){return aa});var h=o(1),b=o(10);if(!b.j)throw new Error("mobx-react-lite requires React with Hooks support");if(!h.H)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var g=o(43),E=Object(g.b)("observerBatching");function S(t){t()}var P=!1;function k(){return P}function M(t){return Object(h.t)(t)}var C,N=1e4,L=new Set;function U(){C===void 0&&(C=setTimeout(W,1e4))}function W(){C=void 0;var t=Date.now();L.forEach(function(e){var r=e.current;r&&t>=r.cleanAt&&(r.reaction.dispose(),e.current=null,L.delete(e))}),L.size>0&&U()}var X=!1,Q=[],te={};function Z(t){return"observer"+t}function J(t,e,r){e===void 0&&(e="observed"),r===void 0&&(r=te),k();var i,s=function(x){return function(){X?Q.push(x):x()}}((r.useForceUpdate||g.d)()),c=b.d.useRef(null);if(!c.current){var p=new h.c(Z(e),function(){v.mounted?s():(p.dispose(),c.current=null)}),v=function(x){return{cleanAt:Date.now()+N,reaction:x}}(p);c.current=v,i=c,L.add(i),U()}var m=c.current.reaction;return b.d.useDebugValue(m,M),b.d.useEffect(function(){var x;return x=c,L.delete(x),c.current?c.current.mounted=!0:(c.current={reaction:new h.c(Z(e),function(){s()}),cleanAt:1/0},s()),function(){c.current.reaction.dispose(),c.current=null}},[]),function(x){X=!0,Q=[];try{var j=x();X=!1;var D=Q.length>0?Q:void 0;return b.d.useLayoutEffect(function(){D&&D.forEach(function(I){return I()})},[D]),j}finally{X=!1}}(function(){var x,j;if(m.track(function(){try{x=t()}catch(D){j=D}}),j)throw j;return x})}var H=function(){return H=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t},H.apply(this,arguments)};function B(t,e){var r,i,s,c=H({forwardRef:!1},e),p=t.displayName||t.name,v=function(m,x){return J(function(){return t(m,x)},p)};return v.displayName=p,r=c.forwardRef?Object(b.f)(Object(b.e)(v)):Object(b.f)(v),i=t,s=r,Object.keys(i).forEach(function(m){V[m]||Object.defineProperty(s,m,Object.getOwnPropertyDescriptor(i,m))}),r.displayName=p,r}var V={$$typeof:!0,render:!0,compare:!0,type:!0};function Y(t){var e=t.children,r=t.render,i=e||r;return typeof i!="function"?null:J(i)}function q(t,e,r,i,s){var c=e==="children"?"render":"children",p=typeof t[e]=="function",v=typeof t[c]=="function";return p&&v?new Error("MobX Observer: Do not use children and render in the same time in`"+r):p||v?null:new Error("Invalid prop `"+s+"` of type `"+typeof t[e]+"` supplied to `"+r+"`, expected `function`.")}Y.propTypes={children:q,render:q},Y.displayName="Observer";var ue;(ue=b.g)||(ue=S),Object(h.n)({reactionScheduler:ue}),Object(g.a)()[E]=!0;var xe=0,be={};function Ae(t){return be[t]||(be[t]=function(e){if(typeof Symbol=="function")return Symbol(e);var r="__$mobx-react "+e+" ("+xe+")";return xe++,r}(t)),be[t]}function Fe(t,e){if(je(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),i=Object.keys(e);if(r.length!==i.length)return!1;for(var s=0;s<r.length;s++)if(!Object.hasOwnProperty.call(e,r[s])||!je(t[r[s]],e[r[s]]))return!1;return!0}function je(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ve(t,e,r){Object.hasOwnProperty.call(t,e)?t[e]=r:Object.defineProperty(t,e,{enumerable:!1,configurable:!0,writable:!0,value:r})}var Pe=Ae("patchMixins"),Te=Ae("patchedDefinition");function We(t,e){for(var r=this,i=arguments.length,s=new Array(i>2?i-2:0),c=2;c<i;c++)s[c-2]=arguments[c];e.locks++;try{var p;return t!=null&&(p=t.apply(this,s)),p}finally{e.locks--,e.locks===0&&e.methods.forEach(function(v){v.apply(r,s)})}}function it(t,e){return function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];We.call.apply(We,[this,t,e].concat(i))}}function xt(t,e,r){var i=function(v,m){var x=v[Pe]=v[Pe]||{},j=x[m]=x[m]||{};return j.locks=j.locks||0,j.methods=j.methods||[],j}(t,e);i.methods.indexOf(r)<0&&i.methods.push(r);var s=Object.getOwnPropertyDescriptor(t,e);if(!s||!s[Te]){var c=t[e],p=Ye(t,e,s?s.enumerable:void 0,i,c);Object.defineProperty(t,e,p)}}function Ye(t,e,r,i,s){var c,p=it(s,i);return(c={})[Te]=!0,c.get=function(){return p},c.set=function(v){if(this===t)p=it(v,i);else{var m=Ye(this,e,r,i,v);Object.defineProperty(this,e,m)}},c.configurable=!0,c.enumerable=r,c}var Je=h.a||"$mobx",mt=Ae("isMobXReactObserver"),se=Ae("isUnmounted"),ce=Ae("skipRender"),ge=Ae("isForcingUpdate");function De(t){var e=t.prototype;if(t[mt]?Ue(e):t[mt]=!0,e.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(t.__proto__!==b.b)if(e.shouldComponentUpdate){if(e.shouldComponentUpdate!==Et)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else e.shouldComponentUpdate=Et;Rt(e,"props"),Rt(e,"state");var r=e.render;return e.render=function(){return ze.call(this,r)},xt(e,"componentWillUnmount",function(){var i;(i=this.render[Je])===null||i===void 0||i.dispose(),this[se]=!0,!this.render[Je]&&Ue(this)}),t}function Ue(t){return t.displayName||t.name||t.constructor&&(t.constructor.displayName||t.constructor.name)||"<component>"}function ze(t){var e=this;ve(this,ce,!1),ve(this,ge,!1);var r=Ue(this),i=t.bind(this),s=!1,c=new h.c(r+".render()",function(){if(!s&&(s=!0,e[se]!==!0)){var v=!0;try{ve(e,ge,!0),e[ce]||b.a.prototype.forceUpdate.call(e),v=!1}finally{ve(e,ge,!1),v&&c.dispose()}}});function p(){s=!1;var v=void 0,m=void 0;if(c.track(function(){try{m=Object(h.d)(!1,i)}catch(x){v=x}}),v)throw v;return m}return c.reactComponent=this,p[Je]=c,this.render=p,p.call(this)}function Et(t,e){return this.state!==e||!Fe(this.props,t)}function Rt(t,e){var r=Ae("reactProp_"+e+"_valueHolder"),i=Ae("reactProp_"+e+"_atomHolder");function s(){return this[i]||ve(this,i,Object(h.o)("reactive "+e)),this[i]}Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var c=!1;return h.f&&h.e&&(c=Object(h.f)(!0)),s.call(this).reportObserved(),h.f&&h.e&&Object(h.e)(c),this[r]},set:function(c){this[ge]||Fe(this[r],c)?ve(this,r,c):(ve(this,r,c),ve(this,ce,!0),s.call(this).reportChanged(),ve(this,ce,!1))}})}var At=typeof Symbol=="function"&&Symbol.for,gt=At?Symbol.for("react.forward_ref"):typeof b.e=="function"&&Object(b.e)(function(t){return null}).$$typeof,Me=At?Symbol.for("react.memo"):typeof b.f=="function"&&Object(b.f)(function(t){return null}).$$typeof;function lt(t){if(t.isMobxInjector,Me&&t.$$typeof===Me)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(gt&&t.$$typeof===gt){var e=t.render;if(typeof e!="function")throw new Error("render property of ForwardRef was not a function");return Object(b.e)(function(){var r=arguments;return Object(b.c)(Y,null,function(){return e.apply(void 0,r)})})}return typeof t!="function"||t.prototype&&t.prototype.render||t.isReactClass||Object.prototype.isPrototypeOf.call(b.a,t)?De(t):B(t)}if(!b.a)throw new Error("mobx-react requires React to be available");if(!h.C)throw new Error("mobx-react requires mobx to be available");var fe=o(0);o(4),o(8),o(2),o(3),o(52),o(6),o(5),o(11),o(37),o(27),o(21),o(20),o(24),o(22),o(25),o(9),o(17),o(23),o(19),o(192),o(156),o(104),o(157),o(158),o(199),o(61);var at=function(t,e){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=e(t[r],r,t);return s},$t=function(){this.__data__=[],this.size=0},hn=function(t,e){return t===e||t!=t&&e!=e},Wt=function(t,e){for(var r=t.length;r--;)if(hn(t[r][0],e))return r;return-1},on=Array.prototype.splice,_n=function(t){var e=this.__data__,r=Wt(e,t);return!(r<0)&&(r==e.length-1?e.pop():on.call(e,r,1),--this.size,!0)},Nn=function(t){var e=this.__data__,r=Wt(e,t);return r<0?void 0:e[r][1]},Bt=function(t){return Wt(this.__data__,t)>-1},Xn=function(t,e){var r=this.__data__,i=Wt(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this};function ne(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}ne.prototype.clear=$t,ne.prototype.delete=_n,ne.prototype.get=Nn,ne.prototype.has=Bt,ne.prototype.set=Xn;var de=ne,ae=function(){this.__data__=new de,this.size=0},_e=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ve=function(t){return this.__data__.get(t)},Ke=function(t){return this.__data__.has(t)},pt=o(31),Vt=pt.a.Symbol,ir=Object.prototype,yr=ir.hasOwnProperty,Yn=ir.toString,Zn=Vt?Vt.toStringTag:void 0,ut=function(t){var e=yr.call(t,Zn),r=t[Zn];try{t[Zn]=void 0;var i=!0}catch{}var s=Yn.call(t);return i&&(e?t[Zn]=r:delete t[Zn]),s},Ot=Object.prototype.toString,St=function(t){return Ot.call(t)},zt=Vt?Vt.toStringTag:void 0,bn=function(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":zt&&zt in Object(t)?ut(t):St(t)},zn=function(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")},Wo,xo=function(t){if(!zn(t))return!1;var e=bn(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"},Go=pt.a["__core-js_shared__"],zi=(Wo=/[^.]+$/.exec(Go&&Go.keys&&Go.keys.IE_PROTO||""))?"Symbol(src)_1."+Wo:"",$l=function(t){return!!zi&&zi in t},Wu=Function.prototype.toString,qr=function(t){if(t!=null){try{return Wu.call(t)}catch{}try{return t+""}catch{}}return""},wa=/^\[object .+?Constructor\]$/,ft=Function.prototype,Wl=Object.prototype,Gu=ft.toString,Uu=Wl.hasOwnProperty,Dr=RegExp("^"+Gu.call(Uu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fr=function(t){return!(!zn(t)||$l(t))&&(xo(t)?Dr:wa).test(qr(t))},Ja=function(t,e){return t==null?void 0:t[e]},fo=function(t,e){var r=Ja(t,e);return Fr(r)?r:void 0},Zr=fo(pt.a,"Map"),po=fo(Object,"create"),Hu=function(){this.__data__=po?po(null):{},this.size=0},Xu=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ns=Object.prototype.hasOwnProperty,xa=function(t){var e=this.__data__;if(po){var r=e[t];return r==="__lodash_hash_undefined__"?void 0:r}return ns.call(e,t)?e[t]:void 0},rs=Object.prototype.hasOwnProperty,Yu=function(t){var e=this.__data__;return po?e[t]!==void 0:rs.call(e,t)},Gl=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=po&&e===void 0?"__lodash_hash_undefined__":e,this};function pi(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}pi.prototype.clear=Hu,pi.prototype.delete=Xu,pi.prototype.get=xa,pi.prototype.has=Yu,pi.prototype.set=Gl;var os=pi,Uo=function(){this.size=0,this.__data__={hash:new os,map:new(Zr||de),string:new os}},Vu=function(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null},Qa=function(t,e){var r=t.__data__;return Vu(e)?r[typeof e=="string"?"string":"hash"]:r.map},Ku=function(t){var e=Qa(this,t).delete(t);return this.size-=e?1:0,e},qu=function(t){return Qa(this,t).get(t)},Ul=function(t){return Qa(this,t).has(t)},is=function(t,e){var r=Qa(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this};function vn(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var i=t[e];this.set(i[0],i[1])}}vn.prototype.clear=Uo,vn.prototype.delete=Ku,vn.prototype.get=qu,vn.prototype.has=Ul,vn.prototype.set=is;var yn=vn,as=function(t,e){var r=this.__data__;if(r instanceof de){var i=r.__data__;if(!Zr||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new yn(i)}return r.set(t,e),this.size=r.size,this};function Fi(t){var e=this.__data__=new de(t);this.size=e.size}Fi.prototype.clear=ae,Fi.prototype.delete=_e,Fi.prototype.get=Ve,Fi.prototype.has=Ke,Fi.prototype.set=as;var Ho=Fi,Zu=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},us=function(t){return this.__data__.has(t)};function Un(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new yn;++e<r;)this.add(t[e])}Un.prototype.add=Un.prototype.push=Zu,Un.prototype.has=us;var Ju=Un,Ea=function(t,e){for(var r=-1,i=t==null?0:t.length;++r<i;)if(e(t[r],r,t))return!0;return!1},Qu=function(t,e){return t.has(e)},eu=function(t,e,r,i,s,c){var p=1&r,v=t.length,m=e.length;if(v!=m&&!(p&&m>v))return!1;var x=c.get(t),j=c.get(e);if(x&&j)return x==e&&j==t;var D=-1,I=!0,K=2&r?new Ju:void 0;for(c.set(t,e),c.set(e,t);++D<v;){var re=t[D],oe=e[D];if(i)var he=p?i(oe,re,D,e,t,c):i(re,oe,D,t,e,c);if(he!==void 0){if(he)continue;I=!1;break}if(K){if(!Ea(e,function(ye,Ee){if(!Qu(K,Ee)&&(re===ye||s(re,ye,r,i,c)))return K.push(Ee)})){I=!1;break}}else if(re!==oe&&!s(re,oe,r,i,c)){I=!1;break}}return c.delete(t),c.delete(e),I},vr=pt.a.Uint8Array,ec=function(t){var e=-1,r=Array(t.size);return t.forEach(function(i,s){r[++e]=[s,i]}),r},cs=function(t){var e=-1,r=Array(t.size);return t.forEach(function(i){r[++e]=i}),r},tc=Vt?Vt.prototype:void 0,tu=tc?tc.valueOf:void 0,$i=function(t,e,r,i,s,c,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!c(new vr(t),new vr(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return hn(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var v=ec;case"[object Set]":var m=1&i;if(v||(v=cs),t.size!=e.size&&!m)return!1;var x=p.get(t);if(x)return x==e;i|=2,p.set(t,e);var j=eu(v(t),v(e),i,s,c,p);return p.delete(t),j;case"[object Symbol]":if(tu)return tu.call(t)==tu.call(e)}return!1},Eo=function(t,e){for(var r=-1,i=e.length,s=t.length;++r<i;)t[s+r]=e[r];return t},jn=Array.isArray,ss=function(t,e,r){var i=e(t);return jn(t)?i:Eo(i,r(t))},Nr=function(t,e){for(var r=-1,i=t==null?0:t.length,s=0,c=[];++r<i;){var p=t[r];e(p,r,t)&&(c[s++]=p)}return c},ls=function(){return[]},fs=Object.prototype.propertyIsEnumerable,jr=Object.getOwnPropertySymbols,Cr=jr?function(t){return t==null?[]:(t=Object(t),Nr(jr(t),function(e){return fs.call(t,e)}))}:ls,nc=function(t,e){for(var r=-1,i=Array(t);++r<t;)i[r]=e(r);return i},ln=function(t){return t!=null&&typeof t=="object"},ar=function(t){return ln(t)&&bn(t)=="[object Arguments]"},nu=Object.prototype,ps=nu.hasOwnProperty,rc=nu.propertyIsEnumerable,ru=ar(function(){return arguments}())?ar:function(t){return ln(t)&&ps.call(t,"callee")&&!rc.call(t,"callee")},So=ru,Xo=o(48),Wi=/^(?:0|[1-9]\d*)$/,Rr=function(t,e){var r=typeof t;return!!(e=e==null?9007199254740991:e)&&(r=="number"||r!="symbol"&&Wi.test(t))&&t>-1&&t%1==0&&t<e},Yo=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991},an={};an["[object Float32Array]"]=an["[object Float64Array]"]=an["[object Int8Array]"]=an["[object Int16Array]"]=an["[object Int32Array]"]=an["[object Uint8Array]"]=an["[object Uint8ClampedArray]"]=an["[object Uint16Array]"]=an["[object Uint32Array]"]=!0,an["[object Arguments]"]=an["[object Array]"]=an["[object ArrayBuffer]"]=an["[object Boolean]"]=an["[object DataView]"]=an["[object Date]"]=an["[object Error]"]=an["[object Function]"]=an["[object Map]"]=an["[object Number]"]=an["[object Object]"]=an["[object RegExp]"]=an["[object Set]"]=an["[object String]"]=an["[object WeakMap]"]=!1;var Ir=function(t){return ln(t)&&Yo(t.length)&&!!an[bn(t)]},jo=function(t){return function(e){return t(e)}},fr=o(49),ou=fr.a&&fr.a.isTypedArray,Sa=ou?jo(ou):Ir,oc=Object.prototype.hasOwnProperty,Fn=function(t,e){var r=jn(t),i=!r&&So(t),s=!r&&!i&&Object(Xo.a)(t),c=!r&&!i&&!s&&Sa(t),p=r||i||s||c,v=p?nc(t.length,String):[],m=v.length;for(var x in t)!e&&!oc.call(t,x)||p&&(x=="length"||s&&(x=="offset"||x=="parent")||c&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||Rr(x,m))||v.push(x);return v},iu=Object.prototype,Vo=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||iu)},Jr=function(t,e){return function(r){return t(e(r))}},ic=Jr(Object.keys,Object),Hl=Object.prototype.hasOwnProperty,ac=function(t){if(!Vo(t))return ic(t);var e=[];for(var r in Object(t))Hl.call(t,r)&&r!="constructor"&&e.push(r);return e},Vn=function(t){return t!=null&&Yo(t.length)&&!xo(t)},di=function(t){return Vn(t)?Fn(t):ac(t)},Po=function(t){return ss(t,di,Cr)},Pr=Object.prototype.hasOwnProperty,uc=function(t,e,r,i,s,c){var p=1&r,v=Po(t),m=v.length;if(m!=Po(e).length&&!p)return!1;for(var x=m;x--;){var j=v[x];if(!(p?j in e:Pr.call(e,j)))return!1}var D=c.get(t),I=c.get(e);if(D&&I)return D==e&&I==t;var K=!0;c.set(t,e),c.set(e,t);for(var re=p;++x<m;){var oe=t[j=v[x]],he=e[j];if(i)var ye=p?i(he,oe,j,e,t,c):i(oe,he,j,t,e,c);if(!(ye===void 0?oe===he||s(oe,he,r,i,c):ye)){K=!1;break}re||(re=j=="constructor")}if(K&&!re){var Ee=t.constructor,Re=e.constructor;Ee==Re||!("constructor"in t)||!("constructor"in e)||typeof Ee=="function"&&Ee instanceof Ee&&typeof Re=="function"&&Re instanceof Re||(K=!1)}return c.delete(t),c.delete(e),K},$r=fo(pt.a,"DataView"),hi=fo(pt.a,"Promise"),au=fo(pt.a,"Set"),Ao=fo(pt.a,"WeakMap"),Wr="[object Map]",Lr="[object Promise]",Qr="[object Set]",To="[object WeakMap]",we="[object DataView]",Ne=qr($r),Ie=qr(Zr),et=qr(hi),Gt=qr(au),en=qr(Ao),Tn=bn;($r&&Tn(new $r(new ArrayBuffer(1)))!=we||Zr&&Tn(new Zr)!=Wr||hi&&Tn(hi.resolve())!=Lr||au&&Tn(new au)!=Qr||Ao&&Tn(new Ao)!=To)&&(Tn=function(t){var e=bn(t),r=e=="[object Object]"?t.constructor:void 0,i=r?qr(r):"";if(i)switch(i){case Ne:return we;case Ie:return Wr;case et:return Lr;case Gt:return Qr;case en:return To}return e});var O=Tn,w="[object Arguments]",T="[object Array]",z="[object Object]",ee=Object.prototype.hasOwnProperty,pe=function(t,e,r,i,s,c){var p=jn(t),v=jn(e),m=p?T:O(t),x=v?T:O(e),j=(m=m==w?z:m)==z,D=(x=x==w?z:x)==z,I=m==x;if(I&&Object(Xo.a)(t)){if(!Object(Xo.a)(e))return!1;p=!0,j=!1}if(I&&!j)return c||(c=new Ho),p||Sa(t)?eu(t,e,r,i,s,c):$i(t,e,m,r,i,s,c);if(!(1&r)){var K=j&&ee.call(t,"__wrapped__"),re=D&&ee.call(e,"__wrapped__");if(K||re){var oe=K?t.value():t,he=re?e.value():e;return c||(c=new Ho),s(oe,he,r,i,c)}}return!!I&&(c||(c=new Ho),uc(t,e,r,i,s,c))},Se=function t(e,r,i,s,c){return e===r||(e==null||r==null||!ln(e)&&!ln(r)?e!=e&&r!=r:pe(e,r,i,s,t,c))},$e=function(t,e,r,i){var s=r.length,c=s,p=!i;if(t==null)return!c;for(t=Object(t);s--;){var v=r[s];if(p&&v[2]?v[1]!==t[v[0]]:!(v[0]in t))return!1}for(;++s<c;){var m=(v=r[s])[0],x=t[m],j=v[1];if(p&&v[2]){if(x===void 0&&!(m in t))return!1}else{var D=new Ho;if(i)var I=i(x,j,m,t,e,D);if(!(I===void 0?Se(j,x,3,i,D):I))return!1}}return!0},ct=function(t){return t==t&&!zn(t)},qt=function(t){for(var e=di(t),r=e.length;r--;){var i=e[r],s=t[i];e[r]=[i,s,ct(s)]}return e},tt=function(t,e){return function(r){return r!=null&&r[t]===e&&(e!==void 0||t in Object(r))}},On=function(t){var e=qt(t);return e.length==1&&e[0][2]?tt(e[0][0],e[0][1]):function(r){return r===t||$e(r,t,e)}},Ut=function(t){return typeof t=="symbol"||ln(t)&&bn(t)=="[object Symbol]"},fn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eo=/^\w*$/,Rn=function(t,e){if(jn(t))return!1;var r=typeof t;return!(r!="number"&&r!="symbol"&&r!="boolean"&&t!=null&&!Ut(t))||eo.test(t)||!fn.test(t)||e!=null&&t in Object(e)};function Br(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError("Expected a function");var r=function(){var i=arguments,s=e?e.apply(this,i):i[0],c=r.cache;if(c.has(s))return c.get(s);var p=t.apply(this,i);return r.cache=c.set(s,p)||c,p};return r.cache=new(Br.Cache||yn),r}Br.Cache=yn;var Ko=Br,qo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ja=/\\(\\)?/g,cc=function(t){var e=Ko(t,function(i){return r.size===500&&r.clear(),i}),r=e.cache;return e}(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(qo,function(r,i,s,c){e.push(s?c.replace(ja,"$1"):i||r)}),e}),yi=Vt?Vt.prototype:void 0,uu=yi?yi.toString:void 0,Ar=function t(e){if(typeof e=="string")return e;if(jn(e))return at(e,t)+"";if(Ut(e))return uu?uu.call(e):"";var r=e+"";return r=="0"&&1/e==-1/0?"-0":r},Pa=function(t){return t==null?"":Ar(t)},Gi=function(t,e){return jn(t)?t:Rn(t,e)?[t]:cc(Pa(t))},vi=function(t){if(typeof t=="string"||Ut(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e},gi=function(t,e){for(var r=0,i=(e=Gi(e,t)).length;t!=null&&r<i;)t=t[vi(e[r++])];return r&&r==i?t:void 0},cu=function(t,e,r){var i=t==null?void 0:gi(t,e);return i===void 0?r:i},qy=function(t,e){return t!=null&&e in Object(t)},Zy=function(t,e,r){for(var i=-1,s=(e=Gi(e,t)).length,c=!1;++i<s;){var p=vi(e[i]);if(!(c=t!=null&&r(t,p)))break;t=t[p]}return c||++i!=s?c:!!(s=t==null?0:t.length)&&Yo(s)&&Rr(p,s)&&(jn(t)||So(t))},Up=function(t,e){return t!=null&&Zy(t,e,qy)},ds=function(t,e){return Rn(t)&&ct(e)?tt(vi(t),e):function(r){var i=cu(r,t);return i===void 0&&i===e?Up(r,t):Se(e,i,3)}},su=function(t){return t},Xl=function(t){return function(e){return e==null?void 0:e[t]}},Jy=function(t){return function(e){return gi(e,t)}},Hp=function(t){return Rn(t)?Xl(vi(t)):Jy(t)},Yl=function(t){return typeof t=="function"?t:t==null?su:typeof t=="object"?jn(t)?ds(t[0],t[1]):On(t):Hp(t)},Xp=function(t){return function(e,r,i){for(var s=-1,c=Object(e),p=i(e),v=p.length;v--;){var m=p[t?v:++s];if(r(c[m],m,c)===!1)break}return e}}(),pr=function(t,e){return function(r,i){if(r==null)return r;if(!Vn(r))return t(r,i);for(var s=r.length,c=e?s:-1,p=Object(r);(e?c--:++c<s)&&i(p[c],c,p)!==!1;);return r}}(function(t,e){return t&&Xp(t,e,di)}),Tr=function(t,e){var r=-1,i=Vn(t)?Array(t.length):[];return pr(t,function(s,c,p){i[++r]=e(s,c,p)}),i},hs=function(t,e){return(jn(t)?at:Tr)(t,Yl(e))};Object(h.n)({isolateGlobalState:!0});var ys=function(){try{var t=fo(Object,"defineProperty");return t({},"",{}),t}catch{}}(),vs=function(t,e,r){e=="__proto__"&&ys?ys(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},Qy=Object.prototype.hasOwnProperty,lu=function(t,e,r){var i=t[e];Qy.call(t,e)&&hn(i,r)&&(r!==void 0||e in t)||vs(t,e,r)},Zo=function(t,e,r,i){var s=!r;r||(r={});for(var c=-1,p=e.length;++c<p;){var v=e[c],m=i?i(r[v],t[v],v,r,t):void 0;m===void 0&&(m=t[v]),s?vs(r,v,m):lu(r,v,m)}return r},Vl=function(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)},Aa=Math.max,fu=function(t,e,r){return e=Aa(e===void 0?t.length-1:e,0),function(){for(var i=arguments,s=-1,c=Aa(i.length-e,0),p=Array(c);++s<c;)p[s]=i[e+s];s=-1;for(var v=Array(e+1);++s<e;)v[s]=i[s];return v[e]=r(p),Vl(t,this,v)}},sc=function(t){return function(){return t}},gs=ys?function(t,e){return ys(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:su,pu=Date.now,ev=function(t){var e=0,r=0;return function(){var i=pu(),s=16-(i-r);if(r=i,s>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},Yp=ev(gs),tv=function(t,e){return Yp(fu(t,e,su),t+"")},nv=function(t,e,r){if(!zn(r))return!1;var i=typeof e;return!!(i=="number"?Vn(r)&&Rr(e,r.length):i=="string"&&e in r)&&hn(r[e],t)},Vp=function(t){return tv(function(e,r){var i=-1,s=r.length,c=s>1?r[s-1]:void 0,p=s>2?r[2]:void 0;for(c=t.length>3&&typeof c=="function"?(s--,c):void 0,p&&nv(r[0],r[1],p)&&(c=s<3?void 0:c,s=1),e=Object(e);++i<s;){var v=r[i];v&&t(e,v,i,c)}return e})},bs=Object.prototype.hasOwnProperty,mr=Vp(function(t,e){if(Vo(e)||Vn(e))Zo(e,di(e),t);else for(var r in e)bs.call(e,r)&&lu(t,r,e[r])}),Kp=function(t,e,r,i){if(!zn(t))return t;for(var s=-1,c=(e=Gi(e,t)).length,p=c-1,v=t;v!=null&&++s<c;){var m=vi(e[s]),x=r;if(m==="__proto__"||m==="constructor"||m==="prototype")return t;if(s!=p){var j=v[m];(x=i?i(j,m,v):void 0)===void 0&&(x=zn(j)?j:Rr(e[s+1])?[]:{})}lu(v,m,x),v=v[m]}return t},F=function(t,e,r){for(var i=-1,s=e.length,c={};++i<s;){var p=e[i],v=gi(t,p);r(v,p)&&Kp(c,Gi(p,t),v)}return c},du=function(t,e){return F(t,e,function(r,i){return Up(t,i)})},lc=Vt?Vt.isConcatSpreadable:void 0,ho=function(t){return jn(t)||So(t)||!!(lc&&t&&t[lc])},cn=function t(e,r,i,s,c){var p=-1,v=e.length;for(i||(i=ho),c||(c=[]);++p<v;){var m=e[p];r>0&&i(m)?r>1?t(m,r-1,i,s,c):Eo(c,m):s||(c[c.length]=m)}return c},Ta=function(t){return t!=null&&t.length?cn(t,1):[]},wn,Jo,Ui,yo,Kl,ql,qp,Zp,ms,hu,fc,Jp,Zl,Qo,_s,Hi,to,Jl,Ql,bi=function(t){return Yp(fu(t,void 0,Ta),t+"")}(function(t,e){return t==null?{}:du(t,e)});function In(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Qp(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ed(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kn(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var gn,gr,Zt,Jn,dt,Mn,Os={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotation:!1,nodeSelectedOutline:!0,nodeTextEdit:!1,edgeTextEdit:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},mi=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustNodePosition","hideAnchors","allowRotation","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","nodeTextEdit","edgeTextEdit","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","autoExpand"],ef=(Jo=Kn((wn=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),In(this,"isSilentMode",Jo,this),In(this,"stopZoomGraph",Ui,this),In(this,"stopScrollGraph",yo,this),In(this,"stopMoveGraph",Kl,this),In(this,"adjustEdge",ql,this),In(this,"adjustEdgeMiddle",qp,this),In(this,"adjustEdgeStartAndEnd",Zp,this),In(this,"adjustNodePosition",ms,this),In(this,"hideAnchors",hu,this),In(this,"allowRotation",fc,this),In(this,"hoverOutline",Jp,this),In(this,"nodeSelectedOutline",Zl,this),In(this,"edgeSelectedOutline",Qo,this),In(this,"nodeTextEdit",_s,this),In(this,"edgeTextEdit",Hi,this),In(this,"nodeTextDraggable",to,this),In(this,"edgeTextDraggable",Jl,this),In(this,"autoExpand",Ql,this),ed(this,"multipleSelectKey",""),ed(this,"defaultConfig",{}),mr(this,this.getConfigDetail(i))}var e,r;return e=t,(r=[{key:"updateEditConfig",value:function(i){var s=this.getConfigDetail(i);mr(this,s)}},{key:"getConfigDetail",value:function(i){var s=i.isSilentMode,c=i.textEdit,p={};if(s===!1&&mr(p,this.defaultConfig),s===!0&&s!==this.isSilentMode){var v=bi(Os,mi);this.defaultConfig={stopZoomGraph:this.stopZoomGraph,stopScrollGraph:this.stopScrollGraph,stopMoveGraph:this.stopMoveGraph,adjustEdge:this.adjustEdge,adjustEdgeMiddle:this.adjustEdgeMiddle,adjustEdgeStartAndEnd:this.adjustEdgeStartAndEnd,adjustNodePosition:this.adjustNodePosition,hideAnchors:this.hideAnchors,allowRotation:this.allowRotation,hoverOutline:this.hoverOutline,nodeSelectedOutline:this.nodeSelectedOutline,edgeSelectedOutline:this.edgeSelectedOutline,nodeTextEdit:this.nodeTextEdit,edgeTextEdit:this.edgeTextEdit,nodeTextDraggable:this.nodeTextDraggable,edgeTextDraggable:this.edgeTextDraggable,autoExpand:this.autoExpand},mr(p,v)}c===!1&&mr(p,{nodeTextEdit:!1,edgeTextEdit:!1});var m=bi(i,mi);return mr(p,m)}},{key:"getConfig",value:function(){return bi(this,mi)}}])&&Qp(e.prototype,r),t}()).prototype,"isSilentMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ui=Kn(wn.prototype,"stopZoomGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),yo=Kn(wn.prototype,"stopScrollGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kl=Kn(wn.prototype,"stopMoveGraph",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ql=Kn(wn.prototype,"adjustEdge",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),qp=Kn(wn.prototype,"adjustEdgeMiddle",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Zp=Kn(wn.prototype,"adjustEdgeStartAndEnd",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),ms=Kn(wn.prototype,"adjustNodePosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),hu=Kn(wn.prototype,"hideAnchors",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),fc=Kn(wn.prototype,"allowRotation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jp=Kn(wn.prototype,"hoverOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Zl=Kn(wn.prototype,"nodeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Qo=Kn(wn.prototype,"edgeSelectedOutline",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),_s=Kn(wn.prototype,"nodeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Hi=Kn(wn.prototype,"edgeTextEdit",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),to=Kn(wn.prototype,"nodeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jl=Kn(wn.prototype,"edgeTextDraggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ql=Kn(wn.prototype,"autoExpand",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Kn(wn.prototype,"updateEditConfig",[h.k],Object.getOwnPropertyDescriptor(wn.prototype,"updateEditConfig"),wn.prototype),wn);o(65),o(66),function(t){t[t.DEFAULT=1]="DEFAULT",t[t.TEXT_EDIT=2]="TEXT_EDIT",t[t.SHOW_MENU=3]="SHOW_MENU",t[t.ALLOW_CONNECT=4]="ALLOW_CONNECT",t[t.NOT_ALLOW_CONNECT=5]="NOT_ALLOW_CONNECT"}(gn||(gn={})),function(t){t.KEY="logic-flow",t.NODE_NAME="lf-node",t.EDGE_NAME="lf-edge"}(gr||(gr={})),function(t){t.NODE="node",t.CIRCLE_NODE="circle-node",t.POLYGON_NODE="polygon-node",t.RECT_NODE="rect-node",t.TEXT_NODE="text-node",t.ELLIPSE_NODE="ellipse-node",t.DIAMOND_NODE="diamond-node",t.HTML_NODE="html-node",t.EDGE="edge",t.LINE_EDGE="line-edge",t.POLYLINE_EDGE="polyline-edge",t.BEZIER_EDGE="bezier-edge",t.GRAPH="graph"}(Zt||(Zt={})),function(t){t.NODE="node",t.EDGE="edge",t.GRAPH="graph"}(Jn||(Jn={})),function(t){t.ELEMENT_CLICK="element:click",t.NODE_CLICK="node:click",t.NODE_DBCLICK="node:dbclick",t.NODE_DELETE="node:delete",t.NODE_ADD="node:add",t.NODE_GROUP_COPY="node:group-copy-add",t.NODE_DND_ADD="node:dnd-add",t.NODE_DND_DRAG="node:dnd-drag",t.NODE_MOUSEDOWN="node:mousedown",t.NODE_DRAGSTART="node:dragstart",t.NODE_DRAG="node:drag",t.NODE_DROP="node:drop",t.NODE_MOUSEUP="node:mouseup",t.NODE_MOUSEMOVE="node:mousemove",t.NODE_MOUSEENTER="node:mouseenter",t.NODE_MOUSELEAVE="node:mouseleave",t.NODE_CONTEXTMENU="node:contextmenu",t.NODE_ROTATE="node:rotate",t.EDGE_DELETE="edge:delete",t.EDGE_ADD="edge:add",t.EDGE_CLICK="edge:click",t.EDGE_DBCLICK="edge:dbclick",t.EDGE_MOUSEENTER="edge:mouseenter",t.EDGE_MOUSELEAVE="edge:mouseleave",t.EDGE_CONTEXTMENU="edge:contextmenu",t.EDGE_ADJUST="edge:adjust",t.EDGE_EXCHANGE_NODE="edge:exchange-node",t.ANCHOR_DRAGSTART="anchor:dragstart",t.ANCHOR_DRAG="anchor:drag",t.ANCHOR_DROP="anchor:drop",t.ANCHOR_DRAGEND="anchor:dragend",t.ADJUST_POINT_MOUSEDOWN="adjustPoint:mousedown",t.ADJUST_POINT_MOUSEUP="adjustPoint:mouseup",t.ADJUST_POINT_MOUSEMOVE="adjustPoint:mousemove",t.ADJUST_POINT_DRAGSTART="adjustPoint:dragstart",t.ADJUST_POINT_DRAG="adjustPoint:drag",t.ADJUST_POINT_DROP="adjustPoint:drop",t.ADJUST_POINT_DRAGEND="adjustPoint:dragend",t.BLANK_MOUSEDOWN="blank:mousedown",t.BLANK_DRAGSTART="blank:dragstart",t.BLANK_DRAG="blank:drag",t.BLANK_DROP="blank:drop",t.BLANK_MOUSEMOVE="blank:mousemove",t.BLANK_MOUSEUP="blank:mouseup",t.BLANK_CLICK="blank:click",t.BLANK_CONTEXTMENU="blank:contextmenu",t.SELECTION_MOUSEDOWN="selection:mousedown",t.SELECTION_DRAGSTART="selection:dragstart",t.SELECTION_DRAG="selection:drag",t.SELECTION_DROP="selection:drop",t.SELECTION_MOUSEMOVE="selection:mousemove",t.SELECTION_MOUSEUP="selection:mouseup",t.SELECTION_CONTEXTMENU="selection:contextmenu",t.CONNECTION_NOT_ALLOWED="connection:not-allowed",t.HISTORY_CHANGE="history:change",t.TEXT_UPDATE="text:update",t.GRAPH_TRANSFORM="graph:transform",t.GRAPH_RENDERED="graph:rendered"}(dt||(dt={})),function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(Mn||(Mn={}));var $n,Hn,td,nd,ws,yu,tf,vu,xs;function gu(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return nf(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return nf(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function nf(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function _i(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function rv(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Oi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vo(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.INCREASE=1]="INCREASE"})($n||($n={}));var rd={false:[-1/0,-1/0,1/0,1/0],true:[0,0,0,0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},od=(Hn=function(){function t(i,s){(function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")})(this,t),Oi(this,"MINI_SCALE_SIZE",.2),Oi(this,"MAX_SCALE_SIZE",16),_i(this,"SCALE_X",td,this),_i(this,"SKEW_Y",nd,this),_i(this,"SKEW_X",ws,this),_i(this,"SCALE_Y",yu,this),_i(this,"TRANSLATE_X",tf,this),_i(this,"TRANSLATE_Y",vu,this),_i(this,"ZOOM_SIZE",xs,this),Oi(this,"eventCenter",void 0),Oi(this,"translateLimitMinX",void 0),Oi(this,"translateLimitMinY",void 0),Oi(this,"translateLimitMaxX",void 0),Oi(this,"translateLimitMaxY",void 0),this.eventCenter=i;var c=s.stopMoveGraph,p=c!==void 0&&c;this.updateTranslateLimits(p)}var e,r;return e=t,r=[{key:"setZoomMiniSize",value:function(i){this.MINI_SCALE_SIZE=i}},{key:"setZoomMaxSize",value:function(i){this.MAX_SCALE_SIZE=i}},{key:"HtmlPointToCanvasPoint",value:function(i){var s=gu(i,2),c=s[0],p=s[1];return[(c-this.TRANSLATE_X)/this.SCALE_X,(p-this.TRANSLATE_Y)/this.SCALE_Y]}},{key:"CanvasPointToHtmlPoint",value:function(i){var s=gu(i,2),c=s[0],p=s[1];return[c*this.SCALE_X+this.TRANSLATE_X,p*this.SCALE_Y+this.TRANSLATE_Y]}},{key:"moveCanvasPointByHtml",value:function(i,s,c){var p=gu(i,2),v=p[0],m=p[1];return[v+s/this.SCALE_X,m+c/this.SCALE_Y]}},{key:"fixDeltaXY",value:function(i,s){return[i/this.SCALE_X,s/this.SCALE_Y]}},{key:"getTransformStyle",value:function(){var i=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(i,")")}}},{key:"zoom",value:function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0],s=arguments.length>1?arguments[1]:void 0,c=this.SCALE_X,p=this.SCALE_Y;return i===!0?(c+=this.ZOOM_SIZE,p+=this.ZOOM_SIZE):i===!1?(c-=this.ZOOM_SIZE,p-=this.ZOOM_SIZE):typeof i=="number"&&(c=i,p=i),c<this.MINI_SCALE_SIZE||c>this.MAX_SCALE_SIZE||(s&&(this.TRANSLATE_X-=(c-this.SCALE_X)*s[0],this.TRANSLATE_Y-=(p-this.SCALE_Y)*s[1]),this.SCALE_X=c,this.SCALE_Y=p,this.emitGraphTransform("zoom")),"".concat(100*this.SCALE_X,"%")}},{key:"emitGraphTransform",value:function(i){this.eventCenter.emit(dt.GRAPH_TRANSFORM,{type:i,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(i,s){this.TRANSLATE_X+i<=this.translateLimitMaxX&&this.TRANSLATE_X+i>=this.translateLimitMinX&&(this.TRANSLATE_X+=i),this.TRANSLATE_Y+s<=this.translateLimitMaxY&&this.TRANSLATE_Y+s>=this.translateLimitMinY&&(this.TRANSLATE_Y+=s),this.emitGraphTransform("translate")}},{key:"focusOn",value:function(i,s,c,p){var v=gu(this.CanvasPointToHtmlPoint([i,s]),2),m=c/2-v[0],x=p/2-v[1];this.TRANSLATE_X+=m,this.TRANSLATE_Y+=x,this.emitGraphTransform("focusOn")}},{key:"updateTranslateLimits",value:function(i){var s=gu(Array.isArray(i)&&i.length===4?i:rd[i.toString()],4);this.translateLimitMinX=s[0],this.translateLimitMinY=s[1],this.translateLimitMaxX=s[2],this.translateLimitMaxY=s[3]}}],r&&rv(e.prototype,r),t}(),td=vo(Hn.prototype,"SCALE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),nd=vo(Hn.prototype,"SKEW_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),ws=vo(Hn.prototype,"SKEW_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),yu=vo(Hn.prototype,"SCALE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),tf=vo(Hn.prototype,"TRANSLATE_X",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),vu=vo(Hn.prototype,"TRANSLATE_Y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),xs=vo(Hn.prototype,"ZOOM_SIZE",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return .04}}),vo(Hn.prototype,"zoom",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"zoom"),Hn.prototype),vo(Hn.prototype,"resetZoom",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"resetZoom"),Hn.prototype),vo(Hn.prototype,"translate",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"translate"),Hn.prototype),vo(Hn.prototype,"focusOn",[h.k],Object.getOwnPropertyDescriptor(Hn.prototype,"focusOn"),Hn.prototype),Hn),Es=function(t,e){for(var r=-1,i=t==null?0:t.length;++r<i&&e(t[r],r,t)!==!1;);return t},id=function(t,e){return t&&Zo(e,di(e),t)},ad=function(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e},ud=Object.prototype.hasOwnProperty,rf=function(t){if(!zn(t))return ad(t);var e=Vo(t),r=[];for(var i in t)(i!="constructor"||!e&&ud.call(t,i))&&r.push(i);return r},bu=function(t){return Vn(t)?Fn(t,!0):rf(t)},of=function(t,e){return t&&Zo(e,bu(e),t)},Ss=o(107),Qt=function(t,e){var r=-1,i=t.length;for(e||(e=Array(i));++r<i;)e[r]=t[r];return e},ov=function(t,e){return Zo(t,Cr(t),e)},af=Jr(Object.getPrototypeOf,Object),mu=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Eo(e,Cr(t)),t=af(t);return e}:ls,cd=function(t,e){return Zo(t,mu(t),e)},iv=function(t){return ss(t,bu,mu)},av=Object.prototype.hasOwnProperty,go=function(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&av.call(t,"index")&&(r.index=t.index,r.input=t.input),r},uf=function(t){var e=new t.constructor(t.byteLength);return new vr(e).set(new vr(t)),e},js=function(t,e){var r=e?uf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)},cf=/\w*$/,sd=function(t){var e=new t.constructor(t.source,cf.exec(t));return e.lastIndex=t.lastIndex,e},sf=Vt?Vt.prototype:void 0,Gr=sf?sf.valueOf:void 0,Xi=function(t){return Gr?Object(Gr.call(t)):{}},Ps=function(t,e){var r=e?uf(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)},ld=function(t,e,r){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return uf(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return js(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ps(t,r);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return sd(t);case"[object Symbol]":return Xi(t)}},pc=Object.create,fd=function(){function t(){}return function(e){if(!zn(e))return{};if(pc)return pc(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),As=function(t){return typeof t.constructor!="function"||Vo(t)?{}:fd(af(t))},pd=function(t){return ln(t)&&O(t)=="[object Map]"},Ts=fr.a&&fr.a.isMap,lf=Ts?jo(Ts):pd,Yi=function(t){return ln(t)&&O(t)=="[object Set]"},dd=fr.a&&fr.a.isSet,Vi=dd?jo(dd):Yi,ff="[object Arguments]",pf="[object Function]",df="[object Object]",kn={};kn[ff]=kn["[object Array]"]=kn["[object ArrayBuffer]"]=kn["[object DataView]"]=kn["[object Boolean]"]=kn["[object Date]"]=kn["[object Float32Array]"]=kn["[object Float64Array]"]=kn["[object Int8Array]"]=kn["[object Int16Array]"]=kn["[object Int32Array]"]=kn["[object Map]"]=kn["[object Number]"]=kn["[object Object]"]=kn["[object RegExp]"]=kn["[object Set]"]=kn["[object String]"]=kn["[object Symbol]"]=kn["[object Uint8Array]"]=kn["[object Uint8ClampedArray]"]=kn["[object Uint16Array]"]=kn["[object Uint32Array]"]=!0,kn["[object Error]"]=kn[pf]=kn["[object WeakMap]"]=!1;var hd=function t(e,r,i,s,c,p){var v,m=1&r,x=2&r,j=4&r;if(i&&(v=c?i(e,s,c,p):i(e)),v!==void 0)return v;if(!zn(e))return e;var D=jn(e);if(D){if(v=go(e),!m)return Qt(e,v)}else{var I=O(e),K=I==pf||I=="[object GeneratorFunction]";if(Object(Xo.a)(e))return Object(Ss.a)(e,m);if(I==df||I==ff||K&&!c){if(v=x||K?{}:As(e),!m)return x?cd(e,of(v,e)):ov(e,id(v,e))}else{if(!kn[I])return c?e:{};v=ld(e,I,m)}}p||(p=new Ho);var re=p.get(e);if(re)return re;p.set(e,v),Vi(e)?e.forEach(function(he){v.add(t(he,r,i,he,e,p))}):lf(e)&&e.forEach(function(he,ye){v.set(ye,t(he,r,i,ye,e,p))});var oe=D?void 0:(j?x?iv:Po:x?bu:di)(e);return Es(oe||e,function(he,ye){oe&&(he=e[ye=he]),lu(v,ye,t(he,r,i,ye,e,p))}),v},Ln=function(t){return hd(t,5)},Ms=function(t,e,r){(r!==void 0&&!hn(t[e],r)||r===void 0&&!(e in t))&&vs(t,e,r)},Ur=function(t){return ln(t)&&Vn(t)},ei=Function.prototype,ks=Object.prototype,Ma=ei.toString,yd=ks.hasOwnProperty,vd=Ma.call(Object),gd=function(t){if(!ln(t)||bn(t)!="[object Object]")return!1;var e=af(t);if(e===null)return!0;var r=yd.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Ma.call(r)==vd},Ki=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},dc=function(t){return Zo(t,bu(t))},bd=function(t,e,r,i,s,c,p){var v=Ki(t,r),m=Ki(e,r),x=p.get(m);if(x)Ms(t,r,x);else{var j=c?c(v,m,r+"",t,e,p):void 0,D=j===void 0;if(D){var I=jn(m),K=!I&&Object(Xo.a)(m),re=!I&&!K&&Sa(m);j=m,I||K||re?jn(v)?j=v:Ur(v)?j=Qt(v):K?(D=!1,j=Object(Ss.a)(m,!0)):re?(D=!1,j=Ps(m,!0)):j=[]:gd(m)||So(m)?(j=v,So(v)?j=dc(v):zn(v)&&!xo(v)||(j=As(m))):D=!1}D&&(p.set(m,j),s(j,m,i,c,p),p.delete(m)),Ms(t,r,j)}},md=function t(e,r,i,s,c){e!==r&&Xp(r,function(p,v){if(c||(c=new Ho),zn(p))bd(e,r,v,i,t,s,c);else{var m=s?s(Ki(e,v),p,v+"",e,r,c):void 0;m===void 0&&(m=p),Ms(e,v,m)}},bu)},ka=Vp(function(t,e,r){md(t,e,r)}),_d={baseNode:{fill:"#FFFFFF",stroke:"#000000",strokeWidth:2},baseEdge:{stroke:"#000000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000000",fill:"#FFFFFF",r:4,hover:{fill:"#949494",fillOpacity:.5,stroke:"#949494",r:10}},nodeText:{color:"#000000",overflowMode:"default",lineHeight:1.2,fontSize:12},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#FFFFFF"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",stroke:"#949494",fillOpacity:1}},arrow:{offset:10,verticalLength:5},anchorLine:{stroke:"#000000",strokeWidth:2,strokeDasharray:"3,2"},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#FFFFFF",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10 10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5}},hc=function(t){var e=Ln(_d);return t&&(e=ka(e,t)),e};o(82),o(166);function hf(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Ds=function(){function t(){var i,s,c;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),c={},(s="_events")in(i=this)?Object.defineProperty(i,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):i[s]=c}var e,r;return e=t,(r=[{key:"on",value:function(i,s,c){var p=this;return i==null||i.split(",").forEach(function(v){v=v.trim(),p._events[v]||(p._events[v]=[]),p._events[v].push({callback:s,once:!!c})}),this}},{key:"once",value:function(i,s){var c=this;i==null||i.split(",").forEach(function(p){return p=p.trim(),c.on(p,s,!0)})}},{key:"emit",value:function(i,s){var c=this;i==null||i.split(",").forEach(function(p){var v=c._events[p]||[],m=c._events["*"]||[],x=function(j){for(var D=j.length,I=0;I<D;I++)if(j[I]){var K=j[I],re=K.callback;K.once&&(j.splice(I,1),j.length===0&&delete c._events[p],D--,I--),re.apply(c,[s])}};x(v),x(m)})}},{key:"off",value:function(i,s){var c=this;return i||(this._events={}),i.split(",").forEach(function(p){if(s){for(var v=c._events[p]||[],m=v.length,x=0;x<m;x++)v[x].callback===s&&(v.splice(x,1),m--,x--);v.length===0&&delete c._events[p]}else delete c._events[p]}),this}},{key:"getEvents",value:function(){return this._events}}])&&hf(e.prototype,r),t}();function qi(t,e){return e*Math.round(t/e)||t}function Ns(t,e){return t%e}function Cs(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return Rs(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Rs(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Rs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var yf=function(t,e,r){var i=Cs(t,2),s=i[0],c=i[1],p=Cs(e,2),v=p[0],m=p[1],x=Cs(r,2),j=x[0],D=x[1];return s>v&&s<j&&c>m&&c<D},vf=function(t,e){var r=!1;switch(e.multipleSelectKey){case"meta":r=t.metaKey;break;case"alt":r=t.altKey;break;case"shift":r=t.shiftKey;break;case"ctrl":r=t.ctrlKey;break;default:r=!1}return r};o(167),o(126),o(83),o(29),o(12),o(13),o(14),o(47);var wi=function(t){return function(e,r,i){var s=Object(e);if(!Vn(e)){var c=Yl(r);e=di(e),r=function(v){return c(s[v],v,s)}}var p=t(e,r,i);return p>-1?s[c?e[p]:p]:void 0}},Od=function(t,e,r,i){for(var s=t.length,c=r+(i?1:-1);i?c--:++c<s;)if(e(t[c],c,t))return c;return-1},wd=/\s/,uv=function(t){for(var e=t.length;e--&&wd.test(t.charAt(e)););return e},xd=/^\s+/,xi=function(t){return t&&t.slice(0,uv(t)+1).replace(xd,"")},gf=/^[-+]0x[0-9a-f]+$/i,bf=/^0b[01]+$/i,mf=/^0o[0-7]+$/i,Is=parseInt,Zi=function(t){if(typeof t=="number")return t;if(Ut(t))return NaN;if(zn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=zn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=xi(t);var r=bf.test(t);return r||mf.test(t)?Is(t.slice(2),r?2:8):gf.test(t)?NaN:+t},kt=1/0,Ls=function(t){return t?(t=Zi(t))===kt||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:t===0?t:0},_f=function(t){var e=Ls(t),r=e%1;return e==e?r?e-r:e:0},Da=Math.max,yc,Of=wi(function(t,e,r){var i=t==null?0:t.length;if(!i)return-1;var s=r==null?0:_f(r);return s<0&&(s=Da(i+s,0)),Od(t,Yl(e),s)}),Mr=new Uint8Array(16);function Ed(){if(!yc&&!(yc=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yc(Mr)}for(var Sd=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,cv=function(t){return typeof t=="string"&&Sd.test(t)},Bn=[],_r=0;_r<256;++_r)Bn.push((_r+256).toString(16).substr(1));var wf=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Bn[t[e+0]]+Bn[t[e+1]]+Bn[t[e+2]]+Bn[t[e+3]]+"-"+Bn[t[e+4]]+Bn[t[e+5]]+"-"+Bn[t[e+6]]+Bn[t[e+7]]+"-"+Bn[t[e+8]]+Bn[t[e+9]]+"-"+Bn[t[e+10]]+Bn[t[e+11]]+Bn[t[e+12]]+Bn[t[e+13]]+Bn[t[e+14]]+Bn[t[e+15]]).toLowerCase();if(!cv(r))throw TypeError("Stringified UUID is invalid");return r},vc=function(t,e,r){var i=(t=t||{}).random||(t.rng||Ed)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){r=r||0;for(var s=0;s<16;++s)e[r+s]=i[s];return e}return wf(i)},Ji=function(){return vc()},gc=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=t.nodes.reduce(function(i,s){return i[s.id]=e+vc(),s.id=i[s.id],i},{});return t.edges.forEach(function(i){i.id=e+vc(),i.sourceNodeId=r[i.sourceNodeId],i.targetNodeId=r[i.targetNodeId]}),t},_u=(o(105),o(127),o(207),function(t,e,r){var i=t.x,s=t.y,c=e.x,p=e.y,v=r.x,m=r.y,x=(m-p)/(v-c),j=p-x*c;return i>=c&&i<=v&&s>=p&&s<=m&&Math.abs(s-x*i+j)<Number.EPSILON});function Bs(t){return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bs(t)}function xf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Ef(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?xf(Object(r),!0).forEach(function(i){sv(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function sv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ke,Sf,Ou,zs,jf,Pf,bc,Af,Mo,Qi,Tf,jd,Pd,Ad,Mf,kf,Df,Nf,Td,Md,kd,Hr=function(t){return t.anchors},Fs=function(t,e){for(var r,i=e.nodes,s=i.length-1;s>=0;s--){var c=i[s];if(lv(t,c)){var p=c.getTargetAnchor(t);if(p){var v={node:c,anchorIndex:p.index,anchor:p.anchor};r&&!Dd(c,r.node,e)||(r=v)}}}return r},Dd=function(t,e,r){return t.zIndex>e.zIndex||r.nodesMap[t.id].index>r.nodesMap[e.id].index},ko=function(t,e,r,i){return Math.hypot(t-r,e-i)},ti=function(t,e){var r=!1,i=no(e);return t.x>=i.minX-0&&t.x<=i.maxX+0&&t.y>=i.minY-0&&t.y<=i.maxY+0&&(r=!0),r},lv=function(t,e){var r=!1,i=no(e);return t.x>=i.minX-5&&t.x<=i.maxX+5&&t.y>=i.minY-5&&t.y<=i.maxY+5&&(r=!0),r},no=function(t){var e=t.x,r=t.y,i=t.width,s=t.height;return{minX:e-i/2,minY:r-s/2,maxX:e+i/2,maxY:r+s/2,x:e,y:r,width:i,height:s,centerX:e,centerY:r}},Nd=function(t,e,r){var i,s=function(p){var v=p,m=v.x,x=v.y,j=v.width,D=v.height,I=v.radius;return[{x:m-j/2+I,y:x-D/2+I,r:I},{x:m+j/2-I,y:x-D/2+I,r:I},{x:m-j/2+I,y:x+D/2-I,r:I},{x:m+j/2-I,y:x+D/2-I,r:I}]}(r),c=Number.MAX_SAFE_INTEGER;return s.forEach(function(p){var v=ko(t.x,t.y,p.x,p.y);v<c&&(c=v,i=p)}),mc(t,e,i)},mc=function(t,e,r){var i,s=r,c=s.x,p=s.y,v=s.r;if(e===Mn.HORIZONTAL){var m=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)),x=c+Math.sqrt(v*v-(t.y-p)*(t.y-p));i={x:Math.abs(m-t.x)<Math.abs(x-t.x)?m:x,y:t.y}}else if(e===Mn.VERTICAL){var j=p-Math.sqrt(v*v-(t.x-c)*(t.x-c)),D=p+Math.sqrt(v*v-(t.x-c)*(t.x-c)),I=Math.abs(j-t.y)<Math.abs(D-t.y)?j:D;i={x:t.x,y:I}}return i},Cf=function(t,e){var r=e,i=!1,s=r.x-r.width/2+r.radius,c=r.x+r.width/2-r.radius,p=r.y-r.height/2+r.radius,v=r.y+r.height/2-r.radius,m=r.x,x=r.y,j=r.width,D=r.height;return t.y===x+D/2||t.y===x-D/2?i=t.x>s&&t.x<c:t.x!==m+j/2&&t.x!==m-j/2||(i=t.y>p&&t.y<v),i},Cd=function(t,e,r){var i,s=r,c=s.x,p=s.y,v=s.rx,m=s.ry;if(e===Mn.HORIZONTAL){var x=c-Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(m*m)),j=c+Math.sqrt(v*v-(t.y-p)*(t.y-p)*v*v/(m*m));i={x:Math.abs(x-t.x)<Math.abs(j-t.x)?x:j,y:t.y}}else if(e===Mn.VERTICAL){var D=p-Math.sqrt(m*m-(t.x-c)*(t.x-c)*m*m/(v*v)),I=p+Math.sqrt(m*m-(t.x-c)*(t.x-c)*m*m/(v*v)),K=Math.abs(D-t.y)<Math.abs(I-t.y)?D:I;i={x:t.x,y:K}}return i},Rd=function(t,e,r){for(var i,s=r.pointsPosition,c=Number.MAX_SAFE_INTEGER,p=[],v=0;v<s.length;v++)p.push({start:s[v],end:s[(v+1)%s.length]});return p.forEach(function(m){var x=m.start,j=m.end,D=x,I=j;x.x>j.x&&(D=j,I=x);var K={x:t.x,y:t.y};if(D.x===I.x&&e===Mn.HORIZONTAL&&(K={x:D.x,y:t.y}),D.y===I.y&&e===Mn.VERTICAL&&(K={x:t.x,y:D.y}),D.x!==I.x&&D.y!==I.y){var re=(I.y-D.y)/(I.x-D.x),oe=(D.x*I.y-I.x*D.y)/(D.x-I.x);e===Mn.HORIZONTAL?K={x:(t.y-oe)/re,y:t.y}:e===Mn.VERTICAL&&(K={x:t.x,y:re*t.x+oe})}if(_u(K,x,j)){var he=ko(K.x,K.y,t.x,t.y);he<c&&(c=he,i=K)}}),i},Id=function(t,e,r,i){var s=t.x,c=t.y;return e.x>t.x?s=t.x+r/2:e.x<t.x&&(s=t.x-r/2),e.y>t.y?c=t.y+i/2:e.y<t.y&&(c=t.y-i/2),{x:s,y:c}},Ld=function(t){var e=t.rows,r=t.style,i=t.rowsLength,s=t.className,c=document.createElement("div");c.style.fontSize=r.fontSize,c.style.width=r.width,c.className=s,c.style.lineHeight=r.lineHeight,c.style.padding=r.padding,r.fontFamily&&(c.style.fontFamily=r.fontFamily),i>1?e.forEach(function(v){var m=document.createElement("div");m.textContent=v,c.appendChild(m)}):c.textContent=e,document.body.appendChild(c);var p=c.clientHeight;return document.body.removeChild(c),p},Rf=function(t){var e=t.rows,r=t.rowsLength,i=t.fontSize,s=0;return e&&e.forEach(function(c){var p=Js(c);s=p>s?p:s}),{width:Math.ceil(s/2)*i+i/4,height:r*(i+2)+i/4}},_c=function(t){return Bs(t)!=="object"?{isAllPass:!!t,msg:t?"":"\u4E0D\u5141\u8BB8\u8FDE\u63A5"}:t},Or=function(t){try{return JSON.parse(JSON.stringify(t))}catch{return t}},$s=1e3,fv=999,If=function(){return++$s};function Bd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Xr(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bd(Object(r),!0).forEach(function(i){bo(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Qn(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function zd(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function bo(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tt(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Lf=(ke=function(){function t(i,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),bo(this,"id",""),Qn(this,"type",Sf,this),Qn(this,"sourceNodeId",Ou,this),Qn(this,"targetNodeId",zs,this),Qn(this,"startPoint",jf,this),Qn(this,"endPoint",Pf,this),Qn(this,"text",bc,this),Qn(this,"properties",Af,this),Qn(this,"points",Mo,this),Qn(this,"pointsList",Qi,this),Qn(this,"isSelected",Tf,this),Qn(this,"isHovered",jd,this),Qn(this,"isHitable",Pd,this),Qn(this,"draggable",Ad,this),Qn(this,"visible",Mf,this),bo(this,"virtual",!1),Qn(this,"isAnimation",kf,this),Qn(this,"isShowAdjustPoint",Df,this),bo(this,"graphModel",void 0),Qn(this,"zIndex",Nf,this),bo(this,"BaseType",Jn.EDGE),bo(this,"modelType",Zt.EDGE),Qn(this,"state",Td,this),bo(this,"additionStateData",void 0),bo(this,"sourceAnchorId",""),bo(this,"targetAnchorId",""),bo(this,"menu",void 0),bo(this,"customTextPosition",!1),Qn(this,"style",Md,this),Qn(this,"arrowConfig",kd,this),this.graphModel=s,this.initEdgeData(i),this.setAttributes()}var e,r;return e=t,r=[{key:"initEdgeData",value:function(i){if(i.properties||(i.properties={}),!i.id){var s=this.graphModel.idGenerator,c=s&&s(i.type),p=this.createId();i.id=p||c||Ji()}this.arrowConfig.markerEnd="url(#marker-end-".concat(i.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(i.id,")");var v=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=v,mr(this,Qs(i)),this.graphModel.overlapMode===$n.INCREASE&&(this.zIndex=i.zIndex||If()),this.setAnchors(),this.initPoints(),this.formatText(i)}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"getEdgeStyle",value:function(){return Xr(Xr({},this.graphModel.theme.baseEdge),this.style)}},{key:"getAdjustPointStyle",value:function(){return Xr({},this.graphModel.theme.edgeAdjust)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.edgeText;return Ln(i)}},{key:"getEdgeAnimationStyle",value:function(){var i=this.graphModel.theme.edgeAnimation;return Ln(i)}},{key:"getArrowStyle",value:function(){var i=this.getEdgeStyle(),s=this.getEdgeAnimationStyle(),c=this.graphModel.theme.arrow,p=this.isAnimation?s.stroke:i.stroke;return Xr(Xr({},i),{},{fill:p,stroke:p},c)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Ln(i)}},{key:"getTextPosition",value:function(){return{x:0,y:0}}},{key:"sourceNode",get:function(){var i,s;return(i=this.graphModel)===null||i===void 0||(s=i.nodesMap[this.sourceNodeId])===null||s===void 0?void 0:s.model}},{key:"targetNode",get:function(){var i,s;return(i=this.graphModel)===null||i===void 0||(s=i.nodesMap[this.targetNodeId])===null||s===void 0?void 0:s.model}},{key:"textPosition",get:function(){return this.getTextPosition()}},{key:"getBeginAnchor",value:function(i,s,c){var p,v,m=Hr(i);return c&&(p=Of(m,function(x){return x.id===c}))||m.forEach(function(x){var j=Dc(x,s);(v===void 0||j<v)&&(v=j,p=x)}),p}},{key:"getEndAnchor",value:function(i,s){var c,p,v=this,m=Hr(i);return s&&(c=Of(m,function(x){return x.id===s}))||m.forEach(function(x){var j=Dc(x,v.startPoint);(p===void 0||j<p)&&(p=j,c=x)}),c}},{key:"getProperties",value:function(){return Object(h.I)(this.properties)}},{key:"getData",value:function(){var i=this.text,s=i.x,c=i.y,p=i.value,v={id:this.id,type:this.type,sourceNodeId:this.sourceNode.id,targetNodeId:this.targetNode.id,startPoint:Object.assign({},this.startPoint),endPoint:Object.assign({},this.endPoint),properties:Object(h.I)(this.properties)};return p&&(v.text={x:s,y:c,value:p}),this.graphModel.overlapMode===$n.INCREASE&&(v.zIndex=this.zIndex),v}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"setProperty",value:function(i,s){this.properties[i]=Or(s),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=Xr(Xr({},Object(h.I)(this.properties)),Or(i)),this.setAttributes()}},{key:"changeEdgeId",value:function(i){var s=this.arrowConfig,c=s.markerEnd,p=s.markerStart;p&&p==="url(#marker-start-".concat(this.id,")")&&(this.arrowConfig.markerStart="url(#marker-start-".concat(i,")")),c&&c==="url(#marker-end-".concat(this.id,")")&&(this.arrowConfig.markerEnd="url(#marker-end-".concat(i,")")),this.id=i}},{key:"setStyle",value:function(i,s){this.style=Xr(Xr({},this.style),{},bo({},i,Or(s)))}},{key:"setStyles",value:function(i){this.style=Xr(Xr({},this.style),Or(i))}},{key:"updateStyles",value:function(i){this.style=Xr({},Or(i))}},{key:"formatText",value:function(i){var s=this.textPosition,c=s.x,p=s.y;i.text&&typeof i.text!="string"?Object.prototype.toString.call(i.text)==="[object Object]"&&(this.text={x:i.text.x||c,y:i.text.y||p,value:i.text.value||"",draggable:this.text.draggable,editable:this.text.editable}):this.text={value:i.text||"",x:c,y:p,draggable:this.text.draggable,editable:this.text.editable}}},{key:"resetTextPosition",value:function(){var i=this.textPosition,s=i.x,c=i.y;this.text.x=s,this.text.y=c}},{key:"moveText",value:function(i,s){if(this.text){var c=this.text,p=c.x,v=c.y,m=c.value,x=c.draggable,j=c.editable;this.text={value:m,draggable:x,x:p+i,y:v+s,editable:j}}}},{key:"setText",value:function(i){i&&mr(this.text,i)}},{key:"updateText",value:function(i){this.text=Xr(Xr({},Object(h.I)(this.text)),{},{value:i})}},{key:"setAnchors",value:function(){if(!this.sourceAnchorId||!this.startPoint){var i=this.getBeginAnchor(this.sourceNode,this.targetNode,this.sourceAnchorId);if(!i)throw new Error("\u65E0\u6CD5\u83B7\u53D6beginAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.startPoint||(this.startPoint={x:i.x,y:i.y}),this.sourceAnchorId||(this.sourceAnchorId=i.id)}if(!this.targetAnchorId||!this.endPoint){var s=this.getEndAnchor(this.targetNode,this.targetAnchorId);if(!s)throw new Error("\u65E0\u6CD5\u83B7\u53D6endAnchor\uFF0C\u8BF7\u68C0\u67E5anchors\u76F8\u5173\u903B\u8F91\uFF0Canchors\u4E0D\u80FD\u4E3A\u7A7A");this.endPoint||(this.endPoint={x:s.x,y:s.y}),this.targetAnchorId||(this.targetAnchorId=s.id)}}},{key:"setSelected",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"openEdgeAnimation",value:function(){this.isAnimation=!0}},{key:"closeEdgeAnimation",value:function(){this.isAnimation=!1}},{key:"setElementState",value:function(i,s){this.state=i,this.additionStateData=s}},{key:"updateStartPoint",value:function(i){this.startPoint=i}},{key:"moveStartPoint",value:function(i,s){this.startPoint.x+=i,this.startPoint.y+=s}},{key:"updateEndPoint",value:function(i){this.endPoint=i}},{key:"moveEndPoint",value:function(i,s){this.endPoint.x+=i,this.endPoint.y+=s}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.zIndex=i}},{key:"initPoints",value:function(){}},{key:"updateAttributes",value:function(i){mr(this,i)}},{key:"getAdjustStart",value:function(){return this.startPoint}},{key:"getAdjustEnd",value:function(){return this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(i){var s=i.startPoint,c=i.endPoint;this.updateStartPoint({x:s.x,y:s.y}),this.updateEndPoint({x:c.x,y:c.y})}}],r&&zd(e.prototype,r),t}(),Sf=Tt(ke.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Ou=Tt(ke.prototype,"sourceNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),zs=Tt(ke.prototype,"targetNodeId",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),jf=Tt(ke.prototype,"startPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pf=Tt(ke.prototype,"endPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),bc=Tt(ke.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),Af=Tt(ke.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Mo=Tt(ke.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),Qi=Tt(ke.prototype,"pointsList",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Tf=Tt(ke.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),jd=Tt(ke.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Pd=Tt(ke.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Ad=Tt(ke.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Mf=Tt(ke.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),kf=Tt(ke.prototype,"isAnimation",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Df=Tt(ke.prototype,"isShowAdjustPoint",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Nf=Tt(ke.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Td=Tt(ke.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Md=Tt(ke.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),kd=Tt(ke.prototype,"arrowConfig",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")}}}),Tt(ke.prototype,"sourceNode",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"sourceNode"),ke.prototype),Tt(ke.prototype,"targetNode",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"targetNode"),ke.prototype),Tt(ke.prototype,"textPosition",[h.m],Object.getOwnPropertyDescriptor(ke.prototype,"textPosition"),ke.prototype),Tt(ke.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setProperty"),ke.prototype),Tt(ke.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"deleteProperty"),ke.prototype),Tt(ke.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setProperties"),ke.prototype),Tt(ke.prototype,"changeEdgeId",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"changeEdgeId"),ke.prototype),Tt(ke.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setStyle"),ke.prototype),Tt(ke.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setStyles"),ke.prototype),Tt(ke.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateStyles"),ke.prototype),Tt(ke.prototype,"formatText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"formatText"),ke.prototype),Tt(ke.prototype,"resetTextPosition",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"resetTextPosition"),ke.prototype),Tt(ke.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveText"),ke.prototype),Tt(ke.prototype,"setText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setText"),ke.prototype),Tt(ke.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateText"),ke.prototype),Tt(ke.prototype,"setAnchors",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setAnchors"),ke.prototype),Tt(ke.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setSelected"),ke.prototype),Tt(ke.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setHovered"),ke.prototype),Tt(ke.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setHitable"),ke.prototype),Tt(ke.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"openEdgeAnimation"),ke.prototype),Tt(ke.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"closeEdgeAnimation"),ke.prototype),Tt(ke.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setElementState"),ke.prototype),Tt(ke.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateStartPoint"),ke.prototype),Tt(ke.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveStartPoint"),ke.prototype),Tt(ke.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateEndPoint"),ke.prototype),Tt(ke.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"moveEndPoint"),ke.prototype),Tt(ke.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"setZIndex"),ke.prototype),Tt(ke.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"initPoints"),ke.prototype),Tt(ke.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateAttributes"),ke.prototype),Tt(ke.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"getAdjustStart"),ke.prototype),Tt(ke.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"getAdjustEnd"),ke.prototype),Tt(ke.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(ke.prototype,"updateAfterAdjustStartAndEnd"),ke.prototype),ke),wu=Lf;function Bf(t){return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bf(t)}function Fd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Oc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fd(Object(r),!0).forEach(function(i){Ud(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function $d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wd(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function wc(){return wc=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=Gd(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},wc.apply(this,arguments)}function Gd(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Ei(t))!==null;);return t}function Ws(t,e){return Ws=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ws(t,e)}function pv(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Ei(t);if(e){var s=Ei(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return dv(this,r)}}function dv(t,e){if(e&&(Bf(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xc(t)}function xc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ei(t){return Ei=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ei(t)}function Ud(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var It,zf,Gs=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ws(c,p)})(s,t);var e,r,i=pv(s);function s(){var c;$d(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Ud(xc(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.LINE_EDGE),c}return e=s,(r=[{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.line;return Oc(Oc({},wc(Ei(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}}}])&&Wd(e.prototype,r),s}(wu);function ro(t){return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(t)}function hv(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return Hd(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Hd(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Hd(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function ea(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Ht(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(i){Wn(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function yv(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Yr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function er(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mo(){return mo=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=vv(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},mo.apply(this,arguments)}function vv(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=xn(t))!==null;);return t}function Ec(t,e){return Ec=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ec(t,e)}function Si(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=xn(t);if(e){var s=xn(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Xd(this,r)}}function Xd(t,e){if(e&&(ro(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ta(t)}function ta(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xn(t){return xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xn(t)}function Wn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wr(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Sc=(It=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ec(c,p)})(s,t);var e,r,i=Si(s);function s(){var c;Yr(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Wn(ta(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.POLYLINE_EDGE),Wn(ta(c),"draggingPointList",void 0),yv(ta(c),"dbClickPosition",zf,ta(c)),c}return e=s,(r=[{key:"initEdgeData",value:function(c){this.offset=30,mo(xn(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.polyline;return Ht(Ht({},mo(xn(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){var c,p=(c=this.text)===null||c===void 0?void 0:c.value;if(this.dbClickPosition&&!p){var v=this.dbClickPosition;return{x:v.x,y:v.y}}var m=ra(this.points),x=hv(nh(m),2),j=x[0],D=x[1];return{x:(j.x+D.x)/2,y:(j.y+D.y)/2}}},{key:"getAfterAnchor",value:function(c,p,v){var m,x;return v.forEach(function(j){var D;c===Mn.HORIZONTAL?D=Math.abs(p.y-j.y):c===Mn.VERTICAL&&(D=Math.abs(p.x-j.x)),(!x||x>D)&&(x=D,m=j)}),m}},{key:"getCrossPoint",value:function(c,p,v){var m;return c===Mn.HORIZONTAL?m={x:v.x,y:p.y}:c===Mn.VERTICAL&&(m={x:p.x,y:v.y}),m}},{key:"removeCrossPoints",value:function(c,p,v){var m=v.map(function(ye){return ye});if(c===1){var x=m[c],j=m[p],D=m[c-1];if(Hf(D,x,this.sourceNode)){if(Xf(x,j,this.sourceNode)){var I=Yf(x,j,this.sourceNode);I&&(m[c]=I,m.splice(c-1,1),c--,p--)}}else this.sourceNode.anchors.forEach(function(ye){(ye.x===D.x&&ye.x===x.x||ye.y===D.y&&ye.y===x.y)&&ko(ye.x,ye.y,x.x,x.y)<ko(D.x,D.y,x.x,x.y)&&(m[c-1]=ye)})}if(p===v.length-2){var K=m[c],re=m[p],oe=m[p+1];if(Hf(re,oe,this.targetNode)){if(Xf(K,re,this.targetNode)){var he=Yf(K,re,this.targetNode);he&&(m[p]=he,m.splice(p+1,1))}}else this.targetNode.anchors.forEach(function(ye){(ye.x===oe.x&&ye.x===re.x||ye.y===oe.y&&ye.y===re.y)&&ko(ye.x,ye.y,re.x,re.y)<ko(oe.x,oe.y,re.x,re.y)&&(m[p+1]=ye)})}return m}},{key:"getDraggingPoints",value:function(c,p,v,m,x){var j=x.map(function(K){return K}),D=this.getAfterAnchor(c,v,m),I=this.getCrossPoint(c,v,D);return p==="start"?(j.unshift(I),j.unshift(D)):(j.push(I),j.push(D)),j}},{key:"updateCrossPoints",value:function(c){var p=c.map(function(Re){return Re}),v=c[0],m=c[1],x=c[p.length-2],j=c[p.length-1],D=this.sourceNode,I=this.targetNode,K=D.modelType,re=I.modelType,oe=kc(v,m),he=p[0];switch(K){case Zt.RECT_NODE:D.radius!==0&&(Cf(v,D)||(he=Nd(v,oe,D)));break;case Zt.CIRCLE_NODE:he=mc(v,oe,D);break;case Zt.ELLIPSE_NODE:he=Cd(v,oe,D);break;case Zt.DIAMOND_NODE:case Zt.POLYGON_NODE:he=Rd(v,oe,D)}he&&(p[0]=he);var ye=kc(x,j),Ee=p[p.length-1];switch(re){case Zt.RECT_NODE:I.radius!==0&&(Cf(j,I)||(Ee=Nd(j,ye,I)));break;case Zt.CIRCLE_NODE:Ee=mc(j,ye,I);break;case Zt.ELLIPSE_NODE:Ee=Cd(j,ye,I);break;case Zt.DIAMOND_NODE:case Zt.POLYGON_NODE:Ee=Rd(j,ye,I)}return Ee&&(p[p.length-1]=Ee),p}},{key:"getData",value:function(){var c=mo(xn(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(v){return{x:v.x,y:v.y}});return Object.assign({},c,{pointsList:p})}},{key:"initPoints",value:function(){this.pointsList.length>0?this.points=this.pointsList.map(function(c){return"".concat(c.x,",").concat(c.y)}).join(" "):this.updatePoints()}},{key:"updatePoints",value:function(){var c=qs({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=c,this.points=c.map(function(p){return"".concat(p.x,",").concat(p.y)}).join(" ")}},{key:"updateStartPoint",value:function(c){this.startPoint=Object.assign({},c),this.updatePoints()}},{key:"moveStartPoint",value:function(c,p){this.startPoint.x+=c,this.startPoint.y+=p,this.updatePoints()}},{key:"updateEndPoint",value:function(c){this.endPoint=Object.assign({},c),this.updatePoints()}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p,this.updatePoints()}},{key:"updatePointsList",value:function(c,p){this.pointsList.forEach(function(x){x.x+=c,x.y+=p});var v=this.pointsList[0];this.startPoint=Object.assign({},v);var m=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},m),this.initPoints()}},{key:"dragAppendStart",value:function(){this.draggingPointList=this.pointsList.map(function(c){return c})}},{key:"dragAppendSimple",value:function(c,p){this.isDragging=!0;var v=c.start,m=c.end,x=c.startIndex,j=c.endIndex,D=c.direction,I=this.pointsList,K=I;return D===Mn.HORIZONTAL?(I[x]={x:v.x,y:v.y+p.y},I[j]={x:m.x,y:m.y+p.y},K=this.pointsList.map(function(re){return re})):D===Mn.VERTICAL&&(I[x]={x:v.x+p.x,y:v.y},I[j]={x:m.x+p.x,y:m.y},K=this.pointsList.map(function(re){return re})),this.updatePointsAfterDrag(K),this.draggingPointList=K,this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},I[x]),end:Object.assign({},I[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppend",value:function(c,p){this.isDragging=!0;var v=c.start,m=c.end,x=c.startIndex,j=c.endIndex,D=c.direction,I=this.pointsList;if(D===Mn.HORIZONTAL){I[x]={x:v.x,y:v.y+p.y},I[j]={x:m.x,y:m.y+p.y};var K=this.pointsList.map(function(qe){return qe});if(x!==0&&j!==this.pointsList.length-1&&(K=this.removeCrossPoints(x,j,K)),x===0){var re={x:v.x,y:v.y+p.y};if(!ti(re,this.sourceNode)){var oe=this.sourceNode.anchors;K=this.getDraggingPoints(D,"start",re,oe,K)}}if(j===this.pointsList.length-1){var he={x:m.x,y:m.y+p.y};if(!ti(he,this.targetNode)){var ye=this.targetNode.anchors;K=this.getDraggingPoints(D,"end",he,ye,K)}}this.updatePointsAfterDrag(K),this.draggingPointList=K}else if(D===Mn.VERTICAL){I[x]={x:v.x+p.x,y:v.y},I[j]={x:m.x+p.x,y:m.y};var Ee=this.pointsList.map(function(qe){return qe});if(x!==0&&j!==this.pointsList.length-1&&(Ee=this.removeCrossPoints(x,j,Ee)),x===0){var Re={x:v.x+p.x,y:v.y};if(!ti(Re,this.sourceNode)){var Qe=this.sourceNode.anchors;Ee=this.getDraggingPoints(D,"start",Re,Qe,Ee)}}if(j===this.pointsList.length-1){var Ze={x:m.x+p.x,y:m.y};if(!ti(Ze,this.targetNode)){var _t=this.targetNode.anchors;Ee=this.getDraggingPoints(D,"end",Ze,_t,Ee)}}this.updatePointsAfterDrag(Ee),this.draggingPointList=Ee}return this.setText(Object.assign({},this.text,this.textPosition)),{start:Object.assign({},I[x]),end:Object.assign({},I[j]),startIndex:x,endIndex:j,direction:D}}},{key:"dragAppendEnd",value:function(){if(this.draggingPointList){var c=Ks(ra(this.points));this.pointsList=c.map(function(m){return m}),this.draggingPointList=[];var p=c[0];this.startPoint=Object.assign({},p);var v=c[c.length-1];this.endPoint=Object.assign({},v)}this.isDragging=!1}},{key:"updatePointsAfterDrag",value:function(c){var p=this.updateCrossPoints(c);this.points=p.map(function(v){return"".concat(v.x,",").concat(v.y)}).join(" ")}},{key:"getAdjustStart",value:function(){return this.pointsList[0]||this.startPoint}},{key:"getAdjustEnd",value:function(){var c=this.pointsList;return c[c.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(c){var p=c.startPoint,v=c.endPoint,m=c.sourceNode,x=c.targetNode,j=qs({x:p.x,y:p.y},{x:v.x,y:v.y},m,x,this.offset||0);this.pointsList=j,this.initPoints()}}])&&er(e.prototype,r),s}(wu),zf=wr(It.prototype,"dbClickPosition",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wr(It.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"initPoints"),It.prototype),wr(It.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePoints"),It.prototype),wr(It.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateStartPoint"),It.prototype),wr(It.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"moveStartPoint"),It.prototype),wr(It.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateEndPoint"),It.prototype),wr(It.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"moveEndPoint"),It.prototype),wr(It.prototype,"updatePointsList",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePointsList"),It.prototype),wr(It.prototype,"dragAppendStart",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendStart"),It.prototype),wr(It.prototype,"dragAppendSimple",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendSimple"),It.prototype),wr(It.prototype,"dragAppend",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppend"),It.prototype),wr(It.prototype,"dragAppendEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"dragAppendEnd"),It.prototype),wr(It.prototype,"updatePointsAfterDrag",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updatePointsAfterDrag"),It.prototype),wr(It.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"getAdjustStart"),It.prototype),wr(It.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"getAdjustEnd"),It.prototype),wr(It.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(It.prototype,"updateAfterAdjustStartAndEnd"),It.prototype),It),ji=function(t){var e=t.start,r=t.end,i=t.offset,s=t.verticalLength,c=t.type,p={leftX:0,leftY:0,rightX:0,rightY:0},v=Math.atan((r.y-e.y)/(r.x-e.x)),m=Math.atan(i/s),x=Math.sqrt(s*s+i*i);return c==="start"?r.x>=e.x?(p.leftX=e.x+x*Math.sin(v+m),p.leftY=e.y-x*Math.cos(v+m),p.rightX=e.x-x*Math.sin(v-m),p.rightY=e.y+x*Math.cos(v-m)):(p.leftX=e.x-x*Math.sin(v+m),p.leftY=e.y+x*Math.cos(v+m),p.rightX=e.x+x*Math.sin(v-m),p.rightY=e.y-x*Math.cos(v-m)):c==="end"&&(r.x>=e.x?(p.leftX=r.x+x*Math.sin(v-m),p.leftY=r.y-x*Math.cos(v-m),p.rightX=r.x-x*Math.sin(v+m),p.rightY=r.y+x*Math.cos(v+m)):(p.leftX=r.x-x*Math.sin(v-m),p.leftY=r.y+x*Math.cos(v-m),p.rightX=r.x+x*Math.sin(v+m),p.rightY=r.y-x*Math.cos(v+m))),p},Ff={x:1,y:0,z:0};function $f(t,e,r,i,s){for(var c=function(re){if(re<0||re>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:t.x*Math.pow(1-re,3)+3*e.x*re*Math.pow(1-re,2)+3*r.x*Math.pow(re,2)*(1-re)+i.x*Math.pow(re,3),y:t.y*Math.pow(1-re,3)+3*e.y*re*Math.pow(1-re,2)+3*r.y*Math.pow(re,2)*(1-re)+i.y*Math.pow(re,3)}},p=0,v=2,m=i.x,x=i.y,j=i;p<s&&v<50;){var D=j=c(1-v/100),I=D.x,K=D.y;p=ko(m,x,I,K),v++}return j}function jc(t){var e=Math.hypot(t.x,t.y);return{x:t.x/e,y:t.y/e,z:0}}function Vr(t){return i=function(c,p){return c.x*p.y-c.y*p.x}(e=Ff,r=t),s=Math.acos(function(c,p){var v=[c.x,c.y,c.z];return[p.x,p.y,p.z].reduce(function(m,x,j){return m+x*v[j]})}(jc(e),jc(r))),i>=0?s:-s;var e,r,i,s}function Na(t){return t*(180/Math.PI)}function Yd(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Us(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Yd(Object(r),!0).forEach(function(i){Vd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Vd(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pi(t){return function(e){if(Array.isArray(e))return Hs(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||oo(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yt(t){return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}function Pc(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||oo(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function oo(t,e){if(t){if(typeof t=="string")return Hs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hs(t,e):void 0}}function Hs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var En=function(t,e){var r;switch(t.type){case"line":default:r=new Gs(t,e);break;case"polyline":r=new Sc(t,e)}return r},Kd=function(t,e){return 2*Math.abs(t.centerX-e.centerX)<t.width+e.width&&2*Math.abs(t.centerY-e.centerY)<t.height+e.height},xu=function(t){var e=[],r={};return t.forEach(function(i){var s="".concat(i.x,"-").concat(i.y);i.id=s,r[s]=i}),Object.keys(r).forEach(function(i){e.push(r[i])}),e},Xs=function(t,e){var r=[t,{x:t.x,y:e.y},e];return xu(r)},Ac=function(t,e){return t.width===0&&t.height===0?t:{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}},qd=function(t,e){var r=Math.abs(t.x-e.centerX),i=Math.abs(t.y-e.centerY);return r/e.width>i/e.height?Mn.HORIZONTAL:Mn.VERTICAL},Tc=function(t,e,r){return qd(r,e)===Mn.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}},Wf=function(t,e){var r=Math.min(t.minX,e.minX),i=Math.min(t.minY,e.minY),s=Math.max(t.maxX,e.maxX),c=Math.max(t.maxY,e.maxY);return{centerX:(r+s)/2,centerY:(i+c)/2,minX:r,minY:i,maxX:s,maxY:c,height:c-i,width:s-r}},na=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=[],i=[];t.forEach(function(j){r.push(j.x),i.push(j.y)});var s=Math.min.apply(Math,r),c=Math.max.apply(Math,r),p=Math.min.apply(Math,i),v=Math.max.apply(Math,i),m=c-s,x=v-p;return e&&(m+=e,x+=e),{centerX:(s+c)/2,centerY:(p+v)/2,maxX:c,maxY:v,minX:s,minY:p,x:(s+c)/2,y:(p+v)/2,height:x,width:m}},Ca=function(t){var e=t.minX,r=t.minY,i=t.maxX,s=t.maxY;return[{x:e,y:r},{x:i,y:r},{x:i,y:s},{x:e,y:s}]},Mc=function(t,e){var r=t.x,i=t.y;return r<e.minX||r>e.maxX||i<e.minY||i>e.maxY},Zd=function(t,e){return e<t.minX||e>t.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},Jd=function(t,e){return e<t.minY||e>t.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},dr=function(t,e){return Zd(t,e.x).concat(Jd(t,e.y))},xr=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Qd=function(t,e){var r=0;return e.forEach(function(i){i&&(t.x===i.x&&(r+=-2),t.y===i.y&&(r+=-2))}),r},Ys=function(t,e,r,i,s){return xr(t,e)+xr(t,r)+Qd(t,[e,r,i,s])},eh=function t(e,r,i,s,c){c||(c=0),e.unshift(r[s]),i[s]&&i[s]!==s&&c<=100&&t(e,r,i,i[s],c+1)},th=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},Ra=function(t,e,r,i){var s=e.x-t.x,c=e.y-t.y,p=i.x-r.x,v=i.y-r.y,m=(-c*(t.x-r.x)+s*(t.y-r.y))/(-p*c+s*v),x=(p*(t.y-r.y)-v*(t.x-r.x))/(-p*c+s*v);return m>=0&&m<=1&&x>=0&&x<=1},Vs=function(t,e,r){if(r.width===0&&r.height===0)return!1;var i=Pc(Ca(r),4),s=i[0],c=i[1],p=i[2],v=i[3];return Ra(t,e,s,c)||Ra(t,e,s,v)||Ra(t,e,c,p)||Ra(t,e,p,v)},Gf=function(t,e,r,i){var s=[];return t.forEach(function(c){c!==e&&(c.x!==e.x&&c.y!==e.y||Vs(c,e,r)||Vs(c,e,i)||s.push(c))}),xu(s)},Ia=function(t,e,r,i,s,c,p){var v=[],m=[e],x={},j={},D={};j[e.id]=0,D[e.id]=Ys(e,r,e);var I={};t.forEach(function(oe){I[oe.id]=oe});for(var K=function(){var oe=void 0,he=1/0;if(m.forEach(function(Ee){D[Ee.id]<he&&(he=D[Ee.id],oe=Ee)}),oe===r){var ye=[];return eh(ye,I,x,r.id),{v:ye}}th(m,oe),v.push(oe),Gf(t,oe,i,s).forEach(function(Ee){if(v.indexOf(Ee)===-1){m.indexOf(Ee)===-1&&m.push(Ee);var Re=D[oe.id]+xr(oe,Ee);j[Ee.id]&&Re>=j[Ee.id]||(x[Ee.id]=oe.id,j[Ee.id]=Re,D[Ee.id]=j[Ee.id]+Ys(Ee,r,e,c,p))}})};m.length;){var re=K();if(Yt(re)==="object")return re.v}return[e,r]},Uf=function(t){return no(t)},Ks=function(t){for(var e=1;e<t.length-1;){var r=t[e-1],i=t[e],s=t[e+1];r.x===i.x&&i.x===s.x||r.y===i.y&&i.y===s.y?t.splice(e,1):e++}return t},qs=function(t,e,r,i,s){var c=Uf(r),p=Uf(i),v=Ac(c,s),m=Ac(p,s),x=Tc(v,c,t),j=Tc(m,p,e);if(Kd(v,m)){var D=Zs(t,e,x,j);return[t,x].concat(Pi(D),[j,e])}var I=na([x,j]),K=Wf(v,I),re=Wf(m,I),oe=[];oe=(oe=oe.concat(Ca(K))).concat(Ca(re));var he={x:(t.x+e.x)/2,y:(t.y+e.y)/2};[I,K,re].forEach(function(Ee){oe=oe.concat(dr(Ee,he).filter(function(Re){return Mc(Re,v)&&Mc(Re,m)}))}),[{x:x.x,y:j.y},{x:j.x,y:x.y}].forEach(function(Ee){Mc(Ee,v)&&Mc(Ee,m)&&oe.push(Ee)}),oe.unshift(x),oe.push(j),oe=xu(oe);var ye=Ia(oe,x,j,c,p,t,e);return ye.unshift(t),ye.push(e),ye.length>2&&(ye=Ks(ye)),xu(ye)},nh=function(t){var e;if(t.length===1)e=[t[0],t[0]];else if(t.length>=2){for(var r=t[0],i=t[1],s=ko(r.x,r.y,i.x,i.y),c=1;c<t.length-1;c++){var p=t[c],v=t[c+1],m=ko(p.x,p.y,v.x,v.y);m>s&&(s=m,r=p,i=v)}e=[r,i]}return e},Hf=function(t,e,r){var i=ti(t,r),s=ti(e,r);return i&&s},Xf=function(t,e,r){var i=ti(t,r),s=ti(e,r);return!(i&&s)&&(i||s)},Yf=function(t,e,r){for(var i,s,c=no(r),p=Ca(c),v=0;v<p.length;v++)Ra(t,e,p[v],p[(v+1)%p.length])&&(s=[p[v],p[(v+1)%p.length]]);return s&&(i=function(m,x,j,D){var I=(x.y-m.y)*(D.x-j.x)-(m.x-x.x)*(j.y-D.y);if(I===0)return!1;var K=((x.x-m.x)*(D.x-j.x)*(j.y-m.y)+(x.y-m.y)*(D.x-j.x)*m.x-(D.y-j.y)*(x.x-m.x)*j.x)/I,re=-((x.y-m.y)*(D.y-j.y)*(j.x-m.x)+(x.x-m.x)*(D.y-j.y)*m.y-(D.x-j.x)*(x.y-m.y)*j.y)/I;return(K-m.x)*(K-x.x)<=0&&(re-m.y)*(re-x.y)<=0&&(K-j.x)*(K-D.x)<=0&&(re-j.y)*(re-D.y)<=0&&{x:K,y:re}}(t,e,s[0],s[1])),i},kc=function(t,e){var r;return t.x===e.x?r=Mn.VERTICAL:t.y===e.y&&(r=Mn.HORIZONTAL),r},ra=function(t){var e=t.split(" "),r=[];return e&&e.forEach(function(i){var s=Pc(i.split(","),2),c=s[0],p=s[1];r.push({x:Number(c),y:Number(p)})}),r},Zs=function(t,e,r,i){var s=[];if(kc(t,r)===kc(e,i))t.y===r.y?(s.push({x:r.x,y:(r.y+i.y)/2}),s.push({x:i.x,y:(r.y+i.y)/2})):(s.push({x:(r.x+i.x)/2,y:r.y}),s.push({x:(r.x+i.x)/2,y:i.y}));else{var c={x:r.x,y:i.y},p=_u(c,t,r),v=_u(c,e,i);if(p||v)c={x:i.x,y:r.y};else{var m=Vf(c,t,r),x=Vf(c,e,i);m&&x&&(c={x:i.x,y:r.y})}s.push(c)}return s},Vf=function(t,e,r){return t.x===e.x&&t.x===r.x||t.y===e.y&&t.y===r.y},Js=function(t){if(!t)return 0;for(var e=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);t.match(/[A-Z]/)?e+=1.5:e+=i>=1&&i<=126||i>=65376&&i<=65439?1:2}return e},Kf=null,qf=function(t,e){Kf||(Kf=document.createElement("canvas"));var r=Kf.getContext("2d");return r.font=e,r.measureText(t).width},rh=function(t){var e,r=t.start,i=t.end;if(r.x===i.x&&r.y===i.y)e="";else{var s={start:r,end:i,offset:10,verticalLength:5},c=ji(Us(Us({},s),{},{type:"start"})),p=ji(Us(Us({},s),{},{type:"end"}));e="M".concat(c.leftX," ").concat(c.leftY,`
- L`).concat(c.rightX," ").concat(c.rightY,`
- L`).concat(p.rightX," ").concat(p.rightY,`
- L`).concat(p.leftX," ").concat(p.leftY," z")}return{d:e,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},Zf=function(t){var e=t.start,r=t.end,i=t.sourceNode,s=t.targetNode,c=t.offset,p=no(i),v=no(s),m=Ac(p,c),x=Ac(v,c);return{sNext:Tc(m,p,e),ePre:Tc(x,v,r)}},Er=function(t){var e=t.replace(/M/g,"").replace(/C/g,",").split(",");return[Eu(e[0]),Eu(e[1]),Eu(e[2]),Eu(e[3])]},Eu=function(t){var e=Pc(t.replace(/(^\s*)/g,"").split(" "),2);return{x:+e[0],y:+e[1]}},Jf=function(t,e){var r=Pc(t,4);return[$f(r[0],r[1],r[2],r[3],e),t[3]]},Qf=function(t,e){for(var r,i=t.x,s=t.y,c=ra(e),p=Number.MAX_SAFE_INTEGER,v=[],m=0;m<c.length;m++)v.push({start:c[m],end:c[(m+1)%c.length]});if(v.forEach(function(I){var K=I.start,re=I.end;if(K.x===re.x){var oe={x:K.x,y:s};if(_u(oe,K,re)){var he=Math.abs(K.x-i);he<p&&(p=he,r=oe)}}else if(K.y===re.y){var ye={x:i,y:K.y};if(_u(ye,K,re)){var Ee=Math.abs(K.y-s);Ee<p&&(p=Ee,r=ye)}}}),!r){var x=v[0],j=x.start,D=x.end;r={x:j.x+(D.x-j.x)/2,y:j.y+(D.y-j.y)/2}}return r},Qs=function(t){return bi(t,["id","type","sourceNodeId","sourceAnchorId","targetNodeId","targetAnchorId","pointsList","startPoint","endPoint","properties"])},Dc=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))};function oh(t,e){return typeof e!="function"?function(r,i,s){return Object.assign({type:t.edgeType},s)}:function(r,i,s){var c=e(r,i,s);return c?typeof c=="string"?Object.assign({},s,{type:c}):Object.assign({type:c},s):{type:t.edgeType}}}o(208);var ep=function(){};function gv(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function tr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ni=function(){function t(i){var s=this,c=i.onDragStart,p=c===void 0?ep:c,v=i.onDragging,m=v===void 0?ep:v,x=i.onDragEnd,j=x===void 0?ep:x,D=i.eventType,I=D===void 0?"":D,K=i.eventCenter,re=K===void 0?null:K,oe=i.step,he=oe===void 0?1:oe,ye=i.isStopPropagation,Ee=ye===void 0||ye,Re=i.model,Qe=Re===void 0?null:Re,Ze=i.data,_t=Ze===void 0?null:Ze;(function(qe,ht){if(!(qe instanceof ht))throw new TypeError("Cannot call a class as a function")})(this,t),tr(this,"onDragStart",void 0),tr(this,"onDragging",void 0),tr(this,"onDragEnd",void 0),tr(this,"step",void 0),tr(this,"isStopPropagation",void 0),tr(this,"isDragging",!1),tr(this,"isStartDragging",!1),tr(this,"startX",0),tr(this,"startY",0),tr(this,"sumDeltaX",0),tr(this,"sumDeltaY",0),tr(this,"eventType",void 0),tr(this,"eventCenter",void 0),tr(this,"model",void 0),tr(this,"data",void 0),tr(this,"startTime",void 0),tr(this,"handleMouseDown",function(qe){var ht,rt,tn,un=(ht=window)===null||ht===void 0?void 0:ht.document;if(qe.button===0){s.isStopPropagation&&qe.stopPropagation(),s.isStartDragging=!0,s.startX=qe.clientX,s.startY=qe.clientY,un.addEventListener("mousemove",s.handleMouseMove,!1),un.addEventListener("mouseup",s.handleMouseUp,!1);var Lt=(rt=s.model)===null||rt===void 0?void 0:rt.getData();(tn=s.eventCenter)===null||tn===void 0||tn.emit(dt["".concat(s.eventType,"_MOUSEDOWN")],{e:qe,data:s.data||Lt}),s.startTime=new Date().getTime()}}),tr(this,"handleMouseMove",function(qe){if(s.isStopPropagation&&qe.stopPropagation(),s.isStartDragging&&(s.sumDeltaX+=qe.clientX-s.startX,s.sumDeltaY+=qe.clientY-s.startY,s.startX=qe.clientX,s.startY=qe.clientY,s.step<=1||Math.abs(s.sumDeltaX)>s.step||Math.abs(s.sumDeltaY)>s.step)){var ht,rt=s.sumDeltaX%s.step,tn=s.sumDeltaY%s.step,un=s.sumDeltaX-rt,Lt=s.sumDeltaY-tn;s.sumDeltaX=rt,s.sumDeltaY=tn;var pn,nr=(ht=s.model)===null||ht===void 0?void 0:ht.getData();s.isDragging||((pn=s.eventCenter)===null||pn===void 0||pn.emit(dt["".concat(s.eventType,"_DRAGSTART")],{e:qe,data:s.data||nr}),s.onDragStart({event:qe})),s.isDragging=!0,Promise.resolve().then(function(){var rr,zr;s.onDragging({deltaX:un,deltaY:Lt,event:qe}),(rr=s.eventCenter)===null||rr===void 0||rr.emit(dt["".concat(s.eventType,"_MOUSEMOVE")],{e:qe,data:s.data||nr}),(zr=s.eventCenter)===null||zr===void 0||zr.emit(dt["".concat(s.eventType,"_DRAG")],{e:qe,data:s.data||nr})})}}),tr(this,"handleMouseUp",function(qe){var ht=window.document;s.isStartDragging=!1,s.isStopPropagation&&qe.stopPropagation(),Promise.resolve().then(function(){var rt,tn,un;ht.removeEventListener("mousemove",s.handleMouseMove,!1),ht.removeEventListener("mouseup",s.handleMouseUp,!1);var Lt=(rt=s.model)===null||rt===void 0?void 0:rt.getData();(tn=s.eventCenter)===null||tn===void 0||tn.emit(dt["".concat(s.eventType,"_MOUSEUP")],{e:qe,data:s.data||Lt}),s.isDragging&&(s.isDragging=!1,s.onDragEnd({event:qe}),(un=s.eventCenter)===null||un===void 0||un.emit(dt["".concat(s.eventType,"_DROP")],{e:qe,data:s.data||Lt}))})}),tr(this,"cancelDrag",function(){var qe,ht=(qe=window)===null||qe===void 0?void 0:qe.document;ht.removeEventListener("mousemove",s.handleMouseMove,!1),ht.removeEventListener("mouseup",s.handleMouseUp,!1),s.onDragEnd({event:null}),s.isDragging=!1}),this.onDragStart=p,this.onDragging=m,this.onDragEnd=j,this.step=he,this.isStopPropagation=Ee,this.eventType=I,this.eventCenter=re,this.model=Qe,this.data=_t}var e,r;return e=t,(r=[{key:"setStep",value:function(i){this.step=i}},{key:"setModel",value:function(i){this.model=i}}])&&gv(e.prototype,r),t}();function tp(t){return tp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tp(t)}function Nc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function el(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function np(t,e,r){return e&&el(t.prototype,e),r&&el(t,r),t}function rp(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function op(t){var e=ih();return function(){var r,i=y(t);if(e){var s=y(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return bv(this,r)}}function bv(t,e){if(e&&(tp(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ai(t)}function Ai(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ip(t){var e=typeof Map=="function"?new Map:void 0;return ip=function(r){if(r===null||(i=r,Function.toString.call(i).indexOf("[native code]")===-1))return r;var i;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,s)}function s(){return ap(r,arguments,y(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),f(s,r)},ip(t)}function ap(t,e,r){return ap=ih()?Reflect.construct:function(i,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(i,p));return c&&f(v,c.prototype),v},ap.apply(null,arguments)}function ih(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function f(t,e){return f=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},f(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(t)}function _(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function A(t,e){return t instanceof G&&e instanceof G}var R=function(t){rp(r,t);var e=op(r);function r(i,s,c){var p;return Nc(this,r),_(Ai(p=e.call(this,3)),"x",void 0),_(Ai(p),"y",void 0),_(Ai(p),"z",void 0),p[0]=i,p[1]=s,p[2]=c,p.x=i,p.y=s,p.z=c,Object.setPrototypeOf(Ai(p),r.prototype),p}return np(r,[{key:"add",value:function(i){if(A(this,i))return new G(this.x+i.x,this.y+i.y);var s=this.z+i.z;return new ie((this.x+i.x)/s,(this.y+i.y)/s)}},{key:"subtract",value:function(i){if(A(this,i))return new G(this.x-i.x,this.y-i.y);var s=this.z-i.z;return s===0?new G(this.x-i.x,this.y-i.y):new ie((this.x-i.x)/s,(this.y-i.y)/s)}}]),r}(ip(Array)),G=function(t){rp(r,t);var e=op(r);function r(i,s,c){var p;return Nc(this,r),p=e.call(this,i,s,c!=null?c:0),Object.setPrototypeOf(Ai(p),r.prototype),p}return np(r,[{key:"toString",value:function(){return"Vector"}},{key:"dot",value:function(i){var s=this;return i.reduce(function(c,p,v){return c+p*s[v]})}},{key:"cross",value:function(i){return new r(this.y*i.z-this.z*i.y,this.z*i.x-this.x*i.z,this.x*i.y-this.y*i.x)}},{key:"getLength",value:function(){return Math.hypot(this.x,this.y)}},{key:"normalize",value:function(){var i=this.getLength();return new r(this.x/i,this.y/i)}},{key:"crossZ",value:function(i){return this.x*i.y-this.y*i.x}},{key:"angle",value:function(i){var s=this.crossZ(i),c=Math.acos(this.normalize().dot(i.normalize()));return s>=0?c:-c}}]),r}(R),ie=function(t){rp(r,t);var e=op(r);function r(i,s){var c;return Nc(this,r),c=e.call(this,i,s,1),Object.setPrototypeOf(Ai(c),r.prototype),c}return np(r,[{key:"toString",value:function(){return"Point"}}]),r}(R);o(67),o(218);function le(t){return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(t)}function Oe(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||Ce(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Le(t){return function(e){if(Array.isArray(e))return Ge(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Ce(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ce(t,e){if(t){if(typeof t=="string")return Ge(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(t,e):void 0}}function Ge(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vt(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function jt(t,e,r){return e&&vt(t.prototype,e),r&&vt(t,r),t}function Be(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bt(t,e)}function He(t){var e=rn();return function(){var r,i=Pt(t);if(e){var s=Pt(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Ft(this,r)}}function Ft(t,e){if(e&&(le(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nt(t)}function nt(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Dt(t){var e=typeof Map=="function"?new Map:void 0;return Dt=function(r){if(r===null||(i=r,Function.toString.call(i).indexOf("[native code]")===-1))return r;var i;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,s)}function s(){return Mt(r,arguments,Pt(this).constructor)}return s.prototype=Object.create(r.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),bt(s,r)},Dt(t)}function Mt(t,e,r){return Mt=rn()?Reflect.construct:function(i,s,c){var p=[null];p.push.apply(p,s);var v=new(Function.bind.apply(i,p));return c&&bt(v,c.prototype),v},Mt.apply(null,arguments)}function rn(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function bt(t,e){return bt=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bt(t,e)}function Pt(t){return Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pt(t)}function Gn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var me,Do,ur,ri,Ti,Su,Cc,La,oa,up,cp,Rc,tl,ia=function(t){Be(r,t);var e=He(r);function r(){var i;st(this,r);for(var s=arguments.length,c=new Array(s),p=0;p<s;p++)c[p]=arguments[p];return Gn(nt(i=e.call(this,c.length)),"rows",void 0),Gn(nt(i),"columns",void 0),i.fill(new Array(3)),c.forEach(function(v,m){i[m]=v}),i.columns=c[0].length,i.rows=c.length,Object.setPrototypeOf(nt(i),r.prototype),i}return jt(r,[{key:"getRow",value:function(i){return this[i]}},{key:"getColumn",value:function(i){return Le(this.map(function(s){return s[i]}))}},{key:"transpose",value:function(){for(var i=[],s=0;s<this.columns;s++)i.push(this.getColumn(s));return Mt(r,i)}},{key:"cross",value:function(i){var s=new Array(this.rows).fill("").map(function(){return[]});if(this.columns===i.rows)for(var c=0;c<this.rows;c++)for(var p=this.getRow(c),v=function(x){var j=i.getColumn(x);s[c][x]=p.reduce(function(D,I,K){return D+I*j[K]},0)},m=0;m<i.columns;m++)v(m);return Mt(r,Le(s))}},{key:"to2D",value:function(){return this.map(function(i){return[i[0],i[1]]})}},{key:"toPoints",value:function(){return this.map(function(i){return new ie(i[0],i[1])})}},{key:"toString",value:function(){var i=Oe(this[0],2),s=i[0],c=i[1],p=Oe(this[1],2),v=p[0],m=p[1],x=Oe(this[2],2),j=x[0],D=x[1];return"matrix(".concat(s," ").concat(c," ").concat(v," ").concat(m," ").concat(j," ").concat(D,")")}},{key:"translate",value:function(i,s){return this.cross(new aa(i,s))}},{key:"rotate",value:function(i){return this.cross(new Ic(i))}},{key:"scale",value:function(i,s){return this.cross(new sp(i,s))}}]),r}(Dt(Array)),Ic=function(t){Be(r,t);var e=He(r);function r(i){var s;return st(this,r),s=e.call(this,new G(+Math.cos(i).toFixed(2),+Math.sin(i).toFixed(2),0),new G(-Math.sin(i).toFixed(2),+Math.cos(i).toFixed(2),0),new G(0,0,1)),Object.setPrototypeOf(nt(s),r.prototype),s}return jt(r,[{key:"inverse",value:function(){return this.transpose()}}]),r}(ia),sp=function(t){Be(r,t);var e=He(r);function r(i,s){var c;return st(this,r),Gn(nt(c=e.call(this,new G(i,0,0),new G(0,s,0),new G(0,0,1))),"sx",void 0),Gn(nt(c),"sy",void 0),c.sx=i,c.sy=s,Object.setPrototypeOf(nt(c),r.prototype),c}return jt(r,[{key:"inverse",value:function(){return new r(1/this.sx,1/this.sy)}}]),r}(ia),aa=function(t){Be(r,t);var e=He(r);function r(i,s){var c;return st(this,r),Gn(nt(c=e.call(this,new G(1,0,0),new G(0,1,0),new G(i,s,1))),"tx",void 0),Gn(nt(c),"ty",void 0),c.tx=i,c.ty=s,Object.setPrototypeOf(nt(c),r.prototype),c}return jt(r,[{key:"inverse",value:function(){return new r(-this.tx,-this.ty)}}]),r}(ia),Lc={node:!1,edge:!1},yS={node:!0,edge:!0};function g0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function ah(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?g0(Object(r),!0).forEach(function(i){Mi(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g0(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function nl(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||b0(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function rl(t){return function(e){if(Array.isArray(e))return mv(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||b0(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b0(t,e){if(t){if(typeof t=="string")return mv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mv(t,e):void 0}}function mv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function uh(t){return uh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},uh(t)}function oi(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function vS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Mi(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wt(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var m0,_0=200,O0=(me=function(){function t(i){(function(K,re){if(!(K instanceof re))throw new TypeError("Cannot call a class as a function")})(this,t),Mi(this,"rootEl",void 0),oi(this,"width",Do,this),oi(this,"height",ur,this),Mi(this,"theme",void 0),Mi(this,"eventCenter",void 0),Mi(this,"modelMap",new Map),Mi(this,"topElement",void 0),Mi(this,"animation",void 0),Mi(this,"idGenerator",void 0),Mi(this,"edgeGenerator",void 0),Mi(this,"nodeMoveRules",[]),Mi(this,"customTrajectory",void 0),oi(this,"edgeType",ri,this),oi(this,"nodes",Ti,this),oi(this,"edges",Su,this),oi(this,"overlapMode",Cc,this),oi(this,"background",La,this),oi(this,"transformModel",oa,this),oi(this,"editConfigModel",up,this),oi(this,"gridSize",cp,this),oi(this,"partial",Rc,this),oi(this,"fakerNode",tl,this);var s,c=i.container,p=i.background,v=p===void 0?{}:p,m=i.grid,x=i.idGenerator,j=i.edgeGenerator,D=i.animation,I=i.customTrajectory;this.background=v,uh(m)==="object"&&(this.gridSize=m.size),this.rootEl=c,this.editConfigModel=new ef(i),this.eventCenter=new Ds,this.transformModel=new od(this.eventCenter,i),this.theme=hc(i.style),this.edgeType=i.edgeType||"polyline",this.width=i.width,this.height=i.height,this.animation=(s=D)&&typeof s!="boolean"?ka(Ln(Lc),s):Ln(s===!0?yS:Lc),this.partial=i.partial,this.overlapMode=i.overlapMode||0,this.idGenerator=x,this.customTrajectory=I,this.edgeGenerator=oh(this,j),this.width=i.width||this.rootEl.getBoundingClientRect().width,this.height=i.height||this.rootEl.getBoundingClientRect().height,this.flowId=Ji()}var e,r;return e=t,r=[{key:"nodesMap",get:function(){return this.nodes.reduce(function(i,s,c){return i[s.id]={index:c,model:s},i},{})}},{key:"edgesMap",get:function(){return this.edges.reduce(function(i,s,c){return i[s.id]={index:c,model:s},i},{})}},{key:"modelsMap",get:function(){return[].concat(rl(this.nodes),rl(this.edges)).reduce(function(i,s){return i[s.id]=s,i},{})}},{key:"sortElements",get:function(){var i=[];this.nodes.forEach(function(x){return i.push(x)}),this.edges.forEach(function(x){return i.push(x)}),i=i.sort(function(x,j){return x.zIndex-j.zIndex});for(var s=[],c=[-200,-200],p=[this.width+_0,this.height+_0],v=0;v<i.length;v++){var m=i[v];m.visible&&(!this.partial||m.isSelected||this.isElementInArea(m,c,p,!1,!1))&&s.push(m)}return s}},{key:"textEditElement",get:function(){var i=this.nodes.find(function(c){return c.state===gn.TEXT_EDIT}),s=this.edges.find(function(c){return c.state===gn.TEXT_EDIT});return i||s}},{key:"selectElements",get:function(){var i=new Map;return this.nodes.forEach(function(s){s.isSelected&&i.set(s.id,s)}),this.edges.forEach(function(s){s.isSelected&&i.set(s.id,s)}),i}},{key:"selectNodes",get:function(){var i=[];return this.nodes.forEach(function(s){s.isSelected&&i.push(s)}),i}},{key:"getAreaElement",value:function(i,s){var c=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=arguments.length>4&&arguments[4]!==void 0&&arguments[4],m=[],x=[];this.nodes.forEach(function(I){return x.push(I)}),this.edges.forEach(function(I){return x.push(I)});for(var j=0;j<x.length;j++){var D=x[j];v&&!D.visible||!this.isElementInArea(D,i,s,c,p)||m.push(D)}return m}},{key:"getModel",value:function(i){return this.modelMap.get(i)}},{key:"getNodeModelById",value:function(i){var s;return this.fakerNode&&i===this.fakerNode.id?this.fakerNode:(s=this.nodesMap[i])===null||s===void 0?void 0:s.model}},{key:"getPointByClient",value:function(i){var s=i.x,c=i.y,p=this.rootEl.getBoundingClientRect(),v={x:s-p.left,y:c-p.top},m=nl(this.transformModel.HtmlPointToCanvasPoint([v.x,v.y]),2);return{domOverlayPosition:v,canvasOverlayPosition:{x:m[0],y:m[1]}}}},{key:"isElementInArea",value:function(i,s,c){var p=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],v=!(arguments.length>4&&arguments[4]!==void 0)||arguments[4];if(i.BaseType===Jn.NODE){for(var m=no(i=i),x=m.minX,j=m.minY,D=m.maxX,I=m.maxY,K=[{x,y:j},{x:D,y:j},{x:D,y:I},{x,y:I}],re=v,oe=0;oe<K.length;oe++){var he=K[oe],ye=he.x,Ee=he.y,Re=this.transformModel.CanvasPointToHtmlPoint([ye,Ee]),Qe=nl(Re,2);if(ye=Qe[0],Ee=Qe[1],yf([ye,Ee],s,c)!==v){re=!v;break}}return re}if(i.BaseType===Jn.EDGE){var Ze=i=i,_t=Ze.startPoint,qe=Ze.endPoint,ht=this.transformModel.CanvasPointToHtmlPoint([_t.x,_t.y]),rt=this.transformModel.CanvasPointToHtmlPoint([qe.x,qe.y]),tn=yf(ht,s,c),un=yf(rt,s,c);return p?tn&&un:tn||un}return!1}},{key:"graphDataToModel",value:function(i){var s=this;if(this.width&&this.height||this.resize(),!i)return this.nodes=[],void(this.edges=[]);i.nodes?this.nodes=hs(i.nodes,function(c){return s.getModelAfterSnapToGrid(c)}):this.nodes=[],i.edges?this.edges=hs(i.edges,function(c){var p=s.getModel(c.type);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(c.type,"\u5BF9\u5E94\u7684\u8FB9\u3002"));return new p(c,s)}):this.edges=[]}},{key:"modelToGraphData",value:function(){var i=[];this.edges.forEach(function(c){var p=c.getData();p&&!c.virtual&&i.push(p)});var s=[];return this.nodes.forEach(function(c){var p=c.getData();p&&!c.virtual&&s.push(p)}),{nodes:s,edges:i}}},{key:"modelToHistoryData",value:function(){for(var i=!1,s=[],c=0;c<this.nodes.length;c++){var p=this.nodes[c];if(p.isDragging){i=!0;break}s.push(p.getHistoryData())}if(i)return!1;for(var v=!1,m=[],x=0;x<this.edges.length;x++){var j=this.edges[x];if(j.isDragging){v=!0;break}m.push(j.getHistoryData())}return!v&&{nodes:s,edges:m}}},{key:"getEdgeModelById",value:function(i){var s;return(s=this.edgesMap[i])===null||s===void 0?void 0:s.model}},{key:"getElement",value:function(i){return this.modelsMap[i]}},{key:"getNodeEdges",value:function(i){for(var s=[],c=0;c<this.edges.length;c++){var p=this.edges[c],v=this.edges[c].sourceNodeId===i,m=this.edges[c].targetNodeId===i;(v||m)&&s.push(p)}return s}},{key:"getSelectElements",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],s=this.selectElements,c={nodes:[],edges:[]};return s.forEach(function(p){if(p.BaseType===Jn.NODE&&c.nodes.push(p.getData()),p.BaseType===Jn.EDGE){var v=p.getData(),m=s.get(v.sourceNodeId)&&s.get(v.targetNodeId);(i||m)&&c.edges.push(v)}}),c}},{key:"updateAttributes",value:function(i,s){this.getElement(i).updateAttributes(s)}},{key:"changeNodeId",value:function(i,s){return s||(s=Ji()),this.nodesMap[s]?"":this.nodesMap[i]?(this.edges.forEach(function(c){c.sourceNodeId===i&&(c.sourceNodeId=s),c.targetNodeId===i&&(c.targetNodeId=s)}),this.nodesMap[i].model.id=s,this.nodesMap[s]=this.nodesMap[i],s):""}},{key:"changeEdgeId",value:function(i,s){return s||(s=Ji()),this.edgesMap[s]?"":this.edgesMap[i]?(this.edges.forEach(function(c){c.id===i&&c.changeEdgeId(s)}),s):""}},{key:"setFakerNode",value:function(i){this.fakerNode=i}},{key:"removeFakerNode",value:function(){this.fakerNode=null}},{key:"setModel",value:function(i,s){return this.modelMap.set(i,s)}},{key:"toFront",value:function(i){var s,c,p,v=((s=this.nodesMap[i])===null||s===void 0?void 0:s.model)||((c=this.edgesMap[i])===null||c===void 0?void 0:c.model);v&&(this.overlapMode===$n.DEFAULT&&((p=this.topElement)===null||p===void 0||p.setZIndex(),v.setZIndex(9999),this.topElement=v),this.overlapMode===$n.INCREASE&&this.setElementZIndex(i,"top"))}},{key:"setElementZIndex",value:function(i,s){var c,p,v,m=((c=this.nodesMap[i])===null||c===void 0?void 0:c.model)||((p=this.edgesMap[i])===null||p===void 0?void 0:p.model);m&&(typeof s=="number"&&(v=s),s==="top"&&(v=If()),s==="bottom"&&(v=--fv),m.setZIndex(v))}},{key:"deleteNode",value:function(i){var s=this.nodesMap[i].model.getData();this.deleteEdgeBySource(i),this.deleteEdgeByTarget(i),this.nodes.splice(this.nodesMap[i].index,1),this.eventCenter.emit(dt.NODE_DELETE,{data:s})}},{key:"addNode",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt.NODE_ADD,c=arguments.length>2?arguments[2]:void 0,p=Or(i);p.id&&this.nodesMap[i.id]&&delete p.id;var v=this.getModelAfterSnapToGrid(p);this.nodes.push(v);var m=v.getData(),x={data:m};return c&&(x.e=c),this.eventCenter.emit(s,x),v}},{key:"getModelAfterSnapToGrid",value:function(i){var s=this.getModel(i.type);if(!s)throw new Error("\u627E\u4E0D\u5230".concat(i.type,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var c=i.x,p=i.y;return c&&p&&(i.x=qi(c,this.gridSize),i.y=qi(p,this.gridSize),uh(i.text)==="object"&&(i.text.x+=i.x-c,i.text.y+=i.y-p)),new s(i,this)}},{key:"cloneNode",value:function(i){var s=this.getNodeModelById(i),c=s.getData();c.x+=30,c.y+=30,delete c.id,c.text&&(c.text.x+=30,c.text.y+=30);var p=this.addNode(c);return p.setSelected(!0),s.setSelected(!1),p.getData()}},{key:"moveNode",value:function(i,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[i];if(v){var m=v.model,x=m.getMoveDistance(s,c,p),j=nl(x,2);s=j[0],c=j[1],this.moveEdge(i,s,c)}}},{key:"moveNode2Coordinate",value:function(i,s,c){var p=arguments.length>3&&arguments[3]!==void 0&&arguments[3],v=this.nodesMap[i];if(v){var m=v.model,x=m.x,j=m.y,D=s-x,I=c-j;this.moveNode(i,D,I,p)}}},{key:"editText",value:function(i){this.setElementStateById(i,gn.TEXT_EDIT)}},{key:"addEdge",value:function(i){var s=Or(i),c=s.type;c||(c=this.edgeType),s.id&&this.edgesMap[s.id]&&delete s.id;var p=this.getModel(c);if(!p)throw new Error("\u627E\u4E0D\u5230".concat(c,"\u5BF9\u5E94\u7684\u8FB9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8FB9\u3002"));var v=new p(ah(ah({},s),{},{type:c}),this),m=v.getData();return this.edges.push(v),this.eventCenter.emit(dt.EDGE_ADD,{data:m}),v}},{key:"moveEdge",value:function(i,s,c){for(var p=0;p<this.edges.length;p++){var v=this.edges[p],m=v.textPosition,x=m.x,j=m.y,D=this.edges[p].sourceNodeId===i,I=this.edges[p].targetNodeId===i;D&&v.moveStartPoint(s,c),I&&v.moveEndPoint(s,c),(D||I)&&this.handleEdgeTextMove(v,x,j)}}},{key:"handleEdgeTextMove",value:function(i,s,c){var p;if(i.customTextPosition===!0)i.resetTextPosition();else if(i.modelType===Zt.POLYLINE_EDGE&&(p=i.text)!==null&&p!==void 0&&p.value){var v=i.text,m=Qf(v,i.points);i.moveText(m.x-v.x,m.y-v.y)}else{var x=i.textPosition,j=x.x,D=x.y;i.moveText(j-s,D-c)}}},{key:"deleteEdgeBySourceAndTarget",value:function(i,s){for(var c=0;c<this.edges.length;c++)if(this.edges[c].sourceNodeId===i&&this.edges[c].targetNodeId===s){var p=this.edges[c].getData();this.edges.splice(c,1),c--,this.eventCenter.emit(dt.EDGE_DELETE,{data:p})}}},{key:"deleteEdgeById",value:function(i){if(this.edgesMap[i]){var s=this.edgesMap[i].index,c=this.edgesMap[i].model.getData();this.edges.splice(s,1),this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeBySource",value:function(i){for(var s=0;s<this.edges.length;s++)if(this.edges[s].sourceNodeId===i){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"deleteEdgeByTarget",value:function(i){for(var s=0;s<this.edges.length;s++)if(this.edges[s].targetNodeId===i){var c=this.edges[s].getData();this.edges.splice(s,1),s--,this.eventCenter.emit(dt.EDGE_DELETE,{data:c})}}},{key:"setElementStateById",value:function(i,s,c){this.nodes.forEach(function(p){p.id===i?p.setElementState(s,c):p.setElementState(gn.DEFAULT)}),this.edges.forEach(function(p){p.id===i?p.setElementState(s,c):p.setElementState(gn.DEFAULT)})}},{key:"updateText",value:function(i,s){this.nodes.forEach(function(c){c.id===i&&c.updateText(s)}),this.edges.forEach(function(c){c.id===i&&c.updateText(s)})}},{key:"selectNodeById",value:function(i){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.nodesMap[i])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectEdgeById",value:function(i){var s,c=arguments.length>1&&arguments[1]!==void 0&&arguments[1];c||this.clearSelectElements();var p=(s=this.edgesMap[i])===null||s===void 0?void 0:s.model;p==null||p.setSelected(!0)}},{key:"selectElementById",value:function(i){var s=arguments.length>1&&arguments[1]!==void 0&&arguments[1];s||this.clearSelectElements();var c=this.getElement(i);c==null||c.setSelected(!0)}},{key:"clearSelectElements",value:function(){var i;this.selectElements.forEach(function(s){s==null||s.setSelected(!1)}),this.selectElements.clear(),this.overlapMode===$n.DEFAULT&&((i=this.topElement)===null||i===void 0||i.setZIndex())}},{key:"moveNodes",value:function(i,s,c){for(var p=this,v=arguments.length>3&&arguments[3]!==void 0&&arguments[3],m=i.reduce(function(Ze,_t){var qe=p.nodesMap[_t].model.getMoveDistance(s,c,v);return Ze[_t]=qe,Ze},{}),x=0;x<this.edges.length;x++){var j=this.edges[x],D=j.textPosition,I=D.x,K=D.y,re=m[j.sourceNodeId],oe=m[j.targetNodeId],he=void 0,ye=void 0;if(re&&oe&&j.modelType===Zt.POLYLINE_EDGE){var Ee=nl(re,2);he=Ee[0],ye=Ee[1],j.updatePointsList(he,ye)}else{if(re){var Re=nl(re,2);he=Re[0],ye=Re[1],j.moveStartPoint(he,ye)}if(oe){var Qe=nl(oe,2);he=Qe[0],ye=Qe[1],j.moveEndPoint(he,ye)}}(re||oe)&&this.handleEdgeTextMove(j,I,K)}}},{key:"addNodeMoveRules",value:function(i){this.nodeMoveRules.includes(i)||this.nodeMoveRules.push(i)}},{key:"setDefaultEdgeType",value:function(i){this.edgeType=i}},{key:"changeNodeType",value:function(i,s){var c=this.getNodeModelById(i);if(c){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));var m=new v(p,this);this.nodes.splice(this.nodesMap[i].index,1,m),this.getNodeEdges(i).forEach(function(x){if(x.sourceNodeId===i){var j=Id(m,x.startPoint,m.width,m.height);x.updateStartPoint(j)}if(x.targetNodeId===i){var D=Id(m,x.endPoint,m.width,m.height);x.updateEndPoint(D)}})}}},{key:"changeEdgeType",value:function(i,s){var c=this.getEdgeModelById(i);if(c&&c.type!==s){var p=c.getData();p.type=s;var v=this.getModel(s);if(!v)throw new Error("\u627E\u4E0D\u5230".concat(s,"\u5BF9\u5E94\u7684\u8282\u70B9\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5DF2\u6CE8\u518C\u6B64\u7C7B\u578B\u8282\u70B9\u3002"));delete p.pointsList;var m=new v(p,this);this.edges.splice(this.edgesMap[i].index,1,m)}}},{key:"getNodeIncomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.targetNodeId===i&&s.push(c)}),s}},{key:"getNodeOutgoingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.sourceNodeId===i&&s.push(c)}),s}},{key:"getAnchorIncomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.targetAnchorId===i&&s.push(c)}),s}},{key:"getAnchorOutcomingEdge",value:function(i){var s=[];return this.edges.forEach(function(c){c.sourceAnchorId===i&&s.push(c)}),s}},{key:"getNodeIncomingNode",value:function(i){var s=this,c=[];return this.edges.forEach(function(p){p.targetNodeId===i&&c.push(s.nodesMap[p.sourceNodeId].model)}),c}},{key:"getNodeOutgoingNode",value:function(i){var s=this,c=[];return this.edges.forEach(function(p){p.sourceNodeId===i&&c.push(s.nodesMap[p.targetNodeId].model)}),c}},{key:"setTheme",value:function(i){this.theme=hc(ah(ah({},this.theme),i))}},{key:"resize",value:function(i,s){this.width=i||this.rootEl.getBoundingClientRect().width,this.height=s||this.rootEl.getBoundingClientRect().height,!this.width||this.height}},{key:"clearData",value:function(){this.nodes=[],this.edges=[]}},{key:"getVirtualRectSize",value:function(){var i=this.nodes,s=[],c=[];i.forEach(function(D){var I=D.x,K=D.y,re=D.width,oe=D.height,he=D.getNodeStyle().strokeWidth,ye=he===void 0?0:he,Ee=I+re/2+ye,Re=I-re/2-ye,Qe=K+oe/2+ye,Ze=K-oe/2-ye;s=s.concat([Ee,Re].filter(function(_t){return!Number.isNaN(_t)})),c=c.concat([Qe,Ze].filter(function(_t){return!Number.isNaN(_t)}))});var p=Math.min.apply(Math,rl(s)),v=Math.max.apply(Math,rl(s)),m=Math.min.apply(Math,rl(c)),x=v-p||0,j=Math.max.apply(Math,rl(c))-m||0;return{virtualRectWidth:x,virtualRectHeight:j,virtualRectCenterPositionX:p+x/2,virtualRectCenterPositionY:m+j/2}}},{key:"translateCenter",value:function(){var i=this.nodes,s=this.width,c=this.height,p=this.rootEl,v=this.transformModel;if(i.length){var m=s||p.clientWidth,x=c||p.clientHeight,j=this.getVirtualRectSize(),D=j.virtualRectCenterPositionX,I=j.virtualRectCenterPositionY;v.focusOn(D,I,m,x)}}},{key:"fitView",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:20,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:20,c=this.nodes,p=this.width,v=this.height,m=this.rootEl,x=this.transformModel;if(c.length){var j=p||m.clientWidth,D=v||m.clientHeight,I=this.getVirtualRectSize(),K=I.virtualRectWidth,re=I.virtualRectHeight,oe=I.virtualRectCenterPositionX,he=I.virtualRectCenterPositionY,ye=(K+s)/j,Ee=(re+i)/D,Re=0;Re=1/Math.max(ye,Ee);var Qe=[j/2,D/2];x.zoom(Re,Qe),x.focusOn(oe,he,j,D)}}},{key:"openEdgeAnimation",value:function(i){this.getEdgeModelById(i).openEdgeAnimation()}},{key:"closeEdgeAnimation",value:function(i){this.getEdgeModelById(i).closeEdgeAnimation()}}],r&&vS(e.prototype,r),t}(),Do=wt(me.prototype,"width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ur=wt(me.prototype,"height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ri=wt(me.prototype,"edgeType",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ti=wt(me.prototype,"nodes",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Su=wt(me.prototype,"edges",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Cc=wt(me.prototype,"overlapMode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return $n.DEFAULT}}),La=wt(me.prototype,"background",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),oa=wt(me.prototype,"transformModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),up=wt(me.prototype,"editConfigModel",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),cp=wt(me.prototype,"gridSize",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),Rc=wt(me.prototype,"partial",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),tl=wt(me.prototype,"fakerNode",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),wt(me.prototype,"nodesMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"nodesMap"),me.prototype),wt(me.prototype,"edgesMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"edgesMap"),me.prototype),wt(me.prototype,"modelsMap",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"modelsMap"),me.prototype),wt(me.prototype,"sortElements",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"sortElements"),me.prototype),wt(me.prototype,"textEditElement",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"textEditElement"),me.prototype),wt(me.prototype,"selectElements",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"selectElements"),me.prototype),wt(me.prototype,"selectNodes",[h.m],Object.getOwnPropertyDescriptor(me.prototype,"selectNodes"),me.prototype),wt(me.prototype,"setFakerNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setFakerNode"),me.prototype),wt(me.prototype,"removeFakerNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"removeFakerNode"),me.prototype),wt(me.prototype,"setModel",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setModel"),me.prototype),wt(me.prototype,"toFront",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"toFront"),me.prototype),wt(me.prototype,"setElementZIndex",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setElementZIndex"),me.prototype),wt(me.prototype,"deleteNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteNode"),me.prototype),wt(me.prototype,"addNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"addNode"),me.prototype),wt(me.prototype,"cloneNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"cloneNode"),me.prototype),wt(me.prototype,"moveNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNode"),me.prototype),wt(me.prototype,"moveNode2Coordinate",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNode2Coordinate"),me.prototype),wt(me.prototype,"editText",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"editText"),me.prototype),wt(me.prototype,"addEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"addEdge"),me.prototype),wt(me.prototype,"moveEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveEdge"),me.prototype),wt(me.prototype,"deleteEdgeBySourceAndTarget",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeBySourceAndTarget"),me.prototype),wt(me.prototype,"deleteEdgeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeById"),me.prototype),wt(me.prototype,"deleteEdgeBySource",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeBySource"),me.prototype),wt(me.prototype,"deleteEdgeByTarget",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"deleteEdgeByTarget"),me.prototype),wt(me.prototype,"setElementStateById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setElementStateById"),me.prototype),wt(me.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"updateText"),me.prototype),wt(me.prototype,"selectNodeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectNodeById"),me.prototype),wt(me.prototype,"selectEdgeById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectEdgeById"),me.prototype),wt(me.prototype,"selectElementById",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"selectElementById"),me.prototype),wt(me.prototype,"clearSelectElements",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"clearSelectElements"),me.prototype),wt(me.prototype,"moveNodes",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"moveNodes"),me.prototype),wt(me.prototype,"setDefaultEdgeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setDefaultEdgeType"),me.prototype),wt(me.prototype,"changeNodeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"changeNodeType"),me.prototype),wt(me.prototype,"changeEdgeType",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"changeEdgeType"),me.prototype),wt(me.prototype,"getNodeIncomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeIncomingEdge"),me.prototype),wt(me.prototype,"getNodeOutgoingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeOutgoingEdge"),me.prototype),wt(me.prototype,"getAnchorIncomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getAnchorIncomingEdge"),me.prototype),wt(me.prototype,"getAnchorOutcomingEdge",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getAnchorOutcomingEdge"),me.prototype),wt(me.prototype,"getNodeIncomingNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeIncomingNode"),me.prototype),wt(me.prototype,"getNodeOutgoingNode",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"getNodeOutgoingNode"),me.prototype),wt(me.prototype,"setTheme",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"setTheme"),me.prototype),wt(me.prototype,"resize",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"resize"),me.prototype),wt(me.prototype,"clearData",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"clearData"),me.prototype),wt(me.prototype,"translateCenter",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"translateCenter"),me.prototype),wt(me.prototype,"fitView",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"fitView"),me.prototype),wt(me.prototype,"openEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"openEdgeAnimation"),me.prototype),wt(me.prototype,"closeEdgeAnimation",[h.k],Object.getOwnPropertyDescriptor(me.prototype,"closeEdgeAnimation"),me.prototype),me),gS=O0;function _v(t){return _v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_v(t)}function Ov(){return Ov=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ov.apply(this,arguments)}function bS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function wv(t,e){return wv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},wv(t,e)}function mS(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=ch(t);if(e){var s=ch(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return _S(this,r)}}function _S(t,e){if(e&&(_v(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ua(t)}function ua(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ch(t){return ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ch(t)}function Ba(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w0,OS=Ci(m0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&wv(c,p)})(s,t);var e,r,i=mS(s);function s(c){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Ba(ua(p=i.call(this)),"stepDrag",void 0),Ba(ua(p),"stepScrollX",0),Ba(ua(p),"stepScrollY",0),Ba(ua(p),"onDragging",function(j){var D=j.deltaX,I=j.deltaY;p.setState({isDragging:!0});var K=p.props.graphModel,re=K.transformModel;K.editConfigModel.stopMoveGraph!==!0&&re.translate(D,I)}),Ba(ua(p),"onDragEnd",function(){p.setState({isDragging:!1})}),Ba(ua(p),"zoomHandler",function(j){var D=p.props,I=D.graphModel,K=I.editConfigModel,re=I.transformModel,oe=I.gridSize,he=D.graphModel,ye=j.deltaX,Ee=j.deltaY;if(K.stopScrollGraph||j.ctrlKey===!0){if(!K.stopZoomGraph){j.preventDefault();var Re=he.getPointByClient({x:j.clientX,y:j.clientY}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y;re.zoom(j.deltaY<0,[Qe,Ze])}}else{if(j.preventDefault(),p.stepScrollX+=ye,p.stepScrollY+=Ee,Math.abs(p.stepScrollX)>=oe){var _t=p.stepScrollX%oe,qe=p.stepScrollX-_t;re.translate(-qe*re.SCALE_X,0),p.stepScrollX=_t}if(Math.abs(p.stepScrollY)>=oe){var ht=p.stepScrollY%oe,rt=p.stepScrollY-ht;re.translate(0,-rt*re.SCALE_Y),p.stepScrollY=ht}}}),Ba(ua(p),"clickHandler",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){var D=p.props.graphModel;D.selectElements.size>0&&D.clearSelectElements(),D.eventCenter.emit(dt.BLANK_CLICK,{e:j})}}),Ba(ua(p),"handleContextMenu",function(j){if(j.target.getAttribute("name")==="canvas-overlay"){j.preventDefault();var D=p.props.graphModel,I=D.getPointByClient({x:j.clientX,y:j.clientY});D.eventCenter.emit(dt.BLANK_CONTEXTMENU,{e:j,position:I})}}),Ba(ua(p),"mouseDownHandler",function(j){var D=p.props.graphModel,I=D.eventCenter,K=D.editConfigModel,re=D.transformModel.SCALE_X,oe=D.gridSize,he=j.target,ye=!K.adjustEdge&&!K.adjustNodePosition;(he.getAttribute("name")==="canvas-overlay"||ye)&&(K.stopMoveGraph!==!0?(p.stepDrag.setStep(oe*re),p.stepDrag.handleMouseDown(j)):I.emit(dt.BLANK_MOUSEDOWN,{e:j}),p.clickHandler(j))});var v=c.graphModel,m=v.gridSize,x=v.eventCenter;return p.stepDrag=new ni({onDragging:p.onDragging,onDragEnd:p.onDragEnd,step:m,eventType:"BLANK",isStopPropagation:!1,eventCenter:x,model:null}),p.state={isDragging:!1},p}return e=s,(r=[{key:"render",value:function(){var c=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props,v=p.children,m=p.dnd,x=this.state.isDragging;return Object(fe.g)("svg",Ov({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:x?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},m.eventMap()),Object(fe.g)("g",{transform:c},v))}}])&&bS(e.prototype,r),s}(fe.a))||m0;function xv(t){return xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xv(t)}function wS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ev(t,e){return Ev=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ev(t,e)}function ES(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=sh(t);if(e){var s=sh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return SS(this,r)}}function SS(t,e){if(e&&(xv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function sh(t){return sh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sh(t)}var jS=Ci(w0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ev(c,p)})(s,t);var e,r,i=ES(s);function s(){return wS(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"componentDidMount",value:function(){this.triggerToolRender()}},{key:"componentDidUpdate",value:function(){this.triggerToolRender()}},{key:"getTools",value:function(){var c=this.props,p=c.tool,v=c.graphModel,m=p.getTools().map(function(x){return Object(fe.g)(x,{graphModel:v,logicFlow:p.instance})});return p.components=m,m}},{key:"triggerToolRender",value:function(){var c=this.props,p=c.tool,v=c.graphModel,m=document.querySelector("#ToolOverlay_".concat(v.flowId)),x=p.getInstance();x.components.forEach(function(j){return j(x,m)}),x.components=[]}},{key:"render",value:function(){var c=this.props.graphModel;return Object(fe.g)("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(c.flowId)},this.getTools())}}])&&xS(e.prototype,r),s}(fe.a))||w0;function Sv(t){return Sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sv(t)}function PS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function AS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function jv(t,e){return jv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},jv(t,e)}function TS(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=lh(t);if(e){var s=lh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return MS(this,r)}}function MS(t,e){if(e&&(Sv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function lh(t){return lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lh(t)}var x0,kS=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&jv(c,p)})(s,t);var e,r,i=TS(s);function s(){return PS(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"render",value:function(){var c=this.props.background;return Object(fe.g)("div",{className:"lf-background"},Object(fe.g)("div",{style:c,className:"lf-background-area"}))}}])&&AS(e.prototype,r),s}(fe.a);function Pv(t){return Pv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pv(t)}function DS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function NS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Av(t,e){return Av=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Av(t,e)}function CS(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=fh(t);if(e){var s=fh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return RS(this,r)}}function RS(t,e){if(e&&(Pv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E0(t)}function E0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fh(t){return fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fh(t)}function IS(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var S0=Ci(x0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Av(c,p)})(s,t);var e,r,i=CS(s);function s(){var c;DS(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return IS(E0(c=i.call.apply(i,[this].concat(v))),"id",Ji()),c}return e=s,(r=[{key:"renderDot",value:function(){var c=this.props,p=c.config,v=p.color,m=p.thickness,x=m===void 0?2:m,j=c.size,D=c.visible,I=Math.min(Math.max(2,x),j/2),K=1;return D||(K=0),Object(fe.g)("rect",{width:I,height:I,rx:I/2,ry:I/2,fill:v,opacity:K})}},{key:"renderMesh",value:function(){var c=this.props,p=c.config,v=p.color,m=p.thickness,x=m===void 0?1:m,j=c.size,D=c.visible,I=Math.min(Math.max(1,x),j/2),K="M ".concat(j," 0 H0 M0 0 V0 ").concat(j),re=1;return D||(re=0),Object(fe.g)("path",{d:K,stroke:v,strokeWidth:I,opacity:re})}},{key:"render",value:function(){var c=this.props,p=c.type,v=c.size,m=c.graphModel.transformModel,x=[m.SCALE_X,m.SKEW_Y,m.SKEW_X,m.SCALE_Y,m.TRANSLATE_X,m.TRANSLATE_Y].join(","),j="matrix(".concat(x,")");return Object(fe.g)("div",{className:"lf-grid"},Object(fe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%"},Object(fe.g)("defs",null,Object(fe.g)("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:j,x:"0",y:"0",width:v,height:v},p==="dot"&&this.renderDot(),p==="mesh"&&this.renderMesh())),Object(fe.g)("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})))}}])&&NS(e.prototype,r),s}(fe.a))||x0;S0.defaultProps={size:20,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}},o(53);function Tv(t){return Tv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tv(t)}function LS(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return j0(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return j0(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var P0,ol=function(t){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return Object.entries(t).forEach(function(r){var i=LS(r,2),s=i[0],c=i[1];(s==="style"||Tv(c)!=="object")&&(e[s]=c)}),Object(fe.g)("line",e)};function Mv(t){return Mv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mv(t)}function A0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function ph(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?A0(Object(r),!0).forEach(function(i){BS(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function BS(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function kv(t,e){return kv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},kv(t,e)}function $S(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=dh(t);if(e){var s=dh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return WS(this,r)}}function WS(t,e){if(e&&(Mv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function dh(t){return dh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dh(t)}var T0,GS=Ci(P0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&kv(c,p)})(s,t);var e,r,i=$S(s);function s(){return zS(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"render",value:function(){var c=this.props.snaplineModel,p=c.position,v=c.isShowHorizontal,m=c.isShowVertical,x=c.getStyle(),j=p.x,D=j===void 0?0:j,I=p.y,K=I===void 0?0:I,re=ph(ph({x1:-1e5,y1:K,x2:1e5,y2:K},x),{},{stroke:v?x.stroke:"none"}),oe=ph(ph({x1:D,y1:-1e5,x2:D,y2:1e5},x),{},{stroke:m?x.stroke:"none"});return Object(fe.g)("g",{className:"lf-snapline"},Object(fe.g)(ol,re),Object(fe.g)(ol,oe))}}])&&FS(e.prototype,r),s}(fe.a))||P0;function Dv(t){return Dv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dv(t)}function US(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return M0(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return M0(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function M0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function ju(t){var e=t.x,r=t.y,i=t.width,s=t.height,c=t.className,p=t.radius,v=e-i/2,m=r-s/2,x={};return Object.entries(t).forEach(function(j){var D=US(j,2),I=D[0],K=D[1];Dv(K)!=="object"&&(x[I]=K)}),x.className=c?"lf-basic-shape ".concat(c):"lf-basic-shape",p&&(x.rx=p,x.ry=p),x.x=v,x.y=m,Object(fe.g)("rect",x)}function Nv(t){return Nv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nv(t)}function il(){return il=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},il.apply(this,arguments)}function k0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function D0(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?k0(Object(r),!0).forEach(function(i){HS(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k0(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function HS(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YS(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Cv(t,e){return Cv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cv(t,e)}function VS(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=hh(t);if(e){var s=hh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return KS(this,r)}}function KS(t,e){if(e&&(Nv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function hh(t){return hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hh(t)}ju.defaultProps={className:"",radius:""};var N0,qS=Ci(T0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Cv(c,p)})(s,t);var e,r,i=VS(s);function s(){return XS(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getNodesOutline",value:function(){var c=this.props.graphModel,p=c.nodes,v=c.editConfigModel,m=v.hoverOutline,x=v.nodeSelectedOutline,j=[];return p.forEach(function(D){if(D.isHovered||D.isSelected){var I=D.isHovered,K=D.isSelected,re=D.x,oe=D.y,he=D.width,ye=D.height;if(x&&K||m&&I){var Ee=D.getOutlineStyle(),Re={};if(Object.keys(Ee).forEach(function(Ze){Ze!=="hover"&&(Re[Ze]=Ee[Ze])}),I){var Qe=Ee.hover;Re=D0(D0({},Re),Qe)}j.push(Object(fe.g)(ju,il({transform:D.transform,className:"lf-outline-node",x:re,y:oe,width:he+10,height:ye+10},Re)))}}}),j}},{key:"getEdgeOutline",value:function(){for(var c=this.props.graphModel,p=c.edges,v=c.editConfigModel,m=v.edgeSelectedOutline,x=v.hoverOutline,j=[],D=0;D<p.length;D++){var I=p[D];(m&&I.isSelected||x&&I.isHovered)&&(I.modelType===Zt.LINE_EDGE?j.push(this.getLineOutline(I)):I.modelType===Zt.POLYLINE_EDGE?j.push(this.getPolylineOutline(I)):I.modelType===Zt.BEZIER_EDGE&&j.push(this.getBezierOutline(I)))}return j}},{key:"getLineOutline",value:function(c){var p=c.startPoint,v=c.endPoint,m=(p.x+v.x)/2,x=(p.y+v.y)/2,j=Math.abs(p.x-v.x)+10,D=Math.abs(p.y-v.y)+10,I=c.getOutlineStyle();return Object(fe.g)(ju,il({className:"lf-outline-edge",x:m,y:x,width:j,height:D},I))}},{key:"getPolylineOutline",value:function(c){var p=c.points,v=ra(p),m=na(v,8),x=m.x,j=m.y,D=m.width,I=m.height,K=c.getOutlineStyle();return Object(fe.g)(ju,il({className:"lf-outline",x,y:j,width:D,height:I},K))}},{key:"getBezierOutline",value:function(c){var p=c.path,v=Er(p),m=na(v,8),x=m.x,j=m.y,D=m.width,I=m.height,K=c.getOutlineStyle();return Object(fe.g)(ju,il({className:"lf-outline",x,y:j,width:D,height:I},K))}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-outline"},this.getNodesOutline(),this.getEdgeOutline())}}])&&YS(e.prototype,r),s}(fe.a))||T0;function Rv(t){return Rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rv(t)}function ZS(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return C0(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return C0(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function C0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function al(t){var e=t.x,r=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.r,p=c===void 0?4:c,v=t.className,m={cx:r,cy:s,r:p,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(t).forEach(function(x){var j=ZS(x,2),D=j[0],I=j[1];Rv(I)!=="object"&&(m[D]=I)}),m.className=v?"lf-basic-shape ".concat(v):"lf-basic-shape",Object(fe.g)("circle",m)}function Iv(t){return Iv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iv(t)}function JS(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return R0(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return R0(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function R0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function lp(){return lp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},lp.apply(this,arguments)}function I0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L0(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function B0(t,e,r){return e&&L0(t.prototype,e),r&&L0(t,r),t}function z0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lv(t,e)}function Lv(t,e){return Lv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lv(t,e)}function F0(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=vh(t);if(e){var s=vh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return QS(this,r)}}function QS(t,e){if(e&&(Iv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yh(t)}function yh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vh(t){return vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vh(t)}function Bv(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var $0,W0=function(t){z0(r,t);var e=F0(r);function r(){var i;return I0(this,r),Bv(yh(i=e.call(this)),"dragHandler",void 0),Bv(yh(i),"onDragging",function(s){var c=s.event,p=i.props,v=p.graphModel,m=p.bezierModel,x=p.type,j=v.getPointByClient({x:c.clientX,y:c.clientY}).canvasOverlayPosition,D=j.x,I=j.y;m.updateAdjustAnchor({x:D,y:I},x),v.eventCenter.emit(dt.EDGE_ADJUST,{data:m.getData()})}),Bv(yh(i),"onDragEnd",function(){i.props.bezierModel.isDragging=!1}),i.dragHandler=new ni({onDragging:i.onDragging,onDragEnd:i.onDragEnd}),i}return B0(r,[{key:"render",value:function(){var i=this,s=this.props.position,c=s.x,p=s.y,v=this.props.bezierModel.getEdgeStyle().adjustAnchor;return Object(fe.g)(al,lp({className:"lf-bezier-adjust-anchor",x:c,y:p},v,{onMouseDown:function(m){i.dragHandler.handleMouseDown(m)}}))}}]),r}(fe.a),ej=Ci(N0=function(t){z0(r,t);var e=F0(r);function r(){return I0(this,r),e.apply(this,arguments)}return B0(r,[{key:"getBezierAdjust",value:function(i,s){var c=i.path,p=i.id,v=JS(Er(c),4),m=v[0],x=v[1],j=v[2],D=v[3],I=i.getEdgeStyle().adjustLine,K=[];return K.push(Object(fe.g)(ol,lp({x1:m.x,y1:m.y,x2:x.x,y2:x.y},I))),K.push(Object(fe.g)(W0,{position:x,bezierModel:i,graphModel:s,key:"".concat(p,"_ePre"),type:"sNext"})),K.push(Object(fe.g)(ol,lp({x1:D.x,y1:D.y,x2:j.x,y2:j.y},I))),K.push(Object(fe.g)(W0,{position:j,bezierModel:i,graphModel:s,key:"".concat(p,"_sNext"),type:"ePre"})),K}},{key:"selectedBezierEdge",value:function(){for(var i=this.props.graphModel,s=i.edges,c=[],p=0;p<s.length;p++){var v=s[p];v.isSelected&&v.modelType===Zt.BEZIER_EDGE&&v.draggable&&c.push(this.getBezierAdjust(v,i))}return c}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-bezier-adjust"},this.selectedBezierEdge())}}]),r}(fe.a))||N0;function zv(t){return zv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zv(t)}function tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Fv(t,e){return Fv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fv(t,e)}function rj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=gh(t);if(e){var s=gh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return oj(this,r)}}function oj(t,e){if(e&&(zv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function gh(t){return gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gh(t)}var G0,ij=Ci($0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Fv(c,p)})(s,t);var e,r,i=rj(s);function s(){return tj(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"render",value:function(){var c=this.props.graphModel.transformModel.getTransformStyle().transform,p=this.props.children;return Object(fe.g)("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay"},Object(fe.g)("g",{transform:c},p))}}])&&nj(e.prototype,r),s}(fe.a))||$0;function $v(t){return $v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$v(t)}function Wv(){return Wv=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Wv.apply(this,arguments)}function aj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Gv(t,e){return Gv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Gv(t,e)}function cj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=bh(t);if(e){var s=bh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return sj(this,r)}}function sj(t,e){if(e&&($v(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function bh(t){return bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bh(t)}var lj=Ci(G0=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Gv(c,p)})(s,t);var e,r,i=cj(s);function s(){return aj(this,s),i.apply(this,arguments)}return e=s,r=[{key:"getComponent",value:function(c,p){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"canvas-overlay",m=this.props.getView,x=m(c.type);return Object(fe.g)(x,{key:c.id,model:c,graphModel:p,overlay:v})}},{key:"render",value:function(){var c=this,p=this.props,v=p.graphModel,m=p.tool,x=p.options,j=p.dnd,D=p.snaplineModel,I={};x.width&&(I.width="".concat(v.width,"px")),x.height&&(I.height="".concat(v.height,"px"));var K=x.grid,re=v.fakerNode,oe=v.editConfigModel.adjustEdge;return Object(fe.g)("div",{className:"lf-graph","flow-id":v.flowId,style:I},Object(fe.g)(OS,{graphModel:v,dnd:j},Object(fe.g)("g",{className:"lf-base"},hs(v.sortElements,function(he){return c.getComponent(he,v)})),re?this.getComponent(re,v):""),Object(fe.g)(ij,{graphModel:v},Object(fe.g)(qS,{graphModel:v}),oe?Object(fe.g)(ej,{graphModel:v}):"",x.snapline!==!1?Object(fe.g)(GS,{snaplineModel:D}):""),Object(fe.g)(jS,{graphModel:v,tool:m}),x.background&&Object(fe.g)(kS,{background:x.background}),x.grid&&Object(fe.g)(S0,Wv({},K,{graphModel:v})))}}],r&&uj(e.prototype,r),s}(fe.a))||G0,fj=lj;function U0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function mh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?U0(Object(r),!0).forEach(function(i){za(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U0(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function pj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function za(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var dj=function(){function t(i){var s=this;(function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")})(this,t),za(this,"nodeConfig",void 0),za(this,"lf",void 0),za(this,"fakerNode",void 0),za(this,"stopDrag",function(){s.nodeConfig=null,window.document.removeEventListener("mouseup",s.stopDrag)}),za(this,"dragEnter",function(p){s.nodeConfig&&!s.fakerNode&&(s.fakerNode=s.lf.createFakerNode(mh(mh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY}))))}),za(this,"onDragOver",function(p){if(p.preventDefault(),s.fakerNode){var v=s.clientToLocalPoint({x:p.clientX,y:p.clientY}),m=v.x,x=v.y;s.fakerNode.moveTo(m,x);var j=s.fakerNode.getData();s.lf.setNodeSnapLine(j),s.lf.graphModel.eventCenter.emit(dt.NODE_DND_DRAG,{data:j})}return!1}),za(this,"onDragLeave",function(){s.fakerNode&&(s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)}),za(this,"onDrop",function(p){s.lf.graphModel&&p&&s.nodeConfig&&(s.lf.addNode(mh(mh({},s.nodeConfig),s.clientToLocalPoint({x:p.clientX,y:p.clientY})),dt.NODE_DND_ADD,p),p.preventDefault(),p.stopPropagation(),s.nodeConfig=null,s.lf.removeNodeSnapLine(),s.lf.graphModel.removeFakerNode(),s.fakerNode=null)});var c=i.lf;this.lf=c}var e,r;return e=t,(r=[{key:"clientToLocalPoint",value:function(i){var s=i.x,c=i.y,p=cu(this.lf.options,["grid","size"]),v=this.lf.graphModel.getPointByClient({x:s,y:c}).canvasOverlayPosition,m=v.x,x=v.y;return{x:qi(m,p),y:qi(x,p)}}},{key:"startDrag",value:function(i){var s=this.lf.graphModel.editConfigModel;s!=null&&s.isSilentMode||(this.nodeConfig=i,window.document.addEventListener("mouseup",this.stopDrag))}},{key:"eventMap",value:function(){return{onMouseEnter:this.dragEnter,onMouseOver:this.dragEnter,onMouseMove:this.onDragOver,onMouseLeave:this.onDragLeave,onMouseUp:this.onDrop}}}])&&pj(e.prototype,r),t}();function H0(t){var e=t.container,r=t.grid,i=t.width,s=t.height;if(!e)throw new Error("\u8BF7\u68C0\u67E5 container \u53C2\u6570\u662F\u5426\u6709\u6548");if(typeof i=="string"||typeof s=="string")throw new Error("width\u6216height\u4E0D\u652F\u6301\u4F20\u5165\u5B57\u7B26\u4E32\uFF0C\u8BF7\u4F20\u6570\u5B57");return r&&(t.grid=ka({size:20,type:"dot",visible:!0,config:{color:"#ababab",thickness:1}},r)),ka({},Y0,t)}var mn,X0,Y0={background:!1,grid:!1,textEdit:!0,disabledTools:[]};function Uv(t){return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uv(t)}function Hv(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return V0(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return V0(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function V0(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function K0(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function _h(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?K0(Object(r),!0).forEach(function(i){q0(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function hj(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function yj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function vj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fp(){return fp=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=gj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},fp.apply(this,arguments)}function gj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Pu(t))!==null;);return t}function Xv(t,e){return Xv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Xv(t,e)}function bj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Pu(t);if(e){var s=Pu(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return mj(this,r)}}function mj(t,e){if(e&&(Uv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oh(t)}function Oh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pu(t){return Pu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pu(t)}function q0(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ki(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Yv=(mn=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Xv(c,p)})(s,t);var e,r,i=bj(s);function s(){var c;yj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return q0(Oh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.BEZIER_EDGE),hj(Oh(c),"path",X0,Oh(c)),c}return e=s,(r=[{key:"initEdgeData",value:function(c){this.offset=100,fp(Pu(s.prototype),"initEdgeData",this).call(this,c)}},{key:"getEdgeStyle",value:function(){var c=this.graphModel.theme.bezier;return _h(_h({},fp(Pu(s.prototype),"getEdgeStyle",this).call(this)),Ln(c))}},{key:"getTextPosition",value:function(){if(this.pointsList&&this.pointsList.length>0){var c=0,p=0;return this.pointsList.forEach(function(v){var m=v.x,x=v.y;c+=m,p+=x}),{x:c/this.pointsList.length,y:p/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 c=fp(Pu(s.prototype),"getData",this).call(this),p=this.pointsList.map(function(v){return{x:v.x,y:v.y}});return _h(_h({},c),{},{pointsList:p})}},{key:"getControls",value:function(){var c=this.startPoint,p=this.endPoint;return Zf({start:c,end:p,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset})}},{key:"getPath",value:function(c){var p=Hv(c,4),v=p[0],m=p[1],x=p[2],j=p[3];return"M ".concat(v.x," ").concat(v.y,`
- C `).concat(m.x," ").concat(m.y,`,
- `).concat(x.x," ").concat(x.y,`,
- `).concat(j.x," ").concat(j.y)}},{key:"initPoints",value:function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()}},{key:"updatePoints",value:function(){var c=this.getControls(),p=c.sNext,v=c.ePre;this.updatePath(p,v)}},{key:"updatePath",value:function(c,p){c=Ln(c),p=Ln(p);var v={x:this.startPoint.x,y:this.startPoint.y},m={x:this.endPoint.x,y:this.endPoint.y};if(!c||!p){var x=this.getControls();c=x.sNext,p=x.ePre}this.pointsList=[v,c,p,m],this.path=this.getPath(this.pointsList)}},{key:"updateStartPoint",value:function(c){this.startPoint=Object.assign({},c),this.updatePoints()}},{key:"updateEndPoint",value:function(c){this.endPoint=Object.assign({},c),this.updatePoints()}},{key:"moveStartPoint",value:function(c,p){this.startPoint.x+=c,this.startPoint.y+=p;var v=Hv(this.pointsList,3),m=v[1],x=v[2];m.x+=c,m.y+=p,this.updatePath(m,x)}},{key:"moveEndPoint",value:function(c,p){this.endPoint.x+=c,this.endPoint.y+=p;var v=Hv(this.pointsList,3),m=v[1],x=v[2];x.x+=c,x.y+=p,this.updatePath(m,x)}},{key:"updateAdjustAnchor",value:function(c,p){p==="sNext"?this.pointsList[1]=c:p==="ePre"&&(this.pointsList[2]=c),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 c=this.pointsList;return c[c.length-1]||this.endPoint}},{key:"updateAfterAdjustStartAndEnd",value:function(c){var p=c.startPoint,v=c.endPoint,m=c.sourceNode,x=c.targetNode,j=Zf({start:p,end:v,sourceNode:m,targetNode:x,offset:this.offset}),D=j.sNext,I=j.ePre;this.pointsList=[p,D,I,v],this.initPoints()}}])&&vj(e.prototype,r),s}(wu),X0=ki(mn.prototype,"path",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ki(mn.prototype,"initPoints",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"initPoints"),mn.prototype),ki(mn.prototype,"updatePoints",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updatePoints"),mn.prototype),ki(mn.prototype,"updateStartPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateStartPoint"),mn.prototype),ki(mn.prototype,"updateEndPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateEndPoint"),mn.prototype),ki(mn.prototype,"moveStartPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"moveStartPoint"),mn.prototype),ki(mn.prototype,"moveEndPoint",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"moveEndPoint"),mn.prototype),ki(mn.prototype,"updateAdjustAnchor",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateAdjustAnchor"),mn.prototype),ki(mn.prototype,"getAdjustStart",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"getAdjustStart"),mn.prototype),ki(mn.prototype,"getAdjustEnd",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"getAdjustEnd"),mn.prototype),ki(mn.prototype,"updateAfterAdjustStartAndEnd",[h.k],Object.getOwnPropertyDescriptor(mn.prototype,"updateAfterAdjustStartAndEnd"),mn.prototype),mn),Xe,Z0,J0,Q0,e_,t_,n_,r_,o_,i_,a_,u_,c_,s_,l_,f_,p_,d_,h_,y_,v_,g_,b_,_j=function(t){return t==null};function Oj(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||m_(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Vv(t){return Vv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vv(t)}function m_(t,e){if(t){if(typeof t=="string")return __(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?__(t,e):void 0}}function __(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function O_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function io(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?O_(Object(r),!0).forEach(function(i){_o(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):O_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function cr(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function wj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kt(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Fa,w_,$a=(Xe=function(){function t(i,s){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),_o(this,"id",""),cr(this,"type",Z0,this),cr(this,"x",J0,this),cr(this,"y",Q0,this),cr(this,"text",e_,this),cr(this,"properties",t_,this),cr(this,"_width",n_,this),cr(this,"_height",r_,this),cr(this,"anchorsOffset",o_,this),cr(this,"isSelected",i_,this),cr(this,"isHovered",a_,this),cr(this,"isShowAnchor",u_,this),cr(this,"isDragging",c_,this),cr(this,"isHitable",s_,this),cr(this,"draggable",l_,this),cr(this,"visible",f_,this),cr(this,"enableRotate",p_,this),_o(this,"virtual",!1),_o(this,"graphModel",void 0),cr(this,"zIndex",d_,this),cr(this,"state",h_,this),cr(this,"autoToFront",y_,this),cr(this,"style",v_,this),cr(this,"transform",g_,this),cr(this,"_rotate",b_,this),_o(this,"BaseType",Jn.NODE),_o(this,"modelType",Zt.NODE),_o(this,"additionStateData",void 0),_o(this,"targetRules",[]),_o(this,"sourceRules",[]),_o(this,"moveRules",[]),_o(this,"hasSetTargetRules",!1),_o(this,"hasSetSourceRules",!1),this.graphModel=s,this.initNodeData(i),this.setAttributes()}var e,r;return e=t,r=[{key:"width",get:function(){return this._width},set:function(i){this._width=i}},{key:"height",get:function(){return this._height},set:function(i){this._height=i}},{key:"rotate",get:function(){return this._rotate},set:function(i){this._rotate=i;var s=this.x,c=s===void 0?0:s,p=this.y,v=p===void 0?0:p;this.transform=new aa(-c,-v).rotate(i).translate(c,v).toString()}},{key:"incoming",get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}}},{key:"outgoing",get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}}},{key:"initNodeData",value:function(i){if(i.properties||(i.properties={}),!i.id){var s=this.graphModel.idGenerator,c=s&&s(i.type),p=this.createId();i.id=p||c||Ji()}this.formatText(i),mr(this,function(v){return bi(v,["id","type","x","y","text","properties","virtual","rotate"])}(i)),this.graphModel.overlapMode===$n.INCREASE&&(this.zIndex=i.zIndex||If())}},{key:"setAttributes",value:function(){}},{key:"createId",value:function(){return null}},{key:"formatText",value:function(i){i.text||(i.text={value:"",x:i.x,y:i.y,draggable:!1,editable:!0}),i.text&&typeof i.text=="string"?i.text={value:i.text,x:i.x,y:i.y,draggable:!1,editable:!0}:i.text&&i.text.editable===void 0&&(i.text.editable=!0)}},{key:"getData",value:function(){var i=this.text,s=i.x,c=i.y,p=i.value,v=this.properties;Object(h.x)(v)&&(v=Object(h.I)(v));var m={id:this.id,type:this.type,x:this.x,y:this.y,properties:v};return this.rotate&&(m.rotate=this.rotate),this.graphModel.overlapMode===$n.INCREASE&&(m.zIndex=this.zIndex),p&&(m.text={x:s,y:c,value:p}),m}},{key:"getHistoryData",value:function(){return this.getData()}},{key:"getProperties",value:function(){return Object(h.I)(this.properties)}},{key:"getOuterGAttributes",value:function(){return{className:""}}},{key:"getNodeStyle",value:function(){return io(io({},this.graphModel.theme.baseNode),this.style)}},{key:"getTextStyle",value:function(){var i=this.graphModel.theme.nodeText;return Ln(i)}},{key:"getRotateControlStyle",value:function(){var i=this.graphModel.theme.rotateControl;return Ln(i)}},{key:"getAnchorStyle",value:function(i){var s=this.graphModel.theme.anchor;return Ln(s)}},{key:"getAnchorLineStyle",value:function(i){var s=this.graphModel.theme.anchorLine;return Ln(s)}},{key:"getOutlineStyle",value:function(){var i=this.graphModel.theme.outline;return Ln(i)}},{key:"isAllowConnectedAsSource",value:function(i,s,c,p){var v=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var m,x=!0,j=0;j<v.length;j++){var D=v[j];if(!D.validate.call(this,this,i,s,c,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"getConnectedSourceRules",value:function(){return this.sourceRules}},{key:"isAllowConnectedAsTarget",value:function(i,s,c,p){var v=this.hasSetTargetRules?this.targetRules:this.getConnectedTargetRules();this.hasSetTargetRules=!0;for(var m,x=!0,j=0;j<v.length;j++){var D=v[j];if(!D.validate.call(this,i,this,s,c,p)){x=!1,m=D.message;break}}return{isAllPass:x,msg:m}}},{key:"isAllowMoveNode",value:function(i,s){var c,p=!0,v=!0,m=function(D,I){var K=typeof Symbol!="undefined"&&D[Symbol.iterator]||D["@@iterator"];if(!K){if(Array.isArray(D)||(K=m_(D))||I&&D&&typeof D.length=="number"){K&&(D=K);var re=0,oe=function(){};return{s:oe,n:function(){return re>=D.length?{done:!0}:{done:!1,value:D[re++]}},e:function(Re){throw Re},f:oe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var he,ye=!0,Ee=!1;return{s:function(){K=K.call(D)},n:function(){var Re=K.next();return ye=Re.done,Re},e:function(Re){Ee=!0,he=Re},f:function(){try{ye||K.return==null||K.return()}finally{if(Ee)throw he}}}}(this.moveRules.concat(this.graphModel.nodeMoveRules));try{for(m.s();!(c=m.n()).done;){var x=(0,c.value)(this,i,s);if(!x)return!1;if(Vv(x)==="object"){var j=x;if(j.x===!1&&j.y===!1)return!1;p=p&&j.x,v=v&&j.y}}}catch(D){m.e(D)}finally{m.f()}return{x:p,y:v}}},{key:"getConnectedTargetRules",value:function(){return this.targetRules}},{key:"getAnchorsByOffset",value:function(){var i=this.anchorsOffset,s=this.id,c=this.x,p=this.y;return i&&i.length>0?i.map(function(v,m){return v.length?(v=v,{id:"".concat(s,"_").concat(m),x:c+v[0],y:p+v[1]}):io(io({},v=v),{},{x:c+v.x,y:p+v.y,id:v.id||"".concat(s,"_").concat(m)})}):this.getDefaultAnchor()}},{key:"getDefaultAnchor",value:function(){return[]}},{key:"getTargetAnchor",value:function(i){return function(s,c){for(var p,v=Hr(c),m=Number.MAX_SAFE_INTEGER,x=0;x<v.length;x++){var j=ko(s.x,s.y,v[x].x,v[x].y);j<m&&(m=j,p={index:x,anchor:Ef(Ef({},v[x]),{},{x:v[x].x,y:v[x].y,id:v[x].id})})}return p}(i,this)}},{key:"getBounds",value:function(){return{x1:this.x-this.width/2,y1:this.y-this.height/2,x2:this.x+this.width/2,y2:this.y+this.height/2}}},{key:"anchors",get:function(){var i=this.getAnchorsByOffset(),s=this.x,c=this.y,p=this.rotate;return i.forEach(function(v){var m=v.x,x=v.y,j=Oj(new ia([m,x,1]).translate(-s,-c).rotate(p).translate(s,c)[0],2),D=j[0],I=j[1];v.x=D,v.y=I}),i}},{key:"getAnchorInfo",value:function(i){if(!_j(i))for(var s=0;s<this.anchors.length;s++){var c=this.anchors[s];if(c.id===i)return c}}},{key:"addNodeMoveRules",value:function(i){this.moveRules.includes(i)||this.moveRules.push(i)}},{key:"move",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1;if(c)p=!0,v=!0;else{var m=this.isAllowMoveNode(i,s);typeof m=="boolean"?(p=m,v=m):(p=m.x,v=m.y)}if(p){var x=this.x+i;this.x=x,this.text&&this.moveText(i,0)}if(v){var j=this.y+s;this.y=j,this.text&&this.moveText(0,s)}return p||v}},{key:"getMoveDistance",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=!1,v=!1,m=0,x=0;if(c)p=!0,v=!0;else{var j=this.isAllowMoveNode(i,s);typeof j=="boolean"?(p=j,v=j):(p=j.x,v=j.y)}if(p&&i){var D=this.x+i;this.x=D,this.text&&this.moveText(i,0),m=i}if(v&&s){var I=this.y+s;this.y=I,this.text&&this.moveText(0,s),x=s}return[m,x]}},{key:"moveTo",value:function(i,s){var c=arguments.length>2&&arguments[2]!==void 0&&arguments[2],p=i-this.x,v=s-this.y;return!(!c&&!this.isAllowMoveNode(p,v)||(this.text&&this.text&&this.moveText(p,v),this.x=i,this.y=s,0))}},{key:"moveText",value:function(i,s){var c=this.text,p=c.x,v=c.y,m=c.value,x=c.draggable,j=c.editable;this.text={value:m,editable:j,draggable:x,x:p+i,y:v+s}}},{key:"updateText",value:function(i){this.text=io(io({},Object(h.I)(this.text)),{},{value:i})}},{key:"setSelected",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isSelected=i}},{key:"setHovered",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHovered=i,this.setIsShowAnchor(i)}},{key:"setIsShowAnchor",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isShowAnchor=i}},{key:"setEnableRotate",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.enableRotate=i}},{key:"setHitable",value:function(){var i=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];this.isHitable=i}},{key:"setElementState",value:function(i,s){this.state=i,this.additionStateData=s}},{key:"setProperty",value:function(i,s){this.properties=io(io({},Object(h.I)(this.properties)),{},_o({},i,Or(s))),this.setAttributes()}},{key:"setProperties",value:function(i){this.properties=io(io({},Object(h.I)(this.properties)),Or(i)),this.setAttributes()}},{key:"deleteProperty",value:function(i){delete this.properties[i],this.setAttributes()}},{key:"setStyle",value:function(i,s){this.style=io(io({},this.style),{},_o({},i,Or(s)))}},{key:"setStyles",value:function(i){this.style=io(io({},this.style),Or(i))}},{key:"updateStyles",value:function(i){this.style=io({},Or(i))}},{key:"setZIndex",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.zIndex=i}},{key:"updateAttributes",value:function(i){mr(this,i)}}],r&&wj(e.prototype,r),t}(),Z0=Kt(Xe.prototype,"type",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),J0=Kt(Xe.prototype,"x",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Q0=Kt(Xe.prototype,"y",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),e_=Kt(Xe.prototype,"text",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{value:"",x:0,y:0,draggable:!1,editable:!0}}}),t_=Kt(Xe.prototype,"properties",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),n_=Kt(Xe.prototype,"_width",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 100}}),r_=Kt(Xe.prototype,"_height",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 80}}),o_=Kt(Xe.prototype,"anchorsOffset",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),i_=Kt(Xe.prototype,"isSelected",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),a_=Kt(Xe.prototype,"isHovered",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),u_=Kt(Xe.prototype,"isShowAnchor",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),c_=Kt(Xe.prototype,"isDragging",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),s_=Kt(Xe.prototype,"isHitable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),l_=Kt(Xe.prototype,"draggable",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),f_=Kt(Xe.prototype,"visible",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),p_=Kt(Xe.prototype,"enableRotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),d_=Kt(Xe.prototype,"zIndex",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),h_=Kt(Xe.prototype,"state",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 1}}),y_=Kt(Xe.prototype,"autoToFront",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),v_=Kt(Xe.prototype,"style",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),g_=Kt(Xe.prototype,"transform",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),b_=Kt(Xe.prototype,"_rotate",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),Kt(Xe.prototype,"incoming",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"incoming"),Xe.prototype),Kt(Xe.prototype,"outgoing",[h.m],Object.getOwnPropertyDescriptor(Xe.prototype,"outgoing"),Xe.prototype),Kt(Xe.prototype,"addNodeMoveRules",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"addNodeMoveRules"),Xe.prototype),Kt(Xe.prototype,"move",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"move"),Xe.prototype),Kt(Xe.prototype,"getMoveDistance",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"getMoveDistance"),Xe.prototype),Kt(Xe.prototype,"moveTo",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveTo"),Xe.prototype),Kt(Xe.prototype,"moveText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"moveText"),Xe.prototype),Kt(Xe.prototype,"updateText",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateText"),Xe.prototype),Kt(Xe.prototype,"setSelected",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setSelected"),Xe.prototype),Kt(Xe.prototype,"setHovered",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHovered"),Xe.prototype),Kt(Xe.prototype,"setIsShowAnchor",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setIsShowAnchor"),Xe.prototype),Kt(Xe.prototype,"setEnableRotate",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setEnableRotate"),Xe.prototype),Kt(Xe.prototype,"setHitable",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setHitable"),Xe.prototype),Kt(Xe.prototype,"setElementState",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setElementState"),Xe.prototype),Kt(Xe.prototype,"setProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperty"),Xe.prototype),Kt(Xe.prototype,"setProperties",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setProperties"),Xe.prototype),Kt(Xe.prototype,"deleteProperty",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"deleteProperty"),Xe.prototype),Kt(Xe.prototype,"setStyle",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyle"),Xe.prototype),Kt(Xe.prototype,"setStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setStyles"),Xe.prototype),Kt(Xe.prototype,"updateStyles",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateStyles"),Xe.prototype),Kt(Xe.prototype,"setZIndex",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"setZIndex"),Xe.prototype),Kt(Xe.prototype,"updateAttributes",[h.k],Object.getOwnPropertyDescriptor(Xe.prototype,"updateAttributes"),Xe.prototype),Xe);function Kv(t){return Kv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kv(t)}function x_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function E_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?x_(Object(r),!0).forEach(function(i){S_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function xj(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Ej(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function qv(){return qv=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=jj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},qv.apply(this,arguments)}function jj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=ul(t))!==null;);return t}function Zv(t,e){return Zv=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Zv(t,e)}function Pj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=ul(t);if(e){var s=ul(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Aj(this,r)}}function Aj(t,e){if(e&&(Kv(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wh(t)}function wh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ul(t){return ul=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ul(t)}function S_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jv(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var Kr,j_,P_,Qv=(Fa=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Zv(c,p)})(s,t);var e,r,i=Pj(s);function s(){var c;Ej(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return S_(wh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.CIRCLE_NODE),xj(wh(c),"r",w_,wh(c)),c}return e=s,(r=[{key:"width",get:function(){return 2*this.r}},{key:"height",get:function(){return 2*this.r}},{key:"getNodeStyle",value:function(){var c=qv(ul(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.circle;return E_(E_({},c),Ln(p))}},{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.r;return[{x:c,y:p-v,id:"".concat(this.id,"_0")},{x:c+v,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+v,id:"".concat(this.id,"_2")},{x:c-v,y:p,id:"".concat(this.id,"_3")}]}}])&&Sj(e.prototype,r),s}($a),w_=Jv(Fa.prototype,"r",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),Jv(Fa.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Fa.prototype,"width"),Fa.prototype),Jv(Fa.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Fa.prototype,"height"),Fa.prototype),Fa);o(129);function eg(t){return eg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eg(t)}function tg(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return A_(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return A_(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function A_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function T_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function M_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?T_(Object(r),!0).forEach(function(i){D_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function k_(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ng(){return ng=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=kj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},ng.apply(this,arguments)}function kj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=sl(t))!==null;);return t}function rg(t,e){return rg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},rg(t,e)}function Dj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=sl(t);if(e){var s=sl(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Nj(this,r)}}function Nj(t,e){if(e&&(eg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cl(t)}function cl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function sl(t){return sl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},sl(t)}function D_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ll(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var ca,N_,C_,og=(Kr=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&rg(c,p)})(s,t);var e,r,i=Dj(s);function s(){var c;Tj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return D_(cl(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.DIAMOND_NODE),k_(cl(c),"rx",j_,cl(c)),k_(cl(c),"ry",P_,cl(c)),c}return e=s,(r=[{key:"getNodeStyle",value:function(){var c=ng(sl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.diamond;return M_(M_({},c),Ln(p))}},{key:"points",get:function(){var c=this.x,p=this.y,v=this.rx,m=this.ry;return[[c,p-m],[c+v,p],[c,p+m],[c-v,p]]}},{key:"pointsPosition",get:function(){return this.points.map(function(c){return{x:c[0],y:c[1]}})}},{key:"width",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=tg(v,1)[0];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=tg(v,2)[1];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this;return this.points.map(function(p,v){var m=tg(p,2);return{x:m[0],y:m[1],id:"".concat(c.id,"_").concat(v)}})}}])&&Mj(e.prototype,r),s}($a),j_=ll(Kr.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),P_=ll(Kr.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 50}}),ll(Kr.prototype,"points",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"points"),Kr.prototype),ll(Kr.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"pointsPosition"),Kr.prototype),ll(Kr.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"width"),Kr.prototype),ll(Kr.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Kr.prototype,"height"),Kr.prototype),Kr);function ig(t){return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}function R_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function I_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?R_(Object(r),!0).forEach(function(i){B_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function L_(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Cj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ag(){return ag=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=Ij(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},ag.apply(this,arguments)}function Ij(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=pl(t))!==null;);return t}function ug(t,e){return ug=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ug(t,e)}function Lj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=pl(t);if(e){var s=pl(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Bj(this,r)}}function Bj(t,e){if(e&&(ig(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fl(t)}function fl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pl(t){return pl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pl(t)}function B_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xh(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var ii,z_,cg=(ca=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ug(c,p)})(s,t);var e,r,i=Lj(s);function s(){var c;Cj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return B_(fl(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.ELLIPSE_NODE),L_(fl(c),"rx",N_,fl(c)),L_(fl(c),"ry",C_,fl(c)),c}return e=s,(r=[{key:"getNodeStyle",value:function(){var c=ag(pl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.ellipse;return I_(I_({},c),Ln(p))}},{key:"width",get:function(){return 2*this.rx}},{key:"height",get:function(){return 2*this.ry}},{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.rx,m=this.ry;return[{x:c,y:p-m,id:"".concat(this.id,"_0")},{x:c+v,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m,id:"".concat(this.id,"_2")},{x:c-v,y:p,id:"".concat(this.id,"_3")}]}}])&&Rj(e.prototype,r),s}($a),N_=xh(ca.prototype,"rx",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 30}}),C_=xh(ca.prototype,"ry",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 45}}),xh(ca.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(ca.prototype,"width"),ca.prototype),xh(ca.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(ca.prototype,"height"),ca.prototype),ca);function sg(t){return sg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sg(t)}function lg(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return F_(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return F_(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function F_(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function $_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function W_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$_(Object(r),!0).forEach(function(i){G_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function zj(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Fj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $j(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fg(){return fg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=Wj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},fg.apply(this,arguments)}function Wj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=dl(t))!==null;);return t}function pg(t,e){return pg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},pg(t,e)}function Gj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=dl(t);if(e){var s=dl(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return Uj(this,r)}}function Uj(t,e){if(e&&(sg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eh(t)}function Eh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dl(t){return dl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dl(t)}function G_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sh(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var dg,U_,hg=(ii=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&pg(c,p)})(s,t);var e,r,i=Gj(s);function s(){var c;Fj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return G_(Eh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.POLYGON_NODE),zj(Eh(c),"points",z_,Eh(c)),c}return e=s,(r=[{key:"getNodeStyle",value:function(){var c=fg(dl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.polygon;return W_(W_({},c),Ln(p))}},{key:"pointsPosition",get:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return this.points.map(function(x){return{x:x[0]+c-v/2,y:x[1]+p-m/2}})}},{key:"width",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=lg(v,1)[0];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"height",get:function(){var c=Number.MAX_SAFE_INTEGER,p=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(v){var m=lg(v,2)[1];m<c&&(c=m),m>p&&(p=m)}),p-c}},{key:"getDefaultAnchor",value:function(){var c=this,p=this.x,v=this.y,m=this.width,x=this.height;return this.points.map(function(j,D){var I=lg(j,2),K=I[0],re=I[1];return{x:p+K-m/2,y:v+re-x/2,id:"".concat(c.id,"_").concat(D)}})}}])&&$j(e.prototype,r),s}($a),z_=Sh(ii.prototype,"points",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[[50,0],[100,50],[50,100],[0,50]]}}),Sh(ii.prototype,"pointsPosition",[h.m],Object.getOwnPropertyDescriptor(ii.prototype,"pointsPosition"),ii.prototype),Sh(ii.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(ii.prototype,"width"),ii.prototype),Sh(ii.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(ii.prototype,"height"),ii.prototype),ii);function yg(t){return yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yg(t)}function H_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function X_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?H_(Object(r),!0).forEach(function(i){Y_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Hj(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Xj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Yj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function vg(){return vg=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=Vj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},vg.apply(this,arguments)}function Vj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=hl(t))!==null;);return t}function gg(t,e){return gg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},gg(t,e)}function Kj(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=hl(t);if(e){var s=hl(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return qj(this,r)}}function qj(t,e){if(e&&(yg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jh(t)}function jh(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hl(t){return hl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hl(t)}function Y_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Au,bg=(dg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&gg(c,p)})(s,t);var e,r,i=Kj(s);function s(){var c;Xj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Y_(jh(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.RECT_NODE),Hj(jh(c),"radius",U_,jh(c)),c}return e=s,(r=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return[{x:c,y:p-m/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}},{key:"getNodeStyle",value:function(){var c=vg(hl(s.prototype),"getNodeStyle",this).call(this),p=this.graphModel.theme.rect;return X_(X_({},c),Ln(p))}}])&&Yj(e.prototype,r),s}($a),U_=function(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}(dg.prototype,"radius",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),dg);function mg(t){return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(t)}function V_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function K_(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?V_(Object(r),!0).forEach(function(i){Z_(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V_(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Zj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jj(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _g(){return _g=typeof Reflect!="undefined"&&Reflect.get?Reflect.get:function(t,e,r){var i=Qj(t,e);if(i){var s=Object.getOwnPropertyDescriptor(i,e);return s.get?s.get.call(arguments.length<3?t:r):s.value}},_g.apply(this,arguments)}function Qj(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=yl(t))!==null;);return t}function Og(t,e){return Og=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Og(t,e)}function eP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=yl(t);if(e){var s=yl(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return tP(this,r)}}function tP(t,e){if(e&&(mg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q_(t)}function q_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yl(t){return yl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},yl(t)}function Z_(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J_(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var wg=(Au=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Og(c,p)})(s,t);var e,r,i=eP(s);function s(){var c;Zj(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Z_(q_(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.TEXT_NODE),c}return e=s,(r=[{key:"getTextStyle",value:function(){var c=_g(yl(s.prototype),"getTextStyle",this).call(this),p=this.graphModel.theme.text;return K_(K_({},c),Ln(p))}},{key:"width",get:function(){var c=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Rf({rows:c,fontSize:p,rowsLength:c.length}).width}},{key:"height",get:function(){var c=String(this.text.value).split(/[\r\n]/g),p=this.getTextStyle().fontSize;return Rf({rows:c,fontSize:p,rowsLength:c.length}).height}}])&&Jj(e.prototype,r),s}($a),J_(Au.prototype,"width",[h.m],Object.getOwnPropertyDescriptor(Au.prototype,"width"),Au.prototype),J_(Au.prototype,"height",[h.m],Object.getOwnPropertyDescriptor(Au.prototype,"height"),Au.prototype),Au);function xg(t){return xg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xg(t)}function nP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function rP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Eg(t,e){return Eg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Eg(t,e)}function oP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Ph(t);if(e){var s=Ph(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return iP(this,r)}}function iP(t,e){if(e&&(xg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Q_(t)}function Q_(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ph(t){return Ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ph(t)}function aP(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Di,e1,t1,n1,Sg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Eg(c,p)})(s,t);var e,r,i=oP(s);function s(){var c;nP(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return aP(Q_(c=i.call.apply(i,[this].concat(v))),"modelType",Zt.HTML_NODE),c}return e=s,(r=[{key:"getDefaultAnchor",value:function(){var c=this.x,p=this.y,v=this.width,m=this.height;return[{x:c,y:p-m/2,id:"".concat(this.id,"_0")},{x:c+v/2,y:p,id:"".concat(this.id,"_1")},{x:c,y:p+m/2,id:"".concat(this.id,"_2")},{x:c-v/2,y:p,id:"".concat(this.id,"_3")}]}}])&&rP(e.prototype,r),s}($a);function r1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function jg(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function uP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o1(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pp(t,e,r,i,s){var c={};return Object.keys(i).forEach(function(p){c[p]=i[p]}),c.enumerable=!!c.enumerable,c.configurable=!!c.configurable,("value"in c||c.initializer)&&(c.writable=!0),c=r.slice().reverse().reduce(function(p,v){return v(t,e,p)||p},c),s&&c.initializer!==void 0&&(c.value=c.initializer?c.initializer.call(s):void 0,c.initializer=void 0),c.initializer===void 0&&(Object.defineProperty(t,e,c),c=null),c}var i1=(Di=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),o1(this,"graphModel",void 0),jg(this,"isShowHorizontal",e1,this),jg(this,"isShowVertical",t1,this),jg(this,"position",n1,this),this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=i}var e,r;return e=t,r=[{key:"getStyle",value:function(){return function(i){for(var s=1;s<arguments.length;s++){var c=arguments[s]!=null?arguments[s]:{};s%2?r1(Object(c),!0).forEach(function(p){o1(i,p,c[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(c)):r1(Object(c)).forEach(function(p){Object.defineProperty(i,p,Object.getOwnPropertyDescriptor(c,p))})}return i}({},this.graphModel.theme.snapline)}},{key:"getCenterSnapLine",value:function(i,s){for(var c=i.x,p=i.y,v=!1,m=!1,x=0;x<s.length;x++){var j=s[x];if(j.id!==i.id&&(c===j.x&&(v=!0),p===j.y&&(m=!0),v&&m))break}return{isShowVertical:v,isShowHorizontal:m,position:{x:c,y:p}}}},{key:"getHorizontalSnapline",value:function(i,s){var c,p,v=!1,m=i.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=no(x);else{var j=this.graphModel.getNodeModelById(m);p=no(j)}}for(var D=0;D<s.length;D++){var I=s[D];if(I.id!==i.id){var K=no(I);if(K.minY===p.minY||K.maxY===p.minY){v=!0,c=p.minY;break}if(K.minY===p.maxY||K.maxY===p.maxY){v=!0,c=p.maxY;break}}}return mr({isShowHorizontal:v,position:{y:c}})}},{key:"getVerticalSnapline",value:function(i,s){var c,p,v=!1,m=i.id;if(m){var x=this.graphModel.fakerNode;if(x&&x.id===m)p=no(x);else{var j=this.graphModel.getNodeModelById(m);p=no(j)}}for(var D=0;D<s.length;D++){var I=s[D];if(I.id!==i.id){var K=no(I);if(K.minX===p.minX||K.maxX===p.minX){v=!0,c=p.minX;break}if(K.minX===p.maxX||K.maxX===p.maxX){v=!0,c=p.maxX;break}}}return mr({isShowVertical:v,position:{x:c}})}},{key:"getSnapLinePosition",value:function(i,s){var c=this.getCenterSnapLine(i,s),p=c.isShowHorizontal,v=c.isShowVertical;if(!p){var m=this.getHorizontalSnapline(i,s);m.isShowHorizontal&&(c.isShowHorizontal=m.isShowHorizontal,c.position.y=m.position.y)}if(!v){var x=this.getVerticalSnapline(i,s);x.isShowVertical&&(c.isShowVertical=x.isShowVertical,c.position.x=x.position.x)}return c}},{key:"setSnaplineInfo",value:function(i){var s=i.isShowHorizontal,c=i.isShowVertical,p=i.position;this.position=p,this.isShowHorizontal=s,this.isShowVertical=c}},{key:"clearSnapline",value:function(){this.position={x:0,y:0},this.isShowHorizontal=!1,this.isShowVertical=!1}},{key:"setNodeSnapLine",value:function(i){var s=this.graphModel.nodes,c=this.getSnapLinePosition(i,s);this.setSnaplineInfo(c)}}],r&&uP(e.prototype,r),t}(),e1=pp(Di.prototype,"isShowHorizontal",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),t1=pp(Di.prototype,"isShowVertical",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),n1=pp(Di.prototype,"position",[h.C],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),pp(Di.prototype,"clearSnapline",[h.k],Object.getOwnPropertyDescriptor(Di.prototype,"clearSnapline"),Di.prototype),pp(Di.prototype,"setNodeSnapLine",[h.k],Object.getOwnPropertyDescriptor(Di.prototype,"setNodeSnapLine"),Di.prototype),Di),dp=new Map,a1=function(t){var e=Ji(),r=window.requestAnimationFrame(function i(){if(t(),dp.get(e)){var s=window.requestAnimationFrame(i);dp.set(e,s)}});return dp.set(e,r),e},Ah=function(t){var e=dp.get(t);e&&(window.cancelAnimationFrame(e),dp.delete(t))};function Pg(t){return Pg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pg(t)}function hp(){return hp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},hp.apply(this,arguments)}function u1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function yp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?u1(Object(r),!0).forEach(function(i){la(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function cP(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return c1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return c1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function c1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function sP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ag(t,e){return Ag=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ag(t,e)}function lP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Th(t);if(e){var s=Th(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return fP(this,r)}}function fP(t,e){if(e&&(Pg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sa(t)}function sa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Th(t){return Th=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Th(t)}function la(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pP=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ag(c,p)})(s,t);var e,r,i=lP(s);function s(){var c;return function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}(this,s),la(sa(c=i.call(this)),"preTargetNode",void 0),la(sa(c),"sourceRuleResults",void 0),la(sa(c),"targetRuleResults",void 0),la(sa(c),"dragHandler",void 0),la(sa(c),"t",void 0),la(sa(c),"onDragStart",function(p){var v=p.event,m=c.props,x=m.anchorData,j=m.nodeModel,D=m.graphModel;D.overlapMode,D.selectNodeById(j.id),j.autoToFront&&D.toFront(j.id),D.eventCenter.emit(dt.ANCHOR_DRAGSTART,{data:x,e:v,nodeModel:j}),c.setState({startX:x.x,startY:x.y,endX:x.x,endY:x.y})}),la(sa(c),"onDragging",function(p){var v=p.event,m=c.props,x=m.graphModel,j=m.nodeModel,D=m.anchorData,I=x.transformModel,K=x.eventCenter,re=x.width,oe=x.height,he=x.editConfigModel,ye=he.autoExpand,Ee=he.stopMoveGraph,Re=v.clientX,Qe=v.clientY,Ze=x.getPointByClient({x:Re,y:Qe}),_t=Ze.domOverlayPosition,qe=_t.x,ht=_t.y,rt=Ze.canvasOverlayPosition,tn=rt.x,un=rt.y;c.t&&Ah(c.t);var Lt=[];qe<10?Lt=[10,0]:qe+10>re?Lt=[-10,0]:ht<10?Lt=[0,10]:ht+10>oe&&(Lt=[0,-10]),c.setState({endX:tn,endY:un,dragging:!0}),c.moveAnchorEnd(tn,un),Lt.length>0&&!Ee&&ye&&(c.t=a1(function(){var pn=cP(Lt,2),nr=pn[0],rr=pn[1];I.translate(nr,rr);var zr=c.state,Ro=zr.endX,Io=zr.endY;c.setState({endX:Ro-nr,endY:Io-rr}),c.moveAnchorEnd(Ro-nr,Io-rr)})),K.emit(dt.ANCHOR_DRAG,{data:D,e:v,nodeModel:j})}),la(sa(c),"onDragEnd",function(p){var v=p.event;c.t&&Ah(c.t);var m=c.checkEnd(v);c.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),c.sourceRuleResults.clear(),c.targetRuleResults.clear();var x=c.props,j=x.graphModel,D=x.nodeModel,I=x.anchorData;j.eventCenter.emit(dt.ANCHOR_DRAGEND,{data:I,e:v,nodeModel:D,edgeModel:m})}),la(sa(c),"checkEnd",function(p){var v=c.props,m=v.graphModel,x=v.nodeModel,j=v.anchorData,D=j.x,I=j.y,K=j.id,re=(m.edgeType,c.state),oe=re.endX,he=re.endY,ye=re.dragging,Ee=Fs({x:oe,y:he},m);if(c.preTargetNode&&c.preTargetNode.state!==gn.DEFAULT&&c.preTargetNode.setElementState(gn.DEFAULT),ye&&Ee&&Ee.node){var Re=Ee.node,Qe=Ee.anchor.id,Ze="".concat(x.id,"_").concat(Re.id,"_").concat(Qe,"_").concat(K),_t=c.sourceRuleResults.get(Ze)||{},qe=_t.isAllPass,ht=_t.msg,rt=c.targetRuleResults.get(Ze)||{},tn=rt.isAllPass,un=rt.msg;if(qe&&tn){Re.setElementState(gn.DEFAULT);var Lt=m.edgeGenerator(x.getData(),m.getNodeModelById(Ee.node.id).getData()),pn=m.addEdge(yp(yp({},Lt),{},{sourceNodeId:x.id,sourceAnchorId:K,startPoint:{x:D,y:I},targetNodeId:Ee.node.id,targetAnchorId:Ee.anchor.id,endPoint:{x:Ee.anchor.x,y:Ee.anchor.y}})),nr=c.props.anchorData;return m.eventCenter.emit(dt.ANCHOR_DROP,{data:nr,e:p,nodeModel:x,edgeModel:pn}),pn}var rr=Re.getData();return m.eventCenter.emit(dt.CONNECTION_NOT_ALLOWED,{data:rr,msg:un||ht||"\u4E0D\u5141\u8BB8\u6DFB\u52A0\u8FDE\u7EBF"}),null}}),c.sourceRuleResults=new Map,c.targetRuleResults=new Map,c.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},c.dragHandler=new ni({onDragStart:c.onDragStart,onDragging:c.onDragging,onDragEnd:c.onDragEnd}),c}return e=s,(r=[{key:"getAnchorShape",value:function(){var c=this.props,p=c.anchorData,v=c.style,m=c.node.getAnchorShape(p);if(m)return m;var x=p.x,j=p.y,D=yp(yp({},v),v.hover);return Object(fe.g)("g",null,Object(fe.g)(al,hp({className:"lf-node-anchor-hover"},D,{x,y:j})),Object(fe.g)(al,hp({className:"lf-node-anchor"},v,{x,y:j})))}},{key:"customTrajectory",get:function(){return this.props.graphModel.customTrajectory}},{key:"relateEdges",get:function(){var c=this.props,p=c.graphModel,v=p.getAnchorIncomingEdge,m=p.getAnchorOutcomingEdge,x=c.anchorData.id;return{incomingEdgeList:v(x),outcomingEdgeList:m(x)}}},{key:"moveAnchorEnd",value:function(c,p){var v=this.props,m=v.graphModel,x=v.nodeModel,j=v.anchorData,D=Fs({x:c,y:p},m);if(D){var I=D.node,K=D.anchor.id;if(this.preTargetNode&&this.preTargetNode!==D.node&&this.preTargetNode.setElementState(gn.DEFAULT),j.id===K)return;this.preTargetNode=I;var re="".concat(x.id,"_").concat(I.id,"_").concat(K,"_").concat(j.id);if(!this.targetRuleResults.has(re)){var oe=D.anchor,he=x.isAllowConnectedAsSource(I,j,oe),ye=I.isAllowConnectedAsTarget(x,j,oe);this.sourceRuleResults.set(re,_c(he)),this.targetRuleResults.set(re,_c(ye))}var Ee=this.sourceRuleResults.get(re).isAllPass,Re=this.targetRuleResults.get(re).isAllPass;Ee&&Re?I.setElementState(gn.ALLOW_CONNECT):I.setElementState(gn.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==gn.DEFAULT&&this.preTargetNode.setElementState(gn.DEFAULT)}},{key:"isShowLine",value:function(){var c=this.state,p=c.startX,v=c.startY,m=c.endX,x=c.endY;return ko(p,v,m,x)>10}},{key:"render",value:function(){var c=this,p=this.state,v=p.startX,m=p.startY,x=p.endX,j=p.endY,D=this.props,I=D.anchorData.edgeAddable,K=D.edgeStyle;return Object(fe.g)("g",{className:"lf-anchor"},Object(fe.g)("g",{onMouseDown:function(re){I!==!1&&c.dragHandler.handleMouseDown(re)}},this.getAnchorShape()),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(yp({sourcePoint:{x:v,y:m},targetPoint:{x,y:j}},K)):Object(fe.g)(ol,hp({x1:v,y1:m,x2:x,y2:j},K,{"pointer-events":"none"}))))}}])&&sP(e.prototype,r),s}(fe.a);function s1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function dP(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?s1(Object(r),!0).forEach(function(i){hP(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function hP(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tg(t){return Tg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tg(t)}function yP(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return l1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return l1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function l1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function f1(t){var e=t.x,r=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.value,p=t.fontSize,v=t.fill,m=v===void 0?"currentColor":v,x=t.overflowMode,j=x===void 0?"default":x,D=t.textWidth,I=D===void 0?"":D,K=t.model,re={textAnchor:"middle","dominant-baseline":"middle",x:r,y:s,fill:m};if(Object.entries(t).forEach(function(Qe){var Ze=yP(Qe,2),_t=Ze[0],qe=Ze[1];Tg(qe)!=="object"&&(re[_t]=qe)}),c){var oe=String(c).split(/[\r\n]/g),he=oe.length;if(j!=="default"){var ye=K.BaseType,Ee=K.modelType;if(ye===Jn.NODE&&Ee!==Zt.TEXT_NODE||ye===Jn.EDGE&&I)return function(Qe){var Ze=Qe.value,_t=Qe.fontSize,qe=Qe.model,ht=Qe.fontFamily,rt=ht===void 0?"":ht,tn=Qe.lineHeight,un=Qe.wrapPadding,Lt=un===void 0?"0, 0":un,pn=Qe.overflowMode,nr=Qe.x,rr=Qe.y,zr=qe.width,Ro=qe.textHeight,Io=Qe.textWidth||zr,da=String(Ze).split(/[\r\n]/g),Wc=da.length,ey=Ld({rows:da,style:{fontSize:"".concat(_t,"px"),width:"".concat(Io,"px"),fontFamily:rt,lineHeight:tn,padding:Lt},rowsLength:Wc,className:"lf-get-text-height"}),Gc=qe.height>ey?qe.height:ey;Ro&&(Gc=Ro);var ku=pn==="ellipsis";return ku&&(Gc=_t+2),Object(fe.g)("g",null,Object(fe.g)("foreignObject",{width:Io,height:Gc,x:nr-Io/2,y:rr-Gc/2},Object(fe.g)("div",{className:"lf-node-text-auto-wrap",style:{minHeight:Gc,width:Io,padding:Lt}},Object(fe.g)("div",{className:ku?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:ku?da.join(""):"",style:dP({},Qe)},da.map(function(Du){return Object(fe.g)("div",{className:"lf-node-text--auto-wrap-inner"},Du)})))))}(t)}if(he>1){var Re=oe.map(function(Qe,Ze){var _t=(Ze-(he-1)/2)*(p+2);return Object(fe.g)("tspan",{className:"lf-text-tspan",x:r,y:s+_t},Qe)});return Object(fe.g)("text",re,Re)}return Object(fe.g)("text",re,c)}}function Mg(t){return Mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mg(t)}function kg(){return kg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},kg.apply(this,arguments)}function vP(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return p1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return p1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function gP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Dg(t,e){return Dg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Dg(t,e)}function bP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Mh(t);if(e){var s=Mh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return mP(this,r)}}function mP(t,e){if(e&&(Mg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tu(t)}function Tu(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Mh(t){return Mh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mh(t)}function Bc(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Dg(c,p)})(s,t);var e,r,i=bP(s);function s(c){var p;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,s),Bc(Tu(p=i.call(this)),"dragHandler",void 0),Bc(Tu(p),"sumDeltaX",0),Bc(Tu(p),"sumDeltaY",0),Bc(Tu(p),"stepDrag",void 0),Bc(Tu(p),"onDragging",function(m){var x=m.deltaX,j=m.deltaY,D=p.props,I=D.model,K=vP(D.graphModel.transformModel.fixDeltaXY(x,j),2),re=K[0],oe=K[1];I.moveText(re,oe)}),Bc(Tu(p),"dblClickHandler",function(){p.props.editable&&p.props.model.setElementState(gn.TEXT_EDIT)}),Bc(Tu(p),"mouseDownHandle",function(m){var x=p.props,j=x.draggable,D=x.model,I=x.graphModel.editConfigModel.nodeTextDraggable;(j||I)&&(p.stepDrag.model=D,p.stepDrag.handleMouseDown(m))}),c.model;var v=c.draggable;return p.stepDrag=new ni({onDragging:p.onDragging,step:1,isStopPropagation:v}),p}return e=s,(r=[{key:"getShape",value:function(){var c=this.props,p=c.model,v=c.graphModel,m=p.text,x=v.editConfigModel,j=m.value,D=m.x,I=m.y,K=m.editable,re=m.draggable,oe={x:D,y:I,className:"",value:j};K?oe.className="lf-element-text":re||x.nodeTextDraggable?oe.className="lf-text-draggable":oe.className="lf-text-disabled";var he=p.getTextStyle();return Object(fe.g)(f1,kg({},oe,he,{model:p}))}},{key:"render",value:function(){if(this.props.model.text)return Object(fe.g)("g",{onMouseDown:this.mouseDownHandle,onDblClick:this.dblClickHandler},this.getShape())}}])&&gP(e.prototype,r),s}(fe.a),_P=cu(window,"navigator.userAgent","").match(/MSIE|Trident/)!==null,h1=o(130);function Ng(t){return Ng=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ng(t)}function Cg(){return Cg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Cg.apply(this,arguments)}function OP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Rg(t,e){return Rg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Rg(t,e)}function wP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=kh(t);if(e){var s=kh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return xP(this,r)}}function xP(t,e){if(e&&(Ng(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vl(t)}function vl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kh(t){return kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(t)}function vp(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var EP=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Rg(c,p)})(s,t);var e,r,i=wP(s);function s(c){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),vp(vl(p=i.call(this,c)),"style",{}),vp(vl(p),"defaultAngle",void 0),vp(vl(p),"normal",void 0),vp(vl(p),"stepperDrag",void 0),vp(vl(p),"onDragging",function(v){var m,x=v.event,j=p.props,D=j.graphModel,I=j.nodeModel,K=j.eventCenter,re=D.selectNodes,oe=I.x,he=I.y,ye=x.clientX,Ee=x.clientY,Re=D.getPointByClient({x:ye,y:Ee}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y,_t=new G(Qe-oe,Ze-he),qe=((m=p.normal)===null||m===void 0?void 0:m.angle(_t))-p.defaultAngle,ht=new aa(-oe,-he).rotate(qe).translate(oe,he).toString();I.transform=ht,I.rotate=qe;var rt=Object(h1.map)(re,function(un){return un.id});rt.indexOf(I.id)===-1&&(rt=[I.id]);var tn=Object(h1.reduce)(rt,function(un,Lt){var pn=D.getNodeModelById(Lt);return un[Lt]=pn==null?void 0:pn.getMoveDistance(0,0,!1),un},{});rt.forEach(function(un){D.getNodeEdges(un).forEach(function(Lt){if(tn[Lt.sourceNodeId]){var pn=D.getNodeModelById(Lt.sourceNodeId).anchors.find(function(rr){return rr.id===Lt.sourceAnchorId});Lt.updateStartPoint(pn)}if(tn[Lt.targetNodeId]){var nr=D.getNodeModelById(Lt.targetNodeId).anchors.find(function(rr){return rr.id===Lt.targetAnchorId});Lt.updateEndPoint(nr)}})}),K.emit(dt.NODE_ROTATE,{e:x,nodeModel:I})}),p.style=c.style,p.stepperDrag=new ni({onDragging:p.onDragging}),p}return e=s,(r=[{key:"render",value:function(){var c=this,p=this.props.nodeModel,v=p.x,m=p.y,x=v+p.width/2+20,j=m-p.height/2-20;return this.normal=new G(1,0),this.defaultAngle=this.normal.angle(new G(x-v,j-m)),p.defaultAngle=this.defaultAngle,Object(fe.g)("g",{className:"lf-rotate-control"},Object(fe.g)("g",{onMouseDown:function(D){c.stepperDrag.handleMouseDown(D)}},Object(fe.g)(al,Cg({},this.style,{cx:x,cy:j}))))}}])&&OP(e.prototype,r),s}(fe.a);function Ig(t){return Ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ig(t)}var SP=["className"];function Dh(){return Dh=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Dh.apply(this,arguments)}function jP(t,e){if(t==null)return{};var r,i,s=function(p,v){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],v.indexOf(m)>=0||(j[m]=p[m]);return j}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(i=0;i<c.length;i++)r=c[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function Nh(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return y1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return y1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function y1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function v1(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lg(t,e){return Lg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lg(t,e)}function PP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Ch(t);if(e){var s=Ch(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return AP(this,r)}}function AP(t,e){if(e&&(Ig(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sr(t)}function Sr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ch(t){return Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(t)}function kr(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wa=function(t){(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),v&&Lg(p,v)})(c,t);var e,r,i,s=PP(c);function c(p){var v;(function(I,K){if(!(I instanceof K))throw new TypeError("Cannot call a class as a function")})(this,c),kr(Sr(v=s.call(this)),"t",void 0),kr(Sr(v),"moveOffset",void 0),kr(Sr(v),"stepDrag",void 0),kr(Sr(v),"contextMenuTime",void 0),kr(Sr(v),"mouseUpDrag",void 0),kr(Sr(v),"startTime",void 0),kr(Sr(v),"clickTimer",void 0),kr(Sr(v),"modelDisposer",void 0),kr(Sr(v),"onDragStart",function(I){var K=I.event,re=K.clientX,oe=K.clientY,he=v.props,ye=he.model,Ee=he.graphModel.getPointByClient({x:re,y:oe}).canvasOverlayPosition,Re=Ee.x,Qe=Ee.y;v.moveOffset={x:ye.x-Re,y:ye.y-Qe}}),kr(Sr(v),"onDragging",function(I){var K=I.event,re=v.props,oe=re.model,he=re.graphModel,ye=he.editConfigModel,Ee=ye.stopMoveGraph,Re=ye.autoExpand,Qe=he.transformModel,Ze=he.selectNodes,_t=he.width,qe=he.height,ht=he.gridSize;oe.isDragging=!0;var rt=K.clientX,tn=K.clientY,un=he.getPointByClient({x:rt,y:tn}).canvasOverlayPosition,Lt=un.x,pn=un.y,nr=Nh(Qe.CanvasPointToHtmlPoint([Lt,pn]),2),rr=nr[0],zr=nr[1];if(Lt+=v.moveOffset.x,pn+=v.moveOffset.y,Lt=qi(Lt,ht),pn=qi(pn,ht),_t&&qe){if(!Re||Ee||!(rr<0||zr<0||rr>_t||zr>qe)){var Ro=Nh(Qe.CanvasPointToHtmlPoint([Lt-oe.width/2,pn-oe.height/2]),2),Io=Ro[0],da=Ro[1],Wc=Nh(Qe.CanvasPointToHtmlPoint([Lt+oe.width/2,pn+oe.height/2]),2),ey=Wc[0],Gc=Wc[1],ku=Math.max(ht,20),Du=[];Io<0?Du=[ku,0]:ey>he.width?Du=[-ku,0]:da<0?Du=[0,ku]:Gc>he.height&&(Du=[0,-ku]),v.t&&Ah(v.t);var f2=new aa(-Lt,-pn).rotate(oe.rotate).translate(Lt,pn).toString();oe.transform=f2;var ty=Ze.map(function(ny){return ny.id});ty.indexOf(oe.id)===-1&&(ty=[oe.id]),Du.length>0&&!Ee&&Re?v.t=a1(function(){var ny=Nh(Du,2),q1=ny[0],Z1=ny[1];Qe.translate(q1,Z1);var p2=-q1/Qe.SCALE_X,d2=-Z1/Qe.SCALE_X;he.moveNodes(ty,p2,d2)}):he.moveNodes(ty,Lt-oe.x,pn-oe.y)}}else he.moveNode2Coordinate(oe.id,Lt,pn)}),kr(Sr(v),"onDragEnd",function(){v.t&&Ah(v.t),v.props.model.isDragging=!1}),kr(Sr(v),"handleMouseUp",function(){var I=v.props.model;v.mouseUpDrag=I.isDragging}),kr(Sr(v),"handleClick",function(I){var K=v.mouseUpDrag===!1;if(v.startTime){var re=v.props,oe=re.model,he=re.graphModel;if(K){var ye={data:oe.getData(),e:I,position:he.getPointByClient({x:I.clientX,y:I.clientY}),isSelected:!1,isMultiple:!1},Ee=I.button===2,Re=I.detail===2;if(!Ee){var Qe=he.editConfigModel,Ze=vf(I,Qe);ye.isMultiple=Ze,oe.isSelected&&!Re&&Ze?(ye.isSelected=!1,oe.setSelected(!1)):(he.selectNodeById(oe.id,Ze),ye.isSelected=!0,v.toFront()),Re?(Qe.nodeTextEdit&&oe.text.editable&&(oe.setSelected(!1),he.setElementStateById(oe.id,gn.TEXT_EDIT)),he.eventCenter.emit(dt.NODE_DBCLICK,ye)):(he.eventCenter.emit(dt.ELEMENT_CLICK,ye),he.eventCenter.emit(dt.NODE_CLICK,ye))}}}}),kr(Sr(v),"handleContextMenu",function(I){I.preventDefault();var K=v.props,re=K.model,oe=K.graphModel,he=re.getData(),ye=oe.getPointByClient({x:I.clientX,y:I.clientY});oe.setElementStateById(re.id,gn.SHOW_MENU,ye.domOverlayPosition),re.isSelected||oe.selectNodeById(re.id),oe.eventCenter.emit(dt.NODE_CONTEXTMENU,{data:he,e:I,position:ye}),v.toFront()}),kr(Sr(v),"handleMouseDown",function(I){var K=v.props,re=K.model,oe=K.graphModel;v.startTime=new Date().getTime(),oe.editConfigModel.adjustNodePosition&&re.draggable&&v.stepDrag&&v.stepDrag.handleMouseDown(I)}),kr(Sr(v),"setHoverON",function(I){var K=v.props,re=K.model,oe=K.graphModel;if(!re.isHovered){var he=re.getData();re.setHovered(!0),oe.eventCenter.emit(dt.NODE_MOUSEENTER,{data:he,e:I})}}),kr(Sr(v),"setHoverOFF",function(I){var K=v.props,re=K.model,oe=K.graphModel,he=re.getData();re.isHovered&&(re.setHovered(!1),oe.eventCenter.emit(dt.NODE_MOUSELEAVE,{data:he,e:I}))}),kr(Sr(v),"onMouseOut",function(I){_P&&v.setHoverOFF(I)});var m=p.graphModel,x=m.gridSize,j=m.eventCenter,D=p.model;return v.stepDrag=new ni({onDragStart:v.onDragStart,onDragging:v.onDragging,onDragEnd:v.onDragEnd,step:x,eventType:"NODE",isStopPropagation:!1,eventCenter:j,model:D}),v.modelDisposer=Object(h.F)(function(){return v.props},function(I){I&&I.model&&v.stepDrag.setModel(I.model)}),v}return e=c,i=[{key:"getModel",value:function(p){return p}}],(r=[{key:"componentWillUnmount",value:function(){this.modelDisposer&&this.modelDisposer()}},{key:"getAnchorShape",value:function(p){return null}},{key:"getAnchors",value:function(){var p=this,v=this.props,m=v.model,x=v.graphModel,j=m.isSelected,D=m.isHitable,I=m.isDragging,K=m.isShowAnchor;return D&&(j||K)&&!I?hs(m.anchors,function(re,oe){var he=m.getAnchorLineStyle(re),ye=m.getAnchorStyle(re);return Object(fe.g)(pP,{anchorData:re,node:p,style:ye,edgeStyle:he,anchorIndex:oe,nodeModel:m,graphModel:x,setHoverOFF:p.setHoverOFF})}):[]}},{key:"getRotateControl",value:function(){var p=this.props,v=p.model,m=p.graphModel,x=v.isSelected,j=v.isHitable,D=v.enableRotate,I=v.isHovered,K=v.getRotateControlStyle().style;if(j&&(x||I)&&D)return Object(fe.g)(EP,{graphModel:m,nodeModel:v,eventCenter:m.eventCenter,style:K})}},{key:"getText",value:function(){var p=this.props,v=p.model,m=p.graphModel;if(v.state===gn.TEXT_EDIT)return"";if(v.text){var x=m.editConfigModel,j=!1;return(v.text.draggable||x.nodeTextDraggable)&&(j=!0),Object(fe.g)(d1,{editable:x.nodeTextEdit&&v.text.editable,model:v,graphModel:m,draggable:j})}}},{key:"getStateClassName",value:function(){var p=this.props.model,v=p.state,m=p.isDragging,x=p.isSelected,j="lf-node";switch(v){case gn.ALLOW_CONNECT:j+=" lf-node-allow";break;case gn.NOT_ALLOW_CONNECT:j+=" lf-node-not-allow";break;default:j+=" lf-node-default"}return m&&(j+=" lf-isDragging"),x&&(j+=" lf-node-selected"),j}},{key:"toFront",value:function(){var p=this.props,v=p.model,m=p.graphModel;v.autoToFront&&m.toFront(v.id)}},{key:"render",value:function(){var p,v=this.props,m=v.model,x=v.graphModel,j=x.editConfigModel,D=j.hideAnchors,I=j.adjustNodePosition,K=j.allowRotation,re=x.gridSize,oe=x.transformModel.SCALE_X,he=m.isHitable,ye=m.draggable,Ee=m.transform,Re=m.getOuterGAttributes(),Qe=Re.className,Ze=Qe===void 0?"":Qe,_t=jP(Re,SP),qe=Object(fe.g)("g",{className:"lf-node-content"},Object(fe.g)("g",{transform:Ee},this.getShape(),this.getText(),K&&this.getRotateControl()),!D&&this.getAnchors());return he?(I&&ye&&this.stepDrag.setStep(re*oe),p=Object(fe.g)("g",Dh({className:"".concat(this.getStateClassName()," ").concat(Ze),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverON,onMouseOver:this.setHoverON,onMouseLeave:this.setHoverOFF,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_t),qe)):p=Object(fe.g)("g",Dh({className:"".concat(this.getStateClassName()," ").concat(Ze)},_t),qe),p}}])&&v1(e.prototype,r),i&&v1(e,i),c}(fe.a);function Bg(t){return Bg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bg(t)}function zg(){return zg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},zg.apply(this,arguments)}function TP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function MP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Fg(t,e){return Fg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fg(t,e)}function kP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Rh(t);if(e){var s=Rh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return DP(this,r)}}function DP(t,e){if(e&&(Bg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Rh(t){return Rh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rh(t)}var $g=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Fg(c,p)})(s,t);var e,r,i=kP(s);function s(){return TP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)(ju,zg({},p,{x:c.x,y:c.y,width:c.width,height:c.height,radius:c.radius}))}}])&&MP(e.prototype,r),s}(Wa);function Wg(t){return Wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wg(t)}function Gg(){return Gg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Gg.apply(this,arguments)}function NP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function CP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ug(t,e){return Ug=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ug(t,e)}function RP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Ih(t);if(e){var s=Ih(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return IP(this,r)}}function IP(t,e){if(e&&(Wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Ih(t){return Ih=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ih(t)}var Hg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ug(c,p)})(s,t);var e,r,i=RP(s);function s(){return NP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,m=c.r,x=c.getNodeStyle();return Object(fe.g)(al,Gg({},x,{x:p,y:v,r:m}))}}])&&CP(e.prototype,r),s}(Wa);function Xg(t){return Xg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xg(t)}function LP(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return g1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return g1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function g1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function b1(t){var e=t.points,r=t.className,i={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return Object.entries(t).forEach(function(s){var c=LP(s,2),p=c[0],v=c[1];Xg(v)!=="object"&&(i[p]=v)}),i.className=r?"lf-basic-shape ".concat(r):"lf-basic-shape",i.points=e.map(function(s){return s.join(",")}).join(" "),Object(fe.g)("polygon",i)}function Yg(t){return Yg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yg(t)}function Vg(){return Vg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Vg.apply(this,arguments)}function BP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Kg(t,e){return Kg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Kg(t,e)}function FP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Lh(t);if(e){var s=Lh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return $P(this,r)}}function $P(t,e){if(e&&(Yg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Lh(t){return Lh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lh(t)}var qg=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Kg(c,p)})(s,t);var e,r,i=FP(s);function s(){return BP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,m=c.width,x=c.height,j=c.points,D=c.getNodeStyle(),I={transform:"matrix(1 0 0 1 ".concat(p-m/2," ").concat(v-x/2,")")};return Object(fe.g)("g",I,Object(fe.g)(b1,Vg({},D,{points:j,x:p,y:v})))}}])&&zP(e.prototype,r),s}(Wa);function Zg(t){return Zg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zg(t)}function Jg(){return Jg=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jg.apply(this,arguments)}function WP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function GP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qg(t,e){return Qg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Qg(t,e)}function UP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Bh(t);if(e){var s=Bh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return HP(this,r)}}function HP(t,e){if(e&&(Zg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Bh(t){return Bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Bh(t)}var eb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Qg(c,p)})(s,t);var e,r,i=UP(s);function s(){return WP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)("g",null,Object(fe.g)(b1,Jg({},p,{points:c.points,x:c.x,y:c.y})))}}])&&GP(e.prototype,r),s}(Wa);function tb(t){return tb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tb(t)}function XP(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return m1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return m1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function YP(t){var e=t.x,r=e===void 0?0:e,i=t.y,s=i===void 0?0:i,c=t.rx,p=c===void 0?4:c,v=t.ry,m=v===void 0?4:v,x=t.className,j={cx:r,cy:s,rx:p,ry:m,fill:"transparent",fillOpacity:1,strokeWidth:"1",stroke:"#000",strokeOpacity:1};return Object.entries(t).forEach(function(D){var I=XP(D,2),K=I[0],re=I[1];tb(re)!=="object"&&(j[K]=re)}),j.className=x?"lf-basic-shape ".concat(x):"lf-basic-shape",Object(fe.g)("ellipse",j)}function nb(t){return nb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nb(t)}function rb(){return rb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},rb.apply(this,arguments)}function VP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KP(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ob(t,e){return ob=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ob(t,e)}function qP(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=zh(t);if(e){var s=zh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return ZP(this,r)}}function ZP(t,e){if(e&&(nb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function zh(t){return zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zh(t)}var ib=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ob(c,p)})(s,t);var e,r,i=qP(s);function s(){return VP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getShape",value:function(){var c=this.props.model,p=c.getNodeStyle();return Object(fe.g)(YP,rb({},p,{x:c.x,y:c.y,rx:c.rx,ry:c.ry}))}}])&&KP(e.prototype,r),s}(Wa);function ab(t){return ab=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ab(t)}function _1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function O1(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_1(Object(r),!0).forEach(function(i){JP(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function JP(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function QP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ub(t,e){return ub=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},ub(t,e)}function tA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Fh(t);if(e){var s=Fh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return nA(this,r)}}function nA(t,e){if(e&&(ab(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Fh(t){return Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fh(t)}var cb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&ub(c,p)})(s,t);var e,r,i=tA(s);function s(){return QP(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getBackground",value:function(){var c=this.props.model,p=c.getTextStyle(),v=c.width,m=c.height,x=c.x,j=c.y,D=O1(O1({},p.background),{},{x,y:j-1,width:v,height:m});return Object(fe.g)(ju,D)}},{key:"getShape",value:function(){return Object(fe.g)("g",null,this.getBackground())}}])&&eA(e.prototype,r),s}(Wa);function sb(t){return sb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sb(t)}function lb(){return lb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},lb.apply(this,arguments)}function rA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fb(t,e){return fb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},fb(t,e)}function iA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=$h(t);if(e){var s=$h(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return aA(this,r)}}function aA(t,e){if(e&&(sb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gp(t)}function gp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $h(t){return $h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},$h(t)}function Wh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&fb(c,p)})(s,t);var e,r,i=iA(s);function s(){var c;rA(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return Wh(gp(c=i.call.apply(i,[this].concat(v))),"ref",void 0),Wh(gp(c),"currentProperties",void 0),Wh(gp(c),"preProperties",void 0),Wh(gp(c),"setRef",function(x){c.ref=x}),c}return e=s,(r=[{key:"rootEl",get:function(){return this.ref}},{key:"setHtml",value:function(c){c.appendChild(document.createElement("div"))}},{key:"shouldUpdate",value:function(){if(!this.preProperties||this.preProperties!==this.currentProperties)return this.preProperties=this.currentProperties,!0}},{key:"componentDidMount",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"componentDidUpdate",value:function(){this.shouldUpdate()&&this.setHtml(this.rootEl)}},{key:"getShape",value:function(){var c=this.props.model,p=c.x,v=c.y,m=c.height,x=c.width,j=c.getNodeStyle();return this.currentProperties=JSON.stringify(c.properties),Object(fe.g)("foreignObject",lb({},j,{x:p-x/2,y:v-m/2,width:x,height:m,ref:this.setRef}))}}])&&oA(e.prototype,r),s}(Wa);function db(t){return db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},db(t)}function hb(){return hb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},hb.apply(this,arguments)}function w1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function zc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?w1(Object(r),!0).forEach(function(i){gb(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):w1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function uA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function yb(t,e){return yb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},yb(t,e)}function cA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Gh(t);if(e){var s=Gh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return sA(this,r)}}function sA(t,e){if(e&&(db(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vb(t)}function vb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gh(t){return Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Gh(t)}function gb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var lA=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&yb(c,p)})(s,t);var e,r,i=cA(s);function s(c){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,s),gb(vb(p=i.call(this,c)),"setHoverON",function(){p.setState({isHovered:!0})}),gb(vb(p),"setHoverOFF",function(){p.setState({isHovered:!1})}),p.state={isHovered:!1},p}return e=s,(r=[{key:"getBackground",value:function(){var c=this.props.model,p=c.getTextStyle(),v=c.text,m=c.width,x=p.background||{};if(this.state.isHovered&&p.hover&&p.hover.background&&(x=zc(zc({},x),p.hover.background)),v&&v.value&&x.fill!=="transparent"){var j,D=p.fontSize,I=p.overflowMode,K=p.lineHeight,re=p.wrapPadding,oe=p.textWidth,he=v.value,ye=v.x,Ee=v.y,Re=String(he).split(/[\r\n]/g),Qe=Re.length;if(I==="autoWrap"&&oe){var Ze=Ld({rows:Re,style:{fontSize:"".concat(D,"px"),width:"".concat(oe,"px"),lineHeight:K,padding:re},rowsLength:Qe,className:"lf-get-text-height"});j=zc(zc({},x),{},{x:ye-1,y:Ee-1,width:oe,height:Ze})}else{Re&&Re.forEach(function(tn){Js(tn)});var _t=Rf({rows:Re,fontSize:D,rowsLength:Qe}),qe=_t.width,ht=_t.height;if(I==="ellipsis"&&(qe=oe||m,ht=D+2),typeof x.wrapPadding=="string"){var rt=x.wrapPadding.split(",").filter(function(tn){return tn.trim()}).map(function(tn){return parseFloat(tn.trim())});rt.length>0&&rt.length<=4&&(rt.length===1?rt=[rt[0],rt[0],rt[0],rt[0]]:rt.length===2?rt=[rt[0],rt[1],rt[0],rt[1]]:rt.length===3&&(rt=[rt[0],rt[1],rt[2],rt[1]]),qe+=rt[1]+rt[3],ht+=rt[0]+rt[2],ye+=(rt[1]-rt[3])/2,Ee+=(rt[2]-rt[0])/2)}j=zc(zc({},x),{},{x:ye-1,y:Ee-1,width:qe,height:ht})}return Object(fe.g)(ju,j)}}},{key:"getShape",value:function(){var c=this.props.model,p=c.text,v=p.value,m=p.x,x=p.y;if(v){var j=zc({x:m,y:x,className:"lf-element-text",value:v},c.getTextStyle());return Object(fe.g)("g",{className:"lf-line-text",onMouseEnter:this.setHoverON,onMouseLeave:this.setHoverOFF},this.getBackground(),Object(fe.g)(f1,hb({},j,{model:c})))}}}])&&uA(e.prototype,r),s}(d1);function bb(t){return bb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bb(t)}var fa,fA=["text","sourceAnchorId","targetAnchorId"];function x1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Ga(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?x1(Object(r),!0).forEach(function(i){Co(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function pA(t,e){if(t==null)return{};var r,i,s=function(p,v){if(p==null)return{};var m,x,j={},D=Object.keys(p);for(x=0;x<D.length;x++)m=D[x],v.indexOf(m)>=0||(j[m]=p[m]);return j}(t,e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(i=0;i<c.length;i++)r=c[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function dA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return E1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return E1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function E1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function hA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mb(t,e){return mb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},mb(t,e)}function yA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Uh(t);if(e){var s=Uh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return vA(this,r)}}function vA(t,e){if(e&&(bb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return No(t)}function No(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uh(t){return Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uh(t)}function Co(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(fa||(fa={}));var S1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&mb(c,p)})(s,t);var e,r,i=yA(s);function s(c){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),Co(No(p=i.call(this)),"stepDragData",void 0),Co(No(p),"stepDrag",void 0),Co(No(p),"oldEdge",void 0),Co(No(p),"preTargetNode",void 0),Co(No(p),"targetRuleResults",void 0),Co(No(p),"sourceRuleResults",void 0),Co(No(p),"handleMouseDown",function(j){p.stepDrag&&p.stepDrag.handleMouseDown(j)}),Co(No(p),"onDragStart",function(){var j=p.props,D=j.x,I=j.y,K=j.edgeModel,re=K.startPoint,oe=K.endPoint,he=K.pointsList;p.oldEdge={startPoint:re,endPoint:oe,pointsList:he},p.setState({endX:D,endY:I,dragging:!0})}),Co(No(p),"onDragging",function(j){var D=j.deltaX,I=j.deltaY,K=p.state,re=K.endX,oe=K.endY,he=p.props,ye=he.graphModel,Ee=he.type,Re=ye.transformModel,Qe=ye.editConfigModel,Ze=dA(Re.moveCanvasPointByHtml([re,oe],D,I),2),_t=Ze[0],qe=Ze[1];p.setState({endX:_t,endY:qe,dragging:!0});var ht=p.props.edgeModel,rt=Fs({x:re,y:oe},ye);if(rt&&rt.node&&p.isAllowAdjust(rt).pass){var tn,un=ht.startPoint,Lt=ht.endPoint,pn=ht.sourceNode,nr=ht.targetNode;Ee===fa.SOURCE?tn={startPoint:{x:rt.anchor.x,y:rt.anchor.y},endPoint:{x:Lt.x,y:Lt.y},sourceNode:rt.node,targetNode:nr}:Ee===fa.TARGET&&(tn={startPoint:{x:un.x,y:un.y},endPoint:{x:rt.anchor.x,y:rt.anchor.y},sourceNode:pn,targetNode:rt.node}),ht.updateAfterAdjustStartAndEnd(tn)}else Ee===fa.SOURCE?ht.updateStartPoint({x:_t,y:qe}):Ee===fa.TARGET&&ht.updateEndPoint({x:_t,y:qe});ht.text.value&&Qe.adjustEdge&&ht.setText(Object.assign({},ht.text,ht.textPosition))}),Co(No(p),"onDragEnd",function(j){var D=j.event;try{var I;p.setState({dragging:!1});var K=p.props,re=K.graphModel,oe=K.edgeModel,he=K.type,ye=p.state,Ee=ye.endX,Re=ye.endY,Qe=ye.dragging,Ze=Fs({x:Ee,y:Re},re);if(!Qe)return;var _t,qe=!1;if(Ze&&Ze.node){var ht=p.isAllowAdjust(Ze),rt=ht.pass,tn=ht.msg,un=ht.newTargetNode;if(rt){var Lt=oe.getData(),pn=Lt.text,nr=Lt.sourceAnchorId,rr=nr===void 0?"":nr,zr=Lt.targetAnchorId;_t=Ga(Ga({sourceAnchorId:rr,targetAnchorId:zr===void 0?"":zr},pA(Lt,fA)),{},{text:(pn==null?void 0:pn.value)||""}),he===fa.SOURCE?(_t=Ga(Ga({},re.edgeGenerator(re.getNodeModelById(Ze.node.id).getData(),re.getNodeModelById(oe.targetNodeId).getData(),_t)),{},{sourceNodeId:Ze.node.id,sourceAnchorId:Ze.anchor.id,startPoint:{x:Ze.anchor.x,y:Ze.anchor.y},targetNodeId:oe.targetNodeId,endPoint:Ga({},oe.endPoint)}),oe.sourceNodeId===Ze.node.id&&oe.sourceAnchorId===Ze.anchor.id&&(qe=!0)):he===fa.TARGET&&(_t=Ga(Ga({},re.edgeGenerator(re.getNodeModelById(oe.sourceNodeId).getData(),re.getNodeModelById(Ze.node.id).getData(),_t)),{},{sourceNodeId:oe.sourceNodeId,startPoint:Ga({},oe.startPoint),targetNodeId:Ze.node.id,targetAnchorId:Ze.anchor.id,endPoint:{x:Ze.anchor.x,y:Ze.anchor.y}}),oe.targetNodeId===Ze.node.id&&oe.targetAnchorId===Ze.anchor.id&&(qe=!0))}else{qe=!0;var Ro=un.getData();re.eventCenter.emit(dt.CONNECTION_NOT_ALLOWED,{data:Ro,msg:tn})}}else qe=!0;if(qe)p.recoveryEdge();else{var Io=oe.getData();re.deleteEdgeById(oe.id);var da=re.addEdge(Ga({},_t));re.eventCenter.emit(dt.EDGE_EXCHANGE_NODE,{data:{newEdge:da.getData(),oldEdge:Io}})}(I=p.preTargetNode)===null||I===void 0||I.setElementState(gn.DEFAULT)}finally{p.props.graphModel.eventCenter.emit(dt.ADJUST_POINT_DRAGEND,{e:D,data:p.stepDragData})}}),Co(No(p),"recoveryEdge",function(){var j=p.props.edgeModel,D=p.oldEdge,I=D.startPoint,K=D.endPoint,re=D.pointsList;j.updateStartPoint(I),j.updateEndPoint(K),j.modelType!==Zt.LINE_EDGE&&(j.pointsList=re,j.initPoints())}),Co(No(p),"getAdjustPointStyle",function(){var j=p.props,D=j.graphModel.theme;return j.edgeModel,D.edgeAdjust}),p.state={dragging:!1,endX:0,endY:0},p.targetRuleResults=new Map,p.sourceRuleResults=new Map;var v=c.type,m=c.edgeModel,x=c.graphModel.eventCenter;return p.stepDragData={type:v,edgeData:m.getData()},p.stepDrag=new ni({onDragStart:p.onDragStart,onDragging:p.onDragging,onDragEnd:p.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:x,data:p.stepDragData}),p}return e=s,(r=[{key:"isAllowAdjust",value:function(c){var p=this.props,v=p.edgeModel,m=v.id,x=v.sourceNode,j=v.targetNode,D=v.sourceAnchorId,I=v.targetAnchorId,K=p.type,re=null,oe=null,he=null,ye=null;if(K===fa.SOURCE?(re=c.node,oe=j,he=c.anchor,ye=j.getAnchorInfo(I)):(re=x,oe=c.node,ye=c.anchor,he=x.getAnchorInfo(D)),this.preTargetNode&&this.preTargetNode!==c.node&&this.preTargetNode.setElementState(gn.DEFAULT),this.preTargetNode=c.node,ye.id===he.id)return{pass:!1,msg:"",newTargetNode:oe};var Ee="".concat(re.id,"_").concat(oe.id,"_").concat(he.id,"_").concat(ye.id);if(!this.targetRuleResults.has(Ee)){var Re=re.isAllowConnectedAsSource(oe,he,ye,m),Qe=oe.isAllowConnectedAsTarget(re,he,ye,m);this.sourceRuleResults.set(Ee,_c(Re)),this.targetRuleResults.set(Ee,_c(Qe))}var Ze=this.sourceRuleResults.get(Ee),_t=Ze.isAllPass,qe=Ze.msg,ht=this.targetRuleResults.get(Ee),rt=ht.isAllPass,tn=ht.msg,un=_t&&rt?gn.ALLOW_CONNECT:gn.NOT_ALLOW_CONNECT;return K===fa.SOURCE?re.setElementState(un):oe.setElementState(un),{pass:_t&&rt,msg:tn||qe,newTargetNode:oe}}},{key:"render",value:function(){var c=this.props,p=c.x,v=c.y,m=c.getAdjustPointShape,x=c.edgeModel,j=this.state.dragging;return Object(fe.g)("g",{pointerEvents:j?"none":"",onMouseDown:this.handleMouseDown},j?"":m(p,v,x))}}])&&hA(e.prototype,r),s}(fe.a);function _b(t){return _b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_b(t)}function bp(){return bp=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},bp.apply(this,arguments)}function gA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return j1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return j1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function j1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function bA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ob(t,e){return Ob=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ob(t,e)}function _A(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Hh(t);if(e){var s=Hh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return OA(this,r)}}function OA(t,e){if(e&&(_b(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ni(t)}function Ni(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hh(t){return Hh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Hh(t)}function pa(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var mp=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ob(c,p)})(s,t);var e,r,i=_A(s);function s(){var c;bA(this,s);for(var p=arguments.length,v=new Array(p),m=0;m<p;m++)v[m]=arguments[m];return pa(Ni(c=i.call.apply(i,[this].concat(v))),"startTime",void 0),pa(Ni(c),"contextMenuTime",void 0),pa(Ni(c),"clickTimer",void 0),pa(Ni(c),"textRef",Object(fe.f)()),pa(Ni(c),"handleHover",function(x,j){var D=c.props,I=D.model,K=D.graphModel.eventCenter;I.setHovered(x);var re=x?dt.EDGE_MOUSEENTER:dt.EDGE_MOUSELEAVE,oe=I.getData();K.emit(re,{data:oe,e:j})}),pa(Ni(c),"setHoverON",function(x){c.props.model.isHovered||(c.textRef&&c.textRef.current&&c.textRef.current.setHoverON(),c.handleHover(!0,x))}),pa(Ni(c),"setHoverOFF",function(x){c.props.model.isHovered&&(c.textRef&&c.textRef.current&&c.textRef.current.setHoverOFF(),c.handleHover(!1,x))}),pa(Ni(c),"handleContextMenu",function(x){x.preventDefault(),c.contextMenuTime=new Date().getTime(),c.clickTimer&&clearTimeout(c.clickTimer);var j=c.props,D=j.model,I=j.graphModel,K=I.getPointByClient({x:x.clientX,y:x.clientY});I.setElementStateById(D.id,gn.SHOW_MENU,K.domOverlayPosition),c.toFront(),D.isSelected||I.selectEdgeById(D.id);var re=D==null?void 0:D.getData();I.eventCenter.emit(dt.EDGE_CONTEXTMENU,{data:re,e:x,position:K})}),pa(Ni(c),"handleMouseDown",function(x){x.stopPropagation(),c.startTime=new Date().getTime()}),pa(Ni(c),"handleMouseUp",function(x){if(c.startTime&&!(new Date().getTime()-c.startTime>200||x.button===2)){var j=x.detail===2,D=c.props,I=D.model,K=D.graphModel,re=I==null?void 0:I.getData(),oe=K.getPointByClient({x:x.clientX,y:x.clientY});if(j){var he=K.editConfigModel,ye=K.textEditElement;if(ye&&ye.id===I.id&&K.setElementStateById(I.id,gn.DEFAULT),he.edgeTextEdit&&I.text.editable&&K.setElementStateById(I.id,gn.TEXT_EDIT),I.modelType===Zt.POLYLINE_EDGE){var Ee=I,Re=K.getPointByClient({x:x.x,y:x.y}).canvasOverlayPosition,Qe=Re.x,Ze=Re.y,_t=Qf({x:Qe,y:Ze},Ee.points);Ee.dbClickPosition=_t}K.eventCenter.emit(dt.EDGE_DBCLICK,{data:re,e:x,position:oe})}else K.eventCenter.emit(dt.ELEMENT_CLICK,{data:re,e:x,position:oe}),K.eventCenter.emit(dt.EDGE_CLICK,{data:re,e:x,position:oe});var qe=K.editConfigModel;K.selectEdgeById(I.id,vf(x,qe)),c.toFront()}}),c}return e=s,(r=[{key:"getShape",value:function(){return Object(fe.g)("g",null,this.getEdge())}},{key:"getTextStyle",value:function(){}},{key:"getText",value:function(){var c=this.props,p=c.model,v=c.graphModel;if(p.state===gn.TEXT_EDIT)return null;var m=!1,x=v.editConfigModel;return(p.text.draggable||x.edgeTextDraggable)&&(m=!0),Object(fe.g)(lA,{ref:this.textRef,editable:x.edgeTextEdit&&p.text.editable,model:p,graphModel:v,draggable:m})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=c.isSelected;return{start:p,end:v,hover:this.state.hover,isSelected:m}}},{key:"getLastTwoPoints",value:function(){var c=this.props.model;return[c.startPoint,c.endPoint]}},{key:"getArrowStyle",value:function(){return null}},{key:"getArrow",value:function(){var c=this.props.model,p=c.id,v=c.getArrowStyle(),m=v.refY,x=m===void 0?0:m,j=v.refX,D=j===void 0?2:j,I=gA(this.getLastTwoPoints(),2),K=I[0],re=I[1],oe="auto";return K!==null&&re!==null&&(oe=Na(Vr({x:re.x-K.x,y:re.y-K.y,z:0}))),Object(fe.g)("g",null,Object(fe.g)("defs",null,Object(fe.g)("marker",{id:"marker-start-".concat(p),refX:-D,refY:x,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse"},this.getStartArrow()),Object(fe.g)("marker",{id:"marker-end-".concat(p),refX:D,refY:x,overflow:"visible",orient:oe,markerUnits:"userSpaceOnUse"},this.getEndArrow())))}},{key:"getStartArrow",value:function(){var c=this.props.model.getArrowStyle();return c.stroke,c.strokeWidth,c.offset,c.verticalLength,Object(fe.g)("path",null)}},{key:"getEndArrow",value:function(){var c=this.props.model.getArrowStyle(),p=c.stroke,v=c.strokeWidth,m=c.offset,x=c.verticalLength;return Object(fe.g)("path",{stroke:p,fill:p,strokeWidth:v,transform:"rotate(180)",d:"M 0 0 L ".concat(m," -").concat(x," L ").concat(m," ").concat(x," Z")})}},{key:"getAdjustPointShape",value:function(c,p,v){var m=v.getAdjustPointStyle();return Object(fe.g)(al,bp({className:"lf-edge-adjust-point"},m,{x:c,y:p}))}},{key:"getAdjustPoints",value:function(){var c=this.props,p=c.model,v=c.graphModel,m=p.getAdjustStart(),x=p.getAdjustEnd();return Object(fe.g)("g",null,Object(fe.g)(S1,bp({type:"SOURCE"},m,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})),Object(fe.g)(S1,bp({type:"TARGET"},x,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:p,graphModel:v})))}},{key:"getAnimation",value:function(){}},{key:"getAppendWidth",value:function(){return Object(fe.g)("g",null)}},{key:"getAppend",value:function(){return Object(fe.g)("g",{className:"lf-edge-append"},this.getAppendWidth())}},{key:"getEdge",value:function(){return null}},{key:"toFront",value:function(){var c=this.props,p=c.graphModel,v=c.model;p.toFront(v.id)}},{key:"render",value:function(){var c=this.props,p=c.model,v=p.isSelected,m=p.isHitable,x=p.isShowAdjustPoint;return c.graphModel.animation,Object(fe.g)("g",null,Object(fe.g)("g",{className:["lf-edge",!m&&"pointer-none",v&&"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()),x&&v?this.getAdjustPoints():"")}}])&&mA(e.prototype,r),s}(fe.a);function wb(t){return wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wb(t)}function wA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return P1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return P1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function P1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var _p=function(t){var e={d:""};return Object.entries(t).forEach(function(r){var i=wA(r,2),s=i[0],c=i[1],p=wb(c);s!=="style"&&p==="object"||(e[s]=c)}),Object(fe.g)("path",e)};function xb(t){return xb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xb(t)}function Eb(){return Eb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Eb.apply(this,arguments)}function xA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Sb(t,e){return Sb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Sb(t,e)}function SA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Xh(t);if(e){var s=Xh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return jA(this,r)}}function jA(t,e){if(e&&(xb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Xh(t){return Xh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xh(t)}var jb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Sb(c,p)})(s,t);var e,r,i=SA(s);function s(){return xA(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getEdge",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=c.isAnimation,x=c.arrowConfig,j=c.getEdgeStyle(),D=c.getEdgeAnimationStyle(),I=D.strokeDasharray,K=D.stroke,re=D.strokeDashoffset,oe=D.animationName,he=D.animationDuration,ye=D.animationIterationCount,Ee=D.animationTimingFunction,Re=D.animationDirection;return Object(fe.g)(ol,Eb({},j,{x1:p.x,y1:p.y,x2:v.x,y2:v.y},x,m?{strokeDasharray:I,stroke:K,style:{strokeDashoffset:re,animationName:oe,animationDuration:he,animationIterationCount:ye,animationTimingFunction:Ee,animationDirection:Re}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model,p=c.startPoint,v=c.endPoint,m=rh({start:p,end:v}),x=m.d,j=m.strokeWidth,D=m.fill,I=m.strokeDasharray,K=m.stroke;return Object(fe.g)(_p,{d:x,fill:D,strokeWidth:j,stroke:K,strokeDasharray:I})}}])&&EA(e.prototype,r),s}(mp);function Pb(t){return Pb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pb(t)}function PA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return A1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return A1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function A1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}var AA=function(t){var e={points:"",fill:"none"};return Object.entries(t).forEach(function(r){var i=PA(r,2),s=i[0],c=i[1];(s==="style"||Pb(c)!=="object")&&(e[s]=c)}),Object(fe.g)("polyline",e)};function Ab(t){return Ab=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ab(t)}function T1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Yh(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?T1(Object(r),!0).forEach(function(i){Ha(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):T1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Tb(){return Tb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Tb.apply(this,arguments)}function TA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return M1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return M1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function M1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function MA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Mb(t,e){return Mb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Mb(t,e)}function kA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Vh(t);if(e){var s=Vh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return DA(this,r)}}function DA(t,e){if(e&&(Ab(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ua(t)}function Ua(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vh(t){return Vh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vh(t)}function Ha(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var kb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Mb(c,p)})(s,t);var e,r,i=kA(s);function s(){var c;return function(p,v){if(!(p instanceof v))throw new TypeError("Cannot call a class as a function")}(this,s),Ha(Ua(c=i.call(this)),"drag",void 0),Ha(Ua(c),"isDragging",void 0),Ha(Ua(c),"isShowAdjustPointTemp",void 0),Ha(Ua(c),"appendInfo",void 0),Ha(Ua(c),"onDragStart",function(){var p=c.props.model;p.dragAppendStart(),c.isShowAdjustPointTemp=p.isShowAdjustPoint,p.isShowAdjustPoint=!1}),Ha(Ua(c),"onDragging",function(p){var v=p.deltaX,m=p.deltaY,x=c.props,j=x.model,D=x.graphModel;c.isDragging=!0;var I=D.transformModel,K=D.editConfigModel,re=TA(I.fixDeltaXY(v,m),2),oe=re[0],he=re[1],ye=j,Ee=K.adjustEdgeMiddle;c.appendInfo=Ee?ye.dragAppendSimple(c.appendInfo,{x:oe,y:he}):ye.dragAppend(c.appendInfo,{x:oe,y:he})}),Ha(Ua(c),"onDragEnd",function(){var p=c.props,v=p.model,m=p.graphModel.eventCenter,x=v;x.dragAppendEnd(),c.isDragging=!1,x.isShowAdjustPoint=c.isShowAdjustPointTemp,c.appendInfo=void 0,m.emit(dt.EDGE_ADJUST,{data:x.getData()})}),Ha(Ua(c),"beforeDragStart",function(p,v){v.dragAble&&c.drag.handleMouseDown(p),c.appendInfo=v}),c.drag=new ni({onDragStart:c.onDragStart,onDragging:c.onDragging,onDragEnd:c.onDragEnd,isStopPropagation:!1}),c}return e=s,(r=[{key:"getEdge",value:function(){var c=this.props.model,p=c.points,v=c.isAnimation,m=c.arrowConfig,x=c.getEdgeStyle(),j=c.getEdgeAnimationStyle(),D=j.strokeDasharray,I=j.stroke,K=j.strokeDashoffset,re=j.animationName,oe=j.animationDuration,he=j.animationIterationCount,ye=j.animationTimingFunction,Ee=j.animationDirection;return Object(fe.g)(AA,Tb({points:p},x,m,v?{strokeDasharray:D,stroke:I,style:{strokeDashoffset:K,animationName:re,animationDuration:oe,animationIterationCount:he,animationTimingFunction:ye,animationDirection:Ee}}:{}))}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=c.points,v=c.isSelected,m={start:null,end:null,hover:this.state.hover,isSelected:v},x=ra(p);return x.length>=2&&(m.start=x[x.length-2],m.end=x[x.length-1]),m}},{key:"getLastTwoPoints",value:function(){var c=this.props.model.points,p=ra(c);return p.length>=2?[p[p.length-2],p[p.length-1]]:[null,null]}},{key:"getAppendAttributes",value:function(c){var p,v=c.start,m=c.end;if(v.x===m.x&&v.y===m.y)p="";else{var x={start:v,end:m,offset:10,verticalLength:5},j=ji(Yh(Yh({},x),{},{type:"start"})),D=ji(Yh(Yh({},x),{},{type:"end"}));p="M".concat(j.leftX," ").concat(j.leftY,`
- L`).concat(j.rightX," ").concat(j.rightY,`
- L`).concat(D.rightX," ").concat(D.rightY,`
- L`).concat(D.leftX," ").concat(D.leftY," z")}return{d:p,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}}},{key:"getAppendShape",value:function(c){var p=this.getAppendAttributes(c),v=p.d,m=p.strokeWidth,x=p.fill,j=p.strokeDasharray,D=p.stroke;return Object(fe.g)(_p,{d:v,fill:x,strokeWidth:m,stroke:D,strokeDasharray:j})}},{key:"getAppendWidth",value:function(){for(var c=this,p=this.props,v=p.model,m=p.graphModel,x=v.pointsList,j=v.draggable,D=[],I=x.length,K=function(oe){var he="lf-polyline-append",ye={start:{x:x[oe].x,y:x[oe].y},end:{x:x[oe+1].x,y:x[oe+1].y},startIndex:oe,endIndex:oe+1,direction:"",dragAble:!0},Ee=Object(fe.g)("g",{className:he},c.getAppendShape(ye)),Re=m.editConfigModel,Qe=Re.adjustEdge,Ze=Re.adjustEdgeMiddle;if(Qe&&j){var _t=ye.startIndex,qe=ye.endIndex,ht=Ze&&(_t===0||qe===I-1);ye.dragAble=!ht,ye.start.x===ye.end.x?(ye.dragAble&&(he+="-ew-resize"),ye.direction=Mn.VERTICAL):ye.start.y===ye.end.y&&(ye.dragAble&&(he+="-ns-resize"),ye.direction=Mn.HORIZONTAL),Ee=Object(fe.g)("g",{className:c.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(rt){return c.beforeDragStart(rt,ye)}},Object(fe.g)("g",{className:he},c.getAppendShape(ye)))}D.push(Ee)},re=0;re<I-1;re++)K(re);return Object(fe.g)("g",null,D)}}])&&MA(e.prototype,r),s}(mp);function Db(t){return Db=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Db(t)}function NA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return k1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return k1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function k1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Nb(){return Nb=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Nb.apply(this,arguments)}function CA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Cb(t,e){return Cb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Cb(t,e)}function IA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Kh(t);if(e){var s=Kh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return LA(this,r)}}function LA(t,e){if(e&&(Db(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Kh(t){return Kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kh(t)}var Rb=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Cb(c,p)})(s,t);var e,r,i=IA(s);function s(){return CA(this,s),i.apply(this,arguments)}return e=s,(r=[{key:"getEdge",value:function(){var c=this.props.model,p=c.getEdgeStyle(),v=c.path,m=c.isAnimation,x=c.arrowConfig,j=c.getEdgeAnimationStyle(),D=j.strokeDasharray,I=j.stroke,K=j.strokeDashoffset,re=j.animationName,oe=j.animationDuration,he=j.animationIterationCount,ye=j.animationTimingFunction,Ee=j.animationDirection;return Object(fe.g)(_p,Nb({d:v},p,x,m?{strokeDasharray:D,stroke:I,style:{strokeDashoffset:K,animationName:re,animationDuration:oe,animationIterationCount:he,animationTimingFunction:ye,animationDirection:Ee}}:{}))}},{key:"getAppendWidth",value:function(){var c=this.props.model.path;return Object(fe.g)(_p,{d:c,strokeWidth:10,stroke:"transparent",fill:"none"})}},{key:"getArrowInfo",value:function(){var c=this.props.model,p=this.state.hover,v=c.isSelected,m=c.getArrowStyle().offset,x=c.pointsList.map(function(D){return{x:D.x,y:D.y}}),j=NA(Jf(x,m),2);return{start:j[0],end:j[1],hover:p,isSelected:v}}},{key:"getLastTwoPoints",value:function(){var c=this.props.model,p=c.getArrowStyle().offset,v=c.pointsList.map(function(m){return{x:m.x,y:m.y}});return Jf(v,p)}}])&&RA(e.prototype,r),s}(mp);function Ib(t){return Ib=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ib(t)}function D1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function BA(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zA(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function FA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lb(t,e){return Lb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Lb(t,e)}function $A(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=qh(t);if(e){var s=qh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return WA(this,r)}}function WA(t,e){if(e&&(Ib(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function qh(t){return qh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qh(t)}var GA=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Lb(c,p)})(s,t);var e,r,i=$A(s);function s(){return zA(this,s),i.apply(this,arguments)}return e=s,r=[{key:"getArrowAttributes",value:function(){var c=this.props,p=c.arrowInfo,v=c.style,m=p.start,x=p.end,j={start:m,end:x,offset:v.offset,verticalLength:v.verticalLength,type:"end"},D=ji(j),I=D.leftX,K=D.leftY,re=D.rightX,oe=D.rightY;return function(he){for(var ye=1;ye<arguments.length;ye++){var Ee=arguments[ye]!=null?arguments[ye]:{};ye%2?D1(Object(Ee),!0).forEach(function(Re){BA(he,Re,Ee[Re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(Ee)):D1(Object(Ee)).forEach(function(Re){Object.defineProperty(he,Re,Object.getOwnPropertyDescriptor(Ee,Re))})}return he}({d:"M".concat(I," ").concat(K," L").concat(x.x," ").concat(x.y," L").concat(re," ").concat(oe," z")},v)}},{key:"getShape",value:function(){var c=this.getArrowAttributes(),p=c.d,v=c.strokeWidth,m=c.stroke,x=c.fill;return Object(fe.g)(_p,{d:p,fill:x,strokeWidth:v,stroke:m})}},{key:"render",value:function(){return Object(fe.g)("g",{className:"lf-arrow"},this.getShape())}}],r&&FA(e.prototype,r),s}(fe.a),N1=function(t,e){return Se(t,e)},UA=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},Bb=function(){return pt.a.Date.now()},HA=Math.max,XA=Math.min,YA=function(t,e,r){var i,s,c,p,v,m,x=0,j=!1,D=!1,I=!0;if(typeof t!="function")throw new TypeError("Expected a function");function K(Re){var Qe=i,Ze=s;return i=s=void 0,x=Re,p=t.apply(Ze,Qe)}function re(Re){return x=Re,v=setTimeout(he,e),j?K(Re):p}function oe(Re){var Qe=Re-m;return m===void 0||Qe>=e||Qe<0||D&&Re-x>=c}function he(){var Re=Bb();if(oe(Re))return ye(Re);v=setTimeout(he,function(Qe){var Ze=e-(Qe-m);return D?XA(Ze,c-(Qe-x)):Ze}(Re))}function ye(Re){return v=void 0,I&&i?K(Re):(i=s=void 0,p)}function Ee(){var Re=Bb(),Qe=oe(Re);if(i=arguments,s=this,m=Re,Qe){if(v===void 0)return re(m);if(D)return clearTimeout(v),v=setTimeout(he,e),K(m)}return v===void 0&&(v=setTimeout(he,e)),p}return e=Zi(e)||0,zn(r)&&(j=!!r.leading,c=(D="maxWait"in r)?HA(Zi(r.maxWait)||0,e):c,I="trailing"in r?!!r.trailing:I),Ee.cancel=function(){v!==void 0&&clearTimeout(v),x=0,i=m=s=v=void 0},Ee.flush=function(){return v===void 0?p:ye(Bb())},Ee},VA=o(172);function KA(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Mu(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var C1,R1,I1,qA=function(){function t(i){(function(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")})(this,t),Mu(this,"undos",[]),Mu(this,"redos",[]),Mu(this,"callbacks",[]),Mu(this,"stopWatch",null),Mu(this,"curData",null),Mu(this,"maxSize",50),Mu(this,"waitTime",100),Mu(this,"eventCenter",void 0),this.eventCenter=i}var e,r;return e=t,(r=[{key:"add",value:function(i){N1(UA(this.undos),i)||(this.undos.push(i),N1(this.curData,i)||(this.redos=[]),this.eventCenter.emit(dt.HISTORY_CHANGE,{data:{undos:this.undos,redos:this.redos,undoAble:this.undos.length>1,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 i=this.undos.pop();this.redos.push(i);var s=this.undos.pop();return this.curData=Ln(s),s}}},{key:"redoAble",value:function(){return this.redos.length>0}},{key:"redo",value:function(){if(this.redoAble()){var i=this.redos.pop();return this.curData=Ln(i),i}}},{key:"watch",value:function(i){var s=this;this.stopWatch&&this.stopWatch(),this.undos.push(i.modelToGraphData()),this.stopWatch=Object(VA.a)(i,YA(function(){var c=i.modelToHistoryData();c&&s.add(c)},this.waitTime))}}])&&KA(e.prototype,r),t}();function zb(t){return zb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zb(t)}function ZA(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||function(r,i){if(!!r){if(typeof r=="string")return L1(r,i);var s=Object.prototype.toString.call(r).slice(8,-1);if(s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set")return Array.from(r);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return L1(r,i)}}(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function L1(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function B1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Fc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?B1(Object(r),!0).forEach(function(i){$c(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):B1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function z1(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Fb(t,e){return Fb=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Fb(t,e)}function JA(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Zh(t);if(e){var s=Zh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return QA(this,r)}}function QA(t,e){if(e&&(zb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gl(t)}function gl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zh(t){return Zh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zh(t)}function $c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var F1,$1,W1,$b=Ci((I1=R1=function(t){(function(p,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(v&&v.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),v&&Fb(p,v)})(c,t);var e,r,i,s=JA(c);function c(){var p;return function(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,c),$c(gl(p=s.call(this)),"ref",Object(fe.f)()),$c(gl(p),"__prevText",{type:"",text:"",id:""}),$c(gl(p),"keyupHandler",function(v){var m=p.props.graphModel.textEditElement;v.key==="Enter"&&v.altKey&&m.setElementState(0)}),$c(gl(p),"inputHandler",function(v){var m=v.target.innerText,x=p.props.graphModel.textEditElement;p.__prevText={type:x.type,text:m.replace(/(\r\n)+$|(\n)+$/,""),id:x.id}}),$c(gl(p),"keydownHandler",function(v){v.stopPropagation()}),p.state={style:{left:0,top:0}},p}return e=c,i=[{key:"getDerivedStateFromProps",value:function(p){var v,m=p.graphModel,x=m.transformModel,j=m.theme,D=j.inputText,I=m.textEditElement;if(I){var K;if((K=I.text)===null||K===void 0||!K.value)if(I.BaseType===Jn.EDGE){var re=(I=I).text,oe=I.textPosition,he=oe.x,ye=oe.y;re.x=he,re.y=ye,I.setText(re)}else I=I;var Ee={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(I.BaseType===Jn.EDGE){var Re=j.edgeText,Qe=Re.overflowMode,Ze=Re.lineHeight,_t=Re.wrapPadding,qe=Re.textWidth;qe&&Qe==="autoWrap"&&(v=Fc(Fc({},Ee),{},{width:qe,minWidth:qe,lineHeight:Ze,padding:_t}))}else if(I.BaseType===Jn.NODE){var ht=j.nodeText,rt=ht.overflowMode,tn=ht.lineHeight,un=ht.wrapPadding,Lt=ht.textWidth,pn=I,nr=pn.width,rr=pn.modelType,zr=pn.textWidth||Lt||nr;(rr!==Zt.TEXT_NODE&&rt==="autoWrap"||rr===Zt.TEXT_NODE&&Lt)&&(v=Fc(Fc({},Ee),{},{width:zr,minWidth:zr,lineHeight:tn,padding:un}))}var Ro=I.text,Io=Ro.x,da=Ro.y,Wc=ZA(x.CanvasPointToHtmlPoint([Io,da]),2);return{style:Fc(Fc({left:Wc[0],top:Wc[1]},v),D)}}}}],(r=[{key:"componentDidUpdate",value:function(){var p=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var v=this.__prevText,m=v.text,x=v.id;p.updateText(x,m),p.eventCenter.emit(dt.TEXT_UPDATE,Fc({},this.__prevText)),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}}},{key:"placeCaretAtEnd",value:function(p){if(window.getSelection!==void 0&&document.createRange!==void 0){var v=document.createRange();v.selectNodeContents(p),v.collapse(!1);var m=window.getSelection();m.removeAllRanges(),m.addRange(v)}}},{key:"render",value:function(){var p,v=this.props.graphModel.textEditElement,m=this.state.style;return v?Object(fe.g)("div",{contentEditable:!0,className:"lf-text-input",style:m,ref:this.ref,key:v.id,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler},(p=v.text)===null||p===void 0?void 0:p.value):null}}])&&z1(e.prototype,r),i&&z1(e,i),c}(fe.a),$c(R1,"toolName","textEdit"),C1=I1))||C1,e2=function(t){return t.modelType===Zt.LINE_EDGE?function(e){var r=e.startPoint,i=e.endPoint,s=(r.x+i.x)/2,c=(r.y+i.y)/2,p=Math.abs(r.x-i.x)+10,v=Math.abs(r.y-i.y)+10;return{x:s-p/2,y:c-v/2,x1:s+p/2,y1:c+v/2}}(t):t.modelType===Zt.POLYLINE_EDGE?function(e){var r=e.points,i=ra(r),s=na(i,8),c=s.x,p=s.y,v=s.width,m=s.height;return{x:c-v/2,y:p-m/2,x1:c+v/2,y1:p+m/2}}(t):t.modelType===Zt.BEZIER_EDGE?function(e){var r=e.path,i=Er(r),s=na(i,8),c=s.x,p=s.y,v=s.width,m=s.height;return{x:c-v/2,y:p-m/2,x1:c+v/2,y1:p+m/2}}(t):void 0};function Wb(t){return Wb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wb(t)}function G1(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var s=r==null?null:typeof Symbol!="undefined"&&r[Symbol.iterator]||r["@@iterator"];if(s!=null){var c,p,v=[],m=!0,x=!1;try{for(s=s.call(r);!(m=(c=s.next()).done)&&(v.push(c.value),!i||v.length!==i);m=!0);}catch(j){x=!0,p=j}finally{try{m||s.return==null||s.return()}finally{if(x)throw p}}return v}}(t,e)||U1(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function t2(t){return function(e){if(Array.isArray(e))return Gb(e)}(t)||function(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||U1(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function U1(t,e){if(t){if(typeof t=="string")return Gb(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gb(t,e):void 0}}function Gb(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function n2(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ub(t,e){return Ub=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ub(t,e)}function r2(t){var e=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=Jh(t);if(e){var s=Jh(this).constructor;r=Reflect.construct(i,arguments,s)}else r=i.apply(this,arguments);return o2(this,r)}}function o2(t,e){if(e&&(Wb(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bl(t)}function bl(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jh(t){return Jh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jh(t)}function ml(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Hb=Ci((W1=$1=function(t){(function(c,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");c.prototype=Object.create(p&&p.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),p&&Ub(c,p)})(s,t);var e,r,i=r2(s);function s(c){var p;(function(j,D){if(!(j instanceof D))throw new TypeError("Cannot call a class as a function")})(this,s),ml(bl(p=i.call(this)),"stepDrag",void 0),ml(bl(p),"handleMouseDown",function(j){p.stepDrag.handleMouseDown(j)}),ml(bl(p),"handleWheelEvent",function(j){var D,I;j.preventDefault();var K=j.deltaX,re=j.deltaY,oe=j.clientX,he=j.clientY,ye=j.ctrlKey,Ee=new WheelEvent("wheel",{deltaX:K,deltaY:re,clientX:oe,clientY:he,ctrlKey:ye});(D=p.props.logicFlow.container)===null||D===void 0||(I=D.querySelector('.lf-canvas-overlay[name="canvas-overlay"]'))===null||I===void 0||I.dispatchEvent(Ee)}),ml(bl(p),"onDragging",function(j){var D=j.deltaX,I=j.deltaY,K=p.props.graphModel,re=K.getSelectElements(!0);K.moveNodes(re.nodes.map(function(oe){return oe.id}),D,I)}),ml(bl(p),"handleContextMenu",function(j){j.preventDefault();var D=p.props,I=D.graphModel,K=D.graphModel,re=K.eventCenter,oe=K.selectElements,he=I.getPointByClient({x:j.clientX,y:j.clientY}),ye={nodes:[],edges:[]};t2(oe.values()).forEach(function(Ee){Ee.BaseType===Jn.NODE&&ye.nodes.push(Ee.getData()),Ee.BaseType===Jn.EDGE&&ye.edges.push(Ee.getData())}),re.emit(dt.SELECTION_CONTEXTMENU,{data:ye,e:j,position:he})});var v=c.graphModel,m=v.gridSize,x=v.eventCenter;return p.stepDrag=new ni({onDragging:p.onDragging,step:m,eventType:"SELECTION",eventCenter:x}),p}return e=s,(r=[{key:"render",value:function(){var c=this.props.graphModel,p=c.selectElements,v=c.transformModel;if(!(p.size<=1)){var m=Number.MAX_SAFE_INTEGER,x=Number.MAX_SAFE_INTEGER,j=Number.MIN_SAFE_INTEGER,D=Number.MIN_SAFE_INTEGER;p.forEach(function(oe){var he={x:0,y:0,x1:0,y1:0};oe.BaseType===Jn.NODE&&(he=function(ye){var Ee=ye.x,Re=ye.y,Qe=ye.width,Ze=ye.height;return{x:Ee-Qe/2,y:Re-Ze/2,x1:Ee+Qe/2,y1:Re+Ze/2}}(oe)),oe.BaseType===Jn.EDGE&&(he=e2(oe)),m=Math.min(m,he.x),x=Math.min(x,he.y),j=Math.max(j,he.x1),D=Math.max(D,he.y1)});var I=G1(v.CanvasPointToHtmlPoint([m,x]),2);m=I[0],x=I[1];var K=G1(v.CanvasPointToHtmlPoint([j,D]),2);j=K[0],D=K[1];var re={left:"".concat(m-10,"px"),top:"".concat(x-10,"px"),width:"".concat(j-m+20,"px"),height:"".concat(D-x+20,"px")};return Object(fe.g)("div",{className:"lf-multiple-select",style:re,onMouseDown:this.handleMouseDown,onContextMenu:this.handleContextMenu,onWheel:this.handleWheelEvent})}}}])&&n2(e.prototype,r),s}(fe.a),ml($1,"toolName","multipleSelect"),F1=W1))||F1;function i2(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qh(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a2=function(){function t(i){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Qh(this,"tools",void 0),Qh(this,"components",void 0),Qh(this,"toolMap",new Map),Qh(this,"instance",void 0),this.instance=i,this.isDisabledTool($b.toolName)||this.registerTool($b.toolName,$b),this.isDisabledTool(Hb.toolName)||this.registerTool(Hb.toolName,Hb);var s=i.graphModel;s.eventCenter.on("".concat(dt.GRAPH_TRANSFORM,",").concat(dt.NODE_CLICK,",").concat(dt.BLANK_CLICK," "),function(){var c=s.textEditElement,p=s.editConfigModel,v=p.edgeTextEdit,m=p.nodeTextEdit;(v||m)&&c&&s.textEditElement.setElementState(gn.DEFAULT)})}var e,r;return e=t,(r=[{key:"isDisabledTool",value:function(i){return this.instance.options.disabledTools.indexOf(i)!==-1}},{key:"registerTool",value:function(i,s){this.toolMap.set(i,s)}},{key:"getTools",value:function(){return Array.from(this.toolMap.values())}},{key:"getInstance",value:function(){return this.instance}}])&&i2(e.prototype,r),t}(),u2=o(173),c2=o.n(u2);function s2(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Xb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var H1=function(){function t(i){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,t),Xb(this,"mousetrap",void 0),Xb(this,"options",void 0),Xb(this,"target",void 0),i.keyboard||(i.keyboard={enabled:!1}),this.options=i;var s=i.lf;this.target=s.container,this.mousetrap=new c2.a(this.target),i.keyboard.enabled&&!s.options.isSilentMode&&this.enable(!0)}var e,r;return e=t,(r=[{key:"initShortcuts",value:function(){var i=this,s=this.options.keyboard.shortcuts;if(s)if(jn(s))s.forEach(function(m){var x=m.keys,j=m.callback,D=m.action;return i.on(x,j,D)});else{var c=s.keys,p=s.callback,v=s.action;this.on(c,p,v)}}},{key:"on",value:function(i,s,c){this.mousetrap.bind(this.getKeys(i),s,c)}},{key:"disabled",get:function(){return this.options.keyboard.enabled!==!0}},{key:"off",value:function(i,s){this.mousetrap.unbind(this.getKeys(i),s)}},{key:"enable",value:function(i){(this.disabled||i)&&(this.options.keyboard.enabled=!0,this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))}},{key:"disable",value:function(){this.disabled||(this.options.keyboard.enabled=!1,this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))}},{key:"getKeys",value:function(i){var s=this;return(Array.isArray(i)?i:[i]).map(function(c){return s.formatKey(c)})}},{key:"formatKey",value:function(i){return i.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")}}])&&s2(e.prototype,r),t}(),l2=H1,Xa=null;function X1(t,e){return t.x+=e,t.y+=e,t.text&&(t.text.x+=e,t.text.y+=e),t}function Y1(t,e){return t.startPoint&&(t.startPoint.x+=e,t.startPoint.y+=e),t.endPoint&&(t.endPoint.x+=e,t.endPoint.y+=e),t.pointsList&&t.pointsList.length>0&&t.pointsList.forEach(function(r){r.x+=e,r.y+=e}),t.text&&(t.text.x+=e,t.text.y+=e),t}var _l=40,Yb=40;function Vb(t){return Vb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vb(t)}function V1(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,i)}return r}function Op(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?V1(Object(r),!0).forEach(function(i){qn(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):V1(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function K1(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function qn(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Kb=Symbol("plugin register by Logicflow.use"),qb=function(){function t(s){var c,p,v=this;(function(m,x){if(!(m instanceof x))throw new TypeError("Cannot call a class as a function")})(this,t),qn(this,"container",void 0),qn(this,"width",void 0),qn(this,"height",void 0),qn(this,"graphModel",void 0),qn(this,"history",void 0),qn(this,"viewMap",new Map),qn(this,"tool",void 0),qn(this,"keyboard",void 0),qn(this,"dnd",void 0),qn(this,"options",void 0),qn(this,"snaplineModel",void 0),qn(this,"components",[]),qn(this,"plugins",void 0),qn(this,"extension",{}),qn(this,"adapterIn",void 0),qn(this,"adapterOut",void 0),qn(this,"getView",function(m){return v.viewMap.get(m)}),s=H0(s),this.options=s,this.container=this.initContainer(s.container),this.plugins=s.plugins,this.graphModel=new gS(Op({},s)),this.tool=new a2(this),this.history=new qA(this.graphModel.eventCenter),this.dnd=new dj({lf:this}),this.keyboard=new l2({lf:this,keyboard:s.keyboard}),s.snapline!==!1&&(this.snaplineModel=new i1(this.graphModel),c=this.graphModel.eventCenter,p=this.snaplineModel,c.on("node:mousemove",function(m){var x=m.data;p.setNodeSnapLine(x)}),c.on("node:mouseup",function(){p.clearSnapline()})),function(m,x){var j=m.keyboard,D=j.options.keyboard;j.on(["cmd + c","ctrl + c"],function(){if(Yb=_l,!D.enabled||x.textEditElement)return!0;var I=m.options.guards,K=x.getSelectElements(!1);return I&&I.beforeClone&&!I.beforeClone(K)||K.nodes.length===0&&K.edges.length===0?(Xa=null,!0):((Xa=K).nodes.forEach(function(re){return X1(re,_l)}),Xa.edges.forEach(function(re){return Y1(re,_l)}),!1)}),j.on(["cmd + v","ctrl + v"],function(){if(!D.enabled||x.textEditElement)return!0;if(Xa&&(Xa.nodes||Xa.edges)){m.clearSelectElements();var I=m.addElements(Xa,Yb);if(!I)return!0;I.nodes.forEach(function(K){return m.selectElementById(K.id,!0)}),I.edges.forEach(function(K){return m.selectElementById(K.id,!0)}),Xa.nodes.forEach(function(K){return X1(K,_l)}),Xa.edges.forEach(function(K){return Y1(K,_l)}),Yb+=_l}return!1}),j.on(["cmd + z","ctrl + z"],function(){return!D.enabled||!!x.textEditElement||(m.undo(),!1)}),j.on(["cmd + y","ctrl + y"],function(){return!D.enabled||!!x.textEditElement||(m.redo(),!1)}),j.on(["backspace"],function(){if(!D.enabled||x.textEditElement)return!0;var I=x.getSelectElements(!0);return m.clearSelectElements(),I.edges.forEach(function(K){return m.deleteEdge(K.id)}),I.nodes.forEach(function(K){return m.deleteNode(K.id)}),!1})}(this,this.graphModel),this.keyboard.initShortcuts(),this.defaultRegister(),this.installPlugins(s.disabledPlugins)}var e,r,i;return e=t,r=[{key:"register",value:function(s,c){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];if(typeof s=="string"){var v={BaseEdge:mp,BaseEdgeModel:Lf,BaseNode:Wa,BaseNodeModel:$a,RectNode:$g,RectNodeModel:bg,CircleNode:Hg,CircleNodeModel:Qv,PolygonNode:qg,PolygonNodeModel:hg,TextNode:cb,TextNodeModel:wg,LineEdge:jb,LineEdgeModel:Gs,DiamondNode:eb,DiamondNodeModel:og,PolylineEdge:kb,PolylineEdgeModel:Sc,BezierEdge:Rb,BezierEdgeModel:Yv,EllipseNode:ib,EllipseNodeModel:cg,HtmlNode:pb,HtmlNodeModel:Sg,h:fe.g,type:s};this.viewMap.forEach(function(I){var K=I.extendKey;K&&(v[K]=I)}),this.graphModel.modelMap.forEach(function(I){var K=I.extendKey;K&&(v[K]=I)});var m=c(v),x=m.view,j=m.model,D=x;p&&!D.isObervered&&(D.isObervered=!0,D=lt(D)),this.setView(s,D),this.graphModel.setModel(s,j)}else this.registerElement(s)}},{key:"registerElement",value:function(s){var c=s.view;s.isObserverView===!1||c.isObervered||(c.isObervered=!0,c=lt(c)),this.setView(s.type,c),this.graphModel.setModel(s.type,s.model)}},{key:"batchRegister",value:function(){var s=this,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];c.forEach(function(p){s.registerElement(p)})}},{key:"defaultRegister",value:function(){this.registerElement({view:$g,model:bg,type:"rect"}),this.registerElement({type:"circle",view:Hg,model:Qv}),this.registerElement({type:"polygon",view:qg,model:hg}),this.registerElement({type:"line",view:jb,model:Gs}),this.registerElement({type:"polyline",view:kb,model:Sc}),this.registerElement({type:"bezier",view:Rb,model:Yv}),this.registerElement({type:"text",view:cb,model:wg}),this.registerElement({type:"ellipse",view:ib,model:cg}),this.registerElement({type:"diamond",view:eb,model:og}),this.registerElement({type:"html",view:pb,model:Sg})}},{key:"selectElementById",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0&&arguments[1],p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];this.graphModel.selectElementById(s,c),!c&&p&&this.graphModel.toFront(s)}},{key:"focusOn",value:function(s){var c=this.graphModel.transformModel,p=s.coordinate,v=s.id;if(!p){var m=this.getNodeModelById(v);m&&(p=m.getData());var x=this.getEdgeModelById(v);x&&(p=x.textPosition)}var j=p,D=j.x,I=j.y;c.focusOn(D,I,this.graphModel.width,this.graphModel.height)}},{key:"setTheme",value:function(s){this.graphModel.setTheme(s)}},{key:"resize",value:function(s,c){this.graphModel.resize(s,c),this.options.width=this.graphModel.width,this.options.height=this.graphModel.height}},{key:"setDefaultEdgeType",value:function(s){this.graphModel.setDefaultEdgeType(s)}},{key:"updateText",value:function(s,c){this.graphModel.updateText(s,c)}},{key:"deleteElement",value:function(s){var c,p,v,m=this.getModelById(s);return!!m&&(p=(v=(qn(c={},Jn.NODE,this.deleteNode),qn(c,Jn.EDGE,this.deleteEdge),c)[m.BaseType])===null||v===void 0?void 0:v.call(this,s))!==null&&p!==void 0&&p}},{key:"getModelById",value:function(s){return this.graphModel.getElement(s)}},{key:"getDataById",value:function(s){var c;return(c=this.graphModel.getElement(s))===null||c===void 0?void 0:c.getData()}},{key:"changeNodeType",value:function(s,c){this.graphModel.changeNodeType(s,c)}},{key:"changeEdgeType",value:function(s,c){this.graphModel.changeEdgeType(s,c)}},{key:"getNodeEdges",value:function(s){return this.graphModel.getNodeEdges(s)}},{key:"addNode",value:function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt.NODE_ADD,p=arguments.length>2?arguments[2]:void 0;return this.graphModel.addNode(s,c,p)}},{key:"deleteNode",value:function(s){var c=this.graphModel.getNodeModelById(s);if(!c)return!1;var p=c.getData(),v=this.options.guards,m=!v||!v.beforeDelete||v.beforeDelete(p);return m&&this.graphModel.deleteNode(s),m}},{key:"cloneNode",value:function(s){var c=this.graphModel.getNodeModelById(s).getData(),p=this.options.guards;if(!p||!p.beforeClone||p.beforeClone(c))return this.graphModel.cloneNode(s)}},{key:"changeNodeId",value:function(s,c){return this.graphModel.changeNodeId(s,c)}},{key:"getNodeModelById",value:function(s){return this.graphModel.getNodeModelById(s)}},{key:"getNodeDataById",value:function(s){var c;return(c=this.graphModel.getNodeModelById(s))===null||c===void 0?void 0:c.getData()}},{key:"addEdge",value:function(s){return this.graphModel.addEdge(s)}},{key:"deleteEdge",value:function(s){var c=this.options.guards,p=this.graphModel.edgesMap[s];if(!p)return!1;var v=p.model.getData(),m=!c||!c.beforeDelete||c.beforeDelete(v);return m&&this.graphModel.deleteEdgeById(s),m}},{key:"deleteEdgeByNodeId",value:function(s){var c=s.sourceNodeId,p=s.targetNodeId;c&&p?this.graphModel.deleteEdgeBySourceAndTarget(c,p):c?this.graphModel.deleteEdgeBySource(c):p&&this.graphModel.deleteEdgeByTarget(p)}},{key:"changeEdgeId",value:function(s,c){return this.graphModel.changeEdgeId(s,c)}},{key:"getEdgeModelById",value:function(s){var c;return(c=this.graphModel.edgesMap[s])===null||c===void 0?void 0:c.model}},{key:"getEdgeModels",value:function(s){var c=this.graphModel.edges,p=s.sourceNodeId,v=s.targetNodeId;if(p&&v){var m=[];return c.forEach(function(D){D.sourceNodeId===p&&D.targetNodeId===v&&m.push(D)}),m}if(p){var x=[];return c.forEach(function(D){D.sourceNodeId===p&&x.push(D)}),x}if(v){var j=[];return c.forEach(function(D){D.targetNodeId===v&&j.push(D)}),j}return[]}},{key:"getEdgeDataById",value:function(s){var c;return(c=this.getEdgeModelById(s))===null||c===void 0?void 0:c.getData()}},{key:"getNodeIncomingEdge",value:function(s){return this.graphModel.getNodeIncomingEdge(s)}},{key:"getNodeOutgoingEdge",value:function(s){return this.graphModel.getNodeOutgoingEdge(s)}},{key:"getNodeIncomingNode",value:function(s){return this.graphModel.getNodeIncomingNode(s)}},{key:"getNodeOutgoingNode",value:function(s){return this.graphModel.getNodeOutgoingNode(s)}},{key:"editText",value:function(s){this.graphModel.editText(s)}},{key:"setProperties",value:function(s,c){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.setProperties(Or(c))}},{key:"deleteProperty",value:function(s,c){var p;(p=this.graphModel.getElement(s))===null||p===void 0||p.deleteProperty(c)}},{key:"getProperties",value:function(s){var c;return(c=this.graphModel.getElement(s))===null||c===void 0?void 0:c.getProperties()}},{key:"toFront",value:function(s){this.graphModel.toFront(s)}},{key:"setElementZIndex",value:function(s,c){return this.graphModel.setElementZIndex(s,c)}},{key:"addElements",value:function(s){for(var c=this,p=s.nodes,v=s.edges,m={},x={nodes:[],edges:[]},j=0;j<p.length;j++){var D=p[j],I=D.id,K=this.addNode(D);if(!K)return;I&&(m[I]=K.id),x.nodes.push(K)}return v.forEach(function(re){var oe=re.sourceNodeId,he=re.targetNodeId;m[oe]&&(oe=m[oe]),m[he]&&(he=m[he]);var ye=c.graphModel.addEdge(Op(Op({},re),{},{sourceNodeId:oe,targetNodeId:he}));x.edges.push(ye)}),x}},{key:"getAreaElement",value:function(s,c){var p=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],v=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3],m=arguments.length>4&&arguments[4]!==void 0&&arguments[4];return this.graphModel.getAreaElement(s,c,p,v,m).map(function(x){return x.getData()})}},{key:"getSelectElements",value:function(){var s=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];return this.graphModel.getSelectElements(s)}},{key:"clearSelectElements",value:function(){this.graphModel.clearSelectElements()}},{key:"getGraphData",value:function(){var s=this.graphModel.modelToGraphData();if(this.adapterOut){for(var c=arguments.length,p=new Array(c),v=0;v<c;v++)p[v]=arguments[v];return this.adapterOut.apply(this,[s].concat(p))}return s}},{key:"getGraphRawData",value:function(){return this.graphModel.modelToGraphData()}},{key:"clearData",value:function(){this.graphModel.clearData()}},{key:"updateEditConfig",value:function(s){var c=this.graphModel,p=c.editConfigModel,v=c.transformModel;p.updateEditConfig(s),(s==null?void 0:s.stopMoveGraph)!==void 0&&v.updateTranslateLimits(s.stopMoveGraph),s!=null&&s.isSilentMode?this.keyboard.disable():this.keyboard.enable(!0)}},{key:"getEditConfig",value:function(){return this.graphModel.editConfigModel.getConfig()}},{key:"getPointByClient",value:function(s,c){return this.graphModel.getPointByClient({x:s,y:c})}},{key:"undo",value:function(){if(this.history.undoAble()){var s=Or(this.history.undo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"redo",value:function(){if(this.history.redoAble()){var s=Or(this.history.redo());this.clearSelectElements(),this.graphModel.graphDataToModel(s)}}},{key:"zoom",value:function(s,c){return this.graphModel.transformModel.zoom(s,c)}},{key:"resetZoom",value:function(){this.graphModel.transformModel.resetZoom()}},{key:"setZoomMiniSize",value:function(s){this.graphModel.transformModel.setZoomMiniSize(s)}},{key:"setZoomMaxSize",value:function(s){this.graphModel.transformModel.setZoomMaxSize(s)}},{key:"getTransform",value:function(){var s=this.graphModel.transformModel;return{SCALE_X:s.SCALE_X,SCALE_Y:s.SCALE_Y,TRANSLATE_X:s.TRANSLATE_X,TRANSLATE_Y:s.TRANSLATE_Y}}},{key:"translate",value:function(s,c){this.graphModel.transformModel.translate(s,c)}},{key:"resetTranslate",value:function(){var s=this.graphModel.transformModel,c=s.TRANSLATE_X,p=s.TRANSLATE_Y;this.translate(-c,-p)}},{key:"translateCenter",value:function(){this.graphModel.translateCenter()}},{key:"fitView",value:function(s,c){c===void 0&&(c=s),this.graphModel.fitView(s,c)}},{key:"openEdgeAnimation",value:function(s){this.graphModel.openEdgeAnimation(s)}},{key:"closeEdgeAnimation",value:function(s){this.graphModel.closeEdgeAnimation(s)}},{key:"on",value:function(s,c){this.graphModel.eventCenter.on(s,c)}},{key:"off",value:function(s,c){this.graphModel.eventCenter.off(s,c)}},{key:"once",value:function(s,c){this.graphModel.eventCenter.once(s,c)}},{key:"emit",value:function(s,c){this.graphModel.eventCenter.emit(s,c)}},{key:"initContainer",value:function(s){var c=document.createElement("div");return c.style.position="relative",c.style.width="100%",c.style.height="100%",s.innerHTML="",s.appendChild(c),c}},{key:"installPlugins",value:function(){var s,c=this,p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=(s=this.plugins)!==null&&s!==void 0?s:t.extensions;v.forEach(function(m){var x=null,j=null;m[Kb]?(x=m.extension,j=m.props):x=m;var D=x.pluginName||x.name;p.indexOf(D)===-1&&c.installPlugin(x,j)})}},{key:"installPlugin",value:function(s,c){if(Vb(s)==="object"){var p=s.install,v=s.render;return p&&p.call(s,this,t),v&&this.components.push(v.bind(s)),void(this.extension[s.pluginName]=s)}var m=s,x=new m({lf:this,LogicFlow:t,options:this.options.pluginsOptions,props:c});x.render&&this.components.push(x.render.bind(x)),this.extension[m.pluginName]=x}},{key:"updateAttributes",value:function(s,c){this.graphModel.updateAttributes(s,c)}},{key:"createFakerNode",value:function(s){var c=this.graphModel.modelMap.get(s.type);if(c){var p=new c(Op(Op({},s),{},{virtual:!0}),this.graphModel);return this.graphModel.setFakerNode(p),p}}},{key:"removeFakerNode",value:function(){this.graphModel.removeFakerNode()}},{key:"setNodeSnapLine",value:function(s){this.snaplineModel&&this.snaplineModel.setNodeSnapLine(s)}},{key:"removeNodeSnapLine",value:function(){this.snaplineModel&&this.snaplineModel.clearSnapline()}},{key:"setView",value:function(s,c){this.viewMap.set(s,c)}},{key:"renderRawData",value:function(s){this.graphModel.graphDataToModel(Or(s)),this.options.history!==!1&&this.history.watch(this.graphModel),Object(fe.j)(Object(fe.g)(fj,{getView:this.getView,tool:this.tool,options:this.options,dnd:this.dnd,snaplineModel:this.snaplineModel,graphModel:this.graphModel}),this.container),this.emit(dt.GRAPH_RENDERED,this.graphModel.modelToGraphData())}},{key:"render",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.adapterIn&&(s=this.adapterIn(s)),this.renderRawData(s)}}],i=[{key:"use",value:function(s,c){var p,v,m=s.pluginName;m||(m=s.name);var x=(p=this.extensions.get(m))===null||p===void 0?void 0:p.extension;x&&x.destroy&&x.destroy(),this.extensions.set(m,(qn(v={},Kb,Kb),qn(v,"extension",s),qn(v,"props",c),v))}}],r&&K1(e.prototype,r),i&&K1(e,i),t}();function Ci(t){return lt(t)}qn(qb,"extensions",new Map),l.default=qb}])})})(ot,ot.exports);var oy=Z2(ot.exports);const Y8=[{type:"bpmn:startEvent",text:"\u5F00\u59CB",class:"bpmn-start"},{type:"bpmn:endEvent",text:"\u7ED3\u675F",class:"bpmn-end"},{type:"bpmn:exclusiveGateway",text:"\u7F51\u5173",class:"bpmn-exclusiveGateway"},{type:"bpmn:userTask",text:"\u7528\u6237",class:"bpmn-user"}];var V8=function(){function n(){globalThis._ids=this,this._ids=new Set}return n.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},n.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},n}(),K8=(globalThis==null?void 0:globalThis._ids)||new V8;function zl(){return K8.next()}var IE=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),q8=function(n){IE(a,n);function a(u,l){var o=this;return u.id||(u.id="Event_"+zl()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=n.call(this,u,l)||this,o}return a.prototype.setAttributes=function(){this.r=18},a.prototype.getConnectedTargetRules=function(){var u=n.prototype.getConnectedTargetRules.call(this),l={message:"\u8D77\u59CB\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u7EC8\u70B9",validate:function(){return!1}};return u.push(l),u},a.extendKey="StartEventModel",a}(ot.exports.CircleNodeModel),Z8=function(n){IE(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.extendKey="StartEventNode",a}(ot.exports.CircleNode),J8={type:"bpmn:startEvent",view:Z8,model:q8},LE=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),yy=globalThis&&globalThis.__assign||function(){return yy=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},yy.apply(this,arguments)},Q8=function(n){LE(a,n);function a(u,l){var o=this;return u.id||(u.id="Event_"+zl()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=n.call(this,u,l)||this,o}return a.prototype.setAttributes=function(){this.r=18},a.prototype.getConnectedSourceRules=function(){var u=n.prototype.getConnectedSourceRules.call(this),l={message:"\u7ED3\u675F\u8282\u70B9\u4E0D\u80FD\u4F5C\u4E3A\u8FB9\u7684\u8D77\u70B9",validate:function(){return!1}};return u.push(l),u},a.extendKey="EndEventModel",a}(ot.exports.CircleNodeModel),e5=function(n){LE(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getAnchorStyle=function(){return{visibility:"hidden"}},a.prototype.getShape=function(){var u=this.props.model,l=u.getNodeStyle(),o=u.x,d=u.y,h=u.r,b=n.prototype.getShape.call(this);return ot.exports.h("g",{},b,ot.exports.h("circle",yy(yy({},l),{cx:o,cy:d,r:h-5})))},a.extendKey="EndEventView",a}(ot.exports.CircleNode),t5={type:"bpmn:endEvent",view:e5,model:Q8},BE=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Pp=globalThis&&globalThis.__assign||function(){return Pp=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Pp.apply(this,arguments)},n5=function(n){BE(a,n);function a(u,l){var o=this;return u.id||(u.id="Gateway_"+zl()),u.text||(u.text=""),u.text&&typeof u.text=="string"&&(u.text={value:u.text,x:u.x,y:u.y+40}),o=n.call(this,u,l)||this,o.points=[[25,0],[50,25],[25,50],[0,25]],o}return a.extendKey="ExclusiveGatewayModel",a}(ot.exports.PolygonNodeModel),r5=function(n){BE(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.points,g=u.getNodeStyle();return ot.exports.h("g",{transform:"matrix(1 0 0 1 "+(l-d/2)+" "+(o-h/2)+")"},ot.exports.h("polygon",Pp(Pp({},g),{x:l,y:o,points:b})),ot.exports.h("path",Pp({d:"m 16,15 7.42857142857143,9.714285714285715 -7.42857142857143,9.714285714285715 3.428571428571429,0 5.714285714285715,-7.464228571428572 5.714285714285715,7.464228571428572 3.428571428571429,0 -7.42857142857143,-9.714285714285715 7.42857142857143,-9.714285714285715 -3.428571428571429,0 -5.714285714285715,7.464228571428572 -5.714285714285715,-7.464228571428572 -3.428571428571429,0 z"},g)))},a.extendKey="ExclusiveGatewayNode",a}(ot.exports.PolygonNode),o5={type:"bpmn:exclusiveGateway",view:r5,model:n5},zE=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),vy=globalThis&&globalThis.__assign||function(){return vy=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},vy.apply(this,arguments)},i5=function(n){zE(a,n);function a(u,l){var o=this;return u.id||(u.id="Activity_"+zl()),o=n.call(this,u,l)||this,o}return a.extendKey="UserTaskModel",a}(ot.exports.RectNodeModel),a5=function(n){zE(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getLabelShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getNodeStyle();return ot.exports.h("svg",{x:l-d/2+5,y:o-h/2+5,width:25,height:25,viewBox:"0 0 1274 1024"},ot.exports.h("path",{fill:b.stroke,d:"M655.807326 287.35973m-223.989415 0a218.879 218.879 0 1 0 447.978829 0 218.879 218.879 0 1 0-447.978829 0ZM1039.955839 895.482975c-0.490184-212.177424-172.287821-384.030443-384.148513-384.030443-211.862739 0-383.660376 171.85302-384.15056 384.030443L1039.955839 895.482975z"}))},a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.radius,g=u.getNodeStyle();return ot.exports.h("g",{},[ot.exports.h("rect",vy(vy({},g),{x:l-d/2,y:o-h/2,rx:b,ry:b,width:d,height:h})),this.getLabelShape()])},a.extendKey="UserTaskNode",a}(ot.exports.RectNode),u5={type:"bpmn:userTask",view:a5,model:i5},FE=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),mm=globalThis&&globalThis.__assign||function(){return mm=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},mm.apply(this,arguments)},c5=function(n){FE(a,n);function a(u,l){var o=this;return u.id||(u.id="Activity_"+zl()),o=n.call(this,u,l)||this,o}return a.extendKey="ServiceTaskModel",a}(ot.exports.RectNodeModel),s5=function(n){FE(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getLabelShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getNodeStyle();return ot.exports.h("svg",{x:l-d/2+5,y:o-h/2+5,width:30,height:30,viewBox:"0 0 1274 1024"},ot.exports.h("path",{fill:b.stroke,d:"M882.527918 434.149934c-2.234901-5.303796-7.311523-8.853645-13.059434-9.138124l-61.390185-3.009544c-6.635117-20.973684-15.521508-41.175795-26.513864-60.282968l42.051745-47.743374c4.308119-4.889357 4.955872-12.004405 1.602498-17.59268-46.384423-77.30362-103.969956-101.422947-106.400309-102.410438-5.332449-2.170432-11.432377-1.090844-15.693424 2.77009L654.674467 240.664222c-17.004279-8.654101-35.092239-15.756869-53.995775-21.210068l-3.26537-66.490344c-0.280386-5.747911-3.833305-10.824533-9.134031-13.059434-1.683339-0.709151-30.193673-12.391215-76.866668-12.051477-46.672996-0.339738-75.18333 11.342326-76.866668 12.051477-5.300726 2.234901-8.853645 7.311523-9.134031 13.059434l-3.26537 66.490344c-18.903535 5.453199-36.991496 12.555967-53.995775 21.210068l-48.450479-43.922349c-4.261047-3.860934-10.360975-4.940522-15.693424-2.77009-2.430352 0.98749-60.015885 25.106818-106.400309 102.410438-3.353374 5.588275-2.705622 12.703323 1.602498 17.59268l42.051745 47.743374c-10.992355 19.107173-19.878746 39.309284-26.513864 60.282968l-61.390185 3.009544c-5.747911 0.284479-10.824533 3.834328-13.059434 9.138124-1.01512 2.415003-24.687262 60.190871-2.822278 147.651828 1.583055 6.324032 7.072069 10.893094 13.57518 11.308557 5.892197 0.37146 11.751648 0.523933 17.419741 0.667196 14.498202 0.372483 28.193109 0.723477 40.908712 4.63353 4.212952 1.294482 6.435573 8.270361 9.349949 18.763342 1.287319 4.640694 2.617617 9.43693 4.484128 14.010085 1.794879 4.393054 3.75758 8.570189 5.66093 12.607132 1.302669 2.765997 2.529613 5.380544 3.689019 8.018627 2.986007 6.803963 2.682086 9.773598 2.578732 10.349719-3.061732 3.672646-6.391571 7.238868-9.91379 11.015891-1.810229 1.943258-3.680832 3.949962-5.523807 5.980201l-22.560832 24.8909c-3.865028 4.261047-4.940522 10.365068-2.774183 15.693424 0.991584 2.426259 25.102724 60.011792 102.414531 106.400309 5.588275 3.353374 12.703323 2.701528 17.591657-1.603521l23.476691-20.682042c2.346441-2.061962 4.64888-4.336772 6.875594-6.534833 9.05319-8.93858 14.018272-12.95608 17.73185-11.576663 3.305279 1.222851 6.907317 3.166109 10.720156 5.228071 3.325745 1.794879 6.764054 3.650133 10.465352 5.288446 6.016017 2.662643 12.120039 4.688789 18.019399 6.65149 6.827499 2.266623 13.279445 4.409426 18.819624 7.275707 1.518586 0.782829 1.926886 0.994654 2.358721 7.830339 0.726547 11.496845 1.25048 23.276123 1.753947 34.672684 0.264013 5.900384 0.528026 11.803837 0.815575 17.700127 0.284479 5.743818 3.833305 10.82044 9.138124 13.05534 1.654686 0.698918 29.371958 12.063757 74.869175 12.063757 0.328481 0 3.65832 0 3.986801 0 45.497217 0 73.214489-11.364839 74.869175-12.063757 5.304819-2.234901 8.853645-7.311523 9.138124-13.05534 0.287549-5.89629 0.551562-11.799744 0.815575-17.700127 0.503467-11.396561 1.027399-23.175839 1.753947-34.672684 0.431835-6.835685 0.840134-7.04751 2.358721-7.830339 5.54018-2.866281 11.992125-5.009084 18.819624-7.275707 5.89936-1.962701 12.003382-3.988848 18.019399-6.65149 3.701299-1.638313 7.139607-3.493567 10.465352-5.288446 3.812839-2.061962 7.414877-4.00522 10.720156-5.228071 3.713578-1.379417 8.67866 2.638083 17.73185 11.576663 2.226714 2.198062 4.529153 4.472871 6.875594 6.534833l23.476691 20.682042c4.888334 4.305049 12.003382 4.956895 17.591657 1.603521 77.311807-46.388517 101.422947-103.97405 102.414531-106.400309 2.166339-5.328355 1.090844-11.432377-2.774183-15.693424l-22.560832-24.8909c-1.842974-2.030239-3.713578-4.036943-5.523807-5.980201-3.52222-3.777023-6.852058-7.343245-9.91379-11.015891-0.103354-0.576121-0.407276-3.545756 2.578732-10.349719 1.159406-2.638083 2.38635-5.252631 3.689019-8.018627 1.90335-4.036943 3.866051-8.214079 5.66093-12.607132 1.866511-4.573155 3.196809-9.369392 4.484128-14.010085 2.914376-10.492982 5.136997-17.46886 9.349949-18.763342 12.715603-3.910053 26.41051-4.261047 40.908712-4.63353 5.668093-0.143263 11.527544-0.295735 17.419741-0.667196 6.503111-0.415462 11.992125-4.984524 13.57518-11.308557C907.21518 494.340805 883.543038 436.564937 882.527918 434.149934zM643.49894 643.761929c-35.280528 35.280528-82.191954 54.711066-132.086317 54.711066s-96.806813-19.430538-132.086317-54.711066c-35.280528-35.279504-54.711066-82.191954-54.711066-132.086317 0-49.894364 19.430538-96.80272 54.711066-132.082224 35.283598-35.284621 82.191954-54.711066 132.086317-54.711066s96.80579 19.426445 132.086317 54.711066c35.279504 35.279504 54.711066 82.187861 54.711066 132.082224C698.210006 561.569976 678.782537 608.482425 643.49894 643.761929z"}))},a.prototype.getShape=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.radius,g=u.getNodeStyle();return ot.exports.h("g",{},[ot.exports.h("rect",mm({x:l-d/2,y:o-h/2,rx:b,ry:b,width:d,height:h},g)),this.getLabelShape()])},a.extendKey="ServiceTaskNode",a}(ot.exports.RectNode),l5={type:"bpmn:serviceTask",view:s5,model:c5},$E=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),f5=function(n){$E(a,n);function a(u,l){var o=this;return u.id||(u.id="Flow_"+zl()),o=n.call(this,u,l)||this,o}return a.extendKey="SequenceFlowModel",a}(ot.exports.PolylineEdgeModel),p5=function(n){$E(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.extendKey="SequenceFlowEdge",a}(ot.exports.PolylineEdge),d5={type:"bpmn:sequenceFlow",view:p5,model:f5},NO={width:40,height:40},CO={width:40,height:40},RO={width:40,height:40},IO={width:100,height:80},LO={width:100,height:80},h5={rect:{radius:5,stroke:"rgb(24, 125, 255)"},circle:{r:18,stroke:"rgb(24, 125, 255)"},polygon:{stroke:"rgb(24, 125, 255)"},polyline:{stroke:"rgb(24, 125, 255)",hoverStroke:"rgb(24, 125, 255)",selectedStroke:"rgb(24, 125, 255)"},edgeText:{background:{fill:"white",height:14,stroke:"transparent",radius:3}}},y5=function(){function n(a){var u=a.lf;u.setTheme(h5),u.register(J8),u.register(t5),u.register(o5),u.register(u5),u.register(l5),u.options.customBpmnEdge||(u.register(d5),u.setDefaultEdgeType("bpmn:sequenceFlow"))}return n.pluginName="bpmnElement",n}(),v5=function(){function n(){globalThis._ids=this,this._ids=new Set}return n.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},n.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},n}(),g5=(globalThis==null?void 0:globalThis._ids)||new v5;function BO(){return g5.next()}function WE(n){return Object.prototype.toString.call(n)}function b5(n){return" ".repeat(n)}function gy(n){var a=n;return WE(n)==="[object Object]"?(a={},Object.keys(n).forEach(function(u){var l=u;u.charAt(0)==="-"&&(l=u.substring(1)),a[l]=gy(n[u])})):Array.isArray(n)&&(a=[],n.forEach(function(u,l){a[l]=gy(u)})),a}function m5(n){var a=n;try{typeof a!="string"&&(a=JSON.parse(n))}catch{a=JSON.stringify(gy(n)).replace(/"/g,"'")}return a}var Ol=`
- `;function uy(n,a,u){var l=b5(u),o="";if(a==="#text")return Ol+l+n;if(a==="#cdata-section")return Ol+l+"<![CDATA["+n+"]]>";if(a==="#comment")return Ol+l+"<!--"+n+"-->";if((""+a).charAt(0)==="-")return" "+a.substring(1)+'="'+m5(n)+'"';if(Array.isArray(n))n.forEach(function(g){o+=uy(g,a,u+1)});else if(WE(n)==="[object Object]"){var d=Object.keys(n),h="",b="";o+=(u===0?"":Ol+l)+"<"+a,d.forEach(function(g){g.charAt(0)==="-"?h+=uy(n[g],g,u+1):b+=uy(n[g],g,u+1)}),o+=h+(b!==""?">"+b+(Ol+l)+"</"+a+">":" />")}else o+=Ol+l+("<"+a+">"+n.toString()+"</"+a+">");return o}function _5(n){var a="";for(var u in n)a+=uy(n[u],u,0);return a}var so=function(){};so.ObjTree=function(){return this};so.ObjTree.VERSION="0.23";so.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;so.ObjTree.prototype.attr_prefix="-";so.ObjTree.prototype.parseXML=function(n){var a;if(window.DOMParser){var u=new DOMParser,l=u.parseFromString(n,"application/xml");if(!l)return;a=l.documentElement}else window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(n),a=u.documentElement);if(!!a)return this.parseDOM(a)};so.ObjTree.prototype.parseHTTP=function(n,a,u){var l={};for(var o in a)l[o]=a[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),u){l.asynchronous=!0;var d=this,h=u,b=l.onComplete;l.onComplete=function(S){var P;S&&S.responseXML&&S.responseXML.documentElement&&(P=d.parseDOM(S.responseXML.documentElement)),h(P,S),b&&b(S)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=n;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var E=new Ajax.Request(n,l);E&&(g=E.transport)}if(u)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};so.ObjTree.prototype.parseDOM=function(n){if(!!n){if(this.__force_array={},this.force_array)for(var a=0;a<this.force_array.length;a++)this.__force_array[this.force_array[a]]=1;var u=this.parseElement(n);if(this.__force_array[n.nodeName]&&(u=[u]),n.nodeType!=11){var l={};l[n.nodeName]=u,u=l}return u}};so.ObjTree.prototype.parseElement=function(n){if(n.nodeType!=7){if(n.nodeType==3||n.nodeType==4||n.nodeType==8){var a=n.nodeValue.match(/[^\x00-\x20]/);return a==null?void 0:n.nodeValue}var u=null,l={};if(n.attributes&&n.attributes.length){u={};for(var o=0;o<n.attributes.length;o++){var d=n.attributes[o].nodeName;if(typeof d=="string"){var h=n.attributes[o].nodeValue;try{h=JSON.parse(n.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=n.attributes[o].nodeValue}!h||(d=this.attr_prefix+d,typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}if(n.childNodes&&n.childNodes.length){var b=!0;u&&(b=!1);for(var o=0;o<n.childNodes.length&&b;o++){var g=n.childNodes[o].nodeType;g==3||g==4||g==8||(b=!1)}if(b){u||(u="");for(var o=0;o<n.childNodes.length;o++)u+=n.childNodes[o].nodeValue}else{u||(u={});for(var o=0;o<n.childNodes.length;o++){var d=n.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(n.childNodes[o]);!h||(typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}}else u===null&&(u={});return u}};so.ObjTree.prototype.addNode=function(n,a,u,l){this.__force_array[a]?(u==1&&(n[a]=[]),n[a][n[a].length]=l):u==1?n[a]=l:u==2?n[a]=[n[a],l]:n[a][n[a].length]=l};so.ObjTree.prototype.writeXML=function(n){var a=this.hash_to_xml(null,n);return this.xmlDecl+a};so.ObjTree.prototype.hash_to_xml=function(n,a){var u=[],l=[];for(var o in a)if(!!a.hasOwnProperty(o)){var d=a[o];o.charAt(0)!=this.attr_prefix?typeof d=="undefined"||d==null?u[u.length]="<"+o+" />":typeof d=="object"&&d.constructor==Array?u[u.length]=this.array_to_xml(o,d):typeof d=="object"?u[u.length]=this.hash_to_xml(o,d):u[u.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),b=u.join("");return typeof n=="undefined"||n==null||(u.length>0?b.match(/\n/)?b="<"+n+h+`>
- `+b+"</"+n+`>
- `:b="<"+n+h+">"+b+"</"+n+`>
- `:b="<"+n+h+` />
- `),b};so.ObjTree.prototype.array_to_xml=function(n,a){for(var u=[],l=0;l<a.length;l++){var o=a[l];typeof o=="undefined"||o==null?u[u.length]="<"+n+" />":typeof o=="object"&&o.constructor==Array?u[u.length]=this.array_to_xml(n,o):typeof o=="object"?u[u.length]=this.hash_to_xml(n,o):u[u.length]=this.scalar_to_xml(n,o)}return u.join("")};so.ObjTree.prototype.scalar_to_xml=function(n,a){return n=="#text"?this.xml_escape(a):"<"+n+">"+this.xml_escape(a)+"</"+n+`>
- `};so.ObjTree.prototype.xml_escape=function(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var O5=function(n){return new so.ObjTree().parseXML(n)},w5=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),_m=globalThis&&globalThis.__assign||function(){return _m=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},_m.apply(this,arguments)},Yy=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},ga;(function(n){n.START="bpmn:startEvent",n.END="bpmn:endEvent",n.GATEWAY="bpmn:exclusiveGateway",n.USER="bpmn:userTask",n.SYSTEM="bpmn:serviceTask",n.FLOW="bpmn:sequenceFlow"})(ga||(ga={}));var GE=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef"],zO=["properties","startPoint","endPoint","pointsList"];function FO(n){var a=n?zO.concat(n):zO;return function(u){function l(o){var d={};return typeof o=="string"?o:Array.isArray(o)?o.map(function(h){return l(h)}):(Object.entries(o).forEach(function(h){var b=Yy(h,2),g=b[0],E=b[1];typeof E!="object"?g.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(g)?d[g]=E:d["-"+g]=E:a.includes(g)?d["-"+g]=l(E):d[g]=l(E)}),d)}return l(u)}}function by(n){var a={};return Object.entries(n).forEach(function(u){var l=Yy(u,2),o=l[0],d=l[1];o.indexOf("-")===0?a[o.substring(1)]=gy(d):typeof d=="string"?a[o]=d:Object.prototype.toString.call(d)==="[object Object]"?a[o]=by(d):Array.isArray(d)?a[o]=d.map(function(h){return by(h)}):a[o]=d}),a}function x5(n,a,u){var l=new Map;a.nodes.forEach(function(d){var h,b={"-id":d.id};if(!((h=d.text)===null||h===void 0)&&h.value&&(b["-name"]=d.text.value),d.properties){var g=FO(u)(d.properties);Object.assign(b,g)}l.set(d.id,b),n[d.type]?Array.isArray(n[d.type])?n[d.type].push(b):n[d.type]=[n[d.type],b]:n[d.type]=b});var o=a.edges.map(function(d){var h,b,g=l.get(d.targetNodeId);g["bpmn:incoming"]?Array.isArray(g["bpmn:incoming"])?g["bpmn:incoming"].push(d.id):g["bpmn:incoming"]=[g["bpmn:incoming"],d.id]:g["bpmn:incoming"]=d.id;var E={"-id":d.id,"-sourceRef":d.sourceNodeId,"-targetRef":d.targetNodeId};if(!((h=d.text)===null||h===void 0)&&h.value&&(E["-name"]=(b=d.text)===null||b===void 0?void 0:b.value),d.properties){var S=FO(u)(d.properties);Object.assign(E,S)}return E});a.edges.forEach(function(d){var h=l.get(d.sourceNodeId);h["bpmn:outgoing"]?Array.isArray(h["bpmn:outgoing"])?h["bpmn:outgoing"].push(d.id):h["bpmn:outgoing"]=[h["bpmn:outgoing"],d.id]:h["bpmn:outgoing"]=d.id}),n[ga.FLOW]=o}function E5(n,a){n["bpmndi:BPMNEdge"]=a.edges.map(function(u){var l,o=u.id,d=u.pointsList.map(function(b){var g=b.x,E=b.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=u.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),h}),n["bpmndi:BPMNShape"]=a.nodes.map(function(u){var l,o=u.id,d=100,h=80,b=u.x,g=u.y,E=$u.shapeConfigMap.get(u.type);E&&(d=E.width,h=E.height),b-=d/2,g-=h/2;var S={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":g,"-width":d,"-height":h}};return!((l=u.text)===null||l===void 0)&&l.value&&(S["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),S})}function S5(n){var a=[],u=[],l=n["bpmn:definitions"];if(l){var o=l["bpmn:process"];Object.keys(o).forEach(function(d){if(d.indexOf("bpmn:")===0){var h=o[d];if(d===ga.FLOW){var b=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];u=P5(h,b)}else{var g=l["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];a=a.concat(j5(h,g,d))}}})}return{nodes:a,edges:u}}function j5(n,a,u){var l=[];if(Array.isArray(n))n.forEach(function(h){var b;Array.isArray(a)?b=a.find(function(E){return E["-bpmnElement"]===h["-id"]}):b=a;var g=$O(b,u,h);l.push(g)});else{var o=void 0;Array.isArray(a)?o=a.find(function(h){return h["-bpmnElement"]===n["-id"]}):o=a;var d=$O(o,u,n);l.push(d)}return l}function $O(n,a,u){var l=Number(n["dc:Bounds"]["-x"]),o=Number(n["dc:Bounds"]["-y"]),d=u["-name"],h=$u.shapeConfigMap.get(a);h&&(l+=h.width/2,o+=h.height/2);var b;Object.entries(u).forEach(function(P){var k=Yy(P,2),M=k[0],C=k[1];GE.indexOf(M)===-1&&(b||(b={}),b[M]=C)}),b&&(b=by(b));var g;if(d&&(g={x:l,y:o,value:d},n["bpmndi:BPMNLabel"]&&n["bpmndi:BPMNLabel"]["dc:Bounds"])){var E=n["bpmndi:BPMNLabel"]["dc:Bounds"];g.x=Number(E["-x"])+Number(E["-width"])/2,g.y=Number(E["-y"])+Number(E["-height"])/2}var S={id:n["-bpmnElement"],type:a,x:l,y:o,properties:b};return g&&(S.text=g),S}function P5(n,a){var u=[];if(Array.isArray(n))n.forEach(function(o){var d;Array.isArray(a)?d=a.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=a,u.push(WO(d,o))});else{var l=void 0;Array.isArray(a)?l=a.find(function(o){return o["-bpmnElement"]===n["-id"]}):l=a,u.push(WO(l,n))}return u}function WO(n,a){var u,l=a["-name"];if(l){var o=n["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
- `).forEach(function(g){d<g.length&&(d=g.length)}),u={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h;Object.entries(a).forEach(function(g){var E=Yy(g,2),S=E[0],P=E[1];GE.indexOf(S)===-1&&(h||(h={}),h[S]=P)}),h&&(h=by(h));var b={id:a["-id"],type:ga.FLOW,pointsList:n["di:waypoint"].map(function(g){return{x:Number(g["-x"]),y:Number(g["-y"])}}),sourceNodeId:a["-sourceRef"],targetNodeId:a["-targetRef"],properties:h};return u&&(b.text=u),b}var $u=function(){function n(a){var u=this,l=a.lf;this.adapterOut=function(o,d){var h=_m({},u.processAttributes);x5(h,o,d);var b={"-id":"BPMNPlane_1","-bpmnElement":h["-id"]};E5(b,o);var g=u.definitionAttributes;g["bpmn:process"]=h,g["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":b};var E={"bpmn:definitions":g};return E},this.adapterIn=function(o){if(o)return S5(o)},l.adapterIn=function(o){return u.adapterIn(o)},l.adapterOut=function(o,d){return u.adapterOut(o,d)},this.processAttributes={"-isExecutable":"true","-id":"Process_"+BO()},this.definitionAttributes={"-id":"Definitions_"+BO(),"-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.0"}}return n.prototype.setCustomShape=function(a,u){n.shapeConfigMap.set(a,u)},n.pluginName="bpmn-adapter",n.shapeConfigMap=new Map,n}();$u.shapeConfigMap.set(ga.START,{width:NO.width,height:NO.height});$u.shapeConfigMap.set(ga.END,{width:CO.width,height:CO.height});$u.shapeConfigMap.set(ga.GATEWAY,{width:RO.width,height:RO.height});$u.shapeConfigMap.set(ga.SYSTEM,{width:IO.width,height:IO.height});$u.shapeConfigMap.set(ga.USER,{width:LO.width,height:LO.height});(function(n){w5(a,n);function a(u){var l=n.call(this,u)||this;l.adapterXmlIn=function(d){var h=O5(d);return l.adapterIn(h)},l.adapterXmlOut=function(d,h){var b=l.adapterOut(d,h);return _5(b)};var o=u.lf;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l}return a.pluginName="bpmnXmlAdapter",a})($u);var A5=function(){function n(){globalThis._ids=this,this._ids=new Set}return n.prototype.generateId=function(){var a="xxxxxxx".replace(/[x]/g,function(u){var l=Math.random()*16|0,o=u==="x"?l:l&3|8;return o.toString(16)});return a},n.prototype.next=function(){for(var a=this.generateId();this._ids.has(a);)a=this.generateId();return this._ids.add(a),a},n}(),T5=(globalThis==null?void 0:globalThis._ids)||new A5;function M5(){return T5.next()}globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var GO=globalThis&&globalThis.__assign||function(){return GO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},GO.apply(this,arguments)},k5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var UO=globalThis&&globalThis.__assign||function(){return UO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},UO.apply(this,arguments)},D5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var HO=globalThis&&globalThis.__assign||function(){return HO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},HO.apply(this,arguments)},N5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var XO=globalThis&&globalThis.__assign||function(){return XO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},XO.apply(this,arguments)},C5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var YO=globalThis&&globalThis.__assign||function(){return YO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},YO.apply(this,arguments)},R5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;ot.exports.h("circle",{cx:18,cy:18,r:11,style:"stroke-linecap: round;stroke-linejoin: round;stroke: rgb(34, 36, 42);stroke-width: 2px;fill: white"}),ot.exports.h("path",{d:"M 18,18 l 2.25,-7.5 m -2.25,7.5 l 5.25,1.5",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(0,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(30,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(60,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(90,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(120,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(150,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(180,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(210,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(240,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(270,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(300,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"}),ot.exports.h("path",{d:"M 18,18 m 0,7.5 l -0,2.25",transform:"rotate(330,18,18)",style:"fill: none; stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 1px;"});ot.exports.h("circle",{cx:18,cy:18,r:10,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 4px; fill: rgb(34, 36, 42);"});ot.exports.h("circle",{cx:25,cy:25,r:13,style:"stroke-linecap: round; stroke-linejoin: round; stroke: rgb(34, 36, 42); stroke-width: 2.5px; fill: white;"});globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var VO=globalThis&&globalThis.__assign||function(){return VO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},VO.apply(this,arguments)};globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var KO=globalThis&&globalThis.__assign||function(){return KO=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},KO.apply(this,arguments)},I5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var l0,sr,UE,Xc,qO,HE,XE,YE,f0,Om,wm,xm={},VE=[],L5=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vy=Array.isArray;function Ya(n,a){for(var u in a)n[u]=a[u];return n}function p0(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function Ap(n,a,u){var l,o,d,h={};for(d in a)d=="key"?l=a[d]:d=="ref"?o=a[d]:h[d]=a[d];if(arguments.length>2&&(h.children=arguments.length>3?l0.call(arguments,2):u),typeof n=="function"&&n.defaultProps!=null)for(d in n.defaultProps)h[d]===void 0&&(h[d]=n.defaultProps[d]);return cy(n,h,l,o,null)}function cy(n,a,u,l,o){var d={type:n,props:a,key:u,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++UE:o,__i:-1,__u:0};return o==null&&sr.vnode!=null&&sr.vnode(d),d}function d0(n){return n.children}function Pl(n,a){this.props=n,this.context=a}function Ml(n,a){if(a==null)return n.__?Ml(n.__,n.__i+1):null;for(var u;a<n.__k.length;a++)if((u=n.__k[a])!=null&&u.__e!=null)return u.__e;return typeof n.type=="function"?Ml(n):null}function KE(n){var a,u;if((n=n.__)!=null&&n.__c!=null){for(n.__e=n.__c.base=null,a=0;a<n.__k.length;a++)if((u=n.__k[a])!=null&&u.__e!=null){n.__e=n.__c.base=u.__e;break}return KE(n)}}function ZO(n){(!n.__d&&(n.__d=!0)&&Xc.push(n)&&!my.__r++||qO!==sr.debounceRendering)&&((qO=sr.debounceRendering)||HE)(my)}function my(){for(var n,a,u,l,o,d,h,b=1;Xc.length;)Xc.length>b&&Xc.sort(XE),n=Xc.shift(),b=Xc.length,n.__d&&(u=void 0,o=(l=(a=n).__v).__e,d=[],h=[],a.__P&&((u=Ya({},l)).__v=l.__v+1,sr.vnode&&sr.vnode(u),JE(a.__P,u,l,a.__n,a.__P.namespaceURI,32&l.__u?[o]:null,d,o==null?Ml(l):o,!!(32&l.__u),h),u.__v=l.__v,u.__.__k[u.__i]=u,F5(d,u,h),u.__e!=o&&KE(u)));my.__r=0}function qE(n,a,u,l,o,d,h,b,g,E,S){var P,k,M,C,N,L,U=l&&l.__k||VE,W=a.length;for(g=B5(u,a,U,g,W),P=0;P<W;P++)(M=u.__k[P])!=null&&(k=M.__i===-1?xm:U[M.__i]||xm,M.__i=P,L=JE(n,M,k,o,d,h,b,g,E,S),C=M.__e,M.ref&&k.ref!=M.ref&&(k.ref&&h0(k.ref,null,M),S.push(M.ref,M.__c||C,M)),N==null&&C!=null&&(N=C),4&M.__u||k.__k===M.__k?g=ZE(M,g,n):typeof M.type=="function"&&L!==void 0?g=L:C&&(g=C.nextSibling),M.__u&=-7);return u.__e=N,g}function B5(n,a,u,l,o){var d,h,b,g,E,S=u.length,P=S,k=0;for(n.__k=new Array(o),d=0;d<o;d++)(h=a[d])!=null&&typeof h!="boolean"&&typeof h!="function"?(g=d+k,(h=n.__k[d]=typeof h=="string"||typeof h=="number"||typeof h=="bigint"||h.constructor==String?cy(null,h,null,null,null):Vy(h)?cy(d0,{children:h},null,null,null):h.constructor===void 0&&h.__b>0?cy(h.type,h.props,h.key,h.ref?h.ref:null,h.__v):h).__=n,h.__b=n.__b+1,b=null,(E=h.__i=z5(h,u,g,P))!==-1&&(P--,(b=u[E])&&(b.__u|=2)),b==null||b.__v===null?(E==-1&&(o>S?k--:o<S&&k++),typeof h.type!="function"&&(h.__u|=4)):E!=g&&(E==g-1?k--:E==g+1?k++:(E>g?k--:k++,h.__u|=4))):n.__k[d]=null;if(P)for(d=0;d<S;d++)(b=u[d])!=null&&(2&b.__u)==0&&(b.__e==l&&(l=Ml(b)),eS(b,b));return l}function ZE(n,a,u){var l,o;if(typeof n.type=="function"){for(l=n.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=n,a=ZE(l[o],a,u));return a}n.__e!=a&&(a&&n.type&&!u.contains(a)&&(a=Ml(n)),u.insertBefore(n.__e,a||null),a=n.__e);do a=a&&a.nextSibling;while(a!=null&&a.nodeType==8);return a}function z5(n,a,u,l){var o,d,h=n.key,b=n.type,g=a[u];if(g===null&&n.key==null||g&&h==g.key&&b===g.type&&(2&g.__u)==0)return u;if(l>(g!=null&&(2&g.__u)==0?1:0))for(o=u-1,d=u+1;o>=0||d<a.length;){if(o>=0){if((g=a[o])&&(2&g.__u)==0&&h==g.key&&b===g.type)return o;o--}if(d<a.length){if((g=a[d])&&(2&g.__u)==0&&h==g.key&&b===g.type)return d;d++}}return-1}function JO(n,a,u){a[0]=="-"?n.setProperty(a,u==null?"":u):n[a]=u==null?"":typeof u!="number"||L5.test(a)?u:u+"px"}function iy(n,a,u,l,o){var d;e:if(a=="style")if(typeof u=="string")n.style.cssText=u;else{if(typeof l=="string"&&(n.style.cssText=l=""),l)for(a in l)u&&a in u||JO(n.style,a,"");if(u)for(a in u)l&&u[a]===l[a]||JO(n.style,a,u[a])}else if(a[0]=="o"&&a[1]=="n")d=a!=(a=a.replace(YE,"$1")),a=a.toLowerCase()in n||a=="onFocusOut"||a=="onFocusIn"?a.toLowerCase().slice(2):a.slice(2),n.l||(n.l={}),n.l[a+d]=u,u?l?u.t=l.t:(u.t=f0,n.addEventListener(a,d?wm:Om,d)):n.removeEventListener(a,d?wm:Om,d);else{if(o=="http://www.w3.org/2000/svg")a=a.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(a!="width"&&a!="height"&&a!="href"&&a!="list"&&a!="form"&&a!="tabIndex"&&a!="download"&&a!="rowSpan"&&a!="colSpan"&&a!="role"&&a!="popover"&&a in n)try{n[a]=u==null?"":u;break e}catch{}typeof u=="function"||(u==null||u===!1&&a[4]!="-"?n.removeAttribute(a):n.setAttribute(a,a=="popover"&&u==1?"":u))}}function QO(n){return function(a){if(this.l){var u=this.l[a.type+n];if(a.u==null)a.u=f0++;else if(a.u<u.t)return;return u(sr.event?sr.event(a):a)}}}function JE(n,a,u,l,o,d,h,b,g,E){var S,P,k,M,C,N,L,U,W,X,Q,te,Z,J,H,B,V,Y=a.type;if(a.constructor!==void 0)return null;128&u.__u&&(g=!!(32&u.__u),d=[b=a.__e=u.__e]),(S=sr.__b)&&S(a);e:if(typeof Y=="function")try{if(U=a.props,W="prototype"in Y&&Y.prototype.render,X=(S=Y.contextType)&&l[S.__c],Q=S?X?X.props.value:S.__:l,u.__c?L=(P=a.__c=u.__c).__=P.__E:(W?a.__c=P=new Y(U,Q):(a.__c=P=new Pl(U,Q),P.constructor=Y,P.render=W5),X&&X.sub(P),P.props=U,P.state||(P.state={}),P.context=Q,P.__n=l,k=P.__d=!0,P.__h=[],P._sb=[]),W&&P.__s==null&&(P.__s=P.state),W&&Y.getDerivedStateFromProps!=null&&(P.__s==P.state&&(P.__s=Ya({},P.__s)),Ya(P.__s,Y.getDerivedStateFromProps(U,P.__s))),M=P.props,C=P.state,P.__v=a,k)W&&Y.getDerivedStateFromProps==null&&P.componentWillMount!=null&&P.componentWillMount(),W&&P.componentDidMount!=null&&P.__h.push(P.componentDidMount);else{if(W&&Y.getDerivedStateFromProps==null&&U!==M&&P.componentWillReceiveProps!=null&&P.componentWillReceiveProps(U,Q),!P.__e&&(P.shouldComponentUpdate!=null&&P.shouldComponentUpdate(U,P.__s,Q)===!1||a.__v==u.__v)){for(a.__v!=u.__v&&(P.props=U,P.state=P.__s,P.__d=!1),a.__e=u.__e,a.__k=u.__k,a.__k.some(function(q){q&&(q.__=a)}),te=0;te<P._sb.length;te++)P.__h.push(P._sb[te]);P._sb=[],P.__h.length&&h.push(P);break e}P.componentWillUpdate!=null&&P.componentWillUpdate(U,P.__s,Q),W&&P.componentDidUpdate!=null&&P.__h.push(function(){P.componentDidUpdate(M,C,N)})}if(P.context=Q,P.props=U,P.__P=n,P.__e=!1,Z=sr.__r,J=0,W){for(P.state=P.__s,P.__d=!1,Z&&Z(a),S=P.render(P.props,P.state,P.context),H=0;H<P._sb.length;H++)P.__h.push(P._sb[H]);P._sb=[]}else do P.__d=!1,Z&&Z(a),S=P.render(P.props,P.state,P.context),P.state=P.__s;while(P.__d&&++J<25);P.state=P.__s,P.getChildContext!=null&&(l=Ya(Ya({},l),P.getChildContext())),W&&!k&&P.getSnapshotBeforeUpdate!=null&&(N=P.getSnapshotBeforeUpdate(M,C)),B=S,S!=null&&S.type===d0&&S.key==null&&(B=QE(S.props.children)),b=qE(n,Vy(B)?B:[B],a,u,l,o,d,h,b,g,E),P.base=a.__e,a.__u&=-161,P.__h.length&&h.push(P),L&&(P.__E=P.__=null)}catch(q){if(a.__v=null,g||d!=null)if(q.then){for(a.__u|=g?160:128;b&&b.nodeType==8&&b.nextSibling;)b=b.nextSibling;d[d.indexOf(b)]=null,a.__e=b}else for(V=d.length;V--;)p0(d[V]);else a.__e=u.__e,a.__k=u.__k;sr.__e(q,a,u)}else d==null&&a.__v==u.__v?(a.__k=u.__k,a.__e=u.__e):b=a.__e=$5(u.__e,a,u,l,o,d,h,g,E);return(S=sr.diffed)&&S(a),128&a.__u?void 0:b}function F5(n,a,u){for(var l=0;l<u.length;l++)h0(u[l],u[++l],u[++l]);sr.__c&&sr.__c(a,n),n.some(function(o){try{n=o.__h,o.__h=[],n.some(function(d){d.call(o)})}catch(d){sr.__e(d,o.__v)}})}function QE(n){return typeof n!="object"||n==null?n:Vy(n)?n.map(QE):Ya({},n)}function $5(n,a,u,l,o,d,h,b,g){var E,S,P,k,M,C,N,L=u.props,U=a.props,W=a.type;if(W=="svg"?o="http://www.w3.org/2000/svg":W=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),d!=null){for(E=0;E<d.length;E++)if((M=d[E])&&"setAttribute"in M==!!W&&(W?M.localName==W:M.nodeType==3)){n=M,d[E]=null;break}}if(n==null){if(W==null)return document.createTextNode(U);n=document.createElementNS(o,W,U.is&&U),b&&(sr.__m&&sr.__m(a,d),b=!1),d=null}if(W===null)L===U||b&&n.data===U||(n.data=U);else{if(d=d&&l0.call(n.childNodes),L=u.props||xm,!b&&d!=null)for(L={},E=0;E<n.attributes.length;E++)L[(M=n.attributes[E]).name]=M.value;for(E in L)if(M=L[E],E!="children"){if(E=="dangerouslySetInnerHTML")P=M;else if(!(E in U)){if(E=="value"&&"defaultValue"in U||E=="checked"&&"defaultChecked"in U)continue;iy(n,E,null,M,o)}}for(E in U)M=U[E],E=="children"?k=M:E=="dangerouslySetInnerHTML"?S=M:E=="value"?C=M:E=="checked"?N=M:b&&typeof M!="function"||L[E]===M||iy(n,E,M,L[E],o);if(S)b||P&&(S.__html===P.__html||S.__html===n.innerHTML)||(n.innerHTML=S.__html),a.__k=[];else if(P&&(n.innerHTML=""),qE(a.type==="template"?n.content:n,Vy(k)?k:[k],a,u,l,W=="foreignObject"?"http://www.w3.org/1999/xhtml":o,d,h,d?d[0]:u.__k&&Ml(u,0),b,g),d!=null)for(E=d.length;E--;)p0(d[E]);b||(E="value",W=="progress"&&C==null?n.removeAttribute("value"):C!==void 0&&(C!==n[E]||W=="progress"&&!C||W=="option"&&C!==L[E])&&iy(n,E,C,L[E],o),E="checked",N!==void 0&&N!==n[E]&&iy(n,E,N,L[E],o))}return n}function h0(n,a,u){try{if(typeof n=="function"){var l=typeof n.__u=="function";l&&n.__u(),l&&a==null||(n.__u=n(a))}else n.current=a}catch(o){sr.__e(o,u)}}function eS(n,a,u){var l,o;if(sr.unmount&&sr.unmount(n),(l=n.ref)&&(l.current&&l.current!==n.__e||h0(l,null,a)),(l=n.__c)!=null){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(d){sr.__e(d,a)}l.base=l.__P=null}if(l=n.__k)for(o=0;o<l.length;o++)l[o]&&eS(l[o],a,u||typeof n.type!="function");u||p0(n.__e),n.__c=n.__=n.__e=void 0}function W5(n,a,u){return this.constructor(n,u)}l0=VE.slice,sr={__e:function(n,a,u,l){for(var o,d,h;a=a.__;)if((o=a.__c)&&!o.__)try{if((d=o.constructor)&&d.getDerivedStateFromError!=null&&(o.setState(d.getDerivedStateFromError(n)),h=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(n,l||{}),h=o.__d),h)return o.__E=o}catch(b){n=b}throw n}},UE=0,Pl.prototype.setState=function(n,a){var u;u=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ya({},this.state),typeof n=="function"&&(n=n(Ya({},u),this.props)),n&&Ya(u,n),n!=null&&this.__v&&(a&&this._sb.push(a),ZO(this))},Pl.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),ZO(this))},Pl.prototype.render=d0,Xc=[],HE=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,XE=function(n,a){return n.__v.__b-a.__v.__b},my.__r=0,YE=/(PointerCapture)$|Capture$/i,f0=0,Om=QO(!1),wm=QO(!0);var Tp=globalThis&&globalThis.__assign||function(){return Tp=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Tp.apply(this,arguments)};function y0(n){var a=n.x,u=n.y,l=n.width,o=n.height,d=n.radius,h=n.className,b=a-l/2,g=u-o/2,E=Tp(Tp({width:10,height:10,cx:0,cy:0,rx:d||0,ry:d||0,fill:"transparent",fillOpacity:1,strokeWidth:"1px",stroke:"#000",strokeOpacity:1,className:"lf-basic-shape "+h},n),{x:b,y:g});return ot.exports.h("rect",Tp({},E))}y0.defaultProps={radius:0,stroke:"",strokeDasharray:"",className:""};var El;(function(n){n.NODE="node",n.CIRCLE_NODE="circle-node",n.POLYGON_NODE="polygon-node",n.RECT_NODE="rect-node",n.HTML_NODE="html-node",n.TEXT_NODE="text-node",n.ELLIPSE_NODE="ellipse-node",n.DIAMOND_NODE="diamond-node",n.EDGE="edge",n.LINE_EDGE="line-edge",n.POLYLINE_EDGE="polyline-edge",n.BEZIER_EDGE="bezier-edge",n.GRAPH="graph"})(El||(El={}));var G5=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Yc=globalThis&&globalThis.__assign||function(){return Yc=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Yc.apply(this,arguments)},U5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},H5=ot.exports.LogicFlowUtil.StepDrag,X5=function(n){G5(a,n);function a(u){var l=n.call(this)||this;return l.updatePosition=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.x,E=b.y;l.nodeModel.x=g+d/2,l.nodeModel.y=E+h/2,l.nodeModel.moveText(d/2,h/2)},l.getResize=function(o){var d=o.index,h=o.deltaX,b=o.deltaY,g=o.width,E=o.height,S=o.PCTResizeInfo,P=o.pct,k=P===void 0?1:P,M=o.freezeWidth,C=M===void 0?!1:M,N=o.freezeHeight,L=N===void 0?!1:N,U={width:g,height:E,deltaX:h,deltaY:b};if(S){var W=4,X=0,Q=0;switch(d){case 0:Q=(h*-1-b)/W;break;case 1:Q=(h-b)/W;break;case 2:Q=(h+b)/W;break;case 3:Q=(h*-1+b)/W;break}Q!==0&&(X=Math.round(Q/S.ResizeBasis.basisHeight*1e5)/1e3),S.ResizePCT.widthPCT=Math.max(Math.min(S.ResizePCT.widthPCT+X,S.ScaleLimit.maxScaleLimit),S.ScaleLimit.minScaleLimit),S.ResizePCT.hightPCT=Math.max(Math.min(S.ResizePCT.hightPCT+X,S.ScaleLimit.maxScaleLimit),S.ScaleLimit.minScaleLimit);var te=Math.round(S.ResizePCT.widthPCT*S.ResizeBasis.basisWidth/100),Z=Math.round(S.ResizePCT.hightPCT*S.ResizeBasis.basisHeight/100);switch(d){case 0:h=g-te,b=E-Z;break;case 1:h=te-g,b=E-Z;break;case 2:h=te-g,b=Z-E;break;case 3:h=g-te,b=Z-E;break}return U.width=te,U.height=Z,U.deltaX=h/k,U.deltaY=b/k,U}switch(d){case 0:U.width=C?g:g-h*k,U.height=L?E:E-b*k;break;case 1:U.width=C?g:g+h*k,U.height=L?E:E-b*k;break;case 2:U.width=C?g:g+h*k,U.height=L?E:E+b*k;break;case 3:U.width=C?g:g-h*k,U.height=L?E:E+b*k;break}return U},l.updateEdgePointByAnchors=function(){var o=l.nodeModel,d=o.id,h=o.anchors,b=l.getNodeEdges(d);b.sourceEdges.forEach(function(g){var E=h.find(function(S){return S.id===g.sourceAnchorId});g.updateStartPoint({x:E.x,y:E.y})}),b.targetEdges.forEach(function(g){var E=h.find(function(S){return S.id===g.targetAnchorId});g.updateEndPoint({x:E.x,y:E.y})})},l.updateRect=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.id,E=b.x,S=b.y,P=b.width,k=b.height,M=b.radius,C=b.PCTResizeInfo,N=l.nodeModel,L=N.minWidth,U=N.minHeight,W=N.maxWidth,X=N.maxHeight,Q=l.index,te=L===W,Z=U===X,J=l.getResize({index:Q,deltaX:d,deltaY:h,width:P,height:k,PCTResizeInfo:C,pct:1,freezeWidth:te,freezeHeight:Z});if(J.width<L||J.width>W||J.height<U||J.height>X){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:te?0:J.deltaX,deltaY:Z?0:J.deltaY}),l.nodeModel.width=J.width,l.nodeModel.height=J.height,l.nodeModel.setProperties({nodeSize:{width:J.width,height:J.height}}),l.getNodeEdges(g);var H={x:E,y:S,width:P,height:k,radius:M},B={x:l.nodeModel.x,y:l.nodeModel.y,width:l.nodeModel.width,height:l.nodeModel.height,radius:M};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:H,afterNode:B})},l.updateEllipse=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel,g=b.id,E=b.rx,S=b.ry,P=b.x,k=b.y,M=b.PCTResizeInfo,C=l.index,N=l.nodeModel,L=N.minWidth,U=N.minHeight,W=N.maxWidth,X=N.maxHeight,Q=L===W,te=U===X,Z=E,J=S,H=l.getResize({index:C,deltaX:d,deltaY:h,width:Z,height:J,PCTResizeInfo:M,pct:1/2,freezeWidth:Q,freezeHeight:te});if(H.width<L/2||H.width>W/2||H.height<U/2||H.height>X/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:Q?0:H.deltaX,deltaY:te?0:H.deltaY}),l.nodeModel.rx=H.width,l.nodeModel.ry=H.height,l.nodeModel.setProperties({nodeSize:{rx:H.width,ry:H.height}}),l.getNodeEdges(g);var B={x:P,y:k},V={rx:H.width,ry:H.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:Yc(Yc({},B),{rx:E,ry:S}),afterNode:V})},l.updateDiamond=function(o){var d=o.deltaX,h=o.deltaY,b=l.nodeModel;b.id;var g=b.rx,E=b.ry,S=b.x,P=b.y,k=b.PCTResizeInfo,M=l.index,C=l.nodeModel,N=C.minWidth,L=C.minHeight,U=C.maxWidth,W=C.maxHeight,X=N===U,Q=L===W,te=g,Z=E,J=l.getResize({index:M,deltaX:d,deltaY:h,width:te,height:Z,PCTResizeInfo:k,pct:1/2,freezeWidth:X,freezeHeight:Q});if(J.width<N/2||J.width>U/2||J.height<L/2||J.height>W/2){l.dragHandler.cancelDrag();return}l.updatePosition({deltaX:X?0:J.deltaX,deltaY:Q?0:J.deltaY}),l.nodeModel.rx=J.width,l.nodeModel.ry=J.height,l.nodeModel.setProperties({nodeSize:{rx:J.width,ry:J.height}});var H={x:S,y:P,rx:g,ry:E},B={rx:J.width,ry:J.height,x:l.nodeModel.x,y:l.nodeModel.y};l.updateEdgePointByAnchors(),l.eventEmit({beforeNode:H,afterNode:B})},l.eventEmit=function(o){var d=o.beforeNode,h=o.afterNode,b=l.nodeModel,g=b.id,E=b.modelType,S=b.type,P=Yc({id:g,modelType:E,type:S},d),k=Yc({id:g,modelType:E,type:S},h);l.graphModel.eventCenter.emit("node:resize",{oldNodeSize:P,newNodeSize:k})},l.onDragging=function(o){var d,h=o.deltaX,b=o.deltaY,g=l.graphModel.transformModel,E=l.nodeModel.modelType;d=U5(g.fixDeltaXY(h,b),2),h=d[0],b=d[1],E===El.RECT_NODE||E===El.HTML_NODE?l.updateRect({deltaX:h,deltaY:b}):E===El.ELLIPSE_NODE?l.updateEllipse({deltaX:h,deltaY:b}):E===El.DIAMOND_NODE&&l.updateDiamond({deltaX:h,deltaY:b})},l.onDragEnd=function(){var o=l.graphModel.gridSize,d=o===void 0?1:o,h=d*Math.round(l.nodeModel.x/d),b=d*Math.round(l.nodeModel.y/d);l.nodeModel.moveTo(h,b),l.updateEdgePointByAnchors()},l.index=u.index,l.nodeModel=u.model,l.graphModel=u.graphModel,l.state={},l.dragHandler=new H5({onDragging:l.onDragging,onDragEnd:l.onDragEnd,step:1}),l}return a.prototype.getNodeEdges=function(u){for(var l=this.graphModel,o=l.edges,d=[],h=[],b=0;b<o.length;b++){var g=o[b];g.sourceNodeId===u?d.push(g):o[b].targetNodeId===u&&h.push(g)}return{sourceEdges:d,targetEdges:h}},a.prototype.render=function(){var u=this.props,l=u.x,o=u.y,d=u.index,h=u.model,b=h.getControlPointStyle();return Ap("g",{className:"lf-resize-control-"+d},Ap(y0,Yc({className:"lf-node-control"},{x:l,y:o},b,{onMouseDown:this.dragHandler.handleMouseDown})))},a}(Pl),Y5=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),_y=globalThis&&globalThis.__assign||function(){return _y=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},_y.apply(this,arguments)},Ky=function(n){Y5(a,n);function a(){var u=n.call(this)||this;return u.state={},u}return a.prototype.getResizeControl=function(){var u=this.props,l=u.model,o=u.graphModel,d=l.x,h=l.y,b=l.width,g=l.height,E={minX:d-b/2,minY:h-g/2,maxX:d+b/2,maxY:h+g/2},S=E.minX,P=E.minY,k=E.maxX,M=E.maxY,C=[{x:S,y:P},{x:k,y:P},{x:k,y:M},{x:S,y:M}];return C.map(function(N,L){return Ap(X5,_y({index:L},N,{model:l,graphModel:o}))})},a.prototype.getGroupSolid=function(){var u=this.props.model,l=u.x,o=u.y,d=u.width,h=u.height,b=u.getResizeOutlineStyle();return Ap(y0,_y({fill:"none"},b,{x:l,y:o,width:d,height:h}))},a.prototype.render=function(){return Ap("g",{className:"lf-resize-control"},this.getGroupSolid(),this.getResizeControl())},a}(Pl),tS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),V5=function(n){tS(a,n);function a(u,l){var o=n.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return a.prototype.initNodeData=function(u){n.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=n.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.resize=function(u,l){console.log(u,l)},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},d={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a}(ot.exports.RectNodeModel),K5=function(n){tS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Ky,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return n.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a}(ot.exports.RectNode),nS={type:"rect",view:K5,model:V5},rS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();(function(n){rS(a,n);function a(u,l){var o=n.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return a.prototype.initNodeData=function(u){n.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=n.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},d={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.EllipseNodeModel);(function(n){rS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Ky,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return n.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l.isSelected&&!o?this.getControlGroup():"")},a})(ot.exports.EllipseNode);var Em=globalThis&&globalThis.__assign||function(){return Em=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Em.apply(this,arguments)};function q5(n){var a=n.fillOpacity,u=a===void 0?1:a,l=n.strokeWidth,o=l===void 0?1:l,d=n.strokeOpacity,h=d===void 0?1:d,b=n.fill,g=b===void 0?"transparent":b,E=n.stroke,S=E===void 0?"#000":E,P=n.points,k=n.className,M=k===void 0?"lf-basic-shape":k,C={fill:g,fillOpacity:u,strokeWidth:o,stroke:S,strokeOpacity:h,points:"",className:M};return C.points=P.map(function(N){return N.join(",")}).join(" "),ot.exports.h("polygon",Em({},C))}var oS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Sm=globalThis&&globalThis.__assign||function(){return Sm=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Sm.apply(this,arguments)};(function(n){oS(a,n);function a(u,l){var o=n.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.rx=d.rx,o.ry=d.ry),o}return a.prototype.initNodeData=function(u){n.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.gridSize=1},a.prototype.getOutlineStyle=function(){var u=n.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.rx,basisHeight:this.ry},d={maxScaleLimit:Math.min(this.maxWidth/(this.rx*2)*100,this.maxHeight/(this.ry*2)*100),minScaleLimit:Math.max(this.minWidth/(this.rx*2)*100,this.minHeight/(this.ry*2)*100)};this.PCTResizeInfo={ResizePCT:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.DiamondNodeModel);(function(n){oS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Ky,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){var u=this.props.model,l=u.points,o=u.getNodeStyle();return ot.exports.h("g",null,ot.exports.h(q5,Sm({},o,{points:l})))},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a})(ot.exports.DiamondNode);var iS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();(function(n){iS(a,n);function a(u,l){var o=n.call(this,u,l)||this,d=o.properties.nodeSize;return d&&(o.width=d.width,o.height=d.height),o}return a.prototype.initNodeData=function(u){n.prototype.initNodeData.call(this,u),this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3},a.prototype.getOutlineStyle=function(){var u=n.prototype.getOutlineStyle.call(this),l=this.graphModel.editConfigModel.isSilentMode;return l||(u.stroke="none",u.hover&&(u.hover.stroke="none")),u},a.prototype.getResizeOutlineStyle=function(){return{stroke:"#000000",strokeWidth:1,strokeDasharray:"3,3"}},a.prototype.getControlPointStyle=function(){return{width:7,height:7,fill:"#FFFFFF",stroke:"#000000"}},a.prototype.enableProportionResize=function(u){if(u===void 0&&(u=!0),u){var l={widthPCT:100,hightPCT:100},o={basisWidth:this.width,basisHeight:this.height},d={maxScaleLimit:Math.min(this.maxWidth/this.width*100,this.maxHeight/this.height*100),minScaleLimit:Math.max(this.minWidth/this.width*100,this.minHeight/this.height*100)};this.PCTResizeInfo={ResizePCT:l,ResizeBasis:o,ScaleLimit:d}}else delete this.PCTResizeInfo},a})(ot.exports.HtmlNodeModel);(function(n){iS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props,l=u.model,o=u.graphModel;return ot.exports.h(Ky,{model:l,graphModel:o})},a.prototype.getResizeShape=function(){return n.prototype.getShape.call(this)},a.prototype.getShape=function(){var u=this.props,l=u.model.isSelected,o=u.graphModel.editConfigModel.isSilentMode;return ot.exports.h("g",null,this.getResizeShape(),l&&!o?this.getControlGroup():"")},a})(ot.exports.HtmlNode);var aS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Oy=globalThis&&globalThis.__assign||function(){return Oy=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Oy.apply(this,arguments)},Z5=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},J5=globalThis&&globalThis.__spread||function(){for(var n=[],a=0;a<arguments.length;a++)n=n.concat(Z5(arguments[a]));return n},ew=500,tw=300,Q5=-1e4;(function(n){aS(a,n);function a(){var u=n!==null&&n.apply(this,arguments)||this;return u.isGroup=!0,u.unfoldedWidth=ew,u.unfoldedHight=tw,u.childrenLastFoldStatus={},u}return a.prototype.initNodeData=function(u){var l=this;n.prototype.initNodeData.call(this,u);var o=[];Array.isArray(u.children)&&(o=u.children),this.children=new Set(o),this.width=ew,this.height=tw,this.foldedWidth=80,this.foldedHeight=60,this.zIndex=Q5,this.radius=0,this.text.editable=!1,this.text.draggable=!1,this.isRestrict=!1,this.resizable=!1,this.autoToFront=!1,this.foldable=!1,this.properties.isFolded===void 0&&(this.properties.isFolded=!1),this.isFolded=this.properties.isFolded,setTimeout(function(){l.isFolded&&l.foldGroup(l.isFolded)})},a.prototype.getResizeOutlineStyle=function(){var u=n.prototype.getResizeOutlineStyle.call(this);return u.stroke="none",u},a.prototype.foldGroup=function(u){var l=this;if(u!==this.isFolded){this.setProperty("isFolded",u),this.isFolded=u,u?(this.x=this.x-this.width/2+this.foldedWidth/2,this.y=this.y-this.height/2+this.foldedHeight/2,this.unfoldedWidth=this.width,this.unfoldedHight=this.height,this.width=this.foldedWidth,this.height=this.foldedHeight):(this.width=this.unfoldedWidth,this.height=this.unfoldedHight,this.x=this.x+this.width/2-this.foldedWidth/2,this.y=this.y+this.height/2-this.foldedHeight/2);var o=this.incoming.edges.concat(this.outgoing.edges);this.children.forEach(function(d){var h=l.graphModel.getElement(d),b=h.isFolded;if(h.isGroup&&!h.isFolded&&h.foldGroup(u),h.isGroup&&!u){var g=l.childrenLastFoldStatus[d];g!==void 0&&g!==h.isFolded&&h.foldGroup(g)}l.childrenLastFoldStatus[d]=b,h.visible=!u,o=o.concat(h.incoming.edges.concat(h.outgoing.edges))}),this.foldEdge(u,o)}},a.prototype.getAnchorStyle=function(u){var l=n.prototype.getAnchorStyle.call(this,u);return l.stroke="transparent",l.fill="transparent",l.hover.fill="transparent",l.hover.stroke="transparent",l},a.prototype.foldEdge=function(u,l){var o=this;l.forEach(function(d,h){var b=d.id,g=d.sourceNodeId,E=d.targetNodeId,S=d.startPoint,P=d.endPoint,k=d.type,M=d.text,C=d.getProperties(),N={id:b+"__"+h,sourceNodeId:g,targetNodeId:E,startPoint:S,endPoint:P,type:k,properties:C,text:M==null?void 0:M.value};d.virtual&&o.graphModel.deleteEdgeById(d.id);var L=o.graphModel.group.getNodeGroup(E);L||(L=o.graphModel.getNodeModelById(E));var U=o.graphModel.group.getNodeGroup(g);U||(U=o.graphModel.getNodeModelById(g)),u&&d.visible!==!1&&(o.children.has(g)||o.id===g?(N.startPoint=void 0,N.sourceNodeId=o.id):(N.endPoint=void 0,N.targetNodeId=o.id),(L.id!==o.id||U.id!==o.id)&&o.createVirtualEdge(N),d.visible=!1),!u&&d.visible===!1&&(L&&L.isGroup&&L.isFolded?(N.targetNodeId=L.id,N.endPoint=void 0,o.createVirtualEdge(N)):U&&U.isGroup&&U.isFolded?(N.sourceNodeId=U.id,N.startPoint=void 0,o.createVirtualEdge(N)):d.visible=!0)})},a.prototype.createVirtualEdge=function(u){u.pointsList=void 0;var l=this.graphModel.addEdge(u);l.virtual=!0,l.text.editable=!1,l.isFoldedEdge=!0},a.prototype.isInRange=function(u){var l=u.x1,o=u.y1,d=u.x2,h=u.y2;return l>=this.x-this.width/2&&d<=this.x+this.width/2&&o>=this.y-this.height/2&&h<=this.y+this.height/2},a.prototype.isAllowMoveTo=function(u){var l=u.x1,o=u.y1,d=u.x2,h=u.y2;return{x:l>=this.x-this.width/2&&d<=this.x+this.width/2,y:o>=this.y-this.height/2&&h<=this.y+this.height/2}},a.prototype.setAllowAppendChild=function(u){this.setProperty("groupAddable",u)},a.prototype.addChild=function(u){this.children.add(u),this.graphModel.eventCenter.emit("group:add-node",{data:this.getData()})},a.prototype.removeChild=function(u){this.children.delete(u),this.graphModel.eventCenter.emit("group:remove-node",{data:this.getData()})},a.prototype.getAddableOutlineStyle=function(){return{stroke:"#FEB663",strokeWidth:2,strokeDasharray:"4 4",fill:"transparent"}},a.prototype.getData=function(){var u=this,l=n.prototype.getData.call(this);l.children=[],this.children.forEach(function(d){var h=u.graphModel.getNodeModelById(d);h&&!h.virtual&&l.children.push(d)});var o=l.properties;return delete o.groupAddable,delete o.isFolded,l},a.prototype.getHistoryData=function(){var u=n.prototype.getData.call(this);u.children=J5(this.children),u.isGroup=!0;var l=u.properties;return delete l.groupAddable,l.isFolded&&(u.x=u.x+this.unfoldedWidth/2-this.foldedWidth/2,u.y=u.y+this.unfoldedHight/2-this.foldedHeight/2),u},a.prototype.isAllowAppendIn=function(u){return!0},a.prototype.toBack=function(){this.zIndex--},a})(nS.model);(function(n){aS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getControlGroup=function(){var u=this.props.model,l=u.resizable,o=u.properties;return l&&!o.isFolded?n.prototype.getControlGroup.call(this):null},a.prototype.getAddableShape=function(){var u=this.props.model,l=u.width,o=u.height,d=u.x,h=u.y,b=u.radius,g=u.properties;if(!g.groupAddable)return null;var E=this.props.model.getNodeStyle().strokeWidth,S=this.props.model.getAddableOutlineStyle(),P=l+E+8,k=o+E+8;return ot.exports.h("rect",Oy(Oy({},S),{width:P,height:k,x:d-P/2,y:h-k/2,rx:b,ry:b}))},a.prototype.getFoldIcon=function(){var u=this.props.model,l=u.x-u.width/2+5,o=u.y-u.height/2+5;if(!u.foldable)return null;var d=ot.exports.h("path",{fill:"none",stroke:"#818281",strokeWidth:2,"pointer-events":"none",d:u.properties.isFolded?"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" M"+(l+7)+","+(o+2)+" "+(l+7)+","+(o+10):"M "+(l+3)+","+(o+6)+" "+(l+11)+","+(o+6)+" "});return ot.exports.h("g",{},[ot.exports.h("rect",{height:12,width:14,rx:2,ry:2,strokeWidth:1,fill:"#F4F5F6",stroke:"#CECECE",cursor:"pointer",x:u.x-u.width/2+5,y:u.y-u.height/2+5,onClick:function(){u.foldGroup(!u.properties.isFolded)}}),d])},a.prototype.getResizeShape=function(){return ot.exports.h("g",{},[this.getAddableShape(),n.prototype.getResizeShape.call(this),this.getFoldIcon()])},a})(nS.view);var nw=globalThis&&globalThis.__assign||function(){return nw=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},nw.apply(this,arguments)};globalThis&&globalThis.__rest;var e7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}();var rw=globalThis&&globalThis.__assign||function(){return rw=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},rw.apply(this,arguments)};globalThis&&globalThis.__values;var ow=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Mp=globalThis&&globalThis.__assign||function(){return Mp=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Mp.apply(this,arguments)};function t7(n){var a=function(l){ow(o,l);function o(d,h){var b=this;d.id||(d.id="Flow_"+M5());var g=Mp(Mp(Mp({},n||{}),d.properties),{isDefaultFlow:!1});return d.properties=g,b=l.call(this,d,h)||this,b}return o.extendKey="SequenceFlowModel",o}(ot.exports.PolylineEdgeModel),u=function(l){ow(o,l);function o(){return l!==null&&l.apply(this,arguments)||this}return o.prototype.getStartArrow=function(){var d=this.props.model,h=d.properties.isDefaultFlow;return h?ot.exports.h("path",{refX:15,stroke:"#000000",strokeWidth:2,d:"M 20 5 10 -5 z"}):ot.exports.h("path",{d:""})},o.extendKey="SequenceFlowEdge",o}(ot.exports.PolylineEdge);return{type:"bpmn:sequenceFlow",view:u,model:a}}t7();globalThis&&globalThis.__read;var iw={width:40,height:40},aw={width:40,height:40},uw={width:100,height:80},wy={width:100,height:80},cw={width:100,height:80},sw={width:100,height:80},lw={width:100,height:80},fw={width:100,height:80},pw={width:100,height:80},dw={width:100,height:80},lo=function(){};lo.ObjTree=function(){return this};lo.ObjTree.VERSION="0.23";lo.ObjTree.prototype.xmlDecl=`<?xml version="1.0" encoding="UTF-8" ?>
- `;lo.ObjTree.prototype.attr_prefix="-";lo.ObjTree.prototype.parseXML=function(n){var a;if(window.DOMParser){var u=new DOMParser,l=u.parseFromString(n,"application/xml");if(!l)return;a=l.documentElement}else window.ActiveXObject&&(u=new ActiveXObject("Microsoft.XMLDOM"),u.async=!1,u.loadXML(n),a=u.documentElement);if(!!a){var o=this.parseDOM(a);return o}};lo.ObjTree.prototype.parseHTTP=function(n,a,u){var l={};for(var o in a)l[o]=a[o];if(l.method||(typeof l.postBody=="undefined"&&typeof l.postbody=="undefined"&&typeof l.parameters=="undefined"?l.method="get":l.method="post"),u){l.asynchronous=!0;var d=this,h=u,b=l.onComplete;l.onComplete=function(S){var P;S&&S.responseXML&&S.responseXML.documentElement&&(P=d.parseDOM(S.responseXML.documentElement)),h(P,S),b&&b(S)}}else l.asynchronous=!1;var g;if(typeof HTTP!="undefined"&&HTTP.Request){l.uri=n;var E=new HTTP.Request(l);E&&(g=E.transport)}else if(typeof Ajax!="undefined"&&Ajax.Request){var E=new Ajax.Request(n,l);E&&(g=E.transport)}if(u)return g;if(g&&g.responseXML&&g.responseXML.documentElement)return this.parseDOM(g.responseXML.documentElement)};lo.ObjTree.prototype.parseDOM=function(n){if(!!n){if(this.__force_array={},this.force_array)for(var a=0;a<this.force_array.length;a++)this.__force_array[this.force_array[a]]=1;var u=this.parseElement(n);if(this.__force_array[n.nodeName]&&(u=[u]),n.nodeType!==11){var l={};l[n.nodeName]=u,u=l}return u}};lo.ObjTree.prototype.parseElement=function(n){if(n.nodeType!==7){if(n.nodeType===3||n.nodeType===4||n.nodeType===8){var a=n.nodeValue.match(/[^\x00-\x20]/);return a==null?void 0:n.nodeValue}var u=null,l={};if(n.attributes&&n.attributes.length){u={};for(var o=0;o<n.attributes.length;o++){var d=n.attributes[o].nodeName;if(typeof d=="string"){var h=n.attributes[o].nodeValue;try{h=JSON.parse(n.attributes[o].nodeValue.replace(/'/g,'"'))}catch{h=n.attributes[o].nodeValue}h!=null&&(d=this.attr_prefix+d,typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}if(n.childNodes&&n.childNodes.length){var b=!0;u&&(b=!1);for(var o=0;o<n.childNodes.length&&b;o++){var g=n.childNodes[o].nodeType;g===3||g===4||g===8||(b=!1)}if(b){u||(u="");for(var o=0;o<n.childNodes.length;o++)u+=n.childNodes[o].nodeValue}else{u||(u={});for(var o=0;o<n.childNodes.length;o++){var d=n.childNodes[o].nodeName;if(typeof d=="string"){var h=this.parseElement(n.childNodes[o]);!h||(typeof l[d]=="undefined"&&(l[d]=0),l[d]++,this.addNode(u,d,l[d],h))}}}}else u===null&&(u={});return u}};lo.ObjTree.prototype.addNode=function(n,a,u,l){this.__force_array[a]?(u===1&&(n[a]=[]),n[a][n[a].length]=l):u===1?n[a]=l:u===2?n[a]=[n[a],l]:n[a][n[a].length]=l};lo.ObjTree.prototype.writeXML=function(n){var a=this.hash_to_xml(null,n);return this.xmlDecl+a};lo.ObjTree.prototype.hash_to_xml=function(n,a){var u=[],l=[];for(var o in a)if(!!(a!=null&&a.hasOwnProperty(o))){var d=a[o];o.charAt(0)!==this.attr_prefix?typeof d=="undefined"||d==null?u[u.length]="<"+o+" />":typeof d=="object"&&d.constructor===Array?u[u.length]=this.array_to_xml(o,d):typeof d=="object"?u[u.length]=this.hash_to_xml(o,d):u[u.length]=this.scalar_to_xml(o,d):l[l.length]=" "+o.substring(1)+'="'+this.xml_escape(d)+'"'}var h=l.join(""),b=u.join("");return typeof n=="undefined"||n==null||(u.length>0?b.match(/\n/)?b="<"+n+h+`>
- `+b+"</"+n+`>
- `:b="<"+n+h+">"+b+"</"+n+`>
- `:b="<"+n+h+` />
- `),b};lo.ObjTree.prototype.array_to_xml=function(n,a){for(var u=[],l=0;l<a.length;l++){var o=a[l];typeof o=="undefined"||o==null?u[u.length]="<"+n+" />":typeof o=="object"&&o.constructor===Array?u[u.length]=this.array_to_xml(n,o):typeof o=="object"?u[u.length]=this.hash_to_xml(n,o):u[u.length]=this.scalar_to_xml(n,o)}return u.join("")};lo.ObjTree.prototype.scalar_to_xml=function(n,a){return n==="#text"?this.xml_escape(a):"<"+n+">"+this.xml_escape(a)+"</"+n+`>
- `};lo.ObjTree.prototype.xml_escape=function(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')};var n7=function(n){return new lo.ObjTree().parseXML(n)};function uS(n){return Object.prototype.toString.call(n)}function hw(n){return" ".repeat(n)}function xy(n){return uS(n)==="[object Object]"?Object.keys(n).reduce(function(a,u){var l=u;return u.charAt(0)==="-"&&(l=u.substring(1)),a[l]=xy(n[u]),a},{}):Array.isArray(n)?n.map(function(a){return xy(a)}):n}function r7(n){var a=n;try{typeof a!="string"&&(a=JSON.parse(n))}catch{a=JSON.stringify(xy(n)).replace(/"/g,"'")}return a}var yw=`
- `;function sy(n,a,u){var l=hw(u),o="",d=yw+l;if(a==="-json")return"";if(a==="#text")return d+n;if(a==="#cdata-section")return d+"<![CDATA["+n+"]]>";if(a==="#comment")return d+"<!--"+n+"-->";if((""+a).charAt(0)==="-")return" "+a.substring(1)+'="'+r7(n)+'"';if(Array.isArray(n))o+=n.map(function(E){return sy(E,a,u+1)}).join("");else if(uS(n)==="[object Object]"){var h=Object.keys(n),b="",g=n["-json"]?yw+hw(u+1)+n["-json"]:"";o+=(u===0?"":d)+"<"+a,h.forEach(function(E){E.charAt(0)==="-"?b+=sy(n[E],E,u+1):g+=sy(n[E],E,u+1)}),o+=b+(g!==""?">"+g+d+"</"+a+">":" />")}else o+=d+"<"+a+">"+n.toString()+"</"+a+">";return o}function o7(n){var a="";for(var u in n)a+=sy(n[u],u,0);return a}var i7=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),jm=globalThis&&globalThis.__assign||function(){return jm=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},jm.apply(this,arguments)},vw=globalThis&&globalThis.__rest||function(n,a){var u={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(u[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(n);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(n,l[o])&&(u[l[o]]=n[l[o]]);return u},v0=globalThis&&globalThis.__values||function(n){var a=typeof Symbol=="function"&&Symbol.iterator,u=a&&n[a],l=0;if(u)return u.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&l>=n.length&&(n=void 0),{value:n&&n[l++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Fl=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},Al=globalThis&&globalThis.__spread||function(){for(var n=[],a=0;a<arguments.length;a++)n=n.concat(Fl(arguments[a]));return n},uo;(function(n){n.START="bpmn:startEvent",n.END="bpmn:endEvent",n.INTERMEDIATE_CATCH="bpmn:intermediateCatchEvent",n.INTERMEDIATE_THROW="bpmn:intermediateThrowEvent",n.BOUNDARY="bpmn:boundaryEvent",n.PARALLEL_GATEWAY="bpmn:parallelGateway",n.INCLUSIVE_GATEWAY="bpmn:inclusiveGateway",n.EXCLUSIVE_GATEWAY="bpmn:exclusiveGateway",n.USER="bpmn:userTask",n.SYSTEM="bpmn:serviceTask",n.FLOW="bpmn:sequenceFlow",n.SUBPROCESS="bpmn:subProcess"})(uo||(uo={}));var cS=["-name","-id","bpmn:incoming","bpmn:outgoing","-sourceRef","-targetRef","-children"],a7=["properties","startPoint","endPoint","pointsList"],Ey={in:[],out:["properties.panels","properties.nodeSize","properties.definitionId","properties.timerValue","properties.timerType","properties.definitionType","properties.parent","properties.isBoundaryEventTouchingTask"]},sS=function(n,a){var u=Object.keys(a||{});return u.forEach(function(l){if(n[l]){var o=a[l],d=o.in,h=o.out;d&&(n[l].in=d),h&&(n[l].out=h)}else n[l]=a[l]}),n},ai={"bpmn:startEvent":{out:function(n){var a,u,l=n.properties;return((u=(a=ai[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,n))||{}}},"bpmn:intermediateCatchEvent":{out:function(n){var a,u,l=n.properties;return((u=(a=ai[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,n))||{}}},"bpmn:intermediateThrowEvent":{out:function(n){var a,u,l=n.properties;return((u=(a=ai[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,n))||{}}},"bpmn:boundaryEvent":{out:function(n){var a,u,l=n.properties;return((u=(a=ai[l.definitionType])===null||a===void 0?void 0:a.out)===null||u===void 0?void 0:u.call(a,n))||{}}},"bpmn:sequenceFlow":{out:function(n){var a=n.properties,u=a.expressionType,l=a.condition;return l?u==="cdata"?{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[${'+l+"}]]></bpmn:conditionExpression>"}:{json:'<bpmn:conditionExpression xsi:type="bpmn2:tFormalExpression">'+l+"</bpmn:conditionExpression>"}:{json:""}}},"bpmn:timerEventDefinition":{out:function(n){var a=n.properties,u=a.timerType,l=a.timerValue,o=a.definitionId,d=function(){return"<bpmn:"+u+' xsi:type="bpmn:tFormalExpression">'+l+"</bpmn:"+u+">"};return{json:'<bpmn:timerEventDefinition id="'+o+'"'+(u&&l?">"+d()+"</bpmn:timerEventDefinition>":"/>")}},in:function(n,a){var u,l,o,d,h=n,b=a["-id"],g="",E="";try{for(var S=v0(Object.keys(a)),P=S.next();!P.done;P=S.next()){var k=P.value;k.includes("bpmn:")&&(o=Fl(k.split(":"),2),g=o[1],E=(d=a[k])===null||d===void 0?void 0:d["#text"])}}catch(M){u={error:M}}finally{try{P&&!P.done&&(l=S.return)&&l.call(S)}finally{if(u)throw u.error}}return{"-definitionId":b,"-definitionType":h,"-timerType":g,"-timerValue":E}}},"bpmn:conditionExpression":{in:function(n,a){var u,l="",o="";return a["#cdata-section"]?(o="cdata",l=((u=/^\$\{(.*)\}$/g.exec(a["#cdata-section"]))===null||u===void 0?void 0:u[1])||""):a["#text"]&&(o="normal",l=a["#text"]),{"-condition":l,"-expressionType":o}}}};function u7(n){var a=n!=null?n:{},u=a.retainedAttrsFields,l=a.excludeFields,o=a.transformer,d=new Set(Al(a7,u||[])),h={in:new Set(Al(Ey.in,(l==null?void 0:l.in)||[])),out:new Set(Al(Ey.out,(l==null?void 0:l.out)||[]))};return ai=sS(ai,o),function(b){var g=b.nodes,E=b.edges;function S(P,k){var M,C,N;if((P==null?void 0:P.flag)!==1){var L;if((L=ai[P.type])&&L.out){var U=L.out(P),W=Object.keys(U);W.length>0&&W.forEach(function(V){P[V]=U[V]})}P!=null&&P.children&&(P.children=P.children.map(function(V){var Y=g.find(function(q){return q.id===V})||E.find(function(q){return q.id===V});return Y||{}}));var X={};if(typeof P=="string")return P;if(Array.isArray(P))return P.map(function(V){return S(V,"")}).filter(function(V){return V!=null});try{for(var Q=v0(Object.entries(P)),te=Q.next();!te.done;te=Q.next()){var Z=Fl(te.value,2),J=Z[0],H=Z[1];if(((N=H)===null||N===void 0?void 0:N.flag)===1)return;var B=[k,J].filter(function(V){return V}).join(".");h.out.has(B)||(typeof H!="object"?J.indexOf("-")===0||["#text","#cdata-section","#comment"].includes(J)?X[J]=H:X["-"+J]=H:d.has(B)?X["-"+J]=S(H,B):X[J]=S(H,B))}}catch(V){M={error:V}}finally{try{te&&!te.done&&(C=Q.return)&&C.call(Q)}finally{if(M)throw M.error}}return X}}return S(b,"")}}function Sy(n){var a,u,l={};try{for(var o=v0(Object.entries(n)),d=o.next();!d.done;d=o.next()){var h=Fl(d.value,2),b=h[0],g=h[1];b.indexOf("-")===0?l[b.substring(1)]=xy(g):typeof g=="string"?l[b]=g:Object.prototype.toString.call(g)==="[object Object]"?l[b]=Sy(g):Array.isArray(g)?l[b]=g.map(function(E){return Sy(E)}):l[b]=g}}catch(E){a={error:E}}finally{try{d&&!d.done&&(u=o.return)&&u.call(o)}finally{if(a)throw a.error}}return l}function c7(n,a,u){var l,o=new Map,d=u7(u)(a);d.nodes.forEach(function(b){var g=b["-id"],E=b["-type"],S=b.text,P=b.children,k=vw(b,["-id","-type","text","children"]),M={"-id":g};S!=null&&S["-value"]&&(M["-name"]=S["-value"]),k["-json"]&&(M["-json"]=k["-json"]),k["-properties"]&&Object.assign(M,k["-properties"]),P&&(M.children=P),n[E]||(n[E]=[]),n[E].push(M),o.set(g,M)});var h=d.edges.map(function(b){var g=b["-id"];b["-type"];var E=b["-sourceNodeId"],S=b["-targetNodeId"],P=b.text,k=vw(b,["-id","-type","-sourceNodeId","-targetNodeId","text"]),M=o.get(S);M["bpmn:incoming"]||(M["bpmn:incoming"]=[]),M["bpmn:incoming"].push(g);var C={"-id":g,"-sourceRef":E,"-targetRef":S};return P!=null&&P["-value"]&&(C["-name"]=P["-value"]),k["-json"]&&(C["-json"]=k["-json"]),k["-properties"]&&Object.assign(C,k["-properties"]),C});return a.edges.forEach(function(b){var g=b.sourceNodeId,E=b.id,S=o.get(g);S["bpmn:outgoing"]||(S["bpmn:outgoing"]=[]),S["bpmn:outgoing"].push(E)}),(l=n["bpmn:subProcess"])===null||l===void 0||l.forEach(function(b){var g={"bpmn:incoming":new Set,"bpmn:outgoing":new Set},E=[];b.children.forEach(function(N){var L,U=o.get(N["-id"]);["bpmn:incoming","bpmn:outgoing"].forEach(function(X){U[X]&&U[X].forEach(function(Q){g[X].add(Q)})});var W=(L=n[N["-type"]])===null||L===void 0?void 0:L.findIndex(function(X){return X["-id"]===N["-id"]});W>=0&&n[N["-type"]].splice(W,1),o.delete(N["-id"]),b[N["-type"]]||(b[N["-type"]]=[]),b[N["-type"]].push(U)});var S=g["bpmn:incoming"],P=g["bpmn:outgoing"];P.forEach(function(N){S.has(N)&&E.push(N)});for(var k=function(N){var L=h.findIndex(function(U){return U["-id"]===E[N]});L>=0?(b["bpmn:sequenceFlow"]||(b["bpmn:sequenceFlow"]=[]),b["bpmn:sequenceFlow"].push(h[L]),h.splice(L,1)):N++,M=N},M,C=0;C<E.length;)k(C),C=M;delete b.children}),n[uo.FLOW]=h,n}function s7(n,a){n["bpmndi:BPMNEdge"]=a.edges.map(function(u){var l,o=u.id,d=u.pointsList.map(function(b){var g=b.x,E=b.y;return{"-x":g,"-y":E}}),h={"-id":o+"_di","-bpmnElement":o,"di:waypoint":d};return!((l=u.text)===null||l===void 0)&&l.value&&(h["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),h}),n["bpmndi:BPMNShape"]=a.nodes.map(function(u){var l,o=u.id,d=100,h=80,b=u.x,g=u.y,E=wo.shapeConfigMap.get(u.type);E&&(d=E.width,h=E.height),b-=d/2,g-=h/2;var S={"-id":o+"_di","-bpmnElement":o,"dc:Bounds":{"-x":b,"-y":g,"-width":d,"-height":h}};return!((l=u.text)===null||l===void 0)&&l.value&&(S["bpmndi:BPMNLabel"]={"dc:Bounds":{"-x":u.text.x-u.text.value.length*10/2,"-y":u.text.y-7,"-width":u.text.value.length*10,"-height":14}}),S})}var l7=["bpmn:incoming","bpmn:outgoing"];function f7(n,a){var u=[],l=[],o=new Map,d=a!=null?a:{},h=d.transformer,b=d.excludeFields,g={in:new Set(Al(Ey.in,(b==null?void 0:b.in)||[])),out:new Set(Al(Ey.out,(b==null?void 0:b.out)||[]))};ai=sS(ai,h);var E=n["bpmn:definitions"];if(E){var S=E["bpmn:process"];(function(k,M){M.forEach(function(C){try{Object.keys(k).forEach(function(N){try{C(N)}catch(L){console.error(L)}})}catch(N){console.error(N)}})})(S,[function(k){function M(N){N["-children"]||(N["-children"]=[]),Object.keys(N).forEach(function(L){var U;L.indexOf("bpmn:")===0&&!l7.includes(L)&&(S[L]||(S[L]=[]),!Array.isArray(S[L])&&(S[L]=[S[L]]),Array.isArray(N[L])?(U=S[L]).push.apply(U,Al(N[L])):S[L].push(N[L]),Array.isArray(N[L])?N[L].forEach(function(W){!L.includes("Flow")&&N["-children"].push(W["-id"])}):!L.includes("Flow")&&N["-children"].push(N[L]["-id"]),delete N[L])})}if(k==="bpmn:subProcess"){var C=S[k];Array.isArray(C)?C.forEach(function(N){k==="bpmn:subProcess"&&M(N)}):M(C)}},function(k){var M=function(N){Object.keys(N).forEach(function(L){var U,W;if(L.includes("bpmn:")){var X={};ai[L]&&ai[L].in?(X=(W=(U=ai[L]).in)===null||W===void 0?void 0:W.call(U,L,$.cloneDeep(N[L])),delete N[L]):C(N[L]);var Q=void 0;(Q=Reflect.ownKeys(X)).length>0&&Q.forEach(function(te){Reflect.set(N,te,X[te])})}})};function C(N){o.set(N["-id"],N),Array.isArray(N)?N.forEach(function(L){C(L)}):typeof N=="object"&&M(N)}C(S[k])},function(k){if(k.indexOf("bpmn:")===0){var M=S[k];if(k==="bpmn:sequenceFlow"){var C=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNEdge"];l=d7(M,C)}else{var N=E["bpmndi:BPMNDiagram"]["bpmndi:BPMNPlane"]["bpmndi:BPMNShape"];if(k==="bpmn:boundaryEvent"){var L=S[k],U=function(W){var X=W["-attachedToRef"],Q=o.get(X);Q["-boundaryEvents"]||(Q["-boundaryEvents"]=[]),Q["-boundaryEvents"].push(W["-id"])};Array.isArray(L)?L.forEach(function(W){U(W)}):U(L)}u=u.concat(p7(M,N,k))}}}])}var P=function(k,M,C){Object.keys(k).forEach(function(N){var L=C?C+"."+N:N;M.has(L)?delete k[N]:typeof k[N]=="object"&&P(k[N],M,L)})};return u.forEach(function(k){var M,C;if(!((M=a==null?void 0:a.mapping)===null||M===void 0)&&M.in){var N=(C=a==null?void 0:a.mapping)===null||C===void 0?void 0:C.in,L=k.type;N[L]&&(k.type=N[L])}P(k,g.in,"")}),l.forEach(function(k){var M,C;if(!((M=a==null?void 0:a.mapping)===null||M===void 0)&&M.in){var N=(C=a==null?void 0:a.mapping)===null||C===void 0?void 0:C.in,L=k.type;N[L]&&(k.type=N[L])}P(k,g.in,"")}),{nodes:u,edges:l}}function p7(n,a,u){var l=[];if(Array.isArray(n))n.forEach(function(h){var b;Array.isArray(a)?b=a.find(function(E){return E["-bpmnElement"]===h["-id"]}):b=a;var g=gw(b,u,h);l.push(g)});else{var o=void 0;Array.isArray(a)?o=a.find(function(h){return h["-bpmnElement"]===n["-id"]}):o=a;var d=gw(o,u,n);l.push(d)}return l}function gw(n,a,u){var l=Number(n["dc:Bounds"]["-x"]),o=Number(n["dc:Bounds"]["-y"]),d=u["-children"],h=u["-name"],b=wo.shapeConfigMap.get(a);b&&(l+=b.width/2,o+=b.height/2);var g={};Object.entries(u).forEach(function(k){var M=Fl(k,2),C=M[0],N=M[1];cS.includes(C)||(g[C]=N)}),g=Sy(g);var E;if(h&&(E={x:l,y:o,value:h},n["bpmndi:BPMNLabel"]&&n["bpmndi:BPMNLabel"]["dc:Bounds"])){var S=n["bpmndi:BPMNLabel"]["dc:Bounds"];E.x=Number(S["-x"])+Number(S["-width"])/2,E.y=Number(S["-y"])+Number(S["-height"])/2}var P={id:n["-bpmnElement"],type:a,x:l,y:o,properties:g};return d&&(P.children=d),E&&(P.text=E),P}function d7(n,a){var u=[];if(Array.isArray(n))n.forEach(function(o){var d;Array.isArray(a)?d=a.find(function(h){return h["-bpmnElement"]===o["-id"]}):d=a,u.push(bw(d,o))});else{var l=void 0;Array.isArray(a)?l=a.find(function(o){return o["-bpmnElement"]===n["-id"]}):l=a,u.push(bw(l,n))}return u}function bw(n,a){var u,l=a["-name"];if(l){var o=n["bpmndi:BPMNLabel"]["dc:Bounds"],d=0;l.split(`
- `).forEach(function(E){d<E.length&&(d=E.length)}),u={value:l,x:Number(o["-x"])+d*10/2,y:Number(o["-y"])+7}}var h={};Object.entries(a).forEach(function(E){var S=Fl(E,2),P=S[0],k=S[1];cS.includes(P)||(h[P]=k)}),h=Sy(h);var b=n["di:waypoint"].map(function(E){return{x:Number(E["-x"]),y:Number(E["-y"])}}),g={id:a["-id"],type:uo.FLOW,pointsList:b,sourceNodeId:a["-sourceRef"],targetNodeId:a["-targetRef"],properties:h};return u&&(g.text=u),g}var wo=function(){function n(a){var u=this,l=a.lf;this.adapterOut=function(o,d){var h,b,g=jm({},u.processAttributes);c7(g,o,d);var E={"-id":"BPMNPlane_1","-bpmnElement":g["-id"]};s7(E,o);var S=u.definitionAttributes;S["bpmn:process"]=g,S["bpmndi:BPMNDiagram"]={"-id":"BPMNDiagram_1","bpmndi:BPMNPlane":E};var P={"bpmn:definitions":S};if(!((h=d==null?void 0:d.mapping)===null||h===void 0)&&h.out){var k=(b=d==null?void 0:d.mapping)===null||b===void 0?void 0:b.out,M=function(C){Array.isArray(C)&&C.forEach(function(N){return M(N)}),typeof C=="object"&&Object.keys(C).forEach(function(N){var L;(L=k[N])?(C[L]=$.cloneDeep(C[N]),delete C[N],M(C[L])):M(C[N])})};M(P)}return P},this.adapterIn=function(o,d){if(o)return f7(o,d)},l.adapterIn=this.adapterIn,l.adapterOut=this.adapterOut,this.processAttributes={"-isExecutable":"true","-id":"Process"},this.definitionAttributes={"-id":"Definitions","-xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","-xmlns:bpmn":"http://www.omg.org/spec/BPMN/20100524/MODEL","-xmlns:bpmndi":"http://www.omg.org/spec/BPMN/20100524/DI","-xmlns:dc":"http://www.omg.org/spec/DD/20100524/DC","-xmlns:di":"http://www.omg.org/spec/DD/20100524/DI","-targetNamespace":"http://logic-flow.org","-exporter":"logicflow","-exporterVersion":"1.2.10"}}return n.prototype.setCustomShape=function(a,u){n.shapeConfigMap.set(a,u)},n.pluginName="bpmn-adapter",n.shapeConfigMap=new Map,n}();wo.shapeConfigMap.set(uo.START,{width:iw.width,height:iw.height});wo.shapeConfigMap.set(uo.END,{width:aw.width,height:aw.height});wo.shapeConfigMap.set(uo.INTERMEDIATE_CATCH,{width:wy.width,height:wy.height});wo.shapeConfigMap.set(uo.INTERMEDIATE_THROW,{width:wy.width,height:wy.height});wo.shapeConfigMap.set(uo.BOUNDARY,{width:uw.width,height:uw.height});wo.shapeConfigMap.set(uo.PARALLEL_GATEWAY,{width:cw.width,height:cw.height});wo.shapeConfigMap.set(uo.INCLUSIVE_GATEWAY,{width:sw.width,height:sw.height});wo.shapeConfigMap.set(uo.EXCLUSIVE_GATEWAY,{width:lw.width,height:lw.height});wo.shapeConfigMap.set(uo.SYSTEM,{width:fw.width,height:fw.height});wo.shapeConfigMap.set(uo.USER,{width:pw.width,height:pw.height});wo.shapeConfigMap.set(uo.SUBPROCESS,{width:dw.width,height:dw.height});(function(n){i7(a,n);function a(u){var l=n.call(this,u)||this;l.adapterXmlIn=function(h){var b=n7(h);return l.adapterIn(b,l.props)},l.adapterXmlOut=function(h){var b=l.adapterOut(h,l.props);return o7(b)};var o=u.lf,d=u.props;return o.adapterIn=l.adapterXmlIn,o.adapterOut=l.adapterXmlOut,l.props=d,l}return a.pluginName="BPMNAdapter",a})(wo);var h7=function(){function n(a){var u=this,l=a.lf;this.lf=l,this.customCssRules="",this.useGlobalRules=!0,l.getSnapshot=function(o,d){u.getSnapshot(o,d)},l.getSnapshotBlob=function(o){return u.getSnapshotBlob(o)},l.getSnapshotBase64=function(o){return u.getSnapshotBase64(o)}}return n.prototype.getSvgRootElement=function(a){var u=a.container.querySelector(".lf-canvas-overlay");return u},n.prototype.triggerDownload=function(a){var u=new MouseEvent("click",{view:document.defaultView,bubbles:!1,cancelable:!0}),l=document.createElement("a");l.setAttribute("download",this.fileName),l.setAttribute("href",a),l.setAttribute("target","_blank"),l.dispatchEvent(u)},n.prototype.removeAnchor=function(a){for(var u=a.childNodes,l=a.childNodes&&a.childNodes.length,o=0;o<l;o++){var d=u[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-anchor")>-1&&(a.removeChild(a.childNodes[o]),l--,o--)}},n.prototype.removeRotateControl=function(a){for(var u=a.childNodes,l=a.childNodes&&a.childNodes.length,o=0;o<l;o++){var d=u[o],h=d.classList&&Array.from(d.classList)||[];h.indexOf("lf-rotate-control")>-1&&(a.removeChild(a.childNodes[o]),l--,o--)}},n.prototype.getSnapshot=function(a,u){var l=this;this.fileName=a||"logic-flow."+Date.now()+".png";var o=this.getSvgRootElement(this.lf);this.getCanvasData(o,u).then(function(d){var h=d.toDataURL("image/png").replace("image/png","image/octet-stream");l.triggerDownload(h)})},n.prototype.getSnapshotBase64=function(a){var u=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){u.getCanvasData(l,a).then(function(d){var h=d.toDataURL("image/png");o({data:h,width:d.width,height:d.height})})})},n.prototype.getSnapshotBlob=function(a){var u=this,l=this.getSvgRootElement(this.lf);return new Promise(function(o){u.getCanvasData(l,a).then(function(d){d.toBlob(function(h){o({data:h,width:d.width,height:d.height})},"image/png")})})},n.prototype.getClassRules=function(){var a="";if(this.useGlobalRules)for(var u=document.styleSheets,l=0;l<u.length;l++)for(var o=u[l],d=0;d<o.cssRules.length;d++)a+=o.cssRules[d].cssText;return this.customCssRules&&(a+=this.customCssRules),a},n.prototype.getCanvasData=function(a,u){var l=this,o=a.cloneNode(!0),d=o.lastChild,h=d.childNodes&&d.childNodes.length;if(h)for(var b=0;b<h;b++){var g=d.childNodes[b],E=g.classList&&Array.from(g.classList);if(E&&E.indexOf("lf-base")<0)d.removeChild(d.childNodes[b]),h--,b--;else{var S=d.childNodes[b];S&&S.childNodes.forEach(function(xe){var be=xe;l.removeAnchor(be.firstChild),l.removeRotateControl(be.firstChild)})}}var P=window.devicePixelRatio||1;P<1&&(P=1);var k=document.createElement("canvas"),M=this.lf.graphModel.rootEl.querySelector(".lf-base"),C=M.getBoundingClientRect(),N=this.lf.container.querySelector(".lf-canvas-overlay").getBoundingClientRect(),L=C.x-N.x,U=C.y-N.y,W=this.lf.graphModel,X=W.transformModel,Q=X.SCALE_X,te=X.SCALE_Y,Z=X.TRANSLATE_X,J=X.TRANSLATE_Y;o.lastChild.style.transform="matrix(1, 0, 0, 1, "+((-L+Z)*(1/Q)+10)+", "+((-U+J)*(1/te)+10)+")";var H=Math.ceil(C.width/Q),B=Math.ceil(C.height/te);k.style.width=H+"px",k.style.height=B+"px",k.width=H*P+80,k.height=B*P+80;var V=k.getContext("2d");V.clearRect(0,0,k.width,k.height),V.scale(P,P),u?(V.fillStyle=u,V.fillRect(0,0,H*P+80,B*P+80)):V.clearRect(0,0,H,B);var Y=new Image,q=document.createElement("style");q.innerHTML=this.getClassRules();var ue=document.createElement("foreignObject");return ue.appendChild(q),o.appendChild(ue),new Promise(function(xe){Y.onload=function(){var Fe=navigator.userAgent.indexOf("Firefox")>-1;try{Fe?createImageBitmap(Y,{resizeWidth:k.width,resizeHeight:k.height}).then(function(je){V.drawImage(je,0,0),xe(k)}):(V.drawImage(Y,0,0),xe(k))}catch{V.drawImage(Y,0,0),xe(k)}};var be="data:image/svg+xml;charset=utf-8,"+new XMLSerializer().serializeToString(o),Ae=be.replace(/\n/g,"").replace(/\t/g,"").replace(/#/g,"%23");Y.src=Ae})},n.pluginName="snapshot",n}(),mw=globalThis&&globalThis.__assign||function(){return mw=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},mw.apply(this,arguments)};globalThis&&globalThis.__read;var _w;(function(n){n.HORIZONTAL="horizontal",n.VERTICAL="vertical"})(_w||(_w={}));var y7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var v7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var g7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},b7=globalThis&&globalThis.__spread||function(){for(var n=[],a=0;a<arguments.length;a++)n=n.concat(g7(arguments[a]));return n},xp="lf:defaultNodeMenu",Ep="lf:defaultEdgeMenu",Sp="lf:defaultGraphMenu",Ow="lf:defaultSelectionMenu",m7=function(){function n(a){var u=this,l=a.lf;this.lf=l;var o=l.options.isSilentMode;o||(this.__menuDOM=document.createElement("ul"),this.menuTypeMap=new Map,this.init(),this.lf.setMenuConfig=function(d){u.setMenuConfig(d)},this.lf.addMenuConfig=function(d){u.addMenuConfig(d)},this.lf.setMenuByType=function(d){u.setMenuByType(d)})}return n.prototype.init=function(){var a=this,u=[{text:"\u5220\u9664",callback:function(d){a.lf.deleteNode(d.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(d){a.lf.graphModel.editText(d.id)}},{text:"\u590D\u5236",callback:function(d){a.lf.cloneNode(d.id)}}];this.menuTypeMap.set(xp,u);var l=[{text:"\u5220\u9664",callback:function(d){a.lf.deleteEdge(d.id)}},{text:"\u7F16\u8F91\u6587\u672C",callback:function(d){a.lf.graphModel.editText(d.id)}}];this.menuTypeMap.set(Ep,l),this.menuTypeMap.set(Sp,[]);var o=[{text:"\u5220\u9664",callback:function(d){a.lf.clearSelectElements(),d.edges.forEach(function(h){return a.lf.deleteEdge(h.id)}),d.nodes.forEach(function(h){return a.lf.deleteNode(h.id)})}}];this.menuTypeMap.set(Ow,o)},n.prototype.render=function(a,u){var l=this;a.options.isSilentMode||(this.__container=u,this.__currentData=null,this.__menuDOM.className="lf-menu",u.appendChild(this.__menuDOM),this.__menuDOM.addEventListener("click",function(o){o.stopPropagation();for(var d=o.target;Array.from(d.classList).indexOf("lf-menu-item")===-1&&Array.from(d.classList).indexOf("lf-menu")===-1;)d=d.parentElement;Array.from(d.classList).indexOf("lf-menu-item")>-1?(d.onclickCallback(l.__currentData),l.__menuDOM.style.display="none",l.__currentData=null):console.warn("\u70B9\u51FB\u533A\u57DF\u4E0D\u5728\u83DC\u5355\u9879\u5185\uFF0C\u8BF7\u68C0\u67E5\u4EE3\u7801\uFF01")},!0),this.lf.on("node:contextmenu",function(o){var d=o.data,h=o.position,b=o.e,g=h.domOverlayPosition,E=g.x,S=g.y,P=d.id,k=l.lf.graphModel.getNodeModelById(P),M=[],C=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:C?M=C:M=l.menuTypeMap.get(xp),l.__currentData=d,l.showMenu(E,S,M,{width:k.width,height:k.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("edge:contextmenu",function(o){var d=o.data,h=o.position,b=o.e,g=h.domOverlayPosition,E=g.x,S=g.y,P=d.id,k=l.lf.graphModel.getEdgeModelById(P),M=[],C=l.menuTypeMap.get(k.type);k&&k.menu&&Array.isArray(k.menu)?M=k.menu:C?M=C:M=l.menuTypeMap.get(Ep),l.__currentData=d,l.showMenu(E,S,M,{width:k.width,height:k.height,clientX:b.clientX,clientY:b.clientY})}),this.lf.on("blank:contextmenu",function(o){var d=o.position,h=l.menuTypeMap.get(Sp),b=d.domOverlayPosition,g=b.x,E=b.y;l.showMenu(g,E,h)}),this.lf.on("selection:contextmenu",function(o){var d=o.data,h=o.position,b=l.menuTypeMap.get(Ow),g=h.domOverlayPosition,E=g.x,S=g.y;l.__currentData=d,l.showMenu(E,S,b)}),this.lf.on("node:mousedown",function(){l.__menuDOM.style.display="none"}),this.lf.on("edge:click",function(){l.__menuDOM.style.display="none"}),this.lf.on("blank:click",function(){l.__menuDOM.style.display="none"}))},n.prototype.destroy=function(){var a;(a=this===null||this===void 0?void 0:this.__container)===null||a===void 0||a.removeChild(this.__menuDOM),this.__menuDOM=null},n.prototype.showMenu=function(a,u,l,o){if(!(!l||!l.length)){var d=this.__menuDOM;if(d.innerHTML="",d.append.apply(d,b7(this.__getMenuDom(l))),!!d.children.length){if(d.style.display="block",!o){d.style.top=u+"px",d.style.left=a+"px";return}var h=o.width,b=o.height,g=o.clientX,E=o.clientY,S=this.lf.graphModel,P=d.offsetWidth,k=!0,M=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,C=M-g,N=S.rootEl.getBoundingClientRect(),L=N.left+N.width;L<M&&(C=L-g),C<P&&(k=!1),k?d.style.left=a+"px":d.style.left=a-h+"px";var U=d.offsetHeight,W=!0,X=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,Q=X-E,te=N.top+N.height;te<X&&(Q=te-E),Q<U&&(W=!1),W?d.style.top=u+"px":d.style.top=u-b+"px"}}},n.prototype.setMenuByType=function(a){!a.type||!a.menu||this.menuTypeMap.set(a.type,a.menu)},n.prototype.__getMenuDom=function(a){var u=[];return a&&a.length>0&&a.forEach(function(l){var o=document.createElement("li");if(l.className?o.className="lf-menu-item "+l.className:o.className="lf-menu-item",l.icon===!0){var d=document.createElement("span");d.className="lf-menu-item-icon",o.appendChild(d)}var h=document.createElement("span");h.className="lf-menu-item-text",l.text&&(h.innerText=l.text),o.appendChild(h),o.onclickCallback=l.callback,u.push(o)}),u},n.prototype.setMenuConfig=function(a){!a||(a.nodeMenu!==void 0&&this.menuTypeMap.set(xp,a.nodeMenu?a.nodeMenu:[]),a.edgeMenu!==void 0&&this.menuTypeMap.set(Ep,a.edgeMenu?a.edgeMenu:[]),a.graphMenu!==void 0&&this.menuTypeMap.set(Sp,a.graphMenu?a.graphMenu:[]))},n.prototype.addMenuConfig=function(a){if(!!a){if(Array.isArray(a.nodeMenu)){var u=this.menuTypeMap.get(xp);this.menuTypeMap.set(xp,u.concat(a.nodeMenu))}if(Array.isArray(a.edgeMenu)){var u=this.menuTypeMap.get(Ep);this.menuTypeMap.set(Ep,u.concat(a.edgeMenu))}if(Array.isArray(a.graphMenu)){var u=this.menuTypeMap.get(Sp);this.menuTypeMap.set(Sp,u.concat(a.graphMenu))}}},n.prototype.changeMenuItem=function(a,u){if(a==="add")this.addMenuConfig(u);else if(a==="reset")this.setMenuConfig(u);else throw new Error("The first parameter of changeMenuConfig should be 'add' or 'reset'")},n.pluginName="menu",n}();globalThis&&globalThis.__read;globalThis&&globalThis.__values;var lS=globalThis&&globalThis.__extends||function(){var n=function(a,u){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var d in o)o.hasOwnProperty(d)&&(l[d]=o[d])},n(a,u)};return function(a,u){n(a,u);function l(){this.constructor=a}a.prototype=u===null?Object.create(u):(l.prototype=u.prototype,new l)}}(),Sl=globalThis&&globalThis.__assign||function(){return Sl=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Sl.apply(this,arguments)},kp=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d},_7={tr:"tl",lb:"tl",tl:"tr",rb:"tr",br:"bl",lt:"bl",bl:"br",rt:"br"};function O7(n){for(var a=n,u=1;u<a.length-1;){var l=kp(a[u-1],2),o=l[0],d=l[1],h=kp(a[u],2),b=h[0],g=h[1],E=kp(a[u+1],2),S=E[0],P=E[1];o===b&&b===S||d===g&&g===P?a.splice(u,1):u++}return a}function w7(n,a,u,l){var o=[n[0],n[1]],d=[n[0],n[1]];switch(u){case"tl":return a==="tr"?(o[1]+=l,d[0]+=l):a==="lb"&&(o[0]+=l,d[1]+=l),[o,d];case"tr":return a==="tl"?(o[1]+=l,d[0]-=l):a==="rb"&&(o[0]-=l,d[1]+=l),[o,d];case"bl":return a==="br"?(o[1]-=l,d[0]+=l):a==="lt"&&(o[0]+=l,d[1]-=l),[o,d];case"br":return a==="bl"?(o[1]-=l,d[0]-=l):a==="rt"&&(o[0]-=l,d[1]-=l),[o,d];default:return[]}}function x7(n,a,u,l){var o,d="",h="";n[0]===a[0]?d=n[1]>a[1]?"t":"b":n[1]===a[1]&&(d=n[0]>a[0]?"l":"r"),a[0]===u[0]?h=a[1]>u[1]?"t":"b":a[1]===u[1]&&(h=a[0]>u[0]?"l":"r");var b=Math.min(Math.hypot(a[0]-n[0],a[1]-n[1])/2,Math.hypot(u[0]-a[0],u[1]-a[1])/2,l)||1/5*l,g=""+d+h,E=_7[g]||"-",S="L "+n[0]+" "+n[1];if(E==="-")S+="L "+a[0]+" "+a[1]+" L "+u[0]+" "+u[1];else{var P=kp(w7(a,g,E,b),2),k=P[0],M=P[1];k&&M&&(S+="L "+k[0]+" "+k[1]+" Q "+a[0]+" "+a[1]+" "+M[0]+" "+M[1],o=kp(M,2),a[0]=o[0],a[1]=o[1])}return S}function E7(n,a){var u=0,l="";if(n.length===2)l+="M"+n[u][0]+" "+n[u++][1]+" L "+n[u][0]+" "+n[u][1];else{for(l+="M"+n[u][0]+" "+n[u++][1];u+1<n.length;){var o=n[u-1],d=n[u],h=n[u+++1];l+=x7(o,d,h,a)}l+="L "+n[u][0]+" "+n[u][1]}return l}(function(n){lS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.getEdge=function(){var u=this.props.model,l=u.points,o=u.isAnimation,d=u.arrowConfig,h=u.radius,b=h===void 0?5:h,g=u.getEdgeStyle(),E=u.getEdgeAnimationStyle(),S=O7(l.split(" ").map(function(M){return M.split(",").map(function(C){return+C})})),P=E7(S,b),k=Sl(Sl(Sl({style:o?E:{}},g),d),{fill:"none"});return ot.exports.h("path",Sl({d:P},k))},a})(ot.exports.PolylineEdge);(function(n){lS(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a})(ot.exports.PolylineEdgeModel);var S7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;var ww=globalThis&&globalThis.__assign||function(){return ww=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},ww.apply(this,arguments)},xw=globalThis&&globalThis.__assign||function(){return xw=Object.assign||function(n){for(var a,u=1,l=arguments.length;u<l;u++){a=arguments[u];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},xw.apply(this,arguments)},j7=globalThis&&globalThis.__read||function(n,a){var u=typeof Symbol=="function"&&n[Symbol.iterator];if(!u)return n;var l=u.call(n),o,d=[],h;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)d.push(o.value)}catch(b){h={error:b}}finally{try{o&&!o.done&&(u=l.return)&&u.call(l)}finally{if(h)throw h.error}}return d};globalThis&&globalThis.__spread;const P7={class:"control-container"},A7=["title","onMouseenter"],T7=["disabled","onClick"],M7=Bp({__name:"Control",props:{lf:{type:Object,required:!0,default:null},catTurboData:{type:Boolean,required:!1}},emits:["catData"],setup(n,{emit:a}){const u=n,l=a,o=Q1("controlButton3",null),d=Q1("controlButton4",null);let h=Cu(-1),b=Cu([{icon:"icon-zoom-out-hs",text:"\u7F29\u5C0F",size:"18",disabled:!1},{icon:"icon-enlarge-hs",text:"\u653E\u5927",size:"18",disabled:!1},{icon:"icon-full-screen-hs",text:"\u9002\u5E94",size:"15",disabled:!1},{icon:"icon-previous-hs",text:"\u4E0A\u4E00\u6B65",size:"15",disabled:!0},{icon:"icon-next-step-hs",text:"\u4E0B\u4E00\u6B65",size:"17",disabled:!0},{icon:"icon-download-hs",text:"\u4E0B\u8F7D\u56FE\u7247",size:"17",disabled:!1},{icon:"icon-watch-hs",text:"\u67E5\u770B\u6570\u636E",size:"17",disabled:!1}]);const g=(S,P)=>{["zoom","zoom","resetZoom","undo","redo","getSnapshot"].forEach((k,M)=>{let C=u.lf;P===1&&C.zoom(!0),P===6&&l("catData"),P===M&&C[k]()})},E=S=>{h.value=S};return Uw(()=>{u.lf.on("history:change",({data:{undoAble:S,redoAble:P}})=>{hr(b)[3].disabled=hr(o).disabled=!S,hr(b)[4].disabled=hr(d).disabled=!P})}),(S,P)=>{const k=jp("el-tooltip");return ha(),Vc("div",P7,[Nu(" \u529F\u80FD\u6309\u94AE "),ya("ul",null,[(ha(!0),Vc(am,null,Hw(hr(b),(M,C)=>(ha(),Vc("li",{key:C,title:M.text,class:"dark:color-bg_color",onMouseenter:eO(N=>E(C),["prevent"]),onMouseleave:P[0]||(P[0]=eO(N=>Xw(h)?h.value=-1:h=-1,["prevent"]))},[Hc(k,{content:M.text,visible:hr(h)===C,placement:"right"},{default:wl(()=>[ya("button",{ref_for:!0,ref:"controlButton"+C,disabled:M.disabled,style:tO({cursor:M.disabled===!1?"pointer":"not-allowed",color:M.disabled===!1?"":"#00000040"}),onClick:N=>g(M,C)},[ya("span",{class:Yw("iconfont "+M.icon),style:tO({fontSize:`${M.size}px`})},null,6)],12,T7)]),_:2},1032,["content","visible"])],40,A7))),128))])])}}});var k7=Ny(M7,[["__scopeId","data-v-518de540"],["__file","D:/work/jiesuan/settle-vue3/src/components/ReFlowChart/src/Control.vue"]]);const D7={class:"node-panel"},N7=["onMousedown"],C7={key:0,class:"shape"},R7={class:"node-label"},I7=Bp({__name:"NodePanel",props:{lf:{type:Object,required:!0,default:null},nodeList:{type:Array,required:!0,default:null}},setup(n){const a=n;let u=Cu({a:"efrwe",b:"wewe"});const l=o=>{a.lf.dnd.startDrag({type:o.type,properties:hr(u)})};return(o,d)=>(ha(),Vc(am,null,[Nu(" \u5DE6\u4FA7bpmn\u5143\u7D20\u9009\u62E9\u5668 "),ya("div",D7,[(ha(!0),Vc(am,null,Hw(a.nodeList,h=>(ha(),Vc("div",{class:"node-item dark:color-bg_color",key:h.text,onMousedown:b=>l(h)},[ya("div",{class:Yw(["node-item-icon",h.class])},[h.type==="user"||h.type==="time"?(ha(),Vc("div",C7)):Nu("v-if",!0)],2),ya("span",R7,J2(h.text),1)],40,N7))),128))])],2112))}});var L7=Ny(I7,[["__scopeId","data-v-7322cbe5"],["__file","D:/work/jiesuan/settle-vue3/src/components/ReFlowChart/src/NodePanel.vue"]]),jy={d:(n,a)=>{for(var u in a)jy.o(a,u)&&!jy.o(n,u)&&Object.defineProperty(n,u,{enumerable:!0,get:a[u]})},o:(n,a)=>Object.prototype.hasOwnProperty.call(n,a)},fS={};function Pm(n,a){(a==null||a>n.length)&&(a=n.length);for(var u=0,l=new Array(a);u<a;u++)l[u]=n[u];return l}function pS(n,a){if(n){if(typeof n=="string")return Pm(n,a);var u=Object.prototype.toString.call(n).slice(8,-1);return u==="Object"&&n.constructor&&(u=n.constructor.name),u==="Map"||u==="Set"?Array.from(n):u==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?Pm(n,a):void 0}}function Py(n){return function(a){if(Array.isArray(a))return Pm(a)}(n)||function(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}(n)||pS(n)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ay(n,a,u){return a in n?Object.defineProperty(n,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):n[a]=u,n}jy.d(fS,{Z:()=>W7});const Nt=(Ew={computed:()=>Q2,createTextVNode:()=>um,createVNode:()=>Hc,defineComponent:()=>Bp,reactive:()=>eT,ref:()=>Cu,watch:()=>tT,watchEffect:()=>nT},om={},jy.d(om,Ew),om),B7=(0,Nt.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var n=this.data,a=this.onClick;return(0,Nt.createVNode)("span",{class:"vjs-tree-brackets",onClick:a},[n])}}),z7=(0,Nt.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(n,a){var u=a.emit;return{uiType:(0,Nt.computed)(function(){return n.isMultiple?"checkbox":"radio"}),model:(0,Nt.computed)({get:function(){return n.checked},set:function(l){return u("update:modelValue",l)}})}},render:function(){var n=this.uiType,a=this.model,u=this.$emit;return(0,Nt.createVNode)("label",{class:["vjs-check-controller",a?"is-checked":""],onClick:function(l){return l.stopPropagation()}},[(0,Nt.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(n)},null),(0,Nt.createVNode)("input",{checked:a,class:"vjs-check-controller-original is-".concat(n),type:n,onChange:function(){return u("change",a)}},null)])}}),F7=(0,Nt.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var n=this.nodeType,a=this.onClick,u=n==="objectStart"||n==="arrayStart";return u||n==="objectCollapsed"||n==="arrayCollapsed"?(0,Nt.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(u?"open":"close"),onClick:a},[(0,Nt.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,Nt.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Ew,om;function Am(n){return Am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},Am(n)}function dS(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}function Uc(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3?arguments[3]:void 0,o=l||{},d=o.key,h=o.index,b=o.type,g=b===void 0?"content":b,E=o.showComma,S=E!==void 0&&E,P=o.length,k=P===void 0?1:P,M=dS(n);if(M==="array"){var C=Sw(n.map(function(U,W,X){return Uc(U,"".concat(a,"[").concat(W,"]"),u+1,{index:W,showComma:W!==X.length-1,length:k,type:g})}));return[Uc("[",a,u,{showComma:!1,key:d,length:n.length,type:"arrayStart"})[0]].concat(C,Uc("]",a,u,{showComma:S,length:n.length,type:"arrayEnd"})[0])}if(M==="object"){var N=Object.keys(n),L=Sw(N.map(function(U,W,X){return Uc(n[U],/^[a-zA-Z_]\w*$/.test(U)?"".concat(a,".").concat(U):"".concat(a,'["').concat(U,'"]'),u+1,{key:U,showComma:W!==X.length-1,length:k,type:g})}));return[Uc("{",a,u,{showComma:!1,key:d,index:h,length:N.length,type:"objectStart"})[0]].concat(L,Uc("}",a,u,{showComma:S,length:N.length,type:"objectEnd"})[0])}return[{content:n,level:u,key:d,index:h,path:a,showComma:S,length:k,type:g}]}function Sw(n){if(typeof Array.prototype.flat=="function")return n.flat();for(var a=Py(n),u=[];a.length;){var l=a.shift();Array.isArray(l)?a.unshift.apply(a,Py(l)):u.push(l)}return u}function Tm(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(n==null)return n;if(n instanceof Date)return new Date(n);if(n instanceof RegExp)return new RegExp(n);if(Am(n)!=="object")return n;if(a.get(n))return a.get(n);if(Array.isArray(n)){var u=n.map(function(d){return Tm(d,a)});return a.set(n,u),u}var l={};for(var o in n)l[o]=Tm(n[o],a);return a.set(n,l),l}function jw(n,a){var u=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);a&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),u.push.apply(u,l)}return u}function Pw(n){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?jw(Object(u),!0).forEach(function(l){Ay(n,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):jw(Object(u)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(u,l))})}return n}var hS={showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const $7=(0,Nt.defineComponent)({name:"TreeNode",props:Pw(Pw({},hS),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(n,a){var u=a.emit,l=(0,Nt.computed)(function(){return dS(n.node.content)}),o=(0,Nt.computed)(function(){return"vjs-value vjs-value-".concat(l.value)}),d=(0,Nt.computed)(function(){return n.showDoubleQuotes?'"'.concat(n.node.key,'"'):n.node.key}),h=(0,Nt.computed)(function(){return n.selectableType==="multiple"}),b=(0,Nt.computed)(function(){return n.selectableType==="single"}),g=(0,Nt.computed)(function(){return n.nodeSelectable(n.node)&&(h.value||b.value)}),E=(0,Nt.reactive)({editing:!1}),S=function(W){var X,Q,te=(Q=(X=W.target)===null||X===void 0?void 0:X.value)==="null"?null:Q==="undefined"?void 0:Q==="true"||Q!=="false"&&(Q[0]+Q[Q.length-1]==='""'||Q[0]+Q[Q.length-1]==="''"?Q.slice(1,-1):typeof Number(Q)=="number"&&!isNaN(Number(Q))||Q==="NaN"?Number(Q):Q);u("valueChange",te,n.node.path)},P=(0,Nt.computed)(function(){var W,X=(W=n.node)===null||W===void 0?void 0:W.content;return X===null?X="null":X===void 0&&(X="undefined"),l.value==="string"?'"'.concat(X,'"'):X+""}),k=function(){var W=n.renderNodeValue;return W?W({node:n.node,defaultValue:P.value}):P.value},M=function(){u("bracketsClick",!n.collapsed,n.node)},C=function(){u("iconClick",!n.collapsed,n.node)},N=function(){u("selectedChange",n.node)},L=function(){u("nodeClick",n.node),g.value&&n.selectOnClickNode&&u("selectedChange",n.node)},U=function(W){if(n.editable&&!E.editing){E.editing=!0;var X=function Q(te){var Z;te.target!==W.target&&((Z=te.target)===null||Z===void 0?void 0:Z.parentElement)!==W.target&&(E.editing=!1,document.removeEventListener("click",Q))};document.removeEventListener("click",X),document.addEventListener("click",X)}};return function(){var W,X=n.node;return(0,Nt.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":n.showSelectController,"has-carets":n.showIcon,"is-highlight":n.highlightSelectedNode&&n.checked,dark:n.theme==="dark"},onClick:L,style:n.style},[n.showLineNumber&&(0,Nt.createVNode)("span",{class:"vjs-node-index"},[X.id+1]),n.showSelectController&&g.value&&X.type!=="objectEnd"&&X.type!=="arrayEnd"&&(0,Nt.createVNode)(z7,{isMultiple:h.value,checked:n.checked,onChange:N},null),(0,Nt.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(X.level)).map(function(Q,te){return(0,Nt.createVNode)("div",{key:te,class:{"vjs-indent-unit":!0,"has-line":n.showLine}},null)}),n.showIcon&&(0,Nt.createVNode)(F7,{nodeType:X.type,onClick:C},null)]),X.key&&(0,Nt.createVNode)("span",{class:"vjs-key"},[(W=n.renderNodeKey,W?W({node:n.node,defaultKey:d.value||""}):d.value),(0,Nt.createVNode)("span",{class:"vjs-colon"},[":".concat(n.showKeyValueSpace?" ":"")])]),(0,Nt.createVNode)("span",null,[X.type!=="content"&&X.content?(0,Nt.createVNode)(B7,{data:X.content.toString(),onClick:M},null):(0,Nt.createVNode)("span",{class:o.value,onClick:!n.editable||n.editableTrigger&&n.editableTrigger!=="click"?void 0:U,onDblclick:n.editable&&n.editableTrigger==="dblclick"?U:void 0},[n.editable&&E.editing?(0,Nt.createVNode)("input",{value:P.value,onChange:S,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):k()]),X.showComma&&(0,Nt.createVNode)("span",null,[","]),n.showLength&&n.collapsed&&(0,Nt.createVNode)("span",{class:"vjs-comment"},[(0,Nt.createTextVNode)(" // "),X.length,(0,Nt.createTextVNode)(" items ")])])])}}});function Aw(n,a){var u=Object.keys(n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);a&&(l=l.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),u.push.apply(u,l)}return u}function Lo(n){for(var a=1;a<arguments.length;a++){var u=arguments[a]!=null?arguments[a]:{};a%2?Aw(Object(u),!0).forEach(function(l){Ay(n,l,u[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(u)):Aw(Object(u)).forEach(function(l){Object.defineProperty(n,l,Object.getOwnPropertyDescriptor(u,l))})}return n}const W7=(0,Nt.defineComponent)({name:"Tree",props:Lo(Lo({},hS),{},{data:{type:[String,Number,Boolean,Array,Object],default:null},collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},rootPath:{type:String,default:"root"},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue"],emits:["nodeClick","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(n,a){var u=a.emit,l=a.slots,o=(0,Nt.ref)(),d=(0,Nt.computed)(function(){return Uc(n.data,n.rootPath)}),h=function(X,Q){return d.value.reduce(function(te,Z){var J,H=Z.level>=X||Z.length>=Q,B=(J=n.pathCollapsible)===null||J===void 0?void 0:J.call(n,Z);return Z.type!=="objectStart"&&Z.type!=="arrayStart"||!H&&!B?te:Lo(Lo({},te),{},Ay({},Z.path,1))},{})},b=(0,Nt.reactive)({translateY:0,visibleData:null,hiddenPaths:h(n.deep,n.collapsedNodeLength)}),g=(0,Nt.computed)(function(){for(var X=null,Q=[],te=d.value.length,Z=0;Z<te;Z++){var J=Lo(Lo({},d.value[Z]),{},{id:Z}),H=b.hiddenPaths[J.path];if(X&&X.path===J.path){var B=X.type==="objectStart",V=Lo(Lo(Lo({},J),X),{},{showComma:J.showComma,content:B?"{...}":"[...]",type:B?"objectCollapsed":"arrayCollapsed"});X=null,Q.push(V)}else{if(H&&!X){X=J;continue}if(X)continue;Q.push(J)}}return Q}),E=(0,Nt.computed)(function(){var X=n.selectedValue;return X&&n.selectableType==="multiple"&&Array.isArray(X)?X:[X]}),S=(0,Nt.computed)(function(){return!n.selectableType||n.selectOnClickNode||n.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."}),P=function(){var X=g.value;if(n.virtual){var Q,te=n.height/n.itemHeight,Z=((Q=o.value)===null||Q===void 0?void 0:Q.scrollTop)||0,J=Math.floor(Z/n.itemHeight),H=J<0?0:J+te>X.length?X.length-te:J;H<0&&(H=0);var B=H+te;b.translateY=H*n.itemHeight,b.visibleData=X.filter(function(V,Y){return Y>=H&&Y<B})}else b.visibleData=X},k=function(){P()},M=function(X){var Q,te,Z=X.path,J=n.selectableType;if(J==="multiple"){var H=E.value.findIndex(function(q){return q===Z}),B=Py(E.value);H!==-1?B.splice(H,1):B.push(Z),u("update:selectedValue",B),u("selectedChange",B,Py(E.value))}else if(J==="single"&&E.value[0]!==Z){var V=(Q=E.value,te=1,function(q){if(Array.isArray(q))return q}(Q)||function(q,ue){var xe=q==null?null:typeof Symbol!="undefined"&&q[Symbol.iterator]||q["@@iterator"];if(xe!=null){var be,Ae,Fe=[],je=!0,ve=!1;try{for(xe=xe.call(q);!(je=(be=xe.next()).done)&&(Fe.push(be.value),!ue||Fe.length!==ue);je=!0);}catch(Pe){ve=!0,Ae=Pe}finally{try{je||xe.return==null||xe.return()}finally{if(ve)throw Ae}}return Fe}}(Q,te)||pS(Q,te)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())[0],Y=Z;u("update:selectedValue",Y),u("selectedChange",Y,V)}},C=function(X){u("nodeClick",X)},N=function(X,Q){if(X)b.hiddenPaths=Lo(Lo({},b.hiddenPaths),{},Ay({},Q,1));else{var te=Lo({},b.hiddenPaths);delete te[Q],b.hiddenPaths=te}},L=function(X,Q){n.collapsedOnClickBrackets&&N(X,Q.path),u("bracketsClick",X,Q)},U=function(X,Q){N(X,Q.path),u("iconClick",X,Q)},W=function(X,Q){var te=Tm(n.data),Z=n.rootPath;new Function("data","val","data".concat(Q.slice(Z.length),"=val"))(te,X),u("update:data",te)};return(0,Nt.watchEffect)(function(){S.value&&function(X){throw new Error("[VueJSONPretty] ".concat(X))}(S.value)}),(0,Nt.watchEffect)(function(){g.value&&P()}),(0,Nt.watch)(function(){return n.deep},function(X){X&&(b.hiddenPaths=h(X,n.collapsedNodeLength))}),(0,Nt.watch)(function(){return n.collapsedNodeLength},function(X){X&&(b.hiddenPaths=h(n.deep,X))}),function(){var X,Q,te=(X=n.renderNodeKey)!==null&&X!==void 0?X:l.renderNodeKey,Z=(Q=n.renderNodeValue)!==null&&Q!==void 0?Q:l.renderNodeValue,J=b.visibleData&&b.visibleData.map(function(H){return(0,Nt.createVNode)($7,{key:H.id,node:H,collapsed:!!b.hiddenPaths[H.path],theme:n.theme,showDoubleQuotes:n.showDoubleQuotes,showLength:n.showLength,checked:E.value.includes(H.path),selectableType:n.selectableType,showLine:n.showLine,showLineNumber:n.showLineNumber,showSelectController:n.showSelectController,selectOnClickNode:n.selectOnClickNode,nodeSelectable:n.nodeSelectable,highlightSelectedNode:n.highlightSelectedNode,editable:n.editable,editableTrigger:n.editableTrigger,showIcon:n.showIcon,showKeyValueSpace:n.showKeyValueSpace,renderNodeKey:te,renderNodeValue:Z,onNodeClick:C,onBracketsClick:L,onIconClick:U,onSelectedChange:M,onValueChange:W,style:n.itemHeight&&n.itemHeight!==20?{lineHeight:"".concat(n.itemHeight,"px")}:{}},null)});return(0,Nt.createVNode)("div",{ref:o,class:{"vjs-tree":!0,"is-virtual":n.virtual,dark:n.theme==="dark"},onScroll:n.virtual?k:void 0,style:n.showLineNumber?Lo({paddingLeft:"".concat(12*Number(d.value.length.toString().length),"px")},n.style):n.style},[n.virtual?(0,Nt.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(n.height,"px")}},[(0,Nt.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(g.value.length*n.itemHeight,"px")}},[(0,Nt.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(b.translateY,"px)")}},[J])])]):J])}}});var G7=fS.Z;const U7=Bp({__name:"DataDialog",props:{graphData:Object},setup(n){const a=n;return(u,l)=>(ha(),cm(hr(G7),{path:"res",deep:3,showLength:!0,data:a.graphData},null,8,["data"]))}});var H7=Ny(U7,[["__file","D:/work/jiesuan/settle-vue3/src/components/ReFlowChart/src/DataDialog.vue"]]);const X7=Dm(k7),Y7=Dm(L7),V7=Dm(H7),K7={SEQUENCE_FLOW:1,START_EVENT:2,END_EVENT:3,USER_TASK:4,SERVICE_TASK:5,EXCLUSIVE_GATEWAY:6};function q7(n){const{incoming:a,outgoing:u,properties:l,key:o}=n,{text:d,startPoint:h,endPoint:b,pointsList:g,logicFlowType:E}=l,S={id:o,type:E,sourceNodeId:a[0],targetNodeId:u[0],text:d,startPoint:h,endPoint:b,pointsList:g,properties:{}},P=["startPoint","endPoint","pointsList","text","logicFlowType"];return Object.keys(n.properties).forEach(k=>{P.indexOf(k)===-1&&(S.properties[k]=n.properties[k])}),S}function Z7(n){const{properties:a,key:u}=n,{x:l,y:o,text:d,logicFlowType:h}=a,b={id:u,type:h,x:l,y:o,text:d,properties:{}},g=["x","y","text","logicFlowType"];return Object.keys(n.properties).forEach(E=>{g.indexOf(E)===-1&&(b.properties[E]=n.properties[E])}),b}function J7(n){const a={nodes:[],edges:[]},u=n.flowElementList;return u&&u.length>0&&u.forEach(l=>{if(l.type===K7.SEQUENCE_FLOW){const o=q7(l);a.edges.push(o)}else{const o=Z7(l);a.nodes.push(o)}}),a}const Q7={class:"card-header"},e6={class:"font-medium"},t6={class:"logic-flow-view"},n6={name:"FlowChart"},r6=Bp({...n6,setup(n){let a=Cu(null),u=Cu(null),l=Cu(!1),o=Cu({grid:!0,background:{color:"#f7f9ff"},keyboard:{enabled:!0}}),d=Y8;function h(){oy.use(h7),oy.use(y5),oy.use(m7);const E=new oy({...hr(o),container:document.querySelector("#LF-Turbo")});a.value=E,hr(a).setDefaultEdgeType("bpmn:sequenceFlow"),b()}function b(){const E=J7(X8);a.value.render(E)}function g(){u.value=hr(a).getGraphData(),l.value=!0}return Uw(()=>{h()}),(E,S)=>{const P=jp("el-link"),k=jp("el-scrollbar"),M=jp("el-dialog"),C=jp("el-card");return ha(),cm(C,null,{header:wl(()=>[ya("div",Q7,[ya("span",e6,[S[2]||(S[2]=um(" \u6D41\u7A0B\u56FE\u7EC4\u4EF6\uFF0C\u91C7\u7528\u5F00\u6E90\u7684 ")),Hc(P,{href:"http://logic-flow.org/",target:"_blank",icon:hr(rT)("set-up"),style:{"font-size":"16px",margin:"0 4px 5px"}},{default:wl(()=>S[1]||(S[1]=[um(" LogicFlow ")])),_:1},8,["icon"])])])]),default:wl(()=>[ya("div",t6,[Nu(" \u8F85\u52A9\u5DE5\u5177\u680F "),hr(a)?(ha(),cm(hr(X7),{key:0,class:"demo-control",lf:hr(a),catTurboData:!1,onCatData:g},null,8,["lf"])):Nu("v-if",!0),Nu(" \u8282\u70B9\u9762\u677F "),Hc(hr(Y7),{lf:hr(a),nodeList:hr(d)},null,8,["lf","nodeList"]),Nu(" \u753B\u5E03 "),S[3]||(S[3]=ya("div",{id:"LF-Turbo"},null,-1)),Nu(" \u6570\u636E\u67E5\u770B\u9762\u677F "),Hc(M,{customClass:"flow-dialog",title:"\u6570\u636E",modelValue:hr(l),"onUpdate:modelValue":S[0]||(S[0]=N=>Xw(l)?l.value=N:l=N),width:"50%","close-on-click-modal":!1,"close-on-press-escape":!1},{default:wl(()=>[Hc(k,null,{default:wl(()=>[Hc(hr(V7),{graphData:hr(u)},null,8,["graphData"])]),_:1})]),_:1},8,["modelValue"])])]),_:1})}}});var a6=Ny(r6,[["__scopeId","data-v-77d65f48"],["__file","D:/work/jiesuan/settle-vue3/src/views/flow-chart/index.vue"]]);export{a6 as default};
|