Files
svgedit/dist/editor/system/extensions/ext-server_moinsave/ext-server_moinsave.js
2021-03-08 23:05:05 +01:00

2 lines
283 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
System.register(["process"],(function(h){"use strict";var g;return{setters:[function(h){g=h.default}],execute:function(){function _typeof$2(h){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}function asyncGeneratorStep$1(h,g,d,b,x,S,_){try{var w=h[S](_),C=w.value}catch(h){return void d(h)}w.done?g(C):Promise.resolve(C).then(b,x)}function _asyncToGenerator$1(h){return function(){var g=this,d=arguments;return new Promise((function(b,x){var S=h.apply(g,d);function _next(h){asyncGeneratorStep$1(S,b,x,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep$1(S,b,x,_next,_throw,"throw",h)}_next(void 0)}))}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h){var g={exports:{}};return h(g,g.exports),g.exports}var check$1=function(h){return h&&h.Math==Math&&h},b=check$1("object"==typeof globalThis&&globalThis)||check$1("object"==typeof window&&window)||check$1("object"==typeof self&&self)||check$1("object"==typeof d&&d)||function(){return this}()||Function("return this")(),fails$1=function(h){try{return!!h()}catch(h){return!0}},x=!fails$1((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),S={}.propertyIsEnumerable,_=Object.getOwnPropertyDescriptor,w={f:_&&!S.call({1:2},1)?function propertyIsEnumerable(h){var g=_(this,h);return!!g&&g.enumerable}:S},createPropertyDescriptor$1=function(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},C={}.toString,classofRaw$1=function(h){return C.call(h).slice(8,-1)},E="".split,P=fails$1((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw$1(h)?E.call(h,""):Object(h)}:Object,requireObjectCoercible$1=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h},toIndexedObject$1=function(h){return P(requireObjectCoercible$1(h))},isObject$1=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive$1=function(h,g){if(!isObject$1(h))return h;var d,b;if(g&&"function"==typeof(d=h.toString)&&!isObject$1(b=d.call(h)))return b;if("function"==typeof(d=h.valueOf)&&!isObject$1(b=d.call(h)))return b;if(!g&&"function"==typeof(d=h.toString)&&!isObject$1(b=d.call(h)))return b;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,has$3=function(h,g){return k.call(h,g)},A=b.document,R=isObject$1(A)&&isObject$1(A.createElement),documentCreateElement$1=function(h){return R?A.createElement(h):{}},M=!x&&!fails$1((function(){return 7!=Object.defineProperty(documentCreateElement$1("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,L={f:x?N:function getOwnPropertyDescriptor(h,g){if(h=toIndexedObject$1(h),g=toPrimitive$1(g,!0),M)try{return N(h,g)}catch(h){}if(has$3(h,g))return createPropertyDescriptor$1(!w.f.call(h,g),h[g])}},anObject$1=function(h){if(!isObject$1(h))throw TypeError(String(h)+" is not an object");return h},D=Object.defineProperty,$={f:x?D:function defineProperty(h,g,d){if(anObject$1(h),g=toPrimitive$1(g,!0),anObject$1(d),M)try{return D(h,g,d)}catch(h){}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(h[g]=d.value),h}},V=x?function(h,g,d){return $.f(h,g,createPropertyDescriptor$1(1,d))}:function(h,g,d){return h[g]=d,h},setGlobal$1=function(h,g){try{V(b,h,g)}catch(d){b[h]=g}return g},j="__core-js_shared__",B=b[j]||setGlobal$1(j,{}),U=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(h){return U.call(h)});var z,G,q,X=B.inspectSource,Y=b.WeakMap,W="function"==typeof Y&&/native code/.test(X(Y)),Q=createCommonjsModule((function(h){(h.exports=function(h,g){return B[h]||(B[h]=void 0!==g?g:{})})("versions",[]).push({version:"3.9.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z=0,K=Math.random(),uid$1=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Z+K).toString(36)},J=Q("keys"),sharedKey$1=function(h){return J[h]||(J[h]=uid$1(h))},tt={},et=b.WeakMap;if(W){var rt=B.state||(B.state=new et),nt=rt.get,it=rt.has,at=rt.set;z=function(h,g){return g.facade=h,at.call(rt,h,g),g},G=function(h){return nt.call(rt,h)||{}},q=function(h){return it.call(rt,h)}}else{var ot=sharedKey$1("state");tt[ot]=!0,z=function(h,g){return g.facade=h,V(h,ot,g),g},G=function(h){return has$3(h,ot)?h[ot]:{}},q=function(h){return has$3(h,ot)}}var st,ut,ct={set:z,get:G,has:q,enforce:function(h){return q(h)?G(h):z(h,{})},getterFor:function(h){return function(g){var d;if(!isObject$1(g)||(d=G(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},lt=createCommonjsModule((function(h){var g=ct.get,d=ct.enforce,x=String(String).split("String");(h.exports=function(h,g,S,_){var w,C=!!_&&!!_.unsafe,E=!!_&&!!_.enumerable,P=!!_&&!!_.noTargetGet;"function"==typeof S&&("string"!=typeof g||has$3(S,"name")||V(S,"name",g),(w=d(S)).source||(w.source=x.join("string"==typeof g?g:""))),h!==b?(C?!P&&h[g]&&(E=!0):delete h[g],E?h[g]=S:V(h,g,S)):E?h[g]=S:setGlobal$1(g,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&g(this).source||X(this)}))})),ft=b,aFunction$3=function(h){return"function"==typeof h?h:void 0},getBuiltIn$1=function(h,g){return arguments.length<2?aFunction$3(ft[h])||aFunction$3(b[h]):ft[h]&&ft[h][g]||b[h]&&b[h][g]},ht=Math.ceil,pt=Math.floor,toInteger$1=function(h){return isNaN(h=+h)?0:(h>0?pt:ht)(h)},yt=Math.min,toLength$1=function(h){return h>0?yt(toInteger$1(h),9007199254740991):0},vt=Math.max,gt=Math.min,toAbsoluteIndex$1=function(h,g){var d=toInteger$1(h);return d<0?vt(d+g,0):gt(d,g)},createMethod$9=function(h){return function(g,d,b){var x,S=toIndexedObject$1(g),_=toLength$1(S.length),w=toAbsoluteIndex$1(b,_);if(h&&d!=d){for(;_>w;)if((x=S[w++])!=x)return!0}else for(;_>w;w++)if((h||w in S)&&S[w]===d)return h||w||0;return!h&&-1}},dt={includes:createMethod$9(!0),indexOf:createMethod$9(!1)},mt=dt.indexOf,objectKeysInternal$1=function(h,g){var d,b=toIndexedObject$1(h),x=0,S=[];for(d in b)!has$3(tt,d)&&has$3(b,d)&&S.push(d);for(;g.length>x;)has$3(b,d=g[x++])&&(~mt(S,d)||S.push(d));return S},bt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=bt.concat("length","prototype"),St={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal$1(h,xt)}},_t={f:Object.getOwnPropertySymbols},wt=getBuiltIn$1("Reflect","ownKeys")||function ownKeys(h){var g=St.f(anObject$1(h)),d=_t.f;return d?g.concat(d(h)):g},copyConstructorProperties=function(h,g){for(var d=wt(g),b=$.f,x=L.f,S=0;S<d.length;S++){var _=d[S];has$3(h,_)||b(h,_,x(g,_))}},Ct=/#|\.prototype\./,isForced$1=function(h,g){var d=Pt[Et(h)];return d==Ot||d!=kt&&("function"==typeof g?fails$1(g):!!g)},Et=isForced$1.normalize=function(h){return String(h).replace(Ct,".").toLowerCase()},Pt=isForced$1.data={},kt=isForced$1.NATIVE="N",Ot=isForced$1.POLYFILL="P",At=isForced$1,Tt=L.f,_export$1=function(h,g){var d,x,S,_,w,C=h.target,E=h.global,P=h.stat;if(d=E?b:P?b[C]||setGlobal$1(C,{}):(b[C]||{}).prototype)for(x in g){if(_=g[x],S=h.noTargetGet?(w=Tt(d,x))&&w.value:d[x],!At(E?x:C+(P?".":"#")+x,h.forced)&&void 0!==S){if(typeof _==typeof S)continue;copyConstructorProperties(_,S)}(h.sham||S&&S.sham)&&V(_,"sham",!0),lt(d,x,_,h)}},Rt="process"==classofRaw$1(b.process),Mt=getBuiltIn$1("navigator","userAgent")||"",Nt=b.process,It=Nt&&Nt.versions,Lt=It&&It.v8;Lt?ut=(st=Lt.split("."))[0]+st[1]:Mt&&(!(st=Mt.match(/Edge\/(\d+)/))||st[1]>=74)&&(st=Mt.match(/Chrome\/(\d+)/))&&(ut=st[1]);var Dt,$t=ut&&+ut,Vt=!!Object.getOwnPropertySymbols&&!fails$1((function(){return!Symbol.sham&&(Rt?38===$t:$t>37&&$t<41)})),jt=Vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ft=Array.isArray||function isArray(h){return"Array"==classofRaw$1(h)},toObject$1=function(h){return Object(requireObjectCoercible$1(h))},Bt=Object.keys||function keys(h){return objectKeysInternal$1(h,bt)},Ut=x?Object.defineProperties:function defineProperties(h,g){anObject$1(h);for(var d,b=Bt(g),x=b.length,S=0;x>S;)$.f(h,d=b[S++],g[d]);return h},zt=getBuiltIn$1("document","documentElement"),Gt=sharedKey$1("IE_PROTO"),EmptyConstructor$1=function(){},scriptTag$1=function(h){return"<script>"+h+"</"+"script>"},NullProtoObject=function(){try{Dt=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,g;NullProtoObject=Dt?function(h){h.write(scriptTag$1("")),h.close();var g=h.parentWindow.Object;return h=null,g}(Dt):((g=documentCreateElement$1("iframe")).style.display="none",zt.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(scriptTag$1("document.F=Object")),h.close(),h.F);for(var d=bt.length;d--;)delete NullProtoObject.prototype[bt[d]];return NullProtoObject()};tt[Gt]=!0;var Ht=Object.create||function create(h,g){var d;return null!==h?(EmptyConstructor$1.prototype=anObject$1(h),d=new EmptyConstructor$1,EmptyConstructor$1.prototype=null,d[Gt]=h):d=NullProtoObject(),void 0===g?d:Ut(d,g)},qt=St.f,Xt={}.toString,Yt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Wt={f:function getOwnPropertyNames(h){return Yt&&"[object Window]"==Xt.call(h)?function(h){try{return qt(h)}catch(h){return Yt.slice()}}(h):qt(toIndexedObject$1(h))}},Qt=Q("wks"),Zt=b.Symbol,Kt=jt?Zt:Zt&&Zt.withoutSetter||uid$1,wellKnownSymbol$1=function(h){return has$3(Qt,h)&&(Vt||"string"==typeof Qt[h])||(Vt&&has$3(Zt,h)?Qt[h]=Zt[h]:Qt[h]=Kt("Symbol."+h)),Qt[h]},Jt={f:wellKnownSymbol$1},te=$.f,defineWellKnownSymbol$1=function(h){var g=ft.Symbol||(ft.Symbol={});has$3(g,h)||te(g,h,{value:Jt.f(h)})},ee=$.f,re=wellKnownSymbol$1("toStringTag"),setToStringTag$1=function(h,g,d){h&&!has$3(h=d?h:h.prototype,re)&&ee(h,re,{configurable:!0,value:g})},aFunction$2=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},functionBindContext$1=function(h,g,d){if(aFunction$2(h),void 0===g)return h;switch(d){case 0:return function(){return h.call(g)};case 1:return function(d){return h.call(g,d)};case 2:return function(d,b){return h.call(g,d,b)};case 3:return function(d,b,x){return h.call(g,d,b,x)}}return function(){return h.apply(g,arguments)}},ne=wellKnownSymbol$1("species"),arraySpeciesCreate$1=function(h,g){var d;return Ft(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!Ft(d.prototype)?isObject$1(d)&&null===(d=d[ne])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},ie=[].push,createMethod$8=function(h){var g=1==h,d=2==h,b=3==h,x=4==h,S=6==h,_=7==h,w=5==h||S;return function(C,E,k,A){for(var R,M,N=toObject$1(C),L=P(N),D=functionBindContext$1(E,k,3),$=toLength$1(L.length),V=0,j=A||arraySpeciesCreate$1,B=g?j(C,$):d||_?j(C,0):void 0;$>V;V++)if((w||V in L)&&(M=D(R=L[V],V,N),h))if(g)B[V]=M;else if(M)switch(h){case 3:return!0;case 5:return R;case 6:return V;case 2:ie.call(B,R)}else switch(h){case 4:return!1;case 7:ie.call(B,R)}return S?-1:b||x?x:B}},ae={forEach:createMethod$8(0),map:createMethod$8(1),filter:createMethod$8(2),some:createMethod$8(3),every:createMethod$8(4),find:createMethod$8(5),findIndex:createMethod$8(6),filterOut:createMethod$8(7)},oe=ae.forEach,se=sharedKey$1("hidden"),ue="Symbol",ce=wellKnownSymbol$1("toPrimitive"),le=ct.set,fe=ct.getterFor(ue),he=Object.prototype,pe=b.Symbol,ye=getBuiltIn$1("JSON","stringify"),ve=L.f,ge=$.f,de=Wt.f,me=w.f,be=Q("symbols"),xe=Q("op-symbols"),Se=Q("string-to-symbol-registry"),_e=Q("symbol-to-string-registry"),we=Q("wks"),Ce=b.QObject,Ee=!Ce||!Ce.prototype||!Ce.prototype.findChild,Pe=x&&fails$1((function(){return 7!=Ht(ge({},"a",{get:function(){return ge(this,"a",{value:7}).a}})).a}))?function(h,g,d){var b=ve(he,g);b&&delete he[g],ge(h,g,d),b&&h!==he&&ge(he,g,b)}:ge,wrap$1=function(h,g){var d=be[h]=Ht(pe.prototype);return le(d,{type:ue,tag:h,description:g}),x||(d.description=g),d},ke=jt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof pe},Oe=function defineProperty(h,g,d){h===he&&Oe(xe,g,d),anObject$1(h);var b=toPrimitive$1(g,!0);return anObject$1(d),has$3(be,b)?(d.enumerable?(has$3(h,se)&&h[se][b]&&(h[se][b]=!1),d=Ht(d,{enumerable:createPropertyDescriptor$1(0,!1)})):(has$3(h,se)||ge(h,se,createPropertyDescriptor$1(1,{})),h[se][b]=!0),Pe(h,b,d)):ge(h,b,d)},Ae=function defineProperties(h,g){anObject$1(h);var d=toIndexedObject$1(g),b=Bt(d).concat(Ne(d));return oe(b,(function(g){x&&!Te.call(d,g)||Oe(h,g,d[g])})),h},Te=function propertyIsEnumerable(h){var g=toPrimitive$1(h,!0),d=me.call(this,g);return!(this===he&&has$3(be,g)&&!has$3(xe,g))&&(!(d||!has$3(this,g)||!has$3(be,g)||has$3(this,se)&&this[se][g])||d)},Re=function getOwnPropertyDescriptor(h,g){var d=toIndexedObject$1(h),b=toPrimitive$1(g,!0);if(d!==he||!has$3(be,b)||has$3(xe,b)){var x=ve(d,b);return!x||!has$3(be,b)||has$3(d,se)&&d[se][b]||(x.enumerable=!0),x}},Me=function getOwnPropertyNames(h){var g=de(toIndexedObject$1(h)),d=[];return oe(g,(function(h){has$3(be,h)||has$3(tt,h)||d.push(h)})),d},Ne=function getOwnPropertySymbols(h){var g=h===he,d=de(g?xe:toIndexedObject$1(h)),b=[];return oe(d,(function(h){!has$3(be,h)||g&&!has$3(he,h)||b.push(be[h])})),b};if(Vt||(lt((pe=function Symbol(){if(this instanceof pe)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=uid$1(h),setter=function(h){this===he&&setter.call(xe,h),has$3(this,se)&&has$3(this[se],g)&&(this[se][g]=!1),Pe(this,g,createPropertyDescriptor$1(1,h))};return x&&Ee&&Pe(he,g,{configurable:!0,set:setter}),wrap$1(g,h)}).prototype,"toString",(function toString(){return fe(this).tag})),lt(pe,"withoutSetter",(function(h){return wrap$1(uid$1(h),h)})),w.f=Te,$.f=Oe,L.f=Re,St.f=Wt.f=Me,_t.f=Ne,Jt.f=function(h){return wrap$1(wellKnownSymbol$1(h),h)},x&&(ge(pe.prototype,"description",{configurable:!0,get:function description(){return fe(this).description}}),lt(he,"propertyIsEnumerable",Te,{unsafe:!0}))),_export$1({global:!0,wrap:!0,forced:!Vt,sham:!Vt},{Symbol:pe}),oe(Bt(we),(function(h){defineWellKnownSymbol$1(h)})),_export$1({target:ue,stat:!0,forced:!Vt},{for:function(h){var g=String(h);if(has$3(Se,g))return Se[g];var d=pe(g);return Se[g]=d,_e[d]=g,d},keyFor:function keyFor(h){if(!ke(h))throw TypeError(h+" is not a symbol");if(has$3(_e,h))return _e[h]},useSetter:function(){Ee=!0},useSimple:function(){Ee=!1}}),_export$1({target:"Object",stat:!0,forced:!Vt,sham:!x},{create:function create(h,g){return void 0===g?Ht(h):Ae(Ht(h),g)},defineProperty:Oe,defineProperties:Ae,getOwnPropertyDescriptor:Re}),_export$1({target:"Object",stat:!0,forced:!Vt},{getOwnPropertyNames:Me,getOwnPropertySymbols:Ne}),_export$1({target:"Object",stat:!0,forced:fails$1((function(){_t.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return _t.f(toObject$1(h))}}),ye){var Ie=!Vt||fails$1((function(){var h=pe();return"[null]"!=ye([h])||"{}"!=ye({a:h})||"{}"!=ye(Object(h))}));_export$1({target:"JSON",stat:!0,forced:Ie},{stringify:function stringify(h,g,d){for(var b,x=[h],S=1;arguments.length>S;)x.push(arguments[S++]);if(b=g,(isObject$1(g)||void 0!==h)&&!ke(h))return Ft(g)||(g=function(h,g){if("function"==typeof b&&(g=b.call(this,h,g)),!ke(g))return g}),x[1]=g,ye.apply(null,x)}})}pe.prototype[ce]||V(pe.prototype,ce,pe.prototype.valueOf),setToStringTag$1(pe,ue),tt[se]=!0;var Le=$.f,De=b.Symbol;if(x&&"function"==typeof De&&(!("description"in De.prototype)||void 0!==De().description)){var $e={},Ve=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),g=this instanceof Ve?new De(h):void 0===h?De():De(h);return""===h&&($e[g]=!0),g};copyConstructorProperties(Ve,De);var je=Ve.prototype=De.prototype;je.constructor=Ve;var Fe=je.toString,Be="Symbol(test)"==String(De("test")),Ue=/^Symbol\((.*)\)[^)]+$/;Le(je,"description",{configurable:!0,get:function description(){var h=isObject$1(this)?this.valueOf():this,g=Fe.call(h);if(has$3($e,h))return"";var d=Be?g.slice(7,-1):g.replace(Ue,"$1");return""===d?void 0:d}}),_export$1({global:!0,forced:!0},{Symbol:Ve})}var ze={};ze[wellKnownSymbol$1("toStringTag")]="z";var Ge="[object z]"===String(ze),He=wellKnownSymbol$1("toStringTag"),qe="Arguments"==classofRaw$1(function(){return arguments}()),Xe=Ge?classofRaw$1:function(h){var g,d,b;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(d=function(h,g){try{return h[g]}catch(h){}}(g=Object(h),He))?d:qe?classofRaw$1(g):"Object"==(b=classofRaw$1(g))&&"function"==typeof g.callee?"Arguments":b},Ye=Ge?{}.toString:function toString(){return"[object "+Xe(this)+"]"};Ge||lt(Object.prototype,"toString",Ye,{unsafe:!0}),defineWellKnownSymbol$1("iterator");var We,Qe,Ze,createMethod$7=function(h){return function(g,d){var b,x,S=String(requireObjectCoercible$1(g)),_=toInteger$1(d),w=S.length;return _<0||_>=w?h?"":void 0:(b=S.charCodeAt(_))<55296||b>56319||_+1===w||(x=S.charCodeAt(_+1))<56320||x>57343?h?S.charAt(_):b:h?S.slice(_,_+2):x-56320+(b-55296<<10)+65536}},Ke={codeAt:createMethod$7(!1),charAt:createMethod$7(!0)},Je=!fails$1((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),tr=sharedKey$1("IE_PROTO"),er=Object.prototype,rr=Je?Object.getPrototypeOf:function(h){return h=toObject$1(h),has$3(h,tr)?h[tr]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?er:null},nr=wellKnownSymbol$1("iterator"),ir=!1;[].keys&&("next"in(Ze=[].keys())?(Qe=rr(rr(Ze)))!==Object.prototype&&(We=Qe):ir=!0),(null==We||fails$1((function(){var h={};return We[nr].call(h)!==h})))&&(We={}),has$3(We,nr)||V(We,nr,(function(){return this}));var ar={IteratorPrototype:We,BUGGY_SAFARI_ITERATORS:ir},or={},sr=ar.IteratorPrototype,returnThis$4=function(){return this},createIteratorConstructor$1=function(h,g,d){var b=g+" Iterator";return h.prototype=Ht(sr,{next:createPropertyDescriptor$1(1,d)}),setToStringTag$1(h,b,!1),or[b]=returnThis$4,h},ur=Object.setPrototypeOf||("__proto__"in{}?function(){var h,g=!1,d={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(d,[]),g=d instanceof Array}catch(h){}return function setPrototypeOf(d,b){return anObject$1(d),function(h){if(!isObject$1(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(b),g?h.call(d,b):d.__proto__=b,d}}():void 0),cr=ar.IteratorPrototype,lr=ar.BUGGY_SAFARI_ITERATORS,fr=wellKnownSymbol$1("iterator"),hr="keys",pr="values",yr="entries",returnThis$3=function(){return this},defineIterator$1=function(h,g,d,b,x,S,_){createIteratorConstructor$1(d,g,b);var w,C,E,getIterationMethod=function(h){if(h===x&&M)return M;if(!lr&&h in A)return A[h];switch(h){case hr:return function keys(){return new d(this,h)};case pr:return function values(){return new d(this,h)};case yr:return function entries(){return new d(this,h)}}return function(){return new d(this)}},P=g+" Iterator",k=!1,A=h.prototype,R=A[fr]||A["@@iterator"]||x&&A[x],M=!lr&&R||getIterationMethod(x),N="Array"==g&&A.entries||R;if(N&&(w=rr(N.call(new h)),cr!==Object.prototype&&w.next&&(rr(w)!==cr&&(ur?ur(w,cr):"function"!=typeof w[fr]&&V(w,fr,returnThis$3)),setToStringTag$1(w,P,!0))),x==pr&&R&&R.name!==pr&&(k=!0,M=function values(){return R.call(this)}),A[fr]!==M&&V(A,fr,M),or[g]=M,x)if(C={values:getIterationMethod(pr),keys:S?M:getIterationMethod(hr),entries:getIterationMethod(yr)},_)for(E in C)(lr||k||!(E in A))&&lt(A,E,C[E]);else _export$1({target:g,proto:!0,forced:lr||k},C);return C},vr=Ke.charAt,gr="String Iterator",dr=ct.set,mr=ct.getterFor(gr);defineIterator$1(String,"String",(function(h){dr(this,{type:gr,string:String(h),index:0})}),(function next(){var h,g=mr(this),d=g.string,b=g.index;return b>=d.length?{value:void 0,done:!0}:(h=vr(d,b),g.index+=h.length,{value:h,done:!1})}));var br=wellKnownSymbol$1("unscopables"),xr=Array.prototype;null==xr[br]&&$.f(xr,br,{configurable:!0,value:Ht(null)});var addToUnscopables=function(h){xr[br][h]=!0},Sr="Array Iterator",_r=ct.set,wr=ct.getterFor(Sr),Cr=defineIterator$1(Array,"Array",(function(h,g){_r(this,{type:Sr,target:toIndexedObject$1(h),index:0,kind:g})}),(function(){var h=wr(this),g=h.target,d=h.kind,b=h.index++;return!g||b>=g.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==d?{value:b,done:!1}:"values"==d?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}}),"values");or.Arguments=or.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Er={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},Pr=wellKnownSymbol$1("iterator"),kr=wellKnownSymbol$1("toStringTag"),Or=Cr.values;for(var Ar in Er){var Tr=b[Ar],Rr=Tr&&Tr.prototype;if(Rr){if(Rr[Pr]!==Or)try{V(Rr,Pr,Or)}catch(h){Rr[Pr]=Or}if(Rr[kr]||V(Rr,kr,Ar),Er[Ar])for(var Mr in Cr)if(Rr[Mr]!==Cr[Mr])try{V(Rr,Mr,Cr[Mr])}catch(h){Rr[Mr]=Cr[Mr]}}}defineWellKnownSymbol$1("asyncIterator"),defineWellKnownSymbol$1("toStringTag"),setToStringTag$1(Math,"Math",!0),setToStringTag$1(b.JSON,"JSON",!0);var Nr=fails$1((function(){rr(1)}));_export$1({target:"Object",stat:!0,forced:Nr,sham:!Je},{getPrototypeOf:function getPrototypeOf(h){return rr(toObject$1(h))}});var arrayMethodIsStrict$1=function(h,g){var d=[][h];return!!d&&fails$1((function(){d.call(null,g||function(){throw 1},1)}))},Ir=ae.forEach,Lr=arrayMethodIsStrict$1("forEach")?[].forEach:function forEach(h){return Ir(this,h,arguments.length>1?arguments[1]:void 0)};_export$1({target:"Array",proto:!0,forced:[].forEach!=Lr},{forEach:Lr});var Dr=$.f,$r=Function.prototype,Vr=$r.toString,jr=/^\s*function ([^ (]*)/,Fr="name";x&&!(Fr in $r)&&Dr($r,Fr,{configurable:!0,get:function(){try{return Vr.call(this).match(jr)[1]}catch(h){return""}}}),_export$1({target:"Object",stat:!0},{setPrototypeOf:ur});var Br=b.Promise,redefineAll$1=function(h,g,d){for(var b in g)lt(h,b,g[b],d);return h},Ur=wellKnownSymbol$1("species"),setSpecies$1=function(h){var g=getBuiltIn$1(h),d=$.f;x&&g&&!g[Ur]&&d(g,Ur,{configurable:!0,get:function(){return this}})},anInstance$1=function(h,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},zr=wellKnownSymbol$1("iterator"),Gr=Array.prototype,isArrayIteratorMethod$1=function(h){return void 0!==h&&(or.Array===h||Gr[zr]===h)},Hr=wellKnownSymbol$1("iterator"),getIteratorMethod$2=function(h){if(null!=h)return h[Hr]||h["@@iterator"]||or[Xe(h)]},iteratorClose$1=function(h){var g=h.return;if(void 0!==g)return anObject$1(g.call(h)).value},Result$1=function(h,g){this.stopped=h,this.result=g},iterate$1=function(h,g,d){var b,x,S,_,w,C,E,P=d&&d.that,k=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_ITERATOR),R=!(!d||!d.INTERRUPTED),M=functionBindContext$1(g,P,1+k+R),stop=function(h){return b&&iteratorClose$1(b),new Result$1(!0,h)},callFn=function(h){return k?(anObject$1(h),R?M(h[0],h[1],stop):M(h[0],h[1])):R?M(h,stop):M(h)};if(A)b=h;else{if("function"!=typeof(x=getIteratorMethod$2(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod$1(x)){for(S=0,_=toLength$1(h.length);_>S;S++)if((w=callFn(h[S]))&&w instanceof Result$1)return w;return new Result$1(!1)}b=x.call(h)}for(C=b.next;!(E=C.call(b)).done;){try{w=callFn(E.value)}catch(h){throw iteratorClose$1(b),h}if("object"==typeof w&&w&&w instanceof Result$1)return w}return new Result$1(!1)},qr=wellKnownSymbol$1("iterator"),Xr=!1;try{var Yr=0,Wr={next:function(){return{done:!!Yr++}},return:function(){Xr=!0}};Wr[qr]=function(){return this},Array.from(Wr,(function(){throw 2}))}catch(h){}var Qr,Zr,Kr,checkCorrectnessOfIteration$1=function(h,g){if(!g&&!Xr)return!1;var d=!1;try{var b={};b[qr]=function(){return{next:function(){return{done:d=!0}}}},h(b)}catch(h){}return d},Jr=wellKnownSymbol$1("species"),speciesConstructor$1=function(h,g){var d,b=anObject$1(h).constructor;return void 0===b||null==(d=anObject$1(b)[Jr])?g:aFunction$2(d)},tn=/(iphone|ipod|ipad).*applewebkit/i.test(Mt),en=b.location,rn=b.setImmediate,nn=b.clearImmediate,an=b.process,on=b.MessageChannel,sn=b.Dispatch,un=0,cn={},ln="onreadystatechange",run$1=function(h){if(cn.hasOwnProperty(h)){var g=cn[h];delete cn[h],g()}},runner$1=function(h){return function(){run$1(h)}},listener$1=function(h){run$1(h.data)},post$1=function(h){b.postMessage(h+"",en.protocol+"//"+en.host)};rn&&nn||(rn=function setImmediate(h){for(var g=[],d=1;arguments.length>d;)g.push(arguments[d++]);return cn[++un]=function(){("function"==typeof h?h:Function(h)).apply(void 0,g)},Qr(un),un},nn=function clearImmediate(h){delete cn[h]},Rt?Qr=function(h){an.nextTick(runner$1(h))}:sn&&sn.now?Qr=function(h){sn.now(runner$1(h))}:on&&!tn?(Kr=(Zr=new on).port2,Zr.port1.onmessage=listener$1,Qr=functionBindContext$1(Kr.postMessage,Kr,1)):b.addEventListener&&"function"==typeof postMessage&&!b.importScripts&&en&&"file:"!==en.protocol&&!fails$1(post$1)?(Qr=post$1,b.addEventListener("message",listener$1,!1)):Qr=ln in documentCreateElement$1("script")?function(h){zt.appendChild(documentCreateElement$1("script")).onreadystatechange=function(){zt.removeChild(this),run$1(h)}}:function(h){setTimeout(runner$1(h),0)});var fn,hn,pn,yn,vn,gn,dn,mn,bn={set:rn,clear:nn},xn=/web0s(?!.*chrome)/i.test(Mt),Sn=L.f,_n=bn.set,wn=b.MutationObserver||b.WebKitMutationObserver,Cn=b.document,En=b.process,Pn=b.Promise,kn=Sn(b,"queueMicrotask"),On=kn&&kn.value;On||(fn=function(){var h,g;for(Rt&&(h=En.domain)&&h.exit();hn;){g=hn.fn,hn=hn.next;try{g()}catch(h){throw hn?yn():pn=void 0,h}}pn=void 0,h&&h.enter()},tn||Rt||xn||!wn||!Cn?Pn&&Pn.resolve?(dn=Pn.resolve(void 0),mn=dn.then,yn=function(){mn.call(dn,fn)}):yn=Rt?function(){En.nextTick(fn)}:function(){_n.call(b,fn)}:(vn=!0,gn=Cn.createTextNode(""),new wn(fn).observe(gn,{characterData:!0}),yn=function(){gn.data=vn=!vn}));var An,Tn,Rn,Mn,Nn=On||function(h){var g={fn:h,next:void 0};pn&&(pn.next=g),hn||(hn=g,yn()),pn=g},PromiseCapability$1=function(h){var g,d;this.promise=new h((function(h,b){if(void 0!==g||void 0!==d)throw TypeError("Bad Promise constructor");g=h,d=b})),this.resolve=aFunction$2(g),this.reject=aFunction$2(d)},In={f:function(h){return new PromiseCapability$1(h)}},promiseResolve$1=function(h,g){if(anObject$1(h),isObject$1(g)&&g.constructor===h)return g;var d=In.f(h);return(0,d.resolve)(g),d.promise},perform$1=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},Ln=bn.set,Dn=wellKnownSymbol$1("species"),$n="Promise",Vn=ct.get,jn=ct.set,Fn=ct.getterFor($n),Bn=Br,Un=b.TypeError,zn=b.document,Gn=b.process,Hn=getBuiltIn$1("fetch"),qn=In.f,Xn=qn,Yn=!!(zn&&zn.createEvent&&b.dispatchEvent),Wn="function"==typeof PromiseRejectionEvent,Qn="unhandledrejection",Zn=At($n,(function(){if(!(X(Bn)!==String(Bn))){if(66===$t)return!0;if(!Rt&&!Wn)return!0}if($t>=51&&/native code/.test(Bn))return!1;var h=Bn.resolve(1),FakePromise=function(h){h((function(){}),(function(){}))};return(h.constructor={})[Dn]=FakePromise,!(h.then((function(){}))instanceof FakePromise)})),Kn=Zn||!checkCorrectnessOfIteration$1((function(h){Bn.all(h).catch((function(){}))})),isThenable$1=function(h){var g;return!(!isObject$1(h)||"function"!=typeof(g=h.then))&&g},notify$2=function(h,g){if(!h.notified){h.notified=!0;var d=h.reactions;Nn((function(){for(var b=h.value,x=1==h.state,S=0;d.length>S;){var _,w,C,E=d[S++],P=x?E.ok:E.fail,k=E.resolve,A=E.reject,R=E.domain;try{P?(x||(2===h.rejection&&onHandleUnhandled$1(h),h.rejection=1),!0===P?_=b:(R&&R.enter(),_=P(b),R&&(R.exit(),C=!0)),_===E.promise?A(Un("Promise-chain cycle")):(w=isThenable$1(_))?w.call(_,k,A):k(_)):A(b)}catch(h){R&&!C&&R.exit(),A(h)}}h.reactions=[],h.notified=!1,g&&!h.rejection&&onUnhandled$1(h)}))}},dispatchEvent$1=function(h,g,d){var x,S;Yn?((x=zn.createEvent("Event")).promise=g,x.reason=d,x.initEvent(h,!1,!0),b.dispatchEvent(x)):x={promise:g,reason:d},!Wn&&(S=b["on"+h])?S(x):h===Qn&&function(h,g){var d=b.console;d&&d.error&&(1===arguments.length?d.error(h):d.error(h,g))}("Unhandled promise rejection",d)},onUnhandled$1=function(h){Ln.call(b,(function(){var g,d=h.facade,b=h.value;if(isUnhandled$1(h)&&(g=perform$1((function(){Rt?Gn.emit("unhandledRejection",b,d):dispatchEvent$1(Qn,d,b)})),h.rejection=Rt||isUnhandled$1(h)?2:1,g.error))throw g.value}))},isUnhandled$1=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled$1=function(h){Ln.call(b,(function(){var g=h.facade;Rt?Gn.emit("rejectionHandled",g):dispatchEvent$1("rejectionhandled",g,h.value)}))},bind$4=function(h,g,d){return function(b){h(g,b,d)}},internalReject$1=function(h,g,d){h.done||(h.done=!0,d&&(h=d),h.value=g,h.state=2,notify$2(h,!0))},internalResolve$1=function(h,g,d){if(!h.done){h.done=!0,d&&(h=d);try{if(h.facade===g)throw Un("Promise can't be resolved itself");var b=isThenable$1(g);b?Nn((function(){var d={done:!1};try{b.call(g,bind$4(internalResolve$1,d,h),bind$4(internalReject$1,d,h))}catch(g){internalReject$1(d,g,h)}})):(h.value=g,h.state=1,notify$2(h,!1))}catch(g){internalReject$1({done:!1},g,h)}}};Zn&&(Bn=function Promise(h){anInstance$1(this,Bn,$n),aFunction$2(h),An.call(this);var g=Vn(this);try{h(bind$4(internalResolve$1,g),bind$4(internalReject$1,g))}catch(h){internalReject$1(g,h)}},(An=function Promise(h){jn(this,{type:$n,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll$1(Bn.prototype,{then:function then(h,g){var d=Fn(this),b=qn(speciesConstructor$1(this,Bn));return b.ok="function"!=typeof h||h,b.fail="function"==typeof g&&g,b.domain=Rt?Gn.domain:void 0,d.parent=!0,d.reactions.push(b),0!=d.state&&notify$2(d,!1),b.promise},catch:function(h){return this.then(void 0,h)}}),Tn=function(){var h=new An,g=Vn(h);this.promise=h,this.resolve=bind$4(internalResolve$1,g),this.reject=bind$4(internalReject$1,g)},In.f=qn=function(h){return h===Bn||h===Rn?new Tn(h):Xn(h)},"function"==typeof Br&&(Mn=Br.prototype.then,lt(Br.prototype,"then",(function then(h,g){var d=this;return new Bn((function(h,g){Mn.call(d,h,g)})).then(h,g)}),{unsafe:!0}),"function"==typeof Hn&&_export$1({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve$1(Bn,Hn.apply(b,arguments))}}))),_export$1({global:!0,wrap:!0,forced:Zn},{Promise:Bn}),setToStringTag$1(Bn,$n,!1),setSpecies$1($n),Rn=getBuiltIn$1($n),_export$1({target:$n,stat:!0,forced:Zn},{reject:function reject(h){var g=qn(this);return g.reject.call(void 0,h),g.promise}}),_export$1({target:$n,stat:!0,forced:Zn},{resolve:function resolve(h){return promiseResolve$1(this,h)}}),_export$1({target:$n,stat:!0,forced:Kn},{all:function all(h){var g=this,d=qn(g),b=d.resolve,x=d.reject,S=perform$1((function(){var d=aFunction$2(g.resolve),S=[],_=0,w=1;iterate$1(h,(function(h){var C=_++,E=!1;S.push(void 0),w++,d.call(g,h).then((function(h){E||(E=!0,S[C]=h,--w||b(S))}),x)})),--w||b(S)}));return S.error&&x(S.value),d.promise},race:function race(h){var g=this,d=qn(g),b=d.reject,x=perform$1((function(){var x=aFunction$2(g.resolve);iterate$1(h,(function(h){x.call(g,h).then(d.resolve,b)}))}));return x.error&&b(x.value),d.promise}});var regexpFlags=function(){var h=anObject$1(this),g="";return h.global&&(g+="g"),h.ignoreCase&&(g+="i"),h.multiline&&(g+="m"),h.dotAll&&(g+="s"),h.unicode&&(g+="u"),h.sticky&&(g+="y"),g},Jn="toString",ti=RegExp.prototype,ei=ti.toString,ri=fails$1((function(){return"/a/b"!=ei.call({source:"a",flags:"b"})})),ni=ei.name!=Jn;for(var ii in(ri||ni)&&lt(RegExp.prototype,Jn,(function toString(){var h=anObject$1(this),g=String(h.source),d=h.flags;return"/"+g+"/"+String(void 0===d&&h instanceof RegExp&&!("flags"in ti)?regexpFlags.call(h):d)}),{unsafe:!0}),Er){var ai=b[ii],oi=ai&&ai.prototype;if(oi&&oi.forEach!==Lr)try{V(oi,"forEach",Lr)}catch(h){oi.forEach=Lr}}var si=[].reverse,ui=[1,2];_export$1({target:"Array",proto:!0,forced:String(ui)===String(ui.reverse())},{reverse:function reverse(){return Ft(this)&&(this.length=this.length),si.call(this)}});var createProperty$1=function(h,g,d){var b=toPrimitive$1(g);b in h?$.f(h,b,createPropertyDescriptor$1(0,d)):h[b]=d},ci=wellKnownSymbol$1("species"),arrayMethodHasSpeciesSupport$1=function(h){return $t>=51||!fails$1((function(){var g=[];return(g.constructor={})[ci]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},li=arrayMethodHasSpeciesSupport$1("slice"),fi=wellKnownSymbol$1("species"),hi=[].slice,pi=Math.max;_export$1({target:"Array",proto:!0,forced:!li},{slice:function slice(h,g){var d,b,x,S=toIndexedObject$1(this),_=toLength$1(S.length),w=toAbsoluteIndex$1(h,_),C=toAbsoluteIndex$1(void 0===g?_:g,_);if(Ft(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!Ft(d.prototype)?isObject$1(d)&&null===(d=d[fi])&&(d=void 0):d=void 0,d===Array||void 0===d))return hi.call(S,w,C);for(b=new(void 0===d?Array:d)(pi(C-w,0)),x=0;w<C;w++,x++)w in S&&createProperty$1(b,x,S[w]);return b.length=x,b}});var yi=createCommonjsModule((function(h){var g=function(h){var g,d=Object.prototype,b=d.hasOwnProperty,x="function"==typeof Symbol?Symbol:{},S=x.iterator||"@@iterator",_=x.asyncIterator||"@@asyncIterator",w=x.toStringTag||"@@toStringTag";function define(h,g,d){return Object.defineProperty(h,g,{value:d,enumerable:!0,configurable:!0,writable:!0}),h[g]}try{define({},"")}catch(h){define=function define(h,g,d){return h[g]=d}}function wrap(h,g,d,b){var x=g&&g.prototype instanceof Generator?g:Generator,S=Object.create(x.prototype),_=new Context(b||[]);return S._invoke=function makeInvokeMethod(h,g,d){var b=C;return function invoke(x,S){if(b===P)throw new Error("Generator is already running");if(b===k){if("throw"===x)throw S;return doneResult()}for(d.method=x,d.arg=S;;){var _=d.delegate;if(_){var w=maybeInvokeDelegate(_,d);if(w){if(w===A)continue;return w}}if("next"===d.method)d.sent=d._sent=d.arg;else if("throw"===d.method){if(b===C)throw b=k,d.arg;d.dispatchException(d.arg)}else"return"===d.method&&d.abrupt("return",d.arg);b=P;var R=tryCatch(h,g,d);if("normal"===R.type){if(b=d.done?k:E,R.arg===A)continue;return{value:R.arg,done:d.done}}"throw"===R.type&&(b=k,d.method="throw",d.arg=R.arg)}}}(h,d,_),S}function tryCatch(h,g,d){try{return{type:"normal",arg:h.call(g,d)}}catch(h){return{type:"throw",arg:h}}}h.wrap=wrap;var C="suspendedStart",E="suspendedYield",P="executing",k="completed",A={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var R={};R[S]=function(){return this};var M=Object.getPrototypeOf,N=M&&M(M(values([])));N&&N!==d&&b.call(N,S)&&(R=N);var L=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(R);function defineIteratorMethods(h){["next","throw","return"].forEach((function(g){define(h,g,(function(h){return this._invoke(g,h)}))}))}function AsyncIterator(h,g){var d;this._invoke=function enqueue(x,S){function callInvokeWithMethodAndArg(){return new g((function(d,_){!function invoke(d,x,S,_){var w=tryCatch(h[d],h,x);if("throw"!==w.type){var C=w.arg,E=C.value;return E&&"object"===_typeof$2(E)&&b.call(E,"__await")?g.resolve(E.__await).then((function(h){invoke("next",h,S,_)}),(function(h){invoke("throw",h,S,_)})):g.resolve(E).then((function(h){C.value=h,S(C)}),(function(h){return invoke("throw",h,S,_)}))}_(w.arg)}(x,S,d,_)}))}return d=d?d.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(h,d){var b=h.iterator[d.method];if(b===g){if(d.delegate=null,"throw"===d.method){if(h.iterator.return&&(d.method="return",d.arg=g,maybeInvokeDelegate(h,d),"throw"===d.method))return A;d.method="throw",d.arg=new TypeError("The iterator does not provide a 'throw' method")}return A}var x=tryCatch(b,h.iterator,d.arg);if("throw"===x.type)return d.method="throw",d.arg=x.arg,d.delegate=null,A;var S=x.arg;return S?S.done?(d[h.resultName]=S.value,d.next=h.nextLoc,"return"!==d.method&&(d.method="next",d.arg=g),d.delegate=null,A):S:(d.method="throw",d.arg=new TypeError("iterator result is not an object"),d.delegate=null,A)}function pushTryEntry(h){var g={tryLoc:h[0]};1 in h&&(g.catchLoc=h[1]),2 in h&&(g.finallyLoc=h[2],g.afterLoc=h[3]),this.tryEntries.push(g)}function resetTryEntry(h){var g=h.completion||{};g.type="normal",delete g.arg,h.completion=g}function Context(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(pushTryEntry,this),this.reset(!0)}function values(h){if(h){var d=h[S];if(d)return d.call(h);if("function"==typeof h.next)return h;if(!isNaN(h.length)){var x=-1,_=function next(){for(;++x<h.length;)if(b.call(h,x))return next.value=h[x],next.done=!1,next;return next.value=g,next.done=!0,next};return _.next=_}}return{next:doneResult}}function doneResult(){return{value:g,done:!0}}return GeneratorFunction.prototype=L.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,w,"GeneratorFunction"),h.isGeneratorFunction=function(h){var g="function"==typeof h&&h.constructor;return!!g&&(g===GeneratorFunction||"GeneratorFunction"===(g.displayName||g.name))},h.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,GeneratorFunctionPrototype):(h.__proto__=GeneratorFunctionPrototype,define(h,w,"GeneratorFunction")),h.prototype=Object.create(L),h},h.awrap=function(h){return{__await:h}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[_]=function(){return this},h.AsyncIterator=AsyncIterator,h.async=function(g,d,b,x,S){void 0===S&&(S=Promise);var _=new AsyncIterator(wrap(g,d,b,x),S);return h.isGeneratorFunction(d)?_:_.next().then((function(h){return h.done?h.value:_.next()}))},defineIteratorMethods(L),define(L,w,"Generator"),L[S]=function(){return this},L.toString=function(){return"[object Generator]"},h.keys=function(h){var g=[];for(var d in h)g.push(d);return g.reverse(),function next(){for(;g.length;){var d=g.pop();if(d in h)return next.value=d,next.done=!1,next}return next.done=!0,next}},h.values=values,Context.prototype={constructor:Context,reset:function reset(h){if(this.prev=0,this.next=0,this.sent=this._sent=g,this.done=!1,this.delegate=null,this.method="next",this.arg=g,this.tryEntries.forEach(resetTryEntry),!h)for(var d in this)"t"===d.charAt(0)&&b.call(this,d)&&!isNaN(+d.slice(1))&&(this[d]=g)},stop:function stop(){this.done=!0;var h=this.tryEntries[0].completion;if("throw"===h.type)throw h.arg;return this.rval},dispatchException:function dispatchException(h){if(this.done)throw h;var d=this;function handle(b,x){return _.type="throw",_.arg=h,d.next=b,x&&(d.method="next",d.arg=g),!!x}for(var x=this.tryEntries.length-1;x>=0;--x){var S=this.tryEntries[x],_=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var w=b.call(S,"catchLoc"),C=b.call(S,"finallyLoc");if(w&&C){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0);if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}else if(w){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0)}else{if(!C)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function abrupt(h,g){for(var d=this.tryEntries.length-1;d>=0;--d){var x=this.tryEntries[d];if(x.tryLoc<=this.prev&&b.call(x,"finallyLoc")&&this.prev<x.finallyLoc){var S=x;break}}S&&("break"===h||"continue"===h)&&S.tryLoc<=g&&g<=S.finallyLoc&&(S=null);var _=S?S.completion:{};return _.type=h,_.arg=g,S?(this.method="next",this.next=S.finallyLoc,A):this.complete(_)},complete:function complete(h,g){if("throw"===h.type)throw h.arg;return"break"===h.type||"continue"===h.type?this.next=h.arg:"return"===h.type?(this.rval=this.arg=h.arg,this.method="return",this.next="end"):"normal"===h.type&&g&&(this.next=g),A},finish:function finish(h){for(var g=this.tryEntries.length-1;g>=0;--g){var d=this.tryEntries[g];if(d.finallyLoc===h)return this.complete(d.completion,d.afterLoc),resetTryEntry(d),A}},catch:function _catch(h){for(var g=this.tryEntries.length-1;g>=0;--g){var d=this.tryEntries[g];if(d.tryLoc===h){var b=d.completion;if("throw"===b.type){var x=b.arg;resetTryEntry(d)}return x}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(h,d,b){return this.delegate={iterator:values(h),resultName:d,nextLoc:b},"next"===this.method&&(this.arg=g),A}},h}(h.exports);try{regeneratorRuntime=g}catch(h){Function("r","regeneratorRuntime = r")(g)}})),vi=wellKnownSymbol$1("iterator"),gi=!fails$1((function(){var h=new URL("b?a=1&b=2&c=3","http://a"),g=h.searchParams,d="";return h.pathname="c%20d",g.forEach((function(h,b){g.delete("b"),d+=b+h})),!g.sort||"http://a/c%20d?a=1&c=3"!==h.href||"3"!==g.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!g[vi]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==d||"x"!==new URL("http://x",void 0).host})),di=Object.assign,mi=Object.defineProperty,bi=!di||fails$1((function(){if(x&&1!==di({b:1},di(mi({},"a",{enumerable:!0,get:function(){mi(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var h={},g={},d=Symbol(),b="abcdefghijklmnopqrst";return h[d]=7,b.split("").forEach((function(h){g[h]=h})),7!=di({},h)[d]||Bt(di({},g)).join("")!=b}))?function assign(h,g){for(var d=toObject$1(h),b=arguments.length,S=1,_=_t.f,C=w.f;b>S;)for(var E,k=P(arguments[S++]),A=_?Bt(k).concat(_(k)):Bt(k),R=A.length,M=0;R>M;)E=A[M++],x&&!C.call(k,E)||(d[E]=k[E]);return d}:di,callWithSafeIterationClosing$1=function(h,g,d,b){try{return b?g(anObject$1(d)[0],d[1]):g(d)}catch(g){throw iteratorClose$1(h),g}},xi=function from(h){var g,d,b,x,S,_,w=toObject$1(h),C="function"==typeof this?this:Array,E=arguments.length,P=E>1?arguments[1]:void 0,k=void 0!==P,A=getIteratorMethod$2(w),R=0;if(k&&(P=functionBindContext$1(P,E>2?arguments[2]:void 0,2)),null==A||C==Array&&isArrayIteratorMethod$1(A))for(d=new C(g=toLength$1(w.length));g>R;R++)_=k?P(w[R],R):w[R],createProperty$1(d,R,_);else for(S=(x=A.call(w)).next,d=new C;!(b=S.call(x)).done;R++)_=k?callWithSafeIterationClosing$1(x,P,[b.value,R],!0):b.value,createProperty$1(d,R,_);return d.length=R,d},Si=2147483647,_i=/[^\0-\u007E]/,wi=/[.\u3002\uFF0E\uFF61]/g,Ci="Overflow: input needs wider integers to process",Ei=Math.floor,Pi=String.fromCharCode,digitToBasic=function(h){return h+22+75*(h<26)},adapt=function(h,g,d){var b=0;for(h=d?Ei(h/700):h>>1,h+=Ei(h/g);h>455;b+=36)h=Ei(h/35);return Ei(b+36*h/(h+38))},encode=function(h){var g,d,b=[],x=(h=function(h){for(var g=[],d=0,b=h.length;d<b;){var x=h.charCodeAt(d++);if(x>=55296&&x<=56319&&d<b){var S=h.charCodeAt(d++);56320==(64512&S)?g.push(((1023&x)<<10)+(1023&S)+65536):(g.push(x),d--)}else g.push(x)}return g}(h)).length,S=128,_=0,w=72;for(g=0;g<h.length;g++)(d=h[g])<128&&b.push(Pi(d));var C=b.length,E=C;for(C&&b.push("-");E<x;){var P=Si;for(g=0;g<h.length;g++)(d=h[g])>=S&&d<P&&(P=d);var k=E+1;if(P-S>Ei((Si-_)/k))throw RangeError(Ci);for(_+=(P-S)*k,S=P,g=0;g<h.length;g++){if((d=h[g])<S&&++_>Si)throw RangeError(Ci);if(d==S){for(var A=_,R=36;;R+=36){var M=R<=w?1:R>=w+26?26:R-w;if(A<M)break;var N=A-M,L=36-M;b.push(Pi(digitToBasic(M+N%L))),A=Ei(N/L)}b.push(Pi(digitToBasic(A))),w=adapt(_,k,E==C),_=0,++E}}++_,++S}return b.join("")},getIterator$2=function(h){var g=getIteratorMethod$2(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return anObject$1(g.call(h))},ki=getBuiltIn$1("fetch"),Oi=getBuiltIn$1("Headers"),Ai=wellKnownSymbol$1("iterator"),Ti="URLSearchParams",Ri="URLSearchParamsIterator",Mi=ct.set,Ni=ct.getterFor(Ti),Ii=ct.getterFor(Ri),Li=/\+/g,Di=Array(4),percentSequence=function(h){return Di[h-1]||(Di[h-1]=RegExp("((?:%[\\da-f]{2}){"+h+"})","gi"))},percentDecode=function(h){try{return decodeURIComponent(h)}catch(g){return h}},deserialize=function(h){var g=h.replace(Li," "),d=4;try{return decodeURIComponent(g)}catch(h){for(;d;)g=g.replace(percentSequence(d--),percentDecode);return g}},$i=/[!'()~]|%20/g,Vi={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(h){return Vi[h]},serialize=function(h){return encodeURIComponent(h).replace($i,replacer)},parseSearchParams=function(h,g){if(g)for(var d,b,x=g.split("&"),S=0;S<x.length;)(d=x[S++]).length&&(b=d.split("="),h.push({key:deserialize(b.shift()),value:deserialize(b.join("="))}))},updateSearchParams=function(h){this.entries.length=0,parseSearchParams(this.entries,h)},validateArgumentsLength=function(h,g){if(h<g)throw TypeError("Not enough arguments")},ji=createIteratorConstructor$1((function Iterator(h,g){Mi(this,{type:Ri,iterator:getIterator$2(Ni(h).entries),kind:g})}),"Iterator",(function next(){var h=Ii(this),g=h.kind,d=h.iterator.next(),b=d.value;return d.done||(d.value="keys"===g?b.key:"values"===g?b.value:[b.key,b.value]),d})),Fi=function URLSearchParams(){anInstance$1(this,Fi,Ti);var h,g,d,b,x,S,_,w,C,E=arguments.length>0?arguments[0]:void 0,P=this,k=[];if(Mi(P,{type:Ti,entries:k,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==E)if(isObject$1(E))if("function"==typeof(h=getIteratorMethod$2(E)))for(d=(g=h.call(E)).next;!(b=d.call(g)).done;){if((_=(S=(x=getIterator$2(anObject$1(b.value))).next).call(x)).done||(w=S.call(x)).done||!S.call(x).done)throw TypeError("Expected sequence with length 2");k.push({key:_.value+"",value:w.value+""})}else for(C in E)has$3(E,C)&&k.push({key:C,value:E[C]+""});else parseSearchParams(k,"string"==typeof E?"?"===E.charAt(0)?E.slice(1):E:E+"")},Bi=Fi.prototype;redefineAll$1(Bi,{append:function append(h,g){validateArgumentsLength(arguments.length,2);var d=Ni(this);d.entries.push({key:h+"",value:g+""}),d.updateURL()},delete:function(h){validateArgumentsLength(arguments.length,1);for(var g=Ni(this),d=g.entries,b=h+"",x=0;x<d.length;)d[x].key===b?d.splice(x,1):x++;g.updateURL()},get:function get(h){validateArgumentsLength(arguments.length,1);for(var g=Ni(this).entries,d=h+"",b=0;b<g.length;b++)if(g[b].key===d)return g[b].value;return null},getAll:function getAll(h){validateArgumentsLength(arguments.length,1);for(var g=Ni(this).entries,d=h+"",b=[],x=0;x<g.length;x++)g[x].key===d&&b.push(g[x].value);return b},has:function has(h){validateArgumentsLength(arguments.length,1);for(var g=Ni(this).entries,d=h+"",b=0;b<g.length;)if(g[b++].key===d)return!0;return!1},set:function set(h,g){validateArgumentsLength(arguments.length,1);for(var d,b=Ni(this),x=b.entries,S=!1,_=h+"",w=g+"",C=0;C<x.length;C++)(d=x[C]).key===_&&(S?x.splice(C--,1):(S=!0,d.value=w));S||x.push({key:_,value:w}),b.updateURL()},sort:function sort(){var h,g,d,b=Ni(this),x=b.entries,S=x.slice();for(x.length=0,d=0;d<S.length;d++){for(h=S[d],g=0;g<d;g++)if(x[g].key>h.key){x.splice(g,0,h);break}g===d&&x.push(h)}b.updateURL()},forEach:function forEach(h){for(var g,d=Ni(this).entries,b=functionBindContext$1(h,arguments.length>1?arguments[1]:void 0,3),x=0;x<d.length;)b((g=d[x++]).value,g.key,this)},keys:function keys(){return new ji(this,"keys")},values:function values(){return new ji(this,"values")},entries:function entries(){return new ji(this,"entries")}},{enumerable:!0}),lt(Bi,Ai,Bi.entries),lt(Bi,"toString",(function toString(){for(var h,g=Ni(this).entries,d=[],b=0;b<g.length;)h=g[b++],d.push(serialize(h.key)+"="+serialize(h.value));return d.join("&")}),{enumerable:!0}),setToStringTag$1(Fi,Ti),_export$1({global:!0,forced:!gi},{URLSearchParams:Fi}),gi||"function"!=typeof ki||"function"!=typeof Oi||_export$1({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){var g,d,b,x=[h];return arguments.length>1&&(isObject$1(g=arguments[1])&&(d=g.body,Xe(d)===Ti&&((b=g.headers?new Oi(g.headers):new Oi).has("content-type")||b.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),g=Ht(g,{body:createPropertyDescriptor$1(0,String(d)),headers:createPropertyDescriptor$1(0,b)}))),x.push(g)),ki.apply(this,x)}});var Ui,zi={URLSearchParams:Fi,getState:Ni},Gi=Ke.codeAt,Hi=b.URL,qi=zi.URLSearchParams,Xi=zi.getState,Yi=ct.set,Wi=ct.getterFor("URL"),Qi=Math.floor,Zi=Math.pow,Ki="Invalid scheme",Ji="Invalid host",ta="Invalid port",ea=/[A-Za-z]/,ra=/[\d+-.A-Za-z]/,na=/\d/,ia=/^(0x|0X)/,aa=/^[0-7]+$/,oa=/^\d+$/,sa=/^[\dA-Fa-f]+$/,ua=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,ca=/[\u0000\t\u000A\u000D #/:?@[\\]]/,la=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,fa=/[\t\u000A\u000D]/g,parseHost=function(h,g){var d,b,x;if("["==g.charAt(0)){if("]"!=g.charAt(g.length-1))return Ji;if(!(d=parseIPv6(g.slice(1,-1))))return Ji;h.host=d}else if(isSpecial(h)){if(g=function(h){var g,d,b=[],x=h.toLowerCase().replace(wi,".").split(".");for(g=0;g<x.length;g++)d=x[g],b.push(_i.test(d)?"xn--"+encode(d):d);return b.join(".")}(g),ua.test(g))return Ji;if(null===(d=parseIPv4(g)))return Ji;h.host=d}else{if(ca.test(g))return Ji;for(d="",b=xi(g),x=0;x<b.length;x++)d+=percentEncode(b[x],ha);h.host=d}},parseIPv4=function(h){var g,d,b,x,S,_,w,C=h.split(".");if(C.length&&""==C[C.length-1]&&C.pop(),(g=C.length)>4)return h;for(d=[],b=0;b<g;b++){if(""==(x=C[b]))return h;if(S=10,x.length>1&&"0"==x.charAt(0)&&(S=ia.test(x)?16:8,x=x.slice(8==S?1:2)),""===x)_=0;else{if(!(10==S?oa:8==S?aa:sa).test(x))return h;_=parseInt(x,S)}d.push(_)}for(b=0;b<g;b++)if(_=d[b],b==g-1){if(_>=Zi(256,5-g))return null}else if(_>255)return null;for(w=d.pop(),b=0;b<d.length;b++)w+=d[b]*Zi(256,3-b);return w},parseIPv6=function(h){var g,d,b,x,S,_,w,C=[0,0,0,0,0,0,0,0],E=0,P=null,k=0,char=function(){return h.charAt(k)};if(":"==char()){if(":"!=h.charAt(1))return;k+=2,P=++E}for(;char();){if(8==E)return;if(":"!=char()){for(g=d=0;d<4&&sa.test(char());)g=16*g+parseInt(char(),16),k++,d++;if("."==char()){if(0==d)return;if(k-=d,E>6)return;for(b=0;char();){if(x=null,b>0){if(!("."==char()&&b<4))return;k++}if(!na.test(char()))return;for(;na.test(char());){if(S=parseInt(char(),10),null===x)x=S;else{if(0==x)return;x=10*x+S}if(x>255)return;k++}C[E]=256*C[E]+x,2!=++b&&4!=b||E++}if(4!=b)return;break}if(":"==char()){if(k++,!char())return}else if(char())return;C[E++]=g}else{if(null!==P)return;k++,P=++E}}if(null!==P)for(_=E-P,E=7;0!=E&&_>0;)w=C[E],C[E--]=C[P+_-1],C[P+--_]=w;else if(8!=E)return;return C},serializeHost=function(h){var g,d,b,x;if("number"==typeof h){for(g=[],d=0;d<4;d++)g.unshift(h%256),h=Qi(h/256);return g.join(".")}if("object"==typeof h){for(g="",b=function(h){for(var g=null,d=1,b=null,x=0,S=0;S<8;S++)0!==h[S]?(x>d&&(g=b,d=x),b=null,x=0):(null===b&&(b=S),++x);return x>d&&(g=b,d=x),g}(h),d=0;d<8;d++)x&&0===h[d]||(x&&(x=!1),b===d?(g+=d?":":"::",x=!0):(g+=h[d].toString(16),d<7&&(g+=":")));return"["+g+"]"}return h},ha={},pa=bi({},ha,{" ":1,'"':1,"<":1,">":1,"`":1}),ya=bi({},pa,{"#":1,"?":1,"{":1,"}":1}),va=bi({},ya,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(h,g){var d=Gi(h,0);return d>32&&d<127&&!has$3(g,h)?h:encodeURIComponent(h)},ga={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(h){return has$3(ga,h.scheme)},includesCredentials=function(h){return""!=h.username||""!=h.password},cannotHaveUsernamePasswordPort=function(h){return!h.host||h.cannotBeABaseURL||"file"==h.scheme},isWindowsDriveLetter=function(h,g){var d;return 2==h.length&&ea.test(h.charAt(0))&&(":"==(d=h.charAt(1))||!g&&"|"==d)},startsWithWindowsDriveLetter=function(h){var g;return h.length>1&&isWindowsDriveLetter(h.slice(0,2))&&(2==h.length||"/"===(g=h.charAt(2))||"\\"===g||"?"===g||"#"===g)},shortenURLsPath=function(h){var g=h.path,d=g.length;!d||"file"==h.scheme&&1==d&&isWindowsDriveLetter(g[0],!0)||g.pop()},isSingleDot=function(h){return"."===h||"%2e"===h.toLowerCase()},da={},ma={},ba={},xa={},Sa={},_a={},wa={},Ca={},Ea={},Pa={},ka={},Oa={},Aa={},Ta={},Ra={},Ma={},Na={},Ia={},La={},Da={},$a={},parseURL=function(h,g,d,b){var x,S,_,w,C,E=d||da,P=0,k="",A=!1,R=!1,M=!1;for(d||(h.scheme="",h.username="",h.password="",h.host=null,h.port=null,h.path=[],h.query=null,h.fragment=null,h.cannotBeABaseURL=!1,g=g.replace(la,"")),g=g.replace(fa,""),x=xi(g);P<=x.length;){switch(S=x[P],E){case da:if(!S||!ea.test(S)){if(d)return Ki;E=ba;continue}k+=S.toLowerCase(),E=ma;break;case ma:if(S&&(ra.test(S)||"+"==S||"-"==S||"."==S))k+=S.toLowerCase();else{if(":"!=S){if(d)return Ki;k="",E=ba,P=0;continue}if(d&&(isSpecial(h)!=has$3(ga,k)||"file"==k&&(includesCredentials(h)||null!==h.port)||"file"==h.scheme&&!h.host))return;if(h.scheme=k,d)return void(isSpecial(h)&&ga[h.scheme]==h.port&&(h.port=null));k="","file"==h.scheme?E=Ta:isSpecial(h)&&b&&b.scheme==h.scheme?E=xa:isSpecial(h)?E=Ca:"/"==x[P+1]?(E=Sa,P++):(h.cannotBeABaseURL=!0,h.path.push(""),E=La)}break;case ba:if(!b||b.cannotBeABaseURL&&"#"!=S)return Ki;if(b.cannotBeABaseURL&&"#"==S){h.scheme=b.scheme,h.path=b.path.slice(),h.query=b.query,h.fragment="",h.cannotBeABaseURL=!0,E=$a;break}E="file"==b.scheme?Ta:_a;continue;case xa:if("/"!=S||"/"!=x[P+1]){E=_a;continue}E=Ea,P++;break;case Sa:if("/"==S){E=Pa;break}E=Ia;continue;case _a:if(h.scheme=b.scheme,S==Ui)h.username=b.username,h.password=b.password,h.host=b.host,h.port=b.port,h.path=b.path.slice(),h.query=b.query;else if("/"==S||"\\"==S&&isSpecial(h))E=wa;else if("?"==S)h.username=b.username,h.password=b.password,h.host=b.host,h.port=b.port,h.path=b.path.slice(),h.query="",E=Da;else{if("#"!=S){h.username=b.username,h.password=b.password,h.host=b.host,h.port=b.port,h.path=b.path.slice(),h.path.pop(),E=Ia;continue}h.username=b.username,h.password=b.password,h.host=b.host,h.port=b.port,h.path=b.path.slice(),h.query=b.query,h.fragment="",E=$a}break;case wa:if(!isSpecial(h)||"/"!=S&&"\\"!=S){if("/"!=S){h.username=b.username,h.password=b.password,h.host=b.host,h.port=b.port,E=Ia;continue}E=Pa}else E=Ea;break;case Ca:if(E=Ea,"/"!=S||"/"!=k.charAt(P+1))continue;P++;break;case Ea:if("/"!=S&&"\\"!=S){E=Pa;continue}break;case Pa:if("@"==S){A&&(k="%40"+k),A=!0,_=xi(k);for(var N=0;N<_.length;N++){var L=_[N];if(":"!=L||M){var D=percentEncode(L,va);M?h.password+=D:h.username+=D}else M=!0}k=""}else if(S==Ui||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(A&&""==k)return"Invalid authority";P-=xi(k).length+1,k="",E=ka}else k+=S;break;case ka:case Oa:if(d&&"file"==h.scheme){E=Ma;continue}if(":"!=S||R){if(S==Ui||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)){if(isSpecial(h)&&""==k)return Ji;if(d&&""==k&&(includesCredentials(h)||null!==h.port))return;if(w=parseHost(h,k))return w;if(k="",E=Na,d)return;continue}"["==S?R=!0:"]"==S&&(R=!1),k+=S}else{if(""==k)return Ji;if(w=parseHost(h,k))return w;if(k="",E=Aa,d==Oa)return}break;case Aa:if(!na.test(S)){if(S==Ui||"/"==S||"?"==S||"#"==S||"\\"==S&&isSpecial(h)||d){if(""!=k){var $=parseInt(k,10);if($>65535)return ta;h.port=isSpecial(h)&&$===ga[h.scheme]?null:$,k=""}if(d)return;E=Na;continue}return ta}k+=S;break;case Ta:if(h.scheme="file","/"==S||"\\"==S)E=Ra;else{if(!b||"file"!=b.scheme){E=Ia;continue}if(S==Ui)h.host=b.host,h.path=b.path.slice(),h.query=b.query;else if("?"==S)h.host=b.host,h.path=b.path.slice(),h.query="",E=Da;else{if("#"!=S){startsWithWindowsDriveLetter(x.slice(P).join(""))||(h.host=b.host,h.path=b.path.slice(),shortenURLsPath(h)),E=Ia;continue}h.host=b.host,h.path=b.path.slice(),h.query=b.query,h.fragment="",E=$a}}break;case Ra:if("/"==S||"\\"==S){E=Ma;break}b&&"file"==b.scheme&&!startsWithWindowsDriveLetter(x.slice(P).join(""))&&(isWindowsDriveLetter(b.path[0],!0)?h.path.push(b.path[0]):h.host=b.host),E=Ia;continue;case Ma:if(S==Ui||"/"==S||"\\"==S||"?"==S||"#"==S){if(!d&&isWindowsDriveLetter(k))E=Ia;else if(""==k){if(h.host="",d)return;E=Na}else{if(w=parseHost(h,k))return w;if("localhost"==h.host&&(h.host=""),d)return;k="",E=Na}continue}k+=S;break;case Na:if(isSpecial(h)){if(E=Ia,"/"!=S&&"\\"!=S)continue}else if(d||"?"!=S)if(d||"#"!=S){if(S!=Ui&&(E=Ia,"/"!=S))continue}else h.fragment="",E=$a;else h.query="",E=Da;break;case Ia:if(S==Ui||"/"==S||"\\"==S&&isSpecial(h)||!d&&("?"==S||"#"==S)){if(".."===(C=(C=k).toLowerCase())||"%2e."===C||".%2e"===C||"%2e%2e"===C?(shortenURLsPath(h),"/"==S||"\\"==S&&isSpecial(h)||h.path.push("")):isSingleDot(k)?"/"==S||"\\"==S&&isSpecial(h)||h.path.push(""):("file"==h.scheme&&!h.path.length&&isWindowsDriveLetter(k)&&(h.host&&(h.host=""),k=k.charAt(0)+":"),h.path.push(k)),k="","file"==h.scheme&&(S==Ui||"?"==S||"#"==S))for(;h.path.length>1&&""===h.path[0];)h.path.shift();"?"==S?(h.query="",E=Da):"#"==S&&(h.fragment="",E=$a)}else k+=percentEncode(S,ya);break;case La:"?"==S?(h.query="",E=Da):"#"==S?(h.fragment="",E=$a):S!=Ui&&(h.path[0]+=percentEncode(S,ha));break;case Da:d||"#"!=S?S!=Ui&&("'"==S&&isSpecial(h)?h.query+="%27":h.query+="#"==S?"%23":percentEncode(S,ha)):(h.fragment="",E=$a);break;case $a:S!=Ui&&(h.fragment+=percentEncode(S,pa))}P++}},Va=function URL(h){var g,d,b=anInstance$1(this,Va,"URL"),S=arguments.length>1?arguments[1]:void 0,_=String(h),w=Yi(b,{type:"URL"});if(void 0!==S)if(S instanceof Va)g=Wi(S);else if(d=parseURL(g={},String(S)))throw TypeError(d);if(d=parseURL(w,_,null,g))throw TypeError(d);var C=w.searchParams=new qi,E=Xi(C);E.updateSearchParams(w.query),E.updateURL=function(){w.query=String(C)||null},x||(b.href=serializeURL.call(b),b.origin=getOrigin.call(b),b.protocol=getProtocol.call(b),b.username=getUsername.call(b),b.password=getPassword.call(b),b.host=getHost.call(b),b.hostname=getHostname.call(b),b.port=getPort.call(b),b.pathname=getPathname.call(b),b.search=getSearch.call(b),b.searchParams=getSearchParams.call(b),b.hash=getHash.call(b))},ja=Va.prototype,serializeURL=function(){var h=Wi(this),g=h.scheme,d=h.username,b=h.password,x=h.host,S=h.port,_=h.path,w=h.query,C=h.fragment,E=g+":";return null!==x?(E+="//",includesCredentials(h)&&(E+=d+(b?":"+b:"")+"@"),E+=serializeHost(x),null!==S&&(E+=":"+S)):"file"==g&&(E+="//"),E+=h.cannotBeABaseURL?_[0]:_.length?"/"+_.join("/"):"",null!==w&&(E+="?"+w),null!==C&&(E+="#"+C),E},getOrigin=function(){var h=Wi(this),g=h.scheme,d=h.port;if("blob"==g)try{return new URL(g.path[0]).origin}catch(h){return"null"}return"file"!=g&&isSpecial(h)?g+"://"+serializeHost(h.host)+(null!==d?":"+d:""):"null"},getProtocol=function(){return Wi(this).scheme+":"},getUsername=function(){return Wi(this).username},getPassword=function(){return Wi(this).password},getHost=function(){var h=Wi(this),g=h.host,d=h.port;return null===g?"":null===d?serializeHost(g):serializeHost(g)+":"+d},getHostname=function(){var h=Wi(this).host;return null===h?"":serializeHost(h)},getPort=function(){var h=Wi(this).port;return null===h?"":String(h)},getPathname=function(){var h=Wi(this),g=h.path;return h.cannotBeABaseURL?g[0]:g.length?"/"+g.join("/"):""},getSearch=function(){var h=Wi(this).query;return h?"?"+h:""},getSearchParams=function(){return Wi(this).searchParams},getHash=function(){var h=Wi(this).fragment;return h?"#"+h:""},accessorDescriptor=function(h,g){return{get:h,set:g,configurable:!0,enumerable:!0}};if(x&&Ut(ja,{href:accessorDescriptor(serializeURL,(function(h){var g=Wi(this),d=String(h),b=parseURL(g,d);if(b)throw TypeError(b);Xi(g.searchParams).updateSearchParams(g.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(h){var g=Wi(this);parseURL(g,String(h)+":",da)})),username:accessorDescriptor(getUsername,(function(h){var g=Wi(this),d=xi(String(h));if(!cannotHaveUsernamePasswordPort(g)){g.username="";for(var b=0;b<d.length;b++)g.username+=percentEncode(d[b],va)}})),password:accessorDescriptor(getPassword,(function(h){var g=Wi(this),d=xi(String(h));if(!cannotHaveUsernamePasswordPort(g)){g.password="";for(var b=0;b<d.length;b++)g.password+=percentEncode(d[b],va)}})),host:accessorDescriptor(getHost,(function(h){var g=Wi(this);g.cannotBeABaseURL||parseURL(g,String(h),ka)})),hostname:accessorDescriptor(getHostname,(function(h){var g=Wi(this);g.cannotBeABaseURL||parseURL(g,String(h),Oa)})),port:accessorDescriptor(getPort,(function(h){var g=Wi(this);cannotHaveUsernamePasswordPort(g)||(""==(h=String(h))?g.port=null:parseURL(g,h,Aa))})),pathname:accessorDescriptor(getPathname,(function(h){var g=Wi(this);g.cannotBeABaseURL||(g.path=[],parseURL(g,h+"",Na))})),search:accessorDescriptor(getSearch,(function(h){var g=Wi(this);""==(h=String(h))?g.query=null:("?"==h.charAt(0)&&(h=h.slice(1)),g.query="",parseURL(g,h,Da)),Xi(g.searchParams).updateSearchParams(g.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(h){var g=Wi(this);""!=(h=String(h))?("#"==h.charAt(0)&&(h=h.slice(1)),g.fragment="",parseURL(g,h,$a)):g.fragment=null}))}),lt(ja,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),lt(ja,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),Hi){var Fa=Hi.createObjectURL,Ba=Hi.revokeObjectURL;Fa&&lt(Va,"createObjectURL",(function createObjectURL(h){return Fa.apply(Hi,arguments)})),Ba&&lt(Va,"revokeObjectURL",(function revokeObjectURL(h){return Ba.apply(Hi,arguments)}))}function RE(h,g){return RegExp(h,g)}setToStringTag$1(Va,"URL"),_export$1({global:!0,forced:!gi,sham:!x},{URL:Va});var Ua={UNSUPPORTED_Y:fails$1((function(){var h=RE("a","y");return h.lastIndex=2,null!=h.exec("abcd")})),BROKEN_CARET:fails$1((function(){var h=RE("^r","gy");return h.lastIndex=2,null!=h.exec("str")}))},za=RegExp.prototype.exec,Ga=String.prototype.replace,Ha=za,qa=function(){var h=/a/,g=/b*/g;return za.call(h,"a"),za.call(g,"a"),0!==h.lastIndex||0!==g.lastIndex}(),Xa=Ua.UNSUPPORTED_Y||Ua.BROKEN_CARET,Ya=void 0!==/()??/.exec("")[1];(qa||Ya||Xa)&&(Ha=function exec(h){var g,d,b,x,S=this,_=Xa&&S.sticky,w=regexpFlags.call(S),C=S.source,E=0,P=h;return _&&(-1===(w=w.replace("y","")).indexOf("g")&&(w+="g"),P=String(h).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h[S.lastIndex-1])&&(C="(?: "+C+")",P=" "+P,E++),d=new RegExp("^(?:"+C+")",w)),Ya&&(d=new RegExp("^"+C+"$(?!\\s)",w)),qa&&(g=S.lastIndex),b=za.call(_?d:S,P),_?b?(b.input=b.input.slice(E),b[0]=b[0].slice(E),b.index=S.lastIndex,S.lastIndex+=b[0].length):S.lastIndex=0:qa&&b&&(S.lastIndex=S.global?b.index+b[0].length:g),Ya&&b&&b.length>1&&Ga.call(b[0],d,(function(){for(x=1;x<arguments.length-2;x++)void 0===arguments[x]&&(b[x]=void 0)})),b});var Wa=Ha;_export$1({target:"RegExp",proto:!0,forced:/./.exec!==Wa},{exec:Wa});var Qa=wellKnownSymbol$1("species"),Za=!fails$1((function(){var h=/./;return h.exec=function(){var h=[];return h.groups={a:"7"},h},"7"!=="".replace(h,"$<a>")})),Ka="$0"==="a".replace(/./,"$0"),Ja=wellKnownSymbol$1("replace"),to=!!/./[Ja]&&""===/./[Ja]("a","$0"),eo=!fails$1((function(){var h=/(?:)/,g=h.exec;h.exec=function(){return g.apply(this,arguments)};var d="ab".split(h);return 2!==d.length||"a"!==d[0]||"b"!==d[1]})),fixRegexpWellKnownSymbolLogic=function(h,g,d,b){var x=wellKnownSymbol$1(h),S=!fails$1((function(){var g={};return g[x]=function(){return 7},7!=""[h](g)})),_=S&&!fails$1((function(){var g=!1,d=/a/;return"split"===h&&((d={}).constructor={},d.constructor[Qa]=function(){return d},d.flags="",d[x]=/./[x]),d.exec=function(){return g=!0,null},d[x](""),!g}));if(!S||!_||"replace"===h&&(!Za||!Ka||to)||"split"===h&&!eo){var w=/./[x],C=d(x,""[h],(function(h,g,d,b,x){return g.exec===Wa?S&&!x?{done:!0,value:w.call(g,d,b)}:{done:!0,value:h.call(d,g,b)}:{done:!1}}),{REPLACE_KEEPS_$0:Ka,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:to}),E=C[0],P=C[1];lt(String.prototype,h,E),lt(RegExp.prototype,x,2==g?function(h,g){return P.call(h,this,g)}:function(h){return P.call(h,this)})}b&&V(RegExp.prototype[x],"sham",!0)},ro=Ke.charAt,advanceStringIndex=function(h,g,d){return g+(d?ro(h,g).length:1)},no=Math.floor,io="".replace,ao=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,oo=/\$([$&'`]|\d{1,2})/g,getSubstitution=function(h,g,d,b,x,S){var _=d+h.length,w=b.length,C=oo;return void 0!==x&&(x=toObject$1(x),C=ao),io.call(S,C,(function(S,C){var E;switch(C.charAt(0)){case"$":return"$";case"&":return h;case"`":return g.slice(0,d);case"'":return g.slice(_);case"<":E=x[C.slice(1,-1)];break;default:var P=+C;if(0===P)return S;if(P>w){var k=no(P/10);return 0===k?S:k<=w?void 0===b[k-1]?C.charAt(1):b[k-1]+C.charAt(1):S}E=b[P-1]}return void 0===E?"":E}))},regexpExecAbstract=function(h,g){var d=h.exec;if("function"==typeof d){var b=d.call(h,g);if("object"!=typeof b)throw TypeError("RegExp exec method returned something other than an Object or null");return b}if("RegExp"!==classofRaw$1(h))throw TypeError("RegExp#exec called on incompatible receiver");return Wa.call(h,g)},so=Math.max,uo=Math.min;fixRegexpWellKnownSymbolLogic("replace",2,(function(h,g,d,b){var x=b.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,S=b.REPLACE_KEEPS_$0,_=x?"$":"$0";return[function replace(d,b){var x=requireObjectCoercible$1(this),S=null==d?void 0:d[h];return void 0!==S?S.call(d,x,b):g.call(String(x),d,b)},function(h,b){if(!x&&S||"string"==typeof b&&-1===b.indexOf(_)){var w=d(g,h,this,b);if(w.done)return w.value}var C=anObject$1(h),E=String(this),P="function"==typeof b;P||(b=String(b));var k=C.global;if(k){var A=C.unicode;C.lastIndex=0}for(var R=[];;){var M=regexpExecAbstract(C,E);if(null===M)break;if(R.push(M),!k)break;""===String(M[0])&&(C.lastIndex=advanceStringIndex(E,toLength$1(C.lastIndex),A))}for(var N,L="",D=0,$=0;$<R.length;$++){M=R[$];for(var V=String(M[0]),j=so(uo(toInteger$1(M.index),E.length),0),B=[],U=1;U<M.length;U++)B.push(void 0===(N=M[U])?N:String(N));var z=M.groups;if(P){var G=[V].concat(B,j,E);void 0!==z&&G.push(z);var q=String(b.apply(void 0,G))}else q=getSubstitution(V,E,j,B,z,b);j>=D&&(L+=E.slice(D,j)+q,D=j+V.length)}return L+E.slice(D)}]}));var co=wellKnownSymbol$1("isConcatSpreadable"),lo=9007199254740991,fo="Maximum allowed index exceeded",ho=$t>=51||!fails$1((function(){var h=[];return h[co]=!1,h.concat()[0]!==h})),po=arrayMethodHasSpeciesSupport$1("concat"),isConcatSpreadable$1=function(h){if(!isObject$1(h))return!1;var g=h[co];return void 0!==g?!!g:Ft(h)};_export$1({target:"Array",proto:!0,forced:!ho||!po},{concat:function concat(h){var g,d,b,x,S,_=toObject$1(this),w=arraySpeciesCreate$1(_,0),C=0;for(g=-1,b=arguments.length;g<b;g++)if(isConcatSpreadable$1(S=-1===g?_:arguments[g])){if(C+(x=toLength$1(S.length))>lo)throw TypeError(fo);for(d=0;d<x;d++,C++)d in S&&createProperty$1(w,C,S[d])}else{if(C>=lo)throw TypeError(fo);createProperty$1(w,C++,S)}return w.length=C,w}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,g,d){return[function match(g){var d=requireObjectCoercible$1(this),b=null==g?void 0:g[h];return void 0!==b?b.call(g,d):new RegExp(g)[h](String(d))},function(h){var b=d(g,h,this);if(b.done)return b.value;var x=anObject$1(h),S=String(this);if(!x.global)return regexpExecAbstract(x,S);var _=x.unicode;x.lastIndex=0;for(var w,C=[],E=0;null!==(w=regexpExecAbstract(x,S));){var P=String(w[0]);C[E]=P,""===P&&(x.lastIndex=advanceStringIndex(S,toLength$1(x.lastIndex),_)),E++}return 0===E?null:C}]}));var yo=[].join,vo=P!=Object,go=arrayMethodIsStrict$1("join",",");_export$1({target:"Array",proto:!0,forced:vo||!go},{join:function join(h){return yo.call(toIndexedObject$1(this),void 0===h?",":h)}});var mo=wellKnownSymbol$1("match"),isRegexp$1=function(h){var g;return isObject$1(h)&&(void 0!==(g=h[mo])?!!g:"RegExp"==classofRaw$1(h))},bo=[].push,xo=Math.min,So=4294967295,_o=!fails$1((function(){return!RegExp(So,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(h,g,d){var b;return b="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(h,d){var b=String(requireObjectCoercible$1(this)),x=void 0===d?So:d>>>0;if(0===x)return[];if(void 0===h)return[b];if(!isRegexp$1(h))return g.call(b,h,x);for(var S,_,w,C=[],E=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),P=0,k=new RegExp(h.source,E+"g");(S=Wa.call(k,b))&&!((_=k.lastIndex)>P&&(C.push(b.slice(P,S.index)),S.length>1&&S.index<b.length&&bo.apply(C,S.slice(1)),w=S[0].length,P=_,C.length>=x));)k.lastIndex===S.index&&k.lastIndex++;return P===b.length?!w&&k.test("")||C.push(""):C.push(b.slice(P)),C.length>x?C.slice(0,x):C}:"0".split(void 0,0).length?function(h,d){return void 0===h&&0===d?[]:g.call(this,h,d)}:g,[function split(g,d){var x=requireObjectCoercible$1(this),S=null==g?void 0:g[h];return void 0!==S?S.call(g,x,d):b.call(String(x),g,d)},function(h,x){var S=d(b,h,this,x,b!==g);if(S.done)return S.value;var _=anObject$1(h),w=String(this),C=speciesConstructor$1(_,RegExp),E=_.unicode,P=(_.ignoreCase?"i":"")+(_.multiline?"m":"")+(_.unicode?"u":"")+(_o?"y":"g"),k=new C(_o?_:"^(?:"+_.source+")",P),A=void 0===x?So:x>>>0;if(0===A)return[];if(0===w.length)return null===regexpExecAbstract(k,w)?[w]:[];for(var R=0,M=0,N=[];M<w.length;){k.lastIndex=_o?M:0;var L,D=regexpExecAbstract(k,_o?w:w.slice(M));if(null===D||(L=xo(toLength$1(k.lastIndex+(_o?0:M)),w.length))===R)M=advanceStringIndex(w,M,E);else{if(N.push(w.slice(R,M)),N.length===A)return N;for(var $=1;$<=D.length-1;$++)if(N.push(D[$]),N.length===A)return N;M=R=L}}return N.push(w.slice(R)),N}]}),!_o);var inheritIfRequired=function(h,g,d){var b,x;return ur&&"function"==typeof(b=g.constructor)&&b!==d&&isObject$1(x=b.prototype)&&x!==d.prototype&&ur(h,x),h},wo="\t\n\v\f\r    \u2028\u2029\ufeff",Co="["+wo+"]",Eo=RegExp("^"+Co+Co+"*"),Po=RegExp(Co+Co+"*$"),createMethod$6=function(h){return function(g){var d=String(requireObjectCoercible$1(g));return 1&h&&(d=d.replace(Eo,"")),2&h&&(d=d.replace(Po,"")),d}},ko={start:createMethod$6(1),end:createMethod$6(2),trim:createMethod$6(3)},Oo=St.f,Ao=L.f,To=$.f,Ro=ko.trim,Mo="Number",No=b.Number,Io=No.prototype,Lo=classofRaw$1(Ht(Io))==Mo,toNumber=function(h){var g,d,b,x,S,_,w,C,E=toPrimitive$1(h,!1);if("string"==typeof E&&E.length>2)if(43===(g=(E=Ro(E)).charCodeAt(0))||45===g){if(88===(d=E.charCodeAt(2))||120===d)return NaN}else if(48===g){switch(E.charCodeAt(1)){case 66:case 98:b=2,x=49;break;case 79:case 111:b=8,x=55;break;default:return+E}for(_=(S=E.slice(2)).length,w=0;w<_;w++)if((C=S.charCodeAt(w))<48||C>x)return NaN;return parseInt(S,b)}return+E};if(At(Mo,!No(" 0o1")||!No("0b1")||No("+0x1"))){for(var Do,$o=function Number(h){var g=arguments.length<1?0:h,d=this;return d instanceof $o&&(Lo?fails$1((function(){Io.valueOf.call(d)})):classofRaw$1(d)!=Mo)?inheritIfRequired(new No(toNumber(g)),d,$o):toNumber(g)},Vo=x?Oo(No):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),jo=0;Vo.length>jo;jo++)has$3(No,Do=Vo[jo])&&!has$3($o,Do)&&To($o,Do,Ao(No,Do));$o.prototype=Io,Io.constructor=$o,lt(b,Mo,$o)}_export$1({target:"Array",proto:!0},{fill:function fill(h){for(var g=toObject$1(this),d=toLength$1(g.length),b=arguments.length,x=toAbsoluteIndex$1(b>1?arguments[1]:void 0,d),S=b>2?arguments[2]:void 0,_=void 0===S?d:toAbsoluteIndex$1(S,d);_>x;)g[x++]=h;return g}}),addToUnscopables("fill");var Fo=!fails$1((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bo=createCommonjsModule((function(h){var g=$.f,d=uid$1("meta"),b=0,x=Object.isExtensible||function(){return!0},setMetadata=function(h){g(h,d,{value:{objectID:"O"+ ++b,weakData:{}}})},S=h.exports={REQUIRED:!1,fastKey:function(h,g){if(!isObject$1(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has$3(h,d)){if(!x(h))return"F";if(!g)return"E";setMetadata(h)}return h[d].objectID},getWeakData:function(h,g){if(!has$3(h,d)){if(!x(h))return!0;if(!g)return!1;setMetadata(h)}return h[d].weakData},onFreeze:function(h){return Fo&&S.REQUIRED&&x(h)&&!has$3(h,d)&&setMetadata(h),h}};tt[d]=!0})),Uo=Bo.onFreeze,zo=Object.freeze,Go=fails$1((function(){zo(1)}));_export$1({target:"Object",stat:!0,forced:Go,sham:!Fo},{freeze:function freeze(h){return zo&&isObject$1(h)?zo(Uo(h)):h}});var Ho,notARegexp$1=function(h){if(isRegexp$1(h))throw TypeError("The method doesn't accept regular expressions");return h},qo=wellKnownSymbol$1("match"),correctIsRegexpLogic$1=function(h){var g=/./;try{"/./"[h](g)}catch(d){try{return g[qo]=!1,"/./"[h](g)}catch(h){}}return!1},Xo=L.f,Yo="".startsWith,Wo=Math.min,Qo=correctIsRegexpLogic$1("startsWith"),Zo=!(Qo||(Ho=Xo(String.prototype,"startsWith"),!Ho||Ho.writable));_export$1({target:"String",proto:!0,forced:!Zo&&!Qo},{startsWith:function startsWith(h){var g=String(requireObjectCoercible$1(this));notARegexp$1(h);var d=toLength$1(Wo(arguments.length>1?arguments[1]:void 0,g.length)),b=String(h);return Yo?Yo.call(g,b,d):g.slice(d,d+b.length)===b}}),_export$1({global:!0},{globalThis:b});var Ko=function check(h){return h&&h.Math==Math&&h},Jo=Ko("object"==("undefined"==typeof globalThis?"undefined":_typeof$2(globalThis))&&globalThis)||Ko("object"==("undefined"==typeof window?"undefined":_typeof$2(window))&&window)||Ko("object"==("undefined"==typeof self?"undefined":_typeof$2(self))&&self)||Ko("object"==_typeof$2(d)&&d)||function(){return this}()||Function("return this")(),ts=L.f,es=fails$1((function(){ts(1)}));_export$1({target:"Object",stat:!0,forced:!x||es,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return ts(toIndexedObject$1(h),g)}});var rs,ns,is=function fails(h){try{return!!h()}catch(h){return!0}},as=!is((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),os={}.propertyIsEnumerable,ss=Object.getOwnPropertyDescriptor,us={f:ss&&!os.call({1:2},1)?function propertyIsEnumerable(h){var g=ss(this,h);return!!g&&g.enumerable}:os},cs=function createPropertyDescriptor(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},ls={}.toString,fs=function classofRaw(h){return ls.call(h).slice(8,-1)},hs="".split,ps=is((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==fs(h)?hs.call(h,""):Object(h)}:Object,ys=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},vs=function toIndexedObject(h){return ps(ys(h))},gs=function isObject(h){return"object"===_typeof$2(h)?null!==h:"function"==typeof h},ds=function toPrimitive(h,g){if(!gs(h))return h;var d,b;if(g&&"function"==typeof(d=h.toString)&&!gs(b=d.call(h)))return b;if("function"==typeof(d=h.valueOf)&&!gs(b=d.call(h)))return b;if(!g&&"function"==typeof(d=h.toString)&&!gs(b=d.call(h)))return b;throw TypeError("Can't convert object to primitive value")},ms={}.hasOwnProperty,bs=function has(h,g){return ms.call(h,g)},xs=Jo.document,Ss=gs(xs)&&gs(xs.createElement),_s=function documentCreateElement(h){return Ss?xs.createElement(h):{}},ws=!as&&!is((function(){return 7!=Object.defineProperty(_s("div"),"a",{get:function get(){return 7}}).a})),Cs=Object.getOwnPropertyDescriptor,Es={f:as?Cs:function getOwnPropertyDescriptor(h,g){if(h=vs(h),g=ds(g,!0),ws)try{return Cs(h,g)}catch(h){}if(bs(h,g))return cs(!us.f.call(h,g),h[g])}},Ps=/#|\.prototype\./,ks=function isForced(h,g){var d=As[Os(h)];return d==Rs||d!=Ts&&("function"==typeof g?is(g):!!g)},Os=ks.normalize=function(h){return String(h).replace(Ps,".").toLowerCase()},As=ks.data={},Ts=ks.NATIVE="N",Rs=ks.POLYFILL="P",Ms=ks,Ns={},Is=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},Ls=function functionBindContext(h,g,d){if(Is(h),void 0===g)return h;switch(d){case 0:return function(){return h.call(g)};case 1:return function(d){return h.call(g,d)};case 2:return function(d,b){return h.call(g,d,b)};case 3:return function(d,b,x){return h.call(g,d,b,x)}}return function(){return h.apply(g,arguments)}},Ds=function anObject(h){if(!gs(h))throw TypeError(String(h)+" is not an object");return h},$s=Object.defineProperty,Vs={f:as?$s:function defineProperty(h,g,d){if(Ds(h),g=ds(g,!0),Ds(d),ws)try{return $s(h,g,d)}catch(h){}if("get"in d||"set"in d)throw TypeError("Accessors not supported");return"value"in d&&(h[g]=d.value),h}},js=as?function(h,g,d){return Vs.f(h,g,cs(1,d))}:function(h,g,d){return h[g]=d,h},Fs=Es.f,Bs=function wrapConstructor(h){var g=function Wrapper(g,d,b){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(g);case 2:return new h(g,d)}return new h(g,d,b)}return h.apply(this,arguments)};return g.prototype=h.prototype,g},Us=function _export(h,g){var d,b,x,S,_,w,C,E,P=h.target,k=h.global,A=h.stat,R=h.proto,M=k?Jo:A?Jo[P]:(Jo[P]||{}).prototype,N=k?Ns:Ns[P]||(Ns[P]={}),L=N.prototype;for(x in g)d=!Ms(k?x:P+(A?".":"#")+x,h.forced)&&M&&bs(M,x),_=N[x],d&&(w=h.noTargetGet?(E=Fs(M,x))&&E.value:M[x]),S=d&&w?w:g[x],d&&_typeof$2(_)===_typeof$2(S)||(C=h.bind&&d?Ls(S,Jo):h.wrap&&d?Bs(S):R&&"function"==typeof S?Ls(Function.call,S):S,(h.sham||S&&S.sham||_&&_.sham)&&js(C,"sham",!0),N[x]=C,R&&(bs(Ns,b=P+"Prototype")||js(Ns,b,{}),Ns[b][x]=S,h.real&&L&&!L[x]&&js(L,x,S)))},zs=Math.ceil,Gs=Math.floor,Hs=function toInteger(h){return isNaN(h=+h)?0:(h>0?Gs:zs)(h)},qs=Math.min,Xs=function toLength(h){return h>0?qs(Hs(h),9007199254740991):0},Ys="__core-js_shared__",Ws=Jo[Ys]||function setGlobal(h,g){try{js(Jo,h,g)}catch(d){Jo[h]=g}return g}(Ys,{}),Qs=createCommonjsModule((function(h){(h.exports=function(h,g){return Ws[h]||(Ws[h]=void 0!==g?g:{})})("versions",[]).push({version:"3.9.1",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Zs=0,Ks=Math.random(),Js=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Zs+Ks).toString(36)},tu="process"==fs(Jo.process),eu=function aFunction(h){return"function"==typeof h?h:void 0},ru=function getBuiltIn(h,g){return arguments.length<2?eu(Ns[h])||eu(Jo[h]):Ns[h]&&Ns[h][g]||Jo[h]&&Jo[h][g]},nu=ru("navigator","userAgent")||"",iu=Jo.process,au=iu&&iu.versions,ou=au&&au.v8;ou?ns=(rs=ou.split("."))[0]+rs[1]:nu&&(!(rs=nu.match(/Edge\/(\d+)/))||rs[1]>=74)&&(rs=nu.match(/Chrome\/(\d+)/))&&(ns=rs[1]);var su=ns&&+ns,uu=!!Object.getOwnPropertySymbols&&!is((function(){return!Symbol.sham&&(tu?38===su:su>37&&su<41)})),cu=uu&&!Symbol.sham&&"symbol"==_typeof$2(Symbol.iterator),lu=Qs("wks"),fu=Jo.Symbol,hu=cu?fu:fu&&fu.withoutSetter||Js,pu=function wellKnownSymbol(h){return bs(lu,h)&&(uu||"string"==typeof lu[h])||(uu&&bs(fu,h)?lu[h]=fu[h]:lu[h]=hu("Symbol."+h)),lu[h]},yu=pu("match"),vu=function notARegexp(h){if(function isRegexp(h){var g;return gs(h)&&(void 0!==(g=h[yu])?!!g:"RegExp"==fs(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},gu=pu("match"),du=function correctIsRegexpLogic(h){var g=/./;try{"/./"[h](g)}catch(d){try{return g[gu]=!1,"/./"[h](g)}catch(h){}}return!1},mu="".startsWith,bu=Math.min,xu=du("startsWith");Us({target:"String",proto:!0,forced:!xu},{startsWith:function startsWith(h){var g=String(ys(this));vu(h);var d=Xs(bu(arguments.length>1?arguments[1]:void 0,g.length)),b=String(h);return mu?mu.call(g,b,d):g.slice(d,d+b.length)===b}});var Su=function entryVirtual(h){return Ns[h+"Prototype"]},_u=Su("String").startsWith,wu=String.prototype,Cu=function startsWith_1(h){var g=h.startsWith;return"string"==typeof h||h===wu||h instanceof String&&g===wu.startsWith?_u:g},Eu=ko.trim,Pu=b.parseFloat,ku=1/Pu(wo+"-0")!=-1/0?function parseFloat(h){var g=Eu(String(h)),d=Pu(g);return 0===d&&"-"==g.charAt(0)?-0:d}:Pu;_export$1({global:!0,forced:parseFloat!=ku},{parseFloat:ku});var Ou=ko.trim;_export$1({target:"String",proto:!0,forced:function(h){return fails$1((function(){return!!wo[h]()||"…"!="…"[h]()||wo[h].name!==h}))}("trim")},{trim:function trim(){return Ou(this)}});var Au=$.f,Tu=St.f,Ru=ct.set,Mu=wellKnownSymbol$1("match"),Nu=b.RegExp,Iu=Nu.prototype,Lu=/a/g,Du=/a/g,$u=new Nu(Lu)!==Lu,Vu=Ua.UNSUPPORTED_Y;if(x&&At("RegExp",!$u||Vu||fails$1((function(){return Du[Mu]=!1,Nu(Lu)!=Lu||Nu(Du)==Du||"/a/i"!=Nu(Lu,"i")})))){for(var ju=function RegExp(h,g){var d,b=this instanceof ju,x=isRegexp$1(h),S=void 0===g;if(!b&&x&&h.constructor===ju&&S)return h;$u?x&&!S&&(h=h.source):h instanceof ju&&(S&&(g=regexpFlags.call(h)),h=h.source),Vu&&(d=!!g&&g.indexOf("y")>-1)&&(g=g.replace(/y/g,""));var _=inheritIfRequired($u?new Nu(h,g):Nu(h,g),b?this:Iu,ju);return Vu&&d&&Ru(_,{sticky:d}),_},proxy=function(h){h in ju||Au(ju,h,{configurable:!0,get:function(){return Nu[h]},set:function(g){Nu[h]=g}})},Fu=Tu(Nu),Bu=0;Fu.length>Bu;)proxy(Fu[Bu++]);Iu.constructor=ju,ju.prototype=Iu,lt(b,"RegExp",ju)}setSpecies$1("RegExp");var Uu="\t\n\v\f\r    \u2028\u2029\ufeff",zu="["+Uu+"]",Gu=RegExp("^"+zu+zu+"*"),Hu=RegExp(zu+zu+"*$"),qu=function createMethod(h){return function(g){var d=String(ys(g));return 1&h&&(d=d.replace(Gu,"")),2&h&&(d=d.replace(Hu,"")),d}},Xu={start:qu(1),end:qu(2),trim:qu(3)},Yu=Xu.trim,Wu=Jo.parseFloat,Qu=1/Wu(Uu+"-0")!=-1/0?function parseFloat(h){var g=Yu(String(h)),d=Wu(g);return 0===d&&"-"==g.charAt(0)?-0:d}:Wu;Us({global:!0,forced:parseFloat!=Qu},{parseFloat:Qu});var Zu=Ns.parseFloat,Ku=ae.map,Ju=arrayMethodHasSpeciesSupport$1("map");_export$1({target:"Array",proto:!0,forced:!Ju},{map:function map(h){return Ku(this,h,arguments.length>1?arguments[1]:void 0)}});var tc=function toObject(h){return Object(ys(h))},ec=Array.isArray||function isArray(h){return"Array"==fs(h)},rc=pu("species"),nc=function arraySpeciesCreate(h,g){var d;return ec(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!ec(d.prototype)?gs(d)&&null===(d=d[rc])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},ic=[].push,ac=function createMethod(h){var g=1==h,d=2==h,b=3==h,x=4==h,S=6==h,_=7==h,w=5==h||S;return function(C,E,P,k){for(var A,R,M=tc(C),N=ps(M),L=Ls(E,P,3),D=Xs(N.length),$=0,V=k||nc,j=g?V(C,D):d||_?V(C,0):void 0;D>$;$++)if((w||$ in N)&&(R=L(A=N[$],$,M),h))if(g)j[$]=R;else if(R)switch(h){case 3:return!0;case 5:return A;case 6:return $;case 2:ic.call(j,A)}else switch(h){case 4:return!1;case 7:ic.call(j,A)}return S?-1:b||x?x:j}},oc={forEach:ac(0),map:ac(1),filter:ac(2),some:ac(3),every:ac(4),find:ac(5),findIndex:ac(6),filterOut:ac(7)},sc=pu("species"),uc=function arrayMethodHasSpeciesSupport(h){return su>=51||!is((function(){var g=[];return(g.constructor={})[sc]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},cc=oc.map,lc=uc("map");Us({target:"Array",proto:!0,forced:!lc},{map:function map(h){return cc(this,h,arguments.length>1?arguments[1]:void 0)}});var fc=Su("Array").map,hc=Array.prototype,pc=function map_1(h){var g=h.map;return h===hc||h instanceof Array&&g===hc.map?fc:g};Us({target:"Array",stat:!0},{isArray:ec});var yc=Ns.Array.isArray,vc=yc;var gc=function createProperty(h,g,d){var b=ds(g);b in h?Vs.f(h,b,cs(0,d)):h[b]=d},dc=pu("isConcatSpreadable"),mc=9007199254740991,bc="Maximum allowed index exceeded",xc=su>=51||!is((function(){var h=[];return h[dc]=!1,h.concat()[0]!==h})),Sc=uc("concat"),_c=function isConcatSpreadable(h){if(!gs(h))return!1;var g=h[dc];return void 0!==g?!!g:ec(h)};Us({target:"Array",proto:!0,forced:!xc||!Sc},{concat:function concat(h){var g,d,b,x,S,_=tc(this),w=nc(_,0),C=0;for(g=-1,b=arguments.length;g<b;g++)if(_c(S=-1===g?_:arguments[g])){if(C+(x=Xs(S.length))>mc)throw TypeError(bc);for(d=0;d<x;d++,C++)d in S&&gc(w,C,S[d])}else{if(C>=mc)throw TypeError(bc);gc(w,C++,S)}return w.length=C,w}});var wc=fails$1((function(){Bt(1)}));_export$1({target:"Object",stat:!0,forced:wc},{keys:function keys(h){return Bt(toObject$1(h))}});var Cc=dt.indexOf,Ec=[].indexOf,Pc=!!Ec&&1/[1].indexOf(1,-0)<0,kc=arrayMethodIsStrict$1("indexOf");_export$1({target:"Array",proto:!0,forced:Pc||!kc},{indexOf:function indexOf(h){return Pc?Ec.apply(this,arguments)||0:Cc(this,h,arguments.length>1?arguments[1]:void 0)}});var Oc,Ac=Math.max,Tc=Math.min,Rc=function toAbsoluteIndex(h,g){var d=Hs(h);return d<0?Ac(d+g,0):Tc(d,g)},Mc=function createMethod(h){return function(g,d,b){var x,S=vs(g),_=Xs(S.length),w=Rc(b,_);if(h&&d!=d){for(;_>w;)if((x=S[w++])!=x)return!0}else for(;_>w;w++)if((h||w in S)&&S[w]===d)return h||w||0;return!h&&-1}},Nc={includes:Mc(!0),indexOf:Mc(!1)},Ic={},Lc=Nc.indexOf,Dc=function objectKeysInternal(h,g){var d,b=vs(h),x=0,S=[];for(d in b)!bs(Ic,d)&&bs(b,d)&&S.push(d);for(;g.length>x;)bs(b,d=g[x++])&&(~Lc(S,d)||S.push(d));return S},$c=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vc=Object.keys||function keys(h){return Dc(h,$c)},jc=as?Object.defineProperties:function defineProperties(h,g){Ds(h);for(var d,b=Vc(g),x=b.length,S=0;x>S;)Vs.f(h,d=b[S++],g[d]);return h},Fc=ru("document","documentElement"),Bc=Qs("keys"),Uc=function sharedKey(h){return Bc[h]||(Bc[h]=Js(h))},zc=Uc("IE_PROTO"),Gc=function EmptyConstructor(){},Hc=function scriptTag(h){return"<script>"+h+"</"+"script>"},qc=function NullProtoObject(){try{Oc=document.domain&&new ActiveXObject("htmlfile")}catch(h){}qc=Oc?function NullProtoObjectViaActiveX(h){h.write(Hc("")),h.close();var g=h.parentWindow.Object;return h=null,g}(Oc):function NullProtoObjectViaIFrame(){var h,g=_s("iframe");return g.style.display="none",Fc.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(Hc("document.F=Object")),h.close(),h.F}();for(var h=$c.length;h--;)delete qc.prototype[$c[h]];return qc()};Ic[zc]=!0;var Xc=Object.create||function create(h,g){var d;return null!==h?(Gc.prototype=Ds(h),d=new Gc,Gc.prototype=null,d[zc]=h):d=qc(),void 0===g?d:jc(d,g)},Yc=Wt.f,Wc=fails$1((function(){return!Object.getOwnPropertyNames(1)}));_export$1({target:"Object",stat:!0,forced:Wc},{getOwnPropertyNames:Yc});var Qc=$c.concat("length","prototype"),Zc={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return Dc(h,Qc)}},Kc=Zc.f,Jc={}.toString,tl="object"==("undefined"==typeof window?"undefined":_typeof$2(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],el={f:function getOwnPropertyNames(h){return tl&&"[object Window]"==Jc.call(h)?function getWindowNames(h){try{return Kc(h)}catch(h){return tl.slice()}}(h):Kc(vs(h))}},rl={f:Object.getOwnPropertySymbols},nl=function redefine(h,g,d,b){b&&b.enumerable?h[g]=d:js(h,g,d)},il={f:pu},al=Vs.f,ol=function defineWellKnownSymbol(h){var g=Ns.Symbol||(Ns.Symbol={});bs(g,h)||al(g,h,{value:il.f(h)})},sl={};sl[pu("toStringTag")]="z";var ul="[object z]"===String(sl),cl=pu("toStringTag"),ll="Arguments"==fs(function(){return arguments}()),fl=ul?fs:function(h){var g,d,b;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(d=function tryGet(h,g){try{return h[g]}catch(h){}}(g=Object(h),cl))?d:ll?fs(g):"Object"==(b=fs(g))&&"function"==typeof g.callee?"Arguments":b},hl=ul?{}.toString:function toString(){return"[object "+fl(this)+"]"},pl=Vs.f,yl=pu("toStringTag"),vl=function setToStringTag(h,g,d,b){if(h){var x=d?h:h.prototype;bs(x,yl)||pl(x,yl,{configurable:!0,value:g}),b&&!ul&&js(x,"toString",hl)}},gl=Bo.getWeakData,dl=ct.set,ml=ct.getterFor,bl=ae.find,xl=ae.findIndex,Sl=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,g){return bl(h.entries,(function(h){return h[0]===g}))};UncaughtFrozenStore.prototype={get:function(h){var g=findUncaughtFrozen(this,h);if(g)return g[1]},has:function(h){return!!findUncaughtFrozen(this,h)},set:function(h,g){var d=findUncaughtFrozen(this,h);d?d[1]=g:this.entries.push([h,g])},delete:function(h){var g=xl(this.entries,(function(g){return g[0]===h}));return~g&&this.entries.splice(g,1),!!~g}};var _l={getConstructor:function(h,g,d,b){var x=h((function(h,S){anInstance$1(h,x,g),dl(h,{type:g,id:Sl++,frozen:void 0}),null!=S&&iterate$1(S,h[b],{that:h,AS_ENTRIES:d})})),S=ml(g),define=function(h,g,d){var b=S(h),x=gl(anObject$1(g),!0);return!0===x?uncaughtFrozenStore(b).set(g,d):x[b.id]=d,h};return redefineAll$1(x.prototype,{delete:function(h){var g=S(this);if(!isObject$1(h))return!1;var d=gl(h);return!0===d?uncaughtFrozenStore(g).delete(h):d&&has$3(d,g.id)&&delete d[g.id]},has:function has(h){var g=S(this);if(!isObject$1(h))return!1;var d=gl(h);return!0===d?uncaughtFrozenStore(g).has(h):d&&has$3(d,g.id)}}),redefineAll$1(x.prototype,d?{get:function get(h){var g=S(this);if(isObject$1(h)){var d=gl(h);return!0===d?uncaughtFrozenStore(g).get(h):d?d[g.id]:void 0}},set:function set(h,g){return define(this,h,g)}}:{add:function add(h){return define(this,h,!0)}}),x}};createCommonjsModule((function(h){var g,d=ct.enforce,x=!b.ActiveXObject&&"ActiveXObject"in b,S=Object.isExtensible,wrapper=function(h){return function WeakMap(){return h(this,arguments.length?arguments[0]:void 0)}},_=h.exports=function(h,g,d){var x=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),_=x?"set":"add",w=b[h],C=w&&w.prototype,E=w,P={},fixMethod=function(h){var g=C[h];lt(C,h,"add"==h?function add(h){return g.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject$1(h))&&g.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject$1(h)?void 0:g.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject$1(h))&&g.call(this,0===h?0:h)}:function set(h,d){return g.call(this,0===h?0:h,d),this})};if(At(h,"function"!=typeof w||!(S||C.forEach&&!fails$1((function(){(new w).entries().next()})))))E=d.getConstructor(g,h,x,_),Bo.REQUIRED=!0;else if(At(h,!0)){var k=new E,A=k[_](S?{}:-0,1)!=k,R=fails$1((function(){k.has(1)})),M=checkCorrectnessOfIteration$1((function(h){new w(h)})),N=!S&&fails$1((function(){for(var h=new w,g=5;g--;)h[_](g,g);return!h.has(-0)}));M||((E=g((function(g,d){anInstance$1(g,E,h);var b=inheritIfRequired(new w,g,E);return null!=d&&iterate$1(d,b[_],{that:b,AS_ENTRIES:x}),b}))).prototype=C,C.constructor=E),(R||N)&&(fixMethod("delete"),fixMethod("has"),x&&fixMethod("get")),(N||A)&&fixMethod(_),S&&C.clear&&delete C.clear}return P[h]=E,_export$1({global:!0,forced:E!=w},P),setToStringTag$1(E,h),S||d.setStrong(E,h,x),E}("WeakMap",wrapper,_l);if(W&&x){g=_l.getConstructor(wrapper,"WeakMap",!0),Bo.REQUIRED=!0;var w=_.prototype,C=w.delete,E=w.has,P=w.get,k=w.set;redefineAll$1(w,{delete:function(h){if(isObject$1(h)&&!S(h)){var b=d(this);return b.frozen||(b.frozen=new g),C.call(this,h)||b.frozen.delete(h)}return C.call(this,h)},has:function has(h){if(isObject$1(h)&&!S(h)){var b=d(this);return b.frozen||(b.frozen=new g),E.call(this,h)||b.frozen.has(h)}return E.call(this,h)},get:function get(h){if(isObject$1(h)&&!S(h)){var b=d(this);return b.frozen||(b.frozen=new g),E.call(this,h)?P.call(this,h):b.frozen.get(h)}return P.call(this,h)},set:function set(h,b){if(isObject$1(h)&&!S(h)){var x=d(this);x.frozen||(x.frozen=new g),E.call(this,h)?k.call(this,h,b):x.frozen.set(h,b)}else k.call(this,h,b);return this}})}}));var wl=Function.toString;"function"!=typeof Ws.inspectSource&&(Ws.inspectSource=function(h){return wl.call(h)});var Cl,El,Pl,kl=Ws.inspectSource,Ol=Jo.WeakMap,Al="function"==typeof Ol&&/native code/.test(kl(Ol)),Tl=Jo.WeakMap;if(Al){var Rl=Ws.state||(Ws.state=new Tl),Ml=Rl.get,Nl=Rl.has,Il=Rl.set;Cl=function set(h,g){return g.facade=h,Il.call(Rl,h,g),g},El=function get(h){return Ml.call(Rl,h)||{}},Pl=function has(h){return Nl.call(Rl,h)}}else{var Ll=Uc("state");Ic[Ll]=!0,Cl=function set(h,g){return g.facade=h,js(h,Ll,g),g},El=function get(h){return bs(h,Ll)?h[Ll]:{}},Pl=function has(h){return bs(h,Ll)}}var Dl={set:Cl,get:El,has:Pl,enforce:function enforce(h){return Pl(h)?El(h):Cl(h,{})},getterFor:function getterFor(h){return function(g){var d;if(!gs(g)||(d=El(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},$l=oc.forEach,Vl=Uc("hidden"),jl="Symbol",Fl=pu("toPrimitive"),Bl=Dl.set,Ul=Dl.getterFor(jl),zl=Object.prototype,Gl=Jo.Symbol,Hl=ru("JSON","stringify"),ql=Es.f,Xl=Vs.f,Yl=el.f,Wl=us.f,Ql=Qs("symbols"),Zl=Qs("op-symbols"),Kl=Qs("string-to-symbol-registry"),Jl=Qs("symbol-to-string-registry"),tf=Qs("wks"),ef=Jo.QObject,rf=!ef||!ef.prototype||!ef.prototype.findChild,nf=as&&is((function(){return 7!=Xc(Xl({},"a",{get:function get(){return Xl(this,"a",{value:7}).a}})).a}))?function(h,g,d){var b=ql(zl,g);b&&delete zl[g],Xl(h,g,d),b&&h!==zl&&Xl(zl,g,b)}:Xl,af=function wrap(h,g){var d=Ql[h]=Xc(Gl.prototype);return Bl(d,{type:jl,tag:h,description:g}),as||(d.description=g),d},of=cu?function(h){return"symbol"==_typeof$2(h)}:function(h){return Object(h)instanceof Gl},sf=function defineProperty(h,g,d){h===zl&&sf(Zl,g,d),Ds(h);var b=ds(g,!0);return Ds(d),bs(Ql,b)?(d.enumerable?(bs(h,Vl)&&h[Vl][b]&&(h[Vl][b]=!1),d=Xc(d,{enumerable:cs(0,!1)})):(bs(h,Vl)||Xl(h,Vl,cs(1,{})),h[Vl][b]=!0),nf(h,b,d)):Xl(h,b,d)},uf=function defineProperties(h,g){Ds(h);var d=vs(g),b=Vc(d).concat(hf(d));return $l(b,(function(g){as&&!cf.call(d,g)||sf(h,g,d[g])})),h},cf=function propertyIsEnumerable(h){var g=ds(h,!0),d=Wl.call(this,g);return!(this===zl&&bs(Ql,g)&&!bs(Zl,g))&&(!(d||!bs(this,g)||!bs(Ql,g)||bs(this,Vl)&&this[Vl][g])||d)},lf=function getOwnPropertyDescriptor(h,g){var d=vs(h),b=ds(g,!0);if(d!==zl||!bs(Ql,b)||bs(Zl,b)){var x=ql(d,b);return!x||!bs(Ql,b)||bs(d,Vl)&&d[Vl][b]||(x.enumerable=!0),x}},ff=function getOwnPropertyNames(h){var g=Yl(vs(h)),d=[];return $l(g,(function(h){bs(Ql,h)||bs(Ic,h)||d.push(h)})),d},hf=function getOwnPropertySymbols(h){var g=h===zl,d=Yl(g?Zl:vs(h)),b=[];return $l(d,(function(h){!bs(Ql,h)||g&&!bs(zl,h)||b.push(Ql[h])})),b};if(uu||(nl((Gl=function _Symbol(){if(this instanceof Gl)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=Js(h),d=function setter(h){this===zl&&setter.call(Zl,h),bs(this,Vl)&&bs(this[Vl],g)&&(this[Vl][g]=!1),nf(this,g,cs(1,h))};return as&&rf&&nf(zl,g,{configurable:!0,set:d}),af(g,h)}).prototype,"toString",(function toString(){return Ul(this).tag})),nl(Gl,"withoutSetter",(function(h){return af(Js(h),h)})),us.f=cf,Vs.f=sf,Es.f=lf,Zc.f=el.f=ff,rl.f=hf,il.f=function(h){return af(pu(h),h)},as&&Xl(Gl.prototype,"description",{configurable:!0,get:function description(){return Ul(this).description}})),Us({global:!0,wrap:!0,forced:!uu,sham:!uu},{Symbol:Gl}),$l(Vc(tf),(function(h){ol(h)})),Us({target:jl,stat:!0,forced:!uu},{for:function _for(h){var g=String(h);if(bs(Kl,g))return Kl[g];var d=Gl(g);return Kl[g]=d,Jl[d]=g,d},keyFor:function keyFor(h){if(!of(h))throw TypeError(h+" is not a symbol");if(bs(Jl,h))return Jl[h]},useSetter:function useSetter(){rf=!0},useSimple:function useSimple(){rf=!1}}),Us({target:"Object",stat:!0,forced:!uu,sham:!as},{create:function create(h,g){return void 0===g?Xc(h):uf(Xc(h),g)},defineProperty:sf,defineProperties:uf,getOwnPropertyDescriptor:lf}),Us({target:"Object",stat:!0,forced:!uu},{getOwnPropertyNames:ff,getOwnPropertySymbols:hf}),Us({target:"Object",stat:!0,forced:is((function(){rl.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return rl.f(tc(h))}}),Hl){var pf=!uu||is((function(){var h=Gl();return"[null]"!=Hl([h])||"{}"!=Hl({a:h})||"{}"!=Hl(Object(h))}));Us({target:"JSON",stat:!0,forced:pf},{stringify:function stringify(h,g,d){for(var b,x=[h],S=1;arguments.length>S;)x.push(arguments[S++]);if(b=g,(gs(g)||void 0!==h)&&!of(h))return ec(g)||(g=function replacer(h,g){if("function"==typeof b&&(g=b.call(this,h,g)),!of(g))return g}),x[1]=g,Hl.apply(null,x)}})}Gl.prototype[Fl]||js(Gl.prototype,Fl,Gl.prototype.valueOf),vl(Gl,jl),Ic[Vl]=!0,ol("asyncIterator"),ol("hasInstance"),ol("isConcatSpreadable"),ol("iterator"),ol("match"),ol("matchAll"),ol("replace"),ol("search"),ol("species"),ol("split"),ol("toPrimitive"),ol("toStringTag"),ol("unscopables"),vl(Jo.JSON,"JSON",!0);var yf=Ns.Symbol;ol("asyncDispose"),ol("dispose"),ol("observable"),ol("patternMatch"),ol("replaceAll");var vf,gf,df,mf=yf,bf={},xf=!is((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Sf=Uc("IE_PROTO"),_f=Object.prototype,wf=xf?Object.getPrototypeOf:function(h){return h=tc(h),bs(h,Sf)?h[Sf]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?_f:null},Cf=pu("iterator"),Ef=!1;[].keys&&("next"in(df=[].keys())?(gf=wf(wf(df)))!==Object.prototype&&(vf=gf):Ef=!0);var Pf=null==vf||is((function(){var h={};return vf[Cf].call(h)!==h}));Pf&&(vf={}),Pf&&!bs(vf,Cf)&&js(vf,Cf,(function returnThis(){return this}));var kf={IteratorPrototype:vf,BUGGY_SAFARI_ITERATORS:Ef},Of=kf.IteratorPrototype,Af=function returnThis(){return this},Tf=Object.setPrototypeOf||("__proto__"in{}?function(){var h,g=!1,d={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(d,[]),g=d instanceof Array}catch(h){}return function setPrototypeOf(d,b){return Ds(d),function aPossiblePrototype(h){if(!gs(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(b),g?h.call(d,b):d.__proto__=b,d}}():void 0),Rf=kf.IteratorPrototype,Mf=kf.BUGGY_SAFARI_ITERATORS,Nf=pu("iterator"),If="keys",Lf="values",Df="entries",$f=function returnThis(){return this},Vf=function defineIterator(h,g,d,b,x,S,_){!function createIteratorConstructor(h,g,d){var b=g+" Iterator";h.prototype=Xc(Of,{next:cs(1,d)}),vl(h,b,!1,!0),bf[b]=Af}(d,g,b);var w,C,E,P=function getIterationMethod(h){if(h===x&&N)return N;if(!Mf&&h in R)return R[h];switch(h){case If:return function keys(){return new d(this,h)};case Lf:return function values(){return new d(this,h)};case Df:return function entries(){return new d(this,h)}}return function(){return new d(this)}},k=g+" Iterator",A=!1,R=h.prototype,M=R[Nf]||R["@@iterator"]||x&&R[x],N=!Mf&&M||P(x),L="Array"==g&&R.entries||M;if(L&&(w=wf(L.call(new h)),Rf!==Object.prototype&&w.next&&(vl(w,k,!0,!0),bf[k]=$f)),x==Lf&&M&&M.name!==Lf&&(A=!0,N=function values(){return M.call(this)}),_&&R[Nf]!==N&&js(R,Nf,N),bf[g]=N,x)if(C={values:P(Lf),keys:S?N:P(If),entries:P(Df)},_)for(E in C)(Mf||A||!(E in R))&&nl(R,E,C[E]);else Us({target:g,proto:!0,forced:Mf||A},C);return C},jf="Array Iterator",Ff=Dl.set,Bf=Dl.getterFor(jf);Vf(Array,"Array",(function(h,g){Ff(this,{type:jf,target:vs(h),index:0,kind:g})}),(function(){var h=Bf(this),g=h.target,d=h.kind,b=h.index++;return!g||b>=g.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==d?{value:b,done:!1}:"values"==d?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}}),"values"),bf.Arguments=bf.Array;var Uf=pu("toStringTag");for(var zf in{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}){var Gf=Jo[zf],Hf=Gf&&Gf.prototype;Hf&&fl(Hf)!==Uf&&js(Hf,Uf,zf),bf[zf]=bf.Array}var qf=function createMethod(h){return function(g,d){var b,x,S=String(ys(g)),_=Hs(d),w=S.length;return _<0||_>=w?h?"":void 0:(b=S.charCodeAt(_))<55296||b>56319||_+1===w||(x=S.charCodeAt(_+1))<56320||x>57343?h?S.charAt(_):b:h?S.slice(_,_+2):x-56320+(b-55296<<10)+65536}},Xf={codeAt:qf(!1),charAt:qf(!0)}.charAt,Yf="String Iterator",Wf=Dl.set,Qf=Dl.getterFor(Yf);Vf(String,"String",(function(h){Wf(this,{type:Yf,string:String(h),index:0})}),(function next(){var h,g=Qf(this),d=g.string,b=g.index;return b>=d.length?{value:void 0,done:!0}:(h=Xf(d,b),g.index+=h.length,{value:h,done:!1})}));var Zf=pu("iterator"),Kf=function isIterable(h){var g=Object(h);return void 0!==g[Zf]||"@@iterator"in g||bf.hasOwnProperty(fl(g))},Jf=pu("iterator"),th=function getIteratorMethod(h){if(null!=h)return h[Jf]||h["@@iterator"]||bf[fl(h)]},eh=function getIterator(h){var g=th(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return Ds(g.call(h))};var rh=uc("slice"),nh=pu("species"),ih=[].slice,ah=Math.max;Us({target:"Array",proto:!0,forced:!rh},{slice:function slice(h,g){var d,b,x,S=vs(this),_=Xs(S.length),w=Rc(h,_),C=Rc(void 0===g?_:g,_);if(ec(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!ec(d.prototype)?gs(d)&&null===(d=d[nh])&&(d=void 0):d=void 0,d===Array||void 0===d))return ih.call(S,w,C);for(b=new(void 0===d?Array:d)(ah(C-w,0)),x=0;w<C;w++,x++)w in S&&gc(b,x,S[w]);return b.length=x,b}});var oh=Su("Array").slice,sh=Array.prototype,uh=function slice_1(h){var g=h.slice;return h===sh||h instanceof Array&&g===sh.slice?oh:g},ch=uh,lh=!checkCorrectnessOfIteration$1((function(h){Array.from(h)}));_export$1({target:"Array",stat:!0,forced:lh},{from:xi});var fh=function iteratorClose(h){var g=h.return;if(void 0!==g)return Ds(g.call(h)).value},hh=function callWithSafeIterationClosing(h,g,d,b){try{return b?g(Ds(d)[0],d[1]):g(d)}catch(g){throw fh(h),g}},ph=pu("iterator"),yh=Array.prototype,vh=function isArrayIteratorMethod(h){return void 0!==h&&(bf.Array===h||yh[ph]===h)},gh=pu("iterator"),dh=!1;try{var mh=0,bh={next:function next(){return{done:!!mh++}},return:function _return(){dh=!0}};bh[gh]=function(){return this},Array.from(bh,(function(){throw 2}))}catch(h){}var xh=function checkCorrectnessOfIteration(h,g){if(!g&&!dh)return!1;var d=!1;try{var b={};b[gh]=function(){return{next:function next(){return{done:d=!0}}}},h(b)}catch(h){}return d},Sh=!xh((function(h){Array.from(h)}));Us({target:"Array",stat:!0,forced:Sh},{from:function from(h){var g,d,b,x,S,_,w=tc(h),C="function"==typeof this?this:Array,E=arguments.length,P=E>1?arguments[1]:void 0,k=void 0!==P,A=th(w),R=0;if(k&&(P=Ls(P,E>2?arguments[2]:void 0,2)),null==A||C==Array&&vh(A))for(d=new C(g=Xs(w.length));g>R;R++)_=k?P(w[R],R):w[R],gc(d,R,_);else for(S=(x=A.call(w)).next,d=new C;!(b=S.call(x)).done;R++)_=k?hh(x,P,[b.value,R],!0):b.value,gc(d,R,_);return d.length=R,d}});var _h=Ns.Array.from,wh=_h;function _arrayLikeToArray$2(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,b=new Array(g);d<g;d++)b[d]=h[d];return b}function _unsupportedIterableToArray$2(h,g){var d;if(h){if("string"==typeof h)return _arrayLikeToArray$2(h,g);var b=ch(d=Object.prototype.toString.call(h)).call(d,8,-1);return"Object"===b&&h.constructor&&(b=h.constructor.name),"Map"===b||"Set"===b?wh(h):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?_arrayLikeToArray$2(h,g):void 0}}function _slicedToArray(h,g){return function _arrayWithHoles(h){if(vc(h))return h}(h)||function _iterableToArrayLimit(h,g){if(void 0!==mf&&Kf(Object(h))){var d=[],b=!0,x=!1,S=void 0;try{for(var _,w=eh(h);!(b=(_=w.next()).done)&&(d.push(_.value),!g||d.length!==g);b=!0);}catch(h){x=!0,S=h}finally{try{b||null==w.return||w.return()}finally{if(x)throw S}}return d}}(h,g)||_unsupportedIterableToArray$2(h,g)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}Us({target:"Object",stat:!0,forced:!as,sham:!as},{defineProperty:Vs.f});var Ch=createCommonjsModule((function(h){var g=Ns.Object,d=h.exports=function defineProperty(h,d,b){return g.defineProperty(h,d,b)};g.defineProperty.sham&&(d.sham=!0)})),Eh=Ch;Us({target:"Object",stat:!0,forced:!as,sham:!as},{defineProperties:jc});var Ph=createCommonjsModule((function(h){var g=Ns.Object,d=h.exports=function defineProperties(h,d){return g.defineProperties(h,d)};g.defineProperties.sham&&(d.sham=!0)})),kh=ru("Reflect","ownKeys")||function ownKeys(h){var g=Zc.f(Ds(h)),d=rl.f;return d?g.concat(d(h)):g};Us({target:"Object",stat:!0,sham:!as},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var g,d,b=vs(h),x=Es.f,S=kh(b),_={},w=0;S.length>w;)void 0!==(d=x(b,g=S[w++]))&&gc(_,g,d);return _}});var Oh=Ns.Object.getOwnPropertyDescriptors,Ah=function arrayMethodIsStrict(h,g){var d=[][h];return!!d&&is((function(){d.call(null,g||function(){throw 1},1)}))},Th=oc.forEach,Rh=Ah("forEach")?[].forEach:function forEach(h){return Th(this,h,arguments.length>1?arguments[1]:void 0)};Us({target:"Array",proto:!0,forced:[].forEach!=Rh},{forEach:Rh});var Mh=Su("Array").forEach,Nh=Array.prototype,Ih={DOMTokenList:!0,NodeList:!0},Lh=function forEach_1(h){var g=h.forEach;return h===Nh||h instanceof Array&&g===Nh.forEach||Ih.hasOwnProperty(fl(h))?Mh:g},Dh=Es.f,$h=is((function(){Dh(1)}));Us({target:"Object",stat:!0,forced:!as||$h,sham:!as},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return Dh(vs(h),g)}});var Vh=createCommonjsModule((function(h){var g=Ns.Object,d=h.exports=function getOwnPropertyDescriptor(h,d){return g.getOwnPropertyDescriptor(h,d)};g.getOwnPropertyDescriptor.sham&&(d.sham=!0)})),jh=Vh,Fh=ae.filter,Bh=arrayMethodHasSpeciesSupport$1("filter");_export$1({target:"Array",proto:!0,forced:!Bh},{filter:function filter(h){return Fh(this,h,arguments.length>1?arguments[1]:void 0)}});var Uh=oc.filter,zh=uc("filter");Us({target:"Array",proto:!0,forced:!zh},{filter:function filter(h){return Uh(this,h,arguments.length>1?arguments[1]:void 0)}});var Gh=Su("Array").filter,Hh=Array.prototype,qh=function filter_1(h){var g=h.filter;return h===Hh||h instanceof Array&&g===Hh.filter?Gh:g},Xh=Ns.Object.getOwnPropertySymbols,Yh=is((function(){Vc(1)}));Us({target:"Object",stat:!0,forced:Yh},{keys:function keys(h){return Vc(tc(h))}});var Wh=Ns.Object.keys,Qh=yi,Zh=function Result(h,g){this.stopped=h,this.result=g},Kh=function iterate(h,g,d){var b,x,S,_,w,C,E,P=d&&d.that,k=!(!d||!d.AS_ENTRIES),A=!(!d||!d.IS_ITERATOR),R=!(!d||!d.INTERRUPTED),M=Ls(g,P,1+k+R),N=function stop(h){return b&&fh(b),new Zh(!0,h)},L=function callFn(h){return k?(Ds(h),R?M(h[0],h[1],N):M(h[0],h[1])):R?M(h,N):M(h)};if(A)b=h;else{if("function"!=typeof(x=th(h)))throw TypeError("Target is not iterable");if(vh(x)){for(S=0,_=Xs(h.length);_>S;S++)if((w=L(h[S]))&&w instanceof Zh)return w;return new Zh(!1)}b=x.call(h)}for(C=b.next;!(E=C.call(b)).done;){try{w=L(E.value)}catch(h){throw fh(b),h}if("object"==_typeof$2(w)&&w&&w instanceof Zh)return w}return new Zh(!1)},Jh=function AggregateError(h,g){var d=this;if(!(d instanceof Jh))return new Jh(h,g);Tf&&(d=Tf(new Error(void 0),wf(d))),void 0!==g&&js(d,"message",String(g));var b=[];return Kh(h,b.push,{that:b}),js(d,"errors",b),d};Jh.prototype=Xc(Error.prototype,{constructor:cs(5,Jh),message:cs(5,""),name:cs(5,"AggregateError")}),Us({global:!0},{AggregateError:Jh});var tp=!!Br&&fails$1((function(){Br.prototype.finally.call({then:function(){}},(function(){}))}));_export$1({target:"Promise",proto:!0,real:!0,forced:tp},{finally:function(h){var g=speciesConstructor$1(this,getBuiltIn$1("Promise")),d="function"==typeof h;return this.then(d?function(d){return promiseResolve$1(g,h()).then((function(){return d}))}:h,d?function(d){return promiseResolve$1(g,h()).then((function(){throw d}))}:h)}}),"function"!=typeof Br||Br.prototype.finally||lt(Br.prototype,"finally",getBuiltIn$1("Promise").prototype.finally);var ep=Jo.Promise,rp=function redefineAll(h,g,d){for(var b in g)d&&d.unsafe&&h[b]?h[b]=g[b]:nl(h,b,g[b],d);return h},np=pu("species"),ip=function setSpecies(h){var g=ru(h),d=Vs.f;as&&g&&!g[np]&&d(g,np,{configurable:!0,get:function get(){return this}})},ap=function anInstance(h,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},op=pu("species"),sp=function speciesConstructor(h,g){var d,b=Ds(h).constructor;return void 0===b||null==(d=Ds(b)[op])?g:Is(d)},up=!b.setImmediate||!b.clearImmediate;_export$1({global:!0,bind:!0,enumerable:!0,forced:up},{setImmediate:bn.set,clearImmediate:bn.clear});var cp,lp,fp,hp=/(iphone|ipod|ipad).*applewebkit/i.test(nu),pp=Jo.location,yp=Jo.setImmediate,vp=Jo.clearImmediate,gp=Jo.process,dp=Jo.MessageChannel,mp=Jo.Dispatch,bp=0,xp={},Sp="onreadystatechange",_p=function run(h){if(xp.hasOwnProperty(h)){var g=xp[h];delete xp[h],g()}},wp=function runner(h){return function(){_p(h)}},Cp=function listener(h){_p(h.data)},Ep=function post(h){Jo.postMessage(h+"",pp.protocol+"//"+pp.host)};yp&&vp||(yp=function setImmediate(h){for(var g=[],d=1;arguments.length>d;)g.push(arguments[d++]);return xp[++bp]=function(){("function"==typeof h?h:Function(h)).apply(void 0,g)},cp(bp),bp},vp=function clearImmediate(h){delete xp[h]},tu?cp=function defer(h){gp.nextTick(wp(h))}:mp&&mp.now?cp=function defer(h){mp.now(wp(h))}:dp&&!hp?(fp=(lp=new dp).port2,lp.port1.onmessage=Cp,cp=Ls(fp.postMessage,fp,1)):Jo.addEventListener&&"function"==typeof postMessage&&!Jo.importScripts&&pp&&"file:"!==pp.protocol&&!is(Ep)?(cp=Ep,Jo.addEventListener("message",Cp,!1)):cp=Sp in _s("script")?function defer(h){Fc.appendChild(_s("script")).onreadystatechange=function(){Fc.removeChild(this),_p(h)}}:function defer(h){setTimeout(wp(h),0)});var Pp,kp,Op,Ap,Tp,Rp,Mp,Np,Ip={set:yp,clear:vp},Lp=/web0s(?!.*chrome)/i.test(nu),Dp=Es.f,$p=Ip.set,Vp=Jo.MutationObserver||Jo.WebKitMutationObserver,jp=Jo.document,Fp=Jo.process,Bp=Jo.Promise,Up=Dp(Jo,"queueMicrotask"),zp=Up&&Up.value;zp||(Pp=function flush(){var h,g;for(tu&&(h=Fp.domain)&&h.exit();kp;){g=kp.fn,kp=kp.next;try{g()}catch(h){throw kp?Ap():Op=void 0,h}}Op=void 0,h&&h.enter()},hp||tu||Lp||!Vp||!jp?Bp&&Bp.resolve?(Mp=Bp.resolve(void 0),Np=Mp.then,Ap=function notify(){Np.call(Mp,Pp)}):Ap=tu?function notify(){Fp.nextTick(Pp)}:function notify(){$p.call(Jo,Pp)}:(Tp=!0,Rp=jp.createTextNode(""),new Vp(Pp).observe(Rp,{characterData:!0}),Ap=function notify(){Rp.data=Tp=!Tp}));var Gp=zp||function(h){var g={fn:h,next:void 0};Op&&(Op.next=g),kp||(kp=g,Ap()),Op=g},Hp=function PromiseCapability(h){var g,d;this.promise=new h((function(h,b){if(void 0!==g||void 0!==d)throw TypeError("Bad Promise constructor");g=h,d=b})),this.resolve=Is(g),this.reject=Is(d)},qp={f:function f(h){return new Hp(h)}},Xp=function promiseResolve(h,g){if(Ds(h),gs(g)&&g.constructor===h)return g;var d=qp.f(h);return(0,d.resolve)(g),d.promise},Yp=function perform(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},Wp=Ip.set,Qp=pu("species"),Zp="Promise",Kp=Dl.get,Jp=Dl.set,ty=Dl.getterFor(Zp),ey=ep,ry=Jo.TypeError,ny=Jo.document,iy=Jo.process;ru("fetch");var ay,oy,sy,uy=qp.f,cy=uy,ly=!!(ny&&ny.createEvent&&Jo.dispatchEvent),fy="function"==typeof PromiseRejectionEvent,hy="unhandledrejection",py=Ms(Zp,(function(){if(!(kl(ey)!==String(ey))){if(66===su)return!0;if(!tu&&!fy)return!0}if(!ey.prototype.finally)return!0;if(su>=51&&/native code/.test(ey))return!1;var h=ey.resolve(1),g=function FakePromise(h){h((function(){}),(function(){}))};return(h.constructor={})[Qp]=g,!(h.then((function(){}))instanceof g)})),yy=py||!xh((function(h){ey.all(h).catch((function(){}))})),vy=function isThenable(h){var g;return!(!gs(h)||"function"!=typeof(g=h.then))&&g},gy=function notify(h,g){if(!h.notified){h.notified=!0;var d=h.reactions;Gp((function(){for(var b=h.value,x=1==h.state,S=0;d.length>S;){var _,w,C,E=d[S++],P=x?E.ok:E.fail,k=E.resolve,A=E.reject,R=E.domain;try{P?(x||(2===h.rejection&&xy(h),h.rejection=1),!0===P?_=b:(R&&R.enter(),_=P(b),R&&(R.exit(),C=!0)),_===E.promise?A(ry("Promise-chain cycle")):(w=vy(_))?w.call(_,k,A):k(_)):A(b)}catch(h){R&&!C&&R.exit(),A(h)}}h.reactions=[],h.notified=!1,g&&!h.rejection&&my(h)}))}},dy=function dispatchEvent(h,g,d){var b,x;ly?((b=ny.createEvent("Event")).promise=g,b.reason=d,b.initEvent(h,!1,!0),Jo.dispatchEvent(b)):b={promise:g,reason:d},!fy&&(x=Jo["on"+h])?x(b):h===hy&&function hostReportErrors(h,g){var d=Jo.console;d&&d.error&&(1===arguments.length?d.error(h):d.error(h,g))}("Unhandled promise rejection",d)},my=function onUnhandled(h){Wp.call(Jo,(function(){var g,d=h.facade,b=h.value;if(by(h)&&(g=Yp((function(){tu?iy.emit("unhandledRejection",b,d):dy(hy,d,b)})),h.rejection=tu||by(h)?2:1,g.error))throw g.value}))},by=function isUnhandled(h){return 1!==h.rejection&&!h.parent},xy=function onHandleUnhandled(h){Wp.call(Jo,(function(){var g=h.facade;tu?iy.emit("rejectionHandled",g):dy("rejectionhandled",g,h.value)}))},Sy=function bind(h,g,d){return function(b){h(g,b,d)}},_y=function internalReject(h,g,d){h.done||(h.done=!0,d&&(h=d),h.value=g,h.state=2,gy(h,!0))},wy=function internalResolve(h,g,d){if(!h.done){h.done=!0,d&&(h=d);try{if(h.facade===g)throw ry("Promise can't be resolved itself");var b=vy(g);b?Gp((function(){var d={done:!1};try{b.call(g,Sy(internalResolve,d,h),Sy(_y,d,h))}catch(g){_y(d,g,h)}})):(h.value=g,h.state=1,gy(h,!1))}catch(g){_y({done:!1},g,h)}}};py&&(ey=function Promise(h){ap(this,ey,Zp),Is(h),ay.call(this);var g=Kp(this);try{h(Sy(wy,g),Sy(_y,g))}catch(h){_y(g,h)}},(ay=function Promise(h){Jp(this,{type:Zp,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=rp(ey.prototype,{then:function then(h,g){var d=ty(this),b=uy(sp(this,ey));return b.ok="function"!=typeof h||h,b.fail="function"==typeof g&&g,b.domain=tu?iy.domain:void 0,d.parent=!0,d.reactions.push(b),0!=d.state&&gy(d,!1),b.promise},catch:function _catch(h){return this.then(void 0,h)}}),oy=function OwnPromiseCapability(){var h=new ay,g=Kp(h);this.promise=h,this.resolve=Sy(wy,g),this.reject=Sy(_y,g)},qp.f=uy=function newPromiseCapability(h){return h===ey||h===sy?new oy(h):cy(h)}),Us({global:!0,wrap:!0,forced:py},{Promise:ey}),vl(ey,Zp,!1,!0),ip(Zp),sy=ru(Zp),Us({target:Zp,stat:!0,forced:py},{reject:function reject(h){var g=uy(this);return g.reject.call(void 0,h),g.promise}}),Us({target:Zp,stat:!0,forced:!0},{resolve:function resolve(h){return Xp(this===sy?ey:this,h)}}),Us({target:Zp,stat:!0,forced:yy},{all:function all(h){var g=this,d=uy(g),b=d.resolve,x=d.reject,S=Yp((function(){var d=Is(g.resolve),S=[],_=0,w=1;Kh(h,(function(h){var C=_++,E=!1;S.push(void 0),w++,d.call(g,h).then((function(h){E||(E=!0,S[C]=h,--w||b(S))}),x)})),--w||b(S)}));return S.error&&x(S.value),d.promise},race:function race(h){var g=this,d=uy(g),b=d.reject,x=Yp((function(){var x=Is(g.resolve);Kh(h,(function(h){x.call(g,h).then(d.resolve,b)}))}));return x.error&&b(x.value),d.promise}}),Us({target:"Promise",stat:!0},{allSettled:function allSettled(h){var g=this,d=qp.f(g),b=d.resolve,x=d.reject,S=Yp((function(){var d=Is(g.resolve),x=[],S=0,_=1;Kh(h,(function(h){var w=S++,C=!1;x.push(void 0),_++,d.call(g,h).then((function(h){C||(C=!0,x[w]={status:"fulfilled",value:h},--_||b(x))}),(function(h){C||(C=!0,x[w]={status:"rejected",reason:h},--_||b(x))}))})),--_||b(x)}));return S.error&&x(S.value),d.promise}});var Cy="No one promise resolved";Us({target:"Promise",stat:!0},{any:function any(h){var g=this,d=qp.f(g),b=d.resolve,x=d.reject,S=Yp((function(){var d=Is(g.resolve),S=[],_=0,w=1,C=!1;Kh(h,(function(h){var E=_++,P=!1;S.push(void 0),w++,d.call(g,h).then((function(h){P||C||(C=!0,b(h))}),(function(h){P||C||(P=!0,S[E]=h,--w||x(new(ru("AggregateError"))(S,Cy)))}))})),--w||x(new(ru("AggregateError"))(S,Cy))}));return S.error&&x(S.value),d.promise}});var Ey=!!ep&&is((function(){ep.prototype.finally.call({then:function then(){}},(function(){}))}));Us({target:"Promise",proto:!0,real:!0,forced:Ey},{finally:function _finally(h){var g=sp(this,ru("Promise")),d="function"==typeof h;return this.then(d?function(d){return Xp(g,h()).then((function(){return d}))}:h,d?function(d){return Xp(g,h()).then((function(){throw d}))}:h)}});var Py=Ns.Promise;Us({target:"Promise",stat:!0},{try:function _try(h){var g=qp.f(this),d=Yp(h);return(d.error?g.reject:g.resolve)(d.value),g.promise}});var ky=Py;function asyncGeneratorStep(h,g,d,b,x,S,_){try{var w=h[S](_),C=w.value}catch(h){return void d(h)}w.done?g(C):ky.resolve(C).then(b,x)}function _asyncToGenerator(h){return function(){var g=this,d=arguments;return new ky((function(b,x){var S=h.apply(g,d);function _next(h){asyncGeneratorStep(S,b,x,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(S,b,x,_next,_throw,"throw",h)}_next(void 0)}))}}var Oy=Ch;function _defineProperty(h,g,d){return g in h?Oy(h,g,{value:d,enumerable:!0,configurable:!0,writable:!0}):h[g]=d,h}function _classCallCheck$1(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function _defineProperties(h,g){for(var d=0;d<g.length;d++){var b=g[d];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Oy(h,b.key,b)}}function _createClass(h,g,d){return g&&_defineProperties(h.prototype,g),d&&_defineProperties(h,d),h}var Ay=Su("Array").concat,Ty=Array.prototype,Ry=function concat_1(h){var g=h.concat;return h===Ty||h instanceof Array&&g===Ty.concat?Ay:g},createMethod$1=function(h){return function(g,d,b,x){aFunction$2(d);var S=toObject$1(g),_=P(S),w=toLength$1(S.length),C=h?w-1:0,E=h?-1:1;if(b<2)for(;;){if(C in _){x=_[C],C+=E;break}if(C+=E,h?C<0:w<=C)throw TypeError("Reduce of empty array with no initial value")}for(;h?C>=0:w>C;C+=E)C in _&&(x=d(x,_[C],C,S));return x}},My={left:createMethod$1(!1),right:createMethod$1(!0)}.left,Ny=arrayMethodIsStrict$1("reduce");_export$1({target:"Array",proto:!0,forced:!Ny||!Rt&&$t>79&&$t<83},{reduce:function reduce(h){return My(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Iy=function createMethod(h){return function(g,d,b,x){Is(d);var S=tc(g),_=ps(S),w=Xs(S.length),C=h?w-1:0,E=h?-1:1;if(b<2)for(;;){if(C in _){x=_[C],C+=E;break}if(C+=E,h?C<0:w<=C)throw TypeError("Reduce of empty array with no initial value")}for(;h?C>=0:w>C;C+=E)C in _&&(x=d(x,_[C],C,S));return x}},Ly={left:Iy(!1),right:Iy(!0)}.left,Dy=Ah("reduce");Us({target:"Array",proto:!0,forced:!Dy||!tu&&su>79&&su<83},{reduce:function reduce(h){return Ly(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var $y=Su("Array").reduce,Vy=Array.prototype,jy=function reduce_1(h){var g=h.reduce;return h===Vy||h instanceof Array&&g===Vy.reduce?$y:g};Us({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var Fy=Ns.Date.now,By=ae.every,Uy=arrayMethodIsStrict$1("every");_export$1({target:"Array",proto:!0,forced:!Uy},{every:function every(h){return By(this,h,arguments.length>1?arguments[1]:void 0)}});var zy=oc.every,Gy=Ah("every");Us({target:"Array",proto:!0,forced:!Gy},{every:function every(h){return zy(this,h,arguments.length>1?arguments[1]:void 0)}});var Hy=Su("Array").every,qy=Array.prototype,Xy=function every_1(h){var g=h.every;return h===qy||h instanceof Array&&g===qy.every?Hy:g},Yy=Py,Wy=[].slice,Qy={},Zy=function construct(h,g,d){if(!(g in Qy)){for(var b=[],x=0;x<g;x++)b[x]="a["+x+"]";Qy[g]=Function("C,a","return new C("+b.join(",")+")")}return Qy[g](h,d)},Ky=Function.bind||function bind(h){var g=Is(this),d=Wy.call(arguments,1),b=function bound(){var x=d.concat(Wy.call(arguments));return this instanceof b?Zy(g,x.length,x):g.apply(h,x)};return gs(g.prototype)&&(b.prototype=g.prototype),b};Us({target:"Function",proto:!0},{bind:Ky});for(var Jy=Su("Function").bind,tv=Function.prototype,ev=function bind_1(h){var g=h.bind;return h===tv||h instanceof Function&&g===tv.bind?Jy:g},rv=createCommonjsModule((function(h){(function(){var d,b,x,S,_,w;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:null!=g&&g.hrtime?(h.exports=function(){return(d()-_)/1e6},b=g.hrtime,S=(d=function getNanoSeconds(){var h;return 1e9*(h=b())[0]+h[1]})(),w=1e9*g.uptime(),_=S-w):Date.now?(h.exports=function(){return Date.now()-x},x=Date.now()):(h.exports=function(){return(new Date).getTime()-x},x=(new Date).getTime())}).call(d)})),nv="undefined"==typeof window?d:window,iv=["moz","webkit"],av="AnimationFrame",ov=nv["request"+av],sv=nv["cancel"+av]||nv["cancelRequest"+av],uv=0;!ov&&uv<iv.length;uv++)ov=nv[iv[uv]+"Request"+av],sv=nv[iv[uv]+"Cancel"+av]||nv[iv[uv]+"CancelRequest"+av];if(!ov||!sv){var cv=0,lv=0,fv=[];ov=function raf(h){if(0===fv.length){var g=rv(),d=Math.max(0,16.666666666666668-(g-cv));cv=d+g,setTimeout((function(){var h=fv.slice(0);fv.length=0;for(var g=0;g<h.length;g++)if(!h[g].cancelled)try{h[g].callback(cv)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(d))}return fv.push({handle:++lv,callback:h,cancelled:!1}),lv},sv=function caf(h){for(var g=0;g<fv.length;g++)fv[g].handle===h&&(fv[g].cancelled=!0)}}var hv=function raf_1(h){return ov.call(nv,h)};hv.cancel=function cancel(){sv.apply(nv,arguments)},hv.polyfill=function polyfill(h){h||(h=nv),h.requestAnimationFrame=ov,h.cancelAnimationFrame=sv};var pv=Xu.trim;Us({target:"String",proto:!0,forced:function stringTrimForced(h){return is((function(){return!!Uu[h]()||"…"!="…"[h]()||Uu[h].name!==h}))}("trim")},{trim:function trim(){return pv(this)}});var yv=Su("String").trim,vv=String.prototype,gv=function trim_1(h){var g=h.trim;return"string"==typeof h||h===vv||h instanceof String&&g===vv.trim?yv:g},dv=ko.trim,mv=b.parseInt,bv=/^[+-]?0[Xx]/,xv=8!==mv(wo+"08")||22!==mv(wo+"0x16")?function parseInt(h,g){var d=dv(String(h));return mv(d,g>>>0||(bv.test(d)?16:10))}:mv;_export$1({global:!0,forced:parseInt!=xv},{parseInt:xv});var Sv=function rgbcolor(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var g={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"};h=g[h]||h;for(var d=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[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 process(h){return[parseInt(h[1]),parseInt(h[2]),parseInt(h[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(h){return[parseInt(h[1],16),parseInt(h[2],16),parseInt(h[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(h){return[parseInt(h[1]+h[1],16),parseInt(h[2]+h[2],16),parseInt(h[3]+h[3],16)]}}],b=0;b<d.length;b++){var x=d[b].re,S=d[b].process,_=x.exec(h);if(_){var w=S(_);this.r=w[0],this.g=w[1],this.b=w[2],w.length>3&&(this.alpha=w[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 h=this.r.toString(16),g=this.g.toString(16),d=this.b.toString(16);return 1==h.length&&(h="0"+h),1==g.length&&(g="0"+g),1==d.length&&(d="0"+d),"#"+h+g+d},this.getHelpXML=function(){for(var h=new Array,b=0;b<d.length;b++)for(var x=d[b].example,S=0;S<x.length;S++)h[h.length]=x[S];for(var _ in g)h[h.length]=_;var w=document.createElement("ul");w.setAttribute("id","rgbcolor-examples");for(b=0;b<h.length;b++)try{var C=document.createElement("li"),E=new RGBColor(h[b]),P=document.createElement("div");P.style.cssText="margin: 3px; border: 1px solid black; background:"+E.toHex()+"; color:"+E.toHex(),P.appendChild(document.createTextNode("test"));var k=document.createTextNode(" "+h[b]+" -> "+E.toRGB()+" -> "+E.toHex());C.appendChild(P),C.appendChild(k),w.appendChild(C)}catch(h){}return w}},_v=ru("Reflect","construct"),wv=is((function(){function F(){}return!(_v((function(){}),[],F)instanceof F)})),Cv=!is((function(){_v((function(){}))})),Ev=wv||Cv;Us({target:"Reflect",stat:!0,forced:Ev,sham:Ev},{construct:function construct(h,g){Is(h),Ds(g);var d=arguments.length<3?h:Is(arguments[2]);if(Cv&&!wv)return _v(h,g,d);if(h==d){switch(g.length){case 0:return new h;case 1:return new h(g[0]);case 2:return new h(g[0],g[1]);case 3:return new h(g[0],g[1],g[2]);case 4:return new h(g[0],g[1],g[2],g[3])}var b=[null];return b.push.apply(b,g),new(Ky.apply(h,b))}var x=d.prototype,S=Xc(gs(x)?x:Object.prototype),_=Function.apply.call(h,S,g);return gs(_)?_:S}});var Pv=Ns.Reflect.construct;Us({target:"Object",stat:!0,sham:!as},{create:Xc});var kv=Ns.Object,Ov=function create(h,g){return kv.create(h,g)};Us({target:"Object",stat:!0},{setPrototypeOf:Tf});var Av=Ns.Object.setPrototypeOf;function _setPrototypeOf(h,g){return(_setPrototypeOf=Av||function _setPrototypeOf(h,g){return h.__proto__=g,h})(h,g)}function _inherits(h,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function");h.prototype=Ov(g&&g.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),g&&_setPrototypeOf(h,g)}var Tv=il.f("iterator");function _typeof$1(h){return(_typeof$1="function"==typeof mf&&"symbol"==typeof Tv?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof mf&&h.constructor===mf&&h!==mf.prototype?"symbol":typeof h})(h)}function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function _possibleConstructorReturn(h,g){return!g||"object"!==_typeof$1(g)&&"function"!=typeof g?_assertThisInitialized(h):g}var Rv=is((function(){wf(1)}));Us({target:"Object",stat:!0,forced:Rv,sham:!xf},{getPrototypeOf:function getPrototypeOf(h){return wf(tc(h))}});var Mv=Ns.Object.getPrototypeOf;function _getPrototypeOf(h){return(_getPrototypeOf=Av?Mv:function _getPrototypeOf(h){return h.__proto__||Mv(h)})(h)}function _toConsumableArray(h){return function _arrayWithoutHoles(h){if(vc(h))return _arrayLikeToArray$2(h)}(h)||function _iterableToArray(h){if(void 0!==mf&&Kf(Object(h)))return wh(h)}(h)||_unsupportedIterableToArray$2(h)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Nv=ae.some,Iv=arrayMethodIsStrict$1("some");_export$1({target:"Array",proto:!0,forced:!Iv},{some:function some(h){return Nv(this,h,arguments.length>1?arguments[1]:void 0)}});var Lv=oc.some,Dv=Ah("some");Us({target:"Array",proto:!0,forced:!Dv},{some:function some(h){return Lv(this,h,arguments.length>1?arguments[1]:void 0)}});var $v=Su("Array").some,Vv=Array.prototype,jv=function some_1(h){var g=h.some;return h===Vv||h instanceof Array&&g===Vv.some?$v:g},Fv=dt.includes;_export$1({target:"Array",proto:!0},{includes:function includes(h){return Fv(this,h,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes"),_export$1({target:"String",proto:!0,forced:!correctIsRegexpLogic$1("includes")},{includes:function includes(h){return!!~String(requireObjectCoercible$1(this)).indexOf(notARegexp$1(h),arguments.length>1?arguments[1]:void 0)}});var Bv=Nc.includes;Us({target:"Array",proto:!0},{includes:function includes(h){return Bv(this,h,arguments.length>1?arguments[1]:void 0)}});var Uv=Su("Array").includes;Us({target:"String",proto:!0,forced:!du("includes")},{includes:function includes(h){return!!~String(ys(this)).indexOf(vu(h),arguments.length>1?arguments[1]:void 0)}});var zv=Su("String").includes,Gv=Array.prototype,Hv=String.prototype,qv=function includes(h){var g=h.includes;return h===Gv||h instanceof Array&&g===Gv.includes?Uv:"string"==typeof h||h===Hv||h instanceof String&&g===Hv.includes?zv:g},Xv=_h,Yv=[].reverse,Wv=[1,2];Us({target:"Array",proto:!0,forced:String(Wv)===String(Wv.reverse())},{reverse:function reverse(){return ec(this)&&(this.length=this.length),Yv.call(this)}});var Qv=Su("Array").reverse,Zv=Array.prototype,Kv=function reverse_1(h){var g=h.reverse;return h===Zv||h instanceof Array&&g===Zv.reverse?Qv:g},Jv=Nc.indexOf,tg=[].indexOf,eg=!!tg&&1/[1].indexOf(1,-0)<0,rg=Ah("indexOf");Us({target:"Array",proto:!0,forced:eg||!rg},{indexOf:function indexOf(h){return eg?tg.apply(this,arguments)||0:Jv(this,h,arguments.length>1?arguments[1]:void 0)}});var ng=Su("Array").indexOf,ig=Array.prototype,ag=function indexOf_1(h){var g=h.indexOf;return h===ig||h instanceof Array&&g===ig.indexOf?ng:g};Us({target:"Reflect",stat:!0},{get:function get$3(h,g){var d,b,x=arguments.length<3?h:arguments[2];return Ds(h)===x?h[g]:(d=Es.f(h,g))?bs(d,"value")?d.value:void 0===d.get?void 0:d.get.call(x):gs(b=wf(h))?get$3(b,g,x):void 0}});var og=Ns.Reflect.get,sg=Vh;function _get(h,g,d){return(_get="undefined"!=typeof Reflect&&og?og:function _get(h,g,d){var b=function _superPropBase(h,g){for(;!Object.prototype.hasOwnProperty.call(h,g)&&null!==(h=_getPrototypeOf(h)););return h}(h,g);if(b){var x=sg(b,g);return x.get?x.get.call(d):x.value}})(h,g,d||h)}Us({target:"Array",proto:!0},{fill:function fill(h){for(var g=tc(this),d=Xs(g.length),b=arguments.length,x=Rc(b>1?arguments[1]:void 0,d),S=b>2?arguments[2]:void 0,_=void 0===S?d:Rc(S,d);_>x;)g[x++]=h;return g}});var ug=Su("Array").fill,cg=Array.prototype,lg=function fill_1(h){var g=h.fill;return h===cg||h instanceof Array&&g===cg.fill?ug:g},fg=function t(h,g){return(fg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var d in g)g.hasOwnProperty(d)&&(h[d]=g[d])})(h,g)};function r(h,g){function i(){this.constructor=h}fg(h,g),h.prototype=null===g?Object.create(g):(i.prototype=g.prototype,new i)}function i(h,g){var d=h[0],b=h[1];return[d*Math.cos(g)-b*Math.sin(g),d*Math.sin(g)+b*Math.cos(g)]}function a(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];for(var d=0;d<h.length;d++)if("number"!=typeof h[d])throw new Error("assertNumbers arguments["+d+"] is not a number. "+_typeof$2(h[d])+" == typeof "+h[d]);return!0}var hg=Math.PI;function o(h,g,d){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var b=h.rX,x=h.rY,S=h.x,_=h.y;b=Math.abs(h.rX),x=Math.abs(h.rY);var w=i([(g-S)/2,(d-_)/2],-h.xRot/180*hg),C=w[0],E=w[1],P=Math.pow(C,2)/Math.pow(b,2)+Math.pow(E,2)/Math.pow(x,2);1<P&&(b*=Math.sqrt(P),x*=Math.sqrt(P)),h.rX=b,h.rY=x;var k=Math.pow(b,2)*Math.pow(E,2)+Math.pow(x,2)*Math.pow(C,2),A=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(b,2)*Math.pow(x,2)-k)/k)),R=b*E/x*A,M=-x*C/b*A,N=i([R,M],h.xRot/180*hg);h.cX=N[0]+(g+S)/2,h.cY=N[1]+(d+_)/2,h.phi1=Math.atan2((E-M)/x,(C-R)/b),h.phi2=Math.atan2((-E-M)/x,(-C-R)/b),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*hg),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*hg),h.phi1*=180/hg,h.phi2*=180/hg}function s(h,g,d){a(h,g,d);var b=h*h+g*g-d*d;if(0>b)return[];if(0===b)return[[h*d/(h*h+g*g),g*d/(h*h+g*g)]];var x=Math.sqrt(b);return[[(h*d+g*x)/(h*h+g*g),(g*d-h*x)/(h*h+g*g)],[(h*d-g*x)/(h*h+g*g),(g*d+h*x)/(h*h+g*g)]]}var pg,yg=Math.PI/180;function c$1(h,g,d){return(1-d)*h+d*g}function y(h,g,d,b){return h+Math.cos(b/180*hg)*g+Math.sin(b/180*hg)*d}function p(h,g,d,b){var x=g-h,S=d-g,_=3*x+3*(b-d)-6*S,w=6*(S-x),C=3*x;return Math.abs(_)<1e-6?[-C/w]:function(h,g,d){void 0===d&&(d=1e-6);var b=h*h/4-g;if(b<-d)return[];if(b<=d)return[-h/2];var x=Math.sqrt(b);return[-h/2-x,-h/2+x]}(w/_,C/_,1e-6)}function m$1(h,g,d,b,x){var S=1-x;return h*(S*S*S)+g*(3*S*S*x)+d*(3*S*x*x)+b*(x*x*x)}!function(h){function r(){return u((function(h,g,d){return h.relative&&(void 0!==h.x1&&(h.x1+=g),void 0!==h.y1&&(h.y1+=d),void 0!==h.x2&&(h.x2+=g),void 0!==h.y2&&(h.y2+=d),void 0!==h.x&&(h.x+=g),void 0!==h.y&&(h.y+=d),h.relative=!1),h}))}function e(){var h=NaN,g=NaN,d=NaN,b=NaN;return u((function(x,S,_){return x.type&xg.SMOOTH_CURVE_TO&&(x.type=xg.CURVE_TO,h=isNaN(h)?S:h,g=isNaN(g)?_:g,x.x1=x.relative?S-h:2*S-h,x.y1=x.relative?_-g:2*_-g),x.type&xg.CURVE_TO?(h=x.relative?S+x.x2:x.x2,g=x.relative?_+x.y2:x.y2):(h=NaN,g=NaN),x.type&xg.SMOOTH_QUAD_TO&&(x.type=xg.QUAD_TO,d=isNaN(d)?S:d,b=isNaN(b)?_:b,x.x1=x.relative?S-d:2*S-d,x.y1=x.relative?_-b:2*_-b),x.type&xg.QUAD_TO?(d=x.relative?S+x.x1:x.x1,b=x.relative?_+x.y1:x.y1):(d=NaN,b=NaN),x}))}function n(){var h=NaN,g=NaN;return u((function(d,b,x){if(d.type&xg.SMOOTH_QUAD_TO&&(d.type=xg.QUAD_TO,h=isNaN(h)?b:h,g=isNaN(g)?x:g,d.x1=d.relative?b-h:2*b-h,d.y1=d.relative?x-g:2*x-g),d.type&xg.QUAD_TO){h=d.relative?b+d.x1:d.x1,g=d.relative?x+d.y1:d.y1;var S=d.x1,_=d.y1;d.type=xg.CURVE_TO,d.x1=((d.relative?0:b)+2*S)/3,d.y1=((d.relative?0:x)+2*_)/3,d.x2=(d.x+2*S)/3,d.y2=(d.y+2*_)/3}else h=NaN,g=NaN;return d}))}function u(h){var g=0,d=0,b=NaN,x=NaN;return function(S){if(isNaN(b)&&!(S.type&xg.MOVE_TO))throw new Error("path must start with moveto");var _=h(S,g,d,b,x);return S.type&xg.CLOSE_PATH&&(g=b,d=x),void 0!==S.x&&(g=S.relative?g+S.x:S.x),void 0!==S.y&&(d=S.relative?d+S.y:S.y),S.type&xg.MOVE_TO&&(b=g,x=d),_}}function O(h,g,d,b,x,S){return a(h,g,d,b,x,S),u((function(_,w,C,E){var P=_.x1,k=_.x2,A=_.relative&&!isNaN(E),R=void 0!==_.x?_.x:A?0:w,M=void 0!==_.y?_.y:A?0:C;function T(h){return h*h}_.type&xg.HORIZ_LINE_TO&&0!==g&&(_.type=xg.LINE_TO,_.y=_.relative?0:C),_.type&xg.VERT_LINE_TO&&0!==d&&(_.type=xg.LINE_TO,_.x=_.relative?0:w),void 0!==_.x&&(_.x=_.x*h+M*d+(A?0:x)),void 0!==_.y&&(_.y=R*g+_.y*b+(A?0:S)),void 0!==_.x1&&(_.x1=_.x1*h+_.y1*d+(A?0:x)),void 0!==_.y1&&(_.y1=P*g+_.y1*b+(A?0:S)),void 0!==_.x2&&(_.x2=_.x2*h+_.y2*d+(A?0:x)),void 0!==_.y2&&(_.y2=k*g+_.y2*b+(A?0:S));var N=h*b-g*d;if(void 0!==_.xRot&&(1!==h||0!==g||0!==d||1!==b))if(0===N)delete _.rX,delete _.rY,delete _.xRot,delete _.lArcFlag,delete _.sweepFlag,_.type=xg.LINE_TO;else{var L=_.xRot*Math.PI/180,D=Math.sin(L),$=Math.cos(L),V=1/T(_.rX),j=1/T(_.rY),B=T($)*V+T(D)*j,U=2*D*$*(V-j),z=T(D)*V+T($)*j,G=B*b*b-U*g*b+z*g*g,q=U*(h*b+g*d)-2*(B*d*b+z*h*g),X=B*d*d-U*h*d+z*h*h,Y=(Math.atan2(q,G-X)+Math.PI)%Math.PI/2,W=Math.sin(Y),Q=Math.cos(Y);_.rX=Math.abs(N)/Math.sqrt(G*T(Q)+q*W*Q+X*T(W)),_.rY=Math.abs(N)/Math.sqrt(G*T(W)-q*W*Q+X*T(Q)),_.xRot=180*Y/Math.PI}return void 0!==_.sweepFlag&&0>N&&(_.sweepFlag=+!_.sweepFlag),_}))}h.ROUND=function(h){function r(g){return Math.round(g*h)/h}return void 0===h&&(h=1e13),a(h),function(h){return void 0!==h.x1&&(h.x1=r(h.x1)),void 0!==h.y1&&(h.y1=r(h.y1)),void 0!==h.x2&&(h.x2=r(h.x2)),void 0!==h.y2&&(h.y2=r(h.y2)),void 0!==h.x&&(h.x=r(h.x)),void 0!==h.y&&(h.y=r(h.y)),void 0!==h.rX&&(h.rX=r(h.rX)),void 0!==h.rY&&(h.rY=r(h.rY)),h}},h.TO_ABS=r,h.TO_REL=function(){return u((function(h,g,d){return h.relative||(void 0!==h.x1&&(h.x1-=g),void 0!==h.y1&&(h.y1-=d),void 0!==h.x2&&(h.x2-=g),void 0!==h.y2&&(h.y2-=d),void 0!==h.x&&(h.x-=g),void 0!==h.y&&(h.y-=d),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,g,d){return void 0===h&&(h=!0),void 0===g&&(g=!0),void 0===d&&(d=!0),u((function(b,x,S,_,w){if(isNaN(_)&&!(b.type&xg.MOVE_TO))throw new Error("path must start with moveto");return g&&b.type&xg.HORIZ_LINE_TO&&(b.type=xg.LINE_TO,b.y=b.relative?0:S),d&&b.type&xg.VERT_LINE_TO&&(b.type=xg.LINE_TO,b.x=b.relative?0:x),h&&b.type&xg.CLOSE_PATH&&(b.type=xg.LINE_TO,b.x=b.relative?_-x:_,b.y=b.relative?w-S:w),b.type&xg.ARC&&(0===b.rX||0===b.rY)&&(b.type=xg.LINE_TO,delete b.rX,delete b.rY,delete b.xRot,delete b.lArcFlag,delete b.sweepFlag),b}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var g=NaN,d=NaN,b=NaN,x=NaN;return u((function(S,_,w,C,E){var P=Math.abs,k=!1,A=0,R=0;if(S.type&xg.SMOOTH_CURVE_TO&&(A=isNaN(g)?0:_-g,R=isNaN(d)?0:w-d),S.type&(xg.CURVE_TO|xg.SMOOTH_CURVE_TO)?(g=S.relative?_+S.x2:S.x2,d=S.relative?w+S.y2:S.y2):(g=NaN,d=NaN),S.type&xg.SMOOTH_QUAD_TO?(b=isNaN(b)?_:2*_-b,x=isNaN(x)?w:2*w-x):S.type&xg.QUAD_TO?(b=S.relative?_+S.x1:S.x1,x=S.relative?w+S.y1:S.y2):(b=NaN,x=NaN),S.type&xg.LINE_COMMANDS||S.type&xg.ARC&&(0===S.rX||0===S.rY||!S.lArcFlag)||S.type&xg.CURVE_TO||S.type&xg.SMOOTH_CURVE_TO||S.type&xg.QUAD_TO||S.type&xg.SMOOTH_QUAD_TO){var M=void 0===S.x?0:S.relative?S.x:S.x-_,N=void 0===S.y?0:S.relative?S.y:S.y-w;A=isNaN(b)?void 0===S.x1?A:S.relative?S.x:S.x1-_:b-_,R=isNaN(x)?void 0===S.y1?R:S.relative?S.y:S.y1-w:x-w;var L=void 0===S.x2?0:S.relative?S.x:S.x2-_,D=void 0===S.y2?0:S.relative?S.y:S.y2-w;P(M)<=h&&P(N)<=h&&P(A)<=h&&P(R)<=h&&P(L)<=h&&P(D)<=h&&(k=!0)}return S.type&xg.CLOSE_PATH&&P(_-C)<=h&&P(w-E)<=h&&(k=!0),k?[]:S}))},h.MATRIX=O,h.ROTATE=function(h,g,d){void 0===g&&(g=0),void 0===d&&(d=0),a(h,g,d);var b=Math.sin(h),x=Math.cos(h);return O(x,b,-b,x,g-g*x+d*b,d-g*b-d*x)},h.TRANSLATE=function(h,g){return void 0===g&&(g=0),a(h,g),O(1,0,0,1,h,g)},h.SCALE=function(h,g){return void 0===g&&(g=h),a(h,g),O(h,0,0,g,0,0)},h.SKEW_X=function(h){return a(h),O(1,0,Math.atan(h),1,0,0)},h.SKEW_Y=function(h){return a(h),O(1,Math.atan(h),0,1,0,0)},h.X_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(-1,0,0,1,h,0)},h.Y_AXIS_SYMMETRY=function(h){return void 0===h&&(h=0),a(h),O(1,0,0,-1,0,h)},h.A_TO_C=function(){return u((function(h,g,d){return xg.ARC===h.type?function(h,g,d){var b,x,S,_;h.cX||o(h,g,d);for(var w=Math.min(h.phi1,h.phi2),C=Math.max(h.phi1,h.phi2)-w,E=Math.ceil(C/90),P=new Array(E),k=g,A=d,R=0;R<E;R++){var M=c$1(h.phi1,h.phi2,R/E),N=c$1(h.phi1,h.phi2,(R+1)/E),L=N-M,D=4/3*Math.tan(L*yg/4),$=[Math.cos(M*yg)-D*Math.sin(M*yg),Math.sin(M*yg)+D*Math.cos(M*yg)],V=$[0],j=$[1],B=[Math.cos(N*yg),Math.sin(N*yg)],U=B[0],z=B[1],G=[U+D*Math.sin(N*yg),z-D*Math.cos(N*yg)],q=G[0],X=G[1];P[R]={relative:h.relative,type:xg.CURVE_TO};var Y=function H(g,d){var b=i([g*h.rX,d*h.rY],h.xRot),x=b[0],S=b[1];return[h.cX+x,h.cY+S]};b=Y(V,j),P[R].x1=b[0],P[R].y1=b[1],x=Y(q,X),P[R].x2=x[0],P[R].y2=x[1],S=Y(U,z),P[R].x=S[0],P[R].y=S[1],h.relative&&(P[R].x1-=k,P[R].y1-=A,P[R].x2-=k,P[R].y2-=A,P[R].x-=k,P[R].y-=A),k=(_=[P[R].x,P[R].y])[0],A=_[1]}return P}(h,h.relative?0:g,h.relative?0:d):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,g,d){return h.relative&&(g=0,d=0),xg.ARC===h.type&&o(h,g,d),h}))},h.CLONE=function T(){return function(h){var g={};for(var d in h)g[d]=h[d];return g}},h.CALCULATE_BOUNDS=function(){var h=r(),g=n(),d=e(),b=u((function(x,S,_){var w=d(g(h(function t(h){var g={};for(var d in h)g[d]=h[d];return g}(x))));function O(h){h>b.maxX&&(b.maxX=h),h<b.minX&&(b.minX=h)}function T(h){h>b.maxY&&(b.maxY=h),h<b.minY&&(b.minY=h)}if(w.type&xg.DRAWING_COMMANDS&&(O(S),T(_)),w.type&xg.HORIZ_LINE_TO&&O(w.x),w.type&xg.VERT_LINE_TO&&T(w.y),w.type&xg.LINE_TO&&(O(w.x),T(w.y)),w.type&xg.CURVE_TO){O(w.x),T(w.y);for(var C=0,E=p(S,w.x1,w.x2,w.x);C<E.length;C++)0<(q=E[C])&&1>q&&O(m$1(S,w.x1,w.x2,w.x,q));for(var P=0,k=p(_,w.y1,w.y2,w.y);P<k.length;P++)0<(q=k[P])&&1>q&&T(m$1(_,w.y1,w.y2,w.y,q))}if(w.type&xg.ARC){O(w.x),T(w.y),o(w,S,_);for(var A=w.xRot/180*Math.PI,R=Math.cos(A)*w.rX,M=Math.sin(A)*w.rX,N=-Math.sin(A)*w.rY,L=Math.cos(A)*w.rY,D=w.phi1<w.phi2?[w.phi1,w.phi2]:-180>w.phi2?[w.phi2+360,w.phi1+360]:[w.phi2,w.phi1],$=D[0],V=D[1],j=function I(h){var g=h[0],d=h[1],b=180*Math.atan2(d,g)/Math.PI;return b<$?b+360:b},B=0,U=s(N,-R,0).map(j);B<U.length;B++)(q=U[B])>$&&q<V&&O(y(w.cX,R,N,q));for(var z=0,G=s(L,-M,0).map(j);z<G.length;z++){var q;(q=G[z])>$&&q<V&&T(y(w.cY,M,L,q))}}return x}));return b.minX=1/0,b.maxX=-1/0,b.minY=1/0,b.maxY=-1/0,b}}(pg||(pg={}));var vg,gg=function(){function t(){}return t.prototype.round=function(h){return this.transform(pg.ROUND(h))},t.prototype.toAbs=function(){return this.transform(pg.TO_ABS())},t.prototype.toRel=function(){return this.transform(pg.TO_REL())},t.prototype.normalizeHVZ=function(h,g,d){return this.transform(pg.NORMALIZE_HVZ(h,g,d))},t.prototype.normalizeST=function(){return this.transform(pg.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(pg.QT_TO_C())},t.prototype.aToC=function(){return this.transform(pg.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(pg.SANITIZE(h))},t.prototype.translate=function(h,g){return this.transform(pg.TRANSLATE(h,g))},t.prototype.scale=function(h,g){return this.transform(pg.SCALE(h,g))},t.prototype.rotate=function(h,g,d){return this.transform(pg.ROTATE(h,g,d))},t.prototype.matrix=function(h,g,d,b,x,S){return this.transform(pg.MATRIX(h,g,d,b,x,S))},t.prototype.skewX=function(h){return this.transform(pg.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(pg.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(pg.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(pg.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(pg.ANNOTATE_ARCS())},t}(),dg=function v(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},mg=function l(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},bg=function(h){function e(){var g=h.call(this)||this;return g.curNumber="",g.curCommandType=-1,g.curCommandRelative=!1,g.canParseCommandOrComma=!0,g.curNumberHasExp=!1,g.curNumberHasExpDigits=!1,g.curNumberHasDecimal=!1,g.curArgs=[],g}return r(e,h),e.prototype.finish=function(h){if(void 0===h&&(h=[]),this.parse(" ",h),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return h},e.prototype.parse=function(h,g){var d=this;void 0===g&&(g=[]);for(var b=function i(h){g.push(h),d.curArgs.length=0,d.canParseCommandOrComma=!0},x=0;x<h.length;x++){var S=h[x],_=!(this.curCommandType!==xg.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),w=mg(S)&&("0"===this.curNumber&&"0"===S||_);if(!mg(S)||w)if("e"!==S&&"E"!==S)if("-"!==S&&"+"!==S||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==S||this.curNumberHasExp||this.curNumberHasDecimal||_){if(this.curNumber&&-1!==this.curCommandType){var C=Number(this.curNumber);if(isNaN(C))throw new SyntaxError("Invalid number ending at "+x);if(this.curCommandType===xg.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>C)throw new SyntaxError('Expected positive number, got "'+C+'" at index "'+x+'"')}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 "'+x+'"');this.curArgs.push(C),this.curArgs.length===Sg[this.curCommandType]&&(xg.HORIZ_LINE_TO===this.curCommandType?b({type:xg.HORIZ_LINE_TO,relative:this.curCommandRelative,x:C}):xg.VERT_LINE_TO===this.curCommandType?b({type:xg.VERT_LINE_TO,relative:this.curCommandRelative,y:C}):this.curCommandType===xg.MOVE_TO||this.curCommandType===xg.LINE_TO||this.curCommandType===xg.SMOOTH_QUAD_TO?(b({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),xg.MOVE_TO===this.curCommandType&&(this.curCommandType=xg.LINE_TO)):this.curCommandType===xg.CURVE_TO?b({type:xg.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===xg.SMOOTH_CURVE_TO?b({type:xg.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===xg.QUAD_TO?b({type:xg.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===xg.ARC&&b({type:xg.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(!dg(S))if(","===S&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==S&&"-"!==S&&"."!==S)if(w)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+x+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+x+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==S&&"Z"!==S)if("h"===S||"H"===S)this.curCommandType=xg.HORIZ_LINE_TO,this.curCommandRelative="h"===S;else if("v"===S||"V"===S)this.curCommandType=xg.VERT_LINE_TO,this.curCommandRelative="v"===S;else if("m"===S||"M"===S)this.curCommandType=xg.MOVE_TO,this.curCommandRelative="m"===S;else if("l"===S||"L"===S)this.curCommandType=xg.LINE_TO,this.curCommandRelative="l"===S;else if("c"===S||"C"===S)this.curCommandType=xg.CURVE_TO,this.curCommandRelative="c"===S;else if("s"===S||"S"===S)this.curCommandType=xg.SMOOTH_CURVE_TO,this.curCommandRelative="s"===S;else if("q"===S||"Q"===S)this.curCommandType=xg.QUAD_TO,this.curCommandRelative="q"===S;else if("t"===S||"T"===S)this.curCommandType=xg.SMOOTH_QUAD_TO,this.curCommandRelative="t"===S;else{if("a"!==S&&"A"!==S)throw new SyntaxError('Unexpected character "'+S+'" at index '+x+".");this.curCommandType=xg.ARC,this.curCommandRelative="a"===S}else g.push({type:xg.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 g},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function value(g,d){void 0===d&&(d=[]);for(var b=0,x=Object.getPrototypeOf(this).parse.call(this,g);b<x.length;b++){var S=x[b],_=h(S);Array.isArray(_)?d.push.apply(d,_):d.push(_)}return d}}})},e}(gg),xg=function(h){function i(g){var d=h.call(this)||this;return d.commands="string"==typeof g?i.parse(g):g,d}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=pg.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var g=[],d=0,b=this.commands;d<b.length;d++){var x=h(b[d]);Array.isArray(x)?g.push.apply(g,x):g.push(x)}return this.commands=g,this},i.encode=function(h){return function e(h){var g="";Array.isArray(h)||(h=[h]);for(var d=0;d<h.length;d++){var b=h[d];if(b.type===xg.CLOSE_PATH)g+="z";else if(b.type===xg.HORIZ_LINE_TO)g+=(b.relative?"h":"H")+b.x;else if(b.type===xg.VERT_LINE_TO)g+=(b.relative?"v":"V")+b.y;else if(b.type===xg.MOVE_TO)g+=(b.relative?"m":"M")+b.x+" "+b.y;else if(b.type===xg.LINE_TO)g+=(b.relative?"l":"L")+b.x+" "+b.y;else if(b.type===xg.CURVE_TO)g+=(b.relative?"c":"C")+b.x1+" "+b.y1+" "+b.x2+" "+b.y2+" "+b.x+" "+b.y;else if(b.type===xg.SMOOTH_CURVE_TO)g+=(b.relative?"s":"S")+b.x2+" "+b.y2+" "+b.x+" "+b.y;else if(b.type===xg.QUAD_TO)g+=(b.relative?"q":"Q")+b.x1+" "+b.y1+" "+b.x+" "+b.y;else if(b.type===xg.SMOOTH_QUAD_TO)g+=(b.relative?"t":"T")+b.x+" "+b.y;else{if(b.type!==xg.ARC)throw new Error('Unexpected command type "'+b.type+'" at index '+d+".");g+=(b.relative?"a":"A")+b.rX+" "+b.rY+" "+b.xRot+" "+ +b.lArcFlag+" "+ +b.sweepFlag+" "+b.x+" "+b.y}}return g}(h)},i.parse=function(h){var g=new bg,d=[];return g.parse(h,d),g.finish(d),d},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(gg),Sg=((vg={})[xg.MOVE_TO]=2,vg[xg.LINE_TO]=2,vg[xg.HORIZ_LINE_TO]=1,vg[xg.VERT_LINE_TO]=1,vg[xg.CLOSE_PATH]=0,vg[xg.QUAD_TO]=4,vg[xg.SMOOTH_QUAD_TO]=2,vg[xg.CURVE_TO]=6,vg[xg.SMOOTH_CURVE_TO]=4,vg[xg.ARC]=7,vg),_g=Es.f;Us({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,g){var d=_g(Ds(h),g);return!(d&&!d.configurable)&&delete h[g]}});var wg=Ns.Reflect.deleteProperty,Cg=Su("Array").values,Eg=Array.prototype,Pg={DOMTokenList:!0,NodeList:!0},kg=function values_1(h){var g=h.values;return h===Eg||h instanceof Array&&g===Eg.values||Pg.hasOwnProperty(fl(h))?Cg:g},Og=Xu.trim,Ag=Jo.parseInt,Tg=/^[+-]?0[Xx]/,Rg=8!==Ag(Uu+"08")||22!==Ag(Uu+"0x16")?function parseInt(h,g){var d=Og(String(h));return Ag(d,g>>>0||(Tg.test(d)?16:10))}:Ag;Us({global:!0,forced:parseInt!=Rg},{parseInt:Rg});var Mg=Ns.parseInt,Ng=yc,Ig=th,Lg=yf,Dg=uh,$g=Object.isExtensible,Vg=fails$1((function(){$g(1)}));_export$1({target:"Object",stat:!0,forced:Vg},{isExtensible:function isExtensible(h){return!!isObject$1(h)&&(!$g||$g(h))}});var jg=Bo.onFreeze,Fg=Object.preventExtensions,Bg=fails$1((function(){Fg(1)}));_export$1({target:"Object",stat:!0,forced:Bg,sham:!Fo},{preventExtensions:function preventExtensions(h){return Fg&&isObject$1(h)?Fg(jg(h)):h}});var Ug=!is((function(){return Object.isExtensible(Object.preventExtensions({}))})),zg=createCommonjsModule((function(h){var g=Vs.f,d=Js("meta"),b=0,x=Object.isExtensible||function(){return!0},S=function setMetadata(h){g(h,d,{value:{objectID:"O"+ ++b,weakData:{}}})},_=h.exports={REQUIRED:!1,fastKey:function fastKey(h,g){if(!gs(h))return"symbol"==_typeof$2(h)?h:("string"==typeof h?"S":"P")+h;if(!bs(h,d)){if(!x(h))return"F";if(!g)return"E";S(h)}return h[d].objectID},getWeakData:function getWeakData(h,g){if(!bs(h,d)){if(!x(h))return!0;if(!g)return!1;S(h)}return h[d].weakData},onFreeze:function onFreeze(h){return Ug&&_.REQUIRED&&x(h)&&!bs(h,d)&&S(h),h}};Ic[d]=!0})),Gg=Vs.f,Hg=oc.forEach,qg=Dl.set,Xg=Dl.getterFor,Yg=Vs.f,Wg=zg.fastKey,Qg=Dl.set,Zg=Dl.getterFor;!function collection(h,g,d){var b,x=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),_=x?"set":"add",w=Jo[h],C=w&&w.prototype,E={};if(as&&"function"==typeof w&&(S||C.forEach&&!is((function(){(new w).entries().next()})))){b=g((function(g,d){qg(ap(g,b,h),{type:h,collection:new w}),null!=d&&Kh(d,g[_],{that:g,AS_ENTRIES:x})}));var P=Xg(h);Hg(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var g="add"==h||"set"==h;!(h in C)||S&&"clear"==h||js(b.prototype,h,(function(d,b){var x=P(this).collection;if(!g&&S&&!gs(d))return"get"==h&&void 0;var _=x[h](0===d?0:d,b);return g?this:_}))})),S||Gg(b.prototype,"size",{configurable:!0,get:function get(){return P(this).collection.size}})}else b=d.getConstructor(g,h,x,_),zg.REQUIRED=!0;vl(b,h,!1,!0),E[h]=b,Us({global:!0,forced:!0},E),S||d.setStrong(b,h,x)}("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(h,g,d,b){var x=h((function(h,S){ap(h,x,g),Qg(h,{type:g,index:Xc(null),first:void 0,last:void 0,size:0}),as||(h.size=0),null!=S&&Kh(S,h[b],{that:h,AS_ENTRIES:d})})),S=Zg(g),_=function define(h,g,d){var b,x,_=S(h),C=w(h,g);return C?C.value=d:(_.last=C={index:x=Wg(g,!0),key:g,value:d,previous:b=_.last,next:void 0,removed:!1},_.first||(_.first=C),b&&(b.next=C),as?_.size++:h.size++,"F"!==x&&(_.index[x]=C)),h},w=function getEntry(h,g){var d,b=S(h),x=Wg(g);if("F"!==x)return b.index[x];for(d=b.first;d;d=d.next)if(d.key==g)return d};return rp(x.prototype,{clear:function clear(){for(var h=S(this),g=h.index,d=h.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=void 0),delete g[d.index],d=d.next;h.first=h.last=void 0,as?h.size=0:this.size=0},delete:function _delete(h){var g=this,d=S(g),b=w(g,h);if(b){var x=b.next,_=b.previous;delete d.index[b.index],b.removed=!0,_&&(_.next=x),x&&(x.previous=_),d.first==b&&(d.first=x),d.last==b&&(d.last=_),as?d.size--:g.size--}return!!b},forEach:function forEach(h){for(var g,d=S(this),b=Ls(h,arguments.length>1?arguments[1]:void 0,3);g=g?g.next:d.first;)for(b(g.value,g.key,this);g&&g.removed;)g=g.previous},has:function has(h){return!!w(this,h)}}),rp(x.prototype,d?{get:function get(h){var g=w(this,h);return g&&g.value},set:function set(h,g){return _(this,0===h?0:h,g)}}:{add:function add(h){return _(this,h=0===h?0:h,h)}}),as&&Yg(x.prototype,"size",{get:function get(){return S(this).size}}),x},setStrong:function setStrong(h,g,d){var b=g+" Iterator",x=Zg(g),S=Zg(b);Vf(h,g,(function(h,g){Qg(this,{type:b,target:h,state:x(h),kind:g,last:void 0})}),(function(){for(var h=S(this),g=h.kind,d=h.last;d&&d.removed;)d=d.previous;return h.target&&(h.last=d=d?d.next:h.state.first)?"keys"==g?{value:d.key,done:!1}:"values"==g?{value:d.value,done:!1}:{value:[d.key,d.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),d?"entries":"values",!d,!0),ip(g)}});var Kg=Ns.Map,Jg=ru("Reflect","apply"),td=Function.apply,ed=!is((function(){Jg((function(){}))}));Us({target:"Reflect",stat:!0,forced:ed},{apply:function apply(h,g,d){return Is(h),Ds(d),Jg?Jg(h,g,d):td.call(h,g,d)}});var rd=Ns.Reflect.apply;Us({target:"Reflect",stat:!0,sham:!xf},{getPrototypeOf:function getPrototypeOf(h){return wf(Ds(h))}});var nd=Ns.Reflect.getPrototypeOf;function _typeof(h){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h})(h)}var id=[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],ad=[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 processCanvasRGBA(h,g,d,b,x,S){if(!(isNaN(S)||S<1)){S|=0;var _=function getImageDataFromCanvas(h,g,d,b,x){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof(h)||!("getContext"in h))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var S=h.getContext("2d");try{return S.getImageData(g,d,b,x)}catch(h){throw new Error("unable to access image data: "+h)}}(h,g,d,b,x);_=function processImageDataRGBA(h,g,d,b,x,S){for(var _,w=h.data,C=2*S+1,E=b-1,P=x-1,k=S+1,A=k*(k+1)/2,R=new od,M=R,N=1;N<C;N++)M=M.next=new od,N===k&&(_=M);M.next=R;for(var L=null,D=null,$=0,V=0,j=id[S],B=ad[S],U=0;U<x;U++){M=R;for(var z=w[V],G=w[V+1],q=w[V+2],X=w[V+3],Y=0;Y<k;Y++)M.r=z,M.g=G,M.b=q,M.a=X,M=M.next;for(var W=0,Q=0,Z=0,K=0,J=k*z,tt=k*G,et=k*q,rt=k*X,nt=A*z,it=A*G,at=A*q,ot=A*X,st=1;st<k;st++){var ut=V+((E<st?E:st)<<2),ct=w[ut],lt=w[ut+1],ft=w[ut+2],ht=w[ut+3],pt=k-st;nt+=(M.r=ct)*pt,it+=(M.g=lt)*pt,at+=(M.b=ft)*pt,ot+=(M.a=ht)*pt,W+=ct,Q+=lt,Z+=ft,K+=ht,M=M.next}L=R,D=_;for(var yt=0;yt<b;yt++){var vt=ot*j>>B;if(w[V+3]=vt,0!==vt){var gt=255/vt;w[V]=(nt*j>>B)*gt,w[V+1]=(it*j>>B)*gt,w[V+2]=(at*j>>B)*gt}else w[V]=w[V+1]=w[V+2]=0;nt-=J,it-=tt,at-=et,ot-=rt,J-=L.r,tt-=L.g,et-=L.b,rt-=L.a;var dt=yt+S+1;dt=$+(dt<E?dt:E)<<2,nt+=W+=L.r=w[dt],it+=Q+=L.g=w[dt+1],at+=Z+=L.b=w[dt+2],ot+=K+=L.a=w[dt+3],L=L.next;var mt=D,bt=mt.r,xt=mt.g,St=mt.b,_t=mt.a;J+=bt,tt+=xt,et+=St,rt+=_t,W-=bt,Q-=xt,Z-=St,K-=_t,D=D.next,V+=4}$+=b}for(var wt=0;wt<b;wt++){var Ct=w[V=wt<<2],Et=w[V+1],Pt=w[V+2],kt=w[V+3],Ot=k*Ct,At=k*Et,Tt=k*Pt,Rt=k*kt,Mt=A*Ct,Nt=A*Et,It=A*Pt,Lt=A*kt;M=R;for(var Dt=0;Dt<k;Dt++)M.r=Ct,M.g=Et,M.b=Pt,M.a=kt,M=M.next;for(var $t=b,Vt=0,jt=0,Ft=0,Bt=0,Ut=1;Ut<=S;Ut++){V=$t+wt<<2;var zt=k-Ut;Mt+=(M.r=Ct=w[V])*zt,Nt+=(M.g=Et=w[V+1])*zt,It+=(M.b=Pt=w[V+2])*zt,Lt+=(M.a=kt=w[V+3])*zt,Bt+=Ct,Vt+=Et,jt+=Pt,Ft+=kt,M=M.next,Ut<P&&($t+=b)}V=wt,L=R,D=_;for(var Gt=0;Gt<x;Gt++){var Ht=V<<2;w[Ht+3]=kt=Lt*j>>B,kt>0?(kt=255/kt,w[Ht]=(Mt*j>>B)*kt,w[Ht+1]=(Nt*j>>B)*kt,w[Ht+2]=(It*j>>B)*kt):w[Ht]=w[Ht+1]=w[Ht+2]=0,Mt-=Ot,Nt-=At,It-=Tt,Lt-=Rt,Ot-=L.r,At-=L.g,Tt-=L.b,Rt-=L.a,Ht=wt+((Ht=Gt+k)<P?Ht:P)*b<<2,Mt+=Bt+=L.r=w[Ht],Nt+=Vt+=L.g=w[Ht+1],It+=jt+=L.b=w[Ht+2],Lt+=Ft+=L.a=w[Ht+3],L=L.next,Ot+=Ct=D.r,At+=Et=D.g,Tt+=Pt=D.b,Rt+=kt=D.a,Bt-=Ct,Vt-=Et,jt-=Pt,Ft-=kt,D=D.next,V+=b}}return h}(_,0,0,b,x,S),h.getContext("2d").putImageData(_,g,d)}}var od=function BlurStack(){!function _classCallCheck(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(h){return h.replace(/(?!\u3000)\s+/gm," ")}function toNumbers(h){var g=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return pc(g).call(g,Zu)}var sd=/^[A-Z-]+$/;function normalizeAttributeName(h){return sd.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var g=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return g[2]||g[3]||g[4]}var ud=/(\[[^\]]+\])/g,cd=/(#[^\s\+>~\.\[:]+)/g,ld=/(\.[^\s\+>~\.\[:]+)/g,fd=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,hd=/(:[\w-]+\([^\)]*\))/gi,pd=/(:[^\s\+>~\.\[:]+)/g,yd=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,g){var d=h.match(g);return d?[h.replace(g," "),d.length]:[h,0]}var vd=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,g){return(h[0]*g[0]+h[1]*g[1])/(vectorMagnitude(h)*vectorMagnitude(g))}function vectorsAngle(h,g){return(h[0]*g[1]<h[1]*g[0]?-1:1)*Math.acos(vectorsRatio(h,g))}function CB1(h){return h*h*h}function CB2(h){return 3*h*h*(1-h)}function CB3(h){return 3*h*(1-h)*(1-h)}function CB4(h){return(1-h)*(1-h)*(1-h)}function QB1(h){return h*h}function QB2(h){return 2*h*(1-h)}function QB3(h){return(1-h)*(1-h)}var gd=function(){function Property(h,g,d){_classCallCheck$1(this,Property),this.document=h,this.name=g,this.value=d,this.isNormalizedColor=!1}return _createClass(Property,[{key:"split",value:function split(){var h,g,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",b=this.document,x=this.name;return pc(h=gv(g=compressSpaces(this.getString())).call(g).split(d)).call(h,(function(h){return new Property(b,x,h)}))}},{key:"hasValue",value:function hasValue(h){var g=this.value;return null!==g&&""!==g&&(h||0!==g)&&void 0!==g}},{key:"isString",value:function isString(h){var g=this.value,d="string"==typeof g;return d&&h?h.test(g):d}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case/px$/.test(h):case/^[0-9]+$/.test(h):return!0;default:return!1}}},{key:"setValue",value:function setValue(h){return this.value=h,this}},{key:"getValue",value:function getValue(h){return void 0===h||this.hasValue()?this.value:h}},{key:"getNumber",value:function getNumber(h){if(!this.hasValue())return void 0===h?0:Zu(h);var g=this.value,d=Zu(g);return this.isString(/%$/)&&(d/=100),d}},{key:"getString",value:function getString(h){return void 0===h||this.hasValue()?void 0===this.value?"":String(this.value):String(h)}},{key:"getColor",value:function getColor(h){var g=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,g=function normalizeColor(h){if(!Cu(h).call(h,"rgb"))return h;var g=3;return h.replace(/\d+(\.\d+)?/g,(function(h,d){return g--&&d?String(Math.round(Zu(h))):h}))}(g),this.value=g),g}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var d="boolean"==typeof h?[void 0,h]:[h],b=_slicedToArray(d,2),x=b[0],S=b[1],_=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(_.computeSize("x"),_.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(_.computeSize("x"),_.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*_.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*_.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(/%$/)&&S:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*_.computeSize(x);default:var w=this.getNumber();return g&&w<1?w*_.computeSize(x):w}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function 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)}}},{key:"getDefinition",value:function getDefinition(){var h=this.getString(),g=h.match(/#([^\)'"]+)/);return g&&(g=g[1]),g||(g=h),this.document.definitions[g]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,g){var d=this.getDefinition();if(!d)return null;if("function"==typeof d.createGradient)return d.createGradient(this.document.ctx,h,g);if("function"==typeof d.createPattern){if(d.getHrefAttribute().hasValue()){var b=d.getAttribute("patternTransform");d=d.getHrefAttribute().getDefinition(),b.hasValue()&&d.getAttribute("patternTransform",!0).setValue(b.value)}return d.createPattern(this.document.ctx,h,g)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var g=this.getColor(),d=g.length,b=0,x=0;x<d&&(","===g[x]&&b++,3!==b);x++);if(h.hasValue()&&this.isString()&&3!==b){var S=new Sv(g);S.ok&&(S.alpha=h.getNumber(),g=S.toRGBA())}return new Property(this.document,this.name,g)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();gd.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var dd=function(){function ViewPort(){_classCallCheck$1(this,ViewPort),this.viewPorts=[]}return _createClass(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,g){this.viewPorts.push({width:h,height:g})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var h=this.viewPorts;return h[h.length-1]}},{key:"computeSize",value:function computeSize(h){return"number"==typeof h?h:"x"===h?this.width:"y"===h?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),md=function(){function Point(h,g){_classCallCheck$1(this,Point),this.x=h,this.y=g}return _createClass(Point,[{key:"angleTo",value:function angleTo(h){return Math.atan2(h.y-this.y,h.x-this.x)}},{key:"applyTransform",value:function applyTransform(h){var g=this.x,d=this.y,b=g*h[0]+d*h[2]+h[4],x=g*h[1]+d*h[3]+h[5];this.x=b,this.y=x}}],[{key:"parse",value:function parse(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=toNumbers(h),b=_slicedToArray(d,2),x=b[0],S=void 0===x?g:x,_=b[1],w=void 0===_?g:_;return new Point(S,w)}},{key:"parseScale",value:function parseScale(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,d=toNumbers(h),b=_slicedToArray(d,2),x=b[0],S=void 0===x?g:x,_=b[1],w=void 0===_?S:_;return new Point(S,w)}},{key:"parsePath",value:function parsePath(h){for(var g=toNumbers(h),d=g.length,b=[],x=0;x<d;x+=2)b.push(new Point(g[x],g[x+1]));return b}}]),Point}(),bd=function(){function Mouse(h){var g,d;_classCallCheck$1(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=ev(g=this.onClick).call(g,this),this.onMouseMove=ev(d=this.onMouseMove).call(d,this)}return _createClass(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,g=this.onClick,d=this.onMouseMove,b=h.ctx.canvas;b.onclick=g,b.onmousemove=d,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var h=this.screen.ctx.canvas;this.working=!1,h.onclick=null,h.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var h=this.screen,g=this.events,d=this.eventElements,b=h.ctx.canvas.style;b&&(b.cursor=""),Lh(g).call(g,(function(h,g){for(var b=h.run,x=d[g];x;)b(x),x=x.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,g){if(this.working&&g){var d=this.events,b=this.eventElements;Lh(d).call(d,(function(d,x){var S=d.x,_=d.y;!b[x]&&g.isPointInPath&&g.isPointInPath(S,_)&&(b[x]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,g){if(this.working&&g){var d=this.events,b=this.eventElements;Lh(d).call(d,(function(d,x){var S=d.x,_=d.y;!b[x]&&g.isPointInBox(S,_)&&(b[x]=h)}))}}},{key:"mapXY",value:function mapXY(h,g){for(var d=this.screen,b=d.window,x=d.ctx,S=new md(h,g),_=x.canvas;_;)S.x-=_.offsetLeft,S.y-=_.offsetTop,_=_.offsetParent;return b.scrollX&&(S.x+=b.scrollX),b.scrollY&&(S.y+=b.scrollY),S}},{key:"onClick",value:function onClick(h){var g=this.mapXY((h||event).clientX,(h||event).clientY),d=g.x,b=g.y;this.events.push({type:"onclick",x:d,y:b,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var g=this.mapXY((h||event).clientX,(h||event).clientY),d=g.x,b=g.y;this.events.push({type:"onmousemove",x:d,y:b,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),xd="undefined"!=typeof window?window:null,Sd="undefined"!=typeof fetch?ev(fetch).call(fetch,void 0):null,_d=function(){function Screen(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=g.fetch,b=void 0===d?Sd:d,x=g.window,S=void 0===x?xd:x;_classCallCheck$1(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new dd,this.mouse=new bd(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=S,this.fetch=b}return _createClass(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:Yy.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var g=Xy(h=this.waits).call(h,(function(h){return h()}));return g&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=g,g}},{key:"setDefaults",value:function setDefaults(h){h.strokeStyle="rgba(0,0,0,0)",h.lineCap="butt",h.lineJoin="miter",h.miterLimit=4}},{key:"setViewBox",value:function setViewBox(h){var g=h.document,d=h.ctx,b=h.aspectRatio,x=h.width,S=h.desiredWidth,_=h.height,w=h.desiredHeight,C=h.minX,E=void 0===C?0:C,P=h.minY,k=void 0===P?0:P,A=h.refX,R=h.refY,M=h.clip,N=void 0!==M&&M,L=h.clipX,D=void 0===L?0:L,$=h.clipY,V=void 0===$?0:$,j=_slicedToArray(compressSpaces(b).replace(/^defer\s/,"").split(" "),2),B=j[0]||"xMidYMid",U=j[1]||"meet",z=x/S,G=_/w,q=Math.min(z,G),X=Math.max(z,G),Y=S,W=w;"meet"===U&&(Y*=q,W*=q),"slice"===U&&(Y*=X,W*=X);var Q=new gd(g,"refX",A),Z=new gd(g,"refY",R),K=Q.hasValue()&&Z.hasValue();if(K&&d.translate(-q*Q.getPixels("x"),-q*Z.getPixels("y")),N){var J=q*D,tt=q*V;d.beginPath(),d.moveTo(J,tt),d.lineTo(x,tt),d.lineTo(x,_),d.lineTo(J,_),d.closePath(),d.clip()}if(!K){var et="meet"===U&&q===G,rt="slice"===U&&X===G,nt="meet"===U&&q===z,it="slice"===U&&X===z;/^xMid/.test(B)&&(et||rt)&&d.translate(x/2-Y/2,0),/YMid$/.test(B)&&(nt||it)&&d.translate(0,_/2-W/2),/^xMax/.test(B)&&(et||rt)&&d.translate(x-Y,0),/YMax$/.test(B)&&(nt||it)&&d.translate(0,_-W)}switch(!0){case"none"===B:d.scale(z,G);break;case"meet"===U:d.scale(q,q);break;case"slice"===U:d.scale(X,X)}d.translate(-E,-k)}},{key:"start",value:function start(h){var g=this,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=d.enableRedraw,x=void 0!==b&&b,S=d.ignoreMouse,_=void 0!==S&&S,w=d.ignoreAnimation,C=void 0!==w&&w,E=d.ignoreDimensions,P=void 0!==E&&E,k=d.ignoreClear,A=void 0!==k&&k,R=d.forceRedraw,M=d.scaleWidth,N=d.scaleHeight,L=d.offsetX,D=d.offsetY,$=this.FRAMERATE,V=this.mouse,j=1e3/$;if(this.frameDuration=j,this.readyPromise=new Yy((function(h){g.resolveReady=h})),this.isReady()&&this.render(h,P,A,M,N,L,D),x){var B=Fy(),U=B,z=0,G=function tick(){B=Fy(),(z=B-U)>=j&&(U=B-z%j,g.shouldUpdate(C,R)&&(g.render(h,P,A,M,N,L,D),V.runEvents())),g.intervalId=hv(tick)};_||V.start(),this.intervalId=hv(G)}}},{key:"stop",value:function stop(){this.intervalId&&(hv.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,g){if(!h){var d,b=this.frameDuration,shouldUpdate=jy(d=this.animations).call(d,(function(h,g){return g.update(b)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof g||!g())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,g,d,b,x,S,_){var w=this.CLIENT_WIDTH,C=this.CLIENT_HEIGHT,E=this.viewPort,P=this.ctx,k=this.isFirstRender,A=P.canvas;E.clear(),A.width&&A.height?E.setCurrent(A.width,A.height):E.setCurrent(w,C);var R=h.getStyle("width"),M=h.getStyle("height");!g&&(k||"number"!=typeof b&&"number"!=typeof x)&&(R.hasValue()&&(A.width=R.getPixels("x"),A.style&&(A.style.width="".concat(A.width,"px"))),M.hasValue()&&(A.height=M.getPixels("y"),A.style&&(A.style.height="".concat(A.height,"px"))));var N=A.clientWidth||A.width,L=A.clientHeight||A.height;if(g&&R.hasValue()&&M.hasValue()&&(N=R.getPixels("x"),L=M.getPixels("y")),E.setCurrent(N,L),"number"==typeof S&&h.getAttribute("x",!0).setValue(S),"number"==typeof _&&h.getAttribute("y",!0).setValue(_),"number"==typeof b||"number"==typeof x){var D,$,V=toNumbers(h.getAttribute("viewBox").getString()),j=0,B=0;if("number"==typeof b){var U=h.getStyle("width");U.hasValue()?j=U.getPixels("x")/b:isNaN(V[2])||(j=V[2]/b)}if("number"==typeof x){var z=h.getStyle("height");z.hasValue()?B=z.getPixels("y")/x:isNaN(V[3])||(B=V[3]/x)}j||(j=B),B||(B=j),h.getAttribute("width",!0).setValue(b),h.getAttribute("height",!0).setValue(x);var G=h.getStyle("transform",!0,!0);G.setValue(Ry(D=Ry($="".concat(G.getString()," scale(")).call($,1/j,", ")).call(D,1/B,")"))}d||P.clearRect(0,0,N,L),h.render(P),k&&(this.isFirstRender=!1)}}]),Screen}();_d.defaultWindow=xd,_d.defaultFetch=Sd;var wd=_d.defaultFetch,Cd="undefined"!=typeof DOMParser?DOMParser:null,Ed=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=h.fetch,d=void 0===g?wd:g,b=h.DOMParser,x=void 0===b?Cd:b;_classCallCheck$1(this,Parser),this.fetch=d,this.DOMParser=x}var h,g;return _createClass(Parser,[{key:"parse",value:(g=_asyncToGenerator(Qh.mark((function _callee(h){return Qh.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:if(!/^</.test(h)){g.next=2;break}return g.abrupt("return",this.parseFromString(h));case 2:return g.abrupt("return",this.load(h));case 3:case"end":return g.stop()}}),_callee,this)}))),function parse(h){return g.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var g=new this.DOMParser;try{return this.checkDocument(g.parseFromString(h,"image/svg+xml"))}catch(d){return this.checkDocument(g.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var g=h.getElementsByTagName("parsererror")[0];if(g)throw new Error(g.textContent);return h}},{key:"load",value:(h=_asyncToGenerator(Qh.mark((function _callee2(h){var g,d;return Qh.wrap((function _callee2$(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,this.fetch(h);case 2:return g=b.sent,b.next=5,g.text();case 5:return d=b.sent,b.abrupt("return",this.parseFromString(d));case 7:case"end":return b.stop()}}),_callee2,this)}))),function load(g){return h.apply(this,arguments)})}]),Parser}(),Pd=function(){function Translate(h,g){_classCallCheck$1(this,Translate),this.type="translate",this.point=null,this.point=md.parse(g)}return _createClass(Translate,[{key:"apply",value:function apply(h){var g=this.point,d=g.x,b=g.y;h.translate(d||0,b||0)}},{key:"unapply",value:function unapply(h){var g=this.point,d=g.x,b=g.y;h.translate(-1*d||0,-1*b||0)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.point,d=g.x,b=g.y;h.applyTransform([1,0,0,1,d||0,b||0])}}]),Translate}(),kd=function(){function Rotate(h,g,d){_classCallCheck$1(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var b=toNumbers(g);this.angle=new gd(h,"angle",b[0]),this.originX=d[0],this.originY=d[1],this.cx=b[1]||0,this.cy=b[2]||0}return _createClass(Rotate,[{key:"apply",value:function apply(h){var g=this.cx,d=this.cy,b=this.originX,x=this.originY,S=this.angle,_=g+b.getPixels("x"),w=d+x.getPixels("y");h.translate(_,w),h.rotate(S.getRadians()),h.translate(-_,-w)}},{key:"unapply",value:function unapply(h){var g=this.cx,d=this.cy,b=this.angle;h.translate(g,d),h.rotate(-1*b.getRadians()),h.translate(-g,-d)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.cx,d=this.cy,b=this.angle.getRadians();h.applyTransform([1,0,0,1,g||0,d||0]),h.applyTransform([Math.cos(b),Math.sin(b),-Math.sin(b),Math.cos(b),0,0]),h.applyTransform([1,0,0,1,-g||0,-d||0])}}]),Rotate}(),Od=function(){function Scale(h,g){_classCallCheck$1(this,Scale),this.type="scale",this.scale=null;var d=md.parseScale(g);0!==d.x&&0!==d.y||(d.x=vd,d.y=vd),this.scale=d}return _createClass(Scale,[{key:"apply",value:function apply(h){var g=this.scale,d=g.x,b=g.y;h.scale(d,b||d)}},{key:"unapply",value:function unapply(h){var g=this.scale,d=g.x,b=g.y;h.scale(1/d,1/b||d)}},{key:"applyToPoint",value:function applyToPoint(h){var g=this.scale,d=g.x,b=g.y;h.applyTransform([d||0,0,0,b||0,0,0])}}]),Scale}(),Ad=function(){function Matrix(h,g){_classCallCheck$1(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(g)}return _createClass(Matrix,[{key:"apply",value:function apply(h){var g=this.matrix;h.transform(g[0],g[1],g[2],g[3],g[4],g[5])}},{key:"unapply",value:function unapply(h){var g=this.matrix,d=g[0],b=g[2],x=g[4],S=g[1],_=g[3],w=g[5],C=1/(d*(1*_-0*w)-b*(1*S-0*w)+x*(0*S-0*_));h.transform(C*(1*_-0*w),C*(0*w-1*S),C*(0*x-1*b),C*(1*d-0*x),C*(b*w-x*_),C*(x*S-d*w))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var g=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Td=function(h){_inherits(Skew,h);var g=_createSuper(Skew);function Skew(h,d){var b;return _classCallCheck$1(this,Skew),(b=g.call(this,h,d)).type="skew",b.angle=null,b.angle=new gd(h,"angle",d),b}return Skew}(Ad);function _createSuper$1(h){var g=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Rd=function(h){_inherits(SkewX,h);var g=_createSuper$1(SkewX);function SkewX(h,d){var b;return _classCallCheck$1(this,SkewX),(b=g.call(this,h,d)).type="skewX",b.matrix=[1,0,Math.tan(b.angle.getRadians()),1,0,0],b}return SkewX}(Td);function _createSuper$2(h){var g=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Md=function(h){_inherits(SkewY,h);var g=_createSuper$2(SkewY);function SkewY(h,d){var b;return _classCallCheck$1(this,SkewY),(b=g.call(this,h,d)).type="skewY",b.matrix=[1,Math.tan(b.angle.getRadians()),0,1,0,0],b}return SkewY}(Td);var Nd=function(){function Transform(h,g,d){var b=this;_classCallCheck$1(this,Transform),this.document=h,this.transforms=[];var x=function parseTransforms(h){var g;return gv(g=compressSpaces(h)).call(g).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(g);Lh(x).call(x,(function(h){if("none"!==h){var g=function parseTransform(h){var g=_slicedToArray(h.split("("),2),d=g[0],b=g[1];return[gv(d).call(d),gv(b).call(b).replace(")","")]}(h),x=_slicedToArray(g,2),S=x[0],_=x[1],w=Transform.transformTypes[S];void 0!==w&&b.transforms.push(new w(b.document,_,d))}}))}return _createClass(Transform,[{key:"apply",value:function apply(h){for(var g=this.transforms,d=g.length,b=0;b<d;b++)g[b].apply(h)}},{key:"unapply",value:function unapply(h){for(var g=this.transforms,d=g.length-1;d>=0;d--)g[d].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var g=this.transforms,d=g.length,b=0;b<d;b++)g[b].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,g){var d=g.getStyle("transform",!1,!0),b=_slicedToArray(g.getStyle("transform-origin",!1,!0).split(),2),x=b[0],S=b[1],_=[x,void 0===S?x:S];return d.hasValue()?new Transform(h,d.getString(),_):null}}]),Transform}();Nd.transformTypes={translate:Pd,rotate:kd,scale:Od,matrix:Ad,skewX:Rd,skewY:Md};var Id=function(){function Element(h,g){var d,b,x=this,S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(_classCallCheck$1(this,Element),this.document=h,this.node=g,this.captureTextNodes=S,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],g&&1===g.nodeType){if(Lh(d=Xv(g.attributes)).call(d,(function(g){var d=normalizeAttributeName(g.nodeName);x.attributes[d]=new gd(h,d,g.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var _,w=pc(_=this.getAttribute("style").getString().split(";")).call(_,(function(h){return gv(h).call(h)}));Lh(w).call(w,(function(g){var d;if(g){var b=_slicedToArray(pc(d=g.split(":")).call(d,(function(h){return gv(h).call(h)})),2),S=b[0],_=b[1];x.styles[S]=new gd(h,S,_)}}))}var C=h.definitions,E=this.getAttribute("id");E.hasValue()&&(C[E.getValue()]||(C[E.getValue()]=this)),Lh(b=Xv(g.childNodes)).call(b,(function(g){if(1===g.nodeType)x.addChild(g);else if(S&&(3===g.nodeType||4===g.nodeType)){var d=h.createTextNode(g);d.getText().length>0&&x.addChild(d)}}))}}return _createClass(Element,[{key:"getAttribute",value:function getAttribute(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=this.attributes[h];if(!d&&g){var b=new gd(this.document,h,"");return this.attributes[h]=b,b}return d||gd.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var h in this.attributes)if("href"===h||/:href$/.test(h))return this.attributes[h];return gd.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=this.styles[h];if(b)return b;var x=this.getAttribute(h);if(x&&x.hasValue())return this.styles[h]=x,x;if(!d){var S=this.parent;if(S){var _=S.getStyle(h);if(_&&_.hasValue())return _}}if(g){var w=new gd(this.document,h,"");return this.styles[h]=w,w}return b||gd.empty(this.document)}},{key:"render",value:function render(h){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(h.save(),this.getStyle("mask").hasValue()){var g=this.getStyle("mask").getDefinition();g&&(this.applyEffects(h),g.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var d=this.getStyle("filter").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else this.setContext(h),this.renderChildren(h),this.clearContext(h);h.restore()}}},{key:"setContext",value:function setContext(h){}},{key:"applyEffects",value:function applyEffects(h){var g=Nd.fromElement(this.document,this);g&&g.apply(h);var d=this.getStyle("clip-path",!1,!0);if(d.hasValue()){var b=d.getDefinition();b&&b.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var g;Lh(g=this.children).call(g,(function(g){g.render(h)}))}},{key:"addChild",value:function addChild(h){var g,d=h instanceof Element?h:this.document.createElement(h);d.parent=this,qv(g=Element.ignoreChildTypes).call(g,d.type)||this.children.push(d)}},{key:"matchesSelector",value:function matchesSelector(h){var g,d=this.node;if("function"==typeof d.matches)return d.matches(h);var b=d.getAttribute("class");return!(!b||""===b)&&jv(g=b.split(" ")).call(g,(function(g){if(".".concat(g)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,g=h.styles,d=h.stylesSpecificity;for(var b in g)if("@"!==b[0]&&this.matchesSelector(b)){var x=g[b],S=d[b];if(x)for(var _ in x){var w=this.stylesSpecificity[_];void 0===w&&(w="000"),S>=w&&(this.styles[_]=x[_],this.stylesSpecificity[_]=S)}}}},{key:"removeStyles",value:function removeStyles(h,g){return jy(g).call(g,(function(g,d){var b,x=h.getStyle(d);if(!x.hasValue())return g;var S=x.getString();return x.setValue(""),Ry(b=[]).call(b,_toConsumableArray(g),[[d,S]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,g){Lh(g).call(g,(function(g){var d=_slicedToArray(g,2),b=d[0],x=d[1];h.getStyle(b,!0).setValue(x)}))}}]),Element}();function _createSuper$3(h){var g=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}Id.ignoreChildTypes=["title"];var Ld=function(h){_inherits(UnknownElement,h);var g=_createSuper$3(UnknownElement);function UnknownElement(h,d,b){return _classCallCheck$1(this,UnknownElement),g.call(this,h,d,b)}return UnknownElement}(Id);function wrapFontFamily(h){var g=gv(h).call(h);return/^('|")/.test(g)?g:'"'.concat(g,'"')}function prepareFontStyle(h){if(!h)return"";var g=gv(h).call(h).toLowerCase();switch(g){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return g;default:return/^oblique\s+(-|)\d+deg$/.test(g)?g:""}}function prepareFontWeight(h){if(!h)return"";var g=gv(h).call(h).toLowerCase();switch(g){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return g;default:return/^[\d.]+$/.test(g)?g:""}}var Dd=function(){function Font(h,g,d,b,x,S){_classCallCheck$1(this,Font);var _=S?"string"==typeof S?Font.parse(S):S:{};this.fontFamily=x||_.fontFamily,this.fontSize=b||_.fontSize,this.fontStyle=h||_.fontStyle,this.fontWeight=d||_.fontWeight,this.fontVariant=g||_.fontVariant}return _createClass(Font,[{key:"toString",value:function toString(){var h,d,b;return gv(h=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(d=this.fontFamily,void 0===g?d:pc(b=gv(d).call(d).split(",")).call(b,wrapFontFamily).join(","))].join(" ")).call(h)}}],[{key:"parse",value:function parse(){var h,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",d=arguments.length>1?arguments[1]:void 0,b="",x="",S="",_="",w="",C=gv(h=compressSpaces(g)).call(h).split(" "),E={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return Lh(C).call(C,(function(h){var g,d,C;switch(!0){case!E.fontStyle&&qv(g=Font.styles).call(g,h):"inherit"!==h&&(b=h),E.fontStyle=!0;break;case!E.fontVariant&&qv(d=Font.variants).call(d,h):"inherit"!==h&&(x=h),E.fontStyle=!0,E.fontVariant=!0;break;case!E.fontWeight&&qv(C=Font.weights).call(C,h):"inherit"!==h&&(S=h),E.fontStyle=!0,E.fontVariant=!0,E.fontWeight=!0;break;case!E.fontSize:if("inherit"!==h){var P=_slicedToArray(h.split("/"),1);_=P[0]}E.fontStyle=!0,E.fontVariant=!0,E.fontWeight=!0,E.fontSize=!0;break;default:"inherit"!==h&&(w+=h)}})),new Font(b,x,S,_,w,d)}}]),Font}();Dd.styles="normal|italic|oblique|inherit",Dd.variants="normal|small-caps|inherit",Dd.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var $d=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,b=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;_classCallCheck$1(this,BoundingBox),this.x1=h,this.y1=g,this.x2=d,this.y2=b,this.addPoint(h,g),this.addPoint(d,b)}return _createClass(BoundingBox,[{key:"addPoint",value:function addPoint(h,g){void 0!==h&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=h,this.x2=h),h<this.x1&&(this.x1=h),h>this.x2&&(this.x2=h)),void 0!==g&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=g,this.y2=g),g<this.y1&&(this.y1=g),g>this.y2&&(this.y2=g))}},{key:"addX",value:function addX(h){this.addPoint(h,null)}},{key:"addY",value:function addY(h){this.addPoint(null,h)}},{key:"addBoundingBox",value:function addBoundingBox(h){if(h){var g=h.x1,d=h.y1,b=h.x2,x=h.y2;this.addPoint(g,d),this.addPoint(b,x)}}},{key:"sumCubic",value:function sumCubic(h,g,d,b,x){return Math.pow(1-h,3)*g+3*Math.pow(1-h,2)*h*d+3*(1-h)*Math.pow(h,2)*b+Math.pow(h,3)*x}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,g,d,b,x){var S=6*g-12*d+6*b,_=-3*g+9*d-9*b+3*x,w=3*d-3*g;if(0!==_){var C=Math.pow(S,2)-4*w*_;if(!(C<0)){var E=(-S+Math.sqrt(C))/(2*_);0<E&&E<1&&(h?this.addX(this.sumCubic(E,g,d,b,x)):this.addY(this.sumCubic(E,g,d,b,x)));var P=(-S-Math.sqrt(C))/(2*_);0<P&&P<1&&(h?this.addX(this.sumCubic(P,g,d,b,x)):this.addY(this.sumCubic(P,g,d,b,x)))}}else{if(0===S)return;var k=-w/S;0<k&&k<1&&(h?this.addX(this.sumCubic(k,g,d,b,x)):this.addY(this.sumCubic(k,g,d,b,x)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,g,d,b,x,S,_,w){this.addPoint(h,g),this.addPoint(_,w),this.bezierCurveAdd(!0,h,d,x,_),this.bezierCurveAdd(!1,g,b,S,w)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,g,d,b,x,S){var _=h+2/3*(d-h),w=g+2/3*(b-g),C=_+1/3*(x-h),E=w+1/3*(S-g);this.addBezierCurve(h,g,_,C,w,E,x,S)}},{key:"isPointInBox",value:function isPointInBox(h,g){var d=this.x1,b=this.y1,x=this.x2,S=this.y2;return d<=h&&h<=x&&b<=g&&g<=S}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(h){var g=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Vd=function(h){_inherits(RenderedElement,h);var g=_createSuper$4(RenderedElement);function RenderedElement(){var h;return _classCallCheck$1(this,RenderedElement),(h=g.apply(this,arguments)).modifiedEmSizeStack=!1,h}return _createClass(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,g=this;g;){var d=g.getStyle("opacity",!1,!0);d.hasValue(!0)&&(h*=d.getNumber()),g=g.parent}return h}},{key:"setContext",value:function setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!g){var d=this.getStyle("fill"),b=this.getStyle("fill-opacity"),x=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(d.isUrlDefinition()){var _=d.getFillStyleDefinition(this,b);_&&(h.fillStyle=_)}else if(d.hasValue()){"currentColor"===d.getString()&&d.setValue(this.getStyle("color").getColor());var w=d.getColor();"inherit"!==w&&(h.fillStyle="none"===w?"rgba(0,0,0,0)":w)}if(b.hasValue()){var C=new gd(this.document,"fill",h.fillStyle).addOpacity(b).getColor();h.fillStyle=C}if(x.isUrlDefinition()){var E=x.getFillStyleDefinition(this,S);E&&(h.strokeStyle=E)}else if(x.hasValue()){"currentColor"===x.getString()&&x.setValue(this.getStyle("color").getColor());var P=x.getString();"inherit"!==P&&(h.strokeStyle="none"===P?"rgba(0,0,0,0)":P)}if(S.hasValue()){var k=new gd(this.document,"stroke",h.strokeStyle).addOpacity(S).getString();h.strokeStyle=k}var A=this.getStyle("stroke-width");if(A.hasValue()){var R=A.getPixels();h.lineWidth=R||vd}var M=this.getStyle("stroke-linecap"),N=this.getStyle("stroke-linejoin"),L=this.getStyle("stroke-miterlimit"),D=this.getStyle("paint-order"),$=this.getStyle("stroke-dasharray"),V=this.getStyle("stroke-dashoffset");if(M.hasValue()&&(h.lineCap=M.getString()),N.hasValue()&&(h.lineJoin=N.getString()),L.hasValue()&&(h.miterLimit=L.getNumber()),D.hasValue()&&(h.paintOrder=D.getValue()),$.hasValue()&&"none"!==$.getString()){var j=toNumbers($.getString());void 0!==h.setLineDash?h.setLineDash(j):void 0!==h.webkitLineDash?h.webkitLineDash=j:void 0===h.mozDash||1===j.length&&0===j[0]||(h.mozDash=j);var B=V.getPixels();void 0!==h.lineDashOffset?h.lineDashOffset=B:void 0!==h.webkitLineDashOffset?h.webkitLineDashOffset=B:void 0!==h.mozDashOffset&&(h.mozDashOffset=B)}}if(this.modifiedEmSizeStack=!1,void 0!==h.font){var U=this.getStyle("font"),z=this.getStyle("font-style"),G=this.getStyle("font-variant"),q=this.getStyle("font-weight"),X=this.getStyle("font-size"),Y=this.getStyle("font-family"),W=new Dd(z.getString(),G.getString(),q.getString(),X.hasValue()?"".concat(X.getPixels(!0),"px"):"",Y.getString(),Dd.parse(U.getString(),h.font));z.setValue(W.fontStyle),G.setValue(W.fontVariant),q.setValue(W.fontWeight),X.setValue(W.fontSize),Y.setValue(W.fontFamily),h.font=W.toString(),X.isPixels()&&(this.document.emSize=X.getPixels(),this.modifiedEmSizeStack=!0)}g||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){_get(_getPrototypeOf(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(Id);function _createSuper$5(h){var g=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var jd=function(h){_inherits(TextElement,h);var g=_createSuper$5(TextElement);function TextElement(h,d,b){var x;return _classCallCheck$1(this,TextElement),(x=g.call(this,h,d,(this instanceof TextElement?this.constructor:void 0)===TextElement||b)).type="text",x.x=0,x.y=0,x.measureCache=-1,x}return _createClass(TextElement,[{key:"setContext",value:function setContext(h){var g=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_get(_getPrototypeOf(TextElement.prototype),"setContext",this).call(this,h,g);var d=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();d&&(h.textBaseline=d)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var g=this.getAttribute("dx"),d=this.getAttribute("dy");g.hasValue()&&(this.x+=g.getPixels("x")),d.hasValue()&&(this.y+=d.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var g,d=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var b=null;return Lh(g=this.children).call(g,(function(g,x){var S=d.getChildBoundingBox(h,d,d,x);b?b.addBoundingBox(S):b=S})),b}},{key:"getFontSize",value:function getFontSize(){var h=this.document,g=this.parent,d=Dd.parse(h.ctx.font).fontSize;return g.getStyle("font-size").getNumber(d)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var g=this.getFontSize();return new $d(this.x,this.y-g,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,g,d){var b=g[d],x=null;if(h.isArabic){var S=g.length,_=g[d-1],w=g[d+1],C="isolated";(0===d||" "===_)&&d<S-2&&" "!==w&&(C="terminal"),d>0&&" "!==_&&d<S-2&&" "!==w&&(C="medial"),d>0&&" "!==_&&(d===S-1||" "===w)&&(C="initial"),void 0!==h.glyphs[b]&&((x=h.glyphs[b][C])||"glyph"!==h.glyphs[b].type||(x=h.glyphs[b]))}else x=h.glyphs[b];return x||(x=h.missingGlyph),x}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(h){var g=h||this.node,d=Xv(g.parentNode.childNodes),b=ag(d).call(d,g),x=d.length-1,S=compressSpaces(g.value||g.text||g.textContent||"");return 0===b&&(S=function trimLeft(h){return h.replace(/^[\n \t]+/,"")}(S)),b===x&&(S=function trimRight(h){return h.replace(/[\n \t]+$/,"")}(S)),S}},{key:"renderChildren",value:function renderChildren(h){var g,d=this;if("text"===this.type){this.initializeCoordinates(h),Lh(g=this.children).call(g,(function(g,b){d.renderChild(h,d,d,b)}));var b=this.document.screen.mouse;b.isWorking()&&b.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}},{key:"renderTElementChildren",value:function renderTElementChildren(h){var g=this.document,d=this.parent,b=this.getText(),x=d.getStyle("font-family").getDefinition();if(x)for(var S,_=x.fontFace.unitsPerEm,w=Dd.parse(g.ctx.font),C=d.getStyle("font-size").getNumber(w.fontSize),E=d.getStyle("font-style").getString(w.fontStyle),P=C/_,k=x.isRTL?Kv(S=b.split("")).call(S).join(""):b,A=toNumbers(d.getAttribute("dx").getString()),R=k.length,M=0;M<R;M++){var N=this.getGlyph(x,k,M);h.translate(this.x,this.y),h.scale(P,-P);var L=h.lineWidth;h.lineWidth=h.lineWidth*_/C,"italic"===E&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===E&&h.transform(1,0,-.4,1,0,0),h.lineWidth=L,h.scale(1/P,-1/P),h.translate(-this.x,-this.y),this.x+=C*(N.horizAdvX||x.horizAdvX)/_,void 0===A[M]||isNaN(A[M])||(this.x+=A[M])}else{var D=this.x,$=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(b,D,$),h.fillStyle&&h.fillText(b,D,$)):(h.fillStyle&&h.fillText(b,D,$),h.strokeStyle&&h.strokeText(b,D,$))}}},{key:"getAnchorDelta",value:function getAnchorDelta(h,g,d){var b=this.getStyle("text-anchor").getString("start");if("start"!==b){for(var x=g.children,S=x.length,_=null,w=0,C=d;C<S&&(_=x[C],!(C>d&&_.getAttribute("x").hasValue()||_.getAttribute("text-anchor").hasValue()));C++)w+=_.measureTextRecursive(h);return-1*("end"===b?w:w/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,g,d,b){var x=d.children[b];if("function"!=typeof x.measureText)return x;h.save(),x.setContext(h,!0);var S=x.getAttribute("x"),_=x.getAttribute("y"),w=x.getAttribute("dx"),C=x.getAttribute("dy"),E=x.getAttribute("text-anchor").getString("start");if(0===b&&"textNode"!==x.type&&(S.hasValue()||S.setValue(g.getAttribute("x").getValue("0")),_.hasValue()||_.setValue(g.getAttribute("y").getValue("0")),w.hasValue()||w.setValue(g.getAttribute("dx").getValue("0")),C.hasValue()||C.setValue(g.getAttribute("dy").getValue("0"))),S.hasValue()){if(x.x=S.getPixels("x")+g.getAnchorDelta(h,d,b),"start"!==E){var P=x.measureTextRecursive(h);x.x+=-1*("end"===E?P:P/2)}w.hasValue()&&(x.x+=w.getPixels("x"))}else{if("start"!==E){var k=x.measureTextRecursive(h);g.x+=-1*("end"===E?k:k/2)}w.hasValue()&&(g.x+=w.getPixels("x")),x.x=g.x}return g.x=x.x+x.measureText(h),_.hasValue()?(x.y=_.getPixels("y"),C.hasValue()&&(x.y+=C.getPixels("y"))):(C.hasValue()&&(g.y+=C.getPixels("y")),x.y=g.y),g.y=x.y,x.clearContext(h),h.restore(),x}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,g,d,b){var x,S=this.adjustChildCoordinates(h,g,d,b);if("function"!=typeof S.getBoundingBox)return null;var _=S.getBoundingBox(h);return _?(Lh(x=S.children).call(x,(function(d,b){var x=g.getChildBoundingBox(h,g,S,b);_.addBoundingBox(x)})),_):null}},{key:"renderChild",value:function renderChild(h,g,d,b){var x,S=this.adjustChildCoordinates(h,g,d,b);S.render(h),Lh(x=S.children).call(x,(function(d,b){g.renderChild(h,g,S,b)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var g;return jy(g=this.children).call(g,(function(g,d){return g+d.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var g=this.measureCache;if(~g)return g;var d=this.getText(),b=this.measureTargetText(h,d);return this.measureCache=b,b}},{key:"measureTargetText",value:function measureTargetText(h,g){if(!g.length)return 0;var d=this.parent,b=d.getStyle("font-family").getDefinition();if(b){for(var x,S=this.getFontSize(),_=b.isRTL?Kv(x=g.split("")).call(x).join(""):g,w=toNumbers(d.getAttribute("dx").getString()),C=_.length,E=0,P=0;P<C;P++){E+=(this.getGlyph(b,_,P).horizAdvX||b.horizAdvX)*S/b.fontFace.unitsPerEm,void 0===w[P]||isNaN(w[P])||(E+=w[P])}return E}if(!h.measureText)return 10*g.length;h.save(),this.setContext(h,!0);var k=h.measureText(g).width;return this.clearContext(h),h.restore(),k}}]),TextElement}(Vd);function _createSuper$6(h){var g=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Fd=function(h){_inherits(TSpanElement,h);var g=_createSuper$6(TSpanElement);function TSpanElement(h,d,b){var x;return _classCallCheck$1(this,TSpanElement),(x=g.call(this,h,d,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||b)).type="tspan",x.text=x.children.length>0?"":x.getTextFromNode(),x}return _createClass(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(jd);function _createSuper$7(h){var g=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Bd=function(h){_inherits(TextNode,h);var g=_createSuper$7(TextNode);function TextNode(){var h;return _classCallCheck$1(this,TextNode),(h=g.apply(this,arguments)).type="textNode",h}return TextNode}(Fd);function _createSuper$8(h){var g=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Ud=function(h){_inherits(PathParser,h);var g=_createSuper$8(PathParser);function PathParser(h){var d;return _classCallCheck$1(this,PathParser),(d=g.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,d.start=null,d.current=null,d.command=null,d.commands=d.commands,d.i=-1,d.previousCommand=null,d.points=[],d.angles=[],d}return _createClass(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new md(0,0),this.control=new md(0,0),this.current=new md(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var h=this.commands[++this.i];return this.previousCommand=this.command,this.command=h,h}},{key:"getPoint",value:function getPoint(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",d=new md(this.command[h],this.command[g]);return this.makeAbsolute(d)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,g){var d=this.getPoint(h,g);return this.control=d,d}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,g){var d=this.getPoint(h,g);return this.current=d,d}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==xg.CURVE_TO&&h!==xg.SMOOTH_CURVE_TO&&h!==xg.QUAD_TO&&h!==xg.SMOOTH_QUAD_TO)return this.current;var g=this.current,d=g.x,b=g.y,x=this.control,S=x.x,_=x.y;return new md(2*d-S,2*b-_)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var g=this.current,d=g.x,b=g.y;h.x+=d,h.y+=b}return h}},{key:"addMarker",value:function addMarker(h,g,d){var b=this.points,x=this.angles;d&&x.length>0&&!x[x.length-1]&&(x[x.length-1]=b[b.length-1].angleTo(d)),this.addMarkerAngle(h,g?g.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,g){this.points.push(h),this.angles.push(g)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,g=h.length,d=0;d<g;d++)if(!h[d])for(var b=d+1;b<g;b++)if(h[b]){h[d]=h[b];break}return h}}]),PathParser}(xg);function _createSuper$9(h){var g=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var zd=function(h){_inherits(PathElement,h);var g=_createSuper$9(PathElement);function PathElement(h,d,b){var x;return _classCallCheck$1(this,PathElement),(x=g.call(this,h,d,b)).type="path",x.pathParser=null,x.pathParser=new Ud(x.getAttribute("d").getString()),x}return _createClass(PathElement,[{key:"path",value:function path(h){var g=this.pathParser,d=new $d;for(g.reset(),h&&h.beginPath();!g.isEnd();)switch(g.next().type){case Ud.MOVE_TO:this.pathM(h,d);break;case Ud.LINE_TO:this.pathL(h,d);break;case Ud.HORIZ_LINE_TO:this.pathH(h,d);break;case Ud.VERT_LINE_TO:this.pathV(h,d);break;case Ud.CURVE_TO:this.pathC(h,d);break;case Ud.SMOOTH_CURVE_TO:this.pathS(h,d);break;case Ud.QUAD_TO:this.pathQ(h,d);break;case Ud.SMOOTH_QUAD_TO:this.pathT(h,d);break;case Ud.ARC:this.pathA(h,d);break;case Ud.CLOSE_PATH:this.pathZ(h,d)}return d}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,g=h.getMarkerPoints(),d=h.getMarkerAngles();return pc(g).call(g,(function(h,g){return[h,d[g]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var g=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==g.getString("inherit")?lg(h).call(h,g.getString()):lg(h).call(h)),""!==h.strokeStyle&&h.stroke();var d=this.getMarkers();if(d){var b=d.length-1,x=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),_=this.getStyle("marker-end");if(x.isUrlDefinition()){var w=x.getDefinition(),C=_slicedToArray(d[0],2),E=C[0],P=C[1];w.render(h,E,P)}if(S.isUrlDefinition())for(var k=S.getDefinition(),A=1;A<b;A++){var R=_slicedToArray(d[A],2),M=R[0],N=R[1];k.render(h,M,N)}if(_.isUrlDefinition()){var L=_.getDefinition(),D=_slicedToArray(d[b],2),$=D[0],V=D[1];L.render(h,$,V)}}}},{key:"pathM",value:function pathM(h,g){var d=this.pathParser,b=PathElement.pathM(d).point,x=b.x,S=b.y;d.addMarker(b),g.addPoint(x,S),h&&h.moveTo(x,S)}},{key:"pathL",value:function pathL(h,g){var d=this.pathParser,b=PathElement.pathL(d),x=b.current,S=b.point,_=S.x,w=S.y;d.addMarker(S,x),g.addPoint(_,w),h&&h.lineTo(_,w)}},{key:"pathH",value:function pathH(h,g){var d=this.pathParser,b=PathElement.pathH(d),x=b.current,S=b.point,_=S.x,w=S.y;d.addMarker(S,x),g.addPoint(_,w),h&&h.lineTo(_,w)}},{key:"pathV",value:function pathV(h,g){var d=this.pathParser,b=PathElement.pathV(d),x=b.current,S=b.point,_=S.x,w=S.y;d.addMarker(S,x),g.addPoint(_,w),h&&h.lineTo(_,w)}},{key:"pathC",value:function pathC(h,g){var d=this.pathParser,b=PathElement.pathC(d),x=b.current,S=b.point,_=b.controlPoint,w=b.currentPoint;d.addMarker(w,_,S),g.addBezierCurve(x.x,x.y,S.x,S.y,_.x,_.y,w.x,w.y),h&&h.bezierCurveTo(S.x,S.y,_.x,_.y,w.x,w.y)}},{key:"pathS",value:function pathS(h,g){var d=this.pathParser,b=PathElement.pathS(d),x=b.current,S=b.point,_=b.controlPoint,w=b.currentPoint;d.addMarker(w,_,S),g.addBezierCurve(x.x,x.y,S.x,S.y,_.x,_.y,w.x,w.y),h&&h.bezierCurveTo(S.x,S.y,_.x,_.y,w.x,w.y)}},{key:"pathQ",value:function pathQ(h,g){var d=this.pathParser,b=PathElement.pathQ(d),x=b.current,S=b.controlPoint,_=b.currentPoint;d.addMarker(_,S,S),g.addQuadraticCurve(x.x,x.y,S.x,S.y,_.x,_.y),h&&h.quadraticCurveTo(S.x,S.y,_.x,_.y)}},{key:"pathT",value:function pathT(h,g){var d=this.pathParser,b=PathElement.pathT(d),x=b.current,S=b.controlPoint,_=b.currentPoint;d.addMarker(_,S,S),g.addQuadraticCurve(x.x,x.y,S.x,S.y,_.x,_.y),h&&h.quadraticCurveTo(S.x,S.y,_.x,_.y)}},{key:"pathA",value:function pathA(h,g){var d=this.pathParser,b=PathElement.pathA(d),x=b.currentPoint,S=b.rX,_=b.rY,w=b.sweepFlag,C=b.xAxisRotation,E=b.centp,P=b.a1,k=b.ad,A=1-w?1:-1,R=P+A*(k/2),M=new md(E.x+S*Math.cos(R),E.y+_*Math.sin(R));if(d.addMarkerAngle(M,R-A*Math.PI/2),d.addMarkerAngle(x,R-A*Math.PI),g.addPoint(x.x,x.y),h&&!isNaN(P)&&!isNaN(k)){var N=S>_?S:_,L=S>_?1:S/_,D=S>_?_/S:1;h.translate(E.x,E.y),h.rotate(C),h.scale(L,D),h.arc(0,0,N,P,P+k,Boolean(1-w)),h.scale(1/L,1/D),h.rotate(-C),h.translate(-E.x,-E.y)}}},{key:"pathZ",value:function pathZ(h,g){PathElement.pathZ(this.pathParser),h&&g.x1!==g.x2&&g.y1!==g.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var g=h.getAsCurrentPoint();return h.start=h.current,{point:g}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var g=h.current,d=h.command,b=new md((d.relative?g.x:0)+d.x,g.y);return h.current=b,{current:g,point:b}}},{key:"pathV",value:function pathV(h){var g=h.current,d=h.command,b=new md(g.x,(d.relative?g.y:0)+d.y);return h.current=b,{current:g,point:b}}},{key:"pathC",value:function pathC(h){return{current:h.current,point:h.getPoint("x1","y1"),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(h){return{current:h.current,point:h.getReflectedControlPoint(),controlPoint:h.getAsControlPoint("x2","y2"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(h){return{current:h.current,controlPoint:h.getAsControlPoint("x1","y1"),currentPoint:h.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(h){var g=h.current,d=h.getReflectedControlPoint();return h.control=d,{current:g,controlPoint:d,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var g=h.current,d=h.command,b=d.rX,x=d.rY,S=d.xRot,_=d.lArcFlag,w=d.sweepFlag,C=S*(Math.PI/180),E=h.getAsCurrentPoint(),P=new md(Math.cos(C)*(g.x-E.x)/2+Math.sin(C)*(g.y-E.y)/2,-Math.sin(C)*(g.x-E.x)/2+Math.cos(C)*(g.y-E.y)/2),k=Math.pow(P.x,2)/Math.pow(b,2)+Math.pow(P.y,2)/Math.pow(x,2);k>1&&(b*=Math.sqrt(k),x*=Math.sqrt(k));var A=(_===w?-1:1)*Math.sqrt((Math.pow(b,2)*Math.pow(x,2)-Math.pow(b,2)*Math.pow(P.y,2)-Math.pow(x,2)*Math.pow(P.x,2))/(Math.pow(b,2)*Math.pow(P.y,2)+Math.pow(x,2)*Math.pow(P.x,2)));isNaN(A)&&(A=0);var R=new md(A*b*P.y/x,A*-x*P.x/b),M=new md((g.x+E.x)/2+Math.cos(C)*R.x-Math.sin(C)*R.y,(g.y+E.y)/2+Math.sin(C)*R.x+Math.cos(C)*R.y),N=vectorsAngle([1,0],[(P.x-R.x)/b,(P.y-R.y)/x]),L=[(P.x-R.x)/b,(P.y-R.y)/x],D=[(-P.x-R.x)/b,(-P.y-R.y)/x],$=vectorsAngle(L,D);return vectorsRatio(L,D)<=-1&&($=Math.PI),vectorsRatio(L,D)>=1&&($=0),{currentPoint:E,rX:b,rY:x,sweepFlag:w,xAxisRotation:C,centp:M,a1:N,ad:$}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(Vd);function _createSuper$a(h){var g=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Gd=function(h){_inherits(SVGElement,h);var g=_createSuper$a(SVGElement);function SVGElement(){var h;return _classCallCheck$1(this,SVGElement),(h=g.apply(this,arguments)).type="svg",h.root=!1,h}return _createClass(SVGElement,[{key:"setContext",value:function setContext(h){var g=this.document,d=g.screen,b=g.window,x=h.canvas;if(d.setDefaults(h),x.style&&void 0!==h.font&&b&&void 0!==b.getComputedStyle){h.font=b.getComputedStyle(x).getPropertyValue("font");var S=new gd(g,"fontSize",Dd.parse(h.font).fontSize);S.hasValue()&&(g.rootEmSize=S.getPixels("y"),g.emSize=g.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var _=d.viewPort,w=_.width,C=_.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var E=this.getAttribute("refX"),P=this.getAttribute("refY"),k=this.getAttribute("viewBox"),A=k.hasValue()?toNumbers(k.getString()):null,R=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),M=0,N=0,L=0,D=0;A&&(M=A[0],N=A[1]),this.root||(w=this.getStyle("width").getPixels("x"),C=this.getStyle("height").getPixels("y"),"marker"===this.type&&(L=M,D=N,M=0,N=0)),d.viewPort.setCurrent(w,C),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),_get(_getPrototypeOf(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),A&&(w=A[2],C=A[3]),g.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:d.viewPort.width,desiredWidth:w,height:d.viewPort.height,desiredHeight:C,minX:M,minY:N,refX:E.getValue(),refY:P.getValue(),clip:R,clipX:L,clipY:D}),A&&(d.viewPort.removeCurrent(),d.viewPort.setCurrent(w,C))}},{key:"clearContext",value:function clearContext(h){_get(_getPrototypeOf(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var g,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,b=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.getAttribute("width",!0),S=this.getAttribute("height",!0),_=this.getAttribute("viewBox"),w=this.getAttribute("style"),C=x.getNumber(0),E=S.getNumber(0);if(b)if("string"==typeof b)this.getAttribute("preserveAspectRatio",!0).setValue(b);else{var P=this.getAttribute("preserveAspectRatio");P.hasValue()&&P.setValue(P.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(x.setValue(h),S.setValue(d),_.hasValue())||_.setValue(Ry(g="0 0 ".concat(C||h," ")).call(g,E||d));if(w.hasValue()){var k=this.getStyle("width"),A=this.getStyle("height");k.hasValue()&&k.setValue("".concat(h,"px")),A.hasValue()&&A.setValue("".concat(d,"px"))}}}]),SVGElement}(Vd);function _createSuper$b(h){var g=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Hd=function(h){_inherits(RectElement,h);var g=_createSuper$b(RectElement);function RectElement(){var h;return _classCallCheck$1(this,RectElement),(h=g.apply(this,arguments)).type="rect",h}return _createClass(RectElement,[{key:"path",value:function path(h){var g=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),b=this.getStyle("width",!1,!0).getPixels("x"),x=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),_=this.getAttribute("ry"),w=S.getPixels("x"),C=_.getPixels("y");if(S.hasValue()&&!_.hasValue()&&(C=w),_.hasValue()&&!S.hasValue()&&(w=C),w=Math.min(w,b/2),C=Math.min(C,x/2),h){var E=(Math.sqrt(2)-1)/3*4;h.beginPath(),x>0&&b>0&&(h.moveTo(g+w,d),h.lineTo(g+b-w,d),h.bezierCurveTo(g+b-w+E*w,d,g+b,d+C-E*C,g+b,d+C),h.lineTo(g+b,d+x-C),h.bezierCurveTo(g+b,d+x-C+E*C,g+b-w+E*w,d+x,g+b-w,d+x),h.lineTo(g+w,d+x),h.bezierCurveTo(g+w-E*w,d+x,g,d+x-C+E*C,g,d+x-C),h.lineTo(g,d+C),h.bezierCurveTo(g,d+C-E*C,g+w-E*w,d,g+w,d),h.closePath())}return new $d(g,d,g+b,d+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(zd);function _createSuper$c(h){var g=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var qd=function(h){_inherits(CircleElement,h);var g=_createSuper$c(CircleElement);function CircleElement(){var h;return _classCallCheck$1(this,CircleElement),(h=g.apply(this,arguments)).type="circle",h}return _createClass(CircleElement,[{key:"path",value:function path(h){var g=this.getAttribute("cx").getPixels("x"),d=this.getAttribute("cy").getPixels("y"),b=this.getAttribute("r").getPixels();return h&&b>0&&(h.beginPath(),h.arc(g,d,b,0,2*Math.PI,!1),h.closePath()),new $d(g-b,d-b,g+b,d+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(zd);function _createSuper$d(h){var g=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Xd=function(h){_inherits(EllipseElement,h);var g=_createSuper$d(EllipseElement);function EllipseElement(){var h;return _classCallCheck$1(this,EllipseElement),(h=g.apply(this,arguments)).type="ellipse",h}return _createClass(EllipseElement,[{key:"path",value:function path(h){var g=(Math.sqrt(2)-1)/3*4,d=this.getAttribute("rx").getPixels("x"),b=this.getAttribute("ry").getPixels("y"),x=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return h&&d>0&&b>0&&(h.beginPath(),h.moveTo(x+d,S),h.bezierCurveTo(x+d,S+g*b,x+g*d,S+b,x,S+b),h.bezierCurveTo(x-g*d,S+b,x-d,S+g*b,x-d,S),h.bezierCurveTo(x-d,S-g*b,x-g*d,S-b,x,S-b),h.bezierCurveTo(x+g*d,S-b,x+d,S-g*b,x+d,S),h.closePath()),new $d(x-d,S-b,x+d,S+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(zd);function _createSuper$e(h){var g=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Yd=function(h){_inherits(LineElement,h);var g=_createSuper$e(LineElement);function LineElement(){var h;return _classCallCheck$1(this,LineElement),(h=g.apply(this,arguments)).type="line",h}return _createClass(LineElement,[{key:"getPoints",value:function getPoints(){return[new md(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new md(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var g=_slicedToArray(this.getPoints(),2),d=g[0],b=d.x,x=d.y,S=g[1],_=S.x,w=S.y;return h&&(h.beginPath(),h.moveTo(b,x),h.lineTo(_,w)),new $d(b,x,_,w)}},{key:"getMarkers",value:function getMarkers(){var h=_slicedToArray(this.getPoints(),2),g=h[0],d=h[1],b=g.angleTo(d);return[[g,b],[d,b]]}}]),LineElement}(zd);function _createSuper$f(h){var g=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Wd=function(h){_inherits(PolylineElement,h);var g=_createSuper$f(PolylineElement);function PolylineElement(h,d,b){var x;return _classCallCheck$1(this,PolylineElement),(x=g.call(this,h,d,b)).type="polyline",x.points=[],x.points=md.parsePath(x.getAttribute("points").getString()),x}return _createClass(PolylineElement,[{key:"path",value:function path(h){var g=this.points,d=_slicedToArray(g,1)[0],b=d.x,x=d.y,S=new $d(b,x);return h&&(h.beginPath(),h.moveTo(b,x)),Lh(g).call(g,(function(g){var d=g.x,b=g.y;S.addPoint(d,b),h&&h.lineTo(d,b)})),S}},{key:"getMarkers",value:function getMarkers(){var h=this.points,g=h.length-1,d=[];return Lh(h).call(h,(function(b,x){x!==g&&d.push([b,b.angleTo(h[x+1])])})),d.length>0&&d.push([h[h.length-1],d[d.length-1][1]]),d}}]),PolylineElement}(zd);function _createSuper$g(h){var g=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Qd=function(h){_inherits(PolygonElement,h);var g=_createSuper$g(PolygonElement);function PolygonElement(){var h;return _classCallCheck$1(this,PolygonElement),(h=g.apply(this,arguments)).type="polygon",h}return _createClass(PolygonElement,[{key:"path",value:function path(h){var g=_get(_getPrototypeOf(PolygonElement.prototype),"path",this).call(this,h),d=_slicedToArray(this.points,1)[0],b=d.x,x=d.y;return h&&(h.lineTo(b,x),h.closePath()),g}}]),PolygonElement}(Wd);function _createSuper$h(h){var g=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Zd=function(h){_inherits(PatternElement,h);var g=_createSuper$h(PatternElement);function PatternElement(){var h;return _classCallCheck$1(this,PatternElement),(h=g.apply(this,arguments)).type="pattern",h}return _createClass(PatternElement,[{key:"createPattern",value:function createPattern(h,g,d){var b=this.getStyle("width").getPixels("x",!0),x=this.getStyle("height").getPixels("y",!0),S=new Gd(this.document,null);S.attributes.viewBox=new gd(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new gd(this.document,"width","".concat(b,"px")),S.attributes.height=new gd(this.document,"height","".concat(x,"px")),S.attributes.transform=new gd(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;var _=this.document.createCanvas(b,x),w=_.getContext("2d"),C=this.getAttribute("x"),E=this.getAttribute("y");C.hasValue()&&E.hasValue()&&w.translate(C.getPixels("x",!0),E.getPixels("y",!0)),d.hasValue()?this.styles["fill-opacity"]=d:wg(this.styles,"fill-opacity");for(var P=-1;P<=1;P++)for(var k=-1;k<=1;k++)w.save(),S.attributes.x=new gd(this.document,"x",P*_.width),S.attributes.y=new gd(this.document,"y",k*_.height),S.render(w),w.restore();return h.createPattern(_,"repeat")}}]),PatternElement}(Id);function _createSuper$i(h){var g=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Kd=function(h){_inherits(MarkerElement,h);var g=_createSuper$i(MarkerElement);function MarkerElement(){var h;return _classCallCheck$1(this,MarkerElement),(h=g.apply(this,arguments)).type="marker",h}return _createClass(MarkerElement,[{key:"render",value:function render(h,g,d){if(g){var b=g.x,x=g.y,S=this.getAttribute("orient").getValue("auto"),_=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(b,x),"auto"===S&&h.rotate(d),"strokeWidth"===_&&h.scale(h.lineWidth,h.lineWidth),h.save();var w=new Gd(this.document,null);w.type=this.type,w.attributes.viewBox=new gd(this.document,"viewBox",this.getAttribute("viewBox").getValue()),w.attributes.refX=new gd(this.document,"refX",this.getAttribute("refX").getValue()),w.attributes.refY=new gd(this.document,"refY",this.getAttribute("refY").getValue()),w.attributes.width=new gd(this.document,"width",this.getAttribute("markerWidth").getValue()),w.attributes.height=new gd(this.document,"height",this.getAttribute("markerHeight").getValue()),w.attributes.overflow=new gd(this.document,"overflow",this.getAttribute("overflow").getValue()),w.attributes.fill=new gd(this.document,"fill",this.getAttribute("fill").getColor("black")),w.attributes.stroke=new gd(this.document,"stroke",this.getAttribute("stroke").getValue("none")),w.children=this.children,w.render(h),h.restore(),"strokeWidth"===_&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===S&&h.rotate(-d),h.translate(-b,-x)}}}]),MarkerElement}(Id);function _createSuper$j(h){var g=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Jd=function(h){_inherits(DefsElement,h);var g=_createSuper$j(DefsElement);function DefsElement(){var h;return _classCallCheck$1(this,DefsElement),(h=g.apply(this,arguments)).type="defs",h}return _createClass(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(Id);function _createSuper$k(h){var g=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var tm=function(h){_inherits(GElement,h);var g=_createSuper$k(GElement);function GElement(){var h;return _classCallCheck$1(this,GElement),(h=g.apply(this,arguments)).type="g",h}return _createClass(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var g,d=new $d;return Lh(g=this.children).call(g,(function(g){d.addBoundingBox(g.getBoundingBox(h))})),d}}]),GElement}(Vd);function _createSuper$l(h){var g=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var em=function(h){_inherits(GradientElement,h);var g=_createSuper$l(GradientElement);function GradientElement(h,d,b){var x;_classCallCheck$1(this,GradientElement),(x=g.call(this,h,d,b)).attributesToInherit=["gradientUnits"],x.stops=[];var S=_assertThisInitialized(x),_=S.stops,w=S.children;return Lh(w).call(w,(function(h){"stop"===h.type&&_.push(h)})),x}return _createClass(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,g,d){var b=this,x=this;this.getHrefAttribute().hasValue()&&(x=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(x));var S=x.stops,_=this.getGradient(h,g);if(!_)return this.addParentOpacity(d,S[S.length-1].color);if(Lh(S).call(S,(function(h){_.addColorStop(h.offset,b.addParentOpacity(d,h.color))})),this.getAttribute("gradientTransform").hasValue()){var w=this.document,C=w.screen,E=C.MAX_VIRTUAL_PIXELS,P=_slicedToArray(C.viewPort.viewPorts,1)[0],k=new Hd(w,null);k.attributes.x=new gd(w,"x",-E/3),k.attributes.y=new gd(w,"y",-E/3),k.attributes.width=new gd(w,"width",E),k.attributes.height=new gd(w,"height",E);var A=new tm(w,null);A.attributes.transform=new gd(w,"transform",this.getAttribute("gradientTransform").getValue()),A.children=[k];var R=new Gd(w,null);R.attributes.x=new gd(w,"x",0),R.attributes.y=new gd(w,"y",0),R.attributes.width=new gd(w,"width",P.width),R.attributes.height=new gd(w,"height",P.height),R.children=[A];var M=w.createCanvas(P.width,P.height),N=M.getContext("2d");return N.fillStyle=_,R.render(N),N.createPattern(M,"no-repeat")}return _}},{key:"inheritStopContainer",value:function inheritStopContainer(h){var g,d=this;Lh(g=this.attributesToInherit).call(g,(function(g){!d.getAttribute(g).hasValue()&&h.getAttribute(g).hasValue()&&d.getAttribute(g,!0).setValue(h.getAttribute(g).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,g){return h.hasValue()?new gd(this.document,"color",g).addOpacity(h).getColor():g}}]),GradientElement}(Id);function _createSuper$m(h){var g=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var rm=function(h){_inherits(LinearGradientElement,h);var g=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,d,b){var x;return _classCallCheck$1(this,LinearGradientElement),(x=g.call(this,h,d,b)).type="linearGradient",x.attributesToInherit.push("x1","y1","x2","y2"),x}return _createClass(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),b=d?g.getBoundingBox(h):null;if(d&&!b)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 x=d?b.x+b.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=d?b.y+b.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),_=d?b.x+b.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),w=d?b.y+b.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return x===_&&S===w?null:h.createLinearGradient(x,S,_,w)}}]),LinearGradientElement}(em);function _createSuper$n(h){var g=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var nm=function(h){_inherits(RadialGradientElement,h);var g=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,d,b){var x;return _classCallCheck$1(this,RadialGradientElement),(x=g.call(this,h,d,b)).type="radialGradient",x.attributesToInherit.push("cx","cy","r","fx","fy","fr"),x}return _createClass(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,g){var d="objectBoundingBox"===this.getGradientUnits(),b=g.getBoundingBox(h);if(d&&!b)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 x=d?b.x+b.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=d?b.y+b.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),_=x,w=S;this.getAttribute("fx").hasValue()&&(_=d?b.x+b.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(w=d?b.y+b.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var C=d?(b.width+b.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),E=this.getAttribute("fr").getPixels();return h.createRadialGradient(_,w,E,x,S,C)}}]),RadialGradientElement}(em);function _createSuper$o(h){var g=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var im=function(h){_inherits(StopElement,h);var g=_createSuper$o(StopElement);function StopElement(h,d,b){var x;_classCallCheck$1(this,StopElement),(x=g.call(this,h,d,b)).type="stop";var S=Math.max(0,Math.min(1,x.getAttribute("offset").getNumber())),_=x.getStyle("stop-opacity"),w=x.getStyle("stop-color",!0);return""===w.getString()&&w.setValue("#000"),_.hasValue()&&(w=w.addOpacity(_)),x.offset=S,x.color=w.getColor(),x}return StopElement}(Id);function _createSuper$p(h){var g=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var am=function(h){_inherits(AnimateElement,h);var g=_createSuper$p(AnimateElement);function AnimateElement(h,d,b){var x;return _classCallCheck$1(this,AnimateElement),(x=g.call(this,h,d,b)).type="animate",x.duration=0,x.initialValue=null,x.initialUnits="",x.removed=!1,x.frozen=!1,h.screen.animations.push(_assertThisInitialized(x)),x.begin=x.getAttribute("begin").getMilliseconds(),x.maxDuration=x.begin+x.getAttribute("dur").getMilliseconds(),x.from=x.getAttribute("from"),x.to=x.getAttribute("to"),x.values=x.getAttribute("values"),kg(x).hasValue()&&kg(x).setValue(kg(x).getString().split(";")),x}return _createClass(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),g=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(g,!0):this.parent.getAttribute(g,!0)}},{key:"calcValue",value:function calcValue(){var h,g=this.initialUnits,d=this.getProgress(),b=d.progress,x=d.from,S=d.to,_=x.getNumber()+(S.getNumber()-x.getNumber())*b;return"%"===g&&(_*=100),Ry(h="".concat(_)).call(h,g)}},{key:"update",value:function update(h){var g=this.parent,d=this.getProperty();if(this.initialValue||(this.initialValue=d.getString(),this.initialUnits=d.getUnits()),this.duration>this.maxDuration){var b=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==b||this.frozen){if("remove"===b&&!this.removed)return this.removed=!0,d.setValue(g.animationFrozen?g.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,g.animationFrozen=!0,g.animationFrozenValue=d.getString();return!1}this.duration+=h;var x=!1;if(this.begin<this.duration){var S=this.calcValue(),_=this.getAttribute("type");if(_.hasValue()){var w,C=_.getString();S=Ry(w="".concat(C,"(")).call(w,S,")")}d.setValue(S),x=!0}return x}},{key:"getProgress",value:function getProgress(){var h=this.document,g=kg(this),d={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(g.hasValue()){var b=d.progress*(g.getValue().length-1),x=Math.floor(b),S=Math.ceil(b);d.from=new gd(h,"from",Zu(g.getValue()[x])),d.to=new gd(h,"to",Zu(g.getValue()[S])),d.progress=(b-x)/(S-x)}else d.from=this.from,d.to=this.to;return d}}]),AnimateElement}(Id);function _createSuper$q(h){var g=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var om=function(h){_inherits(AnimateColorElement,h);var g=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return _classCallCheck$1(this,AnimateColorElement),(h=g.apply(this,arguments)).type="animateColor",h}return _createClass(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),g=h.progress,d=h.from,b=h.to,x=new Sv(d.getColor()),S=new Sv(b.getColor());if(x.ok&&S.ok){var _,w,C=x.r+(S.r-x.r)*g,E=x.g+(S.g-x.g)*g,P=x.b+(S.b-x.b)*g;return Ry(_=Ry(w="rgb(".concat(Mg(C,10),", ")).call(w,Mg(E,10),", ")).call(_,Mg(P,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(am);function _createSuper$r(h){var g=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var sm=function(h){_inherits(AnimateTransformElement,h);var g=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return _classCallCheck$1(this,AnimateTransformElement),(h=g.apply(this,arguments)).type="animateTransform",h}return _createClass(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),g=h.progress,d=h.from,b=h.to,x=toNumbers(d.getString()),S=toNumbers(b.getString());return pc(x).call(x,(function(h,d){return h+(S[d]-h)*g})).join(" ")}}]),AnimateTransformElement}(am);function _createForOfIteratorHelper(h,g){var d;if(void 0===Lg||null==Ig(h)){if(Ng(h)||(d=function _unsupportedIterableToArray(h,g){var d;if(!h)return;if("string"==typeof h)return _arrayLikeToArray(h,g);var b=Dg(d=Object.prototype.toString.call(h)).call(d,8,-1);"Object"===b&&h.constructor&&(b=h.constructor.name);if("Map"===b||"Set"===b)return Xv(h);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray(h,g)}(h))||g&&h&&"number"==typeof h.length){d&&(h=d);var b=0,x=function F(){};return{s:x,n:function n(){return b>=h.length?{done:!0}:{done:!1,value:h[b++]}},e:function e(h){throw h},f:x}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,_=!0,w=!1;return{s:function s(){d=eh(h)},n:function n(){var h=d.next();return _=h.done,h},e:function e(h){w=!0,S=h},f:function f(){try{_||null==d.return||d.return()}finally{if(w)throw S}}}}function _arrayLikeToArray(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,b=new Array(g);d<g;d++)b[d]=h[d];return b}function _createSuper$s(h){var g=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var um=function(h){_inherits(FontElement,h);var g=_createSuper$s(FontElement);function FontElement(h,d,b){var x;_classCallCheck$1(this,FontElement),(x=g.call(this,h,d,b)).type="font",x.glyphs={},x.horizAdvX=x.getAttribute("horiz-adv-x").getNumber();var S,_=h.definitions,w=_createForOfIteratorHelper(_assertThisInitialized(x).children);try{for(w.s();!(S=w.n()).done;){var C=S.value;switch(C.type){case"font-face":x.fontFace=C;var E=C.getStyle("font-family");E.hasValue()&&(_[E.getString()]=_assertThisInitialized(x));break;case"missing-glyph":x.missingGlyph=C;break;case"glyph":var P=C;P.arabicForm?(x.isRTL=!0,x.isArabic=!0,void 0===x.glyphs[P.unicode]&&(x.glyphs[P.unicode]={}),x.glyphs[P.unicode][P.arabicForm]=P):x.glyphs[P.unicode]=P}}}catch(h){w.e(h)}finally{w.f()}return x}return _createClass(FontElement,[{key:"render",value:function render(){}}]),FontElement}(Id);function _createSuper$t(h){var g=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var cm=function(h){_inherits(FontFaceElement,h);var g=_createSuper$t(FontFaceElement);function FontFaceElement(h,d,b){var x;return _classCallCheck$1(this,FontFaceElement),(x=g.call(this,h,d,b)).type="font-face",x.ascent=x.getAttribute("ascent").getNumber(),x.descent=x.getAttribute("descent").getNumber(),x.unitsPerEm=x.getAttribute("units-per-em").getNumber(),x}return FontFaceElement}(Id);function _createSuper$u(h){var g=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var lm=function(h){_inherits(MissingGlyphElement,h);var g=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return _classCallCheck$1(this,MissingGlyphElement),(h=g.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}(zd);function _createSuper$v(h){var g=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var fm=function(h){_inherits(GlyphElement,h);var g=_createSuper$v(GlyphElement);function GlyphElement(h,d,b){var x;return _classCallCheck$1(this,GlyphElement),(x=g.call(this,h,d,b)).type="glyph",x.horizAdvX=x.getAttribute("horiz-adv-x").getNumber(),x.unicode=x.getAttribute("unicode").getString(),x.arabicForm=x.getAttribute("arabic-form").getString(),x}return GlyphElement}(zd);function _createSuper$w(h){var g=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var hm=function(h){_inherits(TRefElement,h);var g=_createSuper$w(TRefElement);function TRefElement(){var h;return _classCallCheck$1(this,TRefElement),(h=g.apply(this,arguments)).type="tref",h}return _createClass(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var g=h.children[0];if(g)return g.getText()}return""}}]),TRefElement}(jd);function _createSuper$x(h){var g=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var pm=function(h){_inherits(AElement,h);var g=_createSuper$x(AElement);function AElement(h,d,b){var x,S;_classCallCheck$1(this,AElement),(S=g.call(this,h,d,b)).type="a";var _=d.childNodes,w=_[0],C=_.length>0&&Xy(x=Xv(_)).call(x,(function(h){return 3===h.nodeType}));return S.hasText=C,S.text=C?S.getTextFromNode(w):"",S}return _createClass(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){_get(_getPrototypeOf(AElement.prototype),"renderChildren",this).call(this,h);var g=this.document,d=this.x,b=this.y,x=g.screen.mouse,S=new gd(g,"fontSize",Dd.parse(g.ctx.font).fontSize);x.isWorking()&&x.checkBoundingBox(this,new $d(d,b-S.getPixels("y"),d+this.measureText(h),b))}else if(this.children.length>0){var _=new tm(this.document,null);_.children=this.children,_.parent=this,_.render(h)}}},{key:"onClick",value:function onClick(){var h=this.document.window;h&&h.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}(jd);function _createForOfIteratorHelper$1(h,g){var d;if(void 0===Lg||null==Ig(h)){if(Ng(h)||(d=function _unsupportedIterableToArray$1(h,g){var d;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,g);var b=Dg(d=Object.prototype.toString.call(h)).call(d,8,-1);"Object"===b&&h.constructor&&(b=h.constructor.name);if("Map"===b||"Set"===b)return Xv(h);if("Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b))return _arrayLikeToArray$1(h,g)}(h))||g&&h&&"number"==typeof h.length){d&&(h=d);var b=0,x=function F(){};return{s:x,n:function n(){return b>=h.length?{done:!0}:{done:!1,value:h[b++]}},e:function e(h){throw h},f:x}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S,_=!0,w=!1;return{s:function s(){d=eh(h)},n:function n(){var h=d.next();return _=h.done,h},e:function e(h){w=!0,S=h},f:function f(){try{_||null==d.return||d.return()}finally{if(w)throw S}}}}function _arrayLikeToArray$1(h,g){(null==g||g>h.length)&&(g=h.length);for(var d=0,b=new Array(g);d<g;d++)b[d]=h[d];return b}function ownKeys(h,g){var d=Wh(h);if(Xh){var b=Xh(h);g&&(b=qh(b).call(b,(function(g){return jh(h,g).enumerable}))),d.push.apply(d,b)}return d}function _objectSpread(h){for(var g=1;g<arguments.length;g++){var d,b=null!=arguments[g]?arguments[g]:{};if(g%2)Lh(d=ownKeys(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(Oh)Ph(h,Oh(b));else{var x;Lh(x=ownKeys(Object(b))).call(x,(function(g){Eh(h,g,jh(b,g))}))}}return h}function _createSuper$y(h){var g=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var ym=function(h){_inherits(TextPathElement,h);var g=_createSuper$y(TextPathElement);function TextPathElement(h,d,b){var x;_classCallCheck$1(this,TextPathElement),(x=g.call(this,h,d,b)).type="textPath",x.textWidth=0,x.textHeight=0,x.pathLength=-1,x.glyphInfo=null,x.letterSpacingCache=[],x.measuresCache=new Kg([["",0]]);var S=x.getHrefAttribute().getDefinition();return x.text=x.getTextFromNode(),x.dataArray=x.parsePathData(S),x}return _createClass(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var g=this.dataArray;h&&h.beginPath(),Lh(g).call(g,(function(g){var d=g.type,b=g.points;switch(d){case Ud.LINE_TO:h&&h.lineTo(b[0],b[1]);break;case Ud.MOVE_TO:h&&h.moveTo(b[0],b[1]);break;case Ud.CURVE_TO:h&&h.bezierCurveTo(b[0],b[1],b[2],b[3],b[4],b[5]);break;case Ud.QUAD_TO:h&&h.quadraticCurveTo(b[0],b[1],b[2],b[3]);break;case Ud.ARC:var x=_slicedToArray(b,8),S=x[0],_=x[1],w=x[2],C=x[3],E=x[4],P=x[5],k=x[6],A=x[7],R=w>C?w:C,M=w>C?1:w/C,N=w>C?C/w:1;h&&(h.translate(S,_),h.rotate(k),h.scale(M,N),h.arc(0,0,R,E,E+P,Boolean(1-A)),h.scale(1/M,1/N),h.rotate(-k),h.translate(-S,-_));break;case Ud.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var g=this.parent.getStyle("text-decoration").getString(),d=this.getFontSize(),b=this.glyphInfo,x=h.fillStyle;"underline"===g&&h.beginPath(),Lh(b).call(b,(function(b,x){var S=b.p0,_=b.p1,w=b.rotation,C=b.text;h.save(),h.translate(S.x,S.y),h.rotate(w),h.fillStyle&&h.fillText(C,0,0),h.strokeStyle&&h.strokeText(C,0,0),h.restore(),"underline"===g&&(0===x&&h.moveTo(S.x,S.y+d/8),h.lineTo(_.x,_.y+d/5))})),"underline"===g&&(h.lineWidth=d/20,h.strokeStyle=x,h.stroke(),h.closePath()),h.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[h]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(h,g,d,b,x,S,_,w,C){var E=S,P=this.measureText(h,w);" "===w&&"justify"===g&&d<b&&(P+=(b-d)/x),C>-1&&(E+=this.getLetterSpacingAt(C));var k=this.textHeight/20,A=this.getEquidistantPointOnPath(E,k,0),R=this.getEquidistantPointOnPath(E+P,k,0),M={p0:A,p1:R},N=A&&R?Math.atan2(R.y-A.y,R.x-A.x):0;if(_){var L=Math.cos(Math.PI/2+N)*_,D=Math.cos(-N)*_;M.p0=_objectSpread(_objectSpread({},A),{},{x:A.x+L,y:A.y+D}),M.p1=_objectSpread(_objectSpread({},R),{},{x:R.x+L,y:R.y+D})}return{offset:E+=P,segment:M,rotation:N}}},{key:"measureText",value:function measureText(h,g){var d=this.measuresCache,b=g||this.getText();if(d.has(b))return d.get(b);var x=this.measureTargetText(h,b);return d.set(b,x),x}},{key:"setTextData",value:function setTextData(h){var g,d=this;if(!this.glyphInfo){var b=this.getText(),x=b.split(""),S=b.split(" ").length-1,_=pc(g=this.parent.getAttribute("dx").split()).call(g,(function(h){return h.getPixels("x")})),w=this.parent.getAttribute("dy").getPixels("y"),C=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),P=this.parent.getStyle("letter-spacing"),k=0;E.hasValue()&&"inherit"!==E.getValue()?E.hasValue()&&"initial"!==E.getValue()&&"unset"!==E.getValue()&&(k=E.getPixels()):k=P.getPixels();var A=[],R=b.length;this.letterSpacingCache=A;for(var M=0;M<R;M++)A.push(void 0!==_[M]?_[M]:k);var N=jy(A).call(A,(function(h,g,d){return 0===d?0:h+g||0}),0),L=this.measureText(h),D=Math.max(L+N,0);this.textWidth=L,this.textHeight=this.getFontSize(),this.glyphInfo=[];var $=this.getPathLength(),V=this.getStyle("startOffset").getNumber(0)*$,j=0;"middle"!==C&&"center"!==C||(j=-D/2),"end"!==C&&"right"!==C||(j=-D),j+=V,Lh(x).call(x,(function(g,b){var _=d.findSegmentToFitChar(h,C,D,$,S,j,w,g,b),E=_.offset,P=_.segment,k=_.rotation;j=E,P.p0&&P.p1&&d.glyphInfo.push({text:x[b],p0:P.p0,p1:P.p1,rotation:k})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var g=[],d=h.pathParser;for(d.reset();!d.isEnd();){var b=d.current,x=b?b.x:0,S=b?b.y:0,_=d.next(),w=_.type,C=[];switch(_.type){case Ud.MOVE_TO:this.pathM(d,C);break;case Ud.LINE_TO:w=this.pathL(d,C);break;case Ud.HORIZ_LINE_TO:w=this.pathH(d,C);break;case Ud.VERT_LINE_TO:w=this.pathV(d,C);break;case Ud.CURVE_TO:this.pathC(d,C);break;case Ud.SMOOTH_CURVE_TO:w=this.pathS(d,C);break;case Ud.QUAD_TO:this.pathQ(d,C);break;case Ud.SMOOTH_QUAD_TO:w=this.pathT(d,C);break;case Ud.ARC:C=this.pathA(d);break;case Ud.CLOSE_PATH:zd.pathZ(d)}_.type!==Ud.CLOSE_PATH?g.push({type:w,points:C,start:{x:x,y:S},pathLength:this.calcLength(x,S,w,C)}):g.push({type:Ud.CLOSE_PATH,points:[],pathLength:0})}return g}},{key:"pathM",value:function pathM(h,g){var d=zd.pathM(h).point,b=d.x,x=d.y;g.push(b,x)}},{key:"pathL",value:function pathL(h,g){var d=zd.pathL(h).point,b=d.x,x=d.y;return g.push(b,x),Ud.LINE_TO}},{key:"pathH",value:function pathH(h,g){var d=zd.pathH(h).point,b=d.x,x=d.y;return g.push(b,x),Ud.LINE_TO}},{key:"pathV",value:function pathV(h,g){var d=zd.pathV(h).point,b=d.x,x=d.y;return g.push(b,x),Ud.LINE_TO}},{key:"pathC",value:function pathC(h,g){var d=zd.pathC(h),b=d.point,x=d.controlPoint,S=d.currentPoint;g.push(b.x,b.y,x.x,x.y,S.x,S.y)}},{key:"pathS",value:function pathS(h,g){var d=zd.pathS(h),b=d.point,x=d.controlPoint,S=d.currentPoint;return g.push(b.x,b.y,x.x,x.y,S.x,S.y),Ud.CURVE_TO}},{key:"pathQ",value:function pathQ(h,g){var d=zd.pathQ(h),b=d.controlPoint,x=d.currentPoint;g.push(b.x,b.y,x.x,x.y)}},{key:"pathT",value:function pathT(h,g){var d=zd.pathT(h),b=d.controlPoint,x=d.currentPoint;return g.push(b.x,b.y,x.x,x.y),Ud.QUAD_TO}},{key:"pathA",value:function pathA(h){var g=zd.pathA(h),d=g.rX,b=g.rY,x=g.sweepFlag,S=g.xAxisRotation,_=g.centp,w=g.a1,C=g.ad;return 0===x&&C>0&&(C-=2*Math.PI),1===x&&C<0&&(C+=2*Math.PI),[_.x,_.y,d,b,w,C,S,x]}},{key:"calcLength",value:function calcLength(h,g,d,b){var x=0,S=null,_=null,w=0;switch(d){case Ud.LINE_TO:return this.getLineLength(h,g,b[0],b[1]);case Ud.CURVE_TO:for(x=0,S=this.getPointOnCubicBezier(0,h,g,b[0],b[1],b[2],b[3],b[4],b[5]),w=.01;w<=1;w+=.01)_=this.getPointOnCubicBezier(w,h,g,b[0],b[1],b[2],b[3],b[4],b[5]),x+=this.getLineLength(S.x,S.y,_.x,_.y),S=_;return x;case Ud.QUAD_TO:for(x=0,S=this.getPointOnQuadraticBezier(0,h,g,b[0],b[1],b[2],b[3]),w=.01;w<=1;w+=.01)_=this.getPointOnQuadraticBezier(w,h,g,b[0],b[1],b[2],b[3]),x+=this.getLineLength(S.x,S.y,_.x,_.y),S=_;return x;case Ud.ARC:x=0;var C=b[4],E=b[5],P=b[4]+E,k=Math.PI/180;if(Math.abs(C-P)<k&&(k=Math.abs(C-P)),S=this.getPointOnEllipticalArc(b[0],b[1],b[2],b[3],C,0),E<0)for(w=C-k;w>P;w-=k)_=this.getPointOnEllipticalArc(b[0],b[1],b[2],b[3],w,0),x+=this.getLineLength(S.x,S.y,_.x,_.y),S=_;else for(w=C+k;w<P;w+=k)_=this.getPointOnEllipticalArc(b[0],b[1],b[2],b[3],w,0),x+=this.getLineLength(S.x,S.y,_.x,_.y),S=_;return _=this.getPointOnEllipticalArc(b[0],b[1],b[2],b[3],P,0),x+=this.getLineLength(S.x,S.y,_.x,_.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,g,d,b,x){var S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:g,_=arguments.length>6&&void 0!==arguments[6]?arguments[6]:d,w=(x-d)/(b-g+vd),C=Math.sqrt(h*h/(1+w*w));b<g&&(C*=-1);var E=w*C,P=null;if(b===g)P={x:S,y:_+E};else if((_-d)/(S-g+vd)===w)P={x:S+C,y:_+E};else{var k=0,A=0,R=this.getLineLength(g,d,b,x);if(R<vd)return null;var M=(S-g)*(b-g)+(_-d)*(x-d);k=g+(M/=R*R)*(b-g),A=d+M*(x-d);var N=this.getLineLength(S,_,k,A),L=Math.sqrt(h*h-N*N);C=Math.sqrt(L*L/(1+w*w)),b<g&&(C*=-1),P={x:k+C,y:A+(E=w*C)}}return P}},{key:"getPointOnPath",value:function getPointOnPath(h){var g=this.getPathLength(),d=0,b=null;if(h<-5e-5||h-5e-5>g)return null;var x,S=_createForOfIteratorHelper$1(this.dataArray);try{for(S.s();!(x=S.n()).done;){var _=x.value;if(!_||!(_.pathLength<5e-5||d+_.pathLength+5e-5<h)){var w=h-d,C=0;switch(_.type){case Ud.LINE_TO:b=this.getPointOnLine(w,_.start.x,_.start.y,_.points[0],_.points[1],_.start.x,_.start.y);break;case Ud.ARC:var E=_.points[4],P=_.points[5],k=_.points[4]+P;if(C=E+w/_.pathLength*P,P<0&&C<k||P>=0&&C>k)break;b=this.getPointOnEllipticalArc(_.points[0],_.points[1],_.points[2],_.points[3],C,_.points[6]);break;case Ud.CURVE_TO:(C=w/_.pathLength)>1&&(C=1),b=this.getPointOnCubicBezier(C,_.start.x,_.start.y,_.points[0],_.points[1],_.points[2],_.points[3],_.points[4],_.points[5]);break;case Ud.QUAD_TO:(C=w/_.pathLength)>1&&(C=1),b=this.getPointOnQuadraticBezier(C,_.start.x,_.start.y,_.points[0],_.points[1],_.points[2],_.points[3])}if(b)return b;break}d+=_.pathLength}}catch(h){S.e(h)}finally{S.f()}return null}},{key:"getLineLength",value:function getLineLength(h,g,d,b){return Math.sqrt((d-h)*(d-h)+(b-g)*(b-g))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=jy(h=this.dataArray).call(h,(function(h,g){return g.pathLength>0?h+g.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,g,d,b,x,S,_,w,C){return{x:w*CB1(h)+S*CB2(h)+b*CB3(h)+g*CB4(h),y:C*CB1(h)+_*CB2(h)+x*CB3(h)+d*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,g,d,b,x,S,_){return{x:S*QB1(h)+b*QB2(h)+g*QB3(h),y:_*QB1(h)+x*QB2(h)+d*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,g,d,b,x,S){var _=Math.cos(S),w=Math.sin(S),C=d*Math.cos(x),E=b*Math.sin(x);return{x:h+(C*_-E*w),y:g+(C*w+E*_)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,g){var d=this.getPathLength(),b=g||.25,x=h||d/100;if(!this.equidistantCache||this.equidistantCache.step!==x||this.equidistantCache.precision!==b){this.equidistantCache={step:x,precision:b,points:[]};for(var S=0,_=0;_<=d;_+=b){var w=this.getPointOnPath(_),C=this.getPointOnPath(_+b);w&&C&&((S+=this.getLineLength(w.x,w.y,C.x,C.y))>=x&&(this.equidistantCache.points.push({x:w.x,y:w.y,distance:_}),S-=x))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,g,d){if(this.buildEquidistantCache(g,d),h<0||h-this.getPathLength()>5e-5)return null;var b=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[b]||null}}]),TextPathElement}(jd);function _createSuper$z(h){var g=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var vm=function(h){_inherits(ImageElement,h);var g,d,b=_createSuper$z(ImageElement);function ImageElement(h,g,d){var x;_classCallCheck$1(this,ImageElement),(x=b.call(this,h,g,d)).type="image",x.loaded=!1;var S=x.getHrefAttribute().getString();if(!S)return _possibleConstructorReturn(x);var _=/\.svg$/.test(S);return h.images.push(_assertThisInitialized(x)),_?x.loadSvg(S):x.loadImage(S),x.isSvg=_,x}return _createClass(ImageElement,[{key:"loadImage",value:(d=_asyncToGenerator(Qh.mark((function _callee(h){var g;return Qh.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,this.document.createImage(h);case 3:g=d.sent,this.image=g,d.next=10;break;case 7:d.prev=7,d.t0=d.catch(0),console.error('Error while loading image "'.concat(h,'":'),d.t0);case 10:this.loaded=!0;case 11:case"end":return d.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return d.apply(this,arguments)})},{key:"loadSvg",value:(g=_asyncToGenerator(Qh.mark((function _callee2(h){var g,d;return Qh.wrap((function _callee2$(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.next=3,this.document.fetch(h);case 3:return g=b.sent,b.next=6,g.text();case 6:d=b.sent,this.image=d,b.next=13;break;case 10:b.prev=10,b.t0=b.catch(0),console.error('Error while loading image "'.concat(h,'":'),b.t0);case 13:this.loaded=!0;case 14:case"end":return b.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(h){return g.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var g=this.document,d=this.image,b=this.loaded,x=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),_=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");if(b&&d&&_&&w){if(h.save(),this.isSvg)g.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:x,offsetY:S,scaleWidth:_,scaleHeight:w}).render();else{var C=this.image;h.translate(x,S),g.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:_,desiredWidth:C.width,height:w,desiredHeight:C.height}),this.loaded&&(void 0===C.complete||C.complete)&&h.drawImage(C,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),b=this.getStyle("height").getPixels("y");return new $d(h,g,h+d,g+b)}}]),ImageElement}(Vd);function _createSuper$A(h){var g=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var gm=function(h){_inherits(SymbolElement,h);var g=_createSuper$A(SymbolElement);function SymbolElement(){var h;return _classCallCheck$1(this,SymbolElement),(h=g.apply(this,arguments)).type="symbol",h}return _createClass(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(Vd),dm=function(){function SVGFontLoader(h){_classCallCheck$1(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return _createClass(SVGFontLoader,[{key:"load",value:(h=_asyncToGenerator(Qh.mark((function _callee(h,g){var d,b,x,S;return Qh.wrap((function _callee$(_){for(;;)switch(_.prev=_.next){case 0:return _.prev=0,b=this.document,_.next=4,b.canvg.parser.load(g);case 4:x=_.sent,S=x.getElementsByTagName("font"),Lh(d=Xv(S)).call(d,(function(g){var d=b.createElement(g);b.definitions[h]=d})),_.next=12;break;case 9:_.prev=9,_.t0=_.catch(0),console.error('Error while loading font "'.concat(g,'":'),_.t0);case 12:this.loaded=!0;case 13:case"end":return _.stop()}}),_callee,this,[[0,9]])}))),function load(g,d){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var g=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var mm=function(h){_inherits(StyleElement,h);var g=_createSuper$B(StyleElement);function StyleElement(h,d,b){var x,S;_classCallCheck$1(this,StyleElement),(S=g.call(this,h,d,b)).type="style";var _=compressSpaces(pc(x=Xv(d.childNodes)).call(x,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Lh(_).call(_,(function(g){var d=gv(g).call(g);if(d){var b=d.split("{"),x=b[0].split(","),S=b[1].split(";");Lh(x).call(x,(function(g){var d=gv(g).call(g);if(d){var b=h.styles[d]||{};if(Lh(S).call(S,(function(g){var d,x,S=ag(g).call(g,":"),_=gv(d=g.substr(0,S)).call(d),w=gv(x=g.substr(S+1,g.length-S)).call(x);_&&w&&(b[_]=new gd(h,_,w))})),h.styles[d]=b,h.stylesSpecificity[d]=function getSelectorSpecificity(h){var g=[0,0,0],d=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),b=0,x=_slicedToArray(findSelectorMatch(d,ud),2);d=x[0],b=x[1],g[1]+=b;var S=_slicedToArray(findSelectorMatch(d,cd),2);d=S[0],b=S[1],g[0]+=b;var _=_slicedToArray(findSelectorMatch(d,ld),2);d=_[0],b=_[1],g[1]+=b;var w=_slicedToArray(findSelectorMatch(d,fd),2);d=w[0],b=w[1],g[2]+=b;var C=_slicedToArray(findSelectorMatch(d,hd),2);d=C[0],b=C[1],g[1]+=b;var E=_slicedToArray(findSelectorMatch(d,pd),2);d=E[0],b=E[1],g[1]+=b;var P=_slicedToArray(findSelectorMatch(d=d.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),yd),2);return d=P[0],b=P[1],g[2]+=b,g.join("")}(d),"@font-face"===d){var x=b["font-family"].getString().replace(/"|'/g,""),_=b.src.getString().split(",");Lh(_).call(_,(function(g){if(ag(g).call(g,'format("svg")')>0){var d=parseExternalUrl(g);d&&new dm(h).load(x,d)}}))}}}))}})),S}return StyleElement}(Id);function _createSuper$C(h){var g=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}mm.parseExternalUrl=parseExternalUrl;var bm=function(h){_inherits(UseElement,h);var g=_createSuper$C(UseElement);function UseElement(){var h;return _classCallCheck$1(this,UseElement),(h=g.apply(this,arguments)).type="use",h}return _createClass(UseElement,[{key:"setContext",value:function setContext(h){_get(_getPrototypeOf(UseElement.prototype),"setContext",this).call(this,h);var g=this.getAttribute("x"),d=this.getAttribute("y");g.hasValue()&&h.translate(g.getPixels("x"),0),d.hasValue()&&h.translate(0,d.getPixels("y"))}},{key:"path",value:function path(h){var g=this.element;g&&g.path(h)}},{key:"renderChildren",value:function renderChildren(h){var g=this.document,d=this.element;if(d){var b=d;if("symbol"===d.type&&((b=new Gd(g,null)).attributes.viewBox=new gd(g,"viewBox",d.getAttribute("viewBox").getString()),b.attributes.preserveAspectRatio=new gd(g,"preserveAspectRatio",d.getAttribute("preserveAspectRatio").getString()),b.attributes.overflow=new gd(g,"overflow",d.getAttribute("overflow").getString()),b.children=d.children,d.styles.opacity=new gd(g,"opacity",this.calculateOpacity())),"svg"===b.type){var x=this.getStyle("width",!1,!0),S=this.getStyle("height",!1,!0);x.hasValue()&&(b.attributes.width=new gd(g,"width",x.getString())),S.hasValue()&&(b.attributes.height=new gd(g,"height",S.getString()))}var _=b.parent;b.parent=this,b.render(h),b.parent=_}}},{key:"getBoundingBox",value:function getBoundingBox(h){var g=this.element;return g?g.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,g=this.element;return Nd.fromElement(h,g)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(Vd);function _createSuper$D(h){var g=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function imGet(h,g,d,b,x,S){return h[d*b*4+4*g+S]}function imSet(h,g,d,b,x,S,_){h[d*b*4+4*g+S]=_}function m(h,g,d){return h[g]*d}function c(h,g,d,b){return g+Math.cos(h)*d+Math.sin(h)*b}var xm=function(h){_inherits(FeColorMatrixElement,h);var g=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,d,b){var x;_classCallCheck$1(this,FeColorMatrixElement),(x=g.call(this,h,d,b)).type="feColorMatrix";var S=toNumbers(x.getAttribute("values").getString());switch(x.getAttribute("type").getString("matrix")){case"saturate":var _=S[0];S=[.213+.787*_,.715-.715*_,.072-.072*_,0,0,.213-.213*_,.715+.285*_,.072-.072*_,0,0,.213-.213*_,.715-.715*_,.072+.928*_,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var w=S[0]*Math.PI/180;S=[c(w,.213,.787,-.213),c(w,.715,-.715,-.715),c(w,.072,-.072,.928),0,0,c(w,.213,-.213,.143),c(w,.715,.285,.14),c(w,.072,-.072,-.283),0,0,c(w,.213,-.213,-.787),c(w,.715,-.715,.715),c(w,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":S=[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]}return x.matrix=S,x.includeOpacity=x.getAttribute("includeOpacity").hasValue(),x}return _createClass(FeColorMatrixElement,[{key:"apply",value:function apply(h,g,d,b,x){for(var S=this.includeOpacity,_=this.matrix,w=h.getImageData(0,0,b,x),C=0;C<x;C++)for(var E=0;E<b;E++){var P=imGet(w.data,E,C,b,0,0),k=imGet(w.data,E,C,b,0,1),A=imGet(w.data,E,C,b,0,2),R=imGet(w.data,E,C,b,0,3),M=m(_,0,P)+m(_,1,k)+m(_,2,A)+m(_,3,R)+m(_,4,1),N=m(_,5,P)+m(_,6,k)+m(_,7,A)+m(_,8,R)+m(_,9,1),L=m(_,10,P)+m(_,11,k)+m(_,12,A)+m(_,13,R)+m(_,14,1),D=m(_,15,P)+m(_,16,k)+m(_,17,A)+m(_,18,R)+m(_,19,1);S&&(M=N=L=0,D*=R/255),imSet(w.data,E,C,b,0,0,M),imSet(w.data,E,C,b,0,1,N),imSet(w.data,E,C,b,0,2,L),imSet(w.data,E,C,b,0,3,D)}h.clearRect(0,0,b,x),h.putImageData(w,0,0)}}]),FeColorMatrixElement}(Id);function _createSuper$E(h){var g=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Sm=function(h){_inherits(MaskElement,h);var g=_createSuper$E(MaskElement);function MaskElement(){var h;return _classCallCheck$1(this,MaskElement),(h=g.apply(this,arguments)).type="mask",h}return _createClass(MaskElement,[{key:"apply",value:function apply(h,g){var d=this.document,b=this.getAttribute("x").getPixels("x"),x=this.getAttribute("y").getPixels("y"),S=this.getStyle("width").getPixels("x"),_=this.getStyle("height").getPixels("y");if(!S&&!_){var w,C=new $d;Lh(w=this.children).call(w,(function(g){C.addBoundingBox(g.getBoundingBox(h))})),b=Math.floor(C.x1),x=Math.floor(C.y1),S=Math.floor(C.width),_=Math.floor(C.height)}var E=this.removeStyles(g,MaskElement.ignoreStyles),P=d.createCanvas(b+S,x+_),k=P.getContext("2d");d.screen.setDefaults(k),this.renderChildren(k),new xm(d,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,b+S,x+_);var A=d.createCanvas(b+S,x+_),R=A.getContext("2d");d.screen.setDefaults(R),g.render(R),R.globalCompositeOperation="destination-in",R.fillStyle=k.createPattern(P,"no-repeat"),R.fillRect(0,0,b+S,x+_),h.fillStyle=R.createPattern(A,"no-repeat"),h.fillRect(0,0,b+S,x+_),this.restoreStyles(g,E)}},{key:"render",value:function render(h){}}]),MaskElement}(Id);function _createSuper$F(h){var g=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}Sm.ignoreStyles=["mask","transform","clip-path"];var _m=function noop(){},wm=function(h){_inherits(ClipPathElement,h);var g=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return _classCallCheck$1(this,ClipPathElement),(h=g.apply(this,arguments)).type="clipPath",h}return _createClass(ClipPathElement,[{key:"apply",value:function apply$1(h){var g,d=this.document,b=nd(h),x=h.beginPath,S=h.closePath;b&&(b.beginPath=_m,b.closePath=_m),rd(x,h,[]),Lh(g=this.children).call(g,(function(g){if(void 0!==g.path){var x=void 0!==g.elementTransform?g.elementTransform():null;x||(x=Nd.fromElement(d,g)),x&&x.apply(h),g.path(h),b&&(b.closePath=S),x&&x.unapply(h)}})),rd(S,h,[]),h.clip(),b&&(b.beginPath=x,b.closePath=S)}},{key:"render",value:function render(h){}}]),ClipPathElement}(Id);function _createSuper$G(h){var g=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}var Cm=function(h){_inherits(FilterElement,h);var g=_createSuper$G(FilterElement);function FilterElement(){var h;return _classCallCheck$1(this,FilterElement),(h=g.apply(this,arguments)).type="filter",h}return _createClass(FilterElement,[{key:"apply",value:function apply(h,g){var d=this.document,b=this.children,x=g.getBoundingBox(h);if(x){var S=0,_=0;Lh(b).call(b,(function(h){var g=h.extraFilterDistance||0;S=Math.max(S,g),_=Math.max(_,g)}));var w=Math.floor(x.width),C=Math.floor(x.height),E=w+2*S,P=C+2*_;if(!(E<1||P<1)){var k=Math.floor(x.x),A=Math.floor(x.y),R=this.removeStyles(g,FilterElement.ignoreStyles),M=d.createCanvas(E,P),N=M.getContext("2d");d.screen.setDefaults(N),N.translate(-k+S,-A+_),g.render(N),Lh(b).call(b,(function(h){"function"==typeof h.apply&&h.apply(N,0,0,E,P)})),h.drawImage(M,0,0,E,P,k-S,A-_,E,P),this.restoreStyles(g,R)}}}},{key:"render",value:function render(h){}}]),FilterElement}(Id);function _createSuper$H(h){var g=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function _createSuper$I(h){var g=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function _createSuper$J(h){var g=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function _createSuper$K(h){var g=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function _createSuper$L(h){var g=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}function _createSuper$M(h){var g=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!Pv)return!1;if(Pv.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Pv(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var d,b=_getPrototypeOf(h);if(g){var x=_getPrototypeOf(this).constructor;d=Pv(b,arguments,x)}else d=b.apply(this,arguments);return _possibleConstructorReturn(this,d)}}Cm.ignoreStyles=["filter","transform","clip-path"];var Em={svg:Gd,rect:Hd,circle:qd,ellipse:Xd,line:Yd,polyline:Wd,polygon:Qd,path:zd,pattern:Zd,marker:Kd,defs:Jd,linearGradient:rm,radialGradient:nm,stop:im,animate:am,animateColor:om,animateTransform:sm,font:um,"font-face":cm,"missing-glyph":lm,glyph:fm,text:jd,tspan:Fd,tref:hm,a:pm,textPath:ym,image:vm,g:tm,symbol:gm,style:mm,use:bm,mask:Sm,clipPath:wm,filter:Cm,feDropShadow:function(h){_inherits(FeDropShadowElement,h);var g=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,d,b){var x;return _classCallCheck$1(this,FeDropShadowElement),(x=g.call(this,h,d,b)).type="feDropShadow",x.addStylesFromStyleDefinition(),x}return _createClass(FeDropShadowElement,[{key:"apply",value:function apply(h,g,d,b,x){}}]),FeDropShadowElement}(Id),feMorphology:function(h){_inherits(FeMorphologyElement,h);var g=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return _classCallCheck$1(this,FeMorphologyElement),(h=g.apply(this,arguments)).type="feMorphology",h}return _createClass(FeMorphologyElement,[{key:"apply",value:function apply(h,g,d,b,x){}}]),FeMorphologyElement}(Id),feComposite:function(h){_inherits(FeCompositeElement,h);var g=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return _classCallCheck$1(this,FeCompositeElement),(h=g.apply(this,arguments)).type="feComposite",h}return _createClass(FeCompositeElement,[{key:"apply",value:function apply(h,g,d,b,x){}}]),FeCompositeElement}(Id),feColorMatrix:xm,feGaussianBlur:function(h){_inherits(FeGaussianBlurElement,h);var g=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,d,b){var x;return _classCallCheck$1(this,FeGaussianBlurElement),(x=g.call(this,h,d,b)).type="feGaussianBlur",x.blurRadius=Math.floor(x.getAttribute("stdDeviation").getNumber()),x.extraFilterDistance=x.blurRadius,x}return _createClass(FeGaussianBlurElement,[{key:"apply",value:function apply(h,g,d,b,x){var S=this.document,_=this.blurRadius,w=S.window?S.window.document.body:null,C=h.canvas;C.id=S.getUniqueId(),w&&(C.style.display="none",w.appendChild(C)),processCanvasRGBA(C,g,d,b,x,_),w&&w.removeChild(C)}}]),FeGaussianBlurElement}(Id),title:function(h){_inherits(TitleElement,h);var g=_createSuper$L(TitleElement);function TitleElement(){var h;return _classCallCheck$1(this,TitleElement),(h=g.apply(this,arguments)).type="title",h}return TitleElement}(Id),desc:function(h){_inherits(DescElement,h);var g=_createSuper$M(DescElement);function DescElement(){var h;return _classCallCheck$1(this,DescElement),(h=g.apply(this,arguments)).type="desc",h}return DescElement}(Id)};function ownKeys$1(h,g){var d=Wh(h);if(Xh){var b=Xh(h);g&&(b=qh(b).call(b,(function(g){return jh(h,g).enumerable}))),d.push.apply(d,b)}return d}function _createImage(){return(_createImage=_asyncToGenerator(Qh.mark((function _callee(h){var g,d,b=arguments;return Qh.wrap((function _callee$(x){for(;;)switch(x.prev=x.next){case 0:return g=b.length>1&&void 0!==b[1]&&b[1],d=document.createElement("img"),g&&(d.crossOrigin="Anonymous"),x.abrupt("return",new Yy((function(g,b){d.onload=function(){g(d)},d.onerror=function(){b()},d.src=h})));case 4:case"end":return x.stop()}}),_callee)})))).apply(this,arguments)}var Pm=function(){function Document(h){var g,d,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=b.rootEmSize,S=void 0===x?12:x,_=b.emSize,w=void 0===_?12:_,C=b.createCanvas,E=void 0===C?Document.createCanvas:C,P=b.createImage,k=void 0===P?Document.createImage:P,A=b.anonymousCrossOrigin;_classCallCheck$1(this,Document),this.canvg=h,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=h.screen,this.rootEmSize=S,this.emSize=w,this.createCanvas=E,this.createImage=this.bindCreateImage(k,A),this.screen.wait(ev(g=this.isImagesLoaded).call(g,this)),this.screen.wait(ev(d=this.isFontsLoaded).call(d,this))}return _createClass(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,g){return"boolean"==typeof g?function(d,b){return h(d,"boolean"==typeof b?b:g)}:h}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var h;return Xy(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return Xy(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var g=this.createElement(h.documentElement);return g.root=!0,g.addStylesFromStyleDefinition(),this.documentElement=g,g}},{key:"createElement",value:function createElement(h){var g=h.nodeName.replace(/^[^:]+:/,""),d=Document.elementTypes[g];return void 0!==d?new d(this,h):new Ld(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new Bd(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var g=1;g<arguments.length;g++){var d,b=null!=arguments[g]?arguments[g]:{};if(g%2)Lh(d=ownKeys$1(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(Oh)Ph(h,Oh(b));else{var x;Lh(x=ownKeys$1(Object(b))).call(x,(function(g){Eh(h,g,jh(b,g))}))}}return h}({document:this},h))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var h=this.emSizeStack;return h[h.length-1]},set:function set(h){this.emSizeStack.push(h)}}]),Document}();function ownKeys$2(h,g){var d=Wh(h);if(Xh){var b=Xh(h);g&&(b=qh(b).call(b,(function(g){return jh(h,g).enumerable}))),d.push.apply(d,b)}return d}function _objectSpread$2(h){for(var g=1;g<arguments.length;g++){var d,b=null!=arguments[g]?arguments[g]:{};if(g%2)Lh(d=ownKeys$2(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(Oh)Ph(h,Oh(b));else{var x;Lh(x=ownKeys$2(Object(b))).call(x,(function(g){Eh(h,g,jh(b,g))}))}}return h}Pm.createCanvas=function createCanvas(h,g){var d=document.createElement("canvas");return d.width=h,d.height=g,d},Pm.createImage=function createImage(h){return _createImage.apply(this,arguments)},Pm.elementTypes=Em;var km=function(){function Canvg(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck$1(this,Canvg),this.parser=new Ed(d),this.screen=new _d(h,d),this.options=d;var b=new Pm(this,d),x=b.createDocumentElement(g);this.document=b,this.documentElement=x}var h,g;return _createClass(Canvg,[{key:"fork",value:function fork(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,g,_objectSpread$2(_objectSpread$2({},this.options),d))}},{key:"forkString",value:function forkString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,g,_objectSpread$2(_objectSpread$2({},this.options),d))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(g=_asyncToGenerator(Qh.mark((function _callee(){var h,g=arguments;return Qh.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return h=g.length>0&&void 0!==g[0]?g[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),d.next=4,this.ready();case 4:this.stop();case 5:case"end":return d.stop()}}),_callee,this)}))),function render(){return g.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=this.documentElement,d=this.screen,b=this.options;d.start(g,_objectSpread$2(_objectSpread$2({enableRedraw:!0},b),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,g,d)}}],[{key:"from",value:(h=_asyncToGenerator(Qh.mark((function _callee2(h,g){var d,b,x,S=arguments;return Qh.wrap((function _callee2$(_){for(;;)switch(_.prev=_.next){case 0:return d=S.length>2&&void 0!==S[2]?S[2]:{},b=new Ed(d),_.next=4,b.parse(g);case 4:return x=_.sent,_.abrupt("return",new Canvg(h,x,d));case 6:case"end":return _.stop()}}),_callee2)}))),function from(g,d){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,g){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},b=new Ed(d),x=b.parseFromString(g);return new Canvg(h,x,d)}}]),Canvg}();function __variableDynamicImportRuntime0__(h){switch(h){case"./locale/en.js":return Promise.resolve().then((function(){return Am}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return Tm}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+h))}}var Om=function(){var h=_asyncToGenerator$1(regeneratorRuntime.mark((function _callee(h){var g;return regeneratorRuntime.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(h),".js"));case 3:g=d.sent,d.next=12;break;case 6:return d.prev=6,d.t0=d.catch(0),console.error("Missing translation (".concat(h,") - using 'en'")),d.next=11,Promise.resolve().then((function(){return Am}));case 11:g=d.sent;case 12:return d.abrupt("return",g.default);case 13:case"end":return d.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(g){return h.apply(this,arguments)}}(),Am=(h("default",{name:"server_moinsave",init:function init(h){var g=this;return _asyncToGenerator$1(regeneratorRuntime.mark((function _callee3(){var d,b,x,S,_;return regeneratorRuntime.wrap((function _callee3$(w){for(;;)switch(w.prev=w.next){case 0:return d=h.$,b=h.encode64,h.importLocale,x=g,w.next=4,Om(x.configObj.pref("lang"));case 4:S=w.sent,_=x.svgCanvas,"/+modify",d('<iframe name="output_frame" title="'.concat(S.hiddenframe,'"\n style="width: 0; height: 0;" src="data:text/html;base64,PGh0bWw+PC9odG1sPg=="/>')).appendTo("body"),x.setCustomHandlers({save:function save(h,g){return _asyncToGenerator$1(regeneratorRuntime.mark((function _callee2(){var h,x,w,C,E,P,k,A;return regeneratorRuntime.wrap((function _callee2$(R){for(;;)switch(R.prev=R.next){case 0:return h='<?xml version="1.0"?>\n'+g,x=new URL(location),w=x.pathname,C=w.replace(/\/+get\//,""),E=b(h),d("#export_canvas").length||d("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(P=d("#export_canvas")[0]).width=_.contentW,P.height=_.contentH,R.next=10,km(P,h);case 10:k=P.toDataURL("image/png"),A=b(k),d("<form>").attr({method:"post",action:"/+modify/"+C,target:"output_frame"}).append('\n <input type="hidden" name="png_data" value="'.concat(A,'">\n <input type="hidden" name="filepath" value="').concat(E,'">\n <input type="hidden" name="filename" value="drawing.svg">\n <input type="hidden" name="contenttype" value="application/x-svgdraw">\n ')).appendTo("body").submit().remove(),alert(S.saved),top.window.location="/"+C;case 15:case"end":return R.stop()}}),_callee2)})))()}});case 9:case"end":return w.stop()}}),_callee3)})))()}}),Object.freeze({__proto__:null,default:{saved:"Saved! Return to Item View!",hiddenframe:"Moinsave frame to store hidden values"}})),Tm=Object.freeze({__proto__:null,default:{saved:"已保存! 返回视图!",hiddenframe:"Moinsave frame to store hidden values"}})}}}));