(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;rt.phi1&&(t.phi2-=2*u),1===t.sweepFlag&&t.phi2n)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)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;yu.maxX&&(u.maxX=t),tu.maxY&&(u.maxY=t),tV&&h(d(r,i.x1,i.x2,i.x,V));for(var m=0,b=g(n,i.y1,i.y2,i.y);mV&&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.phi1i.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 nA&&VA&&Vu)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=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=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=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]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;a1&&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;a0}},{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=0;n--)e[n].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n2&&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),tthis.x2&&(this.x2=t)),"undefined"!==typeof e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.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=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;r1&&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;fs?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)&&r0&&" "!==o&&r0&&" "!==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=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;i0?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;c0?"":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.begin0&&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;eu?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-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;v0&&(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)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;s5&&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));ne)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=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;u1&&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;e2&&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=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]*>)/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;l0&&(!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;u3&&(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 "+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>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+($>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)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("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$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(t79&&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,"$")}));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=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}}]);