Agriculture-front-end/dist/libs/canvg/3.0.10/umd.min.js
2023-07-04 10:08:33 +08:00

1 line
194 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).canvg={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){var e={exports:{}};return t(e,e.exports),e.exports}function f(e,r){try{Object.defineProperty(d,e,{value:r,configurable:!0,writable:!0})}catch(t){d[e]=r}return r}function l(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function S(t){return Object(l(t))}function s(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++y+g).toString(36)}function i(t,e){return arguments.length<2?(r=d[t],O(r)?r:void 0):d[t]&&d[t][e];var r}var o=function(t){return t&&t.Math==Math&&t},d=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a="__core-js_shared__",u=d[a]||f(a,{}),c=n(function(t){(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),h={}.hasOwnProperty,p=Object.hasOwn||function(t,e){return h.call(S(t),e)},y=0,g=Math.random(),O=function(t){return"function"==typeof t},v=i("navigator","userAgent")||"",m=d.process,x=d.Deno,b=m&&m.versions||x&&x.version,w=b&&b.v8;w?ur=(ar=w.split("."))[0]<4?1:ar[0]+ar[1]:v&&(!(ar=v.match(/Edge\/(\d+)/))||74<=ar[1])&&(ar=v.match(/Chrome\/(\d+)/))&&(ur=ar[1]);function k(t){try{return!!t()}catch(t){return!0}}function T(t){return p(E,t)&&(R||"string"==typeof E[t])||(R&&p(C,t)?E[t]=C[t]:E[t]=M("Symbol."+t)),E[t]}var A=ur&&+ur,R=!!Object.getOwnPropertySymbols&&!k(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&A&&A<41}),P=R&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,E=c("wks"),C=d.Symbol,M=P?C:C&&C.withoutSetter||s,N={};N[T("toStringTag")]="z";function _(t){return F?j.createElement(t):{}}function I(t){return t=q(t,"string"),H(t)?t:String(t)}function V(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}var L="[object z]"===String(N),B=!k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),D=function(t){return"object"==typeof t?null!==t:O(t)},j=d.document,F=D(j)&&D(j.createElement),z=!B&&!k(function(){return 7!=Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a}),U=function(t){if(D(t))return t;throw TypeError(String(t)+" is not an object")},H=P?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return O(e)&&Object(t)instanceof e},X=function(t){try{return String(t)}catch(t){return"Object"}},Y=function(t){if(O(t))return t;throw TypeError(X(t)+" is not a function")},G=function(t,e){e=t[e];return null==e?void 0:Y(e)},W=T("toPrimitive"),q=function(t,e){if(!D(t)||H(t))return t;var r=G(t,W);if(r){if(r=r.call(t,e=void 0===e?"default":e),!D(r)||H(r))return r;throw TypeError("Can't convert object to primitive value")}return function(t,e){var r,n;if("string"===e&&O(r=t.toString)&&!D(n=r.call(t)))return n;if(O(r=t.valueOf)&&!D(n=r.call(t)))return n;if("string"!==e&&O(r=t.toString)&&!D(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e=void 0===e?"number":e)},$=Object.defineProperty,Q={f:B?$:function(t,e,r){if(U(t),e=I(e),U(r),z)try{return $(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Z=B?function(t,e,r){return Q.f(t,e,V(1,r))}:function(t,e,r){return t[e]=r,t},K=Function.toString;O(u.inspectSource)||(u.inspectSource=function(t){return K.call(t)});var J,tt,et,rt,nt,it,ot,at,ut=u.inspectSource,st=d.WeakMap,ct=O(st)&&/native code/.test(ut(st)),lt=c("keys"),ft=function(t){return lt[t]||(lt[t]=s(t))},ht={},pt="Object already initialized",yt=d.WeakMap;ot=ct||u.state?(J=u.state||(u.state=new yt),tt=J.get,et=J.has,rt=J.set,nt=function(t,e){if(et.call(J,t))throw new TypeError(pt);return e.facade=t,rt.call(J,t,e),e},it=function(t){return tt.call(J,t)||{}},function(t){return et.call(J,t)}):(at=ft("state"),ht[at]=!0,nt=function(t,e){if(p(t,at))throw new TypeError(pt);return e.facade=t,Z(t,at,e),e},it=function(t){return p(t,at)?t[at]:{}},function(t){return p(t,at)});var dt={set:nt,get:it,has:ot,enforce:function(t){return ot(t)?it(t):nt(t,{})},getterFor:function(r){return function(t){var e;if(!D(t)||(e=it(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}},gt=Function.prototype,vt=B&&Object.getOwnPropertyDescriptor,mt=p(gt,"name"),xt={EXISTS:mt,PROPER:mt&&"something"===function(){}.name,CONFIGURABLE:mt&&(!B||vt(gt,"name").configurable)},bt=n(function(t){var s=xt.CONFIGURABLE,e=dt.get,c=dt.enforce,l=String(String).split("String");(t.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,a=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;O(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!p(r,"name")||s&&r.name!==u)&&Z(r,"name",u),(n=c(r)).source||(n.source=l.join("string"==typeof u?u:""))),t!==d?(i?!a&&t[e]&&(o=!0):delete t[e],o?t[e]=r:Z(t,e,r)):o?t[e]=r:f(e,r)})(Function.prototype,"toString",function(){return O(this)&&e(this).source||ut(this)})}),wt={}.toString,St=function(t){return wt.call(t).slice(8,-1)},Ot=T("toStringTag"),kt="Arguments"==St(function(){return arguments}()),Tt=L?St:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ot))?t:kt?St(e):"Object"==(t=St(e))&&O(e.callee)?"Arguments":t};L||bt(Object.prototype,"toString",L?{}.toString:function(){return"[object "+Tt(this)+"]"},{unsafe:!0});function At(t){return Yt(l(t))}function Rt(t,e){return(t=Qt(t))<0?Zt(t+e,0):Kt(t,e)}function Pt(t){return te(t.length)}function Et(t,e){var r,n=At(t),i=0,o=[];for(r in n)!p(ht,r)&&p(n,r)&&o.push(r);for(;e.length>i;)p(n,r=e[i++])&&(~ne(o,r)||o.push(r));return o}function Ct(t,e){var r,n,i,o,a=t.target,u=t.global,s=t.stat;if(r=u?d:s?d[a]||f(a,{}):(d[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(o=ge(r,n))&&o.value:r[n],!de(u?n:a+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;!function(t,e){for(var r=se(e),n=Q.f,i=Wt.f,o=0;o<r.length;o++){var a=r[o];p(t,a)||n(t,a,i(e,a))}}(i,o)}(t.sham||o&&o.sham)&&Z(i,"sham",!0),bt(r,n,i,t)}}function Mt(t,e,r){for(var n in e)bt(t,n,e[n],r);return t}function Nt(t,e,r){t&&!p(t=r?t:t.prototype,be)&&xe(t,be,{configurable:!0,value:e})}function _t(t){var e=i(t),t=Q.f;B&&e&&!e[we]&&t(e,we,{configurable:!0,get:function(){return this}})}function It(t,e,r){if(t instanceof e)return t;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}function Vt(t){return void 0!==t&&(Se.Array===t||ke[Oe]===t)}function Lt(n,i,t){if(Y(n),void 0===i)return n;switch(t){case 0:return function(){return n.call(i)};case 1:return function(t){return n.call(i,t)};case 2:return function(t,e){return n.call(i,t,e)};case 3:return function(t,e,r){return n.call(i,t,e,r)}}return function(){return n.apply(i,arguments)}}function Bt(t,e){if(e=arguments.length<2?Ae(t):e,Y(e))return U(e.call(t));throw TypeError(String(t)+" is not iterable")}function Dt(t,e,r){var n,i;U(t);try{if(!(n=G(t,"return"))){if("throw"===e)throw r;return r}n=n.call(t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return U(n),r}function jt(t,e){this.stopped=t,this.result=e}function Ft(t,e,r){function n(t){return o&&Dt(o,"normal",t),new jt(!0,t)}function i(t){return h?(U(t),y?d(t[0],t[1],n):d(t[0],t[1])):y?d(t,n):d(t)}var o,a,u,s,c,l,f=r&&r.that,h=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),d=Lt(e,f,1+h+y);if(p)o=t;else{if(!(p=Ae(t)))throw TypeError(String(t)+" is not iterable");if(Vt(p)){for(a=0,u=Pt(t);a<u;a++)if((s=i(t[a]))&&s instanceof jt)return s;return new jt(!1)}o=Bt(t,p)}for(c=o.next;!(l=c.call(o)).done;){try{s=i(l.value)}catch(t){Dt(o,"throw",t)}if("object"==typeof s&&s&&s instanceof jt)return s}return new jt(!1)}var zt={}.propertyIsEnumerable,Ut=Object.getOwnPropertyDescriptor,Ht={f:Ut&&!zt.call({1:2},1)?function(t){t=Ut(this,t);return!!t&&t.enumerable}:zt},Xt="".split,Yt=k(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==St(t)?Xt.call(t,""):Object(t)}:Object,Gt=Object.getOwnPropertyDescriptor,Wt={f:B?Gt:function(t,e){if(t=At(t),e=I(e),z)try{return Gt(t,e)}catch(t){}if(p(t,e))return V(!Ht.f.call(t,e),t[e])}},qt=Math.ceil,$t=Math.floor,Qt=function(t){t=+t;return t!=t||0==t?0:(0<t?$t:qt)(t)},Zt=Math.max,Kt=Math.min,Jt=Math.min,te=function(t){return 0<t?Jt(Qt(t),9007199254740991):0},ee=function(u){return function(t,e,r){var n,i=At(t),o=Pt(i),a=Rt(r,o);if(u&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((u||a in i)&&i[a]===e)return u||a||0;return!u&&-1}},re={includes:ee(!0),indexOf:ee(!1)},ne=re.indexOf,ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],oe=ie.concat("length","prototype"),ae={f:Object.getOwnPropertyNames||function(t){return Et(t,oe)}},ue={f:Object.getOwnPropertySymbols},se=i("Reflect","ownKeys")||function(t){var e=ae.f(U(t)),r=ue.f;return r?e.concat(r(t)):e},ce=/#|\.prototype\./,le=function(t,e){t=he[fe(t)];return t==ye||t!=pe&&(O(e)?k(e):!!e)},fe=le.normalize=function(t){return String(t).replace(ce,".").toLowerCase()},he=le.data={},pe=le.NATIVE="N",ye=le.POLYFILL="P",de=le,ge=Wt.f,ve=d.Promise,me=Object.setPrototypeOf||("__proto__"in{}?function(){var r,n=!1,t={};try{(r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),n=t instanceof Array}catch(r){}return function(t,e){return U(t),function(t){if("object"==typeof t||O(t))return;throw TypeError("Can't set "+String(t)+" as a prototype")}(e),n?r.call(t,e):t.__proto__=e,t}}():void 0),xe=Q.f,be=T("toStringTag"),we=T("species"),Se={},Oe=T("iterator"),ke=Array.prototype,Te=T("iterator"),Ae=function(t){if(null!=t)return G(t,Te)||G(t,"@@iterator")||Se[Tt(t)]},Re=T("iterator"),Pe=!1;try{var Ee=0,Ce={next:function(){return{done:!!Ee++}},return:function(){Pe=!0}};Ce[Re]=function(){return this},Array.from(Ce,function(){throw 2})}catch(t){}function Me(t){if(!O(t))return!1;try{return Be(Object,Le,t),!0}catch(t){return!1}}function Ne(t,e){var r;return void 0===(t=U(t).constructor)||null==(r=U(t)[Ue])?e:function(t){if(ze(t))return t;throw TypeError(X(t)+" is not a constructor")}(r)}var _e,Ie,Ve=function(t,e){if(!e&&!Pe)return!1;var r=!1;try{var n={};n[Re]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Le=[],Be=i("Reflect","construct"),De=/^\s*(?:class|function)\b/,je=De.exec,Fe=!De.exec(function(){}),ze=!Be||k(function(){var t;return Me(Me.call)||!Me(Object)||!Me(function(){t=!0})||t})?function(t){if(!O(t))return!1;switch(Tt(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Fe||!!je.call(De,ut(t))}:Me,Ue=T("species"),He=i("document","documentElement"),Xe=/(?:ipad|iphone|ipod).*applewebkit/i.test(v),Ye="process"==St(d.process),o=d.setImmediate,a=d.clearImmediate,Ge=d.process,m=d.MessageChannel,We=d.Dispatch,qe=0,$e={};try{_e=d.location}catch(t){}function Qe(t){return function(){Ze(t)}}var Ze=function(t){var e;$e.hasOwnProperty(t)&&(e=$e[t],delete $e[t],e())},x=function(t){Ze(t.data)},b=function(t){d.postMessage(String(t),_e.protocol+"//"+_e.host)};o&&a||(o=function(t){for(var e=[],r=arguments.length,n=1;n<r;)e.push(arguments[n++]);return $e[++qe]=function(){(O(t)?t:Function(t)).apply(void 0,e)},Ie(qe),qe},a=function(t){delete $e[t]},Ye?Ie=function(t){Ge.nextTick(Qe(t))}:We&&We.now?Ie=function(t){We.now(Qe(t))}:m&&!Xe?(tn=(Zr=new m).port2,Zr.port1.onmessage=x,Ie=Lt(tn.postMessage,tn,1)):d.addEventListener&&O(d.postMessage)&&!d.importScripts&&_e&&"file:"!==_e.protocol&&!k(b)?(Ie=b,d.addEventListener("message",x,!1)):Ie="onreadystatechange"in _("script")?function(t){He.appendChild(_("script")).onreadystatechange=function(){He.removeChild(this),Ze(t)}}:function(t){setTimeout(Qe(t),0)});var Ke,Je,tr,er,rr,nr,ir,or,w={set:o,clear:a},ar=/ipad|iphone|ipod/i.test(v)&&void 0!==d.Pebble,ur=/web0s(?!.*chrome)/i.test(v),N=Wt.f,sr=w.set,P=d.MutationObserver||d.WebKitMutationObserver,st=d.document,cr=d.process,ct=d.Promise,yt=N(d,"queueMicrotask"),mt=yt&&yt.value;mt||(Ke=function(){var t,e;for(Ye&&(t=cr.domain)&&t.exit();Je;){e=Je.fn,Je=Je.next;try{e()}catch(t){throw Je?er():tr=void 0,t}}tr=void 0,t&&t.enter()},er=Xe||Ye||ur||!P||!st?!ar&&ct&&ct.resolve?((ir=ct.resolve(void 0)).constructor=ct,or=ir.then,function(){or.call(ir,Ke)}):Ye?function(){cr.nextTick(Ke)}:function(){sr.call(d,Ke)}:(rr=!0,nr=st.createTextNode(""),new P(Ke).observe(nr,{characterData:!0}),function(){nr.data=rr=!rr}));function lr(t){var r,n;this.promise=new t(function(t,e){if(void 0!==r||void 0!==n)throw TypeError("Bad Promise constructor");r=t,n=e}),this.resolve=Y(r),this.reject=Y(n)}var fr,hr,pr,yr,dr=mt||function(t){t={fn:t,next:void 0};tr&&(tr.next=t),Je||(Je=t,er()),tr=t},gr={f:function(t){return new lr(t)}},vr=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},mr="object"==typeof window,xr=w.set,br=T("species"),wr="Promise",Sr=dt.get,Or=dt.set,kr=dt.getterFor(wr),vt=ve&&ve.prototype,Tr=ve,gt=vt,Ar=d.TypeError,Rr=d.document,Pr=d.process,Er=gr.f,Cr=Er,Mr=!!(Rr&&Rr.createEvent&&d.dispatchEvent),Nr=O(d.PromiseRejectionEvent),_r="unhandledrejection",Ir=!1,L=de(wr,function(){var t=ut(Tr),e=t!==String(Tr);if(!e&&66===A)return!0;if(51<=A&&/native code/.test(t))return!1;var r=new Tr(function(t){t(1)}),t=function(t){t(function(){},function(){})};return(r.constructor={})[br]=t,!(Ir=r.then(function(){})instanceof t)||!e&&mr&&!Nr}),zt=L||!Ve(function(t){Tr.all(t).catch(function(){})}),Vr=function(t){var e;return!(!D(t)||!O(e=t.then))&&e},Lr=function(h,p){var y;h.notified||(h.notified=!0,y=h.reactions,dr(function(){for(var n,t=h.value,e=1==h.state,r=0;y.length>r;){var i,o,a,u=y[r++],s=e?u.ok:u.fail,c=u.resolve,l=u.reject,f=u.domain;try{s?(e||(2===h.rejection&&function(e){xr.call(d,function(){var t=e.facade;Ye?Pr.emit("rejectionHandled",t):Br("rejectionhandled",t,e.value)})}(h),h.rejection=1),!0===s?i=t:(f&&f.enter(),i=s(t),f&&(f.exit(),a=!0)),i===u.promise?l(Ar("Promise-chain cycle")):(o=Vr(i))?o.call(i,c,l):c(i)):l(t)}catch(t){f&&!a&&f.exit(),l(t)}}h.reactions=[],h.notified=!1,p&&!h.rejection&&(n=h,xr.call(d,function(){var t,e=n.facade,r=n.value;if(Dr(n)&&(t=vr(function(){Ye?Pr.emit("unhandledRejection",r,e):Br(_r,e,r)}),n.rejection=Ye||Dr(n)?2:1,t.error))throw t.value}))}))},Br=function(t,e,r){var n,i;Mr?((n=Rr.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),d.dispatchEvent(n)):n={promise:e,reason:r},!Nr&&(i=d["on"+t])?i(n):t===_r&&function(t,e){var r=d.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Dr=function(t){return 1!==t.rejection&&!t.parent},jr=function(e,r,n){return function(t){e(r,t,n)}},Fr=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=2,Lr(t,!0))},zr=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw Ar("Promise can't be resolved itself");var n=Vr(t);n?dr(function(){var e={done:!1};try{n.call(t,jr(zr,e,r),jr(Fr,e,r))}catch(t){Fr(e,t,r)}}):(r.value=t,r.state=1,Lr(r,!1))}catch(t){Fr({done:!1},t,r)}}};if(L&&(gt=(Tr=function(t){It(this,Tr,wr),Y(t),fr.call(this);var e=Sr(this);try{t(jr(zr,e),jr(Fr,e))}catch(t){Fr(e,t)}}).prototype,(fr=function(t){Or(this,{type:wr,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Mt(gt,{then:function(t,e){var r=kr(this),n=Er(Ne(this,Tr));return n.ok=!O(t)||t,n.fail=O(e)&&e,n.domain=Ye?Pr.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&Lr(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),hr=function(){var t=new fr,e=Sr(t);this.promise=t,this.resolve=jr(zr,e),this.reject=jr(Fr,e)},gr.f=Er=function(t){return t===Tr||t===pr?new hr:Cr(t)},O(ve)&&vt!==Object.prototype)){yr=vt.then,Ir||(bt(vt,"then",function(t,e){var r=this;return new Tr(function(t,e){yr.call(r,t,e)}).then(t,e)},{unsafe:!0}),bt(vt,"catch",gt.catch,{unsafe:!0}));try{delete vt.constructor}catch(t){}me&&me(vt,gt)}Ct({global:!0,wrap:!0,forced:L},{Promise:Tr}),Nt(Tr,wr,!1),_t(wr),pr=i(wr),Ct({target:wr,stat:!0,forced:L},{reject:function(t){var e=Er(this);return e.reject.call(void 0,t),e.promise}}),Ct({target:wr,stat:!0,forced:L},{resolve:function(t){return function(t,e){if(U(t),D(e)&&e.constructor===t)return e;t=gr.f(t);return(0,t.resolve)(e),t.promise}(this,t)}}),Ct({target:wr,stat:!0,forced:zt},{all:function(t){var u=this,e=Er(u),s=e.resolve,c=e.reject,r=vr(function(){var n=Y(u.resolve),i=[],o=0,a=1;Ft(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(u,t).then(function(t){r||(r=!0,i[e]=t,--a||s(i))},c)}),--a||s(i)});return r.error&&c(r.value),e.promise},race:function(t){var r=this,n=Er(r),i=n.reject,e=vr(function(){var e=Y(r.resolve);Ft(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}});var Ur=Wt.f;Ct({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=Ur(U(t),e);return!(r&&!r.configurable)&&delete t[e]}});function Hr(t,e){return Gr(t=t)&&(r=t.constructor,(ze(r)&&(r===Array||Gr(r.prototype))||D(r)&&null===(r=r[Wr]))&&(r=void 0)),new(void 0===r?Array:r)(0===e?0:e);var r}var Xr=n(function(t){var e=function(a){var s,t=Object.prototype,c=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},n=e.iterator||"@@iterator",r=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(a){o=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var i,o,a,u,e=e&&e.prototype instanceof g?e:g,e=Object.create(e.prototype),n=new T(n||[]);return e._invoke=(i=t,o=r,a=n,u=f,function(t,e){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw e;return R()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){var n=function t(e,r){var n=e.iterator[r.method];if(n===s){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=s,t(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=l(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,d;n=n.arg;return n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s),r.delegate=null,d):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}(r,a);if(n){if(n===d)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===f)throw u=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=p;n=l(i,o,a);if("normal"===n.type){if(u=a.done?y:h,n.arg===d)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(u=y,a.method="throw",a.arg=n.arg)}}),e}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var f="suspendedStart",h="suspendedYield",p="executing",y="completed",d={};function g(){}function v(){}function m(){}var x={};o(x,n,function(){return this});e=Object.getPrototypeOf,e=e&&e(e(A([])));e&&e!==t&&c.call(e,n)&&(x=e);var b=m.prototype=g.prototype=Object.create(x);function w(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function S(a,u){var e;this._invoke=function(r,n){function t(){return new u(function(t,e){!function e(t,r,n,i){t=l(a[t],a,r);if("throw"!==t.type){var o=t.arg;return(r=o.value)&&"object"==typeof r&&c.call(r,"__await")?u.resolve(r.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):u.resolve(r).then(function(t){o.value=t,n(o)},function(t){return e("throw",t,n,i)})}i(t.arg)}(r,n,t,e)})}return e=e?e.then(t,t):t()}}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(e){if(e){var t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,t=function t(){for(;++r<e.length;)if(c.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=s,t.done=!0,t};return t.next=t}}return{next:R}}function R(){return{value:s,done:!0}}return o(b,"constructor",v.prototype=m),o(m,"constructor",v),v.displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,o(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},w(S.prototype),o(S.prototype,r,function(){return this}),a.AsyncIterator=S,a.async=function(t,e,r,n,i){void 0===i&&(i=Promise);var o=new S(u(t,e,r,n),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},w(b),o(b,i,"Generator"),o(b,n,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(r){var t,n=[];for(t in r)n.push(t);return n.reverse(),function t(){for(;n.length;){var e=n.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=A,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function t(t,e){return o.type="throw",o.arg=r,n.next=t,e&&(n.method="next",n.arg=s),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),u=c.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&c.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n,i=r.completion;return"throw"===i.type&&(n=i.arg,k(r)),n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=s),d}},a}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}),Yr=r(n(function(t){function s(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return r(t),0}u.done?e(s):Promise.resolve(s).then(n,i)}t.exports=function(u){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=u.apply(t,a);function i(t){s(n,e,r,i,o,"next",t)}function o(t){s(n,e,r,i,o,"throw",t)}i(void 0)})}},t.exports.default=t.exports,t.exports.__esModule=!0})),ee=Object.freeze({__proto__:null,offscreen:function(){var t=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).DOMParser,e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:function(t,e){return new OffscreenCanvas(t,e)},createImage:function(n){return Yr(Xr.mark(function t(){var e,r;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fetch(n);case 2:return e=t.sent,t.next=5,e.blob();case 5:return r=t.sent,t.next=8,createImageBitmap(r);case 8:return r=t.sent,t.abrupt("return",r);case 10:case"end":return t.stop()}},t)}))()}};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(e,"DOMParser"),e},node:function(t){var e=t.DOMParser,r=t.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t.fetch,createCanvas:r.createCanvas,createImage:r.loadImage}}}),Gr=Array.isArray||function(t){return"Array"==St(t)},Wr=T("species"),qr=[].push,le=function(h){var p=1==h,y=2==h,d=3==h,g=4==h,v=6==h,m=7==h,x=5==h||v;return function(t,e,r,n){for(var i,o,a=S(t),u=Yt(a),s=Lt(e,r,3),c=Pt(u),l=0,n=n||Hr,f=p?n(t,c):y||m?n(t,0):void 0;l<c;l++)if((x||l in u)&&(o=s(i=u[l],l,a),h))if(p)f[l]=o;else if(o)switch(h){case 3:return!0;case 5:return i;case 6:return l;case 2:qr.call(f,i)}else switch(h){case 4:return!1;case 7:qr.call(f,i)}return v?-1:d||g?g:f}},Ce={forEach:le(0),map:le(1),filter:le(2),some:le(3),every:le(4),find:le(5),findIndex:le(6),filterReject:le(7)},$r=T("species"),m=function(e){return 51<=A||!k(function(){var t=[];return(t.constructor={})[$r]=function(){return{foo:1}},1!==t[e](Boolean).foo})},Qr=Ce.map,Zr=m("map");Ct({target:"Array",proto:!0,forced:!Zr},{map:function(t){return Qr(this,t,1<arguments.length?arguments[1]:void 0)}});function Kr(t){if("Symbol"===Tt(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}var Jr="\t\n\v\f\r    \u2028\u2029\ufeff",tn="["+Jr+"]",en=RegExp("^"+tn+tn+"*"),rn=RegExp(tn+tn+"*$"),b=function(e){return function(t){t=Kr(l(t));return 1&e&&(t=t.replace(en,"")),t=2&e?t.replace(rn,""):t}},x={start:b(1),end:b(2),trim:b(3)},nn=x.trim,on=d.parseFloat,o=d.Symbol,an=o&&o.iterator,a=1/on(Jr+"-0")!=-1/0||an&&!k(function(){on(Object(an))})?function(t){var e=nn(Kr(t)),t=on(e);return 0===t&&"-"==e.charAt(0)?-0:t}:on;Ct({global:!0,forced:parseFloat!=a},{parseFloat:a});function un(){var t=U(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}function sn(){}function cn(t){t.write(dn("")),t.close();var e=t.parentWindow.Object;return t=null,e}var ln,fn=d.RegExp,v={UNSUPPORTED_Y:k(function(){var t=fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),BROKEN_CARET:k(function(){var t=fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},hn=Object.keys||function(t){return Et(t,ie)},pn=B?Object.defineProperties:function(t,e){U(t);for(var r,n=hn(e),i=n.length,o=0;o<i;)Q.f(t,r=n[o++],e[r]);return t},yn=ft("IE_PROTO"),dn=function(t){return"<script>"+t+"<\/script>"},gn=function(){try{ln=new ActiveXObject("htmlfile")}catch(t){}var t,e;gn="undefined"==typeof document||document.domain&&ln?cn(ln):((e=_("iframe")).style.display="none",He.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(dn("document.F=Object")),t.close(),t.F);for(var r=ie.length;r--;)delete gn.prototype[ie[r]];return gn()};ht[yn]=!0;var vn=Object.create||function(t,e){var r;return null!==t?(sn.prototype=U(t),r=new sn,sn.prototype=null,r[yn]=t):r=gn(),void 0===e?r:pn(r,e)},mn=d.RegExp,N=k(function(){var t=mn(".","s");return!t.dotAll||!t.exec("\n")||"s"!==t.flags}),xn=d.RegExp,yt=k(function(){var t=xn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}),bn=dt.get,wn=RegExp.prototype.exec,Sn=c("native-string-replace",String.prototype.replace),On=wn,kn=(Xe=/b*/g,wn.call(ur=/a/,"a"),wn.call(Xe,"a"),0!==ur.lastIndex||0!==Xe.lastIndex),Tn=v.UNSUPPORTED_Y||v.BROKEN_CARET,An=void 0!==/()??/.exec("")[1],Rn=On=kn||An||Tn||N||yt?function(t){var e,r,n,i,o,a,u=this,s=bn(u),c=Kr(t),l=s.raw;if(l)return l.lastIndex=u.lastIndex,p=On.call(l,c),u.lastIndex=l.lastIndex,p;var f=s.groups,h=Tn&&u.sticky,t=un.call(u),l=u.source,p=0,s=c;if(h&&(-1===(t=t.replace("y","")).indexOf("g")&&(t+="g"),s=c.slice(u.lastIndex),0<u.lastIndex&&(!u.multiline||u.multiline&&"\n"!==c.charAt(u.lastIndex-1))&&(l="(?: "+l+")",s=" "+s,p++),e=new RegExp("^(?:"+l+")",t)),An&&(e=new RegExp("^"+l+"$(?!\\s)",t)),kn&&(r=u.lastIndex),n=wn.call(h?e:u,s),h?n?(n.input=n.input.slice(p),n[0]=n[0].slice(p),n.index=u.lastIndex,u.lastIndex+=n[0].length):u.lastIndex=0:kn&&n&&(u.lastIndex=u.global?n.index+n[0].length:r),An&&n&&1<n.length&&Sn.call(n[0],e,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n&&f)for(n.groups=o=vn(null),i=0;i<f.length;i++)o[(a=f[i])[0]]=n[a[1]];return n}:On;Ct({target:"RegExp",proto:!0,forced:/./.exec!==Rn},{exec:Rn});function Pn(t,e,r){return e+(r?Nn(t,e).length:1)}function En(t,e){var r=t.exec;if(O(r)){r=r.call(t,e);return null!==r&&U(r),r}if("RegExp"===St(t))return Rn.call(t,e);throw TypeError("RegExp#exec called on incompatible receiver")}var Cn=T("species"),Mn=RegExp.prototype,ar=function(r,t,e,n){var a,i=T(r),u=!k(function(){var t={};return t[i]=function(){return 7},7!=""[r](t)}),o=u&&!k(function(){var t=!1,e=/a/;return"split"===r&&((e={}).constructor={},e.constructor[Cn]=function(){return e},e.flags="",e[i]=/./[i]),e.exec=function(){return t=!0,null},e[i](""),!t});u&&o&&!e||(a=/./[i],t=t(i,""[r],function(t,e,r,n,i){var o=e.exec;return o===Rn||o===Mn.exec?u&&!i?{done:!0,value:a.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),bt(String.prototype,r,t[0]),bt(Mn,i,t[1])),n&&Z(Mn[i],"sham",!0)},ct=function(o){return function(t,e){var r,n=Kr(l(t)),i=Qt(e),t=n.length;return i<0||t<=i?o?"":void 0:(e=n.charCodeAt(i))<55296||56319<e||i+1===t||(r=n.charCodeAt(i+1))<56320||57343<r?o?n.charAt(i):e:o?n.slice(i,i+2):r-56320+(e-55296<<10)+65536}},st={codeAt:ct(!1),charAt:ct(!0)},Nn=st.charAt;ar("match",function(n,u,s){return[function(t){var e=l(this),r=null==t?void 0:G(t,n);return r?r.call(t,e):new RegExp(t)[n](Kr(e))},function(t){var e=U(this),r=Kr(t),t=s(u,e,r);if(t.done)return t.value;if(!e.global)return En(e,r);for(var n=e.unicode,i=[],o=e.lastIndex=0;null!==(a=En(e,r));){var a=Kr(a[0]);""===(i[o]=a)&&(e.lastIndex=Pn(r,te(e.lastIndex),n)),o++}return 0===o?null:i}]});var _n=Math.floor,In="".replace,Vn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ln=/\$([$&'`]|\d{1,2})/g,Bn=T("replace"),Dn=Math.max,jn=Math.min,P="$0"==="a".replace(/./,"$0"),Fn=!!/./[Bn]&&""===/./[Bn]("a","$0");ar("replace",function(t,x,b){var w=Fn?"$":"$0";return[function(t,e){var r=l(this),n=null==t?void 0:G(t,Bn);return n?n.call(t,r,e):x.call(Kr(r),t,e)},function(t,e){var r=U(this),n=Kr(t);if("string"==typeof e&&-1===e.indexOf(w)&&-1===e.indexOf("$<")){t=b(x,r,n,e);if(t.done)return t.value}var i=O(e);i||(e=Kr(e));var o,a=r.global;a&&(o=r.unicode,r.lastIndex=0);for(var u=[];;){var s=En(r,n);if(null===s)break;if(u.push(s),!a)break;""===Kr(s[0])&&(r.lastIndex=Pn(n,te(r.lastIndex),o))}for(var c,l="",f=0,h=0;h<u.length;h++){for(var s=u[h],p=Kr(s[0]),y=Dn(jn(Qt(s.index),n.length),0),d=[],g=1;g<s.length;g++)d.push(void 0===(c=s[g])?c:String(c));var v,m=s.groups,m=i?(v=[p].concat(d,y,n),void 0!==m&&v.push(m),Kr(e.apply(void 0,v))):function(o,a,u,s,c,t){var l=u+o.length,f=s.length,e=Ln;return void 0!==c&&(c=S(c),e=Vn),In.call(t,e,function(t,e){var r;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,u);case"'":return a.slice(l);case"<":r=c[e.slice(1,-1)];break;default:var n=+e;if(0==n)return t;if(f<n){var i=_n(n/10);return 0!==i&&i<=f?void 0===s[i-1]?e.charAt(1):s[i-1]+e.charAt(1):t}r=s[n-1]}return void 0===r?"":r})}(p,n,y,d,m,e);f<=y&&(l+=n.slice(f,y)+m,f=y+p.length)}return l+n.slice(f)}]},!!k(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!P||Fn);function zn(t){var e;return D(t)&&(void 0!==(e=t[Hn])?!!e:"RegExp"==St(t))}function Un(t){if(zn(t))throw TypeError("The method doesn't accept regular expressions");return t}var Hn=T("match"),Xn=T("match"),mt=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[Xn]=!1,"/./"[e](r)}catch(e){}}return!1},w=Wt.f,Yn="".startsWith,Gn=Math.min,ve=mt("startsWith"),vt=!(ve||(!(oo=w(String.prototype,"startsWith"))||oo.writable));function Wn(t){return t.replace(/(?!\u3000)\s+/gm," ")}function qn(t){return t.replace(/^[\n \t]+/,"")}function $n(t){return t.replace(/[\n \t]+$/,"")}function Qn(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}Ct({target:"String",proto:!0,forced:!vt&&!ve},{startsWith:function(t){var e=Kr(l(this));Un(t);var r=te(Gn(1<arguments.length?arguments[1]:void 0,e.length)),t=Kr(t);return Yn?Yn.call(e,t,r):e.slice(r,r+t.length)===t}});var Zn=/^[A-Z-]+$/;function Kn(t){return Zn.test(t)?t.toLowerCase():t}function Jn(t){t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return t[2]||t[3]||t[4]}function ti(t){if(!t.startsWith("rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,function(t,e){return r--&&e?String(Math.round(parseFloat(t))):t})}var gt=function(t,e){var r=[][t];return!!r&&k(function(){r.call(null,e||function(){throw 1},1)})},ei=[].join,L=Yt!=Object,zt=gt("join",",");Ct({target:"Array",proto:!0,forced:L||!zt},{join:function(t){return ei.call(At(this),void 0===t?",":t)}});var ri=n(function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0}),ni=n(function(t){t.exports=function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0}),ii=n(function(t){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.default=t.exports,t.exports.__esModule=!0}),oi=n(function(t){t.exports=function(t,e){if(t){if("string"==typeof t)return ii(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ii(t,e):void 0}},t.exports.default=t.exports,t.exports.__esModule=!0}),ai=n(function(t){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}),ui=r(n(function(t){t.exports=function(t,e){return ri(t)||ni(t,e)||oi(t,e)||ai()},t.exports.default=t.exports,t.exports.__esModule=!0})),si=/(\[[^\]]+\])/g,ci=/(#[^\s+>~.[:]+)/g,li=/(\.[^\s+>~.[:]+)/g,fi=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,hi=/(:[\w-]+\([^)]*\))/gi,pi=/(:[^\s+>~.[:]+)/g,yi=/([^\s+>~.[:]+)/g;function di(t,e){var r=e.exec(t);return r?[t.replace(e," "),r.length]:[t,0]}function gi(t){var e=[0,0,0],t=di(r=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),si),t=ui(t,2),r=t[0],n=t[1];e[1]+=n;t=di(r,ci),t=ui(t,2);r=t[0],n=t[1],e[0]+=n;t=di(r,li),t=ui(t,2);r=t[0],n=t[1],e[1]+=n;t=di(r,fi),t=ui(t,2);r=t[0],n=t[1],e[2]+=n;t=di(r,hi),t=ui(t,2);r=t[0],n=t[1],e[1]+=n;t=di(r,pi),t=ui(t,2);r=t[0],n=t[1],e[1]+=n;t=di(r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),yi),t=ui(t,2);return r=t[0],n=t[1],e[2]+=n,e.join("")}var vi=1e-8;function mi(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function xi(t,e){return(t[0]*e[0]+t[1]*e[1])/(mi(t)*mi(e))}function bi(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(xi(t,e))}function wi(t){return t*t*t}function Si(t){return 3*t*t*(1-t)}function Oi(t){return 3*t*(1-t)*(1-t)}function ki(t){return(1-t)*(1-t)*(1-t)}function Ti(t){return t*t}function Ai(t){return 2*t*(1-t)}function Ri(t){return(1-t)*(1-t)}function Pi(t,e,r){(e=I(e))in t?Q.f(t,e,V(0,r)):t[e]=r}var Ei=r(n(function(t){t.exports=function(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.default=t.exports,t.exports.__esModule=!0})),Ci=r(n(function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0})),Mi=r(n(function(t){function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0})),Ni=T("isConcatSpreadable"),_i=9007199254740991,Ii="Maximum allowed index exceeded",le=51<=A||!k(function(){var t=[];return t[Ni]=!1,t.concat()[0]!==t}),Zr=m("concat");Ct({target:"Array",proto:!0,forced:!le||!Zr},{concat:function(t){for(var e,r,n,i=S(this),o=Hr(i,0),a=0,u=-1,s=arguments.length;u<s;u++)if(function(t){if(!D(t))return!1;var e=t[Ni];return void 0!==e?!!e:Gr(t)}(n=-1===u?i:arguments[u])){if(a+(r=Pt(n))>_i)throw TypeError(Ii);for(e=0;e<r;e++,a++)e in n&&Pi(o,a,n[e])}else{if(_i<=a)throw TypeError(Ii);Pi(o,a++,n)}return o.length=a,o}});var Vi=Ce.every,tn=gt("every");Ct({target:"Array",proto:!0,forced:!tn},{every:function(t){return Vi(this,t,1<arguments.length?arguments[1]:void 0)}});var b=function(c){return function(t,e,r,n){Y(e);var i=S(t),o=Yt(i),a=Pt(i),u=c?a-1:0,s=c?-1:1;if(r<2)for(;;){if(u in o){n=o[u],u+=s;break}if(u+=s,c?u<0:a<=u)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=u:u<a;u+=s)u in o&&(n=e(n,o[u],u,i));return n}},Li=[b(!1),b(!0)][0],o=gt("reduce");Ct({target:"Array",proto:!0,forced:!o||!Ye&&79<A&&A<83},{reduce:function(t){return Li(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}});var a=Wt.f,Bi="".endsWith,Di=Math.min,c=mt("endsWith"),ur=!(c||(!(ya=a(String.prototype,"endsWith"))||ya.writable));Ct({target:"String",proto:!0,forced:!ur&&!c},{endsWith:function(t){var e=Kr(l(this));Un(t);var r=1<arguments.length?arguments[1]:void 0,n=e.length,n=void 0===r?n:Di(te(r),n),t=Kr(t);return Bi?Bi.call(e,t,n):e.slice(n-t.length,n)===t}});var ji=v.UNSUPPORTED_Y,Fi=[].push,zi=Math.min,Ui=4294967295;ar("split",function(i,y,d){var g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var r=Kr(l(this)),n=void 0===e?Ui:e>>>0;if(0==n)return[];if(void 0===t)return[r];if(!zn(t))return y.call(r,t,n);for(var i,o,a,u=[],e=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,c=new RegExp(t.source,e+"g");(i=Rn.call(c,r))&&!((o=c.lastIndex)>s&&(u.push(r.slice(s,i.index)),1<i.length&&i.index<r.length&&Fi.apply(u,i.slice(1)),a=i[0].length,s=o,u.length>=n));)c.lastIndex===i.index&&c.lastIndex++;return s===r.length?!a&&c.test("")||u.push(""):u.push(r.slice(s)),u.length>n?u.slice(0,n):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:y.call(this,t,e)}:y;return[function(t,e){var r=l(this),n=null==t?void 0:G(t,i);return n?n.call(t,r,e):g.call(Kr(r),t,e)},function(t,e){var r=U(this),n=Kr(t),i=d(g,r,n,e,g!==y);if(i.done)return i.value;var t=Ne(r,RegExp),o=r.unicode,i=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(ji?"g":"y"),a=new t(ji?"^(?:"+r.source+")":r,i),u=void 0===e?Ui:e>>>0;if(0==u)return[];if(0===n.length)return null===En(a,n)?[n]:[];for(var s=0,c=0,l=[];c<n.length;){a.lastIndex=ji?0:c;var f,h=En(a,ji?n.slice(c):n);if(null===h||(f=zi(te(a.lastIndex+(ji?c:0)),n.length))===s)c=Pn(n,c,o);else{if(l.push(n.slice(s,c)),l.length===u)return l;for(var p=1;p<=h.length-1;p++)if(l.push(h[p]),l.length===u)return l;c=s=f}}return l.push(n.slice(s)),l}]},!!k(function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};t="ab".split(t);return 2!==t.length||"a"!==t[0]||"b"!==t[1]}),ji);Xe="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Hi(){throw new Error("setTimeout has not been defined")}function Xi(){throw new Error("clearTimeout has not been defined")}var Yi=Hi,Gi=Xi;function Wi(e){if(Yi===setTimeout)return setTimeout(e,0);if((Yi===Hi||!Yi)&&setTimeout)return Yi=setTimeout,setTimeout(e,0);try{return Yi(e,0)}catch(t){try{return Yi.call(null,e,0)}catch(t){return Yi.call(this,e,0)}}}"function"==typeof Xe.setTimeout&&(Yi=setTimeout),"function"==typeof Xe.clearTimeout&&(Gi=clearTimeout);var qi,$i=[],Qi=!1,Zi=-1;function Ki(){Qi&&qi&&(Qi=!1,qi.length?$i=qi.concat($i):Zi=-1,$i.length&&Ji())}function Ji(){if(!Qi){var t=Wi(Ki);Qi=!0;for(var e=$i.length;e;){for(qi=$i,$i=[];++Zi<e;)qi&&qi[Zi].run();Zi=-1,e=$i.length}qi=null,Qi=!1,function(e){if(Gi===clearTimeout)return clearTimeout(e);if((Gi===Xi||!Gi)&&clearTimeout)return Gi=clearTimeout,clearTimeout(e);try{Gi(e)}catch(t){try{return Gi.call(null,e)}catch(t){return Gi.call(this,e)}}}(t)}}function to(t,e){this.fun=t,this.array=e}function eo(){}to.prototype.run=function(){this.fun.apply(null,this.array)};for(var ro,no,io,N=eo,yt=eo,ct=eo,P=eo,w=eo,oo=eo,vt=eo,ao=Xe.performance||{},uo=ao.now||ao.mozNow||ao.msNow||ao.oNow||ao.webkitNow||function(){return(new Date).getTime()},so=new Date,co={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];$i.push(new to(t,e)),1!==$i.length||Qi||Wi(Ji)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:N,addListener:yt,once:ct,off:P,removeListener:w,removeAllListeners:oo,emit:vt,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*uo.call(ao),r=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(r-=t[0],(e-=t[1])<0&&(r--,e+=1e9)),[r,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-so)/1e3}},lo=n(function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:null!=co&&co.hrtime?(a.exports=function(){return(t()-i)/1e6},e=co.hrtime,n=(t=function(){var t;return 1e9*(t=e())[0]+t[1]})(),o=1e9*co.uptime(),i=n-o):r=Date.now?(a.exports=function(){return Date.now()-r},Date.now()):(a.exports=function(){return(new Date).getTime()-r},(new Date).getTime())}.call(e)}),fo="undefined"==typeof window?e:window,ho=["moz","webkit"],po="AnimationFrame",yo=fo["request"+po],go=fo["cancel"+po]||fo["cancelRequest"+po],vo=0;!yo&&vo<ho.length;vo++)yo=fo[ho[vo]+"Request"+po],go=fo[ho[vo]+"Cancel"+po]||fo[ho[vo]+"CancelRequest"+po];yo&&go||(no=ro=0,io=[],yo=function(t){var e,r;return 0===io.length&&(e=lo(),r=Math.max(0,16.666666666666668-(e-ro)),ro=r+e,setTimeout(function(){for(var t=io.slice(0),e=io.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(ro)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),io.push({handle:++no,callback:t,cancelled:!1}),no},go=function(t){for(var e=0;e<io.length;e++)io[e].handle===t&&(io[e].cancelled=!0)});function mo(t){return yo.call(fo,t)}mo.cancel=function(){go.apply(fo,arguments)},mo.polyfill=function(t){(t=t||fo).requestAnimationFrame=yo,t.cancelAnimationFrame=go};var ve=Q.f,L=Function.prototype,xo=L.toString,bo=/^\s*function ([^ (]*)/;B&&!xt.EXISTS&&ve(L,"name",{configurable:!0,get:function(){try{return xo.call(this).match(bo)[1]}catch(t){return""}}});var wo,So=xt.PROPER,Oo=x.trim;Ct({target:"String",proto:!0,forced:(wo="trim",k(function(){return Jr[wo]()||"…"!=="…"[wo]()||So&&Jr[wo].name!==wo}))},{trim:function(){return Oo(this)}});function ko(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();var l={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"};t=l[t]||t;for(var f=[{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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<f.length;e++){var r=f[e].re,n=f[e].process,r=r.exec(t);r&&(r=n(r),this.r=r[0],this.g=r[1],this.b=r[2],3<r.length&&(this.alpha=r[3]),this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.alpha=this.alpha<0?0:1<this.alpha||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 t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(r=1==r.length?"0"+r:r)},this.getHelpXML=function(){for(var t,e=new Array,r=0;r<f.length;r++)for(var n=f[r].example,i=0;i<n.length;i++)e[e.length]=n[i];for(t in l)e[e.length]=t;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),r=0;r<e.length;r++)try{var a=document.createElement("li"),u=new RGBColor(e[r]),s=document.createElement("div");s.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),s.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex());a.appendChild(s),a.appendChild(c),o.appendChild(a)}catch(e){}return o}}var To=(Mi(Ao,[{key:"split",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",e=this.document,r=this.name;return Wn(this.getString()).trim().split(t).map(function(t){return new Ao(e,r,t)})}},{key:"hasValue",value:function(t){var e=this.value;return null!==e&&""!==e&&(t||0!==e)&&void 0!==e}},{key:"isString",value:function(t){var e=this.value,r="string"==typeof e;return r&&t?t.test(e):r}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}},{key:"setValue",value:function(t){return this.value=t,this}},{key:"getValue",value:function(t){return void 0===t||this.hasValue()?this.value:t}},{key:"getNumber",value:function(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);t=this.value,t=parseFloat(t);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}},{key:"getColor",value:function(t){t=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=ti(t),this.value=t),t}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var t=ui("boolean"==typeof t?[void 0,t]:[t],2),r=t[0],t=t[1],n=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.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(/%$/)&&t:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(r);default:var i=this.getNumber();return e&&i<1?i*n.computeSize(r):i}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function(){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(){var t=this.getString(),e=(e=/#([^)'"]+)/.exec(t))&&e[1];return this.document.definitions[e=e||t]}},{key:"getFillStyleDefinition",value:function(t,e){var r,n=this.getDefinition();return n?"function"==typeof n.createGradient?n.createGradient(this.document.ctx,t,e):"function"!=typeof n.createPattern?null:(n.getHrefAttribute().hasValue()&&(r=n.getAttribute("patternTransform"),n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute("patternTransform",!0).setValue(r.value)),n.createPattern(this.document.ctx,t,e)):null}},{key:"getTextBaseline",value:function(){return this.hasValue()?Ao.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(t){for(var e,r=this.getColor(),n=r.length,i=0,o=0;o<n&&(","===r[o]&&i++,3!==i);o++);return t.hasValue()&&this.isString()&&3!==i&&((e=new ko(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new Ao(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new Ao(t,"EMPTY","")}}]),Ao);function Ao(t,e,r){Ci(this,Ao),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}To.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 Ro=(Mi(Co,[{key:"clear",value:function(){this.viewPorts=[]}},{key:"setCurrent",value:function(t,e){this.viewPorts.push({width:t,height:e})}},{key:"removeCurrent",value:function(){this.viewPorts.pop()}},{key:"getCurrent",value:function(){var t=this.viewPorts;return t[t.length-1]}},{key:"computeSize",value:function(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function(){return this.getCurrent().width}},{key:"height",get:function(){return this.getCurrent().height}}]),Co),Po=Ce.forEach,Eo=gt("forEach")?[].forEach:function(t){return Po(this,t,1<arguments.length?arguments[1]:void 0)};function Co(){Ci(this,Co),this.viewPorts=[]}Ct({target:"Array",proto:!0,forced:[].forEach!=Eo},{forEach:Eo});function Mo(e){if(e&&e.forEach!==Eo)try{Z(e,"forEach",Eo)}catch(t){e.forEach=Eo}}var No,_o={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},zt=_("span").classList,m=zt&&zt.constructor&&zt.constructor.prototype,le=m===Object.prototype?void 0:m;for(No in _o)_o[No]&&Mo(d[No]&&d[No].prototype);Mo(le);var Io=(Mi(zo,[{key:"angleTo",value:function(t){return Math.atan2(t.y-this.y,t.x-this.x)}},{key:"applyTransform",value:function(t){var e=this.x,r=this.y,n=e*t[0]+r*t[2]+t[4],t=e*t[1]+r*t[3]+t[5];this.x=n,this.y=t}}],[{key:"parse",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=Qn(t),t=ui(r,2),r=t[0],t=t[1];return new zo(void 0===r?e:r,void 0===t?e:t)}},{key:"parseScale",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=Qn(t),t=ui(r,2),r=t[0],r=void 0===r?e:r,t=t[1];return new zo(r,void 0===t?r:t)}},{key:"parsePath",value:function(t){for(var e=Qn(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new zo(e[i],e[i+1]));return n}}]),zo),Vo=(Mi(Fo,[{key:"isWorking",value:function(){return this.working}},{key:"start",value:function(){var t,e,r;this.working||(r=this.screen,t=this.onClick,e=this.onMouseMove,(r=r.ctx.canvas).onclick=t,r.onmousemove=e,this.working=!0)}},{key:"stop",value:function(){var t;this.working&&(t=this.screen.ctx.canvas,this.working=!1,t.onclick=null,t.onmousemove=null)}},{key:"hasEvents",value:function(){return this.working&&0<this.events.length}},{key:"runEvents",value:function(){var t,i,e;this.working&&(e=this.screen,t=this.events,i=this.eventElements,(e=e.ctx.canvas.style)&&(e.cursor=""),t.forEach(function(t,e){for(var r=t.run,n=i[e];n;)r(n),n=n.parent}),this.events=[],this.eventElements=[])}},{key:"checkPath",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,t.forEach(function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInPath&&i.isPointInPath(r,t)&&(o[e]=n)}))}},{key:"checkBoundingBox",value:function(n,i){var t,o;this.working&&i&&(t=this.events,o=this.eventElements,t.forEach(function(t,e){var r=t.x,t=t.y;!o[e]&&i.isPointInBox(r,t)&&(o[e]=n)}))}},{key:"mapXY",value:function(t,e){for(var r=this.screen,n=r.window,r=r.ctx,i=new Io(t,e),o=r.canvas;o;)i.x-=o.offsetLeft,i.y-=o.offsetTop,o=o.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}},{key:"onClick",value:function(t){var e=this.mapXY(t.clientX,t.clientY),t=e.x,e=e.y;this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var e=this.mapXY(t.clientX,t.clientY),t=e.x,e=e.y;this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),Fo),Lo="undefined"!=typeof window?window:null,Bo="undefined"!=typeof fetch?fetch.bind(void 0):null,Do=(Mi(jo,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise||Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=this.waits.every(function(t){return t()});return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t}},{key:"setDefaults",value:function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}},{key:"setViewBox",value:function(t){var e=t.document,r=t.ctx,n=t.aspectRatio,i=t.width,o=t.desiredWidth,a=t.height,u=t.desiredHeight,s=t.minX,c=void 0===s?0:s,l=t.minY,f=void 0===l?0:l,h=t.refX,p=t.refY,y=t.clip,s=void 0!==y&&y,l=t.clipX,y=void 0===l?0:l,l=t.clipY,t=void 0===l?0:l,l=Wn(n).replace(/^defer\s/,"").split(" "),n=ui(l,2),l=n[0]||"xMidYMid",n=n[1]||"meet",d=i/o,g=a/u,v=Math.min(d,g),m=Math.max(d,g),o=o,u=u;"meet"===n&&(o*=v,u*=v),"slice"===n&&(o*=m,u*=m);var x,b,h=new To(e,"refX",h),e=new To(e,"refY",p),p=h.hasValue()&&e.hasValue();switch(p&&r.translate(-v*h.getPixels("x"),-v*e.getPixels("y")),s&&(b=v*y,x=v*t,r.beginPath(),r.moveTo(b,x),r.lineTo(i,x),r.lineTo(i,a),r.lineTo(b,a),r.closePath(),r.clip()),p||(t="meet"===n&&v===g,x="slice"===n&&m===g,b="meet"===n&&v===d,p="slice"===n&&m===d,l.startsWith("xMid")&&(t||x)&&r.translate(i/2-o/2,0),l.endsWith("YMid")&&(b||p)&&r.translate(0,a/2-u/2),l.startsWith("xMax")&&(t||x)&&r.translate(i-o,0),l.endsWith("YMax")&&(b||p)&&r.translate(0,a-u)),!0){case"none"===l:r.scale(d,g);break;case"meet"===n:r.scale(v,v);break;case"slice"===n:r.scale(m,m)}r.translate(-c,-f)}},{key:"start",value:function(e){var r,n,i,o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=t.enableRedraw,u=void 0!==a&&a,s=t.ignoreMouse,a=void 0!==s&&s,s=t.ignoreAnimation,c=void 0!==s&&s,s=t.ignoreDimensions,l=void 0!==s&&s,s=t.ignoreClear,f=void 0!==s&&s,h=t.forceRedraw,p=t.scaleWidth,y=t.scaleHeight,d=t.offsetX,g=t.offsetY,t=this.FRAMERATE,v=this.mouse,m=1e3/t;this.frameDuration=m,this.readyPromise=new Promise(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,f,p,y,d,g),u&&(r=Date.now(),n=r,i=0,u=function t(){r=Date.now(),(i=r-n)>=m&&(n=r-i%m,o.shouldUpdate(c,h)&&(o.render(e,l,f,p,y,d,g),v.runEvents())),o.intervalId=mo(t)},a||v.start(),this.intervalId=mo(u))}},{key:"stop",value:function(){this.intervalId&&(mo.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration;if(this.animations.reduce(function(t,e){return e.update(r)||t},!1))return!0}return!("function"!=typeof e||!e())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}},{key:"render",value:function(t,e,r,n,i,o,a){var u=this.CLIENT_WIDTH,s=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,f=this.isFirstRender,h=l.canvas;c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(u,s);var p=t.getStyle("width"),u=t.getStyle("height");!e&&(f||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(h.width=p.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),u.hasValue()&&(h.height=u.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var y,s=h.clientWidth||h.width,h=h.clientHeight||h.height;e&&p.hasValue()&&u.hasValue()&&(s=p.getPixels("x"),h=u.getPixels("y")),c.setCurrent(s,h),"number"==typeof o&&t.getAttribute("x",!0).setValue(o),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"!=typeof n&&"number"!=typeof i||(c=Qn(t.getAttribute("viewBox").getString()),a=o=0,"number"==typeof n&&((y=t.getStyle("width")).hasValue()?o=y.getPixels("x")/n:isNaN(c[2])||(o=c[2]/n)),"number"==typeof i&&((y=t.getStyle("height")).hasValue()?a=y.getPixels("y")/i:isNaN(c[3])||(a=c[3]/i)),o=o||a,a=a||o,t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i),(i=t.getStyle("transform",!0,!0)).setValue("".concat(i.getString()," scale(").concat(1/o,", ").concat(1/a,")"))),r||l.clearRect(0,0,s,h),t.render(l),f&&(this.isFirstRender=!1)}}]),jo);function jo(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?Bo:r,e=e.window,e=void 0===e?Lo:e;Ci(this,jo),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Ro,this.mouse=new Vo(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}function Fo(t){Ci(this,Fo),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}function zo(t,e){Ci(this,zo),this.x=t,this.y=e}Do.defaultWindow=Lo,Do.defaultFetch=Bo;var Uo,Ho,Xo=Do.defaultFetch,Yo="undefined"!=typeof DOMParser?DOMParser:null,Go=(Mi(ea,[{key:"parse",value:(Ho=Yr(Xr.mark(function t(e){return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.startsWith("<"))return t.abrupt("return",this.parseFromString(e));t.next=2;break;case 2:return t.abrupt("return",this.load(e));case 3:case"end":return t.stop()}},t,this)})),function(t){return Ho.apply(this,arguments)})},{key:"parseFromString",value:function(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch(t){return this.checkDocument(r.parseFromString(e,"text/xml"))}}},{key:"checkDocument",value:function(t){var e=t.getElementsByTagName("parsererror")[0];if(e)throw new Error(e.textContent);return t}},{key:"load",value:(Uo=Yr(Xr.mark(function t(e){var r;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.fetch(e);case 2:return r=t.sent,t.next=5,r.text();case 5:return r=t.sent,t.abrupt("return",this.parseFromString(r));case 7:case"end":return t.stop()}},t,this)})),function(t){return Uo.apply(this,arguments)})}]),ea),Wo=n(function(r){function n(t,e){return r.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},r.exports.default=r.exports,r.exports.__esModule=!0,n(t,e)}r.exports=n,r.exports.default=r.exports,r.exports.__esModule=!0}),qo=r(n(function(t){t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wo(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0})),$o=n(function(e){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(t){return typeof t}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0}),Qo=n(function(t){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0}),Zo=r(Qo),Ko=r(n(function(t){var r=$o.default;t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qo(t)},t.exports.default=t.exports,t.exports.__esModule=!0})),Jo=n(function(e){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0}),ta=r(Jo),Zr=!Ve(function(t){Array.from(t)});function ea(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?Xo:e,t=t.DOMParser,t=void 0===t?Yo:t;Ci(this,ea),this.fetch=e,this.DOMParser=t}Ct({target:"Array",stat:!0,forced:Zr},{from:function(t){var e=S(t),r=ze(this),t=arguments.length,n=1<t?arguments[1]:void 0,i=void 0!==n;i&&(n=Lt(n,2<t?arguments[2]:void 0,2));var o,a,u,s,c,l,t=Ae(e),f=0;if(!t||this==Array&&Vt(t))for(o=Pt(e),a=r?new this(o):Array(o);f<o;f++)l=i?n(e[f],f):e[f],Pi(a,f,l);else for(c=(s=Bt(e,t)).next,a=r?new this:[];!(u=c.call(s)).done;f++)l=i?function(t,e,r,n){try{return n?e(U(r)[0],r[1]):e(r)}catch(e){Dt(t,"throw",e)}}(s,n,[u.value,f],!0):u.value,Pi(a,f,l);return a.length=f,a}});var ra=T("unscopables"),na=Array.prototype;null==na[ra]&&Q.f(na,ra,{configurable:!0,value:vn(null)});var tn=function(t){na[ra][t]=!0},ia=re.includes;Ct({target:"Array",proto:!0},{includes:function(t){return ia(this,t,1<arguments.length?arguments[1]:void 0)}}),tn("includes");var oa=re.indexOf,aa=[].indexOf,ua=!!aa&&1/[1].indexOf(1,-0)<0,b=gt("indexOf");Ct({target:"Array",proto:!0,forced:ua||!b},{indexOf:function(t){return ua?aa.apply(this,arguments)||0:oa(this,t,1<arguments.length?arguments[1]:void 0)}});var sa=Ce.some,o=gt("some");Ct({target:"Array",proto:!0,forced:!o},{some:function(t){return sa(this,t,1<arguments.length?arguments[1]:void 0)}}),Ct({target:"String",proto:!0,forced:!mt("includes")},{includes:function(t){return!!~Kr(l(this)).indexOf(Kr(Un(t)),1<arguments.length?arguments[1]:void 0)}});var ca,a=!k(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),la=ft("IE_PROTO"),fa=Object.prototype,ha=a?Object.getPrototypeOf:function(t){var e=S(t);if(p(e,la))return e[la];t=e.constructor;return O(t)&&e instanceof t?t.prototype:e instanceof Object?fa:null},pa=T("iterator"),ya=!1;[].keys&&("next"in(Zu=[].keys())?(Ku=ha(ha(Zu)))!==Object.prototype&&(ca=Ku):ya=!0),null!=ca&&!k(function(){var t={};return ca[pa].call(t)!==t})||(ca={}),O(ca[pa])||bt(ca,pa,function(){return this});function da(){return this}function ga(){return this}function va(t,e,r,n,i,o,a){d=e+" Iterator",(l=r).prototype=vn(ma,{next:V(1,n)}),Nt(l,d,!1),Se[d]=da;var u,s,c,n=function(t){if(t===i&&y)return y;if(!Sa&&t in h)return h[t];switch(t){case"keys":case ka:case Ta:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",f=!1,h=t.prototype,p=h[Oa]||h["@@iterator"]||i&&h[i],y=!Sa&&p||n(i),d="Array"==e&&h.entries||p;if(d&&(u=ha(d.call(new t)))!==Object.prototype&&u.next&&(ha(u)!==wa&&(me?me(u,wa):O(u[Oa])||bt(u,Oa,ga)),Nt(u,l,!0)),xa&&i==ka&&p&&p.name!==ka&&(ba?Z(h,"name",ka):(f=!0,y=function(){return p.call(this)})),i)if(s={values:n(ka),keys:o?y:n("keys"),entries:n(Ta)},a)for(c in s)!Sa&&!f&&c in h||bt(h,c,s[c]);else Ct({target:e,proto:!0,forced:Sa||f},s);return h[Oa]!==y&&bt(h,Oa,y,{name:i}),Se[e]=y,s}var ur={IteratorPrototype:ca,BUGGY_SAFARI_ITERATORS:ya},ma=ur.IteratorPrototype,xa=xt.PROPER,ba=xt.CONFIGURABLE,wa=ur.IteratorPrototype,Sa=ur.BUGGY_SAFARI_ITERATORS,Oa=T("iterator"),ka="values",Ta="entries",Aa=st.charAt,Ra="String Iterator",Pa=dt.set,Ea=dt.getterFor(Ra);va(String,"String",function(t){Pa(this,{type:Ra,string:Kr(t),index:0})},function(){var t=Ea(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(r=Aa(e,r),t.index+=r.length,{value:r,done:!1})});var Ca=n(function(t){t.exports=function(t){if(Array.isArray(t))return ii(t)},t.exports.default=t.exports,t.exports.__esModule=!0}),Ma=n(function(t){t.exports=function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.default=t.exports,t.exports.__esModule=!0}),Na=n(function(t){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.default=t.exports,t.exports.__esModule=!0}),_a=r(n(function(t){t.exports=function(t){return Ca(t)||Ma(t)||oi(t)||Na()},t.exports.default=t.exports,t.exports.__esModule=!0})),c=(Mi(Da,[{key:"apply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(r||0,e||0)}},{key:"unapply",value:function(t){var e=this.point,r=e.x,e=e.y;t.translate(-1*r||0,-1*e||0)}},{key:"applyToPoint",value:function(t){var e=this.point,r=e.x,e=e.y;t.applyTransform([1,0,0,1,r||0,e||0])}}]),Da),v=(Mi(Ba,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(o.getRadians()),t.translate(-n,-i)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.originX,i=this.originY,o=this.angle,n=e+n.getPixels("x"),i=r+i.getPixels("y");t.translate(n,i),t.rotate(-1*o.getRadians()),t.translate(-n,-i)}},{key:"applyToPoint",value:function(t){var e=this.cx,r=this.cy,n=this.angle.getRadians();t.applyTransform([1,0,0,1,e||0,r||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-e||0,-r||0])}}]),Ba),ar=(Mi(La,[{key:"apply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(r,n||r),t.translate(-i,-e)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,n=e.y,i=this.originX,e=this.originY,i=i.getPixels("x"),e=e.getPixels("y");t.translate(i,e),t.scale(1/r,1/n||r),t.translate(-i,-e)}},{key:"applyToPoint",value:function(t){var e=this.scale,r=e.x,e=e.y;t.applyTransform([r||0,0,0,e||0,0,0])}}]),La),Ia=(Mi(Va,[{key:"apply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n[0],n[1],n[2],n[3],n[4],n[5]),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.originX,r=this.originY,n=this.matrix,i=n[0],o=n[2],a=n[4],u=n[1],s=n[3],c=n[5],n=1/(i*(+s-0*c)-o*(+u-0*c)+a*(0*u-0*s)),e=e.getPixels("x"),r=r.getPixels("y");t.translate(e,r),t.transform(n*(+s-0*c),n*(0*c-+u),n*(0*a-+o),n*(+i-0*a),n*(o*c-a*s),n*(a*u-i*c)),t.translate(-e,-r)}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),Va);function Va(t,e,r){Ci(this,Va),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Qn(e),this.originX=r[0],this.originY=r[1]}function La(t,e,r){Ci(this,La),this.type="scale",this.scale=null,this.originX=null,this.originY=null;e=Io.parseScale(e);0!==e.x&&0!==e.y||(e.x=vi,e.y=vi),this.scale=e,this.originX=r[0],this.originY=r[1]}function Ba(t,e,r){Ci(this,Ba),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=Qn(e);this.angle=new To(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}function Da(t,e){Ci(this,Da),this.type="translate",this.point=null,this.point=Io.parse(e)}var ja=function(){qo(o,Ia);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="skew",r.angle=null,r.angle=new To(t,"angle",e),r}return o}();Xe=function(){qo(o,ja);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return o}();var N=function(){qo(o,ja);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return o}(),Fa=(Mi(za,[{key:"apply",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].apply(t)}},{key:"unapply",value:function(t){for(var e=this.transforms,r=e.length-1;0<=r;r--)e[r].unapply(t)}},{key:"applyToPoint",value:function(t){for(var e=this.transforms,r=e.length,n=0;n<r;n++)e[n].applyToPoint(t)}}],[{key:"fromElement",value:function(t,e){var r=e.getStyle("transform",!1,!0),n=e.getStyle("transform-origin",!1,!0).split(),e=ui(n,2),n=e[0],e=e[1],e=[n,void 0===e?n:e];return r.hasValue()?new za(t,r.getString(),e):null}}]),za);function za(t,e,r){var n=this;Ci(this,za),this.document=t,this.transforms=[],Wn(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/).forEach(function(t){var e;"none"!==t&&(e=t.split("("),t=ui(e,2),e=t[0],t=t[1],e=[e.trim(),t.trim().replace(")","")],e=(t=ui(e,2))[0],t=t[1],void 0!==(e=za.transformTypes[e])&&n.transforms.push(new e(n.document,t,r)))})}Fa.transformTypes={translate:c,rotate:v,scale:ar,matrix:Ia,skewX:Xe,skewY:N};var Ua=(Mi(Ha,[{key:"getAttribute",value:function(t){var e=this.attributes[t];if(e||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return e||To.empty(this.document);e=new To(this.document,t,"");return this.attributes[t]=e}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return To.empty(this.document)}},{key:"getStyle",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.styles[t];if(n)return n;var i=this.getAttribute(t);if(null!=i&&i.hasValue())return this.styles[t]=i;if(!r){r=this.parent;if(r){r=r.getStyle(t);if(null!=r&&r.hasValue())return r}}if(e){e=new To(this.document,t,"");return this.styles[t]=e}return n||To.empty(this.document)}},{key:"render",value:function(t){var e;"none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()&&(t.save(),this.getStyle("mask").hasValue()?(e=this.getStyle("mask").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):"none"!==this.getStyle("filter").getValue("none")?(e=this.getStyle("filter").getDefinition())&&(this.applyEffects(t),e.apply(t,this)):(this.setContext(t),this.renderChildren(t),this.clearContext(t)),t.restore())}},{key:"setContext",value:function(t){}},{key:"applyEffects",value:function(t){var e=Fa.fromElement(this.document,this);e&&e.apply(t);e=this.getStyle("clip-path",!1,!0);!e.hasValue()||(e=e.getDefinition())&&e.apply(t)}},{key:"clearContext",value:function(t){}},{key:"renderChildren",value:function(e){this.children.forEach(function(t){t.render(e)})}},{key:"addChild",value:function(t){t=t instanceof Ha?t:this.document.createElement(t);t.parent=this,Ha.ignoreChildTypes.includes(t.type)||this.children.push(t)}},{key:"matchesSelector",value:function(e){var t,r=this.node;if("function"==typeof r.matches)return r.matches(e);r=null===(t=r.getAttribute)||void 0===t?void 0:t.call(r,"class");return!(!r||""===r)&&r.split(" ").some(function(t){return".".concat(t)===e})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if(!t.startsWith("@")&&this.matchesSelector(t)){var i=r[t],o=n[t];if(i)for(var a in i){var u=this.stylesSpecificity[a];(u=void 0===u?"000":u)<=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(i,t){return t.reduce(function(t,e){var r=i.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),[].concat(_a(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){t.forEach(function(t){var e=ui(t,2),t=e[0],e=e[1];r.getStyle(t,!0).setValue(e)})}},{key:"isFirstChild",value:function(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}]),Ha);function Ha(r,t){var e,n,i=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];Ci(this,Ha),this.document=r,this.node=t,this.captureTextNodes=o,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(Array.from(t.attributes).forEach(function(t){var e=Kn(t.nodeName);i.attributes[e]=new To(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map(function(t){return t.trim()}).forEach(function(t){var e;t&&(e=t.split(":").map(function(t){return t.trim()}),e=(t=ui(e,2))[0],t=t[1],i.styles[e]=new To(r,e,t))}),e=r.definitions,(n=this.getAttribute("id")).hasValue()&&(e[n.getString()]||(e[n.getString()]=this)),Array.from(t.childNodes).forEach(function(t){1===t.nodeType?i.addChild(t):!o||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&i.addChild(t)}))}Ua.ignoreChildTypes=["title"];var Xa=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),i.call(this,t,e,r)}return o}(),Ya=[].reverse,yt=[1,2];Ct({target:"Array",proto:!0,forced:String(yt)===String(yt.reverse())},{reverse:function(){return Gr(this)&&(this.length=this.length),Ya.call(this)}});function Ga(t,e,r){var n,i;return me&&O(n=e.constructor)&&n!==r&&D(i=n.prototype)&&i!==r.prototype&&me(t,i),t}var Wa=1..valueOf,ct=ae.f,qa=Wt.f,$a=Q.f,Qa=x.trim,Za=d.Number,P=Za.prototype,Ka=function(t){var e,r,n,i,o,a,u,s=q(t,"number");if(H(s))throw TypeError("Cannot convert a Symbol value to a number");if("string"==typeof s&&2<s.length)if(43===(e=(s=Qa(s)).charCodeAt(0))||45===e){if(88===(t=s.charCodeAt(2))||120===t)return NaN}else if(48===e){switch(s.charCodeAt(1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+s}for(o=(i=s.slice(2)).length,a=0;a<o;a++)if((u=i.charCodeAt(a))<48||n<u)return NaN;return parseInt(i,r)}return+s};if(de("Number",!Za(" 0o1")||!Za("0b1")||Za("+0x1"))){for(var Ja,tu=function(t){var t=arguments.length<1?0:Za(function(t){t=q(t,"number");return"bigint"==typeof t?t:Ka(t)}(t)),e=this;return e instanceof tu&&k(function(){Wa.call(e)})?Ga(Object(t),e,tu):t},eu=B?ct(Za):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),ru=0;eu.length>ru;ru++)p(Za,Ja=eu[ru])&&!p(tu,Ja)&&$a(tu,Ja,qa(Za,Ja));(tu.prototype=P).constructor=tu,bt(d,"Number",tu)}var nu=n(function(t){t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Jo(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0}),iu=r(n(function(n){function i(t,e,r){return"undefined"!=typeof Reflect&&Reflect.get?n.exports=i=Reflect.get:n.exports=i=function(t,e,r){t=nu(t,e);if(t){e=Object.getOwnPropertyDescriptor(t,e);return e.get?e.get.call(r):e.value}},n.exports.default=n.exports,n.exports.__esModule=!0,i(t,e,r||t)}n.exports=i,n.exports.default=n.exports,n.exports.__esModule=!0}));function ou(t){t=t.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}var au=(Mi(uu,[{key:"toString",value:function(){return[function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}(this.fontStyle),this.fontVariant,function(t){if(!t)return"";var e=t.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(ou).join(","))].join(" ").trim();var t}}],[{key:"parse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,r="",n="",i="",o="",a="",t=Wn(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return t.forEach(function(t){switch(!0){case!u.fontStyle&&uu.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&uu.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&uu.weights.includes(t):"inherit"!==t&&(i=t),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0;break;case!u.fontSize:var e;"inherit"!==t&&(e=t.split("/"),e=ui(e,1),o=e[0]),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new uu(r,n,i,o,a,e)}}]),uu);function uu(t,e,r,n,i,o){Ci(this,uu);o=o?"string"==typeof o?uu.parse(o):o:{};this.fontFamily=i||o.fontFamily,this.fontSize=n||o.fontSize,this.fontStyle=t||o.fontStyle,this.fontWeight=r||o.fontWeight,this.fontVariant=e||o.fontVariant}au.styles="normal|italic|oblique|inherit",au.variants="normal|small-caps|inherit",au.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var su=(Mi(cu,[{key:"addPoint",value:function(t,e){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))}},{key:"addX",value:function(t){this.addPoint(t,null)}},{key:"addY",value:function(t){this.addPoint(null,t)}},{key:"addBoundingBox",value:function(t){var e,r,n;t&&(e=t.x1,r=t.y1,n=t.x2,t=t.y2,this.addPoint(e,r),this.addPoint(n,t))}},{key:"sumCubic",value:function(t,e,r,n,i){return Math.pow(1-t,3)*e+3*Math.pow(1-t,2)*t*r+3*(1-t)*Math.pow(t,2)*n+Math.pow(t,3)*i}},{key:"bezierCurveAdd",value:function(t,e,r,n,i){var o,a,u=6*e-12*r+6*n,s=-3*e+9*r-9*n+3*i,c=3*r-3*e;0!=s?(o=Math.pow(u,2)-4*c*s)<0||(0<(a=(-u+Math.sqrt(o))/(2*s))&&a<1&&(t?this.addX(this.sumCubic(a,e,r,n,i)):this.addY(this.sumCubic(a,e,r,n,i))),0<(s=(-u-Math.sqrt(o))/(2*s))&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i)))):0==u||0<(u=-c/u)&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)))}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,u){this.addPoint(t,e),this.addPoint(a,u),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,u)}},{key:"addQuadraticCurve",value:function(t,e,r,n,i,o){r=t+2/3*(r-t),n=e+2/3*(n-e);this.addBezierCurve(t,e,r,r+1/3*(i-t),n,n+1/3*(o-e),i,o)}},{key:"isPointInBox",value:function(t,e){var r=this.x1,n=this.y1,i=this.x2,o=this.y2;return r<=t&&t<=i&&n<=e&&e<=o}},{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}}]),cu);function cu(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Number.NaN,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Number.NaN,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:Number.NaN,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:Number.NaN;Ci(this,cu),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}Ct({target:"Array",proto:!0},{fill:function(t){for(var e=S(this),r=Pt(e),n=arguments.length,i=Rt(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:Rt(n,r);i<o;)e[i++]=t;return e}}),tn("fill");var lu=function(t,e){return(lu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function fu(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}lu(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function hu(t,e){var r=t[0],t=t[1];return[r*Math.cos(e)-t*Math.sin(e),r*Math.sin(e)+t*Math.cos(e)]}function pu(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return 1}var yu=Math.PI;function du(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,a=t.y,n=Math.abs(t.rX),i=Math.abs(t.rY),u=hu([(e-o)/2,(r-a)/2],-t.xRot/180*yu),s=u[0],c=u[1],l=Math.pow(s,2)/Math.pow(n,2)+Math.pow(c,2)/Math.pow(i,2);1<l&&(n*=Math.sqrt(l),i*=Math.sqrt(l)),t.rX=n,t.rY=i;var f=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(s,2),u=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-f)/f)),l=n*c/i*u,f=-i*s/n*u,u=hu([l,f],t.xRot/180*yu);t.cX=u[0]+(e+o)/2,t.cY=u[1]+(r+a)/2,t.phi1=Math.atan2((c-f)/i,(s-l)/n),t.phi2=Math.atan2((-c-f)/i,(-s-l)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*yu),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*yu),t.phi1*=180/yu,t.phi2*=180/yu}function gu(t,e,r){pu(t,e,r);var n=t*t+e*e-r*r;if(n<0)return[];if(0==n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];n=Math.sqrt(n);return[[(t*r+e*n)/(t*t+e*e),(e*r-t*n)/(t*t+e*e)],[(t*r-e*n)/(t*t+e*e),(e*r+t*n)/(t*t+e*e)]]}var vu,mu=Math.PI/180;function xu(t,e,r){return(1-r)*t+r*e}function bu(t,e,r,n){return t+Math.cos(n/180*yu)*e+Math.sin(n/180*yu)*r}function wu(t,e,r,n){var i=1e-6,t=e-t,e=r-e,o=3*t+3*(n-r)-6*e,e=6*(e-t),a=3*t;return Math.abs(o)<1e-6?[-a/e]:function(t,e){var r=t*t/4-a/o;if(r<-(e=void 0===i?1e-6:i))return[];if(r<=e)return[-t/2];r=Math.sqrt(r);return[-t/2-r,-t/2+r]}(e/o,1e-6)}function Su(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}function Ou(){return Au(function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t})}function ku(){var n=NaN,i=NaN,o=NaN,a=NaN;return Au(function(t,e,r){return t.type&Nu.SMOOTH_CURVE_TO&&(t.type=Nu.CURVE_TO,n=isNaN(n)?e:n,i=isNaN(i)?r:i,t.x1=t.relative?e-n:2*e-n,t.y1=t.relative?r-i:2*r-i),i=t.type&Nu.CURVE_TO?(n=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):n=NaN,t.type&Nu.SMOOTH_QUAD_TO&&(t.type=Nu.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),a=t.type&Nu.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):o=NaN,t})}function Tu(){var o=NaN,a=NaN;return Au(function(t,e,r){var n,i;return t.type&Nu.SMOOTH_QUAD_TO&&(t.type=Nu.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?r:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?r-a:2*r-a),t.type&Nu.QUAD_TO?(o=t.relative?e+t.x1:t.x1,a=t.relative?r+t.y1:t.y1,n=t.x1,i=t.y1,t.type=Nu.CURVE_TO,t.x1=((t.relative?0:e)+2*n)/3,t.y1=((t.relative?0:r)+2*i)/3,t.x2=(t.x+2*n)/3,t.y2=(t.y+2*i)/3):a=o=NaN,t})}function Au(r){var n=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&Nu.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,n,i,o,a);return t.type&Nu.CLOSE_PATH&&(n=o,i=a),void 0!==t.x&&(n=t.relative?n+t.x:t.x),void 0!==t.y&&(i=t.relative?i+t.y:t.y),t.type&Nu.MOVE_TO&&(o=n,a=i),e}}function Ru(c,l,f,h,p,y){return pu(c,l,f,h,p,y),Au(function(t,e,r,n){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(n),u=void 0!==t.x?t.x:a?0:e,n=void 0!==t.y?t.y:a?0:r;function s(t){return t*t}t.type&Nu.HORIZ_LINE_TO&&0!==l&&(t.type=Nu.LINE_TO,t.y=t.relative?0:r),t.type&Nu.VERT_LINE_TO&&0!==f&&(t.type=Nu.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*c+n*f+(a?0:p)),void 0!==t.y&&(t.y=u*l+t.y*h+(a?0:y)),void 0!==t.x1&&(t.x1=t.x1*c+t.y1*f+(a?0:p)),void 0!==t.y1&&(t.y1=i*l+t.y1*h+(a?0:y)),void 0!==t.x2&&(t.x2=t.x2*c+t.y2*f+(a?0:p)),void 0!==t.y2&&(t.y2=o*l+t.y2*h+(a?0:y));r=c*h-l*f;return void 0===t.xRot||1===c&&0===l&&0===f&&1===h||(0==r?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=Nu.LINE_TO):(e=t.xRot*Math.PI/180,n=Math.sin(e),u=Math.cos(e),i=1/s(t.rX),o=1/s(t.rY),a=s(u)*i+s(n)*o,e=s(n)*i+s(u)*o,u=a*h*h-(n=2*n*u*(i-o))*l*h+e*l*l,i=n*(c*h+l*f)-2*(a*f*h+e*c*l),o=a*f*f-n*c*f+e*c*c,a=(Math.atan2(i,u-o)+Math.PI)%Math.PI/2,n=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(r)/Math.sqrt(u*s(e)+i*n*e+o*s(n)),t.rY=Math.abs(r)/Math.sqrt(u*s(n)-i*n*e+o*s(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(w=vu=vu||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return pu(e=void 0===e?1e13:e),function(t){return void 0!==t.x1&&(t.x1=r(t.x1)),void 0!==t.y1&&(t.y1=r(t.y1)),void 0!==t.x2&&(t.x2=r(t.x2)),void 0!==t.y2&&(t.y2=r(t.y2)),void 0!==t.x&&(t.x=r(t.x)),void 0!==t.y&&(t.y=r(t.y)),void 0!==t.rX&&(t.rX=r(t.rX)),void 0!==t.rY&&(t.rY=r(t.rY)),t}},w.TO_ABS=Ou,w.TO_REL=function(){return Au(function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t})},w.NORMALIZE_HVZ=function(o,a,u){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===u&&(u=!0),Au(function(t,e,r,n,i){if(isNaN(n)&&!(t.type&Nu.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&Nu.HORIZ_LINE_TO&&(t.type=Nu.LINE_TO,t.y=t.relative?0:r),u&&t.type&Nu.VERT_LINE_TO&&(t.type=Nu.LINE_TO,t.x=t.relative?0:e),o&&t.type&Nu.CLOSE_PATH&&(t.type=Nu.LINE_TO,t.x=t.relative?n-e:n,t.y=t.relative?i-r:i),t.type&Nu.ARC&&(0===t.rX||0===t.rY)&&(t.type=Nu.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},w.NORMALIZE_ST=ku,w.QT_TO_C=Tu,w.INFO=Au,w.SANITIZE=function(p){pu(p=void 0===p?0:p);var y=NaN,d=NaN,g=NaN,v=NaN;return Au(function(t,e,r,n,i){var o,a,u,s,c=Math.abs,l=!1,f=0,h=0;return t.type&Nu.SMOOTH_CURVE_TO&&(f=isNaN(y)?0:e-y,h=isNaN(d)?0:r-d),d=t.type&(Nu.CURVE_TO|Nu.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):y=NaN,v=t.type&Nu.SMOOTH_QUAD_TO?(g=isNaN(g)?e:2*e-g,isNaN(v)?r:2*r-v):t.type&Nu.QUAD_TO?(g=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):g=NaN,(t.type&Nu.LINE_COMMANDS||t.type&Nu.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&Nu.CURVE_TO||t.type&Nu.SMOOTH_CURVE_TO||t.type&Nu.QUAD_TO||t.type&Nu.SMOOTH_QUAD_TO)&&(o=void 0===t.x?0:t.relative?t.x:t.x-e,a=void 0===t.y?0:t.relative?t.y:t.y-r,f=isNaN(g)?void 0===t.x1?f:t.relative?t.x:t.x1-e:g-e,h=isNaN(v)?void 0===t.y1?h:t.relative?t.y:t.y1-r:v-r,u=void 0===t.x2?0:t.relative?t.x:t.x2-e,s=void 0===t.y2?0:t.relative?t.y:t.y2-r,c(o)<=p&&c(a)<=p&&c(f)<=p&&c(h)<=p&&c(u)<=p&&c(s)<=p&&(l=!0)),(l=t.type&Nu.CLOSE_PATH&&c(e-n)<=p&&c(r-i)<=p?!0:l)?[]:t})},w.MATRIX=Ru,w.ROTATE=function(t,e,r){pu(t,e=void 0===e?0:e,r=void 0===r?0:r);var n=Math.sin(t),t=Math.cos(t);return Ru(t,n,-n,t,e-e*t+r*n,r-e*n-r*t)},w.TRANSLATE=function(t,e){return pu(t,e=void 0===e?0:e),Ru(1,0,0,1,t,e)},w.SCALE=function(t,e){return pu(t,e=void 0===e?t:e),Ru(t,0,0,e,0,0)},w.SKEW_X=function(t){return pu(t),Ru(1,0,Math.atan(t),1,0,0)},w.SKEW_Y=function(t){return pu(t),Ru(1,Math.atan(t),0,1,0,0)},w.X_AXIS_SYMMETRY=function(t){return pu(t=void 0===t?0:t),Ru(-1,0,0,1,t,0)},w.Y_AXIS_SYMMETRY=function(t){return pu(t=void 0===t?0:t),Ru(1,0,0,-1,0,t)},w.A_TO_C=function(){return Au(function(t,e,r){return Nu.ARC===t.type?function(r,t,e){r.cX||du(r,t,e);for(var n=Math.min(r.phi1,r.phi2),n=Math.max(r.phi1,r.phi2)-n,i=Math.ceil(n/90),o=new Array(i),a=t,u=e,s=0;s<i;s++){var c=xu(r.phi1,r.phi2,s/i),l=xu(r.phi1,r.phi2,(s+1)/i),f=4/3*Math.tan((l-c)*mu/4),h=[Math.cos(c*mu)-f*Math.sin(c*mu),Math.sin(c*mu)+f*Math.cos(c*mu)],p=h[0],y=h[1],d=[Math.cos(l*mu),Math.sin(l*mu)],c=d[0],h=d[1],d=[c+f*Math.sin(l*mu),h-f*Math.cos(l*mu)],f=d[0],l=d[1];o[s]={relative:r.relative,type:Nu.CURVE_TO};d=function(t,e){t=hu([t*r.rX,e*r.rY],r.xRot),e=t[0],t=t[1];return[r.cX+e,r.cY+t]},y=d(p,y);o[s].x1=y[0],o[s].y1=y[1],l=d(f,l),o[s].x2=l[0],o[s].y2=l[1],h=d(c,h),o[s].x=h[0],o[s].y=h[1],r.relative&&(o[s].x1-=a,o[s].y1-=u,o[s].x2-=a,o[s].y2-=u,o[s].x-=a,o[s].y-=u),a=(h=[o[s].x,o[s].y])[0],u=h[1]}return o}(t,t.relative?0:e,t.relative?0:r):t})},w.ANNOTATE_ARCS=function(){return Au(function(t,e,r){return t.relative&&(r=e=0),Nu.ARC===t.type&&du(t,e,r),t})},w.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},w.CALCULATE_BOUNDS=function(){var S=Ou(),O=Tu(),k=ku(),T=Au(function(t,e,r){var n=k(O(S(function(t){var e,r={};for(e in t)r[e]=t[e];return r}(t))));function i(t){t>T.maxX&&(T.maxX=t),t<T.minX&&(T.minX=t)}function o(t){t>T.maxY&&(T.maxY=t),t<T.minY&&(T.minY=t)}if(n.type&Nu.DRAWING_COMMANDS&&(i(e),o(r)),n.type&Nu.HORIZ_LINE_TO&&i(n.x),n.type&Nu.VERT_LINE_TO&&o(n.y),n.type&Nu.LINE_TO&&(i(n.x),o(n.y)),n.type&Nu.CURVE_TO){i(n.x),o(n.y);for(var a=0,u=wu(e,n.x1,n.x2,n.x);a<u.length;a++)0<(x=u[a])&&x<1&&i(Su(e,n.x1,n.x2,n.x,x));for(var s=0,c=wu(r,n.y1,n.y2,n.y);s<c.length;s++)0<(x=c[s])&&x<1&&o(Su(r,n.y1,n.y2,n.y,x))}if(n.type&Nu.ARC){i(n.x),o(n.y),du(n,e,r);for(var l=n.xRot/180*Math.PI,f=Math.cos(l)*n.rX,h=Math.sin(l)*n.rX,p=-Math.sin(l)*n.rY,y=Math.cos(l)*n.rY,l=n.phi1<n.phi2?[n.phi1,n.phi2]:n.phi2<-180?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],d=l[0],g=l[1],l=function(t){var e=t[0],t=t[1],e=180*Math.atan2(t,e)/Math.PI;return e<d?360+e:e},v=0,m=gu(p,-f,0).map(l);v<m.length;v++)(x=m[v])>d&&x<g&&i(bu(n.cX,f,p,x));for(var x,b=0,w=gu(y,-h,0).map(l);b<w.length;b++)(x=w[b])>d&&x<g&&o(bu(n.cY,h,y,x))}return t});return T.minX=1/0,T.maxX=-1/0,T.minY=1/0,T.maxY=-1/0,T};function Pu(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var Eu,Cu,oo=(Lu.prototype.round=function(t){return this.transform(vu.ROUND(t))},Lu.prototype.toAbs=function(){return this.transform(vu.TO_ABS())},Lu.prototype.toRel=function(){return this.transform(vu.TO_REL())},Lu.prototype.normalizeHVZ=function(t,e,r){return this.transform(vu.NORMALIZE_HVZ(t,e,r))},Lu.prototype.normalizeST=function(){return this.transform(vu.NORMALIZE_ST())},Lu.prototype.qtToC=function(){return this.transform(vu.QT_TO_C())},Lu.prototype.aToC=function(){return this.transform(vu.A_TO_C())},Lu.prototype.sanitize=function(t){return this.transform(vu.SANITIZE(t))},Lu.prototype.translate=function(t,e){return this.transform(vu.TRANSLATE(t,e))},Lu.prototype.scale=function(t,e){return this.transform(vu.SCALE(t,e))},Lu.prototype.rotate=function(t,e,r){return this.transform(vu.ROTATE(t,e,r))},Lu.prototype.matrix=function(t,e,r,n,i,o){return this.transform(vu.MATRIX(t,e,r,n,i,o))},Lu.prototype.skewX=function(t){return this.transform(vu.SKEW_X(t))},Lu.prototype.skewY=function(t){return this.transform(vu.SKEW_Y(t))},Lu.prototype.xSymmetry=function(t){return this.transform(vu.X_AXIS_SYMMETRY(t))},Lu.prototype.ySymmetry=function(t){return this.transform(vu.Y_AXIS_SYMMETRY(t))},Lu.prototype.annotateArcs=function(){return this.transform(vu.ANNOTATE_ARCS())},Lu),Mu=(fu(Vu,Cu=oo),Vu.prototype.finish=function(t){if(this.parse(" ",t=void 0===t?[]:t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},Vu.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==Nu.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=Pu(o)&&("0"===this.curNumber&&"0"===o||a);if(!Pu(o)||u)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Nu.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(s<0)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}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 "'+i+'"');this.curArgs.push(s),this.curArgs.length===_u[this.curCommandType]&&(Nu.HORIZ_LINE_TO===this.curCommandType?n({type:Nu.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):Nu.VERT_LINE_TO===this.curCommandType?n({type:Nu.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===Nu.MOVE_TO||this.curCommandType===Nu.LINE_TO||this.curCommandType===Nu.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Nu.MOVE_TO===this.curCommandType&&(this.curCommandType=Nu.LINE_TO)):this.curCommandType===Nu.CURVE_TO?n({type:Nu.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===Nu.SMOOTH_CURVE_TO?n({type:Nu.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nu.QUAD_TO?n({type:Nu.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Nu.ARC&&n({type:Nu.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(" "!==(s=o)&&"\t"!==s&&"\r"!==s&&"\n"!==s)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=Nu.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=Nu.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=Nu.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=Nu.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=Nu.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=Nu.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=Nu.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=Nu.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=Nu.ARC,this.curCommandRelative="a"===o}else e.push({type:Nu.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},Vu.prototype.transform=function(o){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var r=0,n=Object.getPrototypeOf(this).parse.call(this,t);r<n.length;r++){var i=n[r],i=o(i);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return e}}})},Vu),Nu=(fu(Iu,Eu=oo),Iu.prototype.encode=function(){return Iu.encode(this.commands)},Iu.prototype.getBounds=function(){var t=vu.CALCULATE_BOUNDS();return this.transform(t),t},Iu.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},Iu.encode=function(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===Nu.CLOSE_PATH)e+="z";else if(n.type===Nu.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Nu.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Nu.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Nu.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Nu.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Nu.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Nu.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Nu.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Nu.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e},Iu.parse=function(t){var e=new Mu,r=[];return e.parse(t,r),e.finish(r),r},Iu.CLOSE_PATH=1,Iu.MOVE_TO=2,Iu.HORIZ_LINE_TO=4,Iu.VERT_LINE_TO=8,Iu.LINE_TO=16,Iu.CURVE_TO=32,Iu.SMOOTH_CURVE_TO=64,Iu.QUAD_TO=128,Iu.SMOOTH_QUAD_TO=256,Iu.ARC=512,Iu.LINE_COMMANDS=Iu.LINE_TO|Iu.HORIZ_LINE_TO|Iu.VERT_LINE_TO,Iu.DRAWING_COMMANDS=Iu.HORIZ_LINE_TO|Iu.VERT_LINE_TO|Iu.LINE_TO|Iu.CURVE_TO|Iu.SMOOTH_CURVE_TO|Iu.QUAD_TO|Iu.SMOOTH_QUAD_TO|Iu.ARC,Iu),_u=((vt={})[Nu.MOVE_TO]=2,vt[Nu.LINE_TO]=2,vt[Nu.HORIZ_LINE_TO]=1,vt[Nu.VERT_LINE_TO]=1,vt[Nu.CLOSE_PATH]=0,vt[Nu.QUAD_TO]=4,vt[Nu.SMOOTH_QUAD_TO]=2,vt[Nu.CURVE_TO]=6,vt[Nu.SMOOTH_CURVE_TO]=4,vt[Nu.ARC]=7,vt);function Iu(t){var e=Eu.call(this)||this;return e.commands="string"==typeof t?Iu.parse(t):t,e}function Vu(){var t=Cu.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}function Lu(){}var Bu=function(){qo(i,Nu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(t){return Ci(this,i),(t=e.call(this,t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,t.start=null,t.current=null,t.command=null,t.commands=t.commands,t.i=-1,t.previousCommand=null,t.points=[],t.angles=[],t}return Mi(i,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new Io(0,0),this.control=new Io(0,0),this.current=new Io(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.commands.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t}},{key:"getPoint",value:function(){var t=new Io(this.command[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"x"],this.command[1<arguments.length&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(t,e){e=this.getPoint(t,e);return this.control=e}},{key:"getAsCurrentPoint",value:function(t,e){e=this.getPoint(t,e);return this.current=e}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Nu.CURVE_TO&&t!==Nu.SMOOTH_CURVE_TO&&t!==Nu.QUAD_TO&&t!==Nu.SMOOTH_QUAD_TO)return this.current;var e=this.current,r=e.x,n=e.y,t=this.control,e=t.x,t=t.y;return new Io(2*r-e,2*n-t)}},{key:"makeAbsolute",value:function(t){var e,r;return this.command.relative&&(e=(r=this.current).x,r=r.y,t.x+=e,t.y+=r),t}},{key:"addMarker",value:function(t,e,r){var n=this.points,i=this.angles;r&&0<i.length&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(t,e?e.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,e){this.points.push(t),this.angles.push(e)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,e=t.length,r=0;r<e;r++)if(!t[r])for(var n=r+1;n<e;n++)if(t[n]){t[r]=t[n];break}return t}}]),i}(),ve=xt.PROPER,L="toString",Du=RegExp.prototype,ju=Du.toString,zt=k(function(){return"/a/b"!=ju.call({source:"a",flags:"b"})}),m=ve&&ju.name!=L;(zt||m)&&bt(RegExp.prototype,L,function(){var t=U(this),e=Kr(t.source),r=t.flags;return"/"+e+"/"+Kr(void 0===r&&t instanceof RegExp&&!("flags"in Du)?un.call(t):r)},{unsafe:!0});var Fu=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return Mi(i,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue(!0)&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e,r,n,i,o,a,u,s,c,l,f,h=1<arguments.length&&void 0!==arguments[1]&&arguments[1];h||(n=this.getStyle("fill"),e=this.getStyle("fill-opacity"),u=this.getStyle("stroke"),f=this.getStyle("stroke-opacity"),n.isUrlDefinition()?(r=n.getFillStyleDefinition(this,e))&&(t.fillStyle=r):n.hasValue()&&("currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor()),"inherit"!==(n=n.getColor())&&(t.fillStyle="none"===n?"rgba(0,0,0,0)":n)),e.hasValue()&&(i=new To(this.document,"fill",t.fillStyle).addOpacity(e).getColor(),t.fillStyle=i),u.isUrlDefinition()?(i=u.getFillStyleDefinition(this,f))&&(t.strokeStyle=i):u.hasValue()&&("currentColor"===u.getString()&&u.setValue(this.getStyle("color").getColor()),"inherit"!==(o=u.getString())&&(t.strokeStyle="none"===o?"rgba(0,0,0,0)":o)),f.hasValue()&&(a=new To(this.document,"stroke",t.strokeStyle).addOpacity(f).getString(),t.strokeStyle=a),(u=this.getStyle("stroke-width")).hasValue()&&(c=u.getPixels(),t.lineWidth=c||vi),o=this.getStyle("stroke-linecap"),f=this.getStyle("stroke-linejoin"),a=this.getStyle("stroke-miterlimit"),u=this.getStyle("stroke-dasharray"),c=this.getStyle("stroke-dashoffset"),o.hasValue()&&(t.lineCap=o.getString()),f.hasValue()&&(t.lineJoin=f.getString()),a.hasValue()&&(t.miterLimit=a.getNumber()),u.hasValue()&&"none"!==u.getString()&&(s=Qn(u.getString()),void 0!==t.setLineDash?t.setLineDash(s):void 0!==t.webkitLineDash?t.webkitLineDash=s:void 0===t.mozDash||1===s.length&&0===s[0]||(t.mozDash=s),l=c.getPixels(),void 0!==t.lineDashOffset?t.lineDashOffset=l:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=l:void 0!==t.mozDashOffset&&(t.mozDashOffset=l))),this.modifiedEmSizeStack=!1,void 0!==t.font&&(f=this.getStyle("font"),a=this.getStyle("font-style"),u=this.getStyle("font-variant"),s=this.getStyle("font-weight"),c=this.getStyle("font-size"),l=this.getStyle("font-family"),f=new au(a.getString(),u.getString(),s.getString(),c.hasValue()?"".concat(c.getPixels(!0),"px"):"",l.getString(),au.parse(f.getString(),t.font)),a.setValue(f.fontStyle),u.setValue(f.fontVariant),s.setValue(f.fontWeight),c.setValue(f.fontSize),l.setValue(f.fontFamily),t.font=f.toString(),c.isPixels()&&(this.document.emSize=c.getPixels(),this.modifiedEmSizeStack=!0)),h||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){iu(ta(i.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),i}();var zu=function(){qo(y,Fu);var r,n,i=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function y(t,e,r){return Ci(this,y),(r=i.call(this,t,e,r)).type="path",r.pathParser=null,r.pathParser=new Bu(r.getAttribute("d").getString()),r}return Mi(y,[{key:"path",value:function(t){var e=this.pathParser,r=new su;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case Bu.MOVE_TO:this.pathM(t,r);break;case Bu.LINE_TO:this.pathL(t,r);break;case Bu.HORIZ_LINE_TO:this.pathH(t,r);break;case Bu.VERT_LINE_TO:this.pathV(t,r);break;case Bu.CURVE_TO:this.pathC(t,r);break;case Bu.SMOOTH_CURVE_TO:this.pathS(t,r);break;case Bu.QUAD_TO:this.pathQ(t,r);break;case Bu.SMOOTH_QUAD_TO:this.pathT(t,r);break;case Bu.ARC:this.pathA(t,r);break;case Bu.CLOSE_PATH:this.pathZ(t,r)}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,e=t.getMarkerPoints(),r=t.getMarkerAngles();return e.map(function(t,e){return[t,r[e]]})}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var e=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var n,i=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),u=this.getStyle("marker-end");if(o.isUrlDefinition()&&(e=o.getDefinition(),o=(n=ui(r[0],2))[0],n=n[1],e.render(t,o,n)),a.isUrlDefinition())for(var s=a.getDefinition(),c=1;c<i;c++){var l=ui(r[c],2),f=l[0],l=l[1];s.render(t,f,l)}u.isUrlDefinition()&&(n=u.getDefinition(),u=(a=ui(r[i],2))[0],a=a[1],n.render(t,u,a))}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=y.pathM(r).point,i=n.x,o=n.y;r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o)}},{key:"pathL",value:function(t,e){var r=this.pathParser,n=y.pathL(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathH",value:function(t,e){var r=this.pathParser,n=y.pathH(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathV",value:function(t,e){var r=this.pathParser,n=y.pathV(r),i=n.current,o=n.point,a=o.x,n=o.y;r.addMarker(o,i),e.addPoint(a,n),t&&t.lineTo(a,n)}},{key:"pathC",value:function(t,e){var r=this.pathParser,n=y.pathC(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathS",value:function(t,e){var r=this.pathParser,n=y.pathS(r),i=n.current,o=n.point,a=n.controlPoint,n=n.currentPoint;r.addMarker(n,a,o),e.addBezierCurve(i.x,i.y,o.x,o.y,a.x,a.y,n.x,n.y),t&&t.bezierCurveTo(o.x,o.y,a.x,a.y,n.x,n.y)}},{key:"pathQ",value:function(t,e){var r=this.pathParser,n=y.pathQ(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathT",value:function(t,e){var r=this.pathParser,n=y.pathT(r),i=n.current,o=n.controlPoint,n=n.currentPoint;r.addMarker(n,o,o),e.addQuadraticCurve(i.x,i.y,o.x,o.y,n.x,n.y),t&&t.quadraticCurveTo(o.x,o.y,n.x,n.y)}},{key:"pathA",value:function(t,e){var r=this.pathParser,n=y.pathA(r),i=n.currentPoint,o=n.rX,a=n.rY,u=n.sweepFlag,s=n.xAxisRotation,c=n.centp,l=n.a1,f=n.ad,h=1-u?1:-1,p=l+f/2*h,n=new Io(c.x+o*Math.cos(p),c.y+a*Math.sin(p));r.addMarkerAngle(n,p-h*Math.PI/2),r.addMarkerAngle(i,p-h*Math.PI),e.addPoint(i.x,i.y),!t||isNaN(l)||isNaN(f)||(e=a<o?o:a,i=a<o?1:o/a,o=a<o?a/o:1,t.translate(c.x,c.y),t.rotate(s),t.scale(i,o),t.arc(0,0,e,l,l+f,Boolean(1-u)),t.scale(1/i,1/o),t.rotate(-s),t.translate(-c.x,-c.y))}},{key:"pathZ",value:function(t,e){y.pathZ(this.pathParser),t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath()}}],[{key:"pathM",value:function(t){var e=t.getAsCurrentPoint();return t.start=t.current,{point:e}}},{key:"pathL",value:function(t){return{current:t.current,point:t.getAsCurrentPoint()}}},{key:"pathH",value:function(t){var e=t.current,r=t.command,r=new Io((r.relative?e.x:0)+r.x,e.y);return{current:e,point:t.current=r}}},{key:"pathV",value:function(t){var e=t.current,r=t.command,r=new Io(e.x,(r.relative?e.y:0)+r.y);return{current:e,point:t.current=r}}},{key:"pathC",value:function(t){return{current:t.current,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathS",value:function(t){return{current:t.current,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathQ",value:function(t){return{current:t.current,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}},{key:"pathT",value:function(t){var e=t.current,r=t.getReflectedControlPoint();return{current:e,controlPoint:t.control=r,currentPoint:t.getAsCurrentPoint()}}},{key:"pathA",value:function(t){var e=t.current,r=t.command,n=r.rX,i=r.rY,o=r.xRot,a=r.lArcFlag,u=r.sweepFlag,s=o*(Math.PI/180),c=t.getAsCurrentPoint(),r=new Io(Math.cos(s)*(e.x-c.x)/2+Math.sin(s)*(e.y-c.y)/2,-Math.sin(s)*(e.x-c.x)/2+Math.cos(s)*(e.y-c.y)/2),o=Math.pow(r.x,2)/Math.pow(n,2)+Math.pow(r.y,2)/Math.pow(i,2);1<o&&(n*=Math.sqrt(o),i*=Math.sqrt(o));t=(a===u?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(r.y,2)-Math.pow(i,2)*Math.pow(r.x,2))/(Math.pow(n,2)*Math.pow(r.y,2)+Math.pow(i,2)*Math.pow(r.x,2)));isNaN(t)&&(t=0);o=new Io(t*n*r.y/i,t*-i*r.x/n),a=new Io((e.x+c.x)/2+Math.cos(s)*o.x-Math.sin(s)*o.y,(e.y+c.y)/2+Math.sin(s)*o.x+Math.cos(s)*o.y),t=bi([1,0],[(r.x-o.x)/n,(r.y-o.y)/i]),e=[(r.x-o.x)/n,(r.y-o.y)/i],r=[(-r.x-o.x)/n,(-r.y-o.y)/i],o=bi(e,r);return xi(e,r)<=-1&&(o=Math.PI),{currentPoint:c,rX:n,rY:i,sweepFlag:u,xAxisRotation:s,centp:a,a1:t,ad:o=1<=xi(e,r)?0:o}}},{key:"pathZ",value:function(t){t.current=t.start}}]),y}();var Uu=function(){qo(o,zu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return o}();var Hu=function(){qo(o,Fu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Mi(o,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];iu(ta(o.prototype),"setContext",this).call(this,t,e);e=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();e&&(t.textBaseline=e)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(r){var n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(r);var i=null;return this.children.forEach(function(t,e){e=n.getChildBoundingBox(r,n,n,e);i?i.addBoundingBox(e):i=e}),i}},{key:"getFontSize",value:function(){var t=this.document,e=this.parent,t=au.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new su(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o,a=e[r],u=null;return t.isArabic?(n=e.length,i=e[r-1],o=e[r+1],void 0!==t.glyphs[a]&&(u=(e=t.glyphs[a])instanceof Uu?e:e[0<r&&" "!==i&&(r===n-1||" "===o)?"initial":0<r&&" "!==i&&r<n-1&&" "!==o?"medial":(0===r||" "===i)&&r<n-1&&" "!==o?"terminal":"isolated"])):u=t.glyphs[a],u=u||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=Array.from(e.parentNode.childNodes),t=r.indexOf(e),r=r.length-1,e=Wn(e.textContent||"");return 0===t&&(e=qn(e)),e=t===r?$n(e):e}},{key:"renderChildren",value:function(r){var t,n=this;"text"===this.type?(this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(r),this.children.forEach(function(t,e){n.renderChild(r,n,n,e)}),(t=this.document.screen.mouse).isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(r))):this.renderTElementChildren(r)}},{key:"renderTElementChildren",value:function(t){var e=this.document,r=this.parent,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i)for(var o=i.fontFace.unitsPerEm,a=au.parse(e.ctx.font),u=r.getStyle("font-size").getNumber(a.fontSize),s=r.getStyle("font-style").getString(a.fontStyle),c=u/o,l=i.isRTL?n.split("").reverse().join(""):n,f=Qn(r.getAttribute("dx").getString()),h=l.length,p=0;p<h;p++){var y=this.getGlyph(i,l,p);t.translate(this.x,this.y),t.scale(c,-c);var d=t.lineWidth;t.lineWidth=t.lineWidth*o/u,"italic"===s&&t.transform(1,0,.4,1,0,0),y.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=d,t.scale(1/c,-1/c),t.translate(-this.x,-this.y),this.x+=u*(y.horizAdvX||i.horizAdvX)/o,void 0===f[p]||isNaN(f[p])||(this.x+=f[p])}else{a=this.x,r=this.y;t.fillStyle&&t.fillText(n,a,r),t.strokeStyle&&t.strokeText(n,a,r)}}},{key:"applyAnchoring",value:function(){if(!(this.textChunkStart>=this.leafTexts.length)){for(var t=this.leafTexts[this.textChunkStart],e=t.getStyle("text-anchor").getString("start"),r="start"===e?t.x-this.minX:"end"===e?t.x-this.maxX:t.x-(this.minX+this.maxX)/2,n=this.textChunkStart;n<this.leafTexts.length;n++)this.leafTexts[n].x+=r;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}},{key:"adjustChildCoordinatesRecursive",value:function(r){var n=this;this.children.forEach(function(t,e){n.adjustChildCoordinatesRecursiveCore(r,n,n,e)}),this.applyAnchoring()}},{key:"adjustChildCoordinatesRecursiveCore",value:function(r,n,t,e){var i=t.children[e];0<i.children.length?i.children.forEach(function(t,e){n.adjustChildCoordinatesRecursiveCore(r,n,i,e)}):this.adjustChildCoordinates(r,n,t,e)}},{key:"adjustChildCoordinates",value:function(t,e,r,n){var i=r.children[n];if("function"!=typeof i.measureText)return i;t.save(),i.setContext(t,!0);var o=i.getAttribute("x"),a=i.getAttribute("y"),u=i.getAttribute("dx"),s=i.getAttribute("dy"),r=i.getStyle("font-family").getDefinition(),r=Boolean(r)&&r.isRTL;0===n&&(o.hasValue()||o.setValue(i.getInheritedAttribute("x")),a.hasValue()||a.setValue(i.getInheritedAttribute("y")),u.hasValue()||u.setValue(i.getInheritedAttribute("dx")),s.hasValue()||s.setValue(i.getInheritedAttribute("dy")));n=i.measureText(t);return r&&(e.x-=n),o.hasValue()?(e.applyAnchoring(),i.x=o.getPixels("x"),u.hasValue()&&(i.x+=u.getPixels("x"))):(u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x,r||(e.x+=n),a.hasValue()?(i.y=a.getPixels("y"),s.hasValue()&&(i.y+=s.getPixels("y"))):(s.hasValue()&&(e.y+=s.getPixels("y")),i.y=e.y),e.y=i.y,e.leafTexts.push(i),e.minX=Math.min(e.minX,i.x,i.x+n),e.maxX=Math.max(e.maxX,i.x,i.x+n),i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(r,n,t,e){var i=t.children[e];if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(r);return o?(i.children.forEach(function(t,e){e=n.getChildBoundingBox(r,n,i,e);o.addBoundingBox(e)}),o):null}},{key:"renderChild",value:function(r,n,t,e){var i=t.children[e];i.render(r),i.children.forEach(function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;e=this.getText(),e=this.measureTargetText(t,e);return this.measureCache=e}},{key:"measureTargetText",value:function(t,e){if(!e.length)return 0;var r=this.parent,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),o=n.isRTL?e.split("").reverse().join(""):e,a=Qn(r.getAttribute("dx").getString()),u=o.length,s=0,c=0;c<u;c++)s+=(this.getGlyph(n,o,c).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===a[c]||isNaN(a[c])||(s+=a[c]);return s}if(!t.measureText)return 10*e.length;t.save(),this.setContext(t,!0);e=t.measureText(e).width;return this.clearContext(t),t.restore(),e}},{key:"getInheritedAttribute",value:function(t){for(var e=this;e instanceof o&&e.isFirstChild();){var r=e.parent.getAttribute(t);if(r.hasValue(!0))return r.getValue("0");e=e.parent}return null}}]),o}();var Xu=function(){qo(o,Hu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,(this instanceof o?this.constructor:void 0)===o||r)).type="tspan",r.text=0<r.children.length?"":r.getTextFromNode(),r}return Mi(o,[{key:"getText",value:function(){return this.text}}]),o}();var Yu=function(){qo(i,Xu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="textNode",t}return i}();var Gu=function(){qo(y,Fu);var r,n,e=(r=y,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function y(){var t;return Ci(this,y),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return Mi(y,[{key:"setContext",value:function(t){var e=this.document,r=e.screen,n=e.window,i=t.canvas;r.setDefaults(t),i.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle&&(t.font=n.getComputedStyle(i).getPropertyValue("font"),(p=new To(e,"fontSize",au.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=p.getPixels("y"),e.emSize=e.rootEmSize)),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var o=r.viewPort,a=o.width,u=o.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 s=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),f=l.hasValue()?Qn(l.getString()):null,h=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),n=0,i=0,p=0,o=0;f&&(n=f[0],i=f[1]),this.root||(a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y"),"marker"===this.type&&(p=n,o=i,i=n=0)),r.viewPort.setCurrent(a,u),!this.node||this.parent&&"foreignObject"!==(null===(l=this.node.parentNode)||void 0===l?void 0:l.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),iu(ta(y.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(a=f[2],u=f[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:u,minX:n,minY:i,refX:s.getValue(),refY:c.getValue(),clip:h,clipX:p,clipY:o}),f&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,u))}},{key:"clearContext",value:function(t){iu(ta(y.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),a=this.getAttribute("style"),u=n.getNumber(0),s=i.getNumber(0);r&&("string"==typeof r?this.getAttribute("preserveAspectRatio",!0).setValue(r):(r=this.getAttribute("preserveAspectRatio")).hasValue()&&r.setValue(r.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))),n.setValue(t),i.setValue(e),o.hasValue()||o.setValue("0 0 ".concat(u||t," ").concat(s||e)),a.hasValue()&&(s=this.getStyle("width"),a=this.getStyle("height"),s.hasValue()&&s.setValue("".concat(t,"px")),a.hasValue()&&a.setValue("".concat(e,"px")))}}]),y}();var Wu=function(){qo(i,zu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="rect",t}return Mi(i,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),a=this.getAttribute("ry"),u=o.getPixels("x"),s=a.getPixels("y");return o.hasValue()&&!a.hasValue()&&(s=u),a.hasValue()&&!o.hasValue()&&(u=s),u=Math.min(u,n/2),s=Math.min(s,i/2),t&&(o=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<i&&0<n&&(t.moveTo(e+u,r),t.lineTo(e+n-u,r),t.bezierCurveTo(e+n-u+o*u,r,e+n,r+s-o*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+o*s,e+n-u+o*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-o*u,r+i,e,r+i-s+o*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-o*s,e+u-o*u,r,e+u,r),t.closePath())),new su(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),i}();Zr=function(){qo(i,zu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="circle",t}return Mi(i,[{key:"path",value:function(t){var e=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return t&&0<n&&(t.beginPath(),t.arc(e,r,n,0,2*Math.PI,!1),t.closePath()),new su(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),i}();re=function(){qo(i,zu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="ellipse",t}return Mi(i,[{key:"path",value:function(t){var e=(Math.sqrt(2)-1)/3*4,r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return t&&0<r&&0<n&&(t.beginPath(),t.moveTo(i+r,o),t.bezierCurveTo(i+r,o+e*n,i+e*r,o+n,i,o+n),t.bezierCurveTo(i-e*r,o+n,i-r,o+e*n,i-r,o),t.bezierCurveTo(i-r,o-e*n,i-e*r,o-n,i,o-n),t.bezierCurveTo(i+e*r,o-n,i+r,o-e*n,i+r,o),t.closePath()),new su(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),i}();b=function(){qo(i,zu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="line",t}return Mi(i,[{key:"getPoints",value:function(){return[new Io(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Io(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=this.getPoints(),r=ui(e,2),n=r[0],i=n.x,e=n.y,n=r[1],r=n.x,n=n.y;return t&&(t.beginPath(),t.moveTo(i,e),t.lineTo(r,n)),new su(i,e,r,n)}},{key:"getMarkers",value:function(){var t=this.getPoints(),e=ui(t,2),r=e[0],t=e[1],e=r.angleTo(t);return[[r,e],[t,e]]}}]),i}();var qu=function(){qo(o,zu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="polyline",r.points=[],r.points=Io.parsePath(r.getAttribute("points").getString()),r}return Mi(o,[{key:"path",value:function(r){var t=this.points,e=ui(t,1)[0],n=e.x,e=e.y,i=new su(n,e);return r&&(r.beginPath(),r.moveTo(n,e)),t.forEach(function(t){var e=t.x,t=t.y;i.addPoint(e,t),r&&r.lineTo(e,t)}),i}},{key:"getMarkers",value:function(){var r=this.points,n=r.length-1,i=[];return r.forEach(function(t,e){e!==n&&i.push([t,t.angleTo(r[e+1])])}),0<i.length&&i.push([r[r.length-1],i[i.length-1][1]]),i}}]),o}();Ce=function(){qo(i,qu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="polygon",t}return Mi(i,[{key:"path",value:function(t){var e=iu(ta(i.prototype),"path",this).call(this,t),r=ui(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();gt=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="pattern",t}return Mi(i,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new Gu(this.document,null);o.attributes.viewBox=new To(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new To(this.document,"width","".concat(n,"px")),o.attributes.height=new To(this.document,"height","".concat(i,"px")),o.attributes.transform=new To(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),u=a.getContext("2d"),n=this.getAttribute("x"),i=this.getAttribute("y");n.hasValue()&&i.hasValue()&&u.translate(n.getPixels("x",!0),i.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var s=-1;s<=1;s++)for(var c=-1;c<=1;c++)u.save(),o.attributes.x=new To(this.document,"x",s*a.width),o.attributes.y=new To(this.document,"y",c*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),i}();o=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="marker",t}return Mi(i,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,i=e.y,o=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth"),t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save(),(e=new Gu(this.document,null)).type=this.type,e.attributes.viewBox=new To(this.document,"viewBox",this.getAttribute("viewBox").getValue()),e.attributes.refX=new To(this.document,"refX",this.getAttribute("refX").getValue()),e.attributes.refY=new To(this.document,"refY",this.getAttribute("refY").getValue()),e.attributes.width=new To(this.document,"width",this.getAttribute("markerWidth").getValue()),e.attributes.height=new To(this.document,"height",this.getAttribute("markerHeight").getValue()),e.attributes.overflow=new To(this.document,"overflow",this.getAttribute("overflow").getValue()),e.attributes.fill=new To(this.document,"fill",this.getAttribute("fill").getColor("black")),e.attributes.stroke=new To(this.document,"stroke",this.getAttribute("stroke").getValue("none")),e.children=this.children,e.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===o&&t.rotate(-r),t.translate(-n,-i))}}]),i}();mt=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="defs",t}return Mi(i,[{key:"render",value:function(){}}]),i}();var $u=function(){qo(i,Fu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="g",t}return Mi(i,[{key:"getBoundingBox",value:function(e){var r=new su;return this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),i}();var Qu=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){Ci(this,o),(e=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],e.stops=[];var r=Zo(e),n=r.stops;return r.children.forEach(function(t){"stop"===t.type&&n.push(t)}),e}return Mi(o,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,e,r){var n=this,i=this;this.getHrefAttribute().hasValue()&&(i=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(i));var o=i.stops,a=this.getGradient(t,e);if(!a)return this.addParentOpacity(r,o[o.length-1].color);if(o.forEach(function(t){a.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()){i=this.document,t=i.screen,e=t.MAX_VIRTUAL_PIXELS,o=t.viewPort,t=ui(o.viewPorts,1)[0],o=new Wu(i,null);o.attributes.x=new To(i,"x",-e/3),o.attributes.y=new To(i,"y",-e/3),o.attributes.width=new To(i,"width",e),o.attributes.height=new To(i,"height",e);e=new $u(i,null);e.attributes.transform=new To(i,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[o];o=new Gu(i,null);o.attributes.x=new To(i,"x",0),o.attributes.y=new To(i,"y",0),o.attributes.width=new To(i,"width",t.width),o.attributes.height=new To(i,"height",t.height),o.children=[e];i=i.createCanvas(t.width,t.height),t=i.getContext("2d");return t.fillStyle=a,o.render(t),t.createPattern(i,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(e){var r=this;this.attributesToInherit.forEach(function(t){!r.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&r.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}},{key:"addParentOpacity",value:function(t,e){return t.hasValue()?new To(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();ft=function(){qo(o,Qu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Mi(o,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=r?e.getBoundingBox(t):null;if(r&&!n)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),e=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),n=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===e&&o===n?null:t.createLinearGradient(i,o,e,n)}}]),o}();var Zu=function(){qo(o,Qu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Mi(o,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),n=e.getBoundingBox(t);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=i,e=o;this.getAttribute("fx").hasValue()&&(a=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(e=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));r=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),n=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,e,n,i,o,r)}}]),o}();var Ku=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){var n;Ci(this,o),(n=i.call(this,t,e,r)).type="stop";t=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),e=n.getStyle("stop-opacity"),r=n.getStyle("stop-color",!0);return""===r.getString()&&r.setValue("#000"),e.hasValue()&&(r=r.addOpacity(e)),n.offset=t,n.color=r.getColor(),n}return o}(),Ju="Array Iterator",ts=dt.set,es=dt.getterFor(Ju),rs=va(Array,"Array",function(t,e){ts(this,{type:Ju,target:At(t),index:0,kind:e})},function(){var t=es(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?{value:t.target=void 0,done:!0}:"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}},"values");Se.Arguments=Se.Array,tn("keys"),tn("values"),tn("entries");function ns(t,e){if(t){if(t[os]!==us)try{Z(t,os,us)}catch(e){t[os]=us}if(t[as]||Z(t,as,e),_o[e])for(var r in rs)if(t[r]!==rs[r])try{Z(t,r,rs[r])}catch(e){t[r]=rs[r]}}}var is,os=T("iterator"),as=T("toStringTag"),us=rs.values;for(is in _o)ns(d[is]&&d[is].prototype,is);ns(le,"DOMTokenList");var ss=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){Ci(this,o),(r=i.call(this,t,e,r)).type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,t.screen.animations.push(Zo(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new To(t,"values",null);t=r.getAttribute("values");return t.hasValue()&&r.values.setValue(t.getString().split(";")),r}return Mi(o,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),e=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(e,!0):this.parent.getAttribute(e,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,e=this.getProgress(),r=e.progress,n=e.from,e=e.to,r=n.getNumber()+(e.getNumber()-n.getNumber())*r;return"%"===t&&(r*=100),"".concat(r).concat(t)}},{key:"update",value:function(t){var e=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==n||this.frozen){if("remove"===n&&!this.removed)return this.removed=!0,r.setValue(e.animationFrozen?e.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,e.animationFrozen=!0,e.animationFrozenValue=r.getString();return!1}this.duration+=t;n=!1;return this.begin<this.duration&&(e=this.calcValue(),(t=this.getAttribute("type")).hasValue()&&(t=t.getString(),e="".concat(t,"(").concat(e,")")),r.setValue(e),n=!0),n}},{key:"getProgress",value:function(){var t,e,r,n=this.document,i=this.values,o={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};return i.hasValue()?(t=o.progress*(i.getValue().length-1),e=Math.floor(t),r=Math.ceil(t),o.from=new To(n,"from",parseFloat(i.getValue()[e])),o.to=new To(n,"to",parseFloat(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),o}();ya=function(){qo(i,ss);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="animateColor",t}return Mi(i,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new ko(r.getColor()),t=new ko(n.getColor());if(i.ok&&t.ok){r=i.r+(t.r-i.r)*e,n=i.g+(t.g-i.g)*e,e=i.b+(t.b-i.b)*e;return"rgb(".concat(Math.floor(r),", ").concat(Math.floor(n),", ").concat(Math.floor(e),")")}return this.getAttribute("from").getColor()}}]),i}();ur=function(){qo(i,ss);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="animateTransform",t}return Mi(i,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=Qn(e.getString()),n=Qn(t.getString());return e.map(function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),i}();function cs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}st=function(){qo(f,Ua);var r,n,l=(r=f,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function f(t,e,r){var n;Ci(this,f),(n=l.call(this,t,e,r)).type="font",n.glyphs={},n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber();var i,o=t.definitions,a=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return cs(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?cs(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}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 i,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(Zo(n).children);try{for(a.s();!(i=a.n()).done;){var u=i.value;switch(u.type){case"font-face":var s=(n.fontFace=u).getStyle("font-family");s.hasValue()&&(o[s.getString()]=Zo(n));break;case"missing-glyph":n.missingGlyph=u;break;case"glyph":var c=u;c.arabicForm?(n.isRTL=!0,n.isArabic=!0,void 0===n.glyphs[c.unicode]&&(n.glyphs[c.unicode]={}),n.glyphs[c.unicode][c.arabicForm]=c):n.glyphs[c.unicode]=c}}}catch(t){a.e(t)}finally{a.f()}return n}return Mi(f,[{key:"render",value:function(){}}]),f}();yt=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="font-face",r.ascent=r.getAttribute("ascent").getNumber(),r.descent=r.getAttribute("descent").getNumber(),r.unitsPerEm=r.getAttribute("units-per-em").getNumber(),r}return o}();x=function(){qo(i,zu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return i}();ct=function(){qo(i,Hu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="tref",t}return Mi(i,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),i}();var ls,fs,hs,ps,ys,ds,gs,vs,P=function(){qo(o,Hu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){Ci(this,o),(t=i.call(this,t,e,r)).type="a";r=e.childNodes,e=r[0],r=0<r.length&&Array.from(r).every(function(t){return 3===t.nodeType});return t.hasText=r,t.text=r?t.getTextFromNode(e):"",t}return Mi(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(iu(ta(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,i=this.y,r=n.screen.mouse,n=new To(n,"fontSize",au.parse(n.ctx.font).fontSize),r.isWorking()&&r.checkBoundingBox(this,new su(e,i-n.getPixels("y"),e+this.measureText(t),i))):0<this.children.length&&((i=new $u(this.document,null)).children=this.children,i.parent=this,i.render(t))}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){this.document.ctx.canvas.style.cursor="pointer"}}]),o}(),ms=ae.f,xs={}.toString,bs="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ws={f:function(t){return bs&&"[object Window]"==xs.call(t)?function(t){try{return ms(t)}catch(t){return bs.slice()}}(t):ms(At(t))}},Ss=!k(function(){return Object.isExtensible(Object.preventExtensions({}))}),w=n(function(t){function r(t){e(t,a,{value:{objectID:"O"+i++,weakData:{}}})}var e=Q.f,n=!1,a=s("meta"),i=0,o=Object.isExtensible||function(){return!0},u=t.exports={enable:function(){u.enable=function(){},n=!0;var i=ae.f,o=[].splice,t={};t[a]=1,i(t).length&&(ae.f=function(t){for(var e=i(t),r=0,n=e.length;r<n;r++)if(e[r]===a){o.call(e,r,1);break}return e},Ct({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ws.f}))},fastKey:function(t,e){if(!D(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!p(t,a)){if(!o(t))return"F";if(!e)return"E";r(t)}return t[a].objectID},getWeakData:function(t,e){if(!p(t,a)){if(!o(t))return!0;if(!e)return!1;r(t)}return t[a].weakData},onFreeze:function(t){return Ss&&n&&o(t)&&!p(t,a)&&r(t),t}};ht[a]=!0}),Os=Q.f,ks=w.fastKey,Ts=dt.set,As=dt.getterFor;function Rs(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ps(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function Es(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(r),!0).forEach(function(t){Ei(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ps(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cs(t){var r=gs[t];bt(gs,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(ps&&!D(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return ps&&!D(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(ps&&!D(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})}oo=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},vt={getConstructor:function(t,r,n,i){function o(t,e,r){var n,i=s(t),o=a(t,e);return o?o.value=r:(i.last=o={index:n=ks(e,!0),key:e,value:r,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),B?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,n=s(t);if("F"!==(t=ks(e)))return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r}var u=t(function(t,e){It(t,u,r),Ts(t,{type:r,index:vn(null),first:void 0,last:void 0,size:0}),B||(t.size=0),null!=e&&Ft(e,t[i],{that:t,AS_ENTRIES:n})}),s=As(r);return Mt(u.prototype,{clear:function(){for(var t=s(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,B?t.size=0:this.size=0},delete:function(t){var e,r=s(this),n=a(this,t);return n&&(e=n.next,t=n.previous,delete r.index[n.index],n.removed=!0,t&&(t.next=e),e&&(e.previous=t),r.first==n&&(r.first=e),r.last==n&&(r.last=t),B?r.size--:this.size--),!!n},forEach:function(t){for(var e,r=s(this),n=Lt(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),Mt(u.prototype,n?{get:function(t){t=a(this,t);return t&&t.value},set:function(t,e){return o(this,0===t?0:t,e)}}:{add:function(t){return o(this,t=0===t?0:t,t)}}),B&&Os(u.prototype,"size",{get:function(){return s(this).size}}),u},setStrong:function(t,e,r){var n=e+" Iterator",i=As(e),o=As(n);va(t,e,function(t,e){Ts(this,{type:n,target:t,state:i(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:{value:t.target=void 0,done:!0}},r?"entries":"values",!r,!0),_t(e)}},hs=-1!==(ls="Map").indexOf("Map"),ps=-1!==ls.indexOf("Weak"),ys=hs?"set":"add",ds=d.Map,gs=ds&&ds.prototype,ve={},de(ls,!O(vs=ds)||!(ps||gs.forEach&&!k(function(){(new ds).entries().next()})))?(vs=vt.getConstructor(oo,ls,hs,ys),w.enable()):de(ls,!0)&&(Gs=(fs=new vs)[ys](ps?{}:-0,1)!=fs,Xs=k(function(){fs.has(1)}),Hs=Ve(function(t){new ds(t)}),Ys=!ps&&k(function(){for(var t=new ds,e=5;e--;)t[ys](e,e);return!t.has(-0)}),Hs||(((vs=oo(function(t,e){It(t,vs,ls);t=Ga(new ds,t,vs);return null!=e&&Ft(e,t[ys],{that:t,AS_ENTRIES:hs}),t})).prototype=gs).constructor=vs),(Xs||Ys)&&(Cs("delete"),Cs("has"),hs&&Cs("get")),(Ys||Gs)&&Cs(ys),ps&&gs.clear&&delete gs.clear),ve.Map=vs,Ct({global:!0,forced:vs!=ds},ve),Nt(vs,ls),ps||vt.setStrong(vs,ls,hs);zt=function(){qo(o,Hu);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){Ci(this,o),(e=i.call(this,t,e,r)).type="textPath",e.textWidth=0,e.textHeight=0,e.pathLength=-1,e.glyphInfo=null,e.letterSpacingCache=[],e.measuresCache=new Map([["",0]]);r=e.getHrefAttribute().getDefinition();return e.text=e.getTextFromNode(),e.dataArray=e.parsePathData(r),e}return Mi(o,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(p){var t=this.dataArray;p&&p.beginPath(),t.forEach(function(t){var e=t.type,r=t.points;switch(e){case Bu.LINE_TO:p&&p.lineTo(r[0],r[1]);break;case Bu.MOVE_TO:p&&p.moveTo(r[0],r[1]);break;case Bu.CURVE_TO:p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Bu.QUAD_TO:p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Bu.ARC:var n=ui(r,8),i=n[0],o=n[1],a=n[2],u=n[3],s=n[4],c=n[5],l=n[6],f=n[7],h=u<a?a:u,n=u<a?1:a/u,a=u<a?u/a:1;p&&(p.translate(i,o),p.rotate(l),p.scale(n,a),p.arc(0,0,h,s,s+c,Boolean(1-f)),p.scale(1/n,1/a),p.rotate(-l),p.translate(-i,-o));break;case Bu.CLOSE_PATH:p&&p.closePath()}})}},{key:"renderChildren",value:function(o){this.setTextData(o),o.save();var a=this.parent.getStyle("text-decoration").getString(),u=this.getFontSize(),t=this.glyphInfo,e=o.fillStyle;"underline"===a&&o.beginPath(),t.forEach(function(t,e){var r=t.p0,n=t.p1,i=t.rotation,t=t.text;o.save(),o.translate(r.x,r.y),o.rotate(i),o.fillStyle&&o.fillText(t,0,0),o.strokeStyle&&o.strokeText(t,0,0),o.restore(),"underline"===a&&(0===e&&o.moveTo(r.x,r.y+u/8),o.lineTo(n.x,n.y+u/5))}),"underline"===a&&(o.lineWidth=u/20,o.strokeStyle=e,o.stroke(),o.closePath()),o.restore()}},{key:"getLetterSpacingAt",value:function(){return this.letterSpacingCache[0<arguments.length&&void 0!==arguments[0]?arguments[0]:0]||0}},{key:"findSegmentToFitChar",value:function(t,e,r,n,i,o,a,u,s){t=this.measureText(t,u);" "===u&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<s&&(o+=this.getLetterSpacingAt(s));e=this.textHeight/20,n=this.getEquidistantPointOnPath(o,e,0),r=this.getEquidistantPointOnPath(o+t,e,0),i={p0:n,p1:r},s=n&&r?Math.atan2(r.y-n.y,r.x-n.x):0;return a&&(e=Math.cos(Math.PI/2+s)*a,a=Math.cos(-s)*a,i.p0=Es(Es({},n),{},{x:n.x+e,y:n.y+a}),i.p1=Es(Es({},r),{},{x:r.x+e,y:r.y+a})),{offset:o+=t,segment:i,rotation:s}}},{key:"measureText",value:function(t,e){var r=this.measuresCache,e=e||this.getText();if(r.has(e))return r.get(e);t=this.measureTargetText(t,e);return r.set(e,t),t}},{key:"setTextData",value:function(i){var o=this;if(!this.glyphInfo){var t=this.getText(),a=t.split(""),u=t.split(" ").length-1,e=this.parent.getAttribute("dx").split().map(function(t){return t.getPixels("x")}),s=this.parent.getAttribute("dy").getPixels("y"),c=this.parent.getStyle("text-anchor").getString("start"),r=this.getStyle("letter-spacing"),n=this.parent.getStyle("letter-spacing"),l=0;r.hasValue()&&"inherit"!==r.getValue()?r.hasValue()&&"initial"!==r.getValue()&&"unset"!==r.getValue()&&(l=r.getPixels()):l=n.getPixels();var f=[],h=t.length;this.letterSpacingCache=f;for(var p=0;p<h;p++)f.push(void 0!==e[p]?e[p]:l);var n=f.reduce(function(t,e,r){return 0!==r&&t+e||0},0),t=this.measureText(i),y=Math.max(t+n,0);this.textWidth=t,this.textHeight=this.getFontSize(),this.glyphInfo=[];var d=this.getPathLength(),t=this.getStyle("startOffset").getNumber(0)*d,g="end"!==c&&"right"!==c?"middle"!==c&&"center"!==c?0:-y/2:-y;g+=t,a.forEach(function(t,e){var r=o.findSegmentToFitChar(i,c,y,d,u,g,s,t,e),n=r.offset,t=r.segment,r=r.rotation;g=n,t.p0&&t.p1&&o.glyphInfo.push({text:a[e],p0:t.p0,p1:t.p1,rotation:r})})}}},{key:"parsePathData",value:function(t){if(this.pathLength=-1,!t)return[];var e=[],r=t.pathParser;for(r.reset();!r.isEnd();){var n=r.current,i=n?n.x:0,o=n?n.y:0,n=r.next(),a=n.type,u=[];switch(n.type){case Bu.MOVE_TO:this.pathM(r,u);break;case Bu.LINE_TO:a=this.pathL(r,u);break;case Bu.HORIZ_LINE_TO:a=this.pathH(r,u);break;case Bu.VERT_LINE_TO:a=this.pathV(r,u);break;case Bu.CURVE_TO:this.pathC(r,u);break;case Bu.SMOOTH_CURVE_TO:a=this.pathS(r,u);break;case Bu.QUAD_TO:this.pathQ(r,u);break;case Bu.SMOOTH_QUAD_TO:a=this.pathT(r,u);break;case Bu.ARC:u=this.pathA(r);break;case Bu.CLOSE_PATH:zu.pathZ(r)}n.type!==Bu.CLOSE_PATH?e.push({type:a,points:u,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,u)}):e.push({type:Bu.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=zu.pathM(t).point,t=r.x,r=r.y;e.push(t,r)}},{key:"pathL",value:function(t,e){var r=zu.pathL(t).point,t=r.x,r=r.y;return e.push(t,r),Bu.LINE_TO}},{key:"pathH",value:function(t,e){var r=zu.pathH(t).point,t=r.x,r=r.y;return e.push(t,r),Bu.LINE_TO}},{key:"pathV",value:function(t,e){var r=zu.pathV(t).point,t=r.x,r=r.y;return e.push(t,r),Bu.LINE_TO}},{key:"pathC",value:function(t,e){var r=zu.pathC(t),n=r.point,t=r.controlPoint,r=r.currentPoint;e.push(n.x,n.y,t.x,t.y,r.x,r.y)}},{key:"pathS",value:function(t,e){var r=zu.pathS(t),n=r.point,t=r.controlPoint,r=r.currentPoint;return e.push(n.x,n.y,t.x,t.y,r.x,r.y),Bu.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=zu.pathQ(t),t=r.controlPoint,r=r.currentPoint;e.push(t.x,t.y,r.x,r.y)}},{key:"pathT",value:function(t,e){var r=zu.pathT(t),t=r.controlPoint,r=r.currentPoint;return e.push(t.x,t.y,r.x,r.y),Bu.QUAD_TO}},{key:"pathA",value:function(t){var e=zu.pathA(t),r=e.rX,n=e.rY,i=e.sweepFlag,o=e.xAxisRotation,a=e.centp,t=e.a1,e=e.ad;return 0===i&&0<e&&(e-=2*Math.PI),1===i&&e<0&&(e+=2*Math.PI),[a.x,a.y,r,n,t,e,o,i]}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,u=0;switch(r){case Bu.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case Bu.CURVE_TO:for(o=this.getPointOnCubicBezier(i=0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),u=.01;u<=1;u+=.01)a=this.getPointOnCubicBezier(u,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case Bu.QUAD_TO:for(o=this.getPointOnQuadraticBezier(i=0,t,e,n[0],n[1],n[2],n[3]),u=.01;u<=1;u+=.01)a=this.getPointOnQuadraticBezier(u,t,e,n[0],n[1],n[2],n[3]),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return i;case Bu.ARC:var i=0,s=n[4],c=n[5],l=n[4]+c,f=Math.PI/180;if(Math.abs(s-l)<f&&(f=Math.abs(s-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),c<0)for(u=s-f;l<u;u-=f)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(u=s+f;u<l;u+=f)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;return a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],l,0),i+this.getLineLength(o.x,o.y,a.x,a.y)}return 0}},{key:"getPointOnLine",value:function(t,e,r,n,i){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:e,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:r,u=(i-r)/(n-e+vi),s=Math.sqrt(t*t/(1+u*u));n<e&&(s*=-1);var c=u*s,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+vi)==u)l={x:o+s,y:a+c};else{var f=0,h=this.getLineLength(e,r,n,i);if(h<vi)return null;var p=(o-e)*(n-e)+(a-r)*(i-r),y=e+(p/=h*h)*(n-e),r=this.getLineLength(o,a,y,f=r+p*(i-r)),r=Math.sqrt(t*t-r*r),s=Math.sqrt(r*r/(1+u*u));n<e&&(s*=-1),l={x:y+s,y:f+(c=u*s)}}return l}},{key:"getPointOnPath",value:function(t){var e=this.getPathLength(),r=0,n=null;if(t<-5e-5||e<t-5e-5)return null;var i,o=function(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t){if(t){if("string"==typeof t)return Rs(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Rs(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,e=function(){};return{s:e,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:e}}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 i,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}(this.dataArray);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!a||!(a.pathLength<5e-5||r+a.pathLength+5e-5<t)){var u=t-r,s=0;switch(a.type){case Bu.LINE_TO:n=this.getPointOnLine(u,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case Bu.ARC:var c=a.points[4],l=a.points[5],f=a.points[4]+l,s=c+u/a.pathLength*l;if(l<0&&s<f||0<=l&&f<s)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case Bu.CURVE_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnCubicBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case Bu.QUAD_TO:1<(s=u/a.pathLength)&&(s=1),n=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3])}if(n)return n;break}r+=a.pathLength}}catch(t){o.e(t)}finally{o.f()}return null}},{key:"getLineLength",value:function(t,e,r,n){return Math.sqrt((r-t)*(r-t)+(n-e)*(n-e))}},{key:"getPathLength",value:function(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(function(t,e){return 0<e.pathLength?t+e.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,e,r,n,i,o,a,u,s){return{x:u*wi(t)+o*Si(t)+n*Oi(t)+e*ki(t),y:s*wi(t)+a*Si(t)+i*Oi(t)+r*ki(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Ti(t)+n*Ai(t)+e*Ri(t),y:a*Ti(t)+i*Ai(t)+r*Ri(t)}}},{key:"getPointOnEllipticalArc",value:function(t,e,r,n,i,o){var a=Math.cos(o),o=Math.sin(o),r=r*Math.cos(i),i=n*Math.sin(i);return{x:t+(r*a-i*o),y:e+(r*o+i*a)}}},{key:"buildEquidistantCache",value:function(t,e){var r=this.getPathLength(),n=e||.25,i=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var o=0,a=0;a<=r;a+=n){var u=this.getPointOnPath(a),s=this.getPointOnPath(a+n);u&&s&&(o+=this.getLineLength(u.x,u.y,s.x,s.y))>=i&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:a}),o-=i)}}}},{key:"getEquidistantPointOnPath",value:function(t,e,r){if(this.buildEquidistantCache(e,r),t<0||5e-5<t-this.getPathLength())return null;t=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[t]||null}}]),o}();var Ms=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,m=function(){qo(a,Fu);var e,r,n,i,o=(n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(n);return e=i?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function a(t,e,r){var n;Ci(this,a),(n=o.call(this,t,e,r)).type="image",n.loaded=!1;e=n.getHrefAttribute().getString();if(!e)return Ko(n);r=e.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(e);return t.images.push(Zo(n)),r?n.loadSvg(e):n.loadImage(e),n.isSvg=r,n}return Mi(a,[{key:"loadImage",value:(r=Yr(Xr.mark(function t(e){var r;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.createImage(e);case 3:r=t.sent,this.image=r,t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 10:this.loaded=!0;case 11:case"end":return t.stop()}},t,this,[[0,7]])})),function(t){return r.apply(this,arguments)})},{key:"loadSvg",value:(e=Yr(Xr.mark(function t(e){var r,n,i;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=Ms.exec(e))){t.next=6;break}n=r[5],"base64"===r[4]?this.image=atob(n):this.image=decodeURIComponent(n),t.next=19;break;case 6:return t.prev=6,t.next=9,this.document.fetch(e);case 9:return i=t.sent,t.next=12,i.text();case 12:i=t.sent,this.image=i,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),console.error('Error while loading image "'.concat(e,'":'),t.t0);case 19:this.loaded=!0;case 20:case"end":return t.stop()}},t,this,[[6,16]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e,r=this.document,n=this.image,i=this.loaded,o=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),u=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");i&&n&&u&&s&&(t.save(),t.translate(o,a),this.isSvg?((e=r.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:u,scaleHeight:s})).document.documentElement.parent=this,e.render()):(e=this.image,r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:u,desiredWidth:e.width,height:s,desiredHeight:e.height}),this.loaded&&(void 0===e.complete||e.complete)&&t.drawImage(e,0,0)),t.restore())}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),e=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new su(t,e,t+r,e+n)}}]),a}();var Ns,L=function(){qo(i,Fu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="symbol",t}return Mi(i,[{key:"render",value:function(t){}}]),i}(),_s=(Mi(Is,[{key:"load",value:(Ns=Yr(Xr.mark(function t(e,r){var n,i;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=this.document,t.next=4,n.canvg.parser.load(r);case 4:i=t.sent,i=i.getElementsByTagName("font"),Array.from(i).forEach(function(t){t=n.createElement(t);n.definitions[e]=t}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0),console.error('Error while loading font "'.concat(r,'":'),t.t0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return Ns.apply(this,arguments)})}]),Is);function Is(t){Ci(this,Is),this.document=t,this.loaded=!1,t.fonts.push(this)}tn=function(){qo(a,Ua);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function a(i,t,e){return Ci(this,a),(e=o.call(this,i,t,e)).type="style",Wn(Array.from(t.childNodes).map(function(t){return t.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(t){var r,e=t.trim();e&&(e=(t=e.split("{"))[0].split(","),r=t[1].split(";"),e.forEach(function(t){var n,e,t=t.trim();t&&(n=i.styles[t]||{},r.forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),e=t.substr(e+1,t.length-e).trim();r&&e&&(n[r]=new To(i,r,e))}),i.styles[t]=n,i.stylesSpecificity[t]=gi(t),"@font-face"===t&&(e=n["font-family"].getString().replace(/"|'/g,""),n.src.getString().split(",").forEach(function(t){0<t.indexOf('format("svg")')&&((t=Jn(t))&&new _s(i).load(e,t))})))}))}),e}return a}();tn.parseExternalUrl=Jn;le=function(){qo(i,Fu);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="use",t}return Mi(i,[{key:"setContext",value:function(t){iu(ta(i.prototype),"setContext",this).call(this,t);var e=this.getAttribute("x"),r=this.getAttribute("y");e.hasValue()&&t.translate(e.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var e=this.element;e&&e.path(t)}},{key:"renderChildren",value:function(t){var e,r,n=this.document,i=this.element;i&&("symbol"===(e=i).type&&((e=new Gu(n,null)).attributes.viewBox=new To(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new To(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new To(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new To(n,"opacity",this.calculateOpacity())),"svg"===e.type&&(i=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0),i.hasValue()&&(e.attributes.width=new To(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new To(n,"height",r.getString()))),r=e.parent,e.parent=this,e.render(t),e.parent=r)}},{key:"getBoundingBox",value:function(t){var e=this.element;return e?e.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,e=this.element;return Fa.fromElement(t,e)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),i}();function Vs(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function Ls(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function Bs(t,e,r){return t[e]*r}function Ds(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var js=function(){qo(a,Ua);var r,n,o=(r=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function a(t,e,r){Ci(this,a),(r=o.call(this,t,e,r)).type="feColorMatrix";var n=Qn(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":var i=n[0],n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":i=n[0]*Math.PI/180;n=[Ds(i,.213,.787,-.213),Ds(i,.715,-.715,-.715),Ds(i,.072,-.072,.928),0,0,Ds(i,.213,-.213,.143),Ds(i,.715,.285,.14),Ds(i,.072,-.072,-.283),0,0,Ds(i,.213,-.213,-.787),Ds(i,.715,-.715,.715),Ds(i,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[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 r.matrix=n,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Mi(a,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,u=t.getImageData(0,0,n,i),s=0;s<i;s++)for(var c=0;c<n;c++){var l=Vs(u.data,c,s,n,0,0),f=Vs(u.data,c,s,n,0,1),h=Vs(u.data,c,s,n,0,2),p=Vs(u.data,c,s,n,0,3),y=Bs(a,0,l)+Bs(a,1,f)+Bs(a,2,h)+Bs(a,3,p)+Bs(a,4,1),d=Bs(a,5,l)+Bs(a,6,f)+Bs(a,7,h)+Bs(a,8,p)+Bs(a,9,1),g=Bs(a,10,l)+Bs(a,11,f)+Bs(a,12,h)+Bs(a,13,p)+Bs(a,14,1),h=Bs(a,15,l)+Bs(a,16,f)+Bs(a,17,h)+Bs(a,18,p)+Bs(a,19,1);o&&(g=d=y=0,h*=p/255),Ls(u.data,c,s,n,0,0,y),Ls(u.data,c,s,n,0,1,d),Ls(u.data,c,s,n,0,2,g),Ls(u.data,c,s,n,0,3,h)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),a}();w=function(){qo(p,Ua);var r,n,e=(r=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function p(){var t;return Ci(this,p),(t=e.apply(this,arguments)).type="mask",t}return Mi(p,[{key:"apply",value:function(e,t){var r,n=this.document,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");a||u||(r=new su,this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),i=Math.floor(r.x1),o=Math.floor(r.y1),a=Math.floor(r.width),u=Math.floor(r.height));var s=this.removeStyles(t,p.ignoreStyles),c=n.createCanvas(i+a,o+u),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new js(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+u);var f=n.createCanvas(i+a,o+u),h=f.getContext("2d");n.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=l.createPattern(c,"no-repeat"),h.fillRect(0,0,i+a,o+u),e.fillStyle=h.createPattern(f,"no-repeat"),e.fillRect(0,0,i+a,o+u),this.restoreStyles(t,s)}},{key:"render",value:function(t){}}]),p}();w.ignoreStyles=["mask","transform","clip-path"];var Fs=i("Reflect","apply"),zs=Function.apply,Ve=!k(function(){Fs(function(){})});Ct({target:"Reflect",stat:!0,forced:Ve},{apply:function(t,e,r){return Y(t),U(r),Fs?Fs(t,e,r):zs.call(t,e,r)}}),Ct({target:"Reflect",stat:!0,sham:!a},{getPrototypeOf:function(t){return ha(U(t))}});function Us(){}var Hs=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="clipPath",t}return Mi(i,[{key:"apply",value:function(r){var n=this.document,i=Reflect.getPrototypeOf(r),t=r.beginPath,o=r.closePath;i&&(i.beginPath=Us,i.closePath=Us),Reflect.apply(t,r,[]),this.children.forEach(function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||Fa.fromElement(n,t))&&e.apply(r),t.path(r),i&&(i.closePath=o),e&&e.unapply(r))}),Reflect.apply(o,r,[]),r.clip(),i&&(i.beginPath=t,i.closePath=o)}},{key:"render",value:function(t){}}]),i}();oo=function(){qo(p,Ua);var r,n,e=(r=p,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function p(){var t;return Ci(this,p),(t=e.apply(this,arguments)).type="filter",t}return Mi(p,[{key:"apply",value:function(t,e){var r,n,i,o,a,u,s,c,l=this.document,f=this.children,h=e.getBoundingBox(t);h&&(n=r=0,f.forEach(function(t){t=t.extraFilterDistance||0;r=Math.max(r,t),n=Math.max(n,t)}),s=Math.floor(h.width),u=Math.floor(h.height),o=u+2*n,(i=s+2*r)<1||o<1||(a=Math.floor(h.x),u=Math.floor(h.y),s=this.removeStyles(e,p.ignoreStyles),h=l.createCanvas(i,o),c=h.getContext("2d"),l.screen.setDefaults(c),c.translate(-a+r,-u+n),e.render(c),f.forEach(function(t){"function"==typeof t.apply&&t.apply(c,0,0,i,o)}),t.drawImage(h,0,0,i,o,a-r,u-n,i,o),this.restoreStyles(e,s)))}},{key:"render",value:function(t){}}]),p}();oo.ignoreStyles=["filter","transform","clip-path"];var Xs=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return Mi(o,[{key:"apply",value:function(t,e,r,n,i){}}]),o}();var Ys=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="feMorphology",t}return Mi(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();var Gs=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="feComposite",t}return Mi(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}();function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var qs=[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],$s=[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 Qs(){!function(t){if(!(t instanceof Qs))throw new TypeError("Cannot call a class as a function")}(this),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}ve=function(){qo(o,Ua);var r,n,i=(r=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function o(t,e,r){return Ci(this,o),(r=i.call(this,t,e,r)).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return Mi(o,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,u=o.window?o.window.document.body:null,s=t.canvas;s.id=o.getUniqueId(),u&&(s.style.display="none",u.appendChild(s)),t=s,o=e,e=r,r=n,n=i,i=a,isNaN(i)||i<1||(i|=0,a=function(t,e,r,n){for(var i,o=t.data,a=2*n+1,u=e-1,s=r-1,c=n+1,l=c*(c+1)/2,f=new Qs,h=f,p=1;p<a;p++)h=h.next=new Qs,p===c&&(i=h);h.next=f;for(var y=null,d=null,g=0,v=0,m=qs[n],x=$s[n],b=0;b<r;b++){for(var h=f,w=o[v],S=o[v+1],O=o[v+2],k=o[v+3],T=0;T<c;T++)h.r=w,h.g=S,h.b=O,h.a=k,h=h.next;for(var A=0,R=0,P=0,E=0,C=c*w,M=c*S,N=c*O,_=c*k,I=l*w,V=l*S,L=l*O,B=l*k,D=1;D<c;D++){var j=v+((u<D?u:D)<<2),F=o[j],z=o[j+1],U=o[j+2],H=o[j+3],j=c-D;I+=(h.r=F)*j,V+=(h.g=z)*j,L+=(h.b=U)*j,B+=(h.a=H)*j,A+=F,R+=z,P+=U,E+=H,h=h.next}y=f;for(var d=i,X=0;X<e;X++){var Y=B*m>>x;0!=(o[v+3]=Y)?(o[v]=(I*m>>x)*(q=255/Y),o[v+1]=(V*m>>x)*q,o[v+2]=(L*m>>x)*q):o[v]=o[v+1]=o[v+2]=0,I-=C,V-=M,L-=N,B-=_,C-=y.r,M-=y.g,N-=y.b,_-=y.a;var G=g+((G=X+n+1)<u?G:u)<<2;I+=A+=y.r=o[G],V+=R+=y.g=o[G+1],L+=P+=y.b=o[G+2],B+=E+=y.a=o[G+3];var y=y.next,W=d,Y=W.r,q=W.g,G=W.b,W=W.a;C+=Y,M+=q,N+=G,_+=W,A-=Y,R-=q,P-=G,E-=W,d=d.next,v+=4}g+=e}for(var $=0;$<e;$++){var Q=o[v=$<<2],Z=o[v+1],K=o[v+2],J=o[v+3],tt=c*Q,et=c*Z,rt=c*K,nt=c*J,it=l*Q,ot=l*Z,at=l*K,ut=l*J;h=f;for(var st=0;st<c;st++)h.r=Q,h.g=Z,h.b=K,h.a=J,h=h.next;for(var ct=e,lt=0,ft=0,ht=0,pt=0,yt=1;yt<=n;yt++){var v=ct+$<<2,dt=c-yt;it+=(h.r=Q=o[v])*dt,ot+=(h.g=Z=o[v+1])*dt,at+=(h.b=K=o[v+2])*dt,ut+=(h.a=J=o[v+3])*dt,pt+=Q,lt+=Z,ft+=K,ht+=J,h=h.next,yt<s&&(ct+=e)}v=$,y=f,d=i;for(var gt=0;gt<r;gt++){var vt=v<<2;o[vt+3]=J=ut*m>>x,0<J?(o[vt]=(it*m>>x)*(J=255/J),o[vt+1]=(ot*m>>x)*J,o[vt+2]=(at*m>>x)*J):o[vt]=o[vt+1]=o[vt+2]=0,it-=tt,ot-=et,at-=rt,ut-=nt,tt-=y.r,et-=y.g,rt-=y.b,nt-=y.a,vt=$+((vt=gt+c)<s?vt:s)*e<<2,it+=pt+=y.r=o[vt],ot+=lt+=y.g=o[vt+1],at+=ft+=y.b=o[vt+2],ut+=ht+=y.a=o[vt+3],y=y.next,tt+=Q=d.r,et+=Z=d.g,rt+=K=d.b,nt+=J=d.a,pt-=Q,lt-=Z,ft-=K,ht-=J,d=d.next,v+=e}}return t}(a=function(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===Ws(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var o=t.getContext("2d");try{return o.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}(t,o,e,r,n),r,n,i),t.getContext("2d").putImageData(a,o,e)),u&&u.removeChild(s)}}]),o}();vt=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="title",t}return i}();Ve=function(){qo(i,Ua);var r,n,e=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=ta(r);return e=n?(t=ta(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments),Ko(this,e)});function i(){var t;return Ci(this,i),(t=e.apply(this,arguments)).type="desc",t}return i}(),a={svg:Gu,rect:Wu,circle:Zr,ellipse:re,line:b,polyline:qu,polygon:Ce,path:zu,pattern:gt,marker:o,defs:mt,linearGradient:ft,radialGradient:Zu,stop:Ku,animate:ss,animateColor:ya,animateTransform:ur,font:st,"font-face":yt,"missing-glyph":x,glyph:Uu,text:Hu,tspan:Xu,tref:ct,a:P,textPath:zt,image:m,g:$u,symbol:L,style:tn,use:le,mask:w,clipPath:Hs,filter:oo,feDropShadow:Xs,feMorphology:Ys,feComposite:Gs,feColorMatrix:js,feGaussianBlur:ve,title:vt,desc:Ve};function Zs(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function Ks(){return(Ks=Yr(Xr.mark(function t(e){var r,n,i=arguments;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),r&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,o){n.onload=function(){t(n)},n.onerror=function(t,e,r,n,i){o(i)},n.src=e}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Js=(Mi(tc,[{key:"bindCreateImage",value:function(r,n){return"boolean"==typeof n?function(t,e){return r(t,"boolean"==typeof e?e:n)}:r}},{key:"popEmSize",value:function(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(t){return t.loaded})}},{key:"createDocumentElement",value:function(t){t=this.createElement(t.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t}},{key:"createElement",value:function(t){var e=t.nodeName.replace(/^[^:]+:/,""),e=tc.elementTypes[e];return new(void 0!==e?e:Xa)(this,t)}},{key:"createTextNode",value:function(t){return new Yu(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zs(Object(r),!0).forEach(function(t){Ei(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({document:this},t))}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var t=this.emSizeStack;return t[t.length-1]},set:function(t){this.emSizeStack.push(t)}}]),tc);function tc(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.rootEmSize,n=void 0===r?12:r,i=e.emSize,o=void 0===i?12:i,r=e.createCanvas,i=void 0===r?tc.createCanvas:r,r=e.createImage,r=void 0===r?tc.createImage:r,e=e.anonymousCrossOrigin;Ci(this,tc),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=n,this.emSize=o,this.createCanvas=i,this.createImage=this.bindCreateImage(r,e),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}function ec(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function rc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(r),!0).forEach(function(t){Ei(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ec(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}Js.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Js.createImage=function(t){return Ks.apply(this,arguments)},Js.elementTypes=a;var nc,ic,a=(Mi(oc,[{key:"fork",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return oc.from(t,e,rc(rc({},this.options),r))}},{key:"forkString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return oc.fromString(t,e,rc(rc({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(ic=Yr(Xr.mark(function t(){var e,r=arguments;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(rc({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},e)),t.next=4,this.ready();case 4:this.stop();case 5:case"end":return t.stop()}},t,this)})),function(){return ic.apply(this,arguments)})},{key:"start",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this.documentElement,r=this.screen,n=this.options;r.start(e,rc(rc({enableRedraw:!0},n),t))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(t){this.documentElement.resize(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:t,2<arguments.length&&void 0!==arguments[2]&&arguments[2])}}],[{key:"from",value:(nc=Yr(Xr.mark(function t(e,r){var n,i,o=arguments;return Xr.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new Go(n=2<o.length&&void 0!==o[2]?o[2]:{}),t.next=4,i.parse(r);case 4:return i=t.sent,t.abrupt("return",new oc(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return nc.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new oc(t,new Go(r).parseFromString(e),r)}}]),oc);function oc(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Ci(this,oc),this.parser=new Go(r),this.screen=new Do(t,r),this.options=r;r=new Js(this,r),e=r.createDocumentElement(e);this.document=r,this.documentElement=e}t.AElement=P,t.AnimateColorElement=ya,t.AnimateElement=ss,t.AnimateTransformElement=ur,t.BoundingBox=su,t.CB1=wi,t.CB2=Si,t.CB3=Oi,t.CB4=ki,t.Canvg=a,t.CircleElement=Zr,t.ClipPathElement=Hs,t.DefsElement=mt,t.DescElement=Ve,t.Document=Js,t.Element=Ua,t.EllipseElement=re,t.FeColorMatrixElement=js,t.FeCompositeElement=Gs,t.FeDropShadowElement=Xs,t.FeGaussianBlurElement=ve,t.FeMorphologyElement=Ys,t.FilterElement=oo,t.Font=au,t.FontElement=st,t.FontFaceElement=yt,t.GElement=$u,t.GlyphElement=Uu,t.GradientElement=Qu,t.ImageElement=m,t.LineElement=b,t.LinearGradientElement=ft,t.MarkerElement=o,t.MaskElement=w,t.Matrix=Ia,t.MissingGlyphElement=x,t.Mouse=Vo,t.PSEUDO_ZERO=vi,t.Parser=Go,t.PathElement=zu,t.PathParser=Bu,t.PatternElement=gt,t.Point=Io,t.PolygonElement=Ce,t.PolylineElement=qu,t.Property=To,t.QB1=Ti,t.QB2=Ai,t.QB3=Ri,t.RadialGradientElement=Zu,t.RectElement=Wu,t.RenderedElement=Fu,t.Rotate=v,t.SVGElement=Gu,t.SVGFontLoader=_s,t.Scale=ar,t.Screen=Do,t.Skew=ja,t.SkewX=Xe,t.SkewY=N,t.StopElement=Ku,t.StyleElement=tn,t.SymbolElement=L,t.TRefElement=ct,t.TSpanElement=Xu,t.TextElement=Hu,t.TextPathElement=zt,t.TitleElement=vt,t.Transform=Fa,t.Translate=c,t.UnknownElement=Xa,t.UseElement=le,t.ViewPort=Ro,t.compressSpaces=Wn,t.default=a,t.getSelectorSpecificity=gi,t.normalizeAttributeName=Kn,t.normalizeColor=ti,t.parseExternalUrl=Jn,t.presets=ee,t.toNumbers=Qn,t.trimLeft=qn,t.trimRight=$n,t.vectorMagnitude=mi,t.vectorsAngle=bi,t.vectorsRatio=xi,Object.defineProperty(t,"__esModule",{value:!0})});