2 lines
266 KiB
JavaScript
2 lines
266 KiB
JavaScript
System.register([],(function(h){"use strict";return{execute:function(){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(h,d,g){return h(g={path:d,exports:{},require:function(h,d){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==d&&g.path)}},g.exports),g.exports}var check=function(h){return h&&h.Math==Math&&h},g=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]})),b={}.propertyIsEnumerable,S=Object.getOwnPropertyDescriptor,w={f:S&&!b.call({1:2},1)?function propertyIsEnumerable(h){var d=S(this,h);return!!d&&d.enumerable}:b},createPropertyDescriptor=function(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},E={}.toString,classofRaw=function(h){return E.call(h).slice(8,-1)},_="".split,P=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==classofRaw(h)?_.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,d){if(!isObject(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!isObject(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!isObject(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},A={}.hasOwnProperty,has=function(h,d){return A.call(h,d)},k=g.document,C=isObject(k)&&isObject(k.createElement),documentCreateElement=function(h){return C?k.createElement(h):{}},R=!x&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,N={f:x?M:function getOwnPropertyDescriptor(h,d){if(h=toIndexedObject(h),d=toPrimitive(d,!0),R)try{return M(h,d)}catch(h){}if(has(h,d))return createPropertyDescriptor(!w.f.call(h,d),h[d])}},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,d,g){if(anObject(h),d=toPrimitive(d,!0),anObject(g),R)try{return D(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},L=x?function(h,d,g){return V.f(h,d,createPropertyDescriptor(1,g))}:function(h,d,g){return h[d]=g,h},setGlobal=function(h,d){try{L(g,h,d)}catch(x){g[h]=d}return d},j="__core-js_shared__",$=g[j]||setGlobal(j,{}),B=Function.toString;"function"!=typeof $.inspectSource&&($.inspectSource=function(h){return B.call(h)});var z,U,G,X=$.inspectSource,Y=g.WeakMap,W="function"==typeof Y&&/native code/.test(X(Y)),q=createCommonjsModule((function(h){(h.exports=function(h,d){return $[h]||($[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Q=0,K=Math.random(),uid=function(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Q+K).toString(36)},Z=q("keys"),sharedKey=function(h){return Z[h]||(Z[h]=uid(h))},J={},tt=g.WeakMap;if(W){var et=$.state||($.state=new tt),rt=et.get,nt=et.has,it=et.set;z=function(h,d){return d.facade=h,it.call(et,h,d),d},U=function(h){return rt.call(et,h)||{}},G=function(h){return nt.call(et,h)}}else{var at=sharedKey("state");J[at]=!0,z=function(h,d){return d.facade=h,L(h,at,d),d},U=function(h){return has(h,at)?h[at]:{}},G=function(h){return has(h,at)}}var ot,ut,st={set:z,get:U,has:G,enforce:function(h){return G(h)?U(h):z(h,{})},getterFor:function(h){return function(d){var g;if(!isObject(d)||(g=U(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},ct=createCommonjsModule((function(h){var d=st.get,x=st.enforce,b=String(String).split("String");(h.exports=function(h,d,S,w){var E,_=!!w&&!!w.unsafe,P=!!w&&!!w.enumerable,A=!!w&&!!w.noTargetGet;"function"==typeof S&&("string"!=typeof d||has(S,"name")||L(S,"name",d),(E=x(S)).source||(E.source=b.join("string"==typeof d?d:""))),h!==g?(_?!A&&h[d]&&(P=!0):delete h[d],P?h[d]=S:L(h,d,S)):P?h[d]=S:setGlobal(d,S)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&d(this).source||X(this)}))})),lt=g,aFunction=function(h){return"function"==typeof h?h:void 0},getBuiltIn=function(h,d){return arguments.length<2?aFunction(lt[h])||aFunction(g[h]):lt[h]&<[h][d]||g[h]&&g[h][d]},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,d){var g=toInteger(h);return g<0?yt(g+d,0):vt(g,d)},createMethod=function(h){return function(d,g,x){var b,S=toIndexedObject(d),w=toLength(S.length),E=toAbsoluteIndex(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},dt={includes:createMethod(!0),indexOf:createMethod(!1)},gt=dt.indexOf,objectKeysInternal=function(h,d){var g,x=toIndexedObject(h),b=0,S=[];for(g in x)!has(J,g)&&has(x,g)&&S.push(g);for(;d.length>b;)has(x,g=d[b++])&&(~gt(S,g)||S.push(g));return S},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xt=mt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return objectKeysInternal(h,xt)}},St={f:Object.getOwnPropertySymbols},wt=getBuiltIn("Reflect","ownKeys")||function ownKeys(h){var d=bt.f(anObject(h)),g=St.f;return g?d.concat(g(h)):d},copyConstructorProperties=function(h,d){for(var g=wt(d),x=V.f,b=N.f,S=0;S<g.length;S++){var w=g[S];has(h,w)||x(h,w,b(d,w))}},Et=/#|\.prototype\./,isForced=function(h,d){var g=Tt[_t(h)];return g==At||g!=Pt&&("function"==typeof d?fails(d):!!d)},_t=isForced.normalize=function(h){return String(h).replace(Et,".").toLowerCase()},Tt=isForced.data={},Pt=isForced.NATIVE="N",At=isForced.POLYFILL="P",kt=isForced,Ot=N.f,_export=function(h,d){var x,b,S,w,E,_=h.target,P=h.global,A=h.stat;if(x=P?g:A?g[_]||setGlobal(_,{}):(g[_]||{}).prototype)for(b in d){if(w=d[b],S=h.noTargetGet?(E=Ot(x,b))&&E.value:x[b],!kt(P?b:_+(A?".":"#")+b,h.forced)&&void 0!==S){if(typeof w==typeof S)continue;copyConstructorProperties(w,S)}(h.sham||S&&S.sham)&&L(w,"sham",!0),ct(x,b,w,h)}},Ct=Array.isArray||function isArray(h){return"Array"==classofRaw(h)},toObject=function(h){return Object(requireObjectCoercible(h))},createProperty=function(h,d,g){var x=toPrimitive(d);x in h?V.f(h,x,createPropertyDescriptor(0,g)):h[x]=g},Rt=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Mt=Rt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Nt=q("wks"),It=g.Symbol,Dt=Mt?It:It&&It.withoutSetter||uid,wellKnownSymbol=function(h){return has(Nt,h)||(Rt&&has(It,h)?Nt[h]=It[h]:Nt[h]=Dt("Symbol."+h)),Nt[h]},Vt=wellKnownSymbol("species"),arraySpeciesCreate=function(h,d){var g;return Ct(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!Ct(g.prototype)?isObject(g)&&null===(g=g[Vt])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},Lt=getBuiltIn("navigator","userAgent")||"",jt=g.process,$t=jt&&jt.versions,Ft=$t&&$t.v8;Ft?ut=(ot=Ft.split("."))[0]+ot[1]:Lt&&(!(ot=Lt.match(/Edge\/(\d+)/))||ot[1]>=74)&&(ot=Lt.match(/Chrome\/(\d+)/))&&(ut=ot[1]);var Bt=ut&&+ut,zt=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(h){return Bt>=51||!fails((function(){var d=[];return(d.constructor={})[zt]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},Ut=wellKnownSymbol("isConcatSpreadable"),Gt=9007199254740991,Ht="Maximum allowed index exceeded",Xt=Bt>=51||!fails((function(){var h=[];return h[Ut]=!1,h.concat()[0]!==h})),Yt=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(h){if(!isObject(h))return!1;var d=h[Ut];return void 0!==d?!!d:Ct(h)};_export({target:"Array",proto:!0,forced:!Xt||!Yt},{concat:function concat(h){var d,g,x,b,S,w=toObject(this),E=arraySpeciesCreate(w,0),_=0;for(d=-1,x=arguments.length;d<x;d++)if(isConcatSpreadable(S=-1===d?w:arguments[d])){if(_+(b=toLength(S.length))>Gt)throw TypeError(Ht);for(g=0;g<b;g++,_++)g in S&&createProperty(E,_,S[g])}else{if(_>=Gt)throw TypeError(Ht);createProperty(E,_++,S)}return E.length=_,E}});var arrayMethodIsStrict=function(h,d){var g=[][h];return!!g&&fails((function(){g.call(null,d||function(){throw 1},1)}))},Wt=[].join,qt=P!=Object,Qt=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:qt||!Qt},{join:function join(h){return Wt.call(toIndexedObject(this),void 0===h?",":h)}});var Kt={};Kt[wellKnownSymbol("toStringTag")]="z";var Zt="[object z]"===String(Kt),Jt=wellKnownSymbol("toStringTag"),te="Arguments"==classofRaw(function(){return arguments}()),ee=Zt?classofRaw:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function(h,d){try{return h[d]}catch(h){}}(d=Object(h),Jt))?g:te?classofRaw(d):"Object"==(x=classofRaw(d))&&"function"==typeof d.callee?"Arguments":x},re=Zt?{}.toString:function toString(){return"[object "+ee(this)+"]"};Zt||ct(Object.prototype,"toString",re,{unsafe:!0});var ne=g.Promise,redefineAll=function(h,d,g){for(var x in d)ct(h,x,d[x],g);return h},ie=V.f,ae=wellKnownSymbol("toStringTag"),setToStringTag=function(h,d,g){h&&!has(h=g?h:h.prototype,ae)&&ie(h,ae,{configurable:!0,value:d})},oe=wellKnownSymbol("species"),setSpecies=function(h){var d=getBuiltIn(h),g=V.f;x&&d&&!d[oe]&&g(d,oe,{configurable:!0,get:function(){return this}})},aFunction$1=function(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},anInstance=function(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},ue={},se=wellKnownSymbol("iterator"),ce=Array.prototype,isArrayIteratorMethod=function(h){return void 0!==h&&(ue.Array===h||ce[se]===h)},functionBindContext=function(h,d,g){if(aFunction$1(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},le=wellKnownSymbol("iterator"),getIteratorMethod=function(h){if(null!=h)return h[le]||h["@@iterator"]||ue[ee(h)]},iteratorClose=function(h){var d=h.return;if(void 0!==d)return anObject(d.call(h)).value},Result=function(h,d){this.stopped=h,this.result=d},iterate=function(h,d,g){var x,b,S,w,E,_,P,A=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=functionBindContext(d,A,1+k+R),stop=function(h){return x&&iteratorClose(x),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(C)x=h;else{if("function"!=typeof(b=getIteratorMethod(h)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(b)){for(S=0,w=toLength(h.length);w>S;S++)if((E=callFn(h[S]))&&E instanceof Result)return E;return new Result(!1)}x=b.call(h)}for(_=x.next;!(P=_.call(x)).done;){try{E=callFn(P.value)}catch(h){throw iteratorClose(x),h}if("object"==typeof E&&E&&E instanceof Result)return E}return new Result(!1)},fe=wellKnownSymbol("iterator"),he=!1;try{var pe=0,ye={next:function(){return{done:!!pe++}},return:function(){he=!0}};ye[fe]=function(){return this},Array.from(ye,(function(){throw 2}))}catch(h){}var ve,de,ge,checkCorrectnessOfIteration=function(h,d){if(!d&&!he)return!1;var g=!1;try{var x={};x[fe]=function(){return{next:function(){return{done:g=!0}}}},h(x)}catch(h){}return g},me=wellKnownSymbol("species"),speciesConstructor=function(h,d){var g,x=anObject(h).constructor;return void 0===x||null==(g=anObject(x)[me])?d:aFunction$1(g)},xe=getBuiltIn("document","documentElement"),be=/(iphone|ipod|ipad).*applewebkit/i.test(Lt),Se="process"==classofRaw(g.process),we=g.location,Ee=g.setImmediate,_e=g.clearImmediate,Te=g.process,Pe=g.MessageChannel,Ae=g.Dispatch,ke=0,Oe={},Ce="onreadystatechange",run=function(h){if(Oe.hasOwnProperty(h)){var d=Oe[h];delete Oe[h],d()}},runner=function(h){return function(){run(h)}},listener=function(h){run(h.data)},post=function(h){g.postMessage(h+"",we.protocol+"//"+we.host)};Ee&&_e||(Ee=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return Oe[++ke]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},ve(ke),ke},_e=function clearImmediate(h){delete Oe[h]},Se?ve=function(h){Te.nextTick(runner(h))}:Ae&&Ae.now?ve=function(h){Ae.now(runner(h))}:Pe&&!be?(ge=(de=new Pe).port2,de.port1.onmessage=listener,ve=functionBindContext(ge.postMessage,ge,1)):g.addEventListener&&"function"==typeof postMessage&&!g.importScripts&&we&&"file:"!==we.protocol&&!fails(post)?(ve=post,g.addEventListener("message",listener,!1)):ve=Ce in documentCreateElement("script")?function(h){xe.appendChild(documentCreateElement("script")).onreadystatechange=function(){xe.removeChild(this),run(h)}}:function(h){setTimeout(runner(h),0)});var Re,Me,Ne,Ie,De,Ve,Le,je,$e={set:Ee,clear:_e},Fe=N.f,Be=$e.set,ze=g.MutationObserver||g.WebKitMutationObserver,Ue=g.document,Ge=g.process,He=g.Promise,Xe=Fe(g,"queueMicrotask"),Ye=Xe&&Xe.value;Ye||(Re=function(){var h,d;for(Se&&(h=Ge.domain)&&h.exit();Me;){d=Me.fn,Me=Me.next;try{d()}catch(h){throw Me?Ie():Ne=void 0,h}}Ne=void 0,h&&h.enter()},!be&&!Se&&ze&&Ue?(De=!0,Ve=Ue.createTextNode(""),new ze(Re).observe(Ve,{characterData:!0}),Ie=function(){Ve.data=De=!De}):He&&He.resolve?(Le=He.resolve(void 0),je=Le.then,Ie=function(){je.call(Le,Re)}):Ie=Se?function(){Ge.nextTick(Re)}:function(){Be.call(g,Re)});var We,qe,Qe,Ke,Ze=Ye||function(h){var d={fn:h,next:void 0};Ne&&(Ne.next=d),Me||(Me=d,Ie()),Ne=d},PromiseCapability=function(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=aFunction$1(d),this.reject=aFunction$1(g)},Je={f:function(h){return new PromiseCapability(h)}},promiseResolve=function(h,d){if(anObject(h),isObject(d)&&d.constructor===h)return d;var g=Je.f(h);return(0,g.resolve)(d),g.promise},perform=function(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},tr=$e.set,er=wellKnownSymbol("species"),rr="Promise",nr=st.get,ir=st.set,ar=st.getterFor(rr),or=ne,ur=g.TypeError,sr=g.document,cr=g.process,lr=getBuiltIn("fetch"),fr=Je.f,hr=fr,pr=!!(sr&&sr.createEvent&&g.dispatchEvent),yr="function"==typeof PromiseRejectionEvent,vr="unhandledrejection",dr=kt(rr,(function(){if(!(X(or)!==String(or))){if(66===Bt)return!0;if(!Se&&!yr)return!0}if(Bt>=51&&/native code/.test(or))return!1;var h=or.resolve(1),FakePromise=function(h){h((function(){}),(function(){}))};return(h.constructor={})[er]=FakePromise,!(h.then((function(){}))instanceof FakePromise)})),gr=dr||!checkCorrectnessOfIteration((function(h){or.all(h).catch((function(){}))})),isThenable=function(h){var d;return!(!isObject(h)||"function"!=typeof(d=h.then))&&d},notify$1=function(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;Ze((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,_,P=g[S++],A=b?P.ok:P.fail,k=P.resolve,C=P.reject,R=P.domain;try{A?(b||(2===h.rejection&&onHandleUnhandled(h),h.rejection=1),!0===A?w=x:(R&&R.enter(),w=A(x),R&&(R.exit(),_=!0)),w===P.promise?C(ur("Promise-chain cycle")):(E=isThenable(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!_&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&onUnhandled(h)}))}},dispatchEvent=function(h,d,x){var b,S;pr?((b=sr.createEvent("Event")).promise=d,b.reason=x,b.initEvent(h,!1,!0),g.dispatchEvent(b)):b={promise:d,reason:x},!yr&&(S=g["on"+h])?S(b):h===vr&&function(h,d){var x=g.console;x&&x.error&&(1===arguments.length?x.error(h):x.error(h,d))}("Unhandled promise rejection",x)},onUnhandled=function(h){tr.call(g,(function(){var d,g=h.facade,x=h.value;if(isUnhandled(h)&&(d=perform((function(){Se?cr.emit("unhandledRejection",x,g):dispatchEvent(vr,g,x)})),h.rejection=Se||isUnhandled(h)?2:1,d.error))throw d.value}))},isUnhandled=function(h){return 1!==h.rejection&&!h.parent},onHandleUnhandled=function(h){tr.call(g,(function(){var d=h.facade;Se?cr.emit("rejectionHandled",d):dispatchEvent("rejectionhandled",d,h.value)}))},bind=function(h,d,g){return function(x){h(d,x,g)}},internalReject=function(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,notify$1(h,!0))},internalResolve=function(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw ur("Promise can't be resolved itself");var x=isThenable(d);x?Ze((function(){var g={done:!1};try{x.call(d,bind(internalResolve,g,h),bind(internalReject,g,h))}catch(d){internalReject(g,d,h)}})):(h.value=d,h.state=1,notify$1(h,!1))}catch(d){internalReject({done:!1},d,h)}}};dr&&(or=function Promise(h){anInstance(this,or,rr),aFunction$1(h),We.call(this);var d=nr(this);try{h(bind(internalResolve,d),bind(internalReject,d))}catch(h){internalReject(d,h)}},(We=function Promise(h){ir(this,{type:rr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(or.prototype,{then:function then(h,d){var g=ar(this),x=fr(speciesConstructor(this,or));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=Se?cr.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&¬ify$1(g,!1),x.promise},catch:function(h){return this.then(void 0,h)}}),qe=function(){var h=new We,d=nr(h);this.promise=h,this.resolve=bind(internalResolve,d),this.reject=bind(internalReject,d)},Je.f=fr=function(h){return h===or||h===Qe?new qe(h):hr(h)},"function"==typeof ne&&(Ke=ne.prototype.then,ct(ne.prototype,"then",(function then(h,d){var g=this;return new or((function(h,d){Ke.call(g,h,d)})).then(h,d)}),{unsafe:!0}),"function"==typeof lr&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(h){return promiseResolve(or,lr.apply(g,arguments))}}))),_export({global:!0,wrap:!0,forced:dr},{Promise:or}),setToStringTag(or,rr,!1),setSpecies(rr),Qe=getBuiltIn(rr),_export({target:rr,stat:!0,forced:dr},{reject:function reject(h){var d=fr(this);return d.reject.call(void 0,h),d.promise}}),_export({target:rr,stat:!0,forced:dr},{resolve:function resolve(h){return promiseResolve(this,h)}}),_export({target:rr,stat:!0,forced:gr},{all:function all(h){var d=this,g=fr(d),x=g.resolve,b=g.reject,S=perform((function(){var g=aFunction$1(d.resolve),S=[],w=0,E=1;iterate(h,(function(h){var _=w++,P=!1;S.push(void 0),E++,g.call(d,h).then((function(h){P||(P=!0,S[_]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=fr(d),x=g.reject,b=perform((function(){var b=aFunction$1(d.resolve);iterate(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}});var regexpFlags=function(){var h=anObject(this),d="";return h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.sticky&&(d+="y"),d};function RE(h,d){return RegExp(h,d)}var mr={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")}))},xr=RegExp.prototype.exec,br=String.prototype.replace,Sr=xr,wr=function(){var h=/a/,d=/b*/g;return xr.call(h,"a"),xr.call(d,"a"),0!==h.lastIndex||0!==d.lastIndex}(),Er=mr.UNSUPPORTED_Y||mr.BROKEN_CARET,_r=void 0!==/()??/.exec("")[1];(wr||_r||Er)&&(Sr=function exec(h){var d,g,x,b,S=this,w=Er&&S.sticky,E=regexpFlags.call(S),_=S.source,P=0,A=h;return w&&(-1===(E=E.replace("y","")).indexOf("g")&&(E+="g"),A=String(h).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==h[S.lastIndex-1])&&(_="(?: "+_+")",A=" "+A,P++),g=new RegExp("^(?:"+_+")",E)),_r&&(g=new RegExp("^"+_+"$(?!\\s)",E)),wr&&(d=S.lastIndex),x=xr.call(w?g:S,A),w?x?(x.input=x.input.slice(P),x[0]=x[0].slice(P),x.index=S.lastIndex,S.lastIndex+=x[0].length):S.lastIndex=0:wr&&x&&(S.lastIndex=S.global?x.index+x[0].length:d),_r&&x&&x.length>1&&br.call(x[0],g,(function(){for(b=1;b<arguments.length-2;b++)void 0===arguments[b]&&(x[b]=void 0)})),x});var Tr=Sr;_export({target:"RegExp",proto:!0,forced:/./.exec!==Tr},{exec:Tr});var Pr=wellKnownSymbol("species"),Ar=!fails((function(){var h=/./;return h.exec=function(){var h=[];return h.groups={a:"7"},h},"7"!=="".replace(h,"$<a>")})),kr="$0"==="a".replace(/./,"$0"),Or=wellKnownSymbol("replace"),Cr=!!/./[Or]&&""===/./[Or]("a","$0"),Rr=!fails((function(){var h=/(?:)/,d=h.exec;h.exec=function(){return d.apply(this,arguments)};var g="ab".split(h);return 2!==g.length||"a"!==g[0]||"b"!==g[1]})),fixRegexpWellKnownSymbolLogic=function(h,d,g,x){var b=wellKnownSymbol(h),S=!fails((function(){var d={};return d[b]=function(){return 7},7!=""[h](d)})),w=S&&!fails((function(){var d=!1,g=/a/;return"split"===h&&((g={}).constructor={},g.constructor[Pr]=function(){return g},g.flags="",g[b]=/./[b]),g.exec=function(){return d=!0,null},g[b](""),!d}));if(!S||!w||"replace"===h&&(!Ar||!kr||Cr)||"split"===h&&!Rr){var E=/./[b],_=g(b,""[h],(function(h,d,g,x,b){return d.exec===Tr?S&&!b?{done:!0,value:E.call(d,g,x)}:{done:!0,value:h.call(g,d,x)}:{done:!1}}),{REPLACE_KEEPS_$0:kr,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Cr}),P=_[0],A=_[1];ct(String.prototype,h,P),ct(RegExp.prototype,b,2==d?function(h,d){return A.call(h,this,d)}:function(h){return A.call(h,this)})}x&&L(RegExp.prototype[b],"sham",!0)},createMethod$1=function(h){return function(d,g){var x,b,S=String(requireObjectCoercible(d)),w=toInteger(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},Mr={codeAt:createMethod$1(!1),charAt:createMethod$1(!0)},Nr=Mr.charAt,advanceStringIndex=function(h,d,g){return d+(g?Nr(h,d).length:1)},regexpExecAbstract=function(h,d){var g=h.exec;if("function"==typeof g){var x=g.call(h,d);if("object"!=typeof x)throw TypeError("RegExp exec method returned something other than an Object or null");return x}if("RegExp"!==classofRaw(h))throw TypeError("RegExp#exec called on incompatible receiver");return Tr.call(h,d)},Ir=Math.max,Dr=Math.min,Vr=Math.floor,Lr=/\$([$&'`]|\d\d?|<[^>]*>)/g,jr=/\$([$&'`]|\d\d?)/g;fixRegexpWellKnownSymbolLogic("replace",2,(function(h,d,g,x){var b=x.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,S=x.REPLACE_KEEPS_$0,w=b?"$":"$0";return[function replace(g,x){var b=requireObjectCoercible(this),S=null==g?void 0:g[h];return void 0!==S?S.call(g,b,x):d.call(String(b),g,x)},function(h,x){if(!b&&S||"string"==typeof x&&-1===x.indexOf(w)){var E=g(d,h,this,x);if(E.done)return E.value}var _=anObject(h),P=String(this),A="function"==typeof x;A||(x=String(x));var k=_.global;if(k){var C=_.unicode;_.lastIndex=0}for(var R=[];;){var M=regexpExecAbstract(_,P);if(null===M)break;if(R.push(M),!k)break;""===String(M[0])&&(_.lastIndex=advanceStringIndex(P,toLength(_.lastIndex),C))}for(var N,D="",V=0,L=0;L<R.length;L++){M=R[L];for(var j=String(M[0]),$=Ir(Dr(toInteger(M.index),P.length),0),B=[],z=1;z<M.length;z++)B.push(void 0===(N=M[z])?N:String(N));var U=M.groups;if(A){var G=[j].concat(B,$,P);void 0!==U&&G.push(U);var X=String(x.apply(void 0,G))}else X=getSubstitution(j,P,$,B,U,x);$>=V&&(D+=P.slice(V,$)+X,V=$+j.length)}return D+P.slice(V)}];function getSubstitution(h,g,x,b,S,w){var E=x+h.length,_=b.length,P=jr;return void 0!==S&&(S=toObject(S),P=Lr),d.call(w,P,(function(d,w){var P;switch(w.charAt(0)){case"$":return"$";case"&":return h;case"`":return g.slice(0,x);case"'":return g.slice(E);case"<":P=S[w.slice(1,-1)];break;default:var A=+w;if(0===A)return d;if(A>_){var k=Vr(A/10);return 0===k?d:k<=_?void 0===b[k-1]?w.charAt(1):b[k-1]+w.charAt(1):d}P=b[A-1]}return void 0===P?"":P}))}}));var $r="\t\n\v\f\r \u2028\u2029\ufeff",Fr="["+$r+"]",Br=RegExp("^"+Fr+Fr+"*"),zr=RegExp(Fr+Fr+"*$"),createMethod$2=function(h){return function(d){var g=String(requireObjectCoercible(d));return 1&h&&(g=g.replace(Br,"")),2&h&&(g=g.replace(zr,"")),g}},Ur={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},Gr=Ur.trim;_export({target:"String",proto:!0,forced:function(h){return fails((function(){return!!$r[h]()||"
"!="
"[h]()||$r[h].name!==h}))}("trim")},{trim:function trim(){return Gr(this)}});var Hr,Xr=Object.keys||function keys(h){return objectKeysInternal(h,mt)},Yr=x?Object.defineProperties:function defineProperties(h,d){anObject(h);for(var g,x=Xr(d),b=x.length,S=0;b>S;)V.f(h,g=x[S++],d[g]);return h},Wr=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(h){return"<script>"+h+"</"+"script>"},NullProtoObject=function(){try{Hr=document.domain&&new ActiveXObject("htmlfile")}catch(h){}var h,d;NullProtoObject=Hr?function(h){h.write(scriptTag("")),h.close();var d=h.parentWindow.Object;return h=null,d}(Hr):((d=documentCreateElement("iframe")).style.display="none",xe.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(scriptTag("document.F=Object")),h.close(),h.F);for(var g=mt.length;g--;)delete NullProtoObject.prototype[mt[g]];return NullProtoObject()};J[Wr]=!0;var qr=Object.create||function create(h,d){var g;return null!==h?(EmptyConstructor.prototype=anObject(h),g=new EmptyConstructor,EmptyConstructor.prototype=null,g[Wr]=h):g=NullProtoObject(),void 0===d?g:Yr(g,d)},Qr=bt.f,Kr={}.toString,Zr="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Jr={f:function getOwnPropertyNames(h){return Zr&&"[object Window]"==Kr.call(h)?function(h){try{return Qr(h)}catch(h){return Zr.slice()}}(h):Qr(toIndexedObject(h))}},tn={f:wellKnownSymbol},en=V.f,defineWellKnownSymbol=function(h){var d=lt.Symbol||(lt.Symbol={});has(d,h)||en(d,h,{value:tn.f(h)})},rn=[].push,createMethod$3=function(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=5==h||S;return function(E,_,A,k){for(var C,R,M=toObject(E),N=P(M),D=functionBindContext(_,A,3),V=toLength(N.length),L=0,j=k||arraySpeciesCreate,$=d?j(E,V):g?j(E,0):void 0;V>L;L++)if((w||L in N)&&(R=D(C=N[L],L,M),h))if(d)$[L]=R;else if(R)switch(h){case 3:return!0;case 5:return C;case 6:return L;case 2:rn.call($,C)}else if(b)return!1;return S?-1:x||b?b:$}},nn={forEach:createMethod$3(0),map:createMethod$3(1),filter:createMethod$3(2),some:createMethod$3(3),every:createMethod$3(4),find:createMethod$3(5),findIndex:createMethod$3(6)},an=nn.forEach,on=sharedKey("hidden"),un="Symbol",sn=wellKnownSymbol("toPrimitive"),cn=st.set,ln=st.getterFor(un),fn=Object.prototype,hn=g.Symbol,pn=getBuiltIn("JSON","stringify"),yn=N.f,vn=V.f,dn=Jr.f,gn=w.f,mn=q("symbols"),xn=q("op-symbols"),bn=q("string-to-symbol-registry"),Sn=q("symbol-to-string-registry"),wn=q("wks"),En=g.QObject,_n=!En||!En.prototype||!En.prototype.findChild,Tn=x&&fails((function(){return 7!=qr(vn({},"a",{get:function(){return vn(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=yn(fn,d);x&&delete fn[d],vn(h,d,g),x&&h!==fn&&vn(fn,d,x)}:vn,wrap=function(h,d){var g=mn[h]=qr(hn.prototype);return cn(g,{type:un,tag:h,description:d}),x||(g.description=d),g},Pn=Mt?function(h){return"symbol"==typeof h}:function(h){return Object(h)instanceof hn},An=function defineProperty(h,d,g){h===fn&&An(xn,d,g),anObject(h);var x=toPrimitive(d,!0);return anObject(g),has(mn,x)?(g.enumerable?(has(h,on)&&h[on][x]&&(h[on][x]=!1),g=qr(g,{enumerable:createPropertyDescriptor(0,!1)})):(has(h,on)||vn(h,on,createPropertyDescriptor(1,{})),h[on][x]=!0),Tn(h,x,g)):vn(h,x,g)},kn=function defineProperties(h,d){anObject(h);var g=toIndexedObject(d),b=Xr(g).concat(Mn(g));return an(b,(function(d){x&&!On.call(g,d)||An(h,d,g[d])})),h},On=function propertyIsEnumerable(h){var d=toPrimitive(h,!0),g=gn.call(this,d);return!(this===fn&&has(mn,d)&&!has(xn,d))&&(!(g||!has(this,d)||!has(mn,d)||has(this,on)&&this[on][d])||g)},Cn=function getOwnPropertyDescriptor(h,d){var g=toIndexedObject(h),x=toPrimitive(d,!0);if(g!==fn||!has(mn,x)||has(xn,x)){var b=yn(g,x);return!b||!has(mn,x)||has(g,on)&&g[on][x]||(b.enumerable=!0),b}},Rn=function getOwnPropertyNames(h){var d=dn(toIndexedObject(h)),g=[];return an(d,(function(h){has(mn,h)||has(J,h)||g.push(h)})),g},Mn=function getOwnPropertySymbols(h){var d=h===fn,g=dn(d?xn:toIndexedObject(h)),x=[];return an(g,(function(h){!has(mn,h)||d&&!has(fn,h)||x.push(mn[h])})),x};if(Rt||(ct((hn=function Symbol(){if(this instanceof hn)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=uid(h),setter=function(h){this===fn&&setter.call(xn,h),has(this,on)&&has(this[on],d)&&(this[on][d]=!1),Tn(this,d,createPropertyDescriptor(1,h))};return x&&_n&&Tn(fn,d,{configurable:!0,set:setter}),wrap(d,h)}).prototype,"toString",(function toString(){return ln(this).tag})),ct(hn,"withoutSetter",(function(h){return wrap(uid(h),h)})),w.f=On,V.f=An,N.f=Cn,bt.f=Jr.f=Rn,St.f=Mn,tn.f=function(h){return wrap(wellKnownSymbol(h),h)},x&&(vn(hn.prototype,"description",{configurable:!0,get:function description(){return ln(this).description}}),ct(fn,"propertyIsEnumerable",On,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Rt,sham:!Rt},{Symbol:hn}),an(Xr(wn),(function(h){defineWellKnownSymbol(h)})),_export({target:un,stat:!0,forced:!Rt},{for:function(h){var d=String(h);if(has(bn,d))return bn[d];var g=hn(d);return bn[d]=g,Sn[g]=d,g},keyFor:function keyFor(h){if(!Pn(h))throw TypeError(h+" is not a symbol");if(has(Sn,h))return Sn[h]},useSetter:function(){_n=!0},useSimple:function(){_n=!1}}),_export({target:"Object",stat:!0,forced:!Rt,sham:!x},{create:function create(h,d){return void 0===d?qr(h):kn(qr(h),d)},defineProperty:An,defineProperties:kn,getOwnPropertyDescriptor:Cn}),_export({target:"Object",stat:!0,forced:!Rt},{getOwnPropertyNames:Rn,getOwnPropertySymbols:Mn}),_export({target:"Object",stat:!0,forced:fails((function(){St.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return St.f(toObject(h))}}),pn){var Nn=!Rt||fails((function(){var h=hn();return"[null]"!=pn([h])||"{}"!=pn({a:h})||"{}"!=pn(Object(h))}));_export({target:"JSON",stat:!0,forced:Nn},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(isObject(d)||void 0!==h)&&!Pn(h))return Ct(d)||(d=function(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!Pn(d))return d}),b[1]=d,pn.apply(null,b)}})}hn.prototype[sn]||L(hn.prototype,sn,hn.prototype.valueOf),setToStringTag(hn,un),J[on]=!0;var In=V.f,Dn=g.Symbol;if(x&&"function"==typeof Dn&&(!("description"in Dn.prototype)||void 0!==Dn().description)){var Vn={},Ln=function Symbol(){var h=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),d=this instanceof Ln?new Dn(h):void 0===h?Dn():Dn(h);return""===h&&(Vn[d]=!0),d};copyConstructorProperties(Ln,Dn);var jn=Ln.prototype=Dn.prototype;jn.constructor=Ln;var $n=jn.toString,Fn="Symbol(test)"==String(Dn("test")),Bn=/^Symbol\((.*)\)[^)]+$/;In(jn,"description",{configurable:!0,get:function description(){var h=isObject(this)?this.valueOf():this,d=$n.call(h);if(has(Vn,h))return"";var g=Fn?d.slice(7,-1):d.replace(Bn,"$1");return""===g?void 0:g}}),_export({global:!0,forced:!0},{Symbol:Ln})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag");var zn=Object.defineProperty,Un={},thrower=function(h){throw h},arrayMethodUsesToLength=function(h,d){if(has(Un,h))return Un[h];d||(d={});var g=[][h],b=!!has(d,"ACCESSORS")&&d.ACCESSORS,S=has(d,0)?d[0]:thrower,w=has(d,1)?d[1]:void 0;return Un[h]=!!g&&!fails((function(){if(b&&!x)return!0;var h={length:-1};b?zn(h,1,{enumerable:!0,get:thrower}):h[1]=1,g.call(h,S,w)}))},Gn=nn.forEach,Hn=arrayMethodIsStrict("forEach"),Xn=arrayMethodUsesToLength("forEach"),Yn=Hn&&Xn?[].forEach:function forEach(h){return Gn(this,h,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=Yn},{forEach:Yn});var Wn=wellKnownSymbol("unscopables"),qn=Array.prototype;null==qn[Wn]&&V.f(qn,Wn,{configurable:!0,value:qr(null)});var Qn,Kn,Zn,addToUnscopables=function(h){qn[Wn][h]=!0},Jn=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),ti=sharedKey("IE_PROTO"),ei=Object.prototype,ri=Jn?Object.getPrototypeOf:function(h){return h=toObject(h),has(h,ti)?h[ti]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?ei:null},ni=wellKnownSymbol("iterator"),ii=!1;[].keys&&("next"in(Zn=[].keys())?(Kn=ri(ri(Zn)))!==Object.prototype&&(Qn=Kn):ii=!0),null==Qn&&(Qn={}),has(Qn,ni)||L(Qn,ni,(function(){return this}));var ai={IteratorPrototype:Qn,BUGGY_SAFARI_ITERATORS:ii},oi=ai.IteratorPrototype,returnThis$1=function(){return this},ui=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return anObject(g),function(h){if(!isObject(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),si=ai.IteratorPrototype,ci=ai.BUGGY_SAFARI_ITERATORS,li=wellKnownSymbol("iterator"),fi="keys",hi="values",pi="entries",returnThis$2=function(){return this},defineIterator=function(h,d,g,x,b,S,w){!function(h,d,g){var x=d+" Iterator";h.prototype=qr(oi,{next:createPropertyDescriptor(1,g)}),setToStringTag(h,x,!1),ue[x]=returnThis$1}(g,d,x);var E,_,P,getIterationMethod=function(h){if(h===b&&M)return M;if(!ci&&h in C)return C[h];switch(h){case fi:return function keys(){return new g(this,h)};case hi:return function values(){return new g(this,h)};case pi:return function entries(){return new g(this,h)}}return function(){return new g(this)}},A=d+" Iterator",k=!1,C=h.prototype,R=C[li]||C["@@iterator"]||b&&C[b],M=!ci&&R||getIterationMethod(b),N="Array"==d&&C.entries||R;if(N&&(E=ri(N.call(new h)),si!==Object.prototype&&E.next&&(ri(E)!==si&&(ui?ui(E,si):"function"!=typeof E[li]&&L(E,li,returnThis$2)),setToStringTag(E,A,!0))),b==hi&&R&&R.name!==hi&&(k=!0,M=function values(){return R.call(this)}),C[li]!==M&&L(C,li,M),ue[d]=M,b)if(_={values:getIterationMethod(hi),keys:S?M:getIterationMethod(fi),entries:getIterationMethod(pi)},w)for(P in _)(ci||k||!(P in C))&&ct(C,P,_[P]);else _export({target:d,proto:!0,forced:ci||k},_);return _},yi="Array Iterator",vi=st.set,di=st.getterFor(yi),gi=defineIterator(Array,"Array",(function(h,d){vi(this,{type:yi,target:toIndexedObject(h),index:0,kind:d})}),(function(){var h=di(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values");ue.Arguments=ue.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var mi=[].reverse,xi=[1,2];_export({target:"Array",proto:!0,forced:String(xi)===String(xi.reverse())},{reverse:function reverse(){return Ct(this)&&(this.length=this.length),mi.call(this)}});var bi=arrayMethodHasSpeciesSupport("slice"),Si=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),wi=wellKnownSymbol("species"),Ei=[].slice,_i=Math.max;_export({target:"Array",proto:!0,forced:!bi||!Si},{slice:function slice(h,d){var g,x,b,S=toIndexedObject(this),w=toLength(S.length),E=toAbsoluteIndex(h,w),_=toAbsoluteIndex(void 0===d?w:d,w);if(Ct(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!Ct(g.prototype)?isObject(g)&&null===(g=g[wi])&&(g=void 0):g=void 0,g===Array||void 0===g))return Ei.call(S,E,_);for(x=new(void 0===g?Array:g)(_i(_-E,0)),b=0;E<_;E++,b++)E in S&&createProperty(x,b,S[E]);return x.length=b,x}});var Ti=Date.prototype,Pi="Invalid Date",Ai="toString",ki=Ti.toString,Oi=Ti.getTime;new Date(NaN)+""!=Pi&&ct(Ti,Ai,(function toString(){var h=Oi.call(this);return h==h?ki.call(this):Pi}));var Ci=V.f,Ri=Function.prototype,Mi=Ri.toString,Ni=/^\s*function ([^ (]*)/,Ii="name";x&&!(Ii in Ri)&&Ci(Ri,Ii,{configurable:!0,get:function(){try{return Mi.call(this).match(Ni)[1]}catch(h){return""}}}),setToStringTag(g.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!x},{create:qr}),_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperty:V.f});var Di=fails((function(){ri(1)}));_export({target:"Object",stat:!0,forced:Di,sham:!Jn},{getPrototypeOf:function getPrototypeOf(h){return ri(toObject(h))}}),_export({target:"Object",stat:!0},{setPrototypeOf:ui});var Vi="toString",Li=RegExp.prototype,ji=Li.toString,$i=fails((function(){return"/a/b"!=ji.call({source:"a",flags:"b"})})),Fi=ji.name!=Vi;($i||Fi)&&ct(RegExp.prototype,Vi,(function toString(){var h=anObject(this),d=String(h.source),g=h.flags;return"/"+d+"/"+String(void 0===g&&h instanceof RegExp&&!("flags"in Li)?regexpFlags.call(h):g)}),{unsafe:!0});var Bi=Mr.charAt,zi="String Iterator",Ui=st.set,Gi=st.getterFor(zi);defineIterator(String,"String",(function(h){Ui(this,{type:zi,string:String(h),index:0})}),(function next(){var h,d=Gi(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=Bi(g,x),d.index+=h.length,{value:h,done:!1})}));var Hi={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};for(var Xi in Hi){var Yi=g[Xi],Wi=Yi&&Yi.prototype;if(Wi&&Wi.forEach!==Yn)try{L(Wi,"forEach",Yn)}catch(h){Wi.forEach=Yn}}var qi=wellKnownSymbol("iterator"),Qi=wellKnownSymbol("toStringTag"),Ki=gi.values;for(var Zi in Hi){var Ji=g[Zi],ta=Ji&&Ji.prototype;if(ta){if(ta[qi]!==Ki)try{L(ta,qi,Ki)}catch(h){ta[qi]=Ki}if(ta[Qi]||L(ta,Qi,Zi),Hi[Zi])for(var ea in gi)if(ta[ea]!==gi[ea])try{L(ta,ea,gi[ea])}catch(h){ta[ea]=gi[ea]}}}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,d,g,x,b,S,w){try{var E=h[S](w),_=E.value}catch(h){return void g(h)}E.done?d(_):Promise.resolve(_).then(x,b)}function _asyncToGenerator(h){return function(){var d=this,g=arguments;return new Promise((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}}var ra=createCommonjsModule((function(h){var d=function(h){var d,g=Object.prototype,x=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},S=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",E=b.toStringTag||"@@toStringTag";function define(h,d,g){return Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}),h[d]}try{define({},"")}catch(h){define=function define(h,d,g){return h[d]=g}}function wrap(h,d,g,x){var b=d&&d.prototype instanceof Generator?d:Generator,S=Object.create(b.prototype),w=new Context(x||[]);return S._invoke=function makeInvokeMethod(h,d,g){var x=_;return function invoke(b,S){if(x===A)throw new Error("Generator is already running");if(x===k){if("throw"===b)throw S;return doneResult()}for(g.method=b,g.arg=S;;){var w=g.delegate;if(w){var E=maybeInvokeDelegate(w,g);if(E){if(E===C)continue;return E}}if("next"===g.method)g.sent=g._sent=g.arg;else if("throw"===g.method){if(x===_)throw x=k,g.arg;g.dispatchException(g.arg)}else"return"===g.method&&g.abrupt("return",g.arg);x=A;var R=tryCatch(h,d,g);if("normal"===R.type){if(x=g.done?k:P,R.arg===C)continue;return{value:R.arg,done:g.done}}"throw"===R.type&&(x=k,g.method="throw",g.arg=R.arg)}}}(h,g,w),S}function tryCatch(h,d,g){try{return{type:"normal",arg:h.call(d,g)}}catch(h){return{type:"throw",arg:h}}}h.wrap=wrap;var _="suspendedStart",P="suspendedYield",A="executing",k="completed",C={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var R={};R[S]=function(){return this};var M=Object.getPrototypeOf,N=M&&M(M(values([])));N&&N!==g&&x.call(N,S)&&(R=N);var D=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(R);function defineIteratorMethods(h){["next","throw","return"].forEach((function(d){define(h,d,(function(h){return this._invoke(d,h)}))}))}function AsyncIterator(h,d){var g;this._invoke=function enqueue(b,S){function callInvokeWithMethodAndArg(){return new d((function(g,w){!function invoke(g,b,S,w){var E=tryCatch(h[g],h,b);if("throw"!==E.type){var _=E.arg,P=_.value;return P&&"object"===_typeof(P)&&x.call(P,"__await")?d.resolve(P.__await).then((function(h){invoke("next",h,S,w)}),(function(h){invoke("throw",h,S,w)})):d.resolve(P).then((function(h){_.value=h,S(_)}),(function(h){return invoke("throw",h,S,w)}))}w(E.arg)}(b,S,g,w)}))}return g=g?g.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(h,g){var x=h.iterator[g.method];if(x===d){if(g.delegate=null,"throw"===g.method){if(h.iterator.return&&(g.method="return",g.arg=d,maybeInvokeDelegate(h,g),"throw"===g.method))return C;g.method="throw",g.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var b=tryCatch(x,h.iterator,g.arg);if("throw"===b.type)return g.method="throw",g.arg=b.arg,g.delegate=null,C;var S=b.arg;return S?S.done?(g[h.resultName]=S.value,g.next=h.nextLoc,"return"!==g.method&&(g.method="next",g.arg=d),g.delegate=null,C):S:(g.method="throw",g.arg=new TypeError("iterator result is not an object"),g.delegate=null,C)}function pushTryEntry(h){var d={tryLoc:h[0]};1 in h&&(d.catchLoc=h[1]),2 in h&&(d.finallyLoc=h[2],d.afterLoc=h[3]),this.tryEntries.push(d)}function resetTryEntry(h){var d=h.completion||{};d.type="normal",delete d.arg,h.completion=d}function Context(h){this.tryEntries=[{tryLoc:"root"}],h.forEach(pushTryEntry,this),this.reset(!0)}function values(h){if(h){var g=h[S];if(g)return g.call(h);if("function"==typeof h.next)return h;if(!isNaN(h.length)){var b=-1,w=function next(){for(;++b<h.length;)if(x.call(h,b))return next.value=h[b],next.done=!1,next;return next.value=d,next.done=!0,next};return w.next=w}}return{next:doneResult}}function doneResult(){return{value:d,done:!0}}return GeneratorFunction.prototype=D.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,E,"GeneratorFunction"),h.isGeneratorFunction=function(h){var d="function"==typeof h&&h.constructor;return!!d&&(d===GeneratorFunction||"GeneratorFunction"===(d.displayName||d.name))},h.mark=function(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,GeneratorFunctionPrototype):(h.__proto__=GeneratorFunctionPrototype,define(h,E,"GeneratorFunction")),h.prototype=Object.create(D),h},h.awrap=function(h){return{__await:h}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[w]=function(){return this},h.AsyncIterator=AsyncIterator,h.async=function(d,g,x,b,S){void 0===S&&(S=Promise);var w=new AsyncIterator(wrap(d,g,x,b),S);return h.isGeneratorFunction(g)?w:w.next().then((function(h){return h.done?h.value:w.next()}))},defineIteratorMethods(D),define(D,E,"Generator"),D[S]=function(){return this},D.toString=function(){return"[object Generator]"},h.keys=function(h){var d=[];for(var g in h)d.push(g);return d.reverse(),function next(){for(;d.length;){var g=d.pop();if(g in h)return next.value=g,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=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(resetTryEntry),!h)for(var g in this)"t"===g.charAt(0)&&x.call(this,g)&&!isNaN(+g.slice(1))&&(this[g]=d)},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 g=this;function handle(x,b){return w.type="throw",w.arg=h,g.next=x,b&&(g.method="next",g.arg=d),!!b}for(var b=this.tryEntries.length-1;b>=0;--b){var S=this.tryEntries[b],w=S.completion;if("root"===S.tryLoc)return handle("end");if(S.tryLoc<=this.prev){var E=x.call(S,"catchLoc"),_=x.call(S,"finallyLoc");if(E&&_){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0);if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}else if(E){if(this.prev<S.catchLoc)return handle(S.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<S.finallyLoc)return handle(S.finallyLoc)}}}},abrupt:function abrupt(h,d){for(var g=this.tryEntries.length-1;g>=0;--g){var b=this.tryEntries[g];if(b.tryLoc<=this.prev&&x.call(b,"finallyLoc")&&this.prev<b.finallyLoc){var S=b;break}}S&&("break"===h||"continue"===h)&&S.tryLoc<=d&&d<=S.finallyLoc&&(S=null);var w=S?S.completion:{};return w.type=h,w.arg=d,S?(this.method="next",this.next=S.finallyLoc,C):this.complete(w)},complete:function complete(h,d){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&&d&&(this.next=d),C},finish:function finish(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.finallyLoc===h)return this.complete(g.completion,g.afterLoc),resetTryEntry(g),C}},catch:function _catch(h){for(var d=this.tryEntries.length-1;d>=0;--d){var g=this.tryEntries[d];if(g.tryLoc===h){var x=g.completion;if("throw"===x.type){var b=x.arg;resetTryEntry(g)}return b}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(h,g,x){return this.delegate={iterator:values(h),resultName:g,nextLoc:x},"next"===this.method&&(this.arg=d),C}},h}(h.exports);try{regeneratorRuntime=d}catch(h){Function("r","regeneratorRuntime = r")(d)}})),na="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var ia=defaultSetTimout,aa=defaultClearTimeout;function runTimeout(h){if(ia===setTimeout)return setTimeout(h,0);if((ia===defaultSetTimout||!ia)&&setTimeout)return ia=setTimeout,setTimeout(h,0);try{return ia(h,0)}catch(d){try{return ia.call(null,h,0)}catch(d){return ia.call(this,h,0)}}}"function"==typeof na.setTimeout&&(ia=setTimeout),"function"==typeof na.clearTimeout&&(aa=clearTimeout);var oa,ua=[],sa=!1,ca=-1;function cleanUpNextTick(){sa&&oa&&(sa=!1,oa.length?ua=oa.concat(ua):ca=-1,ua.length&&drainQueue())}function drainQueue(){if(!sa){var h=runTimeout(cleanUpNextTick);sa=!0;for(var d=ua.length;d;){for(oa=ua,ua=[];++ca<d;)oa&&oa[ca].run();ca=-1,d=ua.length}oa=null,sa=!1,function runClearTimeout(h){if(aa===clearTimeout)return clearTimeout(h);if((aa===defaultClearTimeout||!aa)&&clearTimeout)return aa=clearTimeout,clearTimeout(h);try{return aa(h)}catch(d){try{return aa.call(null,h)}catch(d){return aa.call(this,h)}}}(h)}}function Item(h,d){this.fun=h,this.array=d}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var la=noop,fa=noop,ha=noop,pa=noop,ya=noop,va=noop,da=noop;var ga=na.performance||{},ma=ga.now||ga.mozNow||ga.msNow||ga.oNow||ga.webkitNow||function(){return(new Date).getTime()};var xa=new Date;var ba={nextTick:function nextTick(h){var d=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)d[g-1]=arguments[g];ua.push(new Item(h,d)),1!==ua.length||sa||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:la,addListener:fa,once:ha,off:pa,removeListener:ya,removeAllListeners:va,emit:da,binding:function binding(h){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(h){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(h){var d=.001*ma.call(ga),g=Math.floor(d),x=Math.floor(d%1*1e9);return h&&(g-=h[0],(x-=h[1])<0&&(g--,x+=1e9)),[g,x]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-xa)/1e3}};_export({target:"Array",proto:!0},{fill:function fill(h){for(var d=toObject(this),g=toLength(d.length),x=arguments.length,b=toAbsoluteIndex(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:toAbsoluteIndex(S,g);w>b;)d[b++]=h;return d}}),addToUnscopables("fill");var inheritIfRequired=function(h,d,g){var x,b;return ui&&"function"==typeof(x=d.constructor)&&x!==g&&isObject(b=x.prototype)&&b!==g.prototype&&ui(h,b),h},Sa=bt.f,wa=N.f,Ea=V.f,_a=Ur.trim,Ta="Number",Pa=g.Number,Aa=Pa.prototype,ka=classofRaw(qr(Aa))==Ta,toNumber=function(h){var d,g,x,b,S,w,E,_,P=toPrimitive(h,!1);if("string"==typeof P&&P.length>2)if(43===(d=(P=_a(P)).charCodeAt(0))||45===d){if(88===(g=P.charCodeAt(2))||120===g)return NaN}else if(48===d){switch(P.charCodeAt(1)){case 66:case 98:x=2,b=49;break;case 79:case 111:x=8,b=55;break;default:return+P}for(w=(S=P.slice(2)).length,E=0;E<w;E++)if((_=S.charCodeAt(E))<48||_>b)return NaN;return parseInt(S,x)}return+P};if(kt(Ta,!Pa(" 0o1")||!Pa("0b1")||Pa("+0x1"))){for(var Oa,Ca=function Number(h){var d=arguments.length<1?0:h,g=this;return g instanceof Ca&&(ka?fails((function(){Aa.valueOf.call(g)})):classofRaw(g)!=Ta)?inheritIfRequired(new Pa(toNumber(d)),g,Ca):toNumber(d)},Ra=x?Sa(Pa):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Ma=0;Ra.length>Ma;Ma++)has(Pa,Oa=Ra[Ma])&&!has(Ca,Oa)&&Ea(Ca,Oa,wa(Pa,Oa));Ca.prototype=Aa,Aa.constructor=Ca,ct(g,Ta,Ca)}var Na=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ia=createCommonjsModule((function(h){var d=V.f,g=uid("meta"),x=0,b=Object.isExtensible||function(){return!0},setMetadata=function(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},S=h.exports={REQUIRED:!1,fastKey:function(h,d){if(!isObject(h))return"symbol"==typeof h?h:("string"==typeof h?"S":"P")+h;if(!has(h,g)){if(!b(h))return"F";if(!d)return"E";setMetadata(h)}return h[g].objectID},getWeakData:function(h,d){if(!has(h,g)){if(!b(h))return!0;if(!d)return!1;setMetadata(h)}return h[g].weakData},onFreeze:function(h){return Na&&S.REQUIRED&&b(h)&&!has(h,g)&&setMetadata(h),h}};J[g]=!0})),Da=Ia.onFreeze,Va=Object.freeze,La=fails((function(){Va(1)}));_export({target:"Object",stat:!0,forced:La,sham:!Na},{freeze:function freeze(h){return Va&&isObject(h)?Va(Da(h)):h}}),fixRegexpWellKnownSymbolLogic("match",1,(function(h,d,g){return[function match(d){var g=requireObjectCoercible(this),x=null==d?void 0:d[h];return void 0!==x?x.call(d,g):new RegExp(d)[h](String(g))},function(h){var x=g(d,h,this);if(x.done)return x.value;var b=anObject(h),S=String(this);if(!b.global)return regexpExecAbstract(b,S);var w=b.unicode;b.lastIndex=0;for(var E,_=[],P=0;null!==(E=regexpExecAbstract(b,S));){var A=String(E[0]);_[P]=A,""===A&&(b.lastIndex=advanceStringIndex(S,toLength(b.lastIndex),w)),P++}return 0===P?null:_}]}));var ja=wellKnownSymbol("match"),isRegexp=function(h){var d;return isObject(h)&&(void 0!==(d=h[ja])?!!d:"RegExp"==classofRaw(h))},$a=[].push,Fa=Math.min,Ba=4294967295,za=!fails((function(){return!RegExp(Ba,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(h,d,g){var x;return x="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,g){var x=String(requireObjectCoercible(this)),b=void 0===g?Ba:g>>>0;if(0===b)return[];if(void 0===h)return[x];if(!isRegexp(h))return d.call(x,h,b);for(var S,w,E,_=[],P=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(h.sticky?"y":""),A=0,k=new RegExp(h.source,P+"g");(S=Tr.call(k,x))&&!((w=k.lastIndex)>A&&(_.push(x.slice(A,S.index)),S.length>1&&S.index<x.length&&$a.apply(_,S.slice(1)),E=S[0].length,A=w,_.length>=b));)k.lastIndex===S.index&&k.lastIndex++;return A===x.length?!E&&k.test("")||_.push(""):_.push(x.slice(A)),_.length>b?_.slice(0,b):_}:"0".split(void 0,0).length?function(h,g){return void 0===h&&0===g?[]:d.call(this,h,g)}:d,[function split(d,g){var b=requireObjectCoercible(this),S=null==d?void 0:d[h];return void 0!==S?S.call(d,b,g):x.call(String(b),d,g)},function(h,b){var S=g(x,h,this,b,x!==d);if(S.done)return S.value;var w=anObject(h),E=String(this),_=speciesConstructor(w,RegExp),P=w.unicode,A=(w.ignoreCase?"i":"")+(w.multiline?"m":"")+(w.unicode?"u":"")+(za?"y":"g"),k=new _(za?w:"^(?:"+w.source+")",A),C=void 0===b?Ba:b>>>0;if(0===C)return[];if(0===E.length)return null===regexpExecAbstract(k,E)?[E]:[];for(var R=0,M=0,N=[];M<E.length;){k.lastIndex=za?M:0;var D,V=regexpExecAbstract(k,za?E:E.slice(M));if(null===V||(D=Fa(toLength(k.lastIndex+(za?0:M)),E.length))===R)M=advanceStringIndex(E,M,P);else{if(N.push(E.slice(R,M)),N.length===C)return N;for(var L=1;L<=V.length-1;L++)if(N.push(V[L]),N.length===C)return N;M=R=D}}return N.push(E.slice(R)),N}]}),!za);var Ua,notARegexp=function(h){if(isRegexp(h))throw TypeError("The method doesn't accept regular expressions");return h},Ga=wellKnownSymbol("match"),correctIsRegexpLogic=function(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[Ga]=!1,"/./"[h](d)}catch(h){}}return!1},Ha=N.f,Xa="".startsWith,Ya=Math.min,Wa=correctIsRegexpLogic("startsWith"),qa=!(Wa||(Ua=Ha(String.prototype,"startsWith"),!Ua||Ua.writable));_export({target:"String",proto:!0,forced:!qa&&!Wa},{startsWith:function startsWith(h){var d=String(requireObjectCoercible(this));notARegexp(h);var g=toLength(Ya(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return Xa?Xa.call(d,x,g):d.slice(g,g+x.length)===x}});var Qa=[].slice,Ka={},construct=function(h,d,g){if(!(d in Ka)){for(var x=[],b=0;b<d;b++)x[b]="a["+b+"]";Ka[d]=Function("C,a","return new C("+x.join(",")+")")}return Ka[d](h,g)},Za=Function.bind||function bind(h){var d=aFunction$1(this),g=Qa.call(arguments,1),x=function bound(){var b=g.concat(Qa.call(arguments));return this instanceof x?construct(d,b.length,b):d.apply(h,b)};return isObject(d.prototype)&&(x.prototype=d.prototype),x};_export({target:"Function",proto:!0},{bind:Za}),_export({global:!0},{globalThis:g});var Ja=function check(h){return h&&h.Math==Math&&h},to=Ja("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||Ja("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||Ja("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||Ja("object"==_typeof(d)&&d)||function(){return this}()||Function("return this")(),eo=N.f,ro=fails((function(){eo(1)}));_export({target:"Object",stat:!0,forced:!x||ro,sham:!x},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return eo(toIndexedObject(h),d)}});var no=function fails(h){try{return!!h()}catch(h){return!0}},io=!no((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),ao={}.propertyIsEnumerable,oo=Object.getOwnPropertyDescriptor,uo={f:oo&&!ao.call({1:2},1)?function propertyIsEnumerable(h){var d=oo(this,h);return!!d&&d.enumerable}:ao},so=function createPropertyDescriptor(h,d){return{enumerable:!(1&h),configurable:!(2&h),writable:!(4&h),value:d}},co={}.toString,lo=function classofRaw(h){return co.call(h).slice(8,-1)},fo="".split,ho=no((function(){return!Object("z").propertyIsEnumerable(0)}))?function(h){return"String"==lo(h)?fo.call(h,""):Object(h)}:Object,po=function requireObjectCoercible(h){if(null==h)throw TypeError("Can't call method on "+h);return h},yo=function toIndexedObject(h){return ho(po(h))},vo=function isObject(h){return"object"===_typeof(h)?null!==h:"function"==typeof h},go=function toPrimitive(h,d){if(!vo(h))return h;var g,x;if(d&&"function"==typeof(g=h.toString)&&!vo(x=g.call(h)))return x;if("function"==typeof(g=h.valueOf)&&!vo(x=g.call(h)))return x;if(!d&&"function"==typeof(g=h.toString)&&!vo(x=g.call(h)))return x;throw TypeError("Can't convert object to primitive value")},mo={}.hasOwnProperty,xo=function has(h,d){return mo.call(h,d)},bo=to.document,So=vo(bo)&&vo(bo.createElement),wo=function documentCreateElement(h){return So?bo.createElement(h):{}},Eo=!io&&!no((function(){return 7!=Object.defineProperty(wo("div"),"a",{get:function get(){return 7}}).a})),_o=Object.getOwnPropertyDescriptor,To={f:io?_o:function getOwnPropertyDescriptor(h,d){if(h=yo(h),d=go(d,!0),Eo)try{return _o(h,d)}catch(h){}if(xo(h,d))return so(!uo.f.call(h,d),h[d])}},Po=/#|\.prototype\./,Ao=function isForced(h,d){var g=Oo[ko(h)];return g==Ro||g!=Co&&("function"==typeof d?no(d):!!d)},ko=Ao.normalize=function(h){return String(h).replace(Po,".").toLowerCase()},Oo=Ao.data={},Co=Ao.NATIVE="N",Ro=Ao.POLYFILL="P",Mo=Ao,No={},Io=function aFunction(h){if("function"!=typeof h)throw TypeError(String(h)+" is not a function");return h},Do=function functionBindContext(h,d,g){if(Io(h),void 0===d)return h;switch(g){case 0:return function(){return h.call(d)};case 1:return function(g){return h.call(d,g)};case 2:return function(g,x){return h.call(d,g,x)};case 3:return function(g,x,b){return h.call(d,g,x,b)}}return function(){return h.apply(d,arguments)}},Vo=function anObject(h){if(!vo(h))throw TypeError(String(h)+" is not an object");return h},Lo=Object.defineProperty,jo={f:io?Lo:function defineProperty(h,d,g){if(Vo(h),d=go(d,!0),Vo(g),Eo)try{return Lo(h,d,g)}catch(h){}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(h[d]=g.value),h}},$o=io?function(h,d,g){return jo.f(h,d,so(1,g))}:function(h,d,g){return h[d]=g,h},Fo=To.f,Bo=function wrapConstructor(h){var d=function Wrapper(d,g,x){if(this instanceof h){switch(arguments.length){case 0:return new h;case 1:return new h(d);case 2:return new h(d,g)}return new h(d,g,x)}return h.apply(this,arguments)};return d.prototype=h.prototype,d},zo=function _export(h,d){var g,x,b,S,w,E,_,P,A=h.target,k=h.global,C=h.stat,R=h.proto,M=k?to:C?to[A]:(to[A]||{}).prototype,N=k?No:No[A]||(No[A]={}),D=N.prototype;for(b in d)g=!Mo(k?b:A+(C?".":"#")+b,h.forced)&&M&&xo(M,b),w=N[b],g&&(E=h.noTargetGet?(P=Fo(M,b))&&P.value:M[b]),S=g&&E?E:d[b],g&&_typeof(w)===_typeof(S)||(_=h.bind&&g?Do(S,to):h.wrap&&g?Bo(S):R&&"function"==typeof S?Do(Function.call,S):S,(h.sham||S&&S.sham||w&&w.sham)&&$o(_,"sham",!0),N[b]=_,R&&(xo(No,x=A+"Prototype")||$o(No,x,{}),No[x][b]=S,h.real&&D&&!D[b]&&$o(D,b,S)))},Uo=Math.ceil,Go=Math.floor,Ho=function toInteger(h){return isNaN(h=+h)?0:(h>0?Go:Uo)(h)},Xo=Math.min,Yo=function toLength(h){return h>0?Xo(Ho(h),9007199254740991):0},Wo="__core-js_shared__",qo=to[Wo]||function setGlobal(h,d){try{$o(to,h,d)}catch(g){to[h]=d}return d}(Wo,{}),Qo=createCommonjsModule((function(h){(h.exports=function(h,d){return qo[h]||(qo[h]=void 0!==d?d:{})})("versions",[]).push({version:"3.7.0",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Ko=0,Zo=Math.random(),Jo=function uid(h){return"Symbol("+String(void 0===h?"":h)+")_"+(++Ko+Zo).toString(36)},tu=!!Object.getOwnPropertySymbols&&!no((function(){return!String(Symbol())})),eu=tu&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),ru=Qo("wks"),nu=to.Symbol,iu=eu?nu:nu&&nu.withoutSetter||Jo,au=function wellKnownSymbol(h){return xo(ru,h)||(tu&&xo(nu,h)?ru[h]=nu[h]:ru[h]=iu("Symbol."+h)),ru[h]},ou=au("match"),uu=function notARegexp(h){if(function isRegexp(h){var d;return vo(h)&&(void 0!==(d=h[ou])?!!d:"RegExp"==lo(h))}(h))throw TypeError("The method doesn't accept regular expressions");return h},su=au("match"),cu=function correctIsRegexpLogic(h){var d=/./;try{"/./"[h](d)}catch(g){try{return d[su]=!1,"/./"[h](d)}catch(h){}}return!1},lu="".startsWith,fu=Math.min,hu=cu("startsWith");zo({target:"String",proto:!0,forced:!hu},{startsWith:function startsWith(h){var d=String(po(this));uu(h);var g=Yo(fu(arguments.length>1?arguments[1]:void 0,d.length)),x=String(h);return lu?lu.call(d,x,g):d.slice(g,g+x.length)===x}});var pu=function entryVirtual(h){return No[h+"Prototype"]},yu=pu("String").startsWith,vu=String.prototype,du=function startsWith_1(h){var d=h.startsWith;return"string"==typeof h||h===vu||h instanceof String&&d===vu.startsWith?yu:d},gu=Ur.trim,mu=g.parseFloat,xu=1/mu($r+"-0")!=-1/0?function parseFloat(h){var d=gu(String(h)),g=mu(d);return 0===g&&"-"==d.charAt(0)?-0:g}:mu;_export({global:!0,forced:parseFloat!=xu},{parseFloat:xu});var bu=V.f,Su=bt.f,wu=st.set,Eu=wellKnownSymbol("match"),_u=g.RegExp,Tu=_u.prototype,Pu=/a/g,Au=/a/g,ku=new _u(Pu)!==Pu,Ou=mr.UNSUPPORTED_Y;if(x&&kt("RegExp",!ku||Ou||fails((function(){return Au[Eu]=!1,_u(Pu)!=Pu||_u(Au)==Au||"/a/i"!=_u(Pu,"i")})))){for(var Cu=function RegExp(h,d){var g,x=this instanceof Cu,b=isRegexp(h),S=void 0===d;if(!x&&b&&h.constructor===Cu&&S)return h;ku?b&&!S&&(h=h.source):h instanceof Cu&&(S&&(d=regexpFlags.call(h)),h=h.source),Ou&&(g=!!d&&d.indexOf("y")>-1)&&(d=d.replace(/y/g,""));var w=inheritIfRequired(ku?new _u(h,d):_u(h,d),x?this:Tu,Cu);return Ou&&g&&wu(w,{sticky:g}),w},proxy=function(h){h in Cu||bu(Cu,h,{configurable:!0,get:function(){return _u[h]},set:function(d){_u[h]=d}})},Ru=Su(_u),Mu=0;Ru.length>Mu;)proxy(Ru[Mu++]);Tu.constructor=Cu,Cu.prototype=Tu,ct(g,"RegExp",Cu)}setSpecies("RegExp");var Nu="\t\n\v\f\r \u2028\u2029\ufeff",Iu="["+Nu+"]",Du=RegExp("^"+Iu+Iu+"*"),Vu=RegExp(Iu+Iu+"*$"),Lu=function createMethod(h){return function(d){var g=String(po(d));return 1&h&&(g=g.replace(Du,"")),2&h&&(g=g.replace(Vu,"")),g}},ju={start:Lu(1),end:Lu(2),trim:Lu(3)},$u=ju.trim,Fu=to.parseFloat,Bu=1/Fu(Nu+"-0")!=-1/0?function parseFloat(h){var d=$u(String(h)),g=Fu(d);return 0===g&&"-"==d.charAt(0)?-0:g}:Fu;zo({global:!0,forced:parseFloat!=Bu},{parseFloat:Bu});var zu=No.parseFloat,Uu=nn.map,Gu=arrayMethodHasSpeciesSupport("map"),Hu=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Gu||!Hu},{map:function map(h){return Uu(this,h,arguments.length>1?arguments[1]:void 0)}});var Xu=function toObject(h){return Object(po(h))};_export({target:"Array",stat:!0},{isArray:Ct});var Yu,Wu,qu=Array.isArray||function isArray(h){return"Array"==lo(h)},Qu=au("species"),Ku=function arraySpeciesCreate(h,d){var g;return qu(h)&&("function"!=typeof(g=h.constructor)||g!==Array&&!qu(g.prototype)?vo(g)&&null===(g=g[Qu])&&(g=void 0):g=void 0),new(void 0===g?Array:g)(0===d?0:d)},Zu=[].push,Ju=function createMethod(h){var d=1==h,g=2==h,x=3==h,b=4==h,S=6==h,w=5==h||S;return function(E,_,P,A){for(var k,C,R=Xu(E),M=ho(R),N=Do(_,P,3),D=Yo(M.length),V=0,L=A||Ku,j=d?L(E,D):g?L(E,0):void 0;D>V;V++)if((w||V in M)&&(C=N(k=M[V],V,R),h))if(d)j[V]=C;else if(C)switch(h){case 3:return!0;case 5:return k;case 6:return V;case 2:Zu.call(j,k)}else if(b)return!1;return S?-1:x||b?b:j}},ts={forEach:Ju(0),map:Ju(1),filter:Ju(2),some:Ju(3),every:Ju(4),find:Ju(5),findIndex:Ju(6)},es=function aFunction(h){return"function"==typeof h?h:void 0},rs=function getBuiltIn(h,d){return arguments.length<2?es(No[h])||es(to[h]):No[h]&&No[h][d]||to[h]&&to[h][d]},ns=rs("navigator","userAgent")||"",is=to.process,as=is&&is.versions,os=as&&as.v8;os?Wu=(Yu=os.split("."))[0]+Yu[1]:ns&&(!(Yu=ns.match(/Edge\/(\d+)/))||Yu[1]>=74)&&(Yu=ns.match(/Chrome\/(\d+)/))&&(Wu=Yu[1]);var us=Wu&&+Wu,ss=au("species"),cs=function arrayMethodHasSpeciesSupport(h){return us>=51||!no((function(){var d=[];return(d.constructor={})[ss]=function(){return{foo:1}},1!==d[h](Boolean).foo}))},ls=Object.defineProperty,fs={},hs=function thrower(h){throw h},ps=function arrayMethodUsesToLength(h,d){if(xo(fs,h))return fs[h];d||(d={});var g=[][h],x=!!xo(d,"ACCESSORS")&&d.ACCESSORS,b=xo(d,0)?d[0]:hs,S=xo(d,1)?d[1]:void 0;return fs[h]=!!g&&!no((function(){if(x&&!io)return!0;var h={length:-1};x?ls(h,1,{enumerable:!0,get:hs}):h[1]=1,g.call(h,b,S)}))},ys=ts.map,vs=cs("map"),ds=ps("map");zo({target:"Array",proto:!0,forced:!vs||!ds},{map:function map(h){return ys(this,h,arguments.length>1?arguments[1]:void 0)}});var gs=pu("Array").map,ms=Array.prototype,xs=function map_1(h){var d=h.map;return h===ms||h instanceof Array&&d===ms.map?gs:d};zo({target:"Array",stat:!0},{isArray:qu});var bs=No.Array.isArray,Ss=bs;var ws=function _arrayWithHoles(h){if(Ss(h))return h},Es={},_s=Ia.getWeakData,Ts=st.set,Ps=st.getterFor,As=nn.find,ks=nn.findIndex,Os=0,uncaughtFrozenStore=function(h){return h.frozen||(h.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(h,d){return As(h.entries,(function(h){return h[0]===d}))};UncaughtFrozenStore.prototype={get:function(h){var d=findUncaughtFrozen(this,h);if(d)return d[1]},has:function(h){return!!findUncaughtFrozen(this,h)},set:function(h,d){var g=findUncaughtFrozen(this,h);g?g[1]=d:this.entries.push([h,d])},delete:function(h){var d=ks(this.entries,(function(d){return d[0]===h}));return~d&&this.entries.splice(d,1),!!~d}};var Cs={getConstructor:function(h,d,g,x){var b=h((function(h,S){anInstance(h,b,d),Ts(h,{type:d,id:Os++,frozen:void 0}),null!=S&&iterate(S,h[x],{that:h,AS_ENTRIES:g})})),S=Ps(d),define=function(h,d,g){var x=S(h),b=_s(anObject(d),!0);return!0===b?uncaughtFrozenStore(x).set(d,g):b[x.id]=g,h};return redefineAll(b.prototype,{delete:function(h){var d=S(this);if(!isObject(h))return!1;var g=_s(h);return!0===g?uncaughtFrozenStore(d).delete(h):g&&has(g,d.id)&&delete g[d.id]},has:function has$1(h){var d=S(this);if(!isObject(h))return!1;var g=_s(h);return!0===g?uncaughtFrozenStore(d).has(h):g&&has(g,d.id)}}),redefineAll(b.prototype,g?{get:function get(h){var d=S(this);if(isObject(h)){var g=_s(h);return!0===g?uncaughtFrozenStore(d).get(h):g?g[d.id]:void 0}},set:function set(h,d){return define(this,h,d)}}:{add:function add(h){return define(this,h,!0)}}),b}},Rs=(createCommonjsModule((function(h){var d,x=st.enforce,b=!g.ActiveXObject&&"ActiveXObject"in g,S=Object.isExtensible,wrapper=function(h){return function WeakMap(){return h(this,arguments.length?arguments[0]:void 0)}},w=h.exports=function(h,d,x){var b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=g[h],_=E&&E.prototype,P=E,A={},fixMethod=function(h){var d=_[h];ct(_,h,"add"==h?function add(h){return d.call(this,0===h?0:h),this}:"delete"==h?function(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:"get"==h?function get(h){return S&&!isObject(h)?void 0:d.call(this,0===h?0:h)}:"has"==h?function has(h){return!(S&&!isObject(h))&&d.call(this,0===h?0:h)}:function set(h,g){return d.call(this,0===h?0:h,g),this})};if(kt(h,"function"!=typeof E||!(S||_.forEach&&!fails((function(){(new E).entries().next()})))))P=x.getConstructor(d,h,b,w),Ia.REQUIRED=!0;else if(kt(h,!0)){var k=new P,C=k[w](S?{}:-0,1)!=k,R=fails((function(){k.has(1)})),M=checkCorrectnessOfIteration((function(h){new E(h)})),N=!S&&fails((function(){for(var h=new E,d=5;d--;)h[w](d,d);return!h.has(-0)}));M||((P=d((function(d,g){anInstance(d,P,h);var x=inheritIfRequired(new E,d,P);return null!=g&&iterate(g,x[w],{that:x,AS_ENTRIES:b}),x}))).prototype=_,_.constructor=P),(R||N)&&(fixMethod("delete"),fixMethod("has"),b&&fixMethod("get")),(N||C)&&fixMethod(w),S&&_.clear&&delete _.clear}return A[h]=P,_export({global:!0,forced:P!=E},A),setToStringTag(P,h),S||x.setStrong(P,h,b),P}("WeakMap",wrapper,Cs);if(W&&b){d=Cs.getConstructor(wrapper,"WeakMap",!0),Ia.REQUIRED=!0;var E=w.prototype,_=E.delete,P=E.has,A=E.get,k=E.set;redefineAll(E,{delete:function(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),_.call(this,h)||g.frozen.delete(h)}return _.call(this,h)},has:function has(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),P.call(this,h)||g.frozen.has(h)}return P.call(this,h)},get:function get(h){if(isObject(h)&&!S(h)){var g=x(this);return g.frozen||(g.frozen=new d),P.call(this,h)?A.call(this,h):g.frozen.get(h)}return A.call(this,h)},set:function set(h,g){if(isObject(h)&&!S(h)){var b=x(this);b.frozen||(b.frozen=new d),P.call(this,h)?k.call(this,h,g):b.frozen.set(h,g)}else k.call(this,h,g);return this}})}})),Function.toString);"function"!=typeof qo.inspectSource&&(qo.inspectSource=function(h){return Rs.call(h)});var Ms,Ns,Is,Ds=qo.inspectSource,Vs=to.WeakMap,Ls="function"==typeof Vs&&/native code/.test(Ds(Vs)),js=Qo("keys"),$s=function sharedKey(h){return js[h]||(js[h]=Jo(h))},Fs={},Bs=to.WeakMap;if(Ls){var zs=qo.state||(qo.state=new Bs),Us=zs.get,Gs=zs.has,Hs=zs.set;Ms=function set(h,d){return d.facade=h,Hs.call(zs,h,d),d},Ns=function get(h){return Us.call(zs,h)||{}},Is=function has(h){return Gs.call(zs,h)}}else{var Xs=$s("state");Fs[Xs]=!0,Ms=function set(h,d){return d.facade=h,$o(h,Xs,d),d},Ns=function get(h){return xo(h,Xs)?h[Xs]:{}},Is=function has(h){return xo(h,Xs)}}var Ys,Ws,qs,Qs={set:Ms,get:Ns,has:Is,enforce:function enforce(h){return Is(h)?Ns(h):Ms(h,{})},getterFor:function getterFor(h){return function(d){var g;if(!vo(d)||(g=Ns(d)).type!==h)throw TypeError("Incompatible receiver, "+h+" required");return g}}},Ks=!no((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Zs=$s("IE_PROTO"),Js=Object.prototype,tc=Ks?Object.getPrototypeOf:function(h){return h=Xu(h),xo(h,Zs)?h[Zs]:"function"==typeof h.constructor&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?Js:null},ec=(au("iterator"),!1);[].keys&&("next"in(qs=[].keys())?(Ws=tc(tc(qs)))!==Object.prototype&&(Ys=Ws):ec=!0),null==Ys&&(Ys={});var rc={IteratorPrototype:Ys,BUGGY_SAFARI_ITERATORS:ec};_export({target:"Object",stat:!0,forced:!x,sham:!x},{defineProperties:Yr});var nc=fails((function(){Xr(1)}));_export({target:"Object",stat:!0,forced:nc},{keys:function keys(h){return Xr(toObject(h))}});var ic=dt.indexOf,ac=[].indexOf,oc=!!ac&&1/[1].indexOf(1,-0)<0,uc=arrayMethodIsStrict("indexOf"),sc=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:oc||!uc||!sc},{indexOf:function indexOf(h){return oc?ac.apply(this,arguments)||0:ic(this,h,arguments.length>1?arguments[1]:void 0)}});var cc,lc=Math.max,fc=Math.min,hc=function toAbsoluteIndex(h,d){var g=Ho(h);return g<0?lc(g+d,0):fc(g,d)},pc=function createMethod(h){return function(d,g,x){var b,S=yo(d),w=Yo(S.length),E=hc(x,w);if(h&&g!=g){for(;w>E;)if((b=S[E++])!=b)return!0}else for(;w>E;E++)if((h||E in S)&&S[E]===g)return h||E||0;return!h&&-1}},yc={includes:pc(!0),indexOf:pc(!1)},vc=yc.indexOf,dc=function objectKeysInternal(h,d){var g,x=yo(h),b=0,S=[];for(g in x)!xo(Fs,g)&&xo(x,g)&&S.push(g);for(;d.length>b;)xo(x,g=d[b++])&&(~vc(S,g)||S.push(g));return S},gc=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mc=Object.keys||function keys(h){return dc(h,gc)},xc=io?Object.defineProperties:function defineProperties(h,d){Vo(h);for(var g,x=mc(d),b=x.length,S=0;b>S;)jo.f(h,g=x[S++],d[g]);return h},bc=rs("document","documentElement"),Sc=$s("IE_PROTO"),wc=function EmptyConstructor(){},Ec=function scriptTag(h){return"<script>"+h+"</"+"script>"},_c=function NullProtoObject(){try{cc=document.domain&&new ActiveXObject("htmlfile")}catch(h){}_c=cc?function NullProtoObjectViaActiveX(h){h.write(Ec("")),h.close();var d=h.parentWindow.Object;return h=null,d}(cc):function NullProtoObjectViaIFrame(){var h,d=wo("iframe");return d.style.display="none",bc.appendChild(d),d.src=String("javascript:"),(h=d.contentWindow.document).open(),h.write(Ec("document.F=Object")),h.close(),h.F}();for(var h=gc.length;h--;)delete _c.prototype[gc[h]];return _c()};Fs[Sc]=!0;var Tc=Object.create||function create(h,d){var g;return null!==h?(wc.prototype=Vo(h),g=new wc,wc.prototype=null,g[Sc]=h):g=_c(),void 0===d?g:xc(g,d)},Pc={};Pc[au("toStringTag")]="z";var Ac="[object z]"===String(Pc),kc=au("toStringTag"),Oc="Arguments"==lo(function(){return arguments}()),Cc=Ac?lo:function(h){var d,g,x;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(g=function tryGet(h,d){try{return h[d]}catch(h){}}(d=Object(h),kc))?g:Oc?lo(d):"Object"==(x=lo(d))&&"function"==typeof d.callee?"Arguments":x},Rc=Ac?{}.toString:function toString(){return"[object "+Cc(this)+"]"},Mc=jo.f,Nc=au("toStringTag"),Ic=function setToStringTag(h,d,g,x){if(h){var b=g?h:h.prototype;xo(b,Nc)||Mc(b,Nc,{configurable:!0,value:d}),x&&!Ac&&$o(b,"toString",Rc)}},Dc=rc.IteratorPrototype,Vc=function returnThis(){return this},Lc=Object.setPrototypeOf||("__proto__"in{}?function(){var h,d=!1,g={};try{(h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),d=g instanceof Array}catch(h){}return function setPrototypeOf(g,x){return Vo(g),function aPossiblePrototype(h){if(!vo(h)&&null!==h)throw TypeError("Can't set "+String(h)+" as a prototype")}(x),d?h.call(g,x):g.__proto__=x,g}}():void 0),jc=function redefine(h,d,g,x){x&&x.enumerable?h[d]=g:$o(h,d,g)},$c=rc.IteratorPrototype,Fc=rc.BUGGY_SAFARI_ITERATORS,Bc=au("iterator"),zc="keys",Uc="values",Gc="entries",Hc=function returnThis(){return this},Xc=function defineIterator(h,d,g,x,b,S,w){!function createIteratorConstructor(h,d,g){var x=d+" Iterator";h.prototype=Tc(Dc,{next:so(1,g)}),Ic(h,x,!1,!0),Es[x]=Vc}(g,d,x);var E,_,P,A=function getIterationMethod(h){if(h===b&&N)return N;if(!Fc&&h in R)return R[h];switch(h){case zc:return function keys(){return new g(this,h)};case Uc:return function values(){return new g(this,h)};case Gc:return function entries(){return new g(this,h)}}return function(){return new g(this)}},k=d+" Iterator",C=!1,R=h.prototype,M=R[Bc]||R["@@iterator"]||b&&R[b],N=!Fc&&M||A(b),D="Array"==d&&R.entries||M;if(D&&(E=tc(D.call(new h)),$c!==Object.prototype&&E.next&&(Ic(E,k,!0,!0),Es[k]=Hc)),b==Uc&&M&&M.name!==Uc&&(C=!0,N=function values(){return M.call(this)}),w&&R[Bc]!==N&&$o(R,Bc,N),Es[d]=N,b)if(_={values:A(Uc),keys:S?N:A(zc),entries:A(Gc)},w)for(P in _)(Fc||C||!(P in R))&&jc(R,P,_[P]);else zo({target:d,proto:!0,forced:Fc||C},_);return _},Yc="Array Iterator",Wc=Qs.set,qc=Qs.getterFor(Yc);Xc(Array,"Array",(function(h,d){Wc(this,{type:Yc,target:yo(h),index:0,kind:d})}),(function(){var h=qc(this),d=h.target,g=h.kind,x=h.index++;return!d||x>=d.length?(h.target=void 0,{value:void 0,done:!0}):"keys"==g?{value:x,done:!1}:"values"==g?{value:d[x],done:!1}:{value:[x,d[x]],done:!1}}),"values");Es.Arguments=Es.Array;var Qc=au("toStringTag");for(var Kc 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 Zc=to[Kc],Jc=Zc&&Zc.prototype;Jc&&Cc(Jc)!==Qc&&$o(Jc,Qc,Kc),Es[Kc]=Es.Array}var tl=function createMethod(h){return function(d,g){var x,b,S=String(po(d)),w=Ho(g),E=S.length;return w<0||w>=E?h?"":void 0:(x=S.charCodeAt(w))<55296||x>56319||w+1===E||(b=S.charCodeAt(w+1))<56320||b>57343?h?S.charAt(w):x:h?S.slice(w,w+2):b-56320+(x-55296<<10)+65536}},el={codeAt:tl(!1),charAt:tl(!0)}.charAt,rl="String Iterator",nl=Qs.set,il=Qs.getterFor(rl);Xc(String,"String",(function(h){nl(this,{type:rl,string:String(h),index:0})}),(function next(){var h,d=il(this),g=d.string,x=d.index;return x>=g.length?{value:void 0,done:!0}:(h=el(g,x),d.index+=h.length,{value:h,done:!1})}));var al=au("iterator"),ol=function getIteratorMethod(h){if(null!=h)return h[al]||h["@@iterator"]||Es[Cc(h)]},ul=function getIterator(h){var d=ol(h);if("function"!=typeof d)throw TypeError(String(h)+" is not iterable");return Vo(d.call(h))},sl=au("iterator"),cl=function isIterable(h){var d=Object(h);return void 0!==d[sl]||"@@iterator"in d||Es.hasOwnProperty(Cc(d))},ll=function createProperty(h,d,g){var x=go(d);x in h?jo.f(h,x,so(0,g)):h[x]=g},fl=au("isConcatSpreadable"),hl=9007199254740991,pl="Maximum allowed index exceeded",yl=us>=51||!no((function(){var h=[];return h[fl]=!1,h.concat()[0]!==h})),vl=cs("concat"),dl=function isConcatSpreadable(h){if(!vo(h))return!1;var d=h[fl];return void 0!==d?!!d:qu(h)};zo({target:"Array",proto:!0,forced:!yl||!vl},{concat:function concat(h){var d,g,x,b,S,w=Xu(this),E=Ku(w,0),_=0;for(d=-1,x=arguments.length;d<x;d++)if(dl(S=-1===d?w:arguments[d])){if(_+(b=Yo(S.length))>hl)throw TypeError(pl);for(g=0;g<b;g++,_++)g in S&&ll(E,_,S[g])}else{if(_>=hl)throw TypeError(pl);ll(E,_++,S)}return E.length=_,E}});var gl=Jr.f,ml=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:ml},{getOwnPropertyNames:gl});var xl=gc.concat("length","prototype"),bl={f:Object.getOwnPropertyNames||function getOwnPropertyNames(h){return dc(h,xl)}},Sl=bl.f,wl={}.toString,El="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],_l={f:function getOwnPropertyNames(h){return El&&"[object Window]"==wl.call(h)?function getWindowNames(h){try{return Sl(h)}catch(h){return El.slice()}}(h):Sl(yo(h))}},Tl={f:Object.getOwnPropertySymbols},Pl={f:au},Al=jo.f,kl=function defineWellKnownSymbol(h){var d=No.Symbol||(No.Symbol={});xo(d,h)||Al(d,h,{value:Pl.f(h)})},Ol=ts.forEach,Cl=$s("hidden"),Rl="Symbol",Ml=au("toPrimitive"),Nl=Qs.set,Il=Qs.getterFor(Rl),Dl=Object.prototype,Vl=to.Symbol,Ll=rs("JSON","stringify"),jl=To.f,$l=jo.f,Fl=_l.f,Bl=uo.f,zl=Qo("symbols"),Ul=Qo("op-symbols"),Gl=Qo("string-to-symbol-registry"),Hl=Qo("symbol-to-string-registry"),Xl=Qo("wks"),Yl=to.QObject,Wl=!Yl||!Yl.prototype||!Yl.prototype.findChild,ql=io&&no((function(){return 7!=Tc($l({},"a",{get:function get(){return $l(this,"a",{value:7}).a}})).a}))?function(h,d,g){var x=jl(Dl,d);x&&delete Dl[d],$l(h,d,g),x&&h!==Dl&&$l(Dl,d,x)}:$l,Ql=function wrap(h,d){var g=zl[h]=Tc(Vl.prototype);return Nl(g,{type:Rl,tag:h,description:d}),io||(g.description=d),g},Kl=eu?function(h){return"symbol"==_typeof(h)}:function(h){return Object(h)instanceof Vl},Zl=function defineProperty(h,d,g){h===Dl&&Zl(Ul,d,g),Vo(h);var x=go(d,!0);return Vo(g),xo(zl,x)?(g.enumerable?(xo(h,Cl)&&h[Cl][x]&&(h[Cl][x]=!1),g=Tc(g,{enumerable:so(0,!1)})):(xo(h,Cl)||$l(h,Cl,so(1,{})),h[Cl][x]=!0),ql(h,x,g)):$l(h,x,g)},Jl=function defineProperties(h,d){Vo(h);var g=yo(d),x=mc(g).concat(nf(g));return Ol(x,(function(d){io&&!tf.call(g,d)||Zl(h,d,g[d])})),h},tf=function propertyIsEnumerable(h){var d=go(h,!0),g=Bl.call(this,d);return!(this===Dl&&xo(zl,d)&&!xo(Ul,d))&&(!(g||!xo(this,d)||!xo(zl,d)||xo(this,Cl)&&this[Cl][d])||g)},ef=function getOwnPropertyDescriptor(h,d){var g=yo(h),x=go(d,!0);if(g!==Dl||!xo(zl,x)||xo(Ul,x)){var b=jl(g,x);return!b||!xo(zl,x)||xo(g,Cl)&&g[Cl][x]||(b.enumerable=!0),b}},rf=function getOwnPropertyNames(h){var d=Fl(yo(h)),g=[];return Ol(d,(function(h){xo(zl,h)||xo(Fs,h)||g.push(h)})),g},nf=function getOwnPropertySymbols(h){var d=h===Dl,g=Fl(d?Ul:yo(h)),x=[];return Ol(g,(function(h){!xo(zl,h)||d&&!xo(Dl,h)||x.push(zl[h])})),x};if(tu||(jc((Vl=function _Symbol(){if(this instanceof Vl)throw TypeError("Symbol is not a constructor");var h=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,d=Jo(h),g=function setter(h){this===Dl&&setter.call(Ul,h),xo(this,Cl)&&xo(this[Cl],d)&&(this[Cl][d]=!1),ql(this,d,so(1,h))};return io&&Wl&&ql(Dl,d,{configurable:!0,set:g}),Ql(d,h)}).prototype,"toString",(function toString(){return Il(this).tag})),jc(Vl,"withoutSetter",(function(h){return Ql(Jo(h),h)})),uo.f=tf,jo.f=Zl,To.f=ef,bl.f=_l.f=rf,Tl.f=nf,Pl.f=function(h){return Ql(au(h),h)},io&&$l(Vl.prototype,"description",{configurable:!0,get:function description(){return Il(this).description}})),zo({global:!0,wrap:!0,forced:!tu,sham:!tu},{Symbol:Vl}),Ol(mc(Xl),(function(h){kl(h)})),zo({target:Rl,stat:!0,forced:!tu},{for:function _for(h){var d=String(h);if(xo(Gl,d))return Gl[d];var g=Vl(d);return Gl[d]=g,Hl[g]=d,g},keyFor:function keyFor(h){if(!Kl(h))throw TypeError(h+" is not a symbol");if(xo(Hl,h))return Hl[h]},useSetter:function useSetter(){Wl=!0},useSimple:function useSimple(){Wl=!1}}),zo({target:"Object",stat:!0,forced:!tu,sham:!io},{create:function create(h,d){return void 0===d?Tc(h):Jl(Tc(h),d)},defineProperty:Zl,defineProperties:Jl,getOwnPropertyDescriptor:ef}),zo({target:"Object",stat:!0,forced:!tu},{getOwnPropertyNames:rf,getOwnPropertySymbols:nf}),zo({target:"Object",stat:!0,forced:no((function(){Tl.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(h){return Tl.f(Xu(h))}}),Ll){var af=!tu||no((function(){var h=Vl();return"[null]"!=Ll([h])||"{}"!=Ll({a:h})||"{}"!=Ll(Object(h))}));zo({target:"JSON",stat:!0,forced:af},{stringify:function stringify(h,d,g){for(var x,b=[h],S=1;arguments.length>S;)b.push(arguments[S++]);if(x=d,(vo(d)||void 0!==h)&&!Kl(h))return qu(d)||(d=function replacer(h,d){if("function"==typeof x&&(d=x.call(this,h,d)),!Kl(d))return d}),b[1]=d,Ll.apply(null,b)}})}Vl.prototype[Ml]||$o(Vl.prototype,Ml,Vl.prototype.valueOf),Ic(Vl,Rl),Fs[Cl]=!0,kl("asyncIterator"),kl("hasInstance"),kl("isConcatSpreadable"),kl("iterator"),kl("match"),kl("matchAll"),kl("replace"),kl("search"),kl("species"),kl("split"),kl("toPrimitive"),kl("toStringTag"),kl("unscopables"),Ic(to.JSON,"JSON",!0);var of=No.Symbol;kl("asyncDispose"),kl("dispose"),kl("observable"),kl("patternMatch"),kl("replaceAll");var uf=of;var sf=function _iterableToArrayLimit(h,d){if(void 0!==uf&&cl(Object(h))){var g=[],x=!0,b=!1,S=void 0;try{for(var w,E=ul(h);!(x=(w=E.next()).done)&&(g.push(w.value),!d||g.length!==d);x=!0);}catch(h){b=!0,S=h}finally{try{x||null==E.return||E.return()}finally{if(b)throw S}}return g}},callWithSafeIterationClosing=function(h,d,g,x){try{return x?d(anObject(g)[0],g[1]):d(g)}catch(d){throw iteratorClose(h),d}},cf=!checkCorrectnessOfIteration((function(h){Array.from(h)}));_export({target:"Array",stat:!0,forced:cf},{from:function from(h){var d,g,x,b,S,w,E=toObject(h),_="function"==typeof this?this:Array,P=arguments.length,A=P>1?arguments[1]:void 0,k=void 0!==A,C=getIteratorMethod(E),R=0;if(k&&(A=functionBindContext(A,P>2?arguments[2]:void 0,2)),null==C||_==Array&&isArrayIteratorMethod(C))for(g=new _(d=toLength(E.length));d>R;R++)w=k?A(E[R],R):E[R],createProperty(g,R,w);else for(S=(b=C.call(E)).next,g=new _;!(x=S.call(b)).done;R++)w=k?callWithSafeIterationClosing(b,A,[x.value,R],!0):x.value,createProperty(g,R,w);return g.length=R,g}});var lf=function iteratorClose(h){var d=h.return;if(void 0!==d)return Vo(d.call(h)).value},ff=function callWithSafeIterationClosing(h,d,g,x){try{return x?d(Vo(g)[0],g[1]):d(g)}catch(d){throw lf(h),d}},hf=au("iterator"),pf=Array.prototype,yf=function isArrayIteratorMethod(h){return void 0!==h&&(Es.Array===h||pf[hf]===h)},vf=au("iterator"),df=!1;try{var gf=0,mf={next:function next(){return{done:!!gf++}},return:function _return(){df=!0}};mf[vf]=function(){return this},Array.from(mf,(function(){throw 2}))}catch(h){}var xf=function checkCorrectnessOfIteration(h,d){if(!d&&!df)return!1;var g=!1;try{var x={};x[vf]=function(){return{next:function next(){return{done:g=!0}}}},h(x)}catch(h){}return g},bf=!xf((function(h){Array.from(h)}));zo({target:"Array",stat:!0,forced:bf},{from:function from(h){var d,g,x,b,S,w,E=Xu(h),_="function"==typeof this?this:Array,P=arguments.length,A=P>1?arguments[1]:void 0,k=void 0!==A,C=ol(E),R=0;if(k&&(A=Do(A,P>2?arguments[2]:void 0,2)),null==C||_==Array&&yf(C))for(g=new _(d=Yo(E.length));d>R;R++)w=k?A(E[R],R):E[R],ll(g,R,w);else for(S=(b=C.call(E)).next,g=new _;!(x=S.call(b)).done;R++)w=k?ff(b,A,[x.value,R],!0):x.value,ll(g,R,w);return g.length=R,g}});var Sf=No.Array.from,wf=Sf,Ef=cs("slice"),_f=ps("slice",{ACCESSORS:!0,0:0,1:2}),Tf=au("species"),Pf=[].slice,Af=Math.max;zo({target:"Array",proto:!0,forced:!Ef||!_f},{slice:function slice(h,d){var g,x,b,S=yo(this),w=Yo(S.length),E=hc(h,w),_=hc(void 0===d?w:d,w);if(qu(S)&&("function"!=typeof(g=S.constructor)||g!==Array&&!qu(g.prototype)?vo(g)&&null===(g=g[Tf])&&(g=void 0):g=void 0,g===Array||void 0===g))return Pf.call(S,E,_);for(x=new(void 0===g?Array:g)(Af(_-E,0)),b=0;E<_;E++,b++)E in S&&ll(x,b,S[E]);return x.length=b,x}});var kf=pu("Array").slice,Of=Array.prototype,Cf=function slice_1(h){var d=h.slice;return h===Of||h instanceof Array&&d===Of.slice?kf:d},Rf=Cf;var Mf=function _arrayLikeToArray(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x};var Nf=function _unsupportedIterableToArray(h,d){var g;if(h){if("string"==typeof h)return Mf(h,d);var x=Rf(g=Object.prototype.toString.call(h)).call(g,8,-1);return"Object"===x&&h.constructor&&(x=h.constructor.name),"Map"===x||"Set"===x?wf(h):"Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x)?Mf(h,d):void 0}};var If=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.")};var Df=function _slicedToArray(h,d){return ws(h)||sf(h,d)||Nf(h,d)||If()};zo({target:"Object",stat:!0,forced:!io,sham:!io},{defineProperty:jo.f});var Vf=createCommonjsModule((function(h){var d=No.Object,g=h.exports=function defineProperty(h,g,x){return d.defineProperty(h,g,x)};d.defineProperty.sham&&(g.sham=!0)})),Lf=Vf;zo({target:"Object",stat:!0,forced:!io,sham:!io},{defineProperties:xc});var jf=createCommonjsModule((function(h){var d=No.Object,g=h.exports=function defineProperties(h,g){return d.defineProperties(h,g)};d.defineProperties.sham&&(g.sham=!0)})),$f=rs("Reflect","ownKeys")||function ownKeys(h){var d=bl.f(Vo(h)),g=Tl.f;return g?d.concat(g(h)):d};zo({target:"Object",stat:!0,sham:!io},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(h){for(var d,g,x=yo(h),b=To.f,S=$f(x),w={},E=0;S.length>E;)void 0!==(g=b(x,d=S[E++]))&&ll(w,d,g);return w}});var Ff=No.Object.getOwnPropertyDescriptors,Bf=function arrayMethodIsStrict(h,d){var g=[][h];return!!g&&no((function(){g.call(null,d||function(){throw 1},1)}))},zf=ts.forEach,Uf=Bf("forEach"),Gf=ps("forEach"),Hf=Uf&&Gf?[].forEach:function forEach(h){return zf(this,h,arguments.length>1?arguments[1]:void 0)};zo({target:"Array",proto:!0,forced:[].forEach!=Hf},{forEach:Hf});var Xf=pu("Array").forEach,Yf=Array.prototype,Wf={DOMTokenList:!0,NodeList:!0},qf=function forEach_1(h){var d=h.forEach;return h===Yf||h instanceof Array&&d===Yf.forEach||Wf.hasOwnProperty(Cc(h))?Xf:d},Qf=To.f,Kf=no((function(){Qf(1)}));zo({target:"Object",stat:!0,forced:!io||Kf,sham:!io},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(h,d){return Qf(yo(h),d)}});var Zf=createCommonjsModule((function(h){var d=No.Object,g=h.exports=function getOwnPropertyDescriptor(h,g){return d.getOwnPropertyDescriptor(h,g)};d.getOwnPropertyDescriptor.sham&&(g.sham=!0)})),Jf=Zf,th=nn.filter,eh=arrayMethodHasSpeciesSupport("filter"),rh=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!eh||!rh},{filter:function filter(h){return th(this,h,arguments.length>1?arguments[1]:void 0)}});var nh=ts.filter,ih=cs("filter"),ah=ps("filter");zo({target:"Array",proto:!0,forced:!ih||!ah},{filter:function filter(h){return nh(this,h,arguments.length>1?arguments[1]:void 0)}});var oh=pu("Array").filter,uh=Array.prototype,sh=function filter_1(h){var d=h.filter;return h===uh||h instanceof Array&&d===uh.filter?oh:d},ch=No.Object.getOwnPropertySymbols,lh=no((function(){mc(1)}));zo({target:"Object",stat:!0,forced:lh},{keys:function keys(h){return mc(Xu(h))}});var fh=No.Object.keys,hh=ra,ph=function Result(h,d){this.stopped=h,this.result=d},yh=function iterate(h,d,g){var x,b,S,w,E,_,P,A=g&&g.that,k=!(!g||!g.AS_ENTRIES),C=!(!g||!g.IS_ITERATOR),R=!(!g||!g.INTERRUPTED),M=Do(d,A,1+k+R),N=function stop(h){return x&&lf(x),new ph(!0,h)},D=function callFn(h){return k?(Vo(h),R?M(h[0],h[1],N):M(h[0],h[1])):R?M(h,N):M(h)};if(C)x=h;else{if("function"!=typeof(b=ol(h)))throw TypeError("Target is not iterable");if(yf(b)){for(S=0,w=Yo(h.length);w>S;S++)if((E=D(h[S]))&&E instanceof ph)return E;return new ph(!1)}x=b.call(h)}for(_=x.next;!(P=_.call(x)).done;){try{E=D(P.value)}catch(h){throw lf(x),h}if("object"==_typeof(E)&&E&&E instanceof ph)return E}return new ph(!1)},vh=function AggregateError(h,d){var g=this;if(!(g instanceof vh))return new vh(h,d);Lc&&(g=Lc(new Error(void 0),tc(g))),void 0!==d&&$o(g,"message",String(d));var x=[];return yh(h,x.push,{that:x}),$o(g,"errors",x),g};vh.prototype=Tc(Error.prototype,{constructor:so(5,vh),message:so(5,""),name:so(5,"AggregateError")}),zo({global:!0},{AggregateError:vh});var dh=!!ne&&fails((function(){ne.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:dh},{finally:function(h){var d=speciesConstructor(this,getBuiltIn("Promise")),g="function"==typeof h;return this.then(g?function(g){return promiseResolve(d,h()).then((function(){return g}))}:h,g?function(g){return promiseResolve(d,h()).then((function(){throw g}))}:h)}}),"function"!=typeof ne||ne.prototype.finally||ct(ne.prototype,"finally",getBuiltIn("Promise").prototype.finally);var gh=to.Promise,mh=function redefineAll(h,d,g){for(var x in d)g&&g.unsafe&&h[x]?h[x]=d[x]:jc(h,x,d[x],g);return h},xh=au("species"),bh=function setSpecies(h){var d=rs(h),g=jo.f;io&&d&&!d[xh]&&g(d,xh,{configurable:!0,get:function get(){return this}})},Sh=function anInstance(h,d,g){if(!(h instanceof d))throw TypeError("Incorrect "+(g?g+" ":"")+"invocation");return h},wh=au("species"),Eh=function speciesConstructor(h,d){var g,x=Vo(h).constructor;return void 0===x||null==(g=Vo(x)[wh])?d:Io(g)},_h=!g.setImmediate||!g.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:_h},{setImmediate:$e.set,clearImmediate:$e.clear});var Th,Ph,Ah,kh=/(iphone|ipod|ipad).*applewebkit/i.test(ns),Oh="process"==lo(to.process),Ch=to.location,Rh=to.setImmediate,Mh=to.clearImmediate,Nh=to.process,Ih=to.MessageChannel,Dh=to.Dispatch,Vh=0,Lh={},jh="onreadystatechange",$h=function run(h){if(Lh.hasOwnProperty(h)){var d=Lh[h];delete Lh[h],d()}},Fh=function runner(h){return function(){$h(h)}},Bh=function listener(h){$h(h.data)},zh=function post(h){to.postMessage(h+"",Ch.protocol+"//"+Ch.host)};Rh&&Mh||(Rh=function setImmediate(h){for(var d=[],g=1;arguments.length>g;)d.push(arguments[g++]);return Lh[++Vh]=function(){("function"==typeof h?h:Function(h)).apply(void 0,d)},Th(Vh),Vh},Mh=function clearImmediate(h){delete Lh[h]},Oh?Th=function defer(h){Nh.nextTick(Fh(h))}:Dh&&Dh.now?Th=function defer(h){Dh.now(Fh(h))}:Ih&&!kh?(Ah=(Ph=new Ih).port2,Ph.port1.onmessage=Bh,Th=Do(Ah.postMessage,Ah,1)):to.addEventListener&&"function"==typeof postMessage&&!to.importScripts&&Ch&&"file:"!==Ch.protocol&&!no(zh)?(Th=zh,to.addEventListener("message",Bh,!1)):Th=jh in wo("script")?function defer(h){bc.appendChild(wo("script")).onreadystatechange=function(){bc.removeChild(this),$h(h)}}:function defer(h){setTimeout(Fh(h),0)});var Uh,Gh,Hh,Xh,Yh,Wh,qh,Qh,Kh={set:Rh,clear:Mh},Zh=To.f,Jh=Kh.set,tp=to.MutationObserver||to.WebKitMutationObserver,ep=to.document,rp=to.process,np=to.Promise,ip=Zh(to,"queueMicrotask"),ap=ip&&ip.value;ap||(Uh=function flush(){var h,d;for(Oh&&(h=rp.domain)&&h.exit();Gh;){d=Gh.fn,Gh=Gh.next;try{d()}catch(h){throw Gh?Xh():Hh=void 0,h}}Hh=void 0,h&&h.enter()},!kh&&!Oh&&tp&&ep?(Yh=!0,Wh=ep.createTextNode(""),new tp(Uh).observe(Wh,{characterData:!0}),Xh=function notify(){Wh.data=Yh=!Yh}):np&&np.resolve?(qh=np.resolve(void 0),Qh=qh.then,Xh=function notify(){Qh.call(qh,Uh)}):Xh=Oh?function notify(){rp.nextTick(Uh)}:function notify(){Jh.call(to,Uh)});var op,up,sp,cp=ap||function(h){var d={fn:h,next:void 0};Hh&&(Hh.next=d),Gh||(Gh=d,Xh()),Hh=d},lp=function PromiseCapability(h){var d,g;this.promise=new h((function(h,x){if(void 0!==d||void 0!==g)throw TypeError("Bad Promise constructor");d=h,g=x})),this.resolve=Io(d),this.reject=Io(g)},fp={f:function f(h){return new lp(h)}},hp=function promiseResolve(h,d){if(Vo(h),vo(d)&&d.constructor===h)return d;var g=fp.f(h);return(0,g.resolve)(d),g.promise},pp=function perform(h){try{return{error:!1,value:h()}}catch(h){return{error:!0,value:h}}},yp=Kh.set,vp=au("species"),dp="Promise",gp=Qs.get,mp=Qs.set,xp=Qs.getterFor(dp),bp=gh,Sp=to.TypeError,wp=to.document,Ep=to.process,_p=(rs("fetch"),fp.f),Tp=_p,Pp=!!(wp&&wp.createEvent&&to.dispatchEvent),Ap="function"==typeof PromiseRejectionEvent,kp="unhandledrejection",Op=Mo(dp,(function(){if(!(Ds(bp)!==String(bp))){if(66===us)return!0;if(!Oh&&!Ap)return!0}if(!bp.prototype.finally)return!0;if(us>=51&&/native code/.test(bp))return!1;var h=bp.resolve(1),d=function FakePromise(h){h((function(){}),(function(){}))};return(h.constructor={})[vp]=d,!(h.then((function(){}))instanceof d)})),Cp=Op||!xf((function(h){bp.all(h).catch((function(){}))})),Rp=function isThenable(h){var d;return!(!vo(h)||"function"!=typeof(d=h.then))&&d},Mp=function notify(h,d){if(!h.notified){h.notified=!0;var g=h.reactions;cp((function(){for(var x=h.value,b=1==h.state,S=0;g.length>S;){var w,E,_,P=g[S++],A=b?P.ok:P.fail,k=P.resolve,C=P.reject,R=P.domain;try{A?(b||(2===h.rejection&&Vp(h),h.rejection=1),!0===A?w=x:(R&&R.enter(),w=A(x),R&&(R.exit(),_=!0)),w===P.promise?C(Sp("Promise-chain cycle")):(E=Rp(w))?E.call(w,k,C):k(w)):C(x)}catch(h){R&&!_&&R.exit(),C(h)}}h.reactions=[],h.notified=!1,d&&!h.rejection&&Ip(h)}))}},Np=function dispatchEvent(h,d,g){var x,b;Pp?((x=wp.createEvent("Event")).promise=d,x.reason=g,x.initEvent(h,!1,!0),to.dispatchEvent(x)):x={promise:d,reason:g},!Ap&&(b=to["on"+h])?b(x):h===kp&&function hostReportErrors(h,d){var g=to.console;g&&g.error&&(1===arguments.length?g.error(h):g.error(h,d))}("Unhandled promise rejection",g)},Ip=function onUnhandled(h){yp.call(to,(function(){var d,g=h.facade,x=h.value;if(Dp(h)&&(d=pp((function(){Oh?Ep.emit("unhandledRejection",x,g):Np(kp,g,x)})),h.rejection=Oh||Dp(h)?2:1,d.error))throw d.value}))},Dp=function isUnhandled(h){return 1!==h.rejection&&!h.parent},Vp=function onHandleUnhandled(h){yp.call(to,(function(){var d=h.facade;Oh?Ep.emit("rejectionHandled",d):Np("rejectionhandled",d,h.value)}))},Lp=function bind(h,d,g){return function(x){h(d,x,g)}},jp=function internalReject(h,d,g){h.done||(h.done=!0,g&&(h=g),h.value=d,h.state=2,Mp(h,!0))},$p=function internalResolve(h,d,g){if(!h.done){h.done=!0,g&&(h=g);try{if(h.facade===d)throw Sp("Promise can't be resolved itself");var x=Rp(d);x?cp((function(){var g={done:!1};try{x.call(d,Lp(internalResolve,g,h),Lp(jp,g,h))}catch(d){jp(g,d,h)}})):(h.value=d,h.state=1,Mp(h,!1))}catch(d){jp({done:!1},d,h)}}};Op&&(bp=function Promise(h){Sh(this,bp,dp),Io(h),op.call(this);var d=gp(this);try{h(Lp($p,d),Lp(jp,d))}catch(h){jp(d,h)}},(op=function Promise(h){mp(this,{type:dp,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=mh(bp.prototype,{then:function then(h,d){var g=xp(this),x=_p(Eh(this,bp));return x.ok="function"!=typeof h||h,x.fail="function"==typeof d&&d,x.domain=Oh?Ep.domain:void 0,g.parent=!0,g.reactions.push(x),0!=g.state&&Mp(g,!1),x.promise},catch:function _catch(h){return this.then(void 0,h)}}),up=function OwnPromiseCapability(){var h=new op,d=gp(h);this.promise=h,this.resolve=Lp($p,d),this.reject=Lp(jp,d)},fp.f=_p=function newPromiseCapability(h){return h===bp||h===sp?new up(h):Tp(h)}),zo({global:!0,wrap:!0,forced:Op},{Promise:bp}),Ic(bp,dp,!1,!0),bh(dp),sp=rs(dp),zo({target:dp,stat:!0,forced:Op},{reject:function reject(h){var d=_p(this);return d.reject.call(void 0,h),d.promise}}),zo({target:dp,stat:!0,forced:!0},{resolve:function resolve(h){return hp(this===sp?bp:this,h)}}),zo({target:dp,stat:!0,forced:Cp},{all:function all(h){var d=this,g=_p(d),x=g.resolve,b=g.reject,S=pp((function(){var g=Io(d.resolve),S=[],w=0,E=1;yh(h,(function(h){var _=w++,P=!1;S.push(void 0),E++,g.call(d,h).then((function(h){P||(P=!0,S[_]=h,--E||x(S))}),b)})),--E||x(S)}));return S.error&&b(S.value),g.promise},race:function race(h){var d=this,g=_p(d),x=g.reject,b=pp((function(){var b=Io(d.resolve);yh(h,(function(h){b.call(d,h).then(g.resolve,x)}))}));return b.error&&x(b.value),g.promise}}),zo({target:"Promise",stat:!0},{allSettled:function allSettled(h){var d=this,g=fp.f(d),x=g.resolve,b=g.reject,S=pp((function(){var g=Io(d.resolve),b=[],S=0,w=1;yh(h,(function(h){var E=S++,_=!1;b.push(void 0),w++,g.call(d,h).then((function(h){_||(_=!0,b[E]={status:"fulfilled",value:h},--w||x(b))}),(function(h){_||(_=!0,b[E]={status:"rejected",reason:h},--w||x(b))}))})),--w||x(b)}));return S.error&&b(S.value),g.promise}});var Fp="No one promise resolved";zo({target:"Promise",stat:!0},{any:function any(h){var d=this,g=fp.f(d),x=g.resolve,b=g.reject,S=pp((function(){var g=Io(d.resolve),S=[],w=0,E=1,_=!1;yh(h,(function(h){var P=w++,A=!1;S.push(void 0),E++,g.call(d,h).then((function(h){A||_||(_=!0,x(h))}),(function(h){A||_||(A=!0,S[P]=h,--E||b(new(rs("AggregateError"))(S,Fp)))}))})),--E||b(new(rs("AggregateError"))(S,Fp))}));return S.error&&b(S.value),g.promise}});var Bp=!!gh&&no((function(){gh.prototype.finally.call({then:function then(){}},(function(){}))}));zo({target:"Promise",proto:!0,real:!0,forced:Bp},{finally:function _finally(h){var d=Eh(this,rs("Promise")),g="function"==typeof h;return this.then(g?function(g){return hp(d,h()).then((function(){return g}))}:h,g?function(g){return hp(d,h()).then((function(){throw g}))}:h)}});var zp=No.Promise;zo({target:"Promise",stat:!0},{try:function _try(h){var d=fp.f(this),g=pp(h);return(g.error?d.reject:d.resolve)(g.value),d.promise}});var Up=zp;function asyncGeneratorStep$1(h,d,g,x,b,S,w){try{var E=h[S](w),_=E.value}catch(h){return void g(h)}E.done?d(_):Up.resolve(_).then(x,b)}var Gp=function _asyncToGenerator$1(h){return function(){var d=this,g=arguments;return new Up((function(x,b){var S=h.apply(d,g);function _next(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"next",h)}function _throw(h){asyncGeneratorStep$1(S,x,b,_next,_throw,"throw",h)}_next(void 0)}))}},Hp=Vf;var Xp=function _defineProperty(h,d,g){return d in h?Hp(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h};var Yp=function _classCallCheck(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")};function _defineProperties(h,d){for(var g=0;g<d.length;g++){var x=d[g];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Hp(h,x.key,x)}}var Wp=function _createClass(h,d,g){return d&&_defineProperties(h.prototype,d),g&&_defineProperties(h,g),h},qp=pu("Array").concat,Qp=Array.prototype,Kp=function concat_1(h){var d=h.concat;return h===Qp||h instanceof Array&&d===Qp.concat?qp:d},createMethod$8=function(h){return function(d,g,x,b){aFunction$1(g);var S=toObject(d),w=P(S),E=toLength(S.length),_=h?E-1:0,A=h?-1:1;if(x<2)for(;;){if(_ in w){b=w[_],_+=A;break}if(_+=A,h?_<0:E<=_)throw TypeError("Reduce of empty array with no initial value")}for(;h?_>=0:E>_;_+=A)_ in w&&(b=g(b,w[_],_,S));return b}},Zp={left:createMethod$8(!1),right:createMethod$8(!0)}.left,Jp=arrayMethodIsStrict("reduce"),ty=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!Jp||!ty||!Se&&Bt>79&&Bt<83},{reduce:function reduce(h){return Zp(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var ey=function createMethod(h){return function(d,g,x,b){Io(g);var S=Xu(d),w=ho(S),E=Yo(S.length),_=h?E-1:0,P=h?-1:1;if(x<2)for(;;){if(_ in w){b=w[_],_+=P;break}if(_+=P,h?_<0:E<=_)throw TypeError("Reduce of empty array with no initial value")}for(;h?_>=0:E>_;_+=P)_ in w&&(b=g(b,w[_],_,S));return b}},ry={left:ey(!1),right:ey(!0)}.left,ny=Bf("reduce"),iy=ps("reduce",{1:0});zo({target:"Array",proto:!0,forced:!ny||!iy||!Oh&&us>79&&us<83},{reduce:function reduce(h){return ry(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}});var ay=pu("Array").reduce,oy=Array.prototype,uy=function reduce_1(h){var d=h.reduce;return h===oy||h instanceof Array&&d===oy.reduce?ay:d};zo({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var sy=No.Date.now,cy=nn.every,ly=arrayMethodIsStrict("every"),fy=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!ly||!fy},{every:function every(h){return cy(this,h,arguments.length>1?arguments[1]:void 0)}});var hy=ts.every,py=Bf("every"),yy=ps("every");zo({target:"Array",proto:!0,forced:!py||!yy},{every:function every(h){return hy(this,h,arguments.length>1?arguments[1]:void 0)}});var vy=pu("Array").every,dy=Array.prototype,gy=function every_1(h){var d=h.every;return h===dy||h instanceof Array&&d===dy.every?vy:d},my=zp,xy=[].slice,by={},Sy=function construct(h,d,g){if(!(d in by)){for(var x=[],b=0;b<d;b++)x[b]="a["+b+"]";by[d]=Function("C,a","return new C("+x.join(",")+")")}return by[d](h,g)},wy=Function.bind||function bind(h){var d=Io(this),g=xy.call(arguments,1),x=function bound(){var b=g.concat(xy.call(arguments));return this instanceof x?Sy(d,b.length,b):d.apply(h,b)};return vo(d.prototype)&&(x.prototype=d.prototype),x};zo({target:"Function",proto:!0},{bind:wy});var Ey=pu("Function").bind,_y=Function.prototype,Ty=function bind_1(h){var d=h.bind;return h===_y||h instanceof Function&&d===_y.bind?Ey:d};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var Py=createCommonjsModule((function(h){(function(){var d,g,x,b,S,w;"undefined"!=typeof performance&&null!==performance&&performance.now?h.exports=function(){return performance.now()}:null!=ba&&ba.hrtime?(h.exports=function(){return(d()-S)/1e6},g=ba.hrtime,b=(d=function getNanoSeconds(){var h;return 1e9*(h=g())[0]+h[1]})(),w=1e9*ba.uptime(),S=b-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)})),Ay="undefined"==typeof window?d:window,ky=["moz","webkit"],Oy="AnimationFrame",Cy=Ay["request"+Oy],Ry=Ay["cancel"+Oy]||Ay["cancelRequest"+Oy],My=0;!Cy&&My<ky.length;My++)Cy=Ay[ky[My]+"Request"+Oy],Ry=Ay[ky[My]+"Cancel"+Oy]||Ay[ky[My]+"CancelRequest"+Oy];if(!Cy||!Ry){var Ny=0,Iy=0,Dy=[];Cy=function raf(h){if(0===Dy.length){var d=Py(),g=Math.max(0,16.666666666666668-(d-Ny));Ny=g+d,setTimeout((function(){var h=Dy.slice(0);Dy.length=0;for(var d=0;d<h.length;d++)if(!h[d].cancelled)try{h[d].callback(Ny)}catch(h){setTimeout((function(){throw h}),0)}}),Math.round(g))}return Dy.push({handle:++Iy,callback:h,cancelled:!1}),Iy},Ry=function caf(h){for(var d=0;d<Dy.length;d++)Dy[d].handle===h&&(Dy[d].cancelled=!0)}}var Vy=function raf_1(h){return Cy.call(Ay,h)};Vy.cancel=function cancel(){Ry.apply(Ay,arguments)},Vy.polyfill=function polyfill(h){h||(h=Ay),h.requestAnimationFrame=Cy,h.cancelAnimationFrame=Ry};var Ly=ju.trim;zo({target:"String",proto:!0,forced:function stringTrimForced(h){return no((function(){return!!Nu[h]()||"
"!="
"[h]()||Nu[h].name!==h}))}("trim")},{trim:function trim(){return Ly(this)}});var jy=pu("String").trim,$y=String.prototype,Fy=function trim_1(h){var d=h.trim;return"string"==typeof h||h===$y||h instanceof String&&d===$y.trim?jy:d},By=Ur.trim,zy=g.parseInt,Uy=/^[+-]?0[Xx]/,Gy=8!==zy($r+"08")||22!==zy($r+"0x16")?function parseInt(h,d){var g=By(String(h));return zy(g,d>>>0||(Uy.test(g)?16:10))}:zy;_export({global:!0,forced:parseInt!=Gy},{parseInt:Gy});var Hy=function rgbcolor(h){this.ok=!1,this.alpha=1,"#"==h.charAt(0)&&(h=h.substr(1,6)),h=(h=h.replace(/ /g,"")).toLowerCase();var d={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=d[h]||h;for(var g=[{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)]}}],x=0;x<g.length;x++){var b=g[x].re,S=g[x].process,w=b.exec(h);if(w){var E=S(w);this.r=E[0],this.g=E[1],this.b=E[2],E.length>3&&(this.alpha=E[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),d=this.g.toString(16),g=this.b.toString(16);return 1==h.length&&(h="0"+h),1==d.length&&(d="0"+d),1==g.length&&(g="0"+g),"#"+h+d+g},this.getHelpXML=function(){for(var h=new Array,x=0;x<g.length;x++)for(var b=g[x].example,S=0;S<b.length;S++)h[h.length]=b[S];for(var w in d)h[h.length]=w;var E=document.createElement("ul");E.setAttribute("id","rgbcolor-examples");for(x=0;x<h.length;x++)try{var _=document.createElement("li"),P=new RGBColor(h[x]),A=document.createElement("div");A.style.cssText="margin: 3px; border: 1px solid black; background:"+P.toHex()+"; color:"+P.toHex(),A.appendChild(document.createTextNode("test"));var k=document.createTextNode(" "+h[x]+" -> "+P.toRGB()+" -> "+P.toHex());_.appendChild(A),_.appendChild(k),E.appendChild(_)}catch(h){}return E}},Xy=rs("Reflect","construct"),Yy=no((function(){function F(){}return!(Xy((function(){}),[],F)instanceof F)})),Wy=!no((function(){Xy((function(){}))})),qy=Yy||Wy;zo({target:"Reflect",stat:!0,forced:qy,sham:qy},{construct:function construct(h,d){Io(h),Vo(d);var g=arguments.length<3?h:Io(arguments[2]);if(Wy&&!Yy)return Xy(h,d,g);if(h==g){switch(d.length){case 0:return new h;case 1:return new h(d[0]);case 2:return new h(d[0],d[1]);case 3:return new h(d[0],d[1],d[2]);case 4:return new h(d[0],d[1],d[2],d[3])}var x=[null];return x.push.apply(x,d),new(wy.apply(h,x))}var b=g.prototype,S=Tc(vo(b)?b:Object.prototype),w=Function.apply.call(h,S,d);return vo(w)?w:S}});var Qy=No.Reflect.construct;zo({target:"Object",stat:!0,sham:!io},{create:Tc});var Ky=No.Object,Zy=function create(h,d){return Ky.create(h,d)};zo({target:"Object",stat:!0},{setPrototypeOf:Lc});var Jy=No.Object.setPrototypeOf,tv=createCommonjsModule((function(h){function _setPrototypeOf(d,g){return h.exports=_setPrototypeOf=Jy||function _setPrototypeOf(h,d){return h.__proto__=d,h},_setPrototypeOf(d,g)}h.exports=_setPrototypeOf}));var ev=function _inherits(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function");h.prototype=Zy(d&&d.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),d&&tv(h,d)},rv=Pl.f("iterator"),nv=createCommonjsModule((function(h){function _typeof(d){return h.exports=_typeof="function"==typeof uf&&"symbol"==typeof rv?function _typeof(h){return typeof h}:function _typeof(h){return h&&"function"==typeof uf&&h.constructor===uf&&h!==uf.prototype?"symbol":typeof h},_typeof(d)}h.exports=_typeof}));var iv=function _assertThisInitialized(h){if(void 0===h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h};var av=function _possibleConstructorReturn(h,d){return!d||"object"!==nv(d)&&"function"!=typeof d?iv(h):d},ov=no((function(){tc(1)}));zo({target:"Object",stat:!0,forced:ov,sham:!Ks},{getPrototypeOf:function getPrototypeOf(h){return tc(Xu(h))}});var uv=No.Object.getPrototypeOf,sv=createCommonjsModule((function(h){function _getPrototypeOf(d){return h.exports=_getPrototypeOf=Jy?uv:function _getPrototypeOf(h){return h.__proto__||uv(h)},_getPrototypeOf(d)}h.exports=_getPrototypeOf}));var cv=function _arrayWithoutHoles(h){if(Ss(h))return Mf(h)};var lv=function _iterableToArray(h){if(void 0!==uf&&cl(Object(h)))return wf(h)};var fv=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 hv=function _toConsumableArray(h){return cv(h)||lv(h)||Nf(h)||fv()},pv=nn.some,yv=arrayMethodIsStrict("some"),vv=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!yv||!vv},{some:function some(h){return pv(this,h,arguments.length>1?arguments[1]:void 0)}});var dv=ts.some,gv=Bf("some"),mv=ps("some");zo({target:"Array",proto:!0,forced:!gv||!mv},{some:function some(h){return dv(this,h,arguments.length>1?arguments[1]:void 0)}});var xv=pu("Array").some,bv=Array.prototype,Sv=function some_1(h){var d=h.some;return h===bv||h instanceof Array&&d===bv.some?xv:d},wv=dt.includes,Ev=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!Ev},{includes:function includes(h){return wv(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 _v=yc.includes,Tv=ps("indexOf",{ACCESSORS:!0,1:0});zo({target:"Array",proto:!0,forced:!Tv},{includes:function includes(h){return _v(this,h,arguments.length>1?arguments[1]:void 0)}});var Pv=pu("Array").includes;zo({target:"String",proto:!0,forced:!cu("includes")},{includes:function includes(h){return!!~String(po(this)).indexOf(uu(h),arguments.length>1?arguments[1]:void 0)}});var Av=pu("String").includes,kv=Array.prototype,Ov=String.prototype,Cv=function includes$2(h){var d=h.includes;return h===kv||h instanceof Array&&d===kv.includes?Pv:"string"==typeof h||h===Ov||h instanceof String&&d===Ov.includes?Av:d},Rv=Sf,Mv=[].reverse,Nv=[1,2];zo({target:"Array",proto:!0,forced:String(Nv)===String(Nv.reverse())},{reverse:function reverse(){return qu(this)&&(this.length=this.length),Mv.call(this)}});var Iv=pu("Array").reverse,Dv=Array.prototype,Vv=function reverse_1(h){var d=h.reverse;return h===Dv||h instanceof Array&&d===Dv.reverse?Iv:d},Lv=yc.indexOf,jv=[].indexOf,$v=!!jv&&1/[1].indexOf(1,-0)<0,Fv=Bf("indexOf"),Bv=ps("indexOf",{ACCESSORS:!0,1:0});zo({target:"Array",proto:!0,forced:$v||!Fv||!Bv},{indexOf:function indexOf(h){return $v?jv.apply(this,arguments)||0:Lv(this,h,arguments.length>1?arguments[1]:void 0)}});var zv=pu("Array").indexOf,Uv=Array.prototype,Gv=function indexOf_1(h){var d=h.indexOf;return h===Uv||h instanceof Array&&d===Uv.indexOf?zv:d},Hv=Zf;zo({target:"Reflect",stat:!0},{get:function get$2(h,d){var g,x,b=arguments.length<3?h:arguments[2];return Vo(h)===b?h[d]:(g=To.f(h,d))?xo(g,"value")?g.value:void 0===g.get?void 0:g.get.call(b):vo(x=tc(h))?get$2(x,d,b):void 0}});var Xv=No.Reflect.get;var Yv=function _superPropBase(h,d){for(;!Object.prototype.hasOwnProperty.call(h,d)&&null!==(h=sv(h)););return h},Wv=createCommonjsModule((function(h){function _get(d,g,x){return"undefined"!=typeof Reflect&&Xv?h.exports=_get=Xv:h.exports=_get=function _get(h,d,g){var x=Yv(h,d);if(x){var b=Hv(x,d);return b.get?b.get.call(g):b.value}},_get(d,g,x||d)}h.exports=_get}));zo({target:"Array",proto:!0},{fill:function fill(h){for(var d=Xu(this),g=Yo(d.length),x=arguments.length,b=hc(x>1?arguments[1]:void 0,g),S=x>2?arguments[2]:void 0,w=void 0===S?g:hc(S,g);w>b;)d[b++]=h;return d}});var qv=pu("Array").fill,Qv=Array.prototype,Kv=function fill_1(h){var d=h.fill;return h===Qv||h instanceof Array&&d===Qv.fill?qv:d},Zv=function t(h,d){return(Zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var g in d)d.hasOwnProperty(g)&&(h[g]=d[g])})(h,d)};function r(h,d){function i(){this.constructor=h}Zv(h,d),h.prototype=null===d?Object.create(d):(i.prototype=d.prototype,new i)}function i$1(h,d){var g=h[0],x=h[1];return[g*Math.cos(d)-x*Math.sin(d),g*Math.sin(d)+x*Math.cos(d)]}function a(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];for(var g=0;g<h.length;g++)if("number"!=typeof h[g])throw new Error("assertNumbers arguments["+g+"] is not a number. "+_typeof(h[g])+" == typeof "+h[g]);return!0}var Jv=Math.PI;function o(h,d,g){h.lArcFlag=0===h.lArcFlag?0:1,h.sweepFlag=0===h.sweepFlag?0:1;var x=h.rX,b=h.rY,S=h.x,w=h.y;x=Math.abs(h.rX),b=Math.abs(h.rY);var E=i$1([(d-S)/2,(g-w)/2],-h.xRot/180*Jv),_=E[0],P=E[1],A=Math.pow(_,2)/Math.pow(x,2)+Math.pow(P,2)/Math.pow(b,2);1<A&&(x*=Math.sqrt(A),b*=Math.sqrt(A)),h.rX=x,h.rY=b;var k=Math.pow(x,2)*Math.pow(P,2)+Math.pow(b,2)*Math.pow(_,2),C=(h.lArcFlag!==h.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(x,2)*Math.pow(b,2)-k)/k)),R=x*P/b*C,M=-b*_/x*C,N=i$1([R,M],h.xRot/180*Jv);h.cX=N[0]+(d+S)/2,h.cY=N[1]+(g+w)/2,h.phi1=Math.atan2((P-M)/b,(_-R)/x),h.phi2=Math.atan2((-P-M)/b,(-_-R)/x),0===h.sweepFlag&&h.phi2>h.phi1&&(h.phi2-=2*Jv),1===h.sweepFlag&&h.phi2<h.phi1&&(h.phi2+=2*Jv),h.phi1*=180/Jv,h.phi2*=180/Jv}function s(h,d,g){a(h,d,g);var x=h*h+d*d-g*g;if(0>x)return[];if(0===x)return[[h*g/(h*h+d*d),d*g/(h*h+d*d)]];var b=Math.sqrt(x);return[[(h*g+d*b)/(h*h+d*d),(d*g-h*b)/(h*h+d*d)],[(h*g-d*b)/(h*h+d*d),(d*g+h*b)/(h*h+d*d)]]}var td,ed=Math.PI/180;function c(h,d,g){return(1-g)*h+g*d}function y(h,d,g,x){return h+Math.cos(x/180*Jv)*d+Math.sin(x/180*Jv)*g}function p(h,d,g,x){var b=d-h,S=g-d,w=3*b+3*(x-g)-6*S,E=6*(S-b),_=3*b;return Math.abs(w)<1e-6?[-_/E]:function(h,d,g){void 0===g&&(g=1e-6);var x=h*h/4-d;if(x<-g)return[];if(x<=g)return[-h/2];var b=Math.sqrt(x);return[-h/2-b,-h/2+b]}(E/w,_/w,1e-6)}function m(h,d,g,x,b){var S=1-b;return h*(S*S*S)+d*(3*S*S*b)+g*(3*S*b*b)+x*(b*b*b)}!function(h){function r(){return u((function(h,d,g){return h.relative&&(void 0!==h.x1&&(h.x1+=d),void 0!==h.y1&&(h.y1+=g),void 0!==h.x2&&(h.x2+=d),void 0!==h.y2&&(h.y2+=g),void 0!==h.x&&(h.x+=d),void 0!==h.y&&(h.y+=g),h.relative=!1),h}))}function e(){var h=NaN,d=NaN,g=NaN,x=NaN;return u((function(b,S,w){return b.type&ud.SMOOTH_CURVE_TO&&(b.type=ud.CURVE_TO,h=isNaN(h)?S:h,d=isNaN(d)?w:d,b.x1=b.relative?S-h:2*S-h,b.y1=b.relative?w-d:2*w-d),b.type&ud.CURVE_TO?(h=b.relative?S+b.x2:b.x2,d=b.relative?w+b.y2:b.y2):(h=NaN,d=NaN),b.type&ud.SMOOTH_QUAD_TO&&(b.type=ud.QUAD_TO,g=isNaN(g)?S:g,x=isNaN(x)?w:x,b.x1=b.relative?S-g:2*S-g,b.y1=b.relative?w-x:2*w-x),b.type&ud.QUAD_TO?(g=b.relative?S+b.x1:b.x1,x=b.relative?w+b.y1:b.y1):(g=NaN,x=NaN),b}))}function n(){var h=NaN,d=NaN;return u((function(g,x,b){if(g.type&ud.SMOOTH_QUAD_TO&&(g.type=ud.QUAD_TO,h=isNaN(h)?x:h,d=isNaN(d)?b:d,g.x1=g.relative?x-h:2*x-h,g.y1=g.relative?b-d:2*b-d),g.type&ud.QUAD_TO){h=g.relative?x+g.x1:g.x1,d=g.relative?b+g.y1:g.y1;var S=g.x1,w=g.y1;g.type=ud.CURVE_TO,g.x1=((g.relative?0:x)+2*S)/3,g.y1=((g.relative?0:b)+2*w)/3,g.x2=(g.x+2*S)/3,g.y2=(g.y+2*w)/3}else h=NaN,d=NaN;return g}))}function u(h){var d=0,g=0,x=NaN,b=NaN;return function(S){if(isNaN(x)&&!(S.type&ud.MOVE_TO))throw new Error("path must start with moveto");var w=h(S,d,g,x,b);return S.type&ud.CLOSE_PATH&&(d=x,g=b),void 0!==S.x&&(d=S.relative?d+S.x:S.x),void 0!==S.y&&(g=S.relative?g+S.y:S.y),S.type&ud.MOVE_TO&&(x=d,b=g),w}}function O(h,d,g,x,b,S){return a(h,d,g,x,b,S),u((function(w,E,_,P){var A=w.x1,k=w.x2,C=w.relative&&!isNaN(P),R=void 0!==w.x?w.x:C?0:E,M=void 0!==w.y?w.y:C?0:_;function T(h){return h*h}w.type&ud.HORIZ_LINE_TO&&0!==d&&(w.type=ud.LINE_TO,w.y=w.relative?0:_),w.type&ud.VERT_LINE_TO&&0!==g&&(w.type=ud.LINE_TO,w.x=w.relative?0:E),void 0!==w.x&&(w.x=w.x*h+M*g+(C?0:b)),void 0!==w.y&&(w.y=R*d+w.y*x+(C?0:S)),void 0!==w.x1&&(w.x1=w.x1*h+w.y1*g+(C?0:b)),void 0!==w.y1&&(w.y1=A*d+w.y1*x+(C?0:S)),void 0!==w.x2&&(w.x2=w.x2*h+w.y2*g+(C?0:b)),void 0!==w.y2&&(w.y2=k*d+w.y2*x+(C?0:S));var N=h*x-d*g;if(void 0!==w.xRot&&(1!==h||0!==d||0!==g||1!==x))if(0===N)delete w.rX,delete w.rY,delete w.xRot,delete w.lArcFlag,delete w.sweepFlag,w.type=ud.LINE_TO;else{var D=w.xRot*Math.PI/180,V=Math.sin(D),L=Math.cos(D),j=1/T(w.rX),$=1/T(w.rY),B=T(L)*j+T(V)*$,z=2*V*L*(j-$),U=T(V)*j+T(L)*$,G=B*x*x-z*d*x+U*d*d,X=z*(h*x+d*g)-2*(B*g*x+U*h*d),Y=B*g*g-z*h*g+U*h*h,W=(Math.atan2(X,G-Y)+Math.PI)%Math.PI/2,q=Math.sin(W),Q=Math.cos(W);w.rX=Math.abs(N)/Math.sqrt(G*T(Q)+X*q*Q+Y*T(q)),w.rY=Math.abs(N)/Math.sqrt(G*T(q)-X*q*Q+Y*T(Q)),w.xRot=180*W/Math.PI}return void 0!==w.sweepFlag&&0>N&&(w.sweepFlag=+!w.sweepFlag),w}))}h.ROUND=function(h){function r(d){return Math.round(d*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,d,g){return h.relative||(void 0!==h.x1&&(h.x1-=d),void 0!==h.y1&&(h.y1-=g),void 0!==h.x2&&(h.x2-=d),void 0!==h.y2&&(h.y2-=g),void 0!==h.x&&(h.x-=d),void 0!==h.y&&(h.y-=g),h.relative=!0),h}))},h.NORMALIZE_HVZ=function(h,d,g){return void 0===h&&(h=!0),void 0===d&&(d=!0),void 0===g&&(g=!0),u((function(x,b,S,w,E){if(isNaN(w)&&!(x.type&ud.MOVE_TO))throw new Error("path must start with moveto");return d&&x.type&ud.HORIZ_LINE_TO&&(x.type=ud.LINE_TO,x.y=x.relative?0:S),g&&x.type&ud.VERT_LINE_TO&&(x.type=ud.LINE_TO,x.x=x.relative?0:b),h&&x.type&ud.CLOSE_PATH&&(x.type=ud.LINE_TO,x.x=x.relative?w-b:w,x.y=x.relative?E-S:E),x.type&ud.ARC&&(0===x.rX||0===x.rY)&&(x.type=ud.LINE_TO,delete x.rX,delete x.rY,delete x.xRot,delete x.lArcFlag,delete x.sweepFlag),x}))},h.NORMALIZE_ST=e,h.QT_TO_C=n,h.INFO=u,h.SANITIZE=function(h){void 0===h&&(h=0),a(h);var d=NaN,g=NaN,x=NaN,b=NaN;return u((function(S,w,E,_,P){var A=Math.abs,k=!1,C=0,R=0;if(S.type&ud.SMOOTH_CURVE_TO&&(C=isNaN(d)?0:w-d,R=isNaN(g)?0:E-g),S.type&(ud.CURVE_TO|ud.SMOOTH_CURVE_TO)?(d=S.relative?w+S.x2:S.x2,g=S.relative?E+S.y2:S.y2):(d=NaN,g=NaN),S.type&ud.SMOOTH_QUAD_TO?(x=isNaN(x)?w:2*w-x,b=isNaN(b)?E:2*E-b):S.type&ud.QUAD_TO?(x=S.relative?w+S.x1:S.x1,b=S.relative?E+S.y1:S.y2):(x=NaN,b=NaN),S.type&ud.LINE_COMMANDS||S.type&ud.ARC&&(0===S.rX||0===S.rY||!S.lArcFlag)||S.type&ud.CURVE_TO||S.type&ud.SMOOTH_CURVE_TO||S.type&ud.QUAD_TO||S.type&ud.SMOOTH_QUAD_TO){var M=void 0===S.x?0:S.relative?S.x:S.x-w,N=void 0===S.y?0:S.relative?S.y:S.y-E;C=isNaN(x)?void 0===S.x1?C:S.relative?S.x:S.x1-w:x-w,R=isNaN(b)?void 0===S.y1?R:S.relative?S.y:S.y1-E:b-E;var D=void 0===S.x2?0:S.relative?S.x:S.x2-w,V=void 0===S.y2?0:S.relative?S.y:S.y2-E;A(M)<=h&&A(N)<=h&&A(C)<=h&&A(R)<=h&&A(D)<=h&&A(V)<=h&&(k=!0)}return S.type&ud.CLOSE_PATH&&A(w-_)<=h&&A(E-P)<=h&&(k=!0),k?[]:S}))},h.MATRIX=O,h.ROTATE=function(h,d,g){void 0===d&&(d=0),void 0===g&&(g=0),a(h,d,g);var x=Math.sin(h),b=Math.cos(h);return O(b,x,-x,b,d-d*b+g*x,g-d*x-g*b)},h.TRANSLATE=function(h,d){return void 0===d&&(d=0),a(h,d),O(1,0,0,1,h,d)},h.SCALE=function(h,d){return void 0===d&&(d=h),a(h,d),O(h,0,0,d,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,d,g){return ud.ARC===h.type?function(h,d,g){var x,b,S,w;h.cX||o(h,d,g);for(var E=Math.min(h.phi1,h.phi2),_=Math.max(h.phi1,h.phi2)-E,P=Math.ceil(_/90),A=new Array(P),k=d,C=g,R=0;R<P;R++){var M=c(h.phi1,h.phi2,R/P),N=c(h.phi1,h.phi2,(R+1)/P),D=N-M,V=4/3*Math.tan(D*ed/4),L=[Math.cos(M*ed)-V*Math.sin(M*ed),Math.sin(M*ed)+V*Math.cos(M*ed)],j=L[0],$=L[1],B=[Math.cos(N*ed),Math.sin(N*ed)],z=B[0],U=B[1],G=[z+V*Math.sin(N*ed),U-V*Math.cos(N*ed)],X=G[0],Y=G[1];A[R]={relative:h.relative,type:ud.CURVE_TO};var W=function H(d,g){var x=i$1([d*h.rX,g*h.rY],h.xRot),b=x[0],S=x[1];return[h.cX+b,h.cY+S]};x=W(j,$),A[R].x1=x[0],A[R].y1=x[1],b=W(X,Y),A[R].x2=b[0],A[R].y2=b[1],S=W(z,U),A[R].x=S[0],A[R].y=S[1],h.relative&&(A[R].x1-=k,A[R].y1-=C,A[R].x2-=k,A[R].y2-=C,A[R].x-=k,A[R].y-=C),k=(w=[A[R].x,A[R].y])[0],C=w[1]}return A}(h,h.relative?0:d,h.relative?0:g):h}))},h.ANNOTATE_ARCS=function(){return u((function(h,d,g){return h.relative&&(d=0,g=0),ud.ARC===h.type&&o(h,d,g),h}))},h.CLONE=function T(){return function(h){var d={};for(var g in h)d[g]=h[g];return d}},h.CALCULATE_BOUNDS=function(){var h=r(),d=n(),g=e(),x=u((function(b,S,w){var E=g(d(h(function t(h){var d={};for(var g in h)d[g]=h[g];return d}(b))));function O(h){h>x.maxX&&(x.maxX=h),h<x.minX&&(x.minX=h)}function T(h){h>x.maxY&&(x.maxY=h),h<x.minY&&(x.minY=h)}if(E.type&ud.DRAWING_COMMANDS&&(O(S),T(w)),E.type&ud.HORIZ_LINE_TO&&O(E.x),E.type&ud.VERT_LINE_TO&&T(E.y),E.type&ud.LINE_TO&&(O(E.x),T(E.y)),E.type&ud.CURVE_TO){O(E.x),T(E.y);for(var _=0,P=p(S,E.x1,E.x2,E.x);_<P.length;_++)0<(X=P[_])&&1>X&&O(m(S,E.x1,E.x2,E.x,X));for(var A=0,k=p(w,E.y1,E.y2,E.y);A<k.length;A++)0<(X=k[A])&&1>X&&T(m(w,E.y1,E.y2,E.y,X))}if(E.type&ud.ARC){O(E.x),T(E.y),o(E,S,w);for(var C=E.xRot/180*Math.PI,R=Math.cos(C)*E.rX,M=Math.sin(C)*E.rX,N=-Math.sin(C)*E.rY,D=Math.cos(C)*E.rY,V=E.phi1<E.phi2?[E.phi1,E.phi2]:-180>E.phi2?[E.phi2+360,E.phi1+360]:[E.phi2,E.phi1],L=V[0],j=V[1],$=function I(h){var d=h[0],g=h[1],x=180*Math.atan2(g,d)/Math.PI;return x<L?x+360:x},B=0,z=s(N,-R,0).map($);B<z.length;B++)(X=z[B])>L&&X<j&&O(y(E.cX,R,N,X));for(var U=0,G=s(D,-M,0).map($);U<G.length;U++){var X;(X=G[U])>L&&X<j&&T(y(E.cY,M,D,X))}}return b}));return x.minX=1/0,x.maxX=-1/0,x.minY=1/0,x.maxY=-1/0,x}}(td||(td={}));var rd,nd=function(){function t(){}return t.prototype.round=function(h){return this.transform(td.ROUND(h))},t.prototype.toAbs=function(){return this.transform(td.TO_ABS())},t.prototype.toRel=function(){return this.transform(td.TO_REL())},t.prototype.normalizeHVZ=function(h,d,g){return this.transform(td.NORMALIZE_HVZ(h,d,g))},t.prototype.normalizeST=function(){return this.transform(td.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(td.QT_TO_C())},t.prototype.aToC=function(){return this.transform(td.A_TO_C())},t.prototype.sanitize=function(h){return this.transform(td.SANITIZE(h))},t.prototype.translate=function(h,d){return this.transform(td.TRANSLATE(h,d))},t.prototype.scale=function(h,d){return this.transform(td.SCALE(h,d))},t.prototype.rotate=function(h,d,g){return this.transform(td.ROTATE(h,d,g))},t.prototype.matrix=function(h,d,g,x,b,S){return this.transform(td.MATRIX(h,d,g,x,b,S))},t.prototype.skewX=function(h){return this.transform(td.SKEW_X(h))},t.prototype.skewY=function(h){return this.transform(td.SKEW_Y(h))},t.prototype.xSymmetry=function(h){return this.transform(td.X_AXIS_SYMMETRY(h))},t.prototype.ySymmetry=function(h){return this.transform(td.Y_AXIS_SYMMETRY(h))},t.prototype.annotateArcs=function(){return this.transform(td.ANNOTATE_ARCS())},t}(),id=function v(h){return" "===h||"\t"===h||"\r"===h||"\n"===h},ad=function l(h){return"0".charCodeAt(0)<=h.charCodeAt(0)&&h.charCodeAt(0)<="9".charCodeAt(0)},od=function(h){function e(){var d=h.call(this)||this;return d.curNumber="",d.curCommandType=-1,d.curCommandRelative=!1,d.canParseCommandOrComma=!0,d.curNumberHasExp=!1,d.curNumberHasExpDigits=!1,d.curNumberHasDecimal=!1,d.curArgs=[],d}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,d){var g=this;void 0===d&&(d=[]);for(var x=function i(h){d.push(h),g.curArgs.length=0,g.canParseCommandOrComma=!0},b=0;b<h.length;b++){var S=h[b],w=!(this.curCommandType!==ud.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),E=ad(S)&&("0"===this.curNumber&&"0"===S||w);if(!ad(S)||E)if("e"!==S&&"E"!==S)if("-"!==S&&"+"!==S||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==S||this.curNumberHasExp||this.curNumberHasDecimal||w){if(this.curNumber&&-1!==this.curCommandType){var _=Number(this.curNumber);if(isNaN(_))throw new SyntaxError("Invalid number ending at "+b);if(this.curCommandType===ud.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>_)throw new SyntaxError('Expected positive number, got "'+_+'" at index "'+b+'"')}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 "'+b+'"');this.curArgs.push(_),this.curArgs.length===sd[this.curCommandType]&&(ud.HORIZ_LINE_TO===this.curCommandType?x({type:ud.HORIZ_LINE_TO,relative:this.curCommandRelative,x:_}):ud.VERT_LINE_TO===this.curCommandType?x({type:ud.VERT_LINE_TO,relative:this.curCommandRelative,y:_}):this.curCommandType===ud.MOVE_TO||this.curCommandType===ud.LINE_TO||this.curCommandType===ud.SMOOTH_QUAD_TO?(x({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),ud.MOVE_TO===this.curCommandType&&(this.curCommandType=ud.LINE_TO)):this.curCommandType===ud.CURVE_TO?x({type:ud.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===ud.SMOOTH_CURVE_TO?x({type:ud.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ud.QUAD_TO?x({type:ud.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===ud.ARC&&x({type:ud.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(!id(S))if(","===S&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==S&&"-"!==S&&"."!==S)if(E)this.curNumber=S,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+b+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==S&&"Z"!==S)if("h"===S||"H"===S)this.curCommandType=ud.HORIZ_LINE_TO,this.curCommandRelative="h"===S;else if("v"===S||"V"===S)this.curCommandType=ud.VERT_LINE_TO,this.curCommandRelative="v"===S;else if("m"===S||"M"===S)this.curCommandType=ud.MOVE_TO,this.curCommandRelative="m"===S;else if("l"===S||"L"===S)this.curCommandType=ud.LINE_TO,this.curCommandRelative="l"===S;else if("c"===S||"C"===S)this.curCommandType=ud.CURVE_TO,this.curCommandRelative="c"===S;else if("s"===S||"S"===S)this.curCommandType=ud.SMOOTH_CURVE_TO,this.curCommandRelative="s"===S;else if("q"===S||"Q"===S)this.curCommandType=ud.QUAD_TO,this.curCommandRelative="q"===S;else if("t"===S||"T"===S)this.curCommandType=ud.SMOOTH_QUAD_TO,this.curCommandRelative="t"===S;else{if("a"!==S&&"A"!==S)throw new SyntaxError('Unexpected character "'+S+'" at index '+b+".");this.curCommandType=ud.ARC,this.curCommandRelative="a"===S}else d.push({type:ud.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 d},e.prototype.transform=function(h){return Object.create(this,{parse:{value:function value(d,g){void 0===g&&(g=[]);for(var x=0,b=Object.getPrototypeOf(this).parse.call(this,d);x<b.length;x++){var S=b[x],w=h(S);Array.isArray(w)?g.push.apply(g,w):g.push(w)}return g}}})},e}(nd),ud=function(h){function i(d){var g=h.call(this)||this;return g.commands="string"==typeof d?i.parse(d):d,g}return r(i,h),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var h=td.CALCULATE_BOUNDS();return this.transform(h),h},i.prototype.transform=function(h){for(var d=[],g=0,x=this.commands;g<x.length;g++){var b=h(x[g]);Array.isArray(b)?d.push.apply(d,b):d.push(b)}return this.commands=d,this},i.encode=function(h){return function e(h){var d="";Array.isArray(h)||(h=[h]);for(var g=0;g<h.length;g++){var x=h[g];if(x.type===ud.CLOSE_PATH)d+="z";else if(x.type===ud.HORIZ_LINE_TO)d+=(x.relative?"h":"H")+x.x;else if(x.type===ud.VERT_LINE_TO)d+=(x.relative?"v":"V")+x.y;else if(x.type===ud.MOVE_TO)d+=(x.relative?"m":"M")+x.x+" "+x.y;else if(x.type===ud.LINE_TO)d+=(x.relative?"l":"L")+x.x+" "+x.y;else if(x.type===ud.CURVE_TO)d+=(x.relative?"c":"C")+x.x1+" "+x.y1+" "+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===ud.SMOOTH_CURVE_TO)d+=(x.relative?"s":"S")+x.x2+" "+x.y2+" "+x.x+" "+x.y;else if(x.type===ud.QUAD_TO)d+=(x.relative?"q":"Q")+x.x1+" "+x.y1+" "+x.x+" "+x.y;else if(x.type===ud.SMOOTH_QUAD_TO)d+=(x.relative?"t":"T")+x.x+" "+x.y;else{if(x.type!==ud.ARC)throw new Error('Unexpected command type "'+x.type+'" at index '+g+".");d+=(x.relative?"a":"A")+x.rX+" "+x.rY+" "+x.xRot+" "+ +x.lArcFlag+" "+ +x.sweepFlag+" "+x.x+" "+x.y}}return d}(h)},i.parse=function(h){var d=new od,g=[];return d.parse(h,g),d.finish(g),g},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}(nd),sd=((rd={})[ud.MOVE_TO]=2,rd[ud.LINE_TO]=2,rd[ud.HORIZ_LINE_TO]=1,rd[ud.VERT_LINE_TO]=1,rd[ud.CLOSE_PATH]=0,rd[ud.QUAD_TO]=4,rd[ud.SMOOTH_QUAD_TO]=2,rd[ud.CURVE_TO]=6,rd[ud.SMOOTH_CURVE_TO]=4,rd[ud.ARC]=7,rd),cd=To.f;zo({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(h,d){var g=cd(Vo(h),d);return!(g&&!g.configurable)&&delete h[d]}});var ld=No.Reflect.deleteProperty,fd=pu("Array").values,hd=Array.prototype,pd={DOMTokenList:!0,NodeList:!0},yd=function values_1(h){var d=h.values;return h===hd||h instanceof Array&&d===hd.values||pd.hasOwnProperty(Cc(h))?fd:d},vd=ju.trim,dd=to.parseInt,gd=/^[+-]?0[Xx]/,md=8!==dd(Nu+"08")||22!==dd(Nu+"0x16")?function parseInt(h,d){var g=vd(String(h));return dd(g,d>>>0||(gd.test(g)?16:10))}:dd;zo({global:!0,forced:parseInt!=md},{parseInt:md});var xd=No.parseInt,bd=bs,Sd=ol,wd=of,Ed=Cf,_d=Object.isExtensible,Td=fails((function(){_d(1)}));_export({target:"Object",stat:!0,forced:Td},{isExtensible:function isExtensible(h){return!!isObject(h)&&(!_d||_d(h))}});var Pd=Ia.onFreeze,Ad=Object.preventExtensions,kd=fails((function(){Ad(1)}));_export({target:"Object",stat:!0,forced:kd,sham:!Na},{preventExtensions:function preventExtensions(h){return Ad&&isObject(h)?Ad(Pd(h)):h}});var Od=!no((function(){return Object.isExtensible(Object.preventExtensions({}))})),Cd=createCommonjsModule((function(h){var d=jo.f,g=Jo("meta"),x=0,b=Object.isExtensible||function(){return!0},S=function setMetadata(h){d(h,g,{value:{objectID:"O"+ ++x,weakData:{}}})},w=h.exports={REQUIRED:!1,fastKey:function fastKey(h,d){if(!vo(h))return"symbol"==_typeof(h)?h:("string"==typeof h?"S":"P")+h;if(!xo(h,g)){if(!b(h))return"F";if(!d)return"E";S(h)}return h[g].objectID},getWeakData:function getWeakData(h,d){if(!xo(h,g)){if(!b(h))return!0;if(!d)return!1;S(h)}return h[g].weakData},onFreeze:function onFreeze(h){return Od&&w.REQUIRED&&b(h)&&!xo(h,g)&&S(h),h}};Fs[g]=!0})),Rd=jo.f,Md=ts.forEach,Nd=Qs.set,Id=Qs.getterFor,Dd=jo.f,Vd=Cd.fastKey,Ld=Qs.set,jd=Qs.getterFor,$d=(function collection(h,d,g){var x,b=-1!==h.indexOf("Map"),S=-1!==h.indexOf("Weak"),w=b?"set":"add",E=to[h],_=E&&E.prototype,P={};if(io&&"function"==typeof E&&(S||_.forEach&&!no((function(){(new E).entries().next()})))){x=d((function(d,g){Nd(Sh(d,x,h),{type:h,collection:new E}),null!=g&&yh(g,d[w],{that:d,AS_ENTRIES:b})}));var A=Id(h);Md(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(h){var d="add"==h||"set"==h;!(h in _)||S&&"clear"==h||$o(x.prototype,h,(function(g,x){var b=A(this).collection;if(!d&&S&&!vo(g))return"get"==h&&void 0;var w=b[h](0===g?0:g,x);return d?this:w}))})),S||Rd(x.prototype,"size",{configurable:!0,get:function get(){return A(this).collection.size}})}else x=g.getConstructor(d,h,b,w),Cd.REQUIRED=!0;Ic(x,h,!1,!0),P[h]=x,zo({global:!0,forced:!0},P),S||g.setStrong(x,h,b)}("Map",(function(h){return function Map(){return h(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(h,d,g,x){var b=h((function(h,S){Sh(h,b,d),Ld(h,{type:d,index:Tc(null),first:void 0,last:void 0,size:0}),io||(h.size=0),null!=S&&yh(S,h[x],{that:h,AS_ENTRIES:g})})),S=jd(d),w=function define(h,d,g){var x,b,w=S(h),_=E(h,d);return _?_.value=g:(w.last=_={index:b=Vd(d,!0),key:d,value:g,previous:x=w.last,next:void 0,removed:!1},w.first||(w.first=_),x&&(x.next=_),io?w.size++:h.size++,"F"!==b&&(w.index[b]=_)),h},E=function getEntry(h,d){var g,x=S(h),b=Vd(d);if("F"!==b)return x.index[b];for(g=x.first;g;g=g.next)if(g.key==d)return g};return mh(b.prototype,{clear:function clear(){for(var h=S(this),d=h.index,g=h.first;g;)g.removed=!0,g.previous&&(g.previous=g.previous.next=void 0),delete d[g.index],g=g.next;h.first=h.last=void 0,io?h.size=0:this.size=0},delete:function _delete(h){var d=this,g=S(d),x=E(d,h);if(x){var b=x.next,w=x.previous;delete g.index[x.index],x.removed=!0,w&&(w.next=b),b&&(b.previous=w),g.first==x&&(g.first=b),g.last==x&&(g.last=w),io?g.size--:d.size--}return!!x},forEach:function forEach(h){for(var d,g=S(this),x=Do(h,arguments.length>1?arguments[1]:void 0,3);d=d?d.next:g.first;)for(x(d.value,d.key,this);d&&d.removed;)d=d.previous},has:function has(h){return!!E(this,h)}}),mh(b.prototype,g?{get:function get(h){var d=E(this,h);return d&&d.value},set:function set(h,d){return w(this,0===h?0:h,d)}}:{add:function add(h){return w(this,h=0===h?0:h,h)}}),io&&Dd(b.prototype,"size",{get:function get(){return S(this).size}}),b},setStrong:function setStrong(h,d,g){var x=d+" Iterator",b=jd(d),S=jd(x);Xc(h,d,(function(h,d){Ld(this,{type:x,target:h,state:b(h),kind:d,last:void 0})}),(function(){for(var h=S(this),d=h.kind,g=h.last;g&&g.removed;)g=g.previous;return h.target&&(h.last=g=g?g.next:h.state.first)?"keys"==d?{value:g.key,done:!1}:"values"==d?{value:g.value,done:!1}:{value:[g.key,g.value],done:!1}:(h.target=void 0,{value:void 0,done:!0})}),g?"entries":"values",!g,!0),bh(d)}}),No.Map),Fd=rs("Reflect","apply"),Bd=Function.apply,zd=!no((function(){Fd((function(){}))}));zo({target:"Reflect",stat:!0,forced:zd},{apply:function apply(h,d,g){return Io(h),Vo(g),Fd?Fd(h,d,g):Bd.call(h,d,g)}});var Ud=No.Reflect.apply;zo({target:"Reflect",stat:!0,sham:!Ks},{getPrototypeOf:function getPrototypeOf(h){return tc(Vo(h))}});var Gd=No.Reflect.getPrototypeOf;function _typeof$1(h){return(_typeof$1="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 Hd=[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],Xd=[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,d,g,x,b,S){if(!(isNaN(S)||S<1)){S|=0;var w=function getImageDataFromCanvas(h,d,g,x,b){if("string"==typeof h&&(h=document.getElementById(h)),!h||"object"!==_typeof$1(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(d,g,x,b)}catch(h){throw new Error("unable to access image data: "+h)}}(h,d,g,x,b);w=function processImageDataRGBA(h,d,g,x,b,S){for(var w,E=h.data,_=2*S+1,P=x-1,A=b-1,k=S+1,C=k*(k+1)/2,R=new Yd,M=R,N=1;N<_;N++)M=M.next=new Yd,N===k&&(w=M);M.next=R;for(var D=null,V=null,L=0,j=0,$=Hd[S],B=Xd[S],z=0;z<b;z++){M=R;for(var U=E[j],G=E[j+1],X=E[j+2],Y=E[j+3],W=0;W<k;W++)M.r=U,M.g=G,M.b=X,M.a=Y,M=M.next;for(var q=0,Q=0,K=0,Z=0,J=k*U,tt=k*G,et=k*X,rt=k*Y,nt=C*U,it=C*G,at=C*X,ot=C*Y,ut=1;ut<k;ut++){var st=j+((P<ut?P:ut)<<2),ct=E[st],lt=E[st+1],ft=E[st+2],ht=E[st+3],pt=k-ut;nt+=(M.r=ct)*pt,it+=(M.g=lt)*pt,at+=(M.b=ft)*pt,ot+=(M.a=ht)*pt,q+=ct,Q+=lt,K+=ft,Z+=ht,M=M.next}D=R,V=w;for(var yt=0;yt<x;yt++){var vt=ot*$>>B;if(E[j+3]=vt,0!==vt){var dt=255/vt;E[j]=(nt*$>>B)*dt,E[j+1]=(it*$>>B)*dt,E[j+2]=(at*$>>B)*dt}else E[j]=E[j+1]=E[j+2]=0;nt-=J,it-=tt,at-=et,ot-=rt,J-=D.r,tt-=D.g,et-=D.b,rt-=D.a;var gt=yt+S+1;gt=L+(gt<P?gt:P)<<2,nt+=q+=D.r=E[gt],it+=Q+=D.g=E[gt+1],at+=K+=D.b=E[gt+2],ot+=Z+=D.a=E[gt+3],D=D.next;var mt=V,xt=mt.r,bt=mt.g,St=mt.b,wt=mt.a;J+=xt,tt+=bt,et+=St,rt+=wt,q-=xt,Q-=bt,K-=St,Z-=wt,V=V.next,j+=4}L+=x}for(var Et=0;Et<x;Et++){var _t=E[j=Et<<2],Tt=E[j+1],Pt=E[j+2],At=E[j+3],kt=k*_t,Ot=k*Tt,Ct=k*Pt,Rt=k*At,Mt=C*_t,Nt=C*Tt,It=C*Pt,Dt=C*At;M=R;for(var Vt=0;Vt<k;Vt++)M.r=_t,M.g=Tt,M.b=Pt,M.a=At,M=M.next;for(var Lt=x,jt=0,$t=0,Ft=0,Bt=0,zt=1;zt<=S;zt++){j=Lt+Et<<2;var Ut=k-zt;Mt+=(M.r=_t=E[j])*Ut,Nt+=(M.g=Tt=E[j+1])*Ut,It+=(M.b=Pt=E[j+2])*Ut,Dt+=(M.a=At=E[j+3])*Ut,Bt+=_t,jt+=Tt,$t+=Pt,Ft+=At,M=M.next,zt<A&&(Lt+=x)}j=Et,D=R,V=w;for(var Gt=0;Gt<b;Gt++){var Ht=j<<2;E[Ht+3]=At=Dt*$>>B,At>0?(At=255/At,E[Ht]=(Mt*$>>B)*At,E[Ht+1]=(Nt*$>>B)*At,E[Ht+2]=(It*$>>B)*At):E[Ht]=E[Ht+1]=E[Ht+2]=0,Mt-=kt,Nt-=Ot,It-=Ct,Dt-=Rt,kt-=D.r,Ot-=D.g,Ct-=D.b,Rt-=D.a,Ht=Et+((Ht=Gt+k)<A?Ht:A)*x<<2,Mt+=Bt+=D.r=E[Ht],Nt+=jt+=D.g=E[Ht+1],It+=$t+=D.b=E[Ht+2],Dt+=Ft+=D.a=E[Ht+3],D=D.next,kt+=_t=V.r,Ot+=Tt=V.g,Ct+=Pt=V.b,Rt+=At=V.a,Bt-=_t,jt-=Tt,$t-=Pt,Ft-=At,V=V.next,j+=x}}return h}(w,0,0,x,b,S),h.getContext("2d").putImageData(w,d,g)}}var Yd=function BlurStack(){!function _classCallCheck$1(h,d){if(!(h instanceof d))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 d=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return xs(d).call(d,zu)}var Wd=/^[A-Z-]+$/;function normalizeAttributeName(h){return Wd.test(h)?h.toLowerCase():h}function parseExternalUrl(h){var d=h.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return d[2]||d[3]||d[4]}var qd=/(\[[^\]]+\])/g,Qd=/(#[^\s\+>~\.\[:]+)/g,Kd=/(\.[^\s\+>~\.\[:]+)/g,Zd=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Jd=/(:[\w-]+\([^\)]*\))/gi,tg=/(:[^\s\+>~\.\[:]+)/g,eg=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(h,d){var g=h.match(d);return g?[h.replace(d," "),g.length]:[h,0]}var rg=1e-8;function vectorMagnitude(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function vectorsRatio(h,d){return(h[0]*d[0]+h[1]*d[1])/(vectorMagnitude(h)*vectorMagnitude(d))}function vectorsAngle(h,d){return(h[0]*d[1]<h[1]*d[0]?-1:1)*Math.acos(vectorsRatio(h,d))}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 ng=function(){function Property(h,d,g){Yp(this,Property),this.document=h,this.name=d,this.value=g,this.isNormalizedColor=!1}return Wp(Property,[{key:"split",value:function split(){var h,d,g=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",x=this.document,b=this.name;return xs(h=Fy(d=compressSpaces(this.getString())).call(d).split(g)).call(h,(function(h){return new Property(x,b,h)}))}},{key:"hasValue",value:function hasValue(h){var d=this.value;return null!==d&&""!==d&&(h||0!==d)&&void 0!==d}},{key:"isString",value:function isString(h){var d=this.value,g="string"==typeof d;return g&&h?h.test(d):g}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var h=this.getString();switch(!0){case/px$/.test(h):case/^[0-9]+$/.test(h):return!0;default:return!1}}},{key:"setValue",value:function setValue(h){return this.value=h,this}},{key:"getValue",value:function getValue(h){return void 0===h||this.hasValue()?this.value:h}},{key:"getNumber",value:function getNumber(h){if(!this.hasValue())return void 0===h?0:zu(h);var d=this.value,g=zu(d);return this.isString(/%$/)&&(g/=100),g}},{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 d=this.getString(h);return this.isNormalizedColor||(this.isNormalizedColor=!0,d=function normalizeColor(h){if(!du(h).call(h,"rgb"))return h;var d=3;return h.replace(/\d+(\.\d+)?/g,(function(h,g){return d--&&g?String(Math.round(zu(h))):h}))}(d),this.value=d),d}},{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 d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var g="boolean"==typeof h?[void 0,h]:[h],x=Df(g,2),b=x[0],S=x[1],w=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(w.computeSize("x"),w.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(w.computeSize("x"),w.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*w.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*w.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()*w.computeSize(b);default:var E=this.getNumber();return d&&E<1?E*w.computeSize(b):E}}},{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(),d=h.match(/#([^\)'"]+)/);return d&&(d=d[1]),d||(d=h),this.document.definitions[d]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(h,d){var g=this.getDefinition();if(!g)return null;if("function"==typeof g.createGradient)return g.createGradient(this.document.ctx,h,d);if("function"==typeof g.createPattern){if(g.getHrefAttribute().hasValue()){var x=g.getAttribute("patternTransform");g=g.getHrefAttribute().getDefinition(),x.hasValue()&&g.getAttribute("patternTransform",!0).setValue(x.value)}return g.createPattern(this.document.ctx,h,d)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(h){for(var d=this.getColor(),g=d.length,x=0,b=0;b<g&&(","===d[b]&&x++,3!==x);b++);if(h.hasValue()&&this.isString()&&3!==x){var S=new Hy(d);S.ok&&(S.alpha=h.getNumber(),d=S.toRGBA())}return new Property(this.document,this.name,d)}}],[{key:"empty",value:function empty(h){return new Property(h,"EMPTY","")}}]),Property}();ng.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 ig=function(){function ViewPort(){Yp(this,ViewPort),this.viewPorts=[]}return Wp(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(h,d){this.viewPorts.push({width:h,height:d})}},{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}(),ag=function(){function Point(h,d){Yp(this,Point),this.x=h,this.y=d}return Wp(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 d=this.x,g=this.y,x=d*h[0]+g*h[2]+h[4],b=d*h[1]+g*h[3]+h[5];this.x=x,this.y=b}}],[{key:"parse",value:function parse(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=toNumbers(h),x=Df(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?d:w;return new Point(S,E)}},{key:"parseScale",value:function parseScale(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,g=toNumbers(h),x=Df(g,2),b=x[0],S=void 0===b?d:b,w=x[1],E=void 0===w?S:w;return new Point(S,E)}},{key:"parsePath",value:function parsePath(h){for(var d=toNumbers(h),g=d.length,x=[],b=0;b<g;b+=2)x.push(new Point(d[b],d[b+1]));return x}}]),Point}(),og=function(){function Mouse(h){var d,g;Yp(this,Mouse),this.screen=h,this.working=!1,this.events=[],this.eventElements=[],this.onClick=Ty(d=this.onClick).call(d,this),this.onMouseMove=Ty(g=this.onMouseMove).call(g,this)}return Wp(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var h=this.screen,d=this.onClick,g=this.onMouseMove,x=h.ctx.canvas;x.onclick=d,x.onmousemove=g,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,d=this.events,g=this.eventElements,x=h.ctx.canvas.style;x&&(x.cursor=""),qf(d).call(d,(function(h,d){for(var x=h.run,b=g[d];b;)x(b),b=b.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;qf(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInPath&&d.isPointInPath(S,w)&&(x[b]=h)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(h,d){if(this.working&&d){var g=this.events,x=this.eventElements;qf(g).call(g,(function(g,b){var S=g.x,w=g.y;!x[b]&&d.isPointInBox(S,w)&&(x[b]=h)}))}}},{key:"mapXY",value:function mapXY(h,d){for(var g=this.screen,x=g.window,b=g.ctx,S=new ag(h,d),w=b.canvas;w;)S.x-=w.offsetLeft,S.y-=w.offsetTop,w=w.offsetParent;return x.scrollX&&(S.x+=x.scrollX),x.scrollY&&(S.y+=x.scrollY),S}},{key:"onClick",value:function onClick(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onclick",x:g,y:x,run:function run(h){h.onClick&&h.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(h){var d=this.mapXY((h||event).clientX,(h||event).clientY),g=d.x,x=d.y;this.events.push({type:"onmousemove",x:g,y:x,run:function run(h){h.onMouseMove&&h.onMouseMove()}})}}]),Mouse}(),ug="undefined"!=typeof window?window:null,sg="undefined"!=typeof fetch?Ty(fetch).call(fetch,void 0):null,cg=function(){function Screen(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},g=d.fetch,x=void 0===g?sg:g,b=d.window,S=void 0===b?ug:b;Yp(this,Screen),this.ctx=h,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new ig,this.mouse=new og(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=S,this.fetch=x}return Wp(Screen,[{key:"wait",value:function wait(h){this.waits.push(h)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:my.resolve()}},{key:"isReady",value:function isReady(){var h;if(this.isReadyLock)return!0;var d=gy(h=this.waits).call(h,(function(h){return h()}));return d&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=d,d}},{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 d=h.document,g=h.ctx,x=h.aspectRatio,b=h.width,S=h.desiredWidth,w=h.height,E=h.desiredHeight,_=h.minX,P=void 0===_?0:_,A=h.minY,k=void 0===A?0:A,C=h.refX,R=h.refY,M=h.clip,N=void 0!==M&&M,D=h.clipX,V=void 0===D?0:D,L=h.clipY,j=void 0===L?0:L,$=compressSpaces(x).replace(/^defer\s/,"").split(" "),B=Df($,2),z=B[0]||"xMidYMid",U=B[1]||"meet",G=b/S,X=w/E,Y=Math.min(G,X),W=Math.max(G,X),q=S,Q=E;"meet"===U&&(q*=Y,Q*=Y),"slice"===U&&(q*=W,Q*=W);var K=new ng(d,"refX",C),Z=new ng(d,"refY",R),J=K.hasValue()&&Z.hasValue();if(J&&g.translate(-Y*K.getPixels("x"),-Y*Z.getPixels("y")),N){var tt=Y*V,et=Y*j;g.beginPath(),g.moveTo(tt,et),g.lineTo(b,et),g.lineTo(b,w),g.lineTo(tt,w),g.closePath(),g.clip()}if(!J){var rt="meet"===U&&Y===X,nt="slice"===U&&W===X,it="meet"===U&&Y===G,at="slice"===U&&W===G;/^xMid/.test(z)&&(rt||nt)&&g.translate(b/2-q/2,0),/YMid$/.test(z)&&(it||at)&&g.translate(0,w/2-Q/2),/^xMax/.test(z)&&(rt||nt)&&g.translate(b-q,0),/YMax$/.test(z)&&(it||at)&&g.translate(0,w-Q)}switch(!0){case"none"===z:g.scale(G,X);break;case"meet"===U:g.scale(Y,Y);break;case"slice"===U:g.scale(W,W)}g.translate(-P,-k)}},{key:"start",value:function start(h){var d=this,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},x=g.enableRedraw,b=void 0!==x&&x,S=g.ignoreMouse,w=void 0!==S&&S,E=g.ignoreAnimation,_=void 0!==E&&E,P=g.ignoreDimensions,A=void 0!==P&&P,k=g.ignoreClear,C=void 0!==k&&k,R=g.forceRedraw,M=g.scaleWidth,N=g.scaleHeight,D=g.offsetX,V=g.offsetY,L=this.FRAMERATE,j=this.mouse,$=1e3/L;if(this.frameDuration=$,this.readyPromise=new my((function(h){d.resolveReady=h})),this.isReady()&&this.render(h,A,C,M,N,D,V),b){var B=sy(),z=B,U=0,G=function tick(){B=sy(),(U=B-z)>=$&&(z=B-U%$,d.shouldUpdate(_,R)&&(d.render(h,A,C,M,N,D,V),j.runEvents())),d.intervalId=Vy(tick)};w||j.start(),this.intervalId=Vy(G)}}},{key:"stop",value:function stop(){this.intervalId&&(Vy.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(h,d){if(!h){var g,x=this.frameDuration,shouldUpdate=uy(g=this.animations).call(g,(function(h,d){return d.update(x)||h}),!1);if(shouldUpdate)return!0}return!("function"!=typeof d||!d())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(h,d,g,x,b,S,w){var E=this.CLIENT_WIDTH,_=this.CLIENT_HEIGHT,P=this.viewPort,A=this.ctx,k=this.isFirstRender,C=A.canvas;P.clear(),C.width&&C.height?P.setCurrent(C.width,C.height):P.setCurrent(E,_);var R=h.getStyle("width"),M=h.getStyle("height");!d&&(k||"number"!=typeof x&&"number"!=typeof b)&&(R.hasValue()&&(C.width=R.getPixels("x"),C.style&&(C.style.width="".concat(C.width,"px"))),M.hasValue()&&(C.height=M.getPixels("y"),C.style&&(C.style.height="".concat(C.height,"px"))));var N=C.clientWidth||C.width,D=C.clientHeight||C.height;if(d&&R.hasValue()&&M.hasValue()&&(N=R.getPixels("x"),D=M.getPixels("y")),P.setCurrent(N,D),"number"==typeof S&&h.getAttribute("x",!0).setValue(S),"number"==typeof w&&h.getAttribute("y",!0).setValue(w),"number"==typeof x||"number"==typeof b){var V,L,j=toNumbers(h.getAttribute("viewBox").getString()),$=0,B=0;if("number"==typeof x){var z=h.getStyle("width");z.hasValue()?$=z.getPixels("x")/x:isNaN(j[2])||($=j[2]/x)}if("number"==typeof b){var U=h.getStyle("height");U.hasValue()?B=U.getPixels("y")/b:isNaN(j[3])||(B=j[3]/b)}$||($=B),B||(B=$),h.getAttribute("width",!0).setValue(x),h.getAttribute("height",!0).setValue(b);var G=h.getStyle("transform",!0,!0);G.setValue(Kp(V=Kp(L="".concat(G.getString()," scale(")).call(L,1/$,", ")).call(V,1/B,")"))}g||A.clearRect(0,0,N,D),h.render(A),k&&(this.isFirstRender=!1)}}]),Screen}();cg.defaultWindow=ug,cg.defaultFetch=sg;var lg=cg.defaultFetch,fg="undefined"!=typeof DOMParser?DOMParser:null,hg=function(){function Parser(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=h.fetch,g=void 0===d?lg:d,x=h.DOMParser,b=void 0===x?fg:x;Yp(this,Parser),this.fetch=g,this.DOMParser=b}var h,d;return Wp(Parser,[{key:"parse",value:(d=Gp(hh.mark((function _callee(h){return hh.wrap((function _callee$(d){for(;;)switch(d.prev=d.next){case 0:if(!/^</.test(h)){d.next=2;break}return d.abrupt("return",this.parseFromString(h));case 2:return d.abrupt("return",this.load(h));case 3:case"end":return d.stop()}}),_callee,this)}))),function parse(h){return d.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(h){var d=new this.DOMParser;try{return this.checkDocument(d.parseFromString(h,"image/svg+xml"))}catch(g){return this.checkDocument(d.parseFromString(h,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(h){var d=h.getElementsByTagName("parsererror")[0];if(d)throw new Error(d.textContent);return h}},{key:"load",value:(h=Gp(hh.mark((function _callee2(h){var d,g;return hh.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,this.fetch(h);case 2:return d=x.sent,x.next=5,d.text();case 5:return g=x.sent,x.abrupt("return",this.parseFromString(g));case 7:case"end":return x.stop()}}),_callee2,this)}))),function load(d){return h.apply(this,arguments)})}]),Parser}(),pg=function(){function Translate(h,d){Yp(this,Translate),this.type="translate",this.point=null,this.point=ag.parse(d)}return Wp(Translate,[{key:"apply",value:function apply(h){var d=this.point,g=d.x,x=d.y;h.translate(g||0,x||0)}},{key:"unapply",value:function unapply(h){var d=this.point,g=d.x,x=d.y;h.translate(-1*g||0,-1*x||0)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.point,g=d.x,x=d.y;h.applyTransform([1,0,0,1,g||0,x||0])}}]),Translate}(),yg=function(){function Rotate(h,d,g){Yp(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var x=toNumbers(d);this.angle=new ng(h,"angle",x[0]),this.originX=g[0],this.originY=g[1],this.cx=x[1]||0,this.cy=x[2]||0}return Wp(Rotate,[{key:"apply",value:function apply(h){var d=this.cx,g=this.cy,x=this.originX,b=this.originY,S=this.angle,w=d+x.getPixels("x"),E=g+b.getPixels("y");h.translate(w,E),h.rotate(S.getRadians()),h.translate(-w,-E)}},{key:"unapply",value:function unapply(h){var d=this.cx,g=this.cy,x=this.angle;h.translate(d,g),h.rotate(-1*x.getRadians()),h.translate(-d,-g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.cx,g=this.cy,x=this.angle.getRadians();h.applyTransform([1,0,0,1,d||0,g||0]),h.applyTransform([Math.cos(x),Math.sin(x),-Math.sin(x),Math.cos(x),0,0]),h.applyTransform([1,0,0,1,-d||0,-g||0])}}]),Rotate}(),vg=function(){function Scale(h,d){Yp(this,Scale),this.type="scale",this.scale=null;var g=ag.parseScale(d);0!==g.x&&0!==g.y||(g.x=rg,g.y=rg),this.scale=g}return Wp(Scale,[{key:"apply",value:function apply(h){var d=this.scale,g=d.x,x=d.y;h.scale(g,x||g)}},{key:"unapply",value:function unapply(h){var d=this.scale,g=d.x,x=d.y;h.scale(1/g,1/x||g)}},{key:"applyToPoint",value:function applyToPoint(h){var d=this.scale,g=d.x,x=d.y;h.applyTransform([g||0,0,0,x||0,0,0])}}]),Scale}(),dg=function(){function Matrix(h,d){Yp(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(d)}return Wp(Matrix,[{key:"apply",value:function apply(h){var d=this.matrix;h.transform(d[0],d[1],d[2],d[3],d[4],d[5])}},{key:"unapply",value:function unapply(h){var d=this.matrix,g=d[0],x=d[2],b=d[4],S=d[1],w=d[3],E=d[5],_=1/(g*(1*w-0*E)-x*(1*S-0*E)+b*(0*S-0*w));h.transform(_*(1*w-0*E),_*(0*E-1*S),_*(0*b-1*x),_*(1*g-0*b),_*(x*E-b*w),_*(b*S-g*E))}},{key:"applyToPoint",value:function applyToPoint(h){h.applyTransform(this.matrix)}}]),Matrix}();function _createSuper(h){var d=function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var gg=function(h){ev(Skew,h);var d=_createSuper(Skew);function Skew(h,g){var x;return Yp(this,Skew),(x=d.call(this,h,g)).type="skew",x.angle=null,x.angle=new ng(h,"angle",g),x}return Skew}(dg);function _createSuper$1(h){var d=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var mg=function(h){ev(SkewX,h);var d=_createSuper$1(SkewX);function SkewX(h,g){var x;return Yp(this,SkewX),(x=d.call(this,h,g)).type="skewX",x.matrix=[1,0,Math.tan(x.angle.getRadians()),1,0,0],x}return SkewX}(gg);function _createSuper$2(h){var d=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var xg=function(h){ev(SkewY,h);var d=_createSuper$2(SkewY);function SkewY(h,g){var x;return Yp(this,SkewY),(x=d.call(this,h,g)).type="skewY",x.matrix=[1,Math.tan(x.angle.getRadians()),0,1,0,0],x}return SkewY}(gg);var bg=function(){function Transform(h,d,g){var x=this;Yp(this,Transform),this.document=h,this.transforms=[];var b=function parseTransforms(h){var d;return Fy(d=compressSpaces(h)).call(d).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(d);qf(b).call(b,(function(h){if("none"!==h){var d=function parseTransform(h){var d=h.split("("),g=Df(d,2),x=g[0],b=g[1];return[Fy(x).call(x),Fy(b).call(b).replace(")","")]}(h),b=Df(d,2),S=b[0],w=b[1],E=Transform.transformTypes[S];void 0!==E&&x.transforms.push(new E(x.document,w,g))}}))}return Wp(Transform,[{key:"apply",value:function apply(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].apply(h)}},{key:"unapply",value:function unapply(h){for(var d=this.transforms,g=d.length-1;g>=0;g--)d[g].unapply(h)}},{key:"applyToPoint",value:function applyToPoint(h){for(var d=this.transforms,g=d.length,x=0;x<g;x++)d[x].applyToPoint(h)}}],[{key:"fromElement",value:function fromElement(h,d){var g=d.getStyle("transform",!1,!0),x=d.getStyle("transform-origin",!1,!0).split(),b=Df(x,2),S=b[0],w=b[1],E=[S,void 0===w?S:w];return g.hasValue()?new Transform(h,g.getString(),E):null}}]),Transform}();bg.transformTypes={translate:pg,rotate:yg,scale:vg,matrix:dg,skewX:mg,skewY:xg};var Sg=function(){function Element(h,d){var g,x,b=this,S=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Yp(this,Element),this.document=h,this.node=d,this.captureTextNodes=S,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],d&&1===d.nodeType){if(qf(g=Rv(d.attributes)).call(g,(function(d){var g=normalizeAttributeName(d.nodeName);b.attributes[g]=new ng(h,g,d.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var w,E=xs(w=this.getAttribute("style").getString().split(";")).call(w,(function(h){return Fy(h).call(h)}));qf(E).call(E,(function(d){var g;if(d){var x=xs(g=d.split(":")).call(g,(function(h){return Fy(h).call(h)})),S=Df(x,2),w=S[0],E=S[1];b.styles[w]=new ng(h,w,E)}}))}var _=h.definitions,P=this.getAttribute("id");P.hasValue()&&(_[P.getValue()]||(_[P.getValue()]=this)),qf(x=Rv(d.childNodes)).call(x,(function(d){if(1===d.nodeType)b.addChild(d);else if(S&&(3===d.nodeType||4===d.nodeType)){var g=h.createTextNode(d);g.getText().length>0&&b.addChild(g)}}))}}return Wp(Element,[{key:"getAttribute",value:function getAttribute(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=this.attributes[h];if(!g&&d){var x=new ng(this.document,h,"");return this.attributes[h]=x,x}return g||ng.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 ng.empty(this.document)}},{key:"getStyle",value:function getStyle(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]&&arguments[2],x=this.styles[h];if(x)return x;var b=this.getAttribute(h);if(b&&b.hasValue())return this.styles[h]=b,b;if(!g){var S=this.parent;if(S){var w=S.getStyle(h);if(w&&w.hasValue())return w}}if(d){var E=new ng(this.document,h,"");return this.styles[h]=E,E}return x||ng.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 d=this.getStyle("mask").getDefinition();d&&(this.applyEffects(h),d.apply(h,this))}else if("none"!==this.getStyle("filter").getValue("none")){var g=this.getStyle("filter").getDefinition();g&&(this.applyEffects(h),g.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 d=bg.fromElement(this.document,this);d&&d.apply(h);var g=this.getStyle("clip-path",!1,!0);if(g.hasValue()){var x=g.getDefinition();x&&x.apply(h)}}},{key:"clearContext",value:function clearContext(h){}},{key:"renderChildren",value:function renderChildren(h){var d;qf(d=this.children).call(d,(function(d){d.render(h)}))}},{key:"addChild",value:function addChild(h){var d,g=h instanceof Element?h:this.document.createElement(h);g.parent=this,Cv(d=Element.ignoreChildTypes).call(d,g.type)||this.children.push(g)}},{key:"matchesSelector",value:function matchesSelector(h){var d,g=this.node;if("function"==typeof g.matches)return g.matches(h);var x=g.getAttribute("class");return!(!x||""===x)&&Sv(d=x.split(" ")).call(d,(function(d){if(".".concat(d)===h)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var h=this.document,d=h.styles,g=h.stylesSpecificity;for(var x in d)if("@"!==x[0]&&this.matchesSelector(x)){var b=d[x],S=g[x];if(b)for(var w in b){var E=this.stylesSpecificity[w];void 0===E&&(E="000"),S>=E&&(this.styles[w]=b[w],this.stylesSpecificity[w]=S)}}}},{key:"removeStyles",value:function removeStyles(h,d){return uy(d).call(d,(function(d,g){var x,b=h.getStyle(g);if(!b.hasValue())return d;var S=b.getString();return b.setValue(""),Kp(x=[]).call(x,hv(d),[[g,S]])}),[])}},{key:"restoreStyles",value:function restoreStyles(h,d){qf(d).call(d,(function(d){var g=Df(d,2),x=g[0],b=g[1];h.getStyle(x,!0).setValue(b)}))}}]),Element}();function _createSuper$3(h){var d=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}Sg.ignoreChildTypes=["title"];var wg=function(h){ev(UnknownElement,h);var d=_createSuper$3(UnknownElement);function UnknownElement(h,g,x){return Yp(this,UnknownElement),d.call(this,h,g,x)}return UnknownElement}(Sg);function wrapFontFamily(h){var d=Fy(h).call(h);return/^('|")/.test(d)?d:'"'.concat(d,'"')}function prepareFontStyle(h){if(!h)return"";var d=Fy(h).call(h).toLowerCase();switch(d){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return d;default:return/^oblique\s+(-|)\d+deg$/.test(d)?d:""}}function prepareFontWeight(h){if(!h)return"";var d=Fy(h).call(h).toLowerCase();switch(d){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return d;default:return/^[\d.]+$/.test(d)?d:""}}var Eg=function(){function Font(h,d,g,x,b,S){Yp(this,Font);var w=S?"string"==typeof S?Font.parse(S):S:{};this.fontFamily=b||w.fontFamily,this.fontSize=x||w.fontSize,this.fontStyle=h||w.fontStyle,this.fontWeight=g||w.fontWeight,this.fontVariant=d||w.fontVariant}return Wp(Font,[{key:"toString",value:function toString(){var h,d,g;return Fy(h=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(d=this.fontFamily,void 0===ba?d:xs(g=Fy(d).call(d).split(",")).call(g,wrapFontFamily).join(","))].join(" ")).call(h)}}],[{key:"parse",value:function parse(){var h,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",g=arguments.length>1?arguments[1]:void 0,x="",b="",S="",w="",E="",_=Fy(h=compressSpaces(d)).call(h).split(" "),P={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return qf(_).call(_,(function(h){var d,g,_;switch(!0){case!P.fontStyle&&Cv(d=Font.styles).call(d,h):"inherit"!==h&&(x=h),P.fontStyle=!0;break;case!P.fontVariant&&Cv(g=Font.variants).call(g,h):"inherit"!==h&&(b=h),P.fontStyle=!0,P.fontVariant=!0;break;case!P.fontWeight&&Cv(_=Font.weights).call(_,h):"inherit"!==h&&(S=h),P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0;break;case!P.fontSize:if("inherit"!==h){var A=h.split("/"),k=Df(A,1);w=k[0]}P.fontStyle=!0,P.fontVariant=!0,P.fontWeight=!0,P.fontSize=!0;break;default:"inherit"!==h&&(E+=h)}})),new Font(x,b,S,w,E,g)}}]),Font}();Eg.styles="normal|italic|oblique|inherit",Eg.variants="normal|small-caps|inherit",Eg.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var _g=function(){function BoundingBox(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,x=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;Yp(this,BoundingBox),this.x1=h,this.y1=d,this.x2=g,this.y2=x,this.addPoint(h,d),this.addPoint(g,x)}return Wp(BoundingBox,[{key:"addPoint",value:function addPoint(h,d){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!==d&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=d,this.y2=d),d<this.y1&&(this.y1=d),d>this.y2&&(this.y2=d))}},{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 d=h.x1,g=h.y1,x=h.x2,b=h.y2;this.addPoint(d,g),this.addPoint(x,b)}}},{key:"sumCubic",value:function sumCubic(h,d,g,x,b){return Math.pow(1-h,3)*d+3*Math.pow(1-h,2)*h*g+3*(1-h)*Math.pow(h,2)*x+Math.pow(h,3)*b}},{key:"bezierCurveAdd",value:function bezierCurveAdd(h,d,g,x,b){var S=6*d-12*g+6*x,w=-3*d+9*g-9*x+3*b,E=3*g-3*d;if(0!==w){var _=Math.pow(S,2)-4*E*w;if(!(_<0)){var P=(-S+Math.sqrt(_))/(2*w);0<P&&P<1&&(h?this.addX(this.sumCubic(P,d,g,x,b)):this.addY(this.sumCubic(P,d,g,x,b)));var A=(-S-Math.sqrt(_))/(2*w);0<A&&A<1&&(h?this.addX(this.sumCubic(A,d,g,x,b)):this.addY(this.sumCubic(A,d,g,x,b)))}}else{if(0===S)return;var k=-E/S;0<k&&k<1&&(h?this.addX(this.sumCubic(k,d,g,x,b)):this.addY(this.sumCubic(k,d,g,x,b)))}}},{key:"addBezierCurve",value:function addBezierCurve(h,d,g,x,b,S,w,E){this.addPoint(h,d),this.addPoint(w,E),this.bezierCurveAdd(!0,h,g,b,w),this.bezierCurveAdd(!1,d,x,S,E)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(h,d,g,x,b,S){var w=h+2/3*(g-h),E=d+2/3*(x-d),_=w+1/3*(b-h),P=E+1/3*(S-d);this.addBezierCurve(h,d,w,_,E,P,b,S)}},{key:"isPointInBox",value:function isPointInBox(h,d){var g=this.x1,x=this.y1,b=this.x2,S=this.y2;return g<=h&&h<=b&&x<=d&&d<=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 d=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Tg=function(h){ev(RenderedElement,h);var d=_createSuper$4(RenderedElement);function RenderedElement(){var h;return Yp(this,RenderedElement),(h=d.apply(this,arguments)).modifiedEmSizeStack=!1,h}return Wp(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var h=1,d=this;d;){var g=d.getStyle("opacity",!1,!0);g.hasValue(!0)&&(h*=g.getNumber()),d=d.parent}return h}},{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!d){var g=this.getStyle("fill"),x=this.getStyle("fill-opacity"),b=this.getStyle("stroke"),S=this.getStyle("stroke-opacity");if(g.isUrlDefinition()){var w=g.getFillStyleDefinition(this,x);w&&(h.fillStyle=w)}else if(g.hasValue()){"currentColor"===g.getString()&&g.setValue(this.getStyle("color").getColor());var E=g.getColor();"inherit"!==E&&(h.fillStyle="none"===E?"rgba(0,0,0,0)":E)}if(x.hasValue()){var _=new ng(this.document,"fill",h.fillStyle).addOpacity(x).getColor();h.fillStyle=_}if(b.isUrlDefinition()){var P=b.getFillStyleDefinition(this,S);P&&(h.strokeStyle=P)}else if(b.hasValue()){"currentColor"===b.getString()&&b.setValue(this.getStyle("color").getColor());var A=b.getString();"inherit"!==A&&(h.strokeStyle="none"===A?"rgba(0,0,0,0)":A)}if(S.hasValue()){var k=new ng(this.document,"stroke",h.strokeStyle).addOpacity(S).getString();h.strokeStyle=k}var C=this.getStyle("stroke-width");if(C.hasValue()){var R=C.getPixels();h.lineWidth=R||rg}var M=this.getStyle("stroke-linecap"),N=this.getStyle("stroke-linejoin"),D=this.getStyle("stroke-miterlimit"),V=this.getStyle("paint-order"),L=this.getStyle("stroke-dasharray"),j=this.getStyle("stroke-dashoffset");if(M.hasValue()&&(h.lineCap=M.getString()),N.hasValue()&&(h.lineJoin=N.getString()),D.hasValue()&&(h.miterLimit=D.getNumber()),V.hasValue()&&(h.paintOrder=V.getValue()),L.hasValue()&&"none"!==L.getString()){var $=toNumbers(L.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 z=this.getStyle("font"),U=this.getStyle("font-style"),G=this.getStyle("font-variant"),X=this.getStyle("font-weight"),Y=this.getStyle("font-size"),W=this.getStyle("font-family"),q=new Eg(U.getString(),G.getString(),X.getString(),Y.hasValue()?"".concat(Y.getPixels(!0),"px"):"",W.getString(),Eg.parse(z.getString(),h.font));U.setValue(q.fontStyle),G.setValue(q.fontVariant),X.setValue(q.fontWeight),Y.setValue(q.fontSize),W.setValue(q.fontFamily),h.font=q.toString(),Y.isPixels()&&(this.document.emSize=Y.getPixels(),this.modifiedEmSizeStack=!0)}d||(this.applyEffects(h),h.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(h){Wv(sv(RenderedElement.prototype),"clearContext",this).call(this,h),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}(Sg);function _createSuper$5(h){var d=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Pg=function(h){ev(TextElement,h);var d=_createSuper$5(TextElement);function TextElement(h,g,x){var b;return Yp(this,TextElement),(b=d.call(this,h,g,(this instanceof TextElement?this.constructor:void 0)===TextElement||x)).type="text",b.x=0,b.y=0,b.measureCache=-1,b}return Wp(TextElement,[{key:"setContext",value:function setContext(h){var d=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Wv(sv(TextElement.prototype),"setContext",this).call(this,h,d);var g=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();g&&(h.textBaseline=g)}},{key:"initializeCoordinates",value:function initializeCoordinates(h){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var d=this.getAttribute("dx"),g=this.getAttribute("dy");d.hasValue()&&(this.x+=d.getPixels("x")),g.hasValue()&&(this.y+=g.getPixels("y")),this.x+=this.getAnchorDelta(h,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=this;if("text"!==this.type)return this.getTElementBoundingBox(h);this.initializeCoordinates(h);var x=null;return qf(d=this.children).call(d,(function(d,b){var S=g.getChildBoundingBox(h,g,g,b);x?x.addBoundingBox(S):x=S})),x}},{key:"getFontSize",value:function getFontSize(){var h=this.document,d=this.parent,g=Eg.parse(h.ctx.font).fontSize;return d.getStyle("font-size").getNumber(g)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(h){var d=this.getFontSize();return new _g(this.x,this.y-d,this.x+this.measureText(h),this.y)}},{key:"getGlyph",value:function getGlyph(h,d,g){var x=d[g],b=null;if(h.isArabic){var S=d.length,w=d[g-1],E=d[g+1],_="isolated";(0===g||" "===w)&&g<S-2&&" "!==E&&(_="terminal"),g>0&&" "!==w&&g<S-2&&" "!==E&&(_="medial"),g>0&&" "!==w&&(g===S-1||" "===E)&&(_="initial"),void 0!==h.glyphs[x]&&((b=h.glyphs[x][_])||"glyph"!==h.glyphs[x].type||(b=h.glyphs[x]))}else b=h.glyphs[x];return b||(b=h.missingGlyph),b}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(h){var d=h||this.node,g=Rv(d.parentNode.childNodes),x=Gv(g).call(g,d),b=g.length-1,S=compressSpaces(d.value||d.text||d.textContent||"");return 0===x&&(S=function trimLeft(h){return h.replace(/^[\n \t]+/,"")}(S)),x===b&&(S=function trimRight(h){return h.replace(/[\n \t]+$/,"")}(S)),S}},{key:"renderChildren",value:function renderChildren(h){var d,g=this;if("text"===this.type){this.initializeCoordinates(h),qf(d=this.children).call(d,(function(d,x){g.renderChild(h,g,g,x)}));var x=this.document.screen.mouse;x.isWorking()&&x.checkBoundingBox(this,this.getBoundingBox(h))}else this.renderTElementChildren(h)}},{key:"renderTElementChildren",value:function renderTElementChildren(h){var d=this.document,g=this.parent,x=this.getText(),b=g.getStyle("font-family").getDefinition();if(b)for(var S,w=b.fontFace.unitsPerEm,E=Eg.parse(d.ctx.font),_=g.getStyle("font-size").getNumber(E.fontSize),P=g.getStyle("font-style").getString(E.fontStyle),A=_/w,k=b.isRTL?Vv(S=x.split("")).call(S).join(""):x,C=toNumbers(g.getAttribute("dx").getString()),R=k.length,M=0;M<R;M++){var N=this.getGlyph(b,k,M);h.translate(this.x,this.y),h.scale(A,-A);var D=h.lineWidth;h.lineWidth=h.lineWidth*w/_,"italic"===P&&h.transform(1,0,.4,1,0,0),N.render(h),"italic"===P&&h.transform(1,0,-.4,1,0,0),h.lineWidth=D,h.scale(1/A,-1/A),h.translate(-this.x,-this.y),this.x+=_*(N.horizAdvX||b.horizAdvX)/w,void 0===C[M]||isNaN(C[M])||(this.x+=C[M])}else{var V=this.x,L=this.y;"stroke"===h.paintOrder?(h.strokeStyle&&h.strokeText(x,V,L),h.fillStyle&&h.fillText(x,V,L)):(h.fillStyle&&h.fillText(x,V,L),h.strokeStyle&&h.strokeText(x,V,L))}}},{key:"getAnchorDelta",value:function getAnchorDelta(h,d,g){var x=this.getStyle("text-anchor").getString("start");if("start"!==x){for(var b=d.children,S=b.length,w=null,E=0,_=g;_<S&&(w=b[_],!(_>g&&w.getAttribute("x").hasValue()||w.getAttribute("text-anchor").hasValue()));_++)E+=w.measureTextRecursive(h);return-1*("end"===x?E:E/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(h,d,g,x){var b=g.children[x];if("function"!=typeof b.measureText)return b;h.save(),b.setContext(h,!0);var S=b.getAttribute("x"),w=b.getAttribute("y"),E=b.getAttribute("dx"),_=b.getAttribute("dy"),P=b.getAttribute("text-anchor").getString("start");if(0===x&&"textNode"!==b.type&&(S.hasValue()||S.setValue(d.getAttribute("x").getValue("0")),w.hasValue()||w.setValue(d.getAttribute("y").getValue("0")),E.hasValue()||E.setValue(d.getAttribute("dx").getValue("0")),_.hasValue()||_.setValue(d.getAttribute("dy").getValue("0"))),S.hasValue()){if(b.x=S.getPixels("x")+d.getAnchorDelta(h,g,x),"start"!==P){var A=b.measureTextRecursive(h);b.x+=-1*("end"===P?A:A/2)}E.hasValue()&&(b.x+=E.getPixels("x"))}else{if("start"!==P){var k=b.measureTextRecursive(h);d.x+=-1*("end"===P?k:k/2)}E.hasValue()&&(d.x+=E.getPixels("x")),b.x=d.x}return d.x=b.x+b.measureText(h),w.hasValue()?(b.y=w.getPixels("y"),_.hasValue()&&(b.y+=_.getPixels("y"))):(_.hasValue()&&(d.y+=_.getPixels("y")),b.y=d.y),d.y=b.y,b.clearContext(h),h.restore(),b}},{key:"getChildBoundingBox",value:function getChildBoundingBox(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);if("function"!=typeof S.getBoundingBox)return null;var w=S.getBoundingBox(h);return w?(qf(b=S.children).call(b,(function(g,x){var b=d.getChildBoundingBox(h,d,S,x);w.addBoundingBox(b)})),w):null}},{key:"renderChild",value:function renderChild(h,d,g,x){var b,S=this.adjustChildCoordinates(h,d,g,x);S.render(h),qf(b=S.children).call(b,(function(g,x){d.renderChild(h,d,S,x)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(h){var d;return uy(d=this.children).call(d,(function(d,g){return d+g.measureTextRecursive(h)}),this.measureText(h))}},{key:"measureText",value:function measureText(h){var d=this.measureCache;if(~d)return d;var g=this.getText(),x=this.measureTargetText(h,g);return this.measureCache=x,x}},{key:"measureTargetText",value:function measureTargetText(h,d){if(!d.length)return 0;var g=this.parent,x=g.getStyle("font-family").getDefinition();if(x){for(var b,S=this.getFontSize(),w=x.isRTL?Vv(b=d.split("")).call(b).join(""):d,E=toNumbers(g.getAttribute("dx").getString()),_=w.length,P=0,A=0;A<_;A++){P+=(this.getGlyph(x,w,A).horizAdvX||x.horizAdvX)*S/x.fontFace.unitsPerEm,void 0===E[A]||isNaN(E[A])||(P+=E[A])}return P}if(!h.measureText)return 10*d.length;h.save(),this.setContext(h,!0);var k=h.measureText(d).width;return this.clearContext(h),h.restore(),k}}]),TextElement}(Tg);function _createSuper$6(h){var d=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Ag=function(h){ev(TSpanElement,h);var d=_createSuper$6(TSpanElement);function TSpanElement(h,g,x){var b;return Yp(this,TSpanElement),(b=d.call(this,h,g,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||x)).type="tspan",b.text=b.children.length>0?"":b.getTextFromNode(),b}return Wp(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}(Pg);function _createSuper$7(h){var d=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var kg=function(h){ev(TextNode,h);var d=_createSuper$7(TextNode);function TextNode(){var h;return Yp(this,TextNode),(h=d.apply(this,arguments)).type="textNode",h}return TextNode}(Ag);function _createSuper$8(h){var d=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Og=function(h){ev(PathParser,h);var d=_createSuper$8(PathParser);function PathParser(h){var g;return Yp(this,PathParser),(g=d.call(this,h.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,g.start=null,g.current=null,g.command=null,g.commands=g.commands,g.i=-1,g.previousCommand=null,g.points=[],g.angles=[],g}return Wp(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new ag(0,0),this.control=new ag(0,0),this.current=new ag(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",d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",g=new ag(this.command[h],this.command[d]);return this.makeAbsolute(g)}},{key:"getAsControlPoint",value:function getAsControlPoint(h,d){var g=this.getPoint(h,d);return this.control=g,g}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(h,d){var g=this.getPoint(h,d);return this.current=g,g}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var h=this.previousCommand.type;if(h!==ud.CURVE_TO&&h!==ud.SMOOTH_CURVE_TO&&h!==ud.QUAD_TO&&h!==ud.SMOOTH_QUAD_TO)return this.current;var d=this.current,g=d.x,x=d.y,b=this.control,S=b.x,w=b.y;return new ag(2*g-S,2*x-w)}},{key:"makeAbsolute",value:function makeAbsolute(h){if(this.command.relative){var d=this.current,g=d.x,x=d.y;h.x+=g,h.y+=x}return h}},{key:"addMarker",value:function addMarker(h,d,g){var x=this.points,b=this.angles;g&&b.length>0&&!b[b.length-1]&&(b[b.length-1]=x[x.length-1].angleTo(g)),this.addMarkerAngle(h,d?d.angleTo(h):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(h,d){this.points.push(h),this.angles.push(d)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var h=this.angles,d=h.length,g=0;g<d;g++)if(!h[g])for(var x=g+1;x<d;x++)if(h[x]){h[g]=h[x];break}return h}}]),PathParser}(ud);function _createSuper$9(h){var d=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Cg=function(h){ev(PathElement,h);var d=_createSuper$9(PathElement);function PathElement(h,g,x){var b;return Yp(this,PathElement),(b=d.call(this,h,g,x)).type="path",b.pathParser=null,b.pathParser=new Og(b.getAttribute("d").getString()),b}return Wp(PathElement,[{key:"path",value:function path(h){var d=this.pathParser,g=new _g;for(d.reset(),h&&h.beginPath();!d.isEnd();)switch(d.next().type){case Og.MOVE_TO:this.pathM(h,g);break;case Og.LINE_TO:this.pathL(h,g);break;case Og.HORIZ_LINE_TO:this.pathH(h,g);break;case Og.VERT_LINE_TO:this.pathV(h,g);break;case Og.CURVE_TO:this.pathC(h,g);break;case Og.SMOOTH_CURVE_TO:this.pathS(h,g);break;case Og.QUAD_TO:this.pathQ(h,g);break;case Og.SMOOTH_QUAD_TO:this.pathT(h,g);break;case Og.ARC:this.pathA(h,g);break;case Og.CLOSE_PATH:this.pathZ(h,g)}return g}},{key:"getBoundingBox",value:function getBoundingBox(h){return this.path()}},{key:"getMarkers",value:function getMarkers(){var h=this.pathParser,d=h.getMarkerPoints(),g=h.getMarkerAngles();return xs(d).call(d,(function(h,d){return[h,g[d]]}))}},{key:"renderChildren",value:function renderChildren(h){this.path(h),this.document.screen.mouse.checkPath(this,h);var d=this.getStyle("fill-rule");""!==h.fillStyle&&("inherit"!==d.getString("inherit")?Kv(h).call(h,d.getString()):Kv(h).call(h)),""!==h.strokeStyle&&h.stroke();var g=this.getMarkers();if(g){var x=g.length-1,b=this.getStyle("marker-start"),S=this.getStyle("marker-mid"),w=this.getStyle("marker-end");if(b.isUrlDefinition()){var E=b.getDefinition(),_=Df(g[0],2),P=_[0],A=_[1];E.render(h,P,A)}if(S.isUrlDefinition())for(var k=S.getDefinition(),C=1;C<x;C++){var R=Df(g[C],2),M=R[0],N=R[1];k.render(h,M,N)}if(w.isUrlDefinition()){var D=w.getDefinition(),V=Df(g[x],2),L=V[0],j=V[1];D.render(h,L,j)}}}},{key:"pathM",value:function pathM(h,d){var g=this.pathParser,x=PathElement.pathM(g).point,b=x.x,S=x.y;g.addMarker(x),d.addPoint(b,S),h&&h.moveTo(b,S)}},{key:"pathL",value:function pathL(h,d){var g=this.pathParser,x=PathElement.pathL(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathH",value:function pathH(h,d){var g=this.pathParser,x=PathElement.pathH(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathV",value:function pathV(h,d){var g=this.pathParser,x=PathElement.pathV(g),b=x.current,S=x.point,w=S.x,E=S.y;g.addMarker(S,b),d.addPoint(w,E),h&&h.lineTo(w,E)}},{key:"pathC",value:function pathC(h,d){var g=this.pathParser,x=PathElement.pathC(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathS",value:function pathS(h,d){var g=this.pathParser,x=PathElement.pathS(g),b=x.current,S=x.point,w=x.controlPoint,E=x.currentPoint;g.addMarker(E,w,S),d.addBezierCurve(b.x,b.y,S.x,S.y,w.x,w.y,E.x,E.y),h&&h.bezierCurveTo(S.x,S.y,w.x,w.y,E.x,E.y)}},{key:"pathQ",value:function pathQ(h,d){var g=this.pathParser,x=PathElement.pathQ(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathT",value:function pathT(h,d){var g=this.pathParser,x=PathElement.pathT(g),b=x.current,S=x.controlPoint,w=x.currentPoint;g.addMarker(w,S,S),d.addQuadraticCurve(b.x,b.y,S.x,S.y,w.x,w.y),h&&h.quadraticCurveTo(S.x,S.y,w.x,w.y)}},{key:"pathA",value:function pathA(h,d){var g=this.pathParser,x=PathElement.pathA(g),b=x.currentPoint,S=x.rX,w=x.rY,E=x.sweepFlag,_=x.xAxisRotation,P=x.centp,A=x.a1,k=x.ad,C=1-E?1:-1,R=A+C*(k/2),M=new ag(P.x+S*Math.cos(R),P.y+w*Math.sin(R));if(g.addMarkerAngle(M,R-C*Math.PI/2),g.addMarkerAngle(b,R-C*Math.PI),d.addPoint(b.x,b.y),h&&!isNaN(A)&&!isNaN(k)){var N=S>w?S:w,D=S>w?1:S/w,V=S>w?w/S:1;h.translate(P.x,P.y),h.rotate(_),h.scale(D,V),h.arc(0,0,N,A,A+k,Boolean(1-E)),h.scale(1/D,1/V),h.rotate(-_),h.translate(-P.x,-P.y)}}},{key:"pathZ",value:function pathZ(h,d){PathElement.pathZ(this.pathParser),h&&d.x1!==d.x2&&d.y1!==d.y2&&h.closePath()}}],[{key:"pathM",value:function pathM(h){var d=h.getAsCurrentPoint();return h.start=h.current,{point:d}}},{key:"pathL",value:function pathL(h){return{current:h.current,point:h.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(h){var d=h.current,g=h.command,x=new ag((g.relative?d.x:0)+g.x,d.y);return h.current=x,{current:d,point:x}}},{key:"pathV",value:function pathV(h){var d=h.current,g=h.command,x=new ag(d.x,(g.relative?d.y:0)+g.y);return h.current=x,{current:d,point:x}}},{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 d=h.current,g=h.getReflectedControlPoint();return h.control=g,{current:d,controlPoint:g,currentPoint:h.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(h){var d=h.current,g=h.command,x=g.rX,b=g.rY,S=g.xRot,w=g.lArcFlag,E=g.sweepFlag,_=S*(Math.PI/180),P=h.getAsCurrentPoint(),A=new ag(Math.cos(_)*(d.x-P.x)/2+Math.sin(_)*(d.y-P.y)/2,-Math.sin(_)*(d.x-P.x)/2+Math.cos(_)*(d.y-P.y)/2),k=Math.pow(A.x,2)/Math.pow(x,2)+Math.pow(A.y,2)/Math.pow(b,2);k>1&&(x*=Math.sqrt(k),b*=Math.sqrt(k));var C=(w===E?-1:1)*Math.sqrt((Math.pow(x,2)*Math.pow(b,2)-Math.pow(x,2)*Math.pow(A.y,2)-Math.pow(b,2)*Math.pow(A.x,2))/(Math.pow(x,2)*Math.pow(A.y,2)+Math.pow(b,2)*Math.pow(A.x,2)));isNaN(C)&&(C=0);var R=new ag(C*x*A.y/b,C*-b*A.x/x),M=new ag((d.x+P.x)/2+Math.cos(_)*R.x-Math.sin(_)*R.y,(d.y+P.y)/2+Math.sin(_)*R.x+Math.cos(_)*R.y),N=vectorsAngle([1,0],[(A.x-R.x)/x,(A.y-R.y)/b]),D=[(A.x-R.x)/x,(A.y-R.y)/b],V=[(-A.x-R.x)/x,(-A.y-R.y)/b],L=vectorsAngle(D,V);return vectorsRatio(D,V)<=-1&&(L=Math.PI),vectorsRatio(D,V)>=1&&(L=0),{currentPoint:P,rX:x,rY:b,sweepFlag:E,xAxisRotation:_,centp:M,a1:N,ad:L}}},{key:"pathZ",value:function pathZ(h){h.current=h.start}}]),PathElement}(Tg);function _createSuper$a(h){var d=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Rg=function(h){ev(SVGElement,h);var d=_createSuper$a(SVGElement);function SVGElement(){var h;return Yp(this,SVGElement),(h=d.apply(this,arguments)).type="svg",h.root=!1,h}return Wp(SVGElement,[{key:"setContext",value:function setContext(h){var d=this.document,g=d.screen,x=d.window,b=h.canvas;if(g.setDefaults(h),b.style&&void 0!==h.font&&x&&void 0!==x.getComputedStyle){h.font=x.getComputedStyle(b).getPropertyValue("font");var S=new ng(d,"fontSize",Eg.parse(h.font).fontSize);S.hasValue()&&(d.rootEmSize=S.getPixels("y"),d.emSize=d.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var w=g.viewPort,E=w.width,_=w.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 P=this.getAttribute("refX"),A=this.getAttribute("refY"),k=this.getAttribute("viewBox"),C=k.hasValue()?toNumbers(k.getString()):null,R=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),M=0,N=0,D=0,V=0;C&&(M=C[0],N=C[1]),this.root||(E=this.getStyle("width").getPixels("x"),_=this.getStyle("height").getPixels("y"),"marker"===this.type&&(D=M,V=N,M=0,N=0)),g.viewPort.setCurrent(E,_),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Wv(sv(SVGElement.prototype),"setContext",this).call(this,h),h.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),C&&(E=C[2],_=C[3]),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:g.viewPort.width,desiredWidth:E,height:g.viewPort.height,desiredHeight:_,minX:M,minY:N,refX:P.getValue(),refY:A.getValue(),clip:R,clipX:D,clipY:V}),C&&(g.viewPort.removeCurrent(),g.viewPort.setCurrent(E,_))}},{key:"clearContext",value:function clearContext(h){Wv(sv(SVGElement.prototype),"clearContext",this).call(this,h),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(h){var d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,x=arguments.length>2&&void 0!==arguments[2]&&arguments[2],b=this.getAttribute("width",!0),S=this.getAttribute("height",!0),w=this.getAttribute("viewBox"),E=this.getAttribute("style"),_=b.getNumber(0),P=S.getNumber(0);if(x)if("string"==typeof x)this.getAttribute("preserveAspectRatio",!0).setValue(x);else{var A=this.getAttribute("preserveAspectRatio");A.hasValue()&&A.setValue(A.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(b.setValue(h),S.setValue(g),w.hasValue())||w.setValue(Kp(d="0 0 ".concat(_||h," ")).call(d,P||g));if(E.hasValue()){var k=this.getStyle("width"),C=this.getStyle("height");k.hasValue()&&k.setValue("".concat(h,"px")),C.hasValue()&&C.setValue("".concat(g,"px"))}}}]),SVGElement}(Tg);function _createSuper$b(h){var d=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Mg=function(h){ev(RectElement,h);var d=_createSuper$b(RectElement);function RectElement(){var h;return Yp(this,RectElement),(h=d.apply(this,arguments)).type="rect",h}return Wp(RectElement,[{key:"path",value:function path(h){var d=this.getAttribute("x").getPixels("x"),g=this.getAttribute("y").getPixels("y"),x=this.getStyle("width",!1,!0).getPixels("x"),b=this.getStyle("height",!1,!0).getPixels("y"),S=this.getAttribute("rx"),w=this.getAttribute("ry"),E=S.getPixels("x"),_=w.getPixels("y");if(S.hasValue()&&!w.hasValue()&&(_=E),w.hasValue()&&!S.hasValue()&&(E=_),E=Math.min(E,x/2),_=Math.min(_,b/2),h){var P=(Math.sqrt(2)-1)/3*4;h.beginPath(),b>0&&x>0&&(h.moveTo(d+E,g),h.lineTo(d+x-E,g),h.bezierCurveTo(d+x-E+P*E,g,d+x,g+_-P*_,d+x,g+_),h.lineTo(d+x,g+b-_),h.bezierCurveTo(d+x,g+b-_+P*_,d+x-E+P*E,g+b,d+x-E,g+b),h.lineTo(d+E,g+b),h.bezierCurveTo(d+E-P*E,g+b,d,g+b-_+P*_,d,g+b-_),h.lineTo(d,g+_),h.bezierCurveTo(d,g+_-P*_,d+E-P*E,g,d+E,g),h.closePath())}return new _g(d,g,d+x,g+b)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}(Cg);function _createSuper$c(h){var d=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Ng=function(h){ev(CircleElement,h);var d=_createSuper$c(CircleElement);function CircleElement(){var h;return Yp(this,CircleElement),(h=d.apply(this,arguments)).type="circle",h}return Wp(CircleElement,[{key:"path",value:function path(h){var d=this.getAttribute("cx").getPixels("x"),g=this.getAttribute("cy").getPixels("y"),x=this.getAttribute("r").getPixels();return h&&x>0&&(h.beginPath(),h.arc(d,g,x,0,2*Math.PI,!1),h.closePath()),new _g(d-x,g-x,d+x,g+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}(Cg);function _createSuper$d(h){var d=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Ig=function(h){ev(EllipseElement,h);var d=_createSuper$d(EllipseElement);function EllipseElement(){var h;return Yp(this,EllipseElement),(h=d.apply(this,arguments)).type="ellipse",h}return Wp(EllipseElement,[{key:"path",value:function path(h){var d=(Math.sqrt(2)-1)/3*4,g=this.getAttribute("rx").getPixels("x"),x=this.getAttribute("ry").getPixels("y"),b=this.getAttribute("cx").getPixels("x"),S=this.getAttribute("cy").getPixels("y");return h&&g>0&&x>0&&(h.beginPath(),h.moveTo(b+g,S),h.bezierCurveTo(b+g,S+d*x,b+d*g,S+x,b,S+x),h.bezierCurveTo(b-d*g,S+x,b-g,S+d*x,b-g,S),h.bezierCurveTo(b-g,S-d*x,b-d*g,S-x,b,S-x),h.bezierCurveTo(b+d*g,S-x,b+g,S-d*x,b+g,S),h.closePath()),new _g(b-g,S-x,b+g,S+x)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}(Cg);function _createSuper$e(h){var d=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Dg=function(h){ev(LineElement,h);var d=_createSuper$e(LineElement);function LineElement(){var h;return Yp(this,LineElement),(h=d.apply(this,arguments)).type="line",h}return Wp(LineElement,[{key:"getPoints",value:function getPoints(){return[new ag(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new ag(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(h){var d=this.getPoints(),g=Df(d,2),x=g[0],b=x.x,S=x.y,w=g[1],E=w.x,_=w.y;return h&&(h.beginPath(),h.moveTo(b,S),h.lineTo(E,_)),new _g(b,S,E,_)}},{key:"getMarkers",value:function getMarkers(){var h=this.getPoints(),d=Df(h,2),g=d[0],x=d[1],b=g.angleTo(x);return[[g,b],[x,b]]}}]),LineElement}(Cg);function _createSuper$f(h){var d=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Vg=function(h){ev(PolylineElement,h);var d=_createSuper$f(PolylineElement);function PolylineElement(h,g,x){var b;return Yp(this,PolylineElement),(b=d.call(this,h,g,x)).type="polyline",b.points=[],b.points=ag.parsePath(b.getAttribute("points").getString()),b}return Wp(PolylineElement,[{key:"path",value:function path(h){var d=this.points,g=Df(d,1)[0],x=g.x,b=g.y,S=new _g(x,b);return h&&(h.beginPath(),h.moveTo(x,b)),qf(d).call(d,(function(d){var g=d.x,x=d.y;S.addPoint(g,x),h&&h.lineTo(g,x)})),S}},{key:"getMarkers",value:function getMarkers(){var h=this.points,d=h.length-1,g=[];return qf(h).call(h,(function(x,b){b!==d&&g.push([x,x.angleTo(h[b+1])])})),g.length>0&&g.push([h[h.length-1],g[g.length-1][1]]),g}}]),PolylineElement}(Cg);function _createSuper$g(h){var d=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Lg=function(h){ev(PolygonElement,h);var d=_createSuper$g(PolygonElement);function PolygonElement(){var h;return Yp(this,PolygonElement),(h=d.apply(this,arguments)).type="polygon",h}return Wp(PolygonElement,[{key:"path",value:function path(h){var d=Wv(sv(PolygonElement.prototype),"path",this).call(this,h),g=Df(this.points,1)[0],x=g.x,b=g.y;return h&&(h.lineTo(x,b),h.closePath()),d}}]),PolygonElement}(Vg);function _createSuper$h(h){var d=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var jg=function(h){ev(PatternElement,h);var d=_createSuper$h(PatternElement);function PatternElement(){var h;return Yp(this,PatternElement),(h=d.apply(this,arguments)).type="pattern",h}return Wp(PatternElement,[{key:"createPattern",value:function createPattern(h,d,g){var x=this.getStyle("width").getPixels("x",!0),b=this.getStyle("height").getPixels("y",!0),S=new Rg(this.document,null);S.attributes.viewBox=new ng(this.document,"viewBox",this.getAttribute("viewBox").getValue()),S.attributes.width=new ng(this.document,"width","".concat(x,"px")),S.attributes.height=new ng(this.document,"height","".concat(b,"px")),S.attributes.transform=new ng(this.document,"transform",this.getAttribute("patternTransform").getValue()),S.children=this.children;var w=this.document.createCanvas(x,b),E=w.getContext("2d"),_=this.getAttribute("x"),P=this.getAttribute("y");_.hasValue()&&P.hasValue()&&E.translate(_.getPixels("x",!0),P.getPixels("y",!0)),g.hasValue()?this.styles["fill-opacity"]=g:ld(this.styles,"fill-opacity");for(var A=-1;A<=1;A++)for(var k=-1;k<=1;k++)E.save(),S.attributes.x=new ng(this.document,"x",A*w.width),S.attributes.y=new ng(this.document,"y",k*w.height),S.render(E),E.restore();return h.createPattern(w,"repeat")}}]),PatternElement}(Sg);function _createSuper$i(h){var d=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var $g=function(h){ev(MarkerElement,h);var d=_createSuper$i(MarkerElement);function MarkerElement(){var h;return Yp(this,MarkerElement),(h=d.apply(this,arguments)).type="marker",h}return Wp(MarkerElement,[{key:"render",value:function render(h,d,g){if(d){var x=d.x,b=d.y,S=this.getAttribute("orient").getValue("auto"),w=this.getAttribute("markerUnits").getValue("strokeWidth");h.translate(x,b),"auto"===S&&h.rotate(g),"strokeWidth"===w&&h.scale(h.lineWidth,h.lineWidth),h.save();var E=new Rg(this.document,null);E.type=this.type,E.attributes.viewBox=new ng(this.document,"viewBox",this.getAttribute("viewBox").getValue()),E.attributes.refX=new ng(this.document,"refX",this.getAttribute("refX").getValue()),E.attributes.refY=new ng(this.document,"refY",this.getAttribute("refY").getValue()),E.attributes.width=new ng(this.document,"width",this.getAttribute("markerWidth").getValue()),E.attributes.height=new ng(this.document,"height",this.getAttribute("markerHeight").getValue()),E.attributes.overflow=new ng(this.document,"overflow",this.getAttribute("overflow").getValue()),E.attributes.fill=new ng(this.document,"fill",this.getAttribute("fill").getColor("black")),E.attributes.stroke=new ng(this.document,"stroke",this.getAttribute("stroke").getValue("none")),E.children=this.children,E.render(h),h.restore(),"strokeWidth"===w&&h.scale(1/h.lineWidth,1/h.lineWidth),"auto"===S&&h.rotate(-g),h.translate(-x,-b)}}}]),MarkerElement}(Sg);function _createSuper$j(h){var d=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Fg=function(h){ev(DefsElement,h);var d=_createSuper$j(DefsElement);function DefsElement(){var h;return Yp(this,DefsElement),(h=d.apply(this,arguments)).type="defs",h}return Wp(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}(Sg);function _createSuper$k(h){var d=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Bg=function(h){ev(GElement,h);var d=_createSuper$k(GElement);function GElement(){var h;return Yp(this,GElement),(h=d.apply(this,arguments)).type="g",h}return Wp(GElement,[{key:"getBoundingBox",value:function getBoundingBox(h){var d,g=new _g;return qf(d=this.children).call(d,(function(d){g.addBoundingBox(d.getBoundingBox(h))})),g}}]),GElement}(Tg);function _createSuper$l(h){var d=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var zg=function(h){ev(GradientElement,h);var d=_createSuper$l(GradientElement);function GradientElement(h,g,x){var b;Yp(this,GradientElement),(b=d.call(this,h,g,x)).attributesToInherit=["gradientUnits"],b.stops=[];var S=iv(b),w=S.stops,E=S.children;return qf(E).call(E,(function(h){"stop"===h.type&&w.push(h)})),b}return Wp(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(h,d,g){var x=this,b=this;this.getHrefAttribute().hasValue()&&(b=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(b));var S=b.stops,w=this.getGradient(h,d);if(!w)return this.addParentOpacity(g,S[S.length-1].color);if(qf(S).call(S,(function(h){w.addColorStop(h.offset,x.addParentOpacity(g,h.color))})),this.getAttribute("gradientTransform").hasValue()){var E=this.document,_=E.screen,P=_.MAX_VIRTUAL_PIXELS,A=_.viewPort,k=Df(A.viewPorts,1)[0],C=new Mg(E,null);C.attributes.x=new ng(E,"x",-P/3),C.attributes.y=new ng(E,"y",-P/3),C.attributes.width=new ng(E,"width",P),C.attributes.height=new ng(E,"height",P);var R=new Bg(E,null);R.attributes.transform=new ng(E,"transform",this.getAttribute("gradientTransform").getValue()),R.children=[C];var M=new Rg(E,null);M.attributes.x=new ng(E,"x",0),M.attributes.y=new ng(E,"y",0),M.attributes.width=new ng(E,"width",k.width),M.attributes.height=new ng(E,"height",k.height),M.children=[R];var N=E.createCanvas(k.width,k.height),D=N.getContext("2d");return D.fillStyle=w,M.render(D),D.createPattern(N,"no-repeat")}return w}},{key:"inheritStopContainer",value:function inheritStopContainer(h){var d,g=this;qf(d=this.attributesToInherit).call(d,(function(d){!g.getAttribute(d).hasValue()&&h.getAttribute(d).hasValue()&&g.getAttribute(d,!0).setValue(h.getAttribute(d).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(h,d){return h.hasValue()?new ng(this.document,"color",d).addOpacity(h).getColor():d}}]),GradientElement}(Sg);function _createSuper$m(h){var d=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Ug=function(h){ev(LinearGradientElement,h);var d=_createSuper$m(LinearGradientElement);function LinearGradientElement(h,g,x){var b;return Yp(this,LinearGradientElement),(b=d.call(this,h,g,x)).type="linearGradient",b.attributesToInherit.push("x1","y1","x2","y2"),b}return Wp(LinearGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=g?d.getBoundingBox(h):null;if(g&&!x)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 b=g?x.x+x.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),S=g?x.y+x.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),w=g?x.x+x.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),E=g?x.y+x.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return b===w&&S===E?null:h.createLinearGradient(b,S,w,E)}}]),LinearGradientElement}(zg);function _createSuper$n(h){var d=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Gg=function(h){ev(RadialGradientElement,h);var d=_createSuper$n(RadialGradientElement);function RadialGradientElement(h,g,x){var b;return Yp(this,RadialGradientElement),(b=d.call(this,h,g,x)).type="radialGradient",b.attributesToInherit.push("cx","cy","r","fx","fy","fr"),b}return Wp(RadialGradientElement,[{key:"getGradient",value:function getGradient(h,d){var g="objectBoundingBox"===this.getGradientUnits(),x=d.getBoundingBox(h);if(g&&!x)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 b=g?x.x+x.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),S=g?x.y+x.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),w=b,E=S;this.getAttribute("fx").hasValue()&&(w=g?x.x+x.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(E=g?x.y+x.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var _=g?(x.width+x.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),P=this.getAttribute("fr").getPixels();return h.createRadialGradient(w,E,P,b,S,_)}}]),RadialGradientElement}(zg);function _createSuper$o(h){var d=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Hg=function(h){ev(StopElement,h);var d=_createSuper$o(StopElement);function StopElement(h,g,x){var b;Yp(this,StopElement),(b=d.call(this,h,g,x)).type="stop";var S=Math.max(0,Math.min(1,b.getAttribute("offset").getNumber())),w=b.getStyle("stop-opacity"),E=b.getStyle("stop-color",!0);return""===E.getString()&&E.setValue("#000"),w.hasValue()&&(E=E.addOpacity(w)),b.offset=S,b.color=E.getColor(),b}return StopElement}(Sg);function _createSuper$p(h){var d=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Xg=function(h){ev(AnimateElement,h);var d=_createSuper$p(AnimateElement);function AnimateElement(h,g,x){var b;return Yp(this,AnimateElement),(b=d.call(this,h,g,x)).type="animate",b.duration=0,b.initialValue=null,b.initialUnits="",b.removed=!1,b.frozen=!1,h.screen.animations.push(iv(b)),b.begin=b.getAttribute("begin").getMilliseconds(),b.maxDuration=b.begin+b.getAttribute("dur").getMilliseconds(),b.from=b.getAttribute("from"),b.to=b.getAttribute("to"),b.values=b.getAttribute("values"),yd(b).hasValue()&&yd(b).setValue(yd(b).getString().split(";")),b}return Wp(AnimateElement,[{key:"getProperty",value:function getProperty(){var h=this.getAttribute("attributeType").getString(),d=this.getAttribute("attributeName").getString();return"CSS"===h?this.parent.getStyle(d,!0):this.parent.getAttribute(d,!0)}},{key:"calcValue",value:function calcValue(){var h,d=this.initialUnits,g=this.getProgress(),x=g.progress,b=g.from,S=g.to,w=b.getNumber()+(S.getNumber()-b.getNumber())*x;return"%"===d&&(w*=100),Kp(h="".concat(w)).call(h,d)}},{key:"update",value:function update(h){var d=this.parent,g=this.getProperty();if(this.initialValue||(this.initialValue=g.getString(),this.initialUnits=g.getUnits()),this.duration>this.maxDuration){var x=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==x||this.frozen){if("remove"===x&&!this.removed)return this.removed=!0,g.setValue(d.animationFrozen?d.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,d.animationFrozen=!0,d.animationFrozenValue=g.getString();return!1}this.duration+=h;var b=!1;if(this.begin<this.duration){var S=this.calcValue(),w=this.getAttribute("type");if(w.hasValue()){var E,_=w.getString();S=Kp(E="".concat(_,"(")).call(E,S,")")}g.setValue(S),b=!0}return b}},{key:"getProgress",value:function getProgress(){var h=this.document,d=yd(this),g={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(d.hasValue()){var x=g.progress*(d.getValue().length-1),b=Math.floor(x),S=Math.ceil(x);g.from=new ng(h,"from",zu(d.getValue()[b])),g.to=new ng(h,"to",zu(d.getValue()[S])),g.progress=(x-b)/(S-b)}else g.from=this.from,g.to=this.to;return g}}]),AnimateElement}(Sg);function _createSuper$q(h){var d=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Yg=function(h){ev(AnimateColorElement,h);var d=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var h;return Yp(this,AnimateColorElement),(h=d.apply(this,arguments)).type="animateColor",h}return Wp(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=new Hy(g.getColor()),S=new Hy(x.getColor());if(b.ok&&S.ok){var w,E,_=b.r+(S.r-b.r)*d,P=b.g+(S.g-b.g)*d,A=b.b+(S.b-b.b)*d;return Kp(w=Kp(E="rgb(".concat(xd(_,10),", ")).call(E,xd(P,10),", ")).call(w,xd(A,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}(Xg);function _createSuper$r(h){var d=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Wg=function(h){ev(AnimateTransformElement,h);var d=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var h;return Yp(this,AnimateTransformElement),(h=d.apply(this,arguments)).type="animateTransform",h}return Wp(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var h=this.getProgress(),d=h.progress,g=h.from,x=h.to,b=toNumbers(g.getString()),S=toNumbers(x.getString());return xs(b).call(b,(function(h,g){return h+(S[g]-h)*d})).join(" ")}}]),AnimateTransformElement}(Xg);function _createForOfIteratorHelper(h,d){var g;if(void 0===wd||null==Sd(h)){if(bd(h)||(g=function _unsupportedIterableToArray$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1(h,d);var x=Ed(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return Rv(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}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,w=!0,E=!1;return{s:function s(){g=ul(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function _createSuper$s(h){var d=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var qg=function(h){ev(FontElement,h);var d=_createSuper$s(FontElement);function FontElement(h,g,x){var b;Yp(this,FontElement),(b=d.call(this,h,g,x)).type="font",b.glyphs={},b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber();var S,w=h.definitions,E=_createForOfIteratorHelper(iv(b).children);try{for(E.s();!(S=E.n()).done;){var _=S.value;switch(_.type){case"font-face":b.fontFace=_;var P=_.getStyle("font-family");P.hasValue()&&(w[P.getString()]=iv(b));break;case"missing-glyph":b.missingGlyph=_;break;case"glyph":var A=_;A.arabicForm?(b.isRTL=!0,b.isArabic=!0,void 0===b.glyphs[A.unicode]&&(b.glyphs[A.unicode]={}),b.glyphs[A.unicode][A.arabicForm]=A):b.glyphs[A.unicode]=A}}}catch(h){E.e(h)}finally{E.f()}return b}return Wp(FontElement,[{key:"render",value:function render(){}}]),FontElement}(Sg);function _createSuper$t(h){var d=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Qg=function(h){ev(FontFaceElement,h);var d=_createSuper$t(FontFaceElement);function FontFaceElement(h,g,x){var b;return Yp(this,FontFaceElement),(b=d.call(this,h,g,x)).type="font-face",b.ascent=b.getAttribute("ascent").getNumber(),b.descent=b.getAttribute("descent").getNumber(),b.unitsPerEm=b.getAttribute("units-per-em").getNumber(),b}return FontFaceElement}(Sg);function _createSuper$u(h){var d=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Kg=function(h){ev(MissingGlyphElement,h);var d=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var h;return Yp(this,MissingGlyphElement),(h=d.apply(this,arguments)).type="missing-glyph",h.horizAdvX=0,h}return MissingGlyphElement}(Cg);function _createSuper$v(h){var d=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Zg=function(h){ev(GlyphElement,h);var d=_createSuper$v(GlyphElement);function GlyphElement(h,g,x){var b;return Yp(this,GlyphElement),(b=d.call(this,h,g,x)).type="glyph",b.horizAdvX=b.getAttribute("horiz-adv-x").getNumber(),b.unicode=b.getAttribute("unicode").getString(),b.arabicForm=b.getAttribute("arabic-form").getString(),b}return GlyphElement}(Cg);function _createSuper$w(h){var d=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var Jg=function(h){ev(TRefElement,h);var d=_createSuper$w(TRefElement);function TRefElement(){var h;return Yp(this,TRefElement),(h=d.apply(this,arguments)).type="tref",h}return Wp(TRefElement,[{key:"getText",value:function getText(){var h=this.getHrefAttribute().getDefinition();if(h){var d=h.children[0];if(d)return d.getText()}return""}}]),TRefElement}(Pg);function _createSuper$x(h){var d=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var tm=function(h){ev(AElement,h);var d=_createSuper$x(AElement);function AElement(h,g,x){var b,S;Yp(this,AElement),(S=d.call(this,h,g,x)).type="a";var w=g.childNodes,E=w[0],_=w.length>0&&gy(b=Rv(w)).call(b,(function(h){return 3===h.nodeType}));return S.hasText=_,S.text=_?S.getTextFromNode(E):"",S}return Wp(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(h){if(this.hasText){Wv(sv(AElement.prototype),"renderChildren",this).call(this,h);var d=this.document,g=this.x,x=this.y,b=d.screen.mouse,S=new ng(d,"fontSize",Eg.parse(d.ctx.font).fontSize);b.isWorking()&&b.checkBoundingBox(this,new _g(g,x-S.getPixels("y"),g+this.measureText(h),x))}else if(this.children.length>0){var w=new Bg(this.document,null);w.children=this.children,w.parent=this,w.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}(Pg);function _createForOfIteratorHelper$1(h,d){var g;if(void 0===wd||null==Sd(h)){if(bd(h)||(g=function _unsupportedIterableToArray$1$1(h,d){var g;if(!h)return;if("string"==typeof h)return _arrayLikeToArray$1$1(h,d);var x=Ed(g=Object.prototype.toString.call(h)).call(g,8,-1);"Object"===x&&h.constructor&&(x=h.constructor.name);if("Map"===x||"Set"===x)return Rv(h);if("Arguments"===x||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return _arrayLikeToArray$1$1(h,d)}(h))||d&&h&&"number"==typeof h.length){g&&(h=g);var x=0,b=function F(){};return{s:b,n:function n(){return x>=h.length?{done:!0}:{done:!1,value:h[x++]}},e:function e(h){throw h},f:b}}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,w=!0,E=!1;return{s:function s(){g=ul(h)},n:function n(){var h=g.next();return w=h.done,h},e:function e(h){E=!0,S=h},f:function f(){try{w||null==g.return||g.return()}finally{if(E)throw S}}}}function _arrayLikeToArray$1$1(h,d){(null==d||d>h.length)&&(d=h.length);for(var g=0,x=new Array(d);g<d;g++)x[g]=h[g];return x}function ownKeys$2(h,d){var g=fh(h);if(ch){var x=ch(h);d&&(x=sh(x).call(x,(function(d){return Jf(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)qf(g=ownKeys$2(Object(x),!0)).call(g,(function(d){Xp(h,d,x[d])}));else if(Ff)jf(h,Ff(x));else{var b;qf(b=ownKeys$2(Object(x))).call(b,(function(d){Lf(h,d,Jf(x,d))}))}}return h}function _createSuper$y(h){var d=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var em=function(h){ev(TextPathElement,h);var d=_createSuper$y(TextPathElement);function TextPathElement(h,g,x){var b;Yp(this,TextPathElement),(b=d.call(this,h,g,x)).type="textPath",b.textWidth=0,b.textHeight=0,b.pathLength=-1,b.glyphInfo=null,b.letterSpacingCache=[],b.measuresCache=new $d([["",0]]);var S=b.getHrefAttribute().getDefinition();return b.text=b.getTextFromNode(),b.dataArray=b.parsePathData(S),b}return Wp(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(h){var d=this.dataArray;h&&h.beginPath(),qf(d).call(d,(function(d){var g=d.type,x=d.points;switch(g){case Og.LINE_TO:h&&h.lineTo(x[0],x[1]);break;case Og.MOVE_TO:h&&h.moveTo(x[0],x[1]);break;case Og.CURVE_TO:h&&h.bezierCurveTo(x[0],x[1],x[2],x[3],x[4],x[5]);break;case Og.QUAD_TO:h&&h.quadraticCurveTo(x[0],x[1],x[2],x[3]);break;case Og.ARC:var b=Df(x,8),S=b[0],w=b[1],E=b[2],_=b[3],P=b[4],A=b[5],k=b[6],C=b[7],R=E>_?E:_,M=E>_?1:E/_,N=E>_?_/E:1;h&&(h.translate(S,w),h.rotate(k),h.scale(M,N),h.arc(0,0,R,P,P+A,Boolean(1-C)),h.scale(1/M,1/N),h.rotate(-k),h.translate(-S,-w));break;case Og.CLOSE_PATH:h&&h.closePath()}}))}},{key:"renderChildren",value:function renderChildren(h){this.setTextData(h),h.save();var d=this.parent.getStyle("text-decoration").getString(),g=this.getFontSize(),x=this.glyphInfo,b=h.fillStyle;"underline"===d&&h.beginPath(),qf(x).call(x,(function(x,b){var S=x.p0,w=x.p1,E=x.rotation,_=x.text;h.save(),h.translate(S.x,S.y),h.rotate(E),h.fillStyle&&h.fillText(_,0,0),h.strokeStyle&&h.strokeText(_,0,0),h.restore(),"underline"===d&&(0===b&&h.moveTo(S.x,S.y+g/8),h.lineTo(w.x,w.y+g/5))})),"underline"===d&&(h.lineWidth=g/20,h.strokeStyle=b,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,d,g,x,b,S,w,E,_){var P=S,A=this.measureText(h,E);" "===E&&"justify"===d&&g<x&&(A+=(x-g)/b),_>-1&&(P+=this.getLetterSpacingAt(_));var k=this.textHeight/20,C=this.getEquidistantPointOnPath(P,k,0),R=this.getEquidistantPointOnPath(P+A,k,0),M={p0:C,p1:R},N=C&&R?Math.atan2(R.y-C.y,R.x-C.x):0;if(w){var D=Math.cos(Math.PI/2+N)*w,V=Math.cos(-N)*w;M.p0=_objectSpread(_objectSpread({},C),{},{x:C.x+D,y:C.y+V}),M.p1=_objectSpread(_objectSpread({},R),{},{x:R.x+D,y:R.y+V})}return{offset:P+=A,segment:M,rotation:N}}},{key:"measureText",value:function measureText(h,d){var g=this.measuresCache,x=d||this.getText();if(g.has(x))return g.get(x);var b=this.measureTargetText(h,x);return g.set(x,b),b}},{key:"setTextData",value:function setTextData(h){var d,g=this;if(!this.glyphInfo){var x=this.getText(),b=x.split(""),S=x.split(" ").length-1,w=xs(d=this.parent.getAttribute("dx").split()).call(d,(function(h){return h.getPixels("x")})),E=this.parent.getAttribute("dy").getPixels("y"),_=this.parent.getStyle("text-anchor").getString("start"),P=this.getStyle("letter-spacing"),A=this.parent.getStyle("letter-spacing"),k=0;P.hasValue()&&"inherit"!==P.getValue()?P.hasValue()&&"initial"!==P.getValue()&&"unset"!==P.getValue()&&(k=P.getPixels()):k=A.getPixels();var C=[],R=x.length;this.letterSpacingCache=C;for(var M=0;M<R;M++)C.push(void 0!==w[M]?w[M]:k);var N=uy(C).call(C,(function(h,d,g){return 0===g?0:h+d||0}),0),D=this.measureText(h),V=Math.max(D+N,0);this.textWidth=D,this.textHeight=this.getFontSize(),this.glyphInfo=[];var L=this.getPathLength(),j=this.getStyle("startOffset").getNumber(0)*L,$=0;"middle"!==_&&"center"!==_||($=-V/2),"end"!==_&&"right"!==_||($=-V),$+=j,qf(b).call(b,(function(d,x){var w=g.findSegmentToFitChar(h,_,V,L,S,$,E,d,x),P=w.offset,A=w.segment,k=w.rotation;$=P,A.p0&&A.p1&&g.glyphInfo.push({text:b[x],p0:A.p0,p1:A.p1,rotation:k})}))}}},{key:"parsePathData",value:function parsePathData(h){if(this.pathLength=-1,!h)return[];var d=[],g=h.pathParser;for(g.reset();!g.isEnd();){var x=g.current,b=x?x.x:0,S=x?x.y:0,w=g.next(),E=w.type,_=[];switch(w.type){case Og.MOVE_TO:this.pathM(g,_);break;case Og.LINE_TO:E=this.pathL(g,_);break;case Og.HORIZ_LINE_TO:E=this.pathH(g,_);break;case Og.VERT_LINE_TO:E=this.pathV(g,_);break;case Og.CURVE_TO:this.pathC(g,_);break;case Og.SMOOTH_CURVE_TO:E=this.pathS(g,_);break;case Og.QUAD_TO:this.pathQ(g,_);break;case Og.SMOOTH_QUAD_TO:E=this.pathT(g,_);break;case Og.ARC:_=this.pathA(g);break;case Og.CLOSE_PATH:Cg.pathZ(g)}w.type!==Og.CLOSE_PATH?d.push({type:E,points:_,start:{x:b,y:S},pathLength:this.calcLength(b,S,E,_)}):d.push({type:Og.CLOSE_PATH,points:[],pathLength:0})}return d}},{key:"pathM",value:function pathM(h,d){var g=Cg.pathM(h).point,x=g.x,b=g.y;d.push(x,b)}},{key:"pathL",value:function pathL(h,d){var g=Cg.pathL(h).point,x=g.x,b=g.y;return d.push(x,b),Og.LINE_TO}},{key:"pathH",value:function pathH(h,d){var g=Cg.pathH(h).point,x=g.x,b=g.y;return d.push(x,b),Og.LINE_TO}},{key:"pathV",value:function pathV(h,d){var g=Cg.pathV(h).point,x=g.x,b=g.y;return d.push(x,b),Og.LINE_TO}},{key:"pathC",value:function pathC(h,d){var g=Cg.pathC(h),x=g.point,b=g.controlPoint,S=g.currentPoint;d.push(x.x,x.y,b.x,b.y,S.x,S.y)}},{key:"pathS",value:function pathS(h,d){var g=Cg.pathS(h),x=g.point,b=g.controlPoint,S=g.currentPoint;return d.push(x.x,x.y,b.x,b.y,S.x,S.y),Og.CURVE_TO}},{key:"pathQ",value:function pathQ(h,d){var g=Cg.pathQ(h),x=g.controlPoint,b=g.currentPoint;d.push(x.x,x.y,b.x,b.y)}},{key:"pathT",value:function pathT(h,d){var g=Cg.pathT(h),x=g.controlPoint,b=g.currentPoint;return d.push(x.x,x.y,b.x,b.y),Og.QUAD_TO}},{key:"pathA",value:function pathA(h){var d=Cg.pathA(h),g=d.rX,x=d.rY,b=d.sweepFlag,S=d.xAxisRotation,w=d.centp,E=d.a1,_=d.ad;return 0===b&&_>0&&(_-=2*Math.PI),1===b&&_<0&&(_+=2*Math.PI),[w.x,w.y,g,x,E,_,S,b]}},{key:"calcLength",value:function calcLength(h,d,g,x){var b=0,S=null,w=null,E=0;switch(g){case Og.LINE_TO:return this.getLineLength(h,d,x[0],x[1]);case Og.CURVE_TO:for(b=0,S=this.getPointOnCubicBezier(0,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),E=.01;E<=1;E+=.01)w=this.getPointOnCubicBezier(E,h,d,x[0],x[1],x[2],x[3],x[4],x[5]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case Og.QUAD_TO:for(b=0,S=this.getPointOnQuadraticBezier(0,h,d,x[0],x[1],x[2],x[3]),E=.01;E<=1;E+=.01)w=this.getPointOnQuadraticBezier(E,h,d,x[0],x[1],x[2],x[3]),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return b;case Og.ARC:b=0;var _=x[4],P=x[5],A=x[4]+P,k=Math.PI/180;if(Math.abs(_-A)<k&&(k=Math.abs(_-A)),S=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],_,0),P<0)for(E=_-k;E>A;E-=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;else for(E=_+k;E<A;E+=k)w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],E,0),b+=this.getLineLength(S.x,S.y,w.x,w.y),S=w;return w=this.getPointOnEllipticalArc(x[0],x[1],x[2],x[3],A,0),b+=this.getLineLength(S.x,S.y,w.x,w.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(h,d,g,x,b){var S=arguments.length>5&&void 0!==arguments[5]?arguments[5]:d,w=arguments.length>6&&void 0!==arguments[6]?arguments[6]:g,E=(b-g)/(x-d+rg),_=Math.sqrt(h*h/(1+E*E));x<d&&(_*=-1);var P=E*_,A=null;if(x===d)A={x:S,y:w+P};else if((w-g)/(S-d+rg)===E)A={x:S+_,y:w+P};else{var k=0,C=0,R=this.getLineLength(d,g,x,b);if(R<rg)return null;var M=(S-d)*(x-d)+(w-g)*(b-g);k=d+(M/=R*R)*(x-d),C=g+M*(b-g);var N=this.getLineLength(S,w,k,C),D=Math.sqrt(h*h-N*N);_=Math.sqrt(D*D/(1+E*E)),x<d&&(_*=-1),A={x:k+_,y:C+(P=E*_)}}return A}},{key:"getPointOnPath",value:function getPointOnPath(h){var d=this.getPathLength(),g=0,x=null;if(h<-5e-5||h-5e-5>d)return null;var b,S=_createForOfIteratorHelper$1(this.dataArray);try{for(S.s();!(b=S.n()).done;){var w=b.value;if(!w||!(w.pathLength<5e-5||g+w.pathLength+5e-5<h)){var E=h-g,_=0;switch(w.type){case Og.LINE_TO:x=this.getPointOnLine(E,w.start.x,w.start.y,w.points[0],w.points[1],w.start.x,w.start.y);break;case Og.ARC:var P=w.points[4],A=w.points[5],k=w.points[4]+A;if(_=P+E/w.pathLength*A,A<0&&_<k||A>=0&&_>k)break;x=this.getPointOnEllipticalArc(w.points[0],w.points[1],w.points[2],w.points[3],_,w.points[6]);break;case Og.CURVE_TO:(_=E/w.pathLength)>1&&(_=1),x=this.getPointOnCubicBezier(_,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3],w.points[4],w.points[5]);break;case Og.QUAD_TO:(_=E/w.pathLength)>1&&(_=1),x=this.getPointOnQuadraticBezier(_,w.start.x,w.start.y,w.points[0],w.points[1],w.points[2],w.points[3])}if(x)return x;break}g+=w.pathLength}}catch(h){S.e(h)}finally{S.f()}return null}},{key:"getLineLength",value:function getLineLength(h,d,g,x){return Math.sqrt((g-h)*(g-h)+(x-d)*(x-d))}},{key:"getPathLength",value:function getPathLength(){var h;-1===this.pathLength&&(this.pathLength=uy(h=this.dataArray).call(h,(function(h,d){return d.pathLength>0?h+d.pathLength:h}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(h,d,g,x,b,S,w,E,_){return{x:E*CB1(h)+S*CB2(h)+x*CB3(h)+d*CB4(h),y:_*CB1(h)+w*CB2(h)+b*CB3(h)+g*CB4(h)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(h,d,g,x,b,S,w){return{x:S*QB1(h)+x*QB2(h)+d*QB3(h),y:w*QB1(h)+b*QB2(h)+g*QB3(h)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(h,d,g,x,b,S){var w=Math.cos(S),E=Math.sin(S),_=g*Math.cos(b),P=x*Math.sin(b);return{x:h+(_*w-P*E),y:d+(_*E+P*w)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(h,d){var g=this.getPathLength(),x=d||.25,b=h||g/100;if(!this.equidistantCache||this.equidistantCache.step!==b||this.equidistantCache.precision!==x){this.equidistantCache={step:b,precision:x,points:[]};for(var S=0,w=0;w<=g;w+=x){var E=this.getPointOnPath(w),_=this.getPointOnPath(w+x);E&&_&&((S+=this.getLineLength(E.x,E.y,_.x,_.y))>=b&&(this.equidistantCache.points.push({x:E.x,y:E.y,distance:w}),S-=b))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(h,d,g){if(this.buildEquidistantCache(d,g),h<0||h-this.getPathLength()>5e-5)return null;var x=Math.round(h/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[x]||null}}]),TextPathElement}(Pg);function _createSuper$z(h){var d=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var rm=function(h){ev(ImageElement,h);var d,g,x=_createSuper$z(ImageElement);function ImageElement(h,d,g){var b;Yp(this,ImageElement),(b=x.call(this,h,d,g)).type="image",b.loaded=!1;var S=b.getHrefAttribute().getString();if(!S)return av(b);var w=/\.svg$/.test(S);return h.images.push(iv(b)),w?b.loadSvg(S):b.loadImage(S),b.isSvg=w,b}return Wp(ImageElement,[{key:"loadImage",value:(g=Gp(hh.mark((function _callee(h){var d;return hh.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,this.document.createImage(h);case 3:d=g.sent,this.image=d,g.next=10;break;case 7:g.prev=7,g.t0=g.catch(0),console.error('Error while loading image "'.concat(h,'":'),g.t0);case 10:this.loaded=!0;case 11:case"end":return g.stop()}}),_callee,this,[[0,7]])}))),function loadImage(h){return g.apply(this,arguments)})},{key:"loadSvg",value:(d=Gp(hh.mark((function _callee2(h){var d,g;return hh.wrap((function _callee2$(x){for(;;)switch(x.prev=x.next){case 0:return x.prev=0,x.next=3,this.document.fetch(h);case 3:return d=x.sent,x.next=6,d.text();case 6:g=x.sent,this.image=g,x.next=13;break;case 10:x.prev=10,x.t0=x.catch(0),console.error('Error while loading image "'.concat(h,'":'),x.t0);case 13:this.loaded=!0;case 14:case"end":return x.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(h){return d.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.image,x=this.loaded,b=this.getAttribute("x").getPixels("x"),S=this.getAttribute("y").getPixels("y"),w=this.getStyle("width").getPixels("x"),E=this.getStyle("height").getPixels("y");if(x&&g&&w&&E){if(h.save(),this.isSvg)d.canvg.forkString(h,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:b,offsetY:S,scaleWidth:w,scaleHeight:E}).render();else{var _=this.image;h.translate(b,S),d.setViewBox({ctx:h,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:w,desiredWidth:_.width,height:E,desiredHeight:_.height}),this.loaded&&(void 0===_.complete||_.complete)&&h.drawImage(_,0,0)}h.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var h=this.getAttribute("x").getPixels("x"),d=this.getAttribute("y").getPixels("y"),g=this.getStyle("width").getPixels("x"),x=this.getStyle("height").getPixels("y");return new _g(h,d,h+g,d+x)}}]),ImageElement}(Tg);function _createSuper$A(h){var d=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var nm=function(h){ev(SymbolElement,h);var d=_createSuper$A(SymbolElement);function SymbolElement(){var h;return Yp(this,SymbolElement),(h=d.apply(this,arguments)).type="symbol",h}return Wp(SymbolElement,[{key:"render",value:function render(h){}}]),SymbolElement}(Tg),im=function(){function SVGFontLoader(h){Yp(this,SVGFontLoader),this.document=h,this.loaded=!1,h.fonts.push(this)}var h;return Wp(SVGFontLoader,[{key:"load",value:(h=Gp(hh.mark((function _callee(h,d){var g,x,b,S;return hh.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:return w.prev=0,x=this.document,w.next=4,x.canvg.parser.load(d);case 4:b=w.sent,S=b.getElementsByTagName("font"),qf(g=Rv(S)).call(g,(function(d){var g=x.createElement(d);x.definitions[h]=g})),w.next=12;break;case 9:w.prev=9,w.t0=w.catch(0),console.error('Error while loading font "'.concat(d,'":'),w.t0);case 12:this.loaded=!0;case 13:case"end":return w.stop()}}),_callee,this,[[0,9]])}))),function load(d,g){return h.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(h){var d=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var am=function(h){ev(StyleElement,h);var d=_createSuper$B(StyleElement);function StyleElement(h,g,x){var b,S;Yp(this,StyleElement),(S=d.call(this,h,g,x)).type="style";var w=compressSpaces(xs(b=Rv(g.childNodes)).call(b,(function(h){return h.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return qf(w).call(w,(function(d){var g=Fy(d).call(d);if(g){var x=g.split("{"),b=x[0].split(","),S=x[1].split(";");qf(b).call(b,(function(d){var g=Fy(d).call(d);if(g){var x=h.styles[g]||{};if(qf(S).call(S,(function(d){var g,b,S=Gv(d).call(d,":"),w=Fy(g=d.substr(0,S)).call(g),E=Fy(b=d.substr(S+1,d.length-S)).call(b);w&&E&&(x[w]=new ng(h,w,E))})),h.styles[g]=x,h.stylesSpecificity[g]=function getSelectorSpecificity(h){var d=[0,0,0],g=h.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),x=0,b=findSelectorMatch(g,qd),S=Df(b,2);g=S[0],x=S[1],d[1]+=x;var w=findSelectorMatch(g,Qd),E=Df(w,2);g=E[0],x=E[1],d[0]+=x;var _=findSelectorMatch(g,Kd),P=Df(_,2);g=P[0],x=P[1],d[1]+=x;var A=findSelectorMatch(g,Zd),k=Df(A,2);g=k[0],x=k[1],d[2]+=x;var C=findSelectorMatch(g,Jd),R=Df(C,2);g=R[0],x=R[1],d[1]+=x;var M=findSelectorMatch(g,tg),N=Df(M,2);g=N[0],x=N[1],d[1]+=x;var D=findSelectorMatch(g=g.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),eg),V=Df(D,2);return g=V[0],x=V[1],d[2]+=x,d.join("")}(g),"@font-face"===g){var b=x["font-family"].getString().replace(/"|'/g,""),w=x.src.getString().split(",");qf(w).call(w,(function(d){if(Gv(d).call(d,'format("svg")')>0){var g=parseExternalUrl(d);g&&new im(h).load(b,g)}}))}}}))}})),S}return StyleElement}(Sg);function _createSuper$C(h){var d=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}am.parseExternalUrl=parseExternalUrl;var om=function(h){ev(UseElement,h);var d=_createSuper$C(UseElement);function UseElement(){var h;return Yp(this,UseElement),(h=d.apply(this,arguments)).type="use",h}return Wp(UseElement,[{key:"setContext",value:function setContext(h){Wv(sv(UseElement.prototype),"setContext",this).call(this,h);var d=this.getAttribute("x"),g=this.getAttribute("y");d.hasValue()&&h.translate(d.getPixels("x"),0),g.hasValue()&&h.translate(0,g.getPixels("y"))}},{key:"path",value:function path(h){var d=this.element;d&&d.path(h)}},{key:"renderChildren",value:function renderChildren(h){var d=this.document,g=this.element;if(g){var x=g;if("symbol"===g.type&&((x=new Rg(d,null)).attributes.viewBox=new ng(d,"viewBox",g.getAttribute("viewBox").getString()),x.attributes.preserveAspectRatio=new ng(d,"preserveAspectRatio",g.getAttribute("preserveAspectRatio").getString()),x.attributes.overflow=new ng(d,"overflow",g.getAttribute("overflow").getString()),x.children=g.children,g.styles.opacity=new ng(d,"opacity",this.calculateOpacity())),"svg"===x.type){var b=this.getStyle("width",!1,!0),S=this.getStyle("height",!1,!0);b.hasValue()&&(x.attributes.width=new ng(d,"width",b.getString())),S.hasValue()&&(x.attributes.height=new ng(d,"height",S.getString()))}var w=x.parent;x.parent=this,x.render(h),x.parent=w}}},{key:"getBoundingBox",value:function getBoundingBox(h){var d=this.element;return d?d.getBoundingBox(h):null}},{key:"elementTransform",value:function elementTransform(){var h=this.document,d=this.element;return bg.fromElement(h,d)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}(Tg);function _createSuper$D(h){var d=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function imGet(h,d,g,x,b,S){return h[g*x*4+4*d+S]}function imSet(h,d,g,x,b,S,w){h[g*x*4+4*d+S]=w}function m$1(h,d,g){return h[d]*g}function c$1(h,d,g,x){return d+Math.cos(h)*g+Math.sin(h)*x}var um=function(h){ev(FeColorMatrixElement,h);var d=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(h,g,x){var b;Yp(this,FeColorMatrixElement),(b=d.call(this,h,g,x)).type="feColorMatrix";var S=toNumbers(b.getAttribute("values").getString());switch(b.getAttribute("type").getString("matrix")){case"saturate":var w=S[0];S=[.213+.787*w,.715-.715*w,.072-.072*w,0,0,.213-.213*w,.715+.285*w,.072-.072*w,0,0,.213-.213*w,.715-.715*w,.072+.928*w,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var E=S[0]*Math.PI/180;S=[c$1(E,.213,.787,-.213),c$1(E,.715,-.715,-.715),c$1(E,.072,-.072,.928),0,0,c$1(E,.213,-.213,.143),c$1(E,.715,.285,.14),c$1(E,.072,-.072,-.283),0,0,c$1(E,.213,-.213,-.787),c$1(E,.715,-.715,.715),c$1(E,.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 b.matrix=S,b.includeOpacity=b.getAttribute("includeOpacity").hasValue(),b}return Wp(FeColorMatrixElement,[{key:"apply",value:function apply(h,d,g,x,b){for(var S=this.includeOpacity,w=this.matrix,E=h.getImageData(0,0,x,b),_=0;_<b;_++)for(var P=0;P<x;P++){var A=imGet(E.data,P,_,x,0,0),k=imGet(E.data,P,_,x,0,1),C=imGet(E.data,P,_,x,0,2),R=imGet(E.data,P,_,x,0,3),M=m$1(w,0,A)+m$1(w,1,k)+m$1(w,2,C)+m$1(w,3,R)+m$1(w,4,1),N=m$1(w,5,A)+m$1(w,6,k)+m$1(w,7,C)+m$1(w,8,R)+m$1(w,9,1),D=m$1(w,10,A)+m$1(w,11,k)+m$1(w,12,C)+m$1(w,13,R)+m$1(w,14,1),V=m$1(w,15,A)+m$1(w,16,k)+m$1(w,17,C)+m$1(w,18,R)+m$1(w,19,1);S&&(M=N=D=0,V*=R/255),imSet(E.data,P,_,x,0,0,M),imSet(E.data,P,_,x,0,1,N),imSet(E.data,P,_,x,0,2,D),imSet(E.data,P,_,x,0,3,V)}h.clearRect(0,0,x,b),h.putImageData(E,0,0)}}]),FeColorMatrixElement}(Sg);function _createSuper$E(h){var d=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var sm=function(h){ev(MaskElement,h);var d=_createSuper$E(MaskElement);function MaskElement(){var h;return Yp(this,MaskElement),(h=d.apply(this,arguments)).type="mask",h}return Wp(MaskElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.getAttribute("x").getPixels("x"),b=this.getAttribute("y").getPixels("y"),S=this.getStyle("width").getPixels("x"),w=this.getStyle("height").getPixels("y");if(!S&&!w){var E,_=new _g;qf(E=this.children).call(E,(function(d){_.addBoundingBox(d.getBoundingBox(h))})),x=Math.floor(_.x1),b=Math.floor(_.y1),S=Math.floor(_.width),w=Math.floor(_.height)}var P=this.removeStyles(d,MaskElement.ignoreStyles),A=g.createCanvas(x+S,b+w),k=A.getContext("2d");g.screen.setDefaults(k),this.renderChildren(k),new um(g,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(k,0,0,x+S,b+w);var C=g.createCanvas(x+S,b+w),R=C.getContext("2d");g.screen.setDefaults(R),d.render(R),R.globalCompositeOperation="destination-in",R.fillStyle=k.createPattern(A,"no-repeat"),R.fillRect(0,0,x+S,b+w),h.fillStyle=R.createPattern(C,"no-repeat"),h.fillRect(0,0,x+S,b+w),this.restoreStyles(d,P)}},{key:"render",value:function render(h){}}]),MaskElement}(Sg);function _createSuper$F(h){var d=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}sm.ignoreStyles=["mask","transform","clip-path"];var cm=function noop(){},lm=function(h){ev(ClipPathElement,h);var d=_createSuper$F(ClipPathElement);function ClipPathElement(){var h;return Yp(this,ClipPathElement),(h=d.apply(this,arguments)).type="clipPath",h}return Wp(ClipPathElement,[{key:"apply",value:function apply(h){var d,g=this.document,x=Gd(h),b=h.beginPath,S=h.closePath;x&&(x.beginPath=cm,x.closePath=cm),Ud(b,h,[]),qf(d=this.children).call(d,(function(d){if(void 0!==d.path){var b=void 0!==d.elementTransform?d.elementTransform():null;b||(b=bg.fromElement(g,d)),b&&b.apply(h),d.path(h),x&&(x.closePath=S),b&&b.unapply(h)}})),Ud(S,h,[]),h.clip(),x&&(x.beginPath=b,x.closePath=S)}},{key:"render",value:function render(h){}}]),ClipPathElement}(Sg);function _createSuper$G(h){var d=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}var fm=function(h){ev(FilterElement,h);var d=_createSuper$G(FilterElement);function FilterElement(){var h;return Yp(this,FilterElement),(h=d.apply(this,arguments)).type="filter",h}return Wp(FilterElement,[{key:"apply",value:function apply(h,d){var g=this.document,x=this.children,b=d.getBoundingBox(h);if(b){var S=0,w=0;qf(x).call(x,(function(h){var d=h.extraFilterDistance||0;S=Math.max(S,d),w=Math.max(w,d)}));var E=Math.floor(b.width),_=Math.floor(b.height),P=E+2*S,A=_+2*w;if(!(P<1||A<1)){var k=Math.floor(b.x),C=Math.floor(b.y),R=this.removeStyles(d,FilterElement.ignoreStyles),M=g.createCanvas(P,A),N=M.getContext("2d");g.screen.setDefaults(N),N.translate(-k+S,-C+w),d.render(N),qf(x).call(x,(function(h){"function"==typeof h.apply&&h.apply(N,0,0,P,A)})),h.drawImage(M,0,0,P,A,k-S,C-w,P,A),this.restoreStyles(d,R)}}}},{key:"render",value:function render(h){}}]),FilterElement}(Sg);function _createSuper$H(h){var d=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function _createSuper$I(h){var d=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function _createSuper$J(h){var d=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function _createSuper$K(h){var d=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function _createSuper$L(h){var d=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}function _createSuper$M(h){var d=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!Qy)return!1;if(Qy.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Qy(Date,[],(function(){}))),!0}catch(h){return!1}}();return function _createSuperInternal(){var g,x=sv(h);if(d){var b=sv(this).constructor;g=Qy(x,arguments,b)}else g=x.apply(this,arguments);return av(this,g)}}fm.ignoreStyles=["filter","transform","clip-path"];var hm={svg:Rg,rect:Mg,circle:Ng,ellipse:Ig,line:Dg,polyline:Vg,polygon:Lg,path:Cg,pattern:jg,marker:$g,defs:Fg,linearGradient:Ug,radialGradient:Gg,stop:Hg,animate:Xg,animateColor:Yg,animateTransform:Wg,font:qg,"font-face":Qg,"missing-glyph":Kg,glyph:Zg,text:Pg,tspan:Ag,tref:Jg,a:tm,textPath:em,image:rm,g:Bg,symbol:nm,style:am,use:om,mask:sm,clipPath:lm,filter:fm,feDropShadow:function(h){ev(FeDropShadowElement,h);var d=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(h,g,x){var b;return Yp(this,FeDropShadowElement),(b=d.call(this,h,g,x)).type="feDropShadow",b.addStylesFromStyleDefinition(),b}return Wp(FeDropShadowElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeDropShadowElement}(Sg),feMorphology:function(h){ev(FeMorphologyElement,h);var d=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var h;return Yp(this,FeMorphologyElement),(h=d.apply(this,arguments)).type="feMorphology",h}return Wp(FeMorphologyElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeMorphologyElement}(Sg),feComposite:function(h){ev(FeCompositeElement,h);var d=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var h;return Yp(this,FeCompositeElement),(h=d.apply(this,arguments)).type="feComposite",h}return Wp(FeCompositeElement,[{key:"apply",value:function apply(h,d,g,x,b){}}]),FeCompositeElement}(Sg),feColorMatrix:um,feGaussianBlur:function(h){ev(FeGaussianBlurElement,h);var d=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(h,g,x){var b;return Yp(this,FeGaussianBlurElement),(b=d.call(this,h,g,x)).type="feGaussianBlur",b.blurRadius=Math.floor(b.getAttribute("stdDeviation").getNumber()),b.extraFilterDistance=b.blurRadius,b}return Wp(FeGaussianBlurElement,[{key:"apply",value:function apply(h,d,g,x,b){var S=this.document,w=this.blurRadius,E=S.window?S.window.document.body:null,_=h.canvas;_.id=S.getUniqueId(),E&&(_.style.display="none",E.appendChild(_)),processCanvasRGBA(_,d,g,x,b,w),E&&E.removeChild(_)}}]),FeGaussianBlurElement}(Sg),title:function(h){ev(TitleElement,h);var d=_createSuper$L(TitleElement);function TitleElement(){var h;return Yp(this,TitleElement),(h=d.apply(this,arguments)).type="title",h}return TitleElement}(Sg),desc:function(h){ev(DescElement,h);var d=_createSuper$M(DescElement);function DescElement(){var h;return Yp(this,DescElement),(h=d.apply(this,arguments)).type="desc",h}return DescElement}(Sg)};function ownKeys$1$1(h,d){var g=fh(h);if(ch){var x=ch(h);d&&(x=sh(x).call(x,(function(d){return Jf(h,d).enumerable}))),g.push.apply(g,x)}return g}function _createImage(){return(_createImage=Gp(hh.mark((function _callee(h){var d,g,x=arguments;return hh.wrap((function _callee$(b){for(;;)switch(b.prev=b.next){case 0:return d=x.length>1&&void 0!==x[1]&&x[1],g=document.createElement("img"),d&&(g.crossOrigin="Anonymous"),b.abrupt("return",new my((function(d,x){g.onload=function(){d(g)},g.onerror=function(){x()},g.src=h})));case 4:case"end":return b.stop()}}),_callee)})))).apply(this,arguments)}var pm=function(){function Document(h){var d,g,x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},b=x.rootEmSize,S=void 0===b?12:b,w=x.emSize,E=void 0===w?12:w,_=x.createCanvas,P=void 0===_?Document.createCanvas:_,A=x.createImage,k=void 0===A?Document.createImage:A,C=x.anonymousCrossOrigin;Yp(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=E,this.createCanvas=P,this.createImage=this.bindCreateImage(k,C),this.screen.wait(Ty(d=this.isImagesLoaded).call(d,this)),this.screen.wait(Ty(g=this.isFontsLoaded).call(g,this))}return Wp(Document,[{key:"bindCreateImage",value:function bindCreateImage(h,d){return"boolean"==typeof d?function(g,x){return h(g,"boolean"==typeof x?x:d)}: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 gy(h=this.images).call(h,(function(h){return h.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var h;return gy(h=this.fonts).call(h,(function(h){return h.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(h){var d=this.createElement(h.documentElement);return d.root=!0,d.addStylesFromStyleDefinition(),this.documentElement=d,d}},{key:"createElement",value:function createElement(h){var d=h.nodeName.replace(/^[^:]+:/,""),g=Document.elementTypes[d];return void 0!==g?new g(this,h):new wg(this,h)}},{key:"createTextNode",value:function createTextNode(h){return new kg(this,h)}},{key:"setViewBox",value:function setViewBox(h){this.screen.setViewBox(function _objectSpread$1(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)qf(g=ownKeys$1$1(Object(x),!0)).call(g,(function(d){Xp(h,d,x[d])}));else if(Ff)jf(h,Ff(x));else{var b;qf(b=ownKeys$1$1(Object(x))).call(b,(function(d){Lf(h,d,Jf(x,d))}))}}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,d){var g=fh(h);if(ch){var x=ch(h);d&&(x=sh(x).call(x,(function(d){return Jf(h,d).enumerable}))),g.push.apply(g,x)}return g}function _objectSpread$2(h){for(var d=1;d<arguments.length;d++){var g,x=null!=arguments[d]?arguments[d]:{};if(d%2)qf(g=ownKeys$2$1(Object(x),!0)).call(g,(function(d){Xp(h,d,x[d])}));else if(Ff)jf(h,Ff(x));else{var b;qf(b=ownKeys$2$1(Object(x))).call(b,(function(d){Lf(h,d,Jf(x,d))}))}}return h}pm.createCanvas=function createCanvas(h,d){var g=document.createElement("canvas");return g.width=h,g.height=d,g},pm.createImage=function createImage(h){return _createImage.apply(this,arguments)},pm.elementTypes=hm;var ym=function(){function Canvg(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Yp(this,Canvg),this.parser=new hg(g),this.screen=new cg(h,g),this.options=g;var x=new pm(this,g),b=x.createDocumentElement(d);this.document=x,this.documentElement=b}var h,d;return Wp(Canvg,[{key:"fork",value:function fork(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"forkString",value:function forkString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(h,d,_objectSpread$2(_objectSpread$2({},this.options),g))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(d=Gp(hh.mark((function _callee(){var h,d=arguments;return hh.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return h=d.length>0&&void 0!==d[0]?d[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},h)),g.next=4,this.ready();case 4:this.stop();case 5:case"end":return g.stop()}}),_callee,this)}))),function render(){return d.apply(this,arguments)})},{key:"start",value:function start(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=this.documentElement,g=this.screen,x=this.options;g.start(d,_objectSpread$2(_objectSpread$2({enableRedraw:!0},x),h))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,g=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(h,d,g)}}],[{key:"from",value:(h=Gp(hh.mark((function _callee2(h,d){var g,x,b,S=arguments;return hh.wrap((function _callee2$(w){for(;;)switch(w.prev=w.next){case 0:return g=S.length>2&&void 0!==S[2]?S[2]:{},x=new hg(g),w.next=4,x.parse(d);case 4:return b=w.sent,w.abrupt("return",new Canvg(h,b,g));case 6:case"end":return w.stop()}}),_callee2)}))),function from(d,g){return h.apply(this,arguments)})},{key:"fromString",value:function fromString(h,d){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},x=new hg(g),b=x.parseFromString(d);return new Canvg(h,b,g)}}]),Canvg}();function __variableDynamicImportRuntime0__(h){switch(h){case"./locale/en.js":return Promise.resolve().then((function(){return dm}));case"./locale/zh-CN.js":return Promise.resolve().then((function(){return gm}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+h))}}var vm=function(){var h=_asyncToGenerator(regeneratorRuntime.mark((function _callee(h){var d;return regeneratorRuntime.wrap((function _callee$(g){for(;;)switch(g.prev=g.next){case 0:return g.prev=0,g.next=3,__variableDynamicImportRuntime0__("./locale/".concat(encodeURIComponent(h),".js"));case 3:d=g.sent,g.next=12;break;case 6:return g.prev=6,g.t0=g.catch(0),console.error("Missing translation (".concat(h,") - using 'en'")),g.next=11,Promise.resolve().then((function(){return dm}));case 11:d=g.sent;case 12:return g.abrupt("return",d.default);case 13:case"end":return g.stop()}}),_callee,null,[[0,6]])})));return function loadExtensionTranslation(d){return h.apply(this,arguments)}}(),dm=(h("default",{name:"server_opensave",init:function init(h){var d=this;return _asyncToGenerator(regeneratorRuntime.mark((function _callee6(){var g,x,b,S,w,E,_,P,A,k,C,R,M,N,D,V,L,j,$;return regeneratorRuntime.wrap((function _callee6$(B){for(;;)switch(B.prev=B.next){case 0:return $=function _rebuildInput(h){h.empty();var d=g('<input type="file" name="svg_file">').appendTo(h);function submit(){return _submit.apply(this,arguments)}function _submit(){return(_submit=_asyncToGenerator(regeneratorRuntime.mark((function _callee5(){return regeneratorRuntime.wrap((function _callee5$(d){for(;;)switch(d.prev=d.next){case 0:return h.submit(),$(h),d.next=4,g.process_cancel(w.uploading);case 4:D=!0,g("#dialog_box").hide();case 6:case"end":return d.stop()}}),_callee5)})))).apply(this,arguments)}h[0]===V[0]?d.change(_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){return regeneratorRuntime.wrap((function _callee3$(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,S.openPrep();case 2:if(d.sent){d.next=6;break}return $(h),d.abrupt("return");case 6:return d.next=8,submit();case 8:case"end":return d.stop()}}),_callee3)})))):d.change(_asyncToGenerator(regeneratorRuntime.mark((function _callee4(){return regeneratorRuntime.wrap((function _callee4$(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,submit();case 2:case"end":return h.stop()}}),_callee4)}))))},M=function _clientDownloadSuppor(h,d,x){return!_&&!P&&(!(""!==g("<a>")[0].download)&&(g("<a>hidden</a>").attr({download:(h||"image")+d,href:x}).css("display","none").appendTo("body")[0].click(),!0))},R=function _xhtmlEscape(h){return h.replace(/&(?!amp;)/g,"&").replace(/"/g,""").replace(/</g,"<")},C=function _getFileNameFromTitle(){return k.getDocumentTitle().trim().replace(/[/\\:*?"<>|]/g,"_")},g=h.$,x=h.decode64,b=h.encode64,S=d,B.next=8,vm(S.curPrefs.lang);case 8:if(w=B.sent,E=S.curConfig,_=E.avoidClientSide,P=E.avoidClientSideDownload,A=E.avoidClientSideOpen,k=S.canvas,"./filesave.php",N="./filesave.php",D=!1,g('<iframe name="output_frame" title="'.concat(w.hiddenframe,'"\n style="width: 0; height: 0;" src="data:text/html;base64,PGh0bWw+"/>')).appendTo("body"),S.setCustomHandlers({save:function save(h,d){var x='<?xml version="1.0" encoding="UTF-8"?>\n'+d,S=C();M(S,".svg","data:image/svg+xml;charset=UTF-8;base64,"+b(x))||g("<form>").attr({method:"post",action:"./filesave.php",target:"output_frame"}).append('\n <input type="hidden" name="output_svg" value="'.concat(R(x),'">\n <input type="hidden" name="filename" value="').concat(R(S),'">\n ')).appendTo("body").submit().remove()},exportPDF:function exportPDF(h,d){var x=C(),b=d.output;M(x,".pdf",b)||g("<form>").attr({method:"post",action:N,target:"output_frame"}).append('\n <input type="hidden" name="output_img" value="'.concat(b,'">\n <input type="hidden" name="mime" value="application/pdf">\n <input type="hidden" name="filename" value="').concat(R(x),'">\n ')).appendTo("body").submit().remove()},exportImage:function exportImage(h,d){return _asyncToGenerator(regeneratorRuntime.mark((function _callee2(){var h,x,b,S,w,E,_,P,A;return regeneratorRuntime.wrap((function _callee2$(D){for(;;)switch(D.prev=D.next){case 0:return h=d.issues,x=d.mimeType,b=d.quality,g("#export_canvas").length||g("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(S=g("#export_canvas")[0]).width=k.contentW,S.height=k.contentH,D.next=7,ym(S,d.svg);case 7:if(w=b?S.toDataURL(x,b):S.toDataURL(x),_="",h.length&&(E="\n • ",_+="\n\n\n • "+h.join(E)),!_.length){D.next=13;break}return D.next=13,g.alert(_);case 13:if(P=C(),A="."+d.type.toLowerCase(),!M(P,A,w)){D.next=17;break}return D.abrupt("return");case 17:g("<form>").attr({method:"post",action:N,target:"output_frame"}).append('\n <input type="hidden" name="output_img" value="'.concat(w,'">\n <input type="hidden" name="mime" value="').concat(x,'">\n <input type="hidden" name="filename" value="').concat(R(P),'">\n ')).appendTo("body").submit().remove();case 18:case"end":return D.stop()}}),_callee2)})))()}}),!window.FileReader||A){B.next=16;break}return B.abrupt("return");case 16:"./fileopen.php?type=load_svg","./fileopen.php?type=import_svg","./fileopen.php?type=import_img",S.processFile=function(h,d){var b;if(D)D=!1;else switch(g("#dialog_box").hide(),"import_img"!==d&&(b=x(h)),d){case"load_svg":k.clear(),k.setSvgString(b),S.updateCanvas();break;case"import_svg":k.importSvgString(b),S.updateCanvas();break;case"import_img":k.setGoodImage(h)}},(V=g("<form>")).attr({enctype:"multipart/form-data",method:"post",action:"./fileopen.php?type=load_svg",target:"output_frame"}),L=V.clone().attr("action","./fileopen.php?type=import_svg"),j=V.clone().attr("action","./fileopen.php?type=import_img"),$(V),$(L),$(j),g("#tool_open").show().prepend(V),g("#tool_import").show().prepend(L),g("#tool_image").prepend(j);case 30:case"end":return B.stop()}}),_callee6)})))()}}),Object.freeze({__proto__:null,default:{uploading:"Uploading...",hiddenframe:"Opensave frame to store hidden values"}})),gm=Object.freeze({__proto__:null,default:{uploading:"正在上传...",hiddenframe:"Opensave frame to store hidden values"}})}}}));
|