You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
178 KiB
1 line
178 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[222],{"++4Y":function(t,e,r){var n=r("eRwv");t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"/TZh":function(t,e,r){var n=r("11yv"),i=n("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[i]=!1,"/./"[t](e)}catch(n){}}return!1}},"/dXc":function(t,e){var r=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?n:r)(e)}},"/pbl":function(t,e,r){var n=r("eE3R");t.exports=/web0s(?!.*chrome)/i.test(n)},"013W":function(t,e){var r="object"==typeof document&&document.all,n="undefined"==typeof r&&void 0!==r;t.exports={all:r,IS_HTMLDDA:n}},"0B/8":function(t,e,r){"use strict";r.d(e,"a",(function(){return w}));var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function a(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===w.CLOSE_PATH)e+="z";else if(n.type===w.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===w.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===w.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===w.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===w.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===w.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===w.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==w.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function o(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var u=Math.PI;function c(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,a=t.x,s=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var c=o([(e-a)/2,(r-s)/2],-t.xRot/180*u),l=c[0],h=c[1],f=Math.pow(l,2)/Math.pow(n,2)+Math.pow(h,2)/Math.pow(i,2);1<f&&(n*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=n,t.rY=i;var v=Math.pow(n,2)*Math.pow(h,2)+Math.pow(i,2)*Math.pow(l,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-v)/v)),g=n*h/i*p,d=-i*l/n*p,y=o([g,d],t.xRot/180*u);t.cX=y[0]+(e+a)/2,t.cY=y[1]+(r+s)/2,t.phi1=Math.atan2((h-d)/i,(l-g)/n),t.phi2=Math.atan2((-h-d)/i,(-l-g)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*u),t.phi1*=180/u,t.phi2*=180/u}function l(t,e,r){s(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var h,f=Math.PI/180;function v(t,e,r){return(1-r)*t+r*e}function p(t,e,r,n){return t+Math.cos(n/180*u)*e+Math.sin(n/180*u)*r}function g(t,e,r,n){var i=1e-6,a=e-t,o=r-e,s=3*a+3*(n-r)-6*o,u=6*(o-a),c=3*a;return Math.abs(s)<i?[-c/u]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(u/s,c/s,i)}function d(t,e,r,n,i){var a=1-i;return t*(a*a*a)+e*(3*a*a*i)+r*(3*a*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,a,o){return i.type&w.SMOOTH_CURVE_TO&&(i.type=w.CURVE_TO,t=isNaN(t)?a:t,e=isNaN(e)?o:e,i.x1=i.relative?a-t:2*a-t,i.y1=i.relative?o-e:2*o-e),i.type&w.CURVE_TO?(t=i.relative?a+i.x2:i.x2,e=i.relative?o+i.y2:i.y2):(t=NaN,e=NaN),i.type&w.SMOOTH_QUAD_TO&&(i.type=w.QUAD_TO,r=isNaN(r)?a:r,n=isNaN(n)?o:n,i.x1=i.relative?a-r:2*a-r,i.y1=i.relative?o-n:2*o-n),i.type&w.QUAD_TO?(r=i.relative?a+i.x1:i.x1,n=i.relative?o+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&w.SMOOTH_QUAD_TO&&(r.type=w.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&w.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var a=r.x1,o=r.y1;r.type=w.CURVE_TO,r.x1=((r.relative?0:n)+2*a)/3,r.y1=((r.relative?0:i)+2*o)/3,r.x2=(r.x+2*a)/3,r.y2=(r.y+2*o)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(a){if(isNaN(n)&&!(a.type&w.MOVE_TO))throw new Error("path must start with moveto");var o=t(a,e,r,n,i);return a.type&w.CLOSE_PATH&&(e=n,r=i),void 0!==a.x&&(e=a.relative?e+a.x:a.x),void 0!==a.y&&(r=a.relative?r+a.y:a.y),a.type&w.MOVE_TO&&(n=e,i=r),o}}function a(t,e,r,n,a,o){return s(t,e,r,n,a,o),i((function(i,s,u,c){var l=i.x1,h=i.x2,f=i.relative&&!isNaN(c),v=void 0!==i.x?i.x:f?0:s,p=void 0!==i.y?i.y:f?0:u;function g(t){return t*t}i.type&w.HORIZ_LINE_TO&&0!==e&&(i.type=w.LINE_TO,i.y=i.relative?0:u),i.type&w.VERT_LINE_TO&&0!==r&&(i.type=w.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*t+p*r+(f?0:a)),void 0!==i.y&&(i.y=v*e+i.y*n+(f?0:o)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(f?0:a)),void 0!==i.y1&&(i.y1=l*e+i.y1*n+(f?0:o)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(f?0:a)),void 0!==i.y2&&(i.y2=h*e+i.y2*n+(f?0:o));var d=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===d)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=w.LINE_TO;else{var y=i.xRot*Math.PI/180,m=Math.sin(y),b=Math.cos(y),x=1/g(i.rX),O=1/g(i.rY),S=g(b)*x+g(m)*O,k=2*m*b*(x-O),T=g(m)*x+g(b)*O,E=S*n*n-k*e*n+T*e*e,A=k*(t*n+e*r)-2*(S*r*n+T*t*e),C=S*r*r-k*t*r+T*t*t,P=(Math.atan2(A,E-C)+Math.PI)%Math.PI/2,j=Math.sin(P),N=Math.cos(P);i.rX=Math.abs(d)/Math.sqrt(E*g(N)+A*j*N+C*g(j)),i.rY=Math.abs(d)/Math.sqrt(E*g(j)-A*j*N+C*g(N)),i.xRot=180*P/Math.PI}return void 0!==i.sweepFlag&&0>d&&(i.sweepFlag=+!i.sweepFlag),i}))}function u(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),s(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,a,o,s){if(isNaN(o)&&!(n.type&w.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&w.HORIZ_LINE_TO&&(n.type=w.LINE_TO,n.y=n.relative?0:a),r&&n.type&w.VERT_LINE_TO&&(n.type=w.LINE_TO,n.x=n.relative?0:i),t&&n.type&w.CLOSE_PATH&&(n.type=w.LINE_TO,n.x=n.relative?o-i:o,n.y=n.relative?s-a:s),n.type&w.ARC&&(0===n.rX||0===n.rY)&&(n.type=w.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),s(t);var e=NaN,r=NaN,n=NaN,a=NaN;return i((function(i,o,s,u,c){var l=Math.abs,h=!1,f=0,v=0;if(i.type&w.SMOOTH_CURVE_TO&&(f=isNaN(e)?0:o-e,v=isNaN(r)?0:s-r),i.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(e=i.relative?o+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=NaN,r=NaN),i.type&w.SMOOTH_QUAD_TO?(n=isNaN(n)?o:2*o-n,a=isNaN(a)?s:2*s-a):i.type&w.QUAD_TO?(n=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(n=NaN,a=NaN),i.type&w.LINE_COMMANDS||i.type&w.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&w.CURVE_TO||i.type&w.SMOOTH_CURVE_TO||i.type&w.QUAD_TO||i.type&w.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-o,g=void 0===i.y?0:i.relative?i.y:i.y-s;f=isNaN(n)?void 0===i.x1?f:i.relative?i.x:i.x1-o:n-o,v=isNaN(a)?void 0===i.y1?v:i.relative?i.y:i.y1-s:a-s;var d=void 0===i.x2?0:i.relative?i.x:i.x2-o,y=void 0===i.y2?0:i.relative?i.y:i.y2-s;l(p)<=t&&l(g)<=t&&l(f)<=t&&l(v)<=t&&l(d)<=t&&l(y)<=t&&(h=!0)}return i.type&w.CLOSE_PATH&&l(o-u)<=t&&l(s-c)<=t&&(h=!0),h?[]:i}))},t.MATRIX=a,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),s(t,e,r);var n=Math.sin(t),i=Math.cos(t);return a(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),s(t,e),a(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),s(t,e),a(t,0,0,e,0,0)},t.SKEW_X=function(t){return s(t),a(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return s(t),a(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),a(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),a(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return w.ARC===t.type?function(t,e,r){var n,i,a,s;t.cX||c(t,e,r);for(var u=Math.min(t.phi1,t.phi2),l=Math.max(t.phi1,t.phi2)-u,h=Math.ceil(l/90),p=new Array(h),g=e,d=r,y=0;y<h;y++){var m=v(t.phi1,t.phi2,y/h),b=v(t.phi1,t.phi2,(y+1)/h),x=b-m,O=4/3*Math.tan(x*f/4),S=[Math.cos(m*f)-O*Math.sin(m*f),Math.sin(m*f)+O*Math.cos(m*f)],k=S[0],T=S[1],E=[Math.cos(b*f),Math.sin(b*f)],A=E[0],C=E[1],P=[A+O*Math.sin(b*f),C-O*Math.cos(b*f)],j=P[0],N=P[1];p[y]={relative:t.relative,type:w.CURVE_TO};var M=function(e,r){var n=o([e*t.rX,r*t.rY],t.xRot),i=n[0],a=n[1];return[t.cX+i,t.cY+a]};n=M(k,T),p[y].x1=n[0],p[y].y1=n[1],i=M(j,N),p[y].x2=i[0],p[y].y2=i[1],a=M(A,C),p[y].x=a[0],p[y].y=a[1],t.relative&&(p[y].x1-=g,p[y].y1-=d,p[y].x2-=g,p[y].y2-=d,p[y].x-=g,p[y].y-=d),g=(s=[p[y].x,p[y].y])[0],d=s[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,r){return t.relative&&(e=0,r=0),w.ARC===t.type&&c(t,e,r),t}))},t.CLONE=u,t.CALCULATE_BOUNDS=function(){var t=function(t){var e={};for(var r in t)e[r]=t[r];return e},a=e(),o=n(),s=r(),u=i((function(e,r,n){var i=s(o(a(t(e))));function h(t){t>u.maxX&&(u.maxX=t),t<u.minX&&(u.minX=t)}function f(t){t>u.maxY&&(u.maxY=t),t<u.minY&&(u.minY=t)}if(i.type&w.DRAWING_COMMANDS&&(h(r),f(n)),i.type&w.HORIZ_LINE_TO&&h(i.x),i.type&w.VERT_LINE_TO&&f(i.y),i.type&w.LINE_TO&&(h(i.x),f(i.y)),i.type&w.CURVE_TO){h(i.x),f(i.y);for(var v=0,y=g(r,i.x1,i.x2,i.x);v<y.length;v++)0<(V=y[v])&&1>V&&h(d(r,i.x1,i.x2,i.x,V));for(var m=0,b=g(n,i.y1,i.y2,i.y);m<b.length;m++)0<(V=b[m])&&1>V&&f(d(n,i.y1,i.y2,i.y,V))}if(i.type&w.ARC){h(i.x),f(i.y),c(i,r,n);for(var x=i.xRot/180*Math.PI,O=Math.cos(x)*i.rX,S=Math.sin(x)*i.rX,k=-Math.sin(x)*i.rY,T=Math.cos(x)*i.rY,E=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],A=E[0],C=E[1],P=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<A?n+360:n},j=0,N=l(k,-O,0).map(P);j<N.length;j++)(V=N[j])>A&&V<C&&h(p(i.cX,O,k,V));for(var M=0,R=l(T,-S,0).map(P);M<R.length;M++){var V;(V=R[M])>A&&V<C&&f(p(i.cY,S,T,V))}}return e}));return u.minX=1/0,u.maxX=-1/0,u.minY=1/0,u.maxY=-1/0,u}}(h||(h={}));var y,m=function(){function t(){}return t.prototype.round=function(t){return this.transform(h.ROUND(t))},t.prototype.toAbs=function(){return this.transform(h.TO_ABS())},t.prototype.toRel=function(){return this.transform(h.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(h.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(h.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(h.QT_TO_C())},t.prototype.aToC=function(){return this.transform(h.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(h.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(h.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(h.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(h.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,a){return this.transform(h.MATRIX(t,e,r,n,i,a))},t.prototype.skewX=function(t){return this.transform(h.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(h.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(h.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(h.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(h.ANNOTATE_ARCS())},t}(),b=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},x=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},O=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var a=t[i],o=!(this.curCommandType!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=x(a)&&("0"===this.curNumber&&"0"===a||o);if(!x(a)||s)if("e"!==a&&"E"!==a)if("-"!==a&&"+"!==a||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==a||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&-1!==this.curCommandType){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(u),this.curArgs.length===S[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?n({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):w.VERT_LINE_TO===this.curCommandType?n({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?n({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?n({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?n({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&n({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!b(a))if(","===a&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==a&&"-"!==a&&"."!==a)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==a&&"Z"!==a)if("h"===a||"H"===a)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===a;else if("v"===a||"V"===a)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===a;else if("m"===a||"M"===a)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===a;else if("l"===a||"L"===a)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===a;else if("c"===a||"C"===a)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===a;else if("s"===a||"S"===a)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===a;else if("q"===a||"Q"===a)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===a;else if("t"===a||"T"===a)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===a;else{if("a"!==a&&"A"!==a)throw new SyntaxError('Unexpected character "'+a+'" at index '+i+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===a}else e.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal="."===a}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var a=i[n],o=t(a);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return r}}})},e}(m),w=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=h.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return a(t)},e.parse=function(t){var e=new O,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(m),S=((y={})[w.MOVE_TO]=2,y[w.LINE_TO]=2,y[w.HORIZ_LINE_TO]=1,y[w.VERT_LINE_TO]=1,y[w.CLOSE_PATH]=0,y[w.QUAD_TO]=4,y[w.SMOOTH_QUAD_TO]=2,y[w.CURVE_TO]=6,y[w.SMOOTH_CURVE_TO]=4,y[w.ARC]=7,y)},"0r2v":function(t,e,r){var n=r("aLaa");t.exports=n([].slice)},"11yv":function(t,e,r){var n=r("Ks5W"),i=r("aNr2"),a=r("YELS"),o=r("MURR"),s=r("v/rq"),u=r("1Sr1"),c=n.Symbol,l=i("wks"),h=u?c["for"]||c:c&&c.withoutSetter||o;t.exports=function(t){return a(l,t)||(l[t]=s&&a(c,t)?c[t]:h("Symbol."+t)),l[t]}},"13vt":function(t,e,r){"use strict";var n=r("nCzB"),i=r("jybJ"),a=r("GxTi").CONSTRUCTOR,o=r("KLK4"),s=r("RYfq"),u=r("JTf3"),c=r("WaP5"),l=o&&o.prototype;if(n({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(t){return this.then(void 0,t)}}),!i&&u(o)){var h=s("Promise").prototype["catch"];l["catch"]!==h&&c(l,"catch",h,{unsafe:!0})}},"1Sr1":function(t,e,r){var n=r("v/rq");t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"1mOU":function(t,e,r){var n=r("66qH"),i=Function.prototype,a=i.apply,o=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(a):function(){return o.apply(a,arguments)})},"2YF/":function(t,e,r){var n=r("KLK4"),i=r("X/EZ"),a=r("GxTi").CONSTRUCTOR;t.exports=a||!i((function(t){n.all(t).then(void 0,(function(){}))}))},"2lHc":function(t,e,r){var n=r("m7zg"),i=r("JTf3"),a=r("SwuV"),o=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!a(s=n(r,t)))return s;if(i(r=t.valueOf)&&!a(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!a(s=n(r,t)))return s;throw o("Can't convert object to primitive value")}},"3DCu":function(t,e,r){var n=r("aLaa"),i=r("eRwv"),a=r("JTf3"),o=r("YELS"),s=r("++4Y"),u=r("N6FT").CONFIGURABLE,c=r("sNJV"),l=r("UQ6y"),h=l.enforce,f=l.get,v=String,p=Object.defineProperty,g=n("".slice),d=n("".replace),y=n([].join),m=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===g(v(e),0,7)&&(e="["+d(v(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!o(t,"name")||u&&t.name!==e)&&(s?p(t,"name",{value:e,configurable:!0}):t.name=e),m&&r&&o(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&o(r,"constructor")&&r.constructor?s&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=h(t);return o(n,"source")||(n.source=y(b,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return a(this)&&f(this).source||c(this)}),"toString")},"3Xd8":function(t,e,r){var n=r("aLaa");t.exports=n({}.isPrototypeOf)},"3fk+":function(t,e,r){var n=r("m7zg"),i=r("WxoH"),a=r("JTf3"),o=r("ba8b"),s=r("WMbf"),u=TypeError;t.exports=function(t,e){var r=t.exec;if(a(r)){var c=n(r,t,e);return null!==c&&i(c),c}if("RegExp"===o(t))return n(s,t,e);throw u("RegExp#exec called on incompatible receiver")}},"3n0U":function(t,e,r){var n=r("11yv"),i=r("AoAp"),a=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[a]===t)}},"4Qxg":function(t,e,r){var n=r("eRwv"),i=r("Ks5W"),a=i.RegExp;t.exports=n((function(){var t=a(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},"4YbN":function(t,e,r){var n=r("aLaa"),i=r("eRwv"),a=r("JTf3"),o=r("g8+u"),s=r("RYfq"),u=r("sNJV"),c=function(){},l=[],h=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,v=n(f.exec),p=!f.exec(c),g=function(t){if(!a(t))return!1;try{return h(c,l,t),!0}catch(e){return!1}},d=function(t){if(!a(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!v(f,u(t))}catch(e){return!0}};d.sham=!0,t.exports=!h||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?d:g},"4gdG":function(t,e,r){var n=r("Ks5W"),i=r("X4md"),a="__core-js_shared__",o=n[a]||i(a,{});t.exports=o},"4uGi":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5JCY":function(t,e,r){var n=r("N6FT").PROPER,i=r("eRwv"),a=r("noWC"),o="\u200b\x85\u180e";t.exports=function(t){return i((function(){return!!a[t]()||o[t]()!==o||n&&a[t].name!==t}))}},"5r2E":function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);e.f=a?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},"66qH":function(t,e,r){var n=r("eRwv");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"721z":function(t,e,r){var n=r("XaNE"),i=Object;t.exports=function(t){return i(n(t))}},"8HiI":function(t,e,r){var n=r("JTf3"),i=r("IL+x"),a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not a function")}},"8ODz":function(t,e,r){var n=r("++4Y"),i=r("FlRv"),a=r("4uGi");t.exports=n?function(t,e,r){return i.f(t,e,a(1,r))}:function(t,e,r){return t[e]=r,t}},"8Ys4":function(t,e,r){var n=r("n6S8"),i=r("tMNq"),a=r("oauk"),o=Array,s=Math.max;t.exports=function(t,e,r){for(var u=i(t),c=n(e,u),l=n(void 0===r?u:r,u),h=o(s(l-c,0)),f=0;c<l;c++,f++)a(h,f,t[c]);return h.length=f,h}},"8xe4":function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(e){return{error:!0,value:e}}}},"9Bi7":function(t,e,r){"use strict";var n=r("RYfq"),i=r("WhZm"),a=r("11yv"),o=r("++4Y"),s=a("species");t.exports=function(t){var e=n(t);o&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},A2dy:function(t,e,r){"use strict";var n=r("nCzB"),i=r("m7zg"),a=r("8HiI"),o=r("zFjv"),s=r("8xe4"),u=r("nvEG"),c=r("2YF/");n({target:"Promise",stat:!0,forced:c},{all:function(t){var e=this,r=o.f(e),n=r.resolve,c=r.reject,l=s((function(){var r=a(e.resolve),o=[],s=0,l=1;u(t,(function(t){var a=s++,u=!1;l++,i(r,e,t).then((function(t){u||(u=!0,o[a]=t,--l||n(o))}),c)})),--l||n(o)}));return l.error&&c(l.value),r.promise}})},Ai06:function(t,e,r){var n=r("ZpKI"),i=r("Yzn+");t.exports=Object.keys||function(t){return n(t,i)}},AoAp:function(t,e){t.exports={}},COGW:function(t,e,r){var n=r("SwuV"),i=r("ba8b"),a=r("11yv"),o=a("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},D0VN:function(t,e,r){"use strict";var n=r("nCzB"),i=r("m7zg"),a=r("8HiI"),o=r("zFjv"),s=r("8xe4"),u=r("nvEG"),c=r("2YF/");n({target:"Promise",stat:!0,forced:c},{race:function(t){var e=this,r=o.f(e),n=r.reject,c=s((function(){var o=a(e.resolve);u(t,(function(t){i(o,e,t).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},DXPr:function(t,e,r){"use strict";r.r(e),function(t){r.d(e,"AElement",(function(){return ae})),r.d(e,"AnimateColorElement",(function(){return $t})),r.d(e,"AnimateElement",(function(){return Jt})),r.d(e,"AnimateTransformElement",(function(){return te})),r.d(e,"BoundingBox",(function(){return Pt})),r.d(e,"CB1",(function(){return K})),r.d(e,"CB2",(function(){return Q})),r.d(e,"CB3",(function(){return Z})),r.d(e,"CB4",(function(){return J})),r.d(e,"Canvg",(function(){return ze})),r.d(e,"CircleElement",(function(){return zt})),r.d(e,"ClipPathElement",(function(){return we})),r.d(e,"DefsElement",(function(){return Wt})),r.d(e,"DescElement",(function(){return Pe})),r.d(e,"Document",(function(){return Le})),r.d(e,"Element",(function(){return wt})),r.d(e,"EllipseElement",(function(){return Ft})),r.d(e,"FeColorMatrixElement",(function(){return be})),r.d(e,"FeCompositeElement",(function(){return Ee})),r.d(e,"FeDropShadowElement",(function(){return ke})),r.d(e,"FeGaussianBlurElement",(function(){return Ae})),r.d(e,"FeMorphologyElement",(function(){return Te})),r.d(e,"FilterElement",(function(){return Se})),r.d(e,"Font",(function(){return Ct})),r.d(e,"FontElement",(function(){return ee})),r.d(e,"FontFaceElement",(function(){return re})),r.d(e,"GElement",(function(){return Gt})),r.d(e,"GlyphElement",(function(){return Rt})),r.d(e,"GradientElement",(function(){return qt})),r.d(e,"ImageElement",(function(){return le})),r.d(e,"LineElement",(function(){return Ht})),r.d(e,"LinearGradientElement",(function(){return Kt})),r.d(e,"MarkerElement",(function(){return Xt})),r.d(e,"MaskElement",(function(){return xe})),r.d(e,"Matrix",(function(){return gt})),r.d(e,"MissingGlyphElement",(function(){return ne})),r.d(e,"Mouse",(function(){return at})),r.d(e,"PSEUDO_ZERO",(function(){return X})),r.d(e,"Parser",(function(){return ht})),r.d(e,"PathElement",(function(){return Mt})),r.d(e,"PathParser",(function(){return jt})),r.d(e,"PatternElement",(function(){return Yt})),r.d(e,"Point",(function(){return it})),r.d(e,"PolygonElement",(function(){return Ut})),r.d(e,"PolylineElement",(function(){return Bt})),r.d(e,"Property",(function(){return rt})),r.d(e,"QB1",(function(){return $})),r.d(e,"QB2",(function(){return tt})),r.d(e,"QB3",(function(){return et})),r.d(e,"RadialGradientElement",(function(){return Qt})),r.d(e,"RectElement",(function(){return Dt})),r.d(e,"RenderedElement",(function(){return Nt})),r.d(e,"Rotate",(function(){return vt})),r.d(e,"SVGElement",(function(){return _t})),r.d(e,"SVGFontLoader",(function(){return fe})),r.d(e,"Scale",(function(){return pt})),r.d(e,"Screen",(function(){return ut})),r.d(e,"Skew",(function(){return dt})),r.d(e,"SkewX",(function(){return yt})),r.d(e,"SkewY",(function(){return mt})),r.d(e,"StopElement",(function(){return Zt})),r.d(e,"StyleElement",(function(){return ve})),r.d(e,"SymbolElement",(function(){return he})),r.d(e,"TRefElement",(function(){return ie})),r.d(e,"TSpanElement",(function(){return It})),r.d(e,"TextElement",(function(){return Vt})),r.d(e,"TextPathElement",(function(){return ue})),r.d(e,"TitleElement",(function(){return Ce})),r.d(e,"Transform",(function(){return Ot})),r.d(e,"Translate",(function(){return ft})),r.d(e,"UnknownElement",(function(){return St})),r.d(e,"UseElement",(function(){return pe})),r.d(e,"ViewPort",(function(){return nt})),r.d(e,"compressSpaces",(function(){return C})),r.d(e,"default",(function(){return ze})),r.d(e,"getSelectorSpecificity",(function(){return Y})),r.d(e,"normalizeAttributeName",(function(){return R})),r.d(e,"normalizeColor",(function(){return I})),r.d(e,"parseExternalUrl",(function(){return V})),r.d(e,"presets",(function(){return A})),r.d(e,"toNumbers",(function(){return N})),r.d(e,"trimLeft",(function(){return P})),r.d(e,"trimRight",(function(){return j})),r.d(e,"vectorMagnitude",(function(){return W})),r.d(e,"vectorsAngle",(function(){return q})),r.d(e,"vectorsRatio",(function(){return G}));r("g9jQ"),r("Lltv"),r("mdxj"),r("iWRt"),r("vrKp"),r("yD9w"),r("GVkW"),r("MNKV"),r("KKe4"),r("x8x8"),r("NCkV"),r("KLN8"),r("wOD2"),r("qJvV");var n=r("Nsem"),i=r("rAM+"),a=r("tS8v"),o=r("w4Tj"),s=r("oZsa"),u=r("oBTY"),c=r("yKVA"),l=r("879j"),h=r("fWQN"),f=r("mtLc"),v=r("tJVT"),p=r("yXPU"),g=r.n(p),d=r("lSNA"),y=r.n(d),m=r("xEkU"),b=r.n(m),x=r("WOGj"),O=r.n(x),w=r("0B/8"),S=r("Xp4B");function k(){k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(P){u=function(t,e,r){return t[e]=r}}function c(t,e,r,i){var a=e&&e.prototype instanceof f?e:f,o=Object.create(a.prototype),s=new E(i||[]);return n(o,"_invoke",{value:O(t,r,s)}),o}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(P){return{type:"throw",arg:P}}}t.wrap=c;var h={};function f(){}function v(){}function p(){}var g={};u(g,a,(function(){return this}));var d=Object.getPrototypeOf,y=d&&d(d(A([])));y&&y!==e&&r.call(y,a)&&(g=y);var m=p.prototype=f.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function i(n,a,o,s){var u=l(t[n],t,a);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){i("next",t,o,s)}),(function(t){i("throw",t,o,s)})):e.resolve(h).then((function(t){c.value=t,o(c)}),(function(t){return i("throw",t,o,s)}))}s(u.arg)}var a;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return C()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=w(o,r);if(s){if(s===h)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=l(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function w(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=l(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,h;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function A(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return v.prototype=p,n(m,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:v,configurable:!0}),v.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(x.prototype),u(x.prototype,o,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new x(c(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},b(m),u(m,s,"Generator"),u(m,a,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=A,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return o.type="throw",o.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,h):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function T(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(t){return g()(k().mark((function e(){var r,n,i;return k().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:return r=e.sent,e.next=5,r.blob();case 5:return n=e.sent,e.next=8,createImageBitmap(n);case 8:return i=e.sent,e.abrupt("return",i);case 10:case"end":return e.stop()}}),e)})))()}};return"undefined"===typeof DOMParser&&"undefined"!==typeof e||Reflect.deleteProperty(r,"DOMParser"),r}function E(t){var e=t.DOMParser,r=t.canvas,n=t.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:n,createCanvas:r.createCanvas,createImage:r.loadImage}}var A=Object.freeze({__proto__:null,offscreen:T,node:E});function C(t){return t.replace(/(?!\u3000)\s+/gm," ")}function P(t){return t.replace(/^[\n \t]+/,"")}function j(t){return t.replace(/[\n \t]+$/,"")}function N(t){var e=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var M=/^[A-Z-]+$/;function R(t){return M.test(t)?t.toLowerCase():t}function V(t){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return e[2]||e[3]||e[4]}function I(t){if(!t.startsWith("rgb"))return t;var e=3,r=t.replace(/\d+(\.\d+)?/g,(function(t,r){return e--&&r?String(Math.round(parseFloat(t))):t}));return r}var L=/(\[[^\]]+\])/g,_=/(#[^\s+>~.[:]+)/g,D=/(\.[^\s+>~.[:]+)/g,z=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,F=/(:[\w-]+\([^)]*\))/gi,H=/(:[^\s+>~.[:]+)/g,B=/([^\s+>~.[:]+)/g;function U(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function Y(t){var e=[0,0,0],r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),n=0,i=U(r,L),a=Object(v["a"])(i,2);r=a[0],n=a[1],e[1]+=n;var o=U(r,_),s=Object(v["a"])(o,2);r=s[0],n=s[1],e[0]+=n;var u=U(r,D),c=Object(v["a"])(u,2);r=c[0],n=c[1],e[1]+=n;var l=U(r,z),h=Object(v["a"])(l,2);r=h[0],n=h[1],e[2]+=n;var f=U(r,F),p=Object(v["a"])(f,2);r=p[0],n=p[1],e[1]+=n;var g=U(r,H),d=Object(v["a"])(g,2);r=d[0],n=d[1],e[1]+=n,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var y=U(r,B),m=Object(v["a"])(y,2);return r=m[0],n=m[1],e[2]+=n,e.join("")}var X=1e-8;function W(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function G(t,e){return(t[0]*e[0]+t[1]*e[1])/(W(t)*W(e))}function q(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(G(t,e))}function K(t){return t*t*t}function Q(t){return 3*t*t*(1-t)}function Z(t){return 3*t*(1-t)*(1-t)}function J(t){return(1-t)*(1-t)*(1-t)}function $(t){return t*t}function tt(t){return 2*t*(1-t)}function et(t){return(1-t)*(1-t)}var rt=function(){function t(e,r,n){Object(h["a"])(this,t),this.document=e,this.name=r,this.value=n,this.isNormalizedColor=!1}return Object(f["a"])(t,[{key:"split",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",r=this.document,n=this.name;return C(this.getString()).trim().split(e).map((function(e){return new t(r,n,e)}))}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&"undefined"!==typeof e}},{key:"isString",value:function(t){var e=this.value,r="string"===typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return"undefined"===typeof t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return"undefined"===typeof t?0:parseFloat(t);var e=this.value,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}},{key:"getString",value:function(t){return"undefined"===typeof t||this.hasValue()?"undefined"===typeof this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=I(e),this.value=e),e}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var r="boolean"===typeof t?[void 0,t]:[t],n=Object(v["a"])(r,2),i=n[0],a=n[1],o=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&a:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(i);default:var s=this.getNumber();return e&&s<1?s*o.computeSize(i):s}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}},{key:"getFillStyleDefinition",value:function(t,e){var r=this.getDefinition();if(!r)return null;if("function"===typeof r.createGradient)return r.createGradient(this.document.ctx,t,e);if("function"===typeof r.createPattern){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,t,e)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?t.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(e){for(var r=this.getColor(),n=r.length,i=0,a=0;a<n;a++)if(","===r[a]&&i++,3===i)break;if(e.hasValue()&&this.isString()&&3!==i){var o=new O.a(r);o.ok&&(o.alpha=e.getNumber(),r=o.toRGBA())}return new t(this.document,this.name,r)}}],[{key:"empty",value:function(e){return new t(e,"EMPTY","")}}]),t}();rt.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var nt=function(){function t(){Object(h["a"])(this,t),this.viewPorts=[]}return Object(f["a"])(t,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}},{key:"computeSize",value:function(t){return"number"===typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}]),t}(),it=function(){function t(e,r){Object(h["a"])(this,t),this.x=e,this.y=r}return Object(f["a"])(t,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],i=e*t[1]+r*t[3]+t[5];this.x=n,this.y=i}}],[{key:"parse",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=N(e),i=Object(v["a"])(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?r:s;return new t(o,u)}},{key:"parseScale",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=N(e),i=Object(v["a"])(n,2),a=i[0],o=void 0===a?r:a,s=i[1],u=void 0===s?o:s;return new t(o,u)}},{key:"parsePath",value:function(e){for(var r=N(e),n=r.length,i=[],a=0;a<n;a+=2)i.push(new t(r[a],r[a+1]));return i}}]),t}(),at=function(){function t(e){Object(h["a"])(this,t),this.screen=e,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return Object(f["a"])(t,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(!this.working){var t=this.screen,e=this.onClick,r=this.onMouseMove,n=t.ctx.canvas;n.onclick=e,n.onmousemove=r,this.working=!0}}},{key:"stop",value:function(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(this.working){var t=this.screen,e=this.events,r=this.eventElements,n=t.ctx.canvas.style;n&&(n.cursor=""),e.forEach((function(t,e){var n=t.run,i=r[e];while(i)n(i),i=i.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInPath&&e.isPointInPath(a,o)&&(n[i]=t)}))}}},{key:"checkBoundingBox",value:function(t,e){if(this.working&&e){var r=this.events,n=this.eventElements;r.forEach((function(r,i){var a=r.x,o=r.y;!n[i]&&e.isPointInBox(a,o)&&(n[i]=t)}))}}},{key:"mapXY",value:function(t,e){var r=this.screen,n=r.window,i=r.ctx,a=new it(t,e),o=i.canvas;while(o)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(a.x+=n.scrollX),n.scrollY&&(a.y+=n.scrollY),a}},{key:"onClick",value:function(t){var e=this.mapXY(t.clientX,t.clientY),r=e.x,n=e.y;this.events.push({type:"onclick",x:r,y:n,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY(t.clientX,t.clientY),r=e.x,n=e.y;this.events.push({type:"onmousemove",x:r,y:n,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),t}(),ot="undefined"!==typeof window?window:null,st="undefined"!==typeof fetch?fetch.bind(void 0):null,ut=function(){function t(e){Object(h["a"])(this,t);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.fetch,i=void 0===n?st:n,a=r.window,o=void 0===a?ot:a;this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new nt,this.mouse=new at(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=o,this.fetch=i}return Object(f["a"])(t,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every((function(t){return t()}));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,a=t.desiredWidth,o=t.height,s=t.desiredHeight,u=t.minX,c=void 0===u?0:u,l=t.minY,h=void 0===l?0:l,f=t.refX,p=t.refY,g=t.clip,d=void 0!==g&&g,y=t.clipX,m=void 0===y?0:y,b=t.clipY,x=void 0===b?0:b,O=C(n).replace(/^defer\s/,""),w=O.split(" "),S=Object(v["a"])(w,2),k=S[0],T=S[1],E=k||"xMidYMid",A=T||"meet",P=i/a,j=o/s,N=Math.min(P,j),M=Math.max(P,j),R=a,V=s;"meet"===A&&(R*=N,V*=N),"slice"===A&&(R*=M,V*=M);var I=new rt(e,"refX",f),L=new rt(e,"refY",p),_=I.hasValue()&&L.hasValue();if(_&&r.translate(-N*I.getPixels("x"),-N*L.getPixels("y")),d){var D=N*m,z=N*x;r.beginPath(),r.moveTo(D,z),r.lineTo(i,z),r.lineTo(i,o),r.lineTo(D,o),r.closePath(),r.clip()}if(!_){var F="meet"===A&&N===j,H="slice"===A&&M===j,B="meet"===A&&N===P,U="slice"===A&&M===P;E.startsWith("xMid")&&(F||H)&&r.translate(i/2-R/2,0),E.endsWith("YMid")&&(B||U)&&r.translate(0,o/2-V/2),E.startsWith("xMax")&&(F||H)&&r.translate(i-R,0),E.endsWith("YMax")&&(B||U)&&r.translate(0,o-V)}switch(!0){case"none"===E:r.scale(P,j);break;case"meet"===A:r.scale(N,N);break;case"slice"===A:r.scale(M,M);break}r.translate(-c,-h)}},{key:"start",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.enableRedraw,i=void 0!==n&&n,a=r.ignoreMouse,o=void 0!==a&&a,s=r.ignoreAnimation,u=void 0!==s&&s,c=r.ignoreDimensions,l=void 0!==c&&c,h=r.ignoreClear,f=void 0!==h&&h,v=r.forceRedraw,p=r.scaleWidth,g=r.scaleHeight,d=r.offsetX,y=r.offsetY,m=this.FRAMERATE,x=this.mouse,O=1e3/m;if(this.frameDuration=O,this.readyPromise=new Promise((function(t){e.resolveReady=t})),this.isReady()&&this.render(t,l,f,p,g,d,y),i){var w=Date.now(),S=w,k=0,T=function r(){w=Date.now(),k=w-S,k>=O&&(S=w-k%O,e.shouldUpdate(u,v)&&(e.render(t,l,f,p,g,d,y),x.runEvents())),e.intervalId=b()(r)};o||x.start(),this.intervalId=b()(T)}}},{key:"stop",value:function(){this.intervalId&&(b.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration,n=this.animations.reduce((function(t,e){return e.update(r)||t}),!1);if(n)return!0}return!("function"!==typeof e||!e())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function(t,e,r,n,i,a,o){var s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,h=this.isFirstRender,f=l.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(s,u);var v=t.getStyle("width"),p=t.getStyle("height");!e&&(h||"number"!==typeof n&&"number"!==typeof i)&&(v.hasValue()&&(f.width=v.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),p.hasValue()&&(f.height=p.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var g=f.clientWidth||f.width,d=f.clientHeight||f.height;if(e&&v.hasValue()&&p.hasValue()&&(g=v.getPixels("x"),d=p.getPixels("y")),c.setCurrent(g,d),"number"===typeof a&&t.getAttribute("x",!0).setValue(a),"number"===typeof o&&t.getAttribute("y",!0).setValue(o),"number"===typeof n||"number"===typeof i){var y=N(t.getAttribute("viewBox").getString()),m=0,b=0;if("number"===typeof n){var x=t.getStyle("width");x.hasValue()?m=x.getPixels("x")/n:isNaN(y[2])||(m=y[2]/n)}if("number"===typeof i){var O=t.getStyle("height");O.hasValue()?b=O.getPixels("y")/i:isNaN(y[3])||(b=y[3]/i)}m||(m=b),b||(b=m),t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i);var w=t.getStyle("transform",!0,!0);w.setValue("".concat(w.getString()," scale(").concat(1/m,", ").concat(1/b,")"))}r||l.clearRect(0,0,g,d),t.render(l),h&&(this.isFirstRender=!1)}}]),t}();ut.defaultWindow=ot,ut.defaultFetch=st;var ct=ut.defaultFetch,lt="undefined"!==typeof DOMParser?DOMParser:null,ht=function(){function t(){Object(h["a"])(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.fetch,n=void 0===r?ct:r,i=e.DOMParser,a=void 0===i?lt:i;this.fetch=n,this.DOMParser=a}return Object(f["a"])(t,[{key:"parse",value:function(t){var e=this;return g()(k().mark((function r(){return k().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!t.startsWith("<")){r.next=2;break}return r.abrupt("return",e.parseFromString(t));case 2:return r.abrupt("return",e.load(t));case 3:case"end":return r.stop()}}),r)})))()}},{key:"parseFromString",value:function(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:function(t){var e=this;return g()(k().mark((function r(){var n,i;return k().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.fetch(t);case 2:return n=r.sent,r.next=5,n.text();case 5:return i=r.sent,r.abrupt("return",e.parseFromString(i));case 7:case"end":return r.stop()}}),r)})))()}}]),t}(),ft=function(){function t(e,r){Object(h["a"])(this,t),this.type="translate",this.point=null,this.point=it.parse(r)}return Object(f["a"])(t,[{key:"apply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(r||0,n||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,n=e.y;t.translate(-1*r||0,-1*n||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,n=e.y;t.applyTransform([1,0,0,1,r||0,n||0])}}]),t}(),vt=function(){function t(e,r,n){Object(h["a"])(this,t),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=N(r);this.angle=new rt(e,"angle",i[0]),this.originX=n[0],this.originY=n[1],this.cx=i[1]||0,this.cy=i[2]||0}return Object(f["a"])(t,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,a=this.angle,o=e+n.getPixels("x"),s=r+i.getPixels("y");t.translate(o,s),t.rotate(a.getRadians()),t.translate(-o,-s)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,a=this.angle,o=e+n.getPixels("x"),s=r+i.getPixels("y");t.translate(o,s),t.rotate(-1*a.getRadians()),t.translate(-o,-s)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle,i=n.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),t}(),pt=function(){function t(e,r,n){Object(h["a"])(this,t),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=it.parseScale(r);0!==i.x&&0!==i.y||(i.x=X,i.y=X),this.scale=i,this.originX=n[0],this.originY=n[1]}return Object(f["a"])(t,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(r,n||r),t.translate(-o,-s)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,a=this.originY,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(1/r,1/n||r),t.translate(-o,-s)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,n=e.y;t.applyTransform([r||0,0,0,n||0,0,0])}}]),t}(),gt=function(){function t(e,r,n){Object(h["a"])(this,t),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=N(r),this.originX=n[0],this.originY=n[1]}return Object(f["a"])(t,[{key:"apply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=e.getPixels("x"),a=r.getPixels("y");t.translate(i,a),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-i,-a)}},{key:"unapply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=n[0],a=n[2],o=n[4],s=n[1],u=n[3],c=n[5],l=0,h=0,f=1,v=1/(i*(u*f-c*h)-a*(s*f-c*l)+o*(s*h-u*l)),p=e.getPixels("x"),g=r.getPixels("y");t.translate(p,g),t.transform(v*(u*f-c*h),v*(c*l-s*f),v*(o*h-a*f),v*(i*f-o*l),v*(a*c-o*u),v*(o*s-i*c)),t.translate(-p,-g)}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),t}(),dt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="skew",a.angle=null,a.angle=new rt(t,"angle",n),a}return Object(f["a"])(r)}(gt),yt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="skewX",a.matrix=[1,0,Math.tan(a.angle.getRadians()),1,0,0],a}return Object(f["a"])(r)}(dt),mt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="skewY",a.matrix=[1,Math.tan(a.angle.getRadians()),0,1,0,0],a}return Object(f["a"])(r)}(dt);function bt(t){return C(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function xt(t){var e=t.split("("),r=Object(v["a"])(e,2),n=r[0],i=r[1];return[n.trim(),i.trim().replace(")","")]}var Ot=function(){function t(e,r,n){var i=this;Object(h["a"])(this,t),this.document=e,this.transforms=[];var a=bt(r);a.forEach((function(e){if("none"!==e){var r=xt(e),a=Object(v["a"])(r,2),o=a[0],s=a[1],u=t.transformTypes[o];"undefined"!==typeof u&&i.transforms.push(new u(i.document,s,n))}}))}return Object(f["a"])(t,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length,n=r-1;n>=0;n--)e[n].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(e,r){var n=r.getStyle("transform",!1,!0),i=r.getStyle("transform-origin",!1,!0).split(),a=Object(v["a"])(i,2),o=a[0],s=a[1],u=void 0===s?o:s,c=[o,u];return n.hasValue()?new t(e,n.getString(),c):null}}]),t}();Ot.transformTypes={translate:ft,rotate:vt,scale:pt,matrix:gt,skewX:yt,skewY:mt};var wt=function(){function t(e,r){var n=this;Object(h["a"])(this,t);var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=i,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){if(Array.from(r.attributes).forEach((function(t){var r=R(t.nodeName);n.attributes[r]=new rt(e,r,t.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var a=this.getAttribute("style").getString().split(";").map((function(t){return t.trim()}));a.forEach((function(t){if(t){var r=t.split(":").map((function(t){return t.trim()})),i=Object(v["a"])(r,2),a=i[0],o=i[1];n.styles[a]=new rt(e,a,o)}}))}var o=e.definitions,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach((function(t){if(1===t.nodeType)n.addChild(t);else if(i&&(3===t.nodeType||4===t.nodeType)){var r=e.createTextNode(t);r.getText().length>0&&n.addChild(r)}}))}}return Object(f["a"])(t,[{key:"getAttribute",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.attributes[t];if(!r&&e){var n=new rt(this.document,t,"");return this.attributes[t]=n,n}return r||rt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return rt.empty(this.document)}},{key:"getStyle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!==i&&void 0!==i&&i.hasValue())return this.styles[t]=i,i;if(!r){var a=this.parent;if(a){var o=a.getStyle(t);if(null!==o&&void 0!==o&&o.hasValue())return o}}if(e){var s=new rt(this.document,t,"");return this.styles[t]=s,s}return n||rt.empty(this.document)}},{key:"render",value:function(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=Ot.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(t)}}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(t){this.children.forEach((function(e){e.render(t)}))}},{key:"addChild",value:function(e){var r=e instanceof t?e:this.document.createElement(e);r.parent=this,t.ignoreChildTypes.includes(r.type)||this.children.push(r)}},{key:"matchesSelector",value:function(t){var e,r=this.node;if("function"===typeof r.matches)return r.matches(t);var n=null===(e=r.getAttribute)||void 0===e?void 0:e.call(r,"class");return!(!n||""===n)&&n.split(" ").some((function(e){return".".concat(e)===t}))}},{key:"addStylesFromStyleDefinition",value:function(){var t=this.document,e=t.styles,r=t.stylesSpecificity;for(var n in e)if(!n.startsWith("@")&&this.matchesSelector(n)){var i=e[n],a=r[n];if(i)for(var o in i){var s=this.stylesSpecificity[o];"undefined"===typeof s&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}},{key:"removeStyles",value:function(t,e){var r=e.reduce((function(e,r){var n=t.getStyle(r);if(!n.hasValue())return e;var i=n.getString();return n.setValue(""),[].concat(Object(u["a"])(e),[[r,i]])}),[]);return r}},{key:"restoreStyles",value:function(t,e){e.forEach((function(e){var r=Object(v["a"])(e,2),n=r[0],i=r[1];t.getStyle(n,!0).setValue(i)}))}},{key:"isFirstChild",value:function(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}]),t}();wt.ignoreChildTypes=["title"];var St=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){return Object(h["a"])(this,r),e.call(this,t,n,i)}return Object(f["a"])(r)}(wt);function kt(t){var e=t.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function Tt(e){return"undefined"===typeof t?e:e.trim().split(",").map(kt).join(",")}function Et(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function At(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var Ct=function(){function t(e,r,n,i,a,o){Object(h["a"])(this,t);var s=o?"string"===typeof o?t.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=e||s.fontStyle,this.fontWeight=n||s.fontWeight,this.fontVariant=r||s.fontVariant}return Object(f["a"])(t,[{key:"toString",value:function(){return[Et(this.fontStyle),this.fontVariant,At(this.fontWeight),this.fontSize,Tt(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=arguments.length>1?arguments[1]:void 0,n="",i="",a="",o="",s="",u=C(e).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach((function(e){switch(!0){case!c.fontStyle&&t.styles.includes(e):"inherit"!==e&&(n=e),c.fontStyle=!0;break;case!c.fontVariant&&t.variants.includes(e):"inherit"!==e&&(i=e),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&t.weights.includes(e):"inherit"!==e&&(a=e),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if("inherit"!==e){var r=e.split("/"),u=Object(v["a"])(r,1);o=u[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==e&&(s+=e)}})),new t(n,i,a,o,s,r)}}]),t}();Ct.styles="normal|italic|oblique|inherit",Ct.variants="normal|small-caps|inherit",Ct.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var Pt=function(){function t(){Object(h["a"])(this,t);var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=n,this.y2=i,this.addPoint(e,r),this.addPoint(n,i)}return Object(f["a"])(t,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(t,e){"undefined"!==typeof t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){if(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;this.addPoint(e,r),this.addPoint(n,i)}}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var a=6*e-12*r+6*n,o=-3*e+9*r-9*n+3*i,s=3*r-3*e;if(0!==o){var u=Math.pow(a,2)-4*s*o;if(!(u<0)){var c=(-a+Math.sqrt(u))/(2*o);0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,n,i)):this.addY(this.sumCubic(c,e,r,n,i)));var l=(-a-Math.sqrt(u))/(2*o);0<l&&l<1&&(t?this.addX(this.sumCubic(l,e,r,n,i)):this.addY(this.sumCubic(l,e,r,n,i)))}}else{if(0===a)return;var h=-s/a;0<h&&h<1&&(t?this.addX(this.sumCubic(h,e,r,n,i)):this.addY(this.sumCubic(h,e,r,n,i)))}}},{key:"addBezierCurve",value:function(t,e,r,n,i,a,o,s){this.addPoint(t,e),this.addPoint(o,s),this.bezierCurveAdd(!0,t,r,i,o),this.bezierCurveAdd(!1,e,n,a,s)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,a){var o=t+2/3*(r-t),s=e+2/3*(n-e),u=o+1/3*(i-t),c=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,c,i,a)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,a=this.y2;return r<=t&&t<=i&&n<=e&&e<=a}}]),t}(),jt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t){var n;return Object(h["a"])(this,r),n=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),n.control=null,n.start=null,n.current=null,n.command=null,n.commands=n.commands,n.i=-1,n.previousCommand=null,n.points=[],n.angles=[],n}return Object(f["a"])(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new it(0,0),this.control=new it(0,0),this.current=new it(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){var t=this.i,e=this.commands;return t>=e.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",r=new it(this.command[t],this.command[e]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,e){var r=this.getPoint(t,e);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,e){var r=this.getPoint(t,e);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==w["a"].CURVE_TO&&t!==w["a"].SMOOTH_CURVE_TO&&t!==w["a"].QUAD_TO&&t!==w["a"].SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,i=this.control,a=i.x,o=i.y,s=new it(2*r-a,2*n-o);return s}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var e=this.current,r=e.x,n=e.y;t.x+=r,t.y+=n}return t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),r}(w["a"]),Nt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.modifiedEmSizeStack=!1,t}return Object(f["a"])(r,[{key:"calculateOpacity",value:function(){var t=1,e=this;while(e){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var o=r.getFillStyleDefinition(this,n);o&&(t.fillStyle=o)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var s=r.getColor();"inherit"!==s&&(t.fillStyle="none"===s?"rgba(0,0,0,0)":s)}if(n.hasValue()){var u=new rt(this.document,"fill",t.fillStyle).addOpacity(n).getColor();t.fillStyle=u}if(i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(t.strokeStyle=c)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var l=i.getString();"inherit"!==l&&(t.strokeStyle="none"===l?"rgba(0,0,0,0)":l)}if(a.hasValue()){var h=new rt(this.document,"stroke",t.strokeStyle).addOpacity(a).getString();t.strokeStyle=h}var f=this.getStyle("stroke-width");if(f.hasValue()){var v=f.getPixels();t.lineWidth=v||X}var p=this.getStyle("stroke-linecap"),g=this.getStyle("stroke-linejoin"),d=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(t.lineCap=p.getString()),g.hasValue()&&(t.lineJoin=g.getString()),d.hasValue()&&(t.miterLimit=d.getNumber()),y.hasValue()&&"none"!==y.getString()){var b=N(y.getString());"undefined"!==typeof t.setLineDash?t.setLineDash(b):"undefined"!==typeof t.webkitLineDash?t.webkitLineDash=b:"undefined"===typeof t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var x=m.getPixels();"undefined"!==typeof t.lineDashOffset?t.lineDashOffset=x:"undefined"!==typeof t.webkitLineDashOffset?t.webkitLineDashOffset=x:"undefined"!==typeof t.mozDashOffset&&(t.mozDashOffset=x)}}if(this.modifiedEmSizeStack=!1,"undefined"!==typeof t.font){var O=this.getStyle("font"),w=this.getStyle("font-style"),S=this.getStyle("font-variant"),k=this.getStyle("font-weight"),T=this.getStyle("font-size"),E=this.getStyle("font-family"),A=new Ct(w.getString(),S.getString(),k.getString(),T.hasValue()?"".concat(T.getPixels(!0),"px"):"",E.getString(),Ct.parse(O.getString(),t.font));w.setValue(A.fontStyle),S.setValue(A.fontVariant),k.setValue(A.fontWeight),T.setValue(A.fontSize),E.setValue(A.fontFamily),t.font=A.toString(),T.isPixels()&&(this.document.emSize=T.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(o["a"])(Object(s["a"])(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(wt),Mt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="path",a.pathParser=null,a.pathParser=new jt(a.getAttribute("d").getString()),a}return Object(f["a"])(r,[{key:"path",value:function(t){var e=this.pathParser,r=new Pt;e.reset(),t&&t.beginPath();while(!e.isEnd())switch(e.next().type){case jt.MOVE_TO:this.pathM(t,r);break;case jt.LINE_TO:this.pathL(t,r);break;case jt.HORIZ_LINE_TO:this.pathH(t,r);break;case jt.VERT_LINE_TO:this.pathV(t,r);break;case jt.CURVE_TO:this.pathC(t,r);break;case jt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case jt.QUAD_TO:this.pathQ(t,r);break;case jt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case jt.ARC:this.pathA(t,r);break;case jt.CLOSE_PATH:this.pathZ(t,r);break}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles(),n=e.map((function(t,e){return[t,r[e]]}));return n}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),o=this.getStyle("marker-end");if(i.isUrlDefinition()){var s=i.getDefinition(),u=Object(v["a"])(r[0],2),c=u[0],l=u[1];s.render(t,c,l)}if(a.isUrlDefinition())for(var h=a.getDefinition(),f=1;f<n;f++){var p=Object(v["a"])(r[f],2),g=p[0],d=p[1];h.render(t,g,d)}if(o.isUrlDefinition()){var y=o.getDefinition(),m=Object(v["a"])(r[n],2),b=m[0],x=m[1];y.render(t,b,x)}}}},{key:"pathM",value:function(t,e){var n=this.pathParser,i=r.pathM(n),a=i.point,o=a.x,s=a.y;n.addMarker(a),e.addPoint(o,s),t&&t.moveTo(o,s)}},{key:"pathL",value:function(t,e){var n=this.pathParser,i=r.pathL(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathH",value:function(t,e){var n=this.pathParser,i=r.pathH(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathV",value:function(t,e){var n=this.pathParser,i=r.pathV(n),a=i.current,o=i.point,s=o.x,u=o.y;n.addMarker(o,a),e.addPoint(s,u),t&&t.lineTo(s,u)}},{key:"pathC",value:function(t,e){var n=this.pathParser,i=r.pathC(n),a=i.current,o=i.point,s=i.controlPoint,u=i.currentPoint;n.addMarker(u,s,o),e.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,u.x,u.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,u.x,u.y)}},{key:"pathS",value:function(t,e){var n=this.pathParser,i=r.pathS(n),a=i.current,o=i.point,s=i.controlPoint,u=i.currentPoint;n.addMarker(u,s,o),e.addBezierCurve(a.x,a.y,o.x,o.y,s.x,s.y,u.x,u.y),t&&t.bezierCurveTo(o.x,o.y,s.x,s.y,u.x,u.y)}},{key:"pathQ",value:function(t,e){var n=this.pathParser,i=r.pathQ(n),a=i.current,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,o),e.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathT",value:function(t,e){var n=this.pathParser,i=r.pathT(n),a=i.current,o=i.controlPoint,s=i.currentPoint;n.addMarker(s,o,o),e.addQuadraticCurve(a.x,a.y,o.x,o.y,s.x,s.y),t&&t.quadraticCurveTo(o.x,o.y,s.x,s.y)}},{key:"pathA",value:function(t,e){var n=this.pathParser,i=r.pathA(n),a=i.currentPoint,o=i.rX,s=i.rY,u=i.sweepFlag,c=i.xAxisRotation,l=i.centp,h=i.a1,f=i.ad,v=1-u?1:-1,p=h+v*(f/2),g=new it(l.x+o*Math.cos(p),l.y+s*Math.sin(p));if(n.addMarkerAngle(g,p-v*Math.PI/2),n.addMarkerAngle(a,p-v*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(h)&&!isNaN(f)){var d=o>s?o:s,y=o>s?1:o/s,m=o>s?s/o:1;t.translate(l.x,l.y),t.rotate(c),t.scale(y,m),t.arc(0,0,d,h,h+f,Boolean(1-u)),t.scale(1/y,1/m),t.rotate(-c),t.translate(-l.x,-l.y)}}},{key:"pathZ",value:function(t,e){r.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){var e=t.current,r=t.getAsCurrentPoint();return{current:e,point:r}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,n=new it((r.relative?e.x:0)+r.x,e.y);return t.current=n,{current:e,point:n}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,n=new it(e.x,(r.relative?e.y:0)+r.y);return t.current=n,{current:e,point:n}}},{key:"pathC",value:function(t){var e=t.current,r=t.getPoint("x1","y1"),n=t.getAsControlPoint("x2","y2"),i=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:n,currentPoint:i}}},{key:"pathS",value:function(t){var e=t.current,r=t.getReflectedControlPoint(),n=t.getAsControlPoint("x2","y2"),i=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:n,currentPoint:i}}},{key:"pathQ",value:function(t){var e=t.current,r=t.getAsControlPoint("x1","y1"),n=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:n}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();t.control=r;var n=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:n}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,a=r.xRot,o=r.lArcFlag,s=r.sweepFlag,u=a*(Math.PI/180),c=t.getAsCurrentPoint(),l=new it(Math.cos(u)*(e.x-c.x)/2+Math.sin(u)*(e.y-c.y)/2,-Math.sin(u)*(e.x-c.x)/2+Math.cos(u)*(e.y-c.y)/2),h=Math.pow(l.x,2)/Math.pow(n,2)+Math.pow(l.y,2)/Math.pow(i,2);h>1&&(n*=Math.sqrt(h),i*=Math.sqrt(h));var f=(o===s?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(l.y,2)-Math.pow(i,2)*Math.pow(l.x,2))/(Math.pow(n,2)*Math.pow(l.y,2)+Math.pow(i,2)*Math.pow(l.x,2)));isNaN(f)&&(f=0);var v=new it(f*n*l.y/i,f*-i*l.x/n),p=new it((e.x+c.x)/2+Math.cos(u)*v.x-Math.sin(u)*v.y,(e.y+c.y)/2+Math.sin(u)*v.x+Math.cos(u)*v.y),g=q([1,0],[(l.x-v.x)/n,(l.y-v.y)/i]),d=[(l.x-v.x)/n,(l.y-v.y)/i],y=[(-l.x-v.x)/n,(-l.y-v.y)/i],m=q(d,y);return G(d,y)<=-1&&(m=Math.PI),G(d,y)>=1&&(m=0),{currentPoint:c,rX:n,rY:i,sweepFlag:s,xAxisRotation:u,centp:p,a1:g,ad:m}}},{key:"pathZ",value:function(t){t.current=t.start}}]),r}(Nt),Rt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="glyph",a.horizAdvX=a.getAttribute("horiz-adv-x").getNumber(),a.unicode=a.getAttribute("unicode").getString(),a.arabicForm=a.getAttribute("arabic-form").getString(),a}return Object(f["a"])(r)}(Mt),Vt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,new.target===r||i),a.type="text",a.x=0,a.y=0,a.measureCache=-1,a}return Object(f["a"])(r,[{key:"setContext",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(o["a"])(Object(s["a"])(r.prototype),"setContext",this).call(this,t,e);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(t.textBaseline=n)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(t){var e=this;if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var r=null;return this.children.forEach((function(n,i){var a=e.getChildBoundingBox(t,e,e,i);r?r.addBoundingBox(a):r=a})),r}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,r=Ct.parse(t.ctx.font).fontSize,n=e.getStyle("font-size").getNumber(r);return n}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new Pt(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n=e[r],i=null;if(t.isArabic){var a=e.length,o=e[r-1],s=e[r+1],u="isolated";if((0===r||" "===o)&&r<a-1&&" "!==s&&(u="terminal"),r>0&&" "!==o&&r<a-1&&" "!==s&&(u="medial"),r>0&&" "!==o&&(r===a-1||" "===s)&&(u="initial"),"undefined"!==typeof t.glyphs[n]){var c=t.glyphs[n];i=c instanceof Rt?c:c[u]}}else i=t.glyphs[n];return i||(i=t.missingGlyph),i}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),n=r.indexOf(e),i=r.length-1,a=C(e.textContent||"");return 0===n&&(a=P(a)),n===i&&(a=j(a)),a}},{key:"renderChildren",value:function(t){var e=this;if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((function(r,n){e.renderChild(t,e,e,n)}));var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var a=i.fontFace.unitsPerEm,o=Ct.parse(e.ctx.font),s=r.getStyle("font-size").getNumber(o.fontSize),u=r.getStyle("font-style").getString(o.fontStyle),c=s/a,l=i.isRTL?n.split("").reverse().join(""):n,h=N(r.getAttribute("dx").getString()),f=l.length,v=0;v<f;v++){var p=this.getGlyph(i,l,v);t.translate(this.x,this.y),t.scale(c,-c);var g=t.lineWidth;t.lineWidth=t.lineWidth*a/s,"italic"===u&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=s*(p.horizAdvX||i.horizAdvX)/a,"undefined"===typeof h[v]||isNaN(h[v])||(this.x+=h[v])}else{var d=this.x,y=this.y;t.fillStyle&&t.fillText(n,d,y),t.strokeStyle&&t.strokeText(n,d,y)}}},{key:"applyAnchoring",value:function(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,n=0;n="start"===e&&!r||"end"===e&&r?t.x-this.minX:"end"===e&&!r||"start"===e&&r?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}},{key:"adjustChildCoordinatesRecursive",value:function(t){var e=this;this.children.forEach((function(r,n){e.adjustChildCoordinatesRecursiveCore(t,e,e,n)})),this.applyAnchoring()}},{key:"adjustChildCoordinatesRecursiveCore",value:function(t,e,r,n){var i=r.children[n];i.children.length>0?i.children.forEach((function(r,n){e.adjustChildCoordinatesRecursiveCore(t,e,i,n)})):this.adjustChildCoordinates(t,e,r,n)}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!==typeof i.measureText)return i;t.save(),i.setContext(t,!0);var a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("dx"),u=i.getAttribute("dy"),c=i.getStyle("font-family").getDefinition(),l=Boolean(c)&&c.isRTL;0===n&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),o.hasValue()||o.setValue(i.getInheritedAttribute("y")),s.hasValue()||s.setValue(i.getInheritedAttribute("dx")),u.hasValue()||u.setValue(i.getInheritedAttribute("dy")));var h=i.measureText(t);return l&&(e.x-=h),a.hasValue()?(e.applyAnchoring(),i.x=a.getPixels("x"),s.hasValue()&&(i.x+=s.getPixels("x"))):(s.hasValue()&&(e.x+=s.getPixels("x")),i.x=e.x),e.x=i.x,l||(e.x+=h),o.hasValue()?(i.y=o.getPixels("y"),u.hasValue()&&(i.y+=u.getPixels("y"))):(u.hasValue()&&(e.y+=u.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+h),e.maxX=Math.max(e.maxX,i.x,i.x+h),i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(t,e,r,n){var i=r.children[n];if("function"!==typeof i.getBoundingBox)return null;var a=i.getBoundingBox(t);return a?(i.children.forEach((function(r,n){var o=e.getChildBoundingBox(t,e,i,n);a.addBoundingBox(o)})),a):null}},{key:"renderChild",value:function(t,e,r,n){var i=r.children[n];i.render(t),i.children.forEach((function(r,n){e.renderChild(t,e,i,n)}))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;var r=this.getText(),n=this.measureTargetText(t,r);return this.measureCache=n,n}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?e.split("").reverse().join(""):e,o=N(r.getAttribute("dx").getString()),s=a.length,u=0,c=0;c<s;c++){var l=this.getGlyph(n,a,c);u+=(l.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,"undefined"===typeof o[c]||isNaN(o[c])||(u+=o[c])}return u}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);var h=t.measureText(e),f=h.width;return this.clearContext(t),t.restore(),f}},{key:"getInheritedAttribute",value:function(t){var e=this;while(e instanceof r&&e.isFirstChild()){var n=e.parent.getAttribute(t);if(n.hasValue(!0))return n.getValue("0");e=e.parent}return null}}]),r}(Nt),It=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,new.target===r||i),a.type="tspan",a.text=a.children.length>0?"":a.getTextFromNode(),a}return Object(f["a"])(r,[{key:"getText",value:function(){return this.text}}]),r}(Vt),Lt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="textNode",t}return Object(f["a"])(r)}(It),_t=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="svg",t.root=!1,t}return Object(f["a"])(r,[{key:"setContext",value:function(t){var e,n=this.document,i=n.screen,a=n.window,u=t.canvas;if(i.setDefaults(t),u.style&&"undefined"!==typeof t.font&&a&&"undefined"!==typeof a.getComputedStyle){t.font=a.getComputedStyle(u).getPropertyValue("font");var c=new rt(n,"fontSize",Ct.parse(t.font).fontSize);c.hasValue()&&(n.rootEmSize=c.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var l=i.viewPort,h=l.width,f=l.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var v=this.getAttribute("refX"),p=this.getAttribute("refY"),g=this.getAttribute("viewBox"),d=g.hasValue()?N(g.getString()):null,y=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),m=0,b=0,x=0,O=0;d&&(m=d[0],b=d[1]),this.root||(h=this.getStyle("width").getPixels("x"),f=this.getStyle("height").getPixels("y"),"marker"===this.type&&(x=m,O=b,m=0,b=0)),i.viewPort.setCurrent(h,f),!this.node||this.parent&&"foreignObject"!==(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(o["a"])(Object(s["a"])(r.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),d&&(h=d[2],f=d[3]),n.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:h,height:i.viewPort.height,desiredHeight:f,minX:m,minY:b,refX:v.getValue(),refY:p.getValue(),clip:y,clipX:x,clipY:O}),d&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(h,f))}},{key:"clearContext",value:function(t){Object(o["a"])(Object(s["a"])(r.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),o=this.getAttribute("style"),s=n.getNumber(0),u=i.getNumber(0);if(r)if("string"===typeof r)this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var c=this.getAttribute("preserveAspectRatio");c.hasValue()&&c.setValue(c.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(t),i.setValue(e),a.hasValue()||a.setValue("0 0 ".concat(s||t," ").concat(u||e)),o.hasValue()){var l=this.getStyle("width"),h=this.getStyle("height");l.hasValue()&&l.setValue("".concat(t,"px")),h.hasValue()&&h.setValue("".concat(e,"px"))}}}]),r}(Nt),Dt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="rect",t}return Object(f["a"])(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),o=this.getAttribute("ry"),s=a.getPixels("x"),u=o.getPixels("y");if(a.hasValue()&&!o.hasValue()&&(u=s),o.hasValue()&&!a.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t){var c=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&n>0&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+c*s,r,e+n,r+u-c*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+c*u,e+n-s+c*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-c*s,r+i,e,r+i-u+c*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-c*u,e+s-c*s,r,e+s,r),t.closePath())}return new Pt(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Mt),zt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="circle",t}return Object(f["a"])(r,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&n>0&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new Pt(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Mt),Ft=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="ellipse",t}return Object(f["a"])(r,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return t&&r>0&&n>0&&(t.beginPath(),t.moveTo(i+r,a),t.bezierCurveTo(i+r,a+e*n,i+e*r,a+n,i,a+n),t.bezierCurveTo(i-e*r,a+n,i-r,a+e*n,i-r,a),t.bezierCurveTo(i-r,a-e*n,i-e*r,a-n,i,a-n),t.bezierCurveTo(i+e*r,a-n,i+r,a-e*n,i+r,a),t.closePath()),new Pt(i-r,a-n,i+r,a+n)}},{key:"getMarkers",value:function(){return null}}]),r}(Mt),Ht=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="line",t}return Object(f["a"])(r,[{key:"getPoints",value:function(){return[new it(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new it(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=Object(v["a"])(e,2),n=r[0],i=n.x,a=n.y,o=r[1],s=o.x,u=o.y;return t&&(t.beginPath(),t.moveTo(i,a),t.lineTo(s,u)),new Pt(i,a,s,u)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=Object(v["a"])(t,2),r=e[0],n=e[1],i=r.angleTo(n);return[[r,i],[n,i]]}}]),r}(Mt),Bt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="polyline",a.points=[],a.points=it.parsePath(a.getAttribute("points").getString()),a}return Object(f["a"])(r,[{key:"path",value:function(t){var e=this.points,r=Object(v["a"])(e,1),n=r[0],i=n.x,a=n.y,o=new Pt(i,a);return t&&(t.beginPath(),t.moveTo(i,a)),e.forEach((function(e){var r=e.x,n=e.y;o.addPoint(r,n),t&&t.lineTo(r,n)})),o}},{key:"getMarkers",value:function(){var t=this.points,e=t.length-1,r=[];return t.forEach((function(n,i){i!==e&&r.push([n,n.angleTo(t[i+1])])})),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),r}(Mt),Ut=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="polygon",t}return Object(f["a"])(r,[{key:"path",value:function(t){var e=Object(o["a"])(Object(s["a"])(r.prototype),"path",this).call(this,t),n=Object(v["a"])(this.points,1),i=n[0],a=i.x,u=i.y;return t&&(t.lineTo(a,u),t.closePath()),e}}]),r}(Bt),Yt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="pattern",t}return Object(f["a"])(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new _t(this.document,null);a.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new rt(this.document,"width","".concat(n,"px")),a.attributes.height=new rt(this.document,"height","".concat(i,"px")),a.attributes.transform=new rt(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var o=this.document.createCanvas(n,i),s=o.getContext("2d"),u=this.getAttribute("x"),c=this.getAttribute("y");u.hasValue()&&c.hasValue()&&s.translate(u.getPixels("x",!0),c.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var l=-1;l<=1;l++)for(var h=-1;h<=1;h++)s.save(),a.attributes.x=new rt(this.document,"x",l*o.width),a.attributes.y=new rt(this.document,"y",h*o.height),a.render(s),s.restore();var f=t.createPattern(o,"repeat");return f}}]),r}(wt),Xt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="marker",t}return Object(f["a"])(r,[{key:"render",value:function(t,e,r){if(e){var n=e.x,i=e.y,a=this.getAttribute("orient").getString("auto"),o=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(n,i),"auto"===a&&t.rotate(r),"strokeWidth"===o&&t.scale(t.lineWidth,t.lineWidth),t.save();var s=new _t(this.document,null);s.type=this.type,s.attributes.viewBox=new rt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.refX=new rt(this.document,"refX",this.getAttribute("refX").getValue()),s.attributes.refY=new rt(this.document,"refY",this.getAttribute("refY").getValue()),s.attributes.width=new rt(this.document,"width",this.getAttribute("markerWidth").getValue()),s.attributes.height=new rt(this.document,"height",this.getAttribute("markerHeight").getValue()),s.attributes.overflow=new rt(this.document,"overflow",this.getAttribute("overflow").getValue()),s.attributes.fill=new rt(this.document,"fill",this.getAttribute("fill").getColor("black")),s.attributes.stroke=new rt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),s.children=this.children,s.render(t),t.restore(),"strokeWidth"===o&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===a&&t.rotate(-r),t.translate(-n,-i)}}}]),r}(wt),Wt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="defs",t}return Object(f["a"])(r,[{key:"render",value:function(){}}]),r}(wt),Gt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="g",t}return Object(f["a"])(r,[{key:"getBoundingBox",value:function(t){var e=new Pt;return this.children.forEach((function(r){e.addBoundingBox(r.getBoundingBox(t))})),e}}]),r}(Nt),qt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var o;Object(h["a"])(this,r),o=e.call(this,t,n,i),o.attributesToInherit=["gradientUnits"],o.stops=[];var s=Object(a["a"])(o),u=s.stops,c=s.children;return c.forEach((function(t){"stop"===t.type&&u.push(t)})),o}return Object(f["a"])(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var a=i,o=a.stops,s=this.getGradient(t,e);if(!s)return this.addParentOpacity(r,o[o.length-1].color);if(o.forEach((function(t){s.addColorStop(t.offset,n.addParentOpacity(r,t.color))})),this.getAttribute("gradientTransform").hasValue()){var u=this.document,c=u.screen,l=c.MAX_VIRTUAL_PIXELS,h=c.viewPort,f=Object(v["a"])(h.viewPorts,1),p=f[0],g=new Dt(u,null);g.attributes.x=new rt(u,"x",-l/3),g.attributes.y=new rt(u,"y",-l/3),g.attributes.width=new rt(u,"width",l),g.attributes.height=new rt(u,"height",l);var d=new Gt(u,null);d.attributes.transform=new rt(u,"transform",this.getAttribute("gradientTransform").getValue()),d.children=[g];var y=new _t(u,null);y.attributes.x=new rt(u,"x",0),y.attributes.y=new rt(u,"y",0),y.attributes.width=new rt(u,"width",p.width),y.attributes.height=new rt(u,"height",p.height),y.children=[d];var m=u.createCanvas(p.width,p.height),b=m.getContext("2d");return b.fillStyle=s,y.render(b),b.createPattern(m,"no-repeat")}return s}},{key:"inheritStopContainer",value:function(t){var e=this;this.attributesToInherit.forEach((function(r){!e.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&e.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())}))}},{key:"addParentOpacity",value:function(t,e){if(t.hasValue()){var r=new rt(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}]),r}(wt),Kt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="linearGradient",a.attributesToInherit.push("x1","y1","x2","y2"),a}return Object(f["a"])(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),s=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===o&&a===s?null:t.createLinearGradient(i,a,o,s)}}]),r}(qt),Qt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="radialGradient",a.attributesToInherit.push("cx","cy","r","fx","fy","fr"),a}return Object(f["a"])(r,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=i,s=a;this.getAttribute("fx").hasValue()&&(o=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(s=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var u=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),c=this.getAttribute("fr").getPixels();return t.createRadialGradient(o,s,c,i,a,u)}}]),r}(qt),Zt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="stop";var o=Math.max(0,Math.min(1,a.getAttribute("offset").getNumber())),s=a.getStyle("stop-opacity"),u=a.getStyle("stop-color",!0);return""===u.getString()&&u.setValue("#000"),s.hasValue()&&(u=u.addOpacity(s)),a.offset=o,a.color=u.getColor(),a}return Object(f["a"])(r)}(wt),Jt=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var o;Object(h["a"])(this,r),o=e.call(this,t,n,i),o.type="animate",o.duration=0,o.initialValue=null,o.initialUnits="",o.removed=!1,o.frozen=!1,t.screen.animations.push(Object(a["a"])(o)),o.begin=o.getAttribute("begin").getMilliseconds(),o.maxDuration=o.begin+o.getAttribute("dur").getMilliseconds(),o.from=o.getAttribute("from"),o.to=o.getAttribute("to"),o.values=new rt(t,"values",null);var s=o.getAttribute("values");return s.hasValue()&&o.values.setValue(s.getString().split(";")),o}return Object(f["a"])(r,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,i=e.to,a=n.getNumber()+(i.getNumber()-n.getNumber())*r;return"%"===t&&(a*=100),"".concat(a).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),o=this.getAttribute("type");if(o.hasValue()){var s=o.getString();a="".concat(s,"(").concat(a,")")}r.setValue(a),i=!0}return i}},{key:"getProgress",value:function(){var t=this.document,e=this.values,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var n=r.progress*(e.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new rt(t,"from",parseFloat(e.getValue()[i])),r.to=new rt(t,"to",parseFloat(e.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}]),r}(wt),$t=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="animateColor",t}return Object(f["a"])(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new O.a(r.getColor()),a=new O.a(n.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*e,s=i.g+(a.g-i.g)*e,u=i.b+(a.b-i.b)*e;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}]),r}(Jt),te=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="animateTransform",t}return Object(f["a"])(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=N(r.getString()),a=N(n.getString()),o=i.map((function(t,r){var n=a[r];return t+(n-t)*e})).join(" ");return o}}]),r}(Jt),ee=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,o){var s;Object(h["a"])(this,r),s=e.call(this,t,n,o),s.type="font",s.glyphs={},s.horizAdvX=s.getAttribute("horiz-adv-x").getNumber();var u,c=t.definitions,l=Object(a["a"])(s),f=l.children,v=Object(i["a"])(f);try{for(v.s();!(u=v.n()).done;){var p=u.value;switch(p.type){case"font-face":s.fontFace=p;var g=p.getStyle("font-family");g.hasValue()&&(c[g.getString()]=Object(a["a"])(s));break;case"missing-glyph":s.missingGlyph=p;break;case"glyph":var d=p;d.arabicForm?(s.isRTL=!0,s.isArabic=!0,"undefined"===typeof s.glyphs[d.unicode]&&(s.glyphs[d.unicode]={}),s.glyphs[d.unicode][d.arabicForm]=d):s.glyphs[d.unicode]=d;break}}}catch(y){v.e(y)}finally{v.f()}return s}return Object(f["a"])(r,[{key:"render",value:function(){}}]),r}(wt),re=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="font-face",a.ascent=a.getAttribute("ascent").getNumber(),a.descent=a.getAttribute("descent").getNumber(),a.unitsPerEm=a.getAttribute("units-per-em").getNumber(),a}return Object(f["a"])(r)}(wt),ne=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="missing-glyph",t.horizAdvX=0,t}return Object(f["a"])(r)}(Mt),ie=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="tref",t}return Object(f["a"])(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}]),r}(Vt),ae=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="a";var o=n.childNodes,s=o[0],u=o.length>0&&Array.from(o).every((function(t){return 3===t.nodeType}));return a.hasText=u,a.text=u?a.getTextFromNode(s):"",a}return Object(f["a"])(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(o["a"])(Object(s["a"])(r.prototype),"renderChildren",this).call(this,t);var e=this.document,n=this.x,i=this.y,a=e.screen.mouse,u=new rt(e,"fontSize",Ct.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new Pt(n,i-u.getPixels("y"),n+this.measureText(t),i))}else if(this.children.length>0){var c=new Gt(this.document,null);c.children=this.children,c.parent=this,c.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}]),r}(Vt);function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(r),!0).forEach((function(e){y()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var ue=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="textPath",a.textWidth=0,a.textHeight=0,a.pathLength=-1,a.glyphInfo=null,a.letterSpacingCache=[],a.measuresCache=new Map([["",0]]);var o=a.getHrefAttribute().getDefinition();return a.text=a.getTextFromNode(),a.dataArray=a.parsePathData(o),a}return Object(f["a"])(r,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(t){var e=this.dataArray;t&&t.beginPath(),e.forEach((function(e){var r=e.type,n=e.points;switch(r){case jt.LINE_TO:t&&t.lineTo(n[0],n[1]);break;case jt.MOVE_TO:t&&t.moveTo(n[0],n[1]);break;case jt.CURVE_TO:t&&t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case jt.QUAD_TO:t&&t.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case jt.ARC:var i=Object(v["a"])(n,8),a=i[0],o=i[1],s=i[2],u=i[3],c=i[4],l=i[5],h=i[6],f=i[7],p=s>u?s:u,g=s>u?1:s/u,d=s>u?u/s:1;t&&(t.translate(a,o),t.rotate(h),t.scale(g,d),t.arc(0,0,p,c,c+l,Boolean(1-f)),t.scale(1/g,1/d),t.rotate(-h),t.translate(-a,-o));break;case jt.CLOSE_PATH:t&&t.closePath();break}}))}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),n=this.glyphInfo,i=t.fillStyle;"underline"===e&&t.beginPath(),n.forEach((function(n,i){var a=n.p0,o=n.p1,s=n.rotation,u=n.text;t.save(),t.translate(a.x,a.y),t.rotate(s),t.fillStyle&&t.fillText(u,0,0),t.strokeStyle&&t.strokeText(u,0,0),t.restore(),"underline"===e&&(0===i&&t.moveTo(a.x,a.y+r/8),t.lineTo(o.x,o.y+r/5))})),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,a,o,s,u){var c=a,l=this.measureText(t,s);" "===s&&"justify"===e&&r<n&&(l+=(n-r)/i),u>-1&&(c+=this.getLetterSpacingAt(u));var h=this.textHeight/20,f=this.getEquidistantPointOnPath(c,h,0),v=this.getEquidistantPointOnPath(c+l,h,0),p={p0:f,p1:v},g=f&&v?Math.atan2(v.y-f.y,v.x-f.x):0;if(o){var d=Math.cos(Math.PI/2+g)*o,y=Math.cos(-g)*o;p.p0=se(se({},f),{},{x:f.x+d,y:f.y+y}),p.p1=se(se({},v),{},{x:v.x+d,y:v.y+y})}return c+=l,{offset:c,segment:p,rotation:g}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,n=e||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(t,n);return r.set(n,i),i}},{key:"setTextData",value:function(t){var e=this;if(!this.glyphInfo){var r=this.getText(),n=r.split(""),i=r.split(" ").length-1,a=this.parent.getAttribute("dx").split().map((function(t){return t.getPixels("x")})),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),l=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(l=u.getPixels()):l=c.getPixels();var h=[],f=r.length;this.letterSpacingCache=h;for(var v=0;v<f;v++)h.push("undefined"!==typeof a[v]?a[v]:l);var p=h.reduce((function(t,e,r){return 0===r?0:t+e||0}),0),g=this.measureText(t),d=Math.max(g+p,0);this.textWidth=g,this.textHeight=this.getFontSize(),this.glyphInfo=[];var y=this.getPathLength(),m=this.getStyle("startOffset").getNumber(0)*y,b=0;"middle"!==s&&"center"!==s||(b=-d/2),"end"!==s&&"right"!==s||(b=-d),b+=m,n.forEach((function(r,a){var u=e.findSegmentToFitChar(t,s,d,y,i,b,o,r,a),c=u.offset,l=u.segment,h=u.rotation;b=c,l.p0&&l.p1&&e.glyphInfo.push({text:n[a],p0:l.p0,p1:l.p1,rotation:h})}))}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;r.reset();while(!r.isEnd()){var n=r.current,i=n?n.x:0,a=n?n.y:0,o=r.next(),s=o.type,u=[];switch(o.type){case jt.MOVE_TO:this.pathM(r,u);break;case jt.LINE_TO:s=this.pathL(r,u);break;case jt.HORIZ_LINE_TO:s=this.pathH(r,u);break;case jt.VERT_LINE_TO:s=this.pathV(r,u);break;case jt.CURVE_TO:this.pathC(r,u);break;case jt.SMOOTH_CURVE_TO:s=this.pathS(r,u);break;case jt.QUAD_TO:this.pathQ(r,u);break;case jt.SMOOTH_QUAD_TO:s=this.pathT(r,u);break;case jt.ARC:u=this.pathA(r);break;case jt.CLOSE_PATH:Mt.pathZ(r);break}o.type!==jt.CLOSE_PATH?e.push({type:s,points:u,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,u)}):e.push({type:jt.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=Mt.pathM(t).point,n=r.x,i=r.y;e.push(n,i)}},{key:"pathL",value:function(t,e){var r=Mt.pathL(t).point,n=r.x,i=r.y;return e.push(n,i),jt.LINE_TO}},{key:"pathH",value:function(t,e){var r=Mt.pathH(t).point,n=r.x,i=r.y;return e.push(n,i),jt.LINE_TO}},{key:"pathV",value:function(t,e){var r=Mt.pathV(t).point,n=r.x,i=r.y;return e.push(n,i),jt.LINE_TO}},{key:"pathC",value:function(t,e){var r=Mt.pathC(t),n=r.point,i=r.controlPoint,a=r.currentPoint;e.push(n.x,n.y,i.x,i.y,a.x,a.y)}},{key:"pathS",value:function(t,e){var r=Mt.pathS(t),n=r.point,i=r.controlPoint,a=r.currentPoint;return e.push(n.x,n.y,i.x,i.y,a.x,a.y),jt.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=Mt.pathQ(t),n=r.controlPoint,i=r.currentPoint;e.push(n.x,n.y,i.x,i.y)}},{key:"pathT",value:function(t,e){var r=Mt.pathT(t),n=r.controlPoint,i=r.currentPoint;return e.push(n.x,n.y,i.x,i.y),jt.QUAD_TO}},{key:"pathA",value:function(t){var e=Mt.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,a=e.xAxisRotation,o=e.centp,s=e.a1,u=e.ad;return 0===i&&u>0&&(u-=2*Math.PI),1===i&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,n,s,u,a,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,a=null,o=null,s=0;switch(r){case jt.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case jt.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case jt.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case jt.ARC:i=0;var u=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(u-l)<h&&(h=Math.abs(u-l)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-h;s>l;s-=h)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=u+h;s<l;s+=h)o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),i}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,s=(i-r)/(n-e+X),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:a,y:o+c};else if((o-r)/(a-e+X)===s)l={x:a+u,y:o+c};else{var h=0,f=0,v=this.getLineLength(e,r,n,i);if(v<X)return null;var p=(a-e)*(n-e)+(o-r)*(i-r);p/=v*v,h=e+p*(n-e),f=r+p*(i-r);var g=this.getLineLength(a,o,h,f),d=Math.sqrt(t*t-g*g);u=Math.sqrt(d*d/(1+s*s)),n<e&&(u*=-1),c=s*u,l={x:h+u,y:f+c}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||t-5e-5>e)return null;var a,o=this.dataArray,s=Object(i["a"])(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(!u||!(u.pathLength<5e-5||r+u.pathLength+5e-5<t)){var c=t-r,l=0;switch(u.type){case jt.LINE_TO:n=this.getPointOnLine(c,u.start.x,u.start.y,u.points[0],u.points[1],u.start.x,u.start.y);break;case jt.ARC:var h=u.points[4],f=u.points[5],v=u.points[4]+f;if(l=h+c/u.pathLength*f,f<0&&l<v||f>=0&&l>v)break;n=this.getPointOnEllipticalArc(u.points[0],u.points[1],u.points[2],u.points[3],l,u.points[6]);break;case jt.CURVE_TO:l=c/u.pathLength,l>1&&(l=1),n=this.getPointOnCubicBezier(l,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3],u.points[4],u.points[5]);break;case jt.QUAD_TO:l=c/u.pathLength,l>1&&(l=1),n=this.getPointOnQuadraticBezier(l,u.start.x,u.start.y,u.points[0],u.points[1],u.points[2],u.points[3]);break}if(n)return n;break}r+=u.pathLength}}catch(p){s.e(p)}finally{s.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((function(t,e){return e.pathLength>0?t+e.pathLength:t}),0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,a,o,s,u){var c=s*K(t)+a*Q(t)+n*Z(t)+e*J(t),l=u*K(t)+o*Q(t)+i*Z(t)+r*J(t);return{x:c,y:l}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,a,o){var s=a*$(t)+n*tt(t)+e*et(t),u=o*$(t)+i*tt(t)+r*et(t);return{x:s,y:u}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,a){var o=Math.cos(a),s=Math.sin(a),u={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:t+(u.x*o-u.y*s),y:e+(u.x*s+u.y*o)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,o=0;o<=r;o+=n){var s=this.getPointOnPath(o),u=this.getPointOnPath(o+n);s&&u&&(a+=this.getLineLength(s.x,s.y,u.x,u.y),a>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var n=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}]),r}(Vt),ce=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,le=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,i,o){var s;Object(h["a"])(this,r),s=e.call(this,t,i,o),s.type="image",s.loaded=!1;var u=s.getHrefAttribute().getString();if(!u)return Object(n["a"])(s);var c=u.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(u);return t.images.push(Object(a["a"])(s)),c?s.loadSvg(u):s.loadImage(u),s.isSvg=c,s}return Object(f["a"])(r,[{key:"loadImage",value:function(t){var e=this;return g()(k().mark((function r(){var n;return k().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.document.createImage(t);case 3:n=r.sent,e.image=n,r.next=10;break;case 7:r.prev=7,r.t0=r["catch"](0),console.error('Error while loading image "'.concat(t,'":'),r.t0);case 10:e.loaded=!0;case 11:case"end":return r.stop()}}),r,null,[[0,7]])})))()}},{key:"loadSvg",value:function(t){var e=this;return g()(k().mark((function r(){var n,i,a,o;return k().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=ce.exec(t),!n){r.next=6;break}i=n[5],"base64"===n[4]?e.image=atob(i):e.image=decodeURIComponent(i),r.next=19;break;case 6:return r.prev=6,r.next=9,e.document.fetch(t);case 9:return a=r.sent,r.next=12,a.text();case 12:o=r.sent,e.image=o,r.next=19;break;case 16:r.prev=16,r.t0=r["catch"](6),console.error('Error while loading image "'.concat(t,'":'),r.t0);case 19:e.loaded=!0;case 20:case"end":return r.stop()}}),r,null,[[6,16]])})))()}},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(n&&r&&o&&s){if(t.save(),t.translate(i,a),this.isSvg){var u=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});u.document.documentElement.parent=this,u.render()}else{var c=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o,desiredWidth:c.width,height:s,desiredHeight:c.height}),this.loaded&&("undefined"===typeof c.complete||c.complete)&&t.drawImage(c,0,0)}t.restore()}}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Pt(t,e,t+r,e+n)}}]),r}(Nt),he=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="symbol",t}return Object(f["a"])(r,[{key:"render",value:function(t){}}]),r}(Nt),fe=function(){function t(e){Object(h["a"])(this,t),this.document=e,this.loaded=!1,e.fonts.push(this)}return Object(f["a"])(t,[{key:"load",value:function(t,e){var r=this;return g()(k().mark((function n(){var i,a,o;return k().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,i=r.document,n.next=4,i.canvg.parser.load(e);case 4:a=n.sent,o=a.getElementsByTagName("font"),Array.from(o).forEach((function(e){var r=i.createElement(e);i.definitions[t]=r})),n.next=12;break;case 9:n.prev=9,n.t0=n["catch"](0),console.error('Error while loading font "'.concat(e,'":'),n.t0);case 12:r.loaded=!0;case 13:case"end":return n.stop()}}),n,null,[[0,9]])})))()}}]),t}(),ve=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="style";var o=C(Array.from(n.childNodes).map((function(t){return t.textContent})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach((function(e){var r=e.trim();if(r){var n=r.split("{"),i=n[0].split(","),a=n[1].split(";");i.forEach((function(e){var r=e.trim();if(r){var n=t.styles[r]||{};if(a.forEach((function(e){var r=e.indexOf(":"),i=e.substr(0,r).trim(),a=e.substr(r+1,e.length-r).trim();i&&a&&(n[i]=new rt(t,i,a))})),t.styles[r]=n,t.stylesSpecificity[r]=Y(r),"@font-face"===r){var i=n["font-family"].getString().replace(/"|'/g,""),o=n.src.getString().split(",");o.forEach((function(e){if(e.indexOf('format("svg")')>0){var r=V(e);r&&new fe(t).load(i,r)}}))}}}))}})),a}return Object(f["a"])(r)}(wt);ve.parseExternalUrl=V;var pe=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="use",t}return Object(f["a"])(r,[{key:"setContext",value:function(t){Object(o["a"])(Object(s["a"])(r.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),n=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),n.hasValue()&&t.translate(0,n.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e=this.document,r=this.element;if(r){var n=r;if("symbol"===r.type&&(n=new _t(e,null),n.attributes.viewBox=new rt(e,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new rt(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new rt(e,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new rt(e,"opacity",this.calculateOpacity())),"svg"===n.type){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new rt(e,"width",i.getString())),a.hasValue()&&(n.attributes.height=new rt(e,"height",a.getString()))}var o=n.parent;n.parent=this,n.render(t),n.parent=o}}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return Ot.fromElement(t,e)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(Nt);function ge(t,e,r,n,i,a){return t[r*n*4+4*e+a]}function de(t,e,r,n,i,a,o){t[r*n*4+4*e+a]=o}function ye(t,e,r){var n=t[e];return n*r}function me(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var be=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="feColorMatrix";var o=N(a.getAttribute("values").getString());switch(a.getAttribute("type").getString("matrix")){case"saturate":var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var u=o[0]*Math.PI/180;o=[me(u,.213,.787,-.213),me(u,.715,-.715,-.715),me(u,.072,-.072,.928),0,0,me(u,.213,-.213,.143),me(u,.715,.285,.14),me(u,.072,-.072,-.283),0,0,me(u,.213,-.213,-.787),me(u,.715,-.715,.715),me(u,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return a.matrix=o,a.includeOpacity=a.getAttribute("includeOpacity").hasValue(),a}return Object(f["a"])(r,[{key:"apply",value:function(t,e,r,n,i){for(var a=this.includeOpacity,o=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=ge(s.data,c,u,n,i,0),h=ge(s.data,c,u,n,i,1),f=ge(s.data,c,u,n,i,2),v=ge(s.data,c,u,n,i,3),p=ye(o,0,l)+ye(o,1,h)+ye(o,2,f)+ye(o,3,v)+ye(o,4,1),g=ye(o,5,l)+ye(o,6,h)+ye(o,7,f)+ye(o,8,v)+ye(o,9,1),d=ye(o,10,l)+ye(o,11,h)+ye(o,12,f)+ye(o,13,v)+ye(o,14,1),y=ye(o,15,l)+ye(o,16,h)+ye(o,17,f)+ye(o,18,v)+ye(o,19,1);a&&(p=0,g=0,d=0,y*=v/255),de(s.data,c,u,n,i,0,p),de(s.data,c,u,n,i,1,g),de(s.data,c,u,n,i,2,d),de(s.data,c,u,n,i,3,y)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),r}(wt),xe=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="mask",t}return Object(f["a"])(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new Pt;this.children.forEach((function(e){u.addBoundingBox(e.getBoundingBox(t))})),i=Math.floor(u.x1),a=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,r.ignoreStyles),l=n.createCanvas(i+o,a+s),h=l.getContext("2d");n.screen.setDefaults(h),this.renderChildren(h),new be(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(h,0,0,i+o,a+s);var f=n.createCanvas(i+o,a+s),v=f.getContext("2d");n.screen.setDefaults(v),e.render(v),v.globalCompositeOperation="destination-in",v.fillStyle=h.createPattern(l,"no-repeat"),v.fillRect(0,0,i+o,a+s),t.fillStyle=v.createPattern(f,"no-repeat"),t.fillRect(0,0,i+o,a+s),this.restoreStyles(e,c)}},{key:"render",value:function(t){}}]),r}(wt);xe.ignoreStyles=["mask","transform","clip-path"];var Oe=function(){},we=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="clipPath",t}return Object(f["a"])(r,[{key:"apply",value:function(t){var e=this.document,r=Reflect.getPrototypeOf(t),n=t.beginPath,i=t.closePath;r&&(r.beginPath=Oe,r.closePath=Oe),Reflect.apply(n,t,[]),this.children.forEach((function(n){if("undefined"!==typeof n.path){var a="undefined"!==typeof n.elementTransform?n.elementTransform():null;a||(a=Ot.fromElement(e,n)),a&&a.apply(t),n.path(t),r&&(r.closePath=i),a&&a.unapply(t)}})),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=n,r.closePath=i)}},{key:"render",value:function(t){}}]),r}(wt),Se=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="filter",t}return Object(f["a"])(r,[{key:"apply",value:function(t,e){var n=this.document,i=this.children,a=e.getBoundingBox(t);if(a){var o=0,s=0;i.forEach((function(t){var e=t.extraFilterDistance||0;o=Math.max(o,e),s=Math.max(s,e)}));var u=Math.floor(a.width),c=Math.floor(a.height),l=u+2*o,h=c+2*s;if(!(l<1||h<1)){var f=Math.floor(a.x),v=Math.floor(a.y),p=this.removeStyles(e,r.ignoreStyles),g=n.createCanvas(l,h),d=g.getContext("2d");n.screen.setDefaults(d),d.translate(-f+o,-v+s),e.render(d),i.forEach((function(t){"function"===typeof t.apply&&t.apply(d,0,0,l,h)})),t.drawImage(g,0,0,l,h,f-o,v-s,l,h),this.restoreStyles(e,p)}}}},{key:"render",value:function(t){}}]),r}(wt);Se.ignoreStyles=["filter","transform","clip-path"];var ke=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="feDropShadow",a.addStylesFromStyleDefinition(),a}return Object(f["a"])(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(wt),Te=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="feMorphology",t}return Object(f["a"])(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(wt),Ee=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="feComposite",t}return Object(f["a"])(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(wt),Ae=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(t,n,i){var a;return Object(h["a"])(this,r),a=e.call(this,t,n,i),a.type="feGaussianBlur",a.blurRadius=Math.floor(a.getAttribute("stdDeviation").getNumber()),a.extraFilterDistance=a.blurRadius,a}return Object(f["a"])(r,[{key:"apply",value:function(t,e,r,n,i){var a=this.document,o=this.blurRadius,s=a.window?a.window.document.body:null,u=t.canvas;u.id=a.getUniqueId(),s&&(u.style.display="none",s.appendChild(u)),Object(S["a"])(u,e,r,n,i,o),s&&s.removeChild(u)}}]),r}(wt),Ce=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="title",t}return Object(f["a"])(r)}(wt),Pe=function(t){Object(c["a"])(r,t);var e=Object(l["a"])(r);function r(){var t;return Object(h["a"])(this,r),t=e.apply(this,arguments),t.type="desc",t}return Object(f["a"])(r)}(wt),je={svg:_t,rect:Dt,circle:zt,ellipse:Ft,line:Ht,polyline:Bt,polygon:Ut,path:Mt,pattern:Yt,marker:Xt,defs:Wt,linearGradient:Kt,radialGradient:Qt,stop:Zt,animate:Jt,animateColor:$t,animateTransform:te,font:ee,"font-face":re,"missing-glyph":ne,glyph:Rt,text:Vt,tspan:It,tref:ie,a:ae,textPath:ue,image:le,g:Gt,symbol:he,style:ve,use:pe,mask:xe,clipPath:we,filter:Se,feDropShadow:ke,feMorphology:Te,feComposite:Ee,feColorMatrix:be,feGaussianBlur:Ae,title:Ce,desc:Pe};function Ne(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ne(Object(r),!0).forEach((function(e){y()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Re(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function Ve(t){return Ie.apply(this,arguments)}function Ie(){return Ie=g()(k().mark((function t(e){var r,n,i=arguments;return k().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise((function(t,r){n.onload=function(){t(n)},n.onerror=function(t,e,n,i,a){r(a)},n.src=e})));case 4:case"end":return t.stop()}}),t)}))),Ie.apply(this,arguments)}var Le=function(){function t(e){Object(h["a"])(this,t);var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.rootEmSize,i=void 0===n?12:n,a=r.emSize,o=void 0===a?12:a,s=r.createCanvas,u=void 0===s?t.createCanvas:s,c=r.createImage,l=void 0===c?t.createImage:c,f=r.anonymousCrossOrigin;this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=i,this.emSize=o,this.createCanvas=u,this.createImage=this.bindCreateImage(l,f),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(f["a"])(t,[{key:"bindCreateImage",value:function(t,e){return"boolean"===typeof e?function(r,n){return t(r,"boolean"===typeof n?n:e)}:t}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){var e=this.emSizeStack;e.push(t)}},{key:"popEmSize",value:function(){var t=this.emSizeStack;t.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every((function(t){return t.loaded}))}},{key:"isFontsLoaded",value:function(){return this.fonts.every((function(t){return t.loaded}))}},{key:"createDocumentElement",value:function(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}},{key:"createElement",value:function(e){var r=e.nodeName.replace(/^[^:]+:/,""),n=t.elementTypes[r];return"undefined"!==typeof n?new n(this,e):new St(this,e)}},{key:"createTextNode",value:function(t){return new Lt(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(Me({document:this},t))}}]),t}();function _e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function De(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_e(Object(r),!0).forEach((function(e){y()(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}Le.createCanvas=Re,Le.createImage=Ve,Le.elementTypes=je;var ze=function(){function t(e,r){Object(h["a"])(this,t);var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new ht(n),this.screen=new ut(e,n),this.options=n;var i=new Le(this,n),a=i.createDocumentElement(r);this.document=i,this.documentElement=a}return Object(f["a"])(t,[{key:"fork",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.from(e,r,De(De({},this.options),n))}},{key:"forkString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.fromString(e,r,De(De({},this.options),n))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var t=arguments,e=this;return g()(k().mark((function r(){var n;return k().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:{},e.start(De({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),r.next=4,e.ready();case 4:e.stop();case 5:case"end":return r.stop()}}),r)})))()}},{key:"start",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,De(De({enableRedraw:!0},n),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(t,e,r)}}],[{key:"from",value:function(e,r){var n=arguments;return g()(k().mark((function i(){var a,o,s;return k().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return a=n.length>2&&void 0!==n[2]?n[2]:{},o=new ht(a),i.next=4,o.parse(r);case 4:return s=i.sent,i.abrupt("return",new t(e,s,a));case 6:case"end":return i.stop()}}),i)})))()}},{key:"fromString",value:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ht(n),a=i.parseFromString(r);return new t(e,a,n)}}]),t}()}.call(this,r("Q2Ig"))},Dk1u:function(t,e,r){var n=r("4YbN"),i=r("IL+x"),a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not a constructor")}},ENhe:function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ESVS:function(t,e,r){"use strict";var n=r("nCzB"),i=r("m7zg"),a=r("zFjv"),o=r("GxTi").CONSTRUCTOR;n({target:"Promise",stat:!0,forced:o},{reject:function(t){var e=a.f(this);return i(e.reject,void 0,t),e.promise}})},FjAG:function(t,e,r){var n=r("8HiI"),i=r("721z"),a=r("p5Ma"),o=r("tMNq"),s=TypeError,u=function(t){return function(e,r,u,c){n(r);var l=i(e),h=a(l),f=o(l),v=t?f-1:0,p=t?-1:1;if(u<2)while(1){if(v in h){c=h[v],v+=p;break}if(v+=p,t?v<0:f<=v)throw s("Reduce of empty array with no initial value")}for(;t?v>=0:f>v;v+=p)v in h&&(c=r(c,h[v],v,l));return c}};t.exports={left:u(!1),right:u(!0)}},FkIU:function(t,e,r){var n=r("++4Y"),i=r("eRwv");t.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},FlRv:function(t,e,r){var n=r("++4Y"),i=r("pVCk"),a=r("FkIU"),o=r("WxoH"),s=r("GTqx"),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,h="enumerable",f="configurable",v="writable";e.f=n?a?function(t,e,r){if(o(t),e=s(e),o(r),"function"===typeof t&&"prototype"===e&&"value"in r&&v in r&&!r[v]){var n=l(t,e);n&&n[v]&&(t[e]=r.value,r={configurable:f in r?r[f]:n[f],enumerable:h in r?r[h]:n[h],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=s(e),o(r),i)try{return c(t,e,r)}catch(n){}if("get"in r||"set"in r)throw u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},FqHY:function(t,e,r){var n=r("eE3R");t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},G5Kn:function(t,e,r){var n=r("11yv"),i=r("XFuk"),a=r("FlRv").f,o=n("unscopables"),s=Array.prototype;void 0==s[o]&&a(s,o,{configurable:!0,value:i(null)}),t.exports=function(t){s[o][t]=!0}},GHES:function(t,e,r){"use strict";var n=r("nCzB"),i=r("m7zg"),a=r("jybJ"),o=r("N6FT"),s=r("JTf3"),u=r("qozo"),c=r("WLJ+"),l=r("JHvW"),h=r("ueY1"),f=r("8ODz"),v=r("WaP5"),p=r("11yv"),g=r("AoAp"),d=r("qjFr"),y=o.PROPER,m=o.CONFIGURABLE,b=d.IteratorPrototype,x=d.BUGGY_SAFARI_ITERATORS,O=p("iterator"),w="keys",S="values",k="entries",T=function(){return this};t.exports=function(t,e,r,o,p,d,E){u(r,e,o);var A,C,P,j=function(t){if(t===p&&I)return I;if(!x&&t in R)return R[t];switch(t){case w:return function(){return new r(this,t)};case S:return function(){return new r(this,t)};case k:return function(){return new r(this,t)}}return function(){return new r(this)}},N=e+" Iterator",M=!1,R=t.prototype,V=R[O]||R["@@iterator"]||p&&R[p],I=!x&&V||j(p),L="Array"==e&&R.entries||V;if(L&&(A=c(L.call(new t)),A!==Object.prototype&&A.next&&(a||c(A)===b||(l?l(A,b):s(A[O])||v(A,O,T)),h(A,N,!0,!0),a&&(g[N]=T))),y&&p==S&&V&&V.name!==S&&(!a&&m?f(R,"name",S):(M=!0,I=function(){return i(V,this)})),p)if(C={values:j(S),keys:d?I:j(w),entries:j(k)},E)for(P in C)(x||M||!(P in R))&&v(R,P,C[P]);else n({target:e,proto:!0,forced:x||M},C);return a&&!E||R[O]===I||v(R,O,I,{name:p}),g[e]=I,C}},GI0h:function(t,e,r){var n=r("me6S"),i=n("span").classList,a=i&&i.constructor&&i.constructor.prototype;t.exports=a===Object.prototype?void 0:a},GTqx:function(t,e,r){var n=r("ms20"),i=r("bT0D");t.exports=function(t){var e=n(t,"string");return i(e)?e:e+""}},GVkW:function(t,e,r){"use strict";var n=r("nCzB"),i=r("rt8w"),a=r("fKql").f,o=r("c3MK"),s=r("qzpy"),u=r("OU4x"),c=r("XaNE"),l=r("/TZh"),h=r("jybJ"),f=i("".endsWith),v=i("".slice),p=Math.min,g=l("endsWith"),d=!h&&!g&&!!function(){var t=a(String.prototype,"endsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!d&&!g},{endsWith:function(t){var e=s(c(this));u(t);var r=arguments.length>1?arguments[1]:void 0,n=e.length,i=void 0===r?n:p(o(r),n),a=s(t);return f?f(e,a,i):v(e,i-a.length,i)===a}})},GgKt:function(t,e,r){var n=r("eE3R");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},GxTi:function(t,e,r){var n=r("Ks5W"),i=r("KLK4"),a=r("JTf3"),o=r("mGb/"),s=r("sNJV"),u=r("11yv"),c=r("vTDQ"),l=r("dAmL"),h=r("jybJ"),f=r("aNIs"),v=i&&i.prototype,p=u("species"),g=!1,d=a(n.PromiseRejectionEvent),y=o("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===f)return!0;if(h&&(!v["catch"]||!v["finally"]))return!0;if(!f||f<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},a=r.constructor={};if(a[p]=n,g=r.then((function(){}))instanceof n,!g)return!0}return!e&&(c||l)&&!d}));t.exports={CONSTRUCTOR:y,REJECTION_EVENT:d,SUBCLASSING:g}},Gywb:function(t,e,r){var n=r("eRwv");t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"HTC/":function(t,e,r){"use strict";var n=r("WxoH");t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},IGIO:function(t,e,r){(function(e){var n=r("ba8b");t.exports="undefined"!=typeof e&&"process"==n(e)}).call(this,r("Q2Ig"))},"IL+x":function(t,e){var r=String;t.exports=function(t){try{return r(t)}catch(e){return"Object"}}},JHvW:function(t,e,r){var n=r("P31t"),i=r("WxoH"),a=r("NIpK");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=n(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(o){}return function(r,n){return i(r),a(n),e?t(r,n):r.__proto__=n,r}}():void 0)},JTf3:function(t,e,r){var n=r("013W"),i=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},KKe4:function(t,e,r){"use strict";var n=r("m7zg"),i=r("WONN"),a=r("WxoH"),o=r("x0Ve"),s=r("c3MK"),u=r("qzpy"),c=r("XaNE"),l=r("oK8H"),h=r("M/+V"),f=r("3fk+");i("match",(function(t,e,r){return[function(e){var r=c(this),i=o(e)?void 0:l(e,t);return i?n(i,e,r):new RegExp(e)[t](u(r))},function(t){var n=a(this),i=u(t),o=r(e,n,i);if(o.done)return o.value;if(!n.global)return f(n,i);var c=n.unicode;n.lastIndex=0;var l,v=[],p=0;while(null!==(l=f(n,i))){var g=u(l[0]);v[p]=g,""===g&&(n.lastIndex=h(i,s(n.lastIndex),c)),p++}return 0===p?null:v}]}))},KLK4:function(t,e,r){var n=r("Ks5W");t.exports=n.Promise},KLN8:function(t,e,r){"use strict";var n=r("nCzB"),i=r("rt8w"),a=r("fKql").f,o=r("c3MK"),s=r("qzpy"),u=r("OU4x"),c=r("XaNE"),l=r("/TZh"),h=r("jybJ"),f=i("".startsWith),v=i("".slice),p=Math.min,g=l("startsWith"),d=!h&&!g&&!!function(){var t=a(String.prototype,"startsWith");return t&&!t.writable}();n({target:"String",proto:!0,forced:!d&&!g},{startsWith:function(t){var e=s(c(this));u(t);var r=o(p(arguments.length>1?arguments[1]:void 0,e.length)),n=s(t);return f?f(e,n,r):v(e,r,r+n.length)===n}})},Ks5W:function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(this,r("yLpj"))},Lltv:function(t,e,r){"use strict";var n=r("vkZI"),i=r("G5Kn"),a=r("AoAp"),o=r("UQ6y"),s=r("FlRv").f,u=r("GHES"),c=r("i57Q"),l=r("jybJ"),h=r("++4Y"),f="Array Iterator",v=o.set,p=o.getterFor(f);t.exports=u(Array,"Array",(function(t,e){v(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=p(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,c(void 0,!0)):c("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var g=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!l&&h&&"values"!==g.name)try{s(g,"name",{value:"values"})}catch(d){}},"M/+V":function(t,e,r){"use strict";var n=r("ymN0").charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},MNKV:function(t,e,r){"use strict";var n=r("nCzB"),i=r("aLaa"),a=r("OU4x"),o=r("XaNE"),s=r("qzpy"),u=r("/TZh"),c=i("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~c(s(o(this)),s(a(t)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(t,e,r){var n=r("aLaa"),i=0,a=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++i+a,36)}},N6FT:function(t,e,r){var n=r("++4Y"),i=r("YELS"),a=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,s=i(a,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&o(a,"name").configurable);t.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},NCkV:function(t,e,r){"use strict";var n=r("1mOU"),i=r("m7zg"),a=r("aLaa"),o=r("WONN"),s=r("WxoH"),u=r("x0Ve"),c=r("COGW"),l=r("XaNE"),h=r("NudO"),f=r("M/+V"),v=r("c3MK"),p=r("qzpy"),g=r("oK8H"),d=r("8Ys4"),y=r("3fk+"),m=r("WMbf"),b=r("RhGR"),x=r("eRwv"),O=b.UNSUPPORTED_Y,w=4294967295,S=Math.min,k=[].push,T=a(/./.exec),E=a(k),A=a("".slice),C=!x((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));o("split",(function(t,e,r){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var a=p(l(this)),o=void 0===r?w:r>>>0;if(0===o)return[];if(void 0===t)return[a];if(!c(t))return i(e,a,t,o);var s,u,h,f=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),g=0,y=new RegExp(t.source,v+"g");while(s=i(m,y,a)){if(u=y.lastIndex,u>g&&(E(f,A(a,g,s.index)),s.length>1&&s.index<a.length&&n(k,f,d(s,1)),h=s[0].length,g=u,f.length>=o))break;y.lastIndex===s.index&&y.lastIndex++}return g===a.length?!h&&T(y,"")||E(f,""):E(f,A(a,g)),f.length>o?d(f,0,o):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:i(e,this,t,r)}:e,[function(e,r){var n=l(this),o=u(e)?void 0:g(e,t);return o?i(o,e,n,r):i(a,p(n),e,r)},function(t,n){var i=s(this),o=p(t),u=r(a,i,o,n,a!==e);if(u.done)return u.value;var c=h(i,RegExp),l=i.unicode,g=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(O?"g":"y"),d=new c(O?"^(?:"+i.source+")":i,g),m=void 0===n?w:n>>>0;if(0===m)return[];if(0===o.length)return null===y(d,o)?[o]:[];var b=0,x=0,k=[];while(x<o.length){d.lastIndex=O?0:x;var T,C=y(d,O?A(o,x):o);if(null===C||(T=S(v(d.lastIndex+(O?x:0)),o.length))===b)x=f(o,x,l);else{if(E(k,A(o,b,x)),k.length===m)return k;for(var P=1;P<=C.length-1;P++)if(E(k,C[P]),k.length===m)return k;x=b=T}}return E(k,A(o,b)),k}]}),!C,O)},NIpK:function(t,e,r){var n=r("JTf3"),i=String,a=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw a("Can't set "+i(t)+" as a prototype")}},"NK/Q":function(t,e,r){var n=r("Ks5W"),i=r("JTf3"),a=n.WeakMap;t.exports=i(a)&&/native code/.test(String(a))},"Ne/+":function(t,e,r){var n=r("aLaa"),i=r("721z"),a=Math.floor,o=n("".charAt),s=n("".replace),u=n("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,r,n,h,f){var v=r+t.length,p=n.length,g=l;return void 0!==h&&(h=i(h),g=c),s(f,g,(function(i,s){var c;switch(o(s,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,r);case"'":return u(e,v);case"<":c=h[u(s,1,-1)];break;default:var l=+s;if(0===l)return i;if(l>p){var f=a(l/10);return 0===f?i:f<=p?void 0===n[f-1]?o(s,1):n[f-1]+o(s,1):i}c=n[l-1]}return void 0===c?"":c}))}},NudO:function(t,e,r){var n=r("WxoH"),i=r("Dk1u"),a=r("x0Ve"),o=r("11yv"),s=o("species");t.exports=function(t,e){var r,o=n(t).constructor;return void 0===o||a(r=n(o)[s])?e:i(r)}},Nybj:function(t,e,r){var n=r("vkZI"),i=r("n6S8"),a=r("tMNq"),o=function(t){return function(e,r,o){var s,u=n(e),c=a(u),l=i(o,c);if(t&&r!=r){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},OU4x:function(t,e,r){var n=r("COGW"),i=TypeError;t.exports=function(t){if(n(t))throw i("The method doesn't accept regular expressions");return t}},P31t:function(t,e,r){var n=r("aLaa"),i=r("8HiI");t.exports=function(t,e,r){try{return n(i(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(a){}}},Ppro:function(t,e,r){"use strict";var n=r("nCzB"),i=r("WMbf");n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},QELg:function(t,e,r){"use strict";var n=r("eRwv");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){return 1},1)}))}},QrM1:function(t,e,r){var n=r("ZpKI"),i=r("Yzn+"),a=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,a)}},"RXj+":function(t,e,r){var n=r("aLaa"),i=r("XaNE"),a=r("qzpy"),o=r("noWC"),s=n("".replace),u=RegExp("^["+o+"]+"),c=RegExp("(^|[^"+o+"])["+o+"]+$"),l=function(t){return function(e){var r=a(i(e));return 1&t&&(r=s(r,u,"")),2&t&&(r=s(r,c,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},RYfq:function(t,e,r){var n=r("Ks5W"),i=r("JTf3"),a=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?a(n[t]):n[t]&&n[t][e]}},RhGR:function(t,e,r){var n=r("eRwv"),i=r("Ks5W"),a=i.RegExp,o=n((function(){var t=a("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),s=o||n((function(){return!a("a","y").sticky})),u=o||n((function(){var t=a("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:u,MISSED_STICKY:s,UNSUPPORTED_Y:o}},SN6V:function(t,e,r){var n=r("/dXc");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"ST+I":function(t,e,r){var n=r("aNr2"),i=r("MURR"),a=n("keys");t.exports=function(t){return a[t]||(a[t]=i(t))}},SkNP:function(t,e){t.exports={}},SwuV:function(t,e,r){var n=r("JTf3"),i=r("013W"),a=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===a}:function(t){return"object"==typeof t?null!==t:n(t)}},TRzv:function(t,e,r){var n=r("WxoH"),i=r("SwuV"),a=r("zFjv");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=a.f(t),o=r.resolve;return o(e),r.promise}},Ttl4:function(t,e,r){var n=r("YELS"),i=r("x1+7"),a=r("fKql"),o=r("FlRv");t.exports=function(t,e,r){for(var s=i(e),u=o.f,c=a.f,l=0;l<s.length;l++){var h=s[l];n(t,h)||r&&n(r,h)||u(t,h,c(e,h))}}},UCFi:function(t,e){e.f=Object.getOwnPropertySymbols},UQ6y:function(t,e,r){var n,i,a,o=r("NK/Q"),s=r("Ks5W"),u=r("SwuV"),c=r("8ODz"),l=r("YELS"),h=r("4gdG"),f=r("ST+I"),v=r("SkNP"),p="Object already initialized",g=s.TypeError,d=s.WeakMap,y=function(t){return a(t)?i(t):n(t,{})},m=function(t){return function(e){var r;if(!u(e)||(r=i(e)).type!==t)throw g("Incompatible receiver, "+t+" required");return r}};if(o||h.state){var b=h.state||(h.state=new d);b.get=b.get,b.has=b.has,b.set=b.set,n=function(t,e){if(b.has(t))throw g(p);return e.facade=t,b.set(t,e),e},i=function(t){return b.get(t)||{}},a=function(t){return b.has(t)}}else{var x=f("state");v[x]=!0,n=function(t,e){if(l(t,x))throw g(p);return e.facade=t,c(t,x,e),e},i=function(t){return l(t,x)?t[x]:{}},a=function(t){return l(t,x)}}t.exports={set:n,get:i,has:a,enforce:y,getterFor:m}},Vgcz:function(t,e,r){var n=r("m7zg"),i=r("YELS"),a=r("3Xd8"),o=r("HTC/"),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||i(t,"flags")||!a(s,t)?e:n(o,t)}},"WLJ+":function(t,e,r){var n=r("YELS"),i=r("JTf3"),a=r("721z"),o=r("ST+I"),s=r("Gywb"),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=s?c.getPrototypeOf:function(t){var e=a(t);if(n(e,u))return e[u];var r=e.constructor;return i(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},WMbf:function(t,e,r){"use strict";var n=r("m7zg"),i=r("aLaa"),a=r("qzpy"),o=r("HTC/"),s=r("RhGR"),u=r("aNr2"),c=r("XFuk"),l=r("UQ6y").get,h=r("4Qxg"),f=r("c55Z"),v=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,g=p,d=i("".charAt),y=i("".indexOf),m=i("".replace),b=i("".slice),x=function(){var t=/a/,e=/b*/g;return n(p,t,"a"),n(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),O=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1],S=x||w||O||h||f;S&&(g=function(t){var e,r,i,s,u,h,f,S=this,k=l(S),T=a(t),E=k.raw;if(E)return E.lastIndex=S.lastIndex,e=n(g,E,T),S.lastIndex=E.lastIndex,e;var A=k.groups,C=O&&S.sticky,P=n(o,S),j=S.source,N=0,M=T;if(C&&(P=m(P,"y",""),-1===y(P,"g")&&(P+="g"),M=b(T,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==d(T,S.lastIndex-1))&&(j="(?: "+j+")",M=" "+M,N++),r=new RegExp("^(?:"+j+")",P)),w&&(r=new RegExp("^"+j+"$(?!\\s)",P)),x&&(i=S.lastIndex),s=n(p,C?r:S,M),C?s?(s.input=b(s.input,N),s[0]=b(s[0],N),s.index=S.lastIndex,S.lastIndex+=s[0].length):S.lastIndex=0:x&&s&&(S.lastIndex=S.global?s.index+s[0].length:i),w&&s&&s.length>1&&n(v,s[0],r,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s&&A)for(s.groups=h=c(null),u=0;u<A.length;u++)f=A[u],h[f[0]]=s[f[1]];return s}),t.exports=g},WOGj:function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(t);if(o){var s=a(o);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,n=0;n<r.length;n++)for(var i=r[n].example,a=0;a<i.length;a++)t[t.length]=i[a];for(var o in e)t[t.length]=o;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(n=0;n<t.length;n++)try{var u=document.createElement("li"),c=new RGBColor(t[n]),l=document.createElement("div");l.style.cssText="margin: 3px; border: 1px solid black; background:"+c.toHex()+"; color:"+c.toHex(),l.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[n]+" -> "+c.toRGB()+" -> "+c.toHex());u.appendChild(l),u.appendChild(h),s.appendChild(u)}catch(f){}return s}}},WONN:function(t,e,r){"use strict";r("Ppro");var n=r("rt8w"),i=r("WaP5"),a=r("WMbf"),o=r("eRwv"),s=r("11yv"),u=r("8ODz"),c=s("species"),l=RegExp.prototype;t.exports=function(t,e,r,h){var f=s(t),v=!o((function(){var e={};return e[f]=function(){return 7},7!=""[t](e)})),p=v&&!o((function(){var e=!1,r=/a/;return"split"===t&&(r={},r.constructor={},r.constructor[c]=function(){return r},r.flags="",r[f]=/./[f]),r.exec=function(){return e=!0,null},r[f](""),!e}));if(!v||!p||r){var g=n(/./[f]),d=e(f,""[t],(function(t,e,r,i,o){var s=n(t),u=e.exec;return u===a||u===l.exec?v&&!o?{done:!0,value:g(e,r,i)}:{done:!0,value:s(r,e,i)}:{done:!1}}));i(String.prototype,t,d[0]),i(l,f,d[1])}h&&u(l[f],"sham",!0)}},WaP5:function(t,e,r){var n=r("JTf3"),i=r("FlRv"),a=r("3DCu"),o=r("X4md");t.exports=function(t,e,r,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(r)&&a(r,c,s),s.global)u?t[e]=r:o(e,r);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(l){}u?t[e]=r:i.f(t,e,{value:r,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},WhZm:function(t,e,r){var n=r("3DCu"),i=r("FlRv");t.exports=function(t,e,r){return r.get&&n(r.get,e,{getter:!0}),r.set&&n(r.set,e,{setter:!0}),i.f(t,e,r)}},WxoH:function(t,e,r){var n=r("SwuV"),i=String,a=TypeError;t.exports=function(t){if(n(t))return t;throw a(i(t)+" is not an object")}},"X/EZ":function(t,e,r){var n=r("11yv"),i=n("iterator"),a=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){a=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!a)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(u){}return r}},X4md:function(t,e,r){var n=r("Ks5W"),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},XFuk:function(t,e,r){var n,i=r("WxoH"),a=r("oR5W"),o=r("Yzn+"),s=r("SkNP"),u=r("bUA4"),c=r("me6S"),l=r("ST+I"),h=">",f="<",v="prototype",p="script",g=l("IE_PROTO"),d=function(){},y=function(t){return f+p+h+t+f+"/"+p+h},m=function(t){t.write(y("")),t.close();var e=t.parentWindow.Object;return t=null,e},b=function(){var t,e=c("iframe"),r="java"+p+":";return e.style.display="none",u.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(y("document.F=Object")),t.close(),t.F},x=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}x="undefined"!=typeof document?document.domain&&n?m(n):b():m(n);var t=o.length;while(t--)delete x[v][o[t]];return x()};s[g]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(d[v]=i(t),r=new d,d[v]=null,r[g]=t):r=x(),void 0===e?r:a.f(r,e)}},XTcp:function(t,e,r){var n,i,a,o,s=r("Ks5W"),u=r("1mOU"),c=r("mcoe"),l=r("JTf3"),h=r("YELS"),f=r("eRwv"),v=r("bUA4"),p=r("0r2v"),g=r("me6S"),d=r("k2qh"),y=r("GgKt"),m=r("IGIO"),b=s.setImmediate,x=s.clearImmediate,O=s.process,w=s.Dispatch,S=s.Function,k=s.MessageChannel,T=s.String,E=0,A={},C="onreadystatechange";f((function(){n=s.location}));var P=function(t){if(h(A,t)){var e=A[t];delete A[t],e()}},j=function(t){return function(){P(t)}},N=function(t){P(t.data)},M=function(t){s.postMessage(T(t),n.protocol+"//"+n.host)};b&&x||(b=function(t){d(arguments.length,1);var e=l(t)?t:S(t),r=p(arguments,1);return A[++E]=function(){u(e,void 0,r)},i(E),E},x=function(t){delete A[t]},m?i=function(t){O.nextTick(j(t))}:w&&w.now?i=function(t){w.now(j(t))}:k&&!y?(a=new k,o=a.port2,a.port1.onmessage=N,i=c(o.postMessage,o)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!f(M)?(i=M,s.addEventListener("message",N,!1)):i=C in g("script")?function(t){v.appendChild(g("script"))[C]=function(){v.removeChild(this),P(t)}}:function(t){setTimeout(j(t),0)}),t.exports={set:b,clear:x}},XaNE:function(t,e,r){var n=r("x0Ve"),i=TypeError;t.exports=function(t){if(n(t))throw i("Can't call method on "+t);return t}},Xp4B:function(t,e,r){"use strict";function n(t){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}r.d(e,"a",(function(){return u}));var a=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],o=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function s(t,e,r,i,a){if("string"===typeof t&&(t=document.getElementById(t)),!t||"object"!==n(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,i,a)}catch(s){throw new Error("unable to access image data: "+s)}}function u(t,e,r,n,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=s(t,e,r,n,i);o=c(o,e,r,n,i,a),t.getContext("2d").putImageData(o,e,r)}}function c(t,e,r,n,i,s){for(var u,c=t.data,h=2*s+1,f=n-1,v=i-1,p=s+1,g=p*(p+1)/2,d=new l,y=d,m=1;m<h;m++)y=y.next=new l,m===p&&(u=y);y.next=d;for(var b=null,x=null,O=0,w=0,S=a[s],k=o[s],T=0;T<i;T++){y=d;for(var E=c[w],A=c[w+1],C=c[w+2],P=c[w+3],j=0;j<p;j++)y.r=E,y.g=A,y.b=C,y.a=P,y=y.next;for(var N=0,M=0,R=0,V=0,I=p*E,L=p*A,_=p*C,D=p*P,z=g*E,F=g*A,H=g*C,B=g*P,U=1;U<p;U++){var Y=w+((f<U?f:U)<<2),X=c[Y],W=c[Y+1],G=c[Y+2],q=c[Y+3],K=p-U;z+=(y.r=X)*K,F+=(y.g=W)*K,H+=(y.b=G)*K,B+=(y.a=q)*K,N+=X,M+=W,R+=G,V+=q,y=y.next}b=d,x=u;for(var Q=0;Q<n;Q++){var Z=B*S>>k;if(c[w+3]=Z,0!==Z){var J=255/Z;c[w]=(z*S>>k)*J,c[w+1]=(F*S>>k)*J,c[w+2]=(H*S>>k)*J}else c[w]=c[w+1]=c[w+2]=0;z-=I,F-=L,H-=_,B-=D,I-=b.r,L-=b.g,_-=b.b,D-=b.a;var $=Q+s+1;$=O+($<f?$:f)<<2,N+=b.r=c[$],M+=b.g=c[$+1],R+=b.b=c[$+2],V+=b.a=c[$+3],z+=N,F+=M,H+=R,B+=V,b=b.next;var tt=x,et=tt.r,rt=tt.g,nt=tt.b,it=tt.a;I+=et,L+=rt,_+=nt,D+=it,N-=et,M-=rt,R-=nt,V-=it,x=x.next,w+=4}O+=n}for(var at=0;at<n;at++){w=at<<2;var ot=c[w],st=c[w+1],ut=c[w+2],ct=c[w+3],lt=p*ot,ht=p*st,ft=p*ut,vt=p*ct,pt=g*ot,gt=g*st,dt=g*ut,yt=g*ct;y=d;for(var mt=0;mt<p;mt++)y.r=ot,y.g=st,y.b=ut,y.a=ct,y=y.next;for(var bt=n,xt=0,Ot=0,wt=0,St=0,kt=1;kt<=s;kt++){w=bt+at<<2;var Tt=p-kt;pt+=(y.r=ot=c[w])*Tt,gt+=(y.g=st=c[w+1])*Tt,dt+=(y.b=ut=c[w+2])*Tt,yt+=(y.a=ct=c[w+3])*Tt,St+=ot,xt+=st,Ot+=ut,wt+=ct,y=y.next,kt<v&&(bt+=n)}w=at,b=d,x=u;for(var Et=0;Et<i;Et++){var At=w<<2;c[At+3]=ct=yt*S>>k,ct>0?(ct=255/ct,c[At]=(pt*S>>k)*ct,c[At+1]=(gt*S>>k)*ct,c[At+2]=(dt*S>>k)*ct):c[At]=c[At+1]=c[At+2]=0,pt-=lt,gt-=ht,dt-=ft,yt-=vt,lt-=b.r,ht-=b.g,ft-=b.b,vt-=b.a,At=at+((At=Et+p)<v?At:v)*n<<2,pt+=St+=b.r=c[At],gt+=xt+=b.g=c[At+1],dt+=Ot+=b.b=c[At+2],yt+=wt+=b.a=c[At+3],b=b.next,lt+=ot=x.r,ht+=st=x.g,ft+=ut=x.b,vt+=ct=x.a,St-=ot,xt-=st,Ot-=ut,wt-=ct,x=x.next,w+=n}}return t}var l=function t(){i(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},YELS:function(t,e,r){var n=r("aLaa"),i=r("721z"),a=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(i(t),e)}},"Yzn+":function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},ZpKI:function(t,e,r){var n=r("aLaa"),i=r("YELS"),a=r("vkZI"),o=r("Nybj").indexOf,s=r("SkNP"),u=n([].push);t.exports=function(t,e){var r,n=a(t),c=0,l=[];for(r in n)!i(s,r)&&i(n,r)&&u(l,r);while(e.length>c)i(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},a9Cf:function(t,e,r){var n=r("11yv"),i=n("toStringTag"),a={};a[i]="z",t.exports="[object z]"===String(a)},aLaa:function(t,e,r){var n=r("66qH"),i=Function.prototype,a=i.call,o=n&&i.bind.bind(a,a);t.exports=n?o:function(t){return function(){return a.apply(t,arguments)}}},aNIs:function(t,e,r){var n,i,a=r("Ks5W"),o=r("eE3R"),s=a.process,u=a.Deno,c=s&&s.versions||u&&u.version,l=c&&c.v8;l&&(n=l.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&o&&(n=o.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},aNr2:function(t,e,r){var n=r("jybJ"),i=r("4gdG");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.28.0",mode:n?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(t,e,r){var n=r("RYfq"),i=r("JTf3"),a=r("3Xd8"),o=r("1Sr1"),s=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return i(e)&&a(e.prototype,s(t))}},bUA4:function(t,e,r){var n=r("RYfq");t.exports=n("document","documentElement")},ba8b:function(t,e,r){var n=r("aLaa"),i=n({}.toString),a=n("".slice);t.exports=function(t){return a(i(t),8,-1)}},c3MK:function(t,e,r){var n=r("SN6V"),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},c55Z:function(t,e,r){var n=r("eRwv"),i=r("Ks5W"),a=i.RegExp;t.exports=n((function(){var t=a("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},dAmL:function(t,e){t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},eE3R:function(t,e){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},eRwv:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},fKql:function(t,e,r){var n=r("++4Y"),i=r("m7zg"),a=r("5r2E"),o=r("4uGi"),s=r("vkZI"),u=r("GTqx"),c=r("YELS"),l=r("pVCk"),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=s(t),e=u(e),l)try{return h(t,e)}catch(r){}if(c(t,e))return o(!i(a.f,t,e),t[e])}},"g8+u":function(t,e,r){var n=r("a9Cf"),i=r("JTf3"),a=r("ba8b"),o=r("11yv"),s=o("toStringTag"),u=Object,c="Arguments"==a(function(){return arguments}()),l=function(t,e){try{return t[e]}catch(r){}};t.exports=n?a:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=l(e=u(t),s))?r:c?a(e):"Object"==(n=a(e))&&i(e.callee)?"Arguments":n}},g9jQ:function(t,e,r){"use strict";var n=r("nCzB"),i=r("rt8w"),a=r("Nybj").indexOf,o=r("QELg"),s=i([].indexOf),u=!!s&&1/s([1],1,-0)<0,c=u||!o("indexOf");n({target:"Array",proto:!0,forced:c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?s(this,t,e)||0:a(this,t,e)}})},gzPo:function(t,e,r){var n,i,a,o,s,u=r("Ks5W"),c=r("mcoe"),l=r("fKql").f,h=r("XTcp").set,f=r("zUnQ"),v=r("GgKt"),p=r("FqHY"),g=r("/pbl"),d=r("IGIO"),y=u.MutationObserver||u.WebKitMutationObserver,m=u.document,b=u.process,x=u.Promise,O=l(u,"queueMicrotask"),w=O&&O.value;if(!w){var S=new f,k=function(){var t,e;d&&(t=b.domain)&&t.exit();while(e=S.get())try{e()}catch(r){throw S.head&&n(),r}t&&t.enter()};v||d||g||!y||!m?!p&&x&&x.resolve?(o=x.resolve(void 0),o.constructor=x,s=c(o.then,o),n=function(){s(k)}):d?n=function(){b.nextTick(k)}:(h=c(h,u),n=function(){h(k)}):(i=!0,a=m.createTextNode(""),new y(k).observe(a,{characterData:!0}),n=function(){a.data=i=!i}),w=function(t){S.head||n(),S.add(t)}}t.exports=w},hIaP:function(t,e,r){var n=r("m7zg"),i=r("8HiI"),a=r("WxoH"),o=r("IL+x"),s=r("ltkU"),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?s(t):e;if(i(r))return a(n(r,t));throw u(o(t)+" is not iterable")}},i57Q:function(t,e){t.exports=function(t,e){return{value:t,done:e}}},"iBj/":function(t,e,r){var n=r("m7zg"),i=r("WxoH"),a=r("oK8H");t.exports=function(t,e,r){var o,s;i(t);try{if(o=a(t,"return"),!o){if("throw"===e)throw r;return r}o=n(o,t)}catch(u){s=!0,o=u}if("throw"===e)throw r;if(s)throw o;return i(o),r}},iWRt:function(t,e,r){"use strict";var n=r("nCzB"),i=r("aLaa"),a=r("uZ/K"),o=i([].reverse),s=[1,2];n({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},jCYL:function(t,e,r){"use strict";var n=r("nCzB"),i=r("RYfq"),a=r("jybJ"),o=r("KLK4"),s=r("GxTi").CONSTRUCTOR,u=r("TRzv"),c=i("Promise"),l=a&&!s;n({target:"Promise",stat:!0,forced:a||s},{resolve:function(t){return u(l&&this===c?o:this,t)}})},jybJ:function(t,e){t.exports=!1},k2qh:function(t,e){var r=TypeError;t.exports=function(t,e){if(t<e)throw r("Not enough arguments");return t}},lAFk:function(t,e){t.exports=function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(r){}}},ltkU:function(t,e,r){var n=r("g8+u"),i=r("oK8H"),a=r("x0Ve"),o=r("AoAp"),s=r("11yv"),u=s("iterator");t.exports=function(t){if(!a(t))return i(t,u)||i(t,"@@iterator")||o[n(t)]}},m7zg:function(t,e,r){var n=r("66qH"),i=Function.prototype.call;t.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},"mGb/":function(t,e,r){var n=r("eRwv"),i=r("JTf3"),a=/#|\.prototype\./,o=function(t,e){var r=u[s(t)];return r==l||r!=c&&(i(e)?n(e):!!e)},s=o.normalize=function(t){return String(t).replace(a,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},mcoe:function(t,e,r){var n=r("rt8w"),i=r("8HiI"),a=r("66qH"),o=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:a?o(t,e):function(){return t.apply(e,arguments)}}},mdxj:function(t,e,r){"use strict";var n=r("nCzB"),i=r("FjAG").left,a=r("QELg"),o=r("aNIs"),s=r("IGIO"),u=!s&&o>79&&o<83,c=u||!a("reduce");n({target:"Array",proto:!0,forced:c},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},me6S:function(t,e,r){var n=r("Ks5W"),i=r("SwuV"),a=n.document,o=i(a)&&i(a.createElement);t.exports=function(t){return o?a.createElement(t):{}}},ms20:function(t,e,r){var n=r("m7zg"),i=r("SwuV"),a=r("bT0D"),o=r("oK8H"),s=r("2lHc"),u=r("11yv"),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!i(t)||a(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!i(r)||a(r))return r;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},n6S8:function(t,e,r){var n=r("SN6V"),i=Math.max,a=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):a(r,e)}},nCzB:function(t,e,r){var n=r("Ks5W"),i=r("fKql").f,a=r("8ODz"),o=r("WaP5"),s=r("X4md"),u=r("Ttl4"),c=r("mGb/");t.exports=function(t,e){var r,l,h,f,v,p,g=t.target,d=t.global,y=t.stat;if(l=d?n:y?n[g]||s(g,{}):(n[g]||{}).prototype,l)for(h in e){if(v=e[h],t.dontCallGetSet?(p=i(l,h),f=p&&p.value):f=l[h],r=c(d?h:g+(y?".":"#")+h,t.forced),!r&&void 0!==f){if(typeof v==typeof f)continue;u(v,f)}(t.sham||f&&f.sham)&&a(v,"sham",!0),o(l,h,v,t)}}},noWC:function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},nvEG:function(t,e,r){var n=r("mcoe"),i=r("m7zg"),a=r("WxoH"),o=r("IL+x"),s=r("3n0U"),u=r("tMNq"),c=r("3Xd8"),l=r("hIaP"),h=r("ltkU"),f=r("iBj/"),v=TypeError,p=function(t,e){this.stopped=t,this.result=e},g=p.prototype;t.exports=function(t,e,r){var d,y,m,b,x,O,w,S=r&&r.that,k=!(!r||!r.AS_ENTRIES),T=!(!r||!r.IS_RECORD),E=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),C=n(e,S),P=function(t){return d&&f(d,"normal",t),new p(!0,t)},j=function(t){return k?(a(t),A?C(t[0],t[1],P):C(t[0],t[1])):A?C(t,P):C(t)};if(T)d=t.iterator;else if(E)d=t;else{if(y=h(t),!y)throw v(o(t)+" is not iterable");if(s(y)){for(m=0,b=u(t);b>m;m++)if(x=j(t[m]),x&&c(g,x))return x;return new p(!1)}d=l(t,y)}O=T?t.next:d.next;while(!(w=i(O,d)).done){try{x=j(w.value)}catch(N){f(d,"throw",N)}if("object"==typeof x&&x&&c(g,x))return x}return new p(!1)}},oK8H:function(t,e,r){var n=r("8HiI"),i=r("x0Ve");t.exports=function(t,e){var r=t[e];return i(r)?void 0:n(r)}},oR5W:function(t,e,r){var n=r("++4Y"),i=r("FkIU"),a=r("FlRv"),o=r("WxoH"),s=r("vkZI"),u=r("Ai06");e.f=n&&!i?Object.defineProperties:function(t,e){o(t);var r,n=s(e),i=u(e),c=i.length,l=0;while(c>l)a.f(t,r=i[l++],n[r]);return t}},oauk:function(t,e,r){"use strict";var n=r("GTqx"),i=r("FlRv"),a=r("4uGi");t.exports=function(t,e,r){var o=n(e);o in t?i.f(t,o,a(0,r)):t[o]=r}},p5Ma:function(t,e,r){var n=r("aLaa"),i=r("eRwv"),a=r("ba8b"),o=Object,s=n("".split);t.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==a(t)?s(t,""):o(t)}:o},pVCk:function(t,e,r){var n=r("++4Y"),i=r("eRwv"),a=r("me6S");t.exports=!n&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},qJvV:function(t,e,r){var n=r("Ks5W"),i=r("ENhe"),a=r("GI0h"),o=r("Lltv"),s=r("8ODz"),u=r("11yv"),c=u("iterator"),l=u("toStringTag"),h=o.values,f=function(t,e){if(t){if(t[c]!==h)try{s(t,c,h)}catch(n){t[c]=h}if(t[l]||s(t,l,e),i[e])for(var r in o)if(t[r]!==o[r])try{s(t,r,o[r])}catch(n){t[r]=o[r]}}};for(var v in i)f(n[v]&&n[v].prototype,v);f(a,"DOMTokenList")},qjFr:function(t,e,r){"use strict";var n,i,a,o=r("eRwv"),s=r("JTf3"),u=r("SwuV"),c=r("XFuk"),l=r("WLJ+"),h=r("WaP5"),f=r("11yv"),v=r("jybJ"),p=f("iterator"),g=!1;[].keys&&(a=[].keys(),"next"in a?(i=l(l(a)),i!==Object.prototype&&(n=i)):g=!0);var d=!u(n)||o((function(){var t={};return n[p].call(t)!==t}));d?n={}:v&&(n=c(n)),s(n[p])||h(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:g}},qozo:function(t,e,r){"use strict";var n=r("qjFr").IteratorPrototype,i=r("XFuk"),a=r("4uGi"),o=r("ueY1"),s=r("AoAp"),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=i(n,{next:a(+!c,r)}),o(t,l,!1,!0),s[l]=u,t}},qzpy:function(t,e,r){var n=r("g8+u"),i=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return i(t)}},rt8w:function(t,e,r){var n=r("ba8b"),i=r("aLaa");t.exports=function(t){if("Function"===n(t))return i(t)}},sNJV:function(t,e,r){var n=r("aLaa"),i=r("JTf3"),a=r("4gdG"),o=n(Function.toString);i(a.inspectSource)||(a.inspectSource=function(t){return o(t)}),t.exports=a.inspectSource},tMNq:function(t,e,r){var n=r("c3MK");t.exports=function(t){return n(t.length)}},tZjp:function(t,e,r){"use strict";var n,i,a,o,s=r("nCzB"),u=r("jybJ"),c=r("IGIO"),l=r("Ks5W"),h=r("m7zg"),f=r("WaP5"),v=r("JHvW"),p=r("ueY1"),g=r("9Bi7"),d=r("8HiI"),y=r("JTf3"),m=r("SwuV"),b=r("uoua"),x=r("NudO"),O=r("XTcp").set,w=r("gzPo"),S=r("lAFk"),k=r("8xe4"),T=r("zUnQ"),E=r("UQ6y"),A=r("KLK4"),C=r("GxTi"),P=r("zFjv"),j="Promise",N=C.CONSTRUCTOR,M=C.REJECTION_EVENT,R=C.SUBCLASSING,V=E.getterFor(j),I=E.set,L=A&&A.prototype,_=A,D=L,z=l.TypeError,F=l.document,H=l.process,B=P.f,U=B,Y=!!(F&&F.createEvent&&l.dispatchEvent),X="unhandledrejection",W="rejectionhandled",G=0,q=1,K=2,Q=1,Z=2,J=function(t){var e;return!(!m(t)||!y(e=t.then))&&e},$=function(t,e){var r,n,i,a=e.value,o=e.state==q,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,l=t.domain;try{s?(o||(e.rejection===Z&&it(e),e.rejection=Q),!0===s?r=a:(l&&l.enter(),r=s(a),l&&(l.exit(),i=!0)),r===t.promise?c(z("Promise-chain cycle")):(n=J(r))?h(n,r,u,c):u(r)):c(a)}catch(f){l&&!i&&l.exit(),c(f)}},tt=function(t,e){t.notified||(t.notified=!0,w((function(){var r,n=t.reactions;while(r=n.get())$(r,t);t.notified=!1,e&&!t.rejection&&rt(t)})))},et=function(t,e,r){var n,i;Y?(n=F.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!M&&(i=l["on"+t])?i(n):t===X&&S("Unhandled promise rejection",r)},rt=function(t){h(O,l,(function(){var e,r=t.facade,n=t.value,i=nt(t);if(i&&(e=k((function(){c?H.emit("unhandledRejection",n,r):et(X,r,n)})),t.rejection=c||nt(t)?Z:Q,e.error))throw e.value}))},nt=function(t){return t.rejection!==Q&&!t.parent},it=function(t){h(O,l,(function(){var e=t.facade;c?H.emit("rejectionHandled",e):et(W,e,t.value)}))},at=function(t,e,r){return function(n){t(e,n,r)}},ot=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=K,tt(t,!0))},st=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw z("Promise can't be resolved itself");var n=J(e);n?w((function(){var r={done:!1};try{h(n,e,at(st,r,t),at(ot,r,t))}catch(i){ot(r,i,t)}})):(t.value=e,t.state=q,tt(t,!1))}catch(i){ot({done:!1},i,t)}}};if(N&&(_=function(t){b(this,D),d(t),h(n,this);var e=V(this);try{t(at(st,e),at(ot,e))}catch(r){ot(e,r)}},D=_.prototype,n=function(t){I(this,{type:j,done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:G,value:void 0})},n.prototype=f(D,"then",(function(t,e){var r=V(this),n=B(x(this,_));return r.parent=!0,n.ok=!y(t)||t,n.fail=y(e)&&e,n.domain=c?H.domain:void 0,r.state==G?r.reactions.add(n):w((function(){$(n,r)})),n.promise})),i=function(){var t=new n,e=V(t);this.promise=t,this.resolve=at(st,e),this.reject=at(ot,e)},P.f=B=function(t){return t===_||t===a?new i(t):U(t)},!u&&y(A)&&L!==Object.prototype)){o=L.then,R||f(L,"then",(function(t,e){var r=this;return new _((function(t,e){h(o,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete L.constructor}catch(ut){}v&&v(L,D)}s({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:_}),p(_,j,!1,!0),g(j)},"uZ/K":function(t,e,r){var n=r("ba8b");t.exports=Array.isArray||function(t){return"Array"==n(t)}},ueY1:function(t,e,r){var n=r("FlRv").f,i=r("YELS"),a=r("11yv"),o=a("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!i(t,o)&&n(t,o,{configurable:!0,value:e})}},uoua:function(t,e,r){var n=r("3Xd8"),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw i("Incorrect invocation")}},"v/rq":function(t,e,r){var n=r("aNIs"),i=r("eRwv");t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},vTDQ:function(t,e,r){var n=r("dAmL"),i=r("IGIO");t.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},vkZI:function(t,e,r){var n=r("p5Ma"),i=r("XaNE");t.exports=function(t){return n(i(t))}},vrKp:function(t,e,r){r("tZjp"),r("A2dy"),r("13vt"),r("D0VN"),r("ESVS"),r("jCYL")},wOD2:function(t,e,r){"use strict";var n=r("nCzB"),i=r("RXj+").trim,a=r("5JCY");n({target:"String",proto:!0,forced:a("trim")},{trim:function(){return i(this)}})},x0Ve:function(t,e){t.exports=function(t){return null===t||void 0===t}},"x1+7":function(t,e,r){var n=r("RYfq"),i=r("aLaa"),a=r("QrM1"),o=r("UCFi"),s=r("WxoH"),u=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=a.f(s(t)),r=o.f;return r?u(e,r(t)):e}},x8x8:function(t,e,r){"use strict";var n=r("1mOU"),i=r("m7zg"),a=r("aLaa"),o=r("WONN"),s=r("eRwv"),u=r("WxoH"),c=r("JTf3"),l=r("x0Ve"),h=r("SN6V"),f=r("c3MK"),v=r("qzpy"),p=r("XaNE"),g=r("M/+V"),d=r("oK8H"),y=r("Ne/+"),m=r("3fk+"),b=r("11yv"),x=b("replace"),O=Math.max,w=Math.min,S=a([].concat),k=a([].push),T=a("".indexOf),E=a("".slice),A=function(t){return void 0===t?t:String(t)},C=function(){return"$0"==="a".replace(/./,"$0")}(),P=function(){return!!/./[x]&&""===/./[x]("a","$0")}(),j=!s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}));o("replace",(function(t,e,r){var a=P?"$":"$0";return[function(t,r){var n=p(this),a=l(t)?void 0:d(t,x);return a?i(a,t,n,r):i(e,v(n),t,r)},function(t,i){var o=u(this),s=v(t);if("string"==typeof i&&-1===T(i,a)&&-1===T(i,"$<")){var l=r(e,o,s,i);if(l.done)return l.value}var p=c(i);p||(i=v(i));var d=o.global;if(d){var b=o.unicode;o.lastIndex=0}var x=[];while(1){var C=m(o,s);if(null===C)break;if(k(x,C),!d)break;var P=v(C[0]);""===P&&(o.lastIndex=g(s,f(o.lastIndex),b))}for(var j="",N=0,M=0;M<x.length;M++){C=x[M];for(var R=v(C[0]),V=O(w(h(C.index),s.length),0),I=[],L=1;L<C.length;L++)k(I,A(C[L]));var _=C.groups;if(p){var D=S([R],I,V,s);void 0!==_&&k(D,_);var z=v(n(i,void 0,D))}else z=y(R,s,V,I,_,i);V>=N&&(j+=E(s,N,V)+z,N=V+R.length)}return j+E(s,N)}]}),!j||!C||P)},yD9w:function(t,e,r){"use strict";var n=r("N6FT").PROPER,i=r("WaP5"),a=r("WxoH"),o=r("qzpy"),s=r("eRwv"),u=r("Vgcz"),c="toString",l=RegExp.prototype,h=l[c],f=s((function(){return"/a/b"!=h.call({source:"a",flags:"b"})})),v=n&&h.name!=c;(f||v)&&i(RegExp.prototype,c,(function(){var t=a(this),e=o(t.source),r=o(u(t));return"/"+e+"/"+r}),{unsafe:!0})},yXPU:function(t,e){function r(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value}catch(c){return void r(c)}s.done?e(u):Promise.resolve(u).then(n,i)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(i,a){var o=t.apply(e,n);function s(t){r(o,i,a,s,u,"next",t)}function u(t){r(o,i,a,s,u,"throw",t)}s(void 0)}))}}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},ymN0:function(t,e,r){var n=r("aLaa"),i=r("SN6V"),a=r("qzpy"),o=r("XaNE"),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,h=a(o(e)),f=i(r),v=h.length;return f<0||f>=v?t?"":void 0:(n=u(h,f),n<55296||n>56319||f+1===v||(l=u(h,f+1))<56320||l>57343?t?s(h,f):n:t?c(h,f,f+2):l-56320+(n-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},zFjv:function(t,e,r){"use strict";var n=r("8HiI"),i=TypeError,a=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw i("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new a(t)}},zUnQ:function(t,e){var r=function(){this.head=null,this.tail=null};r.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return null===e&&(this.tail=null),t.item}}},t.exports=r}}]); |