import{o as e,t}from"./chunk-jRWAZmH_.js";import{i as n,n as r,r as i,t as a}from"./asyncToGenerator-BFc9W-7V.js";var o=t(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof global==`object`&&global)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),s=t(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),c=t(((e,t)=>{t.exports=!s()(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})})),l=t(((e,t)=>{t.exports=!s()(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),u=t(((e,t)=>{var n=l(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),d=t((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),f=t(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),p=t(((e,t)=>{var n=l(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),m=t(((e,t)=>{var n=p(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),h=t(((e,t)=>{var n=p(),r=s(),i=m(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),g=t(((e,t)=>{t.exports=function(e){return e==null}})),_=t(((e,t)=>{var n=g(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),v=t(((e,t)=>{var n=h(),r=_();t.exports=function(e){return n(r(e))}})),y=t(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),b=t(((e,t)=>{var n=y();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),x=t(((e,t)=>{var n=o(),r=y(),i=function(e){return r(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?i(n[e]):n[e]&&n[e][t]}})),S=t(((e,t)=>{t.exports=p()({}.isPrototypeOf)})),C=t(((e,t)=>{var n=o().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),w=t(((e,t)=>{var n=o(),r=C(),i=n.process,a=n.Deno,s=i&&i.versions||a&&a.version,c=s&&s.v8,l,u;c&&(l=c.split(`.`),u=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!u&&r&&(l=r.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=r.match(/Chrome\/(\d+)/),l&&(u=+l[1]))),t.exports=u})),T=t(((e,t)=>{var n=w(),r=s(),i=o().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),E=t(((e,t)=>{t.exports=T()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),D=t(((e,t)=>{var n=x(),r=y(),i=S(),a=E(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),O=t(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),k=t(((e,t)=>{var n=y(),r=O(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),A=t(((e,t)=>{var n=k(),r=g();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),j=t(((e,t)=>{var n=u(),r=y(),i=b(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),M=t(((e,t)=>{t.exports=!1})),N=t(((e,t)=>{var n=o(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),P=t(((e,t)=>{var n=M(),r=o(),i=N(),a=`__core-js_shared__`,s=t.exports=r[a]||i(a,{});(s.versions||=[]).push({version:`3.49.0`,mode:n?`pure`:`global`,copyright:`© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),ee=t(((e,t)=>{var n=P();t.exports=function(e,t){return n[e]||(n[e]=t||{})}})),F=t(((e,t)=>{var n=_(),r=Object;t.exports=function(e){return r(n(e))}})),I=t(((e,t)=>{var n=p(),r=F(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),te=t(((e,t)=>{var n=p(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),L=t(((e,t)=>{var n=o(),r=ee(),i=I(),a=te(),s=T(),c=E(),l=n.Symbol,u=r(`wks`),d=c?l.for||l:l&&l.withoutSetter||a;t.exports=function(e){return i(u,e)||(u[e]=s&&i(l,e)?l[e]:d(`Symbol.`+e)),u[e]}})),ne=t(((e,t)=>{var n=u(),r=b(),i=D(),a=A(),o=j(),s=L(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),re=t(((e,t)=>{var n=ne(),r=D();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),ie=t(((e,t)=>{var n=o(),r=b(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),ae=t(((e,t)=>{var n=c(),r=s(),i=ie();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),`a`,{get:function(){return 7}}).a!==7})})),oe=t((e=>{var t=c(),n=u(),r=d(),i=f(),a=v(),o=re(),s=I(),l=ae(),p=Object.getOwnPropertyDescriptor;e.f=t?p:function(e,t){if(e=a(e),t=o(t),l)try{return p(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),se=t(((e,t)=>{var n=c(),r=s();t.exports=n&&r(function(){return Object.defineProperty(function(){},`prototype`,{value:42,writable:!1}).prototype!==42})})),R=t(((e,t)=>{var n=b(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),ce=t((e=>{var t=c(),n=ae(),r=se(),i=R(),a=re(),o=TypeError,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=`enumerable`,d=`configurable`,f=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&f in n&&!n[f]){var r=l(e,t);r&&r[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:u in n?n[u]:r[u],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),le=t(((e,t)=>{var n=c(),r=ce(),i=f();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),ue=t(((e,t)=>{var n=c(),r=I(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&function(){}.name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),z=t(((e,t)=>{var n=p(),r=y(),i=P(),a=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),t.exports=i.inspectSource})),de=t(((e,t)=>{var n=o(),r=y(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),fe=t(((e,t)=>{var n=ee(),r=te(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),pe=t(((e,t)=>{t.exports={}})),me=t(((e,t)=>{var n=de(),r=o(),i=b(),a=le(),s=I(),c=P(),l=fe(),u=pe(),d=`Object already initialized`,f=r.TypeError,p=r.WeakMap,m,h,g,_=function(e){return g(e)?h(e):m(e,{})},v=function(e){return function(t){var n;if(!i(t)||(n=h(t)).type!==e)throw new f(`Incompatible receiver, `+e+` required`);return n}};if(n||c.state){var y=c.state||=new p;y.get=y.get,y.has=y.has,y.set=y.set,m=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},h=function(e){return y.get(e)||{}},g=function(e){return y.has(e)}}else{var x=l(`state`);u[x]=!0,m=function(e,t){if(s(e,x))throw new f(d);return t.facade=e,a(e,x,t),t},h=function(e){return s(e,x)?e[x]:{}},g=function(e){return s(e,x)}}t.exports={set:m,get:h,has:g,enforce:_,getterFor:v}})),he=t(((e,t)=>{var n=p(),r=s(),i=y(),a=I(),o=c(),l=ue().CONFIGURABLE,u=z(),d=me(),f=d.enforce,m=d.get,h=String,g=Object.defineProperty,_=n(``.slice),v=n(``.replace),b=n([].join),x=o&&!r(function(){return g(function(){},`length`,{value:8}).length!==8}),S=String(String).split(`String`),C=t.exports=function(e,t,n){_(h(t),0,7)===`Symbol(`&&(t=`[`+v(h(t),/^Symbol\(([^)]*)\).*$/,`$1`)+`]`),n&&n.getter&&(t=`get `+t),n&&n.setter&&(t=`set `+t),(!a(e,`name`)||l&&e.name!==t)&&(o?g(e,`name`,{value:t,configurable:!0}):e.name=t),x&&n&&a(n,`arity`)&&e.length!==n.arity&&g(e,`length`,{value:n.arity});try{n&&a(n,`constructor`)&&n.constructor?o&&g(e,`prototype`,{writable:!1}):e.prototype&&=void 0}catch{}var r=f(e);return a(r,`source`)||(r.source=b(S,typeof t==`string`?t:``)),e};Function.prototype.toString=C(function(){return i(this)&&m(this).source||u(this)},`toString`)})),B=t(((e,t)=>{var n=y(),r=ce(),i=he(),a=N();t.exports=function(e,t,o,s){s||={};var c=s.enumerable,l=s.name===void 0?t:s.name;if(n(o)&&i(o,l,s),s.global)c?e[t]=o:a(t,o);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch{}c?e[t]=o:r.f(e,t,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}})),ge=t(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),V=t(((e,t)=>{var n=ge();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),_e=t(((e,t)=>{var n=V(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),H=t(((e,t)=>{var n=V(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),ve=t(((e,t)=>{var n=H();t.exports=function(e){return n(e.length)}})),ye=t(((e,t)=>{var n=v(),r=_e(),i=ve(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),be=t(((e,t)=>{var n=p(),r=I(),i=v(),a=ye().indexOf,o=pe(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),xe=t(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),Se=t((e=>{var t=be(),n=xe().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),Ce=t((e=>{e.f=Object.getOwnPropertySymbols})),we=t(((e,t)=>{var n=x(),r=p(),i=Se(),a=Ce(),o=R(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),Te=t(((e,t)=>{var n=I(),r=we(),i=oe(),a=ce();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u{var n=s(),r=y(),i=/#|\.prototype\./,a=function(e,t){var i=c[o(e)];return i===u?!0:i===l?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},c=a.data={},l=a.NATIVE=`N`,u=a.POLYFILL=`P`;t.exports=a})),U=t(((e,t)=>{var n=o(),r=oe().f,i=le(),a=B(),s=N(),c=Te(),l=Ee();t.exports=function(e,t){var o=e.target,u=e.global,d=e.stat,f,p=u?n:d?n[o]||s(o,{}):n[o]&&n[o].prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.dontCallGetSet?(_=r(p,m),h=_&&_.value):h=p[m],f=l(u?m:o+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&i(g,`sham`,!0),a(p,m,g,e)}}})),De=t(((e,t)=>{var n=o(),r=C(),i=m(),a=function(e){return r.slice(0,e.length)===e};t.exports=(function(){return a(`Bun/`)?`BUN`:a(`Cloudflare-Workers`)?`CLOUDFLARE`:a(`Deno/`)?`DENO`:a(`Node.js/`)?`NODE`:n.Bun&&typeof Bun.version==`string`?`BUN`:n.Deno&&typeof Deno.version==`object`?`DENO`:i(n.process)===`process`?`NODE`:n.window&&n.document?`BROWSER`:`REST`})()})),Oe=t(((e,t)=>{t.exports=De()===`NODE`})),ke=t(((e,t)=>{t.exports=o()})),Ae=t(((e,t)=>{var n=p(),r=k();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),je=t(((e,t)=>{var n=b();t.exports=function(e){return n(e)||e===null}})),Me=t(((e,t)=>{var n=je(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),Ne=t(((e,t)=>{var n=Ae(),r=b(),i=_(),a=Me();t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),W=t(((e,t)=>{var n=ce().f,r=I(),i=L()(`toStringTag`);t.exports=function(e,t,a){e&&!a&&(e=e.prototype),e&&!r(e,i)&&n(e,i,{configurable:!0,value:t})}})),Pe=t(((e,t)=>{var n=he(),r=ce();t.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}})),Fe=t(((e,t)=>{var n=x(),r=Pe(),i=L(),a=c(),o=i(`species`);t.exports=function(e){var t=n(e);a&&t&&!t[o]&&r(t,o,{configurable:!0,get:function(){return this}})}})),Ie=t(((e,t)=>{var n=S(),r=TypeError;t.exports=function(e,t){if(n(t,e))return e;throw new r(`Incorrect invocation`)}})),Le=t(((e,t)=>{var n=L()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),Re=t(((e,t)=>{var n=Le(),r=y(),i=m(),a=L()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),ze=t(((e,t)=>{var n=p(),r=s(),i=y(),a=Re(),o=x(),c=z(),l=function(){},u=o(`Reflect`,`construct`),d=/^\s*(?:class|function)\b/,f=n(d.exec),m=!d.test(l),h=function(e){if(!i(e))return!1;try{return u(l,[],e),!0}catch{return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}try{return m||!!f(d,c(e))}catch{return!0}};g.sham=!0,t.exports=!u||r(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?g:h})),Be=t(((e,t)=>{var n=ze(),r=O(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a constructor`)}})),Ve=t(((e,t)=>{var n=R(),r=Be(),i=g(),a=L()(`species`);t.exports=function(e,t){var o=n(e).constructor,s;return o===void 0||i(s=n(o)[a])?t:r(s)}})),He=t(((e,t)=>{var n=l(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Ue=t(((e,t)=>{var n=m(),r=p();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),We=t(((e,t)=>{var n=Ue(),r=k(),i=l(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),Ge=t(((e,t)=>{t.exports=x()(`document`,`documentElement`)})),Ke=t(((e,t)=>{t.exports=p()([].slice)})),qe=t(((e,t)=>{var n=TypeError;t.exports=function(e,t){if(e{var n=C();t.exports=/ipad|iphone|ipod/i.test(n)&&/applewebkit/i.test(n)})),Ye=t(((e,t)=>{var n=o(),r=He(),i=We(),a=y(),c=I(),l=s(),u=Ge(),d=Ke(),f=ie(),p=qe(),m=Je(),h=Oe(),g=n.setImmediate,_=n.clearImmediate,v=n.process,b=n.Dispatch,x=n.Function,S=n.MessageChannel,C=n.String,w=0,T={},E=`onreadystatechange`,D,O,k,A;l(function(){D=n.location});var j=function(e){if(c(T,e)){var t=T[e];delete T[e],t()}},M=function(e){return function(){j(e)}},N=function(e){j(e.data)},P=function(e){n.postMessage(C(e),D.protocol+`//`+D.host)};(!g||!_)&&(g=function(e){p(arguments.length,1);var t=a(e)?e:x(e),n=d(arguments,1);return T[++w]=function(){r(t,void 0,n)},O(w),w},_=function(e){delete T[e]},h?O=function(e){v.nextTick(M(e))}:b&&b.now?O=function(e){b.now(M(e))}:S&&!m?(k=new S,A=k.port2,k.port1.onmessage=N,O=i(A.postMessage,A)):n.addEventListener&&a(n.postMessage)&&!n.importScripts&&D&&D.protocol!==`file:`&&!l(P)?(O=P,n.addEventListener(`message`,N,!1)):O=E in f(`script`)?function(e){u.appendChild(f(`script`))[E]=function(){u.removeChild(this),j(e)}}:function(e){setTimeout(M(e),0)}),t.exports={set:g,clear:_}})),Xe=t(((e,t)=>{var n=o(),r=c(),i=Object.getOwnPropertyDescriptor;t.exports=function(e){if(!r)return n[e];var t=i(n,e);return t&&t.value}})),Ze=t(((e,t)=>{var n=function(){this.head=null,this.tail=null};n.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return(this.head=e.next)===null&&(this.tail=null),e.item}},t.exports=n})),Qe=t(((e,t)=>{var n=C();t.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble<`u`})),$e=t(((e,t)=>{var n=C();t.exports=/web0s(?!.*chrome)/i.test(n)})),et=t(((e,t)=>{var n=o(),r=Xe(),i=We(),a=Ye().set,s=Ze(),c=Je(),l=Qe(),u=$e(),d=Oe(),f=n.MutationObserver||n.WebKitMutationObserver,p=n.document,m=n.process,h=n.Promise,g=r(`queueMicrotask`),_,v,y,b,x;if(!g){var S=new s,C=function(){var e,t;for(d&&(e=m.domain)&&e.exit();t=S.get();)try{t()}catch(e){throw S.head&&_(),e}e&&e.enter()};!c&&!d&&!u&&f&&p?(v=!0,y=p.createTextNode(``),new f(C).observe(y,{characterData:!0}),_=function(){y.data=v=!v}):!l&&h&&h.resolve?(b=h.resolve(void 0),b.constructor=h,x=i(b.then,b),_=function(){x(C)}):d?_=function(){m.nextTick(C)}:(a=i(a,n),_=function(){a(C)}),g=function(e){S.head||_(),S.add(e)}}t.exports=g})),tt=t(((e,t)=>{t.exports=function(e,t){try{arguments.length===1?console.error(e):console.error(e,t)}catch{}}})),nt=t(((e,t)=>{t.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}})),rt=t(((e,t)=>{t.exports=o().Promise})),it=t(((e,t)=>{var n=o(),r=rt(),i=y(),a=Ee(),s=z(),c=L(),l=De(),u=M(),d=w(),f=r&&r.prototype,p=c(`species`),m=!1,h=i(n.PromiseRejectionEvent);t.exports={CONSTRUCTOR:a(`Promise`,function(){var e=s(r),t=e!==String(r);if(!t&&d===66||u&&!(f.catch&&f.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new r(function(e){e(1)}),i=function(e){e(function(){},function(){})},a=n.constructor={};if(a[p]=i,m=n.then(function(){})instanceof i,!m)return!0}return!t&&(l===`BROWSER`||l===`DENO`)&&!h}),REJECTION_EVENT:h,SUBCLASSING:m}})),at=t(((e,t)=>{var n=k(),r=TypeError,i=function(e){var t,i;this.promise=new e(function(e,n){if(t!==void 0||i!==void 0)throw new r(`Bad Promise constructor`);t=e,i=n}),this.resolve=n(t),this.reject=n(i)};t.exports.f=function(e){return new i(e)}})),ot=t((()=>{var e=U(),t=M(),n=Oe(),r=o(),i=ke(),a=u(),s=B(),c=Ne(),l=W(),d=Fe(),f=k(),p=y(),m=b(),h=Ie(),g=Ve(),_=Ye().set,v=et(),x=tt(),S=nt(),C=Ze(),w=me(),T=rt(),E=it(),D=at(),O=`Promise`,A=E.CONSTRUCTOR,j=E.REJECTION_EVENT,N=E.SUBCLASSING,P=w.getterFor(O),ee=w.set,F=T&&T.prototype,I=T,te=F,L=r.TypeError,ne=r.document,re=r.process,ie=D.f,ae=ie,oe=!!(ne&&ne.createEvent&&r.dispatchEvent),se=`unhandledrejection`,R=`rejectionhandled`,ce=0,le=1,ue=2,z=1,de=2,fe,pe,he,ge,V=function(e){var t;return m(e)&&p(t=e.then)?t:!1},_e=function(e,t){var n=t.value,r=t.state===le,i=r?e.ok:e.fail,o=e.resolve,s=e.reject,c=e.domain,l,u,d;try{i?(r||(t.rejection===de&&xe(t),t.rejection=z),i===!0?l=n:(c&&c.enter(),l=i(n),c&&(c.exit(),d=!0)),l===e.promise?s(new L(`Promise-chain cycle`)):(u=V(l))?a(u,l,o,s):o(l)):s(n)}catch(e){c&&!d&&c.exit(),s(e)}},H=function(e,t){e.notified||(e.notified=!0,v(function(){for(var n=e.reactions,r;r=n.get();)_e(r,e);e.notified=!1,t&&!e.rejection&&ye(e)}))},ve=function(e,t,n){var i,a;oe?(i=ne.createEvent(`Event`),i.promise=t,i.reason=n,i.initEvent(e,!1,!0),r.dispatchEvent(i)):i={promise:t,reason:n},!j&&(a=r[`on`+e])?a(i):e===se&&x(`Unhandled promise rejection`,n)},ye=function(e){a(_,r,function(){var t=e.facade,r=e.value,i=be(e),a;if(i&&(a=S(function(){n?re.emit(`unhandledRejection`,r,t):ve(se,t,r)}),e.rejection=n||be(e)?de:z,a.error))throw a.value})},be=function(e){return e.rejection!==z&&!e.parent},xe=function(e){a(_,r,function(){var t=e.facade;n?re.emit(`rejectionHandled`,t):ve(R,t,e.value)})},Se=function(e,t,n){return function(r){e(t,r,n)}},Ce=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=ue,H(e,!0))},we=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new L(`Promise can't be resolved itself`);var r=V(t);r?v(function(){var n={done:!1};try{a(r,t,Se(we,n,e),Se(Ce,n,e))}catch(t){Ce(n,t,e)}}):(e.value=t,e.state=le,H(e,!1))}catch(t){Ce({done:!1},t,e)}}};if(A&&(I=function(e){h(this,te),f(e),a(fe,this);var t=P(this);try{e(Se(we,t),Se(Ce,t))}catch(e){Ce(t,e)}},te=I.prototype,fe=function(e){ee(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new C,rejection:!1,state:ce,value:null})},fe.prototype=s(te,`then`,function(e,t){var r=P(this),i=ie(g(this,I));return r.parent=!0,i.ok=p(e)?e:!0,i.fail=p(t)&&t,i.domain=n?re.domain:void 0,r.state===ce?r.reactions.add(i):v(function(){_e(i,r)}),i.promise}),pe=function(){var e=new fe,t=P(e);this.promise=e,this.resolve=Se(we,t),this.reject=Se(Ce,t)},D.f=ie=function(e){return e===I||e===he?new pe(e):ae(e)},!t&&p(T)&&F!==Object.prototype)){ge=F.then,N||s(F,`then`,function(e,t){var n=this;return new I(function(e,t){a(ge,n,e,t)}).then(e,t)},{unsafe:!0});try{delete F.constructor}catch{}c&&c(F,te)}e({global:!0,constructor:!0,wrap:!0,forced:A},{Promise:I}),he=i.Promise,l(I,O,!1,!0),d(O)})),st=t(((e,t)=>{t.exports={}})),ct=t(((e,t)=>{var n=L(),r=st(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),lt=t(((e,t)=>{var n=Re(),r=A(),i=g(),a=st(),o=L()(`iterator`);t.exports=function(e){if(!i(e))return r(e,o)||r(e,`@@iterator`)||a[n(e)]}})),ut=t(((e,t)=>{var n=u(),r=k(),i=R(),a=O(),o=lt(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),dt=t(((e,t)=>{var n=u(),r=R(),i=A();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),ft=t(((e,t)=>{var n=We(),r=u(),i=R(),a=O(),o=ct(),s=ve(),c=S(),l=ut(),d=lt(),f=dt(),p=TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;t.exports=function(e,t,u){var g=u&&u.that,_=!!(u&&u.AS_ENTRIES),v=!!(u&&u.IS_RECORD),y=!!(u&&u.IS_ITERATOR),b=!!(u&&u.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&f(t,`normal`),new m(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=d(e),!C)throw new p(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(h,E))return E;return new m(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)f(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&c(h,E))return E}return new m(!1)}})),pt=t(((e,t)=>{var n=L()(`iterator`),r=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){r=!0}};a[n]=function(){return this},Array.from(a,function(){throw 2})}catch{}t.exports=function(e,t){try{if(!t&&!r)return!1}catch{return!1}var i=!1;try{var a={};a[n]=function(){return{next:function(){return{done:i=!0}}}},e(a)}catch{}return i}})),mt=t(((e,t)=>{var n=rt(),r=pt();t.exports=it().CONSTRUCTOR||!r(function(e){n.all(e).then(void 0,function(){})})})),ht=t((()=>{var e=U(),t=u(),n=k(),r=at(),i=nt(),a=ft();e({target:`Promise`,stat:!0,forced:mt()},{all:function(e){var o=this,s=r.f(o),c=s.resolve,l=s.reject,u=i(function(){var r=n(o.resolve),i=[],s=0,u=1;a(e,function(e){var n=s++,a=!1;u++,t(r,o,e).then(function(e){a||(a=!0,i[n]=e,--u||c(i))},l)}),--u||c(i)});return u.error&&l(u.value),s.promise}})})),gt=t((()=>{var e=U(),t=M(),n=it().CONSTRUCTOR,r=rt(),i=x(),a=y(),o=B(),s=r&&r.prototype;if(e({target:`Promise`,proto:!0,forced:n,real:!0},{catch:function(e){return this.then(void 0,e)}}),!t&&a(r)){var c=i(`Promise`).prototype.catch;s.catch!==c&&o(s,`catch`,c,{unsafe:!0})}})),_t=t((()=>{var e=U(),t=u(),n=k(),r=at(),i=nt(),a=ft();e({target:`Promise`,stat:!0,forced:mt()},{race:function(e){var o=this,s=r.f(o),c=s.reject,l=i(function(){var r=n(o.resolve);a(e,function(e){t(r,o,e).then(s.resolve,c)})});return l.error&&c(l.value),s.promise}})})),vt=t((()=>{var e=U(),t=at(),n=it().CONSTRUCTOR;e({target:`Promise`,stat:!0,forced:n},{reject:function(e){var n=t.f(this),r=n.reject;return r(e),n.promise}})})),yt=t(((e,t)=>{var n=R(),r=b(),i=at();t.exports=function(e,t){if(n(e),r(t)&&t.constructor===e)return t;var a=i.f(e),o=a.resolve;return o(t),a.promise}})),bt=t((()=>{var e=U(),t=x(),n=M(),r=rt(),i=it().CONSTRUCTOR,a=yt(),o=t(`Promise`),s=n&&!i;e({target:`Promise`,stat:!0,forced:n||i},{resolve:function(e){return a(s&&this===o?r:this,e)}})}));ot(),ht(),gt(),_t(),vt(),bt();var xt=t(((e,t)=>{var n=Re(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),St=t(((e,t)=>{var n=R();t.exports=function(){var e=n(this),t=``;return e.hasIndices&&(t+=`d`),e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.unicodeSets&&(t+=`v`),e.sticky&&(t+=`y`),t}})),Ct=t(((e,t)=>{var n=s(),r=o().RegExp,i=n(function(){var e=r(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!==null}),a=i||n(function(){return!r(`a`,`y`).sticky});t.exports={BROKEN_CARET:i||n(function(){var e=r(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!==null}),MISSED_STICKY:a,UNSUPPORTED_Y:i}})),wt=t(((e,t)=>{var n=be(),r=xe();t.exports=Object.keys||function(e){return n(e,r)}})),Tt=t((e=>{var t=c(),n=se(),r=ce(),i=R(),a=v(),o=wt();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),Et=t(((e,t)=>{var n=R(),r=Tt(),i=xe(),a=pe(),o=Ge(),s=ie(),c=fe(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),Dt=t(((e,t)=>{var n=s(),r=o().RegExp;t.exports=n(function(){var e=r(`.`,`s`);return!(e.dotAll&&e.test(` `)&&e.flags===`s`)})})),Ot=t(((e,t)=>{var n=s(),r=o().RegExp;t.exports=n(function(){var e=r(`(?b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$c`)!==`bc`})})),kt=t(((e,t)=>{var n=u(),r=p(),i=xt(),a=St(),o=Ct(),s=ee(),c=Et(),l=me().get,d=Dt(),f=Ot(),m=s(`native-string-replace`,String.prototype.replace),h=RegExp.prototype.exec,g=h,_=r(``.charAt),v=r(``.indexOf),y=r(``.replace),b=r(``.slice),x=(function(){var e=/a/,t=/b*/g;return n(h,e,`a`),n(h,t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),S=o.BROKEN_CARET,C=/()??/.exec(``)[1]!==void 0,w=x||C||S||d||f,T=function(e,t){for(var n=e.groups=c(null),r=0;r0&&_(o,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&k!==` `&&k!==`\r`&&k!==`\u2028`&&k!==`\u2029`)&&(E=`(?: (?:`+E+`))`,O=` `+O,D++),u=RegExp(`^(?:`+E+`)`,w)}C&&(u=RegExp(`^`+E+`$(?!\\s)`,w)),x&&(d=t.lastIndex);var A=n(h,p?u:t,O);return p?A?(A.input=o,A[0]=b(A[0],D),A.index=t.lastIndex,t.lastIndex+=A[0].length):t.lastIndex=0:x&&A&&(t.lastIndex=t.global?A.index+A[0].length:d),C&&A&&A.length>1&&n(m,A[0],u,function(){for(var e=1;e{var e=U(),t=kt();e({target:`RegExp`,proto:!0,forced:/./.exec!==t},{exec:t})})),jt=t(((e,t)=>{At();var n=u(),r=B(),i=kt(),a=s(),o=L(),c=le(),l=o(`species`),d=RegExp.prototype;t.exports=function(e,t,s,u){var f=o(e),p=!a(function(){var t={};return t[f]=function(){return 7},``[e](t)!==7}),m=p&&!a(function(){var t=!1,n=/a/;if(e===`split`){var r={};r[l]=function(){return n},n={constructor:r,flags:``},n[f]=/./[f]}return n.exec=function(){return t=!0,null},n[f](``),!t});if(!p||!m||s){var h=/./[f],g=t(f,``[e],function(e,t,r,a,o){var s=t.exec;return s===i||s===d.exec?p&&!o?{done:!0,value:n(h,t,r,a)}:{done:!0,value:n(e,r,t,a)}:{done:!1}});r(String.prototype,e,g[0]),r(d,f,g[1])}u&&c(d[f],`sham`,!0)}})),Mt=t(((e,t)=>{var n=p(),r=V(),i=xt(),a=_(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),Nt=t(((e,t)=>{var n=Mt().charAt;t.exports=function(e,t,r){return t+(r&&n(e,t).length||1)}})),Pt=t(((e,t)=>{var n=o(),r=s(),i=n.RegExp;t.exports={correct:!r(function(){var e=!0;try{i(`.`,`d`)}catch{e=!1}var t={},n=``,r=e?`dgimsy`:`gimsy`,a=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:`s`,global:`g`,ignoreCase:`i`,multiline:`m`,sticky:`y`};for(var s in e&&(o.hasIndices=`d`),o)a(s,o[s]);return Object.getOwnPropertyDescriptor(i.prototype,`flags`).get.call(t)!==r||n!==r})}})),Ft=t(((e,t)=>{var n=u(),r=I(),i=S(),a=Pt(),o=St(),s=RegExp.prototype;t.exports=a.correct?function(e){return e.flags}:function(e){return!a.correct&&i(s,e)&&!r(e,`flags`)?n(o,e):e.flags}})),It=t(((e,t)=>{var n=u(),r=R(),i=y(),a=m(),o=kt(),s=TypeError;t.exports=function(e,t){var c=e.exec;if(i(c)){var l=n(c,e,t);return l!==null&&r(l),l}if(a(e)===`RegExp`)return n(o,e,t);throw new s(`RegExp#exec called on incompatible receiver`)}}));r();var Lt=u(),Rt=p(),zt=jt(),Bt=R(),Vt=b(),Ht=H(),Ut=xt(),Wt=_(),Gt=A(),Kt=Nt(),qt=Ft(),Jt=It(),Yt=Rt(``.indexOf);zt(`match`,function(e,t,n){return[function(t){var n=Wt(this),r=Vt(t)?Gt(t,e):void 0;return r?Lt(r,t,n):new RegExp(t)[e](Ut(n))},function(e){var r=Bt(this),i=Ut(e),a=n(t,r,i);if(a.done)return a.value;var o=Ut(qt(r));if(!~Yt(o,`g`))return Jt(r,i);var s=!!~Yt(o,`u`)||!!~Yt(o,`v`);r.lastIndex=0;for(var c=[],l=0,u;(u=Jt(r,i))!==null;){var d=Ut(u[0]);c[l]=d,d===``&&(r.lastIndex=Kt(i,Ht(r.lastIndex),s)),l++}return l===0?null:c}]});var Xt=t(((e,t)=>{var n=p(),r=F(),i=Math.floor,a=n(``.charAt),o=n(``.replace),s=n(``.slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;t.exports=function(e,t,n,u,d,f){var p=n+e.length,m=u.length,h=l;return d!==void 0&&(d=r(d),h=c),o(f,h,function(r,o){var c;switch(a(o,0)){case`$`:return`$`;case`&`:return e;case"`":return s(t,0,n);case`'`:return s(t,p);case`<`:c=d[s(o,1,-1)];break;default:var l=+o;if(l===0)return r;if(l>m){var f=i(l/10);return f===0?r:f<=m?u[f-1]===void 0?a(o,1):u[f-1]+a(o,1):r}c=u[l-1]}return c===void 0?``:c})}})),Zt=He(),Qt=u(),$t=p(),en=jt(),tn=s(),nn=R(),rn=y(),an=b(),on=V(),sn=H(),cn=xt(),ln=_(),un=Nt(),dn=A(),fn=Xt(),pn=Ft(),mn=It(),hn=L()(`replace`),gn=Math.max,_n=Math.min,vn=$t([].concat),yn=$t([].push),bn=$t(``.indexOf),xn=$t(``.slice),Sn=function(e){return e===void 0?e:String(e)},Cn=(function(){return`a`.replace(/./,`$0`)===`$0`})(),wn=(function(){return/./[hn]?/./[hn](`a`,`$0`)===``:!1})();en(`replace`,function(e,t,n){var r=wn?`$`:`$0`;return[function(e,n){var r=ln(this),i=an(e)?dn(e,hn):void 0;return i?Qt(i,e,r,n):Qt(t,cn(r),e,n)},function(e,i){var a=nn(this),o=cn(e),s=rn(i);s||(i=cn(i));var c=cn(pn(a));if(typeof i==`string`&&!~bn(i,r)&&!~bn(i,`$<`)&&!~bn(c,`y`)){var l=n(t,a,o,i);if(l.done)return l.value}var u=!!~bn(c,`g`),d;u&&(d=!!~bn(c,`u`)||!!~bn(c,`v`),a.lastIndex=0);for(var f=[],p;p=mn(a,o),!(p===null||(yn(f,p),!u));)cn(p[0])===``&&(a.lastIndex=un(o,sn(a.lastIndex),d));for(var m=``,h=0,g=0;g=h&&(m+=xn(o,h,v)+b,h=v+_.length)}return m+xn(o,h)}]},!!tn(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$`)!==`7`})||!Cn||wn);var Tn=t(((e,t)=>{var n=b(),r=m(),i=L()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),En=t(((e,t)=>{var n=Tn(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),Dn=t(((e,t)=>{var n=L()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),On=U(),kn=Ue(),An=oe().f,jn=H(),Mn=xt(),Nn=En(),Pn=_(),Fn=Dn(),In=M(),Ln=kn(``.slice),Rn=Math.min,zn=Fn(`startsWith`);On({target:`String`,proto:!0,forced:!(!In&&!zn&&function(){var e=An(String.prototype,`startsWith`);return e&&!e.writable}())&&!zn},{startsWith:function(e){var t=Mn(Pn(this));Nn(e);var n=Mn(e),r=jn(Rn(arguments.length>1?arguments[1]:void 0,t.length));return Ln(t,r,r+n.length)===n}});var Bn=t(((e,t)=>{var n=L(),r=Et(),i=ce().f,a=n(`unscopables`),o=Array.prototype;o[a]===void 0&&i(o,a,{configurable:!0,value:r(null)}),t.exports=function(e){o[a][e]=!0}})),Vn=t(((e,t)=>{t.exports=!s()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),Hn=t(((e,t)=>{var n=I(),r=y(),i=F(),a=fe(),o=Vn(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),Un=t(((e,t)=>{var n=s(),r=y(),i=b(),a=Et(),o=Hn(),c=B(),l=L(),u=M(),d=l(`iterator`),f=!1,p,m,h;[].keys&&(h=[].keys(),`next`in h?(m=o(o(h)),m!==Object.prototype&&(p=m)):f=!0),!i(p)||n(function(){var e={};return p[d].call(e)!==e})?p={}:u&&(p=a(p)),r(p[d])||c(p,d,function(){return this}),t.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:f}})),Wn=t(((e,t)=>{var n=Un().IteratorPrototype,r=Et(),i=f(),a=W(),o=st(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),Gn=t(((e,t)=>{var n=U(),r=u(),i=M(),a=ue(),o=y(),s=Wn(),c=Hn(),l=Ne(),d=W(),f=le(),p=B(),m=L(),h=st(),g=Un(),_=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,x=g.BUGGY_SAFARI_ITERATORS,S=m(`iterator`),C=`keys`,w=`values`,T=`entries`,E=function(){return this};t.exports=function(e,t,a,u,m,g,y){s(a,t,u);var D=function(e){if(e===m&&M)return M;if(!x&&e&&e in A)return A[e];switch(e){case C:return function(){return new a(this,e)};case w:return function(){return new a(this,e)};case T:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[S]||A[`@@iterator`]||m&&A[m],M=!x&&j||D(m),N=t===`Array`&&A.entries||j,P,ee,F;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==b&&(l?l(P,b):o(P[S])||p(P,S,E)),d(P,O,!0,!0),i&&(h[O]=E))),_&&m===w&&j&&j.name!==w&&(!i&&v?f(A,`name`,w):(k=!0,M=function(){return r(j,this)})),m)if(ee={values:D(w),keys:g?M:D(C),entries:D(T)},y)for(F in ee)(x||k||!(F in A))&&p(A,F,ee[F]);else n({target:t,proto:!0,forced:x||k},ee);return(!i||y)&&A[S]!==M&&p(A,S,M,{name:m}),h[t]=M,ee}})),Kn=t(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),qn=t(((e,t)=>{var n=v(),r=Bn(),i=st(),a=me(),o=ce().f,s=Gn(),l=Kn(),u=M(),d=c(),f=`Array Iterator`,p=a.set,m=a.getterFor(f);t.exports=s(Array,`Array`,function(e,t){p(this,{type:f,target:n(e),index:0,kind:t})},function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case`keys`:return l(n,!1);case`values`:return l(t[n],!1)}return l([n,t[n]],!1)},`values`);var h=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!u&&d&&h.name!==`values`)try{o(h,`name`,{value:`values`})}catch{}})),Jn=t(((e,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}})),Yn=t(((e,t)=>{var n=ie()(`span`).classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r}));qn();var Xn=o(),Zn=Jn(),Qn=Yn(),$n=qn(),er=le(),tr=W(),nr=L()(`iterator`),rr=$n.values,ir=function(e,t){if(e){if(e[nr]!==rr)try{er(e,nr,rr)}catch{e[nr]=rr}if(tr(e,t,!0),Zn[t]){for(var n in $n)if(e[n]!==$n[n])try{er(e,n,$n[n])}catch{e[n]=$n[n]}}}};for(var ar in Zn)ir(Xn[ar]&&Xn[ar].prototype,ar);ir(Qn,`DOMTokenList`);var or=t(((e,t)=>{var n=k(),r=F(),i=h(),a=ve(),o=TypeError,s=`Reduce of empty array with no initial value`,c=function(e){return function(t,c,l,u){var d=r(t),f=i(d),p=a(d);if(n(c),p===0&&l<2)throw new o(s);var m=e?p-1:0,h=e?-1:1;if(l<2)for(;;){if(m in f){u=f[m],m+=h;break}if(m+=h,e?m<0:p<=m)throw new o(s)}for(;e?m>=0:p>m;m+=h)m in f&&(u=c(u,f[m],m,d));return u}};t.exports={left:c(!1),right:c(!0)}})),sr=t(((e,t)=>{var n=s();t.exports=function(e,t){var r=[][e];return!!r&&n(function(){r.call(null,t||function(){return 1},1)})}}));n();var cr=U(),lr=or().left,ur=sr(),dr=w();cr({target:`Array`,proto:!0,forced:!Oe()&&dr>79&&dr<83||!ur(`reduce`)},{reduce:function(e){var t=arguments.length;return lr(this,e,t,t>1?arguments[1]:void 0)}});var fr=U(),pr=Ue(),mr=oe().f,hr=H(),gr=xt(),_r=En(),vr=_(),yr=Dn(),br=M(),xr=pr(``.slice),Sr=Math.min,Cr=yr(`endsWith`);fr({target:`String`,proto:!0,forced:!(!br&&!Cr&&function(){var e=mr(String.prototype,`endsWith`);return e&&!e.writable}())&&!Cr},{endsWith:function(e){var t=gr(vr(this));_r(e);var n=gr(e),r=arguments.length>1?arguments[1]:void 0,i=t.length,a=r===void 0?i:Sr(hr(r),i);return xr(t,a-n.length,a)===n}});var wr=u(),Tr=p(),Er=jt(),Dr=R(),Or=b(),kr=_(),Ar=Ve(),jr=Nt(),Mr=H(),Nr=xt(),Pr=A(),Fr=Ft(),Ir=It(),Lr=Ct(),Rr=s(),zr=Lr.UNSUPPORTED_Y,Br=4294967295,Vr=Math.min,Hr=Tr([].push),Ur=Tr(``.slice),Wr=Tr(``.indexOf),Gr=!Rr(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`}),Kr=`abbc`.split(/(b)*/)[1]===`c`||`test`.split(/(?:)/,-1).length!==4||`ab`.split(/(?:ab)*/).length!==2||`.`.split(/(.?)(.?)/).length!==4||`.`.split(/()()/).length>1||``.split(/.?/).length;Er(`split`,function(e,t,n){var r=`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:wr(t,this,e,n)}:t;return[function(t,n){var i=kr(this),a=Or(t)?Pr(t,e):void 0;return a?wr(a,t,i,n):wr(r,Nr(i),t,n)},function(e,i){var a=Dr(this),o=Nr(e);if(!Kr){var s=n(r,a,o,i,r!==t);if(s.done)return s.value}var c=Ar(a,RegExp),l=Nr(Fr(a)),u=!!~Wr(l,`u`)||!!~Wr(l,`v`);zr?~Wr(l,`g`)||(l+=`g`):~Wr(l,`y`)||(l+=`y`);var d=new c(zr?`^(?:`+a.source+`)`:a,l),f=i===void 0?Br:i>>>0;if(f===0)return[];if(o.length===0)return Ir(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m{(function(){var e,n,r,i,a,o;typeof performance<`u`&&performance!==null&&performance.now?t.exports=function(){return performance.now()}:typeof process<`u`&&process!==null&&process.hrtime?(t.exports=function(){return(e()-a)/1e6},n=process.hrtime,e=function(){var e=n();return e[0]*1e9+e[1]},i=e(),o=process.uptime()*1e9,a=i-o):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(e)})),Jr=t(((e,t)=>{for(var n=qr(),r=typeof window>`u`?global:window,i=[`moz`,`webkit`],a=`AnimationFrame`,o=r[`request`+a],s=r[`cancel`+a]||r[`cancelRequest`+a],c=0;!o&&c{t.exports=` \v\f\r \xA0               \u2028\u2029`})),Xr=t(((e,t)=>{var n=p(),r=_(),i=xt(),a=Yr(),o=n(``.replace),s=RegExp(`^[`+a+`]+`),c=RegExp(`(^|[^`+a+`])[`+a+`]+$`),l=function(e){return function(t){var n=i(r(t));return e&1&&(n=o(n,s,``)),e&2&&(n=o(n,c,`$1`)),n}};t.exports={start:l(1),end:l(2),trim:l(3)}})),Zr=t(((e,t)=>{var n=ue().PROPER,r=s(),i=Yr(),a=`​…᠎`;t.exports=function(e){return r(function(){return!!i[e]()||a[e]()!==a||n&&i[e].name!==e})}})),Qr=e(Jr()),$r=U(),ei=Xr().trim;$r({target:`String`,proto:!0,forced:Zr()(`trim`)},{trim:function(){return ei(this)}});var ti=e(t(((e,t)=>{t.exports=function(e){this.ok=!1,this.alpha=1,e.charAt(0)==`#`&&(e=e.substr(1,6)),e=e.replace(/ /g,``),e=e.toLowerCase();var t={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`};e=t[e]||e;for(var n=[{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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[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(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:[`#00ff00`,`336699`],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:[`#fb0`,`f0f`],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],r=0;r3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return`rgb(`+this.r+`, `+this.g+`, `+this.b+`)`},this.toRGBA=function(){return`rgba(`+this.r+`, `+this.g+`, `+this.b+`, `+this.alpha+`)`},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return e.length==1&&(e=`0`+e),t.length==1&&(t=`0`+t),n.length==1&&(n=`0`+n),`#`+e+t+n},this.getHelpXML=function(){for(var e=[],r=0;r `+l.toRGB()+` -> `+l.toHex());c.appendChild(u),c.appendChild(d),s.appendChild(c)}catch{}return s}}}))()),ni=U(),ri=Ue(),ii=ye().indexOf,ai=sr(),oi=ri([].indexOf),si=!!oi&&1/oi([1],1,-0)<0;ni({target:`Array`,proto:!0,forced:si||!ai(`indexOf`)},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return si?oi(this,e,t)||0:ii(this,e,t)}});var ci=U(),li=p(),ui=En(),di=_(),fi=xt(),pi=Dn(),mi=li(``.indexOf);ci({target:`String`,proto:!0,forced:!pi(`includes`)},{includes:function(e){return!!~mi(fi(di(this)),fi(ui(e)),arguments.length>1?arguments[1]:void 0)}});var hi=t(((e,t)=>{var n=m();t.exports=Array.isArray||function(e){return n(e)===`Array`}})),gi=U(),_i=p(),vi=hi(),yi=_i([].reverse),bi=[1,2];gi({target:`Array`,proto:!0,forced:String(bi)===String(bi.reverse())},{reverse:function(){return vi(this)&&(this.length=this.length),yi(this)}});var xi=function(e,t){return(xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function Si(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}xi(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Ci(e){var t=``;Array.isArray(e)||(e=[e]);for(var n=0;ne.phi1&&(e.phi2-=2*Ei),e.sweepFlag===1&&e.phi2r)return[];if(r===0)return[[e*n/(e*e+t*t),t*n/(e*e+t*t)]];var i=Math.sqrt(r);return[[(e*n+t*i)/(e*e+t*t),(t*n-e*i)/(e*e+t*t)],[(e*n-t*i)/(e*e+t*t),(t*n+e*i)/(e*e+t*t)]]}var G,ki=Math.PI/180;function Ai(e,t,n){return(1-n)*e+n*t}function ji(e,t,n,r){return e+Math.cos(r/180*Ei)*t+Math.sin(r/180*Ei)*n}function Mi(e,t,n,r){var i=1e-6,a=t-e,o=n-t,s=3*a+3*(r-n)-6*o,c=6*(o-a),l=3*a;return Math.abs(s)g&&(i.sweepFlag=+!i.sweepFlag),i}))}function o(){return function(e){var t={};for(var n in e)t[n]=e[n];return t}}e.ROUND=function(e){function t(t){return Math.round(t*e)/e}return e===void 0&&(e=0x9184e72a000),Ti(e),function(e){return e.x1!==void 0&&(e.x1=t(e.x1)),e.y1!==void 0&&(e.y1=t(e.y1)),e.x2!==void 0&&(e.x2=t(e.x2)),e.y2!==void 0&&(e.y2=t(e.y2)),e.x!==void 0&&(e.x=t(e.x)),e.y!==void 0&&(e.y=t(e.y)),e.rX!==void 0&&(e.rX=t(e.rX)),e.rY!==void 0&&(e.rY=t(e.rY)),e}},e.TO_ABS=t,e.TO_REL=function(){return i((function(e,t,n){return e.relative||=(e.x1!==void 0&&(e.x1-=t),e.y1!==void 0&&(e.y1-=n),e.x2!==void 0&&(e.x2-=t),e.y2!==void 0&&(e.y2-=n),e.x!==void 0&&(e.x-=t),e.y!==void 0&&(e.y-=n),!0),e}))},e.NORMALIZE_HVZ=function(e,t,n){return e===void 0&&(e=!0),t===void 0&&(t=!0),n===void 0&&(n=!0),i((function(r,i,a,o,s){if(isNaN(o)&&!(r.type&K.MOVE_TO))throw Error(`path must start with moveto`);return t&&r.type&K.HORIZ_LINE_TO&&(r.type=K.LINE_TO,r.y=r.relative?0:a),n&&r.type&K.VERT_LINE_TO&&(r.type=K.LINE_TO,r.x=r.relative?0:i),e&&r.type&K.CLOSE_PATH&&(r.type=K.LINE_TO,r.x=r.relative?o-i:o,r.y=r.relative?s-a:s),r.type&K.ARC&&(r.rX===0||r.rY===0)&&(r.type=K.LINE_TO,delete r.rX,delete r.rY,delete r.xRot,delete r.lArcFlag,delete r.sweepFlag),r}))},e.NORMALIZE_ST=n,e.QT_TO_C=r,e.INFO=i,e.SANITIZE=function(e){e===void 0&&(e=0),Ti(e);var t=NaN,n=NaN,r=NaN,a=NaN;return i((function(i,o,s,c,l){var u=Math.abs,d=!1,f=0,p=0;if(i.type&K.SMOOTH_CURVE_TO&&(f=isNaN(t)?0:o-t,p=isNaN(n)?0:s-n),i.type&(K.CURVE_TO|K.SMOOTH_CURVE_TO)?(t=i.relative?o+i.x2:i.x2,n=i.relative?s+i.y2:i.y2):(t=NaN,n=NaN),i.type&K.SMOOTH_QUAD_TO?(r=isNaN(r)?o:2*o-r,a=isNaN(a)?s:2*s-a):i.type&K.QUAD_TO?(r=i.relative?o+i.x1:i.x1,a=i.relative?s+i.y1:i.y2):(r=NaN,a=NaN),i.type&K.LINE_COMMANDS||i.type&K.ARC&&(i.rX===0||i.rY===0||!i.lArcFlag)||i.type&K.CURVE_TO||i.type&K.SMOOTH_CURVE_TO||i.type&K.QUAD_TO||i.type&K.SMOOTH_QUAD_TO){var m=i.x===void 0?0:i.relative?i.x:i.x-o,h=i.y===void 0?0:i.relative?i.y:i.y-s;f=isNaN(r)?i.x1===void 0?f:i.relative?i.x:i.x1-o:r-o,p=isNaN(a)?i.y1===void 0?p:i.relative?i.y:i.y1-s:a-s;var g=i.x2===void 0?0:i.relative?i.x:i.x2-o,_=i.y2===void 0?0:i.relative?i.y:i.y2-s;u(m)<=e&&u(h)<=e&&u(f)<=e&&u(p)<=e&&u(g)<=e&&u(_)<=e&&(d=!0)}return i.type&K.CLOSE_PATH&&u(o-c)<=e&&u(s-l)<=e&&(d=!0),d?[]:i}))},e.MATRIX=a,e.ROTATE=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=0),Ti(e,t,n);var r=Math.sin(e),i=Math.cos(e);return a(i,r,-r,i,t-t*i+n*r,n-t*r-n*i)},e.TRANSLATE=function(e,t){return t===void 0&&(t=0),Ti(e,t),a(1,0,0,1,e,t)},e.SCALE=function(e,t){return t===void 0&&(t=e),Ti(e,t),a(e,0,0,t,0,0)},e.SKEW_X=function(e){return Ti(e),a(1,0,Math.atan(e),1,0,0)},e.SKEW_Y=function(e){return Ti(e),a(1,Math.atan(e),0,1,0,0)},e.X_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),Ti(e),a(-1,0,0,1,e,0)},e.Y_AXIS_SYMMETRY=function(e){return e===void 0&&(e=0),Ti(e),a(1,0,0,-1,0,e)},e.A_TO_C=function(){return i((function(e,t,n){return K.ARC===e.type?function(e,t,n){var r,i,a,o;e.cX||Di(e,t,n);for(var s=Math.min(e.phi1,e.phi2),c=Math.max(e.phi1,e.phi2)-s,l=Math.ceil(c/90),u=Array(l),d=t,f=n,p=0;pc.maxX&&(c.maxX=e),ec.maxY&&(c.maxY=e),eO&&l(Ni(n,i.x1,i.x2,i.x,O));for(var p=0,m=Mi(r,i.y1,i.y2,i.y);pO&&u(Ni(r,i.y1,i.y2,i.y,O))}if(i.type&K.ARC){l(i.x),u(i.y),Di(i,n,r);for(var h=i.xRot/180*Math.PI,g=Math.cos(h)*i.rX,_=Math.sin(h)*i.rX,v=-Math.sin(h)*i.rY,y=Math.cos(h)*i.rY,b=i.phi1i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],x=b[0],S=b[1],C=function(e){var t=e[0],n=e[1],r=180*Math.atan2(n,t)/Math.PI;return rx&&Ox&&Oc)throw SyntaxError(`Expected positive number, got "`+c+`" at index "`+i+`"`)}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!==`0`&&this.curNumber!==`1`)throw SyntaxError(`Expected a flag, got "`+this.curNumber+`" at index "`+i+`"`)}this.curArgs.push(c),this.curArgs.length===zi[this.curCommandType]&&(K.HORIZ_LINE_TO===this.curCommandType?r({type:K.HORIZ_LINE_TO,relative:this.curCommandRelative,x:c}):K.VERT_LINE_TO===this.curCommandType?r({type:K.VERT_LINE_TO,relative:this.curCommandRelative,y:c}):this.curCommandType===K.MOVE_TO||this.curCommandType===K.LINE_TO||this.curCommandType===K.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),K.MOVE_TO===this.curCommandType&&(this.curCommandType=K.LINE_TO)):this.curCommandType===K.CURVE_TO?r({type:K.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===K.SMOOTH_CURVE_TO?r({type:K.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===K.QUAD_TO?r({type:K.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===K.ARC&&r({type:K.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(!Ii(a))if(a===`,`&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(a!==`+`&&a!==`-`&&a!==`.`)if(s)this.curNumber=a,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw SyntaxError(`Unterminated command at index `+i+`.`);if(!this.canParseCommandOrComma)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`. Command cannot follow comma`);if(this.canParseCommandOrComma=!1,a!==`z`&&a!==`Z`)if(a===`h`||a===`H`)this.curCommandType=K.HORIZ_LINE_TO,this.curCommandRelative=a===`h`;else if(a===`v`||a===`V`)this.curCommandType=K.VERT_LINE_TO,this.curCommandRelative=a===`v`;else if(a===`m`||a===`M`)this.curCommandType=K.MOVE_TO,this.curCommandRelative=a===`m`;else if(a===`l`||a===`L`)this.curCommandType=K.LINE_TO,this.curCommandRelative=a===`l`;else if(a===`c`||a===`C`)this.curCommandType=K.CURVE_TO,this.curCommandRelative=a===`c`;else if(a===`s`||a===`S`)this.curCommandType=K.SMOOTH_CURVE_TO,this.curCommandRelative=a===`s`;else if(a===`q`||a===`Q`)this.curCommandType=K.QUAD_TO,this.curCommandRelative=a===`q`;else if(a===`t`||a===`T`)this.curCommandType=K.SMOOTH_QUAD_TO,this.curCommandRelative=a===`t`;else{if(a!==`a`&&a!==`A`)throw SyntaxError(`Unexpected character "`+a+`" at index `+i+`.`);this.curCommandType=K.ARC,this.curCommandRelative=a===`a`}else t.push({type:K.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=a,this.curNumberHasDecimal=a===`.`}else this.curNumber+=a,this.curNumberHasDecimal=!0;else this.curNumber+=a;else this.curNumber+=a,this.curNumberHasExp=!0;else this.curNumber+=a,this.curNumberHasExpDigits=this.curNumberHasExp}return t},t.prototype.transform=function(e){return Object.create(this,{parse:{value:function(t,n){n===void 0&&(n=[]);for(var r=0,i=Object.getPrototypeOf(this).parse.call(this,t);r>>x;if(o[y+3]=le,le!==0){var ue=255/le;o[y]=(F*b>>>x)*ue,o[y+1]=(I*b>>>x)*ue,o[y+2]=(te*b>>>x)*ue}else o[y]=o[y+1]=o[y+2]=0;F-=M,I-=N,te-=P,L-=ee,M-=g.r,N-=g.g,P-=g.b,ee-=g.a;var z=ce+a+1;z=v+(z>>x,H>0?(H=255/H,o[W]=(Se*b>>>x)*H,o[W+1]=(Ce*b>>>x)*H,o[W+2]=(we*b>>>x)*H):o[W]=o[W+1]=o[W+2]=0,Se-=ve,Ce-=ye,we-=be,Te-=xe,ve-=g.r,ye-=g.g,be-=g.b,xe-=g.a,W=B+((W=Ne+u)0&&arguments[0]!==void 0?arguments[0]:{},t={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(e,t){return new OffscreenCanvas(e,t)},createImage(e){return a(function*(){var t=yield(yield fetch(e)).blob();return yield createImageBitmap(t)})()}};return(typeof DOMParser<`u`||e===void 0)&&Reflect.deleteProperty(t,`DOMParser`),t}function oa(e){var{DOMParser:t,canvas:n,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,fetch:r,createCanvas:n.createCanvas,createImage:n.loadImage}}var sa=Object.freeze({__proto__:null,offscreen:aa,node:oa});function ca(e){return e.replace(/(?!\u3000)\s+/gm,` `)}function la(e){return e.replace(/^[\n \t]+/,``)}function ua(e){return e.replace(/[\n \t]+$/,``)}function q(e){return((e||``).match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var da=/^[A-Z-]+$/;function fa(e){return da.test(e)?e.toLowerCase():e}function pa(e){var t=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return t[2]||t[3]||t[4]}function ma(e){if(!e.startsWith(`rgb`))return e;var t=3;return e.replace(/\d+(\.\d+)?/g,(e,n)=>t--&&n?String(Math.round(parseFloat(e))):e)}var ha=/(\[[^\]]+\])/g,ga=/(#[^\s+>~.[:]+)/g,_a=/(\.[^\s+>~.[:]+)/g,va=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,ya=/(:[\w-]+\([^)]*\))/gi,ba=/(:[^\s+>~.[:]+)/g,xa=/([^\s+>~.[:]+)/g;function Sa(e,t){var n=t.exec(e);return n?[e.replace(t,` `),n.length]:[e,0]}function Ca(e){var t=[0,0,0],n=e.replace(/:not\(([^)]*)\)/g,` $1 `).replace(/{[\s\S]*/gm,` `),r=0;return[n,r]=Sa(n,ha),t[1]+=r,[n,r]=Sa(n,ga),t[0]+=r,[n,r]=Sa(n,_a),t[1]+=r,[n,r]=Sa(n,va),t[2]+=r,[n,r]=Sa(n,ya),t[1]+=r,[n,r]=Sa(n,ba),t[1]+=r,n=n.replace(/[*\s+>~]/g,` `).replace(/[#.]/g,` `),[n,r]=Sa(n,xa),t[2]+=r,t.join(``)}var wa=1e-8;function Ta(e){return Math.sqrt(e[0]**2+e[1]**2)}function Ea(e,t){return(e[0]*t[0]+e[1]*t[1])/(Ta(e)*Ta(t))}function Da(e,t){return(e[0]*t[1]0&&arguments[0]!==void 0?arguments[0]:` `,{document:n,name:r}=this;return ca(this.getString()).trim().split(t).map(t=>new e(n,r,t))}hasValue(e){var{value:t}=this;return t!==null&&t!==``&&(e||t!==0)&&t!==void 0}isString(e){var{value:t}=this,n=typeof t==`string`;return!n||!e?n:e.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var e=this.getString();switch(!0){case e.endsWith(`px`):case/^[0-9]+$/.test(e):return!0;default:return!1}}setValue(e){return this.value=e,this}getValue(e){return e===void 0||this.hasValue()?this.value:e}getNumber(e){if(!this.hasValue())return e===void 0?0:parseFloat(e);var{value:t}=this,n=parseFloat(t);return this.isString(/%$/)&&(n/=100),n}getString(e){return e===void 0||this.hasValue()?this.value===void 0?``:String(this.value):String(e)}getColor(e){var t=this.getString(e);return this.isNormalizedColor?t:(this.isNormalizedColor=!0,t=ma(t),this.value=t,t)}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,``)}getPixels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[n,r]=typeof e==`boolean`?[void 0,e]:[e],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize(`x`),i.computeSize(`y`));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize(`x`);case this.isString(/vh$/):return this.getNumber()/100*i.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 this.getNumber()*15;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(/%$/)&&r:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(n);default:var a=this.getNumber();return t&&a<1?a*i.computeSize(n):a}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var e=this.getString(),t=/#([^)'"]+)/.exec(e);return t&&=t[1],t||=e,this.document.definitions[t]}getFillStyleDefinition(e,t){var n=this.getDefinition();if(!n)return null;if(typeof n.createGradient==`function`)return n.createGradient(this.document.ctx,e,t);if(typeof n.createPattern==`function`){if(n.getHrefAttribute().hasValue()){var r=n.getAttribute(`patternTransform`);n=n.getHrefAttribute().getDefinition(),r.hasValue()&&n.getAttribute(`patternTransform`,!0).setValue(r.value)}return n.createPattern(this.document.ctx,e,t)}return null}getTextBaseline(){return this.hasValue()?e.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var n=this.getColor(),r=n.length,i=0,a=0;a1&&arguments[1]!==void 0?arguments[1]:0,[r=n,i=n]=q(t);return new e(r,i)}static parseScale(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=n,i=r]=q(t);return new e(r,i)}static parsePath(t){for(var n=q(t),r=n.length,i=[],a=0;a0}runEvents(){if(this.working){var{screen:e,events:t,eventElements:n}=this,{style:r}=e.ctx.canvas;r&&(r.cursor=``),t.forEach((e,t)=>{for(var{run:r}=e,i=n[t];i;)r(i),i=i.parent}),this.events=[],this.eventElements=[]}}checkPath(e,t){if(!(!this.working||!t)){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInPath&&t.isPointInPath(a,o)&&(r[i]=e)})}}checkBoundingBox(e,t){if(!(!this.working||!t)){var{events:n,eventElements:r}=this;n.forEach((n,i)=>{var{x:a,y:o}=n;!r[i]&&t.isPointInBox(a,o)&&(r[i]=e)})}}mapXY(e,t){for(var{window:n,ctx:r}=this.screen,i=new Y(e,t),a=r.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return n.scrollX&&(i.x+=n.scrollX),n.scrollY&&(i.y+=n.scrollY),i}onClick(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onclick`,x:t,y:n,run(e){e.onClick&&e.onClick()}})}onMouseMove(e){var{x:t,y:n}=this.mapXY(e.clientX,e.clientY);this.events.push({type:`onmousemove`,x:t,y:n,run(e){e.onMouseMove&&e.onMouseMove()}})}},La=typeof window<`u`?window:null,Ra=typeof fetch<`u`?fetch.bind(void 0):null,za=class{constructor(e){var{fetch:t=Ra,window:n=La}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=e,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Fa,this.mouse=new Ia(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=t}wait(e){this.waits.push(e)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var e=this.waits.every(e=>e());return e&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=e,e}setDefaults(e){e.strokeStyle=`rgba(0,0,0,0)`,e.lineCap=`butt`,e.lineJoin=`miter`,e.miterLimit=4}setViewBox(e){var{document:t,ctx:n,aspectRatio:r,width:i,desiredWidth:a,height:o,desiredHeight:s,minX:c=0,minY:l=0,refX:u,refY:d,clip:f=!1,clipX:p=0,clipY:m=0}=e,[h,g]=ca(r).replace(/^defer\s/,``).split(` `),_=h||`xMidYMid`,v=g||`meet`,y=i/a,b=o/s,x=Math.min(y,b),S=Math.max(y,b),C=a,w=s;v===`meet`&&(C*=x,w*=x),v===`slice`&&(C*=S,w*=S);var T=new J(t,`refX`,u),E=new J(t,`refY`,d),D=T.hasValue()&&E.hasValue();if(D&&n.translate(-x*T.getPixels(`x`),-x*E.getPixels(`y`)),f){var O=x*p,k=x*m;n.beginPath(),n.moveTo(O,k),n.lineTo(i,k),n.lineTo(i,o),n.lineTo(O,o),n.closePath(),n.clip()}if(!D){var A=v===`meet`&&x===b,j=v===`slice`&&S===b,M=v===`meet`&&x===y,N=v===`slice`&&S===y;_.startsWith(`xMid`)&&(A||j)&&n.translate(i/2-C/2,0),_.endsWith(`YMid`)&&(M||N)&&n.translate(0,o/2-w/2),_.startsWith(`xMax`)&&(A||j)&&n.translate(i-C,0),_.endsWith(`YMax`)&&(M||N)&&n.translate(0,o-w)}switch(!0){case _===`none`:n.scale(y,b);break;case v===`meet`:n.scale(x,x);break;case v===`slice`:n.scale(S,S);break}n.translate(-c,-l)}start(e){var{enableRedraw:t=!1,ignoreMouse:n=!1,ignoreAnimation:r=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:o,scaleWidth:s,scaleHeight:c,offsetX:l,offsetY:u}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:d,mouse:f}=this,p=1e3/d;if(this.frameDuration=p,this.readyPromise=new Promise(e=>{this.resolveReady=e}),this.isReady()&&this.render(e,i,a,s,c,l,u),t){var m=Date.now(),h=m,g=0,_=()=>{m=Date.now(),g=m-h,g>=p&&(h=m-g%p,this.shouldUpdate(r,o)&&(this.render(e,i,a,s,c,l,u),f.runEvents())),this.intervalId=(0,Qr.default)(_)};n||f.start(),this.intervalId=(0,Qr.default)(_)}}stop(){this.intervalId&&=(Qr.default.cancel(this.intervalId),null),this.mouse.stop()}shouldUpdate(e,t){if(!e){var{frameDuration:n}=this;if(this.animations.reduce((e,t)=>t.update(n)||e,!1))return!0}return!!(typeof t==`function`&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(e,t,n,r,i,a,o){var{CLIENT_WIDTH:s,CLIENT_HEIGHT:c,viewPort:l,ctx:u,isFirstRender:d}=this,f=u.canvas;l.clear(),f.width&&f.height?l.setCurrent(f.width,f.height):l.setCurrent(s,c);var p=e.getStyle(`width`),m=e.getStyle(`height`);!t&&(d||typeof r!=`number`&&typeof i!=`number`)&&(p.hasValue()&&(f.width=p.getPixels(`x`),f.style&&(f.style.width=`${f.width}px`)),m.hasValue()&&(f.height=m.getPixels(`y`),f.style&&(f.style.height=`${f.height}px`)));var h=f.clientWidth||f.width,g=f.clientHeight||f.height;if(t&&p.hasValue()&&m.hasValue()&&(h=p.getPixels(`x`),g=m.getPixels(`y`)),l.setCurrent(h,g),typeof a==`number`&&e.getAttribute(`x`,!0).setValue(a),typeof o==`number`&&e.getAttribute(`y`,!0).setValue(o),typeof r==`number`||typeof i==`number`){var _=q(e.getAttribute(`viewBox`).getString()),v=0,y=0;if(typeof r==`number`){var b=e.getStyle(`width`);b.hasValue()?v=b.getPixels(`x`)/r:isNaN(_[2])||(v=_[2]/r)}if(typeof i==`number`){var x=e.getStyle(`height`);x.hasValue()?y=x.getPixels(`y`)/i:isNaN(_[3])||(y=_[3]/i)}v||=y,y||=v,e.getAttribute(`width`,!0).setValue(r),e.getAttribute(`height`,!0).setValue(i);var S=e.getStyle(`transform`,!0,!0);S.setValue(`${S.getString()} scale(${1/v}, ${1/y})`)}n||u.clearRect(0,0,h,g),e.render(u),d&&(this.isFirstRender=!1)}};za.defaultWindow=La,za.defaultFetch=Ra;var{defaultFetch:Ba}=za,Va=typeof DOMParser<`u`?DOMParser:null,Ha=class{constructor(){var{fetch:e=Ba,DOMParser:t=Va}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=t}parse(e){var t=this;return a(function*(){return e.startsWith(`<`)?t.parseFromString(e):t.load(e)})()}parseFromString(e){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(e,`image/svg+xml`))}catch{return this.checkDocument(t.parseFromString(e,`text/xml`))}}checkDocument(e){var t=e.getElementsByTagName(`parsererror`)[0];if(t)throw Error(t.textContent);return e}load(e){var t=this;return a(function*(){var n=yield(yield t.fetch(e)).text();return t.parseFromString(n)})()}},Ua=class{constructor(e,t){this.type=`translate`,this.point=null,this.point=Y.parse(t)}apply(e){var{x:t,y:n}=this.point;e.translate(t||0,n||0)}unapply(e){var{x:t,y:n}=this.point;e.translate(-1*t||0,-1*n||0)}applyToPoint(e){var{x:t,y:n}=this.point;e.applyTransform([1,0,0,1,t||0,n||0])}},Wa=class{constructor(e,t,n){this.type=`rotate`,this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var r=q(t);this.angle=new J(e,`angle`,r[0]),this.originX=n[0],this.originY=n[1],this.cx=r[1]||0,this.cy=r[2]||0}apply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(a.getRadians()),e.translate(-o,-s)}unapply(e){var{cx:t,cy:n,originX:r,originY:i,angle:a}=this,o=t+r.getPixels(`x`),s=n+i.getPixels(`y`);e.translate(o,s),e.rotate(-1*a.getRadians()),e.translate(-o,-s)}applyToPoint(e){var{cx:t,cy:n,angle:r}=this,i=r.getRadians();e.applyTransform([1,0,0,1,t||0,n||0]),e.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),e.applyTransform([1,0,0,1,-t||0,-n||0])}},Ga=class{constructor(e,t,n){this.type=`scale`,this.scale=null,this.originX=null,this.originY=null;var r=Y.parseScale(t);(r.x===0||r.y===0)&&(r.x=wa,r.y=wa),this.scale=r,this.originX=n[0],this.originY=n[1]}apply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(t,n||t),e.translate(-a,-o)}unapply(e){var{scale:{x:t,y:n},originX:r,originY:i}=this,a=r.getPixels(`x`),o=i.getPixels(`y`);e.translate(a,o),e.scale(1/t,1/n||t),e.translate(-a,-o)}applyToPoint(e){var{x:t,y:n}=this.scale;e.applyTransform([t||0,0,0,n||0,0,0])}},Ka=class{constructor(e,t,n){this.type=`matrix`,this.matrix=[],this.originX=null,this.originY=null,this.matrix=q(t),this.originX=n[0],this.originY=n[1]}apply(e){var{originX:t,originY:n,matrix:r}=this,i=t.getPixels(`x`),a=n.getPixels(`y`);e.translate(i,a),e.transform(r[0],r[1],r[2],r[3],r[4],r[5]),e.translate(-i,-a)}unapply(e){var{originX:t,originY:n,matrix:r}=this,i=r[0],a=r[2],o=r[4],s=r[1],c=r[3],l=r[5],u=0,d=0,f=1,p=1/(i*(c*f-l*d)-a*(s*f-l*u)+o*(s*d-c*u)),m=t.getPixels(`x`),h=n.getPixels(`y`);e.translate(m,h),e.transform(p*(c*f-l*d),p*(l*u-s*f),p*(o*d-a*f),p*(i*f-o*u),p*(a*l-o*c),p*(o*s-i*l)),e.translate(-m,-h)}applyToPoint(e){e.applyTransform(this.matrix)}},qa=class extends Ka{constructor(e,t,n){super(e,t,n),this.type=`skew`,this.angle=null,this.angle=new J(e,`angle`,t)}},Ja=class extends qa{constructor(e,t,n){super(e,t,n),this.type=`skewX`,this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},Ya=class extends qa{constructor(e,t,n){super(e,t,n),this.type=`skewY`,this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};function Xa(e){return ca(e).trim().replace(/\)([a-zA-Z])/g,`) $1`).replace(/\)(\s?,\s?)/g,`) `).split(/\s(?=[a-z])/)}function Za(e){var[t,n]=e.split(`(`);return[t.trim(),n.trim().replace(`)`,``)]}var Qa=class e{constructor(t,n,r){this.document=t,this.transforms=[],Xa(n).forEach(t=>{if(t!==`none`){var[n,i]=Za(t),a=e.transformTypes[n];a!==void 0&&this.transforms.push(new a(this.document,i,r))}})}static fromElement(t,n){var r=n.getStyle(`transform`,!1,!0),[i,a=i]=n.getStyle(`transform-origin`,!1,!0).split(),o=[i,a];return r.hasValue()?new e(t,r.getString(),o):null}apply(e){for(var{transforms:t}=this,n=t.length,r=0;r=0;n--)t[n].unapply(e)}applyToPoint(e){for(var{transforms:t}=this,n=t.length,r=0;r2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=e,this.node=t,this.captureTextNodes=n,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue=``,this.parent=null,this.children=[],!(!t||t.nodeType!==1)){Array.from(t.attributes).forEach(t=>{var n=fa(t.nodeName);this.attributes[n]=new J(e,n,t.value)}),this.addStylesFromStyleDefinition(),this.getAttribute(`style`).hasValue()&&this.getAttribute(`style`).getString().split(`;`).map(e=>e.trim()).forEach(t=>{if(t){var[n,r]=t.split(`:`).map(e=>e.trim());this.styles[n]=new J(e,n,r)}});var{definitions:r}=e,i=this.getAttribute(`id`);i.hasValue()&&(r[i.getString()]||(r[i.getString()]=this)),Array.from(t.childNodes).forEach(t=>{if(t.nodeType===1)this.addChild(t);else if(n&&(t.nodeType===3||t.nodeType===4)){var r=e.createTextNode(t);r.getText().length>0&&this.addChild(r)}})}}getAttribute(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.attributes[e];if(!n&&t){var r=new J(this.document,e,``);return this.attributes[e]=r,r}return n||J.empty(this.document)}getHrefAttribute(){for(var e in this.attributes)if(e===`href`||e.endsWith(`:href`))return this.attributes[e];return J.empty(this.document)}getStyle(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.styles[e];if(r)return r;var i=this.getAttribute(e);if(i!=null&&i.hasValue())return this.styles[e]=i,i;if(!n){var{parent:a}=this;if(a){var o=a.getStyle(e);if(o!=null&&o.hasValue())return o}}if(t){var s=new J(this.document,e,``);return this.styles[e]=s,s}return r||J.empty(this.document)}render(e){if(!(this.getStyle(`display`).getString()===`none`||this.getStyle(`visibility`).getString()===`hidden`)){if(e.save(),this.getStyle(`mask`).hasValue()){var t=this.getStyle(`mask`).getDefinition();t&&(this.applyEffects(e),t.apply(e,this))}else if(this.getStyle(`filter`).getValue(`none`)!==`none`){var n=this.getStyle(`filter`).getDefinition();n&&(this.applyEffects(e),n.apply(e,this))}else this.setContext(e),this.renderChildren(e),this.clearContext(e);e.restore()}}setContext(e){}applyEffects(e){var t=Qa.fromElement(this.document,this);t&&t.apply(e);var n=this.getStyle(`clip-path`,!1,!0);if(n.hasValue()){var r=n.getDefinition();r&&r.apply(e)}}clearContext(e){}renderChildren(e){this.children.forEach(t=>{t.render(e)})}addChild(t){var n=t instanceof e?t:this.document.createElement(t);n.parent=this,e.ignoreChildTypes.includes(n.type)||this.children.push(n)}matchesSelector(e){var{node:t}=this;if(typeof t.matches==`function`)return t.matches(e);var n=t.getAttribute?.call(t,`class`);return!n||n===``?!1:n.split(` `).some(t=>`.${t}`===e)}addStylesFromStyleDefinition(){var{styles:e,stylesSpecificity:t}=this.document;for(var n in e)if(!n.startsWith(`@`)&&this.matchesSelector(n)){var r=e[n],i=t[n];if(r)for(var a in r){var o=this.stylesSpecificity[a];o===void 0&&(o=`000`),i>=o&&(this.styles[a]=r[a],this.stylesSpecificity[a]=i)}}}removeStyles(e,t){return t.reduce((t,n)=>{var r=e.getStyle(n);if(!r.hasValue())return t;var i=r.getString();return r.setValue(``),[...t,[n,i]]},[])}restoreStyles(e,t){t.forEach(t=>{var[n,r]=t;e.getStyle(n,!0).setValue(r)})}isFirstChild(){return this.parent?.children.indexOf(this)===0}};X.ignoreChildTypes=[`title`];var $a=class extends X{constructor(e,t,n){super(e,t,n)}};function eo(e){var t=e.trim();return/^('|")/.test(t)?t:`"${t}"`}function to(e){return typeof process>`u`?e:e.trim().split(`,`).map(eo).join(`,`)}function no(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`italic`:case`oblique`:case`inherit`:case`initial`:case`unset`:return t;default:return/^oblique\s+(-|)\d+deg$/.test(t)?t:``}}function ro(e){if(!e)return``;var t=e.trim().toLowerCase();switch(t){case`normal`:case`bold`:case`lighter`:case`bolder`:case`inherit`:case`initial`:case`unset`:return t;default:return/^[\d.]+$/.test(t)?t:``}}var io=class e{constructor(t,n,r,i,a,o){var s=o?typeof o==`string`?e.parse(o):o:{};this.fontFamily=a||s.fontFamily,this.fontSize=i||s.fontSize,this.fontStyle=t||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=n||s.fontVariant}static parse(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:``,n=arguments.length>1?arguments[1]:void 0,r=``,i=``,a=``,o=``,s=``,c=ca(t).trim().split(` `),l={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return c.forEach(t=>{switch(!0){case!l.fontStyle&&e.styles.includes(t):t!==`inherit`&&(r=t),l.fontStyle=!0;break;case!l.fontVariant&&e.variants.includes(t):t!==`inherit`&&(i=t),l.fontStyle=!0,l.fontVariant=!0;break;case!l.fontWeight&&e.weights.includes(t):t!==`inherit`&&(a=t),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0;break;case!l.fontSize:t!==`inherit`&&([o]=t.split(`/`)),l.fontStyle=!0,l.fontVariant=!0,l.fontWeight=!0,l.fontSize=!0;break;default:t!==`inherit`&&(s+=t)}}),new e(r,i,a,o,s,n)}toString(){return[no(this.fontStyle),this.fontVariant,ro(this.fontWeight),this.fontSize,to(this.fontFamily)].join(` `).trim()}};io.styles=`normal|italic|oblique|inherit`,io.variants=`normal|small-caps|inherit`,io.weights=`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit`;var ao=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:NaN,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:NaN,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:NaN;this.x1=e,this.y1=t,this.x2=n,this.y2=r,this.addPoint(e,t),this.addPoint(n,r)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,t){e!==void 0&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),t!==void 0&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),tthis.y2&&(this.y2=t))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:t,y1:n,x2:r,y2:i}=e;this.addPoint(t,n),this.addPoint(r,i)}}sumCubic(e,t,n,r,i){return(1-e)**3*t+3*(1-e)**2*e*n+3*(1-e)*e**2*r+e**3*i}bezierCurveAdd(e,t,n,r,i){var a=6*t-12*n+6*r,o=-3*t+9*n-9*r+3*i,s=3*n-3*t;if(o===0){if(a===0)return;var c=-s/a;0=t.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`x`,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`y`,n=new Y(this.command[e],this.command[t]);return this.makeAbsolute(n)}getAsControlPoint(e,t){var n=this.getPoint(e,t);return this.control=n,n}getAsCurrentPoint(e,t){var n=this.getPoint(e,t);return this.current=n,n}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==K.CURVE_TO&&e!==K.SMOOTH_CURVE_TO&&e!==K.QUAD_TO&&e!==K.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:n},control:{x:r,y:i}}=this;return new Y(2*t-r,2*n-i)}makeAbsolute(e){if(this.command.relative){var{x:t,y:n}=this.current;e.x+=t,e.y+=n}return e}addMarker(e,t,n){var{points:r,angles:i}=this;n&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=r[r.length-1].angleTo(n)),this.addMarkerAngle(e,t?t.angleTo(e):null)}addMarkerAngle(e,t){this.points.push(e),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,t=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var n=this.getStyle(`fill`),r=this.getStyle(`fill-opacity`),i=this.getStyle(`stroke`),a=this.getStyle(`stroke-opacity`);if(n.isUrlDefinition()){var o=n.getFillStyleDefinition(this,r);o&&(e.fillStyle=o)}else if(n.hasValue()){n.getString()===`currentColor`&&n.setValue(this.getStyle(`color`).getColor());var s=n.getColor();s!==`inherit`&&(e.fillStyle=s===`none`?`rgba(0,0,0,0)`:s)}if(r.hasValue()&&(e.fillStyle=new J(this.document,`fill`,e.fillStyle).addOpacity(r).getColor()),i.isUrlDefinition()){var c=i.getFillStyleDefinition(this,a);c&&(e.strokeStyle=c)}else if(i.hasValue()){i.getString()===`currentColor`&&i.setValue(this.getStyle(`color`).getColor());var l=i.getString();l!==`inherit`&&(e.strokeStyle=l===`none`?`rgba(0,0,0,0)`:l)}a.hasValue()&&(e.strokeStyle=new J(this.document,`stroke`,e.strokeStyle).addOpacity(a).getString());var u=this.getStyle(`stroke-width`);u.hasValue()&&(e.lineWidth=u.getPixels()||wa);var d=this.getStyle(`stroke-linecap`),f=this.getStyle(`stroke-linejoin`),p=this.getStyle(`stroke-miterlimit`),m=this.getStyle(`stroke-dasharray`),h=this.getStyle(`stroke-dashoffset`);if(d.hasValue()&&(e.lineCap=d.getString()),f.hasValue()&&(e.lineJoin=f.getString()),p.hasValue()&&(e.miterLimit=p.getNumber()),m.hasValue()&&m.getString()!==`none`){var g=q(m.getString());e.setLineDash===void 0?e.webkitLineDash===void 0?e.mozDash!==void 0&&!(g.length===1&&g[0]===0)&&(e.mozDash=g):e.webkitLineDash=g:e.setLineDash(g);var _=h.getPixels();e.lineDashOffset===void 0?e.webkitLineDashOffset===void 0?e.mozDashOffset!==void 0&&(e.mozDashOffset=_):e.webkitLineDashOffset=_:e.lineDashOffset=_}}if(this.modifiedEmSizeStack=!1,e.font!==void 0){var v=this.getStyle(`font`),y=this.getStyle(`font-style`),b=this.getStyle(`font-variant`),x=this.getStyle(`font-weight`),S=this.getStyle(`font-size`),C=this.getStyle(`font-family`),w=new io(y.getString(),b.getString(),x.getString(),S.hasValue()?`${S.getPixels(!0)}px`:``,C.getString(),io.parse(v.getString(),e.font));y.setValue(w.fontStyle),b.setValue(w.fontVariant),x.setValue(w.fontWeight),S.setValue(w.fontSize),C.setValue(w.fontFamily),e.font=w.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},Q=class e extends oo{constructor(e,t,n){super(e,t,n),this.type=`path`,this.pathParser=null,this.pathParser=new Z(this.getAttribute(`d`).getString())}path(e){var{pathParser:t}=this,n=new ao;for(t.reset(),e&&e.beginPath();!t.isEnd();)switch(t.next().type){case Z.MOVE_TO:this.pathM(e,n);break;case Z.LINE_TO:this.pathL(e,n);break;case Z.HORIZ_LINE_TO:this.pathH(e,n);break;case Z.VERT_LINE_TO:this.pathV(e,n);break;case Z.CURVE_TO:this.pathC(e,n);break;case Z.SMOOTH_CURVE_TO:this.pathS(e,n);break;case Z.QUAD_TO:this.pathQ(e,n);break;case Z.SMOOTH_QUAD_TO:this.pathT(e,n);break;case Z.ARC:this.pathA(e,n);break;case Z.CLOSE_PATH:this.pathZ(e,n);break}return n}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,t=e.getMarkerPoints(),n=e.getMarkerAngles();return t.map((e,t)=>[e,n[t]])}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var t=this.getStyle(`fill-rule`);e.fillStyle!==``&&(t.getString(`inherit`)===`inherit`?e.fill():e.fill(t.getString())),e.strokeStyle!==``&&(this.getAttribute(`vector-effect`).getString()===`non-scaling-stroke`?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var r=n.length-1,i=this.getStyle(`marker-start`),a=this.getStyle(`marker-mid`),o=this.getStyle(`marker-end`);if(i.isUrlDefinition()){var s=i.getDefinition(),[c,l]=n[0];s.render(e,c,l)}if(a.isUrlDefinition())for(var u=a.getDefinition(),d=1;d1&&(r*=Math.sqrt(d),i*=Math.sqrt(d));var f=(o===s?-1:1)*Math.sqrt((r**2*i**2-r**2*u.y**2-i**2*u.x**2)/(r**2*u.y**2+i**2*u.x**2));isNaN(f)&&(f=0);var p=new Y(f*r*u.y/i,f*-i*u.x/r),m=new Y((t.x+l.x)/2+Math.cos(c)*p.x-Math.sin(c)*p.y,(t.y+l.y)/2+Math.sin(c)*p.x+Math.cos(c)*p.y),h=Da([1,0],[(u.x-p.x)/r,(u.y-p.y)/i]),g=[(u.x-p.x)/r,(u.y-p.y)/i],_=[(-u.x-p.x)/r,(-u.y-p.y)/i],v=Da(g,_);return Ea(g,_)<=-1&&(v=Math.PI),Ea(g,_)>=1&&(v=0),{currentPoint:l,rX:r,rY:i,sweepFlag:s,xAxisRotation:c,centp:m,a1:h,ad:v}}pathA(t,n){var{pathParser:r}=this,{currentPoint:i,rX:a,rY:o,sweepFlag:s,xAxisRotation:c,centp:l,a1:u,ad:d}=e.pathA(r),f=1-s?1:-1,p=u+d/2*f,m=new Y(l.x+a*Math.cos(p),l.y+o*Math.sin(p));if(r.addMarkerAngle(m,p-f*Math.PI/2),r.addMarkerAngle(i,p-f*Math.PI),n.addPoint(i.x,i.y),t&&!isNaN(u)&&!isNaN(d)){var h=a>o?a:o,g=a>o?1:a/o,_=a>o?o/a:1;t.translate(l.x,l.y),t.rotate(c),t.scale(g,_),t.arc(0,0,h,u,u+d,!!(1-s)),t.scale(1/g,1/_),t.rotate(-c),t.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(t,n){e.pathZ(this.pathParser),t&&n.x1!==n.x2&&n.y1!==n.y2&&t.closePath()}},so=class extends Q{constructor(e,t,n){super(e,t,n),this.type=`glyph`,this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber(),this.unicode=this.getAttribute(`unicode`).getString(),this.arabicForm=this.getAttribute(`arabic-form`).getString()}},co=class e extends oo{constructor(t,n,r){super(t,n,new.target===e?!0:r),this.type=`text`,this.x=0,this.y=0,this.measureCache=-1}setContext(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,t);var n=this.getStyle(`dominant-baseline`).getTextBaseline()||this.getStyle(`alignment-baseline`).getTextBaseline();n&&(e.textBaseline=n)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=1/0,this.maxX=-1/0}getBoundingBox(e){if(this.type!==`text`)return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var t=null;return this.children.forEach((n,r)=>{var i=this.getChildBoundingBox(e,this,this,r);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:e,parent:t}=this,n=io.parse(e.ctx.font).fontSize;return t.getStyle(`font-size`).getNumber(n)}getTElementBoundingBox(e){var t=this.getFontSize();return new ao(this.x,this.y-t,this.x+this.measureText(e),this.y)}getGlyph(e,t,n){var r=t[n],i=null;if(e.isArabic){var a=t.length,o=t[n-1],s=t[n+1],c=`isolated`;if((n===0||o===` `)&&n0&&o!==` `&&n0&&o!==` `&&(n===a-1||s===` `)&&(c=`initial`),e.glyphs[r]!==void 0){var l=e.glyphs[r];i=l instanceof so?l:l[c]}}else i=e.glyphs[r];return i||=e.missingGlyph,i}getText(){return``}getTextFromNode(e){var t=e||this.node,n=Array.from(t.parentNode.childNodes),r=n.indexOf(t),i=n.length-1,a=ca(t.textContent||``);return r===0&&(a=la(a)),r===i&&(a=ua(a)),a}renderChildren(e){if(this.type!==`text`){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,n)=>{this.renderChild(e,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:t,parent:n}=this,r=this.getText(),i=n.getStyle(`font-family`).getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,o=io.parse(t.ctx.font),s=n.getStyle(`font-size`).getNumber(o.fontSize),c=n.getStyle(`font-style`).getString(o.fontStyle),l=s/a,u=i.isRTL?r.split(``).reverse().join(``):r,d=q(n.getAttribute(`dx`).getString()),f=u.length,p=0;p=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],t=e.getStyle(`text-anchor`).getString(`start`),n=!1,r=0;r=t===`start`&&!n||t===`end`&&n?e.x-this.minX:t===`end`&&!n||t===`start`&&n?e.x-this.maxX:e.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i{this.adjustChildCoordinatesRecursiveCore(e,this,this,n)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,t,n,r){var i=n.children[r];i.children.length>0?i.children.forEach((n,r)=>{t.adjustChildCoordinatesRecursiveCore(e,t,i,r)}):this.adjustChildCoordinates(e,t,n,r)}adjustChildCoordinates(e,t,n,r){var i=n.children[r];if(typeof i.measureText!=`function`)return i;e.save(),i.setContext(e,!0);var a=i.getAttribute(`x`),o=i.getAttribute(`y`),s=i.getAttribute(`dx`),c=i.getAttribute(`dy`),l=i.getStyle(`font-family`).getDefinition(),u=!!l&&l.isRTL;r===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute(`x`)),o.hasValue()||o.setValue(i.getInheritedAttribute(`y`)),s.hasValue()||s.setValue(i.getInheritedAttribute(`dx`)),c.hasValue()||c.setValue(i.getInheritedAttribute(`dy`)));var d=i.measureText(e);return u&&(t.x-=d),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels(`x`),s.hasValue()&&(i.x+=s.getPixels(`x`))):(s.hasValue()&&(t.x+=s.getPixels(`x`)),i.x=t.x),t.x=i.x,u||(t.x+=d),o.hasValue()?(i.y=o.getPixels(`y`),c.hasValue()&&(i.y+=c.getPixels(`y`))):(c.hasValue()&&(t.y+=c.getPixels(`y`)),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+d),t.maxX=Math.max(t.maxX,i.x,i.x+d),i.clearContext(e),e.restore(),i}getChildBoundingBox(e,t,n,r){var i=n.children[r];if(typeof i.getBoundingBox!=`function`)return null;var a=i.getBoundingBox(e);return a?(i.children.forEach((n,r)=>{var o=t.getChildBoundingBox(e,t,i,r);a.addBoundingBox(o)}),a):null}renderChild(e,t,n,r){var i=n.children[r];i.render(e),i.children.forEach((n,r)=>{t.renderChild(e,t,i,r)})}measureText(e){var{measureCache:t}=this;if(~t)return t;var n=this.getText(),r=this.measureTargetText(e,n);return this.measureCache=r,r}measureTargetText(e,t){if(!t.length)return 0;var{parent:n}=this,r=n.getStyle(`font-family`).getDefinition();if(r){for(var i=this.getFontSize(),a=r.isRTL?t.split(``).reverse().join(``):t,o=q(n.getAttribute(`dx`).getString()),s=a.length,c=0,l=0;l0?``:this.getTextFromNode()}getText(){return this.text}},uo=class extends lo{constructor(){super(...arguments),this.type=`textNode`}},fo=class extends oo{constructor(){super(...arguments),this.type=`svg`,this.root=!1}setContext(e){var{document:t}=this,{screen:n,window:r}=t,i=e.canvas;if(n.setDefaults(e),i.style&&e.font!==void 0&&r&&r.getComputedStyle!==void 0){e.font=r.getComputedStyle(i).getPropertyValue(`font`);var a=new J(t,`fontSize`,io.parse(e.font).fontSize);a.hasValue()&&(t.rootEmSize=a.getPixels(`y`),t.emSize=t.rootEmSize)}this.getAttribute(`x`).hasValue()||this.getAttribute(`x`,!0).setValue(0),this.getAttribute(`y`).hasValue()||this.getAttribute(`y`,!0).setValue(0);var{width:o,height:s}=n.viewPort;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 c=this.getAttribute(`refX`),l=this.getAttribute(`refY`),u=this.getAttribute(`viewBox`),d=u.hasValue()?q(u.getString()):null,f=!this.root&&this.getStyle(`overflow`).getValue(`hidden`)!==`visible`,p=0,m=0,h=0,g=0;d&&(p=d[0],m=d[1]),this.root||(o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`),this.type===`marker`&&(h=p,g=m,p=0,m=0)),n.viewPort.setCurrent(o,s),this.node&&(!this.parent||this.node.parentNode?.nodeName===`foreignObject`)&&this.getStyle(`transform`,!1,!0).hasValue()&&!this.getStyle(`transform-origin`,!1,!0).hasValue()&&this.getStyle(`transform-origin`,!0,!0).setValue(`50% 50%`),super.setContext(e),e.translate(this.getAttribute(`x`).getPixels(`x`),this.getAttribute(`y`).getPixels(`y`)),d&&(o=d[2],s=d[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:s,minX:p,minY:m,refX:c.getValue(),refY:l.getValue(),clip:f,clipX:h,clipY:g}),d&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,s))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=this.getAttribute(`width`,!0),i=this.getAttribute(`height`,!0),a=this.getAttribute(`viewBox`),o=this.getAttribute(`style`),s=r.getNumber(0),c=i.getNumber(0);if(n)if(typeof n==`string`)this.getAttribute(`preserveAspectRatio`,!0).setValue(n);else{var l=this.getAttribute(`preserveAspectRatio`);l.hasValue()&&l.setValue(l.getString().replace(/^\s*(\S.*\S)\s*$/,`$1`))}if(r.setValue(e),i.setValue(t),a.hasValue()||a.setValue(`0 0 ${s||e} ${c||t}`),o.hasValue()){var u=this.getStyle(`width`),d=this.getStyle(`height`);u.hasValue()&&u.setValue(`${e}px`),d.hasValue()&&d.setValue(`${t}px`)}}},po=class extends Q{constructor(){super(...arguments),this.type=`rect`}path(e){var t=this.getAttribute(`x`).getPixels(`x`),n=this.getAttribute(`y`).getPixels(`y`),r=this.getStyle(`width`,!1,!0).getPixels(`x`),i=this.getStyle(`height`,!1,!0).getPixels(`y`),a=this.getAttribute(`rx`),o=this.getAttribute(`ry`),s=a.getPixels(`x`),c=o.getPixels(`y`);if(a.hasValue()&&!o.hasValue()&&(c=s),o.hasValue()&&!a.hasValue()&&(s=c),s=Math.min(s,r/2),c=Math.min(c,i/2),e){var l=4*((Math.sqrt(2)-1)/3);e.beginPath(),i>0&&r>0&&(e.moveTo(t+s,n),e.lineTo(t+r-s,n),e.bezierCurveTo(t+r-s+l*s,n,t+r,n+c-l*c,t+r,n+c),e.lineTo(t+r,n+i-c),e.bezierCurveTo(t+r,n+i-c+l*c,t+r-s+l*s,n+i,t+r-s,n+i),e.lineTo(t+s,n+i),e.bezierCurveTo(t+s-l*s,n+i,t,n+i-c+l*c,t,n+i-c),e.lineTo(t,n+c),e.bezierCurveTo(t,n+c-l*c,t+s-l*s,n,t+s,n),e.closePath())}return new ao(t,n,t+r,n+i)}getMarkers(){return null}},mo=class extends Q{constructor(){super(...arguments),this.type=`circle`}path(e){var t=this.getAttribute(`cx`).getPixels(`x`),n=this.getAttribute(`cy`).getPixels(`y`),r=this.getAttribute(`r`).getPixels();return e&&r>0&&(e.beginPath(),e.arc(t,n,r,0,Math.PI*2,!1),e.closePath()),new ao(t-r,n-r,t+r,n+r)}getMarkers(){return null}},ho=class extends Q{constructor(){super(...arguments),this.type=`ellipse`}path(e){var t=4*((Math.sqrt(2)-1)/3),n=this.getAttribute(`rx`).getPixels(`x`),r=this.getAttribute(`ry`).getPixels(`y`),i=this.getAttribute(`cx`).getPixels(`x`),a=this.getAttribute(`cy`).getPixels(`y`);return e&&n>0&&r>0&&(e.beginPath(),e.moveTo(i+n,a),e.bezierCurveTo(i+n,a+t*r,i+t*n,a+r,i,a+r),e.bezierCurveTo(i-t*n,a+r,i-n,a+t*r,i-n,a),e.bezierCurveTo(i-n,a-t*r,i-t*n,a-r,i,a-r),e.bezierCurveTo(i+t*n,a-r,i+n,a-t*r,i+n,a),e.closePath()),new ao(i-n,a-r,i+n,a+r)}getMarkers(){return null}},go=class extends Q{constructor(){super(...arguments),this.type=`line`}getPoints(){return[new Y(this.getAttribute(`x1`).getPixels(`x`),this.getAttribute(`y1`).getPixels(`y`)),new Y(this.getAttribute(`x2`).getPixels(`x`),this.getAttribute(`y2`).getPixels(`y`))]}path(e){var[{x:t,y:n},{x:r,y:i}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(t,n),e.lineTo(r,i)),new ao(t,n,r,i)}getMarkers(){var[e,t]=this.getPoints(),n=e.angleTo(t);return[[e,n],[t,n]]}},_o=class extends Q{constructor(e,t,n){super(e,t,n),this.type=`polyline`,this.points=[],this.points=Y.parsePath(this.getAttribute(`points`).getString())}path(e){var{points:t}=this,[{x:n,y:r}]=t,i=new ao(n,r);return e&&(e.beginPath(),e.moveTo(n,r)),t.forEach(t=>{var{x:n,y:r}=t;i.addPoint(n,r),e&&e.lineTo(n,r)}),i}getMarkers(){var{points:e}=this,t=e.length-1,n=[];return e.forEach((r,i)=>{i!==t&&n.push([r,r.angleTo(e[i+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}},vo=class extends _o{constructor(){super(...arguments),this.type=`polygon`}path(e){var t=super.path(e),[{x:n,y:r}]=this.points;return e&&(e.lineTo(n,r),e.closePath()),t}},yo=class extends X{constructor(){super(...arguments),this.type=`pattern`}createPattern(e,t,n){var r=this.getStyle(`width`).getPixels(`x`,!0),i=this.getStyle(`height`).getPixels(`y`,!0),a=new fo(this.document,null);a.attributes.viewBox=new J(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),a.attributes.width=new J(this.document,`width`,`${r}px`),a.attributes.height=new J(this.document,`height`,`${i}px`),a.attributes.transform=new J(this.document,`transform`,this.getAttribute(`patternTransform`).getValue()),a.children=this.children;var o=this.document.createCanvas(r,i),s=o.getContext(`2d`),c=this.getAttribute(`x`),l=this.getAttribute(`y`);c.hasValue()&&l.hasValue()&&s.translate(c.getPixels(`x`,!0),l.getPixels(`y`,!0)),n.hasValue()?this.styles[`fill-opacity`]=n:Reflect.deleteProperty(this.styles,`fill-opacity`);for(var u=-1;u<=1;u++)for(var d=-1;d<=1;d++)s.save(),a.attributes.x=new J(this.document,`x`,u*o.width),a.attributes.y=new J(this.document,`y`,d*o.height),a.render(s),s.restore();return e.createPattern(o,`repeat`)}},bo=class extends X{constructor(){super(...arguments),this.type=`marker`}render(e,t,n){if(t){var{x:r,y:i}=t,a=this.getAttribute(`orient`).getString(`auto`),o=this.getAttribute(`markerUnits`).getString(`strokeWidth`);e.translate(r,i),a===`auto`&&e.rotate(n),o===`strokeWidth`&&e.scale(e.lineWidth,e.lineWidth),e.save();var s=new fo(this.document,null);s.type=this.type,s.attributes.viewBox=new J(this.document,`viewBox`,this.getAttribute(`viewBox`).getValue()),s.attributes.refX=new J(this.document,`refX`,this.getAttribute(`refX`).getValue()),s.attributes.refY=new J(this.document,`refY`,this.getAttribute(`refY`).getValue()),s.attributes.width=new J(this.document,`width`,this.getAttribute(`markerWidth`).getValue()),s.attributes.height=new J(this.document,`height`,this.getAttribute(`markerHeight`).getValue()),s.attributes.overflow=new J(this.document,`overflow`,this.getAttribute(`overflow`).getValue()),s.attributes.fill=new J(this.document,`fill`,this.getAttribute(`fill`).getColor(`black`)),s.attributes.stroke=new J(this.document,`stroke`,this.getAttribute(`stroke`).getValue(`none`)),s.children=this.children,s.render(e),e.restore(),o===`strokeWidth`&&e.scale(1/e.lineWidth,1/e.lineWidth),a===`auto`&&e.rotate(-n),e.translate(-r,-i)}}},xo=class extends X{constructor(){super(...arguments),this.type=`defs`}render(){}},So=class extends oo{constructor(){super(...arguments),this.type=`g`}getBoundingBox(e){var t=new ao;return this.children.forEach(n=>{t.addBoundingBox(n.getBoundingBox(e))}),t}},Co=class extends X{constructor(e,t,n){super(e,t,n),this.attributesToInherit=[`gradientUnits`],this.stops=[];var{stops:r,children:i}=this;i.forEach(e=>{e.type===`stop`&&r.push(e)})}getGradientUnits(){return this.getAttribute(`gradientUnits`).getString(`objectBoundingBox`)}createGradient(e,t,n){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var{stops:i}=r,a=this.getGradient(e,t);if(!a)return this.addParentOpacity(n,i[i.length-1].color);if(i.forEach(e=>{a.addColorStop(e.offset,this.addParentOpacity(n,e.color))}),this.getAttribute(`gradientTransform`).hasValue()){var{document:o}=this,{MAX_VIRTUAL_PIXELS:s,viewPort:c}=o.screen,[l]=c.viewPorts,u=new po(o,null);u.attributes.x=new J(o,`x`,-s/3),u.attributes.y=new J(o,`y`,-s/3),u.attributes.width=new J(o,`width`,s),u.attributes.height=new J(o,`height`,s);var d=new So(o,null);d.attributes.transform=new J(o,`transform`,this.getAttribute(`gradientTransform`).getValue()),d.children=[u];var f=new fo(o,null);f.attributes.x=new J(o,`x`,0),f.attributes.y=new J(o,`y`,0),f.attributes.width=new J(o,`width`,l.width),f.attributes.height=new J(o,`height`,l.height),f.children=[d];var p=o.createCanvas(l.width,l.height),m=p.getContext(`2d`);return m.fillStyle=a,f.render(m),m.createPattern(p,`no-repeat`)}return a}inheritStopContainer(e){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&e.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(e.getAttribute(t).getValue())})}addParentOpacity(e,t){return e.hasValue()?new J(this.document,`color`,t).addOpacity(e).getColor():t}},wo=class extends Co{constructor(e,t,n){super(e,t,n),this.type=`linearGradient`,this.attributesToInherit.push(`x1`,`y1`,`x2`,`y2`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=n?t.getBoundingBox(e):null;if(n&&!r)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=n?r.x+r.width*this.getAttribute(`x1`).getNumber():this.getAttribute(`x1`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`y1`).getNumber():this.getAttribute(`y1`).getPixels(`y`),o=n?r.x+r.width*this.getAttribute(`x2`).getNumber():this.getAttribute(`x2`).getPixels(`x`),s=n?r.y+r.height*this.getAttribute(`y2`).getNumber():this.getAttribute(`y2`).getPixels(`y`);return i===o&&a===s?null:e.createLinearGradient(i,a,o,s)}},To=class extends Co{constructor(e,t,n){super(e,t,n),this.type=`radialGradient`,this.attributesToInherit.push(`cx`,`cy`,`r`,`fx`,`fy`,`fr`)}getGradient(e,t){var n=this.getGradientUnits()===`objectBoundingBox`,r=t.getBoundingBox(e);if(n&&!r)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=n?r.x+r.width*this.getAttribute(`cx`).getNumber():this.getAttribute(`cx`).getPixels(`x`),a=n?r.y+r.height*this.getAttribute(`cy`).getNumber():this.getAttribute(`cy`).getPixels(`y`),o=i,s=a;this.getAttribute(`fx`).hasValue()&&(o=n?r.x+r.width*this.getAttribute(`fx`).getNumber():this.getAttribute(`fx`).getPixels(`x`)),this.getAttribute(`fy`).hasValue()&&(s=n?r.y+r.height*this.getAttribute(`fy`).getNumber():this.getAttribute(`fy`).getPixels(`y`));var c=n?(r.width+r.height)/2*this.getAttribute(`r`).getNumber():this.getAttribute(`r`).getPixels(),l=this.getAttribute(`fr`).getPixels();return e.createRadialGradient(o,s,l,i,a,c)}},Eo=class extends X{constructor(e,t,n){super(e,t,n),this.type=`stop`;var r=Math.max(0,Math.min(1,this.getAttribute(`offset`).getNumber())),i=this.getStyle(`stop-opacity`),a=this.getStyle(`stop-color`,!0);a.getString()===``&&a.setValue(`#000`),i.hasValue()&&(a=a.addOpacity(i)),this.offset=r,this.color=a.getColor()}},Do=class extends X{constructor(e,t,n){super(e,t,n),this.type=`animate`,this.duration=0,this.initialValue=null,this.initialUnits=``,this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute(`begin`).getMilliseconds(),this.maxDuration=this.begin+this.getAttribute(`dur`).getMilliseconds(),this.from=this.getAttribute(`from`),this.to=this.getAttribute(`to`),this.values=new J(e,`values`,null);var r=this.getAttribute(`values`);r.hasValue()&&this.values.setValue(r.getString().split(`;`))}getProperty(){var e=this.getAttribute(`attributeType`).getString(),t=this.getAttribute(`attributeName`).getString();return e===`CSS`?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:e}=this,{progress:t,from:n,to:r}=this.getProgress(),i=n.getNumber()+(r.getNumber()-n.getNumber())*t;return e===`%`&&(i*=100),`${i}${e}`}update(e){var{parent:t}=this,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var r=this.getAttribute(`fill`).getString(`remove`);if(this.getAttribute(`repeatCount`).getString()===`indefinite`||this.getAttribute(`repeatDur`).getString()===`indefinite`)this.duration=0;else if(r===`freeze`&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=n.getString();else if(r===`remove`&&!this.removed)return this.removed=!0,n.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var i=!1;if(this.begint+(i[n]-t)*e).join(` `)}},Ao=class extends X{constructor(e,t,n){super(e,t,n),this.type=`font`,this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute(`horiz-adv-x`).getNumber();var{definitions:r}=e,{children:i}=this;for(var a of i)switch(a.type){case`font-face`:this.fontFace=a;var o=a.getStyle(`font-family`);o.hasValue()&&(r[o.getString()]=this);break;case`missing-glyph`:this.missingGlyph=a;break;case`glyph`:var s=a;s.arabicForm?(this.isRTL=!0,this.isArabic=!0,this.glyphs[s.unicode]===void 0&&(this.glyphs[s.unicode]=Object.create(null)),this.glyphs[s.unicode][s.arabicForm]=s):this.glyphs[s.unicode]=s;break}}render(){}},jo=class extends X{constructor(e,t,n){super(e,t,n),this.type=`font-face`,this.ascent=this.getAttribute(`ascent`).getNumber(),this.descent=this.getAttribute(`descent`).getNumber(),this.unitsPerEm=this.getAttribute(`units-per-em`).getNumber()}},Mo=class extends Q{constructor(){super(...arguments),this.type=`missing-glyph`,this.horizAdvX=0}},No=class extends co{constructor(){super(...arguments),this.type=`tref`}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var t=e.children[0];if(t)return t.getText()}return``}},Po=class extends co{constructor(e,t,n){super(e,t,n),this.type=`a`;var{childNodes:r}=t,i=r[0],a=r.length>0&&Array.from(r).every(e=>e.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):``}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:t,x:n,y:r}=this,{mouse:i}=t.screen,a=new J(t,`fontSize`,io.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new ao(n,r-a.getPixels(`y`),n+this.measureText(e),r))}else if(this.children.length>0){var o=new So(this.document,null);o.children=this.children,o.parent=this,o.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor=`pointer`}};function Fo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t{var{type:n,points:r}=t;switch(n){case Z.LINE_TO:e&&e.lineTo(r[0],r[1]);break;case Z.MOVE_TO:e&&e.moveTo(r[0],r[1]);break;case Z.CURVE_TO:e&&e.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);break;case Z.QUAD_TO:e&&e.quadraticCurveTo(r[0],r[1],r[2],r[3]);break;case Z.ARC:var[i,a,o,s,c,l,u,d]=r,f=o>s?o:s,p=o>s?1:o/s,m=o>s?s/o:1;e&&(e.translate(i,a),e.rotate(u),e.scale(p,m),e.arc(0,0,f,c,c+l,!!(1-d)),e.scale(1/p,1/m),e.rotate(-u),e.translate(-i,-a));break;case Z.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var t=this.parent.getStyle(`text-decoration`).getString(),n=this.getFontSize(),{glyphInfo:r}=this,i=e.fillStyle;t===`underline`&&e.beginPath(),r.forEach((r,i)=>{var{p0:a,p1:o,rotation:s,text:c}=r;e.save(),e.translate(a.x,a.y),e.rotate(s),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),t===`underline`&&(i===0&&e.moveTo(a.x,a.y+n/8),e.lineTo(o.x,o.y+n/5))}),t===`underline`&&(e.lineWidth=n/20,e.strokeStyle=i,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,t,n,r,i,a,o,s,c){var l=a,u=this.measureText(e,s);s===` `&&t===`justify`&&n-1&&(l+=this.getLetterSpacingAt(c));var d=this.textHeight/20,f=this.getEquidistantPointOnPath(l,d,0),p=this.getEquidistantPointOnPath(l+u,d,0),m={p0:f,p1:p},h=f&&p?Math.atan2(p.y-f.y,p.x-f.x):0;if(o){var g=Math.cos(Math.PI/2+h)*o,_=Math.cos(-h)*o;m.p0=Io(Io({},f),{},{x:f.x+g,y:f.y+_}),m.p1=Io(Io({},p),{},{x:p.x+g,y:p.y+_})}return l+=u,{offset:l,segment:m,rotation:h}}measureText(e,t){var{measuresCache:n}=this,r=t||this.getText();if(n.has(r))return n.get(r);var i=this.measureTargetText(e,r);return n.set(r,i),i}setTextData(e){if(!this.glyphInfo){var t=this.getText(),n=t.split(``),r=t.split(` `).length-1,i=this.parent.getAttribute(`dx`).split().map(e=>e.getPixels(`x`)),a=this.parent.getAttribute(`dy`).getPixels(`y`),o=this.parent.getStyle(`text-anchor`).getString(`start`),s=this.getStyle(`letter-spacing`),c=this.parent.getStyle(`letter-spacing`),l=0;!s.hasValue()||s.getValue()===`inherit`?l=c.getPixels():s.hasValue()&&s.getValue()!==`initial`&&s.getValue()!==`unset`&&(l=s.getPixels());var u=[],d=t.length;this.letterSpacingCache=u;for(var f=0;fn===0?0:e+t||0,0),m=this.measureText(e),h=Math.max(m+p,0);this.textWidth=m,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),_=this.getStyle(`startOffset`).getNumber(0)*g,v=0;(o===`middle`||o===`center`)&&(v=-h/2),(o===`end`||o===`right`)&&(v=-h),v+=_,n.forEach((t,i)=>{var{offset:s,segment:c,rotation:l}=this.findSegmentToFitChar(e,o,h,g,r,v,a,t,i);v=s,!(!c.p0||!c.p1)&&this.glyphInfo.push({text:n[i],p0:c.p0,p1:c.p1,rotation:l})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var t=[],{pathParser:n}=e;for(n.reset();!n.isEnd();){var{current:r}=n,i=r?r.x:0,a=r?r.y:0,o=n.next(),s=o.type,c=[];switch(o.type){case Z.MOVE_TO:this.pathM(n,c);break;case Z.LINE_TO:s=this.pathL(n,c);break;case Z.HORIZ_LINE_TO:s=this.pathH(n,c);break;case Z.VERT_LINE_TO:s=this.pathV(n,c);break;case Z.CURVE_TO:this.pathC(n,c);break;case Z.SMOOTH_CURVE_TO:s=this.pathS(n,c);break;case Z.QUAD_TO:this.pathQ(n,c);break;case Z.SMOOTH_QUAD_TO:s=this.pathT(n,c);break;case Z.ARC:c=this.pathA(n);break;case Z.CLOSE_PATH:Q.pathZ(n);break}o.type===Z.CLOSE_PATH?t.push({type:Z.CLOSE_PATH,points:[],pathLength:0}):t.push({type:s,points:c,start:{x:i,y:a},pathLength:this.calcLength(i,a,s,c)})}return t}pathM(e,t){var{x:n,y:r}=Q.pathM(e).point;t.push(n,r)}pathL(e,t){var{x:n,y:r}=Q.pathL(e).point;return t.push(n,r),Z.LINE_TO}pathH(e,t){var{x:n,y:r}=Q.pathH(e).point;return t.push(n,r),Z.LINE_TO}pathV(e,t){var{x:n,y:r}=Q.pathV(e).point;return t.push(n,r),Z.LINE_TO}pathC(e,t){var{point:n,controlPoint:r,currentPoint:i}=Q.pathC(e);t.push(n.x,n.y,r.x,r.y,i.x,i.y)}pathS(e,t){var{point:n,controlPoint:r,currentPoint:i}=Q.pathS(e);return t.push(n.x,n.y,r.x,r.y,i.x,i.y),Z.CURVE_TO}pathQ(e,t){var{controlPoint:n,currentPoint:r}=Q.pathQ(e);t.push(n.x,n.y,r.x,r.y)}pathT(e,t){var{controlPoint:n,currentPoint:r}=Q.pathT(e);return t.push(n.x,n.y,r.x,r.y),Z.QUAD_TO}pathA(e){var{rX:t,rY:n,sweepFlag:r,xAxisRotation:i,centp:a,a1:o,ad:s}=Q.pathA(e);return r===0&&s>0&&(s-=2*Math.PI),r===1&&s<0&&(s+=2*Math.PI),[a.x,a.y,t,n,o,s,i,r]}calcLength(e,t,n,r){var i=0,a=null,o=null,s=0;switch(n){case Z.LINE_TO:return this.getLineLength(e,t,r[0],r[1]);case Z.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)o=this.getPointOnCubicBezier(s,e,t,r[0],r[1],r[2],r[3],r[4],r[5]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Z.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,e,t,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)o=this.getPointOnQuadraticBezier(s,e,t,r[0],r[1],r[2],r[3]),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case Z.ARC:i=0;var c=r[4],l=r[5],u=r[4]+l,d=Math.PI/180;if(Math.abs(c-u)u;s-=d)o=this.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=this.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=c+d;s5&&arguments[5]!==void 0?arguments[5]:t,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,s=(i-n)/(r-t+wa),c=Math.sqrt(e*e/(1+s*s));rt)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||n+a.pathLength+5e-5=0&&s>u)break;r=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],s,a.points[6]);break;case Z.CURVE_TO:s=o/a.pathLength,s>1&&(s=1),r=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 Z.QUAD_TO:s=o/a.pathLength,s>1&&(s=1),r=this.getPointOnQuadraticBezier(s,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(r)return r;break}return null}getLineLength(e,t,n,r){return Math.sqrt((n-e)*(n-e)+(r-t)*(r-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,t)=>t.pathLength>0?e+t.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,t,n,r,i,a,o,s,c){return{x:s*Oa(e)+a*ka(e)+r*Aa(e)+t*ja(e),y:c*Oa(e)+o*ka(e)+i*Aa(e)+n*ja(e)}}getPointOnQuadraticBezier(e,t,n,r,i,a,o){return{x:a*Ma(e)+r*Na(e)+t*Pa(e),y:o*Ma(e)+i*Na(e)+n*Pa(e)}}getPointOnEllipticalArc(e,t,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),c={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:e+(c.x*o-c.y*s),y:t+(c.x*s+c.y*o)}}buildEquidistantCache(e,t){var n=this.getPathLength(),r=t||.25,i=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==r){this.equidistantCache={step:i,precision:r,points:[]};for(var a=0,o=0;o<=n;o+=r){var s=this.getPointOnPath(o),c=this.getPointOnPath(o+r);!s||!c||(a+=this.getLineLength(s.x,s.y,c.x,c.y),a>=i&&(this.equidistantCache.points.push({x:s.x,y:s.y,distance:o}),a-=i))}}}getEquidistantPointOnPath(e,t,n){if(this.buildEquidistantCache(t,n),e<0||e-this.getPathLength()>5e-5)return null;var r=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[r]||null}},Ro=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,zo=class extends oo{constructor(e,t,n){super(e,t,n),this.type=`image`,this.loaded=!1;var r=this.getHrefAttribute().getString();if(r){var i=r.endsWith(`.svg`)||/^\s*data:image\/svg\+xml/i.test(r);e.images.push(this),i?this.loadSvg(r):this.loadImage(r),this.isSvg=i}}loadImage(e){var t=this;return a(function*(){try{t.image=yield t.document.createImage(e)}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}loadSvg(e){var t=this;return a(function*(){var n=Ro.exec(e);if(n){var r=n[5];n[4]===`base64`?t.image=atob(r):t.image=decodeURIComponent(r)}else try{t.image=yield(yield t.document.fetch(e)).text()}catch(t){console.error(`Error while loading image "${e}":`,t)}t.loaded=!0})()}renderChildren(e){var{document:t,image:n,loaded:r}=this,i=this.getAttribute(`x`).getPixels(`x`),a=this.getAttribute(`y`).getPixels(`y`),o=this.getStyle(`width`).getPixels(`x`),s=this.getStyle(`height`).getPixels(`y`);if(!(!r||!n||!o||!s)){if(e.save(),e.translate(i,a),this.isSvg){var c=t.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:o,scaleHeight:s});c.document.documentElement.parent=this,c.render()}else{var l=this.image;t.setViewBox({ctx:e,aspectRatio:this.getAttribute(`preserveAspectRatio`).getString(),width:o,desiredWidth:l.width,height:s,desiredHeight:l.height}),this.loaded&&(l.complete===void 0||l.complete)&&e.drawImage(l,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute(`x`).getPixels(`x`),t=this.getAttribute(`y`).getPixels(`y`),n=this.getStyle(`width`).getPixels(`x`),r=this.getStyle(`height`).getPixels(`y`);return new ao(e,t,e+n,t+r)}},Bo=class extends oo{constructor(){super(...arguments),this.type=`symbol`}render(e){}},Vo=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,t){var n=this;return a(function*(){try{var{document:r}=n,i=(yield r.canvg.parser.load(t)).getElementsByTagName(`font`);Array.from(i).forEach(t=>{var n=r.createElement(t);r.definitions[e]=n})}catch(e){console.error(`Error while loading font "${t}":`,e)}n.loaded=!0})()}},Ho=class extends X{constructor(e,t,n){super(e,t,n),this.type=`style`,ca(Array.from(t.childNodes).map(e=>e.textContent).join(``).replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,``).replace(/@import.*;/g,``)).split(`}`).forEach(t=>{var n=t.trim();if(n){var r=n.split(`{`),i=r[0].split(`,`),a=r[1].split(`;`);i.forEach(t=>{var n=t.trim();if(n){var r=e.styles[n]||{};if(a.forEach(t=>{var n=t.indexOf(`:`),i=t.substr(0,n).trim(),a=t.substr(n+1,t.length-n).trim();i&&a&&(r[i]=new J(e,i,a))}),e.styles[n]=r,e.stylesSpecificity[n]=Ca(n),n===`@font-face`){var i=r[`font-family`].getString().replace(/"|'/g,``);r.src.getString().split(`,`).forEach(t=>{if(t.indexOf(`format("svg")`)>0){var n=pa(t);n&&new Vo(e).load(i,n)}})}}})}})}};Ho.parseExternalUrl=pa;var Uo=class extends oo{constructor(){super(...arguments),this.type=`use`}setContext(e){super.setContext(e);var t=this.getAttribute(`x`),n=this.getAttribute(`y`);t.hasValue()&&e.translate(t.getPixels(`x`),0),n.hasValue()&&e.translate(0,n.getPixels(`y`))}path(e){var{element:t}=this;t&&t.path(e)}renderChildren(e){var{document:t,element:n}=this;if(n){var r=n;if(n.type===`symbol`&&(r=new fo(t,null),r.attributes.viewBox=new J(t,`viewBox`,n.getAttribute(`viewBox`).getString()),r.attributes.preserveAspectRatio=new J(t,`preserveAspectRatio`,n.getAttribute(`preserveAspectRatio`).getString()),r.attributes.overflow=new J(t,`overflow`,n.getAttribute(`overflow`).getString()),r.children=n.children,n.styles.opacity=new J(t,`opacity`,this.calculateOpacity())),r.type===`svg`){var i=this.getStyle(`width`,!1,!0),a=this.getStyle(`height`,!1,!0);i.hasValue()&&(r.attributes.width=new J(t,`width`,i.getString())),a.hasValue()&&(r.attributes.height=new J(t,`height`,a.getString()))}var o=r.parent;r.parent=this,r.render(e),r.parent=o}}getBoundingBox(e){var{element:t}=this;return t?t.getBoundingBox(e):null}elementTransform(){var{document:e,element:t}=this;return Qa.fromElement(e,t)}get element(){return this.cachedElement||=this.getHrefAttribute().getDefinition(),this.cachedElement}};function Wo(e,t,n,r,i,a){return e[n*r*4+t*4+a]}function Go(e,t,n,r,i,a,o){e[n*r*4+t*4+a]=o}function $(e,t,n){return e[t]*n}function Ko(e,t,n,r){return t+Math.cos(e)*n+Math.sin(e)*r}var qo=class extends X{constructor(e,t,n){super(e,t,n),this.type=`feColorMatrix`;var r=q(this.getAttribute(`values`).getString());switch(this.getAttribute(`type`).getString(`matrix`)){case`saturate`:var i=r[0];r=[.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`:var a=r[0]*Math.PI/180;r=[Ko(a,.213,.787,-.213),Ko(a,.715,-.715,-.715),Ko(a,.072,-.072,.928),0,0,Ko(a,.213,-.213,.143),Ko(a,.715,.285,.14),Ko(a,.072,-.072,-.283),0,0,Ko(a,.213,-.213,-.787),Ko(a,.715,-.715,.715),Ko(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case`luminanceToAlpha`:r=[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];break}this.matrix=r,this.includeOpacity=this.getAttribute(`includeOpacity`).hasValue()}apply(e,t,n,r,i){for(var{includeOpacity:a,matrix:o}=this,s=e.getImageData(0,0,r,i),c=0;c{c.addBoundingBox(e.getBoundingBox(t))}),i=Math.floor(c.x1),a=Math.floor(c.y1),o=Math.floor(c.width),s=Math.floor(c.height)}var l=this.removeStyles(n,e.ignoreStyles),u=r.createCanvas(i+o,a+s),d=u.getContext(`2d`);r.screen.setDefaults(d),this.renderChildren(d),new qo(r,{nodeType:1,childNodes:[],attributes:[{nodeName:`type`,value:`luminanceToAlpha`},{nodeName:`includeOpacity`,value:`true`}]}).apply(d,0,0,i+o,a+s);var f=r.createCanvas(i+o,a+s),p=f.getContext(`2d`);r.screen.setDefaults(p),n.render(p),p.globalCompositeOperation=`destination-in`,p.fillStyle=d.createPattern(u,`no-repeat`),p.fillRect(0,0,i+o,a+s),t.fillStyle=p.createPattern(f,`no-repeat`),t.fillRect(0,0,i+o,a+s),this.restoreStyles(n,l)}render(e){}};Jo.ignoreStyles=[`mask`,`transform`,`clip-path`];var Yo=()=>{},Xo=class extends X{constructor(){super(...arguments),this.type=`clipPath`}apply(e){var{document:t}=this,n=Reflect.getPrototypeOf(e),{beginPath:r,closePath:i}=e;n&&(n.beginPath=Yo,n.closePath=Yo),Reflect.apply(r,e,[]),this.children.forEach(r=>{if(r.path!==void 0){var a=r.elementTransform===void 0?null:r.elementTransform();a||=Qa.fromElement(t,r),a&&a.apply(e),r.path(e),n&&(n.closePath=i),a&&a.unapply(e)}}),Reflect.apply(i,e,[]),e.clip(),n&&(n.beginPath=r,n.closePath=i)}render(e){}},Zo=class e extends X{constructor(){super(...arguments),this.type=`filter`}apply(t,n){var{document:r,children:i}=this,a=n.getBoundingBox(t);if(a){var o=0,s=0;i.forEach(e=>{var t=e.extraFilterDistance||0;o=Math.max(o,t),s=Math.max(s,t)});var c=Math.floor(a.width),l=Math.floor(a.height),u=c+2*o,d=l+2*s;if(!(u<1||d<1)){var f=Math.floor(a.x),p=Math.floor(a.y),m=this.removeStyles(n,e.ignoreStyles),h=r.createCanvas(u,d),g=h.getContext(`2d`);r.screen.setDefaults(g),g.translate(-f+o,-p+s),n.render(g),i.forEach(e=>{typeof e.apply==`function`&&e.apply(g,0,0,u,d)}),t.drawImage(h,0,0,u,d,f-o,p-s,u,d),this.restoreStyles(n,m)}}}render(e){}};Zo.ignoreStyles=[`filter`,`transform`,`clip-path`];var Qo=class extends X{constructor(e,t,n){super(e,t,n),this.type=`feDropShadow`,this.addStylesFromStyleDefinition()}apply(e,t,n,r,i){}},$o=class extends X{constructor(){super(...arguments),this.type=`feMorphology`}apply(e,t,n,r,i){}},es=class extends X{constructor(){super(...arguments),this.type=`feComposite`}apply(e,t,n,r,i){}},ts=class extends X{constructor(e,t,n){super(e,t,n),this.type=`feGaussianBlur`,this.blurRadius=Math.floor(this.getAttribute(`stdDeviation`).getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,t,n,r,i){var{document:a,blurRadius:o}=this,s=a.window?a.window.document.body:null,c=e.canvas;c.id=a.getUniqueId(),s&&(c.style.display=`none`,s.appendChild(c)),na(c,t,n,r,i,o),s&&s.removeChild(c)}},ns=class extends X{constructor(){super(...arguments),this.type=`title`}},rs=class extends X{constructor(){super(...arguments),this.type=`desc`}},is={svg:fo,rect:po,circle:mo,ellipse:ho,line:go,polyline:_o,polygon:vo,path:Q,pattern:yo,marker:bo,defs:xo,linearGradient:wo,radialGradient:To,stop:Eo,animate:Do,animateColor:Oo,animateTransform:ko,font:Ao,"font-face":jo,"missing-glyph":Mo,glyph:so,text:co,tspan:lo,tref:No,a:Po,textPath:Lo,image:zo,g:So,symbol:Bo,style:Ho,use:Uo,mask:Jo,clipPath:Xo,filter:Zo,feDropShadow:Qo,feMorphology:$o,feComposite:es,feColorMatrix:qo,feGaussianBlur:ts,title:ns,desc:rs};function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function os(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:!1,n=document.createElement(`img`);return t&&(n.crossOrigin=`Anonymous`),new Promise((t,r)=>{n.onload=()=>{t(n)},n.onerror=(e,t,n,i,a)=>{r(a)},n.src=e})}),ls.apply(this,arguments)}var us=class e{constructor(t){var{rootEmSize:n=12,emSize:r=12,createCanvas:i=e.createCanvas,createImage:a=e.createImage,anonymousCrossOrigin:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=t,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=n,this.emSize=r,this.createCanvas=i,this.createImage=this.bindCreateImage(a,o),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(e,t){return typeof t==`boolean`?(n,r)=>e(n,typeof r==`boolean`?r:t):e}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:e}=this;return e[e.length-1]}set emSize(e){var{emSizeStack:t}=this;t.push(e)}popEmSize(){var{emSizeStack:e}=this;e.pop()}getUniqueId(){return`canvg${++this.uniqueId}`}isImagesLoaded(){return this.images.every(e=>e.loaded)}isFontsLoaded(){return this.fonts.every(e=>e.loaded)}createDocumentElement(e){var t=this.createElement(e.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(t){var n=t.nodeName.replace(/^[^:]+:/,``),r=e.elementTypes[n];return r===void 0?new $a(this,t):new r(this,t)}createTextNode(e){return new uo(this,e)}setViewBox(e){this.screen.setViewBox(os({document:this},e))}};us.createCanvas=ss,us.createImage=cs,us.elementTypes=is;function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fs(e){for(var t=1;t2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Ha(n),this.screen=new za(e,n),this.options=n;var r=new us(this,n),i=r.createDocumentElement(t);this.document=r,this.documentElement=i}static from(t,n){var r=arguments;return a(function*(){var i=r.length>2&&r[2]!==void 0?r[2]:{};return new e(t,yield new Ha(i).parse(n),i)})()}static fromString(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new e(t,new Ha(r).parseFromString(n),r)}fork(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.from(t,n,fs(fs({},this.options),r))}forkString(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.fromString(t,n,fs(fs({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,t=this;return a(function*(){var n=e.length>0&&e[0]!==void 0?e[0]:{};t.start(fs({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},n)),yield t.ready(),t.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:n,options:r}=this;n.start(t,fs(fs({enableRedraw:!0},r),e))}stop(){this.screen.stop()}resize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,t,n)}};export{Po as AElement,Oo as AnimateColorElement,Do as AnimateElement,ko as AnimateTransformElement,ao as BoundingBox,Oa as CB1,ka as CB2,Aa as CB3,ja as CB4,ps as Canvg,ps as default,mo as CircleElement,Xo as ClipPathElement,xo as DefsElement,rs as DescElement,us as Document,X as Element,ho as EllipseElement,qo as FeColorMatrixElement,es as FeCompositeElement,Qo as FeDropShadowElement,ts as FeGaussianBlurElement,$o as FeMorphologyElement,Zo as FilterElement,io as Font,Ao as FontElement,jo as FontFaceElement,So as GElement,so as GlyphElement,Co as GradientElement,zo as ImageElement,go as LineElement,wo as LinearGradientElement,bo as MarkerElement,Jo as MaskElement,Ka as Matrix,Mo as MissingGlyphElement,Ia as Mouse,wa as PSEUDO_ZERO,Ha as Parser,Q as PathElement,Z as PathParser,yo as PatternElement,Y as Point,vo as PolygonElement,_o as PolylineElement,J as Property,Ma as QB1,Na as QB2,Pa as QB3,To as RadialGradientElement,po as RectElement,oo as RenderedElement,Wa as Rotate,fo as SVGElement,Vo as SVGFontLoader,Ga as Scale,za as Screen,qa as Skew,Ja as SkewX,Ya as SkewY,Eo as StopElement,Ho as StyleElement,Bo as SymbolElement,No as TRefElement,lo as TSpanElement,co as TextElement,Lo as TextPathElement,ns as TitleElement,Qa as Transform,Ua as Translate,$a as UnknownElement,Uo as UseElement,Fa as ViewPort,ca as compressSpaces,Ca as getSelectorSpecificity,fa as normalizeAttributeName,ma as normalizeColor,pa as parseExternalUrl,sa as presets,q as toNumbers,la as trimLeft,ua as trimRight,Ta as vectorMagnitude,Da as vectorsAngle,Ea as vectorsRatio};