UNPKG

weapp-vite

Version:

weapp-vite 一个现代化的小程序打包工具

8 lines 548 kB
import{i as e,n as t,r as n,t as r}from"./rolldown-runtime.js";function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);a(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a,o=t((()=>{a=function(e,t){return a=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])},a(e,t)}}));function s(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-d)/f}return t}function c(e){for(var t in h)e[t]&&(h[t]=e[t])}var l,u,d,f,p,m,h,g=t((()=>{l=`sans-serif`,u=`12px `+l,d=20,f=100,p=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`,m=s(p),h={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=h.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=m[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}}})),_=n({EPSILON:()=>Be,HashMap:()=>Re,RADIAN_TO_DEGREE:()=>ze,assert:()=>fe,bind:()=>W,clone:()=>b,concatArray:()=>_e,createCanvas:()=>Pe,createHashMap:()=>U,createObject:()=>ve,curry:()=>P,defaults:()=>w,disableUserSelect:()=>ye,each:()=>k,eqNaN:()=>se,extend:()=>C,filter:()=>M,find:()=>ee,guid:()=>v,hasOwn:()=>be,indexOf:()=>T,inherits:()=>E,isArray:()=>F,isArrayLike:()=>O,isBuiltInObject:()=>re,isDom:()=>ae,isFunction:()=>I,isGradientObject:()=>B,isImagePatternObject:()=>V,isNumber:()=>R,isObject:()=>z,isPrimitive:()=>he,isRegExp:()=>oe,isString:()=>L,isStringSafe:()=>ne,isTypedArray:()=>ie,keys:()=>N,logError:()=>y,map:()=>A,merge:()=>x,mergeAll:()=>S,mixin:()=>D,noop:()=>xe,normalizeCssArray:()=>de,reduce:()=>j,retrieve:()=>ce,retrieve2:()=>H,retrieve3:()=>le,setAsPrimitive:()=>me,slice:()=>ue,trim:()=>pe},1);function v(){return Ne++}function y(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function b(e){if(typeof e!=`object`||!e)return e;var t=e,n=we.call(e);if(n===`[object Array]`){if(!he(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=b(e[r])}}else if(Ce[n]){if(!he(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!Se[n]&&!he(e)&&!ae(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Me&&(t[o]=b(e[o]));return t}function x(e,t,n){if(!z(t)||!z(e))return n?b(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Me){var i=e[r],a=t[r];z(a)&&z(i)&&!F(a)&&!F(i)&&!ae(a)&&!ae(i)&&!re(a)&&!re(i)&&!he(a)&&!he(i)?x(i,a,n):(n||!(r in e))&&(e[r]=b(t[r]))}return e}function S(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=x(n,e[r],t);return n}function C(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Me&&(e[n]=t[n]);return e}function w(e,t,n){for(var r=N(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function T(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function E(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function D(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else w(e,t,n)}function O(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function k(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Ee)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}function A(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.map&&e.map===ke)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function j(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function M(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.filter&&e.filter===De)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ee(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function N(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function te(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Oe.call(arguments)))}}function P(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Oe.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):we.call(e)===`[object Array]`}function I(e){return typeof e==`function`}function L(e){return typeof e==`string`}function ne(e){return we.call(e)===`[object String]`}function R(e){return typeof e==`number`}function z(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function re(e){return!!Se[we.call(e)]}function ie(e){return!!Ce[we.call(e)]}function ae(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function B(e){return e.colorStops!=null}function V(e){return e.image!=null}function oe(e){return we.call(e)===`[object RegExp]`}function se(e){return e!==e}function ce(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function H(e,t){return e??t}function le(e,t,n){return e??t??n}function ue(e){var t=[...arguments].slice(1);return Oe.apply(e,t)}function de(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function fe(e,t){if(!e)throw Error(t)}function pe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}function me(e){e[Fe]=!0}function he(e){return e[Fe]}function ge(){return Le?new Map:new Ie}function U(e){return new Re(e)}function _e(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function ve(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&C(n,t),n}function ye(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function be(e,t){return e.hasOwnProperty(t)}function xe(){}var Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,W,Fe,Ie,Le,Re,ze,Be,G=t((()=>{g(),Se=j([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Ce=j([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),we=Object.prototype.toString,Te=Array.prototype,Ee=Te.forEach,De=Te.filter,Oe=Te.slice,ke=Te.map,Ae=function(){}.constructor,je=Ae?Ae.prototype:null,Me=`__proto__`,Ne=2311,Pe=h.createCanvas,W=je&&I(je.bind)?je.call.bind(je.bind):te,Fe=`__ec_primitive__`,Ie=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return N(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Le=typeof Map==`function`,Re=function(){function e(t){var n=F(t);this.data=ge();var r=this;t instanceof e?t.each(i):t&&k(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Le?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}(),ze=180/Math.PI,Be=2**-52||2**-52}));function Ve(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var He,Ue,K,We=t((()=>{He=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ue=new(function(){function e(){this.browser=new He,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}()),typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Ue.wxa=!0,Ue.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Ue.worker=!0:!Ue.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Ue.node=!0,Ue.svgSupported=!0):Ve(navigator.userAgent,Ue),K=Ue}));function Ge(e){var t={main:``,sub:``};if(e){var n=e.split(tt);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ke(e){fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function qe(e){return!!(e&&e[rt])}function Je(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Ye(t)?n=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},E(n,this)),C(n.prototype,e),n[rt]=!0,n.extend=this.extend,n.superCall=Qe,n.superApply=$e,n.superClass=t,n}}function Ye(e){return I(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Xe(e,t){e.extend=t.extend}function Ze(e){var t=[`__\0is_clz`,it++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Qe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function $e(e,t,n){return this.superClass.prototype[t].apply(e,n)}function et(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ke(r),e.prototype.type=r;var i=Ge(r);if(!i.sub)t[i.main]=e;else if(i.sub!==nt){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[nt]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ge(e),r=[],i=t[n.main];return i&&i[nt]?k(i,function(e,t){t!==nt&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ge(e).main]},e.getAllClassMainTypes=function(){var e=[];return k(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ge(e).main];return n&&n[nt]};function n(e){var n=t[e.main];return(!n||!n[nt])&&(n=t[e.main]={},n[nt]=!0),n}}var tt,nt,rt,it,at=t((()=>{o(),G(),tt=`.`,nt=`___EC__COMPONENT__CONTAINER___`,rt=`___EC__EXTENDED_CLASS___`,it=Math.round(Math.random()*10)}));function ot(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&T(r,s)>=0||i&&T(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var st=t((()=>{G()})),ct,lt,ut,dt=t((()=>{st(),ct=[[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]],lt=ot(ct),ut=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return lt(this,e,t)},e}()})),ft,pt,mt,ht,gt=t((()=>{ft=function(){function e(e){this.value=e}return e}(),pt=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ft(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),mt=function(){function e(e){this._list=new pt,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new ft(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),ht=mt}));function _t(e){if(typeof e==`string`){var t=xt.get(e);return t&&t.image}else return e}function vt(e,t,n,r,i){if(e)if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=xt.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!bt(t)&&a.pending.push(o)):(t=h.loadImage(e,yt,yt),t.__zrImageSrc=e,xt.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function yt(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function bt(e){return e&&e.width&&e.height}var xt,St=t((()=>{gt(),g(),xt=new ht(50)})),Ct=n({clone:()=>Mt,copy:()=>Et,create:()=>wt,identity:()=>Tt,invert:()=>jt,mul:()=>Dt,rotate:()=>kt,scale:()=>At,translate:()=>Ot},1);function wt(){return[1,0,0,1,0,0]}function Tt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Et(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Dt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Ot(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function kt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function At(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function jt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}function Mt(e){var t=wt();return Et(t,e),t}var Nt=t((()=>{})),Pt,q,Ft=t((()=>{Pt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),q=Pt}));function It(e,t,n,r,i,a,o,s){var c=Bt(t-n),l=Bt(r-e),u=Rt(c,l),d=Vt[i],f=Vt[1-i],p=Ht[i];t<n||r<e?c<l?(a&&(Yt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Yt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=zt(e,n),o[p]=Rt(t,r)-o[d]),a&&(u<Xt[0]||qt.useDir)&&(Xt[0]=Rt(u,Xt[0]),(c<l||!qt.bidirectional)&&(Jt[d]=c,Jt[f]=0,qt.useDir&&qt.calcDirMTV()),(c>=l||!qt.bidirectional)&&(Jt[d]=-l,Jt[f]=0,qt.useDir&&qt.calcDirMTV())))}function Lt(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=zt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Bt(e)<1e-10}return r}var Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,J,en=t((()=>{Nt(),Ft(),Rt=Math.min,zt=Math.max,Bt=Math.abs,Vt=[`x`,`y`],Ht=[`width`,`height`],Ut=new q,Wt=new q,Gt=new q,Kt=new q,qt=Lt(),Jt=qt.minTv,Yt=qt.maxTv,Xt=[0,0],Zt=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Rt(e.x,this.x),n=Rt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=zt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=zt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=wt();return Ot(i,i,[-t.x,-t.y]),At(i,i,[n,r]),Ot(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=e.set(Qt,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set($t,n.x,n.y,n.width,n.height));var s=!!r;qt.reset(i,s);var c=qt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Xt[0]=1/0,Xt[1]=0,It(l,u,p,m,0,s,a,o),It(d,f,h,g,1,s,a,o),s&&q.copy(r,_?qt.useDir?qt.dirMinTv:Jt:Yt)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ut.x=Gt.x=n.x,Ut.y=Kt.y=n.y,Wt.x=Kt.x=n.x+n.width,Wt.y=Gt.y=n.y+n.height,Ut.transform(r),Kt.transform(r),Wt.transform(r),Gt.transform(r),t.x=Rt(Ut.x,Wt.x,Gt.x,Kt.x),t.y=Rt(Ut.y,Wt.y,Gt.y,Kt.y);var c=zt(Ut.x,Wt.x,Gt.x,Kt.x),l=zt(Ut.y,Wt.y,Gt.y,Kt.y);t.width=c-t.x,t.height=l-t.y},e}(),Qt=new Zt(0,0,0,0),$t=new Zt(0,0,0,0),J=Zt}));function tn(e){pn||=new ht(100),e||=`12px sans-serif`;var t=pn.get(e);return t||(t={font:e,strWidthCache:new ht(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:h.measureText(`国`,e).width,asciiCharWidth:h.measureText(`a`,e).width},pn.put(e,t)),t}function nn(e){if(!(mn>=hn)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=h.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?mn=hn:i>2&&mn++,t}}function rn(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=nn(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function an(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=h.measureText(t,e.font).width,n.put(t,r)),r}function on(e,t,n,r){var i=an(tn(t),e),a=un(t);return new J(cn(0,i,n),ln(0,a,r),i,a)}function sn(e,t,n,r){var i=((e||``)+``).split(` `);if(i.length===1)return on(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=on(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function cn(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ln(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function un(e){return tn(e).stWideCharWidth}function dn(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function fn(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=dn(r[0],n.width),l+=dn(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var pn,mn,hn,gn=t((()=>{en(),gt(),g(),mn=0,hn=5}));function _n(e,t,n,r,i){var a={};return vn(a,e,t,n,r,i),a.text}function vn(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(` `);a=yn(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)bn(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(` `),e.isTruncated=s}function yn(e,t,n,r){r||={};var i=C({},r);n=H(n,`...`),i.maxIterations=H(r.maxIterations,2);var a=i.minChar=H(r.minChar,0),o=i.fontMeasureInfo=tn(t),s=o.asciiCharWidth;i.placeholder=H(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=an(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function bn(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=an(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?xn(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=an(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function xn(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=rn(n,e.charCodeAt(i));return i}function Sn(e,t,n,r){var i=kn(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=un(l),f=H(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?Dn(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(` `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=yn(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)bn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=tn(l),S=0;S<_.length;S++)w=Math.max(an(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}function Cn(e,t,n,r,i){var a=new In,o=kn(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=Nn.lastIndex=0,h;(h=Nn.exec(o))!=null;){var g=h.index;g>m&&wn(a,o.substring(m,g),t,p),wn(a,h[2],t,p,h[1]),m=Nn.lastIndex}m<o.length&&wn(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=un(ee);var N=H(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=le(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var te=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<te;break outer}var P=A.width,F=P==null||P===`auto`;if(typeof P==`string`&&P.charAt(P.length-1)===`%`)k.percentWidth=P,_.push(k),k.contentWidth=an(tn(ee),k.text);else{if(F){var I=A.backgroundColor,L=I&&I.image;L&&(L=_t(L),bt(L)&&(k.width=Math.max(k.width,L.width*N/L.height)))}var ne=b&&u!=null?u-D:null;ne!=null&&ne<k.width?!F||ne<M?(k.text=``,k.width=k.contentWidth=0):(vn(S,k.text,ne-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=an(tn(ee),k.text)):k.contentWidth=an(tn(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=H(u,y),a.outerHeight=a.height=H(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],R=k.percentWidth;k.width=parseInt(R,10)/100*a.width}return a}function wn(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=dn(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(` `),l=!0),r.accumWidth=m}else{var h=Dn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` `);for(var g=tn(c),_=0;_<u.length;_++){var v=u[_],y=new Pn;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:an(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Fn)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Fn([y]))}}function Tn(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function En(e){return Tn(e)?!!Ln[e]:!0}function Dn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=tn(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===` `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=rn(d,p.charCodeAt(0)),h=r?!1:!En(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function On(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;J.set(Rn,cn(n,o,i),ln(r,s,a),o,s),J.intersect(t,Rn,null,zn);var c=zn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=cn(c.x,c.width,i,!0),e.baseY=ln(c.y,c.height,a,!0)}}function kn(e){return e==null?e=``:e+=``}function An(e){var t=kn(e.text),n=e.font;return jn(e,an(tn(n),t),un(n),null)}function jn(e,t,n,r){var i=new J(cn(e.x||0,t,e.textAlign),ln(e.y||0,n,e.textBaseline),t,n),a=r??(Mn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Mn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Nn,Pn,Fn,In,Ln,Rn,zn,Bn=t((()=>{St(),G(),gn(),en(),Nn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Pn=function(){function e(){}return e}(),Fn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),In=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}(),Ln=j(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),Rn=new J(0,0,0,0),zn={outIntersectRect:{},clamp:!0}})),Vn=n({add:()=>Kn,applyTransform:()=>or,clone:()=>Wn,copy:()=>Un,create:()=>Hn,dist:()=>dr,distSquare:()=>fr,distance:()=>nr,distanceSquare:()=>rr,div:()=>Qn,dot:()=>$n,len:()=>Yn,lenSquare:()=>Xn,length:()=>lr,lengthSquare:()=>ur,lerp:()=>ar,max:()=>cr,min:()=>sr,mul:()=>Zn,negate:()=>ir,normalize:()=>tr,scale:()=>er,scaleAndAdd:()=>qn,set:()=>Gn,sub:()=>Jn},1);function Hn(e,t){return e??=0,t??=0,[e,t]}function Un(e,t){return e[0]=t[0],e[1]=t[1],e}function Wn(e){return[e[0],e[1]]}function Gn(e,t,n){return e[0]=t,e[1]=n,e}function Kn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function qn(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Jn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Yn(e){return Math.sqrt(Xn(e))}function Xn(e){return e[0]*e[0]+e[1]*e[1]}function Zn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Qn(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function $n(e,t){return e[0]*t[0]+e[1]*t[1]}function er(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function tr(e,t){var n=Yn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function nr(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function rr(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function ir(e,t){return e[0]=-t[0],e[1]=-t[1],e}function ar(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function or(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function sr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function cr(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var lr,ur,dr,fr,pr=t((()=>{lr=Yn,ur=Xn,dr=nr,fr=rr}));function mr(e){return e>_r||e<-_r}function hr(e,t){for(var n=0;n<Cr.length;n++){var r=Cr[n];e[r]=t[r]}}var gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr=t((()=>{Nt(),pr(),gr=Tt,_r=5e-5,vr=[],yr=[],br=wt(),xr=Math.abs,Sr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return mr(this.rotation)||mr(this.x)||mr(this.y)||mr(this.scaleX-1)||mr(this.scaleY-1)||mr(this.skewX)||mr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(gr(n),this.invTransform=null);return}n||=wt(),t?this.getLocalTransform(n):gr(n),e&&(t?Dt(n,e,n):Et(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(vr);var n=vr[0]<0?-1:1,r=vr[1]<0?-1:1,i=((vr[0]-n)*t+n)/vr[0]||0,a=((vr[1]-r)*t+r)/vr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||wt(),jt(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||wt(),Dt(yr,e.invTransform,t),t=yr);var n=this.originX,r=this.originY;(n||r)&&(br[4]=n,br[5]=r,Dt(yr,t,br),yr[4]-=n,yr[5]-=r,t=yr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&or(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&or(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&xr(e[0]-1)>1e-10&&xr(e[3]-1)>1e-10?Math.sqrt(xr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){hr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&kt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),Cr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`],wr=Sr})),Er,Dr,Or=t((()=>{Er={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=1.70158*1.525;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Er.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Er.bounceIn(e*2)*.5:Er.bounceOut(e*2-1)*.5+.5}},Dr=Er}));function kr(e){return e>-qr&&e<qr}function Ar(e){return e>qr||e<-qr}function jr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Mr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Nr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(kr(u)&&kr(d))if(kr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(kr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Kr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Gr(-y,Xr):Gr(y,Xr),b=b<0?-Gr(-b,Xr):Gr(b,Xr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Kr(u*u*u)),S=Math.acos(x)/3,C=Kr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Yr*Math.sin(S)))/(3*o),T=(-s+C*(w-Yr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Pr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(kr(o)){if(Ar(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(kr(u))i[0]=-a/(2*o);else if(u>0){var d=Kr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Fr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Ir(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Zr[0]=c,Zr[1]=l;for(var v=0;v<1;v+=.05)Qr[0]=jr(e,n,i,o,v),Qr[1]=jr(t,r,a,s,v),g=fr(Zr,Qr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Jr);y++)m=d-f,h=d+f,Qr[0]=jr(e,n,i,o,m),Qr[1]=jr(t,r,a,s,m),g=fr(Qr,Zr),m>=0&&g<p?(d=m,p=g):($r[0]=jr(e,n,i,o,h),$r[1]=jr(t,r,a,s,h),_=fr($r,Zr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=jr(e,n,i,o,d),u[1]=jr(t,r,a,s,d)),Kr(p)}function Lr(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=jr(e,n,i,o,m),g=jr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Rr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function zr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Br(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(kr(a)){if(Ar(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(kr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Kr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Vr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Hr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Ur(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Zr[0]=o,Zr[1]=s;for(var f=0;f<1;f+=.05){Qr[0]=Rr(e,n,i,f),Qr[1]=Rr(t,r,a,f);var p=fr(Zr,Qr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Jr);m++){var h=l-u,g=l+u;Qr[0]=Rr(e,n,i,h),Qr[1]=Rr(t,r,a,h);var p=fr(Qr,Zr);if(h>=0&&p<d)l=h,d=p;else{$r[0]=Rr(e,n,i,g),$r[1]=Rr(t,r,a,g);var _=fr($r,Zr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Rr(e,n,i,l),c[1]=Rr(t,r,a,l)),Kr(d)}function Wr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Rr(e,n,i,f),m=Rr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei=t((()=>{pr(),Gr=Math.pow,Kr=Math.sqrt,qr=1e-8,Jr=1e-4,Yr=Kr(3),Xr=1/3,Zr=Hn(),Qr=Hn(),$r=Hn()}));function ti(e){var t=e&&ni.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Nr(0,r,a,1,e,s)&&jr(0,i,o,1,s[0])}}}var ni,ri=t((()=>{ei(),G(),ni=/cubic-bezier\(([0-9,\.e ]+)\)/})),ii,ai,oi=t((()=>{Or(),G(),ri(),ii=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||xe,this.ondestroy=e.ondestroy||xe,this.onrestart=e.onrestart||xe,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop)this._startTime=e-r%n,this._pausedTime=0,this.onrestart();else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=I(e)?e:Dr[e]||ti(e)},e}(),ai=ii})),si=n({fastLerp:()=>Ci,fastMapToColor:()=>Pi,lerp:()=>wi,lift:()=>xi,liftColor:()=>Ai,lum:()=>Oi,mapToColor:()=>Fi,modifyAlpha:()=>Ei,modifyHSL:()=>Ti,parse:()=>vi,parseCssFloat:()=>fi,parseCssInt:()=>di,random:()=>ki,stringify:()=>Di,toHex:()=>Si},1);function ci(e){return e=Math.round(e),e<0?0:e>255?255:e}function li(e){return e=Math.round(e),e<0?0:e>360?360:e}function ui(e){return e<0?0:e>1?1:e}function di(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ci(parseFloat(t)/100*255):ci(parseInt(t,10))}function fi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ui(parseFloat(t)/100):ui(parseFloat(t))}function pi(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function mi(e,t,n){return e+(t-e)*n}function hi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function gi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function _i(e,t){Ni&&gi(Ni,t),Ni=Mi.put(e,Ni||t.slice())}function vi(e,t){if(e){t||=[];var n=Mi.get(e);if(n)return gi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ji)return gi(t,ji[r]),_i(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){hi(t,0,0,0,1);return}return hi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),_i(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){hi(t,0,0,0,1);return}return hi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),_i(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?hi(t,+l[0],+l[1],+l[2],1):hi(t,0,0,0,1);u=fi(l.pop());case`rgb`:if(l.length>=3)return hi(t,di(l[0]),di(l[1]),di(l[2]),l.length===3?u:fi(l[3])),_i(e,t),t;hi(t,0,0,0,1);return;case`hsla`:if(l.length!==4){hi(t,0,0,0,1);return}return l[3]=fi(l[3]),yi(l,t),_i(e,t),t;case`hsl`:if(l.length!==3){hi(t,0,0,0,1);return}return yi(l,t),_i(e,t),t;default:return}}hi(t,0,0,0,1)}}function yi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=fi(e[1]),i=fi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],hi(t,ci(pi(o,a,n+1/3)*255),ci(pi(o,a,n)*255),ci(pi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function bi(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function xi(e,t){var n=vi(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Di(n,n.length===4?`rgba`:`rgb`)}}function Si(e){var t=vi(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ci(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=ci(mi(o[0],s[0],c)),n[1]=ci(mi(o[1],s[1],c)),n[2]=ci(mi(o[2],s[2],c)),n[3]=ui(mi(o[3],s[3],c)),n}}function wi(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=vi(t[i]),s=vi(t[a]),c=r-i,l=Di([ci(mi(o[0],s[0],c)),ci(mi(o[1],s[1],c)),ci(mi(o[2],s[2],c)),ui(mi(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Ti(e,t,n,r){var i=vi(e);if(e)return i=bi(i),t!=null&&(i[0]=li(I(t)?t(i[0]):t)),n!=null&&(i[1]=fi(I(n)?n(i[1]):n)),r!=null&&(i[2]=fi(I(r)?r(i[2]):r)),Di(yi(i),`rgba`)}function Ei(e,t){var n=vi(e);if(n&&t!=null)return n[3]=ui(t),Di(n,`rgba`)}function Di(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Oi(e,t){var n=vi(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function ki(){return Di([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function Ai(e){if(L(e)){var t=Ii.get(e);return t||(t=xi(e,-.1),Ii.put(e,t)),t}else if(B(e)){var n=C({},e);return n.colorStops=A(e.colorStops,function(e){return{offset:e.offset,color:xi(e.color,-.1)}}),n}return e}var ji,Mi,Ni,Pi,Fi,Ii,Li=t((()=>{gt(),G(),ji={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,