mind-elixir 0.18.2 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/MindElixir.js +24 -24
- package/dist/MindElixirLite.js +11 -11
- package/dist/painter.js +7 -7
- package/dist/test.html +342 -342
- package/package.json +3 -2
- package/readme.md +209 -202
package/dist/painter.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,function(){return(()=>{var r={1375:function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(a.exports=function(){return(t()-i)/1e6},e=process.hrtime,n=(t=function(){var t=e();return 1e9*t[0]+t[1]})(),o=1e9*process.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(this)},9266:(t,e,r)=>{t.exports=r(3176)},1572:(t,e,r)=>{t.exports=r(2397)},2844:(t,e,r)=>{t.exports=r(8139)},5246:(t,e,r)=>{t.exports=r(8921)},1777:(t,e,r)=>{t.exports=r(8255)},7197:(t,e,r)=>{t.exports=r(2527)},2743:(t,e,r)=>{t.exports=r(1761)},9957:(t,e,r)=>{t.exports=r(5922)},9061:(t,e,r)=>{t.exports=r(4e3)},6407:(t,e,r)=>{t.exports=r(4922)},4578:(t,e,r)=>{t.exports=r(6840)},1151:(t,e,r)=>{t.exports=r(7964)},5628:(t,e,r)=>{t.exports=r(758)},4440:(t,e,r)=>{t.exports=r(4801)},6075:(t,e,r)=>{t.exports=r(3492)},819:(t,e,r)=>{t.exports=r(3431)},5265:(t,e,r)=>{t.exports=r(503)},3224:(t,e,r)=>{t.exports=r(6007)},7516:(t,e,r)=>{t.exports=r(5109)},4541:(t,e,r)=>{t.exports=r(6653)},8229:(t,e,r)=>{t.exports=r(9048)},7878:(t,e,r)=>{t.exports=r(4613)},9990:(t,e,r)=>{t.exports=r(9592)},4597:(t,e,r)=>{t.exports=r(6016)},5234:(t,e,r)=>{t.exports=r(2285)},8470:(t,e,r)=>{t.exports=r(4450)},2210:(t,e,r)=>{t.exports=r(4257)},8748:(t,e,r)=>{t.exports=r(8025)},8903:(t,e,r)=>{t.exports=r(2354)},7195:(t,e,r)=>{t.exports=r(6054)},9423:(t,e,r)=>{t.exports=r(122)},2108:(t,e,r)=>{t.exports=r(61)},6623:(t,e,r)=>{t.exports=r(5917)},4965:(t,e,r)=>{t.exports=r(6170)},7666:(t,e,r)=>{t.exports=r(1625)},7960:(t,e,r)=>{t.exports=r(8732)},8516:(t,e,r)=>{t.exports=r(7329)},9882:(t,e,r)=>{t.exports=r(1210)},229:(t,e,r)=>{t.exports=r(68)},1952:(t,e,r)=>{t.exports=r(9701)},6035:(t,e,r)=>{t.exports=r(1715)},7457:(t,e,r)=>{t.exports=r(9982)},3487:(t,e,r)=>{t.exports=r(3366)},8310:(t,e,r)=>{t.exports=r(1335)},9498:(t,e,r)=>{t.exports=r(9656)},9150:(t,e,r)=>{t.exports=r(9200)},1161:(t,e,r)=>{t.exports=r(6610)},7850:(t,e,r)=>{t.exports=r(611)},4788:(t,e,r)=>{t.exports=r(1500)},2018:(t,e,r)=>{r(9127),r(1731);r=r(6954);t.exports=r.Array.from},7885:(t,e,r)=>{r(939);r=r(6954);t.exports=r.Array.isArray},9547:(t,e,r)=>{r(1680);r=r(9921);t.exports=r("Array").concat},5197:(t,e,r)=>{r(8669);r=r(9921);t.exports=r("Array").every},5797:(t,e,r)=>{r(7810);r=r(9921);t.exports=r("Array").fill},4771:(t,e,r)=>{r(2006);r=r(9921);t.exports=r("Array").filter},6073:(t,e,r)=>{r(2646);r=r(9921);t.exports=r("Array").forEach},8438:(t,e,r)=>{r(4882);r=r(9921);t.exports=r("Array").includes},9296:(t,e,r)=>{r(3060);r=r(9921);t.exports=r("Array").indexOf},3510:(t,e,r)=>{r(6554);r=r(9921);t.exports=r("Array").map},5516:(t,e,r)=>{r(1425);r=r(9921);t.exports=r("Array").reduce},3648:(t,e,r)=>{r(2503);r=r(9921);t.exports=r("Array").reverse},7259:(t,e,r)=>{r(5228);r=r(9921);t.exports=r("Array").slice},398:(t,e,r)=>{r(2326);r=r(9921);t.exports=r("Array").some},6838:(t,e,r)=>{r(9540),r(1637);r=r(9921);t.exports=r("Array").values},411:(t,e,r)=>{r(9146);r=r(6954);t.exports=r.Date.now},9301:(t,e,r)=>{r(9422);r=r(9921);t.exports=r("Function").bind},7031:(t,e,r)=>{r(9540),r(9127);r=r(854);t.exports=r},2889:(t,e,r)=>{r(9540),r(9127);r=r(9890);t.exports=r},7637:(t,e,r)=>{var n=r(9301),i=Function.prototype;t.exports=function(t){var e=t.bind;return t===i||t instanceof Function&&e===i.bind?n:e}},510:(t,e,r)=>{var n=r(9547),i=Array.prototype;t.exports=function(t){var e=t.concat;return t===i||t instanceof Array&&e===i.concat?n:e}},6167:(t,e,r)=>{var n=r(5197),i=Array.prototype;t.exports=function(t){var e=t.every;return t===i||t instanceof Array&&e===i.every?n:e}},8456:(t,e,r)=>{var n=r(5797),i=Array.prototype;t.exports=function(t){var e=t.fill;return t===i||t instanceof Array&&e===i.fill?n:e}},2465:(t,e,r)=>{var n=r(4771),i=Array.prototype;t.exports=function(t){var e=t.filter;return t===i||t instanceof Array&&e===i.filter?n:e}},1351:(t,e,r)=>{var n=r(8438),i=r(6323),o=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===o||t instanceof Array&&e===o.includes?n:"string"==typeof t||t===a||t instanceof String&&e===a.includes?i:e}},4975:(t,e,r)=>{var n=r(9296),i=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===i||t instanceof Array&&e===i.indexOf?n:e}},9884:(t,e,r)=>{var n=r(3510),i=Array.prototype;t.exports=function(t){var e=t.map;return t===i||t instanceof Array&&e===i.map?n:e}},1629:(t,e,r)=>{var n=r(5516),i=Array.prototype;t.exports=function(t){var e=t.reduce;return t===i||t instanceof Array&&e===i.reduce?n:e}},5428:(t,e,r)=>{var n=r(3648),i=Array.prototype;t.exports=function(t){var e=t.reverse;return t===i||t instanceof Array&&e===i.reverse?n:e}},8981:(t,e,r)=>{var n=r(7259),i=Array.prototype;t.exports=function(t){var e=t.slice;return t===i||t instanceof Array&&e===i.slice?n:e}},7865:(t,e,r)=>{var n=r(398),i=Array.prototype;t.exports=function(t){var e=t.some;return t===i||t instanceof Array&&e===i.some?n:e}},7172:(t,e,r)=>{var n=r(8369),i=String.prototype;t.exports=function(t){var e=t.startsWith;return"string"==typeof t||t===i||t instanceof String&&e===i.startsWith?n:e}},2205:(t,e,r)=>{var n=r(9616),i=String.prototype;t.exports=function(t){var e=t.trim;return"string"==typeof t||t===i||t instanceof String&&e===i.trim?n:e}},2491:(t,e,r)=>{r(9540),r(6249),r(1637),r(9127);r=r(6954);t.exports=r.Map},2921:(t,e,r)=>{r(166);var n=r(6954).Object;t.exports=function(t,e){return n.create(t,e)}},4004:(t,e,r)=>{r(5770);var n=r(6954).Object,t=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(t.sham=!0)},2768:(t,e,r)=>{r(3663);var n=r(6954).Object,t=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(t.sham=!0)},6680:(t,e,r)=>{r(5015);var n=r(6954).Object,t=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(t.sham=!0)},4530:(t,e,r)=>{r(3808);r=r(6954);t.exports=r.Object.getOwnPropertyDescriptors},3704:(t,e,r)=>{r(9078);r=r(6954);t.exports=r.Object.getOwnPropertySymbols},1951:(t,e,r)=>{r(7851);r=r(6954);t.exports=r.Object.getPrototypeOf},2829:(t,e,r)=>{r(5271);r=r(6954);t.exports=r.Object.keys},4407:(t,e,r)=>{r(3121);r=r(6954);t.exports=r.Object.setPrototypeOf},7594:(t,e,r)=>{r(8246);r=r(6954);t.exports=r.parseFloat},2060:(t,e,r)=>{r(4295);r=r(6954);t.exports=r.parseInt},944:(t,e,r)=>{r(7186),r(9540),r(1637),r(1931),r(2044),r(9671),r(2678),r(9127);r=r(6954);t.exports=r.Promise},8749:(t,e,r)=>{r(3293);r=r(6954);t.exports=r.Reflect.apply},2331:(t,e,r)=>{r(4398);r=r(6954);t.exports=r.Reflect.construct},8474:(t,e,r)=>{r(9114);r=r(6954);t.exports=r.Reflect.deleteProperty},6e3:(t,e,r)=>{r(5087);r=r(6954);t.exports=r.Reflect.getPrototypeOf},5967:(t,e,r)=>{r(7361);r=r(6954);t.exports=r.Reflect.get},6323:(t,e,r)=>{r(9522);r=r(9921);t.exports=r("String").includes},8369:(t,e,r)=>{r(2109);r=r(9921);t.exports=r("String").startsWith},9616:(t,e,r)=>{r(7843);r=r(9921);t.exports=r("String").trim},5075:(t,e,r)=>{r(1680),r(1637),r(9078),r(5089),r(7015),r(4207),r(3867),r(6878),r(25),r(8715),r(6858),r(8056),r(2335),r(8663),r(2607),r(733),r(2057),r(3905),r(9541),r(336);r=r(6954);t.exports=r.Symbol},7910:(t,e,r)=>{r(9540),r(1637),r(9127),r(6878);r=r(1102);t.exports=r.f("iterator")},1625:(t,e,r)=>{r=r(3176);t.exports=r},8732:(t,e,r)=>{r=r(2397);t.exports=r},7329:(t,e,r)=>{r=r(4199);t.exports=r},1210:(t,e,r)=>{r=r(5798);t.exports=r},68:(t,e,r)=>{r=r(3492);t.exports=r},9701:(t,e,r)=>{r=r(8631);t.exports=r},1715:(t,e,r)=>{r=r(4613);t.exports=r},9982:(t,e,r)=>{r=r(9592);t.exports=r},3366:(t,e,r)=>{r=r(6292);t.exports=r},1335:(t,e,r)=>{r=r(2549);t.exports=r},9656:(t,e,r)=>{var n=r(2354);r(7264),r(9562),r(7486),r(3980),t.exports=n},9200:(t,e,r)=>{r=r(7564);t.exports=r},6610:(t,e,r)=>{var n=r(6170);r(9427),r(7302),r(8182),r(3069),r(1160),r(6121),r(6472),t.exports=n},611:(t,e,r)=>{r=r(8976);t.exports=r},5114:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},2900:(t,e,r)=>{var n=r(4955);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},9098:t=>{t.exports=function(){}},3988:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},6508:(t,e,r)=>{var n=r(4955);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},4986:(t,e,r)=>{"use strict";var a=r(9270),s=r(1138),u=r(5646);t.exports=function(t){for(var e=a(this),r=u(e.length),n=arguments.length,i=s(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:s(n,r);i<o;)e[i++]=t;return e}},8737:(t,e,r)=>{"use strict";var n=r(6862).forEach,r=r(7402)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},4973:(t,e,r)=>{"use strict";var p=r(5216),y=r(9270),g=r(3885),v=r(4327),d=r(5646),m=r(7061),x=r(9890),b=r(854);t.exports=function(t){var e,r,n,i,o,a,s=y(t),u="function"==typeof this?this:Array,c=arguments.length,l=1<c?arguments[1]:void 0,h=void 0!==l,t=b(s),f=0;if(h&&(l=p(l,2<c?arguments[2]:void 0,2)),null==t||u==Array&&v(t))for(r=new u(e=d(s.length));f<e;f++)a=h?l(s[f],f):s[f],m(r,f,a);else for(o=(i=x(s,t)).next,r=new u;!(n=o.call(i)).done;f++)a=h?g(i,l,[n.value,f],!0):n.value,m(r,f,a);return r.length=f,r}},9333:(t,e,r)=>{var u=r(1650),c=r(5646),l=r(1138),r=function(s){return function(t,e,r){var n,i=u(t),o=c(i.length),a=l(r,o);if(s&&e!=e){for(;a<o;)if((n=i[a++])!=n)return!0}else for(;a<o;a++)if((s||a in i)&&i[a]===e)return s||a||0;return!s&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}},6862:(t,e,r)=>{var b=r(5216),w=r(1837),S=r(9270),A=r(5646),k=r(596),T=[].push,r=function(f){var p=1==f,y=2==f,g=3==f,v=4==f,d=6==f,m=7==f,x=5==f||d;return function(t,e,r,n){for(var i,o,a=S(t),s=w(a),u=b(e,r,3),c=A(s.length),l=0,n=n||k,h=p?n(t,c):y||m?n(t,0):void 0;l<c;l++)if((x||l in s)&&(o=u(i=s[l],l,a),f))if(p)h[l]=o;else if(o)switch(f){case 3:return!0;case 5:return i;case 6:return l;case 2:T.call(h,i)}else switch(f){case 4:return!1;case 7:T.call(h,i)}return d?-1:g||v?v:h}};t.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6),filterReject:r(7)}},7542:(t,e,r)=>{var n=r(5172),i=r(2362),o=r(2750),a=i("species");t.exports=function(e){return 51<=o||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},7402:(t,e,r)=>{"use strict";var n=r(5172);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},8629:(t,e,r)=>{var l=r(5114),h=r(9270),f=r(1837),p=r(5646),r=function(c){return function(t,e,r,n){l(e);var i=h(t),o=f(i),a=p(i.length),s=c?a-1:0,u=c?-1:1;if(r<2)for(;;){if(s in o){n=o[s],s+=u;break}if(s+=u,c?s<0:a<=s)throw TypeError("Reduce of empty array with no initial value")}for(;c?0<=s:s<a;s+=u)s in o&&(n=e(n,o[s],s,i));return n}};t.exports={left:r(!1),right:r(!0)}},3940:(t,e,r)=>{var n=r(4955),i=r(8869),o=r(2362)("species");t.exports=function(t){var e;return void 0===(e=i(t)&&("function"==typeof(e=t.constructor)&&(e===Array||i(e.prototype))||n(e)&&null===(e=e[o]))?void 0:e)?Array:e}},596:(t,e,r)=>{var n=r(3940);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},3885:(t,e,r)=>{var i=r(6508),o=r(1851);t.exports=function(e,t,r,n){try{return n?t(i(r)[0],r[1]):t(r)}catch(t){o(e,"throw",t)}}},2146:(t,e,r)=>{var i=r(2362)("iterator"),o=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},9384:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},9848:(t,e,r)=>{var n=r(7138),i=r(9384),o=r(2362)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i: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),o))?t:a?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},3286:(t,e,r)=>{"use strict";var c=r(9962).f,l=r(8705),h=r(7213),f=r(5216),p=r(3988),y=r(7612),a=r(5461),s=r(3029),g=r(988),v=r(3453).fastKey,r=r(893),d=r.set,m=r.getterFor;t.exports={getConstructor:function(t,r,n,i){function o(t,e,r){var n,i=u(t),o=a(t,e);return o?o.value=r:(i.last=o={index:n=v(e,!0),key:e,value:r,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=o),r&&(r.next=o),g?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,n=u(t);if("F"!==(t=v(e)))return n.index[t];for(r=n.first;r;r=r.next)if(r.key==e)return r}var s=t(function(t,e){p(t,s,r),d(t,{type:r,index:l(null),first:void 0,last:void 0,size:0}),g||(t.size=0),null!=e&&y(e,t[i],{that:t,AS_ENTRIES:n})}),u=m(r);return h(s.prototype,{clear:function(){for(var t=u(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,g?t.size=0:this.size=0},delete:function(t){var e,r=u(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),g?r.size--:this.size--),!!n},forEach:function(t){for(var e,r=u(this),n=f(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)}}),h(s.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)}}),g&&c(s.prototype,"size",{get:function(){return u(this).size}}),s},setStrong:function(t,e,r){var n=e+" Iterator",i=m(e),o=m(n);a(t,e,function(t,e){d(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),s(e)}}},2867:(t,e,r)=>{"use strict";var h=r(4650),f=r(5313),p=r(3453),y=r(5172),g=r(44),v=r(7612),d=r(3988),m=r(4955),x=r(6257),b=r(9962).f,w=r(6862).forEach,S=r(988),r=r(893),A=r.set,k=r.getterFor;t.exports=function(r,t,e){var o,a,n=-1!==r.indexOf("Map"),s=-1!==r.indexOf("Weak"),i=n?"set":"add",u=f[r],c=u&&u.prototype,l={};return S&&"function"==typeof u&&(s||c.forEach&&!y(function(){(new u).entries().next()}))?(o=t(function(t,e){A(d(t,o,r),{type:r,collection:new u}),null!=e&&v(e,t[i],{that:t,AS_ENTRIES:n})}),a=k(r),w(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(n){var i="add"==n||"set"==n;n in c&&(!s||"clear"!=n)&&g(o.prototype,n,function(t,e){var r=a(this).collection;if(!i&&s&&!m(t))return"get"==n&&void 0;e=r[n](0===t?0:t,e);return i?this:e})}),s||b(o.prototype,"size",{configurable:!0,get:function(){return a(this).collection.size}})):(o=e.getConstructor(t,r,n,i),p.enable()),x(o,r,!1,!0),l[r]=o,h({global:!0,forced:!0},l),s||e.setStrong(o,r,n),o}},8047:(t,e,r)=>{var n=r(2362)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,"/./"[e](r)}catch(t){}}return!1}},3368:(t,e,r)=>{r=r(5172);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},7696:(t,e,r)=>{"use strict";function n(){return this}var i=r(9502).IteratorPrototype,o=r(8705),a=r(8714),s=r(6257),u=r(1575);t.exports=function(t,e,r){e+=" Iterator";return t.prototype=o(i,{next:a(1,r)}),s(t,e,!1,!0),u[e]=n,t}},44:(t,e,r)=>{var n=r(988),i=r(9962),o=r(8714);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},8714:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7061:(t,e,r)=>{"use strict";var n=r(7877),i=r(9962),o=r(8714);t.exports=function(t,e,r){e=n(e);e in t?i.f(t,e,o(0,r)):t[e]=r}},5461:(t,e,r)=>{"use strict";function v(){return this}var d=r(4650),m=r(7696),x=r(5787),b=r(1336),w=r(6257),S=r(44),A=r(228),n=r(2362),k=r(1729),T=r(1575),r=r(9502),O=r.IteratorPrototype,P=r.BUGGY_SAFARI_ITERATORS,C=n("iterator"),E="values",M="entries";t.exports=function(t,e,r,n,i,o,a){m(r,e,n);function s(t){if(t===i&&g)return g;if(!P&&t in p)return p[t];switch(t){case"keys":case E:case M:return function(){return new r(this,t)}}return function(){return new r(this)}}var u,c,l,h=e+" Iterator",f=!1,p=t.prototype,y=p[C]||p["@@iterator"]||i&&p[i],g=!P&&y||s(i),n="Array"==e&&p.entries||y;if(n&&(u=x(n.call(new t)))!==Object.prototype&&u.next&&(k||x(u)===O||(b?b(u,O):"function"!=typeof u[C]&&S(u,C,v)),w(u,h,!0,!0),k&&(T[h]=v)),i==E&&y&&y.name!==E&&(f=!0,g=function(){return y.call(this)}),k&&!a||p[C]===g||S(p,C,g),T[e]=g,i)if(c={values:s(E),keys:o?g:s("keys"),entries:s(M)},a)for(l in c)!P&&!f&&l in p||A(p,l,c[l]);else d({target:e,proto:!0,forced:P||f},c);return c}},7034:(t,e,r)=>{var n=r(6954),i=r(7235),o=r(1102),a=r(9962).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},988:(t,e,r)=>{r=r(5172);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},5820:(t,e,r)=>{var n=r(5313),r=r(4955),i=n.document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},4339:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},4943:t=>{t.exports="object"==typeof window},8345:(t,e,r)=>{var n=r(9958),r=r(5313);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==r.Pebble},6329:(t,e,r)=>{r=r(9958);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},3287:(t,e,r)=>{var n=r(9384),r=r(5313);t.exports="process"==n(r.process)},477:(t,e,r)=>{r=r(9958);t.exports=/web0s(?!.*chrome)/i.test(r)},9958:(t,e,r)=>{r=r(7225);t.exports=r("navigator","userAgent")||""},2750:(t,e,r)=>{var n,i,o=r(5313),a=r(9958),r=o.process,o=o.Deno,o=r&&r.versions||o&&o.version,o=o&&o.v8;o?i=(n=o.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||74<=n[1])&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},9921:(t,e,r)=>{var n=r(6954);t.exports=function(t){return n[t+"Prototype"]}},2052:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4650:(t,e,r)=>{"use strict";function y(n){function t(t,e,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,e)}return new n(t,e,r)}return n.apply(this,arguments)}return t.prototype=n.prototype,t}var g=r(5313),v=r(4832).f,d=r(9177),m=r(6954),x=r(5216),b=r(44),w=r(7235);t.exports=function(t,e){var r,n,i,o,a,s=t.target,u=t.global,c=t.stat,l=t.proto,h=u?g:c?g[s]:(g[s]||{}).prototype,f=u?m:m[s]||b(m,s,{})[s],p=f.prototype;for(r in e)o=!d(u?r:s+(c?".":"#")+r,t.forced)&&h&&w(h,r),n=f[r],o&&(i=t.noTargetGet?(a=v(h,r))&&a.value:h[r]),a=o&&i?i:e[r],o&&typeof n==typeof a||(o=t.bind&&o?x(a,g):t.wrap&&o?y(a):l&&"function"==typeof a?x(Function.call,a):a,(t.sham||a&&a.sham||n&&n.sham)&&b(o,"sham",!0),b(f,r,o),l&&(w(m,o=s+"Prototype")||b(m,o,{}),b(m[o],r,a),t.real&&p&&!p[r]&&b(p,r,a)))}},5172:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},3111:(t,e,r)=>{r=r(5172);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},5216:(t,e,r)=>{var o=r(5114);t.exports=function(n,i,t){if(o(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)}}},8021:(t,e,r)=>{"use strict";var o=r(5114),a=r(4955),s=[].slice,u={};t.exports=Function.bind||function(e){var r=o(this),n=s.call(arguments,1),i=function(){var t=n.concat(s.call(arguments));return this instanceof i?function(t,e,r){if(!(e in u)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";u[e]=Function("C,a","return new C("+n.join(",")+")")}return u[e](t,r)}(r,t.length,t):r.apply(e,t)};return a(r.prototype)&&(i.prototype=r.prototype),i}},7225:(t,e,r)=>{function n(t){return"function"==typeof t?t:void 0}var i=r(6954),o=r(5313);t.exports=function(t,e){return arguments.length<2?n(i[t])||n(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},854:(t,e,r)=>{var n=r(9848),i=r(1575),o=r(2362)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},9890:(t,e,r)=>{var n=r(6508),i=r(854);t.exports=function(t,e){var r=arguments.length<2?i(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return n(r.call(t))}},5313:(t,e,r)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},7235:(t,e,r)=>{var n=r(9270),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(n(t),e)}},1918:t=>{t.exports={}},6593:(t,e,r)=>{var n=r(5313);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},1753:(t,e,r)=>{r=r(7225);t.exports=r("document","documentElement")},5559:(t,e,r)=>{var n=r(988),i=r(5172),o=r(5820);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},1837:(t,e,r)=>{var n=r(5172),i=r(9384),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},6560:(t,e,r)=>{var r=r(6327),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return n.call(t)}),t.exports=r.inspectSource},3453:(t,e,r)=>{function n(t){u(t,y,{value:{objectID:"O"+g++,weakData:{}}})}var a=r(4650),i=r(1918),o=r(4955),s=r(7235),u=r(9962).f,c=r(4780),l=r(3929),h=r(3954),f=r(3111),p=!1,y=h("meta"),g=0,v=Object.isExtensible||function(){return!0},d=t.exports={enable:function(){d.enable=function(){},p=!0;var i=c.f,o=[].splice,t={};t[y]=1,i(t).length&&(c.f=function(t){for(var e=i(t),r=0,n=e.length;r<n;r++)if(e[r]===y){o.call(e,r,1);break}return e},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,y)){if(!v(t))return"F";if(!e)return"E";n(t)}return t[y].objectID},getWeakData:function(t,e){if(!s(t,y)){if(!v(t))return!0;if(!e)return!1;n(t)}return t[y].weakData},onFreeze:function(t){return f&&p&&v(t)&&!s(t,y)&&n(t),t}};i[y]=!0},893:(t,e,r)=>{var n,i,o,a,s,u,c,l,h=r(8544),f=r(5313),p=r(4955),y=r(44),g=r(7235),v=r(6327),d=r(1327),r=r(1918),m="Object already initialized",f=f.WeakMap;c=h||v.state?(n=v.state||(v.state=new f),i=n.get,o=n.has,a=n.set,s=function(t,e){if(o.call(n,t))throw new TypeError(m);return e.facade=t,a.call(n,t,e),e},u=function(t){return i.call(n,t)||{}},function(t){return o.call(n,t)}):(r[l=d("state")]=!0,s=function(t,e){if(g(t,l))throw new TypeError(m);return e.facade=t,y(t,l,e),e},u=function(t){return g(t,l)?t[l]:{}},function(t){return g(t,l)}),t.exports={set:s,get:u,has:c,enforce:function(t){return c(t)?u(t):s(t,{})},getterFor:function(r){return function(t){var e;if(!p(t)||(e=u(t)).type!==r)throw TypeError("Incompatible receiver, "+r+" required");return e}}}},4327:(t,e,r)=>{var n=r(2362),i=r(1575),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},8869:(t,e,r)=>{var n=r(9384);t.exports=Array.isArray||function(t){return"Array"==n(t)}},3634:(t,e,r)=>{var n=r(7235);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},9177:(t,e,r)=>{var n=r(5172),i=/#|\.prototype\./,r=function(t,e){t=a[o(t)];return t==u||t!=s&&("function"==typeof e?n(e):!!e)},o=r.normalize=function(t){return String(t).replace(i,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",u=r.POLYFILL="P";t.exports=r},4955:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1729:t=>{t.exports=!0},5058:(t,e,r)=>{var n=r(4955),i=r(9384),o=r(2362)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},1444:(t,e,r)=>{var n=r(7225),r=r(1099);t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return"function"==typeof e&&Object(t)instanceof e}},7612:(t,e,r)=>{function v(t,e){this.stopped=t,this.result=e}var d=r(6508),m=r(4327),x=r(5646),b=r(5216),w=r(9890),S=r(854),A=r(1851);t.exports=function(t,e,r){function n(t){return o&&A(o,"normal",t),new v(!0,t)}function i(t){return f?(d(t),y?g(t[0],t[1],n):g(t[0],t[1])):y?g(t,n):g(t)}var o,a,s,u,c,l,h=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),y=!(!r||!r.INTERRUPTED),g=b(e,h,1+f+y);if(p)o=t;else{if("function"!=typeof(p=S(t)))throw TypeError("Target is not iterable");if(m(p)){for(a=0,s=x(t.length);a<s;a++)if((u=i(t[a]))&&u instanceof v)return u;return new v(!1)}o=w(t,p)}for(c=o.next;!(l=c.call(o)).done;){try{u=i(l.value)}catch(t){A(o,"throw",t)}if("object"==typeof u&&u&&u instanceof v)return u}return new v(!1)}},1851:(t,e,r)=>{var o=r(6508);t.exports=function(t,e,r){var n,i;o(t);try{if(void 0===(n=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 o(n),r}},9502:(t,e,r)=>{"use strict";var n,i=r(5172),o=r(8705),a=r(5787),s=r(44),u=r(2362),c=r(1729),l=u("iterator"),r=!1;[].keys&&("next"in(u=[].keys())?(u=a(a(u)))!==Object.prototype&&(n=u):r=!0),null==n||i(function(){var t={};return n[l].call(t)!==t})?n={}:c&&(n=o(n)),"function"!=typeof n[l]&&s(n,l,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:r}},1575:t=>{t.exports={}},5096:(t,e,r)=>{var n,i,o,a,s,u,c,l,h=r(5313),f=r(4832).f,p=r(9720).set,y=r(6329),g=r(8345),v=r(477),d=r(3287),m=h.MutationObserver||h.WebKitMutationObserver,x=h.document,b=h.process,r=h.Promise,f=f(h,"queueMicrotask"),f=f&&f.value;f||(n=function(){var t,e;for(d&&(t=b.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},a=y||d||v||!m||!x?!g&&r&&r.resolve?((c=r.resolve(void 0)).constructor=r,l=c.then,function(){l.call(c,n)}):d?function(){b.nextTick(n)}:function(){p.call(h,n)}:(s=!0,u=x.createTextNode(""),new m(n).observe(u,{characterData:!0}),function(){u.data=s=!s})),t.exports=f||function(t){t={fn:t,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},5230:(t,e,r)=>{r=r(5313);t.exports=r.Promise},1116:(t,e,r)=>{var n=r(2750),r=r(5172);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},8544:(t,e,r)=>{var n=r(5313),r=r(6560),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(r(n))},4705:(t,e,r)=>{"use strict";function n(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=i(r),this.reject=i(n)}var i=r(5114);t.exports.f=function(t){return new n(t)}},4091:(t,e,r)=>{var n=r(5058);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},8893:(t,e,r)=>{var n=r(5313),i=r(2062),o=r(6355).trim,r=r(9284),a=n.parseFloat,r=1/a(r+"-0")!=-1/0;t.exports=r?function(t){var e=o(i(t)),t=a(e);return 0===t&&"-"==e.charAt(0)?-0:t}:a},1905:(t,e,r)=>{var n=r(5313),i=r(2062),o=r(6355).trim,r=r(9284),a=n.parseInt,s=/^[+-]?0[Xx]/,r=8!==a(r+"08")||22!==a(r+"0x16");t.exports=r?function(t,e){t=o(i(t));return a(t,e>>>0||(s.test(t)?16:10))}:a},8705:(t,e,r)=>{function n(){}function i(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}var o,a=r(6508),s=r(9611),u=r(2052),c=r(1918),l=r(1753),h=r(5820),r=r(1327),f="prototype",p="script",y=r("IE_PROTO"),g=function(t){return"<"+p+">"+t+"</"+p+">"},v=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"==typeof document||document.domain&&o?i(o):(t=h("iframe"),e="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(e),(t=t.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F);for(var r=u.length;r--;)delete v[f][u[r]];return v()};c[y]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[f]=a(t),r=new n,n[f]=null,r[y]=t):r=v(),void 0===e?r:s(r,e)}},9611:(t,e,r)=>{var n=r(988),a=r(9962),s=r(6508),u=r(5642);t.exports=n?Object.defineProperties:function(t,e){s(t);for(var r,n=u(e),i=n.length,o=0;o<i;)a.f(t,r=n[o++],e[r]);return t}},9962:(t,e,r)=>{var n=r(988),i=r(5559),o=r(6508),a=r(7877),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e),o(r),i)try{return s(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}},4832:(t,e,r)=>{var n=r(988),i=r(3469),o=r(8714),a=r(1650),s=r(7877),u=r(7235),c=r(5559),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e),c)try{return l(t,e)}catch(t){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},3929:(t,e,r)=>{var n=r(1650),i=r(4780).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},4780:(t,e,r)=>{var n=r(4049),i=r(2052).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},5548:(t,e)=>{e.f=Object.getOwnPropertySymbols},5787:(t,e,r)=>{var n=r(7235),i=r(9270),o=r(1327),r=r(3368),a=o("IE_PROTO"),s=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},4049:(t,e,r)=>{var a=r(7235),s=r(1650),u=r(9333).indexOf,c=r(1918);t.exports=function(t,e){var r,n=s(t),i=0,o=[];for(r in n)!a(c,r)&&a(n,r)&&o.push(r);for(;e.length>i;)a(n,r=e[i++])&&(~u(o,r)||o.push(r));return o}},5642:(t,e,r)=>{var n=r(4049),i=r(2052);t.exports=Object.keys||function(t){return n(t,i)}},3469:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){t=n(this,t);return!!t&&t.enumerable}:r},1336:(t,e,r)=>{var i=r(6508),o=r(2900);t.exports=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(t){}return function(t,e){return i(t),o(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},6920:(t,e,r)=>{"use strict";var n=r(7138),i=r(9848);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},5517:(t,e,r)=>{var i=r(4955);t.exports=function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!i(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},2865:(t,e,r)=>{var n=r(7225),i=r(4780),o=r(5548),a=r(6508);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},6954:t=>{t.exports={}},265:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},2023:(t,e,r)=>{var n=r(6508),i=r(4955),o=r(4705);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},7213:(t,e,r)=>{var i=r(228);t.exports=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:i(t,n,e[n],r);return t}},228:(t,e,r)=>{var i=r(44);t.exports=function(t,e,r,n){n&&n.enumerable?t[e]=r:i(t,e,r)}},3322:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},8185:(t,e,r)=>{var n=r(5313);t.exports=function(e,r){try{Object.defineProperty(n,e,{value:r,configurable:!0,writable:!0})}catch(t){n[e]=r}return r}},3029:(t,e,r)=>{"use strict";var n=r(7225),i=r(9962),o=r(2362),a=r(988),s=o("species");t.exports=function(t){var e=n(t),t=i.f;a&&e&&!e[s]&&t(e,s,{configurable:!0,get:function(){return this}})}},6257:(t,e,r)=>{var i=r(7138),o=r(9962).f,a=r(44),s=r(7235),u=r(6920),c=r(2362)("toStringTag");t.exports=function(t,e,r,n){t&&(t=r?t:t.prototype,s(t,c)||o(t,c,{configurable:!0,value:e}),n&&!i&&a(t,"toString",u))}},1327:(t,e,r)=>{var n=r(6339),i=r(3954),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},6327:(t,e,r)=>{var n=r(5313),i=r(8185),r="__core-js_shared__",r=n[r]||i(r,{});t.exports=r},6339:(t,e,r)=>{var n=r(1729),i=r(6327);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},9714:(t,e,r)=>{var n=r(6508),i=r(5114),o=r(2362)("species");t.exports=function(t,e){var r,t=n(t).constructor;return void 0===t||null==(r=n(t)[o])?e:i(r)}},3955:(t,e,r)=>{var a=r(5170),s=r(2062),u=r(3322),r=function(o){return function(t,e){var r,n=s(u(t)),i=a(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}};t.exports={codeAt:r(!1),charAt:r(!0)}},2701:(t,e,r)=>{var n=r(5172),i=r(9284);t.exports=function(t){return n(function(){return!!i[t]()||"
"!="
"[t]()||i[t].name!==t})}},6355:(t,e,r)=>{var n=r(3322),i=r(2062),r="["+r(9284)+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$"),r=function(e){return function(t){t=i(n(t));return 1&e&&(t=t.replace(o,"")),t=2&e?t.replace(a,""):t}};t.exports={start:r(1),end:r(2),trim:r(3)}},9720:(t,e,r)=>{var n,i,o=r(5313),a=r(5172),s=r(5216),u=r(1753),c=r(5820),l=r(6329),h=r(3287),f=o.setImmediate,p=o.clearImmediate,y=o.process,g=o.MessageChannel,v=o.Dispatch,d=0,m={},x="onreadystatechange";try{n=o.location}catch(t){}function b(t){return function(){S(t)}}function w(t){S(t.data)}var S=function(t){var e;m.hasOwnProperty(t)&&(e=m[t],delete m[t],e())},r=function(t){o.postMessage(String(t),n.protocol+"//"+n.host)};f&&p||(f=function(t){for(var e=[],r=arguments.length,n=1;n<r;)e.push(arguments[n++]);return m[++d]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},i(d),d},p=function(t){delete m[t]},h?i=function(t){y.nextTick(b(t))}:v&&v.now?i=function(t){v.now(b(t))}:g&&!l?(g=(l=new g).port2,l.port1.onmessage=w,i=s(g.postMessage,g,1)):o.addEventListener&&"function"==typeof postMessage&&!o.importScripts&&n&&"file:"!==n.protocol&&!a(r)?(i=r,o.addEventListener("message",w,!1)):i=x in c("script")?function(t){u.appendChild(c("script"))[x]=function(){u.removeChild(this),S(t)}}:function(t){setTimeout(b(t),0)}),t.exports={set:f,clear:p}},1138:(t,e,r)=>{var n=r(5170),i=Math.max,o=Math.min;t.exports=function(t,e){t=n(t);return t<0?i(t+e,0):o(t,e)}},1650:(t,e,r)=>{var n=r(1837),i=r(3322);t.exports=function(t){return n(i(t))}},5170:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},5646:(t,e,r)=>{var n=r(5170),i=Math.min;t.exports=function(t){return 0<t?i(n(t),9007199254740991):0}},9270:(t,e,r)=>{var n=r(3322);t.exports=function(t){return Object(n(t))}},1146:(t,e,r)=>{var n=r(4955),i=r(1444),o=r(5517),a=r(2362)("toPrimitive");t.exports=function(t,e){if(!n(t)||i(t))return t;var r=t[a];if(void 0===r)return o(t,e=void 0===e?"number":e);if(e=r.call(t,e=void 0===e?"default":e),!n(e)||i(e))return e;throw TypeError("Can't convert object to primitive value")}},7877:(t,e,r)=>{var n=r(1146),i=r(1444);t.exports=function(t){t=n(t,"string");return i(t)?t:String(t)}},7138:(t,e,r)=>{var n={};n[r(2362)("toStringTag")]="z",t.exports="[object z]"===String(n)},2062:(t,e,r)=>{var n=r(1444);t.exports=function(t){if(n(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},3954:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},1099:(t,e,r)=>{r=r(1116);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1102:(t,e,r)=>{r=r(2362);e.f=r},2362:(t,e,r)=>{var n=r(5313),i=r(6339),o=r(7235),a=r(3954),s=r(1116),r=r(1099),u=i("wks"),c=n.Symbol,l=r?c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)&&(s||"string"==typeof u[t])||(s&&o(c,t)?u[t]=c[t]:u[t]=l("Symbol."+t)),u[t]}},9284:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},7186:(t,e,r)=>{"use strict";function n(t,e){var r=this;return r instanceof n?(a&&(r=a(new Error(void 0),o(r))),void 0!==e&&u(r,"message",h(e)),l(t,(e=[]).push,{that:e}),u(r,"errors",e),r):new n(t,e)}var i=r(4650),o=r(5787),a=r(1336),s=r(8705),u=r(44),c=r(8714),l=r(7612),h=r(2062);n.prototype=s(Error.prototype,{constructor:c(5,n),message:c(5,""),name:c(5,"AggregateError")}),i({global:!0},{AggregateError:n})},1680:(t,e,r)=>{"use strict";var n=r(4650),i=r(5172),c=r(8869),l=r(4955),h=r(9270),f=r(5646),p=r(7061),y=r(596),o=r(7542),a=r(2362),r=r(2750),g=a("isConcatSpreadable"),v=9007199254740991,d="Maximum allowed index exceeded",i=51<=r||!i(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),o=o("concat");n({target:"Array",proto:!0,forced:!i||!o},{concat:function(t){for(var e,r,n,i=h(this),o=y(i,0),a=0,s=-1,u=arguments.length;s<u;s++)if(function(t){if(!l(t))return!1;var e=t[g];return void 0!==e?!!e:c(t)}(n=-1===s?i:arguments[s])){if(r=f(n.length),v<a+r)throw TypeError(d);for(e=0;e<r;e++,a++)e in n&&p(o,a,n[e])}else{if(v<=a)throw TypeError(d);p(o,a++,n)}return o.length=a,o}})},8669:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).every;n({target:"Array",proto:!0,forced:!r(7402)("every")},{every:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},7810:(t,e,r)=>{var n=r(4650),i=r(4986),r=r(9098);n({target:"Array",proto:!0},{fill:i}),r("fill")},2006:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).filter;n({target:"Array",proto:!0,forced:!r(7542)("filter")},{filter:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},2646:(t,e,r)=>{"use strict";var n=r(4650),r=r(8737);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},1731:(t,e,r)=>{var n=r(4650),i=r(4973);n({target:"Array",stat:!0,forced:!r(2146)(function(t){Array.from(t)})},{from:i})},4882:(t,e,r)=>{"use strict";var n=r(4650),i=r(9333).includes,r=r(9098);n({target:"Array",proto:!0},{includes:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),r("includes")},3060:(t,e,r)=>{"use strict";var n=r(4650),i=r(9333).indexOf,r=r(7402),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0,r=r("indexOf");n({target:"Array",proto:!0,forced:a||!r},{indexOf:function(t){return a?o.apply(this,arguments)||0:i(this,t,1<arguments.length?arguments[1]:void 0)}})},939:(t,e,r)=>{r(4650)({target:"Array",stat:!0},{isArray:r(8869)})},9540:(t,e,r)=>{"use strict";var n=r(1650),i=r(9098),o=r(1575),a=r(893),r=r(5461),s="Array Iterator",u=a.set,c=a.getterFor(s);t.exports=r(Array,"Array",function(t,e){u(this,{type:s,target:n(t),index:0,kind:e})},function(){var t=c(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},6554:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).map;n({target:"Array",proto:!0,forced:!r(7542)("map")},{map:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},1425:(t,e,r)=>{"use strict";var n=r(4650),i=r(8629).left,o=r(7402),a=r(2750),r=r(3287);n({target:"Array",proto:!0,forced:!o("reduce")||!r&&79<a&&a<83},{reduce:function(t){return i(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}})},2503:(t,e,r)=>{"use strict";var n=r(4650),i=r(8869),o=[].reverse,r=[1,2];n({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},5228:(t,e,r)=>{"use strict";var n=r(4650),c=r(4955),l=r(8869),h=r(1138),f=r(5646),p=r(1650),y=r(7061),i=r(2362),r=r(7542)("slice"),g=i("species"),v=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!r},{slice:function(t,e){var r,n,i,o=p(this),a=f(o.length),s=h(t,a),u=h(void 0===e?a:e,a);if(l(o)&&((r="function"==typeof(r=o.constructor)&&(r===Array||l(r.prototype))||c(r)&&null===(r=r[g])?void 0:r)===Array||void 0===r))return v.call(o,s,u);for(n=new(void 0===r?Array:r)(d(u-s,0)),i=0;s<u;s++,i++)s in o&&y(n,i,o[s]);return n.length=i,n}})},2326:(t,e,r)=>{"use strict";var n=r(4650),i=r(6862).some;n({target:"Array",proto:!0,forced:!r(7402)("some")},{some:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},9146:(t,e,r)=>{r(4650)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},9422:(t,e,r)=>{r(4650)({target:"Function",proto:!0},{bind:r(8021)})},3905:(t,e,r)=>{var n=r(5313);r(6257)(n.JSON,"JSON",!0)},6249:(t,e,r)=>{"use strict";var n=r(2867),r=r(3286);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r)},9541:()=>{},166:(t,e,r)=>{r(4650)({target:"Object",stat:!0,sham:!r(988)},{create:r(8705)})},5770:(t,e,r)=>{var n=r(4650),i=r(988);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(9611)})},3663:(t,e,r)=>{var n=r(4650),i=r(988);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(9962).f})},5015:(t,e,r)=>{var n=r(4650),i=r(5172),o=r(1650),a=r(4832).f,r=r(988),i=i(function(){a(1)});n({target:"Object",stat:!0,forced:!r||i,sham:!r},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},3808:(t,e,r)=>{var n=r(4650),i=r(988),u=r(2865),c=r(1650),l=r(4832),h=r(7061);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=c(t),i=l.f,o=u(n),a={},s=0;o.length>s;)void 0!==(r=i(n,e=o[s++]))&&h(a,e,r);return a}})},7851:(t,e,r)=>{var n=r(4650),i=r(5172),o=r(9270),a=r(5787),r=r(3368);n({target:"Object",stat:!0,forced:i(function(){a(1)}),sham:!r},{getPrototypeOf:function(t){return a(o(t))}})},5271:(t,e,r)=>{var n=r(4650),i=r(9270),o=r(5642);n({target:"Object",stat:!0,forced:r(5172)(function(){o(1)})},{keys:function(t){return o(i(t))}})},3121:(t,e,r)=>{r(4650)({target:"Object",stat:!0},{setPrototypeOf:r(1336)})},1637:()=>{},8246:(t,e,r)=>{var n=r(4650),r=r(8893);n({global:!0,forced:parseFloat!=r},{parseFloat:r})},4295:(t,e,r)=>{var n=r(4650),r=r(1905);n({global:!0,forced:parseInt!=r},{parseInt:r})},2044:(t,e,r)=>{"use strict";var n=r(4650),c=r(5114),i=r(4705),o=r(265),l=r(7612);n({target:"Promise",stat:!0},{allSettled:function(t){var s=this,e=i.f(s),u=e.resolve,r=e.reject,n=o(function(){var n=c(s.resolve),i=[],o=0,a=1;l(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(s,t).then(function(t){r||(r=!0,i[e]={status:"fulfilled",value:t},--a||u(i))},function(t){r||(r=!0,i[e]={status:"rejected",reason:t},--a||u(i))})}),--a||u(i)});return n.error&&r(n.value),e.promise}})},9671:(t,e,r)=>{"use strict";var n=r(4650),h=r(5114),f=r(7225),i=r(4705),o=r(265),p=r(7612),y="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var u=this,e=i.f(u),c=e.resolve,l=e.reject,r=o(function(){var n=h(u.resolve),i=[],o=0,a=1,s=!1;p(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(u,t).then(function(t){r||s||(s=!0,c(t))},function(t){r||s||(r=!0,i[e]=t,--a||l(new(f("AggregateError"))(i,y)))})}),--a||l(new(f("AggregateError"))(i,y))});return r.error&&l(r.value),e.promise}})},2678:(t,e,r)=>{"use strict";var n=r(4650),i=r(1729),o=r(5230),a=r(5172),s=r(7225),u=r(9714),c=r(2023),r=r(228);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(e){var r=u(this,s("Promise")),t="function"==typeof e;return this.then(t?function(t){return c(r,e()).then(function(){return t})}:e,t?function(t){return c(r,e()).then(function(){throw t})}:e)}}),i||"function"!=typeof o||(i=s("Promise").prototype.finally,o.prototype.finally!==i&&r(o.prototype,"finally",i,{unsafe:!0}))},1931:(t,e,r)=>{"use strict";var n,i,o,a,s=r(4650),u=r(1729),g=r(5313),c=r(7225),l=r(5230),h=r(228),f=r(7213),p=r(1336),y=r(6257),v=r(3029),d=r(4955),m=r(5114),x=r(3988),b=r(6560),w=r(7612),S=r(2146),A=r(9714),k=r(9720).set,T=r(5096),O=r(2023),P=r(6593),C=r(4705),E=r(265),M=r(893),N=r(9177),R=r(2362),_=r(4943),V=r(3287),D=r(2750),L=R("species"),I="Promise",j=M.get,z=M.set,F=M.getterFor(I),M=l&&l.prototype,B=l,H=M,U=g.TypeError,X=g.document,$=g.process,Y=C.f,q=Y,W=!!(X&&X.createEvent&&g.dispatchEvent),G="function"==typeof PromiseRejectionEvent,Q="unhandledrejection",Z="rejectionhandled",K=1,J=2,tt=1,et=2,rt=!1,N=N(I,function(){var t=b(B),e=t!==String(B);if(!e&&66===D)return!0;if(u&&!H.finally)return!0;if(51<=D&&/native code/.test(t))return!1;var r=new B(function(t){t(1)}),t=function(t){t(function(){},function(){})};return(r.constructor={})[L]=t,!(rt=r.then(function(){})instanceof t)||!e&&_&&!G}),S=N||!S(function(t){B.all(t).catch(function(){})}),nt=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},it=function(f,p){var y;f.notified||(f.notified=!0,y=f.reactions,T(function(){for(var i,t=f.value,e=f.state==K,r=0;y.length>r;){var n,o,a,s=y[r++],u=e?s.ok:s.fail,c=s.resolve,l=s.reject,h=s.domain;try{u?(e||(f.rejection===et&&function(e){k.call(g,function(){var t=e.facade;if(V)$.emit("rejectionHandled",t);else ot(Z,t,e.value)})}(f),f.rejection=tt),!0===u?n=t:(h&&h.enter(),n=u(t),h&&(h.exit(),a=!0)),n===s.promise?l(U("Promise-chain cycle")):(o=nt(n))?o.call(n,c,l):c(n)):l(t)}catch(t){h&&!a&&h.exit(),l(t)}}f.reactions=[],f.notified=!1,p&&!f.rejection&&(i=f,k.call(g,function(){var t,e=i.facade,r=i.value,n=at(i);if(n&&(t=E(function(){V?$.emit("unhandledRejection",r,e):ot(Q,e,r)}),i.rejection=V||at(i)?et:tt,t.error))throw t.value}))}))},ot=function(t,e,r){var n,i;W?((n=X.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),g.dispatchEvent(n)):n={promise:e,reason:r},!G&&(i=g["on"+t])?i(n):t===Q&&P("Unhandled promise rejection",r)},at=function(t){return t.rejection!==tt&&!t.parent},st=function(e,r,n){return function(t){e(r,t,n)}},ut=function(t,e,r){t.done||(t.done=!0,(t=r?r:t).value=e,t.state=J,it(t,!0))},ct=function(r,t,e){if(!r.done){r.done=!0,e&&(r=e);try{if(r.facade===t)throw U("Promise can't be resolved itself");var n=nt(t);n?T(function(){var e={done:!1};try{n.call(t,st(ct,e,r),st(ut,e,r))}catch(t){ut(e,t,r)}}):(r.value=t,r.state=K,it(r,!1))}catch(t){ut({done:!1},t,r)}}};if(N&&(H=(B=function(t){x(this,B,I),m(t),n.call(this);var e=j(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(n=function(t){z(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=f(H,{then:function(t,e){var r=F(this),n=Y(A(this,B));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=V?$.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&it(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=j(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},C.f=Y=function(t){return t===B||t===o?new i:q(t)},!u&&"function"==typeof l&&M!==Object.prototype)){a=M.then,rt||(h(M,"then",function(t,e){var r=this;return new B(function(t,e){a.call(r,t,e)}).then(t,e)},{unsafe:!0}),h(M,"catch",H.catch,{unsafe:!0}));try{delete M.constructor}catch(t){}p&&p(M,H)}s({global:!0,wrap:!0,forced:N},{Promise:B}),y(B,I,!1,!0),v(I),o=c(I),s({target:I,stat:!0,forced:N},{reject:function(t){var e=Y(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:u||N},{resolve:function(t){return O(u&&this===o?B:this,t)}}),s({target:I,stat:!0,forced:S},{all:function(t){var s=this,e=Y(s),u=e.resolve,c=e.reject,r=E(function(){var n=m(s.resolve),i=[],o=0,a=1;w(t,function(t){var e=o++,r=!1;i.push(void 0),a++,n.call(s,t).then(function(t){r||(r=!0,i[e]=t,--a||u(i))},c)}),--a||u(i)});return r.error&&c(r.value),e.promise},race:function(t){var r=this,n=Y(r),i=n.reject,e=E(function(){var e=m(r.resolve);w(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},3293:(t,e,r)=>{var n=r(4650),i=r(7225),o=r(5114),a=r(6508),r=r(5172),s=i("Reflect","apply"),u=Function.apply;n({target:"Reflect",stat:!0,forced:!r(function(){s(function(){})})},{apply:function(t,e,r){return o(t),a(r),s?s(t,e,r):u.call(t,e,r)}})},4398:(t,e,r)=>{var n=r(4650),i=r(7225),o=r(5114),a=r(6508),s=r(4955),u=r(8705),c=r(8021),r=r(5172),l=i("Reflect","construct"),h=r(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),f=!r(function(){l(function(){})}),r=h||f;n({target:"Reflect",stat:!0,forced:r,sham:r},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(f&&!h)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=u(s(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return s(n)?n:r}})},9114:(t,e,r)=>{var n=r(4650),i=r(6508),o=r(4832).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},5087:(t,e,r)=>{var n=r(4650),i=r(6508),o=r(5787);n({target:"Reflect",stat:!0,sham:!r(3368)},{getPrototypeOf:function(t){return o(i(t))}})},7361:(t,e,r)=>{var n=r(4650),o=r(4955),a=r(6508),s=r(3634),u=r(4832),c=r(5787);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,i=arguments.length<3?e:arguments[2];return a(e)===i?e[r]:(n=u.f(e,r))?s(n)?n.value:void 0===n.get?void 0:n.get.call(i):o(n=c(e))?t(n,r,i):void 0}})},336:()=>{},9522:(t,e,r)=>{"use strict";var n=r(4650),i=r(4091),o=r(3322),a=r(2062);n({target:"String",proto:!0,forced:!r(8047)("includes")},{includes:function(t){return!!~a(o(this)).indexOf(a(i(t)),1<arguments.length?arguments[1]:void 0)}})},9127:(t,e,r)=>{"use strict";var n=r(3955).charAt,i=r(2062),o=r(893),r=r(5461),a="String Iterator",s=o.set,u=o.getterFor(a);r(String,"String",function(t){s(this,{type:a,string:i(t),index:0})},function(){var t=u(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(r=n(e,r),t.index+=r.length,{value:r,done:!1})})},2109:(t,e,r)=>{"use strict";var n=r(4650),i=r(4832).f,o=r(5646),a=r(2062),s=r(4091),u=r(3322),c=r(8047),r=r(1729),l="".startsWith,h=Math.min,c=c("startsWith");n({target:"String",proto:!0,forced:!!(r||c||(!(i=i(String.prototype,"startsWith"))||i.writable))&&!c},{startsWith:function(t){var e=a(u(this));s(t);var r=o(h(1<arguments.length?arguments[1]:void 0,e.length)),t=a(t);return l?l.call(e,t,r):e.slice(r,r+t.length)===t}})},7843:(t,e,r)=>{"use strict";var n=r(4650),i=r(6355).trim;n({target:"String",proto:!0,forced:r(2701)("trim")},{trim:function(){return i(this)}})},5089:(t,e,r)=>{r(7034)("asyncIterator")},7015:()=>{},4207:(t,e,r)=>{r(7034)("hasInstance")},3867:(t,e,r)=>{r(7034)("isConcatSpreadable")},6878:(t,e,r)=>{r(7034)("iterator")},9078:(t,e,r)=>{"use strict";function n(t,e){var r=tt[t]=S(W[X]);return $(r,{type:U,tag:t,description:e}),c||(r.description=e),r}function i(e,t){v(e);var r=m(t),t=A(r).concat(ut(r));return B(t,function(t){c&&!st.call(r,t)||at(e,t,r[t])}),e}var o=r(4650),a=r(5313),s=r(7225),u=r(1729),c=r(988),l=r(1116),h=r(5172),f=r(7235),p=r(8869),y=r(4955),g=r(1444),v=r(6508),d=r(9270),m=r(1650),x=r(7877),b=r(2062),w=r(8714),S=r(8705),A=r(5642),k=r(4780),T=r(3929),O=r(5548),P=r(4832),C=r(9962),E=r(3469),M=r(44),N=r(228),R=r(6339),_=r(1327),V=r(1918),D=r(3954),L=r(2362),I=r(1102),j=r(7034),z=r(6257),F=r(893),B=r(6862).forEach,H=_("hidden"),U="Symbol",X="prototype",_=L("toPrimitive"),$=F.set,Y=F.getterFor(U),q=Object[X],W=a.Symbol,G=s("JSON","stringify"),Q=P.f,Z=C.f,K=T.f,J=E.f,tt=R("symbols"),et=R("op-symbols"),rt=R("string-to-symbol-registry"),nt=R("symbol-to-string-registry"),s=R("wks"),R=a.QObject,it=!R||!R[X]||!R[X].findChild,ot=c&&h(function(){return 7!=S(Z({},"a",{get:function(){return Z(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=Q(q,e);n&&delete q[e],Z(t,e,r),n&&t!==q&&Z(q,e,n)}:Z,at=function(t,e,r){t===q&&at(et,e,r),v(t);e=x(e);return v(r),f(tt,e)?(r.enumerable?(f(t,H)&&t[H][e]&&(t[H][e]=!1),r=S(r,{enumerable:w(0,!1)})):(f(t,H)||Z(t,H,w(1,{})),t[H][e]=!0),ot(t,e,r)):Z(t,e,r)},st=function(t){var e=x(t),t=J.call(this,e);return!(this===q&&f(tt,e)&&!f(et,e))&&(!(t||!f(this,e)||!f(tt,e)||f(this,H)&&this[H][e])||t)},a=function(t,e){var r=m(t),t=x(e);if(r!==q||!f(tt,t)||f(et,t)){e=Q(r,t);return!e||!f(tt,t)||f(r,H)&&r[H][t]||(e.enumerable=!0),e}},R=function(t){var t=K(m(t)),e=[];return B(t,function(t){f(tt,t)||f(V,t)||e.push(t)}),e},ut=function(t){var e=t===q,t=K(e?et:m(t)),r=[];return B(t,function(t){!f(tt,t)||e&&!f(q,t)||r.push(tt[t])}),r};l||(N((W=function(){if(this instanceof W)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?b(arguments[0]):void 0,e=D(t),r=function(t){this===q&&r.call(et,t),f(this,H)&&f(this[H],e)&&(this[H][e]=!1),ot(this,e,w(1,t))};return c&&it&&ot(q,e,{configurable:!0,set:r}),n(e,t)})[X],"toString",function(){return Y(this).tag}),N(W,"withoutSetter",function(t){return n(D(t),t)}),E.f=st,C.f=at,P.f=a,k.f=T.f=R,O.f=ut,I.f=function(t){return n(L(t),t)},c&&(Z(W[X],"description",{configurable:!0,get:function(){return Y(this).description}}),u||N(q,"propertyIsEnumerable",st,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),B(A(s),function(t){j(t)}),o({target:U,stat:!0,forced:!l},{for:function(t){var e=b(t);if(f(rt,e))return rt[e];t=W(e);return rt[e]=t,nt[t]=e,t},keyFor:function(t){if(!g(t))throw TypeError(t+" is not a symbol");if(f(nt,t))return nt[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),o({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(t,e){return void 0===e?S(t):i(S(t),e)},defineProperty:at,defineProperties:i,getOwnPropertyDescriptor:a}),o({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:R,getOwnPropertySymbols:ut}),o({target:"Object",stat:!0,forced:h(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(d(t))}}),G&&o({target:"JSON",stat:!0,forced:!l||h(function(){var t=W();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((y(n=e)||void 0!==t)&&!g(t))return p(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!g(e))return e}),i[1]=e,G.apply(null,i)}}),W[X][_]||M(W[X],_,W[X].valueOf),z(W,U),V[H]=!0},8715:(t,e,r)=>{r(7034)("matchAll")},25:(t,e,r)=>{r(7034)("match")},6858:(t,e,r)=>{r(7034)("replace")},8056:(t,e,r)=>{r(7034)("search")},2335:(t,e,r)=>{r(7034)("species")},8663:(t,e,r)=>{r(7034)("split")},2607:(t,e,r)=>{r(7034)("toPrimitive")},733:(t,e,r)=>{r(7034)("toStringTag")},2057:(t,e,r)=>{r(7034)("unscopables")},7264:(t,e,r)=>{r(7186)},9562:(t,e,r)=>{r(2044)},3980:(t,e,r)=>{r(9671)},7486:(t,e,r)=>{"use strict";var n=r(4650),i=r(4705),o=r(265);n({target:"Promise",stat:!0},{try:function(t){var e=i.f(this),t=o(t);return(t.error?e.reject:e.resolve)(t.value),e.promise}})},9427:(t,e,r)=>{r(7034)("asyncDispose")},7302:(t,e,r)=>{r(7034)("dispose")},8182:(t,e,r)=>{r(7034)("matcher")},3069:(t,e,r)=>{r(7034)("metadata")},1160:(t,e,r)=>{r(7034)("observable")},6121:(t,e,r)=>{r(7034)("patternMatch")},6472:(t,e,r)=>{r(7034)("replaceAll")},8169:(t,e,r)=>{r(9540);var n,i=r(4339),o=r(5313),a=r(9848),s=r(44),u=r(1575),c=r(2362)("toStringTag");for(n in i){var l=o[n],l=l&&l.prototype;l&&a(l)!==c&&s(l,c,n),u[n]=u.Array}},3176:(t,e,r)=>{r=r(2018);t.exports=r},2397:(t,e,r)=>{r=r(7885);t.exports=r},1834:(t,e,r)=>{r=r(6073);t.exports=r},2803:(t,e,r)=>{r=r(6838);t.exports=r},8139:(t,e,r)=>{r=r(411);t.exports=r},4199:(t,e,r)=>{var n=r(7031);r(8169),t.exports=n},5798:(t,e,r)=>{var n=r(2889);r(8169),t.exports=n},8921:(t,e,r)=>{r=r(7637);t.exports=r},8255:(t,e,r)=>{r=r(510);t.exports=r},2527:(t,e,r)=>{r=r(6167);t.exports=r},1761:(t,e,r)=>{r=r(8456);t.exports=r},5922:(t,e,r)=>{r=r(2465);t.exports=r},4e3:(t,e,r)=>{r(8169);var n=r(1834),i=r(9848),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===o||t instanceof Array&&e===o.forEach||a.hasOwnProperty(i(t))?n:e}},4922:(t,e,r)=>{r=r(1351);t.exports=r},6840:(t,e,r)=>{r=r(4975);t.exports=r},7964:(t,e,r)=>{r=r(9884);t.exports=r},758:(t,e,r)=>{r=r(1629);t.exports=r},4801:(t,e,r)=>{r=r(5428);t.exports=r},3492:(t,e,r)=>{r=r(8981);t.exports=r},3431:(t,e,r)=>{r=r(7865);t.exports=r},503:(t,e,r)=>{r=r(7172);t.exports=r},6007:(t,e,r)=>{r=r(2205);t.exports=r},5109:(t,e,r)=>{r(8169);var n=r(2803),i=r(9848),o=Array.prototype,a={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.values;return t===o||t instanceof Array&&e===o.values||a.hasOwnProperty(i(t))?n:e}},6653:(t,e,r)=>{var n=r(2491);r(8169),t.exports=n},8631:(t,e,r)=>{r=r(2921);t.exports=r},9048:(t,e,r)=>{r=r(4004);t.exports=r},4613:(t,e,r)=>{r=r(2768);t.exports=r},9592:(t,e,r)=>{r=r(6680);t.exports=r},6016:(t,e,r)=>{r=r(4530);t.exports=r},2285:(t,e,r)=>{r=r(3704);t.exports=r},6292:(t,e,r)=>{r=r(1951);t.exports=r},4450:(t,e,r)=>{r=r(2829);t.exports=r},2549:(t,e,r)=>{r=r(4407);t.exports=r},4257:(t,e,r)=>{r=r(7594);t.exports=r},8025:(t,e,r)=>{r=r(2060);t.exports=r},2354:(t,e,r)=>{var n=r(944);r(8169),t.exports=n},6054:(t,e,r)=>{r=r(8749);t.exports=r},122:(t,e,r)=>{r=r(2331);t.exports=r},61:(t,e,r)=>{r=r(8474);t.exports=r},5917:(t,e,r)=>{r=r(6e3);t.exports=r},7564:(t,e,r)=>{r=r(5967);t.exports=r},6170:(t,e,r)=>{var n=r(5075);r(8169),t.exports=n},8976:(t,e,r)=>{var n=r(7910);r(8169),t.exports=n},1466:(t,e,r)=>{for(var n,i,o,a=r(1375),s="undefined"==typeof window?r.g:window,u=["moz","webkit"],c="AnimationFrame",l=s["request"+c],h=s["cancel"+c]||s["cancelRequest"+c],f=0;!l&&f<u.length;f++)l=s[u[f]+"Request"+c],h=s[u[f]+"Cancel"+c]||s[u[f]+"CancelRequest"+c];l&&h||(i=n=0,o=[],l=function(t){var e,r;return 0===o.length&&(e=a(),r=Math.max(0,1e3/60-(e-n)),n=r+e,setTimeout(function(){for(var t=o.slice(0),e=o.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(n)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),o.push({handle:++i,callback:t,cancelled:!1}),i},h=function(t){for(var e=0;e<o.length;e++)o[e].handle===t&&(o[e].cancelled=!0)}),t.exports=function(t){return l.call(s,t)},t.exports.cancel=function(){h.apply(s,arguments)},t.exports.polyfill=function(t){(t=t||s).requestAnimationFrame=l,t.cancelAnimationFrame=h}},1500:e=>{e=function(a){"use strict";var u,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(t){o=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i,o,a,s,e=e&&e.prototype instanceof v?e:v,e=Object.create(e.prototype),n=new T(n||[]);return e._invoke=(i=t,o=r,a=n,s=h,function(t,e){if(s===p)throw new Error("Generator is already running");if(s===y){if("throw"===t)throw e;return P()}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===u){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=u,t(e,r),"throw"===r.method))return g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var n=l(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g;{if(!n.done)return n;r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u)}r.delegate=null;return g}(r,a);if(n){if(n===g)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===h)throw s=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=p;n=l(i,o,a);if("normal"===n.type){if(s=a.done?y:f,n.arg!==g)return{value:n.arg,done:a.done}}else"throw"===n.type&&(s=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=s;var h="suspendedStart",f="suspendedYield",p="executing",y="completed",g={};function v(){}function d(){}function m(){}var x={};o(x,n,function(){return this});e=Object.getPrototypeOf,e=e&&e(e(O([])));e&&e!==t&&c.call(e,n)&&(x=e);var b=m.prototype=v.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,s){var e;this._invoke=function(r,n){function t(){return new s(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")?s.resolve(r.__await).then(function(t){e("next",t,n,i)},function(t){e("throw",t,n,i)}):s.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 A(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(A,this),this.reset(!0)}function O(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=u,t.done=!0,t};return t.next=t}}return{next:P}}function P(){return{value:u,done:!0}}return o(b,"constructor",d.prototype=m),o(m,"constructor",d),d.displayName=o(m,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"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(s(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=O,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=u)},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=u),!!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"),s=c.call(i,"finallyLoc");if(a&&s){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(!s)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,g):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),g},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),g}},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:O(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=u),g}},a}(e.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},9106:t=>{t.exports=function(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 h=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(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<h.length;e++){var r=h[e].re,n=h[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<h.length;r++)for(var n=h[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");o.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var a=document.createElement("li"),s=new RGBColor(e[r]),u=document.createElement("div");u.style.cssText="margin: 3px; border: 1px solid black; background:"+s.toHex()+"; color:"+s.toHex(),u.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[r]+" -> "+s.toRGB()+" -> "+s.toHex());a.appendChild(u),a.appendChild(c),o.appendChild(a)}catch(t){}return o}}}},n={};function qn(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return r[t].call(e.exports,e,e.exports,qn),e.exports}qn.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return qn.d(e,{a:e}),e},qn.d=(t,e)=>{for(var r in e)qn.o(e,r)&&!qn.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},qn.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),qn.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var Wn={};return(()=>{"use strict";qn.d(Wn,{default:()=>Yn});var t=qn(5265),e=qn.n(t),r=qn(2210),s=qn.n(r),n=qn(1151),d=qn.n(n),i=qn(7960);var u=qn(1161),c=qn(8516),l=qn.n(c);var o=qn(229),a=qn(7666);function h(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 f(t,e){if(t){if("string"==typeof t)return h(t,e);var r=o(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?a(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(t,e):void 0}}function w(t,e){return function(t){if(i(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==u&&c(t)||t["@@iterator"];if(null!=r){var n,i,o=[],a=!0,s=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(o.push(n.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==r.return||r.return()}finally{if(s)throw i}}return o}}(t,e)||f(t,e)||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.")}()}var p=qn(7878),y=qn.n(p),g=qn(8229),v=qn.n(g),m=qn(4597),x=qn.n(m),b=qn(9061),S=qn.n(b),A=qn(9990),k=qn.n(A),T=qn(9957),O=qn.n(T),P=qn(5234),C=qn.n(P),E=qn(8470),M=qn.n(E),N=qn(4788),R=qn.n(N),_=qn(9498);function V(t,e,r,n,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void r(t)}s.done?e(u):_.resolve(u).then(n,i)}function D(s){return function(){var t=this,a=arguments;return new _(function(e,r){var n=s.apply(t,a);function i(t){V(n,e,r,i,o,"next",t)}function o(t){V(n,e,r,i,o,"throw",t)}i(void 0)})}}var L=qn(6035);function I(t,e,r){return e in t?L(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(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),L(t,n.key,n)}}function F(t,e,r){return e&&z(t.prototype,e),r&&z(t,r),t}var B=qn(1777),H=qn.n(B),U=qn(5628),X=qn.n(U),$=qn(2844),Y=qn.n($),q=qn(7197),W=qn.n(q),G=qn(8903),Q=qn.n(G),Z=qn(5246),K=qn.n(Z),J=qn(1466),tt=qn.n(J),et=qn(3224),rt=qn.n(et),nt=qn(9106),it=qn.n(nt),ot=qn(9423),at=qn.n(ot),st=qn(1952),ut=qn(8310);function ct(t,e){return(ct=ut||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=st(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ct(t,e)}var ht=qn(7850);function ft(t){return(ft="function"==typeof u&&"symbol"==typeof ht?function(t){return typeof t}:function(t){return t&&"function"==typeof u&&t.constructor===u&&t!==u.prototype?"symbol":typeof t})(t)}function pt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yt(t,e){if(e&&("object"===ft(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pt(t)}var gt=qn(3487);function vt(t){return(vt=ut?gt:function(t){return t.__proto__||gt(t)})(t)}function dt(t){return function(t){if(i(t))return h(t)}(t)||function(t){if(void 0!==u&&null!=c(t)||null!=t["@@iterator"])return a(t)}(t)||f(t)||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.")}()}var mt=qn(819),xt=qn.n(mt),bt=qn(6407),wt=qn.n(bt),St=qn(9266),At=qn.n(St),kt=qn(4440),Tt=qn.n(kt),t=qn(4578),Ot=qn.n(t),Pt=qn(9150),Ct=qn(7457);function Et(t,e,r){return(Et="undefined"!=typeof Reflect&&Pt?Pt:function(t,e,r){t=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vt(t)););return t}(t,e);if(t){e=Ct(t,e);return e.get?e.get.call(r):e.value}})(t,e,r||t)}var r=qn(2743),Mt=qn.n(r),Nt=function(t,e){return(Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function Rt(t,e){function r(){this.constructor=t}Nt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function _t(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 Vt(){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 Dt=Math.PI;function Lt(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),s=_t([(e-o)/2,(r-a)/2],-t.xRot/180*Dt),u=s[0],c=s[1],l=Math.pow(u,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 h=Math.pow(n,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(u,2),s=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-h)/h)),l=n*c/i*s,h=-i*u/n*s,s=_t([l,h],t.xRot/180*Dt);t.cX=s[0]+(e+o)/2,t.cY=s[1]+(r+a)/2,t.phi1=Math.atan2((c-h)/i,(u-l)/n),t.phi2=Math.atan2((-c-h)/i,(-u-l)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*Dt),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*Dt),t.phi1*=180/Dt,t.phi2*=180/Dt}function It(t,e,r){Vt(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 jt,zt=Math.PI/180;function Ft(t,e,r){return(1-r)*t+r*e}function Bt(t,e,r,n){return t+Math.cos(n/180*Dt)*e+Math.sin(n/180*Dt)*r}function Ht(t,e,r,n){var t=e-t,e=r-e,i=3*t+3*(n-r)-6*e,e=6*(e-t),o=3*t;return Math.abs(i)<1e-6?[-o/e]:function(t,e){var r=t*t/4-o/i;if(r<-(e=void 0===e?1e-6:e))return[];if(r<=e)return[-t/2];r=Math.sqrt(r);return[-t/2-r,-t/2+r]}(e/i,1e-6)}function Ut(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 Xt(){return qt(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 $t(){var n=NaN,i=NaN,o=NaN,a=NaN;return qt(function(t,e,r){return t.type&Jt.SMOOTH_CURVE_TO&&(t.type=Jt.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&Jt.CURVE_TO?(n=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):n=NaN,t.type&Jt.SMOOTH_QUAD_TO&&(t.type=Jt.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&Jt.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y1):o=NaN,t})}function Yt(){var o=NaN,a=NaN;return qt(function(t,e,r){var n,i;return t.type&Jt.SMOOTH_QUAD_TO&&(t.type=Jt.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&Jt.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=Jt.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 qt(r){var n=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&Jt.MOVE_TO))throw new Error("path must start with moveto");var e=r(t,n,i,o,a);return t.type&Jt.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&Jt.MOVE_TO&&(o=n,a=i),e}}function Wt(c,l,h,f,p,y){return Vt(c,l,h,f,p,y),qt(function(t,e,r,n){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(n),s=void 0!==t.x?t.x:a?0:e,n=void 0!==t.y?t.y:a?0:r;function u(t){return t*t}t.type&Jt.HORIZ_LINE_TO&&0!==l&&(t.type=Jt.LINE_TO,t.y=t.relative?0:r),t.type&Jt.VERT_LINE_TO&&0!==h&&(t.type=Jt.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*c+n*h+(a?0:p)),void 0!==t.y&&(t.y=s*l+t.y*f+(a?0:y)),void 0!==t.x1&&(t.x1=t.x1*c+t.y1*h+(a?0:p)),void 0!==t.y1&&(t.y1=i*l+t.y1*f+(a?0:y)),void 0!==t.x2&&(t.x2=t.x2*c+t.y2*h+(a?0:p)),void 0!==t.y2&&(t.y2=o*l+t.y2*f+(a?0:y));r=c*f-l*h;return void 0===t.xRot||1===c&&0===l&&0===h&&1===f||(0==r?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=Jt.LINE_TO):(e=t.xRot*Math.PI/180,n=Math.sin(e),s=Math.cos(e),i=1/u(t.rX),o=1/u(t.rY),a=u(s)*i+u(n)*o,e=u(n)*i+u(s)*o,s=a*f*f-(n=2*n*s*(i-o))*l*f+e*l*l,i=n*(c*f+l*h)-2*(a*h*f+e*c*l),o=a*h*h-n*c*h+e*c*c,a=(Math.atan2(i,s-o)+Math.PI)%Math.PI/2,n=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(r)/Math.sqrt(s*u(e)+i*n*e+o*u(n)),t.rY=Math.abs(r)/Math.sqrt(s*u(n)-i*n*e+o*u(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&r<0&&(t.sweepFlag=+!t.sweepFlag),t})}(n=jt=jt||{}).ROUND=function(e){function r(t){return Math.round(t*e)/e}return Vt(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}},n.TO_ABS=Xt,n.TO_REL=function(){return qt(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})},n.NORMALIZE_HVZ=function(o,a,s){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===s&&(s=!0),qt(function(t,e,r,n,i){if(isNaN(n)&&!(t.type&Jt.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&Jt.HORIZ_LINE_TO&&(t.type=Jt.LINE_TO,t.y=t.relative?0:r),s&&t.type&Jt.VERT_LINE_TO&&(t.type=Jt.LINE_TO,t.x=t.relative?0:e),o&&t.type&Jt.CLOSE_PATH&&(t.type=Jt.LINE_TO,t.x=t.relative?n-e:n,t.y=t.relative?i-r:i),t.type&Jt.ARC&&(0===t.rX||0===t.rY)&&(t.type=Jt.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},n.NORMALIZE_ST=$t,n.QT_TO_C=Yt,n.INFO=qt,n.SANITIZE=function(p){Vt(p=void 0===p?0:p);var y=NaN,g=NaN,v=NaN,d=NaN;return qt(function(t,e,r,n,i){var o,a,s,u,c=Math.abs,l=!1,h=0,f=0;return t.type&Jt.SMOOTH_CURVE_TO&&(h=isNaN(y)?0:e-y,f=isNaN(g)?0:r-g),g=t.type&(Jt.CURVE_TO|Jt.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?r+t.y2:t.y2):y=NaN,d=t.type&Jt.SMOOTH_QUAD_TO?(v=isNaN(v)?e:2*e-v,isNaN(d)?r:2*r-d):t.type&Jt.QUAD_TO?(v=t.relative?e+t.x1:t.x1,t.relative?r+t.y1:t.y2):v=NaN,(t.type&Jt.LINE_COMMANDS||t.type&Jt.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&Jt.CURVE_TO||t.type&Jt.SMOOTH_CURVE_TO||t.type&Jt.QUAD_TO||t.type&Jt.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,h=isNaN(v)?void 0===t.x1?h:t.relative?t.x:t.x1-e:v-e,f=isNaN(d)?void 0===t.y1?f:t.relative?t.y:t.y1-r:d-r,s=void 0===t.x2?0:t.relative?t.x:t.x2-e,u=void 0===t.y2?0:t.relative?t.y:t.y2-r,c(o)<=p&&c(a)<=p&&c(h)<=p&&c(f)<=p&&c(s)<=p&&c(u)<=p&&(l=!0)),(l=t.type&Jt.CLOSE_PATH&&c(e-n)<=p&&c(r-i)<=p?!0:l)?[]:t})},n.MATRIX=Wt,n.ROTATE=function(t,e,r){Vt(t,e=void 0===e?0:e,r=void 0===r?0:r);var n=Math.sin(t),t=Math.cos(t);return Wt(t,n,-n,t,e-e*t+r*n,r-e*n-r*t)},n.TRANSLATE=function(t,e){return Vt(t,e=void 0===e?0:e),Wt(1,0,0,1,t,e)},n.SCALE=function(t,e){return Vt(t,e=void 0===e?t:e),Wt(t,0,0,e,0,0)},n.SKEW_X=function(t){return Vt(t),Wt(1,0,Math.atan(t),1,0,0)},n.SKEW_Y=function(t){return Vt(t),Wt(1,Math.atan(t),0,1,0,0)},n.X_AXIS_SYMMETRY=function(t){return Vt(t=void 0===t?0:t),Wt(-1,0,0,1,t,0)},n.Y_AXIS_SYMMETRY=function(t){return Vt(t=void 0===t?0:t),Wt(1,0,0,-1,0,t)},n.A_TO_C=function(){return qt(function(t,e,r){return Jt.ARC===t.type?function(r,t,e){r.cX||Lt(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,s=e,u=0;u<i;u++){var c=Ft(r.phi1,r.phi2,u/i),l=Ft(r.phi1,r.phi2,(u+1)/i),h=4/3*Math.tan((l-c)*zt/4),f=[Math.cos(c*zt)-h*Math.sin(c*zt),Math.sin(c*zt)+h*Math.cos(c*zt)],p=f[0],y=f[1],g=[Math.cos(l*zt),Math.sin(l*zt)],c=g[0],f=g[1],g=[c+h*Math.sin(l*zt),f-h*Math.cos(l*zt)],h=g[0],l=g[1];o[u]={relative:r.relative,type:Jt.CURVE_TO};g=function(t,e){t=_t([t*r.rX,e*r.rY],r.xRot),e=t[0],t=t[1];return[r.cX+e,r.cY+t]},y=g(p,y);o[u].x1=y[0],o[u].y1=y[1],l=g(h,l),o[u].x2=l[0],o[u].y2=l[1],f=g(c,f),o[u].x=f[0],o[u].y=f[1],r.relative&&(o[u].x1-=a,o[u].y1-=s,o[u].x2-=a,o[u].y2-=s,o[u].x-=a,o[u].y-=s),a=(f=[o[u].x,o[u].y])[0],s=f[1]}return o}(t,t.relative?0:e,t.relative?0:r):t})},n.ANNOTATE_ARCS=function(){return qt(function(t,e,r){return t.relative&&(r=e=0),Jt.ARC===t.type&&Lt(t,e,r),t})},n.CLONE=function(){return function(t){var e,r={};for(e in t)r[e]=t[e];return r}},n.CALCULATE_BOUNDS=function(){var S=Xt(),A=Yt(),k=$t(),T=qt(function(t,e,r){var n=k(A(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&Jt.DRAWING_COMMANDS&&(i(e),o(r)),n.type&Jt.HORIZ_LINE_TO&&i(n.x),n.type&Jt.VERT_LINE_TO&&o(n.y),n.type&Jt.LINE_TO&&(i(n.x),o(n.y)),n.type&Jt.CURVE_TO){i(n.x),o(n.y);for(var a=0,s=Ht(e,n.x1,n.x2,n.x);a<s.length;a++)0<(x=s[a])&&x<1&&i(Ut(e,n.x1,n.x2,n.x,x));for(var u=0,c=Ht(r,n.y1,n.y2,n.y);u<c.length;u++)0<(x=c[u])&&x<1&&o(Ut(r,n.y1,n.y2,n.y,x))}if(n.type&Jt.ARC){i(n.x),o(n.y),Lt(n,e,r);for(var l=n.xRot/180*Math.PI,h=Math.cos(l)*n.rX,f=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],g=l[0],v=l[1],l=function(t){var e=t[0],t=t[1],e=180*Math.atan2(t,e)/Math.PI;return e<g?360+e:e},d=0,m=It(p,-h,0).map(l);d<m.length;d++)(x=m[d])>g&&x<v&&i(Bt(n.cX,h,p,x));for(var x,b=0,w=It(y,-f,0).map(l);b<w.length;b++)(x=w[b])>g&&x<v&&o(Bt(n.cY,f,y,x))}return t});return T.minX=1/0,T.maxX=-1/0,T.minY=1/0,T.maxY=-1/0,T};function Gt(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var Qt,Zt,p=(ne.prototype.round=function(t){return this.transform(jt.ROUND(t))},ne.prototype.toAbs=function(){return this.transform(jt.TO_ABS())},ne.prototype.toRel=function(){return this.transform(jt.TO_REL())},ne.prototype.normalizeHVZ=function(t,e,r){return this.transform(jt.NORMALIZE_HVZ(t,e,r))},ne.prototype.normalizeST=function(){return this.transform(jt.NORMALIZE_ST())},ne.prototype.qtToC=function(){return this.transform(jt.QT_TO_C())},ne.prototype.aToC=function(){return this.transform(jt.A_TO_C())},ne.prototype.sanitize=function(t){return this.transform(jt.SANITIZE(t))},ne.prototype.translate=function(t,e){return this.transform(jt.TRANSLATE(t,e))},ne.prototype.scale=function(t,e){return this.transform(jt.SCALE(t,e))},ne.prototype.rotate=function(t,e,r){return this.transform(jt.ROTATE(t,e,r))},ne.prototype.matrix=function(t,e,r,n,i,o){return this.transform(jt.MATRIX(t,e,r,n,i,o))},ne.prototype.skewX=function(t){return this.transform(jt.SKEW_X(t))},ne.prototype.skewY=function(t){return this.transform(jt.SKEW_Y(t))},ne.prototype.xSymmetry=function(t){return this.transform(jt.X_AXIS_SYMMETRY(t))},ne.prototype.ySymmetry=function(t){return this.transform(jt.Y_AXIS_SYMMETRY(t))},ne.prototype.annotateArcs=function(){return this.transform(jt.ANNOTATE_ARCS())},ne),Kt=(Rt(re,Zt=p),re.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},re.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!==Jt.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=Gt(o)&&("0"===this.curNumber&&"0"===o||a);if(!Gt(o)||s)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 u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===Jt.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(u<0)throw new SyntaxError('Expected positive number, got "'+u+'" 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(u),this.curArgs.length===te[this.curCommandType]&&(Jt.HORIZ_LINE_TO===this.curCommandType?n({type:Jt.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):Jt.VERT_LINE_TO===this.curCommandType?n({type:Jt.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===Jt.MOVE_TO||this.curCommandType===Jt.LINE_TO||this.curCommandType===Jt.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),Jt.MOVE_TO===this.curCommandType&&(this.curCommandType=Jt.LINE_TO)):this.curCommandType===Jt.CURVE_TO?n({type:Jt.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===Jt.SMOOTH_CURVE_TO?n({type:Jt.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.QUAD_TO?n({type:Jt.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===Jt.ARC&&n({type:Jt.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(" "!==(u=o)&&"\t"!==u&&"\r"!==u&&"\n"!==u)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)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=Jt.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=Jt.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=Jt.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=Jt.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=Jt.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=Jt.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=Jt.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=Jt.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=Jt.ARC,this.curCommandRelative="a"===o}else e.push({type:Jt.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},re.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}}})},re),Jt=(Rt(ee,Qt=p),ee.prototype.encode=function(){return ee.encode(this.commands)},ee.prototype.getBounds=function(){var t=jt.CALCULATE_BOUNDS();return this.transform(t),t},ee.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},ee.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===Jt.CLOSE_PATH)e+="z";else if(n.type===Jt.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===Jt.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===Jt.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===Jt.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===Jt.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===Jt.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===Jt.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==Jt.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},ee.parse=function(t){var e=new Kt,r=[];return e.parse(t,r),e.finish(r),r},ee.CLOSE_PATH=1,ee.MOVE_TO=2,ee.HORIZ_LINE_TO=4,ee.VERT_LINE_TO=8,ee.LINE_TO=16,ee.CURVE_TO=32,ee.SMOOTH_CURVE_TO=64,ee.QUAD_TO=128,ee.SMOOTH_QUAD_TO=256,ee.ARC=512,ee.LINE_COMMANDS=ee.LINE_TO|ee.HORIZ_LINE_TO|ee.VERT_LINE_TO,ee.DRAWING_COMMANDS=ee.HORIZ_LINE_TO|ee.VERT_LINE_TO|ee.LINE_TO|ee.CURVE_TO|ee.SMOOTH_CURVE_TO|ee.QUAD_TO|ee.SMOOTH_QUAD_TO|ee.ARC,ee),te=((g={})[Jt.MOVE_TO]=2,g[Jt.LINE_TO]=2,g[Jt.HORIZ_LINE_TO]=1,g[Jt.VERT_LINE_TO]=1,g[Jt.CLOSE_PATH]=0,g[Jt.QUAD_TO]=4,g[Jt.SMOOTH_QUAD_TO]=2,g[Jt.CURVE_TO]=6,g[Jt.SMOOTH_CURVE_TO]=4,g[Jt.ARC]=7,g);function ee(t){var e=Qt.call(this)||this;return e.commands="string"==typeof t?ee.parse(t):t,e}function re(){var t=Zt.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 ne(){}var m=qn(2108),ie=qn.n(m),b=qn(7516),oe=qn.n(b),A=qn(8748),ae=qn.n(A),T=qn(9882),se=qn.n(T),P=qn(1572),ue=qn.n(P),E=qn(4965),ce=qn.n(E),N=qn(6075),le=qn.n(N),B=qn(4541),he=qn.n(B),U=qn(7195),fe=qn.n(U),$=qn(6623),pe=qn.n($);function ye(t){return(ye="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 ge=[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],ve=[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 de(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===ye(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");t=t.getContext("2d");try{return t.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}function me(t,e,r,n,i,o){var a;isNaN(o)||o<1||(o|=0,a=function(t,e,r,n){for(var i,o=t.data,a=2*n+1,s=e-1,u=r-1,c=n+1,l=c*(c+1)/2,h=new xe,f=h,p=1;p<a;p++)f=f.next=new xe,p===c&&(i=f);f.next=h;for(var y=null,g=null,v=0,d=0,m=ge[n],x=ve[n],b=0;b<r;b++){f=h;for(var w=o[d],S=o[d+1],A=o[d+2],k=o[d+3],T=0;T<c;T++)f.r=w,f.g=S,f.b=A,f.a=k,f=f.next;for(var O=0,P=0,C=0,E=0,M=c*w,N=c*S,R=c*A,_=c*k,V=l*w,D=l*S,L=l*A,I=l*k,j=1;j<c;j++){var z=d+((s<j?s:j)<<2),F=o[z],B=o[z+1],H=o[z+2],U=o[z+3],z=c-j;V+=(f.r=F)*z,D+=(f.g=B)*z,L+=(f.b=H)*z,I+=(f.a=U)*z,O+=F,P+=B,C+=H,E+=U,f=f.next}y=h,g=i;for(var X=0;X<e;X++){var $=I*m>>x;0!=(o[d+3]=$)?(W=255/$,o[d]=(V*m>>x)*W,o[d+1]=(D*m>>x)*W,o[d+2]=(L*m>>x)*W):o[d]=o[d+1]=o[d+2]=0,V-=M,D-=N,L-=R,I-=_,M-=y.r,N-=y.g,R-=y.b,_-=y.a;var Y=X+n+1;Y=v+(Y<s?Y:s)<<2,O+=y.r=o[Y],P+=y.g=o[Y+1],C+=y.b=o[Y+2],E+=y.a=o[Y+3],V+=O,D+=P,L+=C,I+=E,y=y.next;var q=g,$=q.r,W=q.g,Y=q.b,q=q.a;M+=$,N+=W,R+=Y,_+=q,O-=$,P-=W,C-=Y,E-=q,g=g.next,d+=4}v+=e}for(var G=0;G<e;G++){var Q=o[d=G<<2],Z=o[d+1],K=o[d+2],J=o[d+3],tt=c*Q,et=c*Z,rt=c*K,nt=c*J,it=l*Q,ot=l*Z,at=l*K,st=l*J;f=h;for(var ut=0;ut<c;ut++)f.r=Q,f.g=Z,f.b=K,f.a=J,f=f.next;for(var ct=e,lt=0,ht=0,ft=0,pt=0,yt=1;yt<=n;yt++){d=ct+G<<2;var gt=c-yt;it+=(f.r=Q=o[d])*gt,ot+=(f.g=Z=o[d+1])*gt,at+=(f.b=K=o[d+2])*gt,st+=(f.a=J=o[d+3])*gt,pt+=Q,lt+=Z,ht+=K,ft+=J,f=f.next,yt<u&&(ct+=e)}d=G,y=h,g=i;for(var vt=0;vt<r;vt++){var dt=d<<2;o[dt+3]=J=st*m>>x,0<J?(J=255/J,o[dt]=(it*m>>x)*J,o[dt+1]=(ot*m>>x)*J,o[dt+2]=(at*m>>x)*J):o[dt]=o[dt+1]=o[dt+2]=0,it-=tt,ot-=et,at-=rt,st-=nt,tt-=y.r,et-=y.g,rt-=y.b,nt-=y.a,dt=G+((dt=vt+c)<u?dt:u)*e<<2,it+=pt+=y.r=o[dt],ot+=lt+=y.g=o[dt+1],at+=ht+=y.b=o[dt+2],st+=ft+=y.a=o[dt+3],y=y.next,tt+=Q=g.r,et+=Z=g.g,rt+=K=g.b,nt+=J=g.a,pt-=Q,lt-=Z,ht-=K,ft-=J,g=g.next,d+=e}}return t}(a=de(t,e,r,n,i),n,i,o),t.getContext("2d").putImageData(a,e,r))}var xe=function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function be(t){return t.replace(/(?!\u3000)\s+/gm," ")}function we(t){t=(t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return d()(t).call(t,s())}var Se=/^[A-Z-]+$/;function Ae(t){t=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}var ke=/(\[[^\]]+\])/g,Te=/(#[^\s\+>~\.\[:]+)/g,Oe=/(\.[^\s\+>~\.\[:]+)/g,Pe=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,Ce=/(:[\w-]+\([^\)]*\))/gi,Ee=/(:[^\s\+>~\.\[:]+)/g,Me=/([^\s\+>~\.\[:]+)/g;function Ne(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}var Re=1e-8;function _e(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Ve(t,e){return(t[0]*e[0]+t[1]*e[1])/(_e(t)*_e(e))}function De(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Ve(t,e))}function Le(t){return t*t*t}function Ie(t){return 3*t*t*(1-t)}function je(t){return 3*t*(1-t)*(1-t)}function ze(t){return(1-t)*(1-t)*(1-t)}function Fe(t){return t*t}function Be(t){return 2*t*(1-t)}function He(t){return(1-t)*(1-t)}var Ue=function(){function a(t,e,r){j(this,a),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}return F(a,[{key:"split",value:function(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:" ",r=this.document,n=this.name;return d()(e=rt()(t=be(this.getString())).call(t).split(e)).call(e,function(t){return new a(r,n,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/px$/.test(t):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:s()(t);t=this.value,t=s()(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?t:(this.isNormalizedColor=!0,t=function(t){if(!e()(t).call(t,"rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,function(t,e){return r--&&e?String(Math.round(s()(t))):t})}(t),this.value=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=w("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=t.match(/#([^\)'"]+)/))&&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()?a.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(it())(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new a(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new a(t,"EMPTY","")}}]),a}();Ue.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 Xe=function(){function t(){j(this,t),this.viewPorts=[]}return F(t,[{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}}]),t}(),$e=function(){function o(t,e){j(this,o),this.x=t,this.y=e}return F(o,[{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=w(we(t),2),t=r[0],r=r[1];return new o(void 0===t?e:t,void 0===r?e:r)}},{key:"parseScale",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=w(we(t),2),t=r[0],t=void 0===t?e:t,r=r[1];return new o(t,void 0===r?t:r)}},{key:"parsePath",value:function(t){for(var e=we(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new o(e[i],e[i+1]));return n}}]),o}(),Ye=function(){function e(t){j(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=K()(t=this.onClick).call(t,this),this.onMouseMove=K()(t=this.onMouseMove).call(t,this)}return F(e,[{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=""),S()(t).call(t,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,S()(t).call(t,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,S()(t).call(t,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 $e(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||event).clientX,(t||event).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||event).clientX,(t||event).clientY),t=e.x,e=e.y;this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),e}(),qe="undefined"!=typeof window?window:null,We="undefined"!=typeof fetch?K()(fetch).call(fetch,void 0):null,Ge=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?We:r,e=e.window,e=void 0===e?qe:e;j(this,n),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Xe,this.mouse=new Ye(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}return F(n,[{key:"wait",value:function(t){this.waits.push(t)}},{key:"ready",value:function(){return this.readyPromise||Q().resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var t=W()(t=this.waits).call(t,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,s=t.desiredHeight,u=t.minX,c=void 0===u?0:u,l=t.minY,h=void 0===l?0:l,f=t.refX,p=t.refY,y=t.clip,u=void 0!==y&&y,l=t.clipX,y=void 0===l?0:l,l=t.clipY,t=void 0===l?0:l,l=w(be(n).replace(/^defer\s/,"").split(" "),2),n=l[0]||"xMidYMid",l=l[1]||"meet",g=i/o,v=a/s,d=Math.min(g,v),m=Math.max(g,v),o=o,s=s;"meet"===l&&(o*=d,s*=d),"slice"===l&&(o*=m,s*=m);var x,b,f=new Ue(e,"refX",f),e=new Ue(e,"refY",p),p=f.hasValue()&&e.hasValue();switch(p&&r.translate(-d*f.getPixels("x"),-d*e.getPixels("y")),u&&(b=d*y,x=d*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"===l&&d===v,x="slice"===l&&m===v,b="meet"===l&&d===g,p="slice"===l&&m===g,/^xMid/.test(n)&&(t||x)&&r.translate(i/2-o/2,0),/YMid$/.test(n)&&(b||p)&&r.translate(0,a/2-s/2),/^xMax/.test(n)&&(t||x)&&r.translate(i-o,0),/YMax$/.test(n)&&(b||p)&&r.translate(0,a-s)),!0){case"none"===n:r.scale(g,v);break;case"meet"===l:r.scale(d,d);break;case"slice"===l:r.scale(m,m)}r.translate(-c,-h)}},{key:"start",value:function(e){var r,n,i,o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=t.enableRedraw,s=void 0!==a&&a,u=t.ignoreMouse,a=void 0!==u&&u,u=t.ignoreAnimation,c=void 0!==u&&u,u=t.ignoreDimensions,l=void 0!==u&&u,u=t.ignoreClear,h=void 0!==u&&u,f=t.forceRedraw,p=t.scaleWidth,y=t.scaleHeight,g=t.offsetX,v=t.offsetY,t=this.FRAMERATE,d=this.mouse,m=1e3/t;this.frameDuration=m,this.readyPromise=new(Q())(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,h,p,y,g,v),s&&(r=Y()(),n=r,i=0,s=function t(){r=Y()(),m<=(i=r-n)&&(n=r-i%m,o.shouldUpdate(c,f)&&(o.render(e,l,h,p,y,g,v),d.runEvents())),o.intervalId=tt()(t)},a||d.start(),this.intervalId=tt()(s))}},{key:"stop",value:function(){this.intervalId&&(tt().cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(t,e){if(!t){var r=this.frameDuration;if(X()(t=this.animations).call(t,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 s=this.CLIENT_WIDTH,u=this.CLIENT_HEIGHT,c=this.viewPort,l=this.ctx,h=this.isFirstRender,f=l.canvas;c.clear(),f.width&&f.height?c.setCurrent(f.width,f.height):c.setCurrent(s,u);var p=t.getStyle("width"),s=t.getStyle("height");!e&&(h||"number"!=typeof n&&"number"!=typeof i)&&(p.hasValue()&&(f.width=p.getPixels("x"),f.style&&(f.style.width="".concat(f.width,"px"))),s.hasValue()&&(f.height=s.getPixels("y"),f.style&&(f.style.height="".concat(f.height,"px"))));var y,u=f.clientWidth||f.width,f=f.clientHeight||f.height;e&&p.hasValue()&&s.hasValue()&&(u=p.getPixels("x"),f=s.getPixels("y")),c.setCurrent(u,f),"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=we(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(H()(o=H()(i="".concat(i.getString()," scale(")).call(i,1/o,", ")).call(o,1/a,")"))),r||l.clearRect(0,0,u,f),t.render(l),h&&(this.isFirstRender=!1)}}]),n}();Ge.defaultWindow=qe,Ge.defaultFetch=We;var Qe=Ge.defaultFetch,Ze="undefined"!=typeof DOMParser?DOMParser:null,Ke=function(){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?Qe:e,t=t.DOMParser,t=void 0===t?Ze:t;j(this,r),this.fetch=e,this.DOMParser=t}var e,n;return F(r,[{key:"parse",value:(n=D(R().mark(function t(e){return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(/^</.test(e))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 n.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:(e=D(R().mark(function t(e){var r;return R().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 e.apply(this,arguments)})}]),r}(),q=function(){function r(t,e){j(this,r),this.type="translate",this.point=null,this.point=$e.parse(e)}return F(r,[{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])}}]),r}(),G=function(){function n(t,e,r){j(this,n),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;e=we(e);this.angle=new Ue(t,"angle",e[0]),this.originX=r[0],this.originY=r[1],this.cx=e[1]||0,this.cy=e[2]||0}return F(n,[{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.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{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])}}]),n}(),Z=function(){function r(t,e){j(this,r),this.type="scale",this.scale=null;e=$e.parseScale(e);0!==e.x&&0!==e.y||(e.x=Re,e.y=Re),this.scale=e}return F(r,[{key:"apply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(r,e||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(1/r,1/e||r)}},{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])}}]),r}(),Je=function(){function r(t,e){j(this,r),this.type="matrix",this.matrix=[],this.matrix=we(e)}return F(r,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],o=e[1],a=e[3],s=e[5],e=1/(r*(+a-0*s)-n*(+o-0*s)+i*(0*o-0*a));t.transform(e*(+a-0*s),e*(0*s-+o),e*(0*i-+n),e*(+r-0*i),e*(n*s-i*a),e*(i*o-r*s))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),r}();function tr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var er=function(){lt(i,Je);var n=tr(i);function i(t,e){var r;return j(this,i),(r=n.call(this,t,e)).type="skew",r.angle=null,r.angle=new Ue(t,"angle",e),r}return i}();function rr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}J=function(){lt(n,er);var r=rr(n);function n(t,e){return j(this,n),(e=r.call(this,t,e)).type="skewX",e.matrix=[1,0,Math.tan(e.angle.getRadians()),1,0,0],e}return n}();function nr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et=function(){lt(n,er);var r=nr(n);function n(t,e){return j(this,n),(e=r.call(this,t,e)).type="skewY",e.matrix=[1,Math.tan(e.angle.getRadians()),0,1,0,0],e}return n}();var ir=function(){function i(t,e,r){var n=this;j(this,i),this.document=t,this.transforms=[];e=e,e=rt()(e=be(e)).call(e).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);S()(e).call(e,function(t){var e;"none"!==t&&(e=(t=w((e=t).split("("),2))[0],t=t[1],t=(e=w([rt()(e).call(e),rt()(t).call(t).replace(")","")],2))[0],e=e[1],void 0!==(t=i.transformTypes[t])&&n.transforms.push(new t(n.document,e,r)))})}return F(i,[{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=w(e.getStyle("transform-origin",!1,!0).split(),2),e=n[0],n=n[1],n=[e,void 0===n?e:n];return r.hasValue()?new i(t,r.getString(),n):null}}]),i}();ir.transformTypes={translate:q,rotate:G,scale:Z,matrix:Je,skewX:J,skewY:et};var or=function(){function s(r,t){var e,n,i,o=this,a=2<arguments.length&&void 0!==arguments[2]&&arguments[2];j(this,s),this.document=r,this.node=t,this.captureTextNodes=a,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],t&&1===t.nodeType&&(S()(e=At()(t.attributes)).call(e,function(t){var e,e=(e=t.nodeName,Se.test(e)?e.toLowerCase():e);o.attributes[e]=new Ue(r,e,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&(i=d()(n=this.getAttribute("style").getString().split(";")).call(n,function(t){return rt()(t).call(t)}),S()(i).call(i,function(t){var e;t&&(e=(t=w(d()(e=t.split(":")).call(e,function(t){return rt()(t).call(t)}),2))[0],t=t[1],o.styles[e]=new Ue(r,e,t))})),n=r.definitions,(i=this.getAttribute("id")).hasValue()&&(n[i.getValue()]||(n[i.getValue()]=this)),S()(t=At()(t.childNodes)).call(t,function(t){1===t.nodeType?o.addChild(t):!a||3!==t.nodeType&&4!==t.nodeType||0<(t=r.createTextNode(t)).getText().length&&o.addChild(t)}))}return F(s,[{key:"getAttribute",value:function(t){var e=this.attributes[t];if(e||!(1<arguments.length&&void 0!==arguments[1]&&arguments[1]))return e||Ue.empty(this.document);e=new Ue(this.document,t,"");return this.attributes[t]=e}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return Ue.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(i&&i.hasValue())return this.styles[t]=i;if(!r){r=this.parent;if(r){r=r.getStyle(t);if(r&&r.hasValue())return r}}if(e){e=new Ue(this.document,t,"");return this.styles[t]=e}return n||Ue.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=ir.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){var t;S()(t=this.children).call(t,function(t){t.render(e)})}},{key:"addChild",value:function(t){var e=t instanceof s?t:this.document.createElement(t);e.parent=this,wt()(t=s.ignoreChildTypes).call(t,e.type)||this.children.push(e)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"==typeof t.matches)return t.matches(e);var t=t.getAttribute("class");return!(!t||""===t)&&xt()(t=t.split(" ")).call(t,function(t){if(".".concat(t)===e)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if("@"!==t[0]&&this.matchesSelector(t)){var i=r[t],o=n[t];if(i)for(var a in i){var s=this.stylesSpecificity[a];(s=void 0===s?"000":s)<=o&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}}},{key:"removeStyles",value:function(i,t){return X()(t).call(t,function(t,e){var r=i.getStyle(e);if(!r.hasValue())return t;var n=r.getString();return r.setValue(""),H()(r=[]).call(r,dt(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){S()(t).call(t,function(t){var e=w(t,2),t=e[0],e=e[1];r.getStyle(t,!0).setValue(e)})}}]),s}();function ar(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}or.ignoreChildTypes=["title"];var sr=function(){lt(i,or);var n=ar(i);function i(t,e,r){return j(this,i),n.call(this,t,e,r)}return i}();function ur(t){t=rt()(t).call(t);return/^('|")/.test(t)?t:'"'.concat(t,'"')}var cr=function(){function l(t,e,r,n,i,o){j(this,l);o=o?"string"==typeof o?l.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}return F(l,[{key:"toString",value:function(){var t;return rt()(t=[function(t){if(!t)return"";var e=rt()(t).call(t).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=rt()(t).call(t).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:d()(t=rt()(t).call(t).split(",")).call(t,ur).join(","))].join(" ")).call(t)}}],[{key:"parse",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=1<arguments.length?arguments[1]:void 0,i="",o="",a="",s="",u="",t=rt()(t=be(t)).call(t).split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return S()(t).call(t,function(t){var e,r,n;switch(!0){case!c.fontStyle&&wt()(e=l.styles).call(e,t):"inherit"!==t&&(i=t),c.fontStyle=!0;break;case!c.fontVariant&&wt()(r=l.variants).call(r,t):"inherit"!==t&&(o=t),c.fontStyle=!0,c.fontVariant=!0;break;case!c.fontWeight&&wt()(r=l.weights).call(r,t):"inherit"!==t&&(a=t),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:"inherit"!==t&&(n=w(t.split("/"),1),s=n[0]),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:"inherit"!==t&&(u+=t)}}),new l(i,o,a,s,u,e)}}]),l}();cr.styles="normal|italic|oblique|inherit",cr.variants="normal|small-caps|inherit",cr.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var lr=function(){function i(){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;j(this,i),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}return F(i,[{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,s=6*e-12*r+6*n,u=-3*e+9*r-9*n+3*i,c=3*r-3*e;0!=u?(o=Math.pow(s,2)-4*c*u)<0||(0<(a=(-s+Math.sqrt(o))/(2*u))&&a<1&&(t?this.addX(this.sumCubic(a,e,r,n,i)):this.addY(this.sumCubic(a,e,r,n,i))),0<(u=(-s-Math.sqrt(o))/(2*u))&&u<1&&(t?this.addX(this.sumCubic(u,e,r,n,i)):this.addY(this.sumCubic(u,e,r,n,i)))):0==s||0<(s=-c/s)&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i)))}},{key:"addBezierCurve",value:function(t,e,r,n,i,o,a,s){this.addPoint(t,e),this.addPoint(a,s),this.bezierCurveAdd(!0,t,r,i,a),this.bezierCurveAdd(!1,e,n,o,s)}},{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}}]),i}();function hr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var fr=function(){lt(r,or);var e=hr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return F(r,[{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,s,u,c,l,h,f=1<arguments.length&&void 0!==arguments[1]&&arguments[1];f||(r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),h=this.getStyle("stroke-opacity"),r.isUrlDefinition()?(e=r.getFillStyleDefinition(this,n))&&(t.fillStyle=e):r.hasValue()&&("currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor()),"inherit"!==(r=r.getColor())&&(t.fillStyle="none"===r?"rgba(0,0,0,0)":r)),n.hasValue()&&(n=new Ue(this.document,"fill",t.fillStyle).addOpacity(n).getColor(),t.fillStyle=n),i.isUrlDefinition()?(s=i.getFillStyleDefinition(this,h))&&(t.strokeStyle=s):i.hasValue()&&("currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor()),"inherit"!==(o=i.getString())&&(t.strokeStyle="none"===o?"rgba(0,0,0,0)":o)),h.hasValue()&&(a=new Ue(this.document,"stroke",t.strokeStyle).addOpacity(h).getString(),t.strokeStyle=a),(s=this.getStyle("stroke-width")).hasValue()&&(c=s.getPixels(),t.lineWidth=c||Re),i=this.getStyle("stroke-linecap"),o=this.getStyle("stroke-linejoin"),h=this.getStyle("stroke-miterlimit"),a=this.getStyle("paint-order"),s=this.getStyle("stroke-dasharray"),c=this.getStyle("stroke-dashoffset"),i.hasValue()&&(t.lineCap=i.getString()),o.hasValue()&&(t.lineJoin=o.getString()),h.hasValue()&&(t.miterLimit=h.getNumber()),a.hasValue()&&(t.paintOrder=a.getValue()),s.hasValue()&&"none"!==s.getString()&&(u=we(s.getString()),void 0!==t.setLineDash?t.setLineDash(u):void 0!==t.webkitLineDash?t.webkitLineDash=u:void 0===t.mozDash||1===u.length&&0===u[0]||(t.mozDash=u),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&&(h=this.getStyle("font"),a=this.getStyle("font-style"),s=this.getStyle("font-variant"),u=this.getStyle("font-weight"),c=this.getStyle("font-size"),l=this.getStyle("font-family"),h=new cr(a.getString(),s.getString(),u.getString(),c.hasValue()?"".concat(c.getPixels(!0),"px"):"",l.getString(),cr.parse(h.getString(),t.font)),a.setValue(h.fontStyle),s.setValue(h.fontVariant),u.setValue(h.fontWeight),c.setValue(h.fontSize),l.setValue(h.fontFamily),t.font=h.toString(),c.isPixels()&&(this.document.emSize=c.getPixels(),this.modifiedEmSizeStack=!0)),f||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Et(vt(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}();function pr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var yr=function(){lt(i,fr);var n=pr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="text",r.x=0,r.y=0,r.measureCache=-1,r}return F(i,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];Et(vt(i.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(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(r){var t,n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(r);var i=null;return S()(t=this.children).call(t,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=cr.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new lr(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o=e[r],a=null;return t.isArabic?(n=e.length,i=e[r-1],e=e[r+1],void 0!==t.glyphs[o]&&((a=t.glyphs[o][0<r&&" "!==i&&(r===n-1||" "===e)?"initial":0<r&&" "!==i&&r<n-2&&" "!==e?"medial":(0===r||" "===i)&&r<n-2&&" "!==e?"terminal":"isolated"])||"glyph"!==t.glyphs[o].type||(a=t.glyphs[o]))):a=t.glyphs[o],a=a||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var e=t||this.node,r=At()(e.parentNode.childNodes),t=Ot()(r).call(r,e),r=r.length-1,e=be(e.value||e.text||e.textContent||"");return 0===t&&(e=e.replace(/^[\n \t]+/,"")),e=t===r?e.replace(/[\n \t]+$/,""):e}},{key:"renderChildren",value:function(r){var t,n=this;"text"===this.type?(this.initializeCoordinates(r),S()(t=this.children).call(t,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,e=cr.parse(e.ctx.font),a=r.getStyle("font-size").getNumber(e.fontSize),s=r.getStyle("font-style").getString(e.fontStyle),u=a/o,c=i.isRTL?Tt()(g=n.split("")).call(g).join(""):n,l=we(r.getAttribute("dx").getString()),h=c.length,f=0;f<h;f++){var p=this.getGlyph(i,c,f);t.translate(this.x,this.y),t.scale(u,-u);var y=t.lineWidth;t.lineWidth=t.lineWidth*o/a,"italic"===s&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===s&&t.transform(1,0,-.4,1,0,0),t.lineWidth=y,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=a*(p.horizAdvX||i.horizAdvX)/o,void 0===l[f]||isNaN(l[f])||(this.x+=l[f])}else{var g=this.x,r=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,g,r),t.fillStyle&&t.fillText(n,g,r)):(t.fillStyle&&t.fillText(n,g,r),t.strokeStyle&&t.strokeText(n,g,r))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"===n)return 0;for(var i=e.children,o=i.length,a=null,s=0,u=r;u<o&&(a=i[u],!(r<u&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));u++)s+=a.measureTextRecursive(t);return-1*("end"===n?s:s/2)}},{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,a=i.getAttribute("x"),s=i.getAttribute("y"),u=i.getAttribute("dx"),c=i.getAttribute("dy"),l=i.getAttribute("text-anchor").getString("start");return 0===n&&"textNode"!==i.type&&(a.hasValue()||a.setValue(e.getAttribute("x").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("y").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dx").getValue("0")),c.hasValue()||c.setValue(e.getAttribute("dy").getValue("0"))),a.hasValue()?(i.x=a.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==l&&(o=i.measureTextRecursive(t),i.x+=-1*("end"===l?o:o/2)),u.hasValue()&&(i.x+=u.getPixels("x"))):("start"!==l&&(o=i.measureTextRecursive(t),e.x+=-1*("end"===l?o:o/2)),u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),s.hasValue()?(i.y=s.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(e.y+=c.getPixels("y")),i.y=e.y),e.y=i.y,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e);if("function"!=typeof i.getBoundingBox)return null;var o=i.getBoundingBox(r);return o?(S()(e=i.children).call(e,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=this.adjustChildCoordinates(r,n,t,e);i.render(r),S()(e=i.children).call(e,function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureTextRecursive",value:function(r){var t;return X()(t=this.children).call(t,function(t,e){return t+e.measureTextRecursive(r)},this.measureText(r))}},{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,o=this.getFontSize(),a=n.isRTL?Tt()(i=e.split("")).call(i).join(""):e,s=we(r.getAttribute("dx").getString()),u=a.length,c=0,l=0;l<u;l++)c+=(this.getGlyph(n,a,l).horizAdvX||n.horizAdvX)*o/n.fontFace.unitsPerEm,void 0===s[l]||isNaN(s[l])||(c+=s[l]);return c}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}}]),i}();function gr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var vr=function(){lt(i,yr);var n=gr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="tspan",r.text=0<r.children.length?"":r.getTextFromNode(),r}return F(i,[{key:"getText",value:function(){return this.text}}]),i}();function dr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var mr=function(){lt(r,vr);var e=dr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}();function xr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var br=function(){lt(r,Jt);var e=xr(r);function r(t){return j(this,r),(t=e.call(this,t.replace(/[+-.]\s+/g,"-").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 F(r,[{key:"reset",value:function(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new $e(0,0),this.control=new $e(0,0),this.current=new $e(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 $e(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!==Jt.CURVE_TO&&t!==Jt.SMOOTH_CURVE_TO&&t!==Jt.QUAD_TO&&t!==Jt.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 $e(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}}]),r}();function wr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Sr=function(){lt(y,fr);var n=wr(y);function y(t,e,r){return j(this,y),(r=n.call(this,t,e,r)).type="path",r.pathParser=null,r.pathParser=new br(r.getAttribute("d").getString()),r}return F(y,[{key:"path",value:function(t){var e=this.pathParser,r=new lr;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.next().type){case br.MOVE_TO:this.pathM(t,r);break;case br.LINE_TO:this.pathL(t,r);break;case br.HORIZ_LINE_TO:this.pathH(t,r);break;case br.VERT_LINE_TO:this.pathV(t,r);break;case br.CURVE_TO:this.pathC(t,r);break;case br.SMOOTH_CURVE_TO:this.pathS(t,r);break;case br.QUAD_TO:this.pathQ(t,r);break;case br.SMOOTH_QUAD_TO:this.pathT(t,r);break;case br.ARC:this.pathA(t,r);break;case br.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 d()(e).call(e,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")?Mt()(t).call(t,e.getString()):Mt()(t).call(t)),""!==t.strokeStyle&&t.stroke();var r=this.getMarkers();if(r){var n,i=r.length-1,o=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(o.isUrlDefinition()&&(e=o.getDefinition(),o=(n=w(r[0],2))[0],n=n[1],e.render(t,o,n)),a.isUrlDefinition())for(var u=a.getDefinition(),c=1;c<i;c++){var l=w(r[c],2),h=l[0],l=l[1];u.render(t,h,l)}s.isUrlDefinition()&&(n=s.getDefinition(),s=(a=w(r[i],2))[0],a=a[1],n.render(t,s,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,s=n.sweepFlag,u=n.xAxisRotation,c=n.centp,l=n.a1,h=n.ad,f=1-s?1:-1,p=l+h/2*f,n=new $e(c.x+o*Math.cos(p),c.y+a*Math.sin(p));r.addMarkerAngle(n,p-f*Math.PI/2),r.addMarkerAngle(i,p-f*Math.PI),e.addPoint(i.x,i.y),!t||isNaN(l)||isNaN(h)||(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(u),t.scale(i,o),t.arc(0,0,e,l,l+h,Boolean(1-s)),t.scale(1/i,1/o),t.rotate(-u),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 $e((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 $e(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,s=r.sweepFlag,u=o*(Math.PI/180),c=t.getAsCurrentPoint(),r=new $e(Math.cos(u)*(e.x-c.x)/2+Math.sin(u)*(e.y-c.y)/2,-Math.sin(u)*(e.x-c.x)/2+Math.cos(u)*(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===s?-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 $e(t*n*r.y/i,t*-i*r.x/n),a=new $e((e.x+c.x)/2+Math.cos(u)*o.x-Math.sin(u)*o.y,(e.y+c.y)/2+Math.sin(u)*o.x+Math.cos(u)*o.y),t=De([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=De(e,r);return Ve(e,r)<=-1&&(o=Math.PI),{currentPoint:c,rX:n,rY:i,sweepFlag:s,xAxisRotation:u,centp:a,a1:t,ad:o=1<=Ve(e,r)?0:o}}},{key:"pathZ",value:function(t){t.current=t.start}}]),y}();function Ar(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var kr=function(){lt(p,fr);var e=Ar(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return F(p,[{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"),(f=new Ue(e,"fontSize",cr.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=f.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,s=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 u=this.getAttribute("refX"),c=this.getAttribute("refY"),l=this.getAttribute("viewBox"),h=l.hasValue()?we(l.getString()):null,n=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),i=0,f=0,o=0,l=0;h&&(i=h[0],f=h[1]),this.root||(a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y"),"marker"===this.type&&(o=i,l=f,f=i=0)),r.viewPort.setCurrent(a,s),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Et(vt(p.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(a=h[2],s=h[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:a,height:r.viewPort.height,desiredHeight:s,minX:i,minY:f,refX:u.getValue(),refY:c.getValue(),clip:n,clipX:o,clipY:l}),h&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(a,s))}},{key:"clearContext",value:function(t){Et(vt(p.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"),s=n.getNumber(0),u=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(H()(s="0 0 ".concat(s||t," ")).call(s,u||e)),a.hasValue()&&(u=this.getStyle("width"),a=this.getStyle("height"),u.hasValue()&&u.setValue("".concat(t,"px")),a.hasValue()&&a.setValue("".concat(e,"px")))}}]),p}();function Tr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Or=function(){lt(r,Sr);var e=Tr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="rect",t}return F(r,[{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"),s=o.getPixels("x"),u=a.getPixels("y");return o.hasValue()&&!a.hasValue()&&(u=s),a.hasValue()&&!o.hasValue()&&(s=u),s=Math.min(s,n/2),u=Math.min(u,i/2),t&&(o=(Math.sqrt(2)-1)/3*4,t.beginPath(),0<i&&0<n&&(t.moveTo(e+s,r),t.lineTo(e+n-s,r),t.bezierCurveTo(e+n-s+o*s,r,e+n,r+u-o*u,e+n,r+u),t.lineTo(e+n,r+i-u),t.bezierCurveTo(e+n,r+i-u+o*u,e+n-s+o*s,r+i,e+n-s,r+i),t.lineTo(e+s,r+i),t.bezierCurveTo(e+s-o*s,r+i,e,r+i-u+o*u,e,r+i-u),t.lineTo(e,r+u),t.bezierCurveTo(e,r+u-o*u,e+s-o*s,r,e+s,r),t.closePath())),new lr(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}();function Pr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}nt=function(){lt(r,Sr);var e=Pr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="circle",t}return F(r,[{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 lr(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Cr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}ot=function(){lt(r,Sr);var e=Cr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return F(r,[{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 lr(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Er(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}mt=function(){lt(r,Sr);var e=Er(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="line",t}return F(r,[{key:"getPoints",value:function(){return[new $e(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new $e(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=w(this.getPoints(),2),r=e[0],n=r.x,i=r.y,r=e[1],e=r.x,r=r.y;return t&&(t.beginPath(),t.moveTo(n,i),t.lineTo(e,r)),new lr(n,i,e,r)}},{key:"getMarkers",value:function(){var t=w(this.getPoints(),2),e=t[0],r=t[1],t=e.angleTo(r);return[[e,t],[r,t]]}}]),r}();function Mr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Nr=function(){lt(i,Sr);var n=Mr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="polyline",r.points=[],r.points=$e.parsePath(r.getAttribute("points").getString()),r}return F(i,[{key:"path",value:function(r){var t=this.points,e=w(t,1)[0],n=e.x,e=e.y,i=new lr(n,e);return r&&(r.beginPath(),r.moveTo(n,e)),S()(t).call(t,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 S()(r).call(r,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}}]),i}();function Rr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}bt=function(){lt(i,Nr);var e=Rr(i);function i(){var t;return j(this,i),(t=e.apply(this,arguments)).type="polygon",t}return F(i,[{key:"path",value:function(t){var e=Et(vt(i.prototype),"path",this).call(this,t),r=w(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();function _r(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}St=function(){lt(r,or);var e=_r(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="pattern",t}return F(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new kr(this.document,null);o.attributes.viewBox=new Ue(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new Ue(this.document,"width","".concat(n,"px")),o.attributes.height=new Ue(this.document,"height","".concat(i,"px")),o.attributes.transform=new Ue(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var a=this.document.createCanvas(n,i),s=a.getContext("2d"),n=this.getAttribute("x"),i=this.getAttribute("y");n.hasValue()&&i.hasValue()&&s.translate(n.getPixels("x",!0),i.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:ie()(this.styles,"fill-opacity");for(var u=-1;u<=1;u++)for(var c=-1;c<=1;c++)s.save(),o.attributes.x=new Ue(this.document,"x",u*a.width),o.attributes.y=new Ue(this.document,"y",c*a.height),o.render(s),s.restore();return t.createPattern(a,"repeat")}}]),r}();function Vr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}kt=function(){lt(r,or);var e=Vr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="marker",t}return F(r,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,i=e.y,o=this.getAttribute("orient").getValue("auto"),a=this.getAttribute("markerUnits").getValue("strokeWidth"),t.translate(n,i),"auto"===o&&t.rotate(r),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save(),(e=new kr(this.document,null)).type=this.type,e.attributes.viewBox=new Ue(this.document,"viewBox",this.getAttribute("viewBox").getValue()),e.attributes.refX=new Ue(this.document,"refX",this.getAttribute("refX").getValue()),e.attributes.refY=new Ue(this.document,"refY",this.getAttribute("refY").getValue()),e.attributes.width=new Ue(this.document,"width",this.getAttribute("markerWidth").getValue()),e.attributes.height=new Ue(this.document,"height",this.getAttribute("markerHeight").getValue()),e.attributes.overflow=new Ue(this.document,"overflow",this.getAttribute("overflow").getValue()),e.attributes.fill=new Ue(this.document,"fill",this.getAttribute("fill").getColor("black")),e.attributes.stroke=new Ue(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))}}]),r}();function Dr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}t=function(){lt(r,or);var e=Dr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="defs",t}return F(r,[{key:"render",value:function(){}}]),r}();function Lr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Ir=function(){lt(r,fr);var e=Lr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="g",t}return F(r,[{key:"getBoundingBox",value:function(e){var t,r=new lr;return S()(t=this.children).call(t,function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),r}();function jr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var zr=function(){lt(o,or);var i=jr(o);function o(t,e,r){j(this,o),(e=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],e.stops=[];var r=pt(e),n=r.stops,r=r.children;return S()(r).call(r,function(t){"stop"===t.type&&n.push(t)}),e}return F(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(S()(o).call(o,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=w(t.viewPort.viewPorts,1)[0],t=new Or(i,null);t.attributes.x=new Ue(i,"x",-e/3),t.attributes.y=new Ue(i,"y",-e/3),t.attributes.width=new Ue(i,"width",e),t.attributes.height=new Ue(i,"height",e);e=new Ir(i,null);e.attributes.transform=new Ue(i,"transform",this.getAttribute("gradientTransform").getValue()),e.children=[t];t=new kr(i,null);t.attributes.x=new Ue(i,"x",0),t.attributes.y=new Ue(i,"y",0),t.attributes.width=new Ue(i,"width",o.width),t.attributes.height=new Ue(i,"height",o.height),t.children=[e];i=i.createCanvas(o.width,o.height),o=i.getContext("2d");return o.fillStyle=a,t.render(o),o.createPattern(i,"no-repeat")}return a}},{key:"inheritStopContainer",value:function(e){var t,r=this;S()(t=this.attributesToInherit).call(t,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 Ue(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();function Fr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}r=function(){lt(i,zr);var n=Fr(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return F(i,[{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)}}]),i}();function Br(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}n=function(){lt(i,zr);var n=Br(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return F(i,[{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)}}]),i}();function Hr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}p=function(){lt(o,or);var i=Hr(o);function o(t,e,r){var n;j(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}();function Ur(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var Xr=function(){lt(i,or);var n=Ur(i);function i(t,e,r){return j(this,i),(r=n.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(pt(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=r.getAttribute("values"),oe()(r).hasValue()&&oe()(r).setValue(oe()(r).getString().split(";")),r}return F(i,[{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),H()(r="".concat(r)).call(r,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=H()(t="".concat(t,"(")).call(t,e,")")),r.setValue(e),n=!0),n}},{key:"getProgress",value:function(){var t,e,r,n=this.document,i=oe()(this),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 Ue(n,"from",s()(i.getValue()[e])),o.to=new Ue(n,"to",s()(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),i}();function $r(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}g=function(){lt(r,Xr);var e=$r(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return F(r,[{key:"calcValue",value:function(){var t=this.getProgress(),e=t.progress,r=t.from,n=t.to,i=new(it())(r.getColor()),t=new(it())(n.getColor());if(i.ok&&t.ok){var 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 H()(n=H()(r="rgb(".concat(ae()(r,10),", ")).call(r,ae()(n,10),", ")).call(n,ae()(e,10),")")}return this.getAttribute("from").getColor()}}]),r}();function Yr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}m=function(){lt(r,Xr);var e=Yr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return F(r,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=we(e.getString()),n=we(t.getString());return d()(e).call(e,function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),r}();function qr(t,e){var r;if(void 0===ce()||null==l()(t)){if(ue()(t)||(r=function(t,e){if(t){if("string"==typeof t)return Wr(t,e);var r=le()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?At()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wr(t,e):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=se()(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}}}}function Wr(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 Gr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}b=function(){lt(h,or);var l=Gr(h);function h(t,e,r){var n;j(this,h),(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=qr(pt(n).children);try{for(a.s();!(i=a.n()).done;){var s=i.value;switch(s.type){case"font-face":var u=(n.fontFace=s).getStyle("font-family");u.hasValue()&&(o[u.getString()]=pt(n));break;case"missing-glyph":n.missingGlyph=s;break;case"glyph":var c=s;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 F(h,[{key:"render",value:function(){}}]),h}();function Qr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}A=function(){lt(i,or);var n=Qr(i);function i(t,e,r){return j(this,i),(r=n.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 i}();function Zr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}T=function(){lt(r,Sr);var e=Zr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}();function Kr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}P=function(){lt(i,Sr);var n=Kr(i);function i(t,e,r){return j(this,i),(r=n.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 i}();function Jr(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}E=function(){lt(r,yr);var e=Jr(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="tref",t}return F(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),r}();function tn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}N=function(){lt(o,yr);var i=tn(o);function o(t,e,r){j(this,o),(t=i.call(this,t,e,r)).type="a";var r=e.childNodes,e=r[0],n=0<r.length&&W()(n=At()(r)).call(n,function(t){return 3===t.nodeType});return t.hasText=n,t.text=n?t.getTextFromNode(e):"",t}return F(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(Et(vt(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,i=this.y,r=n.screen.mouse,n=new Ue(n,"fontSize",cr.parse(n.ctx.font).fontSize),r.isWorking()&&r.checkBoundingBox(this,new lr(e,i-n.getPixels("y"),e+this.measureText(t),i))):0<this.children.length&&((i=new Ir(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}();function en(t,e){var r;if(void 0===ce()||null==l()(t)){if(ue()(t)||(r=function(t,e){if(t){if("string"==typeof t)return rn(t,e);var r=le()(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Map"===(r="Object"===r&&t.constructor?t.constructor.name:r)||"Set"===r?At()(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?rn(t,e):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=se()(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}}}}function rn(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 nn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function on(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=nn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=nn(Object(n))).call(r,function(t){y()(e,t,k()(n,t))})}return e}function an(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}B=function(){lt(i,yr);var n=an(i);function i(t,e,r){j(this,i),(e=n.call(this,t,e,r)).type="textPath",e.textWidth=0,e.textHeight=0,e.pathLength=-1,e.glyphInfo=null,e.letterSpacingCache=[],e.measuresCache=new(he())([["",0]]);r=e.getHrefAttribute().getDefinition();return e.text=e.getTextFromNode(),e.dataArray=e.parsePathData(r),e}return F(i,[{key:"getText",value:function(){return this.text}},{key:"path",value:function(p){var t=this.dataArray;p&&p.beginPath(),S()(t).call(t,function(t){var e=t.type,r=t.points;switch(e){case br.LINE_TO:p&&p.lineTo(r[0],r[1]);break;case br.MOVE_TO:p&&p.moveTo(r[0],r[1]);break;case br.CURVE_TO:p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case br.QUAD_TO:p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case br.ARC:var n=w(r,8),i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],h=n[7],f=s<a?a:s,n=s<a?1:a/s,a=s<a?s/a:1;p&&(p.translate(i,o),p.rotate(l),p.scale(n,a),p.arc(0,0,f,u,u+c,Boolean(1-h)),p.scale(1/n,1/a),p.rotate(-l),p.translate(-i,-o));break;case br.CLOSE_PATH:p&&p.closePath()}})}},{key:"renderChildren",value:function(o){this.setTextData(o),o.save();var a=this.parent.getStyle("text-decoration").getString(),s=this.getFontSize(),t=this.glyphInfo,e=o.fillStyle;"underline"===a&&o.beginPath(),S()(t).call(t,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+s/8),o.lineTo(n.x,n.y+s/5))}),"underline"===a&&(o.lineWidth=s/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,s,u){t=this.measureText(t,s);" "===s&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<u&&(o+=this.getLetterSpacingAt(u));e=this.textHeight/20,n=this.getEquidistantPointOnPath(o,e,0),r=this.getEquidistantPointOnPath(o+t,e,0),i={p0:n,p1:r},u=n&&r?Math.atan2(r.y-n.y,r.x-n.x):0;return a&&(e=Math.cos(Math.PI/2+u)*a,a=Math.cos(-u)*a,i.p0=on(on({},n),{},{x:n.x+e,y:n.y+a}),i.p1=on(on({},r),{},{x:r.x+e,y:r.y+a})),{offset:o+=t,segment:i,rotation:u}}},{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(""),s=t.split(" ").length-1,e=d()(n=this.parent.getAttribute("dx").split()).call(n,function(t){return t.getPixels("x")}),u=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 h=[],f=t.length;this.letterSpacingCache=h;for(var p=0;p<f;p++)h.push(void 0!==e[p]?e[p]:l);var n=X()(h).call(h,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 g=this.getPathLength(),t=this.getStyle("startOffset").getNumber(0)*g,v="end"!==c&&"right"!==c?"middle"!==c&&"center"!==c?0:-y/2:-y;v+=t,S()(a).call(a,function(t,e){var r=o.findSegmentToFitChar(i,c,y,g,s,v,u,t,e),n=r.offset,t=r.segment,r=r.rotation;v=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,s=[];switch(n.type){case br.MOVE_TO:this.pathM(r,s);break;case br.LINE_TO:a=this.pathL(r,s);break;case br.HORIZ_LINE_TO:a=this.pathH(r,s);break;case br.VERT_LINE_TO:a=this.pathV(r,s);break;case br.CURVE_TO:this.pathC(r,s);break;case br.SMOOTH_CURVE_TO:a=this.pathS(r,s);break;case br.QUAD_TO:this.pathQ(r,s);break;case br.SMOOTH_QUAD_TO:a=this.pathT(r,s);break;case br.ARC:s=this.pathA(r);break;case br.CLOSE_PATH:Sr.pathZ(r)}n.type!==br.CLOSE_PATH?e.push({type:a,points:s,start:{x:i,y:o},pathLength:this.calcLength(i,o,a,s)}):e.push({type:br.CLOSE_PATH,points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=Sr.pathM(t).point,t=r.x,r=r.y;e.push(t,r)}},{key:"pathL",value:function(t,e){var r=Sr.pathL(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathH",value:function(t,e){var r=Sr.pathH(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathV",value:function(t,e){var r=Sr.pathV(t).point,t=r.x,r=r.y;return e.push(t,r),br.LINE_TO}},{key:"pathC",value:function(t,e){var r=Sr.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=Sr.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),br.CURVE_TO}},{key:"pathQ",value:function(t,e){var r=Sr.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=Sr.pathT(t),t=r.controlPoint,r=r.currentPoint;return e.push(t.x,t.y,r.x,r.y),br.QUAD_TO}},{key:"pathA",value:function(t){var e=Sr.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,s=0;switch(r){case br.LINE_TO:return this.getLineLength(t,e,n[0],n[1]);case br.CURVE_TO:for(o=this.getPointOnCubicBezier(i=0,t,e,n[0],n[1],n[2],n[3],n[4],n[5]),s=.01;s<=1;s+=.01)a=this.getPointOnCubicBezier(s,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 br.QUAD_TO:for(o=this.getPointOnQuadraticBezier(i=0,t,e,n[0],n[1],n[2],n[3]),s=.01;s<=1;s+=.01)a=this.getPointOnQuadraticBezier(s,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 br.ARC:var i=0,u=n[4],c=n[5],l=n[4]+c,h=Math.PI/180;if(Math.abs(u-l)<h&&(h=Math.abs(u-l)),o=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],u,0),c<0)for(s=u-h;l<s;s-=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,0),i+=this.getLineLength(o.x,o.y,a.x,a.y),o=a;else for(s=u+h;s<l;s+=h)a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],s,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,s=(i-r)/(n-e+Re),u=Math.sqrt(t*t/(1+s*s));n<e&&(u*=-1);var c=s*u,l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+Re)==s)l={x:o+u,y:a+c};else{var h=0,f=0,p=this.getLineLength(e,r,n,i);if(p<Re)return null;var y=(o-e)*(n-e)+(a-r)*(i-r),r=this.getLineLength(o,a,h=e+(y/=p*p)*(n-e),f=r+y*(i-r)),r=Math.sqrt(t*t-r*r),u=Math.sqrt(r*r/(1+s*s));n<e&&(u*=-1),l={x:h+u,y:f+(c=s*u)}}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=en(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 s=t-r,u=0;switch(a.type){case br.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case br.ARC:var c=a.points[4],l=a.points[5],h=a.points[4]+l,u=c+s/a.pathLength*l;if(l<0&&u<h||0<=l&&h<u)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],u,a.points[6]);break;case br.CURVE_TO:1<(u=s/a.pathLength)&&(u=1),n=this.getPointOnCubicBezier(u,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 br.QUAD_TO:1<(u=s/a.pathLength)&&(u=1),n=this.getPointOnQuadraticBezier(u,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(){var t;return-1===this.pathLength&&(this.pathLength=X()(t=this.dataArray).call(t,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,s,u){return{x:s*Le(t)+o*Ie(t)+n*je(t)+e*ze(t),y:u*Le(t)+a*Ie(t)+i*je(t)+r*ze(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*Fe(t)+n*Be(t)+e*He(t),y:a*Fe(t)+i*Be(t)+r*He(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 s=this.getPointOnPath(a),u=this.getPointOnPath(a+n);s&&u&&i<=(o+=this.getLineLength(s.x,s.y,u.x,u.y))&&(this.equidistantCache.points.push({x:s.x,y:s.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}}]),i}();function sn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}U=function(){lt(o,fr);var e,r,i=sn(o);function o(t,e,r){var n;j(this,o),(n=i.call(this,t,e,r)).type="image",n.loaded=!1;e=n.getHrefAttribute().getString();if(!e)return yt(n);r=/\.svg$/.test(e);return t.images.push(pt(n)),r?n.loadSvg(e):n.loadImage(e),n.isSvg=r,n}return F(o,[{key:"loadImage",value:(r=D(R().mark(function t(e){var r;return R().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);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=D(R().mark(function t(e){var r;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:r=t.sent,this.image=r,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");n&&r&&a&&s&&(t.save(),this.isSvg?e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:s}).render():(r=this.image,t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:r.width,height:s,desiredHeight:r.height}),this.loaded&&(void 0!==r.complete&&!r.complete||t.drawImage(r,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 lr(t,e,t+r,e+n)}}]),o}();function un(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}var $=function(){lt(r,fr);var e=un(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="symbol",t}return F(r,[{key:"render",value:function(t){}}]),r}(),cn=function(){function e(t){j(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}var r;return F(e,[{key:"load",value:(r=D(R().mark(function t(e,r){var n,i;return R().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"),S()(i=At()(i)).call(i,function(t){t=n.createElement(t);n.definitions[e]=t}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(0);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return r.apply(this,arguments)})}]),e}();function ln(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}q=function(){lt(n,or);var r=ln(n);function n(u,t,e){j(this,n),(e=r.call(this,u,t,e)).type="style";t=be(d()(t=At()(t.childNodes)).call(t,function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return S()(t).call(t,function(t){var s,e=rt()(t).call(t);e&&(e=(t=e.split("{"))[0].split(","),s=t[1].split(";"),S()(e).call(e,function(t){var n,e,r,i,o,a=rt()(t).call(t);a&&(n=u.styles[a]||{},S()(s).call(s,function(t){var e=Ot()(t).call(t,":"),r=rt()(r=t.substr(0,e)).call(r),e=rt()(e=t.substr(e+1,t.length-e)).call(e);r&&e&&(n[r]=new Ue(u,r,e))}),u.styles[a]=n,u.stylesSpecificity[a]=(r=[0,0,0],i=(e=w(Ne(i=(e=a).replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),ke),2))[0],t=e[1],r[1]+=t,e=w(Ne(i,Te),2),i=e[0],t=e[1],r[0]+=t,e=w(Ne(i,Oe),2),i=e[0],t=e[1],r[1]+=t,e=w(Ne(i,Pe),2),i=e[0],t=e[1],r[2]+=t,e=w(Ne(i,Ce),2),i=e[0],t=e[1],r[1]+=t,e=w(Ne(i,Ee),2),i=e[0],t=e[1],r[1]+=t,i=(e=w(Ne(i=i.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),Me),2))[0],t=e[1],r[2]+=t,r.join("")),"@font-face"===a&&(o=n["font-family"].getString().replace(/"|'/g,""),a=n.src.getString().split(","),S()(a).call(a,function(t){0<Ot()(t).call(t,'format("svg")')&&((t=Ae(t))&&new cn(u).load(o,t))})))}))}),e}return n}();function hn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}q.parseExternalUrl=Ae;G=function(){lt(n,fr);var e=hn(n);function n(){var t;return j(this,n),(t=e.apply(this,arguments)).type="use",t}return F(n,[{key:"setContext",value:function(t){Et(vt(n.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 kr(n,null)).attributes.viewBox=new Ue(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new Ue(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new Ue(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new Ue(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 Ue(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new Ue(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 ir.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),n}();function fn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function pn(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function yn(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function gn(t,e,r){return t[e]*r}function vn(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var dn=function(){lt(a,or);var o=fn(a);function a(t,e,r){j(this,a),(r=o.call(this,t,e,r)).type="feColorMatrix";var n=we(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=[vn(i,.213,.787,-.213),vn(i,.715,-.715,-.715),vn(i,.072,-.072,.928),0,0,vn(i,.213,-.213,.143),vn(i,.715,.285,.14),vn(i,.072,-.072,-.283),0,0,vn(i,.213,-.213,-.787),vn(i,.715,-.715,.715),vn(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 F(a,[{key:"apply",value:function(t,e,r,n,i){for(var o=this.includeOpacity,a=this.matrix,s=t.getImageData(0,0,n,i),u=0;u<i;u++)for(var c=0;c<n;c++){var l=pn(s.data,c,u,n,0,0),h=pn(s.data,c,u,n,0,1),f=pn(s.data,c,u,n,0,2),p=pn(s.data,c,u,n,0,3),y=gn(a,0,l)+gn(a,1,h)+gn(a,2,f)+gn(a,3,p)+gn(a,4,1),g=gn(a,5,l)+gn(a,6,h)+gn(a,7,f)+gn(a,8,p)+gn(a,9,1),v=gn(a,10,l)+gn(a,11,h)+gn(a,12,f)+gn(a,13,p)+gn(a,14,1),f=gn(a,15,l)+gn(a,16,h)+gn(a,17,f)+gn(a,18,p)+gn(a,19,1);o&&(y=g=v=0,f*=p/255),yn(s.data,c,u,n,0,0,y),yn(s.data,c,u,n,0,1,g),yn(s.data,c,u,n,0,2,v),yn(s.data,c,u,n,0,3,f)}t.clearRect(0,0,n,i),t.putImageData(s,0,0)}}]),a}();function mn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}Z=function(){lt(p,or);var e=mn(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="mask",t}return F(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"),s=this.getStyle("height").getPixels("y");a||s||(r=new lr,S()(f=this.children).call(f,function(t){r.addBoundingBox(t.getBoundingBox(e))}),i=Math.floor(r.x1),o=Math.floor(r.y1),a=Math.floor(r.width),s=Math.floor(r.height));var u=this.removeStyles(t,p.ignoreStyles),c=n.createCanvas(i+a,o+s),l=c.getContext("2d");n.screen.setDefaults(l),this.renderChildren(l),new dn(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+s);var h=n.createCanvas(i+a,o+s),f=h.getContext("2d");n.screen.setDefaults(f),t.render(f),f.globalCompositeOperation="destination-in",f.fillStyle=l.createPattern(c,"no-repeat"),f.fillRect(0,0,i+a,o+s),e.fillStyle=f.createPattern(h,"no-repeat"),e.fillRect(0,0,i+a,o+s),this.restoreStyles(t,u)}},{key:"render",value:function(t){}}]),p}();function xn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}Z.ignoreStyles=["mask","transform","clip-path"];function bn(){}J=function(){lt(r,or);var e=xn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return F(r,[{key:"apply",value:function(r){var t,n=this.document,i=pe()(r),e=r.beginPath,o=r.closePath;i&&(i.beginPath=bn,i.closePath=bn),fe()(e,r,[]),S()(t=this.children).call(t,function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||ir.fromElement(n,t))&&e.apply(r),t.path(r),i&&(i.closePath=o),e&&e.unapply(r))}),fe()(o,r,[]),r.clip(),i&&(i.beginPath=e,i.closePath=o)}},{key:"render",value:function(t){}}]),r}();function wn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et=function(){lt(p,or);var e=wn(p);function p(){var t;return j(this,p),(t=e.apply(this,arguments)).type="filter",t}return F(p,[{key:"apply",value:function(t,e){var r,n,i,o,a,s,u,c,l=this.document,h=this.children,f=e.getBoundingBox(t);f&&(n=r=0,S()(h).call(h,function(t){t=t.extraFilterDistance||0;r=Math.max(r,t),n=Math.max(n,t)}),u=Math.floor(f.width),s=Math.floor(f.height),o=s+2*n,(i=u+2*r)<1||o<1||(a=Math.floor(f.x),s=Math.floor(f.y),u=this.removeStyles(e,p.ignoreStyles),f=l.createCanvas(i,o),c=f.getContext("2d"),l.screen.setDefaults(c),c.translate(-a+r,-s+n),e.render(c),S()(h).call(h,function(t){"function"==typeof t.apply&&t.apply(c,0,0,i,o)}),t.drawImage(f,0,0,i,o,a-r,s-n,i,o),this.restoreStyles(e,u)))}},{key:"render",value:function(t){}}]),p}();function Sn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function An(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function kn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function Tn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function On(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}function Pn(r){var n=function(){if("undefined"==typeof Reflect||!at())return!1;if(at().sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(at()(Date,[],function(){})),!0}catch(t){return!1}}();return function(){var t,e=vt(r);return yt(this,n?(t=vt(this).constructor,at()(e,arguments,t)):e.apply(this,arguments))}}et.ignoreStyles=["filter","transform","clip-path"];et={svg:kr,rect:Or,circle:nt,ellipse:ot,line:mt,polyline:Nr,polygon:bt,path:Sr,pattern:St,marker:kt,defs:t,linearGradient:r,radialGradient:n,stop:p,animate:Xr,animateColor:g,animateTransform:m,font:b,"font-face":A,"missing-glyph":T,glyph:P,text:yr,tspan:vr,tref:E,a:N,textPath:B,image:U,g:Ir,symbol:$,style:q,use:G,mask:Z,clipPath:J,filter:et,feDropShadow:function(){lt(i,or);var n=Sn(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="feDropShadow",r.addStylesFromStyleDefinition(),r}return F(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}(),feMorphology:function(){lt(r,or);var e=An(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return F(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feComposite:function(){lt(r,or);var e=kn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return F(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feColorMatrix:dn,feGaussianBlur:function(){lt(i,or);var n=Tn(i);function i(t,e,r){return j(this,i),(r=n.call(this,t,e,r)).type="feGaussianBlur",r.blurRadius=Math.floor(r.getAttribute("stdDeviation").getNumber()),r.extraFilterDistance=r.blurRadius,r}return F(i,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,s=o.window?o.window.document.body:null,t=t.canvas;t.id=o.getUniqueId(),s&&(t.style.display="none",s.appendChild(t)),me(t,e,r,n,i,a),s&&s.removeChild(t)}}]),i}(),title:function(){lt(r,or);var e=On(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(),desc:function(){lt(r,or);var e=Pn(r);function r(){var t;return j(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}()};function Cn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function En(){return(En=D(R().mark(function t(r){var e,n,i=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),e&&(n.crossOrigin="Anonymous"),t.abrupt("return",new(Q())(function(t,e){n.onload=function(){t(n)},n.onerror=function(){e()},n.src=r}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var Mn=function(){function a(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?a.createCanvas:r,r=e.createImage,r=void 0===r?a.createImage:r,e=e.anonymousCrossOrigin;j(this,a),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(K()(e=this.isImagesLoaded).call(e,this)),this.screen.wait(K()(e=this.isFontsLoaded).call(e,this))}return F(a,[{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(){var t;return W()(t=this.images).call(t,function(t){return t.loaded})}},{key:"isFontsLoaded",value:function(){var t;return W()(t=this.fonts).call(t,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=a.elementTypes[e];return new(void 0!==e?e:sr)(this,t)}},{key:"createTextNode",value:function(t){return new mr(this,t)}},{key:"setViewBox",value:function(t){this.screen.setViewBox(function(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=Cn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=Cn(Object(n))).call(r,function(t){y()(e,t,k()(n,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)}}]),a}();function Nn(e,t){var r,n=M()(e);return C()&&(r=C()(e),t&&(r=O()(r).call(r,function(t){return k()(e,t).enumerable})),n.push.apply(n,r)),n}function Rn(e){for(var t=1;t<arguments.length;t++){var r,n=null!=arguments[t]?arguments[t]:{};t%2?S()(r=Nn(Object(n),!0)).call(r,function(t){I(e,t,n[t])}):x()?v()(e,x()(n)):S()(r=Nn(Object(n))).call(r,function(t){y()(e,t,k()(n,t))})}return e}Mn.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},Mn.createImage=function(t){return En.apply(this,arguments)},Mn.elementTypes=et;et=function(){function a(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};j(this,a),this.parser=new Ke(r),this.screen=new Ge(t,r),this.options=r;r=new Mn(this,r),e=r.createDocumentElement(e);this.document=r,this.documentElement=e}var r,t;return F(a,[{key:"fork",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return a.from(t,e,Rn(Rn({},this.options),r))}},{key:"forkString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return a.fromString(t,e,Rn(Rn({},this.options),r))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(t=D(R().mark(function t(){var e,r=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(Rn({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 t.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,Rn(Rn({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:(r=D(R().mark(function t(e,r){var n,i,o=arguments;return R().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new Ke(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 a(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return r.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new a(t,new Ke(r).parseFromString(e),r)}}]),a}();const _n=et;let Vn='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',Dn=40,Ln=document,In,jn,zn,Fn,Bn,Hn;function Un(){In=1e4,jn=1e4,zn=1e4,Fn=1e4,Bn=0,Hn=0}function Xn(){var r=Ln.querySelectorAll(".box > grp, root");let e="";for(let e=0;e<r.length;e++){let t=r[e];var n=t.getBoundingClientRect(),i=t.offsetTop,o=i+n.height,a=t.offsetLeft,n=a+n.width;i<In&&(In=i),o>jn&&(jn=o),a<zn&&(zn=a),n>Fn&&(Fn=n)}for(let t=0;t<r.length;t++){var s=r[t];"ROOT"!==s.tagName&&(e+=function(t){let e=t.querySelectorAll("tpc"),r=t.offsetTop-In,n=t.offsetLeft-zn,o="",i=t.querySelector(".svg3rd");o+=`<g transform="translate(${n+Dn}, ${r+Dn})">`,o+=i?i.innerHTML:"";for(let t=0;t<e.length;t++){let i=e[t];var a=i.parentNode,s=i.nodeObj;if(!s.root){var u=i.getBoundingClientRect(),c=a.offsetTop,l=a.offsetLeft,h=getComputedStyle(i),a=getComputedStyle(a),f=l+parseInt(a.paddingLeft)+parseInt(h.paddingLeft),p=c+parseInt(a.paddingTop)+parseInt(h.paddingTop)+parseInt(h.fontSize);let t="";"0px"!=h.borderWidth&&(t=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${u.width}" height="${u.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`);let e="";"rgba(0, 0, 0, 0)"!=h.backgroundColor&&(e=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${u.width}" height="${u.height}" style="fill: ${h.backgroundColor};"></rect>`);let r="";if(s.tags&&s.tags.length){var y=i.querySelectorAll(".tags > span");for(let e=0;e<y.length;e++){let t=y[e];var g=t.getBoundingClientRect();r+=`<rect x="${f}" y="${p+4}" rx="5px" ry="5px" width="${g.width}" height="${g.height}" style="fill: #d6f0f8;"></rect>
|
|
2
|
-
<text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${
|
|
3
|
-
<tspan>${t.innerHTML}</tspan>`}}o+=`<g id="${
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(self,function(){return r={2087:(t,e,r)=>{t.exports=r(405)},405:e=>{e=function(a){"use strict";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(t){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 d?e:d,e=Object.create(e.prototype),n=new R(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===g){if("throw"===t)throw e;return C()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=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 y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}n=l(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,y;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y;{if(!n.done)return n;r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s)}r.delegate=null;return y}(r,a);if(r){if(r===y)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===f)throw u=g,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=p;r=l(i,o,a);if("normal"===r.type){if(u=a.done?g:h,r.arg!==y)return{value:r.arg,done:a.done}}else"throw"===r.type&&(u=g,a.method="throw",a.arg=r.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",g="completed",y={};function d(){}function v(){}function m(){}var e={},x=(o(e,n,function(){return this}),Object.getPrototypeOf),x=x&&x(x(A([]))),b=(x&&x!==t&&c.call(x,n)&&(e=x),m.prototype=d.prototype=Object.create(e));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){var o,t=l(a[t],a,r);if("throw"!==t.type)return(r=(o=t.arg).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 k(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function A(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return 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}).next=t}return{next:C}}function C(){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,R.prototype={constructor:R,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(P),!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,y):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),y},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),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,P(i)),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),y}},a}(e.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},3099:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},6077:(t,e,r)=>{var n=r(111);t.exports=function(t){if(n(t)||null===t)return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:(t,e,r)=>{var n=r(5112),i=r(30),r=r(3070),o=n("unscopables"),a=Array.prototype;null==a[o]&&r.f(a,o,{configurable:!0,value:i(null)}),t.exports=function(t){a[o][t]=!0}},1530:(t,e,r)=>{"use strict";var n=r(8710).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},5787:t=>{t.exports=function(t,e,r){if(t instanceof e)return t;throw TypeError("Incorrect "+(r?r+" ":"")+"invocation")}},9670:(t,e,r)=>{var n=r(111);t.exports=function(t){if(n(t))return t;throw TypeError(String(t)+" is not an object")}},1285:(t,e,r)=>{"use strict";var a=r(7908),u=r(1400),s=r(7466);t.exports=function(t){for(var e=a(this),r=s(e.length),n=arguments.length,i=u(1<n?arguments[1]:void 0,r),n=2<n?arguments[2]:void 0,o=void 0===n?r:u(n,r);i<o;)e[i++]=t;return e}},8533:(t,e,r)=>{"use strict";var n=r(2092).forEach,i=r(9341),r=r(9207),i=i("forEach"),r=r("forEach");t.exports=i&&r?[].forEach:function(t){return n(this,t,1<arguments.length?arguments[1]:void 0)}},8457:(t,e,r)=>{"use strict";var p=r(9974),g=r(7908),y=r(3411),d=r(7659),v=r(7466),m=r(6135),x=r(1246);t.exports=function(t){var e,r,n,i,o,a,u=g(t),t="function"==typeof this?this:Array,s=arguments.length,c=1<s?arguments[1]:void 0,l=void 0!==c,f=x(u),h=0;if(l&&(c=p(c,2<s?arguments[2]:void 0,2)),null==f||t==Array&&d(f))for(r=new t(e=v(u.length));h<e;h++)a=l?c(u[h],h):u[h],m(r,h,a);else for(o=(i=f.call(u)).next,r=new t;!(n=o.call(i)).done;h++)a=l?y(i,c,[n.value,h],!0):n.value,m(r,h,a);return r.length=h,r}},1318:(t,e,r)=>{function n(u){return function(t,e,r){var n,i=s(t),o=c(i.length),a=l(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}}var s=r(5656),c=r(7466),l=r(1400);t.exports={includes:n(!0),indexOf:n(!1)}},2092:(t,e,r)=>{function n(h){var p=1==h,g=2==h,y=3==h,d=4==h,v=6==h,m=5==h||v;return function(t,e,r,n){for(var i,o,a=w(t),u=b(a),s=x(e,r,3),c=S(u.length),l=0,e=n||k,f=p?e(t,c):g?e(t,0):void 0;l<c;l++)if((m||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:P.call(f,i)}else if(d)return!1;return v?-1:y||d?d:f}}var x=r(9974),b=r(8361),w=r(7908),S=r(7466),k=r(5417),P=[].push;t.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6)}},1194:(t,e,r)=>{var n=r(7293),i=r(5112),o=r(7392),a=i("species");t.exports=function(e){return 51<=o||!n(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},9341:(t,e,r)=>{"use strict";var n=r(7293);t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){throw 1},1)})}},9207:(t,e,r)=>{function a(t){throw t}var u=r(9781),s=r(7293),c=r(6656),l=Object.defineProperty,f={};t.exports=function(t,e){if(c(f,t))return f[t];var r=[][t],n=!!c(e=e||{},"ACCESSORS")&&e.ACCESSORS,i=c(e,0)?e[0]:a,o=c(e,1)?e[1]:void 0;return f[t]=!!r&&!s(function(){if(n&&!u)return!0;var t={length:-1};n?l(t,1,{enumerable:!0,get:a}):t[1]=1,r.call(t,i,o)})}},3671:(t,e,r)=>{function n(c){return function(t,e,r,n){l(e);var i=f(t),o=h(i),a=p(i.length),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}}var l=r(3099),f=r(7908),h=r(8361),p=r(7466);t.exports={left:n(!1),right:n(!0)}},5417:(t,e,r)=>{var n=r(111),i=r(3157),o=r(5112)("species");t.exports=function(t,e){var r;return new(void 0===(r=i(t)&&("function"==typeof(r=t.constructor)&&(r===Array||i(r.prototype))||n(r)&&null===(r=r[o]))?void 0:r)?Array:r)(0===e?0:e)}},3411:(t,e,r)=>{var i=r(9670);t.exports=function(e,t,r,n){try{return n?t(i(r)[0],r[1]):t(r)}catch(t){n=e.return;throw void 0!==n&&i(n.call(e)),t}}},7072:(t,e,r)=>{var i=r(5112)("iterator"),o=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}},4326:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},648:(t,e,r)=>{var n=r(1694),i=r(4326),o=r(5112)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=Object(t),o))?e:a?i(t):"Object"==(e=i(t))&&"function"==typeof t.callee?"Arguments":e}},5631:(t,e,r)=>{"use strict";var c=r(3070).f,l=r(30),f=r(2248),h=r(9974),p=r(5787),g=r(408),a=r(654),u=r(6340),y=r(9781),d=r(2423).fastKey,r=r(9909),v=r.set,m=r.getterFor;t.exports={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=d(e,!0),key:e,value:r,previous:e=i.last,next:void 0,removed:!1},i.first||(i.first=o),e&&(e.next=o),y?i.size++:t.size++,"F"!==n&&(i.index[n]=o)),t}function a(t,e){var r,t=s(t),n=d(e);if("F"!==n)return t.index[n];for(r=t.first;r;r=r.next)if(r.key==e)return r}var u=t(function(t,e){p(t,u,r),v(t,{type:r,index:l(null),first:void 0,last:void 0,size:0}),y||(t.size=0),null!=e&&g(e,t[i],t,n)}),s=m(r);return f(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,y?t.size=0:this.size=0},delete:function(t){var e,r,n=s(this),t=a(this,t);return t&&(e=t.next,r=t.previous,delete n.index[t.index],t.removed=!0,r&&(r.next=e),e&&(e.previous=r),n.first==t&&(n.first=e),n.last==t&&(n.last=r),y?n.size--:this.size--),!!t},forEach:function(t){for(var e,r=s(this),n=h(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)}}),f(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)}}),y&&c(u.prototype,"size",{get:function(){return s(this).size}}),u},setStrong:function(t,e,r){var n=e+" Iterator",i=m(e),o=m(n);a(t,e,function(t,e){v(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),u(e)}}},7710:(t,e,r)=>{"use strict";var d=r(2109),v=r(7854),m=r(4705),x=r(1320),b=r(2423),w=r(408),S=r(5787),k=r(111),P=r(7293),R=r(7072),A=r(8003),C=r(9587);t.exports=function(r,t,e){function n(t){var r=p[t];x(p,t,"add"==t?function(t){return r.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(l&&!k(t))&&r.call(this,0===t?0:t)}:"get"==t?function(t){return l&&!k(t)?void 0:r.call(this,0===t?0:t)}:"has"==t?function(t){return!(l&&!k(t))&&r.call(this,0===t?0:t)}:function(t,e){return r.call(this,0===t?0:t,e),this})}var i,o,a,u,s,c=-1!==r.indexOf("Map"),l=-1!==r.indexOf("Weak"),f=c?"set":"add",h=v[r],p=h&&h.prototype,g=h,y={};return m(r,"function"!=typeof h||!(l||p.forEach&&!P(function(){(new h).entries().next()})))?(g=e.getConstructor(t,r,c,f),b.REQUIRED=!0):m(r,!0)&&(o=(i=new g)[f](l?{}:-0,1)!=i,a=P(function(){i.has(1)}),u=R(function(t){new h(t)}),s=!l&&P(function(){for(var t=new h,e=5;e--;)t[f](e,e);return!t.has(-0)}),u||(((g=t(function(t,e){S(t,g,r);t=C(new h,t,g);return null!=e&&w(e,t[f],t,c),t})).prototype=p).constructor=g),(a||s)&&(n("delete"),n("has"),c&&n("get")),(s||o)&&n(f),l&&p.clear&&delete p.clear),y[r]=g,d({global:!0,forced:g!=h},y),A(g,r),l||e.setStrong(g,r,c),g}},9920:(t,e,r)=>{var u=r(6656),s=r(3887),c=r(1236),l=r(3070);t.exports=function(t,e){for(var r=s(e),n=l.f,i=c.f,o=0;o<r.length;o++){var a=r[o];u(t,a)||n(t,a,i(e,a))}}},4964:(t,e,r)=>{var n=r(5112)("match");t.exports=function(e){var r=/./;try{"/./"[e](r)}catch(t){try{return r[n]=!1,"/./"[e](r)}catch(t){}}return!1}},8544:(t,e,r)=>{r=r(7293);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},4994:(t,e,r)=>{"use strict";function n(){return this}var i=r(3383).IteratorPrototype,o=r(30),a=r(9114),u=r(8003),s=r(7497);t.exports=function(t,e,r){e+=" Iterator";return t.prototype=o(i,{next:a(1,r)}),u(t,e,!1,!0),s[e]=n,t}},8880:(t,e,r)=>{var n=r(9781),i=r(3070),o=r(9114);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},9114:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6135:(t,e,r)=>{"use strict";var n=r(7593),i=r(3070),o=r(9114);t.exports=function(t,e,r){e=n(e);e in t?i.f(t,e,o(0,r)):t[e]=r}},654:(t,e,r)=>{"use strict";function y(){return this}var d=r(2109),v=r(4994),m=r(9518),x=r(7674),b=r(8003),w=r(8880),S=r(1320),n=r(5112),k=r(1913),P=r(7497),r=r(3383),R=r.IteratorPrototype,A=r.BUGGY_SAFARI_ITERATORS,C=n("iterator"),E="values",T="entries";t.exports=function(t,e,r,n,i,o,a){v(r,e,n);function u(t){if(t===i&&p)return p;if(!A&&t in f)return f[t];switch(t){case"keys":case E:case T:return function(){return new r(this,t)}}return function(){return new r(this)}}var s,c,n=e+" Iterator",l=!1,f=t.prototype,h=f[C]||f["@@iterator"]||i&&f[i],p=!A&&h||u(i),g="Array"==e&&f.entries||h;if(g&&(g=m(g.call(new t)),R!==Object.prototype&&g.next&&(k||m(g)===R||(x?x(g,R):"function"!=typeof g[C]&&w(g,C,y)),b(g,n,!0,!0),k&&(P[n]=y))),i==E&&h&&h.name!==E&&(l=!0,p=function(){return h.call(this)}),k&&!a||f[C]===p||w(f,C,p),P[e]=p,i)if(s={values:u(E),keys:o?p:u("keys"),entries:u(T)},a)for(c in s)!A&&!l&&c in f||S(f,c,s[c]);else d({target:e,proto:!0,forced:A||l},s);return s}},7235:(t,e,r)=>{var n=r(857),i=r(6656),o=r(6061),a=r(3070).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},9781:(t,e,r)=>{r=r(7293);t.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},317:(t,e,r)=>{var n=r(7854),r=r(111),i=n.document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},8324:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6833:(t,e,r)=>{r=r(8113);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},8113:(t,e,r)=>{r=r(5005);t.exports=r("navigator","userAgent")||""},7392:(t,e,r)=>{var n,i,o=r(7854),r=r(8113),o=o.process,o=o&&o.versions,o=o&&o.v8;o?i=(n=o.split("."))[0]+n[1]:r&&(!(n=r.match(/Edge\/(\d+)/))||74<=n[1])&&(n=r.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},748:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(t,e,r)=>{var c=r(7854),l=r(1236).f,f=r(8880),h=r(1320),p=r(3505),g=r(9920),y=r(4705);t.exports=function(t,e){var r,n,i,o=t.target,a=t.global,u=t.stat,s=a?c:u?c[o]||p(o,{}):(c[o]||{}).prototype;if(s)for(r in e){if(n=e[r],i=t.noTargetGet?(i=l(s,r))&&i.value:s[r],!y(a?r:o+(u?".":"#")+r,t.forced)&&void 0!==i){if(typeof n==typeof i)continue;g(n,i)}(t.sham||i&&i.sham)&&f(n,"sham",!0),h(s,r,n,t)}}},7293:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7007:(t,e,r)=>{"use strict";r(4916);var c=r(1320),l=r(7293),f=r(5112),h=r(2261),p=r(8880),g=f("species"),y=!l(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),d="$0"==="a".replace(/./,"$0"),r=f("replace"),v=!!/./[r]&&""===/./[r]("a","$0"),m=!l(function(){var t=/(?:)/,e=t.exec,t=(t.exec=function(){return e.apply(this,arguments)},"ab".split(t));return 2!==t.length||"a"!==t[0]||"b"!==t[1]});t.exports=function(r,t,e,n){var o,i,a=f(r),u=!l(function(){var t={};return t[a]=function(){return 7},7!=""[r](t)}),s=u&&!l(function(){var t=!1,e=/a/;return"split"===r&&((e={constructor:{}}).constructor[g]=function(){return e},e.flags="",e[a]=/./[a]),e.exec=function(){return t=!0,null},e[a](""),!t});u&&s&&("replace"!==r||y&&d&&!v)&&("split"!==r||m)||(o=/./[a],e=(s=e(a,""[r],function(t,e,r,n,i){return e.exec===h?u&&!i?{done:!0,value:o.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}},{REPLACE_KEEPS_$0:d,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}))[0],i=s[1],c(String.prototype,r,e),c(RegExp.prototype,a,2==t?function(t,e){return i.call(t,this,e)}:function(t){return i.call(t,this)})),n&&p(RegExp.prototype[a],"sham",!0)}},6677:(t,e,r)=>{r=r(7293);t.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},9974:(t,e,r)=>{var o=r(3099);t.exports=function(n,i,t){if(o(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)}}},7065:(t,e,r)=>{"use strict";var n=r(3099),i=r(111),l=[].slice,f={};t.exports=Function.bind||function(a){var u=n(this),s=l.call(arguments,1),c=function(){var t=s.concat(l.call(arguments));if(this instanceof c){var e=u,r=t.length,n=t;if(!(r in f)){for(var i=[],o=0;o<r;o++)i[o]="a["+o+"]";f[r]=Function("C,a","return new C("+i.join(",")+")")}return f[r](e,n)}return u.apply(a,t)};return i(u.prototype)&&(c.prototype=u.prototype),c}},5005:(t,e,r)=>{function n(t){return"function"==typeof t?t:void 0}var i=r(857),o=r(7854);t.exports=function(t,e){return arguments.length<2?n(i[t])||n(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},1246:(t,e,r)=>{var n=r(648),i=r(7497),o=r(5112)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},7854:(t,e,r)=>{function n(t){return t&&t.Math==Math&&t}t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||Function("return this")()},6656:t=>{var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},3501:t=>{t.exports={}},842:(t,e,r)=>{var n=r(7854);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},490:(t,e,r)=>{r=r(5005);t.exports=r("document","documentElement")},4664:(t,e,r)=>{var n=r(9781),i=r(7293),o=r(317);t.exports=!n&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},8361:(t,e,r)=>{var n=r(7293),i=r(4326),o="".split;t.exports=n(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},9587:(t,e,r)=>{var n=r(111),i=r(7674);t.exports=function(t,e,r){return i&&"function"==typeof(e=e.constructor)&&e!==r&&n(e=e.prototype)&&e!==r.prototype&&i(t,e),t}},2788:(t,e,r)=>{var r=r(5465),n=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return n.call(t)}),t.exports=r.inspectSource},2423:(t,e,r)=>{function n(t){u(t,l,{value:{objectID:"O"+ ++f,weakData:{}}})}var i=r(3501),o=r(111),a=r(6656),u=r(3070).f,s=r(9711),c=r(6677),l=s("meta"),f=0,h=Object.isExtensible||function(){return!0},p=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,l)){if(!h(t))return"F";if(!e)return"E";n(t)}return t[l].objectID},getWeakData:function(t,e){if(!a(t,l)){if(!h(t))return!0;if(!e)return!1;n(t)}return t[l].weakData},onFreeze:function(t){return c&&p.REQUIRED&&h(t)&&!a(t,l)&&n(t),t}};i[l]=!0},9909:(t,e,r)=>{var n,i,o,a,u,s,c,l,f=r(8536),h=r(7854),p=r(111),g=r(8880),y=r(6656),d=r(6200),r=r(3501),h=h.WeakMap;c=f?(n=new h,i=n.get,o=n.has,a=n.set,u=function(t,e){return a.call(n,t,e),e},s=function(t){return i.call(n,t)||{}},function(t){return o.call(n,t)}):(r[l=d("state")]=!0,u=function(t,e){return g(t,l,e),e},s=function(t){return y(t,l)?t[l]:{}},function(t){return y(t,l)}),t.exports={set:u,get:s,has:c,enforce:function(t){return c(t)?s(t):u(t,{})},getterFor:function(e){return function(t){if(p(t)&&(t=s(t)).type===e)return t;throw TypeError("Incompatible receiver, "+e+" required")}}}},7659:(t,e,r)=>{var n=r(5112),i=r(7497),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},3157:(t,e,r)=>{var n=r(4326);t.exports=Array.isArray||function(t){return"Array"==n(t)}},4705:(t,e,r)=>{function n(t,e){return(t=u[a(t)])==c||t!=s&&("function"==typeof e?i(e):!!e)}var i=r(7293),o=/#|\.prototype\./,a=n.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=n.data={},s=n.NATIVE="N",c=n.POLYFILL="P";t.exports=n},111:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:t=>{t.exports=!1},7850:(t,e,r)=>{var n=r(111),i=r(4326),o=r(5112)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},408:(t,e,r)=>{function h(t,e){this.stopped=t,this.result=e}var p=r(9670),g=r(7659),y=r(7466),d=r(9974),v=r(1246),m=r(3411);(t.exports=function(t,e,r,n,i){var o,a,u,s,c,l,f=d(e,r,n?2:1);if(i)o=t;else{if("function"!=typeof(e=v(t)))throw TypeError("Target is not iterable");if(g(e)){for(a=0,u=y(t.length);a<u;a++)if((s=n?f(p(l=t[a])[0],l[1]):f(t[a]))&&s instanceof h)return s;return new h(!1)}o=e.call(t)}for(c=o.next;!(l=c.call(o)).done;)if("object"==typeof(s=m(o,f,l.value,n))&&s&&s instanceof h)return s;return new h(!1)}).stop=function(t){return new h(!0,t)}},3383:(t,e,r)=>{"use strict";var n,i,o=r(9518),a=r(8880),u=r(6656),s=r(5112),r=r(1913),s=s("iterator"),c=!1;[].keys&&("next"in(i=[].keys())?(o=o(o(i)))!==Object.prototype&&(n=o):c=!0),null==n&&(n={}),r||u(n,s)||a(n,s,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:c}},7497:t=>{t.exports={}},5948:(t,e,r)=>{var n,i,o,a,u,s,c,l,f=r(7854),h=r(1236).f,p=r(4326),g=r(261).set,r=r(6833),y=f.MutationObserver||f.WebKitMutationObserver,d=f.process,v=f.Promise,m="process"==p(d),p=h(f,"queueMicrotask"),h=p&&p.value;h||(n=function(){var t,e;for(m&&(t=d.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},a=m?function(){d.nextTick(n)}:y&&!r?(u=!0,s=document.createTextNode(""),new y(n).observe(s,{characterData:!0}),function(){s.data=u=!u}):v&&v.resolve?(c=v.resolve(void 0),l=c.then,function(){l.call(c,n)}):function(){g.call(f,n)}),t.exports=h||function(t){t={fn:t,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3366:(t,e,r)=>{r=r(7854);t.exports=r.Promise},133:(t,e,r)=>{r=r(7293);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},8536:(t,e,r)=>{var n=r(7854),r=r(2788),n=n.WeakMap;t.exports="function"==typeof n&&/native code/.test(r(n))},8523:(t,e,r)=>{"use strict";function n(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=i(r),this.reject=i(n)}var i=r(3099);t.exports.f=function(t){return new n(t)}},3929:(t,e,r)=>{var n=r(7850);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},30:(t,e,r)=>{function n(){}var i,o=r(9670),a=r(6048),u=r(748),s=r(3501),c=r(490),l=r(317),r=r(6200),f="prototype",h="script",p=r("IE_PROTO"),g=function(t){return"<"+h+">"+t+"</"+h+">"},y=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch(t){}y=i?((t=i).write(g("")),t.close(),e=t.parentWindow.Object,t=null,e):(t=l("iframe"),e="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var t,e,r=u.length;r--;)delete y[f][u[r]];return y()};s[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(n[f]=o(t),r=new n,n[f]=null,r[p]=t):r=y(),void 0===e?r:a(r,e)}},6048:(t,e,r)=>{var n=r(9781),a=r(3070),u=r(9670),s=r(1956);t.exports=n?Object.defineProperties:function(t,e){u(t);for(var r,n=s(e),i=n.length,o=0;o<i;)a.f(t,r=n[o++],e[r]);return t}},3070:(t,e,r)=>{var n=r(9781),i=r(4664),o=r(9670),a=r(7593),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return u(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}},1236:(t,e,r)=>{var n=r(9781),i=r(5296),o=r(9114),a=r(5656),u=r(7593),s=r(6656),c=r(4664),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},1156:(t,e,r)=>{var n=r(5656),i=r(8006).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){if(!a||"[object Window]"!=o.call(t))return i(n(t));try{return i(t)}catch(t){return a.slice()}}},8006:(t,e,r)=>{var n=r(6324),i=r(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},5181:(t,e)=>{e.f=Object.getOwnPropertySymbols},9518:(t,e,r)=>{var n=r(6656),i=r(7908),o=r(6200),r=r(8544),a=o("IE_PROTO"),u=Object.prototype;t.exports=r?Object.getPrototypeOf:function(t){return t=i(t),n(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},6324:(t,e,r)=>{var a=r(6656),u=r(5656),s=r(1318).indexOf,c=r(3501);t.exports=function(t,e){var r,n=u(t),i=0,o=[];for(r in n)!a(c,r)&&a(n,r)&&o.push(r);for(;e.length>i;)!a(n,r=e[i++])||~s(o,r)||o.push(r);return o}},1956:(t,e,r)=>{var n=r(6324),i=r(748);t.exports=Object.keys||function(t){return n(t,i)}},5296:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);e.f=i?function(t){t=n(this,t);return!!t&&t.enumerable}:r},7674:(t,e,r)=>{var i=r(9670),o=r(6077);t.exports=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(t){}return function(t,e){return i(t),o(e),n?r.call(t,e):t.__proto__=e,t}}():void 0)},288:(t,e,r)=>{"use strict";var n=r(1694),i=r(648);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},3887:(t,e,r)=>{var n=r(5005),i=r(8006),o=r(5181),a=r(9670);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},857:(t,e,r)=>{r=r(7854);t.exports=r},2534:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},9478:(t,e,r)=>{var n=r(9670),i=r(111),o=r(8523);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;t=o.f(t);return(0,t.resolve)(e),t.promise}},2248:(t,e,r)=>{var i=r(1320);t.exports=function(t,e,r){for(var n in e)i(t,n,e[n],r);return t}},1320:(t,e,r)=>{var a=r(7854),u=r(8880),s=r(6656),c=r(3505),n=r(2788),r=r(9909),i=r.get,l=r.enforce,f=String(String).split("String");(t.exports=function(t,e,r,n){var i=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,n=!!n&&!!n.noTargetGet;"function"==typeof r&&("string"!=typeof e||s(r,"name")||u(r,"name",e),l(r).source=f.join("string"==typeof e?e:"")),t===a?o?t[e]=r:c(e,r):(i?!n&&t[e]&&(o=!0):delete t[e],o?t[e]=r:u(t,e,r))})(Function.prototype,"toString",function(){return"function"==typeof this&&i(this).source||n(this)})},7651:(t,e,r)=>{var n=r(4326),i=r(2261);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){r=r.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},2261:(t,e,r)=>{"use strict";var n,i,f=r(7066),r=r(2999),h=RegExp.prototype.exec,p=String.prototype.replace,o=h,g=(n=/a/,i=/b*/g,h.call(n,"a"),h.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),y=r.UNSUPPORTED_Y||r.BROKEN_CARET,d=void 0!==/()??/.exec("")[1];t.exports=o=g||d||y?function(t){var e,r,n,i,o=this,a=y&&o.sticky,u=f.call(o),s=o.source,c=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(o.lastIndex),0<o.lastIndex&&(!o.multiline||o.multiline&&"\n"!==t[o.lastIndex-1])&&(s="(?: "+s+")",l=" "+l,c++),r=new RegExp("^(?:"+s+")",u)),d&&(r=new RegExp("^"+s+"$(?!\\s)",u)),g&&(e=o.lastIndex),n=h.call(a?r:o,l),a?n?(n.input=n.input.slice(c),n[0]=n[0].slice(c),n.index=o.lastIndex,o.lastIndex+=n[0].length):o.lastIndex=0:g&&n&&(o.lastIndex=o.global?n.index+n[0].length:e),d&&n&&1<n.length&&p.call(n[0],r,function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)}),n}:o},7066:(t,e,r)=>{"use strict";var n=r(9670);t.exports=function(){var t=n(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}},2999:(t,e,r)=>{"use strict";r=r(7293);function n(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=r(function(){var t=n("a","y");return t.lastIndex=2,null!=t.exec("abcd")}),e.BROKEN_CARET=r(function(){var t=n("^r","gy");return t.lastIndex=2,null!=t.exec("str")})},4488:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:(t,e,r)=>{var n=r(7854),i=r(8880);t.exports=function(e,r){try{i(n,e,r)}catch(t){n[e]=r}return r}},6340:(t,e,r)=>{"use strict";var n=r(5005),i=r(3070),o=r(5112),a=r(9781),u=o("species");t.exports=function(t){var t=n(t),e=i.f;a&&t&&!t[u]&&e(t,u,{configurable:!0,get:function(){return this}})}},8003:(t,e,r)=>{var n=r(3070).f,i=r(6656),o=r(5112)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},6200:(t,e,r)=>{var n=r(2309),i=r(9711),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:(t,e,r)=>{var n=r(7854),r=r(3505),i="__core-js_shared__",n=n[i]||r(i,{});t.exports=n},2309:(t,e,r)=>{var n=r(1913),i=r(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},6707:(t,e,r)=>{var n=r(9670),i=r(3099),o=r(5112)("species");t.exports=function(t,e){var t=n(t).constructor;return void 0===t||null==(t=n(t)[o])?e:i(t)}},8710:(t,e,r)=>{function n(i){return function(t,e){var r,t=String(a(t)),e=o(e),n=t.length;return e<0||n<=e?i?"":void 0:(r=t.charCodeAt(e))<55296||56319<r||e+1===n||(n=t.charCodeAt(e+1))<56320||57343<n?i?t.charAt(e):r:i?t.slice(e,e+2):n-56320+(r-55296<<10)+65536}}var o=r(9958),a=r(4488);t.exports={codeAt:n(!1),charAt:n(!0)}},6091:(t,e,r)=>{var n=r(7293),i=r(1361);t.exports=function(t){return n(function(){return!!i[t]()||"
"!="
"[t]()||i[t].name!==t})}},3111:(t,e,r)=>{function n(e){return function(t){t=String(i(t));return 1&e&&(t=t.replace(o,"")),t=2&e?t.replace(a,""):t}}var i=r(4488),r="["+r(1361)+"]",o=RegExp("^"+r+r+"*"),a=RegExp(r+r+"*$");t.exports={start:n(1),end:n(2),trim:n(3)}},261:(t,e,r)=>{function n(t){return function(){S(t)}}function i(t){S(t.data)}function o(t){u.postMessage(t+"",p.protocol+"//"+p.host)}var a,u=r(7854),s=r(7293),c=r(4326),l=r(9974),f=r(490),h=r(317),r=r(6833),p=u.location,g=u.setImmediate,y=u.clearImmediate,d=u.process,v=u.MessageChannel,m=u.Dispatch,x=0,b={},w="onreadystatechange",S=function(t){var e;b.hasOwnProperty(t)&&(e=b[t],delete b[t],e())};g&&y||(g=function(t){for(var e=[],r=1;r<arguments.length;)e.push(arguments[r++]);return b[++x]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},a(x),x},y=function(t){delete b[t]},"process"==c(d)?a=function(t){d.nextTick(n(t))}:m&&m.now?a=function(t){m.now(n(t))}:v&&!r?(r=(c=new v).port2,c.port1.onmessage=i,a=l(r.postMessage,r,1)):!u.addEventListener||"function"!=typeof postMessage||u.importScripts||s(o)||"file:"===p.protocol?a=w in h("script")?function(t){f.appendChild(h("script"))[w]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(n(t),0)}:(a=o,u.addEventListener("message",i,!1))),t.exports={set:g,clear:y}},1400:(t,e,r)=>{var n=r(9958),i=Math.max,o=Math.min;t.exports=function(t,e){t=n(t);return t<0?i(t+e,0):o(t,e)}},5656:(t,e,r)=>{var n=r(8361),i=r(4488);t.exports=function(t){return n(i(t))}},9958:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},7466:(t,e,r)=>{var n=r(9958),i=Math.min;t.exports=function(t){return 0<t?i(n(t),9007199254740991):0}},7908:(t,e,r)=>{var n=r(4488);t.exports=function(t){return Object(n(t))}},7593:(t,e,r)=>{var i=r(111);t.exports=function(t,e){if(!i(t))return t;var r,n;if(e&&"function"==typeof(r=t.toString)&&!i(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!i(n=r.call(t)))return n;if(e||"function"!=typeof(r=t.toString)||i(n=r.call(t)))throw TypeError("Can't convert object to primitive value");return n}},1694:(t,e,r)=>{var n={};n[r(5112)("toStringTag")]="z",t.exports="[object z]"===String(n)},9711:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},3307:(t,e,r)=>{r=r(133);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},6061:(t,e,r)=>{r=r(5112);e.f=r},5112:(t,e,r)=>{var n=r(7854),i=r(2309),o=r(6656),a=r(9711),u=r(133),r=r(3307),s=i("wks"),c=n.Symbol,l=r?c:c&&c.withoutSetter||a;t.exports=function(t){return o(s,t)||(u&&o(c,t)?s[t]=c[t]:s[t]=l("Symbol."+t)),s[t]}},1361:t=>{t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},2222:(t,e,r)=>{"use strict";var n=r(2109),i=r(7293),c=r(3157),l=r(111),f=r(7908),h=r(7466),p=r(6135),g=r(5417),o=r(1194),a=r(5112),r=r(7392),y=a("isConcatSpreadable"),d=9007199254740991,v="Maximum allowed index exceeded",a=51<=r||!i(function(){var t=[];return t[y]=!1,t.concat()[0]!==t}),r=o("concat");n({target:"Array",proto:!0,forced:!a||!r},{concat:function(t){for(var e,r,n,i=f(this),o=g(i,0),a=0,u=-1,s=arguments.length;u<s;u++)if(function(t){if(!l(t))return!1;var e=t[y];return void 0!==e?!!e:c(t)}(n=-1===u?i:arguments[u])){if(r=h(n.length),d<a+r)throw TypeError(v);for(e=0;e<r;e++,a++)e in n&&p(o,a,n[e])}else{if(d<=a)throw TypeError(v);p(o,a++,n)}return o.length=a,o}})},6541:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).every,o=r(9341),r=r(9207),o=o("every"),r=r("every");n({target:"Array",proto:!0,forced:!o||!r},{every:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},3290:(t,e,r)=>{var n=r(2109),i=r(1285),r=r(1223);n({target:"Array",proto:!0},{fill:i}),r("fill")},7327:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).filter,o=r(1194),r=r(9207),o=o("filter"),r=r("filter");n({target:"Array",proto:!0,forced:!o||!r},{filter:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},9554:(t,e,r)=>{"use strict";var n=r(2109),r=r(8533);n({target:"Array",proto:!0,forced:[].forEach!=r},{forEach:r})},1038:(t,e,r)=>{var n=r(2109),i=r(8457);n({target:"Array",stat:!0,forced:!r(7072)(function(t){Array.from(t)})},{from:i})},6699:(t,e,r)=>{"use strict";var n=r(2109),i=r(1318).includes,o=r(1223);n({target:"Array",proto:!0,forced:!r(9207)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),o("includes")},2772:(t,e,r)=>{"use strict";var n=r(2109),i=r(1318).indexOf,o=r(9341),r=r(9207),a=[].indexOf,u=!!a&&1/[1].indexOf(1,-0)<0,o=o("indexOf"),r=r("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:u||!o||!r},{indexOf:function(t){return u?a.apply(this,arguments)||0:i(this,t,1<arguments.length?arguments[1]:void 0)}})},6992:(t,e,r)=>{"use strict";var n=r(5656),i=r(1223),o=r(7497),a=r(9909),r=r(654),u="Array Iterator",s=a.set,c=a.getterFor(u);t.exports=r(Array,"Array",function(t,e){s(this,{type:u,target:n(t),index:0,kind:e})},function(){var t=c(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"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9600:(t,e,r)=>{"use strict";var n=r(2109),i=r(8361),o=r(5656),r=r(9341),a=[].join,i=i!=Object,r=r("join",",");n({target:"Array",proto:!0,forced:i||!r},{join:function(t){return a.call(o(this),void 0===t?",":t)}})},1249:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).map,o=r(1194),r=r(9207),o=o("map"),r=r("map");n({target:"Array",proto:!0,forced:!o||!r},{map:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},5827:(t,e,r)=>{"use strict";var n=r(2109),i=r(3671).left,o=r(9341),r=r(9207),o=o("reduce"),r=r("reduce",{1:0});n({target:"Array",proto:!0,forced:!o||!r},{reduce:function(t){return i(this,t,arguments.length,1<arguments.length?arguments[1]:void 0)}})},5069:(t,e,r)=>{"use strict";var n=r(2109),i=r(3157),o=[].reverse,r=[1,2];n({target:"Array",proto:!0,forced:String(r)===String(r.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},7042:(t,e,r)=>{"use strict";var n=r(2109),c=r(111),l=r(3157),f=r(1400),h=r(7466),p=r(5656),g=r(6135),i=r(5112),o=r(1194),r=r(9207),o=o("slice"),r=r("slice",{ACCESSORS:!0,0:0,1:2}),y=i("species"),d=[].slice,v=Math.max;n({target:"Array",proto:!0,forced:!o||!r},{slice:function(t,e){var r,n,i,o=p(this),a=h(o.length),u=f(t,a),s=f(void 0===e?a:e,a);if(l(o)&&((r="function"==typeof(r=o.constructor)&&(r===Array||l(r.prototype))||c(r)&&null===(r=r[y])?void 0:r)===Array||void 0===r))return d.call(o,u,s);for(n=new(void 0===r?Array:r)(v(s-u,0)),i=0;u<s;u++,i++)u in o&&g(n,i,o[u]);return n.length=i,n}})},5212:(t,e,r)=>{"use strict";var n=r(2109),i=r(2092).some,o=r(9341),r=r(9207),o=o("some"),r=r("some");n({target:"Array",proto:!0,forced:!o||!r},{some:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}})},8309:(t,e,r)=>{var n=r(9781),r=r(3070).f,i=Function.prototype,o=i.toString,a=/^\s*function ([^ (]*)/;!n||"name"in i||r(i,"name",{configurable:!0,get:function(){try{return o.call(this).match(a)[1]}catch(t){return""}}})},1532:(t,e,r)=>{"use strict";var n=r(7710),r=r(5631);t.exports=n("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r)},9653:(t,e,r)=>{"use strict";function n(t){var e,r,n,i,o,a,u,s=f(t,!1);if("string"==typeof s&&2<s.length)if(43===(t=(s=v(s)).charCodeAt(0))||45===t){if(88===(e=s.charCodeAt(2))||120===e)return NaN}else if(48===t){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}var i=r(9781),o=r(7854),a=r(4705),u=r(1320),s=r(6656),c=r(4326),l=r(9587),f=r(7593),h=r(7293),p=r(30),g=r(8006).f,y=r(1236).f,d=r(3070).f,v=r(3111).trim,m="Number",x=o[m],b=x.prototype,w=c(p(b))==m;if(a(m,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var S,k=function(t){var t=arguments.length<1?0:t,e=this;return e instanceof k&&(w?h(function(){b.valueOf.call(e)}):c(e)!=m)?l(new x(n(t)),e,k):n(t)},P=i?g(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),R=0;P.length>R;R++)s(x,S=P[R])&&!s(k,S)&&d(k,S,y(x,S));(k.prototype=b).constructor=k,u(o,m,k)}},5003:(t,e,r)=>{var n=r(2109),i=r(7293),o=r(5656),a=r(1236).f,r=r(9781),i=i(function(){a(1)});n({target:"Object",stat:!0,forced:!r||i,sham:!r},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},9337:(t,e,r)=>{var n=r(2109),i=r(9781),s=r(3887),c=r(5656),l=r(1236),f=r(6135);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=c(t),i=l.f,o=s(n),a={},u=0;o.length>u;)void 0!==(r=i(n,e=o[u++]))&&f(a,e,r);return a}})},7941:(t,e,r)=>{var n=r(2109),i=r(7908),o=r(1956);n({target:"Object",stat:!0,forced:r(7293)(function(){o(1)})},{keys:function(t){return o(i(t))}})},1539:(t,e,r)=>{var n=r(1694),i=r(1320),r=r(288);n||i(Object.prototype,"toString",r,{unsafe:!0})},8674:(j,I,t)=>{"use strict";var r,e,n,i,o=t(2109),a=t(1913),v=t(7854),u=t(5005),s=t(3366),z=t(1320),B=t(2248),F=t(8003),$=t(6340),_=t(111),l=t(3099),q=t(5787),G=t(4326),U=t(2788),f=t(408),W=t(7072),H=t(6707),m=t(261).set,c=t(5948),h=t(9478),X=t(842),p=t(8523),x=t(2534),g=t(9909),Y=t(4705),y=t(5112),d=t(7392),Q=y("species"),b="Promise",w=g.get,Z=g.set,K=g.getterFor(b),S=s,k=v.TypeError,P=v.document,R=v.process,A=u("fetch"),C=p.f,J=C,E="process"==G(R),tt=!!(P&&P.createEvent&&v.dispatchEvent),T="unhandledrejection",et="rejectionhandled",O=1,rt=2,M=1,nt=2,t=Y(b,function(){if(!(U(S)!==String(S))){if(66===d)return!0;if(!E&&"function"!=typeof PromiseRejectionEvent)return!0}if(a&&!S.prototype.finally)return!0;if(51<=d&&/native code/.test(S))return!1;function t(t){t(function(){},function(){})}var e=S.resolve(1);return(e.constructor={})[Q]=t,!(e.then(function(){})instanceof t)}),y=t||!W(function(t){S.all(t).catch(function(){})}),it=function(t){var e;return!(!_(t)||"function"!=typeof(e=t.then))&&e},D=function(p,g,y){var d;g.notified||(g.notified=!0,d=g.reactions,c(function(){for(var r,n,t=g.value,e=g.state==O,i=0;d.length>i;){var o,a,u,s=d[i++],c=e?s.ok:s.fail,l=s.resolve,f=s.reject,h=s.domain;try{c?(e||(g.rejection===nt&&function(t,e){m.call(v,function(){if(E)R.emit("rejectionHandled",t);else ot(et,t,e.value)})}(p,g),g.rejection=M),!0===c?o=t:(h&&h.enter(),o=c(t),h&&(h.exit(),u=!0)),o===s.promise?f(k("Promise-chain cycle")):(a=it(o))?a.call(o,l,f):l(o)):f(t)}catch(t){h&&!u&&h.exit(),f(t)}}g.reactions=[],g.notified=!1,y&&!g.rejection&&(r=p,n=g,m.call(v,function(){var t=n.value,e=at(n);if(e&&(e=x(function(){E?R.emit("unhandledRejection",t,r):ot(T,r,t)}),n.rejection=E||at(n)?nt:M,e.error))throw e.value}))}))},ot=function(t,e,r){var n;tt?((n=P.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),v.dispatchEvent(n)):n={promise:e,reason:r},(e=v["on"+t])?e(n):t===T&&X("Unhandled promise rejection",r)},at=function(t){return t.rejection!==M&&!t.parent},V=function(e,r,n,i){return function(t){e(r,n,t,i)}},L=function(t,e,r,n){e.done||(e.done=!0,(e=n?n:e).value=r,e.state=rt,D(t,e,!0))},N=function(r,n,t,e){if(!n.done){n.done=!0,e&&(n=e);try{if(r===t)throw k("Promise can't be resolved itself");var i=it(t);i?c(function(){var e={done:!1};try{i.call(t,V(N,r,e,n),V(L,r,e,n))}catch(t){L(r,e,t,n)}}):(n.value=t,n.state=O,D(r,n,!1))}catch(t){L(r,{done:!1},t,n)}}};t&&(S=function(t){q(this,S,b),l(t),r.call(this);var e=w(this);try{t(V(N,this,e),V(L,this,e))}catch(t){L(this,e,t)}},(r=function(t){Z(this,{type:b,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=B(S.prototype,{then:function(t,e){var r=K(this),n=C(H(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=E?R.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&D(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),e=function(){var t=new r,e=w(t);this.promise=t,this.resolve=V(N,t,e),this.reject=V(L,t,e)},p.f=C=function(t){return t===S||t===n?new e:J(t)},a||"function"!=typeof s||(i=s.prototype.then,z(s.prototype,"then",function(t,e){var r=this;return new S(function(t,e){i.call(r,t,e)}).then(t,e)},{unsafe:!0}),"function"==typeof A&&o({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return h(S,A.apply(v,arguments))}}))),o({global:!0,wrap:!0,forced:t},{Promise:S}),F(S,b,!1,!0),$(b),n=u(b),o({target:b,stat:!0,forced:t},{reject:function(t){var e=C(this);return e.reject.call(void 0,t),e.promise}}),o({target:b,stat:!0,forced:a||t},{resolve:function(t){return h(a&&this===n?S:this,t)}}),o({target:b,stat:!0,forced:y},{all:function(t){var u=this,e=C(u),s=e.resolve,c=e.reject,r=x(function(){var n=l(u.resolve),i=[],o=0,a=1;f(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=C(r),i=n.reject,e=x(function(){var e=l(r.resolve);f(t,function(t){e.call(r,t).then(n.resolve,i)})});return e.error&&i(e.value),n.promise}})},6535:(t,e,r)=>{var n=r(2109),i=r(5005),o=r(3099),a=r(9670),r=r(7293),u=i("Reflect","apply"),s=Function.apply;n({target:"Reflect",stat:!0,forced:!r(function(){u(function(){})})},{apply:function(t,e,r){return o(t),a(r),u?u(t,e,r):s.call(t,e,r)}})},2419:(t,e,r)=>{var n=r(2109),i=r(5005),o=r(3099),a=r(9670),u=r(111),s=r(30),c=r(7065),r=r(7293),l=i("Reflect","construct"),f=r(function(){function t(){}return!(l(function(){},[],t)instanceof t)}),h=!r(function(){l(function(){})}),i=f||h;n({target:"Reflect",stat:!0,forced:i,sham:i},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(h&&!f)return l(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(c.apply(t,n))}n=r.prototype,r=s(u(n)?n:Object.prototype),n=Function.apply.call(t,r,e);return u(n)?n:r}})},2586:(t,e,r)=>{var n=r(2109),i=r(9670),o=r(1236).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},9361:(t,e,r)=>{var n=r(2109),i=r(9670),o=r(9518);n({target:"Reflect",stat:!0,sham:!r(8544)},{getPrototypeOf:function(t){return o(i(t))}})},4916:(t,e,r)=>{"use strict";var n=r(2109),r=r(2261);n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})},9714:(t,e,r)=>{"use strict";var n=r(1320),i=r(9670),o=r(7293),a=r(7066),r="toString",u=RegExp.prototype,s=u[r],o=o(function(){return"/a/b"!=s.call({source:"a",flags:"b"})}),c=s.name!=r;(o||c)&&n(RegExp.prototype,r,function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in u)?a.call(t):r)},{unsafe:!0})},2023:(t,e,r)=>{"use strict";var n=r(2109),i=r(3929),o=r(4488);n({target:"String",proto:!0,forced:!r(4964)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),1<arguments.length?arguments[1]:void 0)}})},8783:(t,e,r)=>{"use strict";var n=r(8710).charAt,i=r(9909),r=r(654),o="String Iterator",a=i.set,u=i.getterFor(o);r(String,"String",function(t){a(this,{type:o,string:String(t),index:0})},function(){var t=u(this),e=t.string,r=t.index;return r>=e.length?{value:void 0,done:!0}:(e=n(e,r),t.index+=e.length,{value:e,done:!1})})},4723:(t,e,r)=>{"use strict";var n=r(7007),l=r(9670),f=r(7466),i=r(4488),h=r(1530),p=r(7651);n("match",1,function(n,s,c){return[function(t){var e=i(this),r=null==t?void 0:t[n];return void 0!==r?r.call(t,e):new RegExp(t)[n](String(e))},function(t){var e=c(s,t,this);if(e.done)return e.value;var r=l(t),n=String(this);if(!r.global)return p(r,n);for(var i=r.unicode,o=[],a=r.lastIndex=0;null!==(u=p(r,n));){var u=String(u[0]);""===(o[a]=u)&&(r.lastIndex=h(n,f(r.lastIndex),i)),a++}return 0===a?null:o}]})},5306:(t,e,r)=>{"use strict";var n=r(7007),R=r(9670),A=r(7908),C=r(7466),E=r(9958),o=r(4488),T=r(1530),O=r(7651),M=Math.max,D=Math.min,V=Math.floor,L=/\$([$&'`]|\d\d?|<[^>]*>)/g,N=/\$([$&'`]|\d\d?)/g;n("replace",2,function(i,b,w,t){var S=t.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,k=t.REPLACE_KEEPS_$0,P=S?"$":"$0";return[function(t,e){var r=o(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):b.call(String(r),t,e)},function(t,e){if(!S&&k||"string"==typeof e&&-1===e.indexOf(P)){var r=w(b,t,this,e);if(r.done)return r.value}for(var n,i=R(t),o=String(this),a="function"==typeof e,u=(a||(e=String(e)),i.global),s=(u&&(n=i.unicode,i.lastIndex=0),[]);null!==(p=O(i,o))&&(s.push(p),u);)""===String(p[0])&&(i.lastIndex=T(o,C(i.lastIndex),n));for(var c,l="",f=0,h=0;h<s.length;h++){for(var p=s[h],g=String(p[0]),y=M(D(E(p.index),o.length),0),d=[],v=1;v<p.length;v++)d.push(void 0===(c=p[v])?c:String(c));var m=p.groups,x=a?(x=[g].concat(d,y,o),void 0!==m&&x.push(m),String(e.apply(void 0,x))):function(o,a,u,s,c,t){var l=u+o.length,f=s.length,e=N;void 0!==c&&(c=A(c),e=L);return b.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,i=+e;if(0==i)return t;if(f<i)return 0!==(n=V(i/10))&&n<=f?void 0===s[n-1]?e.charAt(1):s[n-1]+e.charAt(1):t;r=s[i-1]}return void 0===r?"":r})}(g,o,y,d,m,e);f<=y&&(l+=o.slice(f,y)+x,f=y+g.length)}return l+o.slice(f)}]})},3123:(t,e,r)=>{"use strict";var n=r(7007),l=r(7850),v=r(9670),f=r(4488),m=r(6707),x=r(1530),b=r(7466),w=r(7651),h=r(2261),r=r(7293),p=[].push,S=Math.min,k=4294967295,P=!r(function(){return!RegExp(k,"y")});n("split",2,function(i,g,y){var d="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=String(f(this)),n=void 0===e?k:e>>>0;if(0==n)return[];if(void 0===t)return[r];if(!l(t))return g.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=h.call(c,r))&&!(s<(o=c.lastIndex)&&(u.push(r.slice(s,i.index)),1<i.length&&i.index<r.length&&p.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?[]:g.call(this,t,e)}:g;return[function(t,e){var r=f(this),n=null==t?void 0:t[i];return void 0!==n?n.call(t,r,e):d.call(String(r),t,e)},function(t,e){var r=y(d,t,this,e,d!==g);if(r.done)return r.value;var r=v(t),n=String(this),t=m(r,RegExp),i=r.unicode,o=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(P?"y":"g"),a=new t(P?r:"^(?:"+r.source+")",o),u=void 0===e?k:e>>>0;if(0==u)return[];if(0===n.length)return null===w(a,n)?[n]:[];for(var s=0,c=0,l=[];c<n.length;){a.lastIndex=P?c:0;var f,h=w(a,P?n:n.slice(c));if(null===h||(f=S(b(a.lastIndex+(P?0:c)),n.length))===s)c=x(n,c,i);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}]},!P)},6755:(t,e,r)=>{"use strict";var n=r(2109),i=r(1236).f,o=r(7466),a=r(3929),u=r(4488),s=r(4964),r=r(1913),c="".startsWith,l=Math.min,s=s("startsWith");n({target:"String",proto:!0,forced:!!(r||s||(!(n=i(String.prototype,"startsWith"))||n.writable))&&!s},{startsWith:function(t){var e=String(u(this)),r=(a(t),o(l(1<arguments.length?arguments[1]:void 0,e.length))),t=String(t);return c?c.call(e,t,r):e.slice(r,r+t.length)===t}})},3210:(t,e,r)=>{"use strict";var n=r(2109),i=r(3111).trim;n({target:"String",proto:!0,forced:r(6091)("trim")},{trim:function(){return i(this)}})},1817:(t,e,r)=>{"use strict";var n,i,o,a,u,s=r(2109),c=r(9781),l=r(7854),f=r(6656),h=r(111),p=r(3070).f,r=r(9920),g=l.Symbol;!c||"function"!=typeof g||"description"in g.prototype&&void 0===g().description||(n={},r(i=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof i?new g(t):void 0===t?g():g(t);return""===t&&(n[e]=!0),e},g),(l=i.prototype=g.prototype).constructor=i,o=l.toString,a="Symbol(test)"==String(g("test")),u=/^Symbol\((.*)\)[^)]+$/,p(l,"description",{configurable:!0,get:function(){var t=h(this)?this.valueOf():this,e=o.call(t);if(f(n,t))return"";t=a?e.slice(7,-1):e.replace(u,"$1");return""===t?void 0:t}}),s({global:!0,forced:!0},{Symbol:i}))},2165:(t,e,r)=>{r(7235)("iterator")},2526:(j,I,t)=>{"use strict";function n(t,e){var r=A[t]=p(k[w]);return at(r,{type:b,tag:t,description:e}),o||(r.description=e),r}function r(e,t){c(e);var r=l(t),t=W(r).concat(N(r));return m(t,function(t){o&&!L.call(r,t)||V(e,t,r[t])}),e}function e(t,e){var r,t=l(t),e=f(e,!0);if(t!==S||!s(A,e)||s(C,e))return!(r=st(t,e))||!s(A,e)||s(t,x)&&t[x][e]||(r.enumerable=!0),r}function z(t){var t=ct(l(t)),e=[];return m(t,function(t){s(A,t)||s(tt,t)||e.push(t)}),e}var i=t(2109),B=t(7854),F=t(5005),$=t(1913),o=t(9781),a=t(133),_=t(3307),u=t(7293),s=t(6656),q=t(3157),G=t(111),c=t(9670),U=t(7908),l=t(5656),f=t(7593),h=t(9114),p=t(30),W=t(1956),H=t(8006),X=t(1156),g=t(5181),Y=t(1236),Q=t(3070),Z=t(5296),K=t(8880),y=t(1320),d=t(2309),J=t(6200),tt=t(3501),et=t(9711),rt=t(5112),nt=t(6061),it=t(7235),ot=t(8003),v=t(9909),m=t(2092).forEach,x=J("hidden"),b="Symbol",w="prototype",t=rt("toPrimitive"),at=v.set,ut=v.getterFor(b),S=Object[w],k=B.Symbol,P=F("JSON","stringify"),st=Y.f,R=Q.f,ct=X.f,lt=Z.f,A=d("symbols"),C=d("op-symbols"),E=d("string-to-symbol-registry"),T=d("symbol-to-string-registry"),J=d("wks"),v=B.QObject,O=!v||!v[w]||!v[w].findChild,M=o&&u(function(){return 7!=p(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=st(S,e);n&&delete S[e],R(t,e,r),n&&t!==S&&R(S,e,n)}:R,D=_?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof k},V=function(t,e,r){t===S&&V(C,e,r),c(t);e=f(e,!0);return c(r),s(A,e)?(r.enumerable?(s(t,x)&&t[x][e]&&(t[x][e]=!1),r=p(r,{enumerable:h(0,!1)})):(s(t,x)||R(t,x,h(1,{})),t[x][e]=!0),M(t,e,r)):R(t,e,r)},L=function(t){var t=f(t,!0),e=lt.call(this,t);return!(this===S&&s(A,t)&&!s(C,t))&&(!(e||!s(this,t)||!s(A,t)||s(this,x)&&this[x][t])||e)},N=function(t){var e=t===S,t=ct(e?C:l(t)),r=[];return m(t,function(t){!s(A,t)||e&&!s(S,t)||r.push(A[t])}),r};a||(y((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=et(t),r=function(t){this===S&&r.call(C,t),s(this,x)&&s(this[x],e)&&(this[x][e]=!1),M(this,e,h(1,t))};return o&&O&&M(S,e,{configurable:!0,set:r}),n(e,t)})[w],"toString",function(){return ut(this).tag}),y(k,"withoutSetter",function(t){return n(et(t),t)}),Z.f=L,Q.f=V,Y.f=e,H.f=X.f=z,g.f=N,nt.f=function(t){return n(rt(t),t)},o&&(R(k[w],"description",{configurable:!0,get:function(){return ut(this).description}}),$||y(S,"propertyIsEnumerable",L,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:k}),m(W(J),function(t){it(t)}),i({target:b,stat:!0,forced:!a},{for:function(t){t=String(t);if(s(E,t))return E[t];var e=k(t);return E[t]=e,T[e]=t,e},keyFor:function(t){if(!D(t))throw TypeError(t+" is not a symbol");if(s(T,t))return T[t]},useSetter:function(){O=!0},useSimple:function(){O=!1}}),i({target:"Object",stat:!0,forced:!a,sham:!o},{create:function(t,e){return void 0===e?p(t):r(p(t),e)},defineProperty:V,defineProperties:r,getOwnPropertyDescriptor:e}),i({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:z,getOwnPropertySymbols:N}),i({target:"Object",stat:!0,forced:u(function(){g.f(1)})},{getOwnPropertySymbols:function(t){return g.f(U(t))}}),P&&i({target:"JSON",stat:!0,forced:!a||u(function(){var t=k();return"[null]"!=P([t])||"{}"!=P({a:t})||"{}"!=P(Object(t))})},{stringify:function(t,e,r){for(var n,i=[t],o=1;o<arguments.length;)i.push(arguments[o++]);if((G(n=e)||void 0!==t)&&!D(t))return q(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!D(e))return e}),i[1]=e,P.apply(null,i)}}),k[w][t]||K(k[w],t,k[w].valueOf),ot(k,b),tt[x]=!0},4747:(t,e,r)=>{var n,i=r(7854),o=r(8324),a=r(8533),u=r(8880);for(n in o){var s=i[n],s=s&&s.prototype;if(s&&s.forEach!==a)try{u(s,"forEach",a)}catch(t){s.forEach=a}}},3948:(t,e,r)=>{var n,i=r(7854),o=r(8324),a=r(6992),u=r(8880),r=r(5112),s=r("iterator"),c=r("toStringTag"),l=a.values;for(n in o){var f=i[n],h=f&&f.prototype;if(h){if(h[s]!==l)try{u(h,s,l)}catch(t){h[s]=l}if(h[c]||u(h,c,n),o[n])for(var p in a)if(h[p]!==a[p])try{u(h,p,a[p])}catch(t){h[p]=a[p]}}}},75:function(a){!function(){var t,e,r,n,i,o;"undefined"!=typeof performance&&null!==performance&&performance.now?a.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(a.exports=function(){return(t()-i)/1e6},e=process.hrtime,n=(t=function(){var t=e();return 1e9*t[0]+t[1]})(),o=1e9*process.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(this)},4087:(t,e,r)=>{for(var n,i,o,a=r(75),u="undefined"==typeof window?r.g:window,s=["moz","webkit"],c="AnimationFrame",l=u["request"+c],f=u["cancel"+c]||u["cancelRequest"+c],h=0;!l&&h<s.length;h++)l=u[s[h]+"Request"+c],f=u[s[h]+"Cancel"+c]||u[s[h]+"CancelRequest"+c];l&&f||(i=n=0,o=[],l=function(t){var e,r;return 0===o.length&&(e=a(),r=Math.max(0,1e3/60-(e-n)),n=r+e,setTimeout(function(){for(var t=o.slice(0),e=o.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(n)}catch(t){setTimeout(function(){throw t},0)}},Math.round(r))),o.push({handle:++i,callback:t,cancelled:!1}),i},f=function(t){for(var e=0;e<o.length;e++)o[e].handle===t&&(o[e].cancelled=!0)}),t.exports=function(t){return l.call(u,t)},t.exports.cancel=function(){f.apply(u,arguments)},t.exports.polyfill=function(t){(t=t||u).requestAnimationFrame=l,t.cancelAnimationFrame=f}},6131:t=>{t.exports=function(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();for(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"},f=(t=l[t]||t,[{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&&(n=n(r),this.r=n[0],this.g=n[1],this.b=n[2],3<n.length&&(this.alpha=n[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");o.setAttribute("id","rgbcolor-examples");for(r=0;r<e.length;r++)try{var a=document.createElement("li"),u=new RGBColor(e[r]),s=document.createElement("div"),c=(s.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),s.appendChild(document.createTextNode("test")),document.createTextNode(" "+e[r]+" -> "+u.toRGB()+" -> "+u.toHex()));a.appendChild(s),a.appendChild(c),o.appendChild(a)}catch(t){}return o}}}},n={},wr.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return wr.d(e,{a:e}),e},wr.d=(t,e)=>{for(var r in e)wr.o(e,r)&&!wr.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},wr.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),wr.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),Sr={},(()=>{"use strict";wr.d(Sr,{default:()=>br});wr(1249),wr(4916),wr(4723),wr(5306),wr(6755),wr(9600);function i(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 r(t,e){if(t){if("string"==typeof t)return i(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)?i(t,e):void 0}}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||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,e)||r(t,e)||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.")}()}wr(2526),wr(7327),wr(9554),wr(5003),wr(9337),wr(7941),wr(4747);var t=wr(2087),u=wr.n(t);function z(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,i)}function s(u){return function(){var t=this,a=arguments;return new Promise(function(e,r){var n=u.apply(t,a);function i(t){z(n,e,r,i,o,"next",t)}function o(t){z(n,e,r,i,o,"throw",t)}i(void 0)})}}function B(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(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)}}function c(t,e,r){e&&F(t.prototype,e),r&&F(t,r),Object.defineProperty(t,"prototype",{writable:!1})}wr(2222),wr(6541),wr(5827),wr(1539),wr(8674),wr(3123);var t=wr(4087),$=wr.n(t),t=(wr(8309),wr(6131)),_=wr.n(t);wr(2419),wr(9714);function q(t){return(q="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)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function a(t,e){if(e&&("object"===q(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G(t,e)}wr(1038),wr(6699),wr(5212),wr(2023),wr(8783),wr(3210);function U(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||r(t)||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.")}()}wr(2772),wr(5069);function d(){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(n)return n=Object.getOwnPropertyDescriptor(n,e),n.get?n.get.call(arguments.length<3?t:r):n.value}).apply(this,arguments)}wr(9653),wr(3290),wr(2586),wr(6992),wr(3948),wr(1817),wr(2165),wr(7042),wr(1532),wr(6535),wr(9361);function W(t){return(W="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 H=[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],X=[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 Y(t,e,r,n,i){if(!((t="string"==typeof t?document.getElementById(t):t)&&"object"===W(t)&&"getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");t=t.getContext("2d");try{return t.getImageData(e,r,n,i)}catch(t){throw new Error("unable to access image data: "+t)}}function Q(t,e,r,n,i,o){var a;isNaN(o)||o<1||(o|=0,a=function(j,t,e,r){var n,i,o,a,u,s,I,c,l,f,h,p,g,y,d,v,m,x,b,w,S,k,P,R,z,A=j.data,B=2*r+1,C=t-1,F=e-1,E=r+1,T=E*(E+1)/2,O=new Z,M=O;for(o=1;o<B;o++)M=M.next=new Z,o===E&&(z=M);M.next=O;var D=null,V=null,L=(I=s=0,H[r]),N=X[r];for(i=0;i<e;i++){for(v=m=x=b=c=l=f=h=0,p=E*(w=A[s]),g=E*(S=A[s+1]),y=E*(k=A[s+2]),d=E*(P=A[s+3]),c+=T*w,l+=T*S,f+=T*k,h+=T*P,M=O,o=0;o<E;o++)M.r=w,M.g=S,M.b=k,M.a=P,M=M.next;for(o=1;o<E;o++)a=s+((C<o?C:o)<<2),c+=(M.r=w=A[a])*(R=E-o),l+=(M.g=S=A[a+1])*R,f+=(M.b=k=A[a+2])*R,h+=(M.a=P=A[a+3])*R,v+=w,m+=S,x+=k,b+=P,M=M.next;for(D=O,V=z,n=0;n<t;n++)A[s+3]=P=h*L>>N,0!==P?(P=255/P,A[s]=(c*L>>N)*P,A[s+1]=(l*L>>N)*P,A[s+2]=(f*L>>N)*P):A[s]=A[s+1]=A[s+2]=0,c-=p,l-=g,f-=y,h-=d,p-=D.r,g-=D.g,y-=D.b,d-=D.a,a=I+((a=n+r+1)<C?a:C)<<2,v+=D.r=A[a],m+=D.g=A[a+1],x+=D.b=A[a+2],b+=D.a=A[a+3],c+=v,l+=m,f+=x,h+=b,D=D.next,p+=w=V.r,g+=S=V.g,y+=k=V.b,d+=P=V.a,v-=w,m-=S,x-=k,b-=P,V=V.next,s+=4;I+=t}for(n=0;n<t;n++){for(m=x=b=v=l=f=h=c=0,p=E*(w=A[s=n<<2]),g=E*(S=A[s+1]),y=E*(k=A[s+2]),d=E*(P=A[s+3]),c+=T*w,l+=T*S,f+=T*k,h+=T*P,M=O,o=0;o<E;o++)M.r=w,M.g=S,M.b=k,M.a=P,M=M.next;for(u=t,o=1;o<=r;o++)s=u+n<<2,c+=(M.r=w=A[s])*(R=E-o),l+=(M.g=S=A[s+1])*R,f+=(M.b=k=A[s+2])*R,h+=(M.a=P=A[s+3])*R,v+=w,m+=S,x+=k,b+=P,M=M.next,o<F&&(u+=t);for(s=n,D=O,V=z,i=0;i<e;i++)A[(a=s<<2)+3]=P=h*L>>N,0<P?(P=255/P,A[a]=(c*L>>N)*P,A[a+1]=(l*L>>N)*P,A[a+2]=(f*L>>N)*P):A[a]=A[a+1]=A[a+2]=0,c-=p,l-=g,f-=y,h-=d,p-=D.r,g-=D.g,y-=D.b,d-=D.a,a=n+((a=i+E)<F?a:F)*t<<2,c+=v+=D.r=A[a],l+=m+=D.g=A[a+1],f+=x+=D.b=A[a+2],h+=b+=D.a=A[a+3],D=D.next,p+=w=V.r,g+=S=V.g,y+=k=V.b,d+=P=V.a,v-=w,m-=S,x-=k,b-=P,V=V.next,s+=t}return j}(a=Y(t,e,r,n,i),n,i,o),t.getContext("2d").putImageData(a,e,r))}var Z=function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function b(t){return t.replace(/(?!\u3000)\s+/gm," ")}function v(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var K=/^[A-Z-]+$/;function J(t){t=t.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return t[2]||t[3]||t[4]}var tt=/(\[[^\]]+\])/g,et=/(#[^\s\+>~\.\[:]+)/g,rt=/(\.[^\s\+>~\.\[:]+)/g,nt=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,it=/(:[\w-]+\([^\)]*\))/gi,ot=/(:[^\s\+>~\.\[:]+)/g,at=/([^\s\+>~\.\[:]+)/g;function l(t,e){var r=t.match(e);return r?[t.replace(e," "),r.length]:[t,0]}var m=1e-8;function ut(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function w(t,e){return(t[0]*e[0]+t[1]*e[1])/(ut(t)*ut(e))}function S(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(w(t,e))}function st(t){return t*t*t}function ct(t){return 3*t*t*(1-t)}function lt(t){return 3*t*(1-t)*(1-t)}function ft(t){return(1-t)*(1-t)*(1-t)}function ht(t){return t*t}function pt(t){return 2*t*(1-t)}function gt(t){return(1-t)*(1-t)}(function(e){a=e.exports,e=Object.prototype,c=e.hasOwnProperty,t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",i=t.toStringTag||"@@toStringTag",a.wrap=y,l="suspendedStart",f="suspendedYield",h="executing",p="completed",g={},(t={})[n]=function(){return this},(o=(o=Object.getPrototypeOf)&&o(o(R([]))))&&o!==e&&c.call(o,n)&&(t=o),u=x.prototype=v.prototype=Object.create(t),(m.prototype=u.constructor=x).constructor=m,x[i]=m.displayName="GeneratorFunction",a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,i in t||(t[i]="GeneratorFunction")),t.prototype=Object.create(u),t},a.awrap=function(t){return{__await:t}},b(w.prototype),w.prototype[r]=function(){return this},a.AsyncIterator=w,a.async=function(t,e,r,n,i){void 0===i&&(i=Promise);var o=new w(y(t,e,r,n),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},b(u),u[i]="Generator",u[n]=function(){return this},u.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=R,P.prototype={constructor:P,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,g):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),g},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),g}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(r=i.completion).type&&(n=r.arg,k(i)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=s),g}};var a,s,c,t,n,r,i,l,f,h,p,g,o,u,e=a;function y(t,e,r,n){var i,o,a,u,e=e&&e.prototype instanceof v?e:v,e=Object.create(e.prototype),n=new P(n||[]);return e._invoke=(i=t,o=r,a=n,u=l,function(t,e){if(u===h)throw new Error("Generator is already running");if(u===p){if("throw"===t)throw e;return A()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r){r=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 g;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}n=d(n,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,g;n=n.arg;if(!n)return r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g;{if(!n.done)return n;r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=s)}r.delegate=null;return g}(r,a);if(r){if(r===g)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===l)throw u=p,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=h;r=d(i,o,a);if("normal"===r.type){if(u=a.done?p:f,r.arg!==g)return{value:r.arg,done:a.done}}else"throw"===r.type&&(u=p,a.method="throw",a.arg=r.arg)}}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function v(){}function m(){}function x(){}function b(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function w(a,u){var e;this._invoke=function(r,n){function t(){return new u(function(t,e){!function e(t,r,n,i){var o,t=d(a[t],a,r);if("throw"!==t.type)return(r=(o=t.arg).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 S(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 P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function R(e){if(e){var r,t=e[n];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return 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}).next=t}return{next:A}}function A(){return{value:s,done:!0}}try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})({exports:{}});var k=function(){function a(t,e,r){h(this,a),this.document=t,this.name=e,this.value=r,this.isNormalizedColor=!1}return c(a,[{key:"hasValue",value:function(){var t=this.value;return null!==t&&""!==t&&0!==t&&void 0!==t}},{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/px$/.test(t):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?t:(this.isNormalizedColor=!0,t=function(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})}(t),this.value=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=x("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=t.match(/#([^\)'"]+)/))&&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?(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:null}},{key:"getTextBaseline",value:function(){return this.hasValue()?a.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(_())(r)).ok&&(e.alpha=t.getNumber(),r=e.toRGBA())),new a(this.document,this.name,r)}}],[{key:"empty",value:function(t){return new a(t,"EMPTY","")}}]),a}(),yt=(k.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"},function(){function t(){h(this,t),this.viewPorts=[]}return c(t,[{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}}]),t}()),P=function(){function o(t,e){h(this,o),this.x=t,this.y=e}return c(o,[{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],e=e*t[1]+r*t[3]+t[5];this.x=n,this.y=e}}],[{key:"parse",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,t=x(v(t),2),r=t[0],t=t[1];return new o(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,t=x(v(t),2),r=t[0],e=void 0===r?e:r,r=t[1];return new o(e,void 0===r?e:r)}},{key:"parsePath",value:function(t){for(var e=v(t),r=e.length,n=[],i=0;i<r;i+=2)n.push(new o(e[i],e[i+1]));return n}}]),o}(),dt=function(){function e(t){h(this,e),this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}return c(e,[{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 P(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 t=this.mapXY((t||event).clientX,(t||event).clientY),e=t.x,t=t.y;this.events.push({type:"onclick",x:e,y:t,run:function(t){t.onClick&&t.onClick()}})}},{key:"onMouseMove",value:function(t){var t=this.mapXY((t||event).clientX,(t||event).clientY),e=t.x,t=t.y;this.events.push({type:"onmousemove",x:e,y:t,run:function(t){t.onMouseMove&&t.onMouseMove()}})}}]),e}(),vt="undefined"!=typeof window?window:null,mt="undefined"!=typeof fetch?fetch.bind(void 0):null,n=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.fetch,r=void 0===r?mt:r,e=e.window,e=void 0===e?vt:e;h(this,n),this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new yt,this.mouse=new dt(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=e,this.fetch=r}return c(n,[{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,s=void 0===s?0:s,c=t.minY,c=void 0===c?0:c,l=t.refX,f=t.refY,h=t.clip,h=void 0!==h&&h,p=t.clipX,p=void 0===p?0:p,t=t.clipY,t=void 0===t?0:t,n=x(b(n).replace(/^defer\s/,"").split(" "),2),g=n[0]||"xMidYMid",n=n[1]||"meet",y=i/o,d=a/u,v=Math.min(y,d),m=Math.max(y,d),l=("meet"===n&&(o*=v,u*=v),"slice"===n&&(o*=m,u*=m),new k(e,"refX",l)),e=new k(e,"refY",f),f=l.hasValue()&&e.hasValue();switch(f&&r.translate(-v*l.getPixels("x"),-v*e.getPixels("y")),h&&(l=v*p,e=v*t,r.beginPath(),r.moveTo(l,e),r.lineTo(i,e),r.lineTo(i,a),r.lineTo(l,a),r.closePath(),r.clip()),f||(h="meet"===n&&v===d,p="slice"===n&&m===d,t="meet"===n&&v===y,e="slice"===n&&m===y,/^xMid/.test(g)&&(h||p)&&r.translate(i/2-o/2,0),/YMid$/.test(g)&&(t||e)&&r.translate(0,a/2-u/2),/^xMax/.test(g)&&(h||p)&&r.translate(i-o,0),/YMax$/.test(g)&&(t||e)&&r.translate(0,a-u)),!0){case"none"===g:r.scale(y,d);break;case"meet"===n:r.scale(v,v);break;case"slice"===n:r.scale(m,m)}r.translate(-s,-c)}},{key:"start",value:function(e){var r,n,i,o=this,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=t.enableRedraw,a=void 0!==a&&a,u=t.ignoreMouse,u=void 0!==u&&u,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,g=t.scaleHeight,y=t.offsetX,d=t.offsetY,s=this.FRAMERATE,v=this.mouse,m=1e3/s;this.frameDuration=m,this.readyPromise=new Promise(function(t){o.resolveReady=t}),this.isReady()&&this.render(e,l,f,p,g,y,d),a&&(r=Date.now(),n=r,i=0,t=function t(){r=Date.now(),m<=(i=r-n)&&(n=r-i%m,o.shouldUpdate(c,h)&&(o.render(e,l,f,p,g,y,d),v.runEvents())),o.intervalId=$()(t)},u||v.start(),this.intervalId=$()(t))}},{key:"stop",value:function(){this.intervalId&&($().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,u=(c.clear(),h.width&&h.height?c.setCurrent(h.width,h.height):c.setCurrent(u,s),t.getStyle("width")),s=t.getStyle("height"),p=(!e&&(f||"number"!=typeof n&&"number"!=typeof i)&&(u.hasValue()&&(h.width=u.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),s.hasValue()&&(h.height=s.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px")))),h.clientWidth||h.width),h=h.clientHeight||h.height;e&&u.hasValue()&&s.hasValue()&&(p=u.getPixels("x"),h=s.getPixels("y")),c.setCurrent(p,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||(e=v(t.getAttribute("viewBox").getString()),s=u=0,"number"==typeof n&&((c=t.getStyle("width")).hasValue()?u=c.getPixels("x")/n:isNaN(e[2])||(u=e[2]/n)),"number"==typeof i&&((o=t.getStyle("height")).hasValue()?s=o.getPixels("y")/i:isNaN(e[3])||(s=e[3]/i)),u=u||s,s=s||u,t.getAttribute("width",!0).setValue(n),t.getAttribute("height",!0).setValue(i),(a=t.getStyle("transform",!0,!0)).setValue("".concat(a.getString()," scale(").concat(1/u,", ").concat(1/s,")"))),r||l.clearRect(0,0,p,h),t.render(l),f&&(this.isFirstRender=!1)}}]),n}(),xt=(n.defaultWindow=vt,n.defaultFetch=mt,n.defaultFetch),bt="undefined"!=typeof DOMParser?DOMParser:null,wt=function(){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=t.fetch,e=void 0===e?xt:e,t=t.DOMParser,t=void 0===t?bt:t;h(this,r),this.fetch=e,this.DOMParser=t}var e,n;return c(r,[{key:"parse",value:(n=s(u().mark(function t(e){return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(/^</.test(e))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 n.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:(e=s(u().mark(function t(e){var r;return u().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 e.apply(this,arguments)})}]),r}(),t=function(){function r(t,e){h(this,r),this.type="translate",this.point=null,this.point=P.parse(e)}return c(r,[{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])}}]),r}(),e=function(){function n(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],e=(h(this,n),this.type="rotate",this.angle=null,this.cx=0,this.cy=0,v(e));this.angle=new k(t,"angle",e[0]),this.cx=(e[1]||0)+(r[0]||0),this.cy=(e[2]||0)+(r[1]||0)}return c(n,[{key:"apply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(n.getRadians()),t.translate(-e,-r)}},{key:"unapply",value:function(t){var e=this.cx,r=this.cy,n=this.angle;t.translate(e,r),t.rotate(-1*n.getRadians()),t.translate(-e,-r)}},{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])}}]),n}(),St=function(){function r(t,e){h(this,r),this.type="scale",this.scale=null;e=P.parseScale(e);0!==e.x&&0!==e.y||(e.x=m,e.y=m),this.scale=e}return c(r,[{key:"apply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(r,e||r)}},{key:"unapply",value:function(t){var e=this.scale,r=e.x,e=e.y;t.scale(1/r,1/e||r)}},{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])}}]),r}(),kt=function(){function r(t,e){h(this,r),this.type="matrix",this.matrix=[],this.matrix=v(e)}return c(r,[{key:"apply",value:function(t){var e=this.matrix;t.transform(e[0],e[1],e[2],e[3],e[4],e[5])}},{key:"unapply",value:function(t){var e=this.matrix,r=e[0],n=e[2],i=e[4],o=e[1],a=e[3],e=e[5],u=1/(r*(+a-0*e)-n*(+o-0*e)+i*(0*o-0*a));t.transform(u*(+a-0*e),u*(0*e-+o),u*(0*i-+n),u*(+r-0*i),u*(n*e-i*a),u*(i*o-r*e))}},{key:"applyToPoint",value:function(t){t.applyTransform(this.matrix)}}]),r}();function Pt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Rt=function(){y(i,kt);var n=Pt(i);function i(t,e){var r;return h(this,i),(r=n.call(this,t,e)).type="skew",r.angle=null,r.angle=new k(t,"angle",e),r}return i}();function At(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Ct=function(){y(n,Rt);var r=At(n);function n(t,e){return h(this,n),(t=r.call(this,t,e)).type="skewX",t.matrix=[1,0,Math.tan(t.angle.getRadians()),1,0,0],t}return n}();function Et(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Tt=function(){y(n,Rt);var r=Et(n);function n(t,e){return h(this,n),(t=r.call(this,t,e)).type="skewY",t.matrix=[1,Math.tan(t.angle.getRadians()),0,1,0,0],t}return n}();var f=function(){function o(t,e,r){var n=this,t=(h(this,o),this.document=t,this.transforms=[],b(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)),i=r?v(r):[];t.forEach(function(t){var e;"none"!==t&&(e=(t=x((t=t).split("("),2))[0],t=t[1],t=(e=x([e.trim(),t.trim().replace(")","")],2))[0],e=e[1],void 0!==(t=o.transformTypes[t])&&n.transforms.push(new t(n.document,e,i)))})}return c(o,[{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),e=e.getStyle("transform-origin",!1,!0);return r.hasValue()?new o(t,r.getString(),e.getString()):null}}]),o}(),R=(f.transformTypes={translate:t,rotate:e,scale:St,matrix:kt,skewX:Ct,skewY:Tt},function(){function a(r,t){var e,n,i=this,o=2<arguments.length&&void 0!==arguments[2]&&arguments[2];h(this,a),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){e=t.nodeName;var e=K.test(e)?e.toLowerCase():e;i.attributes[e]=new k(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=x(t.split(":").map(function(t){return t.trim()}),2))[0],t=t[1],i.styles[e]=new k(r,e,t))}),e=r.definitions,(n=this.getAttribute("id")).hasValue()&&!e[n.getValue()]&&(e[n.getValue()]=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)}))}return c(a,[{key:"getAttribute",value:function(t){var e,r=this.attributes[t];return!r&&(1<arguments.length&&void 0!==arguments[1]&&arguments[1])?(e=new k(this.document,t,""),this.attributes[t]=e):r||k.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var t in this.attributes)if("href"===t||/:href$/.test(t))return this.attributes[t];return k.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(i&&i.hasValue())return this.styles[t]=i;if(!r){var i=this.parent;if(i){r=i.getStyle(t);if(r&&r.hasValue())return r}}return e?(i=new k(this.document,t,""),this.styles[t]=i):n||k.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=f.fromElement(this.document,this),e=(e&&e.apply(t),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 a?t:this.document.createElement(t);t.parent=this,a.ignoreChildTypes.includes(t.type)||this.children.push(t)}},{key:"matchesSelector",value:function(e){var t=this.node;if("function"==typeof t.matches)return t.matches(e);t=t.getAttribute("class");return!(!t||""===t)&&t.split(" ").some(function(t){if(".".concat(t)===e)return!0})}},{key:"addStylesFromStyleDefinition",value:function(){var t,e=this.document,r=e.styles,n=e.stylesSpecificity;for(t in r)if("@"!==t[0]&&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(U(t),[[e,n]])},[])}},{key:"restoreStyles",value:function(r,t){t.forEach(function(t){var t=x(t,2),e=t[0],t=t[1];r.getStyle(e,!0).setValue(t)})}}]),a}());function Ot(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}R.ignoreChildTypes=["title"];var Mt=function(){y(i,R);var n=Ot(i);function i(t,e,r){return h(this,i),n.call(this,t,e,r)}return i}();function Dt(t){t=t.trim();return/^('|")/.test(t)?t:'"'.concat(t,'"')}var A=function(){function s(t,e,r,n,i,o){h(this,s);o=o?"string"==typeof o?s.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}return c(s,[{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(Dt).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=b(t).trim().split(" "),u={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return t.forEach(function(t){switch(!0){case!u.fontStyle&&s.styles.includes(t):"inherit"!==t&&(r=t),u.fontStyle=!0;break;case!u.fontVariant&&s.variants.includes(t):"inherit"!==t&&(n=t),u.fontStyle=!0,u.fontVariant=!0;break;case!u.fontWeight&&s.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=x(t.split("/"),1),o=e[0]),u.fontStyle=!0,u.fontVariant=!0,u.fontWeight=!0,u.fontSize=!0;break;default:"inherit"!==t&&(a+=t)}}),new s(r,n,i,o,a,e)}}]),s}(),C=(A.styles="normal|italic|oblique|inherit",A.variants="normal|small-caps|inherit",A.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",function(){function i(){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;h(this,i),this.x1=t,this.y1=e,this.x2=r,this.y2=n,this.addPoint(t,e),this.addPoint(r,n)}return c(i,[{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=6*e-12*r+6*n,u=-3*e+9*r-9*n+3*i,s=3*r-3*e;0==u?0!=a&&0<(o=-s/a)&&o<1&&(t?this.addX(this.sumCubic(o,e,r,n,i)):this.addY(this.sumCubic(o,e,r,n,i))):(o=Math.pow(a,2)-4*s*u)<0||(0<(s=(-a+Math.sqrt(o))/(2*u))&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,e,r,n,i))),0<(s=(-a-Math.sqrt(o))/(2*u))&&s<1&&(t?this.addX(this.sumCubic(s,e,r,n,i)):this.addY(this.sumCubic(s,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}}]),i}());function Vt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var E=function(){y(r,R);var e=Vt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).modifiedEmSizeStack=!1,t}return c(r,[{key:"calculateOpacity",value:function(){for(var t=1,e=this;e;){var r=e.getStyle("opacity",!1,!0);r.hasValue()&&(t*=r.getNumber()),e=e.parent}return t}},{key:"setContext",value:function(t){var e,r,n,i,o,a,u=1<arguments.length&&void 0!==arguments[1]&&arguments[1];u||(a=this.getStyle("fill"),n=this.getStyle("fill-opacity"),r=this.getStyle("stroke"),o=this.getStyle("stroke-opacity"),a.isUrlDefinition()?(e=a.getFillStyleDefinition(this,n))&&(t.fillStyle=e):a.hasValue()&&("currentColor"===a.getString()&&a.setValue(this.getStyle("color").getColor()),"inherit"!==(e=a.getColor())&&(t.fillStyle="none"===e?"rgba(0,0,0,0)":e)),n.hasValue()&&(a=new k(this.document,"fill",t.fillStyle).addOpacity(n).getColor(),t.fillStyle=a),r.isUrlDefinition()?(e=r.getFillStyleDefinition(this,o))&&(t.strokeStyle=e):r.hasValue()&&("currentColor"===r.getString()&&r.setValue(this.getStyle("color").getColor()),"inherit"!==(n=r.getString())&&(t.strokeStyle="none"===n?"rgba(0,0,0,0)":n)),o.hasValue()&&(a=new k(this.document,"stroke",t.strokeStyle).addOpacity(o).getString(),t.strokeStyle=a),(e=this.getStyle("stroke-width")).hasValue()&&(r=e.getPixels(),t.lineWidth=r||m),n=this.getStyle("stroke-linecap"),o=this.getStyle("stroke-linejoin"),a=this.getStyle("stroke-miterlimit"),e=this.getStyle("paint-order"),r=this.getStyle("stroke-dasharray"),i=this.getStyle("stroke-dashoffset"),n.hasValue()&&(t.lineCap=n.getString()),o.hasValue()&&(t.lineJoin=o.getString()),a.hasValue()&&(t.miterLimit=a.getNumber()),e.hasValue()&&(t.paintOrder=e.getValue()),r.hasValue()&&"none"!==r.getString()&&(n=v(r.getString()),void 0!==t.setLineDash?t.setLineDash(n):void 0!==t.webkitLineDash?t.webkitLineDash=n:void 0===t.mozDash||1===n.length&&0===n[0]||(t.mozDash=n),o=i.getPixels(),void 0!==t.lineDashOffset?t.lineDashOffset=o:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=o:void 0!==t.mozDashOffset&&(t.mozDashOffset=o))),this.modifiedEmSizeStack=!1,void 0!==t.font&&(a=this.getStyle("font"),e=this.getStyle("font-style"),r=this.getStyle("font-variant"),n=this.getStyle("font-weight"),i=this.getStyle("font-size"),o=this.getStyle("font-family"),a=new A(e.getString(),r.getString(),n.getString(),i.hasValue()?"".concat(i.getPixels(!0),"px"):"",o.getString(),A.parse(a.getString(),t.font)),e.setValue(a.fontStyle),r.setValue(a.fontVariant),n.setValue(a.fontWeight),i.setValue(a.fontSize),o.setValue(a.fontFamily),t.font=a.toString(),i.isPixels()&&(this.document.emSize=i.getPixels(),this.modifiedEmSizeStack=!0)),u||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){d(g(r.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}();function Lt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var T=function(){y(i,E);var n=Lt(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="text",t.x=0,t.y=0,t.measureCache=-1,t}return c(i,[{key:"setContext",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],e=(d(g(i.prototype),"setContext",this).call(this,t,e),this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline());e&&(t.textBaseline=e)}},{key:"initializeCoordinates",value:function(t){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var e=this.getAttribute("dx"),r=this.getAttribute("dy");e.hasValue()&&(this.x+=e.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(t,this,0)}},{key:"getBoundingBox",value:function(r){var n=this;if("text"!==this.type)return this.getTElementBoundingBox(r);this.initializeCoordinates(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=A.parse(t.ctx.font).fontSize;return e.getStyle("font-size").getNumber(t)}},{key:"getTElementBoundingBox",value:function(t){var e=this.getFontSize();return new C(this.x,this.y-e,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,e,r){var n,i,o=e[r],a=null;return t.isArabic?(n=e.length,i=e[r-1],e=e[r+1],void 0===t.glyphs[o]||(a=t.glyphs[o][0<r&&" "!==i&&(r===n-1||" "===e)?"initial":0<r&&" "!==i&&r<n-2&&" "!==e?"medial":(0===r||" "===i)&&r<n-2&&" "!==e?"terminal":"isolated"])||"glyph"!==t.glyphs[o].type||(a=t.glyphs[o])):a=t.glyphs[o],a=a||t.missingGlyph}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var t=t||this.node,e=Array.from(t.parentNode.childNodes),r=e.indexOf(t),e=e.length-1,t=b(t.value||t.text||t.textContent||"");return 0===r&&(t=t.replace(/^[\n \t]+/,"")),t=r===e?t.replace(/[\n \t]+$/,""):t}},{key:"renderChildren",value:function(r){var t,n=this;"text"!==this.type?this.renderTElementChildren(r):(this.initializeCoordinates(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)))}},{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,e=A.parse(e.ctx.font),a=r.getStyle("font-size").getNumber(e.fontSize),u=r.getStyle("font-style").getString(e.fontStyle),s=a/o,c=i.isRTL?n.split("").reverse().join(""):n,l=v(r.getAttribute("dx").getString()),f=c.length,h=0;h<f;h++){var p=this.getGlyph(i,c,h),g=(t.translate(this.x,this.y),t.scale(s,-s),t.lineWidth);t.lineWidth=t.lineWidth*o/a,"italic"===u&&t.transform(1,0,.4,1,0,0),p.render(t),"italic"===u&&t.transform(1,0,-.4,1,0,0),t.lineWidth=g,t.scale(1/s,-1/s),t.translate(-this.x,-this.y),this.x+=a*(p.horizAdvX||i.horizAdvX)/o,void 0===l[h]||isNaN(l[h])||(this.x+=l[h])}else{e=this.x,r=this.y;"stroke"===t.paintOrder?(t.strokeStyle&&t.strokeText(n,e,r),t.fillStyle&&t.fillText(n,e,r)):(t.fillStyle&&t.fillText(n,e,r),t.strokeStyle&&t.strokeText(n,e,r))}}},{key:"getAnchorDelta",value:function(t,e,r){var n=this.getStyle("text-anchor").getString("start");if("start"===n)return 0;for(var i=e.children,o=i.length,a=null,u=0,s=r;s<o&&(a=i[s],!(r<s&&a.getAttribute("x").hasValue()||a.getAttribute("text-anchor").hasValue()));s++)u+=a.measureTextRecursive(t);return-1*("end"===n?u:u/2)}},{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"),c=i.getAttribute("text-anchor").getString("start");return 0===n&&"textNode"!==i.type&&(o.hasValue()||o.setValue(e.getAttribute("x").getValue("0")),a.hasValue()||a.setValue(e.getAttribute("y").getValue("0")),u.hasValue()||u.setValue(e.getAttribute("dx").getValue("0")),s.hasValue()||s.setValue(e.getAttribute("dy").getValue("0"))),o.hasValue()?(i.x=o.getPixels("x")+e.getAnchorDelta(t,r,n),"start"!==c&&(o=i.measureTextRecursive(t),i.x+=-1*("end"===c?o:o/2)),u.hasValue()&&(i.x+=u.getPixels("x"))):("start"!==c&&(r=i.measureTextRecursive(t),e.x+=-1*("end"===c?r:r/2)),u.hasValue()&&(e.x+=u.getPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),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,i.clearContext(t),t.restore(),i}},{key:"getChildBoundingBox",value:function(r,n,t,e){var i=this.adjustChildCoordinates(r,n,t,e),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=this.adjustChildCoordinates(r,n,t,e);i.render(r),i.children.forEach(function(t,e){n.renderChild(r,n,i,e)})}},{key:"measureTextRecursive",value:function(r){return this.children.reduce(function(t,e){return t+e.measureTextRecursive(r)},this.measureText(r))}},{key:"measureText",value:function(t){var e=this.measureCache;if(~e)return e;e=this.getText(),t=this.measureTargetText(t,e);return this.measureCache=t}},{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=v(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);r=t.measureText(e).width;return this.clearContext(t),t.restore(),r}}]),i}();function Nt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var jt=function(){y(i,T);var n=Nt(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,(this instanceof i?this.constructor:void 0)===i||r)).type="tspan",t.text=0<t.children.length?"":t.getTextFromNode(),t}return c(i,[{key:"getText",value:function(){return this.text}}]),i}();function It(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var zt=function(){y(r,jt);var e=It(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="textNode",t}return r}();var Bt=function(){function e(t){h(this,e),this.control=null,this.start=null,this.current=null,this.command="",this.tokens=[],this.i=-1,this.previousCommand="",this.points=[],this.angles=[],this.tokens=b(t.replace(/,/gm," ").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2").replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2").replace(/([0-9])([+\-])/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/(\.[0-9]*)(\.)/gm,"$1 $2").replace(/([Aa](?:\s+(?:[0-9]*\.)?[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $2 $3 ")).trim().split(" ")}return c(e,[{key:"reset",value:function(){this.i=-1,this.command="",this.previousCommand="",this.start=new P(0,0),this.control=new P(0,0),this.current=new P(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function(){return this.i>=this.tokens.length-1}},{key:"isCommandOrEnd",value:function(){if(this.isEnd())return!0;var t=this.i,e=this.tokens;return/^[A-Za-z]$/.test(e[t+1])}},{key:"isRelativeCommand",value:function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0;default:return!1}}},{key:"getToken",value:function(){return this.i++,this.tokens[this.i]}},{key:"getScalar",value:function(){return parseFloat(this.getToken())}},{key:"nextCommand",value:function(){this.previousCommand=this.command,this.command=this.getToken()}},{key:"getPoint",value:function(){var t=new P(this.getScalar(),this.getScalar());return this.makeAbsolute(t)}},{key:"getAsControlPoint",value:function(){var t=this.getPoint();return this.control=t}},{key:"getAsCurrentPoint",value:function(){var t=this.getPoint();return this.current=t}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.toLowerCase();if("c"!==t&&"s"!==t&&"q"!==t&&"t"!==t)return this.current;var t=this.current,e=t.x,t=t.y,r=this.control,n=r.x,r=r.y;return new P(2*e-n,2*t-r)}},{key:"makeAbsolute",value:function(t){var e,r;return this.isRelativeCommand()&&(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}}]),e}();function Ft(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var o=function(){y(i,E);var n=Ft(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="path",t.pathParser=null,t.pathParser=new Bt(t.getAttribute("d").getString()),t}return c(i,[{key:"path",value:function(t){var e=this.pathParser,r=new C;for(e.reset(),t&&t.beginPath();!e.isEnd();)switch(e.nextCommand(),e.command){case"M":case"m":this.pathM(t,r);break;case"L":case"l":this.pathL(t,r);break;case"H":case"h":this.pathH(t,r);break;case"V":case"v":this.pathV(t,r);break;case"C":case"c":this.pathC(t,r);break;case"S":case"s":this.pathS(t,r);break;case"Q":case"q":this.pathQ(t,r);break;case"T":case"t":this.pathT(t,r);break;case"A":case"a":this.pathA(t,r);break;case"Z":case"z":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"),r=(""!==t.fillStyle&&("inherit"!==e.getString("inherit")?t.fill(e.getString()):t.fill()),""!==t.strokeStyle&&t.stroke(),this.getMarkers());if(r){var n,i,o=r.length-1,e=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),u=this.getStyle("marker-end");if(e.isUrlDefinition()&&(e=e.getDefinition(),n=(i=x(r[0],2))[0],i=i[1],e.render(t,n,i)),a.isUrlDefinition())for(var s=a.getDefinition(),c=1;c<o;c++){var l=x(r[c],2),f=l[0],l=l[1];s.render(t,f,l)}u.isUrlDefinition()&&(e=u.getDefinition(),i=(n=x(r[o],2))[0],a=n[1],e.render(t,i,a))}}},{key:"pathM",value:function(t,e){var r=this.pathParser,n=r.getAsCurrentPoint(),i=n.x,o=n.y;for(r.addMarker(n),e.addPoint(i,o),t&&t.moveTo(i,o),r.start=r.current;!r.isCommandOrEnd();){var a=r.getAsCurrentPoint(),u=a.x,s=a.y;r.addMarker(a,r.start),e.addPoint(u,s),t&&t.lineTo(u,s)}}},{key:"pathL",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsCurrentPoint(),o=i.x,a=i.y;r.addMarker(i,n),e.addPoint(o,a),t&&t.lineTo(o,a)}}},{key:"pathH",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new P((r.isRelativeCommand()?n.x:0)+r.getScalar(),n.y);r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathV",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=new P(n.x,(r.isRelativeCommand()?n.y:0)+r.getScalar());r.addMarker(i,n),r.current=i,e.addPoint(i.x,i.y),t&&t.lineTo(i.x,i.y)}}},{key:"pathC",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getPoint(),o=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathS",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint(),o=r.getAsControlPoint(),a=r.getAsCurrentPoint();r.addMarker(a,o,i),e.addBezierCurve(n.x,n.y,i.x,i.y,o.x,o.y,a.x,a.y),t&&t.bezierCurveTo(i.x,i.y,o.x,o.y,a.x,a.y)}}},{key:"pathQ",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getAsControlPoint(),o=r.getAsCurrentPoint();r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathT",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getReflectedControlPoint(),o=(r.control=i,r.getAsCurrentPoint());r.addMarker(o,i,i),e.addQuadraticCurve(n.x,n.y,i.x,i.y,o.x,o.y),t&&t.quadraticCurveTo(i.x,i.y,o.x,o.y)}}},{key:"pathA",value:function(t,e){for(var r=this.pathParser;!r.isCommandOrEnd();){var n=r.current,i=r.getScalar(),o=r.getScalar(),a=r.getScalar()*(Math.PI/180),u=r.getScalar(),s=r.getScalar(),c=r.getAsCurrentPoint(),l=new P(Math.cos(a)*(n.x-c.x)/2+Math.sin(a)*(n.y-c.y)/2,-Math.sin(a)*(n.x-c.x)/2+Math.cos(a)*(n.y-c.y)/2),f=Math.pow(l.x,2)/Math.pow(i,2)+Math.pow(l.y,2)/Math.pow(o,2),f=(1<f&&(i*=Math.sqrt(f),o*=Math.sqrt(f)),(u===s?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(o,2)-Math.pow(i,2)*Math.pow(l.y,2)-Math.pow(o,2)*Math.pow(l.x,2))/(Math.pow(i,2)*Math.pow(l.y,2)+Math.pow(o,2)*Math.pow(l.x,2)))),u=(isNaN(f)&&(f=0),new P(f*i*l.y/o,f*-o*l.x/i)),f=new P((n.x+c.x)/2+Math.cos(a)*u.x-Math.sin(a)*u.y,(n.y+c.y)/2+Math.sin(a)*u.x+Math.cos(a)*u.y),n=S([1,0],[(l.x-u.x)/i,(l.y-u.y)/o]),h=[(l.x-u.x)/i,(l.y-u.y)/o],l=[(-l.x-u.x)/i,(-l.y-u.y)/o],u=S(h,l),p=(w(h,l)<=-1&&(u=Math.PI),1-s?1:-1),h=n+(u=1<=w(h,l)?0:u)/2*p,l=new P(f.x+i*Math.cos(h),f.y+o*Math.sin(h));r.addMarkerAngle(l,h-p*Math.PI/2),r.addMarkerAngle(c,h-p*Math.PI),e.addPoint(c.x,c.y),!t||isNaN(n)||isNaN(u)||(l=o<i?i:o,h=o<i?1:i/o,p=o<i?o/i:1,t.translate(f.x,f.y),t.rotate(a),t.scale(h,p),t.arc(0,0,l,n,n+u,Boolean(1-s)),t.scale(1/h,1/p),t.rotate(-a),t.translate(-f.x,-f.y))}}},{key:"pathZ",value:function(t,e){var r=this.pathParser;t&&e.x1!==e.x2&&e.y1!==e.y2&&t.closePath(),r.current=r.start}}]),i}();function $t(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var O=function(){y(p,E);var e=$t(p);function p(){var t;return h(this,p),(t=e.apply(this,arguments)).type="svg",t.root=!1,t}return c(p,[{key:"clearContext",value:function(t){d(g(p.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"setContext",value:function(t){var e=this.document,r=e.screen,n=e.window,i=t.canvas,i=(r.setDefaults(t),i.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle&&(t.font=n.getComputedStyle(i).getPropertyValue("font"),(n=new k(e,"fontSize",A.parse(t.font).fontSize)).hasValue()&&(e.rootEmSize=n.getPixels("y"),e.emSize=e.rootEmSize)),d(g(p.prototype),"setContext",this).call(this,t),this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),r.viewPort),n=i.width,i=i.height,o=(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"),this.getAttribute("refX")),a=this.getAttribute("refY"),u=this.getAttribute("viewBox"),u=u.hasValue()?v(u.getString()):null,s=!this.root&&"visible"!==this.getAttribute("overflow").getValue("hidden"),c=0,l=0,f=0,h=0;u&&(c=u[0],l=u[1]),this.root||(n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y"),"marker"===this.type&&(f=c,h=l,l=c=0)),r.viewPort.setCurrent(n,i),u&&(n=u[2],i=u[3]),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:r.viewPort.width,desiredWidth:n,height:r.viewPort.height,desiredHeight:i,minX:c,minY:l,refX:o.getValue(),refY:a.getValue(),clip:s,clipX:f,clipY:h}),u&&(r.viewPort.removeCurrent(),r.viewPort.setCurrent(n,i))}},{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()&&(r=this.getStyle("width"),n=this.getStyle("height"),r.hasValue()&&r.setValue("".concat(t,"px")),n.hasValue()&&n.setValue("".concat(e,"px")))}}]),p}();function _t(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var qt=function(){y(r,o);var e=_t(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="rect",t}return c(r,[{key:"path",value:function(t){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").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&&(a=(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+a*u,r,e+n,r+s-a*s,e+n,r+s),t.lineTo(e+n,r+i-s),t.bezierCurveTo(e+n,r+i-s+a*s,e+n-u+a*u,r+i,e+n-u,r+i),t.lineTo(e+u,r+i),t.bezierCurveTo(e+u-a*u,r+i,e,r+i-s+a*s,e,r+i-s),t.lineTo(e,r+s),t.bezierCurveTo(e,r+s-a*s,e+u-a*u,r,e+u,r),t.closePath())),new C(e,r,e+n,r+i)}},{key:"getMarkers",value:function(){return null}}]),r}();function Gt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}t=function(){y(r,o);var e=Gt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="circle",t}return c(r,[{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 C(e-n,r-n,e+n,r+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Ut(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}e=function(){y(r,o);var e=Ut(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="ellipse",t}return c(r,[{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 C(i-r,o-n,i+r,o+n)}},{key:"getMarkers",value:function(){return null}}]),r}();function Wt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}St=function(){y(r,o);var e=Wt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="line",t}return c(r,[{key:"getPoints",value:function(){return[new P(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new P(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var e=x(this.getPoints(),2),r=e[0],n=r.x,r=r.y,e=e[1],i=e.x,e=e.y;return t&&(t.beginPath(),t.moveTo(n,r),t.lineTo(i,e)),new C(n,r,i,e)}},{key:"getMarkers",value:function(){var t=x(this.getPoints(),2),e=t[0],t=t[1],r=e.angleTo(t);return[[e,r],[t,r]]}}]),r}();function Ht(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Xt=function(){y(i,o);var n=Ht(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="polyline",t.points=[],t.points=P.parsePath(t.getAttribute("points").getString()),t}return c(i,[{key:"path",value:function(r){var t=this.points,e=x(t,1)[0],n=e.x,e=e.y,i=new C(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}}]),i}();function Yt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}Ct=function(){y(i,Xt);var e=Yt(i);function i(){var t;return h(this,i),(t=e.apply(this,arguments)).type="polygon",t}return c(i,[{key:"path",value:function(t){var e=d(g(i.prototype),"path",this).call(this,t),r=x(this.points,1)[0],n=r.x,r=r.y;return t&&(t.lineTo(n,r),t.closePath()),e}}]),i}();function Qt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}Tt=function(){y(r,R);var e=Qt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="pattern",t}return c(r,[{key:"createPattern",value:function(t,e,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),o=new O(this.document,null),a=(o.attributes.viewBox=new k(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new k(this.document,"width","".concat(n,"px")),o.attributes.height=new k(this.document,"height","".concat(i,"px")),o.attributes.transform=new k(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children,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 k(this.document,"x",s*a.width),o.attributes.y=new k(this.document,"y",c*a.height),o.render(u),u.restore();return t.createPattern(a,"repeat")}}]),r}();function Zt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Kt=function(){y(r,R);var e=Zt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="marker",t}return c(r,[{key:"render",value:function(t,e,r){var n,i,o,a;e&&(n=e.x,e=e.y,i=this.getAttribute("orient").getValue("auto"),o=this.getAttribute("markerUnits").getValue("strokeWidth"),t.translate(n,e),"auto"===i&&t.rotate(r),"strokeWidth"===o&&t.scale(t.lineWidth,t.lineWidth),t.save(),(a=new O(this.document,null)).type=this.type,a.attributes.viewBox=new k(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.refX=new k(this.document,"refX",this.getAttribute("refX").getValue()),a.attributes.refY=new k(this.document,"refY",this.getAttribute("refY").getValue()),a.attributes.width=new k(this.document,"width",this.getAttribute("markerWidth").getValue()),a.attributes.height=new k(this.document,"height",this.getAttribute("markerHeight").getValue()),a.attributes.overflow=new k(this.document,"overflow",this.getAttribute("overflow").getValue()),a.attributes.fill=new k(this.document,"fill",this.getAttribute("fill").getColor("black")),a.attributes.stroke=new k(this.document,"stroke",this.getAttribute("stroke").getValue("none")),a.children=this.children,a.render(t),t.restore(),"strokeWidth"===o&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===i&&t.rotate(-r),t.translate(-n,-e))}}]),r}();function Jt(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var te=function(){y(r,R);var e=Jt(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="defs",t}return c(r,[{key:"render",value:function(){}}]),r}();function ee(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var re=function(){y(r,E);var e=ee(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="g",t}return c(r,[{key:"getBoundingBox",value:function(e){var r=new C;return this.children.forEach(function(t){r.addBoundingBox(t.getBoundingBox(e))}),r}}]),r}();function ne(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var ie=function(){y(o,R);var i=ne(o);function o(t,e,r){h(this,o),(t=i.call(this,t,e,r)).attributesToInherit=["gradientUnits"],t.stops=[];var e=p(t),n=e.stops;return e.children.forEach(function(t){"stop"===t.type&&n.push(t)}),t}return c(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,a,i=i.stops,u=this.getGradient(t,e);return u?(i.forEach(function(t){u.addColorStop(t.offset,n.addParentOpacity(r,t.color))}),this.getAttribute("gradientTransform").hasValue()?(a=(e=(t=this.document).screen).MAX_VIRTUAL_PIXELS,e=x(e.viewPort.viewPorts,1)[0],(o=new qt(t,null)).attributes.x=new k(t,"x",-a/3),o.attributes.y=new k(t,"y",-a/3),o.attributes.width=new k(t,"width",a),o.attributes.height=new k(t,"height",a),(a=new re(t,null)).attributes.transform=new k(t,"transform",this.getAttribute("gradientTransform").getValue()),a.children=[o],(o=new O(t,null)).attributes.x=new k(t,"x",0),o.attributes.y=new k(t,"y",0),o.attributes.width=new k(t,"width",e.width),o.attributes.height=new k(t,"height",e.height),o.children=[a],(t=(a=t.createCanvas(e.width,e.height)).getContext("2d")).fillStyle=u,o.render(t),t.createPattern(a,"no-repeat")):u):this.addParentOpacity(r,i[i.length-1].color)}},{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 k(this.document,"color",e).addOpacity(t).getColor():e}}]),o}();function oe(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var ae=function(){y(i,ie);var n=oe(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="linearGradient",t.attributesToInherit.push("x1","y1","x2","y2"),t}return c(i,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),e=r?e.getBoundingBox(t):null;if(r&&!e)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 n=r?e.x+e.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),i=r?e.y+e.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),o=r?e.x+e.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),r=r?e.y+e.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===o&&i===r?null:t.createLinearGradient(n,i,o,r)}}]),i}();function ue(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var se=function(){y(i,ie);var n=ue(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="radialGradient",t.attributesToInherit.push("cx","cy","r","fx","fy","fr"),t}return c(i,[{key:"getGradient",value:function(t,e){var r="objectBoundingBox"===this.getGradientUnits(),e=e.getBoundingBox(t);if(r&&!e)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 n=r?e.x+e.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),i=r?e.y+e.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),o=n,a=i,r=(this.getAttribute("fx").hasValue()&&(o=r?e.x+e.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(a=r?e.y+e.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y")),r?(e.width+e.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels()),e=this.getAttribute("fr").getPixels();return t.createRadialGradient(o,a,e,n,i,r)}}]),i}();function ce(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var le=function(){y(o,R);var i=ce(o);function o(t,e,r){h(this,o),(t=i.call(this,t,e,r)).type="stop";var e=Math.max(0,Math.min(1,t.getAttribute("offset").getNumber())),r=t.getStyle("stop-opacity"),n=t.getStyle("stop-color",!0);return""===n.getString()&&n.setValue("#000"),r.hasValue()&&(n=n.addOpacity(r)),t.offset=e,t.color=n.getColor(),t}return o}();function fe(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var he=function(){y(i,R);var n=fe(i);function i(t,e,r){return h(this,i),(e=n.call(this,t,e,r)).type="animate",e.duration=0,e.initialValue=null,e.initialUnits="",e.removed=!1,e.frozen=!1,t.screen.animations.push(p(e)),e.begin=e.getAttribute("begin").getMilliseconds(),e.maxDuration=e.begin+e.getAttribute("dur").getMilliseconds(),e.from=e.getAttribute("from"),e.to=e.getAttribute("to"),e.values=e.getAttribute("values"),e.values.hasValue()&&e.values.setValue(e.values.getString().split(";")),e}return c(i,[{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,e=n.getNumber()+(e.getNumber()-n.getNumber())*r;return"%"===t&&(e*=100),"".concat(e).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 k(n,"from",parseFloat(i.getValue()[e])),o.to=new k(n,"to",parseFloat(i.getValue()[r])),o.progress=(t-e)/(r-e)):(o.from=this.from,o.to=this.to),o}}]),i}();function pe(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var ge=function(){y(r,he);var e=pe(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="animateColor",t}return c(r,[{key:"calcValue",value:function(){var t,e,r=this.getProgress(),n=r.progress,i=r.from,r=r.to,i=new(_())(i.getColor()),r=new(_())(r.getColor());return i.ok&&r.ok?(t=i.r+(r.r-i.r)*n,e=i.g+(r.g-i.g)*n,r=i.b+(r.b-i.b)*n,"rgb(".concat(parseInt(t,10),", ").concat(parseInt(e,10),", ").concat(parseInt(r,10),")")):this.getAttribute("from").getColor()}}]),r}();function ye(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var de=function(){y(r,he);var e=ye(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="animateTransform",t}return c(r,[{key:"calcValue",value:function(){var t=this.getProgress(),r=t.progress,e=t.from,t=t.to,e=v(e.getString()),n=v(t.getString());return e.map(function(t,e){return t+(n[e]-t)*r}).join(" ")}}]),r}();function ve(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){var e,r;if(Array.isArray(t)||(t=function(t,e){if(t){if("string"==typeof t)return me(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?me(t,e):void 0}}(t)))return e=0,{s:r=function(){},n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r};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 n,i,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function me(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 xe(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var be=function(){y(f,R);var l=xe(f);function f(t,e,r){h(this,f),(n=l.call(this,t,e,r)).type="font",n.glyphs={},n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber();var n,i,o=t.definitions,a=ve(p(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()]=p(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 c(f,[{key:"render",value:function(){}}]),f}();function we(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Se=function(){y(i,R);var n=we(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="font-face",t.ascent=t.getAttribute("ascent").getNumber(),t.descent=t.getAttribute("descent").getNumber(),t.unitsPerEm=t.getAttribute("units-per-em").getNumber(),t}return i}();function ke(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Pe=function(){y(r,o);var e=ke(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="missing-glyph",t.horizAdvX=0,t}return r}();function Re(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Ae=function(){y(i,o);var n=Re(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="glyph",t.horizAdvX=t.getAttribute("horiz-adv-x").getNumber(),t.unicode=t.getAttribute("unicode").getString(),t.arabicForm=t.getAttribute("arabic-form").getString(),t}return i}();function Ce(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Ee=function(){y(r,T);var e=Ce(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="tref",t}return c(r,[{key:"getText",value:function(){var t=this.getHrefAttribute().getDefinition();if(t){t=t.children[0];if(t)return t.getText()}return""}}]),r}();function Te(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Oe=function(){y(o,T);var n=Te(o);function o(t,e,r){h(this,o),(t=n.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 c(o,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){var e,r,n,i;this.hasText?(d(g(o.prototype),"renderChildren",this).call(this,t),n=this.document,e=this.x,r=this.y,i=n.screen.mouse,n=new k(n,"fontSize",A.parse(n.ctx.font).fontSize),i.isWorking()&&i.checkBoundingBox(this,new C(e,r-n.getPixels("y"),e+this.measureText(t),r))):0<this.children.length&&((i=new re(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}();function Me(t){if("undefined"==typeof Symbol||null==t[Symbol.iterator]){var e,r;if(Array.isArray(t)||(t=function(t,e){if(t){if("string"==typeof t)return De(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(t,e):void 0}}(t)))return e=0,{s:r=function(){},n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:r};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 n,i,o=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return o=t.done,t},e:function(t){a=!0,i=t},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw i}}}}function De(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 Ve(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Le=function(){y(i,T);var n=Ve(i);function i(t,e,r){h(this,i),(t=n.call(this,t,e,r)).type="textPath",t.textWidth=0,t.textHeight=0,t.pathLength=-1,t.glyphInfo=null,t.letterSpacingCache=[],t.measuresCache=new Map([["",0]]);e=t.getHrefAttribute().getDefinition();return t.text=t.getTextFromNode(),t.dataArray=t.parsePathData(e),t}return c(i,[{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.command,r=t.points;switch(e){case"L":p&&p.lineTo(r[0],r[1]);break;case"M":p&&p.moveTo(r[0],r[1]);break;case"C":p&&p.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case"Q":p&&p.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case"A":var n=r[0],i=r[1],o=r[2],a=r[3],u=r[4],s=r[5],c=r[6],l=r[7],f=a<o?o:a,h=a<o?1:o/a,a=a<o?a/o:1;p&&(p.translate(n,i),p.rotate(c),p.scale(h,a),p.arc(0,0,f,u,u+s,Boolean(1-l)),p.scale(1/h,1/a),p.rotate(-c),p.translate(-n,-i));break;case"z":p&&p.closePath()}})}},{key:"renderChildren",value:function(i){this.setTextData(i),i.save();var o=this.parent.getStyle("text-decoration").getString(),a=this.getFontSize(),u=this.glyphInfo,t=i.fillStyle;"underline"===o&&i.beginPath(),u.forEach(function(t,e){var r=t.p0,n=t.p1,t=t.text;i.save(),i.translate(r.x,r.y),i.rotate(u[e].rotation),i.fillStyle&&i.fillText(t,0,0),i.strokeStyle&&i.strokeText(t,0,0),i.restore(),"underline"===o&&(0===e&&i.moveTo(r.x,r.y+a/8),i.lineTo(n.x,n.y+a/5))}),"underline"===o&&(i.lineWidth=a/20,i.strokeStyle=t,i.stroke(),i.closePath()),i.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){t=this.measureText(t,a)," "===a&&"justify"===e&&r<n&&(t+=(n-r)/i),-1<u&&(o+=this.getLetterSpacingAt(u)),a=this.textHeight/20,e={p0:this.getEquidistantPointOnPath(o,a),p1:this.getEquidistantPointOnPath(o+t,a)};return{offset:o+=t,segment:e}}},{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=v(this.parent.getAttribute("dx").getString("0")),s=this.parent.getStyle("text-anchor").getString("start"),r=this.getStyle("letter-spacing"),n=this.parent.getStyle("letter-spacing"),c=0,l=(r.hasValue()&&"inherit"!==r.getValue()?r.hasValue()&&"initial"!==r.getValue()&&"unset"!==r.getValue()&&(c=r.getPixels()):c=n.getPixels(),[]),f=t.length;this.letterSpacingCache=l;for(var h=0;h<f;h++)l.push(void 0!==e[h]?e[h]:c);var r=l.reduce(function(t,e){return t+e||0},0),p=(this.textWidth=this.measureText(i),this.textHeight=this.getFontSize(),Math.max(this.textWidth+r,0)),g=(this.glyphInfo=[],this.getPathLength()),n=this.getStyle("startOffset").getNumber(0)*g,y="end"!==s&&"right"!==s?"middle"!==s&&"center"!==s?0:-p/2:-p;y+=n,a.forEach(function(t,e){var r,t=o.findSegmentToFitChar(i,s,p,g,u,y,t,e),n=t.offset,t=t.segment;y=n,t.p0&&t.p1&&(n=o.getLineLength(t.p0.x,t.p0.y,t.p1.x,t.p1.y),n=o.getPointOnLine(0+n/2,t.p0.x,t.p0.y,t.p1.x,t.p1.y),r=Math.atan2(t.p1.y-t.p0.y,t.p1.x-t.p0.x),o.glyphInfo.push({transposeX:n.x,transposeY:n.y,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,n=n?n.y:0,o="",a=[],u=(r.nextCommand(),r.command.toUpperCase());switch(r.command){case"M":case"m":o=this.pathM(r,a);break;case"L":case"l":o=this.pathL(r,a);break;case"H":case"h":o=this.pathH(r,a);break;case"V":case"v":o=this.pathV(r,a);break;case"C":case"c":this.pathC(r,a);break;case"S":case"s":o=this.pathS(r,a);break;case"Q":case"q":this.pathQ(r,a);break;case"T":case"t":o=this.pathT(r,a);break;case"A":case"a":a=this.pathA(r);break;case"Z":case"z":r.current=r.start}"Z"!==u?e.push({command:o||u,points:a,start:{x:i,y:n},pathLength:this.calcLength(i,n,o||u,a)}):e.push({command:"z",points:[],pathLength:0})}return e}},{key:"pathM",value:function(t,e){var r=t.getAsCurrentPoint();for(e.push(r.x,r.y),t.start=t.current;!t.isCommandOrEnd();){var n=t.getAsCurrentPoint();return e.push(n.x,n.y),"L"}}},{key:"pathL",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsCurrentPoint();e.push(r.x,r.y)}return"L"}},{key:"pathH",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,r=new P((t.isRelativeCommand()?r.x:0)+t.getScalar(),r.y);e.push(r.x,r.y),t.current=r}return"L"}},{key:"pathV",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.current,r=new P(r.x,(t.isRelativeCommand()?r.y:0)+t.getScalar());e.push(r.x,r.y),t.current=r}return"L"}},{key:"pathC",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}}},{key:"pathS",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint(),n=t.getAsControlPoint(),i=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y,i.x,i.y)}return"C"}},{key:"pathQ",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getAsControlPoint(),n=t.getAsCurrentPoint();e.push(r.x,r.y,n.x,n.y)}}},{key:"pathT",value:function(t,e){for(;!t.isCommandOrEnd();){var r=t.getReflectedControlPoint(),n=(t.control=r,t.getAsCurrentPoint());e.push(r.x,r.y,n.x,n.y)}return"Q"}},{key:"pathA",value:function(t){for(;!t.isCommandOrEnd();){var e=t.current,r=t.getScalar(),n=t.getScalar(),i=t.getScalar()*(Math.PI/180),o=t.getScalar(),a=t.getScalar(),u=t.getAsCurrentPoint(),s=new P(Math.cos(i)*(e.x-u.x)/2+Math.sin(i)*(e.y-u.y)/2,-Math.sin(i)*(e.x-u.x)/2+Math.cos(i)*(e.y-u.y)/2),c=Math.pow(s.x,2)/Math.pow(r,2)+Math.pow(s.y,2)/Math.pow(n,2),c=(1<c&&(r*=Math.sqrt(c),n*=Math.sqrt(c)),(o===a?-1:1)*Math.sqrt((Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(s.y,2)-Math.pow(n,2)*Math.pow(s.x,2))/(Math.pow(r,2)*Math.pow(s.y,2)+Math.pow(n,2)*Math.pow(s.x,2)))),o=(isNaN(c)&&(c=0),new P(c*r*s.y/n,c*-n*s.x/r)),c=new P((e.x+u.x)/2+Math.cos(i)*o.x-Math.sin(i)*o.y,(e.y+u.y)/2+Math.sin(i)*o.x+Math.cos(i)*o.y),e=S([1,0],[(s.x-o.x)/r,(s.y-o.y)/n]),u=[(s.x-o.x)/r,(s.y-o.y)/n],s=[(-s.x-o.x)/r,(-s.y-o.y)/n],o=S(u,s);return w(u,s)<=-1&&(o=Math.PI),1<=w(u,s)&&(o=0),0===a&&0<o&&(o-=2*Math.PI),1===a&&o<0&&(o+=2*Math.PI),[c.x,c.y,r,n,e,o,i,a]}}},{key:"calcLength",value:function(t,e,r,n){var i=0,o=null,a=null,u=0;switch(r){case"L":return this.getLineLength(t,e,n[0],n[1]);case"C":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"Q":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"A":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+m),s=Math.sqrt(t*t/(1+u*u)),c=(n<e&&(s*=-1),u*s),l=null;if(n===e)l={x:o,y:a+c};else if((a-r)/(o-e+m)==u)l={x:o+s,y:a+c};else{var f=this.getLineLength(e,r,n,i);if(f<m)return null;var h=(o-e)*(n-e)+(a-r)*(i-r),f=this.getLineLength(o,a,o=e+(h/=f*f)*(n-e),a=r+h*(i-r)),h=Math.sqrt(t*t-f*f),s=Math.sqrt(h*h/(1+u*u));n<e&&(s*=-1),l={x:o+s,y:a+(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=Me(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.command){case"L":n=this.getPointOnLine(u,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case"A":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"C":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"Q":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*st(t)+o*ct(t)+n*lt(t)+e*ft(t),y:s*st(t)+a*ct(t)+i*lt(t)+r*ft(t)}}},{key:"getPointOnQuadraticBezier",value:function(t,e,r,n,i,o,a){return{x:o*ht(t)+n*pt(t)+e*gt(t),y:a*ht(t)+i*pt(t)+r*gt(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),n=n*Math.sin(i);return{x:t+(r*a-n*o),y:e+(r*o+n*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&&i<=(o+=this.getLineLength(u.x,u.y,s.x,s.y))&&(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;e=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[e]||null}}]),i}();function Ne(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var je=function(){y(o,E);var e,r,i=Ne(o);function o(t,e,r){h(this,o),(e=i.call(this,t,e,r)).type="image",e.loaded=!1;r=e.getHrefAttribute().getString();if(!r)return a(e);var n=/\.svg$/.test(r);return t.images.push(p(e)),n?e.loadSvg(r):e.loadImage(r),e.isSvg=n,e}return c(o,[{key:"loadImage",value:(r=s(u().mark(function t(e){var r;return u().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);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=s(u().mark(function t(e){var r;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.document.fetch(e);case 3:return r=t.sent,t.next=6,r.text();case 6:r=t.sent,this.image=r,t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0);case 13:this.loaded=!0;case 14:case"end":return t.stop()}},t,this,[[0,10]])})),function(t){return e.apply(this,arguments)})},{key:"renderChildren",value:function(t){var e=this.document,r=this.image,n=this.loaded,i=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");n&&r&&a&&u&&(t.save(),this.isSvg?e.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:i,offsetY:o,scaleWidth:a,scaleHeight:u}).render():(n=this.image,t.translate(i,o),e.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:n.width,height:u,desiredHeight:n.height}),this.loaded&&(void 0===n.complete||n.complete)&&t.drawImage(n,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 C(t,e,t+r,e+n)}}]),o}();function Ie(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var ze=function(){y(r,E);var e=Ie(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="symbol",t}return c(r,[{key:"render",value:function(t){}}]),r}(),Be=function(){function e(t){h(this,e),this.document=t,this.loaded=!1,t.fonts.push(this)}var r;return c(e,[{key:"load",value:(r=s(u().mark(function t(e,r){var n,i;return u().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);case 12:this.loaded=!0;case 13:case"end":return t.stop()}},t,this,[[0,9]])})),function(t,e){return r.apply(this,arguments)})}]),e}();function Fe(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var $e=function(){y(n,R);var r=Fe(n);function n(s,t,e){return h(this,n),(e=r.call(this,s,t,e)).type="style",b(Array.from(t.childNodes).map(function(t){return t.data}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach(function(t){var e,u,t=t.trim();t&&(e=(t=t.split("{"))[0].split(","),u=t[1].split(";"),e.forEach(function(t){var n,e,r,i,o,a,t=t.trim();t&&(n=s.styles[t]||{},u.forEach(function(t){var e=t.indexOf(":"),r=t.substr(0,e).trim(),t=t.substr(e+1,t.length-e).trim();r&&t&&(n[r]=new k(s,r,t))}),s.styles[t]=n,s.stylesSpecificity[t]=(r=[0,0,0],e=(i=x(l(e=(e=t).replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),tt),2))[0],i=i[1],r[1]+=i,o=x(l(e,et),2),e=o[0],i=o[1],r[0]+=i,o=x(l(e,rt),2),e=o[0],i=o[1],r[1]+=i,o=x(l(e,nt),2),e=o[0],i=o[1],r[2]+=i,o=x(l(e,it),2),e=o[0],i=o[1],r[1]+=i,o=x(l(e,ot),2),e=o[0],i=o[1],r[1]+=i,e=(o=x(l(e=e.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),at),2))[0],i=o[1],r[2]+=i,r.join("")),"@font-face"===t&&(a=n["font-family"].getString().replace(/"|'/g,""),n.src.getString().split(",").forEach(function(t){0<t.indexOf('format("svg")')&&((t=J(t))&&new Be(s).load(a,t))})))}))}),e}return n}();function _e(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}$e.parseExternalUrl=J;var qe=function(){y(n,E);var e=_e(n);function n(){var t;return h(this,n),(t=e.apply(this,arguments)).type="use",t}return c(n,[{key:"setContext",value:function(t){d(g(n.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 O(n,null)).attributes.viewBox=new k(n,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new k(n,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new k(n,"overflow",i.getAttribute("overflow").getString()),e.children=i.children),"svg"===e.type&&(i=this.getStyle("width",!1,!0),r=this.getStyle("height",!1,!0),i.hasValue()&&(e.attributes.width=new k(n,"width",i.getString())),r.hasValue()&&(e.attributes.height=new k(n,"height",r.getString()))),i=e.parent,e.parent=this,e.render(t),e.parent=i)}},{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 f.fromElement(t,e)}},{key:"element",get:function(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),n}();function Ge(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function M(t,e,r,n,i,o){return t[r*n*4+4*e+o]}function Ue(t,e,r,n,i,o,a){t[r*n*4+4*e+o]=a}function D(t,e,r){t=t[e];return t*(t<0?r-255:r)}function V(t,e,r,n){return e+Math.cos(t)*r+Math.sin(t)*n}var We=function(){y(a,R);var o=Ge(a);function a(t,e,r){h(this,a),(t=o.call(this,t,e,r)).type="feColorMatrix";var n=v(t.getAttribute("values").getString());switch(t.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=[V(i,.213,.787,-.213),V(i,.715,-.715,-.715),V(i,.072,-.072,.928),0,0,V(i,.213,-.213,.143),V(i,.715,.285,.14),V(i,.072,-.072,-.283),0,0,V(i,.213,-.213,-.787),V(i,.715,-.715,.715),V(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 t.matrix=n,t.includeOpacity=t.getAttribute("includeOpacity").hasValue(),t}return c(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=M(u.data,c,s,n,0,0),f=M(u.data,c,s,n,0,1),h=M(u.data,c,s,n,0,2),p=M(u.data,c,s,n,0,3),g=D(a,0,l)+D(a,1,f)+D(a,2,h)+D(a,3,p)+D(a,4,1),y=D(a,5,l)+D(a,6,f)+D(a,7,h)+D(a,8,p)+D(a,9,1),d=D(a,10,l)+D(a,11,f)+D(a,12,h)+D(a,13,p)+D(a,14,1),l=D(a,15,l)+D(a,16,f)+D(a,17,h)+D(a,18,p)+D(a,19,1);o&&(g=y=d=0,l*=p/255),Ue(u.data,c,s,n,0,0,g),Ue(u.data,c,s,n,0,1,y),Ue(u.data,c,s,n,0,2,d),Ue(u.data,c,s,n,0,3,l)}t.clearRect(0,0,n,i),t.putImageData(u,0,0)}}]),a}();function He(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Xe=function(){y(p,R);var e=He(p);function p(){var t;return h(this,p),(t=e.apply(this,arguments)).type="mask",t}return c(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"),s=(a||u||(r=new C,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)),this.removeStyles(t,p.ignoreStyles)),c=n.createCanvas(i+a,o+u),l=c.getContext("2d"),f=(n.screen.setDefaults(l),this.renderChildren(l),new We(n,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(l,0,0,i+a,o+u),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}();function Ye(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}Xe.ignoreStyles=["mask","transform","clip-path"];function Qe(){}var Ze=function(){y(r,R);var e=Ye(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="clipPath",t}return c(r,[{key:"apply",value:function(r){var n=this.document,i=Reflect.getPrototypeOf(r),t=r.beginPath,o=r.closePath;i&&(i.beginPath=Qe,i.closePath=Qe),Reflect.apply(t,r,[]),this.children.forEach(function(t){var e;void 0!==t.path&&((e=(e=void 0!==t.elementTransform?t.elementTransform():null)||f.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){}}]),r}();function Ke(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}var Je=function(){y(p,R);var e=Ke(p);function p(){var t;return h(this,p),(t=e.apply(this,arguments)).type="filter",t}return c(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)}),u=Math.floor(h.width),a=Math.floor(h.height),o=a+2*n,(i=u+2*r)<1||o<1||(a=Math.floor(h.x),u=Math.floor(h.y),h=this.removeStyles(e,p.ignoreStyles),s=l.createCanvas(i,o),c=s.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(s,0,0,i,o,a-r,u-n,i,o),this.restoreStyles(e,h)))}},{key:"render",value:function(t){}}]),p}();function tr(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function er(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function rr(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function nr(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function ir(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}function or(r){return function(){var t,e=g(r);return a(this,function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()?(t=g(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments))}}Je.ignoreStyles=["filter","transform","clip-path"];t={svg:O,rect:qt,circle:t,ellipse:e,line:St,polyline:Xt,polygon:Ct,path:o,pattern:Tt,marker:Kt,defs:te,linearGradient:ae,radialGradient:se,stop:le,animate:he,animateColor:ge,animateTransform:de,font:be,"font-face":Se,"missing-glyph":Pe,glyph:Ae,text:T,tspan:jt,tref:Ee,a:Oe,textPath:Le,image:je,g:re,symbol:ze,style:$e,use:qe,mask:Xe,clipPath:Ze,filter:Je,feDropShadow:function(){y(i,R);var n=tr(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="feDropShadow",t.addStylesFromStyleDefinition(),t}return c(i,[{key:"apply",value:function(t,e,r,n,i){}}]),i}(),feMorphology:function(){y(r,R);var e=er(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="feMorphology",t}return c(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feComposite:function(){y(r,R);var e=rr(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="feComposite",t}return c(r,[{key:"apply",value:function(t,e,r,n,i){}}]),r}(),feColorMatrix:We,feGaussianBlur:function(){y(i,R);var n=nr(i);function i(t,e,r){return h(this,i),(t=n.call(this,t,e,r)).type="feGaussianBlur",t.blurRadius=Math.floor(t.getAttribute("stdDeviation").getNumber()),t.extraFilterDistance=t.blurRadius,t}return c(i,[{key:"apply",value:function(t,e,r,n,i){var o=this.document,a=this.blurRadius,u=o.window?o.window.document.body:null,t=t.canvas;t.id=o.getUniqueId(),u&&(t.style.display="none",u.appendChild(t)),Q(t,e,r,n,i,a),u&&u.removeChild(t)}}]),i}(),title:function(){y(r,R);var e=ir(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="title",t}return r}(),desc:function(){y(r,R);var e=or(r);function r(){var t;return h(this,r),(t=e.apply(this,arguments)).type="desc",t}return r}()};function ar(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 ur(){return(ur=s(u().mark(function t(r){var e,n,i=arguments;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=1<i.length&&void 0!==i[1]&&i[1],n=document.createElement("img"),e&&(n.crossOrigin="Anonymous"),t.abrupt("return",new Promise(function(t,e){n.onload=function(){t(n)},n.onerror=function(){e()},n.src=r}));case 4:case"end":return t.stop()}},t)}))).apply(this,arguments)}var sr=function(){function a(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=e.rootEmSize,r=void 0===r?12:r,n=e.emSize,n=void 0===n?12:n,i=e.createCanvas,i=void 0===i?a.createCanvas:i,o=e.createImage,o=void 0===o?a.createImage:o,e=e.anonymousCrossOrigin;h(this,a),this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=r,this.emSize=n,this.createCanvas=i,this.createImage=this.bindCreateImage(o,e),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return c(a,[{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=a.elementTypes[e];return new(void 0!==e?e:Mt)(this,t)}},{key:"createTextNode",value:function(t){return new zt(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?ar(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ar(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)}}]),a}();function cr(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 lr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cr(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}sr.createCanvas=function(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r},sr.createImage=function(t){return ur.apply(this,arguments)},sr.elementTypes=t;e=function(){function a(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},t=(h(this,a),this.parser=new wt(r),this.screen=new n(t,r),this.options=r,new sr(this,r)),r=t.createDocumentElement(e);this.document=t,this.documentElement=r}var r,t;return c(a,[{key:"fork",value:function(t,e){return a.from(t,e,lr({},this.options,{},2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))}},{key:"forkString",value:function(t,e){return a.fromString(t,e,lr({},this.options,{},2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:(t=s(u().mark(function t(){var e,r=arguments;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=0<r.length&&void 0!==r[0]?r[0]:{},this.start(lr({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 t.apply(this,arguments)})},{key:"start",value:function(){var t=this.documentElement,e=this.screen,r=this.options;e.start(t,lr({enableRedraw:!0},r,{},0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}))}},{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:(r=s(u().mark(function t(e,r){var n,i,o=arguments;return u().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=new wt(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 a(e,i,n));case 6:case"end":return t.stop()}},t)})),function(t,e){return r.apply(this,arguments)})},{key:"fromString",value:function(t,e){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return new a(t,new wt(r).parseFromString(e),r)}}]),a}();const fr=e;let hr='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',L=40,N=document,j,pr,I,gr,yr,dr;function vr(){j=1e4,pr=1e4,I=1e4,gr=1e4,yr=0,dr=0}function mr(){var r=N.querySelectorAll(".box > grp, root");let e="";for(let e=0;e<r.length;e++){let t=r[e];var n=t.getBoundingClientRect(),i=t.offsetTop,o=i+n.height,a=t.offsetLeft,n=a+n.width;i<j&&(j=i),o>pr&&(pr=o),a<I&&(I=a),n>gr&&(gr=n)}for(let t=0;t<r.length;t++){var u=r[t];"ROOT"!==u.tagName&&(e+=function(t){let e=t.querySelectorAll("tpc"),r=t.offsetTop-j,n=t.offsetLeft-I,o="",i=t.querySelector(".svg3rd");o=(o+=`<g transform="translate(${n+L}, ${r+L})">`)+(i?i.innerHTML:"");for(let t=0;t<e.length;t++){let i=e[t];var a=i.parentNode,u=i.nodeObj;if(!u.root){var s=i.getBoundingClientRect(),c=a.offsetTop,l=a.offsetLeft,f=getComputedStyle(i),a=getComputedStyle(a),h=l+parseInt(a.paddingLeft)+parseInt(f.paddingLeft),p=c+parseInt(a.paddingTop)+parseInt(f.paddingTop)+parseInt(f.fontSize);let t="",e=("0px"!=f.borderWidth&&(t=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${s.width}" height="${s.height}" style="fill: rgba(0,0,0,0); stroke:#444;stroke-width:1px;"></rect>`),""),r=("rgba(0, 0, 0, 0)"!=f.backgroundColor&&(e=`<rect x="${l+15}" y="${c}" rx="5px" ry="5px" width="${s.width}" height="${s.height}" style="fill: ${f.backgroundColor};"></rect>`),"");if(u.tags&&u.tags.length){var g=i.querySelectorAll(".tags > span");for(let e=0;e<g.length;e++){let t=g[e];var y=t.getBoundingClientRect();r+=`<rect x="${h}" y="${p+4}" rx="5px" ry="5px" width="${y.width}" height="${y.height}" style="fill: #d6f0f8;"></rect>
|
|
2
|
+
<text font-family="微软雅黑" font-size="12px" fill="#276f86" x="${h+4}" y="${p+4+12}">${t.innerHTML}</text>`}}let n="";if(u.icons&&u.icons.length){var d=i.querySelectorAll(".icons > span");for(let e=0;e<d.length;e++){let t=d[e];t.getBoundingClientRect();n+=`
|
|
3
|
+
<tspan>${t.innerHTML}</tspan>`}}o+=`<g id="${u.id}">
|
|
4
4
|
${t}
|
|
5
5
|
${e}
|
|
6
|
-
<text x="${
|
|
7
|
-
${
|
|
6
|
+
<text x="${h}" y="${p}" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="${f.fontSize}" font-weight="${f.fontWeight}" fill="${f.color}">
|
|
7
|
+
${u.topic}
|
|
8
8
|
${n}
|
|
9
9
|
</text>
|
|
10
10
|
${r}
|
|
11
|
-
</g>`}}return o+="</g>"
|
|
11
|
+
</g>`}}return o+="</g>"}(u))}e+=function(){let t=N.querySelector("root"),e=N.querySelector("root > tpc"),r=e.getBoundingClientRect(),n=N.querySelector("root > tpc").nodeObj,i=t.offsetTop-j,o=t.offsetLeft-I,a=N.querySelector(".svg2nd"),u=`<g transform="translate(${L-I}, ${L-j})">${a.innerHTML}</g>`;return u+`<g id="root" transform="translate(${o+L}, ${i+L})">
|
|
12
12
|
<rect x="0" y="0" rx="5px" ry="5px" width="${r.width}" height="${r.height}" style="fill: #00aaff;"></rect>
|
|
13
13
|
<text x="15" y="35" text-anchor="start" align="top" anchor="start" font-family="微软雅黑" font-size="25px" font-weight="normal" fill="#ffffff">
|
|
14
14
|
${n.topic}
|
|
15
15
|
</text>
|
|
16
|
-
</g>`}(),
|
|
16
|
+
</g>`}(),yr=pr-j+2*L,dr=gr-I+2*L;let t=function(t,e){let r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("height",t),r.setAttribute("width",e),r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r.setAttribute("version","1.2"),r.setAttribute("xlink","http://www.w3.org/1999/xlink"),r}(yr,dr);return e=`<rect x="0" y="0" width="${dr}" height="${yr}" fill="#f6f6f6"></rect>`+e,t.innerHTML=e,t}function xr(){return N.querySelector("root > tpc").innerText}const br={exportSvg:function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");vr(),N=t.container;let r=mr();t=URL.createObjectURL(new Blob([hr+r.outerHTML.replace(/ /g," ")]));let n=document.createElement("a");n.href=t,n.download=(e||xr())+".svg",n.click()},exportPng:async function(t,e){if(!t)throw new Error("Mind-elixir instance is not presented. ---\x3e exportSvg(instance, fileName)");vr(),N=t.container;let r=mr();const n=document.createElement("canvas");n.style.display="none";t=n.getContext("2d");let i=await fr.fromString(t,hr+r.outerHTML.replace(/ /g," "));i.start();t=n.toDataURL("image/png");let o=document.createElement("a");o.href=t,o.download=e||xr()+".png",o.click()}}})(),Sr.default;function wr(t){var e=n[t];if(void 0!==e)return e.exports;e=n[t]={exports:{}};return r[t].call(e.exports,e,e.exports,wr),e.exports}var r,n,Sr});
|