@everymatrix/stage-operator-profile-bonus-amount-graph 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/484.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunkoperator_profile_bonus_amount_graph=self.webpackChunkoperator_profile_bonus_amount_graph||[]).push([[484],{3857:function(d){(function(){var S,n,h,f,c,g;typeof performance<"u"&&null!==performance&&performance.now?d.exports=function(){return performance.now()}:typeof process<"u"&&null!==process&&process.hrtime?(d.exports=function(){return(S()-c)/1e6},n=process.hrtime,f=(S=function(){var y;return 1e9*(y=n())[0]+y[1]})(),g=1e9*process.uptime(),c=f-g):Date.now?(d.exports=function(){return Date.now()-h},h=Date.now()):(d.exports=function(){return(new Date).getTime()-h},h=(new Date).getTime())}).call(this)},3561:(d,S,n)=>{for(var h=n(3857),f=typeof window>"u"?global:window,c=["moz","webkit"],g="AnimationFrame",y=f["request"+g],T=f["cancel"+g]||f["cancelRequest"+g],x=0;!y&&x<c.length;x++)y=f[c[x]+"Request"+g],T=f[c[x]+"Cancel"+g]||f[c[x]+"CancelRequest"+g];if(!y||!T){var b=0,C=0,A=[];y=function(R){if(0===A.length){var M=h(),V=Math.max(0,16.666666666666668-(M-b));b=V+M,setTimeout(function(){var I=A.slice(0);A.length=0;for(var F=0;F<I.length;F++)if(!I[F].cancelled)try{I[F].callback(b)}catch(H){setTimeout(function(){throw H},0)}},Math.round(V))}return A.push({handle:++C,callback:R,cancelled:!1}),C},T=function(R){for(var M=0;M<A.length;M++)A[M].handle===R&&(A[M].cancelled=!0)}}d.exports=function(R){return y.call(f,R)},d.exports.cancel=function(){T.apply(f,arguments)},d.exports.polyfill=function(R){R||(R=f),R.requestAnimationFrame=y,R.cancelAnimationFrame=T}},4120:d=>{d.exports=function(S){this.ok=!1,this.alpha=1,"#"==S.charAt(0)&&(S=S.substr(1,6)),S=(S=S.replace(/ /g,"")).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 h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(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<h.length;f++){var g=h[f].process,y=h[f].re.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 1==x.length&&(x="0"+x),1==b.length&&(b="0"+b),1==C.length&&(C="0"+C),"#"+x+b+C},this.getHelpXML=function(){for(var x=new Array,b=0;b<h.length;b++)for(var C=h[b].example,A=0;A<C.length;A++)x[x.length]=C[A];for(var P in n)x[x.length]=P;var R=document.createElement("ul");for(R.setAttribute("id","rgbcolor-examples"),b=0;b<x.length;b++)try{var M=document.createElement("li"),V=new RGBColor(x[b]),I=document.createElement("div");I.style.cssText="margin: 3px; border: 1px solid black; background:"+V.toHex()+"; color:"+V.toHex(),I.appendChild(document.createTextNode("test"));var F=document.createTextNode(" "+x[b]+" -> "+V.toRGB()+" -> "+V.toHex());M.appendChild(I),M.appendChild(F),R.appendChild(M)}catch{}return R}}},509:(d,S,n)=>{"use strict";var h=n(9985),f=n(3691),c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(f(g)+" is not a function")}},2655:(d,S,n)=>{"use strict";var h=n(9429),f=n(3691),c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(f(g)+" is not a constructor")}},3550:(d,S,n)=>{"use strict";var h=n(9985),f=String,c=TypeError;d.exports=function(g){if("object"==typeof g||h(g))return g;throw new c("Can't set "+f(g)+" as a prototype")}},7370:(d,S,n)=>{"use strict";var h=n(4201),f=n(5391),c=n(2560).f,g=h("unscopables"),y=Array.prototype;void 0===y[g]&&c(y,g,{configurable:!0,value:f(null)}),d.exports=function(T){y[g][T]=!0}},1514:(d,S,n)=>{"use strict";var h=n(730).charAt;d.exports=function(f,c,g){return c+(g?h(f,c).length:1)}},767:(d,S,n)=>{"use strict";var h=n(3622),f=TypeError;d.exports=function(c,g){if(h(g,c))return c;throw new f("Incorrect invocation")}},5027:(d,S,n)=>{"use strict";var h=n(8999),f=String,c=TypeError;d.exports=function(g){if(h(g))return g;throw new c(f(g)+" is not an object")}},4328:(d,S,n)=>{"use strict";var h=n(5290),f=n(7578),c=n(6310),g=function(y){return function(T,x,b){var R,C=h(T),A=c(C),P=f(b,A);if(y&&x!=x){for(;A>P;)if((R=C[P++])!=R)return!0}else for(;A>P;P++)if((y||P in C)&&C[P]===x)return y||P||0;return!y&&-1}};d.exports={includes:g(!0),indexOf:g(!1)}},6834:(d,S,n)=>{"use strict";var h=n(3689);d.exports=function(f,c){var g=[][f];return!!g&&h(function(){g.call(null,c||function(){return 1},1)})}},8820:(d,S,n)=>{"use strict";var h=n(509),f=n(690),c=n(4413),g=n(6310),y=TypeError,T=function(x){return function(b,C,A,P){var R=f(b),M=c(R),V=g(R);h(C);var I=x?V-1:0,F=x?-1:1;if(A<2)for(;;){if(I in M){P=M[I],I+=F;break}if(I+=F,x?I<0:V<=I)throw new y("Reduce of empty array with no initial value")}for(;x?I>=0:V>I;I+=F)I in M&&(P=C(P,M[I],I,R));return P}};d.exports={left:T(!1),right:T(!0)}},9015:(d,S,n)=>{"use strict";var h=n(7578),f=n(6310),c=n(6522),g=Array,y=Math.max;d.exports=function(T,x,b){for(var C=f(T),A=h(x,C),P=h(void 0===b?C:b,C),R=g(y(P-A,0)),M=0;A<P;A++,M++)c(R,M,T[A]);return R.length=M,R}},6004:(d,S,n)=>{"use strict";var h=n(8844);d.exports=h([].slice)},6431:(d,S,n)=>{"use strict";var f=n(4201)("iterator"),c=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){c=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch{}d.exports=function(T,x){try{if(!x&&!c)return!1}catch{return!1}var b=!1;try{var C={};C[f]=function(){return{next:function(){return{done:b=!0}}}},T(C)}catch{}return b}},6648:(d,S,n)=>{"use strict";var h=n(8844),f=h({}.toString),c=h("".slice);d.exports=function(g){return c(f(g),8,-1)}},926:(d,S,n)=>{"use strict";var h=n(3043),f=n(9985),c=n(6648),y=n(4201)("toStringTag"),T=Object,x="Arguments"===c(function(){return arguments}());d.exports=h?c:function(C){var A,P,R;return void 0===C?"Undefined":null===C?"Null":"string"==typeof(P=function(C,A){try{return C[A]}catch{}}(A=T(C),y))?P:x?c(A):"Object"===(R=c(A))&&f(A.callee)?"Arguments":R}},8758:(d,S,n)=>{"use strict";var h=n(6812),f=n(9152),c=n(2474),g=n(2560);d.exports=function(y,T,x){for(var b=f(T),C=g.f,A=c.f,P=0;P<b.length;P++){var R=b[P];!h(y,R)&&(!x||!h(x,R))&&C(y,R,A(T,R))}}},7413:(d,S,n)=>{"use strict";var f=n(4201)("match");d.exports=function(c){var g=/./;try{"/./"[c](g)}catch{try{return g[f]=!1,"/./"[c](g)}catch{}}return!1}},1748:(d,S,n)=>{"use strict";var h=n(3689);d.exports=!h(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},7807:d=>{"use strict";d.exports=function(S,n){return{value:S,done:n}}},5773:(d,S,n)=>{"use strict";var h=n(7697),f=n(2560),c=n(5684);d.exports=h?function(g,y,T){return f.f(g,y,c(1,T))}:function(g,y,T){return g[y]=T,g}},5684:d=>{"use strict";d.exports=function(S,n){return{enumerable:!(1&S),configurable:!(2&S),writable:!(4&S),value:n}}},6522:(d,S,n)=>{"use strict";var h=n(8360),f=n(2560),c=n(5684);d.exports=function(g,y,T){var x=h(y);x in g?f.f(g,x,c(0,T)):g[x]=T}},2148:(d,S,n)=>{"use strict";var h=n(8702),f=n(2560);d.exports=function(c,g,y){return y.get&&h(y.get,g,{getter:!0}),y.set&&h(y.set,g,{setter:!0}),f.f(c,g,y)}},1880:(d,S,n)=>{"use strict";var h=n(9985),f=n(2560),c=n(8702),g=n(5014);d.exports=function(y,T,x,b){b||(b={});var C=b.enumerable,A=void 0!==b.name?b.name:T;if(h(x)&&c(x,A,b),b.global)C?y[T]=x:g(T,x);else{try{b.unsafe?y[T]&&(C=!0):delete y[T]}catch{}C?y[T]=x:f.f(y,T,{value:x,enumerable:!1,configurable:!b.nonConfigurable,writable:!b.nonWritable})}return y}},5014:(d,S,n)=>{"use strict";var h=n(9037),f=Object.defineProperty;d.exports=function(c,g){try{f(h,c,{value:g,configurable:!0,writable:!0})}catch{h[c]=g}return g}},7697:(d,S,n)=>{"use strict";var h=n(3689);d.exports=!h(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},2659:d=>{"use strict";var S="object"==typeof document&&document.all;d.exports={all:S,IS_HTMLDDA:typeof S>"u"&&void 0!==S}},6420:(d,S,n)=>{"use strict";var h=n(9037),f=n(8999),c=h.document,g=f(c)&&f(c.createElement);d.exports=function(y){return g?c.createElement(y):{}}},6338: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}},3265:(d,S,n)=>{"use strict";var f=n(6420)("span").classList,c=f&&f.constructor&&f.constructor.prototype;d.exports=c===Object.prototype?void 0:c},2532:(d,S,n)=>{"use strict";var h=n(8563),f=n(806);d.exports=!h&&!f&&"object"==typeof window&&"object"==typeof document},8563:d=>{"use strict";d.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},3221:(d,S,n)=>{"use strict";var h=n(71);d.exports=/ipad|iphone|ipod/i.test(h)&&typeof Pebble<"u"},4764:(d,S,n)=>{"use strict";var h=n(71);d.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(h)},806:(d,S,n)=>{"use strict";var h=n(9037),f=n(6648);d.exports="process"===f(h.process)},7486:(d,S,n)=>{"use strict";var h=n(71);d.exports=/web0s(?!.*chrome)/i.test(h)},71:d=>{"use strict";d.exports=typeof navigator<"u"&&String(navigator.userAgent)||""},3615:(d,S,n)=>{"use strict";var x,b,h=n(9037),f=n(71),c=h.process,g=h.Deno,y=c&&c.versions||g&&g.version,T=y&&y.v8;T&&(b=(x=T.split("."))[0]>0&&x[0]<4?1:+(x[0]+x[1])),!b&&f&&(!(x=f.match(/Edge\/(\d+)/))||x[1]>=74)&&(x=f.match(/Chrome\/(\d+)/))&&(b=+x[1]),d.exports=b},2739:d=>{"use strict";d.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:(d,S,n)=>{"use strict";var h=n(9037),f=n(2474).f,c=n(5773),g=n(1880),y=n(5014),T=n(8758),x=n(5266);d.exports=function(b,C){var V,I,F,H,W,A=b.target,P=b.global,R=b.stat;if(V=P?h:R?h[A]||y(A,{}):(h[A]||{}).prototype)for(I in C){if(H=C[I],F=b.dontCallGetSet?(W=f(V,I))&&W.value:V[I],!x(P?I:A+(R?".":"#")+I,b.forced)&&void 0!==F){if(typeof H==typeof F)continue;T(H,F)}(b.sham||F&&F.sham)&&c(H,"sham",!0),g(V,I,H,b)}}},3689:d=>{"use strict";d.exports=function(S){try{return!!S()}catch{return!0}}},8678:(d,S,n)=>{"use strict";n(4043);var h=n(6576),f=n(1880),c=n(6308),g=n(3689),y=n(4201),T=n(5773),x=y("species"),b=RegExp.prototype;d.exports=function(C,A,P,R){var M=y(C),V=!g(function(){var W={};return W[M]=function(){return 7},7!==""[C](W)}),I=V&&!g(function(){var W=!1,L=/a/;return"split"===C&&((L={}).constructor={},L.constructor[x]=function(){return L},L.flags="",L[M]=/./[M]),L.exec=function(){return W=!0,null},L[M](""),!W});if(!V||!I||P){var F=h(/./[M]),H=A(M,""[C],function(W,L,Y,$,q){var it=h(W),k=L.exec;return k===c||k===b.exec?V&&!q?{done:!0,value:F(L,Y,$)}:{done:!0,value:it(Y,L,$)}:{done:!1}});f(String.prototype,C,H[0]),f(b,M,H[1])}R&&T(b[M],"sham",!0)}},1735:(d,S,n)=>{"use strict";var h=n(7215),f=Function.prototype,c=f.apply,g=f.call;d.exports="object"==typeof Reflect&&Reflect.apply||(h?g.bind(c):function(){return g.apply(c,arguments)})},4071:(d,S,n)=>{"use strict";var h=n(6576),f=n(509),c=n(7215),g=h(h.bind);d.exports=function(y,T){return f(y),void 0===T?y:c?g(y,T):function(){return y.apply(T,arguments)}}},7215:(d,S,n)=>{"use strict";var h=n(3689);d.exports=!h(function(){var f=function(){}.bind();return"function"!=typeof f||f.hasOwnProperty("prototype")})},2615:(d,S,n)=>{"use strict";var h=n(7215),f=Function.prototype.call;d.exports=h?f.bind(f):function(){return f.apply(f,arguments)}},1236:(d,S,n)=>{"use strict";var h=n(7697),f=n(6812),c=Function.prototype,g=h&&Object.getOwnPropertyDescriptor,y=f(c,"name"),T=y&&"something"===function(){}.name,x=y&&(!h||h&&g(c,"name").configurable);d.exports={EXISTS:y,PROPER:T,CONFIGURABLE:x}},2743:(d,S,n)=>{"use strict";var h=n(8844),f=n(509);d.exports=function(c,g,y){try{return h(f(Object.getOwnPropertyDescriptor(c,g)[y]))}catch{}}},6576:(d,S,n)=>{"use strict";var h=n(6648),f=n(8844);d.exports=function(c){if("Function"===h(c))return f(c)}},8844:(d,S,n)=>{"use strict";var h=n(7215),f=Function.prototype,c=f.call,g=h&&f.bind.bind(c,c);d.exports=h?g:function(y){return function(){return c.apply(y,arguments)}}},6058:(d,S,n)=>{"use strict";var h=n(9037),f=n(9985);d.exports=function(g,y){return arguments.length<2?function(g){return f(g)?g:void 0}(h[g]):h[g]&&h[g][y]}},1664:(d,S,n)=>{"use strict";var h=n(926),f=n(4849),c=n(981),g=n(9478),T=n(4201)("iterator");d.exports=function(x){if(!c(x))return f(x,T)||f(x,"@@iterator")||g[h(x)]}},5185:(d,S,n)=>{"use strict";var h=n(2615),f=n(509),c=n(5027),g=n(3691),y=n(1664),T=TypeError;d.exports=function(x,b){var C=arguments.length<2?y(x):b;if(f(C))return c(h(C,x));throw new T(g(x)+" is not iterable")}},4849:(d,S,n)=>{"use strict";var h=n(509),f=n(981);d.exports=function(c,g){var y=c[g];return f(y)?void 0:h(y)}},7017:(d,S,n)=>{"use strict";var h=n(8844),f=n(690),c=Math.floor,g=h("".charAt),y=h("".replace),T=h("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,b=/\$([$&'`]|\d{1,2})/g;d.exports=function(C,A,P,R,M,V){var I=P+C.length,F=R.length,H=b;return void 0!==M&&(M=f(M),H=x),y(V,H,function(W,L){var Y;switch(g(L,0)){case"$":return"$";case"&":return C;case"`":return T(A,0,P);case"'":return T(A,I);case"<":Y=M[T(L,1,-1)];break;default:var $=+L;if(0===$)return W;if($>F){var q=c($/10);return 0===q?W:q<=F?void 0===R[q-1]?g(L,1):R[q-1]+g(L,1):W}Y=R[$-1]}return void 0===Y?"":Y})}},9037:function(d){"use strict";var S=function(n){return n&&n.Math===Math&&n};d.exports=S("object"==typeof globalThis&&globalThis)||S("object"==typeof window&&window)||S("object"==typeof self&&self)||S("object"==typeof global&&global)||S("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6812:(d,S,n)=>{"use strict";var h=n(8844),f=n(690),c=h({}.hasOwnProperty);d.exports=Object.hasOwn||function(y,T){return c(f(y),T)}},7248:d=>{"use strict";d.exports={}},920:d=>{"use strict";d.exports=function(S,n){try{1===arguments.length?console.error(S):console.error(S,n)}catch{}}},2688:(d,S,n)=>{"use strict";var h=n(6058);d.exports=h("document","documentElement")},8506:(d,S,n)=>{"use strict";var h=n(7697),f=n(3689),c=n(6420);d.exports=!h&&!f(function(){return 7!==Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a})},4413:(d,S,n)=>{"use strict";var h=n(8844),f=n(3689),c=n(6648),g=Object,y=h("".split);d.exports=f(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return"String"===c(T)?y(T,""):g(T)}:g},6738:(d,S,n)=>{"use strict";var h=n(8844),f=n(9985),c=n(4091),g=h(Function.toString);f(c.inspectSource)||(c.inspectSource=function(y){return g(y)}),d.exports=c.inspectSource},618:(d,S,n)=>{"use strict";var R,M,V,h=n(9834),f=n(9037),c=n(8999),g=n(5773),y=n(6812),T=n(4091),x=n(2713),b=n(7248),C="Object already initialized",A=f.TypeError;if(h||T.state){var H=T.state||(T.state=new(0,f.WeakMap));H.get=H.get,H.has=H.has,H.set=H.set,R=function(L,Y){if(H.has(L))throw new A(C);return Y.facade=L,H.set(L,Y),Y},M=function(L){return H.get(L)||{}},V=function(L){return H.has(L)}}else{var W=x("state");b[W]=!0,R=function(L,Y){if(y(L,W))throw new A(C);return Y.facade=L,g(L,W,Y),Y},M=function(L){return y(L,W)?L[W]:{}},V=function(L){return y(L,W)}}d.exports={set:R,get:M,has:V,enforce:function(L){return V(L)?M(L):R(L,{})},getterFor:function(L){return function(Y){var $;if(!c(Y)||($=M(Y)).type!==L)throw new A("Incompatible receiver, "+L+" required");return $}}}},3292:(d,S,n)=>{"use strict";var h=n(4201),f=n(9478),c=h("iterator"),g=Array.prototype;d.exports=function(y){return void 0!==y&&(f.Array===y||g[c]===y)}},2297:(d,S,n)=>{"use strict";var h=n(6648);d.exports=Array.isArray||function(c){return"Array"===h(c)}},9985:(d,S,n)=>{"use strict";var h=n(2659),f=h.all;d.exports=h.IS_HTMLDDA?function(c){return"function"==typeof c||c===f}:function(c){return"function"==typeof c}},9429:(d,S,n)=>{"use strict";var h=n(8844),f=n(3689),c=n(9985),g=n(926),y=n(6058),T=n(6738),x=function(){},b=[],C=y("Reflect","construct"),A=/^\s*(?:class|function)\b/,P=h(A.exec),R=!A.test(x),M=function(F){if(!c(F))return!1;try{return C(x,b,F),!0}catch{return!1}},V=function(F){if(!c(F))return!1;switch(g(F)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return R||!!P(A,T(F))}catch{return!0}};V.sham=!0,d.exports=!C||f(function(){var I;return M(M.call)||!M(Object)||!M(function(){I=!0})||I})?V:M},5266:(d,S,n)=>{"use strict";var h=n(3689),f=n(9985),c=/#|\.prototype\./,g=function(C,A){var P=T[y(C)];return P===b||P!==x&&(f(A)?h(A):!!A)},y=g.normalize=function(C){return String(C).replace(c,".").toLowerCase()},T=g.data={},x=g.NATIVE="N",b=g.POLYFILL="P";d.exports=g},981:d=>{"use strict";d.exports=function(S){return null==S}},8999:(d,S,n)=>{"use strict";var h=n(9985),f=n(2659),c=f.all;d.exports=f.IS_HTMLDDA?function(g){return"object"==typeof g?null!==g:h(g)||g===c}:function(g){return"object"==typeof g?null!==g:h(g)}},3931:d=>{"use strict";d.exports=!1},1245:(d,S,n)=>{"use strict";var h=n(8999),f=n(6648),g=n(4201)("match");d.exports=function(y){var T;return h(y)&&(void 0!==(T=y[g])?!!T:"RegExp"===f(y))}},734:(d,S,n)=>{"use strict";var h=n(6058),f=n(9985),c=n(3622),g=n(9525),y=Object;d.exports=g?function(T){return"symbol"==typeof T}:function(T){var x=h("Symbol");return f(x)&&c(x.prototype,y(T))}},8734:(d,S,n)=>{"use strict";var h=n(4071),f=n(2615),c=n(5027),g=n(3691),y=n(3292),T=n(6310),x=n(3622),b=n(5185),C=n(1664),A=n(2125),P=TypeError,R=function(V,I){this.stopped=V,this.result=I},M=R.prototype;d.exports=function(V,I,F){var it,k,st,pt,ft,gt,rt,W=!(!F||!F.AS_ENTRIES),L=!(!F||!F.IS_RECORD),Y=!(!F||!F.IS_ITERATOR),$=!(!F||!F.INTERRUPTED),q=h(I,F&&F.that),ut=function(J){return it&&A(it,"normal",J),new R(!0,J)},X=function(J){return W?(c(J),$?q(J[0],J[1],ut):q(J[0],J[1])):$?q(J,ut):q(J)};if(L)it=V.iterator;else if(Y)it=V;else{if(!(k=C(V)))throw new P(g(V)+" is not iterable");if(y(k)){for(st=0,pt=T(V);pt>st;st++)if((ft=X(V[st]))&&x(M,ft))return ft;return new R(!1)}it=b(V,k)}for(gt=L?V.next:it.next;!(rt=f(gt,it)).done;){try{ft=X(rt.value)}catch(J){A(it,"throw",J)}if("object"==typeof ft&&ft&&x(M,ft))return ft}return new R(!1)}},2125:(d,S,n)=>{"use strict";var h=n(2615),f=n(5027),c=n(4849);d.exports=function(g,y,T){var x,b;f(g);try{if(!(x=c(g,"return"))){if("throw"===y)throw T;return T}x=h(x,g)}catch(C){b=!0,x=C}if("throw"===y)throw T;if(b)throw x;return f(x),T}},974:(d,S,n)=>{"use strict";var h=n(2013).IteratorPrototype,f=n(5391),c=n(5684),g=n(5997),y=n(9478),T=function(){return this};d.exports=function(x,b,C,A){var P=b+" Iterator";return x.prototype=f(h,{next:c(+!A,C)}),g(x,P,!1,!0),y[P]=T,x}},1934:(d,S,n)=>{"use strict";var h=n(9989),f=n(2615),c=n(3931),g=n(1236),y=n(9985),T=n(974),x=n(1868),b=n(9385),C=n(5997),A=n(5773),P=n(1880),R=n(4201),M=n(9478),V=n(2013),I=g.PROPER,F=g.CONFIGURABLE,H=V.IteratorPrototype,W=V.BUGGY_SAFARI_ITERATORS,L=R("iterator"),Y="keys",$="values",q="entries",it=function(){return this};d.exports=function(k,st,pt,ft,gt,rt,ut){T(pt,st,ft);var bt,Et,w,X=function(Rt){if(Rt===gt&&vt)return vt;if(!W&&Rt&&Rt in Z)return Z[Rt];switch(Rt){case Y:case $:case q:return function(){return new pt(this,Rt)}}return function(){return new pt(this)}},J=st+" Iterator",ht=!1,Z=k.prototype,_=Z[L]||Z["@@iterator"]||gt&&Z[gt],vt=!W&&_||X(gt),Pt="Array"===st&&Z.entries||_;if(Pt&&(bt=x(Pt.call(new k)))!==Object.prototype&&bt.next&&(!c&&x(bt)!==H&&(b?b(bt,H):y(bt[L])||P(bt,L,it)),C(bt,J,!0,!0),c&&(M[J]=it)),I&&gt===$&&_&&_.name!==$&&(!c&&F?A(Z,"name",$):(ht=!0,vt=function(){return f(_,this)})),gt)if(Et={values:X($),keys:rt?vt:X(Y),entries:X(q)},ut)for(w in Et)(W||ht||!(w in Z))&&P(Z,w,Et[w]);else h({target:st,proto:!0,forced:W||ht},Et);return(!c||ut)&&Z[L]!==vt&&P(Z,L,vt,{name:gt}),M[st]=vt,Et}},2013:(d,S,n)=>{"use strict";var P,R,M,h=n(3689),f=n(9985),c=n(8999),g=n(5391),y=n(1868),T=n(1880),x=n(4201),b=n(3931),C=x("iterator"),A=!1;[].keys&&("next"in(M=[].keys())?(R=y(y(M)))!==Object.prototype&&(P=R):A=!0),!c(P)||h(function(){var I={};return P[C].call(I)!==I})?P={}:b&&(P=g(P)),f(P[C])||T(P,C,function(){return this}),d.exports={IteratorPrototype:P,BUGGY_SAFARI_ITERATORS:A}},9478:d=>{"use strict";d.exports={}},6310:(d,S,n)=>{"use strict";var h=n(3126);d.exports=function(f){return h(f.length)}},8702:(d,S,n)=>{"use strict";var h=n(8844),f=n(3689),c=n(9985),g=n(6812),y=n(7697),T=n(1236).CONFIGURABLE,x=n(6738),b=n(618),C=b.enforce,A=b.get,P=String,R=Object.defineProperty,M=h("".slice),V=h("".replace),I=h([].join),F=y&&!f(function(){return 8!==R(function(){},"length",{value:8}).length}),H=String(String).split("String"),W=d.exports=function(L,Y,$){"Symbol("===M(P(Y),0,7)&&(Y="["+V(P(Y),/^Symbol\(([^)]*)\)/,"$1")+"]"),$&&$.getter&&(Y="get "+Y),$&&$.setter&&(Y="set "+Y),(!g(L,"name")||T&&L.name!==Y)&&(y?R(L,"name",{value:Y,configurable:!0}):L.name=Y),F&&$&&g($,"arity")&&L.length!==$.arity&&R(L,"length",{value:$.arity});try{$&&g($,"constructor")&&$.constructor?y&&R(L,"prototype",{writable:!1}):L.prototype&&(L.prototype=void 0)}catch{}var q=C(L);return g(q,"source")||(q.source=I(H,"string"==typeof Y?Y:"")),L};Function.prototype.toString=W(function(){return c(this)&&A(this).source||x(this)},"toString")},8828:d=>{"use strict";var S=Math.ceil,n=Math.floor;d.exports=Math.trunc||function(f){var c=+f;return(c>0?n:S)(c)}},231:(d,S,n)=>{"use strict";var F,H,W,L,Y,h=n(9037),f=n(4071),c=n(2474).f,g=n(9886).set,y=n(4410),T=n(4764),x=n(3221),b=n(7486),C=n(806),A=h.MutationObserver||h.WebKitMutationObserver,P=h.document,R=h.process,M=h.Promise,V=c(h,"queueMicrotask"),I=V&&V.value;if(!I){var $=new y,q=function(){var it,k;for(C&&(it=R.domain)&&it.exit();k=$.get();)try{k()}catch(st){throw $.head&&F(),st}it&&it.enter()};T||C||b||!A||!P?!x&&M&&M.resolve?((L=M.resolve(void 0)).constructor=M,Y=f(L.then,L),F=function(){Y(q)}):C?F=function(){R.nextTick(q)}:(g=f(g,h),F=function(){g(q)}):(H=!0,W=P.createTextNode(""),new A(q).observe(W,{characterData:!0}),F=function(){W.data=H=!H}),I=function(it){$.head||F(),$.add(it)}}d.exports=I},8742:(d,S,n)=>{"use strict";var h=n(509),f=TypeError,c=function(g){var y,T;this.promise=new g(function(x,b){if(void 0!==y||void 0!==T)throw new f("Bad Promise constructor");y=x,T=b}),this.resolve=h(y),this.reject=h(T)};d.exports.f=function(g){return new c(g)}},2124:(d,S,n)=>{"use strict";var h=n(1245),f=TypeError;d.exports=function(c){if(h(c))throw new f("The method doesn't accept regular expressions");return c}},5391:(d,S,n)=>{"use strict";var H,h=n(5027),f=n(8920),c=n(2739),g=n(7248),y=n(2688),T=n(6420),x=n(2713),A="prototype",P="script",R=x("IE_PROTO"),M=function(){},V=function(L){return"<"+P+">"+L+"</"+P+">"},I=function(L){L.write(V("")),L.close();var Y=L.parentWindow.Object;return L=null,Y},W=function(){try{H=new ActiveXObject("htmlfile")}catch{}W=typeof document<"u"?document.domain&&H?I(H):function(){var $,L=T("iframe"),Y="java"+P+":";return L.style.display="none",y.appendChild(L),L.src=String(Y),($=L.contentWindow.document).open(),$.write(V("document.F=Object")),$.close(),$.F}():I(H);for(var L=c.length;L--;)delete W[A][c[L]];return W()};g[R]=!0,d.exports=Object.create||function(Y,$){var q;return null!==Y?(M[A]=h(Y),q=new M,M[A]=null,q[R]=Y):q=W(),void 0===$?q:f.f(q,$)}},8920:(d,S,n)=>{"use strict";var h=n(7697),f=n(5648),c=n(2560),g=n(5027),y=n(5290),T=n(300);S.f=h&&!f?Object.defineProperties:function(b,C){g(b);for(var V,A=y(C),P=T(C),R=P.length,M=0;R>M;)c.f(b,V=P[M++],A[V]);return b}},2560:(d,S,n)=>{"use strict";var h=n(7697),f=n(8506),c=n(5648),g=n(5027),y=n(8360),T=TypeError,x=Object.defineProperty,b=Object.getOwnPropertyDescriptor,C="enumerable",A="configurable",P="writable";S.f=h?c?function(M,V,I){if(g(M),V=y(V),g(I),"function"==typeof M&&"prototype"===V&&"value"in I&&P in I&&!I[P]){var F=b(M,V);F&&F[P]&&(M[V]=I.value,I={configurable:A in I?I[A]:F[A],enumerable:C in I?I[C]:F[C],writable:!1})}return x(M,V,I)}:x:function(M,V,I){if(g(M),V=y(V),g(I),f)try{return x(M,V,I)}catch{}if("get"in I||"set"in I)throw new T("Accessors not supported");return"value"in I&&(M[V]=I.value),M}},2474:(d,S,n)=>{"use strict";var h=n(7697),f=n(2615),c=n(9556),g=n(5684),y=n(5290),T=n(8360),x=n(6812),b=n(8506),C=Object.getOwnPropertyDescriptor;S.f=h?C:function(P,R){if(P=y(P),R=T(R),b)try{return C(P,R)}catch{}if(x(P,R))return g(!f(c.f,P,R),P[R])}},2741:(d,S,n)=>{"use strict";var h=n(4948),c=n(2739).concat("length","prototype");S.f=Object.getOwnPropertyNames||function(y){return h(y,c)}},7518:(d,S)=>{"use strict";S.f=Object.getOwnPropertySymbols},1868:(d,S,n)=>{"use strict";var h=n(6812),f=n(9985),c=n(690),g=n(2713),y=n(1748),T=g("IE_PROTO"),x=Object,b=x.prototype;d.exports=y?x.getPrototypeOf:function(C){var A=c(C);if(h(A,T))return A[T];var P=A.constructor;return f(P)&&A instanceof P?P.prototype:A instanceof x?b:null}},3622:(d,S,n)=>{"use strict";var h=n(8844);d.exports=h({}.isPrototypeOf)},4948:(d,S,n)=>{"use strict";var h=n(8844),f=n(6812),c=n(5290),g=n(4328).indexOf,y=n(7248),T=h([].push);d.exports=function(x,b){var R,C=c(x),A=0,P=[];for(R in C)!f(y,R)&&f(C,R)&&T(P,R);for(;b.length>A;)f(C,R=b[A++])&&(~g(P,R)||T(P,R));return P}},300:(d,S,n)=>{"use strict";var h=n(4948),f=n(2739);d.exports=Object.keys||function(g){return h(g,f)}},9556:(d,S)=>{"use strict";var n={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!n.call({1:2},1);S.f=f?function(g){var y=h(this,g);return!!y&&y.enumerable}:n},9385:(d,S,n)=>{"use strict";var h=n(2743),f=n(5027),c=n(3550);d.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var T,g=!1,y={};try{(T=h(Object.prototype,"__proto__","set"))(y,[]),g=y instanceof Array}catch{}return function(b,C){return f(b),c(C),g?T(b,C):b.__proto__=C,b}}():void 0)},5899:(d,S,n)=>{"use strict";var h=n(2615),f=n(9985),c=n(8999),g=TypeError;d.exports=function(y,T){var x,b;if("string"===T&&f(x=y.toString)&&!c(b=h(x,y))||f(x=y.valueOf)&&!c(b=h(x,y))||"string"!==T&&f(x=y.toString)&&!c(b=h(x,y)))return b;throw new g("Can't convert object to primitive value")}},9152:(d,S,n)=>{"use strict";var h=n(6058),f=n(8844),c=n(2741),g=n(7518),y=n(5027),T=f([].concat);d.exports=h("Reflect","ownKeys")||function(b){var C=c.f(y(b)),A=g.f;return A?T(C,A(b)):C}},9302:d=>{"use strict";d.exports=function(S){try{return{error:!1,value:S()}}catch(n){return{error:!0,value:n}}}},7073:(d,S,n)=>{"use strict";var h=n(9037),f=n(7919),c=n(9985),g=n(5266),y=n(6738),T=n(4201),x=n(2532),b=n(8563),C=n(3931),A=n(3615),P=f&&f.prototype,R=T("species"),M=!1,V=c(h.PromiseRejectionEvent),I=g("Promise",function(){var F=y(f),H=F!==String(f);if(!H&&66===A||C&&(!P.catch||!P.finally))return!0;if(!A||A<51||!/native code/.test(F)){var W=new f(function($){$(1)}),L=function($){$(function(){},function(){})};if((W.constructor={})[R]=L,!(M=W.then(function(){})instanceof L))return!0}return!H&&(x||b)&&!V});d.exports={CONSTRUCTOR:I,REJECTION_EVENT:V,SUBCLASSING:M}},7919:(d,S,n)=>{"use strict";var h=n(9037);d.exports=h.Promise},2945:(d,S,n)=>{"use strict";var h=n(5027),f=n(8999),c=n(8742);d.exports=function(g,y){if(h(g),f(y)&&y.constructor===g)return y;var T=c.f(g);return(0,T.resolve)(y),T.promise}},562:(d,S,n)=>{"use strict";var h=n(7919),f=n(6431),c=n(7073).CONSTRUCTOR;d.exports=c||!f(function(g){h.all(g).then(void 0,function(){})})},4410:d=>{"use strict";var S=function(){this.head=null,this.tail=null};S.prototype={add:function(n){var h={item:n,next:null},f=this.tail;f?f.next=h:this.head=h,this.tail=h},get:function(){var n=this.head;if(n)return null===(this.head=n.next)&&(this.tail=null),n.item}},d.exports=S},6100:(d,S,n)=>{"use strict";var h=n(2615),f=n(5027),c=n(9985),g=n(6648),y=n(6308),T=TypeError;d.exports=function(x,b){var C=x.exec;if(c(C)){var A=h(C,x,b);return null!==A&&f(A),A}if("RegExp"===g(x))return h(y,x,b);throw new T("RegExp#exec called on incompatible receiver")}},6308:(d,S,n)=>{"use strict";var q,it,h=n(2615),f=n(8844),c=n(4327),g=n(9633),y=n(7901),T=n(3430),x=n(5391),b=n(618).get,C=n(2100),A=n(6422),P=T("native-string-replace",String.prototype.replace),R=RegExp.prototype.exec,M=R,V=f("".charAt),I=f("".indexOf),F=f("".replace),H=f("".slice),W=(it=/b*/g,h(R,q=/a/,"a"),h(R,it,"a"),0!==q.lastIndex||0!==it.lastIndex),L=y.BROKEN_CARET,Y=void 0!==/()??/.exec("")[1];(W||Y||L||C||A)&&(M=function(it){var gt,rt,ut,X,J,ht,Z,k=this,st=b(k),pt=c(it),ft=st.raw;if(ft)return ft.lastIndex=k.lastIndex,gt=h(M,ft,pt),k.lastIndex=ft.lastIndex,gt;var _=st.groups,vt=L&&k.sticky,Pt=h(g,k),bt=k.source,Et=0,w=pt;if(vt&&(Pt=F(Pt,"y",""),-1===I(Pt,"g")&&(Pt+="g"),w=H(pt,k.lastIndex),k.lastIndex>0&&(!k.multiline||k.multiline&&"\n"!==V(pt,k.lastIndex-1))&&(bt="(?: "+bt+")",w=" "+w,Et++),rt=new RegExp("^(?:"+bt+")",Pt)),Y&&(rt=new RegExp("^"+bt+"$(?!\\s)",Pt)),W&&(ut=k.lastIndex),X=h(R,vt?rt:k,w),vt?X?(X.input=H(X.input,Et),X[0]=H(X[0],Et),X.index=k.lastIndex,k.lastIndex+=X[0].length):k.lastIndex=0:W&&X&&(k.lastIndex=k.global?X.index+X[0].length:ut),Y&&X&&X.length>1&&h(P,X[0],rt,function(){for(J=1;J<arguments.length-2;J++)void 0===arguments[J]&&(X[J]=void 0)}),X&&_)for(X.groups=ht=x(null),J=0;J<_.length;J++)ht[(Z=_[J])[0]]=X[Z[1]];return X}),d.exports=M},9633:(d,S,n)=>{"use strict";var h=n(5027);d.exports=function(){var f=h(this),c="";return f.hasIndices&&(c+="d"),f.global&&(c+="g"),f.ignoreCase&&(c+="i"),f.multiline&&(c+="m"),f.dotAll&&(c+="s"),f.unicode&&(c+="u"),f.unicodeSets&&(c+="v"),f.sticky&&(c+="y"),c}},3477:(d,S,n)=>{"use strict";var h=n(2615),f=n(6812),c=n(3622),g=n(9633),y=RegExp.prototype;d.exports=function(T){var x=T.flags;return void 0!==x||"flags"in y||f(T,"flags")||!c(y,T)?x:h(g,T)}},7901:(d,S,n)=>{"use strict";var h=n(3689),c=n(9037).RegExp,g=h(function(){var x=c("a","y");return x.lastIndex=2,null!==x.exec("abcd")}),y=g||h(function(){return!c("a","y").sticky}),T=g||h(function(){var x=c("^r","gy");return x.lastIndex=2,null!==x.exec("str")});d.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},2100:(d,S,n)=>{"use strict";var h=n(3689),c=n(9037).RegExp;d.exports=h(function(){var g=c(".","s");return!(g.dotAll&&g.test("\n")&&"s"===g.flags)})},6422:(d,S,n)=>{"use strict";var h=n(3689),c=n(9037).RegExp;d.exports=h(function(){var g=c("(?<a>b)","g");return"b"!==g.exec("b").groups.a||"bc"!=="b".replace(g,"$<a>c")})},4684:(d,S,n)=>{"use strict";var h=n(981),f=TypeError;d.exports=function(c){if(h(c))throw new f("Can't call method on "+c);return c}},4241:(d,S,n)=>{"use strict";var h=n(6058),f=n(2148),c=n(4201),g=n(7697),y=c("species");d.exports=function(T){var x=h(T);g&&x&&!x[y]&&f(x,y,{configurable:!0,get:function(){return this}})}},5997:(d,S,n)=>{"use strict";var h=n(2560).f,f=n(6812),g=n(4201)("toStringTag");d.exports=function(y,T,x){y&&!x&&(y=y.prototype),y&&!f(y,g)&&h(y,g,{configurable:!0,value:T})}},2713:(d,S,n)=>{"use strict";var h=n(3430),f=n(4630),c=h("keys");d.exports=function(g){return c[g]||(c[g]=f(g))}},4091:(d,S,n)=>{"use strict";var h=n(9037),f=n(5014),c="__core-js_shared__",g=h[c]||f(c,{});d.exports=g},3430:(d,S,n)=>{"use strict";var h=n(3931),f=n(4091);(d.exports=function(c,g){return f[c]||(f[c]=void 0!==g?g:{})})("versions",[]).push({version:"3.34.0",mode:h?"pure":"global",copyright:"\xa9 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6373:(d,S,n)=>{"use strict";var h=n(5027),f=n(2655),c=n(981),y=n(4201)("species");d.exports=function(T,x){var C,b=h(T).constructor;return void 0===b||c(C=h(b)[y])?x:f(C)}},730:(d,S,n)=>{"use strict";var h=n(8844),f=n(8700),c=n(4327),g=n(4684),y=h("".charAt),T=h("".charCodeAt),x=h("".slice),b=function(C){return function(A,P){var I,F,R=c(g(A)),M=f(P),V=R.length;return M<0||M>=V?C?"":void 0:(I=T(R,M))<55296||I>56319||M+1===V||(F=T(R,M+1))<56320||F>57343?C?y(R,M):I:C?x(R,M,M+2):F-56320+(I-55296<<10)+65536}};d.exports={codeAt:b(!1),charAt:b(!0)}},5984:(d,S,n)=>{"use strict";var h=n(1236).PROPER,f=n(3689),c=n(6350);d.exports=function(y){return f(function(){return!!c[y]()||"\u200b\x85\u180e"!=="\u200b\x85\u180e"[y]()||h&&c[y].name!==y})}},1435:(d,S,n)=>{"use strict";var h=n(8844),f=n(4684),c=n(4327),g=n(6350),y=h("".replace),T=RegExp("^["+g+"]+"),x=RegExp("(^|[^"+g+"])["+g+"]+$"),b=function(C){return function(A){var P=c(f(A));return 1&C&&(P=y(P,T,"")),2&C&&(P=y(P,x,"$1")),P}};d.exports={start:b(1),end:b(2),trim:b(3)}},146:(d,S,n)=>{"use strict";var h=n(3615),f=n(3689),g=n(9037).String;d.exports=!!Object.getOwnPropertySymbols&&!f(function(){var y=Symbol("symbol detection");return!g(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&h&&h<41})},9886:(d,S,n)=>{"use strict";var it,k,st,pt,h=n(9037),f=n(1735),c=n(4071),g=n(9985),y=n(6812),T=n(3689),x=n(2688),b=n(6004),C=n(6420),A=n(1500),P=n(4764),R=n(806),M=h.setImmediate,V=h.clearImmediate,I=h.process,F=h.Dispatch,H=h.Function,W=h.MessageChannel,L=h.String,Y=0,$={},q="onreadystatechange";T(function(){it=h.location});var ft=function(X){if(y($,X)){var J=$[X];delete $[X],J()}},gt=function(X){return function(){ft(X)}},rt=function(X){ft(X.data)},ut=function(X){h.postMessage(L(X),it.protocol+"//"+it.host)};(!M||!V)&&(M=function(J){A(arguments.length,1);var ht=g(J)?J:H(J),Z=b(arguments,1);return $[++Y]=function(){f(ht,void 0,Z)},k(Y),Y},V=function(J){delete $[J]},R?k=function(X){I.nextTick(gt(X))}:F&&F.now?k=function(X){F.now(gt(X))}:W&&!P?(pt=(st=new W).port2,st.port1.onmessage=rt,k=c(pt.postMessage,pt)):h.addEventListener&&g(h.postMessage)&&!h.importScripts&&it&&"file:"!==it.protocol&&!T(ut)?(k=ut,h.addEventListener("message",rt,!1)):k=q in C("script")?function(X){x.appendChild(C("script"))[q]=function(){x.removeChild(this),ft(X)}}:function(X){setTimeout(gt(X),0)}),d.exports={set:M,clear:V}},7578:(d,S,n)=>{"use strict";var h=n(8700),f=Math.max,c=Math.min;d.exports=function(g,y){var T=h(g);return T<0?f(T+y,0):c(T,y)}},5290:(d,S,n)=>{"use strict";var h=n(4413),f=n(4684);d.exports=function(c){return h(f(c))}},8700:(d,S,n)=>{"use strict";var h=n(8828);d.exports=function(f){var c=+f;return c!=c||0===c?0:h(c)}},3126:(d,S,n)=>{"use strict";var h=n(8700),f=Math.min;d.exports=function(c){return c>0?f(h(c),9007199254740991):0}},690:(d,S,n)=>{"use strict";var h=n(4684),f=Object;d.exports=function(c){return f(h(c))}},8732:(d,S,n)=>{"use strict";var h=n(2615),f=n(8999),c=n(734),g=n(4849),y=n(5899),T=n(4201),x=TypeError,b=T("toPrimitive");d.exports=function(C,A){if(!f(C)||c(C))return C;var R,P=g(C,b);if(P){if(void 0===A&&(A="default"),R=h(P,C,A),!f(R)||c(R))return R;throw new x("Can't convert object to primitive value")}return void 0===A&&(A="number"),y(C,A)}},8360:(d,S,n)=>{"use strict";var h=n(8732),f=n(734);d.exports=function(c){var g=h(c,"string");return f(g)?g:g+""}},3043:(d,S,n)=>{"use strict";var c={};c[n(4201)("toStringTag")]="z",d.exports="[object z]"===String(c)},4327:(d,S,n)=>{"use strict";var h=n(926),f=String;d.exports=function(c){if("Symbol"===h(c))throw new TypeError("Cannot convert a Symbol value to a string");return f(c)}},3691:d=>{"use strict";var S=String;d.exports=function(n){try{return S(n)}catch{return"Object"}}},4630:(d,S,n)=>{"use strict";var h=n(8844),f=0,c=Math.random(),g=h(1..toString);d.exports=function(y){return"Symbol("+(void 0===y?"":y)+")_"+g(++f+c,36)}},9525:(d,S,n)=>{"use strict";var h=n(146);d.exports=h&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:(d,S,n)=>{"use strict";var h=n(7697),f=n(3689);d.exports=h&&f(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},1500:d=>{"use strict";var S=TypeError;d.exports=function(n,h){if(n<h)throw new S("Not enough arguments");return n}},9834:(d,S,n)=>{"use strict";var h=n(9037),f=n(9985),c=h.WeakMap;d.exports=f(c)&&/native code/.test(String(c))},4201:(d,S,n)=>{"use strict";var h=n(9037),f=n(3430),c=n(6812),g=n(4630),y=n(146),T=n(9525),x=h.Symbol,b=f("wks"),C=T?x.for||x:x&&x.withoutSetter||g;d.exports=function(A){return c(b,A)||(b[A]=y&&c(x,A)?x[A]:C("Symbol."+A)),b[A]}},6350:d=>{"use strict";d.exports="\t\n\v\f\r \xa0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},7195:(d,S,n)=>{"use strict";var h=n(9989),f=n(6576),c=n(4328).indexOf,g=n(6834),y=f([].indexOf),T=!!y&&1/y([1],1,-0)<0;h({target:"Array",proto:!0,forced:T||!g("indexOf")},{indexOf:function(C){var A=arguments.length>1?arguments[1]:void 0;return T?y(this,C,A)||0:c(this,C,A)}})},752:(d,S,n)=>{"use strict";var h=n(5290),f=n(7370),c=n(9478),g=n(618),y=n(2560).f,T=n(1934),x=n(7807),b=n(3931),C=n(7697),A="Array Iterator",P=g.set,R=g.getterFor(A);d.exports=T(Array,"Array",function(V,I){P(this,{type:A,target:h(V),index:0,kind:I})},function(){var V=R(this),I=V.target,F=V.index++;if(!I||F>=I.length)return V.target=void 0,x(void 0,!0);switch(V.kind){case"keys":return x(F,!1);case"values":return x(I[F],!1)}return x([F,I[F]],!1)},"values");var M=c.Arguments=c.Array;if(f("keys"),f("values"),f("entries"),!b&&C&&"values"!==M.name)try{y(M,"name",{value:"values"})}catch{}},278:(d,S,n)=>{"use strict";var h=n(9989),f=n(8820).left,c=n(6834),g=n(3615);h({target:"Array",proto:!0,forced:!n(806)&&g>79&&g<83||!c("reduce")},{reduce:function(C){var A=arguments.length;return f(this,C,A,A>1?arguments[1]:void 0)}})},3374:(d,S,n)=>{"use strict";var h=n(9989),f=n(8844),c=n(2297),g=f([].reverse),y=[1,2];h({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return c(this)&&(this.length=this.length),g(this)}})},1692:(d,S,n)=>{"use strict";var h=n(9989),f=n(2615),c=n(509),g=n(8742),y=n(9302),T=n(8734);h({target:"Promise",stat:!0,forced:n(562)},{all:function(C){var A=this,P=g.f(A),R=P.resolve,M=P.reject,V=y(function(){var I=c(A.resolve),F=[],H=0,W=1;T(C,function(L){var Y=H++,$=!1;W++,f(I,A,L).then(function(q){$||($=!0,F[Y]=q,--W||R(F))},M)}),--W||R(F)});return V.error&&M(V.value),P.promise}})},5089:(d,S,n)=>{"use strict";var h=n(9989),f=n(3931),c=n(7073).CONSTRUCTOR,g=n(7919),y=n(6058),T=n(9985),x=n(1880),b=g&&g.prototype;if(h({target:"Promise",proto:!0,forced:c,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})}},6697:(d,S,n)=>{"use strict";var $t,Ee,ae,h=n(9989),f=n(3931),c=n(806),g=n(9037),y=n(2615),T=n(1880),x=n(9385),b=n(5997),C=n(4241),A=n(509),P=n(9985),R=n(8999),M=n(767),V=n(6373),I=n(9886).set,F=n(231),H=n(920),W=n(9302),L=n(4410),Y=n(618),$=n(7919),q=n(7073),it=n(8742),k="Promise",st=q.CONSTRUCTOR,pt=q.REJECTION_EVENT,ft=q.SUBCLASSING,gt=Y.getterFor(k),rt=Y.set,ut=$&&$.prototype,X=$,J=ut,ht=g.TypeError,Z=g.document,_=g.process,vt=it.f,Pt=vt,bt=!!(Z&&Z.createEvent&&g.dispatchEvent),Et="unhandledrejection",ue=function(G){var ot;return!(!R(G)||!P(ot=G.then))&&ot},le=function(G,ot){var ce,ze,Ge,yt=ot.value,dt=1===ot.state,At=dt?G.ok:G.fail,fe=G.resolve,Me=G.reject,ve=G.domain;try{At?(dt||(2===ot.rejection&&nr(ot),ot.rejection=1),!0===At?ce=yt:(ve&&ve.enter(),ce=At(yt),ve&&(ve.exit(),Ge=!0)),ce===G.promise?Me(new ht("Promise-chain cycle")):(ze=ue(ce))?y(ze,ce,fe,Me):fe(ce)):Me(yt)}catch(ar){ve&&!Ge&&ve.exit(),Me(ar)}},he=function(G,ot){G.notified||(G.notified=!0,F(function(){for(var dt,yt=G.reactions;dt=yt.get();)le(dt,G);G.notified=!1,ot&&!G.rejection&&rr(G)}))},te=function(G,ot,yt){var dt,At;bt?((dt=Z.createEvent("Event")).promise=ot,dt.reason=yt,dt.initEvent(G,!1,!0),g.dispatchEvent(dt)):dt={promise:ot,reason:yt},!pt&&(At=g["on"+G])?At(dt):G===Et&&H("Unhandled promise rejection",yt)},rr=function(G){y(I,g,function(){var At,ot=G.facade,yt=G.value;if(je(G)&&(At=W(function(){c?_.emit("unhandledRejection",yt,ot):te(Et,ot,yt)}),G.rejection=c||je(G)?2:1,At.error))throw At.value})},je=function(G){return 1!==G.rejection&&!G.parent},nr=function(G){y(I,g,function(){var ot=G.facade;c?_.emit("rejectionHandled",ot):te("rejectionhandled",ot,G.value)})},Yt=function(G,ot,yt){return function(dt){G(ot,dt,yt)}},ie=function(G,ot,yt){G.done||(G.done=!0,yt&&(G=yt),G.value=ot,G.state=2,he(G,!0))},Ie=function(G,ot,yt){if(!G.done){G.done=!0,yt&&(G=yt);try{if(G.facade===ot)throw new ht("Promise can't be resolved itself");var dt=ue(ot);dt?F(function(){var At={done:!1};try{y(dt,ot,Yt(Ie,At,G),Yt(ie,At,G))}catch(fe){ie(At,fe,G)}}):(G.value=ot,G.state=1,he(G,!1))}catch(At){ie({done:!1},At,G)}}};if(st&&(X=function(ot){M(this,J),A(ot),y($t,this);var yt=gt(this);try{ot(Yt(Ie,yt),Yt(ie,yt))}catch(dt){ie(yt,dt)}},($t=function(ot){rt(this,{type:k,done:!1,notified:!1,parent:!1,reactions:new L,rejection:!1,state:0,value:void 0})}).prototype=T(J=X.prototype,"then",function(ot,yt){var dt=gt(this),At=vt(V(this,X));return dt.parent=!0,At.ok=!P(ot)||ot,At.fail=P(yt)&&yt,At.domain=c?_.domain:void 0,0===dt.state?dt.reactions.add(At):F(function(){le(At,dt)}),At.promise}),Ee=function(){var G=new $t,ot=gt(G);this.promise=G,this.resolve=Yt(Ie,ot),this.reject=Yt(ie,ot)},it.f=vt=function(G){return G===X||void 0===G?new Ee(G):Pt(G)},!f&&P($)&&ut!==Object.prototype)){ae=ut.then,ft||T(ut,"then",function(ot,yt){var dt=this;return new X(function(At,fe){y(ae,dt,At,fe)}).then(ot,yt)},{unsafe:!0});try{delete ut.constructor}catch{}x&&x(ut,J)}h({global:!0,constructor:!0,wrap:!0,forced:st},{Promise:X}),b(X,k,!1,!0),C(k)},3964:(d,S,n)=>{"use strict";n(6697),n(1692),n(5089),n(8829),n(2092),n(7905)},8829:(d,S,n)=>{"use strict";var h=n(9989),f=n(2615),c=n(509),g=n(8742),y=n(9302),T=n(8734);h({target:"Promise",stat:!0,forced:n(562)},{race:function(C){var A=this,P=g.f(A),R=P.reject,M=y(function(){var V=c(A.resolve);T(C,function(I){f(V,A,I).then(P.resolve,R)})});return M.error&&R(M.value),P.promise}})},2092:(d,S,n)=>{"use strict";var h=n(9989),f=n(2615),c=n(8742);h({target:"Promise",stat:!0,forced:n(7073).CONSTRUCTOR},{reject:function(T){var x=c.f(this);return f(x.reject,void 0,T),x.promise}})},7905:(d,S,n)=>{"use strict";var h=n(9989),f=n(6058),c=n(3931),g=n(7919),y=n(7073).CONSTRUCTOR,T=n(2945),x=f("Promise"),b=c&&!y;h({target:"Promise",stat:!0,forced:c||y},{resolve:function(A){return T(b&&this===x?g:this,A)}})},4043:(d,S,n)=>{"use strict";var h=n(9989),f=n(6308);h({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},2826:(d,S,n)=>{"use strict";var h=n(1236).PROPER,f=n(1880),c=n(5027),g=n(4327),y=n(3689),T=n(3477),x="toString",C=RegExp.prototype[x];(y(function(){return"/a/b"!==C.call({source:"a",flags:"b"})})||h&&C.name!==x)&&f(RegExp.prototype,x,function(){var M=c(this);return"/"+g(M.source)+"/"+g(T(M))},{unsafe:!0})},2918:(d,S,n)=>{"use strict";var I,h=n(9989),f=n(6576),c=n(2474).f,g=n(3126),y=n(4327),T=n(2124),x=n(4684),b=n(7413),C=n(3931),A=f("".endsWith),P=f("".slice),R=Math.min,M=b("endsWith");h({target:"String",proto:!0,forced:!(!C&&!M&&(I=c(String.prototype,"endsWith"),I&&!I.writable)||M)},{endsWith:function(F){var H=y(x(this));T(F);var W=arguments.length>1?arguments[1]:void 0,L=H.length,Y=void 0===W?L:R(g(W),L),$=y(F);return A?A(H,$,Y):P(H,Y-$.length,Y)===$}})},3843:(d,S,n)=>{"use strict";var h=n(9989),f=n(8844),c=n(2124),g=n(4684),y=n(4327),T=n(7413),x=f("".indexOf);h({target:"String",proto:!0,forced:!T("includes")},{includes:function(C){return!!~x(y(g(this)),y(c(C)),arguments.length>1?arguments[1]:void 0)}})},2462:(d,S,n)=>{"use strict";var h=n(2615),f=n(8678),c=n(5027),g=n(981),y=n(3126),T=n(4327),x=n(4684),b=n(4849),C=n(1514),A=n(6100);f("match",function(P,R,M){return[function(I){var F=x(this),H=g(I)?void 0:b(I,P);return H?h(H,I,F):new RegExp(I)[P](T(F))},function(V){var I=c(this),F=T(V),H=M(R,I,F);if(H.done)return H.value;if(!I.global)return A(I,F);var W=I.unicode;I.lastIndex=0;for(var $,L=[],Y=0;null!==($=A(I,F));){var q=T($[0]);L[Y]=q,""===q&&(I.lastIndex=C(F,y(I.lastIndex),W)),Y++}return 0===Y?null:L}]})},7267:(d,S,n)=>{"use strict";var h=n(1735),f=n(2615),c=n(8844),g=n(8678),y=n(3689),T=n(5027),x=n(9985),b=n(981),C=n(8700),A=n(3126),P=n(4327),R=n(4684),M=n(1514),V=n(4849),I=n(7017),F=n(6100),W=n(4201)("replace"),L=Math.max,Y=Math.min,$=c([].concat),q=c([].push),it=c("".indexOf),k=c("".slice),st=function(rt){return void 0===rt?rt:String(rt)},pt="$0"==="a".replace(/./,"$0"),ft=!!/./[W]&&""===/./[W]("a","$0");g("replace",function(rt,ut,X){var J=ft?"$":"$0";return[function(Z,_){var vt=R(this),Pt=b(Z)?void 0:V(Z,W);return Pt?f(Pt,Z,vt,_):f(ut,P(vt),Z,_)},function(ht,Z){var _=T(this),vt=P(ht);if("string"==typeof Z&&-1===it(Z,J)&&-1===it(Z,"$<")){var Pt=X(ut,_,vt,Z);if(Pt.done)return Pt.value}var bt=x(Z);bt||(Z=P(Z));var w,Et=_.global;Et&&(w=_.unicode,_.lastIndex=0);for(var Nt,Rt=[];null!==(Nt=F(_,vt))&&(q(Rt,Nt),Et);)""===P(Nt[0])&&(_.lastIndex=M(vt,A(_.lastIndex),w));for(var kt="",Zt=0,$t=0;$t<Rt.length;$t++){for(var ue,Ee=P((Nt=Rt[$t])[0]),_t=L(Y(C(Nt.index),vt.length),0),ae=[],le=1;le<Nt.length;le++)q(ae,st(Nt[le]));var he=Nt.groups;if(bt){var te=$([Ee],ae,_t,vt);void 0!==he&&q(te,he),ue=P(h(Z,void 0,te))}else ue=I(Ee,vt,_t,ae,he,Z);_t>=Zt&&(kt+=k(vt,Zt,_t)+ue,Zt=_t+Ee.length)}return kt+k(vt,Zt)}]},!!y(function(){var rt=/./;return rt.exec=function(){var ut=[];return ut.groups={a:"7"},ut},"7"!=="".replace(rt,"$<a>")})||!pt||ft)},9873:(d,S,n)=>{"use strict";var h=n(1735),f=n(2615),c=n(8844),g=n(8678),y=n(5027),T=n(981),x=n(1245),b=n(4684),C=n(6373),A=n(1514),P=n(3126),R=n(4327),M=n(4849),V=n(9015),I=n(6100),F=n(6308),H=n(7901),W=n(3689),L=H.UNSUPPORTED_Y,Y=4294967295,$=Math.min,q=[].push,it=c(/./.exec),k=c(q),st=c("".slice);g("split",function(ft,gt,rt){var ut;return ut="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(X,J){var ht=R(b(this)),Z=void 0===J?Y:J>>>0;if(0===Z)return[];if(void 0===X)return[ht];if(!x(X))return f(gt,ht,X,Z);for(var Et,w,Rt,_=[],Pt=0,bt=new RegExp(X.source,(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(X.sticky?"y":"")+"g");(Et=f(F,bt,ht))&&!((w=bt.lastIndex)>Pt&&(k(_,st(ht,Pt,Et.index)),Et.length>1&&Et.index<ht.length&&h(q,_,V(Et,1)),Rt=Et[0].length,Pt=w,_.length>=Z));)bt.lastIndex===Et.index&&bt.lastIndex++;return Pt===ht.length?(Rt||!it(bt,""))&&k(_,""):k(_,st(ht,Pt)),_.length>Z?V(_,0,Z):_}:"0".split(void 0,0).length?function(X,J){return void 0===X&&0===J?[]:f(gt,this,X,J)}:gt,[function(J,ht){var Z=b(this),_=T(J)?void 0:M(J,ft);return _?f(_,J,Z,ht):f(ut,R(Z),J,ht)},function(X,J){var ht=y(this),Z=R(X),_=rt(ut,ht,Z,J,ut!==gt);if(_.done)return _.value;var vt=C(ht,RegExp),Pt=ht.unicode,Et=new vt(L?"^(?:"+ht.source+")":ht,(ht.ignoreCase?"i":"")+(ht.multiline?"m":"")+(ht.unicode?"u":"")+(L?"g":"y")),w=void 0===J?Y:J>>>0;if(0===w)return[];if(0===Z.length)return null===I(Et,Z)?[Z]:[];for(var Rt=0,Nt=0,zt=[];Nt<Z.length;){Et.lastIndex=L?0:Nt;var Zt,kt=I(Et,L?st(Z,Nt):Z);if(null===kt||(Zt=$(P(Et.lastIndex+(L?Nt:0)),Z.length))===Rt)Nt=A(Z,Nt,Pt);else{if(k(zt,st(Z,Rt,Nt)),zt.length===w)return zt;for(var $t=1;$t<=kt.length-1;$t++)if(k(zt,kt[$t]),zt.length===w)return zt;Nt=Rt=Zt}}return k(zt,st(Z,Rt)),zt}]},!!W(function(){var ft=/(?:)/,gt=ft.exec;ft.exec=function(){return gt.apply(this,arguments)};var rt="ab".split(ft);return 2!==rt.length||"a"!==rt[0]||"b"!==rt[1]}),L)},268:(d,S,n)=>{"use strict";var I,h=n(9989),f=n(6576),c=n(2474).f,g=n(3126),y=n(4327),T=n(2124),x=n(4684),b=n(7413),C=n(3931),A=f("".startsWith),P=f("".slice),R=Math.min,M=b("startsWith");h({target:"String",proto:!0,forced:!(!C&&!M&&(I=c(String.prototype,"startsWith"),I&&!I.writable)||M)},{startsWith:function(F){var H=y(x(this));T(F);var W=g(R(arguments.length>1?arguments[1]:void 0,H.length)),L=y(F);return A?A(H,L,W):P(H,W,W+L.length)===L}})},8436:(d,S,n)=>{"use strict";var h=n(9989),f=n(1435).trim;h({target:"String",proto:!0,forced:n(5984)("trim")},{trim:function(){return f(this)}})},6265:(d,S,n)=>{"use strict";var h=n(9037),f=n(6338),c=n(3265),g=n(752),y=n(5773),T=n(5997),b=n(4201)("iterator"),C=g.values,A=function(R,M){if(R){if(R[b]!==C)try{y(R,b,C)}catch{R[b]=C}if(T(R,M,!0),f[M])for(var V in g)if(R[V]!==g[V])try{y(R,V,g[V])}catch{R[V]=g[V]}}};for(var P in f)A(h[P]&&h[P].prototype,P);A(c,"DOMTokenList")},9484:(d,S,n)=>{"use strict";n.r(S),n.d(S,{AElement:()=>sn,AnimateColorElement:()=>_r,AnimateElement:()=>We,AnimateTransformElement:()=>tn,BoundingBox:()=>Jt,CB1:()=>or,CB2:()=>ur,CB3:()=>lr,CB4:()=>hr,Canvg:()=>Ce,CircleElement:()=>Hr,ClipPathElement:()=>pn,DefsElement:()=>Zr,DescElement:()=>Sn,Document:()=>Cn,Element:()=>wt,EllipseElement:()=>Yr,FeColorMatrixElement:()=>Tr,FeCompositeElement:()=>En,FeDropShadowElement:()=>mn,FeGaussianBlurElement:()=>Tn,FeMorphologyElement:()=>xn,FilterElement:()=>yn,Font:()=>Se,FontElement:()=>en,FontFaceElement:()=>rn,GElement:()=>Xe,GlyphElement:()=>yr,GradientElement:()=>Er,ImageElement:()=>ln,LineElement:()=>Xr,LinearGradientElement:()=>kr,MarkerElement:()=>Kr,MaskElement:()=>gn,Matrix:()=>dr,MissingGlyphElement:()=>nn,Mouse:()=>Dr,PSEUDO_ZERO:()=>Oe,Parser:()=>He,PathElement:()=>Tt,PathParser:()=>nt,PatternElement:()=>Qr,Point:()=>Mt,PolygonElement:()=>Wr,PolylineElement:()=>xr,Property:()=>et,QB1:()=>fr,QB2:()=>vr,QB3:()=>cr,RadialGradientElement:()=>Jr,RectElement:()=>mr,RenderedElement:()=>ge,Rotate:()=>Ur,SVGElement:()=>we,SVGFontLoader:()=>fn,Scale:()=>jr,Screen:()=>gr,Skew:()=>pr,SkewX:()=>zr,SkewY:()=>Gr,StopElement:()=>qr,StyleElement:()=>vn,SymbolElement:()=>hn,TRefElement:()=>an,TSpanElement:()=>Fe,TextElement:()=>se,TextPathElement:()=>un,TitleElement:()=>On,Transform:()=>Ye,Translate:()=>Fr,UnknownElement:()=>$r,UseElement:()=>cn,ViewPort:()=>Vr,compressSpaces:()=>Yt,default:()=>Ce,getSelectorSpecificity:()=>wr,normalizeAttributeName:()=>yt,normalizeColor:()=>At,parseExternalUrl:()=>dt,presets:()=>nr,toNumbers:()=>G,trimLeft:()=>ie,trimRight:()=>Ie,vectorMagnitude:()=>ir,vectorsAngle:()=>sr,vectorsRatio:()=>$e}),n(3964);var f=n(5861),b=(n(2462),n(7267),n(268),n(752),n(6265),n(1002));function P(l,t,e){return(t=function A(l){var t=function C(l,t){if("object"!==(0,b.Z)(l)||null===l)return l;var e=l[Symbol.toPrimitive];if(void 0!==e){var r=e.call(l,t||"default");if("object"!==(0,b.Z)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(l)}(l,"string");return"symbol"===(0,b.Z)(t)?t:String(t)}(t))in l?Object.defineProperty(l,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):l[t]=e,l}n(278),n(2918),n(9873);var I=n(3561),H=(n(8436),n(4120)),$=(n(7195),n(3843),n(3374),function(l,t){return($=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])})(l,t)});function q(l,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=l}$(l,t),l.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}function k(l,t){var e=l[0],r=l[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function st(){for(var l=[],t=0;t<arguments.length;t++)l[t]=arguments[t];for(var e=0;e<l.length;e++)if("number"!=typeof l[e])throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof l[e]+" == typeof "+l[e]);return!0}var pt=Math.PI;function ft(l,t,e){l.lArcFlag=0===l.lArcFlag?0:1,l.sweepFlag=0===l.sweepFlag?0:1;var r=l.rX,a=l.rY,i=l.x,o=l.y;r=Math.abs(l.rX),a=Math.abs(l.rY);var s=k([(t-i)/2,(e-o)/2],-l.xRot/180*pt),u=s[0],v=s[1],p=Math.pow(u,2)/Math.pow(r,2)+Math.pow(v,2)/Math.pow(a,2);1<p&&(r*=Math.sqrt(p),a*=Math.sqrt(p)),l.rX=r,l.rY=a;var E=Math.pow(r,2)*Math.pow(v,2)+Math.pow(a,2)*Math.pow(u,2),O=(l.lArcFlag!==l.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(a,2)-E)/E)),m=r*v/a*O,N=-a*u/r*O,D=k([m,N],l.xRot/180*pt);l.cX=D[0]+(t+i)/2,l.cY=D[1]+(e+o)/2,l.phi1=Math.atan2((v-N)/a,(u-m)/r),l.phi2=Math.atan2((-v-N)/a,(-u-m)/r),0===l.sweepFlag&&l.phi2>l.phi1&&(l.phi2-=2*pt),1===l.sweepFlag&&l.phi2<l.phi1&&(l.phi2+=2*pt),l.phi1*=180/pt,l.phi2*=180/pt}function gt(l,t,e){st(l,t,e);var r=l*l+t*t-e*e;if(0>r)return[];if(0===r)return[[l*e/(l*l+t*t),t*e/(l*l+t*t)]];var a=Math.sqrt(r);return[[(l*e+t*a)/(l*l+t*t),(t*e-l*a)/(l*l+t*t)],[(l*e-t*a)/(l*l+t*t),(t*e+l*a)/(l*l+t*t)]]}var rt,ut=Math.PI/180;function X(l,t,e){return(1-e)*l+e*t}function J(l,t,e,r){return l+Math.cos(r/180*pt)*t+Math.sin(r/180*pt)*e}function ht(l,t,e,r){var a=1e-6,i=t-l,o=e-t,s=3*i+3*(r-e)-6*o,u=6*(o-i),v=3*i;return Math.abs(s)<a?[-v/u]:function(p,E,O){void 0===O&&(O=1e-6);var m=p*p/4-E;if(m<-O)return[];if(m<=O)return[-p/2];var N=Math.sqrt(m);return[-p/2-N,-p/2+N]}(u/s,v/s,a)}function Z(l,t,e,r,a){var i=1-a;return l*(i*i*i)+t*(3*i*i*a)+e*(3*i*a*a)+r*(a*a*a)}!function(l){function t(){return a(function(s,u,v){return s.relative&&(void 0!==s.x1&&(s.x1+=u),void 0!==s.y1&&(s.y1+=v),void 0!==s.x2&&(s.x2+=u),void 0!==s.y2&&(s.y2+=v),void 0!==s.x&&(s.x+=u),void 0!==s.y&&(s.y+=v),s.relative=!1),s})}function e(){var s=NaN,u=NaN,v=NaN,p=NaN;return a(function(E,O,m){return E.type&w.SMOOTH_CURVE_TO&&(E.type=w.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&w.CURVE_TO?(s=E.relative?O+E.x2:E.x2,u=E.relative?m+E.y2:E.y2):(s=NaN,u=NaN),E.type&w.SMOOTH_QUAD_TO&&(E.type=w.QUAD_TO,v=isNaN(v)?O:v,p=isNaN(p)?m:p,E.x1=E.relative?O-v:2*O-v,E.y1=E.relative?m-p:2*m-p),E.type&w.QUAD_TO?(v=E.relative?O+E.x1:E.x1,p=E.relative?m+E.y1:E.y1):(v=NaN,p=NaN),E})}function r(){var s=NaN,u=NaN;return a(function(v,p,E){if(v.type&w.SMOOTH_QUAD_TO&&(v.type=w.QUAD_TO,s=isNaN(s)?p:s,u=isNaN(u)?E:u,v.x1=v.relative?p-s:2*p-s,v.y1=v.relative?E-u:2*E-u),v.type&w.QUAD_TO){s=v.relative?p+v.x1:v.x1,u=v.relative?E+v.y1:v.y1;var O=v.x1,m=v.y1;v.type=w.CURVE_TO,v.x1=((v.relative?0:p)+2*O)/3,v.y1=((v.relative?0:E)+2*m)/3,v.x2=(v.x+2*O)/3,v.y2=(v.y+2*m)/3}else s=NaN,u=NaN;return v})}function a(s){var u=0,v=0,p=NaN,E=NaN;return function(O){if(isNaN(p)&&!(O.type&w.MOVE_TO))throw new Error("path must start with moveto");var m=s(O,u,v,p,E);return O.type&w.CLOSE_PATH&&(u=p,v=E),void 0!==O.x&&(u=O.relative?u+O.x:O.x),void 0!==O.y&&(v=O.relative?v+O.y:O.y),O.type&w.MOVE_TO&&(p=u,E=v),m}}function i(s,u,v,p,E,O){return st(s,u,v,p,E,O),a(function(m,N,D,B){var U=m.x1,K=m.x2,z=m.relative&&!isNaN(B),j=void 0!==m.x?m.x:z?0:N,tt=void 0!==m.y?m.y:z?0:D;function at(Gt){return Gt*Gt}m.type&w.HORIZ_LINE_TO&&0!==u&&(m.type=w.LINE_TO,m.y=m.relative?0:D),m.type&w.VERT_LINE_TO&&0!==v&&(m.type=w.LINE_TO,m.x=m.relative?0:N),void 0!==m.x&&(m.x=m.x*s+tt*v+(z?0:E)),void 0!==m.y&&(m.y=j*u+m.y*p+(z?0:O)),void 0!==m.x1&&(m.x1=m.x1*s+m.y1*v+(z?0:E)),void 0!==m.y1&&(m.y1=U*u+m.y1*p+(z?0:O)),void 0!==m.x2&&(m.x2=m.x2*s+m.y2*v+(z?0:E)),void 0!==m.y2&&(m.y2=K*u+m.y2*p+(z?0:O));var Q=s*p-u*v;if(void 0!==m.xRot&&(1!==s||0!==u||0!==v||1!==p))if(0===Q)delete m.rX,delete m.rY,delete m.xRot,delete m.lArcFlag,delete m.sweepFlag,m.type=w.LINE_TO;else{var lt=m.xRot*Math.PI/180,ct=Math.sin(lt),xt=Math.cos(lt),Ot=1/at(m.rX),Ct=1/at(m.rY),Bt=at(xt)*Ot+at(ct)*Ct,Ft=2*ct*xt*(Ot-Ct),It=at(ct)*Ot+at(xt)*Ct,Dt=Bt*p*p-Ft*u*p+It*u*u,Vt=Ft*(s*p+u*v)-2*(Bt*v*p+It*s*u),jt=Bt*v*v-Ft*s*v+It*s*s,St=(Math.atan2(Vt,Dt-jt)+Math.PI)%Math.PI/2,mt=Math.sin(St),Ut=Math.cos(St);m.rX=Math.abs(Q)/Math.sqrt(Dt*at(Ut)+Vt*mt*Ut+jt*at(mt)),m.rY=Math.abs(Q)/Math.sqrt(Dt*at(mt)-Vt*mt*Ut+jt*at(Ut)),m.xRot=180*St/Math.PI}return void 0!==m.sweepFlag&&0>Q&&(m.sweepFlag=+!m.sweepFlag),m})}l.ROUND=function(s){function u(v){return Math.round(v*s)/s}return void 0===s&&(s=1e13),st(s),function(v){return void 0!==v.x1&&(v.x1=u(v.x1)),void 0!==v.y1&&(v.y1=u(v.y1)),void 0!==v.x2&&(v.x2=u(v.x2)),void 0!==v.y2&&(v.y2=u(v.y2)),void 0!==v.x&&(v.x=u(v.x)),void 0!==v.y&&(v.y=u(v.y)),void 0!==v.rX&&(v.rX=u(v.rX)),void 0!==v.rY&&(v.rY=u(v.rY)),v}},l.TO_ABS=t,l.TO_REL=function(){return a(function(s,u,v){return s.relative||(void 0!==s.x1&&(s.x1-=u),void 0!==s.y1&&(s.y1-=v),void 0!==s.x2&&(s.x2-=u),void 0!==s.y2&&(s.y2-=v),void 0!==s.x&&(s.x-=u),void 0!==s.y&&(s.y-=v),s.relative=!0),s})},l.NORMALIZE_HVZ=function(s,u,v){return void 0===s&&(s=!0),void 0===u&&(u=!0),void 0===v&&(v=!0),a(function(p,E,O,m,N){if(isNaN(m)&&!(p.type&w.MOVE_TO))throw new Error("path must start with moveto");return u&&p.type&w.HORIZ_LINE_TO&&(p.type=w.LINE_TO,p.y=p.relative?0:O),v&&p.type&w.VERT_LINE_TO&&(p.type=w.LINE_TO,p.x=p.relative?0:E),s&&p.type&w.CLOSE_PATH&&(p.type=w.LINE_TO,p.x=p.relative?m-E:m,p.y=p.relative?N-O:N),p.type&w.ARC&&(0===p.rX||0===p.rY)&&(p.type=w.LINE_TO,delete p.rX,delete p.rY,delete p.xRot,delete p.lArcFlag,delete p.sweepFlag),p})},l.NORMALIZE_ST=e,l.QT_TO_C=r,l.INFO=a,l.SANITIZE=function(s){void 0===s&&(s=0),st(s);var u=NaN,v=NaN,p=NaN,E=NaN;return a(function(O,m,N,D,B){var U=Math.abs,K=!1,z=0,j=0;if(O.type&w.SMOOTH_CURVE_TO&&(z=isNaN(u)?0:m-u,j=isNaN(v)?0:N-v),O.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?(u=O.relative?m+O.x2:O.x2,v=O.relative?N+O.y2:O.y2):(u=NaN,v=NaN),O.type&w.SMOOTH_QUAD_TO?(p=isNaN(p)?m:2*m-p,E=isNaN(E)?N:2*N-E):O.type&w.QUAD_TO?(p=O.relative?m+O.x1:O.x1,E=O.relative?N+O.y1:O.y2):(p=NaN,E=NaN),O.type&w.LINE_COMMANDS||O.type&w.ARC&&(0===O.rX||0===O.rY||!O.lArcFlag)||O.type&w.CURVE_TO||O.type&w.SMOOTH_CURVE_TO||O.type&w.QUAD_TO||O.type&w.SMOOTH_QUAD_TO){var tt=void 0===O.x?0:O.relative?O.x:O.x-m,at=void 0===O.y?0:O.relative?O.y:O.y-N;z=isNaN(p)?void 0===O.x1?z:O.relative?O.x:O.x1-m:p-m,j=isNaN(E)?void 0===O.y1?j:O.relative?O.y:O.y1-N:E-N;var Q=void 0===O.x2?0:O.relative?O.x:O.x2-m,lt=void 0===O.y2?0:O.relative?O.y:O.y2-N;U(tt)<=s&&U(at)<=s&&U(z)<=s&&U(j)<=s&&U(Q)<=s&&U(lt)<=s&&(K=!0)}return O.type&w.CLOSE_PATH&&U(m-D)<=s&&U(N-B)<=s&&(K=!0),K?[]:O})},l.MATRIX=i,l.ROTATE=function(s,u,v){void 0===u&&(u=0),void 0===v&&(v=0),st(s,u,v);var p=Math.sin(s),E=Math.cos(s);return i(E,p,-p,E,u-u*E+v*p,v-u*p-v*E)},l.TRANSLATE=function(s,u){return void 0===u&&(u=0),st(s,u),i(1,0,0,1,s,u)},l.SCALE=function(s,u){return void 0===u&&(u=s),st(s,u),i(s,0,0,u,0,0)},l.SKEW_X=function(s){return st(s),i(1,0,Math.atan(s),1,0,0)},l.SKEW_Y=function(s){return st(s),i(1,Math.atan(s),0,1,0,0)},l.X_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),st(s),i(-1,0,0,1,s,0)},l.Y_AXIS_SYMMETRY=function(s){return void 0===s&&(s=0),st(s),i(1,0,0,-1,0,s)},l.A_TO_C=function(){return a(function(s,u,v){return w.ARC===s.type?function(p,E,O){var m,N,D,B;p.cX||ft(p,E,O);for(var U=Math.min(p.phi1,p.phi2),K=Math.max(p.phi1,p.phi2)-U,z=Math.ceil(K/90),j=new Array(z),tt=E,at=O,Q=0;Q<z;Q++){var lt=X(p.phi1,p.phi2,Q/z),ct=X(p.phi1,p.phi2,(Q+1)/z),Ot=4/3*Math.tan((ct-lt)*ut/4),Ct=[Math.cos(lt*ut)-Ot*Math.sin(lt*ut),Math.sin(lt*ut)+Ot*Math.cos(lt*ut)],Bt=Ct[0],Ft=Ct[1],It=[Math.cos(ct*ut),Math.sin(ct*ut)],Dt=It[0],Vt=It[1],jt=[Dt+Ot*Math.sin(ct*ut),Vt-Ot*Math.cos(ct*ut)],St=jt[0],mt=jt[1];j[Q]={relative:p.relative,type:w.CURVE_TO};var Ut=function(Gt,Xt){var Ht=k([Gt*p.rX,Xt*p.rY],p.xRot);return[p.cX+Ht[0],p.cY+Ht[1]]};m=Ut(Bt,Ft),j[Q].x1=m[0],j[Q].y1=m[1],N=Ut(St,mt),j[Q].x2=N[0],j[Q].y2=N[1],D=Ut(Dt,Vt),j[Q].x=D[0],j[Q].y=D[1],p.relative&&(j[Q].x1-=tt,j[Q].y1-=at,j[Q].x2-=tt,j[Q].y2-=at,j[Q].x-=tt,j[Q].y-=at),tt=(B=[j[Q].x,j[Q].y])[0],at=B[1]}return j}(s,s.relative?0:u,s.relative?0:v):s})},l.ANNOTATE_ARCS=function(){return a(function(s,u,v){return s.relative&&(u=0,v=0),w.ARC===s.type&&ft(s,u,v),s})},l.CLONE=function o(){return function(s){var u={};for(var v in s)u[v]=s[v];return u}},l.CALCULATE_BOUNDS=function(){var u=t(),v=r(),p=e(),E=a(function(O,m,N){var D=p(v(u(function(O){var m={};for(var N in O)m[N]=O[N];return m}(O))));function B(mt){mt>E.maxX&&(E.maxX=mt),mt<E.minX&&(E.minX=mt)}function U(mt){mt>E.maxY&&(E.maxY=mt),mt<E.minY&&(E.minY=mt)}if(D.type&w.DRAWING_COMMANDS&&(B(m),U(N)),D.type&w.HORIZ_LINE_TO&&B(D.x),D.type&w.VERT_LINE_TO&&U(D.y),D.type&w.LINE_TO&&(B(D.x),U(D.y)),D.type&w.CURVE_TO){B(D.x),U(D.y);for(var K=0,z=ht(m,D.x1,D.x2,D.x);K<z.length;K++)0<(St=z[K])&&1>St&&B(Z(m,D.x1,D.x2,D.x,St));for(var j=0,tt=ht(N,D.y1,D.y2,D.y);j<tt.length;j++)0<(St=tt[j])&&1>St&&U(Z(N,D.y1,D.y2,D.y,St))}if(D.type&w.ARC){B(D.x),U(D.y),ft(D,m,N);for(var at=D.xRot/180*Math.PI,Q=Math.cos(at)*D.rX,lt=Math.sin(at)*D.rX,ct=-Math.sin(at)*D.rY,xt=Math.cos(at)*D.rY,Ot=D.phi1<D.phi2?[D.phi1,D.phi2]:-180>D.phi2?[D.phi2+360,D.phi1+360]:[D.phi2,D.phi1],Ct=Ot[0],Bt=Ot[1],Ft=function(mt){var Xt=180*Math.atan2(mt[1],mt[0])/Math.PI;return Xt<Ct?Xt+360:Xt},It=0,Dt=gt(ct,-Q,0).map(Ft);It<Dt.length;It++)(St=Dt[It])>Ct&&St<Bt&&B(J(D.cX,Q,ct,St));for(var Vt=0,jt=gt(xt,-lt,0).map(Ft);Vt<jt.length;Vt++){var St;(St=jt[Vt])>Ct&&St<Bt&&U(J(D.cY,lt,xt,St))}}return O});return E.minX=1/0,E.maxX=-1/0,E.minY=1/0,E.maxY=-1/0,E}}(rt||(rt={}));var _,vt=function(){function l(){}return l.prototype.round=function(t){return this.transform(rt.ROUND(t))},l.prototype.toAbs=function(){return this.transform(rt.TO_ABS())},l.prototype.toRel=function(){return this.transform(rt.TO_REL())},l.prototype.normalizeHVZ=function(t,e,r){return this.transform(rt.NORMALIZE_HVZ(t,e,r))},l.prototype.normalizeST=function(){return this.transform(rt.NORMALIZE_ST())},l.prototype.qtToC=function(){return this.transform(rt.QT_TO_C())},l.prototype.aToC=function(){return this.transform(rt.A_TO_C())},l.prototype.sanitize=function(t){return this.transform(rt.SANITIZE(t))},l.prototype.translate=function(t,e){return this.transform(rt.TRANSLATE(t,e))},l.prototype.scale=function(t,e){return this.transform(rt.SCALE(t,e))},l.prototype.rotate=function(t,e,r){return this.transform(rt.ROTATE(t,e,r))},l.prototype.matrix=function(t,e,r,a,i,o){return this.transform(rt.MATRIX(t,e,r,a,i,o))},l.prototype.skewX=function(t){return this.transform(rt.SKEW_X(t))},l.prototype.skewY=function(t){return this.transform(rt.SKEW_Y(t))},l.prototype.xSymmetry=function(t){return this.transform(rt.X_AXIS_SYMMETRY(t))},l.prototype.ySymmetry=function(t){return this.transform(rt.Y_AXIS_SYMMETRY(t))},l.prototype.annotateArcs=function(){return this.transform(rt.ANNOTATE_ARCS())},l}(),Pt=function(l){return" "===l||"\t"===l||"\r"===l||"\n"===l},bt=function(l){return"0".charCodeAt(0)<=l.charCodeAt(0)&&l.charCodeAt(0)<="9".charCodeAt(0)},Et=function(l){function t(){var e=l.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 q(t,l),t.prototype.finish=function(e){if(void 0===e&&(e=[]),this.parse(" ",e),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var a=this;void 0===r&&(r=[]);for(var i=function(E){r.push(E),a.curArgs.length=0,a.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],u=!(this.curCommandType!==w.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),v=bt(s)&&("0"===this.curNumber&&"0"===s||u);if(!bt(s)||v)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&-1!==this.curCommandType){var p=Number(this.curNumber);if(isNaN(p))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===w.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>p)throw new SyntaxError('Expected positive number, got "'+p+'" at index "'+o+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"');this.curArgs.push(p),this.curArgs.length===Rt[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?i({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:p}):w.VERT_LINE_TO===this.curCommandType?i({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:p}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?i({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?i({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?i({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&i({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Pt(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(v)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)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,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=w.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=w.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=w.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=w.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=w.ARC,this.curCommandRelative="a"===s}else r.push({type:w.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,a){void 0===a&&(a=[]);for(var i=0,o=Object.getPrototypeOf(this).parse.call(this,r);i<o.length;i++){var u=e(o[i]);Array.isArray(u)?a.push.apply(a,u):a.push(u)}return a}}})},t}(vt),w=function(l){function t(e){var r=l.call(this)||this;return r.commands="string"==typeof e?t.parse(e):e,r}return q(t,l),t.prototype.encode=function(){return t.encode(this.commands)},t.prototype.getBounds=function(){var e=rt.CALCULATE_BOUNDS();return this.transform(e),e},t.prototype.transform=function(e){for(var r=[],a=0,i=this.commands;a<i.length;a++){var o=e(i[a]);Array.isArray(o)?r.push.apply(r,o):r.push(o)}return this.commands=r,this},t.encode=function(e){return function it(l){var t="";Array.isArray(l)||(l=[l]);for(var e=0;e<l.length;e++){var r=l[e];if(r.type===w.CLOSE_PATH)t+="z";else if(r.type===w.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===w.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===w.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===w.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===w.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===w.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===w.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==w.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}(e)},t.parse=function(e){var r=new Et,a=[];return r.parse(e,a),r.finish(a),a},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}(vt),Rt=((_={})[w.MOVE_TO]=2,_[w.LINE_TO]=2,_[w.HORIZ_LINE_TO]=1,_[w.VERT_LINE_TO]=1,_[w.CLOSE_PATH]=0,_[w.QUAD_TO]=4,_[w.SMOOTH_QUAD_TO]=2,_[w.CURVE_TO]=6,_[w.SMOOTH_CURVE_TO]=4,_[w.ARC]=7,_);function zt(l){return(zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(l)}n(2826);var Zt=[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],$t=[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 ae(l,t,e,r,a,i){if(!(isNaN(i)||i<1)){i|=0;var o=function _t(l,t,e,r,a){if("string"==typeof l&&(l=document.getElementById(l)),!l||"object"!==zt(l)||!("getContext"in l))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=l.getContext("2d");try{return i.getImageData(t,e,r,a)}catch(o){throw new Error("unable to access image data: "+o)}}(l,t,e,r,a);o=function ue(l,t,e,r,a,i){for(var N,o=l.data,s=2*i+1,u=r-1,v=a-1,p=i+1,E=p*(p+1)/2,O=new te,m=O,D=1;D<s;D++)m=m.next=new te,D===p&&(N=m);m.next=O;for(var B=null,U=null,K=0,z=0,j=Zt[i],tt=$t[i],at=0;at<a;at++){m=O;for(var Q=o[z],lt=o[z+1],ct=o[z+2],xt=o[z+3],Ot=0;Ot<p;Ot++)m.r=Q,m.g=lt,m.b=ct,m.a=xt,m=m.next;for(var Ct=0,Bt=0,Ft=0,It=0,Dt=p*Q,Vt=p*lt,jt=p*ct,St=p*xt,mt=E*Q,Ut=E*lt,Gt=E*ct,Xt=E*xt,Ht=1;Ht<p;Ht++){var Wt=z+((u<Ht?u:Ht)<<2),qt=o[Wt],ee=o[Wt+1],Ve=o[Wt+2],De=o[Wt+3],de=p-Ht;mt+=(m.r=qt)*de,Ut+=(m.g=ee)*de,Gt+=(m.b=Ve)*de,Xt+=(m.a=De)*de,Ct+=qt,Bt+=ee,Ft+=Ve,It+=De,m=m.next}B=O,U=N;for(var pe=0;pe<r;pe++){var ye=Xt*j>>tt;if(o[z+3]=ye,0!==ye){var me=255/ye;o[z]=(mt*j>>tt)*me,o[z+1]=(Ut*j>>tt)*me,o[z+2]=(Gt*j>>tt)*me}else o[z]=o[z+1]=o[z+2]=0;mt-=Dt,Ut-=Vt,Gt-=jt,Xt-=St,Dt-=B.r,Vt-=B.g,jt-=B.b,St-=B.a;var re=pe+i+1;mt+=Ct+=B.r=o[re=K+(re<u?re:u)<<2],Ut+=Bt+=B.g=o[re+1],Gt+=Ft+=B.b=o[re+2],Xt+=It+=B.a=o[re+3],B=B.next;var Le=U.r,Be=U.g,Ae=U.b,Ue=U.a;Dt+=Le,Vt+=Be,jt+=Ae,St+=Ue,Ct-=Le,Bt-=Be,Ft-=Ae,It-=Ue,U=U.next,z+=4}K+=r}for(var ne=0;ne<r;ne++){var Pe=o[z=ne<<2],Re=o[z+1],Ne=o[z+2],Qt=o[z+3],Sr=p*Pe,br=p*Re,Cr=p*Ne,Ar=p*Qt,ke=E*Pe,Je=E*Re,qe=E*Ne,_e=E*Qt;m=O;for(var Pn=0;Pn<p;Pn++)m.r=Pe,m.g=Re,m.b=Ne,m.a=Qt,m=m.next;for(var Rn=r,Pr=0,Rr=0,Nr=0,Ir=0,tr=1;tr<=i;tr++){var er=p-tr;ke+=(m.r=Pe=o[z=Rn+ne<<2])*er,Je+=(m.g=Re=o[z+1])*er,qe+=(m.b=Ne=o[z+2])*er,_e+=(m.a=Qt=o[z+3])*er,Ir+=Pe,Pr+=Re,Rr+=Ne,Nr+=Qt,m=m.next,tr<v&&(Rn+=r)}z=ne,B=O,U=N;for(var Mr=0;Mr<a;Mr++){var Kt=z<<2;o[Kt+3]=Qt=_e*j>>tt,Qt>0?(o[Kt]=(ke*j>>tt)*(Qt=255/Qt),o[Kt+1]=(Je*j>>tt)*Qt,o[Kt+2]=(qe*j>>tt)*Qt):o[Kt]=o[Kt+1]=o[Kt+2]=0,ke-=Sr,Je-=br,qe-=Cr,_e-=Ar,Sr-=B.r,br-=B.g,Cr-=B.b,Ar-=B.a,Kt=ne+((Kt=Mr+p)<v?Kt:v)*r<<2,ke+=Ir+=B.r=o[Kt],Je+=Pr+=B.g=o[Kt+1],qe+=Rr+=B.b=o[Kt+2],_e+=Nr+=B.a=o[Kt+3],B=B.next,Sr+=Pe=U.r,br+=Re=U.g,Cr+=Ne=U.b,Ar+=Qt=U.a,Ir-=Pe,Pr-=Re,Rr-=Ne,Nr-=Qt,U=U.next,z+=r}}return l}(o,0,0,r,a,i),l.getContext("2d").putImageData(o,t,e)}}var te=function l(){(function kt(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")})(this,l),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},nr=Object.freeze({__proto__:null,offscreen:function rr(){var{DOMParser:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:l,createCanvas:(e,r)=>new OffscreenCanvas(e,r),createImage:e=>(0,f.Z)(function*(){var r=yield fetch(e),a=yield r.blob();return yield createImageBitmap(a)})()};return(typeof DOMParser<"u"||typeof l>"u")&&Reflect.deleteProperty(t,"DOMParser"),t},node:function je(l){var{DOMParser:t,canvas:e,fetch:r}=l;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:e.createCanvas,createImage:e.loadImage}}});function Yt(l){return l.replace(/(?!\u3000)\s+/gm," ")}function ie(l){return l.replace(/^[\n \t]+/,"")}function Ie(l){return l.replace(/[\n \t]+$/,"")}function G(l){return((l||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var ot=/^[A-Z-]+$/;function yt(l){return ot.test(l)?l.toLowerCase():l}function dt(l){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(l)||[];return t[2]||t[3]||t[4]}function At(l){if(!l.startsWith("rgb"))return l;var t=3;return l.replace(/\d+(\.\d+)?/g,(r,a)=>t--&&a?String(Math.round(parseFloat(r))):r)}var fe=/(\[[^\]]+\])/g,Me=/(#[^\s+>~.[:]+)/g,ve=/(\.[^\s+>~.[:]+)/g,ce=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,ze=/(:[\w-]+\([^)]*\))/gi,Ge=/(:[^\s+>~.[:]+)/g,ar=/([^\s+>~.[:]+)/g;function Te(l,t){var e=t.exec(l);return e?[l.replace(t," "),e.length]:[l,0]}function wr(l){var t=[0,0,0],e=l.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[e,r]=Te(e,fe),t[1]+=r,[e,r]=Te(e,Me),t[0]+=r,[e,r]=Te(e,ve),t[1]+=r,[e,r]=Te(e,ce),t[2]+=r,[e,r]=Te(e,ze),t[1]+=r,[e,r]=Te(e,Ge),t[1]+=r,e=e.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[e,r]=Te(e,ar),t[2]+=r,t.join("")}var Oe=1e-8;function ir(l){return Math.sqrt(Math.pow(l[0],2)+Math.pow(l[1],2))}function $e(l,t){return(l[0]*t[0]+l[1]*t[1])/(ir(l)*ir(t))}function sr(l,t){return(l[0]*t[1]<l[1]*t[0]?-1:1)*Math.acos($e(l,t))}function or(l){return l*l*l}function ur(l){return 3*l*l*(1-l)}function lr(l){return 3*l*(1-l)*(1-l)}function hr(l){return(1-l)*(1-l)*(1-l)}function fr(l){return l*l}function vr(l){return 2*l*(1-l)}function cr(l){return(1-l)*(1-l)}let et=(()=>{class l{constructor(e,r,a){this.document=e,this.name=r,this.value=a,this.isNormalizedColor=!1}static empty(e){return new l(e,"EMPTY","")}split(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:a}=this;return Yt(this.getString()).trim().split(e).map(i=>new l(r,a,i))}hasValue(e){var{value:r}=this;return null!==r&&""!==r&&(e||0!==r)&&typeof r<"u"}isString(e){var{value:r}=this,a="string"==typeof r;return a&&e?e.test(r):a}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith("px"):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return typeof e>"u"||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return typeof e>"u"?0:parseFloat(e);var{value:r}=this,a=parseFloat(r);return this.isString(/%$/)&&(a/=100),a}getString(e){return typeof e>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(e)}getColor(e){var r=this.getString(e);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=At(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[a,i]="boolean"==typeof e?[void 0,e]:[e],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&i:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:var s=this.getNumber();return r&&s<1?s*o.computeSize(a):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():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 e=this.getString(),r=/#([^)'"]+)/.exec(e);return r&&(r=r[1]),r||(r=e),this.document.definitions[r]}getFillStyleDefinition(e,r){var a=this.getDefinition();if(!a)return null;if("function"==typeof a.createGradient)return a.createGradient(this.document.ctx,e,r);if("function"==typeof a.createPattern){if(a.getHrefAttribute().hasValue()){var i=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),i.hasValue()&&a.getAttribute("patternTransform",!0).setValue(i.value)}return a.createPattern(this.document.ctx,e,r)}return null}getTextBaseline(){return this.hasValue()?l.textBaselineMapping[this.getString()]:null}addOpacity(e){for(var r=this.getColor(),a=r.length,i=0,o=0;o<a&&(","===r[o]&&i++,3!==i);o++);if(e.hasValue()&&this.isString()&&3!==i){var s=new H(r);s.ok&&(s.alpha=e.getNumber(),r=s.toRGBA())}return new l(this.document,this.name,r)}}return l.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"},l})();class Vr{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"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class Mt{constructor(t,e){this.x=t,this.y=e}static parse(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[r=e,a=e]=G(t);return new Mt(r,a)}static parseScale(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[r=e,a=r]=G(t);return new Mt(r,a)}static parsePath(t){for(var e=G(t),r=e.length,a=[],i=0;i<r;i+=2)a.push(new Mt(e[i],e[i+1]));return a}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:e,y:r}=this,i=e*t[1]+r*t[3]+t[5];this.x=e*t[0]+r*t[2]+t[4],this.y=i}}class Dr{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,a=t.ctx.canvas;a.onclick=e,a.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:a}=t.ctx.canvas;a&&(a.cursor=""),e.forEach((i,o)=>{for(var{run:s}=i,u=r[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInPath&&e.isPointInPath(s,u)&&(a[o]=t)})}}checkBoundingBox(t,e){if(this.working&&e){var{events:r,eventElements:a}=this;r.forEach((i,o)=>{var{x:s,y:u}=i;!a[o]&&e.isPointInBox(s,u)&&(a[o]=t)})}}mapXY(t,e){for(var{window:r,ctx:a}=this.screen,i=new Mt(t,e),o=a.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:e,y:r,run(a){a.onClick&&a.onClick()}})}onMouseMove(t){var{x:e,y:r}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:e,y:r,run(a){a.onMouseMove&&a.onMouseMove()}})}}var Lr=typeof window<"u"?window:null,Br=typeof fetch<"u"?fetch.bind(void 0):null;let gr=(()=>{class l{constructor(e){var{fetch:r=Br,window:a=Lr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Vr,this.mouse=new Dr(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=r}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(r=>r());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle="rgba(0,0,0,0)",e.lineCap="butt",e.lineJoin="miter",e.miterLimit=4}setViewBox(e){var{document:r,ctx:a,aspectRatio:i,width:o,desiredWidth:s,height:u,desiredHeight:v,minX:p=0,minY:E=0,refX:O,refY:m,clip:N=!1,clipX:D=0,clipY:B=0}=e,U=Yt(i).replace(/^defer\s/,""),[K,z]=U.split(" "),j=K||"xMidYMid",tt=z||"meet",at=o/s,Q=u/v,lt=Math.min(at,Q),ct=Math.max(at,Q),xt=s,Ot=v;"meet"===tt&&(xt*=lt,Ot*=lt),"slice"===tt&&(xt*=ct,Ot*=ct);var Ct=new et(r,"refX",O),Bt=new et(r,"refY",m),Ft=Ct.hasValue()&&Bt.hasValue();if(Ft&&a.translate(-lt*Ct.getPixels("x"),-lt*Bt.getPixels("y")),N){var It=lt*D,Dt=lt*B;a.beginPath(),a.moveTo(It,Dt),a.lineTo(o,Dt),a.lineTo(o,u),a.lineTo(It,u),a.closePath(),a.clip()}if(!Ft){var Vt="meet"===tt&&lt===Q,jt="slice"===tt&&ct===Q,St="meet"===tt&&lt===at,mt="slice"===tt&&ct===at;j.startsWith("xMid")&&(Vt||jt)&&a.translate(o/2-xt/2,0),j.endsWith("YMid")&&(St||mt)&&a.translate(0,u/2-Ot/2),j.startsWith("xMax")&&(Vt||jt)&&a.translate(o-xt,0),j.endsWith("YMax")&&(St||mt)&&a.translate(0,u-Ot)}switch(!0){case"none"===j:a.scale(at,Q);break;case"meet"===tt:a.scale(lt,lt);break;case"slice"===tt:a.scale(ct,ct)}a.translate(-p,-E)}start(e){var{enableRedraw:r=!1,ignoreMouse:a=!1,ignoreAnimation:i=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:v,scaleHeight:p,offsetX:E,offsetY:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:m,mouse:N}=this,D=1e3/m;if(this.frameDuration=D,this.readyPromise=new Promise(j=>{this.resolveReady=j}),this.isReady()&&this.render(e,o,s,v,p,E,O),r){var B=Date.now(),U=B,K=0,z=()=>{B=Date.now(),(K=B-U)>=D&&(U=B-K%D,this.shouldUpdate(i,u)&&(this.render(e,o,s,v,p,E,O),N.runEvents())),this.intervalId=I(z)};a||N.start(),this.intervalId=I(z)}}stop(){this.intervalId&&(I.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(e,r){if(!e){var{frameDuration:a}=this;if(this.animations.reduce((o,s)=>s.update(a)||o,!1))return!0}return!!("function"==typeof r&&r()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,r,a,i,o,s,u){var{CLIENT_WIDTH:v,CLIENT_HEIGHT:p,viewPort:E,ctx:O,isFirstRender:m}=this,N=O.canvas;E.clear(),N.width&&N.height?E.setCurrent(N.width,N.height):E.setCurrent(v,p);var D=e.getStyle("width"),B=e.getStyle("height");!r&&(m||"number"!=typeof i&&"number"!=typeof o)&&(D.hasValue()&&(N.width=D.getPixels("x"),N.style&&(N.style.width="".concat(N.width,"px"))),B.hasValue()&&(N.height=B.getPixels("y"),N.style&&(N.style.height="".concat(N.height,"px"))));var U=N.clientWidth||N.width,K=N.clientHeight||N.height;if(r&&D.hasValue()&&B.hasValue()&&(U=D.getPixels("x"),K=B.getPixels("y")),E.setCurrent(U,K),"number"==typeof s&&e.getAttribute("x",!0).setValue(s),"number"==typeof u&&e.getAttribute("y",!0).setValue(u),"number"==typeof i||"number"==typeof o){var z=G(e.getAttribute("viewBox").getString()),j=0,tt=0;if("number"==typeof i){var at=e.getStyle("width");at.hasValue()?j=at.getPixels("x")/i:isNaN(z[2])||(j=z[2]/i)}if("number"==typeof o){var Q=e.getStyle("height");Q.hasValue()?tt=Q.getPixels("y")/o:isNaN(z[3])||(tt=z[3]/o)}j||(j=tt),tt||(tt=j),e.getAttribute("width",!0).setValue(i),e.getAttribute("height",!0).setValue(o);var lt=e.getStyle("transform",!0,!0);lt.setValue("".concat(lt.getString()," scale(").concat(1/j,", ").concat(1/tt,")"))}a||O.clearRect(0,0,U,K),e.render(O),m&&(this.isFirstRender=!1)}}return l.defaultWindow=Lr,l.defaultFetch=Br,l})();var{defaultFetch:Nn}=gr,In=typeof DOMParser<"u"?DOMParser:null;class He{constructor(){var{fetch:t=Nn,DOMParser:e=In}=arguments.length>0&&void 0!==arguments[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{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),a=yield r.text();return e.parseFromString(a)})()}}class Fr{constructor(t,e){this.type="translate",this.point=null,this.point=Mt.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 Ur{constructor(t,e,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=G(e);this.angle=new et(t,"angle",a[0]),this.originX=r[0],this.originY=r[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(o.getRadians()),t.translate(-s,-u)}unapply(t){var{cx:e,cy:r,originX:a,originY:i,angle:o}=this,s=e+a.getPixels("x"),u=r+i.getPixels("y");t.translate(s,u),t.rotate(-1*o.getRadians()),t.translate(-s,-u)}applyToPoint(t){var{cx:e,cy:r,angle:a}=this,i=a.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}class jr{constructor(t,e,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=Mt.parseScale(e);(0===a.x||0===a.y)&&(a.x=Oe,a.y=Oe),this.scale=a,this.originX=r[0],this.originY=r[1]}apply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.getPixels("y");t.translate(o,s),t.scale(e,r||e),t.translate(-o,-s)}unapply(t){var{scale:{x:e,y:r},originX:a,originY:i}=this,o=a.getPixels("x"),s=i.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 dr{constructor(t,e,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=G(e),this.originX=r[0],this.originY=r[1]}apply(t){var{originX:e,originY:r,matrix:a}=this,i=e.getPixels("x"),o=r.getPixels("y");t.translate(i,o),t.transform(a[0],a[1],a[2],a[3],a[4],a[5]),t.translate(-i,-o)}unapply(t){var{originX:e,originY:r,matrix:a}=this,i=a[0],o=a[2],s=a[4],u=a[1],v=a[3],p=a[5],N=1/(i*(1*v-0*p)-o*(1*u-0*p)+s*(0*u-0*v)),D=e.getPixels("x"),B=r.getPixels("y");t.translate(D,B),t.transform(N*(1*v-0*p),N*(0*p-1*u),N*(0*s-1*o),N*(1*i-0*s),N*(o*p-s*v),N*(s*u-i*p)),t.translate(-D,-B)}applyToPoint(t){t.applyTransform(this.matrix)}}class pr extends dr{constructor(t,e,r){super(t,e,r),this.type="skew",this.angle=null,this.angle=new et(t,"angle",e)}}class zr extends pr{constructor(t,e,r){super(t,e,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Gr extends pr{constructor(t,e,r){super(t,e,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}let Ye=(()=>{class l{constructor(e,r,a){this.document=e,this.transforms=[];var i=function Mn(l){return Yt(l).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r);i.forEach(o=>{if("none"!==o){var[s,u]=function wn(l){var[t,e]=l.split("(");return[t.trim(),e.trim().replace(")","")]}(o),v=l.transformTypes[s];typeof v<"u"&&this.transforms.push(new v(this.document,u,a))}})}static fromElement(e,r){var a=r.getStyle("transform",!1,!0),[i,o=i]=r.getStyle("transform-origin",!1,!0).split(),s=[i,o];return a.hasValue()?new l(e,a.getString(),s):null}apply(e){for(var{transforms:r}=this,a=r.length,i=0;i<a;i++)r[i].apply(e)}unapply(e){for(var{transforms:r}=this,i=r.length-1;i>=0;i--)r[i].unapply(e)}applyToPoint(e){for(var{transforms:r}=this,a=r.length,i=0;i<a;i++)r[i].applyToPoint(e)}}return l.transformTypes={translate:Fr,rotate:Ur,scale:jr,matrix:dr,skewX:zr,skewY:Gr},l})(),wt=(()=>{class l{constructor(e,r){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=e,this.node=r,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach(u=>{var v=yt(u.nodeName);this.attributes[v]=new et(e,v,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(u=>u.trim()).forEach(u=>{if(u){var[v,p]=u.split(":").map(E=>E.trim());this.styles[v]=new et(e,v,p)}});var{definitions:o}=e,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(r.childNodes).forEach(u=>{if(1===u.nodeType)this.addChild(u);else if(a&&(3===u.nodeType||4===u.nodeType)){var v=e.createTextNode(u);v.getText().length>0&&this.addChild(v)}})}}getAttribute(e){var a=this.attributes[e];if(!a&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=new et(this.document,e,"");return this.attributes[e]=i,i}return a||et.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if("href"===e||e.endsWith(":href"))return this.attributes[e];return et.empty(this.document)}getStyle(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.styles[e];if(i)return i;var o=this.getAttribute(e);if(null!=o&&o.hasValue())return this.styles[e]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(e);if(null!=u&&u.hasValue())return u}}if(r){var v=new et(this.document,e,"");return this.styles[e]=v,v}return i||et.empty(this.document)}render(e){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(e.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(e),r.apply(e,this))}else if("none"!==this.getStyle("filter").getValue("none")){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(e),a.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var r=Ye.fromElement(this.document,this);r&&r.apply(e);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var i=a.getDefinition();i&&i.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(r=>{r.render(e)})}addChild(e){var r=e instanceof l?e:this.document.createElement(e);r.parent=this,l.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(e){var r,{node:a}=this;if("function"==typeof a.matches)return a.matches(e);var i=null===(r=a.getAttribute)||void 0===r?void 0:r.call(a,"class");return!(!i||""===i)&&i.split(" ").some(o=>".".concat(o)===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:r}=this.document;for(var a in e)if(!a.startsWith("@")&&this.matchesSelector(a)){var i=e[a],o=r[a];if(i)for(var s in i){var u=this.stylesSpecificity[s];typeof u>"u"&&(u="000"),o>=u&&(this.styles[s]=i[s],this.stylesSpecificity[s]=o)}}}removeStyles(e,r){return r.reduce((i,o)=>{var s=e.getStyle(o);if(!s.hasValue())return i;var u=s.getString();return s.setValue(""),[...i,[o,u]]},[])}restoreStyles(e,r){r.forEach(a=>{var[i,o]=a;e.getStyle(i,!0).setValue(o)})}isFirstChild(){var e;return 0===(null===(e=this.parent)||void 0===e?void 0:e.children.indexOf(this))}}return l.ignoreChildTypes=["title"],l})();class $r extends wt{constructor(t,e,r){super(t,e,r)}}function Vn(l){var t=l.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}function Dn(l){return typeof process>"u"?l:l.trim().split(",").map(Vn).join(",")}function Ln(l){if(!l)return"";var t=l.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 Bn(l){if(!l)return"";var t=l.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:""}}let Se=(()=>{class l{constructor(e,r,a,i,o,s){var u=s?"string"==typeof s?l.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=i||u.fontSize,this.fontStyle=e||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=r||u.fontVariant}static parse(){var r=arguments.length>1?arguments[1]:void 0,a="",i="",o="",s="",u="",v=Yt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),p={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return v.forEach(E=>{switch(!0){case!p.fontStyle&&l.styles.includes(E):"inherit"!==E&&(a=E),p.fontStyle=!0;break;case!p.fontVariant&&l.variants.includes(E):"inherit"!==E&&(i=E),p.fontStyle=!0,p.fontVariant=!0;break;case!p.fontWeight&&l.weights.includes(E):"inherit"!==E&&(o=E),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0;break;case!p.fontSize:"inherit"!==E&&([s]=E.split("/")),p.fontStyle=!0,p.fontVariant=!0,p.fontWeight=!0,p.fontSize=!0;break;default:"inherit"!==E&&(u+=E)}}),new l(a,i,o,s,u,r)}toString(){return[Ln(this.fontStyle),this.fontVariant,Bn(this.fontWeight),this.fontSize,Dn(this.fontFamily)].join(" ").trim()}}return l.styles="normal|italic|oblique|inherit",l.variants="normal|small-caps|inherit",l.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",l})();class Jt{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=e,this.x2=r,this.y2=a,this.addPoint(t,e),this.addPoint(r,a)}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<"u"&&((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<"u"&&((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:a,y2:i}=t;this.addPoint(e,r),this.addPoint(a,i)}}sumCubic(t,e,r,a,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*a+Math.pow(t,3)*i}bezierCurveAdd(t,e,r,a,i){var o=6*e-12*r+6*a,s=-3*e+9*r-9*a+3*i,u=3*r-3*e;if(0!==s){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,a,i)):this.addY(this.sumCubic(E,e,r,a,i)));var O=(-o-Math.sqrt(p))/(2*s);0<O&&O<1&&(t?this.addX(this.sumCubic(O,e,r,a,i)):this.addY(this.sumCubic(O,e,r,a,i)))}}else{if(0===o)return;var v=-u/o;0<v&&v<1&&(t?this.addX(this.sumCubic(v,e,r,a,i)):this.addY(this.sumCubic(v,e,r,a,i)))}}addBezierCurve(t,e,r,a,i,o,s,u){this.addPoint(t,e),this.addPoint(s,u),this.bezierCurveAdd(!0,t,r,i,s),this.bezierCurveAdd(!1,e,a,o,u)}addQuadraticCurve(t,e,r,a,i,o){var s=t+.6666666666666666*(r-t),u=e+2/3*(a-e);this.addBezierCurve(t,e,s,s+1/3*(i-t),u,u+1/3*(o-e),i,o)}isPointInBox(t,e){var{x1:r,y1:a,x2:i,y2:o}=this;return r<=t&&t<=i&&a<=e&&e<=o}}class nt extends w{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 Mt(0,0),this.control=new Mt(0,0),this.current=new Mt(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 r=new Mt(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);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!==w.CURVE_TO&&t!==w.SMOOTH_CURVE_TO&&t!==w.QUAD_TO&&t!==w.SMOOTH_QUAD_TO)return this.current;var{current:{x:e,y:r},control:{x:a,y:i}}=this;return new Mt(2*e-a,2*r-i)}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:a,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=a[a.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 a=r+1;a<e;a++)if(t[a]){t[r]=t[a];break}return t}}class ge extends wt{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&&void 0!==arguments[1]&&arguments[1];if(!e){var r=this.getStyle("fill"),a=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,a);s&&(t.fillStyle=s)}else if(r.hasValue()){"currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor());var u=r.getColor();"inherit"!==u&&(t.fillStyle="none"===u?"rgba(0,0,0,0)":u)}if(a.hasValue()){var v=new et(this.document,"fill",t.fillStyle).addOpacity(a).getColor();t.fillStyle=v}if(i.isUrlDefinition()){var p=i.getFillStyleDefinition(this,o);p&&(t.strokeStyle=p)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var E=i.getString();"inherit"!==E&&(t.strokeStyle="none"===E?"rgba(0,0,0,0)":E)}if(o.hasValue()){var O=new et(this.document,"stroke",t.strokeStyle).addOpacity(o).getString();t.strokeStyle=O}var m=this.getStyle("stroke-width");if(m.hasValue()){var N=m.getPixels();t.lineWidth=N||Oe}var D=this.getStyle("stroke-linecap"),B=this.getStyle("stroke-linejoin"),U=this.getStyle("stroke-miterlimit"),K=this.getStyle("stroke-dasharray"),z=this.getStyle("stroke-dashoffset");if(D.hasValue()&&(t.lineCap=D.getString()),B.hasValue()&&(t.lineJoin=B.getString()),U.hasValue()&&(t.miterLimit=U.getNumber()),K.hasValue()&&"none"!==K.getString()){var j=G(K.getString());typeof t.setLineDash<"u"?t.setLineDash(j):typeof t.webkitLineDash<"u"?t.webkitLineDash=j:typeof t.mozDash<"u"&&(1!==j.length||0!==j[0])&&(t.mozDash=j);var tt=z.getPixels();typeof t.lineDashOffset<"u"?t.lineDashOffset=tt:typeof t.webkitLineDashOffset<"u"?t.webkitLineDashOffset=tt:typeof t.mozDashOffset<"u"&&(t.mozDashOffset=tt)}}if(this.modifiedEmSizeStack=!1,typeof t.font<"u"){var at=this.getStyle("font"),Q=this.getStyle("font-style"),lt=this.getStyle("font-variant"),ct=this.getStyle("font-weight"),xt=this.getStyle("font-size"),Ot=this.getStyle("font-family"),Ct=new Se(Q.getString(),lt.getString(),ct.getString(),xt.hasValue()?"".concat(xt.getPixels(!0),"px"):"",Ot.getString(),Se.parse(at.getString(),t.font));Q.setValue(Ct.fontStyle),lt.setValue(Ct.fontVariant),ct.setValue(Ct.fontWeight),xt.setValue(Ct.fontSize),Ot.setValue(Ct.fontFamily),t.font=Ct.toString(),xt.isPixels()&&(this.document.emSize=xt.getPixels(),this.modifiedEmSizeStack=!0)}e||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Tt extends ge{constructor(t,e,r){super(t,e,r),this.type="path",this.pathParser=null,this.pathParser=new nt(this.getAttribute("d").getString())}path(t){var{pathParser:e}=this,r=new Jt;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case nt.MOVE_TO:this.pathM(t,r);break;case nt.LINE_TO:this.pathL(t,r);break;case nt.HORIZ_LINE_TO:this.pathH(t,r);break;case nt.VERT_LINE_TO:this.pathV(t,r);break;case nt.CURVE_TO:this.pathC(t,r);break;case nt.SMOOTH_CURVE_TO:this.pathS(t,r);break;case nt.QUAD_TO:this.pathQ(t,r);break;case nt.SMOOTH_QUAD_TO:this.pathT(t,r);break;case nt.ARC:this.pathA(t,r);break;case nt.CLOSE_PATH:this.pathZ(t,r)}return r}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map((i,o)=>[i,r[o]])}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var a=r.length-1,i=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var u=i.getDefinition(),[v,p]=r[0];u.render(t,v,p)}if(o.isUrlDefinition())for(var E=o.getDefinition(),O=1;O<a;O++){var[m,N]=r[O];E.render(t,m,N)}if(s.isUrlDefinition()){var D=s.getDefinition(),[B,U]=r[a];D.render(t,B,U)}}}static pathM(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}pathM(t,e){var{pathParser:r}=this,{point:a}=Tt.pathM(r),{x:i,y:o}=a;r.addMarker(a),e.addPoint(i,o),t&&t.moveTo(i,o)}static pathL(t){var{current:e}=t;return{current:e,point:t.getAsCurrentPoint()}}pathL(t,e){var{pathParser:r}=this,{current:a,point:i}=Tt.pathL(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathH(t){var{current:e,command:r}=t,a=new Mt((r.relative?e.x:0)+r.x,e.y);return t.current=a,{current:e,point:a}}pathH(t,e){var{pathParser:r}=this,{current:a,point:i}=Tt.pathH(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathV(t){var{current:e,command:r}=t,a=new Mt(e.x,(r.relative?e.y:0)+r.y);return t.current=a,{current:e,point:a}}pathV(t,e){var{pathParser:r}=this,{current:a,point:i}=Tt.pathV(r),{x:o,y:s}=i;r.addMarker(i,a),e.addPoint(o,s),t&&t.lineTo(o,s)}static pathC(t){var{current:e}=t;return{current:e,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=Tt.pathC(r);r.addMarker(s,o,i),e.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathS(t){var{current:e}=t;return{current:e,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,e){var{pathParser:r}=this,{current:a,point:i,controlPoint:o,currentPoint:s}=Tt.pathS(r);r.addMarker(s,o,i),e.addBezierCurve(a.x,a.y,i.x,i.y,o.x,o.y,s.x,s.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,s.x,s.y)}static pathQ(t){var{current:e}=t;return{current:e,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=Tt.pathQ(r);r.addMarker(o,i,i),e.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathT(t){var{current:e}=t,r=t.getReflectedControlPoint();return t.control=r,{current:e,controlPoint:r,currentPoint:t.getAsCurrentPoint()}}pathT(t,e){var{pathParser:r}=this,{current:a,controlPoint:i,currentPoint:o}=Tt.pathT(r);r.addMarker(o,i,i),e.addQuadraticCurve(a.x,a.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}static pathA(t){var{current:e,command:r}=t,{rX:a,rY:i,xRot:o,lArcFlag:s,sweepFlag:u}=r,v=o*(Math.PI/180),p=t.getAsCurrentPoint(),E=new Mt(Math.cos(v)*(e.x-p.x)/2+Math.sin(v)*(e.y-p.y)/2,-Math.sin(v)*(e.x-p.x)/2+Math.cos(v)*(e.y-p.y)/2),O=Math.pow(E.x,2)/Math.pow(a,2)+Math.pow(E.y,2)/Math.pow(i,2);O>1&&(a*=Math.sqrt(O),i*=Math.sqrt(O));var m=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(i,2)-Math.pow(a,2)*Math.pow(E.y,2)-Math.pow(i,2)*Math.pow(E.x,2))/(Math.pow(a,2)*Math.pow(E.y,2)+Math.pow(i,2)*Math.pow(E.x,2)));isNaN(m)&&(m=0);var N=new Mt(m*a*E.y/i,m*-i*E.x/a),D=new Mt((e.x+p.x)/2+Math.cos(v)*N.x-Math.sin(v)*N.y,(e.y+p.y)/2+Math.sin(v)*N.x+Math.cos(v)*N.y),B=sr([1,0],[(E.x-N.x)/a,(E.y-N.y)/i]),U=[(E.x-N.x)/a,(E.y-N.y)/i],K=[(-E.x-N.x)/a,(-E.y-N.y)/i],z=sr(U,K);return $e(U,K)<=-1&&(z=Math.PI),$e(U,K)>=1&&(z=0),{currentPoint:p,rX:a,rY:i,sweepFlag:u,xAxisRotation:v,centp:D,a1:B,ad:z}}pathA(t,e){var{pathParser:r}=this,{currentPoint:a,rX:i,rY:o,sweepFlag:s,xAxisRotation:u,centp:v,a1:p,ad:E}=Tt.pathA(r),O=1-s?1:-1,m=p+O*(E/2),N=new Mt(v.x+i*Math.cos(m),v.y+o*Math.sin(m));if(r.addMarkerAngle(N,m-O*Math.PI/2),r.addMarkerAngle(a,m-O*Math.PI),e.addPoint(a.x,a.y),t&&!isNaN(p)&&!isNaN(E)){var D=i>o?i:o,B=i>o?1:i/o,U=i>o?o/i:1;t.translate(v.x,v.y),t.rotate(u),t.scale(B,U),t.arc(0,0,D,p,p+E,!!(1-s)),t.scale(1/B,1/U),t.rotate(-u),t.translate(-v.x,-v.y)}}static pathZ(t){t.current=t.start}pathZ(t,e){Tt.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}class yr extends Tt{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 ge{constructor(t,e,r){super(t,e,new.target===se||r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);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("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var e=null;return this.children.forEach((r,a)=>{var i=this.getChildBoundingBox(t,this,this,a);e?e.addBoundingBox(i):e=i}),e}getFontSize(){var{document:t,parent:e}=this,r=Se.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(r)}getTElementBoundingBox(t){var e=this.getFontSize();return new Jt(this.x,this.y-e,this.x+this.measureText(t),this.y)}getGlyph(t,e,r){var a=e[r],i=null;if(t.isArabic){var o=e.length,s=e[r-1],u=e[r+1],v="isolated";if((0===r||" "===s)&&r<o-1&&" "!==u&&(v="terminal"),r>0&&" "!==s&&r<o-1&&" "!==u&&(v="medial"),r>0&&" "!==s&&(r===o-1||" "===u)&&(v="initial"),typeof t.glyphs[a]<"u"){var p=t.glyphs[a];i=p instanceof yr?p:p[v]}}else i=t.glyphs[a];return i||(i=t.missingGlyph),i}getText(){return""}getTextFromNode(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),a=r.indexOf(e),i=r.length-1,o=Yt(e.textContent||"");return 0===a&&(o=ie(o)),a===i&&(o=Ie(o)),o}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach((r,a)=>{this.renderChild(t,this,this,a)});var{mouse:e}=this.document.screen;e.isWorking()&&e.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:e,parent:r}=this,a=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var{unitsPerEm:o}=i.fontFace,s=Se.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(s.fontSize),v=r.getStyle("font-style").getString(s.fontStyle),p=u/o,E=i.isRTL?a.split("").reverse().join(""):a,O=G(r.getAttribute("dx").getString()),m=E.length,N=0;N<m;N++){var D=this.getGlyph(i,E,N);t.translate(this.x,this.y),t.scale(p,-p);var B=t.lineWidth;t.lineWidth=t.lineWidth*o/u,"italic"===v&&t.transform(1,0,.4,1,0,0),D.render(t),"italic"===v&&t.transform(1,0,-.4,1,0,0),t.lineWidth=B,t.scale(1/p,-1/p),t.translate(-this.x,-this.y),this.x+=u*(D.horizAdvX||i.horizAdvX)/o,typeof O[N]<"u"&&!isNaN(O[N])&&(this.x+=O[N])}else{var{x:U,y:K}=this;t.fillStyle&&t.fillText(a,U,K),t.strokeStyle&&t.strokeText(a,U,K)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var a,t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start");a="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=a;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,a){var i=r.children[a];i.children.length>0?i.children.forEach((o,s)=>{e.adjustChildCoordinatesRecursiveCore(t,e,i,s)}):this.adjustChildCoordinates(t,e,r,a)}adjustChildCoordinates(t,e,r,a){var i=r.children[a];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),v=i.getAttribute("dy"),p=i.getStyle("font-family").getDefinition(),E=!!p&&p.isRTL;0===a&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),u.hasValue()||u.setValue(i.getInheritedAttribute("dx")),v.hasValue()||v.setValue(i.getInheritedAttribute("dy")));var O=i.measureText(t);return E&&(e.x-=O),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),u.hasValue()&&(i.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x,E||(e.x+=O),s.hasValue()?(i.y=s.getPixels("y"),v.hasValue()&&(i.y+=v.getPixels("y"))):(v.hasValue()&&(e.y+=v.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+O),e.maxX=Math.max(e.maxX,i.x,i.x+O),i.clearContext(t),t.restore(),i}getChildBoundingBox(t,e,r,a){var i=r.children[a];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(t);return o?(i.children.forEach((s,u)=>{var v=e.getChildBoundingBox(t,e,i,u);o.addBoundingBox(v)}),o):null}renderChild(t,e,r,a){var i=r.children[a];i.render(t),i.children.forEach((o,s)=>{e.renderChild(t,e,i,s)})}measureText(t){var{measureCache:e}=this;if(~e)return e;var r=this.getText(),a=this.measureTargetText(t,r);return this.measureCache=a,a}measureTargetText(t,e){if(!e.length)return 0;var{parent:r}=this,a=r.getStyle("font-family").getDefinition();if(a){for(var i=this.getFontSize(),o=a.isRTL?e.split("").reverse().join(""):e,s=G(r.getAttribute("dx").getString()),u=o.length,v=0,p=0;p<u;p++)v+=(this.getGlyph(a,o,p).horizAdvX||a.horizAdvX)*i/a.fontFace.unitsPerEm,typeof s[p]<"u"&&!isNaN(s[p])&&(v+=s[p]);return v}if(!t.measureText)return 10*e.length;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 Fe extends se{constructor(t,e,r){super(t,e,new.target===Fe||r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Fn extends Fe{constructor(){super(...arguments),this.type="textNode"}}class we extends ge{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var e,{document:r}=this,{screen:a,window:i}=r,o=t.canvas;if(a.setDefaults(t),o.style&&typeof t.font<"u"&&i&&typeof i.getComputedStyle<"u"){t.font=i.getComputedStyle(o).getPropertyValue("font");var s=new et(r,"fontSize",Se.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:v}=a.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()?G(O.getString()):null,N=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),D=0,B=0,U=0,K=0;m&&(D=m[0],B=m[1]),this.root||(u=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y"),"marker"===this.type&&(U=D,K=B,D=0,B=0)),a.viewPort.setCurrent(u,v),this.node&&(!this.parent||"foreignObject"===(null===(e=this.node.parentNode)||void 0===e?void 0:e.nodeName))&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),m&&(u=m[2],v=m[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:v,minX:D,minY:B,refX:p.getValue(),refY:E.getValue(),clip:N,clipX:U,clipY:K}),m&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,v))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),v=i.getNumber(0);if(r)if("string"==typeof r)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(a.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(v||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 mr extends Tt{constructor(){super(...arguments),this.type="rect"}path(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),v=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(v=u),s.hasValue()&&!o.hasValue()&&(u=v),u=Math.min(u,a/2),v=Math.min(v,i/2),t){var p=(Math.sqrt(2)-1)/3*4;t.beginPath(),i>0&&a>0&&(t.moveTo(e+u,r),t.lineTo(e+a-u,r),t.bezierCurveTo(e+a-u+p*u,r,e+a,r+v-p*v,e+a,r+v),t.lineTo(e+a,r+i-v),t.bezierCurveTo(e+a,r+i-v+p*v,e+a-u+p*u,r+i,e+a-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-p*u,r+i,e,r+i-v+p*v,e,r+i-v),t.lineTo(e,r+v),t.bezierCurveTo(e,r+v-p*v,e+u-p*u,r,e+u,r),t.closePath())}return new Jt(e,r,e+a,r+i)}getMarkers(){return null}}class Hr extends Tt{constructor(){super(...arguments),this.type="circle"}path(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return t&&a>0&&(t.beginPath(),t.arc(e,r,a,0,2*Math.PI,!1),t.closePath()),new Jt(e-a,r-a,e+a,r+a)}getMarkers(){return null}}class Yr extends Tt{constructor(){super(...arguments),this.type="ellipse"}path(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&r>0&&a>0&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*a,i+e*r,o+a,i,o+a),t.bezierCurveTo(i-e*r,o+a,i-r,o+e*a,i-r,o),t.bezierCurveTo(i-r,o-e*a,i-e*r,o-a,i,o-a),t.bezierCurveTo(i+e*r,o-a,i+r,o-e*a,i+r,o),t.closePath()),new Jt(i-r,o-a,i+r,o+a)}getMarkers(){return null}}class Xr extends Tt{constructor(){super(...arguments),this.type="line"}getPoints(){return[new Mt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Mt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:e,y:r},{x:a,y:i}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(e,r),t.lineTo(a,i)),new Jt(e,r,a,i)}getMarkers(){var[t,e]=this.getPoints(),r=t.angleTo(e);return[[t,r],[e,r]]}}class xr extends Tt{constructor(t,e,r){super(t,e,r),this.type="polyline",this.points=[],this.points=Mt.parsePath(this.getAttribute("points").getString())}path(t){var{points:e}=this,[{x:r,y:a}]=e,i=new Jt(r,a);return t&&(t.beginPath(),t.moveTo(r,a)),e.forEach(o=>{var{x:s,y:u}=o;i.addPoint(s,u),t&&t.lineTo(s,u)}),i}getMarkers(){var{points:t}=this,e=t.length-1,r=[];return t.forEach((a,i)=>{i!==e&&r.push([a,a.angleTo(t[i+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}class Wr extends xr{constructor(){super(...arguments),this.type="polygon"}path(t){var e=super.path(t),[{x:r,y:a}]=this.points;return t&&(t.lineTo(r,a),t.closePath()),e}}class Qr extends wt{constructor(){super(...arguments),this.type="pattern"}createPattern(t,e,r){var a=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new we(this.document,null);o.attributes.viewBox=new et(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new et(this.document,"width","".concat(a,"px")),o.attributes.height=new et(this.document,"height","".concat(i,"px")),o.attributes.transform=new et(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,i),u=s.getContext("2d"),v=this.getAttribute("x"),p=this.getAttribute("y");v.hasValue()&&p.hasValue()&&u.translate(v.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 et(this.document,"x",E*s.width),o.attributes.y=new et(this.document,"y",O*s.height),o.render(u),u.restore();return t.createPattern(s,"repeat")}}class Kr extends wt{constructor(){super(...arguments),this.type="marker"}render(t,e,r){if(e){var{x:a,y:i}=e,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(a,i),"auto"===o&&t.rotate(r),"strokeWidth"===s&&t.scale(t.lineWidth,t.lineWidth),t.save();var u=new we(this.document,null);u.type=this.type,u.attributes.viewBox=new et(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new et(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new et(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new et(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new et(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new et(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new et(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new et(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(t),t.restore(),"strokeWidth"===s&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-a,-i)}}}class Zr extends wt{constructor(){super(...arguments),this.type="defs"}render(){}}class Xe extends ge{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var e=new Jt;return this.children.forEach(r=>{e.addBoundingBox(r.getBoundingBox(t))}),e}}class Er extends wt{constructor(t,e,r){super(t,e,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:i}=this;i.forEach(o=>{"stop"===o.type&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,e,r){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:i}=a,o=this.getGradient(t,e);if(!o)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(B=>{o.addColorStop(B.offset,this.addParentOpacity(r,B.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:v}=s.screen,[p]=v.viewPorts,E=new mr(s,null);E.attributes.x=new et(s,"x",-u/3),E.attributes.y=new et(s,"y",-u/3),E.attributes.width=new et(s,"width",u),E.attributes.height=new et(s,"height",u);var O=new Xe(s,null);O.attributes.transform=new et(s,"transform",this.getAttribute("gradientTransform").getValue()),O.children=[E];var m=new we(s,null);m.attributes.x=new et(s,"x",0),m.attributes.y=new et(s,"y",0),m.attributes.width=new et(s,"width",p.width),m.attributes.height=new et(s,"height",p.height),m.children=[O];var N=s.createCanvas(p.width,p.height),D=N.getContext("2d");return D.fillStyle=o,m.render(D),D.createPattern(N,"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){return t.hasValue()?new et(this.document,"color",e).addOpacity(t).getColor():e}}class kr extends Er{constructor(t,e,r){super(t,e,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,e){var r="objectBoundingBox"===this.getGradientUnits(),a=r?e.getBoundingBox(t):null;if(r&&!a)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=r?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&o===u?null:t.createLinearGradient(i,o,s,u)}}class Jr extends Er{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="objectBoundingBox"===this.getGradientUnits(),a=e.getBoundingBox(t);if(r&&!a)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,u=o;this.getAttribute("fx").hasValue()&&(s=r?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=r?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var v=r?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),p=this.getAttribute("fr").getPixels();return t.createRadialGradient(s,u,p,i,o,v)}}class qr extends wt{constructor(t,e,r){super(t,e,r),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);""===o.getString()&&o.setValue("#000"),i.hasValue()&&(o=o.addOpacity(i)),this.offset=a,this.color=o.getColor()}}class We extends wt{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 et(t,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}calcValue(){var{initialUnits:t}=this,{progress:e,from:r,to:a}=this.getProgress(),i=r.getNumber()+(a.getNumber()-r.getNumber())*e;return"%"===t&&(i*=100),"".concat(i).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 a=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==a||this.frozen){if("remove"===a&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;var i=!1;if(this.begin<this.duration){var o=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var u=s.getString();o="".concat(u,"(").concat(o,")")}r.setValue(o),i=!0}return i}getProgress(){var{document:t,values:e}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(e.hasValue()){var a=r.progress*(e.getValue().length-1),i=Math.floor(a),o=Math.ceil(a);r.from=new et(t,"from",parseFloat(e.getValue()[i])),r.to=new et(t,"to",parseFloat(e.getValue()[o])),r.progress=(a-i)/(o-i)}else r.from=this.from,r.to=this.to;return r}}class _r extends We{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=new H(e.getColor()),i=new H(r.getColor());if(a.ok&&i.ok){var s=a.g+(i.g-a.g)*t,u=a.b+(i.b-a.b)*t;return"rgb(".concat(Math.floor(a.r+(i.r-a.r)*t),", ").concat(Math.floor(s),", ").concat(Math.floor(u),")")}return this.getAttribute("from").getColor()}}class tn extends We{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:e,to:r}=this.getProgress(),a=G(e.getString()),i=G(r.getString());return a.map((s,u)=>s+(i[u]-s)*t).join(" ")}}class en extends wt{constructor(t,e,r){super(t,e,r),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=t,{children:i}=this;for(var o of i)switch(o.type){case"font-face":this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(a[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]>"u"&&(this.glyphs[u.unicode]={}),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u}}render(){}}class rn extends wt{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 nn extends Tt{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class an 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 sn extends se{constructor(t,e,r){super(t,e,r),this.type="a";var{childNodes:a}=e,i=a[0],o=a.length>0&&Array.from(a).every(s=>3===s.nodeType);this.hasText=o,this.text=o?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:e,x:r,y:a}=this,{mouse:i}=e.screen,o=new et(e,"fontSize",Se.parse(e.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Jt(r,a-o.getPixels("y"),r+this.measureText(t),a))}else if(this.children.length>0){var s=new Xe(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(){this.document.ctx.canvas.style.cursor="pointer"}}function on(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function Qe(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?on(Object(e),!0).forEach(function(r){P(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):on(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class un 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 a=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(a)}getText(){return this.text}path(t){var{dataArray:e}=this;t&&t.beginPath(),e.forEach(r=>{var{type:a,points:i}=r;switch(a){case nt.LINE_TO:t&&t.lineTo(i[0],i[1]);break;case nt.MOVE_TO:t&&t.moveTo(i[0],i[1]);break;case nt.CURVE_TO:t&&t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case nt.QUAD_TO:t&&t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case nt.ARC:var[o,s,u,v,p,E,O,m]=i,N=u>v?u:v,D=u>v?1:u/v,B=u>v?v/u:1;t&&(t.translate(o,s),t.rotate(O),t.scale(D,B),t.arc(0,0,N,p,p+E,!!(1-m)),t.scale(1/D,1/B),t.rotate(-O),t.translate(-o,-s));break;case nt.CLOSE_PATH:t&&t.closePath()}})}renderChildren(t){this.setTextData(t),t.save();var e=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:a}=this,i=t.fillStyle;"underline"===e&&t.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:v,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(),"underline"===e&&(0===s&&t.moveTo(u.x,u.y+r/8),t.lineTo(v.x,v.y+r/5))}),"underline"===e&&(t.lineWidth=r/20,t.strokeStyle=i,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,e,r,a,i,o,s,u,v){var p=o,E=this.measureText(t,u);" "===u&&"justify"===e&&r<a&&(E+=(a-r)/i),v>-1&&(p+=this.getLetterSpacingAt(v));var O=this.textHeight/20,m=this.getEquidistantPointOnPath(p,O,0),N=this.getEquidistantPointOnPath(p+E,O,0),D={p0:m,p1:N},B=m&&N?Math.atan2(N.y-m.y,N.x-m.x):0;if(s){var U=Math.cos(Math.PI/2+B)*s,K=Math.cos(-B)*s;D.p0=Qe(Qe({},m),{},{x:m.x+U,y:m.y+K}),D.p1=Qe(Qe({},N),{},{x:N.x+U,y:N.y+K})}return{offset:p+=E,segment:D,rotation:B}}measureText(t,e){var{measuresCache:r}=this,a=e||this.getText();if(r.has(a))return r.get(a);var i=this.measureTargetText(t,a);return r.set(a,i),i}setTextData(t){if(!this.glyphInfo){var e=this.getText(),r=e.split(""),a=e.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(j=>j.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),v=this.parent.getStyle("letter-spacing"),p=0;u.hasValue()&&"inherit"!==u.getValue()?u.hasValue()&&"initial"!==u.getValue()&&"unset"!==u.getValue()&&(p=u.getPixels()):p=v.getPixels();var E=[],O=e.length;this.letterSpacingCache=E;for(var m=0;m<O;m++)E.push(typeof i[m]<"u"?i[m]:p);var N=E.reduce((j,tt,at)=>0===at?0:j+tt||0,0),D=this.measureText(t),B=Math.max(D+N,0);this.textWidth=D,this.textHeight=this.getFontSize(),this.glyphInfo=[];var U=this.getPathLength(),K=this.getStyle("startOffset").getNumber(0)*U,z=0;("middle"===s||"center"===s)&&(z=-B/2),("end"===s||"right"===s)&&(z=-B),z+=K,r.forEach((j,tt)=>{var{offset:at,segment:Q,rotation:lt}=this.findSegmentToFitChar(t,s,B,U,a,z,o,j,tt);z=at,Q.p0&&Q.p1&&this.glyphInfo.push({text:r[tt],p0:Q.p0,p1:Q.p1,rotation:lt})})}}parsePathData(t){if(this.pathLength=-1,!t)return[];var e=[],{pathParser:r}=t;for(r.reset();!r.isEnd();){var{current:a}=r,i=a?a.x:0,o=a?a.y:0,s=r.next(),u=s.type,v=[];switch(s.type){case nt.MOVE_TO:this.pathM(r,v);break;case nt.LINE_TO:u=this.pathL(r,v);break;case nt.HORIZ_LINE_TO:u=this.pathH(r,v);break;case nt.VERT_LINE_TO:u=this.pathV(r,v);break;case nt.CURVE_TO:this.pathC(r,v);break;case nt.SMOOTH_CURVE_TO:u=this.pathS(r,v);break;case nt.QUAD_TO:this.pathQ(r,v);break;case nt.SMOOTH_QUAD_TO:u=this.pathT(r,v);break;case nt.ARC:v=this.pathA(r);break;case nt.CLOSE_PATH:Tt.pathZ(r)}e.push(s.type!==nt.CLOSE_PATH?{type:u,points:v,start:{x:i,y:o},pathLength:this.calcLength(i,o,u,v)}:{type:nt.CLOSE_PATH,points:[],pathLength:0})}return e}pathM(t,e){var{x:r,y:a}=Tt.pathM(t).point;e.push(r,a)}pathL(t,e){var{x:r,y:a}=Tt.pathL(t).point;return e.push(r,a),nt.LINE_TO}pathH(t,e){var{x:r,y:a}=Tt.pathH(t).point;return e.push(r,a),nt.LINE_TO}pathV(t,e){var{x:r,y:a}=Tt.pathV(t).point;return e.push(r,a),nt.LINE_TO}pathC(t,e){var{point:r,controlPoint:a,currentPoint:i}=Tt.pathC(t);e.push(r.x,r.y,a.x,a.y,i.x,i.y)}pathS(t,e){var{point:r,controlPoint:a,currentPoint:i}=Tt.pathS(t);return e.push(r.x,r.y,a.x,a.y,i.x,i.y),nt.CURVE_TO}pathQ(t,e){var{controlPoint:r,currentPoint:a}=Tt.pathQ(t);e.push(r.x,r.y,a.x,a.y)}pathT(t,e){var{controlPoint:r,currentPoint:a}=Tt.pathT(t);return e.push(r.x,r.y,a.x,a.y),nt.QUAD_TO}pathA(t){var{rX:e,rY:r,sweepFlag:a,xAxisRotation:i,centp:o,a1:s,ad:u}=Tt.pathA(t);return 0===a&&u>0&&(u-=2*Math.PI),1===a&&u<0&&(u+=2*Math.PI),[o.x,o.y,e,r,s,u,i,a]}calcLength(t,e,r,a){var i=0,o=null,s=null,u=0;switch(r){case nt.LINE_TO:return this.getLineLength(t,e,a[0],a[1]);case nt.CURVE_TO:for(i=0,o=this.getPointOnCubicBezier(0,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,t,e,a[0],a[1],a[2],a[3],a[4],a[5]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.QUAD_TO:for(i=0,o=this.getPointOnQuadraticBezier(0,t,e,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,t,e,a[0],a[1],a[2],a[3]),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return i;case nt.ARC:i=0;var v=a[4],p=a[5],E=a[4]+p,O=Math.PI/180;if(Math.abs(v-E)<O&&(O=Math.abs(v-E)),o=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],v,0),p<0)for(u=v-O;u>E;u-=O)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=v+O;u<E;u+=O)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),i+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],E,0),i+this.getLineLength(o.x,o.y,s.x,s.y)}return 0}getPointOnLine(t,e,r,a,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(a-e+Oe),v=Math.sqrt(t*t/(1+u*u));a<e&&(v*=-1);var p=u*v,E=null;if(a===e)E={x:o,y:s+p};else if((s-r)/(o-e+Oe)===u)E={x:o+v,y:s+p};else{var O,m,N=this.getLineLength(e,r,a,i);if(N<Oe)return null;var D=(o-e)*(a-e)+(s-r)*(i-r),B=this.getLineLength(o,s,O=e+(D/=N*N)*(a-e),m=r+D*(i-r)),U=Math.sqrt(t*t-B*B);v=Math.sqrt(U*U/(1+u*u)),a<e&&(v*=-1),E={x:O+v,y:m+(p=u*v)}}return E}getPointOnPath(t){var e=this.getPathLength(),r=0,a=null;if(t<-5e-5||t-5e-5>e)return null;var{dataArray:i}=this;for(var o of i){if(!o||!(o.pathLength<5e-5||r+o.pathLength+5e-5<t)){var s=t-r,u=0;switch(o.type){case nt.LINE_TO:a=this.getPointOnLine(s,o.start.x,o.start.y,o.points[0],o.points[1],o.start.x,o.start.y);break;case nt.ARC:var p=o.points[5],E=o.points[4]+p;if(u=o.points[4]+s/o.pathLength*p,p<0&&u<E||p>=0&&u>E)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break;case nt.CURVE_TO:(u=s/o.pathLength)>1&&(u=1),a=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 nt.QUAD_TO:(u=s/o.pathLength)>1&&(u=1),a=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3])}if(a)return a;break}r+=o.pathLength}return null}getLineLength(t,e,r,a){return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce((t,e)=>e.pathLength>0?t+e.pathLength:t,0)),this.pathLength}getPointOnCubicBezier(t,e,r,a,i,o,s,u,v){return{x:u*or(t)+o*ur(t)+a*lr(t)+e*hr(t),y:v*or(t)+s*ur(t)+i*lr(t)+r*hr(t)}}getPointOnQuadraticBezier(t,e,r,a,i,o,s){return{x:o*fr(t)+a*vr(t)+e*cr(t),y:s*fr(t)+i*vr(t)+r*cr(t)}}getPointOnEllipticalArc(t,e,r,a,i,o){var s=Math.cos(o),u=Math.sin(o),v_x=r*Math.cos(i),v_y=a*Math.sin(i);return{x:t+(v_x*s-v_y*u),y:e+(v_x*u+v_y*s)}}buildEquidistantCache(t,e){var r=this.getPathLength(),a=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==a){this.equidistantCache={step:i,precision:a,points:[]};for(var o=0,s=0;s<=r;s+=a){var u=this.getPointOnPath(s),v=this.getPointOnPath(s+a);!u||!v||(o+=this.getLineLength(u.x,u.y,v.x,v.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=i)}}}getEquidistantPointOnPath(t,e,r){if(this.buildEquidistantCache(e,r),t<0||t-this.getPathLength()>5e-5)return null;var a=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}}var Un=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ln extends ge{constructor(t,e,r){super(t,e,r),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var i=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);t.images.push(this),i?this.loadSvg(a):this.loadImage(a),this.isSvg=i}}loadImage(t){var e=this;return(0,f.Z)(function*(){try{var r=yield e.document.createImage(t);e.image=r}catch(a){console.error('Error while loading image "'.concat(t,'":'),a)}e.loaded=!0})()}loadSvg(t){var e=this;return(0,f.Z)(function*(){var r=Un.exec(t);if(r){var a=r[5];e.image="base64"===r[4]?atob(a):decodeURIComponent(a)}else try{var i=yield e.document.fetch(t),o=yield i.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:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(a&&r&&s&&u){if(t.save(),t.translate(i,o),this.isSvg){var v=e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});v.document.documentElement.parent=this,v.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>"u"||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"),a=this.getStyle("height").getPixels("y");return new Jt(t,e,t+r,e+a)}}class hn extends ge{constructor(){super(...arguments),this.type="symbol"}render(t){}}class fn{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:a}=r,o=(yield a.canvg.parser.load(e)).getElementsByTagName("font");Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[t]=u})}catch(s){console.error('Error while loading font "'.concat(e,'":'),s)}r.loaded=!0})()}}let vn=(()=>{class l extends wt{constructor(e,r,a){super(e,r,a),this.type="style",Yt(Array.from(r.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(s=>{var u=s.trim();if(u){var v=u.split("{"),p=v[0].split(","),E=v[1].split(";");p.forEach(O=>{var m=O.trim();if(m){var N=e.styles[m]||{};if(E.forEach(U=>{var K=U.indexOf(":"),z=U.substr(0,K).trim(),j=U.substr(K+1,U.length-K).trim();z&&j&&(N[z]=new et(e,z,j))}),e.styles[m]=N,e.stylesSpecificity[m]=wr(m),"@font-face"===m){var D=N["font-family"].getString().replace(/"|'/g,"");N.src.getString().split(",").forEach(U=>{if(U.indexOf('format("svg")')>0){var K=dt(U);K&&new fn(e).load(D,K)}})}}})}})}}return l.parseExternalUrl=dt,l})();class cn extends ge{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 a=r;if("symbol"===r.type&&((a=new we(e,null)).attributes.viewBox=new et(e,"viewBox",r.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new et(e,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new et(e,"overflow",r.getAttribute("overflow").getString()),a.children=r.children,r.styles.opacity=new et(e,"opacity",this.calculateOpacity())),"svg"===a.type){var i=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);i.hasValue()&&(a.attributes.width=new et(e,"width",i.getString())),o.hasValue()&&(a.attributes.height=new et(e,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(t),a.parent=s}}getBoundingBox(t){var{element:e}=this;return e?e.getBoundingBox(t):null}elementTransform(){var{document:t,element:e}=this;return Ye.fromElement(t,e)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function Ke(l,t,e,r,a,i){return l[e*r*4+4*t+i]}function Ze(l,t,e,r,a,i,o){l[e*r*4+4*t+i]=o}function Lt(l,t,e){return l[t]*e}function oe(l,t,e,r){return t+Math.cos(l)*e+Math.sin(l)*r}class Tr extends wt{constructor(t,e,r){super(t,e,r),this.type="feColorMatrix";var a=G(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var i=a[0];a=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var o=a[0]*Math.PI/180;a=[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":a=[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]}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,e,r,a,i){for(var{includeOpacity:o,matrix:s}=this,u=t.getImageData(0,0,a,i),v=0;v<i;v++)for(var p=0;p<a;p++){var E=Ke(u.data,p,v,a,0,0),O=Ke(u.data,p,v,a,0,1),m=Ke(u.data,p,v,a,0,2),N=Ke(u.data,p,v,a,0,3),D=Lt(s,0,E)+Lt(s,1,O)+Lt(s,2,m)+Lt(s,3,N)+Lt(s,4,1),B=Lt(s,5,E)+Lt(s,6,O)+Lt(s,7,m)+Lt(s,8,N)+Lt(s,9,1),U=Lt(s,10,E)+Lt(s,11,O)+Lt(s,12,m)+Lt(s,13,N)+Lt(s,14,1),K=Lt(s,15,E)+Lt(s,16,O)+Lt(s,17,m)+Lt(s,18,N)+Lt(s,19,1);o&&(D=0,B=0,U=0,K*=N/255),Ze(u.data,p,v,a,0,0,D),Ze(u.data,p,v,a,0,1,B),Ze(u.data,p,v,a,0,2,U),Ze(u.data,p,v,a,0,3,K)}t.clearRect(0,0,a,i),t.putImageData(u,0,0)}}let gn=(()=>{class l extends wt{constructor(){super(...arguments),this.type="mask"}apply(e,r){var{document:a}=this,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!s&&!u){var v=new Jt;this.children.forEach(D=>{v.addBoundingBox(D.getBoundingBox(e))}),i=Math.floor(v.x1),o=Math.floor(v.y1),s=Math.floor(v.width),u=Math.floor(v.height)}var p=this.removeStyles(r,l.ignoreStyles),E=a.createCanvas(i+s,o+u),O=E.getContext("2d");a.screen.setDefaults(O),this.renderChildren(O),new Tr(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(O,0,0,i+s,o+u);var m=a.createCanvas(i+s,o+u),N=m.getContext("2d");a.screen.setDefaults(N),r.render(N),N.globalCompositeOperation="destination-in",N.fillStyle=O.createPattern(E,"no-repeat"),N.fillRect(0,0,i+s,o+u),e.fillStyle=N.createPattern(m,"no-repeat"),e.fillRect(0,0,i+s,o+u),this.restoreStyles(r,p)}render(e){}}return l.ignoreStyles=["mask","transform","clip-path"],l})();var dn=()=>{};class pn extends wt{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:e}=this,r=Reflect.getPrototypeOf(t),{beginPath:a,closePath:i}=t;r&&(r.beginPath=dn,r.closePath=dn),Reflect.apply(a,t,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Ye.fromElement(e,o)),s&&s.apply(t),o.path(t),r&&(r.closePath=i),s&&s.unapply(t)}}),Reflect.apply(i,t,[]),t.clip(),r&&(r.beginPath=a,r.closePath=i)}render(t){}}let yn=(()=>{class l extends wt{constructor(){super(...arguments),this.type="filter"}apply(e,r){var{document:a,children:i}=this,o=r.getBoundingBox(e);if(o){var s=0,u=0;i.forEach(K=>{var z=K.extraFilterDistance||0;s=Math.max(s,z),u=Math.max(u,z)});var v=Math.floor(o.width),p=Math.floor(o.height),E=v+2*s,O=p+2*u;if(!(E<1||O<1)){var m=Math.floor(o.x),N=Math.floor(o.y),D=this.removeStyles(r,l.ignoreStyles),B=a.createCanvas(E,O),U=B.getContext("2d");a.screen.setDefaults(U),U.translate(-m+s,-N+u),r.render(U),i.forEach(K=>{"function"==typeof K.apply&&K.apply(U,0,0,E,O)}),e.drawImage(B,0,0,E,O,m-s,N-u,E,O),this.restoreStyles(r,D)}}}render(e){}}return l.ignoreStyles=["filter","transform","clip-path"],l})();class mn extends wt{constructor(t,e,r){super(t,e,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,e,r,a,i){}}class xn extends wt{constructor(){super(...arguments),this.type="feMorphology"}apply(t,e,r,a,i){}}class En extends wt{constructor(){super(...arguments),this.type="feComposite"}apply(t,e,r,a,i){}}class Tn extends wt{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,a,i){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,v=t.canvas;v.id=o.getUniqueId(),u&&(v.style.display="none",u.appendChild(v)),ae(v,e,r,a,i,s),u&&u.removeChild(v)}}class On extends wt{constructor(){super(...arguments),this.type="title"}}class Sn extends wt{constructor(){super(...arguments),this.type="desc"}}var jn={svg:we,rect:mr,circle:Hr,ellipse:Yr,line:Xr,polyline:xr,polygon:Wr,path:Tt,pattern:Qr,marker:Kr,defs:Zr,linearGradient:kr,radialGradient:Jr,stop:qr,animate:We,animateColor:_r,animateTransform:tn,font:en,"font-face":rn,"missing-glyph":nn,glyph:yr,text:se,tspan:Fe,tref:an,a:sn,textPath:un,image:ln,g:Xe,symbol:hn,style:vn,use:cn,mask:gn,clipPath:pn,filter:yn,feDropShadow:mn,feMorphology:xn,feComposite:En,feColorMatrix:Tr,feGaussianBlur:Tn,title:On,desc:Sn};function bn(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function Gn(l,t){var e=document.createElement("canvas");return e.width=l,e.height=t,e}function $n(l){return Or.apply(this,arguments)}function Or(){return Or=(0,f.Z)(function*(l){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=document.createElement("img");return t&&(e.crossOrigin="Anonymous"),new Promise((r,a)=>{e.onload=()=>{r(e)},e.onerror=(i,o,s,u,v)=>{a(v)},e.src=l})}),Or.apply(this,arguments)}let Cn=(()=>{class l{constructor(e){var{rootEmSize:r=12,emSize:a=12,createCanvas:i=l.createCanvas,createImage:o=l.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=e,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=e.screen,this.rootEmSize=r,this.emSize=a,this.createCanvas=i,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,r){return"boolean"==typeof r?(a,i)=>e(a,"boolean"==typeof i?i:r):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:r}=this;r.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var r=this.createElement(e.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(e){var r=e.nodeName.replace(/^[^:]+:/,""),a=l.elementTypes[r];return typeof a<"u"?new a(this,e):new $r(this,e)}createTextNode(e){return new Fn(this,e)}setViewBox(e){this.screen.setViewBox(function zn(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(e),!0).forEach(function(r){P(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):bn(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}({document:this},e))}}return l.createCanvas=Gn,l.createImage=$n,l.elementTypes=jn,l})();function An(l,t){var e=Object.keys(l);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(l);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(l,a).enumerable})),e.push.apply(e,r)}return e}function be(l){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?An(Object(e),!0).forEach(function(r){P(l,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(e)):An(Object(e)).forEach(function(r){Object.defineProperty(l,r,Object.getOwnPropertyDescriptor(e,r))})}return l}class Ce{constructor(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new He(r),this.screen=new gr(t,r),this.options=r;var a=new Cn(this,r),i=a.createDocumentElement(e);this.document=a,this.documentElement=i}static from(t,e){var r=arguments;return(0,f.Z)(function*(){var a=r.length>2&&void 0!==r[2]?r[2]:{},i=new He(a),o=yield i.parse(e);return new Ce(t,o,a)})()}static fromString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new He(r).parseFromString(e);return new Ce(t,i,r)}fork(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ce.from(t,e,be(be({},this.options),r))}forkString(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ce.fromString(t,e,be(be({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,e=this;return(0,f.Z)(function*(){e.start(be({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield e.ready(),e.stop()})()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:e,screen:r,options:a}=this;r.start(e,be(be({enableRedraw:!0},a),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}}}]);
package/896.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunkoperator_profile_bonus_amount_graph=self.webpackChunkoperator_profile_bonus_amount_graph||[]).push([[896],{896:function(vt){vt.exports=function(){"use strict";function M(r){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(r)}function B(r,n){return(B=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s})(r,n)}function K(r,n,o){return(K=function Tt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}()?Reflect.construct:function(c,b,g){var N=[null];N.push.apply(N,b);var Y=new(Function.bind.apply(c,N));return g&&B(Y,g.prototype),Y}).apply(null,arguments)}function S(r){return function ht(r){if(Array.isArray(r))return fe(r)}(r)||function _t(r){if(typeof Symbol<"u"&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function At(r,n){if(r){if("string"==typeof r)return fe(r,n);var o=Object.prototype.toString.call(r).slice(8,-1);if("Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o)return Array.from(r);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return fe(r,n)}}(r)||function Et(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fe(r,n){(null==n||n>r.length)&&(n=r.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=r[o];return s}var gt=Object.hasOwnProperty,Ue=Object.setPrototypeOf,yt=Object.isFrozen,bt=Object.getPrototypeOf,St=Object.getOwnPropertyDescriptor,_=Object.freeze,R=Object.seal,Rt=Object.create,He=typeof Reflect<"u"&&Reflect,Z=He.apply,ce=He.construct;Z||(Z=function(n,o,s){return n.apply(o,s)}),_||(_=function(n){return n}),R||(R=function(n){return n}),ce||(ce=function(n,o){return K(n,S(o))});var Ot=y(Array.prototype.forEach),ze=y(Array.prototype.pop),$=y(Array.prototype.push),J=y(String.prototype.toLowerCase),pe=y(String.prototype.toString),Lt=y(String.prototype.match),O=y(String.prototype.replace),Nt=y(String.prototype.indexOf),Dt=y(String.prototype.trim),A=y(RegExp.prototype.test),me=function Mt(r){return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return ce(r,o)}}(TypeError);function y(r){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return Z(r,n,s)}}function l(r,n,o){var s;o=null!==(s=o)&&void 0!==s?s:J,Ue&&Ue(r,null);for(var c=n.length;c--;){var b=n[c];if("string"==typeof b){var g=o(b);g!==b&&(yt(n)||(n[c]=g),b=g)}r[b]=!0}return r}function x(r){var o,n=Rt(null);for(o in r)!0===Z(gt,r,[o])&&(n[o]=r[o]);return n}function Q(r,n){for(;null!==r;){var o=St(r,n);if(o){if(o.get)return y(o.get);if("function"==typeof o.value)return y(o.value)}r=bt(r)}return function s(c){return console.warn("fallback value for",c),null}}var Ge=_(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),de=_(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ve=_(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),wt=_(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Te=_(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ct=_(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),We=_(["#text"]),Be=_(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),he=_(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$e=_(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ee=_(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),It=R(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xt=R(/<%[\w\W]*|[\w\W]*%>/gm),kt=R(/\${[\w\W]*}/gm),Pt=R(/^data-[\-\w.\u00B7-\uFFFF]/),Ft=R(/^aria-[\-\w]+$/),Ut=R(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ht=R(/^(?:\w+script|data):/i),zt=R(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=R(/^html$/i);return function je(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:typeof window>"u"?null:window,n=function(e){return je(e)};if(n.version="2.4.7",n.removed=[],!r||!r.document||9!==r.document.nodeType)return n.isSupported=!1,n;var o=r.document,s=r.document,c=r.DocumentFragment,b=r.HTMLTemplateElement,g=r.Node,N=r.Element,j=r.NodeFilter,Y=r.NamedNodeMap,jt=void 0===Y?r.NamedNodeMap||r.MozNamedAttrMap:Y,Yt=r.HTMLFormElement,Vt=r.DOMParser,te=r.trustedTypes,re=N.prototype,Xt=Q(re,"cloneNode"),qt=Q(re,"nextSibling"),Kt=Q(re,"childNodes"),_e=Q(re,"parentNode");if("function"==typeof b){var Ae=s.createElement("template");Ae.content&&Ae.content.ownerDocument&&(s=Ae.content.ownerDocument)}var L=function(n,o){if("object"!==M(n)||"function"!=typeof n.createPolicy)return null;var s=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(s=o.currentScript.getAttribute(c));var b="dompurify"+(s?"#"+s:"");try{return n.createPolicy(b,{createHTML:function(N){return N},createScriptURL:function(N){return N}})}catch{return console.warn("TrustedTypes policy "+b+" could not be created."),null}}(te,o),Ee=L?L.createHTML(""):"",ge=s.implementation,Zt=s.createNodeIterator,Jt=s.createDocumentFragment,Qt=s.getElementsByTagName,er=o.importNode,Ye={};try{Ye=x(s).documentMode?s.documentMode:{}}catch{}var D={};n.isSupported="function"==typeof _e&&ge&&void 0!==ge.createHTMLDocument&&9!==Ye;var P,d,ye=It,be=xt,Se=kt,tr=Pt,rr=Ft,ar=Ht,Ve=zt,Re=Ut,p=null,Xe=l({},[].concat(S(Ge),S(de),S(ve),S(Te),S(We))),m=null,qe=l({},[].concat(S(Be),S(he),S($e),S(ee))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),V=null,Oe=null,Ke=!0,Le=!0,Ze=!1,Je=!0,F=!1,k=!1,Ne=!1,De=!1,U=!1,ne=!1,ie=!1,Qe=!0,et=!1,Me=!0,X=!1,H={},z=null,tt=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),rt=null,at=l({},["audio","video","img","source","image","track"]),we=null,nt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",le="http://www.w3.org/2000/svg",w="http://www.w3.org/1999/xhtml",G=w,Ce=!1,Ie=null,ir=l({},[oe,le,w],pe),or=["application/xhtml+xml","text/html"],W=null,sr=s.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},xe=function(e){W&&W===e||((!e||"object"!==M(e))&&(e={}),e=x(e),P=P=-1===or.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,d="application/xhtml+xml"===P?pe:J,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,d):Xe,m="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,d):qe,Ie="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,pe):ir,we="ADD_URI_SAFE_ATTR"in e?l(x(nt),e.ADD_URI_SAFE_ATTR,d):nt,rt="ADD_DATA_URI_TAGS"in e?l(x(at),e.ADD_DATA_URI_TAGS,d):at,z="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,d):tt,V="FORBID_TAGS"in e?l({},e.FORBID_TAGS,d):{},Oe="FORBID_ATTR"in e?l({},e.FORBID_ATTR,d):{},H="USE_PROFILES"in e&&e.USE_PROFILES,Ke=!1!==e.ALLOW_ARIA_ATTR,Le=!1!==e.ALLOW_DATA_ATTR,Ze=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Je=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,F=e.SAFE_FOR_TEMPLATES||!1,k=e.WHOLE_DOCUMENT||!1,U=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,De=e.FORCE_BODY||!1,Qe=!1!==e.SANITIZE_DOM,et=e.SANITIZE_NAMED_PROPS||!1,Me=!1!==e.KEEP_CONTENT,X=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||Re,G=e.NAMESPACE||w,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&it(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(Le=!1),ne&&(U=!0),H&&(p=l({},S(We)),m=[],!0===H.html&&(l(p,Ge),l(m,Be)),!0===H.svg&&(l(p,de),l(m,he),l(m,ee)),!0===H.svgFilters&&(l(p,ve),l(m,he),l(m,ee)),!0===H.mathMl&&(l(p,Te),l(m,$e),l(m,ee))),e.ADD_TAGS&&(p===Xe&&(p=x(p)),l(p,e.ADD_TAGS,d)),e.ADD_ATTR&&(m===qe&&(m=x(m)),l(m,e.ADD_ATTR,d)),e.ADD_URI_SAFE_ATTR&&l(we,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(z===tt&&(z=x(z)),l(z,e.FORBID_CONTENTS,d)),Me&&(p["#text"]=!0),k&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete V.tbody),_&&_(e),W=e)},ot=l({},["mi","mo","mn","ms","mtext"]),lt=l({},["foreignobject","desc","title","annotation-xml"]),ur=l({},["title","style","font","a","script"]),se=l({},de);l(se,ve),l(se,wt);var ke=l({},Te);l(ke,Ct);var C=function(e){$(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch{try{e.outerHTML=Ee}catch{e.remove()}}},Pe=function(e,t){try{$(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!m[e])if(U||ne)try{C(t)}catch{}else try{t.setAttribute(e,"")}catch{}},st=function(e){var t,a;if(De)e="<remove></remove>"+e;else{var u=Lt(e,/^[\r\n\t ]+/);a=u&&u[0]}"application/xhtml+xml"===P&&G===w&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var E=L?L.createHTML(e):e;if(G===w)try{t=(new Vt).parseFromString(E,P)}catch{}if(!t||!t.documentElement){t=ge.createDocument(G,"template",null);try{t.documentElement.innerHTML=Ce?Ee:E}catch{}}var h=t.body||t.documentElement;return e&&a&&h.insertBefore(s.createTextNode(a),h.childNodes[0]||null),G===w?Qt.call(t,k?"html":"body")[0]:k?t.documentElement:h},ut=function(e){return Zt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},q=function(e){return"object"===M(g)?e instanceof g:e&&"object"===M(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},I=function(e,t,a){D[e]&&Ot(D[e],function(u){u.call(n,t,a,W)})},ft=function(e){var t;if(I("beforeSanitizeElements",e,null),function(e){return e instanceof Yt&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof jt)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)}(e)||A(/[\u0080-\uFFFF]/,e.nodeName))return C(e),!0;var a=d(e.nodeName);if(I("uponSanitizeElement",e,{tagName:a,allowedTags:p}),e.hasChildNodes()&&!q(e.firstElementChild)&&(!q(e.content)||!q(e.content.firstElementChild))&&A(/<[/\w]/g,e.innerHTML)&&A(/<[/\w]/g,e.textContent)||"select"===a&&A(/<template/i,e.innerHTML))return C(e),!0;if(!p[a]||V[a]){if(!V[a]&&pt(a)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,a)||f.tagNameCheck instanceof Function&&f.tagNameCheck(a)))return!1;if(Me&&!z[a]){var u=_e(e)||e.parentNode,E=Kt(e)||e.childNodes;if(E&&u)for(var T=E.length-1;T>=0;--T)u.insertBefore(Xt(E[T],!0),qt(e))}return C(e),!0}return e instanceof N&&!function(e){var t=_e(e);(!t||!t.tagName)&&(t={namespaceURI:G,tagName:"template"});var a=J(e.tagName),u=J(t.tagName);return!!Ie[e.namespaceURI]&&(e.namespaceURI===le?t.namespaceURI===w?"svg"===a:t.namespaceURI===oe?"svg"===a&&("annotation-xml"===u||ot[u]):!!se[a]:e.namespaceURI===oe?t.namespaceURI===w?"math"===a:t.namespaceURI===le?"math"===a&&lt[u]:!!ke[a]:e.namespaceURI===w?!(t.namespaceURI===le&&!lt[u]||t.namespaceURI===oe&&!ot[u])&&!ke[a]&&(ur[a]||!se[a]):!("application/xhtml+xml"!==P||!Ie[e.namespaceURI]))}(e)||("noscript"===a||"noembed"===a||"noframes"===a)&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(C(e),!0):(F&&3===e.nodeType&&(t=O(t=e.textContent,ye," "),t=O(t,be," "),t=O(t,Se," "),e.textContent!==t&&($(n.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},ct=function(e,t,a){if(Qe&&("id"===t||"name"===t)&&(a in s||a in sr))return!1;if((!Le||Oe[t]||!A(tr,t))&&(!Ke||!A(rr,t)))if(!m[t]||Oe[t]){if(!(pt(e)&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&A(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||"is"===t&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&A(f.tagNameCheck,a)||f.tagNameCheck instanceof Function&&f.tagNameCheck(a))))return!1}else if(!we[t]&&!A(Re,O(a,Ve,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Nt(a,"data:")||!rt[e])&&(!Ze||A(ar,O(a,Ve,"")))&&a)return!1;return!0},pt=function(e){return e.indexOf("-")>0},mt=function(e){var t,a,u,E;I("beforeSanitizeAttributes",e,null);var h=e.attributes;if(h){var T={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:m};for(E=h.length;E--;){var v=(t=h[E]).name,Fe=t.namespaceURI;if(a="value"===v?t.value:Dt(t.value),u=d(v),T.attrName=u,T.attrValue=a,T.keepAttr=!0,T.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,T),a=T.attrValue,!T.forceKeepAttr&&(Pe(v,e),T.keepAttr)){if(!Je&&A(/\/>/i,a)){Pe(v,e);continue}F&&(a=O(a,ye," "),a=O(a,be," "),a=O(a,Se," "));var dt=d(e.nodeName);if(ct(dt,u,a)){if(et&&("id"===u||"name"===u)&&(Pe(v,e),a="user-content-"+a),L&&"object"===M(te)&&"function"==typeof te.getAttributeType&&!Fe)switch(te.getAttributeType(dt,u)){case"TrustedHTML":a=L.createHTML(a);break;case"TrustedScriptURL":a=L.createScriptURL(a)}try{Fe?e.setAttributeNS(Fe,v,a):e.setAttribute(v,a),ze(n.removed)}catch{}}}}I("afterSanitizeAttributes",e,null)}},pr=function i(e){var t,a=ut(e);for(I("beforeSanitizeShadowDOM",e,null);t=a.nextNode();)I("uponSanitizeShadowNode",t,null),!ft(t)&&(t.content instanceof c&&i(t.content),mt(t));I("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var t,a,u,E,h,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((Ce=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!q(i)){if("function"!=typeof i.toString)throw me("toString is not a function");if("string"!=typeof(i=i.toString()))throw me("dirty is not a string, aborting")}if(!n.isSupported){if("object"===M(r.toStaticHTML)||"function"==typeof r.toStaticHTML){if("string"==typeof i)return r.toStaticHTML(i);if(q(i))return r.toStaticHTML(i.outerHTML)}return i}if(Ne||xe(e),n.removed=[],"string"==typeof i&&(X=!1),X){if(i.nodeName){var T=d(i.nodeName);if(!p[T]||V[T])throw me("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof g)1===(a=(t=st("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?t=a:t.appendChild(a);else{if(!U&&!F&&!k&&-1===i.indexOf("<"))return L&&ie?L.createHTML(i):i;if(!(t=st(i)))return U?null:ie?Ee:""}t&&De&&C(t.firstChild);for(var ue=ut(X?i:t);u=ue.nextNode();)3===u.nodeType&&u===E||ft(u)||(u.content instanceof c&&pr(u.content),mt(u),E=u);if(E=null,X)return i;if(U){if(ne)for(h=Jt.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(m.shadowroot||m.shadowrootmod)&&(h=er.call(o,h,!0)),h}var v=k?t.outerHTML:t.innerHTML;return k&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(Gt,t.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+v),F&&(v=O(v,ye," "),v=O(v,be," "),v=O(v,Se," ")),L&&ie?L.createHTML(v):v},n.setConfig=function(i){xe(i),Ne=!0},n.clearConfig=function(){W=null,Ne=!1},n.isValidAttribute=function(i,e,t){W||xe({});var a=d(i),u=d(e);return ct(a,u,t)},n.addHook=function(i,e){"function"==typeof e&&(D[i]=D[i]||[],$(D[i],e))},n.removeHook=function(i){if(D[i])return ze(D[i])},n.removeHooks=function(i){D[i]&&(D[i]=[])},n.removeAllHooks=function(){D={}},n}()}()}}]);
Binary file
Binary file
Binary file