1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-614dba81"],{"00c0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=new Map;function a(t,e){r.set(t,e)}function i(t){return r.get(t)}e.register=a,e.getMethod=i},"01f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return Array.isArray?Array.isArray(t):r.default(t,"Array")}},"023a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("c3e2"),i=n("9705"),o=n("076b"),u=n("4dab"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,a=t.y2,i=t.startArrow,o=t.endArrow;i&&u.addStartArrow(this,t,r,a,e,n),o&&u.addEndArrow(this,t,e,n,r,a)},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){if(!n||!a)return!1;var i=this.attr(),u=i.x1,s=i.y1,c=i.x2,h=i.y2;return o.default(u,s,c,h,a,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,a=e.x2,i=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},h={dx:0,dy:0};o&&o.d&&(c=u.getShortenOffset(n,r,a,i,e.startArrow.d)),s&&s.d&&(h=u.getShortenOffset(n,r,a,i,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,r+c.dy),t.lineTo(a-h.dx,i-h.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.default.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.default.pointAt(n,r,i,o,t)},e}(i.default);e.default=s},"076b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c3e2");function a(t,e,n,a,i,o,u){var s=Math.min(t,n),c=Math.max(t,n),h=Math.min(e,a),l=Math.max(e,a),f=i/2;return o>=s-f&&o<=c+f&&u>=h-f&&u<=l+f&&r.default.pointToLine(t,e,n,a,o,u)<=i/2}e.default=a},"0c05":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,a=0,i=e.length;a<i;a++)!r&&a in e||(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))},a=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),i=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),o=function(){function t(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"}return t}(),u=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),s=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),c=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,h=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",c]],p=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!==typeof navigator?v(navigator.userAgent):m()}function g(t){return""!==t&&f.reduce((function(e,n){var r=n[0],a=n[1];if(e)return e;var i=a.exec(t);return!!i&&[r,i]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],i=e[1];if("searchbot"===n)return new u;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<l&&(s=r(r([],s,!0),x(l-s.length),!0)):s=[];var c=s.join("."),f=y(t),p=h.exec(t);return p&&p[1]?new o(n,c,f,p[1]):new a(n,c,f)}function y(t){for(var e=0,n=p.length;e<n;e++){var r=p[e],a=r[0],i=r[1],o=i.exec(t);if(o)return a}return null}function m(){var e="undefined"!==typeof t&&t.version;return e?new i(t.version.slice(1)):null}function x(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n("4362"))},1322:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("00c0");e.getBBoxMethod=r.getMethod;var a=n("29d7"),i=n("6cac"),o=n("2b23"),u=n("79cf"),s=n("83bc"),c=n("2d1f"),h=n("d5f3"),l=n("71f5");r.register("rect",a.default),r.register("image",a.default),r.register("circle",i.default),r.register("marker",i.default),r.register("polyline",o.default),r.register("polygon",u.default),r.register("text",s.default),r.register("path",c.default),r.register("line",h.default),r.register("ellipse",l.default)},"18f2":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),a=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,i=/[^\s\,]+/gi;function o(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(a),(0,r.each)(e,(function(t,n){if(t=t.match(i),t[0].length>1){var a=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=a}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}e.default=o},"1d5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("8937"),a="\t\n\v\f\r \u2028\u2029",i=new RegExp("([a-z])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+a+"]*,?["+a+"]*","ig");function u(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(i,(function(t,r,a){var i=[],u=r.toLowerCase();if(a.replace(o,(function(t,e){e&&i.push(+e)})),"m"===u&&i.length>2&&(n.push([r].concat(i.splice(0,2))),u="l",r="m"===r?"l":"L"),"o"===u&&1===i.length&&n.push([r,i[0]]),"r"===u)n.push([r].concat(i));else while(i.length>=e[u])if(n.push([r].concat(i.splice(0,e[u]))),!e[u])break;return""})),n}e.default=u},"1f05":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"fromMat4",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return u})),n.d(e,"fromValues",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"identity",(function(){return h})),n.d(e,"transpose",(function(){return l})),n.d(e,"invert",(function(){return f})),n.d(e,"adjoint",(function(){return p})),n.d(e,"determinant",(function(){return d})),n.d(e,"multiply",(function(){return g})),n.d(e,"translate",(function(){return v})),n.d(e,"rotate",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"fromTranslation",(function(){return x})),n.d(e,"fromRotation",(function(){return b})),n.d(e,"fromScaling",(function(){return M})),n.d(e,"fromMat2d",(function(){return w})),n.d(e,"fromQuat",(function(){return _})),n.d(e,"normalFromMat4",(function(){return P})),n.d(e,"projection",(function(){return A})),n.d(e,"str",(function(){return C})),n.d(e,"frob",(function(){return S})),n.d(e,"add",(function(){return O})),n.d(e,"subtract",(function(){return k})),n.d(e,"multiplyScalar",(function(){return B})),n.d(e,"multiplyScalarAndAdd",(function(){return j})),n.d(e,"exactEquals",(function(){return T})),n.d(e,"equals",(function(){return E})),n.d(e,"mul",(function(){return I})),n.d(e,"sub",(function(){return D}));var r=n("c94d");function a(){var t=new r["a"](9);return r["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function o(t){var e=new r["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function u(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function s(t,e,n,a,i,o,u,s,c){var h=new r["a"](9);return h[0]=t,h[1]=e,h[2]=n,h[3]=a,h[4]=i,h[5]=o,h[6]=u,h[7]=s,h[8]=c,h}function c(t,e,n,r,a,i,o,u,s,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=u,t[7]=s,t[8]=c,t}function h(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function l(t,e){if(t===e){var n=e[1],r=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function f(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8],l=h*o-u*c,f=-h*i+u*s,p=c*i-o*s,d=n*l+r*f+a*p;return d?(d=1/d,t[0]=l*d,t[1]=(-h*r+a*c)*d,t[2]=(u*r-a*o)*d,t[3]=f*d,t[4]=(h*n-a*s)*d,t[5]=(-u*n+a*i)*d,t[6]=p*d,t[7]=(-c*n+r*s)*d,t[8]=(o*n-r*i)*d,t):null}function p(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8];return t[0]=o*h-u*c,t[1]=a*c-r*h,t[2]=r*u-a*o,t[3]=u*s-i*h,t[4]=n*h-a*s,t[5]=a*i-n*u,t[6]=i*c-o*s,t[7]=r*s-n*c,t[8]=n*o-r*i,t}function d(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],u=t[6],s=t[7],c=t[8];return e*(c*i-o*s)+n*(-c*a+o*u)+r*(s*a-i*u)}function g(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],l=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],x=n[7],b=n[8];return t[0]=f*r+p*o+d*c,t[1]=f*a+p*u+d*h,t[2]=f*i+p*s+d*l,t[3]=g*r+v*o+y*c,t[4]=g*a+v*u+y*h,t[5]=g*i+v*s+y*l,t[6]=m*r+x*o+b*c,t[7]=m*a+x*u+b*h,t[8]=m*i+x*s+b*l,t}function v(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],l=e[8],f=n[0],p=n[1];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=u,t[5]=s,t[6]=f*r+p*o+c,t[7]=f*a+p*u+h,t[8]=f*i+p*s+l,t}function y(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],u=e[4],s=e[5],c=e[6],h=e[7],l=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*r+f*o,t[1]=p*a+f*u,t[2]=p*i+f*s,t[3]=p*o-f*r,t[4]=p*u-f*a,t[5]=p*s-f*i,t[6]=c,t[7]=h,t[8]=l,t}function m(t,e,n){var r=n[0],a=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function b(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function _(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,u=r+r,s=a+a,c=n*o,h=r*o,l=r*u,f=a*o,p=a*u,d=a*s,g=i*o,v=i*u,y=i*s;return t[0]=1-l-d,t[3]=h-y,t[6]=f+v,t[1]=h+y,t[4]=1-c-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-c-l,t}function P(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],u=e[5],s=e[6],c=e[7],h=e[8],l=e[9],f=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*u-r*o,x=n*s-a*o,b=n*c-i*o,M=r*s-a*u,w=r*c-i*u,_=a*c-i*s,P=h*g-l*d,A=h*v-f*d,C=h*y-p*d,S=l*v-f*g,O=l*y-p*g,k=f*y-p*v,B=m*k-x*O+b*S+M*C-w*A+_*P;return B?(B=1/B,t[0]=(u*k-s*O+c*S)*B,t[1]=(s*C-o*k-c*A)*B,t[2]=(o*O-u*C+c*P)*B,t[3]=(a*O-r*k-i*S)*B,t[4]=(n*k-a*C+i*A)*B,t[5]=(r*C-n*O-i*P)*B,t[6]=(g*_-v*w+y*M)*B,t[7]=(v*b-d*_-y*x)*B,t[8]=(d*w-g*b+y*m)*B,t):null}function A(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function C(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function S(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function O(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function k(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function B(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function j(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function E(t,e){var n=t[0],a=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],l=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return Math.abs(n-f)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-p)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(i-d)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-g)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(u-v)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(s-y)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(c-m)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(m))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))&&Math.abs(l-b)<=r["b"]*Math.max(1,Math.abs(l),Math.abs(b))}var I=g,D=k},2047:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return r.default(t,"Function")}},"20e7":function(t,e,n){"use strict";var r=n("1f05");n.d(e,"a",(function(){return r}));var a=n("6711");n.d(e,"b",(function(){return a}))},2412:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n("c3e2"),a=n("b455");function i(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],u=a.distance(i[0],i[1],o[0],o[1]),s={from:i,to:o,length:u};n.push(s),e+=u}return{segments:n,totalLength:e}}function o(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=a.distance(r[0],r[1],i[0],i[1])}return e}function u(t,e){if(e>1||e<0||t.length<2)return null;var n=i(t),a=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var u=0,s=null,c=0;c<a.length;c++){var h=a[c],l=h.from,f=h.to,p=h.length/o;if(e>=u&&e<=u+p){var d=(e-u)/p;s=r.default.pointAt(l[0],l[1],f[0],f[1],d);break}u+=p}return s}function s(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=i(t),r=n.segments,a=n.totalLength,o=0,u=0,s=0;s<r.length;s++){var c=r[s],h=c.from,l=c.to,f=c.length/a;if(e>=o&&e<=o+f){u=Math.atan2(l[1]-h[1],l[0]-h[0]);break}o+=f}return u}function c(t,e,n){for(var a=1/0,i=0;i<t.length-1;i++){var o=t[i],u=t[i+1],s=r.default.pointDistance(o[0],o[1],u[0],u[1],e,n);s<a&&(a=s)}return a}e.lengthOfSegment=o,e.pointAtSegments=u,e.angleAtSegments=s,e.distanceAtSegment=c},"28f9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return null===t||void 0===t};e.default=r},"29d7":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,a=e.width,i=e.height;return{x:n,y:r,width:a,height:i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"29f4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-5;function a(t,e,n){return void 0===n&&(n=r),Math.abs(t-e)<n}e.default=a},"2a37":function(t){t.exports=JSON.parse('{"name":"@antv/g-base","version":"0.4.7","description":"A common util collection for antv projects","main":"lib/index.js","module":"esm/index.js","types":"lib/index.d.ts","files":["package.json","esm","lib","LICENSE","README.md"],"scripts":{"build":"npm run clean && run-p build:*","build:esm":"tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm","build:cjs":"tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib","clean":"rm -rf esm lib","watch:cjs":"tsc-watch -p tsconfig.json --target ES5 --module commonjs --outDir lib --compiler typescript/bin/tsc","coverage":"npm run coverage-generator && npm run coverage-viewer","coverage-generator":"torch --coverage --compile --source-pattern src/*.js,src/**/*.js --opts tests/mocha.opts","coverage-viewer":"torch-coverage","test":"torch --renderer --compile --opts tests/mocha.opts","test-live":"torch --compile --interactive --opts tests/mocha.opts","tsc":"tsc --noEmit","typecheck":"tsc --noEmit"},"repository":{"type":"git","url":"git+https://github.com/antvis/util.git"},"keywords":["util","antv","g"],"publishConfig":{"access":"public"},"author":"https://github.com/orgs/antvis/people","license":"ISC","bugs":{"url":"https://github.com/antvis/util/issues"},"devDependencies":{"@antv/torch":"^1.0.0","gl-matrix":"^3.0.0","less":"^3.9.0","npm-run-all":"^4.1.5","tsc-watch":"^4.0.0"},"homepage":"https://github.com/antvis/util#readme","dependencies":{"@antv/event-emitter":"^0.1.1","@antv/g-math":"^0.1.3","@antv/matrix-util":"^3.1.0-beta.1","@antv/path-util":"~2.0.5","@antv/util":"~2.0.0","@types/d3-timer":"^1.0.9","d3-ease":"^1.0.5","d3-interpolate":"^1.3.2","d3-timer":"^1.0.9","detect-browser":"^5.1.0"},"__npminstall_done":false,"gitHead":"eb6a2503cb7bb8154697592b10680939d954a31a"}')},"2b23":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("3d7d");function i(t){for(var e=t.attr(),n=e.points,i=[],o=[],u=0;u<n.length;u++){var s=n[u];i.push(s[0]),o.push(s[1])}var c=r.getBBoxByArray(i,o),h=c.x,l=c.y,f=c.width,p=c.height,d={minX:h,minY:l,maxX:h+f,maxY:l+p};return d=a.mergeArrowBBox(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}e.default=i},"2d1f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c31b"),a=n("7d16"),i=n("a12b"),o=n("be6e"),u=n("29f4"),s=n("3d7d");function c(t,e){for(var n=[],o=[],u=[],s=0;s<t.length;s++){var c=t[s],l=c.currentPoint,f=c.params,p=c.prePoint,d=void 0;switch(c.command){case"Q":d=r.default.box(p[0],p[1],f[1],f[2],f[3],f[4]);break;case"C":d=a.default.box(p[0],p[1],f[1],f[2],f[3],f[4],f[5],f[6]);break;case"A":var g=c.arcParams;d=i.default.box(g.cx,g.cy,g.rx,g.ry,g.xRotation,g.startAngle,g.endAngle);break;default:n.push(l[0]),o.push(l[1]);break}d&&(c.box=d,n.push(d.x,d.x+d.width),o.push(d.y,d.y+d.height)),e&&("L"===c.command||"M"===c.command)&&c.prePoint&&c.nextPoint&&u.push(c)}n=n.filter((function(t){return!Number.isNaN(t)})),o=o.filter((function(t){return!Number.isNaN(t)}));var v=Math.min.apply(null,n),y=Math.min.apply(null,o),m=Math.max.apply(null,n),x=Math.max.apply(null,o);if(0===u.length)return{x:v,y:y,width:m-v,height:x-y};for(s=0;s<u.length;s++){c=u[s],l=c.currentPoint;var b=void 0;l[0]===v?(b=h(c,e),v-=b.xExtra):l[0]===m&&(b=h(c,e),m+=b.xExtra),l[1]===y?(b=h(c,e),y-=b.yExtra):l[1]===x&&(b=h(c,e),x+=b.yExtra)}return{x:v,y:y,width:m-v,height:x-y}}function h(t,e){var n=t.prePoint,r=t.currentPoint,a=t.nextPoint,i=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),o=Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2),s=Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2),c=Math.acos((i+o-s)/(2*Math.sqrt(i)*Math.sqrt(o)));if(!c||0===Math.sin(c)||u.default(c,0))return{xExtra:0,yExtra:0};var h=Math.abs(Math.atan2(a[1]-r[1],a[0]-r[0])),l=Math.abs(Math.atan2(a[0]-r[0],a[1]-r[1]));h=h>Math.PI/2?Math.PI-h:h,l=l>Math.PI/2?Math.PI-l:l;var f={xExtra:Math.cos(c/2-h)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(l-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function l(t){var e=t.attr(),n=e.path,r=e.stroke,a=r?e.lineWidth:0,i=t.get("segments")||o.default(n),u=c(i,a),h=u.x,l=u.y,f=u.width,p=u.height,d={minX:h,minY:l,maxX:h+f,maxY:l+p};return d=s.mergeArrowBBox(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}e.default=l},"31c4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.drawChildren=e.applyAttrsToContext=void 0;var r=n("8937"),a=n("7f6b"),i=n("9351"),o=n("516b"),u=n("4dab"),s={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){var n=e.attr();for(var i in n){var o=n[i],u=s[i]?s[i]:i;"matrix"===u&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===u&&t.setLineDash?r.isArray(o)&&t.setLineDash(o):("strokeStyle"===u||"fillStyle"===u?o=a.parseStyle(t,e,o):"globalAlpha"===u&&(o*=t.globalAlpha),t[u]=o)}}function h(t,e,n){for(var r=0;r<e.length;r++){var a=e[r];a.get("visible")?a.draw(t,n):a.skipDraw()}}function l(t,e,n,r){var a=n.path,o=n.startArrow,s=n.endArrow,c=[0,0],h=[0,0],l={dx:0,dy:0};e.beginPath();for(var f=0;f<a.length;f++){var p=a[f],d=p[0];if(0===f&&o&&o.d){var g=t.getStartTangent();l=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],o.d)}else if(f===a.length-2&&"Z"===a[f+1][0]&&s&&s.d){var v=a[f+1];if("Z"===v[0]){g=t.getEndTangent();l=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(f===a.length-1&&s&&s.d&&"Z"!==a[0]){g=t.getEndTangent();l=u.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=l.dx,m=l.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-m),h=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-m);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-m);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-m);break;case"A":var x=void 0;r?(x=r[f],x||(x=i.default(c,p),r[f]=x)):x=i.default(c,p);var b=x.cx,M=x.cy,w=x.rx,_=x.ry,P=x.startAngle,A=x.endAngle,C=x.xRotation,S=x.sweepFlag;if(e.ellipse)e.ellipse(b,M,w,_,C,P,A,1-S);else{var O=w>_?w:_,k=w>_?1:w/_,B=w>_?_/w:1;e.translate(b,M),e.rotate(C),e.scale(k,B),e.arc(0,0,O,P,A,1-S),e.scale(1/k,1/B),e.rotate(-C),e.translate(-b,-M)}break;case"Z":e.closePath();break;default:break}if("Z"===d)c=h;else{var j=p.length;c=[p[j-2],p[j-1]]}}}function f(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw(),t.set("hasChanged",!0)))}function p(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),a=t.getCanvasBBox(),i=a&&!(!a.width||!a.height);r&&i?e=o.mergeRegion(n,a):r?e=n:i&&(e=a)}return e}function d(t){if(!t.length)return null;var e=[],n=[],a=[],i=[];return r.each(t,(function(t){var r=p(t);r&&(e.push(r.minX),n.push(r.minY),a.push(r.maxX),i.push(r.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,a),maxY:Math.max.apply(null,i)}}function g(t,e){return t&&e&&o.intersectRect(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}e.applyAttrsToContext=c,e.drawChildren=h,e.drawPath=l,e.refreshElement=f,e.getRefreshRegion=p,e.getMergedRegion=d,e.mergeView=g},3568:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b"),a=n("573a");function i(t,e,n,i,o,u,s,c){return r.default(t+o,e,t+n-o,e,u,s,c)||r.default(t+n,e+o,t+n,e+i-o,u,s,c)||r.default(t+n-o,e+i,t+o,e+i,u,s,c)||r.default(t,e+i-o,t,e+o,u,s,c)||a.default(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,u,s,c)||a.default(t+n-o,e+i-o,o,0,.5*Math.PI,u,s,c)||a.default(t+o,e+i-o,o,.5*Math.PI,Math.PI,u,s,c)||a.default(t+o,e+o,o,Math.PI,1.5*Math.PI,u,s,c)}e.default=i},3753:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180,a=function(t){return r*t};e.default=a},3820:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("6855"),i=n("c31b"),o=n("7d16"),u=n("516b"),s=n("076b"),c=n("573a"),h=n("1f05"),l=n("9fe7");function f(t){for(var e=!1,n=t.length,r=0;r<n;r++){var a=t[r],i=a[0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e}function p(t,e,n,r){for(var a=!1,f=e/2,p=0;p<t.length;p++){var d=t[p],g=d.currentPoint,v=d.params,y=d.prePoint,m=d.box;if(!m||u.inBox(m.x-f,m.y-f,m.width+e,m.height+e,n,r)){switch(d.command){case"L":case"Z":a=s.default(y[0],y[1],g[0],g[1],e,n,r);break;case"Q":var x=i.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],n,r);a=x<=e/2;break;case"C":var b=o.default.pointDistance(y[0],y[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r);a=b<=e/2;break;case"A":var M=d.arcParams,w=M.cx,_=M.cy,P=M.rx,A=M.ry,C=M.startAngle,S=M.endAngle,O=M.xRotation,k=[n,r,1],B=[1,0,0,0,1,0,0,0,1],j=P>A?P:A,T=P>A?1:P/A,E=P>A?A/P:1;h.translate(B,B,[-w,-_]),h.rotate(B,B,-O),h.scale(B,B,[1/T,1/E]),l.transformMat3(k,k,B),a=c.default(0,0,j,C,S,e,k[0],k[1]);break;default:break}if(a)break}}return a}function d(t){for(var e=t.length,n=[],r=[],a=[],i=0;i<e;i++){var o=t[i],u=o[0];"M"===u?(a.length&&(r.push(a),a=[]),a.push([o[1],o[2]])):"Z"===u?a.length&&(n.push(a),a=[]):a.push([o[1],o[2]])}return a.length>0&&r.push(a),{polygons:n,polylines:r}}e.default=r.__assign({hasArc:f,extractPolygons:d,isPointInStroke:p},a.PathUtil)},"3c5c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("739e"),a=function(t){var e=r.default(t);return e.charAt(0).toUpperCase()+e.substring(1)};e.default=a},"3d7d":function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function a(t,e){var n=t.get("startArrowShape"),a=t.get("endArrowShape"),i=null,o=null;return n&&(i=n.getCanvasBBox(),e=r(e,i)),a&&(o=a.getCanvasBBox(),e=r(e,o)),e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeBBox=r,e.mergeArrowBBox=a},"3dfb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("076b");function a(t,e,n,a,i){var o=t.length;if(o<2)return!1;for(var u=0;u<o-1;u++){var s=t[u][0],c=t[u][1],h=t[u+1][0],l=t[u+1][1];if(r.default(s,c,h,l,e,n,a))return!0}if(i){var f=t[0],p=t[o-1];if(r.default(f[0],f[1],p[0],p[1],e,n,a))return!0}return!1}e.default=a},"470f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("8937"),i=n("e3ad"),o=n("9705"),u=n("516b"),s=n("31c4"),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return a.isNil(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),a=r.x,o=r.y,s=r.symbol||"circle",c=this._getR(r);return u.isFunction(s)?(t=s,n=t(a,o,c),n=i.default(n)):(t=e.Symbols[s],n=t(a,o,c)),t?n:(console.warn(s+" marker is not supported."),null)},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");s.drawPath(this,t,{path:e},n)},e.Symbols=c,e}(o.default);e.default=h},"493b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n("b455"),a=1e-4;function i(t,e,n,i,o,u){var s,c=1/0,h=[n,i],l=20;u&&u>200&&(l=u/10);for(var f=1/l,p=f/10,d=0;d<=l;d++){var g=d*f,v=[o.apply(null,t.concat([g])),o.apply(null,e.concat([g]))],y=r.distance(h[0],h[1],v[0],v[1]);y<c&&(s=g,c=y)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var m=t.length;return{x:t[m-1],y:e[m-1]}}c=1/0;for(d=0;d<32;d++){if(p<a)break;var x=s-p,b=s+p;v=[o.apply(null,t.concat([x])),o.apply(null,e.concat([x]))],y=r.distance(h[0],h[1],v[0],v[1]);if(x>=0&&y<c)s=x,c=y;else{var M=[o.apply(null,t.concat([b])),o.apply(null,e.concat([b]))],w=r.distance(h[0],h[1],M[0],M[1]);b<=1&&w<c?(s=b,c=w):p*=.5}}return{x:o.apply(null,t.concat([s])),y:o.apply(null,e.concat([s]))}}function o(t,e){for(var n=0,a=t.length,i=0;i<a;i++){var o=t[i],u=e[i],s=t[(i+1)%a],c=e[(i+1)%a];n+=r.distance(o,u,s,c)}return n/2}e.nearestPoint=i,e.snapLength=o},"4dab":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var r=n("9ab4"),a=n("92ca"),i=Math.sin,o=Math.cos,u=Math.atan2,s=Math.PI;function c(t,e,n,r,c,h,l){var f=e.stroke,p=e.lineWidth,d=n-c,g=r-h,v=u(g,d),y=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*o(s/6)+","+10*i(s/6)+" L0,0 L"+10*o(s/6)+",-"+10*i(s/6),stroke:f,lineWidth:p}});y.translate(c,h),y.rotateAtPoint(c,h,v),t.set(l?"startArrowShape":"endArrowShape",y)}function h(t,e,n,s,c,h,l){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,v=l?f:p,y=v.d,m=v.fill,x=v.stroke,b=v.lineWidth,M=r.__rest(v,["d","fill","stroke","lineWidth"]),w=n-c,_=s-h,P=u(_,w);y&&(c-=o(P)*y,h-=i(P)*y);var A=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:r.__assign(r.__assign({},M),{stroke:x||d,lineWidth:b||g,fill:m})});A.translate(c,h),A.rotateAtPoint(c,h,P),t.set(l?"startArrowShape":"endArrowShape",A)}function l(t,e,n,r,a){var s=u(r-e,n-t);return{dx:o(s)*a,dy:i(s)*a}}function f(t,e,n,r,a,i){"object"===typeof e.startArrow?h(t,e,n,r,a,i,!0):e.startArrow?c(t,e,n,r,a,i,!0):t.set("startArrowShape",null)}function p(t,e,n,r,a,i){"object"===typeof e.endArrow?h(t,e,n,r,a,i,!1):e.endArrow?c(t,e,n,r,a,i,!1):t.set("startArrowShape",null)}e.getShortenOffset=l,e.addStartArrow=f,e.addEndArrow=p},"503e":function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function a(t,e,n,a){return e&&r(t,e),n&&r(t,n),a&&r(t,a),t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=a},"516b":function(t,e,n){"use strict";function r(){return window?window.devicePixelRatio:1}function a(t,e,n,r){var a=t-n,i=e-r;return Math.sqrt(a*a+i*i)}function i(t,e,n,r,a,i){return a>=t&&a<=t+n&&i>=e&&i<=e+r}function o(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function u(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=r,e.distance=a,e.inBox=i,e.intersectRect=o,e.mergeRegion=u,e.isSamePoint=s;var c=n("28f9");Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return c.default}});var h=n("61d8");Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return h.default}});var l=n("2047");Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return l.default}});var f=n("01f9");Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return f.default}});var p=n("72fb");Object.defineProperty(e,"each",{enumerable:!0,get:function(){return p.default}});var d=n("3753");Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return d.default}});var g=n("df01");Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return g.default}});var v=n("29f4");Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return v.default}});var y=n("f105");Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return y.default}});var m=n("83be");Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return m.default}})},"573a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function a(t,e,n,a,i,o,u,s){var c=(Math.atan2(s-e,u-t)+2*Math.PI)%(2*Math.PI);if(c<a||c>i)return!1;var h={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return r.distance(h.x,h.y,u,s)<=o/2}e.default=a},5833:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("7d16"),i=n("8937"),o=n("9705"),u=n("e3ad"),s=n("be6e"),c=n("31c4"),h=n("bd06"),l=n("83e4"),f=n("3820"),p=n("4dab");function d(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];if(r=l.default(i,e,n),r)break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=u.default(t);var e=f.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=s.default(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();p.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();p.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var i=this.getSegments(),o=this.get("hasArc"),u=!1;if(n&&(u=f.default.isPointInStroke(i,a,t,e)),!u&&r)if(o)u=h.default(this,t,e);else{var s=this.attr("path"),c=f.default.extractPolygons(s);u=d(c.polygons,t,e)||d(c.polylines,t,e)}return u},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");c.drawPath(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return i.isNil(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var o=this.get("curve");if(!r||0===r.length)return o?{x:o[0][1],y:o[0][2]}:null;i.each(r,(function(r,a){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=a)}));var u=o[n];if(i.isNil(u)||i.isNil(n))return null;var s=u.length,c=o[n+1];return a.default.pointAt(u[s-2],u[s-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",f.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,o=0,u=0,s=[],c=this.get("curve");c&&(i.each(c,(function(t,e){n=c[e+1],r=t.length,n&&(o+=a.default.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",o),0!==o?(i.each(c,(function(i,h){n=c[h+1],r=i.length,n&&(t=[],t[0]=u/o,e=a.default.length(i[r-2],i[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),u+=e||0,t[1]=u/o,s.push(t))})),this.set("tCache",s)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,a=e[1].startTangent;t=[],a?(t.push([n[0]-a[0],n[1]-a[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,a=e[n-1].currentPoint,i=e[n-1].endTangent;t=[],i?(t.push([a[0]-i[0],a[1]-i[1]]),t.push([a[0],a[1]])):(t.push([r[0],r[1]]),t.push([a[0],a[1]]))}return t},e}(o.default);e.default=g},"5d64":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("d080"),a=n("f4c8");function i(t,e,n){var a=1;if(r.isString(t)&&(a=t.split("\n").length),a>1){var i=o(e,n);return e*a+i*(a-1)}return e}function o(t,e){return e?e-t:.14*t}function u(t,e){var n=a.getOffScreenContext(),i=0;if(r.isNil(t)||""===t)return i;if(n.save(),n.font=e,r.isString(t)&&t.includes("\n")){var o=t.split("\n");r.each(o,(function(t){var e=n.measureText(t).width;i<e&&(i=e)}))}else i=n.measureText(t).width;return n.restore(),i}function s(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight,a=t.fontStyle,i=t.fontVariant;return[a,i,r,e+"px",n].join(" ").trim()}e.getTextHeight=i,e.getLineSpaceing=o,e.getTextWidth=u,e.assembleFont=s},"61d8":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("bd8b");e.default=function(t){return r.default(t,"String")}},"64be":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("7f6b"),o=n("516b"),u=n("d40f"),s=n("3568"),c=n("bd06"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var i=this.attr(),h=i.x,l=i.y,f=i.width,p=i.height,d=i.radius;if(d){var g=!1;return n&&(g=s.default(h,l,f,p,d,a,t,e)),!g&&r&&(g=c.default(this,t,e)),g}var v=a/2;return r&&n?o.inBox(h-v,l-v,f+v,p+v,t,e):r?o.inBox(h,l,f,p,t,e):n?u.default(h,l,f,p,a,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,a=e.width,o=e.height,u=e.radius;if(t.beginPath(),0===u)t.rect(n,r,a,o);else{var s=i.parseRadius(u),c=s[0],h=s[1],l=s[2],f=s[3];t.moveTo(n+c,r),t.lineTo(n+a-h,r),0!==h&&t.arc(n+a-h,r+h,h,-Math.PI/2,0),t.lineTo(n+a,r+o-l),0!==l&&t.arc(n+a-l,r+o-l,l,0,Math.PI/2),t.lineTo(n+f,r+o),0!==f&&t.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+c),0!==c&&t.arc(n+c,r+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=h},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"clone",(function(){return i})),n.d(e,"fromValues",(function(){return o})),n.d(e,"copy",(function(){return u})),n.d(e,"set",(function(){return s})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return l})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return b})),n.d(e,"squaredDistance",(function(){return M})),n.d(e,"length",(function(){return w})),n.d(e,"squaredLength",(function(){return _})),n.d(e,"negate",(function(){return P})),n.d(e,"inverse",(function(){return A})),n.d(e,"normalize",(function(){return C})),n.d(e,"dot",(function(){return S})),n.d(e,"cross",(function(){return O})),n.d(e,"lerp",(function(){return k})),n.d(e,"random",(function(){return B})),n.d(e,"transformMat2",(function(){return j})),n.d(e,"transformMat2d",(function(){return T})),n.d(e,"transformMat3",(function(){return E})),n.d(e,"transformMat4",(function(){return I})),n.d(e,"rotate",(function(){return D})),n.d(e,"angle",(function(){return X})),n.d(e,"zero",(function(){return q})),n.d(e,"str",(function(){return F})),n.d(e,"exactEquals",(function(){return N})),n.d(e,"equals",(function(){return Y})),n.d(e,"len",(function(){return L})),n.d(e,"sub",(function(){return R})),n.d(e,"mul",(function(){return W})),n.d(e,"div",(function(){return z})),n.d(e,"dist",(function(){return H})),n.d(e,"sqrDist",(function(){return G})),n.d(e,"sqrLen",(function(){return V})),n.d(e,"forEach",(function(){return Q}));var r=n("c94d");function a(){var t=new r["a"](2);return r["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function i(t){var e=new r["a"](2);return e[0]=t[0],e[1]=t[1],e}function o(t,e){var n=new r["a"](2);return n[0]=t,n[1]=e,n}function u(t,e){return t[0]=e[0],t[1]=e[1],t}function s(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function x(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function b(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function w(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function _(t){var e=t[0],n=t[1];return e*e+n*n}function P(t,e){return t[0]=-e[0],t[1]=-e[1],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function C(t,e){var n=e[0],r=e[1],a=n*n+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function S(t,e){return t[0]*e[0]+t[1]*e[1]}function O(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function k(t,e,n,r){var a=e[0],i=e[1];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t}function B(t,e){e=e||1;var n=2*r["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function j(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a,t[1]=n[1]*r+n[3]*a,t}function T(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function E(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[3]*a+n[6],t[1]=n[1]*r+n[4]*a+n[7],t}function I(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[4]*a+n[12],t[1]=n[1]*r+n[5]*a+n[13],t}function D(t,e,n,r){var a=e[0]-n[0],i=e[1]-n[1],o=Math.sin(r),u=Math.cos(r);return t[0]=a*u-i*o+n[0],t[1]=a*o+i*u+n[1],t}function X(t,e){var n=t[0],r=t[1],a=e[0],i=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(a*a+i*i),u=o&&(n*a+r*i)/o;return Math.acos(Math.min(Math.max(u,-1),1))}function q(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function N(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],a=t[1],i=e[0],o=e[1];return Math.abs(n-i)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(a-o)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(o))}var L=w,R=h,W=l,z=f,H=b,G=M,V=_,Q=function(){var t=a();return function(e,n,r,a,i,o){var u,s;for(n||(n=2),r||(r=0),s=a?Math.min(a*n+r,e.length):e.length,u=r;u<s;u+=n)t[0]=e[u],t[1]=e[u+1],i(t,t,o),e[u]=t[0],e[u+1]=t[1];return e}}()},6855:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return Tr})),n.d(e,"Event",(function(){return H})),n.d(e,"Base",(function(){return pt})),n.d(e,"AbstractCanvas",(function(){return Cr})),n.d(e,"AbstractGroup",(function(){return Or})),n.d(e,"AbstractShape",(function(){return Br})),n.d(e,"PathUtil",(function(){return r}));var r={};n.r(r),n.d(r,"catmullRomToBezier",(function(){return l})),n.d(r,"fillPath",(function(){return X})),n.d(r,"fillPathByDiff",(function(){return Y})),n.d(r,"formatPath",(function(){return W})),n.d(r,"intersection",(function(){return T})),n.d(r,"parsePathArray",(function(){return x})),n.d(r,"parsePathString",(function(){return h})),n.d(r,"pathToAbsolute",(function(){return p})),n.d(r,"pathToCurve",(function(){return y})),n.d(r,"rectPath",(function(){return A}));var a={};n.r(a),n.d(a,"leftTranslate",(function(){return vt})),n.d(a,"leftRotate",(function(){return yt})),n.d(a,"leftScale",(function(){return mt})),n.d(a,"transform",(function(){return bt})),n.d(a,"direction",(function(){return Mt})),n.d(a,"angleTo",(function(){return wt})),n.d(a,"vertical",(function(){return _t}));var i={};n.r(i),n.d(i,"easeLinear",(function(){return pe})),n.d(i,"easeQuad",(function(){return ve})),n.d(i,"easeQuadIn",(function(){return de})),n.d(i,"easeQuadOut",(function(){return ge})),n.d(i,"easeQuadInOut",(function(){return ve})),n.d(i,"easeCubic",(function(){return xe})),n.d(i,"easeCubicIn",(function(){return ye})),n.d(i,"easeCubicOut",(function(){return me})),n.d(i,"easeCubicInOut",(function(){return xe})),n.d(i,"easePoly",(function(){return _e})),n.d(i,"easePolyIn",(function(){return Me})),n.d(i,"easePolyOut",(function(){return we})),n.d(i,"easePolyInOut",(function(){return _e})),n.d(i,"easeSin",(function(){return Oe})),n.d(i,"easeSinIn",(function(){return Ce})),n.d(i,"easeSinOut",(function(){return Se})),n.d(i,"easeSinInOut",(function(){return Oe})),n.d(i,"easeExp",(function(){return Te})),n.d(i,"easeExpIn",(function(){return Be})),n.d(i,"easeExpOut",(function(){return je})),n.d(i,"easeExpInOut",(function(){return Te})),n.d(i,"easeCircle",(function(){return De})),n.d(i,"easeCircleIn",(function(){return Ee})),n.d(i,"easeCircleOut",(function(){return Ie})),n.d(i,"easeCircleInOut",(function(){return De})),n.d(i,"easeBounce",(function(){return Ve})),n.d(i,"easeBounceIn",(function(){return Ge})),n.d(i,"easeBounceOut",(function(){return Ve})),n.d(i,"easeBounceInOut",(function(){return Qe})),n.d(i,"easeBack",(function(){return Ke})),n.d(i,"easeBackIn",(function(){return $e})),n.d(i,"easeBackOut",(function(){return Ue})),n.d(i,"easeBackInOut",(function(){return Ke})),n.d(i,"easeElastic",(function(){return rn})),n.d(i,"easeElasticIn",(function(){return nn})),n.d(i,"easeElasticOut",(function(){return rn})),n.d(i,"easeElasticInOut",(function(){return an}));var o=n("8937"),u="\t\n\v\f\r \u2028\u2029",s=new RegExp("([a-z])["+u+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+u+"]*,?["+u+"]*)+)","ig"),c=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+u+"]*,?["+u+"]*","ig"),h=function(t){if(!t)return null;if(Object(o["isArray"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(s,(function(r,a,i){var o=[],u=a.toLowerCase();if(i.replace(c,(function(t,e){e&&o.push(+e)})),"m"===u&&o.length>2&&(n.push([a].concat(o.splice(0,2))),u="l",a="m"===a?"l":"L"),"o"===u&&1===o.length&&n.push([a,o[0]]),"r"===u)n.push([a].concat(o));else while(o.length>=e[u])if(n.push([a].concat(o.splice(0,e[u]))),!e[u])break;return t})),n},l=function(t,e){for(var n=[],r=0,a=t.length;a-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?a-4===r?i[3]={x:+t[0],y:+t[1]}:a-2===r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4===r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},f=function(t,e,n,r,a){var i=[];if(null===a&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==a){var o=Math.PI/180,u=t+n*Math.cos(-r*o),s=t+n*Math.cos(-a*o),c=e+n*Math.sin(-r*o),h=e+n*Math.sin(-a*o);i=[["M",u,c],["A",n,n,0,+(a-r>180),0,s,h]]}else i=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i},p=function(t){if(t=h(t),!t||!t.length)return[["M",0,0]];var e,n,r=[],a=0,i=0,o=0,u=0,s=0;"M"===t[0][0]&&(a=+t[0][1],i=+t[0][2],o=a,u=i,s++,r[0]=["M",a,i]);for(var c=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=s,v=t.length;g<v;g++){if(r.push(p=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+a,p[7]=+d[7]+i;break;case"V":p[1]=+d[1]+i;break;case"H":p[1]=+d[1]+a;break;case"R":n=[a,i].concat(d.slice(1));for(var y=2,m=n.length;y<m;y++)n[y]=+n[y]+a,n[++y]=+n[y]+i;r.pop(),r=r.concat(l(n,c));break;case"O":r.pop(),n=f(a,i,d[1],d[2]),n.push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(f(a,i,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+a,u=+d[2]+i;break;default:for(y=1,m=d.length;y<m;y++)p[y]=+d[y]+(y%2?a:i)}else if("R"===e)n=[a,i].concat(d.slice(1)),r.pop(),r=r.concat(l(n,c)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),n=f(a,i,d[1],d[2]),n.push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(f(a,i,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var x=0,b=d.length;x<b;x++)p[x]=d[x];if(e=e.toUpperCase(),"O"!==e)switch(p[0]){case"Z":a=+o,i=+u;break;case"H":a=p[1];break;case"V":i=p[1];break;case"M":o=p[p.length-2],u=p[p.length-1];break;default:a=p[p.length-2],i=p[p.length-1]}}return r},d=function(t,e,n,r){return[t,e,n,r,n,r]},g=function(t,e,n,r,a,i){var o=1/3,u=2/3;return[o*t+u*n,o*e+u*r,o*a+u*n,o*i+u*r,a,i]},v=function(t,e,n,r,a,i,o,u,s,c){n===r&&(n+=1);var h,l,f,p,d,g=120*Math.PI/180,y=Math.PI/180*(+a||0),m=[],x=function(t,e,n){var r=t*Math.cos(n)-e*Math.sin(n),a=t*Math.sin(n)+e*Math.cos(n);return{x:r,y:a}};if(c)l=c[0],f=c[1],p=c[2],d=c[3];else{h=x(t,e,-y),t=h.x,e=h.y,h=x(u,s,-y),u=h.x,s=h.y,t===u&&e===s&&(u+=1,s+=1);var b=(t-u)/2,M=(e-s)/2,w=b*b/(n*n)+M*M/(r*r);w>1&&(w=Math.sqrt(w),n*=w,r*=w);var _=n*n,P=r*r,A=(i===o?-1:1)*Math.sqrt(Math.abs((_*P-_*M*M-P*b*b)/(_*M*M+P*b*b)));p=A*n*M/r+(t+u)/2,d=A*-r*b/n+(e+s)/2,l=Math.asin(((e-d)/r).toFixed(9)),f=Math.asin(((s-d)/r).toFixed(9)),l=t<p?Math.PI-l:l,f=u<p?Math.PI-f:f,l<0&&(l=2*Math.PI+l),f<0&&(f=2*Math.PI+f),o&&l>f&&(l-=2*Math.PI),!o&&f>l&&(f-=2*Math.PI)}var C=f-l;if(Math.abs(C)>g){var S=f,O=u,k=s;f=l+g*(o&&f>l?1:-1),u=p+n*Math.cos(f),s=d+r*Math.sin(f),m=v(u,s,n,r,a,0,o,O,k,[f,S,p,d])}C=f-l;var B=Math.cos(l),j=Math.sin(l),T=Math.cos(f),E=Math.sin(f),I=Math.tan(C/4),D=4/3*n*I,X=4/3*r*I,q=[t,e],F=[t+D*j,e-X*B],N=[u+D*E,s-X*T],Y=[u,s];if(F[0]=2*q[0]-F[0],F[1]=2*q[1]-F[1],c)return[F,N,Y].concat(m);m=[F,N,Y].concat(m).join().split(",");for(var L=[],R=0,W=m.length;R<W;R++)L[R]=R%2?x(m[R-1],m[R],y).y:x(m[R],m[R+1],y).x;return L},y=function(t,e){var n,r=p(t),a=e&&p(e),i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u=[],s=[],c="",h="",l=function(t,e,n){var r,a;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(v.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,a=2*e.y-e.by):(r=e.x,a=e.y),t=["C",r,a].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(g(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(g(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(d(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(d(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(d(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(d(e.x,e.y,e.X,e.Y));break;default:break}return t},f=function(t,e){if(t[e].length>7){t[e].shift();var i=t[e];while(i.length)u[e]="A",a&&(s[e]="A"),t.splice(e++,0,["C"].concat(i.splice(0,6)));t.splice(e,1),n=Math.max(r.length,a&&a.length||0)}},y=function(t,e,i,o,u){t&&e&&"M"===t[u][0]&&"M"!==e[u][0]&&(e.splice(u,0,["M",o.x,o.y]),i.bx=0,i.by=0,i.x=t[u][1],i.y=t[u][2],n=Math.max(r.length,a&&a.length||0))};n=Math.max(r.length,a&&a.length||0);for(var m=0;m<n;m++){r[m]&&(c=r[m][0]),"C"!==c&&(u[m]=c,m&&(h=u[m-1])),r[m]=l(r[m],i,h),"A"!==u[m]&&"C"===c&&(u[m]="C"),f(r,m),a&&(a[m]&&(c=a[m][0]),"C"!==c&&(s[m]=c,m&&(h=s[m-1])),a[m]=l(a[m],o,h),"A"!==s[m]&&"C"===c&&(s[m]="C"),f(a,m)),y(r,a,i,o,m),y(a,r,o,i,m);var x=r[m],b=a&&a[m],M=x.length,w=a&&b.length;i.x=x[M-2],i.y=x[M-1],i.bx=parseFloat(x[M-4])||i.x,i.by=parseFloat(x[M-3])||i.y,o.bx=a&&(parseFloat(b[w-4])||o.x),o.by=a&&(parseFloat(b[w-3])||o.y),o.x=a&&b[w-2],o.y=a&&b[w-1]}return a?[r,a]:r},m=/,?([a-z]),?/gi,x=function(t){return t.join(",").replace(m,"$1")},b=function(t,e,n,r,a){var i=-3*e+9*n-9*r+3*a,o=t*i+6*e-12*n+6*r;return t*o-3*e+3*n},M=function(t,e,n,r,a,i,o,u,s){null===s&&(s=1),s=s>1?1:s<0?0:s;for(var c=s/2,h=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<h;d++){var g=c*l[d]+c,v=b(g,t,n,a,o),y=b(g,e,r,i,u),m=v*v+y*y;p+=f[d]*Math.sqrt(m)}return c*p},w=function(t,e,n,r,a,i,o,u){for(var s,c,h,l,f=[],p=[[],[]],d=0;d<2;++d)if(0===d?(c=6*t-12*n+6*a,s=-3*t+9*n-9*a+3*o,h=3*n-3*t):(c=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*u,h=3*r-3*e),Math.abs(s)<1e-12){if(Math.abs(c)<1e-12)continue;l=-h/c,l>0&&l<1&&f.push(l)}else{var g=c*c-4*h*s,v=Math.sqrt(g);if(!(g<0)){var y=(-c+v)/(2*s);y>0&&y<1&&f.push(y);var m=(-c-v)/(2*s);m>0&&m<1&&f.push(m)}}var x,b=f.length,M=b;while(b--)l=f[b],x=1-l,p[0][b]=x*x*x*t+3*x*x*l*n+3*x*l*l*a+l*l*l*o,p[1][b]=x*x*x*e+3*x*x*l*r+3*x*l*l*i+l*l*l*u;return p[0][M]=t,p[1][M]=e,p[0][M+1]=o,p[1][M+1]=u,p[0].length=p[1].length=M+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},_=function(t,e,n,r,a,i,o,u){if(!(Math.max(t,n)<Math.min(a,o)||Math.min(t,n)>Math.max(a,o)||Math.max(e,r)<Math.min(i,u)||Math.min(e,r)>Math.max(i,u))){var s=(t*r-e*n)*(a-o)-(t-n)*(a*u-i*o),c=(t*r-e*n)*(i-u)-(e-r)*(a*u-i*o),h=(t-n)*(i-u)-(e-r)*(a-o);if(h){var l=s/h,f=c/h,p=+l.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(a,o).toFixed(2)||p>+Math.max(a,o).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(i,u).toFixed(2)||d>+Math.max(i,u).toFixed(2)))return{x:l,y:f}}}},P=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},A=function(t,e,n,r,a){if(a)return[["M",+t+ +a,e],["l",n-2*a,0],["a",a,a,0,0,1,a,a],["l",0,r-2*a],["a",a,a,0,0,1,-a,a],["l",2*a-n,0],["a",a,a,0,0,1,-a,-a],["l",0,2*a-r],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=x,i},C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:A(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e){return t=C(t),e=C(e),P(e,t.x,t.y)||P(e,t.x2,t.y)||P(e,t.x,t.y2)||P(e,t.x2,t.y2)||P(t,e.x,e.y)||P(t,e.x2,e.y)||P(t,e.x,e.y2)||P(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},O=function(t,e,n,r,a,i,u,s){Object(o["isArray"])(t)||(t=[t,e,n,r,a,i,u,s]);var c=w.apply(null,t);return C(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},k=function(t,e,n,r,a,i,o,u,s){var c=1-s,h=Math.pow(c,3),l=Math.pow(c,2),f=s*s,p=f*s,d=h*t+3*l*s*n+3*c*s*s*a+p*o,g=h*e+3*l*s*r+3*c*s*s*i+p*u,v=t+2*s*(n-t)+f*(a-2*n+t),y=e+2*s*(r-e)+f*(i-2*r+e),m=n+2*s*(a-n)+f*(o-2*a+n),x=r+2*s*(i-r)+f*(u-2*i+r),b=c*t+s*n,M=c*e+s*r,w=c*a+s*o,_=c*i+s*u,P=90-180*Math.atan2(v-m,y-x)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:x},start:{x:b,y:M},end:{x:w,y:_},alpha:P}},B=function(t,e,n){var r=O(t),a=O(e);if(!S(r,a))return n?0:[];for(var i=M.apply(0,t),o=M.apply(0,e),u=~~(i/8),s=~~(o/8),c=[],h=[],l={},f=n?0:[],p=0;p<u+1;p++){var d=k.apply(0,t.concat(p/u));c.push({x:d.x,y:d.y,t:p/u})}for(p=0;p<s+1;p++){d=k.apply(0,e.concat(p/s));h.push({x:d.x,y:d.y,t:p/s})}for(p=0;p<u;p++)for(var g=0;g<s;g++){var v=c[p],y=c[p+1],m=h[g],x=h[g+1],b=Math.abs(y.x-v.x)<.001?"y":"x",w=Math.abs(x.x-m.x)<.001?"y":"x",P=_(v.x,v.y,y.x,y.y,m.x,m.y,x.x,x.y);if(P){if(l[P.x.toFixed(4)]===P.y.toFixed(4))continue;l[P.x.toFixed(4)]=P.y.toFixed(4);var A=v.t+Math.abs((P[b]-v[b])/(y[b]-v[b]))*(y.t-v.t),C=m.t+Math.abs((P[w]-m[w])/(x[w]-m[w]))*(x.t-m.t);A>=0&&A<=1&&C>=0&&C<=1&&(n?f+=1:f.push({x:P.x,y:P.y,t1:A,t2:C}))}}return f},j=function(t,e,n){var r,a,i,o,u,s,c,h,l,f;t=y(t),e=y(e);for(var p=n?0:[],d=0,g=t.length;d<g;d++){var v=t[d];if("M"===v[0])r=u=v[1],a=s=v[2];else{"C"===v[0]?(l=[r,a].concat(v.slice(1)),r=l[6],a=l[7]):(l=[r,a,r,a,u,s,u,s],r=u,a=s);for(var m=0,x=e.length;m<x;m++){var b=e[m];if("M"===b[0])i=c=b[1],o=h=b[2];else{"C"===b[0]?(f=[i,o].concat(b.slice(1)),i=f[6],o=f[7]):(f=[i,o,i,o,c,h,c,h],i=c,o=h);var M=B(l,f,n);if(n)p+=M;else{for(var w=0,_=M.length;w<_;w++)M[w].segment1=d,M[w].segment2=m,M[w].bez1=l,M[w].bez2=f;p=p.concat(M)}}}}}return p},T=function(t,e){return j(t,e)};function E(t,e){var n=[],r=[];function a(t,e){if(1===t.length)n.push(t[0]),r.push(t[0]);else{for(var i=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&r.push(t[o+1]),i[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];a(i,e)}}return t.length&&a(t,e),{left:n,right:r.reverse()}}function I(t,e,n){var r=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var i=r,o=1/n,u=0;u<n-1;u++){var s=o/(1-o*u),c=E(i,s);a.push(c.left),i=c.right}a.push(i);var h=a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return h}var D=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(I(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var i=0;i<=n-1;i++)r.push(a)}return r},X=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,i=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var u=Math.floor(a*o);i[u]=(i[u]||0)+1}var s=i.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(D(t[a],t[a+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s},q=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(o["each"])(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function F(t,e,n){var r=null,a=n;return e<a&&(a=e,r="add"),t<a&&(a=t,r="del"),{type:r,min:a}}var N=function(t,e){var n,r,a=t.length,i=e.length,o=0;if(0===a||0===i)return null;for(var u=[],s=0;s<=a;s++)u[s]=[],u[s][0]={min:s};for(var c=0;c<=i;c++)u[0][c]={min:c};for(s=1;s<=a;s++){n=t[s-1];for(c=1;c<=i;c++){r=e[c-1],o=q(n,r)?0:1;var h=u[s-1][c].min+1,l=u[s][c-1].min+1,f=u[s-1][c-1].min+o;u[s][c]=F(h,l,f)}}return u},Y=function(t,e){var n=N(t,e),r=t.length,a=e.length,i=[],o=1,u=1;if(n[r][a].min!==r){for(var s=1;s<=r;s++){var c=n[s][s].min;u=s;for(var h=o;h<=a;h++)n[s][h].min<c&&(c=n[s][h].min,u=h);o=u,n[s][o].type&&i.push({index:s-1,type:n[s][o].type})}for(s=i.length-1;s>=0;s--)o=i[s].index,"add"===i[s].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}r=t.length;var l=a-r;if(r<a)for(s=0;s<l;s++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function L(t,e,n){for(var r,a=[].concat(t),i=1/(n+1),o=R(e)[0],u=1;u<=n;u++)i*=u,r=Math.floor(t.length*i),0===r?a.unshift([o[0]*i+t[r][0]*(1-i),o[1]*i+t[r][1]*(1-i)]):a.splice(r,0,[o[0]*i+t[r][0]*(1-i),o[1]*i+t[r][1]*(1-i)]);return a}function R(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var W=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=R(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t},z=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}(),H=z,G=n("9ab4"),V=n("7fa27"),Q=n("28f9"),Z=n.n(Q),$=n("2047"),U=n.n($),K=n("61d8"),J=n.n(K),tt=n("9ab4f"),et=n.n(tt),nt=(n("01f9"),n("503e")),rt=n.n(nt),at=n("72fb"),it=n.n(at),ot=n("3c5c"),ut=n.n(ot);function st(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var ct="undefined"!==typeof window&&"undefined"!==typeof window.document;function ht(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function lt(t){return t.cfg.visible&&t.cfg.capture}var ft=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=rt()(r,e),n}return Object(G["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(V["default"]),pt=ft,dt=n("0c05"),gt=n("20e7");function vt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromTranslation(r,n),gt["a"].multiply(t,r,e)}function yt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromRotation(r,n),gt["a"].multiply(t,r,e)}function mt(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return gt["a"].fromScaling(r,n),gt["a"].multiply(t,r,e)}function xt(t,e,n){return gt["a"].multiply(t,n,e)}function bt(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],r=0,a=e.length;r<a;r++){var i=e[r];switch(i[0]){case"t":vt(n,n,[i[1],i[2]]);break;case"s":mt(n,n,[i[1],i[2]]);break;case"r":yt(n,n,i[1]);break;case"m":xt(n,n,i[1]);break;default:break}}return n}function Mt(t,e){return t[0]*e[1]-e[0]*t[1]}function wt(t,e,n){var r=gt["b"].angle(t,e),a=Mt(t,e)>=0;return n?a?2*Math.PI-r:r:a?r:2*Math.PI-r}function _t(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function Pt(t,e){var n=[],r=t[0],a=t[1],i=t[2],o=t[3],u=t[4],s=t[5],c=t[6],h=t[7],l=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],x=e[7],b=e[8];return n[0]=f*r+p*o+d*c,n[1]=f*a+p*u+d*h,n[2]=f*i+p*s+d*l,n[3]=g*r+v*o+y*c,n[4]=g*a+v*u+y*h,n[5]=g*i+v*s+y*l,n[6]=m*r+x*o+b*c,n[7]=m*a+x*u+b*h,n[8]=m*i+x*s+b*l,n}function At(t,e){var n=[],r=e[0],a=e[1];return n[0]=t[0]*r+t[3]*a+t[6],n[1]=t[1]*r+t[4]*a+t[7],n}function Ct(t){var e=[],n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],u=t[5],s=t[6],c=t[7],h=t[8],l=h*o-u*c,f=-h*i+u*s,p=c*i-o*s,d=n*l+r*f+a*p;return d?(d=1/d,e[0]=l*d,e[1]=(-h*r+a*c)*d,e[2]=(u*r-a*o)*d,e[3]=f*d,e[4]=(h*n-a*s)*d,e[5]=(-u*n+a*i)*d,e[6]=p*d,e[7]=(-c*n+r*s)*d,e[8]=(o*n-r*i)*d,e):null}var St="matrix",Ot=["zIndex","capture","visible","type"],kt=["repeat"],Bt=":",jt="*";function Tt(t){for(var e=[],n=0;n<t.length;n++)Object(o["isArray"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function Et(t,e){var n={},r=e.attrs;for(var a in t)n[a]=r[a];return n}function It(t,e){var n={},r=e.attr();return Object(o["each"])(t,(function(t,e){-1!==kt.indexOf(e)||Object(o["isEqual"])(r[e],t)||(n[e]=t)})),n}function Dt(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,a=e.duration,i=Object.prototype.hasOwnProperty;return Object(o["each"])(t,(function(t){n+r<t.startTime+t.delay+t.duration&&a>t.delay&&Object(o["each"])(e.toAttrs,(function(e,n){i.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var Xt=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(o["mix"])(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(G["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],a=e[1];if(!r)return this.attrs;if(Object(o["isObject"])(r)){for(var i in r)this.setAttr(i,r[i]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,a),this.afterAttrsChange((t={},t[r]=a,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(st(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(St,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(St)},e.prototype.setMatrix=function(t){this.attr(St,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.get("totalMatrix");if(!t){var e=this.attr("matrix"),n=this.get("parentMatrix");t=n&&e?Pt(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Pt(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?At(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Ct(e);if(n)return At(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase(),a=Object(o["upperFirst"])(t.type),i=r[a];i&&(n=new i({type:t.type,isClipShape:!0,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(o["each"])(e,(function(t,r){Object(o["isArray"])(e[r])?n[r]=Tt(e[r]):n[r]=e[r]}));var r=this.constructor,a=new r({attrs:n});return Object(o["each"])(Ot,(function(e){a.set(e,t.get(e))})),a},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var a,i,u,s,c,h=t[0],l=t[1],f=t[2],p=void 0===f?"easeLinear":f,d=t[3],g=void 0===d?o["noop"]:d,v=t[4],y=void 0===v?0:v;Object(o["isFunction"])(h)?(a=h,h={}):Object(o["isObject"])(h)&&h.onFrame&&(a=h.onFrame,i=h.repeat),Object(o["isObject"])(l)?(c=l,l=c.duration,p=c.easing||"easeLinear",y=c.delay||0,i=c.repeat||i||!1,g=c.callback||o["noop"],u=c.pauseCallback||o["noop"],s=c.resumeCallback||o["noop"]):(Object(o["isNumber"])(g)&&(y=g,g=null),Object(o["isFunction"])(p)?(g=p,p="easeLinear"):p=p||"easeLinear");var m=It(h,this),x={fromAttrs:Et(m,this),toAttrs:m,duration:l,easing:p,repeat:i,callback:g,pauseCallback:u,resumeCallback:s,delay:y,startTime:n.getTime(),id:Object(o["uniqueId"])(),onFrame:a,pathFormatted:!1};r.length>0?r=Dt(r,x):n.addAnimator(this),r.push(x),this.set("animations",r),this.set("_pause",{isPaused:!1})},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(o["each"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(o["each"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),r=this.get("_pause").pauseTime;return Object(o["each"])(n,(function(t){t.startTime=t.startTime+(e-r),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,r=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var i=function(t){var i=a[t],s=i.get("name");if(s){if((i.isGroup()||i.isCanvas&&i.isCanvas())&&n&&ht(i,n))return"break";Object(o["isArray"])(s)?Object(o["each"])(s,(function(t){r.emitDelegateEvent(i,t,e)})):u.emitDelegateEvent(i,s,e)}},u=this,s=0;s<a.length;s++){var c=i(s);if("break"===c)break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),a=e+Bt+n.type;(r[a]||r[jt])&&(n.name=a,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(a,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=a.transform(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=a.transform(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=a.transform(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=a.transform(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=a.transform(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(pt),qt=Xt,Ft={},Nt="_INDEX";function Yt(t){t.isGroup()?(t.isEntityGroup()||t.get("children").length)&&t.onCanvasChange("add"):t.onCanvasChange("add")}function Lt(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Lt(t,e)}))}}function Rt(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){Rt(t,e)}))}}function Wt(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),st(t.getChildren(),e)}function zt(t){return function(e,n){var r=t(e,n);return 0===r?e[Nt]-n[Nt]:r}}var Ht,Gt,Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(G["__extends"])(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],i=[],o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));o.length>0?(it()(o,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),i.push(e.minY,e.maxY)})),t=Math.min.apply(null,a),e=Math.max.apply(null,a),n=Math.min.apply(null,i),r=Math.max.apply(null,i)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,a=[],i=[],o=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));o.length>0?(it()(o,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),i.push(e.minY,e.maxY)})),t=Math.min.apply(null,a),e=Math.max.apply(null,a),n=Math.min.apply(null,i),r=Math.max.apply(null,i)):(t=0,e=0,n=0,r=0);var u={x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n};return u},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var a=this.getTotalMatrix();this._applyChildrenMarix(a)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();it()(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];et()(n)?r=n:r["type"]=n;var a=Ft[r.type];a||(a=ut()(r.type),Ft[r.type]=a);var i=this.getShapeBase(),o=new i[a](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],a=t[1];if(U()(r))n=new r(a||{parent:this});else{var i=r||{},o=this.getGroupBase();n=new o(i)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!lt(this))return null;var r,a=this.getChildren();if(this.isCanvas())r=this._findShape(a,t,e,n);else{var i=[t,e,1];i=this.invertFromMatrix(i),this.isClipped(i[0],i[1])||(r=this._findShape(a,i[0],i[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var a=null,i=t.length-1;i>=0;i--){var o=t[i];if(lt(o)&&(o.isGroup()?a=o.getShape(e,n,r):o.isHit(e,n)&&(a=o)),a)break}return a},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),a=t.getParent();a&&Wt(a,t,!1),t.set("parent",this),e&&Lt(t,e),r&&Rt(t,r),n.push(t),Yt(t),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();it()(t,(function(t,e){return t[Nt]=e,t})),t.sort(zt((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return it()(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return it()(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(qt),Qt=Vt,Zt=0,$t=0,Ut=0,Kt=1e3,Jt=0,te=0,ee=0,ne="object"===typeof performance&&performance.now?performance:Date,re="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ae(){return te||(re(ie),te=ne.now()+ee)}function ie(){te=0}function oe(){this._call=this._time=this._next=null}function ue(t,e,n){var r=new oe;return r.restart(t,e,n),r}function se(){ae(),++Zt;var t,e=Ht;while(e)(t=te-e._time)>=0&&e._call.call(null,t),e=e._next;--Zt}function ce(){te=(Jt=ne.now())+ee,Zt=$t=0;try{se()}finally{Zt=0,le(),te=0}}function he(){var t=ne.now(),e=t-Jt;e>Kt&&(ee-=e,Jt=t)}function le(){var t,e,n=Ht,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ht=e);Gt=t,fe(r)}function fe(t){if(!Zt){$t&&($t=clearTimeout($t));var e=t-te;e>24?(t<1/0&&($t=setTimeout(ce,t-ne.now()-ee)),Ut&&(Ut=clearInterval(Ut))):(Ut||(Jt=ne.now(),Ut=setInterval(he,Kt)),Zt=1,re(ce))}}function pe(t){return+t}function de(t){return t*t}function ge(t){return t*(2-t)}function ve(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function ye(t){return t*t*t}function me(t){return--t*t*t+1}function xe(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}oe.prototype=ue.prototype={constructor:oe,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?ae():+n)+(null==e?0:+e),this._next||Gt===this||(Gt?Gt._next=this:Ht=this,Gt=this),this._call=t,this._time=n,fe()},stop:function(){this._call&&(this._call=null,this._time=1/0,fe())}};var be=3,Me=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(be),we=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(be),_e=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(be),Pe=Math.PI,Ae=Pe/2;function Ce(t){return 1===+t?1:1-Math.cos(t*Ae)}function Se(t){return Math.sin(t*Ae)}function Oe(t){return(1-Math.cos(Pe*t))/2}function ke(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Be(t){return ke(1-+t)}function je(t){return 1-ke(t)}function Te(t){return((t*=2)<=1?ke(1-t):2-ke(t-1))/2}function Ee(t){return 1-Math.sqrt(1-t*t)}function Ie(t){return Math.sqrt(1- --t*t)}function De(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Xe=4/11,qe=6/11,Fe=8/11,Ne=3/4,Ye=9/11,Le=10/11,Re=15/16,We=21/22,ze=63/64,He=1/Xe/Xe;function Ge(t){return 1-Ve(1-t)}function Ve(t){return(t=+t)<Xe?He*t*t:t<Fe?He*(t-=qe)*t+Ne:t<Le?He*(t-=Ye)*t+Re:He*(t-=We)*t+ze}function Qe(t){return((t*=2)<=1?1-Ve(1-t):Ve(t-1)+1)/2}var Ze=1.70158,$e=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(Ze),Ue=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(Ze),Ke=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(Ze),Je=2*Math.PI,tn=1,en=.3,nn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function a(t){return e*ke(- --t)*Math.sin((r-t)/n)}return a.amplitude=function(e){return t(e,n*Je)},a.period=function(n){return t(e,n)},a}(tn,en),rn=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function a(t){return 1-e*ke(t=+t)*Math.sin((t+r)/n)}return a.amplitude=function(e){return t(e,n*Je)},a.period=function(n){return t(e,n)},a}(tn,en),an=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Je);function a(t){return((t=2*t-1)<0?e*ke(-t)*Math.sin((r-t)/n):2-e*ke(t)*Math.sin((r+t)/n))/2}return a.amplitude=function(e){return t(e,n*Je)},a.period=function(n){return t(e,n)},a}(tn,en),on=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function un(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function sn(){}var cn=.7,hn=1/cn,ln="\\s*([+-]?\\d+)\\s*",fn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dn=/^#([0-9a-f]{3,8})$/,gn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),vn=new RegExp("^rgb\\("+[pn,pn,pn]+"\\)$"),yn=new RegExp("^rgba\\("+[ln,ln,ln,fn]+"\\)$"),mn=new RegExp("^rgba\\("+[pn,pn,pn,fn]+"\\)$"),xn=new RegExp("^hsl\\("+[fn,pn,pn]+"\\)$"),bn=new RegExp("^hsla\\("+[fn,pn,pn,fn]+"\\)$"),Mn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wn(){return this.rgb().formatHex()}function _n(){return Dn(this).formatHsl()}function Pn(){return this.rgb().formatRgb()}function An(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=dn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Cn(e):3===n?new Bn(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Sn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Sn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=gn.exec(t))?new Bn(e[1],e[2],e[3],1):(e=vn.exec(t))?new Bn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yn.exec(t))?Sn(e[1],e[2],e[3],e[4]):(e=mn.exec(t))?Sn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xn.exec(t))?In(e[1],e[2]/100,e[3]/100,1):(e=bn.exec(t))?In(e[1],e[2]/100,e[3]/100,e[4]):Mn.hasOwnProperty(t)?Cn(Mn[t]):"transparent"===t?new Bn(NaN,NaN,NaN,0):null}function Cn(t){return new Bn(t>>16&255,t>>8&255,255&t,1)}function Sn(t,e,n,r){return r<=0&&(t=e=n=NaN),new Bn(t,e,n,r)}function On(t){return t instanceof sn||(t=An(t)),t?(t=t.rgb(),new Bn(t.r,t.g,t.b,t.opacity)):new Bn}function kn(t,e,n,r){return 1===arguments.length?On(t):new Bn(t,e,n,null==r?1:r)}function Bn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function jn(){return"#"+En(this.r)+En(this.g)+En(this.b)}function Tn(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function En(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function In(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new qn(t,e,n,r)}function Dn(t){if(t instanceof qn)return new qn(t.h,t.s,t.l,t.opacity);if(t instanceof sn||(t=An(t)),!t)return new qn;if(t instanceof qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,u=i-a,s=(i+a)/2;return u?(o=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=s<.5?i+a:2-i-a,o*=60):u=s>0&&s<1?0:o,new qn(o,u,s,t.opacity)}function Xn(t,e,n,r){return 1===arguments.length?Dn(t):new qn(t,e,n,null==r?1:r)}function qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Fn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Nn(t,e,n,r,a){var i=t*t,o=i*t;return((1-3*t+3*i-o)*e+(4-6*i+3*o)*n+(1+3*t+3*i-3*o)*r+o*a)/6}on(sn,An,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:wn,formatHex:wn,formatHsl:_n,formatRgb:Pn,toString:Pn}),on(Bn,kn,un(sn,{brighter:function(t){return t=null==t?hn:Math.pow(hn,t),new Bn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new Bn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jn,formatHex:jn,formatRgb:Tn,toString:Tn})),on(qn,Xn,un(sn,{brighter:function(t){return t=null==t?hn:Math.pow(hn,t),new qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cn:Math.pow(cn,t),new qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new Bn(Fn(t>=240?t-240:t+120,a,r),Fn(t,a,r),Fn(t<120?t+240:t-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Yn=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[r],i=t[r+1],o=r>0?t[r-1]:2*a-i,u=r<e-1?t[r+2]:2*i-a;return Nn((n-r/e)*e,o,a,i,u)}},Ln=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),a=t[(r+e-1)%e],i=t[r%e],o=t[(r+1)%e],u=t[(r+2)%e];return Nn((n-r/e)*e,a,i,o,u)}},Rn=function(t){return function(){return t}};function Wn(t,e){return function(n){return t+n*e}}function zn(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Hn(t){return 1===(t=+t)?Gn:function(e,n){return n-e?zn(e,n,t):Rn(isNaN(e)?n:e)}}function Gn(t,e){var n=e-t;return n?Wn(t,n):Rn(isNaN(t)?e:t)}var Vn=function t(e){var n=Hn(e);function r(t,e){var r=n((t=kn(t)).r,(e=kn(e)).r),a=n(t.g,e.g),i=n(t.b,e.b),o=Gn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=i(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Qn(t){return function(e){var n,r,a=e.length,i=new Array(a),o=new Array(a),u=new Array(a);for(n=0;n<a;++n)r=kn(e[n]),i[n]=r.r||0,o[n]=r.g||0,u[n]=r.b||0;return i=t(i),o=t(o),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=o(t),r.b=u(t),r+""}}}Qn(Yn),Qn(Ln);var Zn=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,a=e.slice();return function(i){for(n=0;n<r;++n)a[n]=t[n]*(1-i)+e[n]*i;return a}};function $n(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var Un=function(t,e){return($n(e)?Zn:Kn)(t,e)};function Kn(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,i=new Array(a),o=new Array(r);for(n=0;n<a;++n)i[n]=ur(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return function(t){for(n=0;n<a;++n)o[n]=i[n](t);return o}}var Jn=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},tr=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},er=function(t,e){var n,r={},a={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=ur(t[n],e[n]):a[n]=e[n];return function(t){for(n in r)a[n]=r[n](t);return a}},nr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rr=new RegExp(nr.source,"g");function ar(t){return function(){return t}}function ir(t){return function(e){return t(e)+""}}var or=function(t,e){var n,r,a,i=nr.lastIndex=rr.lastIndex=0,o=-1,u=[],s=[];t+="",e+="";while((n=nr.exec(t))&&(r=rr.exec(e)))(a=r.index)>i&&(a=e.slice(i,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:tr(n,r)})),i=rr.lastIndex;return i<e.length&&(a=e.slice(i),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?ir(s[0].x):ar(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})},ur=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Rn(e):("number"===r?tr:"string"===r?(n=An(e))?(e=n,Vn):or:e instanceof An?Vn:e instanceof Date?Jn:$n(e)?Zn:Array.isArray(e)?Kn:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?er:tr)(t,e)},sr=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},cr=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},hr=[1,0,0,0,1,0,0,0,1];function lr(t,e,n){var r={},a=e.fromAttrs,i=e.toAttrs;if(!t.destroyed){var u;for(var s in i)if(!Object(o["isEqual"])(a[s],i[s]))if("path"===s){var c=i[s],l=a[s];c.length>l.length?(c=h(i[s]),l=h(a[s]),l=Y(l,c),l=W(l,c),e.fromAttrs.path=l,e.toAttrs.path=c):e.pathFormatted||(c=h(i[s]),l=h(a[s]),l=W(l,c),e.fromAttrs.path=l,e.toAttrs.path=c,e.pathFormatted=!0),r[s]=[];for(var f=0;f<c.length;f++){for(var p=c[f],d=l[f],g=[],v=0;v<p.length;v++)Object(o["isNumber"])(p[v])&&d&&Object(o["isNumber"])(d[v])?(u=ur(d[v],p[v]),g.push(u(n))):g.push(p[v]);r[s].push(g)}}else if("matrix"===s){var y=Un(a[s]||hr,i[s]||hr),m=y(n);r[s]=m}else sr(s)&&cr(i[s])?r[s]=i[s]:Object(o["isFunction"])(i[s])||(u=ur(a[s],i[s]),r[s]=u(n));t.attr(r)}}function fr(t,e,n){var r,a=e.startTime,o=e.delay;if(n<a+o||e._paused)return!1;var u=e.duration,s=e.easing;if(n=n-a-e.delay,e.repeat)r=n%u/u,r=i[s](r);else{if(r=n/u,!(r<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=i[s](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else lr(t,e,r);return!1}var pr=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this,a=!1;this.timer=ue((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if(t=r.animators[o],t.destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var u=e.length-1;u>=0;u--)n=e[u],a=fr(t,n,i),a&&(e.splice(u,1),a=!1,n.callback&&n.callback())}0===e.length&&r.removeAnimator(o)}var s=r.canvas.get("autoDraw");s||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),dr=pr,gr=40,vr=0,yr=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function mr(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function xr(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&ht(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var br=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&(e.dragging||e.currentShape)){var a=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,a,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,r=n.get("el");if(r!==t.target&&e.dragging){var a=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,a,null),e._emitEvent("dragend",t,a,e.draggingShape),e._afterDrag(e.draggingShape,a,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");it()(yr,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");it()(yr,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,a,i){var o=new H(t,e);return o.fromShape=a,o.toShape=i,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(r),o},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),a=this["_on"+t],i=!1;if(a)a.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(i=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(i||(this.currentShape=r),r&&!r.get("destroyed")){var u=this.canvas,s=u.get("el");s.style.cursor=r.attr("cursor")||u.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===vr&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var a=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(a.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,a){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),a||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),a&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(n.button===vr){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,a=this.currentShape,i=this.draggingShape;if(this.dragging)i&&this._emitDragoverEvents(n,t,a,e,!1),this._emitEvent("drag",n,t,i);else{var o=this.mousedownPoint;if(o){var u=this.mousedownShape,s=n.timeStamp,c=s-this.mousedownTimeStamp,h=o.clientX-t.clientX,l=o.clientY-t.clientY,f=h*h+l*l;c>120||f>gr?u&&u.get("draggable")?(i=this.mousedownShape,i.set("capture",!1),this.draggingShape=i,this.dragging=!0,this._emitEvent("dragstart",n,t,i),this.mousedownShape=null,this.mousedownPoint=null):!u&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,a,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,a,i){var o=this._getEventObj(t,e,n,r,a,i);if(r){o.shape=r,mr(r,t,o);var u=r.getParent();while(u)u.emitDelegation(t,o),o.propagationStopped||xr(u,t,o),o.propagationPath.push(u),u=u.getParent()}else{var s=this.canvas;mr(s,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Mr=br,wr="px",_r=Object(dt["a"])(),Pr=_r&&"firefox"===_r.name,Ar=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(G["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");J()(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new Mr({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new dr(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");ct&&(n.style.width=t+wr,n.style.height=e+wr)},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");ct&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(Pr&&!Z()(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Z()(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),r=n.x,a=n.y;return this.getPointByClient(r,a)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t-r.left,y:e-r.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),r=n.getBoundingClientRect();return{x:t+r.left,y:e+r.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(Qt),Cr=Ar,Sr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(G["__extends"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var a=n[r];e.add(a.clone())}return e},e}(Qt),Or=Sr,kr=function(t){function e(e){return t.call(this,e)||this}return Object(G["__extends"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.get("bbox");return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.get("canvasBox");return t||(t=this.calculateCanvasBBox(),this.set("canvasBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,a=t.maxX,i=t.maxY;if(e){var o=At(e,[t.minX,t.minY]),u=At(e,[t.maxX,t.minY]),s=At(e,[t.minX,t.maxY]),c=At(e,[t.maxX,t.maxY]);n=Math.min(o[0],u[0],s[0],c[0]),a=Math.max(o[0],u[0],s[0],c[0]),r=Math.min(o[1],u[1],s[1],c[1]),i=Math.max(o[1],u[1],s[1],c[1])}var h=this.attrs;if(h.shadowColor){var l=h.shadowBlur,f=void 0===l?0:l,p=h.shadowOffsetX,d=void 0===p?0:p,g=h.shadowOffsetY,v=void 0===g?0:g,y=n-f+d,m=a+f+d,x=r-f+v,b=i+f+v;n=Math.min(n,y),a=Math.max(a,m),r=Math.min(r,x),i=Math.max(i,b)}return{x:n,y:r,minX:n,minY:r,maxX:a,maxY:i,width:a-n,height:i-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),a=[t,e,1];a=this.invertFromMatrix(a);var i=a[0],o=a[1],u=this._isInBBox(i,o);if(this.isOnlyHitBox())return u;if(u&&!this.isClipped(i,o)){if(this.isInShape(i,o))return!0;if(n&&n.isHit(i,o))return!0;if(r&&r.isHit(i,o))return!0}return!1},e}(qt),Br=kr,jr=n("2a37"),Tr=jr.version},"6cac":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,a=e.r;return{x:n-a,y:r-a,width:2*a,height:2*a}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"71f5":function(t,e,n){"use strict";function r(t){var e=t.attr(),n=e.x,r=e.y,a=e.rx,i=e.ry;return{x:n-a,y:r-i,width:2*a,height:2*i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"72fb":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("01f9"),a=n("9ab4f");function i(t,e){var n;if(t)if(r.default(t)){for(var i=0,o=t.length;i<o;i++)if(n=e(t[i],i),!1===n)break}else if(a.default(t))for(var u in t)if(t.hasOwnProperty(u)&&(n=e(t[u],u),!1===n))break}e.default=i},"739e":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("28f9");e.default=function(t){return r.default(t)?"":t.toString()}},"79cf":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455");function a(t){for(var e=t.attr(),n=e.points,a=[],i=[],o=0;o<n.length;o++){var u=n[o];a.push(u[0]),i.push(u[1])}return r.getBBoxByArray(a,i)}e.default=a},"7d16":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("c3e2"),i=n("493b");function o(t,e,n,r,a){var i=1-a;return i*i*i*t+3*e*a*i*i+3*n*a*a*i+r*a*a*a}function u(t,e,n,r,a){var i=1-a;return 3*(i*i*(e-t)+2*i*a*(n-e)+a*a*(r-n))}function s(t,e,n,a){var i,o,u,s=-3*t+9*e-9*n+3*a,c=6*t-12*e+6*n,h=3*e-3*t,l=[];if(r.isNumberEqual(s,0))r.isNumberEqual(c,0)||(i=-h/c,i>=0&&i<=1&&l.push(i));else{var f=c*c-4*s*h;r.isNumberEqual(f,0)?l.push(-c/(2*s)):f>0&&(u=Math.sqrt(f),i=(-c+u)/(2*s),o=(-c-u)/(2*s),i>=0&&i<=1&&l.push(i),o>=0&&o<=1&&l.push(o))}return l}function c(t,e,n,r,i,u,s,c,h){var l=o(t,n,i,s,h),f=o(e,r,u,c,h),p=a.default.pointAt(t,e,n,r,h),d=a.default.pointAt(n,r,i,u,h),g=a.default.pointAt(i,u,s,c,h),v=a.default.pointAt(p.x,p.y,d.x,d.y,h),y=a.default.pointAt(d.x,d.y,g.x,g.y,h);return[[t,e,p.x,p.y,v.x,v.y,l,f],[l,f,y.x,y.y,g.x,g.y,s,c]]}function h(t,e,n,r,a,o,u,s,l){if(0===l)return i.snapLength([t,n,a,u],[e,r,o,s]);var f=c(t,e,n,r,a,o,u,s,.5),p=f[0],d=f[1];return p.push(l-1),d.push(l-1),h.apply(null,p)+h.apply(null,d)}e.default={extrema:s,box:function(t,e,n,a,i,u,c,h){for(var l=[t,c],f=[e,h],p=s(t,n,i,c),d=s(e,a,u,h),g=0;g<p.length;g++)l.push(o(t,n,i,c,p[g]));for(g=0;g<d.length;g++)f.push(o(e,a,u,h,d[g]));return r.getBBoxByArray(l,f)},length:function(t,e,n,r,a,i,o,u){return h(t,e,n,r,a,i,o,u,3)},nearestPoint:function(t,e,n,r,a,u,s,c,h,l,f){return i.nearestPoint([t,n,a,s],[e,r,u,c],h,l,o,f)},pointDistance:function(t,e,n,a,i,o,u,s,c,h,l){var f=this.nearestPoint(t,e,n,a,i,o,u,s,c,h,l);return r.distance(f.x,f.y,c,h)},interpolationAt:o,pointAt:function(t,e,n,r,a,i,u,s,c){return{x:o(t,n,a,u,c),y:o(e,r,i,s,c)}},divide:function(t,e,n,r,a,i,o,u,s){return c(t,e,n,r,a,i,o,u,s)},tangentAngle:function(t,e,n,a,i,o,s,c,h){var l=u(t,n,i,s,h),f=u(e,a,o,c,h);return r.piMod(Math.atan2(f,l))}}},"7ec0":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455");function a(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,i,o){var u=n,s=r;if(0===u||0===s)return{x:t,y:e};for(var c,h,l=i-t,f=o-e,p=Math.abs(l),d=Math.abs(f),g=u*u,v=s*s,y=Math.PI/4,m=0;m<4;m++){c=u*Math.cos(y),h=s*Math.sin(y);var x=(g-v)*Math.pow(Math.cos(y),3)/u,b=(v-g)*Math.pow(Math.sin(y),3)/s,M=c-x,w=h-b,_=p-x,P=d-b,A=Math.hypot(w,M),C=Math.hypot(P,_),S=A*Math.asin((M*P-w*_)/(A*C)),O=S/Math.sqrt(g+v-c*c-h*h);y+=O,y=Math.min(Math.PI/2,Math.max(0,y))}return{x:t+a(c,l),y:e+a(h,f)}},pointDistance:function(t,e,n,a,i,o){var u=this.nearestPoint(t,e,n,a,i,o);return r.distance(u.x,u.y,i,o)},pointAt:function(t,e,n,r,a){var i=2*Math.PI*a;return{x:t+n*Math.cos(i),y:e+r*Math.sin(i)}},tangentAngle:function(t,e,n,a,i){var o=2*Math.PI*i,u=Math.atan2(a*Math.cos(o),-n*Math.sin(o));return r.piMod(u)}}},"7f6b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n("516b"),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,i=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,u=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function s(t,e){var n=t.match(u);r.each(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var r,i,o=a.exec(n),u=parseFloat(o[1])%360*(Math.PI/180),c=o[2],h=e.getBBox();u>=0&&u<.5*Math.PI?(r={x:h.minX,y:h.minY},i={x:h.maxX,y:h.maxY}):.5*Math.PI<=u&&u<Math.PI?(r={x:h.maxX,y:h.minY},i={x:h.minX,y:h.maxY}):Math.PI<=u&&u<1.5*Math.PI?(r={x:h.maxX,y:h.maxY},i={x:h.minX,y:h.minY}):(r={x:h.minX,y:h.maxY},i={x:h.maxX,y:h.minY});var l=Math.tan(u),f=l*l,p=(i.x-r.x+l*(i.y-r.y))/(f+1)+r.x,d=l*(i.x-r.x+l*(i.y-r.y))/(f+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return s(c,g),g}function h(t,e,n){var r=i.exec(n),a=parseFloat(r[1]),o=parseFloat(r[2]),c=parseFloat(r[3]),h=r[4];if(0===c){var l=h.match(u);return l[l.length-1].split(":")[1]}var f=e.getBBox(),p=f.maxX-f.minX,d=f.maxY-f.minY,g=Math.sqrt(p*p+d*d)/2,v=t.createRadialGradient(f.minX+p*a,f.minY+d*o,0,f.minX+p/2,f.minY+d/2,c*g);return s(h,v),v}function l(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,a,i=o.exec(n),u=i[1],s=i[2];function c(){r=t.createPattern(a,u),e.set("pattern",r),e.set("patternSource",n)}switch(u){case"a":u="repeat";break;case"x":u="repeat-x";break;case"y":u="repeat-y";break;case"n":u="no-repeat";break;default:u="no-repeat"}return a=new Image,s.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=s,a.complete?c():(a.onload=c,a.src=a.src),r}function f(t,e,n){if(r.isString(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return h(t,e,n);if("p"===n[0])return l(t,e,n)}return n}}function p(t){var e=0,n=0,a=0,i=0;return r.isArray(t)?1===t.length?e=n=a=i=t[0]:2===t.length?(e=a=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],a=t[2]):(e=t[0],n=t[1],a=t[2],i=t[3]):e=n=a=i=t,[e,n,a,i]}e.parseLineGradient=c,e.parseRadialGradient=h,e.parsePattern=l,e.parseStyle=f,e.parseRadius=p},"7fa27":function(t,e,n){"use strict";n.r(e);var r="*",a=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=this._events[t]||[],o=this._events[r]||[],u=function(r){for(var a=r.length,i=0;i<a;i++)if(r[i]){var o=r[i],u=o.callback,s=o.once;s&&(r.splice(i,1),0===r.length&&delete e._events[t],a--,i--),u.apply(e,n)}};u(i),u(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,a=0;a<r;a++)n[a].callback===e&&(n.splice(a,1),r--,a--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["default"]=a},"83bc":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("5d64");function a(t){var e=t.attr(),n=e.x,a=e.y,i=e.text,o=e.fontSize,u=e.lineHeight,s=e.font;s||(s=r.assembleFont(e));var c,h=r.getTextWidth(i,s);if(h){var l=e.textAlign,f=e.textBaseline,p=r.getTextHeight(i,o,u),d={x:n,y:a-p};l&&("end"===l||"right"===l?d.x-=h:"center"===l&&(d.x-=h/2)),f&&("top"===f?d.y+=p:"middle"===f&&(d.y+=p/2)),c={x:d.x,y:d.y,width:h,height:p}}else c={x:n,y:a,width:0,height:0};return c}e.default=a},"83be":function(t,e,n){"use strict";function r(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},"83e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=1e-6;function a(t){return Math.abs(t)<r?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var r=!1,o=t.length;if(o<=2)return!1;for(var u=0;u<o;u++){var s=t[u],c=t[(u+1)%o];if(i(s,c,[e,n]))return!0;a(s[1]-n)>0!==a(c[1]-n)>0&&a(e-(n-s[1])*(s[0]-c[0])/(s[1]-c[1])-s[0])<0&&(r=!r)}return r}e.default=o},"90e6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("516b"),o=n("5d64"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=o.assembleFont(t)},e.prototype._setText=function(t){var e=null;i.isString(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,a=this.attrs,u=a.textBaseline,s=a.x,c=a.y,h=1*a.fontSize,l=this._getSpaceingY(),f=o.getTextHeight(a.text,a.fontSize,a.lineHeight);i.each(e,(function(e,a){r=c+a*(l+h)-f+h,"middle"===u&&(r+=f-h-(f-h)/2),"top"===u&&(r+=f-h),n?t.fillText(e,s,r):t.strokeText(e,s,r)}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,a=n.y,i=this.get("textArr");if(i)this._drawTextArr(t,i,e);else{var o=n.text;e?t.fillText(o,r,a):t.strokeText(o,r,a)}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,a=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(i.isNil(a)||1===a||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(i.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=u},"90f6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n("8937");function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function i(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(i(t,e))}function u(t,e){return t[0]===e[0]&&t[1]===e[1]}function s(t,e){var n=e[1],a=e[2],s=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),c=e[4],h=e[5],l=t[0],f=t[1],p=e[6],d=e[7],g=Math.cos(s)*(l-p)/2+Math.sin(s)*(f-d)/2,v=-1*Math.sin(s)*(l-p)/2+Math.cos(s)*(f-d)/2,y=g*g/(n*n)+v*v/(a*a);y>1&&(n*=Math.sqrt(y),a*=Math.sqrt(y));var m=n*n*(v*v)+a*a*(g*g),x=m?Math.sqrt((n*n*(a*a)-m)/m):1;c===h&&(x*=-1),isNaN(x)&&(x=0);var b=a?x*n*v/a:0,M=n?x*-a*g/n:0,w=(l+p)/2+Math.cos(s)*b-Math.sin(s)*M,_=(f+d)/2+Math.sin(s)*b+Math.cos(s)*M,P=[(g-b)/n,(v-M)/a],A=[(-1*g-b)/n,(-1*v-M)/a],C=o([1,0],P),S=o(P,A);return i(P,A)<=-1&&(S=Math.PI),i(P,A)>=1&&(S=0),0===h&&S>0&&(S-=2*Math.PI),1===h&&S<0&&(S+=2*Math.PI),{cx:w,cy:_,rx:u(t,[p,d])?0:n,ry:u(t,[p,d])?0:a,startAngle:C,endAngle:C+S,xRotation:s,arcFlag:c,sweepFlag:h}}e.isSamePoint=u,e.default=s},"92ca":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9705");Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.default}});var a=n("a120");Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return a.default}});var i=n("c3e8");Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return i.default}});var o=n("9b9d");Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return o.default}});var u=n("023a");Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return u.default}});var s=n("470f");Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return s.default}});var c=n("5833");Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return c.default}});var h=n("ff69");Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return h.default}});var l=n("ac0d");Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return l.default}});var f=n("64be");Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return f.default}});var p=n("90e6");Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return p.default}})},9351:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function a(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function i(t,e){return a(t)*a(e)?(t[0]*e[0]+t[1]*e[1])/(a(t)*a(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(i(t,e))}function u(t,e){var n=e[1],a=e[2],u=r.mod(r.toRadian(e[3]),2*Math.PI),s=e[4],c=e[5],h=t[0],l=t[1],f=e[6],p=e[7],d=Math.cos(u)*(h-f)/2+Math.sin(u)*(l-p)/2,g=-1*Math.sin(u)*(h-f)/2+Math.cos(u)*(l-p)/2,v=d*d/(n*n)+g*g/(a*a);v>1&&(n*=Math.sqrt(v),a*=Math.sqrt(v));var y=n*n*(g*g)+a*a*(d*d),m=y?Math.sqrt((n*n*(a*a)-y)/y):1;s===c&&(m*=-1),isNaN(m)&&(m=0);var x=a?m*n*g/a:0,b=n?m*-a*d/n:0,M=(h+f)/2+Math.cos(u)*x-Math.sin(u)*b,w=(l+p)/2+Math.sin(u)*x+Math.cos(u)*b,_=[(d-x)/n,(g-b)/a],P=[(-1*d-x)/n,(-1*g-b)/a],A=o([1,0],_),C=o(_,P);return i(_,P)<=-1&&(C=Math.PI),i(_,P)>=1&&(C=0),0===c&&C>0&&(C-=2*Math.PI),1===c&&C<0&&(C+=2*Math.PI),{cx:M,cy:w,rx:r.isSamePoint(t,[f,p])?0:n,ry:r.isSamePoint(t,[f,p])?0:a,startAngle:A,endAngle:A+C,xRotation:u,arcFlag:s,sweepFlag:c}}e.default=u},9705:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("6855"),i=n("516b"),o=n("31c4"),u=n("1322"),s=n("92ca"),c=n("c0e4"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=u.getBBoxMethod(t),r=n(this),a=e/2,i=r.x-a,o=r.y-a,s=r.x+r.width+a,c=r.y+r.height+a;return{x:i,minX:i,y:o,minY:o,width:r.width+e,height:r.height+e,maxX:s,maxY:c}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getClip();if(e){var r=n?o.getMergedRegion([this,n]):this.getCanvasBBox();if(!i.intersectRect(e,r))return void this.set("hasChanged",!1)}t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype._afterDraw=function(){var t=this.getCanvasBBox(),e=this.getCanvas();if(this.set("cacheCanvasBBox",t),e){var n=e.getViewRange();this.set("isInView",i.intersectRect(t,n))}this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,a=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(i.isNil(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(i.isNil(a)||1===a||(t.globalAlpha=a),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),a=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,a)},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(a.AbstractShape);e.default=h},"9ab4f":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e}},"9b9d":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("516b");function o(t){return t instanceof HTMLElement&&i.isString(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(i.isString(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):o(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,a=e.width,u=e.height,s=e.sx,c=e.sy,h=e.swidth,l=e.sheight,f=e.img;(f instanceof Image||o(f))&&(i.isNil(s)||i.isNil(c)||i.isNil(h)||i.isNil(l)?t.drawImage(f,n,r,a,u):t.drawImage(f,s,c,h,l,n,r,a,u))},e}(a.default);e.default=u},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return a})),n.d(e,"clone",(function(){return i})),n.d(e,"length",(function(){return o})),n.d(e,"fromValues",(function(){return u})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return h})),n.d(e,"subtract",(function(){return l})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return x})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return M})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"squaredLength",(function(){return _})),n.d(e,"negate",(function(){return P})),n.d(e,"inverse",(function(){return A})),n.d(e,"normalize",(function(){return C})),n.d(e,"dot",(function(){return S})),n.d(e,"cross",(function(){return O})),n.d(e,"lerp",(function(){return k})),n.d(e,"hermite",(function(){return B})),n.d(e,"bezier",(function(){return j})),n.d(e,"random",(function(){return T})),n.d(e,"transformMat4",(function(){return E})),n.d(e,"transformMat3",(function(){return I})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return X})),n.d(e,"rotateY",(function(){return q})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return N})),n.d(e,"zero",(function(){return Y})),n.d(e,"str",(function(){return L})),n.d(e,"exactEquals",(function(){return R})),n.d(e,"equals",(function(){return W})),n.d(e,"sub",(function(){return z})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return G})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return Q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return U}));var r=n("c94d");function a(){var t=new r["a"](3);return r["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function i(t){var e=new r["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function u(t,e,n){var a=new r["a"](3);return a[0]=t,a[1]=e,a[2]=n,a}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function h(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function l(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function y(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function x(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function M(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return Math.hypot(n,r,a)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],a=e[2]-t[2];return n*n+r*r+a*a}function _(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function P(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function A(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function C(t,e){var n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function S(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function O(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[0],u=n[1],s=n[2];return t[0]=a*s-i*u,t[1]=i*o-r*s,t[2]=r*u-a*o,t}function k(t,e,n,r){var a=e[0],i=e[1],o=e[2];return t[0]=a+r*(n[0]-a),t[1]=i+r*(n[1]-i),t[2]=o+r*(n[2]-o),t}function B(t,e,n,r,a,i){var o=i*i,u=o*(2*i-3)+1,s=o*(i-2)+i,c=o*(i-1),h=o*(3-2*i);return t[0]=e[0]*u+n[0]*s+r[0]*c+a[0]*h,t[1]=e[1]*u+n[1]*s+r[1]*c+a[1]*h,t[2]=e[2]*u+n[2]*s+r[2]*c+a[2]*h,t}function j(t,e,n,r,a,i){var o=1-i,u=o*o,s=i*i,c=u*o,h=3*i*u,l=3*s*o,f=s*i;return t[0]=e[0]*c+n[0]*h+r[0]*l+a[0]*f,t[1]=e[1]*c+n[1]*h+r[1]*l+a[1]*f,t[2]=e[2]*c+n[2]*h+r[2]*l+a[2]*f,t}function T(t,e){e=e||1;var n=2*r["c"]()*Math.PI,a=2*r["c"]()-1,i=Math.sqrt(1-a*a)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=a*e,t}function E(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,t[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,t[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,t}function I(t,e,n){var r=e[0],a=e[1],i=e[2];return t[0]=r*n[0]+a*n[3]+i*n[6],t[1]=r*n[1]+a*n[4]+i*n[7],t[2]=r*n[2]+a*n[5]+i*n[8],t}function D(t,e,n){var r=n[0],a=n[1],i=n[2],o=n[3],u=e[0],s=e[1],c=e[2],h=a*c-i*s,l=i*u-r*c,f=r*s-a*u,p=a*f-i*l,d=i*h-r*f,g=r*l-a*h,v=2*o;return h*=v,l*=v,f*=v,p*=2,d*=2,g*=2,t[0]=u+h+p,t[1]=s+l+d,t[2]=c+f+g,t}function X(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0],i[1]=a[1]*Math.cos(r)-a[2]*Math.sin(r),i[2]=a[1]*Math.sin(r)+a[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function q(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[2]*Math.sin(r)+a[0]*Math.cos(r),i[1]=a[1],i[2]=a[2]*Math.cos(r)-a[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function F(t,e,n,r){var a=[],i=[];return a[0]=e[0]-n[0],a[1]=e[1]-n[1],a[2]=e[2]-n[2],i[0]=a[0]*Math.cos(r)-a[1]*Math.sin(r),i[1]=a[0]*Math.sin(r)+a[1]*Math.cos(r),i[2]=a[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t}function N(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],u=e[2],s=Math.sqrt(n*n+r*r+a*a),c=Math.sqrt(i*i+o*o+u*u),h=s*c,l=h&&S(t,e)/h;return Math.acos(Math.min(Math.max(l,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function L(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function R(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function W(t,e){var n=t[0],a=t[1],i=t[2],o=e[0],u=e[1],s=e[2];return Math.abs(n-o)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-u)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-s)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(s))}var z=l,H=f,G=p,V=M,Q=w,Z=o,$=_,U=function(){var t=a();return function(e,n,r,a,i,o){var u,s;for(n||(n=3),r||(r=0),s=a?Math.min(a*n+r,e.length):e.length,u=r;u<s;u+=n)t[0]=e[u],t[1]=e[u+1],t[2]=e[u+2],i(t,t,o),e[u]=t[0],e[u+1]=t[1],e[u+2]=t[2];return e}}()},a120:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("516b"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var o=this.attr(),u=o.x,s=o.y,c=o.r,h=a/2,l=i.distance(u,s,t,e);return r&&n?l<=c+h:r?l<=c:!!n&&(l>=c-h&&l<=c+h)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,a=e.r;t.beginPath(),t.arc(n,r,a,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=o},a12b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("7ec0");function i(t,e,n,r,a,i,o,u){return-1*n*Math.cos(a)*Math.sin(u)-r*Math.sin(a)*Math.cos(u)}function o(t,e,n,r,a,i,o,u){return-1*n*Math.sin(a)*Math.sin(u)+r*Math.cos(a)*Math.cos(u)}function u(t,e,n){return Math.atan(-e/t*Math.tan(n))}function s(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function c(t,e,n,r,a,i){return n*Math.cos(a)*Math.cos(i)-r*Math.sin(a)*Math.sin(i)+t}function h(t,e,n,r,a,i){return n*Math.sin(a)*Math.cos(i)+r*Math.cos(a)*Math.sin(i)+e}function l(t,e,n,r){var a=Math.atan2(r*t,n*e);return(a+2*Math.PI)%(2*Math.PI)}function f(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function p(t,e,n){var r=Math.cos(n),a=Math.sin(n);return[t*r-e*a,t*a+e*r]}e.default={box:function(t,e,n,r,a,i,o){for(var l=u(n,r,a),f=1/0,p=-1/0,d=[i,o],g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var v=l+g;i<o?i<v&&v<o&&d.push(v):o<v&&v<i&&d.push(v)}for(g=0;g<d.length;g++){var y=c(t,e,n,r,a,d[g]);y<f&&(f=y),y>p&&(p=y)}var m=s(n,r,a),x=1/0,b=-1/0,M=[i,o];for(g=2*-Math.PI;g<=2*Math.PI;g+=Math.PI){var w=m+g;i<o?i<w&&w<o&&M.push(w):o<w&&w<i&&M.push(w)}for(g=0;g<M.length;g++){var _=h(t,e,n,r,a,M[g]);_<x&&(x=_),_>b&&(b=_)}return{x:f,y:x,width:p-f,height:b-x}},length:function(t,e,n,r,a,i,o){},nearestPoint:function(t,e,n,r,i,o,u,s,c){var h=p(s-t,c-e,-i),d=h[0],g=h[1],v=a.default.nearestPoint(0,0,n,r,d,g),y=l(n,r,v.x,v.y);y<o?v=f(n,r,o):y>u&&(v=f(n,r,u));var m=p(v.x,v.y,i);return{x:m[0]+t,y:m[1]+e}},pointDistance:function(t,e,n,a,i,o,u,s,c){var h=this.nearestPoint(t,e,n,a,s,c);return r.distance(h.x,h.y,s,c)},pointAt:function(t,e,n,r,a,i,o,u){var s=(o-i)*u+i;return{x:c(t,e,n,r,a,s),y:h(t,e,n,r,a,s)}},tangentAngle:function(t,e,n,a,u,s,c,h){var l=(c-s)*h+s,f=i(t,e,n,a,u,s,c,l),p=o(t,e,n,a,u,s,c,l);return r.piMod(Math.atan2(p,f))}}},ac0d:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("c3e2"),i=n("d6a3"),o=n("8937"),u=n("9705"),s=n("3dfb"),c=n("4dab"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,a=e.endArrow,i=n.length,o=n[0][0],u=n[0][1],s=n[i-1][0],h=n[i-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,u),a&&c.addEndArrow(this,t,n[i-2][0],n[i-2][1],s,h)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){if(!n||!a)return!1;var i=this.attr().points;return s.default(i,a,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,a=e.endArrow,i=n.length;if(!(n.length<2)){var o=n[0][0],u=n[0][1],s=n[i-1][0],h=n[i-1][1];if(r&&r.d){var l=c.getShortenOffset(o,u,n[1][0],n[1][1],r.d);o+=l.dx,u+=l.dy}if(a&&a.d){l=c.getShortenOffset(n[i-2][0],n[i-2][1],s,h,a.d);s-=l.dx,h-=l.dy}t.beginPath(),t.moveTo(o,u);for(var f=0;f<i-1;f++){var p=n[f];t.lineTo(p[0],p[1])}t.lineTo(s,h)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return o.isNil(e)?(this.set("totalLength",i.default.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),o.each(i,(function(r,a){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=a)})),a.default.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,u=[];o.each(t,(function(o,s){t[s+1]&&(n=[],n[0]=i/e,r=a.default.length(o[0],o[1],t[s+1][0],t[s+1][1]),i+=r,n[1]=i/e,u.push(n))})),this.set("tCache",u)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u.default);e.default=h},b455:function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function a(t){return Math.max.apply(null,t)}function i(t,e,n,r){var a=t-n,i=e-r;return Math.sqrt(a*a+i*i)}function o(t,e){return Math.abs(t-e)<.001}function u(t,e){var n=r(t),i=r(e),o=a(t),u=a(e);return{x:n,y:i,width:o-n,height:u-i}}function s(t,e,n,i){return{minX:r([t,n]),maxX:a([t,n]),minY:r([e,i]),maxY:a([e,i])}}function c(t){return(t+2*Math.PI)%(2*Math.PI)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=i,e.isNumberEqual=o,e.getBBoxByArray=u,e.getBBoxRange=s,e.piMod=c},bd06:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("f4c8");function a(t,e,n){var a=r.getOffScreenContext();return t.createPath(a),a.isPointInPath(e,n)}e.default=a},bd8b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString,a=function(t,e){return r.call(t)==="[object "+e+"]"};e.default=a},be6e:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("90f6"),a=n("90f6"),i=n("18f2");function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function u(t){t=(0,i.default)(t);for(var e=[],n=null,u=null,s=null,c=0,h=t.length,l=0;l<h;l++){var f=t[l];u=t[l+1];var p=f[0],d={command:p,prePoint:n,params:f,startTangent:null,endTangent:null};switch(p){case"M":s=[f[1],f[2]],c=l;break;case"A":var g=(0,r.default)(n,f);d["arcParams"]=g;break;default:break}if("Z"===p)n=s,u=t[c+1];else{var v=f.length;n=[f[v-2],f[v-1]]}u&&"Z"===u[0]&&(u=t[c],e[c]&&(e[c].prePoint=n)),d["currentPoint"]=n,e[c]&&(0,a.isSamePoint)(n,e[c].currentPoint)&&(e[c].prePoint=d.prePoint);var y=u?[u[u.length-2],u[u.length-1]]:null;d["nextPoint"]=y;var m=d.prePoint;if(["L","H","V"].includes(p))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===p){var x=[f[1],f[2]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]}else if("T"===p){var b=e[l-1];x=o(b.currentPoint,m);"Q"===b.command?(d.command="Q",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-x[0],n[1]-x[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===p){var M=[f[1],f[2]],w=[f[3],f[4]];d.startTangent=[m[0]-M[0],m[1]-M[1]],d.endTangent=[n[0]-w[0],n[1]-w[1]],0===d.startTangent[0]&&0===d.startTangent[1]&&(d.startTangent=[M[0]-w[0],M[1]-w[1]]),0===d.endTangent[0]&&0===d.endTangent[1]&&(d.endTangent=[w[0]-M[0],w[1]-M[1]])}else if("S"===p){b=e[l-1],M=o(b.currentPoint,m),w=[f[1],f[2]];"C"===b.command?(d.command="C",d.startTangent=[m[0]-M[0],m[1]-M[1]],d.endTangent=[n[0]-w[0],n[1]-w[1]]):(d.command="SQ",d.startTangent=[m[0]-w[0],m[1]-w[1]],d.endTangent=[n[0]-w[0],n[1]-w[1]])}else if("A"===p){var _=.001,P=d["arcParams"]||{},A=P.cx,C=void 0===A?0:A,S=P.cy,O=void 0===S?0:S,k=P.rx,B=void 0===k?0:k,j=P.ry,T=void 0===j?0:j,E=P.sweepFlag,I=void 0===E?0:E,D=P.startAngle,X=void 0===D?0:D,q=P.endAngle,F=void 0===q?0:q;0===I&&(_*=-1);var N=B*Math.cos(X-_)+C,Y=T*Math.sin(X-_)+O;d.startTangent=[N-s[0],Y-s[1]];var L=B*Math.cos(X+F+_)+C,R=T*Math.sin(X+F-_)+O;d.endTangent=[m[0]-L,m[1]-R]}e.push(d)}return e}e.default=u},c0e4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("6855"),i=n("92ca"),o=n("31c4"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.onCanvasChange=function(t){o.refreshElement(this,t)},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),o.applyAttrsToContext(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.getChildren();n.length&&(t.save(),o.applyAttrsToContext(t,this),this._applyClip(t,this.getClip()),o.drawChildren(t,n,e),t.restore()),this.set("cacheCanvasBBox",this.getCanvasBBox()),this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup);e.default=u},c31b:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("c3e2"),a=n("b455"),i=n("493b");function o(t,e,n,r){var a=1-r;return a*a*t+2*r*a*e+r*r*n}function u(t,e,n){var r=t+n-2*e;if(a.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function s(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function c(t,e,n,a,i,u,s){var c=o(t,n,i,s),h=o(e,a,u,s),l=r.default.pointAt(t,e,n,a,s),f=r.default.pointAt(n,a,i,u,s);return[[t,e,l.x,l.y,c,h],[c,h,f.x,f.y,i,u]]}function h(t,e,n,r,i,o,u){if(0===u)return(a.distance(t,e,n,r)+a.distance(n,r,i,o)+a.distance(t,e,i,o))/2;var s=c(t,e,n,r,i,o,.5),l=s[0],f=s[1];return l.push(u-1),f.push(u-1),h.apply(null,l)+h.apply(null,f)}e.default={box:function(t,e,n,r,i,s){var c=u(t,n,i)[0],h=u(e,r,s)[0],l=[t,i],f=[e,s];return void 0!==c&&l.push(o(t,n,i,c)),void 0!==h&&f.push(o(e,r,s,h)),a.getBBoxByArray(l,f)},length:function(t,e,n,r,a,i){return h(t,e,n,r,a,i,3)},nearestPoint:function(t,e,n,r,a,u,s,c){return i.nearestPoint([t,n,a],[e,r,u],s,c,o)},pointDistance:function(t,e,n,r,i,o,u,s){var c=this.nearestPoint(t,e,n,r,i,o,u,s);return a.distance(c.x,c.y,u,s)},interpolationAt:o,pointAt:function(t,e,n,r,a,i,u){return{x:o(t,n,a,u),y:o(e,r,i,u)}},divide:function(t,e,n,r,a,i,o){return c(t,e,n,r,a,i,o)},tangentAngle:function(t,e,n,r,i,o,u){var c=s(t,n,i,u),h=s(e,r,o,u),l=Math.atan2(h,c);return a.piMod(l)}}},c3e2:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("b455"),a=n("6711");e.default={box:function(t,e,n,a){return r.getBBoxByArray([t,n],[e,a])},length:function(t,e,n,a){return r.distance(t,e,n,a)},pointAt:function(t,e,n,r,a){return{x:(1-a)*t+a*n,y:(1-a)*e+a*r}},pointDistance:function(t,e,n,a,i,o){var u=(n-t)*(i-t)+(a-e)*(o-e);if(u<0)return r.distance(t,e,i,o);var s=(n-t)*(n-t)+(a-e)*(a-e);return u>s?r.distance(n,a,i,o):this.pointToLine(t,e,n,a,i,o)},pointToLine:function(t,e,n,r,i,o){var u=[n-t,r-e];if(a.exactEquals(u,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var s=[-u[1],u[0]];a.normalize(s,s);var c=[i-t,o-e];return Math.abs(a.dot(c,s))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},c3e8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705");function i(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return r.__assign(r.__assign({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var o=this.attr(),u=a/2,s=o.x,c=o.y,h=o.rx,l=o.ry,f=(t-s)*(t-s),p=(e-c)*(e-c);return r&&n?i(f,p,h+u,l+u)<=1:r?i(f,p,h,l)<=1:!!n&&(i(f,p,h-u,l-u)>=1&&i(f,p,h+u,l+u)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,a=e.rx,i=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,a,i,0,0,2*Math.PI,!1);else{var o=a>i?a:i,u=a>i?1:a/i,s=a>i?i/a:1;t.save(),t.translate(n,r),t.scale(u,s),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(a.default);e.default=o},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return i}));var r=1e-6,a="undefined"!==typeof Float32Array?Float32Array:Array,i=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},d080:function(t,e,n){"use strict";function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromArray=r,e.isBrowser="undefined"!==typeof window&&"undefined"!==typeof window.document;var a=n("28f9");e.isNil=a.default;var i=n("2047");e.isFunction=i.default;var o=n("61d8");e.isString=o.default;var u=n("9ab4f");e.isObject=u.default;var s=n("01f9");e.isArray=s.default;var c=n("503e");e.mix=c.default;var h=n("72fb");e.each=h.default;var l=n("3c5c");function f(t,e){if(t.isCanvas())return!0;var n=e.getParent(),r=!1;while(n){if(n===t){r=!0;break}n=n.getParent()}return r}function p(t){return t.cfg.visible&&t.cfg.capture}e.upperFirst=l.default,e.isParent=f,e.isAllowCapture=p},d40f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("516b");function a(t,e,n,a,i,o,u){var s=i/2;return r.inBox(t-s,e-s,n,i,o,u)||r.inBox(t+n-s,e-s,i,a,o,u)||r.inBox(t+s,e+a-s,n,i,o,u)||r.inBox(t-s,e+s,i,a,o,u)}e.default=a},d5f3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("3d7d");function a(t){var e=t.attr(),n=e.x1,a=e.y1,i=e.x2,o=e.y2,u=Math.min(n,i),s=Math.max(n,i),c=Math.min(a,o),h=Math.max(a,o),l={minX:u,maxX:s,minY:c,maxY:h};return l=r.mergeArrowBBox(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}e.default=a},d6a3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("2412"),a=n("b455");e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return a.getBBoxByArray(e,n)},length:function(t){return r.lengthOfSegment(t)},pointAt:function(t,e){return r.pointAtSegments(t,e)},pointDistance:function(t,e,n){return r.distanceAtSegment(t,e,n)},tangentAngle:function(t,e){return r.angleAtSegments(t,e)}}},df01:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return(t%e+e)%e};e.default=r},e3ad:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("1d5c"),a=/[a-z]/;function i(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function o(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var u=e[o][0];if(a.test(u)||["V","H","T","S"].indexOf(u)>=0){n=!0;break}}if(!n)return e;var s=[],c=0,h=0,l=0,f=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(c=+d[1],h=+d[2],l=c,f=h,p++,s[0]=["M",c,h]);o=p;for(var g=e.length;o<g;o++){var v=e[o],y=s[o-1],m=[],x=(u=v[0],u.toUpperCase());if(u!==x)switch(m[0]=x,x){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+c,m[7]=+v[7]+h;break;case"V":m[1]=+v[1]+h;break;case"H":m[1]=+v[1]+c;break;case"M":l=+v[1]+c,f=+v[2]+h,m[1]=l,m[2]=f;break;default:for(var b=1,M=v.length;b<M;b++)m[b]=+v[b]+(b%2?c:h)}else m=e[o];switch(x){case"Z":c=+l,h=+f;break;case"H":c=m[1],m=["L",c,h];break;case"V":h=m[1],m=["L",c,h];break;case"T":c=m[1],h=m[2];var w=i([y[1],y[2]],[y[3],y[4]]);m=["Q",w[0],w[1],c,h];break;case"S":c=m[m.length-2],h=m[m.length-1];var _=y.length,P=i([y[_-4],y[_-3]],[y[_-2],y[_-1]]);m=["C",P[0],P[1],m[1],m[2],c,h];break;case"M":l=m[m.length-2],f=m[m.length-1];break;default:c=m[m.length-2],h=m[m.length-1]}s.push(m)}return s}e.default=o},f105:function(t,e,n){"use strict";function r(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},f4c8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=null;function a(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}e.getOffScreenContext=a},ff69:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("9ab4"),a=n("9705"),i=n("3dfb"),o=n("83e4"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,a){var u=this.attr().points,s=!1;return n&&(s=i.default(u,a,t,e,!0)),!s&&r&&(s=o.default(u,t,e)),s},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var r=0;r<n.length;r++){var a=n[r];0===r?t.moveTo(a[0],a[1]):t.lineTo(a[0],a[1])}t.closePath()}},e}(a.default);e.default=u}}]);
|