You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/138.eb59f2ce.async.js

19 lines
173 KiB

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