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.
19 lines
182 KiB
19 lines
182 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{"++4Y":function(m,x,t){var u=t("eRwv");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,t){var u=t("11yv"),h=u("match");m.exports=function(c){var g=/./;try{"/./"[c](g)}catch(y){try{return g[h]=!1,"/./"[c](g)}catch(T){}}return!1}},"/dXc":function(m,x){var t=Math.ceil,u=Math.floor;m.exports=Math.trunc||function(c){var g=+c;return(g>0?u:t)(g)}},"/pbl":function(m,x,t){var u=t("eE3R");m.exports=/web0s(?!.*chrome)/i.test(u)},"013W":function(m,x){var t=typeof document=="object"&&document.all,u=typeof t=="undefined"&&t!==void 0;m.exports={all:t,IS_HTMLDDA:u}},"0B/8":function(m,x,t){"use strict";t.d(x,"a",function(){return D});/*! *****************************************************************************
|
|
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(N,F){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,nt){A.__proto__=nt}||function(A,nt){for(var at in nt)Object.prototype.hasOwnProperty.call(nt,at)&&(A[at]=nt[at])})(N,F)};function h(C,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");function F(){this.constructor=C}u(C,N),C.prototype=N===null?Object.create(N):(F.prototype=N.prototype,new F)}function c(C){var N="";Array.isArray(C)||(C=[C]);for(var F=0;F<C.length;F++){var A=C[F];if(A.type===D.CLOSE_PATH)N+="z";else if(A.type===D.HORIZ_LINE_TO)N+=(A.relative?"h":"H")+A.x;else if(A.type===D.VERT_LINE_TO)N+=(A.relative?"v":"V")+A.y;else if(A.type===D.MOVE_TO)N+=(A.relative?"m":"M")+A.x+" "+A.y;else if(A.type===D.LINE_TO)N+=(A.relative?"l":"L")+A.x+" "+A.y;else if(A.type===D.CURVE_TO)N+=(A.relative?"c":"C")+A.x1+" "+A.y1+" "+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===D.SMOOTH_CURVE_TO)N+=(A.relative?"s":"S")+A.x2+" "+A.y2+" "+A.x+" "+A.y;else if(A.type===D.QUAD_TO)N+=(A.relative?"q":"Q")+A.x1+" "+A.y1+" "+A.x+" "+A.y;else if(A.type===D.SMOOTH_QUAD_TO)N+=(A.relative?"t":"T")+A.x+" "+A.y;else{if(A.type!==D.ARC)throw new Error('Unexpected command type "'+A.type+'" at index '+F+".");N+=(A.relative?"a":"A")+A.rX+" "+A.rY+" "+A.xRot+" "+ +A.lArcFlag+" "+ +A.sweepFlag+" "+A.x+" "+A.y}}return N}function g(C,N){var F=C[0],A=C[1];return[F*Math.cos(N)-A*Math.sin(N),F*Math.sin(N)+A*Math.cos(N)]}function y(){for(var C=[],N=0;N<arguments.length;N++)C[N]=arguments[N];for(var F=0;F<C.length;F++)if(typeof C[F]!="number")throw new Error("assertNumbers arguments["+F+"] is not a number. "+typeof C[F]+" == typeof "+C[F]);return!0}var T=Math.PI;function P(C,N,F){C.lArcFlag=C.lArcFlag===0?0:1,C.sweepFlag=C.sweepFlag===0?0:1;var A=C.rX,nt=C.rY,at=C.x,tt=C.y;A=Math.abs(C.rX),nt=Math.abs(C.rY);var O=g([(N-at)/2,(F-tt)/2],-C.xRot/180*T),$=O[0],b=O[1],R=Math.pow($,2)/Math.pow(A,2)+Math.pow(b,2)/Math.pow(nt,2);1<R&&(A*=Math.sqrt(R),nt*=Math.sqrt(R)),C.rX=A,C.rY=nt;var Y=Math.pow(A,2)*Math.pow(b,2)+Math.pow(nt,2)*Math.pow($,2),w=(C.lArcFlag!==C.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(A,2)*Math.pow(nt,2)-Y)/Y)),V=A*b/nt*w,Q=-nt*$/A*w,H=g([V,Q],C.xRot/180*T);C.cX=H[0]+(N+at)/2,C.cY=H[1]+(F+tt)/2,C.phi1=Math.atan2((b-Q)/nt,($-V)/A),C.phi2=Math.atan2((-b-Q)/nt,(-$-V)/A),C.sweepFlag===0&&C.phi2>C.phi1&&(C.phi2-=2*T),C.sweepFlag===1&&C.phi2<C.phi1&&(C.phi2+=2*T),C.phi1*=180/T,C.phi2*=180/T}function I(C,N,F){y(C,N,F);var A=C*C+N*N-F*F;if(0>A)return[];if(A===0)return[[C*F/(C*C+N*N),N*F/(C*C+N*N)]];var nt=Math.sqrt(A);return[[(C*F+N*nt)/(C*C+N*N),(N*F-C*nt)/(C*C+N*N)],[(C*F-N*nt)/(C*C+N*N),(N*F+C*nt)/(C*C+N*N)]]}var S,L=Math.PI/180;function B(C,N,F){return(1-F)*C+F*N}function j(C,N,F,A){return C+Math.cos(A/180*T)*N+Math.sin(A/180*T)*F}function W(C,N,F,A){var nt=1e-6,at=N-C,tt=F-N,O=3*at+3*(A-F)-6*tt,$=6*(tt-at),b=3*at;return Math.abs(O)<nt?[-b/$]:function(R,Y,w){w===void 0&&(w=1e-6);var V=R*R/4-Y;if(V<-w)return[];if(V<=w)return[-R/2];var Q=Math.sqrt(V);return[-R/2-Q,-R/2+Q]}($/O,b/O,nt)}function G(C,N,F,A,nt){var at=1-nt;return C*(at*at*at)+N*(3*at*at*nt)+F*(3*at*nt*nt)+A*(nt*nt*nt)}!function(C){function N(){return nt(function(O,$,b){return O.relative&&(O.x1!==void 0&&(O.x1+=$),O.y1!==void 0&&(O.y1+=b),O.x2!==void 0&&(O.x2+=$),O.y2!==void 0&&(O.y2+=b),O.x!==void 0&&(O.x+=$),O.y!==void 0&&(O.y+=b),O.relative=!1),O})}function F(){var O=NaN,$=NaN,b=NaN,R=NaN;return nt(function(Y,w,V){return Y.type&D.SMOOTH_CURVE_TO&&(Y.type=D.CURVE_TO,O=isNaN(O)?w:O,$=isNaN($)?V:$,Y.x1=Y.relative?w-O:2*w-O,Y.y1=Y.relative?V-$:2*V-$),Y.type&D.CURVE_TO?(O=Y.relative?w+Y.x2:Y.x2,$=Y.relative?V+Y.y2:Y.y2):(O=NaN,$=NaN),Y.type&D.SMOOTH_QUAD_TO&&(Y.type=D.QUAD_TO,b=isNaN(b)?w:b,R=isNaN(R)?V:R,Y.x1=Y.relative?w-b:2*w-b,Y.y1=Y.relative?V-R:2*V-R),Y.type&D.QUAD_TO?(b=Y.relative?w+Y.x1:Y.x1,R=Y.relative?V+Y.y1:Y.y1):(b=NaN,R=NaN),Y})}function A(){var O=NaN,$=NaN;return nt(function(b,R,Y){if(b.type&D.SMOOTH_QUAD_TO&&(b.type=D.QUAD_TO,O=isNaN(O)?R:O,$=isNaN($)?Y:$,b.x1=b.relative?R-O:2*R-O,b.y1=b.relative?Y-$:2*Y-$),b.type&D.QUAD_TO){O=b.relative?R+b.x1:b.x1,$=b.relative?Y+b.y1:b.y1;var w=b.x1,V=b.y1;b.type=D.CURVE_TO,b.x1=((b.relative?0:R)+2*w)/3,b.y1=((b.relative?0:Y)+2*V)/3,b.x2=(b.x+2*w)/3,b.y2=(b.y+2*V)/3}else O=NaN,$=NaN;return b})}function nt(O){var $=0,b=0,R=NaN,Y=NaN;return function(w){if(isNaN(R)&&!(w.type&D.MOVE_TO))throw new Error("path must start with moveto");var V=O(w,$,b,R,Y);return w.type&D.CLOSE_PATH&&($=R,b=Y),w.x!==void 0&&($=w.relative?$+w.x:w.x),w.y!==void 0&&(b=w.relative?b+w.y:w.y),w.type&D.MOVE_TO&&(R=$,Y=b),V}}function at(O,$,b,R,Y,w){return y(O,$,b,R,Y,w),nt(function(V,Q,H,J){var k=V.x1,ft=V.x2,pt=V.relative&&!isNaN(J),ut=V.x!==void 0?V.x:pt?0:Q,Nt=V.y!==void 0?V.y:pt?0:H;function St(ot){return ot*ot}V.type&D.HORIZ_LINE_TO&&$!==0&&(V.type=D.LINE_TO,V.y=V.relative?0:H),V.type&D.VERT_LINE_TO&&b!==0&&(V.type=D.LINE_TO,V.x=V.relative?0:Q),V.x!==void 0&&(V.x=V.x*O+Nt*b+(pt?0:Y)),V.y!==void 0&&(V.y=ut*$+V.y*R+(pt?0:w)),V.x1!==void 0&&(V.x1=V.x1*O+V.y1*b+(pt?0:Y)),V.y1!==void 0&&(V.y1=k*$+V.y1*R+(pt?0:w)),V.x2!==void 0&&(V.x2=V.x2*O+V.y2*b+(pt?0:Y)),V.y2!==void 0&&(V.y2=ft*$+V.y2*R+(pt?0:w));var Ot=O*R-$*b;if(V.xRot!==void 0&&(O!==1||$!==0||b!==0||R!==1))if(Ot===0)delete V.rX,delete V.rY,delete V.xRot,delete V.lArcFlag,delete V.sweepFlag,V.type=D.LINE_TO;else{var It=V.xRot*Math.PI/180,Vt=Math.sin(It),Bt=Math.cos(It),Dt=1/St(V.rX),Ft=1/St(V.rY),Ct=St(Bt)*Dt+St(Vt)*Ft,Gt=2*Vt*Bt*(Dt-Ft),wt=St(Vt)*Dt+St(Bt)*Ft,Yt=Ct*R*R-Gt*$*R+wt*$*$,Lt=Gt*(O*R+$*b)-2*(Ct*b*R+wt*O*$),Jt=Ct*b*b-Gt*O*b+wt*O*O,jt=(Math.atan2(Lt,Yt-Jt)+Math.PI)%Math.PI/2,Tt=Math.sin(jt),$t=Math.cos(jt);V.rX=Math.abs(Ot)/Math.sqrt(Yt*St($t)+Lt*Tt*$t+Jt*St(Tt)),V.rY=Math.abs(Ot)/Math.sqrt(Yt*St(Tt)-Lt*Tt*$t+Jt*St($t)),V.xRot=180*jt/Math.PI}return V.sweepFlag!==void 0&&0>Ot&&(V.sweepFlag=+!V.sweepFlag),V})}function tt(){return function(O){var $={};for(var b in O)$[b]=O[b];return $}}C.ROUND=function(O){function $(b){return Math.round(b*O)/O}return O===void 0&&(O=1e13),y(O),function(b){return b.x1!==void 0&&(b.x1=$(b.x1)),b.y1!==void 0&&(b.y1=$(b.y1)),b.x2!==void 0&&(b.x2=$(b.x2)),b.y2!==void 0&&(b.y2=$(b.y2)),b.x!==void 0&&(b.x=$(b.x)),b.y!==void 0&&(b.y=$(b.y)),b.rX!==void 0&&(b.rX=$(b.rX)),b.rY!==void 0&&(b.rY=$(b.rY)),b}},C.TO_ABS=N,C.TO_REL=function(){return nt(function(O,$,b){return O.relative||(O.x1!==void 0&&(O.x1-=$),O.y1!==void 0&&(O.y1-=b),O.x2!==void 0&&(O.x2-=$),O.y2!==void 0&&(O.y2-=b),O.x!==void 0&&(O.x-=$),O.y!==void 0&&(O.y-=b),O.relative=!0),O})},C.NORMALIZE_HVZ=function(O,$,b){return O===void 0&&(O=!0),$===void 0&&($=!0),b===void 0&&(b=!0),nt(function(R,Y,w,V,Q){if(isNaN(V)&&!(R.type&D.MOVE_TO))throw new Error("path must start with moveto");return $&&R.type&D.HORIZ_LINE_TO&&(R.type=D.LINE_TO,R.y=R.relative?0:w),b&&R.type&D.VERT_LINE_TO&&(R.type=D.LINE_TO,R.x=R.relative?0:Y),O&&R.type&D.CLOSE_PATH&&(R.type=D.LINE_TO,R.x=R.relative?V-Y:V,R.y=R.relative?Q-w:Q),R.type&D.ARC&&(R.rX===0||R.rY===0)&&(R.type=D.LINE_TO,delete R.rX,delete R.rY,delete R.xRot,delete R.lArcFlag,delete R.sweepFlag),R})},C.NORMALIZE_ST=F,C.QT_TO_C=A,C.INFO=nt,C.SANITIZE=function(O){O===void 0&&(O=0),y(O);var $=NaN,b=NaN,R=NaN,Y=NaN;return nt(function(w,V,Q,H,J){var k=Math.abs,ft=!1,pt=0,ut=0;if(w.type&D.SMOOTH_CURVE_TO&&(pt=isNaN($)?0:V-$,ut=isNaN(b)?0:Q-b),w.type&(D.CURVE_TO|D.SMOOTH_CURVE_TO)?($=w.relative?V+w.x2:w.x2,b=w.relative?Q+w.y2:w.y2):($=NaN,b=NaN),w.type&D.SMOOTH_QUAD_TO?(R=isNaN(R)?V:2*V-R,Y=isNaN(Y)?Q:2*Q-Y):w.type&D.QUAD_TO?(R=w.relative?V+w.x1:w.x1,Y=w.relative?Q+w.y1:w.y2):(R=NaN,Y=NaN),w.type&D.LINE_COMMANDS||w.type&D.ARC&&(w.rX===0||w.rY===0||!w.lArcFlag)||w.type&D.CURVE_TO||w.type&D.SMOOTH_CURVE_TO||w.type&D.QUAD_TO||w.type&D.SMOOTH_QUAD_TO){var Nt=w.x===void 0?0:w.relative?w.x:w.x-V,St=w.y===void 0?0:w.relative?w.y:w.y-Q;pt=isNaN(R)?w.x1===void 0?pt:w.relative?w.x:w.x1-V:R-V,ut=isNaN(Y)?w.y1===void 0?ut:w.relative?w.y:w.y1-Q:Y-Q;var Ot=w.x2===void 0?0:w.relative?w.x:w.x2-V,It=w.y2===void 0?0:w.relative?w.y:w.y2-Q;k(Nt)<=O&&k(St)<=O&&k(pt)<=O&&k(ut)<=O&&k(Ot)<=O&&k(It)<=O&&(ft=!0)}return w.type&D.CLOSE_PATH&&k(V-H)<=O&&k(Q-J)<=O&&(ft=!0),ft?[]:w})},C.MATRIX=at,C.ROTATE=function(O,$,b){$===void 0&&($=0),b===void 0&&(b=0),y(O,$,b);var R=Math.sin(O),Y=Math.cos(O);return at(Y,R,-R,Y,$-$*Y+b*R,b-$*R-b*Y)},C.TRANSLATE=function(O,$){return $===void 0&&($=0),y(O,$),at(1,0,0,1,O,$)},C.SCALE=function(O,$){return $===void 0&&($=O),y(O,$),at(O,0,0,$,0,0)},C.SKEW_X=function(O){return y(O),at(1,0,Math.atan(O),1,0,0)},C.SKEW_Y=function(O){return y(O),at(1,Math.atan(O),0,1,0,0)},C.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(-1,0,0,1,O,0)},C.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(1,0,0,-1,0,O)},C.A_TO_C=function(){return nt(function(O,$,b){return D.ARC===O.type?function(R,Y,w){var V,Q,H,J;R.cX||P(R,Y,w);for(var k=Math.min(R.phi1,R.phi2),ft=Math.max(R.phi1,R.phi2)-k,pt=Math.ceil(ft/90),ut=new Array(pt),Nt=Y,St=w,Ot=0;Ot<pt;Ot++){var It=B(R.phi1,R.phi2,Ot/pt),Vt=B(R.phi1,R.phi2,(Ot+1)/pt),Bt=Vt-It,Dt=4/3*Math.tan(Bt*L/4),Ft=[Math.cos(It*L)-Dt*Math.sin(It*L),Math.sin(It*L)+Dt*Math.cos(It*L)],Ct=Ft[0],Gt=Ft[1],wt=[Math.cos(Vt*L),Math.sin(Vt*L)],Yt=wt[0],Lt=wt[1],Jt=[Yt+Dt*Math.sin(Vt*L),Lt-Dt*Math.cos(Vt*L)],jt=Jt[0],Tt=Jt[1];ut[Ot]={relative:R.relative,type:D.CURVE_TO};var $t=function(gt,bt){var Rt=g([gt*R.rX,bt*R.rY],R.xRot),Mt=Rt[0],re=Rt[1];return[R.cX+Mt,R.cY+re]};V=$t(Ct,Gt),ut[Ot].x1=V[0],ut[Ot].y1=V[1],Q=$t(jt,Tt),ut[Ot].x2=Q[0],ut[Ot].y2=Q[1],H=$t(Yt,Lt),ut[Ot].x=H[0],ut[Ot].y=H[1],R.relative&&(ut[Ot].x1-=Nt,ut[Ot].y1-=St,ut[Ot].x2-=Nt,ut[Ot].y2-=St,ut[Ot].x-=Nt,ut[Ot].y-=St),Nt=(J=[ut[Ot].x,ut[Ot].y])[0],St=J[1]}return ut}(O,O.relative?0:$,O.relative?0:b):O})},C.ANNOTATE_ARCS=function(){return nt(function(O,$,b){return O.relative&&($=0,b=0),D.ARC===O.type&&P(O,$,b),O})},C.CLONE=tt,C.CALCULATE_BOUNDS=function(){var O=function(V){var Q={};for(var H in V)Q[H]=V[H];return Q},$=N(),b=A(),R=F(),Y=nt(function(w,V,Q){var H=R(b($(O(w))));function J(Tt){Tt>Y.maxX&&(Y.maxX=Tt),Tt<Y.minX&&(Y.minX=Tt)}function k(Tt){Tt>Y.maxY&&(Y.maxY=Tt),Tt<Y.minY&&(Y.minY=Tt)}if(H.type&D.DRAWING_COMMANDS&&(J(V),k(Q)),H.type&D.HORIZ_LINE_TO&&J(H.x),H.type&D.VERT_LINE_TO&&k(H.y),H.type&D.LINE_TO&&(J(H.x),k(H.y)),H.type&D.CURVE_TO){J(H.x),k(H.y);for(var ft=0,pt=W(V,H.x1,H.x2,H.x);ft<pt.length;ft++)0<(jt=pt[ft])&&1>jt&&J(G(V,H.x1,H.x2,H.x,jt));for(var ut=0,Nt=W(Q,H.y1,H.y2,H.y);ut<Nt.length;ut++)0<(jt=Nt[ut])&&1>jt&&k(G(Q,H.y1,H.y2,H.y,jt))}if(H.type&D.ARC){J(H.x),k(H.y),P(H,V,Q);for(var St=H.xRot/180*Math.PI,Ot=Math.cos(St)*H.rX,It=Math.sin(St)*H.rX,Vt=-Math.sin(St)*H.rY,Bt=Math.cos(St)*H.rY,Dt=H.phi1<H.phi2?[H.phi1,H.phi2]:-180>H.phi2?[H.phi2+360,H.phi1+360]:[H.phi2,H.phi1],Ft=Dt[0],Ct=Dt[1],Gt=function($t){var ot=$t[0],gt=$t[1],bt=180*Math.atan2(gt,ot)/Math.PI;return bt<Ft?bt+360:bt},wt=0,Yt=I(Vt,-Ot,0).map(Gt);wt<Yt.length;wt++)(jt=Yt[wt])>Ft&&jt<Ct&&J(j(H.cX,Ot,Vt,jt));for(var Lt=0,Jt=I(Bt,-It,0).map(Gt);Lt<Jt.length;Lt++){var jt;(jt=Jt[Lt])>Ft&&jt<Ct&&k(j(H.cY,It,Bt,jt))}}return w});return Y.minX=1/0,Y.maxX=-1/0,Y.minY=1/0,Y.maxY=-1/0,Y}}(S||(S={}));var M,X=function(){function C(){}return C.prototype.round=function(N){return this.transform(S.ROUND(N))},C.prototype.toAbs=function(){return this.transform(S.TO_ABS())},C.prototype.toRel=function(){return this.transform(S.TO_REL())},C.prototype.normalizeHVZ=function(N,F,A){return this.transform(S.NORMALIZE_HVZ(N,F,A))},C.prototype.normalizeST=function(){return this.transform(S.NORMALIZE_ST())},C.prototype.qtToC=function(){return this.transform(S.QT_TO_C())},C.prototype.aToC=function(){return this.transform(S.A_TO_C())},C.prototype.sanitize=function(N){return this.transform(S.SANITIZE(N))},C.prototype.translate=function(N,F){return this.transform(S.TRANSLATE(N,F))},C.prototype.scale=function(N,F){return this.transform(S.SCALE(N,F))},C.prototype.rotate=function(N,F,A){return this.transform(S.ROTATE(N,F,A))},C.prototype.matrix=function(N,F,A,nt,at,tt){return this.transform(S.MATRIX(N,F,A,nt,at,tt))},C.prototype.skewX=function(N){return this.transform(S.SKEW_X(N))},C.prototype.skewY=function(N){return this.transform(S.SKEW_Y(N))},C.prototype.xSymmetry=function(N){return this.transform(S.X_AXIS_SYMMETRY(N))},C.prototype.ySymmetry=function(N){return this.transform(S.Y_AXIS_SYMMETRY(N))},C.prototype.annotateArcs=function(){return this.transform(S.ANNOTATE_ARCS())},C}(),q=function(N){return N===" "||N===" "||N==="\r"||N===`
|
|
`},z=function(N){return"0".charCodeAt(0)<=N.charCodeAt(0)&&N.charCodeAt(0)<="9".charCodeAt(0)},Z=function(C){function N(){var F=C.call(this)||this;return F.curNumber="",F.curCommandType=-1,F.curCommandRelative=!1,F.canParseCommandOrComma=!0,F.curNumberHasExp=!1,F.curNumberHasExpDigits=!1,F.curNumberHasDecimal=!1,F.curArgs=[],F}return h(N,C),N.prototype.finish=function(F){if(F===void 0&&(F=[]),this.parse(" ",F),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return F},N.prototype.parse=function(F,A){var nt=this;A===void 0&&(A=[]);for(var at=function(w){A.push(w),nt.curArgs.length=0,nt.canParseCommandOrComma=!0},tt=0;tt<F.length;tt++){var O=F[tt],$=!(this.curCommandType!==D.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),b=z(O)&&(this.curNumber==="0"&&O==="0"||$);if(!z(O)||b)if(O!=="e"&&O!=="E")if(O!=="-"&&O!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(O!=="."||this.curNumberHasExp||this.curNumberHasDecimal||$){if(this.curNumber&&this.curCommandType!==-1){var R=Number(this.curNumber);if(isNaN(R))throw new SyntaxError("Invalid number ending at "+tt);if(this.curCommandType===D.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>R)throw new SyntaxError('Expected positive number, got "'+R+'" at index "'+tt+'"')}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 "'+tt+'"')}this.curArgs.push(R),this.curArgs.length===lt[this.curCommandType]&&(D.HORIZ_LINE_TO===this.curCommandType?at({type:D.HORIZ_LINE_TO,relative:this.curCommandRelative,x:R}):D.VERT_LINE_TO===this.curCommandType?at({type:D.VERT_LINE_TO,relative:this.curCommandRelative,y:R}):this.curCommandType===D.MOVE_TO||this.curCommandType===D.LINE_TO||this.curCommandType===D.SMOOTH_QUAD_TO?(at({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),D.MOVE_TO===this.curCommandType&&(this.curCommandType=D.LINE_TO)):this.curCommandType===D.CURVE_TO?at({type:D.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===D.SMOOTH_CURVE_TO?at({type:D.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.QUAD_TO?at({type:D.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===D.ARC&&at({type:D.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(!q(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(b)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+tt+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+tt+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=D.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=D.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=D.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=D.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=D.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=D.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=D.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=D.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+tt+".");this.curCommandType=D.ARC,this.curCommandRelative=O==="a"}else A.push({type:D.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=O,this.curNumberHasDecimal=O==="."}else this.curNumber+=O,this.curNumberHasDecimal=!0;else this.curNumber+=O;else this.curNumber+=O,this.curNumberHasExp=!0;else this.curNumber+=O,this.curNumberHasExpDigits=this.curNumberHasExp}return A},N.prototype.transform=function(F){return Object.create(this,{parse:{value:function(nt,at){at===void 0&&(at=[]);for(var tt=0,O=Object.getPrototypeOf(this).parse.call(this,nt);tt<O.length;tt++){var $=O[tt],b=F($);Array.isArray(b)?at.push.apply(at,b):at.push(b)}return at}}})},N}(X),D=function(C){function N(F){var A=C.call(this)||this;return A.commands=typeof F=="string"?N.parse(F):F,A}return h(N,C),N.prototype.encode=function(){return N.encode(this.commands)},N.prototype.getBounds=function(){var F=S.CALCULATE_BOUNDS();return this.transform(F),F},N.prototype.transform=function(F){for(var A=[],nt=0,at=this.commands;nt<at.length;nt++){var tt=F(at[nt]);Array.isArray(tt)?A.push.apply(A,tt):A.push(tt)}return this.commands=A,this},N.encode=function(F){return c(F)},N.parse=function(F){var A=new Z,nt=[];return A.parse(F,nt),A.finish(nt),nt},N.CLOSE_PATH=1,N.MOVE_TO=2,N.HORIZ_LINE_TO=4,N.VERT_LINE_TO=8,N.LINE_TO=16,N.CURVE_TO=32,N.SMOOTH_CURVE_TO=64,N.QUAD_TO=128,N.SMOOTH_QUAD_TO=256,N.ARC=512,N.LINE_COMMANDS=N.LINE_TO|N.HORIZ_LINE_TO|N.VERT_LINE_TO,N.DRAWING_COMMANDS=N.HORIZ_LINE_TO|N.VERT_LINE_TO|N.LINE_TO|N.CURVE_TO|N.SMOOTH_CURVE_TO|N.QUAD_TO|N.SMOOTH_QUAD_TO|N.ARC,N}(X),lt=((M={})[D.MOVE_TO]=2,M[D.LINE_TO]=2,M[D.HORIZ_LINE_TO]=1,M[D.VERT_LINE_TO]=1,M[D.CLOSE_PATH]=0,M[D.QUAD_TO]=4,M[D.SMOOTH_QUAD_TO]=2,M[D.CURVE_TO]=6,M[D.SMOOTH_CURVE_TO]=4,M[D.ARC]=7,M)},"0r2v":function(m,x,t){var u=t("aLaa");m.exports=u([].slice)},"11yv":function(m,x,t){var u=t("Ks5W"),h=t("aNr2"),c=t("YELS"),g=t("MURR"),y=t("v/rq"),T=t("1Sr1"),P=h("wks"),I=u.Symbol,S=I&&I.for,L=T?I:I&&I.withoutSetter||g;m.exports=function(B){if(!c(P,B)||!(y||typeof P[B]=="string")){var j="Symbol."+B;y&&c(I,B)?P[B]=I[B]:T&&S?P[B]=S(j):P[B]=L(j)}return P[B]}},"13vt":function(m,x,t){"use strict";var u=t("nCzB"),h=t("jybJ"),c=t("GxTi").CONSTRUCTOR,g=t("KLK4"),y=t("RYfq"),T=t("JTf3"),P=t("WaP5"),I=g&&g.prototype;if(u({target:"Promise",proto:!0,forced:c,real:!0},{catch:function(L){return this.then(void 0,L)}}),!h&&T(g)){var S=y("Promise").prototype.catch;I.catch!==S&&P(I,"catch",S,{unsafe:!0})}},"1Sr1":function(m,x,t){var u=t("v/rq");m.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"1mOU":function(m,x,t){var u=t("66qH"),h=Function.prototype,c=h.apply,g=h.call;m.exports=typeof Reflect=="object"&&Reflect.apply||(u?g.bind(c):function(){return g.apply(c,arguments)})},"2YF/":function(m,x,t){var u=t("KLK4"),h=t("X/EZ"),c=t("GxTi").CONSTRUCTOR;m.exports=c||!h(function(g){u.all(g).then(void 0,function(){})})},"2lHc":function(m,x,t){var u=t("m7zg"),h=t("JTf3"),c=t("SwuV"),g=TypeError;m.exports=function(y,T){var P,I;if(T==="string"&&h(P=y.toString)&&!c(I=u(P,y)))return I;if(h(P=y.valueOf)&&!c(I=u(P,y)))return I;if(T!=="string"&&h(P=y.toString)&&!c(I=u(P,y)))return I;throw g("Can't convert object to primitive value")}},"3DCu":function(m,x,t){var u=t("eRwv"),h=t("JTf3"),c=t("YELS"),g=t("++4Y"),y=t("N6FT").CONFIGURABLE,T=t("sNJV"),P=t("UQ6y"),I=P.enforce,S=P.get,L=Object.defineProperty,B=g&&!u(function(){return L(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),W=m.exports=function(G,M,X){String(M).slice(0,7)==="Symbol("&&(M="["+String(M).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),X&&X.getter&&(M="get "+M),X&&X.setter&&(M="set "+M),(!c(G,"name")||y&&G.name!==M)&&(g?L(G,"name",{value:M,configurable:!0}):G.name=M),B&&X&&c(X,"arity")&&G.length!==X.arity&&L(G,"length",{value:X.arity});try{X&&c(X,"constructor")&&X.constructor?g&&L(G,"prototype",{writable:!1}):G.prototype&&(G.prototype=void 0)}catch(z){}var q=I(G);return c(q,"source")||(q.source=j.join(typeof M=="string"?M:"")),G};Function.prototype.toString=W(function(){return h(this)&&S(this).source||T(this)},"toString")},"3Xd8":function(m,x,t){var u=t("aLaa");m.exports=u({}.isPrototypeOf)},"3fk+":function(m,x,t){var u=t("m7zg"),h=t("WxoH"),c=t("JTf3"),g=t("ba8b"),y=t("WMbf"),T=TypeError;m.exports=function(P,I){var S=P.exec;if(c(S)){var L=u(S,P,I);return L!==null&&h(L),L}if(g(P)==="RegExp")return u(y,P,I);throw T("RegExp#exec called on incompatible receiver")}},"3n0U":function(m,x,t){var u=t("11yv"),h=t("AoAp"),c=u("iterator"),g=Array.prototype;m.exports=function(y){return y!==void 0&&(h.Array===y||g[c]===y)}},"4Qxg":function(m,x,t){var u=t("eRwv"),h=t("Ks5W"),c=h.RegExp;m.exports=u(function(){var g=c(".","s");return!(g.dotAll&&g.exec(`
|
|
`)&&g.flags==="s")})},"4YbN":function(m,x,t){var u=t("aLaa"),h=t("eRwv"),c=t("JTf3"),g=t("g8+u"),y=t("RYfq"),T=t("sNJV"),P=function(){},I=[],S=y("Reflect","construct"),L=/^\s*(?:class|function)\b/,B=u(L.exec),j=!L.exec(P),W=function(X){if(!c(X))return!1;try{return S(P,I,X),!0}catch(q){return!1}},G=function(X){if(!c(X))return!1;switch(g(X)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return j||!!B(L,T(X))}catch(q){return!0}};G.sham=!0,m.exports=!S||h(function(){var M;return W(W.call)||!W(Object)||!W(function(){M=!0})||M})?G:W},"4gdG":function(m,x,t){var u=t("Ks5W"),h=t("X4md"),c="__core-js_shared__",g=u[c]||h(c,{});m.exports=g},"4uGi":function(m,x){m.exports=function(t,u){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:u}}},"5JCY":function(m,x,t){var u=t("N6FT").PROPER,h=t("eRwv"),c=t("noWC"),g="\u200B\x85\u180E";m.exports=function(y){return h(function(){return!!c[y]()||g[y]()!==g||u&&c[y].name!==y})}},"5r2E":function(m,x,t){"use strict";var u={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,c=h&&!u.call({1:2},1);x.f=c?function(y){var T=h(this,y);return!!T&&T.enumerable}:u},"66qH":function(m,x,t){var u=t("eRwv");m.exports=!u(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")})},"721z":function(m,x,t){var u=t("XaNE"),h=Object;m.exports=function(c){return h(u(c))}},"8HiI":function(m,x,t){var u=t("JTf3"),h=t("IL+x"),c=TypeError;m.exports=function(g){if(u(g))return g;throw c(h(g)+" is not a function")}},"8ODz":function(m,x,t){var u=t("++4Y"),h=t("FlRv"),c=t("4uGi");m.exports=u?function(g,y,T){return h.f(g,y,c(1,T))}:function(g,y,T){return g[y]=T,g}},"8Ys4":function(m,x,t){var u=t("n6S8"),h=t("tMNq"),c=t("oauk"),g=Array,y=Math.max;m.exports=function(T,P,I){for(var S=h(T),L=u(P,S),B=u(I===void 0?S:I,S),j=g(y(B-L,0)),W=0;L<B;L++,W++)c(j,W,T[L]);return j.length=W,j}},"8xe4":function(m,x){m.exports=function(t){try{return{error:!1,value:t()}}catch(u){return{error:!0,value:u}}}},"9Bi7":function(m,x,t){"use strict";var u=t("RYfq"),h=t("FlRv"),c=t("11yv"),g=t("++4Y"),y=c("species");m.exports=function(T){var P=u(T),I=h.f;g&&P&&!P[y]&&I(P,y,{configurable:!0,get:function(){return this}})}},A2dy:function(m,x,t){"use strict";var u=t("nCzB"),h=t("m7zg"),c=t("8HiI"),g=t("zFjv"),y=t("8xe4"),T=t("nvEG"),P=t("2YF/");u({target:"Promise",stat:!0,forced:P},{all:function(S){var L=this,B=g.f(L),j=B.resolve,W=B.reject,G=y(function(){var M=c(L.resolve),X=[],q=0,z=1;T(S,function(Z){var D=q++,lt=!1;z++,h(M,L,Z).then(function(C){if(lt)return;lt=!0,X[D]=C,--z||j(X)},W)}),--z||j(X)});return G.error&&W(G.value),B.promise}})},Ai06:function(m,x,t){var u=t("ZpKI"),h=t("Yzn+");m.exports=Object.keys||function(g){return u(g,h)}},AoAp:function(m,x){m.exports={}},COGW:function(m,x,t){var u=t("SwuV"),h=t("ba8b"),c=t("11yv"),g=c("match");m.exports=function(y){var T;return u(y)&&((T=y[g])!==void 0?!!T:h(y)=="RegExp")}},D0VN:function(m,x,t){"use strict";var u=t("nCzB"),h=t("m7zg"),c=t("8HiI"),g=t("zFjv"),y=t("8xe4"),T=t("nvEG"),P=t("2YF/");u({target:"Promise",stat:!0,forced:P},{race:function(S){var L=this,B=g.f(L),j=B.reject,W=y(function(){var G=c(L.resolve);T(S,function(M){h(G,L,M).then(B.resolve,j)})});return W.error&&j(W.value),B.promise}})},DXPr:function(m,x,t){"use strict";t.r(x),function(u){t.d(x,"AElement",function(){return Cr}),t.d(x,"AnimateColorElement",function(){return Er}),t.d(x,"AnimateElement",function(){return ze}),t.d(x,"AnimateTransformElement",function(){return Or}),t.d(x,"BoundingBox",function(){return ce}),t.d(x,"CB1",function(){return Se}),t.d(x,"CB2",function(){return me}),t.d(x,"CB3",function(){return ye}),t.d(x,"CB4",function(){return xe}),t.d(x,"Canvg",function(){return Hr}),t.d(x,"CircleElement",function(){return fr}),t.d(x,"ClipPathElement",function(){return Lr}),t.d(x,"DefsElement",function(){return pr}),t.d(x,"DescElement",function(){return Wr}),t.d(x,"Document",function(){return Ve}),t.d(x,"Element",function(){return Kt}),t.d(x,"EllipseElement",function(){return hr}),t.d(x,"FeColorMatrixElement",function(){return tr}),t.d(x,"FeCompositeElement",function(){return Vr}),t.d(x,"FeDropShadowElement",function(){return Ur}),t.d(x,"FeGaussianBlurElement",function(){return Br}),t.d(x,"FeMorphologyElement",function(){return wr}),t.d(x,"FilterElement",function(){return rr}),t.d(x,"Font",function(){return ve}),t.d(x,"FontElement",function(){return br}),t.d(x,"FontFaceElement",function(){return Tr}),t.d(x,"GElement",function(){return Ge}),t.d(x,"GlyphElement",function(){return ke}),t.d(x,"GradientElement",function(){return qe}),t.d(x,"ImageElement",function(){return Ir}),t.d(x,"LineElement",function(){return cr}),t.d(x,"LinearGradientElement",function(){return mr}),t.d(x,"MarkerElement",function(){return gr}),t.d(x,"MaskElement",function(){return er}),t.d(x,"Matrix",function(){return Ke}),t.d(x,"MissingGlyphElement",function(){return Pr}),t.d(x,"Mouse",function(){return je}),t.d(x,"PSEUDO_ZERO",function(){return Xt}),t.d(x,"Parser",function(){return We}),t.d(x,"PathElement",function(){return _t}),t.d(x,"PathParser",function(){return At}),t.d(x,"PatternElement",function(){return dr}),t.d(x,"Point",function(){return kt}),t.d(x,"PolygonElement",function(){return vr}),t.d(x,"PolylineElement",function(){return Ze}),t.d(x,"Property",function(){return mt}),t.d(x,"QB1",function(){return Ee}),t.d(x,"QB2",function(){return Ie}),t.d(x,"QB3",function(){return Ne}),t.d(x,"RadialGradientElement",function(){return yr}),t.d(x,"RectElement",function(){return Je}),t.d(x,"RenderedElement",function(){return Oe}),t.d(x,"Rotate",function(){return ir}),t.d(x,"SVGElement",function(){return Le}),t.d(x,"SVGFontLoader",function(){return Mr}),t.d(x,"Scale",function(){return or}),t.d(x,"Screen",function(){return de}),t.d(x,"Skew",function(){return Xe}),t.d(x,"SkewX",function(){return sr}),t.d(x,"SkewY",function(){return lr}),t.d(x,"StopElement",function(){return xr}),t.d(x,"StyleElement",function(){return _e}),t.d(x,"SymbolElement",function(){return Nr}),t.d(x,"TRefElement",function(){return Sr}),t.d(x,"TSpanElement",function(){return Qe}),t.d(x,"TextElement",function(){return De}),t.d(x,"TextPathElement",function(){return Ar}),t.d(x,"TitleElement",function(){return Fr}),t.d(x,"Transform",function(){return we}),t.d(x,"Translate",function(){return ar}),t.d(x,"UnknownElement",function(){return ur}),t.d(x,"UseElement",function(){return jr}),t.d(x,"ViewPort",function(){return Me}),t.d(x,"compressSpaces",function(){return Lt}),t.d(x,"default",function(){return Hr}),t.d(x,"getSelectorSpecificity",function(){return he}),t.d(x,"normalizeAttributeName",function(){return ot}),t.d(x,"normalizeColor",function(){return bt}),t.d(x,"parseExternalUrl",function(){return gt}),t.d(x,"presets",function(){return Yt}),t.d(x,"toNumbers",function(){return Tt}),t.d(x,"trimLeft",function(){return Jt}),t.d(x,"trimRight",function(){return jt}),t.d(x,"vectorMagnitude",function(){return Te}),t.d(x,"vectorsAngle",function(){return Pe}),t.d(x,"vectorsRatio",function(){return pe});var h=t("g9jQ"),c=t.n(h),g=t("Lltv"),y=t.n(g),T=t("mdxj"),P=t.n(T),I=t("iWRt"),S=t.n(I),L=t("vrKp"),B=t.n(L),j=t("yD9w"),W=t.n(j),G=t("GVkW"),M=t.n(G),X=t("MNKV"),q=t.n(X),z=t("KKe4"),Z=t.n(z),D=t("x8x8"),lt=t.n(D),C=t("NCkV"),N=t.n(C),F=t("KLN8"),A=t.n(F),nt=t("wOD2"),at=t.n(nt),tt=t("qJvV"),O=t.n(tt),$=t("Nsem"),b=t("rAM+"),R=t("tS8v"),Y=t("w4Tj"),w=t("oZsa"),V=t("oBTY"),Q=t("yKVA"),H=t("879j"),J=t("fWQN"),k=t("mtLc"),ft=t("tJVT"),pt=t("yXPU"),ut=t.n(pt),Nt=t("lSNA"),St=t.n(Nt),Ot=t("xEkU"),It=t.n(Ot),Vt=t("WOGj"),Bt=t.n(Vt),Dt=t("0B/8"),Ft=t("Xp4B");function Ct(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ct=function(){return d};var d={},f=Object.prototype,n=f.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},e=a.iterator||"@@iterator",i=a.asyncIterator||"@@asyncIterator",r=a.toStringTag||"@@toStringTag";function o(st,_,ct){return Object.defineProperty(st,_,{value:ct,enumerable:!0,configurable:!0,writable:!0}),st[_]}try{o({},"")}catch(st){o=function(ct,dt,Pt){return ct[dt]=Pt}}function s(st,_,ct,dt){var Pt=_&&_.prototype instanceof p?_:p,yt=Object.create(Pt.prototype),Ht=new Wt(dt||[]);return yt._invoke=function(ae,oe,zt){var te="suspendedStart";return function(ue,Be){if(te==="executing")throw new Error("Generator is already running");if(te==="completed"){if(ue==="throw")throw Be;return ie()}for(zt.method=ue,zt.arg=Be;;){var Fe=zt.delegate;if(Fe){var Ue=ht(Fe,zt);if(Ue){if(Ue===v)continue;return Ue}}if(zt.method==="next")zt.sent=zt._sent=zt.arg;else if(zt.method==="throw"){if(te==="suspendedStart")throw te="completed",zt.arg;zt.dispatchException(zt.arg)}else zt.method==="return"&&zt.abrupt("return",zt.arg);te="executing";var be=l(ae,oe,zt);if(be.type==="normal"){if(te=zt.done?"completed":"suspendedYield",be.arg===v)continue;return{value:be.arg,done:zt.done}}be.type==="throw"&&(te="completed",zt.method="throw",zt.arg=be.arg)}}}(st,ct,Ht),yt}function l(st,_,ct){try{return{type:"normal",arg:st.call(_,ct)}}catch(dt){return{type:"throw",arg:dt}}}d.wrap=s;var v={};function p(){}function E(){}function U(){}var K={};o(K,e,function(){return this});var et=Object.getPrototypeOf,it=et&&et(et(Qt([])));it&&it!==f&&n.call(it,e)&&(K=it);var rt=U.prototype=p.prototype=Object.create(K);function xt(st){["next","throw","return"].forEach(function(_){o(st,_,function(ct){return this._invoke(_,ct)})})}function vt(st,_){function ct(Pt,yt,Ht,ae){var oe=l(st[Pt],st,yt);if(oe.type!=="throw"){var zt=oe.arg,te=zt.value;return te&&typeof te=="object"&&n.call(te,"__await")?_.resolve(te.__await).then(function(ue){ct("next",ue,Ht,ae)},function(ue){ct("throw",ue,Ht,ae)}):_.resolve(te).then(function(ue){zt.value=ue,Ht(zt)},function(ue){return ct("throw",ue,Ht,ae)})}ae(oe.arg)}var dt;this._invoke=function(Pt,yt){function Ht(){return new _(function(ae,oe){ct(Pt,yt,ae,oe)})}return dt=dt?dt.then(Ht,Ht):Ht()}}function ht(st,_){var ct=st.iterator[_.method];if(ct===void 0){if(_.delegate=null,_.method==="throw"){if(st.iterator.return&&(_.method="return",_.arg=void 0,ht(st,_),_.method==="throw"))return v;_.method="throw",_.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var dt=l(ct,st.iterator,_.arg);if(dt.type==="throw")return _.method="throw",_.arg=dt.arg,_.delegate=null,v;var Pt=dt.arg;return Pt?Pt.done?(_[st.resultName]=Pt.value,_.next=st.nextLoc,_.method!=="return"&&(_.method="next",_.arg=void 0),_.delegate=null,v):Pt:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,v)}function Et(st){var _={tryLoc:st[0]};1 in st&&(_.catchLoc=st[1]),2 in st&&(_.finallyLoc=st[2],_.afterLoc=st[3]),this.tryEntries.push(_)}function Ut(st){var _=st.completion||{};_.type="normal",delete _.arg,st.completion=_}function Wt(st){this.tryEntries=[{tryLoc:"root"}],st.forEach(Et,this),this.reset(!0)}function Qt(st){if(st){var _=st[e];if(_)return _.call(st);if(typeof st.next=="function")return st;if(!isNaN(st.length)){var ct=-1,dt=function Pt(){for(;++ct<st.length;)if(n.call(st,ct))return Pt.value=st[ct],Pt.done=!1,Pt;return Pt.value=void 0,Pt.done=!0,Pt};return dt.next=dt}}return{next:ie}}function ie(){return{value:void 0,done:!0}}return E.prototype=U,o(rt,"constructor",U),o(U,"constructor",E),E.displayName=o(U,r,"GeneratorFunction"),d.isGeneratorFunction=function(st){var _=typeof st=="function"&&st.constructor;return!!_&&(_===E||(_.displayName||_.name)==="GeneratorFunction")},d.mark=function(st){return Object.setPrototypeOf?Object.setPrototypeOf(st,U):(st.__proto__=U,o(st,r,"GeneratorFunction")),st.prototype=Object.create(rt),st},d.awrap=function(st){return{__await:st}},xt(vt.prototype),o(vt.prototype,i,function(){return this}),d.AsyncIterator=vt,d.async=function(st,_,ct,dt,Pt){Pt===void 0&&(Pt=Promise);var yt=new vt(s(st,_,ct,dt),Pt);return d.isGeneratorFunction(_)?yt:yt.next().then(function(Ht){return Ht.done?Ht.value:yt.next()})},xt(rt),o(rt,r,"Generator"),o(rt,e,function(){return this}),o(rt,"toString",function(){return"[object Generator]"}),d.keys=function(st){var _=[];for(var ct in st)_.push(ct);return _.reverse(),function dt(){for(;_.length;){var Pt=_.pop();if(Pt in st)return dt.value=Pt,dt.done=!1,dt}return dt.done=!0,dt}},d.values=Qt,Wt.prototype={constructor:Wt,reset:function(_){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Ut),!_)for(var ct in this)ct.charAt(0)==="t"&&n.call(this,ct)&&!isNaN(+ct.slice(1))&&(this[ct]=void 0)},stop:function(){this.done=!0;var _=this.tryEntries[0].completion;if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var ct=this;function dt(zt,te){return Ht.type="throw",Ht.arg=_,ct.next=zt,te&&(ct.method="next",ct.arg=void 0),!!te}for(var Pt=this.tryEntries.length-1;Pt>=0;--Pt){var yt=this.tryEntries[Pt],Ht=yt.completion;if(yt.tryLoc==="root")return dt("end");if(yt.tryLoc<=this.prev){var ae=n.call(yt,"catchLoc"),oe=n.call(yt,"finallyLoc");if(ae&&oe){if(this.prev<yt.catchLoc)return dt(yt.catchLoc,!0);if(this.prev<yt.finallyLoc)return dt(yt.finallyLoc)}else if(ae){if(this.prev<yt.catchLoc)return dt(yt.catchLoc,!0)}else{if(!oe)throw new Error("try statement without catch or finally");if(this.prev<yt.finallyLoc)return dt(yt.finallyLoc)}}}},abrupt:function(_,ct){for(var dt=this.tryEntries.length-1;dt>=0;--dt){var Pt=this.tryEntries[dt];if(Pt.tryLoc<=this.prev&&n.call(Pt,"finallyLoc")&&this.prev<Pt.finallyLoc){var yt=Pt;break}}yt&&(_==="break"||_==="continue")&&yt.tryLoc<=ct&&ct<=yt.finallyLoc&&(yt=null);var Ht=yt?yt.completion:{};return Ht.type=_,Ht.arg=ct,yt?(this.method="next",this.next=yt.finallyLoc,v):this.complete(Ht)},complete:function(_,ct){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&ct&&(this.next=ct),v},finish:function(_){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var dt=this.tryEntries[ct];if(dt.finallyLoc===_)return this.complete(dt.completion,dt.afterLoc),Ut(dt),v}},catch:function(_){for(var ct=this.tryEntries.length-1;ct>=0;--ct){var dt=this.tryEntries[ct];if(dt.tryLoc===_){var Pt=dt.completion;if(Pt.type==="throw"){var yt=Pt.arg;Ut(dt)}return yt}}throw new Error("illegal catch attempt")},delegateYield:function(_,ct,dt){return this.delegate={iterator:Qt(_),resultName:ct,nextLoc:dt},this.method==="next"&&(this.arg=void 0),v}},d}function Gt(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=d.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas:function(e,i){return new OffscreenCanvas(e,i)},createImage:function(e){return ut()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,fetch(e);case 2:return r=v.sent,v.next=5,r.blob();case 5:return o=v.sent,v.next=8,createImageBitmap(o);case 8:return s=v.sent,v.abrupt("return",s);case 10:case"end":return v.stop()}},i)}))()}};return(typeof DOMParser!="undefined"||typeof f=="undefined")&&Reflect.deleteProperty(n,"DOMParser"),n}function wt(d){var f=d.DOMParser,n=d.canvas,a=d.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Yt=Object.freeze({__proto__:null,offscreen:Gt,node:wt});function Lt(d){return d.replace(/(?!\u3000)\s+/gm," ")}function Jt(d){return d.replace(/^[\n \t]+/,"")}function jt(d){return d.replace(/[\n \t]+$/,"")}function Tt(d){var f=(d||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var $t=/^[A-Z-]+$/;function ot(d){return $t.test(d)?d.toLowerCase():d}function gt(d){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(d)||[];return f[2]||f[3]||f[4]}function bt(d){if(!d.startsWith("rgb"))return d;var f=3,n=d.replace(/\d+(\.\d+)?/g,function(a,e){return f--&&e?String(Math.round(parseFloat(a))):a});return n}var Rt=/(\[[^\]]+\])/g,Mt=/(#[^\s+>~.[:]+)/g,re=/(\.[^\s+>~.[:]+)/g,se=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,le=/(:[\w-]+\([^)]*\))/gi,qt=/(:[^\s+>~.[:]+)/g,fe=/([^\s+>~.[:]+)/g;function ee(d,f){var n=f.exec(d);return n?[d.replace(f," "),n.length]:[d,0]}function he(d){var f=[0,0,0],n=d.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=ee(n,Rt),i=Object(ft.a)(e,2);n=i[0],a=i[1],f[1]+=a;var r=ee(n,Mt),o=Object(ft.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=ee(n,re),l=Object(ft.a)(s,2);n=l[0],a=l[1],f[1]+=a;var v=ee(n,se),p=Object(ft.a)(v,2);n=p[0],a=p[1],f[2]+=a;var E=ee(n,le),U=Object(ft.a)(E,2);n=U[0],a=U[1],f[1]+=a;var K=ee(n,qt),et=Object(ft.a)(K,2);n=et[0],a=et[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var it=ee(n,fe),rt=Object(ft.a)(it,2);return n=rt[0],a=rt[1],f[2]+=a,f.join("")}var Xt=1e-8;function Te(d){return Math.sqrt(Math.pow(d[0],2)+Math.pow(d[1],2))}function pe(d,f){return(d[0]*f[0]+d[1]*f[1])/(Te(d)*Te(f))}function Pe(d,f){return(d[0]*f[1]<d[1]*f[0]?-1:1)*Math.acos(pe(d,f))}function Se(d){return d*d*d}function me(d){return 3*d*d*(1-d)}function ye(d){return 3*d*(1-d)*(1-d)}function xe(d){return(1-d)*(1-d)*(1-d)}function Ee(d){return d*d}function Ie(d){return 2*d*(1-d)}function Ne(d){return(1-d)*(1-d)}var mt=function(){function d(f,n,a){Object(J.a)(this,d),this.document=f,this.name=n,this.value=a,this.isNormalizedColor=!1}return Object(k.a)(d,[{key:"split",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return Lt(this.getString()).trim().split(n).map(function(i){return new d(a,e,i)})}},{key:"hasValue",value:function(n){var a=this.value;return a!==null&&a!==""&&(n||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(n){var a=this.value,e=typeof a=="string";return!e||!n?e:n.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var n=this.getString();switch(!0){case n.endsWith("px"):case/^[0-9]+$/.test(n):return!0;default:return!1}}},{key:"setValue",value:function(n){return this.value=n,this}},{key:"getValue",value:function(n){return typeof n=="undefined"||this.hasValue()?this.value:n}},{key:"getNumber",value:function(n){if(!this.hasValue())return typeof n=="undefined"?0:parseFloat(n);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(n){return typeof n=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(n)}},{key:"getColor",value:function(n){var a=this.getString(n);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=bt(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(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof n=="boolean"?[void 0,n]:[n],i=Object(ft.a)(e,2),r=i[0],o=i[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(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(r):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 n=this.getString(),a=/#([^)'"]+)/.exec(n);return a&&(a=a[1]),a||(a=n),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(n,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,n,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var i=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),i.hasValue()&&e.getAttribute("patternTransform",!0).setValue(i.value)}return e.createPattern(this.document.ctx,n,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?d.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var a=this.getColor(),e=a.length,i=0,r=0;r<e&&!(a[r]===","&&i++,i===3);r++);if(n.hasValue()&&this.isString()&&i!==3){var o=new Bt.a(a);o.ok&&(o.alpha=n.getNumber(),a=o.toRGBA())}return new d(this.document,this.name,a)}}],[{key:"empty",value:function(n){return new d(n,"EMPTY","")}}]),d}();mt.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 Me=function(){function d(){Object(J.a)(this,d),this.viewPorts=[]}return Object(k.a)(d,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(n,a){this.viewPorts.push({width:n,height:a})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var n=this.viewPorts;return n[n.length-1]}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}},{key:"computeSize",value:function(n){return typeof n=="number"?n:n==="x"?this.width:n==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}]),d}(),kt=function(){function d(f,n){Object(J.a)(this,d),this.x=f,this.y=n}return Object(k.a)(d,[{key:"angleTo",value:function(n){return Math.atan2(n.y-this.y,n.x-this.x)}},{key:"applyTransform",value:function(n){var a=this.x,e=this.y,i=a*n[0]+e*n[2]+n[4],r=a*n[1]+e*n[3]+n[5];this.x=i,this.y=r}}],[{key:"parse",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=Tt(n),i=Object(ft.a)(e,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new d(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Tt(n),i=Object(ft.a)(e,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new d(o,l)}},{key:"parsePath",value:function(n){for(var a=Tt(n),e=a.length,i=[],r=0;r<e;r+=2)i.push(new d(a[r],a[r+1]));return i}}]),d}(),je=function(){function d(f){Object(J.a)(this,d),this.screen=f,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return Object(k.a)(d,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){if(this.working)return;var n=this.screen,a=this.onClick,e=this.onMouseMove,i=n.ctx.canvas;i.onclick=a,i.onmousemove=e,this.working=!0}},{key:"stop",value:function(){if(!this.working)return;var n=this.screen.ctx.canvas;this.working=!1,n.onclick=null,n.onmousemove=null}},{key:"hasEvents",value:function(){return this.working&&this.events.length>0}},{key:"runEvents",value:function(){if(!this.working)return;var n=this.screen,a=this.events,e=this.eventElements,i=n.ctx.canvas.style;i&&(i.cursor=""),a.forEach(function(r,o){for(var s=r.run,l=e[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(n,a){if(!this.working||!a)return;var e=this.events,i=this.eventElements;e.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInPath&&a.isPointInPath(s,l)&&(i[o]=n)})}},{key:"checkBoundingBox",value:function(n,a){if(!this.working||!a)return;var e=this.events,i=this.eventElements;e.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInBox(s,l)&&(i[o]=n)})}},{key:"mapXY",value:function(n,a){for(var e=this.screen,i=e.window,r=e.ctx,o=new kt(n,a),s=r.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(o.x+=i.scrollX),i.scrollY&&(o.y+=i.scrollY),o}},{key:"onClick",value:function(n){var a=this.mapXY(n.clientX,n.clientY),e=a.x,i=a.y;this.events.push({type:"onclick",x:e,y:i,run:function(o){o.onClick&&o.onClick()}})}},{key:"onMouseMove",value:function(n){var a=this.mapXY(n.clientX,n.clientY),e=a.x,i=a.y;this.events.push({type:"onmousemove",x:e,y:i,run:function(o){o.onMouseMove&&o.onMouseMove()}})}}]),d}(),Ce=typeof window!="undefined"?window:null,Re=typeof fetch!="undefined"?fetch.bind(void 0):null,de=function(){function d(f){Object(J.a)(this,d);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,e=a===void 0?Re:a,i=n.window,r=i===void 0?Ce:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Me,this.mouse=new je(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}return Object(k.a)(d,[{key:"wait",value:function(n){this.waits.push(n)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var n=this.waits.every(function(a){return a()});return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(n){n.strokeStyle="rgba(0,0,0,0)",n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4}},{key:"setViewBox",value:function(n){var a=n.document,e=n.ctx,i=n.aspectRatio,r=n.width,o=n.desiredWidth,s=n.height,l=n.desiredHeight,v=n.minX,p=v===void 0?0:v,E=n.minY,U=E===void 0?0:E,K=n.refX,et=n.refY,it=n.clip,rt=it===void 0?!1:it,xt=n.clipX,vt=xt===void 0?0:xt,ht=n.clipY,Et=ht===void 0?0:ht,Ut=Lt(i).replace(/^defer\s/,""),Wt=Ut.split(" "),Qt=Object(ft.a)(Wt,2),ie=Qt[0],st=Qt[1],_=ie||"xMidYMid",ct=st||"meet",dt=r/o,Pt=s/l,yt=Math.min(dt,Pt),Ht=Math.max(dt,Pt),ae=o,oe=l;ct==="meet"&&(ae*=yt,oe*=yt),ct==="slice"&&(ae*=Ht,oe*=Ht);var zt=new mt(a,"refX",K),te=new mt(a,"refY",et),ue=zt.hasValue()&&te.hasValue();if(ue&&e.translate(-yt*zt.getPixels("x"),-yt*te.getPixels("y")),rt){var Be=yt*vt,Fe=yt*Et;e.beginPath(),e.moveTo(Be,Fe),e.lineTo(r,Fe),e.lineTo(r,s),e.lineTo(Be,s),e.closePath(),e.clip()}if(!ue){var Ue=ct==="meet"&&yt===Pt,be=ct==="slice"&&Ht===Pt,$r=ct==="meet"&&yt===dt,Yr=ct==="slice"&&Ht===dt;_.startsWith("xMid")&&(Ue||be)&&e.translate(r/2-ae/2,0),_.endsWith("YMid")&&($r||Yr)&&e.translate(0,s/2-oe/2),_.startsWith("xMax")&&(Ue||be)&&e.translate(r-ae,0),_.endsWith("YMax")&&($r||Yr)&&e.translate(0,s-oe)}switch(!0){case _==="none":e.scale(dt,Pt);break;case ct==="meet":e.scale(yt,yt);break;case ct==="slice":e.scale(Ht,Ht);break}e.translate(-p,-U)}},{key:"start",value:function(n){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.enableRedraw,r=i===void 0?!1:i,o=e.ignoreMouse,s=o===void 0?!1:o,l=e.ignoreAnimation,v=l===void 0?!1:l,p=e.ignoreDimensions,E=p===void 0?!1:p,U=e.ignoreClear,K=U===void 0?!1:U,et=e.forceRedraw,it=e.scaleWidth,rt=e.scaleHeight,xt=e.offsetX,vt=e.offsetY,ht=this.FRAMERATE,Et=this.mouse,Ut=1e3/ht;if(this.frameDuration=Ut,this.readyPromise=new Promise(function(_){a.resolveReady=_}),this.isReady()&&this.render(n,E,K,it,rt,xt,vt),!r)return;var Wt=Date.now(),Qt=Wt,ie=0,st=function _(){Wt=Date.now(),ie=Wt-Qt,ie>=Ut&&(Qt=Wt-ie%Ut,a.shouldUpdate(v,et)&&(a.render(n,E,K,it,rt,xt,vt),Et.runEvents())),a.intervalId=It()(_)};s||Et.start(),this.intervalId=It()(st)}},{key:"stop",value:function(){this.intervalId&&(It.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(n,a){if(!n){var e=this.frameDuration,i=this.animations.reduce(function(r,o){return o.update(e)||r},!1);if(i)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(n,a,e,i,r,o,s){var l=this.CLIENT_WIDTH,v=this.CLIENT_HEIGHT,p=this.viewPort,E=this.ctx,U=this.isFirstRender,K=E.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,v);var et=n.getStyle("width"),it=n.getStyle("height");!a&&(U||typeof i!="number"&&typeof r!="number")&&(et.hasValue()&&(K.width=et.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),it.hasValue()&&(K.height=it.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var rt=K.clientWidth||K.width,xt=K.clientHeight||K.height;if(a&&et.hasValue()&&it.hasValue()&&(rt=et.getPixels("x"),xt=it.getPixels("y")),p.setCurrent(rt,xt),typeof o=="number"&&n.getAttribute("x",!0).setValue(o),typeof s=="number"&&n.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof r=="number"){var vt=Tt(n.getAttribute("viewBox").getString()),ht=0,Et=0;if(typeof i=="number"){var Ut=n.getStyle("width");Ut.hasValue()?ht=Ut.getPixels("x")/i:isNaN(vt[2])||(ht=vt[2]/i)}if(typeof r=="number"){var Wt=n.getStyle("height");Wt.hasValue()?Et=Wt.getPixels("y")/r:isNaN(vt[3])||(Et=vt[3]/r)}ht||(ht=Et),Et||(Et=ht),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Qt=n.getStyle("transform",!0,!0);Qt.setValue("".concat(Qt.getString()," scale(").concat(1/ht,", ").concat(1/Et,")"))}e||E.clearRect(0,0,rt,xt),n.render(E),U&&(this.isFirstRender=!1)}}]),d}();de.defaultWindow=Ce,de.defaultFetch=Re;var ne=de.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,We=function(){function d(){Object(J.a)(this,d);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?ne:n,e=f.DOMParser,i=e===void 0?Kr:e;this.fetch=a,this.DOMParser=i}return Object(k.a)(d,[{key:"parse",value:function(n){var a=this;return ut()(Ct().mark(function e(){return Ct().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.startsWith("<")){r.next=2;break}return r.abrupt("return",a.parseFromString(n));case 2:return r.abrupt("return",a.load(n));case 3:case"end":return r.stop()}},e)}))()}},{key:"parseFromString",value:function(n){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(n,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(n,"text/xml"))}}},{key:"checkDocument",value:function(n){var a=n.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return n}},{key:"load",value:function(n){var a=this;return ut()(Ct().mark(function e(){var i,r;return Ct().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(n);case 2:return i=s.sent,s.next=5,i.text();case 5:return r=s.sent,s.abrupt("return",a.parseFromString(r));case 7:case"end":return s.stop()}},e)}))()}}]),d}(),ar=function(){function d(f,n){Object(J.a)(this,d),this.type="translate",this.point=null,this.point=kt.parse(n)}return Object(k.a)(d,[{key:"apply",value:function(n){var a=this.point,e=a.x,i=a.y;n.translate(e||0,i||0)}},{key:"unapply",value:function(n){var a=this.point,e=a.x,i=a.y;n.translate(-1*e||0,-1*i||0)}},{key:"applyToPoint",value:function(n){var a=this.point,e=a.x,i=a.y;n.applyTransform([1,0,0,1,e||0,i||0])}}]),d}(),ir=function(){function d(f,n,a){Object(J.a)(this,d),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Tt(n);this.angle=new mt(f,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(k.a)(d,[{key:"apply",value:function(n){var a=this.cx,e=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=e+r.getPixels("y");n.translate(s,l),n.rotate(o.getRadians()),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.cx,e=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=e+r.getPixels("y");n.translate(s,l),n.rotate(-1*o.getRadians()),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.cx,e=this.cy,i=this.angle,r=i.getRadians();n.applyTransform([1,0,0,1,a||0,e||0]),n.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),n.applyTransform([1,0,0,1,-a||0,-e||0])}}]),d}(),or=function(){function d(f,n,a){Object(J.a)(this,d),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=kt.parseScale(n);(e.x===0||e.y===0)&&(e.x=Xt,e.y=Xt),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(k.a)(d,[{key:"apply",value:function(n){var a=this.scale,e=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(e,i||e),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.scale,e=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(1/e,1/i||e),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.scale,e=a.x,i=a.y;n.applyTransform([e||0,0,0,i||0,0,0])}}]),d}(),Ke=function(){function d(f,n,a){Object(J.a)(this,d),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Tt(n),this.originX=a[0],this.originY=a[1]}return Object(k.a)(d,[{key:"apply",value:function(n){var a=this.originX,e=this.originY,i=this.matrix,r=a.getPixels("x"),o=e.getPixels("y");n.translate(r,o),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.translate(-r,-o)}},{key:"unapply",value:function(n){var a=this.originX,e=this.originY,i=this.matrix,r=i[0],o=i[2],s=i[4],l=i[1],v=i[3],p=i[5],E=0,U=0,K=1,et=1/(r*(v*K-p*U)-o*(l*K-p*E)+s*(l*U-v*E)),it=a.getPixels("x"),rt=e.getPixels("y");n.translate(it,rt),n.transform(et*(v*K-p*U),et*(p*E-l*K),et*(s*U-o*K),et*(r*K-s*E),et*(o*p-s*v),et*(s*l-r*p)),n.translate(-it,-rt)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),d}(),Xe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="skew",r.angle=null,r.angle=new mt(a,"angle",e),r}return Object(k.a)(n)}(Ke),sr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return Object(k.a)(n)}(Xe),lr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return Object(k.a)(n)}(Xe);function Xr(d){return Lt(d).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function kr(d){var f=d.split("("),n=Object(ft.a)(f,2),a=n[0],e=n[1];return[a.trim(),e.trim().replace(")","")]}var we=function(){function d(f,n,a){var e=this;Object(J.a)(this,d),this.document=f,this.transforms=[];var i=Xr(n);i.forEach(function(r){if(r==="none")return;var o=kr(r),s=Object(ft.a)(o,2),l=s[0],v=s[1],p=d.transformTypes[l];typeof p!="undefined"&&e.transforms.push(new p(e.document,v,a))})}return Object(k.a)(d,[{key:"apply",value:function(n){for(var a=this.transforms,e=a.length,i=0;i<e;i++)a[i].apply(n)}},{key:"unapply",value:function(n){for(var a=this.transforms,e=a.length,i=e-1;i>=0;i--)a[i].unapply(n)}},{key:"applyToPoint",value:function(n){for(var a=this.transforms,e=a.length,i=0;i<e;i++)a[i].applyToPoint(n)}}],[{key:"fromElement",value:function(n,a){var e=a.getStyle("transform",!1,!0),i=a.getStyle("transform-origin",!1,!0).split(),r=Object(ft.a)(i,2),o=r[0],s=r[1],l=s===void 0?o:s,v=[o,l];return e.hasValue()?new d(n,e.getString(),v):null}}]),d}();we.transformTypes={translate:ar,rotate:ir,scale:or,matrix:Ke,skewX:sr,skewY:lr};var Kt=function(){function d(f,n){var a=this;Object(J.a)(this,d);var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=f,this.node=n,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!n||n.nodeType!==1)return;if(Array.from(n.attributes).forEach(function(s){var l=ot(s.nodeName);a.attributes[l]=new mt(f,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});i.forEach(function(s){if(!s)return;var l=s.split(":").map(function(U){return U.trim()}),v=Object(ft.a)(l,2),p=v[0],E=v[1];a.styles[p]=new mt(f,p,E)})}var r=f.definitions,o=this.getAttribute("id");o.hasValue()&&(r[o.getString()]||(r[o.getString()]=this)),Array.from(n.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=f.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(k.a)(d,[{key:"getAttribute",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[n];if(!e&&a){var i=new mt(this.document,n,"");return this.attributes[n]=i,i}return e||mt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return mt.empty(this.document)}},{key:"getStyle",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[n];if(i)return i;var r=this.getAttribute(n);if(r!=null&&r.hasValue())return this.styles[n]=r,r;if(!e){var o=this.parent;if(o){var s=o.getStyle(n);if(s!=null&&s.hasValue())return s}}if(a){var l=new mt(this.document,n,"");return this.styles[n]=l,l}return i||mt.empty(this.document)}},{key:"render",value:function(n){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(n.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(n),a.apply(n,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(n),e.apply(n,this))}else this.setContext(n),this.renderChildren(n),this.clearContext(n);n.restore()}},{key:"setContext",value:function(n){}},{key:"applyEffects",value:function(n){var a=we.fromElement(this.document,this);a&&a.apply(n);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var i=e.getDefinition();i&&i.apply(n)}}},{key:"clearContext",value:function(n){}},{key:"renderChildren",value:function(n){this.children.forEach(function(a){a.render(n)})}},{key:"addChild",value:function(n){var a=n instanceof d?n:this.document.createElement(n);a.parent=this,d.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a,e=this.node;if(typeof e.matches=="function")return e.matches(n);var i=(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"class");return!i||i===""?!1:i.split(" ").some(function(r){return".".concat(r)===n})}},{key:"addStylesFromStyleDefinition",value:function(){var n=this.document,a=n.styles,e=n.stylesSpecificity;for(var i in a)if(!i.startsWith("@")&&this.matchesSelector(i)){var r=a[i],o=e[i];if(r)for(var s in r){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),o>=l&&(this.styles[s]=r[s],this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(n,a){var e=a.reduce(function(i,r){var o=n.getStyle(r);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[].concat(Object(V.a)(i),[[r,s]])},[]);return e}},{key:"restoreStyles",value:function(n,a){a.forEach(function(e){var i=Object(ft.a)(e,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}},{key:"isFirstChild",value:function(){var n;return((n=this.parent)===null||n===void 0?void 0:n.children.indexOf(this))===0}}]),d}();Kt.ignoreChildTypes=["title"];var ur=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){return Object(J.a)(this,n),f.call(this,a,e,i)}return Object(k.a)(n)}(Kt);function Qr(d){var f=d.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Jr(d){return typeof u=="undefined"?d:d.trim().split(",").map(Qr).join(",")}function Zr(d){if(!d)return"";var f=d.trim().toLowerCase();switch(f){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return f;default:return/^oblique\s+(-|)\d+deg$/.test(f)?f:""}}function qr(d){if(!d)return"";var f=d.trim().toLowerCase();switch(f){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return f;default:return/^[\d.]+$/.test(f)?f:""}}var ve=function(){function d(f,n,a,e,i,r){Object(J.a)(this,d);var o=r?typeof r=="string"?d.parse(r):r:{};this.fontFamily=i||o.fontFamily,this.fontSize=e||o.fontSize,this.fontStyle=f||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=n||o.fontVariant}return Object(k.a)(d,[{key:"toString",value:function(){return[Zr(this.fontStyle),this.fontVariant,qr(this.fontWeight),this.fontSize,Jr(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",i="",r="",o="",s="",l=Lt(n).trim().split(" "),v={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!v.fontStyle&&d.styles.includes(p)):p!=="inherit"&&(e=p),v.fontStyle=!0;break;case(!v.fontVariant&&d.variants.includes(p)):p!=="inherit"&&(i=p),v.fontStyle=!0,v.fontVariant=!0;break;case(!v.fontWeight&&d.weights.includes(p)):p!=="inherit"&&(r=p),v.fontStyle=!0,v.fontVariant=!0,v.fontWeight=!0;break;case!v.fontSize:if(p!=="inherit"){var E=p.split("/"),U=Object(ft.a)(E,1);o=U[0]}v.fontStyle=!0,v.fontVariant=!0,v.fontWeight=!0,v.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new d(e,i,r,o,s,a)}}]),d}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ce=function(){function d(){Object(J.a)(this,d);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=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=f,this.y1=n,this.x2=a,this.y2=e,this.addPoint(f,n),this.addPoint(a,e)}return Object(k.a)(d,[{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(n,a){typeof n!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=n,this.x2=n),n<this.x1&&(this.x1=n),n>this.x2&&(this.x2=n)),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(n){this.addPoint(n,null)}},{key:"addY",value:function(n){this.addPoint(null,n)}},{key:"addBoundingBox",value:function(n){if(!n)return;var a=n.x1,e=n.y1,i=n.x2,r=n.y2;this.addPoint(a,e),this.addPoint(i,r)}},{key:"sumCubic",value:function(n,a,e,i,r){return Math.pow(1-n,3)*a+3*Math.pow(1-n,2)*n*e+3*(1-n)*Math.pow(n,2)*i+Math.pow(n,3)*r}},{key:"bezierCurveAdd",value:function(n,a,e,i,r){var o=6*a-12*e+6*i,s=-3*a+9*e-9*i+3*r,l=3*e-3*a;if(s===0){if(o===0)return;var v=-l/o;0<v&&v<1&&(n?this.addX(this.sumCubic(v,a,e,i,r)):this.addY(this.sumCubic(v,a,e,i,r)));return}var p=Math.pow(o,2)-4*l*s;if(p<0)return;var E=(-o+Math.sqrt(p))/(2*s);0<E&&E<1&&(n?this.addX(this.sumCubic(E,a,e,i,r)):this.addY(this.sumCubic(E,a,e,i,r)));var U=(-o-Math.sqrt(p))/(2*s);0<U&&U<1&&(n?this.addX(this.sumCubic(U,a,e,i,r)):this.addY(this.sumCubic(U,a,e,i,r)))}},{key:"addBezierCurve",value:function(n,a,e,i,r,o,s,l){this.addPoint(n,a),this.addPoint(s,l),this.bezierCurveAdd(!0,n,e,r,s),this.bezierCurveAdd(!1,a,i,o,l)}},{key:"addQuadraticCurve",value:function(n,a,e,i,r,o){var s=n+2/3*(e-n),l=a+2/3*(i-a),v=s+1/3*(r-n),p=l+1/3*(o-a);this.addBezierCurve(n,a,s,v,l,p,r,o)}},{key:"isPointInBox",value:function(n,a){var e=this.x1,i=this.y1,r=this.x2,o=this.y2;return e<=n&&n<=r&&i<=a&&a<=o}}]),d}(),At=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a){var e;return Object(J.a)(this,n),e=f.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(k.a)(n,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new kt(0,0),this.control=new kt(0,0),this.current=new kt(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){var e=this.i,i=this.commands;return e>=i.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",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new kt(this.command[e],this.command[i]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(e,i){var r=this.getPoint(e,i);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(e,i){var r=this.getPoint(e,i);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Dt.a.CURVE_TO&&e!==Dt.a.SMOOTH_CURVE_TO&&e!==Dt.a.QUAD_TO&&e!==Dt.a.SMOOTH_QUAD_TO)return this.current;var i=this.current,r=i.x,o=i.y,s=this.control,l=s.x,v=s.y,p=new kt(2*r-l,2*o-v);return p}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var i=this.current,r=i.x,o=i.y;e.x+=r,e.y+=o}return e}},{key:"addMarker",value:function(e,i,r){var o=this.points,s=this.angles;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=o[o.length-1].angleTo(r)),this.addMarkerAngle(e,i?i.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,i){this.points.push(e),this.angles.push(i)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,i=e.length,r=0;r<i;r++)if(!e[r]){for(var o=r+1;o<i;o++)if(e[o]){e[r]=e[o];break}}return e}}]),n}(Dt.a),Oe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.modifiedEmSizeStack=!1,a}return Object(k.a)(n,[{key:"calculateOpacity",value:function(){for(var e=1,i=this;i;){var r=i.getStyle("opacity",!1,!0);r.hasValue(!0)&&(e*=r.getNumber()),i=i.parent}return e}},{key:"setContext",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!i){var r=this.getStyle("fill"),o=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var v=r.getFillStyleDefinition(this,o);v&&(e.fillStyle=v)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var p=r.getColor();p!=="inherit"&&(e.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var E=new mt(this.document,"fill",e.fillStyle).addOpacity(o).getColor();e.fillStyle=E}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 K=s.getString();K!=="inherit"&&(e.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var et=new mt(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=et}var it=this.getStyle("stroke-width");if(it.hasValue()){var rt=it.getPixels();e.lineWidth=rt||Xt}var xt=this.getStyle("stroke-linecap"),vt=this.getStyle("stroke-linejoin"),ht=this.getStyle("stroke-miterlimit"),Et=this.getStyle("stroke-dasharray"),Ut=this.getStyle("stroke-dashoffset");if(xt.hasValue()&&(e.lineCap=xt.getString()),vt.hasValue()&&(e.lineJoin=vt.getString()),ht.hasValue()&&(e.miterLimit=ht.getNumber()),Et.hasValue()&&Et.getString()!=="none"){var Wt=Tt(Et.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Wt):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Wt:typeof e.mozDash!="undefined"&&!(Wt.length===1&&Wt[0]===0)&&(e.mozDash=Wt);var Qt=Ut.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=Qt:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=Qt:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=Qt)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var ie=this.getStyle("font"),st=this.getStyle("font-style"),_=this.getStyle("font-variant"),ct=this.getStyle("font-weight"),dt=this.getStyle("font-size"),Pt=this.getStyle("font-family"),yt=new ve(st.getString(),_.getString(),ct.getString(),dt.hasValue()?"".concat(dt.getPixels(!0),"px"):"",Pt.getString(),ve.parse(ie.getString(),e.font));st.setValue(yt.fontStyle),_.setValue(yt.fontVariant),ct.setValue(yt.fontWeight),dt.setValue(yt.fontSize),Pt.setValue(yt.fontFamily),e.font=yt.toString(),dt.isPixels()&&(this.document.emSize=dt.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(Y.a)(Object(w.a)(n.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Kt),_t=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="path",r.pathParser=null,r.pathParser=new At(r.getAttribute("d").getString()),r}return Object(k.a)(n,[{key:"path",value:function(e){var i=this.pathParser,r=new ce;for(i.reset(),e&&e.beginPath();!i.isEnd();)switch(i.next().type){case At.MOVE_TO:this.pathM(e,r);break;case At.LINE_TO:this.pathL(e,r);break;case At.HORIZ_LINE_TO:this.pathH(e,r);break;case At.VERT_LINE_TO:this.pathV(e,r);break;case At.CURVE_TO:this.pathC(e,r);break;case At.SMOOTH_CURVE_TO:this.pathS(e,r);break;case At.QUAD_TO:this.pathQ(e,r);break;case At.SMOOTH_QUAD_TO:this.pathT(e,r);break;case At.ARC:this.pathA(e,r);break;case At.CLOSE_PATH:this.pathZ(e,r);break}return r}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,i=e.getMarkerPoints(),r=e.getMarkerAngles(),o=i.map(function(s,l){return[s,r[l]]});return o}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var i=this.getStyle("fill-rule");e.fillStyle!==""&&(i.getString("inherit")!=="inherit"?e.fill(i.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 r=this.getMarkers();if(r){var o=r.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),v=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),E=Object(ft.a)(r[0],2),U=E[0],K=E[1];p.render(e,U,K)}if(l.isUrlDefinition())for(var et=l.getDefinition(),it=1;it<o;it++){var rt=Object(ft.a)(r[it],2),xt=rt[0],vt=rt[1];et.render(e,xt,vt)}if(v.isUrlDefinition()){var ht=v.getDefinition(),Et=Object(ft.a)(r[o],2),Ut=Et[0],Wt=Et[1];ht.render(e,Ut,Wt)}}}},{key:"pathM",value:function(e,i){var r=this.pathParser,o=n.pathM(r),s=o.point,l=s.x,v=s.y;r.addMarker(s),i.addPoint(l,v),e&&e.moveTo(l,v)}},{key:"pathL",value:function(e,i){var r=this.pathParser,o=n.pathL(r),s=o.current,l=o.point,v=l.x,p=l.y;r.addMarker(l,s),i.addPoint(v,p),e&&e.lineTo(v,p)}},{key:"pathH",value:function(e,i){var r=this.pathParser,o=n.pathH(r),s=o.current,l=o.point,v=l.x,p=l.y;r.addMarker(l,s),i.addPoint(v,p),e&&e.lineTo(v,p)}},{key:"pathV",value:function(e,i){var r=this.pathParser,o=n.pathV(r),s=o.current,l=o.point,v=l.x,p=l.y;r.addMarker(l,s),i.addPoint(v,p),e&&e.lineTo(v,p)}},{key:"pathC",value:function(e,i){var r=this.pathParser,o=n.pathC(r),s=o.current,l=o.point,v=o.controlPoint,p=o.currentPoint;r.addMarker(p,v,l),i.addBezierCurve(s.x,s.y,l.x,l.y,v.x,v.y,p.x,p.y),e&&e.bezierCurveTo(l.x,l.y,v.x,v.y,p.x,p.y)}},{key:"pathS",value:function(e,i){var r=this.pathParser,o=n.pathS(r),s=o.current,l=o.point,v=o.controlPoint,p=o.currentPoint;r.addMarker(p,v,l),i.addBezierCurve(s.x,s.y,l.x,l.y,v.x,v.y,p.x,p.y),e&&e.bezierCurveTo(l.x,l.y,v.x,v.y,p.x,p.y)}},{key:"pathQ",value:function(e,i){var r=this.pathParser,o=n.pathQ(r),s=o.current,l=o.controlPoint,v=o.currentPoint;r.addMarker(v,l,l),i.addQuadraticCurve(s.x,s.y,l.x,l.y,v.x,v.y),e&&e.quadraticCurveTo(l.x,l.y,v.x,v.y)}},{key:"pathT",value:function(e,i){var r=this.pathParser,o=n.pathT(r),s=o.current,l=o.controlPoint,v=o.currentPoint;r.addMarker(v,l,l),i.addQuadraticCurve(s.x,s.y,l.x,l.y,v.x,v.y),e&&e.quadraticCurveTo(l.x,l.y,v.x,v.y)}},{key:"pathA",value:function(e,i){var r=this.pathParser,o=n.pathA(r),s=o.currentPoint,l=o.rX,v=o.rY,p=o.sweepFlag,E=o.xAxisRotation,U=o.centp,K=o.a1,et=o.ad,it=1-p?1:-1,rt=K+it*(et/2),xt=new kt(U.x+l*Math.cos(rt),U.y+v*Math.sin(rt));if(r.addMarkerAngle(xt,rt-it*Math.PI/2),r.addMarkerAngle(s,rt-it*Math.PI),i.addPoint(s.x,s.y),e&&!isNaN(K)&&!isNaN(et)){var vt=l>v?l:v,ht=l>v?1:l/v,Et=l>v?v/l:1;e.translate(U.x,U.y),e.rotate(E),e.scale(ht,Et),e.arc(0,0,vt,K,K+et,Boolean(1-p)),e.scale(1/ht,1/Et),e.rotate(-E),e.translate(-U.x,-U.y)}}},{key:"pathZ",value:function(e,i){n.pathZ(this.pathParser),e&&(i.x1!==i.x2&&i.y1!==i.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var i=e.getAsCurrentPoint();return e.start=e.current,{point:i}}},{key:"pathL",value:function(e){var i=e.current,r=e.getAsCurrentPoint();return{current:i,point:r}}},{key:"pathH",value:function(e){var i=e.current,r=e.command,o=new kt((r.relative?i.x:0)+r.x,i.y);return e.current=o,{current:i,point:o}}},{key:"pathV",value:function(e){var i=e.current,r=e.command,o=new kt(i.x,(r.relative?i.y:0)+r.y);return e.current=o,{current:i,point:o}}},{key:"pathC",value:function(e){var i=e.current,r=e.getPoint("x1","y1"),o=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathS",value:function(e){var i=e.current,r=e.getReflectedControlPoint(),o=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathQ",value:function(e){var i=e.current,r=e.getAsControlPoint("x1","y1"),o=e.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathT",value:function(e){var i=e.current,r=e.getReflectedControlPoint();e.control=r;var o=e.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathA",value:function(e){var i=e.current,r=e.command,o=r.rX,s=r.rY,l=r.xRot,v=r.lArcFlag,p=r.sweepFlag,E=l*(Math.PI/180),U=e.getAsCurrentPoint(),K=new kt(Math.cos(E)*(i.x-U.x)/2+Math.sin(E)*(i.y-U.y)/2,-Math.sin(E)*(i.x-U.x)/2+Math.cos(E)*(i.y-U.y)/2),et=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);et>1&&(o*=Math.sqrt(et),s*=Math.sqrt(et));var it=(v===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(it)&&(it=0);var rt=new kt(it*o*K.y/s,it*-s*K.x/o),xt=new kt((i.x+U.x)/2+Math.cos(E)*rt.x-Math.sin(E)*rt.y,(i.y+U.y)/2+Math.sin(E)*rt.x+Math.cos(E)*rt.y),vt=Pe([1,0],[(K.x-rt.x)/o,(K.y-rt.y)/s]),ht=[(K.x-rt.x)/o,(K.y-rt.y)/s],Et=[(-K.x-rt.x)/o,(-K.y-rt.y)/s],Ut=Pe(ht,Et);return pe(ht,Et)<=-1&&(Ut=Math.PI),pe(ht,Et)>=1&&(Ut=0),{currentPoint:U,rX:o,rY:s,sweepFlag:p,xAxisRotation:E,centp:xt,a1:vt,ad:Ut}}},{key:"pathZ",value:function(e){e.current=e.start}}]),n}(Oe),ke=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return Object(k.a)(n)}(_t),De=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,new.target===n?!0:i),r.type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Object(k.a)(n,[{key:"setContext",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(Y.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e,i);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(e){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach(function(o,s){var l=i.getChildBoundingBox(e,i,i,s);r?r.addBoundingBox(l):r=l}),r}},{key:"getFontSize",value:function(){var e=this.document,i=this.parent,r=ve.parse(e.ctx.font).fontSize,o=i.getStyle("font-size").getNumber(r);return o}},{key:"getTElementBoundingBox",value:function(e){var i=this.getFontSize();return new ce(this.x,this.y-i,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,i,r){var o=i[r],s=null;if(e.isArabic){var l=i.length,v=i[r-1],p=i[r+1],E="isolated";if((r===0||v===" ")&&r<l-1&&p!==" "&&(E="terminal"),r>0&&v!==" "&&r<l-1&&p!==" "&&(E="medial"),r>0&&v!==" "&&(r===l-1||p===" ")&&(E="initial"),typeof e.glyphs[o]!="undefined"){var U=e.glyphs[o];s=U instanceof ke?U:U[E]}}else s=e.glyphs[o];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var i=e||this.node,r=Array.from(i.parentNode.childNodes),o=r.indexOf(i),s=r.length-1,l=Lt(i.textContent||"");return o===0&&(l=Jt(l)),o===s&&(l=jt(l)),l}},{key:"renderChildren",value:function(e){var i=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach(function(o,s){i.renderChild(e,i,i,s)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var i=this.document,r=this.parent,o=this.getText(),s=r.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,v=ve.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(v.fontSize),E=r.getStyle("font-style").getString(v.fontStyle),U=p/l,K=s.isRTL?o.split("").reverse().join(""):o,et=Tt(r.getAttribute("dx").getString()),it=K.length,rt=0;rt<it;rt++){var xt=this.getGlyph(s,K,rt);e.translate(this.x,this.y),e.scale(U,-U);var vt=e.lineWidth;e.lineWidth=e.lineWidth*l/p,E==="italic"&&e.transform(1,0,.4,1,0,0),xt.render(e),E==="italic"&&e.transform(1,0,-.4,1,0,0),e.lineWidth=vt,e.scale(1/U,-1/U),e.translate(-this.x,-this.y),this.x+=p*(xt.horizAdvX||s.horizAdvX)/l,typeof et[rt]!="undefined"&&!isNaN(et[rt])&&(this.x+=et[rt])}return}var ht=this.x,Et=this.y;e.fillStyle&&e.fillText(o,ht,Et),e.strokeStyle&&e.strokeText(o,ht,Et)}},{key:"applyAnchoring",value:function(){if(this.textChunkStart>=this.leafTexts.length)return;var e=this.leafTexts[this.textChunkStart],i=e.getStyle("text-anchor").getString("start"),r=!1,o=0;i==="start"&&!r||i==="end"&&r?o=e.x-this.minX:i==="end"&&!r||i==="start"&&r?o=e.x-this.maxX:o=e.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s<this.leafTexts.length;s++)this.leafTexts[s].x+=o;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}},{key:"adjustChildCoordinatesRecursive",value:function(e){var i=this;this.children.forEach(function(r,o){i.adjustChildCoordinatesRecursiveCore(e,i,i,o)}),this.applyAnchoring()}},{key:"adjustChildCoordinatesRecursiveCore",value:function(e,i,r,o){var s=r.children[o];s.children.length>0?s.children.forEach(function(l,v){i.adjustChildCoordinatesRecursiveCore(e,i,s,v)}):this.adjustChildCoordinates(e,i,r,o)}},{key:"adjustChildCoordinates",value:function(e,i,r,o){var s=r.children[o];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),v=s.getAttribute("y"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),U=s.getStyle("font-family").getDefinition(),K=Boolean(U)&&U.isRTL;o===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),v.hasValue()||v.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var et=s.measureText(e);return K&&(i.x-=et),l.hasValue()?(i.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x),i.x=s.x,K||(i.x+=et),v.hasValue()?(s.y=v.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(i.y+=E.getPixels("y")),s.y=i.y),i.y=s.y,i.leafTexts.push(s),i.minX=Math.min(i.minX,s.x,s.x+et),i.maxX=Math.max(i.maxX,s.x,s.x+et),s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,i,r,o){var s=r.children[o];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(v,p){var E=i.getChildBoundingBox(e,i,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(e,i,r,o){var s=r.children[o];s.render(e),s.children.forEach(function(l,v){i.renderChild(e,i,s,v)})}},{key:"measureText",value:function(e){var i=this.measureCache;if(~i)return i;var r=this.getText(),o=this.measureTargetText(e,r);return this.measureCache=o,o}},{key:"measureTargetText",value:function(e,i){if(!i.length)return 0;var r=this.parent,o=r.getStyle("font-family").getDefinition();if(o){for(var s=this.getFontSize(),l=o.isRTL?i.split("").reverse().join(""):i,v=Tt(r.getAttribute("dx").getString()),p=l.length,E=0,U=0;U<p;U++){var K=this.getGlyph(o,l,U);E+=(K.horizAdvX||o.horizAdvX)*s/o.fontFace.unitsPerEm,typeof v[U]!="undefined"&&!isNaN(v[U])&&(E+=v[U])}return E}if(!e.measureText)return i.length*10;e.save(),this.setContext(e,!0);var et=e.measureText(i),it=et.width;return this.clearContext(e),e.restore(),it}},{key:"getInheritedAttribute",value:function(e){for(var i=this;i instanceof n&&i.isFirstChild();){var r=i.parent.getAttribute(e);if(r.hasValue(!0))return r.getValue("0");i=i.parent}return null}}]),n}(Oe),Qe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,new.target===n?!0:i),r.type="tspan",r.text=r.children.length>0?"":r.getTextFromNode(),r}return Object(k.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(De),_r=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return Object(k.a)(n)}(Qe),Le=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(k.a)(n,[{key:"setContext",value:function(e){var i,r=this.document,o=r.screen,s=r.window,l=e.canvas;if(o.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var v=new mt(r,"fontSize",ve.parse(e.font).fontSize);v.hasValue()&&(r.rootEmSize=v.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=o.viewPort,E=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 K=this.getAttribute("refX"),et=this.getAttribute("refY"),it=this.getAttribute("viewBox"),rt=it.hasValue()?Tt(it.getString()):null,xt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",vt=0,ht=0,Et=0,Ut=0;rt&&(vt=rt[0],ht=rt[1]),this.root||(E=this.getStyle("width").getPixels("x"),U=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Et=vt,Ut=ht,vt=0,ht=0)),o.viewPort.setCurrent(E,U),this.node&&(!this.parent||((i=this.node.parentNode)===null||i===void 0?void 0:i.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(Y.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),rt&&(E=rt[2],U=rt[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:E,height:o.viewPort.height,desiredHeight:U,minX:vt,minY:ht,refX:K.getValue(),refY:et.getValue(),clip:xt,clipX:Et,clipY:Ut}),rt&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(E,U))}},{key:"clearContext",value:function(e){Object(Y.a)(Object(w.a)(n.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),v=this.getAttribute("style"),p=o.getNumber(0),E=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var U=this.getAttribute("preserveAspectRatio");U.hasValue()&&U.setValue(U.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(e),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||e," ").concat(E||i)),v.hasValue()){var K=this.getStyle("width"),et=this.getStyle("height");K.hasValue()&&K.setValue("".concat(e,"px")),et.hasValue()&&et.setValue("".concat(i,"px"))}}}]),n}(Oe),Je=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(k.a)(n,[{key:"path",value:function(e){var i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),v=this.getAttribute("ry"),p=l.getPixels("x"),E=v.getPixels("y");if(l.hasValue()&&!v.hasValue()&&(E=p),v.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,o/2),E=Math.min(E,s/2),e){var U=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&o>0&&(e.moveTo(i+p,r),e.lineTo(i+o-p,r),e.bezierCurveTo(i+o-p+U*p,r,i+o,r+E-U*E,i+o,r+E),e.lineTo(i+o,r+s-E),e.bezierCurveTo(i+o,r+s-E+U*E,i+o-p+U*p,r+s,i+o-p,r+s),e.lineTo(i+p,r+s),e.bezierCurveTo(i+p-U*p,r+s,i,r+s-E+U*E,i,r+s-E),e.lineTo(i,r+E),e.bezierCurveTo(i,r+E-U*E,i+p-U*p,r,i+p,r),e.closePath())}return new ce(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),fr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(k.a)(n,[{key:"path",value:function(e){var i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return e&&o>0&&(e.beginPath(),e.arc(i,r,o,0,Math.PI*2,!1),e.closePath()),new ce(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),hr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(k.a)(n,[{key:"path",value:function(e){var i=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&r>0&&o>0&&(e.beginPath(),e.moveTo(s+r,l),e.bezierCurveTo(s+r,l+i*o,s+i*r,l+o,s,l+o),e.bezierCurveTo(s-i*r,l+o,s-r,l+i*o,s-r,l),e.bezierCurveTo(s-r,l-i*o,s-i*r,l-o,s,l-o),e.bezierCurveTo(s+i*r,l-o,s+r,l-i*o,s+r,l),e.closePath()),new ce(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),cr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(k.a)(n,[{key:"getPoints",value:function(){return[new kt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new kt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var i=this.getPoints(),r=Object(ft.a)(i,2),o=r[0],s=o.x,l=o.y,v=r[1],p=v.x,E=v.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(p,E)),new ce(s,l,p,E)}},{key:"getMarkers",value:function(){var e=this.getPoints(),i=Object(ft.a)(e,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(_t),Ze=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="polyline",r.points=[],r.points=kt.parsePath(r.getAttribute("points").getString()),r}return Object(k.a)(n,[{key:"path",value:function(e){var i=this.points,r=Object(ft.a)(i,1),o=r[0],s=o.x,l=o.y,v=new ce(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),i.forEach(function(p){var E=p.x,U=p.y;v.addPoint(E,U),e&&e.lineTo(E,U)}),v}},{key:"getMarkers",value:function(){var e=this.points,i=e.length-1,r=[];return e.forEach(function(o,s){if(s===i)return;r.push([o,o.angleTo(e[s+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}]),n}(_t),vr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(k.a)(n,[{key:"path",value:function(e){var i=Object(Y.a)(Object(w.a)(n.prototype),"path",this).call(this,e),r=Object(ft.a)(this.points,1),o=r[0],s=o.x,l=o.y;return e&&(e.lineTo(s,l),e.closePath()),i}}]),n}(Ze),dr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(k.a)(n,[{key:"createPattern",value:function(e,i,r){var o=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Le(this.document,null);l.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new mt(this.document,"width","".concat(o,"px")),l.attributes.height=new mt(this.document,"height","".concat(s,"px")),l.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var v=this.document.createCanvas(o,s),p=v.getContext("2d"),E=this.getAttribute("x"),U=this.getAttribute("y");E.hasValue()&&U.hasValue()&&p.translate(E.getPixels("x",!0),U.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var et=-1;et<=1;et++)p.save(),l.attributes.x=new mt(this.document,"x",K*v.width),l.attributes.y=new mt(this.document,"y",et*v.height),l.render(p),p.restore();var it=e.createPattern(v,"repeat");return it}}]),n}(Kt),gr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(k.a)(n,[{key:"render",value:function(e,i,r){if(!i)return;var o=i.x,s=i.y,l=this.getAttribute("orient").getString("auto"),v=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(o,s),l==="auto"&&e.rotate(r),v==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var p=new Le(this.document,null);p.type=this.type,p.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(e),e.restore(),v==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-r),e.translate(-o,-s)}}]),n}(Kt),pr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(k.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Ge=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(k.a)(n,[{key:"getBoundingBox",value:function(e){var i=new ce;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(e))}),i}}]),n}(Oe),qe=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(R.a)(r),s=o.stops,l=o.children;return l.forEach(function(v){v.type==="stop"&&s.push(v)}),r}return Object(k.a)(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,i,r){var o=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,v=l.stops,p=this.getGradient(e,i);if(!p)return this.addParentOpacity(r,v[v.length-1].color);if(v.forEach(function(Wt){p.addColorStop(Wt.offset,o.addParentOpacity(r,Wt.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,U=E.screen,K=U.MAX_VIRTUAL_PIXELS,et=U.viewPort,it=Object(ft.a)(et.viewPorts,1),rt=it[0],xt=new Je(E,null);xt.attributes.x=new mt(E,"x",-K/3),xt.attributes.y=new mt(E,"y",-K/3),xt.attributes.width=new mt(E,"width",K),xt.attributes.height=new mt(E,"height",K);var vt=new Ge(E,null);vt.attributes.transform=new mt(E,"transform",this.getAttribute("gradientTransform").getValue()),vt.children=[xt];var ht=new Le(E,null);ht.attributes.x=new mt(E,"x",0),ht.attributes.y=new mt(E,"y",0),ht.attributes.width=new mt(E,"width",rt.width),ht.attributes.height=new mt(E,"height",rt.height),ht.children=[vt];var Et=E.createCanvas(rt.width,rt.height),Ut=Et.getContext("2d");return Ut.fillStyle=p,ht.render(Ut),Ut.createPattern(Et,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(e){var i=this;this.attributesToInherit.forEach(function(r){!i.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&i.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(e,i){if(e.hasValue()){var r=new mt(this.document,"color",i);return r.addOpacity(e).getColor()}return i}}]),n}(Kt),mr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(k.a)(n,[{key:"getGradient",value:function(e,i){var r=this.getGradientUnits()==="objectBoundingBox",o=r?i.getBoundingBox(e):null;if(r&&!o)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=r?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=r?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),v=r?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===v&&l===p?null:e.createLinearGradient(s,l,v,p)}}]),n}(qe),yr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Object(k.a)(n,[{key:"getGradient",value:function(e,i){var r=this.getGradientUnits()==="objectBoundingBox",o=i.getBoundingBox(e);if(r&&!o)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=r?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=r?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),v=s,p=l;this.getAttribute("fx").hasValue()&&(v=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),U=this.getAttribute("fr").getPixels();return e.createRadialGradient(v,p,U,s,l,E)}}]),n}(qe),xr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="stop";var o=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),s=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),r.offset=o,r.color=l.getColor(),r}return Object(k.a)(n)}(Kt),ze=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,a.screen.animations.push(Object(R.a)(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new mt(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(k.a)(n,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),i=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(i,!0):this.parent.getAttribute(i,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,i=this.getProgress(),r=i.progress,o=i.from,s=i.to,l=o.getNumber()+(s.getNumber()-o.getNumber())*r;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var i=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,i.animationFrozen=!0,i.animationFrozenValue=r.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,r.setValue(i.animationFrozen?i.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin<this.duration){var l=this.calcValue(),v=this.getAttribute("type");if(v.hasValue()){var p=v.getString();l="".concat(p,"(").concat(l,")")}r.setValue(l),s=!0}return s}},{key:"getProgress",value:function(){var e=this.document,i=this.values,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(i.hasValue()){var o=r.progress*(i.getValue().length-1),s=Math.floor(o),l=Math.ceil(o);r.from=new mt(e,"from",parseFloat(i.getValue()[s])),r.to=new mt(e,"to",parseFloat(i.getValue()[l])),r.progress=(o-s)/(l-s)}else r.from=this.from,r.to=this.to;return r}}]),n}(Kt),Er=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="animateColor",a}return Object(k.a)(n,[{key:"calcValue",value:function(){var e=this.getProgress(),i=e.progress,r=e.from,o=e.to,s=new Bt.a(r.getColor()),l=new Bt.a(o.getColor());if(s.ok&&l.ok){var v=s.r+(l.r-s.r)*i,p=s.g+(l.g-s.g)*i,E=s.b+(l.b-s.b)*i;return"rgb(".concat(Math.floor(v),", ").concat(Math.floor(p),", ").concat(Math.floor(E),")")}return this.getAttribute("from").getColor()}}]),n}(ze),Or=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="animateTransform",a}return Object(k.a)(n,[{key:"calcValue",value:function(){var e=this.getProgress(),i=e.progress,r=e.from,o=e.to,s=Tt(r.getString()),l=Tt(o.getString()),v=s.map(function(p,E){var U=l[E];return p+(U-p)*i}).join(" ");return v}}]),n}(ze),br=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="font",r.glyphs={},r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber();var o=a.definitions,s=Object(R.a)(r),l=s.children,v=Object(b.a)(l),p;try{for(v.s();!(p=v.n()).done;){var E=p.value;switch(E.type){case"font-face":{r.fontFace=E;var U=E.getStyle("font-family");U.hasValue()&&(o[U.getString()]=Object(R.a)(r));break}case"missing-glyph":r.missingGlyph=E;break;case"glyph":{var K=E;K.arabicForm?(r.isRTL=!0,r.isArabic=!0,typeof r.glyphs[K.unicode]=="undefined"&&(r.glyphs[K.unicode]={}),r.glyphs[K.unicode][K.arabicForm]=K):r.glyphs[K.unicode]=K;break}}}}catch(et){v.e(et)}finally{v.f()}return r}return Object(k.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Tr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return Object(k.a)(n)}(Kt),Pr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="missing-glyph",a.horizAdvX=0,a}return Object(k.a)(n)}(_t),Sr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="tref",a}return Object(k.a)(n,[{key:"getText",value:function(){var e=this.getHrefAttribute().getDefinition();if(e){var i=e.children[0];if(i)return i.getText()}return""}}]),n}(De),Cr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="a";var o=e.childNodes,s=o[0],l=o.length>0&&Array.from(o).every(function(v){return v.nodeType===3});return r.hasText=l,r.text=l?r.getTextFromNode(s):"",r}return Object(k.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(Y.a)(Object(w.a)(n.prototype),"renderChildren",this).call(this,e);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new mt(i,"fontSize",ve.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ce(r,o-l.getPixels("y"),r+this.measureText(e),o))}else if(this.children.length>0){var v=new Ge(this.document,null);v.children=this.children,v.parent=this,v.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"}}]),n}(De);function Rr(d,f){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(d);f&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(d,e).enumerable})),n.push.apply(n,a)}return n}function He(d){for(var f=1;f<arguments.length;f++){var n=arguments[f]!=null?arguments[f]:{};f%2?Rr(Object(n),!0).forEach(function(a){St()(d,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(n)):Rr(Object(n)).forEach(function(a){Object.defineProperty(d,a,Object.getOwnPropertyDescriptor(n,a))})}return d}var Ar=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="textPath",r.textWidth=0,r.textHeight=0,r.pathLength=-1,r.glyphInfo=null,r.letterSpacingCache=[],r.measuresCache=new Map([["",0]]);var o=r.getHrefAttribute().getDefinition();return r.text=r.getTextFromNode(),r.dataArray=r.parsePathData(o),r}return Object(k.a)(n,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(e){var i=this.dataArray;e&&e.beginPath(),i.forEach(function(r){var o=r.type,s=r.points;switch(o){case At.LINE_TO:e&&e.lineTo(s[0],s[1]);break;case At.MOVE_TO:e&&e.moveTo(s[0],s[1]);break;case At.CURVE_TO:e&&e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);break;case At.QUAD_TO:e&&e.quadraticCurveTo(s[0],s[1],s[2],s[3]);break;case At.ARC:{var l=Object(ft.a)(s,8),v=l[0],p=l[1],E=l[2],U=l[3],K=l[4],et=l[5],it=l[6],rt=l[7],xt=E>U?E:U,vt=E>U?1:E/U,ht=E>U?U/E:1;e&&(e.translate(v,p),e.rotate(it),e.scale(vt,ht),e.arc(0,0,xt,K,K+et,Boolean(1-rt)),e.scale(1/vt,1/ht),e.rotate(-it),e.translate(-v,-p));break}case At.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var i=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),o=this.glyphInfo,s=e.fillStyle;i==="underline"&&e.beginPath(),o.forEach(function(l,v){var p=l.p0,E=l.p1,U=l.rotation,K=l.text;e.save(),e.translate(p.x,p.y),e.rotate(U),e.fillStyle&&e.fillText(K,0,0),e.strokeStyle&&e.strokeText(K,0,0),e.restore(),i==="underline"&&(v===0&&e.moveTo(p.x,p.y+r/8),e.lineTo(E.x,E.y+r/5))}),i==="underline"&&(e.lineWidth=r/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,i,r,o,s,l,v,p,E){var U=l,K=this.measureText(e,p);p===" "&&i==="justify"&&r<o&&(K+=(o-r)/s),E>-1&&(U+=this.getLetterSpacingAt(E));var et=this.textHeight/20,it=this.getEquidistantPointOnPath(U,et,0),rt=this.getEquidistantPointOnPath(U+K,et,0),xt={p0:it,p1:rt},vt=it&&rt?Math.atan2(rt.y-it.y,rt.x-it.x):0;if(v){var ht=Math.cos(Math.PI/2+vt)*v,Et=Math.cos(-vt)*v;xt.p0=He(He({},it),{},{x:it.x+ht,y:it.y+Et}),xt.p1=He(He({},rt),{},{x:rt.x+ht,y:rt.y+Et})}return U+=K,{offset:U,segment:xt,rotation:vt}}},{key:"measureText",value:function(e,i){var r=this.measuresCache,o=i||this.getText();if(r.has(o))return r.get(o);var s=this.measureTargetText(e,o);return r.set(o,s),s}},{key:"setTextData",value:function(e){var i=this;if(this.glyphInfo)return;var r=this.getText(),o=r.split(""),s=r.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Qt){return Qt.getPixels("x")}),v=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),U=this.parent.getStyle("letter-spacing"),K=0;!E.hasValue()||E.getValue()==="inherit"?K=U.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&(K=E.getPixels()));var et=[],it=r.length;this.letterSpacingCache=et;for(var rt=0;rt<it;rt++)et.push(typeof l[rt]!="undefined"?l[rt]:K);var xt=et.reduce(function(Qt,ie,st){return st===0?0:Qt+ie||0},0),vt=this.measureText(e),ht=Math.max(vt+xt,0);this.textWidth=vt,this.textHeight=this.getFontSize(),this.glyphInfo=[];var Et=this.getPathLength(),Ut=this.getStyle("startOffset").getNumber(0)*Et,Wt=0;(p==="middle"||p==="center")&&(Wt=-ht/2),(p==="end"||p==="right")&&(Wt=-ht),Wt+=Ut,o.forEach(function(Qt,ie){var st=i.findSegmentToFitChar(e,p,ht,Et,s,Wt,v,Qt,ie),_=st.offset,ct=st.segment,dt=st.rotation;if(Wt=_,!ct.p0||!ct.p1)return;i.glyphInfo.push({text:o[ie],p0:ct.p0,p1:ct.p1,rotation:dt})})}},{key:"parsePathData",value:function(e){if(this.pathLength=-1,!e)return[];var i=[],r=e.pathParser;for(r.reset();!r.isEnd();){var o=r.current,s=o?o.x:0,l=o?o.y:0,v=r.next(),p=v.type,E=[];switch(v.type){case At.MOVE_TO:this.pathM(r,E);break;case At.LINE_TO:p=this.pathL(r,E);break;case At.HORIZ_LINE_TO:p=this.pathH(r,E);break;case At.VERT_LINE_TO:p=this.pathV(r,E);break;case At.CURVE_TO:this.pathC(r,E);break;case At.SMOOTH_CURVE_TO:p=this.pathS(r,E);break;case At.QUAD_TO:this.pathQ(r,E);break;case At.SMOOTH_QUAD_TO:p=this.pathT(r,E);break;case At.ARC:E=this.pathA(r);break;case At.CLOSE_PATH:_t.pathZ(r);break}v.type!==At.CLOSE_PATH?i.push({type:p,points:E,start:{x:s,y:l},pathLength:this.calcLength(s,l,p,E)}):i.push({type:At.CLOSE_PATH,points:[],pathLength:0})}return i}},{key:"pathM",value:function(e,i){var r=_t.pathM(e).point,o=r.x,s=r.y;i.push(o,s)}},{key:"pathL",value:function(e,i){var r=_t.pathL(e).point,o=r.x,s=r.y;return i.push(o,s),At.LINE_TO}},{key:"pathH",value:function(e,i){var r=_t.pathH(e).point,o=r.x,s=r.y;return i.push(o,s),At.LINE_TO}},{key:"pathV",value:function(e,i){var r=_t.pathV(e).point,o=r.x,s=r.y;return i.push(o,s),At.LINE_TO}},{key:"pathC",value:function(e,i){var r=_t.pathC(e),o=r.point,s=r.controlPoint,l=r.currentPoint;i.push(o.x,o.y,s.x,s.y,l.x,l.y)}},{key:"pathS",value:function(e,i){var r=_t.pathS(e),o=r.point,s=r.controlPoint,l=r.currentPoint;return i.push(o.x,o.y,s.x,s.y,l.x,l.y),At.CURVE_TO}},{key:"pathQ",value:function(e,i){var r=_t.pathQ(e),o=r.controlPoint,s=r.currentPoint;i.push(o.x,o.y,s.x,s.y)}},{key:"pathT",value:function(e,i){var r=_t.pathT(e),o=r.controlPoint,s=r.currentPoint;return i.push(o.x,o.y,s.x,s.y),At.QUAD_TO}},{key:"pathA",value:function(e){var i=_t.pathA(e),r=i.rX,o=i.rY,s=i.sweepFlag,l=i.xAxisRotation,v=i.centp,p=i.a1,E=i.ad;return s===0&&E>0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[v.x,v.y,r,o,p,E,l,s]}},{key:"calcLength",value:function(e,i,r,o){var s=0,l=null,v=null,p=0;switch(r){case At.LINE_TO:return this.getLineLength(e,i,o[0],o[1]);case At.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)v=this.getPointOnCubicBezier(p,e,i,o[0],o[1],o[2],o[3],o[4],o[5]),s+=this.getLineLength(l.x,l.y,v.x,v.y),l=v;return s;case At.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)v=this.getPointOnQuadraticBezier(p,e,i,o[0],o[1],o[2],o[3]),s+=this.getLineLength(l.x,l.y,v.x,v.y),l=v;return s;case At.ARC:{s=0;var E=o[4],U=o[5],K=o[4]+U,et=Math.PI/180;if(Math.abs(E-K)<et&&(et=Math.abs(E-K)),l=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),U<0)for(p=E-et;p>K;p-=et)v=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,v.x,v.y),l=v;else for(p=E+et;p<K;p+=et)v=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,v.x,v.y),l=v;return v=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],K,0),s+=this.getLineLength(l.x,l.y,v.x,v.y),s}}return 0}},{key:"getPointOnLine",value:function(e,i,r,o,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:i,v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+Xt),E=Math.sqrt(e*e/(1+p*p));o<i&&(E*=-1);var U=p*E,K=null;if(o===i)K={x:l,y:v+U};else if((v-r)/(l-i+Xt)===p)K={x:l+E,y:v+U};else{var et=0,it=0,rt=this.getLineLength(i,r,o,s);if(rt<Xt)return null;var xt=(l-i)*(o-i)+(v-r)*(s-r);xt/=rt*rt,et=i+xt*(o-i),it=r+xt*(s-r);var vt=this.getLineLength(l,v,et,it),ht=Math.sqrt(e*e-vt*vt);E=Math.sqrt(ht*ht/(1+p*p)),o<i&&(E*=-1),U=p*E,K={x:et+E,y:it+U}}return K}},{key:"getPointOnPath",value:function(e){var i=this.getPathLength(),r=0,o=null;if(e<-5e-5||e-5e-5>i)return null;var s=this.dataArray,l=Object(b.a)(s),v;try{for(l.s();!(v=l.n()).done;){var p=v.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5<e)){r+=p.pathLength;continue}var E=e-r,U=0;switch(p.type){case At.LINE_TO:o=this.getPointOnLine(E,p.start.x,p.start.y,p.points[0],p.points[1],p.start.x,p.start.y);break;case At.ARC:{var K=p.points[4],et=p.points[5],it=p.points[4]+et;if(U=K+E/p.pathLength*et,et<0&&U<it||et>=0&&U>it)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],U,p.points[6]);break}case At.CURVE_TO:U=E/p.pathLength,U>1&&(U=1),o=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 At.QUAD_TO:U=E/p.pathLength,U>1&&(U=1),o=this.getPointOnQuadraticBezier(U,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(o)return o;break}}catch(rt){l.e(rt)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,i,r,o){return Math.sqrt((r-e)*(r-e)+(o-i)*(o-i))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,i){return i.pathLength>0?e+i.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,i,r,o,s,l,v,p,E){var U=p*Se(e)+l*me(e)+o*ye(e)+i*xe(e),K=E*Se(e)+v*me(e)+s*ye(e)+r*xe(e);return{x:U,y:K}}},{key:"getPointOnQuadraticBezier",value:function(e,i,r,o,s,l,v){var p=l*Ee(e)+o*Ie(e)+i*Ne(e),E=v*Ee(e)+s*Ie(e)+r*Ne(e);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(e,i,r,o,s,l){var v=Math.cos(l),p=Math.sin(l),E={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:e+(E.x*v-E.y*p),y:i+(E.x*p+E.y*v)}}},{key:"buildEquidistantCache",value:function(e,i){var r=this.getPathLength(),o=i||.25,s=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==o){this.equidistantCache={step:s,precision:o,points:[]};for(var l=0,v=0;v<=r;v+=o){var p=this.getPointOnPath(v),E=this.getPointOnPath(v+o);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:v}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,i,r){if(this.buildEquidistantCache(i,r),e<0||e-this.getPathLength()>5e-5)return null;var o=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}]),n}(De),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ir=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="image",r.loaded=!1;var o=r.getHrefAttribute().getString();if(!o)return Object($.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(R.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(k.a)(n,[{key:"loadImage",value:function(e){var i=this;return ut()(Ct().mark(function r(){var o;return Ct().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,i.document.createImage(e);case 3:o=l.sent,i.image=o,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:i.loaded=!0;case 11:case"end":return l.stop()}},r,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var i=this;return ut()(Ct().mark(function r(){var o,s,l,v;return Ct().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o=tn.exec(e),!o){E.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,i.document.fetch(e);case 9:return l=E.sent,E.next=12,l.text();case 12:v=E.sent,i.image=v,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(e,'":'),E.t0);case 19:i.loaded=!0;case 20:case"end":return E.stop()}},r,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var i=this.document,r=this.image,o=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),v=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!o||!r||!v||!p)return;if(e.save(),e.translate(s,l),this.isSvg){var E=i.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:v,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var U=this.image;i.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:v,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"),i=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new ce(e,i,e+r,i+o)}}]),n}(Oe),Nr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(k.a)(n,[{key:"render",value:function(e){}}]),n}(Oe),Mr=function(){function d(f){Object(J.a)(this,d),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(k.a)(d,[{key:"load",value:function(n,a){var e=this;return ut()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,r=e.document,v.next=4,r.canvg.parser.load(a);case 4:o=v.sent,s=o.getElementsByTagName("font"),Array.from(s).forEach(function(p){var E=r.createElement(p);r.definitions[n]=E}),v.next=12;break;case 9:v.prev=9,v.t0=v.catch(0),console.error('Error while loading font "'.concat(a,'":'),v.t0);case 12:e.loaded=!0;case 13:case"end":return v.stop()}},i,null,[[0,9]])}))()}}]),d}(),_e=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="style";var o=Lt(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach(function(l){var v=l.trim();if(!v)return;var p=v.split("{"),E=p[0].split(","),U=p[1].split(";");E.forEach(function(K){var et=K.trim();if(!et)return;var it=a.styles[et]||{};if(U.forEach(function(vt){var ht=vt.indexOf(":"),Et=vt.substr(0,ht).trim(),Ut=vt.substr(ht+1,vt.length-ht).trim();Et&&Ut&&(it[Et]=new mt(a,Et,Ut))}),a.styles[et]=it,a.stylesSpecificity[et]=he(et),et==="@font-face"){var rt=it["font-family"].getString().replace(/"|'/g,""),xt=it.src.getString().split(",");xt.forEach(function(vt){if(vt.indexOf('format("svg")')>0){var ht=gt(vt);ht&&void new Mr(a).load(rt,ht)}})}})}),r}return Object(k.a)(n)}(Kt);_e.parseExternalUrl=gt;var jr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(k.a)(n,[{key:"setContext",value:function(e){Object(Y.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e);var i=this.getAttribute("x"),r=this.getAttribute("y");i.hasValue()&&e.translate(i.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}},{key:"path",value:function(e){var i=this.element;i&&i.path(e)}},{key:"renderChildren",value:function(e){var i=this.document,r=this.element;if(r){var o=r;if(r.type==="symbol"&&(o=new Le(i,null),o.attributes.viewBox=new mt(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new mt(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new mt(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new mt(i,"opacity",this.calculateOpacity())),o.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(o.attributes.width=new mt(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new mt(i,"height",l.getString()))}var v=o.parent;o.parent=this,o.render(e),o.parent=v}}},{key:"getBoundingBox",value:function(e){var i=this.element;return i?i.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,i=this.element;return we.fromElement(e,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Oe);function $e(d,f,n,a,e,i){return d[n*a*4+f*4+i]}function Ye(d,f,n,a,e,i,r){d[n*a*4+f*4+i]=r}function Zt(d,f,n){var a=d[f];return a*n}function ge(d,f,n,a){return f+Math.cos(d)*n+Math.sin(d)*a}var tr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="feColorMatrix";var o=Tt(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":{var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=o[0]*Math.PI/180;o=[ge(l,.213,.787,-.213),ge(l,.715,-.715,-.715),ge(l,.072,-.072,.928),0,0,ge(l,.213,-.213,.143),ge(l,.715,.285,.14),ge(l,.072,-.072,-.283),0,0,ge(l,.213,-.213,-.787),ge(l,.715,-.715,.715),ge(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return r.matrix=o,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Object(k.a)(n,[{key:"apply",value:function(e,i,r,o,s){for(var l=this.includeOpacity,v=this.matrix,p=e.getImageData(0,0,o,s),E=0;E<s;E++)for(var U=0;U<o;U++){var K=$e(p.data,U,E,o,s,0),et=$e(p.data,U,E,o,s,1),it=$e(p.data,U,E,o,s,2),rt=$e(p.data,U,E,o,s,3),xt=Zt(v,0,K)+Zt(v,1,et)+Zt(v,2,it)+Zt(v,3,rt)+Zt(v,4,1),vt=Zt(v,5,K)+Zt(v,6,et)+Zt(v,7,it)+Zt(v,8,rt)+Zt(v,9,1),ht=Zt(v,10,K)+Zt(v,11,et)+Zt(v,12,it)+Zt(v,13,rt)+Zt(v,14,1),Et=Zt(v,15,K)+Zt(v,16,et)+Zt(v,17,it)+Zt(v,18,rt)+Zt(v,19,1);l&&(xt=0,vt=0,ht=0,Et*=rt/255),Ye(p.data,U,E,o,s,0,xt),Ye(p.data,U,E,o,s,1,vt),Ye(p.data,U,E,o,s,2,ht),Ye(p.data,U,E,o,s,3,Et)}e.clearRect(0,0,o,s),e.putImageData(p,0,0)}}]),n}(Kt),er=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="mask",a}return Object(k.a)(n,[{key:"apply",value:function(e,i){var r=this.document,o=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),l=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y");if(!l&&!v){var p=new ce;this.children.forEach(function(rt){p.addBoundingBox(rt.getBoundingBox(e))}),o=Math.floor(p.x1),s=Math.floor(p.y1),l=Math.floor(p.width),v=Math.floor(p.height)}var E=this.removeStyles(i,n.ignoreStyles),U=r.createCanvas(o+l,s+v),K=U.getContext("2d");r.screen.setDefaults(K),this.renderChildren(K),new tr(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(K,0,0,o+l,s+v);var et=r.createCanvas(o+l,s+v),it=et.getContext("2d");r.screen.setDefaults(it),i.render(it),it.globalCompositeOperation="destination-in",it.fillStyle=K.createPattern(U,"no-repeat"),it.fillRect(0,0,o+l,s+v),e.fillStyle=it.createPattern(et,"no-repeat"),e.fillRect(0,0,o+l,s+v),this.restoreStyles(i,E)}},{key:"render",value:function(e){}}]),n}(Kt);er.ignoreStyles=["mask","transform","clip-path"];var Dr=function(){},Lr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="clipPath",a}return Object(k.a)(n,[{key:"apply",value:function(e){var i=this.document,r=Reflect.getPrototypeOf(e),o=e.beginPath,s=e.closePath;r&&(r.beginPath=Dr,r.closePath=Dr),Reflect.apply(o,e,[]),this.children.forEach(function(l){if(typeof l.path=="undefined")return;var v=typeof l.elementTransform!="undefined"?l.elementTransform():null;v||(v=we.fromElement(i,l)),v&&v.apply(e),l.path(e),r&&(r.closePath=s),v&&v.unapply(e)}),Reflect.apply(s,e,[]),e.clip(),r&&(r.beginPath=o,r.closePath=s)}},{key:"render",value:function(e){}}]),n}(Kt),rr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="filter",a}return Object(k.a)(n,[{key:"apply",value:function(e,i){var r=this.document,o=this.children,s=i.getBoundingBox(e);if(!s)return;var l=0,v=0;o.forEach(function(ht){var Et=ht.extraFilterDistance||0;l=Math.max(l,Et),v=Math.max(v,Et)});var p=Math.floor(s.width),E=Math.floor(s.height),U=p+2*l,K=E+2*v;if(U<1||K<1)return;var et=Math.floor(s.x),it=Math.floor(s.y),rt=this.removeStyles(i,n.ignoreStyles),xt=r.createCanvas(U,K),vt=xt.getContext("2d");r.screen.setDefaults(vt),vt.translate(-et+l,-it+v),i.render(vt),o.forEach(function(ht){typeof ht.apply=="function"&&ht.apply(vt,0,0,U,K)}),e.drawImage(xt,0,0,U,K,et-l,it-v,U,K),this.restoreStyles(i,rt)}},{key:"render",value:function(e){}}]),n}(Kt);rr.ignoreStyles=["filter","transform","clip-path"];var Ur=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="feDropShadow",r.addStylesFromStyleDefinition(),r}return Object(k.a)(n,[{key:"apply",value:function(e,i,r,o,s){}}]),n}(Kt),wr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="feMorphology",a}return Object(k.a)(n,[{key:"apply",value:function(e,i,r,o,s){}}]),n}(Kt),Vr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="feComposite",a}return Object(k.a)(n,[{key:"apply",value:function(e,i,r,o,s){}}]),n}(Kt),Br=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(a,e,i){var r;return Object(J.a)(this,n),r=f.call(this,a,e,i),r.type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return Object(k.a)(n,[{key:"apply",value:function(e,i,r,o,s){var l=this.document,v=this.blurRadius,p=l.window?l.window.document.body:null,E=e.canvas;E.id=l.getUniqueId(),p&&(E.style.display="none",p.appendChild(E)),Object(Ft.a)(E,i,r,o,s,v),p&&p.removeChild(E)}}]),n}(Kt),Fr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="title",a}return Object(k.a)(n)}(Kt),Wr=function(d){Object(Q.a)(n,d);var f=Object(H.a)(n);function n(){var a;return Object(J.a)(this,n),a=f.apply(this,arguments),a.type="desc",a}return Object(k.a)(n)}(Kt),en={svg:Le,rect:Je,circle:fr,ellipse:hr,line:cr,polyline:Ze,polygon:vr,path:_t,pattern:dr,marker:gr,defs:pr,linearGradient:mr,radialGradient:yr,stop:xr,animate:ze,animateColor:Er,animateTransform:Or,font:br,"font-face":Tr,"missing-glyph":Pr,glyph:ke,text:De,tspan:Qe,tref:Sr,a:Cr,textPath:Ar,image:Ir,g:Ge,symbol:Nr,style:_e,use:jr,mask:er,clipPath:Lr,filter:rr,feDropShadow:Ur,feMorphology:wr,feComposite:Vr,feColorMatrix:tr,feGaussianBlur:Br,title:Fr,desc:Wr};function Gr(d,f){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(d);f&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(d,e).enumerable})),n.push.apply(n,a)}return n}function rn(d){for(var f=1;f<arguments.length;f++){var n=arguments[f]!=null?arguments[f]:{};f%2?Gr(Object(n),!0).forEach(function(a){St()(d,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(a){Object.defineProperty(d,a,Object.getOwnPropertyDescriptor(n,a))})}return d}function nn(d,f){var n=document.createElement("canvas");return n.width=d,n.height=f,n}function an(d){return nr.apply(this,arguments)}function nr(){return nr=ut()(Ct().mark(function d(f){var n,a,e=arguments;return Ct().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),n&&(a.crossOrigin="Anonymous"),r.abrupt("return",new Promise(function(o,s){a.onload=function(){o(a)},a.onerror=function(l,v,p,E,U){s(U)},a.src=f}));case 4:case"end":return r.stop()}},d)})),nr.apply(this,arguments)}var Ve=function(){function d(f){Object(J.a)(this,d);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.rootEmSize,e=a===void 0?12:a,i=n.emSize,r=i===void 0?12:i,o=n.createCanvas,s=o===void 0?d.createCanvas:o,l=n.createImage,v=l===void 0?d.createImage:l,p=n.anonymousCrossOrigin;this.canvg=f,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=f.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=s,this.createImage=this.bindCreateImage(v,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(k.a)(d,[{key:"bindCreateImage",value:function(n,a){return typeof a=="boolean"?function(e,i){return n(e,typeof i=="boolean"?i:a)}:n}},{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 n=this.emSizeStack;return n[n.length-1]},set:function(n){var a=this.emSizeStack;a.push(n)}},{key:"popEmSize",value:function(){var n=this.emSizeStack;n.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(n){return n.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(n){return n.loaded})}},{key:"createDocumentElement",value:function(n){var a=this.createElement(n.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(n){var a=n.nodeName.replace(/^[^:]+:/,""),e=d.elementTypes[a];return typeof e!="undefined"?new e(this,n):new ur(this,n)}},{key:"createTextNode",value:function(n){return new _r(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(rn({document:this},n))}}]),d}();Ve.createCanvas=nn,Ve.createImage=an,Ve.elementTypes=en;function zr(d,f){var n=Object.keys(d);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(d);f&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(d,e).enumerable})),n.push.apply(n,a)}return n}function Ae(d){for(var f=1;f<arguments.length;f++){var n=arguments[f]!=null?arguments[f]:{};f%2?zr(Object(n),!0).forEach(function(a){St()(d,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(a){Object.defineProperty(d,a,Object.getOwnPropertyDescriptor(n,a))})}return d}var Hr=function(){function d(f,n){Object(J.a)(this,d);var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new We(a),this.screen=new de(f,a),this.options=a;var e=new Ve(this,a),i=e.createDocumentElement(n);this.document=e,this.documentElement=i}return Object(k.a)(d,[{key:"fork",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return d.from(n,a,Ae(Ae({},this.options),e))}},{key:"forkString",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return d.fromString(n,a,Ae(Ae({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var n=arguments,a=this;return ut()(Ct().mark(function e(){var i;return Ct().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ae({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},i)),o.next=4,a.ready();case 4:a.stop();case 5:case"end":return o.stop()}},e)}))()}},{key:"start",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,i=this.options;e.start(a,Ae(Ae({enableRedraw:!0},i),n))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(n,a,e)}}],[{key:"from",value:function(n,a){var e=arguments;return ut()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return r=e.length>2&&e[2]!==void 0?e[2]:{},o=new We(r),v.next=4,o.parse(a);case 4:return s=v.sent,v.abrupt("return",new d(n,s,r));case 6:case"end":return v.stop()}},i)}))()}},{key:"fromString",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new We(e),r=i.parseFromString(a);return new d(n,r,e)}}]),d}()}.call(this,t("Q2Ig"))},Dk1u:function(m,x,t){var u=t("4YbN"),h=t("IL+x"),c=TypeError;m.exports=function(g){if(u(g))return g;throw c(h(g)+" is not a constructor")}},ENhe:function(m,x){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ESVS:function(m,x,t){"use strict";var u=t("nCzB"),h=t("m7zg"),c=t("zFjv"),g=t("GxTi").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(T){var P=c.f(this);return h(P.reject,void 0,T),P.promise}})},FjAG:function(m,x,t){var u=t("8HiI"),h=t("721z"),c=t("p5Ma"),g=t("tMNq"),y=TypeError,T=function(P){return function(I,S,L,B){u(S);var j=h(I),W=c(j),G=g(j),M=P?G-1:0,X=P?-1:1;if(L<2)for(;;){if(M in W){B=W[M],M+=X;break}if(M+=X,P?M<0:G<=M)throw y("Reduce of empty array with no initial value")}for(;P?M>=0:G>M;M+=X)M in W&&(B=S(B,W[M],M,j));return B}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,t){var u=t("++4Y"),h=t("eRwv");m.exports=u&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,t){var u=t("++4Y"),h=t("pVCk"),c=t("FkIU"),g=t("WxoH"),y=t("GTqx"),T=TypeError,P=Object.defineProperty,I=Object.getOwnPropertyDescriptor,S="enumerable",L="configurable",B="writable";x.f=u?c?function(W,G,M){if(g(W),G=y(G),g(M),typeof W=="function"&&G==="prototype"&&"value"in M&&B in M&&!M[B]){var X=I(W,G);X&&X[B]&&(W[G]=M.value,M={configurable:L in M?M[L]:X[L],enumerable:S in M?M[S]:X[S],writable:!1})}return P(W,G,M)}:P:function(W,G,M){if(g(W),G=y(G),g(M),h)try{return P(W,G,M)}catch(X){}if("get"in M||"set"in M)throw T("Accessors not supported");return"value"in M&&(W[G]=M.value),W}},FqHY:function(m,x,t){var u=t("eE3R"),h=t("Ks5W");m.exports=/ipad|iphone|ipod/i.test(u)&&h.Pebble!==void 0},G5Kn:function(m,x,t){var u=t("11yv"),h=t("XFuk"),c=t("FlRv").f,g=u("unscopables"),y=Array.prototype;y[g]==null&&c(y,g,{configurable:!0,value:h(null)}),m.exports=function(T){y[g][T]=!0}},GHES:function(m,x,t){"use strict";var u=t("nCzB"),h=t("m7zg"),c=t("jybJ"),g=t("N6FT"),y=t("JTf3"),T=t("qozo"),P=t("WLJ+"),I=t("JHvW"),S=t("ueY1"),L=t("8ODz"),B=t("WaP5"),j=t("11yv"),W=t("AoAp"),G=t("qjFr"),M=g.PROPER,X=g.CONFIGURABLE,q=G.IteratorPrototype,z=G.BUGGY_SAFARI_ITERATORS,Z=j("iterator"),D="keys",lt="values",C="entries",N=function(){return this};m.exports=function(F,A,nt,at,tt,O,$){T(nt,A,at);var b=function(pt){if(pt===tt&&Q)return Q;if(!z&&pt in w)return w[pt];switch(pt){case D:return function(){return new nt(this,pt)};case lt:return function(){return new nt(this,pt)};case C:return function(){return new nt(this,pt)}}return function(){return new nt(this)}},R=A+" Iterator",Y=!1,w=F.prototype,V=w[Z]||w["@@iterator"]||tt&&w[tt],Q=!z&&V||b(tt),H=A=="Array"&&w.entries||V,J,k,ft;if(H&&(J=P(H.call(new F)),J!==Object.prototype&&J.next&&(!c&&P(J)!==q&&(I?I(J,q):y(J[Z])||B(J,Z,N)),S(J,R,!0,!0),c&&(W[R]=N))),M&&tt==lt&&V&&V.name!==lt&&(!c&&X?L(w,"name",lt):(Y=!0,Q=function(){return h(V,this)})),tt)if(k={values:b(lt),keys:O?Q:b(D),entries:b(C)},$)for(ft in k)(z||Y||!(ft in w))&&B(w,ft,k[ft]);else u({target:A,proto:!0,forced:z||Y},k);return(!c||$)&&w[Z]!==Q&&B(w,Z,Q,{name:tt}),W[A]=Q,k}},GI0h:function(m,x,t){var u=t("me6S"),h=u("span").classList,c=h&&h.constructor&&h.constructor.prototype;m.exports=c===Object.prototype?void 0:c},GTqx:function(m,x,t){var u=t("ms20"),h=t("bT0D");m.exports=function(c){var g=u(c,"string");return h(g)?g:g+""}},GVkW:function(m,x,t){"use strict";var u=t("nCzB"),h=t("aLaa"),c=t("fKql").f,g=t("c3MK"),y=t("qzpy"),T=t("OU4x"),P=t("XaNE"),I=t("/TZh"),S=t("jybJ"),L=h("".endsWith),B=h("".slice),j=Math.min,W=I("endsWith"),G=!S&&!W&&!!function(){var M=c(String.prototype,"endsWith");return M&&!M.writable}();u({target:"String",proto:!0,forced:!G&&!W},{endsWith:function(X){var q=y(P(this));T(X);var z=arguments.length>1?arguments[1]:void 0,Z=q.length,D=z===void 0?Z:j(g(z),Z),lt=y(X);return L?L(q,lt,D):B(q,D-lt.length,D)===lt}})},GgKt:function(m,x,t){var u=t("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},GxTi:function(m,x,t){var u=t("Ks5W"),h=t("KLK4"),c=t("JTf3"),g=t("mGb/"),y=t("sNJV"),T=t("11yv"),P=t("vTDQ"),I=t("dAmL"),S=t("jybJ"),L=t("aNIs"),B=h&&h.prototype,j=T("species"),W=!1,G=c(u.PromiseRejectionEvent),M=g("Promise",function(){var X=y(h),q=X!==String(h);if(!q&&L===66)return!0;if(S&&!(B.catch&&B.finally))return!0;if(!L||L<51||!/native code/.test(X)){var z=new h(function(lt){lt(1)}),Z=function(lt){lt(function(){},function(){})},D=z.constructor={};if(D[j]=Z,W=z.then(function(){})instanceof Z,!W)return!0}return!q&&(P||I)&&!G});m.exports={CONSTRUCTOR:M,REJECTION_EVENT:G,SUBCLASSING:W}},Gywb:function(m,x,t){var u=t("eRwv");m.exports=!u(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},"HTC/":function(m,x,t){"use strict";var u=t("WxoH");m.exports=function(){var h=u(this),c="";return h.hasIndices&&(c+="d"),h.global&&(c+="g"),h.ignoreCase&&(c+="i"),h.multiline&&(c+="m"),h.dotAll&&(c+="s"),h.unicode&&(c+="u"),h.unicodeSets&&(c+="v"),h.sticky&&(c+="y"),c}},IGIO:function(m,x,t){var u=t("ba8b"),h=t("Ks5W");m.exports=u(h.process)=="process"},"IL+x":function(m,x){var t=String;m.exports=function(u){try{return t(u)}catch(h){return"Object"}}},JHvW:function(m,x,t){var u=t("aLaa"),h=t("WxoH"),c=t("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},T;try{T=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),T(y,[]),g=y instanceof Array}catch(P){}return function(I,S){return h(I),c(S),g?T(I,S):I.__proto__=S,I}}():void 0)},JTf3:function(m,x,t){var u=t("013W"),h=u.all;m.exports=u.IS_HTMLDDA?function(c){return typeof c=="function"||c===h}:function(c){return typeof c=="function"}},KKe4:function(m,x,t){"use strict";var u=t("m7zg"),h=t("WONN"),c=t("WxoH"),g=t("x0Ve"),y=t("c3MK"),T=t("qzpy"),P=t("XaNE"),I=t("oK8H"),S=t("M/+V"),L=t("3fk+");h("match",function(B,j,W){return[function(M){var X=P(this),q=g(M)?void 0:I(M,B);return q?u(q,M,X):new RegExp(M)[B](T(X))},function(G){var M=c(this),X=T(G),q=W(j,M,X);if(q.done)return q.value;if(!M.global)return L(M,X);var z=M.unicode;M.lastIndex=0;for(var Z=[],D=0,lt;(lt=L(M,X))!==null;){var C=T(lt[0]);Z[D]=C,C===""&&(M.lastIndex=S(X,y(M.lastIndex),z)),D++}return D===0?null:Z}]})},KLK4:function(m,x,t){var u=t("Ks5W");m.exports=u.Promise},KLN8:function(m,x,t){"use strict";var u=t("nCzB"),h=t("aLaa"),c=t("fKql").f,g=t("c3MK"),y=t("qzpy"),T=t("OU4x"),P=t("XaNE"),I=t("/TZh"),S=t("jybJ"),L=h("".startsWith),B=h("".slice),j=Math.min,W=I("startsWith"),G=!S&&!W&&!!function(){var M=c(String.prototype,"startsWith");return M&&!M.writable}();u({target:"String",proto:!0,forced:!G&&!W},{startsWith:function(X){var q=y(P(this));T(X);var z=g(j(arguments.length>1?arguments[1]:void 0,q.length)),Z=y(X);return L?L(q,Z,z):B(q,z,z+Z.length)===Z}})},Ks5W:function(m,x,t){(function(u){var h=function(c){return c&&c.Math==Math&&c};m.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},Lltv:function(m,x,t){"use strict";var u=t("vkZI"),h=t("G5Kn"),c=t("AoAp"),g=t("UQ6y"),y=t("FlRv").f,T=t("GHES"),P=t("i57Q"),I=t("jybJ"),S=t("++4Y"),L="Array Iterator",B=g.set,j=g.getterFor(L);m.exports=T(Array,"Array",function(G,M){B(this,{type:L,target:u(G),index:0,kind:M})},function(){var G=j(this),M=G.target,X=G.kind,q=G.index++;return!M||q>=M.length?(G.target=void 0,P(void 0,!0)):X=="keys"?P(q,!1):X=="values"?P(M[q],!1):P([q,M[q]],!1)},"values");var W=c.Arguments=c.Array;if(h("keys"),h("values"),h("entries"),!I&&S&&W.name!=="values")try{y(W,"name",{value:"values"})}catch(G){}},"M/+V":function(m,x,t){"use strict";var u=t("ymN0").charAt;m.exports=function(h,c,g){return c+(g?u(h,c).length:1)}},MNKV:function(m,x,t){"use strict";var u=t("nCzB"),h=t("aLaa"),c=t("OU4x"),g=t("XaNE"),y=t("qzpy"),T=t("/TZh"),P=h("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(S){return!!~P(y(g(this)),y(c(S)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,t){var u=t("aLaa"),h=0,c=Math.random(),g=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++h+c,36)}},N6FT:function(m,x,t){var u=t("++4Y"),h=t("YELS"),c=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=h(c,"name"),T=y&&function(){}.name==="something",P=y&&(!u||u&&g(c,"name").configurable);m.exports={EXISTS:y,PROPER:T,CONFIGURABLE:P}},NCkV:function(m,x,t){"use strict";var u=t("1mOU"),h=t("m7zg"),c=t("aLaa"),g=t("WONN"),y=t("WxoH"),T=t("x0Ve"),P=t("COGW"),I=t("XaNE"),S=t("NudO"),L=t("M/+V"),B=t("c3MK"),j=t("qzpy"),W=t("oK8H"),G=t("8Ys4"),M=t("3fk+"),X=t("WMbf"),q=t("RhGR"),z=t("eRwv"),Z=q.UNSUPPORTED_Y,D=4294967295,lt=Math.min,C=[].push,N=c(/./.exec),F=c(C),A=c("".slice),nt=!z(function(){var at=/(?:)/,tt=at.exec;at.exec=function(){return tt.apply(this,arguments)};var O="ab".split(at);return O.length!==2||O[0]!=="a"||O[1]!=="b"});g("split",function(at,tt,O){var $;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?$=function(b,R){var Y=j(I(this)),w=R===void 0?D:R>>>0;if(w===0)return[];if(b===void 0)return[Y];if(!P(b))return h(tt,Y,b,w);for(var V=[],Q=(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")+(b.sticky?"y":""),H=0,J=new RegExp(b.source,Q+"g"),k,ft,pt;(k=h(X,J,Y))&&!(ft=J.lastIndex,ft>H&&(F(V,A(Y,H,k.index)),k.length>1&&k.index<Y.length&&u(C,V,G(k,1)),pt=k[0].length,H=ft,V.length>=w));)J.lastIndex===k.index&&J.lastIndex++;return H===Y.length?(pt||!N(J,""))&&F(V,""):F(V,A(Y,H)),V.length>w?G(V,0,w):V}:"0".split(void 0,0).length?$=function(b,R){return b===void 0&&R===0?[]:h(tt,this,b,R)}:$=tt,[function(R,Y){var w=I(this),V=T(R)?void 0:W(R,at);return V?h(V,R,w,Y):h($,j(w),R,Y)},function(b,R){var Y=y(this),w=j(b),V=O($,Y,w,R,$!==tt);if(V.done)return V.value;var Q=S(Y,RegExp),H=Y.unicode,J=(Y.ignoreCase?"i":"")+(Y.multiline?"m":"")+(Y.unicode?"u":"")+(Z?"g":"y"),k=new Q(Z?"^(?:"+Y.source+")":Y,J),ft=R===void 0?D:R>>>0;if(ft===0)return[];if(w.length===0)return M(k,w)===null?[w]:[];for(var pt=0,ut=0,Nt=[];ut<w.length;){k.lastIndex=Z?0:ut;var St=M(k,Z?A(w,ut):w),Ot;if(St===null||(Ot=lt(B(k.lastIndex+(Z?ut:0)),w.length))===pt)ut=L(w,ut,H);else{if(F(Nt,A(w,pt,ut)),Nt.length===ft)return Nt;for(var It=1;It<=St.length-1;It++)if(F(Nt,St[It]),Nt.length===ft)return Nt;ut=pt=Ot}}return F(Nt,A(w,pt)),Nt}]},!nt,Z)},NIpK:function(m,x,t){var u=t("JTf3"),h=String,c=TypeError;m.exports=function(g){if(typeof g=="object"||u(g))return g;throw c("Can't set "+h(g)+" as a prototype")}},"NK/Q":function(m,x,t){var u=t("Ks5W"),h=t("JTf3"),c=u.WeakMap;m.exports=h(c)&&/native code/.test(String(c))},"Ne/+":function(m,x,t){var u=t("aLaa"),h=t("721z"),c=Math.floor,g=u("".charAt),y=u("".replace),T=u("".slice),P=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,I=/\$([$&'`]|\d{1,2})/g;m.exports=function(S,L,B,j,W,G){var M=B+S.length,X=j.length,q=I;return W!==void 0&&(W=h(W),q=P),y(G,q,function(z,Z){var D;switch(g(Z,0)){case"$":return"$";case"&":return S;case"`":return T(L,0,B);case"'":return T(L,M);case"<":D=W[T(Z,1,-1)];break;default:var lt=+Z;if(lt===0)return z;if(lt>X){var C=c(lt/10);return C===0?z:C<=X?j[C-1]===void 0?g(Z,1):j[C-1]+g(Z,1):z}D=j[lt-1]}return D===void 0?"":D})}},NudO:function(m,x,t){var u=t("WxoH"),h=t("Dk1u"),c=t("x0Ve"),g=t("11yv"),y=g("species");m.exports=function(T,P){var I=u(T).constructor,S;return I===void 0||c(S=u(I)[y])?P:h(S)}},Nybj:function(m,x,t){var u=t("vkZI"),h=t("n6S8"),c=t("tMNq"),g=function(y){return function(T,P,I){var S=u(T),L=c(S),B=h(I,L),j;if(y&&P!=P){for(;L>B;)if(j=S[B++],j!=j)return!0}else for(;L>B;B++)if((y||B in S)&&S[B]===P)return y||B||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,t){var u=t("COGW"),h=TypeError;m.exports=function(c){if(u(c))throw h("The method doesn't accept regular expressions");return c}},Ppro:function(m,x,t){"use strict";var u=t("nCzB"),h=t("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},QELg:function(m,x,t){"use strict";var u=t("eRwv");m.exports=function(h,c){var g=[][h];return!!g&&u(function(){g.call(null,c||function(){return 1},1)})}},QrM1:function(m,x,t){var u=t("ZpKI"),h=t("Yzn+"),c=h.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return u(y,c)}},"RXj+":function(m,x,t){var u=t("aLaa"),h=t("XaNE"),c=t("qzpy"),g=t("noWC"),y=u("".replace),T="["+g+"]",P=RegExp("^"+T+T+"*"),I=RegExp(T+T+"*$"),S=function(L){return function(B){var j=c(h(B));return L&1&&(j=y(j,P,"")),L&2&&(j=y(j,I,"")),j}};m.exports={start:S(1),end:S(2),trim:S(3)}},RYfq:function(m,x,t){var u=t("Ks5W"),h=t("JTf3"),c=function(g){return h(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?c(u[g]):u[g]&&u[g][y]}},RhGR:function(m,x,t){var u=t("eRwv"),h=t("Ks5W"),c=h.RegExp,g=u(function(){var P=c("a","y");return P.lastIndex=2,P.exec("abcd")!=null}),y=g||u(function(){return!c("a","y").sticky}),T=g||u(function(){var P=c("^r","gy");return P.lastIndex=2,P.exec("str")!=null});m.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},SN6V:function(m,x,t){var u=t("/dXc");m.exports=function(h){var c=+h;return c!==c||c===0?0:u(c)}},"ST+I":function(m,x,t){var u=t("aNr2"),h=t("MURR"),c=u("keys");m.exports=function(g){return c[g]||(c[g]=h(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,t){var u=t("JTf3"),h=t("013W"),c=h.all;m.exports=h.IS_HTMLDDA?function(g){return typeof g=="object"?g!==null:u(g)||g===c}:function(g){return typeof g=="object"?g!==null:u(g)}},TRzv:function(m,x,t){var u=t("WxoH"),h=t("SwuV"),c=t("zFjv");m.exports=function(g,y){if(u(g),h(y)&&y.constructor===g)return y;var T=c.f(g),P=T.resolve;return P(y),T.promise}},Ttl4:function(m,x,t){var u=t("YELS"),h=t("x1+7"),c=t("fKql"),g=t("FlRv");m.exports=function(y,T,P){for(var I=h(T),S=g.f,L=c.f,B=0;B<I.length;B++){var j=I[B];!u(y,j)&&!(P&&u(P,j))&&S(y,j,L(T,j))}}},UCFi:function(m,x){x.f=Object.getOwnPropertySymbols},UQ6y:function(m,x,t){var u=t("NK/Q"),h=t("Ks5W"),c=t("SwuV"),g=t("8ODz"),y=t("YELS"),T=t("4gdG"),P=t("ST+I"),I=t("SkNP"),S="Object already initialized",L=h.TypeError,B=h.WeakMap,j,W,G,M=function(Z){return G(Z)?W(Z):j(Z,{})},X=function(Z){return function(D){var lt;if(!c(D)||(lt=W(D)).type!==Z)throw L("Incompatible receiver, "+Z+" required");return lt}};if(u||T.state){var q=T.state||(T.state=new B);q.get=q.get,q.has=q.has,q.set=q.set,j=function(Z,D){if(q.has(Z))throw L(S);return D.facade=Z,q.set(Z,D),D},W=function(Z){return q.get(Z)||{}},G=function(Z){return q.has(Z)}}else{var z=P("state");I[z]=!0,j=function(Z,D){if(y(Z,z))throw L(S);return D.facade=Z,g(Z,z,D),D},W=function(Z){return y(Z,z)?Z[z]:{}},G=function(Z){return y(Z,z)}}m.exports={set:j,get:W,has:G,enforce:M,getterFor:X}},Vgcz:function(m,x,t){var u=t("m7zg"),h=t("YELS"),c=t("3Xd8"),g=t("HTC/"),y=RegExp.prototype;m.exports=function(T){var P=T.flags;return P===void 0&&!("flags"in y)&&!h(T,"flags")&&c(y,T)?u(g,T):P}},"WLJ+":function(m,x,t){var u=t("YELS"),h=t("JTf3"),c=t("721z"),g=t("ST+I"),y=t("Gywb"),T=g("IE_PROTO"),P=Object,I=P.prototype;m.exports=y?P.getPrototypeOf:function(S){var L=c(S);if(u(L,T))return L[T];var B=L.constructor;return h(B)&&L instanceof B?B.prototype:L instanceof P?I:null}},WMbf:function(m,x,t){"use strict";var u=t("m7zg"),h=t("aLaa"),c=t("qzpy"),g=t("HTC/"),y=t("RhGR"),T=t("aNr2"),P=t("XFuk"),I=t("UQ6y").get,S=t("4Qxg"),L=t("c55Z"),B=T("native-string-replace",String.prototype.replace),j=RegExp.prototype.exec,W=j,G=h("".charAt),M=h("".indexOf),X=h("".replace),q=h("".slice),z=function(){var C=/a/,N=/b*/g;return u(j,C,"a"),u(j,N,"a"),C.lastIndex!==0||N.lastIndex!==0}(),Z=y.BROKEN_CARET,D=/()??/.exec("")[1]!==void 0,lt=z||D||Z||S||L;lt&&(W=function(N){var F=this,A=I(F),nt=c(N),at=A.raw,tt,O,$,b,R,Y,w;if(at)return at.lastIndex=F.lastIndex,tt=u(W,at,nt),F.lastIndex=at.lastIndex,tt;var V=A.groups,Q=Z&&F.sticky,H=u(g,F),J=F.source,k=0,ft=nt;if(Q&&(H=X(H,"y",""),M(H,"g")===-1&&(H+="g"),ft=q(nt,F.lastIndex),F.lastIndex>0&&(!F.multiline||F.multiline&&G(nt,F.lastIndex-1)!==`
|
|
`)&&(J="(?: "+J+")",ft=" "+ft,k++),O=new RegExp("^(?:"+J+")",H)),D&&(O=new RegExp("^"+J+"$(?!\\s)",H)),z&&($=F.lastIndex),b=u(j,Q?O:F,ft),Q?b?(b.input=q(b.input,k),b[0]=q(b[0],k),b.index=F.lastIndex,F.lastIndex+=b[0].length):F.lastIndex=0:z&&b&&(F.lastIndex=F.global?b.index+b[0].length:$),D&&b&&b.length>1&&u(B,b[0],O,function(){for(R=1;R<arguments.length-2;R++)arguments[R]===void 0&&(b[R]=void 0)}),b&&V)for(b.groups=Y=P(null),R=0;R<V.length;R++)w=V[R],Y[w[0]]=b[w[1]];return b}),m.exports=W},WOGj:function(m,x){m.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 h=[{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(S){return[parseInt(S[1]),parseInt(S[2]),parseInt(S[3]),parseFloat(S[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(S){return[parseInt(S[1]),parseInt(S[2]),parseInt(S[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(S){return[parseInt(S[1],16),parseInt(S[2],16),parseInt(S[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(S){return[parseInt(S[1]+S[1],16),parseInt(S[2]+S[2],16),parseInt(S[3]+S[3],16)]}}],c=0;c<h.length;c++){var g=h[c].re,y=h[c].process,T=g.exec(t);if(T){var P=y(T);this.r=P[0],this.g=P[1],this.b=P[2],P.length>3&&(this.alpha=P[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 I=this.r.toString(16),S=this.g.toString(16),L=this.b.toString(16);return I.length==1&&(I="0"+I),S.length==1&&(S="0"+S),L.length==1&&(L="0"+L),"#"+I+S+L},this.getHelpXML=function(){for(var I=new Array,S=0;S<h.length;S++)for(var L=h[S].example,B=0;B<L.length;B++)I[I.length]=L[B];for(var j in u)I[I.length]=j;var W=document.createElement("ul");W.setAttribute("id","rgbcolor-examples");for(var S=0;S<I.length;S++)try{var G=document.createElement("li"),M=new RGBColor(I[S]),X=document.createElement("div");X.style.cssText="margin: 3px; border: 1px solid black; background:"+M.toHex()+"; color:"+M.toHex(),X.appendChild(document.createTextNode("test"));var q=document.createTextNode(" "+I[S]+" -> "+M.toRGB()+" -> "+M.toHex());G.appendChild(X),G.appendChild(q),W.appendChild(G)}catch(Z){}return W}}},WONN:function(m,x,t){"use strict";t("Ppro");var u=t("aLaa"),h=t("WaP5"),c=t("WMbf"),g=t("eRwv"),y=t("11yv"),T=t("8ODz"),P=y("species"),I=RegExp.prototype;m.exports=function(S,L,B,j){var W=y(S),G=!g(function(){var z={};return z[W]=function(){return 7},""[S](z)!=7}),M=G&&!g(function(){var z=!1,Z=/a/;return S==="split"&&(Z={},Z.constructor={},Z.constructor[P]=function(){return Z},Z.flags="",Z[W]=/./[W]),Z.exec=function(){return z=!0,null},Z[W](""),!z});if(!G||!M||B){var X=u(/./[W]),q=L(W,""[S],function(z,Z,D,lt,C){var N=u(z),F=Z.exec;return F===c||F===I.exec?G&&!C?{done:!0,value:X(Z,D,lt)}:{done:!0,value:N(D,Z,lt)}:{done:!1}});h(String.prototype,S,q[0]),h(I,W,q[1])}j&&T(I[W],"sham",!0)}},WaP5:function(m,x,t){var u=t("JTf3"),h=t("FlRv"),c=t("3DCu"),g=t("X4md");m.exports=function(y,T,P,I){I||(I={});var S=I.enumerable,L=I.name!==void 0?I.name:T;if(u(P)&&c(P,L,I),I.global)S?y[T]=P:g(T,P);else{try{I.unsafe?y[T]&&(S=!0):delete y[T]}catch(B){}S?y[T]=P:h.f(y,T,{value:P,enumerable:!1,configurable:!I.nonConfigurable,writable:!I.nonWritable})}return y}},WxoH:function(m,x,t){var u=t("SwuV"),h=String,c=TypeError;m.exports=function(g){if(u(g))return g;throw c(h(g)+" is not an object")}},"X/EZ":function(m,x,t){var u=t("11yv"),h=u("iterator"),c=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){c=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}m.exports=function(T,P){if(!P&&!c)return!1;var I=!1;try{var S={};S[h]=function(){return{next:function(){return{done:I=!0}}}},T(S)}catch(L){}return I}},X4md:function(m,x,t){var u=t("Ks5W"),h=Object.defineProperty;m.exports=function(c,g){try{h(u,c,{value:g,configurable:!0,writable:!0})}catch(y){u[c]=g}return g}},XFuk:function(m,x,t){var u=t("WxoH"),h=t("oR5W"),c=t("Yzn+"),g=t("SkNP"),y=t("bUA4"),T=t("me6S"),P=t("ST+I"),I=">",S="<",L="prototype",B="script",j=P("IE_PROTO"),W=function(){},G=function(Z){return S+B+I+Z+S+"/"+B+I},M=function(Z){Z.write(G("")),Z.close();var D=Z.parentWindow.Object;return Z=null,D},X=function(){var Z=T("iframe"),D="java"+B+":",lt;return Z.style.display="none",y.appendChild(Z),Z.src=String(D),lt=Z.contentWindow.document,lt.open(),lt.write(G("document.F=Object")),lt.close(),lt.F},q,z=function(){try{q=new ActiveXObject("htmlfile")}catch(D){}z=typeof document!="undefined"?document.domain&&q?M(q):X():M(q);for(var Z=c.length;Z--;)delete z[L][c[Z]];return z()};g[j]=!0,m.exports=Object.create||function(D,lt){var C;return D!==null?(W[L]=u(D),C=new W,W[L]=null,C[j]=D):C=z(),lt===void 0?C:h.f(C,lt)}},XTcp:function(m,x,t){var u=t("Ks5W"),h=t("1mOU"),c=t("mcoe"),g=t("JTf3"),y=t("YELS"),T=t("eRwv"),P=t("bUA4"),I=t("0r2v"),S=t("me6S"),L=t("k2qh"),B=t("GgKt"),j=t("IGIO"),W=u.setImmediate,G=u.clearImmediate,M=u.process,X=u.Dispatch,q=u.Function,z=u.MessageChannel,Z=u.String,D=0,lt={},C="onreadystatechange",N,F,A,nt;try{N=u.location}catch(b){}var at=function(b){if(y(lt,b)){var R=lt[b];delete lt[b],R()}},tt=function(b){return function(){at(b)}},O=function(b){at(b.data)},$=function(b){u.postMessage(Z(b),N.protocol+"//"+N.host)};(!W||!G)&&(W=function(R){L(arguments.length,1);var Y=g(R)?R:q(R),w=I(arguments,1);return lt[++D]=function(){h(Y,void 0,w)},F(D),D},G=function(R){delete lt[R]},j?F=function(b){M.nextTick(tt(b))}:X&&X.now?F=function(b){X.now(tt(b))}:z&&!B?(A=new z,nt=A.port2,A.port1.onmessage=O,F=c(nt.postMessage,nt)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&N&&N.protocol!=="file:"&&!T($)?(F=$,u.addEventListener("message",O,!1)):C in S("script")?F=function(b){P.appendChild(S("script"))[C]=function(){P.removeChild(this),at(b)}}:F=function(b){setTimeout(tt(b),0)}),m.exports={set:W,clear:G}},XaNE:function(m,x,t){var u=t("x0Ve"),h=TypeError;m.exports=function(c){if(u(c))throw h("Can't call method on "+c);return c}},Xp4B:function(m,x,t){"use strict";t.d(x,"a",function(){return P});function u(j){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(j)}function h(j,W){if(!(j instanceof W))throw new TypeError("Cannot call a class as a function")}var c=[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],g=[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(j,W,G,M,X,q){if(typeof j=="string"&&(j=document.getElementById(j)),!j||!("naturalWidth"in j))return;var z=X?"offset":"natural",Z=j[z+"Width"],D=j[z+"Height"];if(typeof W=="string"&&(W=document.getElementById(W)),!W||!("getContext"in W))return;q||(W.style.width=Z+"px",W.style.height=D+"px"),W.width=Z,W.height=D;var lt=W.getContext("2d");if(lt.clearRect(0,0,Z,D),lt.drawImage(j,0,0,j.naturalWidth,j.naturalHeight,0,0,Z,D),isNaN(G)||G<1)return;M?P(W,0,0,Z,D,G):S(W,0,0,Z,D,G)}function T(j,W,G,M,X){if(typeof j=="string"&&(j=document.getElementById(j)),!j||u(j)!=="object"||!("getContext"in j))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var q=j.getContext("2d");try{return q.getImageData(W,G,M,X)}catch(z){throw new Error("unable to access image data: "+z)}}function P(j,W,G,M,X,q){if(isNaN(q)||q<1)return;q|=0;var z=T(j,W,G,M,X);z=I(z,W,G,M,X,q),j.getContext("2d").putImageData(z,W,G)}function I(j,W,G,M,X,q){for(var z=j.data,Z=2*q+1,D=M-1,lt=X-1,C=q+1,N=C*(C+1)/2,F=new B,A=F,nt,at=1;at<Z;at++)A=A.next=new B,at===C&&(nt=A);A.next=F;for(var tt=null,O=null,$=0,b=0,R=c[q],Y=g[q],w=0;w<X;w++){A=F;for(var V=z[b],Q=z[b+1],H=z[b+2],J=z[b+3],k=0;k<C;k++)A.r=V,A.g=Q,A.b=H,A.a=J,A=A.next;for(var ft=0,pt=0,ut=0,Nt=0,St=C*V,Ot=C*Q,It=C*H,Vt=C*J,Bt=N*V,Dt=N*Q,Ft=N*H,Ct=N*J,Gt=1;Gt<C;Gt++){var wt=b+((D<Gt?D:Gt)<<2),Yt=z[wt],Lt=z[wt+1],Jt=z[wt+2],jt=z[wt+3],Tt=C-Gt;Bt+=(A.r=Yt)*Tt,Dt+=(A.g=Lt)*Tt,Ft+=(A.b=Jt)*Tt,Ct+=(A.a=jt)*Tt,ft+=Yt,pt+=Lt,ut+=Jt,Nt+=jt,A=A.next}tt=F,O=nt;for(var $t=0;$t<M;$t++){var ot=Ct*R>>Y;if(z[b+3]=ot,ot!==0){var gt=255/ot;z[b]=(Bt*R>>Y)*gt,z[b+1]=(Dt*R>>Y)*gt,z[b+2]=(Ft*R>>Y)*gt}else z[b]=z[b+1]=z[b+2]=0;Bt-=St,Dt-=Ot,Ft-=It,Ct-=Vt,St-=tt.r,Ot-=tt.g,It-=tt.b,Vt-=tt.a;var bt=$t+q+1;bt=$+(bt<D?bt:D)<<2,ft+=tt.r=z[bt],pt+=tt.g=z[bt+1],ut+=tt.b=z[bt+2],Nt+=tt.a=z[bt+3],Bt+=ft,Dt+=pt,Ft+=ut,Ct+=Nt,tt=tt.next;var Rt=O,Mt=Rt.r,re=Rt.g,se=Rt.b,le=Rt.a;St+=Mt,Ot+=re,It+=se,Vt+=le,ft-=Mt,pt-=re,ut-=se,Nt-=le,O=O.next,b+=4}$+=M}for(var qt=0;qt<M;qt++){b=qt<<2;var fe=z[b],ee=z[b+1],he=z[b+2],Xt=z[b+3],Te=C*fe,pe=C*ee,Pe=C*he,Se=C*Xt,me=N*fe,ye=N*ee,xe=N*he,Ee=N*Xt;A=F;for(var Ie=0;Ie<C;Ie++)A.r=fe,A.g=ee,A.b=he,A.a=Xt,A=A.next;for(var Ne=M,mt=0,Me=0,kt=0,je=0,Ce=1;Ce<=q;Ce++){b=Ne+qt<<2;var Re=C-Ce;me+=(A.r=fe=z[b])*Re,ye+=(A.g=ee=z[b+1])*Re,xe+=(A.b=he=z[b+2])*Re,Ee+=(A.a=Xt=z[b+3])*Re,je+=fe,mt+=ee,Me+=he,kt+=Xt,A=A.next,Ce<lt&&(Ne+=M)}b=qt,tt=F,O=nt;for(var de=0;de<X;de++){var ne=b<<2;z[ne+3]=Xt=Ee*R>>Y,Xt>0?(Xt=255/Xt,z[ne]=(me*R>>Y)*Xt,z[ne+1]=(ye*R>>Y)*Xt,z[ne+2]=(xe*R>>Y)*Xt):z[ne]=z[ne+1]=z[ne+2]=0,me-=Te,ye-=pe,xe-=Pe,Ee-=Se,Te-=tt.r,pe-=tt.g,Pe-=tt.b,Se-=tt.a,ne=qt+((ne=de+C)<lt?ne:lt)*M<<2,me+=je+=tt.r=z[ne],ye+=mt+=tt.g=z[ne+1],xe+=Me+=tt.b=z[ne+2],Ee+=kt+=tt.a=z[ne+3],tt=tt.next,Te+=fe=O.r,pe+=ee=O.g,Pe+=he=O.b,Se+=Xt=O.a,je-=fe,mt-=ee,Me-=he,kt-=Xt,O=O.next,b+=M}}return j}function S(j,W,G,M,X,q){if(isNaN(q)||q<1)return;q|=0;var z=T(j,W,G,M,X);z=L(z,W,G,M,X,q),j.getContext("2d").putImageData(z,W,G)}function L(j,W,G,M,X,q){for(var z=j.data,Z=2*q+1,D=M-1,lt=X-1,C=q+1,N=C*(C+1)/2,F=new B,A=F,nt,at=1;at<Z;at++)A=A.next=new B,at===C&&(nt=A);A.next=F;for(var tt=null,O=null,$=c[q],b=g[q],R,Y,w=0,V=0,Q=0;Q<X;Q++){var H=z[V],J=z[V+1],k=z[V+2],ft=C*H,pt=C*J,ut=C*k,Nt=N*H,St=N*J,Ot=N*k;A=F;for(var It=0;It<C;It++)A.r=H,A.g=J,A.b=k,A=A.next;for(var Vt=0,Bt=0,Dt=0,Ft=1;Ft<C;Ft++)R=V+((D<Ft?D:Ft)<<2),Nt+=(A.r=H=z[R])*(Y=C-Ft),St+=(A.g=J=z[R+1])*Y,Ot+=(A.b=k=z[R+2])*Y,Vt+=H,Bt+=J,Dt+=k,A=A.next;tt=F,O=nt;for(var Ct=0;Ct<M;Ct++)z[V]=Nt*$>>b,z[V+1]=St*$>>b,z[V+2]=Ot*$>>b,Nt-=ft,St-=pt,Ot-=ut,ft-=tt.r,pt-=tt.g,ut-=tt.b,R=w+((R=Ct+q+1)<D?R:D)<<2,Vt+=tt.r=z[R],Bt+=tt.g=z[R+1],Dt+=tt.b=z[R+2],Nt+=Vt,St+=Bt,Ot+=Dt,tt=tt.next,ft+=H=O.r,pt+=J=O.g,ut+=k=O.b,Vt-=H,Bt-=J,Dt-=k,O=O.next,V+=4;w+=M}for(var Gt=0;Gt<M;Gt++){V=Gt<<2;var wt=z[V],Yt=z[V+1],Lt=z[V+2],Jt=C*wt,jt=C*Yt,Tt=C*Lt,$t=N*wt,ot=N*Yt,gt=N*Lt;A=F;for(var bt=0;bt<C;bt++)A.r=wt,A.g=Yt,A.b=Lt,A=A.next;for(var Rt=0,Mt=0,re=0,se=1,le=M;se<=q;se++)V=le+Gt<<2,$t+=(A.r=wt=z[V])*(Y=C-se),ot+=(A.g=Yt=z[V+1])*Y,gt+=(A.b=Lt=z[V+2])*Y,Rt+=wt,Mt+=Yt,re+=Lt,A=A.next,se<lt&&(le+=M);V=Gt,tt=F,O=nt;for(var qt=0;qt<X;qt++)R=V<<2,z[R]=$t*$>>b,z[R+1]=ot*$>>b,z[R+2]=gt*$>>b,$t-=Jt,ot-=jt,gt-=Tt,Jt-=tt.r,jt-=tt.g,Tt-=tt.b,R=Gt+((R=qt+C)<lt?R:lt)*M<<2,$t+=Rt+=tt.r=z[R],ot+=Mt+=tt.g=z[R+1],gt+=re+=tt.b=z[R+2],tt=tt.next,Jt+=wt=O.r,jt+=Yt=O.g,Tt+=Lt=O.b,Rt-=wt,Mt-=Yt,re-=Lt,O=O.next,V+=M}return j}var B=function j(){h(this,j),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}},YELS:function(m,x,t){var u=t("aLaa"),h=t("721z"),c=u({}.hasOwnProperty);m.exports=Object.hasOwn||function(y,T){return c(h(y),T)}},"Yzn+":function(m,x){m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},ZpKI:function(m,x,t){var u=t("aLaa"),h=t("YELS"),c=t("vkZI"),g=t("Nybj").indexOf,y=t("SkNP"),T=u([].push);m.exports=function(P,I){var S=c(P),L=0,B=[],j;for(j in S)!h(y,j)&&h(S,j)&&T(B,j);for(;I.length>L;)h(S,j=I[L++])&&(~g(B,j)||T(B,j));return B}},a9Cf:function(m,x,t){var u=t("11yv"),h=u("toStringTag"),c={};c[h]="z",m.exports=String(c)==="[object z]"},aLaa:function(m,x,t){var u=t("ba8b"),h=t("bfK7");m.exports=function(c){if(u(c)==="Function")return h(c)}},aNIs:function(m,x,t){var u=t("Ks5W"),h=t("eE3R"),c=u.process,g=u.Deno,y=c&&c.versions||g&&g.version,T=y&&y.v8,P,I;T&&(P=T.split("."),I=P[0]>0&&P[0]<4?1:+(P[0]+P[1])),!I&&h&&(P=h.match(/Edge\/(\d+)/),(!P||P[1]>=74)&&(P=h.match(/Chrome\/(\d+)/),P&&(I=+P[1]))),m.exports=I},aNr2:function(m,x,t){var u=t("jybJ"),h=t("4gdG");(m.exports=function(c,g){return h[c]||(h[c]=g!==void 0?g:{})})("versions",[]).push({version:"3.26.0",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.0/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(m,x,t){var u=t("RYfq"),h=t("JTf3"),c=t("3Xd8"),g=t("1Sr1"),y=Object;m.exports=g?function(T){return typeof T=="symbol"}:function(T){var P=u("Symbol");return h(P)&&c(P.prototype,y(T))}},bUA4:function(m,x,t){var u=t("RYfq");m.exports=u("document","documentElement")},ba8b:function(m,x,t){var u=t("bfK7"),h=u({}.toString),c=u("".slice);m.exports=function(g){return c(h(g),8,-1)}},bfK7:function(m,x,t){var u=t("66qH"),h=Function.prototype,c=h.call,g=u&&h.bind.bind(c,c);m.exports=u?g:function(y){return function(){return c.apply(y,arguments)}}},c3MK:function(m,x,t){var u=t("SN6V"),h=Math.min;m.exports=function(c){return c>0?h(u(c),9007199254740991):0}},c55Z:function(m,x,t){var u=t("eRwv"),h=t("Ks5W"),c=h.RegExp;m.exports=u(function(){var g=c("(?<a>b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$<a>c")!=="bc"})},dAmL:function(m,x){m.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},eE3R:function(m,x,t){var u=t("RYfq");m.exports=u("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(t){try{return!!t()}catch(u){return!0}}},fKql:function(m,x,t){var u=t("++4Y"),h=t("m7zg"),c=t("5r2E"),g=t("4uGi"),y=t("vkZI"),T=t("GTqx"),P=t("YELS"),I=t("pVCk"),S=Object.getOwnPropertyDescriptor;x.f=u?S:function(B,j){if(B=y(B),j=T(j),I)try{return S(B,j)}catch(W){}if(P(B,j))return g(!h(c.f,B,j),B[j])}},"g8+u":function(m,x,t){var u=t("a9Cf"),h=t("JTf3"),c=t("ba8b"),g=t("11yv"),y=g("toStringTag"),T=Object,P=c(function(){return arguments}())=="Arguments",I=function(S,L){try{return S[L]}catch(B){}};m.exports=u?c:function(S){var L,B,j;return S===void 0?"Undefined":S===null?"Null":typeof(B=I(L=T(S),y))=="string"?B:P?c(L):(j=c(L))=="Object"&&h(L.callee)?"Arguments":j}},g9jQ:function(m,x,t){"use strict";var u=t("nCzB"),h=t("aLaa"),c=t("Nybj").indexOf,g=t("QELg"),y=h([].indexOf),T=!!y&&1/y([1],1,-0)<0,P=g("indexOf");u({target:"Array",proto:!0,forced:T||!P},{indexOf:function(S){var L=arguments.length>1?arguments[1]:void 0;return T?y(this,S,L)||0:c(this,S,L)}})},gzPo:function(m,x,t){var u=t("Ks5W"),h=t("mcoe"),c=t("fKql").f,g=t("XTcp").set,y=t("GgKt"),T=t("FqHY"),P=t("/pbl"),I=t("IGIO"),S=u.MutationObserver||u.WebKitMutationObserver,L=u.document,B=u.process,j=u.Promise,W=c(u,"queueMicrotask"),G=W&&W.value,M,X,q,z,Z,D,lt,C;G||(M=function(){var N,F;for(I&&(N=B.domain)&&N.exit();X;){F=X.fn,X=X.next;try{F()}catch(A){throw X?z():q=void 0,A}}q=void 0,N&&N.enter()},!y&&!I&&!P&&S&&L?(Z=!0,D=L.createTextNode(""),new S(M).observe(D,{characterData:!0}),z=function(){D.data=Z=!Z}):!T&&j&&j.resolve?(lt=j.resolve(void 0),lt.constructor=j,C=h(lt.then,lt),z=function(){C(M)}):I?z=function(){B.nextTick(M)}:(g=h(g,u),z=function(){g(M)})),m.exports=G||function(N){var F={fn:N,next:void 0};q&&(q.next=F),X||(X=F,z()),q=F}},hIaP:function(m,x,t){var u=t("m7zg"),h=t("8HiI"),c=t("WxoH"),g=t("IL+x"),y=t("ltkU"),T=TypeError;m.exports=function(P,I){var S=arguments.length<2?y(P):I;if(h(S))return c(u(S,P));throw T(g(P)+" is not iterable")}},i57Q:function(m,x){m.exports=function(t,u){return{value:t,done:u}}},"iBj/":function(m,x,t){var u=t("m7zg"),h=t("WxoH"),c=t("oK8H");m.exports=function(g,y,T){var P,I;h(g);try{if(P=c(g,"return"),!P){if(y==="throw")throw T;return T}P=u(P,g)}catch(S){I=!0,P=S}if(y==="throw")throw T;if(I)throw P;return h(P),T}},iWRt:function(m,x,t){"use strict";var u=t("nCzB"),h=t("aLaa"),c=t("uZ/K"),g=h([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),g(this)}})},jCYL:function(m,x,t){"use strict";var u=t("nCzB"),h=t("RYfq"),c=t("jybJ"),g=t("KLK4"),y=t("GxTi").CONSTRUCTOR,T=t("TRzv"),P=h("Promise"),I=c&&!y;u({target:"Promise",stat:!0,forced:c||y},{resolve:function(L){return T(I&&this===P?g:this,L)}})},jybJ:function(m,x){m.exports=!1},k2qh:function(m,x){var t=TypeError;m.exports=function(u,h){if(u<h)throw t("Not enough arguments");return u}},lAFk:function(m,x,t){var u=t("Ks5W");m.exports=function(h,c){var g=u.console;g&&g.error&&(arguments.length==1?g.error(h):g.error(h,c))}},ltkU:function(m,x,t){var u=t("g8+u"),h=t("oK8H"),c=t("x0Ve"),g=t("AoAp"),y=t("11yv"),T=y("iterator");m.exports=function(P){if(!c(P))return h(P,T)||h(P,"@@iterator")||g[u(P)]}},m7zg:function(m,x,t){var u=t("66qH"),h=Function.prototype.call;m.exports=u?h.bind(h):function(){return h.apply(h,arguments)}},"mGb/":function(m,x,t){var u=t("eRwv"),h=t("JTf3"),c=/#|\.prototype\./,g=function(S,L){var B=T[y(S)];return B==I?!0:B==P?!1:h(L)?u(L):!!L},y=g.normalize=function(S){return String(S).replace(c,".").toLowerCase()},T=g.data={},P=g.NATIVE="N",I=g.POLYFILL="P";m.exports=g},mcoe:function(m,x,t){var u=t("aLaa"),h=t("8HiI"),c=t("66qH"),g=u(u.bind);m.exports=function(y,T){return h(y),T===void 0?y:c?g(y,T):function(){return y.apply(T,arguments)}}},mdxj:function(m,x,t){"use strict";var u=t("nCzB"),h=t("FjAG").left,c=t("QELg"),g=t("aNIs"),y=t("IGIO"),T=c("reduce"),P=!y&&g>79&&g<83;u({target:"Array",proto:!0,forced:!T||P},{reduce:function(S){var L=arguments.length;return h(this,S,L,L>1?arguments[1]:void 0)}})},me6S:function(m,x,t){var u=t("Ks5W"),h=t("SwuV"),c=u.document,g=h(c)&&h(c.createElement);m.exports=function(y){return g?c.createElement(y):{}}},ms20:function(m,x,t){var u=t("m7zg"),h=t("SwuV"),c=t("bT0D"),g=t("oK8H"),y=t("2lHc"),T=t("11yv"),P=TypeError,I=T("toPrimitive");m.exports=function(S,L){if(!h(S)||c(S))return S;var B=g(S,I),j;if(B){if(L===void 0&&(L="default"),j=u(B,S,L),!h(j)||c(j))return j;throw P("Can't convert object to primitive value")}return L===void 0&&(L="number"),y(S,L)}},n6S8:function(m,x,t){var u=t("SN6V"),h=Math.max,c=Math.min;m.exports=function(g,y){var T=u(g);return T<0?h(T+y,0):c(T,y)}},nCzB:function(m,x,t){var u=t("Ks5W"),h=t("fKql").f,c=t("8ODz"),g=t("WaP5"),y=t("X4md"),T=t("Ttl4"),P=t("mGb/");m.exports=function(I,S){var L=I.target,B=I.global,j=I.stat,W,G,M,X,q,z;if(B?G=u:j?G=u[L]||y(L,{}):G=(u[L]||{}).prototype,G)for(M in S){if(q=S[M],I.dontCallGetSet?(z=h(G,M),X=z&&z.value):X=G[M],W=P(B?M:L+(j?".":"#")+M,I.forced),!W&&X!==void 0){if(typeof q==typeof X)continue;T(q,X)}(I.sham||X&&X.sham)&&c(q,"sham",!0),g(G,M,q,I)}}},noWC:function(m,x){m.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(m,x,t){var u=t("mcoe"),h=t("m7zg"),c=t("WxoH"),g=t("IL+x"),y=t("3n0U"),T=t("tMNq"),P=t("3Xd8"),I=t("hIaP"),S=t("ltkU"),L=t("iBj/"),B=TypeError,j=function(G,M){this.stopped=G,this.result=M},W=j.prototype;m.exports=function(G,M,X){var q=X&&X.that,z=!!(X&&X.AS_ENTRIES),Z=!!(X&&X.IS_RECORD),D=!!(X&&X.IS_ITERATOR),lt=!!(X&&X.INTERRUPTED),C=u(M,q),N,F,A,nt,at,tt,O,$=function(R){return N&&L(N,"normal",R),new j(!0,R)},b=function(R){return z?(c(R),lt?C(R[0],R[1],$):C(R[0],R[1])):lt?C(R,$):C(R)};if(Z)N=G.iterator;else if(D)N=G;else{if(F=S(G),!F)throw B(g(G)+" is not iterable");if(y(F)){for(A=0,nt=T(G);nt>A;A++)if(at=b(G[A]),at&&P(W,at))return at;return new j(!1)}N=I(G,F)}for(tt=Z?G.next:N.next;!(O=h(tt,N)).done;){try{at=b(O.value)}catch(R){L(N,"throw",R)}if(typeof at=="object"&&at&&P(W,at))return at}return new j(!1)}},oK8H:function(m,x,t){var u=t("8HiI"),h=t("x0Ve");m.exports=function(c,g){var y=c[g];return h(y)?void 0:u(y)}},oR5W:function(m,x,t){var u=t("++4Y"),h=t("FkIU"),c=t("FlRv"),g=t("WxoH"),y=t("vkZI"),T=t("Ai06");x.f=u&&!h?Object.defineProperties:function(I,S){g(I);for(var L=y(S),B=T(S),j=B.length,W=0,G;j>W;)c.f(I,G=B[W++],L[G]);return I}},oauk:function(m,x,t){"use strict";var u=t("GTqx"),h=t("FlRv"),c=t("4uGi");m.exports=function(g,y,T){var P=u(y);P in g?h.f(g,P,c(0,T)):g[P]=T}},p5Ma:function(m,x,t){var u=t("aLaa"),h=t("eRwv"),c=t("ba8b"),g=Object,y=u("".split);m.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return c(T)=="String"?y(T,""):g(T)}:g},pVCk:function(m,x,t){var u=t("++4Y"),h=t("eRwv"),c=t("me6S");m.exports=!u&&!h(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},qJvV:function(m,x,t){var u=t("Ks5W"),h=t("ENhe"),c=t("GI0h"),g=t("Lltv"),y=t("8ODz"),T=t("11yv"),P=T("iterator"),I=T("toStringTag"),S=g.values,L=function(j,W){if(j){if(j[P]!==S)try{y(j,P,S)}catch(M){j[P]=S}if(j[I]||y(j,I,W),h[W]){for(var G in g)if(j[G]!==g[G])try{y(j,G,g[G])}catch(M){j[G]=g[G]}}}};for(var B in h)L(u[B]&&u[B].prototype,B);L(c,"DOMTokenList")},qjFr:function(m,x,t){"use strict";var u=t("eRwv"),h=t("JTf3"),c=t("SwuV"),g=t("XFuk"),y=t("WLJ+"),T=t("WaP5"),P=t("11yv"),I=t("jybJ"),S=P("iterator"),L=!1,B,j,W;[].keys&&(W=[].keys(),"next"in W?(j=y(y(W)),j!==Object.prototype&&(B=j)):L=!0);var G=!c(B)||u(function(){var M={};return B[S].call(M)!==M});G?B={}:I&&(B=g(B)),h(B[S])||T(B,S,function(){return this}),m.exports={IteratorPrototype:B,BUGGY_SAFARI_ITERATORS:L}},qozo:function(m,x,t){"use strict";var u=t("qjFr").IteratorPrototype,h=t("XFuk"),c=t("4uGi"),g=t("ueY1"),y=t("AoAp"),T=function(){return this};m.exports=function(P,I,S,L){var B=I+" Iterator";return P.prototype=h(u,{next:c(+!L,S)}),g(P,B,!1,!0),y[B]=T,P}},qzpy:function(m,x,t){var u=t("g8+u"),h=String;m.exports=function(c){if(u(c)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(c)}},sNJV:function(m,x,t){var u=t("aLaa"),h=t("JTf3"),c=t("4gdG"),g=u(Function.toString);h(c.inspectSource)||(c.inspectSource=function(y){return g(y)}),m.exports=c.inspectSource},tMNq:function(m,x,t){var u=t("c3MK");m.exports=function(h){return u(h.length)}},tZjp:function(m,x,t){"use strict";var u=t("nCzB"),h=t("jybJ"),c=t("IGIO"),g=t("Ks5W"),y=t("m7zg"),T=t("WaP5"),P=t("JHvW"),I=t("ueY1"),S=t("9Bi7"),L=t("8HiI"),B=t("JTf3"),j=t("SwuV"),W=t("uoua"),G=t("NudO"),M=t("XTcp").set,X=t("gzPo"),q=t("lAFk"),z=t("8xe4"),Z=t("zUnQ"),D=t("UQ6y"),lt=t("KLK4"),C=t("GxTi"),N=t("zFjv"),F="Promise",A=C.CONSTRUCTOR,nt=C.REJECTION_EVENT,at=C.SUBCLASSING,tt=D.getterFor(F),O=D.set,$=lt&<.prototype,b=lt,R=$,Y=g.TypeError,w=g.document,V=g.process,Q=N.f,H=Q,J=!!(w&&w.createEvent&&g.dispatchEvent),k="unhandledrejection",ft="rejectionhandled",pt=0,ut=1,Nt=2,St=1,Ot=2,It,Vt,Bt,Dt,Ft=function(ot){var gt;return j(ot)&&B(gt=ot.then)?gt:!1},Ct=function(ot,gt){var bt=gt.value,Rt=gt.state==ut,Mt=Rt?ot.ok:ot.fail,re=ot.resolve,se=ot.reject,le=ot.domain,qt,fe,ee;try{Mt?(Rt||(gt.rejection===Ot&&Jt(gt),gt.rejection=St),Mt===!0?qt=bt:(le&&le.enter(),qt=Mt(bt),le&&(le.exit(),ee=!0)),qt===ot.promise?se(Y("Promise-chain cycle")):(fe=Ft(qt))?y(fe,qt,re,se):re(qt)):se(bt)}catch(he){le&&!ee&&le.exit(),se(he)}},Gt=function(ot,gt){if(ot.notified)return;ot.notified=!0,X(function(){for(var bt=ot.reactions,Rt;Rt=bt.get();)Ct(Rt,ot);ot.notified=!1,gt&&!ot.rejection&&Yt(ot)})},wt=function(ot,gt,bt){var Rt,Mt;J?(Rt=w.createEvent("Event"),Rt.promise=gt,Rt.reason=bt,Rt.initEvent(ot,!1,!0),g.dispatchEvent(Rt)):Rt={promise:gt,reason:bt},!nt&&(Mt=g["on"+ot])?Mt(Rt):ot===k&&q("Unhandled promise rejection",bt)},Yt=function(ot){y(M,g,function(){var gt=ot.facade,bt=ot.value,Rt=Lt(ot),Mt;if(Rt&&(Mt=z(function(){c?V.emit("unhandledRejection",bt,gt):wt(k,gt,bt)}),ot.rejection=c||Lt(ot)?Ot:St,Mt.error))throw Mt.value})},Lt=function(ot){return ot.rejection!==St&&!ot.parent},Jt=function(ot){y(M,g,function(){var gt=ot.facade;c?V.emit("rejectionHandled",gt):wt(ft,gt,ot.value)})},jt=function(ot,gt,bt){return function(Rt){ot(gt,Rt,bt)}},Tt=function(ot,gt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt),ot.value=gt,ot.state=Nt,Gt(ot,!0)},$t=function(ot,gt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt);try{if(ot.facade===gt)throw Y("Promise can't be resolved itself");var Rt=Ft(gt);Rt?X(function(){var Mt={done:!1};try{y(Rt,gt,jt($t,Mt,ot),jt(Tt,Mt,ot))}catch(re){Tt(Mt,re,ot)}}):(ot.value=gt,ot.state=ut,Gt(ot,!1))}catch(Mt){Tt({done:!1},Mt,ot)}};if(A&&(b=function(gt){W(this,R),L(gt),y(It,this);var bt=tt(this);try{gt(jt($t,bt),jt(Tt,bt))}catch(Rt){Tt(bt,Rt)}},R=b.prototype,It=function(gt){O(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new Z,rejection:!1,state:pt,value:void 0})},It.prototype=T(R,"then",function(gt,bt){var Rt=tt(this),Mt=Q(G(this,b));return Rt.parent=!0,Mt.ok=B(gt)?gt:!0,Mt.fail=B(bt)&&bt,Mt.domain=c?V.domain:void 0,Rt.state==pt?Rt.reactions.add(Mt):X(function(){Ct(Mt,Rt)}),Mt.promise}),Vt=function(){var ot=new It,gt=tt(ot);this.promise=ot,this.resolve=jt($t,gt),this.reject=jt(Tt,gt)},N.f=Q=function(ot){return ot===b||ot===Bt?new Vt(ot):H(ot)},!h&&B(lt)&&$!==Object.prototype)){Dt=$.then,at||T($,"then",function(gt,bt){var Rt=this;return new b(function(Mt,re){y(Dt,Rt,Mt,re)}).then(gt,bt)},{unsafe:!0});try{delete $.constructor}catch(ot){}P&&P($,R)}u({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:b}),I(b,F,!1,!0),S(F)},"uZ/K":function(m,x,t){var u=t("ba8b");m.exports=Array.isArray||function(c){return u(c)=="Array"}},ueY1:function(m,x,t){var u=t("FlRv").f,h=t("YELS"),c=t("11yv"),g=c("toStringTag");m.exports=function(y,T,P){y&&!P&&(y=y.prototype),y&&!h(y,g)&&u(y,g,{configurable:!0,value:T})}},uoua:function(m,x,t){var u=t("3Xd8"),h=TypeError;m.exports=function(c,g){if(u(g,c))return c;throw h("Incorrect invocation")}},"v/rq":function(m,x,t){var u=t("aNIs"),h=t("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var c=Symbol();return!String(c)||!(Object(c)instanceof Symbol)||!Symbol.sham&&u&&u<41})},vTDQ:function(m,x,t){var u=t("dAmL"),h=t("IGIO");m.exports=!u&&!h&&typeof window=="object"&&typeof document=="object"},vkZI:function(m,x,t){var u=t("p5Ma"),h=t("XaNE");m.exports=function(c){return u(h(c))}},vrKp:function(m,x,t){t("tZjp"),t("A2dy"),t("13vt"),t("D0VN"),t("ESVS"),t("jCYL")},wOD2:function(m,x,t){"use strict";var u=t("nCzB"),h=t("RXj+").trim,c=t("5JCY");u({target:"String",proto:!0,forced:c("trim")},{trim:function(){return h(this)}})},x0Ve:function(m,x){m.exports=function(t){return t==null}},"x1+7":function(m,x,t){var u=t("RYfq"),h=t("aLaa"),c=t("QrM1"),g=t("UCFi"),y=t("WxoH"),T=h([].concat);m.exports=u("Reflect","ownKeys")||function(I){var S=c.f(y(I)),L=g.f;return L?T(S,L(I)):S}},x8x8:function(m,x,t){"use strict";var u=t("1mOU"),h=t("m7zg"),c=t("aLaa"),g=t("WONN"),y=t("eRwv"),T=t("WxoH"),P=t("JTf3"),I=t("x0Ve"),S=t("SN6V"),L=t("c3MK"),B=t("qzpy"),j=t("XaNE"),W=t("M/+V"),G=t("oK8H"),M=t("Ne/+"),X=t("3fk+"),q=t("11yv"),z=q("replace"),Z=Math.max,D=Math.min,lt=c([].concat),C=c([].push),N=c("".indexOf),F=c("".slice),A=function(O){return O===void 0?O:String(O)},nt=function(){return"a".replace(/./,"$0")==="$0"}(),at=function(){return/./[z]?/./[z]("a","$0")==="":!1}(),tt=!y(function(){var O=/./;return O.exec=function(){var $=[];return $.groups={a:"7"},$},"".replace(O,"$<a>")!=="7"});g("replace",function(O,$,b){var R=at?"$":"$0";return[function(w,V){var Q=j(this),H=I(w)?void 0:G(w,z);return H?h(H,w,Q,V):h($,B(Q),w,V)},function(Y,w){var V=T(this),Q=B(Y);if(typeof w=="string"&&N(w,R)===-1&&N(w,"$<")===-1){var H=b($,V,Q,w);if(H.done)return H.value}var J=P(w);J||(w=B(w));var k=V.global;if(k){var ft=V.unicode;V.lastIndex=0}for(var pt=[];;){var ut=X(V,Q);if(ut===null)break;if(C(pt,ut),!k)break;var Nt=B(ut[0]);Nt===""&&(V.lastIndex=W(Q,L(V.lastIndex),ft))}for(var St="",Ot=0,It=0;It<pt.length;It++){ut=pt[It];for(var Vt=B(ut[0]),Bt=Z(D(S(ut.index),Q.length),0),Dt=[],Ft=1;Ft<ut.length;Ft++)C(Dt,A(ut[Ft]));var Ct=ut.groups;if(J){var Gt=lt([Vt],Dt,Bt,Q);Ct!==void 0&&C(Gt,Ct);var wt=B(u(w,void 0,Gt))}else wt=M(Vt,Q,Bt,Dt,Ct,w);Bt>=Ot&&(St+=F(Q,Ot,Bt)+wt,Ot=Bt+Vt.length)}return St+F(Q,Ot)}]},!tt||!nt||at)},yD9w:function(m,x,t){"use strict";var u=t("N6FT").PROPER,h=t("WaP5"),c=t("WxoH"),g=t("qzpy"),y=t("eRwv"),T=t("Vgcz"),P="toString",I=RegExp.prototype,S=I[P],L=y(function(){return S.call({source:"a",flags:"b"})!="/a/b"}),B=u&&S.name!=P;(L||B)&&h(RegExp.prototype,P,function(){var W=c(this),G=g(W.source),M=g(T(W));return"/"+G+"/"+M},{unsafe:!0})},yXPU:function(m,x){function t(h,c,g,y,T,P,I){try{var S=h[P](I),L=S.value}catch(B){g(B);return}S.done?c(L):Promise.resolve(L).then(y,T)}function u(h){return function(){var c=this,g=arguments;return new Promise(function(y,T){var P=h.apply(c,g);function I(L){t(P,y,T,I,S,"next",L)}function S(L){t(P,y,T,I,S,"throw",L)}I(void 0)})}}m.exports=u,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,x,t){var u=t("aLaa"),h=t("SN6V"),c=t("qzpy"),g=t("XaNE"),y=u("".charAt),T=u("".charCodeAt),P=u("".slice),I=function(S){return function(L,B){var j=c(g(L)),W=h(B),G=j.length,M,X;return W<0||W>=G?S?"":void 0:(M=T(j,W),M<55296||M>56319||W+1===G||(X=T(j,W+1))<56320||X>57343?S?y(j,W):M:S?P(j,W,W+2):(M-55296<<10)+(X-56320)+65536)}};m.exports={codeAt:I(!1),charAt:I(!0)}},zFjv:function(m,x,t){"use strict";var u=t("8HiI"),h=TypeError,c=function(g){var y,T;this.promise=new g(function(P,I){if(y!==void 0||T!==void 0)throw h("Bad Promise constructor");y=P,T=I}),this.resolve=u(y),this.reject=u(T)};m.exports.f=function(g){return new c(g)}},zUnQ:function(m,x){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(u){var h={item:u,next:null};this.head?this.tail.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},m.exports=t}}]);
|