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

2 lines
282 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(h){return(_typeof="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(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(h){return function(){var g=this,d=arguments;return new Promise((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 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=function(h){return h&&h.Math==Math&&h},b=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof d&&d)||function(){return this}()||Function("return this")(),fails=function(h){try{return!!h()}catch(h){return!0}},x=!fails((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=function(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},C={}.toString,classofRaw=function(h){return C.call(h).slice(8,-1)},E="".split,P=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?E.call(h,""):Object(h)}:Object,requireObjectCoercible=function(h){if(null==h)throw TypeError("Can't call method on "+h);return h},toIndexedObject=function(h){return P(requireObjectCoercible(h))},isObject=function(h){return"object"==typeof h?null!==h:"function"==typeof h},toPrimitive=function(h,g){if(!isObject(h))return h;var d,b;if(g&&"function"==typeof(d=h.toString)&&!isObject(b=d.call(h)))return b;if("function"==typeof(d=h.valueOf)&&!isObject(b=d.call(h)))return b;if(!g&&"function"==typeof(d=h.toString)&&!isObject(b=d.call(h)))return b;throw TypeError("Can't convert object to primitive value")},k={}.hasOwnProperty,has=function(h,g){return k.call(h,g)},A=b.document,R=isObject(A)&&isObject(A.createElement),documentCreateElement=function(h){return R?A.createElement(h):{}},M=!x&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),N=Object.getOwnPropertyDescriptor,L={f:x?N:function getOwnPropertyDescriptor(h,g){if(h=toIndexedObject(h),g=toPrimitive(g,!0),M)try{return N(h,g)}catch(h){}if(has(h,g))return createPropertyDescriptor(!w.f.call(h,g),h[g])}},anObject=function(h){if(!isObject(h))throw TypeError(String(h)+" is not an object");return h},D=Object.defineProperty,V={f:x?D:function defineProperty(h,g,d){if(anObject(h),g=toPrimitive(g,!0),anObject(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}},j=x?function(h,g,d){return V.f(h,g,createPropertyDescriptor(1,d))}:function(h,g,d){return h[g]=d,h},setGlobal=function(h,g){try{j(b,h,g)}catch(d){b[h]=g}return g},$="__core-js_shared__",B=b[$]||setGlobal($,{}),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.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Z=0,K=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Z+K).toString(36)},J=Q("keys"),sharedKey=function(h){return J[h]||(J[h]=uid(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("state");tt[ot]=!0,z=function(h,g){return g.facade=h,j(h,ot,g),g},G=function(h){return has(h,ot)?h[ot]:{}},q=function(h){return has(h,ot)}}var st,ut={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(g)||(d=G(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},ct=createCommonjsModule((function(h){var g=ut.get,d=ut.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(S,"name")||j(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:j(h,g,S)):E?h[g]=S:setGlobal(g,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&g(this).source||X(this)}))})),lt=b,aFunction=function(h){return"function"==typeof h?h:void 0},getBuiltIn=function(h,g){return arguments.length<2?aFunction(lt[h])||aFunction(b[h]):lt[h]&&lt[h][g]||b[h]&&b[h][g]},ft=Math.ceil,ht=Math.floor,toInteger=function(h){return isNaN(h=+h)?0:(h>0?ht:ft)(h)},pt=Math.min,toLength=function(h){return h>0?pt(toInteger(h),9007199254740991):0},yt=Math.max,vt=Math.min,toAbsoluteIndex=function(h,g){var d=toInteger(h);return d<0?yt(d+g,0):vt(d,g)},createMethod=function(h){return function(g,d,b){var x,S=toIndexedObject(g),_=toLength(S.length),w=toAbsoluteIndex(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}},gt={includes:createMethod(!0),indexOf:createMethod(!1)},dt=gt.indexOf,objectKeysInternal=function(h,g){var d,b=toIndexedObject(h),x=0,S=[];for(d in b)!has(tt,d)&&has(b,d)&&S.push(d);for(;g.length>x;)has(b,d=g[x++])&&(~dt(S,d)||S.push(d));return S},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=mt.concat("length","prototype"),xt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal(h,bt)}},St={f:Object.getOwnPropertySymbols},_t=getBuiltIn("Reflect","ownKeys")||function ownKeys(h){var g=xt.f(anObject(h)),d=St.f;return d?g.concat(d(h)):g},copyConstructorProperties=function(h,g){for(var d=_t(g),b=V.f,x=L.f,S=0;S<d.length;S++){var _=d[S];has(h,_)||b(h,_,x(g,_))}},wt=/#|\.prototype\./,isForced=function(h,g){var d=Et[Ct(h)];return d==kt||d!=Pt&&("function"==typeof g?fails(g):!!g)},Ct=isForced.normalize=function(h){return String(h).replace(wt,".").toLowerCase()},Et=isForced.data={},Pt=isForced.NATIVE="N",kt=isForced.POLYFILL="P",Ot=isForced,At=L.f,_export=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(C,{}):(b[C]||{}).prototype)for(x in g){if(_=g[x],S=h.noTargetGet?(w=At(d,x))&&w.value:d[x],!Ot(E?x:C+(P?".":"#")+x,h.forced)&&void 0!==S){if(typeof _==typeof S)continue;copyConstructorProperties(_,S)}(h.sham||S&&S.sham)&&j(_,"sham",!0),ct(d,x,_,h)}},Tt=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Rt=Tt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Mt=Array.isArray||function isArray(h){return"Array"==classofRaw(h)},toObject=function(h){return Object(requireObjectCoercible(h))},Nt=Object.keys||function keys(h){return objectKeysInternal(h,mt)},It=x?Object.defineProperties:function defineProperties(h,g){anObject(h);for(var d,b=Nt(g),x=b.length,S=0;x>S;)V.f(h,d=b[S++],g[d]);return h},Lt=getBuiltIn("document","documentElement"),Dt=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"</"+"script>"},NullProtoObject=function(){try{st=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,g;NullProtoObject=st?function(h){h.write(scriptTag("")),h.close();var g=h.parentWindow.Object;return h=null,g}(st):((g=documentCreateElement("iframe")).style.display="none",Lt.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var d=mt.length;d--;)delete NullProtoObject.prototype[mt[d]];return NullProtoObject()};tt[Dt]=!0;var Vt=Object.create||function create(h,g){var d;return null!==h?(EmptyConstructor.prototype=anObject(h),d=new EmptyConstructor,EmptyConstructor.prototype=null,d[Dt]=h):d=NullProtoObject(),void 0===g?d:It(d,g)},jt=xt.f,$t={}.toString,Ft="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bt={f:function getOwnPropertyNames(h){return Ft&&"[object Window]"==$t.call(h)?function(h){try{return jt(h)}catch(h){return Ft.slice()}}(h):jt(toIndexedObject(h))}},Ut=Q("wks"),zt=b.Symbol,Gt=Rt?zt:zt&&zt.withoutSetter||uid,wellKnownSymbol=function(h){return has(Ut,h)||(Tt&&has(zt,h)?Ut[h]=zt[h]:Ut[h]=Gt("Symbol."+h)),Ut[h]},Ht={f:wellKnownSymbol},qt=V.f,defineWellKnownSymbol=function(h){var g=lt.Symbol||(lt.Symbol={});has(g,h)||qt(g,h,{value:Ht.f(h)})},Xt=V.f,Yt=wellKnownSymbol("toStringTag"),setToStringTag=function(h,g,d){h&&!has(h=d?h:h.prototype,Yt)&&Xt(h,Yt,{configurable:!0,value:g})},aFunction$1=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},functionBindContext=function(h,g,d){if(aFunction$1(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)}},Wt=wellKnownSymbol("species"),arraySpeciesCreate=function(h,g){var d;return Mt(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!Mt(d.prototype)?isObject(d)&&null===(d=d[Wt])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},Qt=[].push,createMethod$1=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(C),L=P(N),D=functionBindContext(E,k,3),V=toLength(L.length),j=0,$=A||arraySpeciesCreate,B=g?$(C,V):d||_?$(C,0):void 0;V>j;j++)if((w||j in L)&&(M=D(R=L[j],j,N),h))if(g)B[j]=M;else if(M)switch(h){case 3:return!0;case 5:return R;case 6:return j;case 2:Qt.call(B,R)}else switch(h){case 4:return!1;case 7:Qt.call(B,R)}return S?-1:b||x?x:B}},Zt={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6),filterOut:createMethod$1(7)},Kt=Zt.forEach,Jt=sharedKey("hidden"),te="Symbol",ee=wellKnownSymbol("toPrimitive"),re=ut.set,ne=ut.getterFor(te),ie=Object.prototype,ae=b.Symbol,oe=getBuiltIn("JSON","stringify"),se=L.f,ue=V.f,ce=Bt.f,le=w.f,fe=Q("symbols"),he=Q("op-symbols"),pe=Q("string-to-symbol-registry"),ye=Q("symbol-to-string-registry"),ve=Q("wks"),ge=b.QObject,de=!ge||!ge.prototype||!ge.prototype.findChild,me=x&&fails((function(){return 7!=Vt(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a}))?function(h,g,d){var b=se(ie,g);b&&delete ie[g],ue(h,g,d),b&&h!==ie&&ue(ie,g,b)}:ue,wrap=function(h,g){var d=fe[h]=Vt(ae.prototype);return re(d,{type:te,tag:h,description:g}),x||(d.description=g),d},be=Rt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof ae},xe=function defineProperty(h,g,d){h===ie&&xe(he,g,d),anObject(h);var b=toPrimitive(g,!0);return anObject(d),has(fe,b)?(d.enumerable?(has(h,Jt)&&h[Jt][b]&&(h[Jt][b]=!1),d=Vt(d,{enumerable:createPropertyDescriptor(0,!1)})):(has(h,Jt)||ue(h,Jt,createPropertyDescriptor(1,{})),h[Jt][b]=!0),me(h,b,d)):ue(h,b,d)},Se=function defineProperties(h,g){anObject(h);var d=toIndexedObject(g),b=Nt(d).concat(Ee(d));return Kt(b,(function(g){x&&!_e.call(d,g)||xe(h,g,d[g])})),h},_e=function propertyIsEnumerable(h){var g=toPrimitive(h,!0),d=le.call(this,g);return!(this===ie&&has(fe,g)&&!has(he,g))&&(!(d||!has(this,g)||!has(fe,g)||has(this,Jt)&&this[Jt][g])||d)},we=function getOwnPropertyDescriptor(h,g){var d=toIndexedObject(h),b=toPrimitive(g,!0);if(d!==ie||!has(fe,b)||has(he,b)){var x=se(d,b);return!x||!has(fe,b)||has(d,Jt)&&d[Jt][b]||(x.enumerable=!0),x}},Ce=function getOwnPropertyNames(h){var g=ce(toIndexedObject(h)),d=[];return Kt(g,(function(h){has(fe,h)||has(tt,h)||d.push(h)})),d},Ee=function getOwnPropertySymbols(h){var g=h===ie,d=ce(g?he:toIndexedObject(h)),b=[];return Kt(d,(function(h){!has(fe,h)||g&&!has(ie,h)||b.push(fe[h])})),b};if(Tt||(ct((ae=function Symbol(){if(this instanceof ae)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=uid(h),setter=function(h){this===ie&&setter.call(he,h),has(this,Jt)&&has(this[Jt],g)&&(this[Jt][g]=!1),me(this,g,createPropertyDescriptor(1,h))};return x&&de&&me(ie,g,{configurable:!0,set:setter}),wrap(g,h)}).prototype,"toString",(function toString(){return ne(this).tag})),ct(ae,"withoutSetter",(function(h){return wrap(uid(h),h)})),w.f=_e,V.f=xe,L.f=we,xt.f=Bt.f=Ce,St.f=Ee,Ht.f=function(h){return wrap(wellKnownSymbol(h),h)},x&&(ue(ae.prototype,"description",{configurable:!0,get:function description(){return ne(this).description}}),ct(ie,"propertyIsEnumerable",_e,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Tt,sham:!Tt},{Symbol:ae}),Kt(Nt(ve),(function(h){defineWellKnownSymbol(h)})),_export({target:te,stat:!0,forced:!Tt},{for:function(h){var g=String(h);if(has(pe,g))return pe[g];var d=ae(g);return pe[g]=d,ye[d]=g,d},keyFor:function keyFor(h){if(!be(h))throw TypeError(h+" is not a symbol");if(has(ye,h))return ye[h]},useSetter:function(){de=!0},useSimple:function(){de=!1}}),_export({target:"Object",stat:!0,forced:!Tt,sham:!x},{create:function create(h,g){return void 0===g?Vt(h):Se(Vt(h),g)},defineProperty:xe,defineProperties:Se,getOwnPropertyDescriptor:we}),_export({target:"Object",stat:!0,forced:!Tt},{getOwnPropertyNames:Ce,getOwnPropertySymbols:Ee}),_export({target:"Object",stat:!0,forced:fails((function(){St.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return St.f(toObject(h))}}),oe){var Pe=!Tt||fails((function(){var h=ae();return"[null]"!=oe([h])||"{}"!=oe({a:h})||"{}"!=oe(Object(h))}));_export({target:"JSON",stat:!0,forced:Pe},{stringify:function stringify(h,g,d){for(var b,x=[h],S=1;arguments.length>S;)x.push(arguments[S++]);if(b=g,(isObject(g)||void 0!==h)&&!be(h))return Mt(g)||(g=function(h,g){if("function"==typeof b&&(g=b.call(this,h,g)),!be(g))return g}),x[1]=g,oe.apply(null,x)}})}ae.prototype[ee]||j(ae.prototype,ee,ae.prototype.valueOf),setToStringTag(ae,te),tt[Jt]=!0;var ke=V.f,Oe=b.Symbol;if(x&&"function"==typeof Oe&&(!("description"in Oe.prototype)||void 0!==Oe().description)){var Ae={},Te=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),g=this instanceof Te?new Oe(h):void 0===h?Oe():Oe(h);return""===h&&(Ae[g]=!0),g};copyConstructorProperties(Te,Oe);var Re=Te.prototype=Oe.prototype;Re.constructor=Te;var Me=Re.toString,Ne="Symbol(test)"==String(Oe("test")),Ie=/^Symbol\((.*)\)[^)]+$/;ke(Re,"description",{configurable:!0,get:function description(){var h=isObject(this)?this.valueOf():this,g=Me.call(h);if(has(Ae,h))return"";var d=Ne?g.slice(7,-1):g.replace(Ie,"$1");return""===d?void 0:d}}),_export({global:!0,forced:!0},{Symbol:Te})}var Le={};Le[wellKnownSymbol("toStringTag")]="z";var De="[object z]"===String(Le),Ve=wellKnownSymbol("toStringTag"),je="Arguments"==classofRaw(function(){return arguments}()),$e=De?classofRaw: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),Ve))?d:je?classofRaw(g):"Object"==(b=classofRaw(g))&&"function"==typeof g.callee?"Arguments":b},Fe=De?{}.toString:function toString(){return"[object "+$e(this)+"]"};De||ct(Object.prototype,"toString",Fe,{unsafe:!0}),defineWellKnownSymbol("iterator");var Be,Ue,ze,createMethod$2=function(h){return function(g,d){var b,x,S=String(requireObjectCoercible(g)),_=toInteger(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}},Ge={codeAt:createMethod$2(!1),charAt:createMethod$2(!0)},He=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),qe=sharedKey("IE_PROTO"),Xe=Object.prototype,Ye=He?Object.getPrototypeOf:function(h){return h=toObject(h),has(h,qe)?h[qe]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?Xe:null},We=wellKnownSymbol("iterator"),Qe=!1;[].keys&&("next"in(ze=[].keys())?(Ue=Ye(Ye(ze)))!==Object.prototype&&(Be=Ue):Qe=!0),(null==Be||fails((function(){var h={};return Be[We].call(h)!==h})))&&(Be={}),has(Be,We)||j(Be,We,(function(){return this}));var Ze={IteratorPrototype:Be,BUGGY_SAFARI_ITERATORS:Qe},Ke={},Je=Ze.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(h,g,d){var b=g+" Iterator";return h.prototype=Vt(Je,{next:createPropertyDescriptor(1,d)}),setToStringTag(h,b,!1),Ke[b]=returnThis$1,h},tr=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(d),function(h){if(!isObject(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),er=Ze.IteratorPrototype,rr=Ze.BUGGY_SAFARI_ITERATORS,nr=wellKnownSymbol("iterator"),ir="keys",ar="values",or="entries",returnThis$2=function(){return this},defineIterator=function(h,g,d,b,x,S,_){createIteratorConstructor(d,g,b);var w,C,E,getIterationMethod=function(h){if(h===x&&M)return M;if(!rr&&h in A)return A[h];switch(h){case ir:return function keys(){return new d(this,h)};case ar:return function values(){return new d(this,h)};case or:return function entries(){return new d(this,h)}}return function(){return new d(this)}},P=g+" Iterator",k=!1,A=h.prototype,R=A[nr]||A["@@iterator"]||x&&A[x],M=!rr&&R||getIterationMethod(x),N="Array"==g&&A.entries||R;if(N&&(w=Ye(N.call(new h)),er!==Object.prototype&&w.next&&(Ye(w)!==er&&(tr?tr(w,er):"function"!=typeof w[nr]&&j(w,nr,returnThis$2)),setToStringTag(w,P,!0))),x==ar&&R&&R.name!==ar&&(k=!0,M=function values(){return R.call(this)}),A[nr]!==M&&j(A,nr,M),Ke[g]=M,x)if(C={values:getIterationMethod(ar),keys:S?M:getIterationMethod(ir),entries:getIterationMethod(or)},_)for(E in C)(rr||k||!(E in A))&&ct(A,E,C[E]);else _export({target:g,proto:!0,forced:rr||k},C);return C},sr=Ge.charAt,ur="String Iterator",cr=ut.set,lr=ut.getterFor(ur);defineIterator(String,"String",(function(h){cr(this,{type:ur,string:String(h),index:0})}),(function next(){var h,g=lr(this),d=g.string,b=g.index;return b>=d.length?{value:void 0,done:!0}:(h=sr(d,b),g.index+=h.length,{value:h,done:!1})}));var fr=wellKnownSymbol("unscopables"),hr=Array.prototype;null==hr[fr]&&V.f(hr,fr,{configurable:!0,value:Vt(null)});var addToUnscopables=function(h){hr[fr][h]=!0},pr="Array Iterator",yr=ut.set,vr=ut.getterFor(pr),gr=defineIterator(Array,"Array",(function(h,g){yr(this,{type:pr,target:toIndexedObject(h),index:0,kind:g})}),(function(){var h=vr(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");Ke.Arguments=Ke.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var dr={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},mr=wellKnownSymbol("iterator"),br=wellKnownSymbol("toStringTag"),xr=gr.values;for(var Sr in dr){var _r=b[Sr],wr=_r&&_r.prototype;if(wr){if(wr[mr]!==xr)try{j(wr,mr,xr)}catch(h){wr[mr]=xr}if(wr[br]||j(wr,br,Sr),dr[Sr])for(var Cr in gr)if(wr[Cr]!==gr[Cr])try{j(wr,Cr,gr[Cr])}catch(h){wr[Cr]=gr[Cr]}}}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(Math,"Math",!0),setToStringTag(b.JSON,"JSON",!0);var Er=fails((function(){Ye(1)}));_export({target:"Object",stat:!0,forced:Er,sham:!He},{getPrototypeOf:function getPrototypeOf(h){return Ye(toObject(h))}});var arrayMethodIsStrict=function(h,g){var d=[][h];return!!d&&fails((function(){d.call(null,g||function(){throw 1},1)}))},Pr=Zt.forEach,kr=arrayMethodIsStrict("forEach")?[].forEach:function forEach(h){return Pr(this,h,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=kr},{forEach:kr});var Or=V.f,Ar=Function.prototype,Tr=Ar.toString,Rr=/^\s*function ([^ (]*)/,Mr="name";x&&!(Mr in Ar)&&Or(Ar,Mr,{configurable:!0,get:function(){try{return Tr.call(this).match(Rr)[1]}catch(h){return""}}}),_export({target:"Object",stat:!0},{setPrototypeOf:tr});var Nr=b.Promise,redefineAll=function(h,g,d){for(var b in g)ct(h,b,g[b],d);return h},Ir=wellKnownSymbol("species"),setSpecies=function(h){var g=getBuiltIn(h),d=V.f;x&&g&&!g[Ir]&&d(g,Ir,{configurable:!0,get:function(){return this}})},anInstance=function(h,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},Lr=wellKnownSymbol("iterator"),Dr=Array.prototype,isArrayIteratorMethod=function(h){return void 0!==h&&(Ke.Array===h||Dr[Lr]===h)},Vr=wellKnownSymbol("iterator"),getIteratorMethod=function(h){if(null!=h)return h[Vr]||h["@@iterator"]||Ke[$e(h)]},iteratorClose=function(h){var g=h.return;if(void 0!==g)return anObject(g.call(h)).value},Result=function(h,g){this.stopped=h,this.result=g},iterate=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(g,P,1+k+R),stop=function(h){return b&&iteratorClose(b),new Result(!0,h)},callFn=function(h){return k?(anObject(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(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(x)){for(S=0,_=toLength(h.length);_>S;S++)if((w=callFn(h[S]))&&w instanceof Result)return w;return new Result(!1)}b=x.call(h)}for(C=b.next;!(E=C.call(b)).done;){try{w=callFn(E.value)}catch(h){throw iteratorClose(b),h}if("object"==typeof w&&w&&w instanceof Result)return w}return new Result(!1)},jr=wellKnownSymbol("iterator"),$r=!1;try{var Fr=0,Br={next:function(){return{done:!!Fr++}},return:function(){$r=!0}};Br[jr]=function(){return this},Array.from(Br,(function(){throw 2}))}catch(h){}var Ur,zr,Gr,checkCorrectnessOfIteration=function(h,g){if(!g&&!$r)return!1;var d=!1;try{var b={};b[jr]=function(){return{next:function(){return{done:d=!0}}}},h(b)}catch(h){}return d},Hr=wellKnownSymbol("species"),speciesConstructor=function(h,g){var d,b=anObject(h).constructor;return void 0===b||null==(d=anObject(b)[Hr])?g:aFunction$1(d)},qr=getBuiltIn("navigator","userAgent")||"",Xr=/(iphone|ipod|ipad).*applewebkit/i.test(qr),Yr="process"==classofRaw(b.process),Wr=b.location,Qr=b.setImmediate,Zr=b.clearImmediate,Kr=b.process,Jr=b.MessageChannel,tn=b.Dispatch,en=0,rn={},nn="onreadystatechange",run=function(h){if(rn.hasOwnProperty(h)){var g=rn[h];delete rn[h],g()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){b.postMessage(h+"",Wr.protocol+"//"+Wr.host)};Qr&&Zr||(Qr=function setImmediate(h){for(var g=[],d=1;arguments.length>d;)g.push(arguments[d++]);return rn[++en]=function(){("function"==typeof h?h:Function(h)).apply(void 0,g)},Ur(en),en},Zr=function clearImmediate(h){delete rn[h]},Yr?Ur=function(h){Kr.nextTick(runner(h))}:tn&&tn.now?Ur=function(h){tn.now(runner(h))}:Jr&&!Xr?(Gr=(zr=new Jr).port2,zr.port1.onmessage=listener,Ur=functionBindContext(Gr.postMessage,Gr,1)):b.addEventListener&&"function"==typeof postMessage&&!b.importScripts&&Wr&&"file:"!==Wr.protocol&&!fails(post)?(Ur=post,b.addEventListener("message",listener,!1)):Ur=nn in documentCreateElement("script")?function(h){Lt.appendChild(documentCreateElement("script")).onreadystatechange=function(){Lt.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)});var an,on,sn,un,cn,ln,fn,hn,pn={set:Qr,clear:Zr},yn=/web0s(?!.*chrome)/i.test(qr),vn=L.f,gn=pn.set,dn=b.MutationObserver||b.WebKitMutationObserver,mn=b.document,bn=b.process,xn=b.Promise,Sn=vn(b,"queueMicrotask"),_n=Sn&&Sn.value;_n||(an=function(){var h,g;for(Yr&&(h=bn.domain)&&h.exit();on;){g=on.fn,on=on.next;try{g()}catch(h){throw on?un():sn=void 0,h}}sn=void 0,h&&h.enter()},Xr||Yr||yn||!dn||!mn?xn&&xn.resolve?(fn=xn.resolve(void 0),hn=fn.then,un=function(){hn.call(fn,an)}):un=Yr?function(){bn.nextTick(an)}:function(){gn.call(b,an)}:(cn=!0,ln=mn.createTextNode(""),new dn(an).observe(ln,{characterData:!0}),un=function(){ln.data=cn=!cn}));var wn,Cn,En=_n||function(h){var g={fn:h,next:void 0};sn&&(sn.next=g),on||(on=g,un()),sn=g},PromiseCapability=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$1(g),this.reject=aFunction$1(d)},Pn={f:function(h){return new PromiseCapability(h)}},promiseResolve=function(h,g){if(anObject(h),isObject(g)&&g.constructor===h)return g;var d=Pn.f(h);return(0,d.resolve)(g),d.promise},perform=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},kn=b.process,On=kn&&kn.versions,An=On&&On.v8;An?Cn=(wn=An.split("."))[0]+wn[1]:qr&&(!(wn=qr.match(/Edge\/(\d+)/))||wn[1]>=74)&&(wn=qr.match(/Chrome\/(\d+)/))&&(Cn=wn[1]);var Tn,Rn,Mn,Nn,In=Cn&&+Cn,Ln=pn.set,Dn=wellKnownSymbol("species"),Vn="Promise",jn=ut.get,$n=ut.set,Fn=ut.getterFor(Vn),Bn=Nr,Un=b.TypeError,zn=b.document,Gn=b.process,Hn=getBuiltIn("fetch"),qn=Pn.f,Xn=qn,Yn=!!(zn&&zn.createEvent&&b.dispatchEvent),Wn="function"==typeof PromiseRejectionEvent,Qn="unhandledrejection",Zn=Ot(Vn,(function(){if(!(X(Bn)!==String(Bn))){if(66===In)return!0;if(!Yr&&!Wn)return!0}if(In>=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((function(h){Bn.all(h).catch((function(){}))})),isThenable=function(h){var g;return!(!isObject(h)||"function"!=typeof(g=h.then))&&g},notify$1=function(h,g){if(!h.notified){h.notified=!0;var d=h.reactions;En((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(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(_))?w.call(_,k,A):k(_)):A(b)}catch(h){R&&!C&&R.exit(),A(h)}}h.reactions=[],h.notified=!1,g&&!h.rejection&&onUnhandled(h)}))}},dispatchEvent=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=function(h){Ln.call(b,(function(){var g,d=h.facade,b=h.value;if(isUnhandled(h)&&(g=perform((function(){Yr?Gn.emit("unhandledRejection",b,d):dispatchEvent(Qn,d,b)})),h.rejection=Yr||isUnhandled(h)?2:1,g.error))throw g.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h){Ln.call(b,(function(){var g=h.facade;Yr?Gn.emit("rejectionHandled",g):dispatchEvent("rejectionhandled",g,h.value)}))},bind=function(h,g,d){return function(b){h(g,b,d)}},internalReject=function(h,g,d){h.done||(h.done=!0,d&&(h=d),h.value=g,h.state=2,notify$1(h,!0))},internalResolve=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(g);b?En((function(){var d={done:!1};try{b.call(g,bind(internalResolve,d,h),bind(internalReject,d,h))}catch(g){internalReject(d,g,h)}})):(h.value=g,h.state=1,notify$1(h,!1))}catch(g){internalReject({done:!1},g,h)}}};Zn&&(Bn=function Promise(h){anInstance(this,Bn,Vn),aFunction$1(h),Tn.call(this);var g=jn(this);try{h(bind(internalResolve,g),bind(internalReject,g))}catch(h){internalReject(g,h)}},(Tn=function Promise(h){$n(this,{type:Vn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Bn.prototype,{then:function then(h,g){var d=Fn(this),b=qn(speciesConstructor(this,Bn));return b.ok="function"!=typeof h||h,b.fail="function"==typeof g&&g,b.domain=Yr?Gn.domain:void 0,d.parent=!0,d.reactions.push(b),0!=d.state&&notify$1(d,!1),b.promise},catch:function(h){return this.then(void 0,h)}}),Rn=function(){var h=new Tn,g=jn(h);this.promise=h,this.resolve=bind(internalResolve,g),this.reject=bind(internalReject,g)},Pn.f=qn=function(h){return h===Bn||h===Mn?new Rn(h):Xn(h)},"function"==typeof Nr&&(Nn=Nr.prototype.then,ct(Nr.prototype,"then",(function then(h,g){var d=this;return new Bn((function(h,g){Nn.call(d,h,g)})).then(h,g)}),{unsafe:!0}),"function"==typeof Hn&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve(Bn,Hn.apply(b,arguments))}}))),_export({global:!0,wrap:!0,forced:Zn},{Promise:Bn}),setToStringTag(Bn,Vn,!1),setSpecies(Vn),Mn=getBuiltIn(Vn),_export({target:Vn,stat:!0,forced:Zn},{reject:function reject(h){var g=qn(this);return g.reject.call(void 0,h),g.promise}}),_export({target:Vn,stat:!0,forced:Zn},{resolve:function resolve(h){return promiseResolve(this,h)}}),_export({target:Vn,stat:!0,forced:Kn},{all:function all(h){var g=this,d=qn(g),b=d.resolve,x=d.reject,S=perform((function(){var d=aFunction$1(g.resolve),S=[],_=0,w=1;iterate(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((function(){var x=aFunction$1(g.resolve);iterate(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(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((function(){return"/a/b"!=ei.call({source:"a",flags:"b"})})),ni=ei.name!=Jn;for(var ii in(ri||ni)&&ct(RegExp.prototype,Jn,(function toString(){var h=anObject(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}),dr){var ai=b[ii],oi=ai&&ai.prototype;if(oi&&oi.forEach!==kr)try{j(oi,"forEach",kr)}catch(h){oi.forEach=kr}}var si=[].reverse,ui=[1,2];_export({target:"Array",proto:!0,forced:String(ui)===String(ui.reverse())},{reverse:function reverse(){return Mt(this)&&(this.length=this.length),si.call(this)}});var createProperty=function(h,g,d){var b=toPrimitive(g);b in h?V.f(h,b,createPropertyDescriptor(0,d)):h[b]=d},ci=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(h){return In>=51||!fails((function(){var g=[];return(g.constructor={})[ci]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},li=arrayMethodHasSpeciesSupport("slice"),fi=wellKnownSymbol("species"),hi=[].slice,pi=Math.max;_export({target:"Array",proto:!0,forced:!li},{slice:function slice(h,g){var d,b,x,S=toIndexedObject(this),_=toLength(S.length),w=toAbsoluteIndex(h,_),C=toAbsoluteIndex(void 0===g?_:g,_);if(Mt(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!Mt(d.prototype)?isObject(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(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(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("iterator"),gi=!fails((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((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]||Nt(di({},g)).join("")!=b}))?function assign(h,g){for(var d=toObject(h),b=arguments.length,S=1,_=St.f,C=w.f;b>S;)for(var E,k=P(arguments[S++]),A=_?Nt(k).concat(_(k)):Nt(k),R=A.length,M=0;R>M;)E=A[M++],x&&!C.call(k,E)||(d[E]=k[E]);return d}:di,callWithSafeIterationClosing=function(h,g,d,b){try{return b?g(anObject(d)[0],d[1]):g(d)}catch(g){throw iteratorClose(h),g}},xi=function from(h){var g,d,b,x,S,_,w=toObject(h),C="function"==typeof this?this:Array,E=arguments.length,P=E>1?arguments[1]:void 0,k=void 0!==P,A=getIteratorMethod(w),R=0;if(k&&(P=functionBindContext(P,E>2?arguments[2]:void 0,2)),null==A||C==Array&&isArrayIteratorMethod(A))for(d=new C(g=toLength(w.length));g>R;R++)_=k?P(w[R],R):w[R],createProperty(d,R,_);else for(S=(x=A.call(w)).next,d=new C;!(b=S.call(x)).done;R++)_=k?callWithSafeIterationClosing(x,P,[b.value,R],!0):b.value,createProperty(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=function(h){var g=getIteratorMethod(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return anObject(g.call(h))},ki=getBuiltIn("fetch"),Oi=getBuiltIn("Headers"),Ai=wellKnownSymbol("iterator"),Ti="URLSearchParams",Ri="URLSearchParamsIterator",Mi=ut.set,Ni=ut.getterFor(Ti),Ii=ut.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}},Vi=/[!'()~]|%20/g,ji={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(h){return ji[h]},serialize=function(h){return encodeURIComponent(h).replace(Vi,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")},$i=createIteratorConstructor((function Iterator(h,g){Mi(this,{type:Ri,iterator:getIterator(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(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(E))if("function"==typeof(h=getIteratorMethod(E)))for(d=(g=h.call(E)).next;!(b=d.call(g)).done;){if((_=(S=(x=getIterator(anObject(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(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(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(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 $i(this,"keys")},values:function values(){return new $i(this,"values")},entries:function entries(){return new $i(this,"entries")}},{enumerable:!0}),ct(Bi,Ai,Bi.entries),ct(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(Fi,Ti),_export({global:!0,forced:!gi},{URLSearchParams:Fi}),gi||"function"!=typeof ki||"function"!=typeof Oi||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){var g,d,b,x=[h];return arguments.length>1&&(isObject(g=arguments[1])&&(d=g.body,$e(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=Vt(g,{body:createPropertyDescriptor(0,String(d)),headers:createPropertyDescriptor(0,b)}))),x.push(g)),ki.apply(this,x)}});var Ui,zi={URLSearchParams:Fi,getState:Ni},Gi=Ge.codeAt,Hi=b.URL,qi=zi.URLSearchParams,Xi=zi.getState,Yi=ut.set,Wi=ut.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(g,h)?h:encodeURIComponent(h)},ga={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(h){return has(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={},Va={},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(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=Va;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=Va}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 V=parseInt(k,10);if(V>65535)return ta;h.port=isSpecial(h)&&V===ga[h.scheme]?null:V,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=Va}}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=Va;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=Va)}else k+=percentEncode(S,ya);break;case La:"?"==S?(h.query="",E=Da):"#"==S?(h.fragment="",E=Va):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=Va);break;case Va:S!=Ui&&(h.fragment+=percentEncode(S,pa))}P++}},ja=function URL(h){var g,d,b=anInstance(this,ja,"URL"),S=arguments.length>1?arguments[1]:void 0,_=String(h),w=Yi(b,{type:"URL"});if(void 0!==S)if(S instanceof ja)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))},$a=ja.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&&It($a,{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,Va)):g.fragment=null}))}),ct($a,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),ct($a,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),Hi){var Fa=Hi.createObjectURL,Ba=Hi.revokeObjectURL;Fa&&ct(ja,"createObjectURL",(function createObjectURL(h){return Fa.apply(Hi,arguments)})),Ba&&ct(ja,"revokeObjectURL",(function revokeObjectURL(h){return Ba.apply(Hi,arguments)}))}function RE(h,g){return RegExp(h,g)}setToStringTag(ja,"URL"),_export({global:!0,forced:!gi,sham:!x},{URL:ja});var Ua={UNSUPPORTED_Y:fails((function(){var h=RE("a","y");return h.lastIndex=2,null!=h.exec("abcd")})),BROKEN_CARET:fails((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({target:"RegExp",proto:!0,forced:/./.exec!==Wa},{exec:Wa});var Qa=wellKnownSymbol("species"),Za=!fails((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("replace"),to=!!/./[Ja]&&""===/./[Ja]("a","$0"),eo=!fails((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(h),S=!fails((function(){var g={};return g[x]=function(){return 7},7!=""[h](g)})),_=S&&!fails((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];ct(String.prototype,h,E),ct(RegExp.prototype,x,2==g?function(h,g){return P.call(h,this,g)}:function(h){return P.call(h,this)})}b&&j(RegExp.prototype[x],"sham",!0)},ro=Ge.charAt,advanceStringIndex=function(h,g,d){return g+(d?ro(h,g).length:1)},no=Math.floor,io="".replace,ao=/\$([$&'`]|\d\d?|<[^>]*>)/g,oo=/\$([$&'`]|\d\d?)/g,getSubstitution=function(h,g,d,b,x,S){var _=d+h.length,w=b.length,C=oo;return void 0!==x&&(x=toObject(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(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(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(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(C.lastIndex),A))}for(var N,L="",D=0,V=0;V<R.length;V++){M=R[V];for(var j=String(M[0]),$=so(uo(toInteger(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=[j].concat(B,$,E);void 0!==z&&G.push(z);var q=String(b.apply(void 0,G))}else q=getSubstitution(j,E,$,B,z,b);$>=D&&(L+=E.slice(D,$)+q,D=$+j.length)}return L+E.slice(D)}]}));var co=wellKnownSymbol("isConcatSpreadable"),lo=9007199254740991,fo="Maximum allowed index exceeded",ho=In>=51||!fails((function(){var h=[];return h[co]=!1,h.concat()[0]!==h})),po=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(h){if(!isObject(h))return!1;var g=h[co];return void 0!==g?!!g:Mt(h)};_export({target:"Array",proto:!0,forced:!ho||!po},{concat:function concat(h){var g,d,b,x,S,_=toObject(this),w=arraySpeciesCreate(_,0),C=0;for(g=-1,b=arguments.length;g<b;g++)if(isConcatSpreadable(S=-1===g?_:arguments[g])){if(C+(x=toLength(S.length))>lo)throw TypeError(fo);for(d=0;d<x;d++,C++)d in S&&createProperty(w,C,S[d])}else{if(C>=lo)throw TypeError(fo);createProperty(w,C++,S)}return w.length=C,w}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,g,d){return[function match(g){var d=requireObjectCoercible(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(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(x.lastIndex),_)),E++}return 0===E?null:C}]}));var yo=[].join,vo=P!=Object,go=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:vo||!go},{join:function join(h){return yo.call(toIndexedObject(this),void 0===h?",":h)}});var mo=wellKnownSymbol("match"),isRegexp=function(h){var g;return isObject(h)&&(void 0!==(g=h[mo])?!!g:"RegExp"==classofRaw(h))},bo=[].push,xo=Math.min,So=4294967295,_o=!fails((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(this)),x=void 0===d?So:d>>>0;if(0===x)return[];if(void 0===h)return[b];if(!isRegexp(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(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(h),w=String(this),C=speciesConstructor(_,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(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 V=1;V<=D.length-1;V++)if(N.push(D[V]),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 tr&&"function"==typeof(b=g.constructor)&&b!==d&&isObject(x=b.prototype)&&x!==d.prototype&&tr(h,x),h},wo="\t\n\v\f\r    \u2028\u2029\ufeff",Co="["+wo+"]",Eo=RegExp("^"+Co+Co+"*"),Po=RegExp(Co+Co+"*$"),createMethod$3=function(h){return function(g){var d=String(requireObjectCoercible(g));return 1&h&&(d=d.replace(Eo,"")),2&h&&(d=d.replace(Po,"")),d}},ko={start:createMethod$3(1),end:createMethod$3(2),trim:createMethod$3(3)},Oo=xt.f,Ao=L.f,To=V.f,Ro=ko.trim,Mo="Number",No=b.Number,Io=No.prototype,Lo=classofRaw(Vt(Io))==Mo,toNumber=function(h){var g,d,b,x,S,_,w,C,E=toPrimitive(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(Ot(Mo,!No(" 0o1")||!No("0b1")||No("+0x1"))){for(var Do,Vo=function Number(h){var g=arguments.length<1?0:h,d=this;return d instanceof Vo&&(Lo?fails((function(){Io.valueOf.call(d)})):classofRaw(d)!=Mo)?inheritIfRequired(new No(toNumber(g)),d,Vo):toNumber(g)},jo=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(","),$o=0;jo.length>$o;$o++)has(No,Do=jo[$o])&&!has(Vo,Do)&&To(Vo,Do,Ao(No,Do));Vo.prototype=Io,Io.constructor=Vo,ct(b,Mo,Vo)}_export({target:"Array",proto:!0},{fill:function fill(h){for(var g=toObject(this),d=toLength(g.length),b=arguments.length,x=toAbsoluteIndex(b>1?arguments[1]:void 0,d),S=b>2?arguments[2]:void 0,_=void 0===S?d:toAbsoluteIndex(S,d);_>x;)g[x++]=h;return g}}),addToUnscopables("fill");var Fo=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),Bo=createCommonjsModule((function(h){var g=V.f,d=uid("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(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has(h,d)){if(!x(h))return"F";if(!g)return"E";setMetadata(h)}return h[d].objectID},getWeakData:function(h,g){if(!has(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(h,d)&&setMetadata(h),h}};tt[d]=!0})),Uo=Bo.onFreeze,zo=Object.freeze,Go=fails((function(){zo(1)}));_export({target:"Object",stat:!0,forced:Go,sham:!Fo},{freeze:function freeze(h){return zo&&isObject(h)?zo(Uo(h)):h}});var Ho,notARegexp=function(h){if(isRegexp(h))throw TypeError("The method doesn't accept regular expressions");return h},qo=wellKnownSymbol("match"),correctIsRegexpLogic=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("startsWith"),Zo=!(Qo||(Ho=Xo(String.prototype,"startsWith"),!Ho||Ho.writable));_export({target:"String",proto:!0,forced:!Zo&&!Qo},{startsWith:function startsWith(h){var g=String(requireObjectCoercible(this));notARegexp(h);var d=toLength(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({global:!0},{globalThis:b});var Ko=function check(h){return h&&h.Math==Math&&h},Jo=Ko("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||Ko("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||Ko("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||Ko("object"==_typeof(d)&&d)||function(){return this}()||Function("return this")(),ts=L.f,es=fails((function(){ts(1)}));_export({target:"Object",stat:!0,forced:!x||es,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return ts(toIndexedObject(h),g)}});var rs=function fails(h){try{return!!h()}catch(h){return!0}},ns=!rs((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),is={}.propertyIsEnumerable,as=Object.getOwnPropertyDescriptor,os={f:as&&!is.call({1:2},1)?function propertyIsEnumerable(h){var g=as(this,h);return!!g&&g.enumerable}:is},ss=function createPropertyDescriptor(h,g){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:g}},us={}.toString,cs=function classofRaw(h){return us.call(h).slice(8,-1)},ls="".split,fs=rs((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==cs(h)?ls.call(h,""):Object(h)}:Object,hs=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},ps=function toIndexedObject(h){return fs(hs(h))},ys=function isObject(h){return"object"===_typeof(h)?null!==h:"function"==typeof h},vs=function toPrimitive(h,g){if(!ys(h))return h;var d,b;if(g&&"function"==typeof(d=h.toString)&&!ys(b=d.call(h)))return b;if("function"==typeof(d=h.valueOf)&&!ys(b=d.call(h)))return b;if(!g&&"function"==typeof(d=h.toString)&&!ys(b=d.call(h)))return b;throw TypeError("Can't convert object to primitive value")},gs={}.hasOwnProperty,ds=function has(h,g){return gs.call(h,g)},ms=Jo.document,bs=ys(ms)&&ys(ms.createElement),xs=function documentCreateElement(h){return bs?ms.createElement(h):{}},Ss=!ns&&!rs((function(){return 7!=Object.defineProperty(xs("div"),"a",{get:function get(){return 7}}).a})),_s=Object.getOwnPropertyDescriptor,ws={f:ns?_s:function getOwnPropertyDescriptor(h,g){if(h=ps(h),g=vs(g,!0),Ss)try{return _s(h,g)}catch(h){}if(ds(h,g))return ss(!os.f.call(h,g),h[g])}},Cs=/#|\.prototype\./,Es=function isForced(h,g){var d=ks[Ps(h)];return d==As||d!=Os&&("function"==typeof g?rs(g):!!g)},Ps=Es.normalize=function(h){return String(h).replace(Cs,".").toLowerCase()},ks=Es.data={},Os=Es.NATIVE="N",As=Es.POLYFILL="P",Ts=Es,Rs={},Ms=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},Ns=function functionBindContext(h,g,d){if(Ms(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)}},Is=function anObject(h){if(!ys(h))throw TypeError(String(h)+" is not an object");return h},Ls=Object.defineProperty,Ds={f:ns?Ls:function defineProperty(h,g,d){if(Is(h),g=vs(g,!0),Is(d),Ss)try{return Ls(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}},Vs=ns?function(h,g,d){return Ds.f(h,g,ss(1,d))}:function(h,g,d){return h[g]=d,h},js=ws.f,$s=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},Fs=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?Rs:Rs[P]||(Rs[P]={}),L=N.prototype;for(x in g)d=!Ts(k?x:P+(A?".":"#")+x,h.forced)&&M&&ds(M,x),_=N[x],d&&(w=h.noTargetGet?(E=js(M,x))&&E.value:M[x]),S=d&&w?w:g[x],d&&_typeof(_)===_typeof(S)||(C=h.bind&&d?Ns(S,Jo):h.wrap&&d?$s(S):R&&"function"==typeof S?Ns(Function.call,S):S,(h.sham||S&&S.sham||_&&_.sham)&&Vs(C,"sham",!0),N[x]=C,R&&(ds(Rs,b=P+"Prototype")||Vs(Rs,b,{}),Rs[b][x]=S,h.real&&L&&!L[x]&&Vs(L,x,S)))},Bs=Math.ceil,Us=Math.floor,zs=function toInteger(h){return isNaN(h=+h)?0:(h>0?Us:Bs)(h)},Gs=Math.min,Hs=function toLength(h){return h>0?Gs(zs(h),9007199254740991):0},qs="__core-js_shared__",Xs=Jo[qs]||function setGlobal(h,g){try{Vs(Jo,h,g)}catch(d){Jo[h]=g}return g}(qs,{}),Ys=createCommonjsModule((function(h){(h.exports=function(h,g){return Xs[h]||(Xs[h]=void 0!==g?g:{})})("versions",[]).push({version:"3.9.0",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Ws=0,Qs=Math.random(),Zs=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Ws+Qs).toString(36)},Ks=!!Object.getOwnPropertySymbols&&!rs((function(){return!String(Symbol())})),Js=Ks&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),tu=Ys("wks"),eu=Jo.Symbol,ru=Js?eu:eu&&eu.withoutSetter||Zs,nu=function wellKnownSymbol(h){return ds(tu,h)||(Ks&&ds(eu,h)?tu[h]=eu[h]:tu[h]=ru("Symbol."+h)),tu[h]},iu=nu("match"),au=function notARegexp(h){if(function isRegexp(h){var g;return ys(h)&&(void 0!==(g=h[iu])?!!g:"RegExp"==cs(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},ou=nu("match"),su=function correctIsRegexpLogic(h){var g=/./;try{"/./"[h](g)}catch(d){try{return g[ou]=!1,"/./"[h](g)}catch(h){}}return!1},uu="".startsWith,cu=Math.min,lu=su("startsWith");Fs({target:"String",proto:!0,forced:!lu},{startsWith:function startsWith(h){var g=String(hs(this));au(h);var d=Hs(cu(arguments.length>1?arguments[1]:void 0,g.length)),b=String(h);return uu?uu.call(g,b,d):g.slice(d,d+b.length)===b}});var fu=function entryVirtual(h){return Rs[h+"Prototype"]},hu=fu("String").startsWith,pu=String.prototype,yu=function startsWith_1(h){var g=h.startsWith;return"string"==typeof h||h===pu||h instanceof String&&g===pu.startsWith?hu:g},vu=ko.trim,gu=b.parseFloat,du=1/gu(wo+"-0")!=-1/0?function parseFloat(h){var g=vu(String(h)),d=gu(g);return 0===d&&"-"==g.charAt(0)?-0:d}:gu;_export({global:!0,forced:parseFloat!=du},{parseFloat:du});var mu=ko.trim;_export({target:"String",proto:!0,forced:function(h){return fails((function(){return!!wo[h]()||"…"!="…"[h]()||wo[h].name!==h}))}("trim")},{trim:function trim(){return mu(this)}});var bu=V.f,xu=xt.f,Su=ut.set,_u=wellKnownSymbol("match"),wu=b.RegExp,Cu=wu.prototype,Eu=/a/g,Pu=/a/g,ku=new wu(Eu)!==Eu,Ou=Ua.UNSUPPORTED_Y;if(x&&Ot("RegExp",!ku||Ou||fails((function(){return Pu[_u]=!1,wu(Eu)!=Eu||wu(Pu)==Pu||"/a/i"!=wu(Eu,"i")})))){for(var Au=function RegExp(h,g){var d,b=this instanceof Au,x=isRegexp(h),S=void 0===g;if(!b&&x&&h.constructor===Au&&S)return h;ku?x&&!S&&(h=h.source):h instanceof Au&&(S&&(g=regexpFlags.call(h)),h=h.source),Ou&&(d=!!g&&g.indexOf("y")>-1)&&(g=g.replace(/y/g,""));var _=inheritIfRequired(ku?new wu(h,g):wu(h,g),b?this:Cu,Au);return Ou&&d&&Su(_,{sticky:d}),_},proxy=function(h){h in Au||bu(Au,h,{configurable:!0,get:function(){return wu[h]},set:function(g){wu[h]=g}})},Tu=xu(wu),Ru=0;Tu.length>Ru;)proxy(Tu[Ru++]);Cu.constructor=Au,Au.prototype=Cu,ct(b,"RegExp",Au)}setSpecies("RegExp");var Mu="\t\n\v\f\r    \u2028\u2029\ufeff",Nu="["+Mu+"]",Iu=RegExp("^"+Nu+Nu+"*"),Lu=RegExp(Nu+Nu+"*$"),Du=function createMethod(h){return function(g){var d=String(hs(g));return 1&h&&(d=d.replace(Iu,"")),2&h&&(d=d.replace(Lu,"")),d}},Vu={start:Du(1),end:Du(2),trim:Du(3)},ju=Vu.trim,$u=Jo.parseFloat,Fu=1/$u(Mu+"-0")!=-1/0?function parseFloat(h){var g=ju(String(h)),d=$u(g);return 0===d&&"-"==g.charAt(0)?-0:d}:$u;Fs({global:!0,forced:parseFloat!=Fu},{parseFloat:Fu});var Bu=Rs.parseFloat,Uu=Zt.map,zu=arrayMethodHasSpeciesSupport("map");_export({target:"Array",proto:!0,forced:!zu},{map:function map(h){return Uu(this,h,arguments.length>1?arguments[1]:void 0)}});var Gu,Hu,qu=function toObject(h){return Object(hs(h))},Xu=Array.isArray||function isArray(h){return"Array"==cs(h)},Yu=nu("species"),Wu=function arraySpeciesCreate(h,g){var d;return Xu(h)&&("function"!=typeof(d=h.constructor)||d!==Array&&!Xu(d.prototype)?ys(d)&&null===(d=d[Yu])&&(d=void 0):d=void 0),new(void 0===d?Array:d)(0===g?0:g)},Qu=[].push,Zu=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=qu(C),N=fs(M),L=Ns(E,P,3),D=Hs(N.length),V=0,j=k||Wu,$=g?j(C,D):d||_?j(C,0):void 0;D>V;V++)if((w||V in N)&&(R=L(A=N[V],V,M),h))if(g)$[V]=R;else if(R)switch(h){case 3:return!0;case 5:return A;case 6:return V;case 2:Qu.call($,A)}else switch(h){case 4:return!1;case 7:Qu.call($,A)}return S?-1:b||x?x:$}},Ku={forEach:Zu(0),map:Zu(1),filter:Zu(2),some:Zu(3),every:Zu(4),find:Zu(5),findIndex:Zu(6),filterOut:Zu(7)},Ju=function aFunction(h){return"function"==typeof h?h:void 0},tc=function getBuiltIn(h,g){return arguments.length<2?Ju(Rs[h])||Ju(Jo[h]):Rs[h]&&Rs[h][g]||Jo[h]&&Jo[h][g]},ec=tc("navigator","userAgent")||"",rc=Jo.process,nc=rc&&rc.versions,ic=nc&&nc.v8;ic?Hu=(Gu=ic.split("."))[0]+Gu[1]:ec&&(!(Gu=ec.match(/Edge\/(\d+)/))||Gu[1]>=74)&&(Gu=ec.match(/Chrome\/(\d+)/))&&(Hu=Gu[1]);var ac=Hu&&+Hu,oc=nu("species"),sc=function arrayMethodHasSpeciesSupport(h){return ac>=51||!rs((function(){var g=[];return(g.constructor={})[oc]=function(){return{foo:1}},1!==g[h](Boolean).foo}))},uc=Ku.map,cc=sc("map");Fs({target:"Array",proto:!0,forced:!cc},{map:function map(h){return uc(this,h,arguments.length>1?arguments[1]:void 0)}});var lc=fu("Array").map,fc=Array.prototype,hc=function map_1(h){var g=h.map;return h===fc||h instanceof Array&&g===fc.map?lc:g};Fs({target:"Array",stat:!0},{isArray:Xu});var pc=Rs.Array.isArray,yc=pc;var vc=function createProperty(h,g,d){var b=vs(g);b in h?Ds.f(h,b,ss(0,d)):h[b]=d},gc=nu("isConcatSpreadable"),dc=9007199254740991,mc="Maximum allowed index exceeded",bc=ac>=51||!rs((function(){var h=[];return h[gc]=!1,h.concat()[0]!==h})),xc=sc("concat"),Sc=function isConcatSpreadable(h){if(!ys(h))return!1;var g=h[gc];return void 0!==g?!!g:Xu(h)};Fs({target:"Array",proto:!0,forced:!bc||!xc},{concat:function concat(h){var g,d,b,x,S,_=qu(this),w=Wu(_,0),C=0;for(g=-1,b=arguments.length;g<b;g++)if(Sc(S=-1===g?_:arguments[g])){if(C+(x=Hs(S.length))>dc)throw TypeError(mc);for(d=0;d<x;d++,C++)d in S&&vc(w,C,S[d])}else{if(C>=dc)throw TypeError(mc);vc(w,C++,S)}return w.length=C,w}});var _c=fails((function(){Nt(1)}));_export({target:"Object",stat:!0,forced:_c},{keys:function keys(h){return Nt(toObject(h))}});var wc=gt.indexOf,Cc=[].indexOf,Ec=!!Cc&&1/[1].indexOf(1,-0)<0,Pc=arrayMethodIsStrict("indexOf");_export({target:"Array",proto:!0,forced:Ec||!Pc},{indexOf:function indexOf(h){return Ec?Cc.apply(this,arguments)||0:wc(this,h,arguments.length>1?arguments[1]:void 0)}});var kc,Oc=Math.max,Ac=Math.min,Tc=function toAbsoluteIndex(h,g){var d=zs(h);return d<0?Oc(d+g,0):Ac(d,g)},Rc=function createMethod(h){return function(g,d,b){var x,S=ps(g),_=Hs(S.length),w=Tc(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}},Mc={includes:Rc(!0),indexOf:Rc(!1)},Nc={},Ic=Mc.indexOf,Lc=function objectKeysInternal(h,g){var d,b=ps(h),x=0,S=[];for(d in b)!ds(Nc,d)&&ds(b,d)&&S.push(d);for(;g.length>x;)ds(b,d=g[x++])&&(~Ic(S,d)||S.push(d));return S},Dc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Vc=Object.keys||function keys(h){return Lc(h,Dc)},jc=ns?Object.defineProperties:function defineProperties(h,g){Is(h);for(var d,b=Vc(g),x=b.length,S=0;x>S;)Ds.f(h,d=b[S++],g[d]);return h},$c=tc("document","documentElement"),Fc=Ys("keys"),Bc=function sharedKey(h){return Fc[h]||(Fc[h]=Zs(h))},Uc=Bc("IE_PROTO"),zc=function EmptyConstructor(){},Gc=function scriptTag(h){return"<script>"+h+"</"+"script>"},Hc=function NullProtoObject(){try{kc=document.domain&&new ActiveXObject("htmlfile")}catch(h){}Hc=kc?function NullProtoObjectViaActiveX(h){h.write(Gc("")),h.close();var g=h.parentWindow.Object;return h=null,g}(kc):function NullProtoObjectViaIFrame(){var h,g=xs("iframe");return g.style.display="none",$c.appendChild(g),g.src=String("javascript:"),(h=g.contentWindow.document).open(),h.write(Gc("document.F=Object")),h.close(),h.F}();for(var h=Dc.length;h--;)delete Hc.prototype[Dc[h]];return Hc()};Nc[Uc]=!0;var qc=Object.create||function create(h,g){var d;return null!==h?(zc.prototype=Is(h),d=new zc,zc.prototype=null,d[Uc]=h):d=Hc(),void 0===g?d:jc(d,g)},Xc=Bt.f,Yc=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Yc},{getOwnPropertyNames:Xc});var Wc=Dc.concat("length","prototype"),Qc={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return Lc(h,Wc)}},Zc=Qc.f,Kc={}.toString,Jc="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tl={f:function getOwnPropertyNames(h){return Jc&&"[object Window]"==Kc.call(h)?function getWindowNames(h){try{return Zc(h)}catch(h){return Jc.slice()}}(h):Zc(ps(h))}},el={f:Object.getOwnPropertySymbols},rl=function redefine(h,g,d,b){b&&b.enumerable?h[g]=d:Vs(h,g,d)},nl={f:nu},il=Ds.f,al=function defineWellKnownSymbol(h){var g=Rs.Symbol||(Rs.Symbol={});ds(g,h)||il(g,h,{value:nl.f(h)})},ol={};ol[nu("toStringTag")]="z";var sl="[object z]"===String(ol),ul=nu("toStringTag"),cl="Arguments"==cs(function(){return arguments}()),ll=sl?cs: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),ul))?d:cl?cs(g):"Object"==(b=cs(g))&&"function"==typeof g.callee?"Arguments":b},fl=sl?{}.toString:function toString(){return"[object "+ll(this)+"]"},hl=Ds.f,pl=nu("toStringTag"),yl=function setToStringTag(h,g,d,b){if(h){var x=d?h:h.prototype;ds(x,pl)||hl(x,pl,{configurable:!0,value:g}),b&&!sl&&Vs(x,"toString",fl)}},vl=Bo.getWeakData,gl=ut.set,dl=ut.getterFor,ml=Zt.find,bl=Zt.findIndex,xl=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,g){return ml(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=bl(this.entries,(function(g){return g[0]===h}));return~g&&this.entries.splice(g,1),!!~g}};var Sl={getConstructor:function(h,g,d,b){var x=h((function(h,S){anInstance(h,x,g),gl(h,{type:g,id:xl++,frozen:void 0}),null!=S&&iterate(S,h[b],{that:h,AS_ENTRIES:d})})),S=dl(g),define=function(h,g,d){var b=S(h),x=vl(anObject(g),!0);return!0===x?uncaughtFrozenStore(b).set(g,d):x[b.id]=d,h};return redefineAll(x.prototype,{delete:function(h){var g=S(this);if(!isObject(h))return!1;var d=vl(h);return!0===d?uncaughtFrozenStore(g).delete(h):d&&has(d,g.id)&&delete d[g.id]},has:function has$1(h){var g=S(this);if(!isObject(h))return!1;var d=vl(h);return!0===d?uncaughtFrozenStore(g).has(h):d&&has(d,g.id)}}),redefineAll(x.prototype,d?{get:function get(h){var g=S(this);if(isObject(h)){var d=vl(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=ut.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];ct(C,h,"add"==h?function add(h){return g.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject(h))&&g.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject(h)?void 0:g.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject(h))&&g.call(this,0===h?0:h)}:function set(h,d){return g.call(this,0===h?0:h,d),this})};if(Ot(h,"function"!=typeof w||!(S||C.forEach&&!fails((function(){(new w).entries().next()})))))E=d.getConstructor(g,h,x,_),Bo.REQUIRED=!0;else if(Ot(h,!0)){var k=new E,A=k[_](S?{}:-0,1)!=k,R=fails((function(){k.has(1)})),M=checkCorrectnessOfIteration((function(h){new w(h)})),N=!S&&fails((function(){for(var h=new w,g=5;g--;)h[_](g,g);return!h.has(-0)}));M||((E=g((function(g,d){anInstance(g,E,h);var b=inheritIfRequired(new w,g,E);return null!=d&&iterate(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({global:!0,forced:E!=w},P),setToStringTag(E,h),S||d.setStrong(E,h,x),E}("WeakMap",wrapper,Sl);if(W&&x){g=Sl.getConstructor(wrapper,"WeakMap",!0),Bo.REQUIRED=!0;var w=_.prototype,C=w.delete,E=w.has,P=w.get,k=w.set;redefineAll(w,{delete:function(h){if(isObject(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(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(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(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 _l=Function.toString;"function"!=typeof Xs.inspectSource&&(Xs.inspectSource=function(h){return _l.call(h)});var wl,Cl,El,Pl=Xs.inspectSource,kl=Jo.WeakMap,Ol="function"==typeof kl&&/native code/.test(Pl(kl)),Al=Jo.WeakMap;if(Ol){var Tl=Xs.state||(Xs.state=new Al),Rl=Tl.get,Ml=Tl.has,Nl=Tl.set;wl=function set(h,g){return g.facade=h,Nl.call(Tl,h,g),g},Cl=function get(h){return Rl.call(Tl,h)||{}},El=function has(h){return Ml.call(Tl,h)}}else{var Il=Bc("state");Nc[Il]=!0,wl=function set(h,g){return g.facade=h,Vs(h,Il,g),g},Cl=function get(h){return ds(h,Il)?h[Il]:{}},El=function has(h){return ds(h,Il)}}var Ll={set:wl,get:Cl,has:El,enforce:function enforce(h){return El(h)?Cl(h):wl(h,{})},getterFor:function getterFor(h){return function(g){var d;if(!ys(g)||(d=Cl(g)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return d}}},Dl=Ku.forEach,Vl=Bc("hidden"),jl="Symbol",$l=nu("toPrimitive"),Fl=Ll.set,Bl=Ll.getterFor(jl),Ul=Object.prototype,zl=Jo.Symbol,Gl=tc("JSON","stringify"),Hl=ws.f,ql=Ds.f,Xl=tl.f,Yl=os.f,Wl=Ys("symbols"),Ql=Ys("op-symbols"),Zl=Ys("string-to-symbol-registry"),Kl=Ys("symbol-to-string-registry"),Jl=Ys("wks"),tf=Jo.QObject,ef=!tf||!tf.prototype||!tf.prototype.findChild,rf=ns&&rs((function(){return 7!=qc(ql({},"a",{get:function get(){return ql(this,"a",{value:7}).a}})).a}))?function(h,g,d){var b=Hl(Ul,g);b&&delete Ul[g],ql(h,g,d),b&&h!==Ul&&ql(Ul,g,b)}:ql,nf=function wrap(h,g){var d=Wl[h]=qc(zl.prototype);return Fl(d,{type:jl,tag:h,description:g}),ns||(d.description=g),d},af=Js?function(h){return"symbol"==_typeof(h)}:function(h){return Object(h)instanceof zl},of=function defineProperty(h,g,d){h===Ul&&of(Ql,g,d),Is(h);var b=vs(g,!0);return Is(d),ds(Wl,b)?(d.enumerable?(ds(h,Vl)&&h[Vl][b]&&(h[Vl][b]=!1),d=qc(d,{enumerable:ss(0,!1)})):(ds(h,Vl)||ql(h,Vl,ss(1,{})),h[Vl][b]=!0),rf(h,b,d)):ql(h,b,d)},sf=function defineProperties(h,g){Is(h);var d=ps(g),b=Vc(d).concat(ff(d));return Dl(b,(function(g){ns&&!uf.call(d,g)||of(h,g,d[g])})),h},uf=function propertyIsEnumerable(h){var g=vs(h,!0),d=Yl.call(this,g);return!(this===Ul&&ds(Wl,g)&&!ds(Ql,g))&&(!(d||!ds(this,g)||!ds(Wl,g)||ds(this,Vl)&&this[Vl][g])||d)},cf=function getOwnPropertyDescriptor(h,g){var d=ps(h),b=vs(g,!0);if(d!==Ul||!ds(Wl,b)||ds(Ql,b)){var x=Hl(d,b);return!x||!ds(Wl,b)||ds(d,Vl)&&d[Vl][b]||(x.enumerable=!0),x}},lf=function getOwnPropertyNames(h){var g=Xl(ps(h)),d=[];return Dl(g,(function(h){ds(Wl,h)||ds(Nc,h)||d.push(h)})),d},ff=function getOwnPropertySymbols(h){var g=h===Ul,d=Xl(g?Ql:ps(h)),b=[];return Dl(d,(function(h){!ds(Wl,h)||g&&!ds(Ul,h)||b.push(Wl[h])})),b};if(Ks||(rl((zl=function _Symbol(){if(this instanceof zl)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,g=Zs(h),d=function setter(h){this===Ul&&setter.call(Ql,h),ds(this,Vl)&&ds(this[Vl],g)&&(this[Vl][g]=!1),rf(this,g,ss(1,h))};return ns&&ef&&rf(Ul,g,{configurable:!0,set:d}),nf(g,h)}).prototype,"toString",(function toString(){return Bl(this).tag})),rl(zl,"withoutSetter",(function(h){return nf(Zs(h),h)})),os.f=uf,Ds.f=of,ws.f=cf,Qc.f=tl.f=lf,el.f=ff,nl.f=function(h){return nf(nu(h),h)},ns&&ql(zl.prototype,"description",{configurable:!0,get:function description(){return Bl(this).description}})),Fs({global:!0,wrap:!0,forced:!Ks,sham:!Ks},{Symbol:zl}),Dl(Vc(Jl),(function(h){al(h)})),Fs({target:jl,stat:!0,forced:!Ks},{for:function _for(h){var g=String(h);if(ds(Zl,g))return Zl[g];var d=zl(g);return Zl[g]=d,Kl[d]=g,d},keyFor:function keyFor(h){if(!af(h))throw TypeError(h+" is not a symbol");if(ds(Kl,h))return Kl[h]},useSetter:function useSetter(){ef=!0},useSimple:function useSimple(){ef=!1}}),Fs({target:"Object",stat:!0,forced:!Ks,sham:!ns},{create:function create(h,g){return void 0===g?qc(h):sf(qc(h),g)},defineProperty:of,defineProperties:sf,getOwnPropertyDescriptor:cf}),Fs({target:"Object",stat:!0,forced:!Ks},{getOwnPropertyNames:lf,getOwnPropertySymbols:ff}),Fs({target:"Object",stat:!0,forced:rs((function(){el.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return el.f(qu(h))}}),Gl){var hf=!Ks||rs((function(){var h=zl();return"[null]"!=Gl([h])||"{}"!=Gl({a:h})||"{}"!=Gl(Object(h))}));Fs({target:"JSON",stat:!0,forced:hf},{stringify:function stringify(h,g,d){for(var b,x=[h],S=1;arguments.length>S;)x.push(arguments[S++]);if(b=g,(ys(g)||void 0!==h)&&!af(h))return Xu(g)||(g=function replacer(h,g){if("function"==typeof b&&(g=b.call(this,h,g)),!af(g))return g}),x[1]=g,Gl.apply(null,x)}})}zl.prototype[$l]||Vs(zl.prototype,$l,zl.prototype.valueOf),yl(zl,jl),Nc[Vl]=!0,al("asyncIterator"),al("hasInstance"),al("isConcatSpreadable"),al("iterator"),al("match"),al("matchAll"),al("replace"),al("search"),al("species"),al("split"),al("toPrimitive"),al("toStringTag"),al("unscopables"),yl(Jo.JSON,"JSON",!0);var pf=Rs.Symbol;al("asyncDispose"),al("dispose"),al("observable"),al("patternMatch"),al("replaceAll");var yf,vf,gf,df=pf,mf={},bf=!rs((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),xf=Bc("IE_PROTO"),Sf=Object.prototype,_f=bf?Object.getPrototypeOf:function(h){return h=qu(h),ds(h,xf)?h[xf]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?Sf:null},wf=nu("iterator"),Cf=!1;[].keys&&("next"in(gf=[].keys())?(vf=_f(_f(gf)))!==Object.prototype&&(yf=vf):Cf=!0);var Ef=null==yf||rs((function(){var h={};return yf[wf].call(h)!==h}));Ef&&(yf={}),Ef&&!ds(yf,wf)&&Vs(yf,wf,(function returnThis(){return this}));var Pf={IteratorPrototype:yf,BUGGY_SAFARI_ITERATORS:Cf},kf=Pf.IteratorPrototype,Of=function returnThis(){return this},Af=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 Is(d),function aPossiblePrototype(h){if(!ys(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),Tf=Pf.IteratorPrototype,Rf=Pf.BUGGY_SAFARI_ITERATORS,Mf=nu("iterator"),Nf="keys",If="values",Lf="entries",Df=function returnThis(){return this},Vf=function defineIterator(h,g,d,b,x,S,_){!function createIteratorConstructor(h,g,d){var b=g+" Iterator";h.prototype=qc(kf,{next:ss(1,d)}),yl(h,b,!1,!0),mf[b]=Of}(d,g,b);var w,C,E,P=function getIterationMethod(h){if(h===x&&N)return N;if(!Rf&&h in R)return R[h];switch(h){case Nf:return function keys(){return new d(this,h)};case If:return function values(){return new d(this,h)};case Lf:return function entries(){return new d(this,h)}}return function(){return new d(this)}},k=g+" Iterator",A=!1,R=h.prototype,M=R[Mf]||R["@@iterator"]||x&&R[x],N=!Rf&&M||P(x),L="Array"==g&&R.entries||M;if(L&&(w=_f(L.call(new h)),Tf!==Object.prototype&&w.next&&(yl(w,k,!0,!0),mf[k]=Df)),x==If&&M&&M.name!==If&&(A=!0,N=function values(){return M.call(this)}),_&&R[Mf]!==N&&Vs(R,Mf,N),mf[g]=N,x)if(C={values:P(If),keys:S?N:P(Nf),entries:P(Lf)},_)for(E in C)(Rf||A||!(E in R))&&rl(R,E,C[E]);else Fs({target:g,proto:!0,forced:Rf||A},C);return C},jf="Array Iterator",$f=Ll.set,Ff=Ll.getterFor(jf);Vf(Array,"Array",(function(h,g){$f(this,{type:jf,target:ps(h),index:0,kind:g})}),(function(){var h=Ff(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"),mf.Arguments=mf.Array;var Bf=nu("toStringTag");for(var Uf 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 zf=Jo[Uf],Gf=zf&&zf.prototype;Gf&&ll(Gf)!==Bf&&Vs(Gf,Bf,Uf),mf[Uf]=mf.Array}var Hf=function createMethod(h){return function(g,d){var b,x,S=String(hs(g)),_=zs(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}},qf={codeAt:Hf(!1),charAt:Hf(!0)}.charAt,Xf="String Iterator",Yf=Ll.set,Wf=Ll.getterFor(Xf);Vf(String,"String",(function(h){Yf(this,{type:Xf,string:String(h),index:0})}),(function next(){var h,g=Wf(this),d=g.string,b=g.index;return b>=d.length?{value:void 0,done:!0}:(h=qf(d,b),g.index+=h.length,{value:h,done:!1})}));var Qf=nu("iterator"),Zf=function isIterable(h){var g=Object(h);return void 0!==g[Qf]||"@@iterator"in g||mf.hasOwnProperty(ll(g))},Kf=nu("iterator"),Jf=function getIteratorMethod(h){if(null!=h)return h[Kf]||h["@@iterator"]||mf[ll(h)]},th=function getIterator(h){var g=Jf(h);if("function"!=typeof g)throw TypeError(String(h)+" is not iterable");return Is(g.call(h))};var eh=sc("slice"),rh=nu("species"),nh=[].slice,ih=Math.max;Fs({target:"Array",proto:!0,forced:!eh},{slice:function slice(h,g){var d,b,x,S=ps(this),_=Hs(S.length),w=Tc(h,_),C=Tc(void 0===g?_:g,_);if(Xu(S)&&("function"!=typeof(d=S.constructor)||d!==Array&&!Xu(d.prototype)?ys(d)&&null===(d=d[rh])&&(d=void 0):d=void 0,d===Array||void 0===d))return nh.call(S,w,C);for(b=new(void 0===d?Array:d)(ih(C-w,0)),x=0;w<C;w++,x++)w in S&&vc(b,x,S[w]);return b.length=x,b}});var ah=fu("Array").slice,oh=Array.prototype,sh=function slice_1(h){var g=h.slice;return h===oh||h instanceof Array&&g===oh.slice?ah:g},uh=sh,ch=!checkCorrectnessOfIteration((function(h){Array.from(h)}));_export({target:"Array",stat:!0,forced:ch},{from:xi});var lh=function iteratorClose(h){var g=h.return;if(void 0!==g)return Is(g.call(h)).value},fh=function callWithSafeIterationClosing(h,g,d,b){try{return b?g(Is(d)[0],d[1]):g(d)}catch(g){throw lh(h),g}},hh=nu("iterator"),ph=Array.prototype,yh=function isArrayIteratorMethod(h){return void 0!==h&&(mf.Array===h||ph[hh]===h)},vh=nu("iterator"),gh=!1;try{var dh=0,mh={next:function next(){return{done:!!dh++}},return:function _return(){gh=!0}};mh[vh]=function(){return this},Array.from(mh,(function(){throw 2}))}catch(h){}var bh=function checkCorrectnessOfIteration(h,g){if(!g&&!gh)return!1;var d=!1;try{var b={};b[vh]=function(){return{next:function next(){return{done:d=!0}}}},h(b)}catch(h){}return d},xh=!bh((function(h){Array.from(h)}));Fs({target:"Array",stat:!0,forced:xh},{from:function from(h){var g,d,b,x,S,_,w=qu(h),C="function"==typeof this?this:Array,E=arguments.length,P=E>1?arguments[1]:void 0,k=void 0!==P,A=Jf(w),R=0;if(k&&(P=Ns(P,E>2?arguments[2]:void 0,2)),null==A||C==Array&&yh(A))for(d=new C(g=Hs(w.length));g>R;R++)_=k?P(w[R],R):w[R],vc(d,R,_);else for(S=(x=A.call(w)).next,d=new C;!(b=S.call(x)).done;R++)_=k?fh(x,P,[b.value,R],!0):b.value,vc(d,R,_);return d.length=R,d}});var Sh=Rs.Array.from,_h=Sh;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 _unsupportedIterableToArray(h,g){var d;if(h){if("string"==typeof h)return _arrayLikeToArray(h,g);var b=uh(d=Object.prototype.toString.call(h)).call(d,8,-1);return"Object"===b&&h.constructor&&(b=h.constructor.name),"Map"===b||"Set"===b?_h(h):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?_arrayLikeToArray(h,g):void 0}}function _slicedToArray(h,g){return function _arrayWithHoles(h){if(yc(h))return h}(h)||function _iterableToArrayLimit(h,g){if(void 0!==df&&Zf(Object(h))){var d=[],b=!0,x=!1,S=void 0;try{for(var _,w=th(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(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.")}()}Fs({target:"Object",stat:!0,forced:!ns,sham:!ns},{defineProperty:Ds.f});var wh=createCommonjsModule((function(h){var g=Rs.Object,d=h.exports=function defineProperty(h,d,b){return g.defineProperty(h,d,b)};g.defineProperty.sham&&(d.sham=!0)})),Ch=wh;Fs({target:"Object",stat:!0,forced:!ns,sham:!ns},{defineProperties:jc});var Eh=createCommonjsModule((function(h){var g=Rs.Object,d=h.exports=function defineProperties(h,d){return g.defineProperties(h,d)};g.defineProperties.sham&&(d.sham=!0)})),Ph=tc("Reflect","ownKeys")||function ownKeys(h){var g=Qc.f(Is(h)),d=el.f;return d?g.concat(d(h)):g};Fs({target:"Object",stat:!0,sham:!ns},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var g,d,b=ps(h),x=ws.f,S=Ph(b),_={},w=0;S.length>w;)void 0!==(d=x(b,g=S[w++]))&&vc(_,g,d);return _}});var kh=Rs.Object.getOwnPropertyDescriptors,Oh=function arrayMethodIsStrict(h,g){var d=[][h];return!!d&&rs((function(){d.call(null,g||function(){throw 1},1)}))},Ah=Ku.forEach,Th=Oh("forEach")?[].forEach:function forEach(h){return Ah(this,h,arguments.length>1?arguments[1]:void 0)};Fs({target:"Array",proto:!0,forced:[].forEach!=Th},{forEach:Th});var Rh=fu("Array").forEach,Mh=Array.prototype,Nh={DOMTokenList:!0,NodeList:!0},Ih=function forEach_1(h){var g=h.forEach;return h===Mh||h instanceof Array&&g===Mh.forEach||Nh.hasOwnProperty(ll(h))?Rh:g},Lh=ws.f,Dh=rs((function(){Lh(1)}));Fs({target:"Object",stat:!0,forced:!ns||Dh,sham:!ns},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,g){return Lh(ps(h),g)}});var Vh=createCommonjsModule((function(h){var g=Rs.Object,d=h.exports=function getOwnPropertyDescriptor(h,d){return g.getOwnPropertyDescriptor(h,d)};g.getOwnPropertyDescriptor.sham&&(d.sham=!0)})),jh=Vh,$h=Zt.filter,Fh=arrayMethodHasSpeciesSupport("filter");_export({target:"Array",proto:!0,forced:!Fh},{filter:function filter(h){return $h(this,h,arguments.length>1?arguments[1]:void 0)}});var Bh=Ku.filter,Uh=sc("filter");Fs({target:"Array",proto:!0,forced:!Uh},{filter:function filter(h){return Bh(this,h,arguments.length>1?arguments[1]:void 0)}});var zh=fu("Array").filter,Gh=Array.prototype,Hh=function filter_1(h){var g=h.filter;return h===Gh||h instanceof Array&&g===Gh.filter?zh:g},qh=Rs.Object.getOwnPropertySymbols,Xh=rs((function(){Vc(1)}));Fs({target:"Object",stat:!0,forced:Xh},{keys:function keys(h){return Vc(qu(h))}});var Yh=Rs.Object.keys,Wh=yi,Qh=function Result(h,g){this.stopped=h,this.result=g},Zh=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=Ns(g,P,1+k+R),N=function stop(h){return b&&lh(b),new Qh(!0,h)},L=function callFn(h){return k?(Is(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=Jf(h)))throw TypeError("Target is not iterable");if(yh(x)){for(S=0,_=Hs(h.length);_>S;S++)if((w=L(h[S]))&&w instanceof Qh)return w;return new Qh(!1)}b=x.call(h)}for(C=b.next;!(E=C.call(b)).done;){try{w=L(E.value)}catch(h){throw lh(b),h}if("object"==_typeof(w)&&w&&w instanceof Qh)return w}return new Qh(!1)},Kh=function AggregateError(h,g){var d=this;if(!(d instanceof Kh))return new Kh(h,g);Af&&(d=Af(new Error(void 0),_f(d))),void 0!==g&&Vs(d,"message",String(g));var b=[];return Zh(h,b.push,{that:b}),Vs(d,"errors",b),d};Kh.prototype=qc(Error.prototype,{constructor:ss(5,Kh),message:ss(5,""),name:ss(5,"AggregateError")}),Fs({global:!0},{AggregateError:Kh});var Jh=!!Nr&&fails((function(){Nr.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Jh},{finally:function(h){var g=speciesConstructor(this,getBuiltIn("Promise")),d="function"==typeof h;return this.then(d?function(d){return promiseResolve(g,h()).then((function(){return d}))}:h,d?function(d){return promiseResolve(g,h()).then((function(){throw d}))}:h)}}),"function"!=typeof Nr||Nr.prototype.finally||ct(Nr.prototype,"finally",getBuiltIn("Promise").prototype.finally);var tp=Jo.Promise,ep=function redefineAll(h,g,d){for(var b in g)d&&d.unsafe&&h[b]?h[b]=g[b]:rl(h,b,g[b],d);return h},rp=nu("species"),np=function setSpecies(h){var g=tc(h),d=Ds.f;ns&&g&&!g[rp]&&d(g,rp,{configurable:!0,get:function get(){return this}})},ip=function anInstance(h,g,d){if(!(h instanceof g))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return h},ap=nu("species"),op=function speciesConstructor(h,g){var d,b=Is(h).constructor;return void 0===b||null==(d=Is(b)[ap])?g:Ms(d)},sp=!b.setImmediate||!b.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:sp},{setImmediate:pn.set,clearImmediate:pn.clear});var up,cp,lp,fp=/(iphone|ipod|ipad).*applewebkit/i.test(ec),hp="process"==cs(Jo.process),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)},up(bp),bp},vp=function clearImmediate(h){delete xp[h]},hp?up=function defer(h){gp.nextTick(wp(h))}:mp&&mp.now?up=function defer(h){mp.now(wp(h))}:dp&&!fp?(lp=(cp=new dp).port2,cp.port1.onmessage=Cp,up=Ns(lp.postMessage,lp,1)):Jo.addEventListener&&"function"==typeof postMessage&&!Jo.importScripts&&pp&&"file:"!==pp.protocol&&!rs(Ep)?(up=Ep,Jo.addEventListener("message",Cp,!1)):up=Sp in xs("script")?function defer(h){$c.appendChild(xs("script")).onreadystatechange=function(){$c.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(ec),Dp=ws.f,Vp=Ip.set,jp=Jo.MutationObserver||Jo.WebKitMutationObserver,$p=Jo.document,Fp=Jo.process,Bp=Jo.Promise,Up=Dp(Jo,"queueMicrotask"),zp=Up&&Up.value;zp||(Pp=function flush(){var h,g;for(hp&&(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()},fp||hp||Lp||!jp||!$p?Bp&&Bp.resolve?(Mp=Bp.resolve(void 0),Np=Mp.then,Ap=function notify(){Np.call(Mp,Pp)}):Ap=hp?function notify(){Fp.nextTick(Pp)}:function notify(){Vp.call(Jo,Pp)}:(Tp=!0,Rp=$p.createTextNode(""),new jp(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=Ms(g),this.reject=Ms(d)},qp={f:function f(h){return new Hp(h)}},Xp=function promiseResolve(h,g){if(Is(h),ys(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=nu("species"),Zp="Promise",Kp=Ll.get,Jp=Ll.set,ty=Ll.getterFor(Zp),ey=tp,ry=Jo.TypeError,ny=Jo.document,iy=Jo.process;tc("fetch");var ay,oy,sy,uy=qp.f,cy=uy,ly=!!(ny&&ny.createEvent&&Jo.dispatchEvent),fy="function"==typeof PromiseRejectionEvent,hy="unhandledrejection",py=Ts(Zp,(function(){if(!(Pl(ey)!==String(ey))){if(66===ac)return!0;if(!hp&&!fy)return!0}if(!ey.prototype.finally)return!0;if(ac>=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||!bh((function(h){ey.all(h).catch((function(){}))})),vy=function isThenable(h){var g;return!(!ys(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(){hp?iy.emit("unhandledRejection",b,d):dy(hy,d,b)})),h.rejection=hp||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;hp?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){ip(this,ey,Zp),Ms(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=ep(ey.prototype,{then:function then(h,g){var d=ty(this),b=uy(op(this,ey));return b.ok="function"!=typeof h||h,b.fail="function"==typeof g&&g,b.domain=hp?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)}),Fs({global:!0,wrap:!0,forced:py},{Promise:ey}),yl(ey,Zp,!1,!0),np(Zp),sy=tc(Zp),Fs({target:Zp,stat:!0,forced:py},{reject:function reject(h){var g=uy(this);return g.reject.call(void 0,h),g.promise}}),Fs({target:Zp,stat:!0,forced:!0},{resolve:function resolve(h){return Xp(this===sy?ey:this,h)}}),Fs({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=Ms(g.resolve),S=[],_=0,w=1;Zh(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=Ms(g.resolve);Zh(h,(function(h){x.call(g,h).then(d.resolve,b)}))}));return x.error&&b(x.value),d.promise}}),Fs({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=Ms(g.resolve),x=[],S=0,_=1;Zh(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";Fs({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=Ms(g.resolve),S=[],_=0,w=1,C=!1;Zh(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(tc("AggregateError"))(S,Cy)))}))})),--w||x(new(tc("AggregateError"))(S,Cy))}));return S.error&&x(S.value),d.promise}});var Ey=!!tp&&rs((function(){tp.prototype.finally.call({then:function then(){}},(function(){}))}));Fs({target:"Promise",proto:!0,real:!0,forced:Ey},{finally:function _finally(h){var g=op(this,tc("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=Rs.Promise;Fs({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$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):ky.resolve(C).then(b,x)}function _asyncToGenerator$1(h){return function(){var g=this,d=arguments;return new ky((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 Oy=wh;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(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=fu("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$8=function(h){return function(g,d,b,x){aFunction$1(d);var S=toObject(g),_=P(S),w=toLength(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$8(!1),right:createMethod$8(!0)}.left,Ny=arrayMethodIsStrict("reduce");_export({target:"Array",proto:!0,forced:!Ny||!Yr&&In>79&&In<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){Ms(d);var S=qu(g),_=fs(S),w=Hs(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=Oh("reduce");Fs({target:"Array",proto:!0,forced:!Dy||!hp&&ac>79&&ac<83},{reduce:function reduce(h){return Ly(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var Vy=fu("Array").reduce,jy=Array.prototype,$y=function reduce_1(h){var g=h.reduce;return h===jy||h instanceof Array&&g===jy.reduce?Vy:g};Fs({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var Fy=Rs.Date.now,By=Zt.every,Uy=arrayMethodIsStrict("every");_export({target:"Array",proto:!0,forced:!Uy},{every:function every(h){return By(this,h,arguments.length>1?arguments[1]:void 0)}});var zy=Ku.every,Gy=Oh("every");Fs({target:"Array",proto:!0,forced:!Gy},{every:function every(h){return zy(this,h,arguments.length>1?arguments[1]:void 0)}});var Hy=fu("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=Ms(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 ys(g.prototype)&&(b.prototype=g.prototype),b};Fs({target:"Function",proto:!0},{bind:Ky});for(var Jy=fu("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=Vu.trim;Fs({target:"String",proto:!0,forced:function stringTrimForced(h){return rs((function(){return!!Mu[h]()||"…"!="…"[h]()||Mu[h].name!==h}))}("trim")},{trim:function trim(){return pv(this)}});var yv=fu("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({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=tc("Reflect","construct"),wv=rs((function(){function F(){}return!(_v((function(){}),[],F)instanceof F)})),Cv=!rs((function(){_v((function(){}))})),Ev=wv||Cv;Fs({target:"Reflect",stat:!0,forced:Ev,sham:Ev},{construct:function construct(h,g){Ms(h),Is(g);var d=arguments.length<3?h:Ms(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=qc(ys(x)?x:Object.prototype),_=Function.apply.call(h,S,g);return ys(_)?_:S}});var Pv=Rs.Reflect.construct;Fs({target:"Object",stat:!0,sham:!ns},{create:qc});var kv=Rs.Object,Ov=function create(h,g){return kv.create(h,g)};Fs({target:"Object",stat:!0},{setPrototypeOf:Af});var Av=Rs.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=nl.f("iterator");function _typeof$1(h){return(_typeof$1="function"==typeof df&&"symbol"==typeof Tv?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof df&&h.constructor===df&&h!==df.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=rs((function(){_f(1)}));Fs({target:"Object",stat:!0,forced:Rv,sham:!bf},{getPrototypeOf:function getPrototypeOf(h){return _f(qu(h))}});var Mv=Rs.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(yc(h))return _arrayLikeToArray(h)}(h)||function _iterableToArray(h){if(void 0!==df&&Zf(Object(h)))return _h(h)}(h)||_unsupportedIterableToArray(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=Zt.some,Iv=arrayMethodIsStrict("some");_export({target:"Array",proto:!0,forced:!Iv},{some:function some(h){return Nv(this,h,arguments.length>1?arguments[1]:void 0)}});var Lv=Ku.some,Dv=Oh("some");Fs({target:"Array",proto:!0,forced:!Dv},{some:function some(h){return Lv(this,h,arguments.length>1?arguments[1]:void 0)}});var Vv=fu("Array").some,jv=Array.prototype,$v=function some_1(h){var g=h.some;return h===jv||h instanceof Array&&g===jv.some?Vv:g},Fv=gt.includes;_export({target:"Array",proto:!0},{includes:function includes(h){return Fv(this,h,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes"),_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(h){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(h),arguments.length>1?arguments[1]:void 0)}});var Bv=Mc.includes;Fs({target:"Array",proto:!0},{includes:function includes(h){return Bv(this,h,arguments.length>1?arguments[1]:void 0)}});var Uv=fu("Array").includes;Fs({target:"String",proto:!0,forced:!su("includes")},{includes:function includes(h){return!!~String(hs(this)).indexOf(au(h),arguments.length>1?arguments[1]:void 0)}});var zv=fu("String").includes,Gv=Array.prototype,Hv=String.prototype,qv=function includes$2(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=Sh,Yv=[].reverse,Wv=[1,2];Fs({target:"Array",proto:!0,forced:String(Wv)===String(Wv.reverse())},{reverse:function reverse(){return Xu(this)&&(this.length=this.length),Yv.call(this)}});var Qv=fu("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=Mc.indexOf,tg=[].indexOf,eg=!!tg&&1/[1].indexOf(1,-0)<0,rg=Oh("indexOf");Fs({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=fu("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};Fs({target:"Reflect",stat:!0},{get:function get$2(h,g){var d,b,x=arguments.length<3?h:arguments[2];return Is(h)===x?h[g]:(d=ws.f(h,g))?ds(d,"value")?d.value:void 0===d.get?void 0:d.get.call(x):ys(b=_f(h))?get$2(b,g,x):void 0}});var og=Rs.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)}Fs({target:"Array",proto:!0},{fill:function fill(h){for(var g=qu(this),d=Hs(g.length),b=arguments.length,x=Tc(b>1?arguments[1]:void 0,d),S=b>2?arguments[2]:void 0,_=void 0===S?d:Tc(S,d);_>x;)g[x++]=h;return g}});var ug=fu("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$1(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(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$1([(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$1([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(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(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),V=Math.cos(L),j=1/T(_.rX),$=1/T(_.rY),B=T(V)*j+T(D)*$,U=2*D*V*(j-$),z=T(D)*j+T(V)*$,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(h.phi1,h.phi2,R/E),N=c(h.phi1,h.phi2,(R+1)/E),L=N-M,D=4/3*Math.tan(L*yg/4),V=[Math.cos(M*yg)-D*Math.sin(M*yg),Math.sin(M*yg)+D*Math.cos(M*yg)],j=V[0],$=V[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$1([g*h.rX,d*h.rY],h.xRot),x=b[0],S=b[1];return[h.cX+x,h.cY+S]};b=Y(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(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(_,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],V=D[0],j=D[1],$=function I(h){var g=h[0],d=h[1],b=180*Math.atan2(d,g)/Math.PI;return b<V?b+360:b},B=0,U=s(N,-R,0).map($);B<U.length;B++)(q=U[B])>V&&q<j&&O(y(w.cX,R,N,q));for(var z=0,G=s(L,-M,0).map($);z<G.length;z++){var q;(q=G[z])>V&&q<j&&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=ws.f;Fs({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,g){var d=_g(Is(h),g);return!(d&&!d.configurable)&&delete h[g]}});var wg=Rs.Reflect.deleteProperty,Cg=fu("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(ll(h))?Cg:g},Og=Vu.trim,Ag=Jo.parseInt,Tg=/^[+-]?0[Xx]/,Rg=8!==Ag(Mu+"08")||22!==Ag(Mu+"0x16")?function parseInt(h,g){var d=Og(String(h));return Ag(d,g>>>0||(Tg.test(d)?16:10))}:Ag;Fs({global:!0,forced:parseInt!=Rg},{parseInt:Rg});var Mg=Rs.parseInt,Ng=pc,Ig=Jf,Lg=pf,Dg=sh,Vg=Object.isExtensible,jg=fails((function(){Vg(1)}));_export({target:"Object",stat:!0,forced:jg},{isExtensible:function isExtensible(h){return!!isObject(h)&&(!Vg||Vg(h))}});var $g=Bo.onFreeze,Fg=Object.preventExtensions,Bg=fails((function(){Fg(1)}));_export({target:"Object",stat:!0,forced:Bg,sham:!Fo},{preventExtensions:function preventExtensions(h){return Fg&&isObject(h)?Fg($g(h)):h}});var Ug=!rs((function(){return Object.isExtensible(Object.preventExtensions({}))})),zg=createCommonjsModule((function(h){var g=Ds.f,d=Zs("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(!ys(h))return"symbol"==_typeof(h)?h:("string"==typeof h?"S":"P")+h;if(!ds(h,d)){if(!x(h))return"F";if(!g)return"E";S(h)}return h[d].objectID},getWeakData:function getWeakData(h,g){if(!ds(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)&&!ds(h,d)&&S(h),h}};Nc[d]=!0})),Gg=Ds.f,Hg=Ku.forEach,qg=Ll.set,Xg=Ll.getterFor,Yg=Ds.f,Wg=zg.fastKey,Qg=Ll.set,Zg=Ll.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(ns&&"function"==typeof w&&(S||C.forEach&&!rs((function(){(new w).entries().next()})))){b=g((function(g,d){qg(ip(g,b,h),{type:h,collection:new w}),null!=d&&Zh(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||Vs(b.prototype,h,(function(d,b){var x=P(this).collection;if(!g&&S&&!ys(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;yl(b,h,!1,!0),E[h]=b,Fs({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){ip(h,x,g),Qg(h,{type:g,index:qc(null),first:void 0,last:void 0,size:0}),ns||(h.size=0),null!=S&&Zh(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),ns?_.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 ep(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,ns?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=_),ns?d.size--:g.size--}return!!b},forEach:function forEach(h){for(var g,d=S(this),b=Ns(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)}}),ep(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)}}),ns&&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),np(g)}});var Kg=Rs.Map,Jg=tc("Reflect","apply"),td=Function.apply,ed=!rs((function(){Jg((function(){}))}));Fs({target:"Reflect",stat:!0,forced:ed},{apply:function apply(h,g,d){return Ms(h),Is(d),Jg?Jg(h,g,d):td.call(h,g,d)}});var rd=Rs.Reflect.apply;Fs({target:"Reflect",stat:!0,sham:!bf},{getPrototypeOf:function getPrototypeOf(h){return _f(Is(h))}});var nd=Rs.Reflect.getPrototypeOf;function _typeof$2(h){return(_typeof$2="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$2(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,V=0,j=0,$=id[S],B=ad[S],U=0;U<x;U++){M=R;for(var z=w[j],G=w[j+1],q=w[j+2],X=w[j+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=j+((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*$>>B;if(w[j+3]=vt,0!==vt){var gt=255/vt;w[j]=(nt*$>>B)*gt,w[j+1]=(it*$>>B)*gt,w[j+2]=(at*$>>B)*gt}else w[j]=w[j+1]=w[j+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=V+(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,j+=4}V+=b}for(var wt=0;wt<b;wt++){var Ct=w[j=wt<<2],Et=w[j+1],Pt=w[j+2],kt=w[j+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 Vt=b,jt=0,$t=0,Ft=0,Bt=0,Ut=1;Ut<=S;Ut++){j=Vt+wt<<2;var zt=k-Ut;Mt+=(M.r=Ct=w[j])*zt,Nt+=(M.g=Et=w[j+1])*zt,It+=(M.b=Pt=w[j+2])*zt,Lt+=(M.a=kt=w[j+3])*zt,Bt+=Ct,jt+=Et,$t+=Pt,Ft+=kt,M=M.next,Ut<P&&(Vt+=b)}j=wt,L=R,D=_;for(var Gt=0;Gt<x;Gt++){var Ht=j<<2;w[Ht+3]=kt=Lt*$>>B,kt>0?(kt=255/kt,w[Ht]=(Mt*$>>B)*kt,w[Ht+1]=(Nt*$>>B)*kt,w[Ht+2]=(It*$>>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+=jt+=L.g=w[Ht+1],It+=$t+=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,jt-=Et,$t-=Pt,Ft-=kt,D=D.next,j+=b}}return h}(_,0,0,b,x,S),h.getContext("2d").putImageData(_,g,d)}}var od=function BlurStack(){!function _classCallCheck$1(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 hc(g).call(g,Bu)}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(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 hc(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:Bu(h);var g=this.value,d=Bu(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(!yu(h).call(h,"rgb"))return h;var g=3;return h.replace(/\d+(\.\d+)?/g,(function(h,d){return g--&&d?String(Math.round(Bu(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(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(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(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=""),Ih(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;Ih(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;Ih(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(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,V=h.clipY,j=void 0===V?0:V,$=_slicedToArray(compressSpaces(b).replace(/^defer\s/,"").split(" "),2),B=$[0]||"xMidYMid",U=$[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*j;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,V=this.FRAMERATE,j=this.mouse,$=1e3/V;if(this.frameDuration=$,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)>=$&&(U=B-z%$,g.shouldUpdate(C,R)&&(g.render(h,P,A,M,N,L,D),j.runEvents())),g.intervalId=hv(tick)};_||j.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=$y(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,j=toNumbers(h.getAttribute("viewBox").getString()),$=0,B=0;if("number"==typeof b){var U=h.getStyle("width");U.hasValue()?$=U.getPixels("x")/b:isNaN(j[2])||($=j[2]/b)}if("number"==typeof x){var z=h.getStyle("height");z.hasValue()?B=z.getPixels("y")/x:isNaN(j[3])||(B=j[3]/x)}$||($=B),B||(B=$),h.getAttribute("width",!0).setValue(b),h.getAttribute("height",!0).setValue(x);var G=h.getStyle("transform",!0,!0);G.setValue(Ry(D=Ry(V="".concat(G.getString()," scale(")).call(V,1/$,", ")).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(this,Parser),this.fetch=d,this.DOMParser=x}var h,g;return _createClass(Parser,[{key:"parse",value:(g=_asyncToGenerator$1(Wh.mark((function _callee(h){return Wh.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$1(Wh.mark((function _callee2(h){var g,d;return Wh.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(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(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(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(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(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(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(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(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);Ih(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(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(Ih(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=hc(_=this.getAttribute("style").getString().split(";")).call(_,(function(h){return gv(h).call(h)}));Ih(w).call(w,(function(g){var d;if(g){var b=_slicedToArray(hc(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)),Ih(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;Ih(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)&&$v(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 $y(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){Ih(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(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(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:hc(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 Ih(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 Vd=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(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 jd=function(h){_inherits(RenderedElement,h);var g=_createSuper$4(RenderedElement);function RenderedElement(){var h;return _classCallCheck(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"),V=this.getStyle("stroke-dasharray"),j=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()),V.hasValue()&&"none"!==V.getString()){var $=toNumbers(V.getString());void 0!==h.setLineDash?h.setLineDash($):void 0!==h.webkitLineDash?h.webkitLineDash=$:void 0===h.mozDash||1===$.length&&0===$[0]||(h.mozDash=$);var B=j.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 $d=function(h){_inherits(TextElement,h);var g=_createSuper$5(TextElement);function TextElement(h,d,b){var x;return _classCallCheck(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 Ih(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 Vd(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),Ih(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,V=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(b,D,V),h.fillStyle&&h.fillText(b,D,V)):(h.fillStyle&&h.fillText(b,D,V),h.strokeStyle&&h.strokeText(b,D,V))}}},{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 _?(Ih(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),Ih(x=S.children).call(x,(function(d,b){g.renderChild(h,g,S,b)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var g;return $y(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}(jd);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(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}($d);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(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(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(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 Vd;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 hc(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),V=D[0],j=D[1];L.render(h,V,j)}}}},{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],V=vectorsAngle(L,D);return vectorsRatio(L,D)<=-1&&(V=Math.PI),vectorsRatio(L,D)>=1&&(V=0),{currentPoint:E,rX:b,rY:x,sweepFlag:w,xAxisRotation:C,centp:M,a1:N,ad:V}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(jd);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(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}(jd);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(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 Vd(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(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 Vd(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(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 Vd(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(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 Vd(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(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 Vd(b,x);return h&&(h.beginPath(),h.moveTo(b,x)),Ih(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 Ih(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(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(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(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(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(this,GElement),(h=g.apply(this,arguments)).type="g",h}return _createClass(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var g,d=new Vd;return Ih(g=this.children).call(g,(function(g){d.addBoundingBox(g.getBoundingBox(h))})),d}}]),GElement}(jd);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(this,GradientElement),(x=g.call(this,h,d,b)).attributesToInherit=["gradientUnits"],x.stops=[];var S=_assertThisInitialized(x),_=S.stops,w=S.children;return Ih(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(Ih(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;Ih(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(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(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(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(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",Bu(g.getValue()[x])),d.to=new gd(h,"to",Bu(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(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(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 hc(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$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=th(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 _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(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(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(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(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(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}($d);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(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 Vd(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}($d);function _createForOfIteratorHelper$1(h,g){var d;if(void 0===Lg||null==Ig(h)){if(Ng(h)||(d=function _unsupportedIterableToArray$1$1(h,g){var d;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1$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$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=th(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$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$2(h,g){var d=Yh(h);if(qh){var b=qh(h);g&&(b=Hh(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)Ih(d=ownKeys$2(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(kh)Eh(h,kh(b));else{var x;Ih(x=ownKeys$2(Object(b))).call(x,(function(g){Ch(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(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(),Ih(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(),Ih(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,_=hc(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=$y(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 V=this.getPathLength(),j=this.getStyle("startOffset").getNumber(0)*V,$=0;"middle"!==C&&"center"!==C||($=-D/2),"end"!==C&&"right"!==C||($=-D),$+=j,Ih(x).call(x,(function(g,b){var _=d.findSegmentToFitChar(h,C,D,V,S,$,w,g,b),E=_.offset,P=_.segment,k=_.rotation;$=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=$y(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}($d);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(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$1(Wh.mark((function _callee(h){var g;return Wh.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$1(Wh.mark((function _callee2(h){var g,d;return Wh.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 Vd(h,g,h+d,g+b)}}]),ImageElement}(jd);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(this,SymbolElement),(h=g.apply(this,arguments)).type="symbol",h}return _createClass(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(jd),dm=function(){function SVGFontLoader(h){_classCallCheck(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return _createClass(SVGFontLoader,[{key:"load",value:(h=_asyncToGenerator$1(Wh.mark((function _callee(h,g){var d,b,x,S;return Wh.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"),Ih(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(this,StyleElement),(S=g.call(this,h,d,b)).type="style";var _=compressSpaces(hc(x=Xv(d.childNodes)).call(x,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return Ih(_).call(_,(function(g){var d=gv(g).call(g);if(d){var b=d.split("{"),x=b[0].split(","),S=b[1].split(";");Ih(x).call(x,(function(g){var d=gv(g).call(g);if(d){var b=h.styles[d]||{};if(Ih(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(",");Ih(_).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(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}(jd);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$1(h,g,d){return h[g]*d}function c$1(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(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$1(w,.213,.787,-.213),c$1(w,.715,-.715,-.715),c$1(w,.072,-.072,.928),0,0,c$1(w,.213,-.213,.143),c$1(w,.715,.285,.14),c$1(w,.072,-.072,-.283),0,0,c$1(w,.213,-.213,-.787),c$1(w,.715,-.715,.715),c$1(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$1(_,0,P)+m$1(_,1,k)+m$1(_,2,A)+m$1(_,3,R)+m$1(_,4,1),N=m$1(_,5,P)+m$1(_,6,k)+m$1(_,7,A)+m$1(_,8,R)+m$1(_,9,1),L=m$1(_,10,P)+m$1(_,11,k)+m$1(_,12,A)+m$1(_,13,R)+m$1(_,14,1),D=m$1(_,15,P)+m$1(_,16,k)+m$1(_,17,A)+m$1(_,18,R)+m$1(_,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(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 Vd;Ih(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(this,ClipPathElement),(h=g.apply(this,arguments)).type="clipPath",h}return _createClass(ClipPathElement,[{key:"apply",value:function apply(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,[]),Ih(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(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;Ih(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),Ih(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:$d,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(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(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(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(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(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(this,DescElement),(h=g.apply(this,arguments)).type="desc",h}return DescElement}(Id)};function ownKeys$1$1(h,g){var d=Yh(h);if(qh){var b=qh(h);g&&(b=Hh(b).call(b,(function(g){return jh(h,g).enumerable}))),d.push.apply(d,b)}return d}function _createImage(){return(_createImage=_asyncToGenerator$1(Wh.mark((function _callee(h){var g,d,b=arguments;return Wh.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(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)Ih(d=ownKeys$1$1(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(kh)Eh(h,kh(b));else{var x;Ih(x=ownKeys$1$1(Object(b))).call(x,(function(g){Ch(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$1(h,g){var d=Yh(h);if(qh){var b=qh(h);g&&(b=Hh(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)Ih(d=ownKeys$2$1(Object(b),!0)).call(d,(function(g){_defineProperty(h,g,b[g])}));else if(kh)Eh(h,kh(b));else{var x;Ih(x=ownKeys$2$1(Object(b))).call(x,(function(g){Ch(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(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$1(Wh.mark((function _callee(){var h,g=arguments;return Wh.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$1(Wh.mark((function _callee2(h,g){var d,b,x,S=arguments;return Wh.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(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(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(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"}})}}}));