mind-elixir
Version:
Mind elixir is a free open source mind map core.
16 lines (14 loc) • 217 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.painter=e():t.painter=e()}(window,function(){return n=[function(t,e,n){t.exports=n(326)},function(e,t,n){var r=n(171),i=n(344);function o(t){return e.exports=o=r?i:function(t){return t.__proto__||i(t)},e.exports.default=e.exports,e.exports.__esModule=!0,o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var i=n(169);function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),i(t,r.key,r)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(339).default,i=n(42);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(329),i=n(334);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=r(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";function y(r){function t(t,e,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return r.apply(this,arguments)}return t.prototype=r.prototype,t}var v=n(11),g=n(35).f,d=n(131),x=n(10),m=n(49),b=n(27),w=n(23);t.exports=function(t,e){var n,r,i,o,a,u=t.target,s=t.global,c=t.stat,f=t.proto,l=s?v:c?v[u]:(v[u]||{}).prototype,h=s?x:x[u]||b(x,u,{})[u],p=h.prototype;for(n in e)o=!d(s?n:u+(c?".":"#")+n,t.forced)&&l&&w(l,n),r=h[n],o&&(i=t.noTargetGet?(a=g(l,n))&&a.value:l[n]),a=o&&i?i:e[n],o&&typeof r==typeof a||(o=t.bind&&o?m(a,v):t.wrap&&o?y(a):f&&"function"==typeof a?m(Function.call,a):a,(t.sham||a&&a.sham||r&&r.sham)&&b(o,"sham",!0),b(h,n,o),f&&(w(x,o=u+"Prototype")||b(x,o,{}),b(x[o],n,a),t.real&&p&&!p[n]&&b(p,n,a)))}},function(t,e,n){t.exports=n(270)},function(t,e,n){t.exports=n(74)},function(t,e,n){var r=n(211),i=n(215),o=n(148),a=n(260);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports={}},function(n,t,e){!function(t){function e(t){return t&&t.Math==Math&&t}n.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof t&&t)||function(){return this}()||Function("return this")()}.call(this,e(127))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(11),i=n(100),o=n(23),a=n(78),u=n(99),n=n(129),s=i("wks"),c=r.Symbol,f=n?c:c&&c.withoutSetter||a;t.exports=function(t){return o(s,t)&&(u||"string"==typeof s[t])||(u&&o(c,t)?s[t]=c[t]:s[t]=f("Symbol."+t)),s[t]}},function(t,e,n){var r=n(10),i=n(23),o=n(110),a=n(24).f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e,n){t.exports=n(74)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(16);t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,n){var r=n(10);t.exports=function(t){return r[t+"Prototype"]}},function(t,e,n){t.exports=n(321)},function(t,e){function s(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void n(t)}u.done?e(s):Promise.resolve(s).then(r,i)}t.exports=function(u){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=u.apply(t,a);function i(t){s(r,e,n,i,o,"next",t)}function o(t){s(r,e,n,i,o,"throw",t)}i(void 0)})}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n=n(12);t.exports=!n(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,n){function r(t){return"function"==typeof t?t:void 0}var i=n(10),o=n(11);t.exports=function(t,e){return arguments.length<2?r(i[t])||r(o[t]):i[t]&&i[t][e]||o[t]&&o[t][e]}},function(t,e,n){var r=n(25),i={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return i.call(r(t),e)}},function(t,e,n){var r=n(21),i=n(130),o=n(17),a=n(75),u=Object.defineProperty;e.f=r?u:function(t,e,n){if(o(t),e=a(e),o(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(48);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,n){var r=n(21),i=n(24),o=n(47);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){t.exports=n(206)},function(t,e,n){var c=n(286);function s(t,e,n,r,i,o,a){try{var u=t[o](a),s=u.value}catch(t){return void n(t)}u.done?e(s):c.resolve(s).then(r,i)}t.exports=function(u){return function(){var t=this,a=arguments;return new c(function(e,n){var r=u.apply(t,a);function i(t){s(r,e,n,i,o,"next",t)}function o(t){s(r,e,n,i,o,"throw",t)}i(void 0)})}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(98),i=n(48);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(103),i=Math.min;t.exports=function(t){return 0<t?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(76);t.exports=function(t){if(r(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},function(t,e,n){t.exports=n(301)},function(t,e,n){t.exports=n(151)},function(t,e,n){var r=n(21),i=n(128),o=n(47),a=n(30),u=n(75),s=n(23),c=n(130),f=Object.getOwnPropertyDescriptor;e.f=r?f:function(t,e){if(t=a(t),e=u(e),c)try{return f(t,e)}catch(t){}if(s(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,n){n(41);var r,i=n(238),o=n(11),a=n(67),u=n(27),s=n(53),c=n(13)("toStringTag");for(r in i){var f=o[r],f=f&&f.prototype;f&&a(f)!==c&&u(f,c,r),s[r]=s.Array}},function(r,t,e){var i=e(370),o=e(376),a=e(378);function u(t,e,n){return"undefined"!=typeof Reflect&&i?r.exports=u=i:r.exports=u=function(t,e,n){t=a(t,e);if(t){e=o(t,e);return e.get?e.get.call(n):e.value}},r.exports.default=r.exports,r.exports.__esModule=!0,u(t,e,n||t)}r.exports=u,r.exports.default=r.exports,r.exports.__esModule=!0},function(t,e){t.exports=!0},function(t,e,n){var b=n(49),w=n(98),S=n(25),A=n(31),k=n(134),T=[].push,n=function(h){var p=1==h,y=2==h,v=3==h,g=4==h,d=6==h,x=7==h,m=5==h||d;return function(t,e,n,r){for(var i,o,a=S(t),u=w(a),s=b(e,n,3),c=A(u.length),f=0,r=r||k,l=p?r(t,c):y||x?r(t,0):void 0;f<c;f++)if((m||f in u)&&(o=s(i=u[f],f,a),h))if(p)l[f]=o;else if(o)switch(h){case 3:return!0;case 5:return i;case 6:return f;case 2:T.call(l,i)}else switch(h){case 4:return!1;case 7:T.call(l,i)}return d?-1:v||g?g:l}};t.exports={forEach:n(0),map:n(1),filter:n(2),some:n(3),every:n(4),find:n(5),findIndex:n(6),filterReject:n(7)}},function(t,e,n){function r(){}function i(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}var o,a=n(17),u=n(140),s=n(109),c=n(65),f=n(142),l=n(102),n=n(82),h="prototype",p="script",y=n("IE_PROTO"),v=function(t){return"<"+p+">"+t+"</"+p+">"},g=function(){try{o=new ActiveXObject("htmlfile")}catch(t){}var t,e;g="undefined"==typeof document||document.domain&&o?i(o):(t=l("iframe"),e="java"+p+":",t.style.display="none",f.appendChild(t),t.src=String(e),(t=t.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F);for(var n=s.length;n--;)delete g[h][s[n]];return g()};c[y]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(r[h]=a(t),n=new r,r[h]=null,n[y]=t):n=g(),void 0===e?n:u(n,e)}},function(t,e,n){"use strict";var r=n(30),i=n(112),o=n(53),a=n(52),n=n(113),u="Array Iterator",s=a.set,c=a.getterFor(u);t.exports=n(Array,"Array",function(t,e){s(this,{type:u,target:r(t),index:0,kind:e})},function(){var t=c(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){t.exports=n(202)},function(t,e,n){t.exports=n(266)},function(t,e,n){t.exports=n(157)},function(t,e,n){t.exports=n(281)},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var o=n(26);t.exports=function(r,i,t){if(o(r),void 0===i)return r;switch(t){case 0:return function(){return r.call(i)};case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}}},function(t,e,n){var r=n(62);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var i=n(111),o=n(24).f,a=n(27),u=n(23),s=n(218),c=n(13)("toStringTag");t.exports=function(t,e,n,r){t&&(t=n?t:t.prototype,u(t,c)||o(t,c,{configurable:!0,value:e}),r&&!i&&a(t,"toString",s))}},function(t,e,n){var r,i,o,a,u,s,c,f,l=n(219),h=n(11),p=n(16),y=n(27),v=n(23),g=n(101),d=n(82),n=n(65),x="Object already initialized",h=h.WeakMap;c=l||g.state?(r=g.state||(g.state=new h),i=r.get,o=r.has,a=r.set,u=function(t,e){if(o.call(r,t))throw new TypeError(x);return e.facade=t,a.call(r,t,e),e},s=function(t){return i.call(r,t)||{}},function(t){return o.call(r,t)}):(n[f=d("state")]=!0,u=function(t,e){if(v(t,f))throw new TypeError(x);return e.facade=t,y(t,f,e),e},s=function(t){return v(t,f)?t[f]:{}},function(t){return v(t,f)}),t.exports={set:u,get:s,has:c,enforce:function(t){return c(t)?s(t):u(t,{})},getterFor:function(n){return function(t){var e;if(!p(t)||(e=s(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}}},function(t,e){t.exports={}},function(t,e,n){var r=n(23),i=n(25),o=n(82),n=n(114),a=o("IE_PROTO"),u=Object.prototype;t.exports=n?Object.getPrototypeOf:function(t){return t=i(t),r(t,a)?t[a]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){"use strict";var r=n(249).charAt,i=n(32),o=n(52),n=n(113),a="String Iterator",u=o.set,s=o.getterFor(a);n(String,"String",function(t){u(this,{type:a,string:i(t),index:0})},function(){var t=s(this),e=t.string,n=t.index;return n>=e.length?{value:void 0,done:!0}:(n=r(e,n),t.index+=n.length,{value:n,done:!1})})},function(t,e,n){function g(t,e){this.stopped=t,this.result=e}var d=n(17),x=n(153),m=n(31),b=n(49),w=n(115),S=n(85),A=n(152);t.exports=function(t,e,n){function r(t){return o&&A(o,"normal",t),new g(!0,t)}function i(t){return h?(d(t),y?v(t[0],t[1],r):v(t[0],t[1])):y?v(t,r):v(t)}var o,a,u,s,c,f,l=n&&n.that,h=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),y=!(!n||!n.INTERRUPTED),v=b(e,l,1+h+y);if(p)o=t;else{if("function"!=typeof(p=S(t)))throw TypeError("Target is not iterable");if(x(p)){for(a=0,u=m(t.length);a<u;a++)if((s=i(t[a]))&&s instanceof g)return s;return new g(!1)}o=w(t,p)}for(c=o.next;!(f=c.call(o)).done;){try{s=i(f.value)}catch(t){A(o,"throw",t)}if("object"==typeof s&&s&&s instanceof g)return s}return new g(!1)}},function(t,e,n){t.exports=n(304)},function(t,e,n){t.exports=n(316)},function(t,e,n){"use strict";n.d(e,"a",function(){return _});
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function g(t,e){var n=t[0],t=t[1];return[n*Math.cos(e)-t*Math.sin(e),n*Math.sin(e)+t*Math.cos(e)]}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;n++)if("number"!=typeof t[n])throw new Error("assertNumbers arguments["+n+"] is not a number. "+typeof t[n]+" == typeof "+t[n]);return 1}var h=Math.PI;function O(t,e,n){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var r=t.rX,i=t.rY,o=t.x,a=t.y,r=Math.abs(t.rX),i=Math.abs(t.rY),u=g([(e-o)/2,(n-a)/2],-t.xRot/180*h),s=u[0],c=u[1],f=Math.pow(s,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(i,2);1<f&&(r*=Math.sqrt(f),i*=Math.sqrt(f)),t.rX=r,t.rY=i;var l=Math.pow(r,2)*Math.pow(c,2)+Math.pow(i,2)*Math.pow(s,2),u=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-l)/l)),f=r*c/i*u,l=-i*s/r*u,u=g([f,l],t.xRot/180*h);t.cX=u[0]+(e+o)/2,t.cY=u[1]+(n+a)/2,t.phi1=Math.atan2((c-l)/i,(s-f)/r),t.phi2=Math.atan2((-c-l)/i,(-s-f)/r),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*h),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*h),t.phi1*=180/h,t.phi2*=180/h}function P(t,e,n){o(t,e,n);var r=t*t+e*e-n*n;if(r<0)return[];if(0==r)return[[t*n/(t*t+e*e),e*n/(t*t+e*e)]];r=Math.sqrt(r);return[[(t*n+e*r)/(t*t+e*e),(e*n-t*r)/(t*t+e*e)],[(t*n-e*r)/(t*t+e*e),(e*n+t*r)/(t*t+e*e)]]}var a,d=Math.PI/180;function x(t,e,n){return(1-n)*t+n*e}function C(t,e,n,r){return t+Math.cos(r/180*h)*e+Math.sin(r/180*h)*n}function E(t,e,n,r){var t=e-t,e=n-e,i=3*t+3*(r-n)-6*e,e=6*(e-t),o=3*t;return Math.abs(i)<1e-6?[-o/e]:function(t,e){var n=t*t/4-o/i;if(n<-(e=void 0===e?1e-6:e))return[];if(n<=e)return[-t/2];n=Math.sqrt(n);return[-t/2-n,-t/2+n]}(e/i,1e-6)}function M(t,e,n,r,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+n*(3*o*i*i)+r*(i*i*i)}function u(){return m(function(t,e,n){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=n),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=n),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=n),t.relative=!1),t})}function s(){var r=NaN,i=NaN,o=NaN,a=NaN;return m(function(t,e,n){return t.type&_.SMOOTH_CURVE_TO&&(t.type=_.CURVE_TO,r=isNaN(r)?e:r,i=isNaN(i)?n:i,t.x1=t.relative?e-r:2*e-r,t.y1=t.relative?n-i:2*n-i),i=t.type&_.CURVE_TO?(r=t.relative?e+t.x2:t.x2,t.relative?n+t.y2:t.y2):r=NaN,t.type&_.SMOOTH_QUAD_TO&&(t.type=_.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?n:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?n-a:2*n-a),a=t.type&_.QUAD_TO?(o=t.relative?e+t.x1:t.x1,t.relative?n+t.y1:t.y1):o=NaN,t})}function c(){var o=NaN,a=NaN;return m(function(t,e,n){var r,i;return t.type&_.SMOOTH_QUAD_TO&&(t.type=_.QUAD_TO,o=isNaN(o)?e:o,a=isNaN(a)?n:a,t.x1=t.relative?e-o:2*e-o,t.y1=t.relative?n-a:2*n-a),t.type&_.QUAD_TO?(o=t.relative?e+t.x1:t.x1,a=t.relative?n+t.y1:t.y1,r=t.x1,i=t.y1,t.type=_.CURVE_TO,t.x1=((t.relative?0:e)+2*r)/3,t.y1=((t.relative?0:n)+2*i)/3,t.x2=(t.x+2*r)/3,t.y2=(t.y+2*i)/3):a=o=NaN,t})}function m(n){var r=0,i=0,o=NaN,a=NaN;return function(t){if(isNaN(o)&&!(t.type&_.MOVE_TO))throw new Error("path must start with moveto");var e=n(t,r,i,o,a);return t.type&_.CLOSE_PATH&&(r=o,i=a),void 0!==t.x&&(r=t.relative?r+t.x:t.x),void 0!==t.y&&(i=t.relative?i+t.y:t.y),t.type&_.MOVE_TO&&(o=r,a=i),e}}function f(c,f,l,h,p,y){return o(c,f,l,h,p,y),m(function(t,e,n,r){var i=t.x1,o=t.x2,a=t.relative&&!isNaN(r),u=void 0!==t.x?t.x:a?0:e,r=void 0!==t.y?t.y:a?0:n;function s(t){return t*t}t.type&_.HORIZ_LINE_TO&&0!==f&&(t.type=_.LINE_TO,t.y=t.relative?0:n),t.type&_.VERT_LINE_TO&&0!==l&&(t.type=_.LINE_TO,t.x=t.relative?0:e),void 0!==t.x&&(t.x=t.x*c+r*l+(a?0:p)),void 0!==t.y&&(t.y=u*f+t.y*h+(a?0:y)),void 0!==t.x1&&(t.x1=t.x1*c+t.y1*l+(a?0:p)),void 0!==t.y1&&(t.y1=i*f+t.y1*h+(a?0:y)),void 0!==t.x2&&(t.x2=t.x2*c+t.y2*l+(a?0:p)),void 0!==t.y2&&(t.y2=o*f+t.y2*h+(a?0:y));n=c*h-f*l;return void 0===t.xRot||1===c&&0===f&&0===l&&1===h||(0==n?(delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag,t.type=_.LINE_TO):(e=t.xRot*Math.PI/180,r=Math.sin(e),u=Math.cos(e),i=1/s(t.rX),o=1/s(t.rY),a=s(u)*i+s(r)*o,e=s(r)*i+s(u)*o,u=a*h*h-(r=2*r*u*(i-o))*f*h+e*f*f,i=r*(c*h+f*l)-2*(a*l*h+e*c*f),o=a*l*l-r*c*l+e*c*c,a=(Math.atan2(i,u-o)+Math.PI)%Math.PI/2,r=Math.sin(a),e=Math.cos(a),t.rX=Math.abs(n)/Math.sqrt(u*s(e)+i*r*e+o*s(r)),t.rY=Math.abs(n)/Math.sqrt(u*s(r)-i*r*e+o*s(e)),t.xRot=180*a/Math.PI)),void 0!==t.sweepFlag&&n<0&&(t.sweepFlag=+!t.sweepFlag),t})}(e=a=a||{}).ROUND=function(e){function n(t){return Math.round(t*e)/e}return o(e=void 0===e?1e13:e),function(t){return void 0!==t.x1&&(t.x1=n(t.x1)),void 0!==t.y1&&(t.y1=n(t.y1)),void 0!==t.x2&&(t.x2=n(t.x2)),void 0!==t.y2&&(t.y2=n(t.y2)),void 0!==t.x&&(t.x=n(t.x)),void 0!==t.y&&(t.y=n(t.y)),void 0!==t.rX&&(t.rX=n(t.rX)),void 0!==t.rY&&(t.rY=n(t.rY)),t}},e.TO_ABS=u,e.TO_REL=function(){return m(function(t,e,n){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=n),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=n),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=n),t.relative=!0),t})},e.NORMALIZE_HVZ=function(o,a,u){return void 0===o&&(o=!0),void 0===a&&(a=!0),void 0===u&&(u=!0),m(function(t,e,n,r,i){if(isNaN(r)&&!(t.type&_.MOVE_TO))throw new Error("path must start with moveto");return a&&t.type&_.HORIZ_LINE_TO&&(t.type=_.LINE_TO,t.y=t.relative?0:n),u&&t.type&_.VERT_LINE_TO&&(t.type=_.LINE_TO,t.x=t.relative?0:e),o&&t.type&_.CLOSE_PATH&&(t.type=_.LINE_TO,t.x=t.relative?r-e:r,t.y=t.relative?i-n:i),t.type&_.ARC&&(0===t.rX||0===t.rY)&&(t.type=_.LINE_TO,delete t.rX,delete t.rY,delete t.xRot,delete t.lArcFlag,delete t.sweepFlag),t})},e.NORMALIZE_ST=s,e.QT_TO_C=c,e.INFO=m,e.SANITIZE=function(p){o(p=void 0===p?0:p);var y=NaN,v=NaN,g=NaN,d=NaN;return m(function(t,e,n,r,i){var o,a,u,s,c=Math.abs,f=!1,l=0,h=0;return t.type&_.SMOOTH_CURVE_TO&&(l=isNaN(y)?0:e-y,h=isNaN(v)?0:n-v),v=t.type&(_.CURVE_TO|_.SMOOTH_CURVE_TO)?(y=t.relative?e+t.x2:t.x2,t.relative?n+t.y2:t.y2):y=NaN,d=t.type&_.SMOOTH_QUAD_TO?(g=isNaN(g)?e:2*e-g,isNaN(d)?n:2*n-d):t.type&_.QUAD_TO?(g=t.relative?e+t.x1:t.x1,t.relative?n+t.y1:t.y2):g=NaN,(t.type&_.LINE_COMMANDS||t.type&_.ARC&&(0===t.rX||0===t.rY||!t.lArcFlag)||t.type&_.CURVE_TO||t.type&_.SMOOTH_CURVE_TO||t.type&_.QUAD_TO||t.type&_.SMOOTH_QUAD_TO)&&(o=void 0===t.x?0:t.relative?t.x:t.x-e,a=void 0===t.y?0:t.relative?t.y:t.y-n,l=isNaN(g)?void 0===t.x1?l:t.relative?t.x:t.x1-e:g-e,h=isNaN(d)?void 0===t.y1?h:t.relative?t.y:t.y1-n:d-n,u=void 0===t.x2?0:t.relative?t.x:t.x2-e,s=void 0===t.y2?0:t.relative?t.y:t.y2-n,c(o)<=p&&c(a)<=p&&c(l)<=p&&c(h)<=p&&c(u)<=p&&c(s)<=p&&(f=!0)),(f=t.type&_.CLOSE_PATH&&c(e-r)<=p&&c(n-i)<=p?!0:f)?[]:t})},e.MATRIX=f,e.ROTATE=function(t,e,n){o(t,e=void 0===e?0:e,n=void 0===n?0:n);var r=Math.sin(t),t=Math.cos(t);return f(t,r,-r,t,e-e*t+n*r,n-e*r-n*t)},e.TRANSLATE=function(t,e){return o(t,e=void 0===e?0:e),f(1,0,0,1,t,e)},e.SCALE=function(t,e){return o(t,e=void 0===e?t:e),f(t,0,0,e,0,0)},e.SKEW_X=function(t){return o(t),f(1,0,Math.atan(t),1,0,0)},e.SKEW_Y=function(t){return o(t),f(1,Math.atan(t),0,1,0,0)},e.X_AXIS_SYMMETRY=function(t){return o(t=void 0===t?0:t),f(-1,0,0,1,t,0)},e.Y_AXIS_SYMMETRY=function(t){return o(t=void 0===t?0:t),f(1,0,0,-1,0,t)},e.A_TO_C=function(){return m(function(t,e,n){return _.ARC===t.type?function(n,t,e){n.cX||O(n,t,e);for(var r=Math.min(n.phi1,n.phi2),r=Math.max(n.phi1,n.phi2)-r,i=Math.ceil(r/90),o=new Array(i),a=t,u=e,s=0;s<i;s++){var c=x(n.phi1,n.phi2,s/i),f=x(n.phi1,n.phi2,(s+1)/i),l=4/3*Math.tan((f-c)*d/4),h=[Math.cos(c*d)-l*Math.sin(c*d),Math.sin(c*d)+l*Math.cos(c*d)],p=h[0],y=h[1],v=[Math.cos(f*d),Math.sin(f*d)],c=v[0],h=v[1],v=[c+l*Math.sin(f*d),h-l*Math.cos(f*d)],l=v[0],f=v[1];o[s]={relative:n.relative,type:_.CURVE_TO};v=function(t,e){t=g([t*n.rX,e*n.rY],n.xRot),e=t[0],t=t[1];return[n.cX+e,n.cY+t]},y=v(p,y);o[s].x1=y[0],o[s].y1=y[1],f=v(l,f),o[s].x2=f[0],o[s].y2=f[1],h=v(c,h),o[s].x=h[0],o[s].y=h[1],n.relative&&(o[s].x1-=a,o[s].y1-=u,o[s].x2-=a,o[s].y2-=u,o[s].x-=a,o[s].y-=u),a=(h=[o[s].x,o[s].y])[0],u=h[1]}return o}(t,t.relative?0:e,t.relative?0:n):t})},e.ANNOTATE_ARCS=function(){return m(function(t,e,n){return t.relative&&(n=e=0),_.ARC===t.type&&O(t,e,n),t})},e.CLONE=function(){return function(t){var e,n={};for(e in t)n[e]=t[e];return n}},e.CALCULATE_BOUNDS=function(){var S=u(),A=c(),k=s(),T=m(function(t,e,n){var r=k(A(S(function(t){var e,n={};for(e in t)n[e]=t[e];return n}(t))));function i(t){t>T.maxX&&(T.maxX=t),t<T.minX&&(T.minX=t)}function o(t){t>T.maxY&&(T.maxY=t),t<T.minY&&(T.minY=t)}if(r.type&_.DRAWING_COMMANDS&&(i(e),o(n)),r.type&_.HORIZ_LINE_TO&&i(r.x),r.type&_.VERT_LINE_TO&&o(r.y),r.type&_.LINE_TO&&(i(r.x),o(r.y)),r.type&_.CURVE_TO){i(r.x),o(r.y);for(var a=0,u=E(e,r.x1,r.x2,r.x);a<u.length;a++)0<(m=u[a])&&m<1&&i(M(e,r.x1,r.x2,r.x,m));for(var s=0,c=E(n,r.y1,r.y2,r.y);s<c.length;s++)0<(m=c[s])&&m<1&&o(M(n,r.y1,r.y2,r.y,m))}if(r.type&_.ARC){i(r.x),o(r.y),O(r,e,n);for(var f=r.xRot/180*Math.PI,l=Math.cos(f)*r.rX,h=Math.sin(f)*r.rX,p=-Math.sin(f)*r.rY,y=Math.cos(f)*r.rY,f=r.phi1<r.phi2?[r.phi1,r.phi2]:r.phi2<-180?[r.phi2+360,r.phi1+360]:[r.phi2,r.phi1],v=f[0],g=f[1],f=function(t){var e=t[0],t=t[1],e=180*Math.atan2(t,e)/Math.PI;return e<v?360+e:e},d=0,x=P(p,-l,0).map(f);d<x.length;d++)(m=x[d])>v&&m<g&&i(C(r.cX,l,p,m));for(var m,b=0,w=P(y,-h,0).map(f);b<w.length;b++)(m=w[b])>v&&m<g&&o(C(r.cY,h,y,m))}return t});return T.minX=1/0,T.maxX=-1/0,T.minY=1/0,T.maxY=-1/0,T};function l(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)}var p,y,e=(A.prototype.round=function(t){return this.transform(a.ROUND(t))},A.prototype.toAbs=function(){return this.transform(a.TO_ABS())},A.prototype.toRel=function(){return this.transform(a.TO_REL())},A.prototype.normalizeHVZ=function(t,e,n){return this.transform(a.NORMALIZE_HVZ(t,e,n))},A.prototype.normalizeST=function(){return this.transform(a.NORMALIZE_ST())},A.prototype.qtToC=function(){return this.transform(a.QT_TO_C())},A.prototype.aToC=function(){return this.transform(a.A_TO_C())},A.prototype.sanitize=function(t){return this.transform(a.SANITIZE(t))},A.prototype.translate=function(t,e){return this.transform(a.TRANSLATE(t,e))},A.prototype.scale=function(t,e){return this.transform(a.SCALE(t,e))},A.prototype.rotate=function(t,e,n){return this.transform(a.ROTATE(t,e,n))},A.prototype.matrix=function(t,e,n,r,i,o){return this.transform(a.MATRIX(t,e,n,r,i,o))},A.prototype.skewX=function(t){return this.transform(a.SKEW_X(t))},A.prototype.skewY=function(t){return this.transform(a.SKEW_Y(t))},A.prototype.xSymmetry=function(t){return this.transform(a.X_AXIS_SYMMETRY(t))},A.prototype.ySymmetry=function(t){return this.transform(a.Y_AXIS_SYMMETRY(t))},A.prototype.annotateArcs=function(){return this.transform(a.ANNOTATE_ARCS())},A),v=(i(S,y=e),S.prototype.finish=function(t){if(this.parse(" ",t=void 0===t?[]:t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},S.prototype.parse=function(t,e){var n=this;void 0===e&&(e=[]);for(var r=function(t){e.push(t),n.curArgs.length=0,n.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==_.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),u=l(o)&&("0"===this.curNumber&&"0"===o||a);if(!l(o)||u)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var s=Number(this.curNumber);if(isNaN(s))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===_.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(s<0)throw new SyntaxError('Expected positive number, got "'+s+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(s),this.curArgs.length===b[this.curCommandType]&&(_.HORIZ_LINE_TO===this.curCommandType?r({type:_.HORIZ_LINE_TO,relative:this.curCommandRelative,x:s}):_.VERT_LINE_TO===this.curCommandType?r({type:_.VERT_LINE_TO,relative:this.curCommandRelative,y:s}):this.curCommandType===_.MOVE_TO||this.curCommandType===_.LINE_TO||this.curCommandType===_.SMOOTH_QUAD_TO?(r({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),_.MOVE_TO===this.curCommandType&&(this.curCommandType=_.LINE_TO)):this.curCommandType===_.CURVE_TO?r({type:_.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===_.SMOOTH_CURVE_TO?r({type:_.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.QUAD_TO?r({type:_.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===_.ARC&&r({type:_.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(" "!==(s=o)&&"\t"!==s&&"\r"!==s&&"\n"!==s)if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(u)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=_.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=_.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=_.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=_.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=_.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=_.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=_.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=_.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=_.ARC,this.curCommandRelative="a"===o}else e.push({type:_.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},S.prototype.transform=function(o){return Object.create(this,{parse:{value:function(t,e){void 0===e&&(e=[]);for(var n=0,r=Object.getPrototypeOf(this).parse.call(this,t);n<r.length;n++){var i=r[n],i=o(i);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return e}}})},S),_=(i(w,p=e),w.prototype.encode=function(){return w.encode(this.commands)},w.prototype.getBounds=function(){var t=a.CALCULATE_BOUNDS();return this.transform(t),t},w.prototype.transform=function(t){for(var e=[],n=0,r=this.commands;n<r.length;n++){var i=t(r[n]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},w.encode=function(t){var e="";Array.isArray(t)||(t=[t]);for(var n=0;n<t.length;n++){var r=t[n];if(r.type===_.CLOSE_PATH)e+="z";else if(r.type===_.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===_.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===_.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===_.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===_.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===_.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===_.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===_.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==_.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+n+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e},w.parse=function(t){var e=new v,n=[];return e.parse(t,n),e.finish(n),n},w.CLOSE_PATH=1,w.MOVE_TO=2,w.HORIZ_LINE_TO=4,w.VERT_LINE_TO=8,w.LINE_TO=16,w.CURVE_TO=32,w.SMOOTH_CURVE_TO=64,w.QUAD_TO=128,w.SMOOTH_QUAD_TO=256,w.ARC=512,w.LINE_COMMANDS=w.LINE_TO|w.HORIZ_LINE_TO|w.VERT_LINE_TO,w.DRAWING_COMMANDS=w.HORIZ_LINE_TO|w.VERT_LINE_TO|w.LINE_TO|w.CURVE_TO|w.SMOOTH_CURVE_TO|w.QUAD_TO|w.SMOOTH_QUAD_TO|w.ARC,w),b=((e={})[_.MOVE_TO]=2,e[_.LINE_TO]=2,e[_.HORIZ_LINE_TO]=1,e[_.VERT_LINE_TO]=1,e[_.CLOSE_PATH]=0,e[_.QUAD_TO]=4,e[_.SMOOTH_QUAD_TO]=2,e[_.CURVE_TO]=6,e[_.SMOOTH_CURVE_TO]=4,e[_.ARC]=7,e);function w(t){var e=p.call(this)||this;return e.commands="string"==typeof t?w.parse(t):t,e}function S(){var t=y.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}function A(){}},,,function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r,i,o=n(11),a=n(77),n=o.process,o=o.Deno,o=n&&n.versions||o&&o.version,o=o&&o.v8;o?i=(r=o.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||74<=r[1])&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),t.exports=i&&+i},function(t,e){},function(t,e){t.exports={}},function(t,e,n){var i=n(27);t.exports=function(t,e,n,r){r&&r.enumerable?t[e]=n:i(t,e,n)}},function(t,e,n){var r=n(111),i=n(62),o=n(13)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?t:a?i(e):"Object"==(t=i(e))&&"function"==typeof e.callee?"Arguments":t}},function(t,e,n){"use strict";var r=n(12);t.exports=function(t,e){var n=[][t];return!!n&&r(function(){n.call(null,e||function(){throw 1},1)})}},function(t,e,n){"use strict";function r(t){var n,r;this.promise=new t(function(t,e){if(void 0!==n||void 0!==r)throw TypeError("Bad Promise constructor");n=t,r=e}),this.resolve=i(n),this.reject=i(r)}var i=n(26);t.exports.f=function(t){return new r(t)}},function(t,e,n){t.exports=n(246)},function(t,e,n){t.exports=n(312)},function(t,e,n){t.exports=n(356)},function(t,e,n){t.exports=n(387)},function(e,t,n){e=function(a){"use strict";var s,t=Object.prototype,c=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i,o,a,u,e=e&&e.prototype instanceof g?e:g,e=Object.create(e.prototype),r=new T(r||[]);return e._invoke=(i=t,o=n,a=r,u=l,function(t,e){if(u===p)throw new Error("Generator is already running");if(u===y){if("throw"===t)throw e;return P()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var r=function t(e,n){var r=e.iterator[n.method];if(r===s){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=s,t(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=f(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,v;r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v;{if(!r.done)return r;n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=s)}n.delegate=null;return v}(n,a);if(r){if(r===v)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===l)throw u=y,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=p;r=f(i,o,a);if("normal"===r.type){if(u=a.done?y:h,r.arg!==v)return{value:r.arg,done:a.done}}else"throw"===r.type&&(u=y,a.method="throw",a.arg=r.arg)}}),e}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var l="suspendedStart",h="suspendedYield",p="executing",y="completed",v={};function g(){}function d(){}function x(){}var m={};o(m,r,function(){return this});e=Object.getPrototypeOf,e=e&&e(e(O([])));e&&e!==t&&c.call(e,r)&&(m=e);var b=x.prototype=g.prototype=Object.create(m);function w(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function S(a,u){var e;this._invoke=function(n,r){function t(){return new u(function(t,e){!function e(t,n,r,i){t=f(a[t],a,n);if("throw"!==t.type){var o=t.arg;return(n=o.value)&&"object"==typeof n&&c.call(n,"__await")?u.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):u.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)})}i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function O(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(c.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=s,t.done=!0,t};return t.next=t}}return{next:P}}function P(){return{value:s,done:!0}}return o(b,"constructor",d.prototype=x),o(x,"constructor",d),d.displayName=o(x,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,o(t,i,"GeneratorFunction")),t.prototype=Object.create(b),t},a.awrap=function(t){return{__await:t}},w(S.prototype),o(S.prototype,n,function(){return this}),a.AsyncIterator=S,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new S(u(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},w(b),o(b,i,"Generator"),o(b,r,function(){return this}),o(b,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=O,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&c.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=s)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=s),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=c.call(i,"catchLoc"),u=c.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&c.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r,i=n.completion;return"throw"===i.type&&(r=i.arg,k(n)),r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=s),v}},a}(e.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},function(t,e,n){var r=n(198),i=n(76);t.exports=function(t){t=r(t,"string");return i(t)?t:String(t)}},function(t,e,n){var r=n(22),n=n(129);t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return"function"==typeof e&&Object(t)instanceof e}},function(t,e,n){n=n(22);t.exports=n("navigator","userAgent")||""},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(t,e,n){var r=n(12),i=n(13),o=n(63),a=i("species");t.exports=function(e){return 51<=o||!r(function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo})}},function(t,e,n){"use strict";var r=n(75),i=n(24),o=n(47);t.exports=function(t,e,n){e=r(e);e in t?i.f(t,e,o(0,n)):t[e]=n}},function(t,e,n){var r=n(100),i=n(78),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,n){var r=n(141),i=n(109).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var i=n(17),o=n(237);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return i(t),o(e),r?n.call(t,e):t.__proto__=e,t}}():void 0)},function(t,e,n){var r=n(67),i=n(53),o=n(13)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(62),n=n(11);t.exports="process"==r(n.process)},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,n){t.exports=n(156)},function(t,e,n){t.exports=n(263)},function(t,e,n){t.exports=n(277)},function(t,e,n){t.exports=n(283)},function(t,e,n){var r=n(169);t.exports=function(t,e,n){return e in t?r(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){t.exports=n(158)},function(l,t,h){!function(t){for(var r,i,o,a=h(320),e="undefined"==typeof window?t:window,n=["moz","webkit"],u="AnimationFrame",s=e["request"+u],c=e["cancel"+u]||e["cancelRequest"+u],f=0;!s&&f<n.length;f++)s=e[n[f]+"Request"+u],c=e[n[f]+"Cancel"+u]||e[n[f]+"CancelRequest"+u];s&&c||(i=r=0,o=[],s=function(t){var e,n;return 0===o.length&&(e=a(),n=Math.max(0,1e3/60-(e-r)),r=n+e,setTimeout(function(){for(var t=o.slice(0),e=o.length=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(r)}catch(t){setTimeout(function(){throw t},0)}},Math.round(n))),o.push({handle:++i,callback:t,cancelled:!1}),i},c=function(t){for(var e=0;e<o.length;e++)o[e].handle===t&&(o[e].cancelled=!0)}),l.exports=function(t){return s.call(e,t)},l.exports.cancel=function(){c.apply(e,arguments)},l.exports.polyfill=function(t){(t=t||e).requestAnimationFrame=s,t.cancelAnimationFrame=c}}.call(this,h(127))},function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,t=(t=(t="#"==t.charAt(0)?t.substr(1,6):t).replace(/ /g,"")).toLowerCase();var f={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=f[t]||t;for(var l=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<l.length;e++){var n=l[e].re,r=l[e].process,n=n.exec(t);n&&(n=r(n),this.r=n[0],this.g=n[1],this.b=n[2],3<n.length&&(this.alpha=n[3]),this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.alpha=this.alpha<0?0:1<this.alpha||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return"#"+(t=1==t.length?"0"+t:t)+(e=1==e.length?"0"+e:e)+(n=1==n.length?"0"+n:n)},this.getHelpXML=function(){for(var t,e=new Array,n=0;n<l.length;n++)for(var r=l[n].example,i=0;i<r.length;i++)e[e.length]=r[i];for(t in f)e[e.length]=t;var o=document.createElement("ul");o.setAttribute("id","rgbcolor-examples");for(n=0;n<e.length;n++)try{var a=document.createElement("li"),u=new RGBColor(e[n]),s=document.createElement("div");s.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),s.appendChild(document.createTextNode("test"));var c=document.createTextNode(" "+e[n]+" -> "+u.toRGB()+" -> "+u.toHex());a.appendChild(s),a.appendChild(c),o.appendChild(a)}catch(t){}return o}}},function(t,e,n){t.exports=n(366)},function(t,e,n){t.exports=n(390)},function(t,e,n){var r=n(12),i=n(62),o="".split;t.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e,n){var r=n(63),n=n(12);t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},function(t,e,n){var r=n(38),i=n(101);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var r=n(11),i=n(200),n="__core-js_shared__",n=r[n]||i(n,{});t.exports=n},function(t,e,n){var r=n(11),n=n(16),i=r.document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:n)(t)}},function(t,e,n){var r=n(48),i=n(32),n="["+n(79)+"]",o=RegExp("^"+n+n+"*"),a=RegExp(n+n+"*$"),n=function(e){return function(t){t=i(r(t));return 1&e&&(t=t.replace(o,"")),t=2&e?t.replace(a,""):t}};t.exports={start:n(1),end:n(2),trim:n(3)}},function(t,e,n){t.exports=n(216)},function(t,e,n){var r=n(141),i=n(109);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var s=n(30),c=n(31),f=n(108),n=function(u){return function(t,e,n){var r,i=s(t),o=c(i.length),a=f(n,o);if(u&&e!=e){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((u||a in i)&&i[a]===e)return u||a||0;return!u&&-1}};t.exports={includes:n(!0),indexOf:n(!1)}},function(t,e,n){var r=n(103),i=Math.max,o=Math.min;t.exports=function(t,e){t=r(t);return t<0?i(t+e,0):o(t,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,n){n=n(13);e.f=n},function(t,e,n){var r={};r[n(13)("toStringTag")]="z",t.exports="[object z]"===String(r)},function(t,e){t.exports=function(){}},function(t,e,n){"use strict";function g(){return this}var d=n(6),x=n(236),m=n(54),b=n(84),w=n(51),S=n(27),A=n(66),r=n(13),k=n(38),T=n(53),n=n(147),O=n.IteratorPrototype,P=n.BUGGY_SAFARI_ITERATORS,C=r("iterator"),E="values",M="entries";t.exports=function(t,e,n,r,i,o,a){x(n,e,r);function u(t){if(t===i&&v)return v;if(!P&&t in p)return p[t];switch(t){case"keys":case E:case M:return function(){return new n(this,t)}}return function(){return new n(this)}}var s,c,f,l=e+" Iterator",h=!1,p=t.prototype,y=p[C]||p["@@iterator"]||i&&p[i],v=!P&&y||u(i),r="Array"==e&&p.entries||y;if(r&&(s=m(r.call(new t)))!==Object.prototype&&s.next&&(k||m(s)===O||(b?b(s,O):"function"!=typeof s[C]&&S(s,C,g)),w(s,l,!0,!0),k&&(T[l]=g)),i==E&&y&&y.name!==E&&(h=!0,v=function(){return y.call(this)}),k&&!a||p[C]===v||S(p,C,v),T[e]=v,i)if(c={values:u(E),keys:o?v:u("keys"),entries:u(M)},a)for(f in c)!P&&!h&&f in p||A(p,f,c[f]);else d({target:e,proto:!0,forced:P||h},c);return c}},function(t,e,n){n=n(12);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,n){var r=n(17),i=n(85);t.exports=function(t,e){var n=arguments.length<2?i(t):e;if("function"!=typeof n)throw TypeError(String(t)+" is not iterable");return r(n.call(t))}},function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},function(t,e,n){t.exports=n(309)},function(t,e,n){t.exports=n(362)},function(t,e,n){t.exports=n(379)},function(t,e,n){t.exports=n(384)},function(t,e,n){t.exports=n(394)},function(t,e,n){t.exports=n(136)},function(t,e,n){t.exports=n(137)},function(t,e,n){t.exports=n(149)},function(t,e,n){t.exports=n(403)},function(t,e){var n,r,t=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a