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

6 lines
159 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[3754],{94907:function(d,S,n){var l=n(97671);(function(){var f,v,g,y,T,x;typeof performance!="undefined"&&performance!==null&&performance.now?d.exports=function(){return performance.now()}:typeof l!="undefined"&&l!==null&&l.hrtime?(d.exports=function(){return(f()-T)/1e6},v=l.hrtime,f=function(){var b;return b=v(),b[0]*1e9+b[1]},y=f(),x=l.uptime()*1e9,T=y-x):Date.now?(d.exports=function(){return Date.now()-g},g=Date.now()):(d.exports=function(){return new Date().getTime()-g},g=new Date().getTime())}).call(this)},32772:function(d,S,n){for(var l=n(94907),f=typeof window=="undefined"?n.g:window,v=["moz","webkit"],g="AnimationFrame",y=f["request"+g],T=f["cancel"+g]||f["cancelRequest"+g],x=0;!y&&x<v.length;x++)y=f[v[x]+"Request"+g],T=f[v[x]+"Cancel"+g]||f[v[x]+"CancelRequest"+g];if(!y||!T){var b=0,C=0,A=[],R=1e3/60;y=function(P){if(A.length===0){var M=l(),I=Math.max(0,R-(M-b));b=I+M,setTimeout(function(){var w=A.slice(0);A.length=0;for(var F=0;F<w.length;F++)if(!w[F].cancelled)try{w[F].callback(b)}catch(Y){setTimeout(function(){throw Y},0)}},Math.round(I))}return A.push({handle:++C,callback:P,cancelled:!1}),C},T=function(P){for(var M=0;M<A.length;M++)A[M].handle===P&&(A[M].cancelled=!0)}}d.exports=function(P){return y.call(f,P)},d.exports.cancel=function(){T.apply(f,arguments)},d.exports.polyfill=function(P){P||(P=f),P.requestAnimationFrame=y,P.cancelAnimationFrame=T}},45810:function(d){d.exports=function(S){this.ok=!1,this.alpha=1,S.charAt(0)=="#"&&(S=S.substr(1,6)),S=S.replace(/ /g,""),S=S.toLowerCase();var n={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"};S=n[S]||S;for(var l=[{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(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3]),parseFloat(x[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(x){return[parseInt(x[1]),parseInt(x[2]),parseInt(x[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(x){return[parseInt(x[1],16),parseInt(x[2],16),parseInt(x[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(x){return[parseInt(x[1]+x[1],16),parseInt(x[2]+x[2],16),parseInt(x[3]+x[3],16)]}}],f=0;f<l.length;f++){var v=l[f].re,g=l[f].process,y=v.exec(S);if(y){var T=g(y);this.r=T[0],this.g=T[1],this.b=T[2],T.length>3&&(this.alpha=T[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 x=this.r.toString(16),b=this.g.toString(16),C=this.b.toString(16);return x.length==1&&(x="0"+x),b.length==1&&(b="0"+b),C.length==1&&(C="0"+C),"#"+x+b+C},this.getHelpXML=function(){for(var x=new Array,b=0;b<l.length;b++)for(var C=l[b].example,A=0;A<C.length;A++)x[x.length]=C[A];for(var R in n)x[x.length]=R;var P=document.createElement("ul");P.setAttribute("id","rgbcolor-examples");for(var b=0;b<x.length;b++)try{var M=document.createElement("li"),I=new RGBColor(x[b]),w=document.createElement("div");w.style.cssText="margin: 3px; border: 1px solid black; background:"+I.toHex()+"; color:"+I.toHex(),w.appendChild(document.createTextNode("test"));var F=document.createTextNode(" "+x[b]+" -> "+I.toRGB()+" -> "+I.toHex());M.appendChild(w),M.appendChild(F),P.appendChild(M)}catch(j){}return P}}},25499:function(d,S,n){"use strict";var l=n(11800),f=n(16199),v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not a function")}},48274:function(d,S,n){"use strict";var l=n(83174),f=n(16199),v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not a constructor")}},30828:function(d,S,n){"use strict";var l=n(7086),f=String,v=TypeError;d.exports=function(g){if(l(g))return g;throw new v("Can't set "+f(g)+" as a prototype")}},64744:function(d,S,n){"use strict";var l=n(22171),f=n(40079),v=n(92402).f,g=l("unscopables"),y=Array.prototype;y[g]===void 0&&v(y,g,{configurable:!0,value:f(null)}),d.exports=function(T){y[g][T]=!0}},78938:function(d,S,n){"use strict";var l=n(38095).charAt;d.exports=function(f,v,g){return v+(g?l(f,v).length:1)}},70271:function(d,S,n){"use strict";var l=n(93527),f=TypeError;d.exports=function(v,g){if(l(g,v))return v;throw new f("Incorrect invocation")}},14752:function(d,S,n){"use strict";var l=n(46638),f=String,v=TypeError;d.exports=function(g){if(l(g))return g;throw new v(f(g)+" is not an object")}},76879:function(d,S,n){"use strict";var l=n(18295),f=n(95374),v=n(5668),g=function(y){return function(T,x,b){var C=l(T),A=v(C);if(A===0)return!y&&-1;var R=f(b,A),P;if(y&&x!==x){for(;A>R;)if(P=C[R++],P!==P)return!0}else for(;A>R;R++)if((y||R in C)&&C[R]===x)return y||R||0;return!y&&-1}};d.exports={includes:g(!0),indexOf:g(!1)}},67055:function(d,S,n){"use strict";var l=n(73130);d.exports=function(f,v){var g=[][f];return!!g&&l(function(){g.call(null,v||function(){return 1},1)})}},45333:function(d,S,n){"use strict";var l=n(25499),f=n(57866),v=n(910),g=n(5668),y=TypeError,T="Reduce of empty array with no initial value",x=function(b){return function(C,A,R,P){var M=f(C),I=v(M),w=g(M);if(l(A),w===0&&R<2)throw new y(T);var F=b?w-1:0,Y=b?-1:1;if(R<2)for(;;){if(F in I){P=I[F],F+=Y;break}if(F+=Y,b?F<0:w<=F)throw new y(T)}for(;b?F>=0:w>F;F+=Y)F in I&&(P=A(P,I[F],F,M));return P}};d.exports={left:x(!1),right:x(!0)}},29986:function(d,S,n){"use strict";var l=n(37725);d.exports=l([].slice)},16961:function(d,S,n){"use strict";var l=n(22171),f=l("iterator"),v=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){v=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}d.exports=function(T,x){try{if(!x&&!v)return!1}catch(A){return!1}var b=!1;try{var C={};C[f]=function(){return{next:function(){return{done:b=!0}}}},T(C)}catch(A){}return b}},60380:function(d,S,n){"use strict";var l=n(37725),f=l({}.toString),v=l("".slice);d.exports=function(g){return v(f(g),8,-1)}},11298:function(d,S,n){"use strict";var l=n(28043),f=n(11800),v=n(60380),g=n(22171),y=g("toStringTag"),T=Object,x=v(function(){return arguments}())==="Arguments",b=function(C,A){try{return C[A]}catch(R){}};d.exports=l?v:function(C){var A,R,P;return C===void 0?"Undefined":C===null?"Null":typeof(R=b(A=T(C),y))=="string"?R:x?v(A):(P=v(A))==="Object"&&f(A.callee)?"Arguments":P}},9301:function(d,S,n){"use strict";var l=n(57430),f=n(58905),v=n(54398),g=n(92402);d.exports=function(y,T,x){for(var b=f(T),C=g.f,A=v.f,R=0;R<b.length;R++){var P=b[R];!l(y,P)&&!(x&&l(x,P))&&C(y,P,A(T,P))}}},37101:function(d,S,n){"use strict";var l=n(22171),f=l("match");d.exports=function(v){var g=/./;try{"/./"[v](g)}catch(y){try{return g[f]=!1,"/./"[v](g)}catch(T){}}return!1}},67715:function(d,S,n){"use strict";var l=n(73130);d.exports=!l(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},70133:function(d){"use strict";d.exports=function(S,n){return{value:S,done:n}}},30600:function(d,S,n){"use strict";var l=n(73679),f=n(92402),v=n(2262);d.exports=l?function(g,y,T){return f.f(g,y,v(1,T))}:function(g,y,T){return g[y]=T,g}},2262:function(d){"use strict";d.exports=function(S,n){return{enumerable:!(S&1),configurable:!(S&2),writable:!(S&4),value:n}}},36096:function(d,S,n){"use strict";var l=n(56684),f=n(92402);d.exports=function(v,g,y){return y.get&&l(y.get,g,{getter:!0}),y.set&&l(y.set,g,{setter:!0}),f.f(v,g,y)}},11406:function(d,S,n){"use strict";var l=n(11800),f=n(92402),v=n(56684),g=n(31463);d.exports=function(y,T,x,b){b||(b={});var C=b.enumerable,A=b.name!==void 0?b.name:T;if(l(x)&&v(x,A,b),b.global)C?y[T]=x:g(T,x);else{try{b.unsafe?y[T]&&(C=!0):delete y[T]}catch(R){}C?y[T]=x:f.f(y,T,{value:x,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return y}},31463:function(d,S,n){"use strict";var l=n(93755),f=Object.defineProperty;d.exports=function(v,g){try{f(l,v,{value:g,configurable:!0,writable:!0})}catch(y){l[v]=g}return g}},73679:function(d,S,n){"use strict";var l=n(73130);d.exports=!l(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},27139:function(d,S,n){"use strict";var l=n(93755),f=n(46638),v=l.document,g=f(v)&&f(v.createElement);d.exports=function(y){return g?v.createElement(y):{}}},53164:function(d){"use strict";d.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}},68376:function(d,S,n){"use strict";var l=n(27139),f=l("span").classList,v=f&&f.constructor&&f.constructor.prototype;d.exports=v===Object.prototype?void 0:v},46367:function(d){"use strict";d.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},21825:function(d,S,n){"use strict";var l=n(15856);d.exports=/ipad|iphone|ipod/i.test(l)&&typeof Pebble!="undefined"},54394:function(d,S,n){"use strict";var l=n(15856);d.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(l)},12264:function(d,S,n){"use strict";var l=n(84526);d.exports=l==="NODE"},42637:function(d,S,n){"use strict";var l=n(15856);d.exports=/web0s(?!.*chrome)/i.test(l)},15856:function(d,S,n){"use strict";var l=n(93755),f=l.navigator,v=f&&f.userAgent;d.exports=v?String(v):""},59410:function(d,S,n){"use strict";var l=n(93755),f=n(15856),v=l.process,g=l.Deno,y=v&&v.versions||g&&g.version,T=y&&y.v8,x,b;T&&(x=T.split("."),b=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!b&&f&&(x=f.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=f.match(/Chrome\/(\d+)/),x&&(b=+x[1]))),d.exports=b},84526:function(d,S,n){"use strict";var l=n(93755),f=n(15856),v=n(60380),g=function(y){return f.slice(0,y.length)===y};d.exports=function(){return g("Bun/")?"BUN":g("Cloudflare-Workers")?"CLOUDFLARE":g("Deno/")?"DENO":g("Node.js/")?"NODE":l.Bun&&typeof Bun.version=="string"?"BUN":l.Deno&&typeof Deno.version=="object"?"DENO":v(l.process)==="process"?"NODE":l.window&&l.document?"BROWSER":"REST"}()},82372:function(d,S,n){"use strict";var l=n(93755),f=n(54398).f,v=n(30600),g=n(11406),y=n(31463),T=n(9301),x=n(26657);d.exports=function(b,C){var A=b.target,R=b.global,P=b.stat,M,I,w,F,Y,j;if(R?I=l:P?I=l[A]||y(A,{}):I=l[A]&&l[A].prototype,I)for(w in C){if(Y=C[w],b.dontCallGetSet?(j=f(I,w),F=j&&j.value):F=I[w],M=x(R?w:A+(P?".":"#")+w,b.forced),!M&&F!==void 0){if(typeof Y==typeof F)continue;T(Y,F)}(b.sham||F&&F.sham)&&v(Y,"sham",!0),g(I,w,Y,b)}}},73130:function(d){"use strict";d.exports=function(S){try{return!!S()}catch(n){return!0}}},78381:function(d,S,n){"use strict";n(24343);var l=n(65318),f=n(11406),v=n(84135),g=n(73130),y=n(22171),T=n(30600),x=y("species"),b=RegExp.prototype;d.exports=function(C,A,R,P){var M=y(C),I=!g(function(){var j={};return j[M]=function(){return 7},""[C](j)!==7}),w=I&&!g(function(){var j=!1,B=/a/;if(C==="split"){var $={};$[x]=function(){return B},B={constructor:$,flags:""},B[M]=/./[M]}return B.exec=function(){return j=!0,null},B[M](""),!j});if(!I||!w||R){var F=/./[M],Y=A(M,""[C],function(j,B,$,X,Q){var _=B.exec;return _===v||_===b.exec?I&&!Q?{done:!0,value:l(F,B,$,X)}:{done:!0,value:l(j,$,B,X)}:{done:!1}});f(String.prototype,C,Y[0]),f(b,M,Y[1])}P&&T(b[M],"sham",!0)}},71016:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype,v=f.apply,g=f.call;d.exports=typeof Reflect=="object"&&Reflect.apply||(l?g.bind(v):function(){return g.apply(v,arguments)})},8206:function(d,S,n){"use strict";var l=n(64866),f=n(25499),v=n(34549),g=l(l.bind);d.exports=function(y,T){return f(y),T===void 0?y:v?g(y,T):function(){return y.apply(T,arguments)}}},34549:function(d,S,n){"use strict";var l=n(73130);d.exports=!l(function(){var f=function(){}.bind();return typeof f!="function"||f.hasOwnProperty("prototype")})},65318:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype.call;d.exports=l?f.bind(f):function(){return f.apply(f,arguments)}},80100:function(d,S,n){"use strict";var l=n(73679),f=n(57430),v=Function.prototype,g=l&&Object.getOwnPropertyDescriptor,y=f(v,"name"),T=y&&function(){}.name==="something",x=y&&(!l||l&&g(v,"name").configurable);d.exports={EXISTS:y,PROPER:T,CONFIGURABLE:x}},49410:function(d,S,n){"use strict";var l=n(37725),f=n(25499);d.exports=function(v,g,y){try{return l(f(Object.getOwnPropertyDescriptor(v,g)[y]))}catch(T){}}},64866:function(d,S,n){"use strict";var l=n(60380),f=n(37725);d.exports=function(v){if(l(v)==="Function")return f(v)}},37725:function(d,S,n){"use strict";var l=n(34549),f=Function.prototype,v=f.call,g=l&&f.bind.bind(v,v);d.exports=l?g:function(y){return function(){return v.apply(y,arguments)}}},4609:function(d,S,n){"use strict";var l=n(93755),f=n(11800),v=function(g){return f(g)?g:void 0};d.exports=function(g,y){return arguments.length<2?v(l[g]):l[g]&&l[g][y]}},48573:function(d,S,n){"use strict";var l=n(11298),f=n(55884),v=n(92606),g=n(85233),y=n(22171),T=y("iterator");d.exports=function(x){if(!v(x))return f(x,T)||f(x,"@@iterator")||g[l(x)]}},11998:function(d,S,n){"use strict";var l=n(65318),f=n(25499),v=n(14752),g=n(16199),y=n(48573),T=TypeError;d.exports=function(x,b){var C=arguments.length<2?y(x):b;if(f(C))return v(l(C,x));throw new T(g(x)+" is not iterable")}},55884:function(d,S,n){"use strict";var l=n(25499),f=n(92606);d.exports=function(v,g){var y=v[g];return f(y)?void 0:l(y)}},92506:function(d,S,n){"use strict";var l=n(37725),f=n(57866),v=Math.floor,g=l("".charAt),y=l("".replace),T=l("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;d.exports=function(C,A,R,P,M,I){var w=R+C.length,F=P.length,Y=b;return M!==void 0&&(M=f(M),Y=x),y(I,Y,function(j,B){var $;switch(g(B,0)){case"$":return"$";case"&":return C;case"`":return T(A,0,R);case"'":return T(A,w);case"<":$=M[T(B,1,-1)];break;default:var X=+B;if(X===0)return j;if(X>F){var Q=v(X/10);return Q===0?j:Q<=F?P[Q-1]===void 0?g(B,1):P[Q-1]+g(B,1):j}$=P[X-1]}return $===void 0?"":$})}},93755:function(d,S,n){"use strict";var l=function(f){return f&&f.Math===Math&&f};d.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof n.g=="object"&&n.g)||l(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},57430:function(d,S,n){"use strict";var l=n(37725),f=n(57866),v=l({}.hasOwnProperty);d.exports=Object.hasOwn||function(y,T){return v(f(y),T)}},33614:function(d){"use strict";d.exports={}},50358:function(d){"use strict";d.exports=function(S,n){try{arguments.length===1?console.error(S):console.error(S,n)}catch(l){}}},65757:function(d,S,n){"use strict";var l=n(4609);d.exports=l("document","documentElement")},84436:function(d,S,n){"use strict";var l=n(73679),f=n(73130),v=n(27139);d.exports=!l&&!f(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!==7})},910:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(60380),g=Object,y=l("".split);d.exports=f(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return v(T)==="String"?y(T,""):g(T)}:g},79321:function(d,S,n){"use strict";var l=n(37725),f=n(11800),v=n(54163),g=l(Function.toString);f(v.inspectSource)||(v.inspectSource=function(y){return g(y)}),d.exports=v.inspectSource},23836:function(d,S,n){"use strict";var l=n(86639),f=n(93755),v=n(46638),g=n(30600),y=n(57430),T=n(54163),x=n(81196),b=n(33614),C="Object already initialized",A=f.TypeError,R=f.WeakMap,P,M,I,w=function(B){return I(B)?M(B):P(B,{})},F=function(B){return function($){var X;if(!v($)||(X=M($)).type!==B)throw new A("Incompatible receiver, "+B+" required");return X}};if(l||T.state){var Y=T.state||(T.state=new R);Y.get=Y.get,Y.has=Y.has,Y.set=Y.set,P=function(B,$){if(Y.has(B))throw new A(C);return $.facade=B,Y.set(B,$),$},M=function(B){return Y.get(B)||{}},I=function(B){return Y.has(B)}}else{var j=x("state");b[j]=!0,P=function(B,$){if(y(B,j))throw new A(C);return $.facade=B,g(B,j,$),$},M=function(B){return y(B,j)?B[j]:{}},I=function(B){return y(B,j)}}d.exports={set:P,get:M,has:I,enforce:w,getterFor:F}},21871:function(d,S,n){"use strict";var l=n(22171),f=n(85233),v=l("iterator"),g=Array.prototype;d.exports=function(y){return y!==void 0&&(f.Array===y||g[v]===y)}},60221:function(d,S,n){"use strict";var l=n(60380);d.exports=Array.isArray||function(v){return l(v)==="Array"}},11800:function(d){"use strict";var S=typeof document=="object"&&document.all;d.exports=typeof S=="undefined"&&S!==void 0?function(n){return typeof n=="function"||n===S}:function(n){return typeof n=="function"}},83174:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(11800),g=n(11298),y=n(4609),T=n(79321),x=function(){},b=y("Reflect","construct"),C=/^\s*(?:class|function)\b/,A=l(C.exec),R=!C.test(x),P=function(w){if(!v(w))return!1;try{return b(x,[],w),!0}catch(F){return!1}},M=function(w){if(!v(w))return!1;switch(g(w)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!A(C,T(w))}catch(F){return!0}};M.sham=!0,d.exports=!b||f(function(){var I;return P(P.call)||!P(Object)||!P(function(){I=!0})||I})?M:P},26657:function(d,S,n){"use strict";var l=n(73130),f=n(11800),v=/#|\.prototype\./,g=function(C,A){var R=T[y(C)];return R===b?!0:R===x?!1:f(A)?l(A):!!A},y=g.normalize=function(C){return String(C).replace(v,".").toLowerCase()},T=g.data={},x=g.NATIVE="N",b=g.POLYFILL="P";d.exports=g},92606:function(d){"use strict";d.exports=function(S){return S==null}},46638:function(d,S,n){"use strict";var l=n(11800);d.exports=function(f){return typeof f=="object"?f!==null:l(f)}},7086:function(d,S,n){"use strict";var l=n(46638);d.exports=function(f){return l(f)||f===null}},77667:function(d){"use strict";d.exports=!1},62494:function(d,S,n){"use strict";var l=n(46638),f=n(60380),v=n(22171),g=v("match");d.exports=function(y){var T;return l(y)&&((T=y[g])!==void 0?!!T:f(y)==="RegExp")}},54486:function(d,S,n){"use strict";var l=n(4609),f=n(11800),v=n(93527),g=n(90590),y=Object;d.exports=g?function(T){return typeof T=="symbol"}:function(T){var x=l("Symbol");return f(x)&&v(x.prototype,y(T))}},92948:function(d,S,n){"use strict";var l=n(8206),f=n(65318),v=n(14752),g=n(16199),y=n(21871),T=n(5668),x=n(93527),b=n(11998),C=n(48573),A=n(77647),R=TypeError,P=function(I,w){this.stopped=I,this.result=w},M=P.prototype;d.exports=function(I,w,F){var Y=F&&F.that,j=!!(F&&F.AS_ENTRIES),B=!!(F&&F.IS_RECORD),$=!!(F&&F.IS_ITERATOR),X=!!(F&&F.INTERRUPTED),Q=l(w,Y),_,k,lt,tt,et,st,ot,yt=function(J){return _&&A(_,"normal"),new P(!0,J)},Z=function(J){return j?(v(J),X?Q(J[0],J[1],yt):Q(J[0],J[1])):X?Q(J,yt):Q(J)};if(B)_=I.iterator;else if($)_=I;else{if(k=C(I),!k)throw new R(g(I)+" is not iterable");if(y(k)){for(lt=0,tt=T(I);tt>lt;lt++)if(et=Z(I[lt]),et&&x(M,et))return et;return new P(!1)}_=b(I,k)}for(st=B?I.next:_.next;!(ot=f(st,_)).done;){try{et=Z(ot.value)}catch(J){A(_,"throw",J)}if(typeof et=="object"&&et&&x(M,et))return et}return new P(!1)}},77647:function(d,S,n){"use strict";var l=n(65318),f=n(14752),v=n(55884);d.exports=function(g,y,T){var x,b;f(g);try{if(x=v(g,"return"),!x){if(y==="throw")throw T;return T}x=l(x,g)}catch(C){b=!0,x=C}if(y==="throw")throw T;if(b)throw x;return f(x),T}},27975:function(d,S,n){"use strict";var l=n(10638).IteratorPrototype,f=n(40079),v=n(2262),g=n(21812),y=n(85233),T=function(){return this};d.exports=function(x,b,C,A){var R=b+" Iterator";return x.prototype=f(l,{next:v(+!A,C)}),g(x,R,!1,!0),y[R]=T,x}},58302:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(77667),g=n(80100),y=n(11800),T=n(27975),x=n(96228),b=n(30424),C=n(21812),A=n(30600),R=n(11406),P=n(22171),M=n(85233),I=n(10638),w=g.PROPER,F=g.CONFIGURABLE,Y=I.IteratorPrototype,j=I.BUGGY_SAFARI_ITERATORS,B=P("iterator"),$="keys",X="values",Q="entries",_=function(){return this};d.exports=function(k,lt,tt,et,st,ot,yt){T(tt,lt,et);var Z=function(Vt){if(Vt===st&&ht)return ht;if(!j&&Vt&&Vt in mt)return mt[Vt];switch(Vt){case $:return function(){return new tt(this,Vt)};case X:return function(){return new tt(this,Vt)};case Q:return function(){return new tt(this,Vt)}}return function(){return new tt(this)}},J=lt+" Iterator",wt=!1,mt=k.prototype,ut=mt[B]||mt["@@iterator"]||st&&mt[st],ht=!j&&ut||Z(st),N=lt==="Array"&&mt.entries||ut,ft,Ut,At;if(N&&(ft=x(N.call(new k)),ft!==Object.prototype&&ft.next&&(!v&&x(ft)!==Y&&(b?b(ft,Y):y(ft[B])||R(ft,B,_)),C(ft,J,!0,!0),v&&(M[J]=_))),w&&st===X&&ut&&ut.name!==X&&(!v&&F?A(mt,"name",X):(wt=!0,ht=function(){return f(ut,this)})),st)if(Ut={values:Z(X),keys:ot?ht:Z($),entries:Z(Q)},yt)for(At in Ut)(j||wt||!(At in mt))&&R(mt,At,Ut[At]);else l({target:lt,proto:!0,forced:j||wt},Ut);return(!v||yt)&&mt[B]!==ht&&R(mt,B,ht,{name:st}),M[lt]=ht,Ut}},10638:function(d,S,n){"use strict";var l=n(73130),f=n(11800),v=n(46638),g=n(40079),y=n(96228),T=n(11406),x=n(22171),b=n(77667),C=x("iterator"),A=!1,R,P,M;[].keys&&(M=[].keys(),"next"in M?(P=y(y(M)),P!==Object.prototype&&(R=P)):A=!0);var I=!v(R)||l(function(){var w={};return R[C].call(w)!==w});I?R={}:b&&(R=g(R)),f(R[C])||T(R,C,function(){return this}),d.exports={IteratorPrototype:R,BUGGY_SAFARI_ITERATORS:A}},85233:function(d){"use strict";d.exports={}},5668:function(d,S,n){"use strict";var l=n(56005);d.exports=function(f){return l(f.length)}},56684:function(d,S,n){"use strict";var l=n(37725),f=n(73130),v=n(11800),g=n(57430),y=n(73679),T=n(80100).CONFIGURABLE,x=n(79321),b=n(23836),C=b.enforce,A=b.get,R=String,P=Object.defineProperty,M=l("".slice),I=l("".replace),w=l([].join),F=y&&!f(function(){return P(function(){},"length",{value:8}).length!==8}),Y=String(String).split("String"),j=d.exports=function(B,$,X){M(R($),0,7)==="Symbol("&&($="["+I(R($),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),X&&X.getter&&($="get "+$),X&&X.setter&&($="set "+$),(!g(B,"name")||T&&B.name!==$)&&(y?P(B,"name",{value:$,configurable:!0}):B.name=$),F&&X&&g(X,"arity")&&B.length!==X.arity&&P(B,"length",{value:X.arity});try{X&&g(X,"constructor")&&X.constructor?y&&P(B,"prototype",{writable:!1}):B.prototype&&(B.prototype=void 0)}catch(_){}var Q=C(B);return g(Q,"source")||(Q.source=w(Y,typeof $=="string"?$:"")),B};Function.prototype.toString=j(function(){return v(this)&&A(this).source||x(this)},"toString")},75638:function(d){"use strict";var S=Math.ceil,n=Math.floor;d.exports=Math.trunc||function(f){var v=+f;return(v>0?n:S)(v)}},94734:function(d,S,n){"use strict";var l=n(93755),f=n(28096),v=n(8206),g=n(84812).set,y=n(76408),T=n(54394),x=n(21825),b=n(42637),C=n(12264),A=l.MutationObserver||l.WebKitMutationObserver,R=l.document,P=l.process,M=l.Promise,I=f("queueMicrotask"),w,F,Y,j,B;if(!I){var $=new y,X=function(){var Q,_;for(C&&(Q=P.domain)&&Q.exit();_=$.get();)try{_()}catch(k){throw $.head&&w(),k}Q&&Q.enter()};!T&&!C&&!b&&A&&R?(F=!0,Y=R.createTextNode(""),new A(X).observe(Y,{characterData:!0}),w=function(){Y.data=F=!F}):!x&&M&&M.resolve?(j=M.resolve(void 0),j.constructor=M,B=v(j.then,j),w=function(){B(X)}):C?w=function(){P.nextTick(X)}:(g=v(g,l),w=function(){g(X)}),I=function(Q){$.head||w(),$.add(Q)}}d.exports=I},52878:function(d,S,n){"use strict";var l=n(25499),f=TypeError,v=function(g){var y,T;this.promise=new g(function(x,b){if(y!==void 0||T!==void 0)throw new f("Bad Promise constructor");y=x,T=b}),this.resolve=l(y),this.reject=l(T)};d.exports.f=function(g){return new v(g)}},54914:function(d,S,n){"use strict";var l=n(62494),f=TypeError;d.exports=function(v){if(l(v))throw new f("The method doesn't accept regular expressions");return v}},40079:function(d,S,n){"use strict";var l=n(14752),f=n(54315),v=n(46367),g=n(33614),y=n(65757),T=n(27139),x=n(81196),b=">",C="<",A="prototype",R="script",P=x("IE_PROTO"),M=function(){},I=function(B){return C+R+b+B+C+"/"+R+b},w=function(B){B.write(I("")),B.close();var $=B.parentWindow.Object;return B=null,$},F=function(){var B=T("iframe"),$="java"+R+":",X;return B.style.display="none",y.appendChild(B),B.src=String($),X=B.contentWindow.document,X.open(),X.write(I("document.F=Object")),X.close(),X.F},Y,j=function(){try{Y=new ActiveXObject("htmlfile")}catch($){}j=typeof document!="undefined"?document.domain&&Y?w(Y):F():w(Y);for(var B=v.length;B--;)delete j[A][v[B]];return j()};g[P]=!0,d.exports=Object.create||function($,X){var Q;return $!==null?(M[A]=l($),Q=new M,M[A]=null,Q[P]=$):Q=j(),X===void 0?Q:f.f(Q,X)}},54315:function(d,S,n){"use strict";var l=n(73679),f=n(66577),v=n(92402),g=n(14752),y=n(18295),T=n(1417);S.f=l&&!f?Object.defineProperties:function(b,C){g(b);for(var A=y(C),R=T(C),P=R.length,M=0,I;P>M;)v.f(b,I=R[M++],A[I]);return b}},92402:function(d,S,n){"use strict";var l=n(73679),f=n(84436),v=n(66577),g=n(14752),y=n(76155),T=TypeError,x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C="enumerable",A="configurable",R="writable";S.f=l?v?function(M,I,w){if(g(M),I=y(I),g(w),typeof M=="function"&&I==="prototype"&&"value"in w&&R in w&&!w[R]){var F=b(M,I);F&&F[R]&&(M[I]=w.value,w={configurable:A in w?w[A]:F[A],enumerable:C in w?w[C]:F[C],writable:!1})}return x(M,I,w)}:x:function(M,I,w){if(g(M),I=y(I),g(w),f)try{return x(M,I,w)}catch(F){}if("get"in w||"set"in w)throw new T("Accessors not supported");return"value"in w&&(M[I]=w.value),M}},54398:function(d,S,n){"use strict";var l=n(73679),f=n(65318),v=n(31559),g=n(2262),y=n(18295),T=n(76155),x=n(57430),b=n(84436),C=Object.getOwnPropertyDescriptor;S.f=l?C:function(R,P){if(R=y(R),P=T(P),b)try{return C(R,P)}catch(M){}if(x(R,P))return g(!f(v.f,R,P),R[P])}},94254:function(d,S,n){"use strict";var l=n(30559),f=n(46367),v=f.concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return l(y,v)}},3266:function(d,S){"use strict";S.f=Object.getOwnPropertySymbols},96228:function(d,S,n){"use strict";var l=n(57430),f=n(11800),v=n(57866),g=n(81196),y=n(67715),T=g("IE_PROTO"),x=Object,b=x.prototype;d.exports=y?x.getPrototypeOf:function(C){var A=v(C);if(l(A,T))return A[T];var R=A.constructor;return f(R)&&A instanceof R?R.prototype:A instanceof x?b:null}},93527:function(d,S,n){"use strict";var l=n(37725);d.exports=l({}.isPrototypeOf)},30559:function(d,S,n){"use strict";var l=n(37725),f=n(57430),v=n(18295),g=n(76879).indexOf,y=n(33614),T=l([].push);d.exports=function(x,b){var C=v(x),A=0,R=[],P;for(P in C)!f(y,P)&&f(C,P)&&T(R,P);for(;b.length>A;)f(C,P=b[A++])&&(~g(R,P)||T(R,P));return R}},1417:function(d,S,n){"use strict";var l=n(30559),f=n(46367);d.exports=Object.keys||function(g){return l(g,f)}},31559:function(d,S){"use strict";var n={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,f=l&&!n.call({1:2},1);S.f=f?function(g){var y=l(this,g);return!!y&&y.enumerable}:n},30424:function(d,S,n){"use strict";var l=n(49410),f=n(46638),v=n(72337),g=n(30828);d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},x;try{x=l(Object.prototype,"__proto__","set"),x(T,[]),y=T instanceof Array}catch(b){}return function(C,A){return v(C),g(A),f(C)&&(y?x(C,A):C.__proto__=A),C}}():void 0)},90487:function(d,S,n){"use strict";var l=n(65318),f=n(11800),v=n(46638),g=TypeError;d.exports=function(y,T){var x,b;if(T==="string"&&f(x=y.toString)&&!v(b=l(x,y))||f(x=y.valueOf)&&!v(b=l(x,y))||T!=="string"&&f(x=y.toString)&&!v(b=l(x,y)))return b;throw new g("Can't convert object to primitive value")}},58905:function(d,S,n){"use strict";var l=n(4609),f=n(37725),v=n(94254),g=n(3266),y=n(14752),T=f([].concat);d.exports=l("Reflect","ownKeys")||function(b){var C=v.f(y(b)),A=g.f;return A?T(C,A(b)):C}},74022:function(d,S,n){"use strict";var l=n(93755);d.exports=l},66850:function(d){"use strict";d.exports=function(S){try{return{error:!1,value:S()}}catch(n){return{error:!0,value:n}}}},98060:function(d,S,n){"use strict";var l=n(93755),f=n(74199),v=n(11800),g=n(26657),y=n(79321),T=n(22171),x=n(84526),b=n(77667),C=n(59410),A=f&&f.prototype,R=T("species"),P=!1,M=v(l.PromiseRejectionEvent),I=g("Promise",function(){var w=y(f),F=w!==String(f);if(!F&&C===66||b&&!(A.catch&&A.finally))return!0;if(!C||C<51||!/native code/.test(w)){var Y=new f(function($){$(1)}),j=function($){$(function(){},function(){})},B=Y.constructor={};if(B[R]=j,P=Y.then(function(){})instanceof j,!P)return!0}return!F&&(x==="BROWSER"||x==="DENO")&&!M});d.exports={CONSTRUCTOR:I,REJECTION_EVENT:M,SUBCLASSING:P}},74199:function(d,S,n){"use strict";var l=n(93755);d.exports=l.Promise},46374:function(d,S,n){"use strict";var l=n(14752),f=n(46638),v=n(52878);d.exports=function(g,y){if(l(g),f(y)&&y.constructor===g)return y;var T=v.f(g),x=T.resolve;return x(y),T.promise}},23056:function(d,S,n){"use strict";var l=n(74199),f=n(16961),v=n(98060).CONSTRUCTOR;d.exports=v||!f(function(g){l.all(g).then(void 0,function(){})})},76408:function(d){"use strict";var S=function(){this.head=null,this.tail=null};S.prototype={add:function(n){var l={item:n,next:null},f=this.tail;f?f.next=l:this.head=l,this.tail=l},get:function(){var n=this.head;if(n){var l=this.head=n.next;return l===null&&(this.tail=null),n.item}}},d.exports=S},10253:function(d,S,n){"use strict";var l=n(65318),f=n(14752),v=n(11800),g=n(60380),y=n(84135),T=TypeError;d.exports=function(x,b){var C=x.exec;if(v(C)){var A=l(C,x,b);return A!==null&&f(A),A}if(g(x)==="RegExp")return l(y,x,b);throw new T("RegExp#exec called on incompatible receiver")}},84135:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(11315),g=n(65317),y=n(88797),T=n(2896),x=n(40079),b=n(23836).get,C=n(62008),A=n(3072),R=T("native-string-replace",String.prototype.replace),P=RegExp.prototype.exec,M=P,I=f("".charAt),w=f("".indexOf),F=f("".replace),Y=f("".slice),j=function(){var Q=/a/,_=/b*/g;return l(P,Q,"a"),l(P,_,"a"),Q.lastIndex!==0||_.lastIndex!==0}(),B=y.BROKEN_CARET,$=/()??/.exec("")[1]!==void 0,X=j||$||B||C||A;X&&(M=function(_){var k=this,lt=b(k),tt=v(_),et=lt.raw,st,ot,yt,Z,J,wt,mt;if(et)return et.lastIndex=k.lastIndex,st=l(M,et,tt),k.lastIndex=et.lastIndex,st;var ut=lt.groups,ht=B&&k.sticky,N=l(g,k),ft=k.source,Ut=0,At=tt;if(ht&&(N=F(N,"y",""),w(N,"g")===-1&&(N+="g"),At=Y(tt,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&I(tt,k.lastIndex-1)!==`
`)&&(ft="(?: "+ft+")",At=" "+At,Ut++),ot=new RegExp("^(?:"+ft+")",N)),$&&(ot=new RegExp("^"+ft+"$(?!\\s)",N)),j&&(yt=k.lastIndex),Z=l(P,ht?ot:k,At),ht?Z?(Z.input=Y(Z.input,Ut),Z[0]=Y(Z[0],Ut),Z.index=k.lastIndex,k.lastIndex+=Z[0].length):k.lastIndex=0:j&&Z&&(k.lastIndex=k.global?Z.index+Z[0].length:yt),$&&Z&&Z.length>1&&l(R,Z[0],ot,function(){for(J=1;J<arguments.length-2;J++)arguments[J]===void 0&&(Z[J]=void 0)}),Z&&ut)for(Z.groups=wt=x(null),J=0;J<ut.length;J++)mt=ut[J],wt[mt[0]]=Z[mt[1]];return Z}),d.exports=M},11479:function(d,S,n){"use strict";var l=n(93755),f=n(73130),v=l.RegExp,g=!f(function(){var y=!0;try{v(".","d")}catch(M){y=!1}var T={},x="",b=y?"dgimsy":"gimsy",C=function(M,I){Object.defineProperty(T,M,{get:function(){return x+=I,!0}})},A={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};y&&(A.hasIndices="d");for(var R in A)C(R,A[R]);var P=Object.getOwnPropertyDescriptor(v.prototype,"flags").get.call(T);return P!==b||x!==b});d.exports={correct:g}},65317:function(d,S,n){"use strict";var l=n(14752);d.exports=function(){var f=l(this),v="";return f.hasIndices&&(v+="d"),f.global&&(v+="g"),f.ignoreCase&&(v+="i"),f.multiline&&(v+="m"),f.dotAll&&(v+="s"),f.unicode&&(v+="u"),f.unicodeSets&&(v+="v"),f.sticky&&(v+="y"),v}},89556:function(d,S,n){"use strict";var l=n(65318),f=n(57430),v=n(93527),g=n(11479),y=n(65317),T=RegExp.prototype;d.exports=g.correct?function(x){return x.flags}:function(x){return!g.correct&&v(T,x)&&!f(x,"flags")?l(y,x):x.flags}},88797:function(d,S,n){"use strict";var l=n(73130),f=n(93755),v=f.RegExp,g=l(function(){var x=v("a","y");return x.lastIndex=2,x.exec("abcd")!==null}),y=g||l(function(){return!v("a","y").sticky}),T=g||l(function(){var x=v("^r","gy");return x.lastIndex=2,x.exec("str")!==null});d.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},62008:function(d,S,n){"use strict";var l=n(73130),f=n(93755),v=f.RegExp;d.exports=l(function(){var g=v(".","s");return!(g.dotAll&&g.test(`
`)&&g.flags==="s")})},3072:function(d,S,n){"use strict";var l=n(73130),f=n(93755),v=f.RegExp;d.exports=l(function(){var g=v("(?<a>b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$<a>c")!=="bc"})},72337:function(d,S,n){"use strict";var l=n(92606),f=TypeError;d.exports=function(v){if(l(v))throw new f("Can't call method on "+v);return v}},28096:function(d,S,n){"use strict";var l=n(93755),f=n(73679),v=Object.getOwnPropertyDescriptor;d.exports=function(g){if(!f)return l[g];var y=v(l,g);return y&&y.value}},29842:function(d,S,n){"use strict";var l=n(4609),f=n(36096),v=n(22171),g=n(73679),y=v("species");d.exports=function(T){var x=l(T);g&&x&&!x[y]&&f(x,y,{configurable:!0,get:function(){return this}})}},21812:function(d,S,n){"use strict";var l=n(92402).f,f=n(57430),v=n(22171),g=v("toStringTag");d.exports=function(y,T,x){y&&!x&&(y=y.prototype),y&&!f(y,g)&&l(y,g,{configurable:!0,value:T})}},81196:function(d,S,n){"use strict";var l=n(2896),f=n(24088),v=l("keys");d.exports=function(g){return v[g]||(v[g]=f(g))}},54163:function(d,S,n){"use strict";var l=n(77667),f=n(93755),v=n(31463),g="__core-js_shared__",y=d.exports=f[g]||v(g,{});(y.versions||(y.versions=[])).push({version:"3.48.0",mode:l?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"})},2896:function(d,S,n){"use strict";var l=n(54163);d.exports=function(f,v){return l[f]||(l[f]=v||{})}},14099:function(d,S,n){"use strict";var l=n(14752),f=n(48274),v=n(92606),g=n(22171),y=g("species");d.exports=function(T,x){var b=l(T).constructor,C;return b===void 0||v(C=l(b)[y])?x:f(C)}},38095:function(d,S,n){"use strict";var l=n(37725),f=n(30921),v=n(11315),g=n(72337),y=l("".charAt),T=l("".charCodeAt),x=l("".slice),b=function(C){return function(A,R){var P=v(g(A)),M=f(R),I=P.length,w,F;return M<0||M>=I?C?"":void 0:(w=T(P,M),w<55296||w>56319||M+1===I||(F=T(P,M+1))<56320||F>57343?C?y(P,M):w:C?x(P,M,M+2):(w-55296<<10)+(F-56320)+65536)}};d.exports={codeAt:b(!1),charAt:b(!0)}},2659:function(d,S,n){"use strict";var l=n(80100).PROPER,f=n(73130),v=n(29528),g="\u200B\x85\u180E";d.exports=function(y){return f(function(){return!!v[y]()||g[y]()!==g||l&&v[y].name!==y})}},99407:function(d,S,n){"use strict";var l=n(37725),f=n(72337),v=n(11315),g=n(29528),y=l("".replace),T=RegExp("^["+g+"]+"),x=RegExp("(^|[^"+g+"])["+g+"]+$"),b=function(C){return function(A){var R=v(f(A));return C&1&&(R=y(R,T,"")),C&2&&(R=y(R,x,"$1")),R}};d.exports={start:b(1),end:b(2),trim:b(3)}},3494:function(d,S,n){"use strict";var l=n(59410),f=n(73130),v=n(93755),g=v.String;d.exports=!!Object.getOwnPropertySymbols&&!f(function(){var y=Symbol("symbol detection");return!g(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&l&&l<41})},84812:function(d,S,n){"use strict";var l=n(93755),f=n(71016),v=n(8206),g=n(11800),y=n(57430),T=n(73130),x=n(65757),b=n(29986),C=n(27139),A=n(51631),R=n(54394),P=n(12264),M=l.setImmediate,I=l.clearImmediate,w=l.process,F=l.Dispatch,Y=l.Function,j=l.MessageChannel,B=l.String,$=0,X={},Q="onreadystatechange",_,k,lt,tt;T(function(){_=l.location});var et=function(Z){if(y(X,Z)){var J=X[Z];delete X[Z],J()}},st=function(Z){return function(){et(Z)}},ot=function(Z){et(Z.data)},yt=function(Z){l.postMessage(B(Z),_.protocol+"//"+_.host)};(!M||!I)&&(M=function(J){A(arguments.length,1);var wt=g(J)?J:Y(J),mt=b(arguments,1);return X[++$]=function(){f(wt,void 0,mt)},k($),$},I=function(J){delete X[J]},P?k=function(Z){w.nextTick(st(Z))}:F&&F.now?k=function(Z){F.now(st(Z))}:j&&!R?(lt=new j,tt=lt.port2,lt.port1.onmessage=ot,k=v(tt.postMessage,tt)):l.addEventListener&&g(l.postMessage)&&!l.importScripts&&_&&_.protocol!=="file:"&&!T(yt)?(k=yt,l.addEventListener("message",ot,!1)):Q in C("script")?k=function(Z){x.appendChild(C("script"))[Q]=function(){x.removeChild(this),et(Z)}}:k=function(Z){setTimeout(st(Z),0)}),d.exports={set:M,clear:I}},95374:function(d,S,n){"use strict";var l=n(30921),f=Math.max,v=Math.min;d.exports=function(g,y){var T=l(g);return T<0?f(T+y,0):v(T,y)}},18295:function(d,S,n){"use strict";var l=n(910),f=n(72337);d.exports=function(v){return l(f(v))}},30921:function(d,S,n){"use strict";var l=n(75638);d.exports=function(f){var v=+f;return v!==v||v===0?0:l(v)}},56005:function(d,S,n){"use strict";var l=n(30921),f=Math.min;d.exports=function(v){var g=l(v);return g>0?f(g,9007199254740991):0}},57866:function(d,S,n){"use strict";var l=n(72337),f=Object;d.exports=function(v){return f(l(v))}},77152:function(d,S,n){"use strict";var l=n(65318),f=n(46638),v=n(54486),g=n(55884),y=n(90487),T=n(22171),x=TypeError,b=T("toPrimitive");d.exports=function(C,A){if(!f(C)||v(C))return C;var R=g(C,b),P;if(R){if(A===void 0&&(A="default"),P=l(R,C,A),!f(P)||v(P))return P;throw new x("Can't convert object to primitive value")}return A===void 0&&(A="number"),y(C,A)}},76155:function(d,S,n){"use strict";var l=n(77152),f=n(54486);d.exports=function(v){var g=l(v,"string");return f(g)?g:g+""}},28043:function(d,S,n){"use strict";var l=n(22171),f=l("toStringTag"),v={};v[f]="z",d.exports=String(v)==="[object z]"},11315:function(d,S,n){"use strict";var l=n(11298),f=String;d.exports=function(v){if(l(v)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return f(v)}},16199:function(d){"use strict";var S=String;d.exports=function(n){try{return S(n)}catch(l){return"Object"}}},24088:function(d,S,n){"use strict";var l=n(37725),f=0,v=Math.random(),g=l(1.1.toString);d.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++f+v,36)}},90590:function(d,S,n){"use strict";var l=n(3494);d.exports=l&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},66577:function(d,S,n){"use strict";var l=n(73679),f=n(73130);d.exports=l&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},51631:function(d){"use strict";var S=TypeError;d.exports=function(n,l){if(n<l)throw new S("Not enough arguments");return n}},86639:function(d,S,n){"use strict";var l=n(93755),f=n(11800),v=l.WeakMap;d.exports=f(v)&&/native code/.test(String(v))},22171:function(d,S,n){"use strict";var l=n(93755),f=n(2896),v=n(57430),g=n(24088),y=n(3494),T=n(90590),x=l.Symbol,b=f("wks"),C=T?x.for||x:x&&x.withoutSetter||g;d.exports=function(A){return v(b,A)||(b[A]=y&&v(x,A)?x[A]:C("Symbol."+A)),b[A]}},29528:function(d){"use strict";d.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},1261:function(d,S,n){"use strict";var l=n(82372),f=n(64866),v=n(76879).indexOf,g=n(67055),y=f([].indexOf),T=!!y&&1/y([1],1,-0)<0,x=T||!g("indexOf");l({target:"Array",proto:!0,forced:x},{indexOf:function(C){var A=arguments.length>1?arguments[1]:void 0;return T?y(this,C,A)||0:v(this,C,A)}})},46220:function(d,S,n){"use strict";var l=n(18295),f=n(64744),v=n(85233),g=n(23836),y=n(92402).f,T=n(58302),x=n(70133),b=n(77667),C=n(73679),A="Array Iterator",R=g.set,P=g.getterFor(A);d.exports=T(Array,"Array",function(I,w){R(this,{type:A,target:l(I),index:0,kind:w})},function(){var I=P(this),w=I.target,F=I.index++;if(!w||F>=w.length)return I.target=null,x(void 0,!0);switch(I.kind){case"keys":return x(F,!1);case"values":return x(w[F],!1)}return x([F,w[F]],!1)},"values");var M=v.Arguments=v.Array;if(f("keys"),f("values"),f("entries"),!b&&C&&M.name!=="values")try{y(M,"name",{value:"values"})}catch(I){}},79075:function(d,S,n){"use strict";var l=n(82372),f=n(45333).left,v=n(67055),g=n(59410),y=n(12264),T=!y&&g>79&&g<83,x=T||!v("reduce");l({target:"Array",proto:!0,forced:x},{reduce:function(C){var A=arguments.length;return f(this,C,A,A>1?arguments[1]:void 0)}})},36342:function(d,S,n){"use strict";var l=n(82372),f=n(37725),v=n(60221),g=f([].reverse),y=[1,2];l({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),g(this)}})},86487:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(25499),g=n(52878),y=n(66850),T=n(92948),x=n(23056);l({target:"Promise",stat:!0,forced:x},{all:function(C){var A=this,R=g.f(A),P=R.resolve,M=R.reject,I=y(function(){var w=v(A.resolve),F=[],Y=0,j=1;T(C,function(B){var $=Y++,X=!1;j++,f(w,A,B).then(function(Q){X||(X=!0,F[$]=Q,--j||P(F))},M)}),--j||P(F)});return I.error&&M(I.value),R.promise}})},95690:function(d,S,n){"use strict";var l=n(82372),f=n(77667),v=n(98060).CONSTRUCTOR,g=n(74199),y=n(4609),T=n(11800),x=n(11406),b=g&&g.prototype;if(l({target:"Promise",proto:!0,forced:v,real:!0},{catch:function(A){return this.then(void 0,A)}}),!f&&T(g)){var C=y("Promise").prototype.catch;b.catch!==C&&x(b,"catch",C,{unsafe:!0})}},93677:function(d,S,n){"use strict";var l=n(82372),f=n(77667),v=n(12264),g=n(93755),y=n(74022),T=n(65318),x=n(11406),b=n(30424),C=n(21812),A=n(29842),R=n(25499),P=n(11800),M=n(46638),I=n(70271),w=n(14099),F=n(84812).set,Y=n(94734),j=n(50358),B=n(66850),$=n(76408),X=n(23836),Q=n(74199),_=n(98060),k=n(52878),lt="Promise",tt=_.CONSTRUCTOR,et=_.REJECTION_EVENT,st=_.SUBCLASSING,ot=X.getterFor(lt),yt=X.set,Z=Q&&Q.prototype,J=Q,wt=Z,mt=g.TypeError,ut=g.document,ht=g.process,N=k.f,ft=N,Ut=!!(ut&&ut.createEvent&&g.dispatchEvent),At="unhandledrejection",Vt="rejectionhandled",qt=0,ie=1,Qt=2,le=1,he=2,_t,fe,ce,Zt,ve=function(W){var nt;return M(W)&&P(nt=W.then)?nt:!1},ge=function(W,nt){var gt=nt.value,dt=nt.state===ie,bt=dt?W.ok:W.fail,me=W.resolve,Le=W.reject,xe=W.domain,Ee,te,$e;try{bt?(dt||(nt.rejection===he&&Ze(nt),nt.rejection=le),bt===!0?Ee=gt:(xe&&xe.enter(),Ee=bt(gt),xe&&(xe.exit(),$e=!0)),Ee===W.promise?Le(new mt("Promise-chain cycle")):(te=ve(Ee))?T(te,Ee,me,Le):me(Ee)):Le(gt)}catch(ae){xe&&!$e&&xe.exit(),Le(ae)}},de=function(W,nt){W.notified||(W.notified=!0,Y(function(){for(var gt=W.reactions,dt;dt=gt.get();)ge(dt,W);W.notified=!1,nt&&!W.rejection&&Kt(W)}))},pe=function(W,nt,gt){var dt,bt;Ut?(dt=ut.createEvent("Event"),dt.promise=nt,dt.reason=gt,dt.initEvent(W,!1,!0),g.dispatchEvent(dt)):dt={promise:nt,reason:gt},!et&&(bt=g["on"+W])?bt(dt):W===At&&j("Unhandled promise rejection",gt)},Kt=function(W){T(F,g,function(){var nt=W.facade,gt=W.value,dt=ze(W),bt;if(dt&&(bt=B(function(){v?ht.emit("unhandledRejection",gt,nt):pe(At,nt,gt)}),W.rejection=v||ze(W)?he:le,bt.error))throw bt.value})},ze=function(W){return W.rejection!==le&&!W.parent},Ze=function(W){T(F,g,function(){var nt=W.facade;v?ht.emit("rejectionHandled",nt):pe(Vt,nt,W.value)})},It=function(W,nt,gt){return function(dt){W(nt,dt,gt)}},ye=function(W,nt,gt){W.done||(W.done=!0,gt&&(W=gt),W.value=nt,W.state=Qt,de(W,!0))},De=function(W,nt,gt){if(!W.done){W.done=!0,gt&&(W=gt);try{if(W.facade===nt)throw new mt("Promise can't be resolved itself");var dt=ve(nt);dt?Y(function(){var bt={done:!1};try{T(dt,nt,It(De,bt,W),It(ye,bt,W))}catch(me){ye(bt,me,W)}}):(W.value=nt,W.state=ie,de(W,!1))}catch(bt){ye({done:!1},bt,W)}}};if(tt&&(J=function(nt){I(this,wt),R(nt),T(_t,this);var gt=ot(this);try{nt(It(De,gt),It(ye,gt))}catch(dt){ye(gt,dt)}},wt=J.prototype,_t=function(nt){yt(this,{type:lt,done:!1,notified:!1,parent:!1,reactions:new $,rejection:!1,state:qt,value:null})},_t.prototype=x(wt,"then",function(nt,gt){var dt=ot(this),bt=N(w(this,J));return dt.parent=!0,bt.ok=P(nt)?nt:!0,bt.fail=P(gt)&&gt,bt.domain=v?ht.domain:void 0,dt.state===qt?dt.reactions.add(bt):Y(function(){ge(bt,dt)}),bt.promise}),fe=function(){var W=new _t,nt=ot(W);this.promise=W,this.resolve=It(De,nt),this.reject=It(ye,nt)},k.f=N=function(W){return W===J||W===ce?new fe(W):ft(W)},!f&&P(Q)&&Z!==Object.prototype)){Zt=Z.then,st||x(Z,"then",function(nt,gt){var dt=this;return new J(function(bt,me){T(Zt,dt,bt,me)}).then(nt,gt)},{unsafe:!0});try{delete Z.constructor}catch(W){}b&&b(Z,wt)}l({global:!0,constructor:!0,wrap:!0,forced:tt},{Promise:J}),ce=y.Promise,C(J,lt,!1,!0),A(lt)},91597:function(d,S,n){"use strict";n(93677),n(86487),n(95690),n(6523),n(25011),n(64056)},6523:function(d,S,n){"use strict";var l=n(82372),f=n(65318),v=n(25499),g=n(52878),y=n(66850),T=n(92948),x=n(23056);l({target:"Promise",stat:!0,forced:x},{race:function(C){var A=this,R=g.f(A),P=R.reject,M=y(function(){var I=v(A.resolve);T(C,function(w){f(I,A,w).then(R.resolve,P)})});return M.error&&P(M.value),R.promise}})},25011:function(d,S,n){"use strict";var l=n(82372),f=n(52878),v=n(98060).CONSTRUCTOR;l({target:"Promise",stat:!0,forced:v},{reject:function(y){var T=f.f(this),x=T.reject;return x(y),T.promise}})},64056:function(d,S,n){"use strict";var l=n(82372),f=n(4609),v=n(77667),g=n(74199),y=n(98060).CONSTRUCTOR,T=n(46374),x=f("Promise"),b=v&&!y;l({target:"Promise",stat:!0,forced:v||y},{resolve:function(A){return T(b&&this===x?g:this,A)}})},24343:function(d,S,n){"use strict";var l=n(82372),f=n(84135);l({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},57815:function(d,S,n){"use strict";var l=n(80100).PROPER,f=n(11406),v=n(14752),g=n(11315),y=n(73130),T=n(89556),x="toString",b=RegExp.prototype,C=b[x],A=y(function(){return C.call({source:"a",flags:"b"})!=="/a/b"}),R=l&&C.name!==x;(A||R)&&f(b,x,function(){var M=v(this),I=g(M.source),w=g(T(M));return"/"+I+"/"+w},{unsafe:!0})},30303:function(d,S,n){"use strict";var l=n(82372),f=n(64866),v=n(54398).f,g=n(56005),y=n(11315),T=n(54914),x=n(72337),b=n(37101),C=n(77667),A=f("".slice),R=Math.min,P=b("endsWith"),M=!C&&!P&&!!function(){var I=v(String.prototype,"endsWith");return I&&!I.writable}();l({target:"String",proto:!0,forced:!M&&!P},{endsWith:function(w){var F=y(x(this));T(w);var Y=arguments.length>1?arguments[1]:void 0,j=F.length,B=Y===void 0?j:R(g(Y),j),$=y(w);return A(F,B-$.length,B)===$}})},80027:function(d,S,n){"use strict";var l=n(82372),f=n(37725),v=n(54914),g=n(72337),y=n(11315),T=n(37101),x=f("".indexOf);l({target:"String",proto:!0,forced:!T("includes")},{includes:function(C){return!!~x(y(g(this)),y(v(C)),arguments.length>1?arguments[1]:void 0)}})},8474:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(78381),g=n(14752),y=n(46638),T=n(56005),x=n(11315),b=n(72337),C=n(55884),A=n(78938),R=n(89556),P=n(10253),M=f("".indexOf);v("match",function(I,w,F){return[function(j){var B=b(this),$=y(j)?C(j,I):void 0;return $?l($,j,B):new RegExp(j)[I](x(B))},function(Y){var j=g(this),B=x(Y),$=F(w,j,B);if($.done)return $.value;var X=x(R(j));if(M(X,"g")===-1)return P(j,B);var Q=M(X,"u")!==-1;j.lastIndex=0;for(var _=[],k=0,lt;(lt=P(j,B))!==null;){var tt=x(lt[0]);_[k]=tt,tt===""&&(j.lastIndex=A(B,T(j.lastIndex),Q)),k++}return k===0?null:_}]})},86914:function(d,S,n){"use strict";var l=n(71016),f=n(65318),v=n(37725),g=n(78381),y=n(73130),T=n(14752),x=n(11800),b=n(46638),C=n(30921),A=n(56005),R=n(11315),P=n(72337),M=n(78938),I=n(55884),w=n(92506),F=n(89556),Y=n(10253),j=n(22171),B=j("replace"),$=Math.max,X=Math.min,Q=v([].concat),_=v([].push),k=v("".indexOf),lt=v("".slice),tt=function(yt){return yt===void 0?yt:String(yt)},et=function(){return"a".replace(/./,"$0")==="$0"}(),st=function(){return/./[B]?/./[B]("a","$0")==="":!1}(),ot=!y(function(){var yt=/./;return yt.exec=function(){var Z=[];return Z.groups={a:"7"},Z},"".replace(yt,"$<a>")!=="7"});g("replace",function(yt,Z,J){var wt=st?"$":"$0";return[function(ut,ht){var N=P(this),ft=b(ut)?I(ut,B):void 0;return ft?f(ft,ut,N,ht):f(Z,R(N),ut,ht)},function(mt,ut){var ht=T(this),N=R(mt);if(typeof ut=="string"&&k(ut,wt)===-1&&k(ut,"$<")===-1){var ft=J(Z,ht,N,ut);if(ft.done)return ft.value}var Ut=x(ut);Ut||(ut=R(ut));var At=R(F(ht)),Vt=k(At,"g")!==-1,qt;Vt&&(qt=k(At,"u")!==-1,ht.lastIndex=0);for(var ie=[],Qt;Qt=Y(ht,N),!(Qt===null||(_(ie,Qt),!Vt));){var le=R(Qt[0]);le===""&&(ht.lastIndex=M(N,A(ht.lastIndex),qt))}for(var he="",_t=0,fe=0;fe<ie.length;fe++){Qt=ie[fe];for(var ce=R(Qt[0]),Zt=$(X(C(Qt.index),N.length),0),ve=[],ge,de=1;de<Qt.length;de++)_(ve,tt(Qt[de]));var pe=Qt.groups;if(Ut){var Kt=Q([ce],ve,Zt,N);pe!==void 0&&_(Kt,pe),ge=R(l(ut,void 0,Kt))}else ge=w(ce,N,Zt,ve,pe,ut);Zt>=_t&&(he+=lt(N,_t,Zt)+ge,_t=Zt+ce.length)}return he+lt(N,_t)}]},!ot||!et||st)},95265:function(d,S,n){"use strict";var l=n(65318),f=n(37725),v=n(78381),g=n(14752),y=n(46638),T=n(72337),x=n(14099),b=n(78938),C=n(56005),A=n(11315),R=n(55884),P=n(10253),M=n(88797),I=n(73130),w=M.UNSUPPORTED_Y,F=4294967295,Y=Math.min,j=f([].push),B=f("".slice),$=!I(function(){var Q=/(?:)/,_=Q.exec;Q.exec=function(){return _.apply(this,arguments)};var k="ab".split(Q);return k.length!==2||k[0]!=="a"||k[1]!=="b"}),X="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;v("split",function(Q,_,k){var lt="0".split(void 0,0).length?function(tt,et){return tt===void 0&&et===0?[]:l(_,this,tt,et)}:_;return[function(et,st){var ot=T(this),yt=y(et)?R(et,Q):void 0;return yt?l(yt,et,ot,st):l(lt,A(ot),et,st)},function(tt,et){var st=g(this),ot=A(tt);if(!X){var yt=k(lt,st,ot,et,lt!==_);if(yt.done)return yt.value}var Z=x(st,RegExp),J=st.unicode,wt=(st.ignoreCase?"i":"")+(st.multiline?"m":"")+(st.unicode?"u":"")+(w?"g":"y"),mt=new Z(w?"^(?:"+st.source+")":st,wt),ut=et===void 0?F:et>>>0;if(ut===0)return[];if(ot.length===0)return P(mt,ot)===null?[ot]:[];for(var ht=0,N=0,ft=[];N<ot.length;){mt.lastIndex=w?0:N;var Ut=P(mt,w?B(ot,N):ot),At;if(Ut===null||(At=Y(C(mt.lastIndex+(w?N:0)),ot.length))===ht)N=b(ot,N,J);else{if(j(ft,B(ot,ht,N)),ft.length===ut)return ft;for(var Vt=1;Vt<=Ut.length-1;Vt++)if(j(ft,Ut[Vt]),ft.length===ut)return ft;N=ht=At}}return j(ft,B(ot,ht)),ft}]},X||!$,w)},5542:function(d,S,n){"use strict";var l=n(82372),f=n(64866),v=n(54398).f,g=n(56005),y=n(11315),T=n(54914),x=n(72337),b=n(37101),C=n(77667),A=f("".slice),R=Math.min,P=b("startsWith"),M=!C&&!P&&!!function(){var I=v(String.prototype,"startsWith");return I&&!I.writable}();l({target:"String",proto:!0,forced:!M&&!P},{startsWith:function(w){var F=y(x(this));T(w);var Y=g(R(arguments.length>1?arguments[1]:void 0,F.length)),j=y(w);return A(F,Y,Y+j.length)===j}})},59483:function(d,S,n){"use strict";var l=n(82372),f=n(99407).trim,v=n(2659);l({target:"String",proto:!0,forced:v("trim")},{trim:function(){return f(this)}})},50610:function(d,S,n){"use strict";var l=n(93755),f=n(53164),v=n(68376),g=n(46220),y=n(30600),T=n(21812),x=n(22171),b=x("iterator"),C=g.values,A=function(P,M){if(P){if(P[b]!==C)try{y(P,b,C)}catch(w){P[b]=C}if(T(P,M,!0),f[M]){for(var I in g)if(P[I]!==g[I])try{y(P,I,g[I])}catch(w){P[I]=g[I]}}}};for(var R in f)A(l[R]&&l[R].prototype,R);A(v,"DOMTokenList")},63754:function(d,S,n){"use strict";n.r(S),n.d(S,{AElement:function(){return un},AnimateColorElement:function(){return en},AnimateElement:function(){return qe},AnimateTransformElement:function(){return rn},BoundingBox:function(){return kt},CB1:function(){return hr},CB2:function(){return fr},CB3:function(){return cr},CB4:function(){return vr},Canvg:function(){return Ne},CircleElement:function(){return Xr},ClipPathElement:function(){return pn},DefsElement:function(){return Jr},DescElement:function(){return On},Document:function(){return ue},Element:function(){return Ct},EllipseElement:function(){return Wr},FeColorMatrixElement:function(){return br},FeCompositeElement:function(){return xn},FeDropShadowElement:function(){return yn},FeGaussianBlurElement:function(){return En},FeMorphologyElement:function(){return mn},FilterElement:function(){return We},Font:function(){return zt},FontElement:function(){return nn},FontFaceElement:function(){return an},GElement:function(){return Je},GlyphElement:function(){return xr},GradientElement:function(){return Or},ImageElement:function(){return fn},LineElement:function(){return Qr},LinearGradientElement:function(){return qr},MarkerElement:function(){return kr},MaskElement:function(){return Xe},Matrix:function(){return yr},MissingGlyphElement:function(){return sn},Mouse:function(){return Br},PSEUDO_ZERO:function(){return ae},Parser:function(){return ke},PathElement:function(){return xt},PathParser:function(){return it},PatternElement:function(){return Kr},Point:function(){return Rt},PolygonElement:function(){return Zr},PolylineElement:function(){return Tr},Property:function(){return q},QB1:function(){return gr},QB2:function(){return dr},QB3:function(){return pr},RadialGradientElement:function(){return _r},RectElement:function(){return Er},RenderedElement:function(){return Oe},Rotate:function(){return Gr},SVGElement:function(){return Be},SVGFontLoader:function(){return vn},Scale:function(){return zr},Screen:function(){return He},Skew:function(){return mr},SkewX:function(){return $r},SkewY:function(){return Hr},StopElement:function(){return tn},StyleElement:function(){return Sr},SymbolElement:function(){return cn},TRefElement:function(){return on},TSpanElement:function(){return Ye},TextElement:function(){return se},TextPathElement:function(){return hn},TitleElement:function(){return Tn},Transform:function(){return Te},Translate:function(){return jr},UnknownElement:function(){return Yr},UseElement:function(){return gn},ViewPort:function(){return Lr},compressSpaces:function(){return Kt},default:function(){return Ne},getSelectorSpecificity:function(){return $e},normalizeAttributeName:function(){return De},normalizeColor:function(){return nt},parseExternalUrl:function(){return W},presets:function(){return pe},toNumbers:function(){return It},trimLeft:function(){return ze},trimRight:function(){return Ze},vectorMagnitude:function(){return ur},vectorsAngle:function(){return lr},vectorsRatio:function(){return Ke}});var l=n(91597),f=n(11576),v=n(8474),g=n(86914),y=n(5542),T=n(46220),x=n(50610),b=n(18642),C=n(79075),A=n(30303),R=n(95265),P=n(32772),M=n(59483),I=n(45810),w=n(1261),F=n(80027),Y=n(36342);var j=function(h,t){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(h,t)};function B(h,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=h}j(h,t),h.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function $(h){var t="";Array.isArray(h)||(h=[h]);for(var e=0;e<h.length;e++){var r=h[e];if(r.type===N.CLOSE_PATH)t+="z";else if(r.type===N.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===N.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===N.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===N.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===N.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===N.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===N.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===N.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==N.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function X(h,t){var e=h[0],r=h[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Q(){for(var h=[],t=0;t<arguments.length;t++)h[t]=arguments[t];for(var e=0;e<h.length;e++)if(typeof h[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof h[e]+" == typeof "+h[e]);return!0}var _=Math.PI;function k(h,t,e){h.lArcFlag=h.lArcFlag===0?0:1,h.sweepFlag=h.sweepFlag===0?0:1;var r=h.rX,i=h.rY,a=h.x,o=h.y;r=Math.abs(h.rX),i=Math.abs(h.rY);var s=X([(t-a)/2,(e-o)/2],-h.xRot/180*_),u=s[0],c=s[1],p=Math.pow(u,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(i,2);1<p&&(r*=Math.sqrt(p),i*=Math.sqrt(p)),h.rX=r,h.rY=i;var E=Math.pow(r,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(u,2),O=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-E)/E)),m=r*c/i*O,D=-i*u/r*O,V=X([m,D],h.xRot/180*_);h.cX=V[0]+(t+a)/2,h.cY=V[1]+(e+o)/2,h.phi1=Math.atan2((c-D)/i,(u-m)/r),h.phi2=Math.atan2((-c-D)/i,(-u-m)/r),h.sweepFlag===0&&h.phi2>h.phi1&&(h.phi2-=2*_),h.sweepFlag===1&&h.phi2<h.phi1&&(h.phi2+=2*_),h.phi1*=180/_,h.phi2*=180/_}function lt(h,t,e){Q(h,t,e);var r=h*h+t*t-e*e;if(0>r)return[];if(r===0)return[[h*e/(h*h+t*t),t*e/(h*h+t*t)]];var i=Math.sqrt(r);return[[(h*e+t*i)/(h*h+t*t),(t*e-h*i)/(h*h+t*t)],[(h*e-t*i)/(h*h+t*t),(t*e+h*i)/(h*h+t*t)]]}var tt,et=Math.PI/180;function st(h,t,e){return(1-e)*h+e*t}function ot(h,t,e,r){return h+Math.cos(r/180*_)*t+Math.sin(r/180*_)*e}function yt(h,t,e,r){var i=1e-6,a=t-h,o=e-t,s=3*a+3*(r-e)-6*o,u=6*(o-a),c=3*a;return Math.abs(s)<i?[-c/u]:function(p,E,O){O===void 0&&(O=1e-6);var m=p*p/4-E;if(m<-O)return[];if(m<=O)return[-p/2];var D=Math.sqrt(m);return[-p/2-D,-p/2+D]}(u/s,c/s,i)}function Z(h,t,e,r,i){var a=1-i;return h*(a*a*a)+t*(3*a*a*i)+e*(3*a*i*i)+r*(i*i*i)}(function(h){function t(){return i(function(s,u,c){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=c),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=c),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=c),s.relative=!1),s})}function e(){var s=NaN,u=NaN,c=NaN,p=NaN;return i(function(E,O,m){return E.type&N.SMOOTH_CURVE_TO&&(E.type=N.CURVE_TO,s=isNaN(s)?O:s,u=isNaN(u)?m:u,E.x1=E.relative?O-s:2*O-s,E.y1=E.relative?m-u:2*m-u),E.type&N.CURVE_TO?(s=E.relative?O+E.x2:E.x2,u=E.relative?m+E.y2:E.y2):(s=NaN,u=NaN),E.type&N.SMOOTH_QUAD_TO&&(E.type=N.QUAD_TO,c=isNaN(c)?O:c,p=isNaN(p)?m:p,E.x1=E.relative?O-c:2*O-c,E.y1=E.relative?m-p:2*m-p),E.type&N.QUAD_TO?(c=E.relative?O+E.x1:E.x1,p=E.relative?m+E.y1:E.y1):(c=NaN,p=NaN),E})}function r(){var s=NaN,u=NaN;return i(function(c,p,E){if(c.type&N.SMOOTH_QUAD_TO&&(c.type=N.QUAD_TO,s=isNaN(s)?p:s,u=isNaN(u)?E:u,c.x1=c.relative?p-s:2*p-s,c.y1=c.relative?E-u:2*E-u),c.type&N.QUAD_TO){s=c.relative?p+c.x1:c.x1,u=c.relative?E+c.y1:c.y1;var O=c.x1,m=c.y1;c.type=N.CURVE_TO,c.x1=((c.relative?0:p)+2*O)/3,c.y1=((c.relative?0:E)+2*m)/3,c.x2=(c.x+2*O)/3,c.y2=(c.y+2*m)/3}else s=NaN,u=NaN;return c})}function i(s){var u=0,c=0,p=NaN,E=NaN;return function(O){if(isNaN(p)&&!(O.type&N.MOVE_TO))throw new Error("path must start with moveto");var m=s(O,u,c,p,E);return O.type&N.CLOSE_PATH&&(u=p,c=E),O.x!==void 0&&(u=O.relative?u+O.x:O.x),O.y!==void 0&&(c=O.relative?c+O.y:O.y),O.type&N.MOVE_TO&&(p=u,E=c),m}}function a(s,u,c,p,E,O){return Q(s,u,c,p,E,O),i(function(m,D,V,L){var U=m.x1,K=m.x2,G=m.relative&&!isNaN(L),z=m.x!==void 0?m.x:G?0:D,rt=m.y!==void 0?m.y:G?0:V;function at(Gt){return Gt*Gt}m.type&N.HORIZ_LINE_TO&&u!==0&&(m.type=N.LINE_TO,m.y=m.relative?0:V),m.type&N.VERT_LINE_TO&&c!==0&&(m.type=N.LINE_TO,m.x=m.relative?0:D),m.x!==void 0&&(m.x=m.x*s+rt*c+(G?0:E)),m.y!==void 0&&(m.y=z*u+m.y*p+(G?0:O)),m.x1!==void 0&&(m.x1=m.x1*s+m.y1*c+(G?0:E)),m.y1!==void 0&&(m.y1=U*u+m.y1*p+(G?0:O)),m.x2!==void 0&&(m.x2=m.x2*s+m.y2*c+(G?0:E)),m.y2!==void 0&&(m.y2=K*u+m.y2*p+(G?0:O));var H=s*p-u*c;if(m.xRot!==void 0&&(s!==1||u!==0||c!==0||p!==1))if(H===0)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=N.LINE_TO;else{var ct=m.xRot*Math.PI/180,vt=Math.sin(ct),pt=Math.cos(ct),St=1/at(m.rX),Tt=1/at(m.rY),Lt=at(pt)*St+at(vt)*Tt,Bt=2*vt*pt*(St-Tt),Pt=at(vt)*St+at(pt)*Tt,Mt=Lt*p*p-Bt*u*p+Pt*u*u,Nt=Bt*(s*p+u*c)-2*(Lt*c*p+Pt*s*u),jt=Lt*c*c-Bt*s*c+Pt*s*s,Et=(Math.atan2(Nt,Mt-jt)+Math.PI)%Math.PI/2,Ot=Math.sin(Et),Ft=Math.cos(Et);m.rX=Math.abs(H)/Math.sqrt(Mt*at(Ft)+Nt*Ot*Ft+jt*at(Ot)),m.rY=Math.abs(H)/Math.sqrt(Mt*at(Ot)-Nt*Ot*Ft+jt*at(Ft)),m.xRot=180*Et/Math.PI}return m.sweepFlag!==void 0&&0>H&&(m.sweepFlag=+!m.sweepFlag),m})}function o(){return function(s){var u={};for(var c in s)u[c]=s[c];return u}}h.ROUND=function(s){function u(c){return Math.round(c*s)/s}return s===void 0&&(s=1e13),Q(s),function(c){return c.x1!==void 0&&(c.x1=u(c.x1)),c.y1!==void 0&&(c.y1=u(c.y1)),c.x2!==void 0&&(c.x2=u(c.x2)),c.y2!==void 0&&(c.y2=u(c.y2)),c.x!==void 0&&(c.x=u(c.x)),c.y!==void 0&&(c.y=u(c.y)),c.rX!==void 0&&(c.rX=u(c.rX)),c.rY!==void 0&&(c.rY=u(c.rY)),c}},h.TO_ABS=t,h.TO_REL=function(){return i(function(s,u,c){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=c),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=c),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=c),s.relative=!0),s})},h.NORMALIZE_HVZ=function(s,u,c){return s===void 0&&(s=!0),u===void 0&&(u=!0),c===void 0&&(c=!0),i(function(p,E,O,m,D){if(isNaN(m)&&!(p.type&N.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&N.HORIZ_LINE_TO&&(p.type=N.LINE_TO,p.y=p.relative?0:O),c&&p.type&N.VERT_LINE_TO&&(p.type=N.LINE_TO,p.x=p.relative?0:E),s&&p.type&N.CLOSE_PATH&&(p.type=N.LINE_TO,p.x=p.relative?m-E:m,p.y=p.relative?D-O:D),p.type&N.ARC&&(p.rX===0||p.rY===0)&&(p.type=N.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},h.NORMALIZE_ST=e,h.QT_TO_C=r,h.INFO=i,h.SANITIZE=function(s){s===void 0&&(s=0),Q(s);var u=NaN,c=NaN,p=NaN,E=NaN;return i(function(O,m,D,V,L){var U=Math.abs,K=!1,G=0,z=0;if(O.type&N.SMOOTH_CURVE_TO&&(G=isNaN(u)?0:m-u,z=isNaN(c)?0:D-c),O.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(u=O.relative?m+O.x2:O.x2,c=O.relative?D+O.y2:O.y2):(u=NaN,c=NaN),O.type&N.SMOOTH_QUAD_TO?(p=isNaN(p)?m:2*m-p,E=isNaN(E)?D:2*D-E):O.type&N.QUAD_TO?(p=O.relative?m+O.x1:O.x1,E=O.relative?D+O.y1:O.y2):(p=NaN,E=NaN),O.type&N.LINE_COMMANDS||O.type&N.ARC&&(O.rX===0||O.rY===0||!O.lArcFlag)||O.type&N.CURVE_TO||O.type&N.SMOOTH_CURVE_TO||O.type&N.QUAD_TO||O.type&N.SMOOTH_QUAD_TO){var rt=O.x===void 0?0:O.relative?O.x:O.x-m,at=O.y===void 0?0:O.relative?O.y:O.y-D;G=isNaN(p)?O.x1===void 0?G:O.relative?O.x:O.x1-m:p-m,z=isNaN(E)?O.y1===void 0?z:O.relative?O.y:O.y1-D:E-D;var H=O.x2===void 0?0:O.relative?O.x:O.x2-m,ct=O.y2===void 0?0:O.relative?O.y:O.y2-D;U(rt)<=s&&U(at)<=s&&U(G)<=s&&U(z)<=s&&U(H)<=s&&U(ct)<=s&&(K=!0)}return O.type&N.CLOSE_PATH&&U(m-V)<=s&&U(D-L)<=s&&(K=!0),K?[]:O})},h.MATRIX=a,h.ROTATE=function(s,u,c){u===void 0&&(u=0),c===void 0&&(c=0),Q(s,u,c);var p=Math.sin(s),E=Math.cos(s);return a(E,p,-p,E,u-u*E+c*p,c-u*p-c*E)},h.TRANSLATE=function(s,u){return u===void 0&&(u=0),Q(s,u),a(1,0,0,1,s,u)},h.SCALE=function(s,u){return u===void 0&&(u=s),Q(s,u),a(s,0,0,u,0,0)},h.SKEW_X=function(s){return Q(s),a(1,0,Math.atan(s),1,0,0)},h.SKEW_Y=function(s){return Q(s),a(1,Math.atan(s),0,1,0,0)},h.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Q(s),a(-1,0,0,1,s,0)},h.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),Q(s),a(1,0,0,-1,0,s)},h.A_TO_C=function(){return i(function(s,u,c){return N.ARC===s.type?function(p,E,O){var m,D,V,L;p.cX||k(p,E,O);for(var U=Math.min(p.phi1,p.phi2),K=Math.max(p.phi1,p.phi2)-U,G=Math.ceil(K/90),z=new Array(G),rt=E,at=O,H=0;H<G;H++){var ct=st(p.phi1,p.phi2,H/G),vt=st(p.phi1,p.phi2,(H+1)/G),pt=vt-ct,St=4/3*Math.tan(pt*et/4),Tt=[Math.cos(ct*et)-St*Math.sin(ct*et),Math.sin(ct*et)+St*Math.cos(ct*et)],Lt=Tt[0],Bt=Tt[1],Pt=[Math.cos(vt*et),Math.sin(vt*et)],Mt=Pt[0],Nt=Pt[1],jt=[Mt+St*Math.sin(vt*et),Nt-St*Math.cos(vt*et)],Et=jt[0],Ot=jt[1];z[H]={relative:p.relative,type:N.CURVE_TO};var Ft=function(Gt,Ht){var $t=X([Gt*p.rX,Ht*p.rY],p.xRot),Yt=$t[0],Jt=$t[1];return[p.cX+Yt,p.cY+Jt]};m=Ft(Lt,Bt),z[H].x1=m[0],z[H].y1=m[1],D=Ft(Et,Ot),z[H].x2=D[0],z[H].y2=D[1],V=Ft(Mt,Nt),z[H].x=V[0],z[H].y=V[1],p.relative&&(z[H].x1-=rt,z[H].y1-=at,z[H].x2-=rt,z[H].y2-=at,z[H].x-=rt,z[H].y-=at),rt=(L=[z[H].x,z[H].y])[0],at=L[1]}return z}(s,s.relative?0:u,s.relative?0:c):s})},h.ANNOTATE_ARCS=function(){return i(function(s,u,c){return s.relative&&(u=0,c=0),N.ARC===s.type&&k(s,u,c),s})},h.CLONE=o,h.CALCULATE_BOUNDS=function(){var s=function(O){var m={};for(var D in O)m[D]=O[D];return m},u=t(),c=r(),p=e(),E=i(function(O,m,D){var V=p(c(u(s(O))));function L(Ot){Ot>E.maxX&&(E.maxX=Ot),Ot<E.minX&&(E.minX=Ot)}function U(Ot){Ot>E.maxY&&(E.maxY=Ot),Ot<E.minY&&(E.minY=Ot)}if(V.type&N.DRAWING_COMMANDS&&(L(m),U(D)),V.type&N.HORIZ_LINE_TO&&L(V.x),V.type&N.VERT_LINE_TO&&U(V.y),V.type&N.LINE_TO&&(L(V.x),U(V.y)),V.type&N.CURVE_TO){L(V.x),U(V.y);for(var K=0,G=yt(m,V.x1,V.x2,V.x);K<G.length;K++)0<(Et=G[K])&&1>Et&&L(Z(m,V.x1,V.x2,V.x,Et));for(var z=0,rt=yt(D,V.y1,V.y2,V.y);z<rt.length;z++)0<(Et=rt[z])&&1>Et&&U(Z(D,V.y1,V.y2,V.y,Et))}if(V.type&N.ARC){L(V.x),U(V.y),k(V,m,D);for(var at=V.xRot/180*Math.PI,H=Math.cos(at)*V.rX,ct=Math.sin(at)*V.rX,vt=-Math.sin(at)*V.rY,pt=Math.cos(at)*V.rY,St=V.phi1<V.phi2?[V.phi1,V.phi2]:-180>V.phi2?[V.phi2+360,V.phi1+360]:[V.phi2,V.phi1],Tt=St[0],Lt=St[1],Bt=function(Ot){var Ft=Ot[0],Gt=Ot[1],Ht=180*Math.atan2(Gt,Ft)/Math.PI;return Ht<Tt?Ht+360:Ht},Pt=0,Mt=lt(vt,-H,0).map(Bt);Pt<Mt.length;Pt++)(Et=Mt[Pt])>Tt&&Et<Lt&&L(ot(V.cX,H,vt,Et));for(var Nt=0,jt=lt(pt,-ct,0).map(Bt);Nt<jt.length;Nt++){var Et;(Et=jt[Nt])>Tt&&Et<Lt&&U(ot(V.cY,ct,pt,Et))}}return O});return E.minX=1/0,E.maxX=-1/0,E.minY=1/0,E.maxY=-1/0,E}})(tt||(tt={}));var J,wt=function(){function h(){}return h.prototype.round=function(t){return this.transform(tt.ROUND(t))},h.prototype.toAbs=function(){return this.transform(tt.TO_ABS())},h.prototype.toRel=function(){return this.transform(tt.TO_REL())},h.prototype.normalizeHVZ=function(t,e,r){return this.transform(tt.NORMALIZE_HVZ(t,e,r))},h.prototype.normalizeST=function(){return this.transform(tt.NORMALIZE_ST())},h.prototype.qtToC=function(){return this.transform(tt.QT_TO_C())},h.prototype.aToC=function(){return this.transform(tt.A_TO_C())},h.prototype.sanitize=function(t){return this.transform(tt.SANITIZE(t))},h.prototype.translate=function(t,e){return this.transform(tt.TRANSLATE(t,e))},h.prototype.scale=function(t,e){return this.transform(tt.SCALE(t,e))},h.prototype.rotate=function(t,e,r){return this.transform(tt.ROTATE(t,e,r))},h.prototype.matrix=function(t,e,r,i,a,o){return this.transform(tt.MATRIX(t,e,r,i,a,o))},h.prototype.skewX=function(t){return this.transform(tt.SKEW_X(t))},h.prototype.skewY=function(t){return this.transform(tt.SKEW_Y(t))},h.prototype.xSymmetry=function(t){return this.transform(tt.X_AXIS_SYMMETRY(t))},h.prototype.ySymmetry=function(t){return this.transform(tt.Y_AXIS_SYMMETRY(t))},h.prototype.annotateArcs=function(){return this.transform(tt.ANNOTATE_ARCS())},h}(),mt=function(h){return h===" "||h===" "||h==="\r"||h===`
`},ut=function(h){return 48<=h.charCodeAt(0)&&h.charCodeAt(0)<=57},ht=function(h){function t(){var e=h.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return B(t,h),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var i=this;r===void 0&&(r=[]);for(var a=function(E){r.push(E),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],u=!(this.curCommandType!==N.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),c=ut(s)&&(this.curNumber==="0"&&s==="0"||u);if(!ut(s)||c)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var p=Number(this.curNumber);if(isNaN(p))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===N.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>p)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}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 "'+o+'"')}this.curArgs.push(p),this.curArgs.length===ft[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?a({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):N.VERT_LINE_TO===this.curCommandType?a({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?a({type:N.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===N.SMOOTH_CURVE_TO?a({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?a({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&a({type:N.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!mt(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(c)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=N.ARC,this.curCommandRelative=s==="a"}else r.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(r,i){i===void 0&&(i=[]);for(var a=0,o=Object.getPrototypeOf(this).parse.call(this,r);a<o.length;a++){var s=o[a],u=e(s);Array.isArray(u)?i.push.apply(i,u):i.push(u)}return i}}})},t}(wt),N=function(h){function t(e){var r=h.call(this)||this;return r.commands=typeof e=="string"?t.parse(e):e,r}return B(t,h),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=tt.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],i=0,a=this.commands;i<a.length;i++){var o=e(a[i]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},t.encode=function(e){return $(e)},t.parse=function(e){var r=new ht,i=[];return r.parse(e,i),r.finish(i),i},t.CLOSE_PATH=1,t.MOVE_TO=2,t.HORIZ_LINE_TO=4,t.VERT_LINE_TO=8,t.LINE_TO=16,t.CURVE_TO=32,t.SMOOTH_CURVE_TO=64,t.QUAD_TO=128,t.SMOOTH_QUAD_TO=256,t.ARC=512,t.LINE_COMMANDS=t.LINE_TO|t.HORIZ_LINE_TO|t.VERT_LINE_TO,t.DRAWING_COMMANDS=t.HORIZ_LINE_TO|t.VERT_LINE_TO|t.LINE_TO|t.CURVE_TO|t.SMOOTH_CURVE_TO|t.QUAD_TO|t.SMOOTH_QUAD_TO|t.ARC,t}(wt),ft=((J={})[N.MOVE_TO]=2,J[N.LINE_TO]=2,J[N.HORIZ_LINE_TO]=1,J[N.VERT_LINE_TO]=1,J[N.CLOSE_PATH]=0,J[N.QUAD_TO]=4,J[N.SMOOTH_QUAD_TO]=2,J[N.CURVE_TO]=6,J[N.SMOOTH_CURVE_TO]=4,J[N.ARC]=7,J),Ut=n(57815);function At(h){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?At=function(t){return typeof t}:At=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(h)}function Vt(h,t){if(!(h instanceof t))throw new TypeError("Cannot call a class as a function")}var qt=[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],ie=[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 Qt(h,t,e,r,i,a){if(typeof h=="string"&&(h=document.getElementById(h)),!(!h||Object.prototype.toString.call(h).slice(8,-1)==="HTMLImageElement"&&!("naturalWidth"in h))){var o=i?"offset":"natural",s=h[o+"Width"],u=h[o+"Height"];if(Object.prototype.toString.call(h).slice(8,-1)==="ImageBitmap"&&(s=h.width,u=h.height),typeof t=="string"&&(t=document.getElementById(t)),!(!t||!("getContext"in t))){a||(t.style.width=s+"px",t.style.height=u+"px"),t.width=s,t.height=u;var c=t.getContext("2d");c.clearRect(0,0,s,u),c.drawImage(h,0,0,h.naturalWidth,h.naturalHeight,0,0,s,u),!(isNaN(e)||e<1)&&(r?he(t,0,0,s,u,e):fe(t,0,0,s,u,e))}}}function le(h,t,e,r,i){if(typeof h=="string"&&(h=document.getElementById(h)),!h||At(h)!=="object"||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var a=h.getContext("2d");try{return a.getImageData(t,e,r,i)}catch(o){throw new Error("unable to access image data: "+o)}}function he(h,t,e,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=le(h,t,e,r,i);o=_t(o,t,e,r,i,a),h.getContext("2d").putImageData(o,t,e)}}function _t(h,t,e,r,i,a){for(var o=h.data,s=2*a+1,u=r-1,c=i-1,p=a+1,E=p*(p+1)/2,O=new Zt,m=O,D,V=1;V<s;V++)m=m.next=new Zt,V===p&&(D=m);m.next=O;for(var L=null,U=null,K=0,G=0,z=qt[a],rt=ie[a],at=0;at<i;at++){m=O;for(var H=o[G],ct=o[G+1],vt=o[G+2],pt=o[G+3],St=0;St<p;St++)m.r=H,m.g=ct,m.b=vt,m.a=pt,m=m.next;for(var Tt=0,Lt=0,Bt=0,Pt=0,Mt=p*H,Nt=p*ct,jt=p*vt,Et=p*pt,Ot=E*H,Ft=E*ct,Gt=E*vt,Ht=E*pt,$t=1;$t<p;$t++){var Yt=G+((u<$t?u:$t)<<2),Jt=o[Yt],ee=o[Yt+1],Fe=o[Yt+2],Ue=o[Yt+3],Se=p-$t;Ot+=(m.r=Jt)*Se,Ft+=(m.g=ee)*Se,Gt+=(m.b=Fe)*Se,Ht+=(m.a=Ue)*Se,Tt+=Jt,Lt+=ee,Bt+=Fe,Pt+=Ue,m=m.next}L=O,U=D;for(var be=0;be<r;be++){var Ce=Ht*z>>>rt;if(o[G+3]=Ce,Ce!==0){var Ae=255/Ce;o[G]=(Ot*z>>>rt)*Ae,o[G+1]=(Ft*z>>>rt)*Ae,o[G+2]=(Gt*z>>>rt)*Ae}else o[G]=o[G+1]=o[G+2]=0;Ot-=Mt,Ft-=Nt,Gt-=jt,Ht-=Et,Mt-=L.r,Nt-=L.g,jt-=L.b,Et-=L.a;var re=be+a+1;re=K+(re<u?re:u)<<2,Tt+=L.r=o[re],Lt+=L.g=o[re+1],Bt+=L.b=o[re+2],Pt+=L.a=o[re+3],Ot+=Tt,Ft+=Lt,Gt+=Bt,Ht+=Pt,L=L.next;var Pe=U,je=Pe.r,Ge=Pe.g,Ie=Pe.b,Qe=Pe.a;Mt+=je,Nt+=Ge,jt+=Ie,Et+=Qe,Tt-=je,Lt-=Ge,Bt-=Ie,Pt-=Qe,U=U.next,G+=4}K+=r}for(var ne=0;ne<r;ne++){G=ne<<2;var Me=o[G],we=o[G+1],Ve=o[G+2],Xt=o[G+3],Ar=p*Me,Pr=p*we,Rr=p*Ve,Nr=p*Xt,rr=E*Me,nr=E*we,ir=E*Ve,ar=E*Xt;m=O;for(var Cn=0;Cn<p;Cn++)m.r=Me,m.g=we,m.b=Ve,m.a=Xt,m=m.next;for(var An=r,Ir=0,Mr=0,wr=0,Vr=0,sr=1;sr<=a;sr++){G=An+ne<<2;var or=p-sr;rr+=(m.r=Me=o[G])*or,nr+=(m.g=we=o[G+1])*or,ir+=(m.b=Ve=o[G+2])*or,ar+=(m.a=Xt=o[G+3])*or,Vr+=Me,Ir+=we,Mr+=Ve,wr+=Xt,m=m.next,sr<c&&(An+=r)}G=ne,L=O,U=D;for(var Dr=0;Dr<i;Dr++){var Wt=G<<2;o[Wt+3]=Xt=ar*z>>>rt,Xt>0?(Xt=255/Xt,o[Wt]=(rr*z>>>rt)*Xt,o[Wt+1]=(nr*z>>>rt)*Xt,o[Wt+2]=(ir*z>>>rt)*Xt):o[Wt]=o[Wt+1]=o[Wt+2]=0,rr-=Ar,nr-=Pr,ir-=Rr,ar-=Nr,Ar-=L.r,Pr-=L.g,Rr-=L.b,Nr-=L.a,Wt=ne+((Wt=Dr+p)<c?Wt:c)*r<<2,rr+=Vr+=L.r=o[Wt],nr+=Ir+=L.g=o[Wt+1],ir+=Mr+=L.b=o[Wt+2],ar+=wr+=L.a=o[Wt+3],L=L.next,Ar+=Me=U.r,Pr+=we=U.g,Rr+=Ve=U.b,Nr+=Xt=U.a,Vr-=Me,Ir-=we,Mr-=Ve,wr-=Xt,U=U.next,G+=r}}return h}function fe(h,t,e,r,i,a){if(!(isNaN(a)||a<1)){a|=0;var o=le(h,t,e,r,i);o=ce(o,t,e,r,i,a),h.getContext("2d").putImageData(o,t,e)}}function ce(h,t,e,r,i,a){for(var o=h.data,s=2*a+1,u=r-1,c=i-1,p=a+1,E=p*(p+1)/2,O=new Zt,m=O,D,V=1;V<s;V++)m=m.next=new Zt,V===p&&(D=m);m.next=O;for(var L=null,U=null,K=qt[a],G=ie[a],z,rt,at=0,H=0,ct=0;ct<i;ct++){var vt=o[H],pt=o[H+1],St=o[H+2],Tt=p*vt,Lt=p*pt,Bt=p*St,Pt=E*vt,Mt=E*pt,Nt=E*St;m=O;for(var jt=0;jt<p;jt++)m.r=vt,m.g=pt,m.b=St,m=m.next;for(var Et=0,Ot=0,Ft=0,Gt=1;Gt<p;Gt++)z=H+((u<Gt?u:Gt)<<2),Pt+=(m.r=vt=o[z])*(rt=p-Gt),Mt+=(m.g=pt=o[z+1])*rt,Nt+=(m.b=St=o[z+2])*rt,Et+=vt,Ot+=pt,Ft+=St,m=m.next;L=O,U=D;for(var Ht=0;Ht<r;Ht++)o[H]=Pt*K>>>G,o[H+1]=Mt*K>>>G,o[H+2]=Nt*K>>>G,Pt-=Tt,Mt-=Lt,Nt-=Bt,Tt-=L.r,Lt-=L.g,Bt-=L.b,z=at+((z=Ht+a+1)<u?z:u)<<2,Et+=L.r=o[z],Ot+=L.g=o[z+1],Ft+=L.b=o[z+2],Pt+=Et,Mt+=Ot,Nt+=Ft,L=L.next,Tt+=vt=U.r,Lt+=pt=U.g,Bt+=St=U.b,Et-=vt,Ot-=pt,Ft-=St,U=U.next,H+=4;at+=r}for(var $t=0;$t<r;$t++){H=$t<<2;var Yt=o[H],Jt=o[H+1],ee=o[H+2],Fe=p*Yt,Ue=p*Jt,Se=p*ee,be=E*Yt,Ce=E*Jt,Ae=E*ee;m=O;for(var re=0;re<p;re++)m.r=Yt,m.g=Jt,m.b=ee,m=m.next;for(var Pe=0,je=0,Ge=0,Ie=1,Qe=r;Ie<=a;Ie++)H=Qe+$t<<2,be+=(m.r=Yt=o[H])*(rt=p-Ie),Ce+=(m.g=Jt=o[H+1])*rt,Ae+=(m.b=ee=o[H+2])*rt,Pe+=Yt,je+=Jt,Ge+=ee,m=m.next,Ie<c&&(Qe+=r);H=$t,L=O,U=D;for(var ne=0;ne<i;ne++)z=H<<2,o[z]=be*K>>>G,o[z+1]=Ce*K>>>G,o[z+2]=Ae*K>>>G,be-=Fe,Ce-=Ue,Ae-=Se,Fe-=L.r,Ue-=L.g,Se-=L.b,z=$t+((z=ne+p)<c?z:c)*r<<2,be+=Pe+=L.r=o[z],Ce+=je+=L.g=o[z+1],Ae+=Ge+=L.b=o[z+2],L=L.next,Fe+=Yt=U.r,Ue+=Jt=U.g,Se+=ee=U.b,Pe-=Yt,je-=Jt,Ge-=ee,U=U.next,H+=r}return h}var Zt=function h(){Vt(this,h),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},ve=n(97671);function ge(){var{DOMParser:h}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:h,createCanvas(e,r){return new OffscreenCanvas(e,r)},createImage(e){return(0,f.Z)(function*(){var r=yield fetch(e),i=yield r.blob(),a=yield createImageBitmap(i);return a})()}};return(typeof DOMParser!="undefined"||typeof h=="undefined")&&Reflect.deleteProperty(t,"DOMParser"),t}function de(h){var{DOMParser:t,canvas:e,fetch:r}=h;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}var pe=Object.freeze({__proto__:null,offscreen:ge,node:de});function Kt(h){return h.replace(/(?!\u3000)\s+/gm," ")}function ze(h){return h.replace(/^[\n \t]+/,"")}function Ze(h){return h.replace(/[\n \t]+$/,"")}function It(h){var t=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return t.map(parseFloat)}var ye=/^[A-Z-]+$/;function De(h){return ye.test(h)?h.toLowerCase():h}function W(h){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return t[2]||t[3]||t[4]}function nt(h){if(!h.startsWith("rgb"))return h;var t=3,e=h.replace(/\d+(\.\d+)?/g,(r,i)=>t--&&i?String(Math.round(parseFloat(r))):r);return e}var gt=/(\[[^\]]+\])/g,dt=/(#[^\s+>~.[:]+)/g,bt=/(\.[^\s+>~.[:]+)/g,me=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,Le=/(:[\w-]+\([^)]*\))/gi,xe=/(:[^\s+>~.[:]+)/g,Ee=/([^\s+>~.[:]+)/g;function te(h,t){var e=t.exec(h);return e?[h.replace(t," "),e.length]:[h,0]}function $e(h){var t=[0,0,0],e=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=te(e,gt),t[1]+=r,[e,r]=te(e,dt),t[0]+=r,[e,r]=te(e,bt),t[1]+=r,[e,r]=te(e,me),t[2]+=r,[e,r]=te(e,Le),t[1]+=r,[e,r]=te(e,xe),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=te(e,Ee),t[2]+=r,t.join("")}var ae=1e-8;function ur(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function Ke(h,t){return(h[0]*t[0]+h[1]*t[1])/(ur(h)*ur(t))}function lr(h,t){return(h[0]*t[1]<h[1]*t[0]?-1:1)*Math.acos(Ke(h,t))}function hr(h){return h*h*h}function fr(h){return 3*h*h*(1-h)}function cr(h){return 3*h*(1-h)*(1-h)}function vr(h){return(1-h)*(1-h)*(1-h)}function gr(h){return h*h}function dr(h){return 2*h*(1-h)}function pr(h){return(1-h)*(1-h)}class q{constructor(t,e,r){this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}static empty(t){return new q(t,"EMPTY","")}split(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:e,name:r}=this;return Kt(this.getString()).trim().split(t).map(i=>new q(e,r,i))}hasValue(t){var{value:e}=this;return e!==null&&e!==""&&(t||e!==0)&&typeof e!="undefined"}isString(t){var{value:e}=this,r=typeof e=="string";return!r||!t?r:t.test(e)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return typeof t=="undefined"||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return typeof t=="undefined"?0:parseFloat(t);var{value:e}=this,r=parseFloat(e);return this.isString(/%$/)&&(r/=100),r}getString(t){return typeof t=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(t)}getColor(t){var e=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,e=nt(e),this.value=e),e}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,i]=typeof t=="boolean"?[void 0,t]:[t],{viewPort:a}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(a.computeSize("x"),a.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(a.computeSize("x"),a.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*a.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*a.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*a.computeSize(r);default:{var o=this.getNumber();return e&&o<1?o*a.computeSize(r):o}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){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)}}getDefinition(){var t=this.getString(),e=/#([^)'"]+)/.exec(t);return e&&(e=e[1]),e||(e=t),this.document.definitions[e]}getFillStyleDefinition(t,e){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,t,e);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var i=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&r.getAttribute("patternTransform",!0).setValue(i.value)}return r.createPattern(this.document.ctx,t,e)}return null}getTextBaseline(){return this.hasValue()?q.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var e=this.getColor(),r=e.length,i=0,a=0;a<r&&(e[a]===","&&i++,i!==3);a++);if(t.hasValue()&&this.isString()&&i!==3){var o=new I(e);o.ok&&(o.alpha=t.getNumber(),e=o.toRGBA())}return new q(this.document,this.name,e)}}q.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"};class Lr{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,e){this.viewPorts.push({width:t,height:e})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return typeof t=="number"?t:t==="x"?this.width:t==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Rt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=e,i=e]=It(t);return new Rt(r,i)}static parseScale(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=e,i=r]=It(t);return new Rt(r,i)}static parsePath(t){for(var e=It(t),r=e.length,i=[],a=0;a<r;a+=2)i.push(new Rt(e[a],e[a+1]));return i}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[0]+r*t[2]+t[4],a=e*t[1]+r*t[3]+t[5];this.x=i,this.y=a}}class Br{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:e,onMouseMove:r}=this,i=t.ctx.canvas;i.onclick=e,i.onmousemove=r,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:e,eventElements:r}=this,{style:i}=t.ctx.canvas;i&&(i.cursor=""),e.forEach((a,o)=>{for(var{run:s}=a,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(!(!this.working||!e)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:u}=a;!i[o]&&e.isPointInPath&&e.isPointInPath(s,u)&&(i[o]=t)})}}checkBoundingBox(t,e){if(!(!this.working||!e)){var{events:r,eventElements:i}=this;r.forEach((a,o)=>{var{x:s,y:u}=a;!i[o]&&e.isPointInBox(s,u)&&(i[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:i}=this.screen,a=new Rt(t,e),o=i.canvas;o;)a.x-=o.offsetLeft,a.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(a.x+=r.scrollX),r.scrollY&&(a.y+=r.scrollY),a}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(i){i.onClick&&i.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(i){i.onMouseMove&&i.onMouseMove()}})}}var Fr=typeof window!="undefined"?window:null,Ur=typeof fetch!="undefined"?fetch.bind(void 0):null;class He{constructor(t){var{fetch:e=Ur,window:r=Fr}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Lr,this.mouse=new Br(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every(e=>e());return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:e,ctx:r,aspectRatio:i,width:a,desiredWidth:o,height:s,desiredHeight:u,minX:c=0,minY:p=0,refX:E,refY:O,clip:m=!1,clipX:D=0,clipY:V=0}=t,L=Kt(i).replace(/^defer\s/,""),[U,K]=L.split(" "),G=U||"xMidYMid",z=K||"meet",rt=a/o,at=s/u,H=Math.min(rt,at),ct=Math.max(rt,at),vt=o,pt=u;z==="meet"&&(vt*=H,pt*=H),z==="slice"&&(vt*=ct,pt*=ct);var St=new q(e,"refX",E),Tt=new q(e,"refY",O),Lt=St.hasValue()&&Tt.hasValue();if(Lt&&r.translate(-H*St.getPixels("x"),-H*Tt.getPixels("y")),m){var Bt=H*D,Pt=H*V;r.beginPath(),r.moveTo(Bt,Pt),r.lineTo(a,Pt),r.lineTo(a,s),r.lineTo(Bt,s),r.closePath(),r.clip()}if(!Lt){var Mt=z==="meet"&&H===at,Nt=z==="slice"&&ct===at,jt=z==="meet"&&H===rt,Et=z==="slice"&&ct===rt;G.startsWith("xMid")&&(Mt||Nt)&&r.translate(a/2-vt/2,0),G.endsWith("YMid")&&(jt||Et)&&r.translate(0,s/2-pt/2),G.startsWith("xMax")&&(Mt||Nt)&&r.translate(a-vt,0),G.endsWith("YMax")&&(jt||Et)&&r.translate(0,s-pt)}switch(!0){case G==="none":r.scale(rt,at);break;case z==="meet":r.scale(H,H);break;case z==="slice":r.scale(ct,ct);break}r.translate(-c,-p)}start(t){var{enableRedraw:e=!1,ignoreMouse:r=!1,ignoreAnimation:i=!1,ignoreDimensions:a=!1,ignoreClear:o=!1,forceRedraw:s,scaleWidth:u,scaleHeight:c,offsetX:p,offsetY:E}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:O,mouse:m}=this,D=1e3/O;if(this.frameDuration=D,this.readyPromise=new Promise(G=>{this.resolveReady=G}),this.isReady()&&this.render(t,a,o,u,c,p,E),!!e){var V=Date.now(),L=V,U=0,K=()=>{V=Date.now(),U=V-L,U>=D&&(L=V-U%D,this.shouldUpdate(i,s)&&(this.render(t,a,o,u,c,p,E),m.runEvents())),this.intervalId=P(K)};r||m.start(),this.intervalId=P(K)}}stop(){this.intervalId&&(P.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,e){if(!t){var{frameDuration:r}=this,i=this.animations.reduce((a,o)=>o.update(r)||a,!1);if(i)return!0}return!!(typeof e=="function"&&e()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(t,e,r,i,a,o,s){var{CLIENT_WIDTH:u,CLIENT_HEIGHT:c,viewPort:p,ctx:E,isFirstRender:O}=this,m=E.canvas;p.clear(),m.width&&m.height?p.setCurrent(m.width,m.height):p.setCurrent(u,c);var D=t.getStyle("width"),V=t.getStyle("height");!e&&(O||typeof i!="number"&&typeof a!="number")&&(D.hasValue()&&(m.width=D.getPixels("x"),m.style&&(m.style.width="".concat(m.width,"px"))),V.hasValue()&&(m.height=V.getPixels("y"),m.style&&(m.style.height="".concat(m.height,"px"))));var L=m.clientWidth||m.width,U=m.clientHeight||m.height;if(e&&D.hasValue()&&V.hasValue()&&(L=D.getPixels("x"),U=V.getPixels("y")),p.setCurrent(L,U),typeof o=="number"&&t.getAttribute("x",!0).setValue(o),typeof s=="number"&&t.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof a=="number"){var K=It(t.getAttribute("viewBox").getString()),G=0,z=0;if(typeof i=="number"){var rt=t.getStyle("width");rt.hasValue()?G=rt.getPixels("x")/i:isNaN(K[2])||(G=K[2]/i)}if(typeof a=="number"){var at=t.getStyle("height");at.hasValue()?z=at.getPixels("y")/a:isNaN(K[3])||(z=K[3]/a)}G||(G=z),z||(z=G),t.getAttribute("width",!0).setValue(i),t.getAttribute("height",!0).setValue(a);var H=t.getStyle("transform",!0,!0);H.setValue("".concat(H.getString()," scale(").concat(1/G,", ").concat(1/z,")"))}r||E.clearRect(0,0,L,U),t.render(E),O&&(this.isFirstRender=!1)}}He.defaultWindow=Fr,He.defaultFetch=Ur;var{defaultFetch:Pn}=He,Rn=typeof DOMParser!="undefined"?DOMParser:null;class ke{constructor(){var{fetch:t=Pn,DOMParser:e=Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=t,this.DOMParser=e}parse(t){var e=this;return(0,f.Z)(function*(){return t.startsWith("<")?e.parseFromString(t):e.load(t)})()}parseFromString(t){var e=new this.DOMParser;try{return this.checkDocument(e.parseFromString(t,"image/svg+xml"))}catch(r){return this.checkDocument(e.parseFromString(t,"text/xml"))}}checkDocument(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}load(t){var e=this;return(0,f.Z)(function*(){var r=yield e.fetch(t),i=yield r.text();return e.parseFromString(i)})()}}class jr{constructor(t,e){this.type="translate",this.point=null,this.point=Rt.parse(e)}apply(t){var{x:e,y:r}=this.point;t.translate(e||0,r||0)}unapply(t){var{x:e,y:r}=this.point;t.translate(-1*e||0,-1*r||0)}applyToPoint(t){var{x:e,y:r}=this.point;t.applyTransform([1,0,0,1,e||0,r||0])}}class Gr{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var i=It(e);this.angle=new q(t,"angle",i[0]),this.originX=r[0],this.originY=r[1],this.cx=i[1]||0,this.cy=i[2]||0}apply(t){var{cx:e,cy:r,originX:i,originY:a,angle:o}=this,s=e+i.getPixels("x"),u=r+a.getPixels("y");t.translate(s,u),t.rotate(o.getRadians()),t.translate(-s,-u)}unapply(t){var{cx:e,cy:r,originX:i,originY:a,angle:o}=this,s=e+i.getPixels("x"),u=r+a.getPixels("y");t.translate(s,u),t.rotate(-1*o.getRadians()),t.translate(-s,-u)}applyToPoint(t){var{cx:e,cy:r,angle:i}=this,a=i.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(a),Math.sin(a),-Math.sin(a),Math.cos(a),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class zr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var i=Rt.parseScale(e);(i.x===0||i.y===0)&&(i.x=ae,i.y=ae),this.scale=i,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:i,originY:a}=this,o=i.getPixels("x"),s=a.getPixels("y");t.translate(o,s),t.scale(1/e,1/r||e),t.translate(-o,-s)}applyToPoint(t){var{x:e,y:r}=this.scale;t.applyTransform([e||0,0,0,r||0,0,0])}}class yr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=It(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:i}=this,a=e.getPixels("x"),o=r.getPixels("y");t.translate(a,o),t.transform(i[0],i[1],i[2],i[3],i[4],i[5]),t.translate(-a,-o)}unapply(t){var{originX:e,originY:r,matrix:i}=this,a=i[0],o=i[2],s=i[4],u=i[1],c=i[3],p=i[5],E=0,O=0,m=1,D=1/(a*(c*m-p*O)-o*(u*m-p*E)+s*(u*O-c*E)),V=e.getPixels("x"),L=r.getPixels("y");t.translate(V,L),t.transform(D*(c*m-p*O),D*(p*E-u*m),D*(s*O-o*m),D*(a*m-s*E),D*(o*p-s*c),D*(s*u-a*p)),t.translate(-V,-L)}applyToPoint(t){t.applyTransform(this.matrix)}}class mr extends yr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new q(t,"angle",e)}}class $r extends mr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Hr extends mr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function Nn(h){return Kt(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function In(h){var[t,e]=h.split("(");return[t.trim(),e.trim().replace(")","")]}class Te{constructor(t,e,r){this.document=t,this.transforms=[];var i=Nn(e);i.forEach(a=>{if(a!=="none"){var[o,s]=In(a),u=Te.transformTypes[o];typeof u!="undefined"&&this.transforms.push(new u(this.document,s,r))}})}static fromElement(t,e){var r=e.getStyle("transform",!1,!0),[i,a=i]=e.getStyle("transform-origin",!1,!0).split(),o=[i,a];return r.hasValue()?new Te(t,r.getString(),o):null}apply(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].apply(t)}unapply(t){for(var{transforms:e}=this,r=e.length,i=r-1;i>=0;i--)e[i].unapply(t)}applyToPoint(t){for(var{transforms:e}=this,r=e.length,i=0;i<r;i++)e[i].applyToPoint(t)}}Te.transformTypes={translate:jr,rotate:Gr,scale:zr,matrix:yr,skewX:$r,skewY:Hr};class Ct{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=t,this.node=e,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!e||e.nodeType!==1)){if(Array.from(e.attributes).forEach(s=>{var u=De(s.nodeName);this.attributes[u]=new q(t,u,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(s=>s.trim());i.forEach(s=>{if(s){var[u,c]=s.split(":").map(p=>p.trim());this.styles[u]=new q(t,u,c)}})}var{definitions:a}=t,o=this.getAttribute("id");o.hasValue()&&(a[o.getString()]||(a[o.getString()]=this)),Array.from(e.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var u=t.createTextNode(s);u.getText().length>0&&this.addChild(u)}})}}getAttribute(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[t];if(!r&&e){var i=new q(this.document,t,"");return this.attributes[t]=i,i}return r||q.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if(t==="href"||t.endsWith(":href"))return this.attributes[t];return q.empty(this.document)}getStyle(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[t];if(i)return i;var a=this.getAttribute(t);if(a!=null&&a.hasValue())return this.styles[t]=a,a;if(!r){var{parent:o}=this;if(o){var s=o.getStyle(t);if(s!=null&&s.hasValue())return s}}if(e){var u=new q(this.document,t,"");return this.styles[t]=u,u}return i||q.empty(this.document)}render(t){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(t.save(),this.getStyle("mask").hasValue()){var e=this.getStyle("mask").getDefinition();e&&(this.applyEffects(t),e.apply(t,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var e=Te.fromElement(this.document,this);e&&e.apply(t);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var i=r.getDefinition();i&&i.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach(e=>{e.render(t)})}addChild(t){var e=t instanceof Ct?t:this.document.createElement(t);e.parent=this,Ct.ignoreChildTypes.includes(e.type)||this.children.push(e)}matchesSelector(t){var e,{node:r}=this;if(typeof r.matches=="function")return r.matches(t);var i=(e=r.getAttribute)===null||e===void 0?void 0:e.call(r,"class");return!i||i===""?!1:i.split(" ").some(a=>".".concat(a)===t)}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:e}=this.document;for(var r in t)if(!r.startsWith("@")&&this.matchesSelector(r)){var i=t[r],a=e[r];if(i)for(var o in i){var s=this.stylesSpecificity[o];typeof s=="undefined"&&(s="000"),a>=s&&(this.styles[o]=i[o],this.stylesSpecificity[o]=a)}}}removeStyles(t,e){var r=e.reduce((i,a)=>{var o=t.getStyle(a);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[...i,[a,s]]},[]);return r}restoreStyles(t,e){e.forEach(r=>{var[i,a]=r;t.getStyle(i,!0).setValue(a)})}isFirstChild(){var t;return((t=this.parent)===null||t===void 0?void 0:t.children.indexOf(this))===0}}Ct.ignoreChildTypes=["title"];class Yr extends Ct{constructor(t,e,r){super(t,e,r)}}function Mn(h){var t=h.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function wn(h){return typeof ve=="undefined"?h:h.trim().split(",").map(Mn).join(",")}function Vn(h){if(!h)return"";var t=h.trim().toLowerCase();switch(t){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:""}}function Dn(h){if(!h)return"";var t=h.trim().toLowerCase();switch(t){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return t;default:return/^[\d.]+$/.test(t)?t:""}}class zt{constructor(t,e,r,i,a,o){var s=o?typeof o=="string"?zt.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=e||s.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0,r="",i="",a="",o="",s="",u=Kt(t).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return u.forEach(p=>{switch(!0){case(!c.fontStyle&&zt.styles.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0;break;case(!c.fontVariant&&zt.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&zt.weights.includes(p)):p!=="inherit"&&(a=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:p!=="inherit"&&([o]=p.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new zt(r,i,a,o,s,e)}toString(){return[Vn(this.fontStyle),this.fontVariant,Dn(this.fontWeight),this.fontSize,wn(this.fontFamily)].join(" ").trim()}}zt.styles="normal|italic|oblique|inherit",zt.variants="normal|small-caps|inherit",zt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class kt{constructor(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=i,this.addPoint(t,e),this.addPoint(r,i)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,e){typeof t!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),typeof e!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:e,y1:r,x2:i,y2:a}=t;this.addPoint(e,r),this.addPoint(i,a)}}sumCubic(t,e,r,i,a){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*i+Math.pow(t,3)*a}bezierCurveAdd(t,e,r,i,a){var o=6*e-12*r+6*i,s=-3*e+9*r-9*i+3*a,u=3*r-3*e;if(s===0){if(o===0)return;var c=-u/o;0<c&&c<1&&(t?this.addX(this.sumCubic(c,e,r,i,a)):this.addY(this.sumCubic(c,e,r,i,a)));return}var p=Math.pow(o,2)-4*u*s;if(!(p<0)){var E=(-o+Math.sqrt(p))/(2*s);0<E&&E<1&&(t?this.addX(this.sumCubic(E,e,r,i,a)):this.addY(this.sumCubic(E,e,r,i,a)));var O=(-o-Math.sqrt(p))/(2*s);0<O&&O<1&&(t?this.addX(this.sumCubic(O,e,r,i,a)):this.addY(this.sumCubic(O,e,r,i,a)))}}addBezierCurve(t,e,r,i,a,o,s,u){this.addPoint(t,e),this.addPoint(s,u),this.bezierCurveAdd(!0,t,r,a,s),this.bezierCurveAdd(!1,e,i,o,u)}addQuadraticCurve(t,e,r,i,a,o){var s=t+.6666666666666666*(r-t),u=e+2/3*(i-e),c=s+1/3*(a-t),p=u+1/3*(o-e);this.addBezierCurve(t,e,s,c,u,p,a,o)}isPointInBox(t,e){var{x1:r,y1:i,x2:a,y2:o}=this;return r<=t&&t<=a&&i<=e&&e<=o}}class it extends N{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Rt(0,0),this.control=new Rt(0,0),this.current=new Rt(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:e}=this;return t>=e.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Rt(this.command[t],this.command[e]);return this.makeAbsolute(r)}getAsControlPoint(t,e){var r=this.getPoint(t,e);return this.control=r,r}getAsCurrentPoint(t,e){var r=this.getPoint(t,e);return this.current=r,r}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==N.CURVE_TO&&t!==N.SMOOTH_CURVE_TO&&t!==N.QUAD_TO&&t!==N.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:i,y:a}}=this,o=new Rt(2*e-i,2*r-a);return o}makeAbsolute(t){if(this.command.relative){var{x:e,y:r}=this.current;t.x+=e,t.y+=r}return t}addMarker(t,e,r){var{points:i,angles:a}=this;r&&a.length>0&&!a[a.length-1]&&(a[a.length-1]=i[i.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}addMarkerAngle(t,e){this.points.push(t),this.angles.push(e)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,e=t.length,r=0;r<e;r++)if(!t[r]){for(var i=r+1;i<e;i++)if(t[i]){t[r]=t[i];break}}return t}}class Oe extends Ct{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!e){var r=this.getStyle("fill"),i=this.getStyle("fill-opacity"),a=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,i);s&&(t.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();u!=="inherit"&&(t.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(i.hasValue()){var c=new q(this.document,"fill",t.fillStyle).addOpacity(i).getColor();t.fillStyle=c}if(a.isUrlDefinition()){var p=a.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(a.hasValue()){a.getString()==="currentColor"&&a.setValue(this.getStyle("color").getColor());var E=a.getString();E!=="inherit"&&(t.strokeStyle=E==="none"?"rgba(0,0,0,0)":E)}if(o.hasValue()){var O=new q(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=O}var m=this.getStyle("stroke-width");if(m.hasValue()){var D=m.getPixels();t.lineWidth=D||ae}var V=this.getStyle("stroke-linecap"),L=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),K=this.getStyle("stroke-dasharray"),G=this.getStyle("stroke-dashoffset");if(V.hasValue()&&(t.lineCap=V.getString()),L.hasValue()&&(t.lineJoin=L.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),K.hasValue()&&K.getString()!=="none"){var z=It(K.getString());typeof t.setLineDash!="undefined"?t.setLineDash(z):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=z:typeof t.mozDash!="undefined"&&!(z.length===1&&z[0]===0)&&(t.mozDash=z);var rt=G.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=rt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=rt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=rt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var at=this.getStyle("font"),H=this.getStyle("font-style"),ct=this.getStyle("font-variant"),vt=this.getStyle("font-weight"),pt=this.getStyle("font-size"),St=this.getStyle("font-family"),Tt=new zt(H.getString(),ct.getString(),vt.getString(),pt.hasValue()?"".concat(pt.getPixels(!0),"px"):"",St.getString(),zt.parse(at.getString(),t.font));H.setValue(Tt.fontStyle),ct.setValue(Tt.fontVariant),vt.setValue(Tt.fontWeight),pt.setValue(Tt.fontSize),St.setValue(Tt.fontFamily),t.font=Tt.toString(),pt.isPixels()&&(this.document.emSize=pt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class xt extends Oe{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new it(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new kt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case it.MOVE_TO:this.pathM(t,r);break;case it.LINE_TO:this.pathL(t,r);break;case it.HORIZ_LINE_TO:this.pathH(t,r);break;case it.VERT_LINE_TO:this.pathV(t,r);break;case it.CURVE_TO:this.pathC(t,r);break;case it.SMOOTH_CURVE_TO:this.pathS(t,r);break;case it.QUAD_TO:this.pathQ(t,r);break;case it.SMOOTH_QUAD_TO:this.pathT(t,r);break;case it.ARC:this.pathA(t,r);break;case it.CLOSE_PATH:this.pathZ(t,r);break}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles(),i=e.map((a,o)=>[a,r[o]]);return i}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");t.fillStyle!==""&&(e.getString("inherit")!=="inherit"?t.fill(e.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var i=r.length-1,a=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(a.isUrlDefinition()){var u=a.getDefinition(),[c,p]=r[0];u.render(t,c,p)}if(o.isUrlDefinition())for(var E=o.getDefinition(),O=1;O<i;O++){var[m,D]=r[O];E.render(t,m,D)}if(s.isUrlDefinition()){var V=s.getDefinition(),[L,U]=r[i];V.render(t,L,U)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:i}=xt.pathM(r),{x:a,y:o}=i;r.addMarker(i),e.addPoint(a,o),t&&t.moveTo(a,o)}static pathL(t){var{current:e}=t,r=t.getAsCurrentPoint();return{current:e,point:r}}pathL(t,e){var{pathParser:r}=this,{current:i,point:a}=xt.pathL(r),{x:o,y:s}=a;r.addMarker(a,i),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathH(t){var{current:e,command:r}=t,i=new Rt((r.relative?e.x:0)+r.x,e.y);return t.current=i,{current:e,point:i}}pathH(t,e){var{pathParser:r}=this,{current:i,point:a}=xt.pathH(r),{x:o,y:s}=a;r.addMarker(a,i),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathV(t){var{current:e,command:r}=t,i=new Rt(e.x,(r.relative?e.y:0)+r.y);return t.current=i,{current:e,point:i}}pathV(t,e){var{pathParser:r}=this,{current:i,point:a}=xt.pathV(r),{x:o,y:s}=a;r.addMarker(a,i),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathC(t){var{current:e}=t,r=t.getPoint("x1","y1"),i=t.getAsControlPoint("x2","y2"),a=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:i,currentPoint:a}}pathC(t,e){var{pathParser:r}=this,{current:i,point:a,controlPoint:o,currentPoint:s}=xt.pathC(r);r.addMarker(s,o,a),e.addBezierCurve(i.x,i.y,a.x,a.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathS(t){var{current:e}=t,r=t.getReflectedControlPoint(),i=t.getAsControlPoint("x2","y2"),a=t.getAsCurrentPoint();return{current:e,point:r,controlPoint:i,currentPoint:a}}pathS(t,e){var{pathParser:r}=this,{current:i,point:a,controlPoint:o,currentPoint:s}=xt.pathS(r);r.addMarker(s,o,a),e.addBezierCurve(i.x,i.y,a.x,a.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(a.x,a.y,o.x,o.y,s.x,s.y)}static pathQ(t){var{current:e}=t,r=t.getAsControlPoint("x1","y1"),i=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:i}}pathQ(t,e){var{pathParser:r}=this,{current:i,controlPoint:a,currentPoint:o}=xt.pathQ(r);r.addMarker(o,a,a),e.addQuadraticCurve(i.x,i.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();t.control=r;var i=t.getAsCurrentPoint();return{current:e,controlPoint:r,currentPoint:i}}pathT(t,e){var{pathParser:r}=this,{current:i,controlPoint:a,currentPoint:o}=xt.pathT(r);r.addMarker(o,a,a),e.addQuadraticCurve(i.x,i.y,a.x,a.y,o.x,o.y),t&&t.quadraticCurveTo(a.x,a.y,o.x,o.y)}static pathA(t){var{current:e,command:r}=t,{rX:i,rY:a,xRot:o,lArcFlag:s,sweepFlag:u}=r,c=o*(Math.PI/180),p=t.getAsCurrentPoint(),E=new Rt(Math.cos(c)*(e.x-p.x)/2+Math.sin(c)*(e.y-p.y)/2,-Math.sin(c)*(e.x-p.x)/2+Math.cos(c)*(e.y-p.y)/2),O=Math.pow(E.x,2)/Math.pow(i,2)+Math.pow(E.y,2)/Math.pow(a,2);O>1&&(i*=Math.sqrt(O),a*=Math.sqrt(O));var m=(s===u?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(a,2)-Math.pow(i,2)*Math.pow(E.y,2)-Math.pow(a,2)*Math.pow(E.x,2))/(Math.pow(i,2)*Math.pow(E.y,2)+Math.pow(a,2)*Math.pow(E.x,2)));isNaN(m)&&(m=0);var D=new Rt(m*i*E.y/a,m*-a*E.x/i),V=new Rt((e.x+p.x)/2+Math.cos(c)*D.x-Math.sin(c)*D.y,(e.y+p.y)/2+Math.sin(c)*D.x+Math.cos(c)*D.y),L=lr([1,0],[(E.x-D.x)/i,(E.y-D.y)/a]),U=[(E.x-D.x)/i,(E.y-D.y)/a],K=[(-E.x-D.x)/i,(-E.y-D.y)/a],G=lr(U,K);return Ke(U,K)<=-1&&(G=Math.PI),Ke(U,K)>=1&&(G=0),{currentPoint:p,rX:i,rY:a,sweepFlag:u,xAxisRotation:c,centp:V,a1:L,ad:G}}pathA(t,e){var{pathParser:r}=this,{currentPoint:i,rX:a,rY:o,sweepFlag:s,xAxisRotation:u,centp:c,a1:p,ad:E}=xt.pathA(r),O=1-s?1:-1,m=p+O*(E/2),D=new Rt(c.x+a*Math.cos(m),c.y+o*Math.sin(m));if(r.addMarkerAngle(D,m-O*Math.PI/2),r.addMarkerAngle(i,m-O*Math.PI),e.addPoint(i.x,i.y),t&&!isNaN(p)&&!isNaN(E)){var V=a>o?a:o,L=a>o?1:a/o,U=a>o?o/a:1;t.translate(c.x,c.y),t.rotate(u),t.scale(L,U),t.arc(0,0,V,p,p+E,!!(1-s)),t.scale(1/L,1/U),t.rotate(-u),t.translate(-c.x,-c.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){xt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class xr extends xt{constructor(t,e,r){super(t,e,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class se extends Oe{constructor(t,e,r){super(t,e,new.target===se?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(t,e);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,i)=>{var a=this.getChildBoundingBox(t,this,this,i);e?e.addBoundingBox(a):e=a}),e}getFontSize(){var{document:t,parent:e}=this,r=zt.parse(t.ctx.font).fontSize,i=e.getStyle("font-size").getNumber(r);return i}getTElementBoundingBox(t){var e=this.getFontSize();return new kt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var i=e[r],a=null;if(t.isArabic){var o=e.length,s=e[r-1],u=e[r+1],c="isolated";if((r===0||s===" ")&&r<o-1&&u!==" "&&(c="terminal"),r>0&&s!==" "&&r<o-1&&u!==" "&&(c="medial"),r>0&&s!==" "&&(r===o-1||u===" ")&&(c="initial"),typeof t.glyphs[i]!="undefined"){var p=t.glyphs[i];a=p instanceof xr?p:p[c]}}else a=t.glyphs[i];return a||(a=t.missingGlyph),a}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),i=r.indexOf(e),a=r.length-1,o=Kt(e.textContent||"");return i===0&&(o=ze(o)),i===a&&(o=Ze(o)),o}renderChildren(t){if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,i)=>{this.renderChild(t,this,this,i)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}renderTElementChildren(t){var{document:e,parent:r}=this,i=this.getText(),a=r.getStyle("font-family").getDefinition();if(a){for(var{unitsPerEm:o}=a.fontFace,s=zt.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),c=r.getStyle("font-style").getString(s.fontStyle),p=u/o,E=a.isRTL?i.split("").reverse().join(""):i,O=It(r.getAttribute("dx").getString()),m=E.length,D=0;D<m;D++){var V=this.getGlyph(a,E,D);t.translate(this.x,this.y),t.scale(p,-p);var L=t.lineWidth;t.lineWidth=t.lineWidth*o/u,c==="italic"&&t.transform(1,0,.4,1,0,0),V.render(t),c==="italic"&&t.transform(1,0,-.4,1,0,0),t.lineWidth=L,t.scale(1/p,-1/p),t.translate(-this.x,-this.y),this.x+=u*(V.horizAdvX||a.horizAdvX)/o,typeof O[D]!="undefined"&&!isNaN(O[D])&&(this.x+=O[D])}return}var{x:U,y:K}=this;t.fillStyle&&t.fillText(i,U,K),t.strokeStyle&&t.strokeText(i,U,K)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r=!1,i=0;e==="start"&&!r||e==="end"&&r?i=t.x-this.minX:e==="end"&&!r||e==="start"&&r?i=t.x-this.maxX:i=t.x-(this.minX+this.maxX)/2;for(var a=this.textChunkStart;a<this.leafTexts.length;a++)this.leafTexts[a].x+=i;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach((e,r)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,e,r,i){var a=r.children[i];a.children.length>0?a.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,a,s)}):this.adjustChildCoordinates(t,e,r,i)}adjustChildCoordinates(t,e,r,i){var a=r.children[i];if(typeof a.measureText!="function")return a;t.save(),a.setContext(t,!0);var o=a.getAttribute("x"),s=a.getAttribute("y"),u=a.getAttribute("dx"),c=a.getAttribute("dy"),p=a.getStyle("font-family").getDefinition(),E=!!p&&p.isRTL;i===0&&(o.hasValue()||o.setValue(a.getInheritedAttribute("x")),s.hasValue()||s.setValue(a.getInheritedAttribute("y")),u.hasValue()||u.setValue(a.getInheritedAttribute("dx")),c.hasValue()||c.setValue(a.getInheritedAttribute("dy")));var O=a.measureText(t);return E&&(e.x-=O),o.hasValue()?(e.applyAnchoring(),a.x=o.getPixels("x"),u.hasValue()&&(a.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),a.x=e.x),e.x=a.x,E||(e.x+=O),s.hasValue()?(a.y=s.getPixels("y"),c.hasValue()&&(a.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),a.y=e.y),e.y=a.y,e.leafTexts.push(a),e.minX=Math.min(e.minX,a.x,a.x+O),e.maxX=Math.max(e.maxX,a.x,a.x+O),a.clearContext(t),t.restore(),a}getChildBoundingBox(t,e,r,i){var a=r.children[i];if(typeof a.getBoundingBox!="function")return null;var o=a.getBoundingBox(t);return o?(a.children.forEach((s,u)=>{var c=e.getChildBoundingBox(t,e,a,u);o.addBoundingBox(c)}),o):null}renderChild(t,e,r,i){var a=r.children[i];a.render(t),a.children.forEach((o,s)=>{e.renderChild(t,e,a,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),i=this.measureTargetText(t,r);return this.measureCache=i,i}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,i=r.getStyle("font-family").getDefinition();if(i){for(var a=this.getFontSize(),o=i.isRTL?e.split("").reverse().join(""):e,s=It(r.getAttribute("dx").getString()),u=o.length,c=0,p=0;p<u;p++){var E=this.getGlyph(i,o,p);c+=(E.horizAdvX||i.horizAdvX)*a/i.fontFace.unitsPerEm,typeof s[p]!="undefined"&&!isNaN(s[p])&&(c+=s[p])}return c}if(!t.measureText)return e.length*10;t.save(),this.setContext(t,!0);var{width:O}=t.measureText(e);return this.clearContext(t),t.restore(),O}getInheritedAttribute(t){for(var e=this;e instanceof se&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}class Ye extends se{constructor(t,e,r){super(t,e,new.target===Ye?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Ln extends Ye{constructor(){super(...arguments),this.type="textNode"}}class Be extends Oe{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:i,window:a}=r,o=t.canvas;if(i.setDefaults(t),o.style&&typeof t.font!="undefined"&&a&&typeof a.getComputedStyle!="undefined"){t.font=a.getComputedStyle(o).getPropertyValue("font");var s=new q(r,"fontSize",zt.parse(t.font).fontSize);s.hasValue()&&(r.rootEmSize=s.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{width:u,height:c}=i.viewPort;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 p=this.getAttribute("refX"),E=this.getAttribute("refY"),O=this.getAttribute("viewBox"),m=O.hasValue()?It(O.getString()):null,D=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",V=0,L=0,U=0,K=0;m&&(V=m[0],L=m[1]),this.root||(u=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),this.type==="marker"&&(U=V,K=L,V=0,L=0)),i.viewPort.setCurrent(u,c),this.node&&(!this.parent||((e=this.node.parentNode)===null||e===void 0?void 0:e.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(u=m[2],c=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:u,height:i.viewPort.height,desiredHeight:c,minX:V,minY:L,refX:p.getValue(),refY:E.getValue(),clip:D,clipX:U,clipY:K}),m&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(u,c))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),a=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=i.getNumber(0),c=a.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var p=this.getAttribute("preserveAspectRatio");p.hasValue()&&p.setValue(p.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(t),a.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(c||e)),s.hasValue()){var E=this.getStyle("width"),O=this.getStyle("height");E.hasValue()&&E.setValue("".concat(t,"px")),O.hasValue()&&O.setValue("".concat(e,"px"))}}}class Er extends xt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),a=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),c=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(c=u),s.hasValue()&&!o.hasValue()&&(u=c),u=Math.min(u,i/2),c=Math.min(c,a/2),t){var p=4*((Math.sqrt(2)-1)/3);t.beginPath(),a>0&&i>0&&(t.moveTo(e+u,r),t.lineTo(e+i-u,r),t.bezierCurveTo(e+i-u+p*u,r,e+i,r+c-p*c,e+i,r+c),t.lineTo(e+i,r+a-c),t.bezierCurveTo(e+i,r+a-c+p*c,e+i-u+p*u,r+a,e+i-u,r+a),t.lineTo(e+u,r+a),t.bezierCurveTo(e+u-p*u,r+a,e,r+a-c+p*c,e,r+a-c),t.lineTo(e,r+c),t.bezierCurveTo(e,r+c-p*c,e+u-p*u,r,e+u,r),t.closePath())}return new kt(e,r,e+i,r+a)}getMarkers(){return null}}class Xr extends xt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return t&&i>0&&(t.beginPath(),t.arc(e,r,i,0,Math.PI*2,!1),t.closePath()),new kt(e-i,r-i,e+i,r+i)}getMarkers(){return null}}class Wr extends xt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),a=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&i>0&&(t.beginPath(),t.moveTo(a+r,o),t.bezierCurveTo(a+r,o+e*i,a+e*r,o+i,a,o+i),t.bezierCurveTo(a-e*r,o+i,a-r,o+e*i,a-r,o),t.bezierCurveTo(a-r,o-e*i,a-e*r,o-i,a,o-i),t.bezierCurveTo(a+e*r,o-i,a+r,o-e*i,a+r,o),t.closePath()),new kt(a-r,o-i,a+r,o+i)}getMarkers(){return null}}class Qr extends xt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Rt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Rt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:i,y:a}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(i,a)),new kt(e,r,i,a)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class Tr extends xt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Rt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:i}]=e,a=new kt(r,i);return t&&(t.beginPath(),t.moveTo(r,i)),e.forEach(o=>{var{x:s,y:u}=o;a.addPoint(s,u),t&&t.lineTo(s,u)}),a}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((i,a)=>{a!==e&&r.push([i,i.angleTo(t[a+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Zr extends Tr{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:i}]=this.points;return t&&(t.lineTo(r,i),t.closePath()),e}}class Kr extends Ct{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var i=this.getStyle("width").getPixels("x",!0),a=this.getStyle("height").getPixels("y",!0),o=new Be(this.document,null);o.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new q(this.document,"width","".concat(i,"px")),o.attributes.height=new q(this.document,"height","".concat(a,"px")),o.attributes.transform=new q(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(i,a),u=s.getContext("2d"),c=this.getAttribute("x"),p=this.getAttribute("y");c.hasValue()&&p.hasValue()&&u.translate(c.getPixels("x",!0),p.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var E=-1;E<=1;E++)for(var O=-1;O<=1;O++)u.save(),o.attributes.x=new q(this.document,"x",E*s.width),o.attributes.y=new q(this.document,"y",O*s.height),o.render(u),u.restore();var m=t.createPattern(s,"repeat");return m}}class kr extends Ct{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:i,y:a}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(i,a),o==="auto"&&t.rotate(r),s==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new Be(this.document,null);u.type=this.type,u.attributes.viewBox=new q(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new q(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new q(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new q(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new q(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new q(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new q(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new q(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),s==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),o==="auto"&&t.rotate(-r),t.translate(-i,-a)}}}class Jr extends Ct{constructor(){super(...arguments),this.type="defs"}render(){}}class Je extends Oe{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new kt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Or extends Ct{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:i,children:a}=this;a.forEach(o=>{o.type==="stop"&&i.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var{stops:a}=i,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,a[a.length-1].color);if(a.forEach(L=>{o.addColorStop(L.offset,this.addParentOpacity(r,L.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:c}=s.screen,[p]=c.viewPorts,E=new Er(s,null);E.attributes.x=new q(s,"x",-u/3),E.attributes.y=new q(s,"y",-u/3),E.attributes.width=new q(s,"width",u),E.attributes.height=new q(s,"height",u);var O=new Je(s,null);O.attributes.transform=new q(s,"transform",this.getAttribute("gradientTransform").getValue()),O.children=[E];var m=new Be(s,null);m.attributes.x=new q(s,"x",0),m.attributes.y=new q(s,"y",0),m.attributes.width=new q(s,"width",p.width),m.attributes.height=new q(s,"height",p.height),m.children=[O];var D=s.createCanvas(p.width,p.height),V=D.getContext("2d");return V.fillStyle=o,m.render(V),V.createPattern(D,"no-repeat")}return o}inheritStopContainer(t){this.attributesToInherit.forEach(e=>{!this.getAttribute(e).hasValue()&&t.getAttribute(e).hasValue()&&this.getAttribute(e,!0).setValue(t.getAttribute(e).getValue())})}addParentOpacity(t,e){if(t.hasValue()){var r=new q(this.document,"color",e);return r.addOpacity(t).getColor()}return e}}class qr extends Or{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",i=r?e.getBoundingBox(t):null;if(r&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var a=r?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return a===s&&o===u?null:t.createLinearGradient(a,o,s,u)}}class _r extends Or{constructor(t,e,r){super(t,e,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,e){var r=this.getGradientUnits()==="objectBoundingBox",i=e.getBoundingBox(t);if(r&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var a=r?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=a,u=o;this.getAttribute("fx").hasValue()&&(s=r?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=r?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),p=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,u,p,a,o,c)}}class tn extends Ct{constructor(t,e,r){super(t,e,r),this.type="stop";var i=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),a=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),a.hasValue()&&(o=o.addOpacity(a)),this.offset=i,this.color=o.getColor()}}class qe extends Ct{constructor(t,e,r){super(t,e,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new q(t,"values",null);var i=this.getAttribute("values");i.hasValue()&&this.values.setValue(i.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:i}=this.getProgress(),a=r.getNumber()+(i.getNumber()-r.getNumber())*e;return t==="%"&&(a*=100),"".concat(a).concat(t)}update(t){var{parent:e}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var a=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),a=!0}return a}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var i=r.progress*(e.getValue().length-1),a=Math.floor(i),o=Math.ceil(i);r.from=new q(t,"from",parseFloat(e.getValue()[a])),r.to=new q(t,"to",parseFloat(e.getValue()[o])),r.progress=(i-a)/(o-a)}else r.from=this.from,r.to=this.to;return r}}class en extends qe{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=new I(e.getColor()),a=new I(r.getColor());if(i.ok&&a.ok){var o=i.r+(a.r-i.r)*t,s=i.g+(a.g-i.g)*t,u=i.b+(a.b-i.b)*t;return"rgb(".concat(Math.floor(o),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class rn extends qe{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),i=It(e.getString()),a=It(r.getString()),o=i.map((s,u)=>{var c=a[u];return s+(c-s)*t}).join(" ");return o}}class nn extends Ct{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:i}=t,{children:a}=this;for(var o of a)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(i[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]=="undefined"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}}class an extends Ct{constructor(t,e,r){super(t,e,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class sn extends xt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class on extends se{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var e=t.children[0];if(e)return e.getText()}return""}}class un extends se{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:i}=e,a=i[0],o=i.length>0&&Array.from(i).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(a):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:i}=this,{mouse:a}=e.screen,o=new q(e,"fontSize",zt.parse(e.ctx.font).fontSize);a.isWorking()&&a.checkBoundingBox(this,new kt(r,i-o.getPixels("y"),r+this.measureText(t),i))}else if(this.children.length>0){var s=new Je(this.document,null);s.children=this.children,s.parent=this,s.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}function ln(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function _e(h){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?ln(Object(e),!0).forEach(function(r){(0,b.Z)(h,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(e)):ln(Object(e)).forEach(function(r){Object.defineProperty(h,r,Object.getOwnPropertyDescriptor(e,r))})}return h}class hn extends se{constructor(t,e,r){super(t,e,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var i=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(i)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:i,points:a}=r;switch(i){case it.LINE_TO:t&&t.lineTo(a[0],a[1]);break;case it.MOVE_TO:t&&t.moveTo(a[0],a[1]);break;case it.CURVE_TO:t&&t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case it.QUAD_TO:t&&t.quadraticCurveTo(a[0],a[1],a[2],a[3]);break;case it.ARC:{var[o,s,u,c,p,E,O,m]=a,D=u>c?u:c,V=u>c?1:u/c,L=u>c?c/u:1;t&&(t.translate(o,s),t.rotate(O),t.scale(V,L),t.arc(0,0,D,p,p+E,!!(1-m)),t.scale(1/V,1/L),t.rotate(-O),t.translate(-o,-s));break}case it.CLOSE_PATH:t&&t.closePath();break}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:i}=this,a=t.fillStyle;e==="underline"&&t.beginPath(),i.forEach((o,s)=>{var{p0:u,p1:c,rotation:p,text:E}=o;t.save(),t.translate(u.x,u.y),t.rotate(p),t.fillStyle&&t.fillText(E,0,0),t.strokeStyle&&t.strokeText(E,0,0),t.restore(),e==="underline"&&(s===0&&t.moveTo(u.x,u.y+r/8),t.lineTo(c.x,c.y+r/5))}),e==="underline"&&(t.lineWidth=r/20,t.strokeStyle=a,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}findSegmentToFitChar(t,e,r,i,a,o,s,u,c){var p=o,E=this.measureText(t,u);u===" "&&e==="justify"&&r<i&&(E+=(i-r)/a),c>-1&&(p+=this.getLetterSpacingAt(c));var O=this.textHeight/20,m=this.getEquidistantPointOnPath(p,O,0),D=this.getEquidistantPointOnPath(p+E,O,0),V={p0:m,p1:D},L=m&&D?Math.atan2(D.y-m.y,D.x-m.x):0;if(s){var U=Math.cos(Math.PI/2+L)*s,K=Math.cos(-L)*s;V.p0=_e(_e({},m),{},{x:m.x+U,y:m.y+K}),V.p1=_e(_e({},D),{},{x:D.x+U,y:D.y+K})}return p+=E,{offset:p,segment:V,rotation:L}}measureText(t,e){var{measuresCache:r}=this,i=e||this.getText();if(r.has(i))return r.get(i);var a=this.measureTargetText(t,i);return r.set(i,a),a}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),i=e.split(" ").length-1,a=this.parent.getAttribute("dx").split().map(z=>z.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),p=0;!u.hasValue()||u.getValue()==="inherit"?p=c.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(p=u.getPixels());var E=[],O=e.length;this.letterSpacingCache=E;for(var m=0;m<O;m++)E.push(typeof a[m]!="undefined"?a[m]:p);var D=E.reduce((z,rt,at)=>at===0?0:z+rt||0,0),V=this.measureText(t),L=Math.max(V+D,0);this.textWidth=V,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),K=this.getStyle("startOffset").getNumber(0)*U,G=0;(s==="middle"||s==="center")&&(G=-L/2),(s==="end"||s==="right")&&(G=-L),G+=K,r.forEach((z,rt)=>{var{offset:at,segment:H,rotation:ct}=this.findSegmentToFitChar(t,s,L,U,i,G,o,z,rt);G=at,!(!H.p0||!H.p1)&&this.glyphInfo.push({text:r[rt],p0:H.p0,p1:H.p1,rotation:ct})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:i}=r,a=i?i.x:0,o=i?i.y:0,s=r.next(),u=s.type,c=[];switch(s.type){case it.MOVE_TO:this.pathM(r,c);break;case it.LINE_TO:u=this.pathL(r,c);break;case it.HORIZ_LINE_TO:u=this.pathH(r,c);break;case it.VERT_LINE_TO:u=this.pathV(r,c);break;case it.CURVE_TO:this.pathC(r,c);break;case it.SMOOTH_CURVE_TO:u=this.pathS(r,c);break;case it.QUAD_TO:this.pathQ(r,c);break;case it.SMOOTH_QUAD_TO:u=this.pathT(r,c);break;case it.ARC:c=this.pathA(r);break;case it.CLOSE_PATH:xt.pathZ(r);break}s.type!==it.CLOSE_PATH?e.push({type:u,points:c,start:{x:a,y:o},pathLength:this.calcLength(a,o,u,c)}):e.push({type:it.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:i}=xt.pathM(t).point;e.push(r,i)}pathL(t,e){var{x:r,y:i}=xt.pathL(t).point;return e.push(r,i),it.LINE_TO}pathH(t,e){var{x:r,y:i}=xt.pathH(t).point;return e.push(r,i),it.LINE_TO}pathV(t,e){var{x:r,y:i}=xt.pathV(t).point;return e.push(r,i),it.LINE_TO}pathC(t,e){var{point:r,controlPoint:i,currentPoint:a}=xt.pathC(t);e.push(r.x,r.y,i.x,i.y,a.x,a.y)}pathS(t,e){var{point:r,controlPoint:i,currentPoint:a}=xt.pathS(t);return e.push(r.x,r.y,i.x,i.y,a.x,a.y),it.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:i}=xt.pathQ(t);e.push(r.x,r.y,i.x,i.y)}pathT(t,e){var{controlPoint:r,currentPoint:i}=xt.pathT(t);return e.push(r.x,r.y,i.x,i.y),it.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:i,xAxisRotation:a,centp:o,a1:s,ad:u}=xt.pathA(t);return i===0&&u>0&&(u-=2*Math.PI),i===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,e,r,s,u,a,i]}calcLength(t,e,r,i){var a=0,o=null,s=null,u=0;switch(r){case it.LINE_TO:return this.getLineLength(t,e,i[0],i[1]);case it.CURVE_TO:for(a=0,o=this.getPointOnCubicBezier(0,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,t,e,i[0],i[1],i[2],i[3],i[4],i[5]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case it.QUAD_TO:for(a=0,o=this.getPointOnQuadraticBezier(0,t,e,i[0],i[1],i[2],i[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,t,e,i[0],i[1],i[2],i[3]),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return a;case it.ARC:{a=0;var c=i[4],p=i[5],E=i[4]+p,O=Math.PI/180;if(Math.abs(c-E)<O&&(O=Math.abs(c-E)),o=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],c,0),p<0)for(u=c-O;u>E;u-=O)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=c+O;u<E;u+=O)s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],u,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],E,0),a+=this.getLineLength(o.x,o.y,s.x,s.y),a}}return 0}getPointOnLine(t,e,r,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,u=(a-r)/(i-e+ae),c=Math.sqrt(t*t/(1+u*u));i<e&&(c*=-1);var p=u*c,E=null;if(i===e)E={x:o,y:s+p};else if((s-r)/(o-e+ae)===u)E={x:o+c,y:s+p};else{var O=0,m=0,D=this.getLineLength(e,r,i,a);if(D<ae)return null;var V=(o-e)*(i-e)+(s-r)*(a-r);V/=D*D,O=e+V*(i-e),m=r+V*(a-r);var L=this.getLineLength(o,s,O,m),U=Math.sqrt(t*t-L*L);c=Math.sqrt(U*U/(1+u*u)),i<e&&(c*=-1),p=u*c,E={x:O+c,y:m+p}}return E}getPointOnPath(t){var e=this.getPathLength(),r=0,i=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:a}=this;for(var o of a){if(o&&(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){r+=o.pathLength;continue}var s=t-r,u=0;switch(o.type){case it.LINE_TO:i=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case it.ARC:{var c=o.points[4],p=o.points[5],E=o.points[4]+p;if(u=c+s/o.pathLength*p,p<0&&u<E||p>=0&&u>E)break;i=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case it.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case it.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),i=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(i)return i;break}return null}getLineLength(t,e,r,i){return Math.sqrt((r-t)*(r-t)+(i-e)*(i-e))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,i,a,o,s,u,c){var p=u*hr(t)+o*fr(t)+i*cr(t)+e*vr(t),E=c*hr(t)+s*fr(t)+a*cr(t)+r*vr(t);return{x:p,y:E}}getPointOnQuadraticBezier(t,e,r,i,a,o,s){var u=o*gr(t)+i*dr(t)+e*pr(t),c=s*gr(t)+a*dr(t)+r*pr(t);return{x:u,y:c}}getPointOnEllipticalArc(t,e,r,i,a,o){var s=Math.cos(o),u=Math.sin(o),c={x:r*Math.cos(a),y:i*Math.sin(a)};return{x:t+(c.x*s-c.y*u),y:e+(c.x*u+c.y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),i=e||.25,a=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==a||this.equidistantCache.precision!==i){this.equidistantCache={step:a,precision:i,points:[]};for(var o=0,s=0;s<=r;s+=i){var u=this.getPointOnPath(s),c=this.getPointOnPath(s+i);!u||!c||(o+=this.getLineLength(u.x,u.y,c.x,c.y),o>=a&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=a))}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var i=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}var Bn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class fn extends Oe{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var i=this.getHrefAttribute().getString();if(i){var a=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);t.images.push(this),a?this.loadSvg(i):this.loadImage(i),this.isSvg=a}}loadImage(t){var e=this;return(0,f.Z)(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(i){console.error('Error while loading image "'.concat(t,'":'),i)}e.loaded=!0})()}loadSvg(t){var e=this;return(0,f.Z)(function*(){var r=Bn.exec(t);if(r){var i=r[5];r[4]==="base64"?e.image=atob(i):e.image=decodeURIComponent(i)}else try{var a=yield e.document.fetch(t),o=yield a.text();e.image=o}catch(s){console.error('Error while loading image "'.concat(t,'":'),s)}e.loaded=!0})()}renderChildren(t){var{document:e,image:r,loaded:i}=this,a=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!i||!r||!s||!u)){if(t.save(),t.translate(a,o),this.isSvg){var c=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});c.document.documentElement.parent=this,c.render()}else{var p=this.image;e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:p.width,height:u,desiredHeight:p.height}),this.loaded&&(typeof p.complete=="undefined"||p.complete)&&t.drawImage(p,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new kt(t,e,t+r,e+i)}}class cn extends Oe{constructor(){super(...arguments),this.type="symbol"}render(t){}}class vn{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,e){var r=this;return(0,f.Z)(function*(){try{var{document:i}=r,a=yield i.canvg.parser.load(e),o=a.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=i.createElement(s);i.definitions[t]=u})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}class Sr extends Ct{constructor(t,e,r){super(t,e,r),this.type="style";var i=Kt(Array.from(e.childNodes).map(o=>o.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),a=i.split("}");a.forEach(o=>{var s=o.trim();if(s){var u=s.split("{"),c=u[0].split(","),p=u[1].split(";");c.forEach(E=>{var O=E.trim();if(O){var m=t.styles[O]||{};if(p.forEach(L=>{var U=L.indexOf(":"),K=L.substr(0,U).trim(),G=L.substr(U+1,L.length-U).trim();K&&G&&(m[K]=new q(t,K,G))}),t.styles[O]=m,t.stylesSpecificity[O]=$e(O),O==="@font-face"){var D=m["font-family"].getString().replace(/"|'/g,""),V=m.src.getString().split(",");V.forEach(L=>{if(L.indexOf('format("svg")')>0){var U=W(L);U&&new vn(t).load(D,U)}})}}})}})}}Sr.parseExternalUrl=W;class gn extends Oe{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}path(t){var{element:e}=this;e&&e.path(t)}renderChildren(t){var{document:e,element:r}=this;if(r){var i=r;if(r.type==="symbol"&&(i=new Be(e,null),i.attributes.viewBox=new q(e,"viewBox",r.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new q(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new q(e,"overflow",r.getAttribute("overflow").getString()),i.children=r.children,r.styles.opacity=new q(e,"opacity",this.calculateOpacity())),i.type==="svg"){var a=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);a.hasValue()&&(i.attributes.width=new q(e,"width",a.getString())),o.hasValue()&&(i.attributes.height=new q(e,"height",o.getString()))}var s=i.parent;i.parent=this,i.render(t),i.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Te.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function tr(h,t,e,r,i,a){return h[e*r*4+t*4+a]}function er(h,t,e,r,i,a,o){h[e*r*4+t*4+a]=o}function Dt(h,t,e){var r=h[t];return r*e}function oe(h,t,e,r){return t+Math.cos(h)*e+Math.sin(h)*r}class br extends Ct{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var i=It(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var a=i[0];i=[.213+.787*a,.715-.715*a,.072-.072*a,0,0,.213-.213*a,.715+.285*a,.072-.072*a,0,0,.213-.213*a,.715-.715*a,.072+.928*a,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=i[0]*Math.PI/180;i=[oe(o,.213,.787,-.213),oe(o,.715,-.715,-.715),oe(o,.072,-.072,.928),0,0,oe(o,.213,-.213,.143),oe(o,.715,.285,.14),oe(o,.072,-.072,-.283),0,0,oe(o,.213,-.213,-.787),oe(o,.715,-.715,.715),oe(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=i,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,i,a){for(var{includeOpacity:o,matrix:s}=this,u=t.getImageData(0,0,i,a),c=0;c<a;c++)for(var p=0;p<i;p++){var E=tr(u.data,p,c,i,a,0),O=tr(u.data,p,c,i,a,1),m=tr(u.data,p,c,i,a,2),D=tr(u.data,p,c,i,a,3),V=Dt(s,0,E)+Dt(s,1,O)+Dt(s,2,m)+Dt(s,3,D)+Dt(s,4,1),L=Dt(s,5,E)+Dt(s,6,O)+Dt(s,7,m)+Dt(s,8,D)+Dt(s,9,1),U=Dt(s,10,E)+Dt(s,11,O)+Dt(s,12,m)+Dt(s,13,D)+Dt(s,14,1),K=Dt(s,15,E)+Dt(s,16,O)+Dt(s,17,m)+Dt(s,18,D)+Dt(s,19,1);o&&(V=0,L=0,U=0,K*=D/255),er(u.data,p,c,i,a,0,V),er(u.data,p,c,i,a,1,L),er(u.data,p,c,i,a,2,U),er(u.data,p,c,i,a,3,K)}t.clearRect(0,0,i,a),t.putImageData(u,0,0)}}class Xe extends Ct{constructor(){super(...arguments),this.type="mask"}apply(t,e){var{document:r}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),o=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!o&&!s){var u=new kt;this.children.forEach(D=>{u.addBoundingBox(D.getBoundingBox(t))}),i=Math.floor(u.x1),a=Math.floor(u.y1),o=Math.floor(u.width),s=Math.floor(u.height)}var c=this.removeStyles(e,Xe.ignoreStyles),p=r.createCanvas(i+o,a+s),E=p.getContext("2d");r.screen.setDefaults(E),this.renderChildren(E),new br(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(E,0,0,i+o,a+s);var O=r.createCanvas(i+o,a+s),m=O.getContext("2d");r.screen.setDefaults(m),e.render(m),m.globalCompositeOperation="destination-in",m.fillStyle=E.createPattern(p,"no-repeat"),m.fillRect(0,0,i+o,a+s),t.fillStyle=m.createPattern(O,"no-repeat"),t.fillRect(0,0,i+o,a+s),this.restoreStyles(e,c)}render(t){}}Xe.ignoreStyles=["mask","transform","clip-path"];var dn=()=>{};class pn extends Ct{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:i,closePath:a}=t;r&&(r.beginPath=dn,r.closePath=dn),Reflect.apply(i,t,[]),this.children.forEach(o=>{if(typeof o.path!="undefined"){var s=typeof o.elementTransform!="undefined"?o.elementTransform():null;s||(s=Te.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=a),s&&s.unapply(t)}}),Reflect.apply(a,t,[]),t.clip(),r&&(r.beginPath=i,r.closePath=a)}render(t){}}class We extends Ct{constructor(){super(...arguments),this.type="filter"}apply(t,e){var{document:r,children:i}=this,a=e.getBoundingBox(t);if(a){var o=0,s=0;i.forEach(U=>{var K=U.extraFilterDistance||0;o=Math.max(o,K),s=Math.max(s,K)});var u=Math.floor(a.width),c=Math.floor(a.height),p=u+2*o,E=c+2*s;if(!(p<1||E<1)){var O=Math.floor(a.x),m=Math.floor(a.y),D=this.removeStyles(e,We.ignoreStyles),V=r.createCanvas(p,E),L=V.getContext("2d");r.screen.setDefaults(L),L.translate(-O+o,-m+s),e.render(L),i.forEach(U=>{typeof U.apply=="function"&&U.apply(L,0,0,p,E)}),t.drawImage(V,0,0,p,E,O-o,m-s,p,E),this.restoreStyles(e,D)}}}render(t){}}We.ignoreStyles=["filter","transform","clip-path"];class yn extends Ct{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,i,a){}}class mn extends Ct{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,i,a){}}class xn extends Ct{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,i,a){}}class En extends Ct{constructor(t,e,r){super(t,e,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,e,r,i,a){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,c=t.canvas;c.id=o.getUniqueId(),u&&(c.style.display="none",u.appendChild(c)),he(c,e,r,i,a,s),u&&u.removeChild(c)}}class Tn extends Ct{constructor(){super(...arguments),this.type="title"}}class On extends Ct{constructor(){super(...arguments),this.type="desc"}}var Fn={svg:Be,rect:Er,circle:Xr,ellipse:Wr,line:Qr,polyline:Tr,polygon:Zr,path:xt,pattern:Kr,marker:kr,defs:Jr,linearGradient:qr,radialGradient:_r,stop:tn,animate:qe,animateColor:en,animateTransform:rn,font:nn,"font-face":an,"missing-glyph":sn,glyph:xr,text:se,tspan:Ye,tref:on,a:un,textPath:hn,image:fn,g:Je,symbol:cn,style:Sr,use:gn,mask:Xe,clipPath:pn,filter:We,feDropShadow:yn,feMorphology:mn,feComposite:xn,feColorMatrix:br,feGaussianBlur:En,title:Tn,desc:On};function Sn(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function Un(h){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Sn(Object(e),!0).forEach(function(r){(0,b.Z)(h,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(e)):Sn(Object(e)).forEach(function(r){Object.defineProperty(h,r,Object.getOwnPropertyDescriptor(e,r))})}return h}function jn(h,t){var e=document.createElement("canvas");return e.width=h,e.height=t,e}function Gn(h){return Cr.apply(this,arguments)}function Cr(){return Cr=(0,f.Z)(function*(h){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,i)=>{e.onload=()=>{r(e)},e.onerror=(a,o,s,u,c)=>{i(c)},e.src=h})}),Cr.apply(this,arguments)}class ue{constructor(t){var{rootEmSize:e=12,emSize:r=12,createCanvas:i=ue.createCanvas,createImage:a=ue.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,e){return typeof e=="boolean"?(r,i)=>t(r,typeof i=="boolean"?i:e):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:e}=this;e.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(t=>t.loaded)}isFontsLoaded(){return this.fonts.every(t=>t.loaded)}createDocumentElement(t){var e=this.createElement(t.documentElement);return e.root=!0,e.addStylesFromStyleDefinition(),this.documentElement=e,e}createElement(t){var e=t.nodeName.replace(/^[^:]+:/,""),r=ue.elementTypes[e];return typeof r!="undefined"?new r(this,t):new Yr(this,t)}createTextNode(t){return new Ln(this,t)}setViewBox(t){this.screen.setViewBox(Un({document:this},t))}}ue.createCanvas=jn,ue.createImage=Gn,ue.elementTypes=Fn;function bn(h,t){var e=Object.keys(h);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(h);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(h,i).enumerable})),e.push.apply(e,r)}return e}function Re(h){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?bn(Object(e),!0).forEach(function(r){(0,b.Z)(h,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(e)):bn(Object(e)).forEach(function(r){Object.defineProperty(h,r,Object.getOwnPropertyDescriptor(e,r))})}return h}class Ne{constructor(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new ke(r),this.screen=new He(t,r),this.options=r;var i=new ue(this,r),a=i.createDocumentElement(e);this.document=i,this.documentElement=a}static from(t,e){var r=arguments;return(0,f.Z)(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{},a=new ke(i),o=yield a.parse(e);return new Ne(t,o,i)})()}static fromString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new ke(r),a=i.parseFromString(e);return new Ne(t,a,r)}fork(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.from(t,e,Re(Re({},this.options),r))}forkString(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Ne.fromString(t,e,Re(Re({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,f.Z)(function*(){var r=t.length>0&&t[0]!==void 0?t[0]:{};e.start(Re({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:e,screen:r,options:i}=this;r.start(e,Re(Re({enableRedraw:!0},i),t))}stop(){this.screen.stop()}resize(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(t,e,r)}}}}]);